* sparc64-tdep.h (sparc64_regnum): Fix comment.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2
3 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
5 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
6 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
7 `case' keyword.
8 (sparc64_register_info): Give the reister with number
9 SPARC64_STATE_REGNUM a name.
10 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
11 %asi and %ccr.
12 (sparc64_push_dummy_call): Take BIAS into account when checking
13 stcak alignment.
14 (sparc_software_single_step): Remove assertions that check whether
15 NPC and NNPC were zero.
16 (sparc_supply_rwindow): Make public. Merge functionality with
17 sparc64_supply_rwindow.
18 (sparc_fill_rwindow): Make public. Merge functionality with
19 sparc64_fill_rwindow.
20 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
21 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
22 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
23 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
24 sparc_supply_rwindow instead of sparc64_supply_rwindow.
25
26 * reggroups.c: Add whitespace after declarations of local
27 variables in functions.
28
29 2003-08-21 Michael Chastain <mec@shout.net>
30
31 * gdbtypes.h: Change array bound type from an int to enum.
32
33 2003-08-21 Andrew Cagney <cagney@redhat.com>
34
35 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
36 * config/sparc/tm-sparc.h: Ditto.
37 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
38 unconditionally.
39 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
40
41 2003-07-13 Mark Kettenis <kettenis@gnu.org>
42
43 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
44 (register_objfile_data, set_objfile_data, objfile_data): New
45 prototypes.
46 * objfiles.c (objfile_alloc_data, objfile_free_data): New
47 prototypes.
48 (allocate_objfile): Call objfile_alloc_data.
49 (free_objfile): Call objfile_free_data.
50 (struct objfile_data): New.
51 (struct objfile_data_registration): New.
52 (struct objfile_data_registry): New.
53 (objfile_data_registry): New variable.
54 (register_objfile_data): New function.
55 (objfile_alloc_data, objfile_free_data): New functions.
56 (set_objfile_data, objfile_data): New functions.
57 * dwarf2-frame.c (dwarf2_frame_data): New variable.
58 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
59 (_initialize_dwarf2_frame): New function and prototype.
60
61 2003-08-21 Andrew Cagney <cagney@redhat.com>
62
63 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
64 a specific architecture.
65 * arch-utils.h (set_architecture_from_arch_mach): Delete
66 declaration.
67 (target_architecture_hook): Delete declaration.
68 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
69 (default_float_format): Assume GDB_MULTI_ARCH.
70 (default_double_format): Assume GDB_MULTI_ARCH.
71 (set_endian_from_file): Delete function.
72 (arch_ok): Delete function.
73 (set_arch): Delete function.
74 (set_architecture_from_arch_mach): Delete function.
75 (set_architecture_from_file): Delete function.
76 (set_architecture): Assume GDB_MULTI_ARCH.
77 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
78
79 2003-08-21 Mark Kettenis <kettenis@gnu.org>
80
81 Rewrite FreeBSD/sparc64 native configuration.
82 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
83 * sparc64fbsd-nat.c: New file.
84 * sparc64fbsd-tdep.c: New file.
85 * sparc64-tdep.c sparc64-tdep.h: New files.
86 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
87 sparc64fbsd-tdep.o): New dependencies.
88 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
89 and sparc64fbsd-tdep.c.
90 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
91 * config/sparc/fbsd.mh: Remove copyright notice.
92 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
93 sparcbsd-nat.o.
94 * config/sparc/fbsd.mt: Remove copyright notice.
95 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
96 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
97 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
98 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
99 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
100 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
101 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
102 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
103 "sparc/tm-sp64.h".
104 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
105 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
106
107 2003-08-21 Michael Chastain <mec@shout.net>
108
109 * symtab.h: Add doco on the space critical structures and
110 some measurements of space usage.
111
112 2003-08-21 Michael Snyder <msnyder@redhat.com>
113
114 * tracepoint.c (trace_dump_command): Trace break address
115 is subject to DECR_PC_AFTER_BREAK.
116 (set_traceframe_context): Make "trace_line" an int.
117 Fixes suggested by Mark Newman <mark.newman@lmco.com>
118
119 2003-08-20 Michael Snyder <msnyder@redhat.com>
120
121 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
122 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
123 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
124 argument passing.
125 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
126 functions, replace sh_push_dummy_call.
127 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
128
129 2003-08-20 Michael Chastain <mec@shout.net>
130
131 * gdbtypes.h (struct main_type): Rearrange to save space.
132
133 2003-08-20 Michael Snyder <msnyder@redhat.com>
134
135 * trad-frame.c: Comment typo fix.
136
137 2003-08-20 Michael Snyder <msnyder@redhat.com>
138 Kevin Buettner <kevinb@redhat.com>
139
140 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
141 (frv_frame_init_saved_regs): Add declaration.
142 (frame_extra_info): Add new field ``saved_regs''.
143 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
144 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
145 Update frame related code.
146 (frv_extract_struct_value_address): Adjust formatting.
147 * Makefile.in (frv-tdep.o): Update dependencies.
148 * config/frv/tm-frv.h (target_insert_watchpoint)
149 (target_remove_watchpoint, target_insert_hw_breakpoint)
150 (target_remove_hw_breakpoint): Delete these macros.
151 (remote_insert_watchpoint, remote_remove_watchpoint)
152 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
153 these declarations.
154
155 2003-08-20 Michael Chastain <mec@shout.net>
156
157 * defs.h (ENUM_BITFIELD): New macro.
158 * symtab.h (ENUM_BITFIELD): Use it.
159 (BYTE_BITFIELD): Remove old macro, which was already disabled.
160
161 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
162
163 * MAINTAINERS (write after approval): Add myself.
164
165 2003-08-18 Andrew Cagney <cagney@redhat.com>
166
167 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
168 * gdbarch.h, gdbarch.c: Re-generate.
169 * infcall.c (call_function_by_hand): Adjust the SP by
170 frame_red_zone_size before allocating any stack space.
171 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
172 * x86-64-tdep.c (x86_64_frame_align): New function.
173 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
174
175 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
176 Remove code adjusting SP so that it skips over the Red Zone.
177
178 2003-08-18 Mark Kettenis <kettenis@gnu.org>
179
180 * NEWS (New native configurations): Mention FreeBSD/amd64.
181
182 2003-08-18 Andrew Cagney <cagney@redhat.com>
183
184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
185 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
186 "m68k_frame_p".
187 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
188
189 2003-08-18 Mark Kettenis <kettenis@gnu.org>
190
191 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
192
193 2003-08-18 Michal Ludvig <mludvig@suse.cz>
194
195 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
196 Define.
197 * i386-linux-nat.c: Include "linux-nat.h".
198 (child_post_startup_inferior): New function.
199
200 2003-08-18 Mark Kettenis <kettenis@gnu.org>
201
202 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
203 at the start of a frameless function. This probably fixes PR
204 backtrace/1338.
205
206 2003-08-17 Michael Chastain <mec@shout.net>
207
208 * symfile.c (find_sym_fns): Remove special case for apollo target.
209
210 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
211
212 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
213 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
214 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
215 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
216 (linux_supports_tracevforkdone): New function.
217 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
218 TRACEVFORKDONE.
219 (child_follow_fork): Handle vfork.
220 (linux_handle_extended_wait): Likewise. Also handle exec.
221 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
222 * NEWS: Mention fork tracing.
223
224 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
225
226 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
227
228 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
229
230 * Makefile.in (i386-linux-nat.o): Update dependencies.
231 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
232 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
233 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
234 * i386-linux-nat.c: Include "linux-nat.h".
235 (child_post_startup_inferior): New function.
236 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
237 * infptrace.c (kill_inferior): Wrap in #ifdef.
238 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
239 attaching to each LWP.
240 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
241 (init_lin_lwp_ops): Fill in some more operations.
242 * linux-nat.h (linux_enable_event_reporting)
243 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
244 prototypes.
245 * linux-nat.c (linux_enable_event_reporting): New function.
246 (child_post_attach, linux_child_post_startup_inferior)
247 (child_post_startup_inferior, child_follow_fork)
248 (linux_handle_extended_wait, kill_inferior): New functions.
249
250 2003-08-16 Andrew Cagney <cagney@redhat.com>
251
252 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
253 * gdbarch.h, gdbarch.c: Re-generate.
254
255 2003-08-16 Mark Kettenis <kettenis@gnu.org>
256
257 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
258
259 2003-08-16 Andrew Cagney <cagney@redhat.com>
260
261 * NEWS: Mention that "set prompt-escape-char" was deleted.
262 * top.c (get_prompt_1): Delete function.
263 (gdb_prompt_escape):
264 (init_main): Do not clear "gdb_prompt_escape". Delete "set
265 prompt-escape-char" command.
266 (MAX_PROMPT_SIZE): Delete macro.
267 (get_prompt): Simplify, do not call get_prompt_1.
268
269 2003-08-16 Andrew Cagney <cagney@redhat.com>
270
271 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
272 -Werror. -Wformat-nonliteral problems.
273
274 2003-08-15 J. Brobecker <brobecker@gnat.com>
275
276 Further multiarching work mostly for hppa64-*-hpux11:
277 * hppa-tdep.h: New file.
278 * hppa-tdep.c: #include hppa-tdep.c.
279 (hppa32_num_regs): Renamed from hppa_num_regs.
280 (hppa64_num_regs): New constant.
281 (hppa64_call_dummy_breakpoint_offset): New constant.
282 (hppa32_call_dummy_length): New constant.
283 (hppa64_call_dummy_length): New constant.
284 (hppa32_stack_align): Make name 32bit explicit.
285 (hppa32_register_virtual_type): Likewise.
286 (hppa32_extract_return_value): Likewise.
287 (hppa32_use_struct_convention): Likewise.
288 (hppa32_store_return_value): Likewise.
289 (hppa64_register_virtual_type): New function.
290 (hppa64_extract_return_value): New function.
291 (hppa64_use_struct_convention): New function.
292 (hppa64_store_return_value): New function.
293 (hppa_frame_locals_address): Remove declaration, function does
294 not exist anymore.
295 (hppa_register_byte): Add support for PA64 ABI.
296 (hppa_gdbarch_init): Add support for PA64 ABI.
297 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
298 Make name 32bit explicit.
299 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
300 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
301 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
302 (hppa64_hpux_frame_base_before_sigtramp): New function.
303 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
304 * config/pa/tm-hppa64.h: Remove macros that are no longer
305 necessary now that the gdbarch vector is properly setup.
306 Transform some macros into function calls. Some minor cleanup.
307 * config/pa/tm-hppah.h: Update function calls in macros
308 following the function renaming in hppa-hpux-tdep.c.
309 * Makefile.in (hppa_tdep_h): New variable.
310 (hppa-tdep.o): Add dependency over hppa_tdep_h.
311
312 2003-08-14 Michael Snyder <msnyder@redhat.com>
313
314 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
315
316 2003-08-13 J. Brobecker <brobecker@gnat.com>
317
318 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
319 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
320 routine.
321
322 2003-08-13 Michael Snyder <msnyder@redhat.com>
323
324 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
325 (frv_saved_pc_after_call): Use deprecated ftype.
326 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
327 (frv_remote_translate_xfer_address): Remove.
328 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
329
330 2003-08-13 J. Brobecker <brobecker@gnat.com>
331
332 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
333 initialization after the common gdbarch initialization, not before.
334
335 2003-08-13 J. Brobecker <brobecker@gnat.com>
336
337 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
338 (ADDR_BITS_REMOVE): Remove, redundant.
339
340 2003-08-13 J. Brobecker <brobecker@gnat.com>
341
342 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
343 gdbarch method to clear the 2 low bits of text addresses.
344
345 2003-08-12 Andrew Cagney <cagney@redhat.com>
346
347 * Makefile.in (dsrec.o): Update dependencies.
348 * dsrec.c: Include "gdb_assert.h".
349 (make_srec): Use snprintf instead of sprintf, use a literal format
350 string.
351
352 2003-08-12 Andrew Cagney <cagney@redhat.com>
353
354 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
355 FRAME_OBSTACK_ZALLOC.
356
357 2003-08-12 Kevin Buettner <kevinb@redhat.com>
358
359 * i386-tdep.c (i386_gdbarch_init): Enable default support for
360 SSE registers.
361
362 2003-08-10 Mark Kettenis <kettenis@gnu.org>
363
364 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
365 amd64fbsd_sc_reg_offset): Add extern declarations.
366 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
367 declarations.
368
369 2003-08-11 Ben Elliston <bje@wasabisystems.com>
370
371 * MAINTAINERS (write after approval): Update my mail address.
372
373 2003-08-10 Andrew Cagney <cagney@redhat.com>
374
375 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
376
377 2003-08-10 Mark Kettenis <kettenis@gnu.org>
378
379 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
380 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
381 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
382 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
383 i386bsd_sc_reg_offset): Add extern declarations.
384 * i386obsd-nat.c: Include "i386-tdep.h"
385 (_initialize_i386obsd_nat): Remove extern declarations.
386 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
387 declarations.
388 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
389 declarations.
390
391 * i386-tdep.c (i386_register_to_value): Use get_frame_register
392 instead of frame_read_register.
393 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
394 instead of frame_read_register. Use I386_ESP_REGNUM instead of
395 SP_REGNUM.
396 (i386_frame_prev_register): Use frame_unwind_register_unsigned
397 instead of frame_unwind_unsigned_register. Use
398 I386_EFLAGS_REGISTER instead of PS_REGNUM.
399 (i386_get_longjmp_target): Use regcache_read_unsigned_register
400 instead of read_register. Use builtin_type_void_data_ptr instead
401 of builtin_type_void_func_ptr when extracting the address of the
402 jmp_buf.
403 (i386_extract_return_value, i386_store_return_value,
404 i386_pseudo_register_read, i386_pseudo_register_write): Use
405 register_size instead REGISTER_RAW_SIZE.
406
407 2003-08-10 Andrew Cagney <cagney@redhat.com>
408
409 * infcall.c (call_function_by_hand): Use xstrprintf instead of
410 sprintf. Make "name" constant.
411
412 2003-08-10 Mark Kettenis <kettenis@gnu.org>
413
414 * i387-tdep.c (i387_register_to_value): Use get_frame_register
415 instead of frame_read_register.
416 (i387_print_float_info): Use get_frame_register and
417 get_frame_register_unsigned instead of frame_register_read.
418
419 * i386fbsd-nat.c: Include "i386-tdep.h".
420 (child_resume): Make `eflags' an ULONGEST. Use
421 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
422 instead of register_read and register_write.
423
424 * i386bsd-nat.c (fetch_inferior_registers,
425 store_inferior_registers): Don't use && at the end of a line.
426 (_initialize_i386bsd_nat): Fix typo.
427
428 * frame.c (_initialize_frame): Add missing backslash.
429
430 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
431 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
432 and supply_register instead of manipulating the register buffer
433 directly.
434
435 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
436 * config/i386/nm-i386sol2.h
437 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
438
439 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
440 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
441 instructions that GCC likes to mingle into the prologue. Fixes
442 gdb/1253 and gdb/1255.
443
444 2003-08-09 Andrew Cagney <cagney@redhat.com>
445
446 Fix GDB PR cli/926.
447 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
448 * command.h (add_setshow_uinteger_cmd): Declare.
449 * frame.c (set_backtrace_cmd): New function.
450 (show_backtrace_cmd): New function.
451 * frame.c (_initialize_frame): Replace "set/show
452 backtrace-below-main" with "set/show backtrace past-main". Add
453 command "set/show backtrace limit".
454 (backtrace_past_main): Rename "backtrace_below_main".
455 (backtrace_limit): New variable.
456 (get_prev_frame): Update. Check the backtrace_limit.
457
458 2003-08-09 Andrew Cagney <cagney@redhat.com>
459
460 * defs.h (xstrprintf): Declare.
461 * utils.c (xstrprintf): New function.
462 * breakpoint.c (insert_breakpoints): Replace sprintf and
463 non-literal format strings, with xstrprintf and cleanups.
464 (delete_breakpoint,breakpoint_re_set): Ditto.
465 (commands_command, insert_breakpoints): Ditto.
466 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
467 (break_at_finish_command_1): Ditto.
468
469 2003-08-09 Andrew Cagney <cagney@redhat.com>
470
471 * MAINTAINERS (language support): List Adam Fedor as Objective C
472 maintainer.
473
474 2003-08-08 J. Brobecker <brobecker@gnat.com>
475
476 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
477 are now multiarched.
478
479 2003-08-08 J. Brobecker <brobecker@gnat.com>
480
481 * config/pa/tm-hppa64.h: Remove lots of macros that are no
482 longer necessary now that hppa64 is partially multiarch'ed.
483
484 2003-08-08 Andrew Cagney <cagney@redhat.com>
485
486 * interps.c (interp_set): Check for a NULL "old_interp".
487
488 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
489
490 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
491 (install-only): Support DESTDIR.
492 (uninstall): Likewise.
493 (install-gdbtk): Likewise.
494
495 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
496
497 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
498 contains something meaningful at all times.
499
500 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
501
502 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
503
504 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
505
506 * MAINTAINERS (write after approval): Added self.
507
508 2003-08-07 Andrew Cagney <cagney@redhat.com>
509
510 * inferior.h (AT_SYMBOL): Define.
511 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
512 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
513 * mips-tdep.c (mips_call_dummy_address): Delete function.
514 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
515 set call_dummy_address.
516
517 2003-08-07 Andrew Cagney <cagney@redhat.com>
518
519 * language.c (op_error): Delete function.
520 (binop_type_check): Delete function.
521 * language.h (type_op_error, range_op_error): Delete macros.
522 (op_error): Delete declaration.
523
524 2003-08-07 Andrew Cagney <cagney@redhat.com>
525
526 * interps.h (INTERP_MI2, INTERP_MI3): Define.
527
528 2003-08-07 Michal Ludvig <mludvig@suse.cz>
529
530 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
531 (x86_64_push_arguments): Skip the red zone.
532
533 2003-08-05 Andrew Cagney <cagney@redhat.com>
534
535 * reggroups.c (reggroup_next): Check for the final entry.
536
537 2003-08-04 Andrew Cagney <cagney@redhat.com>
538
539 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
540 * cli/cli-script.c (define_command): Call query directly, instead
541 of passing it a buffer.
542 * ocd.c (ocd_error): Pass error a constant format string.
543 * remote-mips.c (mips_error): Use fputs_filtered.
544
545 * solib-svr4.c (_initialize_svr4_solib): Update
546 register_gdbarch_data call.
547 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
548
549 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
550 (register_gdbarch_data): Delete "free" parameter. Update
551 comments.
552 * gdbarch.h, gdbarch.c: Re-generate.
553 * reggroups.c (_initialize_reggroup): Update.
554 * gnu-v3-abi.c (init_gnuv3_ops): Update.
555 * frame-base.c (_initialize_frame_base): Update.
556 * frame-unwind.c (_initialize_frame_unwind): Update.
557 * user-regs.c (_initialize_user_regs): Update.
558 * remote.c (_initialize_remote): Update.
559 * regcache.c (_initialize_regcache): Update.
560
561 * regcache.c (xfree_regcache_descr): Delete function.
562 (_initialize_regcache): Update call to register_gdbarch_data.
563 (init_regcache_descr, init_legacy_regcache_descr): Use
564 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
565
566 * remote.c (free_remote_state): Delete function.
567 (_initialize_remote): Update register_gdbarch_data.
568 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
569 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
570
571 2003-08-04 Andrew Cagney <cagney@redhat.com>
572
573 * reggroups.c (struct reggroup_el): Define.
574 (struct reggroups): Delete field "nr_group". Replace array
575 "group" with a "first" to "last" linked list.
576 (reggroups_init): Update. Allocate using gdbarch's obstack.
577 (reggroups_free): Delete function.
578 (add_group): Update. Add "el" parameter.
579 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
580 (default_groups): Update.
581 (reggroup_next): Replace reggroups.
582 (reggroups_dump): Update.
583 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
584 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
585 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
586
587 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
588
589 * Makefile.in (tui-interp.o): Update dependencies.
590
591 2003-08-04 David Carlton <carlton@kealia.com>
592
593 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
594 to internal_error call.
595 * source.c (forward_search_command): Add "%s" format argument.
596 (reverse_search_command): Ditto.
597 * top.c (quit_confirm): Ditto.
598 * cli/cli-setshow.c (do_setshow_command): Ditto.
599 * cp-valprint.c (cp_print_class_method): Replace
600 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
601 (cp_print_class_member): Ditto.
602 * event-top.c (command_line_handler): Ditto.
603 * linux-proc.c (linux_info_proc_cmd): Ditto.
604 * p-typeprint.c (pascal_type_print_base): Ditto.
605 * p-valprint.c (pascal_object_print_class_method): Ditto.
606 (pascal_object_print_class_member): Ditto.
607 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
608 * remote.c (remote_cisco_section_offsets): Ditto.
609 * top.c (command_line_input): Ditto.
610 * utils.c (vwarning,error_stream,quit): Ditto.
611 * valprint.c (print_floating,print_binary_chars)
612 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
613
614 2003-08-04 Andrew Cagney <cagney@redhat.com>
615
616 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
617
618 2003-08-02 Andrew Cagney <cagney@redhat.com>
619
620 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
621 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
622 amd64fbsd-nat.c.
623
624 2003-08-02 Andrew Cagney <cagney@redhat.com>
625
626 * Makefile.in: Update all dependencies and definitions.
627
628 2003-08-02 Adam Fedor <fedor@gnu.org>
629
630 * linespec.c (is_objc_method_format): New function
631 (decode_line_1, locate_first_half): Use it.
632 Fixes PR objc/1298
633
634 2003-08-01 Andrew Cagney <cagney@redhat.com>
635
636 * NEWS: Mention that m32r is multi-arch.
637 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
638 * configure.tgt: Recognize m32r-*-*.
639 * config/m32r/tm-m32r.h: Delete file.
640 * config/m32r/m32r.mt: New file.
641 * m32r-rom.c (m32r_upload_command): Use hostent only when
642 gethostname succeeds, in order to avoid a compilation
643 warning.
644 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
645 compiler warning.
646
647 2003-08-01 Michael Snyder <msnyder@redhat.com>
648
649 * sh-tdep.c (sh_frame_align): New gdbarch method.
650 (sh_gdbarch_init): Set up frame_align method.
651
652 2003-07-31 Michael Snyder <msnyder@redhat.com>
653
654 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
655 which is already covered by the new frames infrastructure.
656
657 2003-07-31 Andrew Cagney <cagney@redhat.com>
658
659 * user-regs.c (struct user_reg): Add "next" link.
660 (struct user_regs): Replace "user" with "first" and "last" links.
661 (append_user_reg): Add pre-allocated "reg" parameter.
662 (builtin_user_regs): Provide initial value for "last".
663 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
664 (user_regs_init): Allocate memory from the gdbarch obstack.
665 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
666 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
667 linked list.
668 (usernum_to_user_reg): New function.
669 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
670 (value_of_user_reg): Use usernum_to_user_reg.
671 (user_regs_free): Delete function.
672 (_initialize_user_regs): Update register_gdbarch_data call.
673
674 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
675
676 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
677
678 2003-07-30 Michael Snyder <msnyder@redhat.com>
679
680 * value.h (value_being_returned): Add a struct_addr argument.
681 * infcall.c (call_function_by_hand): Pass struct_addr to
682 value_being_returned.
683 * infcmd.c (print_return_value): Pass zero as struct_addr.
684 * values.c (value_being_returned): If struct_addr is passed,
685 use it instead of trying to recover it from the inferior.
686
687 2003-07-30 Kevin Buettner <kevinb@redhat.com>
688
689 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
690 the prologue analyzer won't need to attempt to extract the pc
691 value from the woefully incomplete dummy frame.
692 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
693 possible. Disable code which modifies the frame.
694
695 2003-07-28 Andrew Cagney <cagney@redhat.com>
696
697 * annotate.c (annotate_breakpoints_headers): Restrict annotation
698 to level 2.
699 (annotate_breakpoints_table, annotate_record): Ditto.
700 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
701 (annotate_field_name_end, annotate_field_value): Ditto.
702 (annotate_field_end, annotate_frame_source_begin): Ditto.
703 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
704 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
705 (annotate_frame_begin, annotate_frame_function_name): Ditto.
706 (annotate_frame_address_end, annotate_frame_address): Ditto.
707 (annotate_frame_args, annotate_frame_end): Ditto.
708 (annotate_frame_where, annotate_arg_begin): Ditto.
709 (annotate_arg_name_end, annotate_arg_value): Ditto.
710 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
711 (annotate_function_call, annotate_signal_name): Ditto.
712 (annotate_signal_string, annotate_signal_name_end): Ditto.
713 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
714 (annotate_value_begin, annotate_value_history_value): Ditto.
715 (annotate_value_history_end, annotate_value_end): Ditto.
716 (annotate_display_begin, annotate_display_number_end): Ditto.
717 (annotate_display_format, annotate_display_expression): Ditto.
718 (annotate_display_expression_end, annotate_display_value): Ditto.
719 (annotate_display_end, annotate_array_section_begin): Ditto.
720 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
721 (annotate_elt, annotate_array_section_end): Ditto.
722
723 2003-07-28 Andrew Cagney <cagney@redhat.com>
724
725 * regcache.c (struct regcache_descr): Update comments on
726 nr_raw_registers.
727 (init_legacy_regcache_descr): Don't set nr_raw_registers or
728 sizeof_raw_register_valid_p.
729 (init_regcache_descr): Set nr_raw_registers and
730 sizeof_raw_register_valid_p before calling
731 init_legacy_regcache_descr.
732
733 2003-07-28 Andrew Cagney <cagney@redhat.com>
734
735 * mips-tdep.c (print_gp_register_row): Print the GPR's register
736 MOD NUM_REGS.
737
738 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
739
740 * thread.c (info_threads_command): Use get_selected_frame ().
741 Check that there is at least one non-sentinel frame.
742
743 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
744
745 * m68hc11-tdep.c (struct frame_extra_info): Remove.
746 (m68hc11_pop_frame): Remove.
747 (m68hc11_frame_saved_pc): Remove.
748 (m68hc11_frame_chain): Remove.
749 (m68hc11_frame_init_saved_regs): Remove.
750 (m68hc11_init_extra_frame_info): Remove.
751 (m68hc11_store_struct_return): Remove.
752 (m68hc11_saved_pc_after_call): Remove.
753
754 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
755
756 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
757 frame unwind information.
758 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
759 and adapted for frame unwinding.
760 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
761 (m68hc11_unwind_pc): New function.
762 (m68hc11_frame_unwind_cache): New function to analyze frames.
763 (m68hc11_frame_this_id): New function to create new frame struct.
764 (m68hc11_frame_prev_register): New function to unwind a register from
765 the frame.
766 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
767 (m68hc11_frame_p): New function for the above.
768 (m68hc11_frame_base_address): New function to return fp of frame.
769 (m68hc11_frame_args_address): Update for frame.
770 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
771 (m68hc11_unwind_sp): New function.
772 (m68hc11_unwind_dummy_id): New function.
773 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
774 calls.
775
776 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
777
778 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
779 (m68hc11_guess_from_prologue): Advance the pc and frame size only
780 when we are beyond the current pc.
781
782 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
783
784 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
785 from m68hc11_push_arguments.
786 (m68hc11_push_arguments): Remove.
787 (m68hc11_push_return_address): Remove.
788 (m68hc11_gdbarch_init): Install the above; remove above deprecated
789 handlers; remove deprecated_extra_stack_alignment_needed.
790
791 2003-07-27 Andrew Cagney <cagney@redhat.com>
792
793 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
794 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
795 REAL_PC and not the pointer.
796 * hppa-hpux-tdep.c: Include frame.h
797
798 2003-07-27 Andrew Cagney <cagney@redhat.com>
799
800 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
801 GDB_MULTI_ACH_PARTIAL.
802
803 2003-07-27 Andrew Cagney <cagney@redhat.com>
804
805 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
806 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
807 operator at start and not end of line.
808 (decode_prologue): Ditto.
809 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
810 frame_unwind_register_unsigned instead of
811 frame_unwind_unsigned_register.
812 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
813 read_register.
814 (m32r_push_dummy_call): Use register_size instead of
815 REGISTER_RAW_SIZE.
816 (m32r_frame_sniffer): Replace m32r_frame_p.
817 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
818 * m32r-rom.c (report_transfer_performance): Delete extern
819 declaration.
820 (m32r_load, m32r_upload_command): Use print_transfer_performance
821 instead of report_transfer_performance.
822 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
823 / add_show_from_set.
824
825 2003-07-26 Andrew Cagney <cagney@redhat.com>
826
827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
828 store_return_value and extract_struct_value_address.
829
830 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
831
832 PR c++/1267
833 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
834 NULL, default to the section containing PC.
835
836 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
837
838 * NEWS: Mention "regs" deprecated for m68hc11 too.
839
840 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
841 (m68hc11_print_register): New function to print out one register.
842 (m68hc11_print_registers_info): New function to print registers.
843 (show_regs): Deprecate and use the above.
844 (m68hc11_gdbarch_init): Install the print_registers_info.
845
846 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
847
848 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
849 that we have a SIGTRAP before returning non-zero.
850
851 2003-07-23 Michal Ludvig <mludvig@suse.cz>
852 Elena Zannoni <ezannoni@redhat.com>
853
854 * linespec.c (decode_line_2): Avoid crash if
855 find_function_start_sal() returns empty record.
856
857 2003-07-23 Andreas Schwab <schwab@suse.de>
858
859 * ia64-tdep.c (ia64_print_insn): New function.
860 (ia64_gdbarch_init): Set print_insn to it.
861 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
862 deprecated_tm_print_insn_info.
863
864 2003-07-22 Michael Snyder <msnyder@redhat.com>
865
866 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
867 handle 8-bit returns (long long).
868 (h8300h_extract_return_value): Ditto.
869 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
870
871 2003-07-22 Andrew Cagney <cagney@redhat.com>
872
873 * gdbarch.c Include "gdb_obstack.h".
874 (struct gdbarch): Add an "obstack".
875 (alloc_gdbarch_data): Allocate the gdbarch data using
876 GDBARCH_OBSTACK_CALLOC.
877 (free_gdbarch_data): Delete function.
878 (gdbarch_obstack_zalloc): New function.
879 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
880 Assert that the architecture is not initialized.
881 (gdbarch_alloc): Allocate an obstack, allocate the architecture
882 vector from the obstack.
883 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
884 architecture obstack.
885 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
886 (set_gdbarch_data): Assert that the data is not initialized.
887 (struct gdbarch_data): Delete member "free".
888 (register_gdbarch_data): Do not initialize "free".
889 * gdbarch.h, gdbarch.c: Re-generate.
890
891 2003-07-22 Andrew Cagney <cagney@redhat.com>
892
893 * configure.in (build_warnings): Add -Wformat-nonliteral.
894 * configure: Re-generate.
895
896 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
897
898 * dwarf2loc.c (locexpr_describe_location): Fix typos.
899
900 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
901
902 * findvar.c (read_var_value): Remove case for thread local storage
903 variables. It is now entirely handled by the dwarf2 location
904 expression code.
905 * printcmd.c (address_info): Ditto.
906 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
907 enumeration value.
908 (struct symbol): Remove objfile field, which was used by
909 LOC_THREAD_LOCAL_STATIC only.
910 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
911 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
912 usage of objfile pointer.
913 * dwarf2loc.c (locexpr_describe_location): Add case to handle
914 thread local variables.
915 Add include of objfiles.h.
916 * dwarf2expr.c (execute_stack_op): Add comments about thread local
917 storage variables.
918 * Makefile.in (dwarf2loc.o): Update dependencies.
919
920 2003-07-22 Andrew Cagney <cagney@redhat.com>
921
922 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
923 get_frame_base.
924 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
925 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
926 (struct value): Add opaque declaration.
927 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
928
929 2003-07-21 Andrew Cagney <cagney@redhat.com>
930
931 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
932 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
933
934 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
935
936 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
937 regcache_cooked_read_unsigned instead of read_register.
938 (m68hc11_saved_pc_after_call): Likewise.
939 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
940 instead of write_register.
941 (m68hc11_register_type): New function.
942 (m68hc11_register_virtual_type): Remove.
943 (m68hc11_store_return_value): Convert to use the regcache.
944 (m68hc11_extract_struct_value_address): Likewise.
945 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
946 m68hc11_register_type; undeprecate store_return_value and
947 extract_struct_value_address.
948
949 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
950
951 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
952 and translate to use regcache.
953 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
954
955 2003-07-18 Andrew Cagney <cagney@redhat.com>
956
957 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
958 * gdbarch.h, gdbarch.c: Re-generate.
959 * i386-tdep.c (i386_gdbarch_init): Do not set
960 DWARF2_BUILD_FRAME_INFO.
961 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
962 unconditionally.
963 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
964 DWARF2_BUILD_FRAME_INFO.
965
966 2003-07-18 Andrew Cagney <cagney@redhat.com>
967
968 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
969 * disasm.c (gdb_disassemble_info): Initilize di.arch.
970
971 2003-07-18 Andrew Cagney <cagney@redhat.com>
972
973 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
974 frame_unwind_address_in_block, instead of frame_pc_unwind.
975 (dwarf2_frame_cache): Ditto.
976
977 2003-07-18 Andrew Cagney <cagney@redhat.com>
978
979 * user-regs.h (struct gdbarch): Declare opaque.
980 * ui-out.h (struct ui_file): Declare opaque.
981 * dwarf2-frame.h (struct frame_info): Declare opaque.
982
983 2003-07-18 Kris Warkentin <kewarken@qnx.com>
984
985 * nto-procfs.c: Clean ARI hits. Change #include <..> to
986 #include "...".
987 (procfs_meminfo): Change strerror to safe_strerror.
988 (procfs_can_run): Remove K&R badness.
989
990 2003-07-17 Michael Snyder <msnyder@redhat.com>
991
992 * remote-sim.c: Comment typo fix.
993
994 2003-07-17 Andrew Cagney <cagney@redhat.com>
995
996 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
997 configure.
998 * sparc-tdep.c (sparc_intreg_size): Make non-static.
999 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1000 GDB_MULTI_ARCH_PARTIAL.
1001
1002 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1003
1004 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1005 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1006 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1007
1008 2003-07-16 Theodore A. Roth <troth@openavr.org>
1009
1010 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1011 found.
1012 (avr_frame_unwind_cache): Don't unwind FP for main.
1013 Update a comment.
1014 Save the computed prev_sp.
1015 (avr_saved_regs_unwinder): Remove function.
1016 (avr_frame_prev_register): Use PC unwind logic from
1017 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1018
1019 2003-07-16 Andrew Cagney <cagney@redhat.com>
1020
1021 * frame-base.h (frame_base_p_ftype): Delete definition.
1022 (frame_base_append_predicate): Delete declaration.
1023 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1024 (frame_unwind_append_predicate): Delete declaration.
1025 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1026 (append_predicate): Delete parameter "p".
1027 (frame_unwind_append_predicate): Delete function.
1028 (frame_unwind_append_sniffer): Update call to append_predicate.
1029 (frame_unwind_free): Delete function.
1030 (_initialize_frame_unwind): Pass NULL as "free" to
1031 register_gdbarch_data.
1032 (frame_unwind_init): Append the dummy_frame_sniffer.
1033 (frame_unwind_find_by_frame): Simplify.
1034 * frame-base.c (struct frame_base_table): Delete field "p".
1035 (append_predicate): Delete parameter "p".
1036 (frame_base_append_predicate): Delete function.
1037 (frame_base_append_sniffer): Update call to append_predicate.
1038 (frame_base_free): Delete function.
1039 (frame_base_find_by_frame): Simplify.
1040 (_initialize_frame_base): Pass NULL as "free" to
1041 register_gdbarch_data.
1042 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1043 (x86_64_sigtramp_frame_sniffer): Replace
1044 "x86_64_sigtramp_frame_p".
1045 (x86_64_init_abi): Set the frame unwind sniffers.
1046 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1047 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1048 (m68k_gdbarch_init): Set the frame unwind sniffers.
1049 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1050 "i386_sigtramp_frame_p".
1051 (i386_frame_sniffer): Replace "i386_frame_p".
1052 (i386_gdbarch_init): Set the frame unwind sniffers.
1053 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1054 (avr_gdbarch_init): Set the frame unwind sniffers.
1055 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1056 "alpha_sigtramp_frame_p"
1057 (alpha_heuristic_frame_sniffer): Replace
1058 "alpha_heuristic_frame_p".
1059 (alpha_gdbarch_init): Set the frame unwind sniffers.
1060 (alpha_dwarf2_init_abi): Ditto.
1061 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1062 "alpha_debug_frame_p".
1063 (alpha_mdebug_frame_base_sniffer): Replace
1064 "alpha_mdebug_frame_base_p".
1065 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1066 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1067 (d10v_gdbarch_init): Set the frame unwind sniffer.
1068 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1069 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1070 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1071 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1072 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1073 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1074
1075 2003-07-16 Michael Snyder <msnyder@redhat.com>
1076
1077 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1078 should go thru sh_dsp_register_sim_regno, else the dsp regs
1079 will not get the right values.
1080
1081 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1082
1083 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1084 deprecated_store_floating by call to store_typed_floating.
1085 (sh_sh4_register_convert_to_raw): Substitute call to
1086 deprecated_extract_floating by call to extract_typed_floating.
1087
1088 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1089
1090 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1091
1092 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1093
1094 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1095 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1096 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1097 as possible.
1098 (do_pseudo_register): Remove.
1099 (sh_push_dummy_code): New function.
1100 (sh64_store_struct_return): Rename from sh_store_struct_return.
1101 Only called for sh64 now.
1102 (sh_extract_struct_value_address): Regcache'ify.
1103 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1104 and accomodate new tasks.
1105 (sh64_push_return_address): Rename from sh_push_return_address.
1106 Only called for sh64 now.
1107 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1108 Regcache'ify.
1109 (sh3e_sh4_extract_return_value): Regcache'ify.
1110 (sh_default_store_return_value): Ditto.
1111 (sh3e_sh4_store_return_value): Ditto.
1112 (sh_default_register_byte): Remove.
1113 (sh_sh4_register_byte): Remove.
1114 (sh_default_register_raw_size): Remove.
1115 (sh_sh4_register_raw_size): Remove.
1116 (sh_register_virtual_size): Remove.
1117 (sh_sh3e_register_virtual_type): Remove.
1118 (sh_sh3e_register_type): New function.
1119 (sh_sh4_register_virtual_type): Remove.
1120 (sh_sh4_register_type): New function.
1121 (sh_default_register_virtual_type): Remove.
1122 (sh_default_register_type): New function.
1123 (do_fv_register_info): Add parameters to accomodate call from
1124 sh_print_registers_info.
1125 (do_dr_register_info): Ditto.
1126 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1127 Add parameters to accomodate call from sh_print_registers_info.
1128 (sh_do_fp_register): Ditto.
1129 (sh64_do_pseudo_register): Call do_dr_register_info,
1130 do_fv_register_info and sh_do_fp_register with default parameters.
1131 (sh_do_register): Add parameters to accomodate call from
1132 sh_print_registers_info.
1133 (sh_print_register): Ditto.
1134 (sh_print_registers_info): Rename from sh_do_registers_info.
1135 Add parameters to be used as gdbarch_print_registers_info
1136 implementation. Accomodate removed do_pseudo_register function
1137 pointer.
1138 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1139 function pointer. Call sh_print_register with default parameters.
1140 (sh64_do_registers_info): Call sh_print_registers_info instead of
1141 sh_do_registers_info.
1142 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1143 detection of deprecated vs. non-deprecated functionality.
1144 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1145 function pointer assignments by direct function calls.
1146
1147 2003-07-15 Andrew Cagney <cagney@redhat.com>
1148
1149 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1150 (frame_register_unwind, create_new_frame): Ditto.
1151 (legacy_get_prev_frame, get_frame_type): Ditto.
1152 (get_frame_base_address): Use frame_base_find_by_frame.
1153 (get_frame_locals_address): Use frame_base_find_by_frame.
1154 (get_frame_args_address): Use frame_base_find_by_frame.
1155 * frame-base.h (frame_base_sniffer_ftype): Declare.
1156 (frame_base_append_sniffer): Declare.
1157 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1158 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1159 (frame_base_append_sniffer): New function.
1160 (frame_base_append_predicate): Add a NULL sniffer.
1161 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1162 (struct frame_base_table): Add "sniffer".
1163 (frame_base_free): Free the "sniffer" table.
1164 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1165 (frame_unwind_append_sniffer): Declare.
1166 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1167 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1168 (struct frame_unwind_table): Add "sniffer", delete "middle".
1169 (append_predicate): Add "sniffer" parameter, append the sniffer.
1170 (frame_unwind_init): Update append_predicate call.
1171 (frame_unwind_append_sniffer): New function.
1172 (frame_unwind_append_predicate): Update append_predicate call.
1173 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1174
1175 2003-07-15 Andrew Cagney <cagney@redhat.com>
1176
1177 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1178 before code inhibiting repeated unwind attempts. Add to
1179 commentary on that test's problems.
1180 * blockframe.c (inside_main_func): Look for "main" in the minimal
1181 symbol table.
1182 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1183 identical.
1184
1185 2003-07-15 Andrew Cagney <cagney@redhat.com>
1186
1187 * complaints.c (struct explanation): Define.
1188 (struct complaints): Change type of "explanation" to "struct
1189 explanation".
1190 (symfile_explanations): Convert to a "struct explanation" table.
1191 (vcomplaint): Update.
1192
1193 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1194
1195 * x86-64-linux-nat.c (regmap): Removed.
1196 (supply_gregset, fill_gregset): Call
1197 x86_64_linux_(fill,supply)_gregset functions.
1198 * x86-64-linux-tdep.c (USER_*): New defines.
1199 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1200 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1201 New functions.
1202 (fetch_core_registers): Ditto.
1203 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1204 * x86-64-linux-tdep.h: New file.
1205 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1206 and core-regset.o.
1207 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1208
1209 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1210
1211 * x86-64-tdep.c (x86_64_store_return_value): Use
1212 regcache_cooked_write_part instead of regcache_cooked_write.
1213
1214 * configure.host: Add x86_64-*-freebsd*.
1215 * configure.tgt: Add x86_64-*-freebsd*.
1216 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1217 * amd64fbsd-nat.c: New file.
1218 * amd64fbsd-tdep.c: New file.
1219 * config/i386/nm-fbsd64.h: New file.
1220 * config/i386/fbsd64.mh: New file.
1221 * config/i386/fbsd64.mt: New file.
1222
1223 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1224
1225 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1226 `sc_regs_offset' and `sc_fpregs_offset'.
1227 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1228 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1229 (alpha_sigtramp_register_address): Rewrite to use new members of
1230 `struct gdbarch_tdep'.
1231 (alpha_gdbarch_init): Initialize new members of struct
1232 gdbarch_tdep'.
1233 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1234 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1235 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1236 (alphafbsd_pc_in_sigtramp): Implement.
1237 (alphafbsd_sigtramp_offset): New function.
1238 (alphafbsd_sigcontext_addr): New function.
1239 (alphafbsd_init_abi): Initialize signal trampoline related members
1240 of `struct gdbarch_tdep'.
1241 (_initialize_alphafbsd_tdep): Add prototype.
1242
1243 2003-07-11 Theodore A. Roth <troth@openavr.org>
1244
1245 * Makefile.in (install-only): Quote sed expression when generating
1246 transformed_name.
1247
1248 2003-07-11 Richard Henderson <rth@redhat.com>
1249
1250 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1251 * dwarf2-frame.c: Include complaints.h.
1252 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1253 variable initialization; return NULL on error.
1254 (decode_frame_entry): New.
1255
1256 2003-07-11 Andrew Cagney <cagney@redhat.com>
1257
1258 * frame.h (frame_address_in_block): Delete declaration.
1259 * blockframe.c (frame_address_in_block): Delete function.
1260 (get_frame_block): Use get_frame_address_in_block.
1261 (block_innermost_frame): Ditto.
1262 * stack.c (print_frame, backtrace_command_1): Ditto.
1263
1264 * frame.h (get_frame_address_in_block): Declare.
1265 (frame_unwind_address_in_block): Declare.
1266 * frame.c (frame_unwind_address_in_block): New function.
1267 (get_frame_address_in_block): New function.
1268
1269 2003-07-10 Andrew Cagney <cagney@redhat.com>
1270
1271 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1272 pre-default. Note: re-generate has no effect.
1273
1274 2003-07-10 Andrew Cagney <cagney@redhat.com>
1275
1276 * gdbarch.sh: When a variable, but not a function, compare against
1277 0. Fix problem in previous patch.
1278 * gdbarch.c: Re-generate.
1279
1280 2003-07-10 Andrew Cagney <cagney@redhat.com>
1281
1282 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1283 functions against NULL, not 0.
1284 * gdbarch.c: Re-generate.
1285
1286 2003-07-10 Fred Fish <fnf@ninemoons.com>
1287
1288 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1289 null string instead of a null pointer.
1290 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1291
1292 2003-07-09 Michael Snyder <msnyder@redhat.com>
1293
1294 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1295
1296 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1297
1298 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1299 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1300 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1301 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1302 * x86-64-tdep.c: ... from here.
1303
1304 2003-07-09 Andreas Schwab <schwab@suse.de>
1305
1306 * m68k-tdep.h (enum struct_return): Define.
1307 (struct gdbarch_tdep): Add struct_return.
1308 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1309 bytes are padded to the right, not to the left. Pass struct value
1310 address in register %a1, not on stack.
1311 (m68k_use_struct_convention): New function.
1312 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1313 struct_return in tdep to pcc_struct_return.
1314 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1315 reg_struct_return.
1316
1317 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1318
1319 * somread.c (som_symfile_offsets): Fix compilation error.
1320
1321 2003-07-09 Andrew Cagney <cagney@redhat.com>
1322
1323 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1324 Add comments about the checks.
1325
1326 2003-07-08 Andrew Cagney <cagney@redhat.com>
1327
1328 * Makefile.in: Make dependency section headers consistent.
1329 (config_h): Move to $BUILD headers section.
1330 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1331 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1332 (ada-exp.tab.c): Move to YACC/LEX section.
1333 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1334 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1335
1336 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1337
1338 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1339 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1340 of strerror with safe_strerror, use ISO C function definitions,
1341 and replace instances of sprintf with snprintf.
1342
1343 2003-07-07 Andrew Cagney <cagney@redhat.com>
1344
1345 * frame.c (get_prev_frame): Enable check for identical frames.
1346 Update comments. Update error messages.
1347
1348 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1349
1350 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1351
1352 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1353
1354 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1355 sort_symtab_syms, no longer necessary.
1356
1357 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1358
1359 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1360
1361 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1362
1363 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1364 (mips_register_byte): Likewise.
1365
1366 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1367
1368 * Makefile.in (sparc_tdep_h): New.
1369 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1370 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1371 * sparc-linux-nat.c: Include "sparc-tdep.h".
1372 * sparc-nat.c: Likewise.
1373 * sparc-tdep.c: Likewise.
1374 * sparc64nbsd-nat.c: Likewise.
1375 * sparcnbsd-nat.c: Likewise.
1376 * sparcnbsd-tdep.c: Likewise.
1377 * sparc-tdep.h: New file.
1378 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1379 and sparc_npc_regnum.
1380
1381 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1382
1383 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1384 (mips_linux_cannot_store_register): List supported instead of
1385 unsupported registers.
1386
1387 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1388
1389 * disasm.c (dump_insns): Separate instructions from addresses.
1390
1391 2003-07-07 Andreas Schwab <schwab@suse.de>
1392
1393 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1394 dependencies.
1395 * m68k-tdep.c (NUM_FREGS): Delete.
1396 (SIG_PC_FP_OFFSET): Delete.
1397 (TARGET_M68K): Delete.
1398 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1399 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1400 P_MOVEL_SP, P_MOVEML_SP): Define.
1401 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1402 P_TRAP): Delete.
1403 (m68k_register_raw_size): Delete.
1404 (m68k_register_virtual_size): Delete.
1405 (m68k_register_type): Renamed from m68k_register_virtual_type and
1406 add gdbarch argument.
1407 (m68k_store_struct_return): Delete.
1408 (m68k_deprecated_extract_return_value): Delete.
1409 (m68k_deprecated_extract_struct_value_address): Delete.
1410 (m68k_frame_chain): Delete.
1411 (m68k_frame_saved_pc): Delete.
1412 (m68k_fix_call_dummy): Delete.
1413 (m68k_push_dummy_frame): Delete.
1414 (m68k_pop_frame): Delete.
1415 (m68k_extract_return_value): New function.
1416 (m68k_store_return_value): Rewrite using regcache.
1417 (m68k_extract_struct_value_address): Rewrite using regcache.
1418 (m68k_push_dummy_call): New function.
1419 (struct m68k_frame_cache): Define.
1420 (m68k_alloc_frame_cache): New function.
1421 (m68k_analyze_frame_setup): New function.
1422 (m68k_analyze_register_saves): New function.
1423 (m68k_analyze_prologue): New function.
1424 (m68k_skip_prologue): Rewrite using above functions.
1425 (m68k_unwind_pc): New function.
1426 (m68k_frame_cache): New function.
1427 (m68k_frame_this_id): New function.
1428 (m68k_frame_prev_register): New function.
1429 (m68k_frame_unwind): New variable.
1430 (m68k_frame_p): New function.
1431 (m68k_sigtramp_frame_cache): New function.
1432 (m68k_sigtramp_frame_this_id): New function.
1433 (m68k_sigtramp_frame_prev_register): New function.
1434 (m68k_sigtramp_frame_unwind): New variable.
1435 (m68k_sigtramp_frame_p): New function.
1436 (m68k_frame_base_address): New function.
1437 (m68k_frame_base): New function.
1438 (m68k_unwind_dummy_id): New function.
1439 (fill_gregset): Use regcache_collect.
1440 (fill_fpregset): Likewise.
1441 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1442 defined.
1443 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1444 deprecated_init_frame_pc, deprecated_store_struct_return,
1445 deprecated_extract_return_value, deprecated_store_return_value,
1446 deprecated_frame_chain, deprecated_frame_saved_pc,
1447 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1448 deprecated_register_virtual_size,
1449 deprecated_max_register_raw_size,
1450 deprecated_max_register_virtual_size,
1451 deprecated_register_virtual_type, deprecated_register_size,
1452 deprecated_register_byte, deprecated_register_bytes,
1453 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1454 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1455 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1456 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1457 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1458 deprecated_push_dummy_frame, deprecated_pop_frame,
1459 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1460 only if SYSCALL_TRAP is defined. Set extract_return_value,
1461 store_return_value, extract_struct_value_address, register_type,
1462 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1463 predicates.
1464 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1465 M68K_MAX_REGISTER_SIZE): Define.
1466 (struct m68k_sigtramp_info): Define.
1467 (struct gdbarch_tdep): Add get_sigtramp_info.
1468 * m68klinux-nat.c (fetch_register): Use register_size instead of
1469 REGISTER_RAW_SIZE. Don't put assignment in if.
1470 (store_register): Likewise.
1471 (fetch_inferior_registers): Likewise.
1472 (store_inferior_registers): Likewise.
1473 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1474 (m68k_linux_frame_saved_pc): Delete.
1475 (m68k_linux_sigcontext_reg_offset,
1476 m68k_linux_ucontext_reg_offset): Define.
1477 (m68k_linux_get_sigtramp_info): New function.
1478 (m68k_linux_extract_return_value): Rewrite using regcache.
1479 (m68k_linux_store_return_value): Likewise.
1480 (m68k_linux_extract_struct_value_address): Likewise.
1481 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1482 Don't set deprecated_frame_saved_pc,
1483 deprecated_extract_return_value, deprecated_store_return_value,
1484 deprecated_extract_struct_value_address. Set
1485 extract_return_value, store_return_value,
1486 extract_struct_value_address.
1487
1488 2003-07-07 Andrew Cagney <cagney@redhat.com>
1489
1490 * expprint.c: Include "user-regs.h" instead of "frame.h".
1491 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1492 frame_map_regnum_to_name.
1493 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1494 (frame_map_name_to_regnum): Simplify, call
1495 user_reg_map_name_to_regnum.
1496 (frame_map_regnum_to_name): Simplify, call
1497 user_reg_map_regnum_to_name.
1498 (frame_register_unwind): Update.
1499 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1500 (_initialize_frame_reg): Call user_reg_add_builtin.
1501 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1502 (value_of_register): Use value_of_user_reg.
1503 * eval.c (evaluate_subexp_standard): Update.
1504 * parse.c (write_dollar_variable): Update.
1505 * d10v-tdep.c (d10v_print_registers_info): Update.
1506 * infcmd.c (registers_info): Update.
1507 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1508 (builtin_regs_h): Delete macro.
1509 (user_regs_h): Define.
1510 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1511 (builtin-regs.o): Delete target.
1512 (user-regs.o): Specify dependencies.
1513 (expprint.o): Update dependencies.
1514 (findvar.o): Update dependencies.
1515 (frame.o): Update dependencies.
1516 (std-regs.o): Update dependencies.
1517
1518 2003-07-06 Christopher Faylor <cgf@redhat.com>
1519
1520 * win32-nat.c (solib_symbols_add): Use one variable for all section
1521 address stuff. Pass variable rather than address of variable to
1522 safe_symbol_file_add.
1523
1524 2003-07-06 Andreas Schwab <schwab@suse.de>
1525
1526 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1527
1528 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1529
1530 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1531
1532 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1533
1534 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1535
1536 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1537
1538 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1539 * config/i386/nto.mh: New file.
1540 * config/i386/nm-nto.h: New file.
1541 * configure.host: Add i[3456]86-*-nto*.
1542
1543 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1544
1545 * remote-vx.c (vx_add_symbols): Fix compilation error.
1546
1547 2003-07-03 Andrew Cagney <cagney@redhat.com>
1548
1549 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1550 * gdbarch.h, gdbarch.c: Re-generate.
1551 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1552 (legacy_register_name): Declare.
1553 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1554 (REGISTER_NAME): Define.
1555 * sparc-tdep.c (legacy_register_name): New function.
1556 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1557 (REGISTER_NAME): Define.
1558 (hppa64_register_name): Declare.
1559 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1560 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1561 (hppa64_register_name): New function.
1562 (hppa_register_name): New function.
1563 * arch-utils.c (legacy_register_name): Delete.
1564 * arch-utils.h (legacy_register_name): Delete.
1565
1566 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1567
1568 * cli/cli-interp.c (cli_interpreter_resume): Update the
1569 cli_uiout's stream to gdb_stdout.
1570
1571 2003-07-03 Andrew Cagney <cagney@redhat.com>
1572
1573 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1574 predicate.
1575 * gdbarch.h, gdbarch.c: Re-generate.
1576 * regcache.c (init_regcache_descr): Use legacy code when either
1577 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1578
1579 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1580
1581 * NEWS: Move "set logging" entry into GDB 6.0 section.
1582
1583 2003-07-02 Jim Blandy <jimb@redhat.com>
1584
1585 * s390-tdep.c (struct frame_extra_info): new member:
1586 'stack_bought_valid'.
1587 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1588 initialize fextra_info->stack_bought.
1589 (s390_frameless_function_invocation): Don't trust the value of
1590 fextra_info_ptr->stack_bought unless
1591 fextra_info->stack_bought_valid is set.
1592
1593 New S390 prologue analyzer.
1594 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1595 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1596 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1597 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1598 compute_x_addr, s390_on_stack, s390_store,
1599 s390_get_signal_frame_info): New functions.
1600 (S390_NUM_SPILL_SLOTS): New macro.
1601 (s390_get_frame_info): Rewritten.
1602 (is_arg_reg): Deleted.
1603
1604 Break out the decoding of S/390 instructions into separate
1605 functions, to make it more legible, and easier to check
1606 against the spec.
1607 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1608 is_rx, is_rxe): New functions.
1609 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1610 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1611 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1612 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1613 enums for opcode values. (Is this an improvement?)
1614
1615 2003-07-02 Andrew Cagney <cagney@redhat.com>
1616
1617 * i386-tdep.c: Revert change committed as part of trad-frame code
1618 below.
1619
1620 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1621
1622 * breakpoint.c (insert_catchpoint): Make static.
1623
1624 2003-07-02 Andreas Schwab <schwab@suse.de>
1625
1626 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1627 former ia64_push_arguments and ia64_push_return_address, and use
1628 regcache functions instead of read/write_register.
1629 (ia64_gdbarch_init): Set push_dummy_call instead of
1630 deprecated_push_arguments and deprecated_push_return_address.
1631
1632 2003-07-01 Andreas Jaeger <aj@suse.de>
1633
1634 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1635 before the call.
1636 Set %rax only to number of SSE registers used.
1637
1638 2003-07-01 Andrew Cagney <cagney@redhat.com>
1639
1640 * trad-frame.h: Update comments, a -1 .addr is reserved.
1641 (trad_frame_value_p, trad_frame_addr_p): Declare.
1642 (trad_frame_reg_p): Declare.
1643 (trad_frame_set_value): Rename trad_frame_register_value.
1644 (trad_frame_set_unknown): Declare.
1645 * trad-frame.c (trad_frame_realreg_p): New function.
1646 (trad_frame_addr_p, trad_frame_value_p): New function.
1647 (trad_frame_set_unknown): New function.
1648 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1649 (trad_frame_prev_register): Use trad_frame_realreg_p,
1650 trad_frame_addr_p and trad_frame_value_p.
1651 (trad_frame_set_value): Rename trad_frame_register_value.
1652 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1653 and trad_frame_set_value.
1654
1655 2003-06-30 Jim Blandy <jimb@redhat.com>
1656
1657 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1658 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1659 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1660 for 16 registers, and then 32 more bytes.
1661 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1662 New macros.
1663 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1664 Move up in the file, since it's now used by is_simple_arg.
1665 (is_simple_arg): Don't assume registers are four bytes long.
1666 Exclude all double arguments. Extended floats are not simple
1667 args.
1668 (is_power_of_two): New function.
1669 (pass_by_copy_ref): Call is_power_of_two, and check that the
1670 length fits in a register, rather than listing all the acceptable
1671 sizes. Extended floats are not passed by reference.
1672 (s390_push_arguments): Don't assume registers are four bytes long.
1673 Reserve an argument register to point to the buffer for structures
1674 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1675 S390_STACK_FRAME_OVERHEAD.
1676
1677 2003-06-30 Andreas Schwab <schwab@suse.de>
1678
1679 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1680 format error message.
1681
1682 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1683
1684 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1685
1686 2003-06-30 David Carlton <carlton@kealia.com>
1687
1688 Band-aid for PR c++/1245.
1689 * Makefile.in (cp-support.o): Depend on complaints_h.
1690 * cp-support.c: Include complaints.h. Add declaration for
1691 find_last_component.
1692 (cp_find_first_component): Separate code into
1693 cp_find_first_component_aux.
1694 (cp_find_first_component_aux): Call demangled_name_complaint.
1695 (demangled_name_complaint): New.
1696
1697 2003-06-30 Andrew Cagney <cagney@redhat.com>
1698
1699 * remote.c (remote_write_bytes): Explicitly compute and then use
1700 the payload size. Update comments to reflect. Fixes problem of
1701 GDB not sending small packets as found by Fred Fish.
1702
1703 2003-06-30 Andrew Cagney <cagney@redhat.com>
1704
1705 * remote.c (remote_async_wait): Fix -Wformat problem.
1706
1707 2003-06-29 Andrew Cagney <cagney@redhat.com>
1708
1709 * remote.c (remote_wait): Call error, and not warning, when the
1710 packet is corrupt.
1711 (remote_async_wait): Ditto.
1712
1713 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1714
1715 * sparc-tdep.c (sparc_y_regnum): Make external again.
1716
1717 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1718
1719 * cli/cli-logging.c (pop_output_files): Add void to function
1720 definition.
1721
1722 2003-06-29 Andrew Cagney <cagney@redhat.com>
1723
1724 * frame.c (frame_register_unwind): Use unsigned char when dumping
1725 the buffer contents.
1726
1727 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1728
1729 * cli/cli-logging.c: New file.
1730 * cli-out.c (struct ui_out_data): Add original_stream.
1731 (cli_redirect): New function.
1732 (cli_ui_out_impl): Add cli_redirect.
1733 (cli_out_new): Initialize original_stream.
1734 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1735 (uo_redirect, ui_out_redirect): New.
1736 * ui-out.h (struct ui_out_impl): Add redirect member.
1737 (redirect_ftype): New.
1738 (ui_out_redirect): Add prototype.
1739 * Makefile.in: Add rules for cli-logging.c.
1740 * NEWS: Mention "set logging".
1741
1742 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1743
1744 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1745
1746 2003-06-27 Andrew Cagney <cagney@redhat.com>
1747
1748 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1749 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1750 * avr-tdep.c (avr_call_dummy_address): Delete function.
1751 (avr_gdbarch_init): Do not set call_dummy_address.
1752
1753 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1754
1755 * symfile.c (syms_from_objfile): Move variables to inner block.
1756 Move the checks for the non-mainline case a bit earlier to avoid
1757 doing some useless computations.
1758
1759 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1760
1761 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1762
1763 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1764
1765 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1766 sections.
1767
1768 2003-06-26 Michael Chastain <mec@shout.net>
1769
1770 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1771 gdb/testsuite/gdb.c++/pr-1210.exp.
1772
1773 2003-06-26 Andrew Cagney <cagney@redhat.com>
1774
1775 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1776 altivec_expression.h and altivec_registers.h.
1777
1778 2003-06-26 Andrew Cagney <cagney@redhat.com>
1779
1780 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1781 info->mach when MIPS16. Patch suggested by Fred Fish.
1782
1783 2003-06-26 Andrew Cagney <cagney@redhat.com>
1784
1785 * utils.c (internal_vproblem): Print the problem to a reason
1786 buffer and then pass to query. Make the msg variable more local.
1787
1788 2003-06-26 Andrew Cagney <cagney@redhat.com>
1789
1790 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1791 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1792 * gdbarch.h, gdbarch.c: Re-generate.
1793 * frame-base.c (default_frame_args_address): Update. Use
1794 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1795 not available.
1796 (default_frame_locals_address): Ditto for
1797 DEPRECATED_FRAME_LOCALS_ADDRESS.
1798 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1799 (vax_frame_num_args): Update.
1800 (vax_gdbarch_init): Update.
1801 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1802 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1803 * mcore-tdep.c (mcore_gdbarch_init): Update.
1804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1805 * ia64-tdep.c (ia64_gdbarch_init): Update.
1806 * symtab.h (address_class): Update comments.
1807 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1808 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1809 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1810 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1811 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1812 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1813 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1814 * alpha-mdebug-tdep.c: Update.
1815 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1816
1817 2003-06-26 Andreas Jaeger <aj@suse.de>
1818
1819 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1820 of SSE registers so that varargs functions work. Rework handling
1821 of passing arguments on the stack.
1822 (x86_64_store_return_value): Return double and float values in SSE
1823 register.
1824
1825 2003-06-24 Michael Chastain <mec@shout.net>
1826
1827 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1828 the "constructor breakpoints ignored" bug.
1829
1830 2003-06-25 David Carlton <carlton@kealia.com>
1831
1832 * MAINTAINERS: Update e-mail address.
1833
1834 2003-06-24 Jim Blandy <jimb@redhat.com>
1835
1836 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1837
1838 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1839 function.
1840 (ppc_linux_init_abi): Register it as the
1841 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1842
1843 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1844 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1845 method.
1846
1847 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1848 (ppc64_standard_linkage_target): Use it.
1849
1850 2003-06-23 Andrew Cagney <cagney@redhat.com>
1851
1852 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1853 for 0 "int0" and 4 "int32" sized registers.
1854 * gdbtypes.c (builtin_type_int0): Define.
1855 (build_gdbtypes): Initialize builtin_type_int0.
1856 * gdbtypes.h (builtin_type_int0): Declare.
1857
1858 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1859
1860 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1861 as characters are unsigned.
1862
1863 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1864
1865 PR gdb/1179
1866 * dwarfread.c (struct_type): Skip static fields without crashing.
1867
1868 2003-06-22 Andrew Cagney <cagney@redhat.com>
1869
1870 GDB 6.0 branch created.
1871 * README: Update.
1872 * PROBLEMS: Update. Empty.
1873 * NEWS: Update.
1874
1875 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1876
1877 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1878 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1879
1880 2003-06-22 Andrew Cagney <cagney@redhat.com>
1881
1882 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1883 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1884 Velikov.
1885
1886 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1887
1888 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1889 compilers.
1890
1891 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1892
1893 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1894 argument of val_print.
1895 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1896 to the address argument of baseclass_offset or target_read_memory.
1897 Do add it to the argument of cp_print_value_fields.
1898
1899 2003-06-21 Andrew Cagney <cagney@redhat.com>
1900
1901 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1902 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1903 instead of 0..NUM_REGS.
1904 (mips_register_reggroup_p): New function.
1905 (mips_pseudo_register_write): New function.
1906 (mips_pseudo_register_read): New function.
1907 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1908 based on the register's type.
1909 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1910 cooked.
1911 (mips_get_saved_register): Simplify. Assert that REGNO is a
1912 pseudo / cooked.
1913 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1914 (mips_register_type): Replace mips_register_virtual_type. Map
1915 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1916 when available.
1917 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1918 that the register is cooked / virtual.
1919 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1920 Only get the extra info when needed.
1921 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1922 (mips32_heuristic_proc_desc): Fetch the cooked register.
1923 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1924 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1925 (mips_print_register): Use gdbarch_register_type, instead of
1926 REGISTER_VIRTUAL_TYPE.
1927 (print_gp_register_row): Use gdbarch_register_type, instead of
1928 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1929 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1930 Print the pseudo / cooked registers.
1931 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1932 Print the pseudo / cooked registers.
1933 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1934 REG_NUM is pseudo / cooked.
1935 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1936 (mips_n32n64_xfer_return_value): Ditto.
1937 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1938 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1939 (mips_register_sim_regno): New function.
1940 (mips_gdbarch_init): Set deprecated_register_byte,
1941 register_group_p, pseudo_register_write, pseudo_register_read,
1942 register_sim_regno, and num_pseudo_regs. Set register_type,
1943 instead of register_virtual_type.
1944 * Makefile.in (mips-tdep.o): Update dependencies.
1945 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1946 REGISTER_VIRTUAL_TYPE.
1947 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1948 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1949 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1950 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1951 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1952
1953 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1954
1955 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1956 * cli/cli-cmds.c: Include "gdb_vfork.h".
1957 (shell_escape): Use vfork.
1958
1959 2003-06-21 Andrew Cagney <cagney@redhat.com>
1960
1961 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1962 32 bit floating-point register saves.
1963
1964 * frame.h (deprecated_unwind_get_saved_register): Delete.
1965 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1966 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1967 and deprecated_get_next_frame_hack instead of
1968 deprecated_unwind_get_saved_register.
1969
1970 * mips-tdep.c (mips_dump_tdep): Do not print
1971 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1972
1973 * frame.c (get_frame_register): New function.
1974 (frame_unwind_register_signed): New function.
1975 (get_frame_register_signed): New function.
1976 (frame_unwind_register_unsigned): New function.
1977 (get_frame_register_unsigned): New function.
1978 * frame.h: Add comments on naming schema.
1979 (get_frame_register, frame_unwind_register_signed): Declare.
1980 (get_frame_register_signed, get_frame_register_signed): Declare.
1981 (frame_unwind_register_unsigned): Declare.
1982 (get_frame_register_unsigned): Declare.
1983
1984 2003-06-20 Theodore A. Roth <troth@openavr.org>
1985
1986 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1987
1988 2003-06-20 Theodore A. Roth <troth@openavr.org>
1989
1990 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1991 (avr_read_sp): Ditto.
1992
1993 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1994
1995 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1996 * config/arm/nm-linux.h: Likewise.
1997 * config/arm/tm-linux.h: Likewise.
1998 * config/ia64/nm-linux.h: Likewise.
1999 * config/ia64/tm-ia64.h: Likewise.
2000 * config/s390/tm-linux.h: Likewise.
2001 * config/s390/tm-s390.h: Likewise.
2002 * s390-nat.c: Likewise.
2003 * s390-tdep.c: Likewise.
2004
2005 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2006 * config/ia64/linux.mt: Likewise.
2007 * config/m68k/linux.mh: Likewise.
2008 * config/mips/linux.mt: Likewise.
2009 * config/powerpc/linux.mh: Likewise.
2010 * config/sh/linux.mt: Likewise.
2011
2012 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2013
2014 * solib.c (solib_open): Change tests for whether to search
2015 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2016 comments.
2017
2018 2003-06-19 Theodore A. Roth <troth@openavr.org>
2019
2020 * avr-tdep.c (avr_frame_address): Delete function.
2021 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2022 set_gdbarch_frame_args_address.
2023
2024 2003-06-19 Andrew Cagney <cagney@redhat.com>
2025
2026 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2027 (REGISTER_CONVERT_FROM_TYPE): Delete.
2028 (mips_register_convert_to_type): Delete declaration.
2029 (mips_register_convert_from_type): Delete declaration.
2030 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2031 kernel/.
2032
2033 2003-06-19 Michael Snyder <msnyder@redhat.com>
2034
2035 * linux-nat.h: New file.
2036 * linux-nat.c: Include linux-nat.h.
2037 * lin-lwp.c: Include linux-nat.h.
2038 Move struct lwp_info def to linux-nat.h.
2039 * linux-proc.c: Include linux-nat.h.
2040 (linux_make_note_section): Iterate over lwps instead of threads.
2041 (linux_do_thread_registers): Use lwp instead of merged pid.
2042 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2043 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2044 Add dependency on linux_nat_h.
2045
2046 2003-06-19 Theodore A. Roth <troth@openavr.org>
2047
2048 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2049
2050 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2051
2052 * varobj.c (get_type, get_target_type): Use check_typedef.
2053
2054 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2055
2056 * breakpoint.c (insert_catchpoint): Call internal_error.
2057
2058 2003-06-19 Theodore A. Roth <troth@openavr.org>
2059
2060 * avr-tdep.c (avr_push_dummy_code): Delete function.
2061 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2062
2063 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2064
2065 * arch-utils.c (default_prepare_to_proceed): Remove.
2066 (generic_prepare_to_proceed): Remove.
2067 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2068 (generic_prepare_to_proceed): Remove prototype.
2069 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2070 * gdbarch.c: Regenerate.
2071 * gdbarch.h: Regenerate.
2072 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2073 * hppah-nat.c (hppa_switched_threads): Remove.
2074 * infrun.c (prepare_to_proceed): New static function, copied from
2075 generic_prepare_to_proceed. Remove select_it argument.
2076 (proceed): Call prepare_to_proceed.
2077 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2078 variables.
2079 (ptrace_wait): Don't set the removed variables.
2080 (hppa_switched_threads): Remove.
2081 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2082 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2083 (lin_lwp_prepare_to_proceed): Remove prototype.
2084 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2085 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2086
2087 2003-06-18 Theodore A. Roth <troth@openavr.org>
2088
2089 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2090 trad-frame.h.
2091 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2092 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2093 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2094 (AVR_PROLOGUE_*): Enumerate prologue types.
2095 (struct frame_extra_info): Remove.
2096 (struct avr_unwind_cache): Define.
2097 (avr_write_sp): Delete function.
2098 (avr_read_fp): Ditto.
2099 (avr_init_extra_frame_info): Ditto.
2100 (avr_pop_frame): Ditto.
2101 (avr_frame_saved_pc): Ditto.
2102 (avr_saved_pc_after_call): Ditto.
2103 (avr_push_return_address): Ditto.
2104 (avr_frame_chain): Ditto.
2105 (avr_store_struct_return): Ditto.
2106 (avr_push_arguments): Ditto.
2107 (avr_scan_prologue): Update comments. Changed to set up the info for
2108 cache unwinding. Now returns end of prologue PC.
2109 (avr_skip_prologue): Better handling of functions lacking a prologue
2110 by using avr_scan_prologue.
2111 (avr_scan_arg_moves): New function.
2112 (avr_saved_regs_unwinder): Ditto.
2113 (avr_frame_unwind_cache): Ditto.
2114 (avr_unwind_pc): Ditto.
2115 (avr_frame_this_id): Ditto.
2116 (avr_frame_prev_register): Ditto.
2117 (avr_frame_p): Ditto.
2118 (avr_frame_base_address ): Ditto.
2119 (avr_unwind_dummy_id): Ditto.
2120 (avr_push_dummy_code): Ditto.
2121 (push_stack_item): Ditto.
2122 (pop_stack_item): Ditto.
2123 (avr_push_dummy_call): Ditto.
2124 (struct stack_item): Define.
2125 (avr_frame_unwind): Declare structure.
2126 (avr_frame_base): Ditto.
2127 (avr_gdbarch_init): Remove calls to
2128 set_gdbarch_deprecated_init_frame_pc,
2129 set_gdbarch_deprecated_target_read_fp,
2130 set_gdbarch_deprecated_dummy_write_sp,
2131 set_gdbarch_deprecated_fp_regnum,
2132 set_gdbarch_deprecated_push_arguments,
2133 set_gdbarch_deprecated_push_return_address,
2134 set_gdbarch_deprecated_pop_frame,
2135 set_gdbarch_deprecated_store_struct_return,
2136 set_gdbarch_deprecated_frame_init_saved_regs,
2137 set_gdbarch_deprecated_init_extra_frame_info,
2138 set_gdbarch_deprecated_frame_chain,
2139 set_gdbarch_deprecated_frame_saved_pc,
2140 set_gdbarch_deprecated_saved_pc_after_call.
2141 Add calls to set_gdbarch_push_dummy_call,
2142 set_gdbarch_push_dummy_code,
2143 frame_unwind_append_predicate,
2144 frame_base_set_default,
2145 set_gdbarch_unwind_dummy_id,
2146 set_gdbarch_unwind_pc.
2147 Wrap a long line.
2148
2149 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2150
2151 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2152 registers for H8/300S.
2153 (h8300_print_registers_info): Ditto.
2154 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2155
2156 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2157
2158 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2159 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2160 (lin_lwp_wait): Likewise. Update comments.
2161 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2162 (pull_pid_from_list, linux_record_stopped_pid): New.
2163
2164 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2165
2166 * ada-lang.c (scan_discrim_bound): Name first argument.
2167 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2168 declared by ALL_BLOCK_SYMBOLS.
2169
2170 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2171
2172 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2173 ("regcache.h"): Include it.
2174 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2175
2176 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2177
2178 * NEWS: Mention gdbserver detach change and "disconnect" command.
2179 * infcmd.c (disconnect_command): New function.
2180 (_initialize_infcmd): Add ``disconnect'' command.
2181 * remote.c (remote_async_detach): Delete.
2182 (remote_detach): Merge remote_async_detach.
2183 (remote_disconnect): New.
2184 (init_remote_ops): Set to_disconnect.
2185 (init_remote_cisco_ops): Likewise.
2186 (init_remote_async_ops): Likewise. Use remote_detach.
2187 * target.c (cleanup_target): Default to_disconnect.
2188 (update_current_target): Inherit to_disconnect.
2189 (target_disconnect, debug_to_disconnect): New functions.
2190 (setup_target_debug): Set to_disconnect.
2191 * target.h (struct target_ops): Add to_disconnect.
2192 (target_disconnect): Add prototype.
2193
2194 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2195
2196 * breakpoint.c (insert_catchpoint): New function.
2197 (insert_breakpoints): Use catch_exceptions to call
2198 insert_catchpoint. Disable catchpoints if they fail to insert.
2199
2200 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2201
2202 * symfile.c (reread_symbols): Clear sym_private.
2203
2204 2003-06-17 Andrew Cagney <cagney@redhat.com>
2205
2206 * trad-frame.h (struct frame_info): Add opaque declaration.
2207 * remote-fileio.h (struct cmd_list_element): Add opaque
2208 declaration.
2209 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2210 comments.
2211
2212 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2213
2214 * remote.c (remote_prepare_to_store): Replace call to
2215 deprecated_read_register_bytes with multiple regcache_raw_read
2216 calls.
2217
2218 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2219
2220 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2221 (nto_find_and_open_solib): Likewise.
2222 (nto_init_solib_absolute_prefix): Likewise.
2223 (_initialize_nto_tdep): Fix indentation.
2224
2225 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2226
2227 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2228
2229 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2230
2231 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2232
2233 2003-06-17 Jim Blandy <jimb@redhat.com>
2234
2235 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2236
2237 2003-06-16 Theodore A. Roth <troth@openavr.org>
2238
2239 * avr-tdep.c (avr_extract_return_value): New function.
2240 (avr_gdbarch_init): Set extract_return_value method.
2241
2242 2003-06-16 Andrew Cagney <cagney@redhat.com>
2243
2244 * frame.h (deprecated_get_next_frame_hack): Declare.
2245 * frame.c (legacy_saved_regs_prev_register): Only require
2246 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2247 there are always saved regs.
2248 (deprecated_generic_get_saved_register): Do not require
2249 DEPRECATED_FRAME_INIT_SAVED_REGS.
2250 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2251 use frame ID unwind instead.
2252 (deprecated_get_next_frame_hack): New function.
2253
2254 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2255
2256 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2257 (h8300_push_dummy_call): ...this function. Some minor optimization.
2258 (h8300_push_return_address): Remove.
2259 (h8300_gdbarch_init): Remove calls to
2260 set_gdbarch_deprecated_dummy_write_sp,
2261 set_gdbarch_deprecated_push_arguments and
2262 set_gdbarch_deprecated_push_return_address.
2263 Add call to set_gdbarch_push_dummy_call.
2264
2265 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2266
2267 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2268 (E_PSEUDO_EXR_REGNUM): Ditto.
2269 (h8300_is_argument_spill): Check for instructions moving argument
2270 registers into safe registers.
2271 (h8300_skip_prologue): Check for stm instruction to push registers
2272 used for register variables onto stack.
2273 (gdb_print_insn_h8300): Remove.
2274 (h8300_examine_prologue): Add a comment.
2275 (h8300_register_name): Take pseudo registers into account.
2276 (h8300s_register_name): Ditto.
2277 (h8300sx_register_name): Ditto.
2278 (h8300_print_register): Ditto.
2279 (h8300_print_registers_info): Define "nice" printing order.
2280 (h8300_saved_pc_after_call): Take pseudo registers into account.
2281 (h8300_register_type): Ditto. Return type used for remote connection
2282 when requesting real CCR or EXR register, return actual type when
2283 requesting pseudo CCR or EXR.
2284 (h8300_pseudo_register_read): New function.
2285 (h8300_pseudo_register_write): Ditto.
2286 (h8300_dbg_reg_to_regnum): Ditto.
2287 (h8300s_dbg_reg_to_regnum): Ditto.
2288 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2289 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2290 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2291 set_gdbarch_print_insn architecture dependent.
2292 Call set_gdbarch_pseudo_register_read and
2293 set_gdbarch_pseudo_register_write.
2294 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2295
2296 2003-06-16 Andrew Cagney <cagney@redhat.com>
2297
2298 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2299 * gdbarch.h, gdbarch.c: Re-generate.
2300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2301 * s390-tdep.c (s390_gdbarch_init): Update.
2302 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2303 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2304 * mips-tdep.c (mips_gdbarch_init): Update.
2305 * mcore-tdep.c (mcore_gdbarch_init): Update.
2306 * cris-tdep.c (cris_gdbarch_init): Update.
2307 * infcall.c (call_function_by_hand): Update.
2308 * ia64-tdep.c (ia64_push_arguments): Update comment.
2309 * frame.c (legacy_get_prev_frame): Do not assume
2310 SAVE_DUMMY_FRAME_TOS_P.
2311 * dummy-frame.c (find_dummy_frame): Update comment.
2312
2313 2003-06-16 Andrew Cagney <cagney@redhat.com>
2314
2315 * regcache.c (do_cooked_read): Do not use register_valid_p.
2316
2317 2003-06-15 Theodore A. Roth <troth@openavr.org>
2318
2319 * avr-tdep.c (avr_register_type): Remove a blank line.
2320 (avr_scan_prologue): Correct some comments.
2321
2322 2003-06-15 Theodore A. Roth <troth@openavr.org>
2323
2324 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2325 prologue types.
2326 Properly scan prologues generated by gcc with the -mcall-prologues
2327 option.
2328 Add code to scan -mcall-prologues for mega devices.
2329
2330 2003-06-15 Theodore A. Roth <troth@openavr.org>
2331
2332 * avr-tdep.c (avr_register_byte): Delete function.
2333 (avr_register_raw_size): Delete function.
2334 (avr_register_virtual_size): Delete function.
2335 (avr_register_virtual_type): Delete function.
2336 (avr_register_type): New function.
2337 (avr_address_to_pointer): Remove unused code.
2338 (avr_read_fp): Need to read FP as two separate bytes due to change to
2339 avr_register_type() usage.
2340 (avr_gdbarch_init): Don't set deprecated_register_size.
2341 Don't set deprecated_register_bytes.
2342 Don't set deprecated_register_byte.
2343 Don't set deprecated_register_raw_size.
2344 Don't set deprecated_max_register_raw_size.
2345 Don't set deprecated_register_virtual_size.
2346 Don't set deprecated_max_register_virtual_size.
2347 Don't set deprecated_register_virtual_type.
2348 Set register_type method.
2349
2350 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2351
2352 * Makefile.in (linux-nat.o): Add rule.
2353 * linux-nat.c: New file.
2354 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2355 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2356 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2357 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2358 * config/arm/linux.mh (NATDEPFILES): Likewise.
2359 * config/i386/linux.mh (NATDEPFILES): Likewise.
2360 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2361 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2362 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2363 * config/mips/linux.mh (NATDEPFILES): Likewise.
2364 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2365 * config/s390/s390.mh (NATDEPFILES): Likewise.
2366 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2367
2368 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2369
2370 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2371 replace out-of-date comment.
2372
2373 2003-06-15 Andrew Cagney <cagney@redhat.com>
2374
2375 * rdi-share/host.h (Fail): Change to a varargs function.
2376 * remote-rdi.c (Fail): Update.
2377
2378 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2379
2380 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2381 (i386_convert_register_p, i386_register_to_value,
2382 i386_register_from_value): Handle types longer than 8 bytes.
2383
2384 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2385
2386 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2387 Move floating-point code to new function in i387-tdep.c.
2388 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2389 New functions containing code moved here from i386-tdep.c.
2390 * i387-tdep.h: Add opaque declaration for `struct type'.
2391 (i387_register_to_value, i387_value_to_register): New prototypes.
2392 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2393 (x86_64_init_abi): Set convert_register_p, register_to_value and
2394 value_to_register here.
2395
2396 2003-06-14 Andrew Cagney <cagney@redhat.com>
2397
2398 * mips-tdep.c (mips_register_to_value): Make static.
2399 (mips_value_to_register): Make static.
2400 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2401 * ia64-tdep.c (ia64_register_raw_size): Make static.
2402 (ia64_register_virtual_size): Make static.
2403 (ia64_register_byte): Make static.
2404 * i387-tdep.c: Include "i387-tdep.h".
2405 (print_387_control_word): Delete function.
2406 (print_387_status_word): Delete function.
2407 (print_387_status_bits): Delete function.
2408 (print_387_control_bits): Delete function.
2409 * Makefile.in (i387-tdep.o): Update dependencies.
2410 * rdi-share/host.h (Fail): Declare.
2411 * remote-rdi.c (Fail): Update to match declaration.
2412
2413 2003-06-14 Andrew Cagney <cagney@redhat.com>
2414
2415 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2416 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2417 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2418 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2419 * README: Delete reference to remote-array.
2420 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2421 (remote-array.o): Delete target.
2422 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2423 * remote-array.c: Delete file.
2424
2425 2003-06-14 Andrew Cagney <cagney@redhat.com>
2426 Mark Kettenis <kettenis@gnu.org>
2427
2428 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2429 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2430 parameter with "frame".
2431 * gdbarch.h, gdbarch.c: Re-generate.
2432 * frame.h (put_frame_register): Declare.
2433 * frame.c (put_frame_register): New function.
2434 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2435 (legacy_register_to_value): Rewrite, use "frame" to get the
2436 register value.
2437 (legacy_value_to_register): Rewrite, use "frame" to find the
2438 register's location before storing.
2439 * arch-utils.h (legacy_convert_register_p): Update.
2440 (legacy_register_to_value, legacy_value_to_register): Update.
2441 * findvar.c (value_from_register): Rewrite, eliminate use of
2442 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2443 "frame" to REGISTER_TO_VALUE.
2444 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2445 lval_reg_frame_relative + lval_register branch of the switch. Do
2446 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2447 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2448 I386_EDI_REGNUM): New defines.
2449 (i386_next_regnum, i386_convert_register_p,
2450 i386_register_to_value, i386_value_to_register): New functions.
2451 (i386_register_convertible, i386_register_convert_to_virtual,
2452 i386_convert_to_raw): Remove functions.
2453 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2454 value_to_register instead of register_convertible,
2455 register_convert_to_virtual and register_convert_to_raw.
2456 * mips-tdep.c (mips_convert_register_p): New function.
2457 (mips_value_to_register): Replace mips_register_convert_from_type.
2458 (mips_register_to_value): Replace mips_register_convert_to_type.
2459 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2460 register_to_value.
2461 * alpha-tdep.c (alpha_convert_register_p): Update.
2462 (alpha_value_to_register): Update, store the register.
2463 (alpha_register_to_value): Update, fetch the register.
2464
2465 2003-06-14 Theodore A. Roth <troth@openavr.org>
2466
2467 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2468 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2469 Don't set deprecated_call_dummy_words.
2470 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2471 Don't set remote_translate_xfer_address.
2472 (avr_io_reg_read_command): Remove commented out debug printf.
2473 Wrap a long line.
2474
2475 2003-06-14 Theodore A. Roth <troth@openavr.org>
2476
2477 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2478 causes gdb to seg fault.
2479
2480 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2481
2482 * sparc-nat.c (fetch_inferior_registers): Correct
2483 a reference to "registers".
2484
2485 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2486
2487 * Makefile.in (exc_request_U_h): Define
2488 (exc_request_S_h): Likewise.
2489 (msg_reply_S_h): Likewise.
2490 (msg_U_h): Likewise.
2491 (notify_S_h): Likewise.
2492 (process_reply_S_h): Likewise.
2493 (gnu-nat.o): Depend on gdb_obstack_h
2494 * gnu-nat.c: Include "gdb_obstack.h".
2495
2496 2003-06-13 Andrew Cagney <cagney@redhat.com>
2497
2498 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2499 * gdbarch.h, gdbarch.c: Re-generate.
2500
2501 2003-06-13 Andrew Cagney <cagney@redhat.com>
2502
2503 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2504 when deprecated REGISTER macros can be deleted.
2505 * gdbarch.h, gdbarch.c: Re-generate.
2506
2507 2003-06-13 Jim Blandy <jimb@redhat.com>
2508
2509 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2510 Linux entry point symbols for _dl_debug_state, too.
2511
2512 2003-06-13 Andrew Cagney <cagney@redhat.com>
2513
2514 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2515 available, do not use the FP register, and always save the TOS.
2516 * dummy-frame.c (dummy_frame_this_id): Do not assert
2517 SAVE_DUMMY_FRAME_TOS.
2518 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2519 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2520 (i386_push_dummy_call): Add 8 to the returned SP.
2521 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2522 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2523 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2524 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2525 (x86_64_push_dummy_call): Return "sp + 16".
2526 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2527 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2528 save_dummy_frame_tos.
2529
2530 2003-06-13 Jim Blandy <jimb@redhat.com>
2531
2532 * frv-tdep.c (frv_use_struct_convention): Delete static
2533 declaration for function deleted in my change of 2003-06-12.
2534
2535 2003-06-13 Theodore A. Roth <troth@openavr.org>
2536
2537 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2538 (avr_pointer_to_address): Shift code addrs left 1 bit.
2539 (avr_convert_from_func_ptr_addr): Delete function since operation is
2540 better handled by avr_address_to_pointer and avr_pointer_to_address.
2541 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2542
2543 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2544
2545 From Kelley Cook <kelleycook@wideopenwest.com>:
2546 * configure.host: Accept i[34567]86 variants.
2547 * configure.tgt: Likewise.
2548 * nlm/configure.in: Likewise.
2549 * nlm/configure: Regenerated.
2550
2551 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2552
2553 * arm-tdep.c (solib-svr4.h): Dont' include it.
2554 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2555 * arm-linux-tdep.c: ... here. Make static.
2556 (arm_linux_init_abi): Register it.
2557 (solib-svr4.h): Include it.
2558 * Makefile.in: Update dependencies.
2559 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2560 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2561
2562 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2563
2564 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2565 indicate registers used for return values.
2566 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2567 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2568 members.
2569 (h8300_init_extra_frame_info): Ditto.
2570 (h8300_frame_locals_address): Removed.
2571 (h8300_frame_args_address): Removed.
2572 (h8300_extract_return_value): Use new regcache structure. Only care
2573 for 16 bit CPUs.
2574 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2575 (h8300_store_return_value): Use new regcache structure. Only care
2576 for 16 bit CPUs.
2577 (h8300h_store_return_value): Same function for 32 bit CPUs.
2578 (h8300_store_struct_return): Removed.
2579 (h8300_extract_struct_value_address): Use new regcache structure.
2580 (h8300h_extract_struct_value_address): Removed.
2581 (h8300_push_dummy_code): New function.
2582 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2583 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2584 set_gdbarch_store_return_value architecture dependent.
2585 Call set_gdbarch_push_dummy_code and
2586 set_gdbarch_extract_struct_value_address.
2587 Remove calls to set_gdbarch_frame_args_address,
2588 set_gdbarch_frame_locals_address,
2589 set_gdbarch_deprecated_store_struct_return,
2590 set_gdbarch_deprecated_extract_return_value,
2591 set_gdbarch_deprecated_extract_struct_value_address,
2592 set_gdbarch_deprecated_call_dummy_words and
2593 set_gdbarch_deprecated_sizeof_call_dummy_words.
2594
2595 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2596
2597 * h8300-tdep.c (h8300_register_byte): Remove.
2598 (h8300h_register_byte): Remove.
2599 (h8300_register_virtual_type): Remove. Substitute by...
2600 (h8300_register_type): New function.
2601 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2602 (h8300h_extract_struct_value_address): Ditto.
2603 (h8300_gdbarch_init): Drop calls to
2604 set_gdbarch_deprecated_register_byte and
2605 set_gdbarch_deprecated_register_virtual_type.
2606 Add call to set_gdbarch_register_type.
2607
2608 2003-06-13 Andrew Cagney <cagney@redhat.com>
2609
2610 * gdbarch.sh: Update comments on registers.
2611 (deprecated_register_byte): Rename register_byte.
2612 (deprecated_register_raw_size): Rename register_raw_size.
2613 (deprecated_register_virtual_size): Rename register_virtual_size.
2614 (deprecated_register_virtual_type): Rename register_virtual_type.
2615 * gdbarch.h, gdbarch.c: Re-generate.
2616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2617 * vax-tdep.c (vax_gdbarch_init): Update.
2618 * v850-tdep.c (v850_gdbarch_init): Update.
2619 * sparc-tdep.c (sparc_gdbarch_init): Update.
2620 * sh-tdep.c (sh_gdbarch_init): Update.
2621 * s390-tdep.c (s390_gdbarch_init): Update.
2622 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2623 * ns32k-tdep.c: Update.
2624 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2625 * mips-tdep.c (mips_gdbarch_init): Update.
2626 * mcore-tdep.c (mcore_gdbarch_init): Update.
2627 * m68k-tdep.c (m68k_gdbarch_init): Update.
2628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2629 * ia64-tdep.c (ia64_gdbarch_init): Update.
2630 * hppa-tdep.c (hppa_gdbarch_init): Update.
2631 * h8300-tdep.c (h8300_gdbarch_init): Update.
2632 * frv-tdep.c (frv_gdbarch_init): Update.
2633 * cris-tdep.c (cris_gdbarch_init): Update.
2634 * avr-tdep.c (avr_gdbarch_init): Update.
2635 * alpha-tdep.c (alpha_gdbarch_init): Update.
2636 * arm-tdep.c (arm_gdbarch_init): Update.
2637
2638 2003-06-13 Andrew Cagney <cagney@redhat.com>
2639
2640 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2641 mips_o32_use_struct_convention with always_use_struct_convention.
2642
2643 2003-06-12 David Carlton <carlton@kealia.com>
2644
2645 * cp-namespace.c (cp_set_block_scope): Comment out
2646 processing_has_namespace_info branch.
2647
2648 2003-06-12 Jim Blandy <jimb@redhat.com>
2649
2650 Recognize and skip 64-bit PowerPC Linux linkage functions.
2651 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2652 insn_pattern, insns_match_pattern, d_field, ds_field): New
2653 functions, macros, and types for working with PPC instructions.
2654 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2655 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2656 ppc64_skip_trampoline_code): New functions, variables, and macros
2657 for recognizing and skipping linkage functions.
2658 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2659 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2660
2661 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2662 register offsets for both the 32- and 64-bit interfaces.
2663
2664 Actually finish the job started by my change of 2003-05-29.
2665 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2666 other #definition of this.
2667 (ppc_linux_skip_trampoline_code): Remove declaration.
2668 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2669 static.
2670 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2671 method for GDBARCH.
2672
2673 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2674 'long' on ppc64-*-linux*.
2675
2676 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2677 isn't #defined, assume the register doesn't exist: act as if
2678 tdep->ppc_mq_regnum were -1.
2679
2680 * configure.host, configure.tgt: Add entries for
2681 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2682 powerpc/linux.mt.
2683 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2684 New files.
2685
2686 * arch-utils.c (always_use_struct_convention): New function.
2687 * arch-utils.h (always_use_struct_convention): New prototype.
2688 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2689 (alpha_gdbarch_init): Register always_use_struct_convention,
2690 instead of alpha_use_struct_convention.
2691 * cris-tdep.c (cris_use_struct_convention): Delete.
2692 (cris_gdbarch_init): Register always_use_struct_convention,
2693 instead of cris_use_struct_convention.
2694 * frv-tdep.c (frv_use_struct_convention): Delete.
2695 (frv_gdbarch_init): Register always_use_struct_convention,
2696 instead of frv_use_struct_convention.
2697 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2698 (h8300_gdbarch_init): Register always_use_struct_convention,
2699 instead of h8300_use_struct_convention.
2700 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2701 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2702 instead of mips_o32_use_struct_convention.
2703
2704 2003-06-12 Andrew Cagney <cagney@redhat.com>
2705
2706 * wince.c: Include "mips-tdep.h".
2707 * mips-tdep.h (mips_next_pc): Declare.
2708 * mcore-tdep.c: Make more local functions static.
2709 * Makefile.in (wince.o): Update dependencies.
2710
2711 2003-06-12 David Carlton <carlton@kealia.com>
2712
2713 * symtab.c (lookup_symbol_aux_minsyms): Replace
2714 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2715 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2716 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2717 SYMBOL_NATURAL_NAME.
2718
2719 2003-06-12 Andreas Schwab <schwab@suse.de>
2720
2721 * Makefile.in (tuiDisassem.o): Update dependencies.
2722
2723 2003-06-12 David Carlton <carlton@bactrian.org>
2724
2725 * symtab.h: Delete declaration of make_symbol_overload_list.
2726 Add declaration of lookup_partial_symbol.
2727 * symtab.c (remove_params): Move to cp-support.c.
2728 (overload_list_add_symbol, make_symbol_overload_list)
2729 (sym_return_val_size, sym_return_val_index): Ditto.
2730 (lookup_partial_symbol): Make extern.
2731 * cp-support.h: Add declaration of make_symbol_overload_list.
2732 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2733 symtab.h, and block.h.
2734 (remove_params): Move here from symtab.c.
2735 (overload_list_add_symbol, make_symbol_overload_list)
2736 (sym_return_val_size, sym_return_val_index): Ditto.
2737 * valops.c: Include cp-support.h.
2738 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2739 frame_h, and block_h.
2740 (valops.o): Depend on cp_support_h.
2741
2742 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2743
2744 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2745 substitute by NUM_REGS throughout.
2746 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2747 (h8300s_register_name): New function for H8S registers.
2748 (h8300sx_register_name): Ditto for H8SX registers.
2749 (h8300_print_register): Revise register printing, avoid depending
2750 on 32 bit long.
2751 (h8300_register_byte): Only care for H8/300 registers.
2752 (h8300h_register_byte): New function for any other architecture.
2753 (h8300_register_raw_size): Remove.
2754 (h8300_register_virtual_type): Revise to return actually useful
2755 type.
2756 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2757 (h8300h_extract_struct_value_address): New function for any other
2758 architecture.
2759 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2760 set_gdbarch_register_name, set_gdbarch_register_byte,
2761 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2762 Remove calls to set_gdbarch_deprecated_register_size,
2763 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2764 set_gdbarch_deprecated_max_register_raw_size,
2765 set_gdbarch_register_virtual_size and
2766 set_gdbarch_deprecated_max_register_virtual_size entirely.
2767 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2768 set_gdbarch_long_double_bit.
2769
2770 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2771
2772 * doublest.c (convert_doublest_to_floatformat): When dealing
2773 with the implied integer bit, only alter mant_bits if we are
2774 processing a full 32 bits of mantissa.
2775
2776 2003-06-11 David Carlton <carlton@bactrian.org>
2777
2778 * dictionary.h: New.
2779 * dictionary.c: New.
2780 * block.h: Add opaque declaration for struct dictionary.
2781 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2782 'sym' members.
2783 (BLOCK_DICT): New macro.
2784 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2785 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2786 BLOCK_SHOULD_SORT.
2787 (ALL_BLOCK_SYMBOLS): Update definition.
2788 * Makefile.in (SFILES): Add dictionary.c.
2789 (dictionary_h): New.
2790 (COMMON_OBS): Add dictionary.o.
2791 (dictionary.o): New.
2792 (ada-lang.o): Depend on dictionary_h.
2793 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2794 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2795 (mi-cmd-stack.o): Ditto.
2796 (gdbtk-cmds.o): Update dependencies.
2797 (gdbtk-stack.o): Ditto.
2798 * ada-lang.c: Include dictionary.h.
2799 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2800 (fill_in_ada_prototype, debug_print_block): Ditto.
2801 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2802 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2803 'is_sorted'.
2804 * mdebugread.c: Include dictionary.h.
2805 (struct parse_stack): Delete 'maxsyms' member.
2806 (parse_symbol): Update calls to new_block. Delete calls to
2807 shrink_block. Use dictionary methods.
2808 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2809 Update calls to new_symtab. Don't maintain maxsyms data.
2810 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2811 (add_symbol): Just call dict_add_symbol.
2812 (new_symtab): Delete 'maxsyms' argument.
2813 (new_symtab): Update calls to new_block.
2814 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2815 (shrink_block): Delete function.
2816 (fixup_sigtramp): Update call to new_block. Add symbol via
2817 dict_add_symbol.
2818 * jv-lang.c: Include dictionary.h.
2819 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2820 appropriately. Set class_symtab->free_func. Make sure the
2821 blockvector is big enough to hold two blocks.
2822 (add_class_symtab_symbol): Use dictionary methods.
2823 (free_class_block): New function.
2824 (type_from_class): Replace explicit iteration by
2825 ALL_BLOCK_SYMBOLS.
2826 * symtab.h (struct symtab): Replace 'free_ptr' method by
2827 'free_func'.
2828 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2829 sort_symtab_syms.
2830 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2831 sort_symtab_syms.
2832 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2833 Include dictionary.h.
2834 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2835 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2836 sort_symtab_syms.
2837 * objfiles.c: Include dictionary.h.
2838 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2839 * buildsym.c: Include dictionary.h.
2840 (finish_block): Use dictionary methods.
2841 (end_symtab): Set free_func to NULL, not free_ptr.
2842 * tracepoint.c: Include dictionary.h.
2843 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2844 (scope_info): Ditto.
2845 * stack.c: Include dictionary.h.
2846 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2847 (print_block_frame_labels, print_frame_arg_vars)
2848 (print_frame_args): Ditto.
2849 * symmisc.c (free_symtab_block): Use dictionary methods.
2850 (dump_symtab): Ditto.
2851 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2852 Include dictionary.h.
2853 * symfile.h: Delete declarations of sort_block_syms,
2854 sort_symtab_syms.
2855 * symfile.c (sort_block_syms): Delete.
2856 (sort_symtab_syms): Delete.
2857 * symtab.c: Include dictionary.h.
2858 (lookup_block_symbol): Use dictionary iterators.
2859 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2860 (search_symbols, make_symbol_completion_list): Ditto.
2861 (make_symbol_overload_list): Ditto.
2862 * valops.c (value_of_local): Use dict_empty.
2863 Include dictionary.h.
2864
2865 2003-06-11 J. Brobecker <brobecker@gnat.com>
2866
2867 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2868
2869 2003-06-11 David Carlton <carlton@bactrian.org>
2870
2871 * block.h (BLOCK_SHOULD_SORT): Delete.
2872 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2873 blocks.
2874 * ada-lang.c (ada_add_block_symbols): Ditto.
2875 * symfile.c (sort_block_syms): Delete.
2876 (sort_symtab_syms): Ditto.
2877 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2878 declarations.
2879 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2880 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2881 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2882 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2883 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2884 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2885 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2886
2887 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2888
2889 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2890 bits to 128.
2891
2892 2003-06-11 Andrew Cagney <cagney@redhat.com>
2893
2894 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2895 REGISTER_CONVERTIBLE.
2896 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2897 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2898 * gdbarch.h, gdbarch.c: Re-generate.
2899 * arch-utils.h (deprecated_register_convertible_not): Rename
2900 generic_register_convertible_not.
2901 * arch-utils.c (deprecated_register_convertible_not): Rename
2902 generic_register_convertible.
2903 (legacy_convert_register_p, legacy_register_to_value): Update.
2904 * sh-tdep.c (sh64_push_arguments): Update.
2905 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2906 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2907 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2908 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2909 * arch-utils.c (legacy_value_to_register): Update.
2910 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2911 (rs6000_register_convert_to_raw): Make parameter "from" const.
2912 * mips-tdep.c (mips_gdbarch_init): Update.
2913 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2914 * infcmd.c (default_print_registers_info): Update.
2915 * ia64-tdep.c (ia64_gdbarch_init): Update.
2916 (ia64_register_convert_to_raw): Make parameter "from" const.
2917 * i386-tdep.c (i386_gdbarch_init): Update.
2918 (i386_register_convert_to_raw): Update.
2919
2920 2003-06-11 Andrew Cagney <cagney@redhat.com>
2921
2922 * remote-fileio.c: Include "remote-fileio.h".
2923 * Makefile.in (remote-fileio.o): Update dependencies.
2924 (remote_fileio_h): Fix typo.
2925
2926 2003-06-11 Andrew Cagney <cagney@redhat.com>
2927
2928 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2929 (xstormy16_save_dummy_frame_tos): Make static.
2930 (_initialize_xstormy16_tdep): Add declaration.
2931 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2932 * v850-tdep.c: Make local functions static.
2933 (_initialize_v850_tdep): Add declaration.
2934 * sparc-tdep.c: Make local functions static.
2935 (_initialize_sparc_tdep): Add declaration.
2936 * sh-tdep.c: Make local functions static.
2937 (_initialize_sh_tdep): Add declaration.
2938 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2939 * s390-tdep.c: Make local functions static.
2940 (_initialize_s390_tdep): Add declaration.
2941 * dbxread.c (find_stab_function_addr): Make static.
2942 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2943 * ocd.c (_initialize_remote_ocd): Add declaration.
2944 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2945 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2946 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2947 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2948 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2949 * remote-array.c (_initialize_array): Add declaration.
2950 (_initialize_remote_monitors): Add declaration.
2951 * remote-mips.c: Make local functions static.
2952 (_initialize_remote_mips): Add declaration.
2953 * mcore-tdep.c: Make all local functions static.
2954 (_initialize_mcore_tdep): Add declaration.
2955 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2956 * abug-rom.c (_initialize_abug_rom): Add declaration.
2957 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2958 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2959 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2960 * remote-est.c (_initialize_est): Add declaration.
2961 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2962 (m68hc11_call_dummy_address): Make static.
2963 * ia64-tdep.c: Make local functions static.
2964 (_initialize_ia64_tdep): Add declaration.
2965 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2966 * monitor.c (monitor_wait_filter): Make static.
2967 (_initialize_remote_monitors): Add declaration.
2968 * remote-hms.c (_initialize_remote_hms): Add declaration.
2969 * remote-e7000.c (fetch_regs_from_dump): Make static.
2970 (expect_n): Make static.
2971 (_initialize_remote_e7000): Add declaration.
2972 * ser-e7kpc.c: Always include "defs.h".
2973 (_initialize_ser_e7000pc): Add declaration.
2974 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2975 * cris-tdep.c: Make all but one function static.
2976 (_initialize_cris_tdep): Add declaration.
2977 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2978 * solib.c (update_solib_list): Make static.
2979 (_initialize_solib): Add declaration.
2980 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2981 (_initialize_avr_tdep): Add declaration.
2982 * remote-rdi.c (voiddummy): Make static.
2983 (_initialize_remote_rdi): Add declaration.
2984 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2985 * remote-rdp.c (send_rdp): Make static.
2986 (_initialize_remote_rdp): Add declaration.
2987 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2988
2989 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2990
2991 * remote-fileio.c: Make ari happy.
2992
2993 2003-06-10 J. Brobecker <brobecker@gnat.com>
2994
2995 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2996 fetching the trailing bytes of the buffer we are about to write.
2997
2998 2003-06-10 Andrew Cagney <cagney@redhat.com>
2999
3000 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3001 * Makefile.in (remote-fileio.o): Update dependencies.
3002 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3003 include <setjmp.h>, or <sys/types.h> conditional on USG.
3004 (remote_fio_jmp_buf): Delete global variable.
3005
3006 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3007 Martin M. Hunt <hunt@redhat.com>
3008
3009 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3010 (SFILES): Add remote-fileio.c.
3011 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3012 dependencies for building remote.o.
3013 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3014 * remote-fileio.h: New header file defining remote File-I/O interface.
3015 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3016 static storage class.
3017 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3018 'F' packet.
3019 (_initialize_remote): Call initialize_remote_fileio().
3020 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3021 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3022 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3023 (captured_main): Initialize new ui_files.
3024 * ui-file.c: Add read and fgets input functions.
3025 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3026 (null_file_read): New function.
3027 (ui_file_read): New function.
3028 (set_ui_file_read): New function.
3029 (stdio_file_read): New function.
3030 * ui-file.h: New type ui_file_read_ftype.
3031 (set_ui_file_read): Declare.
3032 (ui_file_read): Declare.
3033
3034 2003-06-09 Andrew Cagney <cagney@redhat.com>
3035
3036 * frame.h (deprecated_unwind_get_saved_register): Rename
3037 generic_unwind_get_saved_register, update comments.
3038 * mips-tdep.c (mips_get_saved_register): Update.
3039 * frame.c (deprecated_unwind_get_saved_register): Update.
3040
3041 2003-06-09 Andrew Cagney <cagney@redhat.com>
3042
3043 * vax-tdep.c (vax_frame_locals_address): Delete function.
3044 (vax_gdbarch_init): Do not set frame_locals_address.
3045 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3046 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3047 * s390-tdep.c (s390_frame_args_address): Delete function.
3048 (s390_gdbarch_init): Do not set frame_args_address or
3049 frame_locals_address.
3050 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3051 (ns32k_gdbarch_init): Do not set frame_locals_address.
3052 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3053 (hppa_frame_locals_address): Delete function.
3054 (hppa_gdbarch_init): Do not set frame_args_address, or
3055 frame_locals_address.
3056 * arm-tdep.c (arm_frame_args_address): Delete.
3057 (arm_frame_locals_address): Delete.
3058 (arm_gdbarch_init): Do not set frame_args_address, or
3059 frame_locals_address.
3060
3061 2003-06-09 Andrew Cagney <cagney@redhat.com>
3062
3063 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3064 * gdbarch.h, gdbarch.c: Re-generate.
3065 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3066 * arch-utils.c (frame_num_args_unknown): Delete function.
3067 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3068 (frame_info): Use FRAME_NUM_ARGS_P.
3069 * arm-tdep.c (arm_frame_num_args): Delete function.
3070 (arm_gdbarch_init): Do not set frame_num_args.
3071 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3072 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3073 (hppa_gdbarch_init): Do not set frame_num_args.
3074 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3075 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3076 frame_num_args to default frame_num_args_unknown.
3077 * v850-tdep.c (v850_gdbarch_init): Ditto.
3078 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3079 * sh-tdep.c (sh_gdbarch_init): Ditto.
3080 * s390-tdep.c (s390_gdbarch_init): Ditto.
3081 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3082 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3083 * mips-tdep.c (mips_gdbarch_init): Ditto.
3084 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3085 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3087 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3088 * i386-tdep.c (i386_gdbarch_init): Ditto.
3089 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3090 * frv-tdep.c (frv_gdbarch_init): Ditto.
3091 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3092 * cris-tdep.c (cris_gdbarch_init): Ditto.
3093 * avr-tdep.c (avr_gdbarch_init): Ditto.
3094 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3095
3096 2003-06-09 Andrew Cagney <cagney@redhat.com>
3097
3098 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3099 (print_frame_args): Moved to "stack.c".
3100 * stack.c: Include "gdb_assert.h".
3101 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3102 (print_frame_args): Moved from "printcmd.c".
3103 * frame.h (print_frame_args): Delete declaration.
3104 * Makefile.in (stack.o): Update dependencies.
3105
3106 2003-06-08 Andrew Cagney <cagney@redhat.com>
3107
3108 * frame.c (get_prev_frame): Remove reference to
3109 frame_args_address_correct in comments.
3110 * frame-base.c (default_frame_args_address): Delete code
3111 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3112 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3113 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3114 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3115 (vax_frame_args_address_correct): Delete declaration.
3116
3117 2003-06-08 Andrew Cagney <cagney@redhat.com>
3118
3119 * gdbarch.sh (UNWIND_SP): Add.
3120 * gdbarch.h, gdbarch.c: Re-generate.
3121 * frame.c (frame_sp_unwind): New function.
3122 (get_frame_sp): New function.
3123 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3124 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3125 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3126 value.
3127 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3128 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3129
3130 2003-06-08 Andrew Cagney <cagney@redhat.com>
3131
3132 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3133 REMOTE_BREAKPOINT.
3134 * remote.c: Update.
3135 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3136 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3137 * config/m68k/tm-sun3.h: Update.
3138 * config/m68k/tm-m68klynx.h: Update.
3139 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3140
3141 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3142 trad_frame". Update comments.
3143 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3144 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3145 (trad_frame_register_value, trad_frame_prev_register): Update.
3146
3147 2003-06-08 Andrew Cagney <cagney@redhat.com>
3148
3149 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3150 from GCC's acinclude.m4.
3151 * configure.in: Check for getopt's delcaration.
3152 * aclocal.m4, config.in, configure: Re-generate.
3153 * main.c (error_init): Delete declaration.
3154 * defs.h (error_init): Declare.
3155 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3156 (rs6000_convert_from_func_ptr_addr): Make static.
3157 (_initialize_rs6000_tdep): Add declaration.
3158 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3159 (show_commands, set_verbose, show_history): Delete declaration.
3160 * top.h (set_verbose): Add declaration.
3161 (show_history, set_history, show_commands): Add declaration.
3162 (do_restore_instream_cleanup): Add declaration.
3163 * objc-lang.c (specialcmp): Make static.
3164 (print_object_command): Make static.
3165 (find_objc_msgsend): Make static.
3166 (find_objc_msgcall_submethod_helper): Make static.
3167 (find_objc_msgcall_submethod): Make static.
3168 (_initialize_objc_language): Add declaration.
3169 (find_implementation_from_class): Make static.
3170 (find_implementation): Make static.
3171 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3172 * objc-lang.h (lookup_struct_typedef): Add declaration.
3173 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3174 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3175 (do_restore_user_call_depth): Make static.
3176 (do_restore_instream_cleanup): Delete declaration.
3177 (dont_repeat): Delete declaration.
3178 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3179 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3180 * reggroups.c (_initialize_reggroup): Add declaration.
3181 * cp-support.c (_initialize_cp_support): Add declaration.
3182 * cp-abi.c (_initialize_cp_abi): Add declaration.
3183 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3184 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3185 (_initialize_gnu_v3_abi): Add declaration.
3186 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3187 (_initialize_gnu_v2_abi): Add declaration.
3188 * frame-base.c (_initialize_frame_base): Add declaration.
3189 * doublest.c (floatformat_from_length): Make static.
3190 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3191 * frame.c (create_sentinel_frame): Make static.
3192 (_initialize_frame): Add declaration.
3193 * top.c (do_catch_errors): Make static.
3194 (gdb_rl_operate_and_get_next_completion): Make static.
3195 * typeprint.c: Include "typeprint.h".
3196 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3197 (sentinel_frame_this_id): Make static.
3198 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3199 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3200 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3201 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3202 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3203 * maint.c (maintenance_print_architecture): Make static.
3204 * signals/signals.c (_initialize_signals): Add declaration.
3205 * std-regs.c (_initialize_frame_reg): Add declaration.
3206 * jv-exp.y (push_variable): ISO C definition.
3207 (push_qualified_expression_name): Ditto.
3208 * memattr.c (_initialize_mem): Add declaration.
3209 * remote.c (remote_check_watch_resources): Make static.
3210 (remote_stopped_by_watchpoint): Make static.
3211 (remote_stopped_data_address): Make static.
3212 * d10v-tdep.c (nr_dmap_regs): Make static.
3213 (a0_regnum): Make static.
3214 (d10v_frame_unwind_cache): Make static.
3215 (d10v_frame_p): Make static.
3216 * osabi.c (show_osabi): Make static.
3217 (_initialize_gdb_osabi): Add extern declaration.
3218 * gdbtypes.c (make_qualified_type): Make static.
3219 (safe_parse_type): Make static.
3220 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3221 * macrotab.c (macro_bcache_free): Make static.
3222 * interps.c (interp_set_quiet): Make static.
3223 (interpreter_exec_cmd): Make static.
3224 * stack.h (select_frame_command): New file.
3225 * stack.c: Include "stack.h".
3226 (select_frame_command_wrapper): Delete function.
3227 (select_frame_command): Make global.
3228 * infcall.c: Include "infcall.h".
3229 * linespec.c: Include "linespec.h".
3230 * symfile.c (sections_overlap): Make static.
3231 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3232 * charset.c (_initialize_charset): Add missing prototype.
3233 * regcache.c (init_legacy_regcache_descr): Make static.
3234 (do_regcache_xfree): Make static.
3235 (regcache_xfer_part): Make static.
3236 (_initialize_regcache): Add missing prototype.
3237 * breakpoint.c (parse_breakpoint_sals): Make static.
3238 (breakpoint_sals_to_pc): Make static.
3239 * interps.h (clear_interpreter_hooks): ISO C declaration.
3240 * Makefile.in (stack_h): Define.
3241 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3242 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3243
3244 2003-06-08 Andrew Cagney <cagney@redhat.com>
3245
3246 * Makefile.in (d10v-tdep.o): Update dependencies.
3247 (SFILES): Add trad-frame.c.
3248 (trad_frame_h): Define.
3249 (COMMON_OBS): Add trad-frame.o.
3250 (trad-frame.o): Specify dependencies.
3251 * d10v-tdep.c: Include "trad-frame.h".
3252 (saved_regs_unwinder): Delete function.
3253 (d10v_frame_prev_register): Use trad_frame_prev_register.
3254 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3255 trad_frame", delete "regs" and "prev_sp".
3256 (prologue_find_regs): Use trad-frame.
3257 * trad-frame.h, trad-frame.c: New files.
3258
3259 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3260
3261 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3262
3263 2003-06-07 Adam Fedor <fedor@gnu.org>
3264
3265 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3266 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3267 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3268 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3269 resolve_msgsend_super, resolve_msgsend_super_stret):
3270 Use it.
3271
3272 2003-06-07 Andrew Cagney <cagney@redhat.com>
3273
3274 * symfile.h: Re-indent, clean up comments.
3275
3276 2003-06-07 Andrew Cagney <cagney@redhat.com>
3277
3278 * inferior.h (deprecated_write_sp): Replace
3279 generic_target_write_sp.
3280 * regcache.c (deprecated_write_sp): Replace
3281 generic_target_write_sp.
3282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3283 * vax-tdep.c (vax_gdbarch_init): Update.
3284 * v850-tdep.c (v850_gdbarch_init): Update.
3285 * sparc-tdep.c (sparc_gdbarch_init): Update.
3286 * sh-tdep.c (sh_gdbarch_init): Update.
3287 * s390-tdep.c (s390_gdbarch_init): Update.
3288 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3289 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3290 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3291 * mcore-tdep.c (mcore_gdbarch_init): Update.
3292 * m68k-tdep.c (m68k_gdbarch_init): Update.
3293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3294 * ia64-tdep.c (ia64_gdbarch_init): Update.
3295 * h8300-tdep.c (h8300_gdbarch_init): Update.
3296 * frv-tdep.c (frv_gdbarch_init): Update.
3297 * cris-tdep.c (cris_gdbarch_init): Update.
3298 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3299
3300 2003-06-07 Andrew Cagney <cagney@redhat.com>
3301
3302 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3303 Assert that PC_REGNUM is valid.
3304 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3305
3306 2003-06-07 Andrew Cagney <cagney@redhat.com>
3307
3308 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3309 * gdbarch.h, gdbarch.c: Regenerate.
3310 * mn10300-tdep.c: Include "gdb_assert.h".
3311 (mn10300_read_fp): New function.
3312 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3313 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3314 * ia64-tdep.c: Include "gdb_assert.h".
3315 (ia64_read_fp): New function.
3316 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3317 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3318 * regcache.c (generic_target_read_sp): Delete function.
3319 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3320 * inferior.h (generic_target_read_sp): Delete declaration.
3321 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3322 generic_target_read_sp.
3323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3324 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3325 * sh-tdep.c (sh_gdbarch_init): Ditto.
3326 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3327 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3328
3329 2003-06-07 Andrew Cagney <cagney@redhat.com>
3330
3331 * gdbarch.sh: Comment each field of startup_gdbarch.
3332 * gdbarch.h, gdbarch.c: Re-generate.
3333
3334 2003-06-07 Andrew Cagney <cagney@redhat.com>
3335
3336 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3337 * gdbarch.h, gdbarch.c: Re-generate.
3338 * regcache.c: Update comments on read_pc et.al.
3339 (generic_target_read_pc): Delete function.
3340 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3341 * inferior.h (generic_target_read_pc): Delete declaration.
3342 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3343 generic_target_read_pc.
3344 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3345 * sh-tdep.c (sh_gdbarch_init): Ditto.
3346 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3348
3349 2003-06-07 Andrew Cagney <cagney@redhat.com>
3350
3351 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3352 "index" with "special_local_sect". Use strcmp instead of STREQ.
3353 Append period to coments.
3354
3355 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3356
3357 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3358 (elfstab_offset_sections): Likewise.
3359 * gdb-stabs.h (stab_section_info): Likewise.
3360 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3361 * objfiles.c (objfile_relocate): Likewise.
3362 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3363 * remote.c (get_offsets): Likewise.
3364 (remote_cisco_objfile_relocate): Likewise.
3365 * somread.c (som_symfile_offsets): Likewise.
3366 * symfile.c (alloc_section_addr_info): New function.
3367 (build_section_addr_info_from_section_tab): Use it.
3368 (free_section_addr_info): Adjust.
3369 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3370 (syms_from_objfile): Allocate local_addr dynamically.
3371 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3372 dynamically.
3373 (add_symbol_file_command): Allocate sect_opts dynamically.
3374 (reread_symbols): Avoid use of SECT_OFF_MAX.
3375 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3376 (alloc_section_addr_info): Declare it.
3377 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3378 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3379 dynamically.
3380 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3381
3382 2003-06-06 Andrew Cagney <cagney@redhat.com>
3383
3384 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3385 (d10v_frame_unwind_cache): Do not set "return_pc".
3386
3387 2003-06-06 Michael Snyder <msnyder@redhat.com>
3388
3389 * h8300-tdep.c: Make tidy (long lines).
3390
3391 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3392
3393 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3394 to regcache_collect().
3395
3396 2003-06-05 J. Brobecker <brobecker@gnat.com>
3397
3398 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3399 pc_in_sigtramp multiarch method.
3400 (hppa_hpux_som_init_abi): Use it.
3401 (hppa_hpux_elf_init_abi): Likewise.
3402 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3403 macro has been multiarched.
3404 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3405 macro here, as hppa64 isn't multiarched yet.
3406
3407 2003-06-05 Andrew Cagney <cagney@redhat.com>
3408
3409 * Makefile.in (value_h): Add $(frame_h).
3410 * value.h: Include "frame.h".
3411 (struct value): Replace "frame_addr" with "frame_id".
3412 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3413 * values.c (allocate_value): Use VALUE_FRAME_ID.
3414 (value_copy): Use VALUE_FRAME_ID.
3415 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3416 * valops.c (value_assign): Update. Use frame_find_by_id.
3417
3418 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3419
3420 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3421 in each pass.
3422
3423 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3424
3425 * thread-db.c (check_event): For create/death event breakpoints,
3426 loop through all messages to ensure that we read the message
3427 corresponding to the breakpoint we are at.
3428
3429 2003-06-04 Michael Snyder <msnyder@redhat.com>
3430
3431 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3432
3433 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3434
3435 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3436 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3437 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3438 when handling .eh_frame sections.
3439
3440 2003-06-04 J. Brobecker <brobecker@gnat.com>
3441
3442 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3443 prepare_to_proceed procedure instead of the hppa-specific one.
3444 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3445
3446 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3447
3448 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3449 * config.in: Regenerated.
3450 * configure.in: Add test for syscall function and check for
3451 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3452 * configure: Regenerated.
3453 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3454 <sys/syscall.h>.
3455 (kill_lwp): New function that uses tkill syscall or
3456 uses kill, depending on whether threading model is nptl or not.
3457 All callers of kill() changed to use kill_lwp().
3458 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3459 see if all threads have already exited in the nptl model.
3460 (stop_and_resume_callback): New callback function used by the
3461 lin_lwp_wait thread exit handling code.
3462 (stop_wait_callback): Check for threads already having exited and
3463 delete such threads fromt the lwp list when discovered.
3464 (stop_callback): Don't assert retcode of kill call.
3465
3466 Roland McGrath <roland@redhat.com>
3467 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3468 nptl libthread_db.
3469
3470 2003-06-03 Richard Henderson <rth@redhat.com>
3471
3472 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3473 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3474 (alpha_sigtramp_frame_prev_register): Likewise.
3475 (alpha_heuristic_frame_prev_register): Likewise.
3476 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3477
3478 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3479 alpha-specific register id names.
3480 (alpha_mdebug_frame_unwind_cache): Likewise.
3481 (alpha_mdebug_frame_prev_register): Likewise.
3482
3483 2003-06-03 Richard Henderson <rth@redhat.com>
3484
3485 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3486 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3487 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3488 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3489 unwind routines.
3490 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3491 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3492 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3493
3494 * alpha-linux-tdep.c: Remove unnecessary includes.
3495 * Makefile.in (alpha-linux-tdep.o): Update.
3496
3497 2003-06-03 Richard Henderson <rth@redhat.com>
3498
3499 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3500 (alphabsd_fill_fpreg): Likewise.
3501
3502 2003-06-03 J. Brobecker <brobecker@gnat.com>
3503
3504 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3505 references to struct frame_info fields by calls to the equivalent
3506 accessors. Necessary now that frame_info is opaque.
3507
3508 2003-06-03 J. Brobecker <brobecker@gnat.com>
3509
3510 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3511 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3512 structure, field no longer exists.
3513
3514 2003-06-03 J. Brobecker <brobecker@gnat.com>
3515
3516 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3517 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3518
3519 2003-06-03 J. Brobecker <brobecker@gnat.com>
3520
3521 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3522 references to struct frame_info fields by calls to the equivalent
3523 accessors. Necessary now that frame_info is opaque.
3524
3525 2003-06-03 J. Brobecker <brobecker@gnat.com>
3526
3527 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3528 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3529 structure, field no longer exists.
3530
3531 2003-06-03 Theodore A. Roth <troth@openavr.org>
3532
3533 * remote.c (init_remote_state): Compute sizeof_g_packet by
3534 accumulation of the size of all registers instead of blindly using
3535 DEPRECATED_REGISTER_BYTES.
3536
3537 2003-06-03 Michael Snyder <msnyder@redhat.com>
3538
3539 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3540 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3541 for h8300sx.
3542
3543 2003-06-03 J. Brobecker <brobecker@gnat.com>
3544
3545 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3546 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3547
3548 2003-06-03 Andrew Cagney <cagney@redhat.com>
3549
3550 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3551 (sparc_convert_to_raw): Delete function.
3552 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3553 register_convert_to_virtual.
3554
3555 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3556
3557 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3558 layer if not dealing with a statically-linked threaded program.
3559
3560 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3561
3562 * solib.c (solib_open): Update comment to reflect actual search order.
3563
3564 2003-06-03 Andrew Cagney <cagney@redhat.com>
3565
3566 * frame.c (get_frame_memory_signed): New function.
3567 (get_frame_memory, get_frame_memory_unsigned): New function.
3568 (get_frame_arch): New function.
3569 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3570 (get_frame_memory, get_frame_unsigned_memory): Declare.
3571 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3572 get_frame_memory_unsigned and get_frame_arch.
3573 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3574
3575 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3576
3577 * MAINTAINERS (write after approval): Add myself.
3578
3579 2003-06-03 Jim Blandy <jimb@redhat.com>
3580
3581 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3582 elements of gregset_t are 64 bits each, but access registers
3583 are still 32 bits, so they're packed two per gregset_t
3584 element. Unpack/pack them properly.
3585
3586 2003-06-02 David Carlton <carlton@bactrian.org>
3587
3588 * linespec.c (find_methods): Break out code into
3589 add_matching_methods and add_constructors.
3590 (add_matching_methods): New.
3591 (add_constructors): Ditto.
3592
3593 2003-06-02 Andrew Cagney <cagney@redhat.com>
3594
3595 * sparc-tdep.c (sparc_print_registers): Delete call to
3596 REGISTER_CONVERTIBLE.
3597 (sparc_gdbarch_init): Do not set register_convertible.
3598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3599 * frv-tdep.c (frv_gdbarch_init): Ditto.
3600 * cris-tdep.c (cris_gdbarch_init): Ditto.
3601
3602 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3603
3604 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3605 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3606 (syms_from_objfile): Ditto.
3607
3608 2003-06-03 Andreas Schwab <schwab@suse.de>
3609
3610 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3611 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3612
3613 2003-06-02 Richard Henderson <rth@redhat.com>
3614
3615 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3616 a member of all_reggroup.
3617
3618 2003-06-02 Richard Henderson <rth@redhat.com>
3619
3620 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3621 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3622 (alpha_lds, alpha_sts): New.
3623 (alpha_convert_register_p): Change from _register_convertible.
3624 (alpha_register_to_value): Change from _convert_to_virtual;
3625 restructure and fail for type sizes other than 4 or 8.
3626 (alpha_value_to_register): Similarly.
3627 (alpha_extract_return_value): Use alpha_sts.
3628 (alpha_store_return_value): Use alpha_lds.
3629 (alpha_gdbarch_init): Update hooks.
3630
3631 2003-06-02 Richard Henderson <rth@redhat.com>
3632
3633 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3634 regnum identifiers.
3635 (alpha_sigtramp_register_address): Likewise.
3636
3637 2003-06-02 Richard Henderson <rth@redhat.com>
3638
3639 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3640 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3641 * alpha-tdep.h: Declare them.
3642
3643 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3644 Remove zerobuf. Don't error on UNIQUE.
3645 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3646 (ALPHA_REGSET_UNIQUE): Provide default.
3647 (supply_gregset): Use alpha_supply_int_regs.
3648 (fill_gregset): Use alpha_fill_int_regs.
3649 (supply_fpregset): Use alpha_supply_fp_regs.
3650 (fill_fpregset): Use alpha_fill_fp_regs.
3651 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3652 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3653 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3654 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3655 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3656 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3657
3658 2003-06-02 Richard Henderson <rth@redhat.com>
3659
3660 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3661
3662 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3663 (alpha_store_return_value): Likewise.
3664
3665 2003-06-02 David Carlton <carlton@math.stanford.edu>
3666
3667 * block.c (contained_in): Add 'const' to arguments.
3668 (block_function): Ditto.
3669 * block.h: Update declarations for block_function and
3670 contained_in.
3671
3672 2003-06-02 David Carlton <carlton@math.stanford.edu>
3673
3674 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3675 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3676 * p-valprint.c (pascal_val_print): Ditto.
3677 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3678
3679 2003-06-02 Richard Henderson <rth@redhat.com>
3680
3681 * alpha-tdep.c (alpha_push_dummy_call): Use
3682 builtin_type_ieee_double_little instead of builtin_type_double.
3683
3684 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3685 sign-extension of 32-bit values.
3686 (alpha_store_return_value): Similarly.
3687
3688 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3689 (alpha_extract_return_value): Likewise.
3690 (alpha_store_return_value): Likewise.
3691
3692 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3693 (alpha_store_return_value): Error on IEEE Quad floats.
3694
3695 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3696 (alpha_extract_struct_value_address): Likewise.
3697 (alpha_store_return_value): Likewise.
3698 (alpha_store_struct_return): Remove.
3699 (alpha_gdbarch_init): Update hook registration to match.
3700
3701 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3702 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3703 macros where appropriate.
3704 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3705 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3706
3707 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3708 for SP, GP; void_func_ptr for PC; non-language-specific types
3709 for all others.
3710 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3711
3712 2003-06-02 Richard Henderson <rth@redhat.com>
3713
3714 * top.h (lim_at_start): Declare.
3715 * main.c (captured_main): Set it.
3716 * top.c (lim_at_start): Define.
3717 (command_loop): Use it instead of &environ.
3718 * event-top.c (command_handler): Likewise.
3719
3720 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3721
3722 * mipsnbsd-tdep.c: Update copyright years.
3723 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3724
3725 2003-06-01 Richard Henderson <rth@redhat.com>
3726
3727 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3728 (alpha-linux-tdep.o): Update dependencies.
3729 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3730 * alpha-mdebug-tdep.c: Remove unneeded includes.
3731
3732 2003-06-01 Richard Henderson <rth@redhat.com>
3733
3734 * alpha-tdep.c (alpha_register_reggroup_p): New.
3735 (alpha_gdbarch_init): Register it.
3736
3737 2003-06-02 Andrew Cagney <cagney@redhat.com>
3738
3739 * dwarfread.c: Eliminate "register"
3740 (decode_die_type): Eliminate assignment within "if".
3741 (struct_type, decode_array_element_type): Ditto.
3742 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3743 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3744 (decode_modified_type, completedieinfo): Ditto.
3745 * block.c: Eliminate "register".
3746 (blockvector_for_pc_sect): Eliminate assignment within "if".
3747 * cp-support.h (struct symbol): Opaque declaration.
3748 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3749
3750 2003-06-01 Richard Henderson <rth@redhat.com>
3751
3752 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3753 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3754
3755 2003-06-01 Adam Fedor <fedor@gnu.org>
3756
3757 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3758 * gdbarch.[ch]: Regenerate.
3759 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3760 (hppa_gdbarch_init): Set it in the gdbarch vector.
3761 * i386-tdep.c (i386_fetch_pointer_argument): New
3762 (i386_gdbarch_init): Set it into gdbarch.
3763 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3764 (rs6000_gdbarch_init): Set it in gdbarch.
3765 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3766 (sparc_gdbarch_init): Set it in gdbarch.
3767
3768 2003-06-01 Andrew Cagney <cagney@redhat.com>
3769
3770 * defs.h (extract_address): Delete declaration.
3771 * findvar.c (extract_address): Delete function.
3772 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3773 extract_address with the inline equivalent,
3774 extract_unsigned_integer.
3775 (xstormy16_extract_struct_value_address): Ditto.
3776 (xstormy16_pointer_to_address): Ditto.
3777 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3778 * v850-tdep.c (v850_push_arguments): Ditto.
3779 (v850_extract_return_value): Ditto.
3780 (v850_extract_struct_value_address): Ditto.
3781 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3782 (sparcnbsd_get_longjmp_target_64): Ditto.
3783 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3784 (get_longjmp_target): Ditto.
3785 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3786 (sh64_extract_struct_value_address): Ditto.
3787 (sh_push_arguments): Ditto.
3788 (sh64_push_arguments): Ditto.
3789 * remote-vxsparc.c (vx_read_register): Ditto.
3790 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3791 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3792 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3793 * mipsv4-nat.c (get_longjmp_target): Ditto.
3794 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3795 * mips-nat.c (get_longjmp_target): Ditto.
3796 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3797 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3798 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3799 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3800 * irix5-nat.c (get_longjmp_target): Ditto.
3801 * irix4-nat.c (get_longjmp_target): Ditto.
3802 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3803 (ia64_push_arguments): Ditto.
3804 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3805 * h8300-tdep.c (h8300_push_arguments): Ditto.
3806 (h8300_store_return_value): Ditto.
3807 (h8300_extract_struct_value_address): Ditto.
3808 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3809 (frv_push_arguments): Ditto.
3810 * avr-tdep.c (avr_pointer_to_address): Ditto.
3811 (avr_push_arguments): Ditto.
3812 * arm-tdep.c (arm_push_dummy_call): Ditto.
3813 (arm_get_longjmp_target): Ditto.
3814 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3815 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3816 (alpha_get_longjmp_target): Ditto.
3817
3818 * solib-irix.c (extract_mips_address): Inline extract_address,
3819 replacing it with extract_signed_integer.
3820 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3821 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3822 (first_link_map_member, open_symbol_file_object): Ditto.
3823 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3824 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3825 (LM_NEXT, LM_NAME): Ditto.
3826
3827 2003-06-01 Richard Henderson <rth@redhat.com>
3828
3829 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3830 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3831 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3832 (alpha_cannot_store_register): Likewise.
3833 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3834 * alpha-nat.c (supply_gregset): Likewise.
3835 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3836
3837 2003-06-01 Andrew Cagney <cagney@redhat.com>
3838
3839 * infcall.c (call_function_by_hand): Update comment on
3840 DEPRECATED_DUMMY_WRITE_SP.
3841
3842 * mips-tdep.c (mips_gdbarch_init): Do not set
3843 deprecated_dummy_write_sp.
3844 (mips_eabi_push_dummy_call): Set the SP register.
3845 (mips_o64_push_dummy_call): Set the SP register.
3846 (mips_o32_push_dummy_call): Set the SP register.
3847 (mips_n32n64_push_dummy_call): Set the SP register.
3848
3849 2003-06-01 Richard Henderson <rth@redhat.com>
3850
3851 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3852 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3853 (supply_gregset): Likewise.
3854 * alpha-tdep.c (alpha_store_return_value): Likewise.
3855 (alpha_get_longjmp_target): Likewise.
3856 (alpha_register_name): Constify array.
3857 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3858 deprecated_register_size, deprecated_register_bytes,
3859 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3860 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3861 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3862
3863 2003-06-01 Richard Henderson <rth@redhat.com>
3864
3865 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3866 from arg_reg_buffer to regcache to avoid double conversion.
3867
3868 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3869
3870 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3871 SP_REGNUM.
3872 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3873 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3874
3875 2003-06-01 Richard Henderson <rth@redhat.com>
3876
3877 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3878 (decode_frame_entry): Set it. Skip FDE augmentation.
3879
3880 2003-06-01 Richard Henderson <rth@redhat.com>
3881
3882 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3883 not overlapping PC_REGNUM.
3884
3885 2003-06-01 Richard Henderson <rth@redhat.com>
3886
3887 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3888 alpha_push_arguments. Don't dump argument register data to
3889 the target stack. Fix float and 128-bit long double semantics.
3890 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3891 (alpha_fix_call_dummy): Remove.
3892 (alpha_call_dummy_words): Remove.
3893 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3894
3895 2003-06-01 Richard Henderson <rth@redhat.com>
3896
3897 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3898
3899 2003-06-01 Andrew Cagney <cagney@redhat.com>
3900
3901 * mips-tdep.c (is_mips16_addr): New function.
3902 (make_mips16_addr, unmake_mips16_addr): New functions.
3903 (pc_is_mips16, mips_fetch_instruction): Use.
3904 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3905 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3906 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3907 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3908 TARGET_MIPS.
3909 * config/mips/tm-mips.h: Update copyright.
3910 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3911 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3912 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3913 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3914 (TM_PRINT_INSN_MACH): Delete.
3915 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3916
3917 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3918 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3919 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3920 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3921 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3922 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3923 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3924 mips*-*-riscos* and mips*-*-sysv* onto mips.
3925 * config/mips/mips64.mt: New file.
3926 * config/mips/mips.mt: New file.
3927 * config/mips/littlemips.mt: Delete file.
3928 * config/mips/decstation.mt: Delete file.
3929 * config/mips/vr4300el.mt: Delete file.
3930 * config/mips/vr5000el.mt: Delete file.
3931 * config/mips/vr5000.mt: Delete file.
3932 * config/mips/vr4100.mt: Delete file.
3933 * config/mips/vr4xxxel.mt: Delete file.
3934 * config/mips/vr4300.mt: Delete file.
3935 * config/mips/vr4xxx.mt: Delete file.
3936 * config/mips/bigmips.mt: Delete file.
3937 * config/mips/bigmips64.mt: Delete file.
3938 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3939 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3940 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3941 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3942 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3943 "tm-bigmips.h".
3944 * config/mips/tm-irix3.h: Ditto.
3945 * config/mips/tm-mipsv4.h: Ditto.
3946 * config/mips/tm-embed.h: Ditto.
3947 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3948 "tm-bigmips64.h".
3949 * config/mips/tm-vr5000el.h: Delete file.
3950 * config/mips/tm-tx39l.h: Delete file.
3951 * config/mips/tm-vr4300el.h: Delete file.
3952 * config/mips/tm-vr4xxxel.h: Delete file.
3953 * config/mips/tm-vr4300.h: Delete file.
3954 * config/mips/tm-vr4100.h: Delete file.
3955 * config/mips/tm-vr4xxx.h: Delete file.
3956 * config/mips/tm-vr5000.h: Delete file.
3957 * config/mips/tm-embedl64.h: Delete file.
3958 * config/mips/tm-embedl.h: Delete file.
3959 * config/mips/tm-embed64.h: Delete file.
3960 * config/mips/tm-bigmips64.h: Delete file.
3961 * config/mips/tm-bigmips.h: Delete file.
3962
3963 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3964
3965 Fix gdb/1216.
3966 * shnbsd-nat.c: Include "sh-tdep.h".
3967
3968 From Richard Henderson <rth@redhat.com>:
3969 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3970
3971 2003-05-31 Andrew Cagney <cagney@redhat.com>
3972
3973 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3974 forward declaration.
3975 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3976 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3977 (mips_find_saved_regs): Use set_reg_offset.
3978 (mips_frame_init_saved_regs): Delete function.
3979 (mips_pop_frame): Call mips_find_saved_regs instead of
3980 DEPRECATED_FRAME_INIT_SAVED_REGS.
3981
3982 2003-05-31 Andrew Cagney <cagney@redhat.com>
3983
3984 * mips-tdep.c (mips_gdbarch_init): Do not set
3985 deprecated_max_register_raw_size, register_virtual_size, and
3986 deprecated_max_register_virtual_size.
3987
3988 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3989
3990 * i386-tdep.c: Include "dwarf2-frame.h".
3991 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3992 * Makefile.in (i386-tdep.o): Update dependencies.
3993
3994 * dwarf2-frame.c, dwarf2-frame.h: New files.
3995 * Makefile.in (SFILES): Add dwarf2-frame.c.
3996 (dwarf2_frame_h): Define.
3997 (COMMON_OBS): Add dwarf2-frame.o.
3998 (dwarf2-frame.o): Add dependencies.
3999
4000 2003-05-31 Andreas Jaeger <aj@suse.de>
4001
4002 * x86-64-linux-nat.c: Fix comment.
4003
4004 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4005
4006 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4007 function signature.
4008
4009 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4010 have a sigcontext_addr handler.
4011 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4012 sigcontext_addr handler.
4013
4014 2003-05-31 Andrew Cagney <cagney@redhat.com>
4015
4016 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4017 (print_fp_register_row): Replace do_fp_register_row.
4018 (mips_print_fp_register): Add "file" and "frame" parameters.
4019 (mips_print_register): Add "file" and "frame" parameters.
4020 (mips_print_registers_info): Replace mips_do_registers_info.
4021 (mips_gdbarch_init): Set print_registers_info instead of
4022 deprecated_do_registers_info.
4023 (mips_read_fp_register_single): Add "frame" parameter.
4024 (mips_read_fp_register_double): Add "frame" parameter.
4025
4026 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4027
4028 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4029 Fixes a bug where GDB would print the wrong register names for
4030 targets without SSE.
4031
4032 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4033 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4034 registers.
4035
4036 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4037 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4038 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4039 TDEP->sc_sp_offset.
4040
4041 From Michal Ludvig <mludvig@suse.cz>:
4042 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4043 and `sc_num_regs'.
4044 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4045 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4046 I386_ST0_REGNUM): Move here from...
4047 * i386-tdep.c: ... here.
4048 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4049 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4050 registers if possible.
4051 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4052 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4053 Remove variables.
4054 (i386bsd_sc_reg_offset): New variable.
4055 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4056 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4057 TDEP->sc_sp_offset.
4058 (i386fbsd_sc_reg_offset): New variable.
4059 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4060 TDEP->sc_num_regs.
4061 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4062 variables.
4063 (i386fbsd4_sc_reg_offset): New variable.
4064 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4065 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4066 TDEP->sc_sp_offset.
4067 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4068 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4069 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4070 Remove variables.
4071 (i386nbsd_sc_reg_offset): New variable.
4072 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4073 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4074 TDEP->sc_sp_offset.
4075 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4076 Remove variables.
4077 (i386obsd_sc_reg_offset): New variable.
4078 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4079 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4080 TDEP->sc_sp_offset.
4081 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4082 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4083 for frame pointer offset in `struct sigcontext'.
4084
4085 2003-05-31 Andrew Cagney <cagney@redhat.com>
4086
4087 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4088 architecture methods call_dummy_words, sizeof_call_dummy_words,
4089 push_return_address, store_struct_return, and fix_call_dummy. Set
4090 push_dummy_call instead of deprecated_push_arguments.
4091 (mips_store_struct_return): Delete function.
4092 (mips_fix_call_dummy): Delete function.
4093 (mips_push_return_address): Delete function.
4094 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4095 RA_REGNUM and T9_REGNUM.
4096 (mips_n32n64_push_dummy_call): Ditto for
4097 mips_n32n64_push_arguments.
4098 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4099 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4100
4101 2003-05-31 Andrew Cagney <cagney@redhat.com>
4102
4103 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4104 "dummy_addr" to "bp_addr".
4105 * infcall.c (call_function_by_hand): Pass "funaddr" to
4106 gdbarch_push_dummy_call.
4107 * gdbarch.h, gdbarch.c: Re-generate.
4108 * i386-tdep.c (i386_push_dummy_call): Update.
4109 * arm-tdep.c (arm_push_dummy_call): Update.
4110 * d10v-tdep.c (d10v_push_dummy_call): Update.
4111
4112 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4113
4114 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4115 variable declarations.
4116 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4117 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4118 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4119 x86_64_init_frame_pc, x86_64_init_frame_pc,
4120 x86_64_function_has_prologue): Remove prototypes.
4121 (X86_64_NUM_GREGS): New define.
4122 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4123 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4124 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4125 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4126 XMM1_REGNUM): Remove defines.
4127 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4128 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4129 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4130 X86_64_XMM1_REGNUM): New defines.
4131 (struct x86_64_register_info): Renamed from `struct
4132 register_info'. Remove `size' member.
4133 (x86_64_register_info_table): Remove variable.
4134 (x86_64_register_info): New variable.
4135 (X86_64_NUM_REGS): New define.
4136 (X86_64_NUM_GREGS): Remove define.
4137 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4138 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4139 Remove variables.
4140 (x86_54_dwarf2_reg_to_regnum): Remove function.
4141 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4142 (x86_64_dwarf_reg_to_regnum): New function.
4143 (x86_64_register_name): Rewrite.
4144 (x86_64_register_raw_size): Remove function.
4145 (x86_64_register_byte_table): Remove variable.
4146 (x86_64_register_byte): Remove function.
4147 (x86_64_register_virtual_type): Remove function.
4148 (x86_64_register_type): New function.
4149 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4150 x86_64_register_convert_to_raw): Remove functions.
4151 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4152 (x86_64_use_struct_convention): Make static. Adjust for renamed
4153 defines.
4154 (x86_64_frame_init_saved_regs): Remove function.
4155 (x86_64_push_arguments): Make static. Change to accept a regcache
4156 as argument.
4157 (x86_64_store_return_value, x86_64_extract_return_value): Make
4158 static. Rewrite based on i386 counterparts.
4159 (x86_64_push_dummy_call): New function.
4160 (X86_64_NUM_SAVED_REGS): New define.
4161 (x86_64_register_number): Remove function.
4162 (x86_64_store_struct_return): Remove function.
4163 (x86_64_frameless_function_invocation,
4164 x86_64_function_has_prologue): Remove functions.
4165 (PROLOG_BUFSIZE): Remove define.
4166 (struct x86_64_frame_cache): New structure.
4167 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4168 x86_64_frame_cache, x86_64_frame_this_id,
4169 x86_64_frame_prev_register, x86_64_frame_p,
4170 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4171 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4172 functions.
4173 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4174 variables.
4175 (x86_64_skip_prologue): Rewrite in terms of
4176 x86_64_analyze_prologue.
4177 (x86_64_frame_base_address): New function.
4178 (x86_64_frame_base): New variable.
4179 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4180 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4181 set deprecated_fp_regnum, deprecated_register_size,
4182 deprecated_register_bytes, register_raw_size, register_byte,
4183 register_virtual_type, register_convertiable,
4184 register_convert_to_virtual, convert_to_raw,
4185 deprecated_get_saved_register, deprecated_target_read_fp,
4186 deprecated_push_arguments, deprecated_push_return_address,
4187 deprecated_pop_frame, deprecated_store_struct_return,
4188 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4189 frameless_function_invocation, deprecated_frame_saved_pc,
4190 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4191 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4192 deprecated_init_frame_pc and virtual_frame_pointer. Call
4193 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4194 and x86_64_frame_p. Call frame_base_set_default to register
4195 x86_64_frame_base.
4196 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4197 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4198 (_initialize_x86_64_tdep): Remove function.
4199 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4200 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4201 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4202 define.
4203 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4204 (x86_64_linux_sigcontext_addr): Rewrite.
4205 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4206 x86_64_linux_frame_saved_pc): Remove functions.
4207 (x86_64_linux_pc_in_sigtramp): Renamed from
4208 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4209 trampoline.
4210 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4211 Remove_functions.
4212 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4213 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4214 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4215 (x86_64_regmap): Rename to regmap.
4216 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4217 x86_64_num_gregs.
4218 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4219 x86_64_regmap.
4220 (x86_64_fxsave_offset): Remove function.
4221 (supply_fpregset): Simply call x86_64_supply_fxsave.
4222 (fill_fpregset): Simply call x86_64_fill_fxsave.
4223 (fetch_inferior_registers, store_inferior_registers): Avoid
4224 asignment in if-statement.
4225 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4226 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4227 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4228 (fetch_core_registers): Remove function.
4229 (linux_elf_core_fns): Remove.
4230 (offsetoff): Don't define.
4231 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4232 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4233 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4234 add core-regset.o.
4235 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4236 protection against multiple includes instead of NM_X86_64_h. Add
4237 various comments. Include "config/nm-linux.h". Don't include
4238 <signal.h>.
4239 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4240 GET_THREAD_SIGNALS): Remove defines.
4241 (x86_64_register_u_addr, kernel_u_size,
4242 lin_thread_get_thread_signals): Remove prototypes.
4243 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4244 [HAVE_LINK_H]: Don't include "solib.h".
4245 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4246 * config/i386/tm-x86-64linux.h: Fix comments.
4247 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4248 x86-64-tdep.o): Update dependencies.
4249
4250 2003-05-30 Andrew Cagney <cagney@redhat.com>
4251
4252 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4253 Change parameter type to a "struct regcache *".
4254
4255 * gdbarch.sh: Regardless of the multi-arch level, always define
4256 the macro when not already defined.
4257 * gdbarch.h, gdbarch.c: Re-generate.
4258
4259 2003-05-30 Richard Henderson <rth@redhat.com>
4260
4261 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4262 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4263 (alpha_mdebug_frame_this_id): Likewise.
4264 (alpha_mdebug_frame_prev_register): Likewise.
4265 (alpha_mdebug_frame_base_address): Likewise.
4266 (alpha_mdebug_frame_locals_address): Likewise.
4267 (alpha_mdebug_frame_args_address): Likewise.
4268 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4269 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4270 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4271 loop increment.
4272 (alpha_heuristic_frame_this_id): Make static.
4273 (alpha_heuristic_frame_prev_register): Likewise.
4274 (alpha_heuristic_frame_base_address): Likewise.
4275 * alpha-tdep.h: Update.
4276
4277 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4278
4279 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4280 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4281 defenitions.
4282 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4283 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4284 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4285 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4286 I386_ST0_REGNUM): New defines.
4287 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4288 codestream_get): Remove define.
4289 (codestream_next_addr, condestream_addr, condestream_buf,
4290 codestream_off, codestream_cnt): Remove variables.
4291 (codestream_fill, codestream_seek, codestream_read): Remove
4292 functions.
4293 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4294 functionality.
4295 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4296 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4297 i386_frame_saved_pc, i386_saved_pc_after_call,
4298 i386_frame_num_args, i386_frame_init_saved_regs,
4299 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4300 i386_push_arguments): Remove functions.
4301 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4302 functionality. Use i386_analyze_prologue instead of
4303 i386_get_frame_setup.
4304 (I386_NUM_SAVED_REGS): New define.
4305 (struct i386_frame_cache): New structure.
4306 (i386_alloc_frame_cache, i386_analyze_struct_return,
4307 i386_skip_probe, i386_analyze_frame_setup,
4308 i386_analyze_register_saves, i386_analyze_prologue,
4309 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4310 i386_frame_prev_register, i386_sigtramp_frame_cache,
4311 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4312 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4313 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4314 New functions.
4315 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4316 New variables.
4317 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4318 I386_EAX_REGNUM and I386_EDX_REGNUM.
4319 (i386_extract_return_value, i386_store_return_value): Use
4320 I386_ST0_REGNUM where appropriate.
4321 (i386_extract_struct_value_address): Rewrite to use extract_address.
4322 (i386_svr4_pc_in_sigtramp): Add comment.
4323 (i386_svr4_sigcontext_addr): Rewrite.
4324 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4325 TDEP->sc_sp_offset.
4326 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4327 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4328 of new defines. Set push_dummy_call, don't set
4329 deprecated_push_arguments, deprecated_push_return_address,
4330 deprecated_pop_frame. Don't set parm_boundary. Don't set
4331 deprecated_frame_chain, deprecated_frame_saved_pc,
4332 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4333 save_dummy_frame_tos, unwind_pc. Call
4334 frame_unwind_append_predicate and frame_base_set_default. Don't
4335 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4336 Don't set frameless_function_invocation. Don't set
4337 deprecated_register_bytes, deprecated_register_size,
4338 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4339 * i386-linux-tdep.c: Fix formatting in some comments.
4340 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4341 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4342 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4343 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4344 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4345 redundant parentheses.
4346 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4347 (i386_linux_sigcontext_addr): Use it. Rewrite.
4348 (find_minsym_and_objfile): Change name of second argument.
4349 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4350 changed. Use frame_pc_unwind instead of
4351 DEPRECATED_SAVED_PC_AFTER_CALL.
4352 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4353 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4354 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4355 unwinder.
4356 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4357 "dummy-frame.h".
4358 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4359 (_initialize_i386_cygwin_tdep): New prototype.
4360 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4361 deprecated_frame_chain_valid.
4362 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4363 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4364 Rely on the SVR4 defaults.
4365 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4366 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4367
4368 2003-05-30 Andrew Cagney <cagney@redhat.com>
4369
4370 * infcall.c (call_function_by_hand): Always call
4371 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4372
4373 2003-05-30 Richard Henderson <rth@redhat.com>
4374
4375 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4376 increment.
4377
4378 2003-05-29 Jim Blandy <jimb@redhat.com>
4379
4380 Use gdbarch methods for solib stuff on PowerPC Linux.
4381 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4382 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4383 show through.
4384 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4385 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4386 giving the same effect as the #definitions above.
4387
4388 2003-05-29 Adam Fedor <fedor@gnu.org>
4389
4390 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4391 (find_implementation_from_class): Replace it with the standard
4392 case i.e. do nothing.
4393
4394 2003-05-29 Richard Henderson <rth@redhat.com>
4395
4396 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4397 (alpha_linux_sigtramp_offset): Use it. Make static.
4398 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4399 update for new frame model.
4400 * alpha-mdebug-tdep.c: New file.
4401 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4402 (alpha_osf1_init_abi): Install it.
4403 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4404 (linked_proc_desc_table): Remove.
4405 (alpha_frame_past_sigtramp_frame): Remove.
4406 (alpha_dynamic_sigtramp_offset): Remove.
4407 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4408 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4409 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4410 (push_sigtramp_desc): Remove.
4411 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4412 (alpha_cannot_store_register): Likewise.
4413 (alpha_sigcontext_addr): Remove.
4414 (alpha_find_saved_regs): Remove.
4415 (alpha_frame_init_saved_regs): Remove.
4416 (alpha_init_frame_pc_first): Remove.
4417 (read_next_frame_reg): Remove.
4418 (alpha_frame_saved_pc): Remove.
4419 (alpha_saved_pc_after_call): Remove.
4420 (temp_proc_desc, temp_saved_regs): Remove.
4421 (alpha_about_to_return): Remove.
4422 (cached_proc_desc): Remove.
4423 (alpha_frame_chain): Remove.
4424 (alpha_print_extra_frame_info): Remove.
4425 (alpha_init_extra_frame_info): Remove.
4426 (alpha_frame_locals_address): Remove.
4427 (alpha_frame_args_address): Remove.
4428 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4429 (alpha_push_dummy_frame): Remove.
4430 (alpha_pop_frame): Remove.
4431 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4432 (alpha_read_insn): New.
4433 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4434 for different insn encodings.
4435 (alpha_in_lenient_prologue): Remove.
4436 (struct alpha_sigtramp_unwind_cache): New.
4437 (alpha_sigtramp_frame_unwind_cache): New.
4438 (alpha_sigtramp_register_address): New.
4439 (alpha_sigtramp_frame_this_id): New.
4440 (alpha_sigtramp_frame_prev_register): New.
4441 (alpha_sigtramp_frame_unwind): New.
4442 (alpha_sigtramp_frame_p): New.
4443 (struct alpha_heuristic_unwind_cache): New.
4444 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4445 don't count nop insns that occur between functions.
4446 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4447 heuristic_proc_desc, but without the mdebug wrapping.
4448 (alpha_heuristic_frame_this_id): New.
4449 (alpha_heuristic_frame_prev_register): New.
4450 (alpha_heuristic_frame_unwind): New.
4451 (alpha_heuristic_frame_p): New.
4452 (alpha_heuristic_frame_base_address): New.
4453 (alpha_heuristic_frame_base): New.
4454 (alpha_unwind_dummy_id): New.
4455 (alpha_unwind_pc): New.
4456 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4457 frame related deprecated initializations; install replacements.
4458 (alpha_dump_tdep): Remove.
4459 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4460 (alpha_read_insn, alpha_after_prologue,
4461 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4462 alpha_heuristic_frame_prev_register,
4463 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4464 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4465 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4466 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4467
4468 2003-05-29 Andrew Cagney <cagney@redhat.com>
4469
4470 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4471 dependant on the availability of ASSERT_FUNCTION.
4472 (ASSERT_FUNCTION): Do not define when there is no function name.
4473
4474 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4475
4476 From Jimi X <jimix@watson.ibm.com>:
4477 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4478
4479 2003-05-28 Jim Blandy <jimb@redhat.com>
4480
4481 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4482 argument to ptrace to int; the system headers should give it the
4483 right type, and pointers don't fit in ints on powerpc64-*-*.
4484
4485 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4486
4487 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4488 DW_TAG_catch_block.
4489
4490 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4491
4492 * stabsread.c (dbx_lookup_type): Make static.
4493 (read_type): Ditto.
4494 (add_undefined_type): Ditto.
4495 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4496 not export.
4497
4498 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4499
4500 * hpread.c (hpread_has_name): Make static.
4501 (hpread_psymtab_to_symtab): Ditto.
4502 (file_exists): Ditto.
4503 (hpread_call_pxdb): Ditto.
4504 (hpread_pxdb_needed): Ditto.
4505 (hpread_quick_traverse): Ditto.
4506 (hpread_get_header): Ditto.
4507 (hpread_get_lntt): Ditto.
4508 (hpread_get_slt): Ditto.
4509 (class_of): Ditto.
4510
4511 2003-05-25 Andreas Schwab <schwab@suse.de>
4512
4513 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4514 stack_align and deprecated_extra_stack_alignment_needed.
4515 (m68k_stack_align): Delete.
4516
4517 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4518 (m68k_register_virtual_size): Likewise.
4519 (altos_skip_prologue): Remove obsolete function.
4520 (isi_frame_num_args): Likewise.
4521 (news_frame_num_args): Likewise.
4522 (m68k_fix_call_dummy): Make static.
4523 (m68k_push_dummy_frame): Likewise.
4524 (m68k_pop_frame): Likewise.
4525 (m68k_skip_prologue): Likewise.
4526 (m68k_frame_init_saved_regs): Likewise.
4527 (m68k_saved_pc_after_call): Likewise.
4528 (m68k_get_longjmp_target): Make multi-arch.
4529 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4530 structure. Register m68k_get_longjmp_target if enabled.
4531 * m68k-tdep.h (struct gdbarch_tdep): Define.
4532 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4533
4534 * Makefile.in (config.status): Also depend on configure.tgt
4535 and configure.host.
4536 (m68klinux-tdep.o): Update dependencies.
4537 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4538 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4539 (M68K_LINUX_JB_PC): Define.
4540 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4541 and take additional parameter.
4542 (m68k_linux_sigtramp_saved_pc): Update.
4543 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4544 m68k_linux_pc_in_sigtramp, in_plt_section,
4545 find_solib_trampoline_target.
4546 * config/m68k/tm-linux.h: Don't include any tm headers.
4547 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4548 (JB_ELEMENT_SIZE): Likewise.
4549 (JB_PC): Likewise.
4550 (GET_LONGJMP_TARGET): Likewise.
4551 (IN_SIGTRAMP): Likewise.
4552 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4553
4554 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4555
4556 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4557 (sparc32_push_arguments): Re-implement by calling
4558 sparc32_do_push_arguments.
4559
4560 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4561
4562 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4563 SPARC_O1_REGNUM): New defines.
4564 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4565 (sparc32_store_return_value): New function.
4566 (sparc_extract_struct_value_address): Rewrite to operate on a
4567 regcache.
4568 (sparc_gdbarch_init): Don't set
4569 deprecated_extract_struct_value_address. Set
4570 extract_struct_value_address instead. Don't set
4571 deprecated_extract_return_value and deprecated_store_return_value
4572 for 32-bit targets. Set extract_return_value and
4573 store_return_value instead.
4574 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4575 DEPRECTAED_EXTRACT_RETURN_VALUE,
4576 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4577 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4578 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4579 (sparc_store_return_value): Remove prototype.
4580 (sparc32_store_return_value): New prototype.
4581 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4582 Adjust prototypes.
4583
4584 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4585
4586 * sparcnbsd-tdep.c: Include "gdb_string.h".
4587
4588 2003-05-23 Andrew Cagney <cagney@redhat.com>
4589
4590 * p-valprint.c (pascal_val_print): Replace extract_address with
4591 the inline equivalent extract_unsigned_integer.
4592 * jv-valprint.c (java_value_print): Ditto.
4593 * ada-valprint.c (ada_val_print_1): Ditto.
4594 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4595
4596 2003-05-23 Theodore A. Roth <troth@openavr.org>
4597
4598 * blockframe.c (frameless_look_for_prologue): Remove unused
4599 after_prologue variable.
4600
4601 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4602
4603 * blockframe.c (get_pc_function_start): Rewrite to avoid
4604 asignments in if-statements.
4605
4606 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4607
4608 Committed by Elena Zannoni <ezannoni@redhat.com>.
4609 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4610 files, don't relocate absolute symbols (and do use mst_abs).
4611
4612 2003-05-23 Andrew Cagney <cagney@redhat.com>
4613
4614 * objc-lang.c: Include "gdb_assert.h".
4615 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4616 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4617 (gdb_check, gdb_check_fatal): Delete functions.
4618 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4619 gdb_assert.
4620 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4621 * Makefile.in (objc-lang.o): Update dependencies.
4622
4623 2003-05-22 Ian Lance Taylor <ian@airs.com>
4624
4625 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4626 with fprintf_filtered, not fprintf_unfiltered.
4627
4628 2003-05-22 Andrew Cagney <cagney@redhat.com>
4629
4630 * stack.c (frame_info): Inline extract_address, replacing it with
4631 extract_unsigned_integer.
4632 * findvar.c (unsigned_pointer_to_address): Ditto.
4633 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4634 * dwarf2expr.c (dwarf2_read_address): Ditto.
4635 * frame.c (frame_pc_unwind): Update comment.
4636 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4637
4638 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4639
4640 * infptrace.c (detach): Call print_sys_errmsg rather than
4641 perror_with_name to issue warning message when errno is non-zero
4642 after calling ptrace detach.
4643
4644 2003-05-21 J. Brobecker <brobecker@gnat.com>
4645
4646 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4647 macro definitions from here...
4648 * hppa-tdep.c: ...to there.
4649
4650 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4651
4652 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4653 register_ptrace_addr(). Fix all callers.
4654
4655 2003-05-21 Andreas Schwab <schwab@suse.de>
4656
4657 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4658 dependencies.
4659 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4660 end.
4661 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4662 (_initialize_m68k_linux_tdep): New function.
4663 (m68k_linux_frame_saved_pc): Make static.
4664 (m68k_linux_extract_return_value): Likewise.
4665 (m68k_linux_store_return_value): Likewise.
4666 (m68k_linux_extract_struct_value_address): Likewise.
4667 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4668 Remove.
4669 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4670 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4671 (DEPRECATED_FRAME_SAVED_PC): Remove.
4672
4673 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4674
4675 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4676 regset numbering rather than our own.
4677
4678 2003-05-19 David Carlton <carlton@bactrian.org>
4679
4680 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4681
4682 2003-05-19 David Carlton <carlton@bactrian.org>
4683
4684 Partial fix for PR c++/827.
4685 * cp-support.h: Include symtab.h.
4686 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4687 * cp-namespace.c: Update contributors.
4688 (cp_lookup_symbol_nonlocal): New.
4689 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4690 (lookup_symbol_file): Ditto.
4691 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4692 * block.h: Declare block_scope, block_using, block_global_block.
4693 * block.c (block_scope): New.
4694 (block_using, block_global_block): Ditto.
4695 * Makefile.in (cp_support_h): Depend on symtab_h.
4696 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4697
4698 2003-05-19 David Carlton <carlton@bactrian.org>
4699
4700 * language.h (struct language_defn): Add 'la_value_of_this'
4701 and 'la_lookup_symbol_nonlocal' members.
4702 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4703 lookup_symbol_static, lookup_symbol_global,
4704 lookup_symbol_aux_block.
4705 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4706 if we should search fields of this and how to do static/global
4707 lookup.
4708 (lookup_symbol_aux_block): Make extern.
4709 (basic_lookup_symbol_nonlocal): New.
4710 (lookup_symbol_static, lookup_symbol_global): Ditto.
4711 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4712 'la_lookup_symbol_nonlocal' members.
4713 * c-lang.c (c_language_defn, cplus_language_defn)
4714 (asm_language_defn, minimal_language_defn): Ditto.
4715 * jv-lang.c (java_language_defn): Ditto.
4716 * language.c (unknown_language_defn, auto_language_defn)
4717 (local_language_defn): Ditto.
4718 * m2-lang.c (m2_language_defn): Ditto.
4719 * objc-lang.c (objc_language_defn): Ditto.
4720 * scm-lang.c (scm_language_defn): Ditto.
4721 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4722 * p-lang.c (pascal_language_defn): Ditto for both.
4723 * Makefile.in (f-lang.o): Depend on value_h.
4724 (p-lang.o): Ditto.
4725
4726 2003-05-19 David Carlton <carlton@bactrian.org>
4727
4728 * block.h: Declare block_static_block.
4729 * block.c (block_static_block): New.
4730 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4731 lookup_symbol_aux_local, calling block_static_block instead.
4732 (lookup_symbol_aux_local): Delete 'static_block' argument.
4733
4734 2003-05-19 David Carlton <carlton@bactrian.org>
4735
4736 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4737
4738 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4739
4740 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4741 register numbers mapping.
4742
4743 2003-05-18 Adam Fedor <fedor@gnu.org>
4744
4745 * symtab.c (completion_list_objc_symbol): New function.
4746 (make_symbol_completion_list): Use it to add ObjC symbols
4747 when looking though the list.
4748 (language_search_unquoted_string): New function.
4749 (make_file_symbol_completion_list): Use it.
4750
4751 2003-05-18 Andreas Schwab <schwab@suse.de>
4752
4753 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4754 dependencies.
4755 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4756 as m68k_linux_extract_return_value.
4757 (DEPRECATED_STORE_RETURN_VALUE): Define as
4758 m68k_linux_store_return_value.
4759 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4760 m68k_linux_extract_struct_value_address.
4761 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4762 get_next_frame, get_frame_base, get_frame_pc.
4763 (m68k_linux_frame_saved_pc): Use get_frame_base.
4764 (m68k_linux_extract_return_value): New function.
4765 (m68k_linux_store_return_value): New function.
4766 (m68k_linux_extract_struct_value_address): New function.
4767 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4768
4769 * c-exp.y (typebase): Remove duplicate occurence of
4770 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4771 of lookup_signed_typename.
4772
4773 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4774
4775 * dwarf2loc.c (find_location_expression): Change type of second
4776 argument to `size_t *'.
4777 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4778 for size variable.
4779
4780 2003-05-18 David Carlton <carlton@bactrian.org>
4781
4782 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4783 'linkage_name'. Add comment.
4784 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4785 'linkage_name'.
4786 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4787 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4788 (lookup_block_symbol): Ditto.
4789
4790 2003-05-16 Andrew Cagney <cagney@redhat.com>
4791
4792 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4793 * gdbarch.h, gdbarch.c: Re-generate.
4794 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4795 * TODO (REGISTER_BYTES): Delete reference.
4796 * alpha-tdep.c (alpha_gdbarch_init): Update.
4797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4798 * x86-64-tdep.c (x86_64_init_abi): Update.
4799 * vax-tdep.c (vax_gdbarch_init): Update.
4800 * v850-tdep.c (v850_gdbarch_init): Update.
4801 * sparc-tdep.c (sparc_gdbarch_init): Update.
4802 * sh-tdep.c (sh_gdbarch_init): Update.
4803 * s390-tdep.c (s390_gdbarch_init): Update.
4804 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4805 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4806 (ns32k_gdbarch_init_32382): Update.
4807 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4808 * mcore-tdep.c (mcore_gdbarch_init): Update.
4809 * m68k-tdep.c (m68k_gdbarch_init): Update.
4810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4811 * ia64-tdep.c (ia64_gdbarch_init): Update.
4812 * i386-tdep.c (i386_gdbarch_init): Update.
4813 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4814 * hppa-tdep.c (hppa_gdbarch_init): Update.
4815 * h8300-tdep.c (h8300_gdbarch_init): Update.
4816 * frv-tdep.c (frv_gdbarch_init): Update.
4817 * cris-tdep.c (cris_gdbarch_init): Update.
4818 * avr-tdep.c (avr_gdbarch_init): Update.
4819 * arm-tdep.c (arm_gdbarch_init): Update.
4820 * sparc-tdep.c (sparc_pop_frame): Update.
4821 * rs6000-tdep.c (rs6000_pop_frame): Update.
4822 * remote.c (init_remote_state): Update.
4823 (remote_prepare_to_store): Update.
4824 * remote-vx.c (vx_prepare_to_store): Update.
4825 * remote-sds.c (sds_fetch_registers): Update.
4826 (sds_prepare_to_store): Update.
4827 * remote-array.c: Update.
4828 * regcache.c (init_legacy_regcache_descr): Update.
4829 (init_regcache_descr): Update.
4830 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4831 (mips_o64_extract_return_value): Update.
4832 * irix5-nat.c (fetch_core_registers): Update.
4833 * irix4-nat.c (fetch_core_registers): Update.
4834 * i386-tdep.h: Update.
4835 * hppa-tdep.c (pa_do_registers_info): Update.
4836 (pa_do_strcat_registers_info): Update.
4837 * cris-tdep.c (cris_register_bytes_ok): Update.
4838 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4839 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4840 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4841 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4842 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4843 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4844 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4845 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4846 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4847 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4848 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4849 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4850 (REGISTER_BYTES_OK): Update.
4851 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4852 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4853
4854 2003-05-16 Ian Lance Taylor <ian@airs.com>
4855
4856 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4857 (vax_print_insn, print_insn_arg): Remove static functions.
4858 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4859 print_insn_vax from opcodes library.
4860 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4861
4862 2003-05-15 Andrew Cagney <cagney@redhat.com>
4863
4864 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4865 * target.h (memory_breakpoint_from_pc): Delete declaration.
4866 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4867 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4868 * monitor.c (monitor_insert_breakpoint): Use
4869 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4870 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4871 * gdbarch.h, gdbarch.c: Re-generate.
4872 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4873 (sparc_gdbarch_init): Set breakpoint_from_pc to
4874 sparc_breakpoint_from_pc.
4875 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4876 (BREAKPOINT_FROM_PC): Define.
4877 (sparc_breakpoint_from_pc): Declare.
4878 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4879 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4880 (BREAKPOINT_FROM_PC): Define.
4881 (BREAKPOINT): Delete macro.
4882 * target.h: Update comment.
4883 * s390-tdep.c (s390_gdbarch_init): Update comments.
4884 * remote.c: Update comments.
4885 * remote-mips.c: Update comments.
4886 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4887 * mem-break.c: Update comment.
4888 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4889 (ia64_memory_insert_breakpoint): Update.
4890 * config/sparc/tm-sparc.h: Update comment.
4891 * config/pa/tm-hppa64.h: Update comment.
4892 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4893 (rs6000_breakpoint_from_pc): Update.
4894 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4895 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4896 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4897 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4898 (mips_breakpoint_from_pc): Update.
4899 (mips_dump_tdep): Update.
4900
4901 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4902 * minsyms.c (lookup_minimal_symbol): Inline
4903 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4904
4905 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4906 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4907 * p-lang.c (pascal_printstr): Ditto.
4908 * objc-lang.c (objc_printstr): Ditto.
4909 * m2-lang.c (m2_printstr): Ditto.
4910 * jv-valprint.c (java_print_value_fields): Ditto.
4911 * f-lang.c (f_printstr): Ditto.
4912 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4913 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4914 for repeat_count_threshold.
4915 * Makefile.in (cp-valprint.o): Update dependencies.
4916
4917 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4918
4919 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4920 (examine_prologue): Support looking through leaf functions, knowing
4921 they start with mov r2,r12. Support skipping over indirect stores
4922 of the input registers. Upon hitting a non-nop branch instruction
4923 or predicated instruction, bail out by setting lim_pc to the current
4924 pc value in the loop. At the end, if the lim_pc value is still
4925 beyond our calculated value and we have trust_limit set,
4926 use the lim_pc value.
4927
4928 2003-05-15 Andrew Cagney <cagney@redhat.com>
4929
4930 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4931 generic_find_dummy_frame.
4932 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4933 (deprecated_generic_find_dummy_frame): Update.
4934 (deprecated_read_register_dummy): Update.
4935 * frame.c (deprecated_generic_get_saved_register): Update.
4936
4937 2003-05-15 Theodore A. Roth <troth@openavr.org>
4938
4939 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4940 (avr_gdbarch_init): Set breakpoint_from_pc method.
4941
4942 2003-05-15 Andrew Cagney <cagney@redhat.com>
4943
4944 * regcache.c (build_regcache): Set deprecated_register_valid
4945 directly.
4946 (deprecated_grub_regcache_for_register_valid): Delete function.
4947 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4948 declaration.
4949
4950 2003-05-15 David Carlton <carlton@bactrian.org>
4951
4952 Committed by Elena Zannoni <ezannoni@redhat.com>
4953 * symtab.c (lookup_symbol_aux): Delete calls to
4954 lookup_symbol_aux_minsyms.
4955 (lookup_symbol_aux_minsyms): Comment out function and
4956 prototype. Delete lookup by mangled name.
4957
4958 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4959
4960 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4961 correctly indicate an empty stack and ``stack_allocated'' to the
4962 indicate the number of elements initially allocated.
4963 (dwarf_expr_grow_stack): Simplify method for computing new
4964 stack size. Don't loop infinitely if ``stack_len'' is zero.
4965 (execute_stack_op): Move ``ctx->in_reg'' initialization
4966 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4967 be used in conjuction with DW_OP_piece. Revise error message
4968 accordingly.
4969
4970 2003-05-14 Theodore A. Roth <troth@openavr.org>
4971
4972 * MAINTAINERS: Update my email address.
4973 * avr-tdep.c: Ditto.
4974
4975 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4976
4977 * symtab.h (enum domain_enum): Rename from namespace_enum.
4978 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4979 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4980 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4981 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4982 TYPES_NAMESPACE, METHODS_NAMESPACE.
4983 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4984 (struct symbol, struct partial_symbol): Rename field
4985 'namespace_enum namespace' to 'domain_enum domain'.
4986 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4987 Delete old define kludge for namespace.
4988
4989 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4990 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4991 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4992 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4993 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4994 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4995 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4996 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4997 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4998 occurrences of the above.
4999
5000 2003-05-14 Ian Lance Taylor <ian@airs.com>
5001
5002 * Makefile.in (install-only): Use $(SHELL) when running
5003 mkinstalldirs.
5004
5005 2003-05-13 Ian Lance Taylor <ian@airs.com>
5006
5007 * MAINTAINERS (write after approval): Add myself.
5008
5009 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5010 second and third arguments.
5011 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5012 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5013
5014 2003-05-13 Andrew Cagney <cagney@redhat.com>
5015
5016 * defs.h (store_address): Delete declaration.
5017 findvar.c (store_address): Delete function.
5018 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5019 store_unsigned_integer.
5020 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5021 * v850-tdep.c (v850_push_arguments): Ditto.
5022 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5023 * sh-tdep.c (sh64_get_saved_register): Ditto.
5024 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5025 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5026 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5027 (mips_get_saved_register): Ditto.
5028 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5029 (find_func_descr, ia64_push_arguments): Ditto.
5030 * i386-tdep.c (i386_push_arguments): Ditto.
5031 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5032 * frv-tdep.c (frv_push_arguments): Ditto.
5033 * frame.c (legacy_saved_regs_prev_register): Ditto.
5034 (deprecated_generic_get_saved_register): Ditto.
5035 * findvar.c (unsigned_address_to_pointer): Ditto.
5036 * dwarf2read.c (dwarf2_const_value): Ditto.
5037 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5038 * alpha-tdep.c (alpha_push_arguments): Ditto.
5039
5040 2003-05-12 J. Brobecker <brobecker@gnat.com>
5041
5042 * NEWS: Mention that the hppa-hpux port has been partially
5043 multiarched (32bit ABIT only, so far).
5044
5045 2003-05-11 Andrew Cagney <cagney@redhat.com>
5046
5047 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5048 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5049 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5050 sim/testsuite/sim/arm/misaligned2.ms, and
5051 sim/testsuite/sim/arm/misaligned3.ms.
5052 * disasm.h (struct ui_file): Add opaque struct declaration.
5053 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5054 * frame.h (struct ui_file): Ditto.
5055
5056 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5057
5058 * value.h: Pretty print.
5059
5060 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5061
5062 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5063
5064 2003-05-08 Andrew Cagney <cagney@redhat.com>
5065
5066 * regcache.h (max_register_size): Delete declaration.
5067 * regcache.c (max_register_size): Delete function.
5068 (struct regcache_descr): Delete field "max_register_size".
5069 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5070 registers fit in MAX_REGISTER_SIZE.
5071 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5072 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5073 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5074 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5075 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5076 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5077 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5078 * dve3900-rom.c, hppa-tdep.c: Ditto.
5079
5080 2003-05-08 David Carlton <carlton@math.stanford.edu>
5081
5082 * valops.c (push_word): Fix typo.
5083
5084 2003-05-08 Andrew Cagney <cagney@redhat.com>
5085
5086 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5087 * gdbarch.h: Re-generate.
5088 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5089 (legacy_max_register_raw_size): Delete declaration.
5090 * regcache.c (legacy_max_register_raw_size): Delete function.
5091 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5092 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5093 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5094 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5095 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5096 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5097 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5098 * findvar.c, dwarf2cfi.c: Ditto.
5099
5100 2003-05-08 Andrew Cagney <cagney@redhat.com>
5101
5102 * mips-tdep.c (read_signed_register): New function, moved to here
5103 from "regcache.c".
5104 (read_signed_register_pid): Ditto.
5105 * regcache.c (read_signed_register_pid): Delete function, moved to
5106 "mips-tdep.c".
5107 (read_signed_register): Ditto.
5108 * regcache.h (read_signed_register): Delete declaration.
5109 (read_signed_register_pid): Delete declaration.
5110
5111 2003-05-08 Andrew Cagney <cagney@redhat.com>
5112
5113 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5114 * gdbarch.h: Re-generate.
5115 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5116 (legacy_max_register_virtual_size): Delete declaration.
5117 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5118 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5119 * tracepoint.c (memrange_sortmerge): Ditto.
5120 * sparc-tdep.c (sparc_print_registers): Ditto.
5121 * regcache.c (legacy_max_register_virtual_size): Delete function.
5122
5123 2002-05-08 J. Brobecker <brobecker@gnat.com>
5124
5125 * fork-child.c (escape_bang_in_quoted_argument): New function.
5126 (fork_inferior): Escape '!' characters in quoted arguments
5127 only when needed.
5128
5129 2003-05-08 J. Brobecker <brobecker@gnat.com>
5130
5131 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5132 the language of the CU is not currently supported by GDB.
5133
5134 2003-05-08 J. Brobecker <brobecker@gnat.com>
5135
5136 * defs.h (language): Add language_minimal enum value.
5137 * c-lang.c (minimal_language_defn): New language definition.
5138 (_initialize_c_language): Add the new minimal language to the list
5139 of languages known to GDB.
5140
5141 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5142
5143 * frame.c (get_frame_type): Don't attempt to lazily initialize
5144 frame's unwinder for legacy frames.
5145
5146 2003-05-07 Andrew Cagney <cagney@redhat.com>
5147
5148 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5149 and "regcache" parameters.
5150 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5151
5152 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5153
5154 * dwarf2read.c (dwarf_decode_lines): Only use output of
5155 check_cu_functions() when calling record_line(). Do not update
5156 the current address.
5157
5158 2003-05-07 Andrew Cagney <cagney@redhat.com>
5159
5160 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5161 code.
5162
5163 2003-05-07 Jim Blandy <jimb@redhat.com>
5164
5165 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5166 'maint info symtabs' and 'maint info psymtabs'.
5167 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5168 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5169 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5170 Declarations updated.
5171 * maint.c (maintenance_list_command): Delete.
5172 (_initialize_maint_cmds): Update calls to add_cmd.
5173 * gdbcmd.h (maintenancelistlist): Delete declaration.
5174 * cli/cli-cmds.c (maintenancelistlist): Delete.
5175 (init_cmd_lists): Don't initialize it.
5176 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5177
5178 2003-05-07 Andrew Cagney <cagney@redhat.com>
5179
5180 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5181 "regcache".
5182 (d10v_print_registers_info): Update.
5183 (d10v_dmap_register, d10v_imap_register): Delete functions.
5184 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5185 and "imap_register".
5186 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5187 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5188 * arch-utils.c (generic_remote_translate_xfer_address): Add
5189 "regcache" and "gdbarch" parameters.
5190 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5191 parameter. Change class to multi-arch.
5192 * gdbarch.h, gdbarch.c: Re-generate.
5193 * remote.c (remote_xfer_memory): Use
5194 gdbarch_remote_translate_xfer_address.
5195
5196 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5197
5198 * infrun.c (prev_pc): Move declaration ahead of proceed().
5199 (proceed): Refresh prev_pc value before resuming.
5200 (stop_stepping): Remove code to refresh prev_pc.
5201
5202 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5203
5204 * nto-tdep.c: Removed stray comment.
5205
5206 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5207
5208 * i386-nto-tdep.c: Fix old K&R function definitions.
5209 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5210 Also change add_show_from_set() call to add_setshow_cmd().
5211 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5212
5213 2003-05-05 Andrew Cagney <cagney@redhat.com>
5214
5215 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5216 (fprint_dummy_frames): New function.
5217 (maintenance_print_dummy_frames): New function.
5218 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5219 * frame.c (fprint_frame_id): Make global.
5220 * frame.h (fprint_frame_id): Declare.
5221 * Makefile.in (dummy-frame.o): Update dependencies.
5222
5223 2003-05-05 Andrew Cagney <cagney@redhat.com>
5224
5225 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5226 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5227 SIZEOF_CALL_DUMMY_WORDS.
5228 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5229 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5230 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5231 CALL_DUMMY_BREAKPOINT_OFFSET.
5232 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5233 CALL_DUMMY_START_OFFSET.
5234 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5235 * gdbarch.h, gdbarch.c: Re-generate.
5236 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5237 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5238 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5239 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5240 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5241 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5242 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5243 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5244 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5245 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5246 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5247 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5248 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5249 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5250 * config/sparc/tm-sparc.h: Update.
5251
5252 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5253
5254 * configure.tgt: Add i[3456]86-*-nto*.
5255 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5256 * nto-tdep.c: New file. Neutrino target support routines.
5257 * nto-tdep.h: New file. Neutrino target header.
5258 * config/tm-qnxnto.h: New file.
5259 * config/i386/i386nto.mt: New file.
5260 * config/i386/tm-i386nto.h: New file.
5261
5262 2003-05-04 Andrew Cagney <cagney@redhat.com>
5263
5264 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5265 (load_infrun_state): Ditto.
5266 (struct thread_info): Drop "prev_func_name" field.
5267 * thread.c (load_infrun_state): Update.
5268 (save_infrun_state): Update.
5269 * infrun.c (prev_func_name): Delete variable.
5270 (init_wait_for_inferior): Do not clear prev_func_name.
5271 (stop_stepping, keep_going, context_switch): Do not swap
5272 prev_func_name.
5273 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5274 instead of PC_IN_SIGTRAMP.
5275
5276 2003-05-04 Andrew Cagney <cagney@redhat.com>
5277
5278 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5279 REGISTER_BYTE with register_offset_hack.
5280 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5281 that REGISTER_BYTE is consistent with the regcache.
5282 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5283 * gdbarch.h, gdbarch.c: Regenerate.
5284
5285 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5286
5287 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5288 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5289
5290 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5291
5292 2003-05-03 J. Brobecker <brobecker@gnat.com>
5293
5294 From Thierry Schneider <tpschneider1@yahoo.com>
5295 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5296 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5297 (mi-cmd-symbol.o): Add rule.
5298
5299 2003-05-03 Andrew Cagney <cagney@redhat.com>
5300
5301 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5302 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5303 * gdbarch.h, gdbarch.c: Re-generate.
5304 * d10v-tdep.c (d10v_push_dummy_code): New function.
5305 (d10v_gdbarch_init): Set push_dummy_code.
5306 * infcall.c (legacy_push_dummy_code): New function.
5307 (generic_push_dummy_code): New function.
5308 (push_dummy_code): New function.
5309 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5310 instead of dummy_addr, to push_dummy_call. Move call to
5311 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5312 switch.
5313 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5314
5315 2003-05-03 Andrew Cagney <cagney@redhat.com>
5316
5317 * disasm.h (print_insn): Declare.
5318 * disasm.c (init_gdb_disassemble_info): New function.
5319 (gdb_disassembly): Call init_gdb_disassemble_info.
5320 (gdb_print_insn): New function.
5321 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5322 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5323 * mcore-tdep.c: Include "disasm.h"
5324 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5325 * d10v-tdep.c: Include "disasm.h".
5326 (display_trace): Call gdb_print_insn, instead of print_insn.
5327 (print_insn): Delete function.
5328 * printcmd.c: Include "disasm.h".
5329 (print_insn): Delete function.
5330 (print_formatted): Call gdb_print_insn, instead of print_insn.
5331 * Makefile.in (printcmd.o): Update dependencies.
5332 (mcore-tdep.o, d10v-tdep.o): Ditto.
5333
5334 2003-05-02 Andrew Cagney <cagney@redhat.com>
5335
5336 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5337 PC_REGNUM, re-indent.
5338 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5339 PC_REGNUM isn't set.
5340
5341 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5342 * gdbarch.h, gdbarch.c: Re-generate.
5343 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5344 register_virtual_size, pc_regnum, or register_bytes.
5345 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5346 (d10v_register_type): Use D10V_PC_REGNUM.
5347 (d10v_print_registers_info, d10v_read_pc): Ditto.
5348 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5349 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5350
5351 2003-05-02 David Carlton <carlton@bactrian.org>
5352
5353 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5354 the name with mstrsave.
5355
5356 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5357
5358 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5359 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5360 (host_charset_name, target_charset_name): New vars for use by
5361 set/show commands.
5362 (host_charset_enum, target_charset_enum): New enums for set/show
5363 commands.
5364 (set_charset_sfunc, set_host_charset_sfunc,
5365 set_target_charset_sfunc): New functions.
5366 (set_host_charset, set_target_charset): Make static.
5367 (list_charsets, set_host_charset_command,
5368 set_target_charset_command): Delete functions.
5369 (show_charset_command): Rewrite as....
5370 (show_charset): Hook this up with the set/show command mechanism.
5371 (_initialize_charset): Change names of charsets to match the
5372 set/show enums. Use host_charset_name and target_charset_name.
5373 Use set/show mechanism for charset, host-charset, target-charset
5374 commands. Do not make 'show host-charset' and 'show
5375 target-charset' be aliases of 'show charset'.
5376
5377 * charset.h (set_host_charset, set_target_charset): Don't export,
5378 they are not used outside the file.
5379
5380 2003-05-01 Andrew Cagney <cagney@redhat.com>
5381
5382 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5383 (gdb_disassembly): Make "di" non static, always initialize and
5384 cleanup. Always use dis_asm_read_memory.
5385 (gdb_dis_asm_read_memory): Delete function.
5386
5387 2003-05-01 Andrew Cagney <cagney@redhat.com>
5388
5389 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5390 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5391
5392 2003-04-30 Andrew Cagney <cagney@redhat.com>
5393
5394 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5395 "tm_print_insn_info".
5396 (TARGET_PRINT_INSN_INFO): Delete macro.
5397 (dis_asm_read_memory): Delete function declaration.
5398 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5399 (tm_print_insn_info): Delete variable definition.
5400 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5401 * gdbarch.h, gdbarch.c: Re-generate.
5402 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5403 "deprecated_tm_print_insn_info".
5404 * mcore-tdep.c (mcore_dump_insn): Ditto.
5405 * mips-tdep.c (mips_gdbarch_init): Ditto.
5406 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5407 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5408 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5409 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5410 instead of TARGET_PRINT_INSN_INFO, add comment.
5411 * s390-tdep.c (s390_get_frame_info): Instead of
5412 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5413 (s390_check_function_end, s390_is_sigreturn): Ditto.
5414 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5415 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5416 * disasm.c: Include "gdbcore.h".
5417 (_initialize_disasm): New function, initialize
5418 "deprecated_tm_print_insn_info".
5419 (deprecated_tm_print_insn_info): New variable.
5420 (dis_asm_read_memory): Moved from "corefile.c", made static.
5421 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5422 * Makefile.in (disasm.o): Update dependencies.
5423
5424 2003-04-30 Andrew Cagney <cagney@redhat.com>
5425
5426 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5427
5428 2003-04-29 Adam Fedor <fedor@gnu.org>
5429
5430 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5431 * infcall.c (find_function_addr): Make non-static.
5432 * infcall.h (find_function_addr): Declare.
5433 * Makefile.in (eval.o): Update dependencies.
5434
5435 2003-04-28 Adam Fedor <fedor@gnu.org>
5436
5437 * symtab.c (symbol_find_demangled_name): Check for and demangle
5438 ObjC symbols.
5439 (symbol_init_demangled_name): Init for language_objc as well.
5440
5441 2003-04-28 Andrew Cagney <cagney@redhat.com>
5442
5443 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5444 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5445 * gdbarch.h, gdbarch.c: Re-generate.
5446 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5447 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5448 * inferior.h (deprecated_read_fp): Rename read_fp.
5449 (generic_target_read_fp): Delete declaration.
5450 * regcache.c (generic_target_read_fp): Delete function.
5451 (deprecated_read_fp): Replace read_fp, use
5452 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5453 * d10v-tdep.c (d10v_read_fp): Delete function.
5454 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5455
5456 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5457 deprecated_target_read_fp to generic_target_read_fp.
5458 * sh-tdep.c (sh_gdbarch_init): Ditto.
5459 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5461 * frv-tdep.c (frv_gdbarch_init): Ditto.
5462
5463 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5464 deprecated_fp_regnum.
5465 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5466 * vax-tdep.c (vax_gdbarch_init): Ditto.
5467 * v850-tdep.c (v850_gdbarch_init): Ditto.
5468 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5469 * sh-tdep.c (sh_gdbarch_init): Ditto.
5470 * s390-tdep.c (s390_gdbarch_init): Ditto.
5471 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5472 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5473 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5474 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5476 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5477 * i386-tdep.c (i386_gdbarch_init): Ditto.
5478 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5480 * frv-tdep.c (frv_gdbarch_init): Ditto.
5481 * cris-tdep.c (cris_gdbarch_init): Ditto.
5482 * avr-tdep.c (avr_gdbarch_init): Ditto.
5483 * arm-tdep.c (arm_gdbarch_init): Ditto.
5484 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5485
5486 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5487 * v850-tdep.c (v850_gdbarch_init): Ditto.
5488 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5489 * sh-tdep.c (sh_gdbarch_init): Ditto.
5490 * s390-tdep.c (s390_gdbarch_init): Ditto.
5491 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5492 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5493 * mips-tdep.c (mips_gdbarch_init): Ditto.
5494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5495 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5496 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5497 * frv-tdep.c (frv_gdbarch_init): Ditto.
5498 * avr-tdep.c (avr_gdbarch_init): Ditto.
5499 * arm-tdep.c (arm_gdbarch_init): Ditto.
5500
5501 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5502 DEPRECATED_FP_REGNUM.
5503 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5504 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5505 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5506 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5507 (sparc32_register_virtual_type): Ditto.
5508 * sh-tdep.c (sh64_frame_chain): Ditto.
5509 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5510 (sh_nofp_frame_init_saved_regs): Ditto.
5511 (sh64_nofp_frame_init_saved_regs): Ditto.
5512 (sh_fp_frame_init_saved_regs): Ditto.
5513 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5514 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5515 * procfs.c (procfs_fetch_registers): Ditto.
5516 (procfs_store_registers): Ditto.
5517 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5518 (store_inferior_registers, fetch_core_registers): Ditto.
5519 (fetch_kcore_registers, clear_regs): Ditto.
5520 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5521 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5522 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5523 * nlm/i386.c (do_status): Ditto.
5524 * mipsv4-nat.c (supply_gregset): Ditto.
5525 * mips-tdep.c: Ditto for comments.
5526 * mips-nat.c (fetch_inferior_registers): Ditto.
5527 (store_inferior_registers, fetch_core_registers): Ditto.
5528 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5529 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5530 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5531 (i386_do_pop_frame, i386_register_type): Ditto.
5532 * hppa-tdep.c (hppa_frame_chain): Ditto.
5533 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5534 (hppa_pop_frame, hppa_read_fp): Ditto.
5535 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5536 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5537 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5538 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5539 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5540 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5541 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5542 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5543 * blockframe.c: Ditto for comments.
5544 * arch-utils.h: Ditto for comments.
5545 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5546 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5547 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5548 * alpha-tdep.h: Ditto for comments.
5549 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5550 (alpha_cannot_store_register): Ditto.
5551 (alpha_push_dummy_frame): Ditto.
5552 * alpha-nat.c (supply_gregset): Ditto.
5553
5554 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5555 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5556 * config/sparc/tm-sparc.h: Update comment.
5557
5558 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5559 deprecated_read_fp instead of TARGET_READ_FP.
5560 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5561 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5562 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5563 deprecated_read_fp instead of read_fp.
5564 * s390-tdep.c (s390_push_arguments): Ditto.
5565 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5566 * frame.h: Ditto in comments.
5567 * frame.c (legacy_get_prev_frame): Ditto.
5568 * dummy-frame.c (dummy_frame_this_id): Ditto.
5569 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5570
5571 2003-04-28 Andrew Cagney <cagney@redhat.com>
5572
5573 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5574 * gdbarch.h, gdbarch.c: Re-generate.
5575 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5576 * vax-tdep.c (_initialize_vax_tdep): Update.
5577 * v850-tdep.c (_initialize_v850_tdep): Update.
5578 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5579 * s390-tdep.c (_initialize_s390_tdep): Update.
5580 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5581 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5582 * mips-tdep.c (_initialize_mips_tdep): Update.
5583 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5584 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5585 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5586 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5587 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5588 * frv-tdep.c (_initialize_frv_tdep): Update.
5589 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5590 (_initialize_cris_tdep): Update.
5591 * arch-utils.c (legacy_print_insn): Update.
5592 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5593
5594 2003-04-26 Adam Fedor <fedor@gnu.org>
5595
5596 * linespec.c (decode_objc): New function to decode ObjC calls
5597 (decode_line_1): Check for ObjC calls (using decode_objc)
5598 * Makefile (linespec.o): Update dependencies.
5599
5600 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5601
5602 * breakpoint.h (struct breakpoint_ops): New.
5603 (struct breakpoint): Add ops member.
5604
5605 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5606 (mention): Use new breakpoint ops member.
5607 (set_raw_breakpoint): Initialize ops field to NULL.
5608 (print_exception_catchpoint, print_one_exception_catchpoint)
5609 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5610 (gnu_v3_exception_catchpoint_ops): New.
5611 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5612
5613 2003-04-25 Adam Fedor <fedor@gnu.org>
5614
5615 * Makefile.in (COMMON_OBS): Add objc-lang.o
5616
5617 2003-04-25 Andrew Cagney <cagney@redhat.com>
5618
5619 * d10v-tdep.c (print_insn): Delete function.
5620 (display_trace): Use TARGET_PRINT_INSN.
5621 (_initialize_d10v_tdep): Do not set tm_print_insn.
5622 (d10v_gdbarch_init): Set print_insn.
5623
5624 2003-04-25 Andrew Cagney <cagney@redhat.com>
5625
5626 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5627 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5628 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5629 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5630 (nr_dmap_regs, a0_regnum): ... new functions.
5631 (d10v_print_registers_info): Use a0_regnum, use register_size.
5632 (d10v_register_byte): Delete function.
5633 (d10v_register_raw_size): Delete function.
5634 (d10v_register_type): Use a0_regnum.
5635 (d10v_print_registers_info): Use a0_regnum.
5636 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5637 (d10v_gdbarch_init): Do not set register_byte or
5638 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5639 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5640 extract_address.
5641 (trace_command): Use XCALLOC.
5642 (print_insn): Delete reference to tm_print_insn.
5643 (saved_regs_unwinder): Use store_unsigned_integer instead of
5644 store_address.
5645 * frame.h (FRAME_OBSTACK_CALLOC): Define
5646
5647 2003-04-25 David Carlton <carlton@bactrian.org>
5648
5649 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5650
5651 2003-04-24 Adam Fedor <fedor@gnu.org>
5652
5653 * objc-lang.c: Include "valprint.h"
5654 * Makefile.in (objc-lang.o): Update dependencies.
5655
5656 2003-04-24 Adam Fedor <fedor@gnu.org>
5657
5658 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5659 architecture dependant compilation and mark as unimplemented
5660 (until they get put in the gdbarch vector).
5661
5662 2003-04-23 David Carlton <carlton@bactrian.org>
5663
5664 * cp-support.c (cp_find_first_component): Accept 'operator' in
5665 more locations.
5666
5667 2003-04-23 Andrew Cagney <cagney@redhat.com>
5668
5669 * infcall.c (call_function_by_hand): Eliminate redundant
5670 indentation. Move "saved_async" and "old_cleanups" to where they
5671 are needed.
5672
5673 2003-04-23 Andrew Cagney <cagney@redhat.com>
5674
5675 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5676 and "buffer". Move the "name" code to where it is needed.
5677
5678 2003-04-23 Andrew Cagney <cagney@redhat.com>
5679
5680 * infcall.c (call_function_by_hand): Move variables "start_sp",
5681 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5682 code to ON_STACK switch branch.
5683
5684 2003-04-23 Andrew Cagney <cagney@redhat.com>
5685
5686 * infcall.c (call_function_by_hand): Make declaration of "i",
5687 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5688 lint.
5689
5690 2003-04-23 Andrew Cagney <cagney@redhat.com>
5691
5692 * infcall.c (call_function_by_hand): Delete variable
5693 "n_method_args". Localize "param_type"'s declaration to the loop
5694 that it is used. Reinstate code assigning to said variable -
5695 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5696 Rationalize code using "param_type".
5697
5698 2003-04-22 Andrew Cagney <cagney@redhat.com>
5699
5700 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5701 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5702 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5703 to DEPRECATED_PUSH_RETURN_ADDRESS.
5704
5705 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5706
5707 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5708 on the DWARF2 register number prior to fetching a register.
5709
5710 2003-04-22 J. Brobecker <brobecker@gnat.com>
5711
5712 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5713 Update all the tests using SOFT_FLOAT considering the fact that
5714 this macro was always set to 0.
5715 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5716 considering the fact that this macro was always set to 0.
5717 * hppa-tdep.h (hppa_store_return_value): Likewise.
5718 (hppa_extract_return_value): Likewise.
5719
5720 2003-04-22 J. Brobecker <brobecker@gnat.com>
5721
5722 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5723 the hppa-pro target only.
5724
5725 2003-04-21 J. Brobecker <brobecker@gnat.com>
5726
5727 Ongoing multi-arch conversion effort for HP/UX:
5728 * config/pa/tm-hppa.h: Move all macro that are no longer
5729 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5730 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5731
5732 2003-04-21 J. Brobecker <brobecker@gnat.com>
5733
5734 * config/pa/tm-hppa.h: Obsolete a section that was only used
5735 for hppa-pro.
5736
5737 2003-04-21 J. Brobecker <brobecker@gnat.com>
5738
5739 Ongoing multi-arch conversion for HP/UX.
5740 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5741 if already defined (allows hppa64 to stay non-multiarched for now).
5742 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5743
5744 2003-04-21 Andrew Cagney <cagney@redhat.com>
5745
5746 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5747
5748 2003-04-21 Andrew Cagney <cagney@redhat.com>
5749
5750 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5751 "i386_num_mmx_regs".
5752
5753 2003-04-21 Andrew Cagney <cagney@redhat.com>
5754
5755 * infcall.c: New file.
5756 * infcall.h: New file.
5757 * valarith.c: Include "infcall.h".
5758 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5759 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5760 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5761 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5762 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5763 (SFILES): Add "infcall.c"
5764 (COMMON_OBS): Add "infcall.o".
5765 (infcall.o): Specify dependencies.
5766 * value.h (call_function_by_hand): Delete declaration.
5767 * inferior.h (run_stack_dummy): Delete declaration.
5768 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5769 (run_stack_dummy): Move to "infcall.c", merged into
5770 call_function_by_hand.
5771 * valops.c (call_function_by_hand): Moved to "infcall.c".
5772 (find_function_addr, value_arg_coerce): Ditto.
5773 (unwindonsignal_p, coerce_float_to_double): Ditto.
5774 (_initialize_valops): Move "set/show coerce-float-to-double", and
5775 "set/show unwindonsignal" commands to "infcall.c".
5776 * v850-tdep.c, target.h: Update comments.
5777 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5778 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5779 (sh64_init_extra_frame_info): Update comments.
5780 * mn10300-tdep.c: Update comments.
5781 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5782 * config/sparc/tm-sparc.h: Update comments.
5783 * breakpoint.h: Update comments.
5784 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5785 * arm-tdep.c: Update comment.
5786
5787 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5788
5789 * i386-tdep.c (i386_num_register_names): New variable.
5790 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5791 (MM0_REGNUM): Remove redundant parentheses in define.
5792 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5793 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5794 i386_mxcsr_regnum_p): Remove redundant parentheses.
5795 (i386_register_name): Use i386_num_register_names.
5796
5797 * i386-tdep.c (i386_extract_return_value,
5798 i386_store_return_value): Correct check for availability of
5799 floating-point registers.
5800
5801 * i386-tdep.c (i386_frame_num_args): Remove function.
5802 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5803
5804 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5805 mmx_regnum_to_fp_regnum. Adjust all callers.
5806
5807 * i386-tdep.c (i386_get_longjmp_target): Use
5808 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5809 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5810 extract_address.
5811
5812 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5813
5814 * core-regset.c: Update comments to reflect reality. Re-order
5815 includes.
5816 (fetch_core_registers): Use switch instead of if. Remove
5817 redundant prototype.
5818
5819 2003-04-18 Jim Blandy <jimb@redhat.com>
5820
5821 * s390-tdep.c (s390_frame_align): New function.
5822 (s390_gdbarch_init): Register it with the gdbarch object.
5823
5824 2003-04-17 Richard Henderson <rth@redhat.com>
5825
5826 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5827
5828 2003-04-17 Michael Snyder <msnyder@redhat.com>
5829 Karen Bennet <bennet@redhat.com>
5830
5831 Committed by Elena Zannoni <ezannoni@redhat.com>
5832 * gdb_gcore.sh: New script to create a core dump of a process.
5833
5834 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5835
5836 * values.c (value_being_returned): Don't fetch the return
5837 value if the return type is void.
5838
5839 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5840
5841 * thread-db.c: Reindented.
5842
5843 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5844
5845 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5846 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5847 as types.
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5874
5875 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5876 the size of ``long double'' to 16, instead of 8.
5877
5878 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5879
5880 * i386-linux-nat.c: Add some whitespace to make things more
5881 readable.
5882 (fetch_register, store_register, fetch_inferior_registers,
5883 store_inferior_registers): Get rid of assignment in if-statement.
5884 (store_register): Fix typo in error message.
5885
5886 2003-04-16 Andrew Cagney <cagney@redhat.com>
5887
5888 * utils.c (xmmalloc): Always allocate something, matches
5889 libiberty/xmalloc's semantics.
5890 (xmrealloc, xmcalloc): Ditto.
5891
5892 2003-04-16 Andrew Cagney <cagney@redhat.com>
5893
5894 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5895 update comments.
5896 (get_frame_type): Initialize unwind and type when needed.
5897 (get_frame_id, frame_register_unwind): Ditto.
5898
5899 2003-04-16 Andrew Cagney <cagney@redhat.com>
5900
5901 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5902 obsolete.
5903 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5904 * sparcl-stub.c: Obsolete file.
5905 * config/sparc/tm-sparclet.h: Obsolete file.
5906 * sparclet-stub.c: Obsolete file.
5907 * sparclet-rom.c: Obsolete file.
5908 * sparcl-tdep.c: Obsolete file.
5909 * config/sparc/tm-sparclite.h: Obsolete file.
5910 * config/sparc/sparclite.mt: Obsolete file.
5911 * config/sparc/sparclet.mt: Obsolete file.
5912 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5913 sparc86x-*-* obsolete.
5914
5915 2003-04-15 David Carlton <carlton@math.stanford.edu>
5916
5917 * Makefile.in (SFILES): Add cp-namespace.c.
5918 (COMMON_OBS): Add cp-namespace.o.
5919 (block.o): Depend on gdb_obstack_h and cp_support_h.
5920 (buildsym.o): Depend on cp_support_h.
5921 (cp-namespace.o): New.
5922 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5923 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5924 (dwarf2read.o): Depend on cp_support_h.
5925 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5926 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5927 processing_current_namespace.
5928 (read_namespace): Update processing_current_namespace; check for
5929 anonymous namespaces.
5930 (dwarf2_name): New function.
5931 (dwarf2_extension): Ditto.
5932 * cp-support.h: Update copyright, contributors.
5933 Add inclusion guards.
5934 Add opaque declaration for structs obstack, block, symbol.
5935 (struct using_direct): New struct.
5936 Add declarations for cp_find_first_component,
5937 cp_entire_prefix_len, processing_has_namespace_info,
5938 processing_current_namespace, cp_is_anonymous,
5939 cp_add_using_directive, cp_initialize_namespace,
5940 cp_finalize_namespace, cp_set_block_scope,
5941 cp_scan_for_anonymous_namespaces.
5942 * cp-namespace.c: New file.
5943 * cp-support.c: Update copyright.
5944 Include ctype.h, gdb_assert.h, gdbcmd.h.
5945 New variable maint_cplus_cmd_list.
5946 (cp_find_first_component): New function.
5947 (cp_entire_prefix_len, maint_cplus_command)
5948 (first_component_command, _initialize_cp_support): Ditto.
5949 * buildsym.c: Include cp-support.h.
5950 New variable using_list.
5951 (add_symbol_to_list): Check for anonymous namespaces.
5952 (finish_block): Set block's scope.
5953 (start_symtab): Initialize C++ namespace support.
5954 (end_symtab): Finalize C++ namespace support.
5955 * block.h: Add opaque declarations for structs
5956 block_namespace_info, using_direct, and obstack.
5957 Add declarations for block_set_scope and block_set_using.
5958 (struct block): Add 'language_specific' member.
5959 (BLOCK_NAMESPACE): New macro.
5960 * block.c: Include gdb_obstack.h and cp-support.h.
5961 (struct block_namespace_info): New struct.
5962 (block_set_scope): New function.
5963 (block_set_using, block_initialize_namespace): Ditto.
5964
5965 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5966
5967 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5968 (locate_base): Return early if there aren't any link map offsets.
5969 (svr4_solib_create_inferior_hook): Warn if shared library support
5970 is unavailable.
5971
5972 2003-04-14 David Carlton <carlton@math.stanford.edu>
5973
5974 * symtab.c (symbol_set_names): Add prefix when storing Java names
5975 in hash table. Fix for PR java/1039.
5976
5977 2003-04-14 David Carlton <carlton@math.stanford.edu>
5978
5979 * symtab.c (symbol_set_names): Rename 'name' arg to
5980 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5981 * symtab.h: Change 'name' argument in declaration of
5982 symbol_set_names to 'linkage_name'.
5983 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5984
5985 2003-04-14 Andrew Cagney <cagney@redhat.com>
5986
5987 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5988 return the fully sign-extended register value.
5989 (get_frame_pointer): Ditto.
5990 (mips_pop_frame): Initialize "proc_desc" after checking for a
5991 dummy frame.
5992
5993 2003-04-14 Andrew Cagney <cagney@redhat.com>
5994
5995 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5996 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5997 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5998 (mips_push_register): Delete function.
5999 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6000 PUSH_FP_REGNUM.
6001
6002 2003-04-14 Jim Blandy <jimb@redhat.com>
6003
6004 * symmisc.c: #include "gdb_regex.h".
6005 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6006 functions.
6007 * maint.c (maintenance_list_command): New function.
6008 (_initialize_maint_cmds): Register the above as commands.
6009 * symtab.h (maintenance_list_symtabs,
6010 maintenance_list_psymtabs): New declarations.
6011 * cli/cli-cmds.c (maintenancelistlist): New variable.
6012 (init_cmd_lists): Initialize it.
6013 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6014 * gdbcmd.h (maintenancelistlist): New declaration.
6015 * Makefile.in (symmisc.o): Update dependencies.
6016
6017 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6018
6019 * s390-nat.c: Include asm/types.h for addr_t.
6020
6021 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6022
6023 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6024 actually incoming type.
6025
6026 2003-04-13 Andrew Cagney <cagney@redhat.com>
6027
6028 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6029 get_next_frame and get_frame_saved_regs.
6030
6031 2003-04-13 Andrew Cagney <cagney@redhat.com>
6032
6033 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6034 of gdbarch_num_regs.
6035
6036 2003-04-13 Andrew Cagney <cagney@redhat.com>
6037
6038 * frame.h: Mention what replaced what in "struct frame_info".
6039 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6040 deprecated_update_frame_base_hack and
6041 deprecated_update_frame_pc_hack.
6042 * hppa-tdep.c: Ditto.
6043
6044 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6045
6046 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6047 to read_reg and update its comment. Remove regnum member.
6048 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6049 Don't call read_reg when setting in_reg. Call read_reg to get
6050 the frame base if it's in a register. Return the register number
6051 on the stack instead of in the context. Remove extra arguments
6052 to read_reg.
6053 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6054 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6055 the register number on the expression stack.
6056 (needs_frame_read_reg): Remove extra arguments.
6057
6058 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6059
6060 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6061 made non-static.
6062 (execute_stack_op): All callers updated.
6063 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6064 * dwarf2loc.c (find_location_expression): New function.
6065 (dwarf_expr_frame_base): Call it.
6066 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6067 (dwarf2_tracepoint_var_ref): New function, broken out from
6068 locexpr_tracepoint_var_ref.
6069 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6070 Make static.
6071 (loclist_read_variable, loclist_read_needs_frame): New functions.
6072 (loclist_describe_location, loclist_tracepoint_var_ref): New
6073 functions.
6074 (dwarf2_loclist_funcs): New struct location_funcs.
6075 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6076 (struct dwarf2_locexpr_baton): Add comments.
6077 (dwarf2_loclist_funcs): New extern.
6078 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6079 base_address and base_known.
6080 (dwarf_loc_buffer): New variable.
6081 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6082 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6083 (dwarf2_has_info): Initialize dwarf_loc_offset.
6084 (dwarf2_build_psymtabs): Read in .debug_loc.
6085 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6086 DWARF_LOC_SIZE.
6087 (psymtab_to_symtab_1): Likewise. Move base address calculation
6088 here, from...
6089 (dwarf2_get_pc_bounds): ... here. Use the base address from
6090 cu_header.
6091 (dwarf2_symbol_mark_computed): Handle location lists.
6092
6093 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6094
6095 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6096 if the linkage name demangled successfully.
6097
6098 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6099
6100 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6101 disassmbly_flavour): Removed.
6102
6103 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6104
6105 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6106
6107 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6108
6109 2003-04-12 Andrew Cagney <cagney@redhat.com>
6110
6111 * frame.h (struct frame_info): Move definition from here ...
6112 * frame.c (struct frame_info): ... to here.
6113
6114 2003-04-12 Andrew Cagney <cagney@redhat.com>
6115
6116 * gdbthread.h (save_infrun_state): Delete parameter
6117 "prev_func_start".
6118 (struct thread_info): Delete field "prev_func_start".
6119 (load_infrun_state): Ditto.
6120 * thread.c (load_infrun_state, save_infrun_state): Update.
6121 * infrun.c (prev_func_start): Delete variable.
6122 (context_switch, init_wait_for_inferior): Update.
6123 (stop_stepping, keep_going): Update.
6124
6125 2003-04-12 Andrew Cagney <cagney@redhat.com>
6126
6127 * gdbarch.sh: Add missing opaque declarations.
6128 * gdbarch.h: Regnerate.
6129 * symtab.h: Add missing opaque declarations.
6130 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6131 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6132 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6133 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6134 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6135 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6136 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6137 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6138 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6139 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6140 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6141 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6142 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6143
6144 2003-04-11 Andrew Cagney <cagney@redhat.com>
6145
6146 * frame.c (get_frame_id): Return this frame's "id".
6147 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6148 function start.
6149 (legacy_saved_regs_this_id): Replace function body with
6150 internal-error.
6151 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6152 FRAME_OBSTACK_ZALLOC.
6153 (create_new_frame): Mark the frame ID as valid.
6154
6155 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6156
6157 * Makefile.in (libbfd_h): Added missing setting.
6158 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6159 according to the selected ABI.
6160
6161 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6162
6163 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6164
6165 2003-04-11 Andrew Cagney <cagney@redhat.com>
6166
6167 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6168 SAVED_PC_AFTER_CALL.
6169 * gdbarch.h, gdbarch.c: Regenerate.
6170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6171 * x86-64-tdep.c (x86_64_init_abi): Update.
6172 * vax-tdep.c (vax_gdbarch_init): Update.
6173 * v850-tdep.c (v850_gdbarch_init): Update.
6174 * sparc-tdep.c (sparc_gdbarch_init): Update.
6175 * sh-tdep.c (sh_gdbarch_init): Update.
6176 * s390-tdep.c (s390_gdbarch_init): Update.
6177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6178 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6179 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6180 * mips-tdep.c (mips_gdbarch_init): Update.
6181 * mcore-tdep.c (mcore_gdbarch_init): Update.
6182 * m68k-tdep.c (m68k_gdbarch_init): Update.
6183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6184 * ia64-tdep.c (ia64_gdbarch_init): Update.
6185 (ia64_saved_pc_after_call): Update declaration.
6186 * i386ly-tdep.c (i386lynx_init_abi): Update.
6187 * i386-tdep.c (i386_gdbarch_init): Update.
6188 * hppa-tdep.c (hppa_gdbarch_init): Update.
6189 * h8300-tdep.c (h8300_gdbarch_init): Update.
6190 * frv-tdep.c (frv_gdbarch_init): Update.
6191 * cris-tdep.c (cris_gdbarch_init): Update.
6192 * avr-tdep.c (avr_gdbarch_init): Update.
6193 * arm-tdep.c (arm_gdbarch_init): Update.
6194 * alpha-tdep.c (alpha_gdbarch_init): Update.
6195 * ns32knbsd-nat.c (frame_num_args): Update.
6196 * ns32k-tdep.c (umax_frame_num_args): Update.
6197 * mips-tdep.c (mips_init_frame_pc_first): Update.
6198 * infrun.c (step_over_function): Update.
6199 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6200 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6201 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6202 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6203 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6204 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6205 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6206 * arch-utils.c (init_frame_pc_default): Update.
6207 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6208 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6209 declaration.
6210
6211 2003-04-11 Andrew Cagney <cagney@redhat.com>
6212
6213 * i387-tdep.c: Update copyright.
6214 (i387_to_double): Delete function.
6215 (double_to_i387): Delete function.
6216
6217 2003-04-10 Andrew Cagney <cagney@redhat.com>
6218
6219 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6220 frame's function's address. Simplify.
6221 (d10v_frame_unwind_cache): Check that the frame's function is
6222 non-zero.
6223
6224 2003-04-10 Jim Blandy <jimb@redhat.com>
6225
6226 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6227 call to set_gdbarch_deprecated_push_arguments.
6228
6229 2003-04-10 Andrew Cagney <cagney@redhat.com>
6230
6231 * frame.c (fprint_frame_id): New function.
6232 (fprint_frame_type, fprint_frame): New function.
6233 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6234 (create_sentinel_frame, get_frame_id): Ditto.
6235 (frame_id_p, frame_id_eq): Ditto.
6236 (frame_id_inner, create_new_frame): Ditto.
6237 (legacy_get_prev_frame, get_prev_frame): Ditto.
6238 (deprecated_update_frame_pc_hack): Ditto.
6239 (frame_register_unwind): Ditto.
6240 (deprecated_update_frame_base_hack): Ditto.
6241
6242 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6243
6244 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6245 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6246 frame_chain function.
6247 * Makefile.in: Add dependencies due to above change.
6248
6249 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6250
6251 * blockframe.c (legacy_frame_chain_valid): Move call to
6252 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6253 inside_entry_file.
6254
6255 2003-04-09 Andrew Cagney <cagney@redhat.com>
6256
6257 * frame.h (struct frame_id): Replace "pc" and "base" with
6258 "stack_addr" and "code_addr". Update comments.
6259 (frame_id_build): Update parameter names and comment.
6260 (struct frame_info): Replace "id_p" and "id" with "this_id".
6261 * dummy-frame.c (dummy_frame_this_id): Update.
6262 * breakpoint.c (print_one_breakpoint): Update.
6263 * frame.c (get_frame_id): Update.
6264 (get_frame_base, frame_id_build): Update.
6265 (create_sentinel_frame, legacy_get_prev_frame): Update.
6266 (deprecated_update_frame_base_hack): Update.
6267 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6268 (frame_id_inner): Ditto.
6269
6270 2003-04-09 Andrew Cagney <cagney@redhat.com>
6271
6272 * defs.h (gdb_print_host_address): Make "addr" parameter a
6273 pointer constant.
6274 * utils.c (gdb_print_host_address): Update.
6275
6276 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6277
6278 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6279 register number for R0 is 0.
6280
6281 2003-04-09 J. Brobecker <brobecker@gnat.com>
6282
6283 * frame.h (struct gdbarch): Add opaque structure definition
6284 to avoid a compilation warning on LynxOS 4.0.
6285
6286 2003-04-09 Andrew Cagney <cagney@redhat.com>
6287
6288 * frame.h (struct frame_info): Delete field "pc". Replace
6289 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6290 structure.
6291 * frame.c (frame_pc_unwind): Update.
6292 (create_sentinel_frame): Do not set "pc".
6293 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6294 (get_frame_pc): Call frame_pc_unwind.
6295 (deprecated_update_frame_pc_hack): Update.
6296 (create_new_frame): Use "pc" not "->pc".
6297
6298 2003-04-09 Andrew Cagney <cagney@redhat.com>
6299
6300 * frame.c (get_frame_id): Eliminate code updating "frame".
6301 (legacy_get_prev_frame): Ditto.
6302 (get_frame_base): Return id.base directly.
6303 (deprecated_update_frame_base_hack): Update "id.base".
6304 * frame.h (struct frame_info): Delete field "frame".
6305
6306 2003-04-09 Andrew Cagney <cagney@redhat.com>
6307
6308 * NEWS: Mention that the "Sequent family" is obsolete.
6309 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6310 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6311 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6312 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6313 * config/i386/tm-ptx4.h: Obsolete file.
6314 * config/i386/tm-ptx.h: Obsolete file.
6315 * symm-tdep.c: Obsolete file.
6316 * config/i386/symmetry.mt: Obsolete file.
6317 * config/i386/tm-symmetry.h: Obsolete file.
6318 * symm-nat.c: Obsolete file.
6319 * config/i386/nm-symmetry.h: Obsolete file.
6320 * config/i386/xm-symmetry.h: Obsolete file.
6321 * config/i386/symmetry.mh: Obsolete file.
6322 * config/i386/nm-ptx4.h: Obsolete file.
6323 * config/i386/ptx4.mh: Obsolete file.
6324 * config/i386/ptx.mt: Obsolete file.
6325 * config/i386/ptx.mh: Obsolete file.
6326 * config/i386/xm-ptx4.h: Obsolete file.
6327 * config/i386/xm-ptx.h: Obsolete file.
6328
6329 2003-04-09 Andrew Cagney <cagney@redhat.com>
6330
6331 Obsolete mips*-*-mach3*.
6332 * NEWS: Mention that mips*-*-mach3* is obsolete.
6333 * m3-nat.c: Obsolete file.
6334 * config/nm-m3.h: Obsolete file.
6335 * config/mips/tm-mipsm3.h: Obsolete file.
6336 * config/mips/mipsm3.mt: Obsolete file.
6337 * config/mips/mipsm3.mh: Obsolete file.
6338 * config/mips/xm-mipsm3.h: Obsolete file.
6339 * mipsm3-nat.c: Obsolete file.
6340 * configure.host: Obsolete mips-dec-mach3*.
6341 * configure.tgt: Obsolete mips*-*-mach3*.
6342
6343 2003-04-09 Andrew Cagney <cagney@redhat.com>
6344
6345 * doublest.h: Update copyright.
6346 (deprecated_store_floating, deprecated_extract_floating): Rename
6347 store_floating and extract_floating. Update comments.
6348 * doublest.c: Update copyright.
6349 (extract_floating_by_length): Replace extract_floating.
6350 (store_floating_by_length): Replace store_floating.
6351 (deprecated_extract_floating): New function.
6352 (deprecated_store_floating): New function.
6353 (extract_typed_floating): Call extract_floating_by_length.
6354 (store_typed_floating): Call store_floating_by_length.
6355 * x86-64-tdep.c (x86_64_store_return_value): Update.
6356 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6357 (sh64_extract_return_value): Update.
6358 (sh_sh4_register_convert_to_virtual): Update.
6359 (sh_sh64_register_convert_to_virtual): Update.
6360 (sh_sh4_register_convert_to_raw): Update.
6361 (sh_sh64_register_convert_to_raw): Update.
6362 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6363 (rs6000_register_convert_to_raw): Update.
6364 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6365 (ia64_register_convert_to_raw): Update.
6366 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6367 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6368 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6369 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6370 (alpha_register_convert_to_raw): Update.
6371
6372 2003-04-08 Andrew Cagney <cagney@redhat.com>
6373
6374 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6375 * gdbarch.h, gdbarch.c: Re-generate.
6376 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6377 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6378 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6379 conditionally, use frame_pc_unwind as an alternative. Add
6380 comments.
6381 * arch-utils.c (init_frame_pc_default): Only call
6382 SAVED_PC_AFTER_CALL when available.
6383
6384 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6385
6386 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6387 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6388 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6389 (start_remote): Ditto.
6390 (handle_inferior_event): Ditto.
6391 (save_inferior_status): Ditto.
6392 (restore_inferior_status): Ditto.
6393 * infcmd.c (attach_command): Ditto.
6394 * fork-child.c (startup_inferior): Ditto.
6395 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6396 * alpha-tdep.c (heuristic_proc_start): Ditto.
6397 * mips-tdep.c (heuristic_proc_start): Ditto.
6398 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6399 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6400 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6401 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6402 * remote-vx.c (vx_create_inferior): Ditto.
6403
6404 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6405
6406 * infrun.c (stop_soon_quietly): Make it an enum, to better
6407 override the default behavior of handle_inferior_event.
6408 (clear_proceed_status): Update uses of stop_soon_quietly to
6409 reflect that it is now an enum.
6410 (start_remote): Ditto.
6411 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6412 is set to handle the new GNU/Linux kernel behavior for
6413 attach/sigstop. Update uses of stop_soon_quietly.
6414 * inferior.h (enum stop_kind): New enum.
6415 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6416 Reset normal handle_inferior_event behavior, afterwards.
6417 * fork-child.c (startup_inferior): Update.
6418 * alpha-tdep.c (heuristic_proc_start): Update.
6419 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6420 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6421 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6422 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6423 * remote-vx.c (vx_create_inferior): Update.
6424 * mips-tdep.c (heuristic_proc_start): Update.
6425
6426 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6427
6428 * disasm.c (dump_insns): Move variables inside loop, or they will
6429 be freed more than once, causing wild memory corruptions.
6430 (gdb_disassembly): Look for the substring "-thread",
6431 instead of "-threads" in the target name, to make sure to find
6432 the 'multi-thread' target. Also, make sure we do the right thing
6433 with the "core" target.
6434
6435 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6436
6437 * mips-tdep.c (mips_print_fp_register): New function, created from
6438 do_fp_register_row(). Registers are now (also) printed as hex.
6439 Only one register is printed per row.
6440 (mips_print_register, do_fp_register_row): Print floating point
6441 registers with mips_print_fp_register().
6442
6443 2003-04-06 Andrew Cagney <cagney@redhat.com>
6444
6445 * valprint.h (inspect_it): Add extern declaration.
6446 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6447 (selectors_info, classes_info): Ditto.
6448 (find_objc_msgcall): Fix indentation.
6449 (objc_printstr): Delete extern declarations.
6450
6451 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6452
6453 2003-04-06 Andrew Cagney <cagney@redhat.com>
6454
6455 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6456 Update comment.
6457 * frame.c (legacy_saved_regs_this_id): Update.
6458 (legacy_get_prev_frame): Update.
6459 * xstormy16-tdep.c: Update comment.
6460 * sparc-tdep.c (sparc_frame_chain): Update comment.
6461 * blockframe.c (legacy_frame_chain_valid): Update.
6462
6463 2003-04-06 Andrew Cagney <cagney@redhat.com>
6464
6465 * valprint.c (val_print_type_code_int): Delete #ifdef
6466 PRINT_TYPELESS_INTEGER code.
6467
6468 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6469 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6470 multi-arch definition.
6471 * gdbarch.h: Re-generate.
6472
6473 2003-04-05 Andrew Cagney <cagney@redhat.com>
6474
6475 Eliminate FRAME_FIND_SAVED_REGS.
6476 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6477 Change FSR parameter to a pointer.
6478 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6479 Assume FSR parameter is a pointer.
6480 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6481 Make fsr a pointer.
6482 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6483 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6484 saved_regs a pointer.
6485 (hppa_frame_saved_pc): Ditto.
6486 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6487 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6488 pointer.
6489 (restore_pc_queue): Make fsr a pointer.
6490 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6491 (hppa_frame_chain): Make saved_regs a pointer, call
6492 hppa_frame_init_saved_regs.
6493 * sparc-tdep.c: Include "gdb_assert.h".
6494 (sparc_frame_find_saved_regs): Replace internal_error with
6495 gdb_assert.
6496 * remote-vxsparc.c (vx_read_register): Delete reference to
6497 FRAME_FIND_SAVED_REGS.
6498 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6499 * gdbarch.h: Regenerate.
6500 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6501 (deprecated_get_frame_saved_regs): Delete declaration.
6502 (struct frame_saved_regs): Delete definition.
6503 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6504 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6505 (hppa_frame_find_saved_regs): Delete declaration.
6506 (FRAME_FIND_SAVED_REGS): Delete macro.
6507 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6508 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6509 FRAME_FIND_SAVED_REGS in comment.
6510
6511 2003-04-05 Andrew Cagney <cagney@redhat.com>
6512
6513 * frame.c (frame_func_unwind, get_frame_func): New functions.
6514 * frame.h (get_frame_func, frame_func_unwind): Declare.
6515 (struct frame_info): Add field "prev_func" for caching the
6516 previous frame's function address.
6517 * arm-tdep.c (arm_frameless_function_invocation): Combine
6518 get_pc_function_start and get_frame_pc into get_frame_func.
6519 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6520 (sh64_nofp_frame_init_saved_regs): Ditto.
6521 * s390-tdep.c (s390_function_start): Ditto.
6522 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6523 (rs6000_frameless_function_invocation): Ditto.
6524 (rs6000_frame_saved_pc): Ditto.
6525 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6526 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6527 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6528 (i386_frame_init_saved_regs): Ditto.
6529 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6530 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6531 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6532 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6533 * blockframe.c (frameless_look_for_prologue): Ditto.
6534
6535 2003-04-05 Andrew Cagney <cagney@redhat.com>
6536
6537 * frame.c (legacy_get_prev_frame): Link prev to next at the
6538 function start. Update comments.
6539
6540 2003-04-05 Andrew Cagney <cagney@redhat.com>
6541
6542 * frame.c (get_frame_id): Update comment.
6543 (legacy_get_prev_frame): Update comment.
6544 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6545 * gdbarch.h: Regenerate.
6546 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6547 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6548
6549 2003-04-05 Andrew Cagney <cagney@redhat.com>
6550
6551 * stack.c (print_frame_info): Use get_frame_pc.
6552
6553 2003-04-04 Andrew Cagney <cagney@redhat.com>
6554
6555 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6556 the frame's type from the unwinder.
6557 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6558 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6559 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6560 (get_frame_base_address): Use get_frame_type.
6561 (get_frame_locals_address, get_frame_args_address): Ditto.
6562 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6563 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6564 (struct frame_info): Add comment explaining why the frame contains
6565 a "type" field.
6566 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6567 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6568 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6569 NORMAL_FRAME.
6570 * frame-unwind.h: Include "frame.h".
6571 (struct frame_unwind): Add "type" field.
6572 * Makefile.in (frame_unwind_h): Add $(frame_h).
6573
6574 2003-04-04 Andrew Cagney <cagney@redhat.com>
6575
6576 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6577 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6578 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6579 get_frame_base.
6580 (d10v_unwind_dummy_id): Use frame_id_build.
6581 * frame.c (find_frame_sal): Use get_frame_pc.
6582 (create_new_frame): Use deprecated_update_frame_pc_hack and
6583 deprecated_update_frame_base_hack.
6584 (create_sentinel_frame): Add comment about ->pc going away.
6585 (get_prev_frame): Add comment about ->pc going away.
6586 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6587 frame_id_build, deprecated_update_frame_pc_hack and
6588 deprecated_update_frame_base_hack.
6589 (select_frame): Use get_frame_pc.
6590 (legacy_saved_regs_this_id): Use frame_id_build.
6591
6592 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6593
6594 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6595 signed integer case.
6596 (classify_argument): Handle enumerations and references.
6597
6598 2003-04-04 Andrew Cagney <cagney@redhat.com>
6599
6600 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6601 ID to NULL.
6602
6603 2003-04-01 Adam Fedor <fedor@gnu.org>
6604
6605 * gdb/objc-lang.c (selectors_info): Replace calls to
6606 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6607 SYMBOL_NATURAL_NAME.
6608 (classes_info, find_methods): Likewise.
6609
6610 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6611
6612 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6613 ``mach'' to the value determined by bfd_default_set_arch_mach().
6614
6615 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6616
6617 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6618 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6619 (mi-cmd-file.o): Update dependencies.
6620
6621 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6622
6623 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6624 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6625
6626 2003-04-01 Adam Fedor <fedor@gnu.org>
6627
6628 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6629 * language.h (struct language_defn): Add la_demangle.
6630 (language_demangle): Declare.
6631 * language.c (language_demangle): New function.
6632 (unk_lang_demangle): Likewise.
6633 (unknown_language_defn, auto_language_defn, local_language_defn):
6634 Add ukn_lang_demangle.
6635 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6636 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6637 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6638 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6639 * jv-lang.c (java_demangle): New function
6640 (java_language_defn): Use it for la_demangle element.
6641 * objc-lang.c (objc_demangle): Add options argument
6642 (objc_language_defn): Use objc_demangle for la_demangle element.
6643 * maint.c (maintenance_demangle): Replace switch with
6644 call to language_demangle.
6645 * utils.c (fprintf_symbol_filtered): Likewise.
6646
6647 2003-04-01 Andrew Cagney <cagney@redhat.com>
6648
6649 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6650 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6651 PRINT_TYPELESS_INTEGER.
6652 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6653 PUSH_RETURN_ADDRESS.
6654
6655 2003-04-01 Andrew Cagney <cagney@redhat.com>
6656
6657 * Makefile.in (d10v-tdep.o): Update dependencies.
6658 * d10v-tdep.c: Include "frame-base.h".
6659 (d10v_frame_unwind): Make constant.
6660 (d10v_frame_base_address): New function.
6661 (d10v_frame_base): New variable.
6662 (d10v_gdbarch_init): Set frame_base default.
6663 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6664 comment for base.
6665 (d10v_frame_unwind_cache): Set and use "prev_sp".
6666 (d10v_frame_this_id): Use the previous frame's inner most stack
6667 address and this frame's func address for the frame ID. Use
6668 frame_id_build. Don't analyze beyond the current instruction.
6669
6670 2003-04-01 Andrew Cagney <cagney@redhat.com>
6671
6672 * frame.h (get_frame_locals_address, get_frame_args_address):
6673 Refer to the base address, instead of the address of the first
6674 local or parameter.
6675
6676 2003-04-01 Andrew Cagney <cagney@redhat.com>
6677
6678 Add frame debug info addresses:
6679 * frame-base.c: New file.
6680 * frame-base.h: New file.
6681 * frame.h (struct frame_base): Add opaque declaration.
6682 (get_frame_base): Update comment.
6683 (get_frame_base_address): Declare.
6684 (get_frame_locals_address): Declare.
6685 (get_frame_args_address): Declare.
6686 (struct frame_info): Add "base" and "base_cache". Update
6687 comments on the unwinder.
6688 * frame.c: Include "frame-base.h".
6689 (get_frame_locals_address): New function.
6690 (get_frame_base_address): New function.
6691 (get_frame_args_address): New function.
6692 * findvar.c (read_var_value): Use get_frame_locals_address and
6693 get_frame_args_address.
6694 * stack.c (frame_info): Use get_frame_locals_address and
6695 get_frame_args_address.
6696 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6697 moved to "frame-base.c".
6698 * printcmd.c (print_frame_nameless_args): Ditto.
6699 * symtab.h (address_class): Update comments.
6700 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6701 get_frame_base_address.
6702 * dwarf2expr.c (execute_stack_op): Ditto.
6703 * Makefile.in (frame_base_h): Define.
6704 (frame.o): Update dependencies.
6705 (frame-base.o): Add dependencies.
6706 (SFILES): Add frame-base.c.
6707 (COMMON_OBS): Add frame-base.o.
6708
6709 2003-04-01 Andrew Cagney <cagney@redhat.com>
6710
6711 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6712 CALL_DUMMY_LENGTH): Ditto.
6713 * gdbarch.c: Re-generate.
6714 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6715 (CALL_DUMMY_LENGTH): Delete macro.
6716 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6717 * arm-tdep.c (arm_gdbarch_init): Ditto.
6718 * avr-tdep.c (avr_gdbarch_init): Ditto.
6719 * cris-tdep.c (cris_gdbarch_init): Ditto.
6720 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6721 * frv-tdep.c (frv_gdbarch_init): Ditto.
6722 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6723 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6724 * i386-tdep.c (i386_gdbarch_init): Ditto.
6725 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6727 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6728 * mips-tdep.c (mips_gdbarch_init): Ditto.
6729 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6730 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6731 * s390-tdep.c (s390_gdbarch_init): Ditto.
6732 * sh-tdep.c (sh_gdbarch_init): Ditto.
6733 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6734 * v850-tdep.c (v850_gdbarch_init): Ditto.
6735 * vax-tdep.c (vax_gdbarch_init): Ditto.
6736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6737
6738 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6739
6740 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6741
6742 2003-04-01 Andrew Cagney <cagney@redhat.com>
6743
6744 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6745 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6746 * gdbarch.h, gdbarch.c: Re-generate.
6747 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6748 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6749 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6750 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6751 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6752 * infcmd.c (run_stack_dummy): Simplify assuming
6753 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6754 * infrun.c (handle_inferior_event): Ditto.
6755 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6756 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6757 * arm-tdep.c (arm_gdbarch_init): Ditto.
6758 * avr-tdep.c (avr_gdbarch_init): Ditto.
6759 * cris-tdep.c (cris_gdbarch_init): Ditto.
6760 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6761 * frv-tdep.c (frv_gdbarch_init): Ditto.
6762 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6763 * i386-tdep.c (i386_gdbarch_init): Ditto.
6764 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6766 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6767 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6768 * mips-tdep.c (mips_gdbarch_init): Ditto.
6769 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6770 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6771 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6772 * s390-tdep.c (s390_gdbarch_init): Ditto.
6773 * sh-tdep.c (sh_gdbarch_init): Ditto.
6774 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6775 * v850-tdep.c (v850_gdbarch_init): Ditto.
6776 * vax-tdep.c (vax_gdbarch_init): Ditto.
6777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6778
6779 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6780
6781 * symfile.c (symfile_relocate_debug_section): Update call to
6782 bfd_simple_get_relocated_section_contents.
6783
6784 2003-03-31 Andrew Cagney <cagney@redhat.com>
6785
6786 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6787 * gdbarch.h, gdbarch.c: Regenerate.
6788 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6789 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6790 available.
6791 * frame.h (generic_fix_call_dummy): Delete declaration.
6792 * dummy-frame.h: Update comment.
6793 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6795 fix_call_dummy.
6796 * sh-tdep.c (sh_gdbarch_init): Ditto.
6797 * s390-tdep.c (s390_gdbarch_init): Ditto.
6798 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6799 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6801 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6802 * i386-tdep.c (i386_gdbarch_init): Ditto.
6803 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6804 * frv-tdep.c (frv_gdbarch_init): Ditto.
6805 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6806 * cris-tdep.c (cris_gdbarch_init): Ditto.
6807 * avr-tdep.c (avr_gdbarch_init): Ditto.
6808 * arm-tdep.c (arm_gdbarch_init): Ditto.
6809
6810 2003-03-31 J. Brobecker <brobecker@gnat.com>
6811
6812 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6813 (INIT_FRAME_AP): Likewise.
6814 (EXTRA_FRAME_INFO): Likewise.
6815
6816 2003-03-31 Andrew Cagney <cagney@redhat.com>
6817
6818 * gdbarch.sh: Include "symfile.h".
6819 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6820 * gdbarch.h, gdbarch.c: Re-generate.
6821 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6822 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6823 call_dummy_address, the default is at entry_point_address.
6824 * v850-tdep.c (v850_gdbarch_init): Ditto.
6825 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6826 * sh-tdep.c (sh_gdbarch_init): Ditto.
6827 * s390-tdep.c (s390_gdbarch_init): Ditto.
6828 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6829 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6830 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6831 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6832 * i386-tdep.c (i386_gdbarch_init): Ditto.
6833 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6834 * frv-tdep.c (frv_gdbarch_init): Ditto.
6835 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6836 * cris-tdep.c (cris_gdbarch_init): Ditto.
6837 * arm-tdep.c (arm_gdbarch_init): Ditto.
6838
6839 2003-03-31 Andrew Cagney <cagney@redhat.com>
6840
6841 * gdbarch.sh (CALL_DUMMY_P): Delete.
6842 * gdbarch.h, gdbarch.c: Re-generate.
6843 * inferior.h (CALL_DUMMY_P): Delete macro.
6844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6845 * vax-tdep.c (vax_gdbarch_init): Update.
6846 * v850-tdep.c (v850_gdbarch_init): Update.
6847 * sparc-tdep.c (sparc_gdbarch_init): Update.
6848 * sh-tdep.c (sh_gdbarch_init): Update.
6849 * s390-tdep.c (s390_gdbarch_init): Update.
6850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6851 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6852 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6853 * mips-tdep.c (mips_gdbarch_init): Update.
6854 * mcore-tdep.c (mcore_gdbarch_init): Update.
6855 * m68k-tdep.c (m68k_gdbarch_init): Update.
6856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6857 * ia64-tdep.c (ia64_gdbarch_init): Update.
6858 * i386-tdep.c (i386_gdbarch_init): Update.
6859 * h8300-tdep.c (h8300_gdbarch_init): Update.
6860 * frv-tdep.c (frv_gdbarch_init): Update.
6861 * d10v-tdep.c (d10v_gdbarch_init): Update.
6862 * cris-tdep.c (cris_gdbarch_init): Update.
6863 * breakpoint.c (deprecated_frame_in_dummy): Update.
6864 * avr-tdep.c (avr_gdbarch_init): Update.
6865 * alpha-tdep.c (alpha_gdbarch_init): Update.
6866 * arm-tdep.c (arm_gdbarch_init): Update.
6867 * dummy-frame.c (dummy_frame_this_id): Update comments.
6868 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6869 * frame.c (legacy_get_prev_frame): Ditto.
6870 * valops.c (call_function_by_hand): Delete function.
6871 (hand_function_call): Rename to call_function_by_hand
6872
6873 2003-03-30 Andrew Cagney <cagney@redhat.com>
6874
6875 2002-11-10 Klee Dienes <kdienes@apple.com>
6876 * value.h (struct value): Update comment.
6877
6878 2003-03-30 Andrew Cagney <cagney@redhat.com>
6879
6880 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6881 D10V_FP_REGNUM.
6882 (d10v_gdbarch_init): Do not set fp_regnum.
6883
6884 * frame.c (get_frame_base): Force ID initialization.
6885 (get_prev_frame): Move computation of the frame ID from here ...
6886 (get_frame_id): ... to here.
6887 (legacy_get_prev_frame): Mark the frame ID as valid.
6888 * frame.h (struct frame_info): Add field "id_p".
6889
6890 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6891
6892 * i386-tdep.c (i386_store_struct_return): Removed.
6893 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6894
6895 2003-03-30 Andrew Cagney <cagney@redhat.com>
6896
6897 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6898 * gdbarch.h, gdbarch.c: Regenerate.
6899 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6901 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6902 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6903 * i386-tdep.c (i386_gdbarch_init): Ditto.
6904 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6905 * cris-tdep.c (cris_gdbarch_init): Ditto.
6906 * vax-tdep.c (vax_gdbarch_init): Ditto.
6907 * s390-tdep.c (s390_gdbarch_init): Ditto.
6908 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6909 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6910 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6911 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6912 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6913 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6914 * sparc-tdep.c (sparc_gdbarch_init): Update.
6915 * sh-tdep.c (sh_gdbarch_init): Update.
6916 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6917 * mips-tdep.c (mips_gdbarch_init): Update.
6918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6919 * ia64-tdep.c (ia64_gdbarch_init): Update.
6920 * frv-tdep.c (frv_gdbarch_init): Update.
6921 * avr-tdep.c (avr_gdbarch_init): Update.
6922 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6923 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6924 instead of when push_dummy_call is not available.
6925
6926 2003-03-30 Andrew Cagney <cagney@redhat.com>
6927
6928 * infttrace.c: Include "gdbthread.h".
6929 (parent_attach_all): Fix function signature.
6930 (call_ptrace): Update call.
6931 * Makefile.in (infttrace.o): Update dependencies.
6932
6933 2003-03-30 Andrew Cagney <cagney@redhat.com>
6934
6935 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6936 PUSH_RETURN_ADDRESS.
6937 * gdbarch.h, gdbarch.c: Regenerate.
6938 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6939 * x86-64-tdep.c (x86_64_init_abi): Update.
6940 * v850-tdep.c (v850_gdbarch_init): Update.
6941 * sparc-tdep.c (sparc_gdbarch_init): Update.
6942 * sh-tdep.c (sh_gdbarch_init): Update.
6943 * s390-tdep.c (s390_gdbarch_init): Update.
6944 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6945 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6946 * mips-tdep.c (mips_gdbarch_init): Update.
6947 * mcore-tdep.c (mcore_gdbarch_init): Update.
6948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6949 * ia64-tdep.c (ia64_gdbarch_init): Update.
6950 * i386-tdep.c (i386_gdbarch_init): Update.
6951 * h8300-tdep.c (h8300_gdbarch_init): Update.
6952 * frv-tdep.c (frv_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 * valops.c (hand_function_call): Update.
6957
6958 2003-03-29 Andrew Cagney <cagney@redhat.com>
6959
6960 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6961 sizeof_call_dummy_words.
6962 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6963 define.
6964 * gdbarch.h: Regenerate.
6965
6966 2003-03-29 Andrew Cagney <cagney@redhat.com>
6967
6968 * infttrace.h: New file.
6969 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6970 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6971 (hpread_read_doc_function_type): Detect an initialized type1.
6972 (hpread_quick_traverse): Initialize mod_name_string.
6973 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6974 (som_solib_get_solib_by_pc): Declare.
6975 (so_lib_thread_start_addr): Declare.
6976 (no_shared_libraries): Declare.
6977 * somread.c (init_import_symbols): Make static. Add forward
6978 declaration.
6979 * config/pa/nm-hppah.h: Include "infttrace.h" for
6980 parent_attach_all.
6981 (hppa_insert_hw_watchpoint): Declare.
6982 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6983 * hppah-nat.c: Include "gdb_string.h".
6984 (parent_attach_all): Delete extern declaration, moved to
6985 "infttrace.h".
6986 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6987 int.
6988 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6989 * Makefile.in (infttrace_h): Define.
6990 (hpread.o): Update dependencies.
6991 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6992 * hppa-hpux-tdep.c: Include "gdb_string.h".
6993 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6994 * infrun.c (handle_inferior_event): Always initialize
6995 stepped_after_stopped_by_watchpoint. Add default and remove
6996 fallthrough in switch statement.
6997 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6998 parameter to int.
6999 (hppa_remove_hw_watchpoint): Ditto.
7000
7001 2003-03-29 Andrew Cagney <cagney@redhat.com>
7002
7003 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7004 offset.
7005
7006 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7007
7008 * arm-tdep.c (arm_push_arguments): Delete.
7009 (struct stack_item): New type.
7010 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7011 (arm_store_struct_return): Delte.
7012 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7013 arm_push_arguments or arm_store_struct_return.
7014
7015 2003-03-28 Andrew Cagney <cagney@redhat.com>
7016
7017 * Makefile.in (d10v-tdep.o): Update dependencies.
7018 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7019 * d10v-tdep.c: Include "remote.h".
7020 (target_resume_hook): Delete extern declaration.
7021 (target_wait_loop_hook): Ditto.
7022 (tdisassemble_command): Eliminate assignment in "if" conditional.
7023 (d10v_ts2_register_sim_regno): Eliminate call to
7024 legacy_register_sim_regno.
7025 (d10v_ts3_register_sim_regno): Ditto.
7026
7027 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7028
7029 * thread.c: Reindented.
7030 * lin-lwp.c: Ditto.
7031 * linux-proc.c: Ditto.
7032
7033 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7034
7035 * MAINTAINERS (write after approval): Add myself.
7036
7037 2003-03-27 Theodore A. Roth <troth@openavr.org>
7038
7039 * objc-exp.y: Add missing semi-colons.
7040
7041 2003-03-27 Andrew Cagney <cagney@redhat.com>
7042
7043 * regcache.c (write_sp): Delete function and references.
7044 * inferior.h (write_sp): Delete declaration.
7045 * valops.c (hand_function_call): Replace write_sp with
7046 TARGET_WRITE_SP.
7047 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7048 (sparc_pop_frame): Ditto.
7049
7050 2003-03-27 Andrew Cagney <cagney@redhat.com>
7051
7052 * NEWS: Mention removal of support for hppa*-*-bsd* and
7053 hppa*-*-osf* natives, and hppa*-*-pro* target.
7054 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7055 * config/pa/xm-pa.h: Obsolete file.
7056 * config/pa/xm-hppab.h: Obsolete file.
7057 * config/pa/nm-hppab.h: Obsolete file.
7058 * config/pa/tm-hppab.h: Obsolete file.
7059 * config/pa/tm-hppao.h: Obsolete file.
7060 * config/pa/nm-hppao.h: Obsolete file.
7061 * config/pa/tm-pro.h: Obsolete file.
7062 * config/pa/hppaosf.mt: Obsolete file.
7063 * config/pa/hppaosf.mh: Obsolete file.
7064 * config/pa/hppapro.mt: Obsolete file.
7065 * config/pa/hppabsd.mt: Obsolete file.
7066 * config/pa/hppabsd.mh: Obsolete file.
7067 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7068 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7069 hppa*-*-osf*.
7070
7071 2003-03-27 Andrew Cagney <cagney@redhat.com>
7072
7073 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7074 push_arguments. Don't set push_return_address or write_sp.
7075 (d10v_push_dummy_call): Replace d10v_push_arguments.
7076 (d10v_push_return_address, d10v_write_sp): Delete function,
7077 handled by push_dummy_call.
7078
7079 2003-03-26 Andrew Cagney <cagney@redhat.com>
7080
7081 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7082 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7083 regcache and dummy_addr parameters.
7084 * gdbarch.h, gdbarch.c: Re-generate.
7085 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7086 available; assume it will handle stack alignment and return
7087 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7088 legacy_push_arguments.
7089 (legacy_push_arguments): Rename default_push_arguments.
7090 * value.h (legacy_push_arguments): Rename default_push_arguments.
7091 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7092 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7093 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7094 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7095 * config/i386/tm-symmetry.h: Update.
7096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7097 * x86-64-tdep.c (x86_64_init_abi): Update.
7098 * v850-tdep.c (v850_gdbarch_init): Update.
7099 * sparc-tdep.c (sparc_gdbarch_init): Update.
7100 * sh-tdep.c (sh_gdbarch_init): Update.
7101 * s390-tdep.c (s390_gdbarch_init): Update.
7102 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7103 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7104 * mips-tdep.c (mips_gdbarch_init): Update.
7105 * mcore-tdep.c (mcore_gdbarch_init): Update.
7106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7107 * ia64-tdep.c (ia64_gdbarch_init): Update.
7108 * i386-tdep.c (i386_gdbarch_init): Update.
7109 * hppa-tdep.c (hppa_gdbarch_init): Update.
7110 * h8300-tdep.c (h8300_gdbarch_init): Update.
7111 * frv-tdep.c (frv_gdbarch_init): Update.
7112 * d10v-tdep.c (d10v_gdbarch_init): Update.
7113 * cris-tdep.c (cris_gdbarch_init): Update.
7114 * avr-tdep.c (avr_gdbarch_init): Update.
7115 * arm-tdep.c (arm_gdbarch_init): Update.
7116 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7117 * alpha-tdep.c (alpha_gdbarch_init): Update.
7118
7119 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7120
7121 * signals/signals.c (do_target_signal_to_host): Correct realtime
7122 signal range test.
7123
7124 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7125
7126 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7127 (struct sal_chain, map_catch_names): Remove.
7128 (catch_exception_command_1): Don't call
7129 handle_gnu_4_16_catch_command.
7130
7131 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7132
7133 From Mark Dettinger <dettinge@de.ibm.com>:
7134 * dwarf2cfi.c (read_2u): Increment pointer by two.
7135
7136 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7137
7138 * signals/signals.c: Fix typos in last change.
7139
7140 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7141
7142 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7143 not already defined. Use __SIGRTMIN if available.
7144 (target_signal_from_host): Remove SIGRTMIN block.
7145 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7146 the signal is within the realtime range.
7147
7148 2003-03-25 Adam Fedor <fedor@gnu.org>
7149
7150 * Makefile.in (infrun.o): Add $(language_h)
7151 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7152 for language specific trampolines.
7153 * language.h (struct language_defn): Add skip_trampoline.
7154 (skip_language_trampoline): Declare.
7155 * language.c (unk_lang_trampoline, skip_language_trampoline):
7156 New functions.
7157 (unknown_language_defn, auto_language_defn, local_language_defn):
7158 Add ukn_lang_trampoline.
7159 * ada-lang.c (ada_language_defn): Add NULL for language
7160 specific skip_trampoline.
7161 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7162 scm-lang.c: Likewise.
7163 * objc-lang.c (objc_skip_trampoline): New function.
7164 (objc_language_defn): Add objc_skip_trampoline.
7165
7166 2003-03-25 Andrew Cagney <cagney@redhat.com>
7167
7168 * frame.c (get_prev_frame): Delay validating a frame's ID -
7169 non-NULL, didn't go backwards - until an attempt to unwind it to
7170 the previous frame.
7171
7172 2003-03-25 Andrew Cagney <cagney@redhat.com>
7173
7174 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7175 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7176 * gdbarch.h, gdbarch.c: Re-generate.
7177 * config/sparc/tm-sparc.h
7178 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7179 * sparc-tdep.c (sparc_gdbarch_init): Set
7180 deprecated_extra_stack_alignment_needed.
7181 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7183 extra_stack_alignment_needed.
7184 * v850-tdep.c (v850_gdbarch_init): Ditto.
7185 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7186 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7187 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7188 * cris-tdep.c (cris_gdbarch_init): Ditto.
7189 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7191
7192 2003-03-25 Andrew Cagney <cagney@redhat.com>
7193
7194 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7195 STORE_STRUCT_RETURN.
7196 * gdbarch.h, gdbarch.c: Regenerate.
7197 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7198 (d10v_push_arguments): Set the struct return register.
7199 (d10v_gdbarch_init): Update.
7200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7201 * x86-64-tdep.c (x86_64_init_abi): Update.
7202 * vax-tdep.c (vax_gdbarch_init): Update.
7203 * v850-tdep.c (v850_gdbarch_init): Update.
7204 * sparc-tdep.c (sparc_gdbarch_init): Update.
7205 * sh-tdep.c (sh_gdbarch_init): Update.
7206 * s390-tdep.c (s390_gdbarch_init): Update.
7207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7208 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7209 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7210 * mips-tdep.c (mips_gdbarch_init): Update.
7211 * mcore-tdep.c (mcore_gdbarch_init): Update.
7212 * m68k-tdep.c (m68k_gdbarch_init): Update.
7213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7214 * ia64-tdep.c (ia64_gdbarch_init): Update.
7215 * i386-tdep.c (i386_gdbarch_init): Update.
7216 * hppa-tdep.c (hppa_gdbarch_init): Update.
7217 * h8300-tdep.c (h8300_gdbarch_init): Update.
7218 * frv-tdep.c (frv_gdbarch_init): Update.
7219 * cris-tdep.c (cris_gdbarch_init): Update.
7220 * avr-tdep.c (avr_gdbarch_init): Update.
7221 * arm-tdep.c (arm_gdbarch_init): Update.
7222 * alpha-tdep.c (alpha_gdbarch_init): Update.
7223
7224 2003-03-25 Andrew Cagney <cagney@redhat.com>
7225
7226 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7227 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7228 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7229 * gdbarch.h, gdbarch.c: Regenerate.
7230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7231 call_dummy_stack_adjust_p.
7232 * vax-tdep.c (vax_gdbarch_init): Ditto.
7233 * v850-tdep.c (v850_gdbarch_init): Ditto.
7234 * sh-tdep.c (sh_gdbarch_init): Ditto.
7235 * s390-tdep.c (s390_gdbarch_init): Ditto.
7236 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7237 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7238 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7239 * mips-tdep.c (mips_gdbarch_init): Ditto.
7240 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7241 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7243 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7244 * i386-tdep.c (i386_gdbarch_init): Ditto.
7245 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7246 * frv-tdep.c (frv_gdbarch_init): Ditto.
7247 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7248 * cris-tdep.c (cris_gdbarch_init): Ditto.
7249 * avr-tdep.c (avr_gdbarch_init): Ditto.
7250 * arm-tdep.c (arm_gdbarch_init): Ditto.
7251 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7252 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7253 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7254 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7255 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7256 call_dummy_stack_adjust_p.
7257 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7258 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7259 * sparc-tdep.c (sparc32_push_arguments): Update.
7260 * valops.c (hand_function_call): Update.
7261
7262 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7263
7264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7265 set_gdbarch_char_signed.
7266
7267 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7268
7269 PR cli/548
7270 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7271
7272 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7273
7274 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7275 (_initialize_arm_tdep): Don't set tm_print_insn.
7276
7277 2003-03-24 Adam Fedor <fedor@gnu.org>
7278
7279 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7280 * objc-lang.h: Add multiple inclusion protection.
7281 (start_msglist, add_msglist, end_msglist): Additional declarations.
7282
7283 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7284
7285 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7286 value was renamed to ARM_FLOAT_SOFT_FPA.
7287
7288 2003-03-23 Andrew Cagney <cagney@redhat.com>
7289
7290 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7291 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7292 * gdbarch.h, gdbarch.c: Regenerate.
7293 * valops.c (hand_function_call): Update.
7294 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7295 * frame.c (legacy_saved_regs_this_id): Update.
7296 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7297 * dummy-frame.h: Update.
7298 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7299 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7300 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7301 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7302 * config/m68k/tm-sun3.h: Update.
7303 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7305 * x86-64-tdep.c (x86_64_init_abi): Update.
7306 * vax-tdep.c (vax_gdbarch_init): Update.
7307 * v850-tdep.c (v850_gdbarch_init): Update.
7308 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7309 * sh-tdep.c (sh_gdbarch_init): Update.
7310 * s390-tdep.c (s390_gdbarch_init): Update.
7311 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7312 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7313 (frame_get_saved_regs): Update.
7314 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7315 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7316 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7317 * mips-tdep.c (mips_gdbarch_init): Update.
7318 * mcore-tdep.c (mcore_gdbarch_init): Update.
7319 * m68k-tdep.c (m68k_gdbarch_init): Update.
7320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7321 * ia64-tdep.c (ia64_gdbarch_init): Update.
7322 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7323 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7324 (i386_interix_back_one_frame): Update.
7325 * hppa-tdep.c (hppa_gdbarch_init): Update.
7326 (hppa_init_extra_frame_info): Update.
7327 * h8300-tdep.c (h8300_gdbarch_init): Update.
7328 * frv-tdep.c (frv_gdbarch_init): Update.
7329 * cris-tdep.c (cris_gdbarch_init): Update.
7330 * avr-tdep.c (avr_gdbarch_init): Update.
7331 * arm-tdep.c (arm_gdbarch_init): Update.
7332 * alpha-tdep.c (alpha_gdbarch_init): Update.
7333
7334 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7335
7336 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7337 (arm_get_fp_model): Declare.
7338 * arm-tdep.c (fp_model_strings): New string array.
7339 (arm_fp_model, current_fp_model): New variables.
7340 (arm_get_fp_model): New function.
7341 (arm_set_fp): New function.
7342 (set_fp_model_sfunc): New function.
7343 (show_fp_model): New function.
7344 (_initialize_arm_tdep): Add new command to set/show the FPU.
7345 (arm_extract_return_value): Use arm_get_fp_model.
7346 (arm_store_return_value): Likewise.
7347 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7348 to initialize the floating-point data types.
7349 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7350 model is FPA.
7351
7352 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7353
7354 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7355 the current setting of each value.
7356 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7357 new_set and new_show. Use add_setshow_cmd_full and
7358 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7359 commands and add new version as subcommands of "set/show arm".
7360
7361 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7362
7363 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7364 (set_arm_command, show_arm_command): New functions.
7365 (_initialize_arm_tdep): Add them.
7366 (num_disassembly_options): Renamed from num_flavor_options.
7367 (valid_disassembly_styles): Renamed from valid_flavors.
7368 (disassembly_style): Renamed from disassembly_flavor.
7369 (set_disassembly_style_sfunc): Renamed from
7370 set_disassembly_flavor_sfunc.
7371 (set_disassembly_style): Renamed from set_disassembly_flavor.
7372 (arm_othernames): Updated.
7373 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7374 command. Add "set/show arm disassembly" commands. Deprecate
7375 "othernames" command.
7376
7377 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7378
7379 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7380 (arm-tdep.o): Depend on elf_arm_h.
7381
7382 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7383
7384 * Makefile.in (coff_internal_h): Define.
7385 (arm-tdep.o): Update dependencies.
7386
7387 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7388
7389 * arm-tdep.c (prologue_cache): Delete.
7390 (check_prologue_cache, save_prologue_cache): Delete.
7391 (arm_scan_prologue): Don't check or update the prologue_cache.
7392 (arm_gdb_arch_init): Don't initialize it.
7393 (_initialize_arm_tdep): Likewise.
7394
7395 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7396
7397 * MAINTAINERS (tui): Maintainer of tui code.
7398
7399 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7400
7401 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7402 (i386-cygwin-tdep.o): Add dependencies.
7403 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7404 * i386-cygwin-tdep.c: New file.
7405 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7406 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7407
7408 2003-03-20 Andrew Cagney <cagney@redhat.com>
7409
7410 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7411 (handle_inferior_event): Remove code calling
7412 DYNAMIC_TRAMPOLINE_NEXTPC.
7413
7414 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7415 already has a full path.
7416
7417 * main.c (gdb_main): Return 1.
7418 (captured_main): Call error to report an invalid interpreter.
7419
7420 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7421 * alpha-osf1-tdep.c: Include "gdb_string.h".
7422
7423 2003-03-19 J. Brobecker <brobecker@gnat.com>
7424
7425 Continuing work to convert the hppa targets to multiarch partial.
7426
7427 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7428 method, now that hppa_push_dummy_frame has a conformant prototype.
7429 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7430 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7431 for the switch to multiarch partial.
7432
7433 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7434
7435 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7436 when iss is issNull.
7437
7438 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7439
7440 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7441 NUM_REGS bounds check.
7442
7443 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7444
7445 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7446 * mips-tdep.c (gdb_assert.h): Include.
7447 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7448 (mips_register_name): Handle integer registers explicitly. Add
7449 bounds checking.
7450 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7451 (mips_lsi33k_reg_names): Don't list integer registers; they're
7452 handled by mips_register_name() now.
7453 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7454 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7455 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7456 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7457 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7458
7459 2003-03-18 Andrew Cagney <cagney@redhat.com>
7460
7461 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7462 a void pointer.
7463 * gdbtypes.h (print_scalar_formatted): Update declaration.
7464 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7465
7466 2003-03-18 J. Brobecker <brobecker@gnat.com>
7467
7468 * infrun.c (observer.h): Add #include.
7469 (normal_stop): Add call to observer_notify_normal_stop.
7470 * Makefile.in (infrun.o): Add dependency on observer.h.
7471
7472 2003-03-18 J. Brobecker <brobecker@gnat.com>
7473
7474 Continuing work to convert the hppa targets to multiarch partial.
7475 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7476 parameter. Reformat comment.
7477 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7478 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7479 to match new profile.
7480
7481 2003-03-18 J. Brobecker <brobecker@gnat.com>
7482
7483 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7484 appear to be working in any case.
7485
7486 2003-03-18 J. Brobecker <brobecker@gnat.com>
7487
7488 * observer.c (observer_test_first_observer): New static variable.
7489 (observer_test_second_observer): Likewise.
7490 (observer_test_third_observer): Likewise.
7491 (observer_test_first_notification_function): New static function.
7492 (observer_test_second_notification_function): Likewise.
7493 (observer_test_third_notification_function): Likewise.
7494
7495 2003-03-17 J. Brobecker <brobecker@gnat.com>
7496
7497 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7498 * somsolib.c (gdb_assert.h): Likewise.
7499 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7500 (somsolib.o): Likewise.
7501
7502 2003-03-17 Andrew Cagney <cagney@redhat.com>
7503
7504 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7505 BFD. Simplify setting of di.endian.
7506
7507 2003-03-17 Andrew Cagney <cagney@redhat.com>
7508
7509 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7510 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7511
7512 From Elena Zannoni <ezannoni@redhat.com>
7513 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7514 vector and floating-point parameters.
7515 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7516 convention.
7517 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7518
7519 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7520
7521 * MAINTAINERS: Remove my name from several maintainership roles.
7522
7523 2003-03-17 Andrew Cagney <cagney@redhat.com>
7524
7525 Fix frame off-by-one bug.
7526 * frame-unwind.h (frame_this_id_ftype): Replace
7527 frame_unwind_id_ftype.
7528 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7529 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7530 with "prev_register".
7531 * frame-unwind.c (frame_unwind_find_by_pc): Return
7532 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7533 comment.
7534 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7535 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7536 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7537 (dummy_frame_unwind): Update.
7538 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7539 sentinel_frame_register_unwind.
7540 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7541 (sentinel_frame_unwinder): Update.
7542 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7543 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7544 * frame.c (create_sentinel_frame): Update. Initialize
7545 "prologue_cache" instead of "unwind_cache".
7546 (frame_register_unwind): Call this frame's prev_register with the
7547 next frame and this frame's prologue cache.
7548 (get_prev_frame): Simplify. Always call prev frame's this_id with
7549 this frame and prev frame's prologue cache. Document that this
7550 call is shifted one to the left when compared to the
7551 frame_register_unwind call.
7552 (legacy_saved_regs_prev_register): Replace
7553 frame_saved_regs_register_unwind.
7554 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7555 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7556 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7557 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7558 (d10v_frame_unwind): Update.
7559 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7560 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7561 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7562 "saved_regs" with "this_saved_regs".
7563
7564 2003-03-16 Andrew Cagney <cagney@redhat.com>
7565
7566 * frame.c (frame_pop): Don't call target_store_registers. Fix
7567 problem reported by Mark Kettenis.
7568
7569 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7570
7571 * i386-tdep.c (i386_register_type): Renamed from
7572 i386_register_virtual_type. Adjust function signature.
7573 (i386_gdbarch_init): Set register_type instead of
7574 deprecated_max_register_raw_size,
7575 deprecated_max_register_virtual_size and register_virtual_type.
7576
7577 2003-03-14 Andrew Cagney <cagney@redhat.com>
7578
7579 * frame.c (get_prev_frame): When a legacy frame, always call
7580 legacy_get_prev_frame. Simplify unwind code using assumption that
7581 the unwinder is new.
7582 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7583 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7584 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7585
7586 2003-03-14 Andrew Cagney <cagney@redhat.com>
7587
7588 * frame.c (get_saved_register): Delete function.
7589 * frame.h (get_saved_register): Delete declaration.
7590 * xstormy16-tdep.c: Update comment.
7591 * regcache.h: Update comments.
7592 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7593 get_saved_register and extract_address, use
7594 frame_read_unsigned_register.
7595 (sparc_frame_saved_pc): Ditto.
7596 (sparc_get_saved_register): Instead of get_saved_register, use
7597 frame_register.
7598 (sparc_pop_frame): Ditto.
7599 * findvar.c: Update comments.
7600 (value_of_register): Call frame_register instead of
7601 get_saved_register.
7602 (value_from_register): Ditto.
7603 * config/sparc/tm-sparc.h: Update comment.
7604 * breakpoint.c: Update comment.
7605
7606 2003-03-14 Andrew Cagney <cagney@redhat.com>
7607
7608 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7609 GET_SAVED_REGISTER.
7610 * gdbarch.h, gdbarch.c: Re-generate.
7611 * frame.h: Update comments.
7612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7613 * x86-64-tdep.c (x86_64_init_abi): Update.
7614 * sparc-tdep.c (sparc_gdbarch_init): Update.
7615 * sh-tdep.c (sh_gdbarch_init): Update.
7616 * mips-tdep.c (mips_gdbarch_init): Update.
7617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7618 * cris-tdep.c (cris_gdbarch_init): Update.
7619 * ia64-tdep.c (ia64_gdbarch_init): Update.
7620 * frame.c (frame_register): Update.
7621 (get_saved_register): Update.
7622 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7623
7624 2003-03-13 Andrew Cagney <cagney@redhat.com>
7625
7626 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7627 * gdbarch.h, gdbarch.c: Regenerate.
7628 * valops.c (hand_function_call): Update comment.
7629 * stack.c (return_command): Update comment.
7630 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7631 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7633 * x86-64-tdep.c (x86_64_init_abi): Update.
7634 * vax-tdep.c (vax_gdbarch_init): Update.
7635 * v850-tdep.c (v850_gdbarch_init): Update.
7636 * sparc-tdep.c (sparc_gdbarch_init): Update.
7637 * sh-tdep.c (sh_gdbarch_init): Update.
7638 * s390-tdep.c (s390_gdbarch_init): Update.
7639 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7640 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7641 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7642 * mips-tdep.c (mips_gdbarch_init): Update.
7643 * mcore-tdep.c (mcore_gdbarch_init): Update.
7644 * m68k-tdep.c (m68k_gdbarch_init): Update.
7645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7646 * ia64-tdep.c (ia64_gdbarch_init): Update.
7647 * i386-tdep.c (i386_gdbarch_init): Update.
7648 * hppa-tdep.c (hppa_gdbarch_init): Update.
7649 * h8300-tdep.c (h8300_gdbarch_init): Update.
7650 * frv-tdep.c (frv_gdbarch_init): Update.
7651 * cris-tdep.c (cris_gdbarch_init): Update.
7652 * avr-tdep.c (avr_gdbarch_init): Update.
7653 * arm-tdep.c (arm_gdbarch_init): Update.
7654 * alpha-tdep.c (alpha_gdbarch_init): Update.
7655
7656 2003-03-13 Andrew Cagney <cagney@redhat.com>
7657
7658 * frame.c (legacy_frame_p): New function.
7659 (get_prev_frame): Use legacy_frame_p.
7660 * frame.h (legacy_frame_p): Declare.
7661
7662 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7663
7664 * MAINTAINERS (write after approval): Alphabetically
7665 listing corrected.
7666
7667 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7668
7669 * MAINTAINERS (write after approval): Add myself.
7670
7671 2003-03-12 Andrew Cagney <cagney@redhat.com>
7672
7673 * frame.c (get_prev_frame): Rename the frame parameter to
7674 "this_frame".
7675 (get_next_frame, legacy_get_prev_frame): Ditto.
7676
7677 2003-03-12 Andrew Cagney <cagney@redhat.com>
7678
7679 * frame.c (get_current_frame): Check target_has_registers before
7680 checking target_has_stack.
7681 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7682 instead of deprecated_selected_frame.
7683 * findvar.c (value_of_register): Pass "frame", not
7684 deprecated_selected_frame, to value_of_builtin_reg.
7685
7686 2003-03-12 Andrew Cagney <cagney@redhat.com>
7687
7688 * regcache.c (regcache_cooked_write_signed): New function.
7689 (regcache_cooked_write_unsigned): New function.
7690 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7691 (regcache_cooked_read_signed): Fix regnum in range assertion.
7692 * regcache.h (regcache_cooked_write_signed): Declare.
7693 (regcache_cooked_write_unsigned): Declare.
7694
7695 2003-03-12 Andrew Cagney <cagney@redhat.com>
7696
7697 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7698 * gdbarch.h, gdbarch.c: Re-generate.
7699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7700 * x86-64-tdep.h: Update.
7701 * x86-64-tdep.c (x86_64_init_abi): Update.
7702 * v850-tdep.c (v850_gdbarch_init): Update.
7703 * sparc-tdep.c (sparc_gdbarch_init): Update.
7704 * sh-tdep.c (sh_gdbarch_init): Update.
7705 * s390-tdep.c (s390_gdbarch_init): Update.
7706 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7707 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7708 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7709 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7710 * mips-tdep.c (mips_gdbarch_init): Update.
7711 * mcore-tdep.c (mcore_gdbarch_init): Update.
7712 * m68k-tdep.c (m68k_gdbarch_init): Update.
7713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7714 * ia64-tdep.c (ia64_gdbarch_init): Update.
7715 * i386-tdep.c (i386_gdbarch_init): Update.
7716 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7717 * hppa-tdep.c (hppa_gdbarch_init): Update.
7718 * h8300-tdep.c (h8300_gdbarch_init): Update.
7719 * frv-tdep.c (frv_gdbarch_init): Update.
7720 * cris-tdep.c (cris_gdbarch_init): Update.
7721 * avr-tdep.c (avr_gdbarch_init): Update.
7722 * arm-tdep.c (arm_gdbarch_init): Update.
7723 * alpha-tdep.c (alpha_gdbarch_init): Update.
7724 * sh-tdep.c (sh_init_extra_frame_info): Update.
7725 (sh64_init_extra_frame_info): Update.
7726 * ns32knbsd-nat.c (frame_num_args): Update.
7727 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7728 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7729 (xstormy16_frame_chain_valid): Update.
7730 * vax-tdep.c (vax_saved_pc_after_call): Update.
7731 * v850-tdep.c (v850_frame_chain): Update.
7732 (v850_pop_frame): Update.
7733 (v850_init_extra_frame_info): Update.
7734 * sparc-tdep.c (setup_arbitrary_frame): Update.
7735 * ns32k-tdep.c (umax_frame_num_args): Update.
7736 * s390-tdep.c (s390_pop_frame_regular): Update.
7737 * mn10300-tdep.c (mn10300_frame_chain): Update.
7738 (mn10300_pop_frame_regular): Update.
7739 (mn10300_init_extra_frame_info): Update.
7740 * mips-tdep.c (mips_init_frame_pc_first): Update.
7741 (mips_frame_chain): Update.
7742 (mips_pop_frame): Update.
7743 * mcore-tdep.c (mcore_frame_chain): Update.
7744 (mcore_pop_frame): Update.
7745 (mcore_init_extra_frame_info): Update.
7746 * arch-utils.c (init_frame_pc_default): Update.
7747 * m68k-tdep.c (isi_frame_num_args): Update.
7748 (delta68_frame_num_args): Update.
7749 (news_frame_num_args): Update.
7750 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7751 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7752 (alpha_frame_chain): Update.
7753 (alpha_pop_frame): Update.
7754 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7755 (hppa_init_extra_frame_info): Update.
7756 (hppa_frame_chain): Update.
7757 (hppa_frame_chain_valid): Update.
7758 * cris-tdep.c (cris_init_extra_frame_info): Update.
7759 * avr-tdep.c (avr_init_extra_frame_info): Update.
7760 * arm-tdep.c (arm_frame_chain_valid): Update.
7761 (arm_init_extra_frame_info): Update.
7762 (arm_pop_frame): Update.
7763 * frame.c (frame_pc_unwind): Update.
7764 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7765 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7766 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7767 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7768 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7769 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7770
7771 2003-03-12 Andrew Cagney <cagney@redhat.com>
7772
7773 Eliminate the need for POP_FRAME.
7774 * frame.c (do_frame_unwind_register): New function.
7775 (frame_pop): When no POP_FRAME, pop the frame using register
7776 unwind and a scratch regcache.
7777 (frame_saved_regs_pop): Delete function.
7778 (trad_frame_unwinder): Update.
7779 * d10v-tdep.c (d10v_frame_pop): Delete function.
7780 (d10v_frame_unwind): Update.
7781 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7782 (sentinel_frame_unwinder): Update.
7783 * dummy-frame.c (dummy_frame_pop): Delete function.
7784 (dummy_frame_unwind): Update.
7785 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7786 (struct frame_unwind): Update.
7787
7788 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7789
7790 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7791 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7792 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7793 Do range checks on register number obtained from debugging info.
7794 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7795 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7796 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7797 mapping function.
7798 (do_fp_register_row): Fix typo which caused double type to be
7799 used when attempting to unpack a float.
7800
7801 2003-03-11 J. Brobecker <brobecker@gnat.com>
7802
7803 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7804
7805 2003-03-11 Andrew Cagney <cagney@redhat.com>
7806
7807 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7808 frame. Problem found by Corinna Vinschen.
7809
7810 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7811
7812 * doublest.c (floatformat_from_length): Accept also
7813 the real size of 'long double' type.
7814
7815 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7816
7817 From Klee Dienes <kdienes@apple.com>:
7818 * breakpoint.c (bpstat_copy): Copy the command lines as well
7819 as the old value, to match what is freed in bpstat_clear.
7820
7821 2003-03-10 David Carlton <carlton@math.stanford.edu>
7822
7823 * minsyms.c (add_minsym_to_hash_table): Replace
7824 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7825 (compare_minimal_symbols, compact_minimal_symbols)
7826 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7827 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7828 of DEPRECATED_SYMBOL_MATCHES_NAME.
7829 (lookup_minimal_symbol_solib_trampoline): Ditto.
7830
7831 2003-03-10 Andrew Cagney <cagney@redhat.com>
7832
7833 * regcache.h (regcache_cooked_read_ftype): Define.
7834 (regcache_save, regcache_restore): Add a cooked_read parameter.
7835 * regcache.c (regcache_save, regcache_restore): Update.
7836 (do_cooked_read): New function.
7837 (regcache_cpy): Pass do_cooked_read to regcache_save and
7838 regcache_restore.
7839
7840 2003-03-10 Andrew Cagney <cagney@redhat.com>
7841
7842 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7843 * gdbarch.h, gdbarch.c: Re-generate.
7844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7845 * x86-64-tdep.h: Update.
7846 * x86-64-tdep.c (x86_64_init_abi): Update.
7847 * v850-tdep.c (v850_gdbarch_init): Update.
7848 * sparc-tdep.c (sparc_gdbarch_init): Update.
7849 * sh-tdep.c (sh_gdbarch_init): Update.
7850 * s390-tdep.c (s390_gdbarch_init): Update.
7851 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7852 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7853 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7854 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7855 * mips-tdep.c (mips_gdbarch_init): Update.
7856 * mcore-tdep.c (mcore_gdbarch_init): Update.
7857 * m68k-tdep.c (m68k_gdbarch_init): Update.
7858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7859 * ia64-tdep.c (ia64_gdbarch_init): Update.
7860 * i386-tdep.c (i386_gdbarch_init): Update.
7861 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7862 * hppa-tdep.c (hppa_gdbarch_init): Update.
7863 * h8300-tdep.c (h8300_gdbarch_init): Update.
7864 * frv-tdep.c (frv_gdbarch_init): Update.
7865 * cris-tdep.c (cris_gdbarch_init): Update.
7866 * avr-tdep.c (avr_gdbarch_init): Update.
7867 * arm-tdep.c (arm_gdbarch_init): Update.
7868 * alpha-tdep.c (alpha_gdbarch_init): Update.
7869 * sh-tdep.c (sh_init_extra_frame_info): Update.
7870 (sh64_init_extra_frame_info): Update.
7871 * ns32knbsd-nat.c (frame_num_args): Update.
7872 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7873 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7874 (xstormy16_frame_chain_valid): Update.
7875 * vax-tdep.c (vax_saved_pc_after_call): Update.
7876 * v850-tdep.c (v850_frame_chain): Update.
7877 (v850_pop_frame): Update.
7878 (v850_init_extra_frame_info): Update.
7879 * sparc-tdep.c (setup_arbitrary_frame): Update.
7880 * ns32k-tdep.c (umax_frame_num_args): Update.
7881 * s390-tdep.c (s390_pop_frame_regular): Update.
7882 * mn10300-tdep.c (mn10300_frame_chain): Update.
7883 (mn10300_pop_frame_regular): Update.
7884 (mn10300_init_extra_frame_info): Update.
7885 * mips-tdep.c (mips_init_frame_pc_first): Update.
7886 (mips_frame_chain): Update.
7887 (mips_pop_frame): Update.
7888 * mcore-tdep.c (mcore_frame_chain): Update.
7889 (mcore_pop_frame): Update.
7890 (mcore_init_extra_frame_info): Update.
7891 * arch-utils.c (init_frame_pc_default): Update.
7892 * m68k-tdep.c (isi_frame_num_args): Update.
7893 (delta68_frame_num_args): Update.
7894 (news_frame_num_args): Update.
7895 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7896 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7897 (alpha_frame_chain): Update.
7898 (alpha_pop_frame): Update.
7899 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7900 (hppa_init_extra_frame_info): Update.
7901 (hppa_frame_chain): Update.
7902 (hppa_frame_chain_valid): Update.
7903 * cris-tdep.c (cris_init_extra_frame_info): Update.
7904 * avr-tdep.c (avr_init_extra_frame_info): Update.
7905 * arm-tdep.c (arm_frame_chain_valid): Update.
7906 (arm_init_extra_frame_info): Update.
7907 (arm_pop_frame): Update.
7908 * frame.c (frame_pc_unwind): Update.
7909 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7910 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7911 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7912 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7913 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7914 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7915
7916 2003-03-10 Andrew Cagney <cagney@redhat.com>
7917
7918 * gdbarch.sh (gdbarch_unwind_pc): New method.
7919 * gdbarch.h, gdbarch.c: Regenerate.
7920 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7921 but use read_pc and FRAME_SAVED_PC as fall backs.
7922 (frame_saved_regs_pc_unwind): Delete function.
7923 (trad_frame_unwinder): Update.
7924 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7925 (struct frame_unwind): Update.
7926 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7927 (dummy_frame_unwind): Update.
7928 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7929 (sentinel_frame_unwinder): Update.
7930 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7931 (d10v_frame_unwind): Update.
7932 (d10v_unwind_pc): New function.
7933 (d10v_gdbarch_init): Set unwind_pc.
7934
7935 2003-03-10 Andrew Cagney <cagney@redhat.com>
7936
7937 * gdbarch.h: Re-generate.
7938
7939 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7940 PC.
7941 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7942 the PC register.
7943
7944 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7945
7946 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7947
7948 2003-03-08 Andrew Cagney <cagney@redhat.com>
7949
7950 * cli-out.c: Update copyright.
7951 (cli_out_data): Define typedef. Use instead of ui_out_data.
7952
7953 2003-03-08 Andrew Cagney <cagney@redhat.com>
7954
7955 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7956 the result.
7957
7958 2003-03-07 Andrew Cagney <cagney@redhat.com>
7959
7960 * gdbarch.sh: Don't generate two macro definitions when an
7961 undefined macro taking no arguments.
7962 * gdbarch.h: Regenerate.
7963
7964 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7965
7966 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7967 (x86_64_unwind_dummy_id): New functions.
7968 (x86_64_init_abi): Register these two new functions.
7969
7970 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7971
7972 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7973 (x86_64_skip_prologue): Move prologue detection to
7974 separate function.
7975 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7976
7977 2003-03-05 Andrew Cagney <cagney@redhat.com>
7978
7979 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7980 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7981 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7982 to use unwind_dummy_id when a dummy frame.
7983 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7984 predicate.
7985 * gdbarch.h, gdbarch.c: Regneerate.
7986
7987 2003-03-05 Andrew Cagney <cagney@redhat.com>
7988
7989 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7990 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7991 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7992 values.
7993
7994 2003-03-05 Andrew Cagney <cagney@redhat.com>
7995
7996 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7997 (struct d10v_unwind_cache): Delete field "frameless". Replace
7998 "next_addr" with "sp_offset". Add "r11_offset".
7999 (d10v_frame_unwind_cache): Update.
8000 (prologue_find_regs): Update. When "mv r11, sp", save the
8001 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8002 RN was saved in r11_offset.
8003
8004 2003-03-05 Andrew Cagney <cagney@redhat.com>
8005
8006 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8007 cached PC value in the next frame.
8008
8009 2003-03-05 Andrew Cagney <cagney@redhat.com>
8010
8011 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8012 "id_unwind_cache" with "id".
8013 (frame_id_unwind): Delete declaration.
8014 * frame.c (frame_id_unwind): Delete function.
8015 (get_prev_frame): Call the frame id unwind method directly. Store
8016 the returned next frame's ID value in NEXT_FRAME. Note that there
8017 is a problem with the wrong unwind ID being called with the wrong
8018 unwind cache.
8019
8020 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8021
8022 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8023
8024 2003-03-05 James Ingham <jingham@apple.com>
8025 Daniel Jacobowitz <drow@mvista.com>
8026
8027 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8028 (auto_cp_abi): New variable.
8029 (current_cp_abi, num_cp_abis): Make static.
8030 (CP_ABI_MAX): Define.
8031 (cp_abis): Turn into an array.
8032 (value_virtual_fn_field): Fix formatting.
8033 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8034 takes a pointer.
8035 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8036 (list_cp_abis, _initialize_cp_abi): New functions.
8037 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8038 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8039 switch_to_cp_abi. Update prototype for register_cp_abi.
8040 * Makefile.in (cp-abi.o): Update dependencies.
8041 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8042 instead of switch_to_cp_abi.
8043 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8044 register_cp_abi.
8045 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8046 register_cp_abi.
8047 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8048
8049 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8050
8051 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8052 * dwarf2loc.c: Include "regcache.h".
8053 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8054 register_size.
8055 * Makefile.in (dwarf2loc.o): Update dependencies.
8056
8057 2003-03-04 Theodore A. Roth <troth@openavr.org>
8058
8059 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8060 number of io registers reported by remote target is not a multiple of
8061 step.
8062
8063 2003-03-04 David Carlton <carlton@math.stanford.edu>
8064
8065 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8066 (lookup_symbol_aux_psymtabs): Update call to
8067 lookup_partial_symbol.
8068 (lookup_transparent_type, find_main_psymtab)
8069 (make_symbol_overload_list): Ditto.
8070
8071 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8072
8073 * MAINTAINERS (Write after approval): Update my email address.
8074
8075 2003-03-03 Andrew Cagney <cagney@redhat.com>
8076
8077 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8078 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8079 predicate. Replace MAX_REGISTER_RAW_SIZE.
8080 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8081 MAX_REGISTER_VIRTUAL_SIZE.
8082 * regcache.c (legacy_max_register_raw_size): New function.
8083 (legacy_max_register_virtual_size): New function.
8084 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8085 (MAX_REGISTER_RAW_SIZE): Define.
8086 (legacy_max_register_raw_size): Declare.
8087 (legacy_max_register_virtual_size): Declare.
8088 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8089 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8090 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8091 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8092 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8093 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8094 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8095 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8096 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8098 * vax-tdep.c (vax_gdbarch_init): Update.
8099 * v850-tdep.c (v850_gdbarch_init): Update.
8100 * sparc-tdep.c (sparc_gdbarch_init): Update.
8101 * sh-tdep.c (sh_gdbarch_init): Update.
8102 * s390-tdep.c (s390_gdbarch_init): Update.
8103 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8104 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8105 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8106 * mips-tdep.c (mips_gdbarch_init): Update.
8107 * mcore-tdep.c (mcore_gdbarch_init): Update.
8108 * m68k-tdep.c (m68k_gdbarch_init): Update.
8109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8110 * ia64-tdep.c (ia64_gdbarch_init): Update.
8111 * i386-tdep.c (i386_gdbarch_init): Update.
8112 * hppa-tdep.c (hppa_gdbarch_init): Update.
8113 * h8300-tdep.c (h8300_gdbarch_init): Update.
8114 * frv-tdep.c (frv_gdbarch_init): Update.
8115 * cris-tdep.c (cris_gdbarch_init): Update.
8116 * avr-tdep.c (avr_gdbarch_init): Update.
8117 * arm-tdep.c (arm_gdbarch_init): Update.
8118 * alpha-tdep.c (alpha_gdbarch_init): Update.
8119 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8120 max_register_raw_size or max_register_virtual_size.
8121
8122 2003-03-03 David Carlton <carlton@math.stanford.edu>
8123
8124 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8125 SYMBOL_MATCHES_NAME, add comment.
8126 (SYMBOL_MATCHES_NATURAL_NAME): New.
8127 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8128 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8129 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8130 * symtab.c (lookup_partial_symbol): Use
8131 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8132 unhelpful comment.
8133 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8134 SYMBOL_MATCHES_NAME.
8135 Fix for PR c++/33.
8136
8137 2003-03-03 David Carlton <carlton@math.stanford.edu>
8138
8139 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8140 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8141 by regexp matching against SYMBOL_NATURAL_NAME.
8142
8143 2003-03-03 David Carlton <carlton@math.stanford.edu>
8144
8145 * linespec.c (find_method): Extract code into collect_methods.
8146 (collect_methods): New.
8147
8148 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8149
8150 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8151 get_frame_base.
8152
8153 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8154 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8155
8156 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8157
8158 * arch-utils.c (generic_register_byte): Fix to use the loop index
8159 and not regnum when summing the size of all registers up to regnum.
8160
8161 2003-03-01 Andrew Cagney <cagney@redhat.com>
8162
8163 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8164 FRAME_INIT_SAVED_REGS.
8165 * gdbarch.h, gdbarch.c: Regenerate.
8166 * stack.c (frame_info): Update.
8167 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8168 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8169 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8170 * ns32k-tdep.c (ns32k_pop_frame): Update.
8171 * mips-tdep.c (mips_pop_frame): Update.
8172 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8173 * ia64-tdep.c (ia64_frame_chain): Update.
8174 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8175 (ia64_frameless_function_invocation): Update.
8176 (ia64_init_extra_frame_info): Update.
8177 (ia64_pop_frame_regular): Update.
8178 * frame.h (struct frame_info): Update comment.
8179 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8180 * frame.c (frame_saved_regs_register_unwind): Update.
8181 (frame_saved_regs_register_unwind): Update.
8182 (deprecated_generic_get_saved_register): Update.
8183 * cris-tdep.c: Update comment.
8184 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8185 Rename macro.
8186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8187 * x86-64-tdep.c (x86_64_init_abi): Update.
8188 * vax-tdep.c (vax_gdbarch_init): Update.
8189 * v850-tdep.c (v850_gdbarch_init): Update.
8190 * sparc-tdep.c (sparc_gdbarch_init): Update.
8191 * sh-tdep.c (sh_gdbarch_init): Update.
8192 * s390-tdep.c (s390_gdbarch_init): Update.
8193 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8194 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8195 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8196 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8197 * mips-tdep.c (mips_gdbarch_init): Update.
8198 * mcore-tdep.c (mcore_gdbarch_init): Update.
8199 * m68k-tdep.c (m68k_gdbarch_init): Update.
8200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8201 * ia64-tdep.c (ia64_gdbarch_init): Update.
8202 * i386-tdep.c (i386_gdbarch_init): Update.
8203 * frv-tdep.c (frv_gdbarch_init): Update.
8204 * avr-tdep.c (avr_gdbarch_init): Update.
8205 * arm-tdep.c (arm_gdbarch_init): Update.
8206 * alpha-tdep.c (alpha_gdbarch_init): Update.
8207
8208 2003-03-01 Andrew Cagney <cagney@redhat.com>
8209
8210 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8211 option enum and switch. When no windows, set the interpreter to
8212 INTERP_CONSOLE.
8213
8214 2003-03-01 Andrew Cagney <cagney@redhat.com>
8215
8216 * main.c (captured_main): Replace magic option characters with an
8217 enum.
8218
8219 2003-03-01 Andrew Cagney <cagney@redhat.com>
8220
8221 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8222 INIT_EXTRA_FRAME_INFO.
8223 * gdbarch.h, gdbarch.c: Regenerate.
8224 * arm-tdep.c: Update comments.
8225 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8226 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8227 * frame.h, avr-tdep.c: Ditto.
8228 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8229 (create_new_frame, legacy_get_prev_frame): Ditto.
8230 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8231 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8233 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8234 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8235 * v850-tdep.c (v850_gdbarch_init): Ditto.
8236 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8237 * sh-tdep.c (sh_gdbarch_init): Ditto.
8238 * s390-tdep.c (s390_gdbarch_init): Ditto.
8239 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8240 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8241 * mips-tdep.c (mips_gdbarch_init): Ditto.
8242 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8244 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8245 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8246 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8247 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8248 * frv-tdep.c (frv_gdbarch_init): Ditto.
8249 * cris-tdep.c (cris_gdbarch_init): Ditto.
8250 * avr-tdep.c (avr_gdbarch_init): Ditto.
8251 * arm-tdep.c (arm_gdbarch_init): Ditto.
8252 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8253 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8254
8255 2003-03-01 Andrew Cagney <cagney@redhat.com>
8256
8257 * gdbarch.sh (register_type): New function with predicate.
8258 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8259 * gdbarch.h, gdbarch.c: Re-generate.
8260 * arch-utils.c (generic_register_byte): Use generic_register_size.
8261 (generic_register_size): When available, use
8262 gdbarch_register_type.
8263 * regcache.c (init_regcache_descr): When available, initialize the
8264 register type array using gdbarch_register_type. If the
8265 architecture supplies gdbarch_register_type, do not use the legacy
8266 regcache layout.
8267 * d10v-tdep.c (d10v_register_type): Replace
8268 d10v_register_virtual_type.
8269 (d10v_gdbarch_init): Set register_type instead of
8270 register_virtual_type.
8271
8272 2003-03-01 Andrew Cagney <cagney@redhat.com>
8273
8274 * Makefile.in (ax-gdb.o): Update dependencies.
8275 * ax-gdb.c: Include "regcache.h".
8276 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8277 * findvar.c (value_of_register): Ditto.
8278 * infcmd.c (default_print_registers_info): Ditto.
8279
8280 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8281
8282 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8283 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8284
8285 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8286
8287 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8288 of STREQ.
8289
8290 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8291
8292 * Makefile.in (dwarf2loc.o): Update dependencies.
8293 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8294 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8295 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8296 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8297 (locexpr_tracepoint_var_ref): New function.
8298 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8299
8300 2003-02-28 Andrew Cagney <cagney@redhat.com>
8301
8302 * regcache.c (register_size): New function.
8303 * regcache.h (register_size): Declare
8304 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8305 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8306
8307 2003-02-28 David Carlton <carlton@math.stanford.edu>
8308
8309 * linespec.c (decode_compound): Extract code into find_method.
8310 (find_method): New.
8311
8312 2003-02-28 J. Brobecker <brobecker@gnat.com>
8313
8314 * Makefile.in: Add rules to build and link in observer.o.
8315
8316 2003-02-27 J. Brobecker <brobecker@gnat.com>
8317
8318 * observer.c: Minor comments edits.
8319
8320 2003-02-27 J. Brobecker <brobecker@gnat.com>
8321
8322 * observer.h, observer.c: New file.
8323
8324 2003-02-27 Andrew Cagney <cagney@redhat.com>
8325
8326 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8327
8328 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8329
8330 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8331 (M6812_OP_STS_EXT): Likewise.
8332 (m6811_prologue): Use the above to recognize prologue.
8333 (m6812_prologue): Likewise.
8334
8335 2003-02-27 David Carlton <carlton@math.stanford.edu>
8336
8337 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8338 SYMBOL_PRINT_NAME.
8339 (compare_psymbols): Ditto.
8340 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8341
8342 2003-02-27 Michael Snyder <msnyder@redhat.com>
8343
8344 * f-lang.c (build_fortran_types): New function.
8345 (_initialize_f_language): Gdbarch-register built-in fortran types.
8346 * doublest.c (extract_floating): Fix warning text.
8347
8348 2003-02-27 Andrew Cagney <cagney@redhat.com>
8349
8350 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8351 predicate. Replaces PUSH_DUMMY_FRAME.
8352 * gdbarch.h, gdbarch.c: Regnerate.
8353 * valops.c (hand_function_call): Update. Call
8354 generic_push_dummy_frame directly.
8355 * vax-tdep.c (vax_gdbarch_init): Update.
8356 * sparc-tdep.c (sparc_gdbarch_init): Update.
8357 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8358 * m68k-tdep.c (m68k_gdbarch_init): Update.
8359 * hppa-tdep.c (hppa_gdbarch_init): Update.
8360 * alpha-tdep.c (alpha_gdbarch_init): Update.
8361 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8362 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8363 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8365 push_dummy_frame to generic_push_dummy_frame.
8366 * v850-tdep.c (v850_gdbarch_init): Ditto.
8367 * sh-tdep.c (sh_gdbarch_init): Ditto.
8368 * s390-tdep.c (s390_gdbarch_init): Ditto.
8369 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8370 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8371 * mips-tdep.c (mips_gdbarch_init): Ditto.
8372 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8375 * i386-tdep.c (i386_gdbarch_init): Ditto.
8376 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8377 * frv-tdep.c (frv_gdbarch_init): Ditto.
8378 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8379 * cris-tdep.c (cris_gdbarch_init): Ditto.
8380 * avr-tdep.c (avr_gdbarch_init): Ditto.
8381 * arm-tdep.c (arm_gdbarch_init): Ditto.
8382
8383 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8384
8385 * mips-tdep.c (show_mips_abi): New function.
8386 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8387 command ``show mips abi''.
8388
8389 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8390
8391 From Elena Zannoni <ezannoni@redhat.com>
8392 * dbxread.c (process_one_symbol): Only record line 0 if one or
8393 more sline entries have been seen for the function.
8394
8395 2003-02-26 Michael Chastain <mec@shout.net>
8396
8397 * configure: Regenerate with autoconf 000227.
8398
8399 2003-02-26 Michael Chastain <mec@shout.net>
8400
8401 Close PR build/660.
8402 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8403 for old libc5/glibc.
8404 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8405
8406 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8407
8408 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8409 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8410
8411 2003-02-26 Michael Chastain <mec@shout.net>
8412
8413 * configure.in: New variable HAVE_UINTPTR_T.
8414 * configure, config.in: Regenerated.
8415
8416 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8417
8418 Fix PR build/1097.
8419 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8420
8421 2003-02-25 Andrew Cagney <cagney@redhat.com>
8422
8423 * frame.c (get_prev_frame): Add comment on check for
8424 inside_entry_func. Only check for inside_entry_file when not a
8425 dummy and not a sentinel. Check that the new frame is not inner
8426 to the old frame.
8427
8428 2003-02-25 Andrew Cagney <cagney@redhat.com>
8429
8430 * frame.c (frame_debug): New variable.
8431 (_initialize_frame): Add "set/show debug frame" command.
8432 (get_prev_frame): When frame_debug, print reason why unwind
8433 failed.
8434
8435 2003-02-25 Michael Chastain <mec@shout.net>
8436
8437 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8438 to avoid uintptr_t definition problems.
8439
8440 2003-02-25 David Carlton <carlton@math.stanford.edu>
8441
8442 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8443 (SYMBOL_LINKAGE_NAME): Ditto.
8444 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8445 SYMBOL_LINKAGE_NAME.
8446 (struct general_symbol_info): Expand comment.
8447 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8448 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8449 (SYMBOL_MATCHES_REGEXP): Ditto.
8450 * symtab.c (symbol_natural_name): New function.
8451 * objfiles.h: Replace all uses of SYMBOL_NAME by
8452 DEPRECATED_SYMBOL_NAME.
8453 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8454 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8455 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8456 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8457 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8458 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8459 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8460 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8461 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8462 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8463 * ada-exp.y: Ditto.
8464 * ada-exp.y: Update copyright.
8465 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8466 * cp-valprint.c: Ditto.
8467
8468 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8469
8470 * infptrace.c (detach): Do not flag error if ptrace detach fails
8471 and errno is set to ESRCH.
8472
8473 2003-02-24 Andrew Cagney <cagney@redhat.com>
8474
8475 * infptrace.c (udot_info): Change type of udot_off to long. Use
8476 paddr when printing udot_off's value.
8477
8478 2003-02-24 David Carlton <carlton@math.stanford.edu>
8479
8480 * symtab.c (make_symbol_overload_list): Only read in partial
8481 symtabs containing a matching partial symbol.
8482
8483 2003-02-24 David Carlton <carlton@math.stanford.edu>
8484
8485 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8486 do the comparison, not strcmp.
8487 * symfile.c (compare_psymbols): Ditto.
8488 * defs.h: Declare strcmp_iw_ordered.
8489 * utils.c (strcmp_iw_ordered): New function.
8490
8491 2003-02-24 Jim Blandy <jimb@redhat.com>
8492
8493 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8494 support, shared libs): Remove my name from here, to better reflect
8495 reality.
8496
8497 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8498
8499 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8500 (target_ops): Add to_have_continuable_watchpoint.
8501 * target.c (update_current_target): Add INHERIT line for
8502 to_have_continuable_watchpoint.
8503 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8504 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8505 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8506 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8507
8508 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8509
8510 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8511 maintainership.
8512
8513 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8514
8515 * solib.c (solib_open): Call target defined search function after
8516 failing with solib-search-path.
8517 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8518 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8519
8520 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8521
8522 * MAINTAINERS: Add myself to Write After section.
8523
8524 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8525
8526 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8527
8528 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8529
8530 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8531 (m68hc11_add_reggroups): New function.
8532 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8533 (m68hc11_gdbarch_init): Install the reggroups.
8534 (_initialize_m68hc11_tdep): Initialize them.
8535
8536 2003-02-21 James E Wilson <wilson@tuliptree.org>
8537
8538 * MAINTAINERS: Update my email address.
8539
8540 2003-02-21 David Carlton <carlton@math.stanford.edu>
8541
8542 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8543
8544 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8545
8546 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8547 * symtab.h: Add opaque declarations of struct axs_value and
8548 struct agent_expr.
8549 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8550 (struct location_funcs): New type.
8551 (struct symbol): Add "loc" to aux_value.
8552 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8553 * dwarf2read.c: Include "dwarf2expr.h".
8554 (dwarf2_symbol_mark_computed): New function.
8555 (read_func_scope): Use it.
8556 (var_decode_location): New function.
8557 (new_symbol): Use it.
8558 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8559
8560 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8561 (dwarf2expr_h, dwarf2loc_h): New variables.
8562 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8563 (dwarf2expr.o, dwarf2loc.o): New rules.
8564 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8565 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8566 LOC_COMPUTED_ARG.
8567 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8568 * m2-exp.y (yylex): Likewise.
8569 * printcmd.c (address_info, print_frame_args): Likewise.
8570 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8571 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8572 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8573 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8574 * symtab.c (lookup_block_symbol): Likewise.
8575
8576 2003-02-20 Adam Fedor <fedor@gnu.org>
8577
8578 * symtab.h: Remove objc_specific struct
8579 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8580 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8581 Have language_objc use cplus_specific struct.
8582
8583 2003-02-20 Tom Tromey <tromey@redhat.com>
8584
8585 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8586 TYPE_NAME, when printing a String value. PR java/1075.
8587
8588 2003-02-20 Adam Fedor <fedor@gnu.org>
8589
8590 * objc-lang.h (find_methods): Remove declaration.
8591 * objc-lang.c (find_methods): Make static.
8592
8593 2003-02-20 Christopher Faylor <cgf@redhat.com>
8594
8595 * win32-nat.c (get_image_name): Check return value from
8596 ReadProcessMemory.
8597 (child_xfer_memory): Ditto.
8598
8599 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8600
8601 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8602 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8603 '${exec_prefix}' (in addition to the expansion thereof) as
8604 relocatable.
8605 * configure: Rebuilt.
8606
8607 2003-02-20 David Carlton <carlton@math.stanford.edu>
8608
8609 * symtab.c (search_symbols): Revert the search_symbols part of my
8610 2002-12-23 patch. Add comment.
8611
8612 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8613
8614 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8615 * dbxread.c (elfstab_build_psymtabs): Don't call
8616 install_minimal_symbols.
8617 (stabsect_build_psymtabs): Likewise.
8618 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8619 earlier.
8620 * somread.c (som_symfile_read): Call install_minimal_symbols
8621 and do_cleanups earlier.
8622 * nlmread.c (nlm_symfile_read): Likewise.
8623 * mdebugread.c (elfmdebug_build_psymtabs): Call
8624 install_minimal_symbols and make appropriate cleanups.
8625
8626 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8627
8628 * solib.c (reload_shared_libraries): New function.
8629 (_initialize_solib): Add callbacks for ``set solib-search-path''
8630 and ``set solib-absolute-prefix''.
8631
8632 2003-02-20 David Carlton <carlton@math.stanford.edu>
8633
8634 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8635 expand comment.
8636 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8637 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8638 * ada-typeprint.c (ada_typedef_print): Ditto.
8639 * ax-gdb.c (gen_var_ref): Ditto.
8640 * breakpoint.c (print_one_breakpoint): Ditto.
8641 * buildsym.c (finish_block): Ditto.
8642 * c-valprint.c (c_val_print): Ditto.
8643 * expprint.c (print_subexp): Ditto.
8644 * findvar.c (locate_var_value): Ditto.
8645 * infcmd.c (jump_command): Ditto.
8646 * linespec.c (decode_line_2, decode_compound): Ditto.
8647 * maint.c (maintenance_translate_address): Ditto.
8648 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8649 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8650 Ditto.
8651 * p-valprint.c (pascal_val_print): Ditto.
8652 * stabsread.c (define_symbol): Ditto.
8653 * stack.c (print_frame, frame_info, print_block_frame_locals)
8654 (print_frame_arg_vars, return_command): Ditto.
8655 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8656 * symmisc.c (print_symbol): Ditto.
8657 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8658 (compare_search_syms, print_symbol_info, print_msymbol_info)
8659 (rbreak_command): Ditto.
8660 * tracepoint.c (tracepoints_info): Ditto.
8661 * typeprint.c (typedef_print): Ditto.
8662 * valops.c (value_of_variable, hand_function_call): Ditto.
8663 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8664 * ada-typeprint.c: Update Copyright.
8665 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8666 * tracepoint.c, cli/cli-cmds.c: Ditto.
8667
8668 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8669
8670 * frame.c (generic_unwind_get_saved_register): Make non-static.
8671 * frame.h (generic_unwind_get_saved_register): Declare.
8672 * mips-tdep.c (read_next_frame_reg): Fetch register from
8673 current regcache when frame is NULL.
8674 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8675 that must be NULL.
8676 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8677 instead of frame_register_unwind().
8678
8679 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8680
8681 * remote-sim.c (gdbsim_insert_breakpoint)
8682 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8683 code.
8684
8685 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8686
8687 * remote.c (_initialize_remote): Add commands "set/show remote
8688 hardware-watchpoint-limit" and "set/show remote
8689 hardware-breakpoint-limit".
8690 (remote_hw_watchpoint_limit): Initialize to -1.
8691 (remote_hw_breakpoint_limit): Ditto.
8692 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8693
8694 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8695
8696 * coff-pe-read.c: New file - support reading of minimal symbols from a
8697 portable executable using the export table.
8698 * coff-pe-read.h: New file.
8699 * coffread.c: Include coff-pe-read.h.
8700 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8701 debugging symbols found.
8702 * Makefile.in (SFILES): Add coff-pe-read.o.
8703 (coff_pe_read_h): Define.
8704 (COMMON_OBS): Add coff-pe-read.o.
8705 (coffread.o): Add coff_pe_read_h dependency.
8706 (coff-pe-read.o): New target.
8707
8708 2003-02-19 David Carlton <carlton@math.stanford.edu>
8709
8710 * Makefile.in (SFILES): Add block.c.
8711 (block_h): New.
8712 (COMMON_OBS): Add block.o.
8713 (block.o): New.
8714 (x86-64-tdep.o): Add $(block_h).
8715 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8716 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8717 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8718 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8719 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8720 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8721 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8722 * value.h: Add opaque declaration for struct block.
8723 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8724 * ada-lang.h: Ditto.
8725 * x86-64-tdep.c: #include "block.h"
8726 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8727 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8728 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8729 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8730 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8731 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8732 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8733 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8734 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8735 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8736 * symtab.c (block_function): Ditto.
8737 (contained_in): Ditto.
8738 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8739 block.h. Add opaque declaration for struct block.
8740 * symtab.h: Move block_function and contained_in declarations to
8741 block.h. Add opaque declarations for struct block, struct
8742 blockvector.
8743 (struct block): Move to block.h.
8744 (struct blockvector): Ditto.
8745 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8746 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8747 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8748 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8749 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8750 Ditto.
8751 * block.c: New file.
8752 * block.h: New file.
8753
8754 2003-02-19 Theodore A. Roth <troth@openavr.org>
8755
8756 * avr-tdep.c (avr_extract_return_value): Remove function.
8757 (avr_store_return_value): Remove function.
8758 (avr_extract_struct_value_address): Remove function.
8759 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8760
8761 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8762
8763 * rs6000-tdep.c: Include "gdb_assert.h".
8764 (registers_e500): Add "acc" and "spefscr".
8765 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8766 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8767 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8768 really is "r0".
8769 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8770
8771 2003-02-18 Keith Seitz <keiths@redhat.com>
8772
8773 * Makefile.in: Add gdbtk-interps.c.
8774
8775 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8776
8777 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8778 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8779
8780 2003-02-18 Andrew Cagney <cagney@redhat.com>
8781
8782 * symtab.h (struct objfile): Add opaque declaration.
8783
8784 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8785
8786 From Jim Ingham <jingham@apple.com>:
8787 * dbxread.c (process_one_symbol): Use last_function_start rather
8788 than function_start_offset to find the real beginning of the
8789 current function. The latter is just the text section offset on
8790 some systems, the former is always the real function start.
8791
8792 2003-02-17 Andrew Cagney <cagney@redhat.com>
8793
8794 * configure.in: Revert ${target} != ${host}.
8795
8796 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8797
8798 * configure.in (Makefile): Use the test ${target} != ${host},
8799 instead of the absence of the "nm.h" file, to determine of the
8800 configuration non-native.
8801 * configure: Regenerate.
8802
8803 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8804
8805 From Brian Ford <ford@vss.fsi.com>
8806
8807 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8808 conditionalize tui_active test.
8809 (lookup_cmd_1): Ditto.
8810
8811 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8812
8813 * configure.in: Add check for _etext.
8814 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8815 available.
8816 * config.in, configure: regenerated.
8817
8818 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8819
8820 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8821
8822 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8823
8824 * main.c (tui_version): Delete variable.
8825 (captured_main): When --tui, set interpreter_p to "tui" instead of
8826 enabling tui_version.
8827 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8828 tui_version.
8829 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8830 * cli/cli-cmds.c (disassemble_command): Ditto.
8831 * defs.h (tui_version): Delete declaration.
8832 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8833 (tui-interp.o): Add rules.
8834 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8835
8836 2003-02-14 Christopher Faylor <cgf@redhat.com>
8837
8838 * win32-nat.c (register_loaded_dll): Correctly set address range for
8839 just-loaded dll.
8840
8841 2003-02-12 Jason Molenda (jmolenda@apple.com)
8842
8843 * symmisc.c (print_objfile_statistics): Include information about
8844 the number of psymtabs and symtabs in each object file.
8845
8846 2003-02-13 Keith R Seitz <keiths@redhat.com>
8847
8848 * main.h (struct captured_main_args): Add interpreter_p.
8849 * main.c (captured_main): Initialize interpreter_p from context.
8850 * gdb.c (main): Set interpreter_p argument.
8851 * Makefile.in (gdb.o): Add dependency for interps.h.
8852
8853 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8854
8855 * event-top.c (cli_command_loop): Delete declaration.
8856 (_initialize_event_loop): Delete function setting event_loop_hook.
8857 * event-top.h (cli_command_loop): Declare. Update copyright.
8858 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8859 * interps.c (current_interp_command_loop): When event_loop_p, call
8860 cli_command_loop.
8861
8862 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8863
8864 * interps.h (interp_command_loop_ftype): Change return type to
8865 void.
8866
8867 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8868
8869 * x86-64-tdep.c (x86_64_extract_return_value)
8870 (x86_64_store_return_value): Use regcache instead of regbuf.
8871 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8872 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8873
8874 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8875
8876 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8877 * aclocal.m4: Regenerate.
8878 * configure: Regenerate.
8879
8880 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8881 TCL_LD_SEARCH_FLAGS.
8882
8883 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8884
8885 * dwarf2cfi.c: Reindented.
8886
8887 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8888
8889 * interps.c (clear_interpreter_hooks): Convert function definition
8890 to ISO C.
8891
8892 2003-02-07 David Carlton <carlton@math.stanford.edu>
8893
8894 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8895
8896 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8897
8898 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8899 (struct type): ...to here.
8900 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8901 field.
8902 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8903 (replace_type): Set length on all type variants for a given type.
8904
8905 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8906
8907 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8908 <sys/stat.h>.
8909 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8910
8911 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8912
8913 * Makefile.in (symm-nat.o): Update dependencies.
8914 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8915 (lynx-nat.o, ia64-linux-nat.): Ditto.
8916 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8917 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8918 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8919
8920 * Makefile.in (inflow_h): Define.
8921 (procfs.o, inflow.o, procfs.o): Update dependencies.
8922 * inftarg.c (child_stop): Delete extern declaration of
8923 inferior_process_group. Include "inflow.h".
8924 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8925 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8926 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8927 (our_process_group, inferior_process_group): Extern declarations.
8928
8929 * procfs.c: Include "gdb_assert.h".
8930
8931 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8932 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8933 * jv-typeprint.c (java_type_print_base): Ditto.
8934 * typeprint.c (typedef_print): Eliminate STREQ.
8935 * cli/cli-script.c (define_command, define_command): Ditto.
8936 * main.c (captured_main): Ditto.
8937 * values.c (lookup_internalvar): Ditto.
8938 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8939 within `if' conditional.
8940 * linespec.c (decode_line_2): Ditto.
8941 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8942 (bfd_openw_with_cleanup): Ditto.
8943
8944 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8945
8946 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8947 legacy_extract_return_value and store_return_value to
8948 legacy_return_value.
8949
8950 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8951
8952 * win32-nat.c (get_relocated_section_addrs): New function. Find
8953 section load addresses for symbol handling in relocated DLLs.
8954 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8955
8956 2003-02-05 Fred Fish <fnf@intrinsity.com>
8957
8958 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8959 '=' and '!='.
8960 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8961 with '&' and '=='.
8962 (angel_RDI_info): Ditto.
8963 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8964 with '&' and '!='.
8965 (threads_continue_all_with_signals): Ditto.
8966
8967 2003-02-05 Jim Ingham <jingham@apple.com>
8968 Keith Seitz <keiths@redhat.com>
8969 Elena Zannoni <ezannoni@redhat.com>
8970 Andrew Cagney <ac131313@redhat.com>
8971
8972 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8973 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8974 (SUBDIR_MI_OBS): Add "mi-interp.o".
8975 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8976 (SFILES): Add "interps.c".
8977 (COMMON_OBS): Add "interps.o".
8978 (interps_h, mi_main_h): Define.
8979 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8980 (mi-main.o, main.o, event-top.o): Update dependencies.
8981 * cli/cli-interp.c: New file.
8982 * interps.h, interps.c: New files.
8983 * top.c: (gdb_init): Don't install the default interpreter, handed
8984 by captured_main.
8985 * main.c: Include "interps.h".
8986 (interpreter_p): Note that it should malloc'ed.
8987 (captured_command_loop): Call current_interp_command_loop.
8988 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8989 xfree and xstrdup when updating interpreter_p. Install the
8990 default interpreter. Add hack to stop mi1's copyright notice
8991 being encoded.
8992 * event-top.h (gdb_setup_readline): Declare.
8993 (gdb_disable_readline): Declare.
8994 * event-top.c: Include "interps.h".
8995 (display_gdb_prompt): Call current_interp_display_prompt_p.
8996 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8997 gdb_stdlog, and gdb_stdtarg.
8998 (_initialize_event_loop): Don't call gdb_setup_readline.
8999 * cli-out.c (cli_out_set_stream): New function.
9000 * cli-out.h (cli_out_set_stream): Declare.
9001
9002 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9003
9004 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9005 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9006 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9007 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9008 config/i386/i386v42mp.mt: Removed.
9009
9010 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9011
9012 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9013 GDB_OSABI_SOLARIS.
9014
9015 2003-02-05 Michael Chastain <mec@shout.net>
9016
9017 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9018 2.12.1 and earlier versions.
9019
9020 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9021
9022 Remove orphaned hosts, targets and files.
9023 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9024 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9025 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9026 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9027 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9028 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9029 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9030 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9031 * config/sparc/tm-sp64sim.h: Delete.
9032 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9033 hosts.
9034 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9035 mips*-dec-mach3* targets.
9036
9037 2003-02-04 Michael Chastain <mec@shout.net>
9038
9039 * NEWS: Fix typo: sepcifying -> specifying.
9040
9041 2003-02-04 Michael Chastain <mec@shout.net>
9042
9043 * dwarfread.c: Add documentation on the state of dwarf-1,
9044 looking towards obsoletion.
9045
9046 2003-02-03 Michael Chastain <mec@shout.net>
9047
9048 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9049 gdb/testsuite/gdb.c++/pr-1023.exp.
9050
9051 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9052
9053 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9054 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9055
9056 * utils.c (init_page_info): Delete reference to MPW in comments.
9057 * main.c (captured_main): Delete #ifdef MPW.
9058
9059 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9060
9061 * NEWS: Note that the m32r-*-elf* is obsolete.
9062 * monitor.c (monitor_expect): Obsolete reference to m32r.
9063 * configure.tgt: Mark m32r-*-elf* as obsolete.
9064 * MAINTAINERS: Mark m32k as obsolete.
9065 * m32r-rom.c: Obsolete file.
9066 * config/m32r/m32r.mt: Obsolete file.
9067 * config/m32r/tm-m32r.h: Obsolete file.
9068 * m32r-stub.c: Obsolete file.
9069 * m32r-tdep.c: Obsolete file.
9070
9071 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9072
9073 * NEWS: Mention that the z8k-zilog-none is obsolete.
9074 * MAINTAINERS: Mark z8k as obsolete.
9075 * configure.tgt: Obsolete the z8k-*-coff* target.
9076 * config/z8k/z8k.mt: Obsolete file.
9077 * config/z8k/tm-z8k.h: Obsolete file.
9078 * z8k-tdep.c: Obsolete file.
9079
9080 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9081
9082 * NEWS: Mention that the mn10200-elf is obsolete.
9083 * configure.tgt: Obsolete mn10200-*-* target.
9084 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9085 mention that the mn10200 is obsolete.
9086 * breakpoint.h: Ditto.
9087 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9088 * config/mn10200/mn10200.mt: Obsolete file.
9089 * config/mn10200/tm-mn10200.h: Obsolete file.
9090 * mn10200-tdep.c: Obsolete file.
9091
9092 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9093
9094 * MAINTAINERS: Mark h8500 as obsolete.
9095 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9096 * findvar.c (value_from_register): Ditto.
9097 * h8500-tdep.c: Mark file as obsolete.
9098 * config/h8500/h8500.mt: Ditto.
9099 * config/h8500/tm-h8500.h: Ditto.
9100 * NEWS: Mention that h8500 is obsolete.
9101
9102 2003-02-04 David Carlton <carlton@math.stanford.edu>
9103
9104 * objfiles.c (allocate_objfile): Always set name. Add comment at
9105 start of function.
9106 * jv-lang.c (get_dynamics_objfile): Add comment.
9107
9108 2003-02-04 David Carlton <carlton@math.stanford.edu>
9109
9110 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9111 * printcmd.c (build_address_symbolic): Replace uses of
9112 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9113 SYMBOL_NAME, and asm_demangle.
9114 Update copyright.
9115
9116 2003-02-04 David Carlton <carlton@math.stanford.edu>
9117
9118 * linespec.c (decode_compound): Extract code into
9119 lookup_prefix_sym.
9120 (lookup_prefix_sym): New function.
9121
9122 2003-02-04 David Carlton <carlton@math.stanford.edu>
9123
9124 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9125 FLOAT_COERCION_BADNESS.
9126 * gdbtypes.c (rank_one_type): Replace all uses of
9127 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9128
9129 2003-02-04 Jim Blandy <jimb@redhat.com>
9130
9131 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9132 section, let dwarf_macinfo_section point to it, not
9133 dwarf_loc_section.
9134
9135 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9136
9137 Pointed out by Anton Blanchard <anton@samba.org>.
9138 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9139 (ppc_linux_at_sigtramp_return_path): Use it.
9140
9141 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9142
9143 * defs.h (streq): Add prototype.
9144 * utils.c (streq): New function.
9145
9146 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9147 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9148 * mdebugread.c (new_symbol): Likewise.
9149 * stabsread.c (define_symbol): Likewise.
9150 * coffread.c (process_coff_symbol): Likewise.
9151 * dwarfread.c (new_symbol): Likewise.
9152
9153 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9154 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9155 here.
9156 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9157 SYMBOL_INIT_DEMANGLED_NAME.
9158 * objfiles.c: Include "hashtab.h".
9159 (allocate_objfile): Call htab_set_functions_ex for the
9160 demangled_names_hash.
9161 (free_objfile): Call htab_delete for the demangled_names_hash.
9162 * objfiles.h (struct htab): Add declaration.
9163 (struct objfile): Add demangled_names_hash.
9164 * symfile.c: Include "hashtab.h".
9165 (reread_symbols): Call htab_delete for the demangled_names_hash.
9166 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9167 SYMBOL_NAME in the bcache.
9168 * symtab.c: Include "hashtab.h". Update comments.
9169 (create_demangled_names_hash, symbol_set_names): New functions.
9170 (symbol_find_demangled_name): New function, broken out from
9171 symbol_init_demangled_names.
9172 (symbol_init_demangled_names): Use it.
9173 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9174 (SYMBOL_SET_NAMES): New macro.
9175 (symbol_set_names): Add prototype.
9176
9177 2003-02-03 Jim Blandy <jimb@redhat.com>
9178
9179 Use a single, consistent representation for an empty minimal
9180 symbol table in an objfile.
9181 * objfiles.c (terminate_minimal_symbol_table): New function.
9182 (allocate_objfile): Call it.
9183 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9184 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9185 non-NULL.
9186 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9187 objfile has minimal symbols, compare minimal_symbol_count to zero,
9188 instead of comparing msymbols with NULL.
9189 * objfiles.c (have_minimal_symbols): Same.
9190 * solib-sunos.c (solib_add_common_symbols): Call
9191 terminate_minimal_symbol_table.
9192 * symfile.c (reread_symbols): Same.
9193
9194 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9195
9196 * s390-tdep.c (s390_address_class_type_flags)
9197 (s390_address_class_type_flags_to_name)
9198 (s390_address_class_name_to_type_flags): New functions.
9199 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9200 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9201
9202 2003-02-03 Michael Snyder <msnyder@redhat.com>
9203
9204 * arm-tdep.c: Fix spell-o in comment.
9205
9206 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9207
9208 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9209 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9210 error messages to contain BFD filename.
9211
9212 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9213
9214 Fix PR gdb/742 gdb/743 gdb/877
9215 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9216 (do_mixed_source_and_assembly): Use
9217 make_cleanup_ui_out_tuple_begin_end and
9218 make_cleanup_ui_out_tuple_begin_end.
9219 (do_mixed_source_and_assembly): Ditto.
9220 * thread.c (do_captured_list_thread_ids): Ditto.
9221 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9222 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9223 ui_out_tuple_end): Delete prototypes.
9224 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9225 ui_out_list_end, ui_out_tuple_end): Delete.
9226
9227 From Kevin Buettner <kevinb@redhat.com>:
9228 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9229 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9230 (do_cleanup_table_end): New functions.
9231 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9232 Use cleanups to invoke_ui_out_tuple_end().
9233 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9234 * cli/cli-setshow.c (cmd_show_list): Use
9235 make_cleanup_ui_out_tuple_begin_end.
9236
9237 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9238
9239 * frame.c (frame_unwind_register): New function.
9240 (frame_unwind_unsigned_register): Use.
9241 (frame_unwind_signed_register): Use.
9242 (frame_read_register): New function.
9243 * frame.h (frame_unwind_register): Declare.
9244 (frame_read_register): Declare.
9245
9246 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9247 and frame_unwind_register instead of read_memory, write_register
9248 and deprecated_write_register_bytes.
9249
9250 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9251
9252 * frame.h: Note that namelen can be negative.
9253 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9254 NAME's length.
9255
9256 * NEWS: Mention that the d10v's `regs' command is deprecated.
9257 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9258 (d10v_print_registers_info): New function.
9259 (show_regs): Call d10v_print_registers_info.
9260 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9261
9262 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9263
9264 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9265 lost in the previous patch.
9266
9267 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9268
9269 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9270 * stack.c (print_frame_info_base): Output complete FRAME tuple
9271 for synthesized frames.
9272
9273 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9274
9275 * mips-nat.c (zerobuf): Delete.
9276 (fetch_inferior_registers): Alloc local zerobuf.
9277 (fetch_core_registers): Alloc local zerobuf.
9278 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9279 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9280 * thread-db.c (thread_db_store_registers): Ditto.
9281 * sh-tdep.c (sh_do_register): Ditto.
9282 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9283 * remote-sim.c (gdbsim_store_register): Ditto.
9284 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9285 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9286 * monitor.c (monitor_supply_register): Ditto.
9287 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9288 * mips-nat.c (fetch_inferior_registers): Ditto.
9289 * m68klinux-nat.c (fetch_register): Ditto.
9290 * lynx-nat.c (fetch_inferior_registers): Ditto.
9291 (fetch_inferior_registers): Ditto.
9292 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9293 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9294 (hpux_thread_store_registers): Ditto.
9295 * hppah-nat.c (fetch_register): Ditto.
9296 * hppab-nat.c (fetch_register): Ditto.
9297 * hppa-tdep.c (pa_register_look_aside): Ditto.
9298 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9299 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9300
9301 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9302
9303 * gdbarch.sh: Explictly specify all method levels. When a
9304 variable with an empty level, provide a non-multi-arch default.
9305 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9306 * gdbarch.h: Re-generate.
9307 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9308 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9309
9310 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9311
9312 * defs.h (host_pointer_to_address): Delete declaration.
9313 (address_to_host_pointer): Delete declaration.
9314 * utils.c (host_pointer_to_address): Delete function.
9315 (address_to_host_pointer): Delete function.
9316 * procfs.c (procfs_address_to_host_pointer): New function.
9317 * procfs.c (proc_set_watchpoint): Use.
9318 (procfs_can_use_hw_breakpoint): Update comments.
9319 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9320 (som_solib_add): Use.
9321 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9322 * hppa-tdep.c (unwind_command): Use.
9323
9324 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9325
9326 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9327 strlen d_name.
9328
9329 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9330 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9331 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9332 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9333 (define_symbol): Update.
9334 * symfile.c (generic_load): Remove references to nindy.
9335 * symtab.c: Remove references to nindy.
9336
9337 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9338
9339 * infcmd.c (print_float_info): Delete code conditional on
9340 FLOAT_INFO.
9341 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9342 * config/m68k/nm-apollo68b.h: Ditto.
9343 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9344 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9345 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9346
9347 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9348
9349 * config/i386/tm-i386os9k.h: Removed.
9350
9351 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9352 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9353 they're identical to i[3456]86-*-sysv* now.
9354 * config/i386/i386v32.mh: Removed.
9355 * config/i386/xm-i386v32.h: Removed.
9356 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9357
9358 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9359
9360 * config/i386/i386dgux.mh: Removed.
9361 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9362
9363 * configure.in: Fix typo.
9364 * configure: Regenerated.
9365
9366 2003-01-31 David Carlton <carlton@math.stanford.edu>
9367
9368 * dwarf2read.c (dwarf2_locate_sections): Set
9369 dwarf_ranges_section.
9370
9371 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9372
9373 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9374 * utils.c: Update comments documenting legitimate uses of PTR.
9375
9376 * utils.c: Re-indent.
9377
9378 * config/djgpp/fnchange.lst: Delete nindy files.
9379 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9380 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9381 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9382 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9383 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9384 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9385 * Makefile.in (init.c): Remove nindy references.
9386 (saber_gdb): Delete rule.
9387 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9388 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9389 and a68v-nat.c.
9390 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9391 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9392 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9393 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9394 nindy-share/stop.h.
9395 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9396 * saber.suppress: Delete file.
9397
9398 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9399
9400 * dbxread.c (stabs_data): New static variable.
9401 (fill_symbuf): Support an in-memory buffer for stabs data.
9402 (stabs_seek): New function.
9403 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9404 (read_ofile_symtab): Use stabs_seek.
9405 (elfstab_build_psymtabs): Take an asection* instead of
9406 an offset and size. Relocate the stabs data if necessary.
9407 Save the section* for dbx_psymtab_to_symtab.
9408 * dwarf2read.c: Add section variables for each debug section.
9409 (dwarf2_locate_sections): Fill them in.
9410 (dwarf2_read_section): Take an asection* argument.
9411 Relocate the section contents if necessary.
9412 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9413 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9414 it to dwarf2_read_section.
9415 (dwarf2_build_frame_info): Update callers.
9416 * elfread.c (elf_symfile_read): Update call to
9417 elfstab_build_psymtabs.
9418 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9419 (DBX_STAB_SECTION): New macro.
9420 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9421 * symfile.c (symfile_dummy_outputs): New function.
9422 (symfile_relocate_debug_section): New function.
9423 * symfile.h (symfile_relocate_debug_section): Add prototype.
9424
9425 2003-01-31 Richard Henderson <rth@redhat.com>
9426
9427 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9428 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9429 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9430 * alpha-tdep.c (alpha_register_name): Add "unique".
9431 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9432 (ALPHA_UNIQUE_REGNUM): New.
9433 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9434
9435 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9436
9437 * README: Remove reference to Ericsson 1800 monitor.
9438 * Makefile.in (remote-es.o): Delete rule.
9439 (ALLDEPFILES): Delete remote-es.c.
9440 * remote-es.c: Delete file.
9441 * config/m68k/es1800.mt: Delete file.
9442 * config/djgpp/fnchange.lst: Update.
9443 * configure.tgt: Delete m68*-ericsson-* target.
9444
9445 2003-01-31 Adam Fedor <fedor@gnu.org>
9446
9447 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9448 Remove duplicate/shadowing variable of same name.
9449
9450 2003-01-30 Jim Blandy <jimb@redhat.com>
9451
9452 * symfile.c (find_separate_debug_file): Assert that the objfile's
9453 directory name we compute ends with a slash, and then assume that
9454 that's so everywhere we use it.
9455
9456 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9457
9458 * valops.c (value_assign): Flush frame cache after stores to memory
9459 also.
9460
9461 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9462
9463 * Makefile.in (mon960-rom.o): Delete rule.
9464 * mon960-rom.c: Delete file.
9465
9466 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9467
9468 * d10v-tdep.c: Include "frame-unwind.h".
9469 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9470 list.
9471 (next_addr, uses_frame): Delete.
9472 (struct d10v_unwind_cache): Define.
9473 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9474 Use info instead of next_addr and uses_frame globals.
9475 (d10v_frame_init_saved_regs): Delete function.
9476 (d10v_init_extra_frame_info): Delete function.
9477 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9478 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9479 init_frame_pc or frame_saved_pc.
9480 (d10v_pop_frame): Delete function.
9481 (do_d10v_pop_frame): Delete function.
9482 (d10v_frame_chain): Delete function.
9483 (d10v_frame_chain_valid): Delete function.
9484 (d10v_frame_pc_unwind): New function.
9485 (d10v_frame_id_unwind): New function.
9486 (saved_regs_unwinder): New function.
9487 (d10v_frame_register_unwind): New function.
9488 (d10v_frame_pop): New function.
9489 (d10v_frame_unwind): New variable.
9490 (d10v_frame_p): New function.
9491 (d10v_frame_saved_pc): Delete function.
9492 * Makefile.in (d10v-tdep.o): Update dependencies.
9493
9494 2003-01-30 J. Brobecker <brobecker@gnat.com>
9495
9496 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9497 causing some regressions due to a change in the default value
9498 for this macro.
9499
9500 2003-01-29 Richard Henderson <rth@redhat.com>
9501 Elena Zannoni <ezannoni@redhat.com>
9502 Daniel Jacobowitz <drow@mvista.com>
9503
9504 Fix PR gdb/961.
9505 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9506 variables.
9507 (RANGES_SECTION): New.
9508 (dwarf_ranges_buffer): New variable.
9509 (struct comp_unit_head): Add member "die".
9510 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9511 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9512 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9513 (dwarf2_locate_sections): Likewise.
9514 (dwarf2_build_psymtabs): Read .debug_ranges.
9515 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9516 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9517 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9518 Look for DW_AT_ranges and return the bounding box.
9519
9520 2003-01-29 Brian Ford <ford@vss.fsi.com>
9521
9522 * win32-nat.c (cygwin_pid): Removed as unused.
9523 (child_attach): Try fall back to Cygwin pid.
9524
9525 2003-01-29 Jim Blandy <jimb@redhat.com>
9526
9527 * objfiles.h (struct objfile): Doc fix.
9528
9529 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9530
9531 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9532 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9533 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9534 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9535 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9536 (FRAME_SAVED_PC): Change to a function with predicate.
9537 * gdbarch.h, gdbarch.c: Re-generate.
9538
9539 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9540
9541 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9542
9543 * complaints.c (complain): Delete function.
9544 * complaints.h (struct deprecated_complaint): Delete definition.
9545 (complain): Delete declaration.
9546
9547 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9548
9549 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9550 dummy frames.
9551
9552 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9553
9554 * sentinel-frame.h, sentinel-frame.c: New files.
9555 * Makefile.in (frame.o): Update dependencies.
9556 (SFILES): Add sentinel-frame.c.
9557 (sentinel_frame_h): Define.
9558 (COMMON_OBS): Add sentinel-frame.o.
9559 (sentinel-frame.o): Specify dependencies.
9560 * frame.c: Include "sentinel-frame.h".
9561 (frame_register_unwind): Rewrite assuming that there is always a a
9562 ->next frame.
9563 (frame_register, generic_unwind_get_saved_register): Ditto.
9564 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9565 (create_sentinel_frame, unwind_to_current_frame): New functions.
9566 (get_current_frame): Rewrite using create_sentinel_frame and
9567 unwind_to_current_frame. When possible, always create a frame.
9568 (create_new_frame): Set next to the sentinel frame.
9569 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9570 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9571 ID cache when necessary.
9572 (frame_saved_regs_id_unwind): Use frame_relative_level.
9573 (deprecated_generic_get_saved_register): Use frame_relative_level,
9574 get_frame_saved_regs, get_frame_pc, get_frame_base and
9575 get_next_frame.
9576 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9577 frame_register.
9578
9579 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9580
9581 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9582
9583 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9586 (maintenance_set_profile_cmd): Use error () instead of warning ().
9587
9588 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9589
9590 * configure.in: Check that -pg works if using --enable-profiling.
9591 Check for monstartup and _mcleanup regardless of --enable-profiling.
9592 * maint.c: Check for monstartup and _mcleanup before using them.
9593 * config.in: Regenerated.
9594 * configure: Regenerated.
9595
9596 2003-01-24 Nick Clifton <nickc@redhat.com>
9597
9598 * Add sh2e support:
9599
9600 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9601
9602 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9603 (sh2e_show_regs): New.
9604 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9605 * config/sh/tm-sh.h: Added sh2e to comments.
9606
9607 2003-01-23 Jim Blandy <jimb@redhat.com>
9608
9609 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9610 symbols found)" message here; we haven't checked for a separate
9611 debug info file yet, so we don't know yet.
9612 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9613 we've looked everywhere. Also, there's no need to print a special
9614 message when we're loading the separate debug info file: the one
9615 symbol_file_add prints is fine.
9616
9617 2003-01-23 Alexander Larsson <alexl@redhat.com>
9618 Jim Blandy <jimb@redhat.com>
9619
9620 Add support for executables whose debug info has been separated
9621 out into a separate file, leaving only a link behind.
9622 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9623 and separate_debug_objfile_backlink.
9624 (put_objfile_before): New declaration.
9625 * symfile.c: #include "filenames.h".
9626 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9627 debug info in a separate file, read that, too. Save the addrs
9628 argument, so we can use it again to read the separated debug info;
9629 syms_from_objfile modifies the table we pass it.
9630 (reread_symbols): After re-reading an objfile, call
9631 reread_separate_symbols to refresh its separate debug info
9632 objfile, if it has one.
9633 (reread_separate_symbols, find_separate_debug_file,
9634 get_debug_link_info, separate_debug_file_exists): New functions.
9635 (debug_file_directory): New global var.
9636 (_initialize_symfile): Initialize debug_file_directory, and
9637 provide the new `set debug-file-directory' command to let the user
9638 change it.
9639 * objfiles.c (free_objfile): If this objfile has its debug info in
9640 a separate objfile, free that one too. If this is itself a
9641 separate debug info objfile, clear our parent's backlink.
9642 (put_objfile_before): New function.
9643 * utils.c (gnu_debuglink_crc32): New function.
9644 * defs.h (gnu_debuglink_crc32): New declaration.
9645 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9646 * configure.in: Handle --with-separate-debug-dir config option.
9647 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9648 * acconfig.h (DEBUGDIR): New macro.
9649 * configure, aclocal.m4, config.in: Regenerated.
9650
9651 2003-01-22 Jim Blandy <jimb@redhat.com>
9652
9653 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9654 like the old symbol_file_add, but taking new arguments: you can
9655 now pass in either a `struct section_addr_info' list to say where
9656 each section is loaded, or a `struct section_offsets' table. Pass
9657 these new arguments through to syms_from_objfile as appropriate.
9658 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9659 with the appropriate quiescent values for the new arguments.
9660
9661 * symfile.c: #include "gdb_assert.h".
9662 (syms_from_objfile): Add the ability to pass in a section offset
9663 table directly, as an alternative to the section_addr_info table.
9664 Document arguments better.
9665 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9666 * symfile.h (syms_from_objfile): Update declaration.
9667 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9668 syms_from_objfile.
9669 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9670
9671 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9672
9673 Original patch by Tom Tromey <tromey@cygnus.com> and
9674 Jason Molenda <jmolenda@apple.com>.
9675 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9676 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9677 * NEWS: Mention profiling.
9678 * configure.in (--enable-gdbtk): Fix typo.
9679 (--enable-profiling): New. Set PROFILE_CFLAGS.
9680 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9681 Fill in function.
9682 (profiling_state): New variable.
9683 (mcleanup_wrapper): New function.
9684 (_initialize_maint): Remove NOTYET, fix call to
9685 add_setshow_boolean_cmd for "maint set profile".
9686 * configure: Regenerated.
9687
9688 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9689
9690 * Makefile.in (install-gdbtk): Install PNG images too.
9691
9692 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9693
9694 * exec.c (text_start): Delete global variable.
9695 (exec_file_attach): Make text_start local to the function.
9696 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9697 * valops.c (hand_function_call): Delete code that handles
9698 BEFORE_TEXT_END and AFTER_TEXT_END.
9699 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9700 of CALL_DUMMY_LOCATION.
9701 * gdbarch.c: Regenerate.
9702 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9703 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9704 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9705 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9706 (text_end): Delete extern declaration.
9707
9708 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9709
9710 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9711 * blockframe.c (backtrace_below_main): Move to "frame.c".
9712 (frame_chain_valid): Delete check for backtrace_below_main.
9713 (_initialize_blockframe): Delete initialization, move ``set
9714 backtrace-below-main'' command to "frame.c".
9715 (do_flush_frames_sfunc): Delete function.
9716 * frame.c: Include "command.h" and "gdbcmd.h".
9717 (frame_type_from_pc): New function.
9718 (create_new_frame): Use frame_type_from_pc.
9719 (legacy_get_prev_frame): New function.
9720 (get_prev_frame): Rewrite. When an old style frame, call
9721 legacy_get_prev_frame. Otherwize, unwind the PC first.
9722 (_initialize_frame): Add ``set backtrace-below-main'' command.
9723 * Makefile.in (frame.o): Update dependencies.
9724
9725 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9726
9727 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9728 DEPRECATED_REGISTERS_INFO.
9729
9730 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9731
9732 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9733 Maintainers'. Update `Various Maintainers'.
9734
9735 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9736
9737 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9738 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9739 Suppress actual parameters when `-'.
9740 * gdbarch.h, gdbarch.c: Regenerate.
9741
9742 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9743
9744 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9745 code handling dummy frames.
9746
9747 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9748
9749 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9750 (struct frame_unwind): Add field pop.
9751 * frame.h (frame_pop): Declare.
9752 * frame.c (frame_saved_regs_pop): New function.
9753 (trad_frame_unwinder): Add frame_saved_regs_pop.
9754 (frame_pop): New function.
9755 * dummy-frame.c (dummy_frame_pop): New function.
9756 (discard_innermost_dummy): New function.
9757 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9758 (dummy_frame_unwind): Add dummy_frame_pop.
9759 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9760 * valops.c (hand_function_call): Ditto.
9761 * stack.c (return_command): Ditto.
9762
9763 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9764
9765 * cris-tdep.c: Fix function declaration indentation.
9766 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9767 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9768 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9769 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9770 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9771 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9772
9773 2003-01-18 Michael Chastain <mec@shout.net>
9774
9775 * README (Unpacking and Installation -- quick overview):
9776 Warn against ".../gdb-5.3/gdb/configure".
9777
9778 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9779
9780 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9781 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9782 (struct frame_unwind): Declare opaque.
9783 (dummy_frame_p): Declare function.
9784 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9785 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9786 * dummy-frame.c: Include "frame-unwind.h".
9787 (dummy_frame_p): New function.
9788 (dummy_frame_unwind): New variable.
9789 * frame.c: Include "frame-unwind.h".
9790 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9791 to use the new unwind field.
9792 (set_unwind_by_pc): Delete function.
9793 (create_new_frame, get_prev_frame): Set unwind field using
9794 frame_unwind_find_by_pc.
9795 (trad_frame_unwind, trad_frame_unwinder): New variables.
9796 * frame.h (trad_frame_unwind): Declare variable.
9797 (frame_id_unwind_ftype): Delete declaration.
9798 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9799 (struct frame_unwind): Declare opaque.
9800 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9801 register_unwind with a single unwind pointer.
9802 * frame-unwind.h, frame-unwind.c: New files.
9803 * Makefile.in (SFILES): Add frame-unwind.c.
9804 (frame_unwind_h): Define.
9805 (COMMON_OBS): Add frame-unwind.o.
9806 (frame-unwind.o): Specify dependencies.
9807 (frame.o, dummy-frame.o): Update dependencies.
9808
9809 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9810
9811 * ada-valprint.c: Eliminate PTR.
9812 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9813 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9814 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9815 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9816 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9817 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9818 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9819
9820 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9821
9822 * main.c (captured_main): Don't use PTR.
9823 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9824 * gdbtypes.c (lookup_primitive_typename): Ditto.
9825 (lookup_struct_elt_type): Ditto.
9826 * f-valprint.c (info_common_command): Ditto.
9827 (list_all_visible_commons): Ditto.
9828 * jv-typeprint.c (java_type_print_base): Ditto.
9829
9830 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9831 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9832 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9833 i386-interix-nat.c and i386-interix-tdep.c. Rename
9834 m68klinux-nat.c and m68klinux-tdep.c. Rename
9835 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9836 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9837 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9838 * main.c (captured_main): Use xfree, not free.
9839
9840 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9841
9842 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9843 ID back using a parameter.
9844 * frame.c (frame_id_unwind): Update call.
9845 (frame_saved_regs_id_unwind): Update.
9846 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9847 * dummy-frame.h (struct frame_id): Add opaque declaration.
9848 (dummy_frame_id_unwind): Update declaration.
9849
9850 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9851
9852 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9853
9854 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9855
9856 * MAINTAINERS (Stephen P. Smith): Updated email address.
9857
9858 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9859
9860 Fix PR gdb/898
9861 * breakpoint.c (until_break_command): Add new argument. Use it to
9862 decide whether to stop only at the current frame or not.
9863 * breakpoint.h (until_break_command): Update prototype.
9864 * infcmd.c (until_command): Add new argument to until_break_command
9865 call.
9866 (advance_command): New function.
9867 (_initialize_infcmd): Update help string for 'until' command.
9868 Add new 'advance' command.
9869
9870 2003-01-14 David Carlton <carlton@math.stanford.edu>
9871
9872 * linespec.c (decode_line_1): Normalize comments.
9873 (set_flags): Ditto.
9874 (locate_first_half): Ditto.
9875 (decode_compound): Ditto.
9876 (symtab_from_filename): Ditto.
9877 (decode_all_digits): Ditto.
9878 (decode_dollar): Ditto.
9879 (find_methods): Ditto.
9880 (find_toplevel_char): Ditto.
9881
9882 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9883
9884 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9885 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9886 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9887 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9888 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9889 * language.c, language.h, m32r-tdep.c: Update copyright.
9890 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9891 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9892 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9893 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9894 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9895 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9896
9897 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9898
9899 * stabsread.h (process_later, resolve_cfront_continuation):
9900 Obsolete.
9901 Update copyright years.
9902 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9903 Update copyright year.
9904 * dbxread.c(struct cont_elem): Obsolete.
9905 (process_later, process_now): Obsolete functions.
9906 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9907 Update copyright year.
9908 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9909 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9910 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9911 (parse_partial_symbols): Obsolete cfront support.
9912 * stabsread.c
9913 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9914 macros.
9915 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9916 read_cfront_baseclasses, read_cfront_member_functions,
9917 resolve_cfront_continuation,read_cfront_static_fields,
9918 copy_cfront_struct_fields): Obsolete functions.
9919 (define_symbol, read_one_struct_field): Obsolete cfront support.
9920 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9921 Update Copyright year.
9922
9923 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9924
9925 * stack.c (print_frame_info, print_stack_frame_base_stub,
9926 print_stack_frame_base, show_and_print_stack_frame_stub,
9927 show_and_print_stack_frame, print_only_stack_frame_stub,
9928 print_only_stack_frame): Delete functions.
9929 (print_stack_frame_stub): Call print_frame_info instead of
9930 print_frame_info_base.
9931 (print_frame_info_base): Rename to print_frame_info.
9932 (backtrace_command_1): Call print_frame_info, instead of
9933 print_frame_info_base.
9934 (current_frame_command): Call print_stack_frame, instead of
9935 print_only_stack_frame.
9936 (frame_command): Call print_stack_frame, instead of
9937 show_and_print_stack_frame.
9938 (up_command): Ditto.
9939 (down_command): Ditto.
9940 * frame.h (print_only_stack_frame): Delete prototype.
9941 * infrun.c (normal_stop): Call print_stack_frame, instead of
9942 show_and_print_stack_frame.
9943 * thread.c (info_threads_command): Call print_stack_frame, instead
9944 of print_only_stack_frame.
9945
9946 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9947
9948 * README (Graphical interface to GDB): Update URL. Point at
9949 gdb/links/.
9950
9951 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9952 version match.
9953
9954 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9955
9956 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9957 lines.
9958
9959 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9960
9961 * thread-db.c (attach_thread): Prototype.
9962 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9963 thread information (ti), and valid flags (th_valid, ti_valid).
9964 (attach_thread): Move target_pid_to_str call to after the thread
9965 is added to GDB's list. Initialize the cache.
9966 (thread_get_info_callback, thread_db_map_id2thr)
9967 (thread_db_get_info): New functions.
9968 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9969 (thread_db_store_registers, thread_db_thread_alive)
9970 (thread_db_get_thread_local_address): Use them.
9971 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9972 of calling error() for threads in unknown state.
9973
9974 (clear_lwpid_callback): New function.
9975 (thread_db_resume): Use it to clear the cache.
9976
9977 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9978
9979 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9980 (resume_callback): Remove dead code.
9981
9982 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9983
9984 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9985 predicate.
9986 * gdbarch.h, gdbarch.c: Regenerate.
9987 * stack.c (frame_info): Only initialize the saved registers when
9988 FRAME_INIT_SAVED_REGS_P.
9989 * frame.c (frame_saved_regs_register_unwind): Assert
9990 FRAME_INIT_SAVED_REGS_P.
9991 (deprecated_generic_get_saved_register): Ditto.
9992
9993 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9994
9995 * source.c (openp): Squelch warning about "filename".
9996
9997 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9998
9999 * source.c (openp): If the file does not exist don't necessarily
10000 search the path.
10001
10002 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10003
10004 Fix PR gdb/872.
10005 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10006 (integer_types_same_name_p): New function.
10007 (rank_one_type): Use it.
10008 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10009
10010 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10011
10012 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10013 variables.
10014 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10015 * configure.in: Add --with-sysroot.
10016 * configure: Regenerated.
10017 * main.c (gdb_sysroot): New variable.
10018 (captured_main): Initialize gdb_sysroot.
10019 * defs.h (gdb_sysroot): New extern declaration.
10020 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10021
10022 2003-01-12 Michael Chastain <mec@shout.net>
10023
10024 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10025
10026 2003-01-12 Michael Chastain <mec@shout.net>
10027
10028 * top.c (print_gdb_version): Bump copyright year to 2003.
10029
10030 2003-01-12 David Carlton <carlton@bactrian.org>
10031
10032 * linespec.c (symtab_from_filename): Rename variable 's' to
10033 'file_symtab'.
10034
10035 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10036
10037 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10038 dummy frame.
10039 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10040
10041 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10042
10043 * d10v-tdep.c: Include "gdb_assert.h".
10044 (d10v_store_return_value): Rewrite to match current interface.
10045 (d10v_extract_struct_value_address): Ditto.
10046 (d10v_extract_return_value): Ditto.
10047 (d10v_gdbarch_init): Set store_restore_value,
10048 extract_struct_value_address and extract_return_value.
10049
10050 2003-01-12 J. Brobecker <brobecker@gnat.com>
10051
10052 * hpread.c (set_namestring): New procedure replacing the
10053 SET_NAMESTRING macro.
10054 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10055 by calls to set_namestring.
10056
10057 2003-01-11 J. Brobecker <brobecker@gnat.com>
10058
10059 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10060 a compilation warning.
10061 (hpread_process_one_debug_symbol): Likewise.
10062
10063 2003-01-10 David Carlton <carlton@math.stanford.edu>
10064
10065 * linespec.c (decode_line_1): Rename variable 's' to
10066 'file_symtab'.
10067 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10068 (decode_dollar): Ditto.
10069 (decode_variable): Ditto.
10070 (symbol_found): Ditto.
10071
10072 2003-01-09 Michael Chastain <mec@shout.net>
10073
10074 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10075
10076 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10077
10078 * win32-nat.c (set_process_privilege): New function.
10079 (child_attach): Call set_process_privilege() to enable the
10080 SE_DEBUG_NAME user privilege if available in process token.
10081
10082 2003-01-10 J. Brobecker <brobecker@gnat.com>
10083
10084 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10085 compilation error in the previous revision.
10086
10087 2003-01-09 David Carlton <carlton@math.stanford.edu>
10088
10089 * linespec.c: Update copyright.
10090
10091 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10092
10093 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10094 than inferior_ptid.
10095 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10096
10097 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10098
10099 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10100 Update comments.
10101 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10102 (frame_saved_regs_zalloc): Update.
10103 (frame_saved_regs_register_unwind): Update.
10104 (create_new_frame): Update.
10105 (get_prev_frame): Update.
10106 (frame_extra_info_zalloc): Update.
10107 (deprecated_get_frame_saved_regs): Update.
10108 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10109 * cris-tdep.c: Update comment.
10110
10111 * somsolib.h: Fix function indentation.
10112 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10113 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10114 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10115 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10116 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10117
10118 * infrun.c (follow_fork): Use ISO C definition.
10119 * expprint.c (print_subexp): Use xfree instead of free.
10120 * charset.c: Include "gdb_string.h" instead of <string.h>.
10121 (register_iconv_charsets): Use ISO C definition.
10122 (host_charset, target_charset): Ditto.
10123 * Makefile.in (charset.o): Update dependencies.
10124 (mi-cmd-env.o): Update dependencies.
10125
10126 2003-01-08 Andrew Cagney <cagney@redhat.com>
10127
10128 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10129 get_frame_base.
10130
10131 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10132
10133 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10134 build directories. Save edited gdb output in Mbuild.log. If a
10135 build fails, remove any final GDB executable.
10136
10137 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10138
10139 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10140 replacing hex constants with function names and stripping leading
10141 file name directory prefixes.
10142
10143 2003-01-08 Andrew Cagney <cagney@redhat.com>
10144
10145 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10146 get_frame_base.
10147
10148 2003-01-08 David Carlton <carlton@math.stanford.edu>
10149
10150 * linespec.c (decode_line_1): Move code into decode_variable.
10151 (decode_variable): New function.
10152
10153 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10154
10155 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10156
10157 2003-01-08 Andrew Cagney <cagney@redhat.com>
10158
10159 * cris-tdep.c (cris_frame_init_saved_regs): Use
10160 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10161 saved_regs buffer.
10162 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10163 (sh64_nofp_frame_init_saved_regs): Ditto.
10164 (sh_fp_frame_init_saved_regs): Ditto.
10165 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10166 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10167 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10168 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10169
10170 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10171
10172 * minsyms.c (lookup_minimal_symbol): Update comment.
10173 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10174 (lookup_minimal_symbol_solib_trampoline): Likewise.
10175
10176 2003-01-08 Andrew Cagney <cagney@redhat.com>
10177
10178 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10179 frame_relative_level.
10180
10181 * alpha-tdep.c: Use get_frame_extra_info.
10182 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10183 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10184 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10185 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10186
10187 * alpha-tdep.c: Use get_next_frame.
10188 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10189 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10190 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10191 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10192 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10193 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10194 * xstormy16-tdep.c: Ditto.
10195
10196 2003-01-07 Andrew Cagney <cagney@redhat.com>
10197
10198 * alpha-tdep.c: Use get_frame_base.
10199 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10200 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10201 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10202 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10203 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10204 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10205 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10206 * config/sparc/tm-sparc.h: Ditto.
10207
10208 2003-01-07 Andrew Cagney <cagney@redhat.com>
10209
10210 * frame.c (deprecated_get_frame_context): New function.
10211 (deprecated_set_frame_context): New function.
10212 * frame.h (deprecated_get_frame_context): Declare.
10213 (deprecated_set_frame_context): Declare.
10214 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10215 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10216
10217 2003-01-07 Andrew Cagney <cagney@redhat.com>
10218
10219 * frame.c (deprecated_set_frame_next_hack): New function.
10220 (deprecated_set_frame_prev_hack): New function.
10221 * frame.h (deprecated_set_frame_next_hack): Declare.
10222 (deprecated_set_frame_prev_hack): Declare.
10223 * mcore-tdep.c (analyze_dummy_frame): Use
10224 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10225 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10226
10227 2003-01-07 David Carlton <carlton@math.stanford.edu>
10228
10229 * linespec.c (decode_line_1): Move code into decode_dollar.
10230 (decode_dollar): New function.
10231
10232 2003-01-07 Andrew Cagney <cagney@redhat.com>
10233
10234 * arm-tdep.c (arm_init_extra_frame_info): Use
10235 deprecated_update_frame_base_hack.
10236 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10237 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10238 (fix_frame_pointer): Ditto.
10239 (mn10300_analyze_prologue): Ditto.
10240
10241 2003-01-07 Andrew Cagney <cagney@redhat.com>
10242
10243 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10244 extra_info using frame_extra_info_zalloc.
10245 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10246 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10247 (sh64_init_extra_frame_info): Ditto.
10248 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10249 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10250 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10251 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10252 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10253 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10254 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10255 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10256 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10257 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10258 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10259 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10260
10261 * mn10300-tdep.c (analyze_dummy_frame): Use
10262 deprecated_set_frame_extra_info_hack.
10263 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10264
10265 2003-01-07 J. Brobecker <brobecker@gnat.com>
10266
10267 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10268 class is not scText. These do not define "real" procedures.
10269 (parse_partial_symbols): Likewise.
10270
10271 2003-01-06 Michael Snyder <msnyder@redhat.com>
10272
10273 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10274
10275 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10276
10277 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10278 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10279 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10280 deprecated_frame_xmalloc_with_cleanup.
10281 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10282 deprecated_frame_xmalloc.
10283 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10284 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10285
10286 2003-01-06 Andrew Cagney <cagney@redhat.com>
10287
10288 * x86-64-linux-tdep.c: Include "osabi.h".
10289 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10290
10291 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10292
10293 2003-01-06 Andrew Cagney <cagney@redhat.com>
10294
10295 * MAINTAINERS (Target Instruction Set Architectures): Update
10296 arm-elf. Can be built with -Werror, has been multiarched.
10297
10298 * value.h (unpack_long): Make buffer parameter constant.
10299 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10300 * scm-lang.h (scm_parse): Ditto.
10301 * defs.h (extract_typed_address, extract_address): Ditto.
10302 (extract_long_unsigned_integer): Ditto.
10303 * inferior.h (unsigned_pointer_to_address): Ditto.
10304 (signed_pointer_to_address): Ditto.
10305 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10306 * gdbarch.h, gdbarch.c: Regenerate.
10307 * findvar.c (extract_long_unsigned_integer): Update.
10308 (extract_address): Update.
10309 (extract_typed_address): Update.
10310 (unsigned_pointer_to_address): Update.
10311 * values.c (unpack_long): Update.
10312 (unpack_double): Update.
10313 (unpack_pointer): Update.
10314 (unpack_field_as_long): Update.
10315 * d10v-tdep.c (d10v_pointer_to_address): Update.
10316 * avr-tdep.c (avr_pointer_to_address): Update.
10317 * scm-lang.c (scm_unpack): Update.
10318 * findvar.c (signed_pointer_to_address): Update.
10319
10320 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10321
10322 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10323 since it is in i386-tdep.c.
10324
10325 2003-01-06 J. Brobecker <brobecker@gnat.com>
10326
10327 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10328 failure introduced in the previous change.
10329
10330 2003-01-05 Michael Chastain <mec@shout.net>
10331
10332 * README: Remove references to deleted remote-*.c files:
10333 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10334 remote-nrom.c, remote-os9k.c, remote-udi.c.
10335
10336 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10337
10338 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10339 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10340 i386_get_longjmp_target.
10341
10342 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10343
10344 * arm-tdep.c (prologue_cache): Change to a pointer.
10345 (_initialize_arm_tdep): Allocate prologue_cache.
10346 (check_prologue_cache): Update.
10347 (save_prologue_cache): Update.
10348 (arm_gdbarch_init): Update.
10349
10350 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * stabsread.c (update_method_name_from_physname): Call complaint()
10353 instead of error.
10354
10355 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10356
10357 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10358 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10359 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10360
10361 * blockframe.c: Include "gdbcmd.h" and "command.h".
10362 (backtrace_below_main): New variable.
10363 (file_frame_chain_valid, func_frame_chain_valid)
10364 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10365 (generic_func_frame_chain_valid): Remove functions.
10366 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10367 (_initialize_blockframe): New function.
10368 * Makefile.in (blockframe.o): Update dependencies.
10369 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10370 comment. Call frame_chain_valid ().
10371 * frame.h: Remove old prototypes. Add prototype for
10372 frame_chain_valid and update comments to match.
10373 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10374 Remove old comment.
10375 * gdbarch.h: Regenerated.
10376 * gdbarch.c: Regenerated.
10377
10378 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10379 set_gdbarch_frame_chain_valid.
10380 * avr-tdep.c (avr_gdbarch_init): Likewise.
10381 * cris-tdep.c (cris_gdbarch_init): Likewise.
10382 * frv-tdep.c (frv_gdbarch_init): Likewise.
10383 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10384 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10385 (i386_nw_init_abi): Likewise.
10386 (i386_gdbarch_init): Likewise.
10387 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10389 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10390 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10391 * mips-tdep.c (mips_gdbarch_init): Likewise.
10392 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10393 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10394 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10395 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10396 * s390-tdep.c (s390_gdbarch_init): Likewise.
10397 * sh-tdep.c (sh_gdbarch_init): Likewise.
10398 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10399 * v850-tdep.c (v850_gdbarch_init): Likewise.
10400 * vax-tdep.c (vax_gdbarch_init): Likewise.
10401 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10402
10403 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10404 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10405 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10406 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10407 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10408 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10409 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10410 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10411
10412 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10413
10414 * Makefile.in (acconfig_h): Remove incorrect macro.
10415 (config_h): Define.
10416 (osabi.o): Update dependencies.
10417 * configure.tgt: Set gdb_osabi based on target triplet.
10418 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10419 * configure: Regenerated.
10420 * config.in: Regenerated.
10421 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10422 (GDB_OSABI_DEFAULT): Define if not already defined.
10423 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10424 (set_osabi_string): New variables.
10425 (gdbarch_register_osabi): Add new OS ABI to
10426 gdb_osabi_available_names.
10427 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10428 (set_osabi, show_osabi): New functions.
10429 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10430
10431 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * arch-utils.c (gdbarch_info_init): Set osabi to
10434 GDB_OSABI_UNINITIALIZED.
10435 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10436 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10437 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10438 * gdbarch.c: Regenerated.
10439 * gdbarch.h: Regenerated.
10440 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10441 there's no BFD.
10442 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10443 * osabi.h (enum gdb_osabi): Move to defs.h.
10444 (gdbarch_init_osabi): Update prototype.
10445 * defs.h (enum gdb_osabi): Moved here.
10446 * Makefile.in: Update dependencies.
10447
10448 * alpha-tdep.h: Don't include "osabi.h".
10449 (struct gdbarch_tdep): Remove osabi member.
10450 * alpha-tdep.c: Include "osabi.h".
10451 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10452 iterate over arches. Update call to gdbarch_init_osabi.
10453 (alpha_dump_tdep): Don't dump osabi.
10454 * alpha-linux-tdep.c: Include "osabi.h".
10455 * alpha-osf1-tdep.c: Include "osabi.h".
10456 * alphafbsd-tdep.c: Include "osabi.h".
10457 * alphanbsd-tdep.c: Include "osabi.h".
10458
10459 * arm-tdep.h: Don't include "osabi.h".
10460 (struct gdbarch_tdep): Remove osabi member.
10461 * arm-tdep.c: Include "osabi.h".
10462 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10463 iterate over arches. Update call to gdbarch_init_osabi.
10464 (arm_dump_tdep): Don't dump osabi.
10465 * arm-linux-tdep.c: Include "osabi.h".
10466 * armnbsd-tdep.c: Include "osabi.h".
10467
10468 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10469 Update call to gdbarch_init_osabi.
10470
10471 * i386-tdep.h: Don't include "osabi.h".
10472 (struct gdbarch_tdep): Remove osabi member.
10473 * i386-tdep.c: Include "osabi.h".
10474 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10475 iterate over arches. Update call to gdbarch_init_osabi.
10476 (i386_dump_tdep): Don't dump osabi.
10477 * i386-linux-tdep.c: Include "osabi.h".
10478 * i386-sol2-tdep.c: Include "osabi.h".
10479 * i386bsd-tdep.c: Include "osabi.h".
10480 * i386gnu-tdep.c: Include "osabi.h".
10481 * i386ly-tdep.c: Include "osabi.h".
10482 * i386nbsd-tdep.c: Include "osabi.h".
10483 * i386obsd-tdep.c: Include "osabi.h".
10484
10485 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10486 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10487 check osabi when iterating over arches. Update call to
10488 gdbarch_init_osabi.
10489 (mips_dump_tdep): Don't dump osabi.
10490
10491 * ns32k-tdep.h: Don't include "osabi.h".
10492 (struct gdbarch_tdep): Remove.
10493 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10494 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10495 allocate tdep. Update call to gdbarch_init_osabi.
10496 (ns32k_dump_tdep): Remove.
10497 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10498 * ns32knbsd-tdep.c: Include "osabi.h".
10499
10500 * ppc-tdep.h: Don't include "osabi.h".
10501 (struct gdbarch_tdep): Remove osabi member.
10502 * rs6000-tdep.c: Include "osabi.h".
10503 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10504 osabi when iterating over arches. Update call to
10505 gdbarch_init_osabi.
10506 (rs6000_dump_tdep): Don't dump osabi.
10507 * ppc-linux-tdep.c: Include "osabi.h".
10508 * ppcnbsd-tdep.c: Include "osabi.h".
10509
10510 * sh-tdep.h: Don't include "osabi.h".
10511 (struct gdbarch_tdep): Remove osabi member.
10512 * sh-tdep.c: Include "osabi.h".
10513 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10514 iterate over arches. Update call to gdbarch_init_osabi.
10515 (sh_dump_tdep): Don't dump osabi.
10516 * shnbsd-tdep.c: Include "osabi.h".
10517
10518 * sparc-tdep.c: Include "osabi.h".
10519 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10520 iterate over arches. Update call to gdbarch_init_osabi.
10521 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10522 tdep structure.
10523
10524 * vax-tdep.h: Don't include "osabi.h".
10525 (struct gdbarch_tdep): Remove.
10526 * vax-tdep.c: Include "osabi.h".
10527 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10528 iterate over arches. Don't allocate tdep. Update call
10529 to gdbarch_init_osabi.
10530 (vax_dump_tdep): Remove.
10531 (_initialize_vax_tdep): Update call to gdbarch_register.
10532
10533 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10534
10535 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10536 entirely.
10537 (breakpoint_re_set_one): Don't fetch the value for a disabled
10538 watchpoint.
10539
10540 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10541
10542 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10543 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10544 (COERCE_FLOAT_TO_DOUBLE): Remove.
10545 * gdbarch.c: Regenerate.
10546 * gdbarch.h: Regenerate.
10547 * Makefile.in: Remove value_h from gdbarch_h.
10548 * valops.c (coerce_float_to_double): New variable.
10549 (default_coerce_float_to_double): Remove.
10550 (standard_coerce_float_to_double): Remove.
10551 (value_arg_coerce): Use coerce_float_to_double.
10552 (_initialize_valops): Add "set coerce-float-to-double".
10553 * value.h (default_coerce_float_to_double): Remove prototype.
10554 (standard_coerce_float_to_double): Remove prototype.
10555
10556 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10557 prototyped.
10558 * mdebugread.c (parse_symbol): Likewise.
10559 * stabsread.c (define_symbol): Mark all functions as prototyped.
10560
10561 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10562 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10563 set_gdbarch_coerce_float_to_double.
10564 * arm-tdep.c (arm_gdbarch_init): Likewise.
10565 * frv-tdep.c (frv_gdbarch_init): Likewise.
10566 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10567 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10568 * mips-tdep.c (mips_gdbarch_init): Likewise.
10569 (mips_coerce_float_to_double): Remove.
10570 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10571 (rs6000_coerce_float_to_double): Remove.
10572 * s390-tdep.c (s390_gdbarch_init): Likewise.
10573 * sh-tdep.c (sh_gdbarch_init): Likewise.
10574 (sh_coerce_float_to_double): Remove.
10575 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10576 (sparc_coerce_float_to_double): Remove.
10577 * v850-tdep.c (v850_gdbarch_init): Likewise.
10578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10579 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10580 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10581 (hppa_coerce_float_to_double): Remove prototype.
10582 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10583
10584 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10585
10586 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10587
10588 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10589
10590 Suggested by Stewart Brown <sb24@avaya.com>:
10591 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10592 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10593 (c_type_print_varspec_suffix): Likewise.
10594
10595 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10596
10597 * configure.in: Don't set and AC_SUBST SUBDIRS.
10598 * configure: Regenerated.
10599
10600 * configure.in: Remove code dealing with shared libraries.
10601 * Makefile.in: Remove HLDFLAGS and HLDENV.
10602 * configure: Regenerated.
10603
10604 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10605
10606 * frame.c (deprecated_frame_xmalloc): New function.
10607 (deprecated_set_frame_saved_regs_hack): New function.
10608 (deprecated_set_frame_extra_info_hack): New function.
10609 * frame.h (deprecated_frame_xmalloc): Declare.
10610 (deprecated_set_frame_saved_regs_hack): Declare.
10611 (deprecated_set_frame_extra_info_hack): Declare.
10612
10613 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10614
10615 * configure.in: Move code that provides the --enable-gdbtk option
10616 right after the code that handles the --enable-tui option, and
10617 polish it somewhat.
10618 * configure: Regenerated.
10619
10620 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10621 AC_CHECK_FUNCS and remove the old check for pread64.
10622 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10623 * acconfig.h (_GNU_SOURCE): Add.
10624 (HAVE_PREAD64): Remove.
10625 * configure, aclocal.m4, config.in: Regenerated.
10626
10627 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10628
10629 * alpha-tdep.c: Use get_frame_saved_regs.
10630 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10631 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10632 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10633 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10634 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10635
10636 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10637
10638 * configure.in: Remove all use of the SUBDIRS variable; add
10639 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10640 code providing the --enable-multi-ice option, and move it right in
10641 front of the code that checks whether gdbserver is supported.
10642 Polish that too.
10643 * configure: Regenerated.
10644 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10645 @SUBDIRS@.
10646
10647 2003-01-03 Andrew Cagney <cagney@redhat.com>
10648
10649 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10650 * avr-tdep.c, cris-tdep.c: Ditto.
10651 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10652 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10653
10654 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10655
10656 * configure.in: Remove --enable-netrom option.
10657 * configure: Regenerated.
10658
10659 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10660
10661 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10662 declaration for `struct re_pattern_buffer' instead.
10663 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10664
10665 2003-01-03 J. Brobecker <brobecker@gnat.com>
10666
10667 * mdebugread.c (parse_symbol): Count until the stEnd matching
10668 the structure name.
10669
10670 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10671
10672 * configure.in: Remove --with-cpu option.
10673 subscripts. Remove evil changequotes here.
10674 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10675 * config.in, configure: Regenerated.
10676
10677 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10678 * configure.in: Cleanup section that sources GDB and BFD configure
10679 subscripts. Remove evil changequotes here.
10680 * config.in, configure: Regenerated.
10681
10682 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10683
10684 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10685 frame accessor methods.
10686 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10687 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10688 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10689 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10690 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10691 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10692 * z8k-tdep.c: Ditto.
10693
10694 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10695
10696 * configure.in: Remove UI_OUT configuration code.
10697 * ada-lang.c: Update assuming UI_OUT is always true.
10698 * Makefile.in (UIOUT_CFLAGS): Remove.
10699 * configure: Regenerated.
10700 * TODO: Remove blurb about elimination of -DUI_OUT.
10701
10702 * configure.in: Move code that provides the --enable-gdbcli,
10703 --enable-gdbmi options right before the code that handles the
10704 --enable-tui option. Polish a bit.
10705 * configure: Regenerated.
10706
10707 * configure.in: Rewrite check for GNU regex and the
10708 --without-included regex option, and move it into the "Checks for
10709 library functions" section. This makes us use the system regex
10710 again by default on systems with version 2 of the GNU C library.
10711 This was apparently broken.
10712 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10713 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10714 * config.in, configure: Regenerated.
10715
10716 * configure.in: Move code that provides the --enable-tui option
10717 before the "Checks for libraries" section. Polish the code
10718 somewhat and set need_curses to yes if we build the TUI. Rewrite
10719 code that looks for a library providing termcap functionality to
10720 match more closely what's done in the Readline library, and move
10721 it into to the "Checks for libraries" section.
10722 * configure: Regenerated.
10723 * Makefile.in (TERMCAP): Remove variable.
10724 * config/i386/go32.mh (TERMCAP): Remove variable.
10725
10726 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10727
10728 * MAINTAINERS: Mention gdb_mbuild.sh.
10729 * gdb_mbuild.sh: Rewrite.
10730
10731 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10732
10733 * configure.in: Fix typo in last change.
10734 * config.in, configure: Regenerated.
10735
10736 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10737
10738 * valarith.c (value_binop): Delete obsolete code and comments.
10739 * configure.host: Ditto.
10740 * buildsym.h (make_blockvector): Ditto.
10741 * buildsym.c (make_blockvector): Ditto.
10742 * defs.h (enum language): Ditto.
10743 (chill_demangle): Ditto.
10744 * elfread.c (elf_symtab_read): Ditto.
10745 * dwarfread.c (CHILL_PRODUCER): Ditto.
10746 (set_cu_language): Ditto.
10747 (handle_producer): Ditto.
10748 * expprint.c (print_subexp): Ditto.
10749 * gdbtypes.c (chill_varying_type): Ditto.
10750 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10751 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10752 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10753 (chill_varying_type): Ditto.
10754 * language.h (_LANG_chill): Ditto.
10755 * language.c (binop_result_type, integral_type): Ditto.
10756 (character_type, string_type, structured_type): Ditto.
10757 (lang_bool_type, binop_type_check): Ditto.
10758 * stabsread.h (os9k_stabs): Ditto.
10759 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10760 (define_symbol, read_type, read_struct_fields): Ditto.
10761 (read_array_type, read_enum_type, read_huge_number): Ditto.
10762 (read_range_type, start_stabs): Ditto.
10763 * symfile.c (init_filename_language_table): Ditto.
10764 (add_psymbol_with_dem_name_to_list): Ditto.
10765 * symtab.c (symbol_init_language_specific): Ditto.
10766 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10767 * symtab.h (struct general_symbol_info): Ditto.
10768 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10769 * typeprint.c (typedef_print): Ditto.
10770 * utils.c (fprintf_symbol_filtered): Ditto.
10771 * valops.c (value_cast, search_struct_field, value_slice): Delete
10772 obsolete code.
10773 (varying_to_slice): Delete function.
10774 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10775 (varying_to_slice): Delete declaration.
10776 * MAINTAINERS: Update.
10777
10778 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10779
10780 * configure.in: Reorganize "Checks for library functions section"
10781 a bit. Remove check for `btowc' and `isascii' functions.
10782 * configure: Regenerated.
10783
10784 * acconfig.h (_MSE_INT_H): Remove.
10785 * configure.in: Create "Checks for header files" section, and move
10786 appropriate tests there. Don't check for objlist.h, wchar.h,
10787 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10788 misdetection fix. Also add "Checks for types", "Checks for
10789 compiler characteristics" and "Checks for library functions"
10790 sections.
10791 * config.in, configure: Regenerated.
10792
10793 * configure.in: Create "Checks for programs" section, and move
10794 appropriate tests there.
10795
10796 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10797
10798 * configure.in: Create "Checks for libraries" section, and move
10799 appropriate tests there. Cleanup check for wctype in libw. Use
10800 AC_SEARCH_LIBS to see whether we need libsocket.
10801 * configure: Regenerated.
10802
10803 For older changes see ChangeLog-2002
10804 \f
10805 Local Variables:
10806 mode: change-log
10807 left-margin: 8
10808 fill-column: 74
10809 version-control: never
10810 End:
This page took 0.269518 seconds and 4 git commands to generate.