2003-10-15 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
258b763a
AC
12003-10-15 Andrew Cagney <cagney@redhat.com>
2
3 * target.c (target_stack): Change to a static target_ops.
4 (update_current_target): Walk the "struct target_ops" stack.
5 (pop_target, do_xfer_memory, target_info): Ditto.
6 (find_target_beneath): Ditto.
7 (push_target): Rewrite to use the "struct target_ops" stack.
8 (unpush_target): Ditto.
9 * target.h (struct target_stack_item): Delete definition.
10 (target_stack): Delete declaration.
11 (struct target_ops): Add field "beneath".
12
c98a2b49 132003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
14
15 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
16 declaration.
17 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
18 (h8300_examine_prologue): Use h8300_normal_mode flag
19 (h8300_gdbarch_init): Set architecture info for normal mode
20
506fb367
DJ
212003-10-16 Daniel Jacobowitz <drow@mvista.com>
22
23 * remote.c (remote_protocol_vcont): New variable.
24 (set_remote_protocol_vcont_packet_cmd): New function.
25 (show_remote_protocol_vcont_packet_cmd): New function.
26 (init_all_packet_configs): Handle remote_protocol_vcont.
27 (remote_vcont_probe): New function.
28 (remote_vcont_resume): New function.
29 (remote_resume): Use it.
30 (remote_async_resume): Call remote_resume.
31 (_initialize_remote): Add verbose-resume packet commands.
32
65815ea1
AC
332003-10-16 Andrew Cagney <cagney@redhat.com>
34
35 * infrun.c (handle_inferior_event): Add comment about
36 "frame_id_inner" being too weak.
37
40324f1b
EZ
382003-10-16 Elena Zannoni <ezannoni@redhat.com>
39
40 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
41 second parameter, which is always null. Remove
42 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
43 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
44 accordingly.
45 * somsolib.c (som_solib_create_inferior_hook,
46 som_solib_desire_dynamic_linker_symbols): Update callers.
47 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
48
492003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
50
51 * remote-m32r-sdi.c : New file, interface to m32r on-chip
52 debug interface, SDI (Scalable Debug Interface).
53 * NEWS: Mention m32r SDI protocol was supported.
54 * Makefile.in (remote-m32r-sdi.o): Add build rule.
55 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
56
51931cbb
JJ
572003-10-15 Jeff Johnston <jjohnstn@redhat.com>
58
59 * ia64-linux-tdep.c: Include gdbcore.h.
60 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
61 (ia64_linux_sigcontext_register_addr): Find the address of the
62 sigcontext area stored in the sigframe instead of using
63 a magic offset constant.
64
84e7fd53
AC
652003-10-15 Andrew Cagney <cagney@redhat.com>
66
67 * remote.c (remote_search): Delete function.
68 * target.h (target_search): Delete disabled macro.
69 (struct target_ops): Delete disabled field "to_search".
70
0f4d7c52
KB
712003-10-14 Kevin Buettner <kevinb@redhat.com>
72
73 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
74 instead of deprecated_inside_entry_file().
75
2e952408
CV
762003-10-14 Corinna Vinschen <vinschen@redhat.com>
77
78 * sh-tdep.c: Fix copy/paste hangover in comment.
79 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
80 mode.
81 (sh3e_sh4_extract_return_value): Ditto.
82
7e86466e
RH
832003-10-13 Richard Henderson <rth@redhat.com>
84
85 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
86 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
87 match c_val_print a bit closer.
88
46a16dba
KB
892003-10-13 Kevin Buettner <kevinb@redhat.com>
90
91 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
92 (frv_gdbarch_adjust_breakpoint_address): New function.
93 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
94 method.
95
76897487
KB
962003-10-13 Kevin Buettner <kevinb@redhat.com>
97
98 * breakpoint.h (struct breakpoint): Add new member
99 ``requested_address''.
100 * breakpoint.c (breakpoint_adjustment_warning)
101 (adjust_breakpoint_address): New static functions.
102 (print_it_typical): Issue warning if breakpoint's address is different
103 from its requested address.
104 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
105 (breakpoint_re_set_one): Set breakpoint's
106 ``requested_address'' field. Set ``address'' field to the
107 result of calling adjust_breakpoint_address() on the requested
108 address.
109
a1131521
KB
1102003-10-13 Kevin Buettner <kevinb@redhat.com>
111
112 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
113 * gdbarch.h, gdbarch.c: Regenerate.
114
6ce6d90f
MK
1152003-10-11 Mark Kettenis <kettenis@gnu.org>
116
155c1d33
MK
117 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
118 TDEP->sc_num_regs.
119
8a96bc77
MK
120 * i386fbsd-tdep.c: New file.
121 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
122 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
123 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
124 i386bsd-tdep.c.
125 (_initialize_i386fbsd_tdep): New function.
126 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
127 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
128 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
129 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
130 TDEP->sc_num_regs.
131 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
132 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
133 to initialize TDEP->sc_num_regs.
134 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
135 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
136 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
137 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
138 FreeBSD ELF OS/ABI's here.
139 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
140 (i386fbsd-tdep.o): New target.
141 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
142 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
143
477f40d1
MK
144 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
145 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
146 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
147 in initialization of TDEP->sc_num_regs.
148
c6b33596
MK
149 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
150 (x86_64_init_abi): Initialize regset_from_core_section if
151 appropriate.
152
8446b36a
MK
153 * i386-tdep.c (i386_regset_from_core_section): New function.
154 (i386_gdbarch_init): Initialize regset_from_core_section if
155 appropriate.
156 * i386-tdep.h (i386_regset_from_core_section): New declaration.
157
c783cbd6
MK
158 * i386-tdep.h (struct regset): Declare opaque.
159
6ce6d90f
MK
160 * gdbarch.sh (regset_from_core_section): New method.
161 (struct regset): Declare opaque.
162 * gdbarch.c, gdbarch.h: Regenerated.
163
b98ed7be
AM
1642003-10-11 Alan Modra <amodra@bigpond.net.au>
165
166 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
167 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
168 Correct test for pc within section.
169
f6214256
MK
1702003-10-11 Mark Kettenis <kettenis@gnu.org>
171
172 * gdbarch.sh: Remove trailing whitepsace from comments.
173
a8f4cde1
RM
1742003-10-08 Roland McGrath <roland@redhat.com>
175
176 * gcore.c (make_mem_sec): Function removed, folded into ...
177 (gcore_create_callback): ... here. To omit a section, clear its
178 SEC_LOAD bit rather than zeroing its size.
179 Omit read-only sections only if they correspond to a known disk file.
180 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
181
74276724
MS
1822003-10-10 Michael Snyder <msnyder@redhat.com>
183
184 * d10v-tdep.c: Fix typo in comment.
185
e754ae69
AC
1862003-10-10 Andrew Cagney <cagney@redhat.com>
187
188 * rs6000-tdep.c (e500_store_return_value): Delete function.
189 (e500_extract_return_value): Delete function.
190 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
191 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
192 "ppc_sysv_abi_restore_return_value" where applicable.
193 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
194 (ppc_sysv_abi_extract_return_value): Declare.
195 (ppc_sysv_abi_broken_store_return_value): Declare.
196 (ppc_sysv_abi_broken_extract_return_value): Declare.
197 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
198 * ppc-sysv-tdep.c (return_value_convention): Move definition to
199 start of file.
200 (do_ppc_sysv_return_value): New function.
201 (ppc_sysv_abi_extract_return_value): New function.
202 (ppc_sysv_abi_store_return_value): New function.
203 (ppc_sysv_abi_broken_extract_return_value): New function.
204 (ppc_sysv_abi_broken_store_return_value): New function.
205 (ppc_sysv_abi_use_struct_convention): Call
206 do_ppc_sysv_return_value.
207
8d4ce20a
JB
2082003-10-10 J. Brobecker <brobecker@gnat.com>
209
210 * blockframe.c (inside_main_func): No longer use symbol_lookup()
211 to lookup the main function symbol.
212
afce3d2a
CV
2132003-10-10 Corinna Vinschen <vinschen@redhat.com>
214
215 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
216 types correctly.
217 (sh_push_dummy_call_fpu): Fix argument passing rules.
218 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
219 float types.
220 (sh3e_sh4_store_return_value): Ditto.
221
7fe958be
EZ
2222003-10-10 Elena Zannoni <ezannoni@redhat.com>
223
224 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
225 comment.
226
3f997a97
CV
2272003-10-10 Corinna Vinschen <vinschen@redhat.com>
228
229 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
230 more readable code. Accomodate passing of bitfields.
231
8be9034a
AC
2322003-10-10 Andrew Cagney <cagney@redhat.com>
233
234 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
235 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
236 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
237 * ppc-sysv-tdep.c: Include "gdb_assert.h".
238 (ppc64_sysv_abi_push_dummy_call): New function.
239 (ppc64_sysv_abi_broken_push_dummy_call): New function.
240 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
241 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
242
85a453d5
KI
2432003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
244
245 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
246 * README: Ditto.
247 * d10v-tdep.c: Ditto.
248 * h8300-tdep.c: Ditto.
249 * remote-e7000.c: Ditto.
250 * remote-hms.c: Ditto.
251 * ser-e7kpc.c: Ditto.
252 * sh-stub.c: Ditto.
253 * sh-tdep.c: Ditto.
254 * sh-tdep.h: Ditto.
255 * sh3-rom.c: Ditto.
256 * sh64-tdep.c: Ditto.
257 * top.c: Ditto.
258 * wince.c: Ditto.
259 * config/d10v/d10v.mt: Ditto.
260 * config/sh/embed.mt: Ditto.
261 * config/sh/linux.mt: Ditto.
262 * config/sh/tm-linux.h: Ditto.
263 * config/sh/tm-sh.h: Ditto.
264 * config/sh/wince.mt: Ditto.
265
221c12ff
AC
2662003-10-09 Andrew Cagney <cagney@redhat.com>
267
268 * ppc-tdep.h (struct type): Declare opaque.
269 * x86-64-tdep.h (struct regcache): Declare opaque.
270 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
271 coding style.
272
ef5200c1
AC
2732003-10-09 Andrew Cagney <cagney@redhat.com>
274
275 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
276 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
277 (SOFTWARE_SINGLE_STEP_P): Ditto.
278 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
279 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
280 (SOFTWARE_SINGLE_STEP_P): Ditto.
281 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
282 software_single_step to rs6000_software_single_step.
a8f4cde1 283
9644bbdd
AC
2842003-10-09 Andrew Cagney <cagney@redhat.com>
285
286 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
287
db72fa6b
MS
2882003-10-09 Michael Snyder <msnyder@redhat.com>
289
f3efb16c
MS
290 * frame.h: Fix typo in comment.
291 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
292 * d10v-tdep.c: Random whitespace/comment tweaks.
293
9a5cef92
EZ
2942003-10-09 Elena Zannoni <ezannoni@redhat.com>
295
296 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 297 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 298 on stack.
a8f4cde1 299
9a5cef92
EZ
300 Based on input by Stephen Clarke (stephen.clarke@superh.com):
301 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
302 in detail.
a8f4cde1 303
0f317a0c
DJ
3042003-10-09 Daniel Jacobowitz <drow@mvista.com>
305
306 * remote-mips.c (mips_initialize): Remove unneeded call to
307 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
308
bbab2f46
DJ
3092003-10-09 Daniel Jacobowitz <drow@mvista.com>
310
311 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
312 a memory pointer.
313
550950b8
JJ
3142003-10-08 Jeff Johnston <jjohnstn@redhat.com>
315
316 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
317 for any lwp we resume.
318 (running_callback): Add lwps that have pending status events
319 against them to be considered running.
320
15c69bc7
KI
3212003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
322
323 * m32r-tdep.c : Include "dis-asm.h".
324 * Makefile.in (m32r-tdep.o): Update dependencies.
325
51065942
JB
3262003-10-06 J. Brobecker <brobecker@gnat.com>
327
328 * completer.h (get_gdb_completer_word_break_characters): Delete.
329 * completer.c: include language.h.
330 (gdb_completer_word_break_characters): Delete.
331 (get_gdb_completer_word_break_characters): Delete.
332 (location_completer): Use the word break characters of the current
333 language.
334 (complete_line): Likewise.
335 (line_completion_function): Likewise.
336 (skip_quoted_chars): Likewise.
337 * Makefile.in (completer.o): Add dependency on language.h.
338 * top.c (init_main): Set the readline word break characters
339 to GDB's default word break characters.
340
6084f43a
JB
3412003-10-06 J. Brobecker <brobecker@gnat.com>
342
343 * language.h (language_defn): new field, la_word_break_characters.
344 * language.c (unknown_language_defn): Set new field to
345 default_word_break_characters.
346 (auto_language_defn): Likewise.
347 (local_language_defn): Likewise.
348 * ada-lang.c (ada_language_defn): Likewise.
349 * c-lang.c (c_language_defn): Likewise.
350 (cplus_language_defn): Likewise.
351 (asm_language_defn): Likewise.
352 (minimal_language_defn): Likewise.
353 * f-lang.c (f_language_defn): Likewise.
354 * jv-lang.c (java_language_defn): Likewise.
355 * m2-lang.c (m2_language_defn): Likewise.
356 * objc-lang.c (objc_language_defn): Likewise.
357 * p-lang.c (pascal_language_defn): Likewise.
358 * scm-lang.c (scm_language_defn): Likewise.
359
944fcfab
AC
3602003-10-06 Andrew Cagney <cagney@redhat.com>
361
362 * ppc-sysv-tdep.c: Re-indent.
363
9f0a5303
JB
3642003-10-06 J. Brobecker <brobecker@gnat.com>
365
366 * language.h (default_word_break_characters): Add prototype.
367 * language.c (default_word_break_characters): New function.
368
7270b6ed
AS
3692003-10-06 Andreas Schwab <schwab@suse.de>
370
371 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
372 with %eax.
373
a5d61f66
AC
3742003-10-06 Andrew Cagney <cagney@redhat.com>
375
376 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
377 "h8500-tdep.c".
378 (z8k-tdep.o): Delete custom build rule.
379
28a86f5c
AC
3802003-10-06 Andrew Cagney <cagney@redhat.com>
381
1bfd8a83
AC
382 * Makefile.in: Update all dependencies.
383
17144ef8
AC
384 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
385 No longer list PA as as obsolete candidate. List m32r as
386 broken instead of obsolete.
a8f4cde1 387
a5679ae5
AC
388 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
389 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
390 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
391 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
392 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
393 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
394 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
395 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
396 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
397 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
398 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
399 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
400 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
401 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
402 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
403 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
404 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
405 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
406 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
407 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
408 * config/z8k/z8k.mt: Ditto.
409
4a8269c0
AC
410 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
411 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
412 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
413 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
414 sparclite were removed.
415 * configure.host, configure.tgt: Remove corresponding tuples.
416
41989fcd
AC
417 * breakpoint.c, breakpoint.h: Remove obsolete code.
418 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
419 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
420 * stabsread.h, xcoffread.c: Ditto.
421
28a86f5c
AC
422 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
423 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
424 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
425 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
426
4efdaa0d
DL
4272003-10-06 David Lecomber <dsl@sources.redhat.com>
428
429 * f-valprint.c: Reformatting
430
ae53de43
MK
4312003-10-06 Mark Kettenis <kettenis@gnu.org>
432
a8bb57e7
MK
433 * x86-64-tdep.c: Remove duplicate comment.
434
ae53de43
MK
435 * x86-64-tdep.c (x86_64_store_return_value): Don't use
436 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
437 names for return values. This fixes a bug since we looked at %rbx
438 instead of %rdx.
439
473f17b0
MK
4402003-10-05 Mark Kettenis <kettenis@gnu.org>
441
2c261fae
MK
442 * x86-64-tdep.c: Include "regset.h".
443
473f17b0
MK
444 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
445 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
446 sizeof_fpregset.
447 * i386-tdep.c: Include "regset.h".
448 (i386_supply_gregset): New function.
449 (i386_supply_fpregset): New function.
450 (i386_gdbarch_init): Initialze register set-related members of
451 TDEP.
452 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
453 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
454
afd48b75
AC
4552003-10-03 Andrew Cagney <cagney@redhat.com>
456
457 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
458 set extract_return_value, store_return_value and
459 use_struct_convention to ppc64_sysv_abi_extract_return_value,
460 ppc64_sysv_abi_store_return_value and
461 ppc64_sysv_abi_use_struct_convention.
462 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
463 (ppc64_sysv_abi_store_return_value): Declare.
464 (ppc64_sysv_abi_use_struct_convention): Declare.
465 * ppc-sysv-tdep.c (enum return_value_convention): Define.
466 (ppc64_sysv_abi_extract_return_value): New function.
467 (ppc64_sysv_abi_store_return_value): New function.
468 (ppc64_sysv_abi_use_struct_convention): New function.
469 (ppc64_sysv_abi_return_value): New function.
470
9b540880
AC
4712003-10-03 Andrew Cagney <cagney@redhat.com>
472
473 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
474 convert a descriptor to a function when it's in the ".opd"
475 section.
476
8748518b
CV
4772003-10-03 Corinna Vinschen <vinschen@redhat.com>
478
479 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
480 reg_size to keep GCC silent.
481
0fd85043
CV
4822003-10-03 Corinna Vinschen <vinschen@redhat.com>
483
484 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
485 base for DW_EH_PE_textrel encodings.
486 (read_encoded_value): Add a DW_EH_PE_textrel case.
487 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
488 section.
489
37b517aa
MK
4902003-10-03 Mark Kettenis <kettenis@gnu.org>
491
492 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
493
12c266ea
AC
4942003-10-02 Andrew Cagney <cagney@redhat.com>
495
496 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
497 REGISTER_RAW_SIZE.
498 * gdbarch.h, gdbarch.c: Re-generate.
499 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
500 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
501 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
502 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
503 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
504 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
505 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
506 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
507 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
508 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
509 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
510 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
511 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
512 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
513 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
514 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 515
78ba4af6
JB
5162003-10-02 Jim Blandy <jimb@redhat.com>
517
518 * dwarf2read.c (struct die_info): Doc fix.
519
617daa0e
CV
5202003-10-02 Corinna Vinschen <vinschen@redhat.com>
521
522 * sh-tdep.c: Running thru gdb_indent.sh.
523
e5e33cd9
CV
5242003-10-02 Corinna Vinschen <vinschen@redhat.com>
525
526 * sh-tdep.c (sh_justify_value_in_reg): New function.
527 (sh_stack_allocsize): Ditto.
528 (flt_argreg_array): New array used for floating point argument
529 passing.
530 (sh_init_flt_argreg): New function.
a8f4cde1 531 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
532 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
533 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
534 Fix argument passing strategy.
535 (sh_push_dummy_call_nofpu): Ditto.
536
5fe830e4
AC
5372003-10-01 Andrew Cagney <cagney@redhat.com>
538
539 * value.h (register_value_being_returned): Declare. Replace
540 "value_being_returned".
541 * infcall.c (call_function_by_hand): Use
542 register_value_being_returned.
543 * infcmd.c (print_return_value): Call
544 "register_value_being_returned", handle struct return locally.
545 * values.c (register_value_being_returned): New function. Replace
546 "value_being_returned".
a8f4cde1 547
5fe830e4 5482003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
549
550 * linux-proc.c (linux_do_registers): New function.
551 (linux_make_note_section): Use linux_do_registers in case of
552 single threaded inferior programs.
553
64f395bf
AC
5542003-10-01 Andrew Cagney <cagney@redhat.com>
555
556 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
557 use STRUCT_ADDR. When not using "struct return convention", pass
558 "0" to "value_being_returned". Add FIXMEs.
559 * infcmd.c (print_return_value): Pass an explicit 0/1 to
560 value_being_returned. Add comments.
561 * values.c (value_being_returned): Add fixme.
562 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
563 (hppa_value_returned_from_stack): Add FIXME.
564
639d11d3
DC
5652003-09-30 David Carlton <carlton@kealia.com>
566
567 * dwarf2read.c (struct die_info): Add 'parent' field; replace
568 'has_children' and 'next' by 'child' and 'sibling'.
569 (read_comp_unit): Rework algorithm, breaking body into
570 read_die_and_children and read_die_and_siblings.
571 (read_die_and_children, read_die_and_siblings): New.
572 (read_full_die): Add 'has_children' argument; set it instead of
573 the die's 'has_children' field. Minor formatting cleanup.
574 (free_die_list): Use die->child and die->sibling instead of
575 die->next.
576 (dump_die_list): Ditto.
577 (sibling_die): Use die->sibling.
578 (psymtab_to_symtab_1): Use die's 'child' field in place of its
579 'has_children' and 'next' fields.
a8f4cde1
RM
580 (process_die, read_file_scope, read_func_scope)
581 (read_lexical_block_scope, read_structure_scope)
582 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
583 (read_namespace, read_subroutine_type, dump_die): Ditto.
584
5bffac25
AC
5852003-09-30 Andrew Cagney <cagney@redhat.com>
586
587 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
588 to 224, not 220.
589
f30992d4
AC
5902003-09-30 Andrew Cagney <cagney@redhat.com>
591
592 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
593 REGISTER_VIRTUAL_SIZE.
594 * gdbarch.h, gdbarch.c: Regenerate.
595 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
596 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
597 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
598
2e092625
AC
5992003-09-29 Andrew Cagney <cagney@redhat.com>
600
601 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
602 DEPRECATED_REGISTER_VIRTUAL_TYPE.
603 * gdbarch.h, gdbarch.c: Regenerate.
604 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
605 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
606
607 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
608 * remote-vxmips.c (vx_read_register): Ditto.
609 * remote-vx68.c (vx_read_register): Ditto.
610 * gnu-nat.c (inf_validate_procs): Ditto.
611
7a5dd6ee
JB
6122003-09-29 J. Brobecker <brobecker@gnat.com>
613
614 * infcall.c (call_function_by_hand): Fix build failure
615 introduced in the previous change to this file.
616
1fe43d45
AC
6172003-09-29 Andrew Cagney <cagney@redhat.com>
618
619 * NEWS: Mention Objective-C.
620
e28a332c
JG
6212003-09-29 Jerome Guitton <guitton@act-europe.fr>
622
623 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
624 test if the register has been saved on the stack.
625 (arm_scan_prologue_cache): When analysing the instruction
626 "str lr, [sp, #-4]", save the address where lr has been stored.
627
9ff63c35
AC
6282003-09-28 Andrew Cagney <cagney@redhat.com>
629
7f5f525d
AC
630 * frame.c (frame_read_unsigned_register): Delete function.
631 * frame.h (frame_read_unsigned_register): Delete declaration.
632 * sparc-tdep.c (sparc_init_extra_frame_info): Use
633 get_frame_register_unsigned.
634 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
635 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
636 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 637
7f5f525d
AC
638 * frame.h (frame_read_register): Delete declaration.
639 * frame.c (frame_read_register): Delete function.
640 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
641 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
642 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
643 * mips-tdep.c (mips_register_to_value): Ditto.
644 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
645 * d10v-tdep.c (d10v_print_registers_info): Ditto.
646
647 * frame.c (frame_read_signed_register): Delete function.
648 (frame_read_unsigned_register): Update comments.
649 * frame.h (frame_read_signed_register): Delete declaration.
650 * h8300-tdep.c (h8300_print_register): Use
651 get_frame_register_signed.
652 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
653
9ff63c35
AC
654 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
655 Rename VALUE_RETURNED_FROM_STACK.
656 * infcmd.c (print_return_value): Update.
657 * infcall.c (call_function_by_hand): Update.
658
41d041d6
MK
6592003-09-28 Mark Kettenis <kettenis@gnu.org>
660
661 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
662 regcache argument and reverse the order of the other two
663 arguments. Remove local regcache variable. Determine
664 architecture from REGCACHE. Update comments.
665 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
666 reverse the order of the other two arguments. Remove local
667 regcache variable. Determine architecture from REGCACHE. Update
668 comments.
669 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
670 prototypes. Update comments.
671 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
672 comment.
673 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
674 Update.
675 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
676 * i386-interix-nat.c (supply_fpregset): Update.
677 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
678 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
679 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
680 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
681 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
682 Update.
683 * i386obsd-tdep.c (fetch_core_registers): Update.
684 * i386v4-nat.c (supply_fpregset): Update.
685 * x86-64-linux-nat.c (supply_fpregset): Update.
686 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 687
1cb97e17
MK
6882003-09-27 Mark Kettenis <kettenis@gnu.org>
689
5716833c
MK
690 * i386-tdep.h: Put opaque declarations in alphabetical
691 order. Remove spurious whitespace.
692 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
693 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
694 * i386-tdep.c (MM0_REGNUM): Remove define.
695 (i386_mmx_regnum_p): Add gdbarch argument.
696 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
697 Rewrite using new macro definitions for FPU/SSE registers.
698 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
699 definitions from i387-tdep.h.
700 (i386_register_name): Update.
701 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
702 new macro definitions for FPU/SSE registers.
703 (i386_extract_return_value): Determine whether floating-point
704 registers are present by examining REGCACHE's architecture.
705 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
706 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
707 FPU/SSE registers.
708 (i386_register_type): Update.
709 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
710 definitions for FPU registers. Use REGCACHE's architecture to
711 determine the appropriate register numbers.
712 (i386_pseudo_register_read, i386_pseudo_register_write,
713 i386_register_reggroup_p): Update.
714 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
715 TDEP->mm0_regnum.
716 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
717 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
718 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
719 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
720 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
721 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
722 *' to `void *'.
723 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
724 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
725 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
726 definitions for FPU/SSE registers.
727 (FXSAVE_MXCSR_ADDR): New define.
728 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
729 TDEP->mm0_regnum.
730 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
731 (I387_ST0_REGNUM): Define.
732
41d35cb0
MK
733 * regcache.h (get_regcache_arch): New prototype.
734 * regcache.c (get_regcache_arch): New function.
735
54e74f72
MK
736 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
737 whitespace.
738
1cb97e17
MK
739 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
740 Initialize using ARRAY_SIZE.
741
0968aa8c
AC
7422003-09-27 Andrew Cagney <cagney@redhat.com>
743
744 * arch-utils.c (deprecated_init_frame_pc_default): Rename
745 "init_frame_pc_default".
746 * arch-utils.h (deprecated_init_frame_pc_default): Update.
747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
748 * vax-tdep.c (vax_gdbarch_init): Update.
749 * v850-tdep.c (v850_gdbarch_init): Update.
750 * sh64-tdep.c (sh64_gdbarch_init): Update.
751 * s390-tdep.c (s390_gdbarch_init): Update.
752 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
753 * mcore-tdep.c (mcore_gdbarch_init): Update.
754 * h8300-tdep.c (h8300_gdbarch_init): Update.
755 * cris-tdep.c (cris_gdbarch_init): Update.
756 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
757
54c84734
MK
7582003-09-26 Mark Kettenis <kettenis@gnu.org>
759
760 * regset.h: New file.
761 * Makefile.in (regset_h): Add.
762
1b1d3794
AC
7632003-09-25 Andrew Cagney <cagney@redhat.com>
764
765 * frame.h (deprecated_frame_saved_regs): Rename
766 get_frame_saved_regs.
767 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
768 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
769 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
770 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
771 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
772
e6beb428
AC
7732003-09-25 Andrew Cagney <cagney@redhat.com>
774
775 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
776 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
777 and Java.
778 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
779 arm*-*-* do not use the new frame code.
780
710122da
DC
7812003-09-25 David Carlton <carlton@kealia.com>
782
783 * c-exp.y: Remove 'register' declarations.
784 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
785
79c2c32d
DC
7862003-09-25 David Carlton <carlton@kealia.com>
787
788 * c-exp.y: Include cp-support.h. Add qualified_type.
789 (yylex): Delete nested type hack; add comments.
790 * cp-namespace.c (cp_lookup_nested_type): New function.
791 * cp-support.h: Declare cp_lookup_nested_type.
792 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
793 instead of value_struct_elt_for_reference.
794 * valops.c: Include cp-support.h.
795 (value_aggregate_elt): New function.
796 (value_namespace_elt): Ditto.
797 (value_struct_elt_for_reference): Make static.
798 * value.h: Delete declaration of value_struct_elt_for_reference;
799 add declaration for value_aggregate_elt.
800 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
801 (valops.o): Ditto.
802
898c62f5
DJ
8032003-09-25 Daniel Jacobowitz <drow@mvista.com>
804
805 * stack.c: Include "reggroups.h".
806 (frame_info): Only display registers in all_reggroup.
807 * Makefile.in (stack.o): Update dependencies.
808
28cd8767
JG
8092003-09-25 Jerome Guitton <guitton@act-europe.fr>
810
811 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
812 "add ip, sp #n" in the prologue.
813 (arm_scan_prologue): Ditto.
814
a4ab2b5d
JG
8152003-09-25 Jerome Guitton <guitton@act-europe.fr>
816
817 * MAINTAINERS (write after approval): Add myself.
818
3f244638
AS
8192003-09-25 Andreas Schwab <schwab@suse.de>
820
821 * m68k-tdep.c: Include "dwarf2-frame.h".
822 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
823 * Makefile.in (m68k-tdep.o): Update dependencies.
824
1c0159e0
CV
8252003-09-25 Corinna Vinschen <vinschen@redhat.com>
826
827 * sh-tdep.c (struct frame_extra_info): Remove.
828 (struct sh_frame_cache): New structure.
829 (GET_SOURCE_REG): New macro extracting source register of an opcode.
830 (GET_TARGET_REG): Ditto but target register.
831 (GET_PUSHED_REG): Remove.
832 (IS_MOV_ARG_TO_REG): New macro.
833 (IS_MOV_ARG_TO_IND_R14): New macro.
834 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
835 (IS_MOVW_PCREL_TO_REG): New macro.
836 (IS_MOVL_PCREL_TO_REG): New macro.
837 (IS_SUB_REG_FROM_SP): New macro.
838 (IS_ARG_MOV): Remove.
839 (IS_MOV_TO_R14): Remove.
840 (IS_RESTORE_FP): New macro.
841 (IS_RTS): New macro.
842 (IS_LDS): New macro.
843 (IS_MOV_FP_SP): New macro.
844 (IS_ADD_REG_TO_FP): New macro.
845 (IS_ADD_IMM_FP): New macro.
846 (sh_skip_prologue_hard_way): Remove.
847 (sh_saved_pc_after_call): Remove.
848 (sh_frame_chain): Remove.
849 (sh_find_callers_reg): Remove.
a8f4cde1 850 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
851 (sh_fp_frame_init_saved_regs): Remove.
852 (sh_init_extra_frame_info): Remove.
853 (sh_analyze_prologue): New function.
854 (sh_skip_prologue): Remove deprecated code. Rely on new function
855 sh_analyze_prologue when after_prologue fails.
856 (sh_frame_saved_pc): Remove.
857 (sh_alloc_frame_cache): New function.
858 (sh_frame_cache): Ditto.
859 (sh_frame_prev_register): Ditto.
860 (sh_frame_this_id): Ditto.
861 (sh_frame_unwind): New structure defining the heuristic frame
862 sniffer interface.
863 (sh_frame_sniffer): New function.
864 (sh_unwind_sp): Ditto.
865 (sh_unwind_pc): Ditto.
866 (sh_unwind_dummy_id): Ditto.
867 (sh_frame_base_address): Ditto.
868 (sh_frame_base): New structure defining new frame base code.
869 (sh_in_function_epilogue_p): New function.
870 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
871 code and to call all new code instead. Initialize dwarf2 and
872 heuristic frame sniffer.
873
5f9769d1
PH
8742003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
875
a8f4cde1
RM
876 * parser-defs.h (struct exp_descriptor): New definition, containing
877 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
878 evaluating expressions.
879 (exp_descriptor_standard): Declare new variable.
880 (print_subexp): Make global and declare here (from expprint.c).
881 (dump_subexp): Ditto.
882 (dump_subexp_body_standard): Declare.
883 (operator_length_standard): Declare.
884 (op_name_standard): Declare.
885 (print_subexp): Declare.
886 (print_subexp_standard): Declare.
887
888 * language.h (struct language_defn): Add la_exp_desc field to hold
889 pointer to table for language-specific operators.
890 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
891
892 * parse.c (operator_length): Move most code to new
5f9769d1 893 operator_length_standard function. Use language-specific information.
a8f4cde1 894 (operator_length_standard): New function taking most code from
5f9769d1
PH
895 operator_length.
896 (exp_descriptor_standard): New constant.
a8f4cde1
RM
897
898 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 899 and OP_EXTENDED_LAST.
a8f4cde1
RM
900
901 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
902 Make global; remove static declaration.
903 Move most code to print_subexp_standard.
a8f4cde1 904 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
905 print_subexp.
906 (op_name): Add expression to argument signature.
a8f4cde1 907 Use langauge-specific op_name.
5f9769d1
PH
908 Move most code to op_name_standard.
909 (op_name_standard): New function, containing code formerly in op_name.
910 (dump_subexp): Use new version of op_name function.
911 Use language-specific dump_subexp_body, and move most existing code to
912 dump_subexp_body_standard.
913 (dump_raw_expression): Use new op_name interface.
914 (dump_subexp_body): Move most code to dump_subexp_body_standard.
915 (dump_subexp_body_standard): New function, containing code formerly
916 in dump_subexp_body.
a8f4cde1 917
5f9769d1
PH
918 * language.c (unknown_language): Add default la_exp_desc field and
919 remove evaluate_exp field.
920 (auto_language): Ditto.
921 (local_language): Ditto.
922 * f-lang.c (f_language_defn): Ditto.
923 * c-lang.c (c_language_defn): Ditto.
924 (cplus_language_defn): Ditto.
925 (asm_language_defn): Ditto.
926 (minimal_language_defn): Ditto.
927 * p-lang.c (pascal_language_defn): Ditto.
928 * m2-lang.c (m2_language_defn): Ditto.
929 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
930
931 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
932 Java-specific expression evaluator.
933 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
934 field.
a8f4cde1 935 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
936 Scheme-specific expression evaluator.
937 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
938 field.
939 * objc-lang.c (print_object_command): Take evaluate_exp from the
940 la_exp_desc field.
a8f4cde1 941
5f9769d1 942 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
943
944 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
945 la_exp_desc's type.
946 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 947
24daaebc
PH
9482003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
949
950 * parser-defs.h (operator_length): Declare.
a8f4cde1 951
24daaebc
PH
952 * parse.c (length_of_subexp): Use operator_length to get operator
953 lengths and arities for operators.
954 Move most code to new operator_length function.
a8f4cde1 955 (operator_length): New function absorbing most code from
24daaebc
PH
956 length_of_subexp.
957 (prefixify_subexp): Remove large case and use operator_length instead.
958 (parse_exp_1): Use renamings:
a8f4cde1 959 dump_prefix_expression => dump_raw_expression and
24daaebc 960 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 961
24daaebc
PH
962 * expression.h (dump_prefix_expression): Rename to ...
963 (dump_raw_expression): New name.
964 (dump_postfix_expression): Rename to ...
965 (dump_prefix_expression): New name.
a8f4cde1 966
24daaebc
PH
967 * expprint.c (dump_subexp): Make global. Add comment.
968 Move most existing code to dump_subexp_body.
969 (dump_subexp_body): New function.
970 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 971 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
972 work before the expression is prefixified.
973 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 974 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 975 that's what it does.
a8f4cde1 976 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
977 prefixified expression.
978 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 979
8c2957c4
JB
9802003-09-22 Jim Blandy <jimb@redhat.com>
981
982 * dwarf2read.c (read_array_type): When building the type for an
983 array of unspecified length, make sure to choose the upper bound
984 so that the array's total length comes out to be zero --- that's
985 how we represent such arrays.
986
592e3010
MC
9872003-09-22 Michael Chastain <mec@shout.net>
988
989 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
990
365c70b1
JJ
9912003-09-22 Jeff Johnston <jjohnstn@redhat.com>
992
993 * top.c (quit_force): Fix indirect call to quit_target so
994 a struct qt_args pointer is passed.
995
5d6eb653
AC
9962003-09-22 Andrew Cagney <cagney@redhat.com>
997
998 * arch-utils.h (init_frame_pc_noop): Delete declaration.
999 * arch-utils.c (init_frame_pc_noop): Delete function.
1000 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1001 "init_frame_pc".
1002 * mips-tdep.c (mips_gdbarch_init): Ditto.
1003 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1004 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1005 declaration.
1006 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1007 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1008 declaration.
1009 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1010
b222a67f
AG
10112003-09-22 Anthony Green <green@redhat.com>
1012
1013 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1014 declaration.
1015
d5b5ac79
AC
10162003-09-20 Andrew Cagney <cagney@redhat.com>
1017
deafb061
AC
1018 * breakpoint.c: Eliminate ARGSUSED.
1019 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1020 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1021 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1022 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1023 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1024 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1025 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1026 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1027 * wince.c, remote-vx.c: Ditto.
1028
d5b5ac79
AC
1029 * cli/cli-script.c: Remove "register" attributes.
1030 * config/pa/tm-hppa.h: Ditto.
1031 * cli/cli-decode.c: Ditto.
1032 * cli/cli-cmds.c: Ditto.
1033
c6316faa
AC
10342003-09-19 Andrew Cagney <cagney@redhat.com>
1035
1036 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1037 DEPRECATED_NPC_REGNUM.
1038 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1039
f4f99b11
CF
10402003-09-19 Christopher Faylor <cgf@redhat.com>
1041
1042 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1043
1708f284
JB
10442003-09-19 Jim Blandy <jimb@redhat.com>
1045
1046 * macrotab.c (macro_include): Use the correct comparison to find
1047 the appropriate place for this inclusion in the list.
1048
b9fbf434
AC
10492003-09-19 Andrew Cagney <cagney@redhat.com>
1050
1051 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1052 (DEPRECATED_HPUX_TEXT_END): Define.
1053 (deprecated_hpux_text_end): Declare.
1054 (struct target_ops): Declare opaque.
1055 * hppah-nat.c (text_end): Make static.
1056 (deprecated_hpux_text_end): New function.
1057 * exec.c (text_end): Delete global variable.
1058 (NEED_TEXT_START_END): Do not define.
1059 (exec_file_attach): Replace code computing "text_end" code with
1060 call to DEPRECATED_HPUX_TEXT_END.
1061
5b03f266
AC
10622003-09-19 Andrew Cagney <cagney@redhat.com>
1063
1064 * utils.c (align_up, align_down): New functions.
1065 * defs.h (align_up, align_down): Declare.
1066 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1067 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1068 and "align_down".
1069 (round_up, round_down): Delete functions.
1070 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1071 "align_down".
1072 (ROUND_DOWN, ROUND_UP): Delete macros.
1073 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1074 * h8300-tdep.c: Replace "round_up" and "round_down" with
1075 "align_up" and "align_down".
1076 (round_up, round_down): Delete macros.
1077 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1078 "align_down".
1079 (ROUND_UP, ROUND_DOWN): Delete macros.
1080
51db5742
JB
10812003-09-18 J. Brobecker <brobecker@gnat.com>
1082
1083 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1084 hard-coded constant. Use the proper machine name instead.
1085
77949794
AC
10862003-09-17 Andrew Cagney <cagney@redhat.com>
1087
1088 * sparc-tdep.c (legacy_register_name): Delete function.
1089 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1090 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1091 * infcmd.c (gdb_register_name): Delete variable.
1092 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1093 REGISTER_NAME and "tm.h".
1094 * gdbarch.h, gdbarch.c: Regenerate.
1095 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1096 REGISTER_NAMES in comments.
1097 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1098 * m68klinux-nat.c (regmap): Ditto.
1099
b55c33cc
JB
11002003-09-17 Jim Blandy <jimb@redhat.com>
1101
1102 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1103
957e27ac
AC
11042003-09-17 Andrew Cagney <cagney@redhat.com>
1105
1106 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1107 (ppcnbsd_init_abi): Set "use_struct_convention" to
1108 "ppcnbsd_use_struct_convention".
1109
192cb3d4
MK
11102003-09-17 Mark Kettenis <kettenis@gnu.org>
1111
1112 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1113 * gdbarch.h, gdbarch.c: Regenerate.
1114 (stabs_argument_has_addr): New architecture method.
1115 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1116 * arch-utils.c: Include "buildsym.h".
1117 (default_stabs_argument_has_addr): New function.
1118 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1119 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1120
efe59759
AC
11212003-09-17 Andrew Cagney <cagney@redhat.com>
1122
1123 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1124 * gdbarch.h, gdbarch.c: Regenerate.
1125 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1126 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1127 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1128 * sparcnbsd-tdep.c: Update.
a8f4cde1 1129
62700349
AC
11302003-09-17 Andrew Cagney <cagney@redhat.com>
1131
1132 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1133 * gdbarch.h, gdbarch.c: Regenerate.
1134 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1135 * d10v-tdep.c, frame.c: Update.
1136 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1137 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1138 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1139 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1140 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1141 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1142 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1143 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1144 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1145 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1146 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1147 * config/pa/nm-hppah.h: Update.
1148
b9ff3018
AC
11492003-09-16 Andrew Cagney <cagney@redhat.com>
1150
1151 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1152 "use_struct_convention" to "ppc_linux_use_struct_convention".
1153 (ppc_linux_use_struct_convention): New function.
1154 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1155 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1156 "rs6000_use_struct_convention".
1157 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1158 declaration.
1159 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1160 Delete function.
1161
aa1ee363
AC
11622003-09-16 Andrew Cagney <cagney@redhat.com>
1163
1164 * buildsym.c: Remove more occurances of "register".
1165 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1166 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1167 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1168 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1169 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1170 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1171 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1172 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1173
f2ea0907
CV
11742003-09-16 Corinna Vinschen <vinschen@redhat.com>
1175
1176 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1177 numbers to enumeration values.
1178 * sh-tdep.c: Accomodate above change.
1179 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1180 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1181 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1182 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1183 (IS_FPUSH): Rename from IS_FMOV.
1184 (sh_extract_struct_value_address): Remove useless comment.
1185 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1186 instead of own local values.
1187 (sh_dump_tdep): Remove.
1188 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1189 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1190
1c704f11
AC
11912003-09-15 Andrew Cagney <cagney@redhat.com>
1192
1193 * doublest.c (convert_floatformat_to_doublest): No longer need to
1194 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1195
ac79b88b
DJ
11962003-09-15 Daniel Jacobowitz <drow@mvista.com>
1197
1198 * values.c (unpack_double): Call floatformat_is_valid.
1199
1c671366
MK
12002003-09-15 Mark Kettenis <kettenis@gnu.org>
1201
de5227fb
MK
1202 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1203 ps_strings into a long.
1204
1c671366
MK
1205 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1206 _initialize_am64fbsd_nat.
1207
a604369a
KB
12082003-09-15 Kevin Buettner <kevinb@redhat.com>
1209
1210 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1211 associated with DW_AT_ranges attribute is out of bounds.
1212
b3cacbee
DL
12132003-09-15 David Lecomber <dsl@sources.redhat.com>
1214
1215 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1216
d0f37bb2
MC
12172003-09-14 Michael Chastain <mec@shout.net>
1218
1219 * config/m68k/nm-apollo68v.h: Delete.
1220 * config/m68k/xm-apollo68v.h: Delete.
1221
69517000
AC
12222003-09-14 Andrew Cagney <cagney@redhat.com>
1223
1224 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1225 * dcache.c: Update copyrights and descriptions.
1226 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1227
ef8b349d
AC
12282003-09-14 Andrew Cagney <cagney@redhat.com>
1229
1230 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1231 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1232
52f0bd74
AC
12332003-09-14 Andrew Cagney <cagney@redhat.com>
1234
1235 * alpha-nat.c: Remove some occurances of "register".
1236 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1237 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1238 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1239 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1240 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1241 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1242 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1243 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1244 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1245 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1246 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1247 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1248 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1249 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1250 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1251 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1252 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1253 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1254 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1255 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1256 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1257 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1258
4a4b3fed
AC
12592003-09-13 Andrew Cagney <cagney@redhat.com>
1260
1261 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1262 * ppc-tdep.h (struct regcache): Declare opaque.
1263 * objfiles.h (struct objfile_data): Declare opaque.
1264 * cp-support.h (struct objfile): Declare opaque.
1265 * linux-nat.h (target_waitstatus): Declare opaque.
1266
2110b94f
MK
12672003-09-14 Mark Kettenis <kettenis@gnu.org>
1268
1c671366
MK
1269 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1270 (stabs_argument_has_addr): New architecture method.
1271 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1272 * arch-utils.c: Include "buildsym.h".
1273 (default_stabs_argument_has_addr): New function.
1274 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1275 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1276
2110b94f
MK
1277 * cris-tdep.c (cris_gdbarch_init): Set
1278 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1279 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1280 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1281 * mips-tdep.c (mips_gdbarch_init): Likewise.
1282 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1283 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1284
48436ce6
AC
12852003-09-13 Andrew Cagney <cagney@redhat.com>
1286
1287 * values.c (using_struct_return): Delete "function" and "funcaddr"
1288 parameters.
1289 * value.h (using_struct_return): Update declaration.
1290 * infcmd.c (finish_command_continuation): Update.
1291 (finish_command): Update.
1292 * infcall.c (call_function_by_hand): Update.
1293 * eval.c (evaluate_subexp_standard): Update.
1294
403d9909
CF
12952003-09-13 Christopher Faylor <cgf@redhat.com>
1296
1297 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1298 SSE registers since gdb will not operate correctly without this.
1299 Restore include file ordering munged in previous change.
1300 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1301
ebf7d56b
MK
13022003-09-13 Mark Kettenis <kettenis@gnu.org>
1303
8e823e25
MK
1304 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1305 REG_STRUCT_HAS_ADDR.
1306 * gdbarch.c, gdbarch.h: Updated.
1307 * infcall.c (call_function_by_hand): Update.
1308 * stabsread.c (define_symbol): Updated.
a8f4cde1 1309
ebf7d56b
MK
1310 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1311
d3f13f72
CF
13122003-09-12 Christopher Faylor <cgf@redhat.com>
1313
1314 * win32-nat.c: Reorganize so that defines used by target headers are
1315 actually defined by the system headers.
1316 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1317 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1318
14f75137
JB
13192003-09-12 Jim Blandy <jimb@redhat.com>
1320
d646061f
JB
1321 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1322 the file has no .data, .bss, or .rodata sections. Instead wait
1323 until we see a variable alleged to live in one of those sections.
1324
2a13f9bc
JB
1325 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1326 .bss section, presume that any variables we find live in the
1327 .rodata section.
1328
4f49b26b
JB
1329 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1330 offsets for global and static variables.
1331
14f75137
JB
1332 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1333 symbol types are, by definition, in the .data section, so it is
1334 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1335 If there is no .data section, there should be no N_DATA or N_DATA
1336 | N_EXT symbols.
1337
212c460c
MK
13382003-09-12 Mark Kettenis <kettenis@gnu.org>
1339
1340 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1341 (amd64fbsd_sigcontext_addr): Rewrite.
1342 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1343 with correct values.
1344 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1345 (amd64fbsd_init_abi): Fix typo.
1346
68856ea3
AC
13472003-09-12 Andrew Cagney <cagney@redhat.com>
1348
1349 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1350 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1351
627b3ba2
AC
13522003-09-12 Andrew Cagney <cagney@redhat.com>
1353
1354 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1355 "entry_file_highpc". Update comments.
1356 * defs.h (deprecated_inside_entry_file): Rename
1357 "inside_entry_file".
1358 * blockframe.c (deprecated_inside_entry_file): Rename
1359 "inside_entry_file".
1360 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1361 * vax-tdep.c (vax_frame_chain): Update.
1362 * sh64-tdep.c (sh64_frame_chain): Update.
1363 * sh-tdep.c (sh_frame_chain): Update.
1364 * rs6000-tdep.c (rs6000_frame_chain): Update.
1365 * ns32k-tdep.c (ns32k_frame_chain): Update.
1366 * mips-tdep.c (mips_frame_chain): Update.
1367 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1368 * m32r-tdep.c (m32r_frame_this_id): Update.
1369 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1370 * frv-tdep.c (frv_frame_this_id): Update.
1371 * d10v-tdep.c (d10v_frame_this_id): Update.
1372 * cris-tdep.c (cris_frame_chain): Update.
1373 * blockframe.c (legacy_frame_chain_valid): Update.
1374 * avr-tdep.c (avr_frame_this_id): Update.
1375 * arm-tdep.c (arm_prologue_this_id): Update.
1376 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1377 * objfiles.c (objfile_relocate): Update.
1378 * mipsread.c (mipscoff_symfile_read): Update.
1379 (mipscoff_symfile_read): Update.
1380 * mdebugread.c (parse_partial_symbols): Update.
1381 * dwarfread.c (read_file_scope): Update.
1382 * dwarf2read.c (read_file_scope): Update.
1383 * dbxread.c (read_dbx_symtab): Update.
1384 (read_dbx_symtab): Update.
1385 * coffread.c (complete_symtab): Update.
1386
b0abbc58
JJ
13872003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1388
1389 * top.c (quit_target): New static helper function.
1390 (quit_force): Moved code to quit_target(). Call quit_target()
1391 via catch_errors() to catch errors during quit.
1392
a1632d59
DC
13932003-09-11 David Carlton <carlton@kealia.com>
1394
1395 * buildsym.c (finish_block): Use allocate_block to allocate the
1396 block.
1397 * mdebugread.c (new_block): Add FIXME.
1398
5c4e30ca
DC
13992003-09-11 David Carlton <carlton@kealia.com>
1400
1401 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1402 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1403 (recursive_dump_type): Ditto.
1404 * printcmd.c (print_formatted): Ditto.
1405 * typeprint.c (print_type_scalar): Ditto.
1406 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1407 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1408 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1409 maint_cplus_cmd_list.
1410 * cp-support.c: Make maint_cplus_cmd_list extern.
1411 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1412 command.h.
1413 (lookup_symbol_file): Look in possible namespace blocks when
1414 appropriate.
1415 (initialize_namespace_symtab): New.
1416 (get_possible_namespace_block, free_namespace_block)
1417 (check_possible_namespace_symbols)
1418 (check_possible_namespace_symbols_loop)
1419 (check_one_possible_namespace_symbol)
1420 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1421 (_initialize_cp_namespace): Ditto.
1422 * block.h: Declare allocate_block.
1423 * block.c (allocate_block): New.
1424 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1425 allocate_block.
1426 * symfile.h: Update declaration of add_psymbol_to_list.
1427 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1428 question.
1429 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1430 scan_partial_symbols_call.
1431 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1432 helper functions.
1433 (add_partial_symbol): If necessary, scan mangled names for names
1434 of namespaces.
1435 (add_partial_namespace): Add NAMESPACE argument; generate partial
1436 symbols associated to namespaces.
1437 (add_partial_enumeration): Add NAMESPACE argument.
1438 (new_symbol): Allow namespace syms.
1439 (read_namespace): Generate namespace syms.
1440 * objfiles.h: Add opaque declaration of struct symtab.
1441 (struct objfile): Add cp_namespace_symtab member.
1442 * objfiles.c (allocate_objfile): Set
1443 objfile->cp_namespace_symtab.
1444 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1445 dictionary_h, command_h.
1446
33a7c2fc
AC
14472003-09-11 Andrew Cagney <cagney@redhat.com>
1448
1449 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1450 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1451 near the function's end.
1452 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1453 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1454 regcache_raw_write_signed to set SP_REGNUM.
1455
63cd24fe
EZ
14562003-09-11 Elena Zannoni <ezannoni@redhat.com>
1457
1458 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1459 orig_addrs is set up properly.
1460
f27dd7fd
AC
14612003-09-11 Andrew Cagney <cagney@redhat.com>
1462
1463 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1464 * gdbarch.h, gdbarch.c: Re-generate.
1465 * infcall.c (call_function_by_hand): Update.
1466 * hppa-tdep.c (hppa_push_arguments): Update.
1467 * ada-lang.c (place_on_stack): Update.
1468 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1469 * sparc-tdep.c (sparc_gdbarch_init): Update.
1470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1471 * hppa-tdep.c (hppa_gdbarch_init): Update.
1472 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1473 stack_align.
1474
f630a401
DJ
14752003-09-11 Daniel Jacobowitz <drow@mvista.com>
1476
1477 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1478 register do need a frame.
1479
0ddabb4c
AC
14802003-09-11 Andrew Cagney <cagney@redhat.com>
1481
1482 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1483 buildable since GDB 5.0.
1484 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1485 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1486 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1487 * irix4-nat.c: Delete file.
1488 * config/mips/irix4.mh: Delete file.
1489 * config/mips/irix3.mh: Delete file.
1490 * config/mips/irix3.mt: Delete file.
1491 * config/mips/tm-irix3.h: Delete file.
1492 * config/mips/nm-irix3.h: Delete file.
1493 * config/mips/xm-irix3.h: Delete file.
1494 * config/mips/nm-irix4.h: Delete file.
1495 * config/mips/xm-irix4.h: Delete file.
1496 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1497
fde2cceb
JB
14982003-09-10 J. Brobecker <brobecker@gnat.com>
1499
1500 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1501 * Makefile.in (hppa-tdep.o): Update dependencies.
1502
66f667f5
JW
15032003-09-10 James E Wilson <wilson@specifixinc.com>
1504
ef5fd69f
JW
1505 * MAINTAINERS: Change my e-mail address. Move to paper trail
1506 section.
66f667f5 1507
53e8aaea
KB
15082003-09-10 Kevin Buettner <kevinb@redhat.com>
1509
1510 * MAINTAINERS (frv): New ISA entry.
1511
dcc6aaff
KB
15122003-09-10 Kevin Buettner <kevinb@redhat.com>
1513
1514 * frv-tdep.c (dis-asm.h): Include.
1515 * Makefile.in (frv-tdep.o): Update dependencies.
1516
932644f0
JJ
15172003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1518
1519 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1520 Fix typo for high range of floating registers.
1521
91c24f0a
DC
15222003-09-09 David Carlton <carlton@kealia.com>
1523
1524 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1525 highpc initialization here out of scan_partial_symbols.
1526 (scan_partial_symbols): Restructure into a recursive version,
1527 calling add_partial_namespace and add_partial_enumeration when
1528 appropriate.
1529 (add_partial_namespace): New.
1530 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1531
c9263853
AC
15322003-09-09 Andrew Cagney <cagney@redhat.com>
1533
e56a0ecc
AC
1534 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1535 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1536 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1537 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1538
794a477a
AC
1539 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1540 (rs6000_push_dummy_call): Set the "TOC" register.
1541
c9263853
AC
1542 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1543 methods "max_register_raw_size", "max_register_virtual_size" or
1544 "register_virtual_size".
1545
afa7d0b2
ILT
15462003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1547
1548 * MAINTAINERS: Update my e-mail address.
1549
7a41266b
AC
15502003-09-09 Andrew Cagney <cagney@redhat.com>
1551
1552 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1553 (rs6000_push_dummy_call): Store the struct return address.
1554 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1555
77b2b6d4
AC
15562003-09-09 Andrew Cagney <cagney@redhat.com>
1557
1558 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1559 "ppc_sysv_abi_push_arguments".
1560 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1561 "ppc_sysv_abi_push_arguments".
1562 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1563 instead of "push_arguments".
1564 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1565
e8a7b686
AC
15662003-09-09 Andrew Cagney <cagney@redhat.com>
1567
1568 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1569 instead of CALL_DUMMY_ADDRESS.
1570
f86f5ca3
PH
15712003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1572
1573 * p-lang.c: Eliminate "register".
1574 * c-lang.c: Ditto.
1575 * expprint.c: Ditto.
1576 * f-lang.c: Ditto.
1577 * jv-lang.c: Ditto.
1578 * language.c: Ditto.
1579 * m2-lang.c: Ditto.
1580 * parse.c: Ditto.
1581 * scm-lang.c: Ditto.
1582 * objc-lang.c: Ditto.
1583
83ee270e
NC
15842003-09-09 Nick Clifton <nickc@redhat.com>
1585
1586 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1587
a89aa300
AC
15882003-09-04 Andrew Cagney <cagney@redhat.com>
1589
1590 * avr-tdep.c: Include "dis-asm.h".
1591 * cris-tdep.c: Include "dis-asm.h".
1592 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1593 instead of corresponding typedef.
1594 * h8300-tdep.c: Include "dis-asm.h".
1595 * ia64-tdep.c: Include "dis-asm.h".
1596 * i386-tdep.c: Include "dis-asm.h".
1597 (i386_print_insn): Use "struct disassemble_info" instead of
1598 corresponding typedef.
1599 * m68k-tdep.c: Include "dis-asm.h".
1600 * mcore-tdep.c: Include "dis-asm.h".
1601 * mips-tdep.c: Include "dis-asm.h".
1602 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1603 instead of corresponding typedef.
1604 * ns32k-tdep.c: Include "dis-asm.h".
1605 * s390-tdep.c: Include "dis-asm.h".
1606 * sparc-tdep.c: Include "dis-asm.h".
1607 * vax-tdep.c: Include "dis-asm.h".
1608 * v850-tdep.c: Include "dis-asm.h".
1609 * mn10300-tdep.c: Include "dis-asm.h".
1610 * rs6000-tdep.c: Include "dis-asm.h".
1611 * xstormy16-tdep.c: Include "dis-asm.h".
1612 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1613 print_insn_xstormy16.
1614 * Makefile.in (v850-tdep.o): Update dependencies.
1615 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1616 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1617 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1618 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1619 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1620 (gdbarch_h): Remove $(dis_asm_h).
1621 * disasm.c: Include "dis-asm.h".
1622 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1623 corresponding typedef.
1624 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1625 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1626 * gdbarch.sh: Do not include "dis-asm.h".
1627 (struct disassemble_info): Declare opaque.
1628 (TARGET_PRINT_INSN): Update declaration.
1629 * gdbarch.h, gdbarch.c: Re-generate.
1630
88a82a65
AC
16312003-09-08 Andrew Cagney <cagney@redhat.com>
1632
1633 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1634 CALL_DUMMY_ADDRESS, change to a predicate.
1635 * gdbarch.h, gdbarch.c: Re-generate.
1636 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1637 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1638 * infcall.c (call_function_by_hand): Ditto.
1639 * sparc-tdep.c (sparc_push_return_address): Ditto.
1640 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1641 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1642 CALL_DUMMY_ADDRESS with entry_point_address.
1643 * v850-tdep.c (v850_push_return_address): Ditto.
1644 * s390-tdep.c (s390_push_return_address): Ditto.
1645 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1646 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1647 * mcore-tdep.c (mcore_push_return_address): Ditto.
1648 * cris-tdep.c (cris_push_return_address): Ditto.
1649 * arm-tdep.c (arm_push_return_address): Ditto.
1650
3e2c4033
AC
16512003-09-08 Andrew Cagney <cagney@redhat.com>
1652
1653 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1654 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1655 and REG_UNMODIFIED to REG_SAME_VALUE.
1656 (execute_cfa_program): Update.
1657 (dwarf2_frame_cache): Update. Initialize table to
1658 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1659 location.
1660 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1661
39efb398
AC
16622003-09-08 Andrew Cagney <cagney@redhat.com>
1663
1664 * gnu-nat.c: Remove "inline" function attribute.
1665 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1666
f5cb5aca
KB
16672003-09-08 Kevin Buettner <kevinb@redhat.com>
1668
1669 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1670 target.
1671
1cb761c7
KB
16722003-09-08 Kevin Buettner <kevinb@redhat.com>
1673
1674 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1675 (frame_extra_info): Rename this struct to frv_unwind_cache.
1676 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1677 Add fields ``prev_sp'' and ``base''.
1678 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1679 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1680 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1681 Delete.
1682 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1683 Revise all callers. Fill in the unwind cache argument and make
1684 other adjustments to account for new frame mechanisms.
1685 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1686 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1687 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1688 (frv_frame_unwind, frv_frame_base): New structs.
1689 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1690 additional arguments expected by this method and adjust function
1691 body accordingly.
1692 (frv_gdbarch_init): Remove calls to the following functions:
1693 set_gdbarch_deprecated_init_frame_pc(),
1694 set_gdbarch_deprecated_saved_pc_after_call(),
1695 set_gdbarch_deprecated_frame_chain(),
1696 set_gdbarch_deprecated_frame_saved_pc(),
1697 set_gdbarch_deprecated_frame_init_saved_regs(),
1698 set_gdbarch_deprecated_push_arguments(),
1699 set_gdbarch_deprecated_push_return_address(),
1700 set_gdbarch_deprecated_pop_frame(),
1701 set_gdbarch_deprecated_call_dummy_words(),
1702 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1703 set_gdbarch_deprecated_init_extra_frame_info(),
1704 set_gdbarch_deprecated_dummy_write_sp(), and
1705 set_gdbarch_deprecated_pc_in_call_dummy().
1706 Add calls to the following functions:
1707 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1708 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1709 frame_base_set_default().
1710 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 1711
68f6cf99
MK
17122003-09-09 Mark Kettenis <kettenis@gnu.org>
1713
1714 * dwarf2-frame.c (read_encoded_value): Add support for
1715 DW_EH_PE_aligned encoding.
1716
73b65bb0
DJ
17172003-09-08 Daniel Jacobowitz <drow@mvista.com>
1718
1719 * infrun.c (normal_stop): Don't print a message if the inferior
1720 has exited.
1721
7c8a5605
JB
17222003-09-08 Jim Blandy <jimb@redhat.com>
1723
1724 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1725 * dbxread.c: #include "gdb_assert.h".
1726 (read_dbx_symtab): If the objfile has no .data section, use the
1727 section index for the .bss section instead.
1728
7dd88986
DJ
17292003-09-08 Daniel Jacobowitz <drow@mvista.com>
1730
1731 * frame.c (deprecated_safe_get_selected_frame): New function.
1732 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1733 * findvar.c (read_var_value): Call it.
1734
55ff77ac
CV
17352003-09-08 Corinna Vinschen <vinschen@redhat.com>
1736
1737 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1738 (sh64-tdep.o): Add dependencies.
1739 * configure.tgt: Add FIXME to sh-*-linux*.
1740 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1741 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 1742 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
1743 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1744 * sh64-tdep.c: New file, containing all sh64 related code from
1745 sh-tdep.c.
1746 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1747 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 1748 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
1749 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1750 * config/sh/wince.mt (TDEPFILES): Ditto.
1751
bfb39158
DJ
17522003-09-07 Daniel Jacobowitz <drow@mvista.com>
1753
1754 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1755 (stop_wait_callback): Handle !lp->signalled also.
1756 (lin_lwp_has_pending, flush_callback): New functions.
1757 (lin_lwp_wait): Call flush_callback.
1758 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1759 (linux_proc_pending_signals): New function.
1760 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1761
9407de8e
DJ
17622003-09-07 Daniel Jacobowitz <drow@mvista.com>
1763
1764 From Nick Kelsey <nickk@ubicom.com>:
1765 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1766 when the stop PC is at the beginning of a function also.
1767
2ef47cd0
DJ
17682003-09-06 Daniel Jacobowitz <drow@mvista.com>
1769
1770 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1771 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1772
6f4492c8
MK
17732003-09-06 Mark Kettenis <kettenis@gnu.org>
1774
1775 * sol-thread.c: Include "gdb_string.h".
1776
d3420b2f
MK
17772003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1778
1779 * gcore.c: Reorder include files in alphabetical order. Include
1780 "gdb_assert.h". Various coding style fixes.
1781 (derive_stack_segment, derive_heap_segment): Replace check for
1782 non-null BOTTOM and TOP with gdb_assert.
1783 (derive_heap_segment): Replace check for successful creation of
1784 ZERO with gdb_assert.
1785 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1786
5220ea4c
AC
17872003-09-04 Andrew Cagney <cagney@redhat.com>
1788
1789 * thread-db.c (verbose_dlsym): New function.
1790 (thread_db_load): Use verbose_dlsym
1791 (thread_db_new_objfile): Print that libthread_db was loaded, and
1792 that thread debugging was enabled.
1793
6e8c2c06
AC
17942003-09-04 Andrew Cagney <cagney@redhat.com>
1795
1796 * configure.tgt: Add "mips64*-*-*" target. Delete
1797 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1798 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1799 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1800 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1801 mips*-sony-*, and mips64*-*-elf* targets.
1802 * config/mips/embedl.mt: Delete file.
1803 * config/mips/embedl64.mt: Delete file.
1804 * config/mips/mips.mt: Delete file.
1805 * config/mips/mips64.mt: Delete file.
1806 * config/mips/tm-embed.h: Delete file.
1807 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1808 * config/mips/embed64.mt: Delete out-of-date comment.
1809
3a3bc038
AC
18102003-09-04 Andrew Cagney <cagney@redhat.com>
1811
1812 * hppa-tdep.c (hppa_gdbarch_init): Set
1813 "have_nonsteppable_watchpoint".
1814 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1815 * mips-tdep.c (mips_dump_tdep): Do not print
1816 HAVE_NONSTEPPABLE_WATCHPOINT.
1817 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1818 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1819 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1820 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1821
a957e642
CV
18222003-09-04 Corinna Vinschen <vinschen@redhat.com>
1823
1824 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1825 unused code. Add comment.
1826
a6fbcf2f
CV
18272003-09-04 Corinna Vinschen <vinschen@redhat.com>
1828
1829 * breakpoint.c (watchpoint_check): Check for pc being in an
1830 epilogue if watchpoint frame couldn't be found.
1831
c14a44d5
AC
18322003-09-04 Andrew Cagney <cagney@redhat.com>
1833
1834 * Makefile.in: Re-generate all dependencies.
1835
f6c40618
AC
18362003-09-03 Andrew Cagney <cagney@redhat.com>
1837
1838 * arch-utils.h (legacy_print_insn): Delete declaration.
1839 * arch-utils.c (legacy_print_insn): Delete function.
1840 * disasm.c (deprecated_tm_print_insn_info): Delete.
1841 (_initialize_disasm): Delete function, contained code initializing
1842 deprecated_tm_print_insn_info.
1843 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1844 (deprecated_tm_print_insn_info): Delete.
1845 (TARGET_PRINT_INSN): Do not provide a default.
1846 * gdbarch.h, gdbarch.c: Re-generate.
1847
242e8be5
AC
18482003-09-03 Andrew Cagney <cagney@redhat.com>
1849
1850 * disasm.c (fprintf_disasm): New function.
1851 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1852 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1853 reverts 2003-08-14 change.
1854 (_initialize_disasm): Call "init_disassemble_info", instead of
1855 INIT_DISASSEMBLE_INFO_NO_ARCH.
1856
3ffc3dda
MS
18572003-09-03 Michael Snyder <msnyder@redhat.com>
1858
1859 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1860
52d16ba8
AC
18612003-09-03 Andrew Cagney <cagney@redhat.com>
1862
1863 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1864 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1865 * symfile.c (syms_from_objfile): Update.
1866 (reread_symbols): `Update
1867 * exec.c (exec_file_attach): Update.
1868 (exec_file_attach): Update.
1869 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1870 2003-08-29 change.
1871 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1872
eb5492fa
DJ
18732003-09-03 Daniel Jacobowitz <drow@mvista.com>
1874
1875 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1876 trad-frame.h.
1877 (arm_get_cache): Delete macro.
1878 (struct arm_prologue_cache): Update comments. Make saved_regs into
1879 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1880 to prev_sp.
1881 (thumb_scan_prologue): Update for cache changes. Don't call
1882 DEPRECATED_PC_IN_CALL_DUMMY.
1883 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1884 argument and use it in desperation search for our prologue. Do not
1885 search past the specified PC.
1886 (arm_make_prologue_cache): Simplify.
1887
1888 (arm_prologue_this_id, arm_prologue_prev_register)
1889 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1890 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1891 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1892 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1893 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1894
1895 (arm_frame_chain_valid, arm_find_callers_reg)
1896 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1897 (arm_pop_frame): Delete obsolete methods.
1898 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1899
1900 (arm_gdbarch_init): Update for new frame methods. Register prologue
1901 and sigtramp unwinders. Set the default frame base method.
1902
1903 * Makefile.in (arm-tdep.o): Update dependencies.
1904 * varobj.c (find_frame_addr_in_frame_chain): Call
1905 get_frame_base_address.
1906 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1907
24de872b
DJ
19082003-09-03 Daniel Jacobowitz <drow@mvista.com>
1909
1910 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1911 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1912 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1913 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1914 Take NEXT_FRAME and CACHE arguments. Call
1915 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1916 Set unwound_pc in CACHE instead of modifying the frame argument.
1917 Don't bother checking the frame type when looking for sigtramp
1918 frames.
1919 (arm_make_prologue_cache, arm_frame_chain)
1920 (arm_init_extra_frame_info): New functions.
1921
9b8d791a
DJ
19222003-09-03 Daniel Jacobowitz <drow@mvista.com>
1923
1924 * arm-tdep.c (arm_get_cache): Define.
1925 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1926 unwound_sp, unwound_pc, and saved_regs.
1927 (thumb_scan_prologue): Take a cache instead of the frame.
1928 (arm_scan_prologue): Likewise.
1929 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1930 instead of a temporary frame.
1931 (arm_init_extra_frame_info): Allocate and use a cache.
1932 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1933
7ee3275f
AC
19342003-09-03 Andrew Cagney <cagney@redhat.com>
1935
1936 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1937 * config/mips/wince.mt (TM_CLIBS): Ditto.
1938 * config/sh/wince.mt (TM_CLIBS): Ditto.
1939 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1940 * config/sparc/sp64.mt (CC): Delete.
1941
57b29be7
AC
19422003-09-03 Andrew Cagney <cagney@redhat.com>
1943
1944 * defs.h: Do not include "arch-utils.h".
1945 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1946 GDB_MULTI_ARCH_PURE.
1947 * configure.in (GDB_MULTI_ARCH): Do not define.
1948 * configure, config.in: Regenerate.
1949 * configure.tgt: Do not set variable "gdb_multi_arch".
1950 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1951 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1952 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1953 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1954 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1955 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1956 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1957 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1958 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1959 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1960 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1961 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1962 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1963 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1964 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1965 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1966 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1967 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 1968
12e035e2
MC
19692003-08-30 Michael Chastain <mec@shout.net>
1970
1971 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1972 * config/m68k/nm-hp300hpux.h: Delete.
1973 * config/m68k/tm-hp300hpux.h: Delete.
1974 * config/m68k/xm-hp300hpux.h: Delete.
1975 * config/m68k/xm-hp300bsd.h: Delete.
1976 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1977 tm-hp300hpux.h, xm-hp300hpux.h.
1978 * somsolib.c: Remove comment about hp300 shared libraries.
1979
bda34dc2
MK
19802003-08-31 Mark Kettenis <kettenis@gnu.org>
1981
5bca7895
MK
1982 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1983 Only define PTRACE_GET_THREAD_AREA is not already defined.
1984 Various style fixes in code and comments and some additional
1985 spelling fixes in comments. Move after functions dealing with
1986 debug registers.
1987 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1988 Fix coding-style.
1989
bda34dc2
MK
1990 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1991 frame_unwind_register_unsigned instead of
1992 frame_unwind_unsigned_register.
1993
c890192f
MK
19942003-08-30 Mark Kettenis <kettenis@gnu.org>
1995
1996 * configure.in: Search for gethostbyname in libnsl.
1997 * configure: Regenerated.
1998
60fac5b8
MK
19992003-08-29 Mark Kettenis <kettenis@gnu.org>
2000
e294916c
MK
2001 * configure.in: Remove redundant AC_MSG_RESULT in check for
2002 uintptr_t in stdint.h.
2003 * configure: Regenerated.
2004
c40d267a
MK
2005 * amd64-nat.h (struct regcache): Add opaque declaration.
2006
60fac5b8
MK
2007 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2008 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2009 Change "register array" to "register cache" in comments.
2010 (x86_64_linux_gregset64_reg_offset): New variable.
2011 (GETREGS_SUPPLIES): Remove macro.
2012 (supply_gregset): Call amd64_supply_native_gregset instead of
2013 x86_64_linux_supply_gregset.
2014 (fill_gregset): Rename `regno' to `regnum'. Call
2015 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2016 (store_regs): Rename `regno' to `regnum'.
2017 (store_fpregs): Rename `regno' to `regnum'.
2018 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2019 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2020 Reorganize function a bit.
2021 (store_inferior_registers): Rename `regno' to `regnum'. Use
2022 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2023 Reorganize function a bit.
2024 (_initialize_x86_64_linux_nat): New function.
2025 * config/i386/x86-64linux.mh.
2026
546143b6
AC
20272003-08-29 Andrew Cagney <cagney@redhat.com>
2028
2029 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2030 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2031 (target_remove_watchpoint): Delete macro.
2032 (target_insert_watchpoint): Delete macro.
2033 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2034 (remote_mips_stopped_by_watchpoint): Delete declaration.
2035 (remote_mips_remove_watchpoint): Delete declaration.
2036 (remote_mips_set_watchpoint): Delete declaration.
2037 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2038 * remote-mips.c (_initialize_remote_mips): Set
2039 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2040 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2041 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2042 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2043 (mips_stopped_by_watchpoint): Rename
2044 remote_mips_stopped_by_watchpoint.
2045 (mips_can_hardware_watchpoint): Rename
2046 remote_mips_can_use_hardware_watchpoint, update function
2047 signature.
2048
7bace51b
MK
20492003-08-29 Mark Kettenis <kettenis@gnu.org>
2050
b0f5c6f2
MK
2051 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2052 USER_DS. We haven't given them a register number yet.
2053
2a6d284d
MK
2054 * amd64-nat.h: New file.
2055 * amd64-nat.c: New file.
2056 * amd64fbsd-nat.c: Include "amd64-nat.h".
2057 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2058 (amd64fbsd32_r_reg_offset): New variable.
2059 (supply_gregset): Simply call amd64_supply_native_gregset.
2060 (fill_gregset): Rename `regno' to `regnum'. Simply call
2061 amd64_collect_native_gregset.
2062 (fill_fpregset): Rename `regno' to `regnum'.
2063 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2064 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2065 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2066 `fpregset_t'. Call amd64_supply_native_gregset instead of
2067 supply_gregset. Call x86_64_supply_fxsave instead of
2068 supply_fpregset.
2069 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2070 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2071 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2072 `fpregset_t'. Call amd64_collect_native_gregset instead of
2073 fill_gregset. Call x86_64_collect_fxsave instead of
2074 fill_fpregset.
2075 (_initialize_am64fbsd_nat): Initialize
2076 amd64_native_gregset32_reg_offset and
2077 amd64_native_gregset64_reg_offset.
2078 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2079
a16d75cc
MK
2080 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2081 null pointer. Fix typo in comment.
2082
7bace51b
MK
2083 * regcache.c (supply_register): Reimplement to call
2084 regcache_raw_supply.
2085 (regcache_collect): Reimplement by calling regcache_raw_collect.
2086
9a661b68
MK
20872003-08-28 Mark Kettenis <kettenis@gnu.org>
2088
2089 * regcache.c (register_buffer): Consitify first argument.
2090 (regcache_raw_supply, regcache_raw_collect): New
2091 functions.
2092
e94cc8fa
DJ
20932003-08-28 Daniel Jacobowitz <drow@mvista.com>
2094
2095 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2096 by Nathan J. Williams.
2097
c64bd0ce
DJ
20982003-08-28 Daniel Jacobowitz <drow@mvista.com>
2099
2100 * lin-lwp.c (wait_lwp): New function, copied from
2101 stop_wait_callback. Clean up.
2102 (stop_wait_callback): Use wait_lwp.
2103
e5ab0dce
AC
21042003-08-28 Andrew Cagney <cagney@redhat.com>
2105
2106 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2107 flavour and disassembler options.
2108 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2109 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2110 deprecated_tm_print_insn_info.
a8f4cde1 2111
a788de9b
AC
21122003-08-27 Andrew Cagney <cagney@redhat.com>
2113
2114 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2115 Use target_read_memory.
2116 (s390_get_frame_info): Update. Do not reference
2117 deprecated_tm_print_insn_info.
2118 (s390_check_function_end, s390_is_sigreturn): Ditto.
2119
36482093
AC
21202003-08-27 Andrew Cagney <cagney@redhat.com>
2121
2122 * Makefile.in (cris-tdep.o): Update dependencies.
2123 * cris-tdep.c: Include "gdb_assert.h".
2124 (cris_gdbarch_init): Set print_insn.
2125 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2126 (cris_delayed_get_disassembler): Simplify, directly call the
2127 disassembler returned by cris_get_disassembler.
2128 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2129 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2130 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2131 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2132 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2133 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2134 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2135 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2136 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2137 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2138 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2139 (gdb_print_insn_sparc): Delete function.
2140 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2141 deprecated_tm_print_insn_info.
2142 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2143 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2144 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2146 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2147 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2148 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2149 (s390_gdbarch_init): Set print_insn.
2150
0285512f
AC
21512003-08-27 Andrew Cagney <cagney@redhat.com>
2152
2153 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2154 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2155 * infcall.c (call_function_by_hand): Convert the entry point
2156 address into a code address.
2157
cdcd5552
AC
21582003-08-27 Andrew Cagney <cagney@redhat.com>
2159
2160 * dsrec.c: Include "gdb_string.h".
2161 * Makefile.in (dsrec.o): Update dependencies.
2162
e85cddad
MC
21632003-08-27 Michael Chastain <mec@shout.net>
2164
2165 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2166
8bbfbb23
AC
21672003-08-27 Andrew Cagney <cagney@redhat.com>
2168
2169 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2170 (alpha_osf1_init_abi): Do not set call_dummy_address.
2171
ba058b66
DC
21722003-08-27 David Carlton <carlton@kealia.com>
2173
2174 From Randolph Chung <tausq@debian.org>:
2175 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2176 compiles with -Wformat-nonliteral -Werror.
2177
87f84c9d
JB
21782003-08-26 Jim Blandy <jimb@redhat.com>
2179
2180 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2181 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2182 bfd_lookup_symbol, since we only want symbols in code sections.
2183 (look_for_base): Pass zero as the SECT_FLAGS argument to
2184 bfd_lookup_symbol, since we're not concerned about which section
2185 the symbol is in.
2186
102d615a
JJ
21872003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2188
2189 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2190 we are frameless or the return address register is already known.
102d615a 2191
cc7ad3ea
AC
21922003-08-26 Andrew Cagney <cagney@redhat.com>
2193
2194 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2195 in size. Add comments.
2196
af8b88dd
JJ
21972003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2198
2199 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2200 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2201
e0a4f5a1
JM
22022003-08-26 Jason Merrill <jason@redhat.com>
2203
2204 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2205 case out of #ifdef MIPS block.
2206
4ae9ee8e
DJ
22072003-08-25 Daniel Jacobowitz <drow@mvista.com>
2208
2209 PR java/1322
2210 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2211 available before calling SECT_OFF_TEXT.
3c164570 2212 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2213
004d836a
JJ
22142003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2215
a8f4cde1 2216 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2217 bof, and nat0-nat127 as pseudo-registers.
2218 (ia64_frame_cache): New struct used to cache frame info.
2219 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2220 register grouping so registers without names are still saved and
004d836a 2221 restored.
a8f4cde1 2222 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2223 pseudo values.
2224 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2225 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2226 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2227 ia64_frame_cache.
2228 (examine_prologue): Change prototype to add next_frame pointer.
2229 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2230 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2231 alloc insn and if equal, mark as not frameless. At end of routine,
2232 if not frameless, calculate registers for the previous frame and store
2233 in the cache, if a cache is provided.
2234 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2235 and pass 0 for next_frame.
2236 (ia64_store_return_value): Change to use convert_typed_floating()
2237 instead of calling ia64_convert_to_raw().
2238 (ia64_extract_return_value): Change to use convert_typed_floating()
2239 instead of calling ia64_convert_to_virtual().
2240 (ia64_frame_cache): New routine to support new frame model.
2241 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2242 (ia64_frame_sniffer): Ditto.
2243 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2244 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2245 (ia64_sigtramp_frame_prev_register): Ditto.
2246 (ia64_sigtramp_frame_sniffer): Ditto.
2247 (ia64_frame_base_address): Ditto.
2248 (ia64_extract_struct_value_address): Change to issue error message.
2249 (ia64_frame_align): New routine to align sp.
2250 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2251 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2252 ia64_push_dummy_call().
2253 (ia64_push_return_address): Ditto.
2254 (ia64_unwind_dummy_id): New function.
2255 (ia64_unwind_pc): Ditto.
2256 (ia64_convert_register_p): Ditto.
2257 (ia64_register_to_value): Ditto.
2258 (ia64_value_to_register): Ditto.
2259 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2260 (ia64_register_byte, ia64_register_raw_size): Ditto.
2261 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2262 (ia64_saved_pc_after_call): Ditto.
2263 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2264 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2265 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2266 (ia64_register_convert_to_raw): Ditto.
2267 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2268 (ia64_init_extra_frame_info): Ditto.
2269 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2270 (ia64_gdbarch_init): Remove registering of deprecated functions that
2271 are no longer used. Add registration of new gdbarch functions.
2272 Remove registering deprecated_write_sp. Replace
2273 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2274 Delete set_gdbarch_deprecated_register_convertible(),
2275 set_gdbarch_deprecated_register_convert_to_virtual(), and
2276 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2277 set_gdbarch_deprecated_register_size(),
2278 set_gdbarch_deprecated_register_bytes(),
2279 set_gdbarch_pcregnum(),
2280 set_gdbarch_deprecated_register_byte(),
2281 set_gdbarch_deprecated_register_raw_size(),
2282 set_gdbarch_deprecated_max_register_raw_size(),
2283 set_gdbarch_deprecated_register_virtual_size(),
2284 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2285 Replace set_gdbarch_deprecated_extract_return_value() with
2286 set_gdbarch_extract_return_value(). Remove calls to:
2287 set_gdbarch_deprecated_saved_pc_after_call();
2288 set_gdbarch_deprecated_frame_chain(),
2289 set_gdbarch_deprecated_frame_saved_pc(),
2290 set_gdbarch_deprecated_frame_init_saved_regs(),
2291 set_gdbarch_deprecated_get_saved_register(),
2292 set_gdbarch_deprecated_call_dummy_words(),
2293 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2294 set_gdbarch_deprecated_init_extra_frame_info(),
2295 set_gdbarch_deprecated_frame_args_address(),
2296 set_gdbarch_deprecated_frame_locals_address(),
2297 and set_gdbarch_deprecated_dummy_write_sp().
2298 Add set_gdbarch_convert_register_p(),
2299 set_gdbarch_register_to_value(),
2300 set_gdbarch_value_to_register(),
2301 set_gdbarch_push_dummy_call(),
2302 set_gdbarch_frame_align(),
2303 set_gdbarch_unwind_dummy_id(),
2304 set_gdbarch_unwind_pc(),
2305 frame_unwind_append_sniffer(),
2306 frame_unwind_append_sniffer(),
2307 and frame_base_set_default().
2308
aede7613
CD
23092003-08-25 Chris Demetriou <cgd@broadcom.com>
2310
2311 * configure.tgt: Document need for special "mipsisa64" handling.
2312 (mipsisa64*-*-linux64): Handle as target linux64.
2313 (mipsisa64*-*-*): Handle as target embed64.
2314
43c3a82e
MC
23152003-08-18 Michael Chastain <mec@shout.net>
2316
2317 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2318 objfile bug.
2319
6564f77d
MK
23202003-08-24 Mark Kettenis <kettenis@gnu.org>
2321
2de139ba
MK
2322 * i387-tdep.h: Update copyright date.
2323 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2324
6564f77d
MK
2325 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2326 CFLAGS games to reflect reality.
2327
42cf1509
AC
23282003-08-24 Andrew Cagney <cagney@redhat.com>
2329
2330 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2331 GDB_MULTI_ARCH is always non-zero.
2332 * osabi.c (_initialize_gdb_osabi): Ditto.
2333 (gdbarch_init_osabi): Ditto.
2334 * sparc-tdep.c: Ditto for #if code.
2335
0485f6ad
MK
23362003-08-23 Mark Kettenis <kettenis@gnu.org>
2337
2338 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2339 Update comments.
2340 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2341 comments.
2342 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2343 x86_64_supply_fxsave.
2344 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2345 x86_64_supply_fxsave.
2346 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2347 x86_64_supply_fxsave.
2348
c7716133
AJ
23492003-08-23 Andreas Jaeger <aj@suse.de>
2350
2351 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2352 i387_supply_fxsave.
2353
ed504bdf
MK
23542003-08-23 Mark Kettenis <kettenis@gnu.org>
2355
2356 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2357 i387_supply_register.
2358 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2359 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2360 i387_supply_fsave.
2361 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2362 i387_supply_fxsave.
2363 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2364 i387_supply_fsave.
2365 * i386bsd-nat.c (supply_fpregset): Adjust call to
2366 i387_supply_fsave.
2367 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2368 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2369 supply_fpregset.
2370 (store_inferior_registers): Remove extraneous whitespace. Call
2371 i387_fill_fsave instead of fill_fpregset.
2372 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2373 (supply_fpregset): Likewise.
2374 * i386v4-nat.c (supply_fpregset): Adjust call to
2375 i387_supply_fsave.
2376 * i386-interix-nat.c (supply_fpregset): Adjust call to
2377 i387_supply_fsave.
2378 * i386-linux-nat.c (supply_fpregset): Adjust call to
2379 i387_supply_fsave.
2380 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2381 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2382 i387supply_fsave and i387_supply_fxsave.
2383 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2384 Incorporate code from `i387_supply_register.
2385 (i387_supply_register): Remove.
2386 (i387_supply_fxsave): Add `regnum' argument.
2387 Update comments.
2388 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2389 prototype.
2390 (i387_supply_register): remove prototype.
2391 Update comments.
a8f4cde1 2392
4be5d520
MC
23932003-08-22 Michael Chastain <mec@shout.net>
2394
2395 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2396 Add lines for files in gdb/testsuite/gdb.cp/* that are
2397 still not 8.3 unique.
2398
7ed85d26
DJ
23992003-08-22 Daniel Jacobowitz <drow@mvista.com>
2400
2401 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2402 TYPE_VPTR_FIELDNO is valid.
2403
eb0d3137
MK
24042003-08-19 Mark Kettenis <kettenis@gnu.org>
2405
2406 * utils.c (set_width_command): Remove prototypes.
2407 (set_screen_size): New prototype.
2408 (init_page_info): Simplify by fetching the screen size from
2409 Readline. Call set_screen_size.
2410 (set_screen_size): New function.
2411 (set_width): Add missing whitespace in comment.
2412 (set_width_command): Call set_screen_size.
2413 (set_height_command): New function.
2414 (initialize_utils): Fix formatting. Make "set height" command
2415 call set_height_command. Remove redundant code that turns off
2416 pagination if output isn't a terminal. Remove redundant call to
2417 set_width_command.
a8f4cde1 2418
7e6d0ac8
MK
24192003-08-22 Mark Kettenis <kettenis@gnu.org>
2420
3567a8ea
MK
2421 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2422 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2423 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2424 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2425 `case' keyword.
2426 (sparc64_register_info): Give the reister with number
2427 SPARC64_STATE_REGNUM a name.
2428 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2429 %asi and %ccr.
2430 (sparc64_push_dummy_call): Take BIAS into account when checking
2431 stcak alignment.
2432 (sparc_software_single_step): Remove assertions that check whether
2433 NPC and NNPC were zero.
2434 (sparc_supply_rwindow): Make public. Merge functionality with
2435 sparc64_supply_rwindow.
2436 (sparc_fill_rwindow): Make public. Merge functionality with
2437 sparc64_fill_rwindow.
2438 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2439 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2440 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2441 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2442 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2443
7e6d0ac8
MK
2444 * reggroups.c: Add whitespace after declarations of local
2445 variables in functions.
2446
72e5f484
MC
24472003-08-21 Michael Chastain <mec@shout.net>
2448
2449 * gdbtypes.h: Change array bound type from an int to enum.
2450
435ac228
AC
24512003-08-21 Andrew Cagney <cagney@redhat.com>
2452
2453 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2454 * config/sparc/tm-sparc.h: Ditto.
2455 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2456 unconditionally.
2457 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2458
0d0e1a63
MK
24592003-07-13 Mark Kettenis <kettenis@gnu.org>
2460
2461 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2462 (register_objfile_data, set_objfile_data, objfile_data): New
2463 prototypes.
2464 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2465 prototypes.
2466 (allocate_objfile): Call objfile_alloc_data.
2467 (free_objfile): Call objfile_free_data.
2468 (struct objfile_data): New.
2469 (struct objfile_data_registration): New.
2470 (struct objfile_data_registry): New.
2471 (objfile_data_registry): New variable.
2472 (register_objfile_data): New function.
2473 (objfile_alloc_data, objfile_free_data): New functions.
2474 (set_objfile_data, objfile_data): New functions.
2475 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2476 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2477 (_initialize_dwarf2_frame): New function and prototype.
2478
d90cf509
AC
24792003-08-21 Andrew Cagney <cagney@redhat.com>
2480
2481 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2482 a specific architecture.
2483 * arch-utils.h (set_architecture_from_arch_mach): Delete
2484 declaration.
2485 (target_architecture_hook): Delete declaration.
2486 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2487 (default_float_format): Assume GDB_MULTI_ARCH.
2488 (default_double_format): Assume GDB_MULTI_ARCH.
2489 (set_endian_from_file): Delete function.
2490 (arch_ok): Delete function.
2491 (set_arch): Delete function.
2492 (set_architecture_from_arch_mach): Delete function.
2493 (set_architecture_from_file): Delete function.
2494 (set_architecture): Assume GDB_MULTI_ARCH.
2495 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2496
8b39fe56
MK
24972003-08-21 Mark Kettenis <kettenis@gnu.org>
2498
2499 Rewrite FreeBSD/sparc64 native configuration.
2500 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2501 * sparc64fbsd-nat.c: New file.
2502 * sparc64fbsd-tdep.c: New file.
2503 * sparc64-tdep.c sparc64-tdep.h: New files.
2504 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2505 sparc64fbsd-tdep.o): New dependencies.
2506 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2507 and sparc64fbsd-tdep.c.
2508 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2509 * config/sparc/fbsd.mh: Remove copyright notice.
2510 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2511 sparcbsd-nat.o.
2512 * config/sparc/fbsd.mt: Remove copyright notice.
2513 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2514 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2515 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2516 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2517 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2518 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2519 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2520 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2521 "sparc/tm-sp64.h".
2522 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2523 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2524
a7f19c79
MC
25252003-08-21 Michael Chastain <mec@shout.net>
2526
2527 * symtab.h: Add doco on the space critical structures and
2528 some measurements of space usage.
2529
da08ea5b
MS
25302003-08-21 Michael Snyder <msnyder@redhat.com>
2531
2532 * tracepoint.c (trace_dump_command): Trace break address
2533 is subject to DECR_PC_AFTER_BREAK.
2534 (set_traceframe_context): Make "trace_line" an int.
2535 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2536
6df2bf50
MS
25372003-08-20 Michael Snyder <msnyder@redhat.com>
2538
2539 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2540 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2541 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2542 argument passing.
a8f4cde1 2543 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2544 functions, replace sh_push_dummy_call.
2545 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2546
0955bbf0
MC
25472003-08-20 Michael Chastain <mec@shout.net>
2548
2549 * gdbtypes.h (struct main_type): Rearrange to save space.
2550
260a4188
MS
25512003-08-20 Michael Snyder <msnyder@redhat.com>
2552
2553 * trad-frame.c: Comment typo fix.
2554
8baa6f92
KB
25552003-08-20 Michael Snyder <msnyder@redhat.com>
2556 Kevin Buettner <kevinb@redhat.com>
2557
2558 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2559 (frv_frame_init_saved_regs): Add declaration.
2560 (frame_extra_info): Add new field ``saved_regs''.
2561 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2562 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2563 Update frame related code.
2564 (frv_extract_struct_value_address): Adjust formatting.
2565 * Makefile.in (frv-tdep.o): Update dependencies.
2566 * config/frv/tm-frv.h (target_insert_watchpoint)
2567 (target_remove_watchpoint, target_insert_hw_breakpoint)
2568 (target_remove_hw_breakpoint): Delete these macros.
2569 (remote_insert_watchpoint, remote_remove_watchpoint)
2570 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2571 these declarations.
2572
87193939
MC
25732003-08-20 Michael Chastain <mec@shout.net>
2574
2575 * defs.h (ENUM_BITFIELD): New macro.
2576 * symtab.h (ENUM_BITFIELD): Use it.
2577 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2578
062103ba
SA
25792003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2580
2581 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2582
8b148df9
AC
25832003-08-18 Andrew Cagney <cagney@redhat.com>
2584
2585 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2586 * gdbarch.h, gdbarch.c: Re-generate.
2587 * infcall.c (call_function_by_hand): Adjust the SP by
2588 frame_red_zone_size before allocating any stack space.
2589 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2590 * x86-64-tdep.c (x86_64_frame_align): New function.
2591 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2592
2593 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2594 Remove code adjusting SP so that it skips over the Red Zone.
2595
954a4db8
MK
25962003-08-18 Mark Kettenis <kettenis@gnu.org>
2597
2598 * NEWS (New native configurations): Mention FreeBSD/amd64.
2599
1a241548
AC
26002003-08-18 Andrew Cagney <cagney@redhat.com>
2601
2602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2603 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2604 "m68k_frame_p".
2605 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2606
f82b2acd
MK
26072003-08-18 Mark Kettenis <kettenis@gnu.org>
2608
2609 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2610
4056d258
ML
26112003-08-18 Michal Ludvig <mludvig@suse.cz>
2612
2613 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2614 Define.
2615 * i386-linux-nat.c: Include "linux-nat.h".
2616 (child_post_startup_inferior): New function.
a8f4cde1 2617
99ab4326
MK
26182003-08-18 Mark Kettenis <kettenis@gnu.org>
2619
2620 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2621 at the start of a frameless function. This probably fixes PR
2622 backtrace/1338.
2623
c8d5f0d6
MC
26242003-08-17 Michael Chastain <mec@shout.net>
2625
2626 * symfile.c (find_sym_fns): Remove special case for apollo target.
2627
9016a515
DJ
26282003-08-17 Daniel Jacobowitz <drow@mvista.com>
2629
2630 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2631 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2632 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2633 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2634 (linux_supports_tracevforkdone): New function.
2635 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2636 TRACEVFORKDONE.
2637 (child_follow_fork): Handle vfork.
2638 (linux_handle_extended_wait): Likewise. Also handle exec.
2639 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2640 * NEWS: Mention fork tracing.
2641
c538c11c
DJ
26422003-08-17 Daniel Jacobowitz <drow@mvista.com>
2643
2644 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2645
4de4c07c
DJ
26462003-08-17 Daniel Jacobowitz <drow@mvista.com>
2647
2648 * Makefile.in (i386-linux-nat.o): Update dependencies.
2649 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2650 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2651 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2652 * i386-linux-nat.c: Include "linux-nat.h".
2653 (child_post_startup_inferior): New function.
2654 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2655 * infptrace.c (kill_inferior): Wrap in #ifdef.
2656 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2657 attaching to each LWP.
2658 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2659 (init_lin_lwp_ops): Fill in some more operations.
2660 * linux-nat.h (linux_enable_event_reporting)
2661 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2662 prototypes.
2663 * linux-nat.c (linux_enable_event_reporting): New function.
2664 (child_post_attach, linux_child_post_startup_inferior)
2665 (child_post_startup_inferior, child_follow_fork)
2666 (linux_handle_extended_wait, kill_inferior): New functions.
2667
7996bcec
AC
26682003-08-16 Andrew Cagney <cagney@redhat.com>
2669
2670 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2671 * gdbarch.h, gdbarch.c: Re-generate.
2672
3d48a7a0
MK
26732003-08-16 Mark Kettenis <kettenis@gnu.org>
2674
2675 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2676
7989c619
AC
26772003-08-16 Andrew Cagney <cagney@redhat.com>
2678
2679 * NEWS: Mention that "set prompt-escape-char" was deleted.
2680 * top.c (get_prompt_1): Delete function.
2681 (gdb_prompt_escape):
2682 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2683 prompt-escape-char" command.
2684 (MAX_PROMPT_SIZE): Delete macro.
2685 (get_prompt): Simplify, do not call get_prompt_1.
2686
07978cd8
AC
26872003-08-16 Andrew Cagney <cagney@redhat.com>
2688
2689 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2690 -Werror. -Wformat-nonliteral problems.
2691
3ff7cf9e
JB
26922003-08-15 J. Brobecker <brobecker@gnat.com>
2693
2694 Further multiarching work mostly for hppa64-*-hpux11:
2695 * hppa-tdep.h: New file.
2696 * hppa-tdep.c: #include hppa-tdep.c.
2697 (hppa32_num_regs): Renamed from hppa_num_regs.
2698 (hppa64_num_regs): New constant.
2699 (hppa64_call_dummy_breakpoint_offset): New constant.
2700 (hppa32_call_dummy_length): New constant.
2701 (hppa64_call_dummy_length): New constant.
2702 (hppa32_stack_align): Make name 32bit explicit.
2703 (hppa32_register_virtual_type): Likewise.
2704 (hppa32_extract_return_value): Likewise.
2705 (hppa32_use_struct_convention): Likewise.
2706 (hppa32_store_return_value): Likewise.
2707 (hppa64_register_virtual_type): New function.
2708 (hppa64_extract_return_value): New function.
2709 (hppa64_use_struct_convention): New function.
2710 (hppa64_store_return_value): New function.
2711 (hppa_frame_locals_address): Remove declaration, function does
2712 not exist anymore.
2713 (hppa_register_byte): Add support for PA64 ABI.
2714 (hppa_gdbarch_init): Add support for PA64 ABI.
2715 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2716 Make name 32bit explicit.
2717 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2718 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2719 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2720 (hppa64_hpux_frame_base_before_sigtramp): New function.
2721 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2722 * config/pa/tm-hppa64.h: Remove macros that are no longer
2723 necessary now that the gdbarch vector is properly setup.
a8f4cde1 2724 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
2725 * config/pa/tm-hppah.h: Update function calls in macros
2726 following the function renaming in hppa-hpux-tdep.c.
2727 * Makefile.in (hppa_tdep_h): New variable.
2728 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2729
5d05ca6d
MS
27302003-08-14 Michael Snyder <msnyder@redhat.com>
2731
2732 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2733
37ba2569
JB
27342003-08-13 J. Brobecker <brobecker@gnat.com>
2735
2736 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2737 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2738 routine.
2739
aed7f26a
MS
27402003-08-13 Michael Snyder <msnyder@redhat.com>
2741
2742 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2743 (frv_saved_pc_after_call): Use deprecated ftype.
2744 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2745 (frv_remote_translate_xfer_address): Remove.
2746 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2747
752d4ac1
JB
27482003-08-13 J. Brobecker <brobecker@gnat.com>
2749
2750 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2751 initialization after the common gdbarch initialization, not before.
2752
1426ac1d
JB
27532003-08-13 J. Brobecker <brobecker@gnat.com>
2754
2755 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2756 (ADDR_BITS_REMOVE): Remove, redundant.
2757
b6fbdd1d
JB
27582003-08-13 J. Brobecker <brobecker@gnat.com>
2759
2760 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2761 gdbarch method to clear the 2 low bits of text addresses.
2762
44160db3
AC
27632003-08-12 Andrew Cagney <cagney@redhat.com>
2764
2765 * Makefile.in (dsrec.o): Update dependencies.
2766 * dsrec.c: Include "gdb_assert.h".
2767 (make_srec): Use snprintf instead of sprintf, use a literal format
2768 string.
2769
bcf7d3ca
AC
27702003-08-12 Andrew Cagney <cagney@redhat.com>
2771
2772 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2773 FRAME_OBSTACK_ZALLOC.
2774
49ed40de
KB
27752003-08-12 Kevin Buettner <kevinb@redhat.com>
2776
2777 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2778 SSE registers.
2779
b246147c
MK
27802003-08-10 Mark Kettenis <kettenis@gnu.org>
2781
2782 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2783 amd64fbsd_sc_reg_offset): Add extern declarations.
2784 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2785 declarations.
2786
d95fdc0d
BE
27872003-08-11 Ben Elliston <bje@wasabisystems.com>
2788
2789 * MAINTAINERS (write after approval): Update my mail address.
2790
cf6a0e73
AC
27912003-08-10 Andrew Cagney <cagney@redhat.com>
2792
2793 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2794
f837910f
MK
27952003-08-10 Mark Kettenis <kettenis@gnu.org>
2796
e2dbbd2d
MK
2797 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2798 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2799 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2800 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2801 i386bsd_sc_reg_offset): Add extern declarations.
2802 * i386obsd-nat.c: Include "i386-tdep.h"
2803 (_initialize_i386obsd_nat): Remove extern declarations.
2804 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2805 declarations.
2806 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2807 declarations.
2808
f837910f
MK
2809 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2810 instead of frame_read_register.
2811 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2812 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2813 SP_REGNUM.
2814 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2815 instead of frame_unwind_unsigned_register. Use
2816 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2817 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2818 instead of read_register. Use builtin_type_void_data_ptr instead
2819 of builtin_type_void_func_ptr when extracting the address of the
2820 jmp_buf.
2821 (i386_extract_return_value, i386_store_return_value,
2822 i386_pseudo_register_read, i386_pseudo_register_write): Use
2823 register_size instead REGISTER_RAW_SIZE.
2824
edcf254d
AC
28252003-08-10 Andrew Cagney <cagney@redhat.com>
2826
2827 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2828 sprintf. Make "name" constant.
2829
26604a34
MK
28302003-08-10 Mark Kettenis <kettenis@gnu.org>
2831
192285c6
MK
2832 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2833 instead of frame_read_register.
f837910f
MK
2834 (i387_print_float_info): Use get_frame_register and
2835 get_frame_register_unsigned instead of frame_register_read.
192285c6 2836
f0925262
MK
2837 * i386fbsd-nat.c: Include "i386-tdep.h".
2838 (child_resume): Make `eflags' an ULONGEST. Use
2839 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2840 instead of register_read and register_write.
2841
a144416f
MK
2842 * i386bsd-nat.c (fetch_inferior_registers,
2843 store_inferior_registers): Don't use && at the end of a line.
2844 (_initialize_i386bsd_nat): Fix typo.
2845
fec74868
MK
2846 * frame.c (_initialize_frame): Add missing backslash.
2847
87232496
MK
2848 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2849 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2850 and supply_register instead of manipulating the register buffer
2851 directly.
2852
c9b9de0b
MK
2853 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2854 * config/i386/nm-i386sol2.h
2855 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2856
26604a34
MK
2857 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2858 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2859 instructions that GCC likes to mingle into the prologue. Fixes
2860 gdb/1253 and gdb/1255.
2861
25d29d70
AC
28622003-08-09 Andrew Cagney <cagney@redhat.com>
2863
2864 Fix GDB PR cli/926.
2865 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2866 * command.h (add_setshow_uinteger_cmd): Declare.
2867 * frame.c (set_backtrace_cmd): New function.
2868 (show_backtrace_cmd): New function.
2869 * frame.c (_initialize_frame): Replace "set/show
2870 backtrace-below-main" with "set/show backtrace past-main". Add
2871 command "set/show backtrace limit".
2872 (backtrace_past_main): Rename "backtrace_below_main".
2873 (backtrace_limit): New variable.
2874 (get_prev_frame): Update. Check the backtrace_limit.
2875
9ebf4acf
AC
28762003-08-09 Andrew Cagney <cagney@redhat.com>
2877
2878 * defs.h (xstrprintf): Declare.
2879 * utils.c (xstrprintf): New function.
2880 * breakpoint.c (insert_breakpoints): Replace sprintf and
2881 non-literal format strings, with xstrprintf and cleanups.
2882 (delete_breakpoint,breakpoint_re_set): Ditto.
2883 (commands_command, insert_breakpoints): Ditto.
2884 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2885 (break_at_finish_command_1): Ditto.
2886
3771659b
AC
28872003-08-09 Andrew Cagney <cagney@redhat.com>
2888
2889 * MAINTAINERS (language support): List Adam Fedor as Objective C
2890 maintainer.
2891
b4263afa
JB
28922003-08-08 J. Brobecker <brobecker@gnat.com>
2893
2894 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2895 are now multiarched.
2896
d84defb1
JB
28972003-08-08 J. Brobecker <brobecker@gnat.com>
2898
2899 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2900 longer necessary now that hppa64 is partially multiarch'ed.
2901
f786f615
AC
29022003-08-08 Andrew Cagney <cagney@redhat.com>
2903
2904 * interps.c (interp_set): Check for a NULL "old_interp".
2905
c938e9b0
L
29062003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2907
2908 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2909 (install-only): Support DESTDIR.
2910 (uninstall): Likewise.
2911 (install-gdbtk): Likewise.
2912
9a146a11
EZ
29132003-08-08 Elena Zannoni <ezannoni@redhat.com>
2914
2915 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2916 contains something meaningful at all times.
2917
2918Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2919
62599e99 2920 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2921
56296155
BC
2922Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2923
62599e99 2924 * MAINTAINERS (write after approval): Added self.
56296155 2925
9710e734
AC
29262003-08-07 Andrew Cagney <cagney@redhat.com>
2927
2928 * inferior.h (AT_SYMBOL): Define.
2929 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2930 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2931 * mips-tdep.c (mips_call_dummy_address): Delete function.
2932 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2933 set call_dummy_address.
2934
98b3ab73
AC
29352003-08-07 Andrew Cagney <cagney@redhat.com>
2936
2937 * language.c (op_error): Delete function.
2938 (binop_type_check): Delete function.
2939 * language.h (type_op_error, range_op_error): Delete macros.
2940 (op_error): Delete declaration.
2941
2fcf52f0
AC
29422003-08-07 Andrew Cagney <cagney@redhat.com>
2943
2944 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2945
abd4220e 29462003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2947
abd4220e 2948 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2949 (x86_64_push_arguments): Skip the red zone.
abd4220e 2950
9dd5f34f
AC
29512003-08-05 Andrew Cagney <cagney@redhat.com>
2952
2953 * reggroups.c (reggroup_next): Check for the final entry.
2954
e5e78edc
AC
29552003-08-04 Andrew Cagney <cagney@redhat.com>
2956
ab4e3d93
AC
2957 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2958 * cli/cli-script.c (define_command): Call query directly, instead
2959 of passing it a buffer.
2960 * ocd.c (ocd_error): Pass error a constant format string.
2961 * remote-mips.c (mips_error): Use fputs_filtered.
2962
1062ca82
AC
2963 * solib-svr4.c (_initialize_svr4_solib): Update
2964 register_gdbarch_data call.
2965 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2966
fcc1c85c
AC
2967 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2968 (register_gdbarch_data): Delete "free" parameter. Update
2969 comments.
2970 * gdbarch.h, gdbarch.c: Re-generate.
2971 * reggroups.c (_initialize_reggroup): Update.
2972 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2973 * frame-base.c (_initialize_frame_base): Update.
2974 * frame-unwind.c (_initialize_frame_unwind): Update.
2975 * user-regs.c (_initialize_user_regs): Update.
2976 * remote.c (_initialize_remote): Update.
2977 * regcache.c (_initialize_regcache): Update.
2978
116f06ea
AC
2979 * regcache.c (xfree_regcache_descr): Delete function.
2980 (_initialize_regcache): Update call to register_gdbarch_data.
2981 (init_regcache_descr, init_legacy_regcache_descr): Use
2982 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2983
e5e78edc
AC
2984 * remote.c (free_remote_state): Delete function.
2985 (_initialize_remote): Update register_gdbarch_data.
2986 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2987 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2988
6c7d17ba
AC
29892003-08-04 Andrew Cagney <cagney@redhat.com>
2990
2991 * reggroups.c (struct reggroup_el): Define.
2992 (struct reggroups): Delete field "nr_group". Replace array
2993 "group" with a "first" to "last" linked list.
2994 (reggroups_init): Update. Allocate using gdbarch's obstack.
2995 (reggroups_free): Delete function.
2996 (add_group): Update. Add "el" parameter.
2997 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2998 (default_groups): Update.
2999 (reggroup_next): Replace reggroups.
3000 (reggroups_dump): Update.
3001 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3002 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3003 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3004
89b7795b
DJ
30052003-08-04 Daniel Jacobowitz <drow@mvista.com>
3006
3007 * Makefile.in (tui-interp.o): Update dependencies.
3008
306d9ac5
DC
30092003-08-04 David Carlton <carlton@kealia.com>
3010
3011 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3012 to internal_error call.
3013 * source.c (forward_search_command): Add "%s" format argument.
3014 (reverse_search_command): Ditto.
3015 * top.c (quit_confirm): Ditto.
3016 * cli/cli-setshow.c (do_setshow_command): Ditto.
3017 * cp-valprint.c (cp_print_class_method): Replace
3018 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3019 (cp_print_class_member): Ditto.
3020 * event-top.c (command_line_handler): Ditto.
3021 * linux-proc.c (linux_info_proc_cmd): Ditto.
3022 * p-typeprint.c (pascal_type_print_base): Ditto.
3023 * p-valprint.c (pascal_object_print_class_method): Ditto.
3024 (pascal_object_print_class_member): Ditto.
3025 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3026 * remote.c (remote_cisco_section_offsets): Ditto.
3027 * top.c (command_line_input): Ditto.
3028 * utils.c (vwarning,error_stream,quit): Ditto.
3029 * valprint.c (print_floating,print_binary_chars)
3030 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3031
57bfe177
AC
30322003-08-04 Andrew Cagney <cagney@redhat.com>
3033
3034 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3035
e546b999
AC
30362003-08-02 Andrew Cagney <cagney@redhat.com>
3037
3038 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3039 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3040 amd64fbsd-nat.c.
3041
91092ee5
AC
30422003-08-02 Andrew Cagney <cagney@redhat.com>
3043
3044 * Makefile.in: Update all dependencies and definitions.
3045
889f28e2
AF
30462003-08-02 Adam Fedor <fedor@gnu.org>
3047
3048 * linespec.c (is_objc_method_format): New function
3049 (decode_line_1, locate_first_half): Use it.
3050 Fixes PR objc/1298
3051
880bc914
AC
30522003-08-01 Andrew Cagney <cagney@redhat.com>
3053
3054 * NEWS: Mention that m32r is multi-arch.
3055 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3056 * configure.tgt: Recognize m32r-*-*.
3057 * config/m32r/tm-m32r.h: Delete file.
3058 * config/m32r/m32r.mt: New file.
a8f4cde1 3059 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3060 gethostname succeeds, in order to avoid a compilation
3061 warning.
3062 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3063 compiler warning.
3064
19f59343
MS
30652003-08-01 Michael Snyder <msnyder@redhat.com>
3066
3067 * sh-tdep.c (sh_frame_align): New gdbarch method.
3068 (sh_gdbarch_init): Set up frame_align method.
3069
4e7d7511
MS
30702003-07-31 Michael Snyder <msnyder@redhat.com>
3071
3072 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3073 which is already covered by the new frames infrastructure.
3074
63022984
AC
30752003-07-31 Andrew Cagney <cagney@redhat.com>
3076
3077 * user-regs.c (struct user_reg): Add "next" link.
3078 (struct user_regs): Replace "user" with "first" and "last" links.
3079 (append_user_reg): Add pre-allocated "reg" parameter.
3080 (builtin_user_regs): Provide initial value for "last".
3081 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3082 (user_regs_init): Allocate memory from the gdbarch obstack.
3083 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3084 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3085 linked list.
3086 (usernum_to_user_reg): New function.
3087 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3088 (value_of_user_reg): Use usernum_to_user_reg.
3089 (user_regs_free): Delete function.
3090 (_initialize_user_regs): Update register_gdbarch_data call.
3091
7cf6e574
DJ
30922003-07-31 Daniel Jacobowitz <drow@mvista.com>
3093
3094 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3095
c48a845b
MS
30962003-07-30 Michael Snyder <msnyder@redhat.com>
3097
4e7d7511 3098 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3099 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3100 value_being_returned.
3101 * infcmd.c (print_return_value): Pass zero as struct_addr.
3102 * values.c (value_being_returned): If struct_addr is passed,
3103 use it instead of trying to recover it from the inferior.
3104
f0d8db19
KB
31052003-07-30 Kevin Buettner <kevinb@redhat.com>
3106
3107 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3108 the prologue analyzer won't need to attempt to extract the pc
3109 value from the woefully incomplete dummy frame.
3110 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3111 possible. Disable code which modifies the frame.
3112
e5c113a1
AC
31132003-07-28 Andrew Cagney <cagney@redhat.com>
3114
3115 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3116 to level 2.
3117 (annotate_breakpoints_table, annotate_record): Ditto.
3118 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3119 (annotate_field_name_end, annotate_field_value): Ditto.
3120 (annotate_field_end, annotate_frame_source_begin): Ditto.
3121 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3122 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3123 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3124 (annotate_frame_address_end, annotate_frame_address): Ditto.
3125 (annotate_frame_args, annotate_frame_end): Ditto.
3126 (annotate_frame_where, annotate_arg_begin): Ditto.
3127 (annotate_arg_name_end, annotate_arg_value): Ditto.
3128 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3129 (annotate_function_call, annotate_signal_name): Ditto.
3130 (annotate_signal_string, annotate_signal_name_end): Ditto.
3131 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3132 (annotate_value_begin, annotate_value_history_value): Ditto.
3133 (annotate_value_history_end, annotate_value_end): Ditto.
3134 (annotate_display_begin, annotate_display_number_end): Ditto.
3135 (annotate_display_format, annotate_display_expression): Ditto.
3136 (annotate_display_expression_end, annotate_display_value): Ditto.
3137 (annotate_display_end, annotate_array_section_begin): Ditto.
3138 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3139 (annotate_elt, annotate_array_section_end): Ditto.
3140
bb1db049
AC
31412003-07-28 Andrew Cagney <cagney@redhat.com>
3142
3143 * regcache.c (struct regcache_descr): Update comments on
3144 nr_raw_registers.
3145 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3146 sizeof_raw_register_valid_p.
3147 (init_regcache_descr): Set nr_raw_registers and
3148 sizeof_raw_register_valid_p before calling
3149 init_legacy_regcache_descr.
3150
20e6603c
AC
31512003-07-28 Andrew Cagney <cagney@redhat.com>
3152
3153 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3154 MOD NUM_REGS.
3155
db742940
DJ
31562003-07-28 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * thread.c (info_threads_command): Use get_selected_frame ().
3159 Check that there is at least one non-sentinel frame.
3160
ce7f4371
SC
31612003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3162
3163 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3164 (m68hc11_pop_frame): Remove.
3165 (m68hc11_frame_saved_pc): Remove.
3166 (m68hc11_frame_chain): Remove.
3167 (m68hc11_frame_init_saved_regs): Remove.
3168 (m68hc11_init_extra_frame_info): Remove.
3169 (m68hc11_store_struct_return): Remove.
3170 (m68hc11_saved_pc_after_call): Remove.
3171
1ea653ae
SC
31722003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3173
3174 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3175 frame unwind information.
3176 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3177 and adapted for frame unwinding.
3178 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3179 (m68hc11_unwind_pc): New function.
3180 (m68hc11_frame_unwind_cache): New function to analyze frames.
3181 (m68hc11_frame_this_id): New function to create new frame struct.
3182 (m68hc11_frame_prev_register): New function to unwind a register from
3183 the frame.
3184 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3185 (m68hc11_frame_p): New function for the above.
3186 (m68hc11_frame_base_address): New function to return fp of frame.
3187 (m68hc11_frame_args_address): Update for frame.
3188 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3189 (m68hc11_unwind_sp): New function.
3190 (m68hc11_unwind_dummy_id): New function.
3191 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3192 calls.
3193
c8a7f6ac
SC
31942003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3195
3196 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3197 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3198 when we are beyond the current pc.
3199
3dc990bf
SC
32002003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3201
3202 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3203 from m68hc11_push_arguments.
3204 (m68hc11_push_arguments): Remove.
3205 (m68hc11_push_return_address): Remove.
3206 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3207 handlers; remove deprecated_extra_stack_alignment_needed.
3208
222e5d1d
AC
32092003-07-27 Andrew Cagney <cagney@redhat.com>
3210
3211 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3212 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3213 REAL_PC and not the pointer.
3214 * hppa-hpux-tdep.c: Include frame.h
3215
a7e9a47e
AC
32162003-07-27 Andrew Cagney <cagney@redhat.com>
3217
3218 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3219 GDB_MULTI_ACH_PARTIAL.
3220
7e3dd49e
AC
32212003-07-27 Andrew Cagney <cagney@redhat.com>
3222
3223 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3224 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3225 operator at start and not end of line.
3226 (decode_prologue): Ditto.
3227 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3228 frame_unwind_register_unsigned instead of
3229 frame_unwind_unsigned_register.
3230 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3231 read_register.
3232 (m32r_push_dummy_call): Use register_size instead of
3233 REGISTER_RAW_SIZE.
3234 (m32r_frame_sniffer): Replace m32r_frame_p.
3235 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3236 * m32r-rom.c (report_transfer_performance): Delete extern
3237 declaration.
3238 (m32r_load, m32r_upload_command): Use print_transfer_performance
3239 instead of report_transfer_performance.
3240 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3241 / add_show_from_set.
3242
0880807f
AC
32432003-07-26 Andrew Cagney <cagney@redhat.com>
3244
3245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3246 store_return_value and extract_struct_value_address.
3247
64ae9269
DJ
32482003-07-26 Daniel Jacobowitz <drow@mvista.com>
3249
3250 PR c++/1267
3251 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3252 NULL, default to the section containing PC.
3253
e286caf2
SC
32542003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3255
3256 * NEWS: Mention "regs" deprecated for m68hc11 too.
3257
3258 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3259 (m68hc11_print_register): New function to print out one register.
3260 (m68hc11_print_registers_info): New function to print registers.
3261 (show_regs): Deprecate and use the above.
3262 (m68hc11_gdbarch_init): Install the print_registers_info.
3263
705b278b
JJ
32642003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3265
3266 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3267 that we have a SIGTRAP before returning non-zero.
3268
63cd4198
EZ
32692003-07-23 Michal Ludvig <mludvig@suse.cz>
3270 Elena Zannoni <ezannoni@redhat.com>
3271
a8f4cde1 3272 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3273 find_function_start_sal() returns empty record.
3274
6926787d
AS
32752003-07-23 Andreas Schwab <schwab@suse.de>
3276
3277 * ia64-tdep.c (ia64_print_insn): New function.
3278 (ia64_gdbarch_init): Set print_insn to it.
3279 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3280 deprecated_tm_print_insn_info.
3281
708cc1b6
MS
32822003-07-22 Michael Snyder <msnyder@redhat.com>
3283
3284 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3285 handle 8-bit returns (long long).
3286 (h8300h_extract_return_value): Ditto.
3287 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3288
aebd7893
AC
32892003-07-22 Andrew Cagney <cagney@redhat.com>
3290
3291 * gdbarch.c Include "gdb_obstack.h".
3292 (struct gdbarch): Add an "obstack".
3293 (alloc_gdbarch_data): Allocate the gdbarch data using
3294 GDBARCH_OBSTACK_CALLOC.
3295 (free_gdbarch_data): Delete function.
3296 (gdbarch_obstack_zalloc): New function.
3297 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3298 Assert that the architecture is not initialized.
3299 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3300 vector from the obstack.
3301 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3302 architecture obstack.
3303 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3304 (set_gdbarch_data): Assert that the data is not initialized.
3305 (struct gdbarch_data): Delete member "free".
3306 (register_gdbarch_data): Do not initialize "free".
3307 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3308
153721e6
AC
33092003-07-22 Andrew Cagney <cagney@redhat.com>
3310
3311 * configure.in (build_warnings): Add -Wformat-nonliteral.
3312 * configure: Re-generate.
3313
c193f044 33142003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3315
3316 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3317
c3228f12
EZ
33182003-07-22 Elena Zannoni <ezannoni@redhat.com>
3319
3320 * findvar.c (read_var_value): Remove case for thread local storage
3321 variables. It is now entirely handled by the dwarf2 location
3322 expression code.
3323 * printcmd.c (address_info): Ditto.
3324 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3325 enumeration value.
3326 (struct symbol): Remove objfile field, which was used by
3327 LOC_THREAD_LOCAL_STATIC only.
3328 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3329 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3330 usage of objfile pointer.
3331 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3332 thread local variables.
3333 Add include of objfiles.h.
3334 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3335 storage variables.
3336 * Makefile.in (dwarf2loc.o): Update dependencies.
3337
aef9bcd2
AC
33382003-07-22 Andrew Cagney <cagney@redhat.com>
3339
3340 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3341 get_frame_base.
3342 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3343 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3344 (struct value): Add opaque declaration.
3345 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3346
d95a8903
AC
33472003-07-21 Andrew Cagney <cagney@redhat.com>
3348
3349 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3350 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3351
4db73d49
SC
33522003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3353
a8f4cde1 3354 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3355 regcache_cooked_read_unsigned instead of read_register.
3356 (m68hc11_saved_pc_after_call): Likewise.
3357 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3358 instead of write_register.
3359 (m68hc11_register_type): New function.
3360 (m68hc11_register_virtual_type): Remove.
3361 (m68hc11_store_return_value): Convert to use the regcache.
3362 (m68hc11_extract_struct_value_address): Likewise.
3363 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3364 m68hc11_register_type; undeprecate store_return_value and
3365 extract_struct_value_address.
3366
ef2b8fcd
SC
33672003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3368
3369 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3370 and translate to use regcache.
3371 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3372
625b0b97
AC
33732003-07-18 Andrew Cagney <cagney@redhat.com>
3374
3375 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3376 * gdbarch.h, gdbarch.c: Re-generate.
3377 * i386-tdep.c (i386_gdbarch_init): Do not set
3378 DWARF2_BUILD_FRAME_INFO.
3379 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3380 unconditionally.
3381 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3382 DWARF2_BUILD_FRAME_INFO.
3383
22b0d388
AC
33842003-07-18 Andrew Cagney <cagney@redhat.com>
3385
3386 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3387 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3388
1ce5d6dd
AC
33892003-07-18 Andrew Cagney <cagney@redhat.com>
3390
3391 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3392 frame_unwind_address_in_block, instead of frame_pc_unwind.
3393 (dwarf2_frame_cache): Ditto.
3394
e6e5e94c
AC
33952003-07-18 Andrew Cagney <cagney@redhat.com>
3396
3397 * user-regs.h (struct gdbarch): Declare opaque.
3398 * ui-out.h (struct ui_file): Declare opaque.
3399 * dwarf2-frame.h (struct frame_info): Declare opaque.
3400
5483d879
KW
34012003-07-18 Kris Warkentin <kewarken@qnx.com>
3402
3403 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3404 #include "...".
3405 (procfs_meminfo): Change strerror to safe_strerror.
3406 (procfs_can_run): Remove K&R badness.
3407
278a7cf7
MS
34082003-07-17 Michael Snyder <msnyder@redhat.com>
3409
3410 * remote-sim.c: Comment typo fix.
3411
606e3b82
AC
34122003-07-17 Andrew Cagney <cagney@redhat.com>
3413
3414 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3415 configure.
3416 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3417 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3418 GDB_MULTI_ARCH_PARTIAL.
3419
c43af07c
EZ
34202003-07-17 Elena Zannoni <ezannoni@redhat.com>
3421
3422 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3423 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3424 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3425
3b85b0f1
TR
34262003-07-16 Theodore A. Roth <troth@openavr.org>
3427
3428 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3429 found.
3430 (avr_frame_unwind_cache): Don't unwind FP for main.
3431 Update a comment.
3432 Save the computed prev_sp.
3433 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3434 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3435 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3436
336d1bba
AC
34372003-07-16 Andrew Cagney <cagney@redhat.com>
3438
3439 * frame-base.h (frame_base_p_ftype): Delete definition.
3440 (frame_base_append_predicate): Delete declaration.
3441 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3442 (frame_unwind_append_predicate): Delete declaration.
3443 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3444 (append_predicate): Delete parameter "p".
3445 (frame_unwind_append_predicate): Delete function.
3446 (frame_unwind_append_sniffer): Update call to append_predicate.
3447 (frame_unwind_free): Delete function.
3448 (_initialize_frame_unwind): Pass NULL as "free" to
3449 register_gdbarch_data.
3450 (frame_unwind_init): Append the dummy_frame_sniffer.
3451 (frame_unwind_find_by_frame): Simplify.
3452 * frame-base.c (struct frame_base_table): Delete field "p".
3453 (append_predicate): Delete parameter "p".
3454 (frame_base_append_predicate): Delete function.
3455 (frame_base_append_sniffer): Update call to append_predicate.
3456 (frame_base_free): Delete function.
3457 (frame_base_find_by_frame): Simplify.
3458 (_initialize_frame_base): Pass NULL as "free" to
3459 register_gdbarch_data.
3460 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3461 (x86_64_sigtramp_frame_sniffer): Replace
3462 "x86_64_sigtramp_frame_p".
3463 (x86_64_init_abi): Set the frame unwind sniffers.
3464 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3465 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3466 (m68k_gdbarch_init): Set the frame unwind sniffers.
3467 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3468 "i386_sigtramp_frame_p".
3469 (i386_frame_sniffer): Replace "i386_frame_p".
3470 (i386_gdbarch_init): Set the frame unwind sniffers.
3471 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3472 (avr_gdbarch_init): Set the frame unwind sniffers.
3473 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3474 "alpha_sigtramp_frame_p"
3475 (alpha_heuristic_frame_sniffer): Replace
3476 "alpha_heuristic_frame_p".
3477 (alpha_gdbarch_init): Set the frame unwind sniffers.
3478 (alpha_dwarf2_init_abi): Ditto.
3479 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3480 "alpha_debug_frame_p".
3481 (alpha_mdebug_frame_base_sniffer): Replace
3482 "alpha_mdebug_frame_base_p".
3483 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3484 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3485 (d10v_gdbarch_init): Set the frame unwind sniffer.
3486 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3487 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3488 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3489 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3490 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3491 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3492
48db5a3c
CV
34932003-07-16 Michael Snyder <msnyder@redhat.com>
3494
3495 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3496 should go thru sh_dsp_register_sim_regno, else the dsp regs
3497 will not get the right values.
3498
34992003-07-16 Corinna Vinschen <vinschen@redhat.com>
3500
3501 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3502 deprecated_store_floating by call to store_typed_floating.
3503 (sh_sh4_register_convert_to_raw): Substitute call to
3504 deprecated_extract_floating by call to extract_typed_floating.
3505
35062003-07-16 Corinna Vinschen <vinschen@redhat.com>
3507
3508 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3509
35102003-07-16 Corinna Vinschen <vinschen@redhat.com>
3511
3512 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3513 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3514 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3515 as possible.
3516 (do_pseudo_register): Remove.
3517 (sh_push_dummy_code): New function.
3518 (sh64_store_struct_return): Rename from sh_store_struct_return.
3519 Only called for sh64 now.
3520 (sh_extract_struct_value_address): Regcache'ify.
3521 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3522 and accomodate new tasks.
3523 (sh64_push_return_address): Rename from sh_push_return_address.
3524 Only called for sh64 now.
3525 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3526 Regcache'ify.
3527 (sh3e_sh4_extract_return_value): Regcache'ify.
3528 (sh_default_store_return_value): Ditto.
3529 (sh3e_sh4_store_return_value): Ditto.
3530 (sh_default_register_byte): Remove.
3531 (sh_sh4_register_byte): Remove.
3532 (sh_default_register_raw_size): Remove.
3533 (sh_sh4_register_raw_size): Remove.
3534 (sh_register_virtual_size): Remove.
3535 (sh_sh3e_register_virtual_type): Remove.
3536 (sh_sh3e_register_type): New function.
3537 (sh_sh4_register_virtual_type): Remove.
3538 (sh_sh4_register_type): New function.
3539 (sh_default_register_virtual_type): Remove.
3540 (sh_default_register_type): New function.
3541 (do_fv_register_info): Add parameters to accomodate call from
3542 sh_print_registers_info.
3543 (do_dr_register_info): Ditto.
3544 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3545 Add parameters to accomodate call from sh_print_registers_info.
3546 (sh_do_fp_register): Ditto.
3547 (sh64_do_pseudo_register): Call do_dr_register_info,
3548 do_fv_register_info and sh_do_fp_register with default parameters.
3549 (sh_do_register): Add parameters to accomodate call from
3550 sh_print_registers_info.
3551 (sh_print_register): Ditto.
3552 (sh_print_registers_info): Rename from sh_do_registers_info.
3553 Add parameters to be used as gdbarch_print_registers_info
3554 implementation. Accomodate removed do_pseudo_register function
3555 pointer.
3556 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3557 function pointer. Call sh_print_register with default parameters.
3558 (sh64_do_registers_info): Call sh_print_registers_info instead of
3559 sh_do_registers_info.
3560 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3561 detection of deprecated vs. non-deprecated functionality.
3562 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3563 function pointer assignments by direct function calls.
3564
e8a89fe2
AC
35652003-07-15 Andrew Cagney <cagney@redhat.com>
3566
3567 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3568 (frame_register_unwind, create_new_frame): Ditto.
3569 (legacy_get_prev_frame, get_frame_type): Ditto.
3570 (get_frame_base_address): Use frame_base_find_by_frame.
3571 (get_frame_locals_address): Use frame_base_find_by_frame.
3572 (get_frame_args_address): Use frame_base_find_by_frame.
3573 * frame-base.h (frame_base_sniffer_ftype): Declare.
3574 (frame_base_append_sniffer): Declare.
3575 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3576 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3577 (frame_base_append_sniffer): New function.
3578 (frame_base_append_predicate): Add a NULL sniffer.
3579 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3580 (struct frame_base_table): Add "sniffer".
3581 (frame_base_free): Free the "sniffer" table.
3582 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3583 (frame_unwind_append_sniffer): Declare.
3584 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3585 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3586 (struct frame_unwind_table): Add "sniffer", delete "middle".
3587 (append_predicate): Add "sniffer" parameter, append the sniffer.
3588 (frame_unwind_init): Update append_predicate call.
3589 (frame_unwind_append_sniffer): New function.
3590 (frame_unwind_append_predicate): Update append_predicate call.
3591 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3592
0714963c
AC
35932003-07-15 Andrew Cagney <cagney@redhat.com>
3594
3595 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3596 before code inhibiting repeated unwind attempts. Add to
3597 commentary on that test's problems.
3598 * blockframe.c (inside_main_func): Look for "main" in the minimal
3599 symbol table.
3600 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3601 identical.
3602
d9170e22
AC
36032003-07-15 Andrew Cagney <cagney@redhat.com>
3604
3605 * complaints.c (struct explanation): Define.
3606 (struct complaints): Change type of "explanation" to "struct
3607 explanation".
3608 (symfile_explanations): Convert to a "struct explanation" table.
3609 (vcomplaint): Update.
3610
eba29c8c
ML
36112003-07-15 Michal Ludvig <mludvig@suse.cz>
3612
3613 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3614 (supply_gregset, fill_gregset): Call
eba29c8c
ML
3615 x86_64_linux_(fill,supply)_gregset functions.
3616 * x86-64-linux-tdep.c (USER_*): New defines.
3617 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3618 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3619 New functions.
3620 (fetch_core_registers): Ditto.
3621 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3622 * x86-64-linux-tdep.h: New file.
3623 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3624 and core-regset.o.
3625 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3626
68cc0bfb
MK
36272003-07-13 Mark Kettenis <kettenis@gnu.org>
3628
88a115f7
MK
3629 * x86-64-tdep.c (x86_64_store_return_value): Use
3630 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3631
68cc0bfb
MK
3632 * configure.host: Add x86_64-*-freebsd*.
3633 * configure.tgt: Add x86_64-*-freebsd*.
3634 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3635 * amd64fbsd-nat.c: New file.
3636 * amd64fbsd-tdep.c: New file.
3637 * config/i386/nm-fbsd64.h: New file.
3638 * config/i386/fbsd64.mh: New file.
3639 * config/i386/fbsd64.mt: New file.
3640
138e7be5
MK
36412003-07-11 Mark Kettenis <kettenis@gnu.org>
3642
3643 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3644 `sc_regs_offset' and `sc_fpregs_offset'.
3645 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3646 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3647 (alpha_sigtramp_register_address): Rewrite to use new members of
3648 `struct gdbarch_tdep'.
3649 (alpha_gdbarch_init): Initialize new members of struct
3650 gdbarch_tdep'.
3651 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3652 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3653 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3654 (alphafbsd_pc_in_sigtramp): Implement.
3655 (alphafbsd_sigtramp_offset): New function.
3656 (alphafbsd_sigcontext_addr): New function.
3657 (alphafbsd_init_abi): Initialize signal trampoline related members
3658 of `struct gdbarch_tdep'.
3659 (_initialize_alphafbsd_tdep): Add prototype.
3660
95303a68
TR
36612003-07-11 Theodore A. Roth <troth@openavr.org>
3662
ba292e4c
TR
3663 * Makefile.in (install-only): Quote sed expression when generating
3664 transformed_name.
95303a68 3665
6896c0c7
RH
36662003-07-11 Richard Henderson <rth@redhat.com>
3667
3668 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3669 * dwarf2-frame.c: Include complaints.h.
3670 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3671 variable initialization; return NULL on error.
3672 (decode_frame_entry): New.
3673
8edd5d01
AC
36742003-07-11 Andrew Cagney <cagney@redhat.com>
3675
c4a09524
AC
3676 * frame.h (frame_address_in_block): Delete declaration.
3677 * blockframe.c (frame_address_in_block): Delete function.
3678 (get_frame_block): Use get_frame_address_in_block.
3679 (block_innermost_frame): Ditto.
3680 * stack.c (print_frame, backtrace_command_1): Ditto.
3681
8edd5d01
AC
3682 * frame.h (get_frame_address_in_block): Declare.
3683 (frame_unwind_address_in_block): Declare.
3684 * frame.c (frame_unwind_address_in_block): New function.
3685 (get_frame_address_in_block): New function.
3686
f7968451
AC
36872003-07-10 Andrew Cagney <cagney@redhat.com>
3688
3689 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3690 pre-default. Note: re-generate has no effect.
a8f4cde1 3691
ae99b398
AC
36922003-07-10 Andrew Cagney <cagney@redhat.com>
3693
3694 * gdbarch.sh: When a variable, but not a function, compare against
3695 0. Fix problem in previous patch.
3696 * gdbarch.c: Re-generate.
a8f4cde1 3697
956ac328
AC
36982003-07-10 Andrew Cagney <cagney@redhat.com>
3699
3700 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3701 functions against NULL, not 0.
3702 * gdbarch.c: Re-generate.
a8f4cde1 3703
287c3240
FF
37042003-07-10 Fred Fish <fnf@ninemoons.com>
3705
3706 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3707 null string instead of a null pointer.
3708 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3709
32f63c4b
MS
37102003-07-09 Michael Snyder <msnyder@redhat.com>
3711
3712 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3713
402ecd56
MK
37142003-07-09 Mark Kettenis <kettenis@gnu.org>
3715
3716 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3717 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3718 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3719 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3720 * x86-64-tdep.c: ... from here.
3721
c481dac7
AS
37222003-07-09 Andreas Schwab <schwab@suse.de>
3723
3724 * m68k-tdep.h (enum struct_return): Define.
3725 (struct gdbarch_tdep): Add struct_return.
3726 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3727 bytes are padded to the right, not to the left. Pass struct value
3728 address in register %a1, not on stack.
3729 (m68k_use_struct_convention): New function.
3730 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3731 struct_return in tdep to pcc_struct_return.
3732 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3733 reg_struct_return.
3734
a8f4cde1 37352003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 3736
a8f4cde1 3737 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 3738
96a4ee76
AC
37392003-07-09 Andrew Cagney <cagney@redhat.com>
3740
3741 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3742 Add comments about the checks.
3743
1517c6d1
AC
37442003-07-08 Andrew Cagney <cagney@redhat.com>
3745
3746 * Makefile.in: Make dependency section headers consistent.
3747 (config_h): Move to $BUILD headers section.
3748 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3749 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3750 (ada-exp.tab.c): Move to YACC/LEX section.
3751 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3752 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3753
dc5dd1eb
KW
37542003-07-08 Kris Warkentin <kewarken@qnx.com>
3755
3756 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3757 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3758 of strerror with safe_strerror, use ISO C function definitions,
3759 and replace instances of sprintf with snprintf.
dc5dd1eb 3760
612dde91
AC
37612003-07-07 Andrew Cagney <cagney@redhat.com>
3762
3763 * frame.c (get_prev_frame): Enable check for identical frames.
3764 Update comments. Update error messages.
3765
492c11d3
JB
37662003-07-07 Joel Brobecker <brobecker@gnat.com>
3767
3768 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3769
376a5a49
JB
37702003-07-07 Joel Brobecker <brobecker@gnat.com>
3771
3772 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3773 sort_symtab_syms, no longer necessary.
3774
22b4a9ad
JB
37752003-07-07 Joel Brobecker <brobecker@gnat.com>
3776
3777 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3778
5bbcb741
JB
37792003-07-07 Joel Brobecker <brobecker@gnat.com>
3780
3781 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3782 (mips_register_byte): Likewise.
3783
c139e7d9
DJ
37842003-07-07 Daniel Jacobowitz <drow@mvista.com>
3785
3786 * Makefile.in (sparc_tdep_h): New.
3787 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3788 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3789 * sparc-linux-nat.c: Include "sparc-tdep.h".
3790 * sparc-nat.c: Likewise.
3791 * sparc-tdep.c: Likewise.
3792 * sparc64nbsd-nat.c: Likewise.
3793 * sparcnbsd-nat.c: Likewise.
3794 * sparcnbsd-tdep.c: Likewise.
3795 * sparc-tdep.h: New file.
3796 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3797 and sparc_npc_regnum.
3798
fd8f87c5
DJ
37992003-07-07 Daniel Jacobowitz <drow@mvista.com>
3800
3801 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3802 (mips_linux_cannot_store_register): List supported instead of
3803 unsupported registers.
3804
13adf674
DJ
38052003-07-07 Daniel Jacobowitz <drow@mvista.com>
3806
3807 * disasm.c (dump_insns): Separate instructions from addresses.
3808
8de307e0
AS
38092003-07-07 Andreas Schwab <schwab@suse.de>
3810
3811 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3812 dependencies.
3813 * m68k-tdep.c (NUM_FREGS): Delete.
3814 (SIG_PC_FP_OFFSET): Delete.
3815 (TARGET_M68K): Delete.
3816 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3817 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3818 P_MOVEL_SP, P_MOVEML_SP): Define.
3819 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3820 P_TRAP): Delete.
3821 (m68k_register_raw_size): Delete.
3822 (m68k_register_virtual_size): Delete.
3823 (m68k_register_type): Renamed from m68k_register_virtual_type and
3824 add gdbarch argument.
3825 (m68k_store_struct_return): Delete.
3826 (m68k_deprecated_extract_return_value): Delete.
3827 (m68k_deprecated_extract_struct_value_address): Delete.
3828 (m68k_frame_chain): Delete.
3829 (m68k_frame_saved_pc): Delete.
3830 (m68k_fix_call_dummy): Delete.
3831 (m68k_push_dummy_frame): Delete.
3832 (m68k_pop_frame): Delete.
3833 (m68k_extract_return_value): New function.
3834 (m68k_store_return_value): Rewrite using regcache.
3835 (m68k_extract_struct_value_address): Rewrite using regcache.
3836 (m68k_push_dummy_call): New function.
3837 (struct m68k_frame_cache): Define.
3838 (m68k_alloc_frame_cache): New function.
3839 (m68k_analyze_frame_setup): New function.
3840 (m68k_analyze_register_saves): New function.
3841 (m68k_analyze_prologue): New function.
3842 (m68k_skip_prologue): Rewrite using above functions.
3843 (m68k_unwind_pc): New function.
3844 (m68k_frame_cache): New function.
3845 (m68k_frame_this_id): New function.
3846 (m68k_frame_prev_register): New function.
3847 (m68k_frame_unwind): New variable.
3848 (m68k_frame_p): New function.
3849 (m68k_sigtramp_frame_cache): New function.
3850 (m68k_sigtramp_frame_this_id): New function.
3851 (m68k_sigtramp_frame_prev_register): New function.
3852 (m68k_sigtramp_frame_unwind): New variable.
3853 (m68k_sigtramp_frame_p): New function.
3854 (m68k_frame_base_address): New function.
3855 (m68k_frame_base): New function.
3856 (m68k_unwind_dummy_id): New function.
3857 (fill_gregset): Use regcache_collect.
3858 (fill_fpregset): Likewise.
3859 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3860 defined.
3861 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3862 deprecated_init_frame_pc, deprecated_store_struct_return,
3863 deprecated_extract_return_value, deprecated_store_return_value,
3864 deprecated_frame_chain, deprecated_frame_saved_pc,
3865 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3866 deprecated_register_virtual_size,
3867 deprecated_max_register_raw_size,
3868 deprecated_max_register_virtual_size,
3869 deprecated_register_virtual_type, deprecated_register_size,
3870 deprecated_register_byte, deprecated_register_bytes,
3871 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3872 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3873 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3874 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3875 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3876 deprecated_push_dummy_frame, deprecated_pop_frame,
3877 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3878 only if SYSCALL_TRAP is defined. Set extract_return_value,
3879 store_return_value, extract_struct_value_address, register_type,
3880 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3881 predicates.
3882 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3883 M68K_MAX_REGISTER_SIZE): Define.
3884 (struct m68k_sigtramp_info): Define.
3885 (struct gdbarch_tdep): Add get_sigtramp_info.
3886 * m68klinux-nat.c (fetch_register): Use register_size instead of
3887 REGISTER_RAW_SIZE. Don't put assignment in if.
3888 (store_register): Likewise.
3889 (fetch_inferior_registers): Likewise.
3890 (store_inferior_registers): Likewise.
3891 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3892 (m68k_linux_frame_saved_pc): Delete.
3893 (m68k_linux_sigcontext_reg_offset,
3894 m68k_linux_ucontext_reg_offset): Define.
3895 (m68k_linux_get_sigtramp_info): New function.
3896 (m68k_linux_extract_return_value): Rewrite using regcache.
3897 (m68k_linux_store_return_value): Likewise.
3898 (m68k_linux_extract_struct_value_address): Likewise.
3899 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3900 Don't set deprecated_frame_saved_pc,
3901 deprecated_extract_return_value, deprecated_store_return_value,
3902 deprecated_extract_struct_value_address. Set
3903 extract_return_value, store_return_value,
3904 extract_struct_value_address.
3905
eb8bc282
AC
39062003-07-07 Andrew Cagney <cagney@redhat.com>
3907
3908 * expprint.c: Include "user-regs.h" instead of "frame.h".
3909 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3910 frame_map_regnum_to_name.
3911 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3912 (frame_map_name_to_regnum): Simplify, call
3913 user_reg_map_name_to_regnum.
3914 (frame_map_regnum_to_name): Simplify, call
3915 user_reg_map_regnum_to_name.
3916 (frame_register_unwind): Update.
3917 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3918 (_initialize_frame_reg): Call user_reg_add_builtin.
3919 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3920 (value_of_register): Use value_of_user_reg.
3921 * eval.c (evaluate_subexp_standard): Update.
3922 * parse.c (write_dollar_variable): Update.
3923 * d10v-tdep.c (d10v_print_registers_info): Update.
3924 * infcmd.c (registers_info): Update.
3925 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3926 (builtin_regs_h): Delete macro.
3927 (user_regs_h): Define.
3928 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3929 (builtin-regs.o): Delete target.
3930 (user-regs.o): Specify dependencies.
3931 (expprint.o): Update dependencies.
3932 (findvar.o): Update dependencies.
3933 (frame.o): Update dependencies.
3934 (std-regs.o): Update dependencies.
3935
9f476a01
CF
39362003-07-06 Christopher Faylor <cgf@redhat.com>
3937
3938 * win32-nat.c (solib_symbols_add): Use one variable for all section
3939 address stuff. Pass variable rather than address of variable to
3940 safe_symbol_file_add.
3941
a731b831
AS
39422003-07-06 Andreas Schwab <schwab@suse.de>
3943
3944 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3945
9f83329d
JB
39462003-07-04 Joel Brobecker <brobecker@gnat.com>
3947
3948 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3949
27e28cc5
KW
39502003-07-04 Kris Warkentin <kewarken@qnx.com>
3951
3952 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3953
39542003-07-04 Kris Warkentin <kewarken@qnx.com>
3955
3956 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3957 * config/i386/nto.mh: New file.
3958 * config/i386/nm-nto.h: New file.
3959 * configure.host: Add i[3456]86-*-nto*.
3960
100f2e98
JB
39612003-07-03 Joel Brobecker <brobecker@gnat.com>
3962
3963 * remote-vx.c (vx_add_symbols): Fix compilation error.
3964
e23457df
AC
39652003-07-03 Andrew Cagney <cagney@redhat.com>
3966
3967 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3968 * gdbarch.h, gdbarch.c: Re-generate.
3969 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3970 (legacy_register_name): Declare.
3971 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3972 (REGISTER_NAME): Define.
3973 * sparc-tdep.c (legacy_register_name): New function.
3974 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3975 (REGISTER_NAME): Define.
3976 (hppa64_register_name): Declare.
3977 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3978 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3979 (hppa64_register_name): New function.
3980 (hppa_register_name): New function.
3981 * arch-utils.c (legacy_register_name): Delete.
3982 * arch-utils.h (legacy_register_name): Delete.
3983
38caaeec
DJ
39842003-07-03 Daniel Jacobowitz <drow@mvista.com>
3985
3986 * cli/cli-interp.c (cli_interpreter_resume): Update the
3987 cli_uiout's stream to gdb_stdout.
3988
dadd712e
AC
39892003-07-03 Andrew Cagney <cagney@redhat.com>
3990
3991 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3992 predicate.
3993 * gdbarch.h, gdbarch.c: Re-generate.
3994 * regcache.c (init_regcache_descr): Use legacy code when either
3995 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3996
c7f1390e
DJ
39972003-07-02 Daniel Jacobowitz <drow@mvista.com>
3998
3999 * NEWS: Move "set logging" entry into GDB 6.0 section.
4000
4bc8c588
JB
40012003-07-02 Jim Blandy <jimb@redhat.com>
4002
a9dd42f1
JB
4003 * s390-tdep.c (struct frame_extra_info): new member:
4004 'stack_bought_valid'.
4005 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4006 initialize fextra_info->stack_bought.
4007 (s390_frameless_function_invocation): Don't trust the value of
4008 fextra_info_ptr->stack_bought unless
4009 fextra_info->stack_bought_valid is set.
4010
4bc8c588
JB
4011 New S390 prologue analyzer.
4012 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4013 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4014 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4015 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4016 compute_x_addr, s390_on_stack, s390_store,
4017 s390_get_signal_frame_info): New functions.
4018 (S390_NUM_SPILL_SLOTS): New macro.
4019 (s390_get_frame_info): Rewritten.
4020 (is_arg_reg): Deleted.
4021
4022 Break out the decoding of S/390 instructions into separate
4023 functions, to make it more legible, and easier to check
4024 against the spec.
4025 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4026 is_rx, is_rxe): New functions.
4027 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4028 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4029 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4030 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4031 enums for opcode values. (Is this an improvement?)
4032
fd13a04a
AC
40332003-07-02 Andrew Cagney <cagney@redhat.com>
4034
4035 * i386-tdep.c: Revert change committed as part of trad-frame code
4036 below.
4037
3f8091c1
DJ
40382003-07-02 Daniel Jacobowitz <drow@mvista.com>
4039
4040 * breakpoint.c (insert_catchpoint): Make static.
4041
8dd5115e
AS
40422003-07-02 Andreas Schwab <schwab@suse.de>
4043
4044 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4045 former ia64_push_arguments and ia64_push_return_address, and use
4046 regcache functions instead of read/write_register.
4047 (ia64_gdbarch_init): Set push_dummy_call instead of
4048 deprecated_push_arguments and deprecated_push_return_address.
4049
a2229c23
AJ
40502003-07-01 Andreas Jaeger <aj@suse.de>
4051
4052 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4053 before the call.
4054 Set %rax only to number of SSE registers used.
4055
3b3850e8
AC
40562003-07-01 Andrew Cagney <cagney@redhat.com>
4057
4058 * trad-frame.h: Update comments, a -1 .addr is reserved.
4059 (trad_frame_value_p, trad_frame_addr_p): Declare.
4060 (trad_frame_reg_p): Declare.
4061 (trad_frame_set_value): Rename trad_frame_register_value.
4062 (trad_frame_set_unknown): Declare.
4063 * trad-frame.c (trad_frame_realreg_p): New function.
4064 (trad_frame_addr_p, trad_frame_value_p): New function.
4065 (trad_frame_set_unknown): New function.
4066 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4067 (trad_frame_prev_register): Use trad_frame_realreg_p,
4068 trad_frame_addr_p and trad_frame_value_p.
4069 (trad_frame_set_value): Rename trad_frame_register_value.
4070 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4071 and trad_frame_set_value.
a2229c23 4072
4d819d0e
JB
40732003-06-30 Jim Blandy <jimb@redhat.com>
4074
4075 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4076 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4077 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4078 for 16 registers, and then 32 more bytes.
4079 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4080 New macros.
4081 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4082 Move up in the file, since it's now used by is_simple_arg.
4083 (is_simple_arg): Don't assume registers are four bytes long.
4084 Exclude all double arguments. Extended floats are not simple
4085 args.
4086 (is_power_of_two): New function.
4087 (pass_by_copy_ref): Call is_power_of_two, and check that the
4088 length fits in a register, rather than listing all the acceptable
4089 sizes. Extended floats are not passed by reference.
4090 (s390_push_arguments): Don't assume registers are four bytes long.
4091 Reserve an argument register to point to the buffer for structures
4092 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4093 S390_STACK_FRAME_OVERHEAD.
4094
1ad828f1
AS
40952003-06-30 Andreas Schwab <schwab@suse.de>
4096
4097 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4098 format error message.
4099
39b00981
JB
41002003-06-30 Joel Brobecker <brobecker@gnat.com>
4101
4102 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4103
b2a7f303
DC
41042003-06-30 David Carlton <carlton@kealia.com>
4105
4106 Band-aid for PR c++/1245.
4107 * Makefile.in (cp-support.o): Depend on complaints_h.
4108 * cp-support.c: Include complaints.h. Add declaration for
4109 find_last_component.
4110 (cp_find_first_component): Separate code into
4111 cp_find_first_component_aux.
4112 (cp_find_first_component_aux): Call demangled_name_complaint.
4113 (demangled_name_complaint): New.
4114
a257b5bb
AC
41152003-06-30 Andrew Cagney <cagney@redhat.com>
4116
4117 * remote.c (remote_write_bytes): Explicitly compute and then use
4118 the payload size. Update comments to reflect. Fixes problem of
4119 GDB not sending small packets as found by Fred Fish.
4120
0a2cfde4
AC
41212003-06-30 Andrew Cagney <cagney@redhat.com>
4122
4123 * remote.c (remote_async_wait): Fix -Wformat problem.
4124
3fcb8548
AC
41252003-06-29 Andrew Cagney <cagney@redhat.com>
4126
4127 * remote.c (remote_wait): Call error, and not warning, when the
4128 packet is corrupt.
4129 (remote_async_wait): Ditto.
4130
9f9970a3
DJ
41312003-06-29 Daniel Jacobowitz <drow@mvista.com>
4132
4133 * sparc-tdep.c (sparc_y_regnum): Make external again.
4134
83a8ccca
DJ
41352003-06-29 Daniel Jacobowitz <drow@mvista.com>
4136
4137 * cli/cli-logging.c (pop_output_files): Add void to function
4138 definition.
4139
d2cf594a
AC
41402003-06-29 Andrew Cagney <cagney@redhat.com>
4141
4142 * frame.c (frame_register_unwind): Use unsigned char when dumping
4143 the buffer contents.
4144
0fac0b41
DJ
41452003-06-28 Daniel Jacobowitz <drow@mvista.com>
4146
4147 * cli/cli-logging.c: New file.
4148 * cli-out.c (struct ui_out_data): Add original_stream.
4149 (cli_redirect): New function.
4150 (cli_ui_out_impl): Add cli_redirect.
4151 (cli_out_new): Initialize original_stream.
4152 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4153 (uo_redirect, ui_out_redirect): New.
4154 * ui-out.h (struct ui_out_impl): Add redirect member.
4155 (redirect_ftype): New.
4156 (ui_out_redirect): Add prototype.
4157 * Makefile.in: Add rules for cli-logging.c.
4158 * NEWS: Mention "set logging".
4159
88a07d7c
EZ
41602003-06-27 Elena Zannoni <ezannoni@redhat.com>
4161
4162 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4163
4eb58876
AC
41642003-06-27 Andrew Cagney <cagney@redhat.com>
4165
4166 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4167 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4168 * avr-tdep.c (avr_call_dummy_address): Delete function.
4169 (avr_gdbarch_init): Do not set call_dummy_address.
4170
1549f619
EZ
41712003-06-27 Elena Zannoni <ezannoni@redhat.com>
4172
4173 * symfile.c (syms_from_objfile): Move variables to inner block.
4174 Move the checks for the non-mainline case a bit earlier to avoid
4175 doing some useless computations.
4176
3cb3398d
EZ
41772003-06-27 Elena Zannoni <ezannoni@redhat.com>
4178
4179 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4180
3799ccc6
EZ
41812003-06-26 Elena Zannoni <ezannoni@redhat.com>
4182
4183 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4184 sections.
4185
ce1f6491
MC
41862003-06-26 Michael Chastain <mec@shout.net>
4187
4188 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4189 gdb/testsuite/gdb.c++/pr-1210.exp.
4190
d958dfd0
AC
41912003-06-26 Andrew Cagney <cagney@redhat.com>
4192
4193 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4194 altivec_expression.h and altivec_registers.h.
4195
d31431ed
AC
41962003-06-26 Andrew Cagney <cagney@redhat.com>
4197
4198 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4199 info->mach when MIPS16. Patch suggested by Fred Fish.
4200
714b1282
AC
42012003-06-26 Andrew Cagney <cagney@redhat.com>
4202
4203 * utils.c (internal_vproblem): Print the problem to a reason
4204 buffer and then pass to query. Make the msg variable more local.
4205
42efa47a
AC
42062003-06-26 Andrew Cagney <cagney@redhat.com>
4207
4208 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4209 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4210 * gdbarch.h, gdbarch.c: Re-generate.
4211 * frame-base.c (default_frame_args_address): Update. Use
4212 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4213 not available.
4214 (default_frame_locals_address): Ditto for
4215 DEPRECATED_FRAME_LOCALS_ADDRESS.
4216 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4217 (vax_frame_num_args): Update.
4218 (vax_gdbarch_init): Update.
4219 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4220 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4221 * mcore-tdep.c (mcore_gdbarch_init): Update.
4222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4223 * ia64-tdep.c (ia64_gdbarch_init): Update.
4224 * symtab.h (address_class): Update comments.
4225 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4226 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4227 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4228 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4229 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4230 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4231 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4232 * alpha-mdebug-tdep.c: Update.
4233 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4234
8ffd9b1b
AJ
42352003-06-26 Andreas Jaeger <aj@suse.de>
4236
4237 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4238 of SSE registers so that varargs functions work. Rework handling
4239 of passing arguments on the stack.
4240 (x86_64_store_return_value): Return double and float values in SSE
4241 register.
4242
e8ac10a6
MC
42432003-06-24 Michael Chastain <mec@shout.net>
4244
4245 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4246 the "constructor breakpoints ignored" bug.
4247
986af8e6
DC
42482003-06-25 David Carlton <carlton@kealia.com>
4249
4250 * MAINTAINERS: Update e-mail address.
4251
d64558a5
JB
42522003-06-24 Jim Blandy <jimb@redhat.com>
4253
e538d2d7
JB
4254 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4255
02631ec0
JB
4256 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4257 function.
4258 (ppc_linux_init_abi): Register it as the
4259 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4260
e716d87a
JB
4261 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4262 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4263 method.
4264
d64558a5
JB
4265 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4266 (ppc64_standard_linkage_target): Use it.
4267
449a5da4
AC
42682003-06-23 Andrew Cagney <cagney@redhat.com>
4269
4270 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4271 for 0 "int0" and 4 "int32" sized registers.
4272 * gdbtypes.c (builtin_type_int0): Define.
4273 (build_gdbtypes): Initialize builtin_type_int0.
4274 * gdbtypes.h (builtin_type_int0): Declare.
4275
b2a02dda
SC
42762003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4277
4278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4279 as characters are unsigned.
4280
fba3138e
DJ
42812003-06-22 Daniel Jacobowitz <drow@mvista.com>
4282
4283 PR gdb/1179
4284 * dwarfread.c (struct_type): Skip static fields without crashing.
4285
f6c8180b
AC
42862003-06-22 Andrew Cagney <cagney@redhat.com>
4287
4288 GDB 6.0 branch created.
f2c06f52
AC
4289 * README: Update.
4290 * PROBLEMS: Update. Empty.
4291 * NEWS: Update.
f6c8180b 4292
ae822768
DJ
42932003-06-22 Daniel Jacobowitz <drow@mvista.com>
4294
4295 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4296 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4297
261de166
AC
42982003-06-22 Andrew Cagney <cagney@redhat.com>
4299
4300 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4301 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4302 Velikov.
4303
30e94205
DJ
43042003-06-22 Daniel Jacobowitz <drow@mvista.com>
4305
4306 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4307 compilers.
4308
9e14d721
DJ
43092003-06-21 Daniel Jacobowitz <drow@mvista.com>
4310
4311 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4312 argument of val_print.
4313 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4314 to the address argument of baseclass_offset or target_read_memory.
4315 Do add it to the argument of cp_print_value_fields.
4316
a4b8ebc8
AC
43172003-06-21 Andrew Cagney <cagney@redhat.com>
4318
4319 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4320 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4321 instead of 0..NUM_REGS.
4322 (mips_register_reggroup_p): New function.
4323 (mips_pseudo_register_write): New function.
4324 (mips_pseudo_register_read): New function.
4325 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4326 based on the register's type.
4327 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4328 cooked.
4329 (mips_get_saved_register): Simplify. Assert that REGNO is a
4330 pseudo / cooked.
4331 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4332 (mips_register_type): Replace mips_register_virtual_type. Map
4333 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4334 when available.
4335 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4336 that the register is cooked / virtual.
4337 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4338 Only get the extra info when needed.
4339 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4340 (mips32_heuristic_proc_desc): Fetch the cooked register.
4341 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4342 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4343 (mips_print_register): Use gdbarch_register_type, instead of
4344 REGISTER_VIRTUAL_TYPE.
4345 (print_gp_register_row): Use gdbarch_register_type, instead of
4346 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4347 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4348 Print the pseudo / cooked registers.
4349 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4350 Print the pseudo / cooked registers.
4351 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4352 REG_NUM is pseudo / cooked.
4353 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4354 (mips_n32n64_xfer_return_value): Ditto.
4355 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4356 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4357 (mips_register_sim_regno): New function.
4358 (mips_gdbarch_init): Set deprecated_register_byte,
4359 register_group_p, pseudo_register_write, pseudo_register_read,
4360 register_sim_regno, and num_pseudo_regs. Set register_type,
4361 instead of register_virtual_type.
4362 * Makefile.in (mips-tdep.o): Update dependencies.
4363 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4364 REGISTER_VIRTUAL_TYPE.
4365 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4366 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4367 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4368 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4369 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4370
325ed089
DJ
43712003-06-21 Daniel Jacobowitz <drow@mvista.com>
4372
4373 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4374 * cli/cli-cmds.c: Include "gdb_vfork.h".
4375 (shell_escape): Use vfork.
4376
f0e7d0e8
AC
43772003-06-21 Andrew Cagney <cagney@redhat.com>
4378
c57bb9fa
AC
4379 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4380 32 bit floating-point register saves.
4381
6e51443a
AC
4382 * frame.h (deprecated_unwind_get_saved_register): Delete.
4383 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4384 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4385 and deprecated_get_next_frame_hack instead of
4386 deprecated_unwind_get_saved_register.
4387
ed183c7c
AC
4388 * mips-tdep.c (mips_dump_tdep): Do not print
4389 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4390
f0e7d0e8
AC
4391 * frame.c (get_frame_register): New function.
4392 (frame_unwind_register_signed): New function.
4393 (get_frame_register_signed): New function.
4394 (frame_unwind_register_unsigned): New function.
4395 (get_frame_register_unsigned): New function.
4396 * frame.h: Add comments on naming schema.
4397 (get_frame_register, frame_unwind_register_signed): Declare.
4398 (get_frame_register_signed, get_frame_register_signed): Declare.
4399 (frame_unwind_register_unsigned): Declare.
4400 (get_frame_register_unsigned): Declare.
4401
2224d941
TR
44022003-06-20 Theodore A. Roth <troth@openavr.org>
4403
4404 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4405
8619218d
TR
44062003-06-20 Theodore A. Roth <troth@openavr.org>
4407
4408 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4409 (avr_read_sp): Ditto.
4410
0b1b50c0
DJ
44112003-06-20 Daniel Jacobowitz <drow@mvista.com>
4412
4413 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4414 * config/arm/nm-linux.h: Likewise.
4415 * config/arm/tm-linux.h: Likewise.
4416 * config/ia64/nm-linux.h: Likewise.
4417 * config/ia64/tm-ia64.h: Likewise.
4418 * config/s390/tm-linux.h: Likewise.
4419 * config/s390/tm-s390.h: Likewise.
4420 * s390-nat.c: Likewise.
4421 * s390-tdep.c: Likewise.
4422
4423 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4424 * config/ia64/linux.mt: Likewise.
4425 * config/m68k/linux.mh: Likewise.
4426 * config/mips/linux.mt: Likewise.
4427 * config/powerpc/linux.mh: Likewise.
4428 * config/sh/linux.mt: Likewise.
4429
c8c18e65
KW
44302003-06-19 Kris Warkentin <kewarken@qnx.com>
4431
4432 * solib.c (solib_open): Change tests for whether to search
4433 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4434 comments.
4435
dcccef2e
TR
44362003-06-19 Theodore A. Roth <troth@openavr.org>
4437
4438 * avr-tdep.c (avr_frame_address): Delete function.
4439 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4440 set_gdbarch_frame_args_address.
4441
5861a190
AC
44422003-06-19 Andrew Cagney <cagney@redhat.com>
4443
4444 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4445 (REGISTER_CONVERT_FROM_TYPE): Delete.
4446 (mips_register_convert_to_type): Delete declaration.
4447 (mips_register_convert_from_type): Delete declaration.
4448 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4449 kernel/.
4450
0274a8ce
MS
44512003-06-19 Michael Snyder <msnyder@redhat.com>
4452
4453 * linux-nat.h: New file.
4454 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4455 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4456 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4457 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4458 (linux_make_note_section): Iterate over lwps instead of threads.
4459 (linux_do_thread_registers): Use lwp instead of merged pid.
4460 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4461 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4462 Add dependency on linux_nat_h.
4463
adf5f719
TR
44642003-06-19 Theodore A. Roth <troth@openavr.org>
4465
4466 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4467
6766a268
DJ
44682003-06-19 Daniel Jacobowitz <drow@mvista.com>
4469
4470 * varobj.c (get_type, get_target_type): Use check_typedef.
4471
1171114a
DJ
44722003-06-19 Daniel Jacobowitz <drow@mvista.com>
4473
4474 * breakpoint.c (insert_catchpoint): Call internal_error.
4475
adcf68a2
TR
44762003-06-19 Theodore A. Roth <troth@openavr.org>
4477
4478 * avr-tdep.c (avr_push_dummy_code): Delete function.
4479 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4480
ea67f13b
DJ
44812003-06-19 Daniel Jacobowitz <drow@mvista.com>
4482
4483 * arch-utils.c (default_prepare_to_proceed): Remove.
4484 (generic_prepare_to_proceed): Remove.
4485 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4486 (generic_prepare_to_proceed): Remove prototype.
4487 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4488 * gdbarch.c: Regenerate.
4489 * gdbarch.h: Regenerate.
4490 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4491 * hppah-nat.c (hppa_switched_threads): Remove.
4492 * infrun.c (prepare_to_proceed): New static function, copied from
4493 generic_prepare_to_proceed. Remove select_it argument.
4494 (proceed): Call prepare_to_proceed.
4495 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4496 variables.
4497 (ptrace_wait): Don't set the removed variables.
4498 (hppa_switched_threads): Remove.
4499 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4500 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4501 (lin_lwp_prepare_to_proceed): Remove prototype.
4502 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4503 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4504
4add8633
TR
45052003-06-18 Theodore A. Roth <troth@openavr.org>
4506
4507 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4508 trad-frame.h.
4509 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4510 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4511 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4512 (AVR_PROLOGUE_*): Enumerate prologue types.
4513 (struct frame_extra_info): Remove.
4514 (struct avr_unwind_cache): Define.
4515 (avr_write_sp): Delete function.
4516 (avr_read_fp): Ditto.
4517 (avr_init_extra_frame_info): Ditto.
4518 (avr_pop_frame): Ditto.
4519 (avr_frame_saved_pc): Ditto.
4520 (avr_saved_pc_after_call): Ditto.
4521 (avr_push_return_address): Ditto.
4522 (avr_frame_chain): Ditto.
4523 (avr_store_struct_return): Ditto.
4524 (avr_push_arguments): Ditto.
4525 (avr_scan_prologue): Update comments. Changed to set up the info for
4526 cache unwinding. Now returns end of prologue PC.
4527 (avr_skip_prologue): Better handling of functions lacking a prologue
4528 by using avr_scan_prologue.
4529 (avr_scan_arg_moves): New function.
4530 (avr_saved_regs_unwinder): Ditto.
4531 (avr_frame_unwind_cache): Ditto.
4532 (avr_unwind_pc): Ditto.
4533 (avr_frame_this_id): Ditto.
4534 (avr_frame_prev_register): Ditto.
4535 (avr_frame_p): Ditto.
4536 (avr_frame_base_address ): Ditto.
4537 (avr_unwind_dummy_id): Ditto.
4538 (avr_push_dummy_code): Ditto.
4539 (push_stack_item): Ditto.
4540 (pop_stack_item): Ditto.
4541 (avr_push_dummy_call): Ditto.
4542 (struct stack_item): Define.
4543 (avr_frame_unwind): Declare structure.
4544 (avr_frame_base): Ditto.
4545 (avr_gdbarch_init): Remove calls to
4546 set_gdbarch_deprecated_init_frame_pc,
4547 set_gdbarch_deprecated_target_read_fp,
4548 set_gdbarch_deprecated_dummy_write_sp,
4549 set_gdbarch_deprecated_fp_regnum,
4550 set_gdbarch_deprecated_push_arguments,
4551 set_gdbarch_deprecated_push_return_address,
4552 set_gdbarch_deprecated_pop_frame,
4553 set_gdbarch_deprecated_store_struct_return,
4554 set_gdbarch_deprecated_frame_init_saved_regs,
4555 set_gdbarch_deprecated_init_extra_frame_info,
4556 set_gdbarch_deprecated_frame_chain,
4557 set_gdbarch_deprecated_frame_saved_pc,
4558 set_gdbarch_deprecated_saved_pc_after_call.
4559 Add calls to set_gdbarch_push_dummy_call,
4560 set_gdbarch_push_dummy_code,
4561 frame_unwind_append_predicate,
4562 frame_base_set_default,
4563 set_gdbarch_unwind_dummy_id,
4564 set_gdbarch_unwind_pc.
4565 Wrap a long line.
4566
7be04a68
MS
45672003-06-18 Corinna Vinschen <vinschen@redhat.com>
4568
4569 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4570 registers for H8/300S.
4571 (h8300_print_registers_info): Ditto.
8ffd9b1b 4572 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4573
ae087d01
DJ
45742003-06-18 Daniel Jacobowitz <drow@mvista.com>
4575
4576 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4577 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4578 (lin_lwp_wait): Likewise. Update comments.
4579 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4580 (pull_pid_from_list, linux_record_stopped_pid): New.
4581
07d8f827
SC
45822003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4583
4584 * ada-lang.c (scan_discrim_bound): Name first argument.
4585 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4586 declared by ALL_BLOCK_SYMBOLS.
4587
7cb47b14
SC
45882003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4589
4590 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4591 ("regcache.h"): Include it.
4592 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4593
6ad8ae5c
DJ
45942003-06-17 Daniel Jacobowitz <drow@mvista.com>
4595
4596 * NEWS: Mention gdbserver detach change and "disconnect" command.
4597 * infcmd.c (disconnect_command): New function.
4598 (_initialize_infcmd): Add ``disconnect'' command.
4599 * remote.c (remote_async_detach): Delete.
4600 (remote_detach): Merge remote_async_detach.
4601 (remote_disconnect): New.
4602 (init_remote_ops): Set to_disconnect.
4603 (init_remote_cisco_ops): Likewise.
4604 (init_remote_async_ops): Likewise. Use remote_detach.
4605 * target.c (cleanup_target): Default to_disconnect.
4606 (update_current_target): Inherit to_disconnect.
4607 (target_disconnect, debug_to_disconnect): New functions.
4608 (setup_target_debug): Set to_disconnect.
4609 * target.h (struct target_ops): Add to_disconnect.
4610 (target_disconnect): Add prototype.
4611
687595f9
DJ
46122003-06-17 Daniel Jacobowitz <drow@mvista.com>
4613
4614 * breakpoint.c (insert_catchpoint): New function.
4615 (insert_breakpoints): Use catch_exceptions to call
4616 insert_catchpoint. Disable catchpoints if they fail to insert.
4617
29239a8f
DJ
46182003-06-17 Daniel Jacobowitz <drow@mvista.com>
4619
4620 * symfile.c (reread_symbols): Clear sym_private.
4621
2cdf3c63
AC
46222003-06-17 Andrew Cagney <cagney@redhat.com>
4623
4624 * trad-frame.h (struct frame_info): Add opaque declaration.
4625 * remote-fileio.h (struct cmd_list_element): Add opaque
4626 declaration.
4627 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4628 comments.
4629
cf0e1e0d
DJ
46302003-06-17 Daniel Jacobowitz <drow@mvista.com>
4631
4632 * remote.c (remote_prepare_to_store): Replace call to
4633 deprecated_read_register_bytes with multiple regcache_raw_read
4634 calls.
4635
192cdb19
KW
46362003-06-17 Kris Warkentin <kewarken@qnx.com>
4637
4638 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4639 (nto_find_and_open_solib): Likewise.
4640 (nto_init_solib_absolute_prefix): Likewise.
4641 (_initialize_nto_tdep): Fix indentation.
4642
89929b45
KW
46432003-06-17 Kris Warkentin <kewarken@qnx.com>
4644
4645 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4646
46019f27
KW
46472003-06-17 Kris Warkentin <kewarken@qnx.com>
4648
4649 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4650
1a38736e
JB
46512003-06-17 Jim Blandy <jimb@redhat.com>
4652
4653 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4654
3605c34a
TR
46552003-06-16 Theodore A. Roth <troth@openavr.org>
4656
4657 * avr-tdep.c (avr_extract_return_value): New function.
4658 (avr_gdbarch_init): Set extract_return_value method.
4659
870b3035
AC
46602003-06-16 Andrew Cagney <cagney@redhat.com>
4661
4662 * frame.h (deprecated_get_next_frame_hack): Declare.
4663 * frame.c (legacy_saved_regs_prev_register): Only require
4664 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4665 there are always saved regs.
4666 (deprecated_generic_get_saved_register): Do not require
4667 DEPRECATED_FRAME_INIT_SAVED_REGS.
4668 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4669 use frame ID unwind instead.
4670 (deprecated_get_next_frame_hack): New function.
4671
63d47a7d
CV
46722003-06-16 Corinna Vinschen <vinschen@redhat.com>
4673
4674 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4675 (h8300_push_dummy_call): ...this function. Some minor optimization.
4676 (h8300_push_return_address): Remove.
4677 (h8300_gdbarch_init): Remove calls to
4678 set_gdbarch_deprecated_dummy_write_sp,
4679 set_gdbarch_deprecated_push_arguments and
4680 set_gdbarch_deprecated_push_return_address.
4681 Add call to set_gdbarch_push_dummy_call.
4682
4bb1dc5e
CV
46832003-06-16 Corinna Vinschen <vinschen@redhat.com>
4684
4685 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4686 (E_PSEUDO_EXR_REGNUM): Ditto.
4687 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4688 registers into safe registers.
4bb1dc5e
CV
4689 (h8300_skip_prologue): Check for stm instruction to push registers
4690 used for register variables onto stack.
4691 (gdb_print_insn_h8300): Remove.
4692 (h8300_examine_prologue): Add a comment.
4693 (h8300_register_name): Take pseudo registers into account.
4694 (h8300s_register_name): Ditto.
4695 (h8300sx_register_name): Ditto.
4696 (h8300_print_register): Ditto.
4697 (h8300_print_registers_info): Define "nice" printing order.
4698 (h8300_saved_pc_after_call): Take pseudo registers into account.
4699 (h8300_register_type): Ditto. Return type used for remote connection
4700 when requesting real CCR or EXR register, return actual type when
4701 requesting pseudo CCR or EXR.
4702 (h8300_pseudo_register_read): New function.
4703 (h8300_pseudo_register_write): Ditto.
4704 (h8300_dbg_reg_to_regnum): Ditto.
4705 (h8300s_dbg_reg_to_regnum): Ditto.
4706 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4707 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4708 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4709 set_gdbarch_print_insn architecture dependent.
4710 Call set_gdbarch_pseudo_register_read and
4711 set_gdbarch_pseudo_register_write.
4712 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4713
a59fe496
AC
47142003-06-16 Andrew Cagney <cagney@redhat.com>
4715
4716 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4717 * gdbarch.h, gdbarch.c: Re-generate.
4718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4719 * s390-tdep.c (s390_gdbarch_init): Update.
4720 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4721 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4722 * mips-tdep.c (mips_gdbarch_init): Update.
4723 * mcore-tdep.c (mcore_gdbarch_init): Update.
4724 * cris-tdep.c (cris_gdbarch_init): Update.
4725 * infcall.c (call_function_by_hand): Update.
4726 * ia64-tdep.c (ia64_push_arguments): Update comment.
4727 * frame.c (legacy_get_prev_frame): Do not assume
4728 SAVE_DUMMY_FRAME_TOS_P.
4729 * dummy-frame.c (find_dummy_frame): Update comment.
4730
6f4e5a41
AC
47312003-06-16 Andrew Cagney <cagney@redhat.com>
4732
4733 * regcache.c (do_cooked_read): Do not use register_valid_p.
4734
72fab697
TR
47352003-06-15 Theodore A. Roth <troth@openavr.org>
4736
4737 * avr-tdep.c (avr_register_type): Remove a blank line.
4738 (avr_scan_prologue): Correct some comments.
4739
e3d8b004
TR
47402003-06-15 Theodore A. Roth <troth@openavr.org>
4741
4742 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4743 prologue types.
8ffd9b1b 4744 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4745 option.
4746 Add code to scan -mcall-prologues for mega devices.
4747
866b76ea
TR
47482003-06-15 Theodore A. Roth <troth@openavr.org>
4749
4750 * avr-tdep.c (avr_register_byte): Delete function.
4751 (avr_register_raw_size): Delete function.
4752 (avr_register_virtual_size): Delete function.
4753 (avr_register_virtual_type): Delete function.
4754 (avr_register_type): New function.
4755 (avr_address_to_pointer): Remove unused code.
4756 (avr_read_fp): Need to read FP as two separate bytes due to change to
4757 avr_register_type() usage.
4758 (avr_gdbarch_init): Don't set deprecated_register_size.
4759 Don't set deprecated_register_bytes.
4760 Don't set deprecated_register_byte.
4761 Don't set deprecated_register_raw_size.
4762 Don't set deprecated_max_register_raw_size.
4763 Don't set deprecated_register_virtual_size.
4764 Don't set deprecated_max_register_virtual_size.
4765 Don't set deprecated_register_virtual_type.
4766 Set register_type method.
4767
3993f6b1
DJ
47682003-06-15 Daniel Jacobowitz <drow@mvista.com>
4769
4770 * Makefile.in (linux-nat.o): Add rule.
4771 * linux-nat.c: New file.
4772 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4773 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4774 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4775 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4776 * config/arm/linux.mh (NATDEPFILES): Likewise.
4777 * config/i386/linux.mh (NATDEPFILES): Likewise.
4778 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4779 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4780 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4781 * config/mips/linux.mh (NATDEPFILES): Likewise.
4782 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4783 * config/s390/s390.mh (NATDEPFILES): Likewise.
4784 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4785
786a90bb
MK
47862003-06-15 Mark Kettenis <kettenis@gnu.org>
4787
4788 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4789 replace out-of-date comment.
4790
3bd3f01e
AC
47912003-06-15 Andrew Cagney <cagney@redhat.com>
4792
4793 * rdi-share/host.h (Fail): Change to a varargs function.
4794 * remote-rdi.c (Fail): Update.
8ffd9b1b 4795
de5b9bb9
MK
47962003-06-15 Mark Kettenis <kettenis@gnu.org>
4797
4798 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4799 (i386_convert_register_p, i386_register_to_value,
4800 i386_register_from_value): Handle types longer than 8 bytes.
4801
d532c08f
MK
48022003-06-15 Mark Kettenis <kettenis@gnu.org>
4803
4804 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4805 Move floating-point code to new function in i387-tdep.c.
4806 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4807 New functions containing code moved here from i386-tdep.c.
4808 * i387-tdep.h: Add opaque declaration for `struct type'.
4809 (i387_register_to_value, i387_value_to_register): New prototypes.
4810 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4811 (x86_64_init_abi): Set convert_register_p, register_to_value and
4812 value_to_register here.
8ffd9b1b 4813
42c466d7
AC
48142003-06-14 Andrew Cagney <cagney@redhat.com>
4815
4816 * mips-tdep.c (mips_register_to_value): Make static.
4817 (mips_value_to_register): Make static.
4818 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4819 * ia64-tdep.c (ia64_register_raw_size): Make static.
4820 (ia64_register_virtual_size): Make static.
4821 (ia64_register_byte): Make static.
4822 * i387-tdep.c: Include "i387-tdep.h".
4823 (print_387_control_word): Delete function.
4824 (print_387_status_word): Delete function.
4825 (print_387_status_bits): Delete function.
4826 (print_387_control_bits): Delete function.
4827 * Makefile.in (i387-tdep.o): Update dependencies.
4828 * rdi-share/host.h (Fail): Declare.
4829 * remote-rdi.c (Fail): Update to match declaration.
4830
2a9cda49
AC
48312003-06-14 Andrew Cagney <cagney@redhat.com>
4832
4833 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4834 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4835 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4836 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4837 * README: Delete reference to remote-array.
4838 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4839 (remote-array.o): Delete target.
4840 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4841 * remote-array.c: Delete file.
4842
ff2e87ac
AC
48432003-06-14 Andrew Cagney <cagney@redhat.com>
4844 Mark Kettenis <kettenis@gnu.org>
4845
4846 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4847 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4848 parameter with "frame".
4849 * gdbarch.h, gdbarch.c: Re-generate.
4850 * frame.h (put_frame_register): Declare.
4851 * frame.c (put_frame_register): New function.
4852 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4853 (legacy_register_to_value): Rewrite, use "frame" to get the
4854 register value.
4855 (legacy_value_to_register): Rewrite, use "frame" to find the
4856 register's location before storing.
4857 * arch-utils.h (legacy_convert_register_p): Update.
4858 (legacy_register_to_value, legacy_value_to_register): Update.
4859 * findvar.c (value_from_register): Rewrite, eliminate use of
4860 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4861 "frame" to REGISTER_TO_VALUE.
4862 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4863 lval_reg_frame_relative + lval_register branch of the switch. Do
4864 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4865 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4866 I386_EDI_REGNUM): New defines.
4867 (i386_next_regnum, i386_convert_register_p,
4868 i386_register_to_value, i386_value_to_register): New functions.
4869 (i386_register_convertible, i386_register_convert_to_virtual,
4870 i386_convert_to_raw): Remove functions.
4871 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4872 value_to_register instead of register_convertible,
4873 register_convert_to_virtual and register_convert_to_raw.
4874 * mips-tdep.c (mips_convert_register_p): New function.
4875 (mips_value_to_register): Replace mips_register_convert_from_type.
4876 (mips_register_to_value): Replace mips_register_convert_to_type.
4877 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4878 register_to_value.
4879 * alpha-tdep.c (alpha_convert_register_p): Update.
4880 (alpha_value_to_register): Update, store the register.
4881 (alpha_register_to_value): Update, fetch the register.
4882
98be1e77
TR
48832003-06-14 Theodore A. Roth <troth@openavr.org>
4884
4885 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4886 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4887 Don't set deprecated_call_dummy_words.
4888 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4889 Don't set remote_translate_xfer_address.
4890 (avr_io_reg_read_command): Remove commented out debug printf.
4891 Wrap a long line.
4892
57bc6122
TR
48932003-06-14 Theodore A. Roth <troth@openavr.org>
4894
4895 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4896 causes gdb to seg fault.
4897
eb01fc62
DJ
48982003-06-14 Daniel Jacobowitz <drow@mvista.com>
4899
4900 * sparc-nat.c (fetch_inferior_registers): Correct
4901 a reference to "registers".
4902
3b3e6bee
DJ
49032003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4904
4905 * Makefile.in (exc_request_U_h): Define
4906 (exc_request_S_h): Likewise.
4907 (msg_reply_S_h): Likewise.
4908 (msg_U_h): Likewise.
4909 (notify_S_h): Likewise.
4910 (process_reply_S_h): Likewise.
4911 (gnu-nat.o): Depend on gdb_obstack_h
4912 * gnu-nat.c: Include "gdb_obstack.h".
4913
b8de8283
AC
49142003-06-13 Andrew Cagney <cagney@redhat.com>
4915
4916 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4917 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4918
f3be58bc
AC
49192003-06-13 Andrew Cagney <cagney@redhat.com>
4920
4921 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4922 when deprecated REGISTER macros can be deleted.
4923 * gdbarch.h, gdbarch.c: Re-generate.
4924
4c0122c8
JB
49252003-06-13 Jim Blandy <jimb@redhat.com>
4926
4927 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4928 Linux entry point symbols for _dl_debug_state, too.
4929
3e210248
AC
49302003-06-13 Andrew Cagney <cagney@redhat.com>
4931
4932 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4933 available, do not use the FP register, and always save the TOS.
4934 * dummy-frame.c (dummy_frame_this_id): Do not assert
4935 SAVE_DUMMY_FRAME_TOS.
4936 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4937 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4938 (i386_push_dummy_call): Add 8 to the returned SP.
4939 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4940 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4941 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4942 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4943 (x86_64_push_dummy_call): Return "sp + 16".
4944 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4945 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4946 save_dummy_frame_tos.
4947
0b65af49
JB
49482003-06-13 Jim Blandy <jimb@redhat.com>
4949
4950 * frv-tdep.c (frv_use_struct_convention): Delete static
4951 declaration for function deleted in my change of 2003-06-12.
4952
4ea2465e
TR
49532003-06-13 Theodore A. Roth <troth@openavr.org>
4954
4955 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4956 (avr_pointer_to_address): Shift code addrs left 1 bit.
4957 (avr_convert_from_func_ptr_addr): Delete function since operation is
4958 better handled by avr_address_to_pointer and avr_pointer_to_address.
4959 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4960
1581182a
MK
49612003-06-13 Mark Kettenis <kettenis@gnu.org>
4962
4963 From Kelley Cook <kelleycook@wideopenwest.com>:
4964 * configure.host: Accept i[34567]86 variants.
4965 * configure.tgt: Likewise.
4966 * nlm/configure.in: Likewise.
4967 * nlm/configure: Regenerated.
4968
7aa1783e
RE
49692003-06-13 Richard Earnshaw <rearnsha@arm.com>
4970
4971 * arm-tdep.c (solib-svr4.h): Dont' include it.
4972 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4973 * arm-linux-tdep.c: ... here. Make static.
4974 (arm_linux_init_abi): Register it.
4975 (solib-svr4.h): Include it.
4976 * Makefile.in: Update dependencies.
4977 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4978 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4979
0261a0d0
CV
49802003-06-13 Corinna Vinschen <vinschen@redhat.com>
4981
4982 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4983 indicate registers used for return values.
4984 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4985 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4986 members.
4987 (h8300_init_extra_frame_info): Ditto.
4988 (h8300_frame_locals_address): Removed.
4989 (h8300_frame_args_address): Removed.
4990 (h8300_extract_return_value): Use new regcache structure. Only care
4991 for 16 bit CPUs.
4992 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4993 (h8300_store_return_value): Use new regcache structure. Only care
4994 for 16 bit CPUs.
4995 (h8300h_store_return_value): Same function for 32 bit CPUs.
4996 (h8300_store_struct_return): Removed.
4997 (h8300_extract_struct_value_address): Use new regcache structure.
4998 (h8300h_extract_struct_value_address): Removed.
4999 (h8300_push_dummy_code): New function.
5000 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5001 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5002 set_gdbarch_store_return_value architecture dependent.
5003 Call set_gdbarch_push_dummy_code and
5004 set_gdbarch_extract_struct_value_address.
5005 Remove calls to set_gdbarch_frame_args_address,
5006 set_gdbarch_frame_locals_address,
5007 set_gdbarch_deprecated_store_struct_return,
5008 set_gdbarch_deprecated_extract_return_value,
5009 set_gdbarch_deprecated_extract_struct_value_address,
5010 set_gdbarch_deprecated_call_dummy_words and
5011 set_gdbarch_deprecated_sizeof_call_dummy_words.
5012
055c394a
CV
50132003-06-13 Corinna Vinschen <vinschen@redhat.com>
5014
5015 * h8300-tdep.c (h8300_register_byte): Remove.
5016 (h8300h_register_byte): Remove.
5017 (h8300_register_virtual_type): Remove. Substitute by...
5018 (h8300_register_type): New function.
5019 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5020 (h8300h_extract_struct_value_address): Ditto.
5021 (h8300_gdbarch_init): Drop calls to
5022 set_gdbarch_deprecated_register_byte and
5023 set_gdbarch_deprecated_register_virtual_type.
5024 Add call to set_gdbarch_register_type.
5025
9c04cab7
AC
50262003-06-13 Andrew Cagney <cagney@redhat.com>
5027
5028 * gdbarch.sh: Update comments on registers.
5029 (deprecated_register_byte): Rename register_byte.
5030 (deprecated_register_raw_size): Rename register_raw_size.
5031 (deprecated_register_virtual_size): Rename register_virtual_size.
5032 (deprecated_register_virtual_type): Rename register_virtual_type.
5033 * gdbarch.h, gdbarch.c: Re-generate.
5034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5035 * vax-tdep.c (vax_gdbarch_init): Update.
5036 * v850-tdep.c (v850_gdbarch_init): Update.
5037 * sparc-tdep.c (sparc_gdbarch_init): Update.
5038 * sh-tdep.c (sh_gdbarch_init): Update.
5039 * s390-tdep.c (s390_gdbarch_init): Update.
5040 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5041 * ns32k-tdep.c: Update.
5042 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5043 * mips-tdep.c (mips_gdbarch_init): Update.
5044 * mcore-tdep.c (mcore_gdbarch_init): Update.
5045 * m68k-tdep.c (m68k_gdbarch_init): Update.
5046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5047 * ia64-tdep.c (ia64_gdbarch_init): Update.
5048 * hppa-tdep.c (hppa_gdbarch_init): Update.
5049 * h8300-tdep.c (h8300_gdbarch_init): Update.
5050 * frv-tdep.c (frv_gdbarch_init): Update.
5051 * cris-tdep.c (cris_gdbarch_init): Update.
5052 * avr-tdep.c (avr_gdbarch_init): Update.
5053 * alpha-tdep.c (alpha_gdbarch_init): Update.
5054 * arm-tdep.c (arm_gdbarch_init): Update.
5055
b060cbea
AC
50562003-06-13 Andrew Cagney <cagney@redhat.com>
5057
5058 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5059 mips_o32_use_struct_convention with always_use_struct_convention.
5060
0fc9922a
DC
50612003-06-12 David Carlton <carlton@kealia.com>
5062
5063 * cp-namespace.c (cp_set_block_scope): Comment out
5064 processing_has_namespace_info branch.
5065
1fd35568
JB
50662003-06-12 Jim Blandy <jimb@redhat.com>
5067
f470a70a
JB
5068 Recognize and skip 64-bit PowerPC Linux linkage functions.
5069 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5070 insn_pattern, insns_match_pattern, d_field, ds_field): New
5071 functions, macros, and types for working with PPC instructions.
5072 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5073 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5074 ppc64_skip_trampoline_code): New functions, variables, and macros
5075 for recognizing and skipping linkage functions.
5076 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5077 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5078
49ff75ad
JB
5079 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5080 register offsets for both the 32- and 64-bit interfaces.
5081
bd918c83
JB
5082 Actually finish the job started by my change of 2003-05-29.
5083 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5084 other #definition of this.
5085 (ppc_linux_skip_trampoline_code): Remove declaration.
5086 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5087 static.
5088 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5089 method for GDBARCH.
5090
5091 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5092 'long' on ppc64-*-linux*.
5093
f8c59253
JB
5094 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5095 isn't #defined, assume the register doesn't exist: act as if
5096 tdep->ppc_mq_regnum were -1.
5097
8fbb30b1
JB
5098 * configure.host, configure.tgt: Add entries for
5099 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5100 powerpc/linux.mt.
5101 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5102 New files.
5103
1fd35568
JB
5104 * arch-utils.c (always_use_struct_convention): New function.
5105 * arch-utils.h (always_use_struct_convention): New prototype.
5106 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5107 (alpha_gdbarch_init): Register always_use_struct_convention,
5108 instead of alpha_use_struct_convention.
5109 * cris-tdep.c (cris_use_struct_convention): Delete.
5110 (cris_gdbarch_init): Register always_use_struct_convention,
5111 instead of cris_use_struct_convention.
5112 * frv-tdep.c (frv_use_struct_convention): Delete.
5113 (frv_gdbarch_init): Register always_use_struct_convention,
5114 instead of frv_use_struct_convention.
5115 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5116 (h8300_gdbarch_init): Register always_use_struct_convention,
5117 instead of h8300_use_struct_convention.
e3305dd9 5118 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5119 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5120 instead of mips_o32_use_struct_convention.
5121
e14e6e9c
AC
51222003-06-12 Andrew Cagney <cagney@redhat.com>
5123
5124 * wince.c: Include "mips-tdep.h".
5125 * mips-tdep.h (mips_next_pc): Declare.
5126 * mcore-tdep.c: Make more local functions static.
5127 * Makefile.in (wince.o): Update dependencies.
5128
2335f48e
DC
51292003-06-12 David Carlton <carlton@kealia.com>
5130
5131 * symtab.c (lookup_symbol_aux_minsyms): Replace
5132 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5133 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5134 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5135 SYMBOL_NATURAL_NAME.
5136
f70a7d61
AS
51372003-06-12 Andreas Schwab <schwab@suse.de>
5138
5139 * Makefile.in (tuiDisassem.o): Update dependencies.
5140
b6429628
DC
51412003-06-12 David Carlton <carlton@bactrian.org>
5142
5143 * symtab.h: Delete declaration of make_symbol_overload_list.
5144 Add declaration of lookup_partial_symbol.
5145 * symtab.c (remove_params): Move to cp-support.c.
5146 (overload_list_add_symbol, make_symbol_overload_list)
5147 (sym_return_val_size, sym_return_val_index): Ditto.
5148 (lookup_partial_symbol): Make extern.
5149 * cp-support.h: Add declaration of make_symbol_overload_list.
5150 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5151 symtab.h, and block.h.
5152 (remove_params): Move here from symtab.c.
5153 (overload_list_add_symbol, make_symbol_overload_list)
5154 (sym_return_val_size, sym_return_val_index): Ditto.
5155 * valops.c: Include cp-support.h.
5156 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5157 frame_h, and block_h.
5158 (valops.o): Depend on cp_support_h.
5159
084edea5
CV
51602003-06-12 Corinna Vinschen <vinschen@redhat.com>
5161
5162 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5163 substitute by NUM_REGS throughout.
5164 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5165 (h8300s_register_name): New function for H8S registers.
5166 (h8300sx_register_name): Ditto for H8SX registers.
5167 (h8300_print_register): Revise register printing, avoid depending
5168 on 32 bit long.
0261a0d0 5169 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5170 (h8300h_register_byte): New function for any other architecture.
5171 (h8300_register_raw_size): Remove.
5172 (h8300_register_virtual_type): Revise to return actually useful
5173 type.
5174 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5175 (h8300h_extract_struct_value_address): New function for any other
5176 architecture.
5177 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5178 set_gdbarch_register_name, set_gdbarch_register_byte,
5179 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5180 Remove calls to set_gdbarch_deprecated_register_size,
5181 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5182 set_gdbarch_deprecated_max_register_raw_size,
5183 set_gdbarch_register_virtual_size and
5184 set_gdbarch_deprecated_max_register_virtual_size entirely.
5185 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5186 set_gdbarch_long_double_bit.
5187
06194148
JJ
51882003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5189
8ffd9b1b
AJ
5190 * doublest.c (convert_doublest_to_floatformat): When dealing
5191 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5192 processing a full 32 bits of mantissa.
5193
de4f826b
DC
51942003-06-11 David Carlton <carlton@bactrian.org>
5195
5196 * dictionary.h: New.
5197 * dictionary.c: New.
5198 * block.h: Add opaque declaration for struct dictionary.
5199 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5200 'sym' members.
5201 (BLOCK_DICT): New macro.
5202 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5203 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5204 BLOCK_SHOULD_SORT.
5205 (ALL_BLOCK_SYMBOLS): Update definition.
5206 * Makefile.in (SFILES): Add dictionary.c.
5207 (dictionary_h): New.
5208 (COMMON_OBS): Add dictionary.o.
5209 (dictionary.o): New.
5210 (ada-lang.o): Depend on dictionary_h.
5211 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5212 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5213 (mi-cmd-stack.o): Ditto.
5214 (gdbtk-cmds.o): Update dependencies.
5215 (gdbtk-stack.o): Ditto.
5216 * ada-lang.c: Include dictionary.h.
5217 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5218 (fill_in_ada_prototype, debug_print_block): Ditto.
5219 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5220 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5221 'is_sorted'.
5222 * mdebugread.c: Include dictionary.h.
5223 (struct parse_stack): Delete 'maxsyms' member.
5224 (parse_symbol): Update calls to new_block. Delete calls to
5225 shrink_block. Use dictionary methods.
5226 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5227 Update calls to new_symtab. Don't maintain maxsyms data.
5228 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5229 (add_symbol): Just call dict_add_symbol.
5230 (new_symtab): Delete 'maxsyms' argument.
5231 (new_symtab): Update calls to new_block.
5232 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5233 (shrink_block): Delete function.
5234 (fixup_sigtramp): Update call to new_block. Add symbol via
5235 dict_add_symbol.
5236 * jv-lang.c: Include dictionary.h.
5237 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5238 appropriately. Set class_symtab->free_func. Make sure the
5239 blockvector is big enough to hold two blocks.
5240 (add_class_symtab_symbol): Use dictionary methods.
5241 (free_class_block): New function.
5242 (type_from_class): Replace explicit iteration by
5243 ALL_BLOCK_SYMBOLS.
5244 * symtab.h (struct symtab): Replace 'free_ptr' method by
5245 'free_func'.
5246 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5247 sort_symtab_syms.
5248 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5249 sort_symtab_syms.
5250 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5251 Include dictionary.h.
5252 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5253 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5254 sort_symtab_syms.
5255 * objfiles.c: Include dictionary.h.
5256 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5257 * buildsym.c: Include dictionary.h.
5258 (finish_block): Use dictionary methods.
5259 (end_symtab): Set free_func to NULL, not free_ptr.
5260 * tracepoint.c: Include dictionary.h.
5261 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5262 (scope_info): Ditto.
5263 * stack.c: Include dictionary.h.
5264 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5265 (print_block_frame_labels, print_frame_arg_vars)
5266 (print_frame_args): Ditto.
5267 * symmisc.c (free_symtab_block): Use dictionary methods.
5268 (dump_symtab): Ditto.
5269 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5270 Include dictionary.h.
5271 * symfile.h: Delete declarations of sort_block_syms,
5272 sort_symtab_syms.
5273 * symfile.c (sort_block_syms): Delete.
5274 (sort_symtab_syms): Delete.
5275 * symtab.c: Include dictionary.h.
5276 (lookup_block_symbol): Use dictionary iterators.
5277 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5278 (search_symbols, make_symbol_completion_list): Ditto.
5279 (make_symbol_overload_list): Ditto.
5280 * valops.c (value_of_local): Use dict_empty.
5281 Include dictionary.h.
5282
a31f978c
JB
52832003-06-11 J. Brobecker <brobecker@gnat.com>
5284
5285 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5286
526e70c0
DC
52872003-06-11 David Carlton <carlton@bactrian.org>
5288
5289 * block.h (BLOCK_SHOULD_SORT): Delete.
5290 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5291 blocks.
5292 * ada-lang.c (ada_add_block_symbols): Ditto.
5293 * symfile.c (sort_block_syms): Delete.
5294 (sort_symtab_syms): Ditto.
5295 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5296 declarations.
5297 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5298 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5299 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5300 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5301 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5302 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5303 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5304
33c08150
JJ
53052003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5306
8ffd9b1b 5307 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5308 bits to 128.
5309
781a750d
AC
53102003-06-11 Andrew Cagney <cagney@redhat.com>
5311
5312 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5313 REGISTER_CONVERTIBLE.
5314 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5315 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5316 * gdbarch.h, gdbarch.c: Re-generate.
5317 * arch-utils.h (deprecated_register_convertible_not): Rename
5318 generic_register_convertible_not.
5319 * arch-utils.c (deprecated_register_convertible_not): Rename
5320 generic_register_convertible.
5321 (legacy_convert_register_p, legacy_register_to_value): Update.
5322 * sh-tdep.c (sh64_push_arguments): Update.
5323 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5324 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5325 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5326 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5327 * arch-utils.c (legacy_value_to_register): Update.
5328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5329 (rs6000_register_convert_to_raw): Make parameter "from" const.
5330 * mips-tdep.c (mips_gdbarch_init): Update.
5331 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5332 * infcmd.c (default_print_registers_info): Update.
5333 * ia64-tdep.c (ia64_gdbarch_init): Update.
5334 (ia64_register_convert_to_raw): Make parameter "from" const.
5335 * i386-tdep.c (i386_gdbarch_init): Update.
5336 (i386_register_convert_to_raw): Update.
5337
cd90e54f
AC
53382003-06-11 Andrew Cagney <cagney@redhat.com>
5339
5340 * remote-fileio.c: Include "remote-fileio.h".
5341 * Makefile.in (remote-fileio.o): Update dependencies.
5342 (remote_fileio_h): Fix typo.
5343
a78f21af
AC
53442003-06-11 Andrew Cagney <cagney@redhat.com>
5345
5346 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5347 (xstormy16_save_dummy_frame_tos): Make static.
5348 (_initialize_xstormy16_tdep): Add declaration.
5349 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5350 * v850-tdep.c: Make local functions static.
5351 (_initialize_v850_tdep): Add declaration.
5352 * sparc-tdep.c: Make local functions static.
5353 (_initialize_sparc_tdep): Add declaration.
5354 * sh-tdep.c: Make local functions static.
5355 (_initialize_sh_tdep): Add declaration.
5356 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5357 * s390-tdep.c: Make local functions static.
5358 (_initialize_s390_tdep): Add declaration.
5359 * dbxread.c (find_stab_function_addr): Make static.
5360 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5361 * ocd.c (_initialize_remote_ocd): Add declaration.
5362 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5363 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5364 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5365 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5366 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5367 * remote-array.c (_initialize_array): Add declaration.
5368 (_initialize_remote_monitors): Add declaration.
5369 * remote-mips.c: Make local functions static.
5370 (_initialize_remote_mips): Add declaration.
5371 * mcore-tdep.c: Make all local functions static.
5372 (_initialize_mcore_tdep): Add declaration.
5373 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5374 * abug-rom.c (_initialize_abug_rom): Add declaration.
5375 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5376 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5377 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5378 * remote-est.c (_initialize_est): Add declaration.
5379 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5380 (m68hc11_call_dummy_address): Make static.
5381 * ia64-tdep.c: Make local functions static.
5382 (_initialize_ia64_tdep): Add declaration.
5383 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5384 * monitor.c (monitor_wait_filter): Make static.
5385 (_initialize_remote_monitors): Add declaration.
5386 * remote-hms.c (_initialize_remote_hms): Add declaration.
5387 * remote-e7000.c (fetch_regs_from_dump): Make static.
5388 (expect_n): Make static.
5389 (_initialize_remote_e7000): Add declaration.
5390 * ser-e7kpc.c: Always include "defs.h".
5391 (_initialize_ser_e7000pc): Add declaration.
5392 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5393 * cris-tdep.c: Make all but one function static.
5394 (_initialize_cris_tdep): Add declaration.
5395 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5396 * solib.c (update_solib_list): Make static.
5397 (_initialize_solib): Add declaration.
5398 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5399 (_initialize_avr_tdep): Add declaration.
5400 * remote-rdi.c (voiddummy): Make static.
5401 (_initialize_remote_rdi): Add declaration.
5402 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5403 * remote-rdp.c (send_rdp): Make static.
5404 (_initialize_remote_rdp): Add declaration.
5405 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5406
cbcdb1f5
CV
54072003-06-11 Corinna Vinschen <vinschen@redhat.com>
5408
5409 * remote-fileio.c: Make ari happy.
5410
a191ea8d
JB
54112003-06-10 J. Brobecker <brobecker@gnat.com>
5412
5413 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5414 fetching the trailing bytes of the buffer we are about to write.
5415
0ef75e11
AC
54162003-06-10 Andrew Cagney <cagney@redhat.com>
5417
5418 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5419 * Makefile.in (remote-fileio.o): Update dependencies.
5420 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5421 include <setjmp.h>, or <sys/types.h> conditional on USG.
5422 (remote_fio_jmp_buf): Delete global variable.
5423
449092f6 54242003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5425 Martin M. Hunt <hunt@redhat.com>
449092f6 5426
559fa028
AC
5427 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5428 (SFILES): Add remote-fileio.c.
5429 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5430 dependencies for building remote.o.
449092f6
CV
5431 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5432 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5433 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5434 static storage class.
5435 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5436 'F' packet.
5437 (_initialize_remote): Call initialize_remote_fileio().
5438 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5439 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5440 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5441 (captured_main): Initialize new ui_files.
5442 * ui-file.c: Add read and fgets input functions.
5443 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5444 (null_file_read): New function.
5445 (ui_file_read): New function.
5446 (set_ui_file_read): New function.
5447 (stdio_file_read): New function.
5448 * ui-file.h: New type ui_file_read_ftype.
5449 (set_ui_file_read): Declare.
5450 (ui_file_read): Declare.
5451
248de703
AC
54522003-06-09 Andrew Cagney <cagney@redhat.com>
5453
5454 * frame.h (deprecated_unwind_get_saved_register): Rename
5455 generic_unwind_get_saved_register, update comments.
5456 * mips-tdep.c (mips_get_saved_register): Update.
5457 * frame.c (deprecated_unwind_get_saved_register): Update.
5458
0ed8aa57
AC
54592003-06-09 Andrew Cagney <cagney@redhat.com>
5460
5461 * vax-tdep.c (vax_frame_locals_address): Delete function.
5462 (vax_gdbarch_init): Do not set frame_locals_address.
5463 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5464 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5465 * s390-tdep.c (s390_frame_args_address): Delete function.
5466 (s390_gdbarch_init): Do not set frame_args_address or
5467 frame_locals_address.
5468 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5469 (ns32k_gdbarch_init): Do not set frame_locals_address.
5470 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5471 (hppa_frame_locals_address): Delete function.
5472 (hppa_gdbarch_init): Do not set frame_args_address, or
5473 frame_locals_address.
5474 * arm-tdep.c (arm_frame_args_address): Delete.
5475 (arm_frame_locals_address): Delete.
5476 (arm_gdbarch_init): Do not set frame_args_address, or
5477 frame_locals_address.
5478
983a287a
AC
54792003-06-09 Andrew Cagney <cagney@redhat.com>
5480
5481 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5482 * gdbarch.h, gdbarch.c: Re-generate.
5483 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5484 * arch-utils.c (frame_num_args_unknown): Delete function.
5485 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5486 (frame_info): Use FRAME_NUM_ARGS_P.
5487 * arm-tdep.c (arm_frame_num_args): Delete function.
5488 (arm_gdbarch_init): Do not set frame_num_args.
5489 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5490 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5491 (hppa_gdbarch_init): Do not set frame_num_args.
5492 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5494 frame_num_args to default frame_num_args_unknown.
5495 * v850-tdep.c (v850_gdbarch_init): Ditto.
5496 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5497 * sh-tdep.c (sh_gdbarch_init): Ditto.
5498 * s390-tdep.c (s390_gdbarch_init): Ditto.
5499 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5501 * mips-tdep.c (mips_gdbarch_init): Ditto.
5502 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5503 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5505 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5506 * i386-tdep.c (i386_gdbarch_init): Ditto.
5507 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5508 * frv-tdep.c (frv_gdbarch_init): Ditto.
5509 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5510 * cris-tdep.c (cris_gdbarch_init): Ditto.
5511 * avr-tdep.c (avr_gdbarch_init): Ditto.
5512 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5513
8d3b0994
AC
55142003-06-09 Andrew Cagney <cagney@redhat.com>
5515
5516 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5517 (print_frame_args): Moved to "stack.c".
5518 * stack.c: Include "gdb_assert.h".
5519 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5520 (print_frame_args): Moved from "printcmd.c".
5521 * frame.h (print_frame_args): Delete declaration.
5522 * Makefile.in (stack.o): Update dependencies.
5523
25e3a86b
AC
55242003-06-08 Andrew Cagney <cagney@redhat.com>
5525
5526 * frame.c (get_prev_frame): Remove reference to
5527 frame_args_address_correct in comments.
5528 * frame-base.c (default_frame_args_address): Delete code
5529 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5530 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5531 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5532 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5533 (vax_frame_args_address_correct): Delete declaration.
5534
a9e5fdc2
AC
55352003-06-08 Andrew Cagney <cagney@redhat.com>
5536
5537 * gdbarch.sh (UNWIND_SP): Add.
5538 * gdbarch.h, gdbarch.c: Re-generate.
5539 * frame.c (frame_sp_unwind): New function.
5540 (get_frame_sp): New function.
5541 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5542 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5543 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5544 value.
5545 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5546 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5547
8983bd83
AC
55482003-06-08 Andrew Cagney <cagney@redhat.com>
5549
7fec2c59
AC
5550 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5551 REMOTE_BREAKPOINT.
5552 * remote.c: Update.
5553 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5554 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5555 * config/m68k/tm-sun3.h: Update.
5556 * config/m68k/tm-m68klynx.h: Update.
5557 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5558
8983bd83
AC
5559 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5560 trad_frame". Update comments.
5561 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5562 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5563 (trad_frame_register_value, trad_frame_prev_register): Update.
5564
b9362cc7
AC
55652003-06-08 Andrew Cagney <cagney@redhat.com>
5566
5567 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5568 from GCC's acinclude.m4.
5569 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5570 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5571 * main.c (error_init): Delete declaration.
5572 * defs.h (error_init): Declare.
5573 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5574 (rs6000_convert_from_func_ptr_addr): Make static.
5575 (_initialize_rs6000_tdep): Add declaration.
5576 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5577 (show_commands, set_verbose, show_history): Delete declaration.
5578 * top.h (set_verbose): Add declaration.
5579 (show_history, set_history, show_commands): Add declaration.
5580 (do_restore_instream_cleanup): Add declaration.
5581 * objc-lang.c (specialcmp): Make static.
5582 (print_object_command): Make static.
5583 (find_objc_msgsend): Make static.
5584 (find_objc_msgcall_submethod_helper): Make static.
5585 (find_objc_msgcall_submethod): Make static.
5586 (_initialize_objc_language): Add declaration.
5587 (find_implementation_from_class): Make static.
5588 (find_implementation): Make static.
5589 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5590 * objc-lang.h (lookup_struct_typedef): Add declaration.
5591 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5592 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5593 (do_restore_user_call_depth): Make static.
5594 (do_restore_instream_cleanup): Delete declaration.
5595 (dont_repeat): Delete declaration.
5596 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5597 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5598 * reggroups.c (_initialize_reggroup): Add declaration.
5599 * cp-support.c (_initialize_cp_support): Add declaration.
5600 * cp-abi.c (_initialize_cp_abi): Add declaration.
5601 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5602 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5603 (_initialize_gnu_v3_abi): Add declaration.
5604 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5605 (_initialize_gnu_v2_abi): Add declaration.
5606 * frame-base.c (_initialize_frame_base): Add declaration.
5607 * doublest.c (floatformat_from_length): Make static.
5608 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5609 * frame.c (create_sentinel_frame): Make static.
5610 (_initialize_frame): Add declaration.
5611 * top.c (do_catch_errors): Make static.
5612 (gdb_rl_operate_and_get_next_completion): Make static.
5613 * typeprint.c: Include "typeprint.h".
5614 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5615 (sentinel_frame_this_id): Make static.
5616 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5617 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5618 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5619 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5620 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5621 * maint.c (maintenance_print_architecture): Make static.
5622 * signals/signals.c (_initialize_signals): Add declaration.
5623 * std-regs.c (_initialize_frame_reg): Add declaration.
5624 * jv-exp.y (push_variable): ISO C definition.
5625 (push_qualified_expression_name): Ditto.
5626 * memattr.c (_initialize_mem): Add declaration.
5627 * remote.c (remote_check_watch_resources): Make static.
5628 (remote_stopped_by_watchpoint): Make static.
5629 (remote_stopped_data_address): Make static.
5630 * d10v-tdep.c (nr_dmap_regs): Make static.
5631 (a0_regnum): Make static.
5632 (d10v_frame_unwind_cache): Make static.
5633 (d10v_frame_p): Make static.
5634 * osabi.c (show_osabi): Make static.
5635 (_initialize_gdb_osabi): Add extern declaration.
5636 * gdbtypes.c (make_qualified_type): Make static.
5637 (safe_parse_type): Make static.
5638 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5639 * macrotab.c (macro_bcache_free): Make static.
5640 * interps.c (interp_set_quiet): Make static.
5641 (interpreter_exec_cmd): Make static.
5642 * stack.h (select_frame_command): New file.
5643 * stack.c: Include "stack.h".
5644 (select_frame_command_wrapper): Delete function.
5645 (select_frame_command): Make global.
5646 * infcall.c: Include "infcall.h".
5647 * linespec.c: Include "linespec.h".
5648 * symfile.c (sections_overlap): Make static.
5649 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5650 * charset.c (_initialize_charset): Add missing prototype.
5651 * regcache.c (init_legacy_regcache_descr): Make static.
5652 (do_regcache_xfree): Make static.
5653 (regcache_xfer_part): Make static.
5654 (_initialize_regcache): Add missing prototype.
5655 * breakpoint.c (parse_breakpoint_sals): Make static.
5656 (breakpoint_sals_to_pc): Make static.
5657 * interps.h (clear_interpreter_hooks): ISO C declaration.
5658 * Makefile.in (stack_h): Define.
5659 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5660 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5661
a0f267c7
AC
56622003-06-08 Andrew Cagney <cagney@redhat.com>
5663
5664 * Makefile.in (d10v-tdep.o): Update dependencies.
5665 (SFILES): Add trad-frame.c.
5666 (trad_frame_h): Define.
5667 (COMMON_OBS): Add trad-frame.o.
5668 (trad-frame.o): Specify dependencies.
5669 * d10v-tdep.c: Include "trad-frame.h".
5670 (saved_regs_unwinder): Delete function.
5671 (d10v_frame_prev_register): Use trad_frame_prev_register.
5672 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5673 trad_frame", delete "regs" and "prev_sp".
5674 (prologue_find_regs): Use trad-frame.
5675 * trad-frame.h, trad-frame.c: New files.
5676
4538b4f4
MK
56772003-06-08 Mark Kettenis <kettenis@gnu.org>
5678
5679 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5680
a0273b2f
AF
56812003-06-07 Adam Fedor <fedor@gnu.org>
5682
5683 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5684 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5685 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5686 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5687 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5688 Use it.
5689
3a6c3343
AC
56902003-06-07 Andrew Cagney <cagney@redhat.com>
5691
5692 * symfile.h: Re-indent, clean up comments.
5693
b46e02f6
AC
56942003-06-07 Andrew Cagney <cagney@redhat.com>
5695
5696 * inferior.h (deprecated_write_sp): Replace
5697 generic_target_write_sp.
5698 * regcache.c (deprecated_write_sp): Replace
5699 generic_target_write_sp.
5700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5701 * vax-tdep.c (vax_gdbarch_init): Update.
5702 * v850-tdep.c (v850_gdbarch_init): Update.
5703 * sparc-tdep.c (sparc_gdbarch_init): Update.
5704 * sh-tdep.c (sh_gdbarch_init): Update.
5705 * s390-tdep.c (s390_gdbarch_init): Update.
5706 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5707 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5708 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5709 * mcore-tdep.c (mcore_gdbarch_init): Update.
5710 * m68k-tdep.c (m68k_gdbarch_init): Update.
5711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5712 * ia64-tdep.c (ia64_gdbarch_init): Update.
5713 * h8300-tdep.c (h8300_gdbarch_init): Update.
5714 * frv-tdep.c (frv_gdbarch_init): Update.
5715 * cris-tdep.c (cris_gdbarch_init): Update.
5716 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5717
a42e117c
AC
57182003-06-07 Andrew Cagney <cagney@redhat.com>
5719
5720 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5721 Assert that PC_REGNUM is valid.
5722 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5723
bd1ce8ba
AC
57242003-06-07 Andrew Cagney <cagney@redhat.com>
5725
5726 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5727 * gdbarch.h, gdbarch.c: Regenerate.
5728 * mn10300-tdep.c: Include "gdb_assert.h".
5729 (mn10300_read_fp): New function.
5730 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5731 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5732 * ia64-tdep.c: Include "gdb_assert.h".
5733 (ia64_read_fp): New function.
5734 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5735 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5736 * regcache.c (generic_target_read_sp): Delete function.
5737 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5738 * inferior.h (generic_target_read_sp): Delete declaration.
5739 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5740 generic_target_read_sp.
5741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5742 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5743 * sh-tdep.c (sh_gdbarch_init): Ditto.
5744 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5745 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5746
ec5cbaec
AC
57472003-06-07 Andrew Cagney <cagney@redhat.com>
5748
5749 * gdbarch.sh: Comment each field of startup_gdbarch.
5750 * gdbarch.h, gdbarch.c: Re-generate.
5751
cde9ea48
AC
57522003-06-07 Andrew Cagney <cagney@redhat.com>
5753
5754 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5755 * gdbarch.h, gdbarch.c: Re-generate.
5756 * regcache.c: Update comments on read_pc et.al.
5757 (generic_target_read_pc): Delete function.
5758 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5759 * inferior.h (generic_target_read_pc): Delete declaration.
5760 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5761 generic_target_read_pc.
5762 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5763 * sh-tdep.c (sh_gdbarch_init): Ditto.
5764 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5766
9a90a780
AC
57672003-06-07 Andrew Cagney <cagney@redhat.com>
5768
5769 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5770 "index" with "special_local_sect". Use strcmp instead of STREQ.
5771 Append period to coments.
5772
a39a16c4
MM
57732003-06-06 Mark Mitchell <mark@codesourcery.com>
5774
5775 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5776 (elfstab_offset_sections): Likewise.
5777 * gdb-stabs.h (stab_section_info): Likewise.
5778 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5779 * objfiles.c (objfile_relocate): Likewise.
5780 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5781 * remote.c (get_offsets): Likewise.
5782 (remote_cisco_objfile_relocate): Likewise.
5783 * somread.c (som_symfile_offsets): Likewise.
5784 * symfile.c (alloc_section_addr_info): New function.
5785 (build_section_addr_info_from_section_tab): Use it.
5786 (free_section_addr_info): Adjust.
5787 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5788 (syms_from_objfile): Allocate local_addr dynamically.
5789 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5790 dynamically.
5791 (add_symbol_file_command): Allocate sect_opts dynamically.
5792 (reread_symbols): Avoid use of SECT_OFF_MAX.
5793 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5794 (alloc_section_addr_info): Declare it.
5795 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5796 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5797 dynamically.
5798 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5799
20c6c2f8
AC
58002003-06-06 Andrew Cagney <cagney@redhat.com>
5801
5802 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5803 (d10v_frame_unwind_cache): Do not set "return_pc".
5804
884a26c8
MS
58052003-06-06 Michael Snyder <msnyder@redhat.com>
5806
5807 * h8300-tdep.c: Make tidy (long lines).
5808
088ce440
ML
58092003-06-06 Michal Ludvig <mludvig@suse.cz>
5810
8ffd9b1b 5811 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5812 to regcache_collect().
5813
7d773d96
JB
58142003-06-05 J. Brobecker <brobecker@gnat.com>
5815
5816 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5817 pc_in_sigtramp multiarch method.
5818 (hppa_hpux_som_init_abi): Use it.
5819 (hppa_hpux_elf_init_abi): Likewise.
5820 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5821 macro has been multiarched.
5822 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5823 macro here, as hppa64 isn't multiarched yet.
5824
1df6926e
AC
58252003-06-05 Andrew Cagney <cagney@redhat.com>
5826
5827 * Makefile.in (value_h): Add $(frame_h).
5828 * value.h: Include "frame.h".
5829 (struct value): Replace "frame_addr" with "frame_id".
5830 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5831 * values.c (allocate_value): Use VALUE_FRAME_ID.
5832 (value_copy): Use VALUE_FRAME_ID.
5833 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5834 * valops.c (value_assign): Update. Use frame_find_by_id.
5835
6b53acc6
ML
58362003-06-05 Michal Ludvig <mludvig@suse.cz>
5837
5838 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5839 in each pass.
5840
4d9850d3
JJ
58412003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5842
5843 * thread-db.c (check_event): For create/death event breakpoints,
5844 loop through all messages to ensure that we read the message
5845 corresponding to the breakpoint we are at.
5846
8efca6ba
MS
58472003-06-04 Michael Snyder <msnyder@redhat.com>
5848
5849 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5850
0912c7f2
MK
58512003-06-04 Mark Kettenis <kettenis@gnu.org>
5852
5853 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5854 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5855 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5856 when handling .eh_frame sections.
5857
4e370325
JB
58582003-06-04 J. Brobecker <brobecker@gnat.com>
5859
5860 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5861 prepare_to_proceed procedure instead of the hppa-specific one.
5862 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5863
b757528f 58642003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5865
b757528f
JJ
5866 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5867 * config.in: Regenerated.
5868 * configure.in: Add test for syscall function and check for
5869 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5870 * configure: Regenerated.
5871 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5872 <sys/syscall.h>.
5873 (kill_lwp): New function that uses tkill syscall or
5874 uses kill, depending on whether threading model is nptl or not.
5875 All callers of kill() changed to use kill_lwp().
5876 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5877 see if all threads have already exited in the nptl model.
5878 (stop_and_resume_callback): New callback function used by the
5879 lin_lwp_wait thread exit handling code.
5880 (stop_wait_callback): Check for threads already having exited and
5881 delete such threads fromt the lwp list when discovered.
5882 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5883
b757528f
JJ
5884 Roland McGrath <roland@redhat.com>
5885 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5886 nptl libthread_db.
5887
087779b1
RH
58882003-06-03 Richard Henderson <rth@redhat.com>
5889
b21fd293
RH
5890 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5891 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5892 (alpha_sigtramp_frame_prev_register): Likewise.
5893 (alpha_heuristic_frame_prev_register): Likewise.
5894 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5895
8ffd9b1b 5896 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5897 alpha-specific register id names.
5898 (alpha_mdebug_frame_unwind_cache): Likewise.
5899 (alpha_mdebug_frame_prev_register): Likewise.
5900
baa490c4
RH
59012003-06-03 Richard Henderson <rth@redhat.com>
5902
5903 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5904 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5905 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5906 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5907 unwind routines.
5908 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5909 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5910 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5911
5912 * alpha-linux-tdep.c: Remove unnecessary includes.
5913 * Makefile.in (alpha-linux-tdep.o): Update.
5914
59152003-06-03 Richard Henderson <rth@redhat.com>
5916
5917 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5918 (alphabsd_fill_fpreg): Likewise.
5919
f534e522
JB
59202003-06-03 J. Brobecker <brobecker@gnat.com>
5921
5922 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5923 references to struct frame_info fields by calls to the equivalent
5924 accessors. Necessary now that frame_info is opaque.
5925
4035536b
JB
59262003-06-03 J. Brobecker <brobecker@gnat.com>
5927
5928 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5929 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5930 structure, field no longer exists.
5931
0bd79c5c
JB
59322003-06-03 J. Brobecker <brobecker@gnat.com>
5933
5934 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5935 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5936
37bb6d9f
JB
59372003-06-03 J. Brobecker <brobecker@gnat.com>
5938
5939 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5940 references to struct frame_info fields by calls to the equivalent
5941 accessors. Necessary now that frame_info is opaque.
5942
852ee05c
JB
59432003-06-03 J. Brobecker <brobecker@gnat.com>
5944
5945 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5946 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5947 structure, field no longer exists.
5948
7d58c67d
TR
59492003-06-03 Theodore A. Roth <troth@openavr.org>
5950
8ffd9b1b 5951 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5952 accumulation of the size of all registers instead of blindly using
5953 DEPRECATED_REGISTER_BYTES.
5954
0a48e7e8
MS
59552003-06-03 Michael Snyder <msnyder@redhat.com>
5956
5957 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5958 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5959 for h8300sx.
5960
9798ab0d
JB
59612003-06-03 J. Brobecker <brobecker@gnat.com>
5962
5963 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5964 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5965
00b037e2
AC
59662003-06-03 Andrew Cagney <cagney@redhat.com>
5967
5968 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5969 (sparc_convert_to_raw): Delete function.
5970 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5971 register_convert_to_virtual.
5972
043b2f77
JJ
59732003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5974
5975 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5976 layer if not dealing with a statically-linked threaded program.
5977
f43caff8
KW
59782003-06-03 Kris Warkentin <kewarken@qnx.com>
5979
5980 * solib.c (solib_open): Update comment to reflect actual search order.
5981
ae1e7417
AC
59822003-06-03 Andrew Cagney <cagney@redhat.com>
5983
5984 * frame.c (get_frame_memory_signed): New function.
5985 (get_frame_memory, get_frame_memory_unsigned): New function.
5986 (get_frame_arch): New function.
5987 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5988 (get_frame_memory, get_frame_unsigned_memory): Declare.
5989 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5990 get_frame_memory_unsigned and get_frame_arch.
5991 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5992
cb123844
RG
59932003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5994
5995 * MAINTAINERS (write after approval): Add myself.
5996
1bb792e9
JB
59972003-06-03 Jim Blandy <jimb@redhat.com>
5998
5999 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6000 elements of gregset_t are 64 bits each, but access registers
6001 are still 32 bits, so they're packed two per gregset_t
6002 element. Unpack/pack them properly.
6003
aee8d8ba
DC
60042003-06-02 David Carlton <carlton@bactrian.org>
6005
6006 * linespec.c (find_methods): Break out code into
6007 add_matching_methods and add_constructors.
6008 (add_matching_methods): New.
6009 (add_constructors): Ditto.
6010
bf7488d2
AC
60112003-06-02 Andrew Cagney <cagney@redhat.com>
6012
bf7488d2
AC
6013 * sparc-tdep.c (sparc_print_registers): Delete call to
6014 REGISTER_CONVERTIBLE.
6015 (sparc_gdbarch_init): Do not set register_convertible.
6016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6017 * frv-tdep.c (frv_gdbarch_init): Ditto.
6018 * cris-tdep.c (cris_gdbarch_init): Ditto.
6019
adedef68
EZ
60202003-06-02 Elena Zannoni <ezannoni@redhat.com>
6021
8ffd9b1b 6022 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6023 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6024 (syms_from_objfile): Ditto.
6025
650fcc91
AS
60262003-06-03 Andreas Schwab <schwab@suse.de>
6027
6028 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6029 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6030
df4a182b
RH
60312003-06-02 Richard Henderson <rth@redhat.com>
6032
6033 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6034 a member of all_reggroup.
6035
c483c494
RH
60362003-06-02 Richard Henderson <rth@redhat.com>
6037
6038 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6039 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6040 (alpha_lds, alpha_sts): New.
6041 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6042 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6043 restructure and fail for type sizes other than 4 or 8.
6044 (alpha_value_to_register): Similarly.
6045 (alpha_extract_return_value): Use alpha_sts.
6046 (alpha_store_return_value): Use alpha_lds.
6047 (alpha_gdbarch_init): Update hooks.
6048
b38b6be2
RH
60492003-06-02 Richard Henderson <rth@redhat.com>
6050
6051 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6052 regnum identifiers.
6053 (alpha_sigtramp_register_address): Likewise.
6054
98a8e1e5
RH
60552003-06-02 Richard Henderson <rth@redhat.com>
6056
6057 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6058 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6059 * alpha-tdep.h: Declare them.
6060
6061 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6062 Remove zerobuf. Don't error on UNIQUE.
6063 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6064 (ALPHA_REGSET_UNIQUE): Provide default.
6065 (supply_gregset): Use alpha_supply_int_regs.
6066 (fill_gregset): Use alpha_fill_int_regs.
6067 (supply_fpregset): Use alpha_supply_fp_regs.
6068 (fill_fpregset): Use alpha_fill_fp_regs.
6069 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6070 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6071 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6072 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6073 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6074 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6075
67dfac52
RH
60762003-06-02 Richard Henderson <rth@redhat.com>
6077
f75d70cc
RH
6078 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6079
67dfac52
RH
6080 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6081 (alpha_store_return_value): Likewise.
6082
0cf566ec
DC
60832003-06-02 David Carlton <carlton@math.stanford.edu>
6084
6085 * block.c (contained_in): Add 'const' to arguments.
6086 (block_function): Ditto.
6087 * block.h: Update declarations for block_function and
6088 contained_in.
6089
cdef89d0
DC
60902003-06-02 David Carlton <carlton@math.stanford.edu>
6091
6092 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6093 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6094 * p-valprint.c (pascal_val_print): Ditto.
6095 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6096
72667056
RH
60972003-06-02 Richard Henderson <rth@redhat.com>
6098
98a8e1e5
RH
6099 * alpha-tdep.c (alpha_push_dummy_call): Use
6100 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6101
8ffd9b1b 6102 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6103 sign-extension of 32-bit values.
6104 (alpha_store_return_value): Similarly.
0ede8eca 6105
98a8e1e5
RH
6106 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6107 (alpha_extract_return_value): Likewise.
6108 (alpha_store_return_value): Likewise.
7b5e1cb3 6109
98a8e1e5
RH
6110 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6111 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6112
98a8e1e5
RH
6113 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6114 (alpha_extract_struct_value_address): Likewise.
6115 (alpha_store_return_value): Likewise.
6116 (alpha_store_struct_return): Remove.
6117 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6118
98a8e1e5
RH
6119 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6120 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6121 macros where appropriate.
6122 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6123 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6124
98a8e1e5
RH
6125 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6126 for SP, GP; void_func_ptr for PC; non-language-specific types
6127 for all others.
6128 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6129
6dd77b81
RH
61302003-06-02 Richard Henderson <rth@redhat.com>
6131
6132 * top.h (lim_at_start): Declare.
6133 * main.c (captured_main): Set it.
6134 * top.c (lim_at_start): Define.
6135 (command_loop): Use it instead of &environ.
6136 * event-top.c (command_handler): Likewise.
6137
f4dbdb54
JT
61382003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6139
6140 * mipsnbsd-tdep.c: Update copyright years.
6141 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6142
8f285956
RH
61432003-06-01 Richard Henderson <rth@redhat.com>
6144
98a8e1e5
RH
6145 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6146 (alpha-linux-tdep.o): Update dependencies.
6147 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6148 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6149
615967cb
RH
61502003-06-01 Richard Henderson <rth@redhat.com>
6151
98a8e1e5
RH
6152 * alpha-tdep.c (alpha_register_reggroup_p): New.
6153 (alpha_gdbarch_init): Register it.
615967cb 6154
b59661bd
AC
61552003-06-02 Andrew Cagney <cagney@redhat.com>
6156
6157 * dwarfread.c: Eliminate "register"
6158 (decode_die_type): Eliminate assignment within "if".
6159 (struct_type, decode_array_element_type): Ditto.
6160 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6161 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6162 (decode_modified_type, completedieinfo): Ditto.
6163 * block.c: Eliminate "register".
6164 (blockvector_for_pc_sect): Eliminate assignment within "if".
6165 * cp-support.h (struct symbol): Opaque declaration.
6166 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6167
5ef165c2
RH
61682003-06-01 Richard Henderson <rth@redhat.com>
6169
98a8e1e5
RH
6170 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6171 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6172
143985b7
AF
61732003-06-01 Adam Fedor <fedor@gnu.org>
6174
6175 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6176 * gdbarch.[ch]: Regenerate.
6177 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6178 (hppa_gdbarch_init): Set it in the gdbarch vector.
6179 * i386-tdep.c (i386_fetch_pointer_argument): New
6180 (i386_gdbarch_init): Set it into gdbarch.
6181 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6182 (rs6000_gdbarch_init): Set it in gdbarch.
6183 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6184 (sparc_gdbarch_init): Set it in gdbarch.
6185
ae0167b9
AC
61862003-06-01 Andrew Cagney <cagney@redhat.com>
6187
7c0b4a20
AC
6188 * defs.h (extract_address): Delete declaration.
6189 * findvar.c (extract_address): Delete function.
6190 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6191 extract_address with the inline equivalent,
6192 extract_unsigned_integer.
6193 (xstormy16_extract_struct_value_address): Ditto.
6194 (xstormy16_pointer_to_address): Ditto.
6195 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6196 * v850-tdep.c (v850_push_arguments): Ditto.
6197 (v850_extract_return_value): Ditto.
6198 (v850_extract_struct_value_address): Ditto.
6199 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6200 (sparcnbsd_get_longjmp_target_64): Ditto.
6201 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6202 (get_longjmp_target): Ditto.
6203 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6204 (sh64_extract_struct_value_address): Ditto.
6205 (sh_push_arguments): Ditto.
6206 (sh64_push_arguments): Ditto.
6207 * remote-vxsparc.c (vx_read_register): Ditto.
6208 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6209 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6210 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6211 * mipsv4-nat.c (get_longjmp_target): Ditto.
6212 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6213 * mips-nat.c (get_longjmp_target): Ditto.
6214 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6215 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6216 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6217 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6218 * irix5-nat.c (get_longjmp_target): Ditto.
6219 * irix4-nat.c (get_longjmp_target): Ditto.
6220 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6221 (ia64_push_arguments): Ditto.
6222 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6223 * h8300-tdep.c (h8300_push_arguments): Ditto.
6224 (h8300_store_return_value): Ditto.
6225 (h8300_extract_struct_value_address): Ditto.
6226 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6227 (frv_push_arguments): Ditto.
6228 * avr-tdep.c (avr_pointer_to_address): Ditto.
6229 (avr_push_arguments): Ditto.
6230 * arm-tdep.c (arm_push_dummy_call): Ditto.
6231 (arm_get_longjmp_target): Ditto.
6232 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6233 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6234 (alpha_get_longjmp_target): Ditto.
6235
ae0167b9
AC
6236 * solib-irix.c (extract_mips_address): Inline extract_address,
6237 replacing it with extract_signed_integer.
6238 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6239 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6240 (first_link_map_member, open_symbol_file_object): Ditto.
6241 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6242 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6243 (LM_NEXT, LM_NAME): Ditto.
6244
44d88583
RH
62452003-06-01 Richard Henderson <rth@redhat.com>
6246
98a8e1e5
RH
6247 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6248 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6249 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6250 (alpha_cannot_store_register): Likewise.
6251 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6252 * alpha-nat.c (supply_gregset): Likewise.
6253 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6254
310e9b6a
AC
62552003-06-01 Andrew Cagney <cagney@redhat.com>
6256
6257 * infcall.c (call_function_by_hand): Update comment on
6258 DEPRECATED_DUMMY_WRITE_SP.
6259
6260 * mips-tdep.c (mips_gdbarch_init): Do not set
6261 deprecated_dummy_write_sp.
6262 (mips_eabi_push_dummy_call): Set the SP register.
6263 (mips_o64_push_dummy_call): Set the SP register.
6264 (mips_o32_push_dummy_call): Set the SP register.
6265 (mips_n32n64_push_dummy_call): Set the SP register.
6266
5ab84872
RH
62672003-06-01 Richard Henderson <rth@redhat.com>
6268
98a8e1e5
RH
6269 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6270 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6271 (supply_gregset): Likewise.
6272 * alpha-tdep.c (alpha_store_return_value): Likewise.
6273 (alpha_get_longjmp_target): Likewise.
6274 (alpha_register_name): Constify array.
6275 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6276 deprecated_register_size, deprecated_register_bytes,
6277 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6278 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6279 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6280
09cc52fd
RH
62812003-06-01 Richard Henderson <rth@redhat.com>
6282
6283 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6284 from arg_reg_buffer to regcache to avoid double conversion.
6285
c7f16359
MK
62862003-06-01 Mark Kettenis <kettenis@gnu.org>
6287
6288 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6289 SP_REGNUM.
6290 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6291 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6292
7131cb6e
RH
62932003-06-01 Richard Henderson <rth@redhat.com>
6294
98a8e1e5
RH
6295 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6296 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6297
f3e0f90b
RH
62982003-06-01 Richard Henderson <rth@redhat.com>
6299
98a8e1e5
RH
6300 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6301 not overlapping PC_REGNUM.
f3e0f90b 6302
c88e30c0
RH
63032003-06-01 Richard Henderson <rth@redhat.com>
6304
98a8e1e5
RH
6305 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6306 alpha_push_arguments. Don't dump argument register data to
6307 the target stack. Fix float and 128-bit long double semantics.
6308 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6309 (alpha_fix_call_dummy): Remove.
6310 (alpha_call_dummy_words): Remove.
6311 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6312
f1a559ae
RH
63132003-06-01 Richard Henderson <rth@redhat.com>
6314
6315 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6316
5e045346
AC
63172003-06-01 Andrew Cagney <cagney@redhat.com>
6318
95404a3e
AC
6319 * mips-tdep.c (is_mips16_addr): New function.
6320 (make_mips16_addr, unmake_mips16_addr): New functions.
6321 (pc_is_mips16, mips_fetch_instruction): Use.
6322 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6323 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6324 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6325 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6326 TARGET_MIPS.
6327 * config/mips/tm-mips.h: Update copyright.
6328 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6329 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6330 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6331 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6332 (TM_PRINT_INSN_MACH): Delete.
6333 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6334
5e045346
AC
6335 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6336 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6337 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6338 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6339 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6340 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6341 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6342 mips*-*-riscos* and mips*-*-sysv* onto mips.
6343 * config/mips/mips64.mt: New file.
6344 * config/mips/mips.mt: New file.
6345 * config/mips/littlemips.mt: Delete file.
6346 * config/mips/decstation.mt: Delete file.
6347 * config/mips/vr4300el.mt: Delete file.
6348 * config/mips/vr5000el.mt: Delete file.
6349 * config/mips/vr5000.mt: Delete file.
6350 * config/mips/vr4100.mt: Delete file.
6351 * config/mips/vr4xxxel.mt: Delete file.
6352 * config/mips/vr4300.mt: Delete file.
6353 * config/mips/vr4xxx.mt: Delete file.
6354 * config/mips/bigmips.mt: Delete file.
6355 * config/mips/bigmips64.mt: Delete file.
6356 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6357 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6358 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6359 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6360 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6361 "tm-bigmips.h".
6362 * config/mips/tm-irix3.h: Ditto.
6363 * config/mips/tm-mipsv4.h: Ditto.
6364 * config/mips/tm-embed.h: Ditto.
6365 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6366 "tm-bigmips64.h".
6367 * config/mips/tm-vr5000el.h: Delete file.
6368 * config/mips/tm-tx39l.h: Delete file.
6369 * config/mips/tm-vr4300el.h: Delete file.
6370 * config/mips/tm-vr4xxxel.h: Delete file.
6371 * config/mips/tm-vr4300.h: Delete file.
6372 * config/mips/tm-vr4100.h: Delete file.
6373 * config/mips/tm-vr4xxx.h: Delete file.
6374 * config/mips/tm-vr5000.h: Delete file.
6375 * config/mips/tm-embedl64.h: Delete file.
6376 * config/mips/tm-embedl.h: Delete file.
6377 * config/mips/tm-embed64.h: Delete file.
6378 * config/mips/tm-bigmips64.h: Delete file.
6379 * config/mips/tm-bigmips.h: Delete file.
6380
2473a4a9
MK
63812003-06-01 Mark Kettenis <kettenis@gnu.org>
6382
97a5b208
MK
6383 Fix gdb/1216.
6384 * shnbsd-nat.c: Include "sh-tdep.h".
6385
2473a4a9
MK
6386 From Richard Henderson <rth@redhat.com>:
6387 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6388
e0f7ec59
AC
63892003-05-31 Andrew Cagney <cagney@redhat.com>
6390
6391 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6392 forward declaration.
6393 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6394 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6395 (mips_find_saved_regs): Use set_reg_offset.
6396 (mips_frame_init_saved_regs): Delete function.
6397 (mips_pop_frame): Call mips_find_saved_regs instead of
6398 DEPRECATED_FRAME_INIT_SAVED_REGS.
6399
68dcc709
AC
64002003-05-31 Andrew Cagney <cagney@redhat.com>
6401
6402 * mips-tdep.c (mips_gdbarch_init): Do not set
6403 deprecated_max_register_raw_size, register_virtual_size, and
6404 deprecated_max_register_virtual_size.
6405
cfc14b3a
MK
64062003-05-31 Mark Kettenis <kettenis@gnu.org>
6407
6405b0a6
MK
6408 * i386-tdep.c: Include "dwarf2-frame.h".
6409 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6410 * Makefile.in (i386-tdep.o): Update dependencies.
6411
cfc14b3a
MK
6412 * dwarf2-frame.c, dwarf2-frame.h: New files.
6413 * Makefile.in (SFILES): Add dwarf2-frame.c.
6414 (dwarf2_frame_h): Define.
6415 (COMMON_OBS): Add dwarf2-frame.o.
6416 (dwarf2-frame.o): Add dependencies.
6417
6a2751d2
AJ
64182003-05-31 Andreas Jaeger <aj@suse.de>
6419
6420 * x86-64-linux-nat.c: Fix comment.
6421
1c3545ae
MK
64222003-05-31 Mark Kettenis <kettenis@gnu.org>
6423
10f93086
MK
6424 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6425 function signature.
6426
1c3545ae
MK
6427 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6428 have a sigcontext_addr handler.
6429 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6430 sigcontext_addr handler.
6431
e11c53d2
AC
64322003-05-31 Andrew Cagney <cagney@redhat.com>
6433
6434 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6435 (print_fp_register_row): Replace do_fp_register_row.
6436 (mips_print_fp_register): Add "file" and "frame" parameters.
6437 (mips_print_register): Add "file" and "frame" parameters.
6438 (mips_print_registers_info): Replace mips_do_registers_info.
6439 (mips_gdbarch_init): Set print_registers_info instead of
6440 deprecated_do_registers_info.
6441 (mips_read_fp_register_single): Add "frame" parameter.
6442 (mips_read_fp_register_double): Add "frame" parameter.
6443
a3386186
MK
64442003-05-31 Mark Kettenis <kettenis@gnu.org>
6445
70913449
MK
6446 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6447 Fixes a bug where GDB would print the wrong register names for
6448 targets without SSE.
6449
2b5e0749
MK
6450 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6451 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6452 registers.
6453
6454 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6455 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6456 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6457 TDEP->sc_sp_offset.
6458
a3386186
MK
6459 From Michal Ludvig <mludvig@suse.cz>:
6460 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6461 and `sc_num_regs'.
6462 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6463 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6464 I386_ST0_REGNUM): Move here from...
6465 * i386-tdep.c: ... here.
6466 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6467 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6468 registers if possible.
6469 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6470 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6471 Remove variables.
6472 (i386bsd_sc_reg_offset): New variable.
6473 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6474 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6475 TDEP->sc_sp_offset.
6476 (i386fbsd_sc_reg_offset): New variable.
6477 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6478 TDEP->sc_num_regs.
6479 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6480 variables.
6481 (i386fbsd4_sc_reg_offset): New variable.
6482 (i3864bsd4_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 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6486 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6487 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6488 Remove variables.
6489 (i386nbsd_sc_reg_offset): New variable.
6490 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6491 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6492 TDEP->sc_sp_offset.
6493 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6494 Remove variables.
6495 (i386obsd_sc_reg_offset): New variable.
6496 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6497 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6498 TDEP->sc_sp_offset.
6499 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6500 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6501 for frame pointer offset in `struct sigcontext'.
6502
25ab4790
AC
65032003-05-31 Andrew Cagney <cagney@redhat.com>
6504
6505 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6506 architecture methods call_dummy_words, sizeof_call_dummy_words,
6507 push_return_address, store_struct_return, and fix_call_dummy. Set
6508 push_dummy_call instead of deprecated_push_arguments.
6509 (mips_store_struct_return): Delete function.
6510 (mips_fix_call_dummy): Delete function.
6511 (mips_push_return_address): Delete function.
6512 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6513 RA_REGNUM and T9_REGNUM.
6514 (mips_n32n64_push_dummy_call): Ditto for
6515 mips_n32n64_push_arguments.
6516 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6517 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6518
6a65450a
AC
65192003-05-31 Andrew Cagney <cagney@redhat.com>
6520
6521 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6522 "dummy_addr" to "bp_addr".
6523 * infcall.c (call_function_by_hand): Pass "funaddr" to
6524 gdbarch_push_dummy_call.
6525 * gdbarch.h, gdbarch.c: Re-generate.
6526 * i386-tdep.c (i386_push_dummy_call): Update.
6527 * arm-tdep.c (arm_push_dummy_call): Update.
6528 * d10v-tdep.c (d10v_push_dummy_call): Update.
6529
c4f35dd8
MK
65302003-05-31 Mark Kettenis <kettenis@gnu.org>
6531
6532 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6533 variable declarations.
6534 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6535 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6536 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6537 x86_64_init_frame_pc, x86_64_init_frame_pc,
6538 x86_64_function_has_prologue): Remove prototypes.
6539 (X86_64_NUM_GREGS): New define.
6540 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6541 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6542 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6543 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6544 XMM1_REGNUM): Remove defines.
6545 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6546 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6547 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6548 X86_64_XMM1_REGNUM): New defines.
6549 (struct x86_64_register_info): Renamed from `struct
6550 register_info'. Remove `size' member.
6551 (x86_64_register_info_table): Remove variable.
6552 (x86_64_register_info): New variable.
6553 (X86_64_NUM_REGS): New define.
6554 (X86_64_NUM_GREGS): Remove define.
6555 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6556 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6557 Remove variables.
6558 (x86_54_dwarf2_reg_to_regnum): Remove function.
6559 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6560 (x86_64_dwarf_reg_to_regnum): New function.
6561 (x86_64_register_name): Rewrite.
6562 (x86_64_register_raw_size): Remove function.
6563 (x86_64_register_byte_table): Remove variable.
6564 (x86_64_register_byte): Remove function.
6565 (x86_64_register_virtual_type): Remove function.
6566 (x86_64_register_type): New function.
6567 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6568 x86_64_register_convert_to_raw): Remove functions.
6569 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6570 (x86_64_use_struct_convention): Make static. Adjust for renamed
6571 defines.
6572 (x86_64_frame_init_saved_regs): Remove function.
6573 (x86_64_push_arguments): Make static. Change to accept a regcache
6574 as argument.
6575 (x86_64_store_return_value, x86_64_extract_return_value): Make
6576 static. Rewrite based on i386 counterparts.
6577 (x86_64_push_dummy_call): New function.
6578 (X86_64_NUM_SAVED_REGS): New define.
6579 (x86_64_register_number): Remove function.
6580 (x86_64_store_struct_return): Remove function.
6581 (x86_64_frameless_function_invocation,
6582 x86_64_function_has_prologue): Remove functions.
6583 (PROLOG_BUFSIZE): Remove define.
6584 (struct x86_64_frame_cache): New structure.
6585 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6586 x86_64_frame_cache, x86_64_frame_this_id,
6587 x86_64_frame_prev_register, x86_64_frame_p,
6588 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6589 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6590 functions.
6591 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6592 variables.
6593 (x86_64_skip_prologue): Rewrite in terms of
6594 x86_64_analyze_prologue.
6595 (x86_64_frame_base_address): New function.
6596 (x86_64_frame_base): New variable.
6597 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6598 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6599 set deprecated_fp_regnum, deprecated_register_size,
6600 deprecated_register_bytes, register_raw_size, register_byte,
6601 register_virtual_type, register_convertiable,
6602 register_convert_to_virtual, convert_to_raw,
6603 deprecated_get_saved_register, deprecated_target_read_fp,
6604 deprecated_push_arguments, deprecated_push_return_address,
6605 deprecated_pop_frame, deprecated_store_struct_return,
6606 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6607 frameless_function_invocation, deprecated_frame_saved_pc,
6608 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6609 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6610 deprecated_init_frame_pc and virtual_frame_pointer. Call
6611 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6612 and x86_64_frame_p. Call frame_base_set_default to register
6613 x86_64_frame_base.
6614 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6615 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6616 (_initialize_x86_64_tdep): Remove function.
6617 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6618 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6619 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6620 define.
6621 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6622 (x86_64_linux_sigcontext_addr): Rewrite.
6623 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6624 x86_64_linux_frame_saved_pc): Remove functions.
6625 (x86_64_linux_pc_in_sigtramp): Renamed from
6626 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6627 trampoline.
6628 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6629 Remove_functions.
6630 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6631 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6632 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6633 (x86_64_regmap): Rename to regmap.
6634 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6635 x86_64_num_gregs.
6636 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6637 x86_64_regmap.
6638 (x86_64_fxsave_offset): Remove function.
6639 (supply_fpregset): Simply call x86_64_supply_fxsave.
6640 (fill_fpregset): Simply call x86_64_fill_fxsave.
6641 (fetch_inferior_registers, store_inferior_registers): Avoid
6642 asignment in if-statement.
6643 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6644 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6645 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6646 (fetch_core_registers): Remove function.
6647 (linux_elf_core_fns): Remove.
6648 (offsetoff): Don't define.
6649 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6650 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6651 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6652 add core-regset.o.
6653 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6654 protection against multiple includes instead of NM_X86_64_h. Add
6655 various comments. Include "config/nm-linux.h". Don't include
6656 <signal.h>.
6657 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6658 GET_THREAD_SIGNALS): Remove defines.
6659 (x86_64_register_u_addr, kernel_u_size,
6660 lin_thread_get_thread_signals): Remove prototypes.
6661 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6662 [HAVE_LINK_H]: Don't include "solib.h".
6663 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6664 * config/i386/tm-x86-64linux.h: Fix comments.
6665 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6666 x86-64-tdep.o): Update dependencies.
6667
c25083af
AC
66682003-05-30 Andrew Cagney <cagney@redhat.com>
6669
c8f55a7b
AC
6670 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6671 Change parameter type to a "struct regcache *".
6672
c25083af
AC
6673 * gdbarch.sh: Regardless of the multi-arch level, always define
6674 the macro when not already defined.
6675 * gdbarch.h, gdbarch.c: Re-generate.
6676
fbe586ae
RH
66772003-05-30 Richard Henderson <rth@redhat.com>
6678
6679 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6680 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6681 (alpha_mdebug_frame_this_id): Likewise.
6682 (alpha_mdebug_frame_prev_register): Likewise.
6683 (alpha_mdebug_frame_base_address): Likewise.
6684 (alpha_mdebug_frame_locals_address): Likewise.
6685 (alpha_mdebug_frame_args_address): Likewise.
6686 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6687 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6688 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6689 loop increment.
6690 (alpha_heuristic_frame_this_id): Make static.
6691 (alpha_heuristic_frame_prev_register): Likewise.
6692 (alpha_heuristic_frame_base_address): Likewise.
6693 * alpha-tdep.h: Update.
6694
acd5c798
MK
66952003-05-30 Mark Kettenis <kettenis@gnu.org>
6696
6697 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6698 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6699 defenitions.
6700 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6701 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6702 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6703 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6704 I386_ST0_REGNUM): New defines.
6705 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6706 codestream_get): Remove define.
6707 (codestream_next_addr, condestream_addr, condestream_buf,
6708 codestream_off, codestream_cnt): Remove variables.
6709 (codestream_fill, codestream_seek, codestream_read): Remove
6710 functions.
6711 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6712 functionality.
6713 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6714 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6715 i386_frame_saved_pc, i386_saved_pc_after_call,
6716 i386_frame_num_args, i386_frame_init_saved_regs,
6717 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6718 i386_push_arguments): Remove functions.
6719 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6720 functionality. Use i386_analyze_prologue instead of
6721 i386_get_frame_setup.
6722 (I386_NUM_SAVED_REGS): New define.
6723 (struct i386_frame_cache): New structure.
6724 (i386_alloc_frame_cache, i386_analyze_struct_return,
6725 i386_skip_probe, i386_analyze_frame_setup,
6726 i386_analyze_register_saves, i386_analyze_prologue,
6727 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6728 i386_frame_prev_register, i386_sigtramp_frame_cache,
6729 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6730 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6731 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6732 New functions.
6733 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6734 New variables.
6735 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6736 I386_EAX_REGNUM and I386_EDX_REGNUM.
6737 (i386_extract_return_value, i386_store_return_value): Use
6738 I386_ST0_REGNUM where appropriate.
6739 (i386_extract_struct_value_address): Rewrite to use extract_address.
6740 (i386_svr4_pc_in_sigtramp): Add comment.
6741 (i386_svr4_sigcontext_addr): Rewrite.
6742 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6743 TDEP->sc_sp_offset.
6744 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6745 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6746 of new defines. Set push_dummy_call, don't set
6747 deprecated_push_arguments, deprecated_push_return_address,
6748 deprecated_pop_frame. Don't set parm_boundary. Don't set
6749 deprecated_frame_chain, deprecated_frame_saved_pc,
6750 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6751 save_dummy_frame_tos, unwind_pc. Call
6752 frame_unwind_append_predicate and frame_base_set_default. Don't
6753 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6754 Don't set frameless_function_invocation. Don't set
6755 deprecated_register_bytes, deprecated_register_size,
6756 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6757 * i386-linux-tdep.c: Fix formatting in some comments.
6758 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6759 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6760 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6761 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6762 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6763 redundant parentheses.
6764 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6765 (i386_linux_sigcontext_addr): Use it. Rewrite.
6766 (find_minsym_and_objfile): Change name of second argument.
6767 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6768 changed. Use frame_pc_unwind instead of
6769 DEPRECATED_SAVED_PC_AFTER_CALL.
6770 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6771 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6772 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6773 unwinder.
6774 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6775 "dummy-frame.h".
6776 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6777 (_initialize_i386_cygwin_tdep): New prototype.
6778 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6779 deprecated_frame_chain_valid.
6780 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6781 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6782 Rely on the SVR4 defaults.
6783 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6784 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6785
c89b70f1
AC
67862003-05-30 Andrew Cagney <cagney@redhat.com>
6787
6788 * infcall.c (call_function_by_hand): Always call
6789 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6790
85b32d22
RH
67912003-05-30 Richard Henderson <rth@redhat.com>
6792
c89b70f1
AC
6793 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6794 increment.
85b32d22 6795
bfe51b1e
JB
67962003-05-29 Jim Blandy <jimb@redhat.com>
6797
6798 Use gdbarch methods for solib stuff on PowerPC Linux.
6799 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6800 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6801 show through.
6802 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6803 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6804 giving the same effect as the #definitions above.
6805
1abf022c
AF
68062003-05-29 Adam Fedor <fedor@gnu.org>
6807
6808 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6809 (find_implementation_from_class): Replace it with the standard
6810 case i.e. do nothing.
6811
d2427a71
RH
68122003-05-29 Richard Henderson <rth@redhat.com>
6813
6814 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6815 (alpha_linux_sigtramp_offset): Use it. Make static.
6816 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6817 update for new frame model.
6818 * alpha-mdebug-tdep.c: New file.
6819 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6820 (alpha_osf1_init_abi): Install it.
6821 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6822 (linked_proc_desc_table): Remove.
6823 (alpha_frame_past_sigtramp_frame): Remove.
6824 (alpha_dynamic_sigtramp_offset): Remove.
6825 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6826 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6827 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6828 (push_sigtramp_desc): Remove.
6829 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6830 (alpha_cannot_store_register): Likewise.
6831 (alpha_sigcontext_addr): Remove.
6832 (alpha_find_saved_regs): Remove.
6833 (alpha_frame_init_saved_regs): Remove.
6834 (alpha_init_frame_pc_first): Remove.
6835 (read_next_frame_reg): Remove.
6836 (alpha_frame_saved_pc): Remove.
6837 (alpha_saved_pc_after_call): Remove.
6838 (temp_proc_desc, temp_saved_regs): Remove.
6839 (alpha_about_to_return): Remove.
6840 (cached_proc_desc): Remove.
6841 (alpha_frame_chain): Remove.
6842 (alpha_print_extra_frame_info): Remove.
6843 (alpha_init_extra_frame_info): Remove.
6844 (alpha_frame_locals_address): Remove.
6845 (alpha_frame_args_address): Remove.
6846 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6847 (alpha_push_dummy_frame): Remove.
6848 (alpha_pop_frame): Remove.
6849 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6850 (alpha_read_insn): New.
6851 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6852 for different insn encodings.
6853 (alpha_in_lenient_prologue): Remove.
6854 (struct alpha_sigtramp_unwind_cache): New.
6855 (alpha_sigtramp_frame_unwind_cache): New.
6856 (alpha_sigtramp_register_address): New.
6857 (alpha_sigtramp_frame_this_id): New.
6858 (alpha_sigtramp_frame_prev_register): New.
6859 (alpha_sigtramp_frame_unwind): New.
6860 (alpha_sigtramp_frame_p): New.
6861 (struct alpha_heuristic_unwind_cache): New.
6862 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6863 don't count nop insns that occur between functions.
6864 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6865 heuristic_proc_desc, but without the mdebug wrapping.
6866 (alpha_heuristic_frame_this_id): New.
6867 (alpha_heuristic_frame_prev_register): New.
6868 (alpha_heuristic_frame_unwind): New.
6869 (alpha_heuristic_frame_p): New.
6870 (alpha_heuristic_frame_base_address): New.
6871 (alpha_heuristic_frame_base): New.
6872 (alpha_unwind_dummy_id): New.
6873 (alpha_unwind_pc): New.
6874 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6875 frame related deprecated initializations; install replacements.
6876 (alpha_dump_tdep): Remove.
6877 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6878 (alpha_read_insn, alpha_after_prologue,
6879 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6880 alpha_heuristic_frame_prev_register,
6881 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6882 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6883 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6884 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6885
93ec1121
AC
68862003-05-29 Andrew Cagney <cagney@redhat.com>
6887
6888 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6889 dependant on the availability of ASSERT_FUNCTION.
6890 (ASSERT_FUNCTION): Do not define when there is no function name.
6891
98f08d3d
KB
68922003-05-29 Kevin Buettner <kevinb@redhat.com>
6893
6894 From Jimi X <jimix@watson.ibm.com>:
6895 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6896
0897f59b
JB
68972003-05-28 Jim Blandy <jimb@redhat.com>
6898
6899 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6900 argument to ptrace to int; the system headers should give it the
6901 right type, and pointers don't fit in ints on powerpc64-*-*.
6902
14898363
L
69032003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6904
6905 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6906 DW_TAG_catch_block.
6907
a7a48797
EZ
69082003-05-26 Elena Zannoni <ezannoni@redhat.com>
6909
6910 * stabsread.c (dbx_lookup_type): Make static.
6911 (read_type): Ditto.
6912 (add_undefined_type): Ditto.
6913 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6914 not export.
6915
f5479e9c
EZ
69162003-05-26 Elena Zannoni <ezannoni@redhat.com>
6917
6918 * hpread.c (hpread_has_name): Make static.
6919 (hpread_psymtab_to_symtab): Ditto.
6920 (file_exists): Ditto.
6921 (hpread_call_pxdb): Ditto.
6922 (hpread_pxdb_needed): Ditto.
6923 (hpread_quick_traverse): Ditto.
6924 (hpread_get_header): Ditto.
6925 (hpread_get_lntt): Ditto.
6926 (hpread_get_slt): Ditto.
6927 (class_of): Ditto.
6928
eb2e12d7
AS
69292003-05-25 Andreas Schwab <schwab@suse.de>
6930
78bf922a
AS
6931 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6932 stack_align and deprecated_extra_stack_alignment_needed.
6933 (m68k_stack_align): Delete.
6934
eb2e12d7
AS
6935 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6936 (m68k_register_virtual_size): Likewise.
6937 (altos_skip_prologue): Remove obsolete function.
6938 (isi_frame_num_args): Likewise.
6939 (news_frame_num_args): Likewise.
6940 (m68k_fix_call_dummy): Make static.
6941 (m68k_push_dummy_frame): Likewise.
6942 (m68k_pop_frame): Likewise.
6943 (m68k_skip_prologue): Likewise.
6944 (m68k_frame_init_saved_regs): Likewise.
6945 (m68k_saved_pc_after_call): Likewise.
6946 (m68k_get_longjmp_target): Make multi-arch.
6947 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6948 structure. Register m68k_get_longjmp_target if enabled.
6949 * m68k-tdep.h (struct gdbarch_tdep): Define.
6950 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6951
6952 * Makefile.in (config.status): Also depend on configure.tgt
6953 and configure.host.
6954 (m68klinux-tdep.o): Update dependencies.
6955 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6956 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6957 (M68K_LINUX_JB_PC): Define.
6958 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6959 and take additional parameter.
6960 (m68k_linux_sigtramp_saved_pc): Update.
6961 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6962 m68k_linux_pc_in_sigtramp, in_plt_section,
6963 find_solib_trampoline_target.
6964 * config/m68k/tm-linux.h: Don't include any tm headers.
6965 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6966 (JB_ELEMENT_SIZE): Likewise.
6967 (JB_PC): Likewise.
6968 (GET_LONGJMP_TARGET): Likewise.
6969 (IN_SIGTRAMP): Likewise.
6970 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6971
eb2c22dc
MK
69722003-05-25 Mark Kettenis <kettenis@gnu.org>
6973
6974 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6975 (sparc32_push_arguments): Re-implement by calling
6976 sparc32_do_push_arguments.
6977
44b7b84e
MK
69782003-05-25 Mark Kettenis <kettenis@gnu.org>
6979
6980 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6981 SPARC_O1_REGNUM): New defines.
6982 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6983 (sparc32_store_return_value): New function.
6984 (sparc_extract_struct_value_address): Rewrite to operate on a
6985 regcache.
6986 (sparc_gdbarch_init): Don't set
6987 deprecated_extract_struct_value_address. Set
6988 extract_struct_value_address instead. Don't set
6989 deprecated_extract_return_value and deprecated_store_return_value
6990 for 32-bit targets. Set extract_return_value and
6991 store_return_value instead.
6992 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6993 DEPRECTAED_EXTRACT_RETURN_VALUE,
6994 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6995 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6996 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6997 (sparc_store_return_value): Remove prototype.
6998 (sparc32_store_return_value): New prototype.
6999 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7000 Adjust prototypes.
7001
f6ad61e3
MK
70022003-05-24 Mark Kettenis <kettenis@gnu.org>
7003
7004 * sparcnbsd-tdep.c: Include "gdb_string.h".
7005
b276f1bb
AC
70062003-05-23 Andrew Cagney <cagney@redhat.com>
7007
7008 * p-valprint.c (pascal_val_print): Replace extract_address with
7009 the inline equivalent extract_unsigned_integer.
7010 * jv-valprint.c (java_value_print): Ditto.
7011 * ada-valprint.c (ada_val_print_1): Ditto.
7012 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7013
e76c5fcc
TR
70142003-05-23 Theodore A. Roth <troth@openavr.org>
7015
7016 * blockframe.c (frameless_look_for_prologue): Remove unused
7017 after_prologue variable.
7018
2cdd89cb
MK
70192003-05-23 Mark Kettenis <kettenis@gnu.org>
7020
7021 * blockframe.c (get_pc_function_start): Rewrite to avoid
7022 asignments in if-statements.
7023
182d43bc
EZ
70242003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7025
7026 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7027 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7028 files, don't relocate absolute symbols (and do use mst_abs).
7029
e8f3fcdd
AC
70302003-05-23 Andrew Cagney <cagney@redhat.com>
7031
7032 * objc-lang.c: Include "gdb_assert.h".
7033 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7034 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7035 (gdb_check, gdb_check_fatal): Delete functions.
7036 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7037 gdb_assert.
7038 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7039 * Makefile.in (objc-lang.o): Update dependencies.
7040
3c23e6fb
ILT
70412003-05-22 Ian Lance Taylor <ian@airs.com>
7042
7043 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7044 with fprintf_filtered, not fprintf_unfiltered.
7045
af1342ab
AC
70462003-05-22 Andrew Cagney <cagney@redhat.com>
7047
7048 * stack.c (frame_info): Inline extract_address, replacing it with
7049 extract_unsigned_integer.
7050 * findvar.c (unsigned_pointer_to_address): Ditto.
7051 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7052 * dwarf2expr.c (dwarf2_read_address): Ditto.
7053 * frame.c (frame_pc_unwind): Update comment.
7054 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7055
47e242ec
JJ
70562003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7057
7058 * infptrace.c (detach): Call print_sys_errmsg rather than
7059 perror_with_name to issue warning message when errno is non-zero
7060 after calling ptrace detach.
7061
e2ac8128
JB
70622003-05-21 J. Brobecker <brobecker@gnat.com>
7063
7064 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7065 macro definitions from here...
7066 * hppa-tdep.c: ...to there.
7067
92b3541e
KB
70682003-05-20 Kevin Buettner <kevinb@redhat.com>
7069
7070 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7071 register_ptrace_addr(). Fix all callers.
7072
55809acb
AS
70732003-05-21 Andreas Schwab <schwab@suse.de>
7074
7075 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7076 dependencies.
7077 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7078 end.
7079 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7080 (_initialize_m68k_linux_tdep): New function.
7081 (m68k_linux_frame_saved_pc): Make static.
7082 (m68k_linux_extract_return_value): Likewise.
7083 (m68k_linux_store_return_value): Likewise.
7084 (m68k_linux_extract_struct_value_address): Likewise.
7085 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7086 Remove.
7087 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7088 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7089 (DEPRECATED_FRAME_SAVED_PC): Remove.
7090
0fbc10f7
KW
70912003-05-20 Kris Warkentin <kewarken@qnx.com>
7092
7093 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7094 regset numbering rather than our own.
7095
58da2eb2
DC
70962003-05-19 David Carlton <carlton@bactrian.org>
7097
7098 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7099
1fcb5155
DC
71002003-05-19 David Carlton <carlton@bactrian.org>
7101
7102 Partial fix for PR c++/827.
7103 * cp-support.h: Include symtab.h.
7104 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7105 * cp-namespace.c: Update contributors.
7106 (cp_lookup_symbol_nonlocal): New.
7107 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7108 (lookup_symbol_file): Ditto.
7109 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7110 * block.h: Declare block_scope, block_using, block_global_block.
7111 * block.c (block_scope): New.
7112 (block_using, block_global_block): Ditto.
7113 * Makefile.in (cp_support_h): Depend on symtab_h.
7114 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7115
5f9a71c3
DC
71162003-05-19 David Carlton <carlton@bactrian.org>
7117
7118 * language.h (struct language_defn): Add 'la_value_of_this'
7119 and 'la_lookup_symbol_nonlocal' members.
7120 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7121 lookup_symbol_static, lookup_symbol_global,
7122 lookup_symbol_aux_block.
7123 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7124 if we should search fields of this and how to do static/global
7125 lookup.
7126 (lookup_symbol_aux_block): Make extern.
7127 (basic_lookup_symbol_nonlocal): New.
7128 (lookup_symbol_static, lookup_symbol_global): Ditto.
7129 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7130 'la_lookup_symbol_nonlocal' members.
7131 * c-lang.c (c_language_defn, cplus_language_defn)
7132 (asm_language_defn, minimal_language_defn): Ditto.
7133 * jv-lang.c (java_language_defn): Ditto.
7134 * language.c (unknown_language_defn, auto_language_defn)
7135 (local_language_defn): Ditto.
7136 * m2-lang.c (m2_language_defn): Ditto.
7137 * objc-lang.c (objc_language_defn): Ditto.
7138 * scm-lang.c (scm_language_defn): Ditto.
7139 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7140 * p-lang.c (pascal_language_defn): Ditto for both.
7141 * Makefile.in (f-lang.o): Depend on value_h.
7142 (p-lang.o): Ditto.
7143
89a9d1b1
DC
71442003-05-19 David Carlton <carlton@bactrian.org>
7145
7146 * block.h: Declare block_static_block.
7147 * block.c (block_static_block): New.
7148 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7149 lookup_symbol_aux_local, calling block_static_block instead.
7150 (lookup_symbol_aux_local): Delete 'static_block' argument.
7151
eed3f8ab
DC
71522003-05-19 David Carlton <carlton@bactrian.org>
7153
7154 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7155
a09d8bda
ML
71562003-05-19 Michal Ludvig <mludvig@suse.cz>
7157
7158 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7159 register numbers mapping.
7160
69636828
AF
71612003-05-18 Adam Fedor <fedor@gnu.org>
7162
7163 * symtab.c (completion_list_objc_symbol): New function.
7164 (make_symbol_completion_list): Use it to add ObjC symbols
7165 when looking though the list.
7166 (language_search_unquoted_string): New function.
7167 (make_file_symbol_completion_list): Use it.
7168
55baeb84
AS
71692003-05-18 Andreas Schwab <schwab@suse.de>
7170
d0b45d99
AS
7171 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7172 dependencies.
7173 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7174 as m68k_linux_extract_return_value.
7175 (DEPRECATED_STORE_RETURN_VALUE): Define as
7176 m68k_linux_store_return_value.
7177 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7178 m68k_linux_extract_struct_value_address.
7179 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7180 get_next_frame, get_frame_base, get_frame_pc.
7181 (m68k_linux_frame_saved_pc): Use get_frame_base.
7182 (m68k_linux_extract_return_value): New function.
7183 (m68k_linux_store_return_value): New function.
7184 (m68k_linux_extract_struct_value_address): New function.
7185 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7186
55baeb84
AS
7187 * c-exp.y (typebase): Remove duplicate occurence of
7188 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7189 of lookup_signed_typename.
55baeb84 7190
b6b08ebf
MK
71912003-05-18 Mark Kettenis <kettenis@gnu.org>
7192
7193 * dwarf2loc.c (find_location_expression): Change type of second
7194 argument to `size_t *'.
7195 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7196 for size variable.
7197
5ad1c190
DC
71982003-05-18 David Carlton <carlton@bactrian.org>
7199
7200 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7201 'linkage_name'. Add comment.
7202 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7203 'linkage_name'.
7204 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7205 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7206 (lookup_block_symbol): Ditto.
7207
b8b527c5
AC
72082003-05-16 Andrew Cagney <cagney@redhat.com>
7209
7210 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7211 * gdbarch.h, gdbarch.c: Re-generate.
7212 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7213 * TODO (REGISTER_BYTES): Delete reference.
7214 * alpha-tdep.c (alpha_gdbarch_init): Update.
7215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7216 * x86-64-tdep.c (x86_64_init_abi): Update.
7217 * vax-tdep.c (vax_gdbarch_init): Update.
7218 * v850-tdep.c (v850_gdbarch_init): Update.
7219 * sparc-tdep.c (sparc_gdbarch_init): Update.
7220 * sh-tdep.c (sh_gdbarch_init): Update.
7221 * s390-tdep.c (s390_gdbarch_init): Update.
7222 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7223 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7224 (ns32k_gdbarch_init_32382): Update.
7225 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7226 * mcore-tdep.c (mcore_gdbarch_init): Update.
7227 * m68k-tdep.c (m68k_gdbarch_init): Update.
7228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7229 * ia64-tdep.c (ia64_gdbarch_init): Update.
7230 * i386-tdep.c (i386_gdbarch_init): Update.
7231 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7232 * hppa-tdep.c (hppa_gdbarch_init): Update.
7233 * h8300-tdep.c (h8300_gdbarch_init): Update.
7234 * frv-tdep.c (frv_gdbarch_init): Update.
7235 * cris-tdep.c (cris_gdbarch_init): Update.
7236 * avr-tdep.c (avr_gdbarch_init): Update.
7237 * arm-tdep.c (arm_gdbarch_init): Update.
7238 * sparc-tdep.c (sparc_pop_frame): Update.
7239 * rs6000-tdep.c (rs6000_pop_frame): Update.
7240 * remote.c (init_remote_state): Update.
7241 (remote_prepare_to_store): Update.
7242 * remote-vx.c (vx_prepare_to_store): Update.
7243 * remote-sds.c (sds_fetch_registers): Update.
7244 (sds_prepare_to_store): Update.
7245 * remote-array.c: Update.
7246 * regcache.c (init_legacy_regcache_descr): Update.
7247 (init_regcache_descr): Update.
7248 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7249 (mips_o64_extract_return_value): Update.
7250 * irix5-nat.c (fetch_core_registers): Update.
7251 * irix4-nat.c (fetch_core_registers): Update.
7252 * i386-tdep.h: Update.
7253 * hppa-tdep.c (pa_do_registers_info): Update.
7254 (pa_do_strcat_registers_info): Update.
7255 * cris-tdep.c (cris_register_bytes_ok): Update.
7256 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7257 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7258 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7259 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7260 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7261 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7262 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7263 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7264 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7265 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7266 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7267 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7268 (REGISTER_BYTES_OK): Update.
7269 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7270 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7271
ee2842e2
ILT
72722003-05-16 Ian Lance Taylor <ian@airs.com>
7273
7274 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7275 (vax_print_insn, print_insn_arg): Remove static functions.
7276 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7277 print_insn_vax from opcodes library.
7278 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7279
973177d3
AC
72802003-05-15 Andrew Cagney <cagney@redhat.com>
7281
aaab4dba
AC
7282 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7283 * target.h (memory_breakpoint_from_pc): Delete declaration.
7284 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7285 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7286 * monitor.c (monitor_insert_breakpoint): Use
7287 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7288 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7289 * gdbarch.h, gdbarch.c: Re-generate.
7290 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7291 (sparc_gdbarch_init): Set breakpoint_from_pc to
7292 sparc_breakpoint_from_pc.
7293 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7294 (BREAKPOINT_FROM_PC): Define.
7295 (sparc_breakpoint_from_pc): Declare.
7296 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7297 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7298 (BREAKPOINT_FROM_PC): Define.
7299 (BREAKPOINT): Delete macro.
7300 * target.h: Update comment.
7301 * s390-tdep.c (s390_gdbarch_init): Update comments.
7302 * remote.c: Update comments.
7303 * remote-mips.c: Update comments.
7304 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7305 * mem-break.c: Update comment.
7306 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7307 (ia64_memory_insert_breakpoint): Update.
7308 * config/sparc/tm-sparc.h: Update comment.
7309 * config/pa/tm-hppa64.h: Update comment.
7310 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7311 (rs6000_breakpoint_from_pc): Update.
7312 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7313 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7314 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7315 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7316 (mips_breakpoint_from_pc): Update.
7317 (mips_dump_tdep): Update.
7318
e06963ff
AC
7319 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7320 * minsyms.c (lookup_minimal_symbol): Inline
7321 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7322
973177d3
AC
7323 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7324 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7325 * p-lang.c (pascal_printstr): Ditto.
7326 * objc-lang.c (objc_printstr): Ditto.
7327 * m2-lang.c (m2_printstr): Ditto.
7328 * jv-valprint.c (java_print_value_fields): Ditto.
7329 * f-lang.c (f_printstr): Ditto.
7330 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7331 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7332 for repeat_count_threshold.
7333 * Makefile.in (cp-valprint.o): Update dependencies.
7334
5ea2bd7f 73352003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7336
5ea2bd7f
JJ
7337 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7338 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7339 they start with mov r2,r12. Support skipping over indirect stores
7340 of the input registers. Upon hitting a non-nop branch instruction
7341 or predicated instruction, bail out by setting lim_pc to the current
7342 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7343 beyond our calculated value and we have trust_limit set,
7344 use the lim_pc value.
7345
cc8c88f3
AC
73462003-05-15 Andrew Cagney <cagney@redhat.com>
7347
7348 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7349 generic_find_dummy_frame.
7350 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7351 (deprecated_generic_find_dummy_frame): Update.
7352 (deprecated_read_register_dummy): Update.
7353 * frame.c (deprecated_generic_get_saved_register): Update.
7354
909cd28e
TR
73552003-05-15 Theodore A. Roth <troth@openavr.org>
7356
7357 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7358 (avr_gdbarch_init): Set breakpoint_from_pc method.
7359
b923b08d
AC
73602003-05-15 Andrew Cagney <cagney@redhat.com>
7361
7362 * regcache.c (build_regcache): Set deprecated_register_valid
7363 directly.
7364 (deprecated_grub_regcache_for_register_valid): Delete function.
7365 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7366 declaration.
7367
ae2f03ac 73682003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7369
7370 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7371 * symtab.c (lookup_symbol_aux): Delete calls to
7372 lookup_symbol_aux_minsyms.
7373 (lookup_symbol_aux_minsyms): Comment out function and
7374 prototype. Delete lookup by mangled name.
ae2f03ac 7375
18ec9831
KB
73762003-05-14 Kevin Buettner <kevinb@redhat.com>
7377
7378 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7379 correctly indicate an empty stack and ``stack_allocated'' to the
7380 indicate the number of elements initially allocated.
7381 (dwarf_expr_grow_stack): Simplify method for computing new
7382 stack size. Don't loop infinitely if ``stack_len'' is zero.
7383 (execute_stack_op): Move ``ctx->in_reg'' initialization
7384 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7385 be used in conjuction with DW_OP_piece. Revise error message
7386 accordingly.
7387
de18ac1f
TR
73882003-05-14 Theodore A. Roth <troth@openavr.org>
7389
7390 * MAINTAINERS: Update my email address.
7391 * avr-tdep.c: Ditto.
7392
176620f1
EZ
73932003-05-14 Elena Zannoni <ezannoni@redhat.com>
7394
7395 * symtab.h (enum domain_enum): Rename from namespace_enum.
7396 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7397 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7398 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7399 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7400 TYPES_NAMESPACE, METHODS_NAMESPACE.
7401 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7402 (struct symbol, struct partial_symbol): Rename field
7403 'namespace_enum namespace' to 'domain_enum domain'.
7404 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7405 Delete old define kludge for namespace.
7406
7407 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7408 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7409 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7410 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7411 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7412 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7413 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7414 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7415 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7416 occurrences of the above.
7417
b7f31508
ILT
74182003-05-14 Ian Lance Taylor <ian@airs.com>
7419
7420 * Makefile.in (install-only): Use $(SHELL) when running
7421 mkinstalldirs.
7422
2fdbdd39
ILT
74232003-05-13 Ian Lance Taylor <ian@airs.com>
7424
a208d82c
ILT
7425 * MAINTAINERS (write after approval): Add myself.
7426
2fdbdd39
ILT
7427 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7428 second and third arguments.
7429 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7430 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7431
fbd9dcd3
AC
74322003-05-13 Andrew Cagney <cagney@redhat.com>
7433
7434 * defs.h (store_address): Delete declaration.
7435 findvar.c (store_address): Delete function.
7436 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7437 store_unsigned_integer.
7438 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7439 * v850-tdep.c (v850_push_arguments): Ditto.
7440 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7441 * sh-tdep.c (sh64_get_saved_register): Ditto.
7442 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7443 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7444 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7445 (mips_get_saved_register): Ditto.
7446 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7447 (find_func_descr, ia64_push_arguments): Ditto.
7448 * i386-tdep.c (i386_push_arguments): Ditto.
7449 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7450 * frv-tdep.c (frv_push_arguments): Ditto.
7451 * frame.c (legacy_saved_regs_prev_register): Ditto.
7452 (deprecated_generic_get_saved_register): Ditto.
7453 * findvar.c (unsigned_address_to_pointer): Ditto.
7454 * dwarf2read.c (dwarf2_const_value): Ditto.
7455 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7456 * alpha-tdep.c (alpha_push_arguments): Ditto.
7457
6760f9e6
JB
74582003-05-12 J. Brobecker <brobecker@gnat.com>
7459
7460 * NEWS: Mention that the hppa-hpux port has been partially
7461 multiarched (32bit ABIT only, so far).
7462
30e221b4
AC
74632003-05-11 Andrew Cagney <cagney@redhat.com>
7464
7465 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7466 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7467 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7468 sim/testsuite/sim/arm/misaligned2.ms, and
7469 sim/testsuite/sim/arm/misaligned3.ms.
7470 * disasm.h (struct ui_file): Add opaque struct declaration.
7471 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7472 * frame.h (struct ui_file): Ditto.
7473
dea7f9ba
MK
74742003-05-11 Mark Kettenis <kettenis@gnu.org>
7475
7476 * value.h: Pretty print.
7477
01986c48
MK
74782003-05-10 Mark Kettenis <kettenis@gnu.org>
7479
7480 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7481
123a958e
AC
74822003-05-08 Andrew Cagney <cagney@redhat.com>
7483
7484 * regcache.h (max_register_size): Delete declaration.
7485 * regcache.c (max_register_size): Delete function.
7486 (struct regcache_descr): Delete field "max_register_size".
7487 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7488 registers fit in MAX_REGISTER_SIZE.
7489 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7490 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7491 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7492 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7493 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7494 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7495 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7496 * dve3900-rom.c, hppa-tdep.c: Ditto.
7497
eb294659
DC
74982003-05-08 David Carlton <carlton@math.stanford.edu>
7499
7500 * valops.c (push_word): Fix typo.
7501
d9d9c31f
AC
75022003-05-08 Andrew Cagney <cagney@redhat.com>
7503
7504 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7505 * gdbarch.h: Re-generate.
7506 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7507 (legacy_max_register_raw_size): Delete declaration.
7508 * regcache.c (legacy_max_register_raw_size): Delete function.
7509 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7510 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7511 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7512 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7513 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7514 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7515 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7516 * findvar.c, dwarf2cfi.c: Ditto.
7517
22540ece
AC
75182003-05-08 Andrew Cagney <cagney@redhat.com>
7519
7520 * mips-tdep.c (read_signed_register): New function, moved to here
7521 from "regcache.c".
7522 (read_signed_register_pid): Ditto.
7523 * regcache.c (read_signed_register_pid): Delete function, moved to
7524 "mips-tdep.c".
7525 (read_signed_register): Ditto.
7526 * regcache.h (read_signed_register): Delete declaration.
7527 (read_signed_register_pid): Delete declaration.
7528
0c92afe8
AC
75292003-05-08 Andrew Cagney <cagney@redhat.com>
7530
7531 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7532 * gdbarch.h: Re-generate.
7533 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7534 (legacy_max_register_virtual_size): Delete declaration.
7535 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7536 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7537 * tracepoint.c (memrange_sortmerge): Ditto.
7538 * sparc-tdep.c (sparc_print_registers): Ditto.
7539 * regcache.c (legacy_max_register_virtual_size): Delete function.
7540
6037b830
JB
75412002-05-08 J. Brobecker <brobecker@gnat.com>
7542
7543 * fork-child.c (escape_bang_in_quoted_argument): New function.
7544 (fork_inferior): Escape '!' characters in quoted arguments
7545 only when needed.
7546
5d62c8b1
JB
75472003-05-08 J. Brobecker <brobecker@gnat.com>
7548
7549 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7550 the language of the CU is not currently supported by GDB.
7551
20a0e81d
JB
75522003-05-08 J. Brobecker <brobecker@gnat.com>
7553
7554 * defs.h (language): Add language_minimal enum value.
7555 * c-lang.c (minimal_language_defn): New language definition.
7556 (_initialize_c_language): Add the new minimal language to the list
7557 of languages known to GDB.
7558
710ee10a
KB
75592003-05-08 Kevin Buettner <kevinb@redhat.com>
7560
7561 * frame.c (get_frame_type): Don't attempt to lazily initialize
7562 frame's unwinder for legacy frames.
7563
1750fa04
AC
75642003-05-07 Andrew Cagney <cagney@redhat.com>
7565
7566 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7567 and "regcache" parameters.
7568 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7569
ddf9f258 75702003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7571
7572 * dwarf2read.c (dwarf_decode_lines): Only use output of
7573 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7574 the current address.
7575
87767c29
AC
75762003-05-07 Andrew Cagney <cagney@redhat.com>
7577
7578 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7579 code.
7580
5e7b2f39
JB
75812003-05-07 Jim Blandy <jimb@redhat.com>
7582
7583 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7584 'maint info symtabs' and 'maint info psymtabs'.
7585 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7586 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7587 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7588 Declarations updated.
7589 * maint.c (maintenance_list_command): Delete.
7590 (_initialize_maint_cmds): Update calls to add_cmd.
7591 * gdbcmd.h (maintenancelistlist): Delete declaration.
7592 * cli/cli-cmds.c (maintenancelistlist): Delete.
7593 (init_cmd_lists): Don't initialize it.
7594 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7595
f6684c31
AC
75962003-05-07 Andrew Cagney <cagney@redhat.com>
7597
7598 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7599 "regcache".
7600 (d10v_print_registers_info): Update.
7601 (d10v_dmap_register, d10v_imap_register): Delete functions.
7602 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7603 and "imap_register".
7604 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7605 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7606 * arch-utils.c (generic_remote_translate_xfer_address): Add
7607 "regcache" and "gdbarch" parameters.
7608 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7609 parameter. Change class to multi-arch.
7610 * gdbarch.h, gdbarch.c: Re-generate.
7611 * remote.c (remote_xfer_memory): Use
7612 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7613
e4846b08
JJ
76142003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7615
7616 * infrun.c (prev_pc): Move declaration ahead of proceed().
7617 (proceed): Refresh prev_pc value before resuming.
7618 (stop_stepping): Remove code to refresh prev_pc.
7619
6b71b8ac
KW
76202003-05-06 Kris Warkentin <kewarken@qnx.com>
7621
7622 * nto-tdep.c: Removed stray comment.
7623
47979a4b
KW
76242003-05-06 Kris Warkentin <kewarken@qnx.com>
7625
7626 * i386-nto-tdep.c: Fix old K&R function definitions.
7627 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7628 Also change add_show_from_set() call to add_setshow_cmd().
7629 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7630
00905d52
AC
76312003-05-05 Andrew Cagney <cagney@redhat.com>
7632
7633 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7634 (fprint_dummy_frames): New function.
7635 (maintenance_print_dummy_frames): New function.
7636 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7637 * frame.c (fprint_frame_id): Make global.
7638 * frame.h (fprint_frame_id): Declare.
7639 * Makefile.in (dummy-frame.o): Update dependencies.
7640
b1e29e33
AC
76412003-05-05 Andrew Cagney <cagney@redhat.com>
7642
7643 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7644 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7645 SIZEOF_CALL_DUMMY_WORDS.
7646 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7647 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7648 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7649 CALL_DUMMY_BREAKPOINT_OFFSET.
7650 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7651 CALL_DUMMY_START_OFFSET.
7652 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7653 * gdbarch.h, gdbarch.c: Re-generate.
7654 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7655 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7656 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7657 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7658 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7659 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7660 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7661 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7662 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7663 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7664 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7665 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7666 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7667 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7668 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7669
76702003-05-05 Kris Warkentin <kewarken@qnx.com>
7671
7672 * configure.tgt: Add i[3456]86-*-nto*.
7673 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7674 * nto-tdep.c: New file. Neutrino target support routines.
7675 * nto-tdep.h: New file. Neutrino target header.
7676 * config/tm-qnxnto.h: New file.
7677 * config/i386/i386nto.mt: New file.
7678 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7679
0ce3d317
AC
76802003-05-04 Andrew Cagney <cagney@redhat.com>
7681
7682 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7683 (load_infrun_state): Ditto.
7684 (struct thread_info): Drop "prev_func_name" field.
7685 * thread.c (load_infrun_state): Update.
7686 (save_infrun_state): Update.
7687 * infrun.c (prev_func_name): Delete variable.
7688 (init_wait_for_inferior): Do not clear prev_func_name.
7689 (stop_stepping, keep_going, context_switch): Do not swap
7690 prev_func_name.
7691 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7692 instead of PC_IN_SIGTRAMP.
7693
46654a5b
AC
76942003-05-04 Andrew Cagney <cagney@redhat.com>
7695
7696 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7697 REGISTER_BYTE with register_offset_hack.
7698 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7699 that REGISTER_BYTE is consistent with the regcache.
7700 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7701 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7702
14b08c1b
MK
77032003-05-04 Mark Kettenis <kettenis@gnu.org>
7704
04c8243f
MK
7705 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7706 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7707
14b08c1b
MK
7708 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7709
c7a11e01
JB
77102003-05-03 J. Brobecker <brobecker@gnat.com>
7711
7712 From Thierry Schneider <tpschneider1@yahoo.com>
7713 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7714 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7715 (mi-cmd-symbol.o): Add rule.
7716
7043d8dc
AC
77172003-05-03 Andrew Cagney <cagney@redhat.com>
7718
7719 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7720 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7721 * gdbarch.h, gdbarch.c: Re-generate.
7722 * d10v-tdep.c (d10v_push_dummy_code): New function.
7723 (d10v_gdbarch_init): Set push_dummy_code.
7724 * infcall.c (legacy_push_dummy_code): New function.
7725 (generic_push_dummy_code): New function.
7726 (push_dummy_code): New function.
7727 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7728 instead of dummy_addr, to push_dummy_call. Move call to
7729 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7730 switch.
7731 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7732
92bf2b80
AC
77332003-05-03 Andrew Cagney <cagney@redhat.com>
7734
7735 * disasm.h (print_insn): Declare.
7736 * disasm.c (init_gdb_disassemble_info): New function.
7737 (gdb_disassembly): Call init_gdb_disassemble_info.
7738 (gdb_print_insn): New function.
7739 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7740 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7741 * mcore-tdep.c: Include "disasm.h"
7742 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7743 * d10v-tdep.c: Include "disasm.h".
7744 (display_trace): Call gdb_print_insn, instead of print_insn.
7745 (print_insn): Delete function.
7746 * printcmd.c: Include "disasm.h".
7747 (print_insn): Delete function.
7748 (print_formatted): Call gdb_print_insn, instead of print_insn.
7749 * Makefile.in (printcmd.o): Update dependencies.
7750 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7751
27d94c49
AC
77522003-05-02 Andrew Cagney <cagney@redhat.com>
7753
82de1e5b
AC
7754 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7755 PC_REGNUM, re-indent.
7756 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7757 PC_REGNUM isn't set.
7758
27d94c49
AC
7759 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7760 * gdbarch.h, gdbarch.c: Re-generate.
7761 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7762 register_virtual_size, pc_regnum, or register_bytes.
7763 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7764 (d10v_register_type): Use D10V_PC_REGNUM.
7765 (d10v_print_registers_info, d10v_read_pc): Ditto.
7766 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7767 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7768
a9c0dc7f
DC
77692003-05-02 David Carlton <carlton@bactrian.org>
7770
7771 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7772 the name with mstrsave.
7773
e33d66ec
EZ
77742003-05-02 Elena Zannoni <ezannoni@redhat.com>
7775
7776 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7777 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7778 (host_charset_name, target_charset_name): New vars for use by
7779 set/show commands.
7780 (host_charset_enum, target_charset_enum): New enums for set/show
7781 commands.
7782 (set_charset_sfunc, set_host_charset_sfunc,
7783 set_target_charset_sfunc): New functions.
7784 (set_host_charset, set_target_charset): Make static.
7785 (list_charsets, set_host_charset_command,
7786 set_target_charset_command): Delete functions.
7787 (show_charset_command): Rewrite as....
7788 (show_charset): Hook this up with the set/show command mechanism.
7789 (_initialize_charset): Change names of charsets to match the
7790 set/show enums. Use host_charset_name and target_charset_name.
7791 Use set/show mechanism for charset, host-charset, target-charset
7792 commands. Do not make 'show host-charset' and 'show
7793 target-charset' be aliases of 'show charset'.
7794
7795 * charset.h (set_host_charset, set_target_charset): Don't export,
7796 they are not used outside the file.
7797
2b6fd0d8
AC
77982003-05-01 Andrew Cagney <cagney@redhat.com>
7799
7800 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7801 (gdb_disassembly): Make "di" non static, always initialize and
7802 cleanup. Always use dis_asm_read_memory.
7803 (gdb_dis_asm_read_memory): Delete function.
7804
6ae2f580
AC
78052003-05-01 Andrew Cagney <cagney@redhat.com>
7806
7807 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7808 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7809
810ecf9f
AC
78102003-04-30 Andrew Cagney <cagney@redhat.com>
7811
7812 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7813 "tm_print_insn_info".
7814 (TARGET_PRINT_INSN_INFO): Delete macro.
7815 (dis_asm_read_memory): Delete function declaration.
7816 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7817 (tm_print_insn_info): Delete variable definition.
7818 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7819 * gdbarch.h, gdbarch.c: Re-generate.
7820 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7821 "deprecated_tm_print_insn_info".
7822 * mcore-tdep.c (mcore_dump_insn): Ditto.
7823 * mips-tdep.c (mips_gdbarch_init): Ditto.
7824 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7825 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7826 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7827 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7828 instead of TARGET_PRINT_INSN_INFO, add comment.
7829 * s390-tdep.c (s390_get_frame_info): Instead of
7830 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7831 (s390_check_function_end, s390_is_sigreturn): Ditto.
7832 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7833 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7834 * disasm.c: Include "gdbcore.h".
7835 (_initialize_disasm): New function, initialize
7836 "deprecated_tm_print_insn_info".
7837 (deprecated_tm_print_insn_info): New variable.
7838 (dis_asm_read_memory): Moved from "corefile.c", made static.
7839 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7840 * Makefile.in (disasm.o): Update dependencies.
7841
07020390
AC
78422003-04-30 Andrew Cagney <cagney@redhat.com>
7843
7844 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7845
a9fa03de
AF
78462003-04-29 Adam Fedor <fedor@gnu.org>
7847
7848 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7849 * infcall.c (find_function_addr): Make non-static.
7850 * infcall.h (find_function_addr): Declare.
7851 * Makefile.in (eval.o): Update dependencies.
7852
1bae87b9
AF
78532003-04-28 Adam Fedor <fedor@gnu.org>
7854
7855 * symtab.c (symbol_find_demangled_name): Check for and demangle
7856 ObjC symbols.
7857 (symbol_init_demangled_name): Init for language_objc as well.
7858
0ba6dca9
AC
78592003-04-28 Andrew Cagney <cagney@redhat.com>
7860
7861 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7862 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7863 * gdbarch.h, gdbarch.c: Re-generate.
7864 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7865 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7866 * inferior.h (deprecated_read_fp): Rename read_fp.
7867 (generic_target_read_fp): Delete declaration.
7868 * regcache.c (generic_target_read_fp): Delete function.
7869 (deprecated_read_fp): Replace read_fp, use
7870 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7871 * d10v-tdep.c (d10v_read_fp): Delete function.
7872 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7873
7874 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7875 deprecated_target_read_fp to generic_target_read_fp.
7876 * sh-tdep.c (sh_gdbarch_init): Ditto.
7877 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7879 * frv-tdep.c (frv_gdbarch_init): Ditto.
7880
7881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7882 deprecated_fp_regnum.
7883 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7884 * vax-tdep.c (vax_gdbarch_init): Ditto.
7885 * v850-tdep.c (v850_gdbarch_init): Ditto.
7886 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7887 * sh-tdep.c (sh_gdbarch_init): Ditto.
7888 * s390-tdep.c (s390_gdbarch_init): Ditto.
7889 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7890 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7891 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7892 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7894 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7895 * i386-tdep.c (i386_gdbarch_init): Ditto.
7896 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7897 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7898 * frv-tdep.c (frv_gdbarch_init): Ditto.
7899 * cris-tdep.c (cris_gdbarch_init): Ditto.
7900 * avr-tdep.c (avr_gdbarch_init): Ditto.
7901 * arm-tdep.c (arm_gdbarch_init): Ditto.
7902 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7903
7904 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7905 * v850-tdep.c (v850_gdbarch_init): Ditto.
7906 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7907 * sh-tdep.c (sh_gdbarch_init): Ditto.
7908 * s390-tdep.c (s390_gdbarch_init): Ditto.
7909 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7910 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7911 * mips-tdep.c (mips_gdbarch_init): Ditto.
7912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7913 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7914 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7915 * frv-tdep.c (frv_gdbarch_init): Ditto.
7916 * avr-tdep.c (avr_gdbarch_init): Ditto.
7917 * arm-tdep.c (arm_gdbarch_init): Ditto.
7918
7919 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7920 DEPRECATED_FP_REGNUM.
7921 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7922 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7923 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7924 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7925 (sparc32_register_virtual_type): Ditto.
7926 * sh-tdep.c (sh64_frame_chain): Ditto.
7927 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7928 (sh_nofp_frame_init_saved_regs): Ditto.
7929 (sh64_nofp_frame_init_saved_regs): Ditto.
7930 (sh_fp_frame_init_saved_regs): Ditto.
7931 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7932 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7933 * procfs.c (procfs_fetch_registers): Ditto.
7934 (procfs_store_registers): Ditto.
7935 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7936 (store_inferior_registers, fetch_core_registers): Ditto.
7937 (fetch_kcore_registers, clear_regs): Ditto.
7938 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7939 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7940 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7941 * nlm/i386.c (do_status): Ditto.
7942 * mipsv4-nat.c (supply_gregset): Ditto.
7943 * mips-tdep.c: Ditto for comments.
7944 * mips-nat.c (fetch_inferior_registers): Ditto.
7945 (store_inferior_registers, fetch_core_registers): Ditto.
7946 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7947 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7948 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7949 (i386_do_pop_frame, i386_register_type): Ditto.
7950 * hppa-tdep.c (hppa_frame_chain): Ditto.
7951 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7952 (hppa_pop_frame, hppa_read_fp): Ditto.
7953 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7954 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7955 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7956 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7957 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7958 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7959 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7960 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7961 * blockframe.c: Ditto for comments.
7962 * arch-utils.h: Ditto for comments.
7963 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7964 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7965 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7966 * alpha-tdep.h: Ditto for comments.
7967 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7968 (alpha_cannot_store_register): Ditto.
7969 (alpha_push_dummy_frame): Ditto.
7970 * alpha-nat.c (supply_gregset): Ditto.
7971
7972 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7973 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7974 * config/sparc/tm-sparc.h: Update comment.
7975
7976 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7977 deprecated_read_fp instead of TARGET_READ_FP.
7978 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7979 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7980 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7981 deprecated_read_fp instead of read_fp.
7982 * s390-tdep.c (s390_push_arguments): Ditto.
7983 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7984 * frame.h: Ditto in comments.
7985 * frame.c (legacy_get_prev_frame): Ditto.
7986 * dummy-frame.c (dummy_frame_this_id): Ditto.
7987 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7988
d7a27068
AC
79892003-04-28 Andrew Cagney <cagney@redhat.com>
7990
7991 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7992 * gdbarch.h, gdbarch.c: Re-generate.
7993 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7994 * vax-tdep.c (_initialize_vax_tdep): Update.
7995 * v850-tdep.c (_initialize_v850_tdep): Update.
7996 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7997 * s390-tdep.c (_initialize_s390_tdep): Update.
7998 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7999 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8000 * mips-tdep.c (_initialize_mips_tdep): Update.
8001 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8002 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8003 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8004 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8005 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8006 * frv-tdep.c (_initialize_frv_tdep): Update.
8007 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8008 (_initialize_cris_tdep): Update.
8009 * arch-utils.c (legacy_print_insn): Update.
8010 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8011
d2630e69
AF
80122003-04-26 Adam Fedor <fedor@gnu.org>
8013
8014 * linespec.c (decode_objc): New function to decode ObjC calls
8015 (decode_line_1): Check for ObjC calls (using decode_objc)
8016 * Makefile (linespec.o): Update dependencies.
8017
3086aeae
DJ
80182003-04-26 Daniel Jacobowitz <drow@mvista.com>
8019
8020 * breakpoint.h (struct breakpoint_ops): New.
8021 (struct breakpoint): Add ops member.
8022
8023 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8024 (mention): Use new breakpoint ops member.
8025 (set_raw_breakpoint): Initialize ops field to NULL.
8026 (print_exception_catchpoint, print_one_exception_catchpoint)
8027 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8028 (gnu_v3_exception_catchpoint_ops): New.
8029 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8030
1fbec6c3
AF
80312003-04-25 Adam Fedor <fedor@gnu.org>
8032
8033 * Makefile.in (COMMON_OBS): Add objc-lang.o
8034
0ef21242
AC
80352003-04-25 Andrew Cagney <cagney@redhat.com>
8036
8037 * d10v-tdep.c (print_insn): Delete function.
8038 (display_trace): Use TARGET_PRINT_INSN.
8039 (_initialize_d10v_tdep): Do not set tm_print_insn.
8040 (d10v_gdbarch_init): Set print_insn.
8041
f75493ed
AC
80422003-04-25 Andrew Cagney <cagney@redhat.com>
8043
8044 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8045 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8046 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8047 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8048 (nr_dmap_regs, a0_regnum): ... new functions.
8049 (d10v_print_registers_info): Use a0_regnum, use register_size.
8050 (d10v_register_byte): Delete function.
8051 (d10v_register_raw_size): Delete function.
8052 (d10v_register_type): Use a0_regnum.
8053 (d10v_print_registers_info): Use a0_regnum.
8054 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8055 (d10v_gdbarch_init): Do not set register_byte or
8056 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8057 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8058 extract_address.
8059 (trace_command): Use XCALLOC.
8060 (print_insn): Delete reference to tm_print_insn.
8061 (saved_regs_unwinder): Use store_unsigned_integer instead of
8062 store_address.
8063 * frame.h (FRAME_OBSTACK_CALLOC): Define
8064
2202b100
DC
80652003-04-25 David Carlton <carlton@bactrian.org>
8066
8067 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8068
4e45ca2e
AF
80692003-04-24 Adam Fedor <fedor@gnu.org>
8070
8071 * objc-lang.c: Include "valprint.h"
8072 * Makefile.in (objc-lang.o): Update dependencies.
8073
93de3e7f
AF
80742003-04-24 Adam Fedor <fedor@gnu.org>
8075
8ffd9b1b 8076 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8077 architecture dependant compilation and mark as unimplemented
8078 (until they get put in the gdbarch vector).
8079
0f20eeea
DC
80802003-04-23 David Carlton <carlton@bactrian.org>
8081
8082 * cp-support.c (cp_find_first_component): Accept 'operator' in
8083 more locations.
8084
74cfe982
AC
80852003-04-23 Andrew Cagney <cagney@redhat.com>
8086
8087 * infcall.c (call_function_by_hand): Eliminate redundant
8088 indentation. Move "saved_async" and "old_cleanups" to where they
8089 are needed.
8ffd9b1b 8090
52557533
AC
80912003-04-23 Andrew Cagney <cagney@redhat.com>
8092
8093 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8094 and "buffer". Move the "name" code to where it is needed.
8095
158775de
AC
80962003-04-23 Andrew Cagney <cagney@redhat.com>
8097
8098 * infcall.c (call_function_by_hand): Move variables "start_sp",
8099 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8100 code to ON_STACK switch branch.
8ffd9b1b 8101
ebc7896c
AC
81022003-04-23 Andrew Cagney <cagney@redhat.com>
8103
8104 * infcall.c (call_function_by_hand): Make declaration of "i",
8105 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8106 lint.
8107
d727590f
AC
81082003-04-23 Andrew Cagney <cagney@redhat.com>
8109
8110 * infcall.c (call_function_by_hand): Delete variable
8111 "n_method_args". Localize "param_type"'s declaration to the loop
8112 that it is used. Reinstate code assigning to said variable -
8113 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8114 Rationalize code using "param_type".
8115
d585e13a
AC
81162003-04-22 Andrew Cagney <cagney@redhat.com>
8117
8118 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8119 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8120 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8121 to DEPRECATED_PUSH_RETURN_ADDRESS.
8122
051caad9
KB
81232003-04-22 Kevin Buettner <kevinb@redhat.com>
8124
8125 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8126 on the DWARF2 register number prior to fetching a register.
8127
77296879
JB
81282003-04-22 J. Brobecker <brobecker@gnat.com>
8129
8130 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8131 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8132 this macro was always set to 0.
77296879
JB
8133 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8134 considering the fact that this macro was always set to 0.
8135 * hppa-tdep.h (hppa_store_return_value): Likewise.
8136 (hppa_extract_return_value): Likewise.
8137
4252f1df
JB
81382003-04-22 J. Brobecker <brobecker@gnat.com>
8139
8140 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8141 the hppa-pro target only.
8142
14604c6b
JB
81432003-04-21 J. Brobecker <brobecker@gnat.com>
8144
8145 Ongoing multi-arch conversion effort for HP/UX:
8146 * config/pa/tm-hppa.h: Move all macro that are no longer
8147 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8148 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8149
77eb01d1
JB
81502003-04-21 J. Brobecker <brobecker@gnat.com>
8151
8152 * config/pa/tm-hppa.h: Obsolete a section that was only used
8153 for hppa-pro.
8154
61995b3b
JB
81552003-04-21 J. Brobecker <brobecker@gnat.com>
8156
8157 Ongoing multi-arch conversion for HP/UX.
8158 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8159 if already defined (allows hppa64 to stay non-multiarched for now).
8160 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8161
4aa79dcc
AC
81622003-04-21 Andrew Cagney <cagney@redhat.com>
8163
8164 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8165
0f751ff2
AC
81662003-04-21 Andrew Cagney <cagney@redhat.com>
8167
8168 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8169 "i386_num_mmx_regs".
8170
04714b91
AC
81712003-04-21 Andrew Cagney <cagney@redhat.com>
8172
8173 * infcall.c: New file.
8174 * infcall.h: New file.
8175 * valarith.c: Include "infcall.h".
8176 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8177 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8178 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8179 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8180 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8181 (SFILES): Add "infcall.c"
8182 (COMMON_OBS): Add "infcall.o".
8183 (infcall.o): Specify dependencies.
8184 * value.h (call_function_by_hand): Delete declaration.
8185 * inferior.h (run_stack_dummy): Delete declaration.
8186 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8187 (run_stack_dummy): Move to "infcall.c", merged into
8188 call_function_by_hand.
8189 * valops.c (call_function_by_hand): Moved to "infcall.c".
8190 (find_function_addr, value_arg_coerce): Ditto.
8191 (unwindonsignal_p, coerce_float_to_double): Ditto.
8192 (_initialize_valops): Move "set/show coerce-float-to-double", and
8193 "set/show unwindonsignal" commands to "infcall.c".
8194 * v850-tdep.c, target.h: Update comments.
8195 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8196 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8197 (sh64_init_extra_frame_info): Update comments.
8198 * mn10300-tdep.c: Update comments.
8199 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8200 * config/sparc/tm-sparc.h: Update comments.
8201 * breakpoint.h: Update comments.
8202 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8203 * arm-tdep.c: Update comment.
8204
f9d3c2a8
MK
82052003-04-19 Mark Kettenis <kettenis@gnu.org>
8206
c40e1eab
MK
8207 * i386-tdep.c (i386_num_register_names): New variable.
8208 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8209 (MM0_REGNUM): Remove redundant parentheses in define.
8210 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8211 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8212 i386_mxcsr_regnum_p): Remove redundant parentheses.
8213 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8214
94ea66b3
MK
8215 * i386-tdep.c (i386_extract_return_value,
8216 i386_store_return_value): Correct check for availability of
8217 floating-point registers.
8218
54299a1d
MK
8219 * i386-tdep.c (i386_frame_num_args): Remove function.
8220 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8221
c86c27af
MK
8222 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8223 mmx_regnum_to_fp_regnum. Adjust all callers.
8224
f9d3c2a8
MK
8225 * i386-tdep.c (i386_get_longjmp_target): Use
8226 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8227 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8228 extract_address.
8229
94ba74a9
MK
82302003-04-19 Mark Kettenis <kettenis@gnu.org>
8231
8232 * core-regset.c: Update comments to reflect reality. Re-order
8233 includes.
8234 (fetch_core_registers): Use switch instead of if. Remove
8235 redundant prototype.
8236
4074e13c
JB
82372003-04-18 Jim Blandy <jimb@redhat.com>
8238
8239 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8240 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8241
e3ab4aba
RH
82422003-04-17 Richard Henderson <rth@redhat.com>
8243
8244 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8245
627bf7c1
EZ
82462003-04-17 Michael Snyder <msnyder@redhat.com>
8247 Karen Bennet <bennet@redhat.com>
8248
8249 Committed by Elena Zannoni <ezannoni@redhat.com>
8250 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8251
514621a9
EZ
82522003-04-17 Elena Zannoni <ezannoni@redhat.com>
8253
8254 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8255 value if the return type is void.
514621a9 8256
b4acd559
JJ
82572003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8258
8259 * thread-db.c: Reindented.
8ffd9b1b 8260
530b167e 82612003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8262
8263 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8264 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8265 as types.
8266
0a48e7e8
MS
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8ffd9b1b 8290
ab9fe00e
KB
82912003-04-16 Kevin Buettner <kevinb@redhat.com>
8292
610a3745 8293 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8294 the size of ``long double'' to 16, instead of 8.
8295
e64a344c
MK
82962003-04-16 Mark Kettenis <kettenis@gnu.org>
8297
8298 * i386-linux-nat.c: Add some whitespace to make things more
8299 readable.
8300 (fetch_register, store_register, fetch_inferior_registers,
8301 store_inferior_registers): Get rid of assignment in if-statement.
8302 (store_register): Fix typo in error message.
8303
25d41031
AC
83042003-04-16 Andrew Cagney <cagney@redhat.com>
8305
8306 * utils.c (xmmalloc): Always allocate something, matches
8307 libiberty/xmalloc's semantics.
8308 (xmrealloc, xmcalloc): Ditto.
8309
c50901fd
AC
83102003-04-16 Andrew Cagney <cagney@redhat.com>
8311
8312 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8313 update comments.
8314 (get_frame_type): Initialize unwind and type when needed.
8315 (get_frame_id, frame_register_unwind): Ditto.
8316
f81824a9
AC
83172003-04-16 Andrew Cagney <cagney@redhat.com>
8318
8319 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8320 obsolete.
8321 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8322 * sparcl-stub.c: Obsolete file.
8323 * config/sparc/tm-sparclet.h: Obsolete file.
8324 * sparclet-stub.c: Obsolete file.
8325 * sparclet-rom.c: Obsolete file.
8326 * sparcl-tdep.c: Obsolete file.
8327 * config/sparc/tm-sparclite.h: Obsolete file.
8328 * config/sparc/sparclite.mt: Obsolete file.
8329 * config/sparc/sparclet.mt: Obsolete file.
8330 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8331 sparc86x-*-* obsolete.
8332
9219021c
DC
83332003-04-15 David Carlton <carlton@math.stanford.edu>
8334
8335 * Makefile.in (SFILES): Add cp-namespace.c.
8336 (COMMON_OBS): Add cp-namespace.o.
8337 (block.o): Depend on gdb_obstack_h and cp_support_h.
8338 (buildsym.o): Depend on cp_support_h.
8339 (cp-namespace.o): New.
8340 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8341 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8342 (dwarf2read.o): Depend on cp_support_h.
8343 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8344 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8345 processing_current_namespace.
8346 (read_namespace): Update processing_current_namespace; check for
8347 anonymous namespaces.
8348 (dwarf2_name): New function.
8349 (dwarf2_extension): Ditto.
8350 * cp-support.h: Update copyright, contributors.
8351 Add inclusion guards.
8352 Add opaque declaration for structs obstack, block, symbol.
8353 (struct using_direct): New struct.
8354 Add declarations for cp_find_first_component,
8355 cp_entire_prefix_len, processing_has_namespace_info,
8356 processing_current_namespace, cp_is_anonymous,
8357 cp_add_using_directive, cp_initialize_namespace,
8358 cp_finalize_namespace, cp_set_block_scope,
8359 cp_scan_for_anonymous_namespaces.
8360 * cp-namespace.c: New file.
8361 * cp-support.c: Update copyright.
8362 Include ctype.h, gdb_assert.h, gdbcmd.h.
8363 New variable maint_cplus_cmd_list.
8364 (cp_find_first_component): New function.
8365 (cp_entire_prefix_len, maint_cplus_command)
8366 (first_component_command, _initialize_cp_support): Ditto.
8367 * buildsym.c: Include cp-support.h.
8368 New variable using_list.
8369 (add_symbol_to_list): Check for anonymous namespaces.
8370 (finish_block): Set block's scope.
8371 (start_symtab): Initialize C++ namespace support.
8372 (end_symtab): Finalize C++ namespace support.
8373 * block.h: Add opaque declarations for structs
8374 block_namespace_info, using_direct, and obstack.
8375 Add declarations for block_set_scope and block_set_using.
8376 (struct block): Add 'language_specific' member.
8377 (BLOCK_NAMESPACE): New macro.
8378 * block.c: Include gdb_obstack.h and cp-support.h.
8379 (struct block_namespace_info): New struct.
8380 (block_set_scope): New function.
8381 (block_set_using, block_initialize_namespace): Ditto.
8382
d5a921c9
KB
83832003-04-14 Kevin Buettner <kevinb@redhat.com>
8384
8385 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8386 (locate_base): Return early if there aren't any link map offsets.
8387 (svr4_solib_create_inferior_hook): Warn if shared library support
8388 is unavailable.
8389
d2a52b27
DC
83902003-04-14 David Carlton <carlton@math.stanford.edu>
8391
8392 * symtab.c (symbol_set_names): Add prefix when storing Java names
8393 in hash table. Fix for PR java/1039.
8394
980cae7a
DC
83952003-04-14 David Carlton <carlton@math.stanford.edu>
8396
8397 * symtab.c (symbol_set_names): Rename 'name' arg to
8398 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8399 * symtab.h: Change 'name' argument in declaration of
8400 symbol_set_names to 'linkage_name'.
8401 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8402
e227b13c
AC
84032003-04-14 Andrew Cagney <cagney@redhat.com>
8404
8405 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8406 return the fully sign-extended register value.
8407 (get_frame_pointer): Ditto.
8408 (mips_pop_frame): Initialize "proc_desc" after checking for a
8409 dummy frame.
8410
36712a20
AC
84112003-04-14 Andrew Cagney <cagney@redhat.com>
8412
8413 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8414 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8415 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8416 (mips_push_register): Delete function.
8417 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8418 PUSH_FP_REGNUM.
8419
44ea7b70
JB
84202003-04-14 Jim Blandy <jimb@redhat.com>
8421
8422 * symmisc.c: #include "gdb_regex.h".
8423 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8424 functions.
8425 * maint.c (maintenance_list_command): New function.
8426 (_initialize_maint_cmds): Register the above as commands.
8427 * symtab.h (maintenance_list_symtabs,
8428 maintenance_list_psymtabs): New declarations.
8429 * cli/cli-cmds.c (maintenancelistlist): New variable.
8430 (init_cmd_lists): Initialize it.
8431 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8432 * gdbcmd.h (maintenancelistlist): New declaration.
8433 * Makefile.in (symmisc.o): Update dependencies.
8434
2d0c7962
EZ
84352003-04-14 Elena Zannoni <ezannoni@redhat.com>
8436
8437 * s390-nat.c: Include asm/types.h for addr_t.
8438
1947a811
CV
84392003-04-14 Corinna Vinschen <vinschen@redhat.com>
8440
8441 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8442 actually incoming type.
8443
adb616d7
AC
84442003-04-13 Andrew Cagney <cagney@redhat.com>
8445
8446 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8447 get_next_frame and get_frame_saved_regs.
8448
9b5e151c
AC
84492003-04-13 Andrew Cagney <cagney@redhat.com>
8450
8451 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8452 of gdbarch_num_regs.
8453
ef6e7e13
AC
84542003-04-13 Andrew Cagney <cagney@redhat.com>
8455
8456 * frame.h: Mention what replaced what in "struct frame_info".
8457 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8458 deprecated_update_frame_base_hack and
8459 deprecated_update_frame_pc_hack.
8460 * hppa-tdep.c: Ditto.
8461
61fbb938
DJ
84622003-04-13 Daniel Jacobowitz <drow@mvista.com>
8463
8464 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8465 to read_reg and update its comment. Remove regnum member.
8466 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8467 Don't call read_reg when setting in_reg. Call read_reg to get
8468 the frame base if it's in a register. Return the register number
8469 on the stack instead of in the context. Remove extra arguments
8470 to read_reg.
8471 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8472 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8473 the register number on the expression stack.
8474 (needs_frame_read_reg): Remove extra arguments.
8475
0d53c4c4
DJ
84762003-04-13 Daniel Jacobowitz <drow@mvista.com>
8477
8478 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8479 made non-static.
8480 (execute_stack_op): All callers updated.
8481 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8482 * dwarf2loc.c (find_location_expression): New function.
8483 (dwarf_expr_frame_base): Call it.
8484 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8485 (dwarf2_tracepoint_var_ref): New function, broken out from
8486 locexpr_tracepoint_var_ref.
8487 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8488 Make static.
8489 (loclist_read_variable, loclist_read_needs_frame): New functions.
8490 (loclist_describe_location, loclist_tracepoint_var_ref): New
8491 functions.
8492 (dwarf2_loclist_funcs): New struct location_funcs.
8493 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8494 (struct dwarf2_locexpr_baton): Add comments.
8495 (dwarf2_loclist_funcs): New extern.
8496 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8497 base_address and base_known.
8498 (dwarf_loc_buffer): New variable.
8499 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8500 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8501 (dwarf2_has_info): Initialize dwarf_loc_offset.
8502 (dwarf2_build_psymtabs): Read in .debug_loc.
8503 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8504 DWARF_LOC_SIZE.
8505 (psymtab_to_symtab_1): Likewise. Move base address calculation
8506 here, from...
8507 (dwarf2_get_pc_bounds): ... here. Use the base address from
8508 cu_header.
8509 (dwarf2_symbol_mark_computed): Handle location lists.
8510
6aca59a3
DJ
85112003-04-13 Daniel Jacobowitz <drow@mvista.com>
8512
8513 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8514 if the linkage name demangled successfully.
8515
aca1fcd0
MK
85162003-04-13 Mark Kettenis <kettenis@gnu.org>
8517
97095916
MK
8518 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8519 disassmbly_flavour): Removed.
8520
aca1fcd0
MK
8521 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8522
562a961f
MK
85232003-04-13 Mark Kettenis <kettenis@gnu.org>
8524
8525 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8526
bd013d54
AC
85272003-04-12 Andrew Cagney <cagney@redhat.com>
8528
8529 * frame.h (struct frame_info): Move definition from here ...
8530 * frame.c (struct frame_info): ... to here.
8531
167ef8b1
AC
85322003-04-12 Andrew Cagney <cagney@redhat.com>
8533
8534 * gdbthread.h (save_infrun_state): Delete parameter
8535 "prev_func_start".
8536 (struct thread_info): Delete field "prev_func_start".
8537 (load_infrun_state): Ditto.
8538 * thread.c (load_infrun_state, save_infrun_state): Update.
8539 * infrun.c (prev_func_start): Delete variable.
8540 (context_switch, init_wait_for_inferior): Update.
8541 (stop_stepping, keep_going): Update.
8542
da3331ec
AC
85432003-04-12 Andrew Cagney <cagney@redhat.com>
8544
8545 * gdbarch.sh: Add missing opaque declarations.
8546 * gdbarch.h: Regnerate.
8547 * symtab.h: Add missing opaque declarations.
8548 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8549 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8550 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8551 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8552 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8553 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8554 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8555 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8556 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8557 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8558 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8559 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8560 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8561
18adea3f
AC
85622003-04-11 Andrew Cagney <cagney@redhat.com>
8563
8564 * frame.c (get_frame_id): Return this frame's "id".
8565 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8566 function start.
8567 (legacy_saved_regs_this_id): Replace function body with
8568 internal-error.
8569 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8570 FRAME_OBSTACK_ZALLOC.
8571 (create_new_frame): Mark the frame ID as valid.
8572
2252e863
AO
85732003-04-11 Alexandre Oliva <aoliva@redhat.com>
8574
8575 * Makefile.in (libbfd_h): Added missing setting.
8576 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8577 according to the selected ABI.
8578
a8245ab8
JJ
85792003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8580
8581 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8582
6913c89a
AC
85832003-04-11 Andrew Cagney <cagney@redhat.com>
8584
8585 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8586 SAVED_PC_AFTER_CALL.
8587 * gdbarch.h, gdbarch.c: Regenerate.
8588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8589 * x86-64-tdep.c (x86_64_init_abi): Update.
8590 * vax-tdep.c (vax_gdbarch_init): Update.
8591 * v850-tdep.c (v850_gdbarch_init): Update.
8592 * sparc-tdep.c (sparc_gdbarch_init): Update.
8593 * sh-tdep.c (sh_gdbarch_init): Update.
8594 * s390-tdep.c (s390_gdbarch_init): Update.
8595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8596 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8597 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8598 * mips-tdep.c (mips_gdbarch_init): Update.
8599 * mcore-tdep.c (mcore_gdbarch_init): Update.
8600 * m68k-tdep.c (m68k_gdbarch_init): Update.
8601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8602 * ia64-tdep.c (ia64_gdbarch_init): Update.
8603 (ia64_saved_pc_after_call): Update declaration.
8604 * i386ly-tdep.c (i386lynx_init_abi): Update.
8605 * i386-tdep.c (i386_gdbarch_init): Update.
8606 * hppa-tdep.c (hppa_gdbarch_init): Update.
8607 * h8300-tdep.c (h8300_gdbarch_init): Update.
8608 * frv-tdep.c (frv_gdbarch_init): Update.
8609 * cris-tdep.c (cris_gdbarch_init): Update.
8610 * avr-tdep.c (avr_gdbarch_init): Update.
8611 * arm-tdep.c (arm_gdbarch_init): Update.
8612 * alpha-tdep.c (alpha_gdbarch_init): Update.
8613 * ns32knbsd-nat.c (frame_num_args): Update.
8614 * ns32k-tdep.c (umax_frame_num_args): Update.
8615 * mips-tdep.c (mips_init_frame_pc_first): Update.
8616 * infrun.c (step_over_function): Update.
8617 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8618 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8619 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8620 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8621 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8622 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8623 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8624 * arch-utils.c (init_frame_pc_default): Update.
8625 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8626 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8627 declaration.
8ffd9b1b 8628
38edeab8
AC
86292003-04-11 Andrew Cagney <cagney@redhat.com>
8630
8631 * i387-tdep.c: Update copyright.
8632 (i387_to_double): Delete function.
8633 (double_to_i387): Delete function.
8634
81f8a206
AC
86352003-04-10 Andrew Cagney <cagney@redhat.com>
8636
8637 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8638 frame's function's address. Simplify.
8639 (d10v_frame_unwind_cache): Check that the frame's function is
8640 non-zero.
8641
6e691f7a
JB
86422003-04-10 Jim Blandy <jimb@redhat.com>
8643
8644 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8645 call to set_gdbarch_deprecated_push_arguments.
8646
7f78e237
AC
86472003-04-10 Andrew Cagney <cagney@redhat.com>
8648
8649 * frame.c (fprint_frame_id): New function.
8650 (fprint_frame_type, fprint_frame): New function.
8651 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8652 (create_sentinel_frame, get_frame_id): Ditto.
8653 (frame_id_p, frame_id_eq): Ditto.
8654 (frame_id_inner, create_new_frame): Ditto.
8655 (legacy_get_prev_frame, get_prev_frame): Ditto.
8656 (deprecated_update_frame_pc_hack): Ditto.
8657 (frame_register_unwind): Ditto.
8658 (deprecated_update_frame_base_hack): Ditto.
8659
f870b49b
CV
86602003-04-10 Corinna Vinschen <vinschen@redhat.com>
8661
8662 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8663 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8664 frame_chain function.
8665 * Makefile.in: Add dependencies due to above change.
8666
7c86889b
CV
86672003-04-10 Corinna Vinschen <vinschen@redhat.com>
8668
8669 * blockframe.c (legacy_frame_chain_valid): Move call to
8670 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8671 inside_entry_file.
8672
d0a55772
AC
86732003-04-09 Andrew Cagney <cagney@redhat.com>
8674
8675 * frame.h (struct frame_id): Replace "pc" and "base" with
8676 "stack_addr" and "code_addr". Update comments.
8677 (frame_id_build): Update parameter names and comment.
8678 (struct frame_info): Replace "id_p" and "id" with "this_id".
8679 * dummy-frame.c (dummy_frame_this_id): Update.
8680 * breakpoint.c (print_one_breakpoint): Update.
8681 * frame.c (get_frame_id): Update.
8682 (get_frame_base, frame_id_build): Update.
8683 (create_sentinel_frame, legacy_get_prev_frame): Update.
8684 (deprecated_update_frame_base_hack): Update.
8685 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8686 (frame_id_inner): Ditto.
8687
ac16bf07
AC
86882003-04-09 Andrew Cagney <cagney@redhat.com>
8689
8690 * defs.h (gdb_print_host_address): Make "addr" parameter a
8691 pointer constant.
8692 * utils.c (gdb_print_host_address): Update.
8693
366cfc9e
KB
86942003-04-09 Kevin Buettner <kevinb@redhat.com>
8695
8696 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8697 register number for R0 is 0.
8698
cd983b5c
JB
86992003-04-09 J. Brobecker <brobecker@gnat.com>
8700
8701 * frame.h (struct gdbarch): Add opaque structure definition
8702 to avoid a compilation warning on LynxOS 4.0.
8703
d1340264
AC
87042003-04-09 Andrew Cagney <cagney@redhat.com>
8705
8706 * frame.h (struct frame_info): Delete field "pc". Replace
8707 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8708 structure.
8709 * frame.c (frame_pc_unwind): Update.
8710 (create_sentinel_frame): Do not set "pc".
8711 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8712 (get_frame_pc): Call frame_pc_unwind.
8713 (deprecated_update_frame_pc_hack): Update.
8714 (create_new_frame): Use "pc" not "->pc".
8715
90a6fffb
AC
87162003-04-09 Andrew Cagney <cagney@redhat.com>
8717
8718 * frame.c (get_frame_id): Eliminate code updating "frame".
8719 (legacy_get_prev_frame): Ditto.
8720 (get_frame_base): Return id.base directly.
8721 (deprecated_update_frame_base_hack): Update "id.base".
8722 * frame.h (struct frame_info): Delete field "frame".
8723
2fbce691
AC
87242003-04-09 Andrew Cagney <cagney@redhat.com>
8725
8726 * NEWS: Mention that the "Sequent family" is obsolete.
8727 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8728 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8729 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8730 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8731 * config/i386/tm-ptx4.h: Obsolete file.
8732 * config/i386/tm-ptx.h: Obsolete file.
8733 * symm-tdep.c: Obsolete file.
8734 * config/i386/symmetry.mt: Obsolete file.
8735 * config/i386/tm-symmetry.h: Obsolete file.
8736 * symm-nat.c: Obsolete file.
8737 * config/i386/nm-symmetry.h: Obsolete file.
8738 * config/i386/xm-symmetry.h: Obsolete file.
8739 * config/i386/symmetry.mh: Obsolete file.
8740 * config/i386/nm-ptx4.h: Obsolete file.
8741 * config/i386/ptx4.mh: Obsolete file.
8742 * config/i386/ptx.mt: Obsolete file.
8743 * config/i386/ptx.mh: Obsolete file.
8744 * config/i386/xm-ptx4.h: Obsolete file.
8745 * config/i386/xm-ptx.h: Obsolete file.
8746
78c43945
AC
87472003-04-09 Andrew Cagney <cagney@redhat.com>
8748
8749 Obsolete mips*-*-mach3*.
8750 * NEWS: Mention that mips*-*-mach3* is obsolete.
8751 * m3-nat.c: Obsolete file.
8752 * config/nm-m3.h: Obsolete file.
8753 * config/mips/tm-mipsm3.h: Obsolete file.
8754 * config/mips/mipsm3.mt: Obsolete file.
8755 * config/mips/mipsm3.mh: Obsolete file.
8756 * config/mips/xm-mipsm3.h: Obsolete file.
8757 * mipsm3-nat.c: Obsolete file.
8758 * configure.host: Obsolete mips-dec-mach3*.
8759 * configure.tgt: Obsolete mips*-*-mach3*.
8760
f1908289
AC
87612003-04-09 Andrew Cagney <cagney@redhat.com>
8762
8763 * doublest.h: Update copyright.
8764 (deprecated_store_floating, deprecated_extract_floating): Rename
8765 store_floating and extract_floating. Update comments.
8766 * doublest.c: Update copyright.
8767 (extract_floating_by_length): Replace extract_floating.
8768 (store_floating_by_length): Replace store_floating.
8769 (deprecated_extract_floating): New function.
8770 (deprecated_store_floating): New function.
8771 (extract_typed_floating): Call extract_floating_by_length.
8772 (store_typed_floating): Call store_floating_by_length.
8773 * x86-64-tdep.c (x86_64_store_return_value): Update.
8774 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8775 (sh64_extract_return_value): Update.
8776 (sh_sh4_register_convert_to_virtual): Update.
8777 (sh_sh64_register_convert_to_virtual): Update.
8778 (sh_sh4_register_convert_to_raw): Update.
8779 (sh_sh64_register_convert_to_raw): Update.
8780 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8781 (rs6000_register_convert_to_raw): Update.
8782 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8783 (ia64_register_convert_to_raw): Update.
8784 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8785 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8786 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8787 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8788 (alpha_register_convert_to_raw): Update.
8789
4443bd83
AC
87902003-04-08 Andrew Cagney <cagney@redhat.com>
8791
8792 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8793 * gdbarch.h, gdbarch.c: Re-generate.
8794 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8795 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8796 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8797 conditionally, use frame_pc_unwind as an alternative. Add
8798 comments.
8799 * arch-utils.c (init_frame_pc_default): Only call
8800 SAVED_PC_AFTER_CALL when available.
8801
c0236d92
EZ
88022003-04-08 Elena Zannoni <ezannoni@redhat.com>
8803
fbe586ae 8804 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8805 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8806 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8807 (start_remote): Ditto.
8808 (handle_inferior_event): Ditto.
8809 (save_inferior_status): Ditto.
8810 (restore_inferior_status): Ditto.
8811 * infcmd.c (attach_command): Ditto.
8812 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8813 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8814 * alpha-tdep.c (heuristic_proc_start): Ditto.
8815 * mips-tdep.c (heuristic_proc_start): Ditto.
8816 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8817 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8818 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8819 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8820 * remote-vx.c (vx_create_inferior): Ditto.
8821
88222003-04-08 Elena Zannoni <ezannoni@redhat.com>
8823
8824 * infrun.c (stop_soon_quietly): Make it an enum, to better
8825 override the default behavior of handle_inferior_event.
8826 (clear_proceed_status): Update uses of stop_soon_quietly to
8827 reflect that it is now an enum.
8828 (start_remote): Ditto.
8829 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8830 is set to handle the new GNU/Linux kernel behavior for
8831 attach/sigstop. Update uses of stop_soon_quietly.
8832 * inferior.h (enum stop_kind): New enum.
8833 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8834 Reset normal handle_inferior_event behavior, afterwards.
8835 * fork-child.c (startup_inferior): Update.
8836 * alpha-tdep.c (heuristic_proc_start): Update.
8837 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8838 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8839 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8840 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8841 * remote-vx.c (vx_create_inferior): Update.
8842 * mips-tdep.c (heuristic_proc_start): Update.
8843
1211bce3
EZ
88442003-04-07 Elena Zannoni <ezannoni@redhat.com>
8845
8846 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8847 be freed more than once, causing wild memory corruptions.
1211bce3 8848 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8849 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8850 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8851 with the "core" target.
1211bce3 8852
f0ef6b29
KB
88532003-04-07 Kevin Buettner <kevinb@redhat.com>
8854
8855 * mips-tdep.c (mips_print_fp_register): New function, created from
8856 do_fp_register_row(). Registers are now (also) printed as hex.
8857 Only one register is printed per row.
8858 (mips_print_register, do_fp_register_row): Print floating point
8859 registers with mips_print_fp_register().
8860
8cf71652
AC
88612003-04-06 Andrew Cagney <cagney@redhat.com>
8862
5e488a7b
AC
8863 * valprint.h (inspect_it): Add extern declaration.
8864 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8865 (selectors_info, classes_info): Ditto.
8866 (find_objc_msgcall): Fix indentation.
8867 (objc_printstr): Delete extern declarations.
8868
8cf71652
AC
8869 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8870
e6ba3bc9
AC
88712003-04-06 Andrew Cagney <cagney@redhat.com>
8872
8873 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8874 Update comment.
8875 * frame.c (legacy_saved_regs_this_id): Update.
8876 (legacy_get_prev_frame): Update.
8877 * xstormy16-tdep.c: Update comment.
8878 * sparc-tdep.c (sparc_frame_chain): Update comment.
8879 * blockframe.c (legacy_frame_chain_valid): Update.
8880
55e1d7e7
AC
88812003-04-06 Andrew Cagney <cagney@redhat.com>
8882
996179ee
AC
8883 * valprint.c (val_print_type_code_int): Delete #ifdef
8884 PRINT_TYPELESS_INTEGER code.
8885
55e1d7e7
AC
8886 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8887 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8888 multi-arch definition.
8889 * gdbarch.h: Re-generate.
8890
43bd9a9e
AC
88912003-04-05 Andrew Cagney <cagney@redhat.com>
8892
8893 Eliminate FRAME_FIND_SAVED_REGS.
8894 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8895 Change FSR parameter to a pointer.
8896 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8897 Assume FSR parameter is a pointer.
8898 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8899 Make fsr a pointer.
8900 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8901 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8902 saved_regs a pointer.
8903 (hppa_frame_saved_pc): Ditto.
8904 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8905 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8906 pointer.
8907 (restore_pc_queue): Make fsr a pointer.
8908 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8909 (hppa_frame_chain): Make saved_regs a pointer, call
8910 hppa_frame_init_saved_regs.
8911 * sparc-tdep.c: Include "gdb_assert.h".
8912 (sparc_frame_find_saved_regs): Replace internal_error with
8913 gdb_assert.
8914 * remote-vxsparc.c (vx_read_register): Delete reference to
8915 FRAME_FIND_SAVED_REGS.
8916 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8917 * gdbarch.h: Regenerate.
8918 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8919 (deprecated_get_frame_saved_regs): Delete declaration.
8920 (struct frame_saved_regs): Delete definition.
8921 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8922 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8923 (hppa_frame_find_saved_regs): Delete declaration.
8924 (FRAME_FIND_SAVED_REGS): Delete macro.
8925 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8926 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8927 FRAME_FIND_SAVED_REGS in comment.
8928
be41e9f4
AC
89292003-04-05 Andrew Cagney <cagney@redhat.com>
8930
8931 * frame.c (frame_func_unwind, get_frame_func): New functions.
8932 * frame.h (get_frame_func, frame_func_unwind): Declare.
8933 (struct frame_info): Add field "prev_func" for caching the
8934 previous frame's function address.
8935 * arm-tdep.c (arm_frameless_function_invocation): Combine
8936 get_pc_function_start and get_frame_pc into get_frame_func.
8937 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8938 (sh64_nofp_frame_init_saved_regs): Ditto.
8939 * s390-tdep.c (s390_function_start): Ditto.
8940 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8941 (rs6000_frameless_function_invocation): Ditto.
8942 (rs6000_frame_saved_pc): Ditto.
8943 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8944 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8945 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8946 (i386_frame_init_saved_regs): Ditto.
8947 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8948 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8949 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8950 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8951 * blockframe.c (frameless_look_for_prologue): Ditto.
8952
a01dd7cc
AC
89532003-04-05 Andrew Cagney <cagney@redhat.com>
8954
8955 * frame.c (legacy_get_prev_frame): Link prev to next at the
8956 function start. Update comments.
8957
5e5592e6
AC
89582003-04-05 Andrew Cagney <cagney@redhat.com>
8959
8960 * frame.c (get_frame_id): Update comment.
8961 (legacy_get_prev_frame): Update comment.
8962 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8963 * gdbarch.h: Regenerate.
8964 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8965 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8966
6fba5002
AC
89672003-04-05 Andrew Cagney <cagney@redhat.com>
8968
8969 * stack.c (print_frame_info): Use get_frame_pc.
8970
7df05f2b
AC
89712003-04-04 Andrew Cagney <cagney@redhat.com>
8972
8973 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8974 the frame's type from the unwinder.
8975 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8976 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8977 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8978 (get_frame_base_address): Use get_frame_type.
8979 (get_frame_locals_address, get_frame_args_address): Ditto.
8980 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8981 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8982 (struct frame_info): Add comment explaining why the frame contains
8983 a "type" field.
8984 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8985 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8986 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8987 NORMAL_FRAME.
8988 * frame-unwind.h: Include "frame.h".
8989 (struct frame_unwind): Add "type" field.
8990 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8991
11889732
AC
89922003-04-04 Andrew Cagney <cagney@redhat.com>
8993
8994 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8995 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8996 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8997 get_frame_base.
8998 (d10v_unwind_dummy_id): Use frame_id_build.
8999 * frame.c (find_frame_sal): Use get_frame_pc.
9000 (create_new_frame): Use deprecated_update_frame_pc_hack and
9001 deprecated_update_frame_base_hack.
9002 (create_sentinel_frame): Add comment about ->pc going away.
9003 (get_prev_frame): Add comment about ->pc going away.
9004 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9005 frame_id_build, deprecated_update_frame_pc_hack and
9006 deprecated_update_frame_base_hack.
9007 (select_frame): Use get_frame_pc.
9008 (legacy_saved_regs_this_id): Use frame_id_build.
9009
50c46a0d
EZ
90102003-04-04 Elena Zannoni <ezannoni@redhat.com>
9011
fbe586ae
RH
9012 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9013 signed integer case.
9014 (classify_argument): Handle enumerations and references.
50c46a0d 9015
50bbdbd9
AC
90162003-04-04 Andrew Cagney <cagney@redhat.com>
9017
9018 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9019 ID to NULL.
9020
36018d2e
AF
90212003-04-01 Adam Fedor <fedor@gnu.org>
9022
9023 * gdb/objc-lang.c (selectors_info): Replace calls to
9024 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9025 SYMBOL_NATURAL_NAME.
9026 (classes_info, find_methods): Likewise.
9027
35cec841
KB
90282003-04-03 Kevin Buettner <kevinb@redhat.com>
9029
9030 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9031 ``mach'' to the value determined by bfd_default_set_arch_mach().
9032
43136899
BR
90332003-04-02 Bob Rossi <bob_rossi@cox.net>
9034
9035 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9036 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9037 (mi-cmd-file.o): Update dependencies.
9038
040b99fd
KB
90392003-04-01 Kevin Buettner <kevinb@redhat.com>
9040
9041 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9042 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9043
9a3d7dfd
AF
90442003-04-01 Adam Fedor <fedor@gnu.org>
9045
9046 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9047 * language.h (struct language_defn): Add la_demangle.
9048 (language_demangle): Declare.
9049 * language.c (language_demangle): New function.
9050 (unk_lang_demangle): Likewise.
9051 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9052 Add ukn_lang_demangle.
9a3d7dfd 9053 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9054 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9055 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9056 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9057 * jv-lang.c (java_demangle): New function
9058 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9059 * objc-lang.c (objc_demangle): Add options argument
9060 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9061 * maint.c (maintenance_demangle): Replace switch with
9062 call to language_demangle.
9063 * utils.c (fprintf_symbol_filtered): Likewise.
9064
5e074003
AC
90652003-04-01 Andrew Cagney <cagney@redhat.com>
9066
9067 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9068 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9069 PRINT_TYPELESS_INTEGER.
9070 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9071 PUSH_RETURN_ADDRESS.
9072
270cb5d6
AC
90732003-04-01 Andrew Cagney <cagney@redhat.com>
9074
9075 * Makefile.in (d10v-tdep.o): Update dependencies.
9076 * d10v-tdep.c: Include "frame-base.h".
9077 (d10v_frame_unwind): Make constant.
9078 (d10v_frame_base_address): New function.
9079 (d10v_frame_base): New variable.
9080 (d10v_gdbarch_init): Set frame_base default.
9081 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9082 comment for base.
9083 (d10v_frame_unwind_cache): Set and use "prev_sp".
9084 (d10v_frame_this_id): Use the previous frame's inner most stack
9085 address and this frame's func address for the frame ID. Use
9086 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9087
6bfb3e36
AC
90882003-04-01 Andrew Cagney <cagney@redhat.com>
9089
9090 * frame.h (get_frame_locals_address, get_frame_args_address):
9091 Refer to the base address, instead of the address of the first
9092 local or parameter.
8ffd9b1b 9093
da62e633
AC
90942003-04-01 Andrew Cagney <cagney@redhat.com>
9095
9096 Add frame debug info addresses:
9097 * frame-base.c: New file.
9098 * frame-base.h: New file.
9099 * frame.h (struct frame_base): Add opaque declaration.
9100 (get_frame_base): Update comment.
9101 (get_frame_base_address): Declare.
9102 (get_frame_locals_address): Declare.
9103 (get_frame_args_address): Declare.
9104 (struct frame_info): Add "base" and "base_cache". Update
9105 comments on the unwinder.
9106 * frame.c: Include "frame-base.h".
9107 (get_frame_locals_address): New function.
9108 (get_frame_base_address): New function.
9109 (get_frame_args_address): New function.
9110 * findvar.c (read_var_value): Use get_frame_locals_address and
9111 get_frame_args_address.
9112 * stack.c (frame_info): Use get_frame_locals_address and
9113 get_frame_args_address.
9114 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9115 moved to "frame-base.c".
9116 * printcmd.c (print_frame_nameless_args): Ditto.
9117 * symtab.h (address_class): Update comments.
9118 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9119 get_frame_base_address.
9120 * dwarf2expr.c (execute_stack_op): Ditto.
9121 * Makefile.in (frame_base_h): Define.
9122 (frame.o): Update dependencies.
9123 (frame-base.o): Add dependencies.
9124 (SFILES): Add frame-base.c.
9125 (COMMON_OBS): Add frame-base.o.
9126
3d30e9c2
AC
91272003-04-01 Andrew Cagney <cagney@redhat.com>
9128
9129 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9130 CALL_DUMMY_LENGTH): Ditto.
9131 * gdbarch.c: Re-generate.
9132 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9133 (CALL_DUMMY_LENGTH): Delete macro.
9134 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9135 * arm-tdep.c (arm_gdbarch_init): Ditto.
9136 * avr-tdep.c (avr_gdbarch_init): Ditto.
9137 * cris-tdep.c (cris_gdbarch_init): Ditto.
9138 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9139 * frv-tdep.c (frv_gdbarch_init): Ditto.
9140 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9141 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9142 * i386-tdep.c (i386_gdbarch_init): Ditto.
9143 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9146 * mips-tdep.c (mips_gdbarch_init): Ditto.
9147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9148 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9149 * s390-tdep.c (s390_gdbarch_init): Ditto.
9150 * sh-tdep.c (sh_gdbarch_init): Ditto.
9151 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9152 * v850-tdep.c (v850_gdbarch_init): Ditto.
9153 * vax-tdep.c (vax_gdbarch_init): Ditto.
9154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9155
ce0c7262
CV
91562003-04-01 Corinna Vinschen <vinschen@redhat.com>
9157
9158 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9159
73dd234f
AC
91602003-04-01 Andrew Cagney <cagney@redhat.com>
9161
9162 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9163 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9164 * gdbarch.h, gdbarch.c: Re-generate.
9165 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9166 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9167 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9168 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9169 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9170 * infcmd.c (run_stack_dummy): Simplify assuming
9171 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9172 * infrun.c (handle_inferior_event): Ditto.
9173 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9174 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9175 * arm-tdep.c (arm_gdbarch_init): Ditto.
9176 * avr-tdep.c (avr_gdbarch_init): Ditto.
9177 * cris-tdep.c (cris_gdbarch_init): Ditto.
9178 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9179 * frv-tdep.c (frv_gdbarch_init): Ditto.
9180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9181 * i386-tdep.c (i386_gdbarch_init): Ditto.
9182 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9184 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9186 * mips-tdep.c (mips_gdbarch_init): Ditto.
9187 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9188 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9189 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9190 * s390-tdep.c (s390_gdbarch_init): Ditto.
9191 * sh-tdep.c (sh_gdbarch_init): Ditto.
9192 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9193 * v850-tdep.c (v850_gdbarch_init): Ditto.
9194 * vax-tdep.c (vax_gdbarch_init): Ditto.
9195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9196
97606a13
DJ
91972003-04-01 Daniel Jacobowitz <drow@mvista.com>
9198
9199 * symfile.c (symfile_relocate_debug_section): Update call to
9200 bfd_simple_get_relocated_section_contents.
9201
e8ab51f7
AC
92022003-03-31 Andrew Cagney <cagney@redhat.com>
9203
9204 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9205 * gdbarch.h, gdbarch.c: Regenerate.
9206 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9207 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9208 available.
9209 * frame.h (generic_fix_call_dummy): Delete declaration.
9210 * dummy-frame.h: Update comment.
9211 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9213 fix_call_dummy.
9214 * sh-tdep.c (sh_gdbarch_init): Ditto.
9215 * s390-tdep.c (s390_gdbarch_init): Ditto.
9216 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9217 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9219 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9220 * i386-tdep.c (i386_gdbarch_init): Ditto.
9221 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9222 * frv-tdep.c (frv_gdbarch_init): Ditto.
9223 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9224 * cris-tdep.c (cris_gdbarch_init): Ditto.
9225 * avr-tdep.c (avr_gdbarch_init): Ditto.
9226 * arm-tdep.c (arm_gdbarch_init): Ditto.
9227
018d1b48
JB
92282003-03-31 J. Brobecker <brobecker@gnat.com>
9229
9230 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9231 (INIT_FRAME_AP): Likewise.
9232 (EXTRA_FRAME_INFO): Likewise.
9233
e9a2674e
AC
92342003-03-31 Andrew Cagney <cagney@redhat.com>
9235
9236 * gdbarch.sh: Include "symfile.h".
9237 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9238 * gdbarch.h, gdbarch.c: Re-generate.
9239 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9240 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9241 call_dummy_address, the default is at entry_point_address.
9242 * v850-tdep.c (v850_gdbarch_init): Ditto.
9243 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9244 * sh-tdep.c (sh_gdbarch_init): Ditto.
9245 * s390-tdep.c (s390_gdbarch_init): Ditto.
9246 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9247 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9248 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9249 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9250 * i386-tdep.c (i386_gdbarch_init): Ditto.
9251 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9252 * frv-tdep.c (frv_gdbarch_init): Ditto.
9253 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9254 * cris-tdep.c (cris_gdbarch_init): Ditto.
9255 * arm-tdep.c (arm_gdbarch_init): Ditto.
9256
e8a8712a
AC
92572003-03-31 Andrew Cagney <cagney@redhat.com>
9258
9259 * gdbarch.sh (CALL_DUMMY_P): Delete.
9260 * gdbarch.h, gdbarch.c: Re-generate.
9261 * inferior.h (CALL_DUMMY_P): Delete macro.
9262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9263 * vax-tdep.c (vax_gdbarch_init): Update.
9264 * v850-tdep.c (v850_gdbarch_init): Update.
9265 * sparc-tdep.c (sparc_gdbarch_init): Update.
9266 * sh-tdep.c (sh_gdbarch_init): Update.
9267 * s390-tdep.c (s390_gdbarch_init): Update.
9268 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9269 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9270 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9271 * mips-tdep.c (mips_gdbarch_init): Update.
9272 * mcore-tdep.c (mcore_gdbarch_init): Update.
9273 * m68k-tdep.c (m68k_gdbarch_init): Update.
9274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9275 * ia64-tdep.c (ia64_gdbarch_init): Update.
9276 * i386-tdep.c (i386_gdbarch_init): Update.
9277 * h8300-tdep.c (h8300_gdbarch_init): Update.
9278 * frv-tdep.c (frv_gdbarch_init): Update.
9279 * d10v-tdep.c (d10v_gdbarch_init): Update.
9280 * cris-tdep.c (cris_gdbarch_init): Update.
9281 * breakpoint.c (deprecated_frame_in_dummy): Update.
9282 * avr-tdep.c (avr_gdbarch_init): Update.
9283 * alpha-tdep.c (alpha_gdbarch_init): Update.
9284 * arm-tdep.c (arm_gdbarch_init): Update.
9285 * dummy-frame.c (dummy_frame_this_id): Update comments.
9286 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9287 * frame.c (legacy_get_prev_frame): Ditto.
9288 * valops.c (call_function_by_hand): Delete function.
9289 (hand_function_call): Rename to call_function_by_hand
9290
ed234cf8
AC
92912003-03-30 Andrew Cagney <cagney@redhat.com>
9292
9293 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9294 * value.h (struct value): Update comment.
ed234cf8 9295
06c77151
AC
92962003-03-30 Andrew Cagney <cagney@redhat.com>
9297
6c2b5168
AC
9298 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9299 D10V_FP_REGNUM.
9300 (d10v_gdbarch_init): Do not set fp_regnum.
9301
06c77151
AC
9302 * frame.c (get_frame_base): Force ID initialization.
9303 (get_prev_frame): Move computation of the frame ID from here ...
9304 (get_frame_id): ... to here.
9305 (legacy_get_prev_frame): Mark the frame ID as valid.
9306 * frame.h (struct frame_info): Add field "id_p".
9307
97a1a11c
MK
93082003-03-30 Mark Kettenis <kettenis@gnu.org>
9309
9310 * i386-tdep.c (i386_store_struct_return): Removed.
9311 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9312
6c0e89ed
AC
93132003-03-30 Andrew Cagney <cagney@redhat.com>
9314
9315 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9316 * gdbarch.h, gdbarch.c: Regenerate.
9317 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9318 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9319 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9320 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9321 * i386-tdep.c (i386_gdbarch_init): Ditto.
9322 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9323 * cris-tdep.c (cris_gdbarch_init): Ditto.
9324 * vax-tdep.c (vax_gdbarch_init): Ditto.
9325 * s390-tdep.c (s390_gdbarch_init): Ditto.
9326 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9327 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9328 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9329 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9330 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9331 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9332 * sparc-tdep.c (sparc_gdbarch_init): Update.
9333 * sh-tdep.c (sh_gdbarch_init): Update.
9334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9335 * mips-tdep.c (mips_gdbarch_init): Update.
9336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9337 * ia64-tdep.c (ia64_gdbarch_init): Update.
9338 * frv-tdep.c (frv_gdbarch_init): Update.
9339 * avr-tdep.c (avr_gdbarch_init): Update.
9340 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9341 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9342 instead of when push_dummy_call is not available.
8ffd9b1b 9343
f7dd6af2
AC
93442003-03-30 Andrew Cagney <cagney@redhat.com>
9345
9346 * infttrace.c: Include "gdbthread.h".
9347 (parent_attach_all): Fix function signature.
9348 (call_ptrace): Update call.
9349 * Makefile.in (infttrace.o): Update dependencies.
9350
28f617b3
AC
93512003-03-30 Andrew Cagney <cagney@redhat.com>
9352
9353 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9354 PUSH_RETURN_ADDRESS.
9355 * gdbarch.h, gdbarch.c: Regenerate.
9356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9357 * x86-64-tdep.c (x86_64_init_abi): Update.
9358 * v850-tdep.c (v850_gdbarch_init): Update.
9359 * sparc-tdep.c (sparc_gdbarch_init): Update.
9360 * sh-tdep.c (sh_gdbarch_init): Update.
9361 * s390-tdep.c (s390_gdbarch_init): Update.
9362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9363 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9364 * mips-tdep.c (mips_gdbarch_init): Update.
9365 * mcore-tdep.c (mcore_gdbarch_init): Update.
9366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9367 * ia64-tdep.c (ia64_gdbarch_init): Update.
9368 * i386-tdep.c (i386_gdbarch_init): Update.
9369 * h8300-tdep.c (h8300_gdbarch_init): Update.
9370 * frv-tdep.c (frv_gdbarch_init): Update.
9371 * cris-tdep.c (cris_gdbarch_init): Update.
9372 * avr-tdep.c (avr_gdbarch_init): Update.
9373 * arm-tdep.c (arm_gdbarch_init): Update.
9374 * valops.c (hand_function_call): Update.
9375
4d628cd7
AC
93762003-03-29 Andrew Cagney <cagney@redhat.com>
9377
9378 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9379 sizeof_call_dummy_words.
9380 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9381 define.
9382 * gdbarch.h: Regenerate.
8ffd9b1b 9383
65e82032
AC
93842003-03-29 Andrew Cagney <cagney@redhat.com>
9385
9386 * infttrace.h: New file.
9387 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9388 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9389 (hpread_read_doc_function_type): Detect an initialized type1.
9390 (hpread_quick_traverse): Initialize mod_name_string.
9391 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9392 (som_solib_get_solib_by_pc): Declare.
9393 (so_lib_thread_start_addr): Declare.
9394 (no_shared_libraries): Declare.
9395 * somread.c (init_import_symbols): Make static. Add forward
9396 declaration.
9397 * config/pa/nm-hppah.h: Include "infttrace.h" for
9398 parent_attach_all.
9399 (hppa_insert_hw_watchpoint): Declare.
9400 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9401 * hppah-nat.c: Include "gdb_string.h".
9402 (parent_attach_all): Delete extern declaration, moved to
9403 "infttrace.h".
9404 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9405 int.
9406 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9407 * Makefile.in (infttrace_h): Define.
9408 (hpread.o): Update dependencies.
9409 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9410 * hppa-hpux-tdep.c: Include "gdb_string.h".
9411 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9412 * infrun.c (handle_inferior_event): Always initialize
9413 stepped_after_stopped_by_watchpoint. Add default and remove
9414 fallthrough in switch statement.
9415 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9416 parameter to int.
9417 (hppa_remove_hw_watchpoint): Ditto.
9418
2c3bbe77
AC
94192003-03-29 Andrew Cagney <cagney@redhat.com>
9420
9421 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9422 offset.
9423
2dd604e7
RE
94242003-03-29 Richard Earnshaw <rearnsha@arm.com>
9425
9426 * arm-tdep.c (arm_push_arguments): Delete.
9427 (struct stack_item): New type.
9428 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9429 (arm_store_struct_return): Delte.
9430 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9431 arm_push_arguments or arm_store_struct_return.
9432
e8933a55
AC
94332003-03-28 Andrew Cagney <cagney@redhat.com>
9434
9435 * Makefile.in (d10v-tdep.o): Update dependencies.
9436 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9437 * d10v-tdep.c: Include "remote.h".
9438 (target_resume_hook): Delete extern declaration.
9439 (target_wait_loop_hook): Ditto.
9440 (tdisassemble_command): Eliminate assignment in "if" conditional.
9441 (d10v_ts2_register_sim_regno): Eliminate call to
9442 legacy_register_sim_regno.
9443 (d10v_ts3_register_sim_regno): Ditto.
9444
6949171e
JJ
94452003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9446
9447 * thread.c: Reindented.
9448 * lin-lwp.c: Ditto.
9449 * linux-proc.c: Ditto.
9450
98c7071f
BR
94512003-03-28 Bob Rossi <bob_rossi@cox.net>
9452
fbe586ae 9453 * MAINTAINERS (write after approval): Add myself.
98c7071f 9454
5edc9ca6
TR
94552003-03-27 Theodore A. Roth <troth@openavr.org>
9456
9457 * objc-exp.y: Add missing semi-colons.
9458
378bfd1b
AC
94592003-03-27 Andrew Cagney <cagney@redhat.com>
9460
9461 * regcache.c (write_sp): Delete function and references.
9462 * inferior.h (write_sp): Delete declaration.
9463 * valops.c (hand_function_call): Replace write_sp with
9464 TARGET_WRITE_SP.
9465 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9466 (sparc_pop_frame): Ditto.
8ffd9b1b 9467
56056df7
AC
94682003-03-27 Andrew Cagney <cagney@redhat.com>
9469
9470 * NEWS: Mention removal of support for hppa*-*-bsd* and
9471 hppa*-*-osf* natives, and hppa*-*-pro* target.
9472 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9473 * config/pa/xm-pa.h: Obsolete file.
9474 * config/pa/xm-hppab.h: Obsolete file.
9475 * config/pa/nm-hppab.h: Obsolete file.
9476 * config/pa/tm-hppab.h: Obsolete file.
9477 * config/pa/tm-hppao.h: Obsolete file.
9478 * config/pa/nm-hppao.h: Obsolete file.
9479 * config/pa/tm-pro.h: Obsolete file.
9480 * config/pa/hppaosf.mt: Obsolete file.
9481 * config/pa/hppaosf.mh: Obsolete file.
9482 * config/pa/hppapro.mt: Obsolete file.
9483 * config/pa/hppabsd.mt: Obsolete file.
9484 * config/pa/hppabsd.mh: Obsolete file.
9485 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9486 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9487 hppa*-*-osf*.
9488
5873a88d
AC
94892003-03-27 Andrew Cagney <cagney@redhat.com>
9490
9491 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9492 push_arguments. Don't set push_return_address or write_sp.
9493 (d10v_push_dummy_call): Replace d10v_push_arguments.
9494 (d10v_push_return_address, d10v_write_sp): Delete function,
9495 handled by push_dummy_call.
9496
b81774d8
AC
94972003-03-26 Andrew Cagney <cagney@redhat.com>
9498
9499 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9500 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9501 regcache and dummy_addr parameters.
9502 * gdbarch.h, gdbarch.c: Re-generate.
9503 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9504 available; assume it will handle stack alignment and return
9505 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9506 legacy_push_arguments.
9507 (legacy_push_arguments): Rename default_push_arguments.
9508 * value.h (legacy_push_arguments): Rename default_push_arguments.
9509 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9510 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9511 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9512 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9513 * config/i386/tm-symmetry.h: Update.
9514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9515 * x86-64-tdep.c (x86_64_init_abi): Update.
9516 * v850-tdep.c (v850_gdbarch_init): Update.
9517 * sparc-tdep.c (sparc_gdbarch_init): Update.
9518 * sh-tdep.c (sh_gdbarch_init): Update.
9519 * s390-tdep.c (s390_gdbarch_init): Update.
9520 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9521 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9522 * mips-tdep.c (mips_gdbarch_init): Update.
9523 * mcore-tdep.c (mcore_gdbarch_init): Update.
9524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9525 * ia64-tdep.c (ia64_gdbarch_init): Update.
9526 * i386-tdep.c (i386_gdbarch_init): Update.
9527 * hppa-tdep.c (hppa_gdbarch_init): Update.
9528 * h8300-tdep.c (h8300_gdbarch_init): Update.
9529 * frv-tdep.c (frv_gdbarch_init): Update.
9530 * d10v-tdep.c (d10v_gdbarch_init): Update.
9531 * cris-tdep.c (cris_gdbarch_init): Update.
9532 * avr-tdep.c (avr_gdbarch_init): Update.
9533 * arm-tdep.c (arm_gdbarch_init): Update.
9534 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9535 * alpha-tdep.c (alpha_gdbarch_init): Update.
9536
f541410f
DJ
95372003-03-26 Daniel Jacobowitz <drow@mvista.com>
9538
9539 * signals/signals.c (do_target_signal_to_host): Correct realtime
9540 signal range test.
9541
69f567ae
DJ
95422003-03-26 Daniel Jacobowitz <drow@mvista.com>
9543
9544 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9545 (struct sal_chain, map_catch_names): Remove.
9546 (catch_exception_command_1): Don't call
9547 handle_gnu_4_16_catch_command.
9548
d5d14a5a
DJ
95492003-03-26 Daniel Jacobowitz <drow@mvista.com>
9550
9551 From Mark Dettinger <dettinge@de.ibm.com>:
9552 * dwarf2cfi.c (read_2u): Increment pointer by two.
9553
bdd73e22
DJ
95542003-03-26 Daniel Jacobowitz <drow@mvista.com>
9555
9556 * signals/signals.c: Fix typos in last change.
9557
960cb555
DJ
95582003-03-26 Daniel Jacobowitz <drow@mvista.com>
9559
9560 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9561 not already defined. Use __SIGRTMIN if available.
9562 (target_signal_from_host): Remove SIGRTMIN block.
9563 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9564 the signal is within the realtime range.
9565
f636b87d
AF
95662003-03-25 Adam Fedor <fedor@gnu.org>
9567
9568 * Makefile.in (infrun.o): Add $(language_h)
9569 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9570 for language specific trampolines.
9571 * language.h (struct language_defn): Add skip_trampoline.
9572 (skip_language_trampoline): Declare.
9573 * language.c (unk_lang_trampoline, skip_language_trampoline):
9574 New functions.
9575 (unknown_language_defn, auto_language_defn, local_language_defn):
9576 Add ukn_lang_trampoline.
9577 * ada-lang.c (ada_language_defn): Add NULL for language
9578 specific skip_trampoline.
9579 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9580 scm-lang.c: Likewise.
9581 * objc-lang.c (objc_skip_trampoline): New function.
9582 (objc_language_defn): Add objc_skip_trampoline.
9583
28f617b3 95842003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9585
9586 * frame.c (get_prev_frame): Delay validating a frame's ID -
9587 non-NULL, didn't go backwards - until an attempt to unwind it to
9588 the previous frame.
9589
f933a9c5
AC
95902003-03-25 Andrew Cagney <cagney@redhat.com>
9591
9592 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9593 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9594 * gdbarch.h, gdbarch.c: Re-generate.
9595 * config/sparc/tm-sparc.h
9596 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9597 * sparc-tdep.c (sparc_gdbarch_init): Set
9598 deprecated_extra_stack_alignment_needed.
9599 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9601 extra_stack_alignment_needed.
9602 * v850-tdep.c (v850_gdbarch_init): Ditto.
9603 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9604 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9605 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9606 * cris-tdep.c (cris_gdbarch_init): Ditto.
9607 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9609
4183d812
AC
96102003-03-25 Andrew Cagney <cagney@redhat.com>
9611
9612 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9613 STORE_STRUCT_RETURN.
9614 * gdbarch.h, gdbarch.c: Regenerate.
9615 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9616 (d10v_push_arguments): Set the struct return register.
9617 (d10v_gdbarch_init): Update.
9618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9619 * x86-64-tdep.c (x86_64_init_abi): Update.
9620 * vax-tdep.c (vax_gdbarch_init): Update.
9621 * v850-tdep.c (v850_gdbarch_init): Update.
9622 * sparc-tdep.c (sparc_gdbarch_init): Update.
9623 * sh-tdep.c (sh_gdbarch_init): Update.
9624 * s390-tdep.c (s390_gdbarch_init): Update.
9625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9626 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9627 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9628 * mips-tdep.c (mips_gdbarch_init): Update.
9629 * mcore-tdep.c (mcore_gdbarch_init): Update.
9630 * m68k-tdep.c (m68k_gdbarch_init): Update.
9631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9632 * ia64-tdep.c (ia64_gdbarch_init): Update.
9633 * i386-tdep.c (i386_gdbarch_init): Update.
9634 * hppa-tdep.c (hppa_gdbarch_init): Update.
9635 * h8300-tdep.c (h8300_gdbarch_init): Update.
9636 * frv-tdep.c (frv_gdbarch_init): Update.
9637 * cris-tdep.c (cris_gdbarch_init): Update.
9638 * avr-tdep.c (avr_gdbarch_init): Update.
9639 * arm-tdep.c (arm_gdbarch_init): Update.
9640 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9641
1bf6d5cc
AC
96422003-03-25 Andrew Cagney <cagney@redhat.com>
9643
9644 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9645 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9646 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9647 * gdbarch.h, gdbarch.c: Regenerate.
9648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9649 call_dummy_stack_adjust_p.
9650 * vax-tdep.c (vax_gdbarch_init): Ditto.
9651 * v850-tdep.c (v850_gdbarch_init): Ditto.
9652 * sh-tdep.c (sh_gdbarch_init): Ditto.
9653 * s390-tdep.c (s390_gdbarch_init): Ditto.
9654 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9655 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9656 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9657 * mips-tdep.c (mips_gdbarch_init): Ditto.
9658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9659 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9661 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9662 * i386-tdep.c (i386_gdbarch_init): Ditto.
9663 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9664 * frv-tdep.c (frv_gdbarch_init): Ditto.
9665 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9666 * cris-tdep.c (cris_gdbarch_init): Ditto.
9667 * avr-tdep.c (avr_gdbarch_init): Ditto.
9668 * arm-tdep.c (arm_gdbarch_init): Ditto.
9669 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9670 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9671 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9672 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9673 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9674 call_dummy_stack_adjust_p.
9675 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9676 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9677 * sparc-tdep.c (sparc32_push_arguments): Update.
9678 * valops.c (hand_function_call): Update.
9679
71c08af0
CV
96802003-03-25 Corinna Vinschen <vinschen@redhat.com>
9681
9682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9683 set_gdbarch_char_signed.
9684
30757f90
RE
96852003-03-25 Richard Earnshaw <rearnsha@arm.com>
9686
9687 PR cli/548
9688 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9689
03d48a7d
RE
96902003-03-25 Richard Earnshaw <rearnsha@arm.com>
9691
9692 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9693 (_initialize_arm_tdep): Don't set tm_print_insn.
9694
2cf6873c
AF
96952003-03-24 Adam Fedor <fedor@gnu.org>
9696
9697 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9698 * objc-lang.h: Add multiple inclusion protection.
9699 (start_msglist, add_msglist, end_msglist): Additional declarations.
9700
17c0759e
RE
97012003-03-24 Richard Earnshaw <rearnsha@arm.com>
9702
9703 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9704 value was renamed to ARM_FLOAT_SOFT_FPA.
9705
618ce49f
AC
97062003-03-23 Andrew Cagney <cagney@redhat.com>
9707
9708 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9709 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9710 * gdbarch.h, gdbarch.c: Regenerate.
9711 * valops.c (hand_function_call): Update.
9712 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9713 * frame.c (legacy_saved_regs_this_id): Update.
9714 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9715 * dummy-frame.h: Update.
9716 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9717 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9718 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9719 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9720 * config/m68k/tm-sun3.h: Update.
9721 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9723 * x86-64-tdep.c (x86_64_init_abi): Update.
9724 * vax-tdep.c (vax_gdbarch_init): Update.
9725 * v850-tdep.c (v850_gdbarch_init): Update.
9726 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9727 * sh-tdep.c (sh_gdbarch_init): Update.
9728 * s390-tdep.c (s390_gdbarch_init): Update.
9729 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9730 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9731 (frame_get_saved_regs): Update.
9732 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9733 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9734 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9735 * mips-tdep.c (mips_gdbarch_init): Update.
9736 * mcore-tdep.c (mcore_gdbarch_init): Update.
9737 * m68k-tdep.c (m68k_gdbarch_init): Update.
9738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9739 * ia64-tdep.c (ia64_gdbarch_init): Update.
9740 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9741 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9742 (i386_interix_back_one_frame): Update.
9743 * hppa-tdep.c (hppa_gdbarch_init): Update.
9744 (hppa_init_extra_frame_info): Update.
9745 * h8300-tdep.c (h8300_gdbarch_init): Update.
9746 * frv-tdep.c (frv_gdbarch_init): Update.
9747 * cris-tdep.c (cris_gdbarch_init): Update.
9748 * avr-tdep.c (avr_gdbarch_init): Update.
9749 * arm-tdep.c (arm_gdbarch_init): Update.
9750 * alpha-tdep.c (alpha_gdbarch_init): Update.
9751
fd50bc42
RE
97522003-03-22 Richard Earnshaw <rearnsha@arm.com>
9753
9754 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9755 (arm_get_fp_model): Declare.
9756 * arm-tdep.c (fp_model_strings): New string array.
9757 (arm_fp_model, current_fp_model): New variables.
9758 (arm_get_fp_model): New function.
9759 (arm_set_fp): New function.
9760 (set_fp_model_sfunc): New function.
9761 (show_fp_model): New function.
9762 (_initialize_arm_tdep): Add new command to set/show the FPU.
9763 (arm_extract_return_value): Use arm_get_fp_model.
9764 (arm_store_return_value): Likewise.
9765 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9766 to initialize the floating-point data types.
9767 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9768 model is FPA.
9769
26304000
RE
97702003-03-22 Richard Earnshaw <rearnsha@arm.com>
9771
9772 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9773 the current setting of each value.
9774 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9775 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9776 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9777 commands and add new version as subcommands of "set/show arm".
9778
afd7eef0
RE
97792003-03-22 Richard Earnshaw <rearnsha@arm.com>
9780
9781 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9782 (set_arm_command, show_arm_command): New functions.
9783 (_initialize_arm_tdep): Add them.
9784 (num_disassembly_options): Renamed from num_flavor_options.
9785 (valid_disassembly_styles): Renamed from valid_flavors.
9786 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9787 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9788 set_disassembly_flavor_sfunc.
9789 (set_disassembly_style): Renamed from set_disassembly_flavor.
9790 (arm_othernames): Updated.
9791 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9792 command. Add "set/show arm disassembly" commands. Deprecate
9793 "othernames" command.
9794
299a7944
RE
97952003-03-22 Richard Earnshaw <rearnsha@arm.com>
9796
9797 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9798 (arm-tdep.o): Depend on elf_arm_h.
9799
c1dac9e6
RE
98002003-03-22 Richard Earnshaw <rearnsha@arm.com>
9801
9802 * Makefile.in (coff_internal_h): Define.
9803 (arm-tdep.o): Update dependencies.
9804
2702d96c
RE
98052003-03-22 Richard Earnshaw <rearnsha@arm.com>
9806
9807 * arm-tdep.c (prologue_cache): Delete.
9808 (check_prologue_cache, save_prologue_cache): Delete.
9809 (arm_scan_prologue): Don't check or update the prologue_cache.
9810 (arm_gdb_arch_init): Don't initialize it.
9811 (_initialize_arm_tdep): Likewise.
9812
27d5d74b
SC
98132003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9814
9815 * MAINTAINERS (tui): Maintainer of tui code.
9816
1762d96d
CV
98172003-03-21 Corinna Vinschen <vinschen@redhat.com>
9818
9819 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9820 (i386-cygwin-tdep.o): Add dependencies.
9821 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9822 * i386-cygwin-tdep.c: New file.
9823 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9824 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9825
4c2e2391
AC
98262003-03-20 Andrew Cagney <cagney@redhat.com>
9827
f20d38b7
AC
9828 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9829 (handle_inferior_event): Remove code calling
9830 DYNAMIC_TRAMPOLINE_NEXTPC.
9831
0022b738
AC
9832 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9833 already has a full path.
9834
864dbc90
AC
9835 * main.c (gdb_main): Return 1.
9836 (captured_main): Call error to report an invalid interpreter.
9837
4c2e2391
AC
9838 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9839 * alpha-osf1-tdep.c: Include "gdb_string.h".
9840
5ef7553b
JB
98412003-03-19 J. Brobecker <brobecker@gnat.com>
9842
9843 Continuing work to convert the hppa targets to multiarch partial.
9844
9845 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9846 method, now that hppa_push_dummy_frame has a conformant prototype.
9847 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9848 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9849 for the switch to multiarch partial.
9850
7bde8967
KB
98512003-03-19 Kevin Buettner <kevinb@redhat.com>
9852
9853 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9854 when iss is issNull.
9855
b006a9e9
KB
98562003-03-18 Kevin Buettner <kevinb@redhat.com>
9857
9858 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9859 NUM_REGS bounds check.
9860
5e2e9765
KB
98612003-03-18 Kevin Buettner <kevinb@redhat.com>
9862
9863 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9864 * mips-tdep.c (gdb_assert.h): Include.
9865 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9866 (mips_register_name): Handle integer registers explicitly. Add
9867 bounds checking.
9868 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9869 (mips_lsi33k_reg_names): Don't list integer registers; they're
9870 handled by mips_register_name() now.
9871 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9872 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9873 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9874 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9875 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9876
a2867626
AC
98772003-03-18 Andrew Cagney <cagney@redhat.com>
9878
9879 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9880 a void pointer.
9881 * gdbtypes.h (print_scalar_formatted): Update declaration.
9882 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9883
06600e06
JB
98842003-03-18 J. Brobecker <brobecker@gnat.com>
9885
9886 * infrun.c (observer.h): Add #include.
9887 (normal_stop): Add call to observer_notify_normal_stop.
9888 * Makefile.in (infrun.o): Add dependency on observer.h.
9889
7daf4f5b
JB
98902003-03-18 J. Brobecker <brobecker@gnat.com>
9891
9892 Continuing work to convert the hppa targets to multiarch partial.
9893 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9894 parameter. Reformat comment.
9895 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9896 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9897 to match new profile.
9898
3371ccc0
JB
98992003-03-18 J. Brobecker <brobecker@gnat.com>
9900
9901 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9902 appear to be working in any case.
9903
4fbe891e
JB
99042003-03-18 J. Brobecker <brobecker@gnat.com>
9905
9906 * observer.c (observer_test_first_observer): New static variable.
9907 (observer_test_second_observer): Likewise.
9908 (observer_test_third_observer): Likewise.
9909 (observer_test_first_notification_function): New static function.
9910 (observer_test_second_notification_function): Likewise.
9911 (observer_test_third_notification_function): Likewise.
9912
a7ff40e7
JB
99132003-03-17 J. Brobecker <brobecker@gnat.com>
9914
9915 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9916 * somsolib.c (gdb_assert.h): Likewise.
9917 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9918 (somsolib.o): Likewise.
9919
26ca4152
AC
99202003-03-17 Andrew Cagney <cagney@redhat.com>
9921
9922 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9923 BFD. Simplify setting of di.endian.
9924
0a613259
AC
99252003-03-17 Andrew Cagney <cagney@redhat.com>
9926
9927 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9928 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9929
9930 From Elena Zannoni <ezannoni@redhat.com>
9931 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9932 vector and floating-point parameters.
9933 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9934 convention.
9935 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9936
1132738f
FN
99372003-03-17 Fernando Nasser <fnasser@redhat.com>
9938
9939 * MAINTAINERS: Remove my name from several maintainership roles.
9940
6dc42492
AC
99412003-03-17 Andrew Cagney <cagney@redhat.com>
9942
9943 Fix frame off-by-one bug.
9944 * frame-unwind.h (frame_this_id_ftype): Replace
9945 frame_unwind_id_ftype.
9946 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9947 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9948 with "prev_register".
9949 * frame-unwind.c (frame_unwind_find_by_pc): Return
9950 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9951 comment.
9952 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9953 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9954 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9955 (dummy_frame_unwind): Update.
9956 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9957 sentinel_frame_register_unwind.
9958 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9959 (sentinel_frame_unwinder): Update.
9960 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9961 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9962 * frame.c (create_sentinel_frame): Update. Initialize
9963 "prologue_cache" instead of "unwind_cache".
9964 (frame_register_unwind): Call this frame's prev_register with the
9965 next frame and this frame's prologue cache.
9966 (get_prev_frame): Simplify. Always call prev frame's this_id with
9967 this frame and prev frame's prologue cache. Document that this
9968 call is shifted one to the left when compared to the
9969 frame_register_unwind call.
9970 (legacy_saved_regs_prev_register): Replace
9971 frame_saved_regs_register_unwind.
9972 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9973 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9974 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9975 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9976 (d10v_frame_unwind): Update.
9977 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9978 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9979 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9980 "saved_regs" with "this_saved_regs".
9981
efd710d6
AC
99822003-03-16 Andrew Cagney <cagney@redhat.com>
9983
9984 * frame.c (frame_pop): Don't call target_store_registers. Fix
9985 problem reported by Mark Kettenis.
9986
4e259f09
MK
99872003-03-16 Mark Kettenis <kettenis@gnu.org>
9988
9989 * i386-tdep.c (i386_register_type): Renamed from
9990 i386_register_virtual_type. Adjust function signature.
9991 (i386_gdbarch_init): Set register_type instead of
9992 deprecated_max_register_raw_size,
9993 deprecated_max_register_virtual_size and register_virtual_type.
9994
055bb976
AC
99952003-03-14 Andrew Cagney <cagney@redhat.com>
9996
9997 * frame.c (get_prev_frame): When a legacy frame, always call
9998 legacy_get_prev_frame. Simplify unwind code using assumption that
9999 the unwinder is new.
10000 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10001 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10002 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10003
ac2adee5
AC
100042003-03-14 Andrew Cagney <cagney@redhat.com>
10005
10006 * frame.c (get_saved_register): Delete function.
10007 * frame.h (get_saved_register): Delete declaration.
10008 * xstormy16-tdep.c: Update comment.
10009 * regcache.h: Update comments.
10010 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10011 get_saved_register and extract_address, use
10012 frame_read_unsigned_register.
10013 (sparc_frame_saved_pc): Ditto.
10014 (sparc_get_saved_register): Instead of get_saved_register, use
10015 frame_register.
10016 (sparc_pop_frame): Ditto.
10017 * findvar.c: Update comments.
10018 (value_of_register): Call frame_register instead of
10019 get_saved_register.
10020 (value_from_register): Ditto.
10021 * config/sparc/tm-sparc.h: Update comment.
10022 * breakpoint.c: Update comment.
10023
129c1cd6
AC
100242003-03-14 Andrew Cagney <cagney@redhat.com>
10025
10026 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10027 GET_SAVED_REGISTER.
10028 * gdbarch.h, gdbarch.c: Re-generate.
10029 * frame.h: Update comments.
10030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10031 * x86-64-tdep.c (x86_64_init_abi): Update.
10032 * sparc-tdep.c (sparc_gdbarch_init): Update.
10033 * sh-tdep.c (sh_gdbarch_init): Update.
10034 * mips-tdep.c (mips_gdbarch_init): Update.
10035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10036 * cris-tdep.c (cris_gdbarch_init): Update.
10037 * ia64-tdep.c (ia64_gdbarch_init): Update.
10038 * frame.c (frame_register): Update.
10039 (get_saved_register): Update.
10040 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10041
749b82f6
AC
100422003-03-13 Andrew Cagney <cagney@redhat.com>
10043
10044 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10045 * gdbarch.h, gdbarch.c: Regenerate.
10046 * valops.c (hand_function_call): Update comment.
10047 * stack.c (return_command): Update comment.
10048 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10049 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10051 * x86-64-tdep.c (x86_64_init_abi): Update.
10052 * vax-tdep.c (vax_gdbarch_init): Update.
10053 * v850-tdep.c (v850_gdbarch_init): Update.
10054 * sparc-tdep.c (sparc_gdbarch_init): Update.
10055 * sh-tdep.c (sh_gdbarch_init): Update.
10056 * s390-tdep.c (s390_gdbarch_init): Update.
10057 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10058 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10060 * mips-tdep.c (mips_gdbarch_init): Update.
10061 * mcore-tdep.c (mcore_gdbarch_init): Update.
10062 * m68k-tdep.c (m68k_gdbarch_init): Update.
10063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10064 * ia64-tdep.c (ia64_gdbarch_init): Update.
10065 * i386-tdep.c (i386_gdbarch_init): Update.
10066 * hppa-tdep.c (hppa_gdbarch_init): Update.
10067 * h8300-tdep.c (h8300_gdbarch_init): Update.
10068 * frv-tdep.c (frv_gdbarch_init): Update.
10069 * cris-tdep.c (cris_gdbarch_init): Update.
10070 * avr-tdep.c (avr_gdbarch_init): Update.
10071 * arm-tdep.c (arm_gdbarch_init): Update.
10072 * alpha-tdep.c (alpha_gdbarch_init): Update.
10073
1594fa56
AC
100742003-03-13 Andrew Cagney <cagney@redhat.com>
10075
10076 * frame.c (legacy_frame_p): New function.
10077 (get_prev_frame): Use legacy_frame_p.
10078 * frame.h (legacy_frame_p): Declare.
10079
7717fda3
V
100802003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10081
fbe586ae 10082 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10083 listing corrected.
10084
0c67cbe9
V
100852003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10086
fbe586ae 10087 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10088
03febf99
AC
100892003-03-12 Andrew Cagney <cagney@redhat.com>
10090
10091 * frame.c (get_prev_frame): Rename the frame parameter to
10092 "this_frame".
10093 (get_next_frame, legacy_get_prev_frame): Ditto.
10094
0a1e1ca1
AC
100952003-03-12 Andrew Cagney <cagney@redhat.com>
10096
10097 * frame.c (get_current_frame): Check target_has_registers before
10098 checking target_has_stack.
10099 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10100 instead of deprecated_selected_frame.
10101 * findvar.c (value_of_register): Pass "frame", not
10102 deprecated_selected_frame, to value_of_builtin_reg.
10103
a66a9c23
AC
101042003-03-12 Andrew Cagney <cagney@redhat.com>
10105
10106 * regcache.c (regcache_cooked_write_signed): New function.
10107 (regcache_cooked_write_unsigned): New function.
10108 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10109 (regcache_cooked_read_signed): Fix regnum in range assertion.
10110 * regcache.h (regcache_cooked_write_signed): Declare.
10111 (regcache_cooked_write_unsigned): Declare.
10112
8bedc050
AC
101132003-03-12 Andrew Cagney <cagney@redhat.com>
10114
10115 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10116 * gdbarch.h, gdbarch.c: Re-generate.
10117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10118 * x86-64-tdep.h: Update.
10119 * x86-64-tdep.c (x86_64_init_abi): Update.
10120 * v850-tdep.c (v850_gdbarch_init): Update.
10121 * sparc-tdep.c (sparc_gdbarch_init): Update.
10122 * sh-tdep.c (sh_gdbarch_init): Update.
10123 * s390-tdep.c (s390_gdbarch_init): Update.
10124 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10125 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10126 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10127 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10128 * mips-tdep.c (mips_gdbarch_init): Update.
10129 * mcore-tdep.c (mcore_gdbarch_init): Update.
10130 * m68k-tdep.c (m68k_gdbarch_init): Update.
10131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10132 * ia64-tdep.c (ia64_gdbarch_init): Update.
10133 * i386-tdep.c (i386_gdbarch_init): Update.
10134 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10135 * hppa-tdep.c (hppa_gdbarch_init): Update.
10136 * h8300-tdep.c (h8300_gdbarch_init): Update.
10137 * frv-tdep.c (frv_gdbarch_init): Update.
10138 * cris-tdep.c (cris_gdbarch_init): Update.
10139 * avr-tdep.c (avr_gdbarch_init): Update.
10140 * arm-tdep.c (arm_gdbarch_init): Update.
10141 * alpha-tdep.c (alpha_gdbarch_init): Update.
10142 * sh-tdep.c (sh_init_extra_frame_info): Update.
10143 (sh64_init_extra_frame_info): Update.
10144 * ns32knbsd-nat.c (frame_num_args): Update.
10145 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10146 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10147 (xstormy16_frame_chain_valid): Update.
10148 * vax-tdep.c (vax_saved_pc_after_call): Update.
10149 * v850-tdep.c (v850_frame_chain): Update.
10150 (v850_pop_frame): Update.
10151 (v850_init_extra_frame_info): Update.
10152 * sparc-tdep.c (setup_arbitrary_frame): Update.
10153 * ns32k-tdep.c (umax_frame_num_args): Update.
10154 * s390-tdep.c (s390_pop_frame_regular): Update.
10155 * mn10300-tdep.c (mn10300_frame_chain): Update.
10156 (mn10300_pop_frame_regular): Update.
10157 (mn10300_init_extra_frame_info): Update.
10158 * mips-tdep.c (mips_init_frame_pc_first): Update.
10159 (mips_frame_chain): Update.
10160 (mips_pop_frame): Update.
10161 * mcore-tdep.c (mcore_frame_chain): Update.
10162 (mcore_pop_frame): Update.
10163 (mcore_init_extra_frame_info): Update.
10164 * arch-utils.c (init_frame_pc_default): Update.
10165 * m68k-tdep.c (isi_frame_num_args): Update.
10166 (delta68_frame_num_args): Update.
10167 (news_frame_num_args): Update.
10168 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10169 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10170 (alpha_frame_chain): Update.
10171 (alpha_pop_frame): Update.
10172 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10173 (hppa_init_extra_frame_info): Update.
10174 (hppa_frame_chain): Update.
10175 (hppa_frame_chain_valid): Update.
10176 * cris-tdep.c (cris_init_extra_frame_info): Update.
10177 * avr-tdep.c (avr_init_extra_frame_info): Update.
10178 * arm-tdep.c (arm_frame_chain_valid): Update.
10179 (arm_init_extra_frame_info): Update.
10180 (arm_pop_frame): Update.
10181 * frame.c (frame_pc_unwind): Update.
10182 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10183 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10184 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10185 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10186 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10187 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10188
7a25a7c1
AC
101892003-03-12 Andrew Cagney <cagney@redhat.com>
10190
10191 Eliminate the need for POP_FRAME.
10192 * frame.c (do_frame_unwind_register): New function.
10193 (frame_pop): When no POP_FRAME, pop the frame using register
10194 unwind and a scratch regcache.
10195 (frame_saved_regs_pop): Delete function.
10196 (trad_frame_unwinder): Update.
10197 * d10v-tdep.c (d10v_frame_pop): Delete function.
10198 (d10v_frame_unwind): Update.
10199 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10200 (sentinel_frame_unwinder): Update.
10201 * dummy-frame.c (dummy_frame_pop): Delete function.
10202 (dummy_frame_unwind): Update.
10203 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10204 (struct frame_unwind): Update.
10205
2f38ef89
KB
102062003-03-11 Kevin Buettner <kevinb@redhat.com>
10207
10208 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10209 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10210 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10211 Do range checks on register number obtained from debugging info.
10212 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10213 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10214 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10215 mapping function.
10216 (do_fp_register_row): Fix typo which caused double type to be
10217 used when attempting to unpack a float.
10218
552f4abf
JB
102192003-03-11 J. Brobecker <brobecker@gnat.com>
10220
10221 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10222
e0d2ae16
AC
102232003-03-11 Andrew Cagney <cagney@redhat.com>
10224
10225 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10226 frame. Problem found by Corinna Vinschen.
10227
ddbfdd06
PM
102282003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10229
10230 * doublest.c (floatformat_from_length): Accept also
10231 the real size of 'long double' type.
10232
088b2ddc 102332003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10234
088b2ddc 10235 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10236 * breakpoint.c (bpstat_copy): Copy the command lines as well
10237 as the old value, to match what is freed in bpstat_clear.
10238
f56f77c1
DC
102392003-03-10 David Carlton <carlton@math.stanford.edu>
10240
10241 * minsyms.c (add_minsym_to_hash_table): Replace
10242 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10243 (compare_minimal_symbols, compact_minimal_symbols)
10244 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10245 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10246 of DEPRECATED_SYMBOL_MATCHES_NAME.
10247 (lookup_minimal_symbol_solib_trampoline): Ditto.
10248
5602984a
AC
102492003-03-10 Andrew Cagney <cagney@redhat.com>
10250
10251 * regcache.h (regcache_cooked_read_ftype): Define.
10252 (regcache_save, regcache_restore): Add a cooked_read parameter.
10253 * regcache.c (regcache_save, regcache_restore): Update.
10254 (do_cooked_read): New function.
10255 (regcache_cpy): Pass do_cooked_read to regcache_save and
10256 regcache_restore.
10257
8bedc050
AC
102582003-03-10 Andrew Cagney <cagney@redhat.com>
10259
10260 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10261 * gdbarch.h, gdbarch.c: Re-generate.
10262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10263 * x86-64-tdep.h: Update.
10264 * x86-64-tdep.c (x86_64_init_abi): Update.
10265 * v850-tdep.c (v850_gdbarch_init): Update.
10266 * sparc-tdep.c (sparc_gdbarch_init): Update.
10267 * sh-tdep.c (sh_gdbarch_init): Update.
10268 * s390-tdep.c (s390_gdbarch_init): Update.
10269 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10270 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10271 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10272 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10273 * mips-tdep.c (mips_gdbarch_init): Update.
10274 * mcore-tdep.c (mcore_gdbarch_init): Update.
10275 * m68k-tdep.c (m68k_gdbarch_init): Update.
10276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10277 * ia64-tdep.c (ia64_gdbarch_init): Update.
10278 * i386-tdep.c (i386_gdbarch_init): Update.
10279 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10280 * hppa-tdep.c (hppa_gdbarch_init): Update.
10281 * h8300-tdep.c (h8300_gdbarch_init): Update.
10282 * frv-tdep.c (frv_gdbarch_init): Update.
10283 * cris-tdep.c (cris_gdbarch_init): Update.
10284 * avr-tdep.c (avr_gdbarch_init): Update.
10285 * arm-tdep.c (arm_gdbarch_init): Update.
10286 * alpha-tdep.c (alpha_gdbarch_init): Update.
10287 * sh-tdep.c (sh_init_extra_frame_info): Update.
10288 (sh64_init_extra_frame_info): Update.
10289 * ns32knbsd-nat.c (frame_num_args): Update.
10290 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10291 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10292 (xstormy16_frame_chain_valid): Update.
10293 * vax-tdep.c (vax_saved_pc_after_call): Update.
10294 * v850-tdep.c (v850_frame_chain): Update.
10295 (v850_pop_frame): Update.
10296 (v850_init_extra_frame_info): Update.
10297 * sparc-tdep.c (setup_arbitrary_frame): Update.
10298 * ns32k-tdep.c (umax_frame_num_args): Update.
10299 * s390-tdep.c (s390_pop_frame_regular): Update.
10300 * mn10300-tdep.c (mn10300_frame_chain): Update.
10301 (mn10300_pop_frame_regular): Update.
10302 (mn10300_init_extra_frame_info): Update.
10303 * mips-tdep.c (mips_init_frame_pc_first): Update.
10304 (mips_frame_chain): Update.
10305 (mips_pop_frame): Update.
10306 * mcore-tdep.c (mcore_frame_chain): Update.
10307 (mcore_pop_frame): Update.
10308 (mcore_init_extra_frame_info): Update.
10309 * arch-utils.c (init_frame_pc_default): Update.
10310 * m68k-tdep.c (isi_frame_num_args): Update.
10311 (delta68_frame_num_args): Update.
10312 (news_frame_num_args): Update.
10313 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10314 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10315 (alpha_frame_chain): Update.
10316 (alpha_pop_frame): Update.
10317 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10318 (hppa_init_extra_frame_info): Update.
10319 (hppa_frame_chain): Update.
10320 (hppa_frame_chain_valid): Update.
10321 * cris-tdep.c (cris_init_extra_frame_info): Update.
10322 * avr-tdep.c (avr_init_extra_frame_info): Update.
10323 * arm-tdep.c (arm_frame_chain_valid): Update.
10324 (arm_init_extra_frame_info): Update.
10325 (arm_pop_frame): Update.
10326 * frame.c (frame_pc_unwind): Update.
10327 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10328 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10329 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10330 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10331 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10332 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10333
12cc2063
AC
103342003-03-10 Andrew Cagney <cagney@redhat.com>
10335
10336 * gdbarch.sh (gdbarch_unwind_pc): New method.
10337 * gdbarch.h, gdbarch.c: Regenerate.
10338 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10339 but use read_pc and FRAME_SAVED_PC as fall backs.
10340 (frame_saved_regs_pc_unwind): Delete function.
10341 (trad_frame_unwinder): Update.
10342 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10343 (struct frame_unwind): Update.
10344 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10345 (dummy_frame_unwind): Update.
10346 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10347 (sentinel_frame_unwinder): Update.
10348 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10349 (d10v_frame_unwind): Update.
10350 (d10v_unwind_pc): New function.
10351 (d10v_gdbarch_init): Set unwind_pc.
10352
ef840a37
AC
103532003-03-10 Andrew Cagney <cagney@redhat.com>
10354
a2ce2e56
AC
10355 * gdbarch.h: Re-generate.
10356
ef840a37
AC
10357 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10358 PC.
10359 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10360 the PC register.
10361
08f3424b
MK
103622003-03-08 Mark Kettenis <kettenis@gnu.org>
10363
10364 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10365
1248ede2
AC
103662003-03-08 Andrew Cagney <cagney@redhat.com>
10367
10368 * cli-out.c: Update copyright.
10369 (cli_out_data): Define typedef. Use instead of ui_out_data.
10370
f49bacc8
AC
103712003-03-08 Andrew Cagney <cagney@redhat.com>
10372
10373 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10374 the result.
10375
9b05f993
AC
103762003-03-07 Andrew Cagney <cagney@redhat.com>
10377
10378 * gdbarch.sh: Don't generate two macro definitions when an
10379 undefined macro taking no arguments.
10380 * gdbarch.h: Regenerate.
8ffd9b1b 10381
166f4c7b
ML
103822002-03-07 Michal Ludvig <mludvig@suse.cz>
10383
10384 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10385 (x86_64_unwind_dummy_id): New functions.
10386 (x86_64_init_abi): Register these two new functions.
10387
6d686a84
ML
103882003-03-07 Michal Ludvig <mludvig@suse.cz>
10389
10390 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10391 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10392 separate function.
10393 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10394
6314f104
AC
103952003-03-05 Andrew Cagney <cagney@redhat.com>
10396
10397 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10398 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10399 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10400 to use unwind_dummy_id when a dummy frame.
10401 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10402 predicate.
10403 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10404
ceea5145
AC
104052003-03-05 Andrew Cagney <cagney@redhat.com>
10406
10407 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10408 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10409 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10410 values.
10411
0d843116
AC
104122003-03-05 Andrew Cagney <cagney@redhat.com>
10413
10414 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10415 (struct d10v_unwind_cache): Delete field "frameless". Replace
10416 "next_addr" with "sp_offset". Add "r11_offset".
10417 (d10v_frame_unwind_cache): Update.
10418 (prologue_find_regs): Update. When "mv r11, sp", save the
10419 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10420 RN was saved in r11_offset.
10421
b2579786
AC
104222003-03-05 Andrew Cagney <cagney@redhat.com>
10423
10424 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10425 cached PC value in the next frame.
10426
218e5956
AC
104272003-03-05 Andrew Cagney <cagney@redhat.com>
10428
10429 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10430 "id_unwind_cache" with "id".
10431 (frame_id_unwind): Delete declaration.
10432 * frame.c (frame_id_unwind): Delete function.
10433 (get_prev_frame): Call the frame id unwind method directly. Store
10434 the returned next frame's ID value in NEXT_FRAME. Note that there
10435 is a problem with the wrong unwind ID being called with the wrong
10436 unwind cache.
10437
ed363b1b
DJ
104382003-03-05 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10441
fe1f4a5e
DJ
104422003-03-05 James Ingham <jingham@apple.com>
10443 Daniel Jacobowitz <drow@mvista.com>
10444
10445 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10446 (auto_cp_abi): New variable.
10447 (current_cp_abi, num_cp_abis): Make static.
10448 (CP_ABI_MAX): Define.
10449 (cp_abis): Turn into an array.
10450 (value_virtual_fn_field): Fix formatting.
10451 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10452 takes a pointer.
10453 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10454 (list_cp_abis, _initialize_cp_abi): New functions.
10455 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10456 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10457 switch_to_cp_abi. Update prototype for register_cp_abi.
10458 * Makefile.in (cp-abi.o): Update dependencies.
10459 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10460 instead of switch_to_cp_abi.
10461 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10462 register_cp_abi.
10463 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10464 register_cp_abi.
10465 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10466
e4adbba9
DJ
104672003-03-05 Daniel Jacobowitz <drow@mvista.com>
10468
10469 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10470 * dwarf2loc.c: Include "regcache.h".
10471 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10472 register_size.
10473 * Makefile.in (dwarf2loc.o): Update dependencies.
10474
91ccbfc1
TR
104752003-03-04 Theodore A. Roth <troth@openavr.org>
10476
10477 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10478 number of io registers reported by remote target is not a multiple of
10479 step.
10480
3d4e8fd2
DC
104812003-03-04 David Carlton <carlton@math.stanford.edu>
10482
10483 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10484 (lookup_symbol_aux_psymtabs): Update call to
10485 lookup_partial_symbol.
10486 (lookup_transparent_type, find_main_psymtab)
10487 (make_symbol_overload_list): Ditto.
10488
ed42d87b
KH
104892003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10490
10491 * MAINTAINERS (Write after approval): Update my email address.
10492
a0ed5532
AC
104932003-03-03 Andrew Cagney <cagney@redhat.com>
10494
10495 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10496 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10497 predicate. Replace MAX_REGISTER_RAW_SIZE.
10498 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10499 MAX_REGISTER_VIRTUAL_SIZE.
10500 * regcache.c (legacy_max_register_raw_size): New function.
10501 (legacy_max_register_virtual_size): New function.
10502 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10503 (MAX_REGISTER_RAW_SIZE): Define.
10504 (legacy_max_register_raw_size): Declare.
10505 (legacy_max_register_virtual_size): Declare.
10506 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10507 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10508 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10509 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10510 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10511 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10512 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10513 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10514 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10516 * vax-tdep.c (vax_gdbarch_init): Update.
10517 * v850-tdep.c (v850_gdbarch_init): Update.
10518 * sparc-tdep.c (sparc_gdbarch_init): Update.
10519 * sh-tdep.c (sh_gdbarch_init): Update.
10520 * s390-tdep.c (s390_gdbarch_init): Update.
10521 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10522 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10524 * mips-tdep.c (mips_gdbarch_init): Update.
10525 * mcore-tdep.c (mcore_gdbarch_init): Update.
10526 * m68k-tdep.c (m68k_gdbarch_init): Update.
10527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10528 * ia64-tdep.c (ia64_gdbarch_init): Update.
10529 * i386-tdep.c (i386_gdbarch_init): Update.
10530 * hppa-tdep.c (hppa_gdbarch_init): Update.
10531 * h8300-tdep.c (h8300_gdbarch_init): Update.
10532 * frv-tdep.c (frv_gdbarch_init): Update.
10533 * cris-tdep.c (cris_gdbarch_init): Update.
10534 * avr-tdep.c (avr_gdbarch_init): Update.
10535 * arm-tdep.c (arm_gdbarch_init): Update.
10536 * alpha-tdep.c (alpha_gdbarch_init): Update.
10537 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10538 max_register_raw_size or max_register_virtual_size.
10539
8e437497
DC
105402003-03-03 David Carlton <carlton@math.stanford.edu>
10541
10542 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10543 SYMBOL_MATCHES_NAME, add comment.
10544 (SYMBOL_MATCHES_NATURAL_NAME): New.
10545 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10546 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10547 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10548 * symtab.c (lookup_partial_symbol): Use
10549 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10550 unhelpful comment.
10551 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10552 SYMBOL_MATCHES_NAME.
10553 Fix for PR c++/33.
10554
25120b0d
DC
105552003-03-03 David Carlton <carlton@math.stanford.edu>
10556
10557 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10558 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10559 by regexp matching against SYMBOL_NATURAL_NAME.
10560
78a11fb4
DC
105612003-03-03 David Carlton <carlton@math.stanford.edu>
10562
10563 * linespec.c (find_method): Extract code into collect_methods.
10564 (collect_methods): New.
10565
645dd519
MK
105662003-03-02 Mark Kettenis <kettenis@gnu.org>
10567
b4700d91
MK
10568 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10569 get_frame_base.
10570
645dd519
MK
10571 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10572 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10573
0aa7e1aa
SC
105742003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10575
8ffd9b1b 10576 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10577 and not regnum when summing the size of all registers up to regnum.
10578
f30ee0bc
AC
105792003-03-01 Andrew Cagney <cagney@redhat.com>
10580
10581 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10582 FRAME_INIT_SAVED_REGS.
10583 * gdbarch.h, gdbarch.c: Regenerate.
10584 * stack.c (frame_info): Update.
10585 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10586 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10587 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10588 * ns32k-tdep.c (ns32k_pop_frame): Update.
10589 * mips-tdep.c (mips_pop_frame): Update.
10590 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10591 * ia64-tdep.c (ia64_frame_chain): Update.
10592 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10593 (ia64_frameless_function_invocation): Update.
10594 (ia64_init_extra_frame_info): Update.
10595 (ia64_pop_frame_regular): Update.
10596 * frame.h (struct frame_info): Update comment.
10597 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10598 * frame.c (frame_saved_regs_register_unwind): Update.
10599 (frame_saved_regs_register_unwind): Update.
10600 (deprecated_generic_get_saved_register): Update.
10601 * cris-tdep.c: Update comment.
10602 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10603 Rename macro.
10604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10605 * x86-64-tdep.c (x86_64_init_abi): Update.
10606 * vax-tdep.c (vax_gdbarch_init): Update.
10607 * v850-tdep.c (v850_gdbarch_init): Update.
10608 * sparc-tdep.c (sparc_gdbarch_init): Update.
10609 * sh-tdep.c (sh_gdbarch_init): Update.
10610 * s390-tdep.c (s390_gdbarch_init): Update.
10611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10612 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10613 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10615 * mips-tdep.c (mips_gdbarch_init): Update.
10616 * mcore-tdep.c (mcore_gdbarch_init): Update.
10617 * m68k-tdep.c (m68k_gdbarch_init): Update.
10618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10619 * ia64-tdep.c (ia64_gdbarch_init): Update.
10620 * i386-tdep.c (i386_gdbarch_init): Update.
10621 * frv-tdep.c (frv_gdbarch_init): Update.
10622 * avr-tdep.c (avr_gdbarch_init): Update.
10623 * arm-tdep.c (arm_gdbarch_init): Update.
10624 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10625
42fa7c0f
AC
106262003-03-01 Andrew Cagney <cagney@redhat.com>
10627
10628 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10629 option enum and switch. When no windows, set the interpreter to
10630 INTERP_CONSOLE.
8ffd9b1b 10631
49c7e338
AC
106322003-03-01 Andrew Cagney <cagney@redhat.com>
10633
10634 * main.c (captured_main): Replace magic option characters with an
10635 enum.
10636
e9582e71
AC
106372003-03-01 Andrew Cagney <cagney@redhat.com>
10638
10639 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10640 INIT_EXTRA_FRAME_INFO.
10641 * gdbarch.h, gdbarch.c: Regenerate.
10642 * arm-tdep.c: Update comments.
10643 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10644 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10645 * frame.h, avr-tdep.c: Ditto.
10646 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10647 (create_new_frame, legacy_get_prev_frame): Ditto.
10648 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10649 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10651 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10652 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10653 * v850-tdep.c (v850_gdbarch_init): Ditto.
10654 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10655 * sh-tdep.c (sh_gdbarch_init): Ditto.
10656 * s390-tdep.c (s390_gdbarch_init): Ditto.
10657 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10659 * mips-tdep.c (mips_gdbarch_init): Ditto.
10660 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10662 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10663 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10664 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10665 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10666 * frv-tdep.c (frv_gdbarch_init): Ditto.
10667 * cris-tdep.c (cris_gdbarch_init): Ditto.
10668 * avr-tdep.c (avr_gdbarch_init): Ditto.
10669 * arm-tdep.c (arm_gdbarch_init): Ditto.
10670 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10671 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10672
35cac7cf
AC
106732003-03-01 Andrew Cagney <cagney@redhat.com>
10674
10675 * gdbarch.sh (register_type): New function with predicate.
10676 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10677 * gdbarch.h, gdbarch.c: Re-generate.
10678 * arch-utils.c (generic_register_byte): Use generic_register_size.
10679 (generic_register_size): When available, use
10680 gdbarch_register_type.
10681 * regcache.c (init_regcache_descr): When available, initialize the
10682 register type array using gdbarch_register_type. If the
10683 architecture supplies gdbarch_register_type, do not use the legacy
10684 regcache layout.
10685 * d10v-tdep.c (d10v_register_type): Replace
10686 d10v_register_virtual_type.
10687 (d10v_gdbarch_init): Set register_type instead of
10688 register_virtual_type.
10689
7b83296f
AC
106902003-03-01 Andrew Cagney <cagney@redhat.com>
10691
10692 * Makefile.in (ax-gdb.o): Update dependencies.
10693 * ax-gdb.c: Include "regcache.h".
10694 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10695 * findvar.c (value_of_register): Ditto.
10696 * infcmd.c (default_print_registers_info): Ditto.
10697
eadc1c87
MK
106982003-03-01 Mark Kettenis <kettenis@gnu.org>
10699
10700 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10701 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10702
14143612
MK
107032003-03-01 Mark Kettenis <kettenis@gnu.org>
10704
10705 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10706 of STREQ.
10707
a55cc764
DJ
107082003-02-28 Daniel Jacobowitz <drow@mvista.com>
10709
10710 * Makefile.in (dwarf2loc.o): Update dependencies.
10711 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10712 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10713 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10714 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10715 (locexpr_tracepoint_var_ref): New function.
10716 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10717
08a617da
AC
107182003-02-28 Andrew Cagney <cagney@redhat.com>
10719
10720 * regcache.c (register_size): New function.
10721 * regcache.h (register_size): Declare
10722 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10723 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10724
4224873a
DC
107252003-02-28 David Carlton <carlton@math.stanford.edu>
10726
10727 * linespec.c (decode_compound): Extract code into find_method.
10728 (find_method): New.
10729
ccdc5d7f
JB
107302003-02-28 J. Brobecker <brobecker@gnat.com>
10731
10732 * Makefile.in: Add rules to build and link in observer.o.
10733
974e8ced
JB
107342003-02-27 J. Brobecker <brobecker@gnat.com>
10735
10736 * observer.c: Minor comments edits.
10737
7a28f973
JB
107382003-02-27 J. Brobecker <brobecker@gnat.com>
10739
10740 * observer.h, observer.c: New file.
10741
27cddce2
AC
107422003-02-27 Andrew Cagney <cagney@redhat.com>
10743
10744 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10745
b94a41a1
SC
107462003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10747
10748 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10749 (M6812_OP_STS_EXT): Likewise.
10750 (m6811_prologue): Use the above to recognize prologue.
10751 (m6812_prologue): Likewise.
10752
c8be8951
DC
107532003-02-27 David Carlton <carlton@math.stanford.edu>
10754
10755 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10756 SYMBOL_PRINT_NAME.
10757 (compare_psymbols): Ditto.
10758 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10759
d05bb1fc
MS
107602003-02-27 Michael Snyder <msnyder@redhat.com>
10761
4e845cd3
MS
10762 * f-lang.c (build_fortran_types): New function.
10763 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10764 * doublest.c (extract_floating): Fix warning text.
10765
f3824013
AC
107662003-02-27 Andrew Cagney <cagney@redhat.com>
10767
10768 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10769 predicate. Replaces PUSH_DUMMY_FRAME.
10770 * gdbarch.h, gdbarch.c: Regnerate.
10771 * valops.c (hand_function_call): Update. Call
10772 generic_push_dummy_frame directly.
10773 * vax-tdep.c (vax_gdbarch_init): Update.
10774 * sparc-tdep.c (sparc_gdbarch_init): Update.
10775 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10776 * m68k-tdep.c (m68k_gdbarch_init): Update.
10777 * hppa-tdep.c (hppa_gdbarch_init): Update.
10778 * alpha-tdep.c (alpha_gdbarch_init): Update.
10779 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10780 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10781 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10783 push_dummy_frame to generic_push_dummy_frame.
10784 * v850-tdep.c (v850_gdbarch_init): Ditto.
10785 * sh-tdep.c (sh_gdbarch_init): Ditto.
10786 * s390-tdep.c (s390_gdbarch_init): Ditto.
10787 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10788 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10789 * mips-tdep.c (mips_gdbarch_init): Ditto.
10790 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10792 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10793 * i386-tdep.c (i386_gdbarch_init): Ditto.
10794 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10795 * frv-tdep.c (frv_gdbarch_init): Ditto.
10796 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10797 * cris-tdep.c (cris_gdbarch_init): Ditto.
10798 * avr-tdep.c (avr_gdbarch_init): Ditto.
10799 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10800
ad188201
KB
108012003-02-26 Kevin Buettner <kevinb@redhat.com>
10802
10803 * mips-tdep.c (show_mips_abi): New function.
10804 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10805 command ``show mips abi''.
10806
6b37567a 108072003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10808
6b37567a 10809 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10810 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10811 more sline entries have been seen for the function.
10812
d3e0a5bf
MC
108132003-02-26 Michael Chastain <mec@shout.net>
10814
10815 * configure: Regenerate with autoconf 000227.
10816
18972eea
MC
108172003-02-26 Michael Chastain <mec@shout.net>
10818
10819 Close PR build/660.
10820 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10821 for old libc5/glibc.
10822 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10823
0bbde931
KW
108242003-02-26 Kris Warkentin <kewarken@qnx.com>
10825
10826 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10827 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10828
27ca5dad
MC
108292003-02-26 Michael Chastain <mec@shout.net>
10830
10831 * configure.in: New variable HAVE_UINTPTR_T.
10832 * configure, config.in: Regenerated.
10833
6f88d630
DJ
108342003-02-26 Daniel Jacobowitz <drow@mvista.com>
10835
10836 Fix PR build/1097.
10837 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10838
b14185ce
AC
108392003-02-25 Andrew Cagney <cagney@redhat.com>
10840
10841 * frame.c (get_prev_frame): Add comment on check for
10842 inside_entry_func. Only check for inside_entry_file when not a
10843 dummy and not a sentinel. Check that the new frame is not inner
10844 to the old frame.
10845
ac2bd0a9
AC
108462003-02-25 Andrew Cagney <cagney@redhat.com>
10847
10848 * frame.c (frame_debug): New variable.
10849 (_initialize_frame): Add "set/show debug frame" command.
10850 (get_prev_frame): When frame_debug, print reason why unwind
10851 failed.
10852
b18a0fd2
MC
108532003-02-25 Michael Chastain <mec@shout.net>
10854
10855 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10856 to avoid uintptr_t definition problems.
10857
22abf04a
DC
108582003-02-25 David Carlton <carlton@math.stanford.edu>
10859
10860 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10861 (SYMBOL_LINKAGE_NAME): Ditto.
10862 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10863 SYMBOL_LINKAGE_NAME.
10864 (struct general_symbol_info): Expand comment.
10865 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10866 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10867 (SYMBOL_MATCHES_REGEXP): Ditto.
10868 * symtab.c (symbol_natural_name): New function.
10869 * objfiles.h: Replace all uses of SYMBOL_NAME by
10870 DEPRECATED_SYMBOL_NAME.
10871 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10872 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10873 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10874 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10875 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10876 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10877 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10878 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10879 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10880 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10881 * ada-exp.y: Ditto.
10882 * ada-exp.y: Update copyright.
10883 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10884 * cp-valprint.c: Ditto.
10885
1a5848f6
JJ
108862003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10887
10888 * infptrace.c (detach): Do not flag error if ptrace detach fails
10889 and errno is set to ESRCH.
10890
7343d46a
AC
108912003-02-24 Andrew Cagney <cagney@redhat.com>
10892
10893 * infptrace.c (udot_info): Change type of udot_off to long. Use
10894 paddr when printing udot_off's value.
10895
49fa1dc2
DC
108962003-02-24 David Carlton <carlton@math.stanford.edu>
10897
10898 * symtab.c (make_symbol_overload_list): Only read in partial
10899 symtabs containing a matching partial symbol.
10900
0fe19209
DC
109012003-02-24 David Carlton <carlton@math.stanford.edu>
10902
10903 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10904 do the comparison, not strcmp.
10905 * symfile.c (compare_psymbols): Ditto.
10906 * defs.h: Declare strcmp_iw_ordered.
10907 * utils.c (strcmp_iw_ordered): New function.
10908
8e3ee7b5
JB
109092003-02-24 Jim Blandy <jimb@redhat.com>
10910
10911 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10912 support, shared libs): Remove my name from here, to better reflect
10913 reality.
10914
7df1a324
KW
109152003-02-24 Kris Warkentin <kewarken@qnx.com>
10916
10917 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10918 (target_ops): Add to_have_continuable_watchpoint.
10919 * target.c (update_current_target): Add INHERIT line for
10920 to_have_continuable_watchpoint.
10921 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10922 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10923 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10924 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10925
d1c76907
EZ
109262003-02-24 Elena Zannoni <ezannoni@redhat.com>
10927
10928 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10929 maintainership.
10930
2610b0bf
KW
109312003-02-24 Kris Warkentin <kewarken@qnx.com>
10932
f46169db
KW
10933 * solib.c (solib_open): Call target defined search function after
10934 failing with solib-search-path.
10935 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10936 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10937
9a3c34fe
KW
109382003-02-24 Kris Warkentin <kewarken@qnx.com>
10939
f46169db 10940 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10941
2417dd25
SC
109422003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10943
10944 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10945
b631436b
SC
109462003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10947
10948 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10949 (m68hc11_add_reggroups): New function.
10950 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10951 (m68hc11_gdbarch_init): Install the reggroups.
10952 (_initialize_m68hc11_tdep): Initialize them.
10953
0aa8c1e4
JW
109542003-02-21 James E Wilson <wilson@tuliptree.org>
10955
10956 * MAINTAINERS: Update my email address.
10957
50ceaba5
DC
109582003-02-21 David Carlton <carlton@math.stanford.edu>
10959
10960 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10961
4c2df51b
DJ
109622003-02-21 Daniel Jacobowitz <drow@mvista.com>
10963
10964 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10965 * symtab.h: Add opaque declarations of struct axs_value and
10966 struct agent_expr.
10967 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10968 (struct location_funcs): New type.
10969 (struct symbol): Add "loc" to aux_value.
10970 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10971 * dwarf2read.c: Include "dwarf2expr.h".
10972 (dwarf2_symbol_mark_computed): New function.
10973 (read_func_scope): Use it.
10974 (var_decode_location): New function.
10975 (new_symbol): Use it.
10976 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10977
10978 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10979 (dwarf2expr_h, dwarf2loc_h): New variables.
10980 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10981 (dwarf2expr.o, dwarf2loc.o): New rules.
10982 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10983 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10984 LOC_COMPUTED_ARG.
10985 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10986 * m2-exp.y (yylex): Likewise.
10987 * printcmd.c (address_info, print_frame_args): Likewise.
10988 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10989 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10990 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10991 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10992 * symtab.c (lookup_block_symbol): Likewise.
10993
5784d15e
AF
109942003-02-20 Adam Fedor <fedor@gnu.org>
10995
10996 * symtab.h: Remove objc_specific struct
10997 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10998 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10999 Have language_objc use cplus_specific struct.
11000
d4cad8db
TT
110012003-02-20 Tom Tromey <tromey@redhat.com>
11002
11003 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11004 TYPE_NAME, when printing a String value. PR java/1075.
11005
2f9a90b4
AF
110062003-02-20 Adam Fedor <fedor@gnu.org>
11007
d38074a8 11008 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11009 * objc-lang.c (find_methods): Make static.
2f9a90b4 11010
6f17862b
CF
110112003-02-20 Christopher Faylor <cgf@redhat.com>
11012
11013 * win32-nat.c (get_image_name): Check return value from
11014 ReadProcessMemory.
11015 (child_xfer_memory): Ditto.
11016
715d1656
AO
110172003-02-20 Alexandre Oliva <aoliva@redhat.com>
11018
11019 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11020 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11021 '${exec_prefix}' (in addition to the expansion thereof) as
11022 relocatable.
11023 * configure: Rebuilt.
11024
b1262a02
DC
110252003-02-20 David Carlton <carlton@math.stanford.edu>
11026
11027 * symtab.c (search_symbols): Revert the search_symbols part of my
11028 2002-12-23 patch. Add comment.
11029
7134143f
DJ
110302002-02-20 Daniel Jacobowitz <drow@mvista.com>
11031
11032 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11033 * dbxread.c (elfstab_build_psymtabs): Don't call
11034 install_minimal_symbols.
11035 (stabsect_build_psymtabs): Likewise.
11036 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11037 earlier.
11038 * somread.c (som_symfile_read): Call install_minimal_symbols
11039 and do_cleanups earlier.
11040 * nlmread.c (nlm_symfile_read): Likewise.
11041 * mdebugread.c (elfmdebug_build_psymtabs): Call
11042 install_minimal_symbols and make appropriate cleanups.
11043
cf466558
KB
110442003-02-20 Kevin Buettner <kevinb@redhat.com>
11045
11046 * solib.c (reload_shared_libraries): New function.
11047 (_initialize_solib): Add callbacks for ``set solib-search-path''
11048 and ``set solib-absolute-prefix''.
11049
de5ad195
DC
110502003-02-20 David Carlton <carlton@math.stanford.edu>
11051
11052 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11053 expand comment.
11054 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11055 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11056 * ada-typeprint.c (ada_typedef_print): Ditto.
11057 * ax-gdb.c (gen_var_ref): Ditto.
11058 * breakpoint.c (print_one_breakpoint): Ditto.
11059 * buildsym.c (finish_block): Ditto.
11060 * c-valprint.c (c_val_print): Ditto.
11061 * expprint.c (print_subexp): Ditto.
11062 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11063 * infcmd.c (jump_command): Ditto.
11064 * linespec.c (decode_line_2, decode_compound): Ditto.
11065 * maint.c (maintenance_translate_address): Ditto.
11066 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11067 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11068 Ditto.
8ffd9b1b
AJ
11069 * p-valprint.c (pascal_val_print): Ditto.
11070 * stabsread.c (define_symbol): Ditto.
de5ad195 11071 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11072 (print_frame_arg_vars, return_command): Ditto.
11073 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11074 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11075 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11076 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11077 (rbreak_command): Ditto.
11078 * tracepoint.c (tracepoints_info): Ditto.
11079 * typeprint.c (typedef_print): Ditto.
11080 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11081 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11082 * ada-typeprint.c: Update Copyright.
11083 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11084 * tracepoint.c, cli/cli-cmds.c: Ditto.
11085
f796e4be
KB
110862003-02-20 Kevin Buettner <kevinb@redhat.com>
11087
11088 * frame.c (generic_unwind_get_saved_register): Make non-static.
11089 * frame.h (generic_unwind_get_saved_register): Declare.
11090 * mips-tdep.c (read_next_frame_reg): Fetch register from
11091 current regcache when frame is NULL.
11092 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11093 that must be NULL.
11094 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11095 instead of frame_register_unwind().
11096
836cc9f4
AC
110972003-02-20 Andrew Cagney <ac131313@redhat.com>
11098
11099 * remote-sim.c (gdbsim_insert_breakpoint)
11100 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11101 code.
11102
501eef12
AC
111032003-02-20 Andrew Cagney <ac131313@redhat.com>
11104
11105 * remote.c (_initialize_remote): Add commands "set/show remote
11106 hardware-watchpoint-limit" and "set/show remote
11107 hardware-breakpoint-limit".
11108 (remote_hw_watchpoint_limit): Initialize to -1.
11109 (remote_hw_breakpoint_limit): Ditto.
11110 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11111
1b6bc7e0
CF
111122003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11113
11114 * coff-pe-read.c: New file - support reading of minimal symbols from a
11115 portable executable using the export table.
11116 * coff-pe-read.h: New file.
11117 * coffread.c: Include coff-pe-read.h.
11118 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11119 debugging symbols found.
11120 * Makefile.in (SFILES): Add coff-pe-read.o.
11121 (coff_pe_read_h): Define.
11122 (COMMON_OBS): Add coff-pe-read.o.
11123 (coffread.o): Add coff_pe_read_h dependency.
11124 (coff-pe-read.o): New target.
11125
fe898f56
DC
111262003-02-19 David Carlton <carlton@math.stanford.edu>
11127
11128 * Makefile.in (SFILES): Add block.c.
11129 (block_h): New.
11130 (COMMON_OBS): Add block.o.
11131 (block.o): New.
11132 (x86-64-tdep.o): Add $(block_h).
11133 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11134 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11135 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11136 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11137 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11138 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11139 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11140 * value.h: Add opaque declaration for struct block.
11141 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11142 * ada-lang.h: Ditto.
11143 * x86-64-tdep.c: #include "block.h"
11144 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11145 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11146 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11147 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11148 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11149 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11150 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11151 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11152 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11153 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11154 * symtab.c (block_function): Ditto.
11155 (contained_in): Ditto.
11156 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11157 block.h. Add opaque declaration for struct block.
11158 * symtab.h: Move block_function and contained_in declarations to
11159 block.h. Add opaque declarations for struct block, struct
11160 blockvector.
11161 (struct block): Move to block.h.
11162 (struct blockvector): Ditto.
11163 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11164 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11165 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11166 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11167 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11168 Ditto.
11169 * block.c: New file.
11170 * block.h: New file.
11171
173345b5
TR
111722003-02-19 Theodore A. Roth <troth@openavr.org>
11173
11174 * avr-tdep.c (avr_extract_return_value): Remove function.
11175 (avr_store_return_value): Remove function.
11176 (avr_extract_struct_value_address): Remove function.
11177 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11178
338ef23d
AC
111792003-02-19 Andrew Cagney <ac131313@redhat.com>
11180
11181 * rs6000-tdep.c: Include "gdb_assert.h".
11182 (registers_e500): Add "acc" and "spefscr".
11183 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11184 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11185 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11186 really is "r0".
11187 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11188
5412f5f3
KS
111892003-02-18 Keith Seitz <keiths@redhat.com>
11190
11191 * Makefile.in: Add gdbtk-interps.c.
11192
881324eb
KB
111932003-02-18 Kevin Buettner <kevinb@redhat.com>
11194
11195 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11196 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11197
6a2f5abf
AC
111982003-02-18 Andrew Cagney <cagney@redhat.com>
11199
11200 * symtab.h (struct objfile): Add opaque declaration.
11201
54c7009d
EZ
112022003-02-18 Elena Zannoni <ezannoni@redhat.com>
11203
11204 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11205 * dbxread.c (process_one_symbol): Use last_function_start rather
11206 than function_start_offset to find the real beginning of the
11207 current function. The latter is just the text section offset on
11208 some systems, the former is always the real function start.
54c7009d 11209
7ee6d7eb
AC
112102003-02-17 Andrew Cagney <cagney@redhat.com>
11211
11212 * configure.in: Revert ${target} != ${host}.
11213
2846da9b
AC
112142003-02-17 Andrew Cagney <ac131313@redhat.com>
11215
11216 * configure.in (Makefile): Use the test ${target} != ${host},
11217 instead of the absence of the "nm.h" file, to determine of the
11218 configuration non-native.
11219 * configure: Regenerate.
8ffd9b1b 11220
3b27aeea
EZ
112212003-02-14 Elena Zannoni <ezannoni@redhat.com>
11222
fbe586ae 11223 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11224
11225 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11226 conditionalize tui_active test.
11227 (lookup_cmd_1): Ditto.
11228
b0b1c2c0
MK
112292003-02-14 Mark Kettenis <kettenis@gnu.org>
11230
11231 * configure.in: Add check for _etext.
11232 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11233 available.
11234 * config.in, configure: regenerated.
11235
8f05cde5
DJ
112362003-02-14 Daniel Jacobowitz <drow@mvista.com>
11237
11238 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11239
021e7609
AC
112402003-02-14 Andrew Cagney <ac131313@redhat.com>
11241
11242 * main.c (tui_version): Delete variable.
11243 (captured_main): When --tui, set interpreter_p to "tui" instead of
11244 enabling tui_version.
11245 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11246 tui_version.
11247 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11248 * cli/cli-cmds.c (disassemble_command): Ditto.
11249 * defs.h (tui_version): Delete declaration.
11250 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11251 (tui-interp.o): Add rules.
11252 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11253
e325dcec
CF
112542003-02-14 Christopher Faylor <cgf@redhat.com>
11255
36ffb041 11256 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11257 just-loaded dll.
11258
c4f90d87
JM
112592003-02-12 Jason Molenda (jmolenda@apple.com)
11260
fbe586ae
RH
11261 * symmisc.c (print_objfile_statistics): Include information about
11262 the number of psymtabs and symtabs in each object file.
c4f90d87 11263
e46e5ccd
KS
112642003-02-13 Keith R Seitz <keiths@redhat.com>
11265
11266 * main.h (struct captured_main_args): Add interpreter_p.
11267 * main.c (captured_main): Initialize interpreter_p from context.
11268 * gdb.c (main): Set interpreter_p argument.
11269 * Makefile.in (gdb.o): Add dependency for interps.h.
11270
fe97fe9c
AC
112712003-02-12 Andrew Cagney <ac131313@redhat.com>
11272
11273 * event-top.c (cli_command_loop): Delete declaration.
11274 (_initialize_event_loop): Delete function setting event_loop_hook.
11275 * event-top.h (cli_command_loop): Declare. Update copyright.
11276 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11277 * interps.c (current_interp_command_loop): When event_loop_p, call
11278 cli_command_loop.
11279
1cdac4ef
AC
112802003-02-12 Andrew Cagney <ac131313@redhat.com>
11281
11282 * interps.h (interp_command_loop_ftype): Change return type to
11283 void.
11284
48037ead
ML
112852003-02-12 Michal Ludvig <mludvig@suse.cz>
11286
11287 * x86-64-tdep.c (x86_64_extract_return_value)
11288 (x86_64_store_return_value): Use regcache instead of regbuf.
11289 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11290 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11291
033afc63
AC
112922003-02-11 Andrew Cagney <ac131313@redhat.com>
11293
11294 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11295 * aclocal.m4: Regenerate.
11296 * configure: Regenerate.
11297
11298 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11299 TCL_LD_SEARCH_FLAGS.
11300
40d02bca
ML
113012003-02-10 Michal Ludvig <mludvig@suse.cz>
11302
11303 * dwarf2cfi.c: Reindented.
11304
11308a41
AC
113052003-02-09 Andrew Cagney <ac131313@redhat.com>
11306
11307 * interps.c (clear_interpreter_hooks): Convert function definition
11308 to ISO C.
11309
e1c1c0f6
DC
113102003-02-07 David Carlton <carlton@math.stanford.edu>
11311
11312 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11313
ab5d3da6
KB
113142003-02-07 Kevin Buettner <kevinb@redhat.com>
11315
11316 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11317 (struct type): ...to here.
11318 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11319 field.
11320 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11321 (replace_type): Set length on all type variants for a given type.
11322
b8a92b82
AC
113232003-02-07 Andrew Cagney <ac131313@redhat.com>
11324
11325 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11326 <sys/stat.h>.
11327 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11328
5cb316ef
AC
113292003-02-06 Andrew Cagney <ac131313@redhat.com>
11330
2555fe1a
AC
11331 * Makefile.in (symm-nat.o): Update dependencies.
11332 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11333 (lynx-nat.o, ia64-linux-nat.): Ditto.
11334 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11335 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11336 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11337
44270758
AC
11338 * Makefile.in (inflow_h): Define.
11339 (procfs.o, inflow.o, procfs.o): Update dependencies.
11340 * inftarg.c (child_stop): Delete extern declaration of
11341 inferior_process_group. Include "inflow.h".
11342 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11343 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11344 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11345 (our_process_group, inferior_process_group): Extern declarations.
11346
df8f7274
AC
11347 * procfs.c: Include "gdb_assert.h".
11348
5cb316ef
AC
11349 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11350 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11351 * jv-typeprint.c (java_type_print_base): Ditto.
11352 * typeprint.c (typedef_print): Eliminate STREQ.
11353 * cli/cli-script.c (define_command, define_command): Ditto.
11354 * main.c (captured_main): Ditto.
11355 * values.c (lookup_internalvar): Ditto.
11356 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11357 within `if' conditional.
11358 * linespec.c (decode_line_2): Ditto.
11359 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11360 (bfd_openw_with_cleanup): Ditto.
11361
2a28ccea
MK
113622003-02-07 Mark Kettenis <kettenis@gnu.org>
11363
11364 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11365 legacy_extract_return_value and store_return_value to
11366 legacy_return_value.
11367
786b8124
CF
113682003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11369
11370 * win32-nat.c (get_relocated_section_addrs): New function. Find
11371 section load addresses for symbol handling in relocated DLLs.
11372 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11373
b871e4ec
FF
113742003-02-05 Fred Fish <fnf@intrinsity.com>
11375
11376 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11377 '=' and '!='.
11378 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11379 with '&' and '=='.
11380 (angel_RDI_info): Ditto.
11381 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11382 with '&' and '!='.
11383 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11384
4389a95a 113852003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11386 Keith Seitz <keiths@redhat.com>
11387 Elena Zannoni <ezannoni@redhat.com>
11388 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11389
11390 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11391 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11392 (SUBDIR_MI_OBS): Add "mi-interp.o".
11393 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11394 (SFILES): Add "interps.c".
11395 (COMMON_OBS): Add "interps.o".
11396 (interps_h, mi_main_h): Define.
11397 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11398 (mi-main.o, main.o, event-top.o): Update dependencies.
11399 * cli/cli-interp.c: New file.
11400 * interps.h, interps.c: New files.
11401 * top.c: (gdb_init): Don't install the default interpreter, handed
11402 by captured_main.
11403 * main.c: Include "interps.h".
11404 (interpreter_p): Note that it should malloc'ed.
11405 (captured_command_loop): Call current_interp_command_loop.
11406 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11407 xfree and xstrdup when updating interpreter_p. Install the
11408 default interpreter. Add hack to stop mi1's copyright notice
11409 being encoded.
11410 * event-top.h (gdb_setup_readline): Declare.
11411 (gdb_disable_readline): Declare.
11412 * event-top.c: Include "interps.h".
11413 (display_gdb_prompt): Call current_interp_display_prompt_p.
11414 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11415 gdb_stdlog, and gdb_stdtarg.
11416 (_initialize_event_loop): Don't call gdb_setup_readline.
11417 * cli-out.c (cli_out_set_stream): New function.
11418 * cli-out.h (cli_out_set_stream): Declare.
11419
ff3b5810
MK
114202003-02-06 Mark Kettenis <kettenis@gnu.org>
11421
11422 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11423 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11424 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11425 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11426 config/i386/i386v42mp.mt: Removed.
11427
5b729aa5
MK
114282003-02-05 Mark Kettenis <kettenis@gnu.org>
11429
11430 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11431 GDB_OSABI_SOLARIS.
11432
8cc15142
MC
114332003-02-05 Michael Chastain <mec@shout.net>
11434
11435 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11436 2.12.1 and earlier versions.
11437
5aa5d4b9
AC
114382003-02-05 Andrew Cagney <ac131313@redhat.com>
11439
11440 Remove orphaned hosts, targets and files.
11441 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11442 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11443 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11444 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11445 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11446 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11447 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11448 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11449 * config/sparc/tm-sp64sim.h: Delete.
11450 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11451 hosts.
11452 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11453 mips*-dec-mach3* targets.
11454
b68767c1
MC
114552003-02-04 Michael Chastain <mec@shout.net>
11456
11457 * NEWS: Fix typo: sepcifying -> specifying.
11458
5ae7ca1d
MC
114592003-02-04 Michael Chastain <mec@shout.net>
11460
11461 * dwarfread.c: Add documentation on the state of dwarf-1,
11462 looking towards obsoletion.
11463
d08a4280
MC
114642003-02-03 Michael Chastain <mec@shout.net>
11465
11466 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11467 gdb/testsuite/gdb.c++/pr-1023.exp.
11468
e9be73e4
AC
114692003-02-04 Andrew Cagney <ac131313@redhat.com>
11470
11471 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11472 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11473
11474 * utils.c (init_page_info): Delete reference to MPW in comments.
11475 * main.c (captured_main): Delete #ifdef MPW.
11476
05d57f6f
AC
114772003-02-04 Andrew Cagney <ac131313@redhat.com>
11478
8ffd9b1b 11479 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11480 * monitor.c (monitor_expect): Obsolete reference to m32r.
11481 * configure.tgt: Mark m32r-*-elf* as obsolete.
11482 * MAINTAINERS: Mark m32k as obsolete.
11483 * m32r-rom.c: Obsolete file.
11484 * config/m32r/m32r.mt: Obsolete file.
11485 * config/m32r/tm-m32r.h: Obsolete file.
11486 * m32r-stub.c: Obsolete file.
11487 * m32r-tdep.c: Obsolete file.
11488
8b0e5691
AC
114892003-02-04 Andrew Cagney <ac131313@redhat.com>
11490
11491 * NEWS: Mention that the z8k-zilog-none is obsolete.
11492 * MAINTAINERS: Mark z8k as obsolete.
11493 * configure.tgt: Obsolete the z8k-*-coff* target.
11494 * config/z8k/z8k.mt: Obsolete file.
11495 * config/z8k/tm-z8k.h: Obsolete file.
11496 * z8k-tdep.c: Obsolete file.
11497
67f16606
AC
114982003-02-04 Andrew Cagney <ac131313@redhat.com>
11499
11500 * NEWS: Mention that the mn10200-elf is obsolete.
11501 * configure.tgt: Obsolete mn10200-*-* target.
11502 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11503 mention that the mn10200 is obsolete.
11504 * breakpoint.h: Ditto.
11505 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11506 * config/mn10200/mn10200.mt: Obsolete file.
11507 * config/mn10200/tm-mn10200.h: Obsolete file.
11508 * mn10200-tdep.c: Obsolete file.
11509
fd2299bd
AC
115102003-02-04 Andrew Cagney <ac131313@redhat.com>
11511
11512 * MAINTAINERS: Mark h8500 as obsolete.
11513 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11514 * findvar.c (value_from_register): Ditto.
11515 * h8500-tdep.c: Mark file as obsolete.
11516 * config/h8500/h8500.mt: Ditto.
11517 * config/h8500/tm-h8500.h: Ditto.
11518 * NEWS: Mention that h8500 is obsolete.
11519
eb9a305d
DC
115202003-02-04 David Carlton <carlton@math.stanford.edu>
11521
11522 * objfiles.c (allocate_objfile): Always set name. Add comment at
11523 start of function.
11524 * jv-lang.c (get_dynamics_objfile): Add comment.
11525
406fc7fb
DC
115262003-02-04 David Carlton <carlton@math.stanford.edu>
11527
11528 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11529 * printcmd.c (build_address_symbolic): Replace uses of
11530 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11531 SYMBOL_NAME, and asm_demangle.
11532 Update copyright.
11533
93d91629
DC
115342003-02-04 David Carlton <carlton@math.stanford.edu>
11535
11536 * linespec.c (decode_compound): Extract code into
11537 lookup_prefix_sym.
11538 (lookup_prefix_sym): New function.
11539
1c5cb38e
DC
115402003-02-04 David Carlton <carlton@math.stanford.edu>
11541
11542 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11543 FLOAT_COERCION_BADNESS.
11544 * gdbtypes.c (rank_one_type): Replace all uses of
11545 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11546
0cf824c9
JB
115472003-02-04 Jim Blandy <jimb@redhat.com>
11548
11549 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11550 section, let dwarf_macinfo_section point to it, not
11551 dwarf_loc_section.
11552
a2d356b0
DJ
115532003-02-04 Daniel Jacobowitz <drow@mvista.com>
11554
11555 Pointed out by Anton Blanchard <anton@samba.org>.
11556 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11557 (ppc_linux_at_sigtramp_return_path): Use it.
11558
2de7ced7
DJ
115592003-02-04 Daniel Jacobowitz <drow@mvista.com>
11560
11561 * defs.h (streq): Add prototype.
11562 * utils.c (streq): New function.
11563
11564 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11565 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11566 * mdebugread.c (new_symbol): Likewise.
11567 * stabsread.c (define_symbol): Likewise.
11568 * coffread.c (process_coff_symbol): Likewise.
11569 * dwarfread.c (new_symbol): Likewise.
11570
11571 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11572 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11573 here.
11574 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11575 SYMBOL_INIT_DEMANGLED_NAME.
11576 * objfiles.c: Include "hashtab.h".
11577 (allocate_objfile): Call htab_set_functions_ex for the
11578 demangled_names_hash.
11579 (free_objfile): Call htab_delete for the demangled_names_hash.
11580 * objfiles.h (struct htab): Add declaration.
11581 (struct objfile): Add demangled_names_hash.
11582 * symfile.c: Include "hashtab.h".
11583 (reread_symbols): Call htab_delete for the demangled_names_hash.
11584 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11585 SYMBOL_NAME in the bcache.
11586 * symtab.c: Include "hashtab.h". Update comments.
11587 (create_demangled_names_hash, symbol_set_names): New functions.
11588 (symbol_find_demangled_name): New function, broken out from
11589 symbol_init_demangled_names.
11590 (symbol_init_demangled_names): Use it.
11591 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11592 (SYMBOL_SET_NAMES): New macro.
11593 (symbol_set_names): Add prototype.
11594
15831452
JB
115952003-02-03 Jim Blandy <jimb@redhat.com>
11596
11597 Use a single, consistent representation for an empty minimal
11598 symbol table in an objfile.
11599 * objfiles.c (terminate_minimal_symbol_table): New function.
11600 (allocate_objfile): Call it.
11601 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11602 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11603 non-NULL.
15831452
JB
11604 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11605 objfile has minimal symbols, compare minimal_symbol_count to zero,
11606 instead of comparing msymbols with NULL.
11607 * objfiles.c (have_minimal_symbols): Same.
11608 * solib-sunos.c (solib_add_common_symbols): Call
11609 terminate_minimal_symbol_table.
11610 * symfile.c (reread_symbols): Same.
8ffd9b1b 11611
ffc65945
KB
116122003-02-03 Kevin Buettner <kevinb@redhat.com>
11613
11614 * s390-tdep.c (s390_address_class_type_flags)
11615 (s390_address_class_type_flags_to_name)
11616 (s390_address_class_name_to_type_flags): New functions.
11617 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11618 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11619
f211c6d4
MS
116202003-02-03 Michael Snyder <msnyder@redhat.com>
11621
11622 * arm-tdep.c: Fix spell-o in comment.
11623
659b0389
ML
116242003-02-03 Michal Ludvig <mludvig@suse.cz>
11625
11626 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11627 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11628 error messages to contain BFD filename.
659b0389 11629
3b31d625
EZ
116302003-02-02 Elena Zannoni <ezannoni@redhat.com>
11631
997b089a 11632 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11633 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11634 (do_mixed_source_and_assembly): Use
11635 make_cleanup_ui_out_tuple_begin_end and
11636 make_cleanup_ui_out_tuple_begin_end.
11637 (do_mixed_source_and_assembly): Ditto.
11638 * thread.c (do_captured_list_thread_ids): Ditto.
11639 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11640 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11641 ui_out_tuple_end): Delete prototypes.
11642 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11643 ui_out_list_end, ui_out_tuple_end): Delete.
11644
11645 From Kevin Buettner <kevinb@redhat.com>:
11646 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11647 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11648 (do_cleanup_table_end): New functions.
11649 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11650 Use cleanups to invoke_ui_out_tuple_end().
11651 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11652 * cli/cli-setshow.c (cmd_show_list): Use
11653 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11654
5b181d62
AC
116552003-02-02 Andrew Cagney <ac131313@redhat.com>
11656
11657 * frame.c (frame_unwind_register): New function.
11658 (frame_unwind_unsigned_register): Use.
11659 (frame_unwind_signed_register): Use.
11660 (frame_read_register): New function.
11661 * frame.h (frame_unwind_register): Declare.
11662 (frame_read_register): Declare.
11663
11664 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11665 and frame_unwind_register instead of read_memory, write_register
11666 and deprecated_write_register_bytes.
11667
5f601589
AC
116682003-02-02 Andrew Cagney <ac131313@redhat.com>
11669
11670 * frame.h: Note that namelen can be negative.
11671 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11672 NAME's length.
11673
11674 * NEWS: Mention that the d10v's `regs' command is deprecated.
11675 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11676 (d10v_print_registers_info): New function.
11677 (show_regs): Call d10v_print_registers_info.
11678 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11679
6a3fe0a4
MK
116802003-02-02 Mark Kettenis <kettenis@gnu.org>
11681
11682 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11683 lost in the previous patch.
11684
075559bc
AC
116852003-02-01 Andrew Cagney <ac131313@redhat.com>
11686
11687 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11688 * stack.c (print_frame_info_base): Output complete FRAME tuple
11689 for synthesized frames.
075559bc 11690
6789195b
AC
116912003-02-02 Andrew Cagney <ac131313@redhat.com>
11692
11693 * mips-nat.c (zerobuf): Delete.
11694 (fetch_inferior_registers): Alloc local zerobuf.
11695 (fetch_core_registers): Alloc local zerobuf.
11696 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11697 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11698 * thread-db.c (thread_db_store_registers): Ditto.
11699 * sh-tdep.c (sh_do_register): Ditto.
11700 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11701 * remote-sim.c (gdbsim_store_register): Ditto.
11702 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11703 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11704 * monitor.c (monitor_supply_register): Ditto.
11705 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11706 * mips-nat.c (fetch_inferior_registers): Ditto.
11707 * m68klinux-nat.c (fetch_register): Ditto.
11708 * lynx-nat.c (fetch_inferior_registers): Ditto.
11709 (fetch_inferior_registers): Ditto.
11710 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11711 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11712 (hpux_thread_store_registers): Ditto.
11713 * hppah-nat.c (fetch_register): Ditto.
11714 * hppab-nat.c (fetch_register): Ditto.
11715 * hppa-tdep.c (pa_register_look_aside): Ditto.
11716 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11717 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11718
e669114a
AC
117192003-02-01 Andrew Cagney <ac131313@redhat.com>
11720
11721 * gdbarch.sh: Explictly specify all method levels. When a
11722 variable with an empty level, provide a non-multi-arch default.
11723 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11724 * gdbarch.h: Re-generate.
11725 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11726 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11727
9a043c1d
AC
117282003-02-01 Andrew Cagney <ac131313@redhat.com>
11729
11730 * defs.h (host_pointer_to_address): Delete declaration.
11731 (address_to_host_pointer): Delete declaration.
11732 * utils.c (host_pointer_to_address): Delete function.
11733 (address_to_host_pointer): Delete function.
11734 * procfs.c (procfs_address_to_host_pointer): New function.
11735 * procfs.c (proc_set_watchpoint): Use.
11736 (procfs_can_use_hw_breakpoint): Update comments.
11737 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11738 (som_solib_add): Use.
11739 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11740 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11741
7ca9f392
AC
117422003-02-01 Andrew Cagney <ac131313@redhat.com>
11743
94bbfd30
AC
11744 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11745 strlen d_name.
11746
7ca9f392
AC
11747 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11748 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11749 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11750 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11751 (define_symbol): Update.
11752 * symfile.c (generic_load): Remove references to nindy.
11753 * symtab.c: Remove references to nindy.
11754
31a85ea2
AC
117552003-02-01 Andrew Cagney <ac131313@redhat.com>
11756
11757 * infcmd.c (print_float_info): Delete code conditional on
11758 FLOAT_INFO.
11759 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11760 * config/m68k/nm-apollo68b.h: Ditto.
11761 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11762 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11763 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11764
f6e85fc8
MK
117652003-02-01 Mark Kettenis <kettenis@gnu.org>
11766
6015b6a0
MK
11767 * config/i386/tm-i386os9k.h: Removed.
11768
f7a30bdf
MK
11769 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11770 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11771 they're identical to i[3456]86-*-sysv* now.
11772 * config/i386/i386v32.mh: Removed.
11773 * config/i386/xm-i386v32.h: Removed.
11774 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11775
28d52111
MK
11776 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11777
4d3f6bce
MK
11778 * config/i386/i386dgux.mh: Removed.
11779 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11780
f6e85fc8
MK
11781 * configure.in: Fix typo.
11782 * configure: Regenerated.
11783
53955967
DC
117842003-01-31 David Carlton <carlton@math.stanford.edu>
11785
11786 * dwarf2read.c (dwarf2_locate_sections): Set
11787 dwarf_ranges_section.
11788
b1364885
AC
117892003-01-31 Andrew Cagney <ac131313@redhat.com>
11790
8dbb1c65
AC
11791 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11792 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11793
8731e58e
AC
11794 * utils.c: Re-indent.
11795
b1364885
AC
11796 * config/djgpp/fnchange.lst: Delete nindy files.
11797 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11798 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11799 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11800 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11801 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11802 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11803 * Makefile.in (init.c): Remove nindy references.
11804 (saber_gdb): Delete rule.
11805 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11806 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11807 and a68v-nat.c.
11808 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11809 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11810 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11811 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11812 nindy-share/stop.h.
11813 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11814 * saber.suppress: Delete file.
11815
086df311
DJ
118162003-01-31 Daniel Jacobowitz <drow@mvista.com>
11817
11818 * dbxread.c (stabs_data): New static variable.
11819 (fill_symbuf): Support an in-memory buffer for stabs data.
11820 (stabs_seek): New function.
11821 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11822 (read_ofile_symtab): Use stabs_seek.
11823 (elfstab_build_psymtabs): Take an asection* instead of
11824 an offset and size. Relocate the stabs data if necessary.
11825 Save the section* for dbx_psymtab_to_symtab.
11826 * dwarf2read.c: Add section variables for each debug section.
11827 (dwarf2_locate_sections): Fill them in.
11828 (dwarf2_read_section): Take an asection* argument.
11829 Relocate the section contents if necessary.
11830 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11831 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11832 it to dwarf2_read_section.
11833 (dwarf2_build_frame_info): Update callers.
11834 * elfread.c (elf_symfile_read): Update call to
11835 elfstab_build_psymtabs.
11836 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11837 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11838 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11839 * symfile.c (symfile_dummy_outputs): New function.
11840 (symfile_relocate_debug_section): New function.
11841 * symfile.h (symfile_relocate_debug_section): Add prototype.
11842
87d1b352
RH
118432003-01-31 Richard Henderson <rth@redhat.com>
11844
11845 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11846 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11847 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11848 * alpha-tdep.c (alpha_register_name): Add "unique".
11849 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11850 (ALPHA_UNIQUE_REGNUM): New.
11851 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11852
c48861fb
AC
118532003-01-31 Andrew Cagney <ac131313@redhat.com>
11854
11855 * README: Remove reference to Ericsson 1800 monitor.
11856 * Makefile.in (remote-es.o): Delete rule.
11857 (ALLDEPFILES): Delete remote-es.c.
11858 * remote-es.c: Delete file.
11859 * config/m68k/es1800.mt: Delete file.
11860 * config/djgpp/fnchange.lst: Update.
11861 * configure.tgt: Delete m68*-ericsson-* target.
11862
d764a824
AF
118632003-01-31 Adam Fedor <fedor@gnu.org>
11864
11865 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11866 Remove duplicate/shadowing variable of same name.
11867
fe36c4f4
JB
118682003-01-30 Jim Blandy <jimb@redhat.com>
11869
11870 * symfile.c (find_separate_debug_file): Assert that the objfile's
11871 directory name we compute ends with a slash, and then assume that
11872 that's so everywhere we use it.
11873
cb741690
DJ
118742003-01-30 Daniel Jacobowitz <drow@mvista.com>
11875
11876 * valops.c (value_assign): Flush frame cache after stores to memory
11877 also.
11878
96ee5227
AC
118792003-01-30 Andrew Cagney <ac131313@redhat.com>
11880
11881 * Makefile.in (mon960-rom.o): Delete rule.
11882 * mon960-rom.c: Delete file.
11883
7f6104a9
AC
118842003-01-30 Andrew Cagney <ac131313@redhat.com>
11885
11886 * d10v-tdep.c: Include "frame-unwind.h".
11887 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11888 list.
11889 (next_addr, uses_frame): Delete.
11890 (struct d10v_unwind_cache): Define.
11891 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11892 Use info instead of next_addr and uses_frame globals.
11893 (d10v_frame_init_saved_regs): Delete function.
11894 (d10v_init_extra_frame_info): Delete function.
11895 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11896 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11897 init_frame_pc or frame_saved_pc.
11898 (d10v_pop_frame): Delete function.
11899 (do_d10v_pop_frame): Delete function.
11900 (d10v_frame_chain): Delete function.
11901 (d10v_frame_chain_valid): Delete function.
11902 (d10v_frame_pc_unwind): New function.
11903 (d10v_frame_id_unwind): New function.
11904 (saved_regs_unwinder): New function.
11905 (d10v_frame_register_unwind): New function.
11906 (d10v_frame_pop): New function.
11907 (d10v_frame_unwind): New variable.
11908 (d10v_frame_p): New function.
11909 (d10v_frame_saved_pc): Delete function.
11910 * Makefile.in (d10v-tdep.o): Update dependencies.
11911
cad2e848
JB
119122003-01-30 J. Brobecker <brobecker@gnat.com>
11913
11914 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11915 causing some regressions due to a change in the default value
11916 for this macro.
11917
af34e669
DJ
119182003-01-29 Richard Henderson <rth@redhat.com>
11919 Elena Zannoni <ezannoni@redhat.com>
11920 Daniel Jacobowitz <drow@mvista.com>
11921
11922 Fix PR gdb/961.
8ffd9b1b 11923 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11924 variables.
11925 (RANGES_SECTION): New.
11926 (dwarf_ranges_buffer): New variable.
11927 (struct comp_unit_head): Add member "die".
11928 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11929 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11930 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11931 (dwarf2_locate_sections): Likewise.
11932 (dwarf2_build_psymtabs): Read .debug_ranges.
11933 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11934 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11935 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11936 Look for DW_AT_ranges and return the bounding box.
11937
baa93fa6
CF
119382003-01-29 Brian Ford <ford@vss.fsi.com>
11939
11940 * win32-nat.c (cygwin_pid): Removed as unused.
11941 (child_attach): Try fall back to Cygwin pid.
11942
c63f977f
JB
119432003-01-29 Jim Blandy <jimb@redhat.com>
11944
11945 * objfiles.h (struct objfile): Doc fix.
11946
d62d1979
AC
119472003-01-29 Andrew Cagney <ac131313@redhat.com>
11948
11949 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11950 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11951 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11952 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11953 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11954 (FRAME_SAVED_PC): Change to a function with predicate.
11955 * gdbarch.h, gdbarch.c: Re-generate.
11956
1ae18a04
AC
119572003-01-28 Andrew Cagney <ac131313@redhat.com>
11958
52287340
AC
11959 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11960
1ae18a04
AC
11961 * complaints.c (complain): Delete function.
11962 * complaints.h (struct deprecated_complaint): Delete definition.
11963 (complain): Delete declaration.
11964
f2c16bd6
KB
119652003-01-28 Kevin Buettner <kevinb@redhat.com>
11966
11967 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11968 dummy frames.
11969
a94dd1fd
AC
119702003-01-27 Andrew Cagney <ac131313@redhat.com>
11971
11972 * sentinel-frame.h, sentinel-frame.c: New files.
11973 * Makefile.in (frame.o): Update dependencies.
11974 (SFILES): Add sentinel-frame.c.
11975 (sentinel_frame_h): Define.
11976 (COMMON_OBS): Add sentinel-frame.o.
11977 (sentinel-frame.o): Specify dependencies.
11978 * frame.c: Include "sentinel-frame.h".
11979 (frame_register_unwind): Rewrite assuming that there is always a a
11980 ->next frame.
11981 (frame_register, generic_unwind_get_saved_register): Ditto.
11982 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11983 (create_sentinel_frame, unwind_to_current_frame): New functions.
11984 (get_current_frame): Rewrite using create_sentinel_frame and
11985 unwind_to_current_frame. When possible, always create a frame.
11986 (create_new_frame): Set next to the sentinel frame.
11987 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11988 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11989 ID cache when necessary.
11990 (frame_saved_regs_id_unwind): Use frame_relative_level.
11991 (deprecated_generic_get_saved_register): Use frame_relative_level,
11992 get_frame_saved_regs, get_frame_pc, get_frame_base and
11993 get_next_frame.
11994 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11995 frame_register.
11996
5378adc4
DJ
119972003-01-27 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12000
51ee2ddc
DJ
120012003-01-27 Daniel Jacobowitz <drow@mvista.com>
12002
12003 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12004 (maintenance_set_profile_cmd): Use error () instead of warning ().
12005
d9feb4e7
DJ
120062003-01-27 Daniel Jacobowitz <drow@mvista.com>
12007
12008 * configure.in: Check that -pg works if using --enable-profiling.
12009 Check for monstartup and _mcleanup regardless of --enable-profiling.
12010 * maint.c: Check for monstartup and _mcleanup before using them.
12011 * config.in: Regenerated.
12012 * configure: Regenerated.
12013
2d188dd3
NC
120142003-01-24 Nick Clifton <nickc@redhat.com>
12015
12016 * Add sh2e support:
12017
12018 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12019
12020 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12021 (sh2e_show_regs): New.
12022 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12023 * config/sh/tm-sh.h: Added sh2e to comments.
12024
cb3c37b2
JB
120252003-01-23 Jim Blandy <jimb@redhat.com>
12026
12027 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12028 symbols found)" message here; we haven't checked for a separate
12029 debug info file yet, so we don't know yet.
12030 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12031 we've looked everywhere. Also, there's no need to print a special
12032 message when we're loading the separate debug info file: the one
12033 symbol_file_add prints is fine.
12034
5b5d99cf
JB
120352003-01-23 Alexander Larsson <alexl@redhat.com>
12036 Jim Blandy <jimb@redhat.com>
12037
12038 Add support for executables whose debug info has been separated
12039 out into a separate file, leaving only a link behind.
12040 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12041 and separate_debug_objfile_backlink.
12042 (put_objfile_before): New declaration.
12043 * symfile.c: #include "filenames.h".
12044 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12045 debug info in a separate file, read that, too. Save the addrs
12046 argument, so we can use it again to read the separated debug info;
12047 syms_from_objfile modifies the table we pass it.
12048 (reread_symbols): After re-reading an objfile, call
12049 reread_separate_symbols to refresh its separate debug info
12050 objfile, if it has one.
12051 (reread_separate_symbols, find_separate_debug_file,
12052 get_debug_link_info, separate_debug_file_exists): New functions.
12053 (debug_file_directory): New global var.
12054 (_initialize_symfile): Initialize debug_file_directory, and
12055 provide the new `set debug-file-directory' command to let the user
12056 change it.
12057 * objfiles.c (free_objfile): If this objfile has its debug info in
12058 a separate objfile, free that one too. If this is itself a
12059 separate debug info objfile, clear our parent's backlink.
12060 (put_objfile_before): New function.
12061 * utils.c (gnu_debuglink_crc32): New function.
12062 * defs.h (gnu_debuglink_crc32): New declaration.
12063 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12064 * configure.in: Handle --with-separate-debug-dir config option.
12065 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12066 * acconfig.h (DEBUGDIR): New macro.
12067 * configure, aclocal.m4, config.in: Regenerated.
12068
7e8580c1
JB
120692003-01-22 Jim Blandy <jimb@redhat.com>
12070
7904e09f
JB
12071 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12072 like the old symbol_file_add, but taking new arguments: you can
12073 now pass in either a `struct section_addr_info' list to say where
12074 each section is loaded, or a `struct section_offsets' table. Pass
12075 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12076 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12077 with the appropriate quiescent values for the new arguments.
12078
7e8580c1
JB
12079 * symfile.c: #include "gdb_assert.h".
12080 (syms_from_objfile): Add the ability to pass in a section offset
12081 table directly, as an alternative to the section_addr_info table.
12082 Document arguments better.
12083 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12084 * symfile.h (syms_from_objfile): Update declaration.
12085 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12086 syms_from_objfile.
12087 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12088
d28f9cdf
DJ
120892003-01-22 Daniel Jacobowitz <drow@mvista.com>
12090
12091 Original patch by Tom Tromey <tromey@cygnus.com> and
12092 Jason Molenda <jmolenda@apple.com>.
12093 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12094 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12095 * NEWS: Mention profiling.
12096 * configure.in (--enable-gdbtk): Fix typo.
12097 (--enable-profiling): New. Set PROFILE_CFLAGS.
12098 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12099 Fill in function.
12100 (profiling_state): New variable.
12101 (mcleanup_wrapper): New function.
12102 (_initialize_maint): Remove NOTYET, fix call to
12103 add_setshow_boolean_cmd for "maint set profile".
12104 * configure: Regenerated.
12105
df21e465
MH
121062003-01-21 Martin M. Hunt <hunt@redhat.com>
12107
12108 * Makefile.in (install-gdbtk): Install PNG images too.
12109
73c1f219
AC
121102003-01-21 Andrew Cagney <ac131313@redhat.com>
12111
12112 * exec.c (text_start): Delete global variable.
12113 (exec_file_attach): Make text_start local to the function.
12114 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12115 * valops.c (hand_function_call): Delete code that handles
12116 BEFORE_TEXT_END and AFTER_TEXT_END.
12117 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12118 of CALL_DUMMY_LOCATION.
12119 * gdbarch.c: Regenerate.
12120 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12121 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12122 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12123 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12124 (text_end): Delete extern declaration.
12125
eb4f72c5
AC
121262003-01-21 Andrew Cagney <ac131313@redhat.com>
12127
12128 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12129 * blockframe.c (backtrace_below_main): Move to "frame.c".
12130 (frame_chain_valid): Delete check for backtrace_below_main.
12131 (_initialize_blockframe): Delete initialization, move ``set
12132 backtrace-below-main'' command to "frame.c".
12133 (do_flush_frames_sfunc): Delete function.
12134 * frame.c: Include "command.h" and "gdbcmd.h".
12135 (frame_type_from_pc): New function.
12136 (create_new_frame): Use frame_type_from_pc.
12137 (legacy_get_prev_frame): New function.
12138 (get_prev_frame): Rewrite. When an old style frame, call
12139 legacy_get_prev_frame. Otherwize, unwind the PC first.
12140 (_initialize_frame): Add ``set backtrace-below-main'' command.
12141 * Makefile.in (frame.o): Update dependencies.
12142
778ce8cc
AC
121432003-01-19 Andrew Cagney <ac131313@redhat.com>
12144
12145 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12146 DEPRECATED_REGISTERS_INFO.
12147
01c193c8
AC
121482003-01-19 Andrew Cagney <ac131313@redhat.com>
12149
12150 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12151 Maintainers'. Update `Various Maintainers'.
12152
dedc2a2b
AC
121532003-01-19 Andrew Cagney <ac131313@redhat.com>
12154
12155 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12156 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12157 Suppress actual parameters when `-'.
12158 * gdbarch.h, gdbarch.c: Regenerate.
12159
b7261c70
AC
121602003-01-19 Andrew Cagney <ac131313@redhat.com>
12161
12162 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12163 code handling dummy frames.
12164
dbe9fe58
AC
121652003-01-19 Andrew Cagney <ac131313@redhat.com>
12166
12167 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12168 (struct frame_unwind): Add field pop.
12169 * frame.h (frame_pop): Declare.
12170 * frame.c (frame_saved_regs_pop): New function.
12171 (trad_frame_unwinder): Add frame_saved_regs_pop.
12172 (frame_pop): New function.
12173 * dummy-frame.c (dummy_frame_pop): New function.
12174 (discard_innermost_dummy): New function.
12175 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12176 (dummy_frame_unwind): Add dummy_frame_pop.
12177 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12178 * valops.c (hand_function_call): Ditto.
12179 * stack.c (return_command): Ditto.
12180
570b8f7c
AC
121812003-01-18 Andrew Cagney <ac131313@redhat.com>
12182
12183 * cris-tdep.c: Fix function declaration indentation.
12184 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12185 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12186 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12187 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12188 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12189 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12190
121912003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12192
12193 * README (Unpacking and Installation -- quick overview):
12194 Warn against ".../gdb-5.3/gdb/configure".
12195
494cca16
AC
121962003-01-18 Andrew Cagney <ac131313@redhat.com>
12197
12198 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12199 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12200 (struct frame_unwind): Declare opaque.
12201 (dummy_frame_p): Declare function.
12202 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12203 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12204 * dummy-frame.c: Include "frame-unwind.h".
12205 (dummy_frame_p): New function.
12206 (dummy_frame_unwind): New variable.
12207 * frame.c: Include "frame-unwind.h".
12208 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12209 to use the new unwind field.
12210 (set_unwind_by_pc): Delete function.
12211 (create_new_frame, get_prev_frame): Set unwind field using
12212 frame_unwind_find_by_pc.
12213 (trad_frame_unwind, trad_frame_unwinder): New variables.
12214 * frame.h (trad_frame_unwind): Declare variable.
12215 (frame_id_unwind_ftype): Delete declaration.
12216 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12217 (struct frame_unwind): Declare opaque.
12218 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12219 register_unwind with a single unwind pointer.
12220 * frame-unwind.h, frame-unwind.c: New files.
12221 * Makefile.in (SFILES): Add frame-unwind.c.
12222 (frame_unwind_h): Define.
12223 (COMMON_OBS): Add frame-unwind.o.
12224 (frame-unwind.o): Specify dependencies.
12225 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12226
4efb68b1
AC
122272003-01-18 Andrew Cagney <ac131313@redhat.com>
12228
12229 * ada-valprint.c: Eliminate PTR.
12230 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12231 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12232 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12233 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12234 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12235 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12236 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12237
a84d24ee
AC
122382003-01-17 Andrew Cagney <ac131313@redhat.com>
12239
762f08a3
AC
12240 * main.c (captured_main): Don't use PTR.
12241 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12242 * gdbtypes.c (lookup_primitive_typename): Ditto.
12243 (lookup_struct_elt_type): Ditto.
12244 * f-valprint.c (info_common_command): Ditto.
12245 (list_all_visible_commons): Ditto.
12246 * jv-typeprint.c (java_type_print_base): Ditto.
12247
a84d24ee
AC
12248 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12249 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12250 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12251 i386-interix-nat.c and i386-interix-tdep.c. Rename
12252 m68klinux-nat.c and m68klinux-tdep.c. Rename
12253 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12254 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12255 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12256 * main.c (captured_main): Use xfree, not free.
12257
c170fb60
AC
122582003-01-16 Andrew Cagney <ac131313@redhat.com>
12259
12260 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12261 ID back using a parameter.
12262 * frame.c (frame_id_unwind): Update call.
12263 (frame_saved_regs_id_unwind): Update.
12264 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12265 * dummy-frame.h (struct frame_id): Add opaque declaration.
12266 (dummy_frame_id_unwind): Update declaration.
12267
867f3898
AC
122682003-01-15 Andrew Cagney <ac131313@redhat.com>
12269
12270 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12271
40622be8 122722003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12273
40622be8 12274 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12275
ae66c1fc
EZ
122762003-01-14 Elena Zannoni <ezannoni@redhat.com>
12277
997b089a 12278 Fix PR gdb/898
ae66c1fc
EZ
12279 * breakpoint.c (until_break_command): Add new argument. Use it to
12280 decide whether to stop only at the current frame or not.
12281 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12282 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12283 call.
12284 (advance_command): New function.
12285 (_initialize_infcmd): Update help string for 'until' command.
12286 Add new 'advance' command.
12287
a04257e6
DC
122882003-01-14 David Carlton <carlton@math.stanford.edu>
12289
12290 * linespec.c (decode_line_1): Normalize comments.
12291 (set_flags): Ditto.
12292 (locate_first_half): Ditto.
12293 (decode_compound): Ditto.
12294 (symtab_from_filename): Ditto.
12295 (decode_all_digits): Ditto.
12296 (decode_dollar): Ditto.
12297 (find_methods): Ditto.
12298 (find_toplevel_char): Ditto.
12299
1bac305b
AC
123002003-01-13 Andrew Cagney <ac131313@redhat.com>
12301
12302 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12303 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12304 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12305 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12306 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12307 * language.c, language.h, m32r-tdep.c: Update copyright.
12308 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12309 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12310 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12311 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12312 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12313 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12314
25caa7a8
EZ
123152003-01-13 Elena Zannoni <ezannoni@redhat.com>
12316
12317 * stabsread.h (process_later, resolve_cfront_continuation):
12318 Obsolete.
12319 Update copyright years.
12320 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12321 Update copyright year.
12322 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12323 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12324 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12325 Update copyright year.
12326 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12327 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12328 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12329 (parse_partial_symbols): Obsolete cfront support.
12330 * stabsread.c
12331 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12332 macros.
12333 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12334 read_cfront_baseclasses, read_cfront_member_functions,
12335 resolve_cfront_continuation,read_cfront_static_fields,
12336 copy_cfront_struct_fields): Obsolete functions.
12337 (define_symbol, read_one_struct_field): Obsolete cfront support.
12338 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12339 Update Copyright year.
12340
7789c6f5
EZ
123412003-01-13 Elena Zannoni <ezannoni@redhat.com>
12342
12343 * stack.c (print_frame_info, print_stack_frame_base_stub,
12344 print_stack_frame_base, show_and_print_stack_frame_stub,
12345 show_and_print_stack_frame, print_only_stack_frame_stub,
12346 print_only_stack_frame): Delete functions.
12347 (print_stack_frame_stub): Call print_frame_info instead of
12348 print_frame_info_base.
12349 (print_frame_info_base): Rename to print_frame_info.
12350 (backtrace_command_1): Call print_frame_info, instead of
12351 print_frame_info_base.
12352 (current_frame_command): Call print_stack_frame, instead of
12353 print_only_stack_frame.
12354 (frame_command): Call print_stack_frame, instead of
12355 show_and_print_stack_frame.
12356 (up_command): Ditto.
12357 (down_command): Ditto.
12358 * frame.h (print_only_stack_frame): Delete prototype.
12359 * infrun.c (normal_stop): Call print_stack_frame, instead of
12360 show_and_print_stack_frame.
12361 * thread.c (info_threads_command): Call print_stack_frame, instead
12362 of print_only_stack_frame.
12363
3f5a3016
AC
123642003-01-13 Andrew Cagney <ac131313@redhat.com>
12365
d99ba314
AC
12366 * README (Graphical interface to GDB): Update URL. Point at
12367 gdb/links/.
12368
3f5a3016
AC
12369 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12370 version match.
12371
083ae935
DJ
123722003-01-13 Daniel Jacobowitz <drow@mvista.com>
12373
12374 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12375 lines.
12376
5365276c
DJ
123772003-01-13 Daniel Jacobowitz <drow@mvista.com>
12378
12379 * thread-db.c (attach_thread): Prototype.
12380 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12381 thread information (ti), and valid flags (th_valid, ti_valid).
12382 (attach_thread): Move target_pid_to_str call to after the thread
12383 is added to GDB's list. Initialize the cache.
12384 (thread_get_info_callback, thread_db_map_id2thr)
12385 (thread_db_get_info): New functions.
12386 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12387 (thread_db_store_registers, thread_db_thread_alive)
12388 (thread_db_get_thread_local_address): Use them.
12389 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12390 of calling error() for threads in unknown state.
12391
12392 (clear_lwpid_callback): New function.
12393 (thread_db_resume): Use it to clear the cache.
12394
9fc30b6b
DJ
123952003-01-13 Daniel Jacobowitz <drow@mvista.com>
12396
12397 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12398 (resume_callback): Remove dead code.
12399
8f871025
AC
124002003-01-13 Andrew Cagney <ac131313@redhat.com>
12401
12402 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12403 predicate.
12404 * gdbarch.h, gdbarch.c: Regenerate.
12405 * stack.c (frame_info): Only initialize the saved registers when
12406 FRAME_INIT_SAVED_REGS_P.
12407 * frame.c (frame_saved_regs_register_unwind): Assert
12408 FRAME_INIT_SAVED_REGS_P.
12409 (deprecated_generic_get_saved_register): Ditto.
12410
3f565f1e
DJ
124112003-01-13 Daniel Jacobowitz <drow@mvista.com>
12412
12413 * source.c (openp): Squelch warning about "filename".
12414
072b1022
DJ
124152003-01-13 Daniel Jacobowitz <drow@mvista.com>
12416
12417 * source.c (openp): If the file does not exist don't necessarily
12418 search the path.
12419
973ccf8b
DJ
124202003-01-13 Daniel Jacobowitz <drow@mvista.com>
12421
12422 Fix PR gdb/872.
12423 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12424 (integer_types_same_name_p): New function.
12425 (rank_one_type): Use it.
12426 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12427
030292b7
DJ
124282003-01-13 Daniel Jacobowitz <drow@mvista.com>
12429
12430 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12431 variables.
12432 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12433 * configure.in: Add --with-sysroot.
12434 * configure: Regenerated.
12435 * main.c (gdb_sysroot): New variable.
12436 (captured_main): Initialize gdb_sysroot.
12437 * defs.h (gdb_sysroot): New extern declaration.
12438 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12439
afb5d334
MC
124402003-01-12 Michael Chastain <mec@shout.net>
12441
12442 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12443
751ceeb4
MC
124442003-01-12 Michael Chastain <mec@shout.net>
12445
12446 * top.c (print_gdb_version): Bump copyright year to 2003.
12447
94cd26f8
DC
124482003-01-12 David Carlton <carlton@bactrian.org>
12449
12450 * linespec.c (symtab_from_filename): Rename variable 's' to
12451 'file_symtab'.
12452
1ce79225
AC
124532003-01-12 Andrew Cagney <ac131313@redhat.com>
12454
12455 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12456 dummy frame.
12457 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12458
fa1fd571
AC
124592003-01-12 Andrew Cagney <ac131313@redhat.com>
12460
12461 * d10v-tdep.c: Include "gdb_assert.h".
12462 (d10v_store_return_value): Rewrite to match current interface.
12463 (d10v_extract_struct_value_address): Ditto.
12464 (d10v_extract_return_value): Ditto.
12465 (d10v_gdbarch_init): Set store_restore_value,
12466 extract_struct_value_address and extract_return_value.
12467
68b8d23e
JB
124682003-01-12 J. Brobecker <brobecker@gnat.com>
12469
12470 * hpread.c (set_namestring): New procedure replacing the
12471 SET_NAMESTRING macro.
12472 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12473 by calls to set_namestring.
12474
124752003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12476
12477 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12478 a compilation warning.
12479 (hpread_process_one_debug_symbol): Likewise.
12480
88d262ca
DC
124812003-01-10 David Carlton <carlton@math.stanford.edu>
12482
12483 * linespec.c (decode_line_1): Rename variable 's' to
12484 'file_symtab'.
12485 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12486 (decode_dollar): Ditto.
12487 (decode_variable): Ditto.
12488 (symbol_found): Ditto.
12489
86669319
MC
124902003-01-09 Michael Chastain <mec@shout.net>
12491
12492 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12493
616a9dc4
CV
124942003-01-07 Corinna Vinschen <vinschen@redhat.com>
12495
12496 * win32-nat.c (set_process_privilege): New function.
12497 (child_attach): Call set_process_privilege() to enable the
12498 SE_DEBUG_NAME user privilege if available in process token.
12499
3269bcfa
JB
125002003-01-10 J. Brobecker <brobecker@gnat.com>
12501
12502 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12503 compilation error in the previous revision.
12504
2b0ee454
DC
125052003-01-09 David Carlton <carlton@math.stanford.edu>
12506
12507 * linespec.c: Update copyright.
12508
b3ba1b44
DJ
125092003-01-09 Daniel Jacobowitz <drow@mvista.com>
12510
12511 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12512 than inferior_ptid.
12513 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12514
4ef3f3be
AC
125152003-01-09 Andrew Cagney <ac131313@redhat.com>
12516
479ab5a0
AC
12517 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12518 Update comments.
12519 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12520 (frame_saved_regs_zalloc): Update.
12521 (frame_saved_regs_register_unwind): Update.
12522 (create_new_frame): Update.
12523 (get_prev_frame): Update.
12524 (frame_extra_info_zalloc): Update.
12525 (deprecated_get_frame_saved_regs): Update.
12526 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12527 * cris-tdep.c: Update comment.
12528
bde58177
AC
12529 * somsolib.h: Fix function indentation.
12530 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12531 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12532 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12533 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12534 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12535
4ef3f3be
AC
12536 * infrun.c (follow_fork): Use ISO C definition.
12537 * expprint.c (print_subexp): Use xfree instead of free.
12538 * charset.c: Include "gdb_string.h" instead of <string.h>.
12539 (register_iconv_charsets): Use ISO C definition.
12540 (host_charset, target_charset): Ditto.
12541 * Makefile.in (charset.o): Update dependencies.
12542 (mi-cmd-env.o): Update dependencies.
12543
1c615f7a
AC
125442003-01-08 Andrew Cagney <cagney@redhat.com>
12545
12546 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12547 get_frame_base.
12548
c9a1dc08
AC
125492003-01-08 Andrew Cagney <ac131313@redhat.com>
12550
12551 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12552 build directories. Save edited gdb output in Mbuild.log. If a
12553 build fails, remove any final GDB executable.
12554
dbad9d94
AC
125552003-01-08 Andrew Cagney <ac131313@redhat.com>
12556
12557 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12558 replacing hex constants with function names and stripping leading
12559 file name directory prefixes.
12560
8d357cca
AC
125612003-01-08 Andrew Cagney <cagney@redhat.com>
12562
12563 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12564 get_frame_base.
12565
bca02a8a
DC
125662003-01-08 David Carlton <carlton@math.stanford.edu>
12567
12568 * linespec.c (decode_line_1): Move code into decode_variable.
12569 (decode_variable): New function.
12570
7f8ab3a0
AC
125712003-01-08 Andrew Cagney <ac131313@redhat.com>
12572
12573 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12574
7b5849cc
AC
125752003-01-08 Andrew Cagney <cagney@redhat.com>
12576
12577 * cris-tdep.c (cris_frame_init_saved_regs): Use
12578 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12579 saved_regs buffer.
12580 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12581 (sh64_nofp_frame_init_saved_regs): Ditto.
12582 (sh_fp_frame_init_saved_regs): Ditto.
12583 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12584 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12585 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12586 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12587
72a5efb3
DJ
125882003-01-08 Daniel Jacobowitz <drow@mvista.com>
12589
12590 * minsyms.c (lookup_minimal_symbol): Update comment.
12591 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12592 (lookup_minimal_symbol_solib_trampoline): Likewise.
12593
11c02a10
AC
125942003-01-08 Andrew Cagney <cagney@redhat.com>
12595
aab3ea25
AC
12596 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12597 frame_relative_level.
12598
da50a4b7
AC
12599 * alpha-tdep.c: Use get_frame_extra_info.
12600 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12601 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12602 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12603 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12604
11c02a10
AC
12605 * alpha-tdep.c: Use get_next_frame.
12606 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12607 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12608 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12609 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12610 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12611 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12612 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12613
1e2330ba
AC
126142003-01-07 Andrew Cagney <cagney@redhat.com>
12615
12616 * alpha-tdep.c: Use get_frame_base.
12617 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12618 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12619 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12620 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12621 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12622 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12623 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12624 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12625
2d75187b
AC
126262003-01-07 Andrew Cagney <cagney@redhat.com>
12627
12628 * frame.c (deprecated_get_frame_context): New function.
12629 (deprecated_set_frame_context): New function.
12630 * frame.h (deprecated_get_frame_context): Declare.
12631 (deprecated_set_frame_context): Declare.
12632 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12633 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12634
483d36b2
AC
126352003-01-07 Andrew Cagney <cagney@redhat.com>
12636
12637 * frame.c (deprecated_set_frame_next_hack): New function.
12638 (deprecated_set_frame_prev_hack): New function.
12639 * frame.h (deprecated_set_frame_next_hack): Declare.
12640 (deprecated_set_frame_prev_hack): Declare.
12641 * mcore-tdep.c (analyze_dummy_frame): Use
12642 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12643 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12644
14e91ac5
DC
126452003-01-07 David Carlton <carlton@math.stanford.edu>
12646
12647 * linespec.c (decode_line_1): Move code into decode_dollar.
12648 (decode_dollar): New function.
12649
b0c6b05c
AC
126502003-01-07 Andrew Cagney <cagney@redhat.com>
12651
12652 * arm-tdep.c (arm_init_extra_frame_info): Use
12653 deprecated_update_frame_base_hack.
12654 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12655 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12656 (fix_frame_pointer): Ditto.
12657 (mn10300_analyze_prologue): Ditto.
12658
a00a19e9
AC
126592003-01-07 Andrew Cagney <cagney@redhat.com>
12660
12661 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12662 extra_info using frame_extra_info_zalloc.
12663 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12664 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12665 (sh64_init_extra_frame_info): Ditto.
12666 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12667 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12668 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12669 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12670 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12671 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12672 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12673 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12674 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12675 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12676 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12677 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12678
12679 * mn10300-tdep.c (analyze_dummy_frame): Use
12680 deprecated_set_frame_extra_info_hack.
12681 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12682
1fb4c65b
JB
126832003-01-07 J. Brobecker <brobecker@gnat.com>
12684
12685 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12686 class is not scText. These do not define "real" procedures.
12687 (parse_partial_symbols): Likewise.
12688
9fe7d6bf
MS
126892003-01-06 Michael Snyder <msnyder@redhat.com>
12690
12691 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12692
f6c609c4
AC
126932003-01-06 Andrew Cagney <ac131313@redhat.com>
12694
12695 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12696 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12697 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12698 deprecated_frame_xmalloc_with_cleanup.
12699 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12700 deprecated_frame_xmalloc.
12701 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12702 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12703
d995ff4b
AC
127042003-01-06 Andrew Cagney <cagney@redhat.com>
12705
84dc46cb
AC
12706 * x86-64-linux-tdep.c: Include "osabi.h".
12707 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12708
d995ff4b
AC
12709 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12710
66140c26
AC
127112003-01-06 Andrew Cagney <cagney@redhat.com>
12712
12713 * MAINTAINERS (Target Instruction Set Architectures): Update
12714 arm-elf. Can be built with -Werror, has been multiarched.
12715
12716 * value.h (unpack_long): Make buffer parameter constant.
12717 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12718 * scm-lang.h (scm_parse): Ditto.
12719 * defs.h (extract_typed_address, extract_address): Ditto.
12720 (extract_long_unsigned_integer): Ditto.
12721 * inferior.h (unsigned_pointer_to_address): Ditto.
12722 (signed_pointer_to_address): Ditto.
12723 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12724 * gdbarch.h, gdbarch.c: Regenerate.
12725 * findvar.c (extract_long_unsigned_integer): Update.
12726 (extract_address): Update.
12727 (extract_typed_address): Update.
12728 (unsigned_pointer_to_address): Update.
12729 * values.c (unpack_long): Update.
12730 (unpack_double): Update.
12731 (unpack_pointer): Update.
12732 (unpack_field_as_long): Update.
12733 * d10v-tdep.c (d10v_pointer_to_address): Update.
12734 * avr-tdep.c (avr_pointer_to_address): Update.
12735 * scm-lang.c (scm_unpack): Update.
12736 * findvar.c (signed_pointer_to_address): Update.
12737
b089b3da
ML
127382003-01-06 Michal Ludvig <mludvig@suse.cz>
12739
8ffd9b1b 12740 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12741 since it is in i386-tdep.c.
12742
aff87235
JB
127432003-01-06 J. Brobecker <brobecker@gnat.com>
12744
12745 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12746 failure introduced in the previous change.
12747
34f5e845
MC
127482003-01-05 Michael Chastain <mec@shout.net>
12749
12750 * README: Remove references to deleted remote-*.c files:
12751 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12752 remote-nrom.c, remote-os9k.c, remote-udi.c.
12753
28bcfd30
MK
127542003-01-05 Mark Kettenis <kettenis@gnu.org>
12755
12756 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12757 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12758 i386_get_longjmp_target.
12759
15a5b3ee
AC
127602003-01-05 Andrew Cagney <ac131313@redhat.com>
12761
12762 * arm-tdep.c (prologue_cache): Change to a pointer.
12763 (_initialize_arm_tdep): Allocate prologue_cache.
12764 (check_prologue_cache): Update.
12765 (save_prologue_cache): Update.
12766 (arm_gdbarch_init): Update.
12767
c263362b
DJ
127682003-01-04 Daniel Jacobowitz <drow@mvista.com>
12769
12770 * stabsread.c (update_method_name_from_physname): Call complaint()
12771 instead of error.
12772
51603483
DJ
127732003-01-04 Daniel Jacobowitz <drow@mvista.com>
12774
12775 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12776 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12777 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12778
12779 * blockframe.c: Include "gdbcmd.h" and "command.h".
12780 (backtrace_below_main): New variable.
12781 (file_frame_chain_valid, func_frame_chain_valid)
12782 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12783 (generic_func_frame_chain_valid): Remove functions.
12784 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12785 (_initialize_blockframe): New function.
12786 * Makefile.in (blockframe.o): Update dependencies.
12787 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12788 comment. Call frame_chain_valid ().
12789 * frame.h: Remove old prototypes. Add prototype for
12790 frame_chain_valid and update comments to match.
12791 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12792 Remove old comment.
12793 * gdbarch.h: Regenerated.
12794 * gdbarch.c: Regenerated.
12795
12796 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12797 set_gdbarch_frame_chain_valid.
12798 * avr-tdep.c (avr_gdbarch_init): Likewise.
12799 * cris-tdep.c (cris_gdbarch_init): Likewise.
12800 * frv-tdep.c (frv_gdbarch_init): Likewise.
12801 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12802 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12803 (i386_nw_init_abi): Likewise.
12804 (i386_gdbarch_init): Likewise.
12805 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12807 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12808 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12809 * mips-tdep.c (mips_gdbarch_init): Likewise.
12810 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12811 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12812 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12813 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12814 * s390-tdep.c (s390_gdbarch_init): Likewise.
12815 * sh-tdep.c (sh_gdbarch_init): Likewise.
12816 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12817 * v850-tdep.c (v850_gdbarch_init): Likewise.
12818 * vax-tdep.c (vax_gdbarch_init): Likewise.
12819 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12820
12821 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12822 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12823 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12824 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12825 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12826 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12827 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12828 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12829
b00a8037
DJ
128302002-01-04 Daniel Jacobowitz <drow@mvista.com>
12831
12832 * Makefile.in (acconfig_h): Remove incorrect macro.
12833 (config_h): Define.
12834 (osabi.o): Update dependencies.
12835 * configure.tgt: Set gdb_osabi based on target triplet.
12836 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12837 * configure: Regenerated.
12838 * config.in: Regenerated.
12839 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12840 (GDB_OSABI_DEFAULT): Define if not already defined.
12841 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12842 (set_osabi_string): New variables.
12843 (gdbarch_register_osabi): Add new OS ABI to
12844 gdb_osabi_available_names.
12845 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12846 (set_osabi, show_osabi): New functions.
12847 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12848
4be87837
DJ
128492003-01-04 Daniel Jacobowitz <drow@mvista.com>
12850
12851 * arch-utils.c (gdbarch_info_init): Set osabi to
12852 GDB_OSABI_UNINITIALIZED.
12853 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12854 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12855 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12856 * gdbarch.c: Regenerated.
12857 * gdbarch.h: Regenerated.
12858 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12859 there's no BFD.
12860 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12861 * osabi.h (enum gdb_osabi): Move to defs.h.
12862 (gdbarch_init_osabi): Update prototype.
12863 * defs.h (enum gdb_osabi): Moved here.
12864 * Makefile.in: Update dependencies.
12865
12866 * alpha-tdep.h: Don't include "osabi.h".
12867 (struct gdbarch_tdep): Remove osabi member.
12868 * alpha-tdep.c: Include "osabi.h".
12869 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12870 iterate over arches. Update call to gdbarch_init_osabi.
12871 (alpha_dump_tdep): Don't dump osabi.
12872 * alpha-linux-tdep.c: Include "osabi.h".
12873 * alpha-osf1-tdep.c: Include "osabi.h".
12874 * alphafbsd-tdep.c: Include "osabi.h".
12875 * alphanbsd-tdep.c: Include "osabi.h".
12876
12877 * arm-tdep.h: Don't include "osabi.h".
12878 (struct gdbarch_tdep): Remove osabi member.
12879 * arm-tdep.c: Include "osabi.h".
12880 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12881 iterate over arches. Update call to gdbarch_init_osabi.
12882 (arm_dump_tdep): Don't dump osabi.
12883 * arm-linux-tdep.c: Include "osabi.h".
12884 * armnbsd-tdep.c: Include "osabi.h".
12885
12886 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12887 Update call to gdbarch_init_osabi.
12888
12889 * i386-tdep.h: Don't include "osabi.h".
12890 (struct gdbarch_tdep): Remove osabi member.
12891 * i386-tdep.c: Include "osabi.h".
12892 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12893 iterate over arches. Update call to gdbarch_init_osabi.
12894 (i386_dump_tdep): Don't dump osabi.
12895 * i386-linux-tdep.c: Include "osabi.h".
12896 * i386-sol2-tdep.c: Include "osabi.h".
12897 * i386bsd-tdep.c: Include "osabi.h".
12898 * i386gnu-tdep.c: Include "osabi.h".
12899 * i386ly-tdep.c: Include "osabi.h".
12900 * i386nbsd-tdep.c: Include "osabi.h".
12901 * i386obsd-tdep.c: Include "osabi.h".
12902
12903 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12904 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12905 check osabi when iterating over arches. Update call to
12906 gdbarch_init_osabi.
12907 (mips_dump_tdep): Don't dump osabi.
12908
12909 * ns32k-tdep.h: Don't include "osabi.h".
12910 (struct gdbarch_tdep): Remove.
12911 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12912 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12913 allocate tdep. Update call to gdbarch_init_osabi.
12914 (ns32k_dump_tdep): Remove.
12915 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12916 * ns32knbsd-tdep.c: Include "osabi.h".
12917
12918 * ppc-tdep.h: Don't include "osabi.h".
12919 (struct gdbarch_tdep): Remove osabi member.
12920 * rs6000-tdep.c: Include "osabi.h".
12921 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12922 osabi when iterating over arches. Update call to
12923 gdbarch_init_osabi.
12924 (rs6000_dump_tdep): Don't dump osabi.
12925 * ppc-linux-tdep.c: Include "osabi.h".
12926 * ppcnbsd-tdep.c: Include "osabi.h".
12927
12928 * sh-tdep.h: Don't include "osabi.h".
12929 (struct gdbarch_tdep): Remove osabi member.
12930 * sh-tdep.c: Include "osabi.h".
12931 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12932 iterate over arches. Update call to gdbarch_init_osabi.
12933 (sh_dump_tdep): Don't dump osabi.
12934 * shnbsd-tdep.c: Include "osabi.h".
12935
12936 * sparc-tdep.c: Include "osabi.h".
12937 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12938 iterate over arches. Update call to gdbarch_init_osabi.
12939 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12940 tdep structure.
12941
12942 * vax-tdep.h: Don't include "osabi.h".
12943 (struct gdbarch_tdep): Remove.
12944 * vax-tdep.c: Include "osabi.h".
12945 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12946 iterate over arches. Don't allocate tdep. Update call
12947 to gdbarch_init_osabi.
12948 (vax_dump_tdep): Remove.
12949 (_initialize_vax_tdep): Update call to gdbarch_register.
12950
a881cf8e
DJ
129512003-01-04 Daniel Jacobowitz <drow@mvista.com>
12952
12953 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12954 entirely.
12955 (breakpoint_re_set_one): Don't fetch the value for a disabled
12956 watchpoint.
12957
1e698235
DJ
129582003-01-04 Daniel Jacobowitz <drow@mvista.com>
12959
12960 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12961 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12962 (COERCE_FLOAT_TO_DOUBLE): Remove.
12963 * gdbarch.c: Regenerate.
12964 * gdbarch.h: Regenerate.
12965 * Makefile.in: Remove value_h from gdbarch_h.
12966 * valops.c (coerce_float_to_double): New variable.
12967 (default_coerce_float_to_double): Remove.
12968 (standard_coerce_float_to_double): Remove.
12969 (value_arg_coerce): Use coerce_float_to_double.
12970 (_initialize_valops): Add "set coerce-float-to-double".
12971 * value.h (default_coerce_float_to_double): Remove prototype.
12972 (standard_coerce_float_to_double): Remove prototype.
12973
12974 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12975 prototyped.
12976 * mdebugread.c (parse_symbol): Likewise.
12977 * stabsread.c (define_symbol): Mark all functions as prototyped.
12978
12979 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12980 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12981 set_gdbarch_coerce_float_to_double.
12982 * arm-tdep.c (arm_gdbarch_init): Likewise.
12983 * frv-tdep.c (frv_gdbarch_init): Likewise.
12984 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12985 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12986 * mips-tdep.c (mips_gdbarch_init): Likewise.
12987 (mips_coerce_float_to_double): Remove.
12988 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12989 (rs6000_coerce_float_to_double): Remove.
12990 * s390-tdep.c (s390_gdbarch_init): Likewise.
12991 * sh-tdep.c (sh_gdbarch_init): Likewise.
12992 (sh_coerce_float_to_double): Remove.
12993 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12994 (sparc_coerce_float_to_double): Remove.
12995 * v850-tdep.c (v850_gdbarch_init): Likewise.
12996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12997 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12998 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12999 (hppa_coerce_float_to_double): Remove prototype.
13000 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13001
f436a26a
DJ
130022003-01-04 Daniel Jacobowitz <drow@mvista.com>
13003
13004 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13005
248f8055
DJ
130062003-01-04 Daniel Jacobowitz <drow@mvista.com>
13007
13008 Suggested by Stewart Brown <sb24@avaya.com>:
13009 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13010 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13011 (c_type_print_varspec_suffix): Likewise.
13012
72cfdc76
MK
130132003-01-04 Mark Kettenis <kettenis@gnu.org>
13014
bfd260bb
MK
13015 * configure.in: Don't set and AC_SUBST SUBDIRS.
13016 * configure: Regenerated.
13017
72cfdc76
MK
13018 * configure.in: Remove code dealing with shared libraries.
13019 * Makefile.in: Remove HLDFLAGS and HLDENV.
13020 * configure: Regenerated.
13021
c8b8a898
AC
130222003-01-04 Andrew Cagney <ac131313@redhat.com>
13023
13024 * frame.c (deprecated_frame_xmalloc): New function.
13025 (deprecated_set_frame_saved_regs_hack): New function.
13026 (deprecated_set_frame_extra_info_hack): New function.
13027 * frame.h (deprecated_frame_xmalloc): Declare.
13028 (deprecated_set_frame_saved_regs_hack): Declare.
13029 (deprecated_set_frame_extra_info_hack): Declare.
13030
14abd0fb
MK
130312003-01-04 Mark Kettenis <kettenis@gnu.org>
13032
8ee53726
MK
13033 * configure.in: Move code that provides the --enable-gdbtk option
13034 right after the code that handles the --enable-tui option, and
13035 polish it somewhat.
13036 * configure: Regenerated.
13037
14abd0fb
MK
13038 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13039 AC_CHECK_FUNCS and remove the old check for pread64.
13040 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13041 * acconfig.h (_GNU_SOURCE): Add.
13042 (HAVE_PREAD64): Remove.
13043 * configure, aclocal.m4, config.in: Regenerated.
13044
b2fb4676
AC
130452003-01-03 Andrew Cagney <ac131313@redhat.com>
13046
13047 * alpha-tdep.c: Use get_frame_saved_regs.
13048 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13049 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13050 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13051 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13052 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13053
8dcde887
MK
130542003-01-03 Mark Kettenis <kettenis@gnu.org>
13055
13056 * configure.in: Remove all use of the SUBDIRS variable; add
13057 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13058 code providing the --enable-multi-ice option, and move it right in
13059 front of the code that checks whether gdbserver is supported.
13060 Polish that too.
13061 * configure: Regenerated.
13062 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13063 @SUBDIRS@.
13064
8ccd593b
AC
130652003-01-03 Andrew Cagney <cagney@redhat.com>
13066
13067 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13068 * avr-tdep.c, cris-tdep.c: Ditto.
13069 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13070 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13071
91151a06
MK
130722003-01-03 Mark Kettenis <kettenis@gnu.org>
13073
13074 * configure.in: Remove --enable-netrom option.
13075 * configure: Regenerated.
13076
8fe84d01
MK
130772003-01-03 Mark Kettenis <kettenis@gnu.org>
13078
13079 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13080 declaration for `struct re_pattern_buffer' instead.
13081 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13082
f0394be6
JB
130832003-01-03 J. Brobecker <brobecker@gnat.com>
13084
13085 * mdebugread.c (parse_symbol): Count until the stEnd matching
13086 the structure name.
13087
27e9bf90
MK
130882003-01-02 Mark Kettenis <kettenis@gnu.org>
13089
93d331ba
MK
13090 * configure.in: Remove --with-cpu option.
13091 subscripts. Remove evil changequotes here.
13092 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13093 * config.in, configure: Regenerated.
8ffd9b1b 13094
27e9bf90
MK
13095 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13096 * configure.in: Cleanup section that sources GDB and BFD configure
13097 subscripts. Remove evil changequotes here.
13098 * config.in, configure: Regenerated.
13099
50abf9e5
AC
131002003-01-02 Andrew Cagney <ac131313@redhat.com>
13101
13102 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13103 frame accessor methods.
13104 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13105 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13106 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13107 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13108 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13109 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13110 * z8k-tdep.c: Ditto.
8ffd9b1b 13111
287c1a40
MK
131122003-01-02 Mark Kettenis <kettenis@gnu.org>
13113
f5dbc56d
MK
13114 * configure.in: Remove UI_OUT configuration code.
13115 * ada-lang.c: Update assuming UI_OUT is always true.
13116 * Makefile.in (UIOUT_CFLAGS): Remove.
13117 * configure: Regenerated.
13118 * TODO: Remove blurb about elimination of -DUI_OUT.
13119
627af7ea
MK
13120 * configure.in: Move code that provides the --enable-gdbcli,
13121 --enable-gdbmi options right before the code that handles the
13122 --enable-tui option. Polish a bit.
13123 * configure: Regenerated.
13124
06825bd1
MK
13125 * configure.in: Rewrite check for GNU regex and the
13126 --without-included regex option, and move it into the "Checks for
13127 library functions" section. This makes us use the system regex
13128 again by default on systems with version 2 of the GNU C library.
13129 This was apparently broken.
13130 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13131 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13132 * config.in, configure: Regenerated.
13133
287c1a40
MK
13134 * configure.in: Move code that provides the --enable-tui option
13135 before the "Checks for libraries" section. Polish the code
13136 somewhat and set need_curses to yes if we build the TUI. Rewrite
13137 code that looks for a library providing termcap functionality to
13138 match more closely what's done in the Readline library, and move
13139 it into to the "Checks for libraries" section.
13140 * configure: Regenerated.
13141 * Makefile.in (TERMCAP): Remove variable.
13142 * config/i386/go32.mh (TERMCAP): Remove variable.
13143
684e56bf
AC
131442003-01-02 Andrew Cagney <ac131313@redhat.com>
13145
13146 * MAINTAINERS: Mention gdb_mbuild.sh.
13147 * gdb_mbuild.sh: Rewrite.
13148
e1ea1d75
MK
131492003-01-02 Mark Kettenis <kettenis@gnu.org>
13150
13151 * configure.in: Fix typo in last change.
13152 * config.in, configure: Regenerated.
13153
1b831c93
AC
131542003-01-02 Andrew Cagney <ac131313@redhat.com>
13155
13156 * valarith.c (value_binop): Delete obsolete code and comments.
13157 * configure.host: Ditto.
13158 * buildsym.h (make_blockvector): Ditto.
13159 * buildsym.c (make_blockvector): Ditto.
13160 * defs.h (enum language): Ditto.
13161 (chill_demangle): Ditto.
13162 * elfread.c (elf_symtab_read): Ditto.
13163 * dwarfread.c (CHILL_PRODUCER): Ditto.
13164 (set_cu_language): Ditto.
13165 (handle_producer): Ditto.
13166 * expprint.c (print_subexp): Ditto.
13167 * gdbtypes.c (chill_varying_type): Ditto.
13168 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13169 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13170 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13171 (chill_varying_type): Ditto.
13172 * language.h (_LANG_chill): Ditto.
13173 * language.c (binop_result_type, integral_type): Ditto.
13174 (character_type, string_type, structured_type): Ditto.
13175 (lang_bool_type, binop_type_check): Ditto.
13176 * stabsread.h (os9k_stabs): Ditto.
13177 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13178 (define_symbol, read_type, read_struct_fields): Ditto.
13179 (read_array_type, read_enum_type, read_huge_number): Ditto.
13180 (read_range_type, start_stabs): Ditto.
13181 * symfile.c (init_filename_language_table): Ditto.
13182 (add_psymbol_with_dem_name_to_list): Ditto.
13183 * symtab.c (symbol_init_language_specific): Ditto.
13184 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13185 * symtab.h (struct general_symbol_info): Ditto.
13186 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13187 * typeprint.c (typedef_print): Ditto.
13188 * utils.c (fprintf_symbol_filtered): Ditto.
13189 * valops.c (value_cast, search_struct_field, value_slice): Delete
13190 obsolete code.
13191 (varying_to_slice): Delete function.
13192 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13193 (varying_to_slice): Delete declaration.
13194 * MAINTAINERS: Update.
13195
8bb2c122
MK
131962003-01-02 Mark Kettenis <kettenis@gnu.org>
13197
97bf5e38
MK
13198 * configure.in: Reorganize "Checks for library functions section"
13199 a bit. Remove check for `btowc' and `isascii' functions.
13200 * configure: Regenerated.
13201
5ee754fc
MK
13202 * acconfig.h (_MSE_INT_H): Remove.
13203 * configure.in: Create "Checks for header files" section, and move
13204 appropriate tests there. Don't check for objlist.h, wchar.h,
13205 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13206 misdetection fix. Also add "Checks for types", "Checks for
13207 compiler characteristics" and "Checks for library functions"
13208 sections.
13209 * config.in, configure: Regenerated.
13210
8bb2c122
MK
13211 * configure.in: Create "Checks for programs" section, and move
13212 appropriate tests there.
13213
9a156167
MK
132142003-01-01 Mark Kettenis <kettenis@gnu.org>
13215
13216 * configure.in: Create "Checks for libraries" section, and move
13217 appropriate tests there. Cleanup check for wctype in libw. Use
13218 AC_SEARCH_LIBS to see whether we need libsocket.
13219 * configure: Regenerated.
13220
a80e2bcb 13221For older changes see ChangeLog-2002
c906108c
SS
13222\f
13223Local Variables:
13224mode: change-log
13225left-margin: 8
13226fill-column: 74
13227version-control: never
13228End:
This page took 1.143361 seconds and 4 git commands to generate.