2003-08-27 Michael Chastain <mec@shout.net>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-27 Michael Chastain <mec@shout.net>
2
3 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4
5 2003-08-27 Andrew Cagney <cagney@redhat.com>
6
7 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
8 (alpha_osf1_init_abi): Do not set call_dummy_address.
9
10 2003-08-27 David Carlton <carlton@kealia.com>
11
12 From Randolph Chung <tausq@debian.org>:
13 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
14 compiles with -Wformat-nonliteral -Werror.
15
16 2003-08-26 Jim Blandy <jimb@redhat.com>
17
18 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
19 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
20 bfd_lookup_symbol, since we only want symbols in code sections.
21 (look_for_base): Pass zero as the SECT_FLAGS argument to
22 bfd_lookup_symbol, since we're not concerned about which section
23 the symbol is in.
24
25 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
26
27 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
28 we are frameless or the return address register is already known.
29
30 2003-08-26 Andrew Cagney <cagney@redhat.com>
31
32 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
33 in size. Add comments.
34
35 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
36
37 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
38 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
39
40 2003-08-26 Jason Merrill <jason@redhat.com>
41
42 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
43 case out of #ifdef MIPS block.
44
45 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
46
47 PR java/1322
48 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
49 available before calling SECT_OFF_TEXT.
50 * PROBLEMS: Remove description of java/1322.
51
52 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
53
54 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
55 bof, and nat0-nat127 as pseudo-registers.
56 (ia64_frame_cache): New struct used to cache frame info.
57 (ia64_register_reggroup_p): New routine used to override default
58 register grouping so registers without names are still saved and
59 restored.
60 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
61 pseudo values.
62 (ia64_pseudo_register_read): New routine to read pseudo-registers.
63 (ia64_pseudo_register_write): New routine to write pseudo-registers.
64 (ia64_alloc_frame_cache): New routine to create a new
65 ia64_frame_cache.
66 (examine_prologue): Change prototype to add next_frame pointer.
67 Assume frameless until otherwise proven. Verify that the cfm for
68 current frame matches the cfm that should occur for the prologues
69 alloc insn and if equal, mark as not frameless. At end of routine,
70 if not frameless, calculate registers for the previous frame and store
71 in the cache, if a cache is provided.
72 (ia64_skip_prologue): Use new prototype when calling examine_prologue
73 and pass 0 for next_frame.
74 (ia64_store_return_value): Change to use convert_typed_floating()
75 instead of calling ia64_convert_to_raw().
76 (ia64_extract_return_value): Change to use convert_typed_floating()
77 instead of calling ia64_convert_to_virtual().
78 (ia64_frame_cache): New routine to support new frame model.
79 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
80 (ia64_frame_sniffer): Ditto.
81 (ia64_sigtramp_frame_init_saved_regs): Ditto.
82 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
83 (ia64_sigtramp_frame_prev_register): Ditto.
84 (ia64_sigtramp_frame_sniffer): Ditto.
85 (ia64_frame_base_address): Ditto.
86 (ia64_extract_struct_value_address): Change to issue error message.
87 (ia64_frame_align): New routine to align sp.
88 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
89 (ia64_push_arguments): Removed. Logic moved to
90 ia64_push_dummy_call().
91 (ia64_push_return_address): Ditto.
92 (ia64_unwind_dummy_id): New function.
93 (ia64_unwind_pc): Ditto.
94 (ia64_convert_register_p): Ditto.
95 (ia64_register_to_value): Ditto.
96 (ia64_value_to_register): Ditto.
97 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
98 (ia64_register_byte, ia64_register_raw_size): Ditto.
99 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
100 (ia64_saved_pc_after_call): Ditto.
101 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
102 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
103 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
104 (ia64_register_convert_to_raw): Ditto.
105 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
106 (ia64_init_extra_frame_info): Ditto.
107 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
108 (ia64_gdbarch_init): Remove registering of deprecated functions that
109 are no longer used. Add registration of new gdbarch functions.
110 Remove registering deprecated_write_sp. Replace
111 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
112 Delete set_gdbarch_deprecated_register_convertible(),
113 set_gdbarch_deprecated_register_convert_to_virtual(), and
114 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
115 set_gdbarch_deprecated_register_size(),
116 set_gdbarch_deprecated_register_bytes(),
117 set_gdbarch_pcregnum(),
118 set_gdbarch_deprecated_register_byte(),
119 set_gdbarch_deprecated_register_raw_size(),
120 set_gdbarch_deprecated_max_register_raw_size(),
121 set_gdbarch_deprecated_register_virtual_size(),
122 and set_gdbarch_deprecated_max_register_virtual_size() calls.
123 Replace set_gdbarch_deprecated_extract_return_value() with
124 set_gdbarch_extract_return_value(). Remove calls to:
125 set_gdbarch_deprecated_saved_pc_after_call();
126 set_gdbarch_deprecated_frame_chain(),
127 set_gdbarch_deprecated_frame_saved_pc(),
128 set_gdbarch_deprecated_frame_init_saved_regs(),
129 set_gdbarch_deprecated_get_saved_register(),
130 set_gdbarch_deprecated_call_dummy_words(),
131 set_gdbarch_deprecated_sizeof_call_dummy_words(),
132 set_gdbarch_deprecated_init_extra_frame_info(),
133 set_gdbarch_deprecated_frame_args_address(),
134 set_gdbarch_deprecated_frame_locals_address(),
135 and set_gdbarch_deprecated_dummy_write_sp().
136 Add set_gdbarch_convert_register_p(),
137 set_gdbarch_register_to_value(),
138 set_gdbarch_value_to_register(),
139 set_gdbarch_push_dummy_call(),
140 set_gdbarch_frame_align(),
141 set_gdbarch_unwind_dummy_id(),
142 set_gdbarch_unwind_pc(),
143 frame_unwind_append_sniffer(),
144 frame_unwind_append_sniffer(),
145 and frame_base_set_default().
146
147 2003-08-25 Chris Demetriou <cgd@broadcom.com>
148
149 * configure.tgt: Document need for special "mipsisa64" handling.
150 (mipsisa64*-*-linux64): Handle as target linux64.
151 (mipsisa64*-*-*): Handle as target embed64.
152
153 2003-08-18 Michael Chastain <mec@shout.net>
154
155 * PROBLEMS: Document pr gdb/1322, the Java anonymous
156 objfile bug.
157
158 2003-08-24 Mark Kettenis <kettenis@gnu.org>
159
160 * i387-tdep.h: Update copyright date.
161 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
162
163 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
164 CFLAGS games to reflect reality.
165
166 2003-08-24 Andrew Cagney <cagney@redhat.com>
167
168 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
169 GDB_MULTI_ARCH is always non-zero.
170 * osabi.c (_initialize_gdb_osabi): Ditto.
171 (gdbarch_init_osabi): Ditto.
172 * sparc-tdep.c: Ditto for #if code.
173
174 2003-08-23 Mark Kettenis <kettenis@gnu.org>
175
176 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
177 Update comments.
178 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
179 comments.
180 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
181 x86_64_supply_fxsave.
182 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
183 x86_64_supply_fxsave.
184 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
185 x86_64_supply_fxsave.
186
187 2003-08-23 Andreas Jaeger <aj@suse.de>
188
189 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
190 i387_supply_fxsave.
191
192 2003-08-23 Mark Kettenis <kettenis@gnu.org>
193
194 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
195 i387_supply_register.
196 (go32_fetch_registers): Adjust call to i387_supply_fsave.
197 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
198 i387_supply_fsave.
199 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
200 i387_supply_fxsave.
201 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
202 i387_supply_fsave.
203 * i386bsd-nat.c (supply_fpregset): Adjust call to
204 i387_supply_fsave.
205 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
206 call to i387_supply_fxsave. Call i387_supply_fsave instead of
207 supply_fpregset.
208 (store_inferior_registers): Remove extraneous whitespace. Call
209 i387_fill_fsave instead of fill_fpregset.
210 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
211 (supply_fpregset): Likewise.
212 * i386v4-nat.c (supply_fpregset): Adjust call to
213 i387_supply_fsave.
214 * i386-interix-nat.c (supply_fpregset): Adjust call to
215 i387_supply_fsave.
216 * i386-linux-nat.c (supply_fpregset): Adjust call to
217 i387_supply_fsave.
218 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
219 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
220 i387supply_fsave and i387_supply_fxsave.
221 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
222 Incorporate code from `i387_supply_register.
223 (i387_supply_register): Remove.
224 (i387_supply_fxsave): Add `regnum' argument.
225 Update comments.
226 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
227 prototype.
228 (i387_supply_register): remove prototype.
229 Update comments.
230
231 2003-08-22 Michael Chastain <mec@shout.net>
232
233 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
234 Add lines for files in gdb/testsuite/gdb.cp/* that are
235 still not 8.3 unique.
236
237 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
238
239 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
240 TYPE_VPTR_FIELDNO is valid.
241
242 2003-08-19 Mark Kettenis <kettenis@gnu.org>
243
244 * utils.c (set_width_command): Remove prototypes.
245 (set_screen_size): New prototype.
246 (init_page_info): Simplify by fetching the screen size from
247 Readline. Call set_screen_size.
248 (set_screen_size): New function.
249 (set_width): Add missing whitespace in comment.
250 (set_width_command): Call set_screen_size.
251 (set_height_command): New function.
252 (initialize_utils): Fix formatting. Make "set height" command
253 call set_height_command. Remove redundant code that turns off
254 pagination if output isn't a terminal. Remove redundant call to
255 set_width_command.
256
257 2003-08-22 Mark Kettenis <kettenis@gnu.org>
258
259 * sparc64-tdep.h (sparc64_regnum): Fix comment.
260 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
261 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
262 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
263 `case' keyword.
264 (sparc64_register_info): Give the reister with number
265 SPARC64_STATE_REGNUM a name.
266 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
267 %asi and %ccr.
268 (sparc64_push_dummy_call): Take BIAS into account when checking
269 stcak alignment.
270 (sparc_software_single_step): Remove assertions that check whether
271 NPC and NNPC were zero.
272 (sparc_supply_rwindow): Make public. Merge functionality with
273 sparc64_supply_rwindow.
274 (sparc_fill_rwindow): Make public. Merge functionality with
275 sparc64_fill_rwindow.
276 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
277 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
278 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
279 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
280 sparc_supply_rwindow instead of sparc64_supply_rwindow.
281
282 * reggroups.c: Add whitespace after declarations of local
283 variables in functions.
284
285 2003-08-21 Michael Chastain <mec@shout.net>
286
287 * gdbtypes.h: Change array bound type from an int to enum.
288
289 2003-08-21 Andrew Cagney <cagney@redhat.com>
290
291 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
292 * config/sparc/tm-sparc.h: Ditto.
293 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
294 unconditionally.
295 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
296
297 2003-07-13 Mark Kettenis <kettenis@gnu.org>
298
299 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
300 (register_objfile_data, set_objfile_data, objfile_data): New
301 prototypes.
302 * objfiles.c (objfile_alloc_data, objfile_free_data): New
303 prototypes.
304 (allocate_objfile): Call objfile_alloc_data.
305 (free_objfile): Call objfile_free_data.
306 (struct objfile_data): New.
307 (struct objfile_data_registration): New.
308 (struct objfile_data_registry): New.
309 (objfile_data_registry): New variable.
310 (register_objfile_data): New function.
311 (objfile_alloc_data, objfile_free_data): New functions.
312 (set_objfile_data, objfile_data): New functions.
313 * dwarf2-frame.c (dwarf2_frame_data): New variable.
314 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
315 (_initialize_dwarf2_frame): New function and prototype.
316
317 2003-08-21 Andrew Cagney <cagney@redhat.com>
318
319 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
320 a specific architecture.
321 * arch-utils.h (set_architecture_from_arch_mach): Delete
322 declaration.
323 (target_architecture_hook): Delete declaration.
324 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
325 (default_float_format): Assume GDB_MULTI_ARCH.
326 (default_double_format): Assume GDB_MULTI_ARCH.
327 (set_endian_from_file): Delete function.
328 (arch_ok): Delete function.
329 (set_arch): Delete function.
330 (set_architecture_from_arch_mach): Delete function.
331 (set_architecture_from_file): Delete function.
332 (set_architecture): Assume GDB_MULTI_ARCH.
333 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
334
335 2003-08-21 Mark Kettenis <kettenis@gnu.org>
336
337 Rewrite FreeBSD/sparc64 native configuration.
338 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
339 * sparc64fbsd-nat.c: New file.
340 * sparc64fbsd-tdep.c: New file.
341 * sparc64-tdep.c sparc64-tdep.h: New files.
342 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
343 sparc64fbsd-tdep.o): New dependencies.
344 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
345 and sparc64fbsd-tdep.c.
346 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
347 * config/sparc/fbsd.mh: Remove copyright notice.
348 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
349 sparcbsd-nat.o.
350 * config/sparc/fbsd.mt: Remove copyright notice.
351 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
352 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
353 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
354 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
355 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
356 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
357 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
358 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
359 "sparc/tm-sp64.h".
360 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
361 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
362
363 2003-08-21 Michael Chastain <mec@shout.net>
364
365 * symtab.h: Add doco on the space critical structures and
366 some measurements of space usage.
367
368 2003-08-21 Michael Snyder <msnyder@redhat.com>
369
370 * tracepoint.c (trace_dump_command): Trace break address
371 is subject to DECR_PC_AFTER_BREAK.
372 (set_traceframe_context): Make "trace_line" an int.
373 Fixes suggested by Mark Newman <mark.newman@lmco.com>
374
375 2003-08-20 Michael Snyder <msnyder@redhat.com>
376
377 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
378 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
379 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
380 argument passing.
381 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
382 functions, replace sh_push_dummy_call.
383 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
384
385 2003-08-20 Michael Chastain <mec@shout.net>
386
387 * gdbtypes.h (struct main_type): Rearrange to save space.
388
389 2003-08-20 Michael Snyder <msnyder@redhat.com>
390
391 * trad-frame.c: Comment typo fix.
392
393 2003-08-20 Michael Snyder <msnyder@redhat.com>
394 Kevin Buettner <kevinb@redhat.com>
395
396 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
397 (frv_frame_init_saved_regs): Add declaration.
398 (frame_extra_info): Add new field ``saved_regs''.
399 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
400 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
401 Update frame related code.
402 (frv_extract_struct_value_address): Adjust formatting.
403 * Makefile.in (frv-tdep.o): Update dependencies.
404 * config/frv/tm-frv.h (target_insert_watchpoint)
405 (target_remove_watchpoint, target_insert_hw_breakpoint)
406 (target_remove_hw_breakpoint): Delete these macros.
407 (remote_insert_watchpoint, remote_remove_watchpoint)
408 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
409 these declarations.
410
411 2003-08-20 Michael Chastain <mec@shout.net>
412
413 * defs.h (ENUM_BITFIELD): New macro.
414 * symtab.h (ENUM_BITFIELD): Use it.
415 (BYTE_BITFIELD): Remove old macro, which was already disabled.
416
417 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
418
419 * MAINTAINERS (write after approval): Add myself.
420
421 2003-08-18 Andrew Cagney <cagney@redhat.com>
422
423 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
424 * gdbarch.h, gdbarch.c: Re-generate.
425 * infcall.c (call_function_by_hand): Adjust the SP by
426 frame_red_zone_size before allocating any stack space.
427 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
428 * x86-64-tdep.c (x86_64_frame_align): New function.
429 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
430
431 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
432 Remove code adjusting SP so that it skips over the Red Zone.
433
434 2003-08-18 Mark Kettenis <kettenis@gnu.org>
435
436 * NEWS (New native configurations): Mention FreeBSD/amd64.
437
438 2003-08-18 Andrew Cagney <cagney@redhat.com>
439
440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
441 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
442 "m68k_frame_p".
443 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
444
445 2003-08-18 Mark Kettenis <kettenis@gnu.org>
446
447 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
448
449 2003-08-18 Michal Ludvig <mludvig@suse.cz>
450
451 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
452 Define.
453 * i386-linux-nat.c: Include "linux-nat.h".
454 (child_post_startup_inferior): New function.
455
456 2003-08-18 Mark Kettenis <kettenis@gnu.org>
457
458 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
459 at the start of a frameless function. This probably fixes PR
460 backtrace/1338.
461
462 2003-08-17 Michael Chastain <mec@shout.net>
463
464 * symfile.c (find_sym_fns): Remove special case for apollo target.
465
466 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
467
468 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
469 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
470 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
471 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
472 (linux_supports_tracevforkdone): New function.
473 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
474 TRACEVFORKDONE.
475 (child_follow_fork): Handle vfork.
476 (linux_handle_extended_wait): Likewise. Also handle exec.
477 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
478 * NEWS: Mention fork tracing.
479
480 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
481
482 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
483
484 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
485
486 * Makefile.in (i386-linux-nat.o): Update dependencies.
487 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
488 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
489 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
490 * i386-linux-nat.c: Include "linux-nat.h".
491 (child_post_startup_inferior): New function.
492 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
493 * infptrace.c (kill_inferior): Wrap in #ifdef.
494 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
495 attaching to each LWP.
496 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
497 (init_lin_lwp_ops): Fill in some more operations.
498 * linux-nat.h (linux_enable_event_reporting)
499 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
500 prototypes.
501 * linux-nat.c (linux_enable_event_reporting): New function.
502 (child_post_attach, linux_child_post_startup_inferior)
503 (child_post_startup_inferior, child_follow_fork)
504 (linux_handle_extended_wait, kill_inferior): New functions.
505
506 2003-08-16 Andrew Cagney <cagney@redhat.com>
507
508 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
509 * gdbarch.h, gdbarch.c: Re-generate.
510
511 2003-08-16 Mark Kettenis <kettenis@gnu.org>
512
513 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
514
515 2003-08-16 Andrew Cagney <cagney@redhat.com>
516
517 * NEWS: Mention that "set prompt-escape-char" was deleted.
518 * top.c (get_prompt_1): Delete function.
519 (gdb_prompt_escape):
520 (init_main): Do not clear "gdb_prompt_escape". Delete "set
521 prompt-escape-char" command.
522 (MAX_PROMPT_SIZE): Delete macro.
523 (get_prompt): Simplify, do not call get_prompt_1.
524
525 2003-08-16 Andrew Cagney <cagney@redhat.com>
526
527 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
528 -Werror. -Wformat-nonliteral problems.
529
530 2003-08-15 J. Brobecker <brobecker@gnat.com>
531
532 Further multiarching work mostly for hppa64-*-hpux11:
533 * hppa-tdep.h: New file.
534 * hppa-tdep.c: #include hppa-tdep.c.
535 (hppa32_num_regs): Renamed from hppa_num_regs.
536 (hppa64_num_regs): New constant.
537 (hppa64_call_dummy_breakpoint_offset): New constant.
538 (hppa32_call_dummy_length): New constant.
539 (hppa64_call_dummy_length): New constant.
540 (hppa32_stack_align): Make name 32bit explicit.
541 (hppa32_register_virtual_type): Likewise.
542 (hppa32_extract_return_value): Likewise.
543 (hppa32_use_struct_convention): Likewise.
544 (hppa32_store_return_value): Likewise.
545 (hppa64_register_virtual_type): New function.
546 (hppa64_extract_return_value): New function.
547 (hppa64_use_struct_convention): New function.
548 (hppa64_store_return_value): New function.
549 (hppa_frame_locals_address): Remove declaration, function does
550 not exist anymore.
551 (hppa_register_byte): Add support for PA64 ABI.
552 (hppa_gdbarch_init): Add support for PA64 ABI.
553 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
554 Make name 32bit explicit.
555 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
556 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
557 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
558 (hppa64_hpux_frame_base_before_sigtramp): New function.
559 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
560 * config/pa/tm-hppa64.h: Remove macros that are no longer
561 necessary now that the gdbarch vector is properly setup.
562 Transform some macros into function calls. Some minor cleanup.
563 * config/pa/tm-hppah.h: Update function calls in macros
564 following the function renaming in hppa-hpux-tdep.c.
565 * Makefile.in (hppa_tdep_h): New variable.
566 (hppa-tdep.o): Add dependency over hppa_tdep_h.
567
568 2003-08-14 Michael Snyder <msnyder@redhat.com>
569
570 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
571
572 2003-08-13 J. Brobecker <brobecker@gnat.com>
573
574 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
575 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
576 routine.
577
578 2003-08-13 Michael Snyder <msnyder@redhat.com>
579
580 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
581 (frv_saved_pc_after_call): Use deprecated ftype.
582 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
583 (frv_remote_translate_xfer_address): Remove.
584 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
585
586 2003-08-13 J. Brobecker <brobecker@gnat.com>
587
588 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
589 initialization after the common gdbarch initialization, not before.
590
591 2003-08-13 J. Brobecker <brobecker@gnat.com>
592
593 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
594 (ADDR_BITS_REMOVE): Remove, redundant.
595
596 2003-08-13 J. Brobecker <brobecker@gnat.com>
597
598 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
599 gdbarch method to clear the 2 low bits of text addresses.
600
601 2003-08-12 Andrew Cagney <cagney@redhat.com>
602
603 * Makefile.in (dsrec.o): Update dependencies.
604 * dsrec.c: Include "gdb_assert.h".
605 (make_srec): Use snprintf instead of sprintf, use a literal format
606 string.
607
608 2003-08-12 Andrew Cagney <cagney@redhat.com>
609
610 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
611 FRAME_OBSTACK_ZALLOC.
612
613 2003-08-12 Kevin Buettner <kevinb@redhat.com>
614
615 * i386-tdep.c (i386_gdbarch_init): Enable default support for
616 SSE registers.
617
618 2003-08-10 Mark Kettenis <kettenis@gnu.org>
619
620 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
621 amd64fbsd_sc_reg_offset): Add extern declarations.
622 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
623 declarations.
624
625 2003-08-11 Ben Elliston <bje@wasabisystems.com>
626
627 * MAINTAINERS (write after approval): Update my mail address.
628
629 2003-08-10 Andrew Cagney <cagney@redhat.com>
630
631 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
632
633 2003-08-10 Mark Kettenis <kettenis@gnu.org>
634
635 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
636 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
637 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
638 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
639 i386bsd_sc_reg_offset): Add extern declarations.
640 * i386obsd-nat.c: Include "i386-tdep.h"
641 (_initialize_i386obsd_nat): Remove extern declarations.
642 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
643 declarations.
644 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
645 declarations.
646
647 * i386-tdep.c (i386_register_to_value): Use get_frame_register
648 instead of frame_read_register.
649 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
650 instead of frame_read_register. Use I386_ESP_REGNUM instead of
651 SP_REGNUM.
652 (i386_frame_prev_register): Use frame_unwind_register_unsigned
653 instead of frame_unwind_unsigned_register. Use
654 I386_EFLAGS_REGISTER instead of PS_REGNUM.
655 (i386_get_longjmp_target): Use regcache_read_unsigned_register
656 instead of read_register. Use builtin_type_void_data_ptr instead
657 of builtin_type_void_func_ptr when extracting the address of the
658 jmp_buf.
659 (i386_extract_return_value, i386_store_return_value,
660 i386_pseudo_register_read, i386_pseudo_register_write): Use
661 register_size instead REGISTER_RAW_SIZE.
662
663 2003-08-10 Andrew Cagney <cagney@redhat.com>
664
665 * infcall.c (call_function_by_hand): Use xstrprintf instead of
666 sprintf. Make "name" constant.
667
668 2003-08-10 Mark Kettenis <kettenis@gnu.org>
669
670 * i387-tdep.c (i387_register_to_value): Use get_frame_register
671 instead of frame_read_register.
672 (i387_print_float_info): Use get_frame_register and
673 get_frame_register_unsigned instead of frame_register_read.
674
675 * i386fbsd-nat.c: Include "i386-tdep.h".
676 (child_resume): Make `eflags' an ULONGEST. Use
677 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
678 instead of register_read and register_write.
679
680 * i386bsd-nat.c (fetch_inferior_registers,
681 store_inferior_registers): Don't use && at the end of a line.
682 (_initialize_i386bsd_nat): Fix typo.
683
684 * frame.c (_initialize_frame): Add missing backslash.
685
686 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
687 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
688 and supply_register instead of manipulating the register buffer
689 directly.
690
691 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
692 * config/i386/nm-i386sol2.h
693 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
694
695 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
696 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
697 instructions that GCC likes to mingle into the prologue. Fixes
698 gdb/1253 and gdb/1255.
699
700 2003-08-09 Andrew Cagney <cagney@redhat.com>
701
702 Fix GDB PR cli/926.
703 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
704 * command.h (add_setshow_uinteger_cmd): Declare.
705 * frame.c (set_backtrace_cmd): New function.
706 (show_backtrace_cmd): New function.
707 * frame.c (_initialize_frame): Replace "set/show
708 backtrace-below-main" with "set/show backtrace past-main". Add
709 command "set/show backtrace limit".
710 (backtrace_past_main): Rename "backtrace_below_main".
711 (backtrace_limit): New variable.
712 (get_prev_frame): Update. Check the backtrace_limit.
713
714 2003-08-09 Andrew Cagney <cagney@redhat.com>
715
716 * defs.h (xstrprintf): Declare.
717 * utils.c (xstrprintf): New function.
718 * breakpoint.c (insert_breakpoints): Replace sprintf and
719 non-literal format strings, with xstrprintf and cleanups.
720 (delete_breakpoint,breakpoint_re_set): Ditto.
721 (commands_command, insert_breakpoints): Ditto.
722 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
723 (break_at_finish_command_1): Ditto.
724
725 2003-08-09 Andrew Cagney <cagney@redhat.com>
726
727 * MAINTAINERS (language support): List Adam Fedor as Objective C
728 maintainer.
729
730 2003-08-08 J. Brobecker <brobecker@gnat.com>
731
732 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
733 are now multiarched.
734
735 2003-08-08 J. Brobecker <brobecker@gnat.com>
736
737 * config/pa/tm-hppa64.h: Remove lots of macros that are no
738 longer necessary now that hppa64 is partially multiarch'ed.
739
740 2003-08-08 Andrew Cagney <cagney@redhat.com>
741
742 * interps.c (interp_set): Check for a NULL "old_interp".
743
744 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
745
746 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
747 (install-only): Support DESTDIR.
748 (uninstall): Likewise.
749 (install-gdbtk): Likewise.
750
751 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
752
753 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
754 contains something meaningful at all times.
755
756 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
757
758 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
759
760 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
761
762 * MAINTAINERS (write after approval): Added self.
763
764 2003-08-07 Andrew Cagney <cagney@redhat.com>
765
766 * inferior.h (AT_SYMBOL): Define.
767 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
768 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
769 * mips-tdep.c (mips_call_dummy_address): Delete function.
770 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
771 set call_dummy_address.
772
773 2003-08-07 Andrew Cagney <cagney@redhat.com>
774
775 * language.c (op_error): Delete function.
776 (binop_type_check): Delete function.
777 * language.h (type_op_error, range_op_error): Delete macros.
778 (op_error): Delete declaration.
779
780 2003-08-07 Andrew Cagney <cagney@redhat.com>
781
782 * interps.h (INTERP_MI2, INTERP_MI3): Define.
783
784 2003-08-07 Michal Ludvig <mludvig@suse.cz>
785
786 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
787 (x86_64_push_arguments): Skip the red zone.
788
789 2003-08-05 Andrew Cagney <cagney@redhat.com>
790
791 * reggroups.c (reggroup_next): Check for the final entry.
792
793 2003-08-04 Andrew Cagney <cagney@redhat.com>
794
795 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
796 * cli/cli-script.c (define_command): Call query directly, instead
797 of passing it a buffer.
798 * ocd.c (ocd_error): Pass error a constant format string.
799 * remote-mips.c (mips_error): Use fputs_filtered.
800
801 * solib-svr4.c (_initialize_svr4_solib): Update
802 register_gdbarch_data call.
803 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
804
805 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
806 (register_gdbarch_data): Delete "free" parameter. Update
807 comments.
808 * gdbarch.h, gdbarch.c: Re-generate.
809 * reggroups.c (_initialize_reggroup): Update.
810 * gnu-v3-abi.c (init_gnuv3_ops): Update.
811 * frame-base.c (_initialize_frame_base): Update.
812 * frame-unwind.c (_initialize_frame_unwind): Update.
813 * user-regs.c (_initialize_user_regs): Update.
814 * remote.c (_initialize_remote): Update.
815 * regcache.c (_initialize_regcache): Update.
816
817 * regcache.c (xfree_regcache_descr): Delete function.
818 (_initialize_regcache): Update call to register_gdbarch_data.
819 (init_regcache_descr, init_legacy_regcache_descr): Use
820 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
821
822 * remote.c (free_remote_state): Delete function.
823 (_initialize_remote): Update register_gdbarch_data.
824 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
825 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
826
827 2003-08-04 Andrew Cagney <cagney@redhat.com>
828
829 * reggroups.c (struct reggroup_el): Define.
830 (struct reggroups): Delete field "nr_group". Replace array
831 "group" with a "first" to "last" linked list.
832 (reggroups_init): Update. Allocate using gdbarch's obstack.
833 (reggroups_free): Delete function.
834 (add_group): Update. Add "el" parameter.
835 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
836 (default_groups): Update.
837 (reggroup_next): Replace reggroups.
838 (reggroups_dump): Update.
839 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
840 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
841 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
842
843 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
844
845 * Makefile.in (tui-interp.o): Update dependencies.
846
847 2003-08-04 David Carlton <carlton@kealia.com>
848
849 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
850 to internal_error call.
851 * source.c (forward_search_command): Add "%s" format argument.
852 (reverse_search_command): Ditto.
853 * top.c (quit_confirm): Ditto.
854 * cli/cli-setshow.c (do_setshow_command): Ditto.
855 * cp-valprint.c (cp_print_class_method): Replace
856 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
857 (cp_print_class_member): Ditto.
858 * event-top.c (command_line_handler): Ditto.
859 * linux-proc.c (linux_info_proc_cmd): Ditto.
860 * p-typeprint.c (pascal_type_print_base): Ditto.
861 * p-valprint.c (pascal_object_print_class_method): Ditto.
862 (pascal_object_print_class_member): Ditto.
863 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
864 * remote.c (remote_cisco_section_offsets): Ditto.
865 * top.c (command_line_input): Ditto.
866 * utils.c (vwarning,error_stream,quit): Ditto.
867 * valprint.c (print_floating,print_binary_chars)
868 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
869
870 2003-08-04 Andrew Cagney <cagney@redhat.com>
871
872 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
873
874 2003-08-02 Andrew Cagney <cagney@redhat.com>
875
876 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
877 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
878 amd64fbsd-nat.c.
879
880 2003-08-02 Andrew Cagney <cagney@redhat.com>
881
882 * Makefile.in: Update all dependencies and definitions.
883
884 2003-08-02 Adam Fedor <fedor@gnu.org>
885
886 * linespec.c (is_objc_method_format): New function
887 (decode_line_1, locate_first_half): Use it.
888 Fixes PR objc/1298
889
890 2003-08-01 Andrew Cagney <cagney@redhat.com>
891
892 * NEWS: Mention that m32r is multi-arch.
893 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
894 * configure.tgt: Recognize m32r-*-*.
895 * config/m32r/tm-m32r.h: Delete file.
896 * config/m32r/m32r.mt: New file.
897 * m32r-rom.c (m32r_upload_command): Use hostent only when
898 gethostname succeeds, in order to avoid a compilation
899 warning.
900 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
901 compiler warning.
902
903 2003-08-01 Michael Snyder <msnyder@redhat.com>
904
905 * sh-tdep.c (sh_frame_align): New gdbarch method.
906 (sh_gdbarch_init): Set up frame_align method.
907
908 2003-07-31 Michael Snyder <msnyder@redhat.com>
909
910 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
911 which is already covered by the new frames infrastructure.
912
913 2003-07-31 Andrew Cagney <cagney@redhat.com>
914
915 * user-regs.c (struct user_reg): Add "next" link.
916 (struct user_regs): Replace "user" with "first" and "last" links.
917 (append_user_reg): Add pre-allocated "reg" parameter.
918 (builtin_user_regs): Provide initial value for "last".
919 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
920 (user_regs_init): Allocate memory from the gdbarch obstack.
921 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
922 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
923 linked list.
924 (usernum_to_user_reg): New function.
925 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
926 (value_of_user_reg): Use usernum_to_user_reg.
927 (user_regs_free): Delete function.
928 (_initialize_user_regs): Update register_gdbarch_data call.
929
930 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
931
932 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
933
934 2003-07-30 Michael Snyder <msnyder@redhat.com>
935
936 * value.h (value_being_returned): Add a struct_addr argument.
937 * infcall.c (call_function_by_hand): Pass struct_addr to
938 value_being_returned.
939 * infcmd.c (print_return_value): Pass zero as struct_addr.
940 * values.c (value_being_returned): If struct_addr is passed,
941 use it instead of trying to recover it from the inferior.
942
943 2003-07-30 Kevin Buettner <kevinb@redhat.com>
944
945 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
946 the prologue analyzer won't need to attempt to extract the pc
947 value from the woefully incomplete dummy frame.
948 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
949 possible. Disable code which modifies the frame.
950
951 2003-07-28 Andrew Cagney <cagney@redhat.com>
952
953 * annotate.c (annotate_breakpoints_headers): Restrict annotation
954 to level 2.
955 (annotate_breakpoints_table, annotate_record): Ditto.
956 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
957 (annotate_field_name_end, annotate_field_value): Ditto.
958 (annotate_field_end, annotate_frame_source_begin): Ditto.
959 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
960 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
961 (annotate_frame_begin, annotate_frame_function_name): Ditto.
962 (annotate_frame_address_end, annotate_frame_address): Ditto.
963 (annotate_frame_args, annotate_frame_end): Ditto.
964 (annotate_frame_where, annotate_arg_begin): Ditto.
965 (annotate_arg_name_end, annotate_arg_value): Ditto.
966 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
967 (annotate_function_call, annotate_signal_name): Ditto.
968 (annotate_signal_string, annotate_signal_name_end): Ditto.
969 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
970 (annotate_value_begin, annotate_value_history_value): Ditto.
971 (annotate_value_history_end, annotate_value_end): Ditto.
972 (annotate_display_begin, annotate_display_number_end): Ditto.
973 (annotate_display_format, annotate_display_expression): Ditto.
974 (annotate_display_expression_end, annotate_display_value): Ditto.
975 (annotate_display_end, annotate_array_section_begin): Ditto.
976 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
977 (annotate_elt, annotate_array_section_end): Ditto.
978
979 2003-07-28 Andrew Cagney <cagney@redhat.com>
980
981 * regcache.c (struct regcache_descr): Update comments on
982 nr_raw_registers.
983 (init_legacy_regcache_descr): Don't set nr_raw_registers or
984 sizeof_raw_register_valid_p.
985 (init_regcache_descr): Set nr_raw_registers and
986 sizeof_raw_register_valid_p before calling
987 init_legacy_regcache_descr.
988
989 2003-07-28 Andrew Cagney <cagney@redhat.com>
990
991 * mips-tdep.c (print_gp_register_row): Print the GPR's register
992 MOD NUM_REGS.
993
994 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
995
996 * thread.c (info_threads_command): Use get_selected_frame ().
997 Check that there is at least one non-sentinel frame.
998
999 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1000
1001 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1002 (m68hc11_pop_frame): Remove.
1003 (m68hc11_frame_saved_pc): Remove.
1004 (m68hc11_frame_chain): Remove.
1005 (m68hc11_frame_init_saved_regs): Remove.
1006 (m68hc11_init_extra_frame_info): Remove.
1007 (m68hc11_store_struct_return): Remove.
1008 (m68hc11_saved_pc_after_call): Remove.
1009
1010 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1011
1012 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1013 frame unwind information.
1014 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1015 and adapted for frame unwinding.
1016 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1017 (m68hc11_unwind_pc): New function.
1018 (m68hc11_frame_unwind_cache): New function to analyze frames.
1019 (m68hc11_frame_this_id): New function to create new frame struct.
1020 (m68hc11_frame_prev_register): New function to unwind a register from
1021 the frame.
1022 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1023 (m68hc11_frame_p): New function for the above.
1024 (m68hc11_frame_base_address): New function to return fp of frame.
1025 (m68hc11_frame_args_address): Update for frame.
1026 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1027 (m68hc11_unwind_sp): New function.
1028 (m68hc11_unwind_dummy_id): New function.
1029 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1030 calls.
1031
1032 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1033
1034 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1035 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1036 when we are beyond the current pc.
1037
1038 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1039
1040 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1041 from m68hc11_push_arguments.
1042 (m68hc11_push_arguments): Remove.
1043 (m68hc11_push_return_address): Remove.
1044 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1045 handlers; remove deprecated_extra_stack_alignment_needed.
1046
1047 2003-07-27 Andrew Cagney <cagney@redhat.com>
1048
1049 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1050 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1051 REAL_PC and not the pointer.
1052 * hppa-hpux-tdep.c: Include frame.h
1053
1054 2003-07-27 Andrew Cagney <cagney@redhat.com>
1055
1056 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1057 GDB_MULTI_ACH_PARTIAL.
1058
1059 2003-07-27 Andrew Cagney <cagney@redhat.com>
1060
1061 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1062 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1063 operator at start and not end of line.
1064 (decode_prologue): Ditto.
1065 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1066 frame_unwind_register_unsigned instead of
1067 frame_unwind_unsigned_register.
1068 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1069 read_register.
1070 (m32r_push_dummy_call): Use register_size instead of
1071 REGISTER_RAW_SIZE.
1072 (m32r_frame_sniffer): Replace m32r_frame_p.
1073 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1074 * m32r-rom.c (report_transfer_performance): Delete extern
1075 declaration.
1076 (m32r_load, m32r_upload_command): Use print_transfer_performance
1077 instead of report_transfer_performance.
1078 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1079 / add_show_from_set.
1080
1081 2003-07-26 Andrew Cagney <cagney@redhat.com>
1082
1083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1084 store_return_value and extract_struct_value_address.
1085
1086 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1087
1088 PR c++/1267
1089 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1090 NULL, default to the section containing PC.
1091
1092 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1093
1094 * NEWS: Mention "regs" deprecated for m68hc11 too.
1095
1096 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1097 (m68hc11_print_register): New function to print out one register.
1098 (m68hc11_print_registers_info): New function to print registers.
1099 (show_regs): Deprecate and use the above.
1100 (m68hc11_gdbarch_init): Install the print_registers_info.
1101
1102 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1103
1104 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1105 that we have a SIGTRAP before returning non-zero.
1106
1107 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1108 Elena Zannoni <ezannoni@redhat.com>
1109
1110 * linespec.c (decode_line_2): Avoid crash if
1111 find_function_start_sal() returns empty record.
1112
1113 2003-07-23 Andreas Schwab <schwab@suse.de>
1114
1115 * ia64-tdep.c (ia64_print_insn): New function.
1116 (ia64_gdbarch_init): Set print_insn to it.
1117 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1118 deprecated_tm_print_insn_info.
1119
1120 2003-07-22 Michael Snyder <msnyder@redhat.com>
1121
1122 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1123 handle 8-bit returns (long long).
1124 (h8300h_extract_return_value): Ditto.
1125 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1126
1127 2003-07-22 Andrew Cagney <cagney@redhat.com>
1128
1129 * gdbarch.c Include "gdb_obstack.h".
1130 (struct gdbarch): Add an "obstack".
1131 (alloc_gdbarch_data): Allocate the gdbarch data using
1132 GDBARCH_OBSTACK_CALLOC.
1133 (free_gdbarch_data): Delete function.
1134 (gdbarch_obstack_zalloc): New function.
1135 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1136 Assert that the architecture is not initialized.
1137 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1138 vector from the obstack.
1139 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1140 architecture obstack.
1141 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1142 (set_gdbarch_data): Assert that the data is not initialized.
1143 (struct gdbarch_data): Delete member "free".
1144 (register_gdbarch_data): Do not initialize "free".
1145 * gdbarch.h, gdbarch.c: Re-generate.
1146
1147 2003-07-22 Andrew Cagney <cagney@redhat.com>
1148
1149 * configure.in (build_warnings): Add -Wformat-nonliteral.
1150 * configure: Re-generate.
1151
1152 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1153
1154 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1155
1156 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1157
1158 * findvar.c (read_var_value): Remove case for thread local storage
1159 variables. It is now entirely handled by the dwarf2 location
1160 expression code.
1161 * printcmd.c (address_info): Ditto.
1162 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1163 enumeration value.
1164 (struct symbol): Remove objfile field, which was used by
1165 LOC_THREAD_LOCAL_STATIC only.
1166 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1167 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1168 usage of objfile pointer.
1169 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1170 thread local variables.
1171 Add include of objfiles.h.
1172 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1173 storage variables.
1174 * Makefile.in (dwarf2loc.o): Update dependencies.
1175
1176 2003-07-22 Andrew Cagney <cagney@redhat.com>
1177
1178 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1179 get_frame_base.
1180 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1181 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1182 (struct value): Add opaque declaration.
1183 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1184
1185 2003-07-21 Andrew Cagney <cagney@redhat.com>
1186
1187 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1188 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1189
1190 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1191
1192 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1193 regcache_cooked_read_unsigned instead of read_register.
1194 (m68hc11_saved_pc_after_call): Likewise.
1195 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1196 instead of write_register.
1197 (m68hc11_register_type): New function.
1198 (m68hc11_register_virtual_type): Remove.
1199 (m68hc11_store_return_value): Convert to use the regcache.
1200 (m68hc11_extract_struct_value_address): Likewise.
1201 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1202 m68hc11_register_type; undeprecate store_return_value and
1203 extract_struct_value_address.
1204
1205 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1206
1207 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1208 and translate to use regcache.
1209 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1210
1211 2003-07-18 Andrew Cagney <cagney@redhat.com>
1212
1213 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1214 * gdbarch.h, gdbarch.c: Re-generate.
1215 * i386-tdep.c (i386_gdbarch_init): Do not set
1216 DWARF2_BUILD_FRAME_INFO.
1217 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1218 unconditionally.
1219 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1220 DWARF2_BUILD_FRAME_INFO.
1221
1222 2003-07-18 Andrew Cagney <cagney@redhat.com>
1223
1224 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1225 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1226
1227 2003-07-18 Andrew Cagney <cagney@redhat.com>
1228
1229 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1230 frame_unwind_address_in_block, instead of frame_pc_unwind.
1231 (dwarf2_frame_cache): Ditto.
1232
1233 2003-07-18 Andrew Cagney <cagney@redhat.com>
1234
1235 * user-regs.h (struct gdbarch): Declare opaque.
1236 * ui-out.h (struct ui_file): Declare opaque.
1237 * dwarf2-frame.h (struct frame_info): Declare opaque.
1238
1239 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1240
1241 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1242 #include "...".
1243 (procfs_meminfo): Change strerror to safe_strerror.
1244 (procfs_can_run): Remove K&R badness.
1245
1246 2003-07-17 Michael Snyder <msnyder@redhat.com>
1247
1248 * remote-sim.c: Comment typo fix.
1249
1250 2003-07-17 Andrew Cagney <cagney@redhat.com>
1251
1252 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1253 configure.
1254 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1255 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1256 GDB_MULTI_ARCH_PARTIAL.
1257
1258 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1259
1260 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1261 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1262 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1263
1264 2003-07-16 Theodore A. Roth <troth@openavr.org>
1265
1266 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1267 found.
1268 (avr_frame_unwind_cache): Don't unwind FP for main.
1269 Update a comment.
1270 Save the computed prev_sp.
1271 (avr_saved_regs_unwinder): Remove function.
1272 (avr_frame_prev_register): Use PC unwind logic from
1273 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1274
1275 2003-07-16 Andrew Cagney <cagney@redhat.com>
1276
1277 * frame-base.h (frame_base_p_ftype): Delete definition.
1278 (frame_base_append_predicate): Delete declaration.
1279 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1280 (frame_unwind_append_predicate): Delete declaration.
1281 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1282 (append_predicate): Delete parameter "p".
1283 (frame_unwind_append_predicate): Delete function.
1284 (frame_unwind_append_sniffer): Update call to append_predicate.
1285 (frame_unwind_free): Delete function.
1286 (_initialize_frame_unwind): Pass NULL as "free" to
1287 register_gdbarch_data.
1288 (frame_unwind_init): Append the dummy_frame_sniffer.
1289 (frame_unwind_find_by_frame): Simplify.
1290 * frame-base.c (struct frame_base_table): Delete field "p".
1291 (append_predicate): Delete parameter "p".
1292 (frame_base_append_predicate): Delete function.
1293 (frame_base_append_sniffer): Update call to append_predicate.
1294 (frame_base_free): Delete function.
1295 (frame_base_find_by_frame): Simplify.
1296 (_initialize_frame_base): Pass NULL as "free" to
1297 register_gdbarch_data.
1298 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1299 (x86_64_sigtramp_frame_sniffer): Replace
1300 "x86_64_sigtramp_frame_p".
1301 (x86_64_init_abi): Set the frame unwind sniffers.
1302 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1303 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1304 (m68k_gdbarch_init): Set the frame unwind sniffers.
1305 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1306 "i386_sigtramp_frame_p".
1307 (i386_frame_sniffer): Replace "i386_frame_p".
1308 (i386_gdbarch_init): Set the frame unwind sniffers.
1309 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1310 (avr_gdbarch_init): Set the frame unwind sniffers.
1311 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1312 "alpha_sigtramp_frame_p"
1313 (alpha_heuristic_frame_sniffer): Replace
1314 "alpha_heuristic_frame_p".
1315 (alpha_gdbarch_init): Set the frame unwind sniffers.
1316 (alpha_dwarf2_init_abi): Ditto.
1317 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1318 "alpha_debug_frame_p".
1319 (alpha_mdebug_frame_base_sniffer): Replace
1320 "alpha_mdebug_frame_base_p".
1321 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1322 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1323 (d10v_gdbarch_init): Set the frame unwind sniffer.
1324 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1325 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1326 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1327 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1328 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1329 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1330
1331 2003-07-16 Michael Snyder <msnyder@redhat.com>
1332
1333 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1334 should go thru sh_dsp_register_sim_regno, else the dsp regs
1335 will not get the right values.
1336
1337 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1338
1339 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1340 deprecated_store_floating by call to store_typed_floating.
1341 (sh_sh4_register_convert_to_raw): Substitute call to
1342 deprecated_extract_floating by call to extract_typed_floating.
1343
1344 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1345
1346 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1347
1348 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1349
1350 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1351 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1352 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1353 as possible.
1354 (do_pseudo_register): Remove.
1355 (sh_push_dummy_code): New function.
1356 (sh64_store_struct_return): Rename from sh_store_struct_return.
1357 Only called for sh64 now.
1358 (sh_extract_struct_value_address): Regcache'ify.
1359 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1360 and accomodate new tasks.
1361 (sh64_push_return_address): Rename from sh_push_return_address.
1362 Only called for sh64 now.
1363 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1364 Regcache'ify.
1365 (sh3e_sh4_extract_return_value): Regcache'ify.
1366 (sh_default_store_return_value): Ditto.
1367 (sh3e_sh4_store_return_value): Ditto.
1368 (sh_default_register_byte): Remove.
1369 (sh_sh4_register_byte): Remove.
1370 (sh_default_register_raw_size): Remove.
1371 (sh_sh4_register_raw_size): Remove.
1372 (sh_register_virtual_size): Remove.
1373 (sh_sh3e_register_virtual_type): Remove.
1374 (sh_sh3e_register_type): New function.
1375 (sh_sh4_register_virtual_type): Remove.
1376 (sh_sh4_register_type): New function.
1377 (sh_default_register_virtual_type): Remove.
1378 (sh_default_register_type): New function.
1379 (do_fv_register_info): Add parameters to accomodate call from
1380 sh_print_registers_info.
1381 (do_dr_register_info): Ditto.
1382 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1383 Add parameters to accomodate call from sh_print_registers_info.
1384 (sh_do_fp_register): Ditto.
1385 (sh64_do_pseudo_register): Call do_dr_register_info,
1386 do_fv_register_info and sh_do_fp_register with default parameters.
1387 (sh_do_register): Add parameters to accomodate call from
1388 sh_print_registers_info.
1389 (sh_print_register): Ditto.
1390 (sh_print_registers_info): Rename from sh_do_registers_info.
1391 Add parameters to be used as gdbarch_print_registers_info
1392 implementation. Accomodate removed do_pseudo_register function
1393 pointer.
1394 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1395 function pointer. Call sh_print_register with default parameters.
1396 (sh64_do_registers_info): Call sh_print_registers_info instead of
1397 sh_do_registers_info.
1398 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1399 detection of deprecated vs. non-deprecated functionality.
1400 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1401 function pointer assignments by direct function calls.
1402
1403 2003-07-15 Andrew Cagney <cagney@redhat.com>
1404
1405 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1406 (frame_register_unwind, create_new_frame): Ditto.
1407 (legacy_get_prev_frame, get_frame_type): Ditto.
1408 (get_frame_base_address): Use frame_base_find_by_frame.
1409 (get_frame_locals_address): Use frame_base_find_by_frame.
1410 (get_frame_args_address): Use frame_base_find_by_frame.
1411 * frame-base.h (frame_base_sniffer_ftype): Declare.
1412 (frame_base_append_sniffer): Declare.
1413 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1414 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1415 (frame_base_append_sniffer): New function.
1416 (frame_base_append_predicate): Add a NULL sniffer.
1417 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1418 (struct frame_base_table): Add "sniffer".
1419 (frame_base_free): Free the "sniffer" table.
1420 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1421 (frame_unwind_append_sniffer): Declare.
1422 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1423 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1424 (struct frame_unwind_table): Add "sniffer", delete "middle".
1425 (append_predicate): Add "sniffer" parameter, append the sniffer.
1426 (frame_unwind_init): Update append_predicate call.
1427 (frame_unwind_append_sniffer): New function.
1428 (frame_unwind_append_predicate): Update append_predicate call.
1429 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1430
1431 2003-07-15 Andrew Cagney <cagney@redhat.com>
1432
1433 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1434 before code inhibiting repeated unwind attempts. Add to
1435 commentary on that test's problems.
1436 * blockframe.c (inside_main_func): Look for "main" in the minimal
1437 symbol table.
1438 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1439 identical.
1440
1441 2003-07-15 Andrew Cagney <cagney@redhat.com>
1442
1443 * complaints.c (struct explanation): Define.
1444 (struct complaints): Change type of "explanation" to "struct
1445 explanation".
1446 (symfile_explanations): Convert to a "struct explanation" table.
1447 (vcomplaint): Update.
1448
1449 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1450
1451 * x86-64-linux-nat.c (regmap): Removed.
1452 (supply_gregset, fill_gregset): Call
1453 x86_64_linux_(fill,supply)_gregset functions.
1454 * x86-64-linux-tdep.c (USER_*): New defines.
1455 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1456 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1457 New functions.
1458 (fetch_core_registers): Ditto.
1459 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1460 * x86-64-linux-tdep.h: New file.
1461 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1462 and core-regset.o.
1463 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1464
1465 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1466
1467 * x86-64-tdep.c (x86_64_store_return_value): Use
1468 regcache_cooked_write_part instead of regcache_cooked_write.
1469
1470 * configure.host: Add x86_64-*-freebsd*.
1471 * configure.tgt: Add x86_64-*-freebsd*.
1472 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1473 * amd64fbsd-nat.c: New file.
1474 * amd64fbsd-tdep.c: New file.
1475 * config/i386/nm-fbsd64.h: New file.
1476 * config/i386/fbsd64.mh: New file.
1477 * config/i386/fbsd64.mt: New file.
1478
1479 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1480
1481 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1482 `sc_regs_offset' and `sc_fpregs_offset'.
1483 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1484 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1485 (alpha_sigtramp_register_address): Rewrite to use new members of
1486 `struct gdbarch_tdep'.
1487 (alpha_gdbarch_init): Initialize new members of struct
1488 gdbarch_tdep'.
1489 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1490 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1491 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1492 (alphafbsd_pc_in_sigtramp): Implement.
1493 (alphafbsd_sigtramp_offset): New function.
1494 (alphafbsd_sigcontext_addr): New function.
1495 (alphafbsd_init_abi): Initialize signal trampoline related members
1496 of `struct gdbarch_tdep'.
1497 (_initialize_alphafbsd_tdep): Add prototype.
1498
1499 2003-07-11 Theodore A. Roth <troth@openavr.org>
1500
1501 * Makefile.in (install-only): Quote sed expression when generating
1502 transformed_name.
1503
1504 2003-07-11 Richard Henderson <rth@redhat.com>
1505
1506 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1507 * dwarf2-frame.c: Include complaints.h.
1508 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1509 variable initialization; return NULL on error.
1510 (decode_frame_entry): New.
1511
1512 2003-07-11 Andrew Cagney <cagney@redhat.com>
1513
1514 * frame.h (frame_address_in_block): Delete declaration.
1515 * blockframe.c (frame_address_in_block): Delete function.
1516 (get_frame_block): Use get_frame_address_in_block.
1517 (block_innermost_frame): Ditto.
1518 * stack.c (print_frame, backtrace_command_1): Ditto.
1519
1520 * frame.h (get_frame_address_in_block): Declare.
1521 (frame_unwind_address_in_block): Declare.
1522 * frame.c (frame_unwind_address_in_block): New function.
1523 (get_frame_address_in_block): New function.
1524
1525 2003-07-10 Andrew Cagney <cagney@redhat.com>
1526
1527 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1528 pre-default. Note: re-generate has no effect.
1529
1530 2003-07-10 Andrew Cagney <cagney@redhat.com>
1531
1532 * gdbarch.sh: When a variable, but not a function, compare against
1533 0. Fix problem in previous patch.
1534 * gdbarch.c: Re-generate.
1535
1536 2003-07-10 Andrew Cagney <cagney@redhat.com>
1537
1538 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1539 functions against NULL, not 0.
1540 * gdbarch.c: Re-generate.
1541
1542 2003-07-10 Fred Fish <fnf@ninemoons.com>
1543
1544 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1545 null string instead of a null pointer.
1546 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1547
1548 2003-07-09 Michael Snyder <msnyder@redhat.com>
1549
1550 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1551
1552 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1553
1554 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1555 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1556 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1557 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1558 * x86-64-tdep.c: ... from here.
1559
1560 2003-07-09 Andreas Schwab <schwab@suse.de>
1561
1562 * m68k-tdep.h (enum struct_return): Define.
1563 (struct gdbarch_tdep): Add struct_return.
1564 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1565 bytes are padded to the right, not to the left. Pass struct value
1566 address in register %a1, not on stack.
1567 (m68k_use_struct_convention): New function.
1568 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1569 struct_return in tdep to pcc_struct_return.
1570 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1571 reg_struct_return.
1572
1573 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1574
1575 * somread.c (som_symfile_offsets): Fix compilation error.
1576
1577 2003-07-09 Andrew Cagney <cagney@redhat.com>
1578
1579 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1580 Add comments about the checks.
1581
1582 2003-07-08 Andrew Cagney <cagney@redhat.com>
1583
1584 * Makefile.in: Make dependency section headers consistent.
1585 (config_h): Move to $BUILD headers section.
1586 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1587 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1588 (ada-exp.tab.c): Move to YACC/LEX section.
1589 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1590 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1591
1592 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1593
1594 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1595 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1596 of strerror with safe_strerror, use ISO C function definitions,
1597 and replace instances of sprintf with snprintf.
1598
1599 2003-07-07 Andrew Cagney <cagney@redhat.com>
1600
1601 * frame.c (get_prev_frame): Enable check for identical frames.
1602 Update comments. Update error messages.
1603
1604 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1605
1606 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1607
1608 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1609
1610 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1611 sort_symtab_syms, no longer necessary.
1612
1613 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1614
1615 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1616
1617 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1618
1619 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1620 (mips_register_byte): Likewise.
1621
1622 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1623
1624 * Makefile.in (sparc_tdep_h): New.
1625 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1626 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1627 * sparc-linux-nat.c: Include "sparc-tdep.h".
1628 * sparc-nat.c: Likewise.
1629 * sparc-tdep.c: Likewise.
1630 * sparc64nbsd-nat.c: Likewise.
1631 * sparcnbsd-nat.c: Likewise.
1632 * sparcnbsd-tdep.c: Likewise.
1633 * sparc-tdep.h: New file.
1634 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1635 and sparc_npc_regnum.
1636
1637 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1638
1639 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1640 (mips_linux_cannot_store_register): List supported instead of
1641 unsupported registers.
1642
1643 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1644
1645 * disasm.c (dump_insns): Separate instructions from addresses.
1646
1647 2003-07-07 Andreas Schwab <schwab@suse.de>
1648
1649 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1650 dependencies.
1651 * m68k-tdep.c (NUM_FREGS): Delete.
1652 (SIG_PC_FP_OFFSET): Delete.
1653 (TARGET_M68K): Delete.
1654 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1655 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1656 P_MOVEL_SP, P_MOVEML_SP): Define.
1657 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1658 P_TRAP): Delete.
1659 (m68k_register_raw_size): Delete.
1660 (m68k_register_virtual_size): Delete.
1661 (m68k_register_type): Renamed from m68k_register_virtual_type and
1662 add gdbarch argument.
1663 (m68k_store_struct_return): Delete.
1664 (m68k_deprecated_extract_return_value): Delete.
1665 (m68k_deprecated_extract_struct_value_address): Delete.
1666 (m68k_frame_chain): Delete.
1667 (m68k_frame_saved_pc): Delete.
1668 (m68k_fix_call_dummy): Delete.
1669 (m68k_push_dummy_frame): Delete.
1670 (m68k_pop_frame): Delete.
1671 (m68k_extract_return_value): New function.
1672 (m68k_store_return_value): Rewrite using regcache.
1673 (m68k_extract_struct_value_address): Rewrite using regcache.
1674 (m68k_push_dummy_call): New function.
1675 (struct m68k_frame_cache): Define.
1676 (m68k_alloc_frame_cache): New function.
1677 (m68k_analyze_frame_setup): New function.
1678 (m68k_analyze_register_saves): New function.
1679 (m68k_analyze_prologue): New function.
1680 (m68k_skip_prologue): Rewrite using above functions.
1681 (m68k_unwind_pc): New function.
1682 (m68k_frame_cache): New function.
1683 (m68k_frame_this_id): New function.
1684 (m68k_frame_prev_register): New function.
1685 (m68k_frame_unwind): New variable.
1686 (m68k_frame_p): New function.
1687 (m68k_sigtramp_frame_cache): New function.
1688 (m68k_sigtramp_frame_this_id): New function.
1689 (m68k_sigtramp_frame_prev_register): New function.
1690 (m68k_sigtramp_frame_unwind): New variable.
1691 (m68k_sigtramp_frame_p): New function.
1692 (m68k_frame_base_address): New function.
1693 (m68k_frame_base): New function.
1694 (m68k_unwind_dummy_id): New function.
1695 (fill_gregset): Use regcache_collect.
1696 (fill_fpregset): Likewise.
1697 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1698 defined.
1699 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1700 deprecated_init_frame_pc, deprecated_store_struct_return,
1701 deprecated_extract_return_value, deprecated_store_return_value,
1702 deprecated_frame_chain, deprecated_frame_saved_pc,
1703 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1704 deprecated_register_virtual_size,
1705 deprecated_max_register_raw_size,
1706 deprecated_max_register_virtual_size,
1707 deprecated_register_virtual_type, deprecated_register_size,
1708 deprecated_register_byte, deprecated_register_bytes,
1709 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1710 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1711 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1712 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1713 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1714 deprecated_push_dummy_frame, deprecated_pop_frame,
1715 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1716 only if SYSCALL_TRAP is defined. Set extract_return_value,
1717 store_return_value, extract_struct_value_address, register_type,
1718 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1719 predicates.
1720 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1721 M68K_MAX_REGISTER_SIZE): Define.
1722 (struct m68k_sigtramp_info): Define.
1723 (struct gdbarch_tdep): Add get_sigtramp_info.
1724 * m68klinux-nat.c (fetch_register): Use register_size instead of
1725 REGISTER_RAW_SIZE. Don't put assignment in if.
1726 (store_register): Likewise.
1727 (fetch_inferior_registers): Likewise.
1728 (store_inferior_registers): Likewise.
1729 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1730 (m68k_linux_frame_saved_pc): Delete.
1731 (m68k_linux_sigcontext_reg_offset,
1732 m68k_linux_ucontext_reg_offset): Define.
1733 (m68k_linux_get_sigtramp_info): New function.
1734 (m68k_linux_extract_return_value): Rewrite using regcache.
1735 (m68k_linux_store_return_value): Likewise.
1736 (m68k_linux_extract_struct_value_address): Likewise.
1737 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1738 Don't set deprecated_frame_saved_pc,
1739 deprecated_extract_return_value, deprecated_store_return_value,
1740 deprecated_extract_struct_value_address. Set
1741 extract_return_value, store_return_value,
1742 extract_struct_value_address.
1743
1744 2003-07-07 Andrew Cagney <cagney@redhat.com>
1745
1746 * expprint.c: Include "user-regs.h" instead of "frame.h".
1747 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1748 frame_map_regnum_to_name.
1749 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1750 (frame_map_name_to_regnum): Simplify, call
1751 user_reg_map_name_to_regnum.
1752 (frame_map_regnum_to_name): Simplify, call
1753 user_reg_map_regnum_to_name.
1754 (frame_register_unwind): Update.
1755 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1756 (_initialize_frame_reg): Call user_reg_add_builtin.
1757 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1758 (value_of_register): Use value_of_user_reg.
1759 * eval.c (evaluate_subexp_standard): Update.
1760 * parse.c (write_dollar_variable): Update.
1761 * d10v-tdep.c (d10v_print_registers_info): Update.
1762 * infcmd.c (registers_info): Update.
1763 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1764 (builtin_regs_h): Delete macro.
1765 (user_regs_h): Define.
1766 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1767 (builtin-regs.o): Delete target.
1768 (user-regs.o): Specify dependencies.
1769 (expprint.o): Update dependencies.
1770 (findvar.o): Update dependencies.
1771 (frame.o): Update dependencies.
1772 (std-regs.o): Update dependencies.
1773
1774 2003-07-06 Christopher Faylor <cgf@redhat.com>
1775
1776 * win32-nat.c (solib_symbols_add): Use one variable for all section
1777 address stuff. Pass variable rather than address of variable to
1778 safe_symbol_file_add.
1779
1780 2003-07-06 Andreas Schwab <schwab@suse.de>
1781
1782 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1783
1784 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1785
1786 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1787
1788 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1789
1790 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1791
1792 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1793
1794 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1795 * config/i386/nto.mh: New file.
1796 * config/i386/nm-nto.h: New file.
1797 * configure.host: Add i[3456]86-*-nto*.
1798
1799 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1800
1801 * remote-vx.c (vx_add_symbols): Fix compilation error.
1802
1803 2003-07-03 Andrew Cagney <cagney@redhat.com>
1804
1805 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1806 * gdbarch.h, gdbarch.c: Re-generate.
1807 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1808 (legacy_register_name): Declare.
1809 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1810 (REGISTER_NAME): Define.
1811 * sparc-tdep.c (legacy_register_name): New function.
1812 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1813 (REGISTER_NAME): Define.
1814 (hppa64_register_name): Declare.
1815 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1816 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1817 (hppa64_register_name): New function.
1818 (hppa_register_name): New function.
1819 * arch-utils.c (legacy_register_name): Delete.
1820 * arch-utils.h (legacy_register_name): Delete.
1821
1822 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1823
1824 * cli/cli-interp.c (cli_interpreter_resume): Update the
1825 cli_uiout's stream to gdb_stdout.
1826
1827 2003-07-03 Andrew Cagney <cagney@redhat.com>
1828
1829 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1830 predicate.
1831 * gdbarch.h, gdbarch.c: Re-generate.
1832 * regcache.c (init_regcache_descr): Use legacy code when either
1833 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1834
1835 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1836
1837 * NEWS: Move "set logging" entry into GDB 6.0 section.
1838
1839 2003-07-02 Jim Blandy <jimb@redhat.com>
1840
1841 * s390-tdep.c (struct frame_extra_info): new member:
1842 'stack_bought_valid'.
1843 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1844 initialize fextra_info->stack_bought.
1845 (s390_frameless_function_invocation): Don't trust the value of
1846 fextra_info_ptr->stack_bought unless
1847 fextra_info->stack_bought_valid is set.
1848
1849 New S390 prologue analyzer.
1850 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1851 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1852 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1853 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1854 compute_x_addr, s390_on_stack, s390_store,
1855 s390_get_signal_frame_info): New functions.
1856 (S390_NUM_SPILL_SLOTS): New macro.
1857 (s390_get_frame_info): Rewritten.
1858 (is_arg_reg): Deleted.
1859
1860 Break out the decoding of S/390 instructions into separate
1861 functions, to make it more legible, and easier to check
1862 against the spec.
1863 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1864 is_rx, is_rxe): New functions.
1865 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1866 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1867 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1868 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1869 enums for opcode values. (Is this an improvement?)
1870
1871 2003-07-02 Andrew Cagney <cagney@redhat.com>
1872
1873 * i386-tdep.c: Revert change committed as part of trad-frame code
1874 below.
1875
1876 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1877
1878 * breakpoint.c (insert_catchpoint): Make static.
1879
1880 2003-07-02 Andreas Schwab <schwab@suse.de>
1881
1882 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1883 former ia64_push_arguments and ia64_push_return_address, and use
1884 regcache functions instead of read/write_register.
1885 (ia64_gdbarch_init): Set push_dummy_call instead of
1886 deprecated_push_arguments and deprecated_push_return_address.
1887
1888 2003-07-01 Andreas Jaeger <aj@suse.de>
1889
1890 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1891 before the call.
1892 Set %rax only to number of SSE registers used.
1893
1894 2003-07-01 Andrew Cagney <cagney@redhat.com>
1895
1896 * trad-frame.h: Update comments, a -1 .addr is reserved.
1897 (trad_frame_value_p, trad_frame_addr_p): Declare.
1898 (trad_frame_reg_p): Declare.
1899 (trad_frame_set_value): Rename trad_frame_register_value.
1900 (trad_frame_set_unknown): Declare.
1901 * trad-frame.c (trad_frame_realreg_p): New function.
1902 (trad_frame_addr_p, trad_frame_value_p): New function.
1903 (trad_frame_set_unknown): New function.
1904 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1905 (trad_frame_prev_register): Use trad_frame_realreg_p,
1906 trad_frame_addr_p and trad_frame_value_p.
1907 (trad_frame_set_value): Rename trad_frame_register_value.
1908 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1909 and trad_frame_set_value.
1910
1911 2003-06-30 Jim Blandy <jimb@redhat.com>
1912
1913 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1914 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1915 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1916 for 16 registers, and then 32 more bytes.
1917 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1918 New macros.
1919 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1920 Move up in the file, since it's now used by is_simple_arg.
1921 (is_simple_arg): Don't assume registers are four bytes long.
1922 Exclude all double arguments. Extended floats are not simple
1923 args.
1924 (is_power_of_two): New function.
1925 (pass_by_copy_ref): Call is_power_of_two, and check that the
1926 length fits in a register, rather than listing all the acceptable
1927 sizes. Extended floats are not passed by reference.
1928 (s390_push_arguments): Don't assume registers are four bytes long.
1929 Reserve an argument register to point to the buffer for structures
1930 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1931 S390_STACK_FRAME_OVERHEAD.
1932
1933 2003-06-30 Andreas Schwab <schwab@suse.de>
1934
1935 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1936 format error message.
1937
1938 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1939
1940 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1941
1942 2003-06-30 David Carlton <carlton@kealia.com>
1943
1944 Band-aid for PR c++/1245.
1945 * Makefile.in (cp-support.o): Depend on complaints_h.
1946 * cp-support.c: Include complaints.h. Add declaration for
1947 find_last_component.
1948 (cp_find_first_component): Separate code into
1949 cp_find_first_component_aux.
1950 (cp_find_first_component_aux): Call demangled_name_complaint.
1951 (demangled_name_complaint): New.
1952
1953 2003-06-30 Andrew Cagney <cagney@redhat.com>
1954
1955 * remote.c (remote_write_bytes): Explicitly compute and then use
1956 the payload size. Update comments to reflect. Fixes problem of
1957 GDB not sending small packets as found by Fred Fish.
1958
1959 2003-06-30 Andrew Cagney <cagney@redhat.com>
1960
1961 * remote.c (remote_async_wait): Fix -Wformat problem.
1962
1963 2003-06-29 Andrew Cagney <cagney@redhat.com>
1964
1965 * remote.c (remote_wait): Call error, and not warning, when the
1966 packet is corrupt.
1967 (remote_async_wait): Ditto.
1968
1969 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1970
1971 * sparc-tdep.c (sparc_y_regnum): Make external again.
1972
1973 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1974
1975 * cli/cli-logging.c (pop_output_files): Add void to function
1976 definition.
1977
1978 2003-06-29 Andrew Cagney <cagney@redhat.com>
1979
1980 * frame.c (frame_register_unwind): Use unsigned char when dumping
1981 the buffer contents.
1982
1983 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1984
1985 * cli/cli-logging.c: New file.
1986 * cli-out.c (struct ui_out_data): Add original_stream.
1987 (cli_redirect): New function.
1988 (cli_ui_out_impl): Add cli_redirect.
1989 (cli_out_new): Initialize original_stream.
1990 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1991 (uo_redirect, ui_out_redirect): New.
1992 * ui-out.h (struct ui_out_impl): Add redirect member.
1993 (redirect_ftype): New.
1994 (ui_out_redirect): Add prototype.
1995 * Makefile.in: Add rules for cli-logging.c.
1996 * NEWS: Mention "set logging".
1997
1998 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1999
2000 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2001
2002 2003-06-27 Andrew Cagney <cagney@redhat.com>
2003
2004 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2005 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2006 * avr-tdep.c (avr_call_dummy_address): Delete function.
2007 (avr_gdbarch_init): Do not set call_dummy_address.
2008
2009 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2010
2011 * symfile.c (syms_from_objfile): Move variables to inner block.
2012 Move the checks for the non-mainline case a bit earlier to avoid
2013 doing some useless computations.
2014
2015 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2016
2017 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2018
2019 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2020
2021 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2022 sections.
2023
2024 2003-06-26 Michael Chastain <mec@shout.net>
2025
2026 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2027 gdb/testsuite/gdb.c++/pr-1210.exp.
2028
2029 2003-06-26 Andrew Cagney <cagney@redhat.com>
2030
2031 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2032 altivec_expression.h and altivec_registers.h.
2033
2034 2003-06-26 Andrew Cagney <cagney@redhat.com>
2035
2036 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2037 info->mach when MIPS16. Patch suggested by Fred Fish.
2038
2039 2003-06-26 Andrew Cagney <cagney@redhat.com>
2040
2041 * utils.c (internal_vproblem): Print the problem to a reason
2042 buffer and then pass to query. Make the msg variable more local.
2043
2044 2003-06-26 Andrew Cagney <cagney@redhat.com>
2045
2046 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2047 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2048 * gdbarch.h, gdbarch.c: Re-generate.
2049 * frame-base.c (default_frame_args_address): Update. Use
2050 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2051 not available.
2052 (default_frame_locals_address): Ditto for
2053 DEPRECATED_FRAME_LOCALS_ADDRESS.
2054 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2055 (vax_frame_num_args): Update.
2056 (vax_gdbarch_init): Update.
2057 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2058 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2059 * mcore-tdep.c (mcore_gdbarch_init): Update.
2060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2061 * ia64-tdep.c (ia64_gdbarch_init): Update.
2062 * symtab.h (address_class): Update comments.
2063 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2064 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2065 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2066 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2067 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2068 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2069 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2070 * alpha-mdebug-tdep.c: Update.
2071 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2072
2073 2003-06-26 Andreas Jaeger <aj@suse.de>
2074
2075 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2076 of SSE registers so that varargs functions work. Rework handling
2077 of passing arguments on the stack.
2078 (x86_64_store_return_value): Return double and float values in SSE
2079 register.
2080
2081 2003-06-24 Michael Chastain <mec@shout.net>
2082
2083 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2084 the "constructor breakpoints ignored" bug.
2085
2086 2003-06-25 David Carlton <carlton@kealia.com>
2087
2088 * MAINTAINERS: Update e-mail address.
2089
2090 2003-06-24 Jim Blandy <jimb@redhat.com>
2091
2092 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2093
2094 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2095 function.
2096 (ppc_linux_init_abi): Register it as the
2097 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2098
2099 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2100 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2101 method.
2102
2103 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2104 (ppc64_standard_linkage_target): Use it.
2105
2106 2003-06-23 Andrew Cagney <cagney@redhat.com>
2107
2108 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2109 for 0 "int0" and 4 "int32" sized registers.
2110 * gdbtypes.c (builtin_type_int0): Define.
2111 (build_gdbtypes): Initialize builtin_type_int0.
2112 * gdbtypes.h (builtin_type_int0): Declare.
2113
2114 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2115
2116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2117 as characters are unsigned.
2118
2119 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2120
2121 PR gdb/1179
2122 * dwarfread.c (struct_type): Skip static fields without crashing.
2123
2124 2003-06-22 Andrew Cagney <cagney@redhat.com>
2125
2126 GDB 6.0 branch created.
2127 * README: Update.
2128 * PROBLEMS: Update. Empty.
2129 * NEWS: Update.
2130
2131 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2132
2133 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2134 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2135
2136 2003-06-22 Andrew Cagney <cagney@redhat.com>
2137
2138 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2139 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2140 Velikov.
2141
2142 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2143
2144 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2145 compilers.
2146
2147 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2148
2149 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2150 argument of val_print.
2151 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2152 to the address argument of baseclass_offset or target_read_memory.
2153 Do add it to the argument of cp_print_value_fields.
2154
2155 2003-06-21 Andrew Cagney <cagney@redhat.com>
2156
2157 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2158 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2159 instead of 0..NUM_REGS.
2160 (mips_register_reggroup_p): New function.
2161 (mips_pseudo_register_write): New function.
2162 (mips_pseudo_register_read): New function.
2163 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2164 based on the register's type.
2165 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2166 cooked.
2167 (mips_get_saved_register): Simplify. Assert that REGNO is a
2168 pseudo / cooked.
2169 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2170 (mips_register_type): Replace mips_register_virtual_type. Map
2171 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2172 when available.
2173 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2174 that the register is cooked / virtual.
2175 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2176 Only get the extra info when needed.
2177 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2178 (mips32_heuristic_proc_desc): Fetch the cooked register.
2179 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2180 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2181 (mips_print_register): Use gdbarch_register_type, instead of
2182 REGISTER_VIRTUAL_TYPE.
2183 (print_gp_register_row): Use gdbarch_register_type, instead of
2184 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2185 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2186 Print the pseudo / cooked registers.
2187 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2188 Print the pseudo / cooked registers.
2189 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2190 REG_NUM is pseudo / cooked.
2191 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2192 (mips_n32n64_xfer_return_value): Ditto.
2193 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2194 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2195 (mips_register_sim_regno): New function.
2196 (mips_gdbarch_init): Set deprecated_register_byte,
2197 register_group_p, pseudo_register_write, pseudo_register_read,
2198 register_sim_regno, and num_pseudo_regs. Set register_type,
2199 instead of register_virtual_type.
2200 * Makefile.in (mips-tdep.o): Update dependencies.
2201 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2202 REGISTER_VIRTUAL_TYPE.
2203 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2204 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2205 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2206 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2207 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2208
2209 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2210
2211 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2212 * cli/cli-cmds.c: Include "gdb_vfork.h".
2213 (shell_escape): Use vfork.
2214
2215 2003-06-21 Andrew Cagney <cagney@redhat.com>
2216
2217 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2218 32 bit floating-point register saves.
2219
2220 * frame.h (deprecated_unwind_get_saved_register): Delete.
2221 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2222 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2223 and deprecated_get_next_frame_hack instead of
2224 deprecated_unwind_get_saved_register.
2225
2226 * mips-tdep.c (mips_dump_tdep): Do not print
2227 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2228
2229 * frame.c (get_frame_register): New function.
2230 (frame_unwind_register_signed): New function.
2231 (get_frame_register_signed): New function.
2232 (frame_unwind_register_unsigned): New function.
2233 (get_frame_register_unsigned): New function.
2234 * frame.h: Add comments on naming schema.
2235 (get_frame_register, frame_unwind_register_signed): Declare.
2236 (get_frame_register_signed, get_frame_register_signed): Declare.
2237 (frame_unwind_register_unsigned): Declare.
2238 (get_frame_register_unsigned): Declare.
2239
2240 2003-06-20 Theodore A. Roth <troth@openavr.org>
2241
2242 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2243
2244 2003-06-20 Theodore A. Roth <troth@openavr.org>
2245
2246 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2247 (avr_read_sp): Ditto.
2248
2249 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2250
2251 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2252 * config/arm/nm-linux.h: Likewise.
2253 * config/arm/tm-linux.h: Likewise.
2254 * config/ia64/nm-linux.h: Likewise.
2255 * config/ia64/tm-ia64.h: Likewise.
2256 * config/s390/tm-linux.h: Likewise.
2257 * config/s390/tm-s390.h: Likewise.
2258 * s390-nat.c: Likewise.
2259 * s390-tdep.c: Likewise.
2260
2261 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2262 * config/ia64/linux.mt: Likewise.
2263 * config/m68k/linux.mh: Likewise.
2264 * config/mips/linux.mt: Likewise.
2265 * config/powerpc/linux.mh: Likewise.
2266 * config/sh/linux.mt: Likewise.
2267
2268 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2269
2270 * solib.c (solib_open): Change tests for whether to search
2271 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2272 comments.
2273
2274 2003-06-19 Theodore A. Roth <troth@openavr.org>
2275
2276 * avr-tdep.c (avr_frame_address): Delete function.
2277 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2278 set_gdbarch_frame_args_address.
2279
2280 2003-06-19 Andrew Cagney <cagney@redhat.com>
2281
2282 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2283 (REGISTER_CONVERT_FROM_TYPE): Delete.
2284 (mips_register_convert_to_type): Delete declaration.
2285 (mips_register_convert_from_type): Delete declaration.
2286 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2287 kernel/.
2288
2289 2003-06-19 Michael Snyder <msnyder@redhat.com>
2290
2291 * linux-nat.h: New file.
2292 * linux-nat.c: Include linux-nat.h.
2293 * lin-lwp.c: Include linux-nat.h.
2294 Move struct lwp_info def to linux-nat.h.
2295 * linux-proc.c: Include linux-nat.h.
2296 (linux_make_note_section): Iterate over lwps instead of threads.
2297 (linux_do_thread_registers): Use lwp instead of merged pid.
2298 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2299 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2300 Add dependency on linux_nat_h.
2301
2302 2003-06-19 Theodore A. Roth <troth@openavr.org>
2303
2304 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2305
2306 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2307
2308 * varobj.c (get_type, get_target_type): Use check_typedef.
2309
2310 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2311
2312 * breakpoint.c (insert_catchpoint): Call internal_error.
2313
2314 2003-06-19 Theodore A. Roth <troth@openavr.org>
2315
2316 * avr-tdep.c (avr_push_dummy_code): Delete function.
2317 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2318
2319 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2320
2321 * arch-utils.c (default_prepare_to_proceed): Remove.
2322 (generic_prepare_to_proceed): Remove.
2323 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2324 (generic_prepare_to_proceed): Remove prototype.
2325 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2326 * gdbarch.c: Regenerate.
2327 * gdbarch.h: Regenerate.
2328 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2329 * hppah-nat.c (hppa_switched_threads): Remove.
2330 * infrun.c (prepare_to_proceed): New static function, copied from
2331 generic_prepare_to_proceed. Remove select_it argument.
2332 (proceed): Call prepare_to_proceed.
2333 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2334 variables.
2335 (ptrace_wait): Don't set the removed variables.
2336 (hppa_switched_threads): Remove.
2337 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2338 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2339 (lin_lwp_prepare_to_proceed): Remove prototype.
2340 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2341 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2342
2343 2003-06-18 Theodore A. Roth <troth@openavr.org>
2344
2345 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2346 trad-frame.h.
2347 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2348 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2349 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2350 (AVR_PROLOGUE_*): Enumerate prologue types.
2351 (struct frame_extra_info): Remove.
2352 (struct avr_unwind_cache): Define.
2353 (avr_write_sp): Delete function.
2354 (avr_read_fp): Ditto.
2355 (avr_init_extra_frame_info): Ditto.
2356 (avr_pop_frame): Ditto.
2357 (avr_frame_saved_pc): Ditto.
2358 (avr_saved_pc_after_call): Ditto.
2359 (avr_push_return_address): Ditto.
2360 (avr_frame_chain): Ditto.
2361 (avr_store_struct_return): Ditto.
2362 (avr_push_arguments): Ditto.
2363 (avr_scan_prologue): Update comments. Changed to set up the info for
2364 cache unwinding. Now returns end of prologue PC.
2365 (avr_skip_prologue): Better handling of functions lacking a prologue
2366 by using avr_scan_prologue.
2367 (avr_scan_arg_moves): New function.
2368 (avr_saved_regs_unwinder): Ditto.
2369 (avr_frame_unwind_cache): Ditto.
2370 (avr_unwind_pc): Ditto.
2371 (avr_frame_this_id): Ditto.
2372 (avr_frame_prev_register): Ditto.
2373 (avr_frame_p): Ditto.
2374 (avr_frame_base_address ): Ditto.
2375 (avr_unwind_dummy_id): Ditto.
2376 (avr_push_dummy_code): Ditto.
2377 (push_stack_item): Ditto.
2378 (pop_stack_item): Ditto.
2379 (avr_push_dummy_call): Ditto.
2380 (struct stack_item): Define.
2381 (avr_frame_unwind): Declare structure.
2382 (avr_frame_base): Ditto.
2383 (avr_gdbarch_init): Remove calls to
2384 set_gdbarch_deprecated_init_frame_pc,
2385 set_gdbarch_deprecated_target_read_fp,
2386 set_gdbarch_deprecated_dummy_write_sp,
2387 set_gdbarch_deprecated_fp_regnum,
2388 set_gdbarch_deprecated_push_arguments,
2389 set_gdbarch_deprecated_push_return_address,
2390 set_gdbarch_deprecated_pop_frame,
2391 set_gdbarch_deprecated_store_struct_return,
2392 set_gdbarch_deprecated_frame_init_saved_regs,
2393 set_gdbarch_deprecated_init_extra_frame_info,
2394 set_gdbarch_deprecated_frame_chain,
2395 set_gdbarch_deprecated_frame_saved_pc,
2396 set_gdbarch_deprecated_saved_pc_after_call.
2397 Add calls to set_gdbarch_push_dummy_call,
2398 set_gdbarch_push_dummy_code,
2399 frame_unwind_append_predicate,
2400 frame_base_set_default,
2401 set_gdbarch_unwind_dummy_id,
2402 set_gdbarch_unwind_pc.
2403 Wrap a long line.
2404
2405 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2406
2407 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2408 registers for H8/300S.
2409 (h8300_print_registers_info): Ditto.
2410 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2411
2412 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2413
2414 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2415 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2416 (lin_lwp_wait): Likewise. Update comments.
2417 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2418 (pull_pid_from_list, linux_record_stopped_pid): New.
2419
2420 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2421
2422 * ada-lang.c (scan_discrim_bound): Name first argument.
2423 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2424 declared by ALL_BLOCK_SYMBOLS.
2425
2426 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2427
2428 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2429 ("regcache.h"): Include it.
2430 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2431
2432 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2433
2434 * NEWS: Mention gdbserver detach change and "disconnect" command.
2435 * infcmd.c (disconnect_command): New function.
2436 (_initialize_infcmd): Add ``disconnect'' command.
2437 * remote.c (remote_async_detach): Delete.
2438 (remote_detach): Merge remote_async_detach.
2439 (remote_disconnect): New.
2440 (init_remote_ops): Set to_disconnect.
2441 (init_remote_cisco_ops): Likewise.
2442 (init_remote_async_ops): Likewise. Use remote_detach.
2443 * target.c (cleanup_target): Default to_disconnect.
2444 (update_current_target): Inherit to_disconnect.
2445 (target_disconnect, debug_to_disconnect): New functions.
2446 (setup_target_debug): Set to_disconnect.
2447 * target.h (struct target_ops): Add to_disconnect.
2448 (target_disconnect): Add prototype.
2449
2450 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2451
2452 * breakpoint.c (insert_catchpoint): New function.
2453 (insert_breakpoints): Use catch_exceptions to call
2454 insert_catchpoint. Disable catchpoints if they fail to insert.
2455
2456 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2457
2458 * symfile.c (reread_symbols): Clear sym_private.
2459
2460 2003-06-17 Andrew Cagney <cagney@redhat.com>
2461
2462 * trad-frame.h (struct frame_info): Add opaque declaration.
2463 * remote-fileio.h (struct cmd_list_element): Add opaque
2464 declaration.
2465 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2466 comments.
2467
2468 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2469
2470 * remote.c (remote_prepare_to_store): Replace call to
2471 deprecated_read_register_bytes with multiple regcache_raw_read
2472 calls.
2473
2474 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2475
2476 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2477 (nto_find_and_open_solib): Likewise.
2478 (nto_init_solib_absolute_prefix): Likewise.
2479 (_initialize_nto_tdep): Fix indentation.
2480
2481 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2482
2483 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2484
2485 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2486
2487 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2488
2489 2003-06-17 Jim Blandy <jimb@redhat.com>
2490
2491 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2492
2493 2003-06-16 Theodore A. Roth <troth@openavr.org>
2494
2495 * avr-tdep.c (avr_extract_return_value): New function.
2496 (avr_gdbarch_init): Set extract_return_value method.
2497
2498 2003-06-16 Andrew Cagney <cagney@redhat.com>
2499
2500 * frame.h (deprecated_get_next_frame_hack): Declare.
2501 * frame.c (legacy_saved_regs_prev_register): Only require
2502 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2503 there are always saved regs.
2504 (deprecated_generic_get_saved_register): Do not require
2505 DEPRECATED_FRAME_INIT_SAVED_REGS.
2506 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2507 use frame ID unwind instead.
2508 (deprecated_get_next_frame_hack): New function.
2509
2510 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2511
2512 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2513 (h8300_push_dummy_call): ...this function. Some minor optimization.
2514 (h8300_push_return_address): Remove.
2515 (h8300_gdbarch_init): Remove calls to
2516 set_gdbarch_deprecated_dummy_write_sp,
2517 set_gdbarch_deprecated_push_arguments and
2518 set_gdbarch_deprecated_push_return_address.
2519 Add call to set_gdbarch_push_dummy_call.
2520
2521 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2522
2523 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2524 (E_PSEUDO_EXR_REGNUM): Ditto.
2525 (h8300_is_argument_spill): Check for instructions moving argument
2526 registers into safe registers.
2527 (h8300_skip_prologue): Check for stm instruction to push registers
2528 used for register variables onto stack.
2529 (gdb_print_insn_h8300): Remove.
2530 (h8300_examine_prologue): Add a comment.
2531 (h8300_register_name): Take pseudo registers into account.
2532 (h8300s_register_name): Ditto.
2533 (h8300sx_register_name): Ditto.
2534 (h8300_print_register): Ditto.
2535 (h8300_print_registers_info): Define "nice" printing order.
2536 (h8300_saved_pc_after_call): Take pseudo registers into account.
2537 (h8300_register_type): Ditto. Return type used for remote connection
2538 when requesting real CCR or EXR register, return actual type when
2539 requesting pseudo CCR or EXR.
2540 (h8300_pseudo_register_read): New function.
2541 (h8300_pseudo_register_write): Ditto.
2542 (h8300_dbg_reg_to_regnum): Ditto.
2543 (h8300s_dbg_reg_to_regnum): Ditto.
2544 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2545 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2546 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2547 set_gdbarch_print_insn architecture dependent.
2548 Call set_gdbarch_pseudo_register_read and
2549 set_gdbarch_pseudo_register_write.
2550 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2551
2552 2003-06-16 Andrew Cagney <cagney@redhat.com>
2553
2554 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2555 * gdbarch.h, gdbarch.c: Re-generate.
2556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2557 * s390-tdep.c (s390_gdbarch_init): Update.
2558 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2559 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2560 * mips-tdep.c (mips_gdbarch_init): Update.
2561 * mcore-tdep.c (mcore_gdbarch_init): Update.
2562 * cris-tdep.c (cris_gdbarch_init): Update.
2563 * infcall.c (call_function_by_hand): Update.
2564 * ia64-tdep.c (ia64_push_arguments): Update comment.
2565 * frame.c (legacy_get_prev_frame): Do not assume
2566 SAVE_DUMMY_FRAME_TOS_P.
2567 * dummy-frame.c (find_dummy_frame): Update comment.
2568
2569 2003-06-16 Andrew Cagney <cagney@redhat.com>
2570
2571 * regcache.c (do_cooked_read): Do not use register_valid_p.
2572
2573 2003-06-15 Theodore A. Roth <troth@openavr.org>
2574
2575 * avr-tdep.c (avr_register_type): Remove a blank line.
2576 (avr_scan_prologue): Correct some comments.
2577
2578 2003-06-15 Theodore A. Roth <troth@openavr.org>
2579
2580 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2581 prologue types.
2582 Properly scan prologues generated by gcc with the -mcall-prologues
2583 option.
2584 Add code to scan -mcall-prologues for mega devices.
2585
2586 2003-06-15 Theodore A. Roth <troth@openavr.org>
2587
2588 * avr-tdep.c (avr_register_byte): Delete function.
2589 (avr_register_raw_size): Delete function.
2590 (avr_register_virtual_size): Delete function.
2591 (avr_register_virtual_type): Delete function.
2592 (avr_register_type): New function.
2593 (avr_address_to_pointer): Remove unused code.
2594 (avr_read_fp): Need to read FP as two separate bytes due to change to
2595 avr_register_type() usage.
2596 (avr_gdbarch_init): Don't set deprecated_register_size.
2597 Don't set deprecated_register_bytes.
2598 Don't set deprecated_register_byte.
2599 Don't set deprecated_register_raw_size.
2600 Don't set deprecated_max_register_raw_size.
2601 Don't set deprecated_register_virtual_size.
2602 Don't set deprecated_max_register_virtual_size.
2603 Don't set deprecated_register_virtual_type.
2604 Set register_type method.
2605
2606 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2607
2608 * Makefile.in (linux-nat.o): Add rule.
2609 * linux-nat.c: New file.
2610 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2611 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2612 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2613 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2614 * config/arm/linux.mh (NATDEPFILES): Likewise.
2615 * config/i386/linux.mh (NATDEPFILES): Likewise.
2616 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2617 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2618 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2619 * config/mips/linux.mh (NATDEPFILES): Likewise.
2620 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2621 * config/s390/s390.mh (NATDEPFILES): Likewise.
2622 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2623
2624 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2625
2626 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2627 replace out-of-date comment.
2628
2629 2003-06-15 Andrew Cagney <cagney@redhat.com>
2630
2631 * rdi-share/host.h (Fail): Change to a varargs function.
2632 * remote-rdi.c (Fail): Update.
2633
2634 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2635
2636 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2637 (i386_convert_register_p, i386_register_to_value,
2638 i386_register_from_value): Handle types longer than 8 bytes.
2639
2640 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2641
2642 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2643 Move floating-point code to new function in i387-tdep.c.
2644 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2645 New functions containing code moved here from i386-tdep.c.
2646 * i387-tdep.h: Add opaque declaration for `struct type'.
2647 (i387_register_to_value, i387_value_to_register): New prototypes.
2648 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2649 (x86_64_init_abi): Set convert_register_p, register_to_value and
2650 value_to_register here.
2651
2652 2003-06-14 Andrew Cagney <cagney@redhat.com>
2653
2654 * mips-tdep.c (mips_register_to_value): Make static.
2655 (mips_value_to_register): Make static.
2656 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2657 * ia64-tdep.c (ia64_register_raw_size): Make static.
2658 (ia64_register_virtual_size): Make static.
2659 (ia64_register_byte): Make static.
2660 * i387-tdep.c: Include "i387-tdep.h".
2661 (print_387_control_word): Delete function.
2662 (print_387_status_word): Delete function.
2663 (print_387_status_bits): Delete function.
2664 (print_387_control_bits): Delete function.
2665 * Makefile.in (i387-tdep.o): Update dependencies.
2666 * rdi-share/host.h (Fail): Declare.
2667 * remote-rdi.c (Fail): Update to match declaration.
2668
2669 2003-06-14 Andrew Cagney <cagney@redhat.com>
2670
2671 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2672 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2673 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2674 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2675 * README: Delete reference to remote-array.
2676 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2677 (remote-array.o): Delete target.
2678 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2679 * remote-array.c: Delete file.
2680
2681 2003-06-14 Andrew Cagney <cagney@redhat.com>
2682 Mark Kettenis <kettenis@gnu.org>
2683
2684 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2685 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2686 parameter with "frame".
2687 * gdbarch.h, gdbarch.c: Re-generate.
2688 * frame.h (put_frame_register): Declare.
2689 * frame.c (put_frame_register): New function.
2690 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2691 (legacy_register_to_value): Rewrite, use "frame" to get the
2692 register value.
2693 (legacy_value_to_register): Rewrite, use "frame" to find the
2694 register's location before storing.
2695 * arch-utils.h (legacy_convert_register_p): Update.
2696 (legacy_register_to_value, legacy_value_to_register): Update.
2697 * findvar.c (value_from_register): Rewrite, eliminate use of
2698 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2699 "frame" to REGISTER_TO_VALUE.
2700 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2701 lval_reg_frame_relative + lval_register branch of the switch. Do
2702 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2703 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2704 I386_EDI_REGNUM): New defines.
2705 (i386_next_regnum, i386_convert_register_p,
2706 i386_register_to_value, i386_value_to_register): New functions.
2707 (i386_register_convertible, i386_register_convert_to_virtual,
2708 i386_convert_to_raw): Remove functions.
2709 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2710 value_to_register instead of register_convertible,
2711 register_convert_to_virtual and register_convert_to_raw.
2712 * mips-tdep.c (mips_convert_register_p): New function.
2713 (mips_value_to_register): Replace mips_register_convert_from_type.
2714 (mips_register_to_value): Replace mips_register_convert_to_type.
2715 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2716 register_to_value.
2717 * alpha-tdep.c (alpha_convert_register_p): Update.
2718 (alpha_value_to_register): Update, store the register.
2719 (alpha_register_to_value): Update, fetch the register.
2720
2721 2003-06-14 Theodore A. Roth <troth@openavr.org>
2722
2723 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2724 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2725 Don't set deprecated_call_dummy_words.
2726 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2727 Don't set remote_translate_xfer_address.
2728 (avr_io_reg_read_command): Remove commented out debug printf.
2729 Wrap a long line.
2730
2731 2003-06-14 Theodore A. Roth <troth@openavr.org>
2732
2733 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2734 causes gdb to seg fault.
2735
2736 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2737
2738 * sparc-nat.c (fetch_inferior_registers): Correct
2739 a reference to "registers".
2740
2741 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2742
2743 * Makefile.in (exc_request_U_h): Define
2744 (exc_request_S_h): Likewise.
2745 (msg_reply_S_h): Likewise.
2746 (msg_U_h): Likewise.
2747 (notify_S_h): Likewise.
2748 (process_reply_S_h): Likewise.
2749 (gnu-nat.o): Depend on gdb_obstack_h
2750 * gnu-nat.c: Include "gdb_obstack.h".
2751
2752 2003-06-13 Andrew Cagney <cagney@redhat.com>
2753
2754 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2755 * gdbarch.h, gdbarch.c: Re-generate.
2756
2757 2003-06-13 Andrew Cagney <cagney@redhat.com>
2758
2759 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2760 when deprecated REGISTER macros can be deleted.
2761 * gdbarch.h, gdbarch.c: Re-generate.
2762
2763 2003-06-13 Jim Blandy <jimb@redhat.com>
2764
2765 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2766 Linux entry point symbols for _dl_debug_state, too.
2767
2768 2003-06-13 Andrew Cagney <cagney@redhat.com>
2769
2770 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2771 available, do not use the FP register, and always save the TOS.
2772 * dummy-frame.c (dummy_frame_this_id): Do not assert
2773 SAVE_DUMMY_FRAME_TOS.
2774 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2775 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2776 (i386_push_dummy_call): Add 8 to the returned SP.
2777 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2778 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2779 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2780 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2781 (x86_64_push_dummy_call): Return "sp + 16".
2782 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2783 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2784 save_dummy_frame_tos.
2785
2786 2003-06-13 Jim Blandy <jimb@redhat.com>
2787
2788 * frv-tdep.c (frv_use_struct_convention): Delete static
2789 declaration for function deleted in my change of 2003-06-12.
2790
2791 2003-06-13 Theodore A. Roth <troth@openavr.org>
2792
2793 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2794 (avr_pointer_to_address): Shift code addrs left 1 bit.
2795 (avr_convert_from_func_ptr_addr): Delete function since operation is
2796 better handled by avr_address_to_pointer and avr_pointer_to_address.
2797 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2798
2799 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2800
2801 From Kelley Cook <kelleycook@wideopenwest.com>:
2802 * configure.host: Accept i[34567]86 variants.
2803 * configure.tgt: Likewise.
2804 * nlm/configure.in: Likewise.
2805 * nlm/configure: Regenerated.
2806
2807 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2808
2809 * arm-tdep.c (solib-svr4.h): Dont' include it.
2810 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2811 * arm-linux-tdep.c: ... here. Make static.
2812 (arm_linux_init_abi): Register it.
2813 (solib-svr4.h): Include it.
2814 * Makefile.in: Update dependencies.
2815 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2816 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2817
2818 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2819
2820 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2821 indicate registers used for return values.
2822 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2823 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2824 members.
2825 (h8300_init_extra_frame_info): Ditto.
2826 (h8300_frame_locals_address): Removed.
2827 (h8300_frame_args_address): Removed.
2828 (h8300_extract_return_value): Use new regcache structure. Only care
2829 for 16 bit CPUs.
2830 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2831 (h8300_store_return_value): Use new regcache structure. Only care
2832 for 16 bit CPUs.
2833 (h8300h_store_return_value): Same function for 32 bit CPUs.
2834 (h8300_store_struct_return): Removed.
2835 (h8300_extract_struct_value_address): Use new regcache structure.
2836 (h8300h_extract_struct_value_address): Removed.
2837 (h8300_push_dummy_code): New function.
2838 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2839 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2840 set_gdbarch_store_return_value architecture dependent.
2841 Call set_gdbarch_push_dummy_code and
2842 set_gdbarch_extract_struct_value_address.
2843 Remove calls to set_gdbarch_frame_args_address,
2844 set_gdbarch_frame_locals_address,
2845 set_gdbarch_deprecated_store_struct_return,
2846 set_gdbarch_deprecated_extract_return_value,
2847 set_gdbarch_deprecated_extract_struct_value_address,
2848 set_gdbarch_deprecated_call_dummy_words and
2849 set_gdbarch_deprecated_sizeof_call_dummy_words.
2850
2851 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2852
2853 * h8300-tdep.c (h8300_register_byte): Remove.
2854 (h8300h_register_byte): Remove.
2855 (h8300_register_virtual_type): Remove. Substitute by...
2856 (h8300_register_type): New function.
2857 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2858 (h8300h_extract_struct_value_address): Ditto.
2859 (h8300_gdbarch_init): Drop calls to
2860 set_gdbarch_deprecated_register_byte and
2861 set_gdbarch_deprecated_register_virtual_type.
2862 Add call to set_gdbarch_register_type.
2863
2864 2003-06-13 Andrew Cagney <cagney@redhat.com>
2865
2866 * gdbarch.sh: Update comments on registers.
2867 (deprecated_register_byte): Rename register_byte.
2868 (deprecated_register_raw_size): Rename register_raw_size.
2869 (deprecated_register_virtual_size): Rename register_virtual_size.
2870 (deprecated_register_virtual_type): Rename register_virtual_type.
2871 * gdbarch.h, gdbarch.c: Re-generate.
2872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2873 * vax-tdep.c (vax_gdbarch_init): Update.
2874 * v850-tdep.c (v850_gdbarch_init): Update.
2875 * sparc-tdep.c (sparc_gdbarch_init): Update.
2876 * sh-tdep.c (sh_gdbarch_init): Update.
2877 * s390-tdep.c (s390_gdbarch_init): Update.
2878 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2879 * ns32k-tdep.c: Update.
2880 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2881 * mips-tdep.c (mips_gdbarch_init): Update.
2882 * mcore-tdep.c (mcore_gdbarch_init): Update.
2883 * m68k-tdep.c (m68k_gdbarch_init): Update.
2884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2885 * ia64-tdep.c (ia64_gdbarch_init): Update.
2886 * hppa-tdep.c (hppa_gdbarch_init): Update.
2887 * h8300-tdep.c (h8300_gdbarch_init): Update.
2888 * frv-tdep.c (frv_gdbarch_init): Update.
2889 * cris-tdep.c (cris_gdbarch_init): Update.
2890 * avr-tdep.c (avr_gdbarch_init): Update.
2891 * alpha-tdep.c (alpha_gdbarch_init): Update.
2892 * arm-tdep.c (arm_gdbarch_init): Update.
2893
2894 2003-06-13 Andrew Cagney <cagney@redhat.com>
2895
2896 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2897 mips_o32_use_struct_convention with always_use_struct_convention.
2898
2899 2003-06-12 David Carlton <carlton@kealia.com>
2900
2901 * cp-namespace.c (cp_set_block_scope): Comment out
2902 processing_has_namespace_info branch.
2903
2904 2003-06-12 Jim Blandy <jimb@redhat.com>
2905
2906 Recognize and skip 64-bit PowerPC Linux linkage functions.
2907 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2908 insn_pattern, insns_match_pattern, d_field, ds_field): New
2909 functions, macros, and types for working with PPC instructions.
2910 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2911 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2912 ppc64_skip_trampoline_code): New functions, variables, and macros
2913 for recognizing and skipping linkage functions.
2914 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2915 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2916
2917 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2918 register offsets for both the 32- and 64-bit interfaces.
2919
2920 Actually finish the job started by my change of 2003-05-29.
2921 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2922 other #definition of this.
2923 (ppc_linux_skip_trampoline_code): Remove declaration.
2924 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2925 static.
2926 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2927 method for GDBARCH.
2928
2929 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2930 'long' on ppc64-*-linux*.
2931
2932 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2933 isn't #defined, assume the register doesn't exist: act as if
2934 tdep->ppc_mq_regnum were -1.
2935
2936 * configure.host, configure.tgt: Add entries for
2937 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2938 powerpc/linux.mt.
2939 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2940 New files.
2941
2942 * arch-utils.c (always_use_struct_convention): New function.
2943 * arch-utils.h (always_use_struct_convention): New prototype.
2944 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2945 (alpha_gdbarch_init): Register always_use_struct_convention,
2946 instead of alpha_use_struct_convention.
2947 * cris-tdep.c (cris_use_struct_convention): Delete.
2948 (cris_gdbarch_init): Register always_use_struct_convention,
2949 instead of cris_use_struct_convention.
2950 * frv-tdep.c (frv_use_struct_convention): Delete.
2951 (frv_gdbarch_init): Register always_use_struct_convention,
2952 instead of frv_use_struct_convention.
2953 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2954 (h8300_gdbarch_init): Register always_use_struct_convention,
2955 instead of h8300_use_struct_convention.
2956 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2957 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2958 instead of mips_o32_use_struct_convention.
2959
2960 2003-06-12 Andrew Cagney <cagney@redhat.com>
2961
2962 * wince.c: Include "mips-tdep.h".
2963 * mips-tdep.h (mips_next_pc): Declare.
2964 * mcore-tdep.c: Make more local functions static.
2965 * Makefile.in (wince.o): Update dependencies.
2966
2967 2003-06-12 David Carlton <carlton@kealia.com>
2968
2969 * symtab.c (lookup_symbol_aux_minsyms): Replace
2970 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2971 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2972 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2973 SYMBOL_NATURAL_NAME.
2974
2975 2003-06-12 Andreas Schwab <schwab@suse.de>
2976
2977 * Makefile.in (tuiDisassem.o): Update dependencies.
2978
2979 2003-06-12 David Carlton <carlton@bactrian.org>
2980
2981 * symtab.h: Delete declaration of make_symbol_overload_list.
2982 Add declaration of lookup_partial_symbol.
2983 * symtab.c (remove_params): Move to cp-support.c.
2984 (overload_list_add_symbol, make_symbol_overload_list)
2985 (sym_return_val_size, sym_return_val_index): Ditto.
2986 (lookup_partial_symbol): Make extern.
2987 * cp-support.h: Add declaration of make_symbol_overload_list.
2988 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2989 symtab.h, and block.h.
2990 (remove_params): Move here from symtab.c.
2991 (overload_list_add_symbol, make_symbol_overload_list)
2992 (sym_return_val_size, sym_return_val_index): Ditto.
2993 * valops.c: Include cp-support.h.
2994 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2995 frame_h, and block_h.
2996 (valops.o): Depend on cp_support_h.
2997
2998 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2999
3000 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3001 substitute by NUM_REGS throughout.
3002 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3003 (h8300s_register_name): New function for H8S registers.
3004 (h8300sx_register_name): Ditto for H8SX registers.
3005 (h8300_print_register): Revise register printing, avoid depending
3006 on 32 bit long.
3007 (h8300_register_byte): Only care for H8/300 registers.
3008 (h8300h_register_byte): New function for any other architecture.
3009 (h8300_register_raw_size): Remove.
3010 (h8300_register_virtual_type): Revise to return actually useful
3011 type.
3012 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3013 (h8300h_extract_struct_value_address): New function for any other
3014 architecture.
3015 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3016 set_gdbarch_register_name, set_gdbarch_register_byte,
3017 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3018 Remove calls to set_gdbarch_deprecated_register_size,
3019 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3020 set_gdbarch_deprecated_max_register_raw_size,
3021 set_gdbarch_register_virtual_size and
3022 set_gdbarch_deprecated_max_register_virtual_size entirely.
3023 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3024 set_gdbarch_long_double_bit.
3025
3026 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3027
3028 * doublest.c (convert_doublest_to_floatformat): When dealing
3029 with the implied integer bit, only alter mant_bits if we are
3030 processing a full 32 bits of mantissa.
3031
3032 2003-06-11 David Carlton <carlton@bactrian.org>
3033
3034 * dictionary.h: New.
3035 * dictionary.c: New.
3036 * block.h: Add opaque declaration for struct dictionary.
3037 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3038 'sym' members.
3039 (BLOCK_DICT): New macro.
3040 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3041 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3042 BLOCK_SHOULD_SORT.
3043 (ALL_BLOCK_SYMBOLS): Update definition.
3044 * Makefile.in (SFILES): Add dictionary.c.
3045 (dictionary_h): New.
3046 (COMMON_OBS): Add dictionary.o.
3047 (dictionary.o): New.
3048 (ada-lang.o): Depend on dictionary_h.
3049 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3050 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3051 (mi-cmd-stack.o): Ditto.
3052 (gdbtk-cmds.o): Update dependencies.
3053 (gdbtk-stack.o): Ditto.
3054 * ada-lang.c: Include dictionary.h.
3055 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3056 (fill_in_ada_prototype, debug_print_block): Ditto.
3057 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3058 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3059 'is_sorted'.
3060 * mdebugread.c: Include dictionary.h.
3061 (struct parse_stack): Delete 'maxsyms' member.
3062 (parse_symbol): Update calls to new_block. Delete calls to
3063 shrink_block. Use dictionary methods.
3064 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3065 Update calls to new_symtab. Don't maintain maxsyms data.
3066 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3067 (add_symbol): Just call dict_add_symbol.
3068 (new_symtab): Delete 'maxsyms' argument.
3069 (new_symtab): Update calls to new_block.
3070 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3071 (shrink_block): Delete function.
3072 (fixup_sigtramp): Update call to new_block. Add symbol via
3073 dict_add_symbol.
3074 * jv-lang.c: Include dictionary.h.
3075 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3076 appropriately. Set class_symtab->free_func. Make sure the
3077 blockvector is big enough to hold two blocks.
3078 (add_class_symtab_symbol): Use dictionary methods.
3079 (free_class_block): New function.
3080 (type_from_class): Replace explicit iteration by
3081 ALL_BLOCK_SYMBOLS.
3082 * symtab.h (struct symtab): Replace 'free_ptr' method by
3083 'free_func'.
3084 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3085 sort_symtab_syms.
3086 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3087 sort_symtab_syms.
3088 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3089 Include dictionary.h.
3090 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3091 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3092 sort_symtab_syms.
3093 * objfiles.c: Include dictionary.h.
3094 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3095 * buildsym.c: Include dictionary.h.
3096 (finish_block): Use dictionary methods.
3097 (end_symtab): Set free_func to NULL, not free_ptr.
3098 * tracepoint.c: Include dictionary.h.
3099 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3100 (scope_info): Ditto.
3101 * stack.c: Include dictionary.h.
3102 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3103 (print_block_frame_labels, print_frame_arg_vars)
3104 (print_frame_args): Ditto.
3105 * symmisc.c (free_symtab_block): Use dictionary methods.
3106 (dump_symtab): Ditto.
3107 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3108 Include dictionary.h.
3109 * symfile.h: Delete declarations of sort_block_syms,
3110 sort_symtab_syms.
3111 * symfile.c (sort_block_syms): Delete.
3112 (sort_symtab_syms): Delete.
3113 * symtab.c: Include dictionary.h.
3114 (lookup_block_symbol): Use dictionary iterators.
3115 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3116 (search_symbols, make_symbol_completion_list): Ditto.
3117 (make_symbol_overload_list): Ditto.
3118 * valops.c (value_of_local): Use dict_empty.
3119 Include dictionary.h.
3120
3121 2003-06-11 J. Brobecker <brobecker@gnat.com>
3122
3123 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3124
3125 2003-06-11 David Carlton <carlton@bactrian.org>
3126
3127 * block.h (BLOCK_SHOULD_SORT): Delete.
3128 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3129 blocks.
3130 * ada-lang.c (ada_add_block_symbols): Ditto.
3131 * symfile.c (sort_block_syms): Delete.
3132 (sort_symtab_syms): Ditto.
3133 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3134 declarations.
3135 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3136 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3137 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3138 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3139 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3140 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3141 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3142
3143 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3144
3145 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3146 bits to 128.
3147
3148 2003-06-11 Andrew Cagney <cagney@redhat.com>
3149
3150 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3151 REGISTER_CONVERTIBLE.
3152 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3153 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3154 * gdbarch.h, gdbarch.c: Re-generate.
3155 * arch-utils.h (deprecated_register_convertible_not): Rename
3156 generic_register_convertible_not.
3157 * arch-utils.c (deprecated_register_convertible_not): Rename
3158 generic_register_convertible.
3159 (legacy_convert_register_p, legacy_register_to_value): Update.
3160 * sh-tdep.c (sh64_push_arguments): Update.
3161 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3162 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3163 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3164 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3165 * arch-utils.c (legacy_value_to_register): Update.
3166 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3167 (rs6000_register_convert_to_raw): Make parameter "from" const.
3168 * mips-tdep.c (mips_gdbarch_init): Update.
3169 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3170 * infcmd.c (default_print_registers_info): Update.
3171 * ia64-tdep.c (ia64_gdbarch_init): Update.
3172 (ia64_register_convert_to_raw): Make parameter "from" const.
3173 * i386-tdep.c (i386_gdbarch_init): Update.
3174 (i386_register_convert_to_raw): Update.
3175
3176 2003-06-11 Andrew Cagney <cagney@redhat.com>
3177
3178 * remote-fileio.c: Include "remote-fileio.h".
3179 * Makefile.in (remote-fileio.o): Update dependencies.
3180 (remote_fileio_h): Fix typo.
3181
3182 2003-06-11 Andrew Cagney <cagney@redhat.com>
3183
3184 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3185 (xstormy16_save_dummy_frame_tos): Make static.
3186 (_initialize_xstormy16_tdep): Add declaration.
3187 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3188 * v850-tdep.c: Make local functions static.
3189 (_initialize_v850_tdep): Add declaration.
3190 * sparc-tdep.c: Make local functions static.
3191 (_initialize_sparc_tdep): Add declaration.
3192 * sh-tdep.c: Make local functions static.
3193 (_initialize_sh_tdep): Add declaration.
3194 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3195 * s390-tdep.c: Make local functions static.
3196 (_initialize_s390_tdep): Add declaration.
3197 * dbxread.c (find_stab_function_addr): Make static.
3198 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3199 * ocd.c (_initialize_remote_ocd): Add declaration.
3200 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3201 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3202 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3203 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3204 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3205 * remote-array.c (_initialize_array): Add declaration.
3206 (_initialize_remote_monitors): Add declaration.
3207 * remote-mips.c: Make local functions static.
3208 (_initialize_remote_mips): Add declaration.
3209 * mcore-tdep.c: Make all local functions static.
3210 (_initialize_mcore_tdep): Add declaration.
3211 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3212 * abug-rom.c (_initialize_abug_rom): Add declaration.
3213 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3214 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3215 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3216 * remote-est.c (_initialize_est): Add declaration.
3217 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3218 (m68hc11_call_dummy_address): Make static.
3219 * ia64-tdep.c: Make local functions static.
3220 (_initialize_ia64_tdep): Add declaration.
3221 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3222 * monitor.c (monitor_wait_filter): Make static.
3223 (_initialize_remote_monitors): Add declaration.
3224 * remote-hms.c (_initialize_remote_hms): Add declaration.
3225 * remote-e7000.c (fetch_regs_from_dump): Make static.
3226 (expect_n): Make static.
3227 (_initialize_remote_e7000): Add declaration.
3228 * ser-e7kpc.c: Always include "defs.h".
3229 (_initialize_ser_e7000pc): Add declaration.
3230 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3231 * cris-tdep.c: Make all but one function static.
3232 (_initialize_cris_tdep): Add declaration.
3233 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3234 * solib.c (update_solib_list): Make static.
3235 (_initialize_solib): Add declaration.
3236 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3237 (_initialize_avr_tdep): Add declaration.
3238 * remote-rdi.c (voiddummy): Make static.
3239 (_initialize_remote_rdi): Add declaration.
3240 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3241 * remote-rdp.c (send_rdp): Make static.
3242 (_initialize_remote_rdp): Add declaration.
3243 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3244
3245 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3246
3247 * remote-fileio.c: Make ari happy.
3248
3249 2003-06-10 J. Brobecker <brobecker@gnat.com>
3250
3251 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3252 fetching the trailing bytes of the buffer we are about to write.
3253
3254 2003-06-10 Andrew Cagney <cagney@redhat.com>
3255
3256 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3257 * Makefile.in (remote-fileio.o): Update dependencies.
3258 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3259 include <setjmp.h>, or <sys/types.h> conditional on USG.
3260 (remote_fio_jmp_buf): Delete global variable.
3261
3262 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3263 Martin M. Hunt <hunt@redhat.com>
3264
3265 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3266 (SFILES): Add remote-fileio.c.
3267 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3268 dependencies for building remote.o.
3269 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3270 * remote-fileio.h: New header file defining remote File-I/O interface.
3271 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3272 static storage class.
3273 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3274 'F' packet.
3275 (_initialize_remote): Call initialize_remote_fileio().
3276 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3277 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3278 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3279 (captured_main): Initialize new ui_files.
3280 * ui-file.c: Add read and fgets input functions.
3281 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3282 (null_file_read): New function.
3283 (ui_file_read): New function.
3284 (set_ui_file_read): New function.
3285 (stdio_file_read): New function.
3286 * ui-file.h: New type ui_file_read_ftype.
3287 (set_ui_file_read): Declare.
3288 (ui_file_read): Declare.
3289
3290 2003-06-09 Andrew Cagney <cagney@redhat.com>
3291
3292 * frame.h (deprecated_unwind_get_saved_register): Rename
3293 generic_unwind_get_saved_register, update comments.
3294 * mips-tdep.c (mips_get_saved_register): Update.
3295 * frame.c (deprecated_unwind_get_saved_register): Update.
3296
3297 2003-06-09 Andrew Cagney <cagney@redhat.com>
3298
3299 * vax-tdep.c (vax_frame_locals_address): Delete function.
3300 (vax_gdbarch_init): Do not set frame_locals_address.
3301 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3302 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3303 * s390-tdep.c (s390_frame_args_address): Delete function.
3304 (s390_gdbarch_init): Do not set frame_args_address or
3305 frame_locals_address.
3306 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3307 (ns32k_gdbarch_init): Do not set frame_locals_address.
3308 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3309 (hppa_frame_locals_address): Delete function.
3310 (hppa_gdbarch_init): Do not set frame_args_address, or
3311 frame_locals_address.
3312 * arm-tdep.c (arm_frame_args_address): Delete.
3313 (arm_frame_locals_address): Delete.
3314 (arm_gdbarch_init): Do not set frame_args_address, or
3315 frame_locals_address.
3316
3317 2003-06-09 Andrew Cagney <cagney@redhat.com>
3318
3319 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3320 * gdbarch.h, gdbarch.c: Re-generate.
3321 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3322 * arch-utils.c (frame_num_args_unknown): Delete function.
3323 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3324 (frame_info): Use FRAME_NUM_ARGS_P.
3325 * arm-tdep.c (arm_frame_num_args): Delete function.
3326 (arm_gdbarch_init): Do not set frame_num_args.
3327 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3328 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3329 (hppa_gdbarch_init): Do not set frame_num_args.
3330 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3332 frame_num_args to default frame_num_args_unknown.
3333 * v850-tdep.c (v850_gdbarch_init): Ditto.
3334 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3335 * sh-tdep.c (sh_gdbarch_init): Ditto.
3336 * s390-tdep.c (s390_gdbarch_init): Ditto.
3337 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3338 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3339 * mips-tdep.c (mips_gdbarch_init): Ditto.
3340 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3341 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3343 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3344 * i386-tdep.c (i386_gdbarch_init): Ditto.
3345 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3346 * frv-tdep.c (frv_gdbarch_init): Ditto.
3347 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3348 * cris-tdep.c (cris_gdbarch_init): Ditto.
3349 * avr-tdep.c (avr_gdbarch_init): Ditto.
3350 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3351
3352 2003-06-09 Andrew Cagney <cagney@redhat.com>
3353
3354 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3355 (print_frame_args): Moved to "stack.c".
3356 * stack.c: Include "gdb_assert.h".
3357 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3358 (print_frame_args): Moved from "printcmd.c".
3359 * frame.h (print_frame_args): Delete declaration.
3360 * Makefile.in (stack.o): Update dependencies.
3361
3362 2003-06-08 Andrew Cagney <cagney@redhat.com>
3363
3364 * frame.c (get_prev_frame): Remove reference to
3365 frame_args_address_correct in comments.
3366 * frame-base.c (default_frame_args_address): Delete code
3367 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3368 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3369 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3370 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3371 (vax_frame_args_address_correct): Delete declaration.
3372
3373 2003-06-08 Andrew Cagney <cagney@redhat.com>
3374
3375 * gdbarch.sh (UNWIND_SP): Add.
3376 * gdbarch.h, gdbarch.c: Re-generate.
3377 * frame.c (frame_sp_unwind): New function.
3378 (get_frame_sp): New function.
3379 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3380 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3381 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3382 value.
3383 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3384 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3385
3386 2003-06-08 Andrew Cagney <cagney@redhat.com>
3387
3388 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3389 REMOTE_BREAKPOINT.
3390 * remote.c: Update.
3391 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3392 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3393 * config/m68k/tm-sun3.h: Update.
3394 * config/m68k/tm-m68klynx.h: Update.
3395 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3396
3397 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3398 trad_frame". Update comments.
3399 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3400 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3401 (trad_frame_register_value, trad_frame_prev_register): Update.
3402
3403 2003-06-08 Andrew Cagney <cagney@redhat.com>
3404
3405 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3406 from GCC's acinclude.m4.
3407 * configure.in: Check for getopt's delcaration.
3408 * aclocal.m4, config.in, configure: Re-generate.
3409 * main.c (error_init): Delete declaration.
3410 * defs.h (error_init): Declare.
3411 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3412 (rs6000_convert_from_func_ptr_addr): Make static.
3413 (_initialize_rs6000_tdep): Add declaration.
3414 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3415 (show_commands, set_verbose, show_history): Delete declaration.
3416 * top.h (set_verbose): Add declaration.
3417 (show_history, set_history, show_commands): Add declaration.
3418 (do_restore_instream_cleanup): Add declaration.
3419 * objc-lang.c (specialcmp): Make static.
3420 (print_object_command): Make static.
3421 (find_objc_msgsend): Make static.
3422 (find_objc_msgcall_submethod_helper): Make static.
3423 (find_objc_msgcall_submethod): Make static.
3424 (_initialize_objc_language): Add declaration.
3425 (find_implementation_from_class): Make static.
3426 (find_implementation): Make static.
3427 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3428 * objc-lang.h (lookup_struct_typedef): Add declaration.
3429 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3430 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3431 (do_restore_user_call_depth): Make static.
3432 (do_restore_instream_cleanup): Delete declaration.
3433 (dont_repeat): Delete declaration.
3434 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3435 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3436 * reggroups.c (_initialize_reggroup): Add declaration.
3437 * cp-support.c (_initialize_cp_support): Add declaration.
3438 * cp-abi.c (_initialize_cp_abi): Add declaration.
3439 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3440 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3441 (_initialize_gnu_v3_abi): Add declaration.
3442 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3443 (_initialize_gnu_v2_abi): Add declaration.
3444 * frame-base.c (_initialize_frame_base): Add declaration.
3445 * doublest.c (floatformat_from_length): Make static.
3446 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3447 * frame.c (create_sentinel_frame): Make static.
3448 (_initialize_frame): Add declaration.
3449 * top.c (do_catch_errors): Make static.
3450 (gdb_rl_operate_and_get_next_completion): Make static.
3451 * typeprint.c: Include "typeprint.h".
3452 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3453 (sentinel_frame_this_id): Make static.
3454 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3455 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3456 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3457 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3458 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3459 * maint.c (maintenance_print_architecture): Make static.
3460 * signals/signals.c (_initialize_signals): Add declaration.
3461 * std-regs.c (_initialize_frame_reg): Add declaration.
3462 * jv-exp.y (push_variable): ISO C definition.
3463 (push_qualified_expression_name): Ditto.
3464 * memattr.c (_initialize_mem): Add declaration.
3465 * remote.c (remote_check_watch_resources): Make static.
3466 (remote_stopped_by_watchpoint): Make static.
3467 (remote_stopped_data_address): Make static.
3468 * d10v-tdep.c (nr_dmap_regs): Make static.
3469 (a0_regnum): Make static.
3470 (d10v_frame_unwind_cache): Make static.
3471 (d10v_frame_p): Make static.
3472 * osabi.c (show_osabi): Make static.
3473 (_initialize_gdb_osabi): Add extern declaration.
3474 * gdbtypes.c (make_qualified_type): Make static.
3475 (safe_parse_type): Make static.
3476 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3477 * macrotab.c (macro_bcache_free): Make static.
3478 * interps.c (interp_set_quiet): Make static.
3479 (interpreter_exec_cmd): Make static.
3480 * stack.h (select_frame_command): New file.
3481 * stack.c: Include "stack.h".
3482 (select_frame_command_wrapper): Delete function.
3483 (select_frame_command): Make global.
3484 * infcall.c: Include "infcall.h".
3485 * linespec.c: Include "linespec.h".
3486 * symfile.c (sections_overlap): Make static.
3487 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3488 * charset.c (_initialize_charset): Add missing prototype.
3489 * regcache.c (init_legacy_regcache_descr): Make static.
3490 (do_regcache_xfree): Make static.
3491 (regcache_xfer_part): Make static.
3492 (_initialize_regcache): Add missing prototype.
3493 * breakpoint.c (parse_breakpoint_sals): Make static.
3494 (breakpoint_sals_to_pc): Make static.
3495 * interps.h (clear_interpreter_hooks): ISO C declaration.
3496 * Makefile.in (stack_h): Define.
3497 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3498 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3499
3500 2003-06-08 Andrew Cagney <cagney@redhat.com>
3501
3502 * Makefile.in (d10v-tdep.o): Update dependencies.
3503 (SFILES): Add trad-frame.c.
3504 (trad_frame_h): Define.
3505 (COMMON_OBS): Add trad-frame.o.
3506 (trad-frame.o): Specify dependencies.
3507 * d10v-tdep.c: Include "trad-frame.h".
3508 (saved_regs_unwinder): Delete function.
3509 (d10v_frame_prev_register): Use trad_frame_prev_register.
3510 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3511 trad_frame", delete "regs" and "prev_sp".
3512 (prologue_find_regs): Use trad-frame.
3513 * trad-frame.h, trad-frame.c: New files.
3514
3515 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3516
3517 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3518
3519 2003-06-07 Adam Fedor <fedor@gnu.org>
3520
3521 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3522 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3523 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3524 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3525 resolve_msgsend_super, resolve_msgsend_super_stret):
3526 Use it.
3527
3528 2003-06-07 Andrew Cagney <cagney@redhat.com>
3529
3530 * symfile.h: Re-indent, clean up comments.
3531
3532 2003-06-07 Andrew Cagney <cagney@redhat.com>
3533
3534 * inferior.h (deprecated_write_sp): Replace
3535 generic_target_write_sp.
3536 * regcache.c (deprecated_write_sp): Replace
3537 generic_target_write_sp.
3538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3539 * vax-tdep.c (vax_gdbarch_init): Update.
3540 * v850-tdep.c (v850_gdbarch_init): Update.
3541 * sparc-tdep.c (sparc_gdbarch_init): Update.
3542 * sh-tdep.c (sh_gdbarch_init): Update.
3543 * s390-tdep.c (s390_gdbarch_init): Update.
3544 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3545 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3546 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3547 * mcore-tdep.c (mcore_gdbarch_init): Update.
3548 * m68k-tdep.c (m68k_gdbarch_init): Update.
3549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3550 * ia64-tdep.c (ia64_gdbarch_init): Update.
3551 * h8300-tdep.c (h8300_gdbarch_init): Update.
3552 * frv-tdep.c (frv_gdbarch_init): Update.
3553 * cris-tdep.c (cris_gdbarch_init): Update.
3554 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3555
3556 2003-06-07 Andrew Cagney <cagney@redhat.com>
3557
3558 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3559 Assert that PC_REGNUM is valid.
3560 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3561
3562 2003-06-07 Andrew Cagney <cagney@redhat.com>
3563
3564 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3565 * gdbarch.h, gdbarch.c: Regenerate.
3566 * mn10300-tdep.c: Include "gdb_assert.h".
3567 (mn10300_read_fp): New function.
3568 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3569 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3570 * ia64-tdep.c: Include "gdb_assert.h".
3571 (ia64_read_fp): New function.
3572 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3573 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3574 * regcache.c (generic_target_read_sp): Delete function.
3575 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3576 * inferior.h (generic_target_read_sp): Delete declaration.
3577 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3578 generic_target_read_sp.
3579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3580 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3581 * sh-tdep.c (sh_gdbarch_init): Ditto.
3582 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3583 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3584
3585 2003-06-07 Andrew Cagney <cagney@redhat.com>
3586
3587 * gdbarch.sh: Comment each field of startup_gdbarch.
3588 * gdbarch.h, gdbarch.c: Re-generate.
3589
3590 2003-06-07 Andrew Cagney <cagney@redhat.com>
3591
3592 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3593 * gdbarch.h, gdbarch.c: Re-generate.
3594 * regcache.c: Update comments on read_pc et.al.
3595 (generic_target_read_pc): Delete function.
3596 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3597 * inferior.h (generic_target_read_pc): Delete declaration.
3598 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3599 generic_target_read_pc.
3600 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3601 * sh-tdep.c (sh_gdbarch_init): Ditto.
3602 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3604
3605 2003-06-07 Andrew Cagney <cagney@redhat.com>
3606
3607 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3608 "index" with "special_local_sect". Use strcmp instead of STREQ.
3609 Append period to coments.
3610
3611 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3612
3613 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3614 (elfstab_offset_sections): Likewise.
3615 * gdb-stabs.h (stab_section_info): Likewise.
3616 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3617 * objfiles.c (objfile_relocate): Likewise.
3618 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3619 * remote.c (get_offsets): Likewise.
3620 (remote_cisco_objfile_relocate): Likewise.
3621 * somread.c (som_symfile_offsets): Likewise.
3622 * symfile.c (alloc_section_addr_info): New function.
3623 (build_section_addr_info_from_section_tab): Use it.
3624 (free_section_addr_info): Adjust.
3625 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3626 (syms_from_objfile): Allocate local_addr dynamically.
3627 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3628 dynamically.
3629 (add_symbol_file_command): Allocate sect_opts dynamically.
3630 (reread_symbols): Avoid use of SECT_OFF_MAX.
3631 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3632 (alloc_section_addr_info): Declare it.
3633 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3634 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3635 dynamically.
3636 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3637
3638 2003-06-06 Andrew Cagney <cagney@redhat.com>
3639
3640 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3641 (d10v_frame_unwind_cache): Do not set "return_pc".
3642
3643 2003-06-06 Michael Snyder <msnyder@redhat.com>
3644
3645 * h8300-tdep.c: Make tidy (long lines).
3646
3647 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3648
3649 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3650 to regcache_collect().
3651
3652 2003-06-05 J. Brobecker <brobecker@gnat.com>
3653
3654 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3655 pc_in_sigtramp multiarch method.
3656 (hppa_hpux_som_init_abi): Use it.
3657 (hppa_hpux_elf_init_abi): Likewise.
3658 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3659 macro has been multiarched.
3660 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3661 macro here, as hppa64 isn't multiarched yet.
3662
3663 2003-06-05 Andrew Cagney <cagney@redhat.com>
3664
3665 * Makefile.in (value_h): Add $(frame_h).
3666 * value.h: Include "frame.h".
3667 (struct value): Replace "frame_addr" with "frame_id".
3668 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3669 * values.c (allocate_value): Use VALUE_FRAME_ID.
3670 (value_copy): Use VALUE_FRAME_ID.
3671 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3672 * valops.c (value_assign): Update. Use frame_find_by_id.
3673
3674 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3675
3676 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3677 in each pass.
3678
3679 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3680
3681 * thread-db.c (check_event): For create/death event breakpoints,
3682 loop through all messages to ensure that we read the message
3683 corresponding to the breakpoint we are at.
3684
3685 2003-06-04 Michael Snyder <msnyder@redhat.com>
3686
3687 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3688
3689 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3690
3691 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3692 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3693 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3694 when handling .eh_frame sections.
3695
3696 2003-06-04 J. Brobecker <brobecker@gnat.com>
3697
3698 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3699 prepare_to_proceed procedure instead of the hppa-specific one.
3700 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3701
3702 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3703
3704 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3705 * config.in: Regenerated.
3706 * configure.in: Add test for syscall function and check for
3707 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3708 * configure: Regenerated.
3709 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3710 <sys/syscall.h>.
3711 (kill_lwp): New function that uses tkill syscall or
3712 uses kill, depending on whether threading model is nptl or not.
3713 All callers of kill() changed to use kill_lwp().
3714 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3715 see if all threads have already exited in the nptl model.
3716 (stop_and_resume_callback): New callback function used by the
3717 lin_lwp_wait thread exit handling code.
3718 (stop_wait_callback): Check for threads already having exited and
3719 delete such threads fromt the lwp list when discovered.
3720 (stop_callback): Don't assert retcode of kill call.
3721
3722 Roland McGrath <roland@redhat.com>
3723 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3724 nptl libthread_db.
3725
3726 2003-06-03 Richard Henderson <rth@redhat.com>
3727
3728 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3729 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3730 (alpha_sigtramp_frame_prev_register): Likewise.
3731 (alpha_heuristic_frame_prev_register): Likewise.
3732 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3733
3734 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3735 alpha-specific register id names.
3736 (alpha_mdebug_frame_unwind_cache): Likewise.
3737 (alpha_mdebug_frame_prev_register): Likewise.
3738
3739 2003-06-03 Richard Henderson <rth@redhat.com>
3740
3741 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3742 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3743 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3744 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3745 unwind routines.
3746 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3747 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3748 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3749
3750 * alpha-linux-tdep.c: Remove unnecessary includes.
3751 * Makefile.in (alpha-linux-tdep.o): Update.
3752
3753 2003-06-03 Richard Henderson <rth@redhat.com>
3754
3755 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3756 (alphabsd_fill_fpreg): Likewise.
3757
3758 2003-06-03 J. Brobecker <brobecker@gnat.com>
3759
3760 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3761 references to struct frame_info fields by calls to the equivalent
3762 accessors. Necessary now that frame_info is opaque.
3763
3764 2003-06-03 J. Brobecker <brobecker@gnat.com>
3765
3766 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3767 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3768 structure, field no longer exists.
3769
3770 2003-06-03 J. Brobecker <brobecker@gnat.com>
3771
3772 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3773 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3774
3775 2003-06-03 J. Brobecker <brobecker@gnat.com>
3776
3777 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3778 references to struct frame_info fields by calls to the equivalent
3779 accessors. Necessary now that frame_info is opaque.
3780
3781 2003-06-03 J. Brobecker <brobecker@gnat.com>
3782
3783 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3784 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3785 structure, field no longer exists.
3786
3787 2003-06-03 Theodore A. Roth <troth@openavr.org>
3788
3789 * remote.c (init_remote_state): Compute sizeof_g_packet by
3790 accumulation of the size of all registers instead of blindly using
3791 DEPRECATED_REGISTER_BYTES.
3792
3793 2003-06-03 Michael Snyder <msnyder@redhat.com>
3794
3795 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3796 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3797 for h8300sx.
3798
3799 2003-06-03 J. Brobecker <brobecker@gnat.com>
3800
3801 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3802 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3803
3804 2003-06-03 Andrew Cagney <cagney@redhat.com>
3805
3806 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3807 (sparc_convert_to_raw): Delete function.
3808 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3809 register_convert_to_virtual.
3810
3811 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3812
3813 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3814 layer if not dealing with a statically-linked threaded program.
3815
3816 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3817
3818 * solib.c (solib_open): Update comment to reflect actual search order.
3819
3820 2003-06-03 Andrew Cagney <cagney@redhat.com>
3821
3822 * frame.c (get_frame_memory_signed): New function.
3823 (get_frame_memory, get_frame_memory_unsigned): New function.
3824 (get_frame_arch): New function.
3825 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3826 (get_frame_memory, get_frame_unsigned_memory): Declare.
3827 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3828 get_frame_memory_unsigned and get_frame_arch.
3829 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3830
3831 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3832
3833 * MAINTAINERS (write after approval): Add myself.
3834
3835 2003-06-03 Jim Blandy <jimb@redhat.com>
3836
3837 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3838 elements of gregset_t are 64 bits each, but access registers
3839 are still 32 bits, so they're packed two per gregset_t
3840 element. Unpack/pack them properly.
3841
3842 2003-06-02 David Carlton <carlton@bactrian.org>
3843
3844 * linespec.c (find_methods): Break out code into
3845 add_matching_methods and add_constructors.
3846 (add_matching_methods): New.
3847 (add_constructors): Ditto.
3848
3849 2003-06-02 Andrew Cagney <cagney@redhat.com>
3850
3851 * sparc-tdep.c (sparc_print_registers): Delete call to
3852 REGISTER_CONVERTIBLE.
3853 (sparc_gdbarch_init): Do not set register_convertible.
3854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3855 * frv-tdep.c (frv_gdbarch_init): Ditto.
3856 * cris-tdep.c (cris_gdbarch_init): Ditto.
3857
3858 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3859
3860 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3861 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3862 (syms_from_objfile): Ditto.
3863
3864 2003-06-03 Andreas Schwab <schwab@suse.de>
3865
3866 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3867 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3868
3869 2003-06-02 Richard Henderson <rth@redhat.com>
3870
3871 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3872 a member of all_reggroup.
3873
3874 2003-06-02 Richard Henderson <rth@redhat.com>
3875
3876 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3877 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3878 (alpha_lds, alpha_sts): New.
3879 (alpha_convert_register_p): Change from _register_convertible.
3880 (alpha_register_to_value): Change from _convert_to_virtual;
3881 restructure and fail for type sizes other than 4 or 8.
3882 (alpha_value_to_register): Similarly.
3883 (alpha_extract_return_value): Use alpha_sts.
3884 (alpha_store_return_value): Use alpha_lds.
3885 (alpha_gdbarch_init): Update hooks.
3886
3887 2003-06-02 Richard Henderson <rth@redhat.com>
3888
3889 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3890 regnum identifiers.
3891 (alpha_sigtramp_register_address): Likewise.
3892
3893 2003-06-02 Richard Henderson <rth@redhat.com>
3894
3895 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3896 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3897 * alpha-tdep.h: Declare them.
3898
3899 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3900 Remove zerobuf. Don't error on UNIQUE.
3901 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3902 (ALPHA_REGSET_UNIQUE): Provide default.
3903 (supply_gregset): Use alpha_supply_int_regs.
3904 (fill_gregset): Use alpha_fill_int_regs.
3905 (supply_fpregset): Use alpha_supply_fp_regs.
3906 (fill_fpregset): Use alpha_fill_fp_regs.
3907 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3908 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3909 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3910 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3911 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3912 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3913
3914 2003-06-02 Richard Henderson <rth@redhat.com>
3915
3916 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3917
3918 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3919 (alpha_store_return_value): Likewise.
3920
3921 2003-06-02 David Carlton <carlton@math.stanford.edu>
3922
3923 * block.c (contained_in): Add 'const' to arguments.
3924 (block_function): Ditto.
3925 * block.h: Update declarations for block_function and
3926 contained_in.
3927
3928 2003-06-02 David Carlton <carlton@math.stanford.edu>
3929
3930 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3931 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3932 * p-valprint.c (pascal_val_print): Ditto.
3933 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3934
3935 2003-06-02 Richard Henderson <rth@redhat.com>
3936
3937 * alpha-tdep.c (alpha_push_dummy_call): Use
3938 builtin_type_ieee_double_little instead of builtin_type_double.
3939
3940 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3941 sign-extension of 32-bit values.
3942 (alpha_store_return_value): Similarly.
3943
3944 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3945 (alpha_extract_return_value): Likewise.
3946 (alpha_store_return_value): Likewise.
3947
3948 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3949 (alpha_store_return_value): Error on IEEE Quad floats.
3950
3951 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3952 (alpha_extract_struct_value_address): Likewise.
3953 (alpha_store_return_value): Likewise.
3954 (alpha_store_struct_return): Remove.
3955 (alpha_gdbarch_init): Update hook registration to match.
3956
3957 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3958 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3959 macros where appropriate.
3960 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3961 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3962
3963 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3964 for SP, GP; void_func_ptr for PC; non-language-specific types
3965 for all others.
3966 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3967
3968 2003-06-02 Richard Henderson <rth@redhat.com>
3969
3970 * top.h (lim_at_start): Declare.
3971 * main.c (captured_main): Set it.
3972 * top.c (lim_at_start): Define.
3973 (command_loop): Use it instead of &environ.
3974 * event-top.c (command_handler): Likewise.
3975
3976 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3977
3978 * mipsnbsd-tdep.c: Update copyright years.
3979 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3980
3981 2003-06-01 Richard Henderson <rth@redhat.com>
3982
3983 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3984 (alpha-linux-tdep.o): Update dependencies.
3985 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3986 * alpha-mdebug-tdep.c: Remove unneeded includes.
3987
3988 2003-06-01 Richard Henderson <rth@redhat.com>
3989
3990 * alpha-tdep.c (alpha_register_reggroup_p): New.
3991 (alpha_gdbarch_init): Register it.
3992
3993 2003-06-02 Andrew Cagney <cagney@redhat.com>
3994
3995 * dwarfread.c: Eliminate "register"
3996 (decode_die_type): Eliminate assignment within "if".
3997 (struct_type, decode_array_element_type): Ditto.
3998 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3999 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4000 (decode_modified_type, completedieinfo): Ditto.
4001 * block.c: Eliminate "register".
4002 (blockvector_for_pc_sect): Eliminate assignment within "if".
4003 * cp-support.h (struct symbol): Opaque declaration.
4004 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4005
4006 2003-06-01 Richard Henderson <rth@redhat.com>
4007
4008 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4009 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4010
4011 2003-06-01 Adam Fedor <fedor@gnu.org>
4012
4013 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4014 * gdbarch.[ch]: Regenerate.
4015 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4016 (hppa_gdbarch_init): Set it in the gdbarch vector.
4017 * i386-tdep.c (i386_fetch_pointer_argument): New
4018 (i386_gdbarch_init): Set it into gdbarch.
4019 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4020 (rs6000_gdbarch_init): Set it in gdbarch.
4021 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4022 (sparc_gdbarch_init): Set it in gdbarch.
4023
4024 2003-06-01 Andrew Cagney <cagney@redhat.com>
4025
4026 * defs.h (extract_address): Delete declaration.
4027 * findvar.c (extract_address): Delete function.
4028 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4029 extract_address with the inline equivalent,
4030 extract_unsigned_integer.
4031 (xstormy16_extract_struct_value_address): Ditto.
4032 (xstormy16_pointer_to_address): Ditto.
4033 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4034 * v850-tdep.c (v850_push_arguments): Ditto.
4035 (v850_extract_return_value): Ditto.
4036 (v850_extract_struct_value_address): Ditto.
4037 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4038 (sparcnbsd_get_longjmp_target_64): Ditto.
4039 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4040 (get_longjmp_target): Ditto.
4041 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4042 (sh64_extract_struct_value_address): Ditto.
4043 (sh_push_arguments): Ditto.
4044 (sh64_push_arguments): Ditto.
4045 * remote-vxsparc.c (vx_read_register): Ditto.
4046 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4047 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4048 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4049 * mipsv4-nat.c (get_longjmp_target): Ditto.
4050 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4051 * mips-nat.c (get_longjmp_target): Ditto.
4052 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4053 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4054 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4055 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4056 * irix5-nat.c (get_longjmp_target): Ditto.
4057 * irix4-nat.c (get_longjmp_target): Ditto.
4058 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4059 (ia64_push_arguments): Ditto.
4060 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4061 * h8300-tdep.c (h8300_push_arguments): Ditto.
4062 (h8300_store_return_value): Ditto.
4063 (h8300_extract_struct_value_address): Ditto.
4064 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4065 (frv_push_arguments): Ditto.
4066 * avr-tdep.c (avr_pointer_to_address): Ditto.
4067 (avr_push_arguments): Ditto.
4068 * arm-tdep.c (arm_push_dummy_call): Ditto.
4069 (arm_get_longjmp_target): Ditto.
4070 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4071 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4072 (alpha_get_longjmp_target): Ditto.
4073
4074 * solib-irix.c (extract_mips_address): Inline extract_address,
4075 replacing it with extract_signed_integer.
4076 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4077 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4078 (first_link_map_member, open_symbol_file_object): Ditto.
4079 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4080 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4081 (LM_NEXT, LM_NAME): Ditto.
4082
4083 2003-06-01 Richard Henderson <rth@redhat.com>
4084
4085 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4086 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4087 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4088 (alpha_cannot_store_register): Likewise.
4089 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4090 * alpha-nat.c (supply_gregset): Likewise.
4091 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4092
4093 2003-06-01 Andrew Cagney <cagney@redhat.com>
4094
4095 * infcall.c (call_function_by_hand): Update comment on
4096 DEPRECATED_DUMMY_WRITE_SP.
4097
4098 * mips-tdep.c (mips_gdbarch_init): Do not set
4099 deprecated_dummy_write_sp.
4100 (mips_eabi_push_dummy_call): Set the SP register.
4101 (mips_o64_push_dummy_call): Set the SP register.
4102 (mips_o32_push_dummy_call): Set the SP register.
4103 (mips_n32n64_push_dummy_call): Set the SP register.
4104
4105 2003-06-01 Richard Henderson <rth@redhat.com>
4106
4107 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4108 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4109 (supply_gregset): Likewise.
4110 * alpha-tdep.c (alpha_store_return_value): Likewise.
4111 (alpha_get_longjmp_target): Likewise.
4112 (alpha_register_name): Constify array.
4113 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4114 deprecated_register_size, deprecated_register_bytes,
4115 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4116 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4117 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4118
4119 2003-06-01 Richard Henderson <rth@redhat.com>
4120
4121 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4122 from arg_reg_buffer to regcache to avoid double conversion.
4123
4124 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4125
4126 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4127 SP_REGNUM.
4128 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4129 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4130
4131 2003-06-01 Richard Henderson <rth@redhat.com>
4132
4133 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4134 (decode_frame_entry): Set it. Skip FDE augmentation.
4135
4136 2003-06-01 Richard Henderson <rth@redhat.com>
4137
4138 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4139 not overlapping PC_REGNUM.
4140
4141 2003-06-01 Richard Henderson <rth@redhat.com>
4142
4143 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4144 alpha_push_arguments. Don't dump argument register data to
4145 the target stack. Fix float and 128-bit long double semantics.
4146 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4147 (alpha_fix_call_dummy): Remove.
4148 (alpha_call_dummy_words): Remove.
4149 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4150
4151 2003-06-01 Richard Henderson <rth@redhat.com>
4152
4153 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4154
4155 2003-06-01 Andrew Cagney <cagney@redhat.com>
4156
4157 * mips-tdep.c (is_mips16_addr): New function.
4158 (make_mips16_addr, unmake_mips16_addr): New functions.
4159 (pc_is_mips16, mips_fetch_instruction): Use.
4160 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4161 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4162 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4163 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4164 TARGET_MIPS.
4165 * config/mips/tm-mips.h: Update copyright.
4166 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4167 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4168 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4169 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4170 (TM_PRINT_INSN_MACH): Delete.
4171 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4172
4173 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4174 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4175 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4176 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4177 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4178 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4179 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4180 mips*-*-riscos* and mips*-*-sysv* onto mips.
4181 * config/mips/mips64.mt: New file.
4182 * config/mips/mips.mt: New file.
4183 * config/mips/littlemips.mt: Delete file.
4184 * config/mips/decstation.mt: Delete file.
4185 * config/mips/vr4300el.mt: Delete file.
4186 * config/mips/vr5000el.mt: Delete file.
4187 * config/mips/vr5000.mt: Delete file.
4188 * config/mips/vr4100.mt: Delete file.
4189 * config/mips/vr4xxxel.mt: Delete file.
4190 * config/mips/vr4300.mt: Delete file.
4191 * config/mips/vr4xxx.mt: Delete file.
4192 * config/mips/bigmips.mt: Delete file.
4193 * config/mips/bigmips64.mt: Delete file.
4194 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4195 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4196 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4197 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4198 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4199 "tm-bigmips.h".
4200 * config/mips/tm-irix3.h: Ditto.
4201 * config/mips/tm-mipsv4.h: Ditto.
4202 * config/mips/tm-embed.h: Ditto.
4203 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4204 "tm-bigmips64.h".
4205 * config/mips/tm-vr5000el.h: Delete file.
4206 * config/mips/tm-tx39l.h: Delete file.
4207 * config/mips/tm-vr4300el.h: Delete file.
4208 * config/mips/tm-vr4xxxel.h: Delete file.
4209 * config/mips/tm-vr4300.h: Delete file.
4210 * config/mips/tm-vr4100.h: Delete file.
4211 * config/mips/tm-vr4xxx.h: Delete file.
4212 * config/mips/tm-vr5000.h: Delete file.
4213 * config/mips/tm-embedl64.h: Delete file.
4214 * config/mips/tm-embedl.h: Delete file.
4215 * config/mips/tm-embed64.h: Delete file.
4216 * config/mips/tm-bigmips64.h: Delete file.
4217 * config/mips/tm-bigmips.h: Delete file.
4218
4219 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4220
4221 Fix gdb/1216.
4222 * shnbsd-nat.c: Include "sh-tdep.h".
4223
4224 From Richard Henderson <rth@redhat.com>:
4225 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4226
4227 2003-05-31 Andrew Cagney <cagney@redhat.com>
4228
4229 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4230 forward declaration.
4231 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4232 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4233 (mips_find_saved_regs): Use set_reg_offset.
4234 (mips_frame_init_saved_regs): Delete function.
4235 (mips_pop_frame): Call mips_find_saved_regs instead of
4236 DEPRECATED_FRAME_INIT_SAVED_REGS.
4237
4238 2003-05-31 Andrew Cagney <cagney@redhat.com>
4239
4240 * mips-tdep.c (mips_gdbarch_init): Do not set
4241 deprecated_max_register_raw_size, register_virtual_size, and
4242 deprecated_max_register_virtual_size.
4243
4244 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4245
4246 * i386-tdep.c: Include "dwarf2-frame.h".
4247 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4248 * Makefile.in (i386-tdep.o): Update dependencies.
4249
4250 * dwarf2-frame.c, dwarf2-frame.h: New files.
4251 * Makefile.in (SFILES): Add dwarf2-frame.c.
4252 (dwarf2_frame_h): Define.
4253 (COMMON_OBS): Add dwarf2-frame.o.
4254 (dwarf2-frame.o): Add dependencies.
4255
4256 2003-05-31 Andreas Jaeger <aj@suse.de>
4257
4258 * x86-64-linux-nat.c: Fix comment.
4259
4260 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4261
4262 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4263 function signature.
4264
4265 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4266 have a sigcontext_addr handler.
4267 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4268 sigcontext_addr handler.
4269
4270 2003-05-31 Andrew Cagney <cagney@redhat.com>
4271
4272 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4273 (print_fp_register_row): Replace do_fp_register_row.
4274 (mips_print_fp_register): Add "file" and "frame" parameters.
4275 (mips_print_register): Add "file" and "frame" parameters.
4276 (mips_print_registers_info): Replace mips_do_registers_info.
4277 (mips_gdbarch_init): Set print_registers_info instead of
4278 deprecated_do_registers_info.
4279 (mips_read_fp_register_single): Add "frame" parameter.
4280 (mips_read_fp_register_double): Add "frame" parameter.
4281
4282 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4283
4284 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4285 Fixes a bug where GDB would print the wrong register names for
4286 targets without SSE.
4287
4288 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4289 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4290 registers.
4291
4292 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4293 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4294 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4295 TDEP->sc_sp_offset.
4296
4297 From Michal Ludvig <mludvig@suse.cz>:
4298 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4299 and `sc_num_regs'.
4300 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4301 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4302 I386_ST0_REGNUM): Move here from...
4303 * i386-tdep.c: ... here.
4304 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4305 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4306 registers if possible.
4307 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4308 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4309 Remove variables.
4310 (i386bsd_sc_reg_offset): New variable.
4311 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4312 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4313 TDEP->sc_sp_offset.
4314 (i386fbsd_sc_reg_offset): New variable.
4315 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4316 TDEP->sc_num_regs.
4317 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4318 variables.
4319 (i386fbsd4_sc_reg_offset): New variable.
4320 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4321 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4322 TDEP->sc_sp_offset.
4323 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4324 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4325 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4326 Remove variables.
4327 (i386nbsd_sc_reg_offset): New variable.
4328 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4329 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4330 TDEP->sc_sp_offset.
4331 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4332 Remove variables.
4333 (i386obsd_sc_reg_offset): New variable.
4334 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4335 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4336 TDEP->sc_sp_offset.
4337 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4338 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4339 for frame pointer offset in `struct sigcontext'.
4340
4341 2003-05-31 Andrew Cagney <cagney@redhat.com>
4342
4343 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4344 architecture methods call_dummy_words, sizeof_call_dummy_words,
4345 push_return_address, store_struct_return, and fix_call_dummy. Set
4346 push_dummy_call instead of deprecated_push_arguments.
4347 (mips_store_struct_return): Delete function.
4348 (mips_fix_call_dummy): Delete function.
4349 (mips_push_return_address): Delete function.
4350 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4351 RA_REGNUM and T9_REGNUM.
4352 (mips_n32n64_push_dummy_call): Ditto for
4353 mips_n32n64_push_arguments.
4354 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4355 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4356
4357 2003-05-31 Andrew Cagney <cagney@redhat.com>
4358
4359 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4360 "dummy_addr" to "bp_addr".
4361 * infcall.c (call_function_by_hand): Pass "funaddr" to
4362 gdbarch_push_dummy_call.
4363 * gdbarch.h, gdbarch.c: Re-generate.
4364 * i386-tdep.c (i386_push_dummy_call): Update.
4365 * arm-tdep.c (arm_push_dummy_call): Update.
4366 * d10v-tdep.c (d10v_push_dummy_call): Update.
4367
4368 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4369
4370 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4371 variable declarations.
4372 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4373 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4374 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4375 x86_64_init_frame_pc, x86_64_init_frame_pc,
4376 x86_64_function_has_prologue): Remove prototypes.
4377 (X86_64_NUM_GREGS): New define.
4378 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4379 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4380 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4381 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4382 XMM1_REGNUM): Remove defines.
4383 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4384 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4385 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4386 X86_64_XMM1_REGNUM): New defines.
4387 (struct x86_64_register_info): Renamed from `struct
4388 register_info'. Remove `size' member.
4389 (x86_64_register_info_table): Remove variable.
4390 (x86_64_register_info): New variable.
4391 (X86_64_NUM_REGS): New define.
4392 (X86_64_NUM_GREGS): Remove define.
4393 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4394 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4395 Remove variables.
4396 (x86_54_dwarf2_reg_to_regnum): Remove function.
4397 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4398 (x86_64_dwarf_reg_to_regnum): New function.
4399 (x86_64_register_name): Rewrite.
4400 (x86_64_register_raw_size): Remove function.
4401 (x86_64_register_byte_table): Remove variable.
4402 (x86_64_register_byte): Remove function.
4403 (x86_64_register_virtual_type): Remove function.
4404 (x86_64_register_type): New function.
4405 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4406 x86_64_register_convert_to_raw): Remove functions.
4407 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4408 (x86_64_use_struct_convention): Make static. Adjust for renamed
4409 defines.
4410 (x86_64_frame_init_saved_regs): Remove function.
4411 (x86_64_push_arguments): Make static. Change to accept a regcache
4412 as argument.
4413 (x86_64_store_return_value, x86_64_extract_return_value): Make
4414 static. Rewrite based on i386 counterparts.
4415 (x86_64_push_dummy_call): New function.
4416 (X86_64_NUM_SAVED_REGS): New define.
4417 (x86_64_register_number): Remove function.
4418 (x86_64_store_struct_return): Remove function.
4419 (x86_64_frameless_function_invocation,
4420 x86_64_function_has_prologue): Remove functions.
4421 (PROLOG_BUFSIZE): Remove define.
4422 (struct x86_64_frame_cache): New structure.
4423 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4424 x86_64_frame_cache, x86_64_frame_this_id,
4425 x86_64_frame_prev_register, x86_64_frame_p,
4426 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4427 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4428 functions.
4429 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4430 variables.
4431 (x86_64_skip_prologue): Rewrite in terms of
4432 x86_64_analyze_prologue.
4433 (x86_64_frame_base_address): New function.
4434 (x86_64_frame_base): New variable.
4435 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4436 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4437 set deprecated_fp_regnum, deprecated_register_size,
4438 deprecated_register_bytes, register_raw_size, register_byte,
4439 register_virtual_type, register_convertiable,
4440 register_convert_to_virtual, convert_to_raw,
4441 deprecated_get_saved_register, deprecated_target_read_fp,
4442 deprecated_push_arguments, deprecated_push_return_address,
4443 deprecated_pop_frame, deprecated_store_struct_return,
4444 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4445 frameless_function_invocation, deprecated_frame_saved_pc,
4446 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4447 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4448 deprecated_init_frame_pc and virtual_frame_pointer. Call
4449 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4450 and x86_64_frame_p. Call frame_base_set_default to register
4451 x86_64_frame_base.
4452 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4453 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4454 (_initialize_x86_64_tdep): Remove function.
4455 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4456 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4457 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4458 define.
4459 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4460 (x86_64_linux_sigcontext_addr): Rewrite.
4461 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4462 x86_64_linux_frame_saved_pc): Remove functions.
4463 (x86_64_linux_pc_in_sigtramp): Renamed from
4464 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4465 trampoline.
4466 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4467 Remove_functions.
4468 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4469 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4470 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4471 (x86_64_regmap): Rename to regmap.
4472 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4473 x86_64_num_gregs.
4474 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4475 x86_64_regmap.
4476 (x86_64_fxsave_offset): Remove function.
4477 (supply_fpregset): Simply call x86_64_supply_fxsave.
4478 (fill_fpregset): Simply call x86_64_fill_fxsave.
4479 (fetch_inferior_registers, store_inferior_registers): Avoid
4480 asignment in if-statement.
4481 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4482 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4483 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4484 (fetch_core_registers): Remove function.
4485 (linux_elf_core_fns): Remove.
4486 (offsetoff): Don't define.
4487 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4488 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4489 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4490 add core-regset.o.
4491 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4492 protection against multiple includes instead of NM_X86_64_h. Add
4493 various comments. Include "config/nm-linux.h". Don't include
4494 <signal.h>.
4495 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4496 GET_THREAD_SIGNALS): Remove defines.
4497 (x86_64_register_u_addr, kernel_u_size,
4498 lin_thread_get_thread_signals): Remove prototypes.
4499 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4500 [HAVE_LINK_H]: Don't include "solib.h".
4501 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4502 * config/i386/tm-x86-64linux.h: Fix comments.
4503 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4504 x86-64-tdep.o): Update dependencies.
4505
4506 2003-05-30 Andrew Cagney <cagney@redhat.com>
4507
4508 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4509 Change parameter type to a "struct regcache *".
4510
4511 * gdbarch.sh: Regardless of the multi-arch level, always define
4512 the macro when not already defined.
4513 * gdbarch.h, gdbarch.c: Re-generate.
4514
4515 2003-05-30 Richard Henderson <rth@redhat.com>
4516
4517 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4518 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4519 (alpha_mdebug_frame_this_id): Likewise.
4520 (alpha_mdebug_frame_prev_register): Likewise.
4521 (alpha_mdebug_frame_base_address): Likewise.
4522 (alpha_mdebug_frame_locals_address): Likewise.
4523 (alpha_mdebug_frame_args_address): Likewise.
4524 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4525 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4526 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4527 loop increment.
4528 (alpha_heuristic_frame_this_id): Make static.
4529 (alpha_heuristic_frame_prev_register): Likewise.
4530 (alpha_heuristic_frame_base_address): Likewise.
4531 * alpha-tdep.h: Update.
4532
4533 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4534
4535 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4536 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4537 defenitions.
4538 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4539 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4540 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4541 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4542 I386_ST0_REGNUM): New defines.
4543 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4544 codestream_get): Remove define.
4545 (codestream_next_addr, condestream_addr, condestream_buf,
4546 codestream_off, codestream_cnt): Remove variables.
4547 (codestream_fill, codestream_seek, codestream_read): Remove
4548 functions.
4549 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4550 functionality.
4551 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4552 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4553 i386_frame_saved_pc, i386_saved_pc_after_call,
4554 i386_frame_num_args, i386_frame_init_saved_regs,
4555 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4556 i386_push_arguments): Remove functions.
4557 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4558 functionality. Use i386_analyze_prologue instead of
4559 i386_get_frame_setup.
4560 (I386_NUM_SAVED_REGS): New define.
4561 (struct i386_frame_cache): New structure.
4562 (i386_alloc_frame_cache, i386_analyze_struct_return,
4563 i386_skip_probe, i386_analyze_frame_setup,
4564 i386_analyze_register_saves, i386_analyze_prologue,
4565 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4566 i386_frame_prev_register, i386_sigtramp_frame_cache,
4567 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4568 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4569 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4570 New functions.
4571 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4572 New variables.
4573 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4574 I386_EAX_REGNUM and I386_EDX_REGNUM.
4575 (i386_extract_return_value, i386_store_return_value): Use
4576 I386_ST0_REGNUM where appropriate.
4577 (i386_extract_struct_value_address): Rewrite to use extract_address.
4578 (i386_svr4_pc_in_sigtramp): Add comment.
4579 (i386_svr4_sigcontext_addr): Rewrite.
4580 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4581 TDEP->sc_sp_offset.
4582 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4583 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4584 of new defines. Set push_dummy_call, don't set
4585 deprecated_push_arguments, deprecated_push_return_address,
4586 deprecated_pop_frame. Don't set parm_boundary. Don't set
4587 deprecated_frame_chain, deprecated_frame_saved_pc,
4588 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4589 save_dummy_frame_tos, unwind_pc. Call
4590 frame_unwind_append_predicate and frame_base_set_default. Don't
4591 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4592 Don't set frameless_function_invocation. Don't set
4593 deprecated_register_bytes, deprecated_register_size,
4594 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4595 * i386-linux-tdep.c: Fix formatting in some comments.
4596 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4597 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4598 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4599 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4600 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4601 redundant parentheses.
4602 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4603 (i386_linux_sigcontext_addr): Use it. Rewrite.
4604 (find_minsym_and_objfile): Change name of second argument.
4605 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4606 changed. Use frame_pc_unwind instead of
4607 DEPRECATED_SAVED_PC_AFTER_CALL.
4608 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4609 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4610 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4611 unwinder.
4612 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4613 "dummy-frame.h".
4614 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4615 (_initialize_i386_cygwin_tdep): New prototype.
4616 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4617 deprecated_frame_chain_valid.
4618 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4619 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4620 Rely on the SVR4 defaults.
4621 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4622 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4623
4624 2003-05-30 Andrew Cagney <cagney@redhat.com>
4625
4626 * infcall.c (call_function_by_hand): Always call
4627 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4628
4629 2003-05-30 Richard Henderson <rth@redhat.com>
4630
4631 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4632 increment.
4633
4634 2003-05-29 Jim Blandy <jimb@redhat.com>
4635
4636 Use gdbarch methods for solib stuff on PowerPC Linux.
4637 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4638 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4639 show through.
4640 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4641 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4642 giving the same effect as the #definitions above.
4643
4644 2003-05-29 Adam Fedor <fedor@gnu.org>
4645
4646 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4647 (find_implementation_from_class): Replace it with the standard
4648 case i.e. do nothing.
4649
4650 2003-05-29 Richard Henderson <rth@redhat.com>
4651
4652 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4653 (alpha_linux_sigtramp_offset): Use it. Make static.
4654 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4655 update for new frame model.
4656 * alpha-mdebug-tdep.c: New file.
4657 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4658 (alpha_osf1_init_abi): Install it.
4659 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4660 (linked_proc_desc_table): Remove.
4661 (alpha_frame_past_sigtramp_frame): Remove.
4662 (alpha_dynamic_sigtramp_offset): Remove.
4663 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4664 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4665 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4666 (push_sigtramp_desc): Remove.
4667 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4668 (alpha_cannot_store_register): Likewise.
4669 (alpha_sigcontext_addr): Remove.
4670 (alpha_find_saved_regs): Remove.
4671 (alpha_frame_init_saved_regs): Remove.
4672 (alpha_init_frame_pc_first): Remove.
4673 (read_next_frame_reg): Remove.
4674 (alpha_frame_saved_pc): Remove.
4675 (alpha_saved_pc_after_call): Remove.
4676 (temp_proc_desc, temp_saved_regs): Remove.
4677 (alpha_about_to_return): Remove.
4678 (cached_proc_desc): Remove.
4679 (alpha_frame_chain): Remove.
4680 (alpha_print_extra_frame_info): Remove.
4681 (alpha_init_extra_frame_info): Remove.
4682 (alpha_frame_locals_address): Remove.
4683 (alpha_frame_args_address): Remove.
4684 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4685 (alpha_push_dummy_frame): Remove.
4686 (alpha_pop_frame): Remove.
4687 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4688 (alpha_read_insn): New.
4689 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4690 for different insn encodings.
4691 (alpha_in_lenient_prologue): Remove.
4692 (struct alpha_sigtramp_unwind_cache): New.
4693 (alpha_sigtramp_frame_unwind_cache): New.
4694 (alpha_sigtramp_register_address): New.
4695 (alpha_sigtramp_frame_this_id): New.
4696 (alpha_sigtramp_frame_prev_register): New.
4697 (alpha_sigtramp_frame_unwind): New.
4698 (alpha_sigtramp_frame_p): New.
4699 (struct alpha_heuristic_unwind_cache): New.
4700 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4701 don't count nop insns that occur between functions.
4702 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4703 heuristic_proc_desc, but without the mdebug wrapping.
4704 (alpha_heuristic_frame_this_id): New.
4705 (alpha_heuristic_frame_prev_register): New.
4706 (alpha_heuristic_frame_unwind): New.
4707 (alpha_heuristic_frame_p): New.
4708 (alpha_heuristic_frame_base_address): New.
4709 (alpha_heuristic_frame_base): New.
4710 (alpha_unwind_dummy_id): New.
4711 (alpha_unwind_pc): New.
4712 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4713 frame related deprecated initializations; install replacements.
4714 (alpha_dump_tdep): Remove.
4715 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4716 (alpha_read_insn, alpha_after_prologue,
4717 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4718 alpha_heuristic_frame_prev_register,
4719 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4720 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4721 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4722 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4723
4724 2003-05-29 Andrew Cagney <cagney@redhat.com>
4725
4726 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4727 dependant on the availability of ASSERT_FUNCTION.
4728 (ASSERT_FUNCTION): Do not define when there is no function name.
4729
4730 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4731
4732 From Jimi X <jimix@watson.ibm.com>:
4733 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4734
4735 2003-05-28 Jim Blandy <jimb@redhat.com>
4736
4737 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4738 argument to ptrace to int; the system headers should give it the
4739 right type, and pointers don't fit in ints on powerpc64-*-*.
4740
4741 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4742
4743 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4744 DW_TAG_catch_block.
4745
4746 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4747
4748 * stabsread.c (dbx_lookup_type): Make static.
4749 (read_type): Ditto.
4750 (add_undefined_type): Ditto.
4751 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4752 not export.
4753
4754 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4755
4756 * hpread.c (hpread_has_name): Make static.
4757 (hpread_psymtab_to_symtab): Ditto.
4758 (file_exists): Ditto.
4759 (hpread_call_pxdb): Ditto.
4760 (hpread_pxdb_needed): Ditto.
4761 (hpread_quick_traverse): Ditto.
4762 (hpread_get_header): Ditto.
4763 (hpread_get_lntt): Ditto.
4764 (hpread_get_slt): Ditto.
4765 (class_of): Ditto.
4766
4767 2003-05-25 Andreas Schwab <schwab@suse.de>
4768
4769 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4770 stack_align and deprecated_extra_stack_alignment_needed.
4771 (m68k_stack_align): Delete.
4772
4773 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4774 (m68k_register_virtual_size): Likewise.
4775 (altos_skip_prologue): Remove obsolete function.
4776 (isi_frame_num_args): Likewise.
4777 (news_frame_num_args): Likewise.
4778 (m68k_fix_call_dummy): Make static.
4779 (m68k_push_dummy_frame): Likewise.
4780 (m68k_pop_frame): Likewise.
4781 (m68k_skip_prologue): Likewise.
4782 (m68k_frame_init_saved_regs): Likewise.
4783 (m68k_saved_pc_after_call): Likewise.
4784 (m68k_get_longjmp_target): Make multi-arch.
4785 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4786 structure. Register m68k_get_longjmp_target if enabled.
4787 * m68k-tdep.h (struct gdbarch_tdep): Define.
4788 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4789
4790 * Makefile.in (config.status): Also depend on configure.tgt
4791 and configure.host.
4792 (m68klinux-tdep.o): Update dependencies.
4793 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4794 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4795 (M68K_LINUX_JB_PC): Define.
4796 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4797 and take additional parameter.
4798 (m68k_linux_sigtramp_saved_pc): Update.
4799 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4800 m68k_linux_pc_in_sigtramp, in_plt_section,
4801 find_solib_trampoline_target.
4802 * config/m68k/tm-linux.h: Don't include any tm headers.
4803 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4804 (JB_ELEMENT_SIZE): Likewise.
4805 (JB_PC): Likewise.
4806 (GET_LONGJMP_TARGET): Likewise.
4807 (IN_SIGTRAMP): Likewise.
4808 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4809
4810 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4811
4812 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4813 (sparc32_push_arguments): Re-implement by calling
4814 sparc32_do_push_arguments.
4815
4816 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4817
4818 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4819 SPARC_O1_REGNUM): New defines.
4820 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4821 (sparc32_store_return_value): New function.
4822 (sparc_extract_struct_value_address): Rewrite to operate on a
4823 regcache.
4824 (sparc_gdbarch_init): Don't set
4825 deprecated_extract_struct_value_address. Set
4826 extract_struct_value_address instead. Don't set
4827 deprecated_extract_return_value and deprecated_store_return_value
4828 for 32-bit targets. Set extract_return_value and
4829 store_return_value instead.
4830 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4831 DEPRECTAED_EXTRACT_RETURN_VALUE,
4832 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4833 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4834 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4835 (sparc_store_return_value): Remove prototype.
4836 (sparc32_store_return_value): New prototype.
4837 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4838 Adjust prototypes.
4839
4840 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4841
4842 * sparcnbsd-tdep.c: Include "gdb_string.h".
4843
4844 2003-05-23 Andrew Cagney <cagney@redhat.com>
4845
4846 * p-valprint.c (pascal_val_print): Replace extract_address with
4847 the inline equivalent extract_unsigned_integer.
4848 * jv-valprint.c (java_value_print): Ditto.
4849 * ada-valprint.c (ada_val_print_1): Ditto.
4850 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4851
4852 2003-05-23 Theodore A. Roth <troth@openavr.org>
4853
4854 * blockframe.c (frameless_look_for_prologue): Remove unused
4855 after_prologue variable.
4856
4857 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4858
4859 * blockframe.c (get_pc_function_start): Rewrite to avoid
4860 asignments in if-statements.
4861
4862 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4863
4864 Committed by Elena Zannoni <ezannoni@redhat.com>.
4865 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4866 files, don't relocate absolute symbols (and do use mst_abs).
4867
4868 2003-05-23 Andrew Cagney <cagney@redhat.com>
4869
4870 * objc-lang.c: Include "gdb_assert.h".
4871 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4872 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4873 (gdb_check, gdb_check_fatal): Delete functions.
4874 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4875 gdb_assert.
4876 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4877 * Makefile.in (objc-lang.o): Update dependencies.
4878
4879 2003-05-22 Ian Lance Taylor <ian@airs.com>
4880
4881 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4882 with fprintf_filtered, not fprintf_unfiltered.
4883
4884 2003-05-22 Andrew Cagney <cagney@redhat.com>
4885
4886 * stack.c (frame_info): Inline extract_address, replacing it with
4887 extract_unsigned_integer.
4888 * findvar.c (unsigned_pointer_to_address): Ditto.
4889 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4890 * dwarf2expr.c (dwarf2_read_address): Ditto.
4891 * frame.c (frame_pc_unwind): Update comment.
4892 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4893
4894 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4895
4896 * infptrace.c (detach): Call print_sys_errmsg rather than
4897 perror_with_name to issue warning message when errno is non-zero
4898 after calling ptrace detach.
4899
4900 2003-05-21 J. Brobecker <brobecker@gnat.com>
4901
4902 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4903 macro definitions from here...
4904 * hppa-tdep.c: ...to there.
4905
4906 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4907
4908 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4909 register_ptrace_addr(). Fix all callers.
4910
4911 2003-05-21 Andreas Schwab <schwab@suse.de>
4912
4913 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4914 dependencies.
4915 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4916 end.
4917 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4918 (_initialize_m68k_linux_tdep): New function.
4919 (m68k_linux_frame_saved_pc): Make static.
4920 (m68k_linux_extract_return_value): Likewise.
4921 (m68k_linux_store_return_value): Likewise.
4922 (m68k_linux_extract_struct_value_address): Likewise.
4923 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4924 Remove.
4925 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4926 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4927 (DEPRECATED_FRAME_SAVED_PC): Remove.
4928
4929 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4930
4931 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4932 regset numbering rather than our own.
4933
4934 2003-05-19 David Carlton <carlton@bactrian.org>
4935
4936 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4937
4938 2003-05-19 David Carlton <carlton@bactrian.org>
4939
4940 Partial fix for PR c++/827.
4941 * cp-support.h: Include symtab.h.
4942 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4943 * cp-namespace.c: Update contributors.
4944 (cp_lookup_symbol_nonlocal): New.
4945 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4946 (lookup_symbol_file): Ditto.
4947 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4948 * block.h: Declare block_scope, block_using, block_global_block.
4949 * block.c (block_scope): New.
4950 (block_using, block_global_block): Ditto.
4951 * Makefile.in (cp_support_h): Depend on symtab_h.
4952 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4953
4954 2003-05-19 David Carlton <carlton@bactrian.org>
4955
4956 * language.h (struct language_defn): Add 'la_value_of_this'
4957 and 'la_lookup_symbol_nonlocal' members.
4958 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4959 lookup_symbol_static, lookup_symbol_global,
4960 lookup_symbol_aux_block.
4961 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4962 if we should search fields of this and how to do static/global
4963 lookup.
4964 (lookup_symbol_aux_block): Make extern.
4965 (basic_lookup_symbol_nonlocal): New.
4966 (lookup_symbol_static, lookup_symbol_global): Ditto.
4967 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4968 'la_lookup_symbol_nonlocal' members.
4969 * c-lang.c (c_language_defn, cplus_language_defn)
4970 (asm_language_defn, minimal_language_defn): Ditto.
4971 * jv-lang.c (java_language_defn): Ditto.
4972 * language.c (unknown_language_defn, auto_language_defn)
4973 (local_language_defn): Ditto.
4974 * m2-lang.c (m2_language_defn): Ditto.
4975 * objc-lang.c (objc_language_defn): Ditto.
4976 * scm-lang.c (scm_language_defn): Ditto.
4977 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4978 * p-lang.c (pascal_language_defn): Ditto for both.
4979 * Makefile.in (f-lang.o): Depend on value_h.
4980 (p-lang.o): Ditto.
4981
4982 2003-05-19 David Carlton <carlton@bactrian.org>
4983
4984 * block.h: Declare block_static_block.
4985 * block.c (block_static_block): New.
4986 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4987 lookup_symbol_aux_local, calling block_static_block instead.
4988 (lookup_symbol_aux_local): Delete 'static_block' argument.
4989
4990 2003-05-19 David Carlton <carlton@bactrian.org>
4991
4992 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4993
4994 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4995
4996 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4997 register numbers mapping.
4998
4999 2003-05-18 Adam Fedor <fedor@gnu.org>
5000
5001 * symtab.c (completion_list_objc_symbol): New function.
5002 (make_symbol_completion_list): Use it to add ObjC symbols
5003 when looking though the list.
5004 (language_search_unquoted_string): New function.
5005 (make_file_symbol_completion_list): Use it.
5006
5007 2003-05-18 Andreas Schwab <schwab@suse.de>
5008
5009 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5010 dependencies.
5011 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5012 as m68k_linux_extract_return_value.
5013 (DEPRECATED_STORE_RETURN_VALUE): Define as
5014 m68k_linux_store_return_value.
5015 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5016 m68k_linux_extract_struct_value_address.
5017 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5018 get_next_frame, get_frame_base, get_frame_pc.
5019 (m68k_linux_frame_saved_pc): Use get_frame_base.
5020 (m68k_linux_extract_return_value): New function.
5021 (m68k_linux_store_return_value): New function.
5022 (m68k_linux_extract_struct_value_address): New function.
5023 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5024
5025 * c-exp.y (typebase): Remove duplicate occurence of
5026 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5027 of lookup_signed_typename.
5028
5029 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5030
5031 * dwarf2loc.c (find_location_expression): Change type of second
5032 argument to `size_t *'.
5033 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5034 for size variable.
5035
5036 2003-05-18 David Carlton <carlton@bactrian.org>
5037
5038 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5039 'linkage_name'. Add comment.
5040 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5041 'linkage_name'.
5042 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5043 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5044 (lookup_block_symbol): Ditto.
5045
5046 2003-05-16 Andrew Cagney <cagney@redhat.com>
5047
5048 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5049 * gdbarch.h, gdbarch.c: Re-generate.
5050 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5051 * TODO (REGISTER_BYTES): Delete reference.
5052 * alpha-tdep.c (alpha_gdbarch_init): Update.
5053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5054 * x86-64-tdep.c (x86_64_init_abi): Update.
5055 * vax-tdep.c (vax_gdbarch_init): Update.
5056 * v850-tdep.c (v850_gdbarch_init): Update.
5057 * sparc-tdep.c (sparc_gdbarch_init): Update.
5058 * sh-tdep.c (sh_gdbarch_init): Update.
5059 * s390-tdep.c (s390_gdbarch_init): Update.
5060 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5061 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5062 (ns32k_gdbarch_init_32382): Update.
5063 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5064 * mcore-tdep.c (mcore_gdbarch_init): Update.
5065 * m68k-tdep.c (m68k_gdbarch_init): Update.
5066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5067 * ia64-tdep.c (ia64_gdbarch_init): Update.
5068 * i386-tdep.c (i386_gdbarch_init): Update.
5069 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5070 * hppa-tdep.c (hppa_gdbarch_init): Update.
5071 * h8300-tdep.c (h8300_gdbarch_init): Update.
5072 * frv-tdep.c (frv_gdbarch_init): Update.
5073 * cris-tdep.c (cris_gdbarch_init): Update.
5074 * avr-tdep.c (avr_gdbarch_init): Update.
5075 * arm-tdep.c (arm_gdbarch_init): Update.
5076 * sparc-tdep.c (sparc_pop_frame): Update.
5077 * rs6000-tdep.c (rs6000_pop_frame): Update.
5078 * remote.c (init_remote_state): Update.
5079 (remote_prepare_to_store): Update.
5080 * remote-vx.c (vx_prepare_to_store): Update.
5081 * remote-sds.c (sds_fetch_registers): Update.
5082 (sds_prepare_to_store): Update.
5083 * remote-array.c: Update.
5084 * regcache.c (init_legacy_regcache_descr): Update.
5085 (init_regcache_descr): Update.
5086 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5087 (mips_o64_extract_return_value): Update.
5088 * irix5-nat.c (fetch_core_registers): Update.
5089 * irix4-nat.c (fetch_core_registers): Update.
5090 * i386-tdep.h: Update.
5091 * hppa-tdep.c (pa_do_registers_info): Update.
5092 (pa_do_strcat_registers_info): Update.
5093 * cris-tdep.c (cris_register_bytes_ok): Update.
5094 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5095 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5096 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5097 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5098 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5099 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5100 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5101 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5102 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5103 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5104 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5105 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5106 (REGISTER_BYTES_OK): Update.
5107 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5108 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5109
5110 2003-05-16 Ian Lance Taylor <ian@airs.com>
5111
5112 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5113 (vax_print_insn, print_insn_arg): Remove static functions.
5114 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5115 print_insn_vax from opcodes library.
5116 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5117
5118 2003-05-15 Andrew Cagney <cagney@redhat.com>
5119
5120 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5121 * target.h (memory_breakpoint_from_pc): Delete declaration.
5122 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5123 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5124 * monitor.c (monitor_insert_breakpoint): Use
5125 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5126 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5127 * gdbarch.h, gdbarch.c: Re-generate.
5128 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5129 (sparc_gdbarch_init): Set breakpoint_from_pc to
5130 sparc_breakpoint_from_pc.
5131 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5132 (BREAKPOINT_FROM_PC): Define.
5133 (sparc_breakpoint_from_pc): Declare.
5134 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5135 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5136 (BREAKPOINT_FROM_PC): Define.
5137 (BREAKPOINT): Delete macro.
5138 * target.h: Update comment.
5139 * s390-tdep.c (s390_gdbarch_init): Update comments.
5140 * remote.c: Update comments.
5141 * remote-mips.c: Update comments.
5142 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5143 * mem-break.c: Update comment.
5144 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5145 (ia64_memory_insert_breakpoint): Update.
5146 * config/sparc/tm-sparc.h: Update comment.
5147 * config/pa/tm-hppa64.h: Update comment.
5148 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5149 (rs6000_breakpoint_from_pc): Update.
5150 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5151 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5152 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5153 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5154 (mips_breakpoint_from_pc): Update.
5155 (mips_dump_tdep): Update.
5156
5157 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5158 * minsyms.c (lookup_minimal_symbol): Inline
5159 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5160
5161 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5162 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5163 * p-lang.c (pascal_printstr): Ditto.
5164 * objc-lang.c (objc_printstr): Ditto.
5165 * m2-lang.c (m2_printstr): Ditto.
5166 * jv-valprint.c (java_print_value_fields): Ditto.
5167 * f-lang.c (f_printstr): Ditto.
5168 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5169 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5170 for repeat_count_threshold.
5171 * Makefile.in (cp-valprint.o): Update dependencies.
5172
5173 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5174
5175 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5176 (examine_prologue): Support looking through leaf functions, knowing
5177 they start with mov r2,r12. Support skipping over indirect stores
5178 of the input registers. Upon hitting a non-nop branch instruction
5179 or predicated instruction, bail out by setting lim_pc to the current
5180 pc value in the loop. At the end, if the lim_pc value is still
5181 beyond our calculated value and we have trust_limit set,
5182 use the lim_pc value.
5183
5184 2003-05-15 Andrew Cagney <cagney@redhat.com>
5185
5186 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5187 generic_find_dummy_frame.
5188 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5189 (deprecated_generic_find_dummy_frame): Update.
5190 (deprecated_read_register_dummy): Update.
5191 * frame.c (deprecated_generic_get_saved_register): Update.
5192
5193 2003-05-15 Theodore A. Roth <troth@openavr.org>
5194
5195 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5196 (avr_gdbarch_init): Set breakpoint_from_pc method.
5197
5198 2003-05-15 Andrew Cagney <cagney@redhat.com>
5199
5200 * regcache.c (build_regcache): Set deprecated_register_valid
5201 directly.
5202 (deprecated_grub_regcache_for_register_valid): Delete function.
5203 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5204 declaration.
5205
5206 2003-05-15 David Carlton <carlton@bactrian.org>
5207
5208 Committed by Elena Zannoni <ezannoni@redhat.com>
5209 * symtab.c (lookup_symbol_aux): Delete calls to
5210 lookup_symbol_aux_minsyms.
5211 (lookup_symbol_aux_minsyms): Comment out function and
5212 prototype. Delete lookup by mangled name.
5213
5214 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5215
5216 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5217 correctly indicate an empty stack and ``stack_allocated'' to the
5218 indicate the number of elements initially allocated.
5219 (dwarf_expr_grow_stack): Simplify method for computing new
5220 stack size. Don't loop infinitely if ``stack_len'' is zero.
5221 (execute_stack_op): Move ``ctx->in_reg'' initialization
5222 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5223 be used in conjuction with DW_OP_piece. Revise error message
5224 accordingly.
5225
5226 2003-05-14 Theodore A. Roth <troth@openavr.org>
5227
5228 * MAINTAINERS: Update my email address.
5229 * avr-tdep.c: Ditto.
5230
5231 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5232
5233 * symtab.h (enum domain_enum): Rename from namespace_enum.
5234 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5235 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5236 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5237 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5238 TYPES_NAMESPACE, METHODS_NAMESPACE.
5239 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5240 (struct symbol, struct partial_symbol): Rename field
5241 'namespace_enum namespace' to 'domain_enum domain'.
5242 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5243 Delete old define kludge for namespace.
5244
5245 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5246 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5247 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5248 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5249 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5250 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5251 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5252 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5253 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5254 occurrences of the above.
5255
5256 2003-05-14 Ian Lance Taylor <ian@airs.com>
5257
5258 * Makefile.in (install-only): Use $(SHELL) when running
5259 mkinstalldirs.
5260
5261 2003-05-13 Ian Lance Taylor <ian@airs.com>
5262
5263 * MAINTAINERS (write after approval): Add myself.
5264
5265 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5266 second and third arguments.
5267 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5268 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5269
5270 2003-05-13 Andrew Cagney <cagney@redhat.com>
5271
5272 * defs.h (store_address): Delete declaration.
5273 findvar.c (store_address): Delete function.
5274 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5275 store_unsigned_integer.
5276 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5277 * v850-tdep.c (v850_push_arguments): Ditto.
5278 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5279 * sh-tdep.c (sh64_get_saved_register): Ditto.
5280 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5281 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5282 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5283 (mips_get_saved_register): Ditto.
5284 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5285 (find_func_descr, ia64_push_arguments): Ditto.
5286 * i386-tdep.c (i386_push_arguments): Ditto.
5287 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5288 * frv-tdep.c (frv_push_arguments): Ditto.
5289 * frame.c (legacy_saved_regs_prev_register): Ditto.
5290 (deprecated_generic_get_saved_register): Ditto.
5291 * findvar.c (unsigned_address_to_pointer): Ditto.
5292 * dwarf2read.c (dwarf2_const_value): Ditto.
5293 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5294 * alpha-tdep.c (alpha_push_arguments): Ditto.
5295
5296 2003-05-12 J. Brobecker <brobecker@gnat.com>
5297
5298 * NEWS: Mention that the hppa-hpux port has been partially
5299 multiarched (32bit ABIT only, so far).
5300
5301 2003-05-11 Andrew Cagney <cagney@redhat.com>
5302
5303 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5304 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5305 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5306 sim/testsuite/sim/arm/misaligned2.ms, and
5307 sim/testsuite/sim/arm/misaligned3.ms.
5308 * disasm.h (struct ui_file): Add opaque struct declaration.
5309 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5310 * frame.h (struct ui_file): Ditto.
5311
5312 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5313
5314 * value.h: Pretty print.
5315
5316 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5317
5318 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5319
5320 2003-05-08 Andrew Cagney <cagney@redhat.com>
5321
5322 * regcache.h (max_register_size): Delete declaration.
5323 * regcache.c (max_register_size): Delete function.
5324 (struct regcache_descr): Delete field "max_register_size".
5325 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5326 registers fit in MAX_REGISTER_SIZE.
5327 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5328 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5329 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5330 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5331 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5332 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5333 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5334 * dve3900-rom.c, hppa-tdep.c: Ditto.
5335
5336 2003-05-08 David Carlton <carlton@math.stanford.edu>
5337
5338 * valops.c (push_word): Fix typo.
5339
5340 2003-05-08 Andrew Cagney <cagney@redhat.com>
5341
5342 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5343 * gdbarch.h: Re-generate.
5344 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5345 (legacy_max_register_raw_size): Delete declaration.
5346 * regcache.c (legacy_max_register_raw_size): Delete function.
5347 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5348 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5349 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5350 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5351 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5352 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5353 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5354 * findvar.c, dwarf2cfi.c: Ditto.
5355
5356 2003-05-08 Andrew Cagney <cagney@redhat.com>
5357
5358 * mips-tdep.c (read_signed_register): New function, moved to here
5359 from "regcache.c".
5360 (read_signed_register_pid): Ditto.
5361 * regcache.c (read_signed_register_pid): Delete function, moved to
5362 "mips-tdep.c".
5363 (read_signed_register): Ditto.
5364 * regcache.h (read_signed_register): Delete declaration.
5365 (read_signed_register_pid): Delete declaration.
5366
5367 2003-05-08 Andrew Cagney <cagney@redhat.com>
5368
5369 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5370 * gdbarch.h: Re-generate.
5371 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5372 (legacy_max_register_virtual_size): Delete declaration.
5373 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5374 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5375 * tracepoint.c (memrange_sortmerge): Ditto.
5376 * sparc-tdep.c (sparc_print_registers): Ditto.
5377 * regcache.c (legacy_max_register_virtual_size): Delete function.
5378
5379 2002-05-08 J. Brobecker <brobecker@gnat.com>
5380
5381 * fork-child.c (escape_bang_in_quoted_argument): New function.
5382 (fork_inferior): Escape '!' characters in quoted arguments
5383 only when needed.
5384
5385 2003-05-08 J. Brobecker <brobecker@gnat.com>
5386
5387 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5388 the language of the CU is not currently supported by GDB.
5389
5390 2003-05-08 J. Brobecker <brobecker@gnat.com>
5391
5392 * defs.h (language): Add language_minimal enum value.
5393 * c-lang.c (minimal_language_defn): New language definition.
5394 (_initialize_c_language): Add the new minimal language to the list
5395 of languages known to GDB.
5396
5397 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5398
5399 * frame.c (get_frame_type): Don't attempt to lazily initialize
5400 frame's unwinder for legacy frames.
5401
5402 2003-05-07 Andrew Cagney <cagney@redhat.com>
5403
5404 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5405 and "regcache" parameters.
5406 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5407
5408 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5409
5410 * dwarf2read.c (dwarf_decode_lines): Only use output of
5411 check_cu_functions() when calling record_line(). Do not update
5412 the current address.
5413
5414 2003-05-07 Andrew Cagney <cagney@redhat.com>
5415
5416 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5417 code.
5418
5419 2003-05-07 Jim Blandy <jimb@redhat.com>
5420
5421 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5422 'maint info symtabs' and 'maint info psymtabs'.
5423 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5424 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5425 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5426 Declarations updated.
5427 * maint.c (maintenance_list_command): Delete.
5428 (_initialize_maint_cmds): Update calls to add_cmd.
5429 * gdbcmd.h (maintenancelistlist): Delete declaration.
5430 * cli/cli-cmds.c (maintenancelistlist): Delete.
5431 (init_cmd_lists): Don't initialize it.
5432 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5433
5434 2003-05-07 Andrew Cagney <cagney@redhat.com>
5435
5436 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5437 "regcache".
5438 (d10v_print_registers_info): Update.
5439 (d10v_dmap_register, d10v_imap_register): Delete functions.
5440 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5441 and "imap_register".
5442 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5443 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5444 * arch-utils.c (generic_remote_translate_xfer_address): Add
5445 "regcache" and "gdbarch" parameters.
5446 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5447 parameter. Change class to multi-arch.
5448 * gdbarch.h, gdbarch.c: Re-generate.
5449 * remote.c (remote_xfer_memory): Use
5450 gdbarch_remote_translate_xfer_address.
5451
5452 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5453
5454 * infrun.c (prev_pc): Move declaration ahead of proceed().
5455 (proceed): Refresh prev_pc value before resuming.
5456 (stop_stepping): Remove code to refresh prev_pc.
5457
5458 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5459
5460 * nto-tdep.c: Removed stray comment.
5461
5462 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5463
5464 * i386-nto-tdep.c: Fix old K&R function definitions.
5465 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5466 Also change add_show_from_set() call to add_setshow_cmd().
5467 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5468
5469 2003-05-05 Andrew Cagney <cagney@redhat.com>
5470
5471 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5472 (fprint_dummy_frames): New function.
5473 (maintenance_print_dummy_frames): New function.
5474 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5475 * frame.c (fprint_frame_id): Make global.
5476 * frame.h (fprint_frame_id): Declare.
5477 * Makefile.in (dummy-frame.o): Update dependencies.
5478
5479 2003-05-05 Andrew Cagney <cagney@redhat.com>
5480
5481 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5482 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5483 SIZEOF_CALL_DUMMY_WORDS.
5484 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5485 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5486 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5487 CALL_DUMMY_BREAKPOINT_OFFSET.
5488 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5489 CALL_DUMMY_START_OFFSET.
5490 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5491 * gdbarch.h, gdbarch.c: Re-generate.
5492 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5493 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5494 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5495 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5496 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5497 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5498 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5499 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5500 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5501 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5502 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5503 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5504 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5505 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5506 * config/sparc/tm-sparc.h: Update.
5507
5508 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5509
5510 * configure.tgt: Add i[3456]86-*-nto*.
5511 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5512 * nto-tdep.c: New file. Neutrino target support routines.
5513 * nto-tdep.h: New file. Neutrino target header.
5514 * config/tm-qnxnto.h: New file.
5515 * config/i386/i386nto.mt: New file.
5516 * config/i386/tm-i386nto.h: New file.
5517
5518 2003-05-04 Andrew Cagney <cagney@redhat.com>
5519
5520 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5521 (load_infrun_state): Ditto.
5522 (struct thread_info): Drop "prev_func_name" field.
5523 * thread.c (load_infrun_state): Update.
5524 (save_infrun_state): Update.
5525 * infrun.c (prev_func_name): Delete variable.
5526 (init_wait_for_inferior): Do not clear prev_func_name.
5527 (stop_stepping, keep_going, context_switch): Do not swap
5528 prev_func_name.
5529 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5530 instead of PC_IN_SIGTRAMP.
5531
5532 2003-05-04 Andrew Cagney <cagney@redhat.com>
5533
5534 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5535 REGISTER_BYTE with register_offset_hack.
5536 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5537 that REGISTER_BYTE is consistent with the regcache.
5538 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5539 * gdbarch.h, gdbarch.c: Regenerate.
5540
5541 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5542
5543 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5544 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5545
5546 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5547
5548 2003-05-03 J. Brobecker <brobecker@gnat.com>
5549
5550 From Thierry Schneider <tpschneider1@yahoo.com>
5551 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5552 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5553 (mi-cmd-symbol.o): Add rule.
5554
5555 2003-05-03 Andrew Cagney <cagney@redhat.com>
5556
5557 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5558 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5559 * gdbarch.h, gdbarch.c: Re-generate.
5560 * d10v-tdep.c (d10v_push_dummy_code): New function.
5561 (d10v_gdbarch_init): Set push_dummy_code.
5562 * infcall.c (legacy_push_dummy_code): New function.
5563 (generic_push_dummy_code): New function.
5564 (push_dummy_code): New function.
5565 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5566 instead of dummy_addr, to push_dummy_call. Move call to
5567 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5568 switch.
5569 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5570
5571 2003-05-03 Andrew Cagney <cagney@redhat.com>
5572
5573 * disasm.h (print_insn): Declare.
5574 * disasm.c (init_gdb_disassemble_info): New function.
5575 (gdb_disassembly): Call init_gdb_disassemble_info.
5576 (gdb_print_insn): New function.
5577 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5578 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5579 * mcore-tdep.c: Include "disasm.h"
5580 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5581 * d10v-tdep.c: Include "disasm.h".
5582 (display_trace): Call gdb_print_insn, instead of print_insn.
5583 (print_insn): Delete function.
5584 * printcmd.c: Include "disasm.h".
5585 (print_insn): Delete function.
5586 (print_formatted): Call gdb_print_insn, instead of print_insn.
5587 * Makefile.in (printcmd.o): Update dependencies.
5588 (mcore-tdep.o, d10v-tdep.o): Ditto.
5589
5590 2003-05-02 Andrew Cagney <cagney@redhat.com>
5591
5592 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5593 PC_REGNUM, re-indent.
5594 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5595 PC_REGNUM isn't set.
5596
5597 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5598 * gdbarch.h, gdbarch.c: Re-generate.
5599 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5600 register_virtual_size, pc_regnum, or register_bytes.
5601 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5602 (d10v_register_type): Use D10V_PC_REGNUM.
5603 (d10v_print_registers_info, d10v_read_pc): Ditto.
5604 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5605 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5606
5607 2003-05-02 David Carlton <carlton@bactrian.org>
5608
5609 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5610 the name with mstrsave.
5611
5612 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5613
5614 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5615 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5616 (host_charset_name, target_charset_name): New vars for use by
5617 set/show commands.
5618 (host_charset_enum, target_charset_enum): New enums for set/show
5619 commands.
5620 (set_charset_sfunc, set_host_charset_sfunc,
5621 set_target_charset_sfunc): New functions.
5622 (set_host_charset, set_target_charset): Make static.
5623 (list_charsets, set_host_charset_command,
5624 set_target_charset_command): Delete functions.
5625 (show_charset_command): Rewrite as....
5626 (show_charset): Hook this up with the set/show command mechanism.
5627 (_initialize_charset): Change names of charsets to match the
5628 set/show enums. Use host_charset_name and target_charset_name.
5629 Use set/show mechanism for charset, host-charset, target-charset
5630 commands. Do not make 'show host-charset' and 'show
5631 target-charset' be aliases of 'show charset'.
5632
5633 * charset.h (set_host_charset, set_target_charset): Don't export,
5634 they are not used outside the file.
5635
5636 2003-05-01 Andrew Cagney <cagney@redhat.com>
5637
5638 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5639 (gdb_disassembly): Make "di" non static, always initialize and
5640 cleanup. Always use dis_asm_read_memory.
5641 (gdb_dis_asm_read_memory): Delete function.
5642
5643 2003-05-01 Andrew Cagney <cagney@redhat.com>
5644
5645 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5646 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5647
5648 2003-04-30 Andrew Cagney <cagney@redhat.com>
5649
5650 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5651 "tm_print_insn_info".
5652 (TARGET_PRINT_INSN_INFO): Delete macro.
5653 (dis_asm_read_memory): Delete function declaration.
5654 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5655 (tm_print_insn_info): Delete variable definition.
5656 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5657 * gdbarch.h, gdbarch.c: Re-generate.
5658 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5659 "deprecated_tm_print_insn_info".
5660 * mcore-tdep.c (mcore_dump_insn): Ditto.
5661 * mips-tdep.c (mips_gdbarch_init): Ditto.
5662 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5663 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5664 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5665 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5666 instead of TARGET_PRINT_INSN_INFO, add comment.
5667 * s390-tdep.c (s390_get_frame_info): Instead of
5668 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5669 (s390_check_function_end, s390_is_sigreturn): Ditto.
5670 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5671 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5672 * disasm.c: Include "gdbcore.h".
5673 (_initialize_disasm): New function, initialize
5674 "deprecated_tm_print_insn_info".
5675 (deprecated_tm_print_insn_info): New variable.
5676 (dis_asm_read_memory): Moved from "corefile.c", made static.
5677 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5678 * Makefile.in (disasm.o): Update dependencies.
5679
5680 2003-04-30 Andrew Cagney <cagney@redhat.com>
5681
5682 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5683
5684 2003-04-29 Adam Fedor <fedor@gnu.org>
5685
5686 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5687 * infcall.c (find_function_addr): Make non-static.
5688 * infcall.h (find_function_addr): Declare.
5689 * Makefile.in (eval.o): Update dependencies.
5690
5691 2003-04-28 Adam Fedor <fedor@gnu.org>
5692
5693 * symtab.c (symbol_find_demangled_name): Check for and demangle
5694 ObjC symbols.
5695 (symbol_init_demangled_name): Init for language_objc as well.
5696
5697 2003-04-28 Andrew Cagney <cagney@redhat.com>
5698
5699 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5700 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5701 * gdbarch.h, gdbarch.c: Re-generate.
5702 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5703 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5704 * inferior.h (deprecated_read_fp): Rename read_fp.
5705 (generic_target_read_fp): Delete declaration.
5706 * regcache.c (generic_target_read_fp): Delete function.
5707 (deprecated_read_fp): Replace read_fp, use
5708 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5709 * d10v-tdep.c (d10v_read_fp): Delete function.
5710 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5711
5712 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5713 deprecated_target_read_fp to generic_target_read_fp.
5714 * sh-tdep.c (sh_gdbarch_init): Ditto.
5715 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5717 * frv-tdep.c (frv_gdbarch_init): Ditto.
5718
5719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5720 deprecated_fp_regnum.
5721 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5722 * vax-tdep.c (vax_gdbarch_init): Ditto.
5723 * v850-tdep.c (v850_gdbarch_init): Ditto.
5724 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5725 * sh-tdep.c (sh_gdbarch_init): Ditto.
5726 * s390-tdep.c (s390_gdbarch_init): Ditto.
5727 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5728 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5729 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5730 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5732 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5733 * i386-tdep.c (i386_gdbarch_init): Ditto.
5734 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5735 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5736 * frv-tdep.c (frv_gdbarch_init): Ditto.
5737 * cris-tdep.c (cris_gdbarch_init): Ditto.
5738 * avr-tdep.c (avr_gdbarch_init): Ditto.
5739 * arm-tdep.c (arm_gdbarch_init): Ditto.
5740 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5741
5742 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5743 * v850-tdep.c (v850_gdbarch_init): Ditto.
5744 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5745 * sh-tdep.c (sh_gdbarch_init): Ditto.
5746 * s390-tdep.c (s390_gdbarch_init): Ditto.
5747 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5748 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5749 * mips-tdep.c (mips_gdbarch_init): Ditto.
5750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5751 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5752 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5753 * frv-tdep.c (frv_gdbarch_init): Ditto.
5754 * avr-tdep.c (avr_gdbarch_init): Ditto.
5755 * arm-tdep.c (arm_gdbarch_init): Ditto.
5756
5757 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5758 DEPRECATED_FP_REGNUM.
5759 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5760 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5761 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5762 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5763 (sparc32_register_virtual_type): Ditto.
5764 * sh-tdep.c (sh64_frame_chain): Ditto.
5765 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5766 (sh_nofp_frame_init_saved_regs): Ditto.
5767 (sh64_nofp_frame_init_saved_regs): Ditto.
5768 (sh_fp_frame_init_saved_regs): Ditto.
5769 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5770 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5771 * procfs.c (procfs_fetch_registers): Ditto.
5772 (procfs_store_registers): Ditto.
5773 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5774 (store_inferior_registers, fetch_core_registers): Ditto.
5775 (fetch_kcore_registers, clear_regs): Ditto.
5776 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5777 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5778 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5779 * nlm/i386.c (do_status): Ditto.
5780 * mipsv4-nat.c (supply_gregset): Ditto.
5781 * mips-tdep.c: Ditto for comments.
5782 * mips-nat.c (fetch_inferior_registers): Ditto.
5783 (store_inferior_registers, fetch_core_registers): Ditto.
5784 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5785 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5786 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5787 (i386_do_pop_frame, i386_register_type): Ditto.
5788 * hppa-tdep.c (hppa_frame_chain): Ditto.
5789 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5790 (hppa_pop_frame, hppa_read_fp): Ditto.
5791 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5792 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5793 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5794 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5795 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5796 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5797 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5798 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5799 * blockframe.c: Ditto for comments.
5800 * arch-utils.h: Ditto for comments.
5801 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5802 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5803 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5804 * alpha-tdep.h: Ditto for comments.
5805 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5806 (alpha_cannot_store_register): Ditto.
5807 (alpha_push_dummy_frame): Ditto.
5808 * alpha-nat.c (supply_gregset): Ditto.
5809
5810 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5811 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5812 * config/sparc/tm-sparc.h: Update comment.
5813
5814 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5815 deprecated_read_fp instead of TARGET_READ_FP.
5816 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5817 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5818 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5819 deprecated_read_fp instead of read_fp.
5820 * s390-tdep.c (s390_push_arguments): Ditto.
5821 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5822 * frame.h: Ditto in comments.
5823 * frame.c (legacy_get_prev_frame): Ditto.
5824 * dummy-frame.c (dummy_frame_this_id): Ditto.
5825 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5826
5827 2003-04-28 Andrew Cagney <cagney@redhat.com>
5828
5829 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5830 * gdbarch.h, gdbarch.c: Re-generate.
5831 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5832 * vax-tdep.c (_initialize_vax_tdep): Update.
5833 * v850-tdep.c (_initialize_v850_tdep): Update.
5834 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5835 * s390-tdep.c (_initialize_s390_tdep): Update.
5836 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5837 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5838 * mips-tdep.c (_initialize_mips_tdep): Update.
5839 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5840 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5841 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5842 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5843 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5844 * frv-tdep.c (_initialize_frv_tdep): Update.
5845 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5846 (_initialize_cris_tdep): Update.
5847 * arch-utils.c (legacy_print_insn): Update.
5848 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5849
5850 2003-04-26 Adam Fedor <fedor@gnu.org>
5851
5852 * linespec.c (decode_objc): New function to decode ObjC calls
5853 (decode_line_1): Check for ObjC calls (using decode_objc)
5854 * Makefile (linespec.o): Update dependencies.
5855
5856 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5857
5858 * breakpoint.h (struct breakpoint_ops): New.
5859 (struct breakpoint): Add ops member.
5860
5861 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5862 (mention): Use new breakpoint ops member.
5863 (set_raw_breakpoint): Initialize ops field to NULL.
5864 (print_exception_catchpoint, print_one_exception_catchpoint)
5865 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5866 (gnu_v3_exception_catchpoint_ops): New.
5867 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5868
5869 2003-04-25 Adam Fedor <fedor@gnu.org>
5870
5871 * Makefile.in (COMMON_OBS): Add objc-lang.o
5872
5873 2003-04-25 Andrew Cagney <cagney@redhat.com>
5874
5875 * d10v-tdep.c (print_insn): Delete function.
5876 (display_trace): Use TARGET_PRINT_INSN.
5877 (_initialize_d10v_tdep): Do not set tm_print_insn.
5878 (d10v_gdbarch_init): Set print_insn.
5879
5880 2003-04-25 Andrew Cagney <cagney@redhat.com>
5881
5882 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5883 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5884 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5885 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5886 (nr_dmap_regs, a0_regnum): ... new functions.
5887 (d10v_print_registers_info): Use a0_regnum, use register_size.
5888 (d10v_register_byte): Delete function.
5889 (d10v_register_raw_size): Delete function.
5890 (d10v_register_type): Use a0_regnum.
5891 (d10v_print_registers_info): Use a0_regnum.
5892 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5893 (d10v_gdbarch_init): Do not set register_byte or
5894 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5895 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5896 extract_address.
5897 (trace_command): Use XCALLOC.
5898 (print_insn): Delete reference to tm_print_insn.
5899 (saved_regs_unwinder): Use store_unsigned_integer instead of
5900 store_address.
5901 * frame.h (FRAME_OBSTACK_CALLOC): Define
5902
5903 2003-04-25 David Carlton <carlton@bactrian.org>
5904
5905 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5906
5907 2003-04-24 Adam Fedor <fedor@gnu.org>
5908
5909 * objc-lang.c: Include "valprint.h"
5910 * Makefile.in (objc-lang.o): Update dependencies.
5911
5912 2003-04-24 Adam Fedor <fedor@gnu.org>
5913
5914 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5915 architecture dependant compilation and mark as unimplemented
5916 (until they get put in the gdbarch vector).
5917
5918 2003-04-23 David Carlton <carlton@bactrian.org>
5919
5920 * cp-support.c (cp_find_first_component): Accept 'operator' in
5921 more locations.
5922
5923 2003-04-23 Andrew Cagney <cagney@redhat.com>
5924
5925 * infcall.c (call_function_by_hand): Eliminate redundant
5926 indentation. Move "saved_async" and "old_cleanups" to where they
5927 are needed.
5928
5929 2003-04-23 Andrew Cagney <cagney@redhat.com>
5930
5931 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5932 and "buffer". Move the "name" code to where it is needed.
5933
5934 2003-04-23 Andrew Cagney <cagney@redhat.com>
5935
5936 * infcall.c (call_function_by_hand): Move variables "start_sp",
5937 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5938 code to ON_STACK switch branch.
5939
5940 2003-04-23 Andrew Cagney <cagney@redhat.com>
5941
5942 * infcall.c (call_function_by_hand): Make declaration of "i",
5943 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5944 lint.
5945
5946 2003-04-23 Andrew Cagney <cagney@redhat.com>
5947
5948 * infcall.c (call_function_by_hand): Delete variable
5949 "n_method_args". Localize "param_type"'s declaration to the loop
5950 that it is used. Reinstate code assigning to said variable -
5951 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5952 Rationalize code using "param_type".
5953
5954 2003-04-22 Andrew Cagney <cagney@redhat.com>
5955
5956 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5957 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5958 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5959 to DEPRECATED_PUSH_RETURN_ADDRESS.
5960
5961 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5962
5963 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5964 on the DWARF2 register number prior to fetching a register.
5965
5966 2003-04-22 J. Brobecker <brobecker@gnat.com>
5967
5968 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5969 Update all the tests using SOFT_FLOAT considering the fact that
5970 this macro was always set to 0.
5971 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5972 considering the fact that this macro was always set to 0.
5973 * hppa-tdep.h (hppa_store_return_value): Likewise.
5974 (hppa_extract_return_value): Likewise.
5975
5976 2003-04-22 J. Brobecker <brobecker@gnat.com>
5977
5978 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5979 the hppa-pro target only.
5980
5981 2003-04-21 J. Brobecker <brobecker@gnat.com>
5982
5983 Ongoing multi-arch conversion effort for HP/UX:
5984 * config/pa/tm-hppa.h: Move all macro that are no longer
5985 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5986 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5987
5988 2003-04-21 J. Brobecker <brobecker@gnat.com>
5989
5990 * config/pa/tm-hppa.h: Obsolete a section that was only used
5991 for hppa-pro.
5992
5993 2003-04-21 J. Brobecker <brobecker@gnat.com>
5994
5995 Ongoing multi-arch conversion for HP/UX.
5996 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5997 if already defined (allows hppa64 to stay non-multiarched for now).
5998 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5999
6000 2003-04-21 Andrew Cagney <cagney@redhat.com>
6001
6002 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6003
6004 2003-04-21 Andrew Cagney <cagney@redhat.com>
6005
6006 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6007 "i386_num_mmx_regs".
6008
6009 2003-04-21 Andrew Cagney <cagney@redhat.com>
6010
6011 * infcall.c: New file.
6012 * infcall.h: New file.
6013 * valarith.c: Include "infcall.h".
6014 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6015 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6016 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6017 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6018 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6019 (SFILES): Add "infcall.c"
6020 (COMMON_OBS): Add "infcall.o".
6021 (infcall.o): Specify dependencies.
6022 * value.h (call_function_by_hand): Delete declaration.
6023 * inferior.h (run_stack_dummy): Delete declaration.
6024 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6025 (run_stack_dummy): Move to "infcall.c", merged into
6026 call_function_by_hand.
6027 * valops.c (call_function_by_hand): Moved to "infcall.c".
6028 (find_function_addr, value_arg_coerce): Ditto.
6029 (unwindonsignal_p, coerce_float_to_double): Ditto.
6030 (_initialize_valops): Move "set/show coerce-float-to-double", and
6031 "set/show unwindonsignal" commands to "infcall.c".
6032 * v850-tdep.c, target.h: Update comments.
6033 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6034 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6035 (sh64_init_extra_frame_info): Update comments.
6036 * mn10300-tdep.c: Update comments.
6037 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6038 * config/sparc/tm-sparc.h: Update comments.
6039 * breakpoint.h: Update comments.
6040 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6041 * arm-tdep.c: Update comment.
6042
6043 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6044
6045 * i386-tdep.c (i386_num_register_names): New variable.
6046 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6047 (MM0_REGNUM): Remove redundant parentheses in define.
6048 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6049 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6050 i386_mxcsr_regnum_p): Remove redundant parentheses.
6051 (i386_register_name): Use i386_num_register_names.
6052
6053 * i386-tdep.c (i386_extract_return_value,
6054 i386_store_return_value): Correct check for availability of
6055 floating-point registers.
6056
6057 * i386-tdep.c (i386_frame_num_args): Remove function.
6058 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6059
6060 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6061 mmx_regnum_to_fp_regnum. Adjust all callers.
6062
6063 * i386-tdep.c (i386_get_longjmp_target): Use
6064 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6065 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6066 extract_address.
6067
6068 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6069
6070 * core-regset.c: Update comments to reflect reality. Re-order
6071 includes.
6072 (fetch_core_registers): Use switch instead of if. Remove
6073 redundant prototype.
6074
6075 2003-04-18 Jim Blandy <jimb@redhat.com>
6076
6077 * s390-tdep.c (s390_frame_align): New function.
6078 (s390_gdbarch_init): Register it with the gdbarch object.
6079
6080 2003-04-17 Richard Henderson <rth@redhat.com>
6081
6082 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6083
6084 2003-04-17 Michael Snyder <msnyder@redhat.com>
6085 Karen Bennet <bennet@redhat.com>
6086
6087 Committed by Elena Zannoni <ezannoni@redhat.com>
6088 * gdb_gcore.sh: New script to create a core dump of a process.
6089
6090 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6091
6092 * values.c (value_being_returned): Don't fetch the return
6093 value if the return type is void.
6094
6095 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6096
6097 * thread-db.c: Reindented.
6098
6099 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6100
6101 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6102 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6103 as types.
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6130
6131 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6132 the size of ``long double'' to 16, instead of 8.
6133
6134 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6135
6136 * i386-linux-nat.c: Add some whitespace to make things more
6137 readable.
6138 (fetch_register, store_register, fetch_inferior_registers,
6139 store_inferior_registers): Get rid of assignment in if-statement.
6140 (store_register): Fix typo in error message.
6141
6142 2003-04-16 Andrew Cagney <cagney@redhat.com>
6143
6144 * utils.c (xmmalloc): Always allocate something, matches
6145 libiberty/xmalloc's semantics.
6146 (xmrealloc, xmcalloc): Ditto.
6147
6148 2003-04-16 Andrew Cagney <cagney@redhat.com>
6149
6150 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6151 update comments.
6152 (get_frame_type): Initialize unwind and type when needed.
6153 (get_frame_id, frame_register_unwind): Ditto.
6154
6155 2003-04-16 Andrew Cagney <cagney@redhat.com>
6156
6157 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6158 obsolete.
6159 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6160 * sparcl-stub.c: Obsolete file.
6161 * config/sparc/tm-sparclet.h: Obsolete file.
6162 * sparclet-stub.c: Obsolete file.
6163 * sparclet-rom.c: Obsolete file.
6164 * sparcl-tdep.c: Obsolete file.
6165 * config/sparc/tm-sparclite.h: Obsolete file.
6166 * config/sparc/sparclite.mt: Obsolete file.
6167 * config/sparc/sparclet.mt: Obsolete file.
6168 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6169 sparc86x-*-* obsolete.
6170
6171 2003-04-15 David Carlton <carlton@math.stanford.edu>
6172
6173 * Makefile.in (SFILES): Add cp-namespace.c.
6174 (COMMON_OBS): Add cp-namespace.o.
6175 (block.o): Depend on gdb_obstack_h and cp_support_h.
6176 (buildsym.o): Depend on cp_support_h.
6177 (cp-namespace.o): New.
6178 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6179 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6180 (dwarf2read.o): Depend on cp_support_h.
6181 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6182 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6183 processing_current_namespace.
6184 (read_namespace): Update processing_current_namespace; check for
6185 anonymous namespaces.
6186 (dwarf2_name): New function.
6187 (dwarf2_extension): Ditto.
6188 * cp-support.h: Update copyright, contributors.
6189 Add inclusion guards.
6190 Add opaque declaration for structs obstack, block, symbol.
6191 (struct using_direct): New struct.
6192 Add declarations for cp_find_first_component,
6193 cp_entire_prefix_len, processing_has_namespace_info,
6194 processing_current_namespace, cp_is_anonymous,
6195 cp_add_using_directive, cp_initialize_namespace,
6196 cp_finalize_namespace, cp_set_block_scope,
6197 cp_scan_for_anonymous_namespaces.
6198 * cp-namespace.c: New file.
6199 * cp-support.c: Update copyright.
6200 Include ctype.h, gdb_assert.h, gdbcmd.h.
6201 New variable maint_cplus_cmd_list.
6202 (cp_find_first_component): New function.
6203 (cp_entire_prefix_len, maint_cplus_command)
6204 (first_component_command, _initialize_cp_support): Ditto.
6205 * buildsym.c: Include cp-support.h.
6206 New variable using_list.
6207 (add_symbol_to_list): Check for anonymous namespaces.
6208 (finish_block): Set block's scope.
6209 (start_symtab): Initialize C++ namespace support.
6210 (end_symtab): Finalize C++ namespace support.
6211 * block.h: Add opaque declarations for structs
6212 block_namespace_info, using_direct, and obstack.
6213 Add declarations for block_set_scope and block_set_using.
6214 (struct block): Add 'language_specific' member.
6215 (BLOCK_NAMESPACE): New macro.
6216 * block.c: Include gdb_obstack.h and cp-support.h.
6217 (struct block_namespace_info): New struct.
6218 (block_set_scope): New function.
6219 (block_set_using, block_initialize_namespace): Ditto.
6220
6221 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6222
6223 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6224 (locate_base): Return early if there aren't any link map offsets.
6225 (svr4_solib_create_inferior_hook): Warn if shared library support
6226 is unavailable.
6227
6228 2003-04-14 David Carlton <carlton@math.stanford.edu>
6229
6230 * symtab.c (symbol_set_names): Add prefix when storing Java names
6231 in hash table. Fix for PR java/1039.
6232
6233 2003-04-14 David Carlton <carlton@math.stanford.edu>
6234
6235 * symtab.c (symbol_set_names): Rename 'name' arg to
6236 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6237 * symtab.h: Change 'name' argument in declaration of
6238 symbol_set_names to 'linkage_name'.
6239 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6240
6241 2003-04-14 Andrew Cagney <cagney@redhat.com>
6242
6243 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6244 return the fully sign-extended register value.
6245 (get_frame_pointer): Ditto.
6246 (mips_pop_frame): Initialize "proc_desc" after checking for a
6247 dummy frame.
6248
6249 2003-04-14 Andrew Cagney <cagney@redhat.com>
6250
6251 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6252 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6253 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6254 (mips_push_register): Delete function.
6255 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6256 PUSH_FP_REGNUM.
6257
6258 2003-04-14 Jim Blandy <jimb@redhat.com>
6259
6260 * symmisc.c: #include "gdb_regex.h".
6261 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6262 functions.
6263 * maint.c (maintenance_list_command): New function.
6264 (_initialize_maint_cmds): Register the above as commands.
6265 * symtab.h (maintenance_list_symtabs,
6266 maintenance_list_psymtabs): New declarations.
6267 * cli/cli-cmds.c (maintenancelistlist): New variable.
6268 (init_cmd_lists): Initialize it.
6269 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6270 * gdbcmd.h (maintenancelistlist): New declaration.
6271 * Makefile.in (symmisc.o): Update dependencies.
6272
6273 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6274
6275 * s390-nat.c: Include asm/types.h for addr_t.
6276
6277 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6278
6279 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6280 actually incoming type.
6281
6282 2003-04-13 Andrew Cagney <cagney@redhat.com>
6283
6284 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6285 get_next_frame and get_frame_saved_regs.
6286
6287 2003-04-13 Andrew Cagney <cagney@redhat.com>
6288
6289 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6290 of gdbarch_num_regs.
6291
6292 2003-04-13 Andrew Cagney <cagney@redhat.com>
6293
6294 * frame.h: Mention what replaced what in "struct frame_info".
6295 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6296 deprecated_update_frame_base_hack and
6297 deprecated_update_frame_pc_hack.
6298 * hppa-tdep.c: Ditto.
6299
6300 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6301
6302 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6303 to read_reg and update its comment. Remove regnum member.
6304 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6305 Don't call read_reg when setting in_reg. Call read_reg to get
6306 the frame base if it's in a register. Return the register number
6307 on the stack instead of in the context. Remove extra arguments
6308 to read_reg.
6309 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6310 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6311 the register number on the expression stack.
6312 (needs_frame_read_reg): Remove extra arguments.
6313
6314 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6315
6316 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6317 made non-static.
6318 (execute_stack_op): All callers updated.
6319 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6320 * dwarf2loc.c (find_location_expression): New function.
6321 (dwarf_expr_frame_base): Call it.
6322 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6323 (dwarf2_tracepoint_var_ref): New function, broken out from
6324 locexpr_tracepoint_var_ref.
6325 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6326 Make static.
6327 (loclist_read_variable, loclist_read_needs_frame): New functions.
6328 (loclist_describe_location, loclist_tracepoint_var_ref): New
6329 functions.
6330 (dwarf2_loclist_funcs): New struct location_funcs.
6331 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6332 (struct dwarf2_locexpr_baton): Add comments.
6333 (dwarf2_loclist_funcs): New extern.
6334 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6335 base_address and base_known.
6336 (dwarf_loc_buffer): New variable.
6337 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6338 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6339 (dwarf2_has_info): Initialize dwarf_loc_offset.
6340 (dwarf2_build_psymtabs): Read in .debug_loc.
6341 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6342 DWARF_LOC_SIZE.
6343 (psymtab_to_symtab_1): Likewise. Move base address calculation
6344 here, from...
6345 (dwarf2_get_pc_bounds): ... here. Use the base address from
6346 cu_header.
6347 (dwarf2_symbol_mark_computed): Handle location lists.
6348
6349 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6350
6351 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6352 if the linkage name demangled successfully.
6353
6354 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6355
6356 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6357 disassmbly_flavour): Removed.
6358
6359 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6360
6361 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6362
6363 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6364
6365 2003-04-12 Andrew Cagney <cagney@redhat.com>
6366
6367 * frame.h (struct frame_info): Move definition from here ...
6368 * frame.c (struct frame_info): ... to here.
6369
6370 2003-04-12 Andrew Cagney <cagney@redhat.com>
6371
6372 * gdbthread.h (save_infrun_state): Delete parameter
6373 "prev_func_start".
6374 (struct thread_info): Delete field "prev_func_start".
6375 (load_infrun_state): Ditto.
6376 * thread.c (load_infrun_state, save_infrun_state): Update.
6377 * infrun.c (prev_func_start): Delete variable.
6378 (context_switch, init_wait_for_inferior): Update.
6379 (stop_stepping, keep_going): Update.
6380
6381 2003-04-12 Andrew Cagney <cagney@redhat.com>
6382
6383 * gdbarch.sh: Add missing opaque declarations.
6384 * gdbarch.h: Regnerate.
6385 * symtab.h: Add missing opaque declarations.
6386 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6387 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6388 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6389 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6390 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6391 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6392 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6393 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6394 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6395 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6396 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6397 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6398 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6399
6400 2003-04-11 Andrew Cagney <cagney@redhat.com>
6401
6402 * frame.c (get_frame_id): Return this frame's "id".
6403 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6404 function start.
6405 (legacy_saved_regs_this_id): Replace function body with
6406 internal-error.
6407 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6408 FRAME_OBSTACK_ZALLOC.
6409 (create_new_frame): Mark the frame ID as valid.
6410
6411 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6412
6413 * Makefile.in (libbfd_h): Added missing setting.
6414 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6415 according to the selected ABI.
6416
6417 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6418
6419 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6420
6421 2003-04-11 Andrew Cagney <cagney@redhat.com>
6422
6423 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6424 SAVED_PC_AFTER_CALL.
6425 * gdbarch.h, gdbarch.c: Regenerate.
6426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6427 * x86-64-tdep.c (x86_64_init_abi): Update.
6428 * vax-tdep.c (vax_gdbarch_init): Update.
6429 * v850-tdep.c (v850_gdbarch_init): Update.
6430 * sparc-tdep.c (sparc_gdbarch_init): Update.
6431 * sh-tdep.c (sh_gdbarch_init): Update.
6432 * s390-tdep.c (s390_gdbarch_init): Update.
6433 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6436 * mips-tdep.c (mips_gdbarch_init): Update.
6437 * mcore-tdep.c (mcore_gdbarch_init): Update.
6438 * m68k-tdep.c (m68k_gdbarch_init): Update.
6439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6440 * ia64-tdep.c (ia64_gdbarch_init): Update.
6441 (ia64_saved_pc_after_call): Update declaration.
6442 * i386ly-tdep.c (i386lynx_init_abi): Update.
6443 * i386-tdep.c (i386_gdbarch_init): Update.
6444 * hppa-tdep.c (hppa_gdbarch_init): Update.
6445 * h8300-tdep.c (h8300_gdbarch_init): Update.
6446 * frv-tdep.c (frv_gdbarch_init): Update.
6447 * cris-tdep.c (cris_gdbarch_init): Update.
6448 * avr-tdep.c (avr_gdbarch_init): Update.
6449 * arm-tdep.c (arm_gdbarch_init): Update.
6450 * alpha-tdep.c (alpha_gdbarch_init): Update.
6451 * ns32knbsd-nat.c (frame_num_args): Update.
6452 * ns32k-tdep.c (umax_frame_num_args): Update.
6453 * mips-tdep.c (mips_init_frame_pc_first): Update.
6454 * infrun.c (step_over_function): Update.
6455 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6456 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6457 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6458 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6459 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6460 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6461 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6462 * arch-utils.c (init_frame_pc_default): Update.
6463 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6464 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6465 declaration.
6466
6467 2003-04-11 Andrew Cagney <cagney@redhat.com>
6468
6469 * i387-tdep.c: Update copyright.
6470 (i387_to_double): Delete function.
6471 (double_to_i387): Delete function.
6472
6473 2003-04-10 Andrew Cagney <cagney@redhat.com>
6474
6475 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6476 frame's function's address. Simplify.
6477 (d10v_frame_unwind_cache): Check that the frame's function is
6478 non-zero.
6479
6480 2003-04-10 Jim Blandy <jimb@redhat.com>
6481
6482 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6483 call to set_gdbarch_deprecated_push_arguments.
6484
6485 2003-04-10 Andrew Cagney <cagney@redhat.com>
6486
6487 * frame.c (fprint_frame_id): New function.
6488 (fprint_frame_type, fprint_frame): New function.
6489 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6490 (create_sentinel_frame, get_frame_id): Ditto.
6491 (frame_id_p, frame_id_eq): Ditto.
6492 (frame_id_inner, create_new_frame): Ditto.
6493 (legacy_get_prev_frame, get_prev_frame): Ditto.
6494 (deprecated_update_frame_pc_hack): Ditto.
6495 (frame_register_unwind): Ditto.
6496 (deprecated_update_frame_base_hack): Ditto.
6497
6498 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6499
6500 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6501 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6502 frame_chain function.
6503 * Makefile.in: Add dependencies due to above change.
6504
6505 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6506
6507 * blockframe.c (legacy_frame_chain_valid): Move call to
6508 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6509 inside_entry_file.
6510
6511 2003-04-09 Andrew Cagney <cagney@redhat.com>
6512
6513 * frame.h (struct frame_id): Replace "pc" and "base" with
6514 "stack_addr" and "code_addr". Update comments.
6515 (frame_id_build): Update parameter names and comment.
6516 (struct frame_info): Replace "id_p" and "id" with "this_id".
6517 * dummy-frame.c (dummy_frame_this_id): Update.
6518 * breakpoint.c (print_one_breakpoint): Update.
6519 * frame.c (get_frame_id): Update.
6520 (get_frame_base, frame_id_build): Update.
6521 (create_sentinel_frame, legacy_get_prev_frame): Update.
6522 (deprecated_update_frame_base_hack): Update.
6523 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6524 (frame_id_inner): Ditto.
6525
6526 2003-04-09 Andrew Cagney <cagney@redhat.com>
6527
6528 * defs.h (gdb_print_host_address): Make "addr" parameter a
6529 pointer constant.
6530 * utils.c (gdb_print_host_address): Update.
6531
6532 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6533
6534 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6535 register number for R0 is 0.
6536
6537 2003-04-09 J. Brobecker <brobecker@gnat.com>
6538
6539 * frame.h (struct gdbarch): Add opaque structure definition
6540 to avoid a compilation warning on LynxOS 4.0.
6541
6542 2003-04-09 Andrew Cagney <cagney@redhat.com>
6543
6544 * frame.h (struct frame_info): Delete field "pc". Replace
6545 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6546 structure.
6547 * frame.c (frame_pc_unwind): Update.
6548 (create_sentinel_frame): Do not set "pc".
6549 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6550 (get_frame_pc): Call frame_pc_unwind.
6551 (deprecated_update_frame_pc_hack): Update.
6552 (create_new_frame): Use "pc" not "->pc".
6553
6554 2003-04-09 Andrew Cagney <cagney@redhat.com>
6555
6556 * frame.c (get_frame_id): Eliminate code updating "frame".
6557 (legacy_get_prev_frame): Ditto.
6558 (get_frame_base): Return id.base directly.
6559 (deprecated_update_frame_base_hack): Update "id.base".
6560 * frame.h (struct frame_info): Delete field "frame".
6561
6562 2003-04-09 Andrew Cagney <cagney@redhat.com>
6563
6564 * NEWS: Mention that the "Sequent family" is obsolete.
6565 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6566 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6567 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6568 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6569 * config/i386/tm-ptx4.h: Obsolete file.
6570 * config/i386/tm-ptx.h: Obsolete file.
6571 * symm-tdep.c: Obsolete file.
6572 * config/i386/symmetry.mt: Obsolete file.
6573 * config/i386/tm-symmetry.h: Obsolete file.
6574 * symm-nat.c: Obsolete file.
6575 * config/i386/nm-symmetry.h: Obsolete file.
6576 * config/i386/xm-symmetry.h: Obsolete file.
6577 * config/i386/symmetry.mh: Obsolete file.
6578 * config/i386/nm-ptx4.h: Obsolete file.
6579 * config/i386/ptx4.mh: Obsolete file.
6580 * config/i386/ptx.mt: Obsolete file.
6581 * config/i386/ptx.mh: Obsolete file.
6582 * config/i386/xm-ptx4.h: Obsolete file.
6583 * config/i386/xm-ptx.h: Obsolete file.
6584
6585 2003-04-09 Andrew Cagney <cagney@redhat.com>
6586
6587 Obsolete mips*-*-mach3*.
6588 * NEWS: Mention that mips*-*-mach3* is obsolete.
6589 * m3-nat.c: Obsolete file.
6590 * config/nm-m3.h: Obsolete file.
6591 * config/mips/tm-mipsm3.h: Obsolete file.
6592 * config/mips/mipsm3.mt: Obsolete file.
6593 * config/mips/mipsm3.mh: Obsolete file.
6594 * config/mips/xm-mipsm3.h: Obsolete file.
6595 * mipsm3-nat.c: Obsolete file.
6596 * configure.host: Obsolete mips-dec-mach3*.
6597 * configure.tgt: Obsolete mips*-*-mach3*.
6598
6599 2003-04-09 Andrew Cagney <cagney@redhat.com>
6600
6601 * doublest.h: Update copyright.
6602 (deprecated_store_floating, deprecated_extract_floating): Rename
6603 store_floating and extract_floating. Update comments.
6604 * doublest.c: Update copyright.
6605 (extract_floating_by_length): Replace extract_floating.
6606 (store_floating_by_length): Replace store_floating.
6607 (deprecated_extract_floating): New function.
6608 (deprecated_store_floating): New function.
6609 (extract_typed_floating): Call extract_floating_by_length.
6610 (store_typed_floating): Call store_floating_by_length.
6611 * x86-64-tdep.c (x86_64_store_return_value): Update.
6612 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6613 (sh64_extract_return_value): Update.
6614 (sh_sh4_register_convert_to_virtual): Update.
6615 (sh_sh64_register_convert_to_virtual): Update.
6616 (sh_sh4_register_convert_to_raw): Update.
6617 (sh_sh64_register_convert_to_raw): Update.
6618 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6619 (rs6000_register_convert_to_raw): Update.
6620 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6621 (ia64_register_convert_to_raw): Update.
6622 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6623 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6624 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6625 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6626 (alpha_register_convert_to_raw): Update.
6627
6628 2003-04-08 Andrew Cagney <cagney@redhat.com>
6629
6630 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6631 * gdbarch.h, gdbarch.c: Re-generate.
6632 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6633 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6634 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6635 conditionally, use frame_pc_unwind as an alternative. Add
6636 comments.
6637 * arch-utils.c (init_frame_pc_default): Only call
6638 SAVED_PC_AFTER_CALL when available.
6639
6640 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6641
6642 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6643 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6644 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6645 (start_remote): Ditto.
6646 (handle_inferior_event): Ditto.
6647 (save_inferior_status): Ditto.
6648 (restore_inferior_status): Ditto.
6649 * infcmd.c (attach_command): Ditto.
6650 * fork-child.c (startup_inferior): Ditto.
6651 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6652 * alpha-tdep.c (heuristic_proc_start): Ditto.
6653 * mips-tdep.c (heuristic_proc_start): Ditto.
6654 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6655 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6656 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6657 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6658 * remote-vx.c (vx_create_inferior): Ditto.
6659
6660 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6661
6662 * infrun.c (stop_soon_quietly): Make it an enum, to better
6663 override the default behavior of handle_inferior_event.
6664 (clear_proceed_status): Update uses of stop_soon_quietly to
6665 reflect that it is now an enum.
6666 (start_remote): Ditto.
6667 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6668 is set to handle the new GNU/Linux kernel behavior for
6669 attach/sigstop. Update uses of stop_soon_quietly.
6670 * inferior.h (enum stop_kind): New enum.
6671 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6672 Reset normal handle_inferior_event behavior, afterwards.
6673 * fork-child.c (startup_inferior): Update.
6674 * alpha-tdep.c (heuristic_proc_start): Update.
6675 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6676 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6677 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6678 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6679 * remote-vx.c (vx_create_inferior): Update.
6680 * mips-tdep.c (heuristic_proc_start): Update.
6681
6682 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6683
6684 * disasm.c (dump_insns): Move variables inside loop, or they will
6685 be freed more than once, causing wild memory corruptions.
6686 (gdb_disassembly): Look for the substring "-thread",
6687 instead of "-threads" in the target name, to make sure to find
6688 the 'multi-thread' target. Also, make sure we do the right thing
6689 with the "core" target.
6690
6691 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6692
6693 * mips-tdep.c (mips_print_fp_register): New function, created from
6694 do_fp_register_row(). Registers are now (also) printed as hex.
6695 Only one register is printed per row.
6696 (mips_print_register, do_fp_register_row): Print floating point
6697 registers with mips_print_fp_register().
6698
6699 2003-04-06 Andrew Cagney <cagney@redhat.com>
6700
6701 * valprint.h (inspect_it): Add extern declaration.
6702 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6703 (selectors_info, classes_info): Ditto.
6704 (find_objc_msgcall): Fix indentation.
6705 (objc_printstr): Delete extern declarations.
6706
6707 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6708
6709 2003-04-06 Andrew Cagney <cagney@redhat.com>
6710
6711 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6712 Update comment.
6713 * frame.c (legacy_saved_regs_this_id): Update.
6714 (legacy_get_prev_frame): Update.
6715 * xstormy16-tdep.c: Update comment.
6716 * sparc-tdep.c (sparc_frame_chain): Update comment.
6717 * blockframe.c (legacy_frame_chain_valid): Update.
6718
6719 2003-04-06 Andrew Cagney <cagney@redhat.com>
6720
6721 * valprint.c (val_print_type_code_int): Delete #ifdef
6722 PRINT_TYPELESS_INTEGER code.
6723
6724 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6725 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6726 multi-arch definition.
6727 * gdbarch.h: Re-generate.
6728
6729 2003-04-05 Andrew Cagney <cagney@redhat.com>
6730
6731 Eliminate FRAME_FIND_SAVED_REGS.
6732 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6733 Change FSR parameter to a pointer.
6734 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6735 Assume FSR parameter is a pointer.
6736 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6737 Make fsr a pointer.
6738 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6739 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6740 saved_regs a pointer.
6741 (hppa_frame_saved_pc): Ditto.
6742 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6743 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6744 pointer.
6745 (restore_pc_queue): Make fsr a pointer.
6746 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6747 (hppa_frame_chain): Make saved_regs a pointer, call
6748 hppa_frame_init_saved_regs.
6749 * sparc-tdep.c: Include "gdb_assert.h".
6750 (sparc_frame_find_saved_regs): Replace internal_error with
6751 gdb_assert.
6752 * remote-vxsparc.c (vx_read_register): Delete reference to
6753 FRAME_FIND_SAVED_REGS.
6754 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6755 * gdbarch.h: Regenerate.
6756 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6757 (deprecated_get_frame_saved_regs): Delete declaration.
6758 (struct frame_saved_regs): Delete definition.
6759 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6760 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6761 (hppa_frame_find_saved_regs): Delete declaration.
6762 (FRAME_FIND_SAVED_REGS): Delete macro.
6763 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6764 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6765 FRAME_FIND_SAVED_REGS in comment.
6766
6767 2003-04-05 Andrew Cagney <cagney@redhat.com>
6768
6769 * frame.c (frame_func_unwind, get_frame_func): New functions.
6770 * frame.h (get_frame_func, frame_func_unwind): Declare.
6771 (struct frame_info): Add field "prev_func" for caching the
6772 previous frame's function address.
6773 * arm-tdep.c (arm_frameless_function_invocation): Combine
6774 get_pc_function_start and get_frame_pc into get_frame_func.
6775 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6776 (sh64_nofp_frame_init_saved_regs): Ditto.
6777 * s390-tdep.c (s390_function_start): Ditto.
6778 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6779 (rs6000_frameless_function_invocation): Ditto.
6780 (rs6000_frame_saved_pc): Ditto.
6781 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6782 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6783 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6784 (i386_frame_init_saved_regs): Ditto.
6785 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6786 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6787 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6788 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6789 * blockframe.c (frameless_look_for_prologue): Ditto.
6790
6791 2003-04-05 Andrew Cagney <cagney@redhat.com>
6792
6793 * frame.c (legacy_get_prev_frame): Link prev to next at the
6794 function start. Update comments.
6795
6796 2003-04-05 Andrew Cagney <cagney@redhat.com>
6797
6798 * frame.c (get_frame_id): Update comment.
6799 (legacy_get_prev_frame): Update comment.
6800 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6801 * gdbarch.h: Regenerate.
6802 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6803 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6804
6805 2003-04-05 Andrew Cagney <cagney@redhat.com>
6806
6807 * stack.c (print_frame_info): Use get_frame_pc.
6808
6809 2003-04-04 Andrew Cagney <cagney@redhat.com>
6810
6811 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6812 the frame's type from the unwinder.
6813 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6814 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6815 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6816 (get_frame_base_address): Use get_frame_type.
6817 (get_frame_locals_address, get_frame_args_address): Ditto.
6818 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6819 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6820 (struct frame_info): Add comment explaining why the frame contains
6821 a "type" field.
6822 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6823 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6824 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6825 NORMAL_FRAME.
6826 * frame-unwind.h: Include "frame.h".
6827 (struct frame_unwind): Add "type" field.
6828 * Makefile.in (frame_unwind_h): Add $(frame_h).
6829
6830 2003-04-04 Andrew Cagney <cagney@redhat.com>
6831
6832 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6833 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6834 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6835 get_frame_base.
6836 (d10v_unwind_dummy_id): Use frame_id_build.
6837 * frame.c (find_frame_sal): Use get_frame_pc.
6838 (create_new_frame): Use deprecated_update_frame_pc_hack and
6839 deprecated_update_frame_base_hack.
6840 (create_sentinel_frame): Add comment about ->pc going away.
6841 (get_prev_frame): Add comment about ->pc going away.
6842 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6843 frame_id_build, deprecated_update_frame_pc_hack and
6844 deprecated_update_frame_base_hack.
6845 (select_frame): Use get_frame_pc.
6846 (legacy_saved_regs_this_id): Use frame_id_build.
6847
6848 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6849
6850 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6851 signed integer case.
6852 (classify_argument): Handle enumerations and references.
6853
6854 2003-04-04 Andrew Cagney <cagney@redhat.com>
6855
6856 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6857 ID to NULL.
6858
6859 2003-04-01 Adam Fedor <fedor@gnu.org>
6860
6861 * gdb/objc-lang.c (selectors_info): Replace calls to
6862 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6863 SYMBOL_NATURAL_NAME.
6864 (classes_info, find_methods): Likewise.
6865
6866 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6867
6868 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6869 ``mach'' to the value determined by bfd_default_set_arch_mach().
6870
6871 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6872
6873 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6874 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6875 (mi-cmd-file.o): Update dependencies.
6876
6877 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6878
6879 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6880 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6881
6882 2003-04-01 Adam Fedor <fedor@gnu.org>
6883
6884 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6885 * language.h (struct language_defn): Add la_demangle.
6886 (language_demangle): Declare.
6887 * language.c (language_demangle): New function.
6888 (unk_lang_demangle): Likewise.
6889 (unknown_language_defn, auto_language_defn, local_language_defn):
6890 Add ukn_lang_demangle.
6891 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6892 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6893 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6894 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6895 * jv-lang.c (java_demangle): New function
6896 (java_language_defn): Use it for la_demangle element.
6897 * objc-lang.c (objc_demangle): Add options argument
6898 (objc_language_defn): Use objc_demangle for la_demangle element.
6899 * maint.c (maintenance_demangle): Replace switch with
6900 call to language_demangle.
6901 * utils.c (fprintf_symbol_filtered): Likewise.
6902
6903 2003-04-01 Andrew Cagney <cagney@redhat.com>
6904
6905 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6906 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6907 PRINT_TYPELESS_INTEGER.
6908 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6909 PUSH_RETURN_ADDRESS.
6910
6911 2003-04-01 Andrew Cagney <cagney@redhat.com>
6912
6913 * Makefile.in (d10v-tdep.o): Update dependencies.
6914 * d10v-tdep.c: Include "frame-base.h".
6915 (d10v_frame_unwind): Make constant.
6916 (d10v_frame_base_address): New function.
6917 (d10v_frame_base): New variable.
6918 (d10v_gdbarch_init): Set frame_base default.
6919 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6920 comment for base.
6921 (d10v_frame_unwind_cache): Set and use "prev_sp".
6922 (d10v_frame_this_id): Use the previous frame's inner most stack
6923 address and this frame's func address for the frame ID. Use
6924 frame_id_build. Don't analyze beyond the current instruction.
6925
6926 2003-04-01 Andrew Cagney <cagney@redhat.com>
6927
6928 * frame.h (get_frame_locals_address, get_frame_args_address):
6929 Refer to the base address, instead of the address of the first
6930 local or parameter.
6931
6932 2003-04-01 Andrew Cagney <cagney@redhat.com>
6933
6934 Add frame debug info addresses:
6935 * frame-base.c: New file.
6936 * frame-base.h: New file.
6937 * frame.h (struct frame_base): Add opaque declaration.
6938 (get_frame_base): Update comment.
6939 (get_frame_base_address): Declare.
6940 (get_frame_locals_address): Declare.
6941 (get_frame_args_address): Declare.
6942 (struct frame_info): Add "base" and "base_cache". Update
6943 comments on the unwinder.
6944 * frame.c: Include "frame-base.h".
6945 (get_frame_locals_address): New function.
6946 (get_frame_base_address): New function.
6947 (get_frame_args_address): New function.
6948 * findvar.c (read_var_value): Use get_frame_locals_address and
6949 get_frame_args_address.
6950 * stack.c (frame_info): Use get_frame_locals_address and
6951 get_frame_args_address.
6952 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6953 moved to "frame-base.c".
6954 * printcmd.c (print_frame_nameless_args): Ditto.
6955 * symtab.h (address_class): Update comments.
6956 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6957 get_frame_base_address.
6958 * dwarf2expr.c (execute_stack_op): Ditto.
6959 * Makefile.in (frame_base_h): Define.
6960 (frame.o): Update dependencies.
6961 (frame-base.o): Add dependencies.
6962 (SFILES): Add frame-base.c.
6963 (COMMON_OBS): Add frame-base.o.
6964
6965 2003-04-01 Andrew Cagney <cagney@redhat.com>
6966
6967 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6968 CALL_DUMMY_LENGTH): Ditto.
6969 * gdbarch.c: Re-generate.
6970 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6971 (CALL_DUMMY_LENGTH): Delete macro.
6972 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6973 * arm-tdep.c (arm_gdbarch_init): Ditto.
6974 * avr-tdep.c (avr_gdbarch_init): Ditto.
6975 * cris-tdep.c (cris_gdbarch_init): Ditto.
6976 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6977 * frv-tdep.c (frv_gdbarch_init): Ditto.
6978 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6979 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6980 * i386-tdep.c (i386_gdbarch_init): Ditto.
6981 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6983 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6984 * mips-tdep.c (mips_gdbarch_init): Ditto.
6985 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6986 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6987 * s390-tdep.c (s390_gdbarch_init): Ditto.
6988 * sh-tdep.c (sh_gdbarch_init): Ditto.
6989 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6990 * v850-tdep.c (v850_gdbarch_init): Ditto.
6991 * vax-tdep.c (vax_gdbarch_init): Ditto.
6992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6993
6994 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6995
6996 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6997
6998 2003-04-01 Andrew Cagney <cagney@redhat.com>
6999
7000 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7001 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7002 * gdbarch.h, gdbarch.c: Re-generate.
7003 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7004 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7005 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7006 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7007 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7008 * infcmd.c (run_stack_dummy): Simplify assuming
7009 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7010 * infrun.c (handle_inferior_event): Ditto.
7011 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7012 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7013 * arm-tdep.c (arm_gdbarch_init): Ditto.
7014 * avr-tdep.c (avr_gdbarch_init): Ditto.
7015 * cris-tdep.c (cris_gdbarch_init): Ditto.
7016 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7017 * frv-tdep.c (frv_gdbarch_init): Ditto.
7018 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7019 * i386-tdep.c (i386_gdbarch_init): Ditto.
7020 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7022 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7023 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7024 * mips-tdep.c (mips_gdbarch_init): Ditto.
7025 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7026 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7027 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7028 * s390-tdep.c (s390_gdbarch_init): Ditto.
7029 * sh-tdep.c (sh_gdbarch_init): Ditto.
7030 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7031 * v850-tdep.c (v850_gdbarch_init): Ditto.
7032 * vax-tdep.c (vax_gdbarch_init): Ditto.
7033 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7034
7035 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7036
7037 * symfile.c (symfile_relocate_debug_section): Update call to
7038 bfd_simple_get_relocated_section_contents.
7039
7040 2003-03-31 Andrew Cagney <cagney@redhat.com>
7041
7042 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7043 * gdbarch.h, gdbarch.c: Regenerate.
7044 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7045 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7046 available.
7047 * frame.h (generic_fix_call_dummy): Delete declaration.
7048 * dummy-frame.h: Update comment.
7049 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7051 fix_call_dummy.
7052 * sh-tdep.c (sh_gdbarch_init): Ditto.
7053 * s390-tdep.c (s390_gdbarch_init): Ditto.
7054 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7055 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7057 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7058 * i386-tdep.c (i386_gdbarch_init): Ditto.
7059 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7060 * frv-tdep.c (frv_gdbarch_init): Ditto.
7061 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7062 * cris-tdep.c (cris_gdbarch_init): Ditto.
7063 * avr-tdep.c (avr_gdbarch_init): Ditto.
7064 * arm-tdep.c (arm_gdbarch_init): Ditto.
7065
7066 2003-03-31 J. Brobecker <brobecker@gnat.com>
7067
7068 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7069 (INIT_FRAME_AP): Likewise.
7070 (EXTRA_FRAME_INFO): Likewise.
7071
7072 2003-03-31 Andrew Cagney <cagney@redhat.com>
7073
7074 * gdbarch.sh: Include "symfile.h".
7075 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7076 * gdbarch.h, gdbarch.c: Re-generate.
7077 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7079 call_dummy_address, the default is at entry_point_address.
7080 * v850-tdep.c (v850_gdbarch_init): Ditto.
7081 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7082 * sh-tdep.c (sh_gdbarch_init): Ditto.
7083 * s390-tdep.c (s390_gdbarch_init): Ditto.
7084 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7085 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7086 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7087 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7088 * i386-tdep.c (i386_gdbarch_init): Ditto.
7089 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7090 * frv-tdep.c (frv_gdbarch_init): Ditto.
7091 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7092 * cris-tdep.c (cris_gdbarch_init): Ditto.
7093 * arm-tdep.c (arm_gdbarch_init): Ditto.
7094
7095 2003-03-31 Andrew Cagney <cagney@redhat.com>
7096
7097 * gdbarch.sh (CALL_DUMMY_P): Delete.
7098 * gdbarch.h, gdbarch.c: Re-generate.
7099 * inferior.h (CALL_DUMMY_P): Delete macro.
7100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7101 * vax-tdep.c (vax_gdbarch_init): Update.
7102 * v850-tdep.c (v850_gdbarch_init): Update.
7103 * sparc-tdep.c (sparc_gdbarch_init): Update.
7104 * sh-tdep.c (sh_gdbarch_init): Update.
7105 * s390-tdep.c (s390_gdbarch_init): Update.
7106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7107 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7108 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7109 * mips-tdep.c (mips_gdbarch_init): Update.
7110 * mcore-tdep.c (mcore_gdbarch_init): Update.
7111 * m68k-tdep.c (m68k_gdbarch_init): Update.
7112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7113 * ia64-tdep.c (ia64_gdbarch_init): Update.
7114 * i386-tdep.c (i386_gdbarch_init): Update.
7115 * h8300-tdep.c (h8300_gdbarch_init): Update.
7116 * frv-tdep.c (frv_gdbarch_init): Update.
7117 * d10v-tdep.c (d10v_gdbarch_init): Update.
7118 * cris-tdep.c (cris_gdbarch_init): Update.
7119 * breakpoint.c (deprecated_frame_in_dummy): Update.
7120 * avr-tdep.c (avr_gdbarch_init): Update.
7121 * alpha-tdep.c (alpha_gdbarch_init): Update.
7122 * arm-tdep.c (arm_gdbarch_init): Update.
7123 * dummy-frame.c (dummy_frame_this_id): Update comments.
7124 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7125 * frame.c (legacy_get_prev_frame): Ditto.
7126 * valops.c (call_function_by_hand): Delete function.
7127 (hand_function_call): Rename to call_function_by_hand
7128
7129 2003-03-30 Andrew Cagney <cagney@redhat.com>
7130
7131 2002-11-10 Klee Dienes <kdienes@apple.com>
7132 * value.h (struct value): Update comment.
7133
7134 2003-03-30 Andrew Cagney <cagney@redhat.com>
7135
7136 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7137 D10V_FP_REGNUM.
7138 (d10v_gdbarch_init): Do not set fp_regnum.
7139
7140 * frame.c (get_frame_base): Force ID initialization.
7141 (get_prev_frame): Move computation of the frame ID from here ...
7142 (get_frame_id): ... to here.
7143 (legacy_get_prev_frame): Mark the frame ID as valid.
7144 * frame.h (struct frame_info): Add field "id_p".
7145
7146 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7147
7148 * i386-tdep.c (i386_store_struct_return): Removed.
7149 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7150
7151 2003-03-30 Andrew Cagney <cagney@redhat.com>
7152
7153 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7154 * gdbarch.h, gdbarch.c: Regenerate.
7155 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7157 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7158 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7159 * i386-tdep.c (i386_gdbarch_init): Ditto.
7160 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7161 * cris-tdep.c (cris_gdbarch_init): Ditto.
7162 * vax-tdep.c (vax_gdbarch_init): Ditto.
7163 * s390-tdep.c (s390_gdbarch_init): Ditto.
7164 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7165 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7166 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7167 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7168 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7169 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7170 * sparc-tdep.c (sparc_gdbarch_init): Update.
7171 * sh-tdep.c (sh_gdbarch_init): Update.
7172 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7173 * mips-tdep.c (mips_gdbarch_init): Update.
7174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7175 * ia64-tdep.c (ia64_gdbarch_init): Update.
7176 * frv-tdep.c (frv_gdbarch_init): Update.
7177 * avr-tdep.c (avr_gdbarch_init): Update.
7178 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7179 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7180 instead of when push_dummy_call is not available.
7181
7182 2003-03-30 Andrew Cagney <cagney@redhat.com>
7183
7184 * infttrace.c: Include "gdbthread.h".
7185 (parent_attach_all): Fix function signature.
7186 (call_ptrace): Update call.
7187 * Makefile.in (infttrace.o): Update dependencies.
7188
7189 2003-03-30 Andrew Cagney <cagney@redhat.com>
7190
7191 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7192 PUSH_RETURN_ADDRESS.
7193 * gdbarch.h, gdbarch.c: Regenerate.
7194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7195 * x86-64-tdep.c (x86_64_init_abi): Update.
7196 * v850-tdep.c (v850_gdbarch_init): Update.
7197 * sparc-tdep.c (sparc_gdbarch_init): Update.
7198 * sh-tdep.c (sh_gdbarch_init): Update.
7199 * s390-tdep.c (s390_gdbarch_init): Update.
7200 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7201 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7202 * mips-tdep.c (mips_gdbarch_init): Update.
7203 * mcore-tdep.c (mcore_gdbarch_init): Update.
7204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7205 * ia64-tdep.c (ia64_gdbarch_init): Update.
7206 * i386-tdep.c (i386_gdbarch_init): Update.
7207 * h8300-tdep.c (h8300_gdbarch_init): Update.
7208 * frv-tdep.c (frv_gdbarch_init): Update.
7209 * cris-tdep.c (cris_gdbarch_init): Update.
7210 * avr-tdep.c (avr_gdbarch_init): Update.
7211 * arm-tdep.c (arm_gdbarch_init): Update.
7212 * valops.c (hand_function_call): Update.
7213
7214 2003-03-29 Andrew Cagney <cagney@redhat.com>
7215
7216 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7217 sizeof_call_dummy_words.
7218 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7219 define.
7220 * gdbarch.h: Regenerate.
7221
7222 2003-03-29 Andrew Cagney <cagney@redhat.com>
7223
7224 * infttrace.h: New file.
7225 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7226 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7227 (hpread_read_doc_function_type): Detect an initialized type1.
7228 (hpread_quick_traverse): Initialize mod_name_string.
7229 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7230 (som_solib_get_solib_by_pc): Declare.
7231 (so_lib_thread_start_addr): Declare.
7232 (no_shared_libraries): Declare.
7233 * somread.c (init_import_symbols): Make static. Add forward
7234 declaration.
7235 * config/pa/nm-hppah.h: Include "infttrace.h" for
7236 parent_attach_all.
7237 (hppa_insert_hw_watchpoint): Declare.
7238 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7239 * hppah-nat.c: Include "gdb_string.h".
7240 (parent_attach_all): Delete extern declaration, moved to
7241 "infttrace.h".
7242 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7243 int.
7244 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7245 * Makefile.in (infttrace_h): Define.
7246 (hpread.o): Update dependencies.
7247 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7248 * hppa-hpux-tdep.c: Include "gdb_string.h".
7249 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7250 * infrun.c (handle_inferior_event): Always initialize
7251 stepped_after_stopped_by_watchpoint. Add default and remove
7252 fallthrough in switch statement.
7253 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7254 parameter to int.
7255 (hppa_remove_hw_watchpoint): Ditto.
7256
7257 2003-03-29 Andrew Cagney <cagney@redhat.com>
7258
7259 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7260 offset.
7261
7262 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7263
7264 * arm-tdep.c (arm_push_arguments): Delete.
7265 (struct stack_item): New type.
7266 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7267 (arm_store_struct_return): Delte.
7268 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7269 arm_push_arguments or arm_store_struct_return.
7270
7271 2003-03-28 Andrew Cagney <cagney@redhat.com>
7272
7273 * Makefile.in (d10v-tdep.o): Update dependencies.
7274 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7275 * d10v-tdep.c: Include "remote.h".
7276 (target_resume_hook): Delete extern declaration.
7277 (target_wait_loop_hook): Ditto.
7278 (tdisassemble_command): Eliminate assignment in "if" conditional.
7279 (d10v_ts2_register_sim_regno): Eliminate call to
7280 legacy_register_sim_regno.
7281 (d10v_ts3_register_sim_regno): Ditto.
7282
7283 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7284
7285 * thread.c: Reindented.
7286 * lin-lwp.c: Ditto.
7287 * linux-proc.c: Ditto.
7288
7289 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7290
7291 * MAINTAINERS (write after approval): Add myself.
7292
7293 2003-03-27 Theodore A. Roth <troth@openavr.org>
7294
7295 * objc-exp.y: Add missing semi-colons.
7296
7297 2003-03-27 Andrew Cagney <cagney@redhat.com>
7298
7299 * regcache.c (write_sp): Delete function and references.
7300 * inferior.h (write_sp): Delete declaration.
7301 * valops.c (hand_function_call): Replace write_sp with
7302 TARGET_WRITE_SP.
7303 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7304 (sparc_pop_frame): Ditto.
7305
7306 2003-03-27 Andrew Cagney <cagney@redhat.com>
7307
7308 * NEWS: Mention removal of support for hppa*-*-bsd* and
7309 hppa*-*-osf* natives, and hppa*-*-pro* target.
7310 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7311 * config/pa/xm-pa.h: Obsolete file.
7312 * config/pa/xm-hppab.h: Obsolete file.
7313 * config/pa/nm-hppab.h: Obsolete file.
7314 * config/pa/tm-hppab.h: Obsolete file.
7315 * config/pa/tm-hppao.h: Obsolete file.
7316 * config/pa/nm-hppao.h: Obsolete file.
7317 * config/pa/tm-pro.h: Obsolete file.
7318 * config/pa/hppaosf.mt: Obsolete file.
7319 * config/pa/hppaosf.mh: Obsolete file.
7320 * config/pa/hppapro.mt: Obsolete file.
7321 * config/pa/hppabsd.mt: Obsolete file.
7322 * config/pa/hppabsd.mh: Obsolete file.
7323 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7324 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7325 hppa*-*-osf*.
7326
7327 2003-03-27 Andrew Cagney <cagney@redhat.com>
7328
7329 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7330 push_arguments. Don't set push_return_address or write_sp.
7331 (d10v_push_dummy_call): Replace d10v_push_arguments.
7332 (d10v_push_return_address, d10v_write_sp): Delete function,
7333 handled by push_dummy_call.
7334
7335 2003-03-26 Andrew Cagney <cagney@redhat.com>
7336
7337 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7338 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7339 regcache and dummy_addr parameters.
7340 * gdbarch.h, gdbarch.c: Re-generate.
7341 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7342 available; assume it will handle stack alignment and return
7343 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7344 legacy_push_arguments.
7345 (legacy_push_arguments): Rename default_push_arguments.
7346 * value.h (legacy_push_arguments): Rename default_push_arguments.
7347 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7348 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7349 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7350 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7351 * config/i386/tm-symmetry.h: Update.
7352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7353 * x86-64-tdep.c (x86_64_init_abi): Update.
7354 * v850-tdep.c (v850_gdbarch_init): Update.
7355 * sparc-tdep.c (sparc_gdbarch_init): Update.
7356 * sh-tdep.c (sh_gdbarch_init): Update.
7357 * s390-tdep.c (s390_gdbarch_init): Update.
7358 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7359 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7360 * mips-tdep.c (mips_gdbarch_init): Update.
7361 * mcore-tdep.c (mcore_gdbarch_init): Update.
7362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7363 * ia64-tdep.c (ia64_gdbarch_init): Update.
7364 * i386-tdep.c (i386_gdbarch_init): Update.
7365 * hppa-tdep.c (hppa_gdbarch_init): Update.
7366 * h8300-tdep.c (h8300_gdbarch_init): Update.
7367 * frv-tdep.c (frv_gdbarch_init): Update.
7368 * d10v-tdep.c (d10v_gdbarch_init): Update.
7369 * cris-tdep.c (cris_gdbarch_init): Update.
7370 * avr-tdep.c (avr_gdbarch_init): Update.
7371 * arm-tdep.c (arm_gdbarch_init): Update.
7372 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7373 * alpha-tdep.c (alpha_gdbarch_init): Update.
7374
7375 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7376
7377 * signals/signals.c (do_target_signal_to_host): Correct realtime
7378 signal range test.
7379
7380 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7381
7382 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7383 (struct sal_chain, map_catch_names): Remove.
7384 (catch_exception_command_1): Don't call
7385 handle_gnu_4_16_catch_command.
7386
7387 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7388
7389 From Mark Dettinger <dettinge@de.ibm.com>:
7390 * dwarf2cfi.c (read_2u): Increment pointer by two.
7391
7392 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7393
7394 * signals/signals.c: Fix typos in last change.
7395
7396 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7397
7398 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7399 not already defined. Use __SIGRTMIN if available.
7400 (target_signal_from_host): Remove SIGRTMIN block.
7401 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7402 the signal is within the realtime range.
7403
7404 2003-03-25 Adam Fedor <fedor@gnu.org>
7405
7406 * Makefile.in (infrun.o): Add $(language_h)
7407 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7408 for language specific trampolines.
7409 * language.h (struct language_defn): Add skip_trampoline.
7410 (skip_language_trampoline): Declare.
7411 * language.c (unk_lang_trampoline, skip_language_trampoline):
7412 New functions.
7413 (unknown_language_defn, auto_language_defn, local_language_defn):
7414 Add ukn_lang_trampoline.
7415 * ada-lang.c (ada_language_defn): Add NULL for language
7416 specific skip_trampoline.
7417 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7418 scm-lang.c: Likewise.
7419 * objc-lang.c (objc_skip_trampoline): New function.
7420 (objc_language_defn): Add objc_skip_trampoline.
7421
7422 2003-03-25 Andrew Cagney <cagney@redhat.com>
7423
7424 * frame.c (get_prev_frame): Delay validating a frame's ID -
7425 non-NULL, didn't go backwards - until an attempt to unwind it to
7426 the previous frame.
7427
7428 2003-03-25 Andrew Cagney <cagney@redhat.com>
7429
7430 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7431 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7432 * gdbarch.h, gdbarch.c: Re-generate.
7433 * config/sparc/tm-sparc.h
7434 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7435 * sparc-tdep.c (sparc_gdbarch_init): Set
7436 deprecated_extra_stack_alignment_needed.
7437 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7439 extra_stack_alignment_needed.
7440 * v850-tdep.c (v850_gdbarch_init): Ditto.
7441 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7442 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7443 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7444 * cris-tdep.c (cris_gdbarch_init): Ditto.
7445 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7447
7448 2003-03-25 Andrew Cagney <cagney@redhat.com>
7449
7450 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7451 STORE_STRUCT_RETURN.
7452 * gdbarch.h, gdbarch.c: Regenerate.
7453 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7454 (d10v_push_arguments): Set the struct return register.
7455 (d10v_gdbarch_init): Update.
7456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7457 * x86-64-tdep.c (x86_64_init_abi): Update.
7458 * vax-tdep.c (vax_gdbarch_init): Update.
7459 * v850-tdep.c (v850_gdbarch_init): Update.
7460 * sparc-tdep.c (sparc_gdbarch_init): Update.
7461 * sh-tdep.c (sh_gdbarch_init): Update.
7462 * s390-tdep.c (s390_gdbarch_init): Update.
7463 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7464 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7465 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7466 * mips-tdep.c (mips_gdbarch_init): Update.
7467 * mcore-tdep.c (mcore_gdbarch_init): Update.
7468 * m68k-tdep.c (m68k_gdbarch_init): Update.
7469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7470 * ia64-tdep.c (ia64_gdbarch_init): Update.
7471 * i386-tdep.c (i386_gdbarch_init): Update.
7472 * hppa-tdep.c (hppa_gdbarch_init): Update.
7473 * h8300-tdep.c (h8300_gdbarch_init): Update.
7474 * frv-tdep.c (frv_gdbarch_init): Update.
7475 * cris-tdep.c (cris_gdbarch_init): Update.
7476 * avr-tdep.c (avr_gdbarch_init): Update.
7477 * arm-tdep.c (arm_gdbarch_init): Update.
7478 * alpha-tdep.c (alpha_gdbarch_init): Update.
7479
7480 2003-03-25 Andrew Cagney <cagney@redhat.com>
7481
7482 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7483 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7484 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7485 * gdbarch.h, gdbarch.c: Regenerate.
7486 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7487 call_dummy_stack_adjust_p.
7488 * vax-tdep.c (vax_gdbarch_init): Ditto.
7489 * v850-tdep.c (v850_gdbarch_init): Ditto.
7490 * sh-tdep.c (sh_gdbarch_init): Ditto.
7491 * s390-tdep.c (s390_gdbarch_init): Ditto.
7492 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7493 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7494 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7495 * mips-tdep.c (mips_gdbarch_init): Ditto.
7496 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7497 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7499 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7500 * i386-tdep.c (i386_gdbarch_init): Ditto.
7501 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7502 * frv-tdep.c (frv_gdbarch_init): Ditto.
7503 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7504 * cris-tdep.c (cris_gdbarch_init): Ditto.
7505 * avr-tdep.c (avr_gdbarch_init): Ditto.
7506 * arm-tdep.c (arm_gdbarch_init): Ditto.
7507 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7508 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7509 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7510 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7511 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7512 call_dummy_stack_adjust_p.
7513 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7514 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7515 * sparc-tdep.c (sparc32_push_arguments): Update.
7516 * valops.c (hand_function_call): Update.
7517
7518 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7519
7520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7521 set_gdbarch_char_signed.
7522
7523 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7524
7525 PR cli/548
7526 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7527
7528 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7529
7530 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7531 (_initialize_arm_tdep): Don't set tm_print_insn.
7532
7533 2003-03-24 Adam Fedor <fedor@gnu.org>
7534
7535 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7536 * objc-lang.h: Add multiple inclusion protection.
7537 (start_msglist, add_msglist, end_msglist): Additional declarations.
7538
7539 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7540
7541 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7542 value was renamed to ARM_FLOAT_SOFT_FPA.
7543
7544 2003-03-23 Andrew Cagney <cagney@redhat.com>
7545
7546 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7547 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7548 * gdbarch.h, gdbarch.c: Regenerate.
7549 * valops.c (hand_function_call): Update.
7550 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7551 * frame.c (legacy_saved_regs_this_id): Update.
7552 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7553 * dummy-frame.h: Update.
7554 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7555 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7556 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7557 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7558 * config/m68k/tm-sun3.h: Update.
7559 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7560 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7561 * x86-64-tdep.c (x86_64_init_abi): Update.
7562 * vax-tdep.c (vax_gdbarch_init): Update.
7563 * v850-tdep.c (v850_gdbarch_init): Update.
7564 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7565 * sh-tdep.c (sh_gdbarch_init): Update.
7566 * s390-tdep.c (s390_gdbarch_init): Update.
7567 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7568 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7569 (frame_get_saved_regs): Update.
7570 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7571 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7572 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7573 * mips-tdep.c (mips_gdbarch_init): Update.
7574 * mcore-tdep.c (mcore_gdbarch_init): Update.
7575 * m68k-tdep.c (m68k_gdbarch_init): Update.
7576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7577 * ia64-tdep.c (ia64_gdbarch_init): Update.
7578 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7579 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7580 (i386_interix_back_one_frame): Update.
7581 * hppa-tdep.c (hppa_gdbarch_init): Update.
7582 (hppa_init_extra_frame_info): Update.
7583 * h8300-tdep.c (h8300_gdbarch_init): Update.
7584 * frv-tdep.c (frv_gdbarch_init): Update.
7585 * cris-tdep.c (cris_gdbarch_init): Update.
7586 * avr-tdep.c (avr_gdbarch_init): Update.
7587 * arm-tdep.c (arm_gdbarch_init): Update.
7588 * alpha-tdep.c (alpha_gdbarch_init): Update.
7589
7590 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7591
7592 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7593 (arm_get_fp_model): Declare.
7594 * arm-tdep.c (fp_model_strings): New string array.
7595 (arm_fp_model, current_fp_model): New variables.
7596 (arm_get_fp_model): New function.
7597 (arm_set_fp): New function.
7598 (set_fp_model_sfunc): New function.
7599 (show_fp_model): New function.
7600 (_initialize_arm_tdep): Add new command to set/show the FPU.
7601 (arm_extract_return_value): Use arm_get_fp_model.
7602 (arm_store_return_value): Likewise.
7603 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7604 to initialize the floating-point data types.
7605 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7606 model is FPA.
7607
7608 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7609
7610 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7611 the current setting of each value.
7612 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7613 new_set and new_show. Use add_setshow_cmd_full and
7614 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7615 commands and add new version as subcommands of "set/show arm".
7616
7617 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7618
7619 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7620 (set_arm_command, show_arm_command): New functions.
7621 (_initialize_arm_tdep): Add them.
7622 (num_disassembly_options): Renamed from num_flavor_options.
7623 (valid_disassembly_styles): Renamed from valid_flavors.
7624 (disassembly_style): Renamed from disassembly_flavor.
7625 (set_disassembly_style_sfunc): Renamed from
7626 set_disassembly_flavor_sfunc.
7627 (set_disassembly_style): Renamed from set_disassembly_flavor.
7628 (arm_othernames): Updated.
7629 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7630 command. Add "set/show arm disassembly" commands. Deprecate
7631 "othernames" command.
7632
7633 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7634
7635 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7636 (arm-tdep.o): Depend on elf_arm_h.
7637
7638 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7639
7640 * Makefile.in (coff_internal_h): Define.
7641 (arm-tdep.o): Update dependencies.
7642
7643 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7644
7645 * arm-tdep.c (prologue_cache): Delete.
7646 (check_prologue_cache, save_prologue_cache): Delete.
7647 (arm_scan_prologue): Don't check or update the prologue_cache.
7648 (arm_gdb_arch_init): Don't initialize it.
7649 (_initialize_arm_tdep): Likewise.
7650
7651 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7652
7653 * MAINTAINERS (tui): Maintainer of tui code.
7654
7655 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7656
7657 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7658 (i386-cygwin-tdep.o): Add dependencies.
7659 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7660 * i386-cygwin-tdep.c: New file.
7661 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7662 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7663
7664 2003-03-20 Andrew Cagney <cagney@redhat.com>
7665
7666 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7667 (handle_inferior_event): Remove code calling
7668 DYNAMIC_TRAMPOLINE_NEXTPC.
7669
7670 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7671 already has a full path.
7672
7673 * main.c (gdb_main): Return 1.
7674 (captured_main): Call error to report an invalid interpreter.
7675
7676 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7677 * alpha-osf1-tdep.c: Include "gdb_string.h".
7678
7679 2003-03-19 J. Brobecker <brobecker@gnat.com>
7680
7681 Continuing work to convert the hppa targets to multiarch partial.
7682
7683 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7684 method, now that hppa_push_dummy_frame has a conformant prototype.
7685 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7686 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7687 for the switch to multiarch partial.
7688
7689 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7690
7691 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7692 when iss is issNull.
7693
7694 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7695
7696 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7697 NUM_REGS bounds check.
7698
7699 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7700
7701 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7702 * mips-tdep.c (gdb_assert.h): Include.
7703 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7704 (mips_register_name): Handle integer registers explicitly. Add
7705 bounds checking.
7706 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7707 (mips_lsi33k_reg_names): Don't list integer registers; they're
7708 handled by mips_register_name() now.
7709 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7710 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7711 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7712 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7713 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7714
7715 2003-03-18 Andrew Cagney <cagney@redhat.com>
7716
7717 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7718 a void pointer.
7719 * gdbtypes.h (print_scalar_formatted): Update declaration.
7720 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7721
7722 2003-03-18 J. Brobecker <brobecker@gnat.com>
7723
7724 * infrun.c (observer.h): Add #include.
7725 (normal_stop): Add call to observer_notify_normal_stop.
7726 * Makefile.in (infrun.o): Add dependency on observer.h.
7727
7728 2003-03-18 J. Brobecker <brobecker@gnat.com>
7729
7730 Continuing work to convert the hppa targets to multiarch partial.
7731 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7732 parameter. Reformat comment.
7733 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7734 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7735 to match new profile.
7736
7737 2003-03-18 J. Brobecker <brobecker@gnat.com>
7738
7739 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7740 appear to be working in any case.
7741
7742 2003-03-18 J. Brobecker <brobecker@gnat.com>
7743
7744 * observer.c (observer_test_first_observer): New static variable.
7745 (observer_test_second_observer): Likewise.
7746 (observer_test_third_observer): Likewise.
7747 (observer_test_first_notification_function): New static function.
7748 (observer_test_second_notification_function): Likewise.
7749 (observer_test_third_notification_function): Likewise.
7750
7751 2003-03-17 J. Brobecker <brobecker@gnat.com>
7752
7753 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7754 * somsolib.c (gdb_assert.h): Likewise.
7755 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7756 (somsolib.o): Likewise.
7757
7758 2003-03-17 Andrew Cagney <cagney@redhat.com>
7759
7760 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7761 BFD. Simplify setting of di.endian.
7762
7763 2003-03-17 Andrew Cagney <cagney@redhat.com>
7764
7765 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7766 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7767
7768 From Elena Zannoni <ezannoni@redhat.com>
7769 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7770 vector and floating-point parameters.
7771 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7772 convention.
7773 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7774
7775 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7776
7777 * MAINTAINERS: Remove my name from several maintainership roles.
7778
7779 2003-03-17 Andrew Cagney <cagney@redhat.com>
7780
7781 Fix frame off-by-one bug.
7782 * frame-unwind.h (frame_this_id_ftype): Replace
7783 frame_unwind_id_ftype.
7784 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7785 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7786 with "prev_register".
7787 * frame-unwind.c (frame_unwind_find_by_pc): Return
7788 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7789 comment.
7790 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7791 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7792 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7793 (dummy_frame_unwind): Update.
7794 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7795 sentinel_frame_register_unwind.
7796 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7797 (sentinel_frame_unwinder): Update.
7798 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7799 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7800 * frame.c (create_sentinel_frame): Update. Initialize
7801 "prologue_cache" instead of "unwind_cache".
7802 (frame_register_unwind): Call this frame's prev_register with the
7803 next frame and this frame's prologue cache.
7804 (get_prev_frame): Simplify. Always call prev frame's this_id with
7805 this frame and prev frame's prologue cache. Document that this
7806 call is shifted one to the left when compared to the
7807 frame_register_unwind call.
7808 (legacy_saved_regs_prev_register): Replace
7809 frame_saved_regs_register_unwind.
7810 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7811 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7812 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7813 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7814 (d10v_frame_unwind): Update.
7815 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7816 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7817 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7818 "saved_regs" with "this_saved_regs".
7819
7820 2003-03-16 Andrew Cagney <cagney@redhat.com>
7821
7822 * frame.c (frame_pop): Don't call target_store_registers. Fix
7823 problem reported by Mark Kettenis.
7824
7825 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7826
7827 * i386-tdep.c (i386_register_type): Renamed from
7828 i386_register_virtual_type. Adjust function signature.
7829 (i386_gdbarch_init): Set register_type instead of
7830 deprecated_max_register_raw_size,
7831 deprecated_max_register_virtual_size and register_virtual_type.
7832
7833 2003-03-14 Andrew Cagney <cagney@redhat.com>
7834
7835 * frame.c (get_prev_frame): When a legacy frame, always call
7836 legacy_get_prev_frame. Simplify unwind code using assumption that
7837 the unwinder is new.
7838 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7839 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7840 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7841
7842 2003-03-14 Andrew Cagney <cagney@redhat.com>
7843
7844 * frame.c (get_saved_register): Delete function.
7845 * frame.h (get_saved_register): Delete declaration.
7846 * xstormy16-tdep.c: Update comment.
7847 * regcache.h: Update comments.
7848 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7849 get_saved_register and extract_address, use
7850 frame_read_unsigned_register.
7851 (sparc_frame_saved_pc): Ditto.
7852 (sparc_get_saved_register): Instead of get_saved_register, use
7853 frame_register.
7854 (sparc_pop_frame): Ditto.
7855 * findvar.c: Update comments.
7856 (value_of_register): Call frame_register instead of
7857 get_saved_register.
7858 (value_from_register): Ditto.
7859 * config/sparc/tm-sparc.h: Update comment.
7860 * breakpoint.c: Update comment.
7861
7862 2003-03-14 Andrew Cagney <cagney@redhat.com>
7863
7864 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7865 GET_SAVED_REGISTER.
7866 * gdbarch.h, gdbarch.c: Re-generate.
7867 * frame.h: Update comments.
7868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7869 * x86-64-tdep.c (x86_64_init_abi): Update.
7870 * sparc-tdep.c (sparc_gdbarch_init): Update.
7871 * sh-tdep.c (sh_gdbarch_init): Update.
7872 * mips-tdep.c (mips_gdbarch_init): Update.
7873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7874 * cris-tdep.c (cris_gdbarch_init): Update.
7875 * ia64-tdep.c (ia64_gdbarch_init): Update.
7876 * frame.c (frame_register): Update.
7877 (get_saved_register): Update.
7878 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7879
7880 2003-03-13 Andrew Cagney <cagney@redhat.com>
7881
7882 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7883 * gdbarch.h, gdbarch.c: Regenerate.
7884 * valops.c (hand_function_call): Update comment.
7885 * stack.c (return_command): Update comment.
7886 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7887 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7889 * x86-64-tdep.c (x86_64_init_abi): Update.
7890 * vax-tdep.c (vax_gdbarch_init): Update.
7891 * v850-tdep.c (v850_gdbarch_init): Update.
7892 * sparc-tdep.c (sparc_gdbarch_init): Update.
7893 * sh-tdep.c (sh_gdbarch_init): Update.
7894 * s390-tdep.c (s390_gdbarch_init): Update.
7895 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7896 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7897 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7898 * mips-tdep.c (mips_gdbarch_init): Update.
7899 * mcore-tdep.c (mcore_gdbarch_init): Update.
7900 * m68k-tdep.c (m68k_gdbarch_init): Update.
7901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7902 * ia64-tdep.c (ia64_gdbarch_init): Update.
7903 * i386-tdep.c (i386_gdbarch_init): Update.
7904 * hppa-tdep.c (hppa_gdbarch_init): Update.
7905 * h8300-tdep.c (h8300_gdbarch_init): Update.
7906 * frv-tdep.c (frv_gdbarch_init): Update.
7907 * cris-tdep.c (cris_gdbarch_init): Update.
7908 * avr-tdep.c (avr_gdbarch_init): Update.
7909 * arm-tdep.c (arm_gdbarch_init): Update.
7910 * alpha-tdep.c (alpha_gdbarch_init): Update.
7911
7912 2003-03-13 Andrew Cagney <cagney@redhat.com>
7913
7914 * frame.c (legacy_frame_p): New function.
7915 (get_prev_frame): Use legacy_frame_p.
7916 * frame.h (legacy_frame_p): Declare.
7917
7918 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7919
7920 * MAINTAINERS (write after approval): Alphabetically
7921 listing corrected.
7922
7923 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7924
7925 * MAINTAINERS (write after approval): Add myself.
7926
7927 2003-03-12 Andrew Cagney <cagney@redhat.com>
7928
7929 * frame.c (get_prev_frame): Rename the frame parameter to
7930 "this_frame".
7931 (get_next_frame, legacy_get_prev_frame): Ditto.
7932
7933 2003-03-12 Andrew Cagney <cagney@redhat.com>
7934
7935 * frame.c (get_current_frame): Check target_has_registers before
7936 checking target_has_stack.
7937 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7938 instead of deprecated_selected_frame.
7939 * findvar.c (value_of_register): Pass "frame", not
7940 deprecated_selected_frame, to value_of_builtin_reg.
7941
7942 2003-03-12 Andrew Cagney <cagney@redhat.com>
7943
7944 * regcache.c (regcache_cooked_write_signed): New function.
7945 (regcache_cooked_write_unsigned): New function.
7946 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7947 (regcache_cooked_read_signed): Fix regnum in range assertion.
7948 * regcache.h (regcache_cooked_write_signed): Declare.
7949 (regcache_cooked_write_unsigned): Declare.
7950
7951 2003-03-12 Andrew Cagney <cagney@redhat.com>
7952
7953 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7954 * gdbarch.h, gdbarch.c: Re-generate.
7955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7956 * x86-64-tdep.h: Update.
7957 * x86-64-tdep.c (x86_64_init_abi): Update.
7958 * v850-tdep.c (v850_gdbarch_init): Update.
7959 * sparc-tdep.c (sparc_gdbarch_init): Update.
7960 * sh-tdep.c (sh_gdbarch_init): Update.
7961 * s390-tdep.c (s390_gdbarch_init): Update.
7962 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7963 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7964 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7965 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7966 * mips-tdep.c (mips_gdbarch_init): Update.
7967 * mcore-tdep.c (mcore_gdbarch_init): Update.
7968 * m68k-tdep.c (m68k_gdbarch_init): Update.
7969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7970 * ia64-tdep.c (ia64_gdbarch_init): Update.
7971 * i386-tdep.c (i386_gdbarch_init): Update.
7972 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7973 * hppa-tdep.c (hppa_gdbarch_init): Update.
7974 * h8300-tdep.c (h8300_gdbarch_init): Update.
7975 * frv-tdep.c (frv_gdbarch_init): Update.
7976 * cris-tdep.c (cris_gdbarch_init): Update.
7977 * avr-tdep.c (avr_gdbarch_init): Update.
7978 * arm-tdep.c (arm_gdbarch_init): Update.
7979 * alpha-tdep.c (alpha_gdbarch_init): Update.
7980 * sh-tdep.c (sh_init_extra_frame_info): Update.
7981 (sh64_init_extra_frame_info): Update.
7982 * ns32knbsd-nat.c (frame_num_args): Update.
7983 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7984 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7985 (xstormy16_frame_chain_valid): Update.
7986 * vax-tdep.c (vax_saved_pc_after_call): Update.
7987 * v850-tdep.c (v850_frame_chain): Update.
7988 (v850_pop_frame): Update.
7989 (v850_init_extra_frame_info): Update.
7990 * sparc-tdep.c (setup_arbitrary_frame): Update.
7991 * ns32k-tdep.c (umax_frame_num_args): Update.
7992 * s390-tdep.c (s390_pop_frame_regular): Update.
7993 * mn10300-tdep.c (mn10300_frame_chain): Update.
7994 (mn10300_pop_frame_regular): Update.
7995 (mn10300_init_extra_frame_info): Update.
7996 * mips-tdep.c (mips_init_frame_pc_first): Update.
7997 (mips_frame_chain): Update.
7998 (mips_pop_frame): Update.
7999 * mcore-tdep.c (mcore_frame_chain): Update.
8000 (mcore_pop_frame): Update.
8001 (mcore_init_extra_frame_info): Update.
8002 * arch-utils.c (init_frame_pc_default): Update.
8003 * m68k-tdep.c (isi_frame_num_args): Update.
8004 (delta68_frame_num_args): Update.
8005 (news_frame_num_args): Update.
8006 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8007 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8008 (alpha_frame_chain): Update.
8009 (alpha_pop_frame): Update.
8010 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8011 (hppa_init_extra_frame_info): Update.
8012 (hppa_frame_chain): Update.
8013 (hppa_frame_chain_valid): Update.
8014 * cris-tdep.c (cris_init_extra_frame_info): Update.
8015 * avr-tdep.c (avr_init_extra_frame_info): Update.
8016 * arm-tdep.c (arm_frame_chain_valid): Update.
8017 (arm_init_extra_frame_info): Update.
8018 (arm_pop_frame): Update.
8019 * frame.c (frame_pc_unwind): Update.
8020 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8021 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8022 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8023 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8024 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8025 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8026
8027 2003-03-12 Andrew Cagney <cagney@redhat.com>
8028
8029 Eliminate the need for POP_FRAME.
8030 * frame.c (do_frame_unwind_register): New function.
8031 (frame_pop): When no POP_FRAME, pop the frame using register
8032 unwind and a scratch regcache.
8033 (frame_saved_regs_pop): Delete function.
8034 (trad_frame_unwinder): Update.
8035 * d10v-tdep.c (d10v_frame_pop): Delete function.
8036 (d10v_frame_unwind): Update.
8037 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8038 (sentinel_frame_unwinder): Update.
8039 * dummy-frame.c (dummy_frame_pop): Delete function.
8040 (dummy_frame_unwind): Update.
8041 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8042 (struct frame_unwind): Update.
8043
8044 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8045
8046 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8047 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8048 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8049 Do range checks on register number obtained from debugging info.
8050 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8051 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8052 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8053 mapping function.
8054 (do_fp_register_row): Fix typo which caused double type to be
8055 used when attempting to unpack a float.
8056
8057 2003-03-11 J. Brobecker <brobecker@gnat.com>
8058
8059 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8060
8061 2003-03-11 Andrew Cagney <cagney@redhat.com>
8062
8063 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8064 frame. Problem found by Corinna Vinschen.
8065
8066 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8067
8068 * doublest.c (floatformat_from_length): Accept also
8069 the real size of 'long double' type.
8070
8071 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8072
8073 From Klee Dienes <kdienes@apple.com>:
8074 * breakpoint.c (bpstat_copy): Copy the command lines as well
8075 as the old value, to match what is freed in bpstat_clear.
8076
8077 2003-03-10 David Carlton <carlton@math.stanford.edu>
8078
8079 * minsyms.c (add_minsym_to_hash_table): Replace
8080 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8081 (compare_minimal_symbols, compact_minimal_symbols)
8082 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8083 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8084 of DEPRECATED_SYMBOL_MATCHES_NAME.
8085 (lookup_minimal_symbol_solib_trampoline): Ditto.
8086
8087 2003-03-10 Andrew Cagney <cagney@redhat.com>
8088
8089 * regcache.h (regcache_cooked_read_ftype): Define.
8090 (regcache_save, regcache_restore): Add a cooked_read parameter.
8091 * regcache.c (regcache_save, regcache_restore): Update.
8092 (do_cooked_read): New function.
8093 (regcache_cpy): Pass do_cooked_read to regcache_save and
8094 regcache_restore.
8095
8096 2003-03-10 Andrew Cagney <cagney@redhat.com>
8097
8098 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8099 * gdbarch.h, gdbarch.c: Re-generate.
8100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8101 * x86-64-tdep.h: Update.
8102 * x86-64-tdep.c (x86_64_init_abi): Update.
8103 * v850-tdep.c (v850_gdbarch_init): Update.
8104 * sparc-tdep.c (sparc_gdbarch_init): Update.
8105 * sh-tdep.c (sh_gdbarch_init): Update.
8106 * s390-tdep.c (s390_gdbarch_init): Update.
8107 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8108 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8109 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8110 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8111 * mips-tdep.c (mips_gdbarch_init): Update.
8112 * mcore-tdep.c (mcore_gdbarch_init): Update.
8113 * m68k-tdep.c (m68k_gdbarch_init): Update.
8114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8115 * ia64-tdep.c (ia64_gdbarch_init): Update.
8116 * i386-tdep.c (i386_gdbarch_init): Update.
8117 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8118 * hppa-tdep.c (hppa_gdbarch_init): Update.
8119 * h8300-tdep.c (h8300_gdbarch_init): Update.
8120 * frv-tdep.c (frv_gdbarch_init): Update.
8121 * cris-tdep.c (cris_gdbarch_init): Update.
8122 * avr-tdep.c (avr_gdbarch_init): Update.
8123 * arm-tdep.c (arm_gdbarch_init): Update.
8124 * alpha-tdep.c (alpha_gdbarch_init): Update.
8125 * sh-tdep.c (sh_init_extra_frame_info): Update.
8126 (sh64_init_extra_frame_info): Update.
8127 * ns32knbsd-nat.c (frame_num_args): Update.
8128 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8129 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8130 (xstormy16_frame_chain_valid): Update.
8131 * vax-tdep.c (vax_saved_pc_after_call): Update.
8132 * v850-tdep.c (v850_frame_chain): Update.
8133 (v850_pop_frame): Update.
8134 (v850_init_extra_frame_info): Update.
8135 * sparc-tdep.c (setup_arbitrary_frame): Update.
8136 * ns32k-tdep.c (umax_frame_num_args): Update.
8137 * s390-tdep.c (s390_pop_frame_regular): Update.
8138 * mn10300-tdep.c (mn10300_frame_chain): Update.
8139 (mn10300_pop_frame_regular): Update.
8140 (mn10300_init_extra_frame_info): Update.
8141 * mips-tdep.c (mips_init_frame_pc_first): Update.
8142 (mips_frame_chain): Update.
8143 (mips_pop_frame): Update.
8144 * mcore-tdep.c (mcore_frame_chain): Update.
8145 (mcore_pop_frame): Update.
8146 (mcore_init_extra_frame_info): Update.
8147 * arch-utils.c (init_frame_pc_default): Update.
8148 * m68k-tdep.c (isi_frame_num_args): Update.
8149 (delta68_frame_num_args): Update.
8150 (news_frame_num_args): Update.
8151 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8152 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8153 (alpha_frame_chain): Update.
8154 (alpha_pop_frame): Update.
8155 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8156 (hppa_init_extra_frame_info): Update.
8157 (hppa_frame_chain): Update.
8158 (hppa_frame_chain_valid): Update.
8159 * cris-tdep.c (cris_init_extra_frame_info): Update.
8160 * avr-tdep.c (avr_init_extra_frame_info): Update.
8161 * arm-tdep.c (arm_frame_chain_valid): Update.
8162 (arm_init_extra_frame_info): Update.
8163 (arm_pop_frame): Update.
8164 * frame.c (frame_pc_unwind): Update.
8165 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8166 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8167 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8168 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8169 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8170 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8171
8172 2003-03-10 Andrew Cagney <cagney@redhat.com>
8173
8174 * gdbarch.sh (gdbarch_unwind_pc): New method.
8175 * gdbarch.h, gdbarch.c: Regenerate.
8176 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8177 but use read_pc and FRAME_SAVED_PC as fall backs.
8178 (frame_saved_regs_pc_unwind): Delete function.
8179 (trad_frame_unwinder): Update.
8180 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8181 (struct frame_unwind): Update.
8182 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8183 (dummy_frame_unwind): Update.
8184 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8185 (sentinel_frame_unwinder): Update.
8186 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8187 (d10v_frame_unwind): Update.
8188 (d10v_unwind_pc): New function.
8189 (d10v_gdbarch_init): Set unwind_pc.
8190
8191 2003-03-10 Andrew Cagney <cagney@redhat.com>
8192
8193 * gdbarch.h: Re-generate.
8194
8195 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8196 PC.
8197 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8198 the PC register.
8199
8200 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8201
8202 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8203
8204 2003-03-08 Andrew Cagney <cagney@redhat.com>
8205
8206 * cli-out.c: Update copyright.
8207 (cli_out_data): Define typedef. Use instead of ui_out_data.
8208
8209 2003-03-08 Andrew Cagney <cagney@redhat.com>
8210
8211 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8212 the result.
8213
8214 2003-03-07 Andrew Cagney <cagney@redhat.com>
8215
8216 * gdbarch.sh: Don't generate two macro definitions when an
8217 undefined macro taking no arguments.
8218 * gdbarch.h: Regenerate.
8219
8220 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8221
8222 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8223 (x86_64_unwind_dummy_id): New functions.
8224 (x86_64_init_abi): Register these two new functions.
8225
8226 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8227
8228 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8229 (x86_64_skip_prologue): Move prologue detection to
8230 separate function.
8231 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8232
8233 2003-03-05 Andrew Cagney <cagney@redhat.com>
8234
8235 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8236 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8237 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8238 to use unwind_dummy_id when a dummy frame.
8239 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8240 predicate.
8241 * gdbarch.h, gdbarch.c: Regneerate.
8242
8243 2003-03-05 Andrew Cagney <cagney@redhat.com>
8244
8245 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8246 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8247 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8248 values.
8249
8250 2003-03-05 Andrew Cagney <cagney@redhat.com>
8251
8252 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8253 (struct d10v_unwind_cache): Delete field "frameless". Replace
8254 "next_addr" with "sp_offset". Add "r11_offset".
8255 (d10v_frame_unwind_cache): Update.
8256 (prologue_find_regs): Update. When "mv r11, sp", save the
8257 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8258 RN was saved in r11_offset.
8259
8260 2003-03-05 Andrew Cagney <cagney@redhat.com>
8261
8262 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8263 cached PC value in the next frame.
8264
8265 2003-03-05 Andrew Cagney <cagney@redhat.com>
8266
8267 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8268 "id_unwind_cache" with "id".
8269 (frame_id_unwind): Delete declaration.
8270 * frame.c (frame_id_unwind): Delete function.
8271 (get_prev_frame): Call the frame id unwind method directly. Store
8272 the returned next frame's ID value in NEXT_FRAME. Note that there
8273 is a problem with the wrong unwind ID being called with the wrong
8274 unwind cache.
8275
8276 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8277
8278 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8279
8280 2003-03-05 James Ingham <jingham@apple.com>
8281 Daniel Jacobowitz <drow@mvista.com>
8282
8283 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8284 (auto_cp_abi): New variable.
8285 (current_cp_abi, num_cp_abis): Make static.
8286 (CP_ABI_MAX): Define.
8287 (cp_abis): Turn into an array.
8288 (value_virtual_fn_field): Fix formatting.
8289 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8290 takes a pointer.
8291 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8292 (list_cp_abis, _initialize_cp_abi): New functions.
8293 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8294 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8295 switch_to_cp_abi. Update prototype for register_cp_abi.
8296 * Makefile.in (cp-abi.o): Update dependencies.
8297 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8298 instead of switch_to_cp_abi.
8299 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8300 register_cp_abi.
8301 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8302 register_cp_abi.
8303 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8304
8305 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8306
8307 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8308 * dwarf2loc.c: Include "regcache.h".
8309 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8310 register_size.
8311 * Makefile.in (dwarf2loc.o): Update dependencies.
8312
8313 2003-03-04 Theodore A. Roth <troth@openavr.org>
8314
8315 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8316 number of io registers reported by remote target is not a multiple of
8317 step.
8318
8319 2003-03-04 David Carlton <carlton@math.stanford.edu>
8320
8321 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8322 (lookup_symbol_aux_psymtabs): Update call to
8323 lookup_partial_symbol.
8324 (lookup_transparent_type, find_main_psymtab)
8325 (make_symbol_overload_list): Ditto.
8326
8327 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8328
8329 * MAINTAINERS (Write after approval): Update my email address.
8330
8331 2003-03-03 Andrew Cagney <cagney@redhat.com>
8332
8333 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8334 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8335 predicate. Replace MAX_REGISTER_RAW_SIZE.
8336 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8337 MAX_REGISTER_VIRTUAL_SIZE.
8338 * regcache.c (legacy_max_register_raw_size): New function.
8339 (legacy_max_register_virtual_size): New function.
8340 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8341 (MAX_REGISTER_RAW_SIZE): Define.
8342 (legacy_max_register_raw_size): Declare.
8343 (legacy_max_register_virtual_size): Declare.
8344 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8345 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8346 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8347 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8348 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8349 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8350 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8351 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8352 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8354 * vax-tdep.c (vax_gdbarch_init): Update.
8355 * v850-tdep.c (v850_gdbarch_init): Update.
8356 * sparc-tdep.c (sparc_gdbarch_init): Update.
8357 * sh-tdep.c (sh_gdbarch_init): Update.
8358 * s390-tdep.c (s390_gdbarch_init): Update.
8359 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8360 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8361 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8362 * mips-tdep.c (mips_gdbarch_init): Update.
8363 * mcore-tdep.c (mcore_gdbarch_init): Update.
8364 * m68k-tdep.c (m68k_gdbarch_init): Update.
8365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8366 * ia64-tdep.c (ia64_gdbarch_init): Update.
8367 * i386-tdep.c (i386_gdbarch_init): Update.
8368 * hppa-tdep.c (hppa_gdbarch_init): Update.
8369 * h8300-tdep.c (h8300_gdbarch_init): Update.
8370 * frv-tdep.c (frv_gdbarch_init): Update.
8371 * cris-tdep.c (cris_gdbarch_init): Update.
8372 * avr-tdep.c (avr_gdbarch_init): Update.
8373 * arm-tdep.c (arm_gdbarch_init): Update.
8374 * alpha-tdep.c (alpha_gdbarch_init): Update.
8375 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8376 max_register_raw_size or max_register_virtual_size.
8377
8378 2003-03-03 David Carlton <carlton@math.stanford.edu>
8379
8380 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8381 SYMBOL_MATCHES_NAME, add comment.
8382 (SYMBOL_MATCHES_NATURAL_NAME): New.
8383 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8384 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8385 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8386 * symtab.c (lookup_partial_symbol): Use
8387 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8388 unhelpful comment.
8389 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8390 SYMBOL_MATCHES_NAME.
8391 Fix for PR c++/33.
8392
8393 2003-03-03 David Carlton <carlton@math.stanford.edu>
8394
8395 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8396 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8397 by regexp matching against SYMBOL_NATURAL_NAME.
8398
8399 2003-03-03 David Carlton <carlton@math.stanford.edu>
8400
8401 * linespec.c (find_method): Extract code into collect_methods.
8402 (collect_methods): New.
8403
8404 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8405
8406 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8407 get_frame_base.
8408
8409 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8410 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8411
8412 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8413
8414 * arch-utils.c (generic_register_byte): Fix to use the loop index
8415 and not regnum when summing the size of all registers up to regnum.
8416
8417 2003-03-01 Andrew Cagney <cagney@redhat.com>
8418
8419 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8420 FRAME_INIT_SAVED_REGS.
8421 * gdbarch.h, gdbarch.c: Regenerate.
8422 * stack.c (frame_info): Update.
8423 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8424 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8425 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8426 * ns32k-tdep.c (ns32k_pop_frame): Update.
8427 * mips-tdep.c (mips_pop_frame): Update.
8428 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8429 * ia64-tdep.c (ia64_frame_chain): Update.
8430 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8431 (ia64_frameless_function_invocation): Update.
8432 (ia64_init_extra_frame_info): Update.
8433 (ia64_pop_frame_regular): Update.
8434 * frame.h (struct frame_info): Update comment.
8435 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8436 * frame.c (frame_saved_regs_register_unwind): Update.
8437 (frame_saved_regs_register_unwind): Update.
8438 (deprecated_generic_get_saved_register): Update.
8439 * cris-tdep.c: Update comment.
8440 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8441 Rename macro.
8442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8443 * x86-64-tdep.c (x86_64_init_abi): Update.
8444 * vax-tdep.c (vax_gdbarch_init): Update.
8445 * v850-tdep.c (v850_gdbarch_init): Update.
8446 * sparc-tdep.c (sparc_gdbarch_init): Update.
8447 * sh-tdep.c (sh_gdbarch_init): Update.
8448 * s390-tdep.c (s390_gdbarch_init): Update.
8449 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8450 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8451 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8452 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8453 * mips-tdep.c (mips_gdbarch_init): Update.
8454 * mcore-tdep.c (mcore_gdbarch_init): Update.
8455 * m68k-tdep.c (m68k_gdbarch_init): Update.
8456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8457 * ia64-tdep.c (ia64_gdbarch_init): Update.
8458 * i386-tdep.c (i386_gdbarch_init): Update.
8459 * frv-tdep.c (frv_gdbarch_init): Update.
8460 * avr-tdep.c (avr_gdbarch_init): Update.
8461 * arm-tdep.c (arm_gdbarch_init): Update.
8462 * alpha-tdep.c (alpha_gdbarch_init): Update.
8463
8464 2003-03-01 Andrew Cagney <cagney@redhat.com>
8465
8466 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8467 option enum and switch. When no windows, set the interpreter to
8468 INTERP_CONSOLE.
8469
8470 2003-03-01 Andrew Cagney <cagney@redhat.com>
8471
8472 * main.c (captured_main): Replace magic option characters with an
8473 enum.
8474
8475 2003-03-01 Andrew Cagney <cagney@redhat.com>
8476
8477 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8478 INIT_EXTRA_FRAME_INFO.
8479 * gdbarch.h, gdbarch.c: Regenerate.
8480 * arm-tdep.c: Update comments.
8481 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8482 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8483 * frame.h, avr-tdep.c: Ditto.
8484 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8485 (create_new_frame, legacy_get_prev_frame): Ditto.
8486 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8487 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8489 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8490 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8491 * v850-tdep.c (v850_gdbarch_init): Ditto.
8492 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8493 * sh-tdep.c (sh_gdbarch_init): Ditto.
8494 * s390-tdep.c (s390_gdbarch_init): Ditto.
8495 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8496 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8497 * mips-tdep.c (mips_gdbarch_init): Ditto.
8498 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8500 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8501 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8502 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8503 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8504 * frv-tdep.c (frv_gdbarch_init): Ditto.
8505 * cris-tdep.c (cris_gdbarch_init): Ditto.
8506 * avr-tdep.c (avr_gdbarch_init): Ditto.
8507 * arm-tdep.c (arm_gdbarch_init): Ditto.
8508 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8509 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8510
8511 2003-03-01 Andrew Cagney <cagney@redhat.com>
8512
8513 * gdbarch.sh (register_type): New function with predicate.
8514 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8515 * gdbarch.h, gdbarch.c: Re-generate.
8516 * arch-utils.c (generic_register_byte): Use generic_register_size.
8517 (generic_register_size): When available, use
8518 gdbarch_register_type.
8519 * regcache.c (init_regcache_descr): When available, initialize the
8520 register type array using gdbarch_register_type. If the
8521 architecture supplies gdbarch_register_type, do not use the legacy
8522 regcache layout.
8523 * d10v-tdep.c (d10v_register_type): Replace
8524 d10v_register_virtual_type.
8525 (d10v_gdbarch_init): Set register_type instead of
8526 register_virtual_type.
8527
8528 2003-03-01 Andrew Cagney <cagney@redhat.com>
8529
8530 * Makefile.in (ax-gdb.o): Update dependencies.
8531 * ax-gdb.c: Include "regcache.h".
8532 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8533 * findvar.c (value_of_register): Ditto.
8534 * infcmd.c (default_print_registers_info): Ditto.
8535
8536 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8537
8538 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8539 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8540
8541 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8542
8543 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8544 of STREQ.
8545
8546 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8547
8548 * Makefile.in (dwarf2loc.o): Update dependencies.
8549 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8550 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8551 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8552 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8553 (locexpr_tracepoint_var_ref): New function.
8554 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8555
8556 2003-02-28 Andrew Cagney <cagney@redhat.com>
8557
8558 * regcache.c (register_size): New function.
8559 * regcache.h (register_size): Declare
8560 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8561 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8562
8563 2003-02-28 David Carlton <carlton@math.stanford.edu>
8564
8565 * linespec.c (decode_compound): Extract code into find_method.
8566 (find_method): New.
8567
8568 2003-02-28 J. Brobecker <brobecker@gnat.com>
8569
8570 * Makefile.in: Add rules to build and link in observer.o.
8571
8572 2003-02-27 J. Brobecker <brobecker@gnat.com>
8573
8574 * observer.c: Minor comments edits.
8575
8576 2003-02-27 J. Brobecker <brobecker@gnat.com>
8577
8578 * observer.h, observer.c: New file.
8579
8580 2003-02-27 Andrew Cagney <cagney@redhat.com>
8581
8582 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8583
8584 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8585
8586 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8587 (M6812_OP_STS_EXT): Likewise.
8588 (m6811_prologue): Use the above to recognize prologue.
8589 (m6812_prologue): Likewise.
8590
8591 2003-02-27 David Carlton <carlton@math.stanford.edu>
8592
8593 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8594 SYMBOL_PRINT_NAME.
8595 (compare_psymbols): Ditto.
8596 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8597
8598 2003-02-27 Michael Snyder <msnyder@redhat.com>
8599
8600 * f-lang.c (build_fortran_types): New function.
8601 (_initialize_f_language): Gdbarch-register built-in fortran types.
8602 * doublest.c (extract_floating): Fix warning text.
8603
8604 2003-02-27 Andrew Cagney <cagney@redhat.com>
8605
8606 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8607 predicate. Replaces PUSH_DUMMY_FRAME.
8608 * gdbarch.h, gdbarch.c: Regnerate.
8609 * valops.c (hand_function_call): Update. Call
8610 generic_push_dummy_frame directly.
8611 * vax-tdep.c (vax_gdbarch_init): Update.
8612 * sparc-tdep.c (sparc_gdbarch_init): Update.
8613 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8614 * m68k-tdep.c (m68k_gdbarch_init): Update.
8615 * hppa-tdep.c (hppa_gdbarch_init): Update.
8616 * alpha-tdep.c (alpha_gdbarch_init): Update.
8617 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8618 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8619 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8621 push_dummy_frame to generic_push_dummy_frame.
8622 * v850-tdep.c (v850_gdbarch_init): Ditto.
8623 * sh-tdep.c (sh_gdbarch_init): Ditto.
8624 * s390-tdep.c (s390_gdbarch_init): Ditto.
8625 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8626 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8627 * mips-tdep.c (mips_gdbarch_init): Ditto.
8628 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8630 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8631 * i386-tdep.c (i386_gdbarch_init): Ditto.
8632 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8633 * frv-tdep.c (frv_gdbarch_init): Ditto.
8634 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8635 * cris-tdep.c (cris_gdbarch_init): Ditto.
8636 * avr-tdep.c (avr_gdbarch_init): Ditto.
8637 * arm-tdep.c (arm_gdbarch_init): Ditto.
8638
8639 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8640
8641 * mips-tdep.c (show_mips_abi): New function.
8642 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8643 command ``show mips abi''.
8644
8645 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8646
8647 From Elena Zannoni <ezannoni@redhat.com>
8648 * dbxread.c (process_one_symbol): Only record line 0 if one or
8649 more sline entries have been seen for the function.
8650
8651 2003-02-26 Michael Chastain <mec@shout.net>
8652
8653 * configure: Regenerate with autoconf 000227.
8654
8655 2003-02-26 Michael Chastain <mec@shout.net>
8656
8657 Close PR build/660.
8658 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8659 for old libc5/glibc.
8660 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8661
8662 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8663
8664 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8665 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8666
8667 2003-02-26 Michael Chastain <mec@shout.net>
8668
8669 * configure.in: New variable HAVE_UINTPTR_T.
8670 * configure, config.in: Regenerated.
8671
8672 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8673
8674 Fix PR build/1097.
8675 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8676
8677 2003-02-25 Andrew Cagney <cagney@redhat.com>
8678
8679 * frame.c (get_prev_frame): Add comment on check for
8680 inside_entry_func. Only check for inside_entry_file when not a
8681 dummy and not a sentinel. Check that the new frame is not inner
8682 to the old frame.
8683
8684 2003-02-25 Andrew Cagney <cagney@redhat.com>
8685
8686 * frame.c (frame_debug): New variable.
8687 (_initialize_frame): Add "set/show debug frame" command.
8688 (get_prev_frame): When frame_debug, print reason why unwind
8689 failed.
8690
8691 2003-02-25 Michael Chastain <mec@shout.net>
8692
8693 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8694 to avoid uintptr_t definition problems.
8695
8696 2003-02-25 David Carlton <carlton@math.stanford.edu>
8697
8698 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8699 (SYMBOL_LINKAGE_NAME): Ditto.
8700 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8701 SYMBOL_LINKAGE_NAME.
8702 (struct general_symbol_info): Expand comment.
8703 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8704 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8705 (SYMBOL_MATCHES_REGEXP): Ditto.
8706 * symtab.c (symbol_natural_name): New function.
8707 * objfiles.h: Replace all uses of SYMBOL_NAME by
8708 DEPRECATED_SYMBOL_NAME.
8709 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8710 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8711 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8712 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8713 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8714 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8715 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8716 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8717 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8718 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8719 * ada-exp.y: Ditto.
8720 * ada-exp.y: Update copyright.
8721 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8722 * cp-valprint.c: Ditto.
8723
8724 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8725
8726 * infptrace.c (detach): Do not flag error if ptrace detach fails
8727 and errno is set to ESRCH.
8728
8729 2003-02-24 Andrew Cagney <cagney@redhat.com>
8730
8731 * infptrace.c (udot_info): Change type of udot_off to long. Use
8732 paddr when printing udot_off's value.
8733
8734 2003-02-24 David Carlton <carlton@math.stanford.edu>
8735
8736 * symtab.c (make_symbol_overload_list): Only read in partial
8737 symtabs containing a matching partial symbol.
8738
8739 2003-02-24 David Carlton <carlton@math.stanford.edu>
8740
8741 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8742 do the comparison, not strcmp.
8743 * symfile.c (compare_psymbols): Ditto.
8744 * defs.h: Declare strcmp_iw_ordered.
8745 * utils.c (strcmp_iw_ordered): New function.
8746
8747 2003-02-24 Jim Blandy <jimb@redhat.com>
8748
8749 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8750 support, shared libs): Remove my name from here, to better reflect
8751 reality.
8752
8753 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8754
8755 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8756 (target_ops): Add to_have_continuable_watchpoint.
8757 * target.c (update_current_target): Add INHERIT line for
8758 to_have_continuable_watchpoint.
8759 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8760 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8761 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8762 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8763
8764 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8765
8766 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8767 maintainership.
8768
8769 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8770
8771 * solib.c (solib_open): Call target defined search function after
8772 failing with solib-search-path.
8773 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8774 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8775
8776 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8777
8778 * MAINTAINERS: Add myself to Write After section.
8779
8780 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8781
8782 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8783
8784 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8785
8786 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8787 (m68hc11_add_reggroups): New function.
8788 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8789 (m68hc11_gdbarch_init): Install the reggroups.
8790 (_initialize_m68hc11_tdep): Initialize them.
8791
8792 2003-02-21 James E Wilson <wilson@tuliptree.org>
8793
8794 * MAINTAINERS: Update my email address.
8795
8796 2003-02-21 David Carlton <carlton@math.stanford.edu>
8797
8798 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8799
8800 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8801
8802 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8803 * symtab.h: Add opaque declarations of struct axs_value and
8804 struct agent_expr.
8805 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8806 (struct location_funcs): New type.
8807 (struct symbol): Add "loc" to aux_value.
8808 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8809 * dwarf2read.c: Include "dwarf2expr.h".
8810 (dwarf2_symbol_mark_computed): New function.
8811 (read_func_scope): Use it.
8812 (var_decode_location): New function.
8813 (new_symbol): Use it.
8814 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8815
8816 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8817 (dwarf2expr_h, dwarf2loc_h): New variables.
8818 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8819 (dwarf2expr.o, dwarf2loc.o): New rules.
8820 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8821 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8822 LOC_COMPUTED_ARG.
8823 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8824 * m2-exp.y (yylex): Likewise.
8825 * printcmd.c (address_info, print_frame_args): Likewise.
8826 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8827 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8828 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8829 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8830 * symtab.c (lookup_block_symbol): Likewise.
8831
8832 2003-02-20 Adam Fedor <fedor@gnu.org>
8833
8834 * symtab.h: Remove objc_specific struct
8835 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8836 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8837 Have language_objc use cplus_specific struct.
8838
8839 2003-02-20 Tom Tromey <tromey@redhat.com>
8840
8841 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8842 TYPE_NAME, when printing a String value. PR java/1075.
8843
8844 2003-02-20 Adam Fedor <fedor@gnu.org>
8845
8846 * objc-lang.h (find_methods): Remove declaration.
8847 * objc-lang.c (find_methods): Make static.
8848
8849 2003-02-20 Christopher Faylor <cgf@redhat.com>
8850
8851 * win32-nat.c (get_image_name): Check return value from
8852 ReadProcessMemory.
8853 (child_xfer_memory): Ditto.
8854
8855 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8856
8857 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8858 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8859 '${exec_prefix}' (in addition to the expansion thereof) as
8860 relocatable.
8861 * configure: Rebuilt.
8862
8863 2003-02-20 David Carlton <carlton@math.stanford.edu>
8864
8865 * symtab.c (search_symbols): Revert the search_symbols part of my
8866 2002-12-23 patch. Add comment.
8867
8868 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8869
8870 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8871 * dbxread.c (elfstab_build_psymtabs): Don't call
8872 install_minimal_symbols.
8873 (stabsect_build_psymtabs): Likewise.
8874 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8875 earlier.
8876 * somread.c (som_symfile_read): Call install_minimal_symbols
8877 and do_cleanups earlier.
8878 * nlmread.c (nlm_symfile_read): Likewise.
8879 * mdebugread.c (elfmdebug_build_psymtabs): Call
8880 install_minimal_symbols and make appropriate cleanups.
8881
8882 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8883
8884 * solib.c (reload_shared_libraries): New function.
8885 (_initialize_solib): Add callbacks for ``set solib-search-path''
8886 and ``set solib-absolute-prefix''.
8887
8888 2003-02-20 David Carlton <carlton@math.stanford.edu>
8889
8890 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8891 expand comment.
8892 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8893 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8894 * ada-typeprint.c (ada_typedef_print): Ditto.
8895 * ax-gdb.c (gen_var_ref): Ditto.
8896 * breakpoint.c (print_one_breakpoint): Ditto.
8897 * buildsym.c (finish_block): Ditto.
8898 * c-valprint.c (c_val_print): Ditto.
8899 * expprint.c (print_subexp): Ditto.
8900 * findvar.c (locate_var_value): Ditto.
8901 * infcmd.c (jump_command): Ditto.
8902 * linespec.c (decode_line_2, decode_compound): Ditto.
8903 * maint.c (maintenance_translate_address): Ditto.
8904 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8905 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8906 Ditto.
8907 * p-valprint.c (pascal_val_print): Ditto.
8908 * stabsread.c (define_symbol): Ditto.
8909 * stack.c (print_frame, frame_info, print_block_frame_locals)
8910 (print_frame_arg_vars, return_command): Ditto.
8911 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8912 * symmisc.c (print_symbol): Ditto.
8913 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8914 (compare_search_syms, print_symbol_info, print_msymbol_info)
8915 (rbreak_command): Ditto.
8916 * tracepoint.c (tracepoints_info): Ditto.
8917 * typeprint.c (typedef_print): Ditto.
8918 * valops.c (value_of_variable, hand_function_call): Ditto.
8919 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8920 * ada-typeprint.c: Update Copyright.
8921 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8922 * tracepoint.c, cli/cli-cmds.c: Ditto.
8923
8924 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8925
8926 * frame.c (generic_unwind_get_saved_register): Make non-static.
8927 * frame.h (generic_unwind_get_saved_register): Declare.
8928 * mips-tdep.c (read_next_frame_reg): Fetch register from
8929 current regcache when frame is NULL.
8930 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8931 that must be NULL.
8932 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8933 instead of frame_register_unwind().
8934
8935 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8936
8937 * remote-sim.c (gdbsim_insert_breakpoint)
8938 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8939 code.
8940
8941 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8942
8943 * remote.c (_initialize_remote): Add commands "set/show remote
8944 hardware-watchpoint-limit" and "set/show remote
8945 hardware-breakpoint-limit".
8946 (remote_hw_watchpoint_limit): Initialize to -1.
8947 (remote_hw_breakpoint_limit): Ditto.
8948 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8949
8950 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8951
8952 * coff-pe-read.c: New file - support reading of minimal symbols from a
8953 portable executable using the export table.
8954 * coff-pe-read.h: New file.
8955 * coffread.c: Include coff-pe-read.h.
8956 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8957 debugging symbols found.
8958 * Makefile.in (SFILES): Add coff-pe-read.o.
8959 (coff_pe_read_h): Define.
8960 (COMMON_OBS): Add coff-pe-read.o.
8961 (coffread.o): Add coff_pe_read_h dependency.
8962 (coff-pe-read.o): New target.
8963
8964 2003-02-19 David Carlton <carlton@math.stanford.edu>
8965
8966 * Makefile.in (SFILES): Add block.c.
8967 (block_h): New.
8968 (COMMON_OBS): Add block.o.
8969 (block.o): New.
8970 (x86-64-tdep.o): Add $(block_h).
8971 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8972 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8973 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8974 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8975 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8976 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8977 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8978 * value.h: Add opaque declaration for struct block.
8979 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8980 * ada-lang.h: Ditto.
8981 * x86-64-tdep.c: #include "block.h"
8982 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8983 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8984 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8985 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8986 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8987 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8988 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8989 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8990 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8991 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8992 * symtab.c (block_function): Ditto.
8993 (contained_in): Ditto.
8994 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8995 block.h. Add opaque declaration for struct block.
8996 * symtab.h: Move block_function and contained_in declarations to
8997 block.h. Add opaque declarations for struct block, struct
8998 blockvector.
8999 (struct block): Move to block.h.
9000 (struct blockvector): Ditto.
9001 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9002 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9003 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9004 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9005 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9006 Ditto.
9007 * block.c: New file.
9008 * block.h: New file.
9009
9010 2003-02-19 Theodore A. Roth <troth@openavr.org>
9011
9012 * avr-tdep.c (avr_extract_return_value): Remove function.
9013 (avr_store_return_value): Remove function.
9014 (avr_extract_struct_value_address): Remove function.
9015 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9016
9017 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9018
9019 * rs6000-tdep.c: Include "gdb_assert.h".
9020 (registers_e500): Add "acc" and "spefscr".
9021 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9022 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9023 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9024 really is "r0".
9025 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9026
9027 2003-02-18 Keith Seitz <keiths@redhat.com>
9028
9029 * Makefile.in: Add gdbtk-interps.c.
9030
9031 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9032
9033 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9034 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9035
9036 2003-02-18 Andrew Cagney <cagney@redhat.com>
9037
9038 * symtab.h (struct objfile): Add opaque declaration.
9039
9040 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9041
9042 From Jim Ingham <jingham@apple.com>:
9043 * dbxread.c (process_one_symbol): Use last_function_start rather
9044 than function_start_offset to find the real beginning of the
9045 current function. The latter is just the text section offset on
9046 some systems, the former is always the real function start.
9047
9048 2003-02-17 Andrew Cagney <cagney@redhat.com>
9049
9050 * configure.in: Revert ${target} != ${host}.
9051
9052 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9053
9054 * configure.in (Makefile): Use the test ${target} != ${host},
9055 instead of the absence of the "nm.h" file, to determine of the
9056 configuration non-native.
9057 * configure: Regenerate.
9058
9059 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9060
9061 From Brian Ford <ford@vss.fsi.com>
9062
9063 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9064 conditionalize tui_active test.
9065 (lookup_cmd_1): Ditto.
9066
9067 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9068
9069 * configure.in: Add check for _etext.
9070 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9071 available.
9072 * config.in, configure: regenerated.
9073
9074 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9075
9076 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9077
9078 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9079
9080 * main.c (tui_version): Delete variable.
9081 (captured_main): When --tui, set interpreter_p to "tui" instead of
9082 enabling tui_version.
9083 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9084 tui_version.
9085 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9086 * cli/cli-cmds.c (disassemble_command): Ditto.
9087 * defs.h (tui_version): Delete declaration.
9088 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9089 (tui-interp.o): Add rules.
9090 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9091
9092 2003-02-14 Christopher Faylor <cgf@redhat.com>
9093
9094 * win32-nat.c (register_loaded_dll): Correctly set address range for
9095 just-loaded dll.
9096
9097 2003-02-12 Jason Molenda (jmolenda@apple.com)
9098
9099 * symmisc.c (print_objfile_statistics): Include information about
9100 the number of psymtabs and symtabs in each object file.
9101
9102 2003-02-13 Keith R Seitz <keiths@redhat.com>
9103
9104 * main.h (struct captured_main_args): Add interpreter_p.
9105 * main.c (captured_main): Initialize interpreter_p from context.
9106 * gdb.c (main): Set interpreter_p argument.
9107 * Makefile.in (gdb.o): Add dependency for interps.h.
9108
9109 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9110
9111 * event-top.c (cli_command_loop): Delete declaration.
9112 (_initialize_event_loop): Delete function setting event_loop_hook.
9113 * event-top.h (cli_command_loop): Declare. Update copyright.
9114 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9115 * interps.c (current_interp_command_loop): When event_loop_p, call
9116 cli_command_loop.
9117
9118 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9119
9120 * interps.h (interp_command_loop_ftype): Change return type to
9121 void.
9122
9123 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9124
9125 * x86-64-tdep.c (x86_64_extract_return_value)
9126 (x86_64_store_return_value): Use regcache instead of regbuf.
9127 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9128 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9129
9130 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9131
9132 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9133 * aclocal.m4: Regenerate.
9134 * configure: Regenerate.
9135
9136 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9137 TCL_LD_SEARCH_FLAGS.
9138
9139 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9140
9141 * dwarf2cfi.c: Reindented.
9142
9143 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9144
9145 * interps.c (clear_interpreter_hooks): Convert function definition
9146 to ISO C.
9147
9148 2003-02-07 David Carlton <carlton@math.stanford.edu>
9149
9150 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9151
9152 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9153
9154 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9155 (struct type): ...to here.
9156 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9157 field.
9158 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9159 (replace_type): Set length on all type variants for a given type.
9160
9161 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9162
9163 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9164 <sys/stat.h>.
9165 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9166
9167 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9168
9169 * Makefile.in (symm-nat.o): Update dependencies.
9170 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9171 (lynx-nat.o, ia64-linux-nat.): Ditto.
9172 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9173 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9174 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9175
9176 * Makefile.in (inflow_h): Define.
9177 (procfs.o, inflow.o, procfs.o): Update dependencies.
9178 * inftarg.c (child_stop): Delete extern declaration of
9179 inferior_process_group. Include "inflow.h".
9180 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9181 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9182 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9183 (our_process_group, inferior_process_group): Extern declarations.
9184
9185 * procfs.c: Include "gdb_assert.h".
9186
9187 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9188 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9189 * jv-typeprint.c (java_type_print_base): Ditto.
9190 * typeprint.c (typedef_print): Eliminate STREQ.
9191 * cli/cli-script.c (define_command, define_command): Ditto.
9192 * main.c (captured_main): Ditto.
9193 * values.c (lookup_internalvar): Ditto.
9194 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9195 within `if' conditional.
9196 * linespec.c (decode_line_2): Ditto.
9197 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9198 (bfd_openw_with_cleanup): Ditto.
9199
9200 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9201
9202 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9203 legacy_extract_return_value and store_return_value to
9204 legacy_return_value.
9205
9206 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9207
9208 * win32-nat.c (get_relocated_section_addrs): New function. Find
9209 section load addresses for symbol handling in relocated DLLs.
9210 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9211
9212 2003-02-05 Fred Fish <fnf@intrinsity.com>
9213
9214 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9215 '=' and '!='.
9216 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9217 with '&' and '=='.
9218 (angel_RDI_info): Ditto.
9219 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9220 with '&' and '!='.
9221 (threads_continue_all_with_signals): Ditto.
9222
9223 2003-02-05 Jim Ingham <jingham@apple.com>
9224 Keith Seitz <keiths@redhat.com>
9225 Elena Zannoni <ezannoni@redhat.com>
9226 Andrew Cagney <ac131313@redhat.com>
9227
9228 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9229 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9230 (SUBDIR_MI_OBS): Add "mi-interp.o".
9231 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9232 (SFILES): Add "interps.c".
9233 (COMMON_OBS): Add "interps.o".
9234 (interps_h, mi_main_h): Define.
9235 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9236 (mi-main.o, main.o, event-top.o): Update dependencies.
9237 * cli/cli-interp.c: New file.
9238 * interps.h, interps.c: New files.
9239 * top.c: (gdb_init): Don't install the default interpreter, handed
9240 by captured_main.
9241 * main.c: Include "interps.h".
9242 (interpreter_p): Note that it should malloc'ed.
9243 (captured_command_loop): Call current_interp_command_loop.
9244 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9245 xfree and xstrdup when updating interpreter_p. Install the
9246 default interpreter. Add hack to stop mi1's copyright notice
9247 being encoded.
9248 * event-top.h (gdb_setup_readline): Declare.
9249 (gdb_disable_readline): Declare.
9250 * event-top.c: Include "interps.h".
9251 (display_gdb_prompt): Call current_interp_display_prompt_p.
9252 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9253 gdb_stdlog, and gdb_stdtarg.
9254 (_initialize_event_loop): Don't call gdb_setup_readline.
9255 * cli-out.c (cli_out_set_stream): New function.
9256 * cli-out.h (cli_out_set_stream): Declare.
9257
9258 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9259
9260 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9261 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9262 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9263 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9264 config/i386/i386v42mp.mt: Removed.
9265
9266 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9267
9268 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9269 GDB_OSABI_SOLARIS.
9270
9271 2003-02-05 Michael Chastain <mec@shout.net>
9272
9273 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9274 2.12.1 and earlier versions.
9275
9276 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9277
9278 Remove orphaned hosts, targets and files.
9279 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9280 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9281 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9282 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9283 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9284 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9285 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9286 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9287 * config/sparc/tm-sp64sim.h: Delete.
9288 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9289 hosts.
9290 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9291 mips*-dec-mach3* targets.
9292
9293 2003-02-04 Michael Chastain <mec@shout.net>
9294
9295 * NEWS: Fix typo: sepcifying -> specifying.
9296
9297 2003-02-04 Michael Chastain <mec@shout.net>
9298
9299 * dwarfread.c: Add documentation on the state of dwarf-1,
9300 looking towards obsoletion.
9301
9302 2003-02-03 Michael Chastain <mec@shout.net>
9303
9304 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9305 gdb/testsuite/gdb.c++/pr-1023.exp.
9306
9307 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9308
9309 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9310 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9311
9312 * utils.c (init_page_info): Delete reference to MPW in comments.
9313 * main.c (captured_main): Delete #ifdef MPW.
9314
9315 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9316
9317 * NEWS: Note that the m32r-*-elf* is obsolete.
9318 * monitor.c (monitor_expect): Obsolete reference to m32r.
9319 * configure.tgt: Mark m32r-*-elf* as obsolete.
9320 * MAINTAINERS: Mark m32k as obsolete.
9321 * m32r-rom.c: Obsolete file.
9322 * config/m32r/m32r.mt: Obsolete file.
9323 * config/m32r/tm-m32r.h: Obsolete file.
9324 * m32r-stub.c: Obsolete file.
9325 * m32r-tdep.c: Obsolete file.
9326
9327 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9328
9329 * NEWS: Mention that the z8k-zilog-none is obsolete.
9330 * MAINTAINERS: Mark z8k as obsolete.
9331 * configure.tgt: Obsolete the z8k-*-coff* target.
9332 * config/z8k/z8k.mt: Obsolete file.
9333 * config/z8k/tm-z8k.h: Obsolete file.
9334 * z8k-tdep.c: Obsolete file.
9335
9336 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9337
9338 * NEWS: Mention that the mn10200-elf is obsolete.
9339 * configure.tgt: Obsolete mn10200-*-* target.
9340 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9341 mention that the mn10200 is obsolete.
9342 * breakpoint.h: Ditto.
9343 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9344 * config/mn10200/mn10200.mt: Obsolete file.
9345 * config/mn10200/tm-mn10200.h: Obsolete file.
9346 * mn10200-tdep.c: Obsolete file.
9347
9348 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9349
9350 * MAINTAINERS: Mark h8500 as obsolete.
9351 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9352 * findvar.c (value_from_register): Ditto.
9353 * h8500-tdep.c: Mark file as obsolete.
9354 * config/h8500/h8500.mt: Ditto.
9355 * config/h8500/tm-h8500.h: Ditto.
9356 * NEWS: Mention that h8500 is obsolete.
9357
9358 2003-02-04 David Carlton <carlton@math.stanford.edu>
9359
9360 * objfiles.c (allocate_objfile): Always set name. Add comment at
9361 start of function.
9362 * jv-lang.c (get_dynamics_objfile): Add comment.
9363
9364 2003-02-04 David Carlton <carlton@math.stanford.edu>
9365
9366 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9367 * printcmd.c (build_address_symbolic): Replace uses of
9368 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9369 SYMBOL_NAME, and asm_demangle.
9370 Update copyright.
9371
9372 2003-02-04 David Carlton <carlton@math.stanford.edu>
9373
9374 * linespec.c (decode_compound): Extract code into
9375 lookup_prefix_sym.
9376 (lookup_prefix_sym): New function.
9377
9378 2003-02-04 David Carlton <carlton@math.stanford.edu>
9379
9380 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9381 FLOAT_COERCION_BADNESS.
9382 * gdbtypes.c (rank_one_type): Replace all uses of
9383 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9384
9385 2003-02-04 Jim Blandy <jimb@redhat.com>
9386
9387 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9388 section, let dwarf_macinfo_section point to it, not
9389 dwarf_loc_section.
9390
9391 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9392
9393 Pointed out by Anton Blanchard <anton@samba.org>.
9394 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9395 (ppc_linux_at_sigtramp_return_path): Use it.
9396
9397 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9398
9399 * defs.h (streq): Add prototype.
9400 * utils.c (streq): New function.
9401
9402 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9403 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9404 * mdebugread.c (new_symbol): Likewise.
9405 * stabsread.c (define_symbol): Likewise.
9406 * coffread.c (process_coff_symbol): Likewise.
9407 * dwarfread.c (new_symbol): Likewise.
9408
9409 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9410 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9411 here.
9412 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9413 SYMBOL_INIT_DEMANGLED_NAME.
9414 * objfiles.c: Include "hashtab.h".
9415 (allocate_objfile): Call htab_set_functions_ex for the
9416 demangled_names_hash.
9417 (free_objfile): Call htab_delete for the demangled_names_hash.
9418 * objfiles.h (struct htab): Add declaration.
9419 (struct objfile): Add demangled_names_hash.
9420 * symfile.c: Include "hashtab.h".
9421 (reread_symbols): Call htab_delete for the demangled_names_hash.
9422 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9423 SYMBOL_NAME in the bcache.
9424 * symtab.c: Include "hashtab.h". Update comments.
9425 (create_demangled_names_hash, symbol_set_names): New functions.
9426 (symbol_find_demangled_name): New function, broken out from
9427 symbol_init_demangled_names.
9428 (symbol_init_demangled_names): Use it.
9429 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9430 (SYMBOL_SET_NAMES): New macro.
9431 (symbol_set_names): Add prototype.
9432
9433 2003-02-03 Jim Blandy <jimb@redhat.com>
9434
9435 Use a single, consistent representation for an empty minimal
9436 symbol table in an objfile.
9437 * objfiles.c (terminate_minimal_symbol_table): New function.
9438 (allocate_objfile): Call it.
9439 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9440 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9441 non-NULL.
9442 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9443 objfile has minimal symbols, compare minimal_symbol_count to zero,
9444 instead of comparing msymbols with NULL.
9445 * objfiles.c (have_minimal_symbols): Same.
9446 * solib-sunos.c (solib_add_common_symbols): Call
9447 terminate_minimal_symbol_table.
9448 * symfile.c (reread_symbols): Same.
9449
9450 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9451
9452 * s390-tdep.c (s390_address_class_type_flags)
9453 (s390_address_class_type_flags_to_name)
9454 (s390_address_class_name_to_type_flags): New functions.
9455 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9456 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9457
9458 2003-02-03 Michael Snyder <msnyder@redhat.com>
9459
9460 * arm-tdep.c: Fix spell-o in comment.
9461
9462 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9463
9464 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9465 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9466 error messages to contain BFD filename.
9467
9468 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9469
9470 Fix PR gdb/742 gdb/743 gdb/877
9471 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9472 (do_mixed_source_and_assembly): Use
9473 make_cleanup_ui_out_tuple_begin_end and
9474 make_cleanup_ui_out_tuple_begin_end.
9475 (do_mixed_source_and_assembly): Ditto.
9476 * thread.c (do_captured_list_thread_ids): Ditto.
9477 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9478 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9479 ui_out_tuple_end): Delete prototypes.
9480 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9481 ui_out_list_end, ui_out_tuple_end): Delete.
9482
9483 From Kevin Buettner <kevinb@redhat.com>:
9484 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9485 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9486 (do_cleanup_table_end): New functions.
9487 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9488 Use cleanups to invoke_ui_out_tuple_end().
9489 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9490 * cli/cli-setshow.c (cmd_show_list): Use
9491 make_cleanup_ui_out_tuple_begin_end.
9492
9493 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9494
9495 * frame.c (frame_unwind_register): New function.
9496 (frame_unwind_unsigned_register): Use.
9497 (frame_unwind_signed_register): Use.
9498 (frame_read_register): New function.
9499 * frame.h (frame_unwind_register): Declare.
9500 (frame_read_register): Declare.
9501
9502 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9503 and frame_unwind_register instead of read_memory, write_register
9504 and deprecated_write_register_bytes.
9505
9506 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9507
9508 * frame.h: Note that namelen can be negative.
9509 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9510 NAME's length.
9511
9512 * NEWS: Mention that the d10v's `regs' command is deprecated.
9513 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9514 (d10v_print_registers_info): New function.
9515 (show_regs): Call d10v_print_registers_info.
9516 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9517
9518 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9519
9520 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9521 lost in the previous patch.
9522
9523 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9524
9525 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9526 * stack.c (print_frame_info_base): Output complete FRAME tuple
9527 for synthesized frames.
9528
9529 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9530
9531 * mips-nat.c (zerobuf): Delete.
9532 (fetch_inferior_registers): Alloc local zerobuf.
9533 (fetch_core_registers): Alloc local zerobuf.
9534 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9535 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9536 * thread-db.c (thread_db_store_registers): Ditto.
9537 * sh-tdep.c (sh_do_register): Ditto.
9538 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9539 * remote-sim.c (gdbsim_store_register): Ditto.
9540 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9541 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9542 * monitor.c (monitor_supply_register): Ditto.
9543 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9544 * mips-nat.c (fetch_inferior_registers): Ditto.
9545 * m68klinux-nat.c (fetch_register): Ditto.
9546 * lynx-nat.c (fetch_inferior_registers): Ditto.
9547 (fetch_inferior_registers): Ditto.
9548 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9549 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9550 (hpux_thread_store_registers): Ditto.
9551 * hppah-nat.c (fetch_register): Ditto.
9552 * hppab-nat.c (fetch_register): Ditto.
9553 * hppa-tdep.c (pa_register_look_aside): Ditto.
9554 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9555 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9556
9557 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9558
9559 * gdbarch.sh: Explictly specify all method levels. When a
9560 variable with an empty level, provide a non-multi-arch default.
9561 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9562 * gdbarch.h: Re-generate.
9563 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9564 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9565
9566 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9567
9568 * defs.h (host_pointer_to_address): Delete declaration.
9569 (address_to_host_pointer): Delete declaration.
9570 * utils.c (host_pointer_to_address): Delete function.
9571 (address_to_host_pointer): Delete function.
9572 * procfs.c (procfs_address_to_host_pointer): New function.
9573 * procfs.c (proc_set_watchpoint): Use.
9574 (procfs_can_use_hw_breakpoint): Update comments.
9575 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9576 (som_solib_add): Use.
9577 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9578 * hppa-tdep.c (unwind_command): Use.
9579
9580 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9581
9582 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9583 strlen d_name.
9584
9585 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9586 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9587 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9588 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9589 (define_symbol): Update.
9590 * symfile.c (generic_load): Remove references to nindy.
9591 * symtab.c: Remove references to nindy.
9592
9593 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9594
9595 * infcmd.c (print_float_info): Delete code conditional on
9596 FLOAT_INFO.
9597 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9598 * config/m68k/nm-apollo68b.h: Ditto.
9599 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9600 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9601 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9602
9603 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9604
9605 * config/i386/tm-i386os9k.h: Removed.
9606
9607 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9608 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9609 they're identical to i[3456]86-*-sysv* now.
9610 * config/i386/i386v32.mh: Removed.
9611 * config/i386/xm-i386v32.h: Removed.
9612 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9613
9614 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9615
9616 * config/i386/i386dgux.mh: Removed.
9617 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9618
9619 * configure.in: Fix typo.
9620 * configure: Regenerated.
9621
9622 2003-01-31 David Carlton <carlton@math.stanford.edu>
9623
9624 * dwarf2read.c (dwarf2_locate_sections): Set
9625 dwarf_ranges_section.
9626
9627 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9628
9629 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9630 * utils.c: Update comments documenting legitimate uses of PTR.
9631
9632 * utils.c: Re-indent.
9633
9634 * config/djgpp/fnchange.lst: Delete nindy files.
9635 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9636 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9637 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9638 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9639 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9640 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9641 * Makefile.in (init.c): Remove nindy references.
9642 (saber_gdb): Delete rule.
9643 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9644 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9645 and a68v-nat.c.
9646 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9647 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9648 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9649 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9650 nindy-share/stop.h.
9651 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9652 * saber.suppress: Delete file.
9653
9654 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9655
9656 * dbxread.c (stabs_data): New static variable.
9657 (fill_symbuf): Support an in-memory buffer for stabs data.
9658 (stabs_seek): New function.
9659 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9660 (read_ofile_symtab): Use stabs_seek.
9661 (elfstab_build_psymtabs): Take an asection* instead of
9662 an offset and size. Relocate the stabs data if necessary.
9663 Save the section* for dbx_psymtab_to_symtab.
9664 * dwarf2read.c: Add section variables for each debug section.
9665 (dwarf2_locate_sections): Fill them in.
9666 (dwarf2_read_section): Take an asection* argument.
9667 Relocate the section contents if necessary.
9668 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9669 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9670 it to dwarf2_read_section.
9671 (dwarf2_build_frame_info): Update callers.
9672 * elfread.c (elf_symfile_read): Update call to
9673 elfstab_build_psymtabs.
9674 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9675 (DBX_STAB_SECTION): New macro.
9676 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9677 * symfile.c (symfile_dummy_outputs): New function.
9678 (symfile_relocate_debug_section): New function.
9679 * symfile.h (symfile_relocate_debug_section): Add prototype.
9680
9681 2003-01-31 Richard Henderson <rth@redhat.com>
9682
9683 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9684 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9685 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9686 * alpha-tdep.c (alpha_register_name): Add "unique".
9687 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9688 (ALPHA_UNIQUE_REGNUM): New.
9689 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9690
9691 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9692
9693 * README: Remove reference to Ericsson 1800 monitor.
9694 * Makefile.in (remote-es.o): Delete rule.
9695 (ALLDEPFILES): Delete remote-es.c.
9696 * remote-es.c: Delete file.
9697 * config/m68k/es1800.mt: Delete file.
9698 * config/djgpp/fnchange.lst: Update.
9699 * configure.tgt: Delete m68*-ericsson-* target.
9700
9701 2003-01-31 Adam Fedor <fedor@gnu.org>
9702
9703 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9704 Remove duplicate/shadowing variable of same name.
9705
9706 2003-01-30 Jim Blandy <jimb@redhat.com>
9707
9708 * symfile.c (find_separate_debug_file): Assert that the objfile's
9709 directory name we compute ends with a slash, and then assume that
9710 that's so everywhere we use it.
9711
9712 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9713
9714 * valops.c (value_assign): Flush frame cache after stores to memory
9715 also.
9716
9717 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9718
9719 * Makefile.in (mon960-rom.o): Delete rule.
9720 * mon960-rom.c: Delete file.
9721
9722 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9723
9724 * d10v-tdep.c: Include "frame-unwind.h".
9725 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9726 list.
9727 (next_addr, uses_frame): Delete.
9728 (struct d10v_unwind_cache): Define.
9729 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9730 Use info instead of next_addr and uses_frame globals.
9731 (d10v_frame_init_saved_regs): Delete function.
9732 (d10v_init_extra_frame_info): Delete function.
9733 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9734 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9735 init_frame_pc or frame_saved_pc.
9736 (d10v_pop_frame): Delete function.
9737 (do_d10v_pop_frame): Delete function.
9738 (d10v_frame_chain): Delete function.
9739 (d10v_frame_chain_valid): Delete function.
9740 (d10v_frame_pc_unwind): New function.
9741 (d10v_frame_id_unwind): New function.
9742 (saved_regs_unwinder): New function.
9743 (d10v_frame_register_unwind): New function.
9744 (d10v_frame_pop): New function.
9745 (d10v_frame_unwind): New variable.
9746 (d10v_frame_p): New function.
9747 (d10v_frame_saved_pc): Delete function.
9748 * Makefile.in (d10v-tdep.o): Update dependencies.
9749
9750 2003-01-30 J. Brobecker <brobecker@gnat.com>
9751
9752 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9753 causing some regressions due to a change in the default value
9754 for this macro.
9755
9756 2003-01-29 Richard Henderson <rth@redhat.com>
9757 Elena Zannoni <ezannoni@redhat.com>
9758 Daniel Jacobowitz <drow@mvista.com>
9759
9760 Fix PR gdb/961.
9761 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9762 variables.
9763 (RANGES_SECTION): New.
9764 (dwarf_ranges_buffer): New variable.
9765 (struct comp_unit_head): Add member "die".
9766 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9767 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9768 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9769 (dwarf2_locate_sections): Likewise.
9770 (dwarf2_build_psymtabs): Read .debug_ranges.
9771 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9772 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9773 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9774 Look for DW_AT_ranges and return the bounding box.
9775
9776 2003-01-29 Brian Ford <ford@vss.fsi.com>
9777
9778 * win32-nat.c (cygwin_pid): Removed as unused.
9779 (child_attach): Try fall back to Cygwin pid.
9780
9781 2003-01-29 Jim Blandy <jimb@redhat.com>
9782
9783 * objfiles.h (struct objfile): Doc fix.
9784
9785 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9786
9787 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9788 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9789 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9790 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9791 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9792 (FRAME_SAVED_PC): Change to a function with predicate.
9793 * gdbarch.h, gdbarch.c: Re-generate.
9794
9795 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9796
9797 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9798
9799 * complaints.c (complain): Delete function.
9800 * complaints.h (struct deprecated_complaint): Delete definition.
9801 (complain): Delete declaration.
9802
9803 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9804
9805 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9806 dummy frames.
9807
9808 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9809
9810 * sentinel-frame.h, sentinel-frame.c: New files.
9811 * Makefile.in (frame.o): Update dependencies.
9812 (SFILES): Add sentinel-frame.c.
9813 (sentinel_frame_h): Define.
9814 (COMMON_OBS): Add sentinel-frame.o.
9815 (sentinel-frame.o): Specify dependencies.
9816 * frame.c: Include "sentinel-frame.h".
9817 (frame_register_unwind): Rewrite assuming that there is always a a
9818 ->next frame.
9819 (frame_register, generic_unwind_get_saved_register): Ditto.
9820 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9821 (create_sentinel_frame, unwind_to_current_frame): New functions.
9822 (get_current_frame): Rewrite using create_sentinel_frame and
9823 unwind_to_current_frame. When possible, always create a frame.
9824 (create_new_frame): Set next to the sentinel frame.
9825 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9826 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9827 ID cache when necessary.
9828 (frame_saved_regs_id_unwind): Use frame_relative_level.
9829 (deprecated_generic_get_saved_register): Use frame_relative_level,
9830 get_frame_saved_regs, get_frame_pc, get_frame_base and
9831 get_next_frame.
9832 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9833 frame_register.
9834
9835 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9836
9837 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9838
9839 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9840
9841 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9842 (maintenance_set_profile_cmd): Use error () instead of warning ().
9843
9844 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9845
9846 * configure.in: Check that -pg works if using --enable-profiling.
9847 Check for monstartup and _mcleanup regardless of --enable-profiling.
9848 * maint.c: Check for monstartup and _mcleanup before using them.
9849 * config.in: Regenerated.
9850 * configure: Regenerated.
9851
9852 2003-01-24 Nick Clifton <nickc@redhat.com>
9853
9854 * Add sh2e support:
9855
9856 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9857
9858 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9859 (sh2e_show_regs): New.
9860 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9861 * config/sh/tm-sh.h: Added sh2e to comments.
9862
9863 2003-01-23 Jim Blandy <jimb@redhat.com>
9864
9865 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9866 symbols found)" message here; we haven't checked for a separate
9867 debug info file yet, so we don't know yet.
9868 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9869 we've looked everywhere. Also, there's no need to print a special
9870 message when we're loading the separate debug info file: the one
9871 symbol_file_add prints is fine.
9872
9873 2003-01-23 Alexander Larsson <alexl@redhat.com>
9874 Jim Blandy <jimb@redhat.com>
9875
9876 Add support for executables whose debug info has been separated
9877 out into a separate file, leaving only a link behind.
9878 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9879 and separate_debug_objfile_backlink.
9880 (put_objfile_before): New declaration.
9881 * symfile.c: #include "filenames.h".
9882 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9883 debug info in a separate file, read that, too. Save the addrs
9884 argument, so we can use it again to read the separated debug info;
9885 syms_from_objfile modifies the table we pass it.
9886 (reread_symbols): After re-reading an objfile, call
9887 reread_separate_symbols to refresh its separate debug info
9888 objfile, if it has one.
9889 (reread_separate_symbols, find_separate_debug_file,
9890 get_debug_link_info, separate_debug_file_exists): New functions.
9891 (debug_file_directory): New global var.
9892 (_initialize_symfile): Initialize debug_file_directory, and
9893 provide the new `set debug-file-directory' command to let the user
9894 change it.
9895 * objfiles.c (free_objfile): If this objfile has its debug info in
9896 a separate objfile, free that one too. If this is itself a
9897 separate debug info objfile, clear our parent's backlink.
9898 (put_objfile_before): New function.
9899 * utils.c (gnu_debuglink_crc32): New function.
9900 * defs.h (gnu_debuglink_crc32): New declaration.
9901 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9902 * configure.in: Handle --with-separate-debug-dir config option.
9903 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9904 * acconfig.h (DEBUGDIR): New macro.
9905 * configure, aclocal.m4, config.in: Regenerated.
9906
9907 2003-01-22 Jim Blandy <jimb@redhat.com>
9908
9909 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9910 like the old symbol_file_add, but taking new arguments: you can
9911 now pass in either a `struct section_addr_info' list to say where
9912 each section is loaded, or a `struct section_offsets' table. Pass
9913 these new arguments through to syms_from_objfile as appropriate.
9914 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9915 with the appropriate quiescent values for the new arguments.
9916
9917 * symfile.c: #include "gdb_assert.h".
9918 (syms_from_objfile): Add the ability to pass in a section offset
9919 table directly, as an alternative to the section_addr_info table.
9920 Document arguments better.
9921 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9922 * symfile.h (syms_from_objfile): Update declaration.
9923 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9924 syms_from_objfile.
9925 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9926
9927 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9928
9929 Original patch by Tom Tromey <tromey@cygnus.com> and
9930 Jason Molenda <jmolenda@apple.com>.
9931 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9932 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9933 * NEWS: Mention profiling.
9934 * configure.in (--enable-gdbtk): Fix typo.
9935 (--enable-profiling): New. Set PROFILE_CFLAGS.
9936 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9937 Fill in function.
9938 (profiling_state): New variable.
9939 (mcleanup_wrapper): New function.
9940 (_initialize_maint): Remove NOTYET, fix call to
9941 add_setshow_boolean_cmd for "maint set profile".
9942 * configure: Regenerated.
9943
9944 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9945
9946 * Makefile.in (install-gdbtk): Install PNG images too.
9947
9948 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9949
9950 * exec.c (text_start): Delete global variable.
9951 (exec_file_attach): Make text_start local to the function.
9952 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9953 * valops.c (hand_function_call): Delete code that handles
9954 BEFORE_TEXT_END and AFTER_TEXT_END.
9955 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9956 of CALL_DUMMY_LOCATION.
9957 * gdbarch.c: Regenerate.
9958 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9959 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9960 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9961 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9962 (text_end): Delete extern declaration.
9963
9964 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9965
9966 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9967 * blockframe.c (backtrace_below_main): Move to "frame.c".
9968 (frame_chain_valid): Delete check for backtrace_below_main.
9969 (_initialize_blockframe): Delete initialization, move ``set
9970 backtrace-below-main'' command to "frame.c".
9971 (do_flush_frames_sfunc): Delete function.
9972 * frame.c: Include "command.h" and "gdbcmd.h".
9973 (frame_type_from_pc): New function.
9974 (create_new_frame): Use frame_type_from_pc.
9975 (legacy_get_prev_frame): New function.
9976 (get_prev_frame): Rewrite. When an old style frame, call
9977 legacy_get_prev_frame. Otherwize, unwind the PC first.
9978 (_initialize_frame): Add ``set backtrace-below-main'' command.
9979 * Makefile.in (frame.o): Update dependencies.
9980
9981 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9982
9983 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9984 DEPRECATED_REGISTERS_INFO.
9985
9986 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9987
9988 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9989 Maintainers'. Update `Various Maintainers'.
9990
9991 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9992
9993 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9994 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9995 Suppress actual parameters when `-'.
9996 * gdbarch.h, gdbarch.c: Regenerate.
9997
9998 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9999
10000 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10001 code handling dummy frames.
10002
10003 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10004
10005 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10006 (struct frame_unwind): Add field pop.
10007 * frame.h (frame_pop): Declare.
10008 * frame.c (frame_saved_regs_pop): New function.
10009 (trad_frame_unwinder): Add frame_saved_regs_pop.
10010 (frame_pop): New function.
10011 * dummy-frame.c (dummy_frame_pop): New function.
10012 (discard_innermost_dummy): New function.
10013 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10014 (dummy_frame_unwind): Add dummy_frame_pop.
10015 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10016 * valops.c (hand_function_call): Ditto.
10017 * stack.c (return_command): Ditto.
10018
10019 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10020
10021 * cris-tdep.c: Fix function declaration indentation.
10022 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10023 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10024 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10025 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10026 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10027 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10028
10029 2003-01-18 Michael Chastain <mec@shout.net>
10030
10031 * README (Unpacking and Installation -- quick overview):
10032 Warn against ".../gdb-5.3/gdb/configure".
10033
10034 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10035
10036 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10037 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10038 (struct frame_unwind): Declare opaque.
10039 (dummy_frame_p): Declare function.
10040 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10041 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10042 * dummy-frame.c: Include "frame-unwind.h".
10043 (dummy_frame_p): New function.
10044 (dummy_frame_unwind): New variable.
10045 * frame.c: Include "frame-unwind.h".
10046 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10047 to use the new unwind field.
10048 (set_unwind_by_pc): Delete function.
10049 (create_new_frame, get_prev_frame): Set unwind field using
10050 frame_unwind_find_by_pc.
10051 (trad_frame_unwind, trad_frame_unwinder): New variables.
10052 * frame.h (trad_frame_unwind): Declare variable.
10053 (frame_id_unwind_ftype): Delete declaration.
10054 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10055 (struct frame_unwind): Declare opaque.
10056 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10057 register_unwind with a single unwind pointer.
10058 * frame-unwind.h, frame-unwind.c: New files.
10059 * Makefile.in (SFILES): Add frame-unwind.c.
10060 (frame_unwind_h): Define.
10061 (COMMON_OBS): Add frame-unwind.o.
10062 (frame-unwind.o): Specify dependencies.
10063 (frame.o, dummy-frame.o): Update dependencies.
10064
10065 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10066
10067 * ada-valprint.c: Eliminate PTR.
10068 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10069 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10070 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10071 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10072 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10073 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10074 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10075
10076 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10077
10078 * main.c (captured_main): Don't use PTR.
10079 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10080 * gdbtypes.c (lookup_primitive_typename): Ditto.
10081 (lookup_struct_elt_type): Ditto.
10082 * f-valprint.c (info_common_command): Ditto.
10083 (list_all_visible_commons): Ditto.
10084 * jv-typeprint.c (java_type_print_base): Ditto.
10085
10086 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10087 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10088 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10089 i386-interix-nat.c and i386-interix-tdep.c. Rename
10090 m68klinux-nat.c and m68klinux-tdep.c. Rename
10091 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10092 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10093 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10094 * main.c (captured_main): Use xfree, not free.
10095
10096 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10097
10098 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10099 ID back using a parameter.
10100 * frame.c (frame_id_unwind): Update call.
10101 (frame_saved_regs_id_unwind): Update.
10102 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10103 * dummy-frame.h (struct frame_id): Add opaque declaration.
10104 (dummy_frame_id_unwind): Update declaration.
10105
10106 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10107
10108 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10109
10110 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10111
10112 * MAINTAINERS (Stephen P. Smith): Updated email address.
10113
10114 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10115
10116 Fix PR gdb/898
10117 * breakpoint.c (until_break_command): Add new argument. Use it to
10118 decide whether to stop only at the current frame or not.
10119 * breakpoint.h (until_break_command): Update prototype.
10120 * infcmd.c (until_command): Add new argument to until_break_command
10121 call.
10122 (advance_command): New function.
10123 (_initialize_infcmd): Update help string for 'until' command.
10124 Add new 'advance' command.
10125
10126 2003-01-14 David Carlton <carlton@math.stanford.edu>
10127
10128 * linespec.c (decode_line_1): Normalize comments.
10129 (set_flags): Ditto.
10130 (locate_first_half): Ditto.
10131 (decode_compound): Ditto.
10132 (symtab_from_filename): Ditto.
10133 (decode_all_digits): Ditto.
10134 (decode_dollar): Ditto.
10135 (find_methods): Ditto.
10136 (find_toplevel_char): Ditto.
10137
10138 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10139
10140 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10141 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10142 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10143 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10144 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10145 * language.c, language.h, m32r-tdep.c: Update copyright.
10146 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10147 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10148 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10149 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10150 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10151 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10152
10153 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10154
10155 * stabsread.h (process_later, resolve_cfront_continuation):
10156 Obsolete.
10157 Update copyright years.
10158 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10159 Update copyright year.
10160 * dbxread.c(struct cont_elem): Obsolete.
10161 (process_later, process_now): Obsolete functions.
10162 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10163 Update copyright year.
10164 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10165 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10166 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10167 (parse_partial_symbols): Obsolete cfront support.
10168 * stabsread.c
10169 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10170 macros.
10171 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10172 read_cfront_baseclasses, read_cfront_member_functions,
10173 resolve_cfront_continuation,read_cfront_static_fields,
10174 copy_cfront_struct_fields): Obsolete functions.
10175 (define_symbol, read_one_struct_field): Obsolete cfront support.
10176 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10177 Update Copyright year.
10178
10179 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10180
10181 * stack.c (print_frame_info, print_stack_frame_base_stub,
10182 print_stack_frame_base, show_and_print_stack_frame_stub,
10183 show_and_print_stack_frame, print_only_stack_frame_stub,
10184 print_only_stack_frame): Delete functions.
10185 (print_stack_frame_stub): Call print_frame_info instead of
10186 print_frame_info_base.
10187 (print_frame_info_base): Rename to print_frame_info.
10188 (backtrace_command_1): Call print_frame_info, instead of
10189 print_frame_info_base.
10190 (current_frame_command): Call print_stack_frame, instead of
10191 print_only_stack_frame.
10192 (frame_command): Call print_stack_frame, instead of
10193 show_and_print_stack_frame.
10194 (up_command): Ditto.
10195 (down_command): Ditto.
10196 * frame.h (print_only_stack_frame): Delete prototype.
10197 * infrun.c (normal_stop): Call print_stack_frame, instead of
10198 show_and_print_stack_frame.
10199 * thread.c (info_threads_command): Call print_stack_frame, instead
10200 of print_only_stack_frame.
10201
10202 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10203
10204 * README (Graphical interface to GDB): Update URL. Point at
10205 gdb/links/.
10206
10207 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10208 version match.
10209
10210 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10211
10212 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10213 lines.
10214
10215 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10216
10217 * thread-db.c (attach_thread): Prototype.
10218 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10219 thread information (ti), and valid flags (th_valid, ti_valid).
10220 (attach_thread): Move target_pid_to_str call to after the thread
10221 is added to GDB's list. Initialize the cache.
10222 (thread_get_info_callback, thread_db_map_id2thr)
10223 (thread_db_get_info): New functions.
10224 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10225 (thread_db_store_registers, thread_db_thread_alive)
10226 (thread_db_get_thread_local_address): Use them.
10227 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10228 of calling error() for threads in unknown state.
10229
10230 (clear_lwpid_callback): New function.
10231 (thread_db_resume): Use it to clear the cache.
10232
10233 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10234
10235 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10236 (resume_callback): Remove dead code.
10237
10238 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10239
10240 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10241 predicate.
10242 * gdbarch.h, gdbarch.c: Regenerate.
10243 * stack.c (frame_info): Only initialize the saved registers when
10244 FRAME_INIT_SAVED_REGS_P.
10245 * frame.c (frame_saved_regs_register_unwind): Assert
10246 FRAME_INIT_SAVED_REGS_P.
10247 (deprecated_generic_get_saved_register): Ditto.
10248
10249 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10250
10251 * source.c (openp): Squelch warning about "filename".
10252
10253 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10254
10255 * source.c (openp): If the file does not exist don't necessarily
10256 search the path.
10257
10258 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10259
10260 Fix PR gdb/872.
10261 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10262 (integer_types_same_name_p): New function.
10263 (rank_one_type): Use it.
10264 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10265
10266 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10267
10268 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10269 variables.
10270 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10271 * configure.in: Add --with-sysroot.
10272 * configure: Regenerated.
10273 * main.c (gdb_sysroot): New variable.
10274 (captured_main): Initialize gdb_sysroot.
10275 * defs.h (gdb_sysroot): New extern declaration.
10276 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10277
10278 2003-01-12 Michael Chastain <mec@shout.net>
10279
10280 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10281
10282 2003-01-12 Michael Chastain <mec@shout.net>
10283
10284 * top.c (print_gdb_version): Bump copyright year to 2003.
10285
10286 2003-01-12 David Carlton <carlton@bactrian.org>
10287
10288 * linespec.c (symtab_from_filename): Rename variable 's' to
10289 'file_symtab'.
10290
10291 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10292
10293 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10294 dummy frame.
10295 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10296
10297 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10298
10299 * d10v-tdep.c: Include "gdb_assert.h".
10300 (d10v_store_return_value): Rewrite to match current interface.
10301 (d10v_extract_struct_value_address): Ditto.
10302 (d10v_extract_return_value): Ditto.
10303 (d10v_gdbarch_init): Set store_restore_value,
10304 extract_struct_value_address and extract_return_value.
10305
10306 2003-01-12 J. Brobecker <brobecker@gnat.com>
10307
10308 * hpread.c (set_namestring): New procedure replacing the
10309 SET_NAMESTRING macro.
10310 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10311 by calls to set_namestring.
10312
10313 2003-01-11 J. Brobecker <brobecker@gnat.com>
10314
10315 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10316 a compilation warning.
10317 (hpread_process_one_debug_symbol): Likewise.
10318
10319 2003-01-10 David Carlton <carlton@math.stanford.edu>
10320
10321 * linespec.c (decode_line_1): Rename variable 's' to
10322 'file_symtab'.
10323 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10324 (decode_dollar): Ditto.
10325 (decode_variable): Ditto.
10326 (symbol_found): Ditto.
10327
10328 2003-01-09 Michael Chastain <mec@shout.net>
10329
10330 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10331
10332 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10333
10334 * win32-nat.c (set_process_privilege): New function.
10335 (child_attach): Call set_process_privilege() to enable the
10336 SE_DEBUG_NAME user privilege if available in process token.
10337
10338 2003-01-10 J. Brobecker <brobecker@gnat.com>
10339
10340 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10341 compilation error in the previous revision.
10342
10343 2003-01-09 David Carlton <carlton@math.stanford.edu>
10344
10345 * linespec.c: Update copyright.
10346
10347 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10348
10349 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10350 than inferior_ptid.
10351 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10352
10353 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10354
10355 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10356 Update comments.
10357 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10358 (frame_saved_regs_zalloc): Update.
10359 (frame_saved_regs_register_unwind): Update.
10360 (create_new_frame): Update.
10361 (get_prev_frame): Update.
10362 (frame_extra_info_zalloc): Update.
10363 (deprecated_get_frame_saved_regs): Update.
10364 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10365 * cris-tdep.c: Update comment.
10366
10367 * somsolib.h: Fix function indentation.
10368 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10369 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10370 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10371 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10372 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10373
10374 * infrun.c (follow_fork): Use ISO C definition.
10375 * expprint.c (print_subexp): Use xfree instead of free.
10376 * charset.c: Include "gdb_string.h" instead of <string.h>.
10377 (register_iconv_charsets): Use ISO C definition.
10378 (host_charset, target_charset): Ditto.
10379 * Makefile.in (charset.o): Update dependencies.
10380 (mi-cmd-env.o): Update dependencies.
10381
10382 2003-01-08 Andrew Cagney <cagney@redhat.com>
10383
10384 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10385 get_frame_base.
10386
10387 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10388
10389 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10390 build directories. Save edited gdb output in Mbuild.log. If a
10391 build fails, remove any final GDB executable.
10392
10393 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10394
10395 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10396 replacing hex constants with function names and stripping leading
10397 file name directory prefixes.
10398
10399 2003-01-08 Andrew Cagney <cagney@redhat.com>
10400
10401 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10402 get_frame_base.
10403
10404 2003-01-08 David Carlton <carlton@math.stanford.edu>
10405
10406 * linespec.c (decode_line_1): Move code into decode_variable.
10407 (decode_variable): New function.
10408
10409 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10410
10411 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10412
10413 2003-01-08 Andrew Cagney <cagney@redhat.com>
10414
10415 * cris-tdep.c (cris_frame_init_saved_regs): Use
10416 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10417 saved_regs buffer.
10418 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10419 (sh64_nofp_frame_init_saved_regs): Ditto.
10420 (sh_fp_frame_init_saved_regs): Ditto.
10421 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10422 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10423 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10424 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10425
10426 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10427
10428 * minsyms.c (lookup_minimal_symbol): Update comment.
10429 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10430 (lookup_minimal_symbol_solib_trampoline): Likewise.
10431
10432 2003-01-08 Andrew Cagney <cagney@redhat.com>
10433
10434 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10435 frame_relative_level.
10436
10437 * alpha-tdep.c: Use get_frame_extra_info.
10438 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10439 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10440 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10441 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10442
10443 * alpha-tdep.c: Use get_next_frame.
10444 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10445 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10446 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10447 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10448 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10449 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10450 * xstormy16-tdep.c: Ditto.
10451
10452 2003-01-07 Andrew Cagney <cagney@redhat.com>
10453
10454 * alpha-tdep.c: Use get_frame_base.
10455 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10456 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10457 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10458 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10459 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10460 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10461 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10462 * config/sparc/tm-sparc.h: Ditto.
10463
10464 2003-01-07 Andrew Cagney <cagney@redhat.com>
10465
10466 * frame.c (deprecated_get_frame_context): New function.
10467 (deprecated_set_frame_context): New function.
10468 * frame.h (deprecated_get_frame_context): Declare.
10469 (deprecated_set_frame_context): Declare.
10470 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10471 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10472
10473 2003-01-07 Andrew Cagney <cagney@redhat.com>
10474
10475 * frame.c (deprecated_set_frame_next_hack): New function.
10476 (deprecated_set_frame_prev_hack): New function.
10477 * frame.h (deprecated_set_frame_next_hack): Declare.
10478 (deprecated_set_frame_prev_hack): Declare.
10479 * mcore-tdep.c (analyze_dummy_frame): Use
10480 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10481 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10482
10483 2003-01-07 David Carlton <carlton@math.stanford.edu>
10484
10485 * linespec.c (decode_line_1): Move code into decode_dollar.
10486 (decode_dollar): New function.
10487
10488 2003-01-07 Andrew Cagney <cagney@redhat.com>
10489
10490 * arm-tdep.c (arm_init_extra_frame_info): Use
10491 deprecated_update_frame_base_hack.
10492 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10493 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10494 (fix_frame_pointer): Ditto.
10495 (mn10300_analyze_prologue): Ditto.
10496
10497 2003-01-07 Andrew Cagney <cagney@redhat.com>
10498
10499 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10500 extra_info using frame_extra_info_zalloc.
10501 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10502 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10503 (sh64_init_extra_frame_info): Ditto.
10504 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10505 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10506 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10507 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10508 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10509 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10510 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10511 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10512 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10513 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10514 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10515 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10516
10517 * mn10300-tdep.c (analyze_dummy_frame): Use
10518 deprecated_set_frame_extra_info_hack.
10519 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10520
10521 2003-01-07 J. Brobecker <brobecker@gnat.com>
10522
10523 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10524 class is not scText. These do not define "real" procedures.
10525 (parse_partial_symbols): Likewise.
10526
10527 2003-01-06 Michael Snyder <msnyder@redhat.com>
10528
10529 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10530
10531 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10532
10533 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10534 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10535 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10536 deprecated_frame_xmalloc_with_cleanup.
10537 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10538 deprecated_frame_xmalloc.
10539 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10540 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10541
10542 2003-01-06 Andrew Cagney <cagney@redhat.com>
10543
10544 * x86-64-linux-tdep.c: Include "osabi.h".
10545 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10546
10547 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10548
10549 2003-01-06 Andrew Cagney <cagney@redhat.com>
10550
10551 * MAINTAINERS (Target Instruction Set Architectures): Update
10552 arm-elf. Can be built with -Werror, has been multiarched.
10553
10554 * value.h (unpack_long): Make buffer parameter constant.
10555 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10556 * scm-lang.h (scm_parse): Ditto.
10557 * defs.h (extract_typed_address, extract_address): Ditto.
10558 (extract_long_unsigned_integer): Ditto.
10559 * inferior.h (unsigned_pointer_to_address): Ditto.
10560 (signed_pointer_to_address): Ditto.
10561 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10562 * gdbarch.h, gdbarch.c: Regenerate.
10563 * findvar.c (extract_long_unsigned_integer): Update.
10564 (extract_address): Update.
10565 (extract_typed_address): Update.
10566 (unsigned_pointer_to_address): Update.
10567 * values.c (unpack_long): Update.
10568 (unpack_double): Update.
10569 (unpack_pointer): Update.
10570 (unpack_field_as_long): Update.
10571 * d10v-tdep.c (d10v_pointer_to_address): Update.
10572 * avr-tdep.c (avr_pointer_to_address): Update.
10573 * scm-lang.c (scm_unpack): Update.
10574 * findvar.c (signed_pointer_to_address): Update.
10575
10576 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10577
10578 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10579 since it is in i386-tdep.c.
10580
10581 2003-01-06 J. Brobecker <brobecker@gnat.com>
10582
10583 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10584 failure introduced in the previous change.
10585
10586 2003-01-05 Michael Chastain <mec@shout.net>
10587
10588 * README: Remove references to deleted remote-*.c files:
10589 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10590 remote-nrom.c, remote-os9k.c, remote-udi.c.
10591
10592 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10593
10594 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10595 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10596 i386_get_longjmp_target.
10597
10598 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10599
10600 * arm-tdep.c (prologue_cache): Change to a pointer.
10601 (_initialize_arm_tdep): Allocate prologue_cache.
10602 (check_prologue_cache): Update.
10603 (save_prologue_cache): Update.
10604 (arm_gdbarch_init): Update.
10605
10606 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10607
10608 * stabsread.c (update_method_name_from_physname): Call complaint()
10609 instead of error.
10610
10611 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10614 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10615 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10616
10617 * blockframe.c: Include "gdbcmd.h" and "command.h".
10618 (backtrace_below_main): New variable.
10619 (file_frame_chain_valid, func_frame_chain_valid)
10620 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10621 (generic_func_frame_chain_valid): Remove functions.
10622 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10623 (_initialize_blockframe): New function.
10624 * Makefile.in (blockframe.o): Update dependencies.
10625 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10626 comment. Call frame_chain_valid ().
10627 * frame.h: Remove old prototypes. Add prototype for
10628 frame_chain_valid and update comments to match.
10629 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10630 Remove old comment.
10631 * gdbarch.h: Regenerated.
10632 * gdbarch.c: Regenerated.
10633
10634 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10635 set_gdbarch_frame_chain_valid.
10636 * avr-tdep.c (avr_gdbarch_init): Likewise.
10637 * cris-tdep.c (cris_gdbarch_init): Likewise.
10638 * frv-tdep.c (frv_gdbarch_init): Likewise.
10639 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10640 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10641 (i386_nw_init_abi): Likewise.
10642 (i386_gdbarch_init): Likewise.
10643 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10645 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10646 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10647 * mips-tdep.c (mips_gdbarch_init): Likewise.
10648 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10649 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10650 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10651 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10652 * s390-tdep.c (s390_gdbarch_init): Likewise.
10653 * sh-tdep.c (sh_gdbarch_init): Likewise.
10654 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10655 * v850-tdep.c (v850_gdbarch_init): Likewise.
10656 * vax-tdep.c (vax_gdbarch_init): Likewise.
10657 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10658
10659 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10660 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10661 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10662 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10663 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10664 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10665 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10666 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10667
10668 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10669
10670 * Makefile.in (acconfig_h): Remove incorrect macro.
10671 (config_h): Define.
10672 (osabi.o): Update dependencies.
10673 * configure.tgt: Set gdb_osabi based on target triplet.
10674 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10675 * configure: Regenerated.
10676 * config.in: Regenerated.
10677 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10678 (GDB_OSABI_DEFAULT): Define if not already defined.
10679 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10680 (set_osabi_string): New variables.
10681 (gdbarch_register_osabi): Add new OS ABI to
10682 gdb_osabi_available_names.
10683 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10684 (set_osabi, show_osabi): New functions.
10685 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10686
10687 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10688
10689 * arch-utils.c (gdbarch_info_init): Set osabi to
10690 GDB_OSABI_UNINITIALIZED.
10691 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10692 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10693 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10694 * gdbarch.c: Regenerated.
10695 * gdbarch.h: Regenerated.
10696 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10697 there's no BFD.
10698 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10699 * osabi.h (enum gdb_osabi): Move to defs.h.
10700 (gdbarch_init_osabi): Update prototype.
10701 * defs.h (enum gdb_osabi): Moved here.
10702 * Makefile.in: Update dependencies.
10703
10704 * alpha-tdep.h: Don't include "osabi.h".
10705 (struct gdbarch_tdep): Remove osabi member.
10706 * alpha-tdep.c: Include "osabi.h".
10707 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10708 iterate over arches. Update call to gdbarch_init_osabi.
10709 (alpha_dump_tdep): Don't dump osabi.
10710 * alpha-linux-tdep.c: Include "osabi.h".
10711 * alpha-osf1-tdep.c: Include "osabi.h".
10712 * alphafbsd-tdep.c: Include "osabi.h".
10713 * alphanbsd-tdep.c: Include "osabi.h".
10714
10715 * arm-tdep.h: Don't include "osabi.h".
10716 (struct gdbarch_tdep): Remove osabi member.
10717 * arm-tdep.c: Include "osabi.h".
10718 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10719 iterate over arches. Update call to gdbarch_init_osabi.
10720 (arm_dump_tdep): Don't dump osabi.
10721 * arm-linux-tdep.c: Include "osabi.h".
10722 * armnbsd-tdep.c: Include "osabi.h".
10723
10724 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10725 Update call to gdbarch_init_osabi.
10726
10727 * i386-tdep.h: Don't include "osabi.h".
10728 (struct gdbarch_tdep): Remove osabi member.
10729 * i386-tdep.c: Include "osabi.h".
10730 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10731 iterate over arches. Update call to gdbarch_init_osabi.
10732 (i386_dump_tdep): Don't dump osabi.
10733 * i386-linux-tdep.c: Include "osabi.h".
10734 * i386-sol2-tdep.c: Include "osabi.h".
10735 * i386bsd-tdep.c: Include "osabi.h".
10736 * i386gnu-tdep.c: Include "osabi.h".
10737 * i386ly-tdep.c: Include "osabi.h".
10738 * i386nbsd-tdep.c: Include "osabi.h".
10739 * i386obsd-tdep.c: Include "osabi.h".
10740
10741 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10742 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10743 check osabi when iterating over arches. Update call to
10744 gdbarch_init_osabi.
10745 (mips_dump_tdep): Don't dump osabi.
10746
10747 * ns32k-tdep.h: Don't include "osabi.h".
10748 (struct gdbarch_tdep): Remove.
10749 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10750 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10751 allocate tdep. Update call to gdbarch_init_osabi.
10752 (ns32k_dump_tdep): Remove.
10753 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10754 * ns32knbsd-tdep.c: Include "osabi.h".
10755
10756 * ppc-tdep.h: Don't include "osabi.h".
10757 (struct gdbarch_tdep): Remove osabi member.
10758 * rs6000-tdep.c: Include "osabi.h".
10759 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10760 osabi when iterating over arches. Update call to
10761 gdbarch_init_osabi.
10762 (rs6000_dump_tdep): Don't dump osabi.
10763 * ppc-linux-tdep.c: Include "osabi.h".
10764 * ppcnbsd-tdep.c: Include "osabi.h".
10765
10766 * sh-tdep.h: Don't include "osabi.h".
10767 (struct gdbarch_tdep): Remove osabi member.
10768 * sh-tdep.c: Include "osabi.h".
10769 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10770 iterate over arches. Update call to gdbarch_init_osabi.
10771 (sh_dump_tdep): Don't dump osabi.
10772 * shnbsd-tdep.c: Include "osabi.h".
10773
10774 * sparc-tdep.c: Include "osabi.h".
10775 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10776 iterate over arches. Update call to gdbarch_init_osabi.
10777 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10778 tdep structure.
10779
10780 * vax-tdep.h: Don't include "osabi.h".
10781 (struct gdbarch_tdep): Remove.
10782 * vax-tdep.c: Include "osabi.h".
10783 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10784 iterate over arches. Don't allocate tdep. Update call
10785 to gdbarch_init_osabi.
10786 (vax_dump_tdep): Remove.
10787 (_initialize_vax_tdep): Update call to gdbarch_register.
10788
10789 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10790
10791 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10792 entirely.
10793 (breakpoint_re_set_one): Don't fetch the value for a disabled
10794 watchpoint.
10795
10796 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10799 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10800 (COERCE_FLOAT_TO_DOUBLE): Remove.
10801 * gdbarch.c: Regenerate.
10802 * gdbarch.h: Regenerate.
10803 * Makefile.in: Remove value_h from gdbarch_h.
10804 * valops.c (coerce_float_to_double): New variable.
10805 (default_coerce_float_to_double): Remove.
10806 (standard_coerce_float_to_double): Remove.
10807 (value_arg_coerce): Use coerce_float_to_double.
10808 (_initialize_valops): Add "set coerce-float-to-double".
10809 * value.h (default_coerce_float_to_double): Remove prototype.
10810 (standard_coerce_float_to_double): Remove prototype.
10811
10812 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10813 prototyped.
10814 * mdebugread.c (parse_symbol): Likewise.
10815 * stabsread.c (define_symbol): Mark all functions as prototyped.
10816
10817 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10818 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10819 set_gdbarch_coerce_float_to_double.
10820 * arm-tdep.c (arm_gdbarch_init): Likewise.
10821 * frv-tdep.c (frv_gdbarch_init): Likewise.
10822 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10823 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10824 * mips-tdep.c (mips_gdbarch_init): Likewise.
10825 (mips_coerce_float_to_double): Remove.
10826 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10827 (rs6000_coerce_float_to_double): Remove.
10828 * s390-tdep.c (s390_gdbarch_init): Likewise.
10829 * sh-tdep.c (sh_gdbarch_init): Likewise.
10830 (sh_coerce_float_to_double): Remove.
10831 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10832 (sparc_coerce_float_to_double): Remove.
10833 * v850-tdep.c (v850_gdbarch_init): Likewise.
10834 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10835 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10836 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10837 (hppa_coerce_float_to_double): Remove prototype.
10838 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10839
10840 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10841
10842 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10843
10844 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10845
10846 Suggested by Stewart Brown <sb24@avaya.com>:
10847 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10848 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10849 (c_type_print_varspec_suffix): Likewise.
10850
10851 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10852
10853 * configure.in: Don't set and AC_SUBST SUBDIRS.
10854 * configure: Regenerated.
10855
10856 * configure.in: Remove code dealing with shared libraries.
10857 * Makefile.in: Remove HLDFLAGS and HLDENV.
10858 * configure: Regenerated.
10859
10860 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10861
10862 * frame.c (deprecated_frame_xmalloc): New function.
10863 (deprecated_set_frame_saved_regs_hack): New function.
10864 (deprecated_set_frame_extra_info_hack): New function.
10865 * frame.h (deprecated_frame_xmalloc): Declare.
10866 (deprecated_set_frame_saved_regs_hack): Declare.
10867 (deprecated_set_frame_extra_info_hack): Declare.
10868
10869 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10870
10871 * configure.in: Move code that provides the --enable-gdbtk option
10872 right after the code that handles the --enable-tui option, and
10873 polish it somewhat.
10874 * configure: Regenerated.
10875
10876 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10877 AC_CHECK_FUNCS and remove the old check for pread64.
10878 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10879 * acconfig.h (_GNU_SOURCE): Add.
10880 (HAVE_PREAD64): Remove.
10881 * configure, aclocal.m4, config.in: Regenerated.
10882
10883 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10884
10885 * alpha-tdep.c: Use get_frame_saved_regs.
10886 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10887 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10888 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10889 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10890 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10891
10892 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10893
10894 * configure.in: Remove all use of the SUBDIRS variable; add
10895 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10896 code providing the --enable-multi-ice option, and move it right in
10897 front of the code that checks whether gdbserver is supported.
10898 Polish that too.
10899 * configure: Regenerated.
10900 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10901 @SUBDIRS@.
10902
10903 2003-01-03 Andrew Cagney <cagney@redhat.com>
10904
10905 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10906 * avr-tdep.c, cris-tdep.c: Ditto.
10907 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10908 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10909
10910 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10911
10912 * configure.in: Remove --enable-netrom option.
10913 * configure: Regenerated.
10914
10915 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10916
10917 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10918 declaration for `struct re_pattern_buffer' instead.
10919 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10920
10921 2003-01-03 J. Brobecker <brobecker@gnat.com>
10922
10923 * mdebugread.c (parse_symbol): Count until the stEnd matching
10924 the structure name.
10925
10926 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10927
10928 * configure.in: Remove --with-cpu option.
10929 subscripts. Remove evil changequotes here.
10930 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10931 * config.in, configure: Regenerated.
10932
10933 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10934 * configure.in: Cleanup section that sources GDB and BFD configure
10935 subscripts. Remove evil changequotes here.
10936 * config.in, configure: Regenerated.
10937
10938 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10939
10940 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10941 frame accessor methods.
10942 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10943 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10944 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10945 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10946 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10947 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10948 * z8k-tdep.c: Ditto.
10949
10950 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10951
10952 * configure.in: Remove UI_OUT configuration code.
10953 * ada-lang.c: Update assuming UI_OUT is always true.
10954 * Makefile.in (UIOUT_CFLAGS): Remove.
10955 * configure: Regenerated.
10956 * TODO: Remove blurb about elimination of -DUI_OUT.
10957
10958 * configure.in: Move code that provides the --enable-gdbcli,
10959 --enable-gdbmi options right before the code that handles the
10960 --enable-tui option. Polish a bit.
10961 * configure: Regenerated.
10962
10963 * configure.in: Rewrite check for GNU regex and the
10964 --without-included regex option, and move it into the "Checks for
10965 library functions" section. This makes us use the system regex
10966 again by default on systems with version 2 of the GNU C library.
10967 This was apparently broken.
10968 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10969 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10970 * config.in, configure: Regenerated.
10971
10972 * configure.in: Move code that provides the --enable-tui option
10973 before the "Checks for libraries" section. Polish the code
10974 somewhat and set need_curses to yes if we build the TUI. Rewrite
10975 code that looks for a library providing termcap functionality to
10976 match more closely what's done in the Readline library, and move
10977 it into to the "Checks for libraries" section.
10978 * configure: Regenerated.
10979 * Makefile.in (TERMCAP): Remove variable.
10980 * config/i386/go32.mh (TERMCAP): Remove variable.
10981
10982 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10983
10984 * MAINTAINERS: Mention gdb_mbuild.sh.
10985 * gdb_mbuild.sh: Rewrite.
10986
10987 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10988
10989 * configure.in: Fix typo in last change.
10990 * config.in, configure: Regenerated.
10991
10992 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10993
10994 * valarith.c (value_binop): Delete obsolete code and comments.
10995 * configure.host: Ditto.
10996 * buildsym.h (make_blockvector): Ditto.
10997 * buildsym.c (make_blockvector): Ditto.
10998 * defs.h (enum language): Ditto.
10999 (chill_demangle): Ditto.
11000 * elfread.c (elf_symtab_read): Ditto.
11001 * dwarfread.c (CHILL_PRODUCER): Ditto.
11002 (set_cu_language): Ditto.
11003 (handle_producer): Ditto.
11004 * expprint.c (print_subexp): Ditto.
11005 * gdbtypes.c (chill_varying_type): Ditto.
11006 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11007 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11008 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11009 (chill_varying_type): Ditto.
11010 * language.h (_LANG_chill): Ditto.
11011 * language.c (binop_result_type, integral_type): Ditto.
11012 (character_type, string_type, structured_type): Ditto.
11013 (lang_bool_type, binop_type_check): Ditto.
11014 * stabsread.h (os9k_stabs): Ditto.
11015 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11016 (define_symbol, read_type, read_struct_fields): Ditto.
11017 (read_array_type, read_enum_type, read_huge_number): Ditto.
11018 (read_range_type, start_stabs): Ditto.
11019 * symfile.c (init_filename_language_table): Ditto.
11020 (add_psymbol_with_dem_name_to_list): Ditto.
11021 * symtab.c (symbol_init_language_specific): Ditto.
11022 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11023 * symtab.h (struct general_symbol_info): Ditto.
11024 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11025 * typeprint.c (typedef_print): Ditto.
11026 * utils.c (fprintf_symbol_filtered): Ditto.
11027 * valops.c (value_cast, search_struct_field, value_slice): Delete
11028 obsolete code.
11029 (varying_to_slice): Delete function.
11030 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11031 (varying_to_slice): Delete declaration.
11032 * MAINTAINERS: Update.
11033
11034 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11035
11036 * configure.in: Reorganize "Checks for library functions section"
11037 a bit. Remove check for `btowc' and `isascii' functions.
11038 * configure: Regenerated.
11039
11040 * acconfig.h (_MSE_INT_H): Remove.
11041 * configure.in: Create "Checks for header files" section, and move
11042 appropriate tests there. Don't check for objlist.h, wchar.h,
11043 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11044 misdetection fix. Also add "Checks for types", "Checks for
11045 compiler characteristics" and "Checks for library functions"
11046 sections.
11047 * config.in, configure: Regenerated.
11048
11049 * configure.in: Create "Checks for programs" section, and move
11050 appropriate tests there.
11051
11052 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11053
11054 * configure.in: Create "Checks for libraries" section, and move
11055 appropriate tests there. Cleanup check for wctype in libw. Use
11056 AC_SEARCH_LIBS to see whether we need libsocket.
11057 * configure: Regenerated.
11058
11059 For older changes see ChangeLog-2002
11060 \f
11061 Local Variables:
11062 mode: change-log
11063 left-margin: 8
11064 fill-column: 74
11065 version-control: never
11066 End:
This page took 0.28334 seconds and 4 git commands to generate.