* x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7bace51b
MK
12003-08-29 Mark Kettenis <kettenis@gnu.org>
2
b0f5c6f2
MK
3 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4 USER_DS. We haven't given them a register number yet.
5
2a6d284d
MK
6 * amd64-nat.h: New file.
7 * amd64-nat.c: New file.
8 * amd64fbsd-nat.c: Include "amd64-nat.h".
9 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
10 (amd64fbsd32_r_reg_offset): New variable.
11 (supply_gregset): Simply call amd64_supply_native_gregset.
12 (fill_gregset): Rename `regno' to `regnum'. Simply call
13 amd64_collect_native_gregset.
14 (fill_fpregset): Rename `regno' to `regnum'.
15 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
16 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
17 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
18 `fpregset_t'. Call amd64_supply_native_gregset instead of
19 supply_gregset. Call x86_64_supply_fxsave instead of
20 supply_fpregset.
21 (store_inferior_registers): Rename `regno' to `regnum'. Replace
22 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
23 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
24 `fpregset_t'. Call amd64_collect_native_gregset instead of
25 fill_gregset. Call x86_64_collect_fxsave instead of
26 fill_fpregset.
27 (_initialize_am64fbsd_nat): Initialize
28 amd64_native_gregset32_reg_offset and
29 amd64_native_gregset64_reg_offset.
30 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
31
a16d75cc
MK
32 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
33 null pointer. Fix typo in comment.
34
7bace51b
MK
35 * regcache.c (supply_register): Reimplement to call
36 regcache_raw_supply.
37 (regcache_collect): Reimplement by calling regcache_raw_collect.
38
9a661b68
MK
392003-08-28 Mark Kettenis <kettenis@gnu.org>
40
41 * regcache.c (register_buffer): Consitify first argument.
42 (regcache_raw_supply, regcache_raw_collect): New
43 functions.
44
e94cc8fa
DJ
452003-08-28 Daniel Jacobowitz <drow@mvista.com>
46
47 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
48 by Nathan J. Williams.
49
c64bd0ce
DJ
502003-08-28 Daniel Jacobowitz <drow@mvista.com>
51
52 * lin-lwp.c (wait_lwp): New function, copied from
53 stop_wait_callback. Clean up.
54 (stop_wait_callback): Use wait_lwp.
55
e5ab0dce
AC
562003-08-28 Andrew Cagney <cagney@redhat.com>
57
58 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
59 flavour and disassembler options.
60 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
61 (mips_gdbarch_init): Set "print_insn". Delete initialization of
62 deprecated_tm_print_insn_info.
63
a788de9b
AC
642003-08-27 Andrew Cagney <cagney@redhat.com>
65
66 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
67 Use target_read_memory.
68 (s390_get_frame_info): Update. Do not reference
69 deprecated_tm_print_insn_info.
70 (s390_check_function_end, s390_is_sigreturn): Ditto.
71
36482093
AC
722003-08-27 Andrew Cagney <cagney@redhat.com>
73
74 * Makefile.in (cris-tdep.o): Update dependencies.
75 * cris-tdep.c: Include "gdb_assert.h".
76 (cris_gdbarch_init): Set print_insn.
77 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
78 (cris_delayed_get_disassembler): Simplify, directly call the
79 disassembler returned by cris_get_disassembler.
80 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
81 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
82 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
83 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
84 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
85 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
86 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
87 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
88 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
89 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
90 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
91 (gdb_print_insn_sparc): Delete function.
92 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
93 deprecated_tm_print_insn_info.
94 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
95 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
96 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
97 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
98 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
99 * s390-tdep.c (gdb_print_insn_s390): Delete function.
100 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
101 (s390_gdbarch_init): Set print_insn.
102
0285512f
AC
1032003-08-27 Andrew Cagney <cagney@redhat.com>
104
105 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
106 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
107 * infcall.c (call_function_by_hand): Convert the entry point
108 address into a code address.
109
cdcd5552
AC
1102003-08-27 Andrew Cagney <cagney@redhat.com>
111
112 * dsrec.c: Include "gdb_string.h".
113 * Makefile.in (dsrec.o): Update dependencies.
114
e85cddad
MC
1152003-08-27 Michael Chastain <mec@shout.net>
116
117 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
118
8bbfbb23
AC
1192003-08-27 Andrew Cagney <cagney@redhat.com>
120
121 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
122 (alpha_osf1_init_abi): Do not set call_dummy_address.
123
ba058b66
DC
1242003-08-27 David Carlton <carlton@kealia.com>
125
126 From Randolph Chung <tausq@debian.org>:
127 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
128 compiles with -Wformat-nonliteral -Werror.
129
87f84c9d
JB
1302003-08-26 Jim Blandy <jimb@redhat.com>
131
132 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
133 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
134 bfd_lookup_symbol, since we only want symbols in code sections.
135 (look_for_base): Pass zero as the SECT_FLAGS argument to
136 bfd_lookup_symbol, since we're not concerned about which section
137 the symbol is in.
138
102d615a
JJ
1392003-08-26 Jeff Johnston <jjohnstn@redhat.com>
140
141 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
142 we are frameless or the return address register is already known.
143
cc7ad3ea
AC
1442003-08-26 Andrew Cagney <cagney@redhat.com>
145
146 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
147 in size. Add comments.
148
af8b88dd
JJ
1492003-08-26 Jeff Johnston <jjohnstn@redhat.com>
150
151 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
152 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
153
e0a4f5a1
JM
1542003-08-26 Jason Merrill <jason@redhat.com>
155
156 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
157 case out of #ifdef MIPS block.
158
4ae9ee8e
DJ
1592003-08-25 Daniel Jacobowitz <drow@mvista.com>
160
161 PR java/1322
162 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
163 available before calling SECT_OFF_TEXT.
3c164570 164 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 165
004d836a
JJ
1662003-08-25 Jeff Johnston <jjohnstn@redhat.com>
167
168 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
169 bof, and nat0-nat127 as pseudo-registers.
170 (ia64_frame_cache): New struct used to cache frame info.
171 (ia64_register_reggroup_p): New routine used to override default
172 register grouping so registers without names are still saved and
173 restored.
174 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
175 pseudo values.
176 (ia64_pseudo_register_read): New routine to read pseudo-registers.
177 (ia64_pseudo_register_write): New routine to write pseudo-registers.
178 (ia64_alloc_frame_cache): New routine to create a new
179 ia64_frame_cache.
180 (examine_prologue): Change prototype to add next_frame pointer.
181 Assume frameless until otherwise proven. Verify that the cfm for
182 current frame matches the cfm that should occur for the prologues
183 alloc insn and if equal, mark as not frameless. At end of routine,
184 if not frameless, calculate registers for the previous frame and store
185 in the cache, if a cache is provided.
186 (ia64_skip_prologue): Use new prototype when calling examine_prologue
187 and pass 0 for next_frame.
188 (ia64_store_return_value): Change to use convert_typed_floating()
189 instead of calling ia64_convert_to_raw().
190 (ia64_extract_return_value): Change to use convert_typed_floating()
191 instead of calling ia64_convert_to_virtual().
192 (ia64_frame_cache): New routine to support new frame model.
193 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
194 (ia64_frame_sniffer): Ditto.
195 (ia64_sigtramp_frame_init_saved_regs): Ditto.
196 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
197 (ia64_sigtramp_frame_prev_register): Ditto.
198 (ia64_sigtramp_frame_sniffer): Ditto.
199 (ia64_frame_base_address): Ditto.
200 (ia64_extract_struct_value_address): Change to issue error message.
201 (ia64_frame_align): New routine to align sp.
202 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
203 (ia64_push_arguments): Removed. Logic moved to
204 ia64_push_dummy_call().
205 (ia64_push_return_address): Ditto.
206 (ia64_unwind_dummy_id): New function.
207 (ia64_unwind_pc): Ditto.
208 (ia64_convert_register_p): Ditto.
209 (ia64_register_to_value): Ditto.
210 (ia64_value_to_register): Ditto.
211 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
212 (ia64_register_byte, ia64_register_raw_size): Ditto.
213 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
214 (ia64_saved_pc_after_call): Ditto.
215 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
216 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
217 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
218 (ia64_register_convert_to_raw): Ditto.
219 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
220 (ia64_init_extra_frame_info): Ditto.
221 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
222 (ia64_gdbarch_init): Remove registering of deprecated functions that
223 are no longer used. Add registration of new gdbarch functions.
224 Remove registering deprecated_write_sp. Replace
225 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
226 Delete set_gdbarch_deprecated_register_convertible(),
227 set_gdbarch_deprecated_register_convert_to_virtual(), and
228 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
229 set_gdbarch_deprecated_register_size(),
230 set_gdbarch_deprecated_register_bytes(),
231 set_gdbarch_pcregnum(),
232 set_gdbarch_deprecated_register_byte(),
233 set_gdbarch_deprecated_register_raw_size(),
234 set_gdbarch_deprecated_max_register_raw_size(),
235 set_gdbarch_deprecated_register_virtual_size(),
236 and set_gdbarch_deprecated_max_register_virtual_size() calls.
237 Replace set_gdbarch_deprecated_extract_return_value() with
238 set_gdbarch_extract_return_value(). Remove calls to:
239 set_gdbarch_deprecated_saved_pc_after_call();
240 set_gdbarch_deprecated_frame_chain(),
241 set_gdbarch_deprecated_frame_saved_pc(),
242 set_gdbarch_deprecated_frame_init_saved_regs(),
243 set_gdbarch_deprecated_get_saved_register(),
244 set_gdbarch_deprecated_call_dummy_words(),
245 set_gdbarch_deprecated_sizeof_call_dummy_words(),
246 set_gdbarch_deprecated_init_extra_frame_info(),
247 set_gdbarch_deprecated_frame_args_address(),
248 set_gdbarch_deprecated_frame_locals_address(),
249 and set_gdbarch_deprecated_dummy_write_sp().
250 Add set_gdbarch_convert_register_p(),
251 set_gdbarch_register_to_value(),
252 set_gdbarch_value_to_register(),
253 set_gdbarch_push_dummy_call(),
254 set_gdbarch_frame_align(),
255 set_gdbarch_unwind_dummy_id(),
256 set_gdbarch_unwind_pc(),
257 frame_unwind_append_sniffer(),
258 frame_unwind_append_sniffer(),
259 and frame_base_set_default().
260
aede7613
CD
2612003-08-25 Chris Demetriou <cgd@broadcom.com>
262
263 * configure.tgt: Document need for special "mipsisa64" handling.
264 (mipsisa64*-*-linux64): Handle as target linux64.
265 (mipsisa64*-*-*): Handle as target embed64.
266
43c3a82e
MC
2672003-08-18 Michael Chastain <mec@shout.net>
268
269 * PROBLEMS: Document pr gdb/1322, the Java anonymous
270 objfile bug.
271
6564f77d
MK
2722003-08-24 Mark Kettenis <kettenis@gnu.org>
273
2de139ba
MK
274 * i387-tdep.h: Update copyright date.
275 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
276
6564f77d
MK
277 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
278 CFLAGS games to reflect reality.
279
42cf1509
AC
2802003-08-24 Andrew Cagney <cagney@redhat.com>
281
282 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
283 GDB_MULTI_ARCH is always non-zero.
284 * osabi.c (_initialize_gdb_osabi): Ditto.
285 (gdbarch_init_osabi): Ditto.
286 * sparc-tdep.c: Ditto for #if code.
287
0485f6ad
MK
2882003-08-23 Mark Kettenis <kettenis@gnu.org>
289
290 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
291 Update comments.
292 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
293 comments.
294 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
295 x86_64_supply_fxsave.
296 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
297 x86_64_supply_fxsave.
298 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
299 x86_64_supply_fxsave.
300
c7716133
AJ
3012003-08-23 Andreas Jaeger <aj@suse.de>
302
303 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
304 i387_supply_fxsave.
305
ed504bdf
MK
3062003-08-23 Mark Kettenis <kettenis@gnu.org>
307
308 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
309 i387_supply_register.
310 (go32_fetch_registers): Adjust call to i387_supply_fsave.
311 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
312 i387_supply_fsave.
313 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
314 i387_supply_fxsave.
315 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
316 i387_supply_fsave.
317 * i386bsd-nat.c (supply_fpregset): Adjust call to
318 i387_supply_fsave.
319 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
320 call to i387_supply_fxsave. Call i387_supply_fsave instead of
321 supply_fpregset.
322 (store_inferior_registers): Remove extraneous whitespace. Call
323 i387_fill_fsave instead of fill_fpregset.
324 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
325 (supply_fpregset): Likewise.
326 * i386v4-nat.c (supply_fpregset): Adjust call to
327 i387_supply_fsave.
328 * i386-interix-nat.c (supply_fpregset): Adjust call to
329 i387_supply_fsave.
330 * i386-linux-nat.c (supply_fpregset): Adjust call to
331 i387_supply_fsave.
332 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
333 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
334 i387supply_fsave and i387_supply_fxsave.
335 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
336 Incorporate code from `i387_supply_register.
337 (i387_supply_register): Remove.
338 (i387_supply_fxsave): Add `regnum' argument.
339 Update comments.
340 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
341 prototype.
342 (i387_supply_register): remove prototype.
343 Update comments.
344
4be5d520
MC
3452003-08-22 Michael Chastain <mec@shout.net>
346
347 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
348 Add lines for files in gdb/testsuite/gdb.cp/* that are
349 still not 8.3 unique.
350
7ed85d26
DJ
3512003-08-22 Daniel Jacobowitz <drow@mvista.com>
352
353 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
354 TYPE_VPTR_FIELDNO is valid.
355
eb0d3137
MK
3562003-08-19 Mark Kettenis <kettenis@gnu.org>
357
358 * utils.c (set_width_command): Remove prototypes.
359 (set_screen_size): New prototype.
360 (init_page_info): Simplify by fetching the screen size from
361 Readline. Call set_screen_size.
362 (set_screen_size): New function.
363 (set_width): Add missing whitespace in comment.
364 (set_width_command): Call set_screen_size.
365 (set_height_command): New function.
366 (initialize_utils): Fix formatting. Make "set height" command
367 call set_height_command. Remove redundant code that turns off
368 pagination if output isn't a terminal. Remove redundant call to
369 set_width_command.
370
7e6d0ac8
MK
3712003-08-22 Mark Kettenis <kettenis@gnu.org>
372
3567a8ea
MK
373 * sparc64-tdep.h (sparc64_regnum): Fix comment.
374 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
375 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
376 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
377 `case' keyword.
378 (sparc64_register_info): Give the reister with number
379 SPARC64_STATE_REGNUM a name.
380 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
381 %asi and %ccr.
382 (sparc64_push_dummy_call): Take BIAS into account when checking
383 stcak alignment.
384 (sparc_software_single_step): Remove assertions that check whether
385 NPC and NNPC were zero.
386 (sparc_supply_rwindow): Make public. Merge functionality with
387 sparc64_supply_rwindow.
388 (sparc_fill_rwindow): Make public. Merge functionality with
389 sparc64_fill_rwindow.
390 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
391 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
392 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
393 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
394 sparc_supply_rwindow instead of sparc64_supply_rwindow.
395
7e6d0ac8
MK
396 * reggroups.c: Add whitespace after declarations of local
397 variables in functions.
398
72e5f484
MC
3992003-08-21 Michael Chastain <mec@shout.net>
400
401 * gdbtypes.h: Change array bound type from an int to enum.
402
435ac228
AC
4032003-08-21 Andrew Cagney <cagney@redhat.com>
404
405 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
406 * config/sparc/tm-sparc.h: Ditto.
407 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
408 unconditionally.
409 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
410
0d0e1a63
MK
4112003-07-13 Mark Kettenis <kettenis@gnu.org>
412
413 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
414 (register_objfile_data, set_objfile_data, objfile_data): New
415 prototypes.
416 * objfiles.c (objfile_alloc_data, objfile_free_data): New
417 prototypes.
418 (allocate_objfile): Call objfile_alloc_data.
419 (free_objfile): Call objfile_free_data.
420 (struct objfile_data): New.
421 (struct objfile_data_registration): New.
422 (struct objfile_data_registry): New.
423 (objfile_data_registry): New variable.
424 (register_objfile_data): New function.
425 (objfile_alloc_data, objfile_free_data): New functions.
426 (set_objfile_data, objfile_data): New functions.
427 * dwarf2-frame.c (dwarf2_frame_data): New variable.
428 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
429 (_initialize_dwarf2_frame): New function and prototype.
430
d90cf509
AC
4312003-08-21 Andrew Cagney <cagney@redhat.com>
432
433 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
434 a specific architecture.
435 * arch-utils.h (set_architecture_from_arch_mach): Delete
436 declaration.
437 (target_architecture_hook): Delete declaration.
438 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
439 (default_float_format): Assume GDB_MULTI_ARCH.
440 (default_double_format): Assume GDB_MULTI_ARCH.
441 (set_endian_from_file): Delete function.
442 (arch_ok): Delete function.
443 (set_arch): Delete function.
444 (set_architecture_from_arch_mach): Delete function.
445 (set_architecture_from_file): Delete function.
446 (set_architecture): Assume GDB_MULTI_ARCH.
447 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
448
8b39fe56
MK
4492003-08-21 Mark Kettenis <kettenis@gnu.org>
450
451 Rewrite FreeBSD/sparc64 native configuration.
452 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
453 * sparc64fbsd-nat.c: New file.
454 * sparc64fbsd-tdep.c: New file.
455 * sparc64-tdep.c sparc64-tdep.h: New files.
456 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
457 sparc64fbsd-tdep.o): New dependencies.
458 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
459 and sparc64fbsd-tdep.c.
460 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
461 * config/sparc/fbsd.mh: Remove copyright notice.
462 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
463 sparcbsd-nat.o.
464 * config/sparc/fbsd.mt: Remove copyright notice.
465 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
466 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
467 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
468 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
469 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
470 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
471 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
472 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
473 "sparc/tm-sp64.h".
474 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
475 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
476
a7f19c79
MC
4772003-08-21 Michael Chastain <mec@shout.net>
478
479 * symtab.h: Add doco on the space critical structures and
480 some measurements of space usage.
481
da08ea5b
MS
4822003-08-21 Michael Snyder <msnyder@redhat.com>
483
484 * tracepoint.c (trace_dump_command): Trace break address
485 is subject to DECR_PC_AFTER_BREAK.
486 (set_traceframe_context): Make "trace_line" an int.
487 Fixes suggested by Mark Newman <mark.newman@lmco.com>
488
6df2bf50
MS
4892003-08-20 Michael Snyder <msnyder@redhat.com>
490
491 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
492 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
493 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
494 argument passing.
495 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
496 functions, replace sh_push_dummy_call.
497 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
498
0955bbf0
MC
4992003-08-20 Michael Chastain <mec@shout.net>
500
501 * gdbtypes.h (struct main_type): Rearrange to save space.
502
260a4188
MS
5032003-08-20 Michael Snyder <msnyder@redhat.com>
504
505 * trad-frame.c: Comment typo fix.
506
8baa6f92
KB
5072003-08-20 Michael Snyder <msnyder@redhat.com>
508 Kevin Buettner <kevinb@redhat.com>
509
510 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
511 (frv_frame_init_saved_regs): Add declaration.
512 (frame_extra_info): Add new field ``saved_regs''.
513 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
514 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
515 Update frame related code.
516 (frv_extract_struct_value_address): Adjust formatting.
517 * Makefile.in (frv-tdep.o): Update dependencies.
518 * config/frv/tm-frv.h (target_insert_watchpoint)
519 (target_remove_watchpoint, target_insert_hw_breakpoint)
520 (target_remove_hw_breakpoint): Delete these macros.
521 (remote_insert_watchpoint, remote_remove_watchpoint)
522 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
523 these declarations.
524
87193939
MC
5252003-08-20 Michael Chastain <mec@shout.net>
526
527 * defs.h (ENUM_BITFIELD): New macro.
528 * symtab.h (ENUM_BITFIELD): Use it.
529 (BYTE_BITFIELD): Remove old macro, which was already disabled.
530
062103ba
SA
5312003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
532
533 * MAINTAINERS (write after approval): Add myself.
534
8b148df9
AC
5352003-08-18 Andrew Cagney <cagney@redhat.com>
536
537 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
538 * gdbarch.h, gdbarch.c: Re-generate.
539 * infcall.c (call_function_by_hand): Adjust the SP by
540 frame_red_zone_size before allocating any stack space.
541 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
542 * x86-64-tdep.c (x86_64_frame_align): New function.
543 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
544
545 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
546 Remove code adjusting SP so that it skips over the Red Zone.
547
954a4db8
MK
5482003-08-18 Mark Kettenis <kettenis@gnu.org>
549
550 * NEWS (New native configurations): Mention FreeBSD/amd64.
551
1a241548
AC
5522003-08-18 Andrew Cagney <cagney@redhat.com>
553
554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
555 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
556 "m68k_frame_p".
557 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
558
f82b2acd
MK
5592003-08-18 Mark Kettenis <kettenis@gnu.org>
560
561 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
562
4056d258
ML
5632003-08-18 Michal Ludvig <mludvig@suse.cz>
564
565 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
566 Define.
567 * i386-linux-nat.c: Include "linux-nat.h".
568 (child_post_startup_inferior): New function.
569
99ab4326
MK
5702003-08-18 Mark Kettenis <kettenis@gnu.org>
571
572 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
573 at the start of a frameless function. This probably fixes PR
574 backtrace/1338.
575
c8d5f0d6
MC
5762003-08-17 Michael Chastain <mec@shout.net>
577
578 * symfile.c (find_sym_fns): Remove special case for apollo target.
579
9016a515
DJ
5802003-08-17 Daniel Jacobowitz <drow@mvista.com>
581
582 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
583 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
584 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
585 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
586 (linux_supports_tracevforkdone): New function.
587 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
588 TRACEVFORKDONE.
589 (child_follow_fork): Handle vfork.
590 (linux_handle_extended_wait): Likewise. Also handle exec.
591 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
592 * NEWS: Mention fork tracing.
593
c538c11c
DJ
5942003-08-17 Daniel Jacobowitz <drow@mvista.com>
595
596 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
597
4de4c07c
DJ
5982003-08-17 Daniel Jacobowitz <drow@mvista.com>
599
600 * Makefile.in (i386-linux-nat.o): Update dependencies.
601 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
602 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
603 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
604 * i386-linux-nat.c: Include "linux-nat.h".
605 (child_post_startup_inferior): New function.
606 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
607 * infptrace.c (kill_inferior): Wrap in #ifdef.
608 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
609 attaching to each LWP.
610 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
611 (init_lin_lwp_ops): Fill in some more operations.
612 * linux-nat.h (linux_enable_event_reporting)
613 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
614 prototypes.
615 * linux-nat.c (linux_enable_event_reporting): New function.
616 (child_post_attach, linux_child_post_startup_inferior)
617 (child_post_startup_inferior, child_follow_fork)
618 (linux_handle_extended_wait, kill_inferior): New functions.
619
7996bcec
AC
6202003-08-16 Andrew Cagney <cagney@redhat.com>
621
622 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
623 * gdbarch.h, gdbarch.c: Re-generate.
624
3d48a7a0
MK
6252003-08-16 Mark Kettenis <kettenis@gnu.org>
626
627 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
628
7989c619
AC
6292003-08-16 Andrew Cagney <cagney@redhat.com>
630
631 * NEWS: Mention that "set prompt-escape-char" was deleted.
632 * top.c (get_prompt_1): Delete function.
633 (gdb_prompt_escape):
634 (init_main): Do not clear "gdb_prompt_escape". Delete "set
635 prompt-escape-char" command.
636 (MAX_PROMPT_SIZE): Delete macro.
637 (get_prompt): Simplify, do not call get_prompt_1.
638
07978cd8
AC
6392003-08-16 Andrew Cagney <cagney@redhat.com>
640
641 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
642 -Werror. -Wformat-nonliteral problems.
643
3ff7cf9e
JB
6442003-08-15 J. Brobecker <brobecker@gnat.com>
645
646 Further multiarching work mostly for hppa64-*-hpux11:
647 * hppa-tdep.h: New file.
648 * hppa-tdep.c: #include hppa-tdep.c.
649 (hppa32_num_regs): Renamed from hppa_num_regs.
650 (hppa64_num_regs): New constant.
651 (hppa64_call_dummy_breakpoint_offset): New constant.
652 (hppa32_call_dummy_length): New constant.
653 (hppa64_call_dummy_length): New constant.
654 (hppa32_stack_align): Make name 32bit explicit.
655 (hppa32_register_virtual_type): Likewise.
656 (hppa32_extract_return_value): Likewise.
657 (hppa32_use_struct_convention): Likewise.
658 (hppa32_store_return_value): Likewise.
659 (hppa64_register_virtual_type): New function.
660 (hppa64_extract_return_value): New function.
661 (hppa64_use_struct_convention): New function.
662 (hppa64_store_return_value): New function.
663 (hppa_frame_locals_address): Remove declaration, function does
664 not exist anymore.
665 (hppa_register_byte): Add support for PA64 ABI.
666 (hppa_gdbarch_init): Add support for PA64 ABI.
667 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
668 Make name 32bit explicit.
669 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
670 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
671 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
672 (hppa64_hpux_frame_base_before_sigtramp): New function.
673 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
674 * config/pa/tm-hppa64.h: Remove macros that are no longer
675 necessary now that the gdbarch vector is properly setup.
676 Transform some macros into function calls. Some minor cleanup.
677 * config/pa/tm-hppah.h: Update function calls in macros
678 following the function renaming in hppa-hpux-tdep.c.
679 * Makefile.in (hppa_tdep_h): New variable.
680 (hppa-tdep.o): Add dependency over hppa_tdep_h.
681
5d05ca6d
MS
6822003-08-14 Michael Snyder <msnyder@redhat.com>
683
684 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
685
37ba2569
JB
6862003-08-13 J. Brobecker <brobecker@gnat.com>
687
688 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
689 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
690 routine.
691
aed7f26a
MS
6922003-08-13 Michael Snyder <msnyder@redhat.com>
693
694 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
695 (frv_saved_pc_after_call): Use deprecated ftype.
696 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
697 (frv_remote_translate_xfer_address): Remove.
698 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
699
752d4ac1
JB
7002003-08-13 J. Brobecker <brobecker@gnat.com>
701
702 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
703 initialization after the common gdbarch initialization, not before.
704
1426ac1d
JB
7052003-08-13 J. Brobecker <brobecker@gnat.com>
706
707 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
708 (ADDR_BITS_REMOVE): Remove, redundant.
709
b6fbdd1d
JB
7102003-08-13 J. Brobecker <brobecker@gnat.com>
711
712 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
713 gdbarch method to clear the 2 low bits of text addresses.
714
44160db3
AC
7152003-08-12 Andrew Cagney <cagney@redhat.com>
716
717 * Makefile.in (dsrec.o): Update dependencies.
718 * dsrec.c: Include "gdb_assert.h".
719 (make_srec): Use snprintf instead of sprintf, use a literal format
720 string.
721
bcf7d3ca
AC
7222003-08-12 Andrew Cagney <cagney@redhat.com>
723
724 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
725 FRAME_OBSTACK_ZALLOC.
726
49ed40de
KB
7272003-08-12 Kevin Buettner <kevinb@redhat.com>
728
729 * i386-tdep.c (i386_gdbarch_init): Enable default support for
730 SSE registers.
731
b246147c
MK
7322003-08-10 Mark Kettenis <kettenis@gnu.org>
733
734 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
735 amd64fbsd_sc_reg_offset): Add extern declarations.
736 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
737 declarations.
738
d95fdc0d
BE
7392003-08-11 Ben Elliston <bje@wasabisystems.com>
740
741 * MAINTAINERS (write after approval): Update my mail address.
742
cf6a0e73
AC
7432003-08-10 Andrew Cagney <cagney@redhat.com>
744
745 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
746
f837910f
MK
7472003-08-10 Mark Kettenis <kettenis@gnu.org>
748
e2dbbd2d
MK
749 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
750 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
751 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
752 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
753 i386bsd_sc_reg_offset): Add extern declarations.
754 * i386obsd-nat.c: Include "i386-tdep.h"
755 (_initialize_i386obsd_nat): Remove extern declarations.
756 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
757 declarations.
758 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
759 declarations.
760
f837910f
MK
761 * i386-tdep.c (i386_register_to_value): Use get_frame_register
762 instead of frame_read_register.
763 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
764 instead of frame_read_register. Use I386_ESP_REGNUM instead of
765 SP_REGNUM.
766 (i386_frame_prev_register): Use frame_unwind_register_unsigned
767 instead of frame_unwind_unsigned_register. Use
768 I386_EFLAGS_REGISTER instead of PS_REGNUM.
769 (i386_get_longjmp_target): Use regcache_read_unsigned_register
770 instead of read_register. Use builtin_type_void_data_ptr instead
771 of builtin_type_void_func_ptr when extracting the address of the
772 jmp_buf.
773 (i386_extract_return_value, i386_store_return_value,
774 i386_pseudo_register_read, i386_pseudo_register_write): Use
775 register_size instead REGISTER_RAW_SIZE.
776
edcf254d
AC
7772003-08-10 Andrew Cagney <cagney@redhat.com>
778
779 * infcall.c (call_function_by_hand): Use xstrprintf instead of
780 sprintf. Make "name" constant.
781
26604a34
MK
7822003-08-10 Mark Kettenis <kettenis@gnu.org>
783
192285c6
MK
784 * i387-tdep.c (i387_register_to_value): Use get_frame_register
785 instead of frame_read_register.
f837910f
MK
786 (i387_print_float_info): Use get_frame_register and
787 get_frame_register_unsigned instead of frame_register_read.
192285c6 788
f0925262
MK
789 * i386fbsd-nat.c: Include "i386-tdep.h".
790 (child_resume): Make `eflags' an ULONGEST. Use
791 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
792 instead of register_read and register_write.
793
a144416f
MK
794 * i386bsd-nat.c (fetch_inferior_registers,
795 store_inferior_registers): Don't use && at the end of a line.
796 (_initialize_i386bsd_nat): Fix typo.
797
fec74868
MK
798 * frame.c (_initialize_frame): Add missing backslash.
799
87232496
MK
800 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
801 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
802 and supply_register instead of manipulating the register buffer
803 directly.
804
c9b9de0b
MK
805 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
806 * config/i386/nm-i386sol2.h
807 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
808
26604a34
MK
809 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
810 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
811 instructions that GCC likes to mingle into the prologue. Fixes
812 gdb/1253 and gdb/1255.
813
25d29d70
AC
8142003-08-09 Andrew Cagney <cagney@redhat.com>
815
816 Fix GDB PR cli/926.
817 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
818 * command.h (add_setshow_uinteger_cmd): Declare.
819 * frame.c (set_backtrace_cmd): New function.
820 (show_backtrace_cmd): New function.
821 * frame.c (_initialize_frame): Replace "set/show
822 backtrace-below-main" with "set/show backtrace past-main". Add
823 command "set/show backtrace limit".
824 (backtrace_past_main): Rename "backtrace_below_main".
825 (backtrace_limit): New variable.
826 (get_prev_frame): Update. Check the backtrace_limit.
827
9ebf4acf
AC
8282003-08-09 Andrew Cagney <cagney@redhat.com>
829
830 * defs.h (xstrprintf): Declare.
831 * utils.c (xstrprintf): New function.
832 * breakpoint.c (insert_breakpoints): Replace sprintf and
833 non-literal format strings, with xstrprintf and cleanups.
834 (delete_breakpoint,breakpoint_re_set): Ditto.
835 (commands_command, insert_breakpoints): Ditto.
836 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
837 (break_at_finish_command_1): Ditto.
838
3771659b
AC
8392003-08-09 Andrew Cagney <cagney@redhat.com>
840
841 * MAINTAINERS (language support): List Adam Fedor as Objective C
842 maintainer.
843
b4263afa
JB
8442003-08-08 J. Brobecker <brobecker@gnat.com>
845
846 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
847 are now multiarched.
848
d84defb1
JB
8492003-08-08 J. Brobecker <brobecker@gnat.com>
850
851 * config/pa/tm-hppa64.h: Remove lots of macros that are no
852 longer necessary now that hppa64 is partially multiarch'ed.
853
f786f615
AC
8542003-08-08 Andrew Cagney <cagney@redhat.com>
855
856 * interps.c (interp_set): Check for a NULL "old_interp".
857
c938e9b0
L
8582003-08-08 H.J. Lu <hongjiu.lu@intel.com>
859
860 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
861 (install-only): Support DESTDIR.
862 (uninstall): Likewise.
863 (install-gdbtk): Likewise.
864
9a146a11
EZ
8652003-08-08 Elena Zannoni <ezannoni@redhat.com>
866
867 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
868 contains something meaningful at all times.
869
870Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 871
62599e99 872 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 873
56296155
BC
874Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
875
62599e99 876 * MAINTAINERS (write after approval): Added self.
56296155 877
9710e734
AC
8782003-08-07 Andrew Cagney <cagney@redhat.com>
879
880 * inferior.h (AT_SYMBOL): Define.
881 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
882 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
883 * mips-tdep.c (mips_call_dummy_address): Delete function.
884 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
885 set call_dummy_address.
886
98b3ab73
AC
8872003-08-07 Andrew Cagney <cagney@redhat.com>
888
889 * language.c (op_error): Delete function.
890 (binop_type_check): Delete function.
891 * language.h (type_op_error, range_op_error): Delete macros.
892 (op_error): Delete declaration.
893
2fcf52f0
AC
8942003-08-07 Andrew Cagney <cagney@redhat.com>
895
896 * interps.h (INTERP_MI2, INTERP_MI3): Define.
897
abd4220e 8982003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 899
abd4220e 900 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 901 (x86_64_push_arguments): Skip the red zone.
abd4220e 902
9dd5f34f
AC
9032003-08-05 Andrew Cagney <cagney@redhat.com>
904
905 * reggroups.c (reggroup_next): Check for the final entry.
906
e5e78edc
AC
9072003-08-04 Andrew Cagney <cagney@redhat.com>
908
ab4e3d93
AC
909 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
910 * cli/cli-script.c (define_command): Call query directly, instead
911 of passing it a buffer.
912 * ocd.c (ocd_error): Pass error a constant format string.
913 * remote-mips.c (mips_error): Use fputs_filtered.
914
1062ca82
AC
915 * solib-svr4.c (_initialize_svr4_solib): Update
916 register_gdbarch_data call.
917 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
918
fcc1c85c
AC
919 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
920 (register_gdbarch_data): Delete "free" parameter. Update
921 comments.
922 * gdbarch.h, gdbarch.c: Re-generate.
923 * reggroups.c (_initialize_reggroup): Update.
924 * gnu-v3-abi.c (init_gnuv3_ops): Update.
925 * frame-base.c (_initialize_frame_base): Update.
926 * frame-unwind.c (_initialize_frame_unwind): Update.
927 * user-regs.c (_initialize_user_regs): Update.
928 * remote.c (_initialize_remote): Update.
929 * regcache.c (_initialize_regcache): Update.
930
116f06ea
AC
931 * regcache.c (xfree_regcache_descr): Delete function.
932 (_initialize_regcache): Update call to register_gdbarch_data.
933 (init_regcache_descr, init_legacy_regcache_descr): Use
934 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
935
e5e78edc
AC
936 * remote.c (free_remote_state): Delete function.
937 (_initialize_remote): Update register_gdbarch_data.
938 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
939 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
940
6c7d17ba
AC
9412003-08-04 Andrew Cagney <cagney@redhat.com>
942
943 * reggroups.c (struct reggroup_el): Define.
944 (struct reggroups): Delete field "nr_group". Replace array
945 "group" with a "first" to "last" linked list.
946 (reggroups_init): Update. Allocate using gdbarch's obstack.
947 (reggroups_free): Delete function.
948 (add_group): Update. Add "el" parameter.
949 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
950 (default_groups): Update.
951 (reggroup_next): Replace reggroups.
952 (reggroups_dump): Update.
953 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
954 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
955 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
956
89b7795b
DJ
9572003-08-04 Daniel Jacobowitz <drow@mvista.com>
958
959 * Makefile.in (tui-interp.o): Update dependencies.
960
306d9ac5
DC
9612003-08-04 David Carlton <carlton@kealia.com>
962
963 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
964 to internal_error call.
965 * source.c (forward_search_command): Add "%s" format argument.
966 (reverse_search_command): Ditto.
967 * top.c (quit_confirm): Ditto.
968 * cli/cli-setshow.c (do_setshow_command): Ditto.
969 * cp-valprint.c (cp_print_class_method): Replace
970 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
971 (cp_print_class_member): Ditto.
972 * event-top.c (command_line_handler): Ditto.
973 * linux-proc.c (linux_info_proc_cmd): Ditto.
974 * p-typeprint.c (pascal_type_print_base): Ditto.
975 * p-valprint.c (pascal_object_print_class_method): Ditto.
976 (pascal_object_print_class_member): Ditto.
977 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
978 * remote.c (remote_cisco_section_offsets): Ditto.
979 * top.c (command_line_input): Ditto.
980 * utils.c (vwarning,error_stream,quit): Ditto.
981 * valprint.c (print_floating,print_binary_chars)
982 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
983
57bfe177
AC
9842003-08-04 Andrew Cagney <cagney@redhat.com>
985
986 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
987
e546b999
AC
9882003-08-02 Andrew Cagney <cagney@redhat.com>
989
990 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
991 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
992 amd64fbsd-nat.c.
993
91092ee5
AC
9942003-08-02 Andrew Cagney <cagney@redhat.com>
995
996 * Makefile.in: Update all dependencies and definitions.
997
889f28e2
AF
9982003-08-02 Adam Fedor <fedor@gnu.org>
999
1000 * linespec.c (is_objc_method_format): New function
1001 (decode_line_1, locate_first_half): Use it.
1002 Fixes PR objc/1298
1003
880bc914
AC
10042003-08-01 Andrew Cagney <cagney@redhat.com>
1005
1006 * NEWS: Mention that m32r is multi-arch.
1007 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1008 * configure.tgt: Recognize m32r-*-*.
1009 * config/m32r/tm-m32r.h: Delete file.
1010 * config/m32r/m32r.mt: New file.
1011 * m32r-rom.c (m32r_upload_command): Use hostent only when
1012 gethostname succeeds, in order to avoid a compilation
1013 warning.
1014 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1015 compiler warning.
1016
19f59343
MS
10172003-08-01 Michael Snyder <msnyder@redhat.com>
1018
1019 * sh-tdep.c (sh_frame_align): New gdbarch method.
1020 (sh_gdbarch_init): Set up frame_align method.
1021
4e7d7511
MS
10222003-07-31 Michael Snyder <msnyder@redhat.com>
1023
1024 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1025 which is already covered by the new frames infrastructure.
1026
63022984
AC
10272003-07-31 Andrew Cagney <cagney@redhat.com>
1028
1029 * user-regs.c (struct user_reg): Add "next" link.
1030 (struct user_regs): Replace "user" with "first" and "last" links.
1031 (append_user_reg): Add pre-allocated "reg" parameter.
1032 (builtin_user_regs): Provide initial value for "last".
1033 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1034 (user_regs_init): Allocate memory from the gdbarch obstack.
1035 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1036 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1037 linked list.
1038 (usernum_to_user_reg): New function.
1039 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1040 (value_of_user_reg): Use usernum_to_user_reg.
1041 (user_regs_free): Delete function.
1042 (_initialize_user_regs): Update register_gdbarch_data call.
1043
7cf6e574
DJ
10442003-07-31 Daniel Jacobowitz <drow@mvista.com>
1045
1046 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1047
c48a845b
MS
10482003-07-30 Michael Snyder <msnyder@redhat.com>
1049
4e7d7511 1050 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1051 * infcall.c (call_function_by_hand): Pass struct_addr to
1052 value_being_returned.
1053 * infcmd.c (print_return_value): Pass zero as struct_addr.
1054 * values.c (value_being_returned): If struct_addr is passed,
1055 use it instead of trying to recover it from the inferior.
1056
f0d8db19
KB
10572003-07-30 Kevin Buettner <kevinb@redhat.com>
1058
1059 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1060 the prologue analyzer won't need to attempt to extract the pc
1061 value from the woefully incomplete dummy frame.
1062 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1063 possible. Disable code which modifies the frame.
1064
e5c113a1
AC
10652003-07-28 Andrew Cagney <cagney@redhat.com>
1066
1067 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1068 to level 2.
1069 (annotate_breakpoints_table, annotate_record): Ditto.
1070 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1071 (annotate_field_name_end, annotate_field_value): Ditto.
1072 (annotate_field_end, annotate_frame_source_begin): Ditto.
1073 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1074 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1075 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1076 (annotate_frame_address_end, annotate_frame_address): Ditto.
1077 (annotate_frame_args, annotate_frame_end): Ditto.
1078 (annotate_frame_where, annotate_arg_begin): Ditto.
1079 (annotate_arg_name_end, annotate_arg_value): Ditto.
1080 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1081 (annotate_function_call, annotate_signal_name): Ditto.
1082 (annotate_signal_string, annotate_signal_name_end): Ditto.
1083 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1084 (annotate_value_begin, annotate_value_history_value): Ditto.
1085 (annotate_value_history_end, annotate_value_end): Ditto.
1086 (annotate_display_begin, annotate_display_number_end): Ditto.
1087 (annotate_display_format, annotate_display_expression): Ditto.
1088 (annotate_display_expression_end, annotate_display_value): Ditto.
1089 (annotate_display_end, annotate_array_section_begin): Ditto.
1090 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1091 (annotate_elt, annotate_array_section_end): Ditto.
1092
bb1db049
AC
10932003-07-28 Andrew Cagney <cagney@redhat.com>
1094
1095 * regcache.c (struct regcache_descr): Update comments on
1096 nr_raw_registers.
1097 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1098 sizeof_raw_register_valid_p.
1099 (init_regcache_descr): Set nr_raw_registers and
1100 sizeof_raw_register_valid_p before calling
1101 init_legacy_regcache_descr.
1102
20e6603c
AC
11032003-07-28 Andrew Cagney <cagney@redhat.com>
1104
1105 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1106 MOD NUM_REGS.
1107
db742940
DJ
11082003-07-28 Daniel Jacobowitz <drow@mvista.com>
1109
1110 * thread.c (info_threads_command): Use get_selected_frame ().
1111 Check that there is at least one non-sentinel frame.
1112
ce7f4371
SC
11132003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1114
1115 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1116 (m68hc11_pop_frame): Remove.
1117 (m68hc11_frame_saved_pc): Remove.
1118 (m68hc11_frame_chain): Remove.
1119 (m68hc11_frame_init_saved_regs): Remove.
1120 (m68hc11_init_extra_frame_info): Remove.
1121 (m68hc11_store_struct_return): Remove.
1122 (m68hc11_saved_pc_after_call): Remove.
1123
1ea653ae
SC
11242003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1125
1126 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1127 frame unwind information.
1128 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1129 and adapted for frame unwinding.
1130 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1131 (m68hc11_unwind_pc): New function.
1132 (m68hc11_frame_unwind_cache): New function to analyze frames.
1133 (m68hc11_frame_this_id): New function to create new frame struct.
1134 (m68hc11_frame_prev_register): New function to unwind a register from
1135 the frame.
1136 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1137 (m68hc11_frame_p): New function for the above.
1138 (m68hc11_frame_base_address): New function to return fp of frame.
1139 (m68hc11_frame_args_address): Update for frame.
1140 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1141 (m68hc11_unwind_sp): New function.
1142 (m68hc11_unwind_dummy_id): New function.
1143 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1144 calls.
1145
c8a7f6ac
SC
11462003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1147
1148 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1149 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1150 when we are beyond the current pc.
1151
3dc990bf
SC
11522003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1153
1154 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1155 from m68hc11_push_arguments.
1156 (m68hc11_push_arguments): Remove.
1157 (m68hc11_push_return_address): Remove.
1158 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1159 handlers; remove deprecated_extra_stack_alignment_needed.
1160
222e5d1d
AC
11612003-07-27 Andrew Cagney <cagney@redhat.com>
1162
1163 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1164 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1165 REAL_PC and not the pointer.
1166 * hppa-hpux-tdep.c: Include frame.h
1167
a7e9a47e
AC
11682003-07-27 Andrew Cagney <cagney@redhat.com>
1169
1170 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1171 GDB_MULTI_ACH_PARTIAL.
1172
7e3dd49e
AC
11732003-07-27 Andrew Cagney <cagney@redhat.com>
1174
1175 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1176 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1177 operator at start and not end of line.
1178 (decode_prologue): Ditto.
1179 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1180 frame_unwind_register_unsigned instead of
1181 frame_unwind_unsigned_register.
1182 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1183 read_register.
1184 (m32r_push_dummy_call): Use register_size instead of
1185 REGISTER_RAW_SIZE.
1186 (m32r_frame_sniffer): Replace m32r_frame_p.
1187 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1188 * m32r-rom.c (report_transfer_performance): Delete extern
1189 declaration.
1190 (m32r_load, m32r_upload_command): Use print_transfer_performance
1191 instead of report_transfer_performance.
1192 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1193 / add_show_from_set.
1194
0880807f
AC
11952003-07-26 Andrew Cagney <cagney@redhat.com>
1196
1197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1198 store_return_value and extract_struct_value_address.
1199
64ae9269
DJ
12002003-07-26 Daniel Jacobowitz <drow@mvista.com>
1201
1202 PR c++/1267
1203 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1204 NULL, default to the section containing PC.
1205
e286caf2
SC
12062003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1207
1208 * NEWS: Mention "regs" deprecated for m68hc11 too.
1209
1210 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1211 (m68hc11_print_register): New function to print out one register.
1212 (m68hc11_print_registers_info): New function to print registers.
1213 (show_regs): Deprecate and use the above.
1214 (m68hc11_gdbarch_init): Install the print_registers_info.
1215
705b278b
JJ
12162003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1217
1218 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1219 that we have a SIGTRAP before returning non-zero.
1220
63cd4198
EZ
12212003-07-23 Michal Ludvig <mludvig@suse.cz>
1222 Elena Zannoni <ezannoni@redhat.com>
1223
1224 * linespec.c (decode_line_2): Avoid crash if
1225 find_function_start_sal() returns empty record.
1226
6926787d
AS
12272003-07-23 Andreas Schwab <schwab@suse.de>
1228
1229 * ia64-tdep.c (ia64_print_insn): New function.
1230 (ia64_gdbarch_init): Set print_insn to it.
1231 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1232 deprecated_tm_print_insn_info.
1233
708cc1b6
MS
12342003-07-22 Michael Snyder <msnyder@redhat.com>
1235
1236 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1237 handle 8-bit returns (long long).
1238 (h8300h_extract_return_value): Ditto.
1239 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1240
aebd7893
AC
12412003-07-22 Andrew Cagney <cagney@redhat.com>
1242
1243 * gdbarch.c Include "gdb_obstack.h".
1244 (struct gdbarch): Add an "obstack".
1245 (alloc_gdbarch_data): Allocate the gdbarch data using
1246 GDBARCH_OBSTACK_CALLOC.
1247 (free_gdbarch_data): Delete function.
1248 (gdbarch_obstack_zalloc): New function.
1249 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1250 Assert that the architecture is not initialized.
1251 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1252 vector from the obstack.
1253 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1254 architecture obstack.
1255 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1256 (set_gdbarch_data): Assert that the data is not initialized.
1257 (struct gdbarch_data): Delete member "free".
1258 (register_gdbarch_data): Do not initialize "free".
1259 * gdbarch.h, gdbarch.c: Re-generate.
1260
153721e6
AC
12612003-07-22 Andrew Cagney <cagney@redhat.com>
1262
1263 * configure.in (build_warnings): Add -Wformat-nonliteral.
1264 * configure: Re-generate.
1265
c193f044 12662003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1267
1268 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1269
c3228f12
EZ
12702003-07-22 Elena Zannoni <ezannoni@redhat.com>
1271
1272 * findvar.c (read_var_value): Remove case for thread local storage
1273 variables. It is now entirely handled by the dwarf2 location
1274 expression code.
1275 * printcmd.c (address_info): Ditto.
1276 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1277 enumeration value.
1278 (struct symbol): Remove objfile field, which was used by
1279 LOC_THREAD_LOCAL_STATIC only.
1280 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1281 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1282 usage of objfile pointer.
1283 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1284 thread local variables.
1285 Add include of objfiles.h.
1286 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1287 storage variables.
1288 * Makefile.in (dwarf2loc.o): Update dependencies.
1289
aef9bcd2
AC
12902003-07-22 Andrew Cagney <cagney@redhat.com>
1291
1292 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1293 get_frame_base.
1294 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1295 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1296 (struct value): Add opaque declaration.
1297 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1298
d95a8903
AC
12992003-07-21 Andrew Cagney <cagney@redhat.com>
1300
1301 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1302 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1303
4db73d49
SC
13042003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1305
1306 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1307 regcache_cooked_read_unsigned instead of read_register.
1308 (m68hc11_saved_pc_after_call): Likewise.
1309 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1310 instead of write_register.
1311 (m68hc11_register_type): New function.
1312 (m68hc11_register_virtual_type): Remove.
1313 (m68hc11_store_return_value): Convert to use the regcache.
1314 (m68hc11_extract_struct_value_address): Likewise.
1315 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1316 m68hc11_register_type; undeprecate store_return_value and
1317 extract_struct_value_address.
1318
ef2b8fcd
SC
13192003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1320
1321 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1322 and translate to use regcache.
1323 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1324
625b0b97
AC
13252003-07-18 Andrew Cagney <cagney@redhat.com>
1326
1327 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1328 * gdbarch.h, gdbarch.c: Re-generate.
1329 * i386-tdep.c (i386_gdbarch_init): Do not set
1330 DWARF2_BUILD_FRAME_INFO.
1331 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1332 unconditionally.
1333 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1334 DWARF2_BUILD_FRAME_INFO.
1335
22b0d388
AC
13362003-07-18 Andrew Cagney <cagney@redhat.com>
1337
1338 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1339 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1340
1ce5d6dd
AC
13412003-07-18 Andrew Cagney <cagney@redhat.com>
1342
1343 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1344 frame_unwind_address_in_block, instead of frame_pc_unwind.
1345 (dwarf2_frame_cache): Ditto.
1346
e6e5e94c
AC
13472003-07-18 Andrew Cagney <cagney@redhat.com>
1348
1349 * user-regs.h (struct gdbarch): Declare opaque.
1350 * ui-out.h (struct ui_file): Declare opaque.
1351 * dwarf2-frame.h (struct frame_info): Declare opaque.
1352
5483d879
KW
13532003-07-18 Kris Warkentin <kewarken@qnx.com>
1354
1355 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1356 #include "...".
1357 (procfs_meminfo): Change strerror to safe_strerror.
1358 (procfs_can_run): Remove K&R badness.
1359
278a7cf7
MS
13602003-07-17 Michael Snyder <msnyder@redhat.com>
1361
1362 * remote-sim.c: Comment typo fix.
1363
606e3b82
AC
13642003-07-17 Andrew Cagney <cagney@redhat.com>
1365
1366 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1367 configure.
1368 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1369 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1370 GDB_MULTI_ARCH_PARTIAL.
1371
c43af07c
EZ
13722003-07-17 Elena Zannoni <ezannoni@redhat.com>
1373
1374 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1375 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1376 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1377
3b85b0f1
TR
13782003-07-16 Theodore A. Roth <troth@openavr.org>
1379
1380 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1381 found.
1382 (avr_frame_unwind_cache): Don't unwind FP for main.
1383 Update a comment.
1384 Save the computed prev_sp.
1385 (avr_saved_regs_unwinder): Remove function.
1386 (avr_frame_prev_register): Use PC unwind logic from
1387 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1388
336d1bba
AC
13892003-07-16 Andrew Cagney <cagney@redhat.com>
1390
1391 * frame-base.h (frame_base_p_ftype): Delete definition.
1392 (frame_base_append_predicate): Delete declaration.
1393 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1394 (frame_unwind_append_predicate): Delete declaration.
1395 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1396 (append_predicate): Delete parameter "p".
1397 (frame_unwind_append_predicate): Delete function.
1398 (frame_unwind_append_sniffer): Update call to append_predicate.
1399 (frame_unwind_free): Delete function.
1400 (_initialize_frame_unwind): Pass NULL as "free" to
1401 register_gdbarch_data.
1402 (frame_unwind_init): Append the dummy_frame_sniffer.
1403 (frame_unwind_find_by_frame): Simplify.
1404 * frame-base.c (struct frame_base_table): Delete field "p".
1405 (append_predicate): Delete parameter "p".
1406 (frame_base_append_predicate): Delete function.
1407 (frame_base_append_sniffer): Update call to append_predicate.
1408 (frame_base_free): Delete function.
1409 (frame_base_find_by_frame): Simplify.
1410 (_initialize_frame_base): Pass NULL as "free" to
1411 register_gdbarch_data.
1412 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1413 (x86_64_sigtramp_frame_sniffer): Replace
1414 "x86_64_sigtramp_frame_p".
1415 (x86_64_init_abi): Set the frame unwind sniffers.
1416 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1417 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1418 (m68k_gdbarch_init): Set the frame unwind sniffers.
1419 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1420 "i386_sigtramp_frame_p".
1421 (i386_frame_sniffer): Replace "i386_frame_p".
1422 (i386_gdbarch_init): Set the frame unwind sniffers.
1423 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1424 (avr_gdbarch_init): Set the frame unwind sniffers.
1425 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1426 "alpha_sigtramp_frame_p"
1427 (alpha_heuristic_frame_sniffer): Replace
1428 "alpha_heuristic_frame_p".
1429 (alpha_gdbarch_init): Set the frame unwind sniffers.
1430 (alpha_dwarf2_init_abi): Ditto.
1431 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1432 "alpha_debug_frame_p".
1433 (alpha_mdebug_frame_base_sniffer): Replace
1434 "alpha_mdebug_frame_base_p".
1435 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1436 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1437 (d10v_gdbarch_init): Set the frame unwind sniffer.
1438 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1439 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1440 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1441 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1442 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1443 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1444
48db5a3c
CV
14452003-07-16 Michael Snyder <msnyder@redhat.com>
1446
1447 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1448 should go thru sh_dsp_register_sim_regno, else the dsp regs
1449 will not get the right values.
1450
14512003-07-16 Corinna Vinschen <vinschen@redhat.com>
1452
1453 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1454 deprecated_store_floating by call to store_typed_floating.
1455 (sh_sh4_register_convert_to_raw): Substitute call to
1456 deprecated_extract_floating by call to extract_typed_floating.
1457
14582003-07-16 Corinna Vinschen <vinschen@redhat.com>
1459
1460 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1461
14622003-07-16 Corinna Vinschen <vinschen@redhat.com>
1463
1464 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1465 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1466 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1467 as possible.
1468 (do_pseudo_register): Remove.
1469 (sh_push_dummy_code): New function.
1470 (sh64_store_struct_return): Rename from sh_store_struct_return.
1471 Only called for sh64 now.
1472 (sh_extract_struct_value_address): Regcache'ify.
1473 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1474 and accomodate new tasks.
1475 (sh64_push_return_address): Rename from sh_push_return_address.
1476 Only called for sh64 now.
1477 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1478 Regcache'ify.
1479 (sh3e_sh4_extract_return_value): Regcache'ify.
1480 (sh_default_store_return_value): Ditto.
1481 (sh3e_sh4_store_return_value): Ditto.
1482 (sh_default_register_byte): Remove.
1483 (sh_sh4_register_byte): Remove.
1484 (sh_default_register_raw_size): Remove.
1485 (sh_sh4_register_raw_size): Remove.
1486 (sh_register_virtual_size): Remove.
1487 (sh_sh3e_register_virtual_type): Remove.
1488 (sh_sh3e_register_type): New function.
1489 (sh_sh4_register_virtual_type): Remove.
1490 (sh_sh4_register_type): New function.
1491 (sh_default_register_virtual_type): Remove.
1492 (sh_default_register_type): New function.
1493 (do_fv_register_info): Add parameters to accomodate call from
1494 sh_print_registers_info.
1495 (do_dr_register_info): Ditto.
1496 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1497 Add parameters to accomodate call from sh_print_registers_info.
1498 (sh_do_fp_register): Ditto.
1499 (sh64_do_pseudo_register): Call do_dr_register_info,
1500 do_fv_register_info and sh_do_fp_register with default parameters.
1501 (sh_do_register): Add parameters to accomodate call from
1502 sh_print_registers_info.
1503 (sh_print_register): Ditto.
1504 (sh_print_registers_info): Rename from sh_do_registers_info.
1505 Add parameters to be used as gdbarch_print_registers_info
1506 implementation. Accomodate removed do_pseudo_register function
1507 pointer.
1508 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1509 function pointer. Call sh_print_register with default parameters.
1510 (sh64_do_registers_info): Call sh_print_registers_info instead of
1511 sh_do_registers_info.
1512 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1513 detection of deprecated vs. non-deprecated functionality.
1514 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1515 function pointer assignments by direct function calls.
1516
e8a89fe2
AC
15172003-07-15 Andrew Cagney <cagney@redhat.com>
1518
1519 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1520 (frame_register_unwind, create_new_frame): Ditto.
1521 (legacy_get_prev_frame, get_frame_type): Ditto.
1522 (get_frame_base_address): Use frame_base_find_by_frame.
1523 (get_frame_locals_address): Use frame_base_find_by_frame.
1524 (get_frame_args_address): Use frame_base_find_by_frame.
1525 * frame-base.h (frame_base_sniffer_ftype): Declare.
1526 (frame_base_append_sniffer): Declare.
1527 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1528 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1529 (frame_base_append_sniffer): New function.
1530 (frame_base_append_predicate): Add a NULL sniffer.
1531 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1532 (struct frame_base_table): Add "sniffer".
1533 (frame_base_free): Free the "sniffer" table.
1534 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1535 (frame_unwind_append_sniffer): Declare.
1536 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1537 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1538 (struct frame_unwind_table): Add "sniffer", delete "middle".
1539 (append_predicate): Add "sniffer" parameter, append the sniffer.
1540 (frame_unwind_init): Update append_predicate call.
1541 (frame_unwind_append_sniffer): New function.
1542 (frame_unwind_append_predicate): Update append_predicate call.
1543 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1544
0714963c
AC
15452003-07-15 Andrew Cagney <cagney@redhat.com>
1546
1547 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1548 before code inhibiting repeated unwind attempts. Add to
1549 commentary on that test's problems.
1550 * blockframe.c (inside_main_func): Look for "main" in the minimal
1551 symbol table.
1552 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1553 identical.
1554
d9170e22
AC
15552003-07-15 Andrew Cagney <cagney@redhat.com>
1556
1557 * complaints.c (struct explanation): Define.
1558 (struct complaints): Change type of "explanation" to "struct
1559 explanation".
1560 (symfile_explanations): Convert to a "struct explanation" table.
1561 (vcomplaint): Update.
1562
eba29c8c
ML
15632003-07-15 Michal Ludvig <mludvig@suse.cz>
1564
1565 * x86-64-linux-nat.c (regmap): Removed.
1566 (supply_gregset, fill_gregset): Call
1567 x86_64_linux_(fill,supply)_gregset functions.
1568 * x86-64-linux-tdep.c (USER_*): New defines.
1569 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1570 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1571 New functions.
1572 (fetch_core_registers): Ditto.
1573 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1574 * x86-64-linux-tdep.h: New file.
1575 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1576 and core-regset.o.
1577 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1578
68cc0bfb
MK
15792003-07-13 Mark Kettenis <kettenis@gnu.org>
1580
88a115f7
MK
1581 * x86-64-tdep.c (x86_64_store_return_value): Use
1582 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1583
68cc0bfb
MK
1584 * configure.host: Add x86_64-*-freebsd*.
1585 * configure.tgt: Add x86_64-*-freebsd*.
1586 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1587 * amd64fbsd-nat.c: New file.
1588 * amd64fbsd-tdep.c: New file.
1589 * config/i386/nm-fbsd64.h: New file.
1590 * config/i386/fbsd64.mh: New file.
1591 * config/i386/fbsd64.mt: New file.
1592
138e7be5
MK
15932003-07-11 Mark Kettenis <kettenis@gnu.org>
1594
1595 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1596 `sc_regs_offset' and `sc_fpregs_offset'.
1597 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1598 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1599 (alpha_sigtramp_register_address): Rewrite to use new members of
1600 `struct gdbarch_tdep'.
1601 (alpha_gdbarch_init): Initialize new members of struct
1602 gdbarch_tdep'.
1603 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1604 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1605 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1606 (alphafbsd_pc_in_sigtramp): Implement.
1607 (alphafbsd_sigtramp_offset): New function.
1608 (alphafbsd_sigcontext_addr): New function.
1609 (alphafbsd_init_abi): Initialize signal trampoline related members
1610 of `struct gdbarch_tdep'.
1611 (_initialize_alphafbsd_tdep): Add prototype.
1612
95303a68
TR
16132003-07-11 Theodore A. Roth <troth@openavr.org>
1614
ba292e4c
TR
1615 * Makefile.in (install-only): Quote sed expression when generating
1616 transformed_name.
95303a68 1617
6896c0c7
RH
16182003-07-11 Richard Henderson <rth@redhat.com>
1619
1620 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1621 * dwarf2-frame.c: Include complaints.h.
1622 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1623 variable initialization; return NULL on error.
1624 (decode_frame_entry): New.
1625
8edd5d01
AC
16262003-07-11 Andrew Cagney <cagney@redhat.com>
1627
c4a09524
AC
1628 * frame.h (frame_address_in_block): Delete declaration.
1629 * blockframe.c (frame_address_in_block): Delete function.
1630 (get_frame_block): Use get_frame_address_in_block.
1631 (block_innermost_frame): Ditto.
1632 * stack.c (print_frame, backtrace_command_1): Ditto.
1633
8edd5d01
AC
1634 * frame.h (get_frame_address_in_block): Declare.
1635 (frame_unwind_address_in_block): Declare.
1636 * frame.c (frame_unwind_address_in_block): New function.
1637 (get_frame_address_in_block): New function.
1638
f7968451
AC
16392003-07-10 Andrew Cagney <cagney@redhat.com>
1640
1641 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1642 pre-default. Note: re-generate has no effect.
1643
ae99b398
AC
16442003-07-10 Andrew Cagney <cagney@redhat.com>
1645
1646 * gdbarch.sh: When a variable, but not a function, compare against
1647 0. Fix problem in previous patch.
1648 * gdbarch.c: Re-generate.
1649
956ac328
AC
16502003-07-10 Andrew Cagney <cagney@redhat.com>
1651
1652 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1653 functions against NULL, not 0.
1654 * gdbarch.c: Re-generate.
1655
287c3240
FF
16562003-07-10 Fred Fish <fnf@ninemoons.com>
1657
1658 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1659 null string instead of a null pointer.
1660 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1661
32f63c4b
MS
16622003-07-09 Michael Snyder <msnyder@redhat.com>
1663
1664 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1665
402ecd56
MK
16662003-07-09 Mark Kettenis <kettenis@gnu.org>
1667
1668 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1669 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1670 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1671 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1672 * x86-64-tdep.c: ... from here.
1673
c481dac7
AS
16742003-07-09 Andreas Schwab <schwab@suse.de>
1675
1676 * m68k-tdep.h (enum struct_return): Define.
1677 (struct gdbarch_tdep): Add struct_return.
1678 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1679 bytes are padded to the right, not to the left. Pass struct value
1680 address in register %a1, not on stack.
1681 (m68k_use_struct_convention): New function.
1682 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1683 struct_return in tdep to pcc_struct_return.
1684 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1685 reg_struct_return.
1686
64176fa3
JB
16872003-07-09 Joel Brobecker <brobecker@gnat.com>
1688
1689 * somread.c (som_symfile_offsets): Fix compilation error.
1690
96a4ee76
AC
16912003-07-09 Andrew Cagney <cagney@redhat.com>
1692
1693 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1694 Add comments about the checks.
1695
1517c6d1
AC
16962003-07-08 Andrew Cagney <cagney@redhat.com>
1697
1698 * Makefile.in: Make dependency section headers consistent.
1699 (config_h): Move to $BUILD headers section.
1700 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1701 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1702 (ada-exp.tab.c): Move to YACC/LEX section.
1703 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1704 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1705
dc5dd1eb
KW
17062003-07-08 Kris Warkentin <kewarken@qnx.com>
1707
1708 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1709 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1710 of strerror with safe_strerror, use ISO C function definitions,
1711 and replace instances of sprintf with snprintf.
dc5dd1eb 1712
612dde91
AC
17132003-07-07 Andrew Cagney <cagney@redhat.com>
1714
1715 * frame.c (get_prev_frame): Enable check for identical frames.
1716 Update comments. Update error messages.
1717
492c11d3
JB
17182003-07-07 Joel Brobecker <brobecker@gnat.com>
1719
1720 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1721
376a5a49
JB
17222003-07-07 Joel Brobecker <brobecker@gnat.com>
1723
1724 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1725 sort_symtab_syms, no longer necessary.
1726
22b4a9ad
JB
17272003-07-07 Joel Brobecker <brobecker@gnat.com>
1728
1729 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1730
5bbcb741
JB
17312003-07-07 Joel Brobecker <brobecker@gnat.com>
1732
1733 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1734 (mips_register_byte): Likewise.
1735
c139e7d9
DJ
17362003-07-07 Daniel Jacobowitz <drow@mvista.com>
1737
1738 * Makefile.in (sparc_tdep_h): New.
1739 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1740 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1741 * sparc-linux-nat.c: Include "sparc-tdep.h".
1742 * sparc-nat.c: Likewise.
1743 * sparc-tdep.c: Likewise.
1744 * sparc64nbsd-nat.c: Likewise.
1745 * sparcnbsd-nat.c: Likewise.
1746 * sparcnbsd-tdep.c: Likewise.
1747 * sparc-tdep.h: New file.
1748 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1749 and sparc_npc_regnum.
1750
fd8f87c5
DJ
17512003-07-07 Daniel Jacobowitz <drow@mvista.com>
1752
1753 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1754 (mips_linux_cannot_store_register): List supported instead of
1755 unsupported registers.
1756
13adf674
DJ
17572003-07-07 Daniel Jacobowitz <drow@mvista.com>
1758
1759 * disasm.c (dump_insns): Separate instructions from addresses.
1760
8de307e0
AS
17612003-07-07 Andreas Schwab <schwab@suse.de>
1762
1763 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1764 dependencies.
1765 * m68k-tdep.c (NUM_FREGS): Delete.
1766 (SIG_PC_FP_OFFSET): Delete.
1767 (TARGET_M68K): Delete.
1768 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1769 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1770 P_MOVEL_SP, P_MOVEML_SP): Define.
1771 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1772 P_TRAP): Delete.
1773 (m68k_register_raw_size): Delete.
1774 (m68k_register_virtual_size): Delete.
1775 (m68k_register_type): Renamed from m68k_register_virtual_type and
1776 add gdbarch argument.
1777 (m68k_store_struct_return): Delete.
1778 (m68k_deprecated_extract_return_value): Delete.
1779 (m68k_deprecated_extract_struct_value_address): Delete.
1780 (m68k_frame_chain): Delete.
1781 (m68k_frame_saved_pc): Delete.
1782 (m68k_fix_call_dummy): Delete.
1783 (m68k_push_dummy_frame): Delete.
1784 (m68k_pop_frame): Delete.
1785 (m68k_extract_return_value): New function.
1786 (m68k_store_return_value): Rewrite using regcache.
1787 (m68k_extract_struct_value_address): Rewrite using regcache.
1788 (m68k_push_dummy_call): New function.
1789 (struct m68k_frame_cache): Define.
1790 (m68k_alloc_frame_cache): New function.
1791 (m68k_analyze_frame_setup): New function.
1792 (m68k_analyze_register_saves): New function.
1793 (m68k_analyze_prologue): New function.
1794 (m68k_skip_prologue): Rewrite using above functions.
1795 (m68k_unwind_pc): New function.
1796 (m68k_frame_cache): New function.
1797 (m68k_frame_this_id): New function.
1798 (m68k_frame_prev_register): New function.
1799 (m68k_frame_unwind): New variable.
1800 (m68k_frame_p): New function.
1801 (m68k_sigtramp_frame_cache): New function.
1802 (m68k_sigtramp_frame_this_id): New function.
1803 (m68k_sigtramp_frame_prev_register): New function.
1804 (m68k_sigtramp_frame_unwind): New variable.
1805 (m68k_sigtramp_frame_p): New function.
1806 (m68k_frame_base_address): New function.
1807 (m68k_frame_base): New function.
1808 (m68k_unwind_dummy_id): New function.
1809 (fill_gregset): Use regcache_collect.
1810 (fill_fpregset): Likewise.
1811 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1812 defined.
1813 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1814 deprecated_init_frame_pc, deprecated_store_struct_return,
1815 deprecated_extract_return_value, deprecated_store_return_value,
1816 deprecated_frame_chain, deprecated_frame_saved_pc,
1817 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1818 deprecated_register_virtual_size,
1819 deprecated_max_register_raw_size,
1820 deprecated_max_register_virtual_size,
1821 deprecated_register_virtual_type, deprecated_register_size,
1822 deprecated_register_byte, deprecated_register_bytes,
1823 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1824 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1825 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1826 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1827 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1828 deprecated_push_dummy_frame, deprecated_pop_frame,
1829 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1830 only if SYSCALL_TRAP is defined. Set extract_return_value,
1831 store_return_value, extract_struct_value_address, register_type,
1832 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1833 predicates.
1834 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1835 M68K_MAX_REGISTER_SIZE): Define.
1836 (struct m68k_sigtramp_info): Define.
1837 (struct gdbarch_tdep): Add get_sigtramp_info.
1838 * m68klinux-nat.c (fetch_register): Use register_size instead of
1839 REGISTER_RAW_SIZE. Don't put assignment in if.
1840 (store_register): Likewise.
1841 (fetch_inferior_registers): Likewise.
1842 (store_inferior_registers): Likewise.
1843 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1844 (m68k_linux_frame_saved_pc): Delete.
1845 (m68k_linux_sigcontext_reg_offset,
1846 m68k_linux_ucontext_reg_offset): Define.
1847 (m68k_linux_get_sigtramp_info): New function.
1848 (m68k_linux_extract_return_value): Rewrite using regcache.
1849 (m68k_linux_store_return_value): Likewise.
1850 (m68k_linux_extract_struct_value_address): Likewise.
1851 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1852 Don't set deprecated_frame_saved_pc,
1853 deprecated_extract_return_value, deprecated_store_return_value,
1854 deprecated_extract_struct_value_address. Set
1855 extract_return_value, store_return_value,
1856 extract_struct_value_address.
1857
eb8bc282
AC
18582003-07-07 Andrew Cagney <cagney@redhat.com>
1859
1860 * expprint.c: Include "user-regs.h" instead of "frame.h".
1861 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1862 frame_map_regnum_to_name.
1863 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1864 (frame_map_name_to_regnum): Simplify, call
1865 user_reg_map_name_to_regnum.
1866 (frame_map_regnum_to_name): Simplify, call
1867 user_reg_map_regnum_to_name.
1868 (frame_register_unwind): Update.
1869 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1870 (_initialize_frame_reg): Call user_reg_add_builtin.
1871 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1872 (value_of_register): Use value_of_user_reg.
1873 * eval.c (evaluate_subexp_standard): Update.
1874 * parse.c (write_dollar_variable): Update.
1875 * d10v-tdep.c (d10v_print_registers_info): Update.
1876 * infcmd.c (registers_info): Update.
1877 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1878 (builtin_regs_h): Delete macro.
1879 (user_regs_h): Define.
1880 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1881 (builtin-regs.o): Delete target.
1882 (user-regs.o): Specify dependencies.
1883 (expprint.o): Update dependencies.
1884 (findvar.o): Update dependencies.
1885 (frame.o): Update dependencies.
1886 (std-regs.o): Update dependencies.
1887
9f476a01
CF
18882003-07-06 Christopher Faylor <cgf@redhat.com>
1889
1890 * win32-nat.c (solib_symbols_add): Use one variable for all section
1891 address stuff. Pass variable rather than address of variable to
1892 safe_symbol_file_add.
1893
a731b831
AS
18942003-07-06 Andreas Schwab <schwab@suse.de>
1895
1896 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1897
9f83329d
JB
18982003-07-04 Joel Brobecker <brobecker@gnat.com>
1899
1900 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1901
27e28cc5
KW
19022003-07-04 Kris Warkentin <kewarken@qnx.com>
1903
1904 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1905
19062003-07-04 Kris Warkentin <kewarken@qnx.com>
1907
1908 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1909 * config/i386/nto.mh: New file.
1910 * config/i386/nm-nto.h: New file.
1911 * configure.host: Add i[3456]86-*-nto*.
1912
100f2e98
JB
19132003-07-03 Joel Brobecker <brobecker@gnat.com>
1914
1915 * remote-vx.c (vx_add_symbols): Fix compilation error.
1916
e23457df
AC
19172003-07-03 Andrew Cagney <cagney@redhat.com>
1918
1919 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1920 * gdbarch.h, gdbarch.c: Re-generate.
1921 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1922 (legacy_register_name): Declare.
1923 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1924 (REGISTER_NAME): Define.
1925 * sparc-tdep.c (legacy_register_name): New function.
1926 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1927 (REGISTER_NAME): Define.
1928 (hppa64_register_name): Declare.
1929 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1930 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1931 (hppa64_register_name): New function.
1932 (hppa_register_name): New function.
1933 * arch-utils.c (legacy_register_name): Delete.
1934 * arch-utils.h (legacy_register_name): Delete.
1935
38caaeec
DJ
19362003-07-03 Daniel Jacobowitz <drow@mvista.com>
1937
1938 * cli/cli-interp.c (cli_interpreter_resume): Update the
1939 cli_uiout's stream to gdb_stdout.
1940
dadd712e
AC
19412003-07-03 Andrew Cagney <cagney@redhat.com>
1942
1943 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1944 predicate.
1945 * gdbarch.h, gdbarch.c: Re-generate.
1946 * regcache.c (init_regcache_descr): Use legacy code when either
1947 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1948
c7f1390e
DJ
19492003-07-02 Daniel Jacobowitz <drow@mvista.com>
1950
1951 * NEWS: Move "set logging" entry into GDB 6.0 section.
1952
4bc8c588
JB
19532003-07-02 Jim Blandy <jimb@redhat.com>
1954
a9dd42f1
JB
1955 * s390-tdep.c (struct frame_extra_info): new member:
1956 'stack_bought_valid'.
1957 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1958 initialize fextra_info->stack_bought.
1959 (s390_frameless_function_invocation): Don't trust the value of
1960 fextra_info_ptr->stack_bought unless
1961 fextra_info->stack_bought_valid is set.
1962
4bc8c588
JB
1963 New S390 prologue analyzer.
1964 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1965 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1966 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1967 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1968 compute_x_addr, s390_on_stack, s390_store,
1969 s390_get_signal_frame_info): New functions.
1970 (S390_NUM_SPILL_SLOTS): New macro.
1971 (s390_get_frame_info): Rewritten.
1972 (is_arg_reg): Deleted.
1973
1974 Break out the decoding of S/390 instructions into separate
1975 functions, to make it more legible, and easier to check
1976 against the spec.
1977 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1978 is_rx, is_rxe): New functions.
1979 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1980 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1981 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1982 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1983 enums for opcode values. (Is this an improvement?)
1984
fd13a04a
AC
19852003-07-02 Andrew Cagney <cagney@redhat.com>
1986
1987 * i386-tdep.c: Revert change committed as part of trad-frame code
1988 below.
1989
3f8091c1
DJ
19902003-07-02 Daniel Jacobowitz <drow@mvista.com>
1991
1992 * breakpoint.c (insert_catchpoint): Make static.
1993
8dd5115e
AS
19942003-07-02 Andreas Schwab <schwab@suse.de>
1995
1996 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1997 former ia64_push_arguments and ia64_push_return_address, and use
1998 regcache functions instead of read/write_register.
1999 (ia64_gdbarch_init): Set push_dummy_call instead of
2000 deprecated_push_arguments and deprecated_push_return_address.
2001
a2229c23
AJ
20022003-07-01 Andreas Jaeger <aj@suse.de>
2003
2004 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2005 before the call.
2006 Set %rax only to number of SSE registers used.
2007
3b3850e8
AC
20082003-07-01 Andrew Cagney <cagney@redhat.com>
2009
2010 * trad-frame.h: Update comments, a -1 .addr is reserved.
2011 (trad_frame_value_p, trad_frame_addr_p): Declare.
2012 (trad_frame_reg_p): Declare.
2013 (trad_frame_set_value): Rename trad_frame_register_value.
2014 (trad_frame_set_unknown): Declare.
2015 * trad-frame.c (trad_frame_realreg_p): New function.
2016 (trad_frame_addr_p, trad_frame_value_p): New function.
2017 (trad_frame_set_unknown): New function.
2018 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2019 (trad_frame_prev_register): Use trad_frame_realreg_p,
2020 trad_frame_addr_p and trad_frame_value_p.
2021 (trad_frame_set_value): Rename trad_frame_register_value.
2022 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2023 and trad_frame_set_value.
a2229c23 2024
4d819d0e
JB
20252003-06-30 Jim Blandy <jimb@redhat.com>
2026
2027 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2028 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2029 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2030 for 16 registers, and then 32 more bytes.
2031 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2032 New macros.
2033 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2034 Move up in the file, since it's now used by is_simple_arg.
2035 (is_simple_arg): Don't assume registers are four bytes long.
2036 Exclude all double arguments. Extended floats are not simple
2037 args.
2038 (is_power_of_two): New function.
2039 (pass_by_copy_ref): Call is_power_of_two, and check that the
2040 length fits in a register, rather than listing all the acceptable
2041 sizes. Extended floats are not passed by reference.
2042 (s390_push_arguments): Don't assume registers are four bytes long.
2043 Reserve an argument register to point to the buffer for structures
2044 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2045 S390_STACK_FRAME_OVERHEAD.
2046
1ad828f1
AS
20472003-06-30 Andreas Schwab <schwab@suse.de>
2048
2049 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2050 format error message.
2051
39b00981
JB
20522003-06-30 Joel Brobecker <brobecker@gnat.com>
2053
2054 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2055
b2a7f303
DC
20562003-06-30 David Carlton <carlton@kealia.com>
2057
2058 Band-aid for PR c++/1245.
2059 * Makefile.in (cp-support.o): Depend on complaints_h.
2060 * cp-support.c: Include complaints.h. Add declaration for
2061 find_last_component.
2062 (cp_find_first_component): Separate code into
2063 cp_find_first_component_aux.
2064 (cp_find_first_component_aux): Call demangled_name_complaint.
2065 (demangled_name_complaint): New.
2066
a257b5bb
AC
20672003-06-30 Andrew Cagney <cagney@redhat.com>
2068
2069 * remote.c (remote_write_bytes): Explicitly compute and then use
2070 the payload size. Update comments to reflect. Fixes problem of
2071 GDB not sending small packets as found by Fred Fish.
2072
0a2cfde4
AC
20732003-06-30 Andrew Cagney <cagney@redhat.com>
2074
2075 * remote.c (remote_async_wait): Fix -Wformat problem.
2076
3fcb8548
AC
20772003-06-29 Andrew Cagney <cagney@redhat.com>
2078
2079 * remote.c (remote_wait): Call error, and not warning, when the
2080 packet is corrupt.
2081 (remote_async_wait): Ditto.
2082
9f9970a3
DJ
20832003-06-29 Daniel Jacobowitz <drow@mvista.com>
2084
2085 * sparc-tdep.c (sparc_y_regnum): Make external again.
2086
83a8ccca
DJ
20872003-06-29 Daniel Jacobowitz <drow@mvista.com>
2088
2089 * cli/cli-logging.c (pop_output_files): Add void to function
2090 definition.
2091
d2cf594a
AC
20922003-06-29 Andrew Cagney <cagney@redhat.com>
2093
2094 * frame.c (frame_register_unwind): Use unsigned char when dumping
2095 the buffer contents.
2096
0fac0b41
DJ
20972003-06-28 Daniel Jacobowitz <drow@mvista.com>
2098
2099 * cli/cli-logging.c: New file.
2100 * cli-out.c (struct ui_out_data): Add original_stream.
2101 (cli_redirect): New function.
2102 (cli_ui_out_impl): Add cli_redirect.
2103 (cli_out_new): Initialize original_stream.
2104 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2105 (uo_redirect, ui_out_redirect): New.
2106 * ui-out.h (struct ui_out_impl): Add redirect member.
2107 (redirect_ftype): New.
2108 (ui_out_redirect): Add prototype.
2109 * Makefile.in: Add rules for cli-logging.c.
2110 * NEWS: Mention "set logging".
2111
88a07d7c
EZ
21122003-06-27 Elena Zannoni <ezannoni@redhat.com>
2113
2114 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2115
4eb58876
AC
21162003-06-27 Andrew Cagney <cagney@redhat.com>
2117
2118 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2119 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2120 * avr-tdep.c (avr_call_dummy_address): Delete function.
2121 (avr_gdbarch_init): Do not set call_dummy_address.
2122
1549f619
EZ
21232003-06-27 Elena Zannoni <ezannoni@redhat.com>
2124
2125 * symfile.c (syms_from_objfile): Move variables to inner block.
2126 Move the checks for the non-mainline case a bit earlier to avoid
2127 doing some useless computations.
2128
3cb3398d
EZ
21292003-06-27 Elena Zannoni <ezannoni@redhat.com>
2130
2131 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2132
3799ccc6
EZ
21332003-06-26 Elena Zannoni <ezannoni@redhat.com>
2134
2135 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2136 sections.
2137
ce1f6491
MC
21382003-06-26 Michael Chastain <mec@shout.net>
2139
2140 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2141 gdb/testsuite/gdb.c++/pr-1210.exp.
2142
d958dfd0
AC
21432003-06-26 Andrew Cagney <cagney@redhat.com>
2144
2145 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2146 altivec_expression.h and altivec_registers.h.
2147
d31431ed
AC
21482003-06-26 Andrew Cagney <cagney@redhat.com>
2149
2150 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2151 info->mach when MIPS16. Patch suggested by Fred Fish.
2152
714b1282
AC
21532003-06-26 Andrew Cagney <cagney@redhat.com>
2154
2155 * utils.c (internal_vproblem): Print the problem to a reason
2156 buffer and then pass to query. Make the msg variable more local.
2157
42efa47a
AC
21582003-06-26 Andrew Cagney <cagney@redhat.com>
2159
2160 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2161 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2162 * gdbarch.h, gdbarch.c: Re-generate.
2163 * frame-base.c (default_frame_args_address): Update. Use
2164 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2165 not available.
2166 (default_frame_locals_address): Ditto for
2167 DEPRECATED_FRAME_LOCALS_ADDRESS.
2168 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2169 (vax_frame_num_args): Update.
2170 (vax_gdbarch_init): Update.
2171 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2172 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2173 * mcore-tdep.c (mcore_gdbarch_init): Update.
2174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2175 * ia64-tdep.c (ia64_gdbarch_init): Update.
2176 * symtab.h (address_class): Update comments.
2177 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2178 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2179 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2180 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2181 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2182 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2183 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2184 * alpha-mdebug-tdep.c: Update.
2185 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2186
8ffd9b1b
AJ
21872003-06-26 Andreas Jaeger <aj@suse.de>
2188
2189 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2190 of SSE registers so that varargs functions work. Rework handling
2191 of passing arguments on the stack.
2192 (x86_64_store_return_value): Return double and float values in SSE
2193 register.
2194
e8ac10a6
MC
21952003-06-24 Michael Chastain <mec@shout.net>
2196
2197 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2198 the "constructor breakpoints ignored" bug.
2199
986af8e6
DC
22002003-06-25 David Carlton <carlton@kealia.com>
2201
2202 * MAINTAINERS: Update e-mail address.
2203
d64558a5
JB
22042003-06-24 Jim Blandy <jimb@redhat.com>
2205
e538d2d7
JB
2206 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2207
02631ec0
JB
2208 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2209 function.
2210 (ppc_linux_init_abi): Register it as the
2211 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2212
e716d87a
JB
2213 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2214 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2215 method.
2216
d64558a5
JB
2217 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2218 (ppc64_standard_linkage_target): Use it.
2219
449a5da4
AC
22202003-06-23 Andrew Cagney <cagney@redhat.com>
2221
2222 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2223 for 0 "int0" and 4 "int32" sized registers.
2224 * gdbtypes.c (builtin_type_int0): Define.
2225 (build_gdbtypes): Initialize builtin_type_int0.
2226 * gdbtypes.h (builtin_type_int0): Declare.
2227
b2a02dda
SC
22282003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2229
2230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2231 as characters are unsigned.
2232
fba3138e
DJ
22332003-06-22 Daniel Jacobowitz <drow@mvista.com>
2234
2235 PR gdb/1179
2236 * dwarfread.c (struct_type): Skip static fields without crashing.
2237
f6c8180b
AC
22382003-06-22 Andrew Cagney <cagney@redhat.com>
2239
2240 GDB 6.0 branch created.
f2c06f52
AC
2241 * README: Update.
2242 * PROBLEMS: Update. Empty.
2243 * NEWS: Update.
f6c8180b 2244
ae822768
DJ
22452003-06-22 Daniel Jacobowitz <drow@mvista.com>
2246
2247 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2248 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2249
261de166
AC
22502003-06-22 Andrew Cagney <cagney@redhat.com>
2251
2252 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2253 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2254 Velikov.
2255
30e94205
DJ
22562003-06-22 Daniel Jacobowitz <drow@mvista.com>
2257
2258 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2259 compilers.
2260
9e14d721
DJ
22612003-06-21 Daniel Jacobowitz <drow@mvista.com>
2262
2263 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2264 argument of val_print.
2265 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2266 to the address argument of baseclass_offset or target_read_memory.
2267 Do add it to the argument of cp_print_value_fields.
2268
a4b8ebc8
AC
22692003-06-21 Andrew Cagney <cagney@redhat.com>
2270
2271 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2272 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2273 instead of 0..NUM_REGS.
2274 (mips_register_reggroup_p): New function.
2275 (mips_pseudo_register_write): New function.
2276 (mips_pseudo_register_read): New function.
2277 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2278 based on the register's type.
2279 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2280 cooked.
2281 (mips_get_saved_register): Simplify. Assert that REGNO is a
2282 pseudo / cooked.
2283 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2284 (mips_register_type): Replace mips_register_virtual_type. Map
2285 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2286 when available.
2287 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2288 that the register is cooked / virtual.
2289 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2290 Only get the extra info when needed.
2291 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2292 (mips32_heuristic_proc_desc): Fetch the cooked register.
2293 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2294 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2295 (mips_print_register): Use gdbarch_register_type, instead of
2296 REGISTER_VIRTUAL_TYPE.
2297 (print_gp_register_row): Use gdbarch_register_type, instead of
2298 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2299 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2300 Print the pseudo / cooked registers.
2301 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2302 Print the pseudo / cooked registers.
2303 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2304 REG_NUM is pseudo / cooked.
2305 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2306 (mips_n32n64_xfer_return_value): Ditto.
2307 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2308 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2309 (mips_register_sim_regno): New function.
2310 (mips_gdbarch_init): Set deprecated_register_byte,
2311 register_group_p, pseudo_register_write, pseudo_register_read,
2312 register_sim_regno, and num_pseudo_regs. Set register_type,
2313 instead of register_virtual_type.
2314 * Makefile.in (mips-tdep.o): Update dependencies.
2315 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2316 REGISTER_VIRTUAL_TYPE.
2317 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2318 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2319 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2320 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2321 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2322
325ed089
DJ
23232003-06-21 Daniel Jacobowitz <drow@mvista.com>
2324
2325 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2326 * cli/cli-cmds.c: Include "gdb_vfork.h".
2327 (shell_escape): Use vfork.
2328
f0e7d0e8
AC
23292003-06-21 Andrew Cagney <cagney@redhat.com>
2330
c57bb9fa
AC
2331 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2332 32 bit floating-point register saves.
2333
6e51443a
AC
2334 * frame.h (deprecated_unwind_get_saved_register): Delete.
2335 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2336 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2337 and deprecated_get_next_frame_hack instead of
2338 deprecated_unwind_get_saved_register.
2339
ed183c7c
AC
2340 * mips-tdep.c (mips_dump_tdep): Do not print
2341 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2342
f0e7d0e8
AC
2343 * frame.c (get_frame_register): New function.
2344 (frame_unwind_register_signed): New function.
2345 (get_frame_register_signed): New function.
2346 (frame_unwind_register_unsigned): New function.
2347 (get_frame_register_unsigned): New function.
2348 * frame.h: Add comments on naming schema.
2349 (get_frame_register, frame_unwind_register_signed): Declare.
2350 (get_frame_register_signed, get_frame_register_signed): Declare.
2351 (frame_unwind_register_unsigned): Declare.
2352 (get_frame_register_unsigned): Declare.
2353
2224d941
TR
23542003-06-20 Theodore A. Roth <troth@openavr.org>
2355
2356 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2357
8619218d
TR
23582003-06-20 Theodore A. Roth <troth@openavr.org>
2359
2360 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2361 (avr_read_sp): Ditto.
2362
0b1b50c0
DJ
23632003-06-20 Daniel Jacobowitz <drow@mvista.com>
2364
2365 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2366 * config/arm/nm-linux.h: Likewise.
2367 * config/arm/tm-linux.h: Likewise.
2368 * config/ia64/nm-linux.h: Likewise.
2369 * config/ia64/tm-ia64.h: Likewise.
2370 * config/s390/tm-linux.h: Likewise.
2371 * config/s390/tm-s390.h: Likewise.
2372 * s390-nat.c: Likewise.
2373 * s390-tdep.c: Likewise.
2374
2375 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2376 * config/ia64/linux.mt: Likewise.
2377 * config/m68k/linux.mh: Likewise.
2378 * config/mips/linux.mt: Likewise.
2379 * config/powerpc/linux.mh: Likewise.
2380 * config/sh/linux.mt: Likewise.
2381
c8c18e65
KW
23822003-06-19 Kris Warkentin <kewarken@qnx.com>
2383
2384 * solib.c (solib_open): Change tests for whether to search
2385 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2386 comments.
2387
dcccef2e
TR
23882003-06-19 Theodore A. Roth <troth@openavr.org>
2389
2390 * avr-tdep.c (avr_frame_address): Delete function.
2391 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2392 set_gdbarch_frame_args_address.
2393
5861a190
AC
23942003-06-19 Andrew Cagney <cagney@redhat.com>
2395
2396 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2397 (REGISTER_CONVERT_FROM_TYPE): Delete.
2398 (mips_register_convert_to_type): Delete declaration.
2399 (mips_register_convert_from_type): Delete declaration.
2400 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2401 kernel/.
2402
0274a8ce
MS
24032003-06-19 Michael Snyder <msnyder@redhat.com>
2404
2405 * linux-nat.h: New file.
2406 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2407 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2408 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2409 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2410 (linux_make_note_section): Iterate over lwps instead of threads.
2411 (linux_do_thread_registers): Use lwp instead of merged pid.
2412 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2413 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2414 Add dependency on linux_nat_h.
2415
adf5f719
TR
24162003-06-19 Theodore A. Roth <troth@openavr.org>
2417
2418 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2419
6766a268
DJ
24202003-06-19 Daniel Jacobowitz <drow@mvista.com>
2421
2422 * varobj.c (get_type, get_target_type): Use check_typedef.
2423
1171114a
DJ
24242003-06-19 Daniel Jacobowitz <drow@mvista.com>
2425
2426 * breakpoint.c (insert_catchpoint): Call internal_error.
2427
adcf68a2
TR
24282003-06-19 Theodore A. Roth <troth@openavr.org>
2429
2430 * avr-tdep.c (avr_push_dummy_code): Delete function.
2431 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2432
ea67f13b
DJ
24332003-06-19 Daniel Jacobowitz <drow@mvista.com>
2434
2435 * arch-utils.c (default_prepare_to_proceed): Remove.
2436 (generic_prepare_to_proceed): Remove.
2437 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2438 (generic_prepare_to_proceed): Remove prototype.
2439 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2440 * gdbarch.c: Regenerate.
2441 * gdbarch.h: Regenerate.
2442 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2443 * hppah-nat.c (hppa_switched_threads): Remove.
2444 * infrun.c (prepare_to_proceed): New static function, copied from
2445 generic_prepare_to_proceed. Remove select_it argument.
2446 (proceed): Call prepare_to_proceed.
2447 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2448 variables.
2449 (ptrace_wait): Don't set the removed variables.
2450 (hppa_switched_threads): Remove.
2451 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2452 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2453 (lin_lwp_prepare_to_proceed): Remove prototype.
2454 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2455 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2456
4add8633
TR
24572003-06-18 Theodore A. Roth <troth@openavr.org>
2458
2459 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2460 trad-frame.h.
2461 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2462 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2463 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2464 (AVR_PROLOGUE_*): Enumerate prologue types.
2465 (struct frame_extra_info): Remove.
2466 (struct avr_unwind_cache): Define.
2467 (avr_write_sp): Delete function.
2468 (avr_read_fp): Ditto.
2469 (avr_init_extra_frame_info): Ditto.
2470 (avr_pop_frame): Ditto.
2471 (avr_frame_saved_pc): Ditto.
2472 (avr_saved_pc_after_call): Ditto.
2473 (avr_push_return_address): Ditto.
2474 (avr_frame_chain): Ditto.
2475 (avr_store_struct_return): Ditto.
2476 (avr_push_arguments): Ditto.
2477 (avr_scan_prologue): Update comments. Changed to set up the info for
2478 cache unwinding. Now returns end of prologue PC.
2479 (avr_skip_prologue): Better handling of functions lacking a prologue
2480 by using avr_scan_prologue.
2481 (avr_scan_arg_moves): New function.
2482 (avr_saved_regs_unwinder): Ditto.
2483 (avr_frame_unwind_cache): Ditto.
2484 (avr_unwind_pc): Ditto.
2485 (avr_frame_this_id): Ditto.
2486 (avr_frame_prev_register): Ditto.
2487 (avr_frame_p): Ditto.
2488 (avr_frame_base_address ): Ditto.
2489 (avr_unwind_dummy_id): Ditto.
2490 (avr_push_dummy_code): Ditto.
2491 (push_stack_item): Ditto.
2492 (pop_stack_item): Ditto.
2493 (avr_push_dummy_call): Ditto.
2494 (struct stack_item): Define.
2495 (avr_frame_unwind): Declare structure.
2496 (avr_frame_base): Ditto.
2497 (avr_gdbarch_init): Remove calls to
2498 set_gdbarch_deprecated_init_frame_pc,
2499 set_gdbarch_deprecated_target_read_fp,
2500 set_gdbarch_deprecated_dummy_write_sp,
2501 set_gdbarch_deprecated_fp_regnum,
2502 set_gdbarch_deprecated_push_arguments,
2503 set_gdbarch_deprecated_push_return_address,
2504 set_gdbarch_deprecated_pop_frame,
2505 set_gdbarch_deprecated_store_struct_return,
2506 set_gdbarch_deprecated_frame_init_saved_regs,
2507 set_gdbarch_deprecated_init_extra_frame_info,
2508 set_gdbarch_deprecated_frame_chain,
2509 set_gdbarch_deprecated_frame_saved_pc,
2510 set_gdbarch_deprecated_saved_pc_after_call.
2511 Add calls to set_gdbarch_push_dummy_call,
2512 set_gdbarch_push_dummy_code,
2513 frame_unwind_append_predicate,
2514 frame_base_set_default,
2515 set_gdbarch_unwind_dummy_id,
2516 set_gdbarch_unwind_pc.
2517 Wrap a long line.
2518
7be04a68
MS
25192003-06-18 Corinna Vinschen <vinschen@redhat.com>
2520
2521 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2522 registers for H8/300S.
2523 (h8300_print_registers_info): Ditto.
8ffd9b1b 2524 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2525
ae087d01
DJ
25262003-06-18 Daniel Jacobowitz <drow@mvista.com>
2527
2528 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2529 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2530 (lin_lwp_wait): Likewise. Update comments.
2531 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2532 (pull_pid_from_list, linux_record_stopped_pid): New.
2533
07d8f827
SC
25342003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2535
2536 * ada-lang.c (scan_discrim_bound): Name first argument.
2537 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2538 declared by ALL_BLOCK_SYMBOLS.
2539
7cb47b14
SC
25402003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2541
2542 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2543 ("regcache.h"): Include it.
2544 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2545
6ad8ae5c
DJ
25462003-06-17 Daniel Jacobowitz <drow@mvista.com>
2547
2548 * NEWS: Mention gdbserver detach change and "disconnect" command.
2549 * infcmd.c (disconnect_command): New function.
2550 (_initialize_infcmd): Add ``disconnect'' command.
2551 * remote.c (remote_async_detach): Delete.
2552 (remote_detach): Merge remote_async_detach.
2553 (remote_disconnect): New.
2554 (init_remote_ops): Set to_disconnect.
2555 (init_remote_cisco_ops): Likewise.
2556 (init_remote_async_ops): Likewise. Use remote_detach.
2557 * target.c (cleanup_target): Default to_disconnect.
2558 (update_current_target): Inherit to_disconnect.
2559 (target_disconnect, debug_to_disconnect): New functions.
2560 (setup_target_debug): Set to_disconnect.
2561 * target.h (struct target_ops): Add to_disconnect.
2562 (target_disconnect): Add prototype.
2563
687595f9
DJ
25642003-06-17 Daniel Jacobowitz <drow@mvista.com>
2565
2566 * breakpoint.c (insert_catchpoint): New function.
2567 (insert_breakpoints): Use catch_exceptions to call
2568 insert_catchpoint. Disable catchpoints if they fail to insert.
2569
29239a8f
DJ
25702003-06-17 Daniel Jacobowitz <drow@mvista.com>
2571
2572 * symfile.c (reread_symbols): Clear sym_private.
2573
2cdf3c63
AC
25742003-06-17 Andrew Cagney <cagney@redhat.com>
2575
2576 * trad-frame.h (struct frame_info): Add opaque declaration.
2577 * remote-fileio.h (struct cmd_list_element): Add opaque
2578 declaration.
2579 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2580 comments.
2581
cf0e1e0d
DJ
25822003-06-17 Daniel Jacobowitz <drow@mvista.com>
2583
2584 * remote.c (remote_prepare_to_store): Replace call to
2585 deprecated_read_register_bytes with multiple regcache_raw_read
2586 calls.
2587
192cdb19
KW
25882003-06-17 Kris Warkentin <kewarken@qnx.com>
2589
2590 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2591 (nto_find_and_open_solib): Likewise.
2592 (nto_init_solib_absolute_prefix): Likewise.
2593 (_initialize_nto_tdep): Fix indentation.
2594
89929b45
KW
25952003-06-17 Kris Warkentin <kewarken@qnx.com>
2596
2597 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2598
46019f27
KW
25992003-06-17 Kris Warkentin <kewarken@qnx.com>
2600
2601 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2602
1a38736e
JB
26032003-06-17 Jim Blandy <jimb@redhat.com>
2604
2605 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2606
3605c34a
TR
26072003-06-16 Theodore A. Roth <troth@openavr.org>
2608
2609 * avr-tdep.c (avr_extract_return_value): New function.
2610 (avr_gdbarch_init): Set extract_return_value method.
2611
870b3035
AC
26122003-06-16 Andrew Cagney <cagney@redhat.com>
2613
2614 * frame.h (deprecated_get_next_frame_hack): Declare.
2615 * frame.c (legacy_saved_regs_prev_register): Only require
2616 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2617 there are always saved regs.
2618 (deprecated_generic_get_saved_register): Do not require
2619 DEPRECATED_FRAME_INIT_SAVED_REGS.
2620 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2621 use frame ID unwind instead.
2622 (deprecated_get_next_frame_hack): New function.
2623
63d47a7d
CV
26242003-06-16 Corinna Vinschen <vinschen@redhat.com>
2625
2626 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2627 (h8300_push_dummy_call): ...this function. Some minor optimization.
2628 (h8300_push_return_address): Remove.
2629 (h8300_gdbarch_init): Remove calls to
2630 set_gdbarch_deprecated_dummy_write_sp,
2631 set_gdbarch_deprecated_push_arguments and
2632 set_gdbarch_deprecated_push_return_address.
2633 Add call to set_gdbarch_push_dummy_call.
2634
4bb1dc5e
CV
26352003-06-16 Corinna Vinschen <vinschen@redhat.com>
2636
2637 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2638 (E_PSEUDO_EXR_REGNUM): Ditto.
2639 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2640 registers into safe registers.
4bb1dc5e
CV
2641 (h8300_skip_prologue): Check for stm instruction to push registers
2642 used for register variables onto stack.
2643 (gdb_print_insn_h8300): Remove.
2644 (h8300_examine_prologue): Add a comment.
2645 (h8300_register_name): Take pseudo registers into account.
2646 (h8300s_register_name): Ditto.
2647 (h8300sx_register_name): Ditto.
2648 (h8300_print_register): Ditto.
2649 (h8300_print_registers_info): Define "nice" printing order.
2650 (h8300_saved_pc_after_call): Take pseudo registers into account.
2651 (h8300_register_type): Ditto. Return type used for remote connection
2652 when requesting real CCR or EXR register, return actual type when
2653 requesting pseudo CCR or EXR.
2654 (h8300_pseudo_register_read): New function.
2655 (h8300_pseudo_register_write): Ditto.
2656 (h8300_dbg_reg_to_regnum): Ditto.
2657 (h8300s_dbg_reg_to_regnum): Ditto.
2658 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2659 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2660 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2661 set_gdbarch_print_insn architecture dependent.
2662 Call set_gdbarch_pseudo_register_read and
2663 set_gdbarch_pseudo_register_write.
2664 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2665
a59fe496
AC
26662003-06-16 Andrew Cagney <cagney@redhat.com>
2667
2668 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2669 * gdbarch.h, gdbarch.c: Re-generate.
2670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2671 * s390-tdep.c (s390_gdbarch_init): Update.
2672 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2673 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2674 * mips-tdep.c (mips_gdbarch_init): Update.
2675 * mcore-tdep.c (mcore_gdbarch_init): Update.
2676 * cris-tdep.c (cris_gdbarch_init): Update.
2677 * infcall.c (call_function_by_hand): Update.
2678 * ia64-tdep.c (ia64_push_arguments): Update comment.
2679 * frame.c (legacy_get_prev_frame): Do not assume
2680 SAVE_DUMMY_FRAME_TOS_P.
2681 * dummy-frame.c (find_dummy_frame): Update comment.
2682
6f4e5a41
AC
26832003-06-16 Andrew Cagney <cagney@redhat.com>
2684
2685 * regcache.c (do_cooked_read): Do not use register_valid_p.
2686
72fab697
TR
26872003-06-15 Theodore A. Roth <troth@openavr.org>
2688
2689 * avr-tdep.c (avr_register_type): Remove a blank line.
2690 (avr_scan_prologue): Correct some comments.
2691
e3d8b004
TR
26922003-06-15 Theodore A. Roth <troth@openavr.org>
2693
2694 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2695 prologue types.
8ffd9b1b 2696 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2697 option.
2698 Add code to scan -mcall-prologues for mega devices.
2699
866b76ea
TR
27002003-06-15 Theodore A. Roth <troth@openavr.org>
2701
2702 * avr-tdep.c (avr_register_byte): Delete function.
2703 (avr_register_raw_size): Delete function.
2704 (avr_register_virtual_size): Delete function.
2705 (avr_register_virtual_type): Delete function.
2706 (avr_register_type): New function.
2707 (avr_address_to_pointer): Remove unused code.
2708 (avr_read_fp): Need to read FP as two separate bytes due to change to
2709 avr_register_type() usage.
2710 (avr_gdbarch_init): Don't set deprecated_register_size.
2711 Don't set deprecated_register_bytes.
2712 Don't set deprecated_register_byte.
2713 Don't set deprecated_register_raw_size.
2714 Don't set deprecated_max_register_raw_size.
2715 Don't set deprecated_register_virtual_size.
2716 Don't set deprecated_max_register_virtual_size.
2717 Don't set deprecated_register_virtual_type.
2718 Set register_type method.
2719
3993f6b1
DJ
27202003-06-15 Daniel Jacobowitz <drow@mvista.com>
2721
2722 * Makefile.in (linux-nat.o): Add rule.
2723 * linux-nat.c: New file.
2724 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2725 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2726 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2727 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2728 * config/arm/linux.mh (NATDEPFILES): Likewise.
2729 * config/i386/linux.mh (NATDEPFILES): Likewise.
2730 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2731 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2732 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2733 * config/mips/linux.mh (NATDEPFILES): Likewise.
2734 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2735 * config/s390/s390.mh (NATDEPFILES): Likewise.
2736 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2737
786a90bb
MK
27382003-06-15 Mark Kettenis <kettenis@gnu.org>
2739
2740 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2741 replace out-of-date comment.
2742
3bd3f01e
AC
27432003-06-15 Andrew Cagney <cagney@redhat.com>
2744
2745 * rdi-share/host.h (Fail): Change to a varargs function.
2746 * remote-rdi.c (Fail): Update.
8ffd9b1b 2747
de5b9bb9
MK
27482003-06-15 Mark Kettenis <kettenis@gnu.org>
2749
2750 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2751 (i386_convert_register_p, i386_register_to_value,
2752 i386_register_from_value): Handle types longer than 8 bytes.
2753
d532c08f
MK
27542003-06-15 Mark Kettenis <kettenis@gnu.org>
2755
2756 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2757 Move floating-point code to new function in i387-tdep.c.
2758 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2759 New functions containing code moved here from i386-tdep.c.
2760 * i387-tdep.h: Add opaque declaration for `struct type'.
2761 (i387_register_to_value, i387_value_to_register): New prototypes.
2762 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2763 (x86_64_init_abi): Set convert_register_p, register_to_value and
2764 value_to_register here.
8ffd9b1b 2765
42c466d7
AC
27662003-06-14 Andrew Cagney <cagney@redhat.com>
2767
2768 * mips-tdep.c (mips_register_to_value): Make static.
2769 (mips_value_to_register): Make static.
2770 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2771 * ia64-tdep.c (ia64_register_raw_size): Make static.
2772 (ia64_register_virtual_size): Make static.
2773 (ia64_register_byte): Make static.
2774 * i387-tdep.c: Include "i387-tdep.h".
2775 (print_387_control_word): Delete function.
2776 (print_387_status_word): Delete function.
2777 (print_387_status_bits): Delete function.
2778 (print_387_control_bits): Delete function.
2779 * Makefile.in (i387-tdep.o): Update dependencies.
2780 * rdi-share/host.h (Fail): Declare.
2781 * remote-rdi.c (Fail): Update to match declaration.
2782
2a9cda49
AC
27832003-06-14 Andrew Cagney <cagney@redhat.com>
2784
2785 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2786 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2787 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2788 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2789 * README: Delete reference to remote-array.
2790 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2791 (remote-array.o): Delete target.
2792 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2793 * remote-array.c: Delete file.
2794
ff2e87ac
AC
27952003-06-14 Andrew Cagney <cagney@redhat.com>
2796 Mark Kettenis <kettenis@gnu.org>
2797
2798 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2799 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2800 parameter with "frame".
2801 * gdbarch.h, gdbarch.c: Re-generate.
2802 * frame.h (put_frame_register): Declare.
2803 * frame.c (put_frame_register): New function.
2804 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2805 (legacy_register_to_value): Rewrite, use "frame" to get the
2806 register value.
2807 (legacy_value_to_register): Rewrite, use "frame" to find the
2808 register's location before storing.
2809 * arch-utils.h (legacy_convert_register_p): Update.
2810 (legacy_register_to_value, legacy_value_to_register): Update.
2811 * findvar.c (value_from_register): Rewrite, eliminate use of
2812 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2813 "frame" to REGISTER_TO_VALUE.
2814 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2815 lval_reg_frame_relative + lval_register branch of the switch. Do
2816 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2817 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2818 I386_EDI_REGNUM): New defines.
2819 (i386_next_regnum, i386_convert_register_p,
2820 i386_register_to_value, i386_value_to_register): New functions.
2821 (i386_register_convertible, i386_register_convert_to_virtual,
2822 i386_convert_to_raw): Remove functions.
2823 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2824 value_to_register instead of register_convertible,
2825 register_convert_to_virtual and register_convert_to_raw.
2826 * mips-tdep.c (mips_convert_register_p): New function.
2827 (mips_value_to_register): Replace mips_register_convert_from_type.
2828 (mips_register_to_value): Replace mips_register_convert_to_type.
2829 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2830 register_to_value.
2831 * alpha-tdep.c (alpha_convert_register_p): Update.
2832 (alpha_value_to_register): Update, store the register.
2833 (alpha_register_to_value): Update, fetch the register.
2834
98be1e77
TR
28352003-06-14 Theodore A. Roth <troth@openavr.org>
2836
2837 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2838 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2839 Don't set deprecated_call_dummy_words.
2840 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2841 Don't set remote_translate_xfer_address.
2842 (avr_io_reg_read_command): Remove commented out debug printf.
2843 Wrap a long line.
2844
57bc6122
TR
28452003-06-14 Theodore A. Roth <troth@openavr.org>
2846
2847 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2848 causes gdb to seg fault.
2849
eb01fc62
DJ
28502003-06-14 Daniel Jacobowitz <drow@mvista.com>
2851
2852 * sparc-nat.c (fetch_inferior_registers): Correct
2853 a reference to "registers".
2854
3b3e6bee
DJ
28552003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2856
2857 * Makefile.in (exc_request_U_h): Define
2858 (exc_request_S_h): Likewise.
2859 (msg_reply_S_h): Likewise.
2860 (msg_U_h): Likewise.
2861 (notify_S_h): Likewise.
2862 (process_reply_S_h): Likewise.
2863 (gnu-nat.o): Depend on gdb_obstack_h
2864 * gnu-nat.c: Include "gdb_obstack.h".
2865
b8de8283
AC
28662003-06-13 Andrew Cagney <cagney@redhat.com>
2867
2868 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2869 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2870
f3be58bc
AC
28712003-06-13 Andrew Cagney <cagney@redhat.com>
2872
2873 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2874 when deprecated REGISTER macros can be deleted.
2875 * gdbarch.h, gdbarch.c: Re-generate.
2876
4c0122c8
JB
28772003-06-13 Jim Blandy <jimb@redhat.com>
2878
2879 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2880 Linux entry point symbols for _dl_debug_state, too.
2881
3e210248
AC
28822003-06-13 Andrew Cagney <cagney@redhat.com>
2883
2884 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2885 available, do not use the FP register, and always save the TOS.
2886 * dummy-frame.c (dummy_frame_this_id): Do not assert
2887 SAVE_DUMMY_FRAME_TOS.
2888 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2889 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2890 (i386_push_dummy_call): Add 8 to the returned SP.
2891 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2892 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2893 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2894 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2895 (x86_64_push_dummy_call): Return "sp + 16".
2896 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2897 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2898 save_dummy_frame_tos.
2899
0b65af49
JB
29002003-06-13 Jim Blandy <jimb@redhat.com>
2901
2902 * frv-tdep.c (frv_use_struct_convention): Delete static
2903 declaration for function deleted in my change of 2003-06-12.
2904
4ea2465e
TR
29052003-06-13 Theodore A. Roth <troth@openavr.org>
2906
2907 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2908 (avr_pointer_to_address): Shift code addrs left 1 bit.
2909 (avr_convert_from_func_ptr_addr): Delete function since operation is
2910 better handled by avr_address_to_pointer and avr_pointer_to_address.
2911 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2912
1581182a
MK
29132003-06-13 Mark Kettenis <kettenis@gnu.org>
2914
2915 From Kelley Cook <kelleycook@wideopenwest.com>:
2916 * configure.host: Accept i[34567]86 variants.
2917 * configure.tgt: Likewise.
2918 * nlm/configure.in: Likewise.
2919 * nlm/configure: Regenerated.
2920
7aa1783e
RE
29212003-06-13 Richard Earnshaw <rearnsha@arm.com>
2922
2923 * arm-tdep.c (solib-svr4.h): Dont' include it.
2924 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2925 * arm-linux-tdep.c: ... here. Make static.
2926 (arm_linux_init_abi): Register it.
2927 (solib-svr4.h): Include it.
2928 * Makefile.in: Update dependencies.
2929 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2930 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2931
0261a0d0
CV
29322003-06-13 Corinna Vinschen <vinschen@redhat.com>
2933
2934 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2935 indicate registers used for return values.
2936 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2937 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2938 members.
2939 (h8300_init_extra_frame_info): Ditto.
2940 (h8300_frame_locals_address): Removed.
2941 (h8300_frame_args_address): Removed.
2942 (h8300_extract_return_value): Use new regcache structure. Only care
2943 for 16 bit CPUs.
2944 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2945 (h8300_store_return_value): Use new regcache structure. Only care
2946 for 16 bit CPUs.
2947 (h8300h_store_return_value): Same function for 32 bit CPUs.
2948 (h8300_store_struct_return): Removed.
2949 (h8300_extract_struct_value_address): Use new regcache structure.
2950 (h8300h_extract_struct_value_address): Removed.
2951 (h8300_push_dummy_code): New function.
2952 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2953 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2954 set_gdbarch_store_return_value architecture dependent.
2955 Call set_gdbarch_push_dummy_code and
2956 set_gdbarch_extract_struct_value_address.
2957 Remove calls to set_gdbarch_frame_args_address,
2958 set_gdbarch_frame_locals_address,
2959 set_gdbarch_deprecated_store_struct_return,
2960 set_gdbarch_deprecated_extract_return_value,
2961 set_gdbarch_deprecated_extract_struct_value_address,
2962 set_gdbarch_deprecated_call_dummy_words and
2963 set_gdbarch_deprecated_sizeof_call_dummy_words.
2964
055c394a
CV
29652003-06-13 Corinna Vinschen <vinschen@redhat.com>
2966
2967 * h8300-tdep.c (h8300_register_byte): Remove.
2968 (h8300h_register_byte): Remove.
2969 (h8300_register_virtual_type): Remove. Substitute by...
2970 (h8300_register_type): New function.
2971 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2972 (h8300h_extract_struct_value_address): Ditto.
2973 (h8300_gdbarch_init): Drop calls to
2974 set_gdbarch_deprecated_register_byte and
2975 set_gdbarch_deprecated_register_virtual_type.
2976 Add call to set_gdbarch_register_type.
2977
9c04cab7
AC
29782003-06-13 Andrew Cagney <cagney@redhat.com>
2979
2980 * gdbarch.sh: Update comments on registers.
2981 (deprecated_register_byte): Rename register_byte.
2982 (deprecated_register_raw_size): Rename register_raw_size.
2983 (deprecated_register_virtual_size): Rename register_virtual_size.
2984 (deprecated_register_virtual_type): Rename register_virtual_type.
2985 * gdbarch.h, gdbarch.c: Re-generate.
2986 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2987 * vax-tdep.c (vax_gdbarch_init): Update.
2988 * v850-tdep.c (v850_gdbarch_init): Update.
2989 * sparc-tdep.c (sparc_gdbarch_init): Update.
2990 * sh-tdep.c (sh_gdbarch_init): Update.
2991 * s390-tdep.c (s390_gdbarch_init): Update.
2992 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2993 * ns32k-tdep.c: Update.
2994 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2995 * mips-tdep.c (mips_gdbarch_init): Update.
2996 * mcore-tdep.c (mcore_gdbarch_init): Update.
2997 * m68k-tdep.c (m68k_gdbarch_init): Update.
2998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2999 * ia64-tdep.c (ia64_gdbarch_init): Update.
3000 * hppa-tdep.c (hppa_gdbarch_init): Update.
3001 * h8300-tdep.c (h8300_gdbarch_init): Update.
3002 * frv-tdep.c (frv_gdbarch_init): Update.
3003 * cris-tdep.c (cris_gdbarch_init): Update.
3004 * avr-tdep.c (avr_gdbarch_init): Update.
3005 * alpha-tdep.c (alpha_gdbarch_init): Update.
3006 * arm-tdep.c (arm_gdbarch_init): Update.
3007
b060cbea
AC
30082003-06-13 Andrew Cagney <cagney@redhat.com>
3009
3010 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3011 mips_o32_use_struct_convention with always_use_struct_convention.
3012
0fc9922a
DC
30132003-06-12 David Carlton <carlton@kealia.com>
3014
3015 * cp-namespace.c (cp_set_block_scope): Comment out
3016 processing_has_namespace_info branch.
3017
1fd35568
JB
30182003-06-12 Jim Blandy <jimb@redhat.com>
3019
f470a70a
JB
3020 Recognize and skip 64-bit PowerPC Linux linkage functions.
3021 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3022 insn_pattern, insns_match_pattern, d_field, ds_field): New
3023 functions, macros, and types for working with PPC instructions.
3024 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3025 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3026 ppc64_skip_trampoline_code): New functions, variables, and macros
3027 for recognizing and skipping linkage functions.
3028 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3029 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3030
49ff75ad
JB
3031 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3032 register offsets for both the 32- and 64-bit interfaces.
3033
bd918c83
JB
3034 Actually finish the job started by my change of 2003-05-29.
3035 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3036 other #definition of this.
3037 (ppc_linux_skip_trampoline_code): Remove declaration.
3038 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3039 static.
3040 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3041 method for GDBARCH.
3042
3043 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3044 'long' on ppc64-*-linux*.
3045
f8c59253
JB
3046 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3047 isn't #defined, assume the register doesn't exist: act as if
3048 tdep->ppc_mq_regnum were -1.
3049
8fbb30b1
JB
3050 * configure.host, configure.tgt: Add entries for
3051 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3052 powerpc/linux.mt.
3053 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3054 New files.
3055
1fd35568
JB
3056 * arch-utils.c (always_use_struct_convention): New function.
3057 * arch-utils.h (always_use_struct_convention): New prototype.
3058 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3059 (alpha_gdbarch_init): Register always_use_struct_convention,
3060 instead of alpha_use_struct_convention.
3061 * cris-tdep.c (cris_use_struct_convention): Delete.
3062 (cris_gdbarch_init): Register always_use_struct_convention,
3063 instead of cris_use_struct_convention.
3064 * frv-tdep.c (frv_use_struct_convention): Delete.
3065 (frv_gdbarch_init): Register always_use_struct_convention,
3066 instead of frv_use_struct_convention.
3067 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3068 (h8300_gdbarch_init): Register always_use_struct_convention,
3069 instead of h8300_use_struct_convention.
e3305dd9 3070 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3071 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3072 instead of mips_o32_use_struct_convention.
3073
e14e6e9c
AC
30742003-06-12 Andrew Cagney <cagney@redhat.com>
3075
3076 * wince.c: Include "mips-tdep.h".
3077 * mips-tdep.h (mips_next_pc): Declare.
3078 * mcore-tdep.c: Make more local functions static.
3079 * Makefile.in (wince.o): Update dependencies.
3080
2335f48e
DC
30812003-06-12 David Carlton <carlton@kealia.com>
3082
3083 * symtab.c (lookup_symbol_aux_minsyms): Replace
3084 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3085 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3086 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3087 SYMBOL_NATURAL_NAME.
3088
f70a7d61
AS
30892003-06-12 Andreas Schwab <schwab@suse.de>
3090
3091 * Makefile.in (tuiDisassem.o): Update dependencies.
3092
b6429628
DC
30932003-06-12 David Carlton <carlton@bactrian.org>
3094
3095 * symtab.h: Delete declaration of make_symbol_overload_list.
3096 Add declaration of lookup_partial_symbol.
3097 * symtab.c (remove_params): Move to cp-support.c.
3098 (overload_list_add_symbol, make_symbol_overload_list)
3099 (sym_return_val_size, sym_return_val_index): Ditto.
3100 (lookup_partial_symbol): Make extern.
3101 * cp-support.h: Add declaration of make_symbol_overload_list.
3102 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3103 symtab.h, and block.h.
3104 (remove_params): Move here from symtab.c.
3105 (overload_list_add_symbol, make_symbol_overload_list)
3106 (sym_return_val_size, sym_return_val_index): Ditto.
3107 * valops.c: Include cp-support.h.
3108 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3109 frame_h, and block_h.
3110 (valops.o): Depend on cp_support_h.
3111
084edea5
CV
31122003-06-12 Corinna Vinschen <vinschen@redhat.com>
3113
3114 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3115 substitute by NUM_REGS throughout.
3116 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3117 (h8300s_register_name): New function for H8S registers.
3118 (h8300sx_register_name): Ditto for H8SX registers.
3119 (h8300_print_register): Revise register printing, avoid depending
3120 on 32 bit long.
0261a0d0 3121 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3122 (h8300h_register_byte): New function for any other architecture.
3123 (h8300_register_raw_size): Remove.
3124 (h8300_register_virtual_type): Revise to return actually useful
3125 type.
3126 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3127 (h8300h_extract_struct_value_address): New function for any other
3128 architecture.
3129 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3130 set_gdbarch_register_name, set_gdbarch_register_byte,
3131 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3132 Remove calls to set_gdbarch_deprecated_register_size,
3133 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3134 set_gdbarch_deprecated_max_register_raw_size,
3135 set_gdbarch_register_virtual_size and
3136 set_gdbarch_deprecated_max_register_virtual_size entirely.
3137 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3138 set_gdbarch_long_double_bit.
3139
06194148
JJ
31402003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3141
8ffd9b1b
AJ
3142 * doublest.c (convert_doublest_to_floatformat): When dealing
3143 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3144 processing a full 32 bits of mantissa.
3145
de4f826b
DC
31462003-06-11 David Carlton <carlton@bactrian.org>
3147
3148 * dictionary.h: New.
3149 * dictionary.c: New.
3150 * block.h: Add opaque declaration for struct dictionary.
3151 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3152 'sym' members.
3153 (BLOCK_DICT): New macro.
3154 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3155 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3156 BLOCK_SHOULD_SORT.
3157 (ALL_BLOCK_SYMBOLS): Update definition.
3158 * Makefile.in (SFILES): Add dictionary.c.
3159 (dictionary_h): New.
3160 (COMMON_OBS): Add dictionary.o.
3161 (dictionary.o): New.
3162 (ada-lang.o): Depend on dictionary_h.
3163 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3164 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3165 (mi-cmd-stack.o): Ditto.
3166 (gdbtk-cmds.o): Update dependencies.
3167 (gdbtk-stack.o): Ditto.
3168 * ada-lang.c: Include dictionary.h.
3169 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3170 (fill_in_ada_prototype, debug_print_block): Ditto.
3171 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3172 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3173 'is_sorted'.
3174 * mdebugread.c: Include dictionary.h.
3175 (struct parse_stack): Delete 'maxsyms' member.
3176 (parse_symbol): Update calls to new_block. Delete calls to
3177 shrink_block. Use dictionary methods.
3178 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3179 Update calls to new_symtab. Don't maintain maxsyms data.
3180 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3181 (add_symbol): Just call dict_add_symbol.
3182 (new_symtab): Delete 'maxsyms' argument.
3183 (new_symtab): Update calls to new_block.
3184 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3185 (shrink_block): Delete function.
3186 (fixup_sigtramp): Update call to new_block. Add symbol via
3187 dict_add_symbol.
3188 * jv-lang.c: Include dictionary.h.
3189 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3190 appropriately. Set class_symtab->free_func. Make sure the
3191 blockvector is big enough to hold two blocks.
3192 (add_class_symtab_symbol): Use dictionary methods.
3193 (free_class_block): New function.
3194 (type_from_class): Replace explicit iteration by
3195 ALL_BLOCK_SYMBOLS.
3196 * symtab.h (struct symtab): Replace 'free_ptr' method by
3197 'free_func'.
3198 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3199 sort_symtab_syms.
3200 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3201 sort_symtab_syms.
3202 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3203 Include dictionary.h.
3204 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3205 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3206 sort_symtab_syms.
3207 * objfiles.c: Include dictionary.h.
3208 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3209 * buildsym.c: Include dictionary.h.
3210 (finish_block): Use dictionary methods.
3211 (end_symtab): Set free_func to NULL, not free_ptr.
3212 * tracepoint.c: Include dictionary.h.
3213 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3214 (scope_info): Ditto.
3215 * stack.c: Include dictionary.h.
3216 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3217 (print_block_frame_labels, print_frame_arg_vars)
3218 (print_frame_args): Ditto.
3219 * symmisc.c (free_symtab_block): Use dictionary methods.
3220 (dump_symtab): Ditto.
3221 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3222 Include dictionary.h.
3223 * symfile.h: Delete declarations of sort_block_syms,
3224 sort_symtab_syms.
3225 * symfile.c (sort_block_syms): Delete.
3226 (sort_symtab_syms): Delete.
3227 * symtab.c: Include dictionary.h.
3228 (lookup_block_symbol): Use dictionary iterators.
3229 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3230 (search_symbols, make_symbol_completion_list): Ditto.
3231 (make_symbol_overload_list): Ditto.
3232 * valops.c (value_of_local): Use dict_empty.
3233 Include dictionary.h.
3234
a31f978c
JB
32352003-06-11 J. Brobecker <brobecker@gnat.com>
3236
3237 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3238
526e70c0
DC
32392003-06-11 David Carlton <carlton@bactrian.org>
3240
3241 * block.h (BLOCK_SHOULD_SORT): Delete.
3242 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3243 blocks.
3244 * ada-lang.c (ada_add_block_symbols): Ditto.
3245 * symfile.c (sort_block_syms): Delete.
3246 (sort_symtab_syms): Ditto.
3247 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3248 declarations.
3249 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3250 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3251 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3252 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3253 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3254 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3255 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3256
33c08150
JJ
32572003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3258
8ffd9b1b 3259 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3260 bits to 128.
3261
781a750d
AC
32622003-06-11 Andrew Cagney <cagney@redhat.com>
3263
3264 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3265 REGISTER_CONVERTIBLE.
3266 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3267 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3268 * gdbarch.h, gdbarch.c: Re-generate.
3269 * arch-utils.h (deprecated_register_convertible_not): Rename
3270 generic_register_convertible_not.
3271 * arch-utils.c (deprecated_register_convertible_not): Rename
3272 generic_register_convertible.
3273 (legacy_convert_register_p, legacy_register_to_value): Update.
3274 * sh-tdep.c (sh64_push_arguments): Update.
3275 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3276 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3277 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3278 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3279 * arch-utils.c (legacy_value_to_register): Update.
3280 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3281 (rs6000_register_convert_to_raw): Make parameter "from" const.
3282 * mips-tdep.c (mips_gdbarch_init): Update.
3283 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3284 * infcmd.c (default_print_registers_info): Update.
3285 * ia64-tdep.c (ia64_gdbarch_init): Update.
3286 (ia64_register_convert_to_raw): Make parameter "from" const.
3287 * i386-tdep.c (i386_gdbarch_init): Update.
3288 (i386_register_convert_to_raw): Update.
3289
cd90e54f
AC
32902003-06-11 Andrew Cagney <cagney@redhat.com>
3291
3292 * remote-fileio.c: Include "remote-fileio.h".
3293 * Makefile.in (remote-fileio.o): Update dependencies.
3294 (remote_fileio_h): Fix typo.
3295
a78f21af
AC
32962003-06-11 Andrew Cagney <cagney@redhat.com>
3297
3298 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3299 (xstormy16_save_dummy_frame_tos): Make static.
3300 (_initialize_xstormy16_tdep): Add declaration.
3301 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3302 * v850-tdep.c: Make local functions static.
3303 (_initialize_v850_tdep): Add declaration.
3304 * sparc-tdep.c: Make local functions static.
3305 (_initialize_sparc_tdep): Add declaration.
3306 * sh-tdep.c: Make local functions static.
3307 (_initialize_sh_tdep): Add declaration.
3308 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3309 * s390-tdep.c: Make local functions static.
3310 (_initialize_s390_tdep): Add declaration.
3311 * dbxread.c (find_stab_function_addr): Make static.
3312 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3313 * ocd.c (_initialize_remote_ocd): Add declaration.
3314 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3315 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3316 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3317 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3318 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3319 * remote-array.c (_initialize_array): Add declaration.
3320 (_initialize_remote_monitors): Add declaration.
3321 * remote-mips.c: Make local functions static.
3322 (_initialize_remote_mips): Add declaration.
3323 * mcore-tdep.c: Make all local functions static.
3324 (_initialize_mcore_tdep): Add declaration.
3325 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3326 * abug-rom.c (_initialize_abug_rom): Add declaration.
3327 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3328 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3329 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3330 * remote-est.c (_initialize_est): Add declaration.
3331 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3332 (m68hc11_call_dummy_address): Make static.
3333 * ia64-tdep.c: Make local functions static.
3334 (_initialize_ia64_tdep): Add declaration.
3335 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3336 * monitor.c (monitor_wait_filter): Make static.
3337 (_initialize_remote_monitors): Add declaration.
3338 * remote-hms.c (_initialize_remote_hms): Add declaration.
3339 * remote-e7000.c (fetch_regs_from_dump): Make static.
3340 (expect_n): Make static.
3341 (_initialize_remote_e7000): Add declaration.
3342 * ser-e7kpc.c: Always include "defs.h".
3343 (_initialize_ser_e7000pc): Add declaration.
3344 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3345 * cris-tdep.c: Make all but one function static.
3346 (_initialize_cris_tdep): Add declaration.
3347 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3348 * solib.c (update_solib_list): Make static.
3349 (_initialize_solib): Add declaration.
3350 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3351 (_initialize_avr_tdep): Add declaration.
3352 * remote-rdi.c (voiddummy): Make static.
3353 (_initialize_remote_rdi): Add declaration.
3354 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3355 * remote-rdp.c (send_rdp): Make static.
3356 (_initialize_remote_rdp): Add declaration.
3357 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3358
cbcdb1f5
CV
33592003-06-11 Corinna Vinschen <vinschen@redhat.com>
3360
3361 * remote-fileio.c: Make ari happy.
3362
a191ea8d
JB
33632003-06-10 J. Brobecker <brobecker@gnat.com>
3364
3365 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3366 fetching the trailing bytes of the buffer we are about to write.
3367
0ef75e11
AC
33682003-06-10 Andrew Cagney <cagney@redhat.com>
3369
3370 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3371 * Makefile.in (remote-fileio.o): Update dependencies.
3372 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3373 include <setjmp.h>, or <sys/types.h> conditional on USG.
3374 (remote_fio_jmp_buf): Delete global variable.
3375
449092f6 33762003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3377 Martin M. Hunt <hunt@redhat.com>
449092f6 3378
559fa028
AC
3379 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3380 (SFILES): Add remote-fileio.c.
3381 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3382 dependencies for building remote.o.
449092f6
CV
3383 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3384 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3385 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3386 static storage class.
3387 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3388 'F' packet.
3389 (_initialize_remote): Call initialize_remote_fileio().
3390 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3391 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3392 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3393 (captured_main): Initialize new ui_files.
3394 * ui-file.c: Add read and fgets input functions.
3395 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3396 (null_file_read): New function.
3397 (ui_file_read): New function.
3398 (set_ui_file_read): New function.
3399 (stdio_file_read): New function.
3400 * ui-file.h: New type ui_file_read_ftype.
3401 (set_ui_file_read): Declare.
3402 (ui_file_read): Declare.
3403
248de703
AC
34042003-06-09 Andrew Cagney <cagney@redhat.com>
3405
3406 * frame.h (deprecated_unwind_get_saved_register): Rename
3407 generic_unwind_get_saved_register, update comments.
3408 * mips-tdep.c (mips_get_saved_register): Update.
3409 * frame.c (deprecated_unwind_get_saved_register): Update.
3410
0ed8aa57
AC
34112003-06-09 Andrew Cagney <cagney@redhat.com>
3412
3413 * vax-tdep.c (vax_frame_locals_address): Delete function.
3414 (vax_gdbarch_init): Do not set frame_locals_address.
3415 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3416 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3417 * s390-tdep.c (s390_frame_args_address): Delete function.
3418 (s390_gdbarch_init): Do not set frame_args_address or
3419 frame_locals_address.
3420 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3421 (ns32k_gdbarch_init): Do not set frame_locals_address.
3422 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3423 (hppa_frame_locals_address): Delete function.
3424 (hppa_gdbarch_init): Do not set frame_args_address, or
3425 frame_locals_address.
3426 * arm-tdep.c (arm_frame_args_address): Delete.
3427 (arm_frame_locals_address): Delete.
3428 (arm_gdbarch_init): Do not set frame_args_address, or
3429 frame_locals_address.
3430
983a287a
AC
34312003-06-09 Andrew Cagney <cagney@redhat.com>
3432
3433 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3434 * gdbarch.h, gdbarch.c: Re-generate.
3435 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3436 * arch-utils.c (frame_num_args_unknown): Delete function.
3437 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3438 (frame_info): Use FRAME_NUM_ARGS_P.
3439 * arm-tdep.c (arm_frame_num_args): Delete function.
3440 (arm_gdbarch_init): Do not set frame_num_args.
3441 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3442 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3443 (hppa_gdbarch_init): Do not set frame_num_args.
3444 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3446 frame_num_args to default frame_num_args_unknown.
3447 * v850-tdep.c (v850_gdbarch_init): Ditto.
3448 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3449 * sh-tdep.c (sh_gdbarch_init): Ditto.
3450 * s390-tdep.c (s390_gdbarch_init): Ditto.
3451 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3452 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3453 * mips-tdep.c (mips_gdbarch_init): Ditto.
3454 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3455 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3457 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3458 * i386-tdep.c (i386_gdbarch_init): Ditto.
3459 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3460 * frv-tdep.c (frv_gdbarch_init): Ditto.
3461 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3462 * cris-tdep.c (cris_gdbarch_init): Ditto.
3463 * avr-tdep.c (avr_gdbarch_init): Ditto.
3464 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3465
8d3b0994
AC
34662003-06-09 Andrew Cagney <cagney@redhat.com>
3467
3468 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3469 (print_frame_args): Moved to "stack.c".
3470 * stack.c: Include "gdb_assert.h".
3471 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3472 (print_frame_args): Moved from "printcmd.c".
3473 * frame.h (print_frame_args): Delete declaration.
3474 * Makefile.in (stack.o): Update dependencies.
3475
25e3a86b
AC
34762003-06-08 Andrew Cagney <cagney@redhat.com>
3477
3478 * frame.c (get_prev_frame): Remove reference to
3479 frame_args_address_correct in comments.
3480 * frame-base.c (default_frame_args_address): Delete code
3481 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3482 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3483 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3484 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3485 (vax_frame_args_address_correct): Delete declaration.
3486
a9e5fdc2
AC
34872003-06-08 Andrew Cagney <cagney@redhat.com>
3488
3489 * gdbarch.sh (UNWIND_SP): Add.
3490 * gdbarch.h, gdbarch.c: Re-generate.
3491 * frame.c (frame_sp_unwind): New function.
3492 (get_frame_sp): New function.
3493 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3494 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3495 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3496 value.
3497 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3498 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3499
8983bd83
AC
35002003-06-08 Andrew Cagney <cagney@redhat.com>
3501
7fec2c59
AC
3502 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3503 REMOTE_BREAKPOINT.
3504 * remote.c: Update.
3505 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3506 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3507 * config/m68k/tm-sun3.h: Update.
3508 * config/m68k/tm-m68klynx.h: Update.
3509 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3510
8983bd83
AC
3511 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3512 trad_frame". Update comments.
3513 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3514 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3515 (trad_frame_register_value, trad_frame_prev_register): Update.
3516
b9362cc7
AC
35172003-06-08 Andrew Cagney <cagney@redhat.com>
3518
3519 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3520 from GCC's acinclude.m4.
3521 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3522 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3523 * main.c (error_init): Delete declaration.
3524 * defs.h (error_init): Declare.
3525 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3526 (rs6000_convert_from_func_ptr_addr): Make static.
3527 (_initialize_rs6000_tdep): Add declaration.
3528 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3529 (show_commands, set_verbose, show_history): Delete declaration.
3530 * top.h (set_verbose): Add declaration.
3531 (show_history, set_history, show_commands): Add declaration.
3532 (do_restore_instream_cleanup): Add declaration.
3533 * objc-lang.c (specialcmp): Make static.
3534 (print_object_command): Make static.
3535 (find_objc_msgsend): Make static.
3536 (find_objc_msgcall_submethod_helper): Make static.
3537 (find_objc_msgcall_submethod): Make static.
3538 (_initialize_objc_language): Add declaration.
3539 (find_implementation_from_class): Make static.
3540 (find_implementation): Make static.
3541 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3542 * objc-lang.h (lookup_struct_typedef): Add declaration.
3543 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3544 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3545 (do_restore_user_call_depth): Make static.
3546 (do_restore_instream_cleanup): Delete declaration.
3547 (dont_repeat): Delete declaration.
3548 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3549 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3550 * reggroups.c (_initialize_reggroup): Add declaration.
3551 * cp-support.c (_initialize_cp_support): Add declaration.
3552 * cp-abi.c (_initialize_cp_abi): Add declaration.
3553 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3554 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3555 (_initialize_gnu_v3_abi): Add declaration.
3556 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3557 (_initialize_gnu_v2_abi): Add declaration.
3558 * frame-base.c (_initialize_frame_base): Add declaration.
3559 * doublest.c (floatformat_from_length): Make static.
3560 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3561 * frame.c (create_sentinel_frame): Make static.
3562 (_initialize_frame): Add declaration.
3563 * top.c (do_catch_errors): Make static.
3564 (gdb_rl_operate_and_get_next_completion): Make static.
3565 * typeprint.c: Include "typeprint.h".
3566 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3567 (sentinel_frame_this_id): Make static.
3568 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3569 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3570 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3571 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3572 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3573 * maint.c (maintenance_print_architecture): Make static.
3574 * signals/signals.c (_initialize_signals): Add declaration.
3575 * std-regs.c (_initialize_frame_reg): Add declaration.
3576 * jv-exp.y (push_variable): ISO C definition.
3577 (push_qualified_expression_name): Ditto.
3578 * memattr.c (_initialize_mem): Add declaration.
3579 * remote.c (remote_check_watch_resources): Make static.
3580 (remote_stopped_by_watchpoint): Make static.
3581 (remote_stopped_data_address): Make static.
3582 * d10v-tdep.c (nr_dmap_regs): Make static.
3583 (a0_regnum): Make static.
3584 (d10v_frame_unwind_cache): Make static.
3585 (d10v_frame_p): Make static.
3586 * osabi.c (show_osabi): Make static.
3587 (_initialize_gdb_osabi): Add extern declaration.
3588 * gdbtypes.c (make_qualified_type): Make static.
3589 (safe_parse_type): Make static.
3590 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3591 * macrotab.c (macro_bcache_free): Make static.
3592 * interps.c (interp_set_quiet): Make static.
3593 (interpreter_exec_cmd): Make static.
3594 * stack.h (select_frame_command): New file.
3595 * stack.c: Include "stack.h".
3596 (select_frame_command_wrapper): Delete function.
3597 (select_frame_command): Make global.
3598 * infcall.c: Include "infcall.h".
3599 * linespec.c: Include "linespec.h".
3600 * symfile.c (sections_overlap): Make static.
3601 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3602 * charset.c (_initialize_charset): Add missing prototype.
3603 * regcache.c (init_legacy_regcache_descr): Make static.
3604 (do_regcache_xfree): Make static.
3605 (regcache_xfer_part): Make static.
3606 (_initialize_regcache): Add missing prototype.
3607 * breakpoint.c (parse_breakpoint_sals): Make static.
3608 (breakpoint_sals_to_pc): Make static.
3609 * interps.h (clear_interpreter_hooks): ISO C declaration.
3610 * Makefile.in (stack_h): Define.
3611 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3612 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3613
a0f267c7
AC
36142003-06-08 Andrew Cagney <cagney@redhat.com>
3615
3616 * Makefile.in (d10v-tdep.o): Update dependencies.
3617 (SFILES): Add trad-frame.c.
3618 (trad_frame_h): Define.
3619 (COMMON_OBS): Add trad-frame.o.
3620 (trad-frame.o): Specify dependencies.
3621 * d10v-tdep.c: Include "trad-frame.h".
3622 (saved_regs_unwinder): Delete function.
3623 (d10v_frame_prev_register): Use trad_frame_prev_register.
3624 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3625 trad_frame", delete "regs" and "prev_sp".
3626 (prologue_find_regs): Use trad-frame.
3627 * trad-frame.h, trad-frame.c: New files.
3628
4538b4f4
MK
36292003-06-08 Mark Kettenis <kettenis@gnu.org>
3630
3631 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3632
a0273b2f
AF
36332003-06-07 Adam Fedor <fedor@gnu.org>
3634
3635 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3636 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3637 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3638 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3639 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3640 Use it.
3641
3a6c3343
AC
36422003-06-07 Andrew Cagney <cagney@redhat.com>
3643
3644 * symfile.h: Re-indent, clean up comments.
3645
b46e02f6
AC
36462003-06-07 Andrew Cagney <cagney@redhat.com>
3647
3648 * inferior.h (deprecated_write_sp): Replace
3649 generic_target_write_sp.
3650 * regcache.c (deprecated_write_sp): Replace
3651 generic_target_write_sp.
3652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3653 * vax-tdep.c (vax_gdbarch_init): Update.
3654 * v850-tdep.c (v850_gdbarch_init): Update.
3655 * sparc-tdep.c (sparc_gdbarch_init): Update.
3656 * sh-tdep.c (sh_gdbarch_init): Update.
3657 * s390-tdep.c (s390_gdbarch_init): Update.
3658 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3659 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3660 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3661 * mcore-tdep.c (mcore_gdbarch_init): Update.
3662 * m68k-tdep.c (m68k_gdbarch_init): Update.
3663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3664 * ia64-tdep.c (ia64_gdbarch_init): Update.
3665 * h8300-tdep.c (h8300_gdbarch_init): Update.
3666 * frv-tdep.c (frv_gdbarch_init): Update.
3667 * cris-tdep.c (cris_gdbarch_init): Update.
3668 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3669
a42e117c
AC
36702003-06-07 Andrew Cagney <cagney@redhat.com>
3671
3672 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3673 Assert that PC_REGNUM is valid.
3674 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3675
bd1ce8ba
AC
36762003-06-07 Andrew Cagney <cagney@redhat.com>
3677
3678 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3679 * gdbarch.h, gdbarch.c: Regenerate.
3680 * mn10300-tdep.c: Include "gdb_assert.h".
3681 (mn10300_read_fp): New function.
3682 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3683 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3684 * ia64-tdep.c: Include "gdb_assert.h".
3685 (ia64_read_fp): New function.
3686 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3687 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3688 * regcache.c (generic_target_read_sp): Delete function.
3689 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3690 * inferior.h (generic_target_read_sp): Delete declaration.
3691 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3692 generic_target_read_sp.
3693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3694 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3695 * sh-tdep.c (sh_gdbarch_init): Ditto.
3696 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3697 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3698
ec5cbaec
AC
36992003-06-07 Andrew Cagney <cagney@redhat.com>
3700
3701 * gdbarch.sh: Comment each field of startup_gdbarch.
3702 * gdbarch.h, gdbarch.c: Re-generate.
3703
cde9ea48
AC
37042003-06-07 Andrew Cagney <cagney@redhat.com>
3705
3706 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3707 * gdbarch.h, gdbarch.c: Re-generate.
3708 * regcache.c: Update comments on read_pc et.al.
3709 (generic_target_read_pc): Delete function.
3710 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3711 * inferior.h (generic_target_read_pc): Delete declaration.
3712 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3713 generic_target_read_pc.
3714 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3715 * sh-tdep.c (sh_gdbarch_init): Ditto.
3716 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3718
9a90a780
AC
37192003-06-07 Andrew Cagney <cagney@redhat.com>
3720
3721 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3722 "index" with "special_local_sect". Use strcmp instead of STREQ.
3723 Append period to coments.
3724
a39a16c4
MM
37252003-06-06 Mark Mitchell <mark@codesourcery.com>
3726
3727 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3728 (elfstab_offset_sections): Likewise.
3729 * gdb-stabs.h (stab_section_info): Likewise.
3730 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3731 * objfiles.c (objfile_relocate): Likewise.
3732 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3733 * remote.c (get_offsets): Likewise.
3734 (remote_cisco_objfile_relocate): Likewise.
3735 * somread.c (som_symfile_offsets): Likewise.
3736 * symfile.c (alloc_section_addr_info): New function.
3737 (build_section_addr_info_from_section_tab): Use it.
3738 (free_section_addr_info): Adjust.
3739 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3740 (syms_from_objfile): Allocate local_addr dynamically.
3741 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3742 dynamically.
3743 (add_symbol_file_command): Allocate sect_opts dynamically.
3744 (reread_symbols): Avoid use of SECT_OFF_MAX.
3745 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3746 (alloc_section_addr_info): Declare it.
3747 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3748 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3749 dynamically.
3750 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3751
20c6c2f8
AC
37522003-06-06 Andrew Cagney <cagney@redhat.com>
3753
3754 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3755 (d10v_frame_unwind_cache): Do not set "return_pc".
3756
884a26c8
MS
37572003-06-06 Michael Snyder <msnyder@redhat.com>
3758
3759 * h8300-tdep.c: Make tidy (long lines).
3760
088ce440
ML
37612003-06-06 Michal Ludvig <mludvig@suse.cz>
3762
8ffd9b1b 3763 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3764 to regcache_collect().
3765
7d773d96
JB
37662003-06-05 J. Brobecker <brobecker@gnat.com>
3767
3768 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3769 pc_in_sigtramp multiarch method.
3770 (hppa_hpux_som_init_abi): Use it.
3771 (hppa_hpux_elf_init_abi): Likewise.
3772 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3773 macro has been multiarched.
3774 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3775 macro here, as hppa64 isn't multiarched yet.
3776
1df6926e
AC
37772003-06-05 Andrew Cagney <cagney@redhat.com>
3778
3779 * Makefile.in (value_h): Add $(frame_h).
3780 * value.h: Include "frame.h".
3781 (struct value): Replace "frame_addr" with "frame_id".
3782 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3783 * values.c (allocate_value): Use VALUE_FRAME_ID.
3784 (value_copy): Use VALUE_FRAME_ID.
3785 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3786 * valops.c (value_assign): Update. Use frame_find_by_id.
3787
6b53acc6
ML
37882003-06-05 Michal Ludvig <mludvig@suse.cz>
3789
3790 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3791 in each pass.
3792
4d9850d3
JJ
37932003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3794
3795 * thread-db.c (check_event): For create/death event breakpoints,
3796 loop through all messages to ensure that we read the message
3797 corresponding to the breakpoint we are at.
3798
8efca6ba
MS
37992003-06-04 Michael Snyder <msnyder@redhat.com>
3800
3801 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3802
0912c7f2
MK
38032003-06-04 Mark Kettenis <kettenis@gnu.org>
3804
3805 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3806 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3807 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3808 when handling .eh_frame sections.
3809
4e370325
JB
38102003-06-04 J. Brobecker <brobecker@gnat.com>
3811
3812 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3813 prepare_to_proceed procedure instead of the hppa-specific one.
3814 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3815
b757528f 38162003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3817
b757528f
JJ
3818 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3819 * config.in: Regenerated.
3820 * configure.in: Add test for syscall function and check for
3821 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3822 * configure: Regenerated.
3823 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3824 <sys/syscall.h>.
3825 (kill_lwp): New function that uses tkill syscall or
3826 uses kill, depending on whether threading model is nptl or not.
3827 All callers of kill() changed to use kill_lwp().
3828 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3829 see if all threads have already exited in the nptl model.
3830 (stop_and_resume_callback): New callback function used by the
3831 lin_lwp_wait thread exit handling code.
3832 (stop_wait_callback): Check for threads already having exited and
3833 delete such threads fromt the lwp list when discovered.
3834 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3835
b757528f
JJ
3836 Roland McGrath <roland@redhat.com>
3837 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3838 nptl libthread_db.
3839
087779b1
RH
38402003-06-03 Richard Henderson <rth@redhat.com>
3841
b21fd293
RH
3842 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3843 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3844 (alpha_sigtramp_frame_prev_register): Likewise.
3845 (alpha_heuristic_frame_prev_register): Likewise.
3846 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3847
8ffd9b1b 3848 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3849 alpha-specific register id names.
3850 (alpha_mdebug_frame_unwind_cache): Likewise.
3851 (alpha_mdebug_frame_prev_register): Likewise.
3852
baa490c4
RH
38532003-06-03 Richard Henderson <rth@redhat.com>
3854
3855 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3856 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3857 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3858 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3859 unwind routines.
3860 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3861 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3862 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3863
3864 * alpha-linux-tdep.c: Remove unnecessary includes.
3865 * Makefile.in (alpha-linux-tdep.o): Update.
3866
38672003-06-03 Richard Henderson <rth@redhat.com>
3868
3869 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3870 (alphabsd_fill_fpreg): Likewise.
3871
f534e522
JB
38722003-06-03 J. Brobecker <brobecker@gnat.com>
3873
3874 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3875 references to struct frame_info fields by calls to the equivalent
3876 accessors. Necessary now that frame_info is opaque.
3877
4035536b
JB
38782003-06-03 J. Brobecker <brobecker@gnat.com>
3879
3880 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3881 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3882 structure, field no longer exists.
3883
0bd79c5c
JB
38842003-06-03 J. Brobecker <brobecker@gnat.com>
3885
3886 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3887 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3888
37bb6d9f
JB
38892003-06-03 J. Brobecker <brobecker@gnat.com>
3890
3891 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3892 references to struct frame_info fields by calls to the equivalent
3893 accessors. Necessary now that frame_info is opaque.
3894
852ee05c
JB
38952003-06-03 J. Brobecker <brobecker@gnat.com>
3896
3897 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3898 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3899 structure, field no longer exists.
3900
7d58c67d
TR
39012003-06-03 Theodore A. Roth <troth@openavr.org>
3902
8ffd9b1b 3903 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3904 accumulation of the size of all registers instead of blindly using
3905 DEPRECATED_REGISTER_BYTES.
3906
0a48e7e8
MS
39072003-06-03 Michael Snyder <msnyder@redhat.com>
3908
3909 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3910 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3911 for h8300sx.
3912
9798ab0d
JB
39132003-06-03 J. Brobecker <brobecker@gnat.com>
3914
3915 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3916 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3917
00b037e2
AC
39182003-06-03 Andrew Cagney <cagney@redhat.com>
3919
3920 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3921 (sparc_convert_to_raw): Delete function.
3922 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3923 register_convert_to_virtual.
3924
043b2f77
JJ
39252003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3926
3927 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3928 layer if not dealing with a statically-linked threaded program.
3929
f43caff8
KW
39302003-06-03 Kris Warkentin <kewarken@qnx.com>
3931
3932 * solib.c (solib_open): Update comment to reflect actual search order.
3933
ae1e7417
AC
39342003-06-03 Andrew Cagney <cagney@redhat.com>
3935
3936 * frame.c (get_frame_memory_signed): New function.
3937 (get_frame_memory, get_frame_memory_unsigned): New function.
3938 (get_frame_arch): New function.
3939 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3940 (get_frame_memory, get_frame_unsigned_memory): Declare.
3941 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3942 get_frame_memory_unsigned and get_frame_arch.
3943 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3944
cb123844
RG
39452003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3946
3947 * MAINTAINERS (write after approval): Add myself.
3948
1bb792e9
JB
39492003-06-03 Jim Blandy <jimb@redhat.com>
3950
3951 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3952 elements of gregset_t are 64 bits each, but access registers
3953 are still 32 bits, so they're packed two per gregset_t
3954 element. Unpack/pack them properly.
3955
aee8d8ba
DC
39562003-06-02 David Carlton <carlton@bactrian.org>
3957
3958 * linespec.c (find_methods): Break out code into
3959 add_matching_methods and add_constructors.
3960 (add_matching_methods): New.
3961 (add_constructors): Ditto.
3962
bf7488d2
AC
39632003-06-02 Andrew Cagney <cagney@redhat.com>
3964
bf7488d2
AC
3965 * sparc-tdep.c (sparc_print_registers): Delete call to
3966 REGISTER_CONVERTIBLE.
3967 (sparc_gdbarch_init): Do not set register_convertible.
3968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3969 * frv-tdep.c (frv_gdbarch_init): Ditto.
3970 * cris-tdep.c (cris_gdbarch_init): Ditto.
3971
adedef68
EZ
39722003-06-02 Elena Zannoni <ezannoni@redhat.com>
3973
8ffd9b1b 3974 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3975 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3976 (syms_from_objfile): Ditto.
3977
650fcc91
AS
39782003-06-03 Andreas Schwab <schwab@suse.de>
3979
3980 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3981 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3982
df4a182b
RH
39832003-06-02 Richard Henderson <rth@redhat.com>
3984
3985 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3986 a member of all_reggroup.
3987
c483c494
RH
39882003-06-02 Richard Henderson <rth@redhat.com>
3989
3990 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3991 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3992 (alpha_lds, alpha_sts): New.
3993 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3994 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3995 restructure and fail for type sizes other than 4 or 8.
3996 (alpha_value_to_register): Similarly.
3997 (alpha_extract_return_value): Use alpha_sts.
3998 (alpha_store_return_value): Use alpha_lds.
3999 (alpha_gdbarch_init): Update hooks.
4000
b38b6be2
RH
40012003-06-02 Richard Henderson <rth@redhat.com>
4002
4003 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4004 regnum identifiers.
4005 (alpha_sigtramp_register_address): Likewise.
4006
98a8e1e5
RH
40072003-06-02 Richard Henderson <rth@redhat.com>
4008
4009 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4010 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4011 * alpha-tdep.h: Declare them.
4012
4013 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4014 Remove zerobuf. Don't error on UNIQUE.
4015 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4016 (ALPHA_REGSET_UNIQUE): Provide default.
4017 (supply_gregset): Use alpha_supply_int_regs.
4018 (fill_gregset): Use alpha_fill_int_regs.
4019 (supply_fpregset): Use alpha_supply_fp_regs.
4020 (fill_fpregset): Use alpha_fill_fp_regs.
4021 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4022 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4023 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4024 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4025 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4026 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4027
67dfac52
RH
40282003-06-02 Richard Henderson <rth@redhat.com>
4029
f75d70cc
RH
4030 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4031
67dfac52
RH
4032 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4033 (alpha_store_return_value): Likewise.
4034
0cf566ec
DC
40352003-06-02 David Carlton <carlton@math.stanford.edu>
4036
4037 * block.c (contained_in): Add 'const' to arguments.
4038 (block_function): Ditto.
4039 * block.h: Update declarations for block_function and
4040 contained_in.
4041
cdef89d0
DC
40422003-06-02 David Carlton <carlton@math.stanford.edu>
4043
4044 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4045 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4046 * p-valprint.c (pascal_val_print): Ditto.
4047 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4048
72667056
RH
40492003-06-02 Richard Henderson <rth@redhat.com>
4050
98a8e1e5
RH
4051 * alpha-tdep.c (alpha_push_dummy_call): Use
4052 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4053
8ffd9b1b 4054 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4055 sign-extension of 32-bit values.
4056 (alpha_store_return_value): Similarly.
0ede8eca 4057
98a8e1e5
RH
4058 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4059 (alpha_extract_return_value): Likewise.
4060 (alpha_store_return_value): Likewise.
7b5e1cb3 4061
98a8e1e5
RH
4062 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4063 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4064
98a8e1e5
RH
4065 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4066 (alpha_extract_struct_value_address): Likewise.
4067 (alpha_store_return_value): Likewise.
4068 (alpha_store_struct_return): Remove.
4069 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4070
98a8e1e5
RH
4071 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4072 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4073 macros where appropriate.
4074 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4075 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4076
98a8e1e5
RH
4077 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4078 for SP, GP; void_func_ptr for PC; non-language-specific types
4079 for all others.
4080 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4081
6dd77b81
RH
40822003-06-02 Richard Henderson <rth@redhat.com>
4083
4084 * top.h (lim_at_start): Declare.
4085 * main.c (captured_main): Set it.
4086 * top.c (lim_at_start): Define.
4087 (command_loop): Use it instead of &environ.
4088 * event-top.c (command_handler): Likewise.
4089
f4dbdb54
JT
40902003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4091
4092 * mipsnbsd-tdep.c: Update copyright years.
4093 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4094
8f285956
RH
40952003-06-01 Richard Henderson <rth@redhat.com>
4096
98a8e1e5
RH
4097 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4098 (alpha-linux-tdep.o): Update dependencies.
4099 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4100 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4101
615967cb
RH
41022003-06-01 Richard Henderson <rth@redhat.com>
4103
98a8e1e5
RH
4104 * alpha-tdep.c (alpha_register_reggroup_p): New.
4105 (alpha_gdbarch_init): Register it.
615967cb 4106
b59661bd
AC
41072003-06-02 Andrew Cagney <cagney@redhat.com>
4108
4109 * dwarfread.c: Eliminate "register"
4110 (decode_die_type): Eliminate assignment within "if".
4111 (struct_type, decode_array_element_type): Ditto.
4112 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4113 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4114 (decode_modified_type, completedieinfo): Ditto.
4115 * block.c: Eliminate "register".
4116 (blockvector_for_pc_sect): Eliminate assignment within "if".
4117 * cp-support.h (struct symbol): Opaque declaration.
4118 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4119
5ef165c2
RH
41202003-06-01 Richard Henderson <rth@redhat.com>
4121
98a8e1e5
RH
4122 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4123 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4124
143985b7
AF
41252003-06-01 Adam Fedor <fedor@gnu.org>
4126
4127 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4128 * gdbarch.[ch]: Regenerate.
4129 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4130 (hppa_gdbarch_init): Set it in the gdbarch vector.
4131 * i386-tdep.c (i386_fetch_pointer_argument): New
4132 (i386_gdbarch_init): Set it into gdbarch.
4133 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4134 (rs6000_gdbarch_init): Set it in gdbarch.
4135 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4136 (sparc_gdbarch_init): Set it in gdbarch.
4137
ae0167b9
AC
41382003-06-01 Andrew Cagney <cagney@redhat.com>
4139
7c0b4a20
AC
4140 * defs.h (extract_address): Delete declaration.
4141 * findvar.c (extract_address): Delete function.
4142 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4143 extract_address with the inline equivalent,
4144 extract_unsigned_integer.
4145 (xstormy16_extract_struct_value_address): Ditto.
4146 (xstormy16_pointer_to_address): Ditto.
4147 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4148 * v850-tdep.c (v850_push_arguments): Ditto.
4149 (v850_extract_return_value): Ditto.
4150 (v850_extract_struct_value_address): Ditto.
4151 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4152 (sparcnbsd_get_longjmp_target_64): Ditto.
4153 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4154 (get_longjmp_target): Ditto.
4155 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4156 (sh64_extract_struct_value_address): Ditto.
4157 (sh_push_arguments): Ditto.
4158 (sh64_push_arguments): Ditto.
4159 * remote-vxsparc.c (vx_read_register): Ditto.
4160 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4161 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4162 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4163 * mipsv4-nat.c (get_longjmp_target): Ditto.
4164 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4165 * mips-nat.c (get_longjmp_target): Ditto.
4166 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4167 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4168 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4169 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4170 * irix5-nat.c (get_longjmp_target): Ditto.
4171 * irix4-nat.c (get_longjmp_target): Ditto.
4172 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4173 (ia64_push_arguments): Ditto.
4174 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4175 * h8300-tdep.c (h8300_push_arguments): Ditto.
4176 (h8300_store_return_value): Ditto.
4177 (h8300_extract_struct_value_address): Ditto.
4178 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4179 (frv_push_arguments): Ditto.
4180 * avr-tdep.c (avr_pointer_to_address): Ditto.
4181 (avr_push_arguments): Ditto.
4182 * arm-tdep.c (arm_push_dummy_call): Ditto.
4183 (arm_get_longjmp_target): Ditto.
4184 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4185 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4186 (alpha_get_longjmp_target): Ditto.
4187
ae0167b9
AC
4188 * solib-irix.c (extract_mips_address): Inline extract_address,
4189 replacing it with extract_signed_integer.
4190 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4191 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4192 (first_link_map_member, open_symbol_file_object): Ditto.
4193 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4194 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4195 (LM_NEXT, LM_NAME): Ditto.
4196
44d88583
RH
41972003-06-01 Richard Henderson <rth@redhat.com>
4198
98a8e1e5
RH
4199 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4200 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4201 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4202 (alpha_cannot_store_register): Likewise.
4203 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4204 * alpha-nat.c (supply_gregset): Likewise.
4205 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4206
310e9b6a
AC
42072003-06-01 Andrew Cagney <cagney@redhat.com>
4208
4209 * infcall.c (call_function_by_hand): Update comment on
4210 DEPRECATED_DUMMY_WRITE_SP.
4211
4212 * mips-tdep.c (mips_gdbarch_init): Do not set
4213 deprecated_dummy_write_sp.
4214 (mips_eabi_push_dummy_call): Set the SP register.
4215 (mips_o64_push_dummy_call): Set the SP register.
4216 (mips_o32_push_dummy_call): Set the SP register.
4217 (mips_n32n64_push_dummy_call): Set the SP register.
4218
5ab84872
RH
42192003-06-01 Richard Henderson <rth@redhat.com>
4220
98a8e1e5
RH
4221 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4222 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4223 (supply_gregset): Likewise.
4224 * alpha-tdep.c (alpha_store_return_value): Likewise.
4225 (alpha_get_longjmp_target): Likewise.
4226 (alpha_register_name): Constify array.
4227 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4228 deprecated_register_size, deprecated_register_bytes,
4229 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4230 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4231 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4232
09cc52fd
RH
42332003-06-01 Richard Henderson <rth@redhat.com>
4234
4235 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4236 from arg_reg_buffer to regcache to avoid double conversion.
4237
c7f16359
MK
42382003-06-01 Mark Kettenis <kettenis@gnu.org>
4239
4240 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4241 SP_REGNUM.
4242 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4243 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4244
7131cb6e
RH
42452003-06-01 Richard Henderson <rth@redhat.com>
4246
98a8e1e5
RH
4247 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4248 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4249
f3e0f90b
RH
42502003-06-01 Richard Henderson <rth@redhat.com>
4251
98a8e1e5
RH
4252 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4253 not overlapping PC_REGNUM.
f3e0f90b 4254
c88e30c0
RH
42552003-06-01 Richard Henderson <rth@redhat.com>
4256
98a8e1e5
RH
4257 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4258 alpha_push_arguments. Don't dump argument register data to
4259 the target stack. Fix float and 128-bit long double semantics.
4260 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4261 (alpha_fix_call_dummy): Remove.
4262 (alpha_call_dummy_words): Remove.
4263 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4264
f1a559ae
RH
42652003-06-01 Richard Henderson <rth@redhat.com>
4266
4267 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4268
5e045346
AC
42692003-06-01 Andrew Cagney <cagney@redhat.com>
4270
95404a3e
AC
4271 * mips-tdep.c (is_mips16_addr): New function.
4272 (make_mips16_addr, unmake_mips16_addr): New functions.
4273 (pc_is_mips16, mips_fetch_instruction): Use.
4274 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4275 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4276 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4277 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4278 TARGET_MIPS.
4279 * config/mips/tm-mips.h: Update copyright.
4280 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4281 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4282 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4283 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4284 (TM_PRINT_INSN_MACH): Delete.
4285 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4286
5e045346
AC
4287 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4288 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4289 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4290 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4291 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4292 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4293 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4294 mips*-*-riscos* and mips*-*-sysv* onto mips.
4295 * config/mips/mips64.mt: New file.
4296 * config/mips/mips.mt: New file.
4297 * config/mips/littlemips.mt: Delete file.
4298 * config/mips/decstation.mt: Delete file.
4299 * config/mips/vr4300el.mt: Delete file.
4300 * config/mips/vr5000el.mt: Delete file.
4301 * config/mips/vr5000.mt: Delete file.
4302 * config/mips/vr4100.mt: Delete file.
4303 * config/mips/vr4xxxel.mt: Delete file.
4304 * config/mips/vr4300.mt: Delete file.
4305 * config/mips/vr4xxx.mt: Delete file.
4306 * config/mips/bigmips.mt: Delete file.
4307 * config/mips/bigmips64.mt: Delete file.
4308 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4309 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4310 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4311 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4312 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4313 "tm-bigmips.h".
4314 * config/mips/tm-irix3.h: Ditto.
4315 * config/mips/tm-mipsv4.h: Ditto.
4316 * config/mips/tm-embed.h: Ditto.
4317 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4318 "tm-bigmips64.h".
4319 * config/mips/tm-vr5000el.h: Delete file.
4320 * config/mips/tm-tx39l.h: Delete file.
4321 * config/mips/tm-vr4300el.h: Delete file.
4322 * config/mips/tm-vr4xxxel.h: Delete file.
4323 * config/mips/tm-vr4300.h: Delete file.
4324 * config/mips/tm-vr4100.h: Delete file.
4325 * config/mips/tm-vr4xxx.h: Delete file.
4326 * config/mips/tm-vr5000.h: Delete file.
4327 * config/mips/tm-embedl64.h: Delete file.
4328 * config/mips/tm-embedl.h: Delete file.
4329 * config/mips/tm-embed64.h: Delete file.
4330 * config/mips/tm-bigmips64.h: Delete file.
4331 * config/mips/tm-bigmips.h: Delete file.
4332
2473a4a9
MK
43332003-06-01 Mark Kettenis <kettenis@gnu.org>
4334
97a5b208
MK
4335 Fix gdb/1216.
4336 * shnbsd-nat.c: Include "sh-tdep.h".
4337
2473a4a9
MK
4338 From Richard Henderson <rth@redhat.com>:
4339 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4340
e0f7ec59
AC
43412003-05-31 Andrew Cagney <cagney@redhat.com>
4342
4343 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4344 forward declaration.
4345 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4346 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4347 (mips_find_saved_regs): Use set_reg_offset.
4348 (mips_frame_init_saved_regs): Delete function.
4349 (mips_pop_frame): Call mips_find_saved_regs instead of
4350 DEPRECATED_FRAME_INIT_SAVED_REGS.
4351
68dcc709
AC
43522003-05-31 Andrew Cagney <cagney@redhat.com>
4353
4354 * mips-tdep.c (mips_gdbarch_init): Do not set
4355 deprecated_max_register_raw_size, register_virtual_size, and
4356 deprecated_max_register_virtual_size.
4357
cfc14b3a
MK
43582003-05-31 Mark Kettenis <kettenis@gnu.org>
4359
6405b0a6
MK
4360 * i386-tdep.c: Include "dwarf2-frame.h".
4361 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4362 * Makefile.in (i386-tdep.o): Update dependencies.
4363
cfc14b3a
MK
4364 * dwarf2-frame.c, dwarf2-frame.h: New files.
4365 * Makefile.in (SFILES): Add dwarf2-frame.c.
4366 (dwarf2_frame_h): Define.
4367 (COMMON_OBS): Add dwarf2-frame.o.
4368 (dwarf2-frame.o): Add dependencies.
4369
6a2751d2
AJ
43702003-05-31 Andreas Jaeger <aj@suse.de>
4371
4372 * x86-64-linux-nat.c: Fix comment.
4373
1c3545ae
MK
43742003-05-31 Mark Kettenis <kettenis@gnu.org>
4375
10f93086
MK
4376 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4377 function signature.
4378
1c3545ae
MK
4379 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4380 have a sigcontext_addr handler.
4381 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4382 sigcontext_addr handler.
4383
e11c53d2
AC
43842003-05-31 Andrew Cagney <cagney@redhat.com>
4385
4386 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4387 (print_fp_register_row): Replace do_fp_register_row.
4388 (mips_print_fp_register): Add "file" and "frame" parameters.
4389 (mips_print_register): Add "file" and "frame" parameters.
4390 (mips_print_registers_info): Replace mips_do_registers_info.
4391 (mips_gdbarch_init): Set print_registers_info instead of
4392 deprecated_do_registers_info.
4393 (mips_read_fp_register_single): Add "frame" parameter.
4394 (mips_read_fp_register_double): Add "frame" parameter.
4395
a3386186
MK
43962003-05-31 Mark Kettenis <kettenis@gnu.org>
4397
70913449
MK
4398 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4399 Fixes a bug where GDB would print the wrong register names for
4400 targets without SSE.
4401
2b5e0749
MK
4402 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4403 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4404 registers.
4405
4406 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4407 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4408 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4409 TDEP->sc_sp_offset.
4410
a3386186
MK
4411 From Michal Ludvig <mludvig@suse.cz>:
4412 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4413 and `sc_num_regs'.
4414 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4415 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4416 I386_ST0_REGNUM): Move here from...
4417 * i386-tdep.c: ... here.
4418 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4419 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4420 registers if possible.
4421 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4422 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4423 Remove variables.
4424 (i386bsd_sc_reg_offset): New variable.
4425 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4426 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4427 TDEP->sc_sp_offset.
4428 (i386fbsd_sc_reg_offset): New variable.
4429 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4430 TDEP->sc_num_regs.
4431 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4432 variables.
4433 (i386fbsd4_sc_reg_offset): New variable.
4434 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4435 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4436 TDEP->sc_sp_offset.
4437 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4438 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4439 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4440 Remove variables.
4441 (i386nbsd_sc_reg_offset): New variable.
4442 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4443 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4444 TDEP->sc_sp_offset.
4445 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4446 Remove variables.
4447 (i386obsd_sc_reg_offset): New variable.
4448 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4449 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4450 TDEP->sc_sp_offset.
4451 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4452 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4453 for frame pointer offset in `struct sigcontext'.
4454
25ab4790
AC
44552003-05-31 Andrew Cagney <cagney@redhat.com>
4456
4457 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4458 architecture methods call_dummy_words, sizeof_call_dummy_words,
4459 push_return_address, store_struct_return, and fix_call_dummy. Set
4460 push_dummy_call instead of deprecated_push_arguments.
4461 (mips_store_struct_return): Delete function.
4462 (mips_fix_call_dummy): Delete function.
4463 (mips_push_return_address): Delete function.
4464 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4465 RA_REGNUM and T9_REGNUM.
4466 (mips_n32n64_push_dummy_call): Ditto for
4467 mips_n32n64_push_arguments.
4468 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4469 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4470
6a65450a
AC
44712003-05-31 Andrew Cagney <cagney@redhat.com>
4472
4473 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4474 "dummy_addr" to "bp_addr".
4475 * infcall.c (call_function_by_hand): Pass "funaddr" to
4476 gdbarch_push_dummy_call.
4477 * gdbarch.h, gdbarch.c: Re-generate.
4478 * i386-tdep.c (i386_push_dummy_call): Update.
4479 * arm-tdep.c (arm_push_dummy_call): Update.
4480 * d10v-tdep.c (d10v_push_dummy_call): Update.
4481
c4f35dd8
MK
44822003-05-31 Mark Kettenis <kettenis@gnu.org>
4483
4484 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4485 variable declarations.
4486 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4487 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4488 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4489 x86_64_init_frame_pc, x86_64_init_frame_pc,
4490 x86_64_function_has_prologue): Remove prototypes.
4491 (X86_64_NUM_GREGS): New define.
4492 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4493 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4494 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4495 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4496 XMM1_REGNUM): Remove defines.
4497 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4498 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4499 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4500 X86_64_XMM1_REGNUM): New defines.
4501 (struct x86_64_register_info): Renamed from `struct
4502 register_info'. Remove `size' member.
4503 (x86_64_register_info_table): Remove variable.
4504 (x86_64_register_info): New variable.
4505 (X86_64_NUM_REGS): New define.
4506 (X86_64_NUM_GREGS): Remove define.
4507 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4508 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4509 Remove variables.
4510 (x86_54_dwarf2_reg_to_regnum): Remove function.
4511 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4512 (x86_64_dwarf_reg_to_regnum): New function.
4513 (x86_64_register_name): Rewrite.
4514 (x86_64_register_raw_size): Remove function.
4515 (x86_64_register_byte_table): Remove variable.
4516 (x86_64_register_byte): Remove function.
4517 (x86_64_register_virtual_type): Remove function.
4518 (x86_64_register_type): New function.
4519 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4520 x86_64_register_convert_to_raw): Remove functions.
4521 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4522 (x86_64_use_struct_convention): Make static. Adjust for renamed
4523 defines.
4524 (x86_64_frame_init_saved_regs): Remove function.
4525 (x86_64_push_arguments): Make static. Change to accept a regcache
4526 as argument.
4527 (x86_64_store_return_value, x86_64_extract_return_value): Make
4528 static. Rewrite based on i386 counterparts.
4529 (x86_64_push_dummy_call): New function.
4530 (X86_64_NUM_SAVED_REGS): New define.
4531 (x86_64_register_number): Remove function.
4532 (x86_64_store_struct_return): Remove function.
4533 (x86_64_frameless_function_invocation,
4534 x86_64_function_has_prologue): Remove functions.
4535 (PROLOG_BUFSIZE): Remove define.
4536 (struct x86_64_frame_cache): New structure.
4537 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4538 x86_64_frame_cache, x86_64_frame_this_id,
4539 x86_64_frame_prev_register, x86_64_frame_p,
4540 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4541 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4542 functions.
4543 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4544 variables.
4545 (x86_64_skip_prologue): Rewrite in terms of
4546 x86_64_analyze_prologue.
4547 (x86_64_frame_base_address): New function.
4548 (x86_64_frame_base): New variable.
4549 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4550 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4551 set deprecated_fp_regnum, deprecated_register_size,
4552 deprecated_register_bytes, register_raw_size, register_byte,
4553 register_virtual_type, register_convertiable,
4554 register_convert_to_virtual, convert_to_raw,
4555 deprecated_get_saved_register, deprecated_target_read_fp,
4556 deprecated_push_arguments, deprecated_push_return_address,
4557 deprecated_pop_frame, deprecated_store_struct_return,
4558 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4559 frameless_function_invocation, deprecated_frame_saved_pc,
4560 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4561 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4562 deprecated_init_frame_pc and virtual_frame_pointer. Call
4563 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4564 and x86_64_frame_p. Call frame_base_set_default to register
4565 x86_64_frame_base.
4566 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4567 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4568 (_initialize_x86_64_tdep): Remove function.
4569 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4570 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4571 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4572 define.
4573 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4574 (x86_64_linux_sigcontext_addr): Rewrite.
4575 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4576 x86_64_linux_frame_saved_pc): Remove functions.
4577 (x86_64_linux_pc_in_sigtramp): Renamed from
4578 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4579 trampoline.
4580 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4581 Remove_functions.
4582 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4583 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4584 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4585 (x86_64_regmap): Rename to regmap.
4586 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4587 x86_64_num_gregs.
4588 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4589 x86_64_regmap.
4590 (x86_64_fxsave_offset): Remove function.
4591 (supply_fpregset): Simply call x86_64_supply_fxsave.
4592 (fill_fpregset): Simply call x86_64_fill_fxsave.
4593 (fetch_inferior_registers, store_inferior_registers): Avoid
4594 asignment in if-statement.
4595 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4596 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4597 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4598 (fetch_core_registers): Remove function.
4599 (linux_elf_core_fns): Remove.
4600 (offsetoff): Don't define.
4601 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4602 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4603 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4604 add core-regset.o.
4605 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4606 protection against multiple includes instead of NM_X86_64_h. Add
4607 various comments. Include "config/nm-linux.h". Don't include
4608 <signal.h>.
4609 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4610 GET_THREAD_SIGNALS): Remove defines.
4611 (x86_64_register_u_addr, kernel_u_size,
4612 lin_thread_get_thread_signals): Remove prototypes.
4613 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4614 [HAVE_LINK_H]: Don't include "solib.h".
4615 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4616 * config/i386/tm-x86-64linux.h: Fix comments.
4617 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4618 x86-64-tdep.o): Update dependencies.
4619
c25083af
AC
46202003-05-30 Andrew Cagney <cagney@redhat.com>
4621
c8f55a7b
AC
4622 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4623 Change parameter type to a "struct regcache *".
4624
c25083af
AC
4625 * gdbarch.sh: Regardless of the multi-arch level, always define
4626 the macro when not already defined.
4627 * gdbarch.h, gdbarch.c: Re-generate.
4628
fbe586ae
RH
46292003-05-30 Richard Henderson <rth@redhat.com>
4630
4631 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4632 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4633 (alpha_mdebug_frame_this_id): Likewise.
4634 (alpha_mdebug_frame_prev_register): Likewise.
4635 (alpha_mdebug_frame_base_address): Likewise.
4636 (alpha_mdebug_frame_locals_address): Likewise.
4637 (alpha_mdebug_frame_args_address): Likewise.
4638 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4639 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4640 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4641 loop increment.
4642 (alpha_heuristic_frame_this_id): Make static.
4643 (alpha_heuristic_frame_prev_register): Likewise.
4644 (alpha_heuristic_frame_base_address): Likewise.
4645 * alpha-tdep.h: Update.
4646
acd5c798
MK
46472003-05-30 Mark Kettenis <kettenis@gnu.org>
4648
4649 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4650 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4651 defenitions.
4652 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4653 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4654 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4655 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4656 I386_ST0_REGNUM): New defines.
4657 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4658 codestream_get): Remove define.
4659 (codestream_next_addr, condestream_addr, condestream_buf,
4660 codestream_off, codestream_cnt): Remove variables.
4661 (codestream_fill, codestream_seek, codestream_read): Remove
4662 functions.
4663 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4664 functionality.
4665 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4666 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4667 i386_frame_saved_pc, i386_saved_pc_after_call,
4668 i386_frame_num_args, i386_frame_init_saved_regs,
4669 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4670 i386_push_arguments): Remove functions.
4671 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4672 functionality. Use i386_analyze_prologue instead of
4673 i386_get_frame_setup.
4674 (I386_NUM_SAVED_REGS): New define.
4675 (struct i386_frame_cache): New structure.
4676 (i386_alloc_frame_cache, i386_analyze_struct_return,
4677 i386_skip_probe, i386_analyze_frame_setup,
4678 i386_analyze_register_saves, i386_analyze_prologue,
4679 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4680 i386_frame_prev_register, i386_sigtramp_frame_cache,
4681 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4682 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4683 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4684 New functions.
4685 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4686 New variables.
4687 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4688 I386_EAX_REGNUM and I386_EDX_REGNUM.
4689 (i386_extract_return_value, i386_store_return_value): Use
4690 I386_ST0_REGNUM where appropriate.
4691 (i386_extract_struct_value_address): Rewrite to use extract_address.
4692 (i386_svr4_pc_in_sigtramp): Add comment.
4693 (i386_svr4_sigcontext_addr): Rewrite.
4694 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4695 TDEP->sc_sp_offset.
4696 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4697 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4698 of new defines. Set push_dummy_call, don't set
4699 deprecated_push_arguments, deprecated_push_return_address,
4700 deprecated_pop_frame. Don't set parm_boundary. Don't set
4701 deprecated_frame_chain, deprecated_frame_saved_pc,
4702 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4703 save_dummy_frame_tos, unwind_pc. Call
4704 frame_unwind_append_predicate and frame_base_set_default. Don't
4705 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4706 Don't set frameless_function_invocation. Don't set
4707 deprecated_register_bytes, deprecated_register_size,
4708 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4709 * i386-linux-tdep.c: Fix formatting in some comments.
4710 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4711 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4712 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4713 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4714 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4715 redundant parentheses.
4716 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4717 (i386_linux_sigcontext_addr): Use it. Rewrite.
4718 (find_minsym_and_objfile): Change name of second argument.
4719 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4720 changed. Use frame_pc_unwind instead of
4721 DEPRECATED_SAVED_PC_AFTER_CALL.
4722 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4723 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4724 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4725 unwinder.
4726 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4727 "dummy-frame.h".
4728 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4729 (_initialize_i386_cygwin_tdep): New prototype.
4730 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4731 deprecated_frame_chain_valid.
4732 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4733 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4734 Rely on the SVR4 defaults.
4735 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4736 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4737
c89b70f1
AC
47382003-05-30 Andrew Cagney <cagney@redhat.com>
4739
4740 * infcall.c (call_function_by_hand): Always call
4741 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4742
85b32d22
RH
47432003-05-30 Richard Henderson <rth@redhat.com>
4744
c89b70f1
AC
4745 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4746 increment.
85b32d22 4747
bfe51b1e
JB
47482003-05-29 Jim Blandy <jimb@redhat.com>
4749
4750 Use gdbarch methods for solib stuff on PowerPC Linux.
4751 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4752 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4753 show through.
4754 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4755 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4756 giving the same effect as the #definitions above.
4757
1abf022c
AF
47582003-05-29 Adam Fedor <fedor@gnu.org>
4759
4760 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4761 (find_implementation_from_class): Replace it with the standard
4762 case i.e. do nothing.
4763
d2427a71
RH
47642003-05-29 Richard Henderson <rth@redhat.com>
4765
4766 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4767 (alpha_linux_sigtramp_offset): Use it. Make static.
4768 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4769 update for new frame model.
4770 * alpha-mdebug-tdep.c: New file.
4771 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4772 (alpha_osf1_init_abi): Install it.
4773 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4774 (linked_proc_desc_table): Remove.
4775 (alpha_frame_past_sigtramp_frame): Remove.
4776 (alpha_dynamic_sigtramp_offset): Remove.
4777 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4778 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4779 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4780 (push_sigtramp_desc): Remove.
4781 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4782 (alpha_cannot_store_register): Likewise.
4783 (alpha_sigcontext_addr): Remove.
4784 (alpha_find_saved_regs): Remove.
4785 (alpha_frame_init_saved_regs): Remove.
4786 (alpha_init_frame_pc_first): Remove.
4787 (read_next_frame_reg): Remove.
4788 (alpha_frame_saved_pc): Remove.
4789 (alpha_saved_pc_after_call): Remove.
4790 (temp_proc_desc, temp_saved_regs): Remove.
4791 (alpha_about_to_return): Remove.
4792 (cached_proc_desc): Remove.
4793 (alpha_frame_chain): Remove.
4794 (alpha_print_extra_frame_info): Remove.
4795 (alpha_init_extra_frame_info): Remove.
4796 (alpha_frame_locals_address): Remove.
4797 (alpha_frame_args_address): Remove.
4798 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4799 (alpha_push_dummy_frame): Remove.
4800 (alpha_pop_frame): Remove.
4801 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4802 (alpha_read_insn): New.
4803 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4804 for different insn encodings.
4805 (alpha_in_lenient_prologue): Remove.
4806 (struct alpha_sigtramp_unwind_cache): New.
4807 (alpha_sigtramp_frame_unwind_cache): New.
4808 (alpha_sigtramp_register_address): New.
4809 (alpha_sigtramp_frame_this_id): New.
4810 (alpha_sigtramp_frame_prev_register): New.
4811 (alpha_sigtramp_frame_unwind): New.
4812 (alpha_sigtramp_frame_p): New.
4813 (struct alpha_heuristic_unwind_cache): New.
4814 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4815 don't count nop insns that occur between functions.
4816 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4817 heuristic_proc_desc, but without the mdebug wrapping.
4818 (alpha_heuristic_frame_this_id): New.
4819 (alpha_heuristic_frame_prev_register): New.
4820 (alpha_heuristic_frame_unwind): New.
4821 (alpha_heuristic_frame_p): New.
4822 (alpha_heuristic_frame_base_address): New.
4823 (alpha_heuristic_frame_base): New.
4824 (alpha_unwind_dummy_id): New.
4825 (alpha_unwind_pc): New.
4826 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4827 frame related deprecated initializations; install replacements.
4828 (alpha_dump_tdep): Remove.
4829 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4830 (alpha_read_insn, alpha_after_prologue,
4831 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4832 alpha_heuristic_frame_prev_register,
4833 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4834 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4835 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4836 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4837
93ec1121
AC
48382003-05-29 Andrew Cagney <cagney@redhat.com>
4839
4840 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4841 dependant on the availability of ASSERT_FUNCTION.
4842 (ASSERT_FUNCTION): Do not define when there is no function name.
4843
98f08d3d
KB
48442003-05-29 Kevin Buettner <kevinb@redhat.com>
4845
4846 From Jimi X <jimix@watson.ibm.com>:
4847 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4848
0897f59b
JB
48492003-05-28 Jim Blandy <jimb@redhat.com>
4850
4851 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4852 argument to ptrace to int; the system headers should give it the
4853 right type, and pointers don't fit in ints on powerpc64-*-*.
4854
14898363
L
48552003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4856
4857 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4858 DW_TAG_catch_block.
4859
a7a48797
EZ
48602003-05-26 Elena Zannoni <ezannoni@redhat.com>
4861
4862 * stabsread.c (dbx_lookup_type): Make static.
4863 (read_type): Ditto.
4864 (add_undefined_type): Ditto.
4865 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4866 not export.
4867
f5479e9c
EZ
48682003-05-26 Elena Zannoni <ezannoni@redhat.com>
4869
4870 * hpread.c (hpread_has_name): Make static.
4871 (hpread_psymtab_to_symtab): Ditto.
4872 (file_exists): Ditto.
4873 (hpread_call_pxdb): Ditto.
4874 (hpread_pxdb_needed): Ditto.
4875 (hpread_quick_traverse): Ditto.
4876 (hpread_get_header): Ditto.
4877 (hpread_get_lntt): Ditto.
4878 (hpread_get_slt): Ditto.
4879 (class_of): Ditto.
4880
eb2e12d7
AS
48812003-05-25 Andreas Schwab <schwab@suse.de>
4882
78bf922a
AS
4883 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4884 stack_align and deprecated_extra_stack_alignment_needed.
4885 (m68k_stack_align): Delete.
4886
eb2e12d7
AS
4887 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4888 (m68k_register_virtual_size): Likewise.
4889 (altos_skip_prologue): Remove obsolete function.
4890 (isi_frame_num_args): Likewise.
4891 (news_frame_num_args): Likewise.
4892 (m68k_fix_call_dummy): Make static.
4893 (m68k_push_dummy_frame): Likewise.
4894 (m68k_pop_frame): Likewise.
4895 (m68k_skip_prologue): Likewise.
4896 (m68k_frame_init_saved_regs): Likewise.
4897 (m68k_saved_pc_after_call): Likewise.
4898 (m68k_get_longjmp_target): Make multi-arch.
4899 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4900 structure. Register m68k_get_longjmp_target if enabled.
4901 * m68k-tdep.h (struct gdbarch_tdep): Define.
4902 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4903
4904 * Makefile.in (config.status): Also depend on configure.tgt
4905 and configure.host.
4906 (m68klinux-tdep.o): Update dependencies.
4907 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4908 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4909 (M68K_LINUX_JB_PC): Define.
4910 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4911 and take additional parameter.
4912 (m68k_linux_sigtramp_saved_pc): Update.
4913 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4914 m68k_linux_pc_in_sigtramp, in_plt_section,
4915 find_solib_trampoline_target.
4916 * config/m68k/tm-linux.h: Don't include any tm headers.
4917 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4918 (JB_ELEMENT_SIZE): Likewise.
4919 (JB_PC): Likewise.
4920 (GET_LONGJMP_TARGET): Likewise.
4921 (IN_SIGTRAMP): Likewise.
4922 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4923
eb2c22dc
MK
49242003-05-25 Mark Kettenis <kettenis@gnu.org>
4925
4926 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4927 (sparc32_push_arguments): Re-implement by calling
4928 sparc32_do_push_arguments.
4929
44b7b84e
MK
49302003-05-25 Mark Kettenis <kettenis@gnu.org>
4931
4932 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4933 SPARC_O1_REGNUM): New defines.
4934 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4935 (sparc32_store_return_value): New function.
4936 (sparc_extract_struct_value_address): Rewrite to operate on a
4937 regcache.
4938 (sparc_gdbarch_init): Don't set
4939 deprecated_extract_struct_value_address. Set
4940 extract_struct_value_address instead. Don't set
4941 deprecated_extract_return_value and deprecated_store_return_value
4942 for 32-bit targets. Set extract_return_value and
4943 store_return_value instead.
4944 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4945 DEPRECTAED_EXTRACT_RETURN_VALUE,
4946 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4947 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4948 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4949 (sparc_store_return_value): Remove prototype.
4950 (sparc32_store_return_value): New prototype.
4951 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4952 Adjust prototypes.
4953
f6ad61e3
MK
49542003-05-24 Mark Kettenis <kettenis@gnu.org>
4955
4956 * sparcnbsd-tdep.c: Include "gdb_string.h".
4957
b276f1bb
AC
49582003-05-23 Andrew Cagney <cagney@redhat.com>
4959
4960 * p-valprint.c (pascal_val_print): Replace extract_address with
4961 the inline equivalent extract_unsigned_integer.
4962 * jv-valprint.c (java_value_print): Ditto.
4963 * ada-valprint.c (ada_val_print_1): Ditto.
4964 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4965
e76c5fcc
TR
49662003-05-23 Theodore A. Roth <troth@openavr.org>
4967
4968 * blockframe.c (frameless_look_for_prologue): Remove unused
4969 after_prologue variable.
4970
2cdd89cb
MK
49712003-05-23 Mark Kettenis <kettenis@gnu.org>
4972
4973 * blockframe.c (get_pc_function_start): Rewrite to avoid
4974 asignments in if-statements.
4975
182d43bc
EZ
49762003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4977
4978 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4979 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4980 files, don't relocate absolute symbols (and do use mst_abs).
4981
e8f3fcdd
AC
49822003-05-23 Andrew Cagney <cagney@redhat.com>
4983
4984 * objc-lang.c: Include "gdb_assert.h".
4985 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4986 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4987 (gdb_check, gdb_check_fatal): Delete functions.
4988 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4989 gdb_assert.
4990 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4991 * Makefile.in (objc-lang.o): Update dependencies.
4992
3c23e6fb
ILT
49932003-05-22 Ian Lance Taylor <ian@airs.com>
4994
4995 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4996 with fprintf_filtered, not fprintf_unfiltered.
4997
af1342ab
AC
49982003-05-22 Andrew Cagney <cagney@redhat.com>
4999
5000 * stack.c (frame_info): Inline extract_address, replacing it with
5001 extract_unsigned_integer.
5002 * findvar.c (unsigned_pointer_to_address): Ditto.
5003 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5004 * dwarf2expr.c (dwarf2_read_address): Ditto.
5005 * frame.c (frame_pc_unwind): Update comment.
5006 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5007
47e242ec
JJ
50082003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5009
5010 * infptrace.c (detach): Call print_sys_errmsg rather than
5011 perror_with_name to issue warning message when errno is non-zero
5012 after calling ptrace detach.
5013
e2ac8128
JB
50142003-05-21 J. Brobecker <brobecker@gnat.com>
5015
5016 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5017 macro definitions from here...
5018 * hppa-tdep.c: ...to there.
5019
92b3541e
KB
50202003-05-20 Kevin Buettner <kevinb@redhat.com>
5021
5022 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5023 register_ptrace_addr(). Fix all callers.
5024
55809acb
AS
50252003-05-21 Andreas Schwab <schwab@suse.de>
5026
5027 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5028 dependencies.
5029 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5030 end.
5031 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5032 (_initialize_m68k_linux_tdep): New function.
5033 (m68k_linux_frame_saved_pc): Make static.
5034 (m68k_linux_extract_return_value): Likewise.
5035 (m68k_linux_store_return_value): Likewise.
5036 (m68k_linux_extract_struct_value_address): Likewise.
5037 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5038 Remove.
5039 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5040 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5041 (DEPRECATED_FRAME_SAVED_PC): Remove.
5042
0fbc10f7
KW
50432003-05-20 Kris Warkentin <kewarken@qnx.com>
5044
5045 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5046 regset numbering rather than our own.
5047
58da2eb2
DC
50482003-05-19 David Carlton <carlton@bactrian.org>
5049
5050 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5051
1fcb5155
DC
50522003-05-19 David Carlton <carlton@bactrian.org>
5053
5054 Partial fix for PR c++/827.
5055 * cp-support.h: Include symtab.h.
5056 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5057 * cp-namespace.c: Update contributors.
5058 (cp_lookup_symbol_nonlocal): New.
5059 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5060 (lookup_symbol_file): Ditto.
5061 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5062 * block.h: Declare block_scope, block_using, block_global_block.
5063 * block.c (block_scope): New.
5064 (block_using, block_global_block): Ditto.
5065 * Makefile.in (cp_support_h): Depend on symtab_h.
5066 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5067
5f9a71c3
DC
50682003-05-19 David Carlton <carlton@bactrian.org>
5069
5070 * language.h (struct language_defn): Add 'la_value_of_this'
5071 and 'la_lookup_symbol_nonlocal' members.
5072 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5073 lookup_symbol_static, lookup_symbol_global,
5074 lookup_symbol_aux_block.
5075 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5076 if we should search fields of this and how to do static/global
5077 lookup.
5078 (lookup_symbol_aux_block): Make extern.
5079 (basic_lookup_symbol_nonlocal): New.
5080 (lookup_symbol_static, lookup_symbol_global): Ditto.
5081 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5082 'la_lookup_symbol_nonlocal' members.
5083 * c-lang.c (c_language_defn, cplus_language_defn)
5084 (asm_language_defn, minimal_language_defn): Ditto.
5085 * jv-lang.c (java_language_defn): Ditto.
5086 * language.c (unknown_language_defn, auto_language_defn)
5087 (local_language_defn): Ditto.
5088 * m2-lang.c (m2_language_defn): Ditto.
5089 * objc-lang.c (objc_language_defn): Ditto.
5090 * scm-lang.c (scm_language_defn): Ditto.
5091 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5092 * p-lang.c (pascal_language_defn): Ditto for both.
5093 * Makefile.in (f-lang.o): Depend on value_h.
5094 (p-lang.o): Ditto.
5095
89a9d1b1
DC
50962003-05-19 David Carlton <carlton@bactrian.org>
5097
5098 * block.h: Declare block_static_block.
5099 * block.c (block_static_block): New.
5100 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5101 lookup_symbol_aux_local, calling block_static_block instead.
5102 (lookup_symbol_aux_local): Delete 'static_block' argument.
5103
eed3f8ab
DC
51042003-05-19 David Carlton <carlton@bactrian.org>
5105
5106 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5107
a09d8bda
ML
51082003-05-19 Michal Ludvig <mludvig@suse.cz>
5109
5110 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5111 register numbers mapping.
5112
69636828
AF
51132003-05-18 Adam Fedor <fedor@gnu.org>
5114
5115 * symtab.c (completion_list_objc_symbol): New function.
5116 (make_symbol_completion_list): Use it to add ObjC symbols
5117 when looking though the list.
5118 (language_search_unquoted_string): New function.
5119 (make_file_symbol_completion_list): Use it.
5120
55baeb84
AS
51212003-05-18 Andreas Schwab <schwab@suse.de>
5122
d0b45d99
AS
5123 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5124 dependencies.
5125 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5126 as m68k_linux_extract_return_value.
5127 (DEPRECATED_STORE_RETURN_VALUE): Define as
5128 m68k_linux_store_return_value.
5129 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5130 m68k_linux_extract_struct_value_address.
5131 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5132 get_next_frame, get_frame_base, get_frame_pc.
5133 (m68k_linux_frame_saved_pc): Use get_frame_base.
5134 (m68k_linux_extract_return_value): New function.
5135 (m68k_linux_store_return_value): New function.
5136 (m68k_linux_extract_struct_value_address): New function.
5137 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5138
55baeb84
AS
5139 * c-exp.y (typebase): Remove duplicate occurence of
5140 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5141 of lookup_signed_typename.
55baeb84 5142
b6b08ebf
MK
51432003-05-18 Mark Kettenis <kettenis@gnu.org>
5144
5145 * dwarf2loc.c (find_location_expression): Change type of second
5146 argument to `size_t *'.
5147 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5148 for size variable.
5149
5ad1c190
DC
51502003-05-18 David Carlton <carlton@bactrian.org>
5151
5152 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5153 'linkage_name'. Add comment.
5154 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5155 'linkage_name'.
5156 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5157 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5158 (lookup_block_symbol): Ditto.
5159
b8b527c5
AC
51602003-05-16 Andrew Cagney <cagney@redhat.com>
5161
5162 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5163 * gdbarch.h, gdbarch.c: Re-generate.
5164 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5165 * TODO (REGISTER_BYTES): Delete reference.
5166 * alpha-tdep.c (alpha_gdbarch_init): Update.
5167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5168 * x86-64-tdep.c (x86_64_init_abi): Update.
5169 * vax-tdep.c (vax_gdbarch_init): Update.
5170 * v850-tdep.c (v850_gdbarch_init): Update.
5171 * sparc-tdep.c (sparc_gdbarch_init): Update.
5172 * sh-tdep.c (sh_gdbarch_init): Update.
5173 * s390-tdep.c (s390_gdbarch_init): Update.
5174 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5175 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5176 (ns32k_gdbarch_init_32382): Update.
5177 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5178 * mcore-tdep.c (mcore_gdbarch_init): Update.
5179 * m68k-tdep.c (m68k_gdbarch_init): Update.
5180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5181 * ia64-tdep.c (ia64_gdbarch_init): Update.
5182 * i386-tdep.c (i386_gdbarch_init): Update.
5183 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5184 * hppa-tdep.c (hppa_gdbarch_init): Update.
5185 * h8300-tdep.c (h8300_gdbarch_init): Update.
5186 * frv-tdep.c (frv_gdbarch_init): Update.
5187 * cris-tdep.c (cris_gdbarch_init): Update.
5188 * avr-tdep.c (avr_gdbarch_init): Update.
5189 * arm-tdep.c (arm_gdbarch_init): Update.
5190 * sparc-tdep.c (sparc_pop_frame): Update.
5191 * rs6000-tdep.c (rs6000_pop_frame): Update.
5192 * remote.c (init_remote_state): Update.
5193 (remote_prepare_to_store): Update.
5194 * remote-vx.c (vx_prepare_to_store): Update.
5195 * remote-sds.c (sds_fetch_registers): Update.
5196 (sds_prepare_to_store): Update.
5197 * remote-array.c: Update.
5198 * regcache.c (init_legacy_regcache_descr): Update.
5199 (init_regcache_descr): Update.
5200 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5201 (mips_o64_extract_return_value): Update.
5202 * irix5-nat.c (fetch_core_registers): Update.
5203 * irix4-nat.c (fetch_core_registers): Update.
5204 * i386-tdep.h: Update.
5205 * hppa-tdep.c (pa_do_registers_info): Update.
5206 (pa_do_strcat_registers_info): Update.
5207 * cris-tdep.c (cris_register_bytes_ok): Update.
5208 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5209 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5210 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5211 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5212 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5213 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5214 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5215 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5216 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5217 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5218 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5219 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5220 (REGISTER_BYTES_OK): Update.
5221 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5222 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5223
ee2842e2
ILT
52242003-05-16 Ian Lance Taylor <ian@airs.com>
5225
5226 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5227 (vax_print_insn, print_insn_arg): Remove static functions.
5228 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5229 print_insn_vax from opcodes library.
5230 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5231
973177d3
AC
52322003-05-15 Andrew Cagney <cagney@redhat.com>
5233
aaab4dba
AC
5234 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5235 * target.h (memory_breakpoint_from_pc): Delete declaration.
5236 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5237 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5238 * monitor.c (monitor_insert_breakpoint): Use
5239 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5240 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5241 * gdbarch.h, gdbarch.c: Re-generate.
5242 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5243 (sparc_gdbarch_init): Set breakpoint_from_pc to
5244 sparc_breakpoint_from_pc.
5245 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5246 (BREAKPOINT_FROM_PC): Define.
5247 (sparc_breakpoint_from_pc): Declare.
5248 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5249 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5250 (BREAKPOINT_FROM_PC): Define.
5251 (BREAKPOINT): Delete macro.
5252 * target.h: Update comment.
5253 * s390-tdep.c (s390_gdbarch_init): Update comments.
5254 * remote.c: Update comments.
5255 * remote-mips.c: Update comments.
5256 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5257 * mem-break.c: Update comment.
5258 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5259 (ia64_memory_insert_breakpoint): Update.
5260 * config/sparc/tm-sparc.h: Update comment.
5261 * config/pa/tm-hppa64.h: Update comment.
5262 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5263 (rs6000_breakpoint_from_pc): Update.
5264 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5265 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5266 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5267 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5268 (mips_breakpoint_from_pc): Update.
5269 (mips_dump_tdep): Update.
5270
e06963ff
AC
5271 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5272 * minsyms.c (lookup_minimal_symbol): Inline
5273 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5274
973177d3
AC
5275 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5276 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5277 * p-lang.c (pascal_printstr): Ditto.
5278 * objc-lang.c (objc_printstr): Ditto.
5279 * m2-lang.c (m2_printstr): Ditto.
5280 * jv-valprint.c (java_print_value_fields): Ditto.
5281 * f-lang.c (f_printstr): Ditto.
5282 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5283 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5284 for repeat_count_threshold.
5285 * Makefile.in (cp-valprint.o): Update dependencies.
5286
5ea2bd7f 52872003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5288
5ea2bd7f
JJ
5289 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5290 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5291 they start with mov r2,r12. Support skipping over indirect stores
5292 of the input registers. Upon hitting a non-nop branch instruction
5293 or predicated instruction, bail out by setting lim_pc to the current
5294 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5295 beyond our calculated value and we have trust_limit set,
5296 use the lim_pc value.
5297
cc8c88f3
AC
52982003-05-15 Andrew Cagney <cagney@redhat.com>
5299
5300 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5301 generic_find_dummy_frame.
5302 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5303 (deprecated_generic_find_dummy_frame): Update.
5304 (deprecated_read_register_dummy): Update.
5305 * frame.c (deprecated_generic_get_saved_register): Update.
5306
909cd28e
TR
53072003-05-15 Theodore A. Roth <troth@openavr.org>
5308
5309 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5310 (avr_gdbarch_init): Set breakpoint_from_pc method.
5311
b923b08d
AC
53122003-05-15 Andrew Cagney <cagney@redhat.com>
5313
5314 * regcache.c (build_regcache): Set deprecated_register_valid
5315 directly.
5316 (deprecated_grub_regcache_for_register_valid): Delete function.
5317 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5318 declaration.
5319
ae2f03ac 53202003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5321
5322 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5323 * symtab.c (lookup_symbol_aux): Delete calls to
5324 lookup_symbol_aux_minsyms.
5325 (lookup_symbol_aux_minsyms): Comment out function and
5326 prototype. Delete lookup by mangled name.
ae2f03ac 5327
18ec9831
KB
53282003-05-14 Kevin Buettner <kevinb@redhat.com>
5329
5330 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5331 correctly indicate an empty stack and ``stack_allocated'' to the
5332 indicate the number of elements initially allocated.
5333 (dwarf_expr_grow_stack): Simplify method for computing new
5334 stack size. Don't loop infinitely if ``stack_len'' is zero.
5335 (execute_stack_op): Move ``ctx->in_reg'' initialization
5336 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5337 be used in conjuction with DW_OP_piece. Revise error message
5338 accordingly.
5339
de18ac1f
TR
53402003-05-14 Theodore A. Roth <troth@openavr.org>
5341
5342 * MAINTAINERS: Update my email address.
5343 * avr-tdep.c: Ditto.
5344
176620f1
EZ
53452003-05-14 Elena Zannoni <ezannoni@redhat.com>
5346
5347 * symtab.h (enum domain_enum): Rename from namespace_enum.
5348 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5349 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5350 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5351 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5352 TYPES_NAMESPACE, METHODS_NAMESPACE.
5353 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5354 (struct symbol, struct partial_symbol): Rename field
5355 'namespace_enum namespace' to 'domain_enum domain'.
5356 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5357 Delete old define kludge for namespace.
5358
5359 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5360 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5361 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5362 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5363 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5364 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5365 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5366 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5367 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5368 occurrences of the above.
5369
b7f31508
ILT
53702003-05-14 Ian Lance Taylor <ian@airs.com>
5371
5372 * Makefile.in (install-only): Use $(SHELL) when running
5373 mkinstalldirs.
5374
2fdbdd39
ILT
53752003-05-13 Ian Lance Taylor <ian@airs.com>
5376
a208d82c
ILT
5377 * MAINTAINERS (write after approval): Add myself.
5378
2fdbdd39
ILT
5379 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5380 second and third arguments.
5381 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5382 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5383
fbd9dcd3
AC
53842003-05-13 Andrew Cagney <cagney@redhat.com>
5385
5386 * defs.h (store_address): Delete declaration.
5387 findvar.c (store_address): Delete function.
5388 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5389 store_unsigned_integer.
5390 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5391 * v850-tdep.c (v850_push_arguments): Ditto.
5392 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5393 * sh-tdep.c (sh64_get_saved_register): Ditto.
5394 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5395 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5396 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5397 (mips_get_saved_register): Ditto.
5398 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5399 (find_func_descr, ia64_push_arguments): Ditto.
5400 * i386-tdep.c (i386_push_arguments): Ditto.
5401 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5402 * frv-tdep.c (frv_push_arguments): Ditto.
5403 * frame.c (legacy_saved_regs_prev_register): Ditto.
5404 (deprecated_generic_get_saved_register): Ditto.
5405 * findvar.c (unsigned_address_to_pointer): Ditto.
5406 * dwarf2read.c (dwarf2_const_value): Ditto.
5407 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5408 * alpha-tdep.c (alpha_push_arguments): Ditto.
5409
6760f9e6
JB
54102003-05-12 J. Brobecker <brobecker@gnat.com>
5411
5412 * NEWS: Mention that the hppa-hpux port has been partially
5413 multiarched (32bit ABIT only, so far).
5414
30e221b4
AC
54152003-05-11 Andrew Cagney <cagney@redhat.com>
5416
5417 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5418 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5419 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5420 sim/testsuite/sim/arm/misaligned2.ms, and
5421 sim/testsuite/sim/arm/misaligned3.ms.
5422 * disasm.h (struct ui_file): Add opaque struct declaration.
5423 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5424 * frame.h (struct ui_file): Ditto.
5425
dea7f9ba
MK
54262003-05-11 Mark Kettenis <kettenis@gnu.org>
5427
5428 * value.h: Pretty print.
5429
01986c48
MK
54302003-05-10 Mark Kettenis <kettenis@gnu.org>
5431
5432 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5433
123a958e
AC
54342003-05-08 Andrew Cagney <cagney@redhat.com>
5435
5436 * regcache.h (max_register_size): Delete declaration.
5437 * regcache.c (max_register_size): Delete function.
5438 (struct regcache_descr): Delete field "max_register_size".
5439 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5440 registers fit in MAX_REGISTER_SIZE.
5441 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5442 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5443 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5444 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5445 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5446 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5447 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5448 * dve3900-rom.c, hppa-tdep.c: Ditto.
5449
eb294659
DC
54502003-05-08 David Carlton <carlton@math.stanford.edu>
5451
5452 * valops.c (push_word): Fix typo.
5453
d9d9c31f
AC
54542003-05-08 Andrew Cagney <cagney@redhat.com>
5455
5456 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5457 * gdbarch.h: Re-generate.
5458 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5459 (legacy_max_register_raw_size): Delete declaration.
5460 * regcache.c (legacy_max_register_raw_size): Delete function.
5461 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5462 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5463 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5464 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5465 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5466 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5467 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5468 * findvar.c, dwarf2cfi.c: Ditto.
5469
22540ece
AC
54702003-05-08 Andrew Cagney <cagney@redhat.com>
5471
5472 * mips-tdep.c (read_signed_register): New function, moved to here
5473 from "regcache.c".
5474 (read_signed_register_pid): Ditto.
5475 * regcache.c (read_signed_register_pid): Delete function, moved to
5476 "mips-tdep.c".
5477 (read_signed_register): Ditto.
5478 * regcache.h (read_signed_register): Delete declaration.
5479 (read_signed_register_pid): Delete declaration.
5480
0c92afe8
AC
54812003-05-08 Andrew Cagney <cagney@redhat.com>
5482
5483 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5484 * gdbarch.h: Re-generate.
5485 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5486 (legacy_max_register_virtual_size): Delete declaration.
5487 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5488 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5489 * tracepoint.c (memrange_sortmerge): Ditto.
5490 * sparc-tdep.c (sparc_print_registers): Ditto.
5491 * regcache.c (legacy_max_register_virtual_size): Delete function.
5492
6037b830
JB
54932002-05-08 J. Brobecker <brobecker@gnat.com>
5494
5495 * fork-child.c (escape_bang_in_quoted_argument): New function.
5496 (fork_inferior): Escape '!' characters in quoted arguments
5497 only when needed.
5498
5d62c8b1
JB
54992003-05-08 J. Brobecker <brobecker@gnat.com>
5500
5501 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5502 the language of the CU is not currently supported by GDB.
5503
20a0e81d
JB
55042003-05-08 J. Brobecker <brobecker@gnat.com>
5505
5506 * defs.h (language): Add language_minimal enum value.
5507 * c-lang.c (minimal_language_defn): New language definition.
5508 (_initialize_c_language): Add the new minimal language to the list
5509 of languages known to GDB.
5510
710ee10a
KB
55112003-05-08 Kevin Buettner <kevinb@redhat.com>
5512
5513 * frame.c (get_frame_type): Don't attempt to lazily initialize
5514 frame's unwinder for legacy frames.
5515
1750fa04
AC
55162003-05-07 Andrew Cagney <cagney@redhat.com>
5517
5518 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5519 and "regcache" parameters.
5520 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5521
ddf9f258 55222003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5523
5524 * dwarf2read.c (dwarf_decode_lines): Only use output of
5525 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5526 the current address.
5527
87767c29
AC
55282003-05-07 Andrew Cagney <cagney@redhat.com>
5529
5530 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5531 code.
5532
5e7b2f39
JB
55332003-05-07 Jim Blandy <jimb@redhat.com>
5534
5535 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5536 'maint info symtabs' and 'maint info psymtabs'.
5537 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5538 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5539 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5540 Declarations updated.
5541 * maint.c (maintenance_list_command): Delete.
5542 (_initialize_maint_cmds): Update calls to add_cmd.
5543 * gdbcmd.h (maintenancelistlist): Delete declaration.
5544 * cli/cli-cmds.c (maintenancelistlist): Delete.
5545 (init_cmd_lists): Don't initialize it.
5546 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5547
f6684c31
AC
55482003-05-07 Andrew Cagney <cagney@redhat.com>
5549
5550 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5551 "regcache".
5552 (d10v_print_registers_info): Update.
5553 (d10v_dmap_register, d10v_imap_register): Delete functions.
5554 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5555 and "imap_register".
5556 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5557 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5558 * arch-utils.c (generic_remote_translate_xfer_address): Add
5559 "regcache" and "gdbarch" parameters.
5560 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5561 parameter. Change class to multi-arch.
5562 * gdbarch.h, gdbarch.c: Re-generate.
5563 * remote.c (remote_xfer_memory): Use
5564 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5565
e4846b08
JJ
55662003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5567
5568 * infrun.c (prev_pc): Move declaration ahead of proceed().
5569 (proceed): Refresh prev_pc value before resuming.
5570 (stop_stepping): Remove code to refresh prev_pc.
5571
6b71b8ac
KW
55722003-05-06 Kris Warkentin <kewarken@qnx.com>
5573
5574 * nto-tdep.c: Removed stray comment.
5575
47979a4b
KW
55762003-05-06 Kris Warkentin <kewarken@qnx.com>
5577
5578 * i386-nto-tdep.c: Fix old K&R function definitions.
5579 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5580 Also change add_show_from_set() call to add_setshow_cmd().
5581 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5582
00905d52
AC
55832003-05-05 Andrew Cagney <cagney@redhat.com>
5584
5585 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5586 (fprint_dummy_frames): New function.
5587 (maintenance_print_dummy_frames): New function.
5588 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5589 * frame.c (fprint_frame_id): Make global.
5590 * frame.h (fprint_frame_id): Declare.
5591 * Makefile.in (dummy-frame.o): Update dependencies.
5592
b1e29e33
AC
55932003-05-05 Andrew Cagney <cagney@redhat.com>
5594
5595 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5596 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5597 SIZEOF_CALL_DUMMY_WORDS.
5598 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5599 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5600 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5601 CALL_DUMMY_BREAKPOINT_OFFSET.
5602 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5603 CALL_DUMMY_START_OFFSET.
5604 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5605 * gdbarch.h, gdbarch.c: Re-generate.
5606 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5607 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5608 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5609 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5610 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5611 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5612 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5613 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5614 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5615 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5616 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5617 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5618 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5619 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5620 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5621
56222003-05-05 Kris Warkentin <kewarken@qnx.com>
5623
5624 * configure.tgt: Add i[3456]86-*-nto*.
5625 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5626 * nto-tdep.c: New file. Neutrino target support routines.
5627 * nto-tdep.h: New file. Neutrino target header.
5628 * config/tm-qnxnto.h: New file.
5629 * config/i386/i386nto.mt: New file.
5630 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5631
0ce3d317
AC
56322003-05-04 Andrew Cagney <cagney@redhat.com>
5633
5634 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5635 (load_infrun_state): Ditto.
5636 (struct thread_info): Drop "prev_func_name" field.
5637 * thread.c (load_infrun_state): Update.
5638 (save_infrun_state): Update.
5639 * infrun.c (prev_func_name): Delete variable.
5640 (init_wait_for_inferior): Do not clear prev_func_name.
5641 (stop_stepping, keep_going, context_switch): Do not swap
5642 prev_func_name.
5643 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5644 instead of PC_IN_SIGTRAMP.
5645
46654a5b
AC
56462003-05-04 Andrew Cagney <cagney@redhat.com>
5647
5648 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5649 REGISTER_BYTE with register_offset_hack.
5650 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5651 that REGISTER_BYTE is consistent with the regcache.
5652 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5653 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5654
14b08c1b
MK
56552003-05-04 Mark Kettenis <kettenis@gnu.org>
5656
04c8243f
MK
5657 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5658 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5659
14b08c1b
MK
5660 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5661
c7a11e01
JB
56622003-05-03 J. Brobecker <brobecker@gnat.com>
5663
5664 From Thierry Schneider <tpschneider1@yahoo.com>
5665 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5666 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5667 (mi-cmd-symbol.o): Add rule.
5668
7043d8dc
AC
56692003-05-03 Andrew Cagney <cagney@redhat.com>
5670
5671 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5672 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5673 * gdbarch.h, gdbarch.c: Re-generate.
5674 * d10v-tdep.c (d10v_push_dummy_code): New function.
5675 (d10v_gdbarch_init): Set push_dummy_code.
5676 * infcall.c (legacy_push_dummy_code): New function.
5677 (generic_push_dummy_code): New function.
5678 (push_dummy_code): New function.
5679 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5680 instead of dummy_addr, to push_dummy_call. Move call to
5681 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5682 switch.
5683 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5684
92bf2b80
AC
56852003-05-03 Andrew Cagney <cagney@redhat.com>
5686
5687 * disasm.h (print_insn): Declare.
5688 * disasm.c (init_gdb_disassemble_info): New function.
5689 (gdb_disassembly): Call init_gdb_disassemble_info.
5690 (gdb_print_insn): New function.
5691 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5692 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5693 * mcore-tdep.c: Include "disasm.h"
5694 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5695 * d10v-tdep.c: Include "disasm.h".
5696 (display_trace): Call gdb_print_insn, instead of print_insn.
5697 (print_insn): Delete function.
5698 * printcmd.c: Include "disasm.h".
5699 (print_insn): Delete function.
5700 (print_formatted): Call gdb_print_insn, instead of print_insn.
5701 * Makefile.in (printcmd.o): Update dependencies.
5702 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5703
27d94c49
AC
57042003-05-02 Andrew Cagney <cagney@redhat.com>
5705
82de1e5b
AC
5706 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5707 PC_REGNUM, re-indent.
5708 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5709 PC_REGNUM isn't set.
5710
27d94c49
AC
5711 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5712 * gdbarch.h, gdbarch.c: Re-generate.
5713 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5714 register_virtual_size, pc_regnum, or register_bytes.
5715 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5716 (d10v_register_type): Use D10V_PC_REGNUM.
5717 (d10v_print_registers_info, d10v_read_pc): Ditto.
5718 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5719 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5720
a9c0dc7f
DC
57212003-05-02 David Carlton <carlton@bactrian.org>
5722
5723 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5724 the name with mstrsave.
5725
e33d66ec
EZ
57262003-05-02 Elena Zannoni <ezannoni@redhat.com>
5727
5728 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5729 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5730 (host_charset_name, target_charset_name): New vars for use by
5731 set/show commands.
5732 (host_charset_enum, target_charset_enum): New enums for set/show
5733 commands.
5734 (set_charset_sfunc, set_host_charset_sfunc,
5735 set_target_charset_sfunc): New functions.
5736 (set_host_charset, set_target_charset): Make static.
5737 (list_charsets, set_host_charset_command,
5738 set_target_charset_command): Delete functions.
5739 (show_charset_command): Rewrite as....
5740 (show_charset): Hook this up with the set/show command mechanism.
5741 (_initialize_charset): Change names of charsets to match the
5742 set/show enums. Use host_charset_name and target_charset_name.
5743 Use set/show mechanism for charset, host-charset, target-charset
5744 commands. Do not make 'show host-charset' and 'show
5745 target-charset' be aliases of 'show charset'.
5746
5747 * charset.h (set_host_charset, set_target_charset): Don't export,
5748 they are not used outside the file.
5749
2b6fd0d8
AC
57502003-05-01 Andrew Cagney <cagney@redhat.com>
5751
5752 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5753 (gdb_disassembly): Make "di" non static, always initialize and
5754 cleanup. Always use dis_asm_read_memory.
5755 (gdb_dis_asm_read_memory): Delete function.
5756
6ae2f580
AC
57572003-05-01 Andrew Cagney <cagney@redhat.com>
5758
5759 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5760 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5761
810ecf9f
AC
57622003-04-30 Andrew Cagney <cagney@redhat.com>
5763
5764 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5765 "tm_print_insn_info".
5766 (TARGET_PRINT_INSN_INFO): Delete macro.
5767 (dis_asm_read_memory): Delete function declaration.
5768 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5769 (tm_print_insn_info): Delete variable definition.
5770 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5771 * gdbarch.h, gdbarch.c: Re-generate.
5772 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5773 "deprecated_tm_print_insn_info".
5774 * mcore-tdep.c (mcore_dump_insn): Ditto.
5775 * mips-tdep.c (mips_gdbarch_init): Ditto.
5776 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5777 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5778 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5779 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5780 instead of TARGET_PRINT_INSN_INFO, add comment.
5781 * s390-tdep.c (s390_get_frame_info): Instead of
5782 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5783 (s390_check_function_end, s390_is_sigreturn): Ditto.
5784 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5785 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5786 * disasm.c: Include "gdbcore.h".
5787 (_initialize_disasm): New function, initialize
5788 "deprecated_tm_print_insn_info".
5789 (deprecated_tm_print_insn_info): New variable.
5790 (dis_asm_read_memory): Moved from "corefile.c", made static.
5791 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5792 * Makefile.in (disasm.o): Update dependencies.
5793
07020390
AC
57942003-04-30 Andrew Cagney <cagney@redhat.com>
5795
5796 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5797
a9fa03de
AF
57982003-04-29 Adam Fedor <fedor@gnu.org>
5799
5800 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5801 * infcall.c (find_function_addr): Make non-static.
5802 * infcall.h (find_function_addr): Declare.
5803 * Makefile.in (eval.o): Update dependencies.
5804
1bae87b9
AF
58052003-04-28 Adam Fedor <fedor@gnu.org>
5806
5807 * symtab.c (symbol_find_demangled_name): Check for and demangle
5808 ObjC symbols.
5809 (symbol_init_demangled_name): Init for language_objc as well.
5810
0ba6dca9
AC
58112003-04-28 Andrew Cagney <cagney@redhat.com>
5812
5813 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5814 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5815 * gdbarch.h, gdbarch.c: Re-generate.
5816 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5817 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5818 * inferior.h (deprecated_read_fp): Rename read_fp.
5819 (generic_target_read_fp): Delete declaration.
5820 * regcache.c (generic_target_read_fp): Delete function.
5821 (deprecated_read_fp): Replace read_fp, use
5822 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5823 * d10v-tdep.c (d10v_read_fp): Delete function.
5824 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5825
5826 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5827 deprecated_target_read_fp to generic_target_read_fp.
5828 * sh-tdep.c (sh_gdbarch_init): Ditto.
5829 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5831 * frv-tdep.c (frv_gdbarch_init): Ditto.
5832
5833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5834 deprecated_fp_regnum.
5835 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5836 * vax-tdep.c (vax_gdbarch_init): Ditto.
5837 * v850-tdep.c (v850_gdbarch_init): Ditto.
5838 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5839 * sh-tdep.c (sh_gdbarch_init): Ditto.
5840 * s390-tdep.c (s390_gdbarch_init): Ditto.
5841 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5842 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5843 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5844 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5846 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5847 * i386-tdep.c (i386_gdbarch_init): Ditto.
5848 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5849 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5850 * frv-tdep.c (frv_gdbarch_init): Ditto.
5851 * cris-tdep.c (cris_gdbarch_init): Ditto.
5852 * avr-tdep.c (avr_gdbarch_init): Ditto.
5853 * arm-tdep.c (arm_gdbarch_init): Ditto.
5854 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5855
5856 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5857 * v850-tdep.c (v850_gdbarch_init): Ditto.
5858 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5859 * sh-tdep.c (sh_gdbarch_init): Ditto.
5860 * s390-tdep.c (s390_gdbarch_init): Ditto.
5861 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5862 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5863 * mips-tdep.c (mips_gdbarch_init): Ditto.
5864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5865 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5866 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5867 * frv-tdep.c (frv_gdbarch_init): Ditto.
5868 * avr-tdep.c (avr_gdbarch_init): Ditto.
5869 * arm-tdep.c (arm_gdbarch_init): Ditto.
5870
5871 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5872 DEPRECATED_FP_REGNUM.
5873 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5874 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5875 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5876 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5877 (sparc32_register_virtual_type): Ditto.
5878 * sh-tdep.c (sh64_frame_chain): Ditto.
5879 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5880 (sh_nofp_frame_init_saved_regs): Ditto.
5881 (sh64_nofp_frame_init_saved_regs): Ditto.
5882 (sh_fp_frame_init_saved_regs): Ditto.
5883 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5884 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5885 * procfs.c (procfs_fetch_registers): Ditto.
5886 (procfs_store_registers): Ditto.
5887 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5888 (store_inferior_registers, fetch_core_registers): Ditto.
5889 (fetch_kcore_registers, clear_regs): Ditto.
5890 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5891 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5892 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5893 * nlm/i386.c (do_status): Ditto.
5894 * mipsv4-nat.c (supply_gregset): Ditto.
5895 * mips-tdep.c: Ditto for comments.
5896 * mips-nat.c (fetch_inferior_registers): Ditto.
5897 (store_inferior_registers, fetch_core_registers): Ditto.
5898 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5899 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5900 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5901 (i386_do_pop_frame, i386_register_type): Ditto.
5902 * hppa-tdep.c (hppa_frame_chain): Ditto.
5903 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5904 (hppa_pop_frame, hppa_read_fp): Ditto.
5905 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5906 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5907 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5908 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5909 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5910 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5911 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5912 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5913 * blockframe.c: Ditto for comments.
5914 * arch-utils.h: Ditto for comments.
5915 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5916 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5917 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5918 * alpha-tdep.h: Ditto for comments.
5919 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5920 (alpha_cannot_store_register): Ditto.
5921 (alpha_push_dummy_frame): Ditto.
5922 * alpha-nat.c (supply_gregset): Ditto.
5923
5924 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5925 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5926 * config/sparc/tm-sparc.h: Update comment.
5927
5928 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5929 deprecated_read_fp instead of TARGET_READ_FP.
5930 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5931 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5932 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5933 deprecated_read_fp instead of read_fp.
5934 * s390-tdep.c (s390_push_arguments): Ditto.
5935 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5936 * frame.h: Ditto in comments.
5937 * frame.c (legacy_get_prev_frame): Ditto.
5938 * dummy-frame.c (dummy_frame_this_id): Ditto.
5939 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5940
d7a27068
AC
59412003-04-28 Andrew Cagney <cagney@redhat.com>
5942
5943 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5944 * gdbarch.h, gdbarch.c: Re-generate.
5945 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5946 * vax-tdep.c (_initialize_vax_tdep): Update.
5947 * v850-tdep.c (_initialize_v850_tdep): Update.
5948 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5949 * s390-tdep.c (_initialize_s390_tdep): Update.
5950 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5951 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5952 * mips-tdep.c (_initialize_mips_tdep): Update.
5953 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5954 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5955 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5956 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5957 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5958 * frv-tdep.c (_initialize_frv_tdep): Update.
5959 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5960 (_initialize_cris_tdep): Update.
5961 * arch-utils.c (legacy_print_insn): Update.
5962 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5963
d2630e69
AF
59642003-04-26 Adam Fedor <fedor@gnu.org>
5965
5966 * linespec.c (decode_objc): New function to decode ObjC calls
5967 (decode_line_1): Check for ObjC calls (using decode_objc)
5968 * Makefile (linespec.o): Update dependencies.
5969
3086aeae
DJ
59702003-04-26 Daniel Jacobowitz <drow@mvista.com>
5971
5972 * breakpoint.h (struct breakpoint_ops): New.
5973 (struct breakpoint): Add ops member.
5974
5975 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5976 (mention): Use new breakpoint ops member.
5977 (set_raw_breakpoint): Initialize ops field to NULL.
5978 (print_exception_catchpoint, print_one_exception_catchpoint)
5979 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5980 (gnu_v3_exception_catchpoint_ops): New.
5981 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5982
1fbec6c3
AF
59832003-04-25 Adam Fedor <fedor@gnu.org>
5984
5985 * Makefile.in (COMMON_OBS): Add objc-lang.o
5986
0ef21242
AC
59872003-04-25 Andrew Cagney <cagney@redhat.com>
5988
5989 * d10v-tdep.c (print_insn): Delete function.
5990 (display_trace): Use TARGET_PRINT_INSN.
5991 (_initialize_d10v_tdep): Do not set tm_print_insn.
5992 (d10v_gdbarch_init): Set print_insn.
5993
f75493ed
AC
59942003-04-25 Andrew Cagney <cagney@redhat.com>
5995
5996 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5997 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5998 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5999 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6000 (nr_dmap_regs, a0_regnum): ... new functions.
6001 (d10v_print_registers_info): Use a0_regnum, use register_size.
6002 (d10v_register_byte): Delete function.
6003 (d10v_register_raw_size): Delete function.
6004 (d10v_register_type): Use a0_regnum.
6005 (d10v_print_registers_info): Use a0_regnum.
6006 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6007 (d10v_gdbarch_init): Do not set register_byte or
6008 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6009 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6010 extract_address.
6011 (trace_command): Use XCALLOC.
6012 (print_insn): Delete reference to tm_print_insn.
6013 (saved_regs_unwinder): Use store_unsigned_integer instead of
6014 store_address.
6015 * frame.h (FRAME_OBSTACK_CALLOC): Define
6016
2202b100
DC
60172003-04-25 David Carlton <carlton@bactrian.org>
6018
6019 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6020
4e45ca2e
AF
60212003-04-24 Adam Fedor <fedor@gnu.org>
6022
6023 * objc-lang.c: Include "valprint.h"
6024 * Makefile.in (objc-lang.o): Update dependencies.
6025
93de3e7f
AF
60262003-04-24 Adam Fedor <fedor@gnu.org>
6027
8ffd9b1b 6028 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6029 architecture dependant compilation and mark as unimplemented
6030 (until they get put in the gdbarch vector).
6031
0f20eeea
DC
60322003-04-23 David Carlton <carlton@bactrian.org>
6033
6034 * cp-support.c (cp_find_first_component): Accept 'operator' in
6035 more locations.
6036
74cfe982
AC
60372003-04-23 Andrew Cagney <cagney@redhat.com>
6038
6039 * infcall.c (call_function_by_hand): Eliminate redundant
6040 indentation. Move "saved_async" and "old_cleanups" to where they
6041 are needed.
8ffd9b1b 6042
52557533
AC
60432003-04-23 Andrew Cagney <cagney@redhat.com>
6044
6045 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6046 and "buffer". Move the "name" code to where it is needed.
6047
158775de
AC
60482003-04-23 Andrew Cagney <cagney@redhat.com>
6049
6050 * infcall.c (call_function_by_hand): Move variables "start_sp",
6051 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6052 code to ON_STACK switch branch.
8ffd9b1b 6053
ebc7896c
AC
60542003-04-23 Andrew Cagney <cagney@redhat.com>
6055
6056 * infcall.c (call_function_by_hand): Make declaration of "i",
6057 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6058 lint.
6059
d727590f
AC
60602003-04-23 Andrew Cagney <cagney@redhat.com>
6061
6062 * infcall.c (call_function_by_hand): Delete variable
6063 "n_method_args". Localize "param_type"'s declaration to the loop
6064 that it is used. Reinstate code assigning to said variable -
6065 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6066 Rationalize code using "param_type".
6067
d585e13a
AC
60682003-04-22 Andrew Cagney <cagney@redhat.com>
6069
6070 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6071 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6072 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6073 to DEPRECATED_PUSH_RETURN_ADDRESS.
6074
051caad9
KB
60752003-04-22 Kevin Buettner <kevinb@redhat.com>
6076
6077 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6078 on the DWARF2 register number prior to fetching a register.
6079
77296879
JB
60802003-04-22 J. Brobecker <brobecker@gnat.com>
6081
6082 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6083 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6084 this macro was always set to 0.
77296879
JB
6085 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6086 considering the fact that this macro was always set to 0.
6087 * hppa-tdep.h (hppa_store_return_value): Likewise.
6088 (hppa_extract_return_value): Likewise.
6089
4252f1df
JB
60902003-04-22 J. Brobecker <brobecker@gnat.com>
6091
6092 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6093 the hppa-pro target only.
6094
14604c6b
JB
60952003-04-21 J. Brobecker <brobecker@gnat.com>
6096
6097 Ongoing multi-arch conversion effort for HP/UX:
6098 * config/pa/tm-hppa.h: Move all macro that are no longer
6099 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6100 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6101
77eb01d1
JB
61022003-04-21 J. Brobecker <brobecker@gnat.com>
6103
6104 * config/pa/tm-hppa.h: Obsolete a section that was only used
6105 for hppa-pro.
6106
61995b3b
JB
61072003-04-21 J. Brobecker <brobecker@gnat.com>
6108
6109 Ongoing multi-arch conversion for HP/UX.
6110 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6111 if already defined (allows hppa64 to stay non-multiarched for now).
6112 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6113
4aa79dcc
AC
61142003-04-21 Andrew Cagney <cagney@redhat.com>
6115
6116 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6117
0f751ff2
AC
61182003-04-21 Andrew Cagney <cagney@redhat.com>
6119
6120 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6121 "i386_num_mmx_regs".
6122
04714b91
AC
61232003-04-21 Andrew Cagney <cagney@redhat.com>
6124
6125 * infcall.c: New file.
6126 * infcall.h: New file.
6127 * valarith.c: Include "infcall.h".
6128 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6129 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6130 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6131 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6132 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6133 (SFILES): Add "infcall.c"
6134 (COMMON_OBS): Add "infcall.o".
6135 (infcall.o): Specify dependencies.
6136 * value.h (call_function_by_hand): Delete declaration.
6137 * inferior.h (run_stack_dummy): Delete declaration.
6138 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6139 (run_stack_dummy): Move to "infcall.c", merged into
6140 call_function_by_hand.
6141 * valops.c (call_function_by_hand): Moved to "infcall.c".
6142 (find_function_addr, value_arg_coerce): Ditto.
6143 (unwindonsignal_p, coerce_float_to_double): Ditto.
6144 (_initialize_valops): Move "set/show coerce-float-to-double", and
6145 "set/show unwindonsignal" commands to "infcall.c".
6146 * v850-tdep.c, target.h: Update comments.
6147 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6148 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6149 (sh64_init_extra_frame_info): Update comments.
6150 * mn10300-tdep.c: Update comments.
6151 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6152 * config/sparc/tm-sparc.h: Update comments.
6153 * breakpoint.h: Update comments.
6154 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6155 * arm-tdep.c: Update comment.
6156
f9d3c2a8
MK
61572003-04-19 Mark Kettenis <kettenis@gnu.org>
6158
c40e1eab
MK
6159 * i386-tdep.c (i386_num_register_names): New variable.
6160 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6161 (MM0_REGNUM): Remove redundant parentheses in define.
6162 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6163 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6164 i386_mxcsr_regnum_p): Remove redundant parentheses.
6165 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6166
94ea66b3
MK
6167 * i386-tdep.c (i386_extract_return_value,
6168 i386_store_return_value): Correct check for availability of
6169 floating-point registers.
6170
54299a1d
MK
6171 * i386-tdep.c (i386_frame_num_args): Remove function.
6172 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6173
c86c27af
MK
6174 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6175 mmx_regnum_to_fp_regnum. Adjust all callers.
6176
f9d3c2a8
MK
6177 * i386-tdep.c (i386_get_longjmp_target): Use
6178 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6179 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6180 extract_address.
6181
94ba74a9
MK
61822003-04-19 Mark Kettenis <kettenis@gnu.org>
6183
6184 * core-regset.c: Update comments to reflect reality. Re-order
6185 includes.
6186 (fetch_core_registers): Use switch instead of if. Remove
6187 redundant prototype.
6188
4074e13c
JB
61892003-04-18 Jim Blandy <jimb@redhat.com>
6190
6191 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6192 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6193
e3ab4aba
RH
61942003-04-17 Richard Henderson <rth@redhat.com>
6195
6196 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6197
627bf7c1
EZ
61982003-04-17 Michael Snyder <msnyder@redhat.com>
6199 Karen Bennet <bennet@redhat.com>
6200
6201 Committed by Elena Zannoni <ezannoni@redhat.com>
6202 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6203
514621a9
EZ
62042003-04-17 Elena Zannoni <ezannoni@redhat.com>
6205
6206 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6207 value if the return type is void.
514621a9 6208
b4acd559
JJ
62092003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6210
6211 * thread-db.c: Reindented.
8ffd9b1b 6212
530b167e 62132003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6214
6215 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6216 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6217 as types.
6218
0a48e7e8
MS
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
8ffd9b1b 6242
ab9fe00e
KB
62432003-04-16 Kevin Buettner <kevinb@redhat.com>
6244
610a3745 6245 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6246 the size of ``long double'' to 16, instead of 8.
6247
e64a344c
MK
62482003-04-16 Mark Kettenis <kettenis@gnu.org>
6249
6250 * i386-linux-nat.c: Add some whitespace to make things more
6251 readable.
6252 (fetch_register, store_register, fetch_inferior_registers,
6253 store_inferior_registers): Get rid of assignment in if-statement.
6254 (store_register): Fix typo in error message.
6255
25d41031
AC
62562003-04-16 Andrew Cagney <cagney@redhat.com>
6257
6258 * utils.c (xmmalloc): Always allocate something, matches
6259 libiberty/xmalloc's semantics.
6260 (xmrealloc, xmcalloc): Ditto.
6261
c50901fd
AC
62622003-04-16 Andrew Cagney <cagney@redhat.com>
6263
6264 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6265 update comments.
6266 (get_frame_type): Initialize unwind and type when needed.
6267 (get_frame_id, frame_register_unwind): Ditto.
6268
f81824a9
AC
62692003-04-16 Andrew Cagney <cagney@redhat.com>
6270
6271 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6272 obsolete.
6273 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6274 * sparcl-stub.c: Obsolete file.
6275 * config/sparc/tm-sparclet.h: Obsolete file.
6276 * sparclet-stub.c: Obsolete file.
6277 * sparclet-rom.c: Obsolete file.
6278 * sparcl-tdep.c: Obsolete file.
6279 * config/sparc/tm-sparclite.h: Obsolete file.
6280 * config/sparc/sparclite.mt: Obsolete file.
6281 * config/sparc/sparclet.mt: Obsolete file.
6282 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6283 sparc86x-*-* obsolete.
6284
9219021c
DC
62852003-04-15 David Carlton <carlton@math.stanford.edu>
6286
6287 * Makefile.in (SFILES): Add cp-namespace.c.
6288 (COMMON_OBS): Add cp-namespace.o.
6289 (block.o): Depend on gdb_obstack_h and cp_support_h.
6290 (buildsym.o): Depend on cp_support_h.
6291 (cp-namespace.o): New.
6292 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6293 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6294 (dwarf2read.o): Depend on cp_support_h.
6295 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6296 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6297 processing_current_namespace.
6298 (read_namespace): Update processing_current_namespace; check for
6299 anonymous namespaces.
6300 (dwarf2_name): New function.
6301 (dwarf2_extension): Ditto.
6302 * cp-support.h: Update copyright, contributors.
6303 Add inclusion guards.
6304 Add opaque declaration for structs obstack, block, symbol.
6305 (struct using_direct): New struct.
6306 Add declarations for cp_find_first_component,
6307 cp_entire_prefix_len, processing_has_namespace_info,
6308 processing_current_namespace, cp_is_anonymous,
6309 cp_add_using_directive, cp_initialize_namespace,
6310 cp_finalize_namespace, cp_set_block_scope,
6311 cp_scan_for_anonymous_namespaces.
6312 * cp-namespace.c: New file.
6313 * cp-support.c: Update copyright.
6314 Include ctype.h, gdb_assert.h, gdbcmd.h.
6315 New variable maint_cplus_cmd_list.
6316 (cp_find_first_component): New function.
6317 (cp_entire_prefix_len, maint_cplus_command)
6318 (first_component_command, _initialize_cp_support): Ditto.
6319 * buildsym.c: Include cp-support.h.
6320 New variable using_list.
6321 (add_symbol_to_list): Check for anonymous namespaces.
6322 (finish_block): Set block's scope.
6323 (start_symtab): Initialize C++ namespace support.
6324 (end_symtab): Finalize C++ namespace support.
6325 * block.h: Add opaque declarations for structs
6326 block_namespace_info, using_direct, and obstack.
6327 Add declarations for block_set_scope and block_set_using.
6328 (struct block): Add 'language_specific' member.
6329 (BLOCK_NAMESPACE): New macro.
6330 * block.c: Include gdb_obstack.h and cp-support.h.
6331 (struct block_namespace_info): New struct.
6332 (block_set_scope): New function.
6333 (block_set_using, block_initialize_namespace): Ditto.
6334
d5a921c9
KB
63352003-04-14 Kevin Buettner <kevinb@redhat.com>
6336
6337 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6338 (locate_base): Return early if there aren't any link map offsets.
6339 (svr4_solib_create_inferior_hook): Warn if shared library support
6340 is unavailable.
6341
d2a52b27
DC
63422003-04-14 David Carlton <carlton@math.stanford.edu>
6343
6344 * symtab.c (symbol_set_names): Add prefix when storing Java names
6345 in hash table. Fix for PR java/1039.
6346
980cae7a
DC
63472003-04-14 David Carlton <carlton@math.stanford.edu>
6348
6349 * symtab.c (symbol_set_names): Rename 'name' arg to
6350 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6351 * symtab.h: Change 'name' argument in declaration of
6352 symbol_set_names to 'linkage_name'.
6353 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6354
e227b13c
AC
63552003-04-14 Andrew Cagney <cagney@redhat.com>
6356
6357 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6358 return the fully sign-extended register value.
6359 (get_frame_pointer): Ditto.
6360 (mips_pop_frame): Initialize "proc_desc" after checking for a
6361 dummy frame.
6362
36712a20
AC
63632003-04-14 Andrew Cagney <cagney@redhat.com>
6364
6365 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6366 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6367 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6368 (mips_push_register): Delete function.
6369 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6370 PUSH_FP_REGNUM.
6371
44ea7b70
JB
63722003-04-14 Jim Blandy <jimb@redhat.com>
6373
6374 * symmisc.c: #include "gdb_regex.h".
6375 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6376 functions.
6377 * maint.c (maintenance_list_command): New function.
6378 (_initialize_maint_cmds): Register the above as commands.
6379 * symtab.h (maintenance_list_symtabs,
6380 maintenance_list_psymtabs): New declarations.
6381 * cli/cli-cmds.c (maintenancelistlist): New variable.
6382 (init_cmd_lists): Initialize it.
6383 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6384 * gdbcmd.h (maintenancelistlist): New declaration.
6385 * Makefile.in (symmisc.o): Update dependencies.
6386
2d0c7962
EZ
63872003-04-14 Elena Zannoni <ezannoni@redhat.com>
6388
6389 * s390-nat.c: Include asm/types.h for addr_t.
6390
1947a811
CV
63912003-04-14 Corinna Vinschen <vinschen@redhat.com>
6392
6393 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6394 actually incoming type.
6395
adb616d7
AC
63962003-04-13 Andrew Cagney <cagney@redhat.com>
6397
6398 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6399 get_next_frame and get_frame_saved_regs.
6400
9b5e151c
AC
64012003-04-13 Andrew Cagney <cagney@redhat.com>
6402
6403 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6404 of gdbarch_num_regs.
6405
ef6e7e13
AC
64062003-04-13 Andrew Cagney <cagney@redhat.com>
6407
6408 * frame.h: Mention what replaced what in "struct frame_info".
6409 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6410 deprecated_update_frame_base_hack and
6411 deprecated_update_frame_pc_hack.
6412 * hppa-tdep.c: Ditto.
6413
61fbb938
DJ
64142003-04-13 Daniel Jacobowitz <drow@mvista.com>
6415
6416 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6417 to read_reg and update its comment. Remove regnum member.
6418 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6419 Don't call read_reg when setting in_reg. Call read_reg to get
6420 the frame base if it's in a register. Return the register number
6421 on the stack instead of in the context. Remove extra arguments
6422 to read_reg.
6423 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6424 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6425 the register number on the expression stack.
6426 (needs_frame_read_reg): Remove extra arguments.
6427
0d53c4c4
DJ
64282003-04-13 Daniel Jacobowitz <drow@mvista.com>
6429
6430 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6431 made non-static.
6432 (execute_stack_op): All callers updated.
6433 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6434 * dwarf2loc.c (find_location_expression): New function.
6435 (dwarf_expr_frame_base): Call it.
6436 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6437 (dwarf2_tracepoint_var_ref): New function, broken out from
6438 locexpr_tracepoint_var_ref.
6439 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6440 Make static.
6441 (loclist_read_variable, loclist_read_needs_frame): New functions.
6442 (loclist_describe_location, loclist_tracepoint_var_ref): New
6443 functions.
6444 (dwarf2_loclist_funcs): New struct location_funcs.
6445 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6446 (struct dwarf2_locexpr_baton): Add comments.
6447 (dwarf2_loclist_funcs): New extern.
6448 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6449 base_address and base_known.
6450 (dwarf_loc_buffer): New variable.
6451 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6452 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6453 (dwarf2_has_info): Initialize dwarf_loc_offset.
6454 (dwarf2_build_psymtabs): Read in .debug_loc.
6455 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6456 DWARF_LOC_SIZE.
6457 (psymtab_to_symtab_1): Likewise. Move base address calculation
6458 here, from...
6459 (dwarf2_get_pc_bounds): ... here. Use the base address from
6460 cu_header.
6461 (dwarf2_symbol_mark_computed): Handle location lists.
6462
6aca59a3
DJ
64632003-04-13 Daniel Jacobowitz <drow@mvista.com>
6464
6465 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6466 if the linkage name demangled successfully.
6467
aca1fcd0
MK
64682003-04-13 Mark Kettenis <kettenis@gnu.org>
6469
97095916
MK
6470 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6471 disassmbly_flavour): Removed.
6472
aca1fcd0
MK
6473 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6474
562a961f
MK
64752003-04-13 Mark Kettenis <kettenis@gnu.org>
6476
6477 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6478
bd013d54
AC
64792003-04-12 Andrew Cagney <cagney@redhat.com>
6480
6481 * frame.h (struct frame_info): Move definition from here ...
6482 * frame.c (struct frame_info): ... to here.
6483
167ef8b1
AC
64842003-04-12 Andrew Cagney <cagney@redhat.com>
6485
6486 * gdbthread.h (save_infrun_state): Delete parameter
6487 "prev_func_start".
6488 (struct thread_info): Delete field "prev_func_start".
6489 (load_infrun_state): Ditto.
6490 * thread.c (load_infrun_state, save_infrun_state): Update.
6491 * infrun.c (prev_func_start): Delete variable.
6492 (context_switch, init_wait_for_inferior): Update.
6493 (stop_stepping, keep_going): Update.
6494
da3331ec
AC
64952003-04-12 Andrew Cagney <cagney@redhat.com>
6496
6497 * gdbarch.sh: Add missing opaque declarations.
6498 * gdbarch.h: Regnerate.
6499 * symtab.h: Add missing opaque declarations.
6500 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6501 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6502 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6503 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6504 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6505 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6506 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6507 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6508 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6509 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6510 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6511 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6512 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6513
18adea3f
AC
65142003-04-11 Andrew Cagney <cagney@redhat.com>
6515
6516 * frame.c (get_frame_id): Return this frame's "id".
6517 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6518 function start.
6519 (legacy_saved_regs_this_id): Replace function body with
6520 internal-error.
6521 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6522 FRAME_OBSTACK_ZALLOC.
6523 (create_new_frame): Mark the frame ID as valid.
6524
2252e863
AO
65252003-04-11 Alexandre Oliva <aoliva@redhat.com>
6526
6527 * Makefile.in (libbfd_h): Added missing setting.
6528 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6529 according to the selected ABI.
6530
a8245ab8
JJ
65312003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6532
6533 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6534
6913c89a
AC
65352003-04-11 Andrew Cagney <cagney@redhat.com>
6536
6537 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6538 SAVED_PC_AFTER_CALL.
6539 * gdbarch.h, gdbarch.c: Regenerate.
6540 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6541 * x86-64-tdep.c (x86_64_init_abi): Update.
6542 * vax-tdep.c (vax_gdbarch_init): Update.
6543 * v850-tdep.c (v850_gdbarch_init): Update.
6544 * sparc-tdep.c (sparc_gdbarch_init): Update.
6545 * sh-tdep.c (sh_gdbarch_init): Update.
6546 * s390-tdep.c (s390_gdbarch_init): Update.
6547 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6548 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6550 * mips-tdep.c (mips_gdbarch_init): Update.
6551 * mcore-tdep.c (mcore_gdbarch_init): Update.
6552 * m68k-tdep.c (m68k_gdbarch_init): Update.
6553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6554 * ia64-tdep.c (ia64_gdbarch_init): Update.
6555 (ia64_saved_pc_after_call): Update declaration.
6556 * i386ly-tdep.c (i386lynx_init_abi): Update.
6557 * i386-tdep.c (i386_gdbarch_init): Update.
6558 * hppa-tdep.c (hppa_gdbarch_init): Update.
6559 * h8300-tdep.c (h8300_gdbarch_init): Update.
6560 * frv-tdep.c (frv_gdbarch_init): Update.
6561 * cris-tdep.c (cris_gdbarch_init): Update.
6562 * avr-tdep.c (avr_gdbarch_init): Update.
6563 * arm-tdep.c (arm_gdbarch_init): Update.
6564 * alpha-tdep.c (alpha_gdbarch_init): Update.
6565 * ns32knbsd-nat.c (frame_num_args): Update.
6566 * ns32k-tdep.c (umax_frame_num_args): Update.
6567 * mips-tdep.c (mips_init_frame_pc_first): Update.
6568 * infrun.c (step_over_function): Update.
6569 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6570 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6571 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6572 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6573 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6574 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6575 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6576 * arch-utils.c (init_frame_pc_default): Update.
6577 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6578 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6579 declaration.
8ffd9b1b 6580
38edeab8
AC
65812003-04-11 Andrew Cagney <cagney@redhat.com>
6582
6583 * i387-tdep.c: Update copyright.
6584 (i387_to_double): Delete function.
6585 (double_to_i387): Delete function.
6586
81f8a206
AC
65872003-04-10 Andrew Cagney <cagney@redhat.com>
6588
6589 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6590 frame's function's address. Simplify.
6591 (d10v_frame_unwind_cache): Check that the frame's function is
6592 non-zero.
6593
6e691f7a
JB
65942003-04-10 Jim Blandy <jimb@redhat.com>
6595
6596 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6597 call to set_gdbarch_deprecated_push_arguments.
6598
7f78e237
AC
65992003-04-10 Andrew Cagney <cagney@redhat.com>
6600
6601 * frame.c (fprint_frame_id): New function.
6602 (fprint_frame_type, fprint_frame): New function.
6603 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6604 (create_sentinel_frame, get_frame_id): Ditto.
6605 (frame_id_p, frame_id_eq): Ditto.
6606 (frame_id_inner, create_new_frame): Ditto.
6607 (legacy_get_prev_frame, get_prev_frame): Ditto.
6608 (deprecated_update_frame_pc_hack): Ditto.
6609 (frame_register_unwind): Ditto.
6610 (deprecated_update_frame_base_hack): Ditto.
6611
f870b49b
CV
66122003-04-10 Corinna Vinschen <vinschen@redhat.com>
6613
6614 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6615 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6616 frame_chain function.
6617 * Makefile.in: Add dependencies due to above change.
6618
7c86889b
CV
66192003-04-10 Corinna Vinschen <vinschen@redhat.com>
6620
6621 * blockframe.c (legacy_frame_chain_valid): Move call to
6622 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6623 inside_entry_file.
6624
d0a55772
AC
66252003-04-09 Andrew Cagney <cagney@redhat.com>
6626
6627 * frame.h (struct frame_id): Replace "pc" and "base" with
6628 "stack_addr" and "code_addr". Update comments.
6629 (frame_id_build): Update parameter names and comment.
6630 (struct frame_info): Replace "id_p" and "id" with "this_id".
6631 * dummy-frame.c (dummy_frame_this_id): Update.
6632 * breakpoint.c (print_one_breakpoint): Update.
6633 * frame.c (get_frame_id): Update.
6634 (get_frame_base, frame_id_build): Update.
6635 (create_sentinel_frame, legacy_get_prev_frame): Update.
6636 (deprecated_update_frame_base_hack): Update.
6637 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6638 (frame_id_inner): Ditto.
6639
ac16bf07
AC
66402003-04-09 Andrew Cagney <cagney@redhat.com>
6641
6642 * defs.h (gdb_print_host_address): Make "addr" parameter a
6643 pointer constant.
6644 * utils.c (gdb_print_host_address): Update.
6645
366cfc9e
KB
66462003-04-09 Kevin Buettner <kevinb@redhat.com>
6647
6648 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6649 register number for R0 is 0.
6650
cd983b5c
JB
66512003-04-09 J. Brobecker <brobecker@gnat.com>
6652
6653 * frame.h (struct gdbarch): Add opaque structure definition
6654 to avoid a compilation warning on LynxOS 4.0.
6655
d1340264
AC
66562003-04-09 Andrew Cagney <cagney@redhat.com>
6657
6658 * frame.h (struct frame_info): Delete field "pc". Replace
6659 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6660 structure.
6661 * frame.c (frame_pc_unwind): Update.
6662 (create_sentinel_frame): Do not set "pc".
6663 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6664 (get_frame_pc): Call frame_pc_unwind.
6665 (deprecated_update_frame_pc_hack): Update.
6666 (create_new_frame): Use "pc" not "->pc".
6667
90a6fffb
AC
66682003-04-09 Andrew Cagney <cagney@redhat.com>
6669
6670 * frame.c (get_frame_id): Eliminate code updating "frame".
6671 (legacy_get_prev_frame): Ditto.
6672 (get_frame_base): Return id.base directly.
6673 (deprecated_update_frame_base_hack): Update "id.base".
6674 * frame.h (struct frame_info): Delete field "frame".
6675
2fbce691
AC
66762003-04-09 Andrew Cagney <cagney@redhat.com>
6677
6678 * NEWS: Mention that the "Sequent family" is obsolete.
6679 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6680 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6681 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6682 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6683 * config/i386/tm-ptx4.h: Obsolete file.
6684 * config/i386/tm-ptx.h: Obsolete file.
6685 * symm-tdep.c: Obsolete file.
6686 * config/i386/symmetry.mt: Obsolete file.
6687 * config/i386/tm-symmetry.h: Obsolete file.
6688 * symm-nat.c: Obsolete file.
6689 * config/i386/nm-symmetry.h: Obsolete file.
6690 * config/i386/xm-symmetry.h: Obsolete file.
6691 * config/i386/symmetry.mh: Obsolete file.
6692 * config/i386/nm-ptx4.h: Obsolete file.
6693 * config/i386/ptx4.mh: Obsolete file.
6694 * config/i386/ptx.mt: Obsolete file.
6695 * config/i386/ptx.mh: Obsolete file.
6696 * config/i386/xm-ptx4.h: Obsolete file.
6697 * config/i386/xm-ptx.h: Obsolete file.
6698
78c43945
AC
66992003-04-09 Andrew Cagney <cagney@redhat.com>
6700
6701 Obsolete mips*-*-mach3*.
6702 * NEWS: Mention that mips*-*-mach3* is obsolete.
6703 * m3-nat.c: Obsolete file.
6704 * config/nm-m3.h: Obsolete file.
6705 * config/mips/tm-mipsm3.h: Obsolete file.
6706 * config/mips/mipsm3.mt: Obsolete file.
6707 * config/mips/mipsm3.mh: Obsolete file.
6708 * config/mips/xm-mipsm3.h: Obsolete file.
6709 * mipsm3-nat.c: Obsolete file.
6710 * configure.host: Obsolete mips-dec-mach3*.
6711 * configure.tgt: Obsolete mips*-*-mach3*.
6712
f1908289
AC
67132003-04-09 Andrew Cagney <cagney@redhat.com>
6714
6715 * doublest.h: Update copyright.
6716 (deprecated_store_floating, deprecated_extract_floating): Rename
6717 store_floating and extract_floating. Update comments.
6718 * doublest.c: Update copyright.
6719 (extract_floating_by_length): Replace extract_floating.
6720 (store_floating_by_length): Replace store_floating.
6721 (deprecated_extract_floating): New function.
6722 (deprecated_store_floating): New function.
6723 (extract_typed_floating): Call extract_floating_by_length.
6724 (store_typed_floating): Call store_floating_by_length.
6725 * x86-64-tdep.c (x86_64_store_return_value): Update.
6726 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6727 (sh64_extract_return_value): Update.
6728 (sh_sh4_register_convert_to_virtual): Update.
6729 (sh_sh64_register_convert_to_virtual): Update.
6730 (sh_sh4_register_convert_to_raw): Update.
6731 (sh_sh64_register_convert_to_raw): Update.
6732 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6733 (rs6000_register_convert_to_raw): Update.
6734 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6735 (ia64_register_convert_to_raw): Update.
6736 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6737 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6738 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6739 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6740 (alpha_register_convert_to_raw): Update.
6741
4443bd83
AC
67422003-04-08 Andrew Cagney <cagney@redhat.com>
6743
6744 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6745 * gdbarch.h, gdbarch.c: Re-generate.
6746 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6747 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6748 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6749 conditionally, use frame_pc_unwind as an alternative. Add
6750 comments.
6751 * arch-utils.c (init_frame_pc_default): Only call
6752 SAVED_PC_AFTER_CALL when available.
6753
c0236d92
EZ
67542003-04-08 Elena Zannoni <ezannoni@redhat.com>
6755
fbe586ae 6756 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6757 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6758 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6759 (start_remote): Ditto.
6760 (handle_inferior_event): Ditto.
6761 (save_inferior_status): Ditto.
6762 (restore_inferior_status): Ditto.
6763 * infcmd.c (attach_command): Ditto.
6764 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6765 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6766 * alpha-tdep.c (heuristic_proc_start): Ditto.
6767 * mips-tdep.c (heuristic_proc_start): Ditto.
6768 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6769 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6770 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6771 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6772 * remote-vx.c (vx_create_inferior): Ditto.
6773
67742003-04-08 Elena Zannoni <ezannoni@redhat.com>
6775
6776 * infrun.c (stop_soon_quietly): Make it an enum, to better
6777 override the default behavior of handle_inferior_event.
6778 (clear_proceed_status): Update uses of stop_soon_quietly to
6779 reflect that it is now an enum.
6780 (start_remote): Ditto.
6781 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6782 is set to handle the new GNU/Linux kernel behavior for
6783 attach/sigstop. Update uses of stop_soon_quietly.
6784 * inferior.h (enum stop_kind): New enum.
6785 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6786 Reset normal handle_inferior_event behavior, afterwards.
6787 * fork-child.c (startup_inferior): Update.
6788 * alpha-tdep.c (heuristic_proc_start): Update.
6789 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6790 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6791 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6792 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6793 * remote-vx.c (vx_create_inferior): Update.
6794 * mips-tdep.c (heuristic_proc_start): Update.
6795
1211bce3
EZ
67962003-04-07 Elena Zannoni <ezannoni@redhat.com>
6797
6798 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6799 be freed more than once, causing wild memory corruptions.
1211bce3 6800 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6801 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6802 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6803 with the "core" target.
1211bce3 6804
f0ef6b29
KB
68052003-04-07 Kevin Buettner <kevinb@redhat.com>
6806
6807 * mips-tdep.c (mips_print_fp_register): New function, created from
6808 do_fp_register_row(). Registers are now (also) printed as hex.
6809 Only one register is printed per row.
6810 (mips_print_register, do_fp_register_row): Print floating point
6811 registers with mips_print_fp_register().
6812
8cf71652
AC
68132003-04-06 Andrew Cagney <cagney@redhat.com>
6814
5e488a7b
AC
6815 * valprint.h (inspect_it): Add extern declaration.
6816 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6817 (selectors_info, classes_info): Ditto.
6818 (find_objc_msgcall): Fix indentation.
6819 (objc_printstr): Delete extern declarations.
6820
8cf71652
AC
6821 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6822
e6ba3bc9
AC
68232003-04-06 Andrew Cagney <cagney@redhat.com>
6824
6825 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6826 Update comment.
6827 * frame.c (legacy_saved_regs_this_id): Update.
6828 (legacy_get_prev_frame): Update.
6829 * xstormy16-tdep.c: Update comment.
6830 * sparc-tdep.c (sparc_frame_chain): Update comment.
6831 * blockframe.c (legacy_frame_chain_valid): Update.
6832
55e1d7e7
AC
68332003-04-06 Andrew Cagney <cagney@redhat.com>
6834
996179ee
AC
6835 * valprint.c (val_print_type_code_int): Delete #ifdef
6836 PRINT_TYPELESS_INTEGER code.
6837
55e1d7e7
AC
6838 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6839 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6840 multi-arch definition.
6841 * gdbarch.h: Re-generate.
6842
43bd9a9e
AC
68432003-04-05 Andrew Cagney <cagney@redhat.com>
6844
6845 Eliminate FRAME_FIND_SAVED_REGS.
6846 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6847 Change FSR parameter to a pointer.
6848 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6849 Assume FSR parameter is a pointer.
6850 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6851 Make fsr a pointer.
6852 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6853 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6854 saved_regs a pointer.
6855 (hppa_frame_saved_pc): Ditto.
6856 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6857 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6858 pointer.
6859 (restore_pc_queue): Make fsr a pointer.
6860 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6861 (hppa_frame_chain): Make saved_regs a pointer, call
6862 hppa_frame_init_saved_regs.
6863 * sparc-tdep.c: Include "gdb_assert.h".
6864 (sparc_frame_find_saved_regs): Replace internal_error with
6865 gdb_assert.
6866 * remote-vxsparc.c (vx_read_register): Delete reference to
6867 FRAME_FIND_SAVED_REGS.
6868 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6869 * gdbarch.h: Regenerate.
6870 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6871 (deprecated_get_frame_saved_regs): Delete declaration.
6872 (struct frame_saved_regs): Delete definition.
6873 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6874 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6875 (hppa_frame_find_saved_regs): Delete declaration.
6876 (FRAME_FIND_SAVED_REGS): Delete macro.
6877 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6878 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6879 FRAME_FIND_SAVED_REGS in comment.
6880
be41e9f4
AC
68812003-04-05 Andrew Cagney <cagney@redhat.com>
6882
6883 * frame.c (frame_func_unwind, get_frame_func): New functions.
6884 * frame.h (get_frame_func, frame_func_unwind): Declare.
6885 (struct frame_info): Add field "prev_func" for caching the
6886 previous frame's function address.
6887 * arm-tdep.c (arm_frameless_function_invocation): Combine
6888 get_pc_function_start and get_frame_pc into get_frame_func.
6889 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6890 (sh64_nofp_frame_init_saved_regs): Ditto.
6891 * s390-tdep.c (s390_function_start): Ditto.
6892 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6893 (rs6000_frameless_function_invocation): Ditto.
6894 (rs6000_frame_saved_pc): Ditto.
6895 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6896 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6897 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6898 (i386_frame_init_saved_regs): Ditto.
6899 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6900 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6901 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6902 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6903 * blockframe.c (frameless_look_for_prologue): Ditto.
6904
a01dd7cc
AC
69052003-04-05 Andrew Cagney <cagney@redhat.com>
6906
6907 * frame.c (legacy_get_prev_frame): Link prev to next at the
6908 function start. Update comments.
6909
5e5592e6
AC
69102003-04-05 Andrew Cagney <cagney@redhat.com>
6911
6912 * frame.c (get_frame_id): Update comment.
6913 (legacy_get_prev_frame): Update comment.
6914 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6915 * gdbarch.h: Regenerate.
6916 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6917 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6918
6fba5002
AC
69192003-04-05 Andrew Cagney <cagney@redhat.com>
6920
6921 * stack.c (print_frame_info): Use get_frame_pc.
6922
7df05f2b
AC
69232003-04-04 Andrew Cagney <cagney@redhat.com>
6924
6925 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6926 the frame's type from the unwinder.
6927 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6928 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6929 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6930 (get_frame_base_address): Use get_frame_type.
6931 (get_frame_locals_address, get_frame_args_address): Ditto.
6932 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6933 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6934 (struct frame_info): Add comment explaining why the frame contains
6935 a "type" field.
6936 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6937 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6938 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6939 NORMAL_FRAME.
6940 * frame-unwind.h: Include "frame.h".
6941 (struct frame_unwind): Add "type" field.
6942 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6943
11889732
AC
69442003-04-04 Andrew Cagney <cagney@redhat.com>
6945
6946 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6947 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6948 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6949 get_frame_base.
6950 (d10v_unwind_dummy_id): Use frame_id_build.
6951 * frame.c (find_frame_sal): Use get_frame_pc.
6952 (create_new_frame): Use deprecated_update_frame_pc_hack and
6953 deprecated_update_frame_base_hack.
6954 (create_sentinel_frame): Add comment about ->pc going away.
6955 (get_prev_frame): Add comment about ->pc going away.
6956 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6957 frame_id_build, deprecated_update_frame_pc_hack and
6958 deprecated_update_frame_base_hack.
6959 (select_frame): Use get_frame_pc.
6960 (legacy_saved_regs_this_id): Use frame_id_build.
6961
50c46a0d
EZ
69622003-04-04 Elena Zannoni <ezannoni@redhat.com>
6963
fbe586ae
RH
6964 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6965 signed integer case.
6966 (classify_argument): Handle enumerations and references.
50c46a0d 6967
50bbdbd9
AC
69682003-04-04 Andrew Cagney <cagney@redhat.com>
6969
6970 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6971 ID to NULL.
6972
36018d2e
AF
69732003-04-01 Adam Fedor <fedor@gnu.org>
6974
6975 * gdb/objc-lang.c (selectors_info): Replace calls to
6976 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6977 SYMBOL_NATURAL_NAME.
6978 (classes_info, find_methods): Likewise.
6979
35cec841
KB
69802003-04-03 Kevin Buettner <kevinb@redhat.com>
6981
6982 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6983 ``mach'' to the value determined by bfd_default_set_arch_mach().
6984
43136899
BR
69852003-04-02 Bob Rossi <bob_rossi@cox.net>
6986
6987 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6988 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6989 (mi-cmd-file.o): Update dependencies.
6990
040b99fd
KB
69912003-04-01 Kevin Buettner <kevinb@redhat.com>
6992
6993 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6994 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6995
9a3d7dfd
AF
69962003-04-01 Adam Fedor <fedor@gnu.org>
6997
6998 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6999 * language.h (struct language_defn): Add la_demangle.
7000 (language_demangle): Declare.
7001 * language.c (language_demangle): New function.
7002 (unk_lang_demangle): Likewise.
7003 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7004 Add ukn_lang_demangle.
9a3d7dfd 7005 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7006 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7007 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7008 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7009 * jv-lang.c (java_demangle): New function
7010 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7011 * objc-lang.c (objc_demangle): Add options argument
7012 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7013 * maint.c (maintenance_demangle): Replace switch with
7014 call to language_demangle.
7015 * utils.c (fprintf_symbol_filtered): Likewise.
7016
5e074003
AC
70172003-04-01 Andrew Cagney <cagney@redhat.com>
7018
7019 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7020 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7021 PRINT_TYPELESS_INTEGER.
7022 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7023 PUSH_RETURN_ADDRESS.
7024
270cb5d6
AC
70252003-04-01 Andrew Cagney <cagney@redhat.com>
7026
7027 * Makefile.in (d10v-tdep.o): Update dependencies.
7028 * d10v-tdep.c: Include "frame-base.h".
7029 (d10v_frame_unwind): Make constant.
7030 (d10v_frame_base_address): New function.
7031 (d10v_frame_base): New variable.
7032 (d10v_gdbarch_init): Set frame_base default.
7033 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7034 comment for base.
7035 (d10v_frame_unwind_cache): Set and use "prev_sp".
7036 (d10v_frame_this_id): Use the previous frame's inner most stack
7037 address and this frame's func address for the frame ID. Use
7038 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7039
6bfb3e36
AC
70402003-04-01 Andrew Cagney <cagney@redhat.com>
7041
7042 * frame.h (get_frame_locals_address, get_frame_args_address):
7043 Refer to the base address, instead of the address of the first
7044 local or parameter.
8ffd9b1b 7045
da62e633
AC
70462003-04-01 Andrew Cagney <cagney@redhat.com>
7047
7048 Add frame debug info addresses:
7049 * frame-base.c: New file.
7050 * frame-base.h: New file.
7051 * frame.h (struct frame_base): Add opaque declaration.
7052 (get_frame_base): Update comment.
7053 (get_frame_base_address): Declare.
7054 (get_frame_locals_address): Declare.
7055 (get_frame_args_address): Declare.
7056 (struct frame_info): Add "base" and "base_cache". Update
7057 comments on the unwinder.
7058 * frame.c: Include "frame-base.h".
7059 (get_frame_locals_address): New function.
7060 (get_frame_base_address): New function.
7061 (get_frame_args_address): New function.
7062 * findvar.c (read_var_value): Use get_frame_locals_address and
7063 get_frame_args_address.
7064 * stack.c (frame_info): Use get_frame_locals_address and
7065 get_frame_args_address.
7066 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7067 moved to "frame-base.c".
7068 * printcmd.c (print_frame_nameless_args): Ditto.
7069 * symtab.h (address_class): Update comments.
7070 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7071 get_frame_base_address.
7072 * dwarf2expr.c (execute_stack_op): Ditto.
7073 * Makefile.in (frame_base_h): Define.
7074 (frame.o): Update dependencies.
7075 (frame-base.o): Add dependencies.
7076 (SFILES): Add frame-base.c.
7077 (COMMON_OBS): Add frame-base.o.
7078
3d30e9c2
AC
70792003-04-01 Andrew Cagney <cagney@redhat.com>
7080
7081 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7082 CALL_DUMMY_LENGTH): Ditto.
7083 * gdbarch.c: Re-generate.
7084 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7085 (CALL_DUMMY_LENGTH): Delete macro.
7086 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7087 * arm-tdep.c (arm_gdbarch_init): Ditto.
7088 * avr-tdep.c (avr_gdbarch_init): Ditto.
7089 * cris-tdep.c (cris_gdbarch_init): Ditto.
7090 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7091 * frv-tdep.c (frv_gdbarch_init): Ditto.
7092 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7093 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7094 * i386-tdep.c (i386_gdbarch_init): Ditto.
7095 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7096 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7097 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7098 * mips-tdep.c (mips_gdbarch_init): Ditto.
7099 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7100 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7101 * s390-tdep.c (s390_gdbarch_init): Ditto.
7102 * sh-tdep.c (sh_gdbarch_init): Ditto.
7103 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7104 * v850-tdep.c (v850_gdbarch_init): Ditto.
7105 * vax-tdep.c (vax_gdbarch_init): Ditto.
7106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7107
ce0c7262
CV
71082003-04-01 Corinna Vinschen <vinschen@redhat.com>
7109
7110 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7111
73dd234f
AC
71122003-04-01 Andrew Cagney <cagney@redhat.com>
7113
7114 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7115 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7116 * gdbarch.h, gdbarch.c: Re-generate.
7117 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7118 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7119 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7120 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7121 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7122 * infcmd.c (run_stack_dummy): Simplify assuming
7123 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7124 * infrun.c (handle_inferior_event): Ditto.
7125 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7126 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7127 * arm-tdep.c (arm_gdbarch_init): Ditto.
7128 * avr-tdep.c (avr_gdbarch_init): Ditto.
7129 * cris-tdep.c (cris_gdbarch_init): Ditto.
7130 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7131 * frv-tdep.c (frv_gdbarch_init): Ditto.
7132 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7133 * i386-tdep.c (i386_gdbarch_init): Ditto.
7134 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7136 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7138 * mips-tdep.c (mips_gdbarch_init): Ditto.
7139 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7140 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7141 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7142 * s390-tdep.c (s390_gdbarch_init): Ditto.
7143 * sh-tdep.c (sh_gdbarch_init): Ditto.
7144 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7145 * v850-tdep.c (v850_gdbarch_init): Ditto.
7146 * vax-tdep.c (vax_gdbarch_init): Ditto.
7147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7148
97606a13
DJ
71492003-04-01 Daniel Jacobowitz <drow@mvista.com>
7150
7151 * symfile.c (symfile_relocate_debug_section): Update call to
7152 bfd_simple_get_relocated_section_contents.
7153
e8ab51f7
AC
71542003-03-31 Andrew Cagney <cagney@redhat.com>
7155
7156 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7157 * gdbarch.h, gdbarch.c: Regenerate.
7158 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7159 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7160 available.
7161 * frame.h (generic_fix_call_dummy): Delete declaration.
7162 * dummy-frame.h: Update comment.
7163 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7165 fix_call_dummy.
7166 * sh-tdep.c (sh_gdbarch_init): Ditto.
7167 * s390-tdep.c (s390_gdbarch_init): Ditto.
7168 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7169 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7171 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7172 * i386-tdep.c (i386_gdbarch_init): Ditto.
7173 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7174 * frv-tdep.c (frv_gdbarch_init): Ditto.
7175 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7176 * cris-tdep.c (cris_gdbarch_init): Ditto.
7177 * avr-tdep.c (avr_gdbarch_init): Ditto.
7178 * arm-tdep.c (arm_gdbarch_init): Ditto.
7179
018d1b48
JB
71802003-03-31 J. Brobecker <brobecker@gnat.com>
7181
7182 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7183 (INIT_FRAME_AP): Likewise.
7184 (EXTRA_FRAME_INFO): Likewise.
7185
e9a2674e
AC
71862003-03-31 Andrew Cagney <cagney@redhat.com>
7187
7188 * gdbarch.sh: Include "symfile.h".
7189 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7190 * gdbarch.h, gdbarch.c: Re-generate.
7191 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7192 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7193 call_dummy_address, the default is at entry_point_address.
7194 * v850-tdep.c (v850_gdbarch_init): Ditto.
7195 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7196 * sh-tdep.c (sh_gdbarch_init): Ditto.
7197 * s390-tdep.c (s390_gdbarch_init): Ditto.
7198 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7200 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7201 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7202 * i386-tdep.c (i386_gdbarch_init): Ditto.
7203 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7204 * frv-tdep.c (frv_gdbarch_init): Ditto.
7205 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7206 * cris-tdep.c (cris_gdbarch_init): Ditto.
7207 * arm-tdep.c (arm_gdbarch_init): Ditto.
7208
e8a8712a
AC
72092003-03-31 Andrew Cagney <cagney@redhat.com>
7210
7211 * gdbarch.sh (CALL_DUMMY_P): Delete.
7212 * gdbarch.h, gdbarch.c: Re-generate.
7213 * inferior.h (CALL_DUMMY_P): Delete macro.
7214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7215 * vax-tdep.c (vax_gdbarch_init): Update.
7216 * v850-tdep.c (v850_gdbarch_init): Update.
7217 * sparc-tdep.c (sparc_gdbarch_init): Update.
7218 * sh-tdep.c (sh_gdbarch_init): Update.
7219 * s390-tdep.c (s390_gdbarch_init): Update.
7220 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7221 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7222 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7223 * mips-tdep.c (mips_gdbarch_init): Update.
7224 * mcore-tdep.c (mcore_gdbarch_init): Update.
7225 * m68k-tdep.c (m68k_gdbarch_init): Update.
7226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7227 * ia64-tdep.c (ia64_gdbarch_init): Update.
7228 * i386-tdep.c (i386_gdbarch_init): Update.
7229 * h8300-tdep.c (h8300_gdbarch_init): Update.
7230 * frv-tdep.c (frv_gdbarch_init): Update.
7231 * d10v-tdep.c (d10v_gdbarch_init): Update.
7232 * cris-tdep.c (cris_gdbarch_init): Update.
7233 * breakpoint.c (deprecated_frame_in_dummy): Update.
7234 * avr-tdep.c (avr_gdbarch_init): Update.
7235 * alpha-tdep.c (alpha_gdbarch_init): Update.
7236 * arm-tdep.c (arm_gdbarch_init): Update.
7237 * dummy-frame.c (dummy_frame_this_id): Update comments.
7238 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7239 * frame.c (legacy_get_prev_frame): Ditto.
7240 * valops.c (call_function_by_hand): Delete function.
7241 (hand_function_call): Rename to call_function_by_hand
7242
ed234cf8
AC
72432003-03-30 Andrew Cagney <cagney@redhat.com>
7244
7245 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7246 * value.h (struct value): Update comment.
ed234cf8 7247
06c77151
AC
72482003-03-30 Andrew Cagney <cagney@redhat.com>
7249
6c2b5168
AC
7250 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7251 D10V_FP_REGNUM.
7252 (d10v_gdbarch_init): Do not set fp_regnum.
7253
06c77151
AC
7254 * frame.c (get_frame_base): Force ID initialization.
7255 (get_prev_frame): Move computation of the frame ID from here ...
7256 (get_frame_id): ... to here.
7257 (legacy_get_prev_frame): Mark the frame ID as valid.
7258 * frame.h (struct frame_info): Add field "id_p".
7259
97a1a11c
MK
72602003-03-30 Mark Kettenis <kettenis@gnu.org>
7261
7262 * i386-tdep.c (i386_store_struct_return): Removed.
7263 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7264
6c0e89ed
AC
72652003-03-30 Andrew Cagney <cagney@redhat.com>
7266
7267 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7268 * gdbarch.h, gdbarch.c: Regenerate.
7269 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7271 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7272 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7273 * i386-tdep.c (i386_gdbarch_init): Ditto.
7274 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7275 * cris-tdep.c (cris_gdbarch_init): Ditto.
7276 * vax-tdep.c (vax_gdbarch_init): Ditto.
7277 * s390-tdep.c (s390_gdbarch_init): Ditto.
7278 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7279 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7280 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7281 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7282 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7283 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7284 * sparc-tdep.c (sparc_gdbarch_init): Update.
7285 * sh-tdep.c (sh_gdbarch_init): Update.
7286 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7287 * mips-tdep.c (mips_gdbarch_init): Update.
7288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7289 * ia64-tdep.c (ia64_gdbarch_init): Update.
7290 * frv-tdep.c (frv_gdbarch_init): Update.
7291 * avr-tdep.c (avr_gdbarch_init): Update.
7292 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7293 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7294 instead of when push_dummy_call is not available.
8ffd9b1b 7295
f7dd6af2
AC
72962003-03-30 Andrew Cagney <cagney@redhat.com>
7297
7298 * infttrace.c: Include "gdbthread.h".
7299 (parent_attach_all): Fix function signature.
7300 (call_ptrace): Update call.
7301 * Makefile.in (infttrace.o): Update dependencies.
7302
28f617b3
AC
73032003-03-30 Andrew Cagney <cagney@redhat.com>
7304
7305 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7306 PUSH_RETURN_ADDRESS.
7307 * gdbarch.h, gdbarch.c: Regenerate.
7308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7309 * x86-64-tdep.c (x86_64_init_abi): Update.
7310 * v850-tdep.c (v850_gdbarch_init): Update.
7311 * sparc-tdep.c (sparc_gdbarch_init): Update.
7312 * sh-tdep.c (sh_gdbarch_init): Update.
7313 * s390-tdep.c (s390_gdbarch_init): Update.
7314 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7316 * mips-tdep.c (mips_gdbarch_init): Update.
7317 * mcore-tdep.c (mcore_gdbarch_init): Update.
7318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7319 * ia64-tdep.c (ia64_gdbarch_init): Update.
7320 * i386-tdep.c (i386_gdbarch_init): Update.
7321 * h8300-tdep.c (h8300_gdbarch_init): Update.
7322 * frv-tdep.c (frv_gdbarch_init): Update.
7323 * cris-tdep.c (cris_gdbarch_init): Update.
7324 * avr-tdep.c (avr_gdbarch_init): Update.
7325 * arm-tdep.c (arm_gdbarch_init): Update.
7326 * valops.c (hand_function_call): Update.
7327
4d628cd7
AC
73282003-03-29 Andrew Cagney <cagney@redhat.com>
7329
7330 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7331 sizeof_call_dummy_words.
7332 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7333 define.
7334 * gdbarch.h: Regenerate.
8ffd9b1b 7335
65e82032
AC
73362003-03-29 Andrew Cagney <cagney@redhat.com>
7337
7338 * infttrace.h: New file.
7339 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7340 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7341 (hpread_read_doc_function_type): Detect an initialized type1.
7342 (hpread_quick_traverse): Initialize mod_name_string.
7343 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7344 (som_solib_get_solib_by_pc): Declare.
7345 (so_lib_thread_start_addr): Declare.
7346 (no_shared_libraries): Declare.
7347 * somread.c (init_import_symbols): Make static. Add forward
7348 declaration.
7349 * config/pa/nm-hppah.h: Include "infttrace.h" for
7350 parent_attach_all.
7351 (hppa_insert_hw_watchpoint): Declare.
7352 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7353 * hppah-nat.c: Include "gdb_string.h".
7354 (parent_attach_all): Delete extern declaration, moved to
7355 "infttrace.h".
7356 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7357 int.
7358 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7359 * Makefile.in (infttrace_h): Define.
7360 (hpread.o): Update dependencies.
7361 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7362 * hppa-hpux-tdep.c: Include "gdb_string.h".
7363 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7364 * infrun.c (handle_inferior_event): Always initialize
7365 stepped_after_stopped_by_watchpoint. Add default and remove
7366 fallthrough in switch statement.
7367 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7368 parameter to int.
7369 (hppa_remove_hw_watchpoint): Ditto.
7370
2c3bbe77
AC
73712003-03-29 Andrew Cagney <cagney@redhat.com>
7372
7373 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7374 offset.
7375
2dd604e7
RE
73762003-03-29 Richard Earnshaw <rearnsha@arm.com>
7377
7378 * arm-tdep.c (arm_push_arguments): Delete.
7379 (struct stack_item): New type.
7380 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7381 (arm_store_struct_return): Delte.
7382 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7383 arm_push_arguments or arm_store_struct_return.
7384
e8933a55
AC
73852003-03-28 Andrew Cagney <cagney@redhat.com>
7386
7387 * Makefile.in (d10v-tdep.o): Update dependencies.
7388 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7389 * d10v-tdep.c: Include "remote.h".
7390 (target_resume_hook): Delete extern declaration.
7391 (target_wait_loop_hook): Ditto.
7392 (tdisassemble_command): Eliminate assignment in "if" conditional.
7393 (d10v_ts2_register_sim_regno): Eliminate call to
7394 legacy_register_sim_regno.
7395 (d10v_ts3_register_sim_regno): Ditto.
7396
6949171e
JJ
73972003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7398
7399 * thread.c: Reindented.
7400 * lin-lwp.c: Ditto.
7401 * linux-proc.c: Ditto.
7402
98c7071f
BR
74032003-03-28 Bob Rossi <bob_rossi@cox.net>
7404
fbe586ae 7405 * MAINTAINERS (write after approval): Add myself.
98c7071f 7406
5edc9ca6
TR
74072003-03-27 Theodore A. Roth <troth@openavr.org>
7408
7409 * objc-exp.y: Add missing semi-colons.
7410
378bfd1b
AC
74112003-03-27 Andrew Cagney <cagney@redhat.com>
7412
7413 * regcache.c (write_sp): Delete function and references.
7414 * inferior.h (write_sp): Delete declaration.
7415 * valops.c (hand_function_call): Replace write_sp with
7416 TARGET_WRITE_SP.
7417 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7418 (sparc_pop_frame): Ditto.
8ffd9b1b 7419
56056df7
AC
74202003-03-27 Andrew Cagney <cagney@redhat.com>
7421
7422 * NEWS: Mention removal of support for hppa*-*-bsd* and
7423 hppa*-*-osf* natives, and hppa*-*-pro* target.
7424 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7425 * config/pa/xm-pa.h: Obsolete file.
7426 * config/pa/xm-hppab.h: Obsolete file.
7427 * config/pa/nm-hppab.h: Obsolete file.
7428 * config/pa/tm-hppab.h: Obsolete file.
7429 * config/pa/tm-hppao.h: Obsolete file.
7430 * config/pa/nm-hppao.h: Obsolete file.
7431 * config/pa/tm-pro.h: Obsolete file.
7432 * config/pa/hppaosf.mt: Obsolete file.
7433 * config/pa/hppaosf.mh: Obsolete file.
7434 * config/pa/hppapro.mt: Obsolete file.
7435 * config/pa/hppabsd.mt: Obsolete file.
7436 * config/pa/hppabsd.mh: Obsolete file.
7437 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7438 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7439 hppa*-*-osf*.
7440
5873a88d
AC
74412003-03-27 Andrew Cagney <cagney@redhat.com>
7442
7443 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7444 push_arguments. Don't set push_return_address or write_sp.
7445 (d10v_push_dummy_call): Replace d10v_push_arguments.
7446 (d10v_push_return_address, d10v_write_sp): Delete function,
7447 handled by push_dummy_call.
7448
b81774d8
AC
74492003-03-26 Andrew Cagney <cagney@redhat.com>
7450
7451 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7452 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7453 regcache and dummy_addr parameters.
7454 * gdbarch.h, gdbarch.c: Re-generate.
7455 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7456 available; assume it will handle stack alignment and return
7457 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7458 legacy_push_arguments.
7459 (legacy_push_arguments): Rename default_push_arguments.
7460 * value.h (legacy_push_arguments): Rename default_push_arguments.
7461 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7462 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7463 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7464 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7465 * config/i386/tm-symmetry.h: Update.
7466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7467 * x86-64-tdep.c (x86_64_init_abi): Update.
7468 * v850-tdep.c (v850_gdbarch_init): Update.
7469 * sparc-tdep.c (sparc_gdbarch_init): Update.
7470 * sh-tdep.c (sh_gdbarch_init): Update.
7471 * s390-tdep.c (s390_gdbarch_init): Update.
7472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7473 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7474 * mips-tdep.c (mips_gdbarch_init): Update.
7475 * mcore-tdep.c (mcore_gdbarch_init): Update.
7476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7477 * ia64-tdep.c (ia64_gdbarch_init): Update.
7478 * i386-tdep.c (i386_gdbarch_init): Update.
7479 * hppa-tdep.c (hppa_gdbarch_init): Update.
7480 * h8300-tdep.c (h8300_gdbarch_init): Update.
7481 * frv-tdep.c (frv_gdbarch_init): Update.
7482 * d10v-tdep.c (d10v_gdbarch_init): Update.
7483 * cris-tdep.c (cris_gdbarch_init): Update.
7484 * avr-tdep.c (avr_gdbarch_init): Update.
7485 * arm-tdep.c (arm_gdbarch_init): Update.
7486 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7487 * alpha-tdep.c (alpha_gdbarch_init): Update.
7488
f541410f
DJ
74892003-03-26 Daniel Jacobowitz <drow@mvista.com>
7490
7491 * signals/signals.c (do_target_signal_to_host): Correct realtime
7492 signal range test.
7493
69f567ae
DJ
74942003-03-26 Daniel Jacobowitz <drow@mvista.com>
7495
7496 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7497 (struct sal_chain, map_catch_names): Remove.
7498 (catch_exception_command_1): Don't call
7499 handle_gnu_4_16_catch_command.
7500
d5d14a5a
DJ
75012003-03-26 Daniel Jacobowitz <drow@mvista.com>
7502
7503 From Mark Dettinger <dettinge@de.ibm.com>:
7504 * dwarf2cfi.c (read_2u): Increment pointer by two.
7505
bdd73e22
DJ
75062003-03-26 Daniel Jacobowitz <drow@mvista.com>
7507
7508 * signals/signals.c: Fix typos in last change.
7509
960cb555
DJ
75102003-03-26 Daniel Jacobowitz <drow@mvista.com>
7511
7512 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7513 not already defined. Use __SIGRTMIN if available.
7514 (target_signal_from_host): Remove SIGRTMIN block.
7515 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7516 the signal is within the realtime range.
7517
f636b87d
AF
75182003-03-25 Adam Fedor <fedor@gnu.org>
7519
7520 * Makefile.in (infrun.o): Add $(language_h)
7521 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7522 for language specific trampolines.
7523 * language.h (struct language_defn): Add skip_trampoline.
7524 (skip_language_trampoline): Declare.
7525 * language.c (unk_lang_trampoline, skip_language_trampoline):
7526 New functions.
7527 (unknown_language_defn, auto_language_defn, local_language_defn):
7528 Add ukn_lang_trampoline.
7529 * ada-lang.c (ada_language_defn): Add NULL for language
7530 specific skip_trampoline.
7531 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7532 scm-lang.c: Likewise.
7533 * objc-lang.c (objc_skip_trampoline): New function.
7534 (objc_language_defn): Add objc_skip_trampoline.
7535
28f617b3 75362003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7537
7538 * frame.c (get_prev_frame): Delay validating a frame's ID -
7539 non-NULL, didn't go backwards - until an attempt to unwind it to
7540 the previous frame.
7541
f933a9c5
AC
75422003-03-25 Andrew Cagney <cagney@redhat.com>
7543
7544 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7545 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7546 * gdbarch.h, gdbarch.c: Re-generate.
7547 * config/sparc/tm-sparc.h
7548 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7549 * sparc-tdep.c (sparc_gdbarch_init): Set
7550 deprecated_extra_stack_alignment_needed.
7551 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7553 extra_stack_alignment_needed.
7554 * v850-tdep.c (v850_gdbarch_init): Ditto.
7555 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7556 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7557 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7558 * cris-tdep.c (cris_gdbarch_init): Ditto.
7559 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7561
4183d812
AC
75622003-03-25 Andrew Cagney <cagney@redhat.com>
7563
7564 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7565 STORE_STRUCT_RETURN.
7566 * gdbarch.h, gdbarch.c: Regenerate.
7567 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7568 (d10v_push_arguments): Set the struct return register.
7569 (d10v_gdbarch_init): Update.
7570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7571 * x86-64-tdep.c (x86_64_init_abi): Update.
7572 * vax-tdep.c (vax_gdbarch_init): Update.
7573 * v850-tdep.c (v850_gdbarch_init): Update.
7574 * sparc-tdep.c (sparc_gdbarch_init): Update.
7575 * sh-tdep.c (sh_gdbarch_init): Update.
7576 * s390-tdep.c (s390_gdbarch_init): Update.
7577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7578 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7579 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7580 * mips-tdep.c (mips_gdbarch_init): Update.
7581 * mcore-tdep.c (mcore_gdbarch_init): Update.
7582 * m68k-tdep.c (m68k_gdbarch_init): Update.
7583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7584 * ia64-tdep.c (ia64_gdbarch_init): Update.
7585 * i386-tdep.c (i386_gdbarch_init): Update.
7586 * hppa-tdep.c (hppa_gdbarch_init): Update.
7587 * h8300-tdep.c (h8300_gdbarch_init): Update.
7588 * frv-tdep.c (frv_gdbarch_init): Update.
7589 * cris-tdep.c (cris_gdbarch_init): Update.
7590 * avr-tdep.c (avr_gdbarch_init): Update.
7591 * arm-tdep.c (arm_gdbarch_init): Update.
7592 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7593
1bf6d5cc
AC
75942003-03-25 Andrew Cagney <cagney@redhat.com>
7595
7596 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7597 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7598 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7599 * gdbarch.h, gdbarch.c: Regenerate.
7600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7601 call_dummy_stack_adjust_p.
7602 * vax-tdep.c (vax_gdbarch_init): Ditto.
7603 * v850-tdep.c (v850_gdbarch_init): Ditto.
7604 * sh-tdep.c (sh_gdbarch_init): Ditto.
7605 * s390-tdep.c (s390_gdbarch_init): Ditto.
7606 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7607 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7608 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7609 * mips-tdep.c (mips_gdbarch_init): Ditto.
7610 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7611 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7613 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7614 * i386-tdep.c (i386_gdbarch_init): Ditto.
7615 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7616 * frv-tdep.c (frv_gdbarch_init): Ditto.
7617 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7618 * cris-tdep.c (cris_gdbarch_init): Ditto.
7619 * avr-tdep.c (avr_gdbarch_init): Ditto.
7620 * arm-tdep.c (arm_gdbarch_init): Ditto.
7621 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7622 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7623 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7624 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7625 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7626 call_dummy_stack_adjust_p.
7627 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7628 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7629 * sparc-tdep.c (sparc32_push_arguments): Update.
7630 * valops.c (hand_function_call): Update.
7631
71c08af0
CV
76322003-03-25 Corinna Vinschen <vinschen@redhat.com>
7633
7634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7635 set_gdbarch_char_signed.
7636
30757f90
RE
76372003-03-25 Richard Earnshaw <rearnsha@arm.com>
7638
7639 PR cli/548
7640 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7641
03d48a7d
RE
76422003-03-25 Richard Earnshaw <rearnsha@arm.com>
7643
7644 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7645 (_initialize_arm_tdep): Don't set tm_print_insn.
7646
2cf6873c
AF
76472003-03-24 Adam Fedor <fedor@gnu.org>
7648
7649 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7650 * objc-lang.h: Add multiple inclusion protection.
7651 (start_msglist, add_msglist, end_msglist): Additional declarations.
7652
17c0759e
RE
76532003-03-24 Richard Earnshaw <rearnsha@arm.com>
7654
7655 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7656 value was renamed to ARM_FLOAT_SOFT_FPA.
7657
618ce49f
AC
76582003-03-23 Andrew Cagney <cagney@redhat.com>
7659
7660 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7661 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7662 * gdbarch.h, gdbarch.c: Regenerate.
7663 * valops.c (hand_function_call): Update.
7664 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7665 * frame.c (legacy_saved_regs_this_id): Update.
7666 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7667 * dummy-frame.h: Update.
7668 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7669 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7670 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7671 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7672 * config/m68k/tm-sun3.h: Update.
7673 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7675 * x86-64-tdep.c (x86_64_init_abi): Update.
7676 * vax-tdep.c (vax_gdbarch_init): Update.
7677 * v850-tdep.c (v850_gdbarch_init): Update.
7678 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7679 * sh-tdep.c (sh_gdbarch_init): Update.
7680 * s390-tdep.c (s390_gdbarch_init): Update.
7681 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7682 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7683 (frame_get_saved_regs): Update.
7684 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7685 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7687 * mips-tdep.c (mips_gdbarch_init): Update.
7688 * mcore-tdep.c (mcore_gdbarch_init): Update.
7689 * m68k-tdep.c (m68k_gdbarch_init): Update.
7690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7691 * ia64-tdep.c (ia64_gdbarch_init): Update.
7692 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7693 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7694 (i386_interix_back_one_frame): Update.
7695 * hppa-tdep.c (hppa_gdbarch_init): Update.
7696 (hppa_init_extra_frame_info): Update.
7697 * h8300-tdep.c (h8300_gdbarch_init): Update.
7698 * frv-tdep.c (frv_gdbarch_init): Update.
7699 * cris-tdep.c (cris_gdbarch_init): Update.
7700 * avr-tdep.c (avr_gdbarch_init): Update.
7701 * arm-tdep.c (arm_gdbarch_init): Update.
7702 * alpha-tdep.c (alpha_gdbarch_init): Update.
7703
fd50bc42
RE
77042003-03-22 Richard Earnshaw <rearnsha@arm.com>
7705
7706 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7707 (arm_get_fp_model): Declare.
7708 * arm-tdep.c (fp_model_strings): New string array.
7709 (arm_fp_model, current_fp_model): New variables.
7710 (arm_get_fp_model): New function.
7711 (arm_set_fp): New function.
7712 (set_fp_model_sfunc): New function.
7713 (show_fp_model): New function.
7714 (_initialize_arm_tdep): Add new command to set/show the FPU.
7715 (arm_extract_return_value): Use arm_get_fp_model.
7716 (arm_store_return_value): Likewise.
7717 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7718 to initialize the floating-point data types.
7719 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7720 model is FPA.
7721
26304000
RE
77222003-03-22 Richard Earnshaw <rearnsha@arm.com>
7723
7724 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7725 the current setting of each value.
7726 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7727 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7728 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7729 commands and add new version as subcommands of "set/show arm".
7730
afd7eef0
RE
77312003-03-22 Richard Earnshaw <rearnsha@arm.com>
7732
7733 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7734 (set_arm_command, show_arm_command): New functions.
7735 (_initialize_arm_tdep): Add them.
7736 (num_disassembly_options): Renamed from num_flavor_options.
7737 (valid_disassembly_styles): Renamed from valid_flavors.
7738 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7739 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7740 set_disassembly_flavor_sfunc.
7741 (set_disassembly_style): Renamed from set_disassembly_flavor.
7742 (arm_othernames): Updated.
7743 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7744 command. Add "set/show arm disassembly" commands. Deprecate
7745 "othernames" command.
7746
299a7944
RE
77472003-03-22 Richard Earnshaw <rearnsha@arm.com>
7748
7749 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7750 (arm-tdep.o): Depend on elf_arm_h.
7751
c1dac9e6
RE
77522003-03-22 Richard Earnshaw <rearnsha@arm.com>
7753
7754 * Makefile.in (coff_internal_h): Define.
7755 (arm-tdep.o): Update dependencies.
7756
2702d96c
RE
77572003-03-22 Richard Earnshaw <rearnsha@arm.com>
7758
7759 * arm-tdep.c (prologue_cache): Delete.
7760 (check_prologue_cache, save_prologue_cache): Delete.
7761 (arm_scan_prologue): Don't check or update the prologue_cache.
7762 (arm_gdb_arch_init): Don't initialize it.
7763 (_initialize_arm_tdep): Likewise.
7764
27d5d74b
SC
77652003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7766
7767 * MAINTAINERS (tui): Maintainer of tui code.
7768
1762d96d
CV
77692003-03-21 Corinna Vinschen <vinschen@redhat.com>
7770
7771 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7772 (i386-cygwin-tdep.o): Add dependencies.
7773 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7774 * i386-cygwin-tdep.c: New file.
7775 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7776 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7777
4c2e2391
AC
77782003-03-20 Andrew Cagney <cagney@redhat.com>
7779
f20d38b7
AC
7780 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7781 (handle_inferior_event): Remove code calling
7782 DYNAMIC_TRAMPOLINE_NEXTPC.
7783
0022b738
AC
7784 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7785 already has a full path.
7786
864dbc90
AC
7787 * main.c (gdb_main): Return 1.
7788 (captured_main): Call error to report an invalid interpreter.
7789
4c2e2391
AC
7790 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7791 * alpha-osf1-tdep.c: Include "gdb_string.h".
7792
5ef7553b
JB
77932003-03-19 J. Brobecker <brobecker@gnat.com>
7794
7795 Continuing work to convert the hppa targets to multiarch partial.
7796
7797 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7798 method, now that hppa_push_dummy_frame has a conformant prototype.
7799 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7800 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7801 for the switch to multiarch partial.
7802
7bde8967
KB
78032003-03-19 Kevin Buettner <kevinb@redhat.com>
7804
7805 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7806 when iss is issNull.
7807
b006a9e9
KB
78082003-03-18 Kevin Buettner <kevinb@redhat.com>
7809
7810 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7811 NUM_REGS bounds check.
7812
5e2e9765
KB
78132003-03-18 Kevin Buettner <kevinb@redhat.com>
7814
7815 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7816 * mips-tdep.c (gdb_assert.h): Include.
7817 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7818 (mips_register_name): Handle integer registers explicitly. Add
7819 bounds checking.
7820 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7821 (mips_lsi33k_reg_names): Don't list integer registers; they're
7822 handled by mips_register_name() now.
7823 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7824 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7825 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7826 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7827 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7828
a2867626
AC
78292003-03-18 Andrew Cagney <cagney@redhat.com>
7830
7831 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7832 a void pointer.
7833 * gdbtypes.h (print_scalar_formatted): Update declaration.
7834 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7835
06600e06
JB
78362003-03-18 J. Brobecker <brobecker@gnat.com>
7837
7838 * infrun.c (observer.h): Add #include.
7839 (normal_stop): Add call to observer_notify_normal_stop.
7840 * Makefile.in (infrun.o): Add dependency on observer.h.
7841
7daf4f5b
JB
78422003-03-18 J. Brobecker <brobecker@gnat.com>
7843
7844 Continuing work to convert the hppa targets to multiarch partial.
7845 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7846 parameter. Reformat comment.
7847 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7848 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7849 to match new profile.
7850
3371ccc0
JB
78512003-03-18 J. Brobecker <brobecker@gnat.com>
7852
7853 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7854 appear to be working in any case.
7855
4fbe891e
JB
78562003-03-18 J. Brobecker <brobecker@gnat.com>
7857
7858 * observer.c (observer_test_first_observer): New static variable.
7859 (observer_test_second_observer): Likewise.
7860 (observer_test_third_observer): Likewise.
7861 (observer_test_first_notification_function): New static function.
7862 (observer_test_second_notification_function): Likewise.
7863 (observer_test_third_notification_function): Likewise.
7864
a7ff40e7
JB
78652003-03-17 J. Brobecker <brobecker@gnat.com>
7866
7867 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7868 * somsolib.c (gdb_assert.h): Likewise.
7869 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7870 (somsolib.o): Likewise.
7871
26ca4152
AC
78722003-03-17 Andrew Cagney <cagney@redhat.com>
7873
7874 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7875 BFD. Simplify setting of di.endian.
7876
0a613259
AC
78772003-03-17 Andrew Cagney <cagney@redhat.com>
7878
7879 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7880 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7881
7882 From Elena Zannoni <ezannoni@redhat.com>
7883 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7884 vector and floating-point parameters.
7885 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7886 convention.
7887 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7888
1132738f
FN
78892003-03-17 Fernando Nasser <fnasser@redhat.com>
7890
7891 * MAINTAINERS: Remove my name from several maintainership roles.
7892
6dc42492
AC
78932003-03-17 Andrew Cagney <cagney@redhat.com>
7894
7895 Fix frame off-by-one bug.
7896 * frame-unwind.h (frame_this_id_ftype): Replace
7897 frame_unwind_id_ftype.
7898 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7899 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7900 with "prev_register".
7901 * frame-unwind.c (frame_unwind_find_by_pc): Return
7902 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7903 comment.
7904 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7905 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7906 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7907 (dummy_frame_unwind): Update.
7908 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7909 sentinel_frame_register_unwind.
7910 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7911 (sentinel_frame_unwinder): Update.
7912 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7913 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7914 * frame.c (create_sentinel_frame): Update. Initialize
7915 "prologue_cache" instead of "unwind_cache".
7916 (frame_register_unwind): Call this frame's prev_register with the
7917 next frame and this frame's prologue cache.
7918 (get_prev_frame): Simplify. Always call prev frame's this_id with
7919 this frame and prev frame's prologue cache. Document that this
7920 call is shifted one to the left when compared to the
7921 frame_register_unwind call.
7922 (legacy_saved_regs_prev_register): Replace
7923 frame_saved_regs_register_unwind.
7924 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7925 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7926 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7927 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7928 (d10v_frame_unwind): Update.
7929 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7930 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7931 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7932 "saved_regs" with "this_saved_regs".
7933
efd710d6
AC
79342003-03-16 Andrew Cagney <cagney@redhat.com>
7935
7936 * frame.c (frame_pop): Don't call target_store_registers. Fix
7937 problem reported by Mark Kettenis.
7938
4e259f09
MK
79392003-03-16 Mark Kettenis <kettenis@gnu.org>
7940
7941 * i386-tdep.c (i386_register_type): Renamed from
7942 i386_register_virtual_type. Adjust function signature.
7943 (i386_gdbarch_init): Set register_type instead of
7944 deprecated_max_register_raw_size,
7945 deprecated_max_register_virtual_size and register_virtual_type.
7946
055bb976
AC
79472003-03-14 Andrew Cagney <cagney@redhat.com>
7948
7949 * frame.c (get_prev_frame): When a legacy frame, always call
7950 legacy_get_prev_frame. Simplify unwind code using assumption that
7951 the unwinder is new.
7952 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7953 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7954 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7955
ac2adee5
AC
79562003-03-14 Andrew Cagney <cagney@redhat.com>
7957
7958 * frame.c (get_saved_register): Delete function.
7959 * frame.h (get_saved_register): Delete declaration.
7960 * xstormy16-tdep.c: Update comment.
7961 * regcache.h: Update comments.
7962 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7963 get_saved_register and extract_address, use
7964 frame_read_unsigned_register.
7965 (sparc_frame_saved_pc): Ditto.
7966 (sparc_get_saved_register): Instead of get_saved_register, use
7967 frame_register.
7968 (sparc_pop_frame): Ditto.
7969 * findvar.c: Update comments.
7970 (value_of_register): Call frame_register instead of
7971 get_saved_register.
7972 (value_from_register): Ditto.
7973 * config/sparc/tm-sparc.h: Update comment.
7974 * breakpoint.c: Update comment.
7975
129c1cd6
AC
79762003-03-14 Andrew Cagney <cagney@redhat.com>
7977
7978 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7979 GET_SAVED_REGISTER.
7980 * gdbarch.h, gdbarch.c: Re-generate.
7981 * frame.h: Update comments.
7982 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7983 * x86-64-tdep.c (x86_64_init_abi): Update.
7984 * sparc-tdep.c (sparc_gdbarch_init): Update.
7985 * sh-tdep.c (sh_gdbarch_init): Update.
7986 * mips-tdep.c (mips_gdbarch_init): Update.
7987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7988 * cris-tdep.c (cris_gdbarch_init): Update.
7989 * ia64-tdep.c (ia64_gdbarch_init): Update.
7990 * frame.c (frame_register): Update.
7991 (get_saved_register): Update.
7992 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7993
749b82f6
AC
79942003-03-13 Andrew Cagney <cagney@redhat.com>
7995
7996 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7997 * gdbarch.h, gdbarch.c: Regenerate.
7998 * valops.c (hand_function_call): Update comment.
7999 * stack.c (return_command): Update comment.
8000 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8001 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8003 * x86-64-tdep.c (x86_64_init_abi): Update.
8004 * vax-tdep.c (vax_gdbarch_init): Update.
8005 * v850-tdep.c (v850_gdbarch_init): Update.
8006 * sparc-tdep.c (sparc_gdbarch_init): Update.
8007 * sh-tdep.c (sh_gdbarch_init): Update.
8008 * s390-tdep.c (s390_gdbarch_init): Update.
8009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8010 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8011 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8012 * mips-tdep.c (mips_gdbarch_init): Update.
8013 * mcore-tdep.c (mcore_gdbarch_init): Update.
8014 * m68k-tdep.c (m68k_gdbarch_init): Update.
8015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8016 * ia64-tdep.c (ia64_gdbarch_init): Update.
8017 * i386-tdep.c (i386_gdbarch_init): Update.
8018 * hppa-tdep.c (hppa_gdbarch_init): Update.
8019 * h8300-tdep.c (h8300_gdbarch_init): Update.
8020 * frv-tdep.c (frv_gdbarch_init): Update.
8021 * cris-tdep.c (cris_gdbarch_init): Update.
8022 * avr-tdep.c (avr_gdbarch_init): Update.
8023 * arm-tdep.c (arm_gdbarch_init): Update.
8024 * alpha-tdep.c (alpha_gdbarch_init): Update.
8025
1594fa56
AC
80262003-03-13 Andrew Cagney <cagney@redhat.com>
8027
8028 * frame.c (legacy_frame_p): New function.
8029 (get_prev_frame): Use legacy_frame_p.
8030 * frame.h (legacy_frame_p): Declare.
8031
7717fda3
V
80322003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8033
fbe586ae 8034 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8035 listing corrected.
8036
0c67cbe9
V
80372003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8038
fbe586ae 8039 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8040
03febf99
AC
80412003-03-12 Andrew Cagney <cagney@redhat.com>
8042
8043 * frame.c (get_prev_frame): Rename the frame parameter to
8044 "this_frame".
8045 (get_next_frame, legacy_get_prev_frame): Ditto.
8046
0a1e1ca1
AC
80472003-03-12 Andrew Cagney <cagney@redhat.com>
8048
8049 * frame.c (get_current_frame): Check target_has_registers before
8050 checking target_has_stack.
8051 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8052 instead of deprecated_selected_frame.
8053 * findvar.c (value_of_register): Pass "frame", not
8054 deprecated_selected_frame, to value_of_builtin_reg.
8055
a66a9c23
AC
80562003-03-12 Andrew Cagney <cagney@redhat.com>
8057
8058 * regcache.c (regcache_cooked_write_signed): New function.
8059 (regcache_cooked_write_unsigned): New function.
8060 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8061 (regcache_cooked_read_signed): Fix regnum in range assertion.
8062 * regcache.h (regcache_cooked_write_signed): Declare.
8063 (regcache_cooked_write_unsigned): Declare.
8064
8bedc050
AC
80652003-03-12 Andrew Cagney <cagney@redhat.com>
8066
8067 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8068 * gdbarch.h, gdbarch.c: Re-generate.
8069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8070 * x86-64-tdep.h: Update.
8071 * x86-64-tdep.c (x86_64_init_abi): Update.
8072 * v850-tdep.c (v850_gdbarch_init): Update.
8073 * sparc-tdep.c (sparc_gdbarch_init): Update.
8074 * sh-tdep.c (sh_gdbarch_init): Update.
8075 * s390-tdep.c (s390_gdbarch_init): Update.
8076 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8077 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8078 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8079 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8080 * mips-tdep.c (mips_gdbarch_init): Update.
8081 * mcore-tdep.c (mcore_gdbarch_init): Update.
8082 * m68k-tdep.c (m68k_gdbarch_init): Update.
8083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8084 * ia64-tdep.c (ia64_gdbarch_init): Update.
8085 * i386-tdep.c (i386_gdbarch_init): Update.
8086 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8087 * hppa-tdep.c (hppa_gdbarch_init): Update.
8088 * h8300-tdep.c (h8300_gdbarch_init): Update.
8089 * frv-tdep.c (frv_gdbarch_init): Update.
8090 * cris-tdep.c (cris_gdbarch_init): Update.
8091 * avr-tdep.c (avr_gdbarch_init): Update.
8092 * arm-tdep.c (arm_gdbarch_init): Update.
8093 * alpha-tdep.c (alpha_gdbarch_init): Update.
8094 * sh-tdep.c (sh_init_extra_frame_info): Update.
8095 (sh64_init_extra_frame_info): Update.
8096 * ns32knbsd-nat.c (frame_num_args): Update.
8097 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8098 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8099 (xstormy16_frame_chain_valid): Update.
8100 * vax-tdep.c (vax_saved_pc_after_call): Update.
8101 * v850-tdep.c (v850_frame_chain): Update.
8102 (v850_pop_frame): Update.
8103 (v850_init_extra_frame_info): Update.
8104 * sparc-tdep.c (setup_arbitrary_frame): Update.
8105 * ns32k-tdep.c (umax_frame_num_args): Update.
8106 * s390-tdep.c (s390_pop_frame_regular): Update.
8107 * mn10300-tdep.c (mn10300_frame_chain): Update.
8108 (mn10300_pop_frame_regular): Update.
8109 (mn10300_init_extra_frame_info): Update.
8110 * mips-tdep.c (mips_init_frame_pc_first): Update.
8111 (mips_frame_chain): Update.
8112 (mips_pop_frame): Update.
8113 * mcore-tdep.c (mcore_frame_chain): Update.
8114 (mcore_pop_frame): Update.
8115 (mcore_init_extra_frame_info): Update.
8116 * arch-utils.c (init_frame_pc_default): Update.
8117 * m68k-tdep.c (isi_frame_num_args): Update.
8118 (delta68_frame_num_args): Update.
8119 (news_frame_num_args): Update.
8120 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8121 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8122 (alpha_frame_chain): Update.
8123 (alpha_pop_frame): Update.
8124 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8125 (hppa_init_extra_frame_info): Update.
8126 (hppa_frame_chain): Update.
8127 (hppa_frame_chain_valid): Update.
8128 * cris-tdep.c (cris_init_extra_frame_info): Update.
8129 * avr-tdep.c (avr_init_extra_frame_info): Update.
8130 * arm-tdep.c (arm_frame_chain_valid): Update.
8131 (arm_init_extra_frame_info): Update.
8132 (arm_pop_frame): Update.
8133 * frame.c (frame_pc_unwind): Update.
8134 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8135 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8136 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8137 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8138 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8139 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8140
7a25a7c1
AC
81412003-03-12 Andrew Cagney <cagney@redhat.com>
8142
8143 Eliminate the need for POP_FRAME.
8144 * frame.c (do_frame_unwind_register): New function.
8145 (frame_pop): When no POP_FRAME, pop the frame using register
8146 unwind and a scratch regcache.
8147 (frame_saved_regs_pop): Delete function.
8148 (trad_frame_unwinder): Update.
8149 * d10v-tdep.c (d10v_frame_pop): Delete function.
8150 (d10v_frame_unwind): Update.
8151 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8152 (sentinel_frame_unwinder): Update.
8153 * dummy-frame.c (dummy_frame_pop): Delete function.
8154 (dummy_frame_unwind): Update.
8155 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8156 (struct frame_unwind): Update.
8157
2f38ef89
KB
81582003-03-11 Kevin Buettner <kevinb@redhat.com>
8159
8160 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8161 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8162 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8163 Do range checks on register number obtained from debugging info.
8164 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8165 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8166 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8167 mapping function.
8168 (do_fp_register_row): Fix typo which caused double type to be
8169 used when attempting to unpack a float.
8170
552f4abf
JB
81712003-03-11 J. Brobecker <brobecker@gnat.com>
8172
8173 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8174
e0d2ae16
AC
81752003-03-11 Andrew Cagney <cagney@redhat.com>
8176
8177 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8178 frame. Problem found by Corinna Vinschen.
8179
ddbfdd06
PM
81802003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8181
8182 * doublest.c (floatformat_from_length): Accept also
8183 the real size of 'long double' type.
8184
088b2ddc 81852003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8186
088b2ddc 8187 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8188 * breakpoint.c (bpstat_copy): Copy the command lines as well
8189 as the old value, to match what is freed in bpstat_clear.
8190
f56f77c1
DC
81912003-03-10 David Carlton <carlton@math.stanford.edu>
8192
8193 * minsyms.c (add_minsym_to_hash_table): Replace
8194 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8195 (compare_minimal_symbols, compact_minimal_symbols)
8196 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8197 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8198 of DEPRECATED_SYMBOL_MATCHES_NAME.
8199 (lookup_minimal_symbol_solib_trampoline): Ditto.
8200
5602984a
AC
82012003-03-10 Andrew Cagney <cagney@redhat.com>
8202
8203 * regcache.h (regcache_cooked_read_ftype): Define.
8204 (regcache_save, regcache_restore): Add a cooked_read parameter.
8205 * regcache.c (regcache_save, regcache_restore): Update.
8206 (do_cooked_read): New function.
8207 (regcache_cpy): Pass do_cooked_read to regcache_save and
8208 regcache_restore.
8209
8bedc050
AC
82102003-03-10 Andrew Cagney <cagney@redhat.com>
8211
8212 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8213 * gdbarch.h, gdbarch.c: Re-generate.
8214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8215 * x86-64-tdep.h: Update.
8216 * x86-64-tdep.c (x86_64_init_abi): Update.
8217 * v850-tdep.c (v850_gdbarch_init): Update.
8218 * sparc-tdep.c (sparc_gdbarch_init): Update.
8219 * sh-tdep.c (sh_gdbarch_init): Update.
8220 * s390-tdep.c (s390_gdbarch_init): Update.
8221 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8222 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8223 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8224 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8225 * mips-tdep.c (mips_gdbarch_init): Update.
8226 * mcore-tdep.c (mcore_gdbarch_init): Update.
8227 * m68k-tdep.c (m68k_gdbarch_init): Update.
8228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8229 * ia64-tdep.c (ia64_gdbarch_init): Update.
8230 * i386-tdep.c (i386_gdbarch_init): Update.
8231 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8232 * hppa-tdep.c (hppa_gdbarch_init): Update.
8233 * h8300-tdep.c (h8300_gdbarch_init): Update.
8234 * frv-tdep.c (frv_gdbarch_init): Update.
8235 * cris-tdep.c (cris_gdbarch_init): Update.
8236 * avr-tdep.c (avr_gdbarch_init): Update.
8237 * arm-tdep.c (arm_gdbarch_init): Update.
8238 * alpha-tdep.c (alpha_gdbarch_init): Update.
8239 * sh-tdep.c (sh_init_extra_frame_info): Update.
8240 (sh64_init_extra_frame_info): Update.
8241 * ns32knbsd-nat.c (frame_num_args): Update.
8242 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8243 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8244 (xstormy16_frame_chain_valid): Update.
8245 * vax-tdep.c (vax_saved_pc_after_call): Update.
8246 * v850-tdep.c (v850_frame_chain): Update.
8247 (v850_pop_frame): Update.
8248 (v850_init_extra_frame_info): Update.
8249 * sparc-tdep.c (setup_arbitrary_frame): Update.
8250 * ns32k-tdep.c (umax_frame_num_args): Update.
8251 * s390-tdep.c (s390_pop_frame_regular): Update.
8252 * mn10300-tdep.c (mn10300_frame_chain): Update.
8253 (mn10300_pop_frame_regular): Update.
8254 (mn10300_init_extra_frame_info): Update.
8255 * mips-tdep.c (mips_init_frame_pc_first): Update.
8256 (mips_frame_chain): Update.
8257 (mips_pop_frame): Update.
8258 * mcore-tdep.c (mcore_frame_chain): Update.
8259 (mcore_pop_frame): Update.
8260 (mcore_init_extra_frame_info): Update.
8261 * arch-utils.c (init_frame_pc_default): Update.
8262 * m68k-tdep.c (isi_frame_num_args): Update.
8263 (delta68_frame_num_args): Update.
8264 (news_frame_num_args): Update.
8265 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8266 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8267 (alpha_frame_chain): Update.
8268 (alpha_pop_frame): Update.
8269 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8270 (hppa_init_extra_frame_info): Update.
8271 (hppa_frame_chain): Update.
8272 (hppa_frame_chain_valid): Update.
8273 * cris-tdep.c (cris_init_extra_frame_info): Update.
8274 * avr-tdep.c (avr_init_extra_frame_info): Update.
8275 * arm-tdep.c (arm_frame_chain_valid): Update.
8276 (arm_init_extra_frame_info): Update.
8277 (arm_pop_frame): Update.
8278 * frame.c (frame_pc_unwind): Update.
8279 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8280 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8281 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8282 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8283 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8284 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8285
12cc2063
AC
82862003-03-10 Andrew Cagney <cagney@redhat.com>
8287
8288 * gdbarch.sh (gdbarch_unwind_pc): New method.
8289 * gdbarch.h, gdbarch.c: Regenerate.
8290 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8291 but use read_pc and FRAME_SAVED_PC as fall backs.
8292 (frame_saved_regs_pc_unwind): Delete function.
8293 (trad_frame_unwinder): Update.
8294 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8295 (struct frame_unwind): Update.
8296 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8297 (dummy_frame_unwind): Update.
8298 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8299 (sentinel_frame_unwinder): Update.
8300 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8301 (d10v_frame_unwind): Update.
8302 (d10v_unwind_pc): New function.
8303 (d10v_gdbarch_init): Set unwind_pc.
8304
ef840a37
AC
83052003-03-10 Andrew Cagney <cagney@redhat.com>
8306
a2ce2e56
AC
8307 * gdbarch.h: Re-generate.
8308
ef840a37
AC
8309 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8310 PC.
8311 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8312 the PC register.
8313
08f3424b
MK
83142003-03-08 Mark Kettenis <kettenis@gnu.org>
8315
8316 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8317
1248ede2
AC
83182003-03-08 Andrew Cagney <cagney@redhat.com>
8319
8320 * cli-out.c: Update copyright.
8321 (cli_out_data): Define typedef. Use instead of ui_out_data.
8322
f49bacc8
AC
83232003-03-08 Andrew Cagney <cagney@redhat.com>
8324
8325 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8326 the result.
8327
9b05f993
AC
83282003-03-07 Andrew Cagney <cagney@redhat.com>
8329
8330 * gdbarch.sh: Don't generate two macro definitions when an
8331 undefined macro taking no arguments.
8332 * gdbarch.h: Regenerate.
8ffd9b1b 8333
166f4c7b
ML
83342002-03-07 Michal Ludvig <mludvig@suse.cz>
8335
8336 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8337 (x86_64_unwind_dummy_id): New functions.
8338 (x86_64_init_abi): Register these two new functions.
8339
6d686a84
ML
83402003-03-07 Michal Ludvig <mludvig@suse.cz>
8341
8342 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8343 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8344 separate function.
8345 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8346
6314f104
AC
83472003-03-05 Andrew Cagney <cagney@redhat.com>
8348
8349 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8350 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8351 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8352 to use unwind_dummy_id when a dummy frame.
8353 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8354 predicate.
8355 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8356
ceea5145
AC
83572003-03-05 Andrew Cagney <cagney@redhat.com>
8358
8359 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8360 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8361 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8362 values.
8363
0d843116
AC
83642003-03-05 Andrew Cagney <cagney@redhat.com>
8365
8366 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8367 (struct d10v_unwind_cache): Delete field "frameless". Replace
8368 "next_addr" with "sp_offset". Add "r11_offset".
8369 (d10v_frame_unwind_cache): Update.
8370 (prologue_find_regs): Update. When "mv r11, sp", save the
8371 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8372 RN was saved in r11_offset.
8373
b2579786
AC
83742003-03-05 Andrew Cagney <cagney@redhat.com>
8375
8376 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8377 cached PC value in the next frame.
8378
218e5956
AC
83792003-03-05 Andrew Cagney <cagney@redhat.com>
8380
8381 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8382 "id_unwind_cache" with "id".
8383 (frame_id_unwind): Delete declaration.
8384 * frame.c (frame_id_unwind): Delete function.
8385 (get_prev_frame): Call the frame id unwind method directly. Store
8386 the returned next frame's ID value in NEXT_FRAME. Note that there
8387 is a problem with the wrong unwind ID being called with the wrong
8388 unwind cache.
8389
ed363b1b
DJ
83902003-03-05 Daniel Jacobowitz <drow@mvista.com>
8391
8392 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8393
fe1f4a5e
DJ
83942003-03-05 James Ingham <jingham@apple.com>
8395 Daniel Jacobowitz <drow@mvista.com>
8396
8397 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8398 (auto_cp_abi): New variable.
8399 (current_cp_abi, num_cp_abis): Make static.
8400 (CP_ABI_MAX): Define.
8401 (cp_abis): Turn into an array.
8402 (value_virtual_fn_field): Fix formatting.
8403 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8404 takes a pointer.
8405 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8406 (list_cp_abis, _initialize_cp_abi): New functions.
8407 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8408 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8409 switch_to_cp_abi. Update prototype for register_cp_abi.
8410 * Makefile.in (cp-abi.o): Update dependencies.
8411 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8412 instead of switch_to_cp_abi.
8413 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8414 register_cp_abi.
8415 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8416 register_cp_abi.
8417 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8418
e4adbba9
DJ
84192003-03-05 Daniel Jacobowitz <drow@mvista.com>
8420
8421 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8422 * dwarf2loc.c: Include "regcache.h".
8423 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8424 register_size.
8425 * Makefile.in (dwarf2loc.o): Update dependencies.
8426
91ccbfc1
TR
84272003-03-04 Theodore A. Roth <troth@openavr.org>
8428
8429 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8430 number of io registers reported by remote target is not a multiple of
8431 step.
8432
3d4e8fd2
DC
84332003-03-04 David Carlton <carlton@math.stanford.edu>
8434
8435 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8436 (lookup_symbol_aux_psymtabs): Update call to
8437 lookup_partial_symbol.
8438 (lookup_transparent_type, find_main_psymtab)
8439 (make_symbol_overload_list): Ditto.
8440
ed42d87b
KH
84412003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8442
8443 * MAINTAINERS (Write after approval): Update my email address.
8444
a0ed5532
AC
84452003-03-03 Andrew Cagney <cagney@redhat.com>
8446
8447 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8448 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8449 predicate. Replace MAX_REGISTER_RAW_SIZE.
8450 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8451 MAX_REGISTER_VIRTUAL_SIZE.
8452 * regcache.c (legacy_max_register_raw_size): New function.
8453 (legacy_max_register_virtual_size): New function.
8454 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8455 (MAX_REGISTER_RAW_SIZE): Define.
8456 (legacy_max_register_raw_size): Declare.
8457 (legacy_max_register_virtual_size): Declare.
8458 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8459 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8460 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8461 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8462 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8463 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8464 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8465 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8466 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8468 * vax-tdep.c (vax_gdbarch_init): Update.
8469 * v850-tdep.c (v850_gdbarch_init): Update.
8470 * sparc-tdep.c (sparc_gdbarch_init): Update.
8471 * sh-tdep.c (sh_gdbarch_init): Update.
8472 * s390-tdep.c (s390_gdbarch_init): Update.
8473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8474 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8475 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8476 * mips-tdep.c (mips_gdbarch_init): Update.
8477 * mcore-tdep.c (mcore_gdbarch_init): Update.
8478 * m68k-tdep.c (m68k_gdbarch_init): Update.
8479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8480 * ia64-tdep.c (ia64_gdbarch_init): Update.
8481 * i386-tdep.c (i386_gdbarch_init): Update.
8482 * hppa-tdep.c (hppa_gdbarch_init): Update.
8483 * h8300-tdep.c (h8300_gdbarch_init): Update.
8484 * frv-tdep.c (frv_gdbarch_init): Update.
8485 * cris-tdep.c (cris_gdbarch_init): Update.
8486 * avr-tdep.c (avr_gdbarch_init): Update.
8487 * arm-tdep.c (arm_gdbarch_init): Update.
8488 * alpha-tdep.c (alpha_gdbarch_init): Update.
8489 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8490 max_register_raw_size or max_register_virtual_size.
8491
8e437497
DC
84922003-03-03 David Carlton <carlton@math.stanford.edu>
8493
8494 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8495 SYMBOL_MATCHES_NAME, add comment.
8496 (SYMBOL_MATCHES_NATURAL_NAME): New.
8497 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8498 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8499 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8500 * symtab.c (lookup_partial_symbol): Use
8501 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8502 unhelpful comment.
8503 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8504 SYMBOL_MATCHES_NAME.
8505 Fix for PR c++/33.
8506
25120b0d
DC
85072003-03-03 David Carlton <carlton@math.stanford.edu>
8508
8509 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8510 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8511 by regexp matching against SYMBOL_NATURAL_NAME.
8512
78a11fb4
DC
85132003-03-03 David Carlton <carlton@math.stanford.edu>
8514
8515 * linespec.c (find_method): Extract code into collect_methods.
8516 (collect_methods): New.
8517
645dd519
MK
85182003-03-02 Mark Kettenis <kettenis@gnu.org>
8519
b4700d91
MK
8520 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8521 get_frame_base.
8522
645dd519
MK
8523 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8524 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8525
0aa7e1aa
SC
85262003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8527
8ffd9b1b 8528 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8529 and not regnum when summing the size of all registers up to regnum.
8530
f30ee0bc
AC
85312003-03-01 Andrew Cagney <cagney@redhat.com>
8532
8533 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8534 FRAME_INIT_SAVED_REGS.
8535 * gdbarch.h, gdbarch.c: Regenerate.
8536 * stack.c (frame_info): Update.
8537 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8538 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8539 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8540 * ns32k-tdep.c (ns32k_pop_frame): Update.
8541 * mips-tdep.c (mips_pop_frame): Update.
8542 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8543 * ia64-tdep.c (ia64_frame_chain): Update.
8544 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8545 (ia64_frameless_function_invocation): Update.
8546 (ia64_init_extra_frame_info): Update.
8547 (ia64_pop_frame_regular): Update.
8548 * frame.h (struct frame_info): Update comment.
8549 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8550 * frame.c (frame_saved_regs_register_unwind): Update.
8551 (frame_saved_regs_register_unwind): Update.
8552 (deprecated_generic_get_saved_register): Update.
8553 * cris-tdep.c: Update comment.
8554 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8555 Rename macro.
8556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8557 * x86-64-tdep.c (x86_64_init_abi): Update.
8558 * vax-tdep.c (vax_gdbarch_init): Update.
8559 * v850-tdep.c (v850_gdbarch_init): Update.
8560 * sparc-tdep.c (sparc_gdbarch_init): Update.
8561 * sh-tdep.c (sh_gdbarch_init): Update.
8562 * s390-tdep.c (s390_gdbarch_init): Update.
8563 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8564 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8565 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8566 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8567 * mips-tdep.c (mips_gdbarch_init): Update.
8568 * mcore-tdep.c (mcore_gdbarch_init): Update.
8569 * m68k-tdep.c (m68k_gdbarch_init): Update.
8570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8571 * ia64-tdep.c (ia64_gdbarch_init): Update.
8572 * i386-tdep.c (i386_gdbarch_init): Update.
8573 * frv-tdep.c (frv_gdbarch_init): Update.
8574 * avr-tdep.c (avr_gdbarch_init): Update.
8575 * arm-tdep.c (arm_gdbarch_init): Update.
8576 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8577
42fa7c0f
AC
85782003-03-01 Andrew Cagney <cagney@redhat.com>
8579
8580 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8581 option enum and switch. When no windows, set the interpreter to
8582 INTERP_CONSOLE.
8ffd9b1b 8583
49c7e338
AC
85842003-03-01 Andrew Cagney <cagney@redhat.com>
8585
8586 * main.c (captured_main): Replace magic option characters with an
8587 enum.
8588
e9582e71
AC
85892003-03-01 Andrew Cagney <cagney@redhat.com>
8590
8591 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8592 INIT_EXTRA_FRAME_INFO.
8593 * gdbarch.h, gdbarch.c: Regenerate.
8594 * arm-tdep.c: Update comments.
8595 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8596 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8597 * frame.h, avr-tdep.c: Ditto.
8598 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8599 (create_new_frame, legacy_get_prev_frame): Ditto.
8600 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8601 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8603 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8604 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8605 * v850-tdep.c (v850_gdbarch_init): Ditto.
8606 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8607 * sh-tdep.c (sh_gdbarch_init): Ditto.
8608 * s390-tdep.c (s390_gdbarch_init): Ditto.
8609 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8610 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8611 * mips-tdep.c (mips_gdbarch_init): Ditto.
8612 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8614 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8615 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8616 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8617 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8618 * frv-tdep.c (frv_gdbarch_init): Ditto.
8619 * cris-tdep.c (cris_gdbarch_init): Ditto.
8620 * avr-tdep.c (avr_gdbarch_init): Ditto.
8621 * arm-tdep.c (arm_gdbarch_init): Ditto.
8622 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8623 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8624
35cac7cf
AC
86252003-03-01 Andrew Cagney <cagney@redhat.com>
8626
8627 * gdbarch.sh (register_type): New function with predicate.
8628 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8629 * gdbarch.h, gdbarch.c: Re-generate.
8630 * arch-utils.c (generic_register_byte): Use generic_register_size.
8631 (generic_register_size): When available, use
8632 gdbarch_register_type.
8633 * regcache.c (init_regcache_descr): When available, initialize the
8634 register type array using gdbarch_register_type. If the
8635 architecture supplies gdbarch_register_type, do not use the legacy
8636 regcache layout.
8637 * d10v-tdep.c (d10v_register_type): Replace
8638 d10v_register_virtual_type.
8639 (d10v_gdbarch_init): Set register_type instead of
8640 register_virtual_type.
8641
7b83296f
AC
86422003-03-01 Andrew Cagney <cagney@redhat.com>
8643
8644 * Makefile.in (ax-gdb.o): Update dependencies.
8645 * ax-gdb.c: Include "regcache.h".
8646 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8647 * findvar.c (value_of_register): Ditto.
8648 * infcmd.c (default_print_registers_info): Ditto.
8649
eadc1c87
MK
86502003-03-01 Mark Kettenis <kettenis@gnu.org>
8651
8652 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8653 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8654
14143612
MK
86552003-03-01 Mark Kettenis <kettenis@gnu.org>
8656
8657 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8658 of STREQ.
8659
a55cc764
DJ
86602003-02-28 Daniel Jacobowitz <drow@mvista.com>
8661
8662 * Makefile.in (dwarf2loc.o): Update dependencies.
8663 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8664 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8665 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8666 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8667 (locexpr_tracepoint_var_ref): New function.
8668 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8669
08a617da
AC
86702003-02-28 Andrew Cagney <cagney@redhat.com>
8671
8672 * regcache.c (register_size): New function.
8673 * regcache.h (register_size): Declare
8674 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8675 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8676
4224873a
DC
86772003-02-28 David Carlton <carlton@math.stanford.edu>
8678
8679 * linespec.c (decode_compound): Extract code into find_method.
8680 (find_method): New.
8681
ccdc5d7f
JB
86822003-02-28 J. Brobecker <brobecker@gnat.com>
8683
8684 * Makefile.in: Add rules to build and link in observer.o.
8685
974e8ced
JB
86862003-02-27 J. Brobecker <brobecker@gnat.com>
8687
8688 * observer.c: Minor comments edits.
8689
7a28f973
JB
86902003-02-27 J. Brobecker <brobecker@gnat.com>
8691
8692 * observer.h, observer.c: New file.
8693
27cddce2
AC
86942003-02-27 Andrew Cagney <cagney@redhat.com>
8695
8696 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8697
b94a41a1
SC
86982003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8699
8700 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8701 (M6812_OP_STS_EXT): Likewise.
8702 (m6811_prologue): Use the above to recognize prologue.
8703 (m6812_prologue): Likewise.
8704
c8be8951
DC
87052003-02-27 David Carlton <carlton@math.stanford.edu>
8706
8707 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8708 SYMBOL_PRINT_NAME.
8709 (compare_psymbols): Ditto.
8710 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8711
d05bb1fc
MS
87122003-02-27 Michael Snyder <msnyder@redhat.com>
8713
4e845cd3
MS
8714 * f-lang.c (build_fortran_types): New function.
8715 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8716 * doublest.c (extract_floating): Fix warning text.
8717
f3824013
AC
87182003-02-27 Andrew Cagney <cagney@redhat.com>
8719
8720 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8721 predicate. Replaces PUSH_DUMMY_FRAME.
8722 * gdbarch.h, gdbarch.c: Regnerate.
8723 * valops.c (hand_function_call): Update. Call
8724 generic_push_dummy_frame directly.
8725 * vax-tdep.c (vax_gdbarch_init): Update.
8726 * sparc-tdep.c (sparc_gdbarch_init): Update.
8727 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8728 * m68k-tdep.c (m68k_gdbarch_init): Update.
8729 * hppa-tdep.c (hppa_gdbarch_init): Update.
8730 * alpha-tdep.c (alpha_gdbarch_init): Update.
8731 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8732 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8733 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8734 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8735 push_dummy_frame to generic_push_dummy_frame.
8736 * v850-tdep.c (v850_gdbarch_init): Ditto.
8737 * sh-tdep.c (sh_gdbarch_init): Ditto.
8738 * s390-tdep.c (s390_gdbarch_init): Ditto.
8739 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8740 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8741 * mips-tdep.c (mips_gdbarch_init): Ditto.
8742 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8744 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8745 * i386-tdep.c (i386_gdbarch_init): Ditto.
8746 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8747 * frv-tdep.c (frv_gdbarch_init): Ditto.
8748 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8749 * cris-tdep.c (cris_gdbarch_init): Ditto.
8750 * avr-tdep.c (avr_gdbarch_init): Ditto.
8751 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8752
ad188201
KB
87532003-02-26 Kevin Buettner <kevinb@redhat.com>
8754
8755 * mips-tdep.c (show_mips_abi): New function.
8756 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8757 command ``show mips abi''.
8758
6b37567a 87592003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8760
6b37567a 8761 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8762 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8763 more sline entries have been seen for the function.
8764
d3e0a5bf
MC
87652003-02-26 Michael Chastain <mec@shout.net>
8766
8767 * configure: Regenerate with autoconf 000227.
8768
18972eea
MC
87692003-02-26 Michael Chastain <mec@shout.net>
8770
8771 Close PR build/660.
8772 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8773 for old libc5/glibc.
8774 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8775
0bbde931
KW
87762003-02-26 Kris Warkentin <kewarken@qnx.com>
8777
8778 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8779 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8780
27ca5dad
MC
87812003-02-26 Michael Chastain <mec@shout.net>
8782
8783 * configure.in: New variable HAVE_UINTPTR_T.
8784 * configure, config.in: Regenerated.
8785
6f88d630
DJ
87862003-02-26 Daniel Jacobowitz <drow@mvista.com>
8787
8788 Fix PR build/1097.
8789 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8790
b14185ce
AC
87912003-02-25 Andrew Cagney <cagney@redhat.com>
8792
8793 * frame.c (get_prev_frame): Add comment on check for
8794 inside_entry_func. Only check for inside_entry_file when not a
8795 dummy and not a sentinel. Check that the new frame is not inner
8796 to the old frame.
8797
ac2bd0a9
AC
87982003-02-25 Andrew Cagney <cagney@redhat.com>
8799
8800 * frame.c (frame_debug): New variable.
8801 (_initialize_frame): Add "set/show debug frame" command.
8802 (get_prev_frame): When frame_debug, print reason why unwind
8803 failed.
8804
b18a0fd2
MC
88052003-02-25 Michael Chastain <mec@shout.net>
8806
8807 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8808 to avoid uintptr_t definition problems.
8809
22abf04a
DC
88102003-02-25 David Carlton <carlton@math.stanford.edu>
8811
8812 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8813 (SYMBOL_LINKAGE_NAME): Ditto.
8814 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8815 SYMBOL_LINKAGE_NAME.
8816 (struct general_symbol_info): Expand comment.
8817 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8818 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8819 (SYMBOL_MATCHES_REGEXP): Ditto.
8820 * symtab.c (symbol_natural_name): New function.
8821 * objfiles.h: Replace all uses of SYMBOL_NAME by
8822 DEPRECATED_SYMBOL_NAME.
8823 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8824 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8825 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8826 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8827 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8828 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8829 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8830 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8831 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8832 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8833 * ada-exp.y: Ditto.
8834 * ada-exp.y: Update copyright.
8835 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8836 * cp-valprint.c: Ditto.
8837
1a5848f6
JJ
88382003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8839
8840 * infptrace.c (detach): Do not flag error if ptrace detach fails
8841 and errno is set to ESRCH.
8842
7343d46a
AC
88432003-02-24 Andrew Cagney <cagney@redhat.com>
8844
8845 * infptrace.c (udot_info): Change type of udot_off to long. Use
8846 paddr when printing udot_off's value.
8847
49fa1dc2
DC
88482003-02-24 David Carlton <carlton@math.stanford.edu>
8849
8850 * symtab.c (make_symbol_overload_list): Only read in partial
8851 symtabs containing a matching partial symbol.
8852
0fe19209
DC
88532003-02-24 David Carlton <carlton@math.stanford.edu>
8854
8855 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8856 do the comparison, not strcmp.
8857 * symfile.c (compare_psymbols): Ditto.
8858 * defs.h: Declare strcmp_iw_ordered.
8859 * utils.c (strcmp_iw_ordered): New function.
8860
8e3ee7b5
JB
88612003-02-24 Jim Blandy <jimb@redhat.com>
8862
8863 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8864 support, shared libs): Remove my name from here, to better reflect
8865 reality.
8866
7df1a324
KW
88672003-02-24 Kris Warkentin <kewarken@qnx.com>
8868
8869 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8870 (target_ops): Add to_have_continuable_watchpoint.
8871 * target.c (update_current_target): Add INHERIT line for
8872 to_have_continuable_watchpoint.
8873 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8874 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8875 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8876 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8877
d1c76907
EZ
88782003-02-24 Elena Zannoni <ezannoni@redhat.com>
8879
8880 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8881 maintainership.
8882
2610b0bf
KW
88832003-02-24 Kris Warkentin <kewarken@qnx.com>
8884
f46169db
KW
8885 * solib.c (solib_open): Call target defined search function after
8886 failing with solib-search-path.
8887 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8888 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8889
9a3c34fe
KW
88902003-02-24 Kris Warkentin <kewarken@qnx.com>
8891
f46169db 8892 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8893
2417dd25
SC
88942003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8895
8896 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8897
b631436b
SC
88982003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8899
8900 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8901 (m68hc11_add_reggroups): New function.
8902 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8903 (m68hc11_gdbarch_init): Install the reggroups.
8904 (_initialize_m68hc11_tdep): Initialize them.
8905
0aa8c1e4
JW
89062003-02-21 James E Wilson <wilson@tuliptree.org>
8907
8908 * MAINTAINERS: Update my email address.
8909
50ceaba5
DC
89102003-02-21 David Carlton <carlton@math.stanford.edu>
8911
8912 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8913
4c2df51b
DJ
89142003-02-21 Daniel Jacobowitz <drow@mvista.com>
8915
8916 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8917 * symtab.h: Add opaque declarations of struct axs_value and
8918 struct agent_expr.
8919 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8920 (struct location_funcs): New type.
8921 (struct symbol): Add "loc" to aux_value.
8922 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8923 * dwarf2read.c: Include "dwarf2expr.h".
8924 (dwarf2_symbol_mark_computed): New function.
8925 (read_func_scope): Use it.
8926 (var_decode_location): New function.
8927 (new_symbol): Use it.
8928 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8929
8930 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8931 (dwarf2expr_h, dwarf2loc_h): New variables.
8932 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8933 (dwarf2expr.o, dwarf2loc.o): New rules.
8934 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8935 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8936 LOC_COMPUTED_ARG.
8937 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8938 * m2-exp.y (yylex): Likewise.
8939 * printcmd.c (address_info, print_frame_args): Likewise.
8940 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8941 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8942 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8943 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8944 * symtab.c (lookup_block_symbol): Likewise.
8945
5784d15e
AF
89462003-02-20 Adam Fedor <fedor@gnu.org>
8947
8948 * symtab.h: Remove objc_specific struct
8949 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8950 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8951 Have language_objc use cplus_specific struct.
8952
d4cad8db
TT
89532003-02-20 Tom Tromey <tromey@redhat.com>
8954
8955 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8956 TYPE_NAME, when printing a String value. PR java/1075.
8957
2f9a90b4
AF
89582003-02-20 Adam Fedor <fedor@gnu.org>
8959
d38074a8 8960 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8961 * objc-lang.c (find_methods): Make static.
2f9a90b4 8962
6f17862b
CF
89632003-02-20 Christopher Faylor <cgf@redhat.com>
8964
8965 * win32-nat.c (get_image_name): Check return value from
8966 ReadProcessMemory.
8967 (child_xfer_memory): Ditto.
8968
715d1656
AO
89692003-02-20 Alexandre Oliva <aoliva@redhat.com>
8970
8971 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8972 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8973 '${exec_prefix}' (in addition to the expansion thereof) as
8974 relocatable.
8975 * configure: Rebuilt.
8976
b1262a02
DC
89772003-02-20 David Carlton <carlton@math.stanford.edu>
8978
8979 * symtab.c (search_symbols): Revert the search_symbols part of my
8980 2002-12-23 patch. Add comment.
8981
7134143f
DJ
89822002-02-20 Daniel Jacobowitz <drow@mvista.com>
8983
8984 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8985 * dbxread.c (elfstab_build_psymtabs): Don't call
8986 install_minimal_symbols.
8987 (stabsect_build_psymtabs): Likewise.
8988 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8989 earlier.
8990 * somread.c (som_symfile_read): Call install_minimal_symbols
8991 and do_cleanups earlier.
8992 * nlmread.c (nlm_symfile_read): Likewise.
8993 * mdebugread.c (elfmdebug_build_psymtabs): Call
8994 install_minimal_symbols and make appropriate cleanups.
8995
cf466558
KB
89962003-02-20 Kevin Buettner <kevinb@redhat.com>
8997
8998 * solib.c (reload_shared_libraries): New function.
8999 (_initialize_solib): Add callbacks for ``set solib-search-path''
9000 and ``set solib-absolute-prefix''.
9001
de5ad195
DC
90022003-02-20 David Carlton <carlton@math.stanford.edu>
9003
9004 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9005 expand comment.
9006 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9007 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9008 * ada-typeprint.c (ada_typedef_print): Ditto.
9009 * ax-gdb.c (gen_var_ref): Ditto.
9010 * breakpoint.c (print_one_breakpoint): Ditto.
9011 * buildsym.c (finish_block): Ditto.
9012 * c-valprint.c (c_val_print): Ditto.
9013 * expprint.c (print_subexp): Ditto.
9014 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9015 * infcmd.c (jump_command): Ditto.
9016 * linespec.c (decode_line_2, decode_compound): Ditto.
9017 * maint.c (maintenance_translate_address): Ditto.
9018 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9019 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9020 Ditto.
8ffd9b1b
AJ
9021 * p-valprint.c (pascal_val_print): Ditto.
9022 * stabsread.c (define_symbol): Ditto.
de5ad195 9023 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9024 (print_frame_arg_vars, return_command): Ditto.
9025 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9026 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9027 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9028 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9029 (rbreak_command): Ditto.
9030 * tracepoint.c (tracepoints_info): Ditto.
9031 * typeprint.c (typedef_print): Ditto.
9032 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9033 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9034 * ada-typeprint.c: Update Copyright.
9035 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9036 * tracepoint.c, cli/cli-cmds.c: Ditto.
9037
f796e4be
KB
90382003-02-20 Kevin Buettner <kevinb@redhat.com>
9039
9040 * frame.c (generic_unwind_get_saved_register): Make non-static.
9041 * frame.h (generic_unwind_get_saved_register): Declare.
9042 * mips-tdep.c (read_next_frame_reg): Fetch register from
9043 current regcache when frame is NULL.
9044 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9045 that must be NULL.
9046 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9047 instead of frame_register_unwind().
9048
836cc9f4
AC
90492003-02-20 Andrew Cagney <ac131313@redhat.com>
9050
9051 * remote-sim.c (gdbsim_insert_breakpoint)
9052 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9053 code.
9054
501eef12
AC
90552003-02-20 Andrew Cagney <ac131313@redhat.com>
9056
9057 * remote.c (_initialize_remote): Add commands "set/show remote
9058 hardware-watchpoint-limit" and "set/show remote
9059 hardware-breakpoint-limit".
9060 (remote_hw_watchpoint_limit): Initialize to -1.
9061 (remote_hw_breakpoint_limit): Ditto.
9062 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9063
1b6bc7e0
CF
90642003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9065
9066 * coff-pe-read.c: New file - support reading of minimal symbols from a
9067 portable executable using the export table.
9068 * coff-pe-read.h: New file.
9069 * coffread.c: Include coff-pe-read.h.
9070 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9071 debugging symbols found.
9072 * Makefile.in (SFILES): Add coff-pe-read.o.
9073 (coff_pe_read_h): Define.
9074 (COMMON_OBS): Add coff-pe-read.o.
9075 (coffread.o): Add coff_pe_read_h dependency.
9076 (coff-pe-read.o): New target.
9077
fe898f56
DC
90782003-02-19 David Carlton <carlton@math.stanford.edu>
9079
9080 * Makefile.in (SFILES): Add block.c.
9081 (block_h): New.
9082 (COMMON_OBS): Add block.o.
9083 (block.o): New.
9084 (x86-64-tdep.o): Add $(block_h).
9085 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9086 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9087 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9088 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9089 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9090 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9091 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9092 * value.h: Add opaque declaration for struct block.
9093 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9094 * ada-lang.h: Ditto.
9095 * x86-64-tdep.c: #include "block.h"
9096 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9097 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9098 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9099 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9100 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9101 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9102 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9103 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9104 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9105 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9106 * symtab.c (block_function): Ditto.
9107 (contained_in): Ditto.
9108 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9109 block.h. Add opaque declaration for struct block.
9110 * symtab.h: Move block_function and contained_in declarations to
9111 block.h. Add opaque declarations for struct block, struct
9112 blockvector.
9113 (struct block): Move to block.h.
9114 (struct blockvector): Ditto.
9115 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9116 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9117 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9118 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9119 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9120 Ditto.
9121 * block.c: New file.
9122 * block.h: New file.
9123
173345b5
TR
91242003-02-19 Theodore A. Roth <troth@openavr.org>
9125
9126 * avr-tdep.c (avr_extract_return_value): Remove function.
9127 (avr_store_return_value): Remove function.
9128 (avr_extract_struct_value_address): Remove function.
9129 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9130
338ef23d
AC
91312003-02-19 Andrew Cagney <ac131313@redhat.com>
9132
9133 * rs6000-tdep.c: Include "gdb_assert.h".
9134 (registers_e500): Add "acc" and "spefscr".
9135 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9136 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9137 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9138 really is "r0".
9139 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9140
5412f5f3
KS
91412003-02-18 Keith Seitz <keiths@redhat.com>
9142
9143 * Makefile.in: Add gdbtk-interps.c.
9144
881324eb
KB
91452003-02-18 Kevin Buettner <kevinb@redhat.com>
9146
9147 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9148 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9149
6a2f5abf
AC
91502003-02-18 Andrew Cagney <cagney@redhat.com>
9151
9152 * symtab.h (struct objfile): Add opaque declaration.
9153
54c7009d
EZ
91542003-02-18 Elena Zannoni <ezannoni@redhat.com>
9155
9156 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9157 * dbxread.c (process_one_symbol): Use last_function_start rather
9158 than function_start_offset to find the real beginning of the
9159 current function. The latter is just the text section offset on
9160 some systems, the former is always the real function start.
54c7009d 9161
7ee6d7eb
AC
91622003-02-17 Andrew Cagney <cagney@redhat.com>
9163
9164 * configure.in: Revert ${target} != ${host}.
9165
2846da9b
AC
91662003-02-17 Andrew Cagney <ac131313@redhat.com>
9167
9168 * configure.in (Makefile): Use the test ${target} != ${host},
9169 instead of the absence of the "nm.h" file, to determine of the
9170 configuration non-native.
9171 * configure: Regenerate.
8ffd9b1b 9172
3b27aeea
EZ
91732003-02-14 Elena Zannoni <ezannoni@redhat.com>
9174
fbe586ae 9175 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9176
9177 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9178 conditionalize tui_active test.
9179 (lookup_cmd_1): Ditto.
9180
b0b1c2c0
MK
91812003-02-14 Mark Kettenis <kettenis@gnu.org>
9182
9183 * configure.in: Add check for _etext.
9184 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9185 available.
9186 * config.in, configure: regenerated.
9187
8f05cde5
DJ
91882003-02-14 Daniel Jacobowitz <drow@mvista.com>
9189
9190 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9191
021e7609
AC
91922003-02-14 Andrew Cagney <ac131313@redhat.com>
9193
9194 * main.c (tui_version): Delete variable.
9195 (captured_main): When --tui, set interpreter_p to "tui" instead of
9196 enabling tui_version.
9197 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9198 tui_version.
9199 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9200 * cli/cli-cmds.c (disassemble_command): Ditto.
9201 * defs.h (tui_version): Delete declaration.
9202 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9203 (tui-interp.o): Add rules.
9204 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9205
e325dcec
CF
92062003-02-14 Christopher Faylor <cgf@redhat.com>
9207
36ffb041 9208 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9209 just-loaded dll.
9210
c4f90d87
JM
92112003-02-12 Jason Molenda (jmolenda@apple.com)
9212
fbe586ae
RH
9213 * symmisc.c (print_objfile_statistics): Include information about
9214 the number of psymtabs and symtabs in each object file.
c4f90d87 9215
e46e5ccd
KS
92162003-02-13 Keith R Seitz <keiths@redhat.com>
9217
9218 * main.h (struct captured_main_args): Add interpreter_p.
9219 * main.c (captured_main): Initialize interpreter_p from context.
9220 * gdb.c (main): Set interpreter_p argument.
9221 * Makefile.in (gdb.o): Add dependency for interps.h.
9222
fe97fe9c
AC
92232003-02-12 Andrew Cagney <ac131313@redhat.com>
9224
9225 * event-top.c (cli_command_loop): Delete declaration.
9226 (_initialize_event_loop): Delete function setting event_loop_hook.
9227 * event-top.h (cli_command_loop): Declare. Update copyright.
9228 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9229 * interps.c (current_interp_command_loop): When event_loop_p, call
9230 cli_command_loop.
9231
1cdac4ef
AC
92322003-02-12 Andrew Cagney <ac131313@redhat.com>
9233
9234 * interps.h (interp_command_loop_ftype): Change return type to
9235 void.
9236
48037ead
ML
92372003-02-12 Michal Ludvig <mludvig@suse.cz>
9238
9239 * x86-64-tdep.c (x86_64_extract_return_value)
9240 (x86_64_store_return_value): Use regcache instead of regbuf.
9241 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9242 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9243
033afc63
AC
92442003-02-11 Andrew Cagney <ac131313@redhat.com>
9245
9246 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9247 * aclocal.m4: Regenerate.
9248 * configure: Regenerate.
9249
9250 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9251 TCL_LD_SEARCH_FLAGS.
9252
40d02bca
ML
92532003-02-10 Michal Ludvig <mludvig@suse.cz>
9254
9255 * dwarf2cfi.c: Reindented.
9256
11308a41
AC
92572003-02-09 Andrew Cagney <ac131313@redhat.com>
9258
9259 * interps.c (clear_interpreter_hooks): Convert function definition
9260 to ISO C.
9261
e1c1c0f6
DC
92622003-02-07 David Carlton <carlton@math.stanford.edu>
9263
9264 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9265
ab5d3da6
KB
92662003-02-07 Kevin Buettner <kevinb@redhat.com>
9267
9268 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9269 (struct type): ...to here.
9270 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9271 field.
9272 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9273 (replace_type): Set length on all type variants for a given type.
9274
b8a92b82
AC
92752003-02-07 Andrew Cagney <ac131313@redhat.com>
9276
9277 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9278 <sys/stat.h>.
9279 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9280
5cb316ef
AC
92812003-02-06 Andrew Cagney <ac131313@redhat.com>
9282
2555fe1a
AC
9283 * Makefile.in (symm-nat.o): Update dependencies.
9284 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9285 (lynx-nat.o, ia64-linux-nat.): Ditto.
9286 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9287 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9288 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9289
44270758
AC
9290 * Makefile.in (inflow_h): Define.
9291 (procfs.o, inflow.o, procfs.o): Update dependencies.
9292 * inftarg.c (child_stop): Delete extern declaration of
9293 inferior_process_group. Include "inflow.h".
9294 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9295 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9296 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9297 (our_process_group, inferior_process_group): Extern declarations.
9298
df8f7274
AC
9299 * procfs.c: Include "gdb_assert.h".
9300
5cb316ef
AC
9301 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9302 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9303 * jv-typeprint.c (java_type_print_base): Ditto.
9304 * typeprint.c (typedef_print): Eliminate STREQ.
9305 * cli/cli-script.c (define_command, define_command): Ditto.
9306 * main.c (captured_main): Ditto.
9307 * values.c (lookup_internalvar): Ditto.
9308 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9309 within `if' conditional.
9310 * linespec.c (decode_line_2): Ditto.
9311 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9312 (bfd_openw_with_cleanup): Ditto.
9313
2a28ccea
MK
93142003-02-07 Mark Kettenis <kettenis@gnu.org>
9315
9316 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9317 legacy_extract_return_value and store_return_value to
9318 legacy_return_value.
9319
786b8124
CF
93202003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9321
9322 * win32-nat.c (get_relocated_section_addrs): New function. Find
9323 section load addresses for symbol handling in relocated DLLs.
9324 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9325
b871e4ec
FF
93262003-02-05 Fred Fish <fnf@intrinsity.com>
9327
9328 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9329 '=' and '!='.
9330 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9331 with '&' and '=='.
9332 (angel_RDI_info): Ditto.
9333 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9334 with '&' and '!='.
9335 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9336
4389a95a 93372003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9338 Keith Seitz <keiths@redhat.com>
9339 Elena Zannoni <ezannoni@redhat.com>
9340 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9341
9342 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9343 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9344 (SUBDIR_MI_OBS): Add "mi-interp.o".
9345 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9346 (SFILES): Add "interps.c".
9347 (COMMON_OBS): Add "interps.o".
9348 (interps_h, mi_main_h): Define.
9349 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9350 (mi-main.o, main.o, event-top.o): Update dependencies.
9351 * cli/cli-interp.c: New file.
9352 * interps.h, interps.c: New files.
9353 * top.c: (gdb_init): Don't install the default interpreter, handed
9354 by captured_main.
9355 * main.c: Include "interps.h".
9356 (interpreter_p): Note that it should malloc'ed.
9357 (captured_command_loop): Call current_interp_command_loop.
9358 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9359 xfree and xstrdup when updating interpreter_p. Install the
9360 default interpreter. Add hack to stop mi1's copyright notice
9361 being encoded.
9362 * event-top.h (gdb_setup_readline): Declare.
9363 (gdb_disable_readline): Declare.
9364 * event-top.c: Include "interps.h".
9365 (display_gdb_prompt): Call current_interp_display_prompt_p.
9366 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9367 gdb_stdlog, and gdb_stdtarg.
9368 (_initialize_event_loop): Don't call gdb_setup_readline.
9369 * cli-out.c (cli_out_set_stream): New function.
9370 * cli-out.h (cli_out_set_stream): Declare.
9371
ff3b5810
MK
93722003-02-06 Mark Kettenis <kettenis@gnu.org>
9373
9374 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9375 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9376 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9377 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9378 config/i386/i386v42mp.mt: Removed.
9379
5b729aa5
MK
93802003-02-05 Mark Kettenis <kettenis@gnu.org>
9381
9382 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9383 GDB_OSABI_SOLARIS.
9384
8cc15142
MC
93852003-02-05 Michael Chastain <mec@shout.net>
9386
9387 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9388 2.12.1 and earlier versions.
9389
5aa5d4b9
AC
93902003-02-05 Andrew Cagney <ac131313@redhat.com>
9391
9392 Remove orphaned hosts, targets and files.
9393 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9394 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9395 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9396 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9397 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9398 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9399 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9400 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9401 * config/sparc/tm-sp64sim.h: Delete.
9402 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9403 hosts.
9404 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9405 mips*-dec-mach3* targets.
9406
b68767c1
MC
94072003-02-04 Michael Chastain <mec@shout.net>
9408
9409 * NEWS: Fix typo: sepcifying -> specifying.
9410
5ae7ca1d
MC
94112003-02-04 Michael Chastain <mec@shout.net>
9412
9413 * dwarfread.c: Add documentation on the state of dwarf-1,
9414 looking towards obsoletion.
9415
d08a4280
MC
94162003-02-03 Michael Chastain <mec@shout.net>
9417
9418 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9419 gdb/testsuite/gdb.c++/pr-1023.exp.
9420
e9be73e4
AC
94212003-02-04 Andrew Cagney <ac131313@redhat.com>
9422
9423 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9424 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9425
9426 * utils.c (init_page_info): Delete reference to MPW in comments.
9427 * main.c (captured_main): Delete #ifdef MPW.
9428
05d57f6f
AC
94292003-02-04 Andrew Cagney <ac131313@redhat.com>
9430
8ffd9b1b 9431 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9432 * monitor.c (monitor_expect): Obsolete reference to m32r.
9433 * configure.tgt: Mark m32r-*-elf* as obsolete.
9434 * MAINTAINERS: Mark m32k as obsolete.
9435 * m32r-rom.c: Obsolete file.
9436 * config/m32r/m32r.mt: Obsolete file.
9437 * config/m32r/tm-m32r.h: Obsolete file.
9438 * m32r-stub.c: Obsolete file.
9439 * m32r-tdep.c: Obsolete file.
9440
8b0e5691
AC
94412003-02-04 Andrew Cagney <ac131313@redhat.com>
9442
9443 * NEWS: Mention that the z8k-zilog-none is obsolete.
9444 * MAINTAINERS: Mark z8k as obsolete.
9445 * configure.tgt: Obsolete the z8k-*-coff* target.
9446 * config/z8k/z8k.mt: Obsolete file.
9447 * config/z8k/tm-z8k.h: Obsolete file.
9448 * z8k-tdep.c: Obsolete file.
9449
67f16606
AC
94502003-02-04 Andrew Cagney <ac131313@redhat.com>
9451
9452 * NEWS: Mention that the mn10200-elf is obsolete.
9453 * configure.tgt: Obsolete mn10200-*-* target.
9454 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9455 mention that the mn10200 is obsolete.
9456 * breakpoint.h: Ditto.
9457 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9458 * config/mn10200/mn10200.mt: Obsolete file.
9459 * config/mn10200/tm-mn10200.h: Obsolete file.
9460 * mn10200-tdep.c: Obsolete file.
9461
fd2299bd
AC
94622003-02-04 Andrew Cagney <ac131313@redhat.com>
9463
9464 * MAINTAINERS: Mark h8500 as obsolete.
9465 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9466 * findvar.c (value_from_register): Ditto.
9467 * h8500-tdep.c: Mark file as obsolete.
9468 * config/h8500/h8500.mt: Ditto.
9469 * config/h8500/tm-h8500.h: Ditto.
9470 * NEWS: Mention that h8500 is obsolete.
9471
eb9a305d
DC
94722003-02-04 David Carlton <carlton@math.stanford.edu>
9473
9474 * objfiles.c (allocate_objfile): Always set name. Add comment at
9475 start of function.
9476 * jv-lang.c (get_dynamics_objfile): Add comment.
9477
406fc7fb
DC
94782003-02-04 David Carlton <carlton@math.stanford.edu>
9479
9480 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9481 * printcmd.c (build_address_symbolic): Replace uses of
9482 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9483 SYMBOL_NAME, and asm_demangle.
9484 Update copyright.
9485
93d91629
DC
94862003-02-04 David Carlton <carlton@math.stanford.edu>
9487
9488 * linespec.c (decode_compound): Extract code into
9489 lookup_prefix_sym.
9490 (lookup_prefix_sym): New function.
9491
1c5cb38e
DC
94922003-02-04 David Carlton <carlton@math.stanford.edu>
9493
9494 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9495 FLOAT_COERCION_BADNESS.
9496 * gdbtypes.c (rank_one_type): Replace all uses of
9497 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9498
0cf824c9
JB
94992003-02-04 Jim Blandy <jimb@redhat.com>
9500
9501 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9502 section, let dwarf_macinfo_section point to it, not
9503 dwarf_loc_section.
9504
a2d356b0
DJ
95052003-02-04 Daniel Jacobowitz <drow@mvista.com>
9506
9507 Pointed out by Anton Blanchard <anton@samba.org>.
9508 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9509 (ppc_linux_at_sigtramp_return_path): Use it.
9510
2de7ced7
DJ
95112003-02-04 Daniel Jacobowitz <drow@mvista.com>
9512
9513 * defs.h (streq): Add prototype.
9514 * utils.c (streq): New function.
9515
9516 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9517 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9518 * mdebugread.c (new_symbol): Likewise.
9519 * stabsread.c (define_symbol): Likewise.
9520 * coffread.c (process_coff_symbol): Likewise.
9521 * dwarfread.c (new_symbol): Likewise.
9522
9523 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9524 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9525 here.
9526 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9527 SYMBOL_INIT_DEMANGLED_NAME.
9528 * objfiles.c: Include "hashtab.h".
9529 (allocate_objfile): Call htab_set_functions_ex for the
9530 demangled_names_hash.
9531 (free_objfile): Call htab_delete for the demangled_names_hash.
9532 * objfiles.h (struct htab): Add declaration.
9533 (struct objfile): Add demangled_names_hash.
9534 * symfile.c: Include "hashtab.h".
9535 (reread_symbols): Call htab_delete for the demangled_names_hash.
9536 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9537 SYMBOL_NAME in the bcache.
9538 * symtab.c: Include "hashtab.h". Update comments.
9539 (create_demangled_names_hash, symbol_set_names): New functions.
9540 (symbol_find_demangled_name): New function, broken out from
9541 symbol_init_demangled_names.
9542 (symbol_init_demangled_names): Use it.
9543 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9544 (SYMBOL_SET_NAMES): New macro.
9545 (symbol_set_names): Add prototype.
9546
15831452
JB
95472003-02-03 Jim Blandy <jimb@redhat.com>
9548
9549 Use a single, consistent representation for an empty minimal
9550 symbol table in an objfile.
9551 * objfiles.c (terminate_minimal_symbol_table): New function.
9552 (allocate_objfile): Call it.
9553 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9554 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9555 non-NULL.
15831452
JB
9556 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9557 objfile has minimal symbols, compare minimal_symbol_count to zero,
9558 instead of comparing msymbols with NULL.
9559 * objfiles.c (have_minimal_symbols): Same.
9560 * solib-sunos.c (solib_add_common_symbols): Call
9561 terminate_minimal_symbol_table.
9562 * symfile.c (reread_symbols): Same.
8ffd9b1b 9563
ffc65945
KB
95642003-02-03 Kevin Buettner <kevinb@redhat.com>
9565
9566 * s390-tdep.c (s390_address_class_type_flags)
9567 (s390_address_class_type_flags_to_name)
9568 (s390_address_class_name_to_type_flags): New functions.
9569 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9570 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9571
f211c6d4
MS
95722003-02-03 Michael Snyder <msnyder@redhat.com>
9573
9574 * arm-tdep.c: Fix spell-o in comment.
9575
659b0389
ML
95762003-02-03 Michal Ludvig <mludvig@suse.cz>
9577
9578 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9579 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9580 error messages to contain BFD filename.
659b0389 9581
3b31d625
EZ
95822003-02-02 Elena Zannoni <ezannoni@redhat.com>
9583
997b089a 9584 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9585 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9586 (do_mixed_source_and_assembly): Use
9587 make_cleanup_ui_out_tuple_begin_end and
9588 make_cleanup_ui_out_tuple_begin_end.
9589 (do_mixed_source_and_assembly): Ditto.
9590 * thread.c (do_captured_list_thread_ids): Ditto.
9591 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9592 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9593 ui_out_tuple_end): Delete prototypes.
9594 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9595 ui_out_list_end, ui_out_tuple_end): Delete.
9596
9597 From Kevin Buettner <kevinb@redhat.com>:
9598 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9599 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9600 (do_cleanup_table_end): New functions.
9601 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9602 Use cleanups to invoke_ui_out_tuple_end().
9603 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9604 * cli/cli-setshow.c (cmd_show_list): Use
9605 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9606
5b181d62
AC
96072003-02-02 Andrew Cagney <ac131313@redhat.com>
9608
9609 * frame.c (frame_unwind_register): New function.
9610 (frame_unwind_unsigned_register): Use.
9611 (frame_unwind_signed_register): Use.
9612 (frame_read_register): New function.
9613 * frame.h (frame_unwind_register): Declare.
9614 (frame_read_register): Declare.
9615
9616 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9617 and frame_unwind_register instead of read_memory, write_register
9618 and deprecated_write_register_bytes.
9619
5f601589
AC
96202003-02-02 Andrew Cagney <ac131313@redhat.com>
9621
9622 * frame.h: Note that namelen can be negative.
9623 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9624 NAME's length.
9625
9626 * NEWS: Mention that the d10v's `regs' command is deprecated.
9627 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9628 (d10v_print_registers_info): New function.
9629 (show_regs): Call d10v_print_registers_info.
9630 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9631
6a3fe0a4
MK
96322003-02-02 Mark Kettenis <kettenis@gnu.org>
9633
9634 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9635 lost in the previous patch.
9636
075559bc
AC
96372003-02-01 Andrew Cagney <ac131313@redhat.com>
9638
9639 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9640 * stack.c (print_frame_info_base): Output complete FRAME tuple
9641 for synthesized frames.
075559bc 9642
6789195b
AC
96432003-02-02 Andrew Cagney <ac131313@redhat.com>
9644
9645 * mips-nat.c (zerobuf): Delete.
9646 (fetch_inferior_registers): Alloc local zerobuf.
9647 (fetch_core_registers): Alloc local zerobuf.
9648 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9649 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9650 * thread-db.c (thread_db_store_registers): Ditto.
9651 * sh-tdep.c (sh_do_register): Ditto.
9652 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9653 * remote-sim.c (gdbsim_store_register): Ditto.
9654 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9655 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9656 * monitor.c (monitor_supply_register): Ditto.
9657 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9658 * mips-nat.c (fetch_inferior_registers): Ditto.
9659 * m68klinux-nat.c (fetch_register): Ditto.
9660 * lynx-nat.c (fetch_inferior_registers): Ditto.
9661 (fetch_inferior_registers): Ditto.
9662 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9663 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9664 (hpux_thread_store_registers): Ditto.
9665 * hppah-nat.c (fetch_register): Ditto.
9666 * hppab-nat.c (fetch_register): Ditto.
9667 * hppa-tdep.c (pa_register_look_aside): Ditto.
9668 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9669 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9670
e669114a
AC
96712003-02-01 Andrew Cagney <ac131313@redhat.com>
9672
9673 * gdbarch.sh: Explictly specify all method levels. When a
9674 variable with an empty level, provide a non-multi-arch default.
9675 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9676 * gdbarch.h: Re-generate.
9677 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9678 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9679
9a043c1d
AC
96802003-02-01 Andrew Cagney <ac131313@redhat.com>
9681
9682 * defs.h (host_pointer_to_address): Delete declaration.
9683 (address_to_host_pointer): Delete declaration.
9684 * utils.c (host_pointer_to_address): Delete function.
9685 (address_to_host_pointer): Delete function.
9686 * procfs.c (procfs_address_to_host_pointer): New function.
9687 * procfs.c (proc_set_watchpoint): Use.
9688 (procfs_can_use_hw_breakpoint): Update comments.
9689 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9690 (som_solib_add): Use.
9691 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9692 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9693
7ca9f392
AC
96942003-02-01 Andrew Cagney <ac131313@redhat.com>
9695
94bbfd30
AC
9696 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9697 strlen d_name.
9698
7ca9f392
AC
9699 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9700 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9701 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9702 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9703 (define_symbol): Update.
9704 * symfile.c (generic_load): Remove references to nindy.
9705 * symtab.c: Remove references to nindy.
9706
31a85ea2
AC
97072003-02-01 Andrew Cagney <ac131313@redhat.com>
9708
9709 * infcmd.c (print_float_info): Delete code conditional on
9710 FLOAT_INFO.
9711 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9712 * config/m68k/nm-apollo68b.h: Ditto.
9713 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9714 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9715 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9716
f6e85fc8
MK
97172003-02-01 Mark Kettenis <kettenis@gnu.org>
9718
6015b6a0
MK
9719 * config/i386/tm-i386os9k.h: Removed.
9720
f7a30bdf
MK
9721 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9722 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9723 they're identical to i[3456]86-*-sysv* now.
9724 * config/i386/i386v32.mh: Removed.
9725 * config/i386/xm-i386v32.h: Removed.
9726 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9727
28d52111
MK
9728 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9729
4d3f6bce
MK
9730 * config/i386/i386dgux.mh: Removed.
9731 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9732
f6e85fc8
MK
9733 * configure.in: Fix typo.
9734 * configure: Regenerated.
9735
53955967
DC
97362003-01-31 David Carlton <carlton@math.stanford.edu>
9737
9738 * dwarf2read.c (dwarf2_locate_sections): Set
9739 dwarf_ranges_section.
9740
b1364885
AC
97412003-01-31 Andrew Cagney <ac131313@redhat.com>
9742
8dbb1c65
AC
9743 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9744 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9745
8731e58e
AC
9746 * utils.c: Re-indent.
9747
b1364885
AC
9748 * config/djgpp/fnchange.lst: Delete nindy files.
9749 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9750 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9751 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9752 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9753 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9754 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9755 * Makefile.in (init.c): Remove nindy references.
9756 (saber_gdb): Delete rule.
9757 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9758 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9759 and a68v-nat.c.
9760 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9761 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9762 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9763 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9764 nindy-share/stop.h.
9765 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9766 * saber.suppress: Delete file.
9767
086df311
DJ
97682003-01-31 Daniel Jacobowitz <drow@mvista.com>
9769
9770 * dbxread.c (stabs_data): New static variable.
9771 (fill_symbuf): Support an in-memory buffer for stabs data.
9772 (stabs_seek): New function.
9773 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9774 (read_ofile_symtab): Use stabs_seek.
9775 (elfstab_build_psymtabs): Take an asection* instead of
9776 an offset and size. Relocate the stabs data if necessary.
9777 Save the section* for dbx_psymtab_to_symtab.
9778 * dwarf2read.c: Add section variables for each debug section.
9779 (dwarf2_locate_sections): Fill them in.
9780 (dwarf2_read_section): Take an asection* argument.
9781 Relocate the section contents if necessary.
9782 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9783 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9784 it to dwarf2_read_section.
9785 (dwarf2_build_frame_info): Update callers.
9786 * elfread.c (elf_symfile_read): Update call to
9787 elfstab_build_psymtabs.
9788 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9789 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9790 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9791 * symfile.c (symfile_dummy_outputs): New function.
9792 (symfile_relocate_debug_section): New function.
9793 * symfile.h (symfile_relocate_debug_section): Add prototype.
9794
87d1b352
RH
97952003-01-31 Richard Henderson <rth@redhat.com>
9796
9797 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9798 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9799 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9800 * alpha-tdep.c (alpha_register_name): Add "unique".
9801 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9802 (ALPHA_UNIQUE_REGNUM): New.
9803 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9804
c48861fb
AC
98052003-01-31 Andrew Cagney <ac131313@redhat.com>
9806
9807 * README: Remove reference to Ericsson 1800 monitor.
9808 * Makefile.in (remote-es.o): Delete rule.
9809 (ALLDEPFILES): Delete remote-es.c.
9810 * remote-es.c: Delete file.
9811 * config/m68k/es1800.mt: Delete file.
9812 * config/djgpp/fnchange.lst: Update.
9813 * configure.tgt: Delete m68*-ericsson-* target.
9814
d764a824
AF
98152003-01-31 Adam Fedor <fedor@gnu.org>
9816
9817 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9818 Remove duplicate/shadowing variable of same name.
9819
fe36c4f4
JB
98202003-01-30 Jim Blandy <jimb@redhat.com>
9821
9822 * symfile.c (find_separate_debug_file): Assert that the objfile's
9823 directory name we compute ends with a slash, and then assume that
9824 that's so everywhere we use it.
9825
cb741690
DJ
98262003-01-30 Daniel Jacobowitz <drow@mvista.com>
9827
9828 * valops.c (value_assign): Flush frame cache after stores to memory
9829 also.
9830
96ee5227
AC
98312003-01-30 Andrew Cagney <ac131313@redhat.com>
9832
9833 * Makefile.in (mon960-rom.o): Delete rule.
9834 * mon960-rom.c: Delete file.
9835
7f6104a9
AC
98362003-01-30 Andrew Cagney <ac131313@redhat.com>
9837
9838 * d10v-tdep.c: Include "frame-unwind.h".
9839 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9840 list.
9841 (next_addr, uses_frame): Delete.
9842 (struct d10v_unwind_cache): Define.
9843 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9844 Use info instead of next_addr and uses_frame globals.
9845 (d10v_frame_init_saved_regs): Delete function.
9846 (d10v_init_extra_frame_info): Delete function.
9847 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9848 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9849 init_frame_pc or frame_saved_pc.
9850 (d10v_pop_frame): Delete function.
9851 (do_d10v_pop_frame): Delete function.
9852 (d10v_frame_chain): Delete function.
9853 (d10v_frame_chain_valid): Delete function.
9854 (d10v_frame_pc_unwind): New function.
9855 (d10v_frame_id_unwind): New function.
9856 (saved_regs_unwinder): New function.
9857 (d10v_frame_register_unwind): New function.
9858 (d10v_frame_pop): New function.
9859 (d10v_frame_unwind): New variable.
9860 (d10v_frame_p): New function.
9861 (d10v_frame_saved_pc): Delete function.
9862 * Makefile.in (d10v-tdep.o): Update dependencies.
9863
cad2e848
JB
98642003-01-30 J. Brobecker <brobecker@gnat.com>
9865
9866 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9867 causing some regressions due to a change in the default value
9868 for this macro.
9869
af34e669
DJ
98702003-01-29 Richard Henderson <rth@redhat.com>
9871 Elena Zannoni <ezannoni@redhat.com>
9872 Daniel Jacobowitz <drow@mvista.com>
9873
9874 Fix PR gdb/961.
8ffd9b1b 9875 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9876 variables.
9877 (RANGES_SECTION): New.
9878 (dwarf_ranges_buffer): New variable.
9879 (struct comp_unit_head): Add member "die".
9880 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9881 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9882 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9883 (dwarf2_locate_sections): Likewise.
9884 (dwarf2_build_psymtabs): Read .debug_ranges.
9885 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9886 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9887 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9888 Look for DW_AT_ranges and return the bounding box.
9889
baa93fa6
CF
98902003-01-29 Brian Ford <ford@vss.fsi.com>
9891
9892 * win32-nat.c (cygwin_pid): Removed as unused.
9893 (child_attach): Try fall back to Cygwin pid.
9894
c63f977f
JB
98952003-01-29 Jim Blandy <jimb@redhat.com>
9896
9897 * objfiles.h (struct objfile): Doc fix.
9898
d62d1979
AC
98992003-01-29 Andrew Cagney <ac131313@redhat.com>
9900
9901 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9902 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9903 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9904 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9905 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9906 (FRAME_SAVED_PC): Change to a function with predicate.
9907 * gdbarch.h, gdbarch.c: Re-generate.
9908
1ae18a04
AC
99092003-01-28 Andrew Cagney <ac131313@redhat.com>
9910
52287340
AC
9911 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9912
1ae18a04
AC
9913 * complaints.c (complain): Delete function.
9914 * complaints.h (struct deprecated_complaint): Delete definition.
9915 (complain): Delete declaration.
9916
f2c16bd6
KB
99172003-01-28 Kevin Buettner <kevinb@redhat.com>
9918
9919 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9920 dummy frames.
9921
a94dd1fd
AC
99222003-01-27 Andrew Cagney <ac131313@redhat.com>
9923
9924 * sentinel-frame.h, sentinel-frame.c: New files.
9925 * Makefile.in (frame.o): Update dependencies.
9926 (SFILES): Add sentinel-frame.c.
9927 (sentinel_frame_h): Define.
9928 (COMMON_OBS): Add sentinel-frame.o.
9929 (sentinel-frame.o): Specify dependencies.
9930 * frame.c: Include "sentinel-frame.h".
9931 (frame_register_unwind): Rewrite assuming that there is always a a
9932 ->next frame.
9933 (frame_register, generic_unwind_get_saved_register): Ditto.
9934 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9935 (create_sentinel_frame, unwind_to_current_frame): New functions.
9936 (get_current_frame): Rewrite using create_sentinel_frame and
9937 unwind_to_current_frame. When possible, always create a frame.
9938 (create_new_frame): Set next to the sentinel frame.
9939 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9940 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9941 ID cache when necessary.
9942 (frame_saved_regs_id_unwind): Use frame_relative_level.
9943 (deprecated_generic_get_saved_register): Use frame_relative_level,
9944 get_frame_saved_regs, get_frame_pc, get_frame_base and
9945 get_next_frame.
9946 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9947 frame_register.
9948
5378adc4
DJ
99492003-01-27 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9952
51ee2ddc
DJ
99532003-01-27 Daniel Jacobowitz <drow@mvista.com>
9954
9955 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9956 (maintenance_set_profile_cmd): Use error () instead of warning ().
9957
d9feb4e7
DJ
99582003-01-27 Daniel Jacobowitz <drow@mvista.com>
9959
9960 * configure.in: Check that -pg works if using --enable-profiling.
9961 Check for monstartup and _mcleanup regardless of --enable-profiling.
9962 * maint.c: Check for monstartup and _mcleanup before using them.
9963 * config.in: Regenerated.
9964 * configure: Regenerated.
9965
2d188dd3
NC
99662003-01-24 Nick Clifton <nickc@redhat.com>
9967
9968 * Add sh2e support:
9969
9970 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9971
9972 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9973 (sh2e_show_regs): New.
9974 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9975 * config/sh/tm-sh.h: Added sh2e to comments.
9976
cb3c37b2
JB
99772003-01-23 Jim Blandy <jimb@redhat.com>
9978
9979 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9980 symbols found)" message here; we haven't checked for a separate
9981 debug info file yet, so we don't know yet.
9982 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9983 we've looked everywhere. Also, there's no need to print a special
9984 message when we're loading the separate debug info file: the one
9985 symbol_file_add prints is fine.
9986
5b5d99cf
JB
99872003-01-23 Alexander Larsson <alexl@redhat.com>
9988 Jim Blandy <jimb@redhat.com>
9989
9990 Add support for executables whose debug info has been separated
9991 out into a separate file, leaving only a link behind.
9992 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9993 and separate_debug_objfile_backlink.
9994 (put_objfile_before): New declaration.
9995 * symfile.c: #include "filenames.h".
9996 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9997 debug info in a separate file, read that, too. Save the addrs
9998 argument, so we can use it again to read the separated debug info;
9999 syms_from_objfile modifies the table we pass it.
10000 (reread_symbols): After re-reading an objfile, call
10001 reread_separate_symbols to refresh its separate debug info
10002 objfile, if it has one.
10003 (reread_separate_symbols, find_separate_debug_file,
10004 get_debug_link_info, separate_debug_file_exists): New functions.
10005 (debug_file_directory): New global var.
10006 (_initialize_symfile): Initialize debug_file_directory, and
10007 provide the new `set debug-file-directory' command to let the user
10008 change it.
10009 * objfiles.c (free_objfile): If this objfile has its debug info in
10010 a separate objfile, free that one too. If this is itself a
10011 separate debug info objfile, clear our parent's backlink.
10012 (put_objfile_before): New function.
10013 * utils.c (gnu_debuglink_crc32): New function.
10014 * defs.h (gnu_debuglink_crc32): New declaration.
10015 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10016 * configure.in: Handle --with-separate-debug-dir config option.
10017 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10018 * acconfig.h (DEBUGDIR): New macro.
10019 * configure, aclocal.m4, config.in: Regenerated.
10020
7e8580c1
JB
100212003-01-22 Jim Blandy <jimb@redhat.com>
10022
7904e09f
JB
10023 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10024 like the old symbol_file_add, but taking new arguments: you can
10025 now pass in either a `struct section_addr_info' list to say where
10026 each section is loaded, or a `struct section_offsets' table. Pass
10027 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10028 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10029 with the appropriate quiescent values for the new arguments.
10030
7e8580c1
JB
10031 * symfile.c: #include "gdb_assert.h".
10032 (syms_from_objfile): Add the ability to pass in a section offset
10033 table directly, as an alternative to the section_addr_info table.
10034 Document arguments better.
10035 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10036 * symfile.h (syms_from_objfile): Update declaration.
10037 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10038 syms_from_objfile.
10039 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10040
d28f9cdf
DJ
100412003-01-22 Daniel Jacobowitz <drow@mvista.com>
10042
10043 Original patch by Tom Tromey <tromey@cygnus.com> and
10044 Jason Molenda <jmolenda@apple.com>.
10045 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10046 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10047 * NEWS: Mention profiling.
10048 * configure.in (--enable-gdbtk): Fix typo.
10049 (--enable-profiling): New. Set PROFILE_CFLAGS.
10050 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10051 Fill in function.
10052 (profiling_state): New variable.
10053 (mcleanup_wrapper): New function.
10054 (_initialize_maint): Remove NOTYET, fix call to
10055 add_setshow_boolean_cmd for "maint set profile".
10056 * configure: Regenerated.
10057
df21e465
MH
100582003-01-21 Martin M. Hunt <hunt@redhat.com>
10059
10060 * Makefile.in (install-gdbtk): Install PNG images too.
10061
73c1f219
AC
100622003-01-21 Andrew Cagney <ac131313@redhat.com>
10063
10064 * exec.c (text_start): Delete global variable.
10065 (exec_file_attach): Make text_start local to the function.
10066 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10067 * valops.c (hand_function_call): Delete code that handles
10068 BEFORE_TEXT_END and AFTER_TEXT_END.
10069 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10070 of CALL_DUMMY_LOCATION.
10071 * gdbarch.c: Regenerate.
10072 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10073 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10074 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10075 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10076 (text_end): Delete extern declaration.
10077
eb4f72c5
AC
100782003-01-21 Andrew Cagney <ac131313@redhat.com>
10079
10080 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10081 * blockframe.c (backtrace_below_main): Move to "frame.c".
10082 (frame_chain_valid): Delete check for backtrace_below_main.
10083 (_initialize_blockframe): Delete initialization, move ``set
10084 backtrace-below-main'' command to "frame.c".
10085 (do_flush_frames_sfunc): Delete function.
10086 * frame.c: Include "command.h" and "gdbcmd.h".
10087 (frame_type_from_pc): New function.
10088 (create_new_frame): Use frame_type_from_pc.
10089 (legacy_get_prev_frame): New function.
10090 (get_prev_frame): Rewrite. When an old style frame, call
10091 legacy_get_prev_frame. Otherwize, unwind the PC first.
10092 (_initialize_frame): Add ``set backtrace-below-main'' command.
10093 * Makefile.in (frame.o): Update dependencies.
10094
778ce8cc
AC
100952003-01-19 Andrew Cagney <ac131313@redhat.com>
10096
10097 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10098 DEPRECATED_REGISTERS_INFO.
10099
01c193c8
AC
101002003-01-19 Andrew Cagney <ac131313@redhat.com>
10101
10102 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10103 Maintainers'. Update `Various Maintainers'.
10104
dedc2a2b
AC
101052003-01-19 Andrew Cagney <ac131313@redhat.com>
10106
10107 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10108 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10109 Suppress actual parameters when `-'.
10110 * gdbarch.h, gdbarch.c: Regenerate.
10111
b7261c70
AC
101122003-01-19 Andrew Cagney <ac131313@redhat.com>
10113
10114 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10115 code handling dummy frames.
10116
dbe9fe58
AC
101172003-01-19 Andrew Cagney <ac131313@redhat.com>
10118
10119 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10120 (struct frame_unwind): Add field pop.
10121 * frame.h (frame_pop): Declare.
10122 * frame.c (frame_saved_regs_pop): New function.
10123 (trad_frame_unwinder): Add frame_saved_regs_pop.
10124 (frame_pop): New function.
10125 * dummy-frame.c (dummy_frame_pop): New function.
10126 (discard_innermost_dummy): New function.
10127 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10128 (dummy_frame_unwind): Add dummy_frame_pop.
10129 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10130 * valops.c (hand_function_call): Ditto.
10131 * stack.c (return_command): Ditto.
10132
570b8f7c
AC
101332003-01-18 Andrew Cagney <ac131313@redhat.com>
10134
10135 * cris-tdep.c: Fix function declaration indentation.
10136 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10137 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10138 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10139 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10140 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10141 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10142
101432003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10144
10145 * README (Unpacking and Installation -- quick overview):
10146 Warn against ".../gdb-5.3/gdb/configure".
10147
494cca16
AC
101482003-01-18 Andrew Cagney <ac131313@redhat.com>
10149
10150 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10151 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10152 (struct frame_unwind): Declare opaque.
10153 (dummy_frame_p): Declare function.
10154 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10155 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10156 * dummy-frame.c: Include "frame-unwind.h".
10157 (dummy_frame_p): New function.
10158 (dummy_frame_unwind): New variable.
10159 * frame.c: Include "frame-unwind.h".
10160 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10161 to use the new unwind field.
10162 (set_unwind_by_pc): Delete function.
10163 (create_new_frame, get_prev_frame): Set unwind field using
10164 frame_unwind_find_by_pc.
10165 (trad_frame_unwind, trad_frame_unwinder): New variables.
10166 * frame.h (trad_frame_unwind): Declare variable.
10167 (frame_id_unwind_ftype): Delete declaration.
10168 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10169 (struct frame_unwind): Declare opaque.
10170 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10171 register_unwind with a single unwind pointer.
10172 * frame-unwind.h, frame-unwind.c: New files.
10173 * Makefile.in (SFILES): Add frame-unwind.c.
10174 (frame_unwind_h): Define.
10175 (COMMON_OBS): Add frame-unwind.o.
10176 (frame-unwind.o): Specify dependencies.
10177 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10178
4efb68b1
AC
101792003-01-18 Andrew Cagney <ac131313@redhat.com>
10180
10181 * ada-valprint.c: Eliminate PTR.
10182 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10183 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10184 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10185 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10186 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10187 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10188 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10189
a84d24ee
AC
101902003-01-17 Andrew Cagney <ac131313@redhat.com>
10191
762f08a3
AC
10192 * main.c (captured_main): Don't use PTR.
10193 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10194 * gdbtypes.c (lookup_primitive_typename): Ditto.
10195 (lookup_struct_elt_type): Ditto.
10196 * f-valprint.c (info_common_command): Ditto.
10197 (list_all_visible_commons): Ditto.
10198 * jv-typeprint.c (java_type_print_base): Ditto.
10199
a84d24ee
AC
10200 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10201 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10202 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10203 i386-interix-nat.c and i386-interix-tdep.c. Rename
10204 m68klinux-nat.c and m68klinux-tdep.c. Rename
10205 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10206 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10207 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10208 * main.c (captured_main): Use xfree, not free.
10209
c170fb60
AC
102102003-01-16 Andrew Cagney <ac131313@redhat.com>
10211
10212 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10213 ID back using a parameter.
10214 * frame.c (frame_id_unwind): Update call.
10215 (frame_saved_regs_id_unwind): Update.
10216 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10217 * dummy-frame.h (struct frame_id): Add opaque declaration.
10218 (dummy_frame_id_unwind): Update declaration.
10219
867f3898
AC
102202003-01-15 Andrew Cagney <ac131313@redhat.com>
10221
10222 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10223
40622be8 102242003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10225
40622be8 10226 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10227
ae66c1fc
EZ
102282003-01-14 Elena Zannoni <ezannoni@redhat.com>
10229
997b089a 10230 Fix PR gdb/898
ae66c1fc
EZ
10231 * breakpoint.c (until_break_command): Add new argument. Use it to
10232 decide whether to stop only at the current frame or not.
10233 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10234 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10235 call.
10236 (advance_command): New function.
10237 (_initialize_infcmd): Update help string for 'until' command.
10238 Add new 'advance' command.
10239
a04257e6
DC
102402003-01-14 David Carlton <carlton@math.stanford.edu>
10241
10242 * linespec.c (decode_line_1): Normalize comments.
10243 (set_flags): Ditto.
10244 (locate_first_half): Ditto.
10245 (decode_compound): Ditto.
10246 (symtab_from_filename): Ditto.
10247 (decode_all_digits): Ditto.
10248 (decode_dollar): Ditto.
10249 (find_methods): Ditto.
10250 (find_toplevel_char): Ditto.
10251
1bac305b
AC
102522003-01-13 Andrew Cagney <ac131313@redhat.com>
10253
10254 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10255 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10256 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10257 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10258 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10259 * language.c, language.h, m32r-tdep.c: Update copyright.
10260 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10261 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10262 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10263 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10264 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10265 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10266
25caa7a8
EZ
102672003-01-13 Elena Zannoni <ezannoni@redhat.com>
10268
10269 * stabsread.h (process_later, resolve_cfront_continuation):
10270 Obsolete.
10271 Update copyright years.
10272 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10273 Update copyright year.
10274 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10275 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10276 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10277 Update copyright year.
10278 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10279 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10280 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10281 (parse_partial_symbols): Obsolete cfront support.
10282 * stabsread.c
10283 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10284 macros.
10285 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10286 read_cfront_baseclasses, read_cfront_member_functions,
10287 resolve_cfront_continuation,read_cfront_static_fields,
10288 copy_cfront_struct_fields): Obsolete functions.
10289 (define_symbol, read_one_struct_field): Obsolete cfront support.
10290 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10291 Update Copyright year.
10292
7789c6f5
EZ
102932003-01-13 Elena Zannoni <ezannoni@redhat.com>
10294
10295 * stack.c (print_frame_info, print_stack_frame_base_stub,
10296 print_stack_frame_base, show_and_print_stack_frame_stub,
10297 show_and_print_stack_frame, print_only_stack_frame_stub,
10298 print_only_stack_frame): Delete functions.
10299 (print_stack_frame_stub): Call print_frame_info instead of
10300 print_frame_info_base.
10301 (print_frame_info_base): Rename to print_frame_info.
10302 (backtrace_command_1): Call print_frame_info, instead of
10303 print_frame_info_base.
10304 (current_frame_command): Call print_stack_frame, instead of
10305 print_only_stack_frame.
10306 (frame_command): Call print_stack_frame, instead of
10307 show_and_print_stack_frame.
10308 (up_command): Ditto.
10309 (down_command): Ditto.
10310 * frame.h (print_only_stack_frame): Delete prototype.
10311 * infrun.c (normal_stop): Call print_stack_frame, instead of
10312 show_and_print_stack_frame.
10313 * thread.c (info_threads_command): Call print_stack_frame, instead
10314 of print_only_stack_frame.
10315
3f5a3016
AC
103162003-01-13 Andrew Cagney <ac131313@redhat.com>
10317
d99ba314
AC
10318 * README (Graphical interface to GDB): Update URL. Point at
10319 gdb/links/.
10320
3f5a3016
AC
10321 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10322 version match.
10323
083ae935
DJ
103242003-01-13 Daniel Jacobowitz <drow@mvista.com>
10325
10326 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10327 lines.
10328
5365276c
DJ
103292003-01-13 Daniel Jacobowitz <drow@mvista.com>
10330
10331 * thread-db.c (attach_thread): Prototype.
10332 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10333 thread information (ti), and valid flags (th_valid, ti_valid).
10334 (attach_thread): Move target_pid_to_str call to after the thread
10335 is added to GDB's list. Initialize the cache.
10336 (thread_get_info_callback, thread_db_map_id2thr)
10337 (thread_db_get_info): New functions.
10338 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10339 (thread_db_store_registers, thread_db_thread_alive)
10340 (thread_db_get_thread_local_address): Use them.
10341 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10342 of calling error() for threads in unknown state.
10343
10344 (clear_lwpid_callback): New function.
10345 (thread_db_resume): Use it to clear the cache.
10346
9fc30b6b
DJ
103472003-01-13 Daniel Jacobowitz <drow@mvista.com>
10348
10349 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10350 (resume_callback): Remove dead code.
10351
8f871025
AC
103522003-01-13 Andrew Cagney <ac131313@redhat.com>
10353
10354 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10355 predicate.
10356 * gdbarch.h, gdbarch.c: Regenerate.
10357 * stack.c (frame_info): Only initialize the saved registers when
10358 FRAME_INIT_SAVED_REGS_P.
10359 * frame.c (frame_saved_regs_register_unwind): Assert
10360 FRAME_INIT_SAVED_REGS_P.
10361 (deprecated_generic_get_saved_register): Ditto.
10362
3f565f1e
DJ
103632003-01-13 Daniel Jacobowitz <drow@mvista.com>
10364
10365 * source.c (openp): Squelch warning about "filename".
10366
072b1022
DJ
103672003-01-13 Daniel Jacobowitz <drow@mvista.com>
10368
10369 * source.c (openp): If the file does not exist don't necessarily
10370 search the path.
10371
973ccf8b
DJ
103722003-01-13 Daniel Jacobowitz <drow@mvista.com>
10373
10374 Fix PR gdb/872.
10375 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10376 (integer_types_same_name_p): New function.
10377 (rank_one_type): Use it.
10378 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10379
030292b7
DJ
103802003-01-13 Daniel Jacobowitz <drow@mvista.com>
10381
10382 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10383 variables.
10384 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10385 * configure.in: Add --with-sysroot.
10386 * configure: Regenerated.
10387 * main.c (gdb_sysroot): New variable.
10388 (captured_main): Initialize gdb_sysroot.
10389 * defs.h (gdb_sysroot): New extern declaration.
10390 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10391
afb5d334
MC
103922003-01-12 Michael Chastain <mec@shout.net>
10393
10394 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10395
751ceeb4
MC
103962003-01-12 Michael Chastain <mec@shout.net>
10397
10398 * top.c (print_gdb_version): Bump copyright year to 2003.
10399
94cd26f8
DC
104002003-01-12 David Carlton <carlton@bactrian.org>
10401
10402 * linespec.c (symtab_from_filename): Rename variable 's' to
10403 'file_symtab'.
10404
1ce79225
AC
104052003-01-12 Andrew Cagney <ac131313@redhat.com>
10406
10407 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10408 dummy frame.
10409 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10410
fa1fd571
AC
104112003-01-12 Andrew Cagney <ac131313@redhat.com>
10412
10413 * d10v-tdep.c: Include "gdb_assert.h".
10414 (d10v_store_return_value): Rewrite to match current interface.
10415 (d10v_extract_struct_value_address): Ditto.
10416 (d10v_extract_return_value): Ditto.
10417 (d10v_gdbarch_init): Set store_restore_value,
10418 extract_struct_value_address and extract_return_value.
10419
68b8d23e
JB
104202003-01-12 J. Brobecker <brobecker@gnat.com>
10421
10422 * hpread.c (set_namestring): New procedure replacing the
10423 SET_NAMESTRING macro.
10424 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10425 by calls to set_namestring.
10426
104272003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10428
10429 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10430 a compilation warning.
10431 (hpread_process_one_debug_symbol): Likewise.
10432
88d262ca
DC
104332003-01-10 David Carlton <carlton@math.stanford.edu>
10434
10435 * linespec.c (decode_line_1): Rename variable 's' to
10436 'file_symtab'.
10437 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10438 (decode_dollar): Ditto.
10439 (decode_variable): Ditto.
10440 (symbol_found): Ditto.
10441
86669319
MC
104422003-01-09 Michael Chastain <mec@shout.net>
10443
10444 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10445
616a9dc4
CV
104462003-01-07 Corinna Vinschen <vinschen@redhat.com>
10447
10448 * win32-nat.c (set_process_privilege): New function.
10449 (child_attach): Call set_process_privilege() to enable the
10450 SE_DEBUG_NAME user privilege if available in process token.
10451
3269bcfa
JB
104522003-01-10 J. Brobecker <brobecker@gnat.com>
10453
10454 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10455 compilation error in the previous revision.
10456
2b0ee454
DC
104572003-01-09 David Carlton <carlton@math.stanford.edu>
10458
10459 * linespec.c: Update copyright.
10460
b3ba1b44
DJ
104612003-01-09 Daniel Jacobowitz <drow@mvista.com>
10462
10463 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10464 than inferior_ptid.
10465 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10466
4ef3f3be
AC
104672003-01-09 Andrew Cagney <ac131313@redhat.com>
10468
479ab5a0
AC
10469 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10470 Update comments.
10471 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10472 (frame_saved_regs_zalloc): Update.
10473 (frame_saved_regs_register_unwind): Update.
10474 (create_new_frame): Update.
10475 (get_prev_frame): Update.
10476 (frame_extra_info_zalloc): Update.
10477 (deprecated_get_frame_saved_regs): Update.
10478 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10479 * cris-tdep.c: Update comment.
10480
bde58177
AC
10481 * somsolib.h: Fix function indentation.
10482 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10483 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10484 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10485 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10486 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10487
4ef3f3be
AC
10488 * infrun.c (follow_fork): Use ISO C definition.
10489 * expprint.c (print_subexp): Use xfree instead of free.
10490 * charset.c: Include "gdb_string.h" instead of <string.h>.
10491 (register_iconv_charsets): Use ISO C definition.
10492 (host_charset, target_charset): Ditto.
10493 * Makefile.in (charset.o): Update dependencies.
10494 (mi-cmd-env.o): Update dependencies.
10495
1c615f7a
AC
104962003-01-08 Andrew Cagney <cagney@redhat.com>
10497
10498 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10499 get_frame_base.
10500
c9a1dc08
AC
105012003-01-08 Andrew Cagney <ac131313@redhat.com>
10502
10503 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10504 build directories. Save edited gdb output in Mbuild.log. If a
10505 build fails, remove any final GDB executable.
10506
dbad9d94
AC
105072003-01-08 Andrew Cagney <ac131313@redhat.com>
10508
10509 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10510 replacing hex constants with function names and stripping leading
10511 file name directory prefixes.
10512
8d357cca
AC
105132003-01-08 Andrew Cagney <cagney@redhat.com>
10514
10515 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10516 get_frame_base.
10517
bca02a8a
DC
105182003-01-08 David Carlton <carlton@math.stanford.edu>
10519
10520 * linespec.c (decode_line_1): Move code into decode_variable.
10521 (decode_variable): New function.
10522
7f8ab3a0
AC
105232003-01-08 Andrew Cagney <ac131313@redhat.com>
10524
10525 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10526
7b5849cc
AC
105272003-01-08 Andrew Cagney <cagney@redhat.com>
10528
10529 * cris-tdep.c (cris_frame_init_saved_regs): Use
10530 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10531 saved_regs buffer.
10532 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10533 (sh64_nofp_frame_init_saved_regs): Ditto.
10534 (sh_fp_frame_init_saved_regs): Ditto.
10535 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10536 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10537 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10538 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10539
72a5efb3
DJ
105402003-01-08 Daniel Jacobowitz <drow@mvista.com>
10541
10542 * minsyms.c (lookup_minimal_symbol): Update comment.
10543 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10544 (lookup_minimal_symbol_solib_trampoline): Likewise.
10545
11c02a10
AC
105462003-01-08 Andrew Cagney <cagney@redhat.com>
10547
aab3ea25
AC
10548 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10549 frame_relative_level.
10550
da50a4b7
AC
10551 * alpha-tdep.c: Use get_frame_extra_info.
10552 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10553 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10554 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10555 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10556
11c02a10
AC
10557 * alpha-tdep.c: Use get_next_frame.
10558 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10559 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10560 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10561 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10562 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10563 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10564 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10565
1e2330ba
AC
105662003-01-07 Andrew Cagney <cagney@redhat.com>
10567
10568 * alpha-tdep.c: Use get_frame_base.
10569 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10570 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10571 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10572 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10573 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10574 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10575 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10576 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10577
2d75187b
AC
105782003-01-07 Andrew Cagney <cagney@redhat.com>
10579
10580 * frame.c (deprecated_get_frame_context): New function.
10581 (deprecated_set_frame_context): New function.
10582 * frame.h (deprecated_get_frame_context): Declare.
10583 (deprecated_set_frame_context): Declare.
10584 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10585 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10586
483d36b2
AC
105872003-01-07 Andrew Cagney <cagney@redhat.com>
10588
10589 * frame.c (deprecated_set_frame_next_hack): New function.
10590 (deprecated_set_frame_prev_hack): New function.
10591 * frame.h (deprecated_set_frame_next_hack): Declare.
10592 (deprecated_set_frame_prev_hack): Declare.
10593 * mcore-tdep.c (analyze_dummy_frame): Use
10594 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10595 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10596
14e91ac5
DC
105972003-01-07 David Carlton <carlton@math.stanford.edu>
10598
10599 * linespec.c (decode_line_1): Move code into decode_dollar.
10600 (decode_dollar): New function.
10601
b0c6b05c
AC
106022003-01-07 Andrew Cagney <cagney@redhat.com>
10603
10604 * arm-tdep.c (arm_init_extra_frame_info): Use
10605 deprecated_update_frame_base_hack.
10606 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10607 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10608 (fix_frame_pointer): Ditto.
10609 (mn10300_analyze_prologue): Ditto.
10610
a00a19e9
AC
106112003-01-07 Andrew Cagney <cagney@redhat.com>
10612
10613 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10614 extra_info using frame_extra_info_zalloc.
10615 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10616 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10617 (sh64_init_extra_frame_info): Ditto.
10618 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10619 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10620 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10621 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10622 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10623 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10624 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10625 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10626 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10627 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10628 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10629 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10630
10631 * mn10300-tdep.c (analyze_dummy_frame): Use
10632 deprecated_set_frame_extra_info_hack.
10633 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10634
1fb4c65b
JB
106352003-01-07 J. Brobecker <brobecker@gnat.com>
10636
10637 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10638 class is not scText. These do not define "real" procedures.
10639 (parse_partial_symbols): Likewise.
10640
9fe7d6bf
MS
106412003-01-06 Michael Snyder <msnyder@redhat.com>
10642
10643 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10644
f6c609c4
AC
106452003-01-06 Andrew Cagney <ac131313@redhat.com>
10646
10647 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10648 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10649 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10650 deprecated_frame_xmalloc_with_cleanup.
10651 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10652 deprecated_frame_xmalloc.
10653 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10654 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10655
d995ff4b
AC
106562003-01-06 Andrew Cagney <cagney@redhat.com>
10657
84dc46cb
AC
10658 * x86-64-linux-tdep.c: Include "osabi.h".
10659 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10660
d995ff4b
AC
10661 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10662
66140c26
AC
106632003-01-06 Andrew Cagney <cagney@redhat.com>
10664
10665 * MAINTAINERS (Target Instruction Set Architectures): Update
10666 arm-elf. Can be built with -Werror, has been multiarched.
10667
10668 * value.h (unpack_long): Make buffer parameter constant.
10669 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10670 * scm-lang.h (scm_parse): Ditto.
10671 * defs.h (extract_typed_address, extract_address): Ditto.
10672 (extract_long_unsigned_integer): Ditto.
10673 * inferior.h (unsigned_pointer_to_address): Ditto.
10674 (signed_pointer_to_address): Ditto.
10675 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10676 * gdbarch.h, gdbarch.c: Regenerate.
10677 * findvar.c (extract_long_unsigned_integer): Update.
10678 (extract_address): Update.
10679 (extract_typed_address): Update.
10680 (unsigned_pointer_to_address): Update.
10681 * values.c (unpack_long): Update.
10682 (unpack_double): Update.
10683 (unpack_pointer): Update.
10684 (unpack_field_as_long): Update.
10685 * d10v-tdep.c (d10v_pointer_to_address): Update.
10686 * avr-tdep.c (avr_pointer_to_address): Update.
10687 * scm-lang.c (scm_unpack): Update.
10688 * findvar.c (signed_pointer_to_address): Update.
10689
b089b3da
ML
106902003-01-06 Michal Ludvig <mludvig@suse.cz>
10691
8ffd9b1b 10692 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10693 since it is in i386-tdep.c.
10694
aff87235
JB
106952003-01-06 J. Brobecker <brobecker@gnat.com>
10696
10697 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10698 failure introduced in the previous change.
10699
34f5e845
MC
107002003-01-05 Michael Chastain <mec@shout.net>
10701
10702 * README: Remove references to deleted remote-*.c files:
10703 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10704 remote-nrom.c, remote-os9k.c, remote-udi.c.
10705
28bcfd30
MK
107062003-01-05 Mark Kettenis <kettenis@gnu.org>
10707
10708 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10709 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10710 i386_get_longjmp_target.
10711
15a5b3ee
AC
107122003-01-05 Andrew Cagney <ac131313@redhat.com>
10713
10714 * arm-tdep.c (prologue_cache): Change to a pointer.
10715 (_initialize_arm_tdep): Allocate prologue_cache.
10716 (check_prologue_cache): Update.
10717 (save_prologue_cache): Update.
10718 (arm_gdbarch_init): Update.
10719
c263362b
DJ
107202003-01-04 Daniel Jacobowitz <drow@mvista.com>
10721
10722 * stabsread.c (update_method_name_from_physname): Call complaint()
10723 instead of error.
10724
51603483
DJ
107252003-01-04 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10728 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10729 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10730
10731 * blockframe.c: Include "gdbcmd.h" and "command.h".
10732 (backtrace_below_main): New variable.
10733 (file_frame_chain_valid, func_frame_chain_valid)
10734 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10735 (generic_func_frame_chain_valid): Remove functions.
10736 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10737 (_initialize_blockframe): New function.
10738 * Makefile.in (blockframe.o): Update dependencies.
10739 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10740 comment. Call frame_chain_valid ().
10741 * frame.h: Remove old prototypes. Add prototype for
10742 frame_chain_valid and update comments to match.
10743 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10744 Remove old comment.
10745 * gdbarch.h: Regenerated.
10746 * gdbarch.c: Regenerated.
10747
10748 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10749 set_gdbarch_frame_chain_valid.
10750 * avr-tdep.c (avr_gdbarch_init): Likewise.
10751 * cris-tdep.c (cris_gdbarch_init): Likewise.
10752 * frv-tdep.c (frv_gdbarch_init): Likewise.
10753 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10754 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10755 (i386_nw_init_abi): Likewise.
10756 (i386_gdbarch_init): Likewise.
10757 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10759 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10760 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10761 * mips-tdep.c (mips_gdbarch_init): Likewise.
10762 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10763 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10764 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10765 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10766 * s390-tdep.c (s390_gdbarch_init): Likewise.
10767 * sh-tdep.c (sh_gdbarch_init): Likewise.
10768 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10769 * v850-tdep.c (v850_gdbarch_init): Likewise.
10770 * vax-tdep.c (vax_gdbarch_init): Likewise.
10771 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10772
10773 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10774 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10775 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10776 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10777 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10778 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10779 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10780 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10781
b00a8037
DJ
107822002-01-04 Daniel Jacobowitz <drow@mvista.com>
10783
10784 * Makefile.in (acconfig_h): Remove incorrect macro.
10785 (config_h): Define.
10786 (osabi.o): Update dependencies.
10787 * configure.tgt: Set gdb_osabi based on target triplet.
10788 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10789 * configure: Regenerated.
10790 * config.in: Regenerated.
10791 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10792 (GDB_OSABI_DEFAULT): Define if not already defined.
10793 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10794 (set_osabi_string): New variables.
10795 (gdbarch_register_osabi): Add new OS ABI to
10796 gdb_osabi_available_names.
10797 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10798 (set_osabi, show_osabi): New functions.
10799 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10800
4be87837
DJ
108012003-01-04 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * arch-utils.c (gdbarch_info_init): Set osabi to
10804 GDB_OSABI_UNINITIALIZED.
10805 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10806 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10807 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10808 * gdbarch.c: Regenerated.
10809 * gdbarch.h: Regenerated.
10810 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10811 there's no BFD.
10812 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10813 * osabi.h (enum gdb_osabi): Move to defs.h.
10814 (gdbarch_init_osabi): Update prototype.
10815 * defs.h (enum gdb_osabi): Moved here.
10816 * Makefile.in: Update dependencies.
10817
10818 * alpha-tdep.h: Don't include "osabi.h".
10819 (struct gdbarch_tdep): Remove osabi member.
10820 * alpha-tdep.c: Include "osabi.h".
10821 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10822 iterate over arches. Update call to gdbarch_init_osabi.
10823 (alpha_dump_tdep): Don't dump osabi.
10824 * alpha-linux-tdep.c: Include "osabi.h".
10825 * alpha-osf1-tdep.c: Include "osabi.h".
10826 * alphafbsd-tdep.c: Include "osabi.h".
10827 * alphanbsd-tdep.c: Include "osabi.h".
10828
10829 * arm-tdep.h: Don't include "osabi.h".
10830 (struct gdbarch_tdep): Remove osabi member.
10831 * arm-tdep.c: Include "osabi.h".
10832 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10833 iterate over arches. Update call to gdbarch_init_osabi.
10834 (arm_dump_tdep): Don't dump osabi.
10835 * arm-linux-tdep.c: Include "osabi.h".
10836 * armnbsd-tdep.c: Include "osabi.h".
10837
10838 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10839 Update call to gdbarch_init_osabi.
10840
10841 * i386-tdep.h: Don't include "osabi.h".
10842 (struct gdbarch_tdep): Remove osabi member.
10843 * i386-tdep.c: Include "osabi.h".
10844 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10845 iterate over arches. Update call to gdbarch_init_osabi.
10846 (i386_dump_tdep): Don't dump osabi.
10847 * i386-linux-tdep.c: Include "osabi.h".
10848 * i386-sol2-tdep.c: Include "osabi.h".
10849 * i386bsd-tdep.c: Include "osabi.h".
10850 * i386gnu-tdep.c: Include "osabi.h".
10851 * i386ly-tdep.c: Include "osabi.h".
10852 * i386nbsd-tdep.c: Include "osabi.h".
10853 * i386obsd-tdep.c: Include "osabi.h".
10854
10855 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10856 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10857 check osabi when iterating over arches. Update call to
10858 gdbarch_init_osabi.
10859 (mips_dump_tdep): Don't dump osabi.
10860
10861 * ns32k-tdep.h: Don't include "osabi.h".
10862 (struct gdbarch_tdep): Remove.
10863 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10864 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10865 allocate tdep. Update call to gdbarch_init_osabi.
10866 (ns32k_dump_tdep): Remove.
10867 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10868 * ns32knbsd-tdep.c: Include "osabi.h".
10869
10870 * ppc-tdep.h: Don't include "osabi.h".
10871 (struct gdbarch_tdep): Remove osabi member.
10872 * rs6000-tdep.c: Include "osabi.h".
10873 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10874 osabi when iterating over arches. Update call to
10875 gdbarch_init_osabi.
10876 (rs6000_dump_tdep): Don't dump osabi.
10877 * ppc-linux-tdep.c: Include "osabi.h".
10878 * ppcnbsd-tdep.c: Include "osabi.h".
10879
10880 * sh-tdep.h: Don't include "osabi.h".
10881 (struct gdbarch_tdep): Remove osabi member.
10882 * sh-tdep.c: Include "osabi.h".
10883 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10884 iterate over arches. Update call to gdbarch_init_osabi.
10885 (sh_dump_tdep): Don't dump osabi.
10886 * shnbsd-tdep.c: Include "osabi.h".
10887
10888 * sparc-tdep.c: Include "osabi.h".
10889 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10890 iterate over arches. Update call to gdbarch_init_osabi.
10891 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10892 tdep structure.
10893
10894 * vax-tdep.h: Don't include "osabi.h".
10895 (struct gdbarch_tdep): Remove.
10896 * vax-tdep.c: Include "osabi.h".
10897 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10898 iterate over arches. Don't allocate tdep. Update call
10899 to gdbarch_init_osabi.
10900 (vax_dump_tdep): Remove.
10901 (_initialize_vax_tdep): Update call to gdbarch_register.
10902
a881cf8e
DJ
109032003-01-04 Daniel Jacobowitz <drow@mvista.com>
10904
10905 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10906 entirely.
10907 (breakpoint_re_set_one): Don't fetch the value for a disabled
10908 watchpoint.
10909
1e698235
DJ
109102003-01-04 Daniel Jacobowitz <drow@mvista.com>
10911
10912 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10913 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10914 (COERCE_FLOAT_TO_DOUBLE): Remove.
10915 * gdbarch.c: Regenerate.
10916 * gdbarch.h: Regenerate.
10917 * Makefile.in: Remove value_h from gdbarch_h.
10918 * valops.c (coerce_float_to_double): New variable.
10919 (default_coerce_float_to_double): Remove.
10920 (standard_coerce_float_to_double): Remove.
10921 (value_arg_coerce): Use coerce_float_to_double.
10922 (_initialize_valops): Add "set coerce-float-to-double".
10923 * value.h (default_coerce_float_to_double): Remove prototype.
10924 (standard_coerce_float_to_double): Remove prototype.
10925
10926 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10927 prototyped.
10928 * mdebugread.c (parse_symbol): Likewise.
10929 * stabsread.c (define_symbol): Mark all functions as prototyped.
10930
10931 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10932 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10933 set_gdbarch_coerce_float_to_double.
10934 * arm-tdep.c (arm_gdbarch_init): Likewise.
10935 * frv-tdep.c (frv_gdbarch_init): Likewise.
10936 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10937 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10938 * mips-tdep.c (mips_gdbarch_init): Likewise.
10939 (mips_coerce_float_to_double): Remove.
10940 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10941 (rs6000_coerce_float_to_double): Remove.
10942 * s390-tdep.c (s390_gdbarch_init): Likewise.
10943 * sh-tdep.c (sh_gdbarch_init): Likewise.
10944 (sh_coerce_float_to_double): Remove.
10945 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10946 (sparc_coerce_float_to_double): Remove.
10947 * v850-tdep.c (v850_gdbarch_init): Likewise.
10948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10949 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10950 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10951 (hppa_coerce_float_to_double): Remove prototype.
10952 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10953
f436a26a
DJ
109542003-01-04 Daniel Jacobowitz <drow@mvista.com>
10955
10956 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10957
248f8055
DJ
109582003-01-04 Daniel Jacobowitz <drow@mvista.com>
10959
10960 Suggested by Stewart Brown <sb24@avaya.com>:
10961 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10962 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10963 (c_type_print_varspec_suffix): Likewise.
10964
72cfdc76
MK
109652003-01-04 Mark Kettenis <kettenis@gnu.org>
10966
bfd260bb
MK
10967 * configure.in: Don't set and AC_SUBST SUBDIRS.
10968 * configure: Regenerated.
10969
72cfdc76
MK
10970 * configure.in: Remove code dealing with shared libraries.
10971 * Makefile.in: Remove HLDFLAGS and HLDENV.
10972 * configure: Regenerated.
10973
c8b8a898
AC
109742003-01-04 Andrew Cagney <ac131313@redhat.com>
10975
10976 * frame.c (deprecated_frame_xmalloc): New function.
10977 (deprecated_set_frame_saved_regs_hack): New function.
10978 (deprecated_set_frame_extra_info_hack): New function.
10979 * frame.h (deprecated_frame_xmalloc): Declare.
10980 (deprecated_set_frame_saved_regs_hack): Declare.
10981 (deprecated_set_frame_extra_info_hack): Declare.
10982
14abd0fb
MK
109832003-01-04 Mark Kettenis <kettenis@gnu.org>
10984
8ee53726
MK
10985 * configure.in: Move code that provides the --enable-gdbtk option
10986 right after the code that handles the --enable-tui option, and
10987 polish it somewhat.
10988 * configure: Regenerated.
10989
14abd0fb
MK
10990 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10991 AC_CHECK_FUNCS and remove the old check for pread64.
10992 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10993 * acconfig.h (_GNU_SOURCE): Add.
10994 (HAVE_PREAD64): Remove.
10995 * configure, aclocal.m4, config.in: Regenerated.
10996
b2fb4676
AC
109972003-01-03 Andrew Cagney <ac131313@redhat.com>
10998
10999 * alpha-tdep.c: Use get_frame_saved_regs.
11000 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11001 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11002 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11003 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11004 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11005
8dcde887
MK
110062003-01-03 Mark Kettenis <kettenis@gnu.org>
11007
11008 * configure.in: Remove all use of the SUBDIRS variable; add
11009 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11010 code providing the --enable-multi-ice option, and move it right in
11011 front of the code that checks whether gdbserver is supported.
11012 Polish that too.
11013 * configure: Regenerated.
11014 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11015 @SUBDIRS@.
11016
8ccd593b
AC
110172003-01-03 Andrew Cagney <cagney@redhat.com>
11018
11019 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11020 * avr-tdep.c, cris-tdep.c: Ditto.
11021 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11022 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11023
91151a06
MK
110242003-01-03 Mark Kettenis <kettenis@gnu.org>
11025
11026 * configure.in: Remove --enable-netrom option.
11027 * configure: Regenerated.
11028
8fe84d01
MK
110292003-01-03 Mark Kettenis <kettenis@gnu.org>
11030
11031 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11032 declaration for `struct re_pattern_buffer' instead.
11033 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11034
f0394be6
JB
110352003-01-03 J. Brobecker <brobecker@gnat.com>
11036
11037 * mdebugread.c (parse_symbol): Count until the stEnd matching
11038 the structure name.
11039
27e9bf90
MK
110402003-01-02 Mark Kettenis <kettenis@gnu.org>
11041
93d331ba
MK
11042 * configure.in: Remove --with-cpu option.
11043 subscripts. Remove evil changequotes here.
11044 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11045 * config.in, configure: Regenerated.
8ffd9b1b 11046
27e9bf90
MK
11047 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11048 * configure.in: Cleanup section that sources GDB and BFD configure
11049 subscripts. Remove evil changequotes here.
11050 * config.in, configure: Regenerated.
11051
50abf9e5
AC
110522003-01-02 Andrew Cagney <ac131313@redhat.com>
11053
11054 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11055 frame accessor methods.
11056 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11057 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11058 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11059 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11060 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11061 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11062 * z8k-tdep.c: Ditto.
8ffd9b1b 11063
287c1a40
MK
110642003-01-02 Mark Kettenis <kettenis@gnu.org>
11065
f5dbc56d
MK
11066 * configure.in: Remove UI_OUT configuration code.
11067 * ada-lang.c: Update assuming UI_OUT is always true.
11068 * Makefile.in (UIOUT_CFLAGS): Remove.
11069 * configure: Regenerated.
11070 * TODO: Remove blurb about elimination of -DUI_OUT.
11071
627af7ea
MK
11072 * configure.in: Move code that provides the --enable-gdbcli,
11073 --enable-gdbmi options right before the code that handles the
11074 --enable-tui option. Polish a bit.
11075 * configure: Regenerated.
11076
06825bd1
MK
11077 * configure.in: Rewrite check for GNU regex and the
11078 --without-included regex option, and move it into the "Checks for
11079 library functions" section. This makes us use the system regex
11080 again by default on systems with version 2 of the GNU C library.
11081 This was apparently broken.
11082 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11083 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11084 * config.in, configure: Regenerated.
11085
287c1a40
MK
11086 * configure.in: Move code that provides the --enable-tui option
11087 before the "Checks for libraries" section. Polish the code
11088 somewhat and set need_curses to yes if we build the TUI. Rewrite
11089 code that looks for a library providing termcap functionality to
11090 match more closely what's done in the Readline library, and move
11091 it into to the "Checks for libraries" section.
11092 * configure: Regenerated.
11093 * Makefile.in (TERMCAP): Remove variable.
11094 * config/i386/go32.mh (TERMCAP): Remove variable.
11095
684e56bf
AC
110962003-01-02 Andrew Cagney <ac131313@redhat.com>
11097
11098 * MAINTAINERS: Mention gdb_mbuild.sh.
11099 * gdb_mbuild.sh: Rewrite.
11100
e1ea1d75
MK
111012003-01-02 Mark Kettenis <kettenis@gnu.org>
11102
11103 * configure.in: Fix typo in last change.
11104 * config.in, configure: Regenerated.
11105
1b831c93
AC
111062003-01-02 Andrew Cagney <ac131313@redhat.com>
11107
11108 * valarith.c (value_binop): Delete obsolete code and comments.
11109 * configure.host: Ditto.
11110 * buildsym.h (make_blockvector): Ditto.
11111 * buildsym.c (make_blockvector): Ditto.
11112 * defs.h (enum language): Ditto.
11113 (chill_demangle): Ditto.
11114 * elfread.c (elf_symtab_read): Ditto.
11115 * dwarfread.c (CHILL_PRODUCER): Ditto.
11116 (set_cu_language): Ditto.
11117 (handle_producer): Ditto.
11118 * expprint.c (print_subexp): Ditto.
11119 * gdbtypes.c (chill_varying_type): Ditto.
11120 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11121 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11122 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11123 (chill_varying_type): Ditto.
11124 * language.h (_LANG_chill): Ditto.
11125 * language.c (binop_result_type, integral_type): Ditto.
11126 (character_type, string_type, structured_type): Ditto.
11127 (lang_bool_type, binop_type_check): Ditto.
11128 * stabsread.h (os9k_stabs): Ditto.
11129 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11130 (define_symbol, read_type, read_struct_fields): Ditto.
11131 (read_array_type, read_enum_type, read_huge_number): Ditto.
11132 (read_range_type, start_stabs): Ditto.
11133 * symfile.c (init_filename_language_table): Ditto.
11134 (add_psymbol_with_dem_name_to_list): Ditto.
11135 * symtab.c (symbol_init_language_specific): Ditto.
11136 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11137 * symtab.h (struct general_symbol_info): Ditto.
11138 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11139 * typeprint.c (typedef_print): Ditto.
11140 * utils.c (fprintf_symbol_filtered): Ditto.
11141 * valops.c (value_cast, search_struct_field, value_slice): Delete
11142 obsolete code.
11143 (varying_to_slice): Delete function.
11144 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11145 (varying_to_slice): Delete declaration.
11146 * MAINTAINERS: Update.
11147
8bb2c122
MK
111482003-01-02 Mark Kettenis <kettenis@gnu.org>
11149
97bf5e38
MK
11150 * configure.in: Reorganize "Checks for library functions section"
11151 a bit. Remove check for `btowc' and `isascii' functions.
11152 * configure: Regenerated.
11153
5ee754fc
MK
11154 * acconfig.h (_MSE_INT_H): Remove.
11155 * configure.in: Create "Checks for header files" section, and move
11156 appropriate tests there. Don't check for objlist.h, wchar.h,
11157 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11158 misdetection fix. Also add "Checks for types", "Checks for
11159 compiler characteristics" and "Checks for library functions"
11160 sections.
11161 * config.in, configure: Regenerated.
11162
8bb2c122
MK
11163 * configure.in: Create "Checks for programs" section, and move
11164 appropriate tests there.
11165
9a156167
MK
111662003-01-01 Mark Kettenis <kettenis@gnu.org>
11167
11168 * configure.in: Create "Checks for libraries" section, and move
11169 appropriate tests there. Cleanup check for wctype in libw. Use
11170 AC_SEARCH_LIBS to see whether we need libsocket.
11171 * configure: Regenerated.
11172
a80e2bcb 11173For older changes see ChangeLog-2002
c906108c
SS
11174\f
11175Local Variables:
11176mode: change-log
11177left-margin: 8
11178fill-column: 74
11179version-control: never
11180End:
This page took 0.940548 seconds and 4 git commands to generate.