2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c98a2b49
SA
12003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
2 * gdb/config/h8300/tm-h8300.h : Addition of extern variable h8300_normal_mode
3 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
4 (h8300_examine_prologue): Use h8300_normal_mode flag
5 (h8300_gdbarch_init): Set architecture info for normal mode
6
506fb367
DJ
72003-10-16 Daniel Jacobowitz <drow@mvista.com>
8
9 * remote.c (remote_protocol_vcont): New variable.
10 (set_remote_protocol_vcont_packet_cmd): New function.
11 (show_remote_protocol_vcont_packet_cmd): New function.
12 (init_all_packet_configs): Handle remote_protocol_vcont.
13 (remote_vcont_probe): New function.
14 (remote_vcont_resume): New function.
15 (remote_resume): Use it.
16 (remote_async_resume): Call remote_resume.
17 (_initialize_remote): Add verbose-resume packet commands.
18
65815ea1
AC
192003-10-16 Andrew Cagney <cagney@redhat.com>
20
21 * infrun.c (handle_inferior_event): Add comment about
22 "frame_id_inner" being too weak.
23
40324f1b
EZ
242003-10-16 Elena Zannoni <ezannoni@redhat.com>
25
26 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
27 second parameter, which is always null. Remove
28 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
29 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
30 accordingly.
31 * somsolib.c (som_solib_create_inferior_hook,
32 som_solib_desire_dynamic_linker_symbols): Update callers.
33 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
34
352003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
36
37 * remote-m32r-sdi.c : New file, interface to m32r on-chip
38 debug interface, SDI (Scalable Debug Interface).
39 * NEWS: Mention m32r SDI protocol was supported.
40 * Makefile.in (remote-m32r-sdi.o): Add build rule.
41 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
42
51931cbb
JJ
432003-10-15 Jeff Johnston <jjohnstn@redhat.com>
44
45 * ia64-linux-tdep.c: Include gdbcore.h.
46 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
47 (ia64_linux_sigcontext_register_addr): Find the address of the
48 sigcontext area stored in the sigframe instead of using
49 a magic offset constant.
50
84e7fd53
AC
512003-10-15 Andrew Cagney <cagney@redhat.com>
52
53 * remote.c (remote_search): Delete function.
54 * target.h (target_search): Delete disabled macro.
55 (struct target_ops): Delete disabled field "to_search".
56
0f4d7c52
KB
572003-10-14 Kevin Buettner <kevinb@redhat.com>
58
59 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
60 instead of deprecated_inside_entry_file().
61
2e952408
CV
622003-10-14 Corinna Vinschen <vinschen@redhat.com>
63
64 * sh-tdep.c: Fix copy/paste hangover in comment.
65 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
66 mode.
67 (sh3e_sh4_extract_return_value): Ditto.
68
7e86466e
RH
692003-10-13 Richard Henderson <rth@redhat.com>
70
71 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
72 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
73 match c_val_print a bit closer.
74
46a16dba
KB
752003-10-13 Kevin Buettner <kevinb@redhat.com>
76
77 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
78 (frv_gdbarch_adjust_breakpoint_address): New function.
79 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
80 method.
81
76897487
KB
822003-10-13 Kevin Buettner <kevinb@redhat.com>
83
84 * breakpoint.h (struct breakpoint): Add new member
85 ``requested_address''.
86 * breakpoint.c (breakpoint_adjustment_warning)
87 (adjust_breakpoint_address): New static functions.
88 (print_it_typical): Issue warning if breakpoint's address is different
89 from its requested address.
90 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
91 (breakpoint_re_set_one): Set breakpoint's
92 ``requested_address'' field. Set ``address'' field to the
93 result of calling adjust_breakpoint_address() on the requested
94 address.
95
a1131521
KB
962003-10-13 Kevin Buettner <kevinb@redhat.com>
97
98 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
99 * gdbarch.h, gdbarch.c: Regenerate.
100
6ce6d90f
MK
1012003-10-11 Mark Kettenis <kettenis@gnu.org>
102
155c1d33
MK
103 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
104 TDEP->sc_num_regs.
105
8a96bc77
MK
106 * i386fbsd-tdep.c: New file.
107 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
108 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
109 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
110 i386bsd-tdep.c.
111 (_initialize_i386fbsd_tdep): New function.
112 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
113 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
114 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
115 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
116 TDEP->sc_num_regs.
117 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
118 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
119 to initialize TDEP->sc_num_regs.
120 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
121 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
122 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
123 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
124 FreeBSD ELF OS/ABI's here.
125 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
126 (i386fbsd-tdep.o): New target.
127 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
128 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
129
477f40d1
MK
130 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
131 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
132 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
133 in initialization of TDEP->sc_num_regs.
134
c6b33596
MK
135 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
136 (x86_64_init_abi): Initialize regset_from_core_section if
137 appropriate.
138
8446b36a
MK
139 * i386-tdep.c (i386_regset_from_core_section): New function.
140 (i386_gdbarch_init): Initialize regset_from_core_section if
141 appropriate.
142 * i386-tdep.h (i386_regset_from_core_section): New declaration.
143
c783cbd6
MK
144 * i386-tdep.h (struct regset): Declare opaque.
145
6ce6d90f
MK
146 * gdbarch.sh (regset_from_core_section): New method.
147 (struct regset): Declare opaque.
148 * gdbarch.c, gdbarch.h: Regenerated.
149
b98ed7be
AM
1502003-10-11 Alan Modra <amodra@bigpond.net.au>
151
152 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
153 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
154 Correct test for pc within section.
155
f6214256
MK
1562003-10-11 Mark Kettenis <kettenis@gnu.org>
157
158 * gdbarch.sh: Remove trailing whitepsace from comments.
159
a8f4cde1
RM
1602003-10-08 Roland McGrath <roland@redhat.com>
161
162 * gcore.c (make_mem_sec): Function removed, folded into ...
163 (gcore_create_callback): ... here. To omit a section, clear its
164 SEC_LOAD bit rather than zeroing its size.
165 Omit read-only sections only if they correspond to a known disk file.
166 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
167
74276724
MS
1682003-10-10 Michael Snyder <msnyder@redhat.com>
169
170 * d10v-tdep.c: Fix typo in comment.
171
e754ae69
AC
1722003-10-10 Andrew Cagney <cagney@redhat.com>
173
174 * rs6000-tdep.c (e500_store_return_value): Delete function.
175 (e500_extract_return_value): Delete function.
176 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
177 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
178 "ppc_sysv_abi_restore_return_value" where applicable.
179 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
180 (ppc_sysv_abi_extract_return_value): Declare.
181 (ppc_sysv_abi_broken_store_return_value): Declare.
182 (ppc_sysv_abi_broken_extract_return_value): Declare.
183 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
184 * ppc-sysv-tdep.c (return_value_convention): Move definition to
185 start of file.
186 (do_ppc_sysv_return_value): New function.
187 (ppc_sysv_abi_extract_return_value): New function.
188 (ppc_sysv_abi_store_return_value): New function.
189 (ppc_sysv_abi_broken_extract_return_value): New function.
190 (ppc_sysv_abi_broken_store_return_value): New function.
191 (ppc_sysv_abi_use_struct_convention): Call
192 do_ppc_sysv_return_value.
193
8d4ce20a
JB
1942003-10-10 J. Brobecker <brobecker@gnat.com>
195
196 * blockframe.c (inside_main_func): No longer use symbol_lookup()
197 to lookup the main function symbol.
198
afce3d2a
CV
1992003-10-10 Corinna Vinschen <vinschen@redhat.com>
200
201 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
202 types correctly.
203 (sh_push_dummy_call_fpu): Fix argument passing rules.
204 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
205 float types.
206 (sh3e_sh4_store_return_value): Ditto.
207
7fe958be
EZ
2082003-10-10 Elena Zannoni <ezannoni@redhat.com>
209
210 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
211 comment.
212
3f997a97
CV
2132003-10-10 Corinna Vinschen <vinschen@redhat.com>
214
215 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
216 more readable code. Accomodate passing of bitfields.
217
8be9034a
AC
2182003-10-10 Andrew Cagney <cagney@redhat.com>
219
220 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
221 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
222 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
223 * ppc-sysv-tdep.c: Include "gdb_assert.h".
224 (ppc64_sysv_abi_push_dummy_call): New function.
225 (ppc64_sysv_abi_broken_push_dummy_call): New function.
226 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
227 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
228
85a453d5
KI
2292003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
230
231 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
232 * README: Ditto.
233 * d10v-tdep.c: Ditto.
234 * h8300-tdep.c: Ditto.
235 * remote-e7000.c: Ditto.
236 * remote-hms.c: Ditto.
237 * ser-e7kpc.c: Ditto.
238 * sh-stub.c: Ditto.
239 * sh-tdep.c: Ditto.
240 * sh-tdep.h: Ditto.
241 * sh3-rom.c: Ditto.
242 * sh64-tdep.c: Ditto.
243 * top.c: Ditto.
244 * wince.c: Ditto.
245 * config/d10v/d10v.mt: Ditto.
246 * config/sh/embed.mt: Ditto.
247 * config/sh/linux.mt: Ditto.
248 * config/sh/tm-linux.h: Ditto.
249 * config/sh/tm-sh.h: Ditto.
250 * config/sh/wince.mt: Ditto.
251
221c12ff
AC
2522003-10-09 Andrew Cagney <cagney@redhat.com>
253
254 * ppc-tdep.h (struct type): Declare opaque.
255 * x86-64-tdep.h (struct regcache): Declare opaque.
256 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
257 coding style.
258
ef5200c1
AC
2592003-10-09 Andrew Cagney <cagney@redhat.com>
260
261 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
262 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
263 (SOFTWARE_SINGLE_STEP_P): Ditto.
264 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
265 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
266 (SOFTWARE_SINGLE_STEP_P): Ditto.
267 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
268 software_single_step to rs6000_software_single_step.
a8f4cde1 269
9644bbdd
AC
2702003-10-09 Andrew Cagney <cagney@redhat.com>
271
272 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
273
db72fa6b
MS
2742003-10-09 Michael Snyder <msnyder@redhat.com>
275
f3efb16c
MS
276 * frame.h: Fix typo in comment.
277 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
278 * d10v-tdep.c: Random whitespace/comment tweaks.
279
9a5cef92
EZ
2802003-10-09 Elena Zannoni <ezannoni@redhat.com>
281
282 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 283 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 284 on stack.
a8f4cde1 285
9a5cef92
EZ
286 Based on input by Stephen Clarke (stephen.clarke@superh.com):
287 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
288 in detail.
a8f4cde1 289
0f317a0c
DJ
2902003-10-09 Daniel Jacobowitz <drow@mvista.com>
291
292 * remote-mips.c (mips_initialize): Remove unneeded call to
293 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
294
bbab2f46
DJ
2952003-10-09 Daniel Jacobowitz <drow@mvista.com>
296
297 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
298 a memory pointer.
299
550950b8
JJ
3002003-10-08 Jeff Johnston <jjohnstn@redhat.com>
301
302 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
303 for any lwp we resume.
304 (running_callback): Add lwps that have pending status events
305 against them to be considered running.
306
15c69bc7
KI
3072003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
308
309 * m32r-tdep.c : Include "dis-asm.h".
310 * Makefile.in (m32r-tdep.o): Update dependencies.
311
51065942
JB
3122003-10-06 J. Brobecker <brobecker@gnat.com>
313
314 * completer.h (get_gdb_completer_word_break_characters): Delete.
315 * completer.c: include language.h.
316 (gdb_completer_word_break_characters): Delete.
317 (get_gdb_completer_word_break_characters): Delete.
318 (location_completer): Use the word break characters of the current
319 language.
320 (complete_line): Likewise.
321 (line_completion_function): Likewise.
322 (skip_quoted_chars): Likewise.
323 * Makefile.in (completer.o): Add dependency on language.h.
324 * top.c (init_main): Set the readline word break characters
325 to GDB's default word break characters.
326
6084f43a
JB
3272003-10-06 J. Brobecker <brobecker@gnat.com>
328
329 * language.h (language_defn): new field, la_word_break_characters.
330 * language.c (unknown_language_defn): Set new field to
331 default_word_break_characters.
332 (auto_language_defn): Likewise.
333 (local_language_defn): Likewise.
334 * ada-lang.c (ada_language_defn): Likewise.
335 * c-lang.c (c_language_defn): Likewise.
336 (cplus_language_defn): Likewise.
337 (asm_language_defn): Likewise.
338 (minimal_language_defn): Likewise.
339 * f-lang.c (f_language_defn): Likewise.
340 * jv-lang.c (java_language_defn): Likewise.
341 * m2-lang.c (m2_language_defn): Likewise.
342 * objc-lang.c (objc_language_defn): Likewise.
343 * p-lang.c (pascal_language_defn): Likewise.
344 * scm-lang.c (scm_language_defn): Likewise.
345
944fcfab
AC
3462003-10-06 Andrew Cagney <cagney@redhat.com>
347
348 * ppc-sysv-tdep.c: Re-indent.
349
9f0a5303
JB
3502003-10-06 J. Brobecker <brobecker@gnat.com>
351
352 * language.h (default_word_break_characters): Add prototype.
353 * language.c (default_word_break_characters): New function.
354
7270b6ed
AS
3552003-10-06 Andreas Schwab <schwab@suse.de>
356
357 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
358 with %eax.
359
a5d61f66
AC
3602003-10-06 Andrew Cagney <cagney@redhat.com>
361
362 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
363 "h8500-tdep.c".
364 (z8k-tdep.o): Delete custom build rule.
365
28a86f5c
AC
3662003-10-06 Andrew Cagney <cagney@redhat.com>
367
1bfd8a83
AC
368 * Makefile.in: Update all dependencies.
369
17144ef8
AC
370 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
371 No longer list PA as as obsolete candidate. List m32r as
372 broken instead of obsolete.
a8f4cde1 373
a5679ae5
AC
374 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
375 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
376 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
377 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
378 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
379 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
380 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
381 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
382 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
383 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
384 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
385 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
386 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
387 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
388 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
389 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
390 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
391 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
392 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
393 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
394 * config/z8k/z8k.mt: Ditto.
395
4a8269c0
AC
396 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
397 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
398 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
399 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
400 sparclite were removed.
401 * configure.host, configure.tgt: Remove corresponding tuples.
402
41989fcd
AC
403 * breakpoint.c, breakpoint.h: Remove obsolete code.
404 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
405 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
406 * stabsread.h, xcoffread.c: Ditto.
407
28a86f5c
AC
408 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
409 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
410 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
411 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
412
4efdaa0d
DL
4132003-10-06 David Lecomber <dsl@sources.redhat.com>
414
415 * f-valprint.c: Reformatting
416
ae53de43
MK
4172003-10-06 Mark Kettenis <kettenis@gnu.org>
418
a8bb57e7
MK
419 * x86-64-tdep.c: Remove duplicate comment.
420
ae53de43
MK
421 * x86-64-tdep.c (x86_64_store_return_value): Don't use
422 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
423 names for return values. This fixes a bug since we looked at %rbx
424 instead of %rdx.
425
473f17b0
MK
4262003-10-05 Mark Kettenis <kettenis@gnu.org>
427
2c261fae
MK
428 * x86-64-tdep.c: Include "regset.h".
429
473f17b0
MK
430 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
431 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
432 sizeof_fpregset.
433 * i386-tdep.c: Include "regset.h".
434 (i386_supply_gregset): New function.
435 (i386_supply_fpregset): New function.
436 (i386_gdbarch_init): Initialze register set-related members of
437 TDEP.
438 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
439 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
440
afd48b75
AC
4412003-10-03 Andrew Cagney <cagney@redhat.com>
442
443 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
444 set extract_return_value, store_return_value and
445 use_struct_convention to ppc64_sysv_abi_extract_return_value,
446 ppc64_sysv_abi_store_return_value and
447 ppc64_sysv_abi_use_struct_convention.
448 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
449 (ppc64_sysv_abi_store_return_value): Declare.
450 (ppc64_sysv_abi_use_struct_convention): Declare.
451 * ppc-sysv-tdep.c (enum return_value_convention): Define.
452 (ppc64_sysv_abi_extract_return_value): New function.
453 (ppc64_sysv_abi_store_return_value): New function.
454 (ppc64_sysv_abi_use_struct_convention): New function.
455 (ppc64_sysv_abi_return_value): New function.
456
9b540880
AC
4572003-10-03 Andrew Cagney <cagney@redhat.com>
458
459 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
460 convert a descriptor to a function when it's in the ".opd"
461 section.
462
8748518b
CV
4632003-10-03 Corinna Vinschen <vinschen@redhat.com>
464
465 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
466 reg_size to keep GCC silent.
467
0fd85043
CV
4682003-10-03 Corinna Vinschen <vinschen@redhat.com>
469
470 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
471 base for DW_EH_PE_textrel encodings.
472 (read_encoded_value): Add a DW_EH_PE_textrel case.
473 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
474 section.
475
37b517aa
MK
4762003-10-03 Mark Kettenis <kettenis@gnu.org>
477
478 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
479
12c266ea
AC
4802003-10-02 Andrew Cagney <cagney@redhat.com>
481
482 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
483 REGISTER_RAW_SIZE.
484 * gdbarch.h, gdbarch.c: Re-generate.
485 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
486 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
487 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
488 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
489 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
490 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
491 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
492 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
493 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
494 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
495 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
496 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
497 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
498 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
499 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
500 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 501
78ba4af6
JB
5022003-10-02 Jim Blandy <jimb@redhat.com>
503
504 * dwarf2read.c (struct die_info): Doc fix.
505
617daa0e
CV
5062003-10-02 Corinna Vinschen <vinschen@redhat.com>
507
508 * sh-tdep.c: Running thru gdb_indent.sh.
509
e5e33cd9
CV
5102003-10-02 Corinna Vinschen <vinschen@redhat.com>
511
512 * sh-tdep.c (sh_justify_value_in_reg): New function.
513 (sh_stack_allocsize): Ditto.
514 (flt_argreg_array): New array used for floating point argument
515 passing.
516 (sh_init_flt_argreg): New function.
a8f4cde1 517 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
518 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
519 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
520 Fix argument passing strategy.
521 (sh_push_dummy_call_nofpu): Ditto.
522
5fe830e4
AC
5232003-10-01 Andrew Cagney <cagney@redhat.com>
524
525 * value.h (register_value_being_returned): Declare. Replace
526 "value_being_returned".
527 * infcall.c (call_function_by_hand): Use
528 register_value_being_returned.
529 * infcmd.c (print_return_value): Call
530 "register_value_being_returned", handle struct return locally.
531 * values.c (register_value_being_returned): New function. Replace
532 "value_being_returned".
a8f4cde1 533
5fe830e4 5342003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
535
536 * linux-proc.c (linux_do_registers): New function.
537 (linux_make_note_section): Use linux_do_registers in case of
538 single threaded inferior programs.
539
64f395bf
AC
5402003-10-01 Andrew Cagney <cagney@redhat.com>
541
542 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
543 use STRUCT_ADDR. When not using "struct return convention", pass
544 "0" to "value_being_returned". Add FIXMEs.
545 * infcmd.c (print_return_value): Pass an explicit 0/1 to
546 value_being_returned. Add comments.
547 * values.c (value_being_returned): Add fixme.
548 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
549 (hppa_value_returned_from_stack): Add FIXME.
550
639d11d3
DC
5512003-09-30 David Carlton <carlton@kealia.com>
552
553 * dwarf2read.c (struct die_info): Add 'parent' field; replace
554 'has_children' and 'next' by 'child' and 'sibling'.
555 (read_comp_unit): Rework algorithm, breaking body into
556 read_die_and_children and read_die_and_siblings.
557 (read_die_and_children, read_die_and_siblings): New.
558 (read_full_die): Add 'has_children' argument; set it instead of
559 the die's 'has_children' field. Minor formatting cleanup.
560 (free_die_list): Use die->child and die->sibling instead of
561 die->next.
562 (dump_die_list): Ditto.
563 (sibling_die): Use die->sibling.
564 (psymtab_to_symtab_1): Use die's 'child' field in place of its
565 'has_children' and 'next' fields.
a8f4cde1
RM
566 (process_die, read_file_scope, read_func_scope)
567 (read_lexical_block_scope, read_structure_scope)
568 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
569 (read_namespace, read_subroutine_type, dump_die): Ditto.
570
5bffac25
AC
5712003-09-30 Andrew Cagney <cagney@redhat.com>
572
573 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
574 to 224, not 220.
575
f30992d4
AC
5762003-09-30 Andrew Cagney <cagney@redhat.com>
577
578 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
579 REGISTER_VIRTUAL_SIZE.
580 * gdbarch.h, gdbarch.c: Regenerate.
581 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
582 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
583 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
584
2e092625
AC
5852003-09-29 Andrew Cagney <cagney@redhat.com>
586
587 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
588 DEPRECATED_REGISTER_VIRTUAL_TYPE.
589 * gdbarch.h, gdbarch.c: Regenerate.
590 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
591 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
592
593 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
594 * remote-vxmips.c (vx_read_register): Ditto.
595 * remote-vx68.c (vx_read_register): Ditto.
596 * gnu-nat.c (inf_validate_procs): Ditto.
597
7a5dd6ee
JB
5982003-09-29 J. Brobecker <brobecker@gnat.com>
599
600 * infcall.c (call_function_by_hand): Fix build failure
601 introduced in the previous change to this file.
602
1fe43d45
AC
6032003-09-29 Andrew Cagney <cagney@redhat.com>
604
605 * NEWS: Mention Objective-C.
606
e28a332c
JG
6072003-09-29 Jerome Guitton <guitton@act-europe.fr>
608
609 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
610 test if the register has been saved on the stack.
611 (arm_scan_prologue_cache): When analysing the instruction
612 "str lr, [sp, #-4]", save the address where lr has been stored.
613
9ff63c35
AC
6142003-09-28 Andrew Cagney <cagney@redhat.com>
615
7f5f525d
AC
616 * frame.c (frame_read_unsigned_register): Delete function.
617 * frame.h (frame_read_unsigned_register): Delete declaration.
618 * sparc-tdep.c (sparc_init_extra_frame_info): Use
619 get_frame_register_unsigned.
620 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
621 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
622 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 623
7f5f525d
AC
624 * frame.h (frame_read_register): Delete declaration.
625 * frame.c (frame_read_register): Delete function.
626 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
627 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
628 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
629 * mips-tdep.c (mips_register_to_value): Ditto.
630 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
631 * d10v-tdep.c (d10v_print_registers_info): Ditto.
632
633 * frame.c (frame_read_signed_register): Delete function.
634 (frame_read_unsigned_register): Update comments.
635 * frame.h (frame_read_signed_register): Delete declaration.
636 * h8300-tdep.c (h8300_print_register): Use
637 get_frame_register_signed.
638 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
639
9ff63c35
AC
640 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
641 Rename VALUE_RETURNED_FROM_STACK.
642 * infcmd.c (print_return_value): Update.
643 * infcall.c (call_function_by_hand): Update.
644
41d041d6
MK
6452003-09-28 Mark Kettenis <kettenis@gnu.org>
646
647 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
648 regcache argument and reverse the order of the other two
649 arguments. Remove local regcache variable. Determine
650 architecture from REGCACHE. Update comments.
651 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
652 reverse the order of the other two arguments. Remove local
653 regcache variable. Determine architecture from REGCACHE. Update
654 comments.
655 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
656 prototypes. Update comments.
657 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
658 comment.
659 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
660 Update.
661 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
662 * i386-interix-nat.c (supply_fpregset): Update.
663 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
664 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
665 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
666 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
667 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
668 Update.
669 * i386obsd-tdep.c (fetch_core_registers): Update.
670 * i386v4-nat.c (supply_fpregset): Update.
671 * x86-64-linux-nat.c (supply_fpregset): Update.
672 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 673
1cb97e17
MK
6742003-09-27 Mark Kettenis <kettenis@gnu.org>
675
5716833c
MK
676 * i386-tdep.h: Put opaque declarations in alphabetical
677 order. Remove spurious whitespace.
678 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
679 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
680 * i386-tdep.c (MM0_REGNUM): Remove define.
681 (i386_mmx_regnum_p): Add gdbarch argument.
682 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
683 Rewrite using new macro definitions for FPU/SSE registers.
684 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
685 definitions from i387-tdep.h.
686 (i386_register_name): Update.
687 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
688 new macro definitions for FPU/SSE registers.
689 (i386_extract_return_value): Determine whether floating-point
690 registers are present by examining REGCACHE's architecture.
691 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
692 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
693 FPU/SSE registers.
694 (i386_register_type): Update.
695 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
696 definitions for FPU registers. Use REGCACHE's architecture to
697 determine the appropriate register numbers.
698 (i386_pseudo_register_read, i386_pseudo_register_write,
699 i386_register_reggroup_p): Update.
700 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
701 TDEP->mm0_regnum.
702 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
703 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
704 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
705 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
706 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
707 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
708 *' to `void *'.
709 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
710 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
711 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
712 definitions for FPU/SSE registers.
713 (FXSAVE_MXCSR_ADDR): New define.
714 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
715 TDEP->mm0_regnum.
716 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
717 (I387_ST0_REGNUM): Define.
718
41d35cb0
MK
719 * regcache.h (get_regcache_arch): New prototype.
720 * regcache.c (get_regcache_arch): New function.
721
54e74f72
MK
722 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
723 whitespace.
724
1cb97e17
MK
725 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
726 Initialize using ARRAY_SIZE.
727
0968aa8c
AC
7282003-09-27 Andrew Cagney <cagney@redhat.com>
729
730 * arch-utils.c (deprecated_init_frame_pc_default): Rename
731 "init_frame_pc_default".
732 * arch-utils.h (deprecated_init_frame_pc_default): Update.
733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
734 * vax-tdep.c (vax_gdbarch_init): Update.
735 * v850-tdep.c (v850_gdbarch_init): Update.
736 * sh64-tdep.c (sh64_gdbarch_init): Update.
737 * s390-tdep.c (s390_gdbarch_init): Update.
738 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
739 * mcore-tdep.c (mcore_gdbarch_init): Update.
740 * h8300-tdep.c (h8300_gdbarch_init): Update.
741 * cris-tdep.c (cris_gdbarch_init): Update.
742 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
743
54c84734
MK
7442003-09-26 Mark Kettenis <kettenis@gnu.org>
745
746 * regset.h: New file.
747 * Makefile.in (regset_h): Add.
748
1b1d3794
AC
7492003-09-25 Andrew Cagney <cagney@redhat.com>
750
751 * frame.h (deprecated_frame_saved_regs): Rename
752 get_frame_saved_regs.
753 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
754 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
755 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
756 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
757 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
758
e6beb428
AC
7592003-09-25 Andrew Cagney <cagney@redhat.com>
760
761 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
762 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
763 and Java.
764 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
765 arm*-*-* do not use the new frame code.
766
710122da
DC
7672003-09-25 David Carlton <carlton@kealia.com>
768
769 * c-exp.y: Remove 'register' declarations.
770 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
771
79c2c32d
DC
7722003-09-25 David Carlton <carlton@kealia.com>
773
774 * c-exp.y: Include cp-support.h. Add qualified_type.
775 (yylex): Delete nested type hack; add comments.
776 * cp-namespace.c (cp_lookup_nested_type): New function.
777 * cp-support.h: Declare cp_lookup_nested_type.
778 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
779 instead of value_struct_elt_for_reference.
780 * valops.c: Include cp-support.h.
781 (value_aggregate_elt): New function.
782 (value_namespace_elt): Ditto.
783 (value_struct_elt_for_reference): Make static.
784 * value.h: Delete declaration of value_struct_elt_for_reference;
785 add declaration for value_aggregate_elt.
786 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
787 (valops.o): Ditto.
788
898c62f5
DJ
7892003-09-25 Daniel Jacobowitz <drow@mvista.com>
790
791 * stack.c: Include "reggroups.h".
792 (frame_info): Only display registers in all_reggroup.
793 * Makefile.in (stack.o): Update dependencies.
794
28cd8767
JG
7952003-09-25 Jerome Guitton <guitton@act-europe.fr>
796
797 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
798 "add ip, sp #n" in the prologue.
799 (arm_scan_prologue): Ditto.
800
a4ab2b5d
JG
8012003-09-25 Jerome Guitton <guitton@act-europe.fr>
802
803 * MAINTAINERS (write after approval): Add myself.
804
3f244638
AS
8052003-09-25 Andreas Schwab <schwab@suse.de>
806
807 * m68k-tdep.c: Include "dwarf2-frame.h".
808 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
809 * Makefile.in (m68k-tdep.o): Update dependencies.
810
1c0159e0
CV
8112003-09-25 Corinna Vinschen <vinschen@redhat.com>
812
813 * sh-tdep.c (struct frame_extra_info): Remove.
814 (struct sh_frame_cache): New structure.
815 (GET_SOURCE_REG): New macro extracting source register of an opcode.
816 (GET_TARGET_REG): Ditto but target register.
817 (GET_PUSHED_REG): Remove.
818 (IS_MOV_ARG_TO_REG): New macro.
819 (IS_MOV_ARG_TO_IND_R14): New macro.
820 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
821 (IS_MOVW_PCREL_TO_REG): New macro.
822 (IS_MOVL_PCREL_TO_REG): New macro.
823 (IS_SUB_REG_FROM_SP): New macro.
824 (IS_ARG_MOV): Remove.
825 (IS_MOV_TO_R14): Remove.
826 (IS_RESTORE_FP): New macro.
827 (IS_RTS): New macro.
828 (IS_LDS): New macro.
829 (IS_MOV_FP_SP): New macro.
830 (IS_ADD_REG_TO_FP): New macro.
831 (IS_ADD_IMM_FP): New macro.
832 (sh_skip_prologue_hard_way): Remove.
833 (sh_saved_pc_after_call): Remove.
834 (sh_frame_chain): Remove.
835 (sh_find_callers_reg): Remove.
a8f4cde1 836 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
837 (sh_fp_frame_init_saved_regs): Remove.
838 (sh_init_extra_frame_info): Remove.
839 (sh_analyze_prologue): New function.
840 (sh_skip_prologue): Remove deprecated code. Rely on new function
841 sh_analyze_prologue when after_prologue fails.
842 (sh_frame_saved_pc): Remove.
843 (sh_alloc_frame_cache): New function.
844 (sh_frame_cache): Ditto.
845 (sh_frame_prev_register): Ditto.
846 (sh_frame_this_id): Ditto.
847 (sh_frame_unwind): New structure defining the heuristic frame
848 sniffer interface.
849 (sh_frame_sniffer): New function.
850 (sh_unwind_sp): Ditto.
851 (sh_unwind_pc): Ditto.
852 (sh_unwind_dummy_id): Ditto.
853 (sh_frame_base_address): Ditto.
854 (sh_frame_base): New structure defining new frame base code.
855 (sh_in_function_epilogue_p): New function.
856 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
857 code and to call all new code instead. Initialize dwarf2 and
858 heuristic frame sniffer.
859
5f9769d1
PH
8602003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
861
a8f4cde1
RM
862 * parser-defs.h (struct exp_descriptor): New definition, containing
863 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
864 evaluating expressions.
865 (exp_descriptor_standard): Declare new variable.
866 (print_subexp): Make global and declare here (from expprint.c).
867 (dump_subexp): Ditto.
868 (dump_subexp_body_standard): Declare.
869 (operator_length_standard): Declare.
870 (op_name_standard): Declare.
871 (print_subexp): Declare.
872 (print_subexp_standard): Declare.
873
874 * language.h (struct language_defn): Add la_exp_desc field to hold
875 pointer to table for language-specific operators.
876 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
877
878 * parse.c (operator_length): Move most code to new
5f9769d1 879 operator_length_standard function. Use language-specific information.
a8f4cde1 880 (operator_length_standard): New function taking most code from
5f9769d1
PH
881 operator_length.
882 (exp_descriptor_standard): New constant.
a8f4cde1
RM
883
884 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 885 and OP_EXTENDED_LAST.
a8f4cde1
RM
886
887 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
888 Make global; remove static declaration.
889 Move most code to print_subexp_standard.
a8f4cde1 890 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
891 print_subexp.
892 (op_name): Add expression to argument signature.
a8f4cde1 893 Use langauge-specific op_name.
5f9769d1
PH
894 Move most code to op_name_standard.
895 (op_name_standard): New function, containing code formerly in op_name.
896 (dump_subexp): Use new version of op_name function.
897 Use language-specific dump_subexp_body, and move most existing code to
898 dump_subexp_body_standard.
899 (dump_raw_expression): Use new op_name interface.
900 (dump_subexp_body): Move most code to dump_subexp_body_standard.
901 (dump_subexp_body_standard): New function, containing code formerly
902 in dump_subexp_body.
a8f4cde1 903
5f9769d1
PH
904 * language.c (unknown_language): Add default la_exp_desc field and
905 remove evaluate_exp field.
906 (auto_language): Ditto.
907 (local_language): Ditto.
908 * f-lang.c (f_language_defn): Ditto.
909 * c-lang.c (c_language_defn): Ditto.
910 (cplus_language_defn): Ditto.
911 (asm_language_defn): Ditto.
912 (minimal_language_defn): Ditto.
913 * p-lang.c (pascal_language_defn): Ditto.
914 * m2-lang.c (m2_language_defn): Ditto.
915 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
916
917 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
918 Java-specific expression evaluator.
919 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
920 field.
a8f4cde1 921 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
922 Scheme-specific expression evaluator.
923 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
924 field.
925 * objc-lang.c (print_object_command): Take evaluate_exp from the
926 la_exp_desc field.
a8f4cde1 927
5f9769d1 928 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
929
930 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
931 la_exp_desc's type.
932 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 933
24daaebc
PH
9342003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
935
936 * parser-defs.h (operator_length): Declare.
a8f4cde1 937
24daaebc
PH
938 * parse.c (length_of_subexp): Use operator_length to get operator
939 lengths and arities for operators.
940 Move most code to new operator_length function.
a8f4cde1 941 (operator_length): New function absorbing most code from
24daaebc
PH
942 length_of_subexp.
943 (prefixify_subexp): Remove large case and use operator_length instead.
944 (parse_exp_1): Use renamings:
a8f4cde1 945 dump_prefix_expression => dump_raw_expression and
24daaebc 946 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 947
24daaebc
PH
948 * expression.h (dump_prefix_expression): Rename to ...
949 (dump_raw_expression): New name.
950 (dump_postfix_expression): Rename to ...
951 (dump_prefix_expression): New name.
a8f4cde1 952
24daaebc
PH
953 * expprint.c (dump_subexp): Make global. Add comment.
954 Move most existing code to dump_subexp_body.
955 (dump_subexp_body): New function.
956 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 957 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
958 work before the expression is prefixified.
959 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 960 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 961 that's what it does.
a8f4cde1 962 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
963 prefixified expression.
964 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 965
8c2957c4
JB
9662003-09-22 Jim Blandy <jimb@redhat.com>
967
968 * dwarf2read.c (read_array_type): When building the type for an
969 array of unspecified length, make sure to choose the upper bound
970 so that the array's total length comes out to be zero --- that's
971 how we represent such arrays.
972
592e3010
MC
9732003-09-22 Michael Chastain <mec@shout.net>
974
975 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
976
365c70b1
JJ
9772003-09-22 Jeff Johnston <jjohnstn@redhat.com>
978
979 * top.c (quit_force): Fix indirect call to quit_target so
980 a struct qt_args pointer is passed.
981
5d6eb653
AC
9822003-09-22 Andrew Cagney <cagney@redhat.com>
983
984 * arch-utils.h (init_frame_pc_noop): Delete declaration.
985 * arch-utils.c (init_frame_pc_noop): Delete function.
986 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
987 "init_frame_pc".
988 * mips-tdep.c (mips_gdbarch_init): Ditto.
989 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
990 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
991 declaration.
992 (DEPRECATED_INIT_FRAME_PC): Delete macro.
993 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
994 declaration.
995 (DEPRECATED_INIT_FRAME_PC): Delete macro.
996
b222a67f
AG
9972003-09-22 Anthony Green <green@redhat.com>
998
999 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1000 declaration.
1001
d5b5ac79
AC
10022003-09-20 Andrew Cagney <cagney@redhat.com>
1003
deafb061
AC
1004 * breakpoint.c: Eliminate ARGSUSED.
1005 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1006 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1007 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1008 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1009 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1010 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1011 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1012 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1013 * wince.c, remote-vx.c: Ditto.
1014
d5b5ac79
AC
1015 * cli/cli-script.c: Remove "register" attributes.
1016 * config/pa/tm-hppa.h: Ditto.
1017 * cli/cli-decode.c: Ditto.
1018 * cli/cli-cmds.c: Ditto.
1019
c6316faa
AC
10202003-09-19 Andrew Cagney <cagney@redhat.com>
1021
1022 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1023 DEPRECATED_NPC_REGNUM.
1024 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1025
f4f99b11
CF
10262003-09-19 Christopher Faylor <cgf@redhat.com>
1027
1028 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1029
1708f284
JB
10302003-09-19 Jim Blandy <jimb@redhat.com>
1031
1032 * macrotab.c (macro_include): Use the correct comparison to find
1033 the appropriate place for this inclusion in the list.
1034
b9fbf434
AC
10352003-09-19 Andrew Cagney <cagney@redhat.com>
1036
1037 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1038 (DEPRECATED_HPUX_TEXT_END): Define.
1039 (deprecated_hpux_text_end): Declare.
1040 (struct target_ops): Declare opaque.
1041 * hppah-nat.c (text_end): Make static.
1042 (deprecated_hpux_text_end): New function.
1043 * exec.c (text_end): Delete global variable.
1044 (NEED_TEXT_START_END): Do not define.
1045 (exec_file_attach): Replace code computing "text_end" code with
1046 call to DEPRECATED_HPUX_TEXT_END.
1047
5b03f266
AC
10482003-09-19 Andrew Cagney <cagney@redhat.com>
1049
1050 * utils.c (align_up, align_down): New functions.
1051 * defs.h (align_up, align_down): Declare.
1052 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1053 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1054 and "align_down".
1055 (round_up, round_down): Delete functions.
1056 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1057 "align_down".
1058 (ROUND_DOWN, ROUND_UP): Delete macros.
1059 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1060 * h8300-tdep.c: Replace "round_up" and "round_down" with
1061 "align_up" and "align_down".
1062 (round_up, round_down): Delete macros.
1063 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1064 "align_down".
1065 (ROUND_UP, ROUND_DOWN): Delete macros.
1066
51db5742
JB
10672003-09-18 J. Brobecker <brobecker@gnat.com>
1068
1069 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1070 hard-coded constant. Use the proper machine name instead.
1071
77949794
AC
10722003-09-17 Andrew Cagney <cagney@redhat.com>
1073
1074 * sparc-tdep.c (legacy_register_name): Delete function.
1075 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1076 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1077 * infcmd.c (gdb_register_name): Delete variable.
1078 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1079 REGISTER_NAME and "tm.h".
1080 * gdbarch.h, gdbarch.c: Regenerate.
1081 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1082 REGISTER_NAMES in comments.
1083 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1084 * m68klinux-nat.c (regmap): Ditto.
1085
b55c33cc
JB
10862003-09-17 Jim Blandy <jimb@redhat.com>
1087
1088 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1089
957e27ac
AC
10902003-09-17 Andrew Cagney <cagney@redhat.com>
1091
1092 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1093 (ppcnbsd_init_abi): Set "use_struct_convention" to
1094 "ppcnbsd_use_struct_convention".
1095
192cb3d4
MK
10962003-09-17 Mark Kettenis <kettenis@gnu.org>
1097
1098 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1099 * gdbarch.h, gdbarch.c: Regenerate.
1100 (stabs_argument_has_addr): New architecture method.
1101 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1102 * arch-utils.c: Include "buildsym.h".
1103 (default_stabs_argument_has_addr): New function.
1104 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1105 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1106
efe59759
AC
11072003-09-17 Andrew Cagney <cagney@redhat.com>
1108
1109 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1110 * gdbarch.h, gdbarch.c: Regenerate.
1111 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1112 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1113 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1114 * sparcnbsd-tdep.c: Update.
a8f4cde1 1115
62700349
AC
11162003-09-17 Andrew Cagney <cagney@redhat.com>
1117
1118 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1119 * gdbarch.h, gdbarch.c: Regenerate.
1120 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1121 * d10v-tdep.c, frame.c: Update.
1122 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1123 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1124 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1125 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1126 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1127 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1128 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1129 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1130 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1131 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1132 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1133 * config/pa/nm-hppah.h: Update.
1134
b9ff3018
AC
11352003-09-16 Andrew Cagney <cagney@redhat.com>
1136
1137 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1138 "use_struct_convention" to "ppc_linux_use_struct_convention".
1139 (ppc_linux_use_struct_convention): New function.
1140 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1141 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1142 "rs6000_use_struct_convention".
1143 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1144 declaration.
1145 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1146 Delete function.
1147
aa1ee363
AC
11482003-09-16 Andrew Cagney <cagney@redhat.com>
1149
1150 * buildsym.c: Remove more occurances of "register".
1151 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1152 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1153 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1154 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1155 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1156 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1157 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1158 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1159
f2ea0907
CV
11602003-09-16 Corinna Vinschen <vinschen@redhat.com>
1161
1162 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1163 numbers to enumeration values.
1164 * sh-tdep.c: Accomodate above change.
1165 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1166 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1167 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1168 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1169 (IS_FPUSH): Rename from IS_FMOV.
1170 (sh_extract_struct_value_address): Remove useless comment.
1171 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1172 instead of own local values.
1173 (sh_dump_tdep): Remove.
1174 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1175 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1176
1c704f11
AC
11772003-09-15 Andrew Cagney <cagney@redhat.com>
1178
1179 * doublest.c (convert_floatformat_to_doublest): No longer need to
1180 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1181
ac79b88b
DJ
11822003-09-15 Daniel Jacobowitz <drow@mvista.com>
1183
1184 * values.c (unpack_double): Call floatformat_is_valid.
1185
1c671366
MK
11862003-09-15 Mark Kettenis <kettenis@gnu.org>
1187
de5227fb
MK
1188 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1189 ps_strings into a long.
1190
1c671366
MK
1191 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1192 _initialize_am64fbsd_nat.
1193
a604369a
KB
11942003-09-15 Kevin Buettner <kevinb@redhat.com>
1195
1196 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1197 associated with DW_AT_ranges attribute is out of bounds.
1198
b3cacbee
DL
11992003-09-15 David Lecomber <dsl@sources.redhat.com>
1200
1201 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1202
d0f37bb2
MC
12032003-09-14 Michael Chastain <mec@shout.net>
1204
1205 * config/m68k/nm-apollo68v.h: Delete.
1206 * config/m68k/xm-apollo68v.h: Delete.
1207
69517000
AC
12082003-09-14 Andrew Cagney <cagney@redhat.com>
1209
1210 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1211 * dcache.c: Update copyrights and descriptions.
1212 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1213
ef8b349d
AC
12142003-09-14 Andrew Cagney <cagney@redhat.com>
1215
1216 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1217 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1218
52f0bd74
AC
12192003-09-14 Andrew Cagney <cagney@redhat.com>
1220
1221 * alpha-nat.c: Remove some occurances of "register".
1222 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1223 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1224 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1225 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1226 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1227 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1228 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1229 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1230 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1231 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1232 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1233 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1234 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1235 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1236 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1237 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1238 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1239 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1240 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1241 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1242 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1243 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1244
4a4b3fed
AC
12452003-09-13 Andrew Cagney <cagney@redhat.com>
1246
1247 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1248 * ppc-tdep.h (struct regcache): Declare opaque.
1249 * objfiles.h (struct objfile_data): Declare opaque.
1250 * cp-support.h (struct objfile): Declare opaque.
1251 * linux-nat.h (target_waitstatus): Declare opaque.
1252
2110b94f
MK
12532003-09-14 Mark Kettenis <kettenis@gnu.org>
1254
1c671366
MK
1255 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1256 (stabs_argument_has_addr): New architecture method.
1257 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1258 * arch-utils.c: Include "buildsym.h".
1259 (default_stabs_argument_has_addr): New function.
1260 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1261 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1262
2110b94f
MK
1263 * cris-tdep.c (cris_gdbarch_init): Set
1264 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1265 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1266 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1267 * mips-tdep.c (mips_gdbarch_init): Likewise.
1268 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1269 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1270
48436ce6
AC
12712003-09-13 Andrew Cagney <cagney@redhat.com>
1272
1273 * values.c (using_struct_return): Delete "function" and "funcaddr"
1274 parameters.
1275 * value.h (using_struct_return): Update declaration.
1276 * infcmd.c (finish_command_continuation): Update.
1277 (finish_command): Update.
1278 * infcall.c (call_function_by_hand): Update.
1279 * eval.c (evaluate_subexp_standard): Update.
1280
403d9909
CF
12812003-09-13 Christopher Faylor <cgf@redhat.com>
1282
1283 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1284 SSE registers since gdb will not operate correctly without this.
1285 Restore include file ordering munged in previous change.
1286 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1287
ebf7d56b
MK
12882003-09-13 Mark Kettenis <kettenis@gnu.org>
1289
8e823e25
MK
1290 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1291 REG_STRUCT_HAS_ADDR.
1292 * gdbarch.c, gdbarch.h: Updated.
1293 * infcall.c (call_function_by_hand): Update.
1294 * stabsread.c (define_symbol): Updated.
a8f4cde1 1295
ebf7d56b
MK
1296 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1297
d3f13f72
CF
12982003-09-12 Christopher Faylor <cgf@redhat.com>
1299
1300 * win32-nat.c: Reorganize so that defines used by target headers are
1301 actually defined by the system headers.
1302 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1303 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1304
14f75137
JB
13052003-09-12 Jim Blandy <jimb@redhat.com>
1306
d646061f
JB
1307 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1308 the file has no .data, .bss, or .rodata sections. Instead wait
1309 until we see a variable alleged to live in one of those sections.
1310
2a13f9bc
JB
1311 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1312 .bss section, presume that any variables we find live in the
1313 .rodata section.
1314
4f49b26b
JB
1315 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1316 offsets for global and static variables.
1317
14f75137
JB
1318 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1319 symbol types are, by definition, in the .data section, so it is
1320 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1321 If there is no .data section, there should be no N_DATA or N_DATA
1322 | N_EXT symbols.
1323
212c460c
MK
13242003-09-12 Mark Kettenis <kettenis@gnu.org>
1325
1326 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1327 (amd64fbsd_sigcontext_addr): Rewrite.
1328 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1329 with correct values.
1330 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1331 (amd64fbsd_init_abi): Fix typo.
1332
68856ea3
AC
13332003-09-12 Andrew Cagney <cagney@redhat.com>
1334
1335 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1336 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1337
627b3ba2
AC
13382003-09-12 Andrew Cagney <cagney@redhat.com>
1339
1340 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1341 "entry_file_highpc". Update comments.
1342 * defs.h (deprecated_inside_entry_file): Rename
1343 "inside_entry_file".
1344 * blockframe.c (deprecated_inside_entry_file): Rename
1345 "inside_entry_file".
1346 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1347 * vax-tdep.c (vax_frame_chain): Update.
1348 * sh64-tdep.c (sh64_frame_chain): Update.
1349 * sh-tdep.c (sh_frame_chain): Update.
1350 * rs6000-tdep.c (rs6000_frame_chain): Update.
1351 * ns32k-tdep.c (ns32k_frame_chain): Update.
1352 * mips-tdep.c (mips_frame_chain): Update.
1353 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1354 * m32r-tdep.c (m32r_frame_this_id): Update.
1355 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1356 * frv-tdep.c (frv_frame_this_id): Update.
1357 * d10v-tdep.c (d10v_frame_this_id): Update.
1358 * cris-tdep.c (cris_frame_chain): Update.
1359 * blockframe.c (legacy_frame_chain_valid): Update.
1360 * avr-tdep.c (avr_frame_this_id): Update.
1361 * arm-tdep.c (arm_prologue_this_id): Update.
1362 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1363 * objfiles.c (objfile_relocate): Update.
1364 * mipsread.c (mipscoff_symfile_read): Update.
1365 (mipscoff_symfile_read): Update.
1366 * mdebugread.c (parse_partial_symbols): Update.
1367 * dwarfread.c (read_file_scope): Update.
1368 * dwarf2read.c (read_file_scope): Update.
1369 * dbxread.c (read_dbx_symtab): Update.
1370 (read_dbx_symtab): Update.
1371 * coffread.c (complete_symtab): Update.
1372
b0abbc58
JJ
13732003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1374
1375 * top.c (quit_target): New static helper function.
1376 (quit_force): Moved code to quit_target(). Call quit_target()
1377 via catch_errors() to catch errors during quit.
1378
a1632d59
DC
13792003-09-11 David Carlton <carlton@kealia.com>
1380
1381 * buildsym.c (finish_block): Use allocate_block to allocate the
1382 block.
1383 * mdebugread.c (new_block): Add FIXME.
1384
5c4e30ca
DC
13852003-09-11 David Carlton <carlton@kealia.com>
1386
1387 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1388 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1389 (recursive_dump_type): Ditto.
1390 * printcmd.c (print_formatted): Ditto.
1391 * typeprint.c (print_type_scalar): Ditto.
1392 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1393 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1394 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1395 maint_cplus_cmd_list.
1396 * cp-support.c: Make maint_cplus_cmd_list extern.
1397 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1398 command.h.
1399 (lookup_symbol_file): Look in possible namespace blocks when
1400 appropriate.
1401 (initialize_namespace_symtab): New.
1402 (get_possible_namespace_block, free_namespace_block)
1403 (check_possible_namespace_symbols)
1404 (check_possible_namespace_symbols_loop)
1405 (check_one_possible_namespace_symbol)
1406 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1407 (_initialize_cp_namespace): Ditto.
1408 * block.h: Declare allocate_block.
1409 * block.c (allocate_block): New.
1410 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1411 allocate_block.
1412 * symfile.h: Update declaration of add_psymbol_to_list.
1413 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1414 question.
1415 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1416 scan_partial_symbols_call.
1417 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1418 helper functions.
1419 (add_partial_symbol): If necessary, scan mangled names for names
1420 of namespaces.
1421 (add_partial_namespace): Add NAMESPACE argument; generate partial
1422 symbols associated to namespaces.
1423 (add_partial_enumeration): Add NAMESPACE argument.
1424 (new_symbol): Allow namespace syms.
1425 (read_namespace): Generate namespace syms.
1426 * objfiles.h: Add opaque declaration of struct symtab.
1427 (struct objfile): Add cp_namespace_symtab member.
1428 * objfiles.c (allocate_objfile): Set
1429 objfile->cp_namespace_symtab.
1430 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1431 dictionary_h, command_h.
1432
33a7c2fc
AC
14332003-09-11 Andrew Cagney <cagney@redhat.com>
1434
1435 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1436 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1437 near the function's end.
1438 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1439 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1440 regcache_raw_write_signed to set SP_REGNUM.
1441
63cd24fe
EZ
14422003-09-11 Elena Zannoni <ezannoni@redhat.com>
1443
1444 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1445 orig_addrs is set up properly.
1446
f27dd7fd
AC
14472003-09-11 Andrew Cagney <cagney@redhat.com>
1448
1449 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1450 * gdbarch.h, gdbarch.c: Re-generate.
1451 * infcall.c (call_function_by_hand): Update.
1452 * hppa-tdep.c (hppa_push_arguments): Update.
1453 * ada-lang.c (place_on_stack): Update.
1454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1455 * sparc-tdep.c (sparc_gdbarch_init): Update.
1456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1457 * hppa-tdep.c (hppa_gdbarch_init): Update.
1458 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1459 stack_align.
1460
f630a401
DJ
14612003-09-11 Daniel Jacobowitz <drow@mvista.com>
1462
1463 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1464 register do need a frame.
1465
0ddabb4c
AC
14662003-09-11 Andrew Cagney <cagney@redhat.com>
1467
1468 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1469 buildable since GDB 5.0.
1470 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1471 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1472 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1473 * irix4-nat.c: Delete file.
1474 * config/mips/irix4.mh: Delete file.
1475 * config/mips/irix3.mh: Delete file.
1476 * config/mips/irix3.mt: Delete file.
1477 * config/mips/tm-irix3.h: Delete file.
1478 * config/mips/nm-irix3.h: Delete file.
1479 * config/mips/xm-irix3.h: Delete file.
1480 * config/mips/nm-irix4.h: Delete file.
1481 * config/mips/xm-irix4.h: Delete file.
1482 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1483
fde2cceb
JB
14842003-09-10 J. Brobecker <brobecker@gnat.com>
1485
1486 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1487 * Makefile.in (hppa-tdep.o): Update dependencies.
1488
66f667f5
JW
14892003-09-10 James E Wilson <wilson@specifixinc.com>
1490
ef5fd69f
JW
1491 * MAINTAINERS: Change my e-mail address. Move to paper trail
1492 section.
66f667f5 1493
53e8aaea
KB
14942003-09-10 Kevin Buettner <kevinb@redhat.com>
1495
1496 * MAINTAINERS (frv): New ISA entry.
1497
dcc6aaff
KB
14982003-09-10 Kevin Buettner <kevinb@redhat.com>
1499
1500 * frv-tdep.c (dis-asm.h): Include.
1501 * Makefile.in (frv-tdep.o): Update dependencies.
1502
932644f0
JJ
15032003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1504
1505 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1506 Fix typo for high range of floating registers.
1507
91c24f0a
DC
15082003-09-09 David Carlton <carlton@kealia.com>
1509
1510 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1511 highpc initialization here out of scan_partial_symbols.
1512 (scan_partial_symbols): Restructure into a recursive version,
1513 calling add_partial_namespace and add_partial_enumeration when
1514 appropriate.
1515 (add_partial_namespace): New.
1516 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1517
c9263853
AC
15182003-09-09 Andrew Cagney <cagney@redhat.com>
1519
e56a0ecc
AC
1520 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1521 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1522 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1523 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1524
794a477a
AC
1525 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1526 (rs6000_push_dummy_call): Set the "TOC" register.
1527
c9263853
AC
1528 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1529 methods "max_register_raw_size", "max_register_virtual_size" or
1530 "register_virtual_size".
1531
afa7d0b2
ILT
15322003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1533
1534 * MAINTAINERS: Update my e-mail address.
1535
7a41266b
AC
15362003-09-09 Andrew Cagney <cagney@redhat.com>
1537
1538 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1539 (rs6000_push_dummy_call): Store the struct return address.
1540 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1541
77b2b6d4
AC
15422003-09-09 Andrew Cagney <cagney@redhat.com>
1543
1544 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1545 "ppc_sysv_abi_push_arguments".
1546 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1547 "ppc_sysv_abi_push_arguments".
1548 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1549 instead of "push_arguments".
1550 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1551
e8a7b686
AC
15522003-09-09 Andrew Cagney <cagney@redhat.com>
1553
1554 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1555 instead of CALL_DUMMY_ADDRESS.
1556
f86f5ca3
PH
15572003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1558
1559 * p-lang.c: Eliminate "register".
1560 * c-lang.c: Ditto.
1561 * expprint.c: Ditto.
1562 * f-lang.c: Ditto.
1563 * jv-lang.c: Ditto.
1564 * language.c: Ditto.
1565 * m2-lang.c: Ditto.
1566 * parse.c: Ditto.
1567 * scm-lang.c: Ditto.
1568 * objc-lang.c: Ditto.
1569
83ee270e
NC
15702003-09-09 Nick Clifton <nickc@redhat.com>
1571
1572 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1573
a89aa300
AC
15742003-09-04 Andrew Cagney <cagney@redhat.com>
1575
1576 * avr-tdep.c: Include "dis-asm.h".
1577 * cris-tdep.c: Include "dis-asm.h".
1578 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1579 instead of corresponding typedef.
1580 * h8300-tdep.c: Include "dis-asm.h".
1581 * ia64-tdep.c: Include "dis-asm.h".
1582 * i386-tdep.c: Include "dis-asm.h".
1583 (i386_print_insn): Use "struct disassemble_info" instead of
1584 corresponding typedef.
1585 * m68k-tdep.c: Include "dis-asm.h".
1586 * mcore-tdep.c: Include "dis-asm.h".
1587 * mips-tdep.c: Include "dis-asm.h".
1588 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1589 instead of corresponding typedef.
1590 * ns32k-tdep.c: Include "dis-asm.h".
1591 * s390-tdep.c: Include "dis-asm.h".
1592 * sparc-tdep.c: Include "dis-asm.h".
1593 * vax-tdep.c: Include "dis-asm.h".
1594 * v850-tdep.c: Include "dis-asm.h".
1595 * mn10300-tdep.c: Include "dis-asm.h".
1596 * rs6000-tdep.c: Include "dis-asm.h".
1597 * xstormy16-tdep.c: Include "dis-asm.h".
1598 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1599 print_insn_xstormy16.
1600 * Makefile.in (v850-tdep.o): Update dependencies.
1601 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1602 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1603 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1604 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1605 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1606 (gdbarch_h): Remove $(dis_asm_h).
1607 * disasm.c: Include "dis-asm.h".
1608 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1609 corresponding typedef.
1610 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1611 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1612 * gdbarch.sh: Do not include "dis-asm.h".
1613 (struct disassemble_info): Declare opaque.
1614 (TARGET_PRINT_INSN): Update declaration.
1615 * gdbarch.h, gdbarch.c: Re-generate.
1616
88a82a65
AC
16172003-09-08 Andrew Cagney <cagney@redhat.com>
1618
1619 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1620 CALL_DUMMY_ADDRESS, change to a predicate.
1621 * gdbarch.h, gdbarch.c: Re-generate.
1622 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1623 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1624 * infcall.c (call_function_by_hand): Ditto.
1625 * sparc-tdep.c (sparc_push_return_address): Ditto.
1626 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1627 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1628 CALL_DUMMY_ADDRESS with entry_point_address.
1629 * v850-tdep.c (v850_push_return_address): Ditto.
1630 * s390-tdep.c (s390_push_return_address): Ditto.
1631 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1632 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1633 * mcore-tdep.c (mcore_push_return_address): Ditto.
1634 * cris-tdep.c (cris_push_return_address): Ditto.
1635 * arm-tdep.c (arm_push_return_address): Ditto.
1636
3e2c4033
AC
16372003-09-08 Andrew Cagney <cagney@redhat.com>
1638
1639 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1640 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1641 and REG_UNMODIFIED to REG_SAME_VALUE.
1642 (execute_cfa_program): Update.
1643 (dwarf2_frame_cache): Update. Initialize table to
1644 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1645 location.
1646 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1647
39efb398
AC
16482003-09-08 Andrew Cagney <cagney@redhat.com>
1649
1650 * gnu-nat.c: Remove "inline" function attribute.
1651 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1652
f5cb5aca
KB
16532003-09-08 Kevin Buettner <kevinb@redhat.com>
1654
1655 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1656 target.
1657
1cb761c7
KB
16582003-09-08 Kevin Buettner <kevinb@redhat.com>
1659
1660 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1661 (frame_extra_info): Rename this struct to frv_unwind_cache.
1662 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1663 Add fields ``prev_sp'' and ``base''.
1664 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1665 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1666 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1667 Delete.
1668 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1669 Revise all callers. Fill in the unwind cache argument and make
1670 other adjustments to account for new frame mechanisms.
1671 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1672 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1673 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1674 (frv_frame_unwind, frv_frame_base): New structs.
1675 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1676 additional arguments expected by this method and adjust function
1677 body accordingly.
1678 (frv_gdbarch_init): Remove calls to the following functions:
1679 set_gdbarch_deprecated_init_frame_pc(),
1680 set_gdbarch_deprecated_saved_pc_after_call(),
1681 set_gdbarch_deprecated_frame_chain(),
1682 set_gdbarch_deprecated_frame_saved_pc(),
1683 set_gdbarch_deprecated_frame_init_saved_regs(),
1684 set_gdbarch_deprecated_push_arguments(),
1685 set_gdbarch_deprecated_push_return_address(),
1686 set_gdbarch_deprecated_pop_frame(),
1687 set_gdbarch_deprecated_call_dummy_words(),
1688 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1689 set_gdbarch_deprecated_init_extra_frame_info(),
1690 set_gdbarch_deprecated_dummy_write_sp(), and
1691 set_gdbarch_deprecated_pc_in_call_dummy().
1692 Add calls to the following functions:
1693 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1694 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1695 frame_base_set_default().
1696 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 1697
68f6cf99
MK
16982003-09-09 Mark Kettenis <kettenis@gnu.org>
1699
1700 * dwarf2-frame.c (read_encoded_value): Add support for
1701 DW_EH_PE_aligned encoding.
1702
73b65bb0
DJ
17032003-09-08 Daniel Jacobowitz <drow@mvista.com>
1704
1705 * infrun.c (normal_stop): Don't print a message if the inferior
1706 has exited.
1707
7c8a5605
JB
17082003-09-08 Jim Blandy <jimb@redhat.com>
1709
1710 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1711 * dbxread.c: #include "gdb_assert.h".
1712 (read_dbx_symtab): If the objfile has no .data section, use the
1713 section index for the .bss section instead.
1714
7dd88986
DJ
17152003-09-08 Daniel Jacobowitz <drow@mvista.com>
1716
1717 * frame.c (deprecated_safe_get_selected_frame): New function.
1718 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1719 * findvar.c (read_var_value): Call it.
1720
55ff77ac
CV
17212003-09-08 Corinna Vinschen <vinschen@redhat.com>
1722
1723 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1724 (sh64-tdep.o): Add dependencies.
1725 * configure.tgt: Add FIXME to sh-*-linux*.
1726 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1727 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 1728 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
1729 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1730 * sh64-tdep.c: New file, containing all sh64 related code from
1731 sh-tdep.c.
1732 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1733 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 1734 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
1735 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1736 * config/sh/wince.mt (TDEPFILES): Ditto.
1737
bfb39158
DJ
17382003-09-07 Daniel Jacobowitz <drow@mvista.com>
1739
1740 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1741 (stop_wait_callback): Handle !lp->signalled also.
1742 (lin_lwp_has_pending, flush_callback): New functions.
1743 (lin_lwp_wait): Call flush_callback.
1744 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1745 (linux_proc_pending_signals): New function.
1746 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1747
9407de8e
DJ
17482003-09-07 Daniel Jacobowitz <drow@mvista.com>
1749
1750 From Nick Kelsey <nickk@ubicom.com>:
1751 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1752 when the stop PC is at the beginning of a function also.
1753
2ef47cd0
DJ
17542003-09-06 Daniel Jacobowitz <drow@mvista.com>
1755
1756 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1757 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1758
6f4492c8
MK
17592003-09-06 Mark Kettenis <kettenis@gnu.org>
1760
1761 * sol-thread.c: Include "gdb_string.h".
1762
d3420b2f
MK
17632003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1764
1765 * gcore.c: Reorder include files in alphabetical order. Include
1766 "gdb_assert.h". Various coding style fixes.
1767 (derive_stack_segment, derive_heap_segment): Replace check for
1768 non-null BOTTOM and TOP with gdb_assert.
1769 (derive_heap_segment): Replace check for successful creation of
1770 ZERO with gdb_assert.
1771 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1772
5220ea4c
AC
17732003-09-04 Andrew Cagney <cagney@redhat.com>
1774
1775 * thread-db.c (verbose_dlsym): New function.
1776 (thread_db_load): Use verbose_dlsym
1777 (thread_db_new_objfile): Print that libthread_db was loaded, and
1778 that thread debugging was enabled.
1779
6e8c2c06
AC
17802003-09-04 Andrew Cagney <cagney@redhat.com>
1781
1782 * configure.tgt: Add "mips64*-*-*" target. Delete
1783 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1784 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1785 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1786 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1787 mips*-sony-*, and mips64*-*-elf* targets.
1788 * config/mips/embedl.mt: Delete file.
1789 * config/mips/embedl64.mt: Delete file.
1790 * config/mips/mips.mt: Delete file.
1791 * config/mips/mips64.mt: Delete file.
1792 * config/mips/tm-embed.h: Delete file.
1793 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1794 * config/mips/embed64.mt: Delete out-of-date comment.
1795
3a3bc038
AC
17962003-09-04 Andrew Cagney <cagney@redhat.com>
1797
1798 * hppa-tdep.c (hppa_gdbarch_init): Set
1799 "have_nonsteppable_watchpoint".
1800 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1801 * mips-tdep.c (mips_dump_tdep): Do not print
1802 HAVE_NONSTEPPABLE_WATCHPOINT.
1803 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1804 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1805 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1806 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1807
a957e642
CV
18082003-09-04 Corinna Vinschen <vinschen@redhat.com>
1809
1810 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1811 unused code. Add comment.
1812
a6fbcf2f
CV
18132003-09-04 Corinna Vinschen <vinschen@redhat.com>
1814
1815 * breakpoint.c (watchpoint_check): Check for pc being in an
1816 epilogue if watchpoint frame couldn't be found.
1817
c14a44d5
AC
18182003-09-04 Andrew Cagney <cagney@redhat.com>
1819
1820 * Makefile.in: Re-generate all dependencies.
1821
f6c40618
AC
18222003-09-03 Andrew Cagney <cagney@redhat.com>
1823
1824 * arch-utils.h (legacy_print_insn): Delete declaration.
1825 * arch-utils.c (legacy_print_insn): Delete function.
1826 * disasm.c (deprecated_tm_print_insn_info): Delete.
1827 (_initialize_disasm): Delete function, contained code initializing
1828 deprecated_tm_print_insn_info.
1829 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1830 (deprecated_tm_print_insn_info): Delete.
1831 (TARGET_PRINT_INSN): Do not provide a default.
1832 * gdbarch.h, gdbarch.c: Re-generate.
1833
242e8be5
AC
18342003-09-03 Andrew Cagney <cagney@redhat.com>
1835
1836 * disasm.c (fprintf_disasm): New function.
1837 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1838 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1839 reverts 2003-08-14 change.
1840 (_initialize_disasm): Call "init_disassemble_info", instead of
1841 INIT_DISASSEMBLE_INFO_NO_ARCH.
1842
3ffc3dda
MS
18432003-09-03 Michael Snyder <msnyder@redhat.com>
1844
1845 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1846
52d16ba8
AC
18472003-09-03 Andrew Cagney <cagney@redhat.com>
1848
1849 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1850 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1851 * symfile.c (syms_from_objfile): Update.
1852 (reread_symbols): `Update
1853 * exec.c (exec_file_attach): Update.
1854 (exec_file_attach): Update.
1855 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1856 2003-08-29 change.
1857 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1858
eb5492fa
DJ
18592003-09-03 Daniel Jacobowitz <drow@mvista.com>
1860
1861 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1862 trad-frame.h.
1863 (arm_get_cache): Delete macro.
1864 (struct arm_prologue_cache): Update comments. Make saved_regs into
1865 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1866 to prev_sp.
1867 (thumb_scan_prologue): Update for cache changes. Don't call
1868 DEPRECATED_PC_IN_CALL_DUMMY.
1869 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1870 argument and use it in desperation search for our prologue. Do not
1871 search past the specified PC.
1872 (arm_make_prologue_cache): Simplify.
1873
1874 (arm_prologue_this_id, arm_prologue_prev_register)
1875 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1876 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1877 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1878 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1879 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1880
1881 (arm_frame_chain_valid, arm_find_callers_reg)
1882 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1883 (arm_pop_frame): Delete obsolete methods.
1884 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1885
1886 (arm_gdbarch_init): Update for new frame methods. Register prologue
1887 and sigtramp unwinders. Set the default frame base method.
1888
1889 * Makefile.in (arm-tdep.o): Update dependencies.
1890 * varobj.c (find_frame_addr_in_frame_chain): Call
1891 get_frame_base_address.
1892 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1893
24de872b
DJ
18942003-09-03 Daniel Jacobowitz <drow@mvista.com>
1895
1896 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1897 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1898 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1899 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1900 Take NEXT_FRAME and CACHE arguments. Call
1901 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1902 Set unwound_pc in CACHE instead of modifying the frame argument.
1903 Don't bother checking the frame type when looking for sigtramp
1904 frames.
1905 (arm_make_prologue_cache, arm_frame_chain)
1906 (arm_init_extra_frame_info): New functions.
1907
9b8d791a
DJ
19082003-09-03 Daniel Jacobowitz <drow@mvista.com>
1909
1910 * arm-tdep.c (arm_get_cache): Define.
1911 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1912 unwound_sp, unwound_pc, and saved_regs.
1913 (thumb_scan_prologue): Take a cache instead of the frame.
1914 (arm_scan_prologue): Likewise.
1915 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1916 instead of a temporary frame.
1917 (arm_init_extra_frame_info): Allocate and use a cache.
1918 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1919
7ee3275f
AC
19202003-09-03 Andrew Cagney <cagney@redhat.com>
1921
1922 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1923 * config/mips/wince.mt (TM_CLIBS): Ditto.
1924 * config/sh/wince.mt (TM_CLIBS): Ditto.
1925 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1926 * config/sparc/sp64.mt (CC): Delete.
1927
57b29be7
AC
19282003-09-03 Andrew Cagney <cagney@redhat.com>
1929
1930 * defs.h: Do not include "arch-utils.h".
1931 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1932 GDB_MULTI_ARCH_PURE.
1933 * configure.in (GDB_MULTI_ARCH): Do not define.
1934 * configure, config.in: Regenerate.
1935 * configure.tgt: Do not set variable "gdb_multi_arch".
1936 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1937 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1938 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1939 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1940 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1941 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1942 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1943 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1944 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1945 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1946 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1947 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1948 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1949 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1950 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1951 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1952 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1953 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 1954
12e035e2
MC
19552003-08-30 Michael Chastain <mec@shout.net>
1956
1957 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1958 * config/m68k/nm-hp300hpux.h: Delete.
1959 * config/m68k/tm-hp300hpux.h: Delete.
1960 * config/m68k/xm-hp300hpux.h: Delete.
1961 * config/m68k/xm-hp300bsd.h: Delete.
1962 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1963 tm-hp300hpux.h, xm-hp300hpux.h.
1964 * somsolib.c: Remove comment about hp300 shared libraries.
1965
bda34dc2
MK
19662003-08-31 Mark Kettenis <kettenis@gnu.org>
1967
5bca7895
MK
1968 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1969 Only define PTRACE_GET_THREAD_AREA is not already defined.
1970 Various style fixes in code and comments and some additional
1971 spelling fixes in comments. Move after functions dealing with
1972 debug registers.
1973 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1974 Fix coding-style.
1975
bda34dc2
MK
1976 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1977 frame_unwind_register_unsigned instead of
1978 frame_unwind_unsigned_register.
1979
c890192f
MK
19802003-08-30 Mark Kettenis <kettenis@gnu.org>
1981
1982 * configure.in: Search for gethostbyname in libnsl.
1983 * configure: Regenerated.
1984
60fac5b8
MK
19852003-08-29 Mark Kettenis <kettenis@gnu.org>
1986
e294916c
MK
1987 * configure.in: Remove redundant AC_MSG_RESULT in check for
1988 uintptr_t in stdint.h.
1989 * configure: Regenerated.
1990
c40d267a
MK
1991 * amd64-nat.h (struct regcache): Add opaque declaration.
1992
60fac5b8
MK
1993 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1994 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1995 Change "register array" to "register cache" in comments.
1996 (x86_64_linux_gregset64_reg_offset): New variable.
1997 (GETREGS_SUPPLIES): Remove macro.
1998 (supply_gregset): Call amd64_supply_native_gregset instead of
1999 x86_64_linux_supply_gregset.
2000 (fill_gregset): Rename `regno' to `regnum'. Call
2001 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2002 (store_regs): Rename `regno' to `regnum'.
2003 (store_fpregs): Rename `regno' to `regnum'.
2004 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2005 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2006 Reorganize function a bit.
2007 (store_inferior_registers): Rename `regno' to `regnum'. Use
2008 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2009 Reorganize function a bit.
2010 (_initialize_x86_64_linux_nat): New function.
2011 * config/i386/x86-64linux.mh.
2012
546143b6
AC
20132003-08-29 Andrew Cagney <cagney@redhat.com>
2014
2015 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2016 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2017 (target_remove_watchpoint): Delete macro.
2018 (target_insert_watchpoint): Delete macro.
2019 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2020 (remote_mips_stopped_by_watchpoint): Delete declaration.
2021 (remote_mips_remove_watchpoint): Delete declaration.
2022 (remote_mips_set_watchpoint): Delete declaration.
2023 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2024 * remote-mips.c (_initialize_remote_mips): Set
2025 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2026 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2027 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2028 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2029 (mips_stopped_by_watchpoint): Rename
2030 remote_mips_stopped_by_watchpoint.
2031 (mips_can_hardware_watchpoint): Rename
2032 remote_mips_can_use_hardware_watchpoint, update function
2033 signature.
2034
7bace51b
MK
20352003-08-29 Mark Kettenis <kettenis@gnu.org>
2036
b0f5c6f2
MK
2037 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2038 USER_DS. We haven't given them a register number yet.
2039
2a6d284d
MK
2040 * amd64-nat.h: New file.
2041 * amd64-nat.c: New file.
2042 * amd64fbsd-nat.c: Include "amd64-nat.h".
2043 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2044 (amd64fbsd32_r_reg_offset): New variable.
2045 (supply_gregset): Simply call amd64_supply_native_gregset.
2046 (fill_gregset): Rename `regno' to `regnum'. Simply call
2047 amd64_collect_native_gregset.
2048 (fill_fpregset): Rename `regno' to `regnum'.
2049 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2050 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2051 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2052 `fpregset_t'. Call amd64_supply_native_gregset instead of
2053 supply_gregset. Call x86_64_supply_fxsave instead of
2054 supply_fpregset.
2055 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2056 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2057 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2058 `fpregset_t'. Call amd64_collect_native_gregset instead of
2059 fill_gregset. Call x86_64_collect_fxsave instead of
2060 fill_fpregset.
2061 (_initialize_am64fbsd_nat): Initialize
2062 amd64_native_gregset32_reg_offset and
2063 amd64_native_gregset64_reg_offset.
2064 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2065
a16d75cc
MK
2066 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2067 null pointer. Fix typo in comment.
2068
7bace51b
MK
2069 * regcache.c (supply_register): Reimplement to call
2070 regcache_raw_supply.
2071 (regcache_collect): Reimplement by calling regcache_raw_collect.
2072
9a661b68
MK
20732003-08-28 Mark Kettenis <kettenis@gnu.org>
2074
2075 * regcache.c (register_buffer): Consitify first argument.
2076 (regcache_raw_supply, regcache_raw_collect): New
2077 functions.
2078
e94cc8fa
DJ
20792003-08-28 Daniel Jacobowitz <drow@mvista.com>
2080
2081 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2082 by Nathan J. Williams.
2083
c64bd0ce
DJ
20842003-08-28 Daniel Jacobowitz <drow@mvista.com>
2085
2086 * lin-lwp.c (wait_lwp): New function, copied from
2087 stop_wait_callback. Clean up.
2088 (stop_wait_callback): Use wait_lwp.
2089
e5ab0dce
AC
20902003-08-28 Andrew Cagney <cagney@redhat.com>
2091
2092 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2093 flavour and disassembler options.
2094 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2095 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2096 deprecated_tm_print_insn_info.
a8f4cde1 2097
a788de9b
AC
20982003-08-27 Andrew Cagney <cagney@redhat.com>
2099
2100 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2101 Use target_read_memory.
2102 (s390_get_frame_info): Update. Do not reference
2103 deprecated_tm_print_insn_info.
2104 (s390_check_function_end, s390_is_sigreturn): Ditto.
2105
36482093
AC
21062003-08-27 Andrew Cagney <cagney@redhat.com>
2107
2108 * Makefile.in (cris-tdep.o): Update dependencies.
2109 * cris-tdep.c: Include "gdb_assert.h".
2110 (cris_gdbarch_init): Set print_insn.
2111 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2112 (cris_delayed_get_disassembler): Simplify, directly call the
2113 disassembler returned by cris_get_disassembler.
2114 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2115 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2116 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2117 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2118 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2119 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2120 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2121 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2122 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2123 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2124 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2125 (gdb_print_insn_sparc): Delete function.
2126 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2127 deprecated_tm_print_insn_info.
2128 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2129 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2130 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2132 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2133 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2134 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2135 (s390_gdbarch_init): Set print_insn.
2136
0285512f
AC
21372003-08-27 Andrew Cagney <cagney@redhat.com>
2138
2139 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2140 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2141 * infcall.c (call_function_by_hand): Convert the entry point
2142 address into a code address.
2143
cdcd5552
AC
21442003-08-27 Andrew Cagney <cagney@redhat.com>
2145
2146 * dsrec.c: Include "gdb_string.h".
2147 * Makefile.in (dsrec.o): Update dependencies.
2148
e85cddad
MC
21492003-08-27 Michael Chastain <mec@shout.net>
2150
2151 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2152
8bbfbb23
AC
21532003-08-27 Andrew Cagney <cagney@redhat.com>
2154
2155 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2156 (alpha_osf1_init_abi): Do not set call_dummy_address.
2157
ba058b66
DC
21582003-08-27 David Carlton <carlton@kealia.com>
2159
2160 From Randolph Chung <tausq@debian.org>:
2161 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2162 compiles with -Wformat-nonliteral -Werror.
2163
87f84c9d
JB
21642003-08-26 Jim Blandy <jimb@redhat.com>
2165
2166 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2167 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2168 bfd_lookup_symbol, since we only want symbols in code sections.
2169 (look_for_base): Pass zero as the SECT_FLAGS argument to
2170 bfd_lookup_symbol, since we're not concerned about which section
2171 the symbol is in.
2172
102d615a
JJ
21732003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2174
2175 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2176 we are frameless or the return address register is already known.
102d615a 2177
cc7ad3ea
AC
21782003-08-26 Andrew Cagney <cagney@redhat.com>
2179
2180 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2181 in size. Add comments.
2182
af8b88dd
JJ
21832003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2184
2185 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2186 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2187
e0a4f5a1
JM
21882003-08-26 Jason Merrill <jason@redhat.com>
2189
2190 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2191 case out of #ifdef MIPS block.
2192
4ae9ee8e
DJ
21932003-08-25 Daniel Jacobowitz <drow@mvista.com>
2194
2195 PR java/1322
2196 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2197 available before calling SECT_OFF_TEXT.
3c164570 2198 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2199
004d836a
JJ
22002003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2201
a8f4cde1 2202 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2203 bof, and nat0-nat127 as pseudo-registers.
2204 (ia64_frame_cache): New struct used to cache frame info.
2205 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2206 register grouping so registers without names are still saved and
004d836a 2207 restored.
a8f4cde1 2208 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2209 pseudo values.
2210 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2211 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2212 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2213 ia64_frame_cache.
2214 (examine_prologue): Change prototype to add next_frame pointer.
2215 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2216 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2217 alloc insn and if equal, mark as not frameless. At end of routine,
2218 if not frameless, calculate registers for the previous frame and store
2219 in the cache, if a cache is provided.
2220 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2221 and pass 0 for next_frame.
2222 (ia64_store_return_value): Change to use convert_typed_floating()
2223 instead of calling ia64_convert_to_raw().
2224 (ia64_extract_return_value): Change to use convert_typed_floating()
2225 instead of calling ia64_convert_to_virtual().
2226 (ia64_frame_cache): New routine to support new frame model.
2227 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2228 (ia64_frame_sniffer): Ditto.
2229 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2230 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2231 (ia64_sigtramp_frame_prev_register): Ditto.
2232 (ia64_sigtramp_frame_sniffer): Ditto.
2233 (ia64_frame_base_address): Ditto.
2234 (ia64_extract_struct_value_address): Change to issue error message.
2235 (ia64_frame_align): New routine to align sp.
2236 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2237 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2238 ia64_push_dummy_call().
2239 (ia64_push_return_address): Ditto.
2240 (ia64_unwind_dummy_id): New function.
2241 (ia64_unwind_pc): Ditto.
2242 (ia64_convert_register_p): Ditto.
2243 (ia64_register_to_value): Ditto.
2244 (ia64_value_to_register): Ditto.
2245 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2246 (ia64_register_byte, ia64_register_raw_size): Ditto.
2247 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2248 (ia64_saved_pc_after_call): Ditto.
2249 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2250 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2251 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2252 (ia64_register_convert_to_raw): Ditto.
2253 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2254 (ia64_init_extra_frame_info): Ditto.
2255 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2256 (ia64_gdbarch_init): Remove registering of deprecated functions that
2257 are no longer used. Add registration of new gdbarch functions.
2258 Remove registering deprecated_write_sp. Replace
2259 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2260 Delete set_gdbarch_deprecated_register_convertible(),
2261 set_gdbarch_deprecated_register_convert_to_virtual(), and
2262 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2263 set_gdbarch_deprecated_register_size(),
2264 set_gdbarch_deprecated_register_bytes(),
2265 set_gdbarch_pcregnum(),
2266 set_gdbarch_deprecated_register_byte(),
2267 set_gdbarch_deprecated_register_raw_size(),
2268 set_gdbarch_deprecated_max_register_raw_size(),
2269 set_gdbarch_deprecated_register_virtual_size(),
2270 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2271 Replace set_gdbarch_deprecated_extract_return_value() with
2272 set_gdbarch_extract_return_value(). Remove calls to:
2273 set_gdbarch_deprecated_saved_pc_after_call();
2274 set_gdbarch_deprecated_frame_chain(),
2275 set_gdbarch_deprecated_frame_saved_pc(),
2276 set_gdbarch_deprecated_frame_init_saved_regs(),
2277 set_gdbarch_deprecated_get_saved_register(),
2278 set_gdbarch_deprecated_call_dummy_words(),
2279 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2280 set_gdbarch_deprecated_init_extra_frame_info(),
2281 set_gdbarch_deprecated_frame_args_address(),
2282 set_gdbarch_deprecated_frame_locals_address(),
2283 and set_gdbarch_deprecated_dummy_write_sp().
2284 Add set_gdbarch_convert_register_p(),
2285 set_gdbarch_register_to_value(),
2286 set_gdbarch_value_to_register(),
2287 set_gdbarch_push_dummy_call(),
2288 set_gdbarch_frame_align(),
2289 set_gdbarch_unwind_dummy_id(),
2290 set_gdbarch_unwind_pc(),
2291 frame_unwind_append_sniffer(),
2292 frame_unwind_append_sniffer(),
2293 and frame_base_set_default().
2294
aede7613
CD
22952003-08-25 Chris Demetriou <cgd@broadcom.com>
2296
2297 * configure.tgt: Document need for special "mipsisa64" handling.
2298 (mipsisa64*-*-linux64): Handle as target linux64.
2299 (mipsisa64*-*-*): Handle as target embed64.
2300
43c3a82e
MC
23012003-08-18 Michael Chastain <mec@shout.net>
2302
2303 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2304 objfile bug.
2305
6564f77d
MK
23062003-08-24 Mark Kettenis <kettenis@gnu.org>
2307
2de139ba
MK
2308 * i387-tdep.h: Update copyright date.
2309 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2310
6564f77d
MK
2311 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2312 CFLAGS games to reflect reality.
2313
42cf1509
AC
23142003-08-24 Andrew Cagney <cagney@redhat.com>
2315
2316 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2317 GDB_MULTI_ARCH is always non-zero.
2318 * osabi.c (_initialize_gdb_osabi): Ditto.
2319 (gdbarch_init_osabi): Ditto.
2320 * sparc-tdep.c: Ditto for #if code.
2321
0485f6ad
MK
23222003-08-23 Mark Kettenis <kettenis@gnu.org>
2323
2324 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2325 Update comments.
2326 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2327 comments.
2328 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2329 x86_64_supply_fxsave.
2330 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2331 x86_64_supply_fxsave.
2332 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2333 x86_64_supply_fxsave.
2334
c7716133
AJ
23352003-08-23 Andreas Jaeger <aj@suse.de>
2336
2337 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2338 i387_supply_fxsave.
2339
ed504bdf
MK
23402003-08-23 Mark Kettenis <kettenis@gnu.org>
2341
2342 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2343 i387_supply_register.
2344 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2345 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2346 i387_supply_fsave.
2347 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2348 i387_supply_fxsave.
2349 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2350 i387_supply_fsave.
2351 * i386bsd-nat.c (supply_fpregset): Adjust call to
2352 i387_supply_fsave.
2353 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2354 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2355 supply_fpregset.
2356 (store_inferior_registers): Remove extraneous whitespace. Call
2357 i387_fill_fsave instead of fill_fpregset.
2358 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2359 (supply_fpregset): Likewise.
2360 * i386v4-nat.c (supply_fpregset): Adjust call to
2361 i387_supply_fsave.
2362 * i386-interix-nat.c (supply_fpregset): Adjust call to
2363 i387_supply_fsave.
2364 * i386-linux-nat.c (supply_fpregset): Adjust call to
2365 i387_supply_fsave.
2366 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2367 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2368 i387supply_fsave and i387_supply_fxsave.
2369 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2370 Incorporate code from `i387_supply_register.
2371 (i387_supply_register): Remove.
2372 (i387_supply_fxsave): Add `regnum' argument.
2373 Update comments.
2374 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2375 prototype.
2376 (i387_supply_register): remove prototype.
2377 Update comments.
a8f4cde1 2378
4be5d520
MC
23792003-08-22 Michael Chastain <mec@shout.net>
2380
2381 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2382 Add lines for files in gdb/testsuite/gdb.cp/* that are
2383 still not 8.3 unique.
2384
7ed85d26
DJ
23852003-08-22 Daniel Jacobowitz <drow@mvista.com>
2386
2387 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2388 TYPE_VPTR_FIELDNO is valid.
2389
eb0d3137
MK
23902003-08-19 Mark Kettenis <kettenis@gnu.org>
2391
2392 * utils.c (set_width_command): Remove prototypes.
2393 (set_screen_size): New prototype.
2394 (init_page_info): Simplify by fetching the screen size from
2395 Readline. Call set_screen_size.
2396 (set_screen_size): New function.
2397 (set_width): Add missing whitespace in comment.
2398 (set_width_command): Call set_screen_size.
2399 (set_height_command): New function.
2400 (initialize_utils): Fix formatting. Make "set height" command
2401 call set_height_command. Remove redundant code that turns off
2402 pagination if output isn't a terminal. Remove redundant call to
2403 set_width_command.
a8f4cde1 2404
7e6d0ac8
MK
24052003-08-22 Mark Kettenis <kettenis@gnu.org>
2406
3567a8ea
MK
2407 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2408 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2409 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2410 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2411 `case' keyword.
2412 (sparc64_register_info): Give the reister with number
2413 SPARC64_STATE_REGNUM a name.
2414 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2415 %asi and %ccr.
2416 (sparc64_push_dummy_call): Take BIAS into account when checking
2417 stcak alignment.
2418 (sparc_software_single_step): Remove assertions that check whether
2419 NPC and NNPC were zero.
2420 (sparc_supply_rwindow): Make public. Merge functionality with
2421 sparc64_supply_rwindow.
2422 (sparc_fill_rwindow): Make public. Merge functionality with
2423 sparc64_fill_rwindow.
2424 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2425 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2426 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2427 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2428 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2429
7e6d0ac8
MK
2430 * reggroups.c: Add whitespace after declarations of local
2431 variables in functions.
2432
72e5f484
MC
24332003-08-21 Michael Chastain <mec@shout.net>
2434
2435 * gdbtypes.h: Change array bound type from an int to enum.
2436
435ac228
AC
24372003-08-21 Andrew Cagney <cagney@redhat.com>
2438
2439 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2440 * config/sparc/tm-sparc.h: Ditto.
2441 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2442 unconditionally.
2443 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2444
0d0e1a63
MK
24452003-07-13 Mark Kettenis <kettenis@gnu.org>
2446
2447 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2448 (register_objfile_data, set_objfile_data, objfile_data): New
2449 prototypes.
2450 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2451 prototypes.
2452 (allocate_objfile): Call objfile_alloc_data.
2453 (free_objfile): Call objfile_free_data.
2454 (struct objfile_data): New.
2455 (struct objfile_data_registration): New.
2456 (struct objfile_data_registry): New.
2457 (objfile_data_registry): New variable.
2458 (register_objfile_data): New function.
2459 (objfile_alloc_data, objfile_free_data): New functions.
2460 (set_objfile_data, objfile_data): New functions.
2461 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2462 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2463 (_initialize_dwarf2_frame): New function and prototype.
2464
d90cf509
AC
24652003-08-21 Andrew Cagney <cagney@redhat.com>
2466
2467 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2468 a specific architecture.
2469 * arch-utils.h (set_architecture_from_arch_mach): Delete
2470 declaration.
2471 (target_architecture_hook): Delete declaration.
2472 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2473 (default_float_format): Assume GDB_MULTI_ARCH.
2474 (default_double_format): Assume GDB_MULTI_ARCH.
2475 (set_endian_from_file): Delete function.
2476 (arch_ok): Delete function.
2477 (set_arch): Delete function.
2478 (set_architecture_from_arch_mach): Delete function.
2479 (set_architecture_from_file): Delete function.
2480 (set_architecture): Assume GDB_MULTI_ARCH.
2481 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2482
8b39fe56
MK
24832003-08-21 Mark Kettenis <kettenis@gnu.org>
2484
2485 Rewrite FreeBSD/sparc64 native configuration.
2486 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2487 * sparc64fbsd-nat.c: New file.
2488 * sparc64fbsd-tdep.c: New file.
2489 * sparc64-tdep.c sparc64-tdep.h: New files.
2490 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2491 sparc64fbsd-tdep.o): New dependencies.
2492 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2493 and sparc64fbsd-tdep.c.
2494 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2495 * config/sparc/fbsd.mh: Remove copyright notice.
2496 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2497 sparcbsd-nat.o.
2498 * config/sparc/fbsd.mt: Remove copyright notice.
2499 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2500 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2501 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2502 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2503 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2504 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2505 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2506 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2507 "sparc/tm-sp64.h".
2508 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2509 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2510
a7f19c79
MC
25112003-08-21 Michael Chastain <mec@shout.net>
2512
2513 * symtab.h: Add doco on the space critical structures and
2514 some measurements of space usage.
2515
da08ea5b
MS
25162003-08-21 Michael Snyder <msnyder@redhat.com>
2517
2518 * tracepoint.c (trace_dump_command): Trace break address
2519 is subject to DECR_PC_AFTER_BREAK.
2520 (set_traceframe_context): Make "trace_line" an int.
2521 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2522
6df2bf50
MS
25232003-08-20 Michael Snyder <msnyder@redhat.com>
2524
2525 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2526 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2527 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2528 argument passing.
a8f4cde1 2529 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2530 functions, replace sh_push_dummy_call.
2531 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2532
0955bbf0
MC
25332003-08-20 Michael Chastain <mec@shout.net>
2534
2535 * gdbtypes.h (struct main_type): Rearrange to save space.
2536
260a4188
MS
25372003-08-20 Michael Snyder <msnyder@redhat.com>
2538
2539 * trad-frame.c: Comment typo fix.
2540
8baa6f92
KB
25412003-08-20 Michael Snyder <msnyder@redhat.com>
2542 Kevin Buettner <kevinb@redhat.com>
2543
2544 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2545 (frv_frame_init_saved_regs): Add declaration.
2546 (frame_extra_info): Add new field ``saved_regs''.
2547 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2548 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2549 Update frame related code.
2550 (frv_extract_struct_value_address): Adjust formatting.
2551 * Makefile.in (frv-tdep.o): Update dependencies.
2552 * config/frv/tm-frv.h (target_insert_watchpoint)
2553 (target_remove_watchpoint, target_insert_hw_breakpoint)
2554 (target_remove_hw_breakpoint): Delete these macros.
2555 (remote_insert_watchpoint, remote_remove_watchpoint)
2556 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2557 these declarations.
2558
87193939
MC
25592003-08-20 Michael Chastain <mec@shout.net>
2560
2561 * defs.h (ENUM_BITFIELD): New macro.
2562 * symtab.h (ENUM_BITFIELD): Use it.
2563 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2564
062103ba
SA
25652003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2566
2567 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2568
8b148df9
AC
25692003-08-18 Andrew Cagney <cagney@redhat.com>
2570
2571 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2572 * gdbarch.h, gdbarch.c: Re-generate.
2573 * infcall.c (call_function_by_hand): Adjust the SP by
2574 frame_red_zone_size before allocating any stack space.
2575 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2576 * x86-64-tdep.c (x86_64_frame_align): New function.
2577 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2578
2579 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2580 Remove code adjusting SP so that it skips over the Red Zone.
2581
954a4db8
MK
25822003-08-18 Mark Kettenis <kettenis@gnu.org>
2583
2584 * NEWS (New native configurations): Mention FreeBSD/amd64.
2585
1a241548
AC
25862003-08-18 Andrew Cagney <cagney@redhat.com>
2587
2588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2589 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2590 "m68k_frame_p".
2591 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2592
f82b2acd
MK
25932003-08-18 Mark Kettenis <kettenis@gnu.org>
2594
2595 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2596
4056d258
ML
25972003-08-18 Michal Ludvig <mludvig@suse.cz>
2598
2599 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2600 Define.
2601 * i386-linux-nat.c: Include "linux-nat.h".
2602 (child_post_startup_inferior): New function.
a8f4cde1 2603
99ab4326
MK
26042003-08-18 Mark Kettenis <kettenis@gnu.org>
2605
2606 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2607 at the start of a frameless function. This probably fixes PR
2608 backtrace/1338.
2609
c8d5f0d6
MC
26102003-08-17 Michael Chastain <mec@shout.net>
2611
2612 * symfile.c (find_sym_fns): Remove special case for apollo target.
2613
9016a515
DJ
26142003-08-17 Daniel Jacobowitz <drow@mvista.com>
2615
2616 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2617 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2618 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2619 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2620 (linux_supports_tracevforkdone): New function.
2621 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2622 TRACEVFORKDONE.
2623 (child_follow_fork): Handle vfork.
2624 (linux_handle_extended_wait): Likewise. Also handle exec.
2625 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2626 * NEWS: Mention fork tracing.
2627
c538c11c
DJ
26282003-08-17 Daniel Jacobowitz <drow@mvista.com>
2629
2630 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2631
4de4c07c
DJ
26322003-08-17 Daniel Jacobowitz <drow@mvista.com>
2633
2634 * Makefile.in (i386-linux-nat.o): Update dependencies.
2635 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2636 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2637 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2638 * i386-linux-nat.c: Include "linux-nat.h".
2639 (child_post_startup_inferior): New function.
2640 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2641 * infptrace.c (kill_inferior): Wrap in #ifdef.
2642 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2643 attaching to each LWP.
2644 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2645 (init_lin_lwp_ops): Fill in some more operations.
2646 * linux-nat.h (linux_enable_event_reporting)
2647 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2648 prototypes.
2649 * linux-nat.c (linux_enable_event_reporting): New function.
2650 (child_post_attach, linux_child_post_startup_inferior)
2651 (child_post_startup_inferior, child_follow_fork)
2652 (linux_handle_extended_wait, kill_inferior): New functions.
2653
7996bcec
AC
26542003-08-16 Andrew Cagney <cagney@redhat.com>
2655
2656 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2657 * gdbarch.h, gdbarch.c: Re-generate.
2658
3d48a7a0
MK
26592003-08-16 Mark Kettenis <kettenis@gnu.org>
2660
2661 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2662
7989c619
AC
26632003-08-16 Andrew Cagney <cagney@redhat.com>
2664
2665 * NEWS: Mention that "set prompt-escape-char" was deleted.
2666 * top.c (get_prompt_1): Delete function.
2667 (gdb_prompt_escape):
2668 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2669 prompt-escape-char" command.
2670 (MAX_PROMPT_SIZE): Delete macro.
2671 (get_prompt): Simplify, do not call get_prompt_1.
2672
07978cd8
AC
26732003-08-16 Andrew Cagney <cagney@redhat.com>
2674
2675 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2676 -Werror. -Wformat-nonliteral problems.
2677
3ff7cf9e
JB
26782003-08-15 J. Brobecker <brobecker@gnat.com>
2679
2680 Further multiarching work mostly for hppa64-*-hpux11:
2681 * hppa-tdep.h: New file.
2682 * hppa-tdep.c: #include hppa-tdep.c.
2683 (hppa32_num_regs): Renamed from hppa_num_regs.
2684 (hppa64_num_regs): New constant.
2685 (hppa64_call_dummy_breakpoint_offset): New constant.
2686 (hppa32_call_dummy_length): New constant.
2687 (hppa64_call_dummy_length): New constant.
2688 (hppa32_stack_align): Make name 32bit explicit.
2689 (hppa32_register_virtual_type): Likewise.
2690 (hppa32_extract_return_value): Likewise.
2691 (hppa32_use_struct_convention): Likewise.
2692 (hppa32_store_return_value): Likewise.
2693 (hppa64_register_virtual_type): New function.
2694 (hppa64_extract_return_value): New function.
2695 (hppa64_use_struct_convention): New function.
2696 (hppa64_store_return_value): New function.
2697 (hppa_frame_locals_address): Remove declaration, function does
2698 not exist anymore.
2699 (hppa_register_byte): Add support for PA64 ABI.
2700 (hppa_gdbarch_init): Add support for PA64 ABI.
2701 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2702 Make name 32bit explicit.
2703 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2704 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2705 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2706 (hppa64_hpux_frame_base_before_sigtramp): New function.
2707 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2708 * config/pa/tm-hppa64.h: Remove macros that are no longer
2709 necessary now that the gdbarch vector is properly setup.
a8f4cde1 2710 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
2711 * config/pa/tm-hppah.h: Update function calls in macros
2712 following the function renaming in hppa-hpux-tdep.c.
2713 * Makefile.in (hppa_tdep_h): New variable.
2714 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2715
5d05ca6d
MS
27162003-08-14 Michael Snyder <msnyder@redhat.com>
2717
2718 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2719
37ba2569
JB
27202003-08-13 J. Brobecker <brobecker@gnat.com>
2721
2722 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2723 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2724 routine.
2725
aed7f26a
MS
27262003-08-13 Michael Snyder <msnyder@redhat.com>
2727
2728 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2729 (frv_saved_pc_after_call): Use deprecated ftype.
2730 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2731 (frv_remote_translate_xfer_address): Remove.
2732 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2733
752d4ac1
JB
27342003-08-13 J. Brobecker <brobecker@gnat.com>
2735
2736 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2737 initialization after the common gdbarch initialization, not before.
2738
1426ac1d
JB
27392003-08-13 J. Brobecker <brobecker@gnat.com>
2740
2741 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2742 (ADDR_BITS_REMOVE): Remove, redundant.
2743
b6fbdd1d
JB
27442003-08-13 J. Brobecker <brobecker@gnat.com>
2745
2746 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2747 gdbarch method to clear the 2 low bits of text addresses.
2748
44160db3
AC
27492003-08-12 Andrew Cagney <cagney@redhat.com>
2750
2751 * Makefile.in (dsrec.o): Update dependencies.
2752 * dsrec.c: Include "gdb_assert.h".
2753 (make_srec): Use snprintf instead of sprintf, use a literal format
2754 string.
2755
bcf7d3ca
AC
27562003-08-12 Andrew Cagney <cagney@redhat.com>
2757
2758 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2759 FRAME_OBSTACK_ZALLOC.
2760
49ed40de
KB
27612003-08-12 Kevin Buettner <kevinb@redhat.com>
2762
2763 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2764 SSE registers.
2765
b246147c
MK
27662003-08-10 Mark Kettenis <kettenis@gnu.org>
2767
2768 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2769 amd64fbsd_sc_reg_offset): Add extern declarations.
2770 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2771 declarations.
2772
d95fdc0d
BE
27732003-08-11 Ben Elliston <bje@wasabisystems.com>
2774
2775 * MAINTAINERS (write after approval): Update my mail address.
2776
cf6a0e73
AC
27772003-08-10 Andrew Cagney <cagney@redhat.com>
2778
2779 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2780
f837910f
MK
27812003-08-10 Mark Kettenis <kettenis@gnu.org>
2782
e2dbbd2d
MK
2783 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2784 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2785 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2786 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2787 i386bsd_sc_reg_offset): Add extern declarations.
2788 * i386obsd-nat.c: Include "i386-tdep.h"
2789 (_initialize_i386obsd_nat): Remove extern declarations.
2790 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2791 declarations.
2792 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2793 declarations.
2794
f837910f
MK
2795 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2796 instead of frame_read_register.
2797 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2798 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2799 SP_REGNUM.
2800 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2801 instead of frame_unwind_unsigned_register. Use
2802 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2803 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2804 instead of read_register. Use builtin_type_void_data_ptr instead
2805 of builtin_type_void_func_ptr when extracting the address of the
2806 jmp_buf.
2807 (i386_extract_return_value, i386_store_return_value,
2808 i386_pseudo_register_read, i386_pseudo_register_write): Use
2809 register_size instead REGISTER_RAW_SIZE.
2810
edcf254d
AC
28112003-08-10 Andrew Cagney <cagney@redhat.com>
2812
2813 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2814 sprintf. Make "name" constant.
2815
26604a34
MK
28162003-08-10 Mark Kettenis <kettenis@gnu.org>
2817
192285c6
MK
2818 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2819 instead of frame_read_register.
f837910f
MK
2820 (i387_print_float_info): Use get_frame_register and
2821 get_frame_register_unsigned instead of frame_register_read.
192285c6 2822
f0925262
MK
2823 * i386fbsd-nat.c: Include "i386-tdep.h".
2824 (child_resume): Make `eflags' an ULONGEST. Use
2825 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2826 instead of register_read and register_write.
2827
a144416f
MK
2828 * i386bsd-nat.c (fetch_inferior_registers,
2829 store_inferior_registers): Don't use && at the end of a line.
2830 (_initialize_i386bsd_nat): Fix typo.
2831
fec74868
MK
2832 * frame.c (_initialize_frame): Add missing backslash.
2833
87232496
MK
2834 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2835 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2836 and supply_register instead of manipulating the register buffer
2837 directly.
2838
c9b9de0b
MK
2839 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2840 * config/i386/nm-i386sol2.h
2841 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2842
26604a34
MK
2843 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2844 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2845 instructions that GCC likes to mingle into the prologue. Fixes
2846 gdb/1253 and gdb/1255.
2847
25d29d70
AC
28482003-08-09 Andrew Cagney <cagney@redhat.com>
2849
2850 Fix GDB PR cli/926.
2851 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2852 * command.h (add_setshow_uinteger_cmd): Declare.
2853 * frame.c (set_backtrace_cmd): New function.
2854 (show_backtrace_cmd): New function.
2855 * frame.c (_initialize_frame): Replace "set/show
2856 backtrace-below-main" with "set/show backtrace past-main". Add
2857 command "set/show backtrace limit".
2858 (backtrace_past_main): Rename "backtrace_below_main".
2859 (backtrace_limit): New variable.
2860 (get_prev_frame): Update. Check the backtrace_limit.
2861
9ebf4acf
AC
28622003-08-09 Andrew Cagney <cagney@redhat.com>
2863
2864 * defs.h (xstrprintf): Declare.
2865 * utils.c (xstrprintf): New function.
2866 * breakpoint.c (insert_breakpoints): Replace sprintf and
2867 non-literal format strings, with xstrprintf and cleanups.
2868 (delete_breakpoint,breakpoint_re_set): Ditto.
2869 (commands_command, insert_breakpoints): Ditto.
2870 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2871 (break_at_finish_command_1): Ditto.
2872
3771659b
AC
28732003-08-09 Andrew Cagney <cagney@redhat.com>
2874
2875 * MAINTAINERS (language support): List Adam Fedor as Objective C
2876 maintainer.
2877
b4263afa
JB
28782003-08-08 J. Brobecker <brobecker@gnat.com>
2879
2880 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2881 are now multiarched.
2882
d84defb1
JB
28832003-08-08 J. Brobecker <brobecker@gnat.com>
2884
2885 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2886 longer necessary now that hppa64 is partially multiarch'ed.
2887
f786f615
AC
28882003-08-08 Andrew Cagney <cagney@redhat.com>
2889
2890 * interps.c (interp_set): Check for a NULL "old_interp".
2891
c938e9b0
L
28922003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2893
2894 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2895 (install-only): Support DESTDIR.
2896 (uninstall): Likewise.
2897 (install-gdbtk): Likewise.
2898
9a146a11
EZ
28992003-08-08 Elena Zannoni <ezannoni@redhat.com>
2900
2901 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2902 contains something meaningful at all times.
2903
2904Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2905
62599e99 2906 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2907
56296155
BC
2908Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2909
62599e99 2910 * MAINTAINERS (write after approval): Added self.
56296155 2911
9710e734
AC
29122003-08-07 Andrew Cagney <cagney@redhat.com>
2913
2914 * inferior.h (AT_SYMBOL): Define.
2915 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2916 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2917 * mips-tdep.c (mips_call_dummy_address): Delete function.
2918 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2919 set call_dummy_address.
2920
98b3ab73
AC
29212003-08-07 Andrew Cagney <cagney@redhat.com>
2922
2923 * language.c (op_error): Delete function.
2924 (binop_type_check): Delete function.
2925 * language.h (type_op_error, range_op_error): Delete macros.
2926 (op_error): Delete declaration.
2927
2fcf52f0
AC
29282003-08-07 Andrew Cagney <cagney@redhat.com>
2929
2930 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2931
abd4220e 29322003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2933
abd4220e 2934 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2935 (x86_64_push_arguments): Skip the red zone.
abd4220e 2936
9dd5f34f
AC
29372003-08-05 Andrew Cagney <cagney@redhat.com>
2938
2939 * reggroups.c (reggroup_next): Check for the final entry.
2940
e5e78edc
AC
29412003-08-04 Andrew Cagney <cagney@redhat.com>
2942
ab4e3d93
AC
2943 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2944 * cli/cli-script.c (define_command): Call query directly, instead
2945 of passing it a buffer.
2946 * ocd.c (ocd_error): Pass error a constant format string.
2947 * remote-mips.c (mips_error): Use fputs_filtered.
2948
1062ca82
AC
2949 * solib-svr4.c (_initialize_svr4_solib): Update
2950 register_gdbarch_data call.
2951 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2952
fcc1c85c
AC
2953 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2954 (register_gdbarch_data): Delete "free" parameter. Update
2955 comments.
2956 * gdbarch.h, gdbarch.c: Re-generate.
2957 * reggroups.c (_initialize_reggroup): Update.
2958 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2959 * frame-base.c (_initialize_frame_base): Update.
2960 * frame-unwind.c (_initialize_frame_unwind): Update.
2961 * user-regs.c (_initialize_user_regs): Update.
2962 * remote.c (_initialize_remote): Update.
2963 * regcache.c (_initialize_regcache): Update.
2964
116f06ea
AC
2965 * regcache.c (xfree_regcache_descr): Delete function.
2966 (_initialize_regcache): Update call to register_gdbarch_data.
2967 (init_regcache_descr, init_legacy_regcache_descr): Use
2968 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2969
e5e78edc
AC
2970 * remote.c (free_remote_state): Delete function.
2971 (_initialize_remote): Update register_gdbarch_data.
2972 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2973 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2974
6c7d17ba
AC
29752003-08-04 Andrew Cagney <cagney@redhat.com>
2976
2977 * reggroups.c (struct reggroup_el): Define.
2978 (struct reggroups): Delete field "nr_group". Replace array
2979 "group" with a "first" to "last" linked list.
2980 (reggroups_init): Update. Allocate using gdbarch's obstack.
2981 (reggroups_free): Delete function.
2982 (add_group): Update. Add "el" parameter.
2983 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2984 (default_groups): Update.
2985 (reggroup_next): Replace reggroups.
2986 (reggroups_dump): Update.
2987 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2988 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2989 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2990
89b7795b
DJ
29912003-08-04 Daniel Jacobowitz <drow@mvista.com>
2992
2993 * Makefile.in (tui-interp.o): Update dependencies.
2994
306d9ac5
DC
29952003-08-04 David Carlton <carlton@kealia.com>
2996
2997 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2998 to internal_error call.
2999 * source.c (forward_search_command): Add "%s" format argument.
3000 (reverse_search_command): Ditto.
3001 * top.c (quit_confirm): Ditto.
3002 * cli/cli-setshow.c (do_setshow_command): Ditto.
3003 * cp-valprint.c (cp_print_class_method): Replace
3004 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3005 (cp_print_class_member): Ditto.
3006 * event-top.c (command_line_handler): Ditto.
3007 * linux-proc.c (linux_info_proc_cmd): Ditto.
3008 * p-typeprint.c (pascal_type_print_base): Ditto.
3009 * p-valprint.c (pascal_object_print_class_method): Ditto.
3010 (pascal_object_print_class_member): Ditto.
3011 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3012 * remote.c (remote_cisco_section_offsets): Ditto.
3013 * top.c (command_line_input): Ditto.
3014 * utils.c (vwarning,error_stream,quit): Ditto.
3015 * valprint.c (print_floating,print_binary_chars)
3016 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3017
57bfe177
AC
30182003-08-04 Andrew Cagney <cagney@redhat.com>
3019
3020 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3021
e546b999
AC
30222003-08-02 Andrew Cagney <cagney@redhat.com>
3023
3024 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3025 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3026 amd64fbsd-nat.c.
3027
91092ee5
AC
30282003-08-02 Andrew Cagney <cagney@redhat.com>
3029
3030 * Makefile.in: Update all dependencies and definitions.
3031
889f28e2
AF
30322003-08-02 Adam Fedor <fedor@gnu.org>
3033
3034 * linespec.c (is_objc_method_format): New function
3035 (decode_line_1, locate_first_half): Use it.
3036 Fixes PR objc/1298
3037
880bc914
AC
30382003-08-01 Andrew Cagney <cagney@redhat.com>
3039
3040 * NEWS: Mention that m32r is multi-arch.
3041 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3042 * configure.tgt: Recognize m32r-*-*.
3043 * config/m32r/tm-m32r.h: Delete file.
3044 * config/m32r/m32r.mt: New file.
a8f4cde1 3045 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3046 gethostname succeeds, in order to avoid a compilation
3047 warning.
3048 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3049 compiler warning.
3050
19f59343
MS
30512003-08-01 Michael Snyder <msnyder@redhat.com>
3052
3053 * sh-tdep.c (sh_frame_align): New gdbarch method.
3054 (sh_gdbarch_init): Set up frame_align method.
3055
4e7d7511
MS
30562003-07-31 Michael Snyder <msnyder@redhat.com>
3057
3058 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3059 which is already covered by the new frames infrastructure.
3060
63022984
AC
30612003-07-31 Andrew Cagney <cagney@redhat.com>
3062
3063 * user-regs.c (struct user_reg): Add "next" link.
3064 (struct user_regs): Replace "user" with "first" and "last" links.
3065 (append_user_reg): Add pre-allocated "reg" parameter.
3066 (builtin_user_regs): Provide initial value for "last".
3067 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3068 (user_regs_init): Allocate memory from the gdbarch obstack.
3069 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3070 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3071 linked list.
3072 (usernum_to_user_reg): New function.
3073 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3074 (value_of_user_reg): Use usernum_to_user_reg.
3075 (user_regs_free): Delete function.
3076 (_initialize_user_regs): Update register_gdbarch_data call.
3077
7cf6e574
DJ
30782003-07-31 Daniel Jacobowitz <drow@mvista.com>
3079
3080 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3081
c48a845b
MS
30822003-07-30 Michael Snyder <msnyder@redhat.com>
3083
4e7d7511 3084 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3085 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3086 value_being_returned.
3087 * infcmd.c (print_return_value): Pass zero as struct_addr.
3088 * values.c (value_being_returned): If struct_addr is passed,
3089 use it instead of trying to recover it from the inferior.
3090
f0d8db19
KB
30912003-07-30 Kevin Buettner <kevinb@redhat.com>
3092
3093 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3094 the prologue analyzer won't need to attempt to extract the pc
3095 value from the woefully incomplete dummy frame.
3096 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3097 possible. Disable code which modifies the frame.
3098
e5c113a1
AC
30992003-07-28 Andrew Cagney <cagney@redhat.com>
3100
3101 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3102 to level 2.
3103 (annotate_breakpoints_table, annotate_record): Ditto.
3104 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3105 (annotate_field_name_end, annotate_field_value): Ditto.
3106 (annotate_field_end, annotate_frame_source_begin): Ditto.
3107 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3108 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3109 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3110 (annotate_frame_address_end, annotate_frame_address): Ditto.
3111 (annotate_frame_args, annotate_frame_end): Ditto.
3112 (annotate_frame_where, annotate_arg_begin): Ditto.
3113 (annotate_arg_name_end, annotate_arg_value): Ditto.
3114 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3115 (annotate_function_call, annotate_signal_name): Ditto.
3116 (annotate_signal_string, annotate_signal_name_end): Ditto.
3117 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3118 (annotate_value_begin, annotate_value_history_value): Ditto.
3119 (annotate_value_history_end, annotate_value_end): Ditto.
3120 (annotate_display_begin, annotate_display_number_end): Ditto.
3121 (annotate_display_format, annotate_display_expression): Ditto.
3122 (annotate_display_expression_end, annotate_display_value): Ditto.
3123 (annotate_display_end, annotate_array_section_begin): Ditto.
3124 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3125 (annotate_elt, annotate_array_section_end): Ditto.
3126
bb1db049
AC
31272003-07-28 Andrew Cagney <cagney@redhat.com>
3128
3129 * regcache.c (struct regcache_descr): Update comments on
3130 nr_raw_registers.
3131 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3132 sizeof_raw_register_valid_p.
3133 (init_regcache_descr): Set nr_raw_registers and
3134 sizeof_raw_register_valid_p before calling
3135 init_legacy_regcache_descr.
3136
20e6603c
AC
31372003-07-28 Andrew Cagney <cagney@redhat.com>
3138
3139 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3140 MOD NUM_REGS.
3141
db742940
DJ
31422003-07-28 Daniel Jacobowitz <drow@mvista.com>
3143
3144 * thread.c (info_threads_command): Use get_selected_frame ().
3145 Check that there is at least one non-sentinel frame.
3146
ce7f4371
SC
31472003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3148
3149 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3150 (m68hc11_pop_frame): Remove.
3151 (m68hc11_frame_saved_pc): Remove.
3152 (m68hc11_frame_chain): Remove.
3153 (m68hc11_frame_init_saved_regs): Remove.
3154 (m68hc11_init_extra_frame_info): Remove.
3155 (m68hc11_store_struct_return): Remove.
3156 (m68hc11_saved_pc_after_call): Remove.
3157
1ea653ae
SC
31582003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3159
3160 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3161 frame unwind information.
3162 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3163 and adapted for frame unwinding.
3164 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3165 (m68hc11_unwind_pc): New function.
3166 (m68hc11_frame_unwind_cache): New function to analyze frames.
3167 (m68hc11_frame_this_id): New function to create new frame struct.
3168 (m68hc11_frame_prev_register): New function to unwind a register from
3169 the frame.
3170 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3171 (m68hc11_frame_p): New function for the above.
3172 (m68hc11_frame_base_address): New function to return fp of frame.
3173 (m68hc11_frame_args_address): Update for frame.
3174 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3175 (m68hc11_unwind_sp): New function.
3176 (m68hc11_unwind_dummy_id): New function.
3177 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3178 calls.
3179
c8a7f6ac
SC
31802003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3181
3182 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3183 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3184 when we are beyond the current pc.
3185
3dc990bf
SC
31862003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3187
3188 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3189 from m68hc11_push_arguments.
3190 (m68hc11_push_arguments): Remove.
3191 (m68hc11_push_return_address): Remove.
3192 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3193 handlers; remove deprecated_extra_stack_alignment_needed.
3194
222e5d1d
AC
31952003-07-27 Andrew Cagney <cagney@redhat.com>
3196
3197 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3198 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3199 REAL_PC and not the pointer.
3200 * hppa-hpux-tdep.c: Include frame.h
3201
a7e9a47e
AC
32022003-07-27 Andrew Cagney <cagney@redhat.com>
3203
3204 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3205 GDB_MULTI_ACH_PARTIAL.
3206
7e3dd49e
AC
32072003-07-27 Andrew Cagney <cagney@redhat.com>
3208
3209 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3210 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3211 operator at start and not end of line.
3212 (decode_prologue): Ditto.
3213 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3214 frame_unwind_register_unsigned instead of
3215 frame_unwind_unsigned_register.
3216 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3217 read_register.
3218 (m32r_push_dummy_call): Use register_size instead of
3219 REGISTER_RAW_SIZE.
3220 (m32r_frame_sniffer): Replace m32r_frame_p.
3221 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3222 * m32r-rom.c (report_transfer_performance): Delete extern
3223 declaration.
3224 (m32r_load, m32r_upload_command): Use print_transfer_performance
3225 instead of report_transfer_performance.
3226 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3227 / add_show_from_set.
3228
0880807f
AC
32292003-07-26 Andrew Cagney <cagney@redhat.com>
3230
3231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3232 store_return_value and extract_struct_value_address.
3233
64ae9269
DJ
32342003-07-26 Daniel Jacobowitz <drow@mvista.com>
3235
3236 PR c++/1267
3237 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3238 NULL, default to the section containing PC.
3239
e286caf2
SC
32402003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3241
3242 * NEWS: Mention "regs" deprecated for m68hc11 too.
3243
3244 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3245 (m68hc11_print_register): New function to print out one register.
3246 (m68hc11_print_registers_info): New function to print registers.
3247 (show_regs): Deprecate and use the above.
3248 (m68hc11_gdbarch_init): Install the print_registers_info.
3249
705b278b
JJ
32502003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3251
3252 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3253 that we have a SIGTRAP before returning non-zero.
3254
63cd4198
EZ
32552003-07-23 Michal Ludvig <mludvig@suse.cz>
3256 Elena Zannoni <ezannoni@redhat.com>
3257
a8f4cde1 3258 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3259 find_function_start_sal() returns empty record.
3260
6926787d
AS
32612003-07-23 Andreas Schwab <schwab@suse.de>
3262
3263 * ia64-tdep.c (ia64_print_insn): New function.
3264 (ia64_gdbarch_init): Set print_insn to it.
3265 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3266 deprecated_tm_print_insn_info.
3267
708cc1b6
MS
32682003-07-22 Michael Snyder <msnyder@redhat.com>
3269
3270 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3271 handle 8-bit returns (long long).
3272 (h8300h_extract_return_value): Ditto.
3273 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3274
aebd7893
AC
32752003-07-22 Andrew Cagney <cagney@redhat.com>
3276
3277 * gdbarch.c Include "gdb_obstack.h".
3278 (struct gdbarch): Add an "obstack".
3279 (alloc_gdbarch_data): Allocate the gdbarch data using
3280 GDBARCH_OBSTACK_CALLOC.
3281 (free_gdbarch_data): Delete function.
3282 (gdbarch_obstack_zalloc): New function.
3283 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3284 Assert that the architecture is not initialized.
3285 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3286 vector from the obstack.
3287 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3288 architecture obstack.
3289 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3290 (set_gdbarch_data): Assert that the data is not initialized.
3291 (struct gdbarch_data): Delete member "free".
3292 (register_gdbarch_data): Do not initialize "free".
3293 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3294
153721e6
AC
32952003-07-22 Andrew Cagney <cagney@redhat.com>
3296
3297 * configure.in (build_warnings): Add -Wformat-nonliteral.
3298 * configure: Re-generate.
3299
c193f044 33002003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3301
3302 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3303
c3228f12
EZ
33042003-07-22 Elena Zannoni <ezannoni@redhat.com>
3305
3306 * findvar.c (read_var_value): Remove case for thread local storage
3307 variables. It is now entirely handled by the dwarf2 location
3308 expression code.
3309 * printcmd.c (address_info): Ditto.
3310 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3311 enumeration value.
3312 (struct symbol): Remove objfile field, which was used by
3313 LOC_THREAD_LOCAL_STATIC only.
3314 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3315 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3316 usage of objfile pointer.
3317 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3318 thread local variables.
3319 Add include of objfiles.h.
3320 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3321 storage variables.
3322 * Makefile.in (dwarf2loc.o): Update dependencies.
3323
aef9bcd2
AC
33242003-07-22 Andrew Cagney <cagney@redhat.com>
3325
3326 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3327 get_frame_base.
3328 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3329 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3330 (struct value): Add opaque declaration.
3331 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3332
d95a8903
AC
33332003-07-21 Andrew Cagney <cagney@redhat.com>
3334
3335 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3336 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3337
4db73d49
SC
33382003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3339
a8f4cde1 3340 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3341 regcache_cooked_read_unsigned instead of read_register.
3342 (m68hc11_saved_pc_after_call): Likewise.
3343 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3344 instead of write_register.
3345 (m68hc11_register_type): New function.
3346 (m68hc11_register_virtual_type): Remove.
3347 (m68hc11_store_return_value): Convert to use the regcache.
3348 (m68hc11_extract_struct_value_address): Likewise.
3349 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3350 m68hc11_register_type; undeprecate store_return_value and
3351 extract_struct_value_address.
3352
ef2b8fcd
SC
33532003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3354
3355 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3356 and translate to use regcache.
3357 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3358
625b0b97
AC
33592003-07-18 Andrew Cagney <cagney@redhat.com>
3360
3361 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3362 * gdbarch.h, gdbarch.c: Re-generate.
3363 * i386-tdep.c (i386_gdbarch_init): Do not set
3364 DWARF2_BUILD_FRAME_INFO.
3365 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3366 unconditionally.
3367 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3368 DWARF2_BUILD_FRAME_INFO.
3369
22b0d388
AC
33702003-07-18 Andrew Cagney <cagney@redhat.com>
3371
3372 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3373 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3374
1ce5d6dd
AC
33752003-07-18 Andrew Cagney <cagney@redhat.com>
3376
3377 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3378 frame_unwind_address_in_block, instead of frame_pc_unwind.
3379 (dwarf2_frame_cache): Ditto.
3380
e6e5e94c
AC
33812003-07-18 Andrew Cagney <cagney@redhat.com>
3382
3383 * user-regs.h (struct gdbarch): Declare opaque.
3384 * ui-out.h (struct ui_file): Declare opaque.
3385 * dwarf2-frame.h (struct frame_info): Declare opaque.
3386
5483d879
KW
33872003-07-18 Kris Warkentin <kewarken@qnx.com>
3388
3389 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3390 #include "...".
3391 (procfs_meminfo): Change strerror to safe_strerror.
3392 (procfs_can_run): Remove K&R badness.
3393
278a7cf7
MS
33942003-07-17 Michael Snyder <msnyder@redhat.com>
3395
3396 * remote-sim.c: Comment typo fix.
3397
606e3b82
AC
33982003-07-17 Andrew Cagney <cagney@redhat.com>
3399
3400 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3401 configure.
3402 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3403 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3404 GDB_MULTI_ARCH_PARTIAL.
3405
c43af07c
EZ
34062003-07-17 Elena Zannoni <ezannoni@redhat.com>
3407
3408 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3409 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3410 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3411
3b85b0f1
TR
34122003-07-16 Theodore A. Roth <troth@openavr.org>
3413
3414 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3415 found.
3416 (avr_frame_unwind_cache): Don't unwind FP for main.
3417 Update a comment.
3418 Save the computed prev_sp.
3419 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3420 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3421 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3422
336d1bba
AC
34232003-07-16 Andrew Cagney <cagney@redhat.com>
3424
3425 * frame-base.h (frame_base_p_ftype): Delete definition.
3426 (frame_base_append_predicate): Delete declaration.
3427 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3428 (frame_unwind_append_predicate): Delete declaration.
3429 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3430 (append_predicate): Delete parameter "p".
3431 (frame_unwind_append_predicate): Delete function.
3432 (frame_unwind_append_sniffer): Update call to append_predicate.
3433 (frame_unwind_free): Delete function.
3434 (_initialize_frame_unwind): Pass NULL as "free" to
3435 register_gdbarch_data.
3436 (frame_unwind_init): Append the dummy_frame_sniffer.
3437 (frame_unwind_find_by_frame): Simplify.
3438 * frame-base.c (struct frame_base_table): Delete field "p".
3439 (append_predicate): Delete parameter "p".
3440 (frame_base_append_predicate): Delete function.
3441 (frame_base_append_sniffer): Update call to append_predicate.
3442 (frame_base_free): Delete function.
3443 (frame_base_find_by_frame): Simplify.
3444 (_initialize_frame_base): Pass NULL as "free" to
3445 register_gdbarch_data.
3446 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3447 (x86_64_sigtramp_frame_sniffer): Replace
3448 "x86_64_sigtramp_frame_p".
3449 (x86_64_init_abi): Set the frame unwind sniffers.
3450 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3451 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3452 (m68k_gdbarch_init): Set the frame unwind sniffers.
3453 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3454 "i386_sigtramp_frame_p".
3455 (i386_frame_sniffer): Replace "i386_frame_p".
3456 (i386_gdbarch_init): Set the frame unwind sniffers.
3457 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3458 (avr_gdbarch_init): Set the frame unwind sniffers.
3459 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3460 "alpha_sigtramp_frame_p"
3461 (alpha_heuristic_frame_sniffer): Replace
3462 "alpha_heuristic_frame_p".
3463 (alpha_gdbarch_init): Set the frame unwind sniffers.
3464 (alpha_dwarf2_init_abi): Ditto.
3465 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3466 "alpha_debug_frame_p".
3467 (alpha_mdebug_frame_base_sniffer): Replace
3468 "alpha_mdebug_frame_base_p".
3469 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3470 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3471 (d10v_gdbarch_init): Set the frame unwind sniffer.
3472 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3473 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3474 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3475 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3476 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3477 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3478
48db5a3c
CV
34792003-07-16 Michael Snyder <msnyder@redhat.com>
3480
3481 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3482 should go thru sh_dsp_register_sim_regno, else the dsp regs
3483 will not get the right values.
3484
34852003-07-16 Corinna Vinschen <vinschen@redhat.com>
3486
3487 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3488 deprecated_store_floating by call to store_typed_floating.
3489 (sh_sh4_register_convert_to_raw): Substitute call to
3490 deprecated_extract_floating by call to extract_typed_floating.
3491
34922003-07-16 Corinna Vinschen <vinschen@redhat.com>
3493
3494 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3495
34962003-07-16 Corinna Vinschen <vinschen@redhat.com>
3497
3498 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3499 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3500 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3501 as possible.
3502 (do_pseudo_register): Remove.
3503 (sh_push_dummy_code): New function.
3504 (sh64_store_struct_return): Rename from sh_store_struct_return.
3505 Only called for sh64 now.
3506 (sh_extract_struct_value_address): Regcache'ify.
3507 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3508 and accomodate new tasks.
3509 (sh64_push_return_address): Rename from sh_push_return_address.
3510 Only called for sh64 now.
3511 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3512 Regcache'ify.
3513 (sh3e_sh4_extract_return_value): Regcache'ify.
3514 (sh_default_store_return_value): Ditto.
3515 (sh3e_sh4_store_return_value): Ditto.
3516 (sh_default_register_byte): Remove.
3517 (sh_sh4_register_byte): Remove.
3518 (sh_default_register_raw_size): Remove.
3519 (sh_sh4_register_raw_size): Remove.
3520 (sh_register_virtual_size): Remove.
3521 (sh_sh3e_register_virtual_type): Remove.
3522 (sh_sh3e_register_type): New function.
3523 (sh_sh4_register_virtual_type): Remove.
3524 (sh_sh4_register_type): New function.
3525 (sh_default_register_virtual_type): Remove.
3526 (sh_default_register_type): New function.
3527 (do_fv_register_info): Add parameters to accomodate call from
3528 sh_print_registers_info.
3529 (do_dr_register_info): Ditto.
3530 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3531 Add parameters to accomodate call from sh_print_registers_info.
3532 (sh_do_fp_register): Ditto.
3533 (sh64_do_pseudo_register): Call do_dr_register_info,
3534 do_fv_register_info and sh_do_fp_register with default parameters.
3535 (sh_do_register): Add parameters to accomodate call from
3536 sh_print_registers_info.
3537 (sh_print_register): Ditto.
3538 (sh_print_registers_info): Rename from sh_do_registers_info.
3539 Add parameters to be used as gdbarch_print_registers_info
3540 implementation. Accomodate removed do_pseudo_register function
3541 pointer.
3542 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3543 function pointer. Call sh_print_register with default parameters.
3544 (sh64_do_registers_info): Call sh_print_registers_info instead of
3545 sh_do_registers_info.
3546 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3547 detection of deprecated vs. non-deprecated functionality.
3548 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3549 function pointer assignments by direct function calls.
3550
e8a89fe2
AC
35512003-07-15 Andrew Cagney <cagney@redhat.com>
3552
3553 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3554 (frame_register_unwind, create_new_frame): Ditto.
3555 (legacy_get_prev_frame, get_frame_type): Ditto.
3556 (get_frame_base_address): Use frame_base_find_by_frame.
3557 (get_frame_locals_address): Use frame_base_find_by_frame.
3558 (get_frame_args_address): Use frame_base_find_by_frame.
3559 * frame-base.h (frame_base_sniffer_ftype): Declare.
3560 (frame_base_append_sniffer): Declare.
3561 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3562 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3563 (frame_base_append_sniffer): New function.
3564 (frame_base_append_predicate): Add a NULL sniffer.
3565 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3566 (struct frame_base_table): Add "sniffer".
3567 (frame_base_free): Free the "sniffer" table.
3568 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3569 (frame_unwind_append_sniffer): Declare.
3570 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3571 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3572 (struct frame_unwind_table): Add "sniffer", delete "middle".
3573 (append_predicate): Add "sniffer" parameter, append the sniffer.
3574 (frame_unwind_init): Update append_predicate call.
3575 (frame_unwind_append_sniffer): New function.
3576 (frame_unwind_append_predicate): Update append_predicate call.
3577 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3578
0714963c
AC
35792003-07-15 Andrew Cagney <cagney@redhat.com>
3580
3581 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3582 before code inhibiting repeated unwind attempts. Add to
3583 commentary on that test's problems.
3584 * blockframe.c (inside_main_func): Look for "main" in the minimal
3585 symbol table.
3586 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3587 identical.
3588
d9170e22
AC
35892003-07-15 Andrew Cagney <cagney@redhat.com>
3590
3591 * complaints.c (struct explanation): Define.
3592 (struct complaints): Change type of "explanation" to "struct
3593 explanation".
3594 (symfile_explanations): Convert to a "struct explanation" table.
3595 (vcomplaint): Update.
3596
eba29c8c
ML
35972003-07-15 Michal Ludvig <mludvig@suse.cz>
3598
3599 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3600 (supply_gregset, fill_gregset): Call
eba29c8c
ML
3601 x86_64_linux_(fill,supply)_gregset functions.
3602 * x86-64-linux-tdep.c (USER_*): New defines.
3603 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3604 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3605 New functions.
3606 (fetch_core_registers): Ditto.
3607 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3608 * x86-64-linux-tdep.h: New file.
3609 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3610 and core-regset.o.
3611 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3612
68cc0bfb
MK
36132003-07-13 Mark Kettenis <kettenis@gnu.org>
3614
88a115f7
MK
3615 * x86-64-tdep.c (x86_64_store_return_value): Use
3616 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3617
68cc0bfb
MK
3618 * configure.host: Add x86_64-*-freebsd*.
3619 * configure.tgt: Add x86_64-*-freebsd*.
3620 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3621 * amd64fbsd-nat.c: New file.
3622 * amd64fbsd-tdep.c: New file.
3623 * config/i386/nm-fbsd64.h: New file.
3624 * config/i386/fbsd64.mh: New file.
3625 * config/i386/fbsd64.mt: New file.
3626
138e7be5
MK
36272003-07-11 Mark Kettenis <kettenis@gnu.org>
3628
3629 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3630 `sc_regs_offset' and `sc_fpregs_offset'.
3631 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3632 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3633 (alpha_sigtramp_register_address): Rewrite to use new members of
3634 `struct gdbarch_tdep'.
3635 (alpha_gdbarch_init): Initialize new members of struct
3636 gdbarch_tdep'.
3637 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3638 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3639 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3640 (alphafbsd_pc_in_sigtramp): Implement.
3641 (alphafbsd_sigtramp_offset): New function.
3642 (alphafbsd_sigcontext_addr): New function.
3643 (alphafbsd_init_abi): Initialize signal trampoline related members
3644 of `struct gdbarch_tdep'.
3645 (_initialize_alphafbsd_tdep): Add prototype.
3646
95303a68
TR
36472003-07-11 Theodore A. Roth <troth@openavr.org>
3648
ba292e4c
TR
3649 * Makefile.in (install-only): Quote sed expression when generating
3650 transformed_name.
95303a68 3651
6896c0c7
RH
36522003-07-11 Richard Henderson <rth@redhat.com>
3653
3654 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3655 * dwarf2-frame.c: Include complaints.h.
3656 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3657 variable initialization; return NULL on error.
3658 (decode_frame_entry): New.
3659
8edd5d01
AC
36602003-07-11 Andrew Cagney <cagney@redhat.com>
3661
c4a09524
AC
3662 * frame.h (frame_address_in_block): Delete declaration.
3663 * blockframe.c (frame_address_in_block): Delete function.
3664 (get_frame_block): Use get_frame_address_in_block.
3665 (block_innermost_frame): Ditto.
3666 * stack.c (print_frame, backtrace_command_1): Ditto.
3667
8edd5d01
AC
3668 * frame.h (get_frame_address_in_block): Declare.
3669 (frame_unwind_address_in_block): Declare.
3670 * frame.c (frame_unwind_address_in_block): New function.
3671 (get_frame_address_in_block): New function.
3672
f7968451
AC
36732003-07-10 Andrew Cagney <cagney@redhat.com>
3674
3675 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3676 pre-default. Note: re-generate has no effect.
a8f4cde1 3677
ae99b398
AC
36782003-07-10 Andrew Cagney <cagney@redhat.com>
3679
3680 * gdbarch.sh: When a variable, but not a function, compare against
3681 0. Fix problem in previous patch.
3682 * gdbarch.c: Re-generate.
a8f4cde1 3683
956ac328
AC
36842003-07-10 Andrew Cagney <cagney@redhat.com>
3685
3686 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3687 functions against NULL, not 0.
3688 * gdbarch.c: Re-generate.
a8f4cde1 3689
287c3240
FF
36902003-07-10 Fred Fish <fnf@ninemoons.com>
3691
3692 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3693 null string instead of a null pointer.
3694 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3695
32f63c4b
MS
36962003-07-09 Michael Snyder <msnyder@redhat.com>
3697
3698 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3699
402ecd56
MK
37002003-07-09 Mark Kettenis <kettenis@gnu.org>
3701
3702 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3703 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3704 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3705 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3706 * x86-64-tdep.c: ... from here.
3707
c481dac7
AS
37082003-07-09 Andreas Schwab <schwab@suse.de>
3709
3710 * m68k-tdep.h (enum struct_return): Define.
3711 (struct gdbarch_tdep): Add struct_return.
3712 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3713 bytes are padded to the right, not to the left. Pass struct value
3714 address in register %a1, not on stack.
3715 (m68k_use_struct_convention): New function.
3716 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3717 struct_return in tdep to pcc_struct_return.
3718 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3719 reg_struct_return.
3720
a8f4cde1 37212003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 3722
a8f4cde1 3723 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 3724
96a4ee76
AC
37252003-07-09 Andrew Cagney <cagney@redhat.com>
3726
3727 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3728 Add comments about the checks.
3729
1517c6d1
AC
37302003-07-08 Andrew Cagney <cagney@redhat.com>
3731
3732 * Makefile.in: Make dependency section headers consistent.
3733 (config_h): Move to $BUILD headers section.
3734 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3735 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3736 (ada-exp.tab.c): Move to YACC/LEX section.
3737 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3738 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3739
dc5dd1eb
KW
37402003-07-08 Kris Warkentin <kewarken@qnx.com>
3741
3742 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3743 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3744 of strerror with safe_strerror, use ISO C function definitions,
3745 and replace instances of sprintf with snprintf.
dc5dd1eb 3746
612dde91
AC
37472003-07-07 Andrew Cagney <cagney@redhat.com>
3748
3749 * frame.c (get_prev_frame): Enable check for identical frames.
3750 Update comments. Update error messages.
3751
492c11d3
JB
37522003-07-07 Joel Brobecker <brobecker@gnat.com>
3753
3754 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3755
376a5a49
JB
37562003-07-07 Joel Brobecker <brobecker@gnat.com>
3757
3758 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3759 sort_symtab_syms, no longer necessary.
3760
22b4a9ad
JB
37612003-07-07 Joel Brobecker <brobecker@gnat.com>
3762
3763 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3764
5bbcb741
JB
37652003-07-07 Joel Brobecker <brobecker@gnat.com>
3766
3767 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3768 (mips_register_byte): Likewise.
3769
c139e7d9
DJ
37702003-07-07 Daniel Jacobowitz <drow@mvista.com>
3771
3772 * Makefile.in (sparc_tdep_h): New.
3773 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3774 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3775 * sparc-linux-nat.c: Include "sparc-tdep.h".
3776 * sparc-nat.c: Likewise.
3777 * sparc-tdep.c: Likewise.
3778 * sparc64nbsd-nat.c: Likewise.
3779 * sparcnbsd-nat.c: Likewise.
3780 * sparcnbsd-tdep.c: Likewise.
3781 * sparc-tdep.h: New file.
3782 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3783 and sparc_npc_regnum.
3784
fd8f87c5
DJ
37852003-07-07 Daniel Jacobowitz <drow@mvista.com>
3786
3787 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3788 (mips_linux_cannot_store_register): List supported instead of
3789 unsupported registers.
3790
13adf674
DJ
37912003-07-07 Daniel Jacobowitz <drow@mvista.com>
3792
3793 * disasm.c (dump_insns): Separate instructions from addresses.
3794
8de307e0
AS
37952003-07-07 Andreas Schwab <schwab@suse.de>
3796
3797 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3798 dependencies.
3799 * m68k-tdep.c (NUM_FREGS): Delete.
3800 (SIG_PC_FP_OFFSET): Delete.
3801 (TARGET_M68K): Delete.
3802 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3803 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3804 P_MOVEL_SP, P_MOVEML_SP): Define.
3805 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3806 P_TRAP): Delete.
3807 (m68k_register_raw_size): Delete.
3808 (m68k_register_virtual_size): Delete.
3809 (m68k_register_type): Renamed from m68k_register_virtual_type and
3810 add gdbarch argument.
3811 (m68k_store_struct_return): Delete.
3812 (m68k_deprecated_extract_return_value): Delete.
3813 (m68k_deprecated_extract_struct_value_address): Delete.
3814 (m68k_frame_chain): Delete.
3815 (m68k_frame_saved_pc): Delete.
3816 (m68k_fix_call_dummy): Delete.
3817 (m68k_push_dummy_frame): Delete.
3818 (m68k_pop_frame): Delete.
3819 (m68k_extract_return_value): New function.
3820 (m68k_store_return_value): Rewrite using regcache.
3821 (m68k_extract_struct_value_address): Rewrite using regcache.
3822 (m68k_push_dummy_call): New function.
3823 (struct m68k_frame_cache): Define.
3824 (m68k_alloc_frame_cache): New function.
3825 (m68k_analyze_frame_setup): New function.
3826 (m68k_analyze_register_saves): New function.
3827 (m68k_analyze_prologue): New function.
3828 (m68k_skip_prologue): Rewrite using above functions.
3829 (m68k_unwind_pc): New function.
3830 (m68k_frame_cache): New function.
3831 (m68k_frame_this_id): New function.
3832 (m68k_frame_prev_register): New function.
3833 (m68k_frame_unwind): New variable.
3834 (m68k_frame_p): New function.
3835 (m68k_sigtramp_frame_cache): New function.
3836 (m68k_sigtramp_frame_this_id): New function.
3837 (m68k_sigtramp_frame_prev_register): New function.
3838 (m68k_sigtramp_frame_unwind): New variable.
3839 (m68k_sigtramp_frame_p): New function.
3840 (m68k_frame_base_address): New function.
3841 (m68k_frame_base): New function.
3842 (m68k_unwind_dummy_id): New function.
3843 (fill_gregset): Use regcache_collect.
3844 (fill_fpregset): Likewise.
3845 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3846 defined.
3847 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3848 deprecated_init_frame_pc, deprecated_store_struct_return,
3849 deprecated_extract_return_value, deprecated_store_return_value,
3850 deprecated_frame_chain, deprecated_frame_saved_pc,
3851 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3852 deprecated_register_virtual_size,
3853 deprecated_max_register_raw_size,
3854 deprecated_max_register_virtual_size,
3855 deprecated_register_virtual_type, deprecated_register_size,
3856 deprecated_register_byte, deprecated_register_bytes,
3857 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3858 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3859 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3860 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3861 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3862 deprecated_push_dummy_frame, deprecated_pop_frame,
3863 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3864 only if SYSCALL_TRAP is defined. Set extract_return_value,
3865 store_return_value, extract_struct_value_address, register_type,
3866 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3867 predicates.
3868 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3869 M68K_MAX_REGISTER_SIZE): Define.
3870 (struct m68k_sigtramp_info): Define.
3871 (struct gdbarch_tdep): Add get_sigtramp_info.
3872 * m68klinux-nat.c (fetch_register): Use register_size instead of
3873 REGISTER_RAW_SIZE. Don't put assignment in if.
3874 (store_register): Likewise.
3875 (fetch_inferior_registers): Likewise.
3876 (store_inferior_registers): Likewise.
3877 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3878 (m68k_linux_frame_saved_pc): Delete.
3879 (m68k_linux_sigcontext_reg_offset,
3880 m68k_linux_ucontext_reg_offset): Define.
3881 (m68k_linux_get_sigtramp_info): New function.
3882 (m68k_linux_extract_return_value): Rewrite using regcache.
3883 (m68k_linux_store_return_value): Likewise.
3884 (m68k_linux_extract_struct_value_address): Likewise.
3885 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3886 Don't set deprecated_frame_saved_pc,
3887 deprecated_extract_return_value, deprecated_store_return_value,
3888 deprecated_extract_struct_value_address. Set
3889 extract_return_value, store_return_value,
3890 extract_struct_value_address.
3891
eb8bc282
AC
38922003-07-07 Andrew Cagney <cagney@redhat.com>
3893
3894 * expprint.c: Include "user-regs.h" instead of "frame.h".
3895 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3896 frame_map_regnum_to_name.
3897 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3898 (frame_map_name_to_regnum): Simplify, call
3899 user_reg_map_name_to_regnum.
3900 (frame_map_regnum_to_name): Simplify, call
3901 user_reg_map_regnum_to_name.
3902 (frame_register_unwind): Update.
3903 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3904 (_initialize_frame_reg): Call user_reg_add_builtin.
3905 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3906 (value_of_register): Use value_of_user_reg.
3907 * eval.c (evaluate_subexp_standard): Update.
3908 * parse.c (write_dollar_variable): Update.
3909 * d10v-tdep.c (d10v_print_registers_info): Update.
3910 * infcmd.c (registers_info): Update.
3911 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3912 (builtin_regs_h): Delete macro.
3913 (user_regs_h): Define.
3914 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3915 (builtin-regs.o): Delete target.
3916 (user-regs.o): Specify dependencies.
3917 (expprint.o): Update dependencies.
3918 (findvar.o): Update dependencies.
3919 (frame.o): Update dependencies.
3920 (std-regs.o): Update dependencies.
3921
9f476a01
CF
39222003-07-06 Christopher Faylor <cgf@redhat.com>
3923
3924 * win32-nat.c (solib_symbols_add): Use one variable for all section
3925 address stuff. Pass variable rather than address of variable to
3926 safe_symbol_file_add.
3927
a731b831
AS
39282003-07-06 Andreas Schwab <schwab@suse.de>
3929
3930 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3931
9f83329d
JB
39322003-07-04 Joel Brobecker <brobecker@gnat.com>
3933
3934 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3935
27e28cc5
KW
39362003-07-04 Kris Warkentin <kewarken@qnx.com>
3937
3938 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3939
39402003-07-04 Kris Warkentin <kewarken@qnx.com>
3941
3942 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3943 * config/i386/nto.mh: New file.
3944 * config/i386/nm-nto.h: New file.
3945 * configure.host: Add i[3456]86-*-nto*.
3946
100f2e98
JB
39472003-07-03 Joel Brobecker <brobecker@gnat.com>
3948
3949 * remote-vx.c (vx_add_symbols): Fix compilation error.
3950
e23457df
AC
39512003-07-03 Andrew Cagney <cagney@redhat.com>
3952
3953 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3954 * gdbarch.h, gdbarch.c: Re-generate.
3955 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3956 (legacy_register_name): Declare.
3957 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3958 (REGISTER_NAME): Define.
3959 * sparc-tdep.c (legacy_register_name): New function.
3960 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3961 (REGISTER_NAME): Define.
3962 (hppa64_register_name): Declare.
3963 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3964 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3965 (hppa64_register_name): New function.
3966 (hppa_register_name): New function.
3967 * arch-utils.c (legacy_register_name): Delete.
3968 * arch-utils.h (legacy_register_name): Delete.
3969
38caaeec
DJ
39702003-07-03 Daniel Jacobowitz <drow@mvista.com>
3971
3972 * cli/cli-interp.c (cli_interpreter_resume): Update the
3973 cli_uiout's stream to gdb_stdout.
3974
dadd712e
AC
39752003-07-03 Andrew Cagney <cagney@redhat.com>
3976
3977 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3978 predicate.
3979 * gdbarch.h, gdbarch.c: Re-generate.
3980 * regcache.c (init_regcache_descr): Use legacy code when either
3981 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3982
c7f1390e
DJ
39832003-07-02 Daniel Jacobowitz <drow@mvista.com>
3984
3985 * NEWS: Move "set logging" entry into GDB 6.0 section.
3986
4bc8c588
JB
39872003-07-02 Jim Blandy <jimb@redhat.com>
3988
a9dd42f1
JB
3989 * s390-tdep.c (struct frame_extra_info): new member:
3990 'stack_bought_valid'.
3991 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3992 initialize fextra_info->stack_bought.
3993 (s390_frameless_function_invocation): Don't trust the value of
3994 fextra_info_ptr->stack_bought unless
3995 fextra_info->stack_bought_valid is set.
3996
4bc8c588
JB
3997 New S390 prologue analyzer.
3998 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3999 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4000 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4001 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4002 compute_x_addr, s390_on_stack, s390_store,
4003 s390_get_signal_frame_info): New functions.
4004 (S390_NUM_SPILL_SLOTS): New macro.
4005 (s390_get_frame_info): Rewritten.
4006 (is_arg_reg): Deleted.
4007
4008 Break out the decoding of S/390 instructions into separate
4009 functions, to make it more legible, and easier to check
4010 against the spec.
4011 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4012 is_rx, is_rxe): New functions.
4013 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4014 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4015 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4016 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4017 enums for opcode values. (Is this an improvement?)
4018
fd13a04a
AC
40192003-07-02 Andrew Cagney <cagney@redhat.com>
4020
4021 * i386-tdep.c: Revert change committed as part of trad-frame code
4022 below.
4023
3f8091c1
DJ
40242003-07-02 Daniel Jacobowitz <drow@mvista.com>
4025
4026 * breakpoint.c (insert_catchpoint): Make static.
4027
8dd5115e
AS
40282003-07-02 Andreas Schwab <schwab@suse.de>
4029
4030 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4031 former ia64_push_arguments and ia64_push_return_address, and use
4032 regcache functions instead of read/write_register.
4033 (ia64_gdbarch_init): Set push_dummy_call instead of
4034 deprecated_push_arguments and deprecated_push_return_address.
4035
a2229c23
AJ
40362003-07-01 Andreas Jaeger <aj@suse.de>
4037
4038 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4039 before the call.
4040 Set %rax only to number of SSE registers used.
4041
3b3850e8
AC
40422003-07-01 Andrew Cagney <cagney@redhat.com>
4043
4044 * trad-frame.h: Update comments, a -1 .addr is reserved.
4045 (trad_frame_value_p, trad_frame_addr_p): Declare.
4046 (trad_frame_reg_p): Declare.
4047 (trad_frame_set_value): Rename trad_frame_register_value.
4048 (trad_frame_set_unknown): Declare.
4049 * trad-frame.c (trad_frame_realreg_p): New function.
4050 (trad_frame_addr_p, trad_frame_value_p): New function.
4051 (trad_frame_set_unknown): New function.
4052 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4053 (trad_frame_prev_register): Use trad_frame_realreg_p,
4054 trad_frame_addr_p and trad_frame_value_p.
4055 (trad_frame_set_value): Rename trad_frame_register_value.
4056 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4057 and trad_frame_set_value.
a2229c23 4058
4d819d0e
JB
40592003-06-30 Jim Blandy <jimb@redhat.com>
4060
4061 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4062 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4063 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4064 for 16 registers, and then 32 more bytes.
4065 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4066 New macros.
4067 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4068 Move up in the file, since it's now used by is_simple_arg.
4069 (is_simple_arg): Don't assume registers are four bytes long.
4070 Exclude all double arguments. Extended floats are not simple
4071 args.
4072 (is_power_of_two): New function.
4073 (pass_by_copy_ref): Call is_power_of_two, and check that the
4074 length fits in a register, rather than listing all the acceptable
4075 sizes. Extended floats are not passed by reference.
4076 (s390_push_arguments): Don't assume registers are four bytes long.
4077 Reserve an argument register to point to the buffer for structures
4078 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4079 S390_STACK_FRAME_OVERHEAD.
4080
1ad828f1
AS
40812003-06-30 Andreas Schwab <schwab@suse.de>
4082
4083 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4084 format error message.
4085
39b00981
JB
40862003-06-30 Joel Brobecker <brobecker@gnat.com>
4087
4088 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4089
b2a7f303
DC
40902003-06-30 David Carlton <carlton@kealia.com>
4091
4092 Band-aid for PR c++/1245.
4093 * Makefile.in (cp-support.o): Depend on complaints_h.
4094 * cp-support.c: Include complaints.h. Add declaration for
4095 find_last_component.
4096 (cp_find_first_component): Separate code into
4097 cp_find_first_component_aux.
4098 (cp_find_first_component_aux): Call demangled_name_complaint.
4099 (demangled_name_complaint): New.
4100
a257b5bb
AC
41012003-06-30 Andrew Cagney <cagney@redhat.com>
4102
4103 * remote.c (remote_write_bytes): Explicitly compute and then use
4104 the payload size. Update comments to reflect. Fixes problem of
4105 GDB not sending small packets as found by Fred Fish.
4106
0a2cfde4
AC
41072003-06-30 Andrew Cagney <cagney@redhat.com>
4108
4109 * remote.c (remote_async_wait): Fix -Wformat problem.
4110
3fcb8548
AC
41112003-06-29 Andrew Cagney <cagney@redhat.com>
4112
4113 * remote.c (remote_wait): Call error, and not warning, when the
4114 packet is corrupt.
4115 (remote_async_wait): Ditto.
4116
9f9970a3
DJ
41172003-06-29 Daniel Jacobowitz <drow@mvista.com>
4118
4119 * sparc-tdep.c (sparc_y_regnum): Make external again.
4120
83a8ccca
DJ
41212003-06-29 Daniel Jacobowitz <drow@mvista.com>
4122
4123 * cli/cli-logging.c (pop_output_files): Add void to function
4124 definition.
4125
d2cf594a
AC
41262003-06-29 Andrew Cagney <cagney@redhat.com>
4127
4128 * frame.c (frame_register_unwind): Use unsigned char when dumping
4129 the buffer contents.
4130
0fac0b41
DJ
41312003-06-28 Daniel Jacobowitz <drow@mvista.com>
4132
4133 * cli/cli-logging.c: New file.
4134 * cli-out.c (struct ui_out_data): Add original_stream.
4135 (cli_redirect): New function.
4136 (cli_ui_out_impl): Add cli_redirect.
4137 (cli_out_new): Initialize original_stream.
4138 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4139 (uo_redirect, ui_out_redirect): New.
4140 * ui-out.h (struct ui_out_impl): Add redirect member.
4141 (redirect_ftype): New.
4142 (ui_out_redirect): Add prototype.
4143 * Makefile.in: Add rules for cli-logging.c.
4144 * NEWS: Mention "set logging".
4145
88a07d7c
EZ
41462003-06-27 Elena Zannoni <ezannoni@redhat.com>
4147
4148 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4149
4eb58876
AC
41502003-06-27 Andrew Cagney <cagney@redhat.com>
4151
4152 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4153 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4154 * avr-tdep.c (avr_call_dummy_address): Delete function.
4155 (avr_gdbarch_init): Do not set call_dummy_address.
4156
1549f619
EZ
41572003-06-27 Elena Zannoni <ezannoni@redhat.com>
4158
4159 * symfile.c (syms_from_objfile): Move variables to inner block.
4160 Move the checks for the non-mainline case a bit earlier to avoid
4161 doing some useless computations.
4162
3cb3398d
EZ
41632003-06-27 Elena Zannoni <ezannoni@redhat.com>
4164
4165 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4166
3799ccc6
EZ
41672003-06-26 Elena Zannoni <ezannoni@redhat.com>
4168
4169 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4170 sections.
4171
ce1f6491
MC
41722003-06-26 Michael Chastain <mec@shout.net>
4173
4174 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4175 gdb/testsuite/gdb.c++/pr-1210.exp.
4176
d958dfd0
AC
41772003-06-26 Andrew Cagney <cagney@redhat.com>
4178
4179 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4180 altivec_expression.h and altivec_registers.h.
4181
d31431ed
AC
41822003-06-26 Andrew Cagney <cagney@redhat.com>
4183
4184 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4185 info->mach when MIPS16. Patch suggested by Fred Fish.
4186
714b1282
AC
41872003-06-26 Andrew Cagney <cagney@redhat.com>
4188
4189 * utils.c (internal_vproblem): Print the problem to a reason
4190 buffer and then pass to query. Make the msg variable more local.
4191
42efa47a
AC
41922003-06-26 Andrew Cagney <cagney@redhat.com>
4193
4194 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4195 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4196 * gdbarch.h, gdbarch.c: Re-generate.
4197 * frame-base.c (default_frame_args_address): Update. Use
4198 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4199 not available.
4200 (default_frame_locals_address): Ditto for
4201 DEPRECATED_FRAME_LOCALS_ADDRESS.
4202 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4203 (vax_frame_num_args): Update.
4204 (vax_gdbarch_init): Update.
4205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4206 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4207 * mcore-tdep.c (mcore_gdbarch_init): Update.
4208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4209 * ia64-tdep.c (ia64_gdbarch_init): Update.
4210 * symtab.h (address_class): Update comments.
4211 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4212 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4213 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4214 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4215 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4216 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4217 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4218 * alpha-mdebug-tdep.c: Update.
4219 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4220
8ffd9b1b
AJ
42212003-06-26 Andreas Jaeger <aj@suse.de>
4222
4223 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4224 of SSE registers so that varargs functions work. Rework handling
4225 of passing arguments on the stack.
4226 (x86_64_store_return_value): Return double and float values in SSE
4227 register.
4228
e8ac10a6
MC
42292003-06-24 Michael Chastain <mec@shout.net>
4230
4231 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4232 the "constructor breakpoints ignored" bug.
4233
986af8e6
DC
42342003-06-25 David Carlton <carlton@kealia.com>
4235
4236 * MAINTAINERS: Update e-mail address.
4237
d64558a5
JB
42382003-06-24 Jim Blandy <jimb@redhat.com>
4239
e538d2d7
JB
4240 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4241
02631ec0
JB
4242 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4243 function.
4244 (ppc_linux_init_abi): Register it as the
4245 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4246
e716d87a
JB
4247 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4248 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4249 method.
4250
d64558a5
JB
4251 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4252 (ppc64_standard_linkage_target): Use it.
4253
449a5da4
AC
42542003-06-23 Andrew Cagney <cagney@redhat.com>
4255
4256 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4257 for 0 "int0" and 4 "int32" sized registers.
4258 * gdbtypes.c (builtin_type_int0): Define.
4259 (build_gdbtypes): Initialize builtin_type_int0.
4260 * gdbtypes.h (builtin_type_int0): Declare.
4261
b2a02dda
SC
42622003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4263
4264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4265 as characters are unsigned.
4266
fba3138e
DJ
42672003-06-22 Daniel Jacobowitz <drow@mvista.com>
4268
4269 PR gdb/1179
4270 * dwarfread.c (struct_type): Skip static fields without crashing.
4271
f6c8180b
AC
42722003-06-22 Andrew Cagney <cagney@redhat.com>
4273
4274 GDB 6.0 branch created.
f2c06f52
AC
4275 * README: Update.
4276 * PROBLEMS: Update. Empty.
4277 * NEWS: Update.
f6c8180b 4278
ae822768
DJ
42792003-06-22 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4282 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4283
261de166
AC
42842003-06-22 Andrew Cagney <cagney@redhat.com>
4285
4286 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4287 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4288 Velikov.
4289
30e94205
DJ
42902003-06-22 Daniel Jacobowitz <drow@mvista.com>
4291
4292 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4293 compilers.
4294
9e14d721
DJ
42952003-06-21 Daniel Jacobowitz <drow@mvista.com>
4296
4297 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4298 argument of val_print.
4299 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4300 to the address argument of baseclass_offset or target_read_memory.
4301 Do add it to the argument of cp_print_value_fields.
4302
a4b8ebc8
AC
43032003-06-21 Andrew Cagney <cagney@redhat.com>
4304
4305 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4306 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4307 instead of 0..NUM_REGS.
4308 (mips_register_reggroup_p): New function.
4309 (mips_pseudo_register_write): New function.
4310 (mips_pseudo_register_read): New function.
4311 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4312 based on the register's type.
4313 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4314 cooked.
4315 (mips_get_saved_register): Simplify. Assert that REGNO is a
4316 pseudo / cooked.
4317 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4318 (mips_register_type): Replace mips_register_virtual_type. Map
4319 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4320 when available.
4321 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4322 that the register is cooked / virtual.
4323 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4324 Only get the extra info when needed.
4325 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4326 (mips32_heuristic_proc_desc): Fetch the cooked register.
4327 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4328 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4329 (mips_print_register): Use gdbarch_register_type, instead of
4330 REGISTER_VIRTUAL_TYPE.
4331 (print_gp_register_row): Use gdbarch_register_type, instead of
4332 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4333 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4334 Print the pseudo / cooked registers.
4335 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4336 Print the pseudo / cooked registers.
4337 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4338 REG_NUM is pseudo / cooked.
4339 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4340 (mips_n32n64_xfer_return_value): Ditto.
4341 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4342 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4343 (mips_register_sim_regno): New function.
4344 (mips_gdbarch_init): Set deprecated_register_byte,
4345 register_group_p, pseudo_register_write, pseudo_register_read,
4346 register_sim_regno, and num_pseudo_regs. Set register_type,
4347 instead of register_virtual_type.
4348 * Makefile.in (mips-tdep.o): Update dependencies.
4349 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4350 REGISTER_VIRTUAL_TYPE.
4351 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4352 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4353 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4354 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4355 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4356
325ed089
DJ
43572003-06-21 Daniel Jacobowitz <drow@mvista.com>
4358
4359 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4360 * cli/cli-cmds.c: Include "gdb_vfork.h".
4361 (shell_escape): Use vfork.
4362
f0e7d0e8
AC
43632003-06-21 Andrew Cagney <cagney@redhat.com>
4364
c57bb9fa
AC
4365 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4366 32 bit floating-point register saves.
4367
6e51443a
AC
4368 * frame.h (deprecated_unwind_get_saved_register): Delete.
4369 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4370 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4371 and deprecated_get_next_frame_hack instead of
4372 deprecated_unwind_get_saved_register.
4373
ed183c7c
AC
4374 * mips-tdep.c (mips_dump_tdep): Do not print
4375 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4376
f0e7d0e8
AC
4377 * frame.c (get_frame_register): New function.
4378 (frame_unwind_register_signed): New function.
4379 (get_frame_register_signed): New function.
4380 (frame_unwind_register_unsigned): New function.
4381 (get_frame_register_unsigned): New function.
4382 * frame.h: Add comments on naming schema.
4383 (get_frame_register, frame_unwind_register_signed): Declare.
4384 (get_frame_register_signed, get_frame_register_signed): Declare.
4385 (frame_unwind_register_unsigned): Declare.
4386 (get_frame_register_unsigned): Declare.
4387
2224d941
TR
43882003-06-20 Theodore A. Roth <troth@openavr.org>
4389
4390 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4391
8619218d
TR
43922003-06-20 Theodore A. Roth <troth@openavr.org>
4393
4394 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4395 (avr_read_sp): Ditto.
4396
0b1b50c0
DJ
43972003-06-20 Daniel Jacobowitz <drow@mvista.com>
4398
4399 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4400 * config/arm/nm-linux.h: Likewise.
4401 * config/arm/tm-linux.h: Likewise.
4402 * config/ia64/nm-linux.h: Likewise.
4403 * config/ia64/tm-ia64.h: Likewise.
4404 * config/s390/tm-linux.h: Likewise.
4405 * config/s390/tm-s390.h: Likewise.
4406 * s390-nat.c: Likewise.
4407 * s390-tdep.c: Likewise.
4408
4409 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4410 * config/ia64/linux.mt: Likewise.
4411 * config/m68k/linux.mh: Likewise.
4412 * config/mips/linux.mt: Likewise.
4413 * config/powerpc/linux.mh: Likewise.
4414 * config/sh/linux.mt: Likewise.
4415
c8c18e65
KW
44162003-06-19 Kris Warkentin <kewarken@qnx.com>
4417
4418 * solib.c (solib_open): Change tests for whether to search
4419 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4420 comments.
4421
dcccef2e
TR
44222003-06-19 Theodore A. Roth <troth@openavr.org>
4423
4424 * avr-tdep.c (avr_frame_address): Delete function.
4425 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4426 set_gdbarch_frame_args_address.
4427
5861a190
AC
44282003-06-19 Andrew Cagney <cagney@redhat.com>
4429
4430 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4431 (REGISTER_CONVERT_FROM_TYPE): Delete.
4432 (mips_register_convert_to_type): Delete declaration.
4433 (mips_register_convert_from_type): Delete declaration.
4434 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4435 kernel/.
4436
0274a8ce
MS
44372003-06-19 Michael Snyder <msnyder@redhat.com>
4438
4439 * linux-nat.h: New file.
4440 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4441 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4442 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4443 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4444 (linux_make_note_section): Iterate over lwps instead of threads.
4445 (linux_do_thread_registers): Use lwp instead of merged pid.
4446 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4447 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4448 Add dependency on linux_nat_h.
4449
adf5f719
TR
44502003-06-19 Theodore A. Roth <troth@openavr.org>
4451
4452 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4453
6766a268
DJ
44542003-06-19 Daniel Jacobowitz <drow@mvista.com>
4455
4456 * varobj.c (get_type, get_target_type): Use check_typedef.
4457
1171114a
DJ
44582003-06-19 Daniel Jacobowitz <drow@mvista.com>
4459
4460 * breakpoint.c (insert_catchpoint): Call internal_error.
4461
adcf68a2
TR
44622003-06-19 Theodore A. Roth <troth@openavr.org>
4463
4464 * avr-tdep.c (avr_push_dummy_code): Delete function.
4465 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4466
ea67f13b
DJ
44672003-06-19 Daniel Jacobowitz <drow@mvista.com>
4468
4469 * arch-utils.c (default_prepare_to_proceed): Remove.
4470 (generic_prepare_to_proceed): Remove.
4471 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4472 (generic_prepare_to_proceed): Remove prototype.
4473 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4474 * gdbarch.c: Regenerate.
4475 * gdbarch.h: Regenerate.
4476 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4477 * hppah-nat.c (hppa_switched_threads): Remove.
4478 * infrun.c (prepare_to_proceed): New static function, copied from
4479 generic_prepare_to_proceed. Remove select_it argument.
4480 (proceed): Call prepare_to_proceed.
4481 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4482 variables.
4483 (ptrace_wait): Don't set the removed variables.
4484 (hppa_switched_threads): Remove.
4485 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4486 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4487 (lin_lwp_prepare_to_proceed): Remove prototype.
4488 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4489 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4490
4add8633
TR
44912003-06-18 Theodore A. Roth <troth@openavr.org>
4492
4493 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4494 trad-frame.h.
4495 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4496 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4497 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4498 (AVR_PROLOGUE_*): Enumerate prologue types.
4499 (struct frame_extra_info): Remove.
4500 (struct avr_unwind_cache): Define.
4501 (avr_write_sp): Delete function.
4502 (avr_read_fp): Ditto.
4503 (avr_init_extra_frame_info): Ditto.
4504 (avr_pop_frame): Ditto.
4505 (avr_frame_saved_pc): Ditto.
4506 (avr_saved_pc_after_call): Ditto.
4507 (avr_push_return_address): Ditto.
4508 (avr_frame_chain): Ditto.
4509 (avr_store_struct_return): Ditto.
4510 (avr_push_arguments): Ditto.
4511 (avr_scan_prologue): Update comments. Changed to set up the info for
4512 cache unwinding. Now returns end of prologue PC.
4513 (avr_skip_prologue): Better handling of functions lacking a prologue
4514 by using avr_scan_prologue.
4515 (avr_scan_arg_moves): New function.
4516 (avr_saved_regs_unwinder): Ditto.
4517 (avr_frame_unwind_cache): Ditto.
4518 (avr_unwind_pc): Ditto.
4519 (avr_frame_this_id): Ditto.
4520 (avr_frame_prev_register): Ditto.
4521 (avr_frame_p): Ditto.
4522 (avr_frame_base_address ): Ditto.
4523 (avr_unwind_dummy_id): Ditto.
4524 (avr_push_dummy_code): Ditto.
4525 (push_stack_item): Ditto.
4526 (pop_stack_item): Ditto.
4527 (avr_push_dummy_call): Ditto.
4528 (struct stack_item): Define.
4529 (avr_frame_unwind): Declare structure.
4530 (avr_frame_base): Ditto.
4531 (avr_gdbarch_init): Remove calls to
4532 set_gdbarch_deprecated_init_frame_pc,
4533 set_gdbarch_deprecated_target_read_fp,
4534 set_gdbarch_deprecated_dummy_write_sp,
4535 set_gdbarch_deprecated_fp_regnum,
4536 set_gdbarch_deprecated_push_arguments,
4537 set_gdbarch_deprecated_push_return_address,
4538 set_gdbarch_deprecated_pop_frame,
4539 set_gdbarch_deprecated_store_struct_return,
4540 set_gdbarch_deprecated_frame_init_saved_regs,
4541 set_gdbarch_deprecated_init_extra_frame_info,
4542 set_gdbarch_deprecated_frame_chain,
4543 set_gdbarch_deprecated_frame_saved_pc,
4544 set_gdbarch_deprecated_saved_pc_after_call.
4545 Add calls to set_gdbarch_push_dummy_call,
4546 set_gdbarch_push_dummy_code,
4547 frame_unwind_append_predicate,
4548 frame_base_set_default,
4549 set_gdbarch_unwind_dummy_id,
4550 set_gdbarch_unwind_pc.
4551 Wrap a long line.
4552
7be04a68
MS
45532003-06-18 Corinna Vinschen <vinschen@redhat.com>
4554
4555 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4556 registers for H8/300S.
4557 (h8300_print_registers_info): Ditto.
8ffd9b1b 4558 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4559
ae087d01
DJ
45602003-06-18 Daniel Jacobowitz <drow@mvista.com>
4561
4562 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4563 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4564 (lin_lwp_wait): Likewise. Update comments.
4565 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4566 (pull_pid_from_list, linux_record_stopped_pid): New.
4567
07d8f827
SC
45682003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4569
4570 * ada-lang.c (scan_discrim_bound): Name first argument.
4571 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4572 declared by ALL_BLOCK_SYMBOLS.
4573
7cb47b14
SC
45742003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4575
4576 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4577 ("regcache.h"): Include it.
4578 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4579
6ad8ae5c
DJ
45802003-06-17 Daniel Jacobowitz <drow@mvista.com>
4581
4582 * NEWS: Mention gdbserver detach change and "disconnect" command.
4583 * infcmd.c (disconnect_command): New function.
4584 (_initialize_infcmd): Add ``disconnect'' command.
4585 * remote.c (remote_async_detach): Delete.
4586 (remote_detach): Merge remote_async_detach.
4587 (remote_disconnect): New.
4588 (init_remote_ops): Set to_disconnect.
4589 (init_remote_cisco_ops): Likewise.
4590 (init_remote_async_ops): Likewise. Use remote_detach.
4591 * target.c (cleanup_target): Default to_disconnect.
4592 (update_current_target): Inherit to_disconnect.
4593 (target_disconnect, debug_to_disconnect): New functions.
4594 (setup_target_debug): Set to_disconnect.
4595 * target.h (struct target_ops): Add to_disconnect.
4596 (target_disconnect): Add prototype.
4597
687595f9
DJ
45982003-06-17 Daniel Jacobowitz <drow@mvista.com>
4599
4600 * breakpoint.c (insert_catchpoint): New function.
4601 (insert_breakpoints): Use catch_exceptions to call
4602 insert_catchpoint. Disable catchpoints if they fail to insert.
4603
29239a8f
DJ
46042003-06-17 Daniel Jacobowitz <drow@mvista.com>
4605
4606 * symfile.c (reread_symbols): Clear sym_private.
4607
2cdf3c63
AC
46082003-06-17 Andrew Cagney <cagney@redhat.com>
4609
4610 * trad-frame.h (struct frame_info): Add opaque declaration.
4611 * remote-fileio.h (struct cmd_list_element): Add opaque
4612 declaration.
4613 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4614 comments.
4615
cf0e1e0d
DJ
46162003-06-17 Daniel Jacobowitz <drow@mvista.com>
4617
4618 * remote.c (remote_prepare_to_store): Replace call to
4619 deprecated_read_register_bytes with multiple regcache_raw_read
4620 calls.
4621
192cdb19
KW
46222003-06-17 Kris Warkentin <kewarken@qnx.com>
4623
4624 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4625 (nto_find_and_open_solib): Likewise.
4626 (nto_init_solib_absolute_prefix): Likewise.
4627 (_initialize_nto_tdep): Fix indentation.
4628
89929b45
KW
46292003-06-17 Kris Warkentin <kewarken@qnx.com>
4630
4631 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4632
46019f27
KW
46332003-06-17 Kris Warkentin <kewarken@qnx.com>
4634
4635 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4636
1a38736e
JB
46372003-06-17 Jim Blandy <jimb@redhat.com>
4638
4639 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4640
3605c34a
TR
46412003-06-16 Theodore A. Roth <troth@openavr.org>
4642
4643 * avr-tdep.c (avr_extract_return_value): New function.
4644 (avr_gdbarch_init): Set extract_return_value method.
4645
870b3035
AC
46462003-06-16 Andrew Cagney <cagney@redhat.com>
4647
4648 * frame.h (deprecated_get_next_frame_hack): Declare.
4649 * frame.c (legacy_saved_regs_prev_register): Only require
4650 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4651 there are always saved regs.
4652 (deprecated_generic_get_saved_register): Do not require
4653 DEPRECATED_FRAME_INIT_SAVED_REGS.
4654 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4655 use frame ID unwind instead.
4656 (deprecated_get_next_frame_hack): New function.
4657
63d47a7d
CV
46582003-06-16 Corinna Vinschen <vinschen@redhat.com>
4659
4660 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4661 (h8300_push_dummy_call): ...this function. Some minor optimization.
4662 (h8300_push_return_address): Remove.
4663 (h8300_gdbarch_init): Remove calls to
4664 set_gdbarch_deprecated_dummy_write_sp,
4665 set_gdbarch_deprecated_push_arguments and
4666 set_gdbarch_deprecated_push_return_address.
4667 Add call to set_gdbarch_push_dummy_call.
4668
4bb1dc5e
CV
46692003-06-16 Corinna Vinschen <vinschen@redhat.com>
4670
4671 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4672 (E_PSEUDO_EXR_REGNUM): Ditto.
4673 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4674 registers into safe registers.
4bb1dc5e
CV
4675 (h8300_skip_prologue): Check for stm instruction to push registers
4676 used for register variables onto stack.
4677 (gdb_print_insn_h8300): Remove.
4678 (h8300_examine_prologue): Add a comment.
4679 (h8300_register_name): Take pseudo registers into account.
4680 (h8300s_register_name): Ditto.
4681 (h8300sx_register_name): Ditto.
4682 (h8300_print_register): Ditto.
4683 (h8300_print_registers_info): Define "nice" printing order.
4684 (h8300_saved_pc_after_call): Take pseudo registers into account.
4685 (h8300_register_type): Ditto. Return type used for remote connection
4686 when requesting real CCR or EXR register, return actual type when
4687 requesting pseudo CCR or EXR.
4688 (h8300_pseudo_register_read): New function.
4689 (h8300_pseudo_register_write): Ditto.
4690 (h8300_dbg_reg_to_regnum): Ditto.
4691 (h8300s_dbg_reg_to_regnum): Ditto.
4692 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4693 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4694 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4695 set_gdbarch_print_insn architecture dependent.
4696 Call set_gdbarch_pseudo_register_read and
4697 set_gdbarch_pseudo_register_write.
4698 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4699
a59fe496
AC
47002003-06-16 Andrew Cagney <cagney@redhat.com>
4701
4702 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4703 * gdbarch.h, gdbarch.c: Re-generate.
4704 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4705 * s390-tdep.c (s390_gdbarch_init): Update.
4706 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4707 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4708 * mips-tdep.c (mips_gdbarch_init): Update.
4709 * mcore-tdep.c (mcore_gdbarch_init): Update.
4710 * cris-tdep.c (cris_gdbarch_init): Update.
4711 * infcall.c (call_function_by_hand): Update.
4712 * ia64-tdep.c (ia64_push_arguments): Update comment.
4713 * frame.c (legacy_get_prev_frame): Do not assume
4714 SAVE_DUMMY_FRAME_TOS_P.
4715 * dummy-frame.c (find_dummy_frame): Update comment.
4716
6f4e5a41
AC
47172003-06-16 Andrew Cagney <cagney@redhat.com>
4718
4719 * regcache.c (do_cooked_read): Do not use register_valid_p.
4720
72fab697
TR
47212003-06-15 Theodore A. Roth <troth@openavr.org>
4722
4723 * avr-tdep.c (avr_register_type): Remove a blank line.
4724 (avr_scan_prologue): Correct some comments.
4725
e3d8b004
TR
47262003-06-15 Theodore A. Roth <troth@openavr.org>
4727
4728 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4729 prologue types.
8ffd9b1b 4730 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4731 option.
4732 Add code to scan -mcall-prologues for mega devices.
4733
866b76ea
TR
47342003-06-15 Theodore A. Roth <troth@openavr.org>
4735
4736 * avr-tdep.c (avr_register_byte): Delete function.
4737 (avr_register_raw_size): Delete function.
4738 (avr_register_virtual_size): Delete function.
4739 (avr_register_virtual_type): Delete function.
4740 (avr_register_type): New function.
4741 (avr_address_to_pointer): Remove unused code.
4742 (avr_read_fp): Need to read FP as two separate bytes due to change to
4743 avr_register_type() usage.
4744 (avr_gdbarch_init): Don't set deprecated_register_size.
4745 Don't set deprecated_register_bytes.
4746 Don't set deprecated_register_byte.
4747 Don't set deprecated_register_raw_size.
4748 Don't set deprecated_max_register_raw_size.
4749 Don't set deprecated_register_virtual_size.
4750 Don't set deprecated_max_register_virtual_size.
4751 Don't set deprecated_register_virtual_type.
4752 Set register_type method.
4753
3993f6b1
DJ
47542003-06-15 Daniel Jacobowitz <drow@mvista.com>
4755
4756 * Makefile.in (linux-nat.o): Add rule.
4757 * linux-nat.c: New file.
4758 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4759 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4760 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4761 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4762 * config/arm/linux.mh (NATDEPFILES): Likewise.
4763 * config/i386/linux.mh (NATDEPFILES): Likewise.
4764 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4765 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4766 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4767 * config/mips/linux.mh (NATDEPFILES): Likewise.
4768 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4769 * config/s390/s390.mh (NATDEPFILES): Likewise.
4770 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4771
786a90bb
MK
47722003-06-15 Mark Kettenis <kettenis@gnu.org>
4773
4774 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4775 replace out-of-date comment.
4776
3bd3f01e
AC
47772003-06-15 Andrew Cagney <cagney@redhat.com>
4778
4779 * rdi-share/host.h (Fail): Change to a varargs function.
4780 * remote-rdi.c (Fail): Update.
8ffd9b1b 4781
de5b9bb9
MK
47822003-06-15 Mark Kettenis <kettenis@gnu.org>
4783
4784 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4785 (i386_convert_register_p, i386_register_to_value,
4786 i386_register_from_value): Handle types longer than 8 bytes.
4787
d532c08f
MK
47882003-06-15 Mark Kettenis <kettenis@gnu.org>
4789
4790 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4791 Move floating-point code to new function in i387-tdep.c.
4792 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4793 New functions containing code moved here from i386-tdep.c.
4794 * i387-tdep.h: Add opaque declaration for `struct type'.
4795 (i387_register_to_value, i387_value_to_register): New prototypes.
4796 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4797 (x86_64_init_abi): Set convert_register_p, register_to_value and
4798 value_to_register here.
8ffd9b1b 4799
42c466d7
AC
48002003-06-14 Andrew Cagney <cagney@redhat.com>
4801
4802 * mips-tdep.c (mips_register_to_value): Make static.
4803 (mips_value_to_register): Make static.
4804 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4805 * ia64-tdep.c (ia64_register_raw_size): Make static.
4806 (ia64_register_virtual_size): Make static.
4807 (ia64_register_byte): Make static.
4808 * i387-tdep.c: Include "i387-tdep.h".
4809 (print_387_control_word): Delete function.
4810 (print_387_status_word): Delete function.
4811 (print_387_status_bits): Delete function.
4812 (print_387_control_bits): Delete function.
4813 * Makefile.in (i387-tdep.o): Update dependencies.
4814 * rdi-share/host.h (Fail): Declare.
4815 * remote-rdi.c (Fail): Update to match declaration.
4816
2a9cda49
AC
48172003-06-14 Andrew Cagney <cagney@redhat.com>
4818
4819 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4820 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4821 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4822 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4823 * README: Delete reference to remote-array.
4824 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4825 (remote-array.o): Delete target.
4826 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4827 * remote-array.c: Delete file.
4828
ff2e87ac
AC
48292003-06-14 Andrew Cagney <cagney@redhat.com>
4830 Mark Kettenis <kettenis@gnu.org>
4831
4832 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4833 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4834 parameter with "frame".
4835 * gdbarch.h, gdbarch.c: Re-generate.
4836 * frame.h (put_frame_register): Declare.
4837 * frame.c (put_frame_register): New function.
4838 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4839 (legacy_register_to_value): Rewrite, use "frame" to get the
4840 register value.
4841 (legacy_value_to_register): Rewrite, use "frame" to find the
4842 register's location before storing.
4843 * arch-utils.h (legacy_convert_register_p): Update.
4844 (legacy_register_to_value, legacy_value_to_register): Update.
4845 * findvar.c (value_from_register): Rewrite, eliminate use of
4846 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4847 "frame" to REGISTER_TO_VALUE.
4848 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4849 lval_reg_frame_relative + lval_register branch of the switch. Do
4850 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4851 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4852 I386_EDI_REGNUM): New defines.
4853 (i386_next_regnum, i386_convert_register_p,
4854 i386_register_to_value, i386_value_to_register): New functions.
4855 (i386_register_convertible, i386_register_convert_to_virtual,
4856 i386_convert_to_raw): Remove functions.
4857 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4858 value_to_register instead of register_convertible,
4859 register_convert_to_virtual and register_convert_to_raw.
4860 * mips-tdep.c (mips_convert_register_p): New function.
4861 (mips_value_to_register): Replace mips_register_convert_from_type.
4862 (mips_register_to_value): Replace mips_register_convert_to_type.
4863 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4864 register_to_value.
4865 * alpha-tdep.c (alpha_convert_register_p): Update.
4866 (alpha_value_to_register): Update, store the register.
4867 (alpha_register_to_value): Update, fetch the register.
4868
98be1e77
TR
48692003-06-14 Theodore A. Roth <troth@openavr.org>
4870
4871 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4872 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4873 Don't set deprecated_call_dummy_words.
4874 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4875 Don't set remote_translate_xfer_address.
4876 (avr_io_reg_read_command): Remove commented out debug printf.
4877 Wrap a long line.
4878
57bc6122
TR
48792003-06-14 Theodore A. Roth <troth@openavr.org>
4880
4881 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4882 causes gdb to seg fault.
4883
eb01fc62
DJ
48842003-06-14 Daniel Jacobowitz <drow@mvista.com>
4885
4886 * sparc-nat.c (fetch_inferior_registers): Correct
4887 a reference to "registers".
4888
3b3e6bee
DJ
48892003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4890
4891 * Makefile.in (exc_request_U_h): Define
4892 (exc_request_S_h): Likewise.
4893 (msg_reply_S_h): Likewise.
4894 (msg_U_h): Likewise.
4895 (notify_S_h): Likewise.
4896 (process_reply_S_h): Likewise.
4897 (gnu-nat.o): Depend on gdb_obstack_h
4898 * gnu-nat.c: Include "gdb_obstack.h".
4899
b8de8283
AC
49002003-06-13 Andrew Cagney <cagney@redhat.com>
4901
4902 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4903 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4904
f3be58bc
AC
49052003-06-13 Andrew Cagney <cagney@redhat.com>
4906
4907 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4908 when deprecated REGISTER macros can be deleted.
4909 * gdbarch.h, gdbarch.c: Re-generate.
4910
4c0122c8
JB
49112003-06-13 Jim Blandy <jimb@redhat.com>
4912
4913 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4914 Linux entry point symbols for _dl_debug_state, too.
4915
3e210248
AC
49162003-06-13 Andrew Cagney <cagney@redhat.com>
4917
4918 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4919 available, do not use the FP register, and always save the TOS.
4920 * dummy-frame.c (dummy_frame_this_id): Do not assert
4921 SAVE_DUMMY_FRAME_TOS.
4922 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4923 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4924 (i386_push_dummy_call): Add 8 to the returned SP.
4925 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4926 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4927 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4928 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4929 (x86_64_push_dummy_call): Return "sp + 16".
4930 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4931 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4932 save_dummy_frame_tos.
4933
0b65af49
JB
49342003-06-13 Jim Blandy <jimb@redhat.com>
4935
4936 * frv-tdep.c (frv_use_struct_convention): Delete static
4937 declaration for function deleted in my change of 2003-06-12.
4938
4ea2465e
TR
49392003-06-13 Theodore A. Roth <troth@openavr.org>
4940
4941 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4942 (avr_pointer_to_address): Shift code addrs left 1 bit.
4943 (avr_convert_from_func_ptr_addr): Delete function since operation is
4944 better handled by avr_address_to_pointer and avr_pointer_to_address.
4945 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4946
1581182a
MK
49472003-06-13 Mark Kettenis <kettenis@gnu.org>
4948
4949 From Kelley Cook <kelleycook@wideopenwest.com>:
4950 * configure.host: Accept i[34567]86 variants.
4951 * configure.tgt: Likewise.
4952 * nlm/configure.in: Likewise.
4953 * nlm/configure: Regenerated.
4954
7aa1783e
RE
49552003-06-13 Richard Earnshaw <rearnsha@arm.com>
4956
4957 * arm-tdep.c (solib-svr4.h): Dont' include it.
4958 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4959 * arm-linux-tdep.c: ... here. Make static.
4960 (arm_linux_init_abi): Register it.
4961 (solib-svr4.h): Include it.
4962 * Makefile.in: Update dependencies.
4963 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4964 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4965
0261a0d0
CV
49662003-06-13 Corinna Vinschen <vinschen@redhat.com>
4967
4968 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4969 indicate registers used for return values.
4970 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4971 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4972 members.
4973 (h8300_init_extra_frame_info): Ditto.
4974 (h8300_frame_locals_address): Removed.
4975 (h8300_frame_args_address): Removed.
4976 (h8300_extract_return_value): Use new regcache structure. Only care
4977 for 16 bit CPUs.
4978 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4979 (h8300_store_return_value): Use new regcache structure. Only care
4980 for 16 bit CPUs.
4981 (h8300h_store_return_value): Same function for 32 bit CPUs.
4982 (h8300_store_struct_return): Removed.
4983 (h8300_extract_struct_value_address): Use new regcache structure.
4984 (h8300h_extract_struct_value_address): Removed.
4985 (h8300_push_dummy_code): New function.
4986 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4987 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4988 set_gdbarch_store_return_value architecture dependent.
4989 Call set_gdbarch_push_dummy_code and
4990 set_gdbarch_extract_struct_value_address.
4991 Remove calls to set_gdbarch_frame_args_address,
4992 set_gdbarch_frame_locals_address,
4993 set_gdbarch_deprecated_store_struct_return,
4994 set_gdbarch_deprecated_extract_return_value,
4995 set_gdbarch_deprecated_extract_struct_value_address,
4996 set_gdbarch_deprecated_call_dummy_words and
4997 set_gdbarch_deprecated_sizeof_call_dummy_words.
4998
055c394a
CV
49992003-06-13 Corinna Vinschen <vinschen@redhat.com>
5000
5001 * h8300-tdep.c (h8300_register_byte): Remove.
5002 (h8300h_register_byte): Remove.
5003 (h8300_register_virtual_type): Remove. Substitute by...
5004 (h8300_register_type): New function.
5005 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5006 (h8300h_extract_struct_value_address): Ditto.
5007 (h8300_gdbarch_init): Drop calls to
5008 set_gdbarch_deprecated_register_byte and
5009 set_gdbarch_deprecated_register_virtual_type.
5010 Add call to set_gdbarch_register_type.
5011
9c04cab7
AC
50122003-06-13 Andrew Cagney <cagney@redhat.com>
5013
5014 * gdbarch.sh: Update comments on registers.
5015 (deprecated_register_byte): Rename register_byte.
5016 (deprecated_register_raw_size): Rename register_raw_size.
5017 (deprecated_register_virtual_size): Rename register_virtual_size.
5018 (deprecated_register_virtual_type): Rename register_virtual_type.
5019 * gdbarch.h, gdbarch.c: Re-generate.
5020 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5021 * vax-tdep.c (vax_gdbarch_init): Update.
5022 * v850-tdep.c (v850_gdbarch_init): Update.
5023 * sparc-tdep.c (sparc_gdbarch_init): Update.
5024 * sh-tdep.c (sh_gdbarch_init): Update.
5025 * s390-tdep.c (s390_gdbarch_init): Update.
5026 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5027 * ns32k-tdep.c: Update.
5028 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5029 * mips-tdep.c (mips_gdbarch_init): Update.
5030 * mcore-tdep.c (mcore_gdbarch_init): Update.
5031 * m68k-tdep.c (m68k_gdbarch_init): Update.
5032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5033 * ia64-tdep.c (ia64_gdbarch_init): Update.
5034 * hppa-tdep.c (hppa_gdbarch_init): Update.
5035 * h8300-tdep.c (h8300_gdbarch_init): Update.
5036 * frv-tdep.c (frv_gdbarch_init): Update.
5037 * cris-tdep.c (cris_gdbarch_init): Update.
5038 * avr-tdep.c (avr_gdbarch_init): Update.
5039 * alpha-tdep.c (alpha_gdbarch_init): Update.
5040 * arm-tdep.c (arm_gdbarch_init): Update.
5041
b060cbea
AC
50422003-06-13 Andrew Cagney <cagney@redhat.com>
5043
5044 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5045 mips_o32_use_struct_convention with always_use_struct_convention.
5046
0fc9922a
DC
50472003-06-12 David Carlton <carlton@kealia.com>
5048
5049 * cp-namespace.c (cp_set_block_scope): Comment out
5050 processing_has_namespace_info branch.
5051
1fd35568
JB
50522003-06-12 Jim Blandy <jimb@redhat.com>
5053
f470a70a
JB
5054 Recognize and skip 64-bit PowerPC Linux linkage functions.
5055 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5056 insn_pattern, insns_match_pattern, d_field, ds_field): New
5057 functions, macros, and types for working with PPC instructions.
5058 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5059 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5060 ppc64_skip_trampoline_code): New functions, variables, and macros
5061 for recognizing and skipping linkage functions.
5062 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5063 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5064
49ff75ad
JB
5065 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5066 register offsets for both the 32- and 64-bit interfaces.
5067
bd918c83
JB
5068 Actually finish the job started by my change of 2003-05-29.
5069 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5070 other #definition of this.
5071 (ppc_linux_skip_trampoline_code): Remove declaration.
5072 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5073 static.
5074 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5075 method for GDBARCH.
5076
5077 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5078 'long' on ppc64-*-linux*.
5079
f8c59253
JB
5080 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5081 isn't #defined, assume the register doesn't exist: act as if
5082 tdep->ppc_mq_regnum were -1.
5083
8fbb30b1
JB
5084 * configure.host, configure.tgt: Add entries for
5085 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5086 powerpc/linux.mt.
5087 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5088 New files.
5089
1fd35568
JB
5090 * arch-utils.c (always_use_struct_convention): New function.
5091 * arch-utils.h (always_use_struct_convention): New prototype.
5092 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5093 (alpha_gdbarch_init): Register always_use_struct_convention,
5094 instead of alpha_use_struct_convention.
5095 * cris-tdep.c (cris_use_struct_convention): Delete.
5096 (cris_gdbarch_init): Register always_use_struct_convention,
5097 instead of cris_use_struct_convention.
5098 * frv-tdep.c (frv_use_struct_convention): Delete.
5099 (frv_gdbarch_init): Register always_use_struct_convention,
5100 instead of frv_use_struct_convention.
5101 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5102 (h8300_gdbarch_init): Register always_use_struct_convention,
5103 instead of h8300_use_struct_convention.
e3305dd9 5104 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5105 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5106 instead of mips_o32_use_struct_convention.
5107
e14e6e9c
AC
51082003-06-12 Andrew Cagney <cagney@redhat.com>
5109
5110 * wince.c: Include "mips-tdep.h".
5111 * mips-tdep.h (mips_next_pc): Declare.
5112 * mcore-tdep.c: Make more local functions static.
5113 * Makefile.in (wince.o): Update dependencies.
5114
2335f48e
DC
51152003-06-12 David Carlton <carlton@kealia.com>
5116
5117 * symtab.c (lookup_symbol_aux_minsyms): Replace
5118 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5119 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5120 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5121 SYMBOL_NATURAL_NAME.
5122
f70a7d61
AS
51232003-06-12 Andreas Schwab <schwab@suse.de>
5124
5125 * Makefile.in (tuiDisassem.o): Update dependencies.
5126
b6429628
DC
51272003-06-12 David Carlton <carlton@bactrian.org>
5128
5129 * symtab.h: Delete declaration of make_symbol_overload_list.
5130 Add declaration of lookup_partial_symbol.
5131 * symtab.c (remove_params): Move to cp-support.c.
5132 (overload_list_add_symbol, make_symbol_overload_list)
5133 (sym_return_val_size, sym_return_val_index): Ditto.
5134 (lookup_partial_symbol): Make extern.
5135 * cp-support.h: Add declaration of make_symbol_overload_list.
5136 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5137 symtab.h, and block.h.
5138 (remove_params): Move here from symtab.c.
5139 (overload_list_add_symbol, make_symbol_overload_list)
5140 (sym_return_val_size, sym_return_val_index): Ditto.
5141 * valops.c: Include cp-support.h.
5142 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5143 frame_h, and block_h.
5144 (valops.o): Depend on cp_support_h.
5145
084edea5
CV
51462003-06-12 Corinna Vinschen <vinschen@redhat.com>
5147
5148 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5149 substitute by NUM_REGS throughout.
5150 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5151 (h8300s_register_name): New function for H8S registers.
5152 (h8300sx_register_name): Ditto for H8SX registers.
5153 (h8300_print_register): Revise register printing, avoid depending
5154 on 32 bit long.
0261a0d0 5155 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5156 (h8300h_register_byte): New function for any other architecture.
5157 (h8300_register_raw_size): Remove.
5158 (h8300_register_virtual_type): Revise to return actually useful
5159 type.
5160 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5161 (h8300h_extract_struct_value_address): New function for any other
5162 architecture.
5163 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5164 set_gdbarch_register_name, set_gdbarch_register_byte,
5165 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5166 Remove calls to set_gdbarch_deprecated_register_size,
5167 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5168 set_gdbarch_deprecated_max_register_raw_size,
5169 set_gdbarch_register_virtual_size and
5170 set_gdbarch_deprecated_max_register_virtual_size entirely.
5171 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5172 set_gdbarch_long_double_bit.
5173
06194148
JJ
51742003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5175
8ffd9b1b
AJ
5176 * doublest.c (convert_doublest_to_floatformat): When dealing
5177 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5178 processing a full 32 bits of mantissa.
5179
de4f826b
DC
51802003-06-11 David Carlton <carlton@bactrian.org>
5181
5182 * dictionary.h: New.
5183 * dictionary.c: New.
5184 * block.h: Add opaque declaration for struct dictionary.
5185 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5186 'sym' members.
5187 (BLOCK_DICT): New macro.
5188 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5189 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5190 BLOCK_SHOULD_SORT.
5191 (ALL_BLOCK_SYMBOLS): Update definition.
5192 * Makefile.in (SFILES): Add dictionary.c.
5193 (dictionary_h): New.
5194 (COMMON_OBS): Add dictionary.o.
5195 (dictionary.o): New.
5196 (ada-lang.o): Depend on dictionary_h.
5197 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5198 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5199 (mi-cmd-stack.o): Ditto.
5200 (gdbtk-cmds.o): Update dependencies.
5201 (gdbtk-stack.o): Ditto.
5202 * ada-lang.c: Include dictionary.h.
5203 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5204 (fill_in_ada_prototype, debug_print_block): Ditto.
5205 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5206 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5207 'is_sorted'.
5208 * mdebugread.c: Include dictionary.h.
5209 (struct parse_stack): Delete 'maxsyms' member.
5210 (parse_symbol): Update calls to new_block. Delete calls to
5211 shrink_block. Use dictionary methods.
5212 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5213 Update calls to new_symtab. Don't maintain maxsyms data.
5214 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5215 (add_symbol): Just call dict_add_symbol.
5216 (new_symtab): Delete 'maxsyms' argument.
5217 (new_symtab): Update calls to new_block.
5218 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5219 (shrink_block): Delete function.
5220 (fixup_sigtramp): Update call to new_block. Add symbol via
5221 dict_add_symbol.
5222 * jv-lang.c: Include dictionary.h.
5223 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5224 appropriately. Set class_symtab->free_func. Make sure the
5225 blockvector is big enough to hold two blocks.
5226 (add_class_symtab_symbol): Use dictionary methods.
5227 (free_class_block): New function.
5228 (type_from_class): Replace explicit iteration by
5229 ALL_BLOCK_SYMBOLS.
5230 * symtab.h (struct symtab): Replace 'free_ptr' method by
5231 'free_func'.
5232 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5233 sort_symtab_syms.
5234 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5235 sort_symtab_syms.
5236 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5237 Include dictionary.h.
5238 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5239 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5240 sort_symtab_syms.
5241 * objfiles.c: Include dictionary.h.
5242 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5243 * buildsym.c: Include dictionary.h.
5244 (finish_block): Use dictionary methods.
5245 (end_symtab): Set free_func to NULL, not free_ptr.
5246 * tracepoint.c: Include dictionary.h.
5247 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5248 (scope_info): Ditto.
5249 * stack.c: Include dictionary.h.
5250 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5251 (print_block_frame_labels, print_frame_arg_vars)
5252 (print_frame_args): Ditto.
5253 * symmisc.c (free_symtab_block): Use dictionary methods.
5254 (dump_symtab): Ditto.
5255 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5256 Include dictionary.h.
5257 * symfile.h: Delete declarations of sort_block_syms,
5258 sort_symtab_syms.
5259 * symfile.c (sort_block_syms): Delete.
5260 (sort_symtab_syms): Delete.
5261 * symtab.c: Include dictionary.h.
5262 (lookup_block_symbol): Use dictionary iterators.
5263 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5264 (search_symbols, make_symbol_completion_list): Ditto.
5265 (make_symbol_overload_list): Ditto.
5266 * valops.c (value_of_local): Use dict_empty.
5267 Include dictionary.h.
5268
a31f978c
JB
52692003-06-11 J. Brobecker <brobecker@gnat.com>
5270
5271 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5272
526e70c0
DC
52732003-06-11 David Carlton <carlton@bactrian.org>
5274
5275 * block.h (BLOCK_SHOULD_SORT): Delete.
5276 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5277 blocks.
5278 * ada-lang.c (ada_add_block_symbols): Ditto.
5279 * symfile.c (sort_block_syms): Delete.
5280 (sort_symtab_syms): Ditto.
5281 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5282 declarations.
5283 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5284 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5285 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5286 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5287 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5288 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5289 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5290
33c08150
JJ
52912003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5292
8ffd9b1b 5293 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5294 bits to 128.
5295
781a750d
AC
52962003-06-11 Andrew Cagney <cagney@redhat.com>
5297
5298 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5299 REGISTER_CONVERTIBLE.
5300 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5301 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5302 * gdbarch.h, gdbarch.c: Re-generate.
5303 * arch-utils.h (deprecated_register_convertible_not): Rename
5304 generic_register_convertible_not.
5305 * arch-utils.c (deprecated_register_convertible_not): Rename
5306 generic_register_convertible.
5307 (legacy_convert_register_p, legacy_register_to_value): Update.
5308 * sh-tdep.c (sh64_push_arguments): Update.
5309 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5310 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5311 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5312 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5313 * arch-utils.c (legacy_value_to_register): Update.
5314 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5315 (rs6000_register_convert_to_raw): Make parameter "from" const.
5316 * mips-tdep.c (mips_gdbarch_init): Update.
5317 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5318 * infcmd.c (default_print_registers_info): Update.
5319 * ia64-tdep.c (ia64_gdbarch_init): Update.
5320 (ia64_register_convert_to_raw): Make parameter "from" const.
5321 * i386-tdep.c (i386_gdbarch_init): Update.
5322 (i386_register_convert_to_raw): Update.
5323
cd90e54f
AC
53242003-06-11 Andrew Cagney <cagney@redhat.com>
5325
5326 * remote-fileio.c: Include "remote-fileio.h".
5327 * Makefile.in (remote-fileio.o): Update dependencies.
5328 (remote_fileio_h): Fix typo.
5329
a78f21af
AC
53302003-06-11 Andrew Cagney <cagney@redhat.com>
5331
5332 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5333 (xstormy16_save_dummy_frame_tos): Make static.
5334 (_initialize_xstormy16_tdep): Add declaration.
5335 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5336 * v850-tdep.c: Make local functions static.
5337 (_initialize_v850_tdep): Add declaration.
5338 * sparc-tdep.c: Make local functions static.
5339 (_initialize_sparc_tdep): Add declaration.
5340 * sh-tdep.c: Make local functions static.
5341 (_initialize_sh_tdep): Add declaration.
5342 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5343 * s390-tdep.c: Make local functions static.
5344 (_initialize_s390_tdep): Add declaration.
5345 * dbxread.c (find_stab_function_addr): Make static.
5346 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5347 * ocd.c (_initialize_remote_ocd): Add declaration.
5348 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5349 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5350 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5351 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5352 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5353 * remote-array.c (_initialize_array): Add declaration.
5354 (_initialize_remote_monitors): Add declaration.
5355 * remote-mips.c: Make local functions static.
5356 (_initialize_remote_mips): Add declaration.
5357 * mcore-tdep.c: Make all local functions static.
5358 (_initialize_mcore_tdep): Add declaration.
5359 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5360 * abug-rom.c (_initialize_abug_rom): Add declaration.
5361 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5362 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5363 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5364 * remote-est.c (_initialize_est): Add declaration.
5365 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5366 (m68hc11_call_dummy_address): Make static.
5367 * ia64-tdep.c: Make local functions static.
5368 (_initialize_ia64_tdep): Add declaration.
5369 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5370 * monitor.c (monitor_wait_filter): Make static.
5371 (_initialize_remote_monitors): Add declaration.
5372 * remote-hms.c (_initialize_remote_hms): Add declaration.
5373 * remote-e7000.c (fetch_regs_from_dump): Make static.
5374 (expect_n): Make static.
5375 (_initialize_remote_e7000): Add declaration.
5376 * ser-e7kpc.c: Always include "defs.h".
5377 (_initialize_ser_e7000pc): Add declaration.
5378 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5379 * cris-tdep.c: Make all but one function static.
5380 (_initialize_cris_tdep): Add declaration.
5381 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5382 * solib.c (update_solib_list): Make static.
5383 (_initialize_solib): Add declaration.
5384 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5385 (_initialize_avr_tdep): Add declaration.
5386 * remote-rdi.c (voiddummy): Make static.
5387 (_initialize_remote_rdi): Add declaration.
5388 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5389 * remote-rdp.c (send_rdp): Make static.
5390 (_initialize_remote_rdp): Add declaration.
5391 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5392
cbcdb1f5
CV
53932003-06-11 Corinna Vinschen <vinschen@redhat.com>
5394
5395 * remote-fileio.c: Make ari happy.
5396
a191ea8d
JB
53972003-06-10 J. Brobecker <brobecker@gnat.com>
5398
5399 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5400 fetching the trailing bytes of the buffer we are about to write.
5401
0ef75e11
AC
54022003-06-10 Andrew Cagney <cagney@redhat.com>
5403
5404 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5405 * Makefile.in (remote-fileio.o): Update dependencies.
5406 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5407 include <setjmp.h>, or <sys/types.h> conditional on USG.
5408 (remote_fio_jmp_buf): Delete global variable.
5409
449092f6 54102003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5411 Martin M. Hunt <hunt@redhat.com>
449092f6 5412
559fa028
AC
5413 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5414 (SFILES): Add remote-fileio.c.
5415 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5416 dependencies for building remote.o.
449092f6
CV
5417 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5418 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5419 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5420 static storage class.
5421 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5422 'F' packet.
5423 (_initialize_remote): Call initialize_remote_fileio().
5424 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5425 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5426 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5427 (captured_main): Initialize new ui_files.
5428 * ui-file.c: Add read and fgets input functions.
5429 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5430 (null_file_read): New function.
5431 (ui_file_read): New function.
5432 (set_ui_file_read): New function.
5433 (stdio_file_read): New function.
5434 * ui-file.h: New type ui_file_read_ftype.
5435 (set_ui_file_read): Declare.
5436 (ui_file_read): Declare.
5437
248de703
AC
54382003-06-09 Andrew Cagney <cagney@redhat.com>
5439
5440 * frame.h (deprecated_unwind_get_saved_register): Rename
5441 generic_unwind_get_saved_register, update comments.
5442 * mips-tdep.c (mips_get_saved_register): Update.
5443 * frame.c (deprecated_unwind_get_saved_register): Update.
5444
0ed8aa57
AC
54452003-06-09 Andrew Cagney <cagney@redhat.com>
5446
5447 * vax-tdep.c (vax_frame_locals_address): Delete function.
5448 (vax_gdbarch_init): Do not set frame_locals_address.
5449 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5450 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5451 * s390-tdep.c (s390_frame_args_address): Delete function.
5452 (s390_gdbarch_init): Do not set frame_args_address or
5453 frame_locals_address.
5454 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5455 (ns32k_gdbarch_init): Do not set frame_locals_address.
5456 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5457 (hppa_frame_locals_address): Delete function.
5458 (hppa_gdbarch_init): Do not set frame_args_address, or
5459 frame_locals_address.
5460 * arm-tdep.c (arm_frame_args_address): Delete.
5461 (arm_frame_locals_address): Delete.
5462 (arm_gdbarch_init): Do not set frame_args_address, or
5463 frame_locals_address.
5464
983a287a
AC
54652003-06-09 Andrew Cagney <cagney@redhat.com>
5466
5467 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5468 * gdbarch.h, gdbarch.c: Re-generate.
5469 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5470 * arch-utils.c (frame_num_args_unknown): Delete function.
5471 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5472 (frame_info): Use FRAME_NUM_ARGS_P.
5473 * arm-tdep.c (arm_frame_num_args): Delete function.
5474 (arm_gdbarch_init): Do not set frame_num_args.
5475 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5476 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5477 (hppa_gdbarch_init): Do not set frame_num_args.
5478 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5480 frame_num_args to default frame_num_args_unknown.
5481 * v850-tdep.c (v850_gdbarch_init): Ditto.
5482 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5483 * sh-tdep.c (sh_gdbarch_init): Ditto.
5484 * s390-tdep.c (s390_gdbarch_init): Ditto.
5485 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5486 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5487 * mips-tdep.c (mips_gdbarch_init): Ditto.
5488 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5489 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5491 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5492 * i386-tdep.c (i386_gdbarch_init): Ditto.
5493 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5494 * frv-tdep.c (frv_gdbarch_init): Ditto.
5495 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5496 * cris-tdep.c (cris_gdbarch_init): Ditto.
5497 * avr-tdep.c (avr_gdbarch_init): Ditto.
5498 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5499
8d3b0994
AC
55002003-06-09 Andrew Cagney <cagney@redhat.com>
5501
5502 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5503 (print_frame_args): Moved to "stack.c".
5504 * stack.c: Include "gdb_assert.h".
5505 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5506 (print_frame_args): Moved from "printcmd.c".
5507 * frame.h (print_frame_args): Delete declaration.
5508 * Makefile.in (stack.o): Update dependencies.
5509
25e3a86b
AC
55102003-06-08 Andrew Cagney <cagney@redhat.com>
5511
5512 * frame.c (get_prev_frame): Remove reference to
5513 frame_args_address_correct in comments.
5514 * frame-base.c (default_frame_args_address): Delete code
5515 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5516 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5517 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5518 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5519 (vax_frame_args_address_correct): Delete declaration.
5520
a9e5fdc2
AC
55212003-06-08 Andrew Cagney <cagney@redhat.com>
5522
5523 * gdbarch.sh (UNWIND_SP): Add.
5524 * gdbarch.h, gdbarch.c: Re-generate.
5525 * frame.c (frame_sp_unwind): New function.
5526 (get_frame_sp): New function.
5527 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5528 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5529 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5530 value.
5531 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5532 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5533
8983bd83
AC
55342003-06-08 Andrew Cagney <cagney@redhat.com>
5535
7fec2c59
AC
5536 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5537 REMOTE_BREAKPOINT.
5538 * remote.c: Update.
5539 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5540 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5541 * config/m68k/tm-sun3.h: Update.
5542 * config/m68k/tm-m68klynx.h: Update.
5543 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5544
8983bd83
AC
5545 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5546 trad_frame". Update comments.
5547 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5548 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5549 (trad_frame_register_value, trad_frame_prev_register): Update.
5550
b9362cc7
AC
55512003-06-08 Andrew Cagney <cagney@redhat.com>
5552
5553 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5554 from GCC's acinclude.m4.
5555 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5556 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5557 * main.c (error_init): Delete declaration.
5558 * defs.h (error_init): Declare.
5559 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5560 (rs6000_convert_from_func_ptr_addr): Make static.
5561 (_initialize_rs6000_tdep): Add declaration.
5562 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5563 (show_commands, set_verbose, show_history): Delete declaration.
5564 * top.h (set_verbose): Add declaration.
5565 (show_history, set_history, show_commands): Add declaration.
5566 (do_restore_instream_cleanup): Add declaration.
5567 * objc-lang.c (specialcmp): Make static.
5568 (print_object_command): Make static.
5569 (find_objc_msgsend): Make static.
5570 (find_objc_msgcall_submethod_helper): Make static.
5571 (find_objc_msgcall_submethod): Make static.
5572 (_initialize_objc_language): Add declaration.
5573 (find_implementation_from_class): Make static.
5574 (find_implementation): Make static.
5575 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5576 * objc-lang.h (lookup_struct_typedef): Add declaration.
5577 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5578 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5579 (do_restore_user_call_depth): Make static.
5580 (do_restore_instream_cleanup): Delete declaration.
5581 (dont_repeat): Delete declaration.
5582 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5583 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5584 * reggroups.c (_initialize_reggroup): Add declaration.
5585 * cp-support.c (_initialize_cp_support): Add declaration.
5586 * cp-abi.c (_initialize_cp_abi): Add declaration.
5587 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5588 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5589 (_initialize_gnu_v3_abi): Add declaration.
5590 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5591 (_initialize_gnu_v2_abi): Add declaration.
5592 * frame-base.c (_initialize_frame_base): Add declaration.
5593 * doublest.c (floatformat_from_length): Make static.
5594 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5595 * frame.c (create_sentinel_frame): Make static.
5596 (_initialize_frame): Add declaration.
5597 * top.c (do_catch_errors): Make static.
5598 (gdb_rl_operate_and_get_next_completion): Make static.
5599 * typeprint.c: Include "typeprint.h".
5600 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5601 (sentinel_frame_this_id): Make static.
5602 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5603 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5604 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5605 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5606 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5607 * maint.c (maintenance_print_architecture): Make static.
5608 * signals/signals.c (_initialize_signals): Add declaration.
5609 * std-regs.c (_initialize_frame_reg): Add declaration.
5610 * jv-exp.y (push_variable): ISO C definition.
5611 (push_qualified_expression_name): Ditto.
5612 * memattr.c (_initialize_mem): Add declaration.
5613 * remote.c (remote_check_watch_resources): Make static.
5614 (remote_stopped_by_watchpoint): Make static.
5615 (remote_stopped_data_address): Make static.
5616 * d10v-tdep.c (nr_dmap_regs): Make static.
5617 (a0_regnum): Make static.
5618 (d10v_frame_unwind_cache): Make static.
5619 (d10v_frame_p): Make static.
5620 * osabi.c (show_osabi): Make static.
5621 (_initialize_gdb_osabi): Add extern declaration.
5622 * gdbtypes.c (make_qualified_type): Make static.
5623 (safe_parse_type): Make static.
5624 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5625 * macrotab.c (macro_bcache_free): Make static.
5626 * interps.c (interp_set_quiet): Make static.
5627 (interpreter_exec_cmd): Make static.
5628 * stack.h (select_frame_command): New file.
5629 * stack.c: Include "stack.h".
5630 (select_frame_command_wrapper): Delete function.
5631 (select_frame_command): Make global.
5632 * infcall.c: Include "infcall.h".
5633 * linespec.c: Include "linespec.h".
5634 * symfile.c (sections_overlap): Make static.
5635 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5636 * charset.c (_initialize_charset): Add missing prototype.
5637 * regcache.c (init_legacy_regcache_descr): Make static.
5638 (do_regcache_xfree): Make static.
5639 (regcache_xfer_part): Make static.
5640 (_initialize_regcache): Add missing prototype.
5641 * breakpoint.c (parse_breakpoint_sals): Make static.
5642 (breakpoint_sals_to_pc): Make static.
5643 * interps.h (clear_interpreter_hooks): ISO C declaration.
5644 * Makefile.in (stack_h): Define.
5645 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5646 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5647
a0f267c7
AC
56482003-06-08 Andrew Cagney <cagney@redhat.com>
5649
5650 * Makefile.in (d10v-tdep.o): Update dependencies.
5651 (SFILES): Add trad-frame.c.
5652 (trad_frame_h): Define.
5653 (COMMON_OBS): Add trad-frame.o.
5654 (trad-frame.o): Specify dependencies.
5655 * d10v-tdep.c: Include "trad-frame.h".
5656 (saved_regs_unwinder): Delete function.
5657 (d10v_frame_prev_register): Use trad_frame_prev_register.
5658 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5659 trad_frame", delete "regs" and "prev_sp".
5660 (prologue_find_regs): Use trad-frame.
5661 * trad-frame.h, trad-frame.c: New files.
5662
4538b4f4
MK
56632003-06-08 Mark Kettenis <kettenis@gnu.org>
5664
5665 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5666
a0273b2f
AF
56672003-06-07 Adam Fedor <fedor@gnu.org>
5668
5669 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5670 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5671 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5672 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5673 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5674 Use it.
5675
3a6c3343
AC
56762003-06-07 Andrew Cagney <cagney@redhat.com>
5677
5678 * symfile.h: Re-indent, clean up comments.
5679
b46e02f6
AC
56802003-06-07 Andrew Cagney <cagney@redhat.com>
5681
5682 * inferior.h (deprecated_write_sp): Replace
5683 generic_target_write_sp.
5684 * regcache.c (deprecated_write_sp): Replace
5685 generic_target_write_sp.
5686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5687 * vax-tdep.c (vax_gdbarch_init): Update.
5688 * v850-tdep.c (v850_gdbarch_init): Update.
5689 * sparc-tdep.c (sparc_gdbarch_init): Update.
5690 * sh-tdep.c (sh_gdbarch_init): Update.
5691 * s390-tdep.c (s390_gdbarch_init): Update.
5692 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5693 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5694 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5695 * mcore-tdep.c (mcore_gdbarch_init): Update.
5696 * m68k-tdep.c (m68k_gdbarch_init): Update.
5697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5698 * ia64-tdep.c (ia64_gdbarch_init): Update.
5699 * h8300-tdep.c (h8300_gdbarch_init): Update.
5700 * frv-tdep.c (frv_gdbarch_init): Update.
5701 * cris-tdep.c (cris_gdbarch_init): Update.
5702 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5703
a42e117c
AC
57042003-06-07 Andrew Cagney <cagney@redhat.com>
5705
5706 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5707 Assert that PC_REGNUM is valid.
5708 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5709
bd1ce8ba
AC
57102003-06-07 Andrew Cagney <cagney@redhat.com>
5711
5712 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5713 * gdbarch.h, gdbarch.c: Regenerate.
5714 * mn10300-tdep.c: Include "gdb_assert.h".
5715 (mn10300_read_fp): New function.
5716 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5717 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5718 * ia64-tdep.c: Include "gdb_assert.h".
5719 (ia64_read_fp): New function.
5720 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5721 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5722 * regcache.c (generic_target_read_sp): Delete function.
5723 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5724 * inferior.h (generic_target_read_sp): Delete declaration.
5725 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5726 generic_target_read_sp.
5727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5728 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5729 * sh-tdep.c (sh_gdbarch_init): Ditto.
5730 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5731 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5732
ec5cbaec
AC
57332003-06-07 Andrew Cagney <cagney@redhat.com>
5734
5735 * gdbarch.sh: Comment each field of startup_gdbarch.
5736 * gdbarch.h, gdbarch.c: Re-generate.
5737
cde9ea48
AC
57382003-06-07 Andrew Cagney <cagney@redhat.com>
5739
5740 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5741 * gdbarch.h, gdbarch.c: Re-generate.
5742 * regcache.c: Update comments on read_pc et.al.
5743 (generic_target_read_pc): Delete function.
5744 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5745 * inferior.h (generic_target_read_pc): Delete declaration.
5746 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5747 generic_target_read_pc.
5748 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5749 * sh-tdep.c (sh_gdbarch_init): Ditto.
5750 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5752
9a90a780
AC
57532003-06-07 Andrew Cagney <cagney@redhat.com>
5754
5755 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5756 "index" with "special_local_sect". Use strcmp instead of STREQ.
5757 Append period to coments.
5758
a39a16c4
MM
57592003-06-06 Mark Mitchell <mark@codesourcery.com>
5760
5761 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5762 (elfstab_offset_sections): Likewise.
5763 * gdb-stabs.h (stab_section_info): Likewise.
5764 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5765 * objfiles.c (objfile_relocate): Likewise.
5766 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5767 * remote.c (get_offsets): Likewise.
5768 (remote_cisco_objfile_relocate): Likewise.
5769 * somread.c (som_symfile_offsets): Likewise.
5770 * symfile.c (alloc_section_addr_info): New function.
5771 (build_section_addr_info_from_section_tab): Use it.
5772 (free_section_addr_info): Adjust.
5773 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5774 (syms_from_objfile): Allocate local_addr dynamically.
5775 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5776 dynamically.
5777 (add_symbol_file_command): Allocate sect_opts dynamically.
5778 (reread_symbols): Avoid use of SECT_OFF_MAX.
5779 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5780 (alloc_section_addr_info): Declare it.
5781 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5782 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5783 dynamically.
5784 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5785
20c6c2f8
AC
57862003-06-06 Andrew Cagney <cagney@redhat.com>
5787
5788 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5789 (d10v_frame_unwind_cache): Do not set "return_pc".
5790
884a26c8
MS
57912003-06-06 Michael Snyder <msnyder@redhat.com>
5792
5793 * h8300-tdep.c: Make tidy (long lines).
5794
088ce440
ML
57952003-06-06 Michal Ludvig <mludvig@suse.cz>
5796
8ffd9b1b 5797 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5798 to regcache_collect().
5799
7d773d96
JB
58002003-06-05 J. Brobecker <brobecker@gnat.com>
5801
5802 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5803 pc_in_sigtramp multiarch method.
5804 (hppa_hpux_som_init_abi): Use it.
5805 (hppa_hpux_elf_init_abi): Likewise.
5806 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5807 macro has been multiarched.
5808 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5809 macro here, as hppa64 isn't multiarched yet.
5810
1df6926e
AC
58112003-06-05 Andrew Cagney <cagney@redhat.com>
5812
5813 * Makefile.in (value_h): Add $(frame_h).
5814 * value.h: Include "frame.h".
5815 (struct value): Replace "frame_addr" with "frame_id".
5816 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5817 * values.c (allocate_value): Use VALUE_FRAME_ID.
5818 (value_copy): Use VALUE_FRAME_ID.
5819 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5820 * valops.c (value_assign): Update. Use frame_find_by_id.
5821
6b53acc6
ML
58222003-06-05 Michal Ludvig <mludvig@suse.cz>
5823
5824 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5825 in each pass.
5826
4d9850d3
JJ
58272003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5828
5829 * thread-db.c (check_event): For create/death event breakpoints,
5830 loop through all messages to ensure that we read the message
5831 corresponding to the breakpoint we are at.
5832
8efca6ba
MS
58332003-06-04 Michael Snyder <msnyder@redhat.com>
5834
5835 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5836
0912c7f2
MK
58372003-06-04 Mark Kettenis <kettenis@gnu.org>
5838
5839 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5840 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5841 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5842 when handling .eh_frame sections.
5843
4e370325
JB
58442003-06-04 J. Brobecker <brobecker@gnat.com>
5845
5846 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5847 prepare_to_proceed procedure instead of the hppa-specific one.
5848 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5849
b757528f 58502003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5851
b757528f
JJ
5852 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5853 * config.in: Regenerated.
5854 * configure.in: Add test for syscall function and check for
5855 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5856 * configure: Regenerated.
5857 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5858 <sys/syscall.h>.
5859 (kill_lwp): New function that uses tkill syscall or
5860 uses kill, depending on whether threading model is nptl or not.
5861 All callers of kill() changed to use kill_lwp().
5862 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5863 see if all threads have already exited in the nptl model.
5864 (stop_and_resume_callback): New callback function used by the
5865 lin_lwp_wait thread exit handling code.
5866 (stop_wait_callback): Check for threads already having exited and
5867 delete such threads fromt the lwp list when discovered.
5868 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5869
b757528f
JJ
5870 Roland McGrath <roland@redhat.com>
5871 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5872 nptl libthread_db.
5873
087779b1
RH
58742003-06-03 Richard Henderson <rth@redhat.com>
5875
b21fd293
RH
5876 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5877 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5878 (alpha_sigtramp_frame_prev_register): Likewise.
5879 (alpha_heuristic_frame_prev_register): Likewise.
5880 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5881
8ffd9b1b 5882 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5883 alpha-specific register id names.
5884 (alpha_mdebug_frame_unwind_cache): Likewise.
5885 (alpha_mdebug_frame_prev_register): Likewise.
5886
baa490c4
RH
58872003-06-03 Richard Henderson <rth@redhat.com>
5888
5889 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5890 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5891 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5892 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5893 unwind routines.
5894 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5895 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5896 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5897
5898 * alpha-linux-tdep.c: Remove unnecessary includes.
5899 * Makefile.in (alpha-linux-tdep.o): Update.
5900
59012003-06-03 Richard Henderson <rth@redhat.com>
5902
5903 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5904 (alphabsd_fill_fpreg): Likewise.
5905
f534e522
JB
59062003-06-03 J. Brobecker <brobecker@gnat.com>
5907
5908 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5909 references to struct frame_info fields by calls to the equivalent
5910 accessors. Necessary now that frame_info is opaque.
5911
4035536b
JB
59122003-06-03 J. Brobecker <brobecker@gnat.com>
5913
5914 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5915 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5916 structure, field no longer exists.
5917
0bd79c5c
JB
59182003-06-03 J. Brobecker <brobecker@gnat.com>
5919
5920 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5921 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5922
37bb6d9f
JB
59232003-06-03 J. Brobecker <brobecker@gnat.com>
5924
5925 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5926 references to struct frame_info fields by calls to the equivalent
5927 accessors. Necessary now that frame_info is opaque.
5928
852ee05c
JB
59292003-06-03 J. Brobecker <brobecker@gnat.com>
5930
5931 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5932 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5933 structure, field no longer exists.
5934
7d58c67d
TR
59352003-06-03 Theodore A. Roth <troth@openavr.org>
5936
8ffd9b1b 5937 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5938 accumulation of the size of all registers instead of blindly using
5939 DEPRECATED_REGISTER_BYTES.
5940
0a48e7e8
MS
59412003-06-03 Michael Snyder <msnyder@redhat.com>
5942
5943 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5944 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5945 for h8300sx.
5946
9798ab0d
JB
59472003-06-03 J. Brobecker <brobecker@gnat.com>
5948
5949 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5950 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5951
00b037e2
AC
59522003-06-03 Andrew Cagney <cagney@redhat.com>
5953
5954 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5955 (sparc_convert_to_raw): Delete function.
5956 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5957 register_convert_to_virtual.
5958
043b2f77
JJ
59592003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5960
5961 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5962 layer if not dealing with a statically-linked threaded program.
5963
f43caff8
KW
59642003-06-03 Kris Warkentin <kewarken@qnx.com>
5965
5966 * solib.c (solib_open): Update comment to reflect actual search order.
5967
ae1e7417
AC
59682003-06-03 Andrew Cagney <cagney@redhat.com>
5969
5970 * frame.c (get_frame_memory_signed): New function.
5971 (get_frame_memory, get_frame_memory_unsigned): New function.
5972 (get_frame_arch): New function.
5973 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5974 (get_frame_memory, get_frame_unsigned_memory): Declare.
5975 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5976 get_frame_memory_unsigned and get_frame_arch.
5977 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5978
cb123844
RG
59792003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5980
5981 * MAINTAINERS (write after approval): Add myself.
5982
1bb792e9
JB
59832003-06-03 Jim Blandy <jimb@redhat.com>
5984
5985 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5986 elements of gregset_t are 64 bits each, but access registers
5987 are still 32 bits, so they're packed two per gregset_t
5988 element. Unpack/pack them properly.
5989
aee8d8ba
DC
59902003-06-02 David Carlton <carlton@bactrian.org>
5991
5992 * linespec.c (find_methods): Break out code into
5993 add_matching_methods and add_constructors.
5994 (add_matching_methods): New.
5995 (add_constructors): Ditto.
5996
bf7488d2
AC
59972003-06-02 Andrew Cagney <cagney@redhat.com>
5998
bf7488d2
AC
5999 * sparc-tdep.c (sparc_print_registers): Delete call to
6000 REGISTER_CONVERTIBLE.
6001 (sparc_gdbarch_init): Do not set register_convertible.
6002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6003 * frv-tdep.c (frv_gdbarch_init): Ditto.
6004 * cris-tdep.c (cris_gdbarch_init): Ditto.
6005
adedef68
EZ
60062003-06-02 Elena Zannoni <ezannoni@redhat.com>
6007
8ffd9b1b 6008 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6009 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6010 (syms_from_objfile): Ditto.
6011
650fcc91
AS
60122003-06-03 Andreas Schwab <schwab@suse.de>
6013
6014 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6015 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6016
df4a182b
RH
60172003-06-02 Richard Henderson <rth@redhat.com>
6018
6019 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6020 a member of all_reggroup.
6021
c483c494
RH
60222003-06-02 Richard Henderson <rth@redhat.com>
6023
6024 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6025 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6026 (alpha_lds, alpha_sts): New.
6027 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6028 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6029 restructure and fail for type sizes other than 4 or 8.
6030 (alpha_value_to_register): Similarly.
6031 (alpha_extract_return_value): Use alpha_sts.
6032 (alpha_store_return_value): Use alpha_lds.
6033 (alpha_gdbarch_init): Update hooks.
6034
b38b6be2
RH
60352003-06-02 Richard Henderson <rth@redhat.com>
6036
6037 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6038 regnum identifiers.
6039 (alpha_sigtramp_register_address): Likewise.
6040
98a8e1e5
RH
60412003-06-02 Richard Henderson <rth@redhat.com>
6042
6043 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6044 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6045 * alpha-tdep.h: Declare them.
6046
6047 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6048 Remove zerobuf. Don't error on UNIQUE.
6049 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6050 (ALPHA_REGSET_UNIQUE): Provide default.
6051 (supply_gregset): Use alpha_supply_int_regs.
6052 (fill_gregset): Use alpha_fill_int_regs.
6053 (supply_fpregset): Use alpha_supply_fp_regs.
6054 (fill_fpregset): Use alpha_fill_fp_regs.
6055 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6056 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6057 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6058 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6059 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6060 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6061
67dfac52
RH
60622003-06-02 Richard Henderson <rth@redhat.com>
6063
f75d70cc
RH
6064 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6065
67dfac52
RH
6066 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6067 (alpha_store_return_value): Likewise.
6068
0cf566ec
DC
60692003-06-02 David Carlton <carlton@math.stanford.edu>
6070
6071 * block.c (contained_in): Add 'const' to arguments.
6072 (block_function): Ditto.
6073 * block.h: Update declarations for block_function and
6074 contained_in.
6075
cdef89d0
DC
60762003-06-02 David Carlton <carlton@math.stanford.edu>
6077
6078 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6079 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6080 * p-valprint.c (pascal_val_print): Ditto.
6081 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6082
72667056
RH
60832003-06-02 Richard Henderson <rth@redhat.com>
6084
98a8e1e5
RH
6085 * alpha-tdep.c (alpha_push_dummy_call): Use
6086 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6087
8ffd9b1b 6088 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6089 sign-extension of 32-bit values.
6090 (alpha_store_return_value): Similarly.
0ede8eca 6091
98a8e1e5
RH
6092 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6093 (alpha_extract_return_value): Likewise.
6094 (alpha_store_return_value): Likewise.
7b5e1cb3 6095
98a8e1e5
RH
6096 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6097 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6098
98a8e1e5
RH
6099 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6100 (alpha_extract_struct_value_address): Likewise.
6101 (alpha_store_return_value): Likewise.
6102 (alpha_store_struct_return): Remove.
6103 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6104
98a8e1e5
RH
6105 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6106 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6107 macros where appropriate.
6108 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6109 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6110
98a8e1e5
RH
6111 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6112 for SP, GP; void_func_ptr for PC; non-language-specific types
6113 for all others.
6114 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6115
6dd77b81
RH
61162003-06-02 Richard Henderson <rth@redhat.com>
6117
6118 * top.h (lim_at_start): Declare.
6119 * main.c (captured_main): Set it.
6120 * top.c (lim_at_start): Define.
6121 (command_loop): Use it instead of &environ.
6122 * event-top.c (command_handler): Likewise.
6123
f4dbdb54
JT
61242003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6125
6126 * mipsnbsd-tdep.c: Update copyright years.
6127 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6128
8f285956
RH
61292003-06-01 Richard Henderson <rth@redhat.com>
6130
98a8e1e5
RH
6131 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6132 (alpha-linux-tdep.o): Update dependencies.
6133 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6134 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6135
615967cb
RH
61362003-06-01 Richard Henderson <rth@redhat.com>
6137
98a8e1e5
RH
6138 * alpha-tdep.c (alpha_register_reggroup_p): New.
6139 (alpha_gdbarch_init): Register it.
615967cb 6140
b59661bd
AC
61412003-06-02 Andrew Cagney <cagney@redhat.com>
6142
6143 * dwarfread.c: Eliminate "register"
6144 (decode_die_type): Eliminate assignment within "if".
6145 (struct_type, decode_array_element_type): Ditto.
6146 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6147 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6148 (decode_modified_type, completedieinfo): Ditto.
6149 * block.c: Eliminate "register".
6150 (blockvector_for_pc_sect): Eliminate assignment within "if".
6151 * cp-support.h (struct symbol): Opaque declaration.
6152 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6153
5ef165c2
RH
61542003-06-01 Richard Henderson <rth@redhat.com>
6155
98a8e1e5
RH
6156 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6157 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6158
143985b7
AF
61592003-06-01 Adam Fedor <fedor@gnu.org>
6160
6161 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6162 * gdbarch.[ch]: Regenerate.
6163 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6164 (hppa_gdbarch_init): Set it in the gdbarch vector.
6165 * i386-tdep.c (i386_fetch_pointer_argument): New
6166 (i386_gdbarch_init): Set it into gdbarch.
6167 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6168 (rs6000_gdbarch_init): Set it in gdbarch.
6169 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6170 (sparc_gdbarch_init): Set it in gdbarch.
6171
ae0167b9
AC
61722003-06-01 Andrew Cagney <cagney@redhat.com>
6173
7c0b4a20
AC
6174 * defs.h (extract_address): Delete declaration.
6175 * findvar.c (extract_address): Delete function.
6176 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6177 extract_address with the inline equivalent,
6178 extract_unsigned_integer.
6179 (xstormy16_extract_struct_value_address): Ditto.
6180 (xstormy16_pointer_to_address): Ditto.
6181 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6182 * v850-tdep.c (v850_push_arguments): Ditto.
6183 (v850_extract_return_value): Ditto.
6184 (v850_extract_struct_value_address): Ditto.
6185 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6186 (sparcnbsd_get_longjmp_target_64): Ditto.
6187 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6188 (get_longjmp_target): Ditto.
6189 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6190 (sh64_extract_struct_value_address): Ditto.
6191 (sh_push_arguments): Ditto.
6192 (sh64_push_arguments): Ditto.
6193 * remote-vxsparc.c (vx_read_register): Ditto.
6194 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6195 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6196 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6197 * mipsv4-nat.c (get_longjmp_target): Ditto.
6198 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6199 * mips-nat.c (get_longjmp_target): Ditto.
6200 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6201 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6202 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6203 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6204 * irix5-nat.c (get_longjmp_target): Ditto.
6205 * irix4-nat.c (get_longjmp_target): Ditto.
6206 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6207 (ia64_push_arguments): Ditto.
6208 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6209 * h8300-tdep.c (h8300_push_arguments): Ditto.
6210 (h8300_store_return_value): Ditto.
6211 (h8300_extract_struct_value_address): Ditto.
6212 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6213 (frv_push_arguments): Ditto.
6214 * avr-tdep.c (avr_pointer_to_address): Ditto.
6215 (avr_push_arguments): Ditto.
6216 * arm-tdep.c (arm_push_dummy_call): Ditto.
6217 (arm_get_longjmp_target): Ditto.
6218 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6219 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6220 (alpha_get_longjmp_target): Ditto.
6221
ae0167b9
AC
6222 * solib-irix.c (extract_mips_address): Inline extract_address,
6223 replacing it with extract_signed_integer.
6224 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6225 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6226 (first_link_map_member, open_symbol_file_object): Ditto.
6227 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6228 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6229 (LM_NEXT, LM_NAME): Ditto.
6230
44d88583
RH
62312003-06-01 Richard Henderson <rth@redhat.com>
6232
98a8e1e5
RH
6233 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6234 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6235 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6236 (alpha_cannot_store_register): Likewise.
6237 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6238 * alpha-nat.c (supply_gregset): Likewise.
6239 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6240
310e9b6a
AC
62412003-06-01 Andrew Cagney <cagney@redhat.com>
6242
6243 * infcall.c (call_function_by_hand): Update comment on
6244 DEPRECATED_DUMMY_WRITE_SP.
6245
6246 * mips-tdep.c (mips_gdbarch_init): Do not set
6247 deprecated_dummy_write_sp.
6248 (mips_eabi_push_dummy_call): Set the SP register.
6249 (mips_o64_push_dummy_call): Set the SP register.
6250 (mips_o32_push_dummy_call): Set the SP register.
6251 (mips_n32n64_push_dummy_call): Set the SP register.
6252
5ab84872
RH
62532003-06-01 Richard Henderson <rth@redhat.com>
6254
98a8e1e5
RH
6255 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6256 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6257 (supply_gregset): Likewise.
6258 * alpha-tdep.c (alpha_store_return_value): Likewise.
6259 (alpha_get_longjmp_target): Likewise.
6260 (alpha_register_name): Constify array.
6261 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6262 deprecated_register_size, deprecated_register_bytes,
6263 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6264 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6265 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6266
09cc52fd
RH
62672003-06-01 Richard Henderson <rth@redhat.com>
6268
6269 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6270 from arg_reg_buffer to regcache to avoid double conversion.
6271
c7f16359
MK
62722003-06-01 Mark Kettenis <kettenis@gnu.org>
6273
6274 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6275 SP_REGNUM.
6276 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6277 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6278
7131cb6e
RH
62792003-06-01 Richard Henderson <rth@redhat.com>
6280
98a8e1e5
RH
6281 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6282 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6283
f3e0f90b
RH
62842003-06-01 Richard Henderson <rth@redhat.com>
6285
98a8e1e5
RH
6286 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6287 not overlapping PC_REGNUM.
f3e0f90b 6288
c88e30c0
RH
62892003-06-01 Richard Henderson <rth@redhat.com>
6290
98a8e1e5
RH
6291 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6292 alpha_push_arguments. Don't dump argument register data to
6293 the target stack. Fix float and 128-bit long double semantics.
6294 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6295 (alpha_fix_call_dummy): Remove.
6296 (alpha_call_dummy_words): Remove.
6297 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6298
f1a559ae
RH
62992003-06-01 Richard Henderson <rth@redhat.com>
6300
6301 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6302
5e045346
AC
63032003-06-01 Andrew Cagney <cagney@redhat.com>
6304
95404a3e
AC
6305 * mips-tdep.c (is_mips16_addr): New function.
6306 (make_mips16_addr, unmake_mips16_addr): New functions.
6307 (pc_is_mips16, mips_fetch_instruction): Use.
6308 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6309 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6310 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6311 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6312 TARGET_MIPS.
6313 * config/mips/tm-mips.h: Update copyright.
6314 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6315 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6316 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6317 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6318 (TM_PRINT_INSN_MACH): Delete.
6319 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6320
5e045346
AC
6321 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6322 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6323 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6324 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6325 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6326 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6327 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6328 mips*-*-riscos* and mips*-*-sysv* onto mips.
6329 * config/mips/mips64.mt: New file.
6330 * config/mips/mips.mt: New file.
6331 * config/mips/littlemips.mt: Delete file.
6332 * config/mips/decstation.mt: Delete file.
6333 * config/mips/vr4300el.mt: Delete file.
6334 * config/mips/vr5000el.mt: Delete file.
6335 * config/mips/vr5000.mt: Delete file.
6336 * config/mips/vr4100.mt: Delete file.
6337 * config/mips/vr4xxxel.mt: Delete file.
6338 * config/mips/vr4300.mt: Delete file.
6339 * config/mips/vr4xxx.mt: Delete file.
6340 * config/mips/bigmips.mt: Delete file.
6341 * config/mips/bigmips64.mt: Delete file.
6342 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6343 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6344 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6345 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6346 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6347 "tm-bigmips.h".
6348 * config/mips/tm-irix3.h: Ditto.
6349 * config/mips/tm-mipsv4.h: Ditto.
6350 * config/mips/tm-embed.h: Ditto.
6351 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6352 "tm-bigmips64.h".
6353 * config/mips/tm-vr5000el.h: Delete file.
6354 * config/mips/tm-tx39l.h: Delete file.
6355 * config/mips/tm-vr4300el.h: Delete file.
6356 * config/mips/tm-vr4xxxel.h: Delete file.
6357 * config/mips/tm-vr4300.h: Delete file.
6358 * config/mips/tm-vr4100.h: Delete file.
6359 * config/mips/tm-vr4xxx.h: Delete file.
6360 * config/mips/tm-vr5000.h: Delete file.
6361 * config/mips/tm-embedl64.h: Delete file.
6362 * config/mips/tm-embedl.h: Delete file.
6363 * config/mips/tm-embed64.h: Delete file.
6364 * config/mips/tm-bigmips64.h: Delete file.
6365 * config/mips/tm-bigmips.h: Delete file.
6366
2473a4a9
MK
63672003-06-01 Mark Kettenis <kettenis@gnu.org>
6368
97a5b208
MK
6369 Fix gdb/1216.
6370 * shnbsd-nat.c: Include "sh-tdep.h".
6371
2473a4a9
MK
6372 From Richard Henderson <rth@redhat.com>:
6373 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6374
e0f7ec59
AC
63752003-05-31 Andrew Cagney <cagney@redhat.com>
6376
6377 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6378 forward declaration.
6379 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6380 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6381 (mips_find_saved_regs): Use set_reg_offset.
6382 (mips_frame_init_saved_regs): Delete function.
6383 (mips_pop_frame): Call mips_find_saved_regs instead of
6384 DEPRECATED_FRAME_INIT_SAVED_REGS.
6385
68dcc709
AC
63862003-05-31 Andrew Cagney <cagney@redhat.com>
6387
6388 * mips-tdep.c (mips_gdbarch_init): Do not set
6389 deprecated_max_register_raw_size, register_virtual_size, and
6390 deprecated_max_register_virtual_size.
6391
cfc14b3a
MK
63922003-05-31 Mark Kettenis <kettenis@gnu.org>
6393
6405b0a6
MK
6394 * i386-tdep.c: Include "dwarf2-frame.h".
6395 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6396 * Makefile.in (i386-tdep.o): Update dependencies.
6397
cfc14b3a
MK
6398 * dwarf2-frame.c, dwarf2-frame.h: New files.
6399 * Makefile.in (SFILES): Add dwarf2-frame.c.
6400 (dwarf2_frame_h): Define.
6401 (COMMON_OBS): Add dwarf2-frame.o.
6402 (dwarf2-frame.o): Add dependencies.
6403
6a2751d2
AJ
64042003-05-31 Andreas Jaeger <aj@suse.de>
6405
6406 * x86-64-linux-nat.c: Fix comment.
6407
1c3545ae
MK
64082003-05-31 Mark Kettenis <kettenis@gnu.org>
6409
10f93086
MK
6410 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6411 function signature.
6412
1c3545ae
MK
6413 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6414 have a sigcontext_addr handler.
6415 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6416 sigcontext_addr handler.
6417
e11c53d2
AC
64182003-05-31 Andrew Cagney <cagney@redhat.com>
6419
6420 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6421 (print_fp_register_row): Replace do_fp_register_row.
6422 (mips_print_fp_register): Add "file" and "frame" parameters.
6423 (mips_print_register): Add "file" and "frame" parameters.
6424 (mips_print_registers_info): Replace mips_do_registers_info.
6425 (mips_gdbarch_init): Set print_registers_info instead of
6426 deprecated_do_registers_info.
6427 (mips_read_fp_register_single): Add "frame" parameter.
6428 (mips_read_fp_register_double): Add "frame" parameter.
6429
a3386186
MK
64302003-05-31 Mark Kettenis <kettenis@gnu.org>
6431
70913449
MK
6432 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6433 Fixes a bug where GDB would print the wrong register names for
6434 targets without SSE.
6435
2b5e0749
MK
6436 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6437 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6438 registers.
6439
6440 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6441 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6442 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6443 TDEP->sc_sp_offset.
6444
a3386186
MK
6445 From Michal Ludvig <mludvig@suse.cz>:
6446 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6447 and `sc_num_regs'.
6448 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6449 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6450 I386_ST0_REGNUM): Move here from...
6451 * i386-tdep.c: ... here.
6452 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6453 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6454 registers if possible.
6455 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6456 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6457 Remove variables.
6458 (i386bsd_sc_reg_offset): New variable.
6459 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6460 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6461 TDEP->sc_sp_offset.
6462 (i386fbsd_sc_reg_offset): New variable.
6463 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6464 TDEP->sc_num_regs.
6465 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6466 variables.
6467 (i386fbsd4_sc_reg_offset): New variable.
6468 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6469 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6470 TDEP->sc_sp_offset.
6471 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6472 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6473 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6474 Remove variables.
6475 (i386nbsd_sc_reg_offset): New variable.
6476 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6477 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6478 TDEP->sc_sp_offset.
6479 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6480 Remove variables.
6481 (i386obsd_sc_reg_offset): New variable.
6482 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6483 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6484 TDEP->sc_sp_offset.
6485 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6486 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6487 for frame pointer offset in `struct sigcontext'.
6488
25ab4790
AC
64892003-05-31 Andrew Cagney <cagney@redhat.com>
6490
6491 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6492 architecture methods call_dummy_words, sizeof_call_dummy_words,
6493 push_return_address, store_struct_return, and fix_call_dummy. Set
6494 push_dummy_call instead of deprecated_push_arguments.
6495 (mips_store_struct_return): Delete function.
6496 (mips_fix_call_dummy): Delete function.
6497 (mips_push_return_address): Delete function.
6498 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6499 RA_REGNUM and T9_REGNUM.
6500 (mips_n32n64_push_dummy_call): Ditto for
6501 mips_n32n64_push_arguments.
6502 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6503 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6504
6a65450a
AC
65052003-05-31 Andrew Cagney <cagney@redhat.com>
6506
6507 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6508 "dummy_addr" to "bp_addr".
6509 * infcall.c (call_function_by_hand): Pass "funaddr" to
6510 gdbarch_push_dummy_call.
6511 * gdbarch.h, gdbarch.c: Re-generate.
6512 * i386-tdep.c (i386_push_dummy_call): Update.
6513 * arm-tdep.c (arm_push_dummy_call): Update.
6514 * d10v-tdep.c (d10v_push_dummy_call): Update.
6515
c4f35dd8
MK
65162003-05-31 Mark Kettenis <kettenis@gnu.org>
6517
6518 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6519 variable declarations.
6520 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6521 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6522 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6523 x86_64_init_frame_pc, x86_64_init_frame_pc,
6524 x86_64_function_has_prologue): Remove prototypes.
6525 (X86_64_NUM_GREGS): New define.
6526 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6527 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6528 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6529 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6530 XMM1_REGNUM): Remove defines.
6531 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6532 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6533 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6534 X86_64_XMM1_REGNUM): New defines.
6535 (struct x86_64_register_info): Renamed from `struct
6536 register_info'. Remove `size' member.
6537 (x86_64_register_info_table): Remove variable.
6538 (x86_64_register_info): New variable.
6539 (X86_64_NUM_REGS): New define.
6540 (X86_64_NUM_GREGS): Remove define.
6541 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6542 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6543 Remove variables.
6544 (x86_54_dwarf2_reg_to_regnum): Remove function.
6545 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6546 (x86_64_dwarf_reg_to_regnum): New function.
6547 (x86_64_register_name): Rewrite.
6548 (x86_64_register_raw_size): Remove function.
6549 (x86_64_register_byte_table): Remove variable.
6550 (x86_64_register_byte): Remove function.
6551 (x86_64_register_virtual_type): Remove function.
6552 (x86_64_register_type): New function.
6553 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6554 x86_64_register_convert_to_raw): Remove functions.
6555 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6556 (x86_64_use_struct_convention): Make static. Adjust for renamed
6557 defines.
6558 (x86_64_frame_init_saved_regs): Remove function.
6559 (x86_64_push_arguments): Make static. Change to accept a regcache
6560 as argument.
6561 (x86_64_store_return_value, x86_64_extract_return_value): Make
6562 static. Rewrite based on i386 counterparts.
6563 (x86_64_push_dummy_call): New function.
6564 (X86_64_NUM_SAVED_REGS): New define.
6565 (x86_64_register_number): Remove function.
6566 (x86_64_store_struct_return): Remove function.
6567 (x86_64_frameless_function_invocation,
6568 x86_64_function_has_prologue): Remove functions.
6569 (PROLOG_BUFSIZE): Remove define.
6570 (struct x86_64_frame_cache): New structure.
6571 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6572 x86_64_frame_cache, x86_64_frame_this_id,
6573 x86_64_frame_prev_register, x86_64_frame_p,
6574 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6575 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6576 functions.
6577 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6578 variables.
6579 (x86_64_skip_prologue): Rewrite in terms of
6580 x86_64_analyze_prologue.
6581 (x86_64_frame_base_address): New function.
6582 (x86_64_frame_base): New variable.
6583 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6584 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6585 set deprecated_fp_regnum, deprecated_register_size,
6586 deprecated_register_bytes, register_raw_size, register_byte,
6587 register_virtual_type, register_convertiable,
6588 register_convert_to_virtual, convert_to_raw,
6589 deprecated_get_saved_register, deprecated_target_read_fp,
6590 deprecated_push_arguments, deprecated_push_return_address,
6591 deprecated_pop_frame, deprecated_store_struct_return,
6592 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6593 frameless_function_invocation, deprecated_frame_saved_pc,
6594 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6595 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6596 deprecated_init_frame_pc and virtual_frame_pointer. Call
6597 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6598 and x86_64_frame_p. Call frame_base_set_default to register
6599 x86_64_frame_base.
6600 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6601 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6602 (_initialize_x86_64_tdep): Remove function.
6603 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6604 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6605 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6606 define.
6607 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6608 (x86_64_linux_sigcontext_addr): Rewrite.
6609 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6610 x86_64_linux_frame_saved_pc): Remove functions.
6611 (x86_64_linux_pc_in_sigtramp): Renamed from
6612 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6613 trampoline.
6614 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6615 Remove_functions.
6616 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6617 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6618 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6619 (x86_64_regmap): Rename to regmap.
6620 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6621 x86_64_num_gregs.
6622 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6623 x86_64_regmap.
6624 (x86_64_fxsave_offset): Remove function.
6625 (supply_fpregset): Simply call x86_64_supply_fxsave.
6626 (fill_fpregset): Simply call x86_64_fill_fxsave.
6627 (fetch_inferior_registers, store_inferior_registers): Avoid
6628 asignment in if-statement.
6629 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6630 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6631 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6632 (fetch_core_registers): Remove function.
6633 (linux_elf_core_fns): Remove.
6634 (offsetoff): Don't define.
6635 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6636 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6637 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6638 add core-regset.o.
6639 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6640 protection against multiple includes instead of NM_X86_64_h. Add
6641 various comments. Include "config/nm-linux.h". Don't include
6642 <signal.h>.
6643 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6644 GET_THREAD_SIGNALS): Remove defines.
6645 (x86_64_register_u_addr, kernel_u_size,
6646 lin_thread_get_thread_signals): Remove prototypes.
6647 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6648 [HAVE_LINK_H]: Don't include "solib.h".
6649 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6650 * config/i386/tm-x86-64linux.h: Fix comments.
6651 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6652 x86-64-tdep.o): Update dependencies.
6653
c25083af
AC
66542003-05-30 Andrew Cagney <cagney@redhat.com>
6655
c8f55a7b
AC
6656 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6657 Change parameter type to a "struct regcache *".
6658
c25083af
AC
6659 * gdbarch.sh: Regardless of the multi-arch level, always define
6660 the macro when not already defined.
6661 * gdbarch.h, gdbarch.c: Re-generate.
6662
fbe586ae
RH
66632003-05-30 Richard Henderson <rth@redhat.com>
6664
6665 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6666 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6667 (alpha_mdebug_frame_this_id): Likewise.
6668 (alpha_mdebug_frame_prev_register): Likewise.
6669 (alpha_mdebug_frame_base_address): Likewise.
6670 (alpha_mdebug_frame_locals_address): Likewise.
6671 (alpha_mdebug_frame_args_address): Likewise.
6672 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6673 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6674 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6675 loop increment.
6676 (alpha_heuristic_frame_this_id): Make static.
6677 (alpha_heuristic_frame_prev_register): Likewise.
6678 (alpha_heuristic_frame_base_address): Likewise.
6679 * alpha-tdep.h: Update.
6680
acd5c798
MK
66812003-05-30 Mark Kettenis <kettenis@gnu.org>
6682
6683 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6684 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6685 defenitions.
6686 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6687 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6688 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6689 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6690 I386_ST0_REGNUM): New defines.
6691 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6692 codestream_get): Remove define.
6693 (codestream_next_addr, condestream_addr, condestream_buf,
6694 codestream_off, codestream_cnt): Remove variables.
6695 (codestream_fill, codestream_seek, codestream_read): Remove
6696 functions.
6697 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6698 functionality.
6699 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6700 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6701 i386_frame_saved_pc, i386_saved_pc_after_call,
6702 i386_frame_num_args, i386_frame_init_saved_regs,
6703 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6704 i386_push_arguments): Remove functions.
6705 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6706 functionality. Use i386_analyze_prologue instead of
6707 i386_get_frame_setup.
6708 (I386_NUM_SAVED_REGS): New define.
6709 (struct i386_frame_cache): New structure.
6710 (i386_alloc_frame_cache, i386_analyze_struct_return,
6711 i386_skip_probe, i386_analyze_frame_setup,
6712 i386_analyze_register_saves, i386_analyze_prologue,
6713 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6714 i386_frame_prev_register, i386_sigtramp_frame_cache,
6715 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6716 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6717 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6718 New functions.
6719 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6720 New variables.
6721 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6722 I386_EAX_REGNUM and I386_EDX_REGNUM.
6723 (i386_extract_return_value, i386_store_return_value): Use
6724 I386_ST0_REGNUM where appropriate.
6725 (i386_extract_struct_value_address): Rewrite to use extract_address.
6726 (i386_svr4_pc_in_sigtramp): Add comment.
6727 (i386_svr4_sigcontext_addr): Rewrite.
6728 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6729 TDEP->sc_sp_offset.
6730 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6731 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6732 of new defines. Set push_dummy_call, don't set
6733 deprecated_push_arguments, deprecated_push_return_address,
6734 deprecated_pop_frame. Don't set parm_boundary. Don't set
6735 deprecated_frame_chain, deprecated_frame_saved_pc,
6736 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6737 save_dummy_frame_tos, unwind_pc. Call
6738 frame_unwind_append_predicate and frame_base_set_default. Don't
6739 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6740 Don't set frameless_function_invocation. Don't set
6741 deprecated_register_bytes, deprecated_register_size,
6742 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6743 * i386-linux-tdep.c: Fix formatting in some comments.
6744 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6745 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6746 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6747 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6748 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6749 redundant parentheses.
6750 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6751 (i386_linux_sigcontext_addr): Use it. Rewrite.
6752 (find_minsym_and_objfile): Change name of second argument.
6753 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6754 changed. Use frame_pc_unwind instead of
6755 DEPRECATED_SAVED_PC_AFTER_CALL.
6756 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6757 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6758 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6759 unwinder.
6760 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6761 "dummy-frame.h".
6762 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6763 (_initialize_i386_cygwin_tdep): New prototype.
6764 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6765 deprecated_frame_chain_valid.
6766 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6767 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6768 Rely on the SVR4 defaults.
6769 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6770 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6771
c89b70f1
AC
67722003-05-30 Andrew Cagney <cagney@redhat.com>
6773
6774 * infcall.c (call_function_by_hand): Always call
6775 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6776
85b32d22
RH
67772003-05-30 Richard Henderson <rth@redhat.com>
6778
c89b70f1
AC
6779 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6780 increment.
85b32d22 6781
bfe51b1e
JB
67822003-05-29 Jim Blandy <jimb@redhat.com>
6783
6784 Use gdbarch methods for solib stuff on PowerPC Linux.
6785 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6786 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6787 show through.
6788 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6789 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6790 giving the same effect as the #definitions above.
6791
1abf022c
AF
67922003-05-29 Adam Fedor <fedor@gnu.org>
6793
6794 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6795 (find_implementation_from_class): Replace it with the standard
6796 case i.e. do nothing.
6797
d2427a71
RH
67982003-05-29 Richard Henderson <rth@redhat.com>
6799
6800 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6801 (alpha_linux_sigtramp_offset): Use it. Make static.
6802 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6803 update for new frame model.
6804 * alpha-mdebug-tdep.c: New file.
6805 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6806 (alpha_osf1_init_abi): Install it.
6807 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6808 (linked_proc_desc_table): Remove.
6809 (alpha_frame_past_sigtramp_frame): Remove.
6810 (alpha_dynamic_sigtramp_offset): Remove.
6811 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6812 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6813 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6814 (push_sigtramp_desc): Remove.
6815 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6816 (alpha_cannot_store_register): Likewise.
6817 (alpha_sigcontext_addr): Remove.
6818 (alpha_find_saved_regs): Remove.
6819 (alpha_frame_init_saved_regs): Remove.
6820 (alpha_init_frame_pc_first): Remove.
6821 (read_next_frame_reg): Remove.
6822 (alpha_frame_saved_pc): Remove.
6823 (alpha_saved_pc_after_call): Remove.
6824 (temp_proc_desc, temp_saved_regs): Remove.
6825 (alpha_about_to_return): Remove.
6826 (cached_proc_desc): Remove.
6827 (alpha_frame_chain): Remove.
6828 (alpha_print_extra_frame_info): Remove.
6829 (alpha_init_extra_frame_info): Remove.
6830 (alpha_frame_locals_address): Remove.
6831 (alpha_frame_args_address): Remove.
6832 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6833 (alpha_push_dummy_frame): Remove.
6834 (alpha_pop_frame): Remove.
6835 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6836 (alpha_read_insn): New.
6837 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6838 for different insn encodings.
6839 (alpha_in_lenient_prologue): Remove.
6840 (struct alpha_sigtramp_unwind_cache): New.
6841 (alpha_sigtramp_frame_unwind_cache): New.
6842 (alpha_sigtramp_register_address): New.
6843 (alpha_sigtramp_frame_this_id): New.
6844 (alpha_sigtramp_frame_prev_register): New.
6845 (alpha_sigtramp_frame_unwind): New.
6846 (alpha_sigtramp_frame_p): New.
6847 (struct alpha_heuristic_unwind_cache): New.
6848 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6849 don't count nop insns that occur between functions.
6850 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6851 heuristic_proc_desc, but without the mdebug wrapping.
6852 (alpha_heuristic_frame_this_id): New.
6853 (alpha_heuristic_frame_prev_register): New.
6854 (alpha_heuristic_frame_unwind): New.
6855 (alpha_heuristic_frame_p): New.
6856 (alpha_heuristic_frame_base_address): New.
6857 (alpha_heuristic_frame_base): New.
6858 (alpha_unwind_dummy_id): New.
6859 (alpha_unwind_pc): New.
6860 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6861 frame related deprecated initializations; install replacements.
6862 (alpha_dump_tdep): Remove.
6863 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6864 (alpha_read_insn, alpha_after_prologue,
6865 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6866 alpha_heuristic_frame_prev_register,
6867 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6868 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6869 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6870 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6871
93ec1121
AC
68722003-05-29 Andrew Cagney <cagney@redhat.com>
6873
6874 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6875 dependant on the availability of ASSERT_FUNCTION.
6876 (ASSERT_FUNCTION): Do not define when there is no function name.
6877
98f08d3d
KB
68782003-05-29 Kevin Buettner <kevinb@redhat.com>
6879
6880 From Jimi X <jimix@watson.ibm.com>:
6881 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6882
0897f59b
JB
68832003-05-28 Jim Blandy <jimb@redhat.com>
6884
6885 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6886 argument to ptrace to int; the system headers should give it the
6887 right type, and pointers don't fit in ints on powerpc64-*-*.
6888
14898363
L
68892003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6890
6891 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6892 DW_TAG_catch_block.
6893
a7a48797
EZ
68942003-05-26 Elena Zannoni <ezannoni@redhat.com>
6895
6896 * stabsread.c (dbx_lookup_type): Make static.
6897 (read_type): Ditto.
6898 (add_undefined_type): Ditto.
6899 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6900 not export.
6901
f5479e9c
EZ
69022003-05-26 Elena Zannoni <ezannoni@redhat.com>
6903
6904 * hpread.c (hpread_has_name): Make static.
6905 (hpread_psymtab_to_symtab): Ditto.
6906 (file_exists): Ditto.
6907 (hpread_call_pxdb): Ditto.
6908 (hpread_pxdb_needed): Ditto.
6909 (hpread_quick_traverse): Ditto.
6910 (hpread_get_header): Ditto.
6911 (hpread_get_lntt): Ditto.
6912 (hpread_get_slt): Ditto.
6913 (class_of): Ditto.
6914
eb2e12d7
AS
69152003-05-25 Andreas Schwab <schwab@suse.de>
6916
78bf922a
AS
6917 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6918 stack_align and deprecated_extra_stack_alignment_needed.
6919 (m68k_stack_align): Delete.
6920
eb2e12d7
AS
6921 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6922 (m68k_register_virtual_size): Likewise.
6923 (altos_skip_prologue): Remove obsolete function.
6924 (isi_frame_num_args): Likewise.
6925 (news_frame_num_args): Likewise.
6926 (m68k_fix_call_dummy): Make static.
6927 (m68k_push_dummy_frame): Likewise.
6928 (m68k_pop_frame): Likewise.
6929 (m68k_skip_prologue): Likewise.
6930 (m68k_frame_init_saved_regs): Likewise.
6931 (m68k_saved_pc_after_call): Likewise.
6932 (m68k_get_longjmp_target): Make multi-arch.
6933 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6934 structure. Register m68k_get_longjmp_target if enabled.
6935 * m68k-tdep.h (struct gdbarch_tdep): Define.
6936 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6937
6938 * Makefile.in (config.status): Also depend on configure.tgt
6939 and configure.host.
6940 (m68klinux-tdep.o): Update dependencies.
6941 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6942 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6943 (M68K_LINUX_JB_PC): Define.
6944 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6945 and take additional parameter.
6946 (m68k_linux_sigtramp_saved_pc): Update.
6947 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6948 m68k_linux_pc_in_sigtramp, in_plt_section,
6949 find_solib_trampoline_target.
6950 * config/m68k/tm-linux.h: Don't include any tm headers.
6951 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6952 (JB_ELEMENT_SIZE): Likewise.
6953 (JB_PC): Likewise.
6954 (GET_LONGJMP_TARGET): Likewise.
6955 (IN_SIGTRAMP): Likewise.
6956 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6957
eb2c22dc
MK
69582003-05-25 Mark Kettenis <kettenis@gnu.org>
6959
6960 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6961 (sparc32_push_arguments): Re-implement by calling
6962 sparc32_do_push_arguments.
6963
44b7b84e
MK
69642003-05-25 Mark Kettenis <kettenis@gnu.org>
6965
6966 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6967 SPARC_O1_REGNUM): New defines.
6968 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6969 (sparc32_store_return_value): New function.
6970 (sparc_extract_struct_value_address): Rewrite to operate on a
6971 regcache.
6972 (sparc_gdbarch_init): Don't set
6973 deprecated_extract_struct_value_address. Set
6974 extract_struct_value_address instead. Don't set
6975 deprecated_extract_return_value and deprecated_store_return_value
6976 for 32-bit targets. Set extract_return_value and
6977 store_return_value instead.
6978 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6979 DEPRECTAED_EXTRACT_RETURN_VALUE,
6980 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6981 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6982 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6983 (sparc_store_return_value): Remove prototype.
6984 (sparc32_store_return_value): New prototype.
6985 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6986 Adjust prototypes.
6987
f6ad61e3
MK
69882003-05-24 Mark Kettenis <kettenis@gnu.org>
6989
6990 * sparcnbsd-tdep.c: Include "gdb_string.h".
6991
b276f1bb
AC
69922003-05-23 Andrew Cagney <cagney@redhat.com>
6993
6994 * p-valprint.c (pascal_val_print): Replace extract_address with
6995 the inline equivalent extract_unsigned_integer.
6996 * jv-valprint.c (java_value_print): Ditto.
6997 * ada-valprint.c (ada_val_print_1): Ditto.
6998 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6999
e76c5fcc
TR
70002003-05-23 Theodore A. Roth <troth@openavr.org>
7001
7002 * blockframe.c (frameless_look_for_prologue): Remove unused
7003 after_prologue variable.
7004
2cdd89cb
MK
70052003-05-23 Mark Kettenis <kettenis@gnu.org>
7006
7007 * blockframe.c (get_pc_function_start): Rewrite to avoid
7008 asignments in if-statements.
7009
182d43bc
EZ
70102003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7011
7012 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7013 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7014 files, don't relocate absolute symbols (and do use mst_abs).
7015
e8f3fcdd
AC
70162003-05-23 Andrew Cagney <cagney@redhat.com>
7017
7018 * objc-lang.c: Include "gdb_assert.h".
7019 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7020 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7021 (gdb_check, gdb_check_fatal): Delete functions.
7022 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7023 gdb_assert.
7024 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7025 * Makefile.in (objc-lang.o): Update dependencies.
7026
3c23e6fb
ILT
70272003-05-22 Ian Lance Taylor <ian@airs.com>
7028
7029 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7030 with fprintf_filtered, not fprintf_unfiltered.
7031
af1342ab
AC
70322003-05-22 Andrew Cagney <cagney@redhat.com>
7033
7034 * stack.c (frame_info): Inline extract_address, replacing it with
7035 extract_unsigned_integer.
7036 * findvar.c (unsigned_pointer_to_address): Ditto.
7037 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7038 * dwarf2expr.c (dwarf2_read_address): Ditto.
7039 * frame.c (frame_pc_unwind): Update comment.
7040 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7041
47e242ec
JJ
70422003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7043
7044 * infptrace.c (detach): Call print_sys_errmsg rather than
7045 perror_with_name to issue warning message when errno is non-zero
7046 after calling ptrace detach.
7047
e2ac8128
JB
70482003-05-21 J. Brobecker <brobecker@gnat.com>
7049
7050 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7051 macro definitions from here...
7052 * hppa-tdep.c: ...to there.
7053
92b3541e
KB
70542003-05-20 Kevin Buettner <kevinb@redhat.com>
7055
7056 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7057 register_ptrace_addr(). Fix all callers.
7058
55809acb
AS
70592003-05-21 Andreas Schwab <schwab@suse.de>
7060
7061 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7062 dependencies.
7063 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7064 end.
7065 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7066 (_initialize_m68k_linux_tdep): New function.
7067 (m68k_linux_frame_saved_pc): Make static.
7068 (m68k_linux_extract_return_value): Likewise.
7069 (m68k_linux_store_return_value): Likewise.
7070 (m68k_linux_extract_struct_value_address): Likewise.
7071 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7072 Remove.
7073 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7074 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7075 (DEPRECATED_FRAME_SAVED_PC): Remove.
7076
0fbc10f7
KW
70772003-05-20 Kris Warkentin <kewarken@qnx.com>
7078
7079 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7080 regset numbering rather than our own.
7081
58da2eb2
DC
70822003-05-19 David Carlton <carlton@bactrian.org>
7083
7084 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7085
1fcb5155
DC
70862003-05-19 David Carlton <carlton@bactrian.org>
7087
7088 Partial fix for PR c++/827.
7089 * cp-support.h: Include symtab.h.
7090 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7091 * cp-namespace.c: Update contributors.
7092 (cp_lookup_symbol_nonlocal): New.
7093 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7094 (lookup_symbol_file): Ditto.
7095 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7096 * block.h: Declare block_scope, block_using, block_global_block.
7097 * block.c (block_scope): New.
7098 (block_using, block_global_block): Ditto.
7099 * Makefile.in (cp_support_h): Depend on symtab_h.
7100 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7101
5f9a71c3
DC
71022003-05-19 David Carlton <carlton@bactrian.org>
7103
7104 * language.h (struct language_defn): Add 'la_value_of_this'
7105 and 'la_lookup_symbol_nonlocal' members.
7106 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7107 lookup_symbol_static, lookup_symbol_global,
7108 lookup_symbol_aux_block.
7109 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7110 if we should search fields of this and how to do static/global
7111 lookup.
7112 (lookup_symbol_aux_block): Make extern.
7113 (basic_lookup_symbol_nonlocal): New.
7114 (lookup_symbol_static, lookup_symbol_global): Ditto.
7115 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7116 'la_lookup_symbol_nonlocal' members.
7117 * c-lang.c (c_language_defn, cplus_language_defn)
7118 (asm_language_defn, minimal_language_defn): Ditto.
7119 * jv-lang.c (java_language_defn): Ditto.
7120 * language.c (unknown_language_defn, auto_language_defn)
7121 (local_language_defn): Ditto.
7122 * m2-lang.c (m2_language_defn): Ditto.
7123 * objc-lang.c (objc_language_defn): Ditto.
7124 * scm-lang.c (scm_language_defn): Ditto.
7125 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7126 * p-lang.c (pascal_language_defn): Ditto for both.
7127 * Makefile.in (f-lang.o): Depend on value_h.
7128 (p-lang.o): Ditto.
7129
89a9d1b1
DC
71302003-05-19 David Carlton <carlton@bactrian.org>
7131
7132 * block.h: Declare block_static_block.
7133 * block.c (block_static_block): New.
7134 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7135 lookup_symbol_aux_local, calling block_static_block instead.
7136 (lookup_symbol_aux_local): Delete 'static_block' argument.
7137
eed3f8ab
DC
71382003-05-19 David Carlton <carlton@bactrian.org>
7139
7140 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7141
a09d8bda
ML
71422003-05-19 Michal Ludvig <mludvig@suse.cz>
7143
7144 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7145 register numbers mapping.
7146
69636828
AF
71472003-05-18 Adam Fedor <fedor@gnu.org>
7148
7149 * symtab.c (completion_list_objc_symbol): New function.
7150 (make_symbol_completion_list): Use it to add ObjC symbols
7151 when looking though the list.
7152 (language_search_unquoted_string): New function.
7153 (make_file_symbol_completion_list): Use it.
7154
55baeb84
AS
71552003-05-18 Andreas Schwab <schwab@suse.de>
7156
d0b45d99
AS
7157 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7158 dependencies.
7159 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7160 as m68k_linux_extract_return_value.
7161 (DEPRECATED_STORE_RETURN_VALUE): Define as
7162 m68k_linux_store_return_value.
7163 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7164 m68k_linux_extract_struct_value_address.
7165 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7166 get_next_frame, get_frame_base, get_frame_pc.
7167 (m68k_linux_frame_saved_pc): Use get_frame_base.
7168 (m68k_linux_extract_return_value): New function.
7169 (m68k_linux_store_return_value): New function.
7170 (m68k_linux_extract_struct_value_address): New function.
7171 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7172
55baeb84
AS
7173 * c-exp.y (typebase): Remove duplicate occurence of
7174 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7175 of lookup_signed_typename.
55baeb84 7176
b6b08ebf
MK
71772003-05-18 Mark Kettenis <kettenis@gnu.org>
7178
7179 * dwarf2loc.c (find_location_expression): Change type of second
7180 argument to `size_t *'.
7181 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7182 for size variable.
7183
5ad1c190
DC
71842003-05-18 David Carlton <carlton@bactrian.org>
7185
7186 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7187 'linkage_name'. Add comment.
7188 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7189 'linkage_name'.
7190 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7191 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7192 (lookup_block_symbol): Ditto.
7193
b8b527c5
AC
71942003-05-16 Andrew Cagney <cagney@redhat.com>
7195
7196 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7197 * gdbarch.h, gdbarch.c: Re-generate.
7198 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7199 * TODO (REGISTER_BYTES): Delete reference.
7200 * alpha-tdep.c (alpha_gdbarch_init): Update.
7201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7202 * x86-64-tdep.c (x86_64_init_abi): Update.
7203 * vax-tdep.c (vax_gdbarch_init): Update.
7204 * v850-tdep.c (v850_gdbarch_init): Update.
7205 * sparc-tdep.c (sparc_gdbarch_init): Update.
7206 * sh-tdep.c (sh_gdbarch_init): Update.
7207 * s390-tdep.c (s390_gdbarch_init): Update.
7208 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7209 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7210 (ns32k_gdbarch_init_32382): Update.
7211 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7212 * mcore-tdep.c (mcore_gdbarch_init): Update.
7213 * m68k-tdep.c (m68k_gdbarch_init): Update.
7214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7215 * ia64-tdep.c (ia64_gdbarch_init): Update.
7216 * i386-tdep.c (i386_gdbarch_init): Update.
7217 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7218 * hppa-tdep.c (hppa_gdbarch_init): Update.
7219 * h8300-tdep.c (h8300_gdbarch_init): Update.
7220 * frv-tdep.c (frv_gdbarch_init): Update.
7221 * cris-tdep.c (cris_gdbarch_init): Update.
7222 * avr-tdep.c (avr_gdbarch_init): Update.
7223 * arm-tdep.c (arm_gdbarch_init): Update.
7224 * sparc-tdep.c (sparc_pop_frame): Update.
7225 * rs6000-tdep.c (rs6000_pop_frame): Update.
7226 * remote.c (init_remote_state): Update.
7227 (remote_prepare_to_store): Update.
7228 * remote-vx.c (vx_prepare_to_store): Update.
7229 * remote-sds.c (sds_fetch_registers): Update.
7230 (sds_prepare_to_store): Update.
7231 * remote-array.c: Update.
7232 * regcache.c (init_legacy_regcache_descr): Update.
7233 (init_regcache_descr): Update.
7234 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7235 (mips_o64_extract_return_value): Update.
7236 * irix5-nat.c (fetch_core_registers): Update.
7237 * irix4-nat.c (fetch_core_registers): Update.
7238 * i386-tdep.h: Update.
7239 * hppa-tdep.c (pa_do_registers_info): Update.
7240 (pa_do_strcat_registers_info): Update.
7241 * cris-tdep.c (cris_register_bytes_ok): Update.
7242 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7243 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7244 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7245 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7246 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7247 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7248 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7249 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7250 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7251 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7252 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7253 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7254 (REGISTER_BYTES_OK): Update.
7255 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7256 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7257
ee2842e2
ILT
72582003-05-16 Ian Lance Taylor <ian@airs.com>
7259
7260 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7261 (vax_print_insn, print_insn_arg): Remove static functions.
7262 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7263 print_insn_vax from opcodes library.
7264 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7265
973177d3
AC
72662003-05-15 Andrew Cagney <cagney@redhat.com>
7267
aaab4dba
AC
7268 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7269 * target.h (memory_breakpoint_from_pc): Delete declaration.
7270 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7271 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7272 * monitor.c (monitor_insert_breakpoint): Use
7273 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7274 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7275 * gdbarch.h, gdbarch.c: Re-generate.
7276 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7277 (sparc_gdbarch_init): Set breakpoint_from_pc to
7278 sparc_breakpoint_from_pc.
7279 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7280 (BREAKPOINT_FROM_PC): Define.
7281 (sparc_breakpoint_from_pc): Declare.
7282 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7283 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7284 (BREAKPOINT_FROM_PC): Define.
7285 (BREAKPOINT): Delete macro.
7286 * target.h: Update comment.
7287 * s390-tdep.c (s390_gdbarch_init): Update comments.
7288 * remote.c: Update comments.
7289 * remote-mips.c: Update comments.
7290 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7291 * mem-break.c: Update comment.
7292 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7293 (ia64_memory_insert_breakpoint): Update.
7294 * config/sparc/tm-sparc.h: Update comment.
7295 * config/pa/tm-hppa64.h: Update comment.
7296 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7297 (rs6000_breakpoint_from_pc): Update.
7298 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7299 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7300 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7301 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7302 (mips_breakpoint_from_pc): Update.
7303 (mips_dump_tdep): Update.
7304
e06963ff
AC
7305 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7306 * minsyms.c (lookup_minimal_symbol): Inline
7307 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7308
973177d3
AC
7309 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7310 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7311 * p-lang.c (pascal_printstr): Ditto.
7312 * objc-lang.c (objc_printstr): Ditto.
7313 * m2-lang.c (m2_printstr): Ditto.
7314 * jv-valprint.c (java_print_value_fields): Ditto.
7315 * f-lang.c (f_printstr): Ditto.
7316 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7317 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7318 for repeat_count_threshold.
7319 * Makefile.in (cp-valprint.o): Update dependencies.
7320
5ea2bd7f 73212003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7322
5ea2bd7f
JJ
7323 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7324 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7325 they start with mov r2,r12. Support skipping over indirect stores
7326 of the input registers. Upon hitting a non-nop branch instruction
7327 or predicated instruction, bail out by setting lim_pc to the current
7328 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7329 beyond our calculated value and we have trust_limit set,
7330 use the lim_pc value.
7331
cc8c88f3
AC
73322003-05-15 Andrew Cagney <cagney@redhat.com>
7333
7334 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7335 generic_find_dummy_frame.
7336 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7337 (deprecated_generic_find_dummy_frame): Update.
7338 (deprecated_read_register_dummy): Update.
7339 * frame.c (deprecated_generic_get_saved_register): Update.
7340
909cd28e
TR
73412003-05-15 Theodore A. Roth <troth@openavr.org>
7342
7343 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7344 (avr_gdbarch_init): Set breakpoint_from_pc method.
7345
b923b08d
AC
73462003-05-15 Andrew Cagney <cagney@redhat.com>
7347
7348 * regcache.c (build_regcache): Set deprecated_register_valid
7349 directly.
7350 (deprecated_grub_regcache_for_register_valid): Delete function.
7351 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7352 declaration.
7353
ae2f03ac 73542003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7355
7356 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7357 * symtab.c (lookup_symbol_aux): Delete calls to
7358 lookup_symbol_aux_minsyms.
7359 (lookup_symbol_aux_minsyms): Comment out function and
7360 prototype. Delete lookup by mangled name.
ae2f03ac 7361
18ec9831
KB
73622003-05-14 Kevin Buettner <kevinb@redhat.com>
7363
7364 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7365 correctly indicate an empty stack and ``stack_allocated'' to the
7366 indicate the number of elements initially allocated.
7367 (dwarf_expr_grow_stack): Simplify method for computing new
7368 stack size. Don't loop infinitely if ``stack_len'' is zero.
7369 (execute_stack_op): Move ``ctx->in_reg'' initialization
7370 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7371 be used in conjuction with DW_OP_piece. Revise error message
7372 accordingly.
7373
de18ac1f
TR
73742003-05-14 Theodore A. Roth <troth@openavr.org>
7375
7376 * MAINTAINERS: Update my email address.
7377 * avr-tdep.c: Ditto.
7378
176620f1
EZ
73792003-05-14 Elena Zannoni <ezannoni@redhat.com>
7380
7381 * symtab.h (enum domain_enum): Rename from namespace_enum.
7382 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7383 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7384 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7385 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7386 TYPES_NAMESPACE, METHODS_NAMESPACE.
7387 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7388 (struct symbol, struct partial_symbol): Rename field
7389 'namespace_enum namespace' to 'domain_enum domain'.
7390 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7391 Delete old define kludge for namespace.
7392
7393 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7394 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7395 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7396 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7397 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7398 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7399 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7400 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7401 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7402 occurrences of the above.
7403
b7f31508
ILT
74042003-05-14 Ian Lance Taylor <ian@airs.com>
7405
7406 * Makefile.in (install-only): Use $(SHELL) when running
7407 mkinstalldirs.
7408
2fdbdd39
ILT
74092003-05-13 Ian Lance Taylor <ian@airs.com>
7410
a208d82c
ILT
7411 * MAINTAINERS (write after approval): Add myself.
7412
2fdbdd39
ILT
7413 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7414 second and third arguments.
7415 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7416 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7417
fbd9dcd3
AC
74182003-05-13 Andrew Cagney <cagney@redhat.com>
7419
7420 * defs.h (store_address): Delete declaration.
7421 findvar.c (store_address): Delete function.
7422 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7423 store_unsigned_integer.
7424 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7425 * v850-tdep.c (v850_push_arguments): Ditto.
7426 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7427 * sh-tdep.c (sh64_get_saved_register): Ditto.
7428 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7429 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7430 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7431 (mips_get_saved_register): Ditto.
7432 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7433 (find_func_descr, ia64_push_arguments): Ditto.
7434 * i386-tdep.c (i386_push_arguments): Ditto.
7435 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7436 * frv-tdep.c (frv_push_arguments): Ditto.
7437 * frame.c (legacy_saved_regs_prev_register): Ditto.
7438 (deprecated_generic_get_saved_register): Ditto.
7439 * findvar.c (unsigned_address_to_pointer): Ditto.
7440 * dwarf2read.c (dwarf2_const_value): Ditto.
7441 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7442 * alpha-tdep.c (alpha_push_arguments): Ditto.
7443
6760f9e6
JB
74442003-05-12 J. Brobecker <brobecker@gnat.com>
7445
7446 * NEWS: Mention that the hppa-hpux port has been partially
7447 multiarched (32bit ABIT only, so far).
7448
30e221b4
AC
74492003-05-11 Andrew Cagney <cagney@redhat.com>
7450
7451 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7452 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7453 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7454 sim/testsuite/sim/arm/misaligned2.ms, and
7455 sim/testsuite/sim/arm/misaligned3.ms.
7456 * disasm.h (struct ui_file): Add opaque struct declaration.
7457 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7458 * frame.h (struct ui_file): Ditto.
7459
dea7f9ba
MK
74602003-05-11 Mark Kettenis <kettenis@gnu.org>
7461
7462 * value.h: Pretty print.
7463
01986c48
MK
74642003-05-10 Mark Kettenis <kettenis@gnu.org>
7465
7466 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7467
123a958e
AC
74682003-05-08 Andrew Cagney <cagney@redhat.com>
7469
7470 * regcache.h (max_register_size): Delete declaration.
7471 * regcache.c (max_register_size): Delete function.
7472 (struct regcache_descr): Delete field "max_register_size".
7473 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7474 registers fit in MAX_REGISTER_SIZE.
7475 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7476 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7477 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7478 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7479 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7480 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7481 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7482 * dve3900-rom.c, hppa-tdep.c: Ditto.
7483
eb294659
DC
74842003-05-08 David Carlton <carlton@math.stanford.edu>
7485
7486 * valops.c (push_word): Fix typo.
7487
d9d9c31f
AC
74882003-05-08 Andrew Cagney <cagney@redhat.com>
7489
7490 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7491 * gdbarch.h: Re-generate.
7492 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7493 (legacy_max_register_raw_size): Delete declaration.
7494 * regcache.c (legacy_max_register_raw_size): Delete function.
7495 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7496 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7497 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7498 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7499 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7500 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7501 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7502 * findvar.c, dwarf2cfi.c: Ditto.
7503
22540ece
AC
75042003-05-08 Andrew Cagney <cagney@redhat.com>
7505
7506 * mips-tdep.c (read_signed_register): New function, moved to here
7507 from "regcache.c".
7508 (read_signed_register_pid): Ditto.
7509 * regcache.c (read_signed_register_pid): Delete function, moved to
7510 "mips-tdep.c".
7511 (read_signed_register): Ditto.
7512 * regcache.h (read_signed_register): Delete declaration.
7513 (read_signed_register_pid): Delete declaration.
7514
0c92afe8
AC
75152003-05-08 Andrew Cagney <cagney@redhat.com>
7516
7517 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7518 * gdbarch.h: Re-generate.
7519 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7520 (legacy_max_register_virtual_size): Delete declaration.
7521 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7522 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7523 * tracepoint.c (memrange_sortmerge): Ditto.
7524 * sparc-tdep.c (sparc_print_registers): Ditto.
7525 * regcache.c (legacy_max_register_virtual_size): Delete function.
7526
6037b830
JB
75272002-05-08 J. Brobecker <brobecker@gnat.com>
7528
7529 * fork-child.c (escape_bang_in_quoted_argument): New function.
7530 (fork_inferior): Escape '!' characters in quoted arguments
7531 only when needed.
7532
5d62c8b1
JB
75332003-05-08 J. Brobecker <brobecker@gnat.com>
7534
7535 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7536 the language of the CU is not currently supported by GDB.
7537
20a0e81d
JB
75382003-05-08 J. Brobecker <brobecker@gnat.com>
7539
7540 * defs.h (language): Add language_minimal enum value.
7541 * c-lang.c (minimal_language_defn): New language definition.
7542 (_initialize_c_language): Add the new minimal language to the list
7543 of languages known to GDB.
7544
710ee10a
KB
75452003-05-08 Kevin Buettner <kevinb@redhat.com>
7546
7547 * frame.c (get_frame_type): Don't attempt to lazily initialize
7548 frame's unwinder for legacy frames.
7549
1750fa04
AC
75502003-05-07 Andrew Cagney <cagney@redhat.com>
7551
7552 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7553 and "regcache" parameters.
7554 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7555
ddf9f258 75562003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7557
7558 * dwarf2read.c (dwarf_decode_lines): Only use output of
7559 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7560 the current address.
7561
87767c29
AC
75622003-05-07 Andrew Cagney <cagney@redhat.com>
7563
7564 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7565 code.
7566
5e7b2f39
JB
75672003-05-07 Jim Blandy <jimb@redhat.com>
7568
7569 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7570 'maint info symtabs' and 'maint info psymtabs'.
7571 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7572 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7573 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7574 Declarations updated.
7575 * maint.c (maintenance_list_command): Delete.
7576 (_initialize_maint_cmds): Update calls to add_cmd.
7577 * gdbcmd.h (maintenancelistlist): Delete declaration.
7578 * cli/cli-cmds.c (maintenancelistlist): Delete.
7579 (init_cmd_lists): Don't initialize it.
7580 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7581
f6684c31
AC
75822003-05-07 Andrew Cagney <cagney@redhat.com>
7583
7584 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7585 "regcache".
7586 (d10v_print_registers_info): Update.
7587 (d10v_dmap_register, d10v_imap_register): Delete functions.
7588 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7589 and "imap_register".
7590 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7591 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7592 * arch-utils.c (generic_remote_translate_xfer_address): Add
7593 "regcache" and "gdbarch" parameters.
7594 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7595 parameter. Change class to multi-arch.
7596 * gdbarch.h, gdbarch.c: Re-generate.
7597 * remote.c (remote_xfer_memory): Use
7598 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7599
e4846b08
JJ
76002003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7601
7602 * infrun.c (prev_pc): Move declaration ahead of proceed().
7603 (proceed): Refresh prev_pc value before resuming.
7604 (stop_stepping): Remove code to refresh prev_pc.
7605
6b71b8ac
KW
76062003-05-06 Kris Warkentin <kewarken@qnx.com>
7607
7608 * nto-tdep.c: Removed stray comment.
7609
47979a4b
KW
76102003-05-06 Kris Warkentin <kewarken@qnx.com>
7611
7612 * i386-nto-tdep.c: Fix old K&R function definitions.
7613 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7614 Also change add_show_from_set() call to add_setshow_cmd().
7615 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7616
00905d52
AC
76172003-05-05 Andrew Cagney <cagney@redhat.com>
7618
7619 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7620 (fprint_dummy_frames): New function.
7621 (maintenance_print_dummy_frames): New function.
7622 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7623 * frame.c (fprint_frame_id): Make global.
7624 * frame.h (fprint_frame_id): Declare.
7625 * Makefile.in (dummy-frame.o): Update dependencies.
7626
b1e29e33
AC
76272003-05-05 Andrew Cagney <cagney@redhat.com>
7628
7629 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7630 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7631 SIZEOF_CALL_DUMMY_WORDS.
7632 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7633 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7634 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7635 CALL_DUMMY_BREAKPOINT_OFFSET.
7636 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7637 CALL_DUMMY_START_OFFSET.
7638 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7639 * gdbarch.h, gdbarch.c: Re-generate.
7640 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7641 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7642 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7643 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7644 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7645 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7646 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7647 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7648 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7649 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7650 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7651 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7652 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7653 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7654 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7655
76562003-05-05 Kris Warkentin <kewarken@qnx.com>
7657
7658 * configure.tgt: Add i[3456]86-*-nto*.
7659 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7660 * nto-tdep.c: New file. Neutrino target support routines.
7661 * nto-tdep.h: New file. Neutrino target header.
7662 * config/tm-qnxnto.h: New file.
7663 * config/i386/i386nto.mt: New file.
7664 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7665
0ce3d317
AC
76662003-05-04 Andrew Cagney <cagney@redhat.com>
7667
7668 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7669 (load_infrun_state): Ditto.
7670 (struct thread_info): Drop "prev_func_name" field.
7671 * thread.c (load_infrun_state): Update.
7672 (save_infrun_state): Update.
7673 * infrun.c (prev_func_name): Delete variable.
7674 (init_wait_for_inferior): Do not clear prev_func_name.
7675 (stop_stepping, keep_going, context_switch): Do not swap
7676 prev_func_name.
7677 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7678 instead of PC_IN_SIGTRAMP.
7679
46654a5b
AC
76802003-05-04 Andrew Cagney <cagney@redhat.com>
7681
7682 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7683 REGISTER_BYTE with register_offset_hack.
7684 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7685 that REGISTER_BYTE is consistent with the regcache.
7686 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7687 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7688
14b08c1b
MK
76892003-05-04 Mark Kettenis <kettenis@gnu.org>
7690
04c8243f
MK
7691 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7692 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7693
14b08c1b
MK
7694 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7695
c7a11e01
JB
76962003-05-03 J. Brobecker <brobecker@gnat.com>
7697
7698 From Thierry Schneider <tpschneider1@yahoo.com>
7699 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7700 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7701 (mi-cmd-symbol.o): Add rule.
7702
7043d8dc
AC
77032003-05-03 Andrew Cagney <cagney@redhat.com>
7704
7705 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7706 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7707 * gdbarch.h, gdbarch.c: Re-generate.
7708 * d10v-tdep.c (d10v_push_dummy_code): New function.
7709 (d10v_gdbarch_init): Set push_dummy_code.
7710 * infcall.c (legacy_push_dummy_code): New function.
7711 (generic_push_dummy_code): New function.
7712 (push_dummy_code): New function.
7713 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7714 instead of dummy_addr, to push_dummy_call. Move call to
7715 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7716 switch.
7717 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7718
92bf2b80
AC
77192003-05-03 Andrew Cagney <cagney@redhat.com>
7720
7721 * disasm.h (print_insn): Declare.
7722 * disasm.c (init_gdb_disassemble_info): New function.
7723 (gdb_disassembly): Call init_gdb_disassemble_info.
7724 (gdb_print_insn): New function.
7725 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7726 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7727 * mcore-tdep.c: Include "disasm.h"
7728 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7729 * d10v-tdep.c: Include "disasm.h".
7730 (display_trace): Call gdb_print_insn, instead of print_insn.
7731 (print_insn): Delete function.
7732 * printcmd.c: Include "disasm.h".
7733 (print_insn): Delete function.
7734 (print_formatted): Call gdb_print_insn, instead of print_insn.
7735 * Makefile.in (printcmd.o): Update dependencies.
7736 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7737
27d94c49
AC
77382003-05-02 Andrew Cagney <cagney@redhat.com>
7739
82de1e5b
AC
7740 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7741 PC_REGNUM, re-indent.
7742 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7743 PC_REGNUM isn't set.
7744
27d94c49
AC
7745 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7746 * gdbarch.h, gdbarch.c: Re-generate.
7747 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7748 register_virtual_size, pc_regnum, or register_bytes.
7749 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7750 (d10v_register_type): Use D10V_PC_REGNUM.
7751 (d10v_print_registers_info, d10v_read_pc): Ditto.
7752 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7753 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7754
a9c0dc7f
DC
77552003-05-02 David Carlton <carlton@bactrian.org>
7756
7757 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7758 the name with mstrsave.
7759
e33d66ec
EZ
77602003-05-02 Elena Zannoni <ezannoni@redhat.com>
7761
7762 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7763 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7764 (host_charset_name, target_charset_name): New vars for use by
7765 set/show commands.
7766 (host_charset_enum, target_charset_enum): New enums for set/show
7767 commands.
7768 (set_charset_sfunc, set_host_charset_sfunc,
7769 set_target_charset_sfunc): New functions.
7770 (set_host_charset, set_target_charset): Make static.
7771 (list_charsets, set_host_charset_command,
7772 set_target_charset_command): Delete functions.
7773 (show_charset_command): Rewrite as....
7774 (show_charset): Hook this up with the set/show command mechanism.
7775 (_initialize_charset): Change names of charsets to match the
7776 set/show enums. Use host_charset_name and target_charset_name.
7777 Use set/show mechanism for charset, host-charset, target-charset
7778 commands. Do not make 'show host-charset' and 'show
7779 target-charset' be aliases of 'show charset'.
7780
7781 * charset.h (set_host_charset, set_target_charset): Don't export,
7782 they are not used outside the file.
7783
2b6fd0d8
AC
77842003-05-01 Andrew Cagney <cagney@redhat.com>
7785
7786 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7787 (gdb_disassembly): Make "di" non static, always initialize and
7788 cleanup. Always use dis_asm_read_memory.
7789 (gdb_dis_asm_read_memory): Delete function.
7790
6ae2f580
AC
77912003-05-01 Andrew Cagney <cagney@redhat.com>
7792
7793 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7794 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7795
810ecf9f
AC
77962003-04-30 Andrew Cagney <cagney@redhat.com>
7797
7798 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7799 "tm_print_insn_info".
7800 (TARGET_PRINT_INSN_INFO): Delete macro.
7801 (dis_asm_read_memory): Delete function declaration.
7802 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7803 (tm_print_insn_info): Delete variable definition.
7804 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7805 * gdbarch.h, gdbarch.c: Re-generate.
7806 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7807 "deprecated_tm_print_insn_info".
7808 * mcore-tdep.c (mcore_dump_insn): Ditto.
7809 * mips-tdep.c (mips_gdbarch_init): Ditto.
7810 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7811 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7812 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7813 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7814 instead of TARGET_PRINT_INSN_INFO, add comment.
7815 * s390-tdep.c (s390_get_frame_info): Instead of
7816 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7817 (s390_check_function_end, s390_is_sigreturn): Ditto.
7818 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7819 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7820 * disasm.c: Include "gdbcore.h".
7821 (_initialize_disasm): New function, initialize
7822 "deprecated_tm_print_insn_info".
7823 (deprecated_tm_print_insn_info): New variable.
7824 (dis_asm_read_memory): Moved from "corefile.c", made static.
7825 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7826 * Makefile.in (disasm.o): Update dependencies.
7827
07020390
AC
78282003-04-30 Andrew Cagney <cagney@redhat.com>
7829
7830 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7831
a9fa03de
AF
78322003-04-29 Adam Fedor <fedor@gnu.org>
7833
7834 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7835 * infcall.c (find_function_addr): Make non-static.
7836 * infcall.h (find_function_addr): Declare.
7837 * Makefile.in (eval.o): Update dependencies.
7838
1bae87b9
AF
78392003-04-28 Adam Fedor <fedor@gnu.org>
7840
7841 * symtab.c (symbol_find_demangled_name): Check for and demangle
7842 ObjC symbols.
7843 (symbol_init_demangled_name): Init for language_objc as well.
7844
0ba6dca9
AC
78452003-04-28 Andrew Cagney <cagney@redhat.com>
7846
7847 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7848 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7849 * gdbarch.h, gdbarch.c: Re-generate.
7850 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7851 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7852 * inferior.h (deprecated_read_fp): Rename read_fp.
7853 (generic_target_read_fp): Delete declaration.
7854 * regcache.c (generic_target_read_fp): Delete function.
7855 (deprecated_read_fp): Replace read_fp, use
7856 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7857 * d10v-tdep.c (d10v_read_fp): Delete function.
7858 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7859
7860 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7861 deprecated_target_read_fp to generic_target_read_fp.
7862 * sh-tdep.c (sh_gdbarch_init): Ditto.
7863 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7865 * frv-tdep.c (frv_gdbarch_init): Ditto.
7866
7867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7868 deprecated_fp_regnum.
7869 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7870 * vax-tdep.c (vax_gdbarch_init): Ditto.
7871 * v850-tdep.c (v850_gdbarch_init): Ditto.
7872 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7873 * sh-tdep.c (sh_gdbarch_init): Ditto.
7874 * s390-tdep.c (s390_gdbarch_init): Ditto.
7875 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7876 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7877 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7878 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7880 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7881 * i386-tdep.c (i386_gdbarch_init): Ditto.
7882 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7883 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7884 * frv-tdep.c (frv_gdbarch_init): Ditto.
7885 * cris-tdep.c (cris_gdbarch_init): Ditto.
7886 * avr-tdep.c (avr_gdbarch_init): Ditto.
7887 * arm-tdep.c (arm_gdbarch_init): Ditto.
7888 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7889
7890 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7891 * v850-tdep.c (v850_gdbarch_init): Ditto.
7892 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7893 * sh-tdep.c (sh_gdbarch_init): Ditto.
7894 * s390-tdep.c (s390_gdbarch_init): Ditto.
7895 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7896 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7897 * mips-tdep.c (mips_gdbarch_init): Ditto.
7898 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7899 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7900 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7901 * frv-tdep.c (frv_gdbarch_init): Ditto.
7902 * avr-tdep.c (avr_gdbarch_init): Ditto.
7903 * arm-tdep.c (arm_gdbarch_init): Ditto.
7904
7905 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7906 DEPRECATED_FP_REGNUM.
7907 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7908 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7909 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7910 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7911 (sparc32_register_virtual_type): Ditto.
7912 * sh-tdep.c (sh64_frame_chain): Ditto.
7913 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7914 (sh_nofp_frame_init_saved_regs): Ditto.
7915 (sh64_nofp_frame_init_saved_regs): Ditto.
7916 (sh_fp_frame_init_saved_regs): Ditto.
7917 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7918 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7919 * procfs.c (procfs_fetch_registers): Ditto.
7920 (procfs_store_registers): Ditto.
7921 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7922 (store_inferior_registers, fetch_core_registers): Ditto.
7923 (fetch_kcore_registers, clear_regs): Ditto.
7924 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7925 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7926 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7927 * nlm/i386.c (do_status): Ditto.
7928 * mipsv4-nat.c (supply_gregset): Ditto.
7929 * mips-tdep.c: Ditto for comments.
7930 * mips-nat.c (fetch_inferior_registers): Ditto.
7931 (store_inferior_registers, fetch_core_registers): Ditto.
7932 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7933 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7934 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7935 (i386_do_pop_frame, i386_register_type): Ditto.
7936 * hppa-tdep.c (hppa_frame_chain): Ditto.
7937 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7938 (hppa_pop_frame, hppa_read_fp): Ditto.
7939 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7940 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7941 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7942 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7943 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7944 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7945 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7946 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7947 * blockframe.c: Ditto for comments.
7948 * arch-utils.h: Ditto for comments.
7949 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7950 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7951 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7952 * alpha-tdep.h: Ditto for comments.
7953 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7954 (alpha_cannot_store_register): Ditto.
7955 (alpha_push_dummy_frame): Ditto.
7956 * alpha-nat.c (supply_gregset): Ditto.
7957
7958 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7959 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7960 * config/sparc/tm-sparc.h: Update comment.
7961
7962 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7963 deprecated_read_fp instead of TARGET_READ_FP.
7964 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7965 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7966 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7967 deprecated_read_fp instead of read_fp.
7968 * s390-tdep.c (s390_push_arguments): Ditto.
7969 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7970 * frame.h: Ditto in comments.
7971 * frame.c (legacy_get_prev_frame): Ditto.
7972 * dummy-frame.c (dummy_frame_this_id): Ditto.
7973 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7974
d7a27068
AC
79752003-04-28 Andrew Cagney <cagney@redhat.com>
7976
7977 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7978 * gdbarch.h, gdbarch.c: Re-generate.
7979 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7980 * vax-tdep.c (_initialize_vax_tdep): Update.
7981 * v850-tdep.c (_initialize_v850_tdep): Update.
7982 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7983 * s390-tdep.c (_initialize_s390_tdep): Update.
7984 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7985 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7986 * mips-tdep.c (_initialize_mips_tdep): Update.
7987 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7988 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7989 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7990 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7991 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7992 * frv-tdep.c (_initialize_frv_tdep): Update.
7993 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7994 (_initialize_cris_tdep): Update.
7995 * arch-utils.c (legacy_print_insn): Update.
7996 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7997
d2630e69
AF
79982003-04-26 Adam Fedor <fedor@gnu.org>
7999
8000 * linespec.c (decode_objc): New function to decode ObjC calls
8001 (decode_line_1): Check for ObjC calls (using decode_objc)
8002 * Makefile (linespec.o): Update dependencies.
8003
3086aeae
DJ
80042003-04-26 Daniel Jacobowitz <drow@mvista.com>
8005
8006 * breakpoint.h (struct breakpoint_ops): New.
8007 (struct breakpoint): Add ops member.
8008
8009 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8010 (mention): Use new breakpoint ops member.
8011 (set_raw_breakpoint): Initialize ops field to NULL.
8012 (print_exception_catchpoint, print_one_exception_catchpoint)
8013 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8014 (gnu_v3_exception_catchpoint_ops): New.
8015 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8016
1fbec6c3
AF
80172003-04-25 Adam Fedor <fedor@gnu.org>
8018
8019 * Makefile.in (COMMON_OBS): Add objc-lang.o
8020
0ef21242
AC
80212003-04-25 Andrew Cagney <cagney@redhat.com>
8022
8023 * d10v-tdep.c (print_insn): Delete function.
8024 (display_trace): Use TARGET_PRINT_INSN.
8025 (_initialize_d10v_tdep): Do not set tm_print_insn.
8026 (d10v_gdbarch_init): Set print_insn.
8027
f75493ed
AC
80282003-04-25 Andrew Cagney <cagney@redhat.com>
8029
8030 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8031 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8032 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8033 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8034 (nr_dmap_regs, a0_regnum): ... new functions.
8035 (d10v_print_registers_info): Use a0_regnum, use register_size.
8036 (d10v_register_byte): Delete function.
8037 (d10v_register_raw_size): Delete function.
8038 (d10v_register_type): Use a0_regnum.
8039 (d10v_print_registers_info): Use a0_regnum.
8040 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8041 (d10v_gdbarch_init): Do not set register_byte or
8042 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8043 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8044 extract_address.
8045 (trace_command): Use XCALLOC.
8046 (print_insn): Delete reference to tm_print_insn.
8047 (saved_regs_unwinder): Use store_unsigned_integer instead of
8048 store_address.
8049 * frame.h (FRAME_OBSTACK_CALLOC): Define
8050
2202b100
DC
80512003-04-25 David Carlton <carlton@bactrian.org>
8052
8053 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8054
4e45ca2e
AF
80552003-04-24 Adam Fedor <fedor@gnu.org>
8056
8057 * objc-lang.c: Include "valprint.h"
8058 * Makefile.in (objc-lang.o): Update dependencies.
8059
93de3e7f
AF
80602003-04-24 Adam Fedor <fedor@gnu.org>
8061
8ffd9b1b 8062 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8063 architecture dependant compilation and mark as unimplemented
8064 (until they get put in the gdbarch vector).
8065
0f20eeea
DC
80662003-04-23 David Carlton <carlton@bactrian.org>
8067
8068 * cp-support.c (cp_find_first_component): Accept 'operator' in
8069 more locations.
8070
74cfe982
AC
80712003-04-23 Andrew Cagney <cagney@redhat.com>
8072
8073 * infcall.c (call_function_by_hand): Eliminate redundant
8074 indentation. Move "saved_async" and "old_cleanups" to where they
8075 are needed.
8ffd9b1b 8076
52557533
AC
80772003-04-23 Andrew Cagney <cagney@redhat.com>
8078
8079 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8080 and "buffer". Move the "name" code to where it is needed.
8081
158775de
AC
80822003-04-23 Andrew Cagney <cagney@redhat.com>
8083
8084 * infcall.c (call_function_by_hand): Move variables "start_sp",
8085 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8086 code to ON_STACK switch branch.
8ffd9b1b 8087
ebc7896c
AC
80882003-04-23 Andrew Cagney <cagney@redhat.com>
8089
8090 * infcall.c (call_function_by_hand): Make declaration of "i",
8091 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8092 lint.
8093
d727590f
AC
80942003-04-23 Andrew Cagney <cagney@redhat.com>
8095
8096 * infcall.c (call_function_by_hand): Delete variable
8097 "n_method_args". Localize "param_type"'s declaration to the loop
8098 that it is used. Reinstate code assigning to said variable -
8099 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8100 Rationalize code using "param_type".
8101
d585e13a
AC
81022003-04-22 Andrew Cagney <cagney@redhat.com>
8103
8104 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8105 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8106 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8107 to DEPRECATED_PUSH_RETURN_ADDRESS.
8108
051caad9
KB
81092003-04-22 Kevin Buettner <kevinb@redhat.com>
8110
8111 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8112 on the DWARF2 register number prior to fetching a register.
8113
77296879
JB
81142003-04-22 J. Brobecker <brobecker@gnat.com>
8115
8116 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8117 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8118 this macro was always set to 0.
77296879
JB
8119 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8120 considering the fact that this macro was always set to 0.
8121 * hppa-tdep.h (hppa_store_return_value): Likewise.
8122 (hppa_extract_return_value): Likewise.
8123
4252f1df
JB
81242003-04-22 J. Brobecker <brobecker@gnat.com>
8125
8126 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8127 the hppa-pro target only.
8128
14604c6b
JB
81292003-04-21 J. Brobecker <brobecker@gnat.com>
8130
8131 Ongoing multi-arch conversion effort for HP/UX:
8132 * config/pa/tm-hppa.h: Move all macro that are no longer
8133 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8134 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8135
77eb01d1
JB
81362003-04-21 J. Brobecker <brobecker@gnat.com>
8137
8138 * config/pa/tm-hppa.h: Obsolete a section that was only used
8139 for hppa-pro.
8140
61995b3b
JB
81412003-04-21 J. Brobecker <brobecker@gnat.com>
8142
8143 Ongoing multi-arch conversion for HP/UX.
8144 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8145 if already defined (allows hppa64 to stay non-multiarched for now).
8146 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8147
4aa79dcc
AC
81482003-04-21 Andrew Cagney <cagney@redhat.com>
8149
8150 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8151
0f751ff2
AC
81522003-04-21 Andrew Cagney <cagney@redhat.com>
8153
8154 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8155 "i386_num_mmx_regs".
8156
04714b91
AC
81572003-04-21 Andrew Cagney <cagney@redhat.com>
8158
8159 * infcall.c: New file.
8160 * infcall.h: New file.
8161 * valarith.c: Include "infcall.h".
8162 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8163 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8164 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8165 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8166 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8167 (SFILES): Add "infcall.c"
8168 (COMMON_OBS): Add "infcall.o".
8169 (infcall.o): Specify dependencies.
8170 * value.h (call_function_by_hand): Delete declaration.
8171 * inferior.h (run_stack_dummy): Delete declaration.
8172 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8173 (run_stack_dummy): Move to "infcall.c", merged into
8174 call_function_by_hand.
8175 * valops.c (call_function_by_hand): Moved to "infcall.c".
8176 (find_function_addr, value_arg_coerce): Ditto.
8177 (unwindonsignal_p, coerce_float_to_double): Ditto.
8178 (_initialize_valops): Move "set/show coerce-float-to-double", and
8179 "set/show unwindonsignal" commands to "infcall.c".
8180 * v850-tdep.c, target.h: Update comments.
8181 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8182 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8183 (sh64_init_extra_frame_info): Update comments.
8184 * mn10300-tdep.c: Update comments.
8185 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8186 * config/sparc/tm-sparc.h: Update comments.
8187 * breakpoint.h: Update comments.
8188 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8189 * arm-tdep.c: Update comment.
8190
f9d3c2a8
MK
81912003-04-19 Mark Kettenis <kettenis@gnu.org>
8192
c40e1eab
MK
8193 * i386-tdep.c (i386_num_register_names): New variable.
8194 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8195 (MM0_REGNUM): Remove redundant parentheses in define.
8196 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8197 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8198 i386_mxcsr_regnum_p): Remove redundant parentheses.
8199 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8200
94ea66b3
MK
8201 * i386-tdep.c (i386_extract_return_value,
8202 i386_store_return_value): Correct check for availability of
8203 floating-point registers.
8204
54299a1d
MK
8205 * i386-tdep.c (i386_frame_num_args): Remove function.
8206 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8207
c86c27af
MK
8208 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8209 mmx_regnum_to_fp_regnum. Adjust all callers.
8210
f9d3c2a8
MK
8211 * i386-tdep.c (i386_get_longjmp_target): Use
8212 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8213 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8214 extract_address.
8215
94ba74a9
MK
82162003-04-19 Mark Kettenis <kettenis@gnu.org>
8217
8218 * core-regset.c: Update comments to reflect reality. Re-order
8219 includes.
8220 (fetch_core_registers): Use switch instead of if. Remove
8221 redundant prototype.
8222
4074e13c
JB
82232003-04-18 Jim Blandy <jimb@redhat.com>
8224
8225 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8226 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8227
e3ab4aba
RH
82282003-04-17 Richard Henderson <rth@redhat.com>
8229
8230 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8231
627bf7c1
EZ
82322003-04-17 Michael Snyder <msnyder@redhat.com>
8233 Karen Bennet <bennet@redhat.com>
8234
8235 Committed by Elena Zannoni <ezannoni@redhat.com>
8236 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8237
514621a9
EZ
82382003-04-17 Elena Zannoni <ezannoni@redhat.com>
8239
8240 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8241 value if the return type is void.
514621a9 8242
b4acd559
JJ
82432003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8244
8245 * thread-db.c: Reindented.
8ffd9b1b 8246
530b167e 82472003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8248
8249 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8250 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8251 as types.
8252
0a48e7e8
MS
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8ffd9b1b 8276
ab9fe00e
KB
82772003-04-16 Kevin Buettner <kevinb@redhat.com>
8278
610a3745 8279 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8280 the size of ``long double'' to 16, instead of 8.
8281
e64a344c
MK
82822003-04-16 Mark Kettenis <kettenis@gnu.org>
8283
8284 * i386-linux-nat.c: Add some whitespace to make things more
8285 readable.
8286 (fetch_register, store_register, fetch_inferior_registers,
8287 store_inferior_registers): Get rid of assignment in if-statement.
8288 (store_register): Fix typo in error message.
8289
25d41031
AC
82902003-04-16 Andrew Cagney <cagney@redhat.com>
8291
8292 * utils.c (xmmalloc): Always allocate something, matches
8293 libiberty/xmalloc's semantics.
8294 (xmrealloc, xmcalloc): Ditto.
8295
c50901fd
AC
82962003-04-16 Andrew Cagney <cagney@redhat.com>
8297
8298 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8299 update comments.
8300 (get_frame_type): Initialize unwind and type when needed.
8301 (get_frame_id, frame_register_unwind): Ditto.
8302
f81824a9
AC
83032003-04-16 Andrew Cagney <cagney@redhat.com>
8304
8305 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8306 obsolete.
8307 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8308 * sparcl-stub.c: Obsolete file.
8309 * config/sparc/tm-sparclet.h: Obsolete file.
8310 * sparclet-stub.c: Obsolete file.
8311 * sparclet-rom.c: Obsolete file.
8312 * sparcl-tdep.c: Obsolete file.
8313 * config/sparc/tm-sparclite.h: Obsolete file.
8314 * config/sparc/sparclite.mt: Obsolete file.
8315 * config/sparc/sparclet.mt: Obsolete file.
8316 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8317 sparc86x-*-* obsolete.
8318
9219021c
DC
83192003-04-15 David Carlton <carlton@math.stanford.edu>
8320
8321 * Makefile.in (SFILES): Add cp-namespace.c.
8322 (COMMON_OBS): Add cp-namespace.o.
8323 (block.o): Depend on gdb_obstack_h and cp_support_h.
8324 (buildsym.o): Depend on cp_support_h.
8325 (cp-namespace.o): New.
8326 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8327 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8328 (dwarf2read.o): Depend on cp_support_h.
8329 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8330 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8331 processing_current_namespace.
8332 (read_namespace): Update processing_current_namespace; check for
8333 anonymous namespaces.
8334 (dwarf2_name): New function.
8335 (dwarf2_extension): Ditto.
8336 * cp-support.h: Update copyright, contributors.
8337 Add inclusion guards.
8338 Add opaque declaration for structs obstack, block, symbol.
8339 (struct using_direct): New struct.
8340 Add declarations for cp_find_first_component,
8341 cp_entire_prefix_len, processing_has_namespace_info,
8342 processing_current_namespace, cp_is_anonymous,
8343 cp_add_using_directive, cp_initialize_namespace,
8344 cp_finalize_namespace, cp_set_block_scope,
8345 cp_scan_for_anonymous_namespaces.
8346 * cp-namespace.c: New file.
8347 * cp-support.c: Update copyright.
8348 Include ctype.h, gdb_assert.h, gdbcmd.h.
8349 New variable maint_cplus_cmd_list.
8350 (cp_find_first_component): New function.
8351 (cp_entire_prefix_len, maint_cplus_command)
8352 (first_component_command, _initialize_cp_support): Ditto.
8353 * buildsym.c: Include cp-support.h.
8354 New variable using_list.
8355 (add_symbol_to_list): Check for anonymous namespaces.
8356 (finish_block): Set block's scope.
8357 (start_symtab): Initialize C++ namespace support.
8358 (end_symtab): Finalize C++ namespace support.
8359 * block.h: Add opaque declarations for structs
8360 block_namespace_info, using_direct, and obstack.
8361 Add declarations for block_set_scope and block_set_using.
8362 (struct block): Add 'language_specific' member.
8363 (BLOCK_NAMESPACE): New macro.
8364 * block.c: Include gdb_obstack.h and cp-support.h.
8365 (struct block_namespace_info): New struct.
8366 (block_set_scope): New function.
8367 (block_set_using, block_initialize_namespace): Ditto.
8368
d5a921c9
KB
83692003-04-14 Kevin Buettner <kevinb@redhat.com>
8370
8371 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8372 (locate_base): Return early if there aren't any link map offsets.
8373 (svr4_solib_create_inferior_hook): Warn if shared library support
8374 is unavailable.
8375
d2a52b27
DC
83762003-04-14 David Carlton <carlton@math.stanford.edu>
8377
8378 * symtab.c (symbol_set_names): Add prefix when storing Java names
8379 in hash table. Fix for PR java/1039.
8380
980cae7a
DC
83812003-04-14 David Carlton <carlton@math.stanford.edu>
8382
8383 * symtab.c (symbol_set_names): Rename 'name' arg to
8384 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8385 * symtab.h: Change 'name' argument in declaration of
8386 symbol_set_names to 'linkage_name'.
8387 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8388
e227b13c
AC
83892003-04-14 Andrew Cagney <cagney@redhat.com>
8390
8391 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8392 return the fully sign-extended register value.
8393 (get_frame_pointer): Ditto.
8394 (mips_pop_frame): Initialize "proc_desc" after checking for a
8395 dummy frame.
8396
36712a20
AC
83972003-04-14 Andrew Cagney <cagney@redhat.com>
8398
8399 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8400 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8401 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8402 (mips_push_register): Delete function.
8403 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8404 PUSH_FP_REGNUM.
8405
44ea7b70
JB
84062003-04-14 Jim Blandy <jimb@redhat.com>
8407
8408 * symmisc.c: #include "gdb_regex.h".
8409 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8410 functions.
8411 * maint.c (maintenance_list_command): New function.
8412 (_initialize_maint_cmds): Register the above as commands.
8413 * symtab.h (maintenance_list_symtabs,
8414 maintenance_list_psymtabs): New declarations.
8415 * cli/cli-cmds.c (maintenancelistlist): New variable.
8416 (init_cmd_lists): Initialize it.
8417 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8418 * gdbcmd.h (maintenancelistlist): New declaration.
8419 * Makefile.in (symmisc.o): Update dependencies.
8420
2d0c7962
EZ
84212003-04-14 Elena Zannoni <ezannoni@redhat.com>
8422
8423 * s390-nat.c: Include asm/types.h for addr_t.
8424
1947a811
CV
84252003-04-14 Corinna Vinschen <vinschen@redhat.com>
8426
8427 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8428 actually incoming type.
8429
adb616d7
AC
84302003-04-13 Andrew Cagney <cagney@redhat.com>
8431
8432 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8433 get_next_frame and get_frame_saved_regs.
8434
9b5e151c
AC
84352003-04-13 Andrew Cagney <cagney@redhat.com>
8436
8437 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8438 of gdbarch_num_regs.
8439
ef6e7e13
AC
84402003-04-13 Andrew Cagney <cagney@redhat.com>
8441
8442 * frame.h: Mention what replaced what in "struct frame_info".
8443 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8444 deprecated_update_frame_base_hack and
8445 deprecated_update_frame_pc_hack.
8446 * hppa-tdep.c: Ditto.
8447
61fbb938
DJ
84482003-04-13 Daniel Jacobowitz <drow@mvista.com>
8449
8450 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8451 to read_reg and update its comment. Remove regnum member.
8452 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8453 Don't call read_reg when setting in_reg. Call read_reg to get
8454 the frame base if it's in a register. Return the register number
8455 on the stack instead of in the context. Remove extra arguments
8456 to read_reg.
8457 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8458 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8459 the register number on the expression stack.
8460 (needs_frame_read_reg): Remove extra arguments.
8461
0d53c4c4
DJ
84622003-04-13 Daniel Jacobowitz <drow@mvista.com>
8463
8464 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8465 made non-static.
8466 (execute_stack_op): All callers updated.
8467 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8468 * dwarf2loc.c (find_location_expression): New function.
8469 (dwarf_expr_frame_base): Call it.
8470 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8471 (dwarf2_tracepoint_var_ref): New function, broken out from
8472 locexpr_tracepoint_var_ref.
8473 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8474 Make static.
8475 (loclist_read_variable, loclist_read_needs_frame): New functions.
8476 (loclist_describe_location, loclist_tracepoint_var_ref): New
8477 functions.
8478 (dwarf2_loclist_funcs): New struct location_funcs.
8479 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8480 (struct dwarf2_locexpr_baton): Add comments.
8481 (dwarf2_loclist_funcs): New extern.
8482 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8483 base_address and base_known.
8484 (dwarf_loc_buffer): New variable.
8485 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8486 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8487 (dwarf2_has_info): Initialize dwarf_loc_offset.
8488 (dwarf2_build_psymtabs): Read in .debug_loc.
8489 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8490 DWARF_LOC_SIZE.
8491 (psymtab_to_symtab_1): Likewise. Move base address calculation
8492 here, from...
8493 (dwarf2_get_pc_bounds): ... here. Use the base address from
8494 cu_header.
8495 (dwarf2_symbol_mark_computed): Handle location lists.
8496
6aca59a3
DJ
84972003-04-13 Daniel Jacobowitz <drow@mvista.com>
8498
8499 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8500 if the linkage name demangled successfully.
8501
aca1fcd0
MK
85022003-04-13 Mark Kettenis <kettenis@gnu.org>
8503
97095916
MK
8504 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8505 disassmbly_flavour): Removed.
8506
aca1fcd0
MK
8507 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8508
562a961f
MK
85092003-04-13 Mark Kettenis <kettenis@gnu.org>
8510
8511 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8512
bd013d54
AC
85132003-04-12 Andrew Cagney <cagney@redhat.com>
8514
8515 * frame.h (struct frame_info): Move definition from here ...
8516 * frame.c (struct frame_info): ... to here.
8517
167ef8b1
AC
85182003-04-12 Andrew Cagney <cagney@redhat.com>
8519
8520 * gdbthread.h (save_infrun_state): Delete parameter
8521 "prev_func_start".
8522 (struct thread_info): Delete field "prev_func_start".
8523 (load_infrun_state): Ditto.
8524 * thread.c (load_infrun_state, save_infrun_state): Update.
8525 * infrun.c (prev_func_start): Delete variable.
8526 (context_switch, init_wait_for_inferior): Update.
8527 (stop_stepping, keep_going): Update.
8528
da3331ec
AC
85292003-04-12 Andrew Cagney <cagney@redhat.com>
8530
8531 * gdbarch.sh: Add missing opaque declarations.
8532 * gdbarch.h: Regnerate.
8533 * symtab.h: Add missing opaque declarations.
8534 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8535 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8536 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8537 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8538 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8539 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8540 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8541 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8542 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8543 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8544 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8545 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8546 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8547
18adea3f
AC
85482003-04-11 Andrew Cagney <cagney@redhat.com>
8549
8550 * frame.c (get_frame_id): Return this frame's "id".
8551 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8552 function start.
8553 (legacy_saved_regs_this_id): Replace function body with
8554 internal-error.
8555 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8556 FRAME_OBSTACK_ZALLOC.
8557 (create_new_frame): Mark the frame ID as valid.
8558
2252e863
AO
85592003-04-11 Alexandre Oliva <aoliva@redhat.com>
8560
8561 * Makefile.in (libbfd_h): Added missing setting.
8562 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8563 according to the selected ABI.
8564
a8245ab8
JJ
85652003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8566
8567 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8568
6913c89a
AC
85692003-04-11 Andrew Cagney <cagney@redhat.com>
8570
8571 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8572 SAVED_PC_AFTER_CALL.
8573 * gdbarch.h, gdbarch.c: Regenerate.
8574 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8575 * x86-64-tdep.c (x86_64_init_abi): Update.
8576 * vax-tdep.c (vax_gdbarch_init): Update.
8577 * v850-tdep.c (v850_gdbarch_init): Update.
8578 * sparc-tdep.c (sparc_gdbarch_init): Update.
8579 * sh-tdep.c (sh_gdbarch_init): Update.
8580 * s390-tdep.c (s390_gdbarch_init): Update.
8581 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8582 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8583 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8584 * mips-tdep.c (mips_gdbarch_init): Update.
8585 * mcore-tdep.c (mcore_gdbarch_init): Update.
8586 * m68k-tdep.c (m68k_gdbarch_init): Update.
8587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8588 * ia64-tdep.c (ia64_gdbarch_init): Update.
8589 (ia64_saved_pc_after_call): Update declaration.
8590 * i386ly-tdep.c (i386lynx_init_abi): Update.
8591 * i386-tdep.c (i386_gdbarch_init): Update.
8592 * hppa-tdep.c (hppa_gdbarch_init): Update.
8593 * h8300-tdep.c (h8300_gdbarch_init): Update.
8594 * frv-tdep.c (frv_gdbarch_init): Update.
8595 * cris-tdep.c (cris_gdbarch_init): Update.
8596 * avr-tdep.c (avr_gdbarch_init): Update.
8597 * arm-tdep.c (arm_gdbarch_init): Update.
8598 * alpha-tdep.c (alpha_gdbarch_init): Update.
8599 * ns32knbsd-nat.c (frame_num_args): Update.
8600 * ns32k-tdep.c (umax_frame_num_args): Update.
8601 * mips-tdep.c (mips_init_frame_pc_first): Update.
8602 * infrun.c (step_over_function): Update.
8603 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8604 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8605 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8606 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8607 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8608 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8609 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8610 * arch-utils.c (init_frame_pc_default): Update.
8611 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8612 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8613 declaration.
8ffd9b1b 8614
38edeab8
AC
86152003-04-11 Andrew Cagney <cagney@redhat.com>
8616
8617 * i387-tdep.c: Update copyright.
8618 (i387_to_double): Delete function.
8619 (double_to_i387): Delete function.
8620
81f8a206
AC
86212003-04-10 Andrew Cagney <cagney@redhat.com>
8622
8623 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8624 frame's function's address. Simplify.
8625 (d10v_frame_unwind_cache): Check that the frame's function is
8626 non-zero.
8627
6e691f7a
JB
86282003-04-10 Jim Blandy <jimb@redhat.com>
8629
8630 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8631 call to set_gdbarch_deprecated_push_arguments.
8632
7f78e237
AC
86332003-04-10 Andrew Cagney <cagney@redhat.com>
8634
8635 * frame.c (fprint_frame_id): New function.
8636 (fprint_frame_type, fprint_frame): New function.
8637 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8638 (create_sentinel_frame, get_frame_id): Ditto.
8639 (frame_id_p, frame_id_eq): Ditto.
8640 (frame_id_inner, create_new_frame): Ditto.
8641 (legacy_get_prev_frame, get_prev_frame): Ditto.
8642 (deprecated_update_frame_pc_hack): Ditto.
8643 (frame_register_unwind): Ditto.
8644 (deprecated_update_frame_base_hack): Ditto.
8645
f870b49b
CV
86462003-04-10 Corinna Vinschen <vinschen@redhat.com>
8647
8648 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8649 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8650 frame_chain function.
8651 * Makefile.in: Add dependencies due to above change.
8652
7c86889b
CV
86532003-04-10 Corinna Vinschen <vinschen@redhat.com>
8654
8655 * blockframe.c (legacy_frame_chain_valid): Move call to
8656 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8657 inside_entry_file.
8658
d0a55772
AC
86592003-04-09 Andrew Cagney <cagney@redhat.com>
8660
8661 * frame.h (struct frame_id): Replace "pc" and "base" with
8662 "stack_addr" and "code_addr". Update comments.
8663 (frame_id_build): Update parameter names and comment.
8664 (struct frame_info): Replace "id_p" and "id" with "this_id".
8665 * dummy-frame.c (dummy_frame_this_id): Update.
8666 * breakpoint.c (print_one_breakpoint): Update.
8667 * frame.c (get_frame_id): Update.
8668 (get_frame_base, frame_id_build): Update.
8669 (create_sentinel_frame, legacy_get_prev_frame): Update.
8670 (deprecated_update_frame_base_hack): Update.
8671 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8672 (frame_id_inner): Ditto.
8673
ac16bf07
AC
86742003-04-09 Andrew Cagney <cagney@redhat.com>
8675
8676 * defs.h (gdb_print_host_address): Make "addr" parameter a
8677 pointer constant.
8678 * utils.c (gdb_print_host_address): Update.
8679
366cfc9e
KB
86802003-04-09 Kevin Buettner <kevinb@redhat.com>
8681
8682 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8683 register number for R0 is 0.
8684
cd983b5c
JB
86852003-04-09 J. Brobecker <brobecker@gnat.com>
8686
8687 * frame.h (struct gdbarch): Add opaque structure definition
8688 to avoid a compilation warning on LynxOS 4.0.
8689
d1340264
AC
86902003-04-09 Andrew Cagney <cagney@redhat.com>
8691
8692 * frame.h (struct frame_info): Delete field "pc". Replace
8693 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8694 structure.
8695 * frame.c (frame_pc_unwind): Update.
8696 (create_sentinel_frame): Do not set "pc".
8697 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8698 (get_frame_pc): Call frame_pc_unwind.
8699 (deprecated_update_frame_pc_hack): Update.
8700 (create_new_frame): Use "pc" not "->pc".
8701
90a6fffb
AC
87022003-04-09 Andrew Cagney <cagney@redhat.com>
8703
8704 * frame.c (get_frame_id): Eliminate code updating "frame".
8705 (legacy_get_prev_frame): Ditto.
8706 (get_frame_base): Return id.base directly.
8707 (deprecated_update_frame_base_hack): Update "id.base".
8708 * frame.h (struct frame_info): Delete field "frame".
8709
2fbce691
AC
87102003-04-09 Andrew Cagney <cagney@redhat.com>
8711
8712 * NEWS: Mention that the "Sequent family" is obsolete.
8713 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8714 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8715 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8716 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8717 * config/i386/tm-ptx4.h: Obsolete file.
8718 * config/i386/tm-ptx.h: Obsolete file.
8719 * symm-tdep.c: Obsolete file.
8720 * config/i386/symmetry.mt: Obsolete file.
8721 * config/i386/tm-symmetry.h: Obsolete file.
8722 * symm-nat.c: Obsolete file.
8723 * config/i386/nm-symmetry.h: Obsolete file.
8724 * config/i386/xm-symmetry.h: Obsolete file.
8725 * config/i386/symmetry.mh: Obsolete file.
8726 * config/i386/nm-ptx4.h: Obsolete file.
8727 * config/i386/ptx4.mh: Obsolete file.
8728 * config/i386/ptx.mt: Obsolete file.
8729 * config/i386/ptx.mh: Obsolete file.
8730 * config/i386/xm-ptx4.h: Obsolete file.
8731 * config/i386/xm-ptx.h: Obsolete file.
8732
78c43945
AC
87332003-04-09 Andrew Cagney <cagney@redhat.com>
8734
8735 Obsolete mips*-*-mach3*.
8736 * NEWS: Mention that mips*-*-mach3* is obsolete.
8737 * m3-nat.c: Obsolete file.
8738 * config/nm-m3.h: Obsolete file.
8739 * config/mips/tm-mipsm3.h: Obsolete file.
8740 * config/mips/mipsm3.mt: Obsolete file.
8741 * config/mips/mipsm3.mh: Obsolete file.
8742 * config/mips/xm-mipsm3.h: Obsolete file.
8743 * mipsm3-nat.c: Obsolete file.
8744 * configure.host: Obsolete mips-dec-mach3*.
8745 * configure.tgt: Obsolete mips*-*-mach3*.
8746
f1908289
AC
87472003-04-09 Andrew Cagney <cagney@redhat.com>
8748
8749 * doublest.h: Update copyright.
8750 (deprecated_store_floating, deprecated_extract_floating): Rename
8751 store_floating and extract_floating. Update comments.
8752 * doublest.c: Update copyright.
8753 (extract_floating_by_length): Replace extract_floating.
8754 (store_floating_by_length): Replace store_floating.
8755 (deprecated_extract_floating): New function.
8756 (deprecated_store_floating): New function.
8757 (extract_typed_floating): Call extract_floating_by_length.
8758 (store_typed_floating): Call store_floating_by_length.
8759 * x86-64-tdep.c (x86_64_store_return_value): Update.
8760 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8761 (sh64_extract_return_value): Update.
8762 (sh_sh4_register_convert_to_virtual): Update.
8763 (sh_sh64_register_convert_to_virtual): Update.
8764 (sh_sh4_register_convert_to_raw): Update.
8765 (sh_sh64_register_convert_to_raw): Update.
8766 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8767 (rs6000_register_convert_to_raw): Update.
8768 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8769 (ia64_register_convert_to_raw): Update.
8770 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8771 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8772 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8773 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8774 (alpha_register_convert_to_raw): Update.
8775
4443bd83
AC
87762003-04-08 Andrew Cagney <cagney@redhat.com>
8777
8778 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8779 * gdbarch.h, gdbarch.c: Re-generate.
8780 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8781 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8782 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8783 conditionally, use frame_pc_unwind as an alternative. Add
8784 comments.
8785 * arch-utils.c (init_frame_pc_default): Only call
8786 SAVED_PC_AFTER_CALL when available.
8787
c0236d92
EZ
87882003-04-08 Elena Zannoni <ezannoni@redhat.com>
8789
fbe586ae 8790 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8791 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8792 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8793 (start_remote): Ditto.
8794 (handle_inferior_event): Ditto.
8795 (save_inferior_status): Ditto.
8796 (restore_inferior_status): Ditto.
8797 * infcmd.c (attach_command): Ditto.
8798 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8799 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8800 * alpha-tdep.c (heuristic_proc_start): Ditto.
8801 * mips-tdep.c (heuristic_proc_start): Ditto.
8802 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8803 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8804 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8805 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8806 * remote-vx.c (vx_create_inferior): Ditto.
8807
88082003-04-08 Elena Zannoni <ezannoni@redhat.com>
8809
8810 * infrun.c (stop_soon_quietly): Make it an enum, to better
8811 override the default behavior of handle_inferior_event.
8812 (clear_proceed_status): Update uses of stop_soon_quietly to
8813 reflect that it is now an enum.
8814 (start_remote): Ditto.
8815 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8816 is set to handle the new GNU/Linux kernel behavior for
8817 attach/sigstop. Update uses of stop_soon_quietly.
8818 * inferior.h (enum stop_kind): New enum.
8819 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8820 Reset normal handle_inferior_event behavior, afterwards.
8821 * fork-child.c (startup_inferior): Update.
8822 * alpha-tdep.c (heuristic_proc_start): Update.
8823 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8824 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8825 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8826 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8827 * remote-vx.c (vx_create_inferior): Update.
8828 * mips-tdep.c (heuristic_proc_start): Update.
8829
1211bce3
EZ
88302003-04-07 Elena Zannoni <ezannoni@redhat.com>
8831
8832 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8833 be freed more than once, causing wild memory corruptions.
1211bce3 8834 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8835 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8836 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8837 with the "core" target.
1211bce3 8838
f0ef6b29
KB
88392003-04-07 Kevin Buettner <kevinb@redhat.com>
8840
8841 * mips-tdep.c (mips_print_fp_register): New function, created from
8842 do_fp_register_row(). Registers are now (also) printed as hex.
8843 Only one register is printed per row.
8844 (mips_print_register, do_fp_register_row): Print floating point
8845 registers with mips_print_fp_register().
8846
8cf71652
AC
88472003-04-06 Andrew Cagney <cagney@redhat.com>
8848
5e488a7b
AC
8849 * valprint.h (inspect_it): Add extern declaration.
8850 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8851 (selectors_info, classes_info): Ditto.
8852 (find_objc_msgcall): Fix indentation.
8853 (objc_printstr): Delete extern declarations.
8854
8cf71652
AC
8855 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8856
e6ba3bc9
AC
88572003-04-06 Andrew Cagney <cagney@redhat.com>
8858
8859 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8860 Update comment.
8861 * frame.c (legacy_saved_regs_this_id): Update.
8862 (legacy_get_prev_frame): Update.
8863 * xstormy16-tdep.c: Update comment.
8864 * sparc-tdep.c (sparc_frame_chain): Update comment.
8865 * blockframe.c (legacy_frame_chain_valid): Update.
8866
55e1d7e7
AC
88672003-04-06 Andrew Cagney <cagney@redhat.com>
8868
996179ee
AC
8869 * valprint.c (val_print_type_code_int): Delete #ifdef
8870 PRINT_TYPELESS_INTEGER code.
8871
55e1d7e7
AC
8872 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8873 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8874 multi-arch definition.
8875 * gdbarch.h: Re-generate.
8876
43bd9a9e
AC
88772003-04-05 Andrew Cagney <cagney@redhat.com>
8878
8879 Eliminate FRAME_FIND_SAVED_REGS.
8880 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8881 Change FSR parameter to a pointer.
8882 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8883 Assume FSR parameter is a pointer.
8884 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8885 Make fsr a pointer.
8886 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8887 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8888 saved_regs a pointer.
8889 (hppa_frame_saved_pc): Ditto.
8890 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8891 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8892 pointer.
8893 (restore_pc_queue): Make fsr a pointer.
8894 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8895 (hppa_frame_chain): Make saved_regs a pointer, call
8896 hppa_frame_init_saved_regs.
8897 * sparc-tdep.c: Include "gdb_assert.h".
8898 (sparc_frame_find_saved_regs): Replace internal_error with
8899 gdb_assert.
8900 * remote-vxsparc.c (vx_read_register): Delete reference to
8901 FRAME_FIND_SAVED_REGS.
8902 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8903 * gdbarch.h: Regenerate.
8904 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8905 (deprecated_get_frame_saved_regs): Delete declaration.
8906 (struct frame_saved_regs): Delete definition.
8907 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8908 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8909 (hppa_frame_find_saved_regs): Delete declaration.
8910 (FRAME_FIND_SAVED_REGS): Delete macro.
8911 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8912 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8913 FRAME_FIND_SAVED_REGS in comment.
8914
be41e9f4
AC
89152003-04-05 Andrew Cagney <cagney@redhat.com>
8916
8917 * frame.c (frame_func_unwind, get_frame_func): New functions.
8918 * frame.h (get_frame_func, frame_func_unwind): Declare.
8919 (struct frame_info): Add field "prev_func" for caching the
8920 previous frame's function address.
8921 * arm-tdep.c (arm_frameless_function_invocation): Combine
8922 get_pc_function_start and get_frame_pc into get_frame_func.
8923 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8924 (sh64_nofp_frame_init_saved_regs): Ditto.
8925 * s390-tdep.c (s390_function_start): Ditto.
8926 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8927 (rs6000_frameless_function_invocation): Ditto.
8928 (rs6000_frame_saved_pc): Ditto.
8929 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8930 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8931 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8932 (i386_frame_init_saved_regs): Ditto.
8933 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8934 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8935 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8936 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8937 * blockframe.c (frameless_look_for_prologue): Ditto.
8938
a01dd7cc
AC
89392003-04-05 Andrew Cagney <cagney@redhat.com>
8940
8941 * frame.c (legacy_get_prev_frame): Link prev to next at the
8942 function start. Update comments.
8943
5e5592e6
AC
89442003-04-05 Andrew Cagney <cagney@redhat.com>
8945
8946 * frame.c (get_frame_id): Update comment.
8947 (legacy_get_prev_frame): Update comment.
8948 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8949 * gdbarch.h: Regenerate.
8950 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8951 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8952
6fba5002
AC
89532003-04-05 Andrew Cagney <cagney@redhat.com>
8954
8955 * stack.c (print_frame_info): Use get_frame_pc.
8956
7df05f2b
AC
89572003-04-04 Andrew Cagney <cagney@redhat.com>
8958
8959 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8960 the frame's type from the unwinder.
8961 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8962 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8963 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8964 (get_frame_base_address): Use get_frame_type.
8965 (get_frame_locals_address, get_frame_args_address): Ditto.
8966 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8967 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8968 (struct frame_info): Add comment explaining why the frame contains
8969 a "type" field.
8970 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8971 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8972 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8973 NORMAL_FRAME.
8974 * frame-unwind.h: Include "frame.h".
8975 (struct frame_unwind): Add "type" field.
8976 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8977
11889732
AC
89782003-04-04 Andrew Cagney <cagney@redhat.com>
8979
8980 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8981 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8982 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8983 get_frame_base.
8984 (d10v_unwind_dummy_id): Use frame_id_build.
8985 * frame.c (find_frame_sal): Use get_frame_pc.
8986 (create_new_frame): Use deprecated_update_frame_pc_hack and
8987 deprecated_update_frame_base_hack.
8988 (create_sentinel_frame): Add comment about ->pc going away.
8989 (get_prev_frame): Add comment about ->pc going away.
8990 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8991 frame_id_build, deprecated_update_frame_pc_hack and
8992 deprecated_update_frame_base_hack.
8993 (select_frame): Use get_frame_pc.
8994 (legacy_saved_regs_this_id): Use frame_id_build.
8995
50c46a0d
EZ
89962003-04-04 Elena Zannoni <ezannoni@redhat.com>
8997
fbe586ae
RH
8998 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8999 signed integer case.
9000 (classify_argument): Handle enumerations and references.
50c46a0d 9001
50bbdbd9
AC
90022003-04-04 Andrew Cagney <cagney@redhat.com>
9003
9004 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9005 ID to NULL.
9006
36018d2e
AF
90072003-04-01 Adam Fedor <fedor@gnu.org>
9008
9009 * gdb/objc-lang.c (selectors_info): Replace calls to
9010 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9011 SYMBOL_NATURAL_NAME.
9012 (classes_info, find_methods): Likewise.
9013
35cec841
KB
90142003-04-03 Kevin Buettner <kevinb@redhat.com>
9015
9016 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9017 ``mach'' to the value determined by bfd_default_set_arch_mach().
9018
43136899
BR
90192003-04-02 Bob Rossi <bob_rossi@cox.net>
9020
9021 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9022 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9023 (mi-cmd-file.o): Update dependencies.
9024
040b99fd
KB
90252003-04-01 Kevin Buettner <kevinb@redhat.com>
9026
9027 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9028 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9029
9a3d7dfd
AF
90302003-04-01 Adam Fedor <fedor@gnu.org>
9031
9032 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9033 * language.h (struct language_defn): Add la_demangle.
9034 (language_demangle): Declare.
9035 * language.c (language_demangle): New function.
9036 (unk_lang_demangle): Likewise.
9037 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9038 Add ukn_lang_demangle.
9a3d7dfd 9039 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9040 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9041 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9042 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9043 * jv-lang.c (java_demangle): New function
9044 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9045 * objc-lang.c (objc_demangle): Add options argument
9046 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9047 * maint.c (maintenance_demangle): Replace switch with
9048 call to language_demangle.
9049 * utils.c (fprintf_symbol_filtered): Likewise.
9050
5e074003
AC
90512003-04-01 Andrew Cagney <cagney@redhat.com>
9052
9053 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9054 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9055 PRINT_TYPELESS_INTEGER.
9056 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9057 PUSH_RETURN_ADDRESS.
9058
270cb5d6
AC
90592003-04-01 Andrew Cagney <cagney@redhat.com>
9060
9061 * Makefile.in (d10v-tdep.o): Update dependencies.
9062 * d10v-tdep.c: Include "frame-base.h".
9063 (d10v_frame_unwind): Make constant.
9064 (d10v_frame_base_address): New function.
9065 (d10v_frame_base): New variable.
9066 (d10v_gdbarch_init): Set frame_base default.
9067 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9068 comment for base.
9069 (d10v_frame_unwind_cache): Set and use "prev_sp".
9070 (d10v_frame_this_id): Use the previous frame's inner most stack
9071 address and this frame's func address for the frame ID. Use
9072 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9073
6bfb3e36
AC
90742003-04-01 Andrew Cagney <cagney@redhat.com>
9075
9076 * frame.h (get_frame_locals_address, get_frame_args_address):
9077 Refer to the base address, instead of the address of the first
9078 local or parameter.
8ffd9b1b 9079
da62e633
AC
90802003-04-01 Andrew Cagney <cagney@redhat.com>
9081
9082 Add frame debug info addresses:
9083 * frame-base.c: New file.
9084 * frame-base.h: New file.
9085 * frame.h (struct frame_base): Add opaque declaration.
9086 (get_frame_base): Update comment.
9087 (get_frame_base_address): Declare.
9088 (get_frame_locals_address): Declare.
9089 (get_frame_args_address): Declare.
9090 (struct frame_info): Add "base" and "base_cache". Update
9091 comments on the unwinder.
9092 * frame.c: Include "frame-base.h".
9093 (get_frame_locals_address): New function.
9094 (get_frame_base_address): New function.
9095 (get_frame_args_address): New function.
9096 * findvar.c (read_var_value): Use get_frame_locals_address and
9097 get_frame_args_address.
9098 * stack.c (frame_info): Use get_frame_locals_address and
9099 get_frame_args_address.
9100 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9101 moved to "frame-base.c".
9102 * printcmd.c (print_frame_nameless_args): Ditto.
9103 * symtab.h (address_class): Update comments.
9104 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9105 get_frame_base_address.
9106 * dwarf2expr.c (execute_stack_op): Ditto.
9107 * Makefile.in (frame_base_h): Define.
9108 (frame.o): Update dependencies.
9109 (frame-base.o): Add dependencies.
9110 (SFILES): Add frame-base.c.
9111 (COMMON_OBS): Add frame-base.o.
9112
3d30e9c2
AC
91132003-04-01 Andrew Cagney <cagney@redhat.com>
9114
9115 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9116 CALL_DUMMY_LENGTH): Ditto.
9117 * gdbarch.c: Re-generate.
9118 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9119 (CALL_DUMMY_LENGTH): Delete macro.
9120 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9121 * arm-tdep.c (arm_gdbarch_init): Ditto.
9122 * avr-tdep.c (avr_gdbarch_init): Ditto.
9123 * cris-tdep.c (cris_gdbarch_init): Ditto.
9124 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9125 * frv-tdep.c (frv_gdbarch_init): Ditto.
9126 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9127 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9128 * i386-tdep.c (i386_gdbarch_init): Ditto.
9129 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9131 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9132 * mips-tdep.c (mips_gdbarch_init): Ditto.
9133 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9135 * s390-tdep.c (s390_gdbarch_init): Ditto.
9136 * sh-tdep.c (sh_gdbarch_init): Ditto.
9137 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9138 * v850-tdep.c (v850_gdbarch_init): Ditto.
9139 * vax-tdep.c (vax_gdbarch_init): Ditto.
9140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9141
ce0c7262
CV
91422003-04-01 Corinna Vinschen <vinschen@redhat.com>
9143
9144 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9145
73dd234f
AC
91462003-04-01 Andrew Cagney <cagney@redhat.com>
9147
9148 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9149 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9150 * gdbarch.h, gdbarch.c: Re-generate.
9151 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9152 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9153 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9154 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9155 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9156 * infcmd.c (run_stack_dummy): Simplify assuming
9157 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9158 * infrun.c (handle_inferior_event): Ditto.
9159 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9160 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9161 * arm-tdep.c (arm_gdbarch_init): Ditto.
9162 * avr-tdep.c (avr_gdbarch_init): Ditto.
9163 * cris-tdep.c (cris_gdbarch_init): Ditto.
9164 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9165 * frv-tdep.c (frv_gdbarch_init): Ditto.
9166 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9167 * i386-tdep.c (i386_gdbarch_init): Ditto.
9168 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9170 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9171 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9172 * mips-tdep.c (mips_gdbarch_init): Ditto.
9173 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9174 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9175 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9176 * s390-tdep.c (s390_gdbarch_init): Ditto.
9177 * sh-tdep.c (sh_gdbarch_init): Ditto.
9178 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9179 * v850-tdep.c (v850_gdbarch_init): Ditto.
9180 * vax-tdep.c (vax_gdbarch_init): Ditto.
9181 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9182
97606a13
DJ
91832003-04-01 Daniel Jacobowitz <drow@mvista.com>
9184
9185 * symfile.c (symfile_relocate_debug_section): Update call to
9186 bfd_simple_get_relocated_section_contents.
9187
e8ab51f7
AC
91882003-03-31 Andrew Cagney <cagney@redhat.com>
9189
9190 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9191 * gdbarch.h, gdbarch.c: Regenerate.
9192 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9193 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9194 available.
9195 * frame.h (generic_fix_call_dummy): Delete declaration.
9196 * dummy-frame.h: Update comment.
9197 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9199 fix_call_dummy.
9200 * sh-tdep.c (sh_gdbarch_init): Ditto.
9201 * s390-tdep.c (s390_gdbarch_init): Ditto.
9202 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9203 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9205 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9206 * i386-tdep.c (i386_gdbarch_init): Ditto.
9207 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9208 * frv-tdep.c (frv_gdbarch_init): Ditto.
9209 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9210 * cris-tdep.c (cris_gdbarch_init): Ditto.
9211 * avr-tdep.c (avr_gdbarch_init): Ditto.
9212 * arm-tdep.c (arm_gdbarch_init): Ditto.
9213
018d1b48
JB
92142003-03-31 J. Brobecker <brobecker@gnat.com>
9215
9216 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9217 (INIT_FRAME_AP): Likewise.
9218 (EXTRA_FRAME_INFO): Likewise.
9219
e9a2674e
AC
92202003-03-31 Andrew Cagney <cagney@redhat.com>
9221
9222 * gdbarch.sh: Include "symfile.h".
9223 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9224 * gdbarch.h, gdbarch.c: Re-generate.
9225 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9227 call_dummy_address, the default is at entry_point_address.
9228 * v850-tdep.c (v850_gdbarch_init): Ditto.
9229 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9230 * sh-tdep.c (sh_gdbarch_init): Ditto.
9231 * s390-tdep.c (s390_gdbarch_init): Ditto.
9232 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9233 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9234 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9235 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9236 * i386-tdep.c (i386_gdbarch_init): Ditto.
9237 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9238 * frv-tdep.c (frv_gdbarch_init): Ditto.
9239 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9240 * cris-tdep.c (cris_gdbarch_init): Ditto.
9241 * arm-tdep.c (arm_gdbarch_init): Ditto.
9242
e8a8712a
AC
92432003-03-31 Andrew Cagney <cagney@redhat.com>
9244
9245 * gdbarch.sh (CALL_DUMMY_P): Delete.
9246 * gdbarch.h, gdbarch.c: Re-generate.
9247 * inferior.h (CALL_DUMMY_P): Delete macro.
9248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9249 * vax-tdep.c (vax_gdbarch_init): Update.
9250 * v850-tdep.c (v850_gdbarch_init): Update.
9251 * sparc-tdep.c (sparc_gdbarch_init): Update.
9252 * sh-tdep.c (sh_gdbarch_init): Update.
9253 * s390-tdep.c (s390_gdbarch_init): Update.
9254 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9255 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9256 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9257 * mips-tdep.c (mips_gdbarch_init): Update.
9258 * mcore-tdep.c (mcore_gdbarch_init): Update.
9259 * m68k-tdep.c (m68k_gdbarch_init): Update.
9260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9261 * ia64-tdep.c (ia64_gdbarch_init): Update.
9262 * i386-tdep.c (i386_gdbarch_init): Update.
9263 * h8300-tdep.c (h8300_gdbarch_init): Update.
9264 * frv-tdep.c (frv_gdbarch_init): Update.
9265 * d10v-tdep.c (d10v_gdbarch_init): Update.
9266 * cris-tdep.c (cris_gdbarch_init): Update.
9267 * breakpoint.c (deprecated_frame_in_dummy): Update.
9268 * avr-tdep.c (avr_gdbarch_init): Update.
9269 * alpha-tdep.c (alpha_gdbarch_init): Update.
9270 * arm-tdep.c (arm_gdbarch_init): Update.
9271 * dummy-frame.c (dummy_frame_this_id): Update comments.
9272 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9273 * frame.c (legacy_get_prev_frame): Ditto.
9274 * valops.c (call_function_by_hand): Delete function.
9275 (hand_function_call): Rename to call_function_by_hand
9276
ed234cf8
AC
92772003-03-30 Andrew Cagney <cagney@redhat.com>
9278
9279 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9280 * value.h (struct value): Update comment.
ed234cf8 9281
06c77151
AC
92822003-03-30 Andrew Cagney <cagney@redhat.com>
9283
6c2b5168
AC
9284 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9285 D10V_FP_REGNUM.
9286 (d10v_gdbarch_init): Do not set fp_regnum.
9287
06c77151
AC
9288 * frame.c (get_frame_base): Force ID initialization.
9289 (get_prev_frame): Move computation of the frame ID from here ...
9290 (get_frame_id): ... to here.
9291 (legacy_get_prev_frame): Mark the frame ID as valid.
9292 * frame.h (struct frame_info): Add field "id_p".
9293
97a1a11c
MK
92942003-03-30 Mark Kettenis <kettenis@gnu.org>
9295
9296 * i386-tdep.c (i386_store_struct_return): Removed.
9297 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9298
6c0e89ed
AC
92992003-03-30 Andrew Cagney <cagney@redhat.com>
9300
9301 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9302 * gdbarch.h, gdbarch.c: Regenerate.
9303 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9305 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9306 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9307 * i386-tdep.c (i386_gdbarch_init): Ditto.
9308 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9309 * cris-tdep.c (cris_gdbarch_init): Ditto.
9310 * vax-tdep.c (vax_gdbarch_init): Ditto.
9311 * s390-tdep.c (s390_gdbarch_init): Ditto.
9312 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9313 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9314 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9315 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9316 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9317 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9318 * sparc-tdep.c (sparc_gdbarch_init): Update.
9319 * sh-tdep.c (sh_gdbarch_init): Update.
9320 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9321 * mips-tdep.c (mips_gdbarch_init): Update.
9322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9323 * ia64-tdep.c (ia64_gdbarch_init): Update.
9324 * frv-tdep.c (frv_gdbarch_init): Update.
9325 * avr-tdep.c (avr_gdbarch_init): Update.
9326 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9327 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9328 instead of when push_dummy_call is not available.
8ffd9b1b 9329
f7dd6af2
AC
93302003-03-30 Andrew Cagney <cagney@redhat.com>
9331
9332 * infttrace.c: Include "gdbthread.h".
9333 (parent_attach_all): Fix function signature.
9334 (call_ptrace): Update call.
9335 * Makefile.in (infttrace.o): Update dependencies.
9336
28f617b3
AC
93372003-03-30 Andrew Cagney <cagney@redhat.com>
9338
9339 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9340 PUSH_RETURN_ADDRESS.
9341 * gdbarch.h, gdbarch.c: Regenerate.
9342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9343 * x86-64-tdep.c (x86_64_init_abi): Update.
9344 * v850-tdep.c (v850_gdbarch_init): Update.
9345 * sparc-tdep.c (sparc_gdbarch_init): Update.
9346 * sh-tdep.c (sh_gdbarch_init): Update.
9347 * s390-tdep.c (s390_gdbarch_init): Update.
9348 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9349 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9350 * mips-tdep.c (mips_gdbarch_init): Update.
9351 * mcore-tdep.c (mcore_gdbarch_init): Update.
9352 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9353 * ia64-tdep.c (ia64_gdbarch_init): Update.
9354 * i386-tdep.c (i386_gdbarch_init): Update.
9355 * h8300-tdep.c (h8300_gdbarch_init): Update.
9356 * frv-tdep.c (frv_gdbarch_init): Update.
9357 * cris-tdep.c (cris_gdbarch_init): Update.
9358 * avr-tdep.c (avr_gdbarch_init): Update.
9359 * arm-tdep.c (arm_gdbarch_init): Update.
9360 * valops.c (hand_function_call): Update.
9361
4d628cd7
AC
93622003-03-29 Andrew Cagney <cagney@redhat.com>
9363
9364 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9365 sizeof_call_dummy_words.
9366 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9367 define.
9368 * gdbarch.h: Regenerate.
8ffd9b1b 9369
65e82032
AC
93702003-03-29 Andrew Cagney <cagney@redhat.com>
9371
9372 * infttrace.h: New file.
9373 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9374 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9375 (hpread_read_doc_function_type): Detect an initialized type1.
9376 (hpread_quick_traverse): Initialize mod_name_string.
9377 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9378 (som_solib_get_solib_by_pc): Declare.
9379 (so_lib_thread_start_addr): Declare.
9380 (no_shared_libraries): Declare.
9381 * somread.c (init_import_symbols): Make static. Add forward
9382 declaration.
9383 * config/pa/nm-hppah.h: Include "infttrace.h" for
9384 parent_attach_all.
9385 (hppa_insert_hw_watchpoint): Declare.
9386 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9387 * hppah-nat.c: Include "gdb_string.h".
9388 (parent_attach_all): Delete extern declaration, moved to
9389 "infttrace.h".
9390 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9391 int.
9392 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9393 * Makefile.in (infttrace_h): Define.
9394 (hpread.o): Update dependencies.
9395 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9396 * hppa-hpux-tdep.c: Include "gdb_string.h".
9397 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9398 * infrun.c (handle_inferior_event): Always initialize
9399 stepped_after_stopped_by_watchpoint. Add default and remove
9400 fallthrough in switch statement.
9401 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9402 parameter to int.
9403 (hppa_remove_hw_watchpoint): Ditto.
9404
2c3bbe77
AC
94052003-03-29 Andrew Cagney <cagney@redhat.com>
9406
9407 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9408 offset.
9409
2dd604e7
RE
94102003-03-29 Richard Earnshaw <rearnsha@arm.com>
9411
9412 * arm-tdep.c (arm_push_arguments): Delete.
9413 (struct stack_item): New type.
9414 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9415 (arm_store_struct_return): Delte.
9416 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9417 arm_push_arguments or arm_store_struct_return.
9418
e8933a55
AC
94192003-03-28 Andrew Cagney <cagney@redhat.com>
9420
9421 * Makefile.in (d10v-tdep.o): Update dependencies.
9422 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9423 * d10v-tdep.c: Include "remote.h".
9424 (target_resume_hook): Delete extern declaration.
9425 (target_wait_loop_hook): Ditto.
9426 (tdisassemble_command): Eliminate assignment in "if" conditional.
9427 (d10v_ts2_register_sim_regno): Eliminate call to
9428 legacy_register_sim_regno.
9429 (d10v_ts3_register_sim_regno): Ditto.
9430
6949171e
JJ
94312003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9432
9433 * thread.c: Reindented.
9434 * lin-lwp.c: Ditto.
9435 * linux-proc.c: Ditto.
9436
98c7071f
BR
94372003-03-28 Bob Rossi <bob_rossi@cox.net>
9438
fbe586ae 9439 * MAINTAINERS (write after approval): Add myself.
98c7071f 9440
5edc9ca6
TR
94412003-03-27 Theodore A. Roth <troth@openavr.org>
9442
9443 * objc-exp.y: Add missing semi-colons.
9444
378bfd1b
AC
94452003-03-27 Andrew Cagney <cagney@redhat.com>
9446
9447 * regcache.c (write_sp): Delete function and references.
9448 * inferior.h (write_sp): Delete declaration.
9449 * valops.c (hand_function_call): Replace write_sp with
9450 TARGET_WRITE_SP.
9451 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9452 (sparc_pop_frame): Ditto.
8ffd9b1b 9453
56056df7
AC
94542003-03-27 Andrew Cagney <cagney@redhat.com>
9455
9456 * NEWS: Mention removal of support for hppa*-*-bsd* and
9457 hppa*-*-osf* natives, and hppa*-*-pro* target.
9458 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9459 * config/pa/xm-pa.h: Obsolete file.
9460 * config/pa/xm-hppab.h: Obsolete file.
9461 * config/pa/nm-hppab.h: Obsolete file.
9462 * config/pa/tm-hppab.h: Obsolete file.
9463 * config/pa/tm-hppao.h: Obsolete file.
9464 * config/pa/nm-hppao.h: Obsolete file.
9465 * config/pa/tm-pro.h: Obsolete file.
9466 * config/pa/hppaosf.mt: Obsolete file.
9467 * config/pa/hppaosf.mh: Obsolete file.
9468 * config/pa/hppapro.mt: Obsolete file.
9469 * config/pa/hppabsd.mt: Obsolete file.
9470 * config/pa/hppabsd.mh: Obsolete file.
9471 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9472 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9473 hppa*-*-osf*.
9474
5873a88d
AC
94752003-03-27 Andrew Cagney <cagney@redhat.com>
9476
9477 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9478 push_arguments. Don't set push_return_address or write_sp.
9479 (d10v_push_dummy_call): Replace d10v_push_arguments.
9480 (d10v_push_return_address, d10v_write_sp): Delete function,
9481 handled by push_dummy_call.
9482
b81774d8
AC
94832003-03-26 Andrew Cagney <cagney@redhat.com>
9484
9485 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9486 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9487 regcache and dummy_addr parameters.
9488 * gdbarch.h, gdbarch.c: Re-generate.
9489 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9490 available; assume it will handle stack alignment and return
9491 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9492 legacy_push_arguments.
9493 (legacy_push_arguments): Rename default_push_arguments.
9494 * value.h (legacy_push_arguments): Rename default_push_arguments.
9495 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9496 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9497 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9498 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9499 * config/i386/tm-symmetry.h: Update.
9500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9501 * x86-64-tdep.c (x86_64_init_abi): Update.
9502 * v850-tdep.c (v850_gdbarch_init): Update.
9503 * sparc-tdep.c (sparc_gdbarch_init): Update.
9504 * sh-tdep.c (sh_gdbarch_init): Update.
9505 * s390-tdep.c (s390_gdbarch_init): Update.
9506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9507 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9508 * mips-tdep.c (mips_gdbarch_init): Update.
9509 * mcore-tdep.c (mcore_gdbarch_init): Update.
9510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9511 * ia64-tdep.c (ia64_gdbarch_init): Update.
9512 * i386-tdep.c (i386_gdbarch_init): Update.
9513 * hppa-tdep.c (hppa_gdbarch_init): Update.
9514 * h8300-tdep.c (h8300_gdbarch_init): Update.
9515 * frv-tdep.c (frv_gdbarch_init): Update.
9516 * d10v-tdep.c (d10v_gdbarch_init): Update.
9517 * cris-tdep.c (cris_gdbarch_init): Update.
9518 * avr-tdep.c (avr_gdbarch_init): Update.
9519 * arm-tdep.c (arm_gdbarch_init): Update.
9520 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9521 * alpha-tdep.c (alpha_gdbarch_init): Update.
9522
f541410f
DJ
95232003-03-26 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * signals/signals.c (do_target_signal_to_host): Correct realtime
9526 signal range test.
9527
69f567ae
DJ
95282003-03-26 Daniel Jacobowitz <drow@mvista.com>
9529
9530 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9531 (struct sal_chain, map_catch_names): Remove.
9532 (catch_exception_command_1): Don't call
9533 handle_gnu_4_16_catch_command.
9534
d5d14a5a
DJ
95352003-03-26 Daniel Jacobowitz <drow@mvista.com>
9536
9537 From Mark Dettinger <dettinge@de.ibm.com>:
9538 * dwarf2cfi.c (read_2u): Increment pointer by two.
9539
bdd73e22
DJ
95402003-03-26 Daniel Jacobowitz <drow@mvista.com>
9541
9542 * signals/signals.c: Fix typos in last change.
9543
960cb555
DJ
95442003-03-26 Daniel Jacobowitz <drow@mvista.com>
9545
9546 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9547 not already defined. Use __SIGRTMIN if available.
9548 (target_signal_from_host): Remove SIGRTMIN block.
9549 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9550 the signal is within the realtime range.
9551
f636b87d
AF
95522003-03-25 Adam Fedor <fedor@gnu.org>
9553
9554 * Makefile.in (infrun.o): Add $(language_h)
9555 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9556 for language specific trampolines.
9557 * language.h (struct language_defn): Add skip_trampoline.
9558 (skip_language_trampoline): Declare.
9559 * language.c (unk_lang_trampoline, skip_language_trampoline):
9560 New functions.
9561 (unknown_language_defn, auto_language_defn, local_language_defn):
9562 Add ukn_lang_trampoline.
9563 * ada-lang.c (ada_language_defn): Add NULL for language
9564 specific skip_trampoline.
9565 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9566 scm-lang.c: Likewise.
9567 * objc-lang.c (objc_skip_trampoline): New function.
9568 (objc_language_defn): Add objc_skip_trampoline.
9569
28f617b3 95702003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9571
9572 * frame.c (get_prev_frame): Delay validating a frame's ID -
9573 non-NULL, didn't go backwards - until an attempt to unwind it to
9574 the previous frame.
9575
f933a9c5
AC
95762003-03-25 Andrew Cagney <cagney@redhat.com>
9577
9578 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9579 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9580 * gdbarch.h, gdbarch.c: Re-generate.
9581 * config/sparc/tm-sparc.h
9582 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9583 * sparc-tdep.c (sparc_gdbarch_init): Set
9584 deprecated_extra_stack_alignment_needed.
9585 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9587 extra_stack_alignment_needed.
9588 * v850-tdep.c (v850_gdbarch_init): Ditto.
9589 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9590 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9591 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9592 * cris-tdep.c (cris_gdbarch_init): Ditto.
9593 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9595
4183d812
AC
95962003-03-25 Andrew Cagney <cagney@redhat.com>
9597
9598 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9599 STORE_STRUCT_RETURN.
9600 * gdbarch.h, gdbarch.c: Regenerate.
9601 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9602 (d10v_push_arguments): Set the struct return register.
9603 (d10v_gdbarch_init): Update.
9604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9605 * x86-64-tdep.c (x86_64_init_abi): Update.
9606 * vax-tdep.c (vax_gdbarch_init): Update.
9607 * v850-tdep.c (v850_gdbarch_init): Update.
9608 * sparc-tdep.c (sparc_gdbarch_init): Update.
9609 * sh-tdep.c (sh_gdbarch_init): Update.
9610 * s390-tdep.c (s390_gdbarch_init): Update.
9611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9612 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9613 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9614 * mips-tdep.c (mips_gdbarch_init): Update.
9615 * mcore-tdep.c (mcore_gdbarch_init): Update.
9616 * m68k-tdep.c (m68k_gdbarch_init): Update.
9617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9618 * ia64-tdep.c (ia64_gdbarch_init): Update.
9619 * i386-tdep.c (i386_gdbarch_init): Update.
9620 * hppa-tdep.c (hppa_gdbarch_init): Update.
9621 * h8300-tdep.c (h8300_gdbarch_init): Update.
9622 * frv-tdep.c (frv_gdbarch_init): Update.
9623 * cris-tdep.c (cris_gdbarch_init): Update.
9624 * avr-tdep.c (avr_gdbarch_init): Update.
9625 * arm-tdep.c (arm_gdbarch_init): Update.
9626 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9627
1bf6d5cc
AC
96282003-03-25 Andrew Cagney <cagney@redhat.com>
9629
9630 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9631 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9632 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9633 * gdbarch.h, gdbarch.c: Regenerate.
9634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9635 call_dummy_stack_adjust_p.
9636 * vax-tdep.c (vax_gdbarch_init): Ditto.
9637 * v850-tdep.c (v850_gdbarch_init): Ditto.
9638 * sh-tdep.c (sh_gdbarch_init): Ditto.
9639 * s390-tdep.c (s390_gdbarch_init): Ditto.
9640 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9641 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9642 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9643 * mips-tdep.c (mips_gdbarch_init): Ditto.
9644 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9645 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9647 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9648 * i386-tdep.c (i386_gdbarch_init): Ditto.
9649 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9650 * frv-tdep.c (frv_gdbarch_init): Ditto.
9651 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9652 * cris-tdep.c (cris_gdbarch_init): Ditto.
9653 * avr-tdep.c (avr_gdbarch_init): Ditto.
9654 * arm-tdep.c (arm_gdbarch_init): Ditto.
9655 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9656 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9657 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9658 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9659 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9660 call_dummy_stack_adjust_p.
9661 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9662 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9663 * sparc-tdep.c (sparc32_push_arguments): Update.
9664 * valops.c (hand_function_call): Update.
9665
71c08af0
CV
96662003-03-25 Corinna Vinschen <vinschen@redhat.com>
9667
9668 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9669 set_gdbarch_char_signed.
9670
30757f90
RE
96712003-03-25 Richard Earnshaw <rearnsha@arm.com>
9672
9673 PR cli/548
9674 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9675
03d48a7d
RE
96762003-03-25 Richard Earnshaw <rearnsha@arm.com>
9677
9678 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9679 (_initialize_arm_tdep): Don't set tm_print_insn.
9680
2cf6873c
AF
96812003-03-24 Adam Fedor <fedor@gnu.org>
9682
9683 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9684 * objc-lang.h: Add multiple inclusion protection.
9685 (start_msglist, add_msglist, end_msglist): Additional declarations.
9686
17c0759e
RE
96872003-03-24 Richard Earnshaw <rearnsha@arm.com>
9688
9689 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9690 value was renamed to ARM_FLOAT_SOFT_FPA.
9691
618ce49f
AC
96922003-03-23 Andrew Cagney <cagney@redhat.com>
9693
9694 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9695 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9696 * gdbarch.h, gdbarch.c: Regenerate.
9697 * valops.c (hand_function_call): Update.
9698 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9699 * frame.c (legacy_saved_regs_this_id): Update.
9700 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9701 * dummy-frame.h: Update.
9702 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9703 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9704 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9705 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9706 * config/m68k/tm-sun3.h: Update.
9707 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9709 * x86-64-tdep.c (x86_64_init_abi): Update.
9710 * vax-tdep.c (vax_gdbarch_init): Update.
9711 * v850-tdep.c (v850_gdbarch_init): Update.
9712 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9713 * sh-tdep.c (sh_gdbarch_init): Update.
9714 * s390-tdep.c (s390_gdbarch_init): Update.
9715 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9716 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9717 (frame_get_saved_regs): Update.
9718 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9719 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9720 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9721 * mips-tdep.c (mips_gdbarch_init): Update.
9722 * mcore-tdep.c (mcore_gdbarch_init): Update.
9723 * m68k-tdep.c (m68k_gdbarch_init): Update.
9724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9725 * ia64-tdep.c (ia64_gdbarch_init): Update.
9726 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9727 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9728 (i386_interix_back_one_frame): Update.
9729 * hppa-tdep.c (hppa_gdbarch_init): Update.
9730 (hppa_init_extra_frame_info): Update.
9731 * h8300-tdep.c (h8300_gdbarch_init): Update.
9732 * frv-tdep.c (frv_gdbarch_init): Update.
9733 * cris-tdep.c (cris_gdbarch_init): Update.
9734 * avr-tdep.c (avr_gdbarch_init): Update.
9735 * arm-tdep.c (arm_gdbarch_init): Update.
9736 * alpha-tdep.c (alpha_gdbarch_init): Update.
9737
fd50bc42
RE
97382003-03-22 Richard Earnshaw <rearnsha@arm.com>
9739
9740 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9741 (arm_get_fp_model): Declare.
9742 * arm-tdep.c (fp_model_strings): New string array.
9743 (arm_fp_model, current_fp_model): New variables.
9744 (arm_get_fp_model): New function.
9745 (arm_set_fp): New function.
9746 (set_fp_model_sfunc): New function.
9747 (show_fp_model): New function.
9748 (_initialize_arm_tdep): Add new command to set/show the FPU.
9749 (arm_extract_return_value): Use arm_get_fp_model.
9750 (arm_store_return_value): Likewise.
9751 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9752 to initialize the floating-point data types.
9753 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9754 model is FPA.
9755
26304000
RE
97562003-03-22 Richard Earnshaw <rearnsha@arm.com>
9757
9758 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9759 the current setting of each value.
9760 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9761 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9762 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9763 commands and add new version as subcommands of "set/show arm".
9764
afd7eef0
RE
97652003-03-22 Richard Earnshaw <rearnsha@arm.com>
9766
9767 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9768 (set_arm_command, show_arm_command): New functions.
9769 (_initialize_arm_tdep): Add them.
9770 (num_disassembly_options): Renamed from num_flavor_options.
9771 (valid_disassembly_styles): Renamed from valid_flavors.
9772 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9773 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9774 set_disassembly_flavor_sfunc.
9775 (set_disassembly_style): Renamed from set_disassembly_flavor.
9776 (arm_othernames): Updated.
9777 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9778 command. Add "set/show arm disassembly" commands. Deprecate
9779 "othernames" command.
9780
299a7944
RE
97812003-03-22 Richard Earnshaw <rearnsha@arm.com>
9782
9783 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9784 (arm-tdep.o): Depend on elf_arm_h.
9785
c1dac9e6
RE
97862003-03-22 Richard Earnshaw <rearnsha@arm.com>
9787
9788 * Makefile.in (coff_internal_h): Define.
9789 (arm-tdep.o): Update dependencies.
9790
2702d96c
RE
97912003-03-22 Richard Earnshaw <rearnsha@arm.com>
9792
9793 * arm-tdep.c (prologue_cache): Delete.
9794 (check_prologue_cache, save_prologue_cache): Delete.
9795 (arm_scan_prologue): Don't check or update the prologue_cache.
9796 (arm_gdb_arch_init): Don't initialize it.
9797 (_initialize_arm_tdep): Likewise.
9798
27d5d74b
SC
97992003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9800
9801 * MAINTAINERS (tui): Maintainer of tui code.
9802
1762d96d
CV
98032003-03-21 Corinna Vinschen <vinschen@redhat.com>
9804
9805 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9806 (i386-cygwin-tdep.o): Add dependencies.
9807 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9808 * i386-cygwin-tdep.c: New file.
9809 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9810 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9811
4c2e2391
AC
98122003-03-20 Andrew Cagney <cagney@redhat.com>
9813
f20d38b7
AC
9814 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9815 (handle_inferior_event): Remove code calling
9816 DYNAMIC_TRAMPOLINE_NEXTPC.
9817
0022b738
AC
9818 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9819 already has a full path.
9820
864dbc90
AC
9821 * main.c (gdb_main): Return 1.
9822 (captured_main): Call error to report an invalid interpreter.
9823
4c2e2391
AC
9824 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9825 * alpha-osf1-tdep.c: Include "gdb_string.h".
9826
5ef7553b
JB
98272003-03-19 J. Brobecker <brobecker@gnat.com>
9828
9829 Continuing work to convert the hppa targets to multiarch partial.
9830
9831 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9832 method, now that hppa_push_dummy_frame has a conformant prototype.
9833 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9834 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9835 for the switch to multiarch partial.
9836
7bde8967
KB
98372003-03-19 Kevin Buettner <kevinb@redhat.com>
9838
9839 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9840 when iss is issNull.
9841
b006a9e9
KB
98422003-03-18 Kevin Buettner <kevinb@redhat.com>
9843
9844 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9845 NUM_REGS bounds check.
9846
5e2e9765
KB
98472003-03-18 Kevin Buettner <kevinb@redhat.com>
9848
9849 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9850 * mips-tdep.c (gdb_assert.h): Include.
9851 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9852 (mips_register_name): Handle integer registers explicitly. Add
9853 bounds checking.
9854 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9855 (mips_lsi33k_reg_names): Don't list integer registers; they're
9856 handled by mips_register_name() now.
9857 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9858 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9859 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9860 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9861 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9862
a2867626
AC
98632003-03-18 Andrew Cagney <cagney@redhat.com>
9864
9865 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9866 a void pointer.
9867 * gdbtypes.h (print_scalar_formatted): Update declaration.
9868 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9869
06600e06
JB
98702003-03-18 J. Brobecker <brobecker@gnat.com>
9871
9872 * infrun.c (observer.h): Add #include.
9873 (normal_stop): Add call to observer_notify_normal_stop.
9874 * Makefile.in (infrun.o): Add dependency on observer.h.
9875
7daf4f5b
JB
98762003-03-18 J. Brobecker <brobecker@gnat.com>
9877
9878 Continuing work to convert the hppa targets to multiarch partial.
9879 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9880 parameter. Reformat comment.
9881 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9882 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9883 to match new profile.
9884
3371ccc0
JB
98852003-03-18 J. Brobecker <brobecker@gnat.com>
9886
9887 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9888 appear to be working in any case.
9889
4fbe891e
JB
98902003-03-18 J. Brobecker <brobecker@gnat.com>
9891
9892 * observer.c (observer_test_first_observer): New static variable.
9893 (observer_test_second_observer): Likewise.
9894 (observer_test_third_observer): Likewise.
9895 (observer_test_first_notification_function): New static function.
9896 (observer_test_second_notification_function): Likewise.
9897 (observer_test_third_notification_function): Likewise.
9898
a7ff40e7
JB
98992003-03-17 J. Brobecker <brobecker@gnat.com>
9900
9901 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9902 * somsolib.c (gdb_assert.h): Likewise.
9903 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9904 (somsolib.o): Likewise.
9905
26ca4152
AC
99062003-03-17 Andrew Cagney <cagney@redhat.com>
9907
9908 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9909 BFD. Simplify setting of di.endian.
9910
0a613259
AC
99112003-03-17 Andrew Cagney <cagney@redhat.com>
9912
9913 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9914 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9915
9916 From Elena Zannoni <ezannoni@redhat.com>
9917 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9918 vector and floating-point parameters.
9919 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9920 convention.
9921 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9922
1132738f
FN
99232003-03-17 Fernando Nasser <fnasser@redhat.com>
9924
9925 * MAINTAINERS: Remove my name from several maintainership roles.
9926
6dc42492
AC
99272003-03-17 Andrew Cagney <cagney@redhat.com>
9928
9929 Fix frame off-by-one bug.
9930 * frame-unwind.h (frame_this_id_ftype): Replace
9931 frame_unwind_id_ftype.
9932 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9933 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9934 with "prev_register".
9935 * frame-unwind.c (frame_unwind_find_by_pc): Return
9936 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9937 comment.
9938 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9939 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9940 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9941 (dummy_frame_unwind): Update.
9942 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9943 sentinel_frame_register_unwind.
9944 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9945 (sentinel_frame_unwinder): Update.
9946 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9947 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9948 * frame.c (create_sentinel_frame): Update. Initialize
9949 "prologue_cache" instead of "unwind_cache".
9950 (frame_register_unwind): Call this frame's prev_register with the
9951 next frame and this frame's prologue cache.
9952 (get_prev_frame): Simplify. Always call prev frame's this_id with
9953 this frame and prev frame's prologue cache. Document that this
9954 call is shifted one to the left when compared to the
9955 frame_register_unwind call.
9956 (legacy_saved_regs_prev_register): Replace
9957 frame_saved_regs_register_unwind.
9958 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9959 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9960 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9961 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9962 (d10v_frame_unwind): Update.
9963 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9964 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9965 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9966 "saved_regs" with "this_saved_regs".
9967
efd710d6
AC
99682003-03-16 Andrew Cagney <cagney@redhat.com>
9969
9970 * frame.c (frame_pop): Don't call target_store_registers. Fix
9971 problem reported by Mark Kettenis.
9972
4e259f09
MK
99732003-03-16 Mark Kettenis <kettenis@gnu.org>
9974
9975 * i386-tdep.c (i386_register_type): Renamed from
9976 i386_register_virtual_type. Adjust function signature.
9977 (i386_gdbarch_init): Set register_type instead of
9978 deprecated_max_register_raw_size,
9979 deprecated_max_register_virtual_size and register_virtual_type.
9980
055bb976
AC
99812003-03-14 Andrew Cagney <cagney@redhat.com>
9982
9983 * frame.c (get_prev_frame): When a legacy frame, always call
9984 legacy_get_prev_frame. Simplify unwind code using assumption that
9985 the unwinder is new.
9986 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9987 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9988 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9989
ac2adee5
AC
99902003-03-14 Andrew Cagney <cagney@redhat.com>
9991
9992 * frame.c (get_saved_register): Delete function.
9993 * frame.h (get_saved_register): Delete declaration.
9994 * xstormy16-tdep.c: Update comment.
9995 * regcache.h: Update comments.
9996 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9997 get_saved_register and extract_address, use
9998 frame_read_unsigned_register.
9999 (sparc_frame_saved_pc): Ditto.
10000 (sparc_get_saved_register): Instead of get_saved_register, use
10001 frame_register.
10002 (sparc_pop_frame): Ditto.
10003 * findvar.c: Update comments.
10004 (value_of_register): Call frame_register instead of
10005 get_saved_register.
10006 (value_from_register): Ditto.
10007 * config/sparc/tm-sparc.h: Update comment.
10008 * breakpoint.c: Update comment.
10009
129c1cd6
AC
100102003-03-14 Andrew Cagney <cagney@redhat.com>
10011
10012 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10013 GET_SAVED_REGISTER.
10014 * gdbarch.h, gdbarch.c: Re-generate.
10015 * frame.h: Update comments.
10016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10017 * x86-64-tdep.c (x86_64_init_abi): Update.
10018 * sparc-tdep.c (sparc_gdbarch_init): Update.
10019 * sh-tdep.c (sh_gdbarch_init): Update.
10020 * mips-tdep.c (mips_gdbarch_init): Update.
10021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10022 * cris-tdep.c (cris_gdbarch_init): Update.
10023 * ia64-tdep.c (ia64_gdbarch_init): Update.
10024 * frame.c (frame_register): Update.
10025 (get_saved_register): Update.
10026 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10027
749b82f6
AC
100282003-03-13 Andrew Cagney <cagney@redhat.com>
10029
10030 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10031 * gdbarch.h, gdbarch.c: Regenerate.
10032 * valops.c (hand_function_call): Update comment.
10033 * stack.c (return_command): Update comment.
10034 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10035 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10037 * x86-64-tdep.c (x86_64_init_abi): Update.
10038 * vax-tdep.c (vax_gdbarch_init): Update.
10039 * v850-tdep.c (v850_gdbarch_init): Update.
10040 * sparc-tdep.c (sparc_gdbarch_init): Update.
10041 * sh-tdep.c (sh_gdbarch_init): Update.
10042 * s390-tdep.c (s390_gdbarch_init): Update.
10043 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10044 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10045 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10046 * mips-tdep.c (mips_gdbarch_init): Update.
10047 * mcore-tdep.c (mcore_gdbarch_init): Update.
10048 * m68k-tdep.c (m68k_gdbarch_init): Update.
10049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10050 * ia64-tdep.c (ia64_gdbarch_init): Update.
10051 * i386-tdep.c (i386_gdbarch_init): Update.
10052 * hppa-tdep.c (hppa_gdbarch_init): Update.
10053 * h8300-tdep.c (h8300_gdbarch_init): Update.
10054 * frv-tdep.c (frv_gdbarch_init): Update.
10055 * cris-tdep.c (cris_gdbarch_init): Update.
10056 * avr-tdep.c (avr_gdbarch_init): Update.
10057 * arm-tdep.c (arm_gdbarch_init): Update.
10058 * alpha-tdep.c (alpha_gdbarch_init): Update.
10059
1594fa56
AC
100602003-03-13 Andrew Cagney <cagney@redhat.com>
10061
10062 * frame.c (legacy_frame_p): New function.
10063 (get_prev_frame): Use legacy_frame_p.
10064 * frame.h (legacy_frame_p): Declare.
10065
7717fda3
V
100662003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10067
fbe586ae 10068 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10069 listing corrected.
10070
0c67cbe9
V
100712003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10072
fbe586ae 10073 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10074
03febf99
AC
100752003-03-12 Andrew Cagney <cagney@redhat.com>
10076
10077 * frame.c (get_prev_frame): Rename the frame parameter to
10078 "this_frame".
10079 (get_next_frame, legacy_get_prev_frame): Ditto.
10080
0a1e1ca1
AC
100812003-03-12 Andrew Cagney <cagney@redhat.com>
10082
10083 * frame.c (get_current_frame): Check target_has_registers before
10084 checking target_has_stack.
10085 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10086 instead of deprecated_selected_frame.
10087 * findvar.c (value_of_register): Pass "frame", not
10088 deprecated_selected_frame, to value_of_builtin_reg.
10089
a66a9c23
AC
100902003-03-12 Andrew Cagney <cagney@redhat.com>
10091
10092 * regcache.c (regcache_cooked_write_signed): New function.
10093 (regcache_cooked_write_unsigned): New function.
10094 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10095 (regcache_cooked_read_signed): Fix regnum in range assertion.
10096 * regcache.h (regcache_cooked_write_signed): Declare.
10097 (regcache_cooked_write_unsigned): Declare.
10098
8bedc050
AC
100992003-03-12 Andrew Cagney <cagney@redhat.com>
10100
10101 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10102 * gdbarch.h, gdbarch.c: Re-generate.
10103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10104 * x86-64-tdep.h: Update.
10105 * x86-64-tdep.c (x86_64_init_abi): Update.
10106 * v850-tdep.c (v850_gdbarch_init): Update.
10107 * sparc-tdep.c (sparc_gdbarch_init): Update.
10108 * sh-tdep.c (sh_gdbarch_init): Update.
10109 * s390-tdep.c (s390_gdbarch_init): Update.
10110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10111 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10112 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10113 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10114 * mips-tdep.c (mips_gdbarch_init): Update.
10115 * mcore-tdep.c (mcore_gdbarch_init): Update.
10116 * m68k-tdep.c (m68k_gdbarch_init): Update.
10117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10118 * ia64-tdep.c (ia64_gdbarch_init): Update.
10119 * i386-tdep.c (i386_gdbarch_init): Update.
10120 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10121 * hppa-tdep.c (hppa_gdbarch_init): Update.
10122 * h8300-tdep.c (h8300_gdbarch_init): Update.
10123 * frv-tdep.c (frv_gdbarch_init): Update.
10124 * cris-tdep.c (cris_gdbarch_init): Update.
10125 * avr-tdep.c (avr_gdbarch_init): Update.
10126 * arm-tdep.c (arm_gdbarch_init): Update.
10127 * alpha-tdep.c (alpha_gdbarch_init): Update.
10128 * sh-tdep.c (sh_init_extra_frame_info): Update.
10129 (sh64_init_extra_frame_info): Update.
10130 * ns32knbsd-nat.c (frame_num_args): Update.
10131 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10132 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10133 (xstormy16_frame_chain_valid): Update.
10134 * vax-tdep.c (vax_saved_pc_after_call): Update.
10135 * v850-tdep.c (v850_frame_chain): Update.
10136 (v850_pop_frame): Update.
10137 (v850_init_extra_frame_info): Update.
10138 * sparc-tdep.c (setup_arbitrary_frame): Update.
10139 * ns32k-tdep.c (umax_frame_num_args): Update.
10140 * s390-tdep.c (s390_pop_frame_regular): Update.
10141 * mn10300-tdep.c (mn10300_frame_chain): Update.
10142 (mn10300_pop_frame_regular): Update.
10143 (mn10300_init_extra_frame_info): Update.
10144 * mips-tdep.c (mips_init_frame_pc_first): Update.
10145 (mips_frame_chain): Update.
10146 (mips_pop_frame): Update.
10147 * mcore-tdep.c (mcore_frame_chain): Update.
10148 (mcore_pop_frame): Update.
10149 (mcore_init_extra_frame_info): Update.
10150 * arch-utils.c (init_frame_pc_default): Update.
10151 * m68k-tdep.c (isi_frame_num_args): Update.
10152 (delta68_frame_num_args): Update.
10153 (news_frame_num_args): Update.
10154 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10155 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10156 (alpha_frame_chain): Update.
10157 (alpha_pop_frame): Update.
10158 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10159 (hppa_init_extra_frame_info): Update.
10160 (hppa_frame_chain): Update.
10161 (hppa_frame_chain_valid): Update.
10162 * cris-tdep.c (cris_init_extra_frame_info): Update.
10163 * avr-tdep.c (avr_init_extra_frame_info): Update.
10164 * arm-tdep.c (arm_frame_chain_valid): Update.
10165 (arm_init_extra_frame_info): Update.
10166 (arm_pop_frame): Update.
10167 * frame.c (frame_pc_unwind): Update.
10168 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10169 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10170 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10171 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10172 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10173 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10174
7a25a7c1
AC
101752003-03-12 Andrew Cagney <cagney@redhat.com>
10176
10177 Eliminate the need for POP_FRAME.
10178 * frame.c (do_frame_unwind_register): New function.
10179 (frame_pop): When no POP_FRAME, pop the frame using register
10180 unwind and a scratch regcache.
10181 (frame_saved_regs_pop): Delete function.
10182 (trad_frame_unwinder): Update.
10183 * d10v-tdep.c (d10v_frame_pop): Delete function.
10184 (d10v_frame_unwind): Update.
10185 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10186 (sentinel_frame_unwinder): Update.
10187 * dummy-frame.c (dummy_frame_pop): Delete function.
10188 (dummy_frame_unwind): Update.
10189 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10190 (struct frame_unwind): Update.
10191
2f38ef89
KB
101922003-03-11 Kevin Buettner <kevinb@redhat.com>
10193
10194 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10195 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10196 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10197 Do range checks on register number obtained from debugging info.
10198 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10199 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10200 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10201 mapping function.
10202 (do_fp_register_row): Fix typo which caused double type to be
10203 used when attempting to unpack a float.
10204
552f4abf
JB
102052003-03-11 J. Brobecker <brobecker@gnat.com>
10206
10207 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10208
e0d2ae16
AC
102092003-03-11 Andrew Cagney <cagney@redhat.com>
10210
10211 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10212 frame. Problem found by Corinna Vinschen.
10213
ddbfdd06
PM
102142003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10215
10216 * doublest.c (floatformat_from_length): Accept also
10217 the real size of 'long double' type.
10218
088b2ddc 102192003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10220
088b2ddc 10221 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10222 * breakpoint.c (bpstat_copy): Copy the command lines as well
10223 as the old value, to match what is freed in bpstat_clear.
10224
f56f77c1
DC
102252003-03-10 David Carlton <carlton@math.stanford.edu>
10226
10227 * minsyms.c (add_minsym_to_hash_table): Replace
10228 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10229 (compare_minimal_symbols, compact_minimal_symbols)
10230 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10231 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10232 of DEPRECATED_SYMBOL_MATCHES_NAME.
10233 (lookup_minimal_symbol_solib_trampoline): Ditto.
10234
5602984a
AC
102352003-03-10 Andrew Cagney <cagney@redhat.com>
10236
10237 * regcache.h (regcache_cooked_read_ftype): Define.
10238 (regcache_save, regcache_restore): Add a cooked_read parameter.
10239 * regcache.c (regcache_save, regcache_restore): Update.
10240 (do_cooked_read): New function.
10241 (regcache_cpy): Pass do_cooked_read to regcache_save and
10242 regcache_restore.
10243
8bedc050
AC
102442003-03-10 Andrew Cagney <cagney@redhat.com>
10245
10246 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10247 * gdbarch.h, gdbarch.c: Re-generate.
10248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10249 * x86-64-tdep.h: Update.
10250 * x86-64-tdep.c (x86_64_init_abi): Update.
10251 * v850-tdep.c (v850_gdbarch_init): Update.
10252 * sparc-tdep.c (sparc_gdbarch_init): Update.
10253 * sh-tdep.c (sh_gdbarch_init): Update.
10254 * s390-tdep.c (s390_gdbarch_init): Update.
10255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10256 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10257 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10258 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10259 * mips-tdep.c (mips_gdbarch_init): Update.
10260 * mcore-tdep.c (mcore_gdbarch_init): Update.
10261 * m68k-tdep.c (m68k_gdbarch_init): Update.
10262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10263 * ia64-tdep.c (ia64_gdbarch_init): Update.
10264 * i386-tdep.c (i386_gdbarch_init): Update.
10265 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10266 * hppa-tdep.c (hppa_gdbarch_init): Update.
10267 * h8300-tdep.c (h8300_gdbarch_init): Update.
10268 * frv-tdep.c (frv_gdbarch_init): Update.
10269 * cris-tdep.c (cris_gdbarch_init): Update.
10270 * avr-tdep.c (avr_gdbarch_init): Update.
10271 * arm-tdep.c (arm_gdbarch_init): Update.
10272 * alpha-tdep.c (alpha_gdbarch_init): Update.
10273 * sh-tdep.c (sh_init_extra_frame_info): Update.
10274 (sh64_init_extra_frame_info): Update.
10275 * ns32knbsd-nat.c (frame_num_args): Update.
10276 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10277 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10278 (xstormy16_frame_chain_valid): Update.
10279 * vax-tdep.c (vax_saved_pc_after_call): Update.
10280 * v850-tdep.c (v850_frame_chain): Update.
10281 (v850_pop_frame): Update.
10282 (v850_init_extra_frame_info): Update.
10283 * sparc-tdep.c (setup_arbitrary_frame): Update.
10284 * ns32k-tdep.c (umax_frame_num_args): Update.
10285 * s390-tdep.c (s390_pop_frame_regular): Update.
10286 * mn10300-tdep.c (mn10300_frame_chain): Update.
10287 (mn10300_pop_frame_regular): Update.
10288 (mn10300_init_extra_frame_info): Update.
10289 * mips-tdep.c (mips_init_frame_pc_first): Update.
10290 (mips_frame_chain): Update.
10291 (mips_pop_frame): Update.
10292 * mcore-tdep.c (mcore_frame_chain): Update.
10293 (mcore_pop_frame): Update.
10294 (mcore_init_extra_frame_info): Update.
10295 * arch-utils.c (init_frame_pc_default): Update.
10296 * m68k-tdep.c (isi_frame_num_args): Update.
10297 (delta68_frame_num_args): Update.
10298 (news_frame_num_args): Update.
10299 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10300 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10301 (alpha_frame_chain): Update.
10302 (alpha_pop_frame): Update.
10303 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10304 (hppa_init_extra_frame_info): Update.
10305 (hppa_frame_chain): Update.
10306 (hppa_frame_chain_valid): Update.
10307 * cris-tdep.c (cris_init_extra_frame_info): Update.
10308 * avr-tdep.c (avr_init_extra_frame_info): Update.
10309 * arm-tdep.c (arm_frame_chain_valid): Update.
10310 (arm_init_extra_frame_info): Update.
10311 (arm_pop_frame): Update.
10312 * frame.c (frame_pc_unwind): Update.
10313 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10314 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10315 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10316 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10317 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10318 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10319
12cc2063
AC
103202003-03-10 Andrew Cagney <cagney@redhat.com>
10321
10322 * gdbarch.sh (gdbarch_unwind_pc): New method.
10323 * gdbarch.h, gdbarch.c: Regenerate.
10324 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10325 but use read_pc and FRAME_SAVED_PC as fall backs.
10326 (frame_saved_regs_pc_unwind): Delete function.
10327 (trad_frame_unwinder): Update.
10328 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10329 (struct frame_unwind): Update.
10330 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10331 (dummy_frame_unwind): Update.
10332 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10333 (sentinel_frame_unwinder): Update.
10334 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10335 (d10v_frame_unwind): Update.
10336 (d10v_unwind_pc): New function.
10337 (d10v_gdbarch_init): Set unwind_pc.
10338
ef840a37
AC
103392003-03-10 Andrew Cagney <cagney@redhat.com>
10340
a2ce2e56
AC
10341 * gdbarch.h: Re-generate.
10342
ef840a37
AC
10343 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10344 PC.
10345 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10346 the PC register.
10347
08f3424b
MK
103482003-03-08 Mark Kettenis <kettenis@gnu.org>
10349
10350 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10351
1248ede2
AC
103522003-03-08 Andrew Cagney <cagney@redhat.com>
10353
10354 * cli-out.c: Update copyright.
10355 (cli_out_data): Define typedef. Use instead of ui_out_data.
10356
f49bacc8
AC
103572003-03-08 Andrew Cagney <cagney@redhat.com>
10358
10359 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10360 the result.
10361
9b05f993
AC
103622003-03-07 Andrew Cagney <cagney@redhat.com>
10363
10364 * gdbarch.sh: Don't generate two macro definitions when an
10365 undefined macro taking no arguments.
10366 * gdbarch.h: Regenerate.
8ffd9b1b 10367
166f4c7b
ML
103682002-03-07 Michal Ludvig <mludvig@suse.cz>
10369
10370 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10371 (x86_64_unwind_dummy_id): New functions.
10372 (x86_64_init_abi): Register these two new functions.
10373
6d686a84
ML
103742003-03-07 Michal Ludvig <mludvig@suse.cz>
10375
10376 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10377 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10378 separate function.
10379 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10380
6314f104
AC
103812003-03-05 Andrew Cagney <cagney@redhat.com>
10382
10383 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10384 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10385 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10386 to use unwind_dummy_id when a dummy frame.
10387 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10388 predicate.
10389 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10390
ceea5145
AC
103912003-03-05 Andrew Cagney <cagney@redhat.com>
10392
10393 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10394 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10395 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10396 values.
10397
0d843116
AC
103982003-03-05 Andrew Cagney <cagney@redhat.com>
10399
10400 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10401 (struct d10v_unwind_cache): Delete field "frameless". Replace
10402 "next_addr" with "sp_offset". Add "r11_offset".
10403 (d10v_frame_unwind_cache): Update.
10404 (prologue_find_regs): Update. When "mv r11, sp", save the
10405 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10406 RN was saved in r11_offset.
10407
b2579786
AC
104082003-03-05 Andrew Cagney <cagney@redhat.com>
10409
10410 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10411 cached PC value in the next frame.
10412
218e5956
AC
104132003-03-05 Andrew Cagney <cagney@redhat.com>
10414
10415 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10416 "id_unwind_cache" with "id".
10417 (frame_id_unwind): Delete declaration.
10418 * frame.c (frame_id_unwind): Delete function.
10419 (get_prev_frame): Call the frame id unwind method directly. Store
10420 the returned next frame's ID value in NEXT_FRAME. Note that there
10421 is a problem with the wrong unwind ID being called with the wrong
10422 unwind cache.
10423
ed363b1b
DJ
104242003-03-05 Daniel Jacobowitz <drow@mvista.com>
10425
10426 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10427
fe1f4a5e
DJ
104282003-03-05 James Ingham <jingham@apple.com>
10429 Daniel Jacobowitz <drow@mvista.com>
10430
10431 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10432 (auto_cp_abi): New variable.
10433 (current_cp_abi, num_cp_abis): Make static.
10434 (CP_ABI_MAX): Define.
10435 (cp_abis): Turn into an array.
10436 (value_virtual_fn_field): Fix formatting.
10437 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10438 takes a pointer.
10439 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10440 (list_cp_abis, _initialize_cp_abi): New functions.
10441 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10442 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10443 switch_to_cp_abi. Update prototype for register_cp_abi.
10444 * Makefile.in (cp-abi.o): Update dependencies.
10445 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10446 instead of switch_to_cp_abi.
10447 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10448 register_cp_abi.
10449 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10450 register_cp_abi.
10451 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10452
e4adbba9
DJ
104532003-03-05 Daniel Jacobowitz <drow@mvista.com>
10454
10455 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10456 * dwarf2loc.c: Include "regcache.h".
10457 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10458 register_size.
10459 * Makefile.in (dwarf2loc.o): Update dependencies.
10460
91ccbfc1
TR
104612003-03-04 Theodore A. Roth <troth@openavr.org>
10462
10463 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10464 number of io registers reported by remote target is not a multiple of
10465 step.
10466
3d4e8fd2
DC
104672003-03-04 David Carlton <carlton@math.stanford.edu>
10468
10469 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10470 (lookup_symbol_aux_psymtabs): Update call to
10471 lookup_partial_symbol.
10472 (lookup_transparent_type, find_main_psymtab)
10473 (make_symbol_overload_list): Ditto.
10474
ed42d87b
KH
104752003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10476
10477 * MAINTAINERS (Write after approval): Update my email address.
10478
a0ed5532
AC
104792003-03-03 Andrew Cagney <cagney@redhat.com>
10480
10481 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10482 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10483 predicate. Replace MAX_REGISTER_RAW_SIZE.
10484 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10485 MAX_REGISTER_VIRTUAL_SIZE.
10486 * regcache.c (legacy_max_register_raw_size): New function.
10487 (legacy_max_register_virtual_size): New function.
10488 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10489 (MAX_REGISTER_RAW_SIZE): Define.
10490 (legacy_max_register_raw_size): Declare.
10491 (legacy_max_register_virtual_size): Declare.
10492 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10493 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10494 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10495 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10496 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10497 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10498 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10499 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10500 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10502 * vax-tdep.c (vax_gdbarch_init): Update.
10503 * v850-tdep.c (v850_gdbarch_init): Update.
10504 * sparc-tdep.c (sparc_gdbarch_init): Update.
10505 * sh-tdep.c (sh_gdbarch_init): Update.
10506 * s390-tdep.c (s390_gdbarch_init): Update.
10507 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10508 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10510 * mips-tdep.c (mips_gdbarch_init): Update.
10511 * mcore-tdep.c (mcore_gdbarch_init): Update.
10512 * m68k-tdep.c (m68k_gdbarch_init): Update.
10513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10514 * ia64-tdep.c (ia64_gdbarch_init): Update.
10515 * i386-tdep.c (i386_gdbarch_init): Update.
10516 * hppa-tdep.c (hppa_gdbarch_init): Update.
10517 * h8300-tdep.c (h8300_gdbarch_init): Update.
10518 * frv-tdep.c (frv_gdbarch_init): Update.
10519 * cris-tdep.c (cris_gdbarch_init): Update.
10520 * avr-tdep.c (avr_gdbarch_init): Update.
10521 * arm-tdep.c (arm_gdbarch_init): Update.
10522 * alpha-tdep.c (alpha_gdbarch_init): Update.
10523 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10524 max_register_raw_size or max_register_virtual_size.
10525
8e437497
DC
105262003-03-03 David Carlton <carlton@math.stanford.edu>
10527
10528 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10529 SYMBOL_MATCHES_NAME, add comment.
10530 (SYMBOL_MATCHES_NATURAL_NAME): New.
10531 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10532 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10533 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10534 * symtab.c (lookup_partial_symbol): Use
10535 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10536 unhelpful comment.
10537 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10538 SYMBOL_MATCHES_NAME.
10539 Fix for PR c++/33.
10540
25120b0d
DC
105412003-03-03 David Carlton <carlton@math.stanford.edu>
10542
10543 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10544 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10545 by regexp matching against SYMBOL_NATURAL_NAME.
10546
78a11fb4
DC
105472003-03-03 David Carlton <carlton@math.stanford.edu>
10548
10549 * linespec.c (find_method): Extract code into collect_methods.
10550 (collect_methods): New.
10551
645dd519
MK
105522003-03-02 Mark Kettenis <kettenis@gnu.org>
10553
b4700d91
MK
10554 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10555 get_frame_base.
10556
645dd519
MK
10557 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10558 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10559
0aa7e1aa
SC
105602003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10561
8ffd9b1b 10562 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10563 and not regnum when summing the size of all registers up to regnum.
10564
f30ee0bc
AC
105652003-03-01 Andrew Cagney <cagney@redhat.com>
10566
10567 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10568 FRAME_INIT_SAVED_REGS.
10569 * gdbarch.h, gdbarch.c: Regenerate.
10570 * stack.c (frame_info): Update.
10571 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10572 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10573 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10574 * ns32k-tdep.c (ns32k_pop_frame): Update.
10575 * mips-tdep.c (mips_pop_frame): Update.
10576 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10577 * ia64-tdep.c (ia64_frame_chain): Update.
10578 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10579 (ia64_frameless_function_invocation): Update.
10580 (ia64_init_extra_frame_info): Update.
10581 (ia64_pop_frame_regular): Update.
10582 * frame.h (struct frame_info): Update comment.
10583 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10584 * frame.c (frame_saved_regs_register_unwind): Update.
10585 (frame_saved_regs_register_unwind): Update.
10586 (deprecated_generic_get_saved_register): Update.
10587 * cris-tdep.c: Update comment.
10588 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10589 Rename macro.
10590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10591 * x86-64-tdep.c (x86_64_init_abi): Update.
10592 * vax-tdep.c (vax_gdbarch_init): Update.
10593 * v850-tdep.c (v850_gdbarch_init): Update.
10594 * sparc-tdep.c (sparc_gdbarch_init): Update.
10595 * sh-tdep.c (sh_gdbarch_init): Update.
10596 * s390-tdep.c (s390_gdbarch_init): Update.
10597 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10598 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10599 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10600 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10601 * mips-tdep.c (mips_gdbarch_init): Update.
10602 * mcore-tdep.c (mcore_gdbarch_init): Update.
10603 * m68k-tdep.c (m68k_gdbarch_init): Update.
10604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10605 * ia64-tdep.c (ia64_gdbarch_init): Update.
10606 * i386-tdep.c (i386_gdbarch_init): Update.
10607 * frv-tdep.c (frv_gdbarch_init): Update.
10608 * avr-tdep.c (avr_gdbarch_init): Update.
10609 * arm-tdep.c (arm_gdbarch_init): Update.
10610 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10611
42fa7c0f
AC
106122003-03-01 Andrew Cagney <cagney@redhat.com>
10613
10614 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10615 option enum and switch. When no windows, set the interpreter to
10616 INTERP_CONSOLE.
8ffd9b1b 10617
49c7e338
AC
106182003-03-01 Andrew Cagney <cagney@redhat.com>
10619
10620 * main.c (captured_main): Replace magic option characters with an
10621 enum.
10622
e9582e71
AC
106232003-03-01 Andrew Cagney <cagney@redhat.com>
10624
10625 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10626 INIT_EXTRA_FRAME_INFO.
10627 * gdbarch.h, gdbarch.c: Regenerate.
10628 * arm-tdep.c: Update comments.
10629 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10630 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10631 * frame.h, avr-tdep.c: Ditto.
10632 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10633 (create_new_frame, legacy_get_prev_frame): Ditto.
10634 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10635 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10637 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10638 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10639 * v850-tdep.c (v850_gdbarch_init): Ditto.
10640 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10641 * sh-tdep.c (sh_gdbarch_init): Ditto.
10642 * s390-tdep.c (s390_gdbarch_init): Ditto.
10643 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10644 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10645 * mips-tdep.c (mips_gdbarch_init): Ditto.
10646 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10648 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10649 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10650 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10651 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10652 * frv-tdep.c (frv_gdbarch_init): Ditto.
10653 * cris-tdep.c (cris_gdbarch_init): Ditto.
10654 * avr-tdep.c (avr_gdbarch_init): Ditto.
10655 * arm-tdep.c (arm_gdbarch_init): Ditto.
10656 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10657 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10658
35cac7cf
AC
106592003-03-01 Andrew Cagney <cagney@redhat.com>
10660
10661 * gdbarch.sh (register_type): New function with predicate.
10662 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10663 * gdbarch.h, gdbarch.c: Re-generate.
10664 * arch-utils.c (generic_register_byte): Use generic_register_size.
10665 (generic_register_size): When available, use
10666 gdbarch_register_type.
10667 * regcache.c (init_regcache_descr): When available, initialize the
10668 register type array using gdbarch_register_type. If the
10669 architecture supplies gdbarch_register_type, do not use the legacy
10670 regcache layout.
10671 * d10v-tdep.c (d10v_register_type): Replace
10672 d10v_register_virtual_type.
10673 (d10v_gdbarch_init): Set register_type instead of
10674 register_virtual_type.
10675
7b83296f
AC
106762003-03-01 Andrew Cagney <cagney@redhat.com>
10677
10678 * Makefile.in (ax-gdb.o): Update dependencies.
10679 * ax-gdb.c: Include "regcache.h".
10680 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10681 * findvar.c (value_of_register): Ditto.
10682 * infcmd.c (default_print_registers_info): Ditto.
10683
eadc1c87
MK
106842003-03-01 Mark Kettenis <kettenis@gnu.org>
10685
10686 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10687 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10688
14143612
MK
106892003-03-01 Mark Kettenis <kettenis@gnu.org>
10690
10691 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10692 of STREQ.
10693
a55cc764
DJ
106942003-02-28 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * Makefile.in (dwarf2loc.o): Update dependencies.
10697 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10698 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10699 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10700 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10701 (locexpr_tracepoint_var_ref): New function.
10702 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10703
08a617da
AC
107042003-02-28 Andrew Cagney <cagney@redhat.com>
10705
10706 * regcache.c (register_size): New function.
10707 * regcache.h (register_size): Declare
10708 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10709 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10710
4224873a
DC
107112003-02-28 David Carlton <carlton@math.stanford.edu>
10712
10713 * linespec.c (decode_compound): Extract code into find_method.
10714 (find_method): New.
10715
ccdc5d7f
JB
107162003-02-28 J. Brobecker <brobecker@gnat.com>
10717
10718 * Makefile.in: Add rules to build and link in observer.o.
10719
974e8ced
JB
107202003-02-27 J. Brobecker <brobecker@gnat.com>
10721
10722 * observer.c: Minor comments edits.
10723
7a28f973
JB
107242003-02-27 J. Brobecker <brobecker@gnat.com>
10725
10726 * observer.h, observer.c: New file.
10727
27cddce2
AC
107282003-02-27 Andrew Cagney <cagney@redhat.com>
10729
10730 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10731
b94a41a1
SC
107322003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10733
10734 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10735 (M6812_OP_STS_EXT): Likewise.
10736 (m6811_prologue): Use the above to recognize prologue.
10737 (m6812_prologue): Likewise.
10738
c8be8951
DC
107392003-02-27 David Carlton <carlton@math.stanford.edu>
10740
10741 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10742 SYMBOL_PRINT_NAME.
10743 (compare_psymbols): Ditto.
10744 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10745
d05bb1fc
MS
107462003-02-27 Michael Snyder <msnyder@redhat.com>
10747
4e845cd3
MS
10748 * f-lang.c (build_fortran_types): New function.
10749 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10750 * doublest.c (extract_floating): Fix warning text.
10751
f3824013
AC
107522003-02-27 Andrew Cagney <cagney@redhat.com>
10753
10754 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10755 predicate. Replaces PUSH_DUMMY_FRAME.
10756 * gdbarch.h, gdbarch.c: Regnerate.
10757 * valops.c (hand_function_call): Update. Call
10758 generic_push_dummy_frame directly.
10759 * vax-tdep.c (vax_gdbarch_init): Update.
10760 * sparc-tdep.c (sparc_gdbarch_init): Update.
10761 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10762 * m68k-tdep.c (m68k_gdbarch_init): Update.
10763 * hppa-tdep.c (hppa_gdbarch_init): Update.
10764 * alpha-tdep.c (alpha_gdbarch_init): Update.
10765 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10766 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10767 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10768 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10769 push_dummy_frame to generic_push_dummy_frame.
10770 * v850-tdep.c (v850_gdbarch_init): Ditto.
10771 * sh-tdep.c (sh_gdbarch_init): Ditto.
10772 * s390-tdep.c (s390_gdbarch_init): Ditto.
10773 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10774 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10775 * mips-tdep.c (mips_gdbarch_init): Ditto.
10776 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10778 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10779 * i386-tdep.c (i386_gdbarch_init): Ditto.
10780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10781 * frv-tdep.c (frv_gdbarch_init): Ditto.
10782 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10783 * cris-tdep.c (cris_gdbarch_init): Ditto.
10784 * avr-tdep.c (avr_gdbarch_init): Ditto.
10785 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10786
ad188201
KB
107872003-02-26 Kevin Buettner <kevinb@redhat.com>
10788
10789 * mips-tdep.c (show_mips_abi): New function.
10790 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10791 command ``show mips abi''.
10792
6b37567a 107932003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10794
6b37567a 10795 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10796 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10797 more sline entries have been seen for the function.
10798
d3e0a5bf
MC
107992003-02-26 Michael Chastain <mec@shout.net>
10800
10801 * configure: Regenerate with autoconf 000227.
10802
18972eea
MC
108032003-02-26 Michael Chastain <mec@shout.net>
10804
10805 Close PR build/660.
10806 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10807 for old libc5/glibc.
10808 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10809
0bbde931
KW
108102003-02-26 Kris Warkentin <kewarken@qnx.com>
10811
10812 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10813 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10814
27ca5dad
MC
108152003-02-26 Michael Chastain <mec@shout.net>
10816
10817 * configure.in: New variable HAVE_UINTPTR_T.
10818 * configure, config.in: Regenerated.
10819
6f88d630
DJ
108202003-02-26 Daniel Jacobowitz <drow@mvista.com>
10821
10822 Fix PR build/1097.
10823 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10824
b14185ce
AC
108252003-02-25 Andrew Cagney <cagney@redhat.com>
10826
10827 * frame.c (get_prev_frame): Add comment on check for
10828 inside_entry_func. Only check for inside_entry_file when not a
10829 dummy and not a sentinel. Check that the new frame is not inner
10830 to the old frame.
10831
ac2bd0a9
AC
108322003-02-25 Andrew Cagney <cagney@redhat.com>
10833
10834 * frame.c (frame_debug): New variable.
10835 (_initialize_frame): Add "set/show debug frame" command.
10836 (get_prev_frame): When frame_debug, print reason why unwind
10837 failed.
10838
b18a0fd2
MC
108392003-02-25 Michael Chastain <mec@shout.net>
10840
10841 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10842 to avoid uintptr_t definition problems.
10843
22abf04a
DC
108442003-02-25 David Carlton <carlton@math.stanford.edu>
10845
10846 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10847 (SYMBOL_LINKAGE_NAME): Ditto.
10848 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10849 SYMBOL_LINKAGE_NAME.
10850 (struct general_symbol_info): Expand comment.
10851 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10852 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10853 (SYMBOL_MATCHES_REGEXP): Ditto.
10854 * symtab.c (symbol_natural_name): New function.
10855 * objfiles.h: Replace all uses of SYMBOL_NAME by
10856 DEPRECATED_SYMBOL_NAME.
10857 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10858 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10859 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10860 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10861 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10862 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10863 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10864 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10865 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10866 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10867 * ada-exp.y: Ditto.
10868 * ada-exp.y: Update copyright.
10869 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10870 * cp-valprint.c: Ditto.
10871
1a5848f6
JJ
108722003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10873
10874 * infptrace.c (detach): Do not flag error if ptrace detach fails
10875 and errno is set to ESRCH.
10876
7343d46a
AC
108772003-02-24 Andrew Cagney <cagney@redhat.com>
10878
10879 * infptrace.c (udot_info): Change type of udot_off to long. Use
10880 paddr when printing udot_off's value.
10881
49fa1dc2
DC
108822003-02-24 David Carlton <carlton@math.stanford.edu>
10883
10884 * symtab.c (make_symbol_overload_list): Only read in partial
10885 symtabs containing a matching partial symbol.
10886
0fe19209
DC
108872003-02-24 David Carlton <carlton@math.stanford.edu>
10888
10889 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10890 do the comparison, not strcmp.
10891 * symfile.c (compare_psymbols): Ditto.
10892 * defs.h: Declare strcmp_iw_ordered.
10893 * utils.c (strcmp_iw_ordered): New function.
10894
8e3ee7b5
JB
108952003-02-24 Jim Blandy <jimb@redhat.com>
10896
10897 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10898 support, shared libs): Remove my name from here, to better reflect
10899 reality.
10900
7df1a324
KW
109012003-02-24 Kris Warkentin <kewarken@qnx.com>
10902
10903 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10904 (target_ops): Add to_have_continuable_watchpoint.
10905 * target.c (update_current_target): Add INHERIT line for
10906 to_have_continuable_watchpoint.
10907 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10908 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10909 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10910 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10911
d1c76907
EZ
109122003-02-24 Elena Zannoni <ezannoni@redhat.com>
10913
10914 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10915 maintainership.
10916
2610b0bf
KW
109172003-02-24 Kris Warkentin <kewarken@qnx.com>
10918
f46169db
KW
10919 * solib.c (solib_open): Call target defined search function after
10920 failing with solib-search-path.
10921 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10922 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10923
9a3c34fe
KW
109242003-02-24 Kris Warkentin <kewarken@qnx.com>
10925
f46169db 10926 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10927
2417dd25
SC
109282003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10929
10930 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10931
b631436b
SC
109322003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10933
10934 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10935 (m68hc11_add_reggroups): New function.
10936 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10937 (m68hc11_gdbarch_init): Install the reggroups.
10938 (_initialize_m68hc11_tdep): Initialize them.
10939
0aa8c1e4
JW
109402003-02-21 James E Wilson <wilson@tuliptree.org>
10941
10942 * MAINTAINERS: Update my email address.
10943
50ceaba5
DC
109442003-02-21 David Carlton <carlton@math.stanford.edu>
10945
10946 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10947
4c2df51b
DJ
109482003-02-21 Daniel Jacobowitz <drow@mvista.com>
10949
10950 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10951 * symtab.h: Add opaque declarations of struct axs_value and
10952 struct agent_expr.
10953 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10954 (struct location_funcs): New type.
10955 (struct symbol): Add "loc" to aux_value.
10956 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10957 * dwarf2read.c: Include "dwarf2expr.h".
10958 (dwarf2_symbol_mark_computed): New function.
10959 (read_func_scope): Use it.
10960 (var_decode_location): New function.
10961 (new_symbol): Use it.
10962 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10963
10964 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10965 (dwarf2expr_h, dwarf2loc_h): New variables.
10966 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10967 (dwarf2expr.o, dwarf2loc.o): New rules.
10968 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10969 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10970 LOC_COMPUTED_ARG.
10971 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10972 * m2-exp.y (yylex): Likewise.
10973 * printcmd.c (address_info, print_frame_args): Likewise.
10974 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10975 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10976 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10977 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10978 * symtab.c (lookup_block_symbol): Likewise.
10979
5784d15e
AF
109802003-02-20 Adam Fedor <fedor@gnu.org>
10981
10982 * symtab.h: Remove objc_specific struct
10983 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10984 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10985 Have language_objc use cplus_specific struct.
10986
d4cad8db
TT
109872003-02-20 Tom Tromey <tromey@redhat.com>
10988
10989 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10990 TYPE_NAME, when printing a String value. PR java/1075.
10991
2f9a90b4
AF
109922003-02-20 Adam Fedor <fedor@gnu.org>
10993
d38074a8 10994 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10995 * objc-lang.c (find_methods): Make static.
2f9a90b4 10996
6f17862b
CF
109972003-02-20 Christopher Faylor <cgf@redhat.com>
10998
10999 * win32-nat.c (get_image_name): Check return value from
11000 ReadProcessMemory.
11001 (child_xfer_memory): Ditto.
11002
715d1656
AO
110032003-02-20 Alexandre Oliva <aoliva@redhat.com>
11004
11005 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11006 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11007 '${exec_prefix}' (in addition to the expansion thereof) as
11008 relocatable.
11009 * configure: Rebuilt.
11010
b1262a02
DC
110112003-02-20 David Carlton <carlton@math.stanford.edu>
11012
11013 * symtab.c (search_symbols): Revert the search_symbols part of my
11014 2002-12-23 patch. Add comment.
11015
7134143f
DJ
110162002-02-20 Daniel Jacobowitz <drow@mvista.com>
11017
11018 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11019 * dbxread.c (elfstab_build_psymtabs): Don't call
11020 install_minimal_symbols.
11021 (stabsect_build_psymtabs): Likewise.
11022 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11023 earlier.
11024 * somread.c (som_symfile_read): Call install_minimal_symbols
11025 and do_cleanups earlier.
11026 * nlmread.c (nlm_symfile_read): Likewise.
11027 * mdebugread.c (elfmdebug_build_psymtabs): Call
11028 install_minimal_symbols and make appropriate cleanups.
11029
cf466558
KB
110302003-02-20 Kevin Buettner <kevinb@redhat.com>
11031
11032 * solib.c (reload_shared_libraries): New function.
11033 (_initialize_solib): Add callbacks for ``set solib-search-path''
11034 and ``set solib-absolute-prefix''.
11035
de5ad195
DC
110362003-02-20 David Carlton <carlton@math.stanford.edu>
11037
11038 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11039 expand comment.
11040 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11041 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11042 * ada-typeprint.c (ada_typedef_print): Ditto.
11043 * ax-gdb.c (gen_var_ref): Ditto.
11044 * breakpoint.c (print_one_breakpoint): Ditto.
11045 * buildsym.c (finish_block): Ditto.
11046 * c-valprint.c (c_val_print): Ditto.
11047 * expprint.c (print_subexp): Ditto.
11048 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11049 * infcmd.c (jump_command): Ditto.
11050 * linespec.c (decode_line_2, decode_compound): Ditto.
11051 * maint.c (maintenance_translate_address): Ditto.
11052 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11053 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11054 Ditto.
8ffd9b1b
AJ
11055 * p-valprint.c (pascal_val_print): Ditto.
11056 * stabsread.c (define_symbol): Ditto.
de5ad195 11057 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11058 (print_frame_arg_vars, return_command): Ditto.
11059 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11060 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11061 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11062 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11063 (rbreak_command): Ditto.
11064 * tracepoint.c (tracepoints_info): Ditto.
11065 * typeprint.c (typedef_print): Ditto.
11066 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11067 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11068 * ada-typeprint.c: Update Copyright.
11069 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11070 * tracepoint.c, cli/cli-cmds.c: Ditto.
11071
f796e4be
KB
110722003-02-20 Kevin Buettner <kevinb@redhat.com>
11073
11074 * frame.c (generic_unwind_get_saved_register): Make non-static.
11075 * frame.h (generic_unwind_get_saved_register): Declare.
11076 * mips-tdep.c (read_next_frame_reg): Fetch register from
11077 current regcache when frame is NULL.
11078 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11079 that must be NULL.
11080 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11081 instead of frame_register_unwind().
11082
836cc9f4
AC
110832003-02-20 Andrew Cagney <ac131313@redhat.com>
11084
11085 * remote-sim.c (gdbsim_insert_breakpoint)
11086 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11087 code.
11088
501eef12
AC
110892003-02-20 Andrew Cagney <ac131313@redhat.com>
11090
11091 * remote.c (_initialize_remote): Add commands "set/show remote
11092 hardware-watchpoint-limit" and "set/show remote
11093 hardware-breakpoint-limit".
11094 (remote_hw_watchpoint_limit): Initialize to -1.
11095 (remote_hw_breakpoint_limit): Ditto.
11096 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11097
1b6bc7e0
CF
110982003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11099
11100 * coff-pe-read.c: New file - support reading of minimal symbols from a
11101 portable executable using the export table.
11102 * coff-pe-read.h: New file.
11103 * coffread.c: Include coff-pe-read.h.
11104 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11105 debugging symbols found.
11106 * Makefile.in (SFILES): Add coff-pe-read.o.
11107 (coff_pe_read_h): Define.
11108 (COMMON_OBS): Add coff-pe-read.o.
11109 (coffread.o): Add coff_pe_read_h dependency.
11110 (coff-pe-read.o): New target.
11111
fe898f56
DC
111122003-02-19 David Carlton <carlton@math.stanford.edu>
11113
11114 * Makefile.in (SFILES): Add block.c.
11115 (block_h): New.
11116 (COMMON_OBS): Add block.o.
11117 (block.o): New.
11118 (x86-64-tdep.o): Add $(block_h).
11119 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11120 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11121 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11122 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11123 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11124 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11125 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11126 * value.h: Add opaque declaration for struct block.
11127 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11128 * ada-lang.h: Ditto.
11129 * x86-64-tdep.c: #include "block.h"
11130 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11131 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11132 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11133 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11134 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11135 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11136 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11137 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11138 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11139 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11140 * symtab.c (block_function): Ditto.
11141 (contained_in): Ditto.
11142 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11143 block.h. Add opaque declaration for struct block.
11144 * symtab.h: Move block_function and contained_in declarations to
11145 block.h. Add opaque declarations for struct block, struct
11146 blockvector.
11147 (struct block): Move to block.h.
11148 (struct blockvector): Ditto.
11149 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11150 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11151 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11152 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11153 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11154 Ditto.
11155 * block.c: New file.
11156 * block.h: New file.
11157
173345b5
TR
111582003-02-19 Theodore A. Roth <troth@openavr.org>
11159
11160 * avr-tdep.c (avr_extract_return_value): Remove function.
11161 (avr_store_return_value): Remove function.
11162 (avr_extract_struct_value_address): Remove function.
11163 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11164
338ef23d
AC
111652003-02-19 Andrew Cagney <ac131313@redhat.com>
11166
11167 * rs6000-tdep.c: Include "gdb_assert.h".
11168 (registers_e500): Add "acc" and "spefscr".
11169 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11170 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11171 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11172 really is "r0".
11173 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11174
5412f5f3
KS
111752003-02-18 Keith Seitz <keiths@redhat.com>
11176
11177 * Makefile.in: Add gdbtk-interps.c.
11178
881324eb
KB
111792003-02-18 Kevin Buettner <kevinb@redhat.com>
11180
11181 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11182 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11183
6a2f5abf
AC
111842003-02-18 Andrew Cagney <cagney@redhat.com>
11185
11186 * symtab.h (struct objfile): Add opaque declaration.
11187
54c7009d
EZ
111882003-02-18 Elena Zannoni <ezannoni@redhat.com>
11189
11190 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11191 * dbxread.c (process_one_symbol): Use last_function_start rather
11192 than function_start_offset to find the real beginning of the
11193 current function. The latter is just the text section offset on
11194 some systems, the former is always the real function start.
54c7009d 11195
7ee6d7eb
AC
111962003-02-17 Andrew Cagney <cagney@redhat.com>
11197
11198 * configure.in: Revert ${target} != ${host}.
11199
2846da9b
AC
112002003-02-17 Andrew Cagney <ac131313@redhat.com>
11201
11202 * configure.in (Makefile): Use the test ${target} != ${host},
11203 instead of the absence of the "nm.h" file, to determine of the
11204 configuration non-native.
11205 * configure: Regenerate.
8ffd9b1b 11206
3b27aeea
EZ
112072003-02-14 Elena Zannoni <ezannoni@redhat.com>
11208
fbe586ae 11209 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11210
11211 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11212 conditionalize tui_active test.
11213 (lookup_cmd_1): Ditto.
11214
b0b1c2c0
MK
112152003-02-14 Mark Kettenis <kettenis@gnu.org>
11216
11217 * configure.in: Add check for _etext.
11218 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11219 available.
11220 * config.in, configure: regenerated.
11221
8f05cde5
DJ
112222003-02-14 Daniel Jacobowitz <drow@mvista.com>
11223
11224 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11225
021e7609
AC
112262003-02-14 Andrew Cagney <ac131313@redhat.com>
11227
11228 * main.c (tui_version): Delete variable.
11229 (captured_main): When --tui, set interpreter_p to "tui" instead of
11230 enabling tui_version.
11231 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11232 tui_version.
11233 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11234 * cli/cli-cmds.c (disassemble_command): Ditto.
11235 * defs.h (tui_version): Delete declaration.
11236 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11237 (tui-interp.o): Add rules.
11238 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11239
e325dcec
CF
112402003-02-14 Christopher Faylor <cgf@redhat.com>
11241
36ffb041 11242 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11243 just-loaded dll.
11244
c4f90d87
JM
112452003-02-12 Jason Molenda (jmolenda@apple.com)
11246
fbe586ae
RH
11247 * symmisc.c (print_objfile_statistics): Include information about
11248 the number of psymtabs and symtabs in each object file.
c4f90d87 11249
e46e5ccd
KS
112502003-02-13 Keith R Seitz <keiths@redhat.com>
11251
11252 * main.h (struct captured_main_args): Add interpreter_p.
11253 * main.c (captured_main): Initialize interpreter_p from context.
11254 * gdb.c (main): Set interpreter_p argument.
11255 * Makefile.in (gdb.o): Add dependency for interps.h.
11256
fe97fe9c
AC
112572003-02-12 Andrew Cagney <ac131313@redhat.com>
11258
11259 * event-top.c (cli_command_loop): Delete declaration.
11260 (_initialize_event_loop): Delete function setting event_loop_hook.
11261 * event-top.h (cli_command_loop): Declare. Update copyright.
11262 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11263 * interps.c (current_interp_command_loop): When event_loop_p, call
11264 cli_command_loop.
11265
1cdac4ef
AC
112662003-02-12 Andrew Cagney <ac131313@redhat.com>
11267
11268 * interps.h (interp_command_loop_ftype): Change return type to
11269 void.
11270
48037ead
ML
112712003-02-12 Michal Ludvig <mludvig@suse.cz>
11272
11273 * x86-64-tdep.c (x86_64_extract_return_value)
11274 (x86_64_store_return_value): Use regcache instead of regbuf.
11275 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11276 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11277
033afc63
AC
112782003-02-11 Andrew Cagney <ac131313@redhat.com>
11279
11280 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11281 * aclocal.m4: Regenerate.
11282 * configure: Regenerate.
11283
11284 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11285 TCL_LD_SEARCH_FLAGS.
11286
40d02bca
ML
112872003-02-10 Michal Ludvig <mludvig@suse.cz>
11288
11289 * dwarf2cfi.c: Reindented.
11290
11308a41
AC
112912003-02-09 Andrew Cagney <ac131313@redhat.com>
11292
11293 * interps.c (clear_interpreter_hooks): Convert function definition
11294 to ISO C.
11295
e1c1c0f6
DC
112962003-02-07 David Carlton <carlton@math.stanford.edu>
11297
11298 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11299
ab5d3da6
KB
113002003-02-07 Kevin Buettner <kevinb@redhat.com>
11301
11302 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11303 (struct type): ...to here.
11304 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11305 field.
11306 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11307 (replace_type): Set length on all type variants for a given type.
11308
b8a92b82
AC
113092003-02-07 Andrew Cagney <ac131313@redhat.com>
11310
11311 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11312 <sys/stat.h>.
11313 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11314
5cb316ef
AC
113152003-02-06 Andrew Cagney <ac131313@redhat.com>
11316
2555fe1a
AC
11317 * Makefile.in (symm-nat.o): Update dependencies.
11318 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11319 (lynx-nat.o, ia64-linux-nat.): Ditto.
11320 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11321 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11322 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11323
44270758
AC
11324 * Makefile.in (inflow_h): Define.
11325 (procfs.o, inflow.o, procfs.o): Update dependencies.
11326 * inftarg.c (child_stop): Delete extern declaration of
11327 inferior_process_group. Include "inflow.h".
11328 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11329 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11330 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11331 (our_process_group, inferior_process_group): Extern declarations.
11332
df8f7274
AC
11333 * procfs.c: Include "gdb_assert.h".
11334
5cb316ef
AC
11335 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11336 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11337 * jv-typeprint.c (java_type_print_base): Ditto.
11338 * typeprint.c (typedef_print): Eliminate STREQ.
11339 * cli/cli-script.c (define_command, define_command): Ditto.
11340 * main.c (captured_main): Ditto.
11341 * values.c (lookup_internalvar): Ditto.
11342 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11343 within `if' conditional.
11344 * linespec.c (decode_line_2): Ditto.
11345 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11346 (bfd_openw_with_cleanup): Ditto.
11347
2a28ccea
MK
113482003-02-07 Mark Kettenis <kettenis@gnu.org>
11349
11350 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11351 legacy_extract_return_value and store_return_value to
11352 legacy_return_value.
11353
786b8124
CF
113542003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11355
11356 * win32-nat.c (get_relocated_section_addrs): New function. Find
11357 section load addresses for symbol handling in relocated DLLs.
11358 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11359
b871e4ec
FF
113602003-02-05 Fred Fish <fnf@intrinsity.com>
11361
11362 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11363 '=' and '!='.
11364 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11365 with '&' and '=='.
11366 (angel_RDI_info): Ditto.
11367 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11368 with '&' and '!='.
11369 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11370
4389a95a 113712003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11372 Keith Seitz <keiths@redhat.com>
11373 Elena Zannoni <ezannoni@redhat.com>
11374 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11375
11376 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11377 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11378 (SUBDIR_MI_OBS): Add "mi-interp.o".
11379 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11380 (SFILES): Add "interps.c".
11381 (COMMON_OBS): Add "interps.o".
11382 (interps_h, mi_main_h): Define.
11383 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11384 (mi-main.o, main.o, event-top.o): Update dependencies.
11385 * cli/cli-interp.c: New file.
11386 * interps.h, interps.c: New files.
11387 * top.c: (gdb_init): Don't install the default interpreter, handed
11388 by captured_main.
11389 * main.c: Include "interps.h".
11390 (interpreter_p): Note that it should malloc'ed.
11391 (captured_command_loop): Call current_interp_command_loop.
11392 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11393 xfree and xstrdup when updating interpreter_p. Install the
11394 default interpreter. Add hack to stop mi1's copyright notice
11395 being encoded.
11396 * event-top.h (gdb_setup_readline): Declare.
11397 (gdb_disable_readline): Declare.
11398 * event-top.c: Include "interps.h".
11399 (display_gdb_prompt): Call current_interp_display_prompt_p.
11400 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11401 gdb_stdlog, and gdb_stdtarg.
11402 (_initialize_event_loop): Don't call gdb_setup_readline.
11403 * cli-out.c (cli_out_set_stream): New function.
11404 * cli-out.h (cli_out_set_stream): Declare.
11405
ff3b5810
MK
114062003-02-06 Mark Kettenis <kettenis@gnu.org>
11407
11408 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11409 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11410 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11411 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11412 config/i386/i386v42mp.mt: Removed.
11413
5b729aa5
MK
114142003-02-05 Mark Kettenis <kettenis@gnu.org>
11415
11416 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11417 GDB_OSABI_SOLARIS.
11418
8cc15142
MC
114192003-02-05 Michael Chastain <mec@shout.net>
11420
11421 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11422 2.12.1 and earlier versions.
11423
5aa5d4b9
AC
114242003-02-05 Andrew Cagney <ac131313@redhat.com>
11425
11426 Remove orphaned hosts, targets and files.
11427 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11428 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11429 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11430 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11431 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11432 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11433 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11434 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11435 * config/sparc/tm-sp64sim.h: Delete.
11436 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11437 hosts.
11438 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11439 mips*-dec-mach3* targets.
11440
b68767c1
MC
114412003-02-04 Michael Chastain <mec@shout.net>
11442
11443 * NEWS: Fix typo: sepcifying -> specifying.
11444
5ae7ca1d
MC
114452003-02-04 Michael Chastain <mec@shout.net>
11446
11447 * dwarfread.c: Add documentation on the state of dwarf-1,
11448 looking towards obsoletion.
11449
d08a4280
MC
114502003-02-03 Michael Chastain <mec@shout.net>
11451
11452 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11453 gdb/testsuite/gdb.c++/pr-1023.exp.
11454
e9be73e4
AC
114552003-02-04 Andrew Cagney <ac131313@redhat.com>
11456
11457 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11458 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11459
11460 * utils.c (init_page_info): Delete reference to MPW in comments.
11461 * main.c (captured_main): Delete #ifdef MPW.
11462
05d57f6f
AC
114632003-02-04 Andrew Cagney <ac131313@redhat.com>
11464
8ffd9b1b 11465 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11466 * monitor.c (monitor_expect): Obsolete reference to m32r.
11467 * configure.tgt: Mark m32r-*-elf* as obsolete.
11468 * MAINTAINERS: Mark m32k as obsolete.
11469 * m32r-rom.c: Obsolete file.
11470 * config/m32r/m32r.mt: Obsolete file.
11471 * config/m32r/tm-m32r.h: Obsolete file.
11472 * m32r-stub.c: Obsolete file.
11473 * m32r-tdep.c: Obsolete file.
11474
8b0e5691
AC
114752003-02-04 Andrew Cagney <ac131313@redhat.com>
11476
11477 * NEWS: Mention that the z8k-zilog-none is obsolete.
11478 * MAINTAINERS: Mark z8k as obsolete.
11479 * configure.tgt: Obsolete the z8k-*-coff* target.
11480 * config/z8k/z8k.mt: Obsolete file.
11481 * config/z8k/tm-z8k.h: Obsolete file.
11482 * z8k-tdep.c: Obsolete file.
11483
67f16606
AC
114842003-02-04 Andrew Cagney <ac131313@redhat.com>
11485
11486 * NEWS: Mention that the mn10200-elf is obsolete.
11487 * configure.tgt: Obsolete mn10200-*-* target.
11488 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11489 mention that the mn10200 is obsolete.
11490 * breakpoint.h: Ditto.
11491 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11492 * config/mn10200/mn10200.mt: Obsolete file.
11493 * config/mn10200/tm-mn10200.h: Obsolete file.
11494 * mn10200-tdep.c: Obsolete file.
11495
fd2299bd
AC
114962003-02-04 Andrew Cagney <ac131313@redhat.com>
11497
11498 * MAINTAINERS: Mark h8500 as obsolete.
11499 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11500 * findvar.c (value_from_register): Ditto.
11501 * h8500-tdep.c: Mark file as obsolete.
11502 * config/h8500/h8500.mt: Ditto.
11503 * config/h8500/tm-h8500.h: Ditto.
11504 * NEWS: Mention that h8500 is obsolete.
11505
eb9a305d
DC
115062003-02-04 David Carlton <carlton@math.stanford.edu>
11507
11508 * objfiles.c (allocate_objfile): Always set name. Add comment at
11509 start of function.
11510 * jv-lang.c (get_dynamics_objfile): Add comment.
11511
406fc7fb
DC
115122003-02-04 David Carlton <carlton@math.stanford.edu>
11513
11514 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11515 * printcmd.c (build_address_symbolic): Replace uses of
11516 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11517 SYMBOL_NAME, and asm_demangle.
11518 Update copyright.
11519
93d91629
DC
115202003-02-04 David Carlton <carlton@math.stanford.edu>
11521
11522 * linespec.c (decode_compound): Extract code into
11523 lookup_prefix_sym.
11524 (lookup_prefix_sym): New function.
11525
1c5cb38e
DC
115262003-02-04 David Carlton <carlton@math.stanford.edu>
11527
11528 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11529 FLOAT_COERCION_BADNESS.
11530 * gdbtypes.c (rank_one_type): Replace all uses of
11531 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11532
0cf824c9
JB
115332003-02-04 Jim Blandy <jimb@redhat.com>
11534
11535 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11536 section, let dwarf_macinfo_section point to it, not
11537 dwarf_loc_section.
11538
a2d356b0
DJ
115392003-02-04 Daniel Jacobowitz <drow@mvista.com>
11540
11541 Pointed out by Anton Blanchard <anton@samba.org>.
11542 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11543 (ppc_linux_at_sigtramp_return_path): Use it.
11544
2de7ced7
DJ
115452003-02-04 Daniel Jacobowitz <drow@mvista.com>
11546
11547 * defs.h (streq): Add prototype.
11548 * utils.c (streq): New function.
11549
11550 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11551 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11552 * mdebugread.c (new_symbol): Likewise.
11553 * stabsread.c (define_symbol): Likewise.
11554 * coffread.c (process_coff_symbol): Likewise.
11555 * dwarfread.c (new_symbol): Likewise.
11556
11557 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11558 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11559 here.
11560 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11561 SYMBOL_INIT_DEMANGLED_NAME.
11562 * objfiles.c: Include "hashtab.h".
11563 (allocate_objfile): Call htab_set_functions_ex for the
11564 demangled_names_hash.
11565 (free_objfile): Call htab_delete for the demangled_names_hash.
11566 * objfiles.h (struct htab): Add declaration.
11567 (struct objfile): Add demangled_names_hash.
11568 * symfile.c: Include "hashtab.h".
11569 (reread_symbols): Call htab_delete for the demangled_names_hash.
11570 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11571 SYMBOL_NAME in the bcache.
11572 * symtab.c: Include "hashtab.h". Update comments.
11573 (create_demangled_names_hash, symbol_set_names): New functions.
11574 (symbol_find_demangled_name): New function, broken out from
11575 symbol_init_demangled_names.
11576 (symbol_init_demangled_names): Use it.
11577 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11578 (SYMBOL_SET_NAMES): New macro.
11579 (symbol_set_names): Add prototype.
11580
15831452
JB
115812003-02-03 Jim Blandy <jimb@redhat.com>
11582
11583 Use a single, consistent representation for an empty minimal
11584 symbol table in an objfile.
11585 * objfiles.c (terminate_minimal_symbol_table): New function.
11586 (allocate_objfile): Call it.
11587 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11588 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11589 non-NULL.
15831452
JB
11590 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11591 objfile has minimal symbols, compare minimal_symbol_count to zero,
11592 instead of comparing msymbols with NULL.
11593 * objfiles.c (have_minimal_symbols): Same.
11594 * solib-sunos.c (solib_add_common_symbols): Call
11595 terminate_minimal_symbol_table.
11596 * symfile.c (reread_symbols): Same.
8ffd9b1b 11597
ffc65945
KB
115982003-02-03 Kevin Buettner <kevinb@redhat.com>
11599
11600 * s390-tdep.c (s390_address_class_type_flags)
11601 (s390_address_class_type_flags_to_name)
11602 (s390_address_class_name_to_type_flags): New functions.
11603 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11604 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11605
f211c6d4
MS
116062003-02-03 Michael Snyder <msnyder@redhat.com>
11607
11608 * arm-tdep.c: Fix spell-o in comment.
11609
659b0389
ML
116102003-02-03 Michal Ludvig <mludvig@suse.cz>
11611
11612 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11613 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11614 error messages to contain BFD filename.
659b0389 11615
3b31d625
EZ
116162003-02-02 Elena Zannoni <ezannoni@redhat.com>
11617
997b089a 11618 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11619 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11620 (do_mixed_source_and_assembly): Use
11621 make_cleanup_ui_out_tuple_begin_end and
11622 make_cleanup_ui_out_tuple_begin_end.
11623 (do_mixed_source_and_assembly): Ditto.
11624 * thread.c (do_captured_list_thread_ids): Ditto.
11625 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11626 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11627 ui_out_tuple_end): Delete prototypes.
11628 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11629 ui_out_list_end, ui_out_tuple_end): Delete.
11630
11631 From Kevin Buettner <kevinb@redhat.com>:
11632 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11633 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11634 (do_cleanup_table_end): New functions.
11635 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11636 Use cleanups to invoke_ui_out_tuple_end().
11637 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11638 * cli/cli-setshow.c (cmd_show_list): Use
11639 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11640
5b181d62
AC
116412003-02-02 Andrew Cagney <ac131313@redhat.com>
11642
11643 * frame.c (frame_unwind_register): New function.
11644 (frame_unwind_unsigned_register): Use.
11645 (frame_unwind_signed_register): Use.
11646 (frame_read_register): New function.
11647 * frame.h (frame_unwind_register): Declare.
11648 (frame_read_register): Declare.
11649
11650 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11651 and frame_unwind_register instead of read_memory, write_register
11652 and deprecated_write_register_bytes.
11653
5f601589
AC
116542003-02-02 Andrew Cagney <ac131313@redhat.com>
11655
11656 * frame.h: Note that namelen can be negative.
11657 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11658 NAME's length.
11659
11660 * NEWS: Mention that the d10v's `regs' command is deprecated.
11661 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11662 (d10v_print_registers_info): New function.
11663 (show_regs): Call d10v_print_registers_info.
11664 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11665
6a3fe0a4
MK
116662003-02-02 Mark Kettenis <kettenis@gnu.org>
11667
11668 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11669 lost in the previous patch.
11670
075559bc
AC
116712003-02-01 Andrew Cagney <ac131313@redhat.com>
11672
11673 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11674 * stack.c (print_frame_info_base): Output complete FRAME tuple
11675 for synthesized frames.
075559bc 11676
6789195b
AC
116772003-02-02 Andrew Cagney <ac131313@redhat.com>
11678
11679 * mips-nat.c (zerobuf): Delete.
11680 (fetch_inferior_registers): Alloc local zerobuf.
11681 (fetch_core_registers): Alloc local zerobuf.
11682 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11683 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11684 * thread-db.c (thread_db_store_registers): Ditto.
11685 * sh-tdep.c (sh_do_register): Ditto.
11686 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11687 * remote-sim.c (gdbsim_store_register): Ditto.
11688 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11689 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11690 * monitor.c (monitor_supply_register): Ditto.
11691 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11692 * mips-nat.c (fetch_inferior_registers): Ditto.
11693 * m68klinux-nat.c (fetch_register): Ditto.
11694 * lynx-nat.c (fetch_inferior_registers): Ditto.
11695 (fetch_inferior_registers): Ditto.
11696 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11697 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11698 (hpux_thread_store_registers): Ditto.
11699 * hppah-nat.c (fetch_register): Ditto.
11700 * hppab-nat.c (fetch_register): Ditto.
11701 * hppa-tdep.c (pa_register_look_aside): Ditto.
11702 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11703 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11704
e669114a
AC
117052003-02-01 Andrew Cagney <ac131313@redhat.com>
11706
11707 * gdbarch.sh: Explictly specify all method levels. When a
11708 variable with an empty level, provide a non-multi-arch default.
11709 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11710 * gdbarch.h: Re-generate.
11711 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11712 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11713
9a043c1d
AC
117142003-02-01 Andrew Cagney <ac131313@redhat.com>
11715
11716 * defs.h (host_pointer_to_address): Delete declaration.
11717 (address_to_host_pointer): Delete declaration.
11718 * utils.c (host_pointer_to_address): Delete function.
11719 (address_to_host_pointer): Delete function.
11720 * procfs.c (procfs_address_to_host_pointer): New function.
11721 * procfs.c (proc_set_watchpoint): Use.
11722 (procfs_can_use_hw_breakpoint): Update comments.
11723 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11724 (som_solib_add): Use.
11725 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11726 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11727
7ca9f392
AC
117282003-02-01 Andrew Cagney <ac131313@redhat.com>
11729
94bbfd30
AC
11730 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11731 strlen d_name.
11732
7ca9f392
AC
11733 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11734 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11735 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11736 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11737 (define_symbol): Update.
11738 * symfile.c (generic_load): Remove references to nindy.
11739 * symtab.c: Remove references to nindy.
11740
31a85ea2
AC
117412003-02-01 Andrew Cagney <ac131313@redhat.com>
11742
11743 * infcmd.c (print_float_info): Delete code conditional on
11744 FLOAT_INFO.
11745 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11746 * config/m68k/nm-apollo68b.h: Ditto.
11747 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11748 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11749 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11750
f6e85fc8
MK
117512003-02-01 Mark Kettenis <kettenis@gnu.org>
11752
6015b6a0
MK
11753 * config/i386/tm-i386os9k.h: Removed.
11754
f7a30bdf
MK
11755 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11756 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11757 they're identical to i[3456]86-*-sysv* now.
11758 * config/i386/i386v32.mh: Removed.
11759 * config/i386/xm-i386v32.h: Removed.
11760 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11761
28d52111
MK
11762 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11763
4d3f6bce
MK
11764 * config/i386/i386dgux.mh: Removed.
11765 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11766
f6e85fc8
MK
11767 * configure.in: Fix typo.
11768 * configure: Regenerated.
11769
53955967
DC
117702003-01-31 David Carlton <carlton@math.stanford.edu>
11771
11772 * dwarf2read.c (dwarf2_locate_sections): Set
11773 dwarf_ranges_section.
11774
b1364885
AC
117752003-01-31 Andrew Cagney <ac131313@redhat.com>
11776
8dbb1c65
AC
11777 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11778 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11779
8731e58e
AC
11780 * utils.c: Re-indent.
11781
b1364885
AC
11782 * config/djgpp/fnchange.lst: Delete nindy files.
11783 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11784 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11785 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11786 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11787 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11788 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11789 * Makefile.in (init.c): Remove nindy references.
11790 (saber_gdb): Delete rule.
11791 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11792 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11793 and a68v-nat.c.
11794 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11795 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11796 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11797 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11798 nindy-share/stop.h.
11799 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11800 * saber.suppress: Delete file.
11801
086df311
DJ
118022003-01-31 Daniel Jacobowitz <drow@mvista.com>
11803
11804 * dbxread.c (stabs_data): New static variable.
11805 (fill_symbuf): Support an in-memory buffer for stabs data.
11806 (stabs_seek): New function.
11807 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11808 (read_ofile_symtab): Use stabs_seek.
11809 (elfstab_build_psymtabs): Take an asection* instead of
11810 an offset and size. Relocate the stabs data if necessary.
11811 Save the section* for dbx_psymtab_to_symtab.
11812 * dwarf2read.c: Add section variables for each debug section.
11813 (dwarf2_locate_sections): Fill them in.
11814 (dwarf2_read_section): Take an asection* argument.
11815 Relocate the section contents if necessary.
11816 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11817 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11818 it to dwarf2_read_section.
11819 (dwarf2_build_frame_info): Update callers.
11820 * elfread.c (elf_symfile_read): Update call to
11821 elfstab_build_psymtabs.
11822 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11823 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11824 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11825 * symfile.c (symfile_dummy_outputs): New function.
11826 (symfile_relocate_debug_section): New function.
11827 * symfile.h (symfile_relocate_debug_section): Add prototype.
11828
87d1b352
RH
118292003-01-31 Richard Henderson <rth@redhat.com>
11830
11831 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11832 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11833 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11834 * alpha-tdep.c (alpha_register_name): Add "unique".
11835 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11836 (ALPHA_UNIQUE_REGNUM): New.
11837 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11838
c48861fb
AC
118392003-01-31 Andrew Cagney <ac131313@redhat.com>
11840
11841 * README: Remove reference to Ericsson 1800 monitor.
11842 * Makefile.in (remote-es.o): Delete rule.
11843 (ALLDEPFILES): Delete remote-es.c.
11844 * remote-es.c: Delete file.
11845 * config/m68k/es1800.mt: Delete file.
11846 * config/djgpp/fnchange.lst: Update.
11847 * configure.tgt: Delete m68*-ericsson-* target.
11848
d764a824
AF
118492003-01-31 Adam Fedor <fedor@gnu.org>
11850
11851 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11852 Remove duplicate/shadowing variable of same name.
11853
fe36c4f4
JB
118542003-01-30 Jim Blandy <jimb@redhat.com>
11855
11856 * symfile.c (find_separate_debug_file): Assert that the objfile's
11857 directory name we compute ends with a slash, and then assume that
11858 that's so everywhere we use it.
11859
cb741690
DJ
118602003-01-30 Daniel Jacobowitz <drow@mvista.com>
11861
11862 * valops.c (value_assign): Flush frame cache after stores to memory
11863 also.
11864
96ee5227
AC
118652003-01-30 Andrew Cagney <ac131313@redhat.com>
11866
11867 * Makefile.in (mon960-rom.o): Delete rule.
11868 * mon960-rom.c: Delete file.
11869
7f6104a9
AC
118702003-01-30 Andrew Cagney <ac131313@redhat.com>
11871
11872 * d10v-tdep.c: Include "frame-unwind.h".
11873 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11874 list.
11875 (next_addr, uses_frame): Delete.
11876 (struct d10v_unwind_cache): Define.
11877 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11878 Use info instead of next_addr and uses_frame globals.
11879 (d10v_frame_init_saved_regs): Delete function.
11880 (d10v_init_extra_frame_info): Delete function.
11881 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11882 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11883 init_frame_pc or frame_saved_pc.
11884 (d10v_pop_frame): Delete function.
11885 (do_d10v_pop_frame): Delete function.
11886 (d10v_frame_chain): Delete function.
11887 (d10v_frame_chain_valid): Delete function.
11888 (d10v_frame_pc_unwind): New function.
11889 (d10v_frame_id_unwind): New function.
11890 (saved_regs_unwinder): New function.
11891 (d10v_frame_register_unwind): New function.
11892 (d10v_frame_pop): New function.
11893 (d10v_frame_unwind): New variable.
11894 (d10v_frame_p): New function.
11895 (d10v_frame_saved_pc): Delete function.
11896 * Makefile.in (d10v-tdep.o): Update dependencies.
11897
cad2e848
JB
118982003-01-30 J. Brobecker <brobecker@gnat.com>
11899
11900 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11901 causing some regressions due to a change in the default value
11902 for this macro.
11903
af34e669
DJ
119042003-01-29 Richard Henderson <rth@redhat.com>
11905 Elena Zannoni <ezannoni@redhat.com>
11906 Daniel Jacobowitz <drow@mvista.com>
11907
11908 Fix PR gdb/961.
8ffd9b1b 11909 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11910 variables.
11911 (RANGES_SECTION): New.
11912 (dwarf_ranges_buffer): New variable.
11913 (struct comp_unit_head): Add member "die".
11914 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11915 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11916 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11917 (dwarf2_locate_sections): Likewise.
11918 (dwarf2_build_psymtabs): Read .debug_ranges.
11919 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11920 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11921 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11922 Look for DW_AT_ranges and return the bounding box.
11923
baa93fa6
CF
119242003-01-29 Brian Ford <ford@vss.fsi.com>
11925
11926 * win32-nat.c (cygwin_pid): Removed as unused.
11927 (child_attach): Try fall back to Cygwin pid.
11928
c63f977f
JB
119292003-01-29 Jim Blandy <jimb@redhat.com>
11930
11931 * objfiles.h (struct objfile): Doc fix.
11932
d62d1979
AC
119332003-01-29 Andrew Cagney <ac131313@redhat.com>
11934
11935 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11936 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11937 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11938 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11939 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11940 (FRAME_SAVED_PC): Change to a function with predicate.
11941 * gdbarch.h, gdbarch.c: Re-generate.
11942
1ae18a04
AC
119432003-01-28 Andrew Cagney <ac131313@redhat.com>
11944
52287340
AC
11945 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11946
1ae18a04
AC
11947 * complaints.c (complain): Delete function.
11948 * complaints.h (struct deprecated_complaint): Delete definition.
11949 (complain): Delete declaration.
11950
f2c16bd6
KB
119512003-01-28 Kevin Buettner <kevinb@redhat.com>
11952
11953 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11954 dummy frames.
11955
a94dd1fd
AC
119562003-01-27 Andrew Cagney <ac131313@redhat.com>
11957
11958 * sentinel-frame.h, sentinel-frame.c: New files.
11959 * Makefile.in (frame.o): Update dependencies.
11960 (SFILES): Add sentinel-frame.c.
11961 (sentinel_frame_h): Define.
11962 (COMMON_OBS): Add sentinel-frame.o.
11963 (sentinel-frame.o): Specify dependencies.
11964 * frame.c: Include "sentinel-frame.h".
11965 (frame_register_unwind): Rewrite assuming that there is always a a
11966 ->next frame.
11967 (frame_register, generic_unwind_get_saved_register): Ditto.
11968 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11969 (create_sentinel_frame, unwind_to_current_frame): New functions.
11970 (get_current_frame): Rewrite using create_sentinel_frame and
11971 unwind_to_current_frame. When possible, always create a frame.
11972 (create_new_frame): Set next to the sentinel frame.
11973 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11974 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11975 ID cache when necessary.
11976 (frame_saved_regs_id_unwind): Use frame_relative_level.
11977 (deprecated_generic_get_saved_register): Use frame_relative_level,
11978 get_frame_saved_regs, get_frame_pc, get_frame_base and
11979 get_next_frame.
11980 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11981 frame_register.
11982
5378adc4
DJ
119832003-01-27 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11986
51ee2ddc
DJ
119872003-01-27 Daniel Jacobowitz <drow@mvista.com>
11988
11989 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11990 (maintenance_set_profile_cmd): Use error () instead of warning ().
11991
d9feb4e7
DJ
119922003-01-27 Daniel Jacobowitz <drow@mvista.com>
11993
11994 * configure.in: Check that -pg works if using --enable-profiling.
11995 Check for monstartup and _mcleanup regardless of --enable-profiling.
11996 * maint.c: Check for monstartup and _mcleanup before using them.
11997 * config.in: Regenerated.
11998 * configure: Regenerated.
11999
2d188dd3
NC
120002003-01-24 Nick Clifton <nickc@redhat.com>
12001
12002 * Add sh2e support:
12003
12004 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12005
12006 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12007 (sh2e_show_regs): New.
12008 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12009 * config/sh/tm-sh.h: Added sh2e to comments.
12010
cb3c37b2
JB
120112003-01-23 Jim Blandy <jimb@redhat.com>
12012
12013 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12014 symbols found)" message here; we haven't checked for a separate
12015 debug info file yet, so we don't know yet.
12016 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12017 we've looked everywhere. Also, there's no need to print a special
12018 message when we're loading the separate debug info file: the one
12019 symbol_file_add prints is fine.
12020
5b5d99cf
JB
120212003-01-23 Alexander Larsson <alexl@redhat.com>
12022 Jim Blandy <jimb@redhat.com>
12023
12024 Add support for executables whose debug info has been separated
12025 out into a separate file, leaving only a link behind.
12026 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12027 and separate_debug_objfile_backlink.
12028 (put_objfile_before): New declaration.
12029 * symfile.c: #include "filenames.h".
12030 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12031 debug info in a separate file, read that, too. Save the addrs
12032 argument, so we can use it again to read the separated debug info;
12033 syms_from_objfile modifies the table we pass it.
12034 (reread_symbols): After re-reading an objfile, call
12035 reread_separate_symbols to refresh its separate debug info
12036 objfile, if it has one.
12037 (reread_separate_symbols, find_separate_debug_file,
12038 get_debug_link_info, separate_debug_file_exists): New functions.
12039 (debug_file_directory): New global var.
12040 (_initialize_symfile): Initialize debug_file_directory, and
12041 provide the new `set debug-file-directory' command to let the user
12042 change it.
12043 * objfiles.c (free_objfile): If this objfile has its debug info in
12044 a separate objfile, free that one too. If this is itself a
12045 separate debug info objfile, clear our parent's backlink.
12046 (put_objfile_before): New function.
12047 * utils.c (gnu_debuglink_crc32): New function.
12048 * defs.h (gnu_debuglink_crc32): New declaration.
12049 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12050 * configure.in: Handle --with-separate-debug-dir config option.
12051 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12052 * acconfig.h (DEBUGDIR): New macro.
12053 * configure, aclocal.m4, config.in: Regenerated.
12054
7e8580c1
JB
120552003-01-22 Jim Blandy <jimb@redhat.com>
12056
7904e09f
JB
12057 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12058 like the old symbol_file_add, but taking new arguments: you can
12059 now pass in either a `struct section_addr_info' list to say where
12060 each section is loaded, or a `struct section_offsets' table. Pass
12061 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12062 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12063 with the appropriate quiescent values for the new arguments.
12064
7e8580c1
JB
12065 * symfile.c: #include "gdb_assert.h".
12066 (syms_from_objfile): Add the ability to pass in a section offset
12067 table directly, as an alternative to the section_addr_info table.
12068 Document arguments better.
12069 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12070 * symfile.h (syms_from_objfile): Update declaration.
12071 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12072 syms_from_objfile.
12073 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12074
d28f9cdf
DJ
120752003-01-22 Daniel Jacobowitz <drow@mvista.com>
12076
12077 Original patch by Tom Tromey <tromey@cygnus.com> and
12078 Jason Molenda <jmolenda@apple.com>.
12079 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12080 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12081 * NEWS: Mention profiling.
12082 * configure.in (--enable-gdbtk): Fix typo.
12083 (--enable-profiling): New. Set PROFILE_CFLAGS.
12084 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12085 Fill in function.
12086 (profiling_state): New variable.
12087 (mcleanup_wrapper): New function.
12088 (_initialize_maint): Remove NOTYET, fix call to
12089 add_setshow_boolean_cmd for "maint set profile".
12090 * configure: Regenerated.
12091
df21e465
MH
120922003-01-21 Martin M. Hunt <hunt@redhat.com>
12093
12094 * Makefile.in (install-gdbtk): Install PNG images too.
12095
73c1f219
AC
120962003-01-21 Andrew Cagney <ac131313@redhat.com>
12097
12098 * exec.c (text_start): Delete global variable.
12099 (exec_file_attach): Make text_start local to the function.
12100 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12101 * valops.c (hand_function_call): Delete code that handles
12102 BEFORE_TEXT_END and AFTER_TEXT_END.
12103 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12104 of CALL_DUMMY_LOCATION.
12105 * gdbarch.c: Regenerate.
12106 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12107 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12108 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12109 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12110 (text_end): Delete extern declaration.
12111
eb4f72c5
AC
121122003-01-21 Andrew Cagney <ac131313@redhat.com>
12113
12114 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12115 * blockframe.c (backtrace_below_main): Move to "frame.c".
12116 (frame_chain_valid): Delete check for backtrace_below_main.
12117 (_initialize_blockframe): Delete initialization, move ``set
12118 backtrace-below-main'' command to "frame.c".
12119 (do_flush_frames_sfunc): Delete function.
12120 * frame.c: Include "command.h" and "gdbcmd.h".
12121 (frame_type_from_pc): New function.
12122 (create_new_frame): Use frame_type_from_pc.
12123 (legacy_get_prev_frame): New function.
12124 (get_prev_frame): Rewrite. When an old style frame, call
12125 legacy_get_prev_frame. Otherwize, unwind the PC first.
12126 (_initialize_frame): Add ``set backtrace-below-main'' command.
12127 * Makefile.in (frame.o): Update dependencies.
12128
778ce8cc
AC
121292003-01-19 Andrew Cagney <ac131313@redhat.com>
12130
12131 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12132 DEPRECATED_REGISTERS_INFO.
12133
01c193c8
AC
121342003-01-19 Andrew Cagney <ac131313@redhat.com>
12135
12136 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12137 Maintainers'. Update `Various Maintainers'.
12138
dedc2a2b
AC
121392003-01-19 Andrew Cagney <ac131313@redhat.com>
12140
12141 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12142 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12143 Suppress actual parameters when `-'.
12144 * gdbarch.h, gdbarch.c: Regenerate.
12145
b7261c70
AC
121462003-01-19 Andrew Cagney <ac131313@redhat.com>
12147
12148 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12149 code handling dummy frames.
12150
dbe9fe58
AC
121512003-01-19 Andrew Cagney <ac131313@redhat.com>
12152
12153 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12154 (struct frame_unwind): Add field pop.
12155 * frame.h (frame_pop): Declare.
12156 * frame.c (frame_saved_regs_pop): New function.
12157 (trad_frame_unwinder): Add frame_saved_regs_pop.
12158 (frame_pop): New function.
12159 * dummy-frame.c (dummy_frame_pop): New function.
12160 (discard_innermost_dummy): New function.
12161 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12162 (dummy_frame_unwind): Add dummy_frame_pop.
12163 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12164 * valops.c (hand_function_call): Ditto.
12165 * stack.c (return_command): Ditto.
12166
570b8f7c
AC
121672003-01-18 Andrew Cagney <ac131313@redhat.com>
12168
12169 * cris-tdep.c: Fix function declaration indentation.
12170 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12171 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12172 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12173 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12174 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12175 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12176
121772003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12178
12179 * README (Unpacking and Installation -- quick overview):
12180 Warn against ".../gdb-5.3/gdb/configure".
12181
494cca16
AC
121822003-01-18 Andrew Cagney <ac131313@redhat.com>
12183
12184 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12185 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12186 (struct frame_unwind): Declare opaque.
12187 (dummy_frame_p): Declare function.
12188 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12189 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12190 * dummy-frame.c: Include "frame-unwind.h".
12191 (dummy_frame_p): New function.
12192 (dummy_frame_unwind): New variable.
12193 * frame.c: Include "frame-unwind.h".
12194 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12195 to use the new unwind field.
12196 (set_unwind_by_pc): Delete function.
12197 (create_new_frame, get_prev_frame): Set unwind field using
12198 frame_unwind_find_by_pc.
12199 (trad_frame_unwind, trad_frame_unwinder): New variables.
12200 * frame.h (trad_frame_unwind): Declare variable.
12201 (frame_id_unwind_ftype): Delete declaration.
12202 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12203 (struct frame_unwind): Declare opaque.
12204 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12205 register_unwind with a single unwind pointer.
12206 * frame-unwind.h, frame-unwind.c: New files.
12207 * Makefile.in (SFILES): Add frame-unwind.c.
12208 (frame_unwind_h): Define.
12209 (COMMON_OBS): Add frame-unwind.o.
12210 (frame-unwind.o): Specify dependencies.
12211 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12212
4efb68b1
AC
122132003-01-18 Andrew Cagney <ac131313@redhat.com>
12214
12215 * ada-valprint.c: Eliminate PTR.
12216 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12217 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12218 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12219 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12220 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12221 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12222 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12223
a84d24ee
AC
122242003-01-17 Andrew Cagney <ac131313@redhat.com>
12225
762f08a3
AC
12226 * main.c (captured_main): Don't use PTR.
12227 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12228 * gdbtypes.c (lookup_primitive_typename): Ditto.
12229 (lookup_struct_elt_type): Ditto.
12230 * f-valprint.c (info_common_command): Ditto.
12231 (list_all_visible_commons): Ditto.
12232 * jv-typeprint.c (java_type_print_base): Ditto.
12233
a84d24ee
AC
12234 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12235 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12236 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12237 i386-interix-nat.c and i386-interix-tdep.c. Rename
12238 m68klinux-nat.c and m68klinux-tdep.c. Rename
12239 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12240 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12241 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12242 * main.c (captured_main): Use xfree, not free.
12243
c170fb60
AC
122442003-01-16 Andrew Cagney <ac131313@redhat.com>
12245
12246 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12247 ID back using a parameter.
12248 * frame.c (frame_id_unwind): Update call.
12249 (frame_saved_regs_id_unwind): Update.
12250 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12251 * dummy-frame.h (struct frame_id): Add opaque declaration.
12252 (dummy_frame_id_unwind): Update declaration.
12253
867f3898
AC
122542003-01-15 Andrew Cagney <ac131313@redhat.com>
12255
12256 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12257
40622be8 122582003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12259
40622be8 12260 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12261
ae66c1fc
EZ
122622003-01-14 Elena Zannoni <ezannoni@redhat.com>
12263
997b089a 12264 Fix PR gdb/898
ae66c1fc
EZ
12265 * breakpoint.c (until_break_command): Add new argument. Use it to
12266 decide whether to stop only at the current frame or not.
12267 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12268 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12269 call.
12270 (advance_command): New function.
12271 (_initialize_infcmd): Update help string for 'until' command.
12272 Add new 'advance' command.
12273
a04257e6
DC
122742003-01-14 David Carlton <carlton@math.stanford.edu>
12275
12276 * linespec.c (decode_line_1): Normalize comments.
12277 (set_flags): Ditto.
12278 (locate_first_half): Ditto.
12279 (decode_compound): Ditto.
12280 (symtab_from_filename): Ditto.
12281 (decode_all_digits): Ditto.
12282 (decode_dollar): Ditto.
12283 (find_methods): Ditto.
12284 (find_toplevel_char): Ditto.
12285
1bac305b
AC
122862003-01-13 Andrew Cagney <ac131313@redhat.com>
12287
12288 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12289 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12290 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12291 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12292 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12293 * language.c, language.h, m32r-tdep.c: Update copyright.
12294 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12295 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12296 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12297 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12298 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12299 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12300
25caa7a8
EZ
123012003-01-13 Elena Zannoni <ezannoni@redhat.com>
12302
12303 * stabsread.h (process_later, resolve_cfront_continuation):
12304 Obsolete.
12305 Update copyright years.
12306 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12307 Update copyright year.
12308 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12309 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12310 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12311 Update copyright year.
12312 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12313 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12314 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12315 (parse_partial_symbols): Obsolete cfront support.
12316 * stabsread.c
12317 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12318 macros.
12319 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12320 read_cfront_baseclasses, read_cfront_member_functions,
12321 resolve_cfront_continuation,read_cfront_static_fields,
12322 copy_cfront_struct_fields): Obsolete functions.
12323 (define_symbol, read_one_struct_field): Obsolete cfront support.
12324 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12325 Update Copyright year.
12326
7789c6f5
EZ
123272003-01-13 Elena Zannoni <ezannoni@redhat.com>
12328
12329 * stack.c (print_frame_info, print_stack_frame_base_stub,
12330 print_stack_frame_base, show_and_print_stack_frame_stub,
12331 show_and_print_stack_frame, print_only_stack_frame_stub,
12332 print_only_stack_frame): Delete functions.
12333 (print_stack_frame_stub): Call print_frame_info instead of
12334 print_frame_info_base.
12335 (print_frame_info_base): Rename to print_frame_info.
12336 (backtrace_command_1): Call print_frame_info, instead of
12337 print_frame_info_base.
12338 (current_frame_command): Call print_stack_frame, instead of
12339 print_only_stack_frame.
12340 (frame_command): Call print_stack_frame, instead of
12341 show_and_print_stack_frame.
12342 (up_command): Ditto.
12343 (down_command): Ditto.
12344 * frame.h (print_only_stack_frame): Delete prototype.
12345 * infrun.c (normal_stop): Call print_stack_frame, instead of
12346 show_and_print_stack_frame.
12347 * thread.c (info_threads_command): Call print_stack_frame, instead
12348 of print_only_stack_frame.
12349
3f5a3016
AC
123502003-01-13 Andrew Cagney <ac131313@redhat.com>
12351
d99ba314
AC
12352 * README (Graphical interface to GDB): Update URL. Point at
12353 gdb/links/.
12354
3f5a3016
AC
12355 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12356 version match.
12357
083ae935
DJ
123582003-01-13 Daniel Jacobowitz <drow@mvista.com>
12359
12360 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12361 lines.
12362
5365276c
DJ
123632003-01-13 Daniel Jacobowitz <drow@mvista.com>
12364
12365 * thread-db.c (attach_thread): Prototype.
12366 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12367 thread information (ti), and valid flags (th_valid, ti_valid).
12368 (attach_thread): Move target_pid_to_str call to after the thread
12369 is added to GDB's list. Initialize the cache.
12370 (thread_get_info_callback, thread_db_map_id2thr)
12371 (thread_db_get_info): New functions.
12372 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12373 (thread_db_store_registers, thread_db_thread_alive)
12374 (thread_db_get_thread_local_address): Use them.
12375 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12376 of calling error() for threads in unknown state.
12377
12378 (clear_lwpid_callback): New function.
12379 (thread_db_resume): Use it to clear the cache.
12380
9fc30b6b
DJ
123812003-01-13 Daniel Jacobowitz <drow@mvista.com>
12382
12383 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12384 (resume_callback): Remove dead code.
12385
8f871025
AC
123862003-01-13 Andrew Cagney <ac131313@redhat.com>
12387
12388 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12389 predicate.
12390 * gdbarch.h, gdbarch.c: Regenerate.
12391 * stack.c (frame_info): Only initialize the saved registers when
12392 FRAME_INIT_SAVED_REGS_P.
12393 * frame.c (frame_saved_regs_register_unwind): Assert
12394 FRAME_INIT_SAVED_REGS_P.
12395 (deprecated_generic_get_saved_register): Ditto.
12396
3f565f1e
DJ
123972003-01-13 Daniel Jacobowitz <drow@mvista.com>
12398
12399 * source.c (openp): Squelch warning about "filename".
12400
072b1022
DJ
124012003-01-13 Daniel Jacobowitz <drow@mvista.com>
12402
12403 * source.c (openp): If the file does not exist don't necessarily
12404 search the path.
12405
973ccf8b
DJ
124062003-01-13 Daniel Jacobowitz <drow@mvista.com>
12407
12408 Fix PR gdb/872.
12409 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12410 (integer_types_same_name_p): New function.
12411 (rank_one_type): Use it.
12412 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12413
030292b7
DJ
124142003-01-13 Daniel Jacobowitz <drow@mvista.com>
12415
12416 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12417 variables.
12418 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12419 * configure.in: Add --with-sysroot.
12420 * configure: Regenerated.
12421 * main.c (gdb_sysroot): New variable.
12422 (captured_main): Initialize gdb_sysroot.
12423 * defs.h (gdb_sysroot): New extern declaration.
12424 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12425
afb5d334
MC
124262003-01-12 Michael Chastain <mec@shout.net>
12427
12428 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12429
751ceeb4
MC
124302003-01-12 Michael Chastain <mec@shout.net>
12431
12432 * top.c (print_gdb_version): Bump copyright year to 2003.
12433
94cd26f8
DC
124342003-01-12 David Carlton <carlton@bactrian.org>
12435
12436 * linespec.c (symtab_from_filename): Rename variable 's' to
12437 'file_symtab'.
12438
1ce79225
AC
124392003-01-12 Andrew Cagney <ac131313@redhat.com>
12440
12441 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12442 dummy frame.
12443 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12444
fa1fd571
AC
124452003-01-12 Andrew Cagney <ac131313@redhat.com>
12446
12447 * d10v-tdep.c: Include "gdb_assert.h".
12448 (d10v_store_return_value): Rewrite to match current interface.
12449 (d10v_extract_struct_value_address): Ditto.
12450 (d10v_extract_return_value): Ditto.
12451 (d10v_gdbarch_init): Set store_restore_value,
12452 extract_struct_value_address and extract_return_value.
12453
68b8d23e
JB
124542003-01-12 J. Brobecker <brobecker@gnat.com>
12455
12456 * hpread.c (set_namestring): New procedure replacing the
12457 SET_NAMESTRING macro.
12458 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12459 by calls to set_namestring.
12460
124612003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12462
12463 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12464 a compilation warning.
12465 (hpread_process_one_debug_symbol): Likewise.
12466
88d262ca
DC
124672003-01-10 David Carlton <carlton@math.stanford.edu>
12468
12469 * linespec.c (decode_line_1): Rename variable 's' to
12470 'file_symtab'.
12471 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12472 (decode_dollar): Ditto.
12473 (decode_variable): Ditto.
12474 (symbol_found): Ditto.
12475
86669319
MC
124762003-01-09 Michael Chastain <mec@shout.net>
12477
12478 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12479
616a9dc4
CV
124802003-01-07 Corinna Vinschen <vinschen@redhat.com>
12481
12482 * win32-nat.c (set_process_privilege): New function.
12483 (child_attach): Call set_process_privilege() to enable the
12484 SE_DEBUG_NAME user privilege if available in process token.
12485
3269bcfa
JB
124862003-01-10 J. Brobecker <brobecker@gnat.com>
12487
12488 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12489 compilation error in the previous revision.
12490
2b0ee454
DC
124912003-01-09 David Carlton <carlton@math.stanford.edu>
12492
12493 * linespec.c: Update copyright.
12494
b3ba1b44
DJ
124952003-01-09 Daniel Jacobowitz <drow@mvista.com>
12496
12497 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12498 than inferior_ptid.
12499 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12500
4ef3f3be
AC
125012003-01-09 Andrew Cagney <ac131313@redhat.com>
12502
479ab5a0
AC
12503 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12504 Update comments.
12505 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12506 (frame_saved_regs_zalloc): Update.
12507 (frame_saved_regs_register_unwind): Update.
12508 (create_new_frame): Update.
12509 (get_prev_frame): Update.
12510 (frame_extra_info_zalloc): Update.
12511 (deprecated_get_frame_saved_regs): Update.
12512 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12513 * cris-tdep.c: Update comment.
12514
bde58177
AC
12515 * somsolib.h: Fix function indentation.
12516 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12517 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12518 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12519 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12520 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12521
4ef3f3be
AC
12522 * infrun.c (follow_fork): Use ISO C definition.
12523 * expprint.c (print_subexp): Use xfree instead of free.
12524 * charset.c: Include "gdb_string.h" instead of <string.h>.
12525 (register_iconv_charsets): Use ISO C definition.
12526 (host_charset, target_charset): Ditto.
12527 * Makefile.in (charset.o): Update dependencies.
12528 (mi-cmd-env.o): Update dependencies.
12529
1c615f7a
AC
125302003-01-08 Andrew Cagney <cagney@redhat.com>
12531
12532 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12533 get_frame_base.
12534
c9a1dc08
AC
125352003-01-08 Andrew Cagney <ac131313@redhat.com>
12536
12537 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12538 build directories. Save edited gdb output in Mbuild.log. If a
12539 build fails, remove any final GDB executable.
12540
dbad9d94
AC
125412003-01-08 Andrew Cagney <ac131313@redhat.com>
12542
12543 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12544 replacing hex constants with function names and stripping leading
12545 file name directory prefixes.
12546
8d357cca
AC
125472003-01-08 Andrew Cagney <cagney@redhat.com>
12548
12549 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12550 get_frame_base.
12551
bca02a8a
DC
125522003-01-08 David Carlton <carlton@math.stanford.edu>
12553
12554 * linespec.c (decode_line_1): Move code into decode_variable.
12555 (decode_variable): New function.
12556
7f8ab3a0
AC
125572003-01-08 Andrew Cagney <ac131313@redhat.com>
12558
12559 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12560
7b5849cc
AC
125612003-01-08 Andrew Cagney <cagney@redhat.com>
12562
12563 * cris-tdep.c (cris_frame_init_saved_regs): Use
12564 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12565 saved_regs buffer.
12566 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12567 (sh64_nofp_frame_init_saved_regs): Ditto.
12568 (sh_fp_frame_init_saved_regs): Ditto.
12569 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12570 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12571 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12572 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12573
72a5efb3
DJ
125742003-01-08 Daniel Jacobowitz <drow@mvista.com>
12575
12576 * minsyms.c (lookup_minimal_symbol): Update comment.
12577 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12578 (lookup_minimal_symbol_solib_trampoline): Likewise.
12579
11c02a10
AC
125802003-01-08 Andrew Cagney <cagney@redhat.com>
12581
aab3ea25
AC
12582 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12583 frame_relative_level.
12584
da50a4b7
AC
12585 * alpha-tdep.c: Use get_frame_extra_info.
12586 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12587 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12588 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12589 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12590
11c02a10
AC
12591 * alpha-tdep.c: Use get_next_frame.
12592 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12593 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12594 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12595 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12596 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12597 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12598 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12599
1e2330ba
AC
126002003-01-07 Andrew Cagney <cagney@redhat.com>
12601
12602 * alpha-tdep.c: Use get_frame_base.
12603 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12604 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12605 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12606 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12607 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12608 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12609 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12610 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12611
2d75187b
AC
126122003-01-07 Andrew Cagney <cagney@redhat.com>
12613
12614 * frame.c (deprecated_get_frame_context): New function.
12615 (deprecated_set_frame_context): New function.
12616 * frame.h (deprecated_get_frame_context): Declare.
12617 (deprecated_set_frame_context): Declare.
12618 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12619 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12620
483d36b2
AC
126212003-01-07 Andrew Cagney <cagney@redhat.com>
12622
12623 * frame.c (deprecated_set_frame_next_hack): New function.
12624 (deprecated_set_frame_prev_hack): New function.
12625 * frame.h (deprecated_set_frame_next_hack): Declare.
12626 (deprecated_set_frame_prev_hack): Declare.
12627 * mcore-tdep.c (analyze_dummy_frame): Use
12628 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12629 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12630
14e91ac5
DC
126312003-01-07 David Carlton <carlton@math.stanford.edu>
12632
12633 * linespec.c (decode_line_1): Move code into decode_dollar.
12634 (decode_dollar): New function.
12635
b0c6b05c
AC
126362003-01-07 Andrew Cagney <cagney@redhat.com>
12637
12638 * arm-tdep.c (arm_init_extra_frame_info): Use
12639 deprecated_update_frame_base_hack.
12640 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12641 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12642 (fix_frame_pointer): Ditto.
12643 (mn10300_analyze_prologue): Ditto.
12644
a00a19e9
AC
126452003-01-07 Andrew Cagney <cagney@redhat.com>
12646
12647 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12648 extra_info using frame_extra_info_zalloc.
12649 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12650 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12651 (sh64_init_extra_frame_info): Ditto.
12652 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12653 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12654 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12655 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12656 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12657 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12658 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12659 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12660 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12661 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12662 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12663 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12664
12665 * mn10300-tdep.c (analyze_dummy_frame): Use
12666 deprecated_set_frame_extra_info_hack.
12667 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12668
1fb4c65b
JB
126692003-01-07 J. Brobecker <brobecker@gnat.com>
12670
12671 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12672 class is not scText. These do not define "real" procedures.
12673 (parse_partial_symbols): Likewise.
12674
9fe7d6bf
MS
126752003-01-06 Michael Snyder <msnyder@redhat.com>
12676
12677 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12678
f6c609c4
AC
126792003-01-06 Andrew Cagney <ac131313@redhat.com>
12680
12681 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12682 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12683 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12684 deprecated_frame_xmalloc_with_cleanup.
12685 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12686 deprecated_frame_xmalloc.
12687 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12688 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12689
d995ff4b
AC
126902003-01-06 Andrew Cagney <cagney@redhat.com>
12691
84dc46cb
AC
12692 * x86-64-linux-tdep.c: Include "osabi.h".
12693 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12694
d995ff4b
AC
12695 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12696
66140c26
AC
126972003-01-06 Andrew Cagney <cagney@redhat.com>
12698
12699 * MAINTAINERS (Target Instruction Set Architectures): Update
12700 arm-elf. Can be built with -Werror, has been multiarched.
12701
12702 * value.h (unpack_long): Make buffer parameter constant.
12703 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12704 * scm-lang.h (scm_parse): Ditto.
12705 * defs.h (extract_typed_address, extract_address): Ditto.
12706 (extract_long_unsigned_integer): Ditto.
12707 * inferior.h (unsigned_pointer_to_address): Ditto.
12708 (signed_pointer_to_address): Ditto.
12709 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12710 * gdbarch.h, gdbarch.c: Regenerate.
12711 * findvar.c (extract_long_unsigned_integer): Update.
12712 (extract_address): Update.
12713 (extract_typed_address): Update.
12714 (unsigned_pointer_to_address): Update.
12715 * values.c (unpack_long): Update.
12716 (unpack_double): Update.
12717 (unpack_pointer): Update.
12718 (unpack_field_as_long): Update.
12719 * d10v-tdep.c (d10v_pointer_to_address): Update.
12720 * avr-tdep.c (avr_pointer_to_address): Update.
12721 * scm-lang.c (scm_unpack): Update.
12722 * findvar.c (signed_pointer_to_address): Update.
12723
b089b3da
ML
127242003-01-06 Michal Ludvig <mludvig@suse.cz>
12725
8ffd9b1b 12726 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12727 since it is in i386-tdep.c.
12728
aff87235
JB
127292003-01-06 J. Brobecker <brobecker@gnat.com>
12730
12731 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12732 failure introduced in the previous change.
12733
34f5e845
MC
127342003-01-05 Michael Chastain <mec@shout.net>
12735
12736 * README: Remove references to deleted remote-*.c files:
12737 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12738 remote-nrom.c, remote-os9k.c, remote-udi.c.
12739
28bcfd30
MK
127402003-01-05 Mark Kettenis <kettenis@gnu.org>
12741
12742 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12743 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12744 i386_get_longjmp_target.
12745
15a5b3ee
AC
127462003-01-05 Andrew Cagney <ac131313@redhat.com>
12747
12748 * arm-tdep.c (prologue_cache): Change to a pointer.
12749 (_initialize_arm_tdep): Allocate prologue_cache.
12750 (check_prologue_cache): Update.
12751 (save_prologue_cache): Update.
12752 (arm_gdbarch_init): Update.
12753
c263362b
DJ
127542003-01-04 Daniel Jacobowitz <drow@mvista.com>
12755
12756 * stabsread.c (update_method_name_from_physname): Call complaint()
12757 instead of error.
12758
51603483
DJ
127592003-01-04 Daniel Jacobowitz <drow@mvista.com>
12760
12761 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12762 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12763 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12764
12765 * blockframe.c: Include "gdbcmd.h" and "command.h".
12766 (backtrace_below_main): New variable.
12767 (file_frame_chain_valid, func_frame_chain_valid)
12768 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12769 (generic_func_frame_chain_valid): Remove functions.
12770 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12771 (_initialize_blockframe): New function.
12772 * Makefile.in (blockframe.o): Update dependencies.
12773 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12774 comment. Call frame_chain_valid ().
12775 * frame.h: Remove old prototypes. Add prototype for
12776 frame_chain_valid and update comments to match.
12777 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12778 Remove old comment.
12779 * gdbarch.h: Regenerated.
12780 * gdbarch.c: Regenerated.
12781
12782 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12783 set_gdbarch_frame_chain_valid.
12784 * avr-tdep.c (avr_gdbarch_init): Likewise.
12785 * cris-tdep.c (cris_gdbarch_init): Likewise.
12786 * frv-tdep.c (frv_gdbarch_init): Likewise.
12787 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12788 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12789 (i386_nw_init_abi): Likewise.
12790 (i386_gdbarch_init): Likewise.
12791 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12792 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12793 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12794 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12795 * mips-tdep.c (mips_gdbarch_init): Likewise.
12796 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12797 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12798 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12799 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12800 * s390-tdep.c (s390_gdbarch_init): Likewise.
12801 * sh-tdep.c (sh_gdbarch_init): Likewise.
12802 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12803 * v850-tdep.c (v850_gdbarch_init): Likewise.
12804 * vax-tdep.c (vax_gdbarch_init): Likewise.
12805 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12806
12807 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12808 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12809 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12810 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12811 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12812 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12813 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12814 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12815
b00a8037
DJ
128162002-01-04 Daniel Jacobowitz <drow@mvista.com>
12817
12818 * Makefile.in (acconfig_h): Remove incorrect macro.
12819 (config_h): Define.
12820 (osabi.o): Update dependencies.
12821 * configure.tgt: Set gdb_osabi based on target triplet.
12822 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12823 * configure: Regenerated.
12824 * config.in: Regenerated.
12825 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12826 (GDB_OSABI_DEFAULT): Define if not already defined.
12827 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12828 (set_osabi_string): New variables.
12829 (gdbarch_register_osabi): Add new OS ABI to
12830 gdb_osabi_available_names.
12831 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12832 (set_osabi, show_osabi): New functions.
12833 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12834
4be87837
DJ
128352003-01-04 Daniel Jacobowitz <drow@mvista.com>
12836
12837 * arch-utils.c (gdbarch_info_init): Set osabi to
12838 GDB_OSABI_UNINITIALIZED.
12839 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12840 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12841 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12842 * gdbarch.c: Regenerated.
12843 * gdbarch.h: Regenerated.
12844 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12845 there's no BFD.
12846 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12847 * osabi.h (enum gdb_osabi): Move to defs.h.
12848 (gdbarch_init_osabi): Update prototype.
12849 * defs.h (enum gdb_osabi): Moved here.
12850 * Makefile.in: Update dependencies.
12851
12852 * alpha-tdep.h: Don't include "osabi.h".
12853 (struct gdbarch_tdep): Remove osabi member.
12854 * alpha-tdep.c: Include "osabi.h".
12855 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12856 iterate over arches. Update call to gdbarch_init_osabi.
12857 (alpha_dump_tdep): Don't dump osabi.
12858 * alpha-linux-tdep.c: Include "osabi.h".
12859 * alpha-osf1-tdep.c: Include "osabi.h".
12860 * alphafbsd-tdep.c: Include "osabi.h".
12861 * alphanbsd-tdep.c: Include "osabi.h".
12862
12863 * arm-tdep.h: Don't include "osabi.h".
12864 (struct gdbarch_tdep): Remove osabi member.
12865 * arm-tdep.c: Include "osabi.h".
12866 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12867 iterate over arches. Update call to gdbarch_init_osabi.
12868 (arm_dump_tdep): Don't dump osabi.
12869 * arm-linux-tdep.c: Include "osabi.h".
12870 * armnbsd-tdep.c: Include "osabi.h".
12871
12872 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12873 Update call to gdbarch_init_osabi.
12874
12875 * i386-tdep.h: Don't include "osabi.h".
12876 (struct gdbarch_tdep): Remove osabi member.
12877 * i386-tdep.c: Include "osabi.h".
12878 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12879 iterate over arches. Update call to gdbarch_init_osabi.
12880 (i386_dump_tdep): Don't dump osabi.
12881 * i386-linux-tdep.c: Include "osabi.h".
12882 * i386-sol2-tdep.c: Include "osabi.h".
12883 * i386bsd-tdep.c: Include "osabi.h".
12884 * i386gnu-tdep.c: Include "osabi.h".
12885 * i386ly-tdep.c: Include "osabi.h".
12886 * i386nbsd-tdep.c: Include "osabi.h".
12887 * i386obsd-tdep.c: Include "osabi.h".
12888
12889 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12890 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12891 check osabi when iterating over arches. Update call to
12892 gdbarch_init_osabi.
12893 (mips_dump_tdep): Don't dump osabi.
12894
12895 * ns32k-tdep.h: Don't include "osabi.h".
12896 (struct gdbarch_tdep): Remove.
12897 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12898 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12899 allocate tdep. Update call to gdbarch_init_osabi.
12900 (ns32k_dump_tdep): Remove.
12901 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12902 * ns32knbsd-tdep.c: Include "osabi.h".
12903
12904 * ppc-tdep.h: Don't include "osabi.h".
12905 (struct gdbarch_tdep): Remove osabi member.
12906 * rs6000-tdep.c: Include "osabi.h".
12907 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12908 osabi when iterating over arches. Update call to
12909 gdbarch_init_osabi.
12910 (rs6000_dump_tdep): Don't dump osabi.
12911 * ppc-linux-tdep.c: Include "osabi.h".
12912 * ppcnbsd-tdep.c: Include "osabi.h".
12913
12914 * sh-tdep.h: Don't include "osabi.h".
12915 (struct gdbarch_tdep): Remove osabi member.
12916 * sh-tdep.c: Include "osabi.h".
12917 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12918 iterate over arches. Update call to gdbarch_init_osabi.
12919 (sh_dump_tdep): Don't dump osabi.
12920 * shnbsd-tdep.c: Include "osabi.h".
12921
12922 * sparc-tdep.c: Include "osabi.h".
12923 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12924 iterate over arches. Update call to gdbarch_init_osabi.
12925 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12926 tdep structure.
12927
12928 * vax-tdep.h: Don't include "osabi.h".
12929 (struct gdbarch_tdep): Remove.
12930 * vax-tdep.c: Include "osabi.h".
12931 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12932 iterate over arches. Don't allocate tdep. Update call
12933 to gdbarch_init_osabi.
12934 (vax_dump_tdep): Remove.
12935 (_initialize_vax_tdep): Update call to gdbarch_register.
12936
a881cf8e
DJ
129372003-01-04 Daniel Jacobowitz <drow@mvista.com>
12938
12939 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12940 entirely.
12941 (breakpoint_re_set_one): Don't fetch the value for a disabled
12942 watchpoint.
12943
1e698235
DJ
129442003-01-04 Daniel Jacobowitz <drow@mvista.com>
12945
12946 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12947 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12948 (COERCE_FLOAT_TO_DOUBLE): Remove.
12949 * gdbarch.c: Regenerate.
12950 * gdbarch.h: Regenerate.
12951 * Makefile.in: Remove value_h from gdbarch_h.
12952 * valops.c (coerce_float_to_double): New variable.
12953 (default_coerce_float_to_double): Remove.
12954 (standard_coerce_float_to_double): Remove.
12955 (value_arg_coerce): Use coerce_float_to_double.
12956 (_initialize_valops): Add "set coerce-float-to-double".
12957 * value.h (default_coerce_float_to_double): Remove prototype.
12958 (standard_coerce_float_to_double): Remove prototype.
12959
12960 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12961 prototyped.
12962 * mdebugread.c (parse_symbol): Likewise.
12963 * stabsread.c (define_symbol): Mark all functions as prototyped.
12964
12965 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12966 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12967 set_gdbarch_coerce_float_to_double.
12968 * arm-tdep.c (arm_gdbarch_init): Likewise.
12969 * frv-tdep.c (frv_gdbarch_init): Likewise.
12970 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12971 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12972 * mips-tdep.c (mips_gdbarch_init): Likewise.
12973 (mips_coerce_float_to_double): Remove.
12974 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12975 (rs6000_coerce_float_to_double): Remove.
12976 * s390-tdep.c (s390_gdbarch_init): Likewise.
12977 * sh-tdep.c (sh_gdbarch_init): Likewise.
12978 (sh_coerce_float_to_double): Remove.
12979 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12980 (sparc_coerce_float_to_double): Remove.
12981 * v850-tdep.c (v850_gdbarch_init): Likewise.
12982 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12983 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12984 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12985 (hppa_coerce_float_to_double): Remove prototype.
12986 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12987
f436a26a
DJ
129882003-01-04 Daniel Jacobowitz <drow@mvista.com>
12989
12990 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12991
248f8055
DJ
129922003-01-04 Daniel Jacobowitz <drow@mvista.com>
12993
12994 Suggested by Stewart Brown <sb24@avaya.com>:
12995 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12996 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12997 (c_type_print_varspec_suffix): Likewise.
12998
72cfdc76
MK
129992003-01-04 Mark Kettenis <kettenis@gnu.org>
13000
bfd260bb
MK
13001 * configure.in: Don't set and AC_SUBST SUBDIRS.
13002 * configure: Regenerated.
13003
72cfdc76
MK
13004 * configure.in: Remove code dealing with shared libraries.
13005 * Makefile.in: Remove HLDFLAGS and HLDENV.
13006 * configure: Regenerated.
13007
c8b8a898
AC
130082003-01-04 Andrew Cagney <ac131313@redhat.com>
13009
13010 * frame.c (deprecated_frame_xmalloc): New function.
13011 (deprecated_set_frame_saved_regs_hack): New function.
13012 (deprecated_set_frame_extra_info_hack): New function.
13013 * frame.h (deprecated_frame_xmalloc): Declare.
13014 (deprecated_set_frame_saved_regs_hack): Declare.
13015 (deprecated_set_frame_extra_info_hack): Declare.
13016
14abd0fb
MK
130172003-01-04 Mark Kettenis <kettenis@gnu.org>
13018
8ee53726
MK
13019 * configure.in: Move code that provides the --enable-gdbtk option
13020 right after the code that handles the --enable-tui option, and
13021 polish it somewhat.
13022 * configure: Regenerated.
13023
14abd0fb
MK
13024 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13025 AC_CHECK_FUNCS and remove the old check for pread64.
13026 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13027 * acconfig.h (_GNU_SOURCE): Add.
13028 (HAVE_PREAD64): Remove.
13029 * configure, aclocal.m4, config.in: Regenerated.
13030
b2fb4676
AC
130312003-01-03 Andrew Cagney <ac131313@redhat.com>
13032
13033 * alpha-tdep.c: Use get_frame_saved_regs.
13034 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13035 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13036 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13037 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13038 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13039
8dcde887
MK
130402003-01-03 Mark Kettenis <kettenis@gnu.org>
13041
13042 * configure.in: Remove all use of the SUBDIRS variable; add
13043 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13044 code providing the --enable-multi-ice option, and move it right in
13045 front of the code that checks whether gdbserver is supported.
13046 Polish that too.
13047 * configure: Regenerated.
13048 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13049 @SUBDIRS@.
13050
8ccd593b
AC
130512003-01-03 Andrew Cagney <cagney@redhat.com>
13052
13053 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13054 * avr-tdep.c, cris-tdep.c: Ditto.
13055 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13056 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13057
91151a06
MK
130582003-01-03 Mark Kettenis <kettenis@gnu.org>
13059
13060 * configure.in: Remove --enable-netrom option.
13061 * configure: Regenerated.
13062
8fe84d01
MK
130632003-01-03 Mark Kettenis <kettenis@gnu.org>
13064
13065 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13066 declaration for `struct re_pattern_buffer' instead.
13067 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13068
f0394be6
JB
130692003-01-03 J. Brobecker <brobecker@gnat.com>
13070
13071 * mdebugread.c (parse_symbol): Count until the stEnd matching
13072 the structure name.
13073
27e9bf90
MK
130742003-01-02 Mark Kettenis <kettenis@gnu.org>
13075
93d331ba
MK
13076 * configure.in: Remove --with-cpu option.
13077 subscripts. Remove evil changequotes here.
13078 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13079 * config.in, configure: Regenerated.
8ffd9b1b 13080
27e9bf90
MK
13081 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13082 * configure.in: Cleanup section that sources GDB and BFD configure
13083 subscripts. Remove evil changequotes here.
13084 * config.in, configure: Regenerated.
13085
50abf9e5
AC
130862003-01-02 Andrew Cagney <ac131313@redhat.com>
13087
13088 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13089 frame accessor methods.
13090 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13091 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13092 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13093 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13094 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13095 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13096 * z8k-tdep.c: Ditto.
8ffd9b1b 13097
287c1a40
MK
130982003-01-02 Mark Kettenis <kettenis@gnu.org>
13099
f5dbc56d
MK
13100 * configure.in: Remove UI_OUT configuration code.
13101 * ada-lang.c: Update assuming UI_OUT is always true.
13102 * Makefile.in (UIOUT_CFLAGS): Remove.
13103 * configure: Regenerated.
13104 * TODO: Remove blurb about elimination of -DUI_OUT.
13105
627af7ea
MK
13106 * configure.in: Move code that provides the --enable-gdbcli,
13107 --enable-gdbmi options right before the code that handles the
13108 --enable-tui option. Polish a bit.
13109 * configure: Regenerated.
13110
06825bd1
MK
13111 * configure.in: Rewrite check for GNU regex and the
13112 --without-included regex option, and move it into the "Checks for
13113 library functions" section. This makes us use the system regex
13114 again by default on systems with version 2 of the GNU C library.
13115 This was apparently broken.
13116 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13117 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13118 * config.in, configure: Regenerated.
13119
287c1a40
MK
13120 * configure.in: Move code that provides the --enable-tui option
13121 before the "Checks for libraries" section. Polish the code
13122 somewhat and set need_curses to yes if we build the TUI. Rewrite
13123 code that looks for a library providing termcap functionality to
13124 match more closely what's done in the Readline library, and move
13125 it into to the "Checks for libraries" section.
13126 * configure: Regenerated.
13127 * Makefile.in (TERMCAP): Remove variable.
13128 * config/i386/go32.mh (TERMCAP): Remove variable.
13129
684e56bf
AC
131302003-01-02 Andrew Cagney <ac131313@redhat.com>
13131
13132 * MAINTAINERS: Mention gdb_mbuild.sh.
13133 * gdb_mbuild.sh: Rewrite.
13134
e1ea1d75
MK
131352003-01-02 Mark Kettenis <kettenis@gnu.org>
13136
13137 * configure.in: Fix typo in last change.
13138 * config.in, configure: Regenerated.
13139
1b831c93
AC
131402003-01-02 Andrew Cagney <ac131313@redhat.com>
13141
13142 * valarith.c (value_binop): Delete obsolete code and comments.
13143 * configure.host: Ditto.
13144 * buildsym.h (make_blockvector): Ditto.
13145 * buildsym.c (make_blockvector): Ditto.
13146 * defs.h (enum language): Ditto.
13147 (chill_demangle): Ditto.
13148 * elfread.c (elf_symtab_read): Ditto.
13149 * dwarfread.c (CHILL_PRODUCER): Ditto.
13150 (set_cu_language): Ditto.
13151 (handle_producer): Ditto.
13152 * expprint.c (print_subexp): Ditto.
13153 * gdbtypes.c (chill_varying_type): Ditto.
13154 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13155 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13156 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13157 (chill_varying_type): Ditto.
13158 * language.h (_LANG_chill): Ditto.
13159 * language.c (binop_result_type, integral_type): Ditto.
13160 (character_type, string_type, structured_type): Ditto.
13161 (lang_bool_type, binop_type_check): Ditto.
13162 * stabsread.h (os9k_stabs): Ditto.
13163 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13164 (define_symbol, read_type, read_struct_fields): Ditto.
13165 (read_array_type, read_enum_type, read_huge_number): Ditto.
13166 (read_range_type, start_stabs): Ditto.
13167 * symfile.c (init_filename_language_table): Ditto.
13168 (add_psymbol_with_dem_name_to_list): Ditto.
13169 * symtab.c (symbol_init_language_specific): Ditto.
13170 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13171 * symtab.h (struct general_symbol_info): Ditto.
13172 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13173 * typeprint.c (typedef_print): Ditto.
13174 * utils.c (fprintf_symbol_filtered): Ditto.
13175 * valops.c (value_cast, search_struct_field, value_slice): Delete
13176 obsolete code.
13177 (varying_to_slice): Delete function.
13178 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13179 (varying_to_slice): Delete declaration.
13180 * MAINTAINERS: Update.
13181
8bb2c122
MK
131822003-01-02 Mark Kettenis <kettenis@gnu.org>
13183
97bf5e38
MK
13184 * configure.in: Reorganize "Checks for library functions section"
13185 a bit. Remove check for `btowc' and `isascii' functions.
13186 * configure: Regenerated.
13187
5ee754fc
MK
13188 * acconfig.h (_MSE_INT_H): Remove.
13189 * configure.in: Create "Checks for header files" section, and move
13190 appropriate tests there. Don't check for objlist.h, wchar.h,
13191 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13192 misdetection fix. Also add "Checks for types", "Checks for
13193 compiler characteristics" and "Checks for library functions"
13194 sections.
13195 * config.in, configure: Regenerated.
13196
8bb2c122
MK
13197 * configure.in: Create "Checks for programs" section, and move
13198 appropriate tests there.
13199
9a156167
MK
132002003-01-01 Mark Kettenis <kettenis@gnu.org>
13201
13202 * configure.in: Create "Checks for libraries" section, and move
13203 appropriate tests there. Cleanup check for wctype in libw. Use
13204 AC_SEARCH_LIBS to see whether we need libsocket.
13205 * configure: Regenerated.
13206
a80e2bcb 13207For older changes see ChangeLog-2002
c906108c
SS
13208\f
13209Local Variables:
13210mode: change-log
13211left-margin: 8
13212fill-column: 74
13213version-control: never
13214End:
This page took 1.065454 seconds and 4 git commands to generate.