2003-10-10 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8be9034a
AC
12003-10-10 Andrew Cagney <cagney@redhat.com>
2
3 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
4 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
5 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
6 * ppc-sysv-tdep.c: Include "gdb_assert.h".
7 (ppc64_sysv_abi_push_dummy_call): New function.
8 (ppc64_sysv_abi_broken_push_dummy_call): New function.
9 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
10 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
11
85a453d5
KI
122003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
13
14 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
15 * README: Ditto.
16 * d10v-tdep.c: Ditto.
17 * h8300-tdep.c: Ditto.
18 * remote-e7000.c: Ditto.
19 * remote-hms.c: Ditto.
20 * ser-e7kpc.c: Ditto.
21 * sh-stub.c: Ditto.
22 * sh-tdep.c: Ditto.
23 * sh-tdep.h: Ditto.
24 * sh3-rom.c: Ditto.
25 * sh64-tdep.c: Ditto.
26 * top.c: Ditto.
27 * wince.c: Ditto.
28 * config/d10v/d10v.mt: Ditto.
29 * config/sh/embed.mt: Ditto.
30 * config/sh/linux.mt: Ditto.
31 * config/sh/tm-linux.h: Ditto.
32 * config/sh/tm-sh.h: Ditto.
33 * config/sh/wince.mt: Ditto.
34
221c12ff
AC
352003-10-09 Andrew Cagney <cagney@redhat.com>
36
37 * ppc-tdep.h (struct type): Declare opaque.
38 * x86-64-tdep.h (struct regcache): Declare opaque.
39 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
40 coding style.
41
ef5200c1
AC
422003-10-09 Andrew Cagney <cagney@redhat.com>
43
44 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
45 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
46 (SOFTWARE_SINGLE_STEP_P): Ditto.
47 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
48 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
49 (SOFTWARE_SINGLE_STEP_P): Ditto.
50 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
51 software_single_step to rs6000_software_single_step.
52
9644bbdd
AC
532003-10-09 Andrew Cagney <cagney@redhat.com>
54
55 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
56
db72fa6b
MS
572003-10-09 Michael Snyder <msnyder@redhat.com>
58
f3efb16c
MS
59 * frame.h: Fix typo in comment.
60 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
61 * d10v-tdep.c: Random whitespace/comment tweaks.
62
9a5cef92
EZ
632003-10-09 Elena Zannoni <ezannoni@redhat.com>
64
65 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 66 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92
EZ
67 on stack.
68
69 Based on input by Stephen Clarke (stephen.clarke@superh.com):
70 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
71 in detail.
72
0f317a0c
DJ
732003-10-09 Daniel Jacobowitz <drow@mvista.com>
74
75 * remote-mips.c (mips_initialize): Remove unneeded call to
76 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
77
bbab2f46
DJ
782003-10-09 Daniel Jacobowitz <drow@mvista.com>
79
80 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
81 a memory pointer.
82
550950b8
JJ
832003-10-08 Jeff Johnston <jjohnstn@redhat.com>
84
85 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
86 for any lwp we resume.
87 (running_callback): Add lwps that have pending status events
88 against them to be considered running.
89
15c69bc7
KI
902003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
91
92 * m32r-tdep.c : Include "dis-asm.h".
93 * Makefile.in (m32r-tdep.o): Update dependencies.
94
51065942
JB
952003-10-06 J. Brobecker <brobecker@gnat.com>
96
97 * completer.h (get_gdb_completer_word_break_characters): Delete.
98 * completer.c: include language.h.
99 (gdb_completer_word_break_characters): Delete.
100 (get_gdb_completer_word_break_characters): Delete.
101 (location_completer): Use the word break characters of the current
102 language.
103 (complete_line): Likewise.
104 (line_completion_function): Likewise.
105 (skip_quoted_chars): Likewise.
106 * Makefile.in (completer.o): Add dependency on language.h.
107 * top.c (init_main): Set the readline word break characters
108 to GDB's default word break characters.
109
6084f43a
JB
1102003-10-06 J. Brobecker <brobecker@gnat.com>
111
112 * language.h (language_defn): new field, la_word_break_characters.
113 * language.c (unknown_language_defn): Set new field to
114 default_word_break_characters.
115 (auto_language_defn): Likewise.
116 (local_language_defn): Likewise.
117 * ada-lang.c (ada_language_defn): Likewise.
118 * c-lang.c (c_language_defn): Likewise.
119 (cplus_language_defn): Likewise.
120 (asm_language_defn): Likewise.
121 (minimal_language_defn): Likewise.
122 * f-lang.c (f_language_defn): Likewise.
123 * jv-lang.c (java_language_defn): Likewise.
124 * m2-lang.c (m2_language_defn): Likewise.
125 * objc-lang.c (objc_language_defn): Likewise.
126 * p-lang.c (pascal_language_defn): Likewise.
127 * scm-lang.c (scm_language_defn): Likewise.
128
944fcfab
AC
1292003-10-06 Andrew Cagney <cagney@redhat.com>
130
131 * ppc-sysv-tdep.c: Re-indent.
132
9f0a5303
JB
1332003-10-06 J. Brobecker <brobecker@gnat.com>
134
135 * language.h (default_word_break_characters): Add prototype.
136 * language.c (default_word_break_characters): New function.
137
7270b6ed
AS
1382003-10-06 Andreas Schwab <schwab@suse.de>
139
140 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
141 with %eax.
142
a5d61f66
AC
1432003-10-06 Andrew Cagney <cagney@redhat.com>
144
145 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
146 "h8500-tdep.c".
147 (z8k-tdep.o): Delete custom build rule.
148
28a86f5c
AC
1492003-10-06 Andrew Cagney <cagney@redhat.com>
150
1bfd8a83
AC
151 * Makefile.in: Update all dependencies.
152
17144ef8
AC
153 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
154 No longer list PA as as obsolete candidate. List m32r as
155 broken instead of obsolete.
156
a5679ae5
AC
157 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
158 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
159 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
160 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
161 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
162 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
163 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
164 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
165 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
166 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
167 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
168 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
169 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
170 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
171 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
172 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
173 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
174 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
175 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
176 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
177 * config/z8k/z8k.mt: Ditto.
178
4a8269c0
AC
179 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
180 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
181 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
182 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
183 sparclite were removed.
184 * configure.host, configure.tgt: Remove corresponding tuples.
185
41989fcd
AC
186 * breakpoint.c, breakpoint.h: Remove obsolete code.
187 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
188 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
189 * stabsread.h, xcoffread.c: Ditto.
190
28a86f5c
AC
191 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
192 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
193 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
194 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
195
4efdaa0d
DL
1962003-10-06 David Lecomber <dsl@sources.redhat.com>
197
198 * f-valprint.c: Reformatting
199
ae53de43
MK
2002003-10-06 Mark Kettenis <kettenis@gnu.org>
201
a8bb57e7
MK
202 * x86-64-tdep.c: Remove duplicate comment.
203
ae53de43
MK
204 * x86-64-tdep.c (x86_64_store_return_value): Don't use
205 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
206 names for return values. This fixes a bug since we looked at %rbx
207 instead of %rdx.
208
473f17b0
MK
2092003-10-05 Mark Kettenis <kettenis@gnu.org>
210
2c261fae
MK
211 * x86-64-tdep.c: Include "regset.h".
212
473f17b0
MK
213 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
214 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
215 sizeof_fpregset.
216 * i386-tdep.c: Include "regset.h".
217 (i386_supply_gregset): New function.
218 (i386_supply_fpregset): New function.
219 (i386_gdbarch_init): Initialze register set-related members of
220 TDEP.
221 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
222 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
223
afd48b75
AC
2242003-10-03 Andrew Cagney <cagney@redhat.com>
225
226 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
227 set extract_return_value, store_return_value and
228 use_struct_convention to ppc64_sysv_abi_extract_return_value,
229 ppc64_sysv_abi_store_return_value and
230 ppc64_sysv_abi_use_struct_convention.
231 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
232 (ppc64_sysv_abi_store_return_value): Declare.
233 (ppc64_sysv_abi_use_struct_convention): Declare.
234 * ppc-sysv-tdep.c (enum return_value_convention): Define.
235 (ppc64_sysv_abi_extract_return_value): New function.
236 (ppc64_sysv_abi_store_return_value): New function.
237 (ppc64_sysv_abi_use_struct_convention): New function.
238 (ppc64_sysv_abi_return_value): New function.
239
9b540880
AC
2402003-10-03 Andrew Cagney <cagney@redhat.com>
241
242 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
243 convert a descriptor to a function when it's in the ".opd"
244 section.
245
8748518b
CV
2462003-10-03 Corinna Vinschen <vinschen@redhat.com>
247
248 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
249 reg_size to keep GCC silent.
250
0fd85043
CV
2512003-10-03 Corinna Vinschen <vinschen@redhat.com>
252
253 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
254 base for DW_EH_PE_textrel encodings.
255 (read_encoded_value): Add a DW_EH_PE_textrel case.
256 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
257 section.
258
37b517aa
MK
2592003-10-03 Mark Kettenis <kettenis@gnu.org>
260
261 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
262
12c266ea
AC
2632003-10-02 Andrew Cagney <cagney@redhat.com>
264
265 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
266 REGISTER_RAW_SIZE.
267 * gdbarch.h, gdbarch.c: Re-generate.
268 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
269 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
270 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
271 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
272 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
273 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
274 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
275 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
276 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
277 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
278 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
279 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
280 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
281 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
282 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
283 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
284
78ba4af6
JB
2852003-10-02 Jim Blandy <jimb@redhat.com>
286
287 * dwarf2read.c (struct die_info): Doc fix.
288
617daa0e
CV
2892003-10-02 Corinna Vinschen <vinschen@redhat.com>
290
291 * sh-tdep.c: Running thru gdb_indent.sh.
292
e5e33cd9
CV
2932003-10-02 Corinna Vinschen <vinschen@redhat.com>
294
295 * sh-tdep.c (sh_justify_value_in_reg): New function.
296 (sh_stack_allocsize): Ditto.
297 (flt_argreg_array): New array used for floating point argument
298 passing.
299 (sh_init_flt_argreg): New function.
300 (sh_next_flt_argreg): Ditto.
301 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
302 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
303 Fix argument passing strategy.
304 (sh_push_dummy_call_nofpu): Ditto.
305
5fe830e4
AC
3062003-10-01 Andrew Cagney <cagney@redhat.com>
307
308 * value.h (register_value_being_returned): Declare. Replace
309 "value_being_returned".
310 * infcall.c (call_function_by_hand): Use
311 register_value_being_returned.
312 * infcmd.c (print_return_value): Call
313 "register_value_being_returned", handle struct return locally.
314 * values.c (register_value_being_returned): New function. Replace
315 "value_being_returned".
316
3172003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
318
319 * linux-proc.c (linux_do_registers): New function.
320 (linux_make_note_section): Use linux_do_registers in case of
321 single threaded inferior programs.
322
64f395bf
AC
3232003-10-01 Andrew Cagney <cagney@redhat.com>
324
325 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
326 use STRUCT_ADDR. When not using "struct return convention", pass
327 "0" to "value_being_returned". Add FIXMEs.
328 * infcmd.c (print_return_value): Pass an explicit 0/1 to
329 value_being_returned. Add comments.
330 * values.c (value_being_returned): Add fixme.
331 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
332 (hppa_value_returned_from_stack): Add FIXME.
333
639d11d3
DC
3342003-09-30 David Carlton <carlton@kealia.com>
335
336 * dwarf2read.c (struct die_info): Add 'parent' field; replace
337 'has_children' and 'next' by 'child' and 'sibling'.
338 (read_comp_unit): Rework algorithm, breaking body into
339 read_die_and_children and read_die_and_siblings.
340 (read_die_and_children, read_die_and_siblings): New.
341 (read_full_die): Add 'has_children' argument; set it instead of
342 the die's 'has_children' field. Minor formatting cleanup.
343 (free_die_list): Use die->child and die->sibling instead of
344 die->next.
345 (dump_die_list): Ditto.
346 (sibling_die): Use die->sibling.
347 (psymtab_to_symtab_1): Use die's 'child' field in place of its
348 'has_children' and 'next' fields.
349 (process_die, read_file_scope, read_func_scope)
350 (read_lexical_block_scope, read_structure_scope)
351 (read_enumeration, read_array_type, read_common_block)
352 (read_namespace, read_subroutine_type, dump_die): Ditto.
353
5bffac25
AC
3542003-09-30 Andrew Cagney <cagney@redhat.com>
355
356 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
357 to 224, not 220.
358
f30992d4
AC
3592003-09-30 Andrew Cagney <cagney@redhat.com>
360
361 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
362 REGISTER_VIRTUAL_SIZE.
363 * gdbarch.h, gdbarch.c: Regenerate.
364 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
365 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
366 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
367
2e092625
AC
3682003-09-29 Andrew Cagney <cagney@redhat.com>
369
370 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
371 DEPRECATED_REGISTER_VIRTUAL_TYPE.
372 * gdbarch.h, gdbarch.c: Regenerate.
373 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
374 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
375
376 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
377 * remote-vxmips.c (vx_read_register): Ditto.
378 * remote-vx68.c (vx_read_register): Ditto.
379 * gnu-nat.c (inf_validate_procs): Ditto.
380
7a5dd6ee
JB
3812003-09-29 J. Brobecker <brobecker@gnat.com>
382
383 * infcall.c (call_function_by_hand): Fix build failure
384 introduced in the previous change to this file.
385
1fe43d45
AC
3862003-09-29 Andrew Cagney <cagney@redhat.com>
387
388 * NEWS: Mention Objective-C.
389
e28a332c
JG
3902003-09-29 Jerome Guitton <guitton@act-europe.fr>
391
392 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
393 test if the register has been saved on the stack.
394 (arm_scan_prologue_cache): When analysing the instruction
395 "str lr, [sp, #-4]", save the address where lr has been stored.
396
9ff63c35
AC
3972003-09-28 Andrew Cagney <cagney@redhat.com>
398
7f5f525d
AC
399 * frame.c (frame_read_unsigned_register): Delete function.
400 * frame.h (frame_read_unsigned_register): Delete declaration.
401 * sparc-tdep.c (sparc_init_extra_frame_info): Use
402 get_frame_register_unsigned.
403 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
404 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
405 * d10v-tdep.c (d10v_print_registers_info): Ditto.
406
407 * frame.h (frame_read_register): Delete declaration.
408 * frame.c (frame_read_register): Delete function.
409 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
410 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
411 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
412 * mips-tdep.c (mips_register_to_value): Ditto.
413 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
414 * d10v-tdep.c (d10v_print_registers_info): Ditto.
415
416 * frame.c (frame_read_signed_register): Delete function.
417 (frame_read_unsigned_register): Update comments.
418 * frame.h (frame_read_signed_register): Delete declaration.
419 * h8300-tdep.c (h8300_print_register): Use
420 get_frame_register_signed.
421 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
422
9ff63c35
AC
423 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
424 Rename VALUE_RETURNED_FROM_STACK.
425 * infcmd.c (print_return_value): Update.
426 * infcall.c (call_function_by_hand): Update.
427
41d041d6
MK
4282003-09-28 Mark Kettenis <kettenis@gnu.org>
429
430 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
431 regcache argument and reverse the order of the other two
432 arguments. Remove local regcache variable. Determine
433 architecture from REGCACHE. Update comments.
434 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
435 reverse the order of the other two arguments. Remove local
436 regcache variable. Determine architecture from REGCACHE. Update
437 comments.
438 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
439 prototypes. Update comments.
440 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
441 comment.
442 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
443 Update.
444 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
445 * i386-interix-nat.c (supply_fpregset): Update.
446 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
447 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
448 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
449 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
450 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
451 Update.
452 * i386obsd-tdep.c (fetch_core_registers): Update.
453 * i386v4-nat.c (supply_fpregset): Update.
454 * x86-64-linux-nat.c (supply_fpregset): Update.
455 * x86-64-linux-tdep.c (fetch_core_registers): Update.
456
1cb97e17
MK
4572003-09-27 Mark Kettenis <kettenis@gnu.org>
458
5716833c
MK
459 * i386-tdep.h: Put opaque declarations in alphabetical
460 order. Remove spurious whitespace.
461 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
462 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
463 * i386-tdep.c (MM0_REGNUM): Remove define.
464 (i386_mmx_regnum_p): Add gdbarch argument.
465 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
466 Rewrite using new macro definitions for FPU/SSE registers.
467 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
468 definitions from i387-tdep.h.
469 (i386_register_name): Update.
470 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
471 new macro definitions for FPU/SSE registers.
472 (i386_extract_return_value): Determine whether floating-point
473 registers are present by examining REGCACHE's architecture.
474 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
475 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
476 FPU/SSE registers.
477 (i386_register_type): Update.
478 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
479 definitions for FPU registers. Use REGCACHE's architecture to
480 determine the appropriate register numbers.
481 (i386_pseudo_register_read, i386_pseudo_register_write,
482 i386_register_reggroup_p): Update.
483 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
484 TDEP->mm0_regnum.
485 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
486 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
487 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
488 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
489 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
490 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
491 *' to `void *'.
492 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
493 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
494 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
495 definitions for FPU/SSE registers.
496 (FXSAVE_MXCSR_ADDR): New define.
497 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
498 TDEP->mm0_regnum.
499 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
500 (I387_ST0_REGNUM): Define.
501
41d35cb0
MK
502 * regcache.h (get_regcache_arch): New prototype.
503 * regcache.c (get_regcache_arch): New function.
504
54e74f72
MK
505 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
506 whitespace.
507
1cb97e17
MK
508 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
509 Initialize using ARRAY_SIZE.
510
0968aa8c
AC
5112003-09-27 Andrew Cagney <cagney@redhat.com>
512
513 * arch-utils.c (deprecated_init_frame_pc_default): Rename
514 "init_frame_pc_default".
515 * arch-utils.h (deprecated_init_frame_pc_default): Update.
516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
517 * vax-tdep.c (vax_gdbarch_init): Update.
518 * v850-tdep.c (v850_gdbarch_init): Update.
519 * sh64-tdep.c (sh64_gdbarch_init): Update.
520 * s390-tdep.c (s390_gdbarch_init): Update.
521 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
522 * mcore-tdep.c (mcore_gdbarch_init): Update.
523 * h8300-tdep.c (h8300_gdbarch_init): Update.
524 * cris-tdep.c (cris_gdbarch_init): Update.
525 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
526
54c84734
MK
5272003-09-26 Mark Kettenis <kettenis@gnu.org>
528
529 * regset.h: New file.
530 * Makefile.in (regset_h): Add.
531
1b1d3794
AC
5322003-09-25 Andrew Cagney <cagney@redhat.com>
533
534 * frame.h (deprecated_frame_saved_regs): Rename
535 get_frame_saved_regs.
536 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
537 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
538 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
539 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
540 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
541
e6beb428
AC
5422003-09-25 Andrew Cagney <cagney@redhat.com>
543
544 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
545 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
546 and Java.
547 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
548 arm*-*-* do not use the new frame code.
549
710122da
DC
5502003-09-25 David Carlton <carlton@kealia.com>
551
552 * c-exp.y: Remove 'register' declarations.
553 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
554
79c2c32d
DC
5552003-09-25 David Carlton <carlton@kealia.com>
556
557 * c-exp.y: Include cp-support.h. Add qualified_type.
558 (yylex): Delete nested type hack; add comments.
559 * cp-namespace.c (cp_lookup_nested_type): New function.
560 * cp-support.h: Declare cp_lookup_nested_type.
561 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
562 instead of value_struct_elt_for_reference.
563 * valops.c: Include cp-support.h.
564 (value_aggregate_elt): New function.
565 (value_namespace_elt): Ditto.
566 (value_struct_elt_for_reference): Make static.
567 * value.h: Delete declaration of value_struct_elt_for_reference;
568 add declaration for value_aggregate_elt.
569 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
570 (valops.o): Ditto.
571
898c62f5
DJ
5722003-09-25 Daniel Jacobowitz <drow@mvista.com>
573
574 * stack.c: Include "reggroups.h".
575 (frame_info): Only display registers in all_reggroup.
576 * Makefile.in (stack.o): Update dependencies.
577
28cd8767
JG
5782003-09-25 Jerome Guitton <guitton@act-europe.fr>
579
580 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
581 "add ip, sp #n" in the prologue.
582 (arm_scan_prologue): Ditto.
583
a4ab2b5d
JG
5842003-09-25 Jerome Guitton <guitton@act-europe.fr>
585
586 * MAINTAINERS (write after approval): Add myself.
587
3f244638
AS
5882003-09-25 Andreas Schwab <schwab@suse.de>
589
590 * m68k-tdep.c: Include "dwarf2-frame.h".
591 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
592 * Makefile.in (m68k-tdep.o): Update dependencies.
593
1c0159e0
CV
5942003-09-25 Corinna Vinschen <vinschen@redhat.com>
595
596 * sh-tdep.c (struct frame_extra_info): Remove.
597 (struct sh_frame_cache): New structure.
598 (GET_SOURCE_REG): New macro extracting source register of an opcode.
599 (GET_TARGET_REG): Ditto but target register.
600 (GET_PUSHED_REG): Remove.
601 (IS_MOV_ARG_TO_REG): New macro.
602 (IS_MOV_ARG_TO_IND_R14): New macro.
603 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
604 (IS_MOVW_PCREL_TO_REG): New macro.
605 (IS_MOVL_PCREL_TO_REG): New macro.
606 (IS_SUB_REG_FROM_SP): New macro.
607 (IS_ARG_MOV): Remove.
608 (IS_MOV_TO_R14): Remove.
609 (IS_RESTORE_FP): New macro.
610 (IS_RTS): New macro.
611 (IS_LDS): New macro.
612 (IS_MOV_FP_SP): New macro.
613 (IS_ADD_REG_TO_FP): New macro.
614 (IS_ADD_IMM_FP): New macro.
615 (sh_skip_prologue_hard_way): Remove.
616 (sh_saved_pc_after_call): Remove.
617 (sh_frame_chain): Remove.
618 (sh_find_callers_reg): Remove.
619 (sh_nofp_frame_init_saved_regs): Remove.
620 (sh_fp_frame_init_saved_regs): Remove.
621 (sh_init_extra_frame_info): Remove.
622 (sh_analyze_prologue): New function.
623 (sh_skip_prologue): Remove deprecated code. Rely on new function
624 sh_analyze_prologue when after_prologue fails.
625 (sh_frame_saved_pc): Remove.
626 (sh_alloc_frame_cache): New function.
627 (sh_frame_cache): Ditto.
628 (sh_frame_prev_register): Ditto.
629 (sh_frame_this_id): Ditto.
630 (sh_frame_unwind): New structure defining the heuristic frame
631 sniffer interface.
632 (sh_frame_sniffer): New function.
633 (sh_unwind_sp): Ditto.
634 (sh_unwind_pc): Ditto.
635 (sh_unwind_dummy_id): Ditto.
636 (sh_frame_base_address): Ditto.
637 (sh_frame_base): New structure defining new frame base code.
638 (sh_in_function_epilogue_p): New function.
639 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
640 code and to call all new code instead. Initialize dwarf2 and
641 heuristic frame sniffer.
642
5f9769d1
PH
6432003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
644
645 * parser-defs.h (struct exp_descriptor): New definition, containing
646 language-specific info for printing, prefixifying, dumping, and
647 evaluating expressions.
648 (exp_descriptor_standard): Declare new variable.
649 (print_subexp): Make global and declare here (from expprint.c).
650 (dump_subexp): Ditto.
651 (dump_subexp_body_standard): Declare.
652 (operator_length_standard): Declare.
653 (op_name_standard): Declare.
654 (print_subexp): Declare.
655 (print_subexp_standard): Declare.
656
657 * language.h (struct language_defn): Add la_exp_desc field to hold
658 pointer to table for language-specific operators.
659 Remove evaluate_exp field, which is now in struct exp_descriptor.
660
661 * parse.c (operator_length): Move most code to new
662 operator_length_standard function. Use language-specific information.
663 (operator_length_standard): New function taking most code from
664 operator_length.
665 (exp_descriptor_standard): New constant.
666
667 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
668 and OP_EXTENDED_LAST.
669
670 * expprint.c (print_subexp): Use language-specific print_subexp.
671 Make global; remove static declaration.
672 Move most code to print_subexp_standard.
673 (print_subexp_standard): New function, containing code formerly in
674 print_subexp.
675 (op_name): Add expression to argument signature.
676 Use langauge-specific op_name.
677 Move most code to op_name_standard.
678 (op_name_standard): New function, containing code formerly in op_name.
679 (dump_subexp): Use new version of op_name function.
680 Use language-specific dump_subexp_body, and move most existing code to
681 dump_subexp_body_standard.
682 (dump_raw_expression): Use new op_name interface.
683 (dump_subexp_body): Move most code to dump_subexp_body_standard.
684 (dump_subexp_body_standard): New function, containing code formerly
685 in dump_subexp_body.
686
687 * language.c (unknown_language): Add default la_exp_desc field and
688 remove evaluate_exp field.
689 (auto_language): Ditto.
690 (local_language): Ditto.
691 * f-lang.c (f_language_defn): Ditto.
692 * c-lang.c (c_language_defn): Ditto.
693 (cplus_language_defn): Ditto.
694 (asm_language_defn): Ditto.
695 (minimal_language_defn): Ditto.
696 * p-lang.c (pascal_language_defn): Ditto.
697 * m2-lang.c (m2_language_defn): Ditto.
698 * objc-lang.c (objc_language_defn): Ditto.
699
700 * jv-lang.c (exp_descriptor_java): New variable, containing
701 Java-specific expression evaluator.
702 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
703 field.
704 * scm-lang.c (exp_descriptor_scm): New variable, containing
705 Scheme-specific expression evaluator.
706 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
707 field.
708 * objc-lang.c (print_object_command): Take evaluate_exp from the
709 la_exp_desc field.
710
711 * Makefile.in (eval.o): Add dependency on parser-defs.h.
712
713 * eval.c: Include parser-defs.h for the full declaration of
714 la_exp_desc's type.
715 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
716
24daaebc
PH
7172003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
718
719 * parser-defs.h (operator_length): Declare.
720
721 * parse.c (length_of_subexp): Use operator_length to get operator
722 lengths and arities for operators.
723 Move most code to new operator_length function.
724 (operator_length): New function absorbing most code from
725 length_of_subexp.
726 (prefixify_subexp): Remove large case and use operator_length instead.
727 (parse_exp_1): Use renamings:
728 dump_prefix_expression => dump_raw_expression and
729 dump_postfix_expression => dump_prefix_expression.
730
731 * expression.h (dump_prefix_expression): Rename to ...
732 (dump_raw_expression): New name.
733 (dump_postfix_expression): Rename to ...
734 (dump_prefix_expression): New name.
735
736 * expprint.c (dump_subexp): Make global. Add comment.
737 Move most existing code to dump_subexp_body.
738 (dump_subexp_body): New function.
739 (dump_prefix_expression): Rename to dump_raw_expression.
740 Remove attempt to print the expression via print_expression: it can't
741 work before the expression is prefixified.
742 (dump_raw_expression): Renamed from dump_prefix_expression.
743 (dump_postfix_expression): Rename to dump_prefix_expression, since
744 that's what it does.
745 Remove 'note' parameter, since this routine must be used on
746 prefixified expression.
747 (dump_prefix_expression): Renamed from dump_postfix_expression.
748
8c2957c4
JB
7492003-09-22 Jim Blandy <jimb@redhat.com>
750
751 * dwarf2read.c (read_array_type): When building the type for an
752 array of unspecified length, make sure to choose the upper bound
753 so that the array's total length comes out to be zero --- that's
754 how we represent such arrays.
755
592e3010
MC
7562003-09-22 Michael Chastain <mec@shout.net>
757
758 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
759
365c70b1
JJ
7602003-09-22 Jeff Johnston <jjohnstn@redhat.com>
761
762 * top.c (quit_force): Fix indirect call to quit_target so
763 a struct qt_args pointer is passed.
764
5d6eb653
AC
7652003-09-22 Andrew Cagney <cagney@redhat.com>
766
767 * arch-utils.h (init_frame_pc_noop): Delete declaration.
768 * arch-utils.c (init_frame_pc_noop): Delete function.
769 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
770 "init_frame_pc".
771 * mips-tdep.c (mips_gdbarch_init): Ditto.
772 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
773 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
774 declaration.
775 (DEPRECATED_INIT_FRAME_PC): Delete macro.
776 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
777 declaration.
778 (DEPRECATED_INIT_FRAME_PC): Delete macro.
779
b222a67f
AG
7802003-09-22 Anthony Green <green@redhat.com>
781
782 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
783 declaration.
784
d5b5ac79
AC
7852003-09-20 Andrew Cagney <cagney@redhat.com>
786
deafb061
AC
787 * breakpoint.c: Eliminate ARGSUSED.
788 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
789 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
790 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
791 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
792 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
793 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
794 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
795 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
796 * wince.c, remote-vx.c: Ditto.
797
d5b5ac79
AC
798 * cli/cli-script.c: Remove "register" attributes.
799 * config/pa/tm-hppa.h: Ditto.
800 * cli/cli-decode.c: Ditto.
801 * cli/cli-cmds.c: Ditto.
802
c6316faa
AC
8032003-09-19 Andrew Cagney <cagney@redhat.com>
804
805 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
806 DEPRECATED_NPC_REGNUM.
807 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
808
f4f99b11
CF
8092003-09-19 Christopher Faylor <cgf@redhat.com>
810
811 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
812
1708f284
JB
8132003-09-19 Jim Blandy <jimb@redhat.com>
814
815 * macrotab.c (macro_include): Use the correct comparison to find
816 the appropriate place for this inclusion in the list.
817
b9fbf434
AC
8182003-09-19 Andrew Cagney <cagney@redhat.com>
819
820 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
821 (DEPRECATED_HPUX_TEXT_END): Define.
822 (deprecated_hpux_text_end): Declare.
823 (struct target_ops): Declare opaque.
824 * hppah-nat.c (text_end): Make static.
825 (deprecated_hpux_text_end): New function.
826 * exec.c (text_end): Delete global variable.
827 (NEED_TEXT_START_END): Do not define.
828 (exec_file_attach): Replace code computing "text_end" code with
829 call to DEPRECATED_HPUX_TEXT_END.
830
5b03f266
AC
8312003-09-19 Andrew Cagney <cagney@redhat.com>
832
833 * utils.c (align_up, align_down): New functions.
834 * defs.h (align_up, align_down): Declare.
835 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
836 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
837 and "align_down".
838 (round_up, round_down): Delete functions.
839 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
840 "align_down".
841 (ROUND_DOWN, ROUND_UP): Delete macros.
842 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
843 * h8300-tdep.c: Replace "round_up" and "round_down" with
844 "align_up" and "align_down".
845 (round_up, round_down): Delete macros.
846 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
847 "align_down".
848 (ROUND_UP, ROUND_DOWN): Delete macros.
849
51db5742
JB
8502003-09-18 J. Brobecker <brobecker@gnat.com>
851
852 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
853 hard-coded constant. Use the proper machine name instead.
854
77949794
AC
8552003-09-17 Andrew Cagney <cagney@redhat.com>
856
857 * sparc-tdep.c (legacy_register_name): Delete function.
858 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
859 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
860 * infcmd.c (gdb_register_name): Delete variable.
861 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
862 REGISTER_NAME and "tm.h".
863 * gdbarch.h, gdbarch.c: Regenerate.
864 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
865 REGISTER_NAMES in comments.
866 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
867 * m68klinux-nat.c (regmap): Ditto.
868
b55c33cc
JB
8692003-09-17 Jim Blandy <jimb@redhat.com>
870
871 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
872
957e27ac
AC
8732003-09-17 Andrew Cagney <cagney@redhat.com>
874
875 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
876 (ppcnbsd_init_abi): Set "use_struct_convention" to
877 "ppcnbsd_use_struct_convention".
878
192cb3d4
MK
8792003-09-17 Mark Kettenis <kettenis@gnu.org>
880
881 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
882 * gdbarch.h, gdbarch.c: Regenerate.
883 (stabs_argument_has_addr): New architecture method.
884 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
885 * arch-utils.c: Include "buildsym.h".
886 (default_stabs_argument_has_addr): New function.
887 * stabsread.c (define_symbol): Use stabs_argument_has_addr
888 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
889
efe59759
AC
8902003-09-17 Andrew Cagney <cagney@redhat.com>
891
892 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
893 * gdbarch.h, gdbarch.c: Regenerate.
894 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
895 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
896 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
897 * sparcnbsd-tdep.c: Update.
898
62700349
AC
8992003-09-17 Andrew Cagney <cagney@redhat.com>
900
901 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
902 * gdbarch.h, gdbarch.c: Regenerate.
903 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
904 * d10v-tdep.c, frame.c: Update.
905 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
906 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
907 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
908 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
909 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
910 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
911 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
912 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
913 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
914 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
915 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
916 * config/pa/nm-hppah.h: Update.
917
b9ff3018
AC
9182003-09-16 Andrew Cagney <cagney@redhat.com>
919
920 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
921 "use_struct_convention" to "ppc_linux_use_struct_convention".
922 (ppc_linux_use_struct_convention): New function.
923 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
924 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
925 "rs6000_use_struct_convention".
926 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
927 declaration.
928 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
929 Delete function.
930
aa1ee363
AC
9312003-09-16 Andrew Cagney <cagney@redhat.com>
932
933 * buildsym.c: Remove more occurances of "register".
934 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
935 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
936 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
937 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
938 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
939 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
940 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
941 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
942
f2ea0907
CV
9432003-09-16 Corinna Vinschen <vinschen@redhat.com>
944
945 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
946 numbers to enumeration values.
947 * sh-tdep.c: Accomodate above change.
948 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
949 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
950 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
951 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
952 (IS_FPUSH): Rename from IS_FMOV.
953 (sh_extract_struct_value_address): Remove useless comment.
954 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
955 instead of own local values.
956 (sh_dump_tdep): Remove.
957 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
958 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
959
1c704f11
AC
9602003-09-15 Andrew Cagney <cagney@redhat.com>
961
962 * doublest.c (convert_floatformat_to_doublest): No longer need to
963 cast "exp_bias" to an int. Reverts 2002-12-04 change.
964
ac79b88b
DJ
9652003-09-15 Daniel Jacobowitz <drow@mvista.com>
966
967 * values.c (unpack_double): Call floatformat_is_valid.
968
1c671366
MK
9692003-09-15 Mark Kettenis <kettenis@gnu.org>
970
de5227fb
MK
971 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
972 ps_strings into a long.
973
1c671366
MK
974 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
975 _initialize_am64fbsd_nat.
976
a604369a
KB
9772003-09-15 Kevin Buettner <kevinb@redhat.com>
978
979 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
980 associated with DW_AT_ranges attribute is out of bounds.
981
b3cacbee
DL
9822003-09-15 David Lecomber <dsl@sources.redhat.com>
983
984 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
985
d0f37bb2
MC
9862003-09-14 Michael Chastain <mec@shout.net>
987
988 * config/m68k/nm-apollo68v.h: Delete.
989 * config/m68k/xm-apollo68v.h: Delete.
990
69517000
AC
9912003-09-14 Andrew Cagney <cagney@redhat.com>
992
993 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
994 * dcache.c: Update copyrights and descriptions.
995 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
996
ef8b349d
AC
9972003-09-14 Andrew Cagney <cagney@redhat.com>
998
999 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1000 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1001
52f0bd74
AC
10022003-09-14 Andrew Cagney <cagney@redhat.com>
1003
1004 * alpha-nat.c: Remove some occurances of "register".
1005 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1006 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1007 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1008 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1009 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1010 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1011 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1012 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1013 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1014 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1015 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1016 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1017 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1018 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1019 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1020 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1021 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1022 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1023 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1024 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1025 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1026 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1027
4a4b3fed
AC
10282003-09-13 Andrew Cagney <cagney@redhat.com>
1029
1030 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1031 * ppc-tdep.h (struct regcache): Declare opaque.
1032 * objfiles.h (struct objfile_data): Declare opaque.
1033 * cp-support.h (struct objfile): Declare opaque.
1034 * linux-nat.h (target_waitstatus): Declare opaque.
1035
2110b94f
MK
10362003-09-14 Mark Kettenis <kettenis@gnu.org>
1037
1c671366
MK
1038 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1039 (stabs_argument_has_addr): New architecture method.
1040 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1041 * arch-utils.c: Include "buildsym.h".
1042 (default_stabs_argument_has_addr): New function.
1043 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1044 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1045
2110b94f
MK
1046 * cris-tdep.c (cris_gdbarch_init): Set
1047 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1048 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1049 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1050 * mips-tdep.c (mips_gdbarch_init): Likewise.
1051 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1052 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1053
48436ce6
AC
10542003-09-13 Andrew Cagney <cagney@redhat.com>
1055
1056 * values.c (using_struct_return): Delete "function" and "funcaddr"
1057 parameters.
1058 * value.h (using_struct_return): Update declaration.
1059 * infcmd.c (finish_command_continuation): Update.
1060 (finish_command): Update.
1061 * infcall.c (call_function_by_hand): Update.
1062 * eval.c (evaluate_subexp_standard): Update.
1063
403d9909
CF
10642003-09-13 Christopher Faylor <cgf@redhat.com>
1065
1066 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1067 SSE registers since gdb will not operate correctly without this.
1068 Restore include file ordering munged in previous change.
1069 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1070
ebf7d56b
MK
10712003-09-13 Mark Kettenis <kettenis@gnu.org>
1072
8e823e25
MK
1073 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1074 REG_STRUCT_HAS_ADDR.
1075 * gdbarch.c, gdbarch.h: Updated.
1076 * infcall.c (call_function_by_hand): Update.
1077 * stabsread.c (define_symbol): Updated.
1078
ebf7d56b
MK
1079 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1080
d3f13f72
CF
10812003-09-12 Christopher Faylor <cgf@redhat.com>
1082
1083 * win32-nat.c: Reorganize so that defines used by target headers are
1084 actually defined by the system headers.
1085 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1086 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1087
14f75137
JB
10882003-09-12 Jim Blandy <jimb@redhat.com>
1089
d646061f
JB
1090 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1091 the file has no .data, .bss, or .rodata sections. Instead wait
1092 until we see a variable alleged to live in one of those sections.
1093
2a13f9bc
JB
1094 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1095 .bss section, presume that any variables we find live in the
1096 .rodata section.
1097
4f49b26b
JB
1098 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1099 offsets for global and static variables.
1100
14f75137
JB
1101 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1102 symbol types are, by definition, in the .data section, so it is
1103 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1104 If there is no .data section, there should be no N_DATA or N_DATA
1105 | N_EXT symbols.
1106
212c460c
MK
11072003-09-12 Mark Kettenis <kettenis@gnu.org>
1108
1109 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1110 (amd64fbsd_sigcontext_addr): Rewrite.
1111 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1112 with correct values.
1113 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1114 (amd64fbsd_init_abi): Fix typo.
1115
68856ea3
AC
11162003-09-12 Andrew Cagney <cagney@redhat.com>
1117
1118 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1119 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1120
627b3ba2
AC
11212003-09-12 Andrew Cagney <cagney@redhat.com>
1122
1123 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1124 "entry_file_highpc". Update comments.
1125 * defs.h (deprecated_inside_entry_file): Rename
1126 "inside_entry_file".
1127 * blockframe.c (deprecated_inside_entry_file): Rename
1128 "inside_entry_file".
1129 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1130 * vax-tdep.c (vax_frame_chain): Update.
1131 * sh64-tdep.c (sh64_frame_chain): Update.
1132 * sh-tdep.c (sh_frame_chain): Update.
1133 * rs6000-tdep.c (rs6000_frame_chain): Update.
1134 * ns32k-tdep.c (ns32k_frame_chain): Update.
1135 * mips-tdep.c (mips_frame_chain): Update.
1136 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1137 * m32r-tdep.c (m32r_frame_this_id): Update.
1138 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1139 * frv-tdep.c (frv_frame_this_id): Update.
1140 * d10v-tdep.c (d10v_frame_this_id): Update.
1141 * cris-tdep.c (cris_frame_chain): Update.
1142 * blockframe.c (legacy_frame_chain_valid): Update.
1143 * avr-tdep.c (avr_frame_this_id): Update.
1144 * arm-tdep.c (arm_prologue_this_id): Update.
1145 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1146 * objfiles.c (objfile_relocate): Update.
1147 * mipsread.c (mipscoff_symfile_read): Update.
1148 (mipscoff_symfile_read): Update.
1149 * mdebugread.c (parse_partial_symbols): Update.
1150 * dwarfread.c (read_file_scope): Update.
1151 * dwarf2read.c (read_file_scope): Update.
1152 * dbxread.c (read_dbx_symtab): Update.
1153 (read_dbx_symtab): Update.
1154 * coffread.c (complete_symtab): Update.
1155
b0abbc58
JJ
11562003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1157
1158 * top.c (quit_target): New static helper function.
1159 (quit_force): Moved code to quit_target(). Call quit_target()
1160 via catch_errors() to catch errors during quit.
1161
a1632d59
DC
11622003-09-11 David Carlton <carlton@kealia.com>
1163
1164 * buildsym.c (finish_block): Use allocate_block to allocate the
1165 block.
1166 * mdebugread.c (new_block): Add FIXME.
1167
5c4e30ca
DC
11682003-09-11 David Carlton <carlton@kealia.com>
1169
1170 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1171 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1172 (recursive_dump_type): Ditto.
1173 * printcmd.c (print_formatted): Ditto.
1174 * typeprint.c (print_type_scalar): Ditto.
1175 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1176 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1177 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1178 maint_cplus_cmd_list.
1179 * cp-support.c: Make maint_cplus_cmd_list extern.
1180 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1181 command.h.
1182 (lookup_symbol_file): Look in possible namespace blocks when
1183 appropriate.
1184 (initialize_namespace_symtab): New.
1185 (get_possible_namespace_block, free_namespace_block)
1186 (check_possible_namespace_symbols)
1187 (check_possible_namespace_symbols_loop)
1188 (check_one_possible_namespace_symbol)
1189 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1190 (_initialize_cp_namespace): Ditto.
1191 * block.h: Declare allocate_block.
1192 * block.c (allocate_block): New.
1193 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1194 allocate_block.
1195 * symfile.h: Update declaration of add_psymbol_to_list.
1196 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1197 question.
1198 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1199 scan_partial_symbols_call.
1200 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1201 helper functions.
1202 (add_partial_symbol): If necessary, scan mangled names for names
1203 of namespaces.
1204 (add_partial_namespace): Add NAMESPACE argument; generate partial
1205 symbols associated to namespaces.
1206 (add_partial_enumeration): Add NAMESPACE argument.
1207 (new_symbol): Allow namespace syms.
1208 (read_namespace): Generate namespace syms.
1209 * objfiles.h: Add opaque declaration of struct symtab.
1210 (struct objfile): Add cp_namespace_symtab member.
1211 * objfiles.c (allocate_objfile): Set
1212 objfile->cp_namespace_symtab.
1213 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1214 dictionary_h, command_h.
1215
33a7c2fc
AC
12162003-09-11 Andrew Cagney <cagney@redhat.com>
1217
1218 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1219 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1220 near the function's end.
1221 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1222 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1223 regcache_raw_write_signed to set SP_REGNUM.
1224
63cd24fe
EZ
12252003-09-11 Elena Zannoni <ezannoni@redhat.com>
1226
1227 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1228 orig_addrs is set up properly.
1229
f27dd7fd
AC
12302003-09-11 Andrew Cagney <cagney@redhat.com>
1231
1232 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1233 * gdbarch.h, gdbarch.c: Re-generate.
1234 * infcall.c (call_function_by_hand): Update.
1235 * hppa-tdep.c (hppa_push_arguments): Update.
1236 * ada-lang.c (place_on_stack): Update.
1237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1238 * sparc-tdep.c (sparc_gdbarch_init): Update.
1239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1240 * hppa-tdep.c (hppa_gdbarch_init): Update.
1241 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1242 stack_align.
1243
f630a401
DJ
12442003-09-11 Daniel Jacobowitz <drow@mvista.com>
1245
1246 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1247 register do need a frame.
1248
0ddabb4c
AC
12492003-09-11 Andrew Cagney <cagney@redhat.com>
1250
1251 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1252 buildable since GDB 5.0.
1253 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1254 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1255 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1256 * irix4-nat.c: Delete file.
1257 * config/mips/irix4.mh: Delete file.
1258 * config/mips/irix3.mh: Delete file.
1259 * config/mips/irix3.mt: Delete file.
1260 * config/mips/tm-irix3.h: Delete file.
1261 * config/mips/nm-irix3.h: Delete file.
1262 * config/mips/xm-irix3.h: Delete file.
1263 * config/mips/nm-irix4.h: Delete file.
1264 * config/mips/xm-irix4.h: Delete file.
1265 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1266
fde2cceb
JB
12672003-09-10 J. Brobecker <brobecker@gnat.com>
1268
1269 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1270 * Makefile.in (hppa-tdep.o): Update dependencies.
1271
66f667f5
JW
12722003-09-10 James E Wilson <wilson@specifixinc.com>
1273
ef5fd69f
JW
1274 * MAINTAINERS: Change my e-mail address. Move to paper trail
1275 section.
66f667f5 1276
53e8aaea
KB
12772003-09-10 Kevin Buettner <kevinb@redhat.com>
1278
1279 * MAINTAINERS (frv): New ISA entry.
1280
dcc6aaff
KB
12812003-09-10 Kevin Buettner <kevinb@redhat.com>
1282
1283 * frv-tdep.c (dis-asm.h): Include.
1284 * Makefile.in (frv-tdep.o): Update dependencies.
1285
932644f0
JJ
12862003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1287
1288 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1289 Fix typo for high range of floating registers.
1290
91c24f0a
DC
12912003-09-09 David Carlton <carlton@kealia.com>
1292
1293 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1294 highpc initialization here out of scan_partial_symbols.
1295 (scan_partial_symbols): Restructure into a recursive version,
1296 calling add_partial_namespace and add_partial_enumeration when
1297 appropriate.
1298 (add_partial_namespace): New.
1299 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1300
c9263853
AC
13012003-09-09 Andrew Cagney <cagney@redhat.com>
1302
e56a0ecc
AC
1303 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1304 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1305 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1306 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1307
794a477a
AC
1308 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1309 (rs6000_push_dummy_call): Set the "TOC" register.
1310
c9263853
AC
1311 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1312 methods "max_register_raw_size", "max_register_virtual_size" or
1313 "register_virtual_size".
1314
afa7d0b2
ILT
13152003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1316
1317 * MAINTAINERS: Update my e-mail address.
1318
7a41266b
AC
13192003-09-09 Andrew Cagney <cagney@redhat.com>
1320
1321 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1322 (rs6000_push_dummy_call): Store the struct return address.
1323 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1324
77b2b6d4
AC
13252003-09-09 Andrew Cagney <cagney@redhat.com>
1326
1327 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1328 "ppc_sysv_abi_push_arguments".
1329 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1330 "ppc_sysv_abi_push_arguments".
1331 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1332 instead of "push_arguments".
1333 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1334
e8a7b686
AC
13352003-09-09 Andrew Cagney <cagney@redhat.com>
1336
1337 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1338 instead of CALL_DUMMY_ADDRESS.
1339
f86f5ca3
PH
13402003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1341
1342 * p-lang.c: Eliminate "register".
1343 * c-lang.c: Ditto.
1344 * expprint.c: Ditto.
1345 * f-lang.c: Ditto.
1346 * jv-lang.c: Ditto.
1347 * language.c: Ditto.
1348 * m2-lang.c: Ditto.
1349 * parse.c: Ditto.
1350 * scm-lang.c: Ditto.
1351 * objc-lang.c: Ditto.
1352
83ee270e
NC
13532003-09-09 Nick Clifton <nickc@redhat.com>
1354
1355 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1356
a89aa300
AC
13572003-09-04 Andrew Cagney <cagney@redhat.com>
1358
1359 * avr-tdep.c: Include "dis-asm.h".
1360 * cris-tdep.c: Include "dis-asm.h".
1361 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1362 instead of corresponding typedef.
1363 * h8300-tdep.c: Include "dis-asm.h".
1364 * ia64-tdep.c: Include "dis-asm.h".
1365 * i386-tdep.c: Include "dis-asm.h".
1366 (i386_print_insn): Use "struct disassemble_info" instead of
1367 corresponding typedef.
1368 * m68k-tdep.c: Include "dis-asm.h".
1369 * mcore-tdep.c: Include "dis-asm.h".
1370 * mips-tdep.c: Include "dis-asm.h".
1371 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1372 instead of corresponding typedef.
1373 * ns32k-tdep.c: Include "dis-asm.h".
1374 * s390-tdep.c: Include "dis-asm.h".
1375 * sparc-tdep.c: Include "dis-asm.h".
1376 * vax-tdep.c: Include "dis-asm.h".
1377 * v850-tdep.c: Include "dis-asm.h".
1378 * mn10300-tdep.c: Include "dis-asm.h".
1379 * rs6000-tdep.c: Include "dis-asm.h".
1380 * xstormy16-tdep.c: Include "dis-asm.h".
1381 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1382 print_insn_xstormy16.
1383 * Makefile.in (v850-tdep.o): Update dependencies.
1384 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1385 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1386 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1387 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1388 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1389 (gdbarch_h): Remove $(dis_asm_h).
1390 * disasm.c: Include "dis-asm.h".
1391 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1392 corresponding typedef.
1393 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1394 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1395 * gdbarch.sh: Do not include "dis-asm.h".
1396 (struct disassemble_info): Declare opaque.
1397 (TARGET_PRINT_INSN): Update declaration.
1398 * gdbarch.h, gdbarch.c: Re-generate.
1399
88a82a65
AC
14002003-09-08 Andrew Cagney <cagney@redhat.com>
1401
1402 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1403 CALL_DUMMY_ADDRESS, change to a predicate.
1404 * gdbarch.h, gdbarch.c: Re-generate.
1405 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1406 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1407 * infcall.c (call_function_by_hand): Ditto.
1408 * sparc-tdep.c (sparc_push_return_address): Ditto.
1409 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1410 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1411 CALL_DUMMY_ADDRESS with entry_point_address.
1412 * v850-tdep.c (v850_push_return_address): Ditto.
1413 * s390-tdep.c (s390_push_return_address): Ditto.
1414 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1415 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1416 * mcore-tdep.c (mcore_push_return_address): Ditto.
1417 * cris-tdep.c (cris_push_return_address): Ditto.
1418 * arm-tdep.c (arm_push_return_address): Ditto.
1419
3e2c4033
AC
14202003-09-08 Andrew Cagney <cagney@redhat.com>
1421
1422 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1423 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1424 and REG_UNMODIFIED to REG_SAME_VALUE.
1425 (execute_cfa_program): Update.
1426 (dwarf2_frame_cache): Update. Initialize table to
1427 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1428 location.
1429 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1430
39efb398
AC
14312003-09-08 Andrew Cagney <cagney@redhat.com>
1432
1433 * gnu-nat.c: Remove "inline" function attribute.
1434 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1435
f5cb5aca
KB
14362003-09-08 Kevin Buettner <kevinb@redhat.com>
1437
1438 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1439 target.
1440
1cb761c7
KB
14412003-09-08 Kevin Buettner <kevinb@redhat.com>
1442
1443 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1444 (frame_extra_info): Rename this struct to frv_unwind_cache.
1445 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1446 Add fields ``prev_sp'' and ``base''.
1447 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1448 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1449 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1450 Delete.
1451 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1452 Revise all callers. Fill in the unwind cache argument and make
1453 other adjustments to account for new frame mechanisms.
1454 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1455 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1456 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1457 (frv_frame_unwind, frv_frame_base): New structs.
1458 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1459 additional arguments expected by this method and adjust function
1460 body accordingly.
1461 (frv_gdbarch_init): Remove calls to the following functions:
1462 set_gdbarch_deprecated_init_frame_pc(),
1463 set_gdbarch_deprecated_saved_pc_after_call(),
1464 set_gdbarch_deprecated_frame_chain(),
1465 set_gdbarch_deprecated_frame_saved_pc(),
1466 set_gdbarch_deprecated_frame_init_saved_regs(),
1467 set_gdbarch_deprecated_push_arguments(),
1468 set_gdbarch_deprecated_push_return_address(),
1469 set_gdbarch_deprecated_pop_frame(),
1470 set_gdbarch_deprecated_call_dummy_words(),
1471 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1472 set_gdbarch_deprecated_init_extra_frame_info(),
1473 set_gdbarch_deprecated_dummy_write_sp(), and
1474 set_gdbarch_deprecated_pc_in_call_dummy().
1475 Add calls to the following functions:
1476 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1477 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1478 frame_base_set_default().
1479 * Makefile.in (frv-tdep.o): Update dependencies.
1480
68f6cf99
MK
14812003-09-09 Mark Kettenis <kettenis@gnu.org>
1482
1483 * dwarf2-frame.c (read_encoded_value): Add support for
1484 DW_EH_PE_aligned encoding.
1485
73b65bb0
DJ
14862003-09-08 Daniel Jacobowitz <drow@mvista.com>
1487
1488 * infrun.c (normal_stop): Don't print a message if the inferior
1489 has exited.
1490
7c8a5605
JB
14912003-09-08 Jim Blandy <jimb@redhat.com>
1492
1493 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1494 * dbxread.c: #include "gdb_assert.h".
1495 (read_dbx_symtab): If the objfile has no .data section, use the
1496 section index for the .bss section instead.
1497
7dd88986
DJ
14982003-09-08 Daniel Jacobowitz <drow@mvista.com>
1499
1500 * frame.c (deprecated_safe_get_selected_frame): New function.
1501 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1502 * findvar.c (read_var_value): Call it.
1503
55ff77ac
CV
15042003-09-08 Corinna Vinschen <vinschen@redhat.com>
1505
1506 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1507 (sh64-tdep.o): Add dependencies.
1508 * configure.tgt: Add FIXME to sh-*-linux*.
1509 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1510 (sh_gdbarch_init): Always set correct sh_show_regs function
1511 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1512 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1513 * sh64-tdep.c: New file, containing all sh64 related code from
1514 sh-tdep.c.
1515 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1516 * config/sh/linux.mt (TDEPFILES): Ditto.
1517 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1518 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1519 * config/sh/wince.mt (TDEPFILES): Ditto.
1520
bfb39158
DJ
15212003-09-07 Daniel Jacobowitz <drow@mvista.com>
1522
1523 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1524 (stop_wait_callback): Handle !lp->signalled also.
1525 (lin_lwp_has_pending, flush_callback): New functions.
1526 (lin_lwp_wait): Call flush_callback.
1527 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1528 (linux_proc_pending_signals): New function.
1529 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1530
9407de8e
DJ
15312003-09-07 Daniel Jacobowitz <drow@mvista.com>
1532
1533 From Nick Kelsey <nickk@ubicom.com>:
1534 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1535 when the stop PC is at the beginning of a function also.
1536
2ef47cd0
DJ
15372003-09-06 Daniel Jacobowitz <drow@mvista.com>
1538
1539 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1540 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1541
6f4492c8
MK
15422003-09-06 Mark Kettenis <kettenis@gnu.org>
1543
1544 * sol-thread.c: Include "gdb_string.h".
1545
d3420b2f
MK
15462003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1547
1548 * gcore.c: Reorder include files in alphabetical order. Include
1549 "gdb_assert.h". Various coding style fixes.
1550 (derive_stack_segment, derive_heap_segment): Replace check for
1551 non-null BOTTOM and TOP with gdb_assert.
1552 (derive_heap_segment): Replace check for successful creation of
1553 ZERO with gdb_assert.
1554 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1555
5220ea4c
AC
15562003-09-04 Andrew Cagney <cagney@redhat.com>
1557
1558 * thread-db.c (verbose_dlsym): New function.
1559 (thread_db_load): Use verbose_dlsym
1560 (thread_db_new_objfile): Print that libthread_db was loaded, and
1561 that thread debugging was enabled.
1562
6e8c2c06
AC
15632003-09-04 Andrew Cagney <cagney@redhat.com>
1564
1565 * configure.tgt: Add "mips64*-*-*" target. Delete
1566 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1567 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1568 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1569 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1570 mips*-sony-*, and mips64*-*-elf* targets.
1571 * config/mips/embedl.mt: Delete file.
1572 * config/mips/embedl64.mt: Delete file.
1573 * config/mips/mips.mt: Delete file.
1574 * config/mips/mips64.mt: Delete file.
1575 * config/mips/tm-embed.h: Delete file.
1576 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1577 * config/mips/embed64.mt: Delete out-of-date comment.
1578
3a3bc038
AC
15792003-09-04 Andrew Cagney <cagney@redhat.com>
1580
1581 * hppa-tdep.c (hppa_gdbarch_init): Set
1582 "have_nonsteppable_watchpoint".
1583 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1584 * mips-tdep.c (mips_dump_tdep): Do not print
1585 HAVE_NONSTEPPABLE_WATCHPOINT.
1586 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1587 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1588 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1589 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1590
a957e642
CV
15912003-09-04 Corinna Vinschen <vinschen@redhat.com>
1592
1593 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1594 unused code. Add comment.
1595
a6fbcf2f
CV
15962003-09-04 Corinna Vinschen <vinschen@redhat.com>
1597
1598 * breakpoint.c (watchpoint_check): Check for pc being in an
1599 epilogue if watchpoint frame couldn't be found.
1600
c14a44d5
AC
16012003-09-04 Andrew Cagney <cagney@redhat.com>
1602
1603 * Makefile.in: Re-generate all dependencies.
1604
f6c40618
AC
16052003-09-03 Andrew Cagney <cagney@redhat.com>
1606
1607 * arch-utils.h (legacy_print_insn): Delete declaration.
1608 * arch-utils.c (legacy_print_insn): Delete function.
1609 * disasm.c (deprecated_tm_print_insn_info): Delete.
1610 (_initialize_disasm): Delete function, contained code initializing
1611 deprecated_tm_print_insn_info.
1612 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1613 (deprecated_tm_print_insn_info): Delete.
1614 (TARGET_PRINT_INSN): Do not provide a default.
1615 * gdbarch.h, gdbarch.c: Re-generate.
1616
242e8be5
AC
16172003-09-03 Andrew Cagney <cagney@redhat.com>
1618
1619 * disasm.c (fprintf_disasm): New function.
1620 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1621 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1622 reverts 2003-08-14 change.
1623 (_initialize_disasm): Call "init_disassemble_info", instead of
1624 INIT_DISASSEMBLE_INFO_NO_ARCH.
1625
3ffc3dda
MS
16262003-09-03 Michael Snyder <msnyder@redhat.com>
1627
1628 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1629
52d16ba8
AC
16302003-09-03 Andrew Cagney <cagney@redhat.com>
1631
1632 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1633 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1634 * symfile.c (syms_from_objfile): Update.
1635 (reread_symbols): `Update
1636 * exec.c (exec_file_attach): Update.
1637 (exec_file_attach): Update.
1638 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1639 2003-08-29 change.
1640 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1641
eb5492fa
DJ
16422003-09-03 Daniel Jacobowitz <drow@mvista.com>
1643
1644 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1645 trad-frame.h.
1646 (arm_get_cache): Delete macro.
1647 (struct arm_prologue_cache): Update comments. Make saved_regs into
1648 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1649 to prev_sp.
1650 (thumb_scan_prologue): Update for cache changes. Don't call
1651 DEPRECATED_PC_IN_CALL_DUMMY.
1652 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1653 argument and use it in desperation search for our prologue. Do not
1654 search past the specified PC.
1655 (arm_make_prologue_cache): Simplify.
1656
1657 (arm_prologue_this_id, arm_prologue_prev_register)
1658 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1659 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1660 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1661 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1662 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1663
1664 (arm_frame_chain_valid, arm_find_callers_reg)
1665 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1666 (arm_pop_frame): Delete obsolete methods.
1667 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1668
1669 (arm_gdbarch_init): Update for new frame methods. Register prologue
1670 and sigtramp unwinders. Set the default frame base method.
1671
1672 * Makefile.in (arm-tdep.o): Update dependencies.
1673 * varobj.c (find_frame_addr_in_frame_chain): Call
1674 get_frame_base_address.
1675 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1676
24de872b
DJ
16772003-09-03 Daniel Jacobowitz <drow@mvista.com>
1678
1679 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1680 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1681 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1682 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1683 Take NEXT_FRAME and CACHE arguments. Call
1684 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1685 Set unwound_pc in CACHE instead of modifying the frame argument.
1686 Don't bother checking the frame type when looking for sigtramp
1687 frames.
1688 (arm_make_prologue_cache, arm_frame_chain)
1689 (arm_init_extra_frame_info): New functions.
1690
9b8d791a
DJ
16912003-09-03 Daniel Jacobowitz <drow@mvista.com>
1692
1693 * arm-tdep.c (arm_get_cache): Define.
1694 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1695 unwound_sp, unwound_pc, and saved_regs.
1696 (thumb_scan_prologue): Take a cache instead of the frame.
1697 (arm_scan_prologue): Likewise.
1698 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1699 instead of a temporary frame.
1700 (arm_init_extra_frame_info): Allocate and use a cache.
1701 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1702
7ee3275f
AC
17032003-09-03 Andrew Cagney <cagney@redhat.com>
1704
1705 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1706 * config/mips/wince.mt (TM_CLIBS): Ditto.
1707 * config/sh/wince.mt (TM_CLIBS): Ditto.
1708 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1709 * config/sparc/sp64.mt (CC): Delete.
1710
57b29be7
AC
17112003-09-03 Andrew Cagney <cagney@redhat.com>
1712
1713 * defs.h: Do not include "arch-utils.h".
1714 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1715 GDB_MULTI_ARCH_PURE.
1716 * configure.in (GDB_MULTI_ARCH): Do not define.
1717 * configure, config.in: Regenerate.
1718 * configure.tgt: Do not set variable "gdb_multi_arch".
1719 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1720 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1721 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1722 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1723 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1724 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1725 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1726 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1727 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1728 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1729 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1730 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1731 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1732 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1733 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1734 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1735 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1736 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1737
12e035e2
MC
17382003-08-30 Michael Chastain <mec@shout.net>
1739
1740 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1741 * config/m68k/nm-hp300hpux.h: Delete.
1742 * config/m68k/tm-hp300hpux.h: Delete.
1743 * config/m68k/xm-hp300hpux.h: Delete.
1744 * config/m68k/xm-hp300bsd.h: Delete.
1745 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1746 tm-hp300hpux.h, xm-hp300hpux.h.
1747 * somsolib.c: Remove comment about hp300 shared libraries.
1748
bda34dc2
MK
17492003-08-31 Mark Kettenis <kettenis@gnu.org>
1750
5bca7895
MK
1751 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1752 Only define PTRACE_GET_THREAD_AREA is not already defined.
1753 Various style fixes in code and comments and some additional
1754 spelling fixes in comments. Move after functions dealing with
1755 debug registers.
1756 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1757 Fix coding-style.
1758
bda34dc2
MK
1759 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1760 frame_unwind_register_unsigned instead of
1761 frame_unwind_unsigned_register.
1762
c890192f
MK
17632003-08-30 Mark Kettenis <kettenis@gnu.org>
1764
1765 * configure.in: Search for gethostbyname in libnsl.
1766 * configure: Regenerated.
1767
60fac5b8
MK
17682003-08-29 Mark Kettenis <kettenis@gnu.org>
1769
e294916c
MK
1770 * configure.in: Remove redundant AC_MSG_RESULT in check for
1771 uintptr_t in stdint.h.
1772 * configure: Regenerated.
1773
c40d267a
MK
1774 * amd64-nat.h (struct regcache): Add opaque declaration.
1775
60fac5b8
MK
1776 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1777 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1778 Change "register array" to "register cache" in comments.
1779 (x86_64_linux_gregset64_reg_offset): New variable.
1780 (GETREGS_SUPPLIES): Remove macro.
1781 (supply_gregset): Call amd64_supply_native_gregset instead of
1782 x86_64_linux_supply_gregset.
1783 (fill_gregset): Rename `regno' to `regnum'. Call
1784 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1785 (store_regs): Rename `regno' to `regnum'.
1786 (store_fpregs): Rename `regno' to `regnum'.
1787 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1788 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1789 Reorganize function a bit.
1790 (store_inferior_registers): Rename `regno' to `regnum'. Use
1791 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1792 Reorganize function a bit.
1793 (_initialize_x86_64_linux_nat): New function.
1794 * config/i386/x86-64linux.mh.
1795
546143b6
AC
17962003-08-29 Andrew Cagney <cagney@redhat.com>
1797
1798 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1799 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1800 (target_remove_watchpoint): Delete macro.
1801 (target_insert_watchpoint): Delete macro.
1802 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1803 (remote_mips_stopped_by_watchpoint): Delete declaration.
1804 (remote_mips_remove_watchpoint): Delete declaration.
1805 (remote_mips_set_watchpoint): Delete declaration.
1806 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1807 * remote-mips.c (_initialize_remote_mips): Set
1808 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1809 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1810 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1811 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1812 (mips_stopped_by_watchpoint): Rename
1813 remote_mips_stopped_by_watchpoint.
1814 (mips_can_hardware_watchpoint): Rename
1815 remote_mips_can_use_hardware_watchpoint, update function
1816 signature.
1817
7bace51b
MK
18182003-08-29 Mark Kettenis <kettenis@gnu.org>
1819
b0f5c6f2
MK
1820 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1821 USER_DS. We haven't given them a register number yet.
1822
2a6d284d
MK
1823 * amd64-nat.h: New file.
1824 * amd64-nat.c: New file.
1825 * amd64fbsd-nat.c: Include "amd64-nat.h".
1826 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1827 (amd64fbsd32_r_reg_offset): New variable.
1828 (supply_gregset): Simply call amd64_supply_native_gregset.
1829 (fill_gregset): Rename `regno' to `regnum'. Simply call
1830 amd64_collect_native_gregset.
1831 (fill_fpregset): Rename `regno' to `regnum'.
1832 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1833 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1834 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1835 `fpregset_t'. Call amd64_supply_native_gregset instead of
1836 supply_gregset. Call x86_64_supply_fxsave instead of
1837 supply_fpregset.
1838 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1839 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1840 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1841 `fpregset_t'. Call amd64_collect_native_gregset instead of
1842 fill_gregset. Call x86_64_collect_fxsave instead of
1843 fill_fpregset.
1844 (_initialize_am64fbsd_nat): Initialize
1845 amd64_native_gregset32_reg_offset and
1846 amd64_native_gregset64_reg_offset.
1847 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1848
a16d75cc
MK
1849 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1850 null pointer. Fix typo in comment.
1851
7bace51b
MK
1852 * regcache.c (supply_register): Reimplement to call
1853 regcache_raw_supply.
1854 (regcache_collect): Reimplement by calling regcache_raw_collect.
1855
9a661b68
MK
18562003-08-28 Mark Kettenis <kettenis@gnu.org>
1857
1858 * regcache.c (register_buffer): Consitify first argument.
1859 (regcache_raw_supply, regcache_raw_collect): New
1860 functions.
1861
e94cc8fa
DJ
18622003-08-28 Daniel Jacobowitz <drow@mvista.com>
1863
1864 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1865 by Nathan J. Williams.
1866
c64bd0ce
DJ
18672003-08-28 Daniel Jacobowitz <drow@mvista.com>
1868
1869 * lin-lwp.c (wait_lwp): New function, copied from
1870 stop_wait_callback. Clean up.
1871 (stop_wait_callback): Use wait_lwp.
1872
e5ab0dce
AC
18732003-08-28 Andrew Cagney <cagney@redhat.com>
1874
1875 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1876 flavour and disassembler options.
1877 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1878 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1879 deprecated_tm_print_insn_info.
1880
a788de9b
AC
18812003-08-27 Andrew Cagney <cagney@redhat.com>
1882
1883 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1884 Use target_read_memory.
1885 (s390_get_frame_info): Update. Do not reference
1886 deprecated_tm_print_insn_info.
1887 (s390_check_function_end, s390_is_sigreturn): Ditto.
1888
36482093
AC
18892003-08-27 Andrew Cagney <cagney@redhat.com>
1890
1891 * Makefile.in (cris-tdep.o): Update dependencies.
1892 * cris-tdep.c: Include "gdb_assert.h".
1893 (cris_gdbarch_init): Set print_insn.
1894 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1895 (cris_delayed_get_disassembler): Simplify, directly call the
1896 disassembler returned by cris_get_disassembler.
1897 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1898 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1899 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1900 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1901 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1902 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1903 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1904 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1905 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1906 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1907 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1908 (gdb_print_insn_sparc): Delete function.
1909 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1910 deprecated_tm_print_insn_info.
1911 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1912 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1913 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1915 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1916 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1917 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1918 (s390_gdbarch_init): Set print_insn.
1919
0285512f
AC
19202003-08-27 Andrew Cagney <cagney@redhat.com>
1921
1922 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1923 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1924 * infcall.c (call_function_by_hand): Convert the entry point
1925 address into a code address.
1926
cdcd5552
AC
19272003-08-27 Andrew Cagney <cagney@redhat.com>
1928
1929 * dsrec.c: Include "gdb_string.h".
1930 * Makefile.in (dsrec.o): Update dependencies.
1931
e85cddad
MC
19322003-08-27 Michael Chastain <mec@shout.net>
1933
1934 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1935
8bbfbb23
AC
19362003-08-27 Andrew Cagney <cagney@redhat.com>
1937
1938 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1939 (alpha_osf1_init_abi): Do not set call_dummy_address.
1940
ba058b66
DC
19412003-08-27 David Carlton <carlton@kealia.com>
1942
1943 From Randolph Chung <tausq@debian.org>:
1944 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1945 compiles with -Wformat-nonliteral -Werror.
1946
87f84c9d
JB
19472003-08-26 Jim Blandy <jimb@redhat.com>
1948
1949 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1950 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1951 bfd_lookup_symbol, since we only want symbols in code sections.
1952 (look_for_base): Pass zero as the SECT_FLAGS argument to
1953 bfd_lookup_symbol, since we're not concerned about which section
1954 the symbol is in.
1955
102d615a
JJ
19562003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1957
1958 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1959 we are frameless or the return address register is already known.
1960
cc7ad3ea
AC
19612003-08-26 Andrew Cagney <cagney@redhat.com>
1962
1963 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1964 in size. Add comments.
1965
af8b88dd
JJ
19662003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1967
1968 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1969 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1970
e0a4f5a1
JM
19712003-08-26 Jason Merrill <jason@redhat.com>
1972
1973 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1974 case out of #ifdef MIPS block.
1975
4ae9ee8e
DJ
19762003-08-25 Daniel Jacobowitz <drow@mvista.com>
1977
1978 PR java/1322
1979 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1980 available before calling SECT_OFF_TEXT.
3c164570 1981 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1982
004d836a
JJ
19832003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1984
1985 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1986 bof, and nat0-nat127 as pseudo-registers.
1987 (ia64_frame_cache): New struct used to cache frame info.
1988 (ia64_register_reggroup_p): New routine used to override default
1989 register grouping so registers without names are still saved and
1990 restored.
1991 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1992 pseudo values.
1993 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1994 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1995 (ia64_alloc_frame_cache): New routine to create a new
1996 ia64_frame_cache.
1997 (examine_prologue): Change prototype to add next_frame pointer.
1998 Assume frameless until otherwise proven. Verify that the cfm for
1999 current frame matches the cfm that should occur for the prologues
2000 alloc insn and if equal, mark as not frameless. At end of routine,
2001 if not frameless, calculate registers for the previous frame and store
2002 in the cache, if a cache is provided.
2003 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2004 and pass 0 for next_frame.
2005 (ia64_store_return_value): Change to use convert_typed_floating()
2006 instead of calling ia64_convert_to_raw().
2007 (ia64_extract_return_value): Change to use convert_typed_floating()
2008 instead of calling ia64_convert_to_virtual().
2009 (ia64_frame_cache): New routine to support new frame model.
2010 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2011 (ia64_frame_sniffer): Ditto.
2012 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2013 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2014 (ia64_sigtramp_frame_prev_register): Ditto.
2015 (ia64_sigtramp_frame_sniffer): Ditto.
2016 (ia64_frame_base_address): Ditto.
2017 (ia64_extract_struct_value_address): Change to issue error message.
2018 (ia64_frame_align): New routine to align sp.
2019 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2020 (ia64_push_arguments): Removed. Logic moved to
2021 ia64_push_dummy_call().
2022 (ia64_push_return_address): Ditto.
2023 (ia64_unwind_dummy_id): New function.
2024 (ia64_unwind_pc): Ditto.
2025 (ia64_convert_register_p): Ditto.
2026 (ia64_register_to_value): Ditto.
2027 (ia64_value_to_register): Ditto.
2028 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2029 (ia64_register_byte, ia64_register_raw_size): Ditto.
2030 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2031 (ia64_saved_pc_after_call): Ditto.
2032 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2033 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2034 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2035 (ia64_register_convert_to_raw): Ditto.
2036 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2037 (ia64_init_extra_frame_info): Ditto.
2038 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2039 (ia64_gdbarch_init): Remove registering of deprecated functions that
2040 are no longer used. Add registration of new gdbarch functions.
2041 Remove registering deprecated_write_sp. Replace
2042 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2043 Delete set_gdbarch_deprecated_register_convertible(),
2044 set_gdbarch_deprecated_register_convert_to_virtual(), and
2045 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2046 set_gdbarch_deprecated_register_size(),
2047 set_gdbarch_deprecated_register_bytes(),
2048 set_gdbarch_pcregnum(),
2049 set_gdbarch_deprecated_register_byte(),
2050 set_gdbarch_deprecated_register_raw_size(),
2051 set_gdbarch_deprecated_max_register_raw_size(),
2052 set_gdbarch_deprecated_register_virtual_size(),
2053 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2054 Replace set_gdbarch_deprecated_extract_return_value() with
2055 set_gdbarch_extract_return_value(). Remove calls to:
2056 set_gdbarch_deprecated_saved_pc_after_call();
2057 set_gdbarch_deprecated_frame_chain(),
2058 set_gdbarch_deprecated_frame_saved_pc(),
2059 set_gdbarch_deprecated_frame_init_saved_regs(),
2060 set_gdbarch_deprecated_get_saved_register(),
2061 set_gdbarch_deprecated_call_dummy_words(),
2062 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2063 set_gdbarch_deprecated_init_extra_frame_info(),
2064 set_gdbarch_deprecated_frame_args_address(),
2065 set_gdbarch_deprecated_frame_locals_address(),
2066 and set_gdbarch_deprecated_dummy_write_sp().
2067 Add set_gdbarch_convert_register_p(),
2068 set_gdbarch_register_to_value(),
2069 set_gdbarch_value_to_register(),
2070 set_gdbarch_push_dummy_call(),
2071 set_gdbarch_frame_align(),
2072 set_gdbarch_unwind_dummy_id(),
2073 set_gdbarch_unwind_pc(),
2074 frame_unwind_append_sniffer(),
2075 frame_unwind_append_sniffer(),
2076 and frame_base_set_default().
2077
aede7613
CD
20782003-08-25 Chris Demetriou <cgd@broadcom.com>
2079
2080 * configure.tgt: Document need for special "mipsisa64" handling.
2081 (mipsisa64*-*-linux64): Handle as target linux64.
2082 (mipsisa64*-*-*): Handle as target embed64.
2083
43c3a82e
MC
20842003-08-18 Michael Chastain <mec@shout.net>
2085
2086 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2087 objfile bug.
2088
6564f77d
MK
20892003-08-24 Mark Kettenis <kettenis@gnu.org>
2090
2de139ba
MK
2091 * i387-tdep.h: Update copyright date.
2092 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2093
6564f77d
MK
2094 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2095 CFLAGS games to reflect reality.
2096
42cf1509
AC
20972003-08-24 Andrew Cagney <cagney@redhat.com>
2098
2099 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2100 GDB_MULTI_ARCH is always non-zero.
2101 * osabi.c (_initialize_gdb_osabi): Ditto.
2102 (gdbarch_init_osabi): Ditto.
2103 * sparc-tdep.c: Ditto for #if code.
2104
0485f6ad
MK
21052003-08-23 Mark Kettenis <kettenis@gnu.org>
2106
2107 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2108 Update comments.
2109 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2110 comments.
2111 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2112 x86_64_supply_fxsave.
2113 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2114 x86_64_supply_fxsave.
2115 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2116 x86_64_supply_fxsave.
2117
c7716133
AJ
21182003-08-23 Andreas Jaeger <aj@suse.de>
2119
2120 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2121 i387_supply_fxsave.
2122
ed504bdf
MK
21232003-08-23 Mark Kettenis <kettenis@gnu.org>
2124
2125 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2126 i387_supply_register.
2127 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2128 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2129 i387_supply_fsave.
2130 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2131 i387_supply_fxsave.
2132 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2133 i387_supply_fsave.
2134 * i386bsd-nat.c (supply_fpregset): Adjust call to
2135 i387_supply_fsave.
2136 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2137 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2138 supply_fpregset.
2139 (store_inferior_registers): Remove extraneous whitespace. Call
2140 i387_fill_fsave instead of fill_fpregset.
2141 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2142 (supply_fpregset): Likewise.
2143 * i386v4-nat.c (supply_fpregset): Adjust call to
2144 i387_supply_fsave.
2145 * i386-interix-nat.c (supply_fpregset): Adjust call to
2146 i387_supply_fsave.
2147 * i386-linux-nat.c (supply_fpregset): Adjust call to
2148 i387_supply_fsave.
2149 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2150 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2151 i387supply_fsave and i387_supply_fxsave.
2152 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2153 Incorporate code from `i387_supply_register.
2154 (i387_supply_register): Remove.
2155 (i387_supply_fxsave): Add `regnum' argument.
2156 Update comments.
2157 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2158 prototype.
2159 (i387_supply_register): remove prototype.
2160 Update comments.
2161
4be5d520
MC
21622003-08-22 Michael Chastain <mec@shout.net>
2163
2164 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2165 Add lines for files in gdb/testsuite/gdb.cp/* that are
2166 still not 8.3 unique.
2167
7ed85d26
DJ
21682003-08-22 Daniel Jacobowitz <drow@mvista.com>
2169
2170 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2171 TYPE_VPTR_FIELDNO is valid.
2172
eb0d3137
MK
21732003-08-19 Mark Kettenis <kettenis@gnu.org>
2174
2175 * utils.c (set_width_command): Remove prototypes.
2176 (set_screen_size): New prototype.
2177 (init_page_info): Simplify by fetching the screen size from
2178 Readline. Call set_screen_size.
2179 (set_screen_size): New function.
2180 (set_width): Add missing whitespace in comment.
2181 (set_width_command): Call set_screen_size.
2182 (set_height_command): New function.
2183 (initialize_utils): Fix formatting. Make "set height" command
2184 call set_height_command. Remove redundant code that turns off
2185 pagination if output isn't a terminal. Remove redundant call to
2186 set_width_command.
2187
7e6d0ac8
MK
21882003-08-22 Mark Kettenis <kettenis@gnu.org>
2189
3567a8ea
MK
2190 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2191 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2192 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2193 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2194 `case' keyword.
2195 (sparc64_register_info): Give the reister with number
2196 SPARC64_STATE_REGNUM a name.
2197 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2198 %asi and %ccr.
2199 (sparc64_push_dummy_call): Take BIAS into account when checking
2200 stcak alignment.
2201 (sparc_software_single_step): Remove assertions that check whether
2202 NPC and NNPC were zero.
2203 (sparc_supply_rwindow): Make public. Merge functionality with
2204 sparc64_supply_rwindow.
2205 (sparc_fill_rwindow): Make public. Merge functionality with
2206 sparc64_fill_rwindow.
2207 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2208 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2209 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2210 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2211 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2212
7e6d0ac8
MK
2213 * reggroups.c: Add whitespace after declarations of local
2214 variables in functions.
2215
72e5f484
MC
22162003-08-21 Michael Chastain <mec@shout.net>
2217
2218 * gdbtypes.h: Change array bound type from an int to enum.
2219
435ac228
AC
22202003-08-21 Andrew Cagney <cagney@redhat.com>
2221
2222 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2223 * config/sparc/tm-sparc.h: Ditto.
2224 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2225 unconditionally.
2226 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2227
0d0e1a63
MK
22282003-07-13 Mark Kettenis <kettenis@gnu.org>
2229
2230 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2231 (register_objfile_data, set_objfile_data, objfile_data): New
2232 prototypes.
2233 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2234 prototypes.
2235 (allocate_objfile): Call objfile_alloc_data.
2236 (free_objfile): Call objfile_free_data.
2237 (struct objfile_data): New.
2238 (struct objfile_data_registration): New.
2239 (struct objfile_data_registry): New.
2240 (objfile_data_registry): New variable.
2241 (register_objfile_data): New function.
2242 (objfile_alloc_data, objfile_free_data): New functions.
2243 (set_objfile_data, objfile_data): New functions.
2244 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2245 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2246 (_initialize_dwarf2_frame): New function and prototype.
2247
d90cf509
AC
22482003-08-21 Andrew Cagney <cagney@redhat.com>
2249
2250 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2251 a specific architecture.
2252 * arch-utils.h (set_architecture_from_arch_mach): Delete
2253 declaration.
2254 (target_architecture_hook): Delete declaration.
2255 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2256 (default_float_format): Assume GDB_MULTI_ARCH.
2257 (default_double_format): Assume GDB_MULTI_ARCH.
2258 (set_endian_from_file): Delete function.
2259 (arch_ok): Delete function.
2260 (set_arch): Delete function.
2261 (set_architecture_from_arch_mach): Delete function.
2262 (set_architecture_from_file): Delete function.
2263 (set_architecture): Assume GDB_MULTI_ARCH.
2264 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2265
8b39fe56
MK
22662003-08-21 Mark Kettenis <kettenis@gnu.org>
2267
2268 Rewrite FreeBSD/sparc64 native configuration.
2269 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2270 * sparc64fbsd-nat.c: New file.
2271 * sparc64fbsd-tdep.c: New file.
2272 * sparc64-tdep.c sparc64-tdep.h: New files.
2273 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2274 sparc64fbsd-tdep.o): New dependencies.
2275 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2276 and sparc64fbsd-tdep.c.
2277 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2278 * config/sparc/fbsd.mh: Remove copyright notice.
2279 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2280 sparcbsd-nat.o.
2281 * config/sparc/fbsd.mt: Remove copyright notice.
2282 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2283 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2284 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2285 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2286 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2287 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2288 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2289 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2290 "sparc/tm-sp64.h".
2291 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2292 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2293
a7f19c79
MC
22942003-08-21 Michael Chastain <mec@shout.net>
2295
2296 * symtab.h: Add doco on the space critical structures and
2297 some measurements of space usage.
2298
da08ea5b
MS
22992003-08-21 Michael Snyder <msnyder@redhat.com>
2300
2301 * tracepoint.c (trace_dump_command): Trace break address
2302 is subject to DECR_PC_AFTER_BREAK.
2303 (set_traceframe_context): Make "trace_line" an int.
2304 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2305
6df2bf50
MS
23062003-08-20 Michael Snyder <msnyder@redhat.com>
2307
2308 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2309 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2310 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2311 argument passing.
2312 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2313 functions, replace sh_push_dummy_call.
2314 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2315
0955bbf0
MC
23162003-08-20 Michael Chastain <mec@shout.net>
2317
2318 * gdbtypes.h (struct main_type): Rearrange to save space.
2319
260a4188
MS
23202003-08-20 Michael Snyder <msnyder@redhat.com>
2321
2322 * trad-frame.c: Comment typo fix.
2323
8baa6f92
KB
23242003-08-20 Michael Snyder <msnyder@redhat.com>
2325 Kevin Buettner <kevinb@redhat.com>
2326
2327 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2328 (frv_frame_init_saved_regs): Add declaration.
2329 (frame_extra_info): Add new field ``saved_regs''.
2330 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2331 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2332 Update frame related code.
2333 (frv_extract_struct_value_address): Adjust formatting.
2334 * Makefile.in (frv-tdep.o): Update dependencies.
2335 * config/frv/tm-frv.h (target_insert_watchpoint)
2336 (target_remove_watchpoint, target_insert_hw_breakpoint)
2337 (target_remove_hw_breakpoint): Delete these macros.
2338 (remote_insert_watchpoint, remote_remove_watchpoint)
2339 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2340 these declarations.
2341
87193939
MC
23422003-08-20 Michael Chastain <mec@shout.net>
2343
2344 * defs.h (ENUM_BITFIELD): New macro.
2345 * symtab.h (ENUM_BITFIELD): Use it.
2346 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2347
062103ba
SA
23482003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2349
2350 * MAINTAINERS (write after approval): Add myself.
2351
8b148df9
AC
23522003-08-18 Andrew Cagney <cagney@redhat.com>
2353
2354 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2355 * gdbarch.h, gdbarch.c: Re-generate.
2356 * infcall.c (call_function_by_hand): Adjust the SP by
2357 frame_red_zone_size before allocating any stack space.
2358 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2359 * x86-64-tdep.c (x86_64_frame_align): New function.
2360 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2361
2362 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2363 Remove code adjusting SP so that it skips over the Red Zone.
2364
954a4db8
MK
23652003-08-18 Mark Kettenis <kettenis@gnu.org>
2366
2367 * NEWS (New native configurations): Mention FreeBSD/amd64.
2368
1a241548
AC
23692003-08-18 Andrew Cagney <cagney@redhat.com>
2370
2371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2372 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2373 "m68k_frame_p".
2374 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2375
f82b2acd
MK
23762003-08-18 Mark Kettenis <kettenis@gnu.org>
2377
2378 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2379
4056d258
ML
23802003-08-18 Michal Ludvig <mludvig@suse.cz>
2381
2382 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2383 Define.
2384 * i386-linux-nat.c: Include "linux-nat.h".
2385 (child_post_startup_inferior): New function.
2386
99ab4326
MK
23872003-08-18 Mark Kettenis <kettenis@gnu.org>
2388
2389 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2390 at the start of a frameless function. This probably fixes PR
2391 backtrace/1338.
2392
c8d5f0d6
MC
23932003-08-17 Michael Chastain <mec@shout.net>
2394
2395 * symfile.c (find_sym_fns): Remove special case for apollo target.
2396
9016a515
DJ
23972003-08-17 Daniel Jacobowitz <drow@mvista.com>
2398
2399 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2400 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2401 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2402 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2403 (linux_supports_tracevforkdone): New function.
2404 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2405 TRACEVFORKDONE.
2406 (child_follow_fork): Handle vfork.
2407 (linux_handle_extended_wait): Likewise. Also handle exec.
2408 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2409 * NEWS: Mention fork tracing.
2410
c538c11c
DJ
24112003-08-17 Daniel Jacobowitz <drow@mvista.com>
2412
2413 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2414
4de4c07c
DJ
24152003-08-17 Daniel Jacobowitz <drow@mvista.com>
2416
2417 * Makefile.in (i386-linux-nat.o): Update dependencies.
2418 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2419 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2420 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2421 * i386-linux-nat.c: Include "linux-nat.h".
2422 (child_post_startup_inferior): New function.
2423 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2424 * infptrace.c (kill_inferior): Wrap in #ifdef.
2425 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2426 attaching to each LWP.
2427 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2428 (init_lin_lwp_ops): Fill in some more operations.
2429 * linux-nat.h (linux_enable_event_reporting)
2430 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2431 prototypes.
2432 * linux-nat.c (linux_enable_event_reporting): New function.
2433 (child_post_attach, linux_child_post_startup_inferior)
2434 (child_post_startup_inferior, child_follow_fork)
2435 (linux_handle_extended_wait, kill_inferior): New functions.
2436
7996bcec
AC
24372003-08-16 Andrew Cagney <cagney@redhat.com>
2438
2439 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2440 * gdbarch.h, gdbarch.c: Re-generate.
2441
3d48a7a0
MK
24422003-08-16 Mark Kettenis <kettenis@gnu.org>
2443
2444 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2445
7989c619
AC
24462003-08-16 Andrew Cagney <cagney@redhat.com>
2447
2448 * NEWS: Mention that "set prompt-escape-char" was deleted.
2449 * top.c (get_prompt_1): Delete function.
2450 (gdb_prompt_escape):
2451 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2452 prompt-escape-char" command.
2453 (MAX_PROMPT_SIZE): Delete macro.
2454 (get_prompt): Simplify, do not call get_prompt_1.
2455
07978cd8
AC
24562003-08-16 Andrew Cagney <cagney@redhat.com>
2457
2458 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2459 -Werror. -Wformat-nonliteral problems.
2460
3ff7cf9e
JB
24612003-08-15 J. Brobecker <brobecker@gnat.com>
2462
2463 Further multiarching work mostly for hppa64-*-hpux11:
2464 * hppa-tdep.h: New file.
2465 * hppa-tdep.c: #include hppa-tdep.c.
2466 (hppa32_num_regs): Renamed from hppa_num_regs.
2467 (hppa64_num_regs): New constant.
2468 (hppa64_call_dummy_breakpoint_offset): New constant.
2469 (hppa32_call_dummy_length): New constant.
2470 (hppa64_call_dummy_length): New constant.
2471 (hppa32_stack_align): Make name 32bit explicit.
2472 (hppa32_register_virtual_type): Likewise.
2473 (hppa32_extract_return_value): Likewise.
2474 (hppa32_use_struct_convention): Likewise.
2475 (hppa32_store_return_value): Likewise.
2476 (hppa64_register_virtual_type): New function.
2477 (hppa64_extract_return_value): New function.
2478 (hppa64_use_struct_convention): New function.
2479 (hppa64_store_return_value): New function.
2480 (hppa_frame_locals_address): Remove declaration, function does
2481 not exist anymore.
2482 (hppa_register_byte): Add support for PA64 ABI.
2483 (hppa_gdbarch_init): Add support for PA64 ABI.
2484 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2485 Make name 32bit explicit.
2486 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2487 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2488 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2489 (hppa64_hpux_frame_base_before_sigtramp): New function.
2490 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2491 * config/pa/tm-hppa64.h: Remove macros that are no longer
2492 necessary now that the gdbarch vector is properly setup.
2493 Transform some macros into function calls. Some minor cleanup.
2494 * config/pa/tm-hppah.h: Update function calls in macros
2495 following the function renaming in hppa-hpux-tdep.c.
2496 * Makefile.in (hppa_tdep_h): New variable.
2497 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2498
5d05ca6d
MS
24992003-08-14 Michael Snyder <msnyder@redhat.com>
2500
2501 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2502
37ba2569
JB
25032003-08-13 J. Brobecker <brobecker@gnat.com>
2504
2505 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2506 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2507 routine.
2508
aed7f26a
MS
25092003-08-13 Michael Snyder <msnyder@redhat.com>
2510
2511 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2512 (frv_saved_pc_after_call): Use deprecated ftype.
2513 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2514 (frv_remote_translate_xfer_address): Remove.
2515 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2516
752d4ac1
JB
25172003-08-13 J. Brobecker <brobecker@gnat.com>
2518
2519 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2520 initialization after the common gdbarch initialization, not before.
2521
1426ac1d
JB
25222003-08-13 J. Brobecker <brobecker@gnat.com>
2523
2524 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2525 (ADDR_BITS_REMOVE): Remove, redundant.
2526
b6fbdd1d
JB
25272003-08-13 J. Brobecker <brobecker@gnat.com>
2528
2529 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2530 gdbarch method to clear the 2 low bits of text addresses.
2531
44160db3
AC
25322003-08-12 Andrew Cagney <cagney@redhat.com>
2533
2534 * Makefile.in (dsrec.o): Update dependencies.
2535 * dsrec.c: Include "gdb_assert.h".
2536 (make_srec): Use snprintf instead of sprintf, use a literal format
2537 string.
2538
bcf7d3ca
AC
25392003-08-12 Andrew Cagney <cagney@redhat.com>
2540
2541 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2542 FRAME_OBSTACK_ZALLOC.
2543
49ed40de
KB
25442003-08-12 Kevin Buettner <kevinb@redhat.com>
2545
2546 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2547 SSE registers.
2548
b246147c
MK
25492003-08-10 Mark Kettenis <kettenis@gnu.org>
2550
2551 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2552 amd64fbsd_sc_reg_offset): Add extern declarations.
2553 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2554 declarations.
2555
d95fdc0d
BE
25562003-08-11 Ben Elliston <bje@wasabisystems.com>
2557
2558 * MAINTAINERS (write after approval): Update my mail address.
2559
cf6a0e73
AC
25602003-08-10 Andrew Cagney <cagney@redhat.com>
2561
2562 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2563
f837910f
MK
25642003-08-10 Mark Kettenis <kettenis@gnu.org>
2565
e2dbbd2d
MK
2566 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2567 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2568 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2569 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2570 i386bsd_sc_reg_offset): Add extern declarations.
2571 * i386obsd-nat.c: Include "i386-tdep.h"
2572 (_initialize_i386obsd_nat): Remove extern declarations.
2573 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2574 declarations.
2575 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2576 declarations.
2577
f837910f
MK
2578 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2579 instead of frame_read_register.
2580 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2581 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2582 SP_REGNUM.
2583 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2584 instead of frame_unwind_unsigned_register. Use
2585 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2586 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2587 instead of read_register. Use builtin_type_void_data_ptr instead
2588 of builtin_type_void_func_ptr when extracting the address of the
2589 jmp_buf.
2590 (i386_extract_return_value, i386_store_return_value,
2591 i386_pseudo_register_read, i386_pseudo_register_write): Use
2592 register_size instead REGISTER_RAW_SIZE.
2593
edcf254d
AC
25942003-08-10 Andrew Cagney <cagney@redhat.com>
2595
2596 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2597 sprintf. Make "name" constant.
2598
26604a34
MK
25992003-08-10 Mark Kettenis <kettenis@gnu.org>
2600
192285c6
MK
2601 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2602 instead of frame_read_register.
f837910f
MK
2603 (i387_print_float_info): Use get_frame_register and
2604 get_frame_register_unsigned instead of frame_register_read.
192285c6 2605
f0925262
MK
2606 * i386fbsd-nat.c: Include "i386-tdep.h".
2607 (child_resume): Make `eflags' an ULONGEST. Use
2608 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2609 instead of register_read and register_write.
2610
a144416f
MK
2611 * i386bsd-nat.c (fetch_inferior_registers,
2612 store_inferior_registers): Don't use && at the end of a line.
2613 (_initialize_i386bsd_nat): Fix typo.
2614
fec74868
MK
2615 * frame.c (_initialize_frame): Add missing backslash.
2616
87232496
MK
2617 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2618 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2619 and supply_register instead of manipulating the register buffer
2620 directly.
2621
c9b9de0b
MK
2622 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2623 * config/i386/nm-i386sol2.h
2624 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2625
26604a34
MK
2626 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2627 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2628 instructions that GCC likes to mingle into the prologue. Fixes
2629 gdb/1253 and gdb/1255.
2630
25d29d70
AC
26312003-08-09 Andrew Cagney <cagney@redhat.com>
2632
2633 Fix GDB PR cli/926.
2634 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2635 * command.h (add_setshow_uinteger_cmd): Declare.
2636 * frame.c (set_backtrace_cmd): New function.
2637 (show_backtrace_cmd): New function.
2638 * frame.c (_initialize_frame): Replace "set/show
2639 backtrace-below-main" with "set/show backtrace past-main". Add
2640 command "set/show backtrace limit".
2641 (backtrace_past_main): Rename "backtrace_below_main".
2642 (backtrace_limit): New variable.
2643 (get_prev_frame): Update. Check the backtrace_limit.
2644
9ebf4acf
AC
26452003-08-09 Andrew Cagney <cagney@redhat.com>
2646
2647 * defs.h (xstrprintf): Declare.
2648 * utils.c (xstrprintf): New function.
2649 * breakpoint.c (insert_breakpoints): Replace sprintf and
2650 non-literal format strings, with xstrprintf and cleanups.
2651 (delete_breakpoint,breakpoint_re_set): Ditto.
2652 (commands_command, insert_breakpoints): Ditto.
2653 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2654 (break_at_finish_command_1): Ditto.
2655
3771659b
AC
26562003-08-09 Andrew Cagney <cagney@redhat.com>
2657
2658 * MAINTAINERS (language support): List Adam Fedor as Objective C
2659 maintainer.
2660
b4263afa
JB
26612003-08-08 J. Brobecker <brobecker@gnat.com>
2662
2663 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2664 are now multiarched.
2665
d84defb1
JB
26662003-08-08 J. Brobecker <brobecker@gnat.com>
2667
2668 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2669 longer necessary now that hppa64 is partially multiarch'ed.
2670
f786f615
AC
26712003-08-08 Andrew Cagney <cagney@redhat.com>
2672
2673 * interps.c (interp_set): Check for a NULL "old_interp".
2674
c938e9b0
L
26752003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2676
2677 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2678 (install-only): Support DESTDIR.
2679 (uninstall): Likewise.
2680 (install-gdbtk): Likewise.
2681
9a146a11
EZ
26822003-08-08 Elena Zannoni <ezannoni@redhat.com>
2683
2684 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2685 contains something meaningful at all times.
2686
2687Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2688
62599e99 2689 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2690
56296155
BC
2691Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2692
62599e99 2693 * MAINTAINERS (write after approval): Added self.
56296155 2694
9710e734
AC
26952003-08-07 Andrew Cagney <cagney@redhat.com>
2696
2697 * inferior.h (AT_SYMBOL): Define.
2698 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2699 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2700 * mips-tdep.c (mips_call_dummy_address): Delete function.
2701 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2702 set call_dummy_address.
2703
98b3ab73
AC
27042003-08-07 Andrew Cagney <cagney@redhat.com>
2705
2706 * language.c (op_error): Delete function.
2707 (binop_type_check): Delete function.
2708 * language.h (type_op_error, range_op_error): Delete macros.
2709 (op_error): Delete declaration.
2710
2fcf52f0
AC
27112003-08-07 Andrew Cagney <cagney@redhat.com>
2712
2713 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2714
abd4220e 27152003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2716
abd4220e 2717 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2718 (x86_64_push_arguments): Skip the red zone.
abd4220e 2719
9dd5f34f
AC
27202003-08-05 Andrew Cagney <cagney@redhat.com>
2721
2722 * reggroups.c (reggroup_next): Check for the final entry.
2723
e5e78edc
AC
27242003-08-04 Andrew Cagney <cagney@redhat.com>
2725
ab4e3d93
AC
2726 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2727 * cli/cli-script.c (define_command): Call query directly, instead
2728 of passing it a buffer.
2729 * ocd.c (ocd_error): Pass error a constant format string.
2730 * remote-mips.c (mips_error): Use fputs_filtered.
2731
1062ca82
AC
2732 * solib-svr4.c (_initialize_svr4_solib): Update
2733 register_gdbarch_data call.
2734 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2735
fcc1c85c
AC
2736 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2737 (register_gdbarch_data): Delete "free" parameter. Update
2738 comments.
2739 * gdbarch.h, gdbarch.c: Re-generate.
2740 * reggroups.c (_initialize_reggroup): Update.
2741 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2742 * frame-base.c (_initialize_frame_base): Update.
2743 * frame-unwind.c (_initialize_frame_unwind): Update.
2744 * user-regs.c (_initialize_user_regs): Update.
2745 * remote.c (_initialize_remote): Update.
2746 * regcache.c (_initialize_regcache): Update.
2747
116f06ea
AC
2748 * regcache.c (xfree_regcache_descr): Delete function.
2749 (_initialize_regcache): Update call to register_gdbarch_data.
2750 (init_regcache_descr, init_legacy_regcache_descr): Use
2751 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2752
e5e78edc
AC
2753 * remote.c (free_remote_state): Delete function.
2754 (_initialize_remote): Update register_gdbarch_data.
2755 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2756 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2757
6c7d17ba
AC
27582003-08-04 Andrew Cagney <cagney@redhat.com>
2759
2760 * reggroups.c (struct reggroup_el): Define.
2761 (struct reggroups): Delete field "nr_group". Replace array
2762 "group" with a "first" to "last" linked list.
2763 (reggroups_init): Update. Allocate using gdbarch's obstack.
2764 (reggroups_free): Delete function.
2765 (add_group): Update. Add "el" parameter.
2766 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2767 (default_groups): Update.
2768 (reggroup_next): Replace reggroups.
2769 (reggroups_dump): Update.
2770 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2771 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2772 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2773
89b7795b
DJ
27742003-08-04 Daniel Jacobowitz <drow@mvista.com>
2775
2776 * Makefile.in (tui-interp.o): Update dependencies.
2777
306d9ac5
DC
27782003-08-04 David Carlton <carlton@kealia.com>
2779
2780 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2781 to internal_error call.
2782 * source.c (forward_search_command): Add "%s" format argument.
2783 (reverse_search_command): Ditto.
2784 * top.c (quit_confirm): Ditto.
2785 * cli/cli-setshow.c (do_setshow_command): Ditto.
2786 * cp-valprint.c (cp_print_class_method): Replace
2787 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2788 (cp_print_class_member): Ditto.
2789 * event-top.c (command_line_handler): Ditto.
2790 * linux-proc.c (linux_info_proc_cmd): Ditto.
2791 * p-typeprint.c (pascal_type_print_base): Ditto.
2792 * p-valprint.c (pascal_object_print_class_method): Ditto.
2793 (pascal_object_print_class_member): Ditto.
2794 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2795 * remote.c (remote_cisco_section_offsets): Ditto.
2796 * top.c (command_line_input): Ditto.
2797 * utils.c (vwarning,error_stream,quit): Ditto.
2798 * valprint.c (print_floating,print_binary_chars)
2799 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2800
57bfe177
AC
28012003-08-04 Andrew Cagney <cagney@redhat.com>
2802
2803 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2804
e546b999
AC
28052003-08-02 Andrew Cagney <cagney@redhat.com>
2806
2807 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2808 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2809 amd64fbsd-nat.c.
2810
91092ee5
AC
28112003-08-02 Andrew Cagney <cagney@redhat.com>
2812
2813 * Makefile.in: Update all dependencies and definitions.
2814
889f28e2
AF
28152003-08-02 Adam Fedor <fedor@gnu.org>
2816
2817 * linespec.c (is_objc_method_format): New function
2818 (decode_line_1, locate_first_half): Use it.
2819 Fixes PR objc/1298
2820
880bc914
AC
28212003-08-01 Andrew Cagney <cagney@redhat.com>
2822
2823 * NEWS: Mention that m32r is multi-arch.
2824 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2825 * configure.tgt: Recognize m32r-*-*.
2826 * config/m32r/tm-m32r.h: Delete file.
2827 * config/m32r/m32r.mt: New file.
2828 * m32r-rom.c (m32r_upload_command): Use hostent only when
2829 gethostname succeeds, in order to avoid a compilation
2830 warning.
2831 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2832 compiler warning.
2833
19f59343
MS
28342003-08-01 Michael Snyder <msnyder@redhat.com>
2835
2836 * sh-tdep.c (sh_frame_align): New gdbarch method.
2837 (sh_gdbarch_init): Set up frame_align method.
2838
4e7d7511
MS
28392003-07-31 Michael Snyder <msnyder@redhat.com>
2840
2841 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2842 which is already covered by the new frames infrastructure.
2843
63022984
AC
28442003-07-31 Andrew Cagney <cagney@redhat.com>
2845
2846 * user-regs.c (struct user_reg): Add "next" link.
2847 (struct user_regs): Replace "user" with "first" and "last" links.
2848 (append_user_reg): Add pre-allocated "reg" parameter.
2849 (builtin_user_regs): Provide initial value for "last".
2850 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2851 (user_regs_init): Allocate memory from the gdbarch obstack.
2852 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2853 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2854 linked list.
2855 (usernum_to_user_reg): New function.
2856 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2857 (value_of_user_reg): Use usernum_to_user_reg.
2858 (user_regs_free): Delete function.
2859 (_initialize_user_regs): Update register_gdbarch_data call.
2860
7cf6e574
DJ
28612003-07-31 Daniel Jacobowitz <drow@mvista.com>
2862
2863 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2864
c48a845b
MS
28652003-07-30 Michael Snyder <msnyder@redhat.com>
2866
4e7d7511 2867 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2868 * infcall.c (call_function_by_hand): Pass struct_addr to
2869 value_being_returned.
2870 * infcmd.c (print_return_value): Pass zero as struct_addr.
2871 * values.c (value_being_returned): If struct_addr is passed,
2872 use it instead of trying to recover it from the inferior.
2873
f0d8db19
KB
28742003-07-30 Kevin Buettner <kevinb@redhat.com>
2875
2876 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2877 the prologue analyzer won't need to attempt to extract the pc
2878 value from the woefully incomplete dummy frame.
2879 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2880 possible. Disable code which modifies the frame.
2881
e5c113a1
AC
28822003-07-28 Andrew Cagney <cagney@redhat.com>
2883
2884 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2885 to level 2.
2886 (annotate_breakpoints_table, annotate_record): Ditto.
2887 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2888 (annotate_field_name_end, annotate_field_value): Ditto.
2889 (annotate_field_end, annotate_frame_source_begin): Ditto.
2890 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2891 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2892 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2893 (annotate_frame_address_end, annotate_frame_address): Ditto.
2894 (annotate_frame_args, annotate_frame_end): Ditto.
2895 (annotate_frame_where, annotate_arg_begin): Ditto.
2896 (annotate_arg_name_end, annotate_arg_value): Ditto.
2897 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2898 (annotate_function_call, annotate_signal_name): Ditto.
2899 (annotate_signal_string, annotate_signal_name_end): Ditto.
2900 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2901 (annotate_value_begin, annotate_value_history_value): Ditto.
2902 (annotate_value_history_end, annotate_value_end): Ditto.
2903 (annotate_display_begin, annotate_display_number_end): Ditto.
2904 (annotate_display_format, annotate_display_expression): Ditto.
2905 (annotate_display_expression_end, annotate_display_value): Ditto.
2906 (annotate_display_end, annotate_array_section_begin): Ditto.
2907 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2908 (annotate_elt, annotate_array_section_end): Ditto.
2909
bb1db049
AC
29102003-07-28 Andrew Cagney <cagney@redhat.com>
2911
2912 * regcache.c (struct regcache_descr): Update comments on
2913 nr_raw_registers.
2914 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2915 sizeof_raw_register_valid_p.
2916 (init_regcache_descr): Set nr_raw_registers and
2917 sizeof_raw_register_valid_p before calling
2918 init_legacy_regcache_descr.
2919
20e6603c
AC
29202003-07-28 Andrew Cagney <cagney@redhat.com>
2921
2922 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2923 MOD NUM_REGS.
2924
db742940
DJ
29252003-07-28 Daniel Jacobowitz <drow@mvista.com>
2926
2927 * thread.c (info_threads_command): Use get_selected_frame ().
2928 Check that there is at least one non-sentinel frame.
2929
ce7f4371
SC
29302003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2931
2932 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2933 (m68hc11_pop_frame): Remove.
2934 (m68hc11_frame_saved_pc): Remove.
2935 (m68hc11_frame_chain): Remove.
2936 (m68hc11_frame_init_saved_regs): Remove.
2937 (m68hc11_init_extra_frame_info): Remove.
2938 (m68hc11_store_struct_return): Remove.
2939 (m68hc11_saved_pc_after_call): Remove.
2940
1ea653ae
SC
29412003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2942
2943 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2944 frame unwind information.
2945 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2946 and adapted for frame unwinding.
2947 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2948 (m68hc11_unwind_pc): New function.
2949 (m68hc11_frame_unwind_cache): New function to analyze frames.
2950 (m68hc11_frame_this_id): New function to create new frame struct.
2951 (m68hc11_frame_prev_register): New function to unwind a register from
2952 the frame.
2953 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2954 (m68hc11_frame_p): New function for the above.
2955 (m68hc11_frame_base_address): New function to return fp of frame.
2956 (m68hc11_frame_args_address): Update for frame.
2957 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2958 (m68hc11_unwind_sp): New function.
2959 (m68hc11_unwind_dummy_id): New function.
2960 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2961 calls.
2962
c8a7f6ac
SC
29632003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2964
2965 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2966 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2967 when we are beyond the current pc.
2968
3dc990bf
SC
29692003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2970
2971 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2972 from m68hc11_push_arguments.
2973 (m68hc11_push_arguments): Remove.
2974 (m68hc11_push_return_address): Remove.
2975 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2976 handlers; remove deprecated_extra_stack_alignment_needed.
2977
222e5d1d
AC
29782003-07-27 Andrew Cagney <cagney@redhat.com>
2979
2980 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2981 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2982 REAL_PC and not the pointer.
2983 * hppa-hpux-tdep.c: Include frame.h
2984
a7e9a47e
AC
29852003-07-27 Andrew Cagney <cagney@redhat.com>
2986
2987 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2988 GDB_MULTI_ACH_PARTIAL.
2989
7e3dd49e
AC
29902003-07-27 Andrew Cagney <cagney@redhat.com>
2991
2992 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2993 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2994 operator at start and not end of line.
2995 (decode_prologue): Ditto.
2996 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2997 frame_unwind_register_unsigned instead of
2998 frame_unwind_unsigned_register.
2999 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3000 read_register.
3001 (m32r_push_dummy_call): Use register_size instead of
3002 REGISTER_RAW_SIZE.
3003 (m32r_frame_sniffer): Replace m32r_frame_p.
3004 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3005 * m32r-rom.c (report_transfer_performance): Delete extern
3006 declaration.
3007 (m32r_load, m32r_upload_command): Use print_transfer_performance
3008 instead of report_transfer_performance.
3009 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3010 / add_show_from_set.
3011
0880807f
AC
30122003-07-26 Andrew Cagney <cagney@redhat.com>
3013
3014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3015 store_return_value and extract_struct_value_address.
3016
64ae9269
DJ
30172003-07-26 Daniel Jacobowitz <drow@mvista.com>
3018
3019 PR c++/1267
3020 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3021 NULL, default to the section containing PC.
3022
e286caf2
SC
30232003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3024
3025 * NEWS: Mention "regs" deprecated for m68hc11 too.
3026
3027 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3028 (m68hc11_print_register): New function to print out one register.
3029 (m68hc11_print_registers_info): New function to print registers.
3030 (show_regs): Deprecate and use the above.
3031 (m68hc11_gdbarch_init): Install the print_registers_info.
3032
705b278b
JJ
30332003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3034
3035 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3036 that we have a SIGTRAP before returning non-zero.
3037
63cd4198
EZ
30382003-07-23 Michal Ludvig <mludvig@suse.cz>
3039 Elena Zannoni <ezannoni@redhat.com>
3040
3041 * linespec.c (decode_line_2): Avoid crash if
3042 find_function_start_sal() returns empty record.
3043
6926787d
AS
30442003-07-23 Andreas Schwab <schwab@suse.de>
3045
3046 * ia64-tdep.c (ia64_print_insn): New function.
3047 (ia64_gdbarch_init): Set print_insn to it.
3048 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3049 deprecated_tm_print_insn_info.
3050
708cc1b6
MS
30512003-07-22 Michael Snyder <msnyder@redhat.com>
3052
3053 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3054 handle 8-bit returns (long long).
3055 (h8300h_extract_return_value): Ditto.
3056 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3057
aebd7893
AC
30582003-07-22 Andrew Cagney <cagney@redhat.com>
3059
3060 * gdbarch.c Include "gdb_obstack.h".
3061 (struct gdbarch): Add an "obstack".
3062 (alloc_gdbarch_data): Allocate the gdbarch data using
3063 GDBARCH_OBSTACK_CALLOC.
3064 (free_gdbarch_data): Delete function.
3065 (gdbarch_obstack_zalloc): New function.
3066 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3067 Assert that the architecture is not initialized.
3068 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3069 vector from the obstack.
3070 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3071 architecture obstack.
3072 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3073 (set_gdbarch_data): Assert that the data is not initialized.
3074 (struct gdbarch_data): Delete member "free".
3075 (register_gdbarch_data): Do not initialize "free".
3076 * gdbarch.h, gdbarch.c: Re-generate.
3077
153721e6
AC
30782003-07-22 Andrew Cagney <cagney@redhat.com>
3079
3080 * configure.in (build_warnings): Add -Wformat-nonliteral.
3081 * configure: Re-generate.
3082
c193f044 30832003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3084
3085 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3086
c3228f12
EZ
30872003-07-22 Elena Zannoni <ezannoni@redhat.com>
3088
3089 * findvar.c (read_var_value): Remove case for thread local storage
3090 variables. It is now entirely handled by the dwarf2 location
3091 expression code.
3092 * printcmd.c (address_info): Ditto.
3093 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3094 enumeration value.
3095 (struct symbol): Remove objfile field, which was used by
3096 LOC_THREAD_LOCAL_STATIC only.
3097 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3098 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3099 usage of objfile pointer.
3100 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3101 thread local variables.
3102 Add include of objfiles.h.
3103 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3104 storage variables.
3105 * Makefile.in (dwarf2loc.o): Update dependencies.
3106
aef9bcd2
AC
31072003-07-22 Andrew Cagney <cagney@redhat.com>
3108
3109 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3110 get_frame_base.
3111 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3112 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3113 (struct value): Add opaque declaration.
3114 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3115
d95a8903
AC
31162003-07-21 Andrew Cagney <cagney@redhat.com>
3117
3118 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3119 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3120
4db73d49
SC
31212003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3122
3123 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3124 regcache_cooked_read_unsigned instead of read_register.
3125 (m68hc11_saved_pc_after_call): Likewise.
3126 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3127 instead of write_register.
3128 (m68hc11_register_type): New function.
3129 (m68hc11_register_virtual_type): Remove.
3130 (m68hc11_store_return_value): Convert to use the regcache.
3131 (m68hc11_extract_struct_value_address): Likewise.
3132 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3133 m68hc11_register_type; undeprecate store_return_value and
3134 extract_struct_value_address.
3135
ef2b8fcd
SC
31362003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3137
3138 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3139 and translate to use regcache.
3140 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3141
625b0b97
AC
31422003-07-18 Andrew Cagney <cagney@redhat.com>
3143
3144 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3145 * gdbarch.h, gdbarch.c: Re-generate.
3146 * i386-tdep.c (i386_gdbarch_init): Do not set
3147 DWARF2_BUILD_FRAME_INFO.
3148 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3149 unconditionally.
3150 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3151 DWARF2_BUILD_FRAME_INFO.
3152
22b0d388
AC
31532003-07-18 Andrew Cagney <cagney@redhat.com>
3154
3155 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3156 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3157
1ce5d6dd
AC
31582003-07-18 Andrew Cagney <cagney@redhat.com>
3159
3160 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3161 frame_unwind_address_in_block, instead of frame_pc_unwind.
3162 (dwarf2_frame_cache): Ditto.
3163
e6e5e94c
AC
31642003-07-18 Andrew Cagney <cagney@redhat.com>
3165
3166 * user-regs.h (struct gdbarch): Declare opaque.
3167 * ui-out.h (struct ui_file): Declare opaque.
3168 * dwarf2-frame.h (struct frame_info): Declare opaque.
3169
5483d879
KW
31702003-07-18 Kris Warkentin <kewarken@qnx.com>
3171
3172 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3173 #include "...".
3174 (procfs_meminfo): Change strerror to safe_strerror.
3175 (procfs_can_run): Remove K&R badness.
3176
278a7cf7
MS
31772003-07-17 Michael Snyder <msnyder@redhat.com>
3178
3179 * remote-sim.c: Comment typo fix.
3180
606e3b82
AC
31812003-07-17 Andrew Cagney <cagney@redhat.com>
3182
3183 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3184 configure.
3185 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3186 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3187 GDB_MULTI_ARCH_PARTIAL.
3188
c43af07c
EZ
31892003-07-17 Elena Zannoni <ezannoni@redhat.com>
3190
3191 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3192 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3193 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3194
3b85b0f1
TR
31952003-07-16 Theodore A. Roth <troth@openavr.org>
3196
3197 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3198 found.
3199 (avr_frame_unwind_cache): Don't unwind FP for main.
3200 Update a comment.
3201 Save the computed prev_sp.
3202 (avr_saved_regs_unwinder): Remove function.
3203 (avr_frame_prev_register): Use PC unwind logic from
3204 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3205
336d1bba
AC
32062003-07-16 Andrew Cagney <cagney@redhat.com>
3207
3208 * frame-base.h (frame_base_p_ftype): Delete definition.
3209 (frame_base_append_predicate): Delete declaration.
3210 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3211 (frame_unwind_append_predicate): Delete declaration.
3212 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3213 (append_predicate): Delete parameter "p".
3214 (frame_unwind_append_predicate): Delete function.
3215 (frame_unwind_append_sniffer): Update call to append_predicate.
3216 (frame_unwind_free): Delete function.
3217 (_initialize_frame_unwind): Pass NULL as "free" to
3218 register_gdbarch_data.
3219 (frame_unwind_init): Append the dummy_frame_sniffer.
3220 (frame_unwind_find_by_frame): Simplify.
3221 * frame-base.c (struct frame_base_table): Delete field "p".
3222 (append_predicate): Delete parameter "p".
3223 (frame_base_append_predicate): Delete function.
3224 (frame_base_append_sniffer): Update call to append_predicate.
3225 (frame_base_free): Delete function.
3226 (frame_base_find_by_frame): Simplify.
3227 (_initialize_frame_base): Pass NULL as "free" to
3228 register_gdbarch_data.
3229 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3230 (x86_64_sigtramp_frame_sniffer): Replace
3231 "x86_64_sigtramp_frame_p".
3232 (x86_64_init_abi): Set the frame unwind sniffers.
3233 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3234 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3235 (m68k_gdbarch_init): Set the frame unwind sniffers.
3236 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3237 "i386_sigtramp_frame_p".
3238 (i386_frame_sniffer): Replace "i386_frame_p".
3239 (i386_gdbarch_init): Set the frame unwind sniffers.
3240 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3241 (avr_gdbarch_init): Set the frame unwind sniffers.
3242 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3243 "alpha_sigtramp_frame_p"
3244 (alpha_heuristic_frame_sniffer): Replace
3245 "alpha_heuristic_frame_p".
3246 (alpha_gdbarch_init): Set the frame unwind sniffers.
3247 (alpha_dwarf2_init_abi): Ditto.
3248 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3249 "alpha_debug_frame_p".
3250 (alpha_mdebug_frame_base_sniffer): Replace
3251 "alpha_mdebug_frame_base_p".
3252 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3253 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3254 (d10v_gdbarch_init): Set the frame unwind sniffer.
3255 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3256 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3257 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3258 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3259 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3260 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3261
48db5a3c
CV
32622003-07-16 Michael Snyder <msnyder@redhat.com>
3263
3264 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3265 should go thru sh_dsp_register_sim_regno, else the dsp regs
3266 will not get the right values.
3267
32682003-07-16 Corinna Vinschen <vinschen@redhat.com>
3269
3270 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3271 deprecated_store_floating by call to store_typed_floating.
3272 (sh_sh4_register_convert_to_raw): Substitute call to
3273 deprecated_extract_floating by call to extract_typed_floating.
3274
32752003-07-16 Corinna Vinschen <vinschen@redhat.com>
3276
3277 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3278
32792003-07-16 Corinna Vinschen <vinschen@redhat.com>
3280
3281 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3282 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3283 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3284 as possible.
3285 (do_pseudo_register): Remove.
3286 (sh_push_dummy_code): New function.
3287 (sh64_store_struct_return): Rename from sh_store_struct_return.
3288 Only called for sh64 now.
3289 (sh_extract_struct_value_address): Regcache'ify.
3290 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3291 and accomodate new tasks.
3292 (sh64_push_return_address): Rename from sh_push_return_address.
3293 Only called for sh64 now.
3294 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3295 Regcache'ify.
3296 (sh3e_sh4_extract_return_value): Regcache'ify.
3297 (sh_default_store_return_value): Ditto.
3298 (sh3e_sh4_store_return_value): Ditto.
3299 (sh_default_register_byte): Remove.
3300 (sh_sh4_register_byte): Remove.
3301 (sh_default_register_raw_size): Remove.
3302 (sh_sh4_register_raw_size): Remove.
3303 (sh_register_virtual_size): Remove.
3304 (sh_sh3e_register_virtual_type): Remove.
3305 (sh_sh3e_register_type): New function.
3306 (sh_sh4_register_virtual_type): Remove.
3307 (sh_sh4_register_type): New function.
3308 (sh_default_register_virtual_type): Remove.
3309 (sh_default_register_type): New function.
3310 (do_fv_register_info): Add parameters to accomodate call from
3311 sh_print_registers_info.
3312 (do_dr_register_info): Ditto.
3313 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3314 Add parameters to accomodate call from sh_print_registers_info.
3315 (sh_do_fp_register): Ditto.
3316 (sh64_do_pseudo_register): Call do_dr_register_info,
3317 do_fv_register_info and sh_do_fp_register with default parameters.
3318 (sh_do_register): Add parameters to accomodate call from
3319 sh_print_registers_info.
3320 (sh_print_register): Ditto.
3321 (sh_print_registers_info): Rename from sh_do_registers_info.
3322 Add parameters to be used as gdbarch_print_registers_info
3323 implementation. Accomodate removed do_pseudo_register function
3324 pointer.
3325 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3326 function pointer. Call sh_print_register with default parameters.
3327 (sh64_do_registers_info): Call sh_print_registers_info instead of
3328 sh_do_registers_info.
3329 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3330 detection of deprecated vs. non-deprecated functionality.
3331 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3332 function pointer assignments by direct function calls.
3333
e8a89fe2
AC
33342003-07-15 Andrew Cagney <cagney@redhat.com>
3335
3336 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3337 (frame_register_unwind, create_new_frame): Ditto.
3338 (legacy_get_prev_frame, get_frame_type): Ditto.
3339 (get_frame_base_address): Use frame_base_find_by_frame.
3340 (get_frame_locals_address): Use frame_base_find_by_frame.
3341 (get_frame_args_address): Use frame_base_find_by_frame.
3342 * frame-base.h (frame_base_sniffer_ftype): Declare.
3343 (frame_base_append_sniffer): Declare.
3344 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3345 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3346 (frame_base_append_sniffer): New function.
3347 (frame_base_append_predicate): Add a NULL sniffer.
3348 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3349 (struct frame_base_table): Add "sniffer".
3350 (frame_base_free): Free the "sniffer" table.
3351 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3352 (frame_unwind_append_sniffer): Declare.
3353 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3354 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3355 (struct frame_unwind_table): Add "sniffer", delete "middle".
3356 (append_predicate): Add "sniffer" parameter, append the sniffer.
3357 (frame_unwind_init): Update append_predicate call.
3358 (frame_unwind_append_sniffer): New function.
3359 (frame_unwind_append_predicate): Update append_predicate call.
3360 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3361
0714963c
AC
33622003-07-15 Andrew Cagney <cagney@redhat.com>
3363
3364 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3365 before code inhibiting repeated unwind attempts. Add to
3366 commentary on that test's problems.
3367 * blockframe.c (inside_main_func): Look for "main" in the minimal
3368 symbol table.
3369 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3370 identical.
3371
d9170e22
AC
33722003-07-15 Andrew Cagney <cagney@redhat.com>
3373
3374 * complaints.c (struct explanation): Define.
3375 (struct complaints): Change type of "explanation" to "struct
3376 explanation".
3377 (symfile_explanations): Convert to a "struct explanation" table.
3378 (vcomplaint): Update.
3379
eba29c8c
ML
33802003-07-15 Michal Ludvig <mludvig@suse.cz>
3381
3382 * x86-64-linux-nat.c (regmap): Removed.
3383 (supply_gregset, fill_gregset): Call
3384 x86_64_linux_(fill,supply)_gregset functions.
3385 * x86-64-linux-tdep.c (USER_*): New defines.
3386 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3387 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3388 New functions.
3389 (fetch_core_registers): Ditto.
3390 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3391 * x86-64-linux-tdep.h: New file.
3392 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3393 and core-regset.o.
3394 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3395
68cc0bfb
MK
33962003-07-13 Mark Kettenis <kettenis@gnu.org>
3397
88a115f7
MK
3398 * x86-64-tdep.c (x86_64_store_return_value): Use
3399 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3400
68cc0bfb
MK
3401 * configure.host: Add x86_64-*-freebsd*.
3402 * configure.tgt: Add x86_64-*-freebsd*.
3403 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3404 * amd64fbsd-nat.c: New file.
3405 * amd64fbsd-tdep.c: New file.
3406 * config/i386/nm-fbsd64.h: New file.
3407 * config/i386/fbsd64.mh: New file.
3408 * config/i386/fbsd64.mt: New file.
3409
138e7be5
MK
34102003-07-11 Mark Kettenis <kettenis@gnu.org>
3411
3412 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3413 `sc_regs_offset' and `sc_fpregs_offset'.
3414 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3415 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3416 (alpha_sigtramp_register_address): Rewrite to use new members of
3417 `struct gdbarch_tdep'.
3418 (alpha_gdbarch_init): Initialize new members of struct
3419 gdbarch_tdep'.
3420 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3421 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3422 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3423 (alphafbsd_pc_in_sigtramp): Implement.
3424 (alphafbsd_sigtramp_offset): New function.
3425 (alphafbsd_sigcontext_addr): New function.
3426 (alphafbsd_init_abi): Initialize signal trampoline related members
3427 of `struct gdbarch_tdep'.
3428 (_initialize_alphafbsd_tdep): Add prototype.
3429
95303a68
TR
34302003-07-11 Theodore A. Roth <troth@openavr.org>
3431
ba292e4c
TR
3432 * Makefile.in (install-only): Quote sed expression when generating
3433 transformed_name.
95303a68 3434
6896c0c7
RH
34352003-07-11 Richard Henderson <rth@redhat.com>
3436
3437 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3438 * dwarf2-frame.c: Include complaints.h.
3439 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3440 variable initialization; return NULL on error.
3441 (decode_frame_entry): New.
3442
8edd5d01
AC
34432003-07-11 Andrew Cagney <cagney@redhat.com>
3444
c4a09524
AC
3445 * frame.h (frame_address_in_block): Delete declaration.
3446 * blockframe.c (frame_address_in_block): Delete function.
3447 (get_frame_block): Use get_frame_address_in_block.
3448 (block_innermost_frame): Ditto.
3449 * stack.c (print_frame, backtrace_command_1): Ditto.
3450
8edd5d01
AC
3451 * frame.h (get_frame_address_in_block): Declare.
3452 (frame_unwind_address_in_block): Declare.
3453 * frame.c (frame_unwind_address_in_block): New function.
3454 (get_frame_address_in_block): New function.
3455
f7968451
AC
34562003-07-10 Andrew Cagney <cagney@redhat.com>
3457
3458 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3459 pre-default. Note: re-generate has no effect.
3460
ae99b398
AC
34612003-07-10 Andrew Cagney <cagney@redhat.com>
3462
3463 * gdbarch.sh: When a variable, but not a function, compare against
3464 0. Fix problem in previous patch.
3465 * gdbarch.c: Re-generate.
3466
956ac328
AC
34672003-07-10 Andrew Cagney <cagney@redhat.com>
3468
3469 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3470 functions against NULL, not 0.
3471 * gdbarch.c: Re-generate.
3472
287c3240
FF
34732003-07-10 Fred Fish <fnf@ninemoons.com>
3474
3475 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3476 null string instead of a null pointer.
3477 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3478
32f63c4b
MS
34792003-07-09 Michael Snyder <msnyder@redhat.com>
3480
3481 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3482
402ecd56
MK
34832003-07-09 Mark Kettenis <kettenis@gnu.org>
3484
3485 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3486 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3487 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3488 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3489 * x86-64-tdep.c: ... from here.
3490
c481dac7
AS
34912003-07-09 Andreas Schwab <schwab@suse.de>
3492
3493 * m68k-tdep.h (enum struct_return): Define.
3494 (struct gdbarch_tdep): Add struct_return.
3495 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3496 bytes are padded to the right, not to the left. Pass struct value
3497 address in register %a1, not on stack.
3498 (m68k_use_struct_convention): New function.
3499 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3500 struct_return in tdep to pcc_struct_return.
3501 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3502 reg_struct_return.
3503
64176fa3
JB
35042003-07-09 Joel Brobecker <brobecker@gnat.com>
3505
3506 * somread.c (som_symfile_offsets): Fix compilation error.
3507
96a4ee76
AC
35082003-07-09 Andrew Cagney <cagney@redhat.com>
3509
3510 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3511 Add comments about the checks.
3512
1517c6d1
AC
35132003-07-08 Andrew Cagney <cagney@redhat.com>
3514
3515 * Makefile.in: Make dependency section headers consistent.
3516 (config_h): Move to $BUILD headers section.
3517 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3518 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3519 (ada-exp.tab.c): Move to YACC/LEX section.
3520 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3521 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3522
dc5dd1eb
KW
35232003-07-08 Kris Warkentin <kewarken@qnx.com>
3524
3525 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3526 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3527 of strerror with safe_strerror, use ISO C function definitions,
3528 and replace instances of sprintf with snprintf.
dc5dd1eb 3529
612dde91
AC
35302003-07-07 Andrew Cagney <cagney@redhat.com>
3531
3532 * frame.c (get_prev_frame): Enable check for identical frames.
3533 Update comments. Update error messages.
3534
492c11d3
JB
35352003-07-07 Joel Brobecker <brobecker@gnat.com>
3536
3537 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3538
376a5a49
JB
35392003-07-07 Joel Brobecker <brobecker@gnat.com>
3540
3541 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3542 sort_symtab_syms, no longer necessary.
3543
22b4a9ad
JB
35442003-07-07 Joel Brobecker <brobecker@gnat.com>
3545
3546 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3547
5bbcb741
JB
35482003-07-07 Joel Brobecker <brobecker@gnat.com>
3549
3550 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3551 (mips_register_byte): Likewise.
3552
c139e7d9
DJ
35532003-07-07 Daniel Jacobowitz <drow@mvista.com>
3554
3555 * Makefile.in (sparc_tdep_h): New.
3556 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3557 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3558 * sparc-linux-nat.c: Include "sparc-tdep.h".
3559 * sparc-nat.c: Likewise.
3560 * sparc-tdep.c: Likewise.
3561 * sparc64nbsd-nat.c: Likewise.
3562 * sparcnbsd-nat.c: Likewise.
3563 * sparcnbsd-tdep.c: Likewise.
3564 * sparc-tdep.h: New file.
3565 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3566 and sparc_npc_regnum.
3567
fd8f87c5
DJ
35682003-07-07 Daniel Jacobowitz <drow@mvista.com>
3569
3570 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3571 (mips_linux_cannot_store_register): List supported instead of
3572 unsupported registers.
3573
13adf674
DJ
35742003-07-07 Daniel Jacobowitz <drow@mvista.com>
3575
3576 * disasm.c (dump_insns): Separate instructions from addresses.
3577
8de307e0
AS
35782003-07-07 Andreas Schwab <schwab@suse.de>
3579
3580 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3581 dependencies.
3582 * m68k-tdep.c (NUM_FREGS): Delete.
3583 (SIG_PC_FP_OFFSET): Delete.
3584 (TARGET_M68K): Delete.
3585 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3586 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3587 P_MOVEL_SP, P_MOVEML_SP): Define.
3588 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3589 P_TRAP): Delete.
3590 (m68k_register_raw_size): Delete.
3591 (m68k_register_virtual_size): Delete.
3592 (m68k_register_type): Renamed from m68k_register_virtual_type and
3593 add gdbarch argument.
3594 (m68k_store_struct_return): Delete.
3595 (m68k_deprecated_extract_return_value): Delete.
3596 (m68k_deprecated_extract_struct_value_address): Delete.
3597 (m68k_frame_chain): Delete.
3598 (m68k_frame_saved_pc): Delete.
3599 (m68k_fix_call_dummy): Delete.
3600 (m68k_push_dummy_frame): Delete.
3601 (m68k_pop_frame): Delete.
3602 (m68k_extract_return_value): New function.
3603 (m68k_store_return_value): Rewrite using regcache.
3604 (m68k_extract_struct_value_address): Rewrite using regcache.
3605 (m68k_push_dummy_call): New function.
3606 (struct m68k_frame_cache): Define.
3607 (m68k_alloc_frame_cache): New function.
3608 (m68k_analyze_frame_setup): New function.
3609 (m68k_analyze_register_saves): New function.
3610 (m68k_analyze_prologue): New function.
3611 (m68k_skip_prologue): Rewrite using above functions.
3612 (m68k_unwind_pc): New function.
3613 (m68k_frame_cache): New function.
3614 (m68k_frame_this_id): New function.
3615 (m68k_frame_prev_register): New function.
3616 (m68k_frame_unwind): New variable.
3617 (m68k_frame_p): New function.
3618 (m68k_sigtramp_frame_cache): New function.
3619 (m68k_sigtramp_frame_this_id): New function.
3620 (m68k_sigtramp_frame_prev_register): New function.
3621 (m68k_sigtramp_frame_unwind): New variable.
3622 (m68k_sigtramp_frame_p): New function.
3623 (m68k_frame_base_address): New function.
3624 (m68k_frame_base): New function.
3625 (m68k_unwind_dummy_id): New function.
3626 (fill_gregset): Use regcache_collect.
3627 (fill_fpregset): Likewise.
3628 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3629 defined.
3630 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3631 deprecated_init_frame_pc, deprecated_store_struct_return,
3632 deprecated_extract_return_value, deprecated_store_return_value,
3633 deprecated_frame_chain, deprecated_frame_saved_pc,
3634 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3635 deprecated_register_virtual_size,
3636 deprecated_max_register_raw_size,
3637 deprecated_max_register_virtual_size,
3638 deprecated_register_virtual_type, deprecated_register_size,
3639 deprecated_register_byte, deprecated_register_bytes,
3640 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3641 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3642 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3643 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3644 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3645 deprecated_push_dummy_frame, deprecated_pop_frame,
3646 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3647 only if SYSCALL_TRAP is defined. Set extract_return_value,
3648 store_return_value, extract_struct_value_address, register_type,
3649 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3650 predicates.
3651 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3652 M68K_MAX_REGISTER_SIZE): Define.
3653 (struct m68k_sigtramp_info): Define.
3654 (struct gdbarch_tdep): Add get_sigtramp_info.
3655 * m68klinux-nat.c (fetch_register): Use register_size instead of
3656 REGISTER_RAW_SIZE. Don't put assignment in if.
3657 (store_register): Likewise.
3658 (fetch_inferior_registers): Likewise.
3659 (store_inferior_registers): Likewise.
3660 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3661 (m68k_linux_frame_saved_pc): Delete.
3662 (m68k_linux_sigcontext_reg_offset,
3663 m68k_linux_ucontext_reg_offset): Define.
3664 (m68k_linux_get_sigtramp_info): New function.
3665 (m68k_linux_extract_return_value): Rewrite using regcache.
3666 (m68k_linux_store_return_value): Likewise.
3667 (m68k_linux_extract_struct_value_address): Likewise.
3668 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3669 Don't set deprecated_frame_saved_pc,
3670 deprecated_extract_return_value, deprecated_store_return_value,
3671 deprecated_extract_struct_value_address. Set
3672 extract_return_value, store_return_value,
3673 extract_struct_value_address.
3674
eb8bc282
AC
36752003-07-07 Andrew Cagney <cagney@redhat.com>
3676
3677 * expprint.c: Include "user-regs.h" instead of "frame.h".
3678 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3679 frame_map_regnum_to_name.
3680 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3681 (frame_map_name_to_regnum): Simplify, call
3682 user_reg_map_name_to_regnum.
3683 (frame_map_regnum_to_name): Simplify, call
3684 user_reg_map_regnum_to_name.
3685 (frame_register_unwind): Update.
3686 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3687 (_initialize_frame_reg): Call user_reg_add_builtin.
3688 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3689 (value_of_register): Use value_of_user_reg.
3690 * eval.c (evaluate_subexp_standard): Update.
3691 * parse.c (write_dollar_variable): Update.
3692 * d10v-tdep.c (d10v_print_registers_info): Update.
3693 * infcmd.c (registers_info): Update.
3694 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3695 (builtin_regs_h): Delete macro.
3696 (user_regs_h): Define.
3697 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3698 (builtin-regs.o): Delete target.
3699 (user-regs.o): Specify dependencies.
3700 (expprint.o): Update dependencies.
3701 (findvar.o): Update dependencies.
3702 (frame.o): Update dependencies.
3703 (std-regs.o): Update dependencies.
3704
9f476a01
CF
37052003-07-06 Christopher Faylor <cgf@redhat.com>
3706
3707 * win32-nat.c (solib_symbols_add): Use one variable for all section
3708 address stuff. Pass variable rather than address of variable to
3709 safe_symbol_file_add.
3710
a731b831
AS
37112003-07-06 Andreas Schwab <schwab@suse.de>
3712
3713 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3714
9f83329d
JB
37152003-07-04 Joel Brobecker <brobecker@gnat.com>
3716
3717 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3718
27e28cc5
KW
37192003-07-04 Kris Warkentin <kewarken@qnx.com>
3720
3721 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3722
37232003-07-04 Kris Warkentin <kewarken@qnx.com>
3724
3725 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3726 * config/i386/nto.mh: New file.
3727 * config/i386/nm-nto.h: New file.
3728 * configure.host: Add i[3456]86-*-nto*.
3729
100f2e98
JB
37302003-07-03 Joel Brobecker <brobecker@gnat.com>
3731
3732 * remote-vx.c (vx_add_symbols): Fix compilation error.
3733
e23457df
AC
37342003-07-03 Andrew Cagney <cagney@redhat.com>
3735
3736 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3737 * gdbarch.h, gdbarch.c: Re-generate.
3738 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3739 (legacy_register_name): Declare.
3740 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3741 (REGISTER_NAME): Define.
3742 * sparc-tdep.c (legacy_register_name): New function.
3743 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3744 (REGISTER_NAME): Define.
3745 (hppa64_register_name): Declare.
3746 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3747 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3748 (hppa64_register_name): New function.
3749 (hppa_register_name): New function.
3750 * arch-utils.c (legacy_register_name): Delete.
3751 * arch-utils.h (legacy_register_name): Delete.
3752
38caaeec
DJ
37532003-07-03 Daniel Jacobowitz <drow@mvista.com>
3754
3755 * cli/cli-interp.c (cli_interpreter_resume): Update the
3756 cli_uiout's stream to gdb_stdout.
3757
dadd712e
AC
37582003-07-03 Andrew Cagney <cagney@redhat.com>
3759
3760 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3761 predicate.
3762 * gdbarch.h, gdbarch.c: Re-generate.
3763 * regcache.c (init_regcache_descr): Use legacy code when either
3764 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3765
c7f1390e
DJ
37662003-07-02 Daniel Jacobowitz <drow@mvista.com>
3767
3768 * NEWS: Move "set logging" entry into GDB 6.0 section.
3769
4bc8c588
JB
37702003-07-02 Jim Blandy <jimb@redhat.com>
3771
a9dd42f1
JB
3772 * s390-tdep.c (struct frame_extra_info): new member:
3773 'stack_bought_valid'.
3774 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3775 initialize fextra_info->stack_bought.
3776 (s390_frameless_function_invocation): Don't trust the value of
3777 fextra_info_ptr->stack_bought unless
3778 fextra_info->stack_bought_valid is set.
3779
4bc8c588
JB
3780 New S390 prologue analyzer.
3781 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3782 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3783 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3784 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3785 compute_x_addr, s390_on_stack, s390_store,
3786 s390_get_signal_frame_info): New functions.
3787 (S390_NUM_SPILL_SLOTS): New macro.
3788 (s390_get_frame_info): Rewritten.
3789 (is_arg_reg): Deleted.
3790
3791 Break out the decoding of S/390 instructions into separate
3792 functions, to make it more legible, and easier to check
3793 against the spec.
3794 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3795 is_rx, is_rxe): New functions.
3796 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3797 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3798 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3799 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3800 enums for opcode values. (Is this an improvement?)
3801
fd13a04a
AC
38022003-07-02 Andrew Cagney <cagney@redhat.com>
3803
3804 * i386-tdep.c: Revert change committed as part of trad-frame code
3805 below.
3806
3f8091c1
DJ
38072003-07-02 Daniel Jacobowitz <drow@mvista.com>
3808
3809 * breakpoint.c (insert_catchpoint): Make static.
3810
8dd5115e
AS
38112003-07-02 Andreas Schwab <schwab@suse.de>
3812
3813 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3814 former ia64_push_arguments and ia64_push_return_address, and use
3815 regcache functions instead of read/write_register.
3816 (ia64_gdbarch_init): Set push_dummy_call instead of
3817 deprecated_push_arguments and deprecated_push_return_address.
3818
a2229c23
AJ
38192003-07-01 Andreas Jaeger <aj@suse.de>
3820
3821 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3822 before the call.
3823 Set %rax only to number of SSE registers used.
3824
3b3850e8
AC
38252003-07-01 Andrew Cagney <cagney@redhat.com>
3826
3827 * trad-frame.h: Update comments, a -1 .addr is reserved.
3828 (trad_frame_value_p, trad_frame_addr_p): Declare.
3829 (trad_frame_reg_p): Declare.
3830 (trad_frame_set_value): Rename trad_frame_register_value.
3831 (trad_frame_set_unknown): Declare.
3832 * trad-frame.c (trad_frame_realreg_p): New function.
3833 (trad_frame_addr_p, trad_frame_value_p): New function.
3834 (trad_frame_set_unknown): New function.
3835 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3836 (trad_frame_prev_register): Use trad_frame_realreg_p,
3837 trad_frame_addr_p and trad_frame_value_p.
3838 (trad_frame_set_value): Rename trad_frame_register_value.
3839 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3840 and trad_frame_set_value.
a2229c23 3841
4d819d0e
JB
38422003-06-30 Jim Blandy <jimb@redhat.com>
3843
3844 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3845 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3846 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3847 for 16 registers, and then 32 more bytes.
3848 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3849 New macros.
3850 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3851 Move up in the file, since it's now used by is_simple_arg.
3852 (is_simple_arg): Don't assume registers are four bytes long.
3853 Exclude all double arguments. Extended floats are not simple
3854 args.
3855 (is_power_of_two): New function.
3856 (pass_by_copy_ref): Call is_power_of_two, and check that the
3857 length fits in a register, rather than listing all the acceptable
3858 sizes. Extended floats are not passed by reference.
3859 (s390_push_arguments): Don't assume registers are four bytes long.
3860 Reserve an argument register to point to the buffer for structures
3861 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3862 S390_STACK_FRAME_OVERHEAD.
3863
1ad828f1
AS
38642003-06-30 Andreas Schwab <schwab@suse.de>
3865
3866 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3867 format error message.
3868
39b00981
JB
38692003-06-30 Joel Brobecker <brobecker@gnat.com>
3870
3871 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3872
b2a7f303
DC
38732003-06-30 David Carlton <carlton@kealia.com>
3874
3875 Band-aid for PR c++/1245.
3876 * Makefile.in (cp-support.o): Depend on complaints_h.
3877 * cp-support.c: Include complaints.h. Add declaration for
3878 find_last_component.
3879 (cp_find_first_component): Separate code into
3880 cp_find_first_component_aux.
3881 (cp_find_first_component_aux): Call demangled_name_complaint.
3882 (demangled_name_complaint): New.
3883
a257b5bb
AC
38842003-06-30 Andrew Cagney <cagney@redhat.com>
3885
3886 * remote.c (remote_write_bytes): Explicitly compute and then use
3887 the payload size. Update comments to reflect. Fixes problem of
3888 GDB not sending small packets as found by Fred Fish.
3889
0a2cfde4
AC
38902003-06-30 Andrew Cagney <cagney@redhat.com>
3891
3892 * remote.c (remote_async_wait): Fix -Wformat problem.
3893
3fcb8548
AC
38942003-06-29 Andrew Cagney <cagney@redhat.com>
3895
3896 * remote.c (remote_wait): Call error, and not warning, when the
3897 packet is corrupt.
3898 (remote_async_wait): Ditto.
3899
9f9970a3
DJ
39002003-06-29 Daniel Jacobowitz <drow@mvista.com>
3901
3902 * sparc-tdep.c (sparc_y_regnum): Make external again.
3903
83a8ccca
DJ
39042003-06-29 Daniel Jacobowitz <drow@mvista.com>
3905
3906 * cli/cli-logging.c (pop_output_files): Add void to function
3907 definition.
3908
d2cf594a
AC
39092003-06-29 Andrew Cagney <cagney@redhat.com>
3910
3911 * frame.c (frame_register_unwind): Use unsigned char when dumping
3912 the buffer contents.
3913
0fac0b41
DJ
39142003-06-28 Daniel Jacobowitz <drow@mvista.com>
3915
3916 * cli/cli-logging.c: New file.
3917 * cli-out.c (struct ui_out_data): Add original_stream.
3918 (cli_redirect): New function.
3919 (cli_ui_out_impl): Add cli_redirect.
3920 (cli_out_new): Initialize original_stream.
3921 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3922 (uo_redirect, ui_out_redirect): New.
3923 * ui-out.h (struct ui_out_impl): Add redirect member.
3924 (redirect_ftype): New.
3925 (ui_out_redirect): Add prototype.
3926 * Makefile.in: Add rules for cli-logging.c.
3927 * NEWS: Mention "set logging".
3928
88a07d7c
EZ
39292003-06-27 Elena Zannoni <ezannoni@redhat.com>
3930
3931 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3932
4eb58876
AC
39332003-06-27 Andrew Cagney <cagney@redhat.com>
3934
3935 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3936 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3937 * avr-tdep.c (avr_call_dummy_address): Delete function.
3938 (avr_gdbarch_init): Do not set call_dummy_address.
3939
1549f619
EZ
39402003-06-27 Elena Zannoni <ezannoni@redhat.com>
3941
3942 * symfile.c (syms_from_objfile): Move variables to inner block.
3943 Move the checks for the non-mainline case a bit earlier to avoid
3944 doing some useless computations.
3945
3cb3398d
EZ
39462003-06-27 Elena Zannoni <ezannoni@redhat.com>
3947
3948 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3949
3799ccc6
EZ
39502003-06-26 Elena Zannoni <ezannoni@redhat.com>
3951
3952 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3953 sections.
3954
ce1f6491
MC
39552003-06-26 Michael Chastain <mec@shout.net>
3956
3957 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3958 gdb/testsuite/gdb.c++/pr-1210.exp.
3959
d958dfd0
AC
39602003-06-26 Andrew Cagney <cagney@redhat.com>
3961
3962 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3963 altivec_expression.h and altivec_registers.h.
3964
d31431ed
AC
39652003-06-26 Andrew Cagney <cagney@redhat.com>
3966
3967 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3968 info->mach when MIPS16. Patch suggested by Fred Fish.
3969
714b1282
AC
39702003-06-26 Andrew Cagney <cagney@redhat.com>
3971
3972 * utils.c (internal_vproblem): Print the problem to a reason
3973 buffer and then pass to query. Make the msg variable more local.
3974
42efa47a
AC
39752003-06-26 Andrew Cagney <cagney@redhat.com>
3976
3977 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3978 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3979 * gdbarch.h, gdbarch.c: Re-generate.
3980 * frame-base.c (default_frame_args_address): Update. Use
3981 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3982 not available.
3983 (default_frame_locals_address): Ditto for
3984 DEPRECATED_FRAME_LOCALS_ADDRESS.
3985 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3986 (vax_frame_num_args): Update.
3987 (vax_gdbarch_init): Update.
3988 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3989 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3990 * mcore-tdep.c (mcore_gdbarch_init): Update.
3991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3992 * ia64-tdep.c (ia64_gdbarch_init): Update.
3993 * symtab.h (address_class): Update comments.
3994 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3995 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3996 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3997 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3998 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3999 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4000 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4001 * alpha-mdebug-tdep.c: Update.
4002 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4003
8ffd9b1b
AJ
40042003-06-26 Andreas Jaeger <aj@suse.de>
4005
4006 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4007 of SSE registers so that varargs functions work. Rework handling
4008 of passing arguments on the stack.
4009 (x86_64_store_return_value): Return double and float values in SSE
4010 register.
4011
e8ac10a6
MC
40122003-06-24 Michael Chastain <mec@shout.net>
4013
4014 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4015 the "constructor breakpoints ignored" bug.
4016
986af8e6
DC
40172003-06-25 David Carlton <carlton@kealia.com>
4018
4019 * MAINTAINERS: Update e-mail address.
4020
d64558a5
JB
40212003-06-24 Jim Blandy <jimb@redhat.com>
4022
e538d2d7
JB
4023 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4024
02631ec0
JB
4025 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4026 function.
4027 (ppc_linux_init_abi): Register it as the
4028 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4029
e716d87a
JB
4030 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4031 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4032 method.
4033
d64558a5
JB
4034 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4035 (ppc64_standard_linkage_target): Use it.
4036
449a5da4
AC
40372003-06-23 Andrew Cagney <cagney@redhat.com>
4038
4039 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4040 for 0 "int0" and 4 "int32" sized registers.
4041 * gdbtypes.c (builtin_type_int0): Define.
4042 (build_gdbtypes): Initialize builtin_type_int0.
4043 * gdbtypes.h (builtin_type_int0): Declare.
4044
b2a02dda
SC
40452003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4046
4047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4048 as characters are unsigned.
4049
fba3138e
DJ
40502003-06-22 Daniel Jacobowitz <drow@mvista.com>
4051
4052 PR gdb/1179
4053 * dwarfread.c (struct_type): Skip static fields without crashing.
4054
f6c8180b
AC
40552003-06-22 Andrew Cagney <cagney@redhat.com>
4056
4057 GDB 6.0 branch created.
f2c06f52
AC
4058 * README: Update.
4059 * PROBLEMS: Update. Empty.
4060 * NEWS: Update.
f6c8180b 4061
ae822768
DJ
40622003-06-22 Daniel Jacobowitz <drow@mvista.com>
4063
4064 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4065 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4066
261de166
AC
40672003-06-22 Andrew Cagney <cagney@redhat.com>
4068
4069 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4070 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4071 Velikov.
4072
30e94205
DJ
40732003-06-22 Daniel Jacobowitz <drow@mvista.com>
4074
4075 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4076 compilers.
4077
9e14d721
DJ
40782003-06-21 Daniel Jacobowitz <drow@mvista.com>
4079
4080 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4081 argument of val_print.
4082 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4083 to the address argument of baseclass_offset or target_read_memory.
4084 Do add it to the argument of cp_print_value_fields.
4085
a4b8ebc8
AC
40862003-06-21 Andrew Cagney <cagney@redhat.com>
4087
4088 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4089 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4090 instead of 0..NUM_REGS.
4091 (mips_register_reggroup_p): New function.
4092 (mips_pseudo_register_write): New function.
4093 (mips_pseudo_register_read): New function.
4094 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4095 based on the register's type.
4096 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4097 cooked.
4098 (mips_get_saved_register): Simplify. Assert that REGNO is a
4099 pseudo / cooked.
4100 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4101 (mips_register_type): Replace mips_register_virtual_type. Map
4102 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4103 when available.
4104 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4105 that the register is cooked / virtual.
4106 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4107 Only get the extra info when needed.
4108 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4109 (mips32_heuristic_proc_desc): Fetch the cooked register.
4110 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4111 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4112 (mips_print_register): Use gdbarch_register_type, instead of
4113 REGISTER_VIRTUAL_TYPE.
4114 (print_gp_register_row): Use gdbarch_register_type, instead of
4115 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4116 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4117 Print the pseudo / cooked registers.
4118 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4119 Print the pseudo / cooked registers.
4120 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4121 REG_NUM is pseudo / cooked.
4122 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4123 (mips_n32n64_xfer_return_value): Ditto.
4124 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4125 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4126 (mips_register_sim_regno): New function.
4127 (mips_gdbarch_init): Set deprecated_register_byte,
4128 register_group_p, pseudo_register_write, pseudo_register_read,
4129 register_sim_regno, and num_pseudo_regs. Set register_type,
4130 instead of register_virtual_type.
4131 * Makefile.in (mips-tdep.o): Update dependencies.
4132 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4133 REGISTER_VIRTUAL_TYPE.
4134 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4135 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4136 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4137 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4138 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4139
325ed089
DJ
41402003-06-21 Daniel Jacobowitz <drow@mvista.com>
4141
4142 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4143 * cli/cli-cmds.c: Include "gdb_vfork.h".
4144 (shell_escape): Use vfork.
4145
f0e7d0e8
AC
41462003-06-21 Andrew Cagney <cagney@redhat.com>
4147
c57bb9fa
AC
4148 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4149 32 bit floating-point register saves.
4150
6e51443a
AC
4151 * frame.h (deprecated_unwind_get_saved_register): Delete.
4152 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4153 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4154 and deprecated_get_next_frame_hack instead of
4155 deprecated_unwind_get_saved_register.
4156
ed183c7c
AC
4157 * mips-tdep.c (mips_dump_tdep): Do not print
4158 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4159
f0e7d0e8
AC
4160 * frame.c (get_frame_register): New function.
4161 (frame_unwind_register_signed): New function.
4162 (get_frame_register_signed): New function.
4163 (frame_unwind_register_unsigned): New function.
4164 (get_frame_register_unsigned): New function.
4165 * frame.h: Add comments on naming schema.
4166 (get_frame_register, frame_unwind_register_signed): Declare.
4167 (get_frame_register_signed, get_frame_register_signed): Declare.
4168 (frame_unwind_register_unsigned): Declare.
4169 (get_frame_register_unsigned): Declare.
4170
2224d941
TR
41712003-06-20 Theodore A. Roth <troth@openavr.org>
4172
4173 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4174
8619218d
TR
41752003-06-20 Theodore A. Roth <troth@openavr.org>
4176
4177 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4178 (avr_read_sp): Ditto.
4179
0b1b50c0
DJ
41802003-06-20 Daniel Jacobowitz <drow@mvista.com>
4181
4182 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4183 * config/arm/nm-linux.h: Likewise.
4184 * config/arm/tm-linux.h: Likewise.
4185 * config/ia64/nm-linux.h: Likewise.
4186 * config/ia64/tm-ia64.h: Likewise.
4187 * config/s390/tm-linux.h: Likewise.
4188 * config/s390/tm-s390.h: Likewise.
4189 * s390-nat.c: Likewise.
4190 * s390-tdep.c: Likewise.
4191
4192 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4193 * config/ia64/linux.mt: Likewise.
4194 * config/m68k/linux.mh: Likewise.
4195 * config/mips/linux.mt: Likewise.
4196 * config/powerpc/linux.mh: Likewise.
4197 * config/sh/linux.mt: Likewise.
4198
c8c18e65
KW
41992003-06-19 Kris Warkentin <kewarken@qnx.com>
4200
4201 * solib.c (solib_open): Change tests for whether to search
4202 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4203 comments.
4204
dcccef2e
TR
42052003-06-19 Theodore A. Roth <troth@openavr.org>
4206
4207 * avr-tdep.c (avr_frame_address): Delete function.
4208 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4209 set_gdbarch_frame_args_address.
4210
5861a190
AC
42112003-06-19 Andrew Cagney <cagney@redhat.com>
4212
4213 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4214 (REGISTER_CONVERT_FROM_TYPE): Delete.
4215 (mips_register_convert_to_type): Delete declaration.
4216 (mips_register_convert_from_type): Delete declaration.
4217 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4218 kernel/.
4219
0274a8ce
MS
42202003-06-19 Michael Snyder <msnyder@redhat.com>
4221
4222 * linux-nat.h: New file.
4223 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4224 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4225 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4226 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4227 (linux_make_note_section): Iterate over lwps instead of threads.
4228 (linux_do_thread_registers): Use lwp instead of merged pid.
4229 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4230 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4231 Add dependency on linux_nat_h.
4232
adf5f719
TR
42332003-06-19 Theodore A. Roth <troth@openavr.org>
4234
4235 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4236
6766a268
DJ
42372003-06-19 Daniel Jacobowitz <drow@mvista.com>
4238
4239 * varobj.c (get_type, get_target_type): Use check_typedef.
4240
1171114a
DJ
42412003-06-19 Daniel Jacobowitz <drow@mvista.com>
4242
4243 * breakpoint.c (insert_catchpoint): Call internal_error.
4244
adcf68a2
TR
42452003-06-19 Theodore A. Roth <troth@openavr.org>
4246
4247 * avr-tdep.c (avr_push_dummy_code): Delete function.
4248 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4249
ea67f13b
DJ
42502003-06-19 Daniel Jacobowitz <drow@mvista.com>
4251
4252 * arch-utils.c (default_prepare_to_proceed): Remove.
4253 (generic_prepare_to_proceed): Remove.
4254 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4255 (generic_prepare_to_proceed): Remove prototype.
4256 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4257 * gdbarch.c: Regenerate.
4258 * gdbarch.h: Regenerate.
4259 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4260 * hppah-nat.c (hppa_switched_threads): Remove.
4261 * infrun.c (prepare_to_proceed): New static function, copied from
4262 generic_prepare_to_proceed. Remove select_it argument.
4263 (proceed): Call prepare_to_proceed.
4264 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4265 variables.
4266 (ptrace_wait): Don't set the removed variables.
4267 (hppa_switched_threads): Remove.
4268 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4269 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4270 (lin_lwp_prepare_to_proceed): Remove prototype.
4271 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4272 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4273
4add8633
TR
42742003-06-18 Theodore A. Roth <troth@openavr.org>
4275
4276 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4277 trad-frame.h.
4278 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4279 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4280 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4281 (AVR_PROLOGUE_*): Enumerate prologue types.
4282 (struct frame_extra_info): Remove.
4283 (struct avr_unwind_cache): Define.
4284 (avr_write_sp): Delete function.
4285 (avr_read_fp): Ditto.
4286 (avr_init_extra_frame_info): Ditto.
4287 (avr_pop_frame): Ditto.
4288 (avr_frame_saved_pc): Ditto.
4289 (avr_saved_pc_after_call): Ditto.
4290 (avr_push_return_address): Ditto.
4291 (avr_frame_chain): Ditto.
4292 (avr_store_struct_return): Ditto.
4293 (avr_push_arguments): Ditto.
4294 (avr_scan_prologue): Update comments. Changed to set up the info for
4295 cache unwinding. Now returns end of prologue PC.
4296 (avr_skip_prologue): Better handling of functions lacking a prologue
4297 by using avr_scan_prologue.
4298 (avr_scan_arg_moves): New function.
4299 (avr_saved_regs_unwinder): Ditto.
4300 (avr_frame_unwind_cache): Ditto.
4301 (avr_unwind_pc): Ditto.
4302 (avr_frame_this_id): Ditto.
4303 (avr_frame_prev_register): Ditto.
4304 (avr_frame_p): Ditto.
4305 (avr_frame_base_address ): Ditto.
4306 (avr_unwind_dummy_id): Ditto.
4307 (avr_push_dummy_code): Ditto.
4308 (push_stack_item): Ditto.
4309 (pop_stack_item): Ditto.
4310 (avr_push_dummy_call): Ditto.
4311 (struct stack_item): Define.
4312 (avr_frame_unwind): Declare structure.
4313 (avr_frame_base): Ditto.
4314 (avr_gdbarch_init): Remove calls to
4315 set_gdbarch_deprecated_init_frame_pc,
4316 set_gdbarch_deprecated_target_read_fp,
4317 set_gdbarch_deprecated_dummy_write_sp,
4318 set_gdbarch_deprecated_fp_regnum,
4319 set_gdbarch_deprecated_push_arguments,
4320 set_gdbarch_deprecated_push_return_address,
4321 set_gdbarch_deprecated_pop_frame,
4322 set_gdbarch_deprecated_store_struct_return,
4323 set_gdbarch_deprecated_frame_init_saved_regs,
4324 set_gdbarch_deprecated_init_extra_frame_info,
4325 set_gdbarch_deprecated_frame_chain,
4326 set_gdbarch_deprecated_frame_saved_pc,
4327 set_gdbarch_deprecated_saved_pc_after_call.
4328 Add calls to set_gdbarch_push_dummy_call,
4329 set_gdbarch_push_dummy_code,
4330 frame_unwind_append_predicate,
4331 frame_base_set_default,
4332 set_gdbarch_unwind_dummy_id,
4333 set_gdbarch_unwind_pc.
4334 Wrap a long line.
4335
7be04a68
MS
43362003-06-18 Corinna Vinschen <vinschen@redhat.com>
4337
4338 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4339 registers for H8/300S.
4340 (h8300_print_registers_info): Ditto.
8ffd9b1b 4341 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4342
ae087d01
DJ
43432003-06-18 Daniel Jacobowitz <drow@mvista.com>
4344
4345 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4346 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4347 (lin_lwp_wait): Likewise. Update comments.
4348 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4349 (pull_pid_from_list, linux_record_stopped_pid): New.
4350
07d8f827
SC
43512003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4352
4353 * ada-lang.c (scan_discrim_bound): Name first argument.
4354 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4355 declared by ALL_BLOCK_SYMBOLS.
4356
7cb47b14
SC
43572003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4358
4359 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4360 ("regcache.h"): Include it.
4361 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4362
6ad8ae5c
DJ
43632003-06-17 Daniel Jacobowitz <drow@mvista.com>
4364
4365 * NEWS: Mention gdbserver detach change and "disconnect" command.
4366 * infcmd.c (disconnect_command): New function.
4367 (_initialize_infcmd): Add ``disconnect'' command.
4368 * remote.c (remote_async_detach): Delete.
4369 (remote_detach): Merge remote_async_detach.
4370 (remote_disconnect): New.
4371 (init_remote_ops): Set to_disconnect.
4372 (init_remote_cisco_ops): Likewise.
4373 (init_remote_async_ops): Likewise. Use remote_detach.
4374 * target.c (cleanup_target): Default to_disconnect.
4375 (update_current_target): Inherit to_disconnect.
4376 (target_disconnect, debug_to_disconnect): New functions.
4377 (setup_target_debug): Set to_disconnect.
4378 * target.h (struct target_ops): Add to_disconnect.
4379 (target_disconnect): Add prototype.
4380
687595f9
DJ
43812003-06-17 Daniel Jacobowitz <drow@mvista.com>
4382
4383 * breakpoint.c (insert_catchpoint): New function.
4384 (insert_breakpoints): Use catch_exceptions to call
4385 insert_catchpoint. Disable catchpoints if they fail to insert.
4386
29239a8f
DJ
43872003-06-17 Daniel Jacobowitz <drow@mvista.com>
4388
4389 * symfile.c (reread_symbols): Clear sym_private.
4390
2cdf3c63
AC
43912003-06-17 Andrew Cagney <cagney@redhat.com>
4392
4393 * trad-frame.h (struct frame_info): Add opaque declaration.
4394 * remote-fileio.h (struct cmd_list_element): Add opaque
4395 declaration.
4396 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4397 comments.
4398
cf0e1e0d
DJ
43992003-06-17 Daniel Jacobowitz <drow@mvista.com>
4400
4401 * remote.c (remote_prepare_to_store): Replace call to
4402 deprecated_read_register_bytes with multiple regcache_raw_read
4403 calls.
4404
192cdb19
KW
44052003-06-17 Kris Warkentin <kewarken@qnx.com>
4406
4407 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4408 (nto_find_and_open_solib): Likewise.
4409 (nto_init_solib_absolute_prefix): Likewise.
4410 (_initialize_nto_tdep): Fix indentation.
4411
89929b45
KW
44122003-06-17 Kris Warkentin <kewarken@qnx.com>
4413
4414 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4415
46019f27
KW
44162003-06-17 Kris Warkentin <kewarken@qnx.com>
4417
4418 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4419
1a38736e
JB
44202003-06-17 Jim Blandy <jimb@redhat.com>
4421
4422 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4423
3605c34a
TR
44242003-06-16 Theodore A. Roth <troth@openavr.org>
4425
4426 * avr-tdep.c (avr_extract_return_value): New function.
4427 (avr_gdbarch_init): Set extract_return_value method.
4428
870b3035
AC
44292003-06-16 Andrew Cagney <cagney@redhat.com>
4430
4431 * frame.h (deprecated_get_next_frame_hack): Declare.
4432 * frame.c (legacy_saved_regs_prev_register): Only require
4433 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4434 there are always saved regs.
4435 (deprecated_generic_get_saved_register): Do not require
4436 DEPRECATED_FRAME_INIT_SAVED_REGS.
4437 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4438 use frame ID unwind instead.
4439 (deprecated_get_next_frame_hack): New function.
4440
63d47a7d
CV
44412003-06-16 Corinna Vinschen <vinschen@redhat.com>
4442
4443 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4444 (h8300_push_dummy_call): ...this function. Some minor optimization.
4445 (h8300_push_return_address): Remove.
4446 (h8300_gdbarch_init): Remove calls to
4447 set_gdbarch_deprecated_dummy_write_sp,
4448 set_gdbarch_deprecated_push_arguments and
4449 set_gdbarch_deprecated_push_return_address.
4450 Add call to set_gdbarch_push_dummy_call.
4451
4bb1dc5e
CV
44522003-06-16 Corinna Vinschen <vinschen@redhat.com>
4453
4454 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4455 (E_PSEUDO_EXR_REGNUM): Ditto.
4456 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4457 registers into safe registers.
4bb1dc5e
CV
4458 (h8300_skip_prologue): Check for stm instruction to push registers
4459 used for register variables onto stack.
4460 (gdb_print_insn_h8300): Remove.
4461 (h8300_examine_prologue): Add a comment.
4462 (h8300_register_name): Take pseudo registers into account.
4463 (h8300s_register_name): Ditto.
4464 (h8300sx_register_name): Ditto.
4465 (h8300_print_register): Ditto.
4466 (h8300_print_registers_info): Define "nice" printing order.
4467 (h8300_saved_pc_after_call): Take pseudo registers into account.
4468 (h8300_register_type): Ditto. Return type used for remote connection
4469 when requesting real CCR or EXR register, return actual type when
4470 requesting pseudo CCR or EXR.
4471 (h8300_pseudo_register_read): New function.
4472 (h8300_pseudo_register_write): Ditto.
4473 (h8300_dbg_reg_to_regnum): Ditto.
4474 (h8300s_dbg_reg_to_regnum): Ditto.
4475 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4476 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4477 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4478 set_gdbarch_print_insn architecture dependent.
4479 Call set_gdbarch_pseudo_register_read and
4480 set_gdbarch_pseudo_register_write.
4481 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4482
a59fe496
AC
44832003-06-16 Andrew Cagney <cagney@redhat.com>
4484
4485 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4486 * gdbarch.h, gdbarch.c: Re-generate.
4487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4488 * s390-tdep.c (s390_gdbarch_init): Update.
4489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4490 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4491 * mips-tdep.c (mips_gdbarch_init): Update.
4492 * mcore-tdep.c (mcore_gdbarch_init): Update.
4493 * cris-tdep.c (cris_gdbarch_init): Update.
4494 * infcall.c (call_function_by_hand): Update.
4495 * ia64-tdep.c (ia64_push_arguments): Update comment.
4496 * frame.c (legacy_get_prev_frame): Do not assume
4497 SAVE_DUMMY_FRAME_TOS_P.
4498 * dummy-frame.c (find_dummy_frame): Update comment.
4499
6f4e5a41
AC
45002003-06-16 Andrew Cagney <cagney@redhat.com>
4501
4502 * regcache.c (do_cooked_read): Do not use register_valid_p.
4503
72fab697
TR
45042003-06-15 Theodore A. Roth <troth@openavr.org>
4505
4506 * avr-tdep.c (avr_register_type): Remove a blank line.
4507 (avr_scan_prologue): Correct some comments.
4508
e3d8b004
TR
45092003-06-15 Theodore A. Roth <troth@openavr.org>
4510
4511 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4512 prologue types.
8ffd9b1b 4513 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4514 option.
4515 Add code to scan -mcall-prologues for mega devices.
4516
866b76ea
TR
45172003-06-15 Theodore A. Roth <troth@openavr.org>
4518
4519 * avr-tdep.c (avr_register_byte): Delete function.
4520 (avr_register_raw_size): Delete function.
4521 (avr_register_virtual_size): Delete function.
4522 (avr_register_virtual_type): Delete function.
4523 (avr_register_type): New function.
4524 (avr_address_to_pointer): Remove unused code.
4525 (avr_read_fp): Need to read FP as two separate bytes due to change to
4526 avr_register_type() usage.
4527 (avr_gdbarch_init): Don't set deprecated_register_size.
4528 Don't set deprecated_register_bytes.
4529 Don't set deprecated_register_byte.
4530 Don't set deprecated_register_raw_size.
4531 Don't set deprecated_max_register_raw_size.
4532 Don't set deprecated_register_virtual_size.
4533 Don't set deprecated_max_register_virtual_size.
4534 Don't set deprecated_register_virtual_type.
4535 Set register_type method.
4536
3993f6b1
DJ
45372003-06-15 Daniel Jacobowitz <drow@mvista.com>
4538
4539 * Makefile.in (linux-nat.o): Add rule.
4540 * linux-nat.c: New file.
4541 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4542 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4543 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4544 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4545 * config/arm/linux.mh (NATDEPFILES): Likewise.
4546 * config/i386/linux.mh (NATDEPFILES): Likewise.
4547 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4548 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4549 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4550 * config/mips/linux.mh (NATDEPFILES): Likewise.
4551 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4552 * config/s390/s390.mh (NATDEPFILES): Likewise.
4553 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4554
786a90bb
MK
45552003-06-15 Mark Kettenis <kettenis@gnu.org>
4556
4557 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4558 replace out-of-date comment.
4559
3bd3f01e
AC
45602003-06-15 Andrew Cagney <cagney@redhat.com>
4561
4562 * rdi-share/host.h (Fail): Change to a varargs function.
4563 * remote-rdi.c (Fail): Update.
8ffd9b1b 4564
de5b9bb9
MK
45652003-06-15 Mark Kettenis <kettenis@gnu.org>
4566
4567 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4568 (i386_convert_register_p, i386_register_to_value,
4569 i386_register_from_value): Handle types longer than 8 bytes.
4570
d532c08f
MK
45712003-06-15 Mark Kettenis <kettenis@gnu.org>
4572
4573 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4574 Move floating-point code to new function in i387-tdep.c.
4575 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4576 New functions containing code moved here from i386-tdep.c.
4577 * i387-tdep.h: Add opaque declaration for `struct type'.
4578 (i387_register_to_value, i387_value_to_register): New prototypes.
4579 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4580 (x86_64_init_abi): Set convert_register_p, register_to_value and
4581 value_to_register here.
8ffd9b1b 4582
42c466d7
AC
45832003-06-14 Andrew Cagney <cagney@redhat.com>
4584
4585 * mips-tdep.c (mips_register_to_value): Make static.
4586 (mips_value_to_register): Make static.
4587 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4588 * ia64-tdep.c (ia64_register_raw_size): Make static.
4589 (ia64_register_virtual_size): Make static.
4590 (ia64_register_byte): Make static.
4591 * i387-tdep.c: Include "i387-tdep.h".
4592 (print_387_control_word): Delete function.
4593 (print_387_status_word): Delete function.
4594 (print_387_status_bits): Delete function.
4595 (print_387_control_bits): Delete function.
4596 * Makefile.in (i387-tdep.o): Update dependencies.
4597 * rdi-share/host.h (Fail): Declare.
4598 * remote-rdi.c (Fail): Update to match declaration.
4599
2a9cda49
AC
46002003-06-14 Andrew Cagney <cagney@redhat.com>
4601
4602 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4603 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4604 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4605 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4606 * README: Delete reference to remote-array.
4607 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4608 (remote-array.o): Delete target.
4609 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4610 * remote-array.c: Delete file.
4611
ff2e87ac
AC
46122003-06-14 Andrew Cagney <cagney@redhat.com>
4613 Mark Kettenis <kettenis@gnu.org>
4614
4615 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4616 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4617 parameter with "frame".
4618 * gdbarch.h, gdbarch.c: Re-generate.
4619 * frame.h (put_frame_register): Declare.
4620 * frame.c (put_frame_register): New function.
4621 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4622 (legacy_register_to_value): Rewrite, use "frame" to get the
4623 register value.
4624 (legacy_value_to_register): Rewrite, use "frame" to find the
4625 register's location before storing.
4626 * arch-utils.h (legacy_convert_register_p): Update.
4627 (legacy_register_to_value, legacy_value_to_register): Update.
4628 * findvar.c (value_from_register): Rewrite, eliminate use of
4629 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4630 "frame" to REGISTER_TO_VALUE.
4631 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4632 lval_reg_frame_relative + lval_register branch of the switch. Do
4633 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4634 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4635 I386_EDI_REGNUM): New defines.
4636 (i386_next_regnum, i386_convert_register_p,
4637 i386_register_to_value, i386_value_to_register): New functions.
4638 (i386_register_convertible, i386_register_convert_to_virtual,
4639 i386_convert_to_raw): Remove functions.
4640 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4641 value_to_register instead of register_convertible,
4642 register_convert_to_virtual and register_convert_to_raw.
4643 * mips-tdep.c (mips_convert_register_p): New function.
4644 (mips_value_to_register): Replace mips_register_convert_from_type.
4645 (mips_register_to_value): Replace mips_register_convert_to_type.
4646 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4647 register_to_value.
4648 * alpha-tdep.c (alpha_convert_register_p): Update.
4649 (alpha_value_to_register): Update, store the register.
4650 (alpha_register_to_value): Update, fetch the register.
4651
98be1e77
TR
46522003-06-14 Theodore A. Roth <troth@openavr.org>
4653
4654 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4655 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4656 Don't set deprecated_call_dummy_words.
4657 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4658 Don't set remote_translate_xfer_address.
4659 (avr_io_reg_read_command): Remove commented out debug printf.
4660 Wrap a long line.
4661
57bc6122
TR
46622003-06-14 Theodore A. Roth <troth@openavr.org>
4663
4664 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4665 causes gdb to seg fault.
4666
eb01fc62
DJ
46672003-06-14 Daniel Jacobowitz <drow@mvista.com>
4668
4669 * sparc-nat.c (fetch_inferior_registers): Correct
4670 a reference to "registers".
4671
3b3e6bee
DJ
46722003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4673
4674 * Makefile.in (exc_request_U_h): Define
4675 (exc_request_S_h): Likewise.
4676 (msg_reply_S_h): Likewise.
4677 (msg_U_h): Likewise.
4678 (notify_S_h): Likewise.
4679 (process_reply_S_h): Likewise.
4680 (gnu-nat.o): Depend on gdb_obstack_h
4681 * gnu-nat.c: Include "gdb_obstack.h".
4682
b8de8283
AC
46832003-06-13 Andrew Cagney <cagney@redhat.com>
4684
4685 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4686 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4687
f3be58bc
AC
46882003-06-13 Andrew Cagney <cagney@redhat.com>
4689
4690 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4691 when deprecated REGISTER macros can be deleted.
4692 * gdbarch.h, gdbarch.c: Re-generate.
4693
4c0122c8
JB
46942003-06-13 Jim Blandy <jimb@redhat.com>
4695
4696 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4697 Linux entry point symbols for _dl_debug_state, too.
4698
3e210248
AC
46992003-06-13 Andrew Cagney <cagney@redhat.com>
4700
4701 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4702 available, do not use the FP register, and always save the TOS.
4703 * dummy-frame.c (dummy_frame_this_id): Do not assert
4704 SAVE_DUMMY_FRAME_TOS.
4705 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4706 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4707 (i386_push_dummy_call): Add 8 to the returned SP.
4708 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4709 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4710 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4711 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4712 (x86_64_push_dummy_call): Return "sp + 16".
4713 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4714 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4715 save_dummy_frame_tos.
4716
0b65af49
JB
47172003-06-13 Jim Blandy <jimb@redhat.com>
4718
4719 * frv-tdep.c (frv_use_struct_convention): Delete static
4720 declaration for function deleted in my change of 2003-06-12.
4721
4ea2465e
TR
47222003-06-13 Theodore A. Roth <troth@openavr.org>
4723
4724 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4725 (avr_pointer_to_address): Shift code addrs left 1 bit.
4726 (avr_convert_from_func_ptr_addr): Delete function since operation is
4727 better handled by avr_address_to_pointer and avr_pointer_to_address.
4728 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4729
1581182a
MK
47302003-06-13 Mark Kettenis <kettenis@gnu.org>
4731
4732 From Kelley Cook <kelleycook@wideopenwest.com>:
4733 * configure.host: Accept i[34567]86 variants.
4734 * configure.tgt: Likewise.
4735 * nlm/configure.in: Likewise.
4736 * nlm/configure: Regenerated.
4737
7aa1783e
RE
47382003-06-13 Richard Earnshaw <rearnsha@arm.com>
4739
4740 * arm-tdep.c (solib-svr4.h): Dont' include it.
4741 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4742 * arm-linux-tdep.c: ... here. Make static.
4743 (arm_linux_init_abi): Register it.
4744 (solib-svr4.h): Include it.
4745 * Makefile.in: Update dependencies.
4746 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4747 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4748
0261a0d0
CV
47492003-06-13 Corinna Vinschen <vinschen@redhat.com>
4750
4751 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4752 indicate registers used for return values.
4753 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4754 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4755 members.
4756 (h8300_init_extra_frame_info): Ditto.
4757 (h8300_frame_locals_address): Removed.
4758 (h8300_frame_args_address): Removed.
4759 (h8300_extract_return_value): Use new regcache structure. Only care
4760 for 16 bit CPUs.
4761 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4762 (h8300_store_return_value): Use new regcache structure. Only care
4763 for 16 bit CPUs.
4764 (h8300h_store_return_value): Same function for 32 bit CPUs.
4765 (h8300_store_struct_return): Removed.
4766 (h8300_extract_struct_value_address): Use new regcache structure.
4767 (h8300h_extract_struct_value_address): Removed.
4768 (h8300_push_dummy_code): New function.
4769 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4770 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4771 set_gdbarch_store_return_value architecture dependent.
4772 Call set_gdbarch_push_dummy_code and
4773 set_gdbarch_extract_struct_value_address.
4774 Remove calls to set_gdbarch_frame_args_address,
4775 set_gdbarch_frame_locals_address,
4776 set_gdbarch_deprecated_store_struct_return,
4777 set_gdbarch_deprecated_extract_return_value,
4778 set_gdbarch_deprecated_extract_struct_value_address,
4779 set_gdbarch_deprecated_call_dummy_words and
4780 set_gdbarch_deprecated_sizeof_call_dummy_words.
4781
055c394a
CV
47822003-06-13 Corinna Vinschen <vinschen@redhat.com>
4783
4784 * h8300-tdep.c (h8300_register_byte): Remove.
4785 (h8300h_register_byte): Remove.
4786 (h8300_register_virtual_type): Remove. Substitute by...
4787 (h8300_register_type): New function.
4788 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4789 (h8300h_extract_struct_value_address): Ditto.
4790 (h8300_gdbarch_init): Drop calls to
4791 set_gdbarch_deprecated_register_byte and
4792 set_gdbarch_deprecated_register_virtual_type.
4793 Add call to set_gdbarch_register_type.
4794
9c04cab7
AC
47952003-06-13 Andrew Cagney <cagney@redhat.com>
4796
4797 * gdbarch.sh: Update comments on registers.
4798 (deprecated_register_byte): Rename register_byte.
4799 (deprecated_register_raw_size): Rename register_raw_size.
4800 (deprecated_register_virtual_size): Rename register_virtual_size.
4801 (deprecated_register_virtual_type): Rename register_virtual_type.
4802 * gdbarch.h, gdbarch.c: Re-generate.
4803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4804 * vax-tdep.c (vax_gdbarch_init): Update.
4805 * v850-tdep.c (v850_gdbarch_init): Update.
4806 * sparc-tdep.c (sparc_gdbarch_init): Update.
4807 * sh-tdep.c (sh_gdbarch_init): Update.
4808 * s390-tdep.c (s390_gdbarch_init): Update.
4809 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4810 * ns32k-tdep.c: Update.
4811 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4812 * mips-tdep.c (mips_gdbarch_init): Update.
4813 * mcore-tdep.c (mcore_gdbarch_init): Update.
4814 * m68k-tdep.c (m68k_gdbarch_init): Update.
4815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4816 * ia64-tdep.c (ia64_gdbarch_init): Update.
4817 * hppa-tdep.c (hppa_gdbarch_init): Update.
4818 * h8300-tdep.c (h8300_gdbarch_init): Update.
4819 * frv-tdep.c (frv_gdbarch_init): Update.
4820 * cris-tdep.c (cris_gdbarch_init): Update.
4821 * avr-tdep.c (avr_gdbarch_init): Update.
4822 * alpha-tdep.c (alpha_gdbarch_init): Update.
4823 * arm-tdep.c (arm_gdbarch_init): Update.
4824
b060cbea
AC
48252003-06-13 Andrew Cagney <cagney@redhat.com>
4826
4827 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4828 mips_o32_use_struct_convention with always_use_struct_convention.
4829
0fc9922a
DC
48302003-06-12 David Carlton <carlton@kealia.com>
4831
4832 * cp-namespace.c (cp_set_block_scope): Comment out
4833 processing_has_namespace_info branch.
4834
1fd35568
JB
48352003-06-12 Jim Blandy <jimb@redhat.com>
4836
f470a70a
JB
4837 Recognize and skip 64-bit PowerPC Linux linkage functions.
4838 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4839 insn_pattern, insns_match_pattern, d_field, ds_field): New
4840 functions, macros, and types for working with PPC instructions.
4841 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4842 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4843 ppc64_skip_trampoline_code): New functions, variables, and macros
4844 for recognizing and skipping linkage functions.
4845 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4846 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4847
49ff75ad
JB
4848 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4849 register offsets for both the 32- and 64-bit interfaces.
4850
bd918c83
JB
4851 Actually finish the job started by my change of 2003-05-29.
4852 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4853 other #definition of this.
4854 (ppc_linux_skip_trampoline_code): Remove declaration.
4855 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4856 static.
4857 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4858 method for GDBARCH.
4859
4860 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4861 'long' on ppc64-*-linux*.
4862
f8c59253
JB
4863 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4864 isn't #defined, assume the register doesn't exist: act as if
4865 tdep->ppc_mq_regnum were -1.
4866
8fbb30b1
JB
4867 * configure.host, configure.tgt: Add entries for
4868 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4869 powerpc/linux.mt.
4870 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4871 New files.
4872
1fd35568
JB
4873 * arch-utils.c (always_use_struct_convention): New function.
4874 * arch-utils.h (always_use_struct_convention): New prototype.
4875 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4876 (alpha_gdbarch_init): Register always_use_struct_convention,
4877 instead of alpha_use_struct_convention.
4878 * cris-tdep.c (cris_use_struct_convention): Delete.
4879 (cris_gdbarch_init): Register always_use_struct_convention,
4880 instead of cris_use_struct_convention.
4881 * frv-tdep.c (frv_use_struct_convention): Delete.
4882 (frv_gdbarch_init): Register always_use_struct_convention,
4883 instead of frv_use_struct_convention.
4884 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4885 (h8300_gdbarch_init): Register always_use_struct_convention,
4886 instead of h8300_use_struct_convention.
e3305dd9 4887 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4888 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4889 instead of mips_o32_use_struct_convention.
4890
e14e6e9c
AC
48912003-06-12 Andrew Cagney <cagney@redhat.com>
4892
4893 * wince.c: Include "mips-tdep.h".
4894 * mips-tdep.h (mips_next_pc): Declare.
4895 * mcore-tdep.c: Make more local functions static.
4896 * Makefile.in (wince.o): Update dependencies.
4897
2335f48e
DC
48982003-06-12 David Carlton <carlton@kealia.com>
4899
4900 * symtab.c (lookup_symbol_aux_minsyms): Replace
4901 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4902 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4903 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4904 SYMBOL_NATURAL_NAME.
4905
f70a7d61
AS
49062003-06-12 Andreas Schwab <schwab@suse.de>
4907
4908 * Makefile.in (tuiDisassem.o): Update dependencies.
4909
b6429628
DC
49102003-06-12 David Carlton <carlton@bactrian.org>
4911
4912 * symtab.h: Delete declaration of make_symbol_overload_list.
4913 Add declaration of lookup_partial_symbol.
4914 * symtab.c (remove_params): Move to cp-support.c.
4915 (overload_list_add_symbol, make_symbol_overload_list)
4916 (sym_return_val_size, sym_return_val_index): Ditto.
4917 (lookup_partial_symbol): Make extern.
4918 * cp-support.h: Add declaration of make_symbol_overload_list.
4919 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4920 symtab.h, and block.h.
4921 (remove_params): Move here from symtab.c.
4922 (overload_list_add_symbol, make_symbol_overload_list)
4923 (sym_return_val_size, sym_return_val_index): Ditto.
4924 * valops.c: Include cp-support.h.
4925 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4926 frame_h, and block_h.
4927 (valops.o): Depend on cp_support_h.
4928
084edea5
CV
49292003-06-12 Corinna Vinschen <vinschen@redhat.com>
4930
4931 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4932 substitute by NUM_REGS throughout.
4933 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4934 (h8300s_register_name): New function for H8S registers.
4935 (h8300sx_register_name): Ditto for H8SX registers.
4936 (h8300_print_register): Revise register printing, avoid depending
4937 on 32 bit long.
0261a0d0 4938 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4939 (h8300h_register_byte): New function for any other architecture.
4940 (h8300_register_raw_size): Remove.
4941 (h8300_register_virtual_type): Revise to return actually useful
4942 type.
4943 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4944 (h8300h_extract_struct_value_address): New function for any other
4945 architecture.
4946 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4947 set_gdbarch_register_name, set_gdbarch_register_byte,
4948 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4949 Remove calls to set_gdbarch_deprecated_register_size,
4950 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4951 set_gdbarch_deprecated_max_register_raw_size,
4952 set_gdbarch_register_virtual_size and
4953 set_gdbarch_deprecated_max_register_virtual_size entirely.
4954 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4955 set_gdbarch_long_double_bit.
4956
06194148
JJ
49572003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4958
8ffd9b1b
AJ
4959 * doublest.c (convert_doublest_to_floatformat): When dealing
4960 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4961 processing a full 32 bits of mantissa.
4962
de4f826b
DC
49632003-06-11 David Carlton <carlton@bactrian.org>
4964
4965 * dictionary.h: New.
4966 * dictionary.c: New.
4967 * block.h: Add opaque declaration for struct dictionary.
4968 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4969 'sym' members.
4970 (BLOCK_DICT): New macro.
4971 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4972 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4973 BLOCK_SHOULD_SORT.
4974 (ALL_BLOCK_SYMBOLS): Update definition.
4975 * Makefile.in (SFILES): Add dictionary.c.
4976 (dictionary_h): New.
4977 (COMMON_OBS): Add dictionary.o.
4978 (dictionary.o): New.
4979 (ada-lang.o): Depend on dictionary_h.
4980 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4981 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4982 (mi-cmd-stack.o): Ditto.
4983 (gdbtk-cmds.o): Update dependencies.
4984 (gdbtk-stack.o): Ditto.
4985 * ada-lang.c: Include dictionary.h.
4986 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4987 (fill_in_ada_prototype, debug_print_block): Ditto.
4988 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4989 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4990 'is_sorted'.
4991 * mdebugread.c: Include dictionary.h.
4992 (struct parse_stack): Delete 'maxsyms' member.
4993 (parse_symbol): Update calls to new_block. Delete calls to
4994 shrink_block. Use dictionary methods.
4995 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4996 Update calls to new_symtab. Don't maintain maxsyms data.
4997 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4998 (add_symbol): Just call dict_add_symbol.
4999 (new_symtab): Delete 'maxsyms' argument.
5000 (new_symtab): Update calls to new_block.
5001 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5002 (shrink_block): Delete function.
5003 (fixup_sigtramp): Update call to new_block. Add symbol via
5004 dict_add_symbol.
5005 * jv-lang.c: Include dictionary.h.
5006 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5007 appropriately. Set class_symtab->free_func. Make sure the
5008 blockvector is big enough to hold two blocks.
5009 (add_class_symtab_symbol): Use dictionary methods.
5010 (free_class_block): New function.
5011 (type_from_class): Replace explicit iteration by
5012 ALL_BLOCK_SYMBOLS.
5013 * symtab.h (struct symtab): Replace 'free_ptr' method by
5014 'free_func'.
5015 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5016 sort_symtab_syms.
5017 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5018 sort_symtab_syms.
5019 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5020 Include dictionary.h.
5021 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5022 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5023 sort_symtab_syms.
5024 * objfiles.c: Include dictionary.h.
5025 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5026 * buildsym.c: Include dictionary.h.
5027 (finish_block): Use dictionary methods.
5028 (end_symtab): Set free_func to NULL, not free_ptr.
5029 * tracepoint.c: Include dictionary.h.
5030 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5031 (scope_info): Ditto.
5032 * stack.c: Include dictionary.h.
5033 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5034 (print_block_frame_labels, print_frame_arg_vars)
5035 (print_frame_args): Ditto.
5036 * symmisc.c (free_symtab_block): Use dictionary methods.
5037 (dump_symtab): Ditto.
5038 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5039 Include dictionary.h.
5040 * symfile.h: Delete declarations of sort_block_syms,
5041 sort_symtab_syms.
5042 * symfile.c (sort_block_syms): Delete.
5043 (sort_symtab_syms): Delete.
5044 * symtab.c: Include dictionary.h.
5045 (lookup_block_symbol): Use dictionary iterators.
5046 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5047 (search_symbols, make_symbol_completion_list): Ditto.
5048 (make_symbol_overload_list): Ditto.
5049 * valops.c (value_of_local): Use dict_empty.
5050 Include dictionary.h.
5051
a31f978c
JB
50522003-06-11 J. Brobecker <brobecker@gnat.com>
5053
5054 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5055
526e70c0
DC
50562003-06-11 David Carlton <carlton@bactrian.org>
5057
5058 * block.h (BLOCK_SHOULD_SORT): Delete.
5059 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5060 blocks.
5061 * ada-lang.c (ada_add_block_symbols): Ditto.
5062 * symfile.c (sort_block_syms): Delete.
5063 (sort_symtab_syms): Ditto.
5064 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5065 declarations.
5066 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5067 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5068 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5069 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5070 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5071 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5072 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5073
33c08150
JJ
50742003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5075
8ffd9b1b 5076 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5077 bits to 128.
5078
781a750d
AC
50792003-06-11 Andrew Cagney <cagney@redhat.com>
5080
5081 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5082 REGISTER_CONVERTIBLE.
5083 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5084 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5085 * gdbarch.h, gdbarch.c: Re-generate.
5086 * arch-utils.h (deprecated_register_convertible_not): Rename
5087 generic_register_convertible_not.
5088 * arch-utils.c (deprecated_register_convertible_not): Rename
5089 generic_register_convertible.
5090 (legacy_convert_register_p, legacy_register_to_value): Update.
5091 * sh-tdep.c (sh64_push_arguments): Update.
5092 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5093 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5094 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5095 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5096 * arch-utils.c (legacy_value_to_register): Update.
5097 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5098 (rs6000_register_convert_to_raw): Make parameter "from" const.
5099 * mips-tdep.c (mips_gdbarch_init): Update.
5100 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5101 * infcmd.c (default_print_registers_info): Update.
5102 * ia64-tdep.c (ia64_gdbarch_init): Update.
5103 (ia64_register_convert_to_raw): Make parameter "from" const.
5104 * i386-tdep.c (i386_gdbarch_init): Update.
5105 (i386_register_convert_to_raw): Update.
5106
cd90e54f
AC
51072003-06-11 Andrew Cagney <cagney@redhat.com>
5108
5109 * remote-fileio.c: Include "remote-fileio.h".
5110 * Makefile.in (remote-fileio.o): Update dependencies.
5111 (remote_fileio_h): Fix typo.
5112
a78f21af
AC
51132003-06-11 Andrew Cagney <cagney@redhat.com>
5114
5115 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5116 (xstormy16_save_dummy_frame_tos): Make static.
5117 (_initialize_xstormy16_tdep): Add declaration.
5118 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5119 * v850-tdep.c: Make local functions static.
5120 (_initialize_v850_tdep): Add declaration.
5121 * sparc-tdep.c: Make local functions static.
5122 (_initialize_sparc_tdep): Add declaration.
5123 * sh-tdep.c: Make local functions static.
5124 (_initialize_sh_tdep): Add declaration.
5125 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5126 * s390-tdep.c: Make local functions static.
5127 (_initialize_s390_tdep): Add declaration.
5128 * dbxread.c (find_stab_function_addr): Make static.
5129 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5130 * ocd.c (_initialize_remote_ocd): Add declaration.
5131 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5132 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5133 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5134 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5135 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5136 * remote-array.c (_initialize_array): Add declaration.
5137 (_initialize_remote_monitors): Add declaration.
5138 * remote-mips.c: Make local functions static.
5139 (_initialize_remote_mips): Add declaration.
5140 * mcore-tdep.c: Make all local functions static.
5141 (_initialize_mcore_tdep): Add declaration.
5142 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5143 * abug-rom.c (_initialize_abug_rom): Add declaration.
5144 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5145 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5146 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5147 * remote-est.c (_initialize_est): Add declaration.
5148 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5149 (m68hc11_call_dummy_address): Make static.
5150 * ia64-tdep.c: Make local functions static.
5151 (_initialize_ia64_tdep): Add declaration.
5152 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5153 * monitor.c (monitor_wait_filter): Make static.
5154 (_initialize_remote_monitors): Add declaration.
5155 * remote-hms.c (_initialize_remote_hms): Add declaration.
5156 * remote-e7000.c (fetch_regs_from_dump): Make static.
5157 (expect_n): Make static.
5158 (_initialize_remote_e7000): Add declaration.
5159 * ser-e7kpc.c: Always include "defs.h".
5160 (_initialize_ser_e7000pc): Add declaration.
5161 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5162 * cris-tdep.c: Make all but one function static.
5163 (_initialize_cris_tdep): Add declaration.
5164 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5165 * solib.c (update_solib_list): Make static.
5166 (_initialize_solib): Add declaration.
5167 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5168 (_initialize_avr_tdep): Add declaration.
5169 * remote-rdi.c (voiddummy): Make static.
5170 (_initialize_remote_rdi): Add declaration.
5171 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5172 * remote-rdp.c (send_rdp): Make static.
5173 (_initialize_remote_rdp): Add declaration.
5174 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5175
cbcdb1f5
CV
51762003-06-11 Corinna Vinschen <vinschen@redhat.com>
5177
5178 * remote-fileio.c: Make ari happy.
5179
a191ea8d
JB
51802003-06-10 J. Brobecker <brobecker@gnat.com>
5181
5182 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5183 fetching the trailing bytes of the buffer we are about to write.
5184
0ef75e11
AC
51852003-06-10 Andrew Cagney <cagney@redhat.com>
5186
5187 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5188 * Makefile.in (remote-fileio.o): Update dependencies.
5189 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5190 include <setjmp.h>, or <sys/types.h> conditional on USG.
5191 (remote_fio_jmp_buf): Delete global variable.
5192
449092f6 51932003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5194 Martin M. Hunt <hunt@redhat.com>
449092f6 5195
559fa028
AC
5196 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5197 (SFILES): Add remote-fileio.c.
5198 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5199 dependencies for building remote.o.
449092f6
CV
5200 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5201 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5202 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5203 static storage class.
5204 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5205 'F' packet.
5206 (_initialize_remote): Call initialize_remote_fileio().
5207 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5208 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5209 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5210 (captured_main): Initialize new ui_files.
5211 * ui-file.c: Add read and fgets input functions.
5212 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5213 (null_file_read): New function.
5214 (ui_file_read): New function.
5215 (set_ui_file_read): New function.
5216 (stdio_file_read): New function.
5217 * ui-file.h: New type ui_file_read_ftype.
5218 (set_ui_file_read): Declare.
5219 (ui_file_read): Declare.
5220
248de703
AC
52212003-06-09 Andrew Cagney <cagney@redhat.com>
5222
5223 * frame.h (deprecated_unwind_get_saved_register): Rename
5224 generic_unwind_get_saved_register, update comments.
5225 * mips-tdep.c (mips_get_saved_register): Update.
5226 * frame.c (deprecated_unwind_get_saved_register): Update.
5227
0ed8aa57
AC
52282003-06-09 Andrew Cagney <cagney@redhat.com>
5229
5230 * vax-tdep.c (vax_frame_locals_address): Delete function.
5231 (vax_gdbarch_init): Do not set frame_locals_address.
5232 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5233 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5234 * s390-tdep.c (s390_frame_args_address): Delete function.
5235 (s390_gdbarch_init): Do not set frame_args_address or
5236 frame_locals_address.
5237 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5238 (ns32k_gdbarch_init): Do not set frame_locals_address.
5239 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5240 (hppa_frame_locals_address): Delete function.
5241 (hppa_gdbarch_init): Do not set frame_args_address, or
5242 frame_locals_address.
5243 * arm-tdep.c (arm_frame_args_address): Delete.
5244 (arm_frame_locals_address): Delete.
5245 (arm_gdbarch_init): Do not set frame_args_address, or
5246 frame_locals_address.
5247
983a287a
AC
52482003-06-09 Andrew Cagney <cagney@redhat.com>
5249
5250 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5251 * gdbarch.h, gdbarch.c: Re-generate.
5252 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5253 * arch-utils.c (frame_num_args_unknown): Delete function.
5254 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5255 (frame_info): Use FRAME_NUM_ARGS_P.
5256 * arm-tdep.c (arm_frame_num_args): Delete function.
5257 (arm_gdbarch_init): Do not set frame_num_args.
5258 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5259 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5260 (hppa_gdbarch_init): Do not set frame_num_args.
5261 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5263 frame_num_args to default frame_num_args_unknown.
5264 * v850-tdep.c (v850_gdbarch_init): Ditto.
5265 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5266 * sh-tdep.c (sh_gdbarch_init): Ditto.
5267 * s390-tdep.c (s390_gdbarch_init): Ditto.
5268 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5269 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5270 * mips-tdep.c (mips_gdbarch_init): Ditto.
5271 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5272 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5274 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5275 * i386-tdep.c (i386_gdbarch_init): Ditto.
5276 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5277 * frv-tdep.c (frv_gdbarch_init): Ditto.
5278 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5279 * cris-tdep.c (cris_gdbarch_init): Ditto.
5280 * avr-tdep.c (avr_gdbarch_init): Ditto.
5281 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5282
8d3b0994
AC
52832003-06-09 Andrew Cagney <cagney@redhat.com>
5284
5285 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5286 (print_frame_args): Moved to "stack.c".
5287 * stack.c: Include "gdb_assert.h".
5288 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5289 (print_frame_args): Moved from "printcmd.c".
5290 * frame.h (print_frame_args): Delete declaration.
5291 * Makefile.in (stack.o): Update dependencies.
5292
25e3a86b
AC
52932003-06-08 Andrew Cagney <cagney@redhat.com>
5294
5295 * frame.c (get_prev_frame): Remove reference to
5296 frame_args_address_correct in comments.
5297 * frame-base.c (default_frame_args_address): Delete code
5298 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5299 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5300 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5301 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5302 (vax_frame_args_address_correct): Delete declaration.
5303
a9e5fdc2
AC
53042003-06-08 Andrew Cagney <cagney@redhat.com>
5305
5306 * gdbarch.sh (UNWIND_SP): Add.
5307 * gdbarch.h, gdbarch.c: Re-generate.
5308 * frame.c (frame_sp_unwind): New function.
5309 (get_frame_sp): New function.
5310 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5311 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5312 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5313 value.
5314 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5315 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5316
8983bd83
AC
53172003-06-08 Andrew Cagney <cagney@redhat.com>
5318
7fec2c59
AC
5319 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5320 REMOTE_BREAKPOINT.
5321 * remote.c: Update.
5322 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5323 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5324 * config/m68k/tm-sun3.h: Update.
5325 * config/m68k/tm-m68klynx.h: Update.
5326 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5327
8983bd83
AC
5328 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5329 trad_frame". Update comments.
5330 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5331 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5332 (trad_frame_register_value, trad_frame_prev_register): Update.
5333
b9362cc7
AC
53342003-06-08 Andrew Cagney <cagney@redhat.com>
5335
5336 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5337 from GCC's acinclude.m4.
5338 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5339 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5340 * main.c (error_init): Delete declaration.
5341 * defs.h (error_init): Declare.
5342 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5343 (rs6000_convert_from_func_ptr_addr): Make static.
5344 (_initialize_rs6000_tdep): Add declaration.
5345 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5346 (show_commands, set_verbose, show_history): Delete declaration.
5347 * top.h (set_verbose): Add declaration.
5348 (show_history, set_history, show_commands): Add declaration.
5349 (do_restore_instream_cleanup): Add declaration.
5350 * objc-lang.c (specialcmp): Make static.
5351 (print_object_command): Make static.
5352 (find_objc_msgsend): Make static.
5353 (find_objc_msgcall_submethod_helper): Make static.
5354 (find_objc_msgcall_submethod): Make static.
5355 (_initialize_objc_language): Add declaration.
5356 (find_implementation_from_class): Make static.
5357 (find_implementation): Make static.
5358 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5359 * objc-lang.h (lookup_struct_typedef): Add declaration.
5360 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5361 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5362 (do_restore_user_call_depth): Make static.
5363 (do_restore_instream_cleanup): Delete declaration.
5364 (dont_repeat): Delete declaration.
5365 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5366 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5367 * reggroups.c (_initialize_reggroup): Add declaration.
5368 * cp-support.c (_initialize_cp_support): Add declaration.
5369 * cp-abi.c (_initialize_cp_abi): Add declaration.
5370 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5371 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5372 (_initialize_gnu_v3_abi): Add declaration.
5373 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5374 (_initialize_gnu_v2_abi): Add declaration.
5375 * frame-base.c (_initialize_frame_base): Add declaration.
5376 * doublest.c (floatformat_from_length): Make static.
5377 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5378 * frame.c (create_sentinel_frame): Make static.
5379 (_initialize_frame): Add declaration.
5380 * top.c (do_catch_errors): Make static.
5381 (gdb_rl_operate_and_get_next_completion): Make static.
5382 * typeprint.c: Include "typeprint.h".
5383 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5384 (sentinel_frame_this_id): Make static.
5385 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5386 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5387 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5388 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5389 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5390 * maint.c (maintenance_print_architecture): Make static.
5391 * signals/signals.c (_initialize_signals): Add declaration.
5392 * std-regs.c (_initialize_frame_reg): Add declaration.
5393 * jv-exp.y (push_variable): ISO C definition.
5394 (push_qualified_expression_name): Ditto.
5395 * memattr.c (_initialize_mem): Add declaration.
5396 * remote.c (remote_check_watch_resources): Make static.
5397 (remote_stopped_by_watchpoint): Make static.
5398 (remote_stopped_data_address): Make static.
5399 * d10v-tdep.c (nr_dmap_regs): Make static.
5400 (a0_regnum): Make static.
5401 (d10v_frame_unwind_cache): Make static.
5402 (d10v_frame_p): Make static.
5403 * osabi.c (show_osabi): Make static.
5404 (_initialize_gdb_osabi): Add extern declaration.
5405 * gdbtypes.c (make_qualified_type): Make static.
5406 (safe_parse_type): Make static.
5407 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5408 * macrotab.c (macro_bcache_free): Make static.
5409 * interps.c (interp_set_quiet): Make static.
5410 (interpreter_exec_cmd): Make static.
5411 * stack.h (select_frame_command): New file.
5412 * stack.c: Include "stack.h".
5413 (select_frame_command_wrapper): Delete function.
5414 (select_frame_command): Make global.
5415 * infcall.c: Include "infcall.h".
5416 * linespec.c: Include "linespec.h".
5417 * symfile.c (sections_overlap): Make static.
5418 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5419 * charset.c (_initialize_charset): Add missing prototype.
5420 * regcache.c (init_legacy_regcache_descr): Make static.
5421 (do_regcache_xfree): Make static.
5422 (regcache_xfer_part): Make static.
5423 (_initialize_regcache): Add missing prototype.
5424 * breakpoint.c (parse_breakpoint_sals): Make static.
5425 (breakpoint_sals_to_pc): Make static.
5426 * interps.h (clear_interpreter_hooks): ISO C declaration.
5427 * Makefile.in (stack_h): Define.
5428 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5429 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5430
a0f267c7
AC
54312003-06-08 Andrew Cagney <cagney@redhat.com>
5432
5433 * Makefile.in (d10v-tdep.o): Update dependencies.
5434 (SFILES): Add trad-frame.c.
5435 (trad_frame_h): Define.
5436 (COMMON_OBS): Add trad-frame.o.
5437 (trad-frame.o): Specify dependencies.
5438 * d10v-tdep.c: Include "trad-frame.h".
5439 (saved_regs_unwinder): Delete function.
5440 (d10v_frame_prev_register): Use trad_frame_prev_register.
5441 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5442 trad_frame", delete "regs" and "prev_sp".
5443 (prologue_find_regs): Use trad-frame.
5444 * trad-frame.h, trad-frame.c: New files.
5445
4538b4f4
MK
54462003-06-08 Mark Kettenis <kettenis@gnu.org>
5447
5448 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5449
a0273b2f
AF
54502003-06-07 Adam Fedor <fedor@gnu.org>
5451
5452 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5453 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5454 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5455 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5456 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5457 Use it.
5458
3a6c3343
AC
54592003-06-07 Andrew Cagney <cagney@redhat.com>
5460
5461 * symfile.h: Re-indent, clean up comments.
5462
b46e02f6
AC
54632003-06-07 Andrew Cagney <cagney@redhat.com>
5464
5465 * inferior.h (deprecated_write_sp): Replace
5466 generic_target_write_sp.
5467 * regcache.c (deprecated_write_sp): Replace
5468 generic_target_write_sp.
5469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5470 * vax-tdep.c (vax_gdbarch_init): Update.
5471 * v850-tdep.c (v850_gdbarch_init): Update.
5472 * sparc-tdep.c (sparc_gdbarch_init): Update.
5473 * sh-tdep.c (sh_gdbarch_init): Update.
5474 * s390-tdep.c (s390_gdbarch_init): Update.
5475 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5476 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5477 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5478 * mcore-tdep.c (mcore_gdbarch_init): Update.
5479 * m68k-tdep.c (m68k_gdbarch_init): Update.
5480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5481 * ia64-tdep.c (ia64_gdbarch_init): Update.
5482 * h8300-tdep.c (h8300_gdbarch_init): Update.
5483 * frv-tdep.c (frv_gdbarch_init): Update.
5484 * cris-tdep.c (cris_gdbarch_init): Update.
5485 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5486
a42e117c
AC
54872003-06-07 Andrew Cagney <cagney@redhat.com>
5488
5489 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5490 Assert that PC_REGNUM is valid.
5491 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5492
bd1ce8ba
AC
54932003-06-07 Andrew Cagney <cagney@redhat.com>
5494
5495 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5496 * gdbarch.h, gdbarch.c: Regenerate.
5497 * mn10300-tdep.c: Include "gdb_assert.h".
5498 (mn10300_read_fp): New function.
5499 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5500 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5501 * ia64-tdep.c: Include "gdb_assert.h".
5502 (ia64_read_fp): New function.
5503 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5504 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5505 * regcache.c (generic_target_read_sp): Delete function.
5506 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5507 * inferior.h (generic_target_read_sp): Delete declaration.
5508 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5509 generic_target_read_sp.
5510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5511 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5512 * sh-tdep.c (sh_gdbarch_init): Ditto.
5513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5514 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5515
ec5cbaec
AC
55162003-06-07 Andrew Cagney <cagney@redhat.com>
5517
5518 * gdbarch.sh: Comment each field of startup_gdbarch.
5519 * gdbarch.h, gdbarch.c: Re-generate.
5520
cde9ea48
AC
55212003-06-07 Andrew Cagney <cagney@redhat.com>
5522
5523 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5524 * gdbarch.h, gdbarch.c: Re-generate.
5525 * regcache.c: Update comments on read_pc et.al.
5526 (generic_target_read_pc): Delete function.
5527 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5528 * inferior.h (generic_target_read_pc): Delete declaration.
5529 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5530 generic_target_read_pc.
5531 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5532 * sh-tdep.c (sh_gdbarch_init): Ditto.
5533 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5535
9a90a780
AC
55362003-06-07 Andrew Cagney <cagney@redhat.com>
5537
5538 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5539 "index" with "special_local_sect". Use strcmp instead of STREQ.
5540 Append period to coments.
5541
a39a16c4
MM
55422003-06-06 Mark Mitchell <mark@codesourcery.com>
5543
5544 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5545 (elfstab_offset_sections): Likewise.
5546 * gdb-stabs.h (stab_section_info): Likewise.
5547 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5548 * objfiles.c (objfile_relocate): Likewise.
5549 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5550 * remote.c (get_offsets): Likewise.
5551 (remote_cisco_objfile_relocate): Likewise.
5552 * somread.c (som_symfile_offsets): Likewise.
5553 * symfile.c (alloc_section_addr_info): New function.
5554 (build_section_addr_info_from_section_tab): Use it.
5555 (free_section_addr_info): Adjust.
5556 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5557 (syms_from_objfile): Allocate local_addr dynamically.
5558 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5559 dynamically.
5560 (add_symbol_file_command): Allocate sect_opts dynamically.
5561 (reread_symbols): Avoid use of SECT_OFF_MAX.
5562 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5563 (alloc_section_addr_info): Declare it.
5564 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5565 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5566 dynamically.
5567 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5568
20c6c2f8
AC
55692003-06-06 Andrew Cagney <cagney@redhat.com>
5570
5571 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5572 (d10v_frame_unwind_cache): Do not set "return_pc".
5573
884a26c8
MS
55742003-06-06 Michael Snyder <msnyder@redhat.com>
5575
5576 * h8300-tdep.c: Make tidy (long lines).
5577
088ce440
ML
55782003-06-06 Michal Ludvig <mludvig@suse.cz>
5579
8ffd9b1b 5580 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5581 to regcache_collect().
5582
7d773d96
JB
55832003-06-05 J. Brobecker <brobecker@gnat.com>
5584
5585 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5586 pc_in_sigtramp multiarch method.
5587 (hppa_hpux_som_init_abi): Use it.
5588 (hppa_hpux_elf_init_abi): Likewise.
5589 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5590 macro has been multiarched.
5591 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5592 macro here, as hppa64 isn't multiarched yet.
5593
1df6926e
AC
55942003-06-05 Andrew Cagney <cagney@redhat.com>
5595
5596 * Makefile.in (value_h): Add $(frame_h).
5597 * value.h: Include "frame.h".
5598 (struct value): Replace "frame_addr" with "frame_id".
5599 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5600 * values.c (allocate_value): Use VALUE_FRAME_ID.
5601 (value_copy): Use VALUE_FRAME_ID.
5602 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5603 * valops.c (value_assign): Update. Use frame_find_by_id.
5604
6b53acc6
ML
56052003-06-05 Michal Ludvig <mludvig@suse.cz>
5606
5607 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5608 in each pass.
5609
4d9850d3
JJ
56102003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5611
5612 * thread-db.c (check_event): For create/death event breakpoints,
5613 loop through all messages to ensure that we read the message
5614 corresponding to the breakpoint we are at.
5615
8efca6ba
MS
56162003-06-04 Michael Snyder <msnyder@redhat.com>
5617
5618 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5619
0912c7f2
MK
56202003-06-04 Mark Kettenis <kettenis@gnu.org>
5621
5622 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5623 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5624 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5625 when handling .eh_frame sections.
5626
4e370325
JB
56272003-06-04 J. Brobecker <brobecker@gnat.com>
5628
5629 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5630 prepare_to_proceed procedure instead of the hppa-specific one.
5631 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5632
b757528f 56332003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5634
b757528f
JJ
5635 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5636 * config.in: Regenerated.
5637 * configure.in: Add test for syscall function and check for
5638 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5639 * configure: Regenerated.
5640 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5641 <sys/syscall.h>.
5642 (kill_lwp): New function that uses tkill syscall or
5643 uses kill, depending on whether threading model is nptl or not.
5644 All callers of kill() changed to use kill_lwp().
5645 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5646 see if all threads have already exited in the nptl model.
5647 (stop_and_resume_callback): New callback function used by the
5648 lin_lwp_wait thread exit handling code.
5649 (stop_wait_callback): Check for threads already having exited and
5650 delete such threads fromt the lwp list when discovered.
5651 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5652
b757528f
JJ
5653 Roland McGrath <roland@redhat.com>
5654 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5655 nptl libthread_db.
5656
087779b1
RH
56572003-06-03 Richard Henderson <rth@redhat.com>
5658
b21fd293
RH
5659 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5660 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5661 (alpha_sigtramp_frame_prev_register): Likewise.
5662 (alpha_heuristic_frame_prev_register): Likewise.
5663 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5664
8ffd9b1b 5665 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5666 alpha-specific register id names.
5667 (alpha_mdebug_frame_unwind_cache): Likewise.
5668 (alpha_mdebug_frame_prev_register): Likewise.
5669
baa490c4
RH
56702003-06-03 Richard Henderson <rth@redhat.com>
5671
5672 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5673 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5674 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5675 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5676 unwind routines.
5677 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5678 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5679 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5680
5681 * alpha-linux-tdep.c: Remove unnecessary includes.
5682 * Makefile.in (alpha-linux-tdep.o): Update.
5683
56842003-06-03 Richard Henderson <rth@redhat.com>
5685
5686 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5687 (alphabsd_fill_fpreg): Likewise.
5688
f534e522
JB
56892003-06-03 J. Brobecker <brobecker@gnat.com>
5690
5691 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5692 references to struct frame_info fields by calls to the equivalent
5693 accessors. Necessary now that frame_info is opaque.
5694
4035536b
JB
56952003-06-03 J. Brobecker <brobecker@gnat.com>
5696
5697 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5698 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5699 structure, field no longer exists.
5700
0bd79c5c
JB
57012003-06-03 J. Brobecker <brobecker@gnat.com>
5702
5703 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5704 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5705
37bb6d9f
JB
57062003-06-03 J. Brobecker <brobecker@gnat.com>
5707
5708 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5709 references to struct frame_info fields by calls to the equivalent
5710 accessors. Necessary now that frame_info is opaque.
5711
852ee05c
JB
57122003-06-03 J. Brobecker <brobecker@gnat.com>
5713
5714 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5715 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5716 structure, field no longer exists.
5717
7d58c67d
TR
57182003-06-03 Theodore A. Roth <troth@openavr.org>
5719
8ffd9b1b 5720 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5721 accumulation of the size of all registers instead of blindly using
5722 DEPRECATED_REGISTER_BYTES.
5723
0a48e7e8
MS
57242003-06-03 Michael Snyder <msnyder@redhat.com>
5725
5726 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5727 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5728 for h8300sx.
5729
9798ab0d
JB
57302003-06-03 J. Brobecker <brobecker@gnat.com>
5731
5732 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5733 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5734
00b037e2
AC
57352003-06-03 Andrew Cagney <cagney@redhat.com>
5736
5737 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5738 (sparc_convert_to_raw): Delete function.
5739 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5740 register_convert_to_virtual.
5741
043b2f77
JJ
57422003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5743
5744 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5745 layer if not dealing with a statically-linked threaded program.
5746
f43caff8
KW
57472003-06-03 Kris Warkentin <kewarken@qnx.com>
5748
5749 * solib.c (solib_open): Update comment to reflect actual search order.
5750
ae1e7417
AC
57512003-06-03 Andrew Cagney <cagney@redhat.com>
5752
5753 * frame.c (get_frame_memory_signed): New function.
5754 (get_frame_memory, get_frame_memory_unsigned): New function.
5755 (get_frame_arch): New function.
5756 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5757 (get_frame_memory, get_frame_unsigned_memory): Declare.
5758 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5759 get_frame_memory_unsigned and get_frame_arch.
5760 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5761
cb123844
RG
57622003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5763
5764 * MAINTAINERS (write after approval): Add myself.
5765
1bb792e9
JB
57662003-06-03 Jim Blandy <jimb@redhat.com>
5767
5768 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5769 elements of gregset_t are 64 bits each, but access registers
5770 are still 32 bits, so they're packed two per gregset_t
5771 element. Unpack/pack them properly.
5772
aee8d8ba
DC
57732003-06-02 David Carlton <carlton@bactrian.org>
5774
5775 * linespec.c (find_methods): Break out code into
5776 add_matching_methods and add_constructors.
5777 (add_matching_methods): New.
5778 (add_constructors): Ditto.
5779
bf7488d2
AC
57802003-06-02 Andrew Cagney <cagney@redhat.com>
5781
bf7488d2
AC
5782 * sparc-tdep.c (sparc_print_registers): Delete call to
5783 REGISTER_CONVERTIBLE.
5784 (sparc_gdbarch_init): Do not set register_convertible.
5785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5786 * frv-tdep.c (frv_gdbarch_init): Ditto.
5787 * cris-tdep.c (cris_gdbarch_init): Ditto.
5788
adedef68
EZ
57892003-06-02 Elena Zannoni <ezannoni@redhat.com>
5790
8ffd9b1b 5791 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5792 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5793 (syms_from_objfile): Ditto.
5794
650fcc91
AS
57952003-06-03 Andreas Schwab <schwab@suse.de>
5796
5797 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5798 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5799
df4a182b
RH
58002003-06-02 Richard Henderson <rth@redhat.com>
5801
5802 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5803 a member of all_reggroup.
5804
c483c494
RH
58052003-06-02 Richard Henderson <rth@redhat.com>
5806
5807 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5808 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5809 (alpha_lds, alpha_sts): New.
5810 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5811 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5812 restructure and fail for type sizes other than 4 or 8.
5813 (alpha_value_to_register): Similarly.
5814 (alpha_extract_return_value): Use alpha_sts.
5815 (alpha_store_return_value): Use alpha_lds.
5816 (alpha_gdbarch_init): Update hooks.
5817
b38b6be2
RH
58182003-06-02 Richard Henderson <rth@redhat.com>
5819
5820 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5821 regnum identifiers.
5822 (alpha_sigtramp_register_address): Likewise.
5823
98a8e1e5
RH
58242003-06-02 Richard Henderson <rth@redhat.com>
5825
5826 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5827 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5828 * alpha-tdep.h: Declare them.
5829
5830 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5831 Remove zerobuf. Don't error on UNIQUE.
5832 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5833 (ALPHA_REGSET_UNIQUE): Provide default.
5834 (supply_gregset): Use alpha_supply_int_regs.
5835 (fill_gregset): Use alpha_fill_int_regs.
5836 (supply_fpregset): Use alpha_supply_fp_regs.
5837 (fill_fpregset): Use alpha_fill_fp_regs.
5838 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5839 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5840 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5841 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5842 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5843 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5844
67dfac52
RH
58452003-06-02 Richard Henderson <rth@redhat.com>
5846
f75d70cc
RH
5847 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5848
67dfac52
RH
5849 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5850 (alpha_store_return_value): Likewise.
5851
0cf566ec
DC
58522003-06-02 David Carlton <carlton@math.stanford.edu>
5853
5854 * block.c (contained_in): Add 'const' to arguments.
5855 (block_function): Ditto.
5856 * block.h: Update declarations for block_function and
5857 contained_in.
5858
cdef89d0
DC
58592003-06-02 David Carlton <carlton@math.stanford.edu>
5860
5861 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5862 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5863 * p-valprint.c (pascal_val_print): Ditto.
5864 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5865
72667056
RH
58662003-06-02 Richard Henderson <rth@redhat.com>
5867
98a8e1e5
RH
5868 * alpha-tdep.c (alpha_push_dummy_call): Use
5869 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5870
8ffd9b1b 5871 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5872 sign-extension of 32-bit values.
5873 (alpha_store_return_value): Similarly.
0ede8eca 5874
98a8e1e5
RH
5875 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5876 (alpha_extract_return_value): Likewise.
5877 (alpha_store_return_value): Likewise.
7b5e1cb3 5878
98a8e1e5
RH
5879 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5880 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5881
98a8e1e5
RH
5882 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5883 (alpha_extract_struct_value_address): Likewise.
5884 (alpha_store_return_value): Likewise.
5885 (alpha_store_struct_return): Remove.
5886 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5887
98a8e1e5
RH
5888 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5889 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5890 macros where appropriate.
5891 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5892 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5893
98a8e1e5
RH
5894 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5895 for SP, GP; void_func_ptr for PC; non-language-specific types
5896 for all others.
5897 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5898
6dd77b81
RH
58992003-06-02 Richard Henderson <rth@redhat.com>
5900
5901 * top.h (lim_at_start): Declare.
5902 * main.c (captured_main): Set it.
5903 * top.c (lim_at_start): Define.
5904 (command_loop): Use it instead of &environ.
5905 * event-top.c (command_handler): Likewise.
5906
f4dbdb54
JT
59072003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5908
5909 * mipsnbsd-tdep.c: Update copyright years.
5910 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5911
8f285956
RH
59122003-06-01 Richard Henderson <rth@redhat.com>
5913
98a8e1e5
RH
5914 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5915 (alpha-linux-tdep.o): Update dependencies.
5916 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5917 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5918
615967cb
RH
59192003-06-01 Richard Henderson <rth@redhat.com>
5920
98a8e1e5
RH
5921 * alpha-tdep.c (alpha_register_reggroup_p): New.
5922 (alpha_gdbarch_init): Register it.
615967cb 5923
b59661bd
AC
59242003-06-02 Andrew Cagney <cagney@redhat.com>
5925
5926 * dwarfread.c: Eliminate "register"
5927 (decode_die_type): Eliminate assignment within "if".
5928 (struct_type, decode_array_element_type): Ditto.
5929 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5930 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5931 (decode_modified_type, completedieinfo): Ditto.
5932 * block.c: Eliminate "register".
5933 (blockvector_for_pc_sect): Eliminate assignment within "if".
5934 * cp-support.h (struct symbol): Opaque declaration.
5935 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5936
5ef165c2
RH
59372003-06-01 Richard Henderson <rth@redhat.com>
5938
98a8e1e5
RH
5939 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5940 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5941
143985b7
AF
59422003-06-01 Adam Fedor <fedor@gnu.org>
5943
5944 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5945 * gdbarch.[ch]: Regenerate.
5946 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5947 (hppa_gdbarch_init): Set it in the gdbarch vector.
5948 * i386-tdep.c (i386_fetch_pointer_argument): New
5949 (i386_gdbarch_init): Set it into gdbarch.
5950 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5951 (rs6000_gdbarch_init): Set it in gdbarch.
5952 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5953 (sparc_gdbarch_init): Set it in gdbarch.
5954
ae0167b9
AC
59552003-06-01 Andrew Cagney <cagney@redhat.com>
5956
7c0b4a20
AC
5957 * defs.h (extract_address): Delete declaration.
5958 * findvar.c (extract_address): Delete function.
5959 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5960 extract_address with the inline equivalent,
5961 extract_unsigned_integer.
5962 (xstormy16_extract_struct_value_address): Ditto.
5963 (xstormy16_pointer_to_address): Ditto.
5964 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5965 * v850-tdep.c (v850_push_arguments): Ditto.
5966 (v850_extract_return_value): Ditto.
5967 (v850_extract_struct_value_address): Ditto.
5968 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5969 (sparcnbsd_get_longjmp_target_64): Ditto.
5970 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5971 (get_longjmp_target): Ditto.
5972 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5973 (sh64_extract_struct_value_address): Ditto.
5974 (sh_push_arguments): Ditto.
5975 (sh64_push_arguments): Ditto.
5976 * remote-vxsparc.c (vx_read_register): Ditto.
5977 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5978 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5979 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5980 * mipsv4-nat.c (get_longjmp_target): Ditto.
5981 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5982 * mips-nat.c (get_longjmp_target): Ditto.
5983 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5984 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5985 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5986 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5987 * irix5-nat.c (get_longjmp_target): Ditto.
5988 * irix4-nat.c (get_longjmp_target): Ditto.
5989 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5990 (ia64_push_arguments): Ditto.
5991 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5992 * h8300-tdep.c (h8300_push_arguments): Ditto.
5993 (h8300_store_return_value): Ditto.
5994 (h8300_extract_struct_value_address): Ditto.
5995 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5996 (frv_push_arguments): Ditto.
5997 * avr-tdep.c (avr_pointer_to_address): Ditto.
5998 (avr_push_arguments): Ditto.
5999 * arm-tdep.c (arm_push_dummy_call): Ditto.
6000 (arm_get_longjmp_target): Ditto.
6001 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6002 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6003 (alpha_get_longjmp_target): Ditto.
6004
ae0167b9
AC
6005 * solib-irix.c (extract_mips_address): Inline extract_address,
6006 replacing it with extract_signed_integer.
6007 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6008 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6009 (first_link_map_member, open_symbol_file_object): Ditto.
6010 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6011 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6012 (LM_NEXT, LM_NAME): Ditto.
6013
44d88583
RH
60142003-06-01 Richard Henderson <rth@redhat.com>
6015
98a8e1e5
RH
6016 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6017 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6018 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6019 (alpha_cannot_store_register): Likewise.
6020 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6021 * alpha-nat.c (supply_gregset): Likewise.
6022 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6023
310e9b6a
AC
60242003-06-01 Andrew Cagney <cagney@redhat.com>
6025
6026 * infcall.c (call_function_by_hand): Update comment on
6027 DEPRECATED_DUMMY_WRITE_SP.
6028
6029 * mips-tdep.c (mips_gdbarch_init): Do not set
6030 deprecated_dummy_write_sp.
6031 (mips_eabi_push_dummy_call): Set the SP register.
6032 (mips_o64_push_dummy_call): Set the SP register.
6033 (mips_o32_push_dummy_call): Set the SP register.
6034 (mips_n32n64_push_dummy_call): Set the SP register.
6035
5ab84872
RH
60362003-06-01 Richard Henderson <rth@redhat.com>
6037
98a8e1e5
RH
6038 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6039 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6040 (supply_gregset): Likewise.
6041 * alpha-tdep.c (alpha_store_return_value): Likewise.
6042 (alpha_get_longjmp_target): Likewise.
6043 (alpha_register_name): Constify array.
6044 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6045 deprecated_register_size, deprecated_register_bytes,
6046 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6047 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6048 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6049
09cc52fd
RH
60502003-06-01 Richard Henderson <rth@redhat.com>
6051
6052 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6053 from arg_reg_buffer to regcache to avoid double conversion.
6054
c7f16359
MK
60552003-06-01 Mark Kettenis <kettenis@gnu.org>
6056
6057 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6058 SP_REGNUM.
6059 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6060 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6061
7131cb6e
RH
60622003-06-01 Richard Henderson <rth@redhat.com>
6063
98a8e1e5
RH
6064 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6065 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6066
f3e0f90b
RH
60672003-06-01 Richard Henderson <rth@redhat.com>
6068
98a8e1e5
RH
6069 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6070 not overlapping PC_REGNUM.
f3e0f90b 6071
c88e30c0
RH
60722003-06-01 Richard Henderson <rth@redhat.com>
6073
98a8e1e5
RH
6074 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6075 alpha_push_arguments. Don't dump argument register data to
6076 the target stack. Fix float and 128-bit long double semantics.
6077 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6078 (alpha_fix_call_dummy): Remove.
6079 (alpha_call_dummy_words): Remove.
6080 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6081
f1a559ae
RH
60822003-06-01 Richard Henderson <rth@redhat.com>
6083
6084 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6085
5e045346
AC
60862003-06-01 Andrew Cagney <cagney@redhat.com>
6087
95404a3e
AC
6088 * mips-tdep.c (is_mips16_addr): New function.
6089 (make_mips16_addr, unmake_mips16_addr): New functions.
6090 (pc_is_mips16, mips_fetch_instruction): Use.
6091 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6092 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6093 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6094 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6095 TARGET_MIPS.
6096 * config/mips/tm-mips.h: Update copyright.
6097 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6098 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6099 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6100 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6101 (TM_PRINT_INSN_MACH): Delete.
6102 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6103
5e045346
AC
6104 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6105 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6106 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6107 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6108 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6109 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6110 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6111 mips*-*-riscos* and mips*-*-sysv* onto mips.
6112 * config/mips/mips64.mt: New file.
6113 * config/mips/mips.mt: New file.
6114 * config/mips/littlemips.mt: Delete file.
6115 * config/mips/decstation.mt: Delete file.
6116 * config/mips/vr4300el.mt: Delete file.
6117 * config/mips/vr5000el.mt: Delete file.
6118 * config/mips/vr5000.mt: Delete file.
6119 * config/mips/vr4100.mt: Delete file.
6120 * config/mips/vr4xxxel.mt: Delete file.
6121 * config/mips/vr4300.mt: Delete file.
6122 * config/mips/vr4xxx.mt: Delete file.
6123 * config/mips/bigmips.mt: Delete file.
6124 * config/mips/bigmips64.mt: Delete file.
6125 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6126 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6127 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6128 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6129 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6130 "tm-bigmips.h".
6131 * config/mips/tm-irix3.h: Ditto.
6132 * config/mips/tm-mipsv4.h: Ditto.
6133 * config/mips/tm-embed.h: Ditto.
6134 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6135 "tm-bigmips64.h".
6136 * config/mips/tm-vr5000el.h: Delete file.
6137 * config/mips/tm-tx39l.h: Delete file.
6138 * config/mips/tm-vr4300el.h: Delete file.
6139 * config/mips/tm-vr4xxxel.h: Delete file.
6140 * config/mips/tm-vr4300.h: Delete file.
6141 * config/mips/tm-vr4100.h: Delete file.
6142 * config/mips/tm-vr4xxx.h: Delete file.
6143 * config/mips/tm-vr5000.h: Delete file.
6144 * config/mips/tm-embedl64.h: Delete file.
6145 * config/mips/tm-embedl.h: Delete file.
6146 * config/mips/tm-embed64.h: Delete file.
6147 * config/mips/tm-bigmips64.h: Delete file.
6148 * config/mips/tm-bigmips.h: Delete file.
6149
2473a4a9
MK
61502003-06-01 Mark Kettenis <kettenis@gnu.org>
6151
97a5b208
MK
6152 Fix gdb/1216.
6153 * shnbsd-nat.c: Include "sh-tdep.h".
6154
2473a4a9
MK
6155 From Richard Henderson <rth@redhat.com>:
6156 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6157
e0f7ec59
AC
61582003-05-31 Andrew Cagney <cagney@redhat.com>
6159
6160 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6161 forward declaration.
6162 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6163 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6164 (mips_find_saved_regs): Use set_reg_offset.
6165 (mips_frame_init_saved_regs): Delete function.
6166 (mips_pop_frame): Call mips_find_saved_regs instead of
6167 DEPRECATED_FRAME_INIT_SAVED_REGS.
6168
68dcc709
AC
61692003-05-31 Andrew Cagney <cagney@redhat.com>
6170
6171 * mips-tdep.c (mips_gdbarch_init): Do not set
6172 deprecated_max_register_raw_size, register_virtual_size, and
6173 deprecated_max_register_virtual_size.
6174
cfc14b3a
MK
61752003-05-31 Mark Kettenis <kettenis@gnu.org>
6176
6405b0a6
MK
6177 * i386-tdep.c: Include "dwarf2-frame.h".
6178 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6179 * Makefile.in (i386-tdep.o): Update dependencies.
6180
cfc14b3a
MK
6181 * dwarf2-frame.c, dwarf2-frame.h: New files.
6182 * Makefile.in (SFILES): Add dwarf2-frame.c.
6183 (dwarf2_frame_h): Define.
6184 (COMMON_OBS): Add dwarf2-frame.o.
6185 (dwarf2-frame.o): Add dependencies.
6186
6a2751d2
AJ
61872003-05-31 Andreas Jaeger <aj@suse.de>
6188
6189 * x86-64-linux-nat.c: Fix comment.
6190
1c3545ae
MK
61912003-05-31 Mark Kettenis <kettenis@gnu.org>
6192
10f93086
MK
6193 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6194 function signature.
6195
1c3545ae
MK
6196 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6197 have a sigcontext_addr handler.
6198 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6199 sigcontext_addr handler.
6200
e11c53d2
AC
62012003-05-31 Andrew Cagney <cagney@redhat.com>
6202
6203 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6204 (print_fp_register_row): Replace do_fp_register_row.
6205 (mips_print_fp_register): Add "file" and "frame" parameters.
6206 (mips_print_register): Add "file" and "frame" parameters.
6207 (mips_print_registers_info): Replace mips_do_registers_info.
6208 (mips_gdbarch_init): Set print_registers_info instead of
6209 deprecated_do_registers_info.
6210 (mips_read_fp_register_single): Add "frame" parameter.
6211 (mips_read_fp_register_double): Add "frame" parameter.
6212
a3386186
MK
62132003-05-31 Mark Kettenis <kettenis@gnu.org>
6214
70913449
MK
6215 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6216 Fixes a bug where GDB would print the wrong register names for
6217 targets without SSE.
6218
2b5e0749
MK
6219 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6220 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6221 registers.
6222
6223 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6224 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6225 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6226 TDEP->sc_sp_offset.
6227
a3386186
MK
6228 From Michal Ludvig <mludvig@suse.cz>:
6229 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6230 and `sc_num_regs'.
6231 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6232 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6233 I386_ST0_REGNUM): Move here from...
6234 * i386-tdep.c: ... here.
6235 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6236 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6237 registers if possible.
6238 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6239 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6240 Remove variables.
6241 (i386bsd_sc_reg_offset): New variable.
6242 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6243 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6244 TDEP->sc_sp_offset.
6245 (i386fbsd_sc_reg_offset): New variable.
6246 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6247 TDEP->sc_num_regs.
6248 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6249 variables.
6250 (i386fbsd4_sc_reg_offset): New variable.
6251 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6252 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6253 TDEP->sc_sp_offset.
6254 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6255 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6256 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6257 Remove variables.
6258 (i386nbsd_sc_reg_offset): New variable.
6259 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6260 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6261 TDEP->sc_sp_offset.
6262 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6263 Remove variables.
6264 (i386obsd_sc_reg_offset): New variable.
6265 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6266 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6267 TDEP->sc_sp_offset.
6268 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6269 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6270 for frame pointer offset in `struct sigcontext'.
6271
25ab4790
AC
62722003-05-31 Andrew Cagney <cagney@redhat.com>
6273
6274 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6275 architecture methods call_dummy_words, sizeof_call_dummy_words,
6276 push_return_address, store_struct_return, and fix_call_dummy. Set
6277 push_dummy_call instead of deprecated_push_arguments.
6278 (mips_store_struct_return): Delete function.
6279 (mips_fix_call_dummy): Delete function.
6280 (mips_push_return_address): Delete function.
6281 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6282 RA_REGNUM and T9_REGNUM.
6283 (mips_n32n64_push_dummy_call): Ditto for
6284 mips_n32n64_push_arguments.
6285 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6286 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6287
6a65450a
AC
62882003-05-31 Andrew Cagney <cagney@redhat.com>
6289
6290 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6291 "dummy_addr" to "bp_addr".
6292 * infcall.c (call_function_by_hand): Pass "funaddr" to
6293 gdbarch_push_dummy_call.
6294 * gdbarch.h, gdbarch.c: Re-generate.
6295 * i386-tdep.c (i386_push_dummy_call): Update.
6296 * arm-tdep.c (arm_push_dummy_call): Update.
6297 * d10v-tdep.c (d10v_push_dummy_call): Update.
6298
c4f35dd8
MK
62992003-05-31 Mark Kettenis <kettenis@gnu.org>
6300
6301 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6302 variable declarations.
6303 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6304 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6305 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6306 x86_64_init_frame_pc, x86_64_init_frame_pc,
6307 x86_64_function_has_prologue): Remove prototypes.
6308 (X86_64_NUM_GREGS): New define.
6309 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6310 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6311 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6312 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6313 XMM1_REGNUM): Remove defines.
6314 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6315 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6316 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6317 X86_64_XMM1_REGNUM): New defines.
6318 (struct x86_64_register_info): Renamed from `struct
6319 register_info'. Remove `size' member.
6320 (x86_64_register_info_table): Remove variable.
6321 (x86_64_register_info): New variable.
6322 (X86_64_NUM_REGS): New define.
6323 (X86_64_NUM_GREGS): Remove define.
6324 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6325 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6326 Remove variables.
6327 (x86_54_dwarf2_reg_to_regnum): Remove function.
6328 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6329 (x86_64_dwarf_reg_to_regnum): New function.
6330 (x86_64_register_name): Rewrite.
6331 (x86_64_register_raw_size): Remove function.
6332 (x86_64_register_byte_table): Remove variable.
6333 (x86_64_register_byte): Remove function.
6334 (x86_64_register_virtual_type): Remove function.
6335 (x86_64_register_type): New function.
6336 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6337 x86_64_register_convert_to_raw): Remove functions.
6338 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6339 (x86_64_use_struct_convention): Make static. Adjust for renamed
6340 defines.
6341 (x86_64_frame_init_saved_regs): Remove function.
6342 (x86_64_push_arguments): Make static. Change to accept a regcache
6343 as argument.
6344 (x86_64_store_return_value, x86_64_extract_return_value): Make
6345 static. Rewrite based on i386 counterparts.
6346 (x86_64_push_dummy_call): New function.
6347 (X86_64_NUM_SAVED_REGS): New define.
6348 (x86_64_register_number): Remove function.
6349 (x86_64_store_struct_return): Remove function.
6350 (x86_64_frameless_function_invocation,
6351 x86_64_function_has_prologue): Remove functions.
6352 (PROLOG_BUFSIZE): Remove define.
6353 (struct x86_64_frame_cache): New structure.
6354 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6355 x86_64_frame_cache, x86_64_frame_this_id,
6356 x86_64_frame_prev_register, x86_64_frame_p,
6357 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6358 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6359 functions.
6360 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6361 variables.
6362 (x86_64_skip_prologue): Rewrite in terms of
6363 x86_64_analyze_prologue.
6364 (x86_64_frame_base_address): New function.
6365 (x86_64_frame_base): New variable.
6366 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6367 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6368 set deprecated_fp_regnum, deprecated_register_size,
6369 deprecated_register_bytes, register_raw_size, register_byte,
6370 register_virtual_type, register_convertiable,
6371 register_convert_to_virtual, convert_to_raw,
6372 deprecated_get_saved_register, deprecated_target_read_fp,
6373 deprecated_push_arguments, deprecated_push_return_address,
6374 deprecated_pop_frame, deprecated_store_struct_return,
6375 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6376 frameless_function_invocation, deprecated_frame_saved_pc,
6377 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6378 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6379 deprecated_init_frame_pc and virtual_frame_pointer. Call
6380 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6381 and x86_64_frame_p. Call frame_base_set_default to register
6382 x86_64_frame_base.
6383 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6384 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6385 (_initialize_x86_64_tdep): Remove function.
6386 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6387 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6388 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6389 define.
6390 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6391 (x86_64_linux_sigcontext_addr): Rewrite.
6392 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6393 x86_64_linux_frame_saved_pc): Remove functions.
6394 (x86_64_linux_pc_in_sigtramp): Renamed from
6395 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6396 trampoline.
6397 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6398 Remove_functions.
6399 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6400 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6401 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6402 (x86_64_regmap): Rename to regmap.
6403 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6404 x86_64_num_gregs.
6405 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6406 x86_64_regmap.
6407 (x86_64_fxsave_offset): Remove function.
6408 (supply_fpregset): Simply call x86_64_supply_fxsave.
6409 (fill_fpregset): Simply call x86_64_fill_fxsave.
6410 (fetch_inferior_registers, store_inferior_registers): Avoid
6411 asignment in if-statement.
6412 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6413 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6414 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6415 (fetch_core_registers): Remove function.
6416 (linux_elf_core_fns): Remove.
6417 (offsetoff): Don't define.
6418 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6419 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6420 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6421 add core-regset.o.
6422 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6423 protection against multiple includes instead of NM_X86_64_h. Add
6424 various comments. Include "config/nm-linux.h". Don't include
6425 <signal.h>.
6426 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6427 GET_THREAD_SIGNALS): Remove defines.
6428 (x86_64_register_u_addr, kernel_u_size,
6429 lin_thread_get_thread_signals): Remove prototypes.
6430 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6431 [HAVE_LINK_H]: Don't include "solib.h".
6432 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6433 * config/i386/tm-x86-64linux.h: Fix comments.
6434 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6435 x86-64-tdep.o): Update dependencies.
6436
c25083af
AC
64372003-05-30 Andrew Cagney <cagney@redhat.com>
6438
c8f55a7b
AC
6439 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6440 Change parameter type to a "struct regcache *".
6441
c25083af
AC
6442 * gdbarch.sh: Regardless of the multi-arch level, always define
6443 the macro when not already defined.
6444 * gdbarch.h, gdbarch.c: Re-generate.
6445
fbe586ae
RH
64462003-05-30 Richard Henderson <rth@redhat.com>
6447
6448 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6449 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6450 (alpha_mdebug_frame_this_id): Likewise.
6451 (alpha_mdebug_frame_prev_register): Likewise.
6452 (alpha_mdebug_frame_base_address): Likewise.
6453 (alpha_mdebug_frame_locals_address): Likewise.
6454 (alpha_mdebug_frame_args_address): Likewise.
6455 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6456 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6457 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6458 loop increment.
6459 (alpha_heuristic_frame_this_id): Make static.
6460 (alpha_heuristic_frame_prev_register): Likewise.
6461 (alpha_heuristic_frame_base_address): Likewise.
6462 * alpha-tdep.h: Update.
6463
acd5c798
MK
64642003-05-30 Mark Kettenis <kettenis@gnu.org>
6465
6466 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6467 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6468 defenitions.
6469 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6470 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6471 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6472 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6473 I386_ST0_REGNUM): New defines.
6474 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6475 codestream_get): Remove define.
6476 (codestream_next_addr, condestream_addr, condestream_buf,
6477 codestream_off, codestream_cnt): Remove variables.
6478 (codestream_fill, codestream_seek, codestream_read): Remove
6479 functions.
6480 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6481 functionality.
6482 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6483 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6484 i386_frame_saved_pc, i386_saved_pc_after_call,
6485 i386_frame_num_args, i386_frame_init_saved_regs,
6486 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6487 i386_push_arguments): Remove functions.
6488 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6489 functionality. Use i386_analyze_prologue instead of
6490 i386_get_frame_setup.
6491 (I386_NUM_SAVED_REGS): New define.
6492 (struct i386_frame_cache): New structure.
6493 (i386_alloc_frame_cache, i386_analyze_struct_return,
6494 i386_skip_probe, i386_analyze_frame_setup,
6495 i386_analyze_register_saves, i386_analyze_prologue,
6496 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6497 i386_frame_prev_register, i386_sigtramp_frame_cache,
6498 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6499 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6500 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6501 New functions.
6502 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6503 New variables.
6504 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6505 I386_EAX_REGNUM and I386_EDX_REGNUM.
6506 (i386_extract_return_value, i386_store_return_value): Use
6507 I386_ST0_REGNUM where appropriate.
6508 (i386_extract_struct_value_address): Rewrite to use extract_address.
6509 (i386_svr4_pc_in_sigtramp): Add comment.
6510 (i386_svr4_sigcontext_addr): Rewrite.
6511 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6512 TDEP->sc_sp_offset.
6513 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6514 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6515 of new defines. Set push_dummy_call, don't set
6516 deprecated_push_arguments, deprecated_push_return_address,
6517 deprecated_pop_frame. Don't set parm_boundary. Don't set
6518 deprecated_frame_chain, deprecated_frame_saved_pc,
6519 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6520 save_dummy_frame_tos, unwind_pc. Call
6521 frame_unwind_append_predicate and frame_base_set_default. Don't
6522 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6523 Don't set frameless_function_invocation. Don't set
6524 deprecated_register_bytes, deprecated_register_size,
6525 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6526 * i386-linux-tdep.c: Fix formatting in some comments.
6527 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6528 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6529 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6530 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6531 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6532 redundant parentheses.
6533 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6534 (i386_linux_sigcontext_addr): Use it. Rewrite.
6535 (find_minsym_and_objfile): Change name of second argument.
6536 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6537 changed. Use frame_pc_unwind instead of
6538 DEPRECATED_SAVED_PC_AFTER_CALL.
6539 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6540 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6541 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6542 unwinder.
6543 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6544 "dummy-frame.h".
6545 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6546 (_initialize_i386_cygwin_tdep): New prototype.
6547 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6548 deprecated_frame_chain_valid.
6549 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6550 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6551 Rely on the SVR4 defaults.
6552 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6553 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6554
c89b70f1
AC
65552003-05-30 Andrew Cagney <cagney@redhat.com>
6556
6557 * infcall.c (call_function_by_hand): Always call
6558 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6559
85b32d22
RH
65602003-05-30 Richard Henderson <rth@redhat.com>
6561
c89b70f1
AC
6562 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6563 increment.
85b32d22 6564
bfe51b1e
JB
65652003-05-29 Jim Blandy <jimb@redhat.com>
6566
6567 Use gdbarch methods for solib stuff on PowerPC Linux.
6568 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6569 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6570 show through.
6571 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6572 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6573 giving the same effect as the #definitions above.
6574
1abf022c
AF
65752003-05-29 Adam Fedor <fedor@gnu.org>
6576
6577 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6578 (find_implementation_from_class): Replace it with the standard
6579 case i.e. do nothing.
6580
d2427a71
RH
65812003-05-29 Richard Henderson <rth@redhat.com>
6582
6583 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6584 (alpha_linux_sigtramp_offset): Use it. Make static.
6585 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6586 update for new frame model.
6587 * alpha-mdebug-tdep.c: New file.
6588 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6589 (alpha_osf1_init_abi): Install it.
6590 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6591 (linked_proc_desc_table): Remove.
6592 (alpha_frame_past_sigtramp_frame): Remove.
6593 (alpha_dynamic_sigtramp_offset): Remove.
6594 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6595 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6596 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6597 (push_sigtramp_desc): Remove.
6598 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6599 (alpha_cannot_store_register): Likewise.
6600 (alpha_sigcontext_addr): Remove.
6601 (alpha_find_saved_regs): Remove.
6602 (alpha_frame_init_saved_regs): Remove.
6603 (alpha_init_frame_pc_first): Remove.
6604 (read_next_frame_reg): Remove.
6605 (alpha_frame_saved_pc): Remove.
6606 (alpha_saved_pc_after_call): Remove.
6607 (temp_proc_desc, temp_saved_regs): Remove.
6608 (alpha_about_to_return): Remove.
6609 (cached_proc_desc): Remove.
6610 (alpha_frame_chain): Remove.
6611 (alpha_print_extra_frame_info): Remove.
6612 (alpha_init_extra_frame_info): Remove.
6613 (alpha_frame_locals_address): Remove.
6614 (alpha_frame_args_address): Remove.
6615 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6616 (alpha_push_dummy_frame): Remove.
6617 (alpha_pop_frame): Remove.
6618 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6619 (alpha_read_insn): New.
6620 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6621 for different insn encodings.
6622 (alpha_in_lenient_prologue): Remove.
6623 (struct alpha_sigtramp_unwind_cache): New.
6624 (alpha_sigtramp_frame_unwind_cache): New.
6625 (alpha_sigtramp_register_address): New.
6626 (alpha_sigtramp_frame_this_id): New.
6627 (alpha_sigtramp_frame_prev_register): New.
6628 (alpha_sigtramp_frame_unwind): New.
6629 (alpha_sigtramp_frame_p): New.
6630 (struct alpha_heuristic_unwind_cache): New.
6631 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6632 don't count nop insns that occur between functions.
6633 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6634 heuristic_proc_desc, but without the mdebug wrapping.
6635 (alpha_heuristic_frame_this_id): New.
6636 (alpha_heuristic_frame_prev_register): New.
6637 (alpha_heuristic_frame_unwind): New.
6638 (alpha_heuristic_frame_p): New.
6639 (alpha_heuristic_frame_base_address): New.
6640 (alpha_heuristic_frame_base): New.
6641 (alpha_unwind_dummy_id): New.
6642 (alpha_unwind_pc): New.
6643 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6644 frame related deprecated initializations; install replacements.
6645 (alpha_dump_tdep): Remove.
6646 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6647 (alpha_read_insn, alpha_after_prologue,
6648 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6649 alpha_heuristic_frame_prev_register,
6650 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6651 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6652 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6653 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6654
93ec1121
AC
66552003-05-29 Andrew Cagney <cagney@redhat.com>
6656
6657 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6658 dependant on the availability of ASSERT_FUNCTION.
6659 (ASSERT_FUNCTION): Do not define when there is no function name.
6660
98f08d3d
KB
66612003-05-29 Kevin Buettner <kevinb@redhat.com>
6662
6663 From Jimi X <jimix@watson.ibm.com>:
6664 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6665
0897f59b
JB
66662003-05-28 Jim Blandy <jimb@redhat.com>
6667
6668 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6669 argument to ptrace to int; the system headers should give it the
6670 right type, and pointers don't fit in ints on powerpc64-*-*.
6671
14898363
L
66722003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6673
6674 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6675 DW_TAG_catch_block.
6676
a7a48797
EZ
66772003-05-26 Elena Zannoni <ezannoni@redhat.com>
6678
6679 * stabsread.c (dbx_lookup_type): Make static.
6680 (read_type): Ditto.
6681 (add_undefined_type): Ditto.
6682 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6683 not export.
6684
f5479e9c
EZ
66852003-05-26 Elena Zannoni <ezannoni@redhat.com>
6686
6687 * hpread.c (hpread_has_name): Make static.
6688 (hpread_psymtab_to_symtab): Ditto.
6689 (file_exists): Ditto.
6690 (hpread_call_pxdb): Ditto.
6691 (hpread_pxdb_needed): Ditto.
6692 (hpread_quick_traverse): Ditto.
6693 (hpread_get_header): Ditto.
6694 (hpread_get_lntt): Ditto.
6695 (hpread_get_slt): Ditto.
6696 (class_of): Ditto.
6697
eb2e12d7
AS
66982003-05-25 Andreas Schwab <schwab@suse.de>
6699
78bf922a
AS
6700 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6701 stack_align and deprecated_extra_stack_alignment_needed.
6702 (m68k_stack_align): Delete.
6703
eb2e12d7
AS
6704 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6705 (m68k_register_virtual_size): Likewise.
6706 (altos_skip_prologue): Remove obsolete function.
6707 (isi_frame_num_args): Likewise.
6708 (news_frame_num_args): Likewise.
6709 (m68k_fix_call_dummy): Make static.
6710 (m68k_push_dummy_frame): Likewise.
6711 (m68k_pop_frame): Likewise.
6712 (m68k_skip_prologue): Likewise.
6713 (m68k_frame_init_saved_regs): Likewise.
6714 (m68k_saved_pc_after_call): Likewise.
6715 (m68k_get_longjmp_target): Make multi-arch.
6716 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6717 structure. Register m68k_get_longjmp_target if enabled.
6718 * m68k-tdep.h (struct gdbarch_tdep): Define.
6719 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6720
6721 * Makefile.in (config.status): Also depend on configure.tgt
6722 and configure.host.
6723 (m68klinux-tdep.o): Update dependencies.
6724 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6725 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6726 (M68K_LINUX_JB_PC): Define.
6727 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6728 and take additional parameter.
6729 (m68k_linux_sigtramp_saved_pc): Update.
6730 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6731 m68k_linux_pc_in_sigtramp, in_plt_section,
6732 find_solib_trampoline_target.
6733 * config/m68k/tm-linux.h: Don't include any tm headers.
6734 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6735 (JB_ELEMENT_SIZE): Likewise.
6736 (JB_PC): Likewise.
6737 (GET_LONGJMP_TARGET): Likewise.
6738 (IN_SIGTRAMP): Likewise.
6739 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6740
eb2c22dc
MK
67412003-05-25 Mark Kettenis <kettenis@gnu.org>
6742
6743 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6744 (sparc32_push_arguments): Re-implement by calling
6745 sparc32_do_push_arguments.
6746
44b7b84e
MK
67472003-05-25 Mark Kettenis <kettenis@gnu.org>
6748
6749 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6750 SPARC_O1_REGNUM): New defines.
6751 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6752 (sparc32_store_return_value): New function.
6753 (sparc_extract_struct_value_address): Rewrite to operate on a
6754 regcache.
6755 (sparc_gdbarch_init): Don't set
6756 deprecated_extract_struct_value_address. Set
6757 extract_struct_value_address instead. Don't set
6758 deprecated_extract_return_value and deprecated_store_return_value
6759 for 32-bit targets. Set extract_return_value and
6760 store_return_value instead.
6761 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6762 DEPRECTAED_EXTRACT_RETURN_VALUE,
6763 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6764 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6765 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6766 (sparc_store_return_value): Remove prototype.
6767 (sparc32_store_return_value): New prototype.
6768 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6769 Adjust prototypes.
6770
f6ad61e3
MK
67712003-05-24 Mark Kettenis <kettenis@gnu.org>
6772
6773 * sparcnbsd-tdep.c: Include "gdb_string.h".
6774
b276f1bb
AC
67752003-05-23 Andrew Cagney <cagney@redhat.com>
6776
6777 * p-valprint.c (pascal_val_print): Replace extract_address with
6778 the inline equivalent extract_unsigned_integer.
6779 * jv-valprint.c (java_value_print): Ditto.
6780 * ada-valprint.c (ada_val_print_1): Ditto.
6781 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6782
e76c5fcc
TR
67832003-05-23 Theodore A. Roth <troth@openavr.org>
6784
6785 * blockframe.c (frameless_look_for_prologue): Remove unused
6786 after_prologue variable.
6787
2cdd89cb
MK
67882003-05-23 Mark Kettenis <kettenis@gnu.org>
6789
6790 * blockframe.c (get_pc_function_start): Rewrite to avoid
6791 asignments in if-statements.
6792
182d43bc
EZ
67932003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6794
6795 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6796 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6797 files, don't relocate absolute symbols (and do use mst_abs).
6798
e8f3fcdd
AC
67992003-05-23 Andrew Cagney <cagney@redhat.com>
6800
6801 * objc-lang.c: Include "gdb_assert.h".
6802 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6803 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6804 (gdb_check, gdb_check_fatal): Delete functions.
6805 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6806 gdb_assert.
6807 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6808 * Makefile.in (objc-lang.o): Update dependencies.
6809
3c23e6fb
ILT
68102003-05-22 Ian Lance Taylor <ian@airs.com>
6811
6812 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6813 with fprintf_filtered, not fprintf_unfiltered.
6814
af1342ab
AC
68152003-05-22 Andrew Cagney <cagney@redhat.com>
6816
6817 * stack.c (frame_info): Inline extract_address, replacing it with
6818 extract_unsigned_integer.
6819 * findvar.c (unsigned_pointer_to_address): Ditto.
6820 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6821 * dwarf2expr.c (dwarf2_read_address): Ditto.
6822 * frame.c (frame_pc_unwind): Update comment.
6823 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6824
47e242ec
JJ
68252003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6826
6827 * infptrace.c (detach): Call print_sys_errmsg rather than
6828 perror_with_name to issue warning message when errno is non-zero
6829 after calling ptrace detach.
6830
e2ac8128
JB
68312003-05-21 J. Brobecker <brobecker@gnat.com>
6832
6833 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6834 macro definitions from here...
6835 * hppa-tdep.c: ...to there.
6836
92b3541e
KB
68372003-05-20 Kevin Buettner <kevinb@redhat.com>
6838
6839 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6840 register_ptrace_addr(). Fix all callers.
6841
55809acb
AS
68422003-05-21 Andreas Schwab <schwab@suse.de>
6843
6844 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6845 dependencies.
6846 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6847 end.
6848 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6849 (_initialize_m68k_linux_tdep): New function.
6850 (m68k_linux_frame_saved_pc): Make static.
6851 (m68k_linux_extract_return_value): Likewise.
6852 (m68k_linux_store_return_value): Likewise.
6853 (m68k_linux_extract_struct_value_address): Likewise.
6854 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6855 Remove.
6856 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6857 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6858 (DEPRECATED_FRAME_SAVED_PC): Remove.
6859
0fbc10f7
KW
68602003-05-20 Kris Warkentin <kewarken@qnx.com>
6861
6862 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6863 regset numbering rather than our own.
6864
58da2eb2
DC
68652003-05-19 David Carlton <carlton@bactrian.org>
6866
6867 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6868
1fcb5155
DC
68692003-05-19 David Carlton <carlton@bactrian.org>
6870
6871 Partial fix for PR c++/827.
6872 * cp-support.h: Include symtab.h.
6873 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6874 * cp-namespace.c: Update contributors.
6875 (cp_lookup_symbol_nonlocal): New.
6876 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6877 (lookup_symbol_file): Ditto.
6878 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6879 * block.h: Declare block_scope, block_using, block_global_block.
6880 * block.c (block_scope): New.
6881 (block_using, block_global_block): Ditto.
6882 * Makefile.in (cp_support_h): Depend on symtab_h.
6883 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6884
5f9a71c3
DC
68852003-05-19 David Carlton <carlton@bactrian.org>
6886
6887 * language.h (struct language_defn): Add 'la_value_of_this'
6888 and 'la_lookup_symbol_nonlocal' members.
6889 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6890 lookup_symbol_static, lookup_symbol_global,
6891 lookup_symbol_aux_block.
6892 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6893 if we should search fields of this and how to do static/global
6894 lookup.
6895 (lookup_symbol_aux_block): Make extern.
6896 (basic_lookup_symbol_nonlocal): New.
6897 (lookup_symbol_static, lookup_symbol_global): Ditto.
6898 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6899 'la_lookup_symbol_nonlocal' members.
6900 * c-lang.c (c_language_defn, cplus_language_defn)
6901 (asm_language_defn, minimal_language_defn): Ditto.
6902 * jv-lang.c (java_language_defn): Ditto.
6903 * language.c (unknown_language_defn, auto_language_defn)
6904 (local_language_defn): Ditto.
6905 * m2-lang.c (m2_language_defn): Ditto.
6906 * objc-lang.c (objc_language_defn): Ditto.
6907 * scm-lang.c (scm_language_defn): Ditto.
6908 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6909 * p-lang.c (pascal_language_defn): Ditto for both.
6910 * Makefile.in (f-lang.o): Depend on value_h.
6911 (p-lang.o): Ditto.
6912
89a9d1b1
DC
69132003-05-19 David Carlton <carlton@bactrian.org>
6914
6915 * block.h: Declare block_static_block.
6916 * block.c (block_static_block): New.
6917 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6918 lookup_symbol_aux_local, calling block_static_block instead.
6919 (lookup_symbol_aux_local): Delete 'static_block' argument.
6920
eed3f8ab
DC
69212003-05-19 David Carlton <carlton@bactrian.org>
6922
6923 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6924
a09d8bda
ML
69252003-05-19 Michal Ludvig <mludvig@suse.cz>
6926
6927 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6928 register numbers mapping.
6929
69636828
AF
69302003-05-18 Adam Fedor <fedor@gnu.org>
6931
6932 * symtab.c (completion_list_objc_symbol): New function.
6933 (make_symbol_completion_list): Use it to add ObjC symbols
6934 when looking though the list.
6935 (language_search_unquoted_string): New function.
6936 (make_file_symbol_completion_list): Use it.
6937
55baeb84
AS
69382003-05-18 Andreas Schwab <schwab@suse.de>
6939
d0b45d99
AS
6940 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6941 dependencies.
6942 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6943 as m68k_linux_extract_return_value.
6944 (DEPRECATED_STORE_RETURN_VALUE): Define as
6945 m68k_linux_store_return_value.
6946 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6947 m68k_linux_extract_struct_value_address.
6948 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6949 get_next_frame, get_frame_base, get_frame_pc.
6950 (m68k_linux_frame_saved_pc): Use get_frame_base.
6951 (m68k_linux_extract_return_value): New function.
6952 (m68k_linux_store_return_value): New function.
6953 (m68k_linux_extract_struct_value_address): New function.
6954 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6955
55baeb84
AS
6956 * c-exp.y (typebase): Remove duplicate occurence of
6957 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6958 of lookup_signed_typename.
55baeb84 6959
b6b08ebf
MK
69602003-05-18 Mark Kettenis <kettenis@gnu.org>
6961
6962 * dwarf2loc.c (find_location_expression): Change type of second
6963 argument to `size_t *'.
6964 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6965 for size variable.
6966
5ad1c190
DC
69672003-05-18 David Carlton <carlton@bactrian.org>
6968
6969 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6970 'linkage_name'. Add comment.
6971 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6972 'linkage_name'.
6973 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6974 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6975 (lookup_block_symbol): Ditto.
6976
b8b527c5
AC
69772003-05-16 Andrew Cagney <cagney@redhat.com>
6978
6979 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6980 * gdbarch.h, gdbarch.c: Re-generate.
6981 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6982 * TODO (REGISTER_BYTES): Delete reference.
6983 * alpha-tdep.c (alpha_gdbarch_init): Update.
6984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6985 * x86-64-tdep.c (x86_64_init_abi): Update.
6986 * vax-tdep.c (vax_gdbarch_init): Update.
6987 * v850-tdep.c (v850_gdbarch_init): Update.
6988 * sparc-tdep.c (sparc_gdbarch_init): Update.
6989 * sh-tdep.c (sh_gdbarch_init): Update.
6990 * s390-tdep.c (s390_gdbarch_init): Update.
6991 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6992 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6993 (ns32k_gdbarch_init_32382): Update.
6994 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6995 * mcore-tdep.c (mcore_gdbarch_init): Update.
6996 * m68k-tdep.c (m68k_gdbarch_init): Update.
6997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6998 * ia64-tdep.c (ia64_gdbarch_init): Update.
6999 * i386-tdep.c (i386_gdbarch_init): Update.
7000 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7001 * hppa-tdep.c (hppa_gdbarch_init): Update.
7002 * h8300-tdep.c (h8300_gdbarch_init): Update.
7003 * frv-tdep.c (frv_gdbarch_init): Update.
7004 * cris-tdep.c (cris_gdbarch_init): Update.
7005 * avr-tdep.c (avr_gdbarch_init): Update.
7006 * arm-tdep.c (arm_gdbarch_init): Update.
7007 * sparc-tdep.c (sparc_pop_frame): Update.
7008 * rs6000-tdep.c (rs6000_pop_frame): Update.
7009 * remote.c (init_remote_state): Update.
7010 (remote_prepare_to_store): Update.
7011 * remote-vx.c (vx_prepare_to_store): Update.
7012 * remote-sds.c (sds_fetch_registers): Update.
7013 (sds_prepare_to_store): Update.
7014 * remote-array.c: Update.
7015 * regcache.c (init_legacy_regcache_descr): Update.
7016 (init_regcache_descr): Update.
7017 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7018 (mips_o64_extract_return_value): Update.
7019 * irix5-nat.c (fetch_core_registers): Update.
7020 * irix4-nat.c (fetch_core_registers): Update.
7021 * i386-tdep.h: Update.
7022 * hppa-tdep.c (pa_do_registers_info): Update.
7023 (pa_do_strcat_registers_info): Update.
7024 * cris-tdep.c (cris_register_bytes_ok): Update.
7025 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7026 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7027 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7028 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7029 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7030 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7031 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7032 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7033 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7034 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7035 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7036 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7037 (REGISTER_BYTES_OK): Update.
7038 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7039 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7040
ee2842e2
ILT
70412003-05-16 Ian Lance Taylor <ian@airs.com>
7042
7043 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7044 (vax_print_insn, print_insn_arg): Remove static functions.
7045 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7046 print_insn_vax from opcodes library.
7047 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7048
973177d3
AC
70492003-05-15 Andrew Cagney <cagney@redhat.com>
7050
aaab4dba
AC
7051 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7052 * target.h (memory_breakpoint_from_pc): Delete declaration.
7053 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7054 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7055 * monitor.c (monitor_insert_breakpoint): Use
7056 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7057 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7058 * gdbarch.h, gdbarch.c: Re-generate.
7059 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7060 (sparc_gdbarch_init): Set breakpoint_from_pc to
7061 sparc_breakpoint_from_pc.
7062 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7063 (BREAKPOINT_FROM_PC): Define.
7064 (sparc_breakpoint_from_pc): Declare.
7065 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7066 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7067 (BREAKPOINT_FROM_PC): Define.
7068 (BREAKPOINT): Delete macro.
7069 * target.h: Update comment.
7070 * s390-tdep.c (s390_gdbarch_init): Update comments.
7071 * remote.c: Update comments.
7072 * remote-mips.c: Update comments.
7073 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7074 * mem-break.c: Update comment.
7075 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7076 (ia64_memory_insert_breakpoint): Update.
7077 * config/sparc/tm-sparc.h: Update comment.
7078 * config/pa/tm-hppa64.h: Update comment.
7079 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7080 (rs6000_breakpoint_from_pc): Update.
7081 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7082 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7083 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7084 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7085 (mips_breakpoint_from_pc): Update.
7086 (mips_dump_tdep): Update.
7087
e06963ff
AC
7088 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7089 * minsyms.c (lookup_minimal_symbol): Inline
7090 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7091
973177d3
AC
7092 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7093 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7094 * p-lang.c (pascal_printstr): Ditto.
7095 * objc-lang.c (objc_printstr): Ditto.
7096 * m2-lang.c (m2_printstr): Ditto.
7097 * jv-valprint.c (java_print_value_fields): Ditto.
7098 * f-lang.c (f_printstr): Ditto.
7099 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7100 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7101 for repeat_count_threshold.
7102 * Makefile.in (cp-valprint.o): Update dependencies.
7103
5ea2bd7f 71042003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7105
5ea2bd7f
JJ
7106 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7107 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7108 they start with mov r2,r12. Support skipping over indirect stores
7109 of the input registers. Upon hitting a non-nop branch instruction
7110 or predicated instruction, bail out by setting lim_pc to the current
7111 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7112 beyond our calculated value and we have trust_limit set,
7113 use the lim_pc value.
7114
cc8c88f3
AC
71152003-05-15 Andrew Cagney <cagney@redhat.com>
7116
7117 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7118 generic_find_dummy_frame.
7119 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7120 (deprecated_generic_find_dummy_frame): Update.
7121 (deprecated_read_register_dummy): Update.
7122 * frame.c (deprecated_generic_get_saved_register): Update.
7123
909cd28e
TR
71242003-05-15 Theodore A. Roth <troth@openavr.org>
7125
7126 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7127 (avr_gdbarch_init): Set breakpoint_from_pc method.
7128
b923b08d
AC
71292003-05-15 Andrew Cagney <cagney@redhat.com>
7130
7131 * regcache.c (build_regcache): Set deprecated_register_valid
7132 directly.
7133 (deprecated_grub_regcache_for_register_valid): Delete function.
7134 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7135 declaration.
7136
ae2f03ac 71372003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7138
7139 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7140 * symtab.c (lookup_symbol_aux): Delete calls to
7141 lookup_symbol_aux_minsyms.
7142 (lookup_symbol_aux_minsyms): Comment out function and
7143 prototype. Delete lookup by mangled name.
ae2f03ac 7144
18ec9831
KB
71452003-05-14 Kevin Buettner <kevinb@redhat.com>
7146
7147 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7148 correctly indicate an empty stack and ``stack_allocated'' to the
7149 indicate the number of elements initially allocated.
7150 (dwarf_expr_grow_stack): Simplify method for computing new
7151 stack size. Don't loop infinitely if ``stack_len'' is zero.
7152 (execute_stack_op): Move ``ctx->in_reg'' initialization
7153 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7154 be used in conjuction with DW_OP_piece. Revise error message
7155 accordingly.
7156
de18ac1f
TR
71572003-05-14 Theodore A. Roth <troth@openavr.org>
7158
7159 * MAINTAINERS: Update my email address.
7160 * avr-tdep.c: Ditto.
7161
176620f1
EZ
71622003-05-14 Elena Zannoni <ezannoni@redhat.com>
7163
7164 * symtab.h (enum domain_enum): Rename from namespace_enum.
7165 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7166 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7167 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7168 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7169 TYPES_NAMESPACE, METHODS_NAMESPACE.
7170 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7171 (struct symbol, struct partial_symbol): Rename field
7172 'namespace_enum namespace' to 'domain_enum domain'.
7173 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7174 Delete old define kludge for namespace.
7175
7176 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7177 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7178 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7179 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7180 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7181 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7182 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7183 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7184 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7185 occurrences of the above.
7186
b7f31508
ILT
71872003-05-14 Ian Lance Taylor <ian@airs.com>
7188
7189 * Makefile.in (install-only): Use $(SHELL) when running
7190 mkinstalldirs.
7191
2fdbdd39
ILT
71922003-05-13 Ian Lance Taylor <ian@airs.com>
7193
a208d82c
ILT
7194 * MAINTAINERS (write after approval): Add myself.
7195
2fdbdd39
ILT
7196 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7197 second and third arguments.
7198 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7199 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7200
fbd9dcd3
AC
72012003-05-13 Andrew Cagney <cagney@redhat.com>
7202
7203 * defs.h (store_address): Delete declaration.
7204 findvar.c (store_address): Delete function.
7205 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7206 store_unsigned_integer.
7207 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7208 * v850-tdep.c (v850_push_arguments): Ditto.
7209 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7210 * sh-tdep.c (sh64_get_saved_register): Ditto.
7211 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7212 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7213 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7214 (mips_get_saved_register): Ditto.
7215 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7216 (find_func_descr, ia64_push_arguments): Ditto.
7217 * i386-tdep.c (i386_push_arguments): Ditto.
7218 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7219 * frv-tdep.c (frv_push_arguments): Ditto.
7220 * frame.c (legacy_saved_regs_prev_register): Ditto.
7221 (deprecated_generic_get_saved_register): Ditto.
7222 * findvar.c (unsigned_address_to_pointer): Ditto.
7223 * dwarf2read.c (dwarf2_const_value): Ditto.
7224 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7225 * alpha-tdep.c (alpha_push_arguments): Ditto.
7226
6760f9e6
JB
72272003-05-12 J. Brobecker <brobecker@gnat.com>
7228
7229 * NEWS: Mention that the hppa-hpux port has been partially
7230 multiarched (32bit ABIT only, so far).
7231
30e221b4
AC
72322003-05-11 Andrew Cagney <cagney@redhat.com>
7233
7234 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7235 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7236 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7237 sim/testsuite/sim/arm/misaligned2.ms, and
7238 sim/testsuite/sim/arm/misaligned3.ms.
7239 * disasm.h (struct ui_file): Add opaque struct declaration.
7240 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7241 * frame.h (struct ui_file): Ditto.
7242
dea7f9ba
MK
72432003-05-11 Mark Kettenis <kettenis@gnu.org>
7244
7245 * value.h: Pretty print.
7246
01986c48
MK
72472003-05-10 Mark Kettenis <kettenis@gnu.org>
7248
7249 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7250
123a958e
AC
72512003-05-08 Andrew Cagney <cagney@redhat.com>
7252
7253 * regcache.h (max_register_size): Delete declaration.
7254 * regcache.c (max_register_size): Delete function.
7255 (struct regcache_descr): Delete field "max_register_size".
7256 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7257 registers fit in MAX_REGISTER_SIZE.
7258 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7259 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7260 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7261 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7262 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7263 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7264 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7265 * dve3900-rom.c, hppa-tdep.c: Ditto.
7266
eb294659
DC
72672003-05-08 David Carlton <carlton@math.stanford.edu>
7268
7269 * valops.c (push_word): Fix typo.
7270
d9d9c31f
AC
72712003-05-08 Andrew Cagney <cagney@redhat.com>
7272
7273 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7274 * gdbarch.h: Re-generate.
7275 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7276 (legacy_max_register_raw_size): Delete declaration.
7277 * regcache.c (legacy_max_register_raw_size): Delete function.
7278 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7279 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7280 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7281 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7282 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7283 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7284 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7285 * findvar.c, dwarf2cfi.c: Ditto.
7286
22540ece
AC
72872003-05-08 Andrew Cagney <cagney@redhat.com>
7288
7289 * mips-tdep.c (read_signed_register): New function, moved to here
7290 from "regcache.c".
7291 (read_signed_register_pid): Ditto.
7292 * regcache.c (read_signed_register_pid): Delete function, moved to
7293 "mips-tdep.c".
7294 (read_signed_register): Ditto.
7295 * regcache.h (read_signed_register): Delete declaration.
7296 (read_signed_register_pid): Delete declaration.
7297
0c92afe8
AC
72982003-05-08 Andrew Cagney <cagney@redhat.com>
7299
7300 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7301 * gdbarch.h: Re-generate.
7302 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7303 (legacy_max_register_virtual_size): Delete declaration.
7304 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7305 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7306 * tracepoint.c (memrange_sortmerge): Ditto.
7307 * sparc-tdep.c (sparc_print_registers): Ditto.
7308 * regcache.c (legacy_max_register_virtual_size): Delete function.
7309
6037b830
JB
73102002-05-08 J. Brobecker <brobecker@gnat.com>
7311
7312 * fork-child.c (escape_bang_in_quoted_argument): New function.
7313 (fork_inferior): Escape '!' characters in quoted arguments
7314 only when needed.
7315
5d62c8b1
JB
73162003-05-08 J. Brobecker <brobecker@gnat.com>
7317
7318 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7319 the language of the CU is not currently supported by GDB.
7320
20a0e81d
JB
73212003-05-08 J. Brobecker <brobecker@gnat.com>
7322
7323 * defs.h (language): Add language_minimal enum value.
7324 * c-lang.c (minimal_language_defn): New language definition.
7325 (_initialize_c_language): Add the new minimal language to the list
7326 of languages known to GDB.
7327
710ee10a
KB
73282003-05-08 Kevin Buettner <kevinb@redhat.com>
7329
7330 * frame.c (get_frame_type): Don't attempt to lazily initialize
7331 frame's unwinder for legacy frames.
7332
1750fa04
AC
73332003-05-07 Andrew Cagney <cagney@redhat.com>
7334
7335 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7336 and "regcache" parameters.
7337 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7338
ddf9f258 73392003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7340
7341 * dwarf2read.c (dwarf_decode_lines): Only use output of
7342 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7343 the current address.
7344
87767c29
AC
73452003-05-07 Andrew Cagney <cagney@redhat.com>
7346
7347 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7348 code.
7349
5e7b2f39
JB
73502003-05-07 Jim Blandy <jimb@redhat.com>
7351
7352 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7353 'maint info symtabs' and 'maint info psymtabs'.
7354 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7355 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7356 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7357 Declarations updated.
7358 * maint.c (maintenance_list_command): Delete.
7359 (_initialize_maint_cmds): Update calls to add_cmd.
7360 * gdbcmd.h (maintenancelistlist): Delete declaration.
7361 * cli/cli-cmds.c (maintenancelistlist): Delete.
7362 (init_cmd_lists): Don't initialize it.
7363 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7364
f6684c31
AC
73652003-05-07 Andrew Cagney <cagney@redhat.com>
7366
7367 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7368 "regcache".
7369 (d10v_print_registers_info): Update.
7370 (d10v_dmap_register, d10v_imap_register): Delete functions.
7371 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7372 and "imap_register".
7373 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7374 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7375 * arch-utils.c (generic_remote_translate_xfer_address): Add
7376 "regcache" and "gdbarch" parameters.
7377 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7378 parameter. Change class to multi-arch.
7379 * gdbarch.h, gdbarch.c: Re-generate.
7380 * remote.c (remote_xfer_memory): Use
7381 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7382
e4846b08
JJ
73832003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7384
7385 * infrun.c (prev_pc): Move declaration ahead of proceed().
7386 (proceed): Refresh prev_pc value before resuming.
7387 (stop_stepping): Remove code to refresh prev_pc.
7388
6b71b8ac
KW
73892003-05-06 Kris Warkentin <kewarken@qnx.com>
7390
7391 * nto-tdep.c: Removed stray comment.
7392
47979a4b
KW
73932003-05-06 Kris Warkentin <kewarken@qnx.com>
7394
7395 * i386-nto-tdep.c: Fix old K&R function definitions.
7396 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7397 Also change add_show_from_set() call to add_setshow_cmd().
7398 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7399
00905d52
AC
74002003-05-05 Andrew Cagney <cagney@redhat.com>
7401
7402 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7403 (fprint_dummy_frames): New function.
7404 (maintenance_print_dummy_frames): New function.
7405 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7406 * frame.c (fprint_frame_id): Make global.
7407 * frame.h (fprint_frame_id): Declare.
7408 * Makefile.in (dummy-frame.o): Update dependencies.
7409
b1e29e33
AC
74102003-05-05 Andrew Cagney <cagney@redhat.com>
7411
7412 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7413 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7414 SIZEOF_CALL_DUMMY_WORDS.
7415 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7416 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7417 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7418 CALL_DUMMY_BREAKPOINT_OFFSET.
7419 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7420 CALL_DUMMY_START_OFFSET.
7421 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7422 * gdbarch.h, gdbarch.c: Re-generate.
7423 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7424 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7425 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7426 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7427 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7428 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7429 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7430 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7431 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7432 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7433 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7434 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7435 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7436 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7437 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7438
74392003-05-05 Kris Warkentin <kewarken@qnx.com>
7440
7441 * configure.tgt: Add i[3456]86-*-nto*.
7442 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7443 * nto-tdep.c: New file. Neutrino target support routines.
7444 * nto-tdep.h: New file. Neutrino target header.
7445 * config/tm-qnxnto.h: New file.
7446 * config/i386/i386nto.mt: New file.
7447 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7448
0ce3d317
AC
74492003-05-04 Andrew Cagney <cagney@redhat.com>
7450
7451 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7452 (load_infrun_state): Ditto.
7453 (struct thread_info): Drop "prev_func_name" field.
7454 * thread.c (load_infrun_state): Update.
7455 (save_infrun_state): Update.
7456 * infrun.c (prev_func_name): Delete variable.
7457 (init_wait_for_inferior): Do not clear prev_func_name.
7458 (stop_stepping, keep_going, context_switch): Do not swap
7459 prev_func_name.
7460 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7461 instead of PC_IN_SIGTRAMP.
7462
46654a5b
AC
74632003-05-04 Andrew Cagney <cagney@redhat.com>
7464
7465 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7466 REGISTER_BYTE with register_offset_hack.
7467 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7468 that REGISTER_BYTE is consistent with the regcache.
7469 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7470 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7471
14b08c1b
MK
74722003-05-04 Mark Kettenis <kettenis@gnu.org>
7473
04c8243f
MK
7474 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7475 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7476
14b08c1b
MK
7477 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7478
c7a11e01
JB
74792003-05-03 J. Brobecker <brobecker@gnat.com>
7480
7481 From Thierry Schneider <tpschneider1@yahoo.com>
7482 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7483 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7484 (mi-cmd-symbol.o): Add rule.
7485
7043d8dc
AC
74862003-05-03 Andrew Cagney <cagney@redhat.com>
7487
7488 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7489 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7490 * gdbarch.h, gdbarch.c: Re-generate.
7491 * d10v-tdep.c (d10v_push_dummy_code): New function.
7492 (d10v_gdbarch_init): Set push_dummy_code.
7493 * infcall.c (legacy_push_dummy_code): New function.
7494 (generic_push_dummy_code): New function.
7495 (push_dummy_code): New function.
7496 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7497 instead of dummy_addr, to push_dummy_call. Move call to
7498 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7499 switch.
7500 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7501
92bf2b80
AC
75022003-05-03 Andrew Cagney <cagney@redhat.com>
7503
7504 * disasm.h (print_insn): Declare.
7505 * disasm.c (init_gdb_disassemble_info): New function.
7506 (gdb_disassembly): Call init_gdb_disassemble_info.
7507 (gdb_print_insn): New function.
7508 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7509 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7510 * mcore-tdep.c: Include "disasm.h"
7511 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7512 * d10v-tdep.c: Include "disasm.h".
7513 (display_trace): Call gdb_print_insn, instead of print_insn.
7514 (print_insn): Delete function.
7515 * printcmd.c: Include "disasm.h".
7516 (print_insn): Delete function.
7517 (print_formatted): Call gdb_print_insn, instead of print_insn.
7518 * Makefile.in (printcmd.o): Update dependencies.
7519 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7520
27d94c49
AC
75212003-05-02 Andrew Cagney <cagney@redhat.com>
7522
82de1e5b
AC
7523 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7524 PC_REGNUM, re-indent.
7525 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7526 PC_REGNUM isn't set.
7527
27d94c49
AC
7528 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7529 * gdbarch.h, gdbarch.c: Re-generate.
7530 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7531 register_virtual_size, pc_regnum, or register_bytes.
7532 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7533 (d10v_register_type): Use D10V_PC_REGNUM.
7534 (d10v_print_registers_info, d10v_read_pc): Ditto.
7535 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7536 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7537
a9c0dc7f
DC
75382003-05-02 David Carlton <carlton@bactrian.org>
7539
7540 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7541 the name with mstrsave.
7542
e33d66ec
EZ
75432003-05-02 Elena Zannoni <ezannoni@redhat.com>
7544
7545 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7546 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7547 (host_charset_name, target_charset_name): New vars for use by
7548 set/show commands.
7549 (host_charset_enum, target_charset_enum): New enums for set/show
7550 commands.
7551 (set_charset_sfunc, set_host_charset_sfunc,
7552 set_target_charset_sfunc): New functions.
7553 (set_host_charset, set_target_charset): Make static.
7554 (list_charsets, set_host_charset_command,
7555 set_target_charset_command): Delete functions.
7556 (show_charset_command): Rewrite as....
7557 (show_charset): Hook this up with the set/show command mechanism.
7558 (_initialize_charset): Change names of charsets to match the
7559 set/show enums. Use host_charset_name and target_charset_name.
7560 Use set/show mechanism for charset, host-charset, target-charset
7561 commands. Do not make 'show host-charset' and 'show
7562 target-charset' be aliases of 'show charset'.
7563
7564 * charset.h (set_host_charset, set_target_charset): Don't export,
7565 they are not used outside the file.
7566
2b6fd0d8
AC
75672003-05-01 Andrew Cagney <cagney@redhat.com>
7568
7569 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7570 (gdb_disassembly): Make "di" non static, always initialize and
7571 cleanup. Always use dis_asm_read_memory.
7572 (gdb_dis_asm_read_memory): Delete function.
7573
6ae2f580
AC
75742003-05-01 Andrew Cagney <cagney@redhat.com>
7575
7576 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7577 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7578
810ecf9f
AC
75792003-04-30 Andrew Cagney <cagney@redhat.com>
7580
7581 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7582 "tm_print_insn_info".
7583 (TARGET_PRINT_INSN_INFO): Delete macro.
7584 (dis_asm_read_memory): Delete function declaration.
7585 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7586 (tm_print_insn_info): Delete variable definition.
7587 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7588 * gdbarch.h, gdbarch.c: Re-generate.
7589 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7590 "deprecated_tm_print_insn_info".
7591 * mcore-tdep.c (mcore_dump_insn): Ditto.
7592 * mips-tdep.c (mips_gdbarch_init): Ditto.
7593 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7594 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7595 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7596 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7597 instead of TARGET_PRINT_INSN_INFO, add comment.
7598 * s390-tdep.c (s390_get_frame_info): Instead of
7599 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7600 (s390_check_function_end, s390_is_sigreturn): Ditto.
7601 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7602 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7603 * disasm.c: Include "gdbcore.h".
7604 (_initialize_disasm): New function, initialize
7605 "deprecated_tm_print_insn_info".
7606 (deprecated_tm_print_insn_info): New variable.
7607 (dis_asm_read_memory): Moved from "corefile.c", made static.
7608 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7609 * Makefile.in (disasm.o): Update dependencies.
7610
07020390
AC
76112003-04-30 Andrew Cagney <cagney@redhat.com>
7612
7613 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7614
a9fa03de
AF
76152003-04-29 Adam Fedor <fedor@gnu.org>
7616
7617 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7618 * infcall.c (find_function_addr): Make non-static.
7619 * infcall.h (find_function_addr): Declare.
7620 * Makefile.in (eval.o): Update dependencies.
7621
1bae87b9
AF
76222003-04-28 Adam Fedor <fedor@gnu.org>
7623
7624 * symtab.c (symbol_find_demangled_name): Check for and demangle
7625 ObjC symbols.
7626 (symbol_init_demangled_name): Init for language_objc as well.
7627
0ba6dca9
AC
76282003-04-28 Andrew Cagney <cagney@redhat.com>
7629
7630 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7631 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7632 * gdbarch.h, gdbarch.c: Re-generate.
7633 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7634 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7635 * inferior.h (deprecated_read_fp): Rename read_fp.
7636 (generic_target_read_fp): Delete declaration.
7637 * regcache.c (generic_target_read_fp): Delete function.
7638 (deprecated_read_fp): Replace read_fp, use
7639 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7640 * d10v-tdep.c (d10v_read_fp): Delete function.
7641 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7642
7643 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7644 deprecated_target_read_fp to generic_target_read_fp.
7645 * sh-tdep.c (sh_gdbarch_init): Ditto.
7646 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7648 * frv-tdep.c (frv_gdbarch_init): Ditto.
7649
7650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7651 deprecated_fp_regnum.
7652 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7653 * vax-tdep.c (vax_gdbarch_init): Ditto.
7654 * v850-tdep.c (v850_gdbarch_init): Ditto.
7655 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7656 * sh-tdep.c (sh_gdbarch_init): Ditto.
7657 * s390-tdep.c (s390_gdbarch_init): Ditto.
7658 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7659 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7660 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7661 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7663 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7664 * i386-tdep.c (i386_gdbarch_init): Ditto.
7665 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7666 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7667 * frv-tdep.c (frv_gdbarch_init): Ditto.
7668 * cris-tdep.c (cris_gdbarch_init): Ditto.
7669 * avr-tdep.c (avr_gdbarch_init): Ditto.
7670 * arm-tdep.c (arm_gdbarch_init): Ditto.
7671 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7672
7673 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7674 * v850-tdep.c (v850_gdbarch_init): Ditto.
7675 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7676 * sh-tdep.c (sh_gdbarch_init): Ditto.
7677 * s390-tdep.c (s390_gdbarch_init): Ditto.
7678 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7679 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7680 * mips-tdep.c (mips_gdbarch_init): Ditto.
7681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7682 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7683 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7684 * frv-tdep.c (frv_gdbarch_init): Ditto.
7685 * avr-tdep.c (avr_gdbarch_init): Ditto.
7686 * arm-tdep.c (arm_gdbarch_init): Ditto.
7687
7688 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7689 DEPRECATED_FP_REGNUM.
7690 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7691 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7692 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7693 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7694 (sparc32_register_virtual_type): Ditto.
7695 * sh-tdep.c (sh64_frame_chain): Ditto.
7696 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7697 (sh_nofp_frame_init_saved_regs): Ditto.
7698 (sh64_nofp_frame_init_saved_regs): Ditto.
7699 (sh_fp_frame_init_saved_regs): Ditto.
7700 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7701 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7702 * procfs.c (procfs_fetch_registers): Ditto.
7703 (procfs_store_registers): Ditto.
7704 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7705 (store_inferior_registers, fetch_core_registers): Ditto.
7706 (fetch_kcore_registers, clear_regs): Ditto.
7707 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7708 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7709 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7710 * nlm/i386.c (do_status): Ditto.
7711 * mipsv4-nat.c (supply_gregset): Ditto.
7712 * mips-tdep.c: Ditto for comments.
7713 * mips-nat.c (fetch_inferior_registers): Ditto.
7714 (store_inferior_registers, fetch_core_registers): Ditto.
7715 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7716 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7717 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7718 (i386_do_pop_frame, i386_register_type): Ditto.
7719 * hppa-tdep.c (hppa_frame_chain): Ditto.
7720 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7721 (hppa_pop_frame, hppa_read_fp): Ditto.
7722 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7723 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7724 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7725 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7726 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7727 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7728 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7729 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7730 * blockframe.c: Ditto for comments.
7731 * arch-utils.h: Ditto for comments.
7732 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7733 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7734 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7735 * alpha-tdep.h: Ditto for comments.
7736 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7737 (alpha_cannot_store_register): Ditto.
7738 (alpha_push_dummy_frame): Ditto.
7739 * alpha-nat.c (supply_gregset): Ditto.
7740
7741 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7742 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7743 * config/sparc/tm-sparc.h: Update comment.
7744
7745 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7746 deprecated_read_fp instead of TARGET_READ_FP.
7747 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7748 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7749 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7750 deprecated_read_fp instead of read_fp.
7751 * s390-tdep.c (s390_push_arguments): Ditto.
7752 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7753 * frame.h: Ditto in comments.
7754 * frame.c (legacy_get_prev_frame): Ditto.
7755 * dummy-frame.c (dummy_frame_this_id): Ditto.
7756 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7757
d7a27068
AC
77582003-04-28 Andrew Cagney <cagney@redhat.com>
7759
7760 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7761 * gdbarch.h, gdbarch.c: Re-generate.
7762 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7763 * vax-tdep.c (_initialize_vax_tdep): Update.
7764 * v850-tdep.c (_initialize_v850_tdep): Update.
7765 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7766 * s390-tdep.c (_initialize_s390_tdep): Update.
7767 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7768 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7769 * mips-tdep.c (_initialize_mips_tdep): Update.
7770 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7771 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7772 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7773 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7774 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7775 * frv-tdep.c (_initialize_frv_tdep): Update.
7776 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7777 (_initialize_cris_tdep): Update.
7778 * arch-utils.c (legacy_print_insn): Update.
7779 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7780
d2630e69
AF
77812003-04-26 Adam Fedor <fedor@gnu.org>
7782
7783 * linespec.c (decode_objc): New function to decode ObjC calls
7784 (decode_line_1): Check for ObjC calls (using decode_objc)
7785 * Makefile (linespec.o): Update dependencies.
7786
3086aeae
DJ
77872003-04-26 Daniel Jacobowitz <drow@mvista.com>
7788
7789 * breakpoint.h (struct breakpoint_ops): New.
7790 (struct breakpoint): Add ops member.
7791
7792 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7793 (mention): Use new breakpoint ops member.
7794 (set_raw_breakpoint): Initialize ops field to NULL.
7795 (print_exception_catchpoint, print_one_exception_catchpoint)
7796 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7797 (gnu_v3_exception_catchpoint_ops): New.
7798 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7799
1fbec6c3
AF
78002003-04-25 Adam Fedor <fedor@gnu.org>
7801
7802 * Makefile.in (COMMON_OBS): Add objc-lang.o
7803
0ef21242
AC
78042003-04-25 Andrew Cagney <cagney@redhat.com>
7805
7806 * d10v-tdep.c (print_insn): Delete function.
7807 (display_trace): Use TARGET_PRINT_INSN.
7808 (_initialize_d10v_tdep): Do not set tm_print_insn.
7809 (d10v_gdbarch_init): Set print_insn.
7810
f75493ed
AC
78112003-04-25 Andrew Cagney <cagney@redhat.com>
7812
7813 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7814 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7815 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7816 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7817 (nr_dmap_regs, a0_regnum): ... new functions.
7818 (d10v_print_registers_info): Use a0_regnum, use register_size.
7819 (d10v_register_byte): Delete function.
7820 (d10v_register_raw_size): Delete function.
7821 (d10v_register_type): Use a0_regnum.
7822 (d10v_print_registers_info): Use a0_regnum.
7823 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7824 (d10v_gdbarch_init): Do not set register_byte or
7825 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7826 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7827 extract_address.
7828 (trace_command): Use XCALLOC.
7829 (print_insn): Delete reference to tm_print_insn.
7830 (saved_regs_unwinder): Use store_unsigned_integer instead of
7831 store_address.
7832 * frame.h (FRAME_OBSTACK_CALLOC): Define
7833
2202b100
DC
78342003-04-25 David Carlton <carlton@bactrian.org>
7835
7836 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7837
4e45ca2e
AF
78382003-04-24 Adam Fedor <fedor@gnu.org>
7839
7840 * objc-lang.c: Include "valprint.h"
7841 * Makefile.in (objc-lang.o): Update dependencies.
7842
93de3e7f
AF
78432003-04-24 Adam Fedor <fedor@gnu.org>
7844
8ffd9b1b 7845 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7846 architecture dependant compilation and mark as unimplemented
7847 (until they get put in the gdbarch vector).
7848
0f20eeea
DC
78492003-04-23 David Carlton <carlton@bactrian.org>
7850
7851 * cp-support.c (cp_find_first_component): Accept 'operator' in
7852 more locations.
7853
74cfe982
AC
78542003-04-23 Andrew Cagney <cagney@redhat.com>
7855
7856 * infcall.c (call_function_by_hand): Eliminate redundant
7857 indentation. Move "saved_async" and "old_cleanups" to where they
7858 are needed.
8ffd9b1b 7859
52557533
AC
78602003-04-23 Andrew Cagney <cagney@redhat.com>
7861
7862 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7863 and "buffer". Move the "name" code to where it is needed.
7864
158775de
AC
78652003-04-23 Andrew Cagney <cagney@redhat.com>
7866
7867 * infcall.c (call_function_by_hand): Move variables "start_sp",
7868 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7869 code to ON_STACK switch branch.
8ffd9b1b 7870
ebc7896c
AC
78712003-04-23 Andrew Cagney <cagney@redhat.com>
7872
7873 * infcall.c (call_function_by_hand): Make declaration of "i",
7874 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7875 lint.
7876
d727590f
AC
78772003-04-23 Andrew Cagney <cagney@redhat.com>
7878
7879 * infcall.c (call_function_by_hand): Delete variable
7880 "n_method_args". Localize "param_type"'s declaration to the loop
7881 that it is used. Reinstate code assigning to said variable -
7882 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7883 Rationalize code using "param_type".
7884
d585e13a
AC
78852003-04-22 Andrew Cagney <cagney@redhat.com>
7886
7887 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7888 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7889 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7890 to DEPRECATED_PUSH_RETURN_ADDRESS.
7891
051caad9
KB
78922003-04-22 Kevin Buettner <kevinb@redhat.com>
7893
7894 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7895 on the DWARF2 register number prior to fetching a register.
7896
77296879
JB
78972003-04-22 J. Brobecker <brobecker@gnat.com>
7898
7899 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7900 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7901 this macro was always set to 0.
77296879
JB
7902 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7903 considering the fact that this macro was always set to 0.
7904 * hppa-tdep.h (hppa_store_return_value): Likewise.
7905 (hppa_extract_return_value): Likewise.
7906
4252f1df
JB
79072003-04-22 J. Brobecker <brobecker@gnat.com>
7908
7909 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7910 the hppa-pro target only.
7911
14604c6b
JB
79122003-04-21 J. Brobecker <brobecker@gnat.com>
7913
7914 Ongoing multi-arch conversion effort for HP/UX:
7915 * config/pa/tm-hppa.h: Move all macro that are no longer
7916 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7917 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7918
77eb01d1
JB
79192003-04-21 J. Brobecker <brobecker@gnat.com>
7920
7921 * config/pa/tm-hppa.h: Obsolete a section that was only used
7922 for hppa-pro.
7923
61995b3b
JB
79242003-04-21 J. Brobecker <brobecker@gnat.com>
7925
7926 Ongoing multi-arch conversion for HP/UX.
7927 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7928 if already defined (allows hppa64 to stay non-multiarched for now).
7929 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7930
4aa79dcc
AC
79312003-04-21 Andrew Cagney <cagney@redhat.com>
7932
7933 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7934
0f751ff2
AC
79352003-04-21 Andrew Cagney <cagney@redhat.com>
7936
7937 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7938 "i386_num_mmx_regs".
7939
04714b91
AC
79402003-04-21 Andrew Cagney <cagney@redhat.com>
7941
7942 * infcall.c: New file.
7943 * infcall.h: New file.
7944 * valarith.c: Include "infcall.h".
7945 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7946 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7947 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7948 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7949 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7950 (SFILES): Add "infcall.c"
7951 (COMMON_OBS): Add "infcall.o".
7952 (infcall.o): Specify dependencies.
7953 * value.h (call_function_by_hand): Delete declaration.
7954 * inferior.h (run_stack_dummy): Delete declaration.
7955 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7956 (run_stack_dummy): Move to "infcall.c", merged into
7957 call_function_by_hand.
7958 * valops.c (call_function_by_hand): Moved to "infcall.c".
7959 (find_function_addr, value_arg_coerce): Ditto.
7960 (unwindonsignal_p, coerce_float_to_double): Ditto.
7961 (_initialize_valops): Move "set/show coerce-float-to-double", and
7962 "set/show unwindonsignal" commands to "infcall.c".
7963 * v850-tdep.c, target.h: Update comments.
7964 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7965 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7966 (sh64_init_extra_frame_info): Update comments.
7967 * mn10300-tdep.c: Update comments.
7968 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7969 * config/sparc/tm-sparc.h: Update comments.
7970 * breakpoint.h: Update comments.
7971 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7972 * arm-tdep.c: Update comment.
7973
f9d3c2a8
MK
79742003-04-19 Mark Kettenis <kettenis@gnu.org>
7975
c40e1eab
MK
7976 * i386-tdep.c (i386_num_register_names): New variable.
7977 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7978 (MM0_REGNUM): Remove redundant parentheses in define.
7979 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7980 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7981 i386_mxcsr_regnum_p): Remove redundant parentheses.
7982 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7983
94ea66b3
MK
7984 * i386-tdep.c (i386_extract_return_value,
7985 i386_store_return_value): Correct check for availability of
7986 floating-point registers.
7987
54299a1d
MK
7988 * i386-tdep.c (i386_frame_num_args): Remove function.
7989 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7990
c86c27af
MK
7991 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7992 mmx_regnum_to_fp_regnum. Adjust all callers.
7993
f9d3c2a8
MK
7994 * i386-tdep.c (i386_get_longjmp_target): Use
7995 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7996 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7997 extract_address.
7998
94ba74a9
MK
79992003-04-19 Mark Kettenis <kettenis@gnu.org>
8000
8001 * core-regset.c: Update comments to reflect reality. Re-order
8002 includes.
8003 (fetch_core_registers): Use switch instead of if. Remove
8004 redundant prototype.
8005
4074e13c
JB
80062003-04-18 Jim Blandy <jimb@redhat.com>
8007
8008 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8009 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8010
e3ab4aba
RH
80112003-04-17 Richard Henderson <rth@redhat.com>
8012
8013 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8014
627bf7c1
EZ
80152003-04-17 Michael Snyder <msnyder@redhat.com>
8016 Karen Bennet <bennet@redhat.com>
8017
8018 Committed by Elena Zannoni <ezannoni@redhat.com>
8019 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8020
514621a9
EZ
80212003-04-17 Elena Zannoni <ezannoni@redhat.com>
8022
8023 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8024 value if the return type is void.
514621a9 8025
b4acd559
JJ
80262003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8027
8028 * thread-db.c: Reindented.
8ffd9b1b 8029
530b167e 80302003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8031
8032 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8033 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8034 as types.
8035
0a48e7e8
MS
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8ffd9b1b 8059
ab9fe00e
KB
80602003-04-16 Kevin Buettner <kevinb@redhat.com>
8061
610a3745 8062 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8063 the size of ``long double'' to 16, instead of 8.
8064
e64a344c
MK
80652003-04-16 Mark Kettenis <kettenis@gnu.org>
8066
8067 * i386-linux-nat.c: Add some whitespace to make things more
8068 readable.
8069 (fetch_register, store_register, fetch_inferior_registers,
8070 store_inferior_registers): Get rid of assignment in if-statement.
8071 (store_register): Fix typo in error message.
8072
25d41031
AC
80732003-04-16 Andrew Cagney <cagney@redhat.com>
8074
8075 * utils.c (xmmalloc): Always allocate something, matches
8076 libiberty/xmalloc's semantics.
8077 (xmrealloc, xmcalloc): Ditto.
8078
c50901fd
AC
80792003-04-16 Andrew Cagney <cagney@redhat.com>
8080
8081 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8082 update comments.
8083 (get_frame_type): Initialize unwind and type when needed.
8084 (get_frame_id, frame_register_unwind): Ditto.
8085
f81824a9
AC
80862003-04-16 Andrew Cagney <cagney@redhat.com>
8087
8088 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8089 obsolete.
8090 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8091 * sparcl-stub.c: Obsolete file.
8092 * config/sparc/tm-sparclet.h: Obsolete file.
8093 * sparclet-stub.c: Obsolete file.
8094 * sparclet-rom.c: Obsolete file.
8095 * sparcl-tdep.c: Obsolete file.
8096 * config/sparc/tm-sparclite.h: Obsolete file.
8097 * config/sparc/sparclite.mt: Obsolete file.
8098 * config/sparc/sparclet.mt: Obsolete file.
8099 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8100 sparc86x-*-* obsolete.
8101
9219021c
DC
81022003-04-15 David Carlton <carlton@math.stanford.edu>
8103
8104 * Makefile.in (SFILES): Add cp-namespace.c.
8105 (COMMON_OBS): Add cp-namespace.o.
8106 (block.o): Depend on gdb_obstack_h and cp_support_h.
8107 (buildsym.o): Depend on cp_support_h.
8108 (cp-namespace.o): New.
8109 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8110 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8111 (dwarf2read.o): Depend on cp_support_h.
8112 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8113 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8114 processing_current_namespace.
8115 (read_namespace): Update processing_current_namespace; check for
8116 anonymous namespaces.
8117 (dwarf2_name): New function.
8118 (dwarf2_extension): Ditto.
8119 * cp-support.h: Update copyright, contributors.
8120 Add inclusion guards.
8121 Add opaque declaration for structs obstack, block, symbol.
8122 (struct using_direct): New struct.
8123 Add declarations for cp_find_first_component,
8124 cp_entire_prefix_len, processing_has_namespace_info,
8125 processing_current_namespace, cp_is_anonymous,
8126 cp_add_using_directive, cp_initialize_namespace,
8127 cp_finalize_namespace, cp_set_block_scope,
8128 cp_scan_for_anonymous_namespaces.
8129 * cp-namespace.c: New file.
8130 * cp-support.c: Update copyright.
8131 Include ctype.h, gdb_assert.h, gdbcmd.h.
8132 New variable maint_cplus_cmd_list.
8133 (cp_find_first_component): New function.
8134 (cp_entire_prefix_len, maint_cplus_command)
8135 (first_component_command, _initialize_cp_support): Ditto.
8136 * buildsym.c: Include cp-support.h.
8137 New variable using_list.
8138 (add_symbol_to_list): Check for anonymous namespaces.
8139 (finish_block): Set block's scope.
8140 (start_symtab): Initialize C++ namespace support.
8141 (end_symtab): Finalize C++ namespace support.
8142 * block.h: Add opaque declarations for structs
8143 block_namespace_info, using_direct, and obstack.
8144 Add declarations for block_set_scope and block_set_using.
8145 (struct block): Add 'language_specific' member.
8146 (BLOCK_NAMESPACE): New macro.
8147 * block.c: Include gdb_obstack.h and cp-support.h.
8148 (struct block_namespace_info): New struct.
8149 (block_set_scope): New function.
8150 (block_set_using, block_initialize_namespace): Ditto.
8151
d5a921c9
KB
81522003-04-14 Kevin Buettner <kevinb@redhat.com>
8153
8154 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8155 (locate_base): Return early if there aren't any link map offsets.
8156 (svr4_solib_create_inferior_hook): Warn if shared library support
8157 is unavailable.
8158
d2a52b27
DC
81592003-04-14 David Carlton <carlton@math.stanford.edu>
8160
8161 * symtab.c (symbol_set_names): Add prefix when storing Java names
8162 in hash table. Fix for PR java/1039.
8163
980cae7a
DC
81642003-04-14 David Carlton <carlton@math.stanford.edu>
8165
8166 * symtab.c (symbol_set_names): Rename 'name' arg to
8167 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8168 * symtab.h: Change 'name' argument in declaration of
8169 symbol_set_names to 'linkage_name'.
8170 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8171
e227b13c
AC
81722003-04-14 Andrew Cagney <cagney@redhat.com>
8173
8174 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8175 return the fully sign-extended register value.
8176 (get_frame_pointer): Ditto.
8177 (mips_pop_frame): Initialize "proc_desc" after checking for a
8178 dummy frame.
8179
36712a20
AC
81802003-04-14 Andrew Cagney <cagney@redhat.com>
8181
8182 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8183 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8184 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8185 (mips_push_register): Delete function.
8186 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8187 PUSH_FP_REGNUM.
8188
44ea7b70
JB
81892003-04-14 Jim Blandy <jimb@redhat.com>
8190
8191 * symmisc.c: #include "gdb_regex.h".
8192 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8193 functions.
8194 * maint.c (maintenance_list_command): New function.
8195 (_initialize_maint_cmds): Register the above as commands.
8196 * symtab.h (maintenance_list_symtabs,
8197 maintenance_list_psymtabs): New declarations.
8198 * cli/cli-cmds.c (maintenancelistlist): New variable.
8199 (init_cmd_lists): Initialize it.
8200 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8201 * gdbcmd.h (maintenancelistlist): New declaration.
8202 * Makefile.in (symmisc.o): Update dependencies.
8203
2d0c7962
EZ
82042003-04-14 Elena Zannoni <ezannoni@redhat.com>
8205
8206 * s390-nat.c: Include asm/types.h for addr_t.
8207
1947a811
CV
82082003-04-14 Corinna Vinschen <vinschen@redhat.com>
8209
8210 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8211 actually incoming type.
8212
adb616d7
AC
82132003-04-13 Andrew Cagney <cagney@redhat.com>
8214
8215 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8216 get_next_frame and get_frame_saved_regs.
8217
9b5e151c
AC
82182003-04-13 Andrew Cagney <cagney@redhat.com>
8219
8220 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8221 of gdbarch_num_regs.
8222
ef6e7e13
AC
82232003-04-13 Andrew Cagney <cagney@redhat.com>
8224
8225 * frame.h: Mention what replaced what in "struct frame_info".
8226 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8227 deprecated_update_frame_base_hack and
8228 deprecated_update_frame_pc_hack.
8229 * hppa-tdep.c: Ditto.
8230
61fbb938
DJ
82312003-04-13 Daniel Jacobowitz <drow@mvista.com>
8232
8233 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8234 to read_reg and update its comment. Remove regnum member.
8235 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8236 Don't call read_reg when setting in_reg. Call read_reg to get
8237 the frame base if it's in a register. Return the register number
8238 on the stack instead of in the context. Remove extra arguments
8239 to read_reg.
8240 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8241 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8242 the register number on the expression stack.
8243 (needs_frame_read_reg): Remove extra arguments.
8244
0d53c4c4
DJ
82452003-04-13 Daniel Jacobowitz <drow@mvista.com>
8246
8247 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8248 made non-static.
8249 (execute_stack_op): All callers updated.
8250 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8251 * dwarf2loc.c (find_location_expression): New function.
8252 (dwarf_expr_frame_base): Call it.
8253 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8254 (dwarf2_tracepoint_var_ref): New function, broken out from
8255 locexpr_tracepoint_var_ref.
8256 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8257 Make static.
8258 (loclist_read_variable, loclist_read_needs_frame): New functions.
8259 (loclist_describe_location, loclist_tracepoint_var_ref): New
8260 functions.
8261 (dwarf2_loclist_funcs): New struct location_funcs.
8262 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8263 (struct dwarf2_locexpr_baton): Add comments.
8264 (dwarf2_loclist_funcs): New extern.
8265 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8266 base_address and base_known.
8267 (dwarf_loc_buffer): New variable.
8268 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8269 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8270 (dwarf2_has_info): Initialize dwarf_loc_offset.
8271 (dwarf2_build_psymtabs): Read in .debug_loc.
8272 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8273 DWARF_LOC_SIZE.
8274 (psymtab_to_symtab_1): Likewise. Move base address calculation
8275 here, from...
8276 (dwarf2_get_pc_bounds): ... here. Use the base address from
8277 cu_header.
8278 (dwarf2_symbol_mark_computed): Handle location lists.
8279
6aca59a3
DJ
82802003-04-13 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8283 if the linkage name demangled successfully.
8284
aca1fcd0
MK
82852003-04-13 Mark Kettenis <kettenis@gnu.org>
8286
97095916
MK
8287 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8288 disassmbly_flavour): Removed.
8289
aca1fcd0
MK
8290 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8291
562a961f
MK
82922003-04-13 Mark Kettenis <kettenis@gnu.org>
8293
8294 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8295
bd013d54
AC
82962003-04-12 Andrew Cagney <cagney@redhat.com>
8297
8298 * frame.h (struct frame_info): Move definition from here ...
8299 * frame.c (struct frame_info): ... to here.
8300
167ef8b1
AC
83012003-04-12 Andrew Cagney <cagney@redhat.com>
8302
8303 * gdbthread.h (save_infrun_state): Delete parameter
8304 "prev_func_start".
8305 (struct thread_info): Delete field "prev_func_start".
8306 (load_infrun_state): Ditto.
8307 * thread.c (load_infrun_state, save_infrun_state): Update.
8308 * infrun.c (prev_func_start): Delete variable.
8309 (context_switch, init_wait_for_inferior): Update.
8310 (stop_stepping, keep_going): Update.
8311
da3331ec
AC
83122003-04-12 Andrew Cagney <cagney@redhat.com>
8313
8314 * gdbarch.sh: Add missing opaque declarations.
8315 * gdbarch.h: Regnerate.
8316 * symtab.h: Add missing opaque declarations.
8317 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8318 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8319 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8320 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8321 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8322 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8323 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8324 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8325 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8326 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8327 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8328 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8329 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8330
18adea3f
AC
83312003-04-11 Andrew Cagney <cagney@redhat.com>
8332
8333 * frame.c (get_frame_id): Return this frame's "id".
8334 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8335 function start.
8336 (legacy_saved_regs_this_id): Replace function body with
8337 internal-error.
8338 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8339 FRAME_OBSTACK_ZALLOC.
8340 (create_new_frame): Mark the frame ID as valid.
8341
2252e863
AO
83422003-04-11 Alexandre Oliva <aoliva@redhat.com>
8343
8344 * Makefile.in (libbfd_h): Added missing setting.
8345 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8346 according to the selected ABI.
8347
a8245ab8
JJ
83482003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8349
8350 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8351
6913c89a
AC
83522003-04-11 Andrew Cagney <cagney@redhat.com>
8353
8354 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8355 SAVED_PC_AFTER_CALL.
8356 * gdbarch.h, gdbarch.c: Regenerate.
8357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8358 * x86-64-tdep.c (x86_64_init_abi): Update.
8359 * vax-tdep.c (vax_gdbarch_init): Update.
8360 * v850-tdep.c (v850_gdbarch_init): Update.
8361 * sparc-tdep.c (sparc_gdbarch_init): Update.
8362 * sh-tdep.c (sh_gdbarch_init): Update.
8363 * s390-tdep.c (s390_gdbarch_init): Update.
8364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8365 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8366 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8367 * mips-tdep.c (mips_gdbarch_init): Update.
8368 * mcore-tdep.c (mcore_gdbarch_init): Update.
8369 * m68k-tdep.c (m68k_gdbarch_init): Update.
8370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8371 * ia64-tdep.c (ia64_gdbarch_init): Update.
8372 (ia64_saved_pc_after_call): Update declaration.
8373 * i386ly-tdep.c (i386lynx_init_abi): Update.
8374 * i386-tdep.c (i386_gdbarch_init): Update.
8375 * hppa-tdep.c (hppa_gdbarch_init): Update.
8376 * h8300-tdep.c (h8300_gdbarch_init): Update.
8377 * frv-tdep.c (frv_gdbarch_init): Update.
8378 * cris-tdep.c (cris_gdbarch_init): Update.
8379 * avr-tdep.c (avr_gdbarch_init): Update.
8380 * arm-tdep.c (arm_gdbarch_init): Update.
8381 * alpha-tdep.c (alpha_gdbarch_init): Update.
8382 * ns32knbsd-nat.c (frame_num_args): Update.
8383 * ns32k-tdep.c (umax_frame_num_args): Update.
8384 * mips-tdep.c (mips_init_frame_pc_first): Update.
8385 * infrun.c (step_over_function): Update.
8386 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8387 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8388 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8389 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8390 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8391 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8392 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8393 * arch-utils.c (init_frame_pc_default): Update.
8394 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8395 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8396 declaration.
8ffd9b1b 8397
38edeab8
AC
83982003-04-11 Andrew Cagney <cagney@redhat.com>
8399
8400 * i387-tdep.c: Update copyright.
8401 (i387_to_double): Delete function.
8402 (double_to_i387): Delete function.
8403
81f8a206
AC
84042003-04-10 Andrew Cagney <cagney@redhat.com>
8405
8406 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8407 frame's function's address. Simplify.
8408 (d10v_frame_unwind_cache): Check that the frame's function is
8409 non-zero.
8410
6e691f7a
JB
84112003-04-10 Jim Blandy <jimb@redhat.com>
8412
8413 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8414 call to set_gdbarch_deprecated_push_arguments.
8415
7f78e237
AC
84162003-04-10 Andrew Cagney <cagney@redhat.com>
8417
8418 * frame.c (fprint_frame_id): New function.
8419 (fprint_frame_type, fprint_frame): New function.
8420 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8421 (create_sentinel_frame, get_frame_id): Ditto.
8422 (frame_id_p, frame_id_eq): Ditto.
8423 (frame_id_inner, create_new_frame): Ditto.
8424 (legacy_get_prev_frame, get_prev_frame): Ditto.
8425 (deprecated_update_frame_pc_hack): Ditto.
8426 (frame_register_unwind): Ditto.
8427 (deprecated_update_frame_base_hack): Ditto.
8428
f870b49b
CV
84292003-04-10 Corinna Vinschen <vinschen@redhat.com>
8430
8431 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8432 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8433 frame_chain function.
8434 * Makefile.in: Add dependencies due to above change.
8435
7c86889b
CV
84362003-04-10 Corinna Vinschen <vinschen@redhat.com>
8437
8438 * blockframe.c (legacy_frame_chain_valid): Move call to
8439 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8440 inside_entry_file.
8441
d0a55772
AC
84422003-04-09 Andrew Cagney <cagney@redhat.com>
8443
8444 * frame.h (struct frame_id): Replace "pc" and "base" with
8445 "stack_addr" and "code_addr". Update comments.
8446 (frame_id_build): Update parameter names and comment.
8447 (struct frame_info): Replace "id_p" and "id" with "this_id".
8448 * dummy-frame.c (dummy_frame_this_id): Update.
8449 * breakpoint.c (print_one_breakpoint): Update.
8450 * frame.c (get_frame_id): Update.
8451 (get_frame_base, frame_id_build): Update.
8452 (create_sentinel_frame, legacy_get_prev_frame): Update.
8453 (deprecated_update_frame_base_hack): Update.
8454 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8455 (frame_id_inner): Ditto.
8456
ac16bf07
AC
84572003-04-09 Andrew Cagney <cagney@redhat.com>
8458
8459 * defs.h (gdb_print_host_address): Make "addr" parameter a
8460 pointer constant.
8461 * utils.c (gdb_print_host_address): Update.
8462
366cfc9e
KB
84632003-04-09 Kevin Buettner <kevinb@redhat.com>
8464
8465 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8466 register number for R0 is 0.
8467
cd983b5c
JB
84682003-04-09 J. Brobecker <brobecker@gnat.com>
8469
8470 * frame.h (struct gdbarch): Add opaque structure definition
8471 to avoid a compilation warning on LynxOS 4.0.
8472
d1340264
AC
84732003-04-09 Andrew Cagney <cagney@redhat.com>
8474
8475 * frame.h (struct frame_info): Delete field "pc". Replace
8476 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8477 structure.
8478 * frame.c (frame_pc_unwind): Update.
8479 (create_sentinel_frame): Do not set "pc".
8480 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8481 (get_frame_pc): Call frame_pc_unwind.
8482 (deprecated_update_frame_pc_hack): Update.
8483 (create_new_frame): Use "pc" not "->pc".
8484
90a6fffb
AC
84852003-04-09 Andrew Cagney <cagney@redhat.com>
8486
8487 * frame.c (get_frame_id): Eliminate code updating "frame".
8488 (legacy_get_prev_frame): Ditto.
8489 (get_frame_base): Return id.base directly.
8490 (deprecated_update_frame_base_hack): Update "id.base".
8491 * frame.h (struct frame_info): Delete field "frame".
8492
2fbce691
AC
84932003-04-09 Andrew Cagney <cagney@redhat.com>
8494
8495 * NEWS: Mention that the "Sequent family" is obsolete.
8496 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8497 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8498 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8499 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8500 * config/i386/tm-ptx4.h: Obsolete file.
8501 * config/i386/tm-ptx.h: Obsolete file.
8502 * symm-tdep.c: Obsolete file.
8503 * config/i386/symmetry.mt: Obsolete file.
8504 * config/i386/tm-symmetry.h: Obsolete file.
8505 * symm-nat.c: Obsolete file.
8506 * config/i386/nm-symmetry.h: Obsolete file.
8507 * config/i386/xm-symmetry.h: Obsolete file.
8508 * config/i386/symmetry.mh: Obsolete file.
8509 * config/i386/nm-ptx4.h: Obsolete file.
8510 * config/i386/ptx4.mh: Obsolete file.
8511 * config/i386/ptx.mt: Obsolete file.
8512 * config/i386/ptx.mh: Obsolete file.
8513 * config/i386/xm-ptx4.h: Obsolete file.
8514 * config/i386/xm-ptx.h: Obsolete file.
8515
78c43945
AC
85162003-04-09 Andrew Cagney <cagney@redhat.com>
8517
8518 Obsolete mips*-*-mach3*.
8519 * NEWS: Mention that mips*-*-mach3* is obsolete.
8520 * m3-nat.c: Obsolete file.
8521 * config/nm-m3.h: Obsolete file.
8522 * config/mips/tm-mipsm3.h: Obsolete file.
8523 * config/mips/mipsm3.mt: Obsolete file.
8524 * config/mips/mipsm3.mh: Obsolete file.
8525 * config/mips/xm-mipsm3.h: Obsolete file.
8526 * mipsm3-nat.c: Obsolete file.
8527 * configure.host: Obsolete mips-dec-mach3*.
8528 * configure.tgt: Obsolete mips*-*-mach3*.
8529
f1908289
AC
85302003-04-09 Andrew Cagney <cagney@redhat.com>
8531
8532 * doublest.h: Update copyright.
8533 (deprecated_store_floating, deprecated_extract_floating): Rename
8534 store_floating and extract_floating. Update comments.
8535 * doublest.c: Update copyright.
8536 (extract_floating_by_length): Replace extract_floating.
8537 (store_floating_by_length): Replace store_floating.
8538 (deprecated_extract_floating): New function.
8539 (deprecated_store_floating): New function.
8540 (extract_typed_floating): Call extract_floating_by_length.
8541 (store_typed_floating): Call store_floating_by_length.
8542 * x86-64-tdep.c (x86_64_store_return_value): Update.
8543 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8544 (sh64_extract_return_value): Update.
8545 (sh_sh4_register_convert_to_virtual): Update.
8546 (sh_sh64_register_convert_to_virtual): Update.
8547 (sh_sh4_register_convert_to_raw): Update.
8548 (sh_sh64_register_convert_to_raw): Update.
8549 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8550 (rs6000_register_convert_to_raw): Update.
8551 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8552 (ia64_register_convert_to_raw): Update.
8553 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8554 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8555 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8556 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8557 (alpha_register_convert_to_raw): Update.
8558
4443bd83
AC
85592003-04-08 Andrew Cagney <cagney@redhat.com>
8560
8561 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8562 * gdbarch.h, gdbarch.c: Re-generate.
8563 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8564 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8565 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8566 conditionally, use frame_pc_unwind as an alternative. Add
8567 comments.
8568 * arch-utils.c (init_frame_pc_default): Only call
8569 SAVED_PC_AFTER_CALL when available.
8570
c0236d92
EZ
85712003-04-08 Elena Zannoni <ezannoni@redhat.com>
8572
fbe586ae 8573 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8574 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8575 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8576 (start_remote): Ditto.
8577 (handle_inferior_event): Ditto.
8578 (save_inferior_status): Ditto.
8579 (restore_inferior_status): Ditto.
8580 * infcmd.c (attach_command): Ditto.
8581 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8582 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8583 * alpha-tdep.c (heuristic_proc_start): Ditto.
8584 * mips-tdep.c (heuristic_proc_start): Ditto.
8585 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8586 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8587 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8588 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8589 * remote-vx.c (vx_create_inferior): Ditto.
8590
85912003-04-08 Elena Zannoni <ezannoni@redhat.com>
8592
8593 * infrun.c (stop_soon_quietly): Make it an enum, to better
8594 override the default behavior of handle_inferior_event.
8595 (clear_proceed_status): Update uses of stop_soon_quietly to
8596 reflect that it is now an enum.
8597 (start_remote): Ditto.
8598 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8599 is set to handle the new GNU/Linux kernel behavior for
8600 attach/sigstop. Update uses of stop_soon_quietly.
8601 * inferior.h (enum stop_kind): New enum.
8602 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8603 Reset normal handle_inferior_event behavior, afterwards.
8604 * fork-child.c (startup_inferior): Update.
8605 * alpha-tdep.c (heuristic_proc_start): Update.
8606 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8607 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8608 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8609 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8610 * remote-vx.c (vx_create_inferior): Update.
8611 * mips-tdep.c (heuristic_proc_start): Update.
8612
1211bce3
EZ
86132003-04-07 Elena Zannoni <ezannoni@redhat.com>
8614
8615 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8616 be freed more than once, causing wild memory corruptions.
1211bce3 8617 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8618 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8619 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8620 with the "core" target.
1211bce3 8621
f0ef6b29
KB
86222003-04-07 Kevin Buettner <kevinb@redhat.com>
8623
8624 * mips-tdep.c (mips_print_fp_register): New function, created from
8625 do_fp_register_row(). Registers are now (also) printed as hex.
8626 Only one register is printed per row.
8627 (mips_print_register, do_fp_register_row): Print floating point
8628 registers with mips_print_fp_register().
8629
8cf71652
AC
86302003-04-06 Andrew Cagney <cagney@redhat.com>
8631
5e488a7b
AC
8632 * valprint.h (inspect_it): Add extern declaration.
8633 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8634 (selectors_info, classes_info): Ditto.
8635 (find_objc_msgcall): Fix indentation.
8636 (objc_printstr): Delete extern declarations.
8637
8cf71652
AC
8638 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8639
e6ba3bc9
AC
86402003-04-06 Andrew Cagney <cagney@redhat.com>
8641
8642 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8643 Update comment.
8644 * frame.c (legacy_saved_regs_this_id): Update.
8645 (legacy_get_prev_frame): Update.
8646 * xstormy16-tdep.c: Update comment.
8647 * sparc-tdep.c (sparc_frame_chain): Update comment.
8648 * blockframe.c (legacy_frame_chain_valid): Update.
8649
55e1d7e7
AC
86502003-04-06 Andrew Cagney <cagney@redhat.com>
8651
996179ee
AC
8652 * valprint.c (val_print_type_code_int): Delete #ifdef
8653 PRINT_TYPELESS_INTEGER code.
8654
55e1d7e7
AC
8655 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8656 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8657 multi-arch definition.
8658 * gdbarch.h: Re-generate.
8659
43bd9a9e
AC
86602003-04-05 Andrew Cagney <cagney@redhat.com>
8661
8662 Eliminate FRAME_FIND_SAVED_REGS.
8663 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8664 Change FSR parameter to a pointer.
8665 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8666 Assume FSR parameter is a pointer.
8667 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8668 Make fsr a pointer.
8669 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8670 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8671 saved_regs a pointer.
8672 (hppa_frame_saved_pc): Ditto.
8673 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8674 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8675 pointer.
8676 (restore_pc_queue): Make fsr a pointer.
8677 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8678 (hppa_frame_chain): Make saved_regs a pointer, call
8679 hppa_frame_init_saved_regs.
8680 * sparc-tdep.c: Include "gdb_assert.h".
8681 (sparc_frame_find_saved_regs): Replace internal_error with
8682 gdb_assert.
8683 * remote-vxsparc.c (vx_read_register): Delete reference to
8684 FRAME_FIND_SAVED_REGS.
8685 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8686 * gdbarch.h: Regenerate.
8687 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8688 (deprecated_get_frame_saved_regs): Delete declaration.
8689 (struct frame_saved_regs): Delete definition.
8690 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8691 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8692 (hppa_frame_find_saved_regs): Delete declaration.
8693 (FRAME_FIND_SAVED_REGS): Delete macro.
8694 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8695 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8696 FRAME_FIND_SAVED_REGS in comment.
8697
be41e9f4
AC
86982003-04-05 Andrew Cagney <cagney@redhat.com>
8699
8700 * frame.c (frame_func_unwind, get_frame_func): New functions.
8701 * frame.h (get_frame_func, frame_func_unwind): Declare.
8702 (struct frame_info): Add field "prev_func" for caching the
8703 previous frame's function address.
8704 * arm-tdep.c (arm_frameless_function_invocation): Combine
8705 get_pc_function_start and get_frame_pc into get_frame_func.
8706 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8707 (sh64_nofp_frame_init_saved_regs): Ditto.
8708 * s390-tdep.c (s390_function_start): Ditto.
8709 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8710 (rs6000_frameless_function_invocation): Ditto.
8711 (rs6000_frame_saved_pc): Ditto.
8712 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8713 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8714 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8715 (i386_frame_init_saved_regs): Ditto.
8716 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8717 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8718 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8719 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8720 * blockframe.c (frameless_look_for_prologue): Ditto.
8721
a01dd7cc
AC
87222003-04-05 Andrew Cagney <cagney@redhat.com>
8723
8724 * frame.c (legacy_get_prev_frame): Link prev to next at the
8725 function start. Update comments.
8726
5e5592e6
AC
87272003-04-05 Andrew Cagney <cagney@redhat.com>
8728
8729 * frame.c (get_frame_id): Update comment.
8730 (legacy_get_prev_frame): Update comment.
8731 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8732 * gdbarch.h: Regenerate.
8733 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8734 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8735
6fba5002
AC
87362003-04-05 Andrew Cagney <cagney@redhat.com>
8737
8738 * stack.c (print_frame_info): Use get_frame_pc.
8739
7df05f2b
AC
87402003-04-04 Andrew Cagney <cagney@redhat.com>
8741
8742 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8743 the frame's type from the unwinder.
8744 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8745 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8746 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8747 (get_frame_base_address): Use get_frame_type.
8748 (get_frame_locals_address, get_frame_args_address): Ditto.
8749 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8750 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8751 (struct frame_info): Add comment explaining why the frame contains
8752 a "type" field.
8753 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8754 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8755 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8756 NORMAL_FRAME.
8757 * frame-unwind.h: Include "frame.h".
8758 (struct frame_unwind): Add "type" field.
8759 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8760
11889732
AC
87612003-04-04 Andrew Cagney <cagney@redhat.com>
8762
8763 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8764 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8765 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8766 get_frame_base.
8767 (d10v_unwind_dummy_id): Use frame_id_build.
8768 * frame.c (find_frame_sal): Use get_frame_pc.
8769 (create_new_frame): Use deprecated_update_frame_pc_hack and
8770 deprecated_update_frame_base_hack.
8771 (create_sentinel_frame): Add comment about ->pc going away.
8772 (get_prev_frame): Add comment about ->pc going away.
8773 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8774 frame_id_build, deprecated_update_frame_pc_hack and
8775 deprecated_update_frame_base_hack.
8776 (select_frame): Use get_frame_pc.
8777 (legacy_saved_regs_this_id): Use frame_id_build.
8778
50c46a0d
EZ
87792003-04-04 Elena Zannoni <ezannoni@redhat.com>
8780
fbe586ae
RH
8781 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8782 signed integer case.
8783 (classify_argument): Handle enumerations and references.
50c46a0d 8784
50bbdbd9
AC
87852003-04-04 Andrew Cagney <cagney@redhat.com>
8786
8787 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8788 ID to NULL.
8789
36018d2e
AF
87902003-04-01 Adam Fedor <fedor@gnu.org>
8791
8792 * gdb/objc-lang.c (selectors_info): Replace calls to
8793 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8794 SYMBOL_NATURAL_NAME.
8795 (classes_info, find_methods): Likewise.
8796
35cec841
KB
87972003-04-03 Kevin Buettner <kevinb@redhat.com>
8798
8799 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8800 ``mach'' to the value determined by bfd_default_set_arch_mach().
8801
43136899
BR
88022003-04-02 Bob Rossi <bob_rossi@cox.net>
8803
8804 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8805 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8806 (mi-cmd-file.o): Update dependencies.
8807
040b99fd
KB
88082003-04-01 Kevin Buettner <kevinb@redhat.com>
8809
8810 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8811 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8812
9a3d7dfd
AF
88132003-04-01 Adam Fedor <fedor@gnu.org>
8814
8815 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8816 * language.h (struct language_defn): Add la_demangle.
8817 (language_demangle): Declare.
8818 * language.c (language_demangle): New function.
8819 (unk_lang_demangle): Likewise.
8820 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8821 Add ukn_lang_demangle.
9a3d7dfd 8822 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8823 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8824 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8825 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8826 * jv-lang.c (java_demangle): New function
8827 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8828 * objc-lang.c (objc_demangle): Add options argument
8829 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8830 * maint.c (maintenance_demangle): Replace switch with
8831 call to language_demangle.
8832 * utils.c (fprintf_symbol_filtered): Likewise.
8833
5e074003
AC
88342003-04-01 Andrew Cagney <cagney@redhat.com>
8835
8836 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8837 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8838 PRINT_TYPELESS_INTEGER.
8839 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8840 PUSH_RETURN_ADDRESS.
8841
270cb5d6
AC
88422003-04-01 Andrew Cagney <cagney@redhat.com>
8843
8844 * Makefile.in (d10v-tdep.o): Update dependencies.
8845 * d10v-tdep.c: Include "frame-base.h".
8846 (d10v_frame_unwind): Make constant.
8847 (d10v_frame_base_address): New function.
8848 (d10v_frame_base): New variable.
8849 (d10v_gdbarch_init): Set frame_base default.
8850 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8851 comment for base.
8852 (d10v_frame_unwind_cache): Set and use "prev_sp".
8853 (d10v_frame_this_id): Use the previous frame's inner most stack
8854 address and this frame's func address for the frame ID. Use
8855 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8856
6bfb3e36
AC
88572003-04-01 Andrew Cagney <cagney@redhat.com>
8858
8859 * frame.h (get_frame_locals_address, get_frame_args_address):
8860 Refer to the base address, instead of the address of the first
8861 local or parameter.
8ffd9b1b 8862
da62e633
AC
88632003-04-01 Andrew Cagney <cagney@redhat.com>
8864
8865 Add frame debug info addresses:
8866 * frame-base.c: New file.
8867 * frame-base.h: New file.
8868 * frame.h (struct frame_base): Add opaque declaration.
8869 (get_frame_base): Update comment.
8870 (get_frame_base_address): Declare.
8871 (get_frame_locals_address): Declare.
8872 (get_frame_args_address): Declare.
8873 (struct frame_info): Add "base" and "base_cache". Update
8874 comments on the unwinder.
8875 * frame.c: Include "frame-base.h".
8876 (get_frame_locals_address): New function.
8877 (get_frame_base_address): New function.
8878 (get_frame_args_address): New function.
8879 * findvar.c (read_var_value): Use get_frame_locals_address and
8880 get_frame_args_address.
8881 * stack.c (frame_info): Use get_frame_locals_address and
8882 get_frame_args_address.
8883 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8884 moved to "frame-base.c".
8885 * printcmd.c (print_frame_nameless_args): Ditto.
8886 * symtab.h (address_class): Update comments.
8887 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8888 get_frame_base_address.
8889 * dwarf2expr.c (execute_stack_op): Ditto.
8890 * Makefile.in (frame_base_h): Define.
8891 (frame.o): Update dependencies.
8892 (frame-base.o): Add dependencies.
8893 (SFILES): Add frame-base.c.
8894 (COMMON_OBS): Add frame-base.o.
8895
3d30e9c2
AC
88962003-04-01 Andrew Cagney <cagney@redhat.com>
8897
8898 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8899 CALL_DUMMY_LENGTH): Ditto.
8900 * gdbarch.c: Re-generate.
8901 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8902 (CALL_DUMMY_LENGTH): Delete macro.
8903 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8904 * arm-tdep.c (arm_gdbarch_init): Ditto.
8905 * avr-tdep.c (avr_gdbarch_init): Ditto.
8906 * cris-tdep.c (cris_gdbarch_init): Ditto.
8907 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8908 * frv-tdep.c (frv_gdbarch_init): Ditto.
8909 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8910 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8911 * i386-tdep.c (i386_gdbarch_init): Ditto.
8912 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8913 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8914 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8915 * mips-tdep.c (mips_gdbarch_init): Ditto.
8916 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8917 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8918 * s390-tdep.c (s390_gdbarch_init): Ditto.
8919 * sh-tdep.c (sh_gdbarch_init): Ditto.
8920 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8921 * v850-tdep.c (v850_gdbarch_init): Ditto.
8922 * vax-tdep.c (vax_gdbarch_init): Ditto.
8923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8924
ce0c7262
CV
89252003-04-01 Corinna Vinschen <vinschen@redhat.com>
8926
8927 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8928
73dd234f
AC
89292003-04-01 Andrew Cagney <cagney@redhat.com>
8930
8931 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8932 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8933 * gdbarch.h, gdbarch.c: Re-generate.
8934 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8935 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8936 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8937 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8938 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8939 * infcmd.c (run_stack_dummy): Simplify assuming
8940 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8941 * infrun.c (handle_inferior_event): Ditto.
8942 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8943 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8944 * arm-tdep.c (arm_gdbarch_init): Ditto.
8945 * avr-tdep.c (avr_gdbarch_init): Ditto.
8946 * cris-tdep.c (cris_gdbarch_init): Ditto.
8947 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8948 * frv-tdep.c (frv_gdbarch_init): Ditto.
8949 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8950 * i386-tdep.c (i386_gdbarch_init): Ditto.
8951 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8953 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8954 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8955 * mips-tdep.c (mips_gdbarch_init): Ditto.
8956 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8957 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8958 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8959 * s390-tdep.c (s390_gdbarch_init): Ditto.
8960 * sh-tdep.c (sh_gdbarch_init): Ditto.
8961 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8962 * v850-tdep.c (v850_gdbarch_init): Ditto.
8963 * vax-tdep.c (vax_gdbarch_init): Ditto.
8964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8965
97606a13
DJ
89662003-04-01 Daniel Jacobowitz <drow@mvista.com>
8967
8968 * symfile.c (symfile_relocate_debug_section): Update call to
8969 bfd_simple_get_relocated_section_contents.
8970
e8ab51f7
AC
89712003-03-31 Andrew Cagney <cagney@redhat.com>
8972
8973 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8974 * gdbarch.h, gdbarch.c: Regenerate.
8975 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8976 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8977 available.
8978 * frame.h (generic_fix_call_dummy): Delete declaration.
8979 * dummy-frame.h: Update comment.
8980 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8981 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8982 fix_call_dummy.
8983 * sh-tdep.c (sh_gdbarch_init): Ditto.
8984 * s390-tdep.c (s390_gdbarch_init): Ditto.
8985 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8986 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8988 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8989 * i386-tdep.c (i386_gdbarch_init): Ditto.
8990 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8991 * frv-tdep.c (frv_gdbarch_init): Ditto.
8992 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8993 * cris-tdep.c (cris_gdbarch_init): Ditto.
8994 * avr-tdep.c (avr_gdbarch_init): Ditto.
8995 * arm-tdep.c (arm_gdbarch_init): Ditto.
8996
018d1b48
JB
89972003-03-31 J. Brobecker <brobecker@gnat.com>
8998
8999 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9000 (INIT_FRAME_AP): Likewise.
9001 (EXTRA_FRAME_INFO): Likewise.
9002
e9a2674e
AC
90032003-03-31 Andrew Cagney <cagney@redhat.com>
9004
9005 * gdbarch.sh: Include "symfile.h".
9006 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9007 * gdbarch.h, gdbarch.c: Re-generate.
9008 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9010 call_dummy_address, the default is at entry_point_address.
9011 * v850-tdep.c (v850_gdbarch_init): Ditto.
9012 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9013 * sh-tdep.c (sh_gdbarch_init): Ditto.
9014 * s390-tdep.c (s390_gdbarch_init): Ditto.
9015 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9016 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9017 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9018 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9019 * i386-tdep.c (i386_gdbarch_init): Ditto.
9020 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9021 * frv-tdep.c (frv_gdbarch_init): Ditto.
9022 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9023 * cris-tdep.c (cris_gdbarch_init): Ditto.
9024 * arm-tdep.c (arm_gdbarch_init): Ditto.
9025
e8a8712a
AC
90262003-03-31 Andrew Cagney <cagney@redhat.com>
9027
9028 * gdbarch.sh (CALL_DUMMY_P): Delete.
9029 * gdbarch.h, gdbarch.c: Re-generate.
9030 * inferior.h (CALL_DUMMY_P): Delete macro.
9031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9032 * vax-tdep.c (vax_gdbarch_init): Update.
9033 * v850-tdep.c (v850_gdbarch_init): Update.
9034 * sparc-tdep.c (sparc_gdbarch_init): Update.
9035 * sh-tdep.c (sh_gdbarch_init): Update.
9036 * s390-tdep.c (s390_gdbarch_init): Update.
9037 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9038 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9039 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9040 * mips-tdep.c (mips_gdbarch_init): Update.
9041 * mcore-tdep.c (mcore_gdbarch_init): Update.
9042 * m68k-tdep.c (m68k_gdbarch_init): Update.
9043 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9044 * ia64-tdep.c (ia64_gdbarch_init): Update.
9045 * i386-tdep.c (i386_gdbarch_init): Update.
9046 * h8300-tdep.c (h8300_gdbarch_init): Update.
9047 * frv-tdep.c (frv_gdbarch_init): Update.
9048 * d10v-tdep.c (d10v_gdbarch_init): Update.
9049 * cris-tdep.c (cris_gdbarch_init): Update.
9050 * breakpoint.c (deprecated_frame_in_dummy): Update.
9051 * avr-tdep.c (avr_gdbarch_init): Update.
9052 * alpha-tdep.c (alpha_gdbarch_init): Update.
9053 * arm-tdep.c (arm_gdbarch_init): Update.
9054 * dummy-frame.c (dummy_frame_this_id): Update comments.
9055 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9056 * frame.c (legacy_get_prev_frame): Ditto.
9057 * valops.c (call_function_by_hand): Delete function.
9058 (hand_function_call): Rename to call_function_by_hand
9059
ed234cf8
AC
90602003-03-30 Andrew Cagney <cagney@redhat.com>
9061
9062 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9063 * value.h (struct value): Update comment.
ed234cf8 9064
06c77151
AC
90652003-03-30 Andrew Cagney <cagney@redhat.com>
9066
6c2b5168
AC
9067 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9068 D10V_FP_REGNUM.
9069 (d10v_gdbarch_init): Do not set fp_regnum.
9070
06c77151
AC
9071 * frame.c (get_frame_base): Force ID initialization.
9072 (get_prev_frame): Move computation of the frame ID from here ...
9073 (get_frame_id): ... to here.
9074 (legacy_get_prev_frame): Mark the frame ID as valid.
9075 * frame.h (struct frame_info): Add field "id_p".
9076
97a1a11c
MK
90772003-03-30 Mark Kettenis <kettenis@gnu.org>
9078
9079 * i386-tdep.c (i386_store_struct_return): Removed.
9080 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9081
6c0e89ed
AC
90822003-03-30 Andrew Cagney <cagney@redhat.com>
9083
9084 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9085 * gdbarch.h, gdbarch.c: Regenerate.
9086 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9087 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9088 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9089 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9090 * i386-tdep.c (i386_gdbarch_init): Ditto.
9091 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9092 * cris-tdep.c (cris_gdbarch_init): Ditto.
9093 * vax-tdep.c (vax_gdbarch_init): Ditto.
9094 * s390-tdep.c (s390_gdbarch_init): Ditto.
9095 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9096 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9097 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9098 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9099 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9100 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9101 * sparc-tdep.c (sparc_gdbarch_init): Update.
9102 * sh-tdep.c (sh_gdbarch_init): Update.
9103 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9104 * mips-tdep.c (mips_gdbarch_init): Update.
9105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9106 * ia64-tdep.c (ia64_gdbarch_init): Update.
9107 * frv-tdep.c (frv_gdbarch_init): Update.
9108 * avr-tdep.c (avr_gdbarch_init): Update.
9109 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9110 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9111 instead of when push_dummy_call is not available.
8ffd9b1b 9112
f7dd6af2
AC
91132003-03-30 Andrew Cagney <cagney@redhat.com>
9114
9115 * infttrace.c: Include "gdbthread.h".
9116 (parent_attach_all): Fix function signature.
9117 (call_ptrace): Update call.
9118 * Makefile.in (infttrace.o): Update dependencies.
9119
28f617b3
AC
91202003-03-30 Andrew Cagney <cagney@redhat.com>
9121
9122 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9123 PUSH_RETURN_ADDRESS.
9124 * gdbarch.h, gdbarch.c: Regenerate.
9125 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9126 * x86-64-tdep.c (x86_64_init_abi): Update.
9127 * v850-tdep.c (v850_gdbarch_init): Update.
9128 * sparc-tdep.c (sparc_gdbarch_init): Update.
9129 * sh-tdep.c (sh_gdbarch_init): Update.
9130 * s390-tdep.c (s390_gdbarch_init): Update.
9131 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9132 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9133 * mips-tdep.c (mips_gdbarch_init): Update.
9134 * mcore-tdep.c (mcore_gdbarch_init): Update.
9135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9136 * ia64-tdep.c (ia64_gdbarch_init): Update.
9137 * i386-tdep.c (i386_gdbarch_init): Update.
9138 * h8300-tdep.c (h8300_gdbarch_init): Update.
9139 * frv-tdep.c (frv_gdbarch_init): Update.
9140 * cris-tdep.c (cris_gdbarch_init): Update.
9141 * avr-tdep.c (avr_gdbarch_init): Update.
9142 * arm-tdep.c (arm_gdbarch_init): Update.
9143 * valops.c (hand_function_call): Update.
9144
4d628cd7
AC
91452003-03-29 Andrew Cagney <cagney@redhat.com>
9146
9147 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9148 sizeof_call_dummy_words.
9149 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9150 define.
9151 * gdbarch.h: Regenerate.
8ffd9b1b 9152
65e82032
AC
91532003-03-29 Andrew Cagney <cagney@redhat.com>
9154
9155 * infttrace.h: New file.
9156 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9157 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9158 (hpread_read_doc_function_type): Detect an initialized type1.
9159 (hpread_quick_traverse): Initialize mod_name_string.
9160 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9161 (som_solib_get_solib_by_pc): Declare.
9162 (so_lib_thread_start_addr): Declare.
9163 (no_shared_libraries): Declare.
9164 * somread.c (init_import_symbols): Make static. Add forward
9165 declaration.
9166 * config/pa/nm-hppah.h: Include "infttrace.h" for
9167 parent_attach_all.
9168 (hppa_insert_hw_watchpoint): Declare.
9169 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9170 * hppah-nat.c: Include "gdb_string.h".
9171 (parent_attach_all): Delete extern declaration, moved to
9172 "infttrace.h".
9173 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9174 int.
9175 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9176 * Makefile.in (infttrace_h): Define.
9177 (hpread.o): Update dependencies.
9178 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9179 * hppa-hpux-tdep.c: Include "gdb_string.h".
9180 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9181 * infrun.c (handle_inferior_event): Always initialize
9182 stepped_after_stopped_by_watchpoint. Add default and remove
9183 fallthrough in switch statement.
9184 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9185 parameter to int.
9186 (hppa_remove_hw_watchpoint): Ditto.
9187
2c3bbe77
AC
91882003-03-29 Andrew Cagney <cagney@redhat.com>
9189
9190 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9191 offset.
9192
2dd604e7
RE
91932003-03-29 Richard Earnshaw <rearnsha@arm.com>
9194
9195 * arm-tdep.c (arm_push_arguments): Delete.
9196 (struct stack_item): New type.
9197 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9198 (arm_store_struct_return): Delte.
9199 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9200 arm_push_arguments or arm_store_struct_return.
9201
e8933a55
AC
92022003-03-28 Andrew Cagney <cagney@redhat.com>
9203
9204 * Makefile.in (d10v-tdep.o): Update dependencies.
9205 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9206 * d10v-tdep.c: Include "remote.h".
9207 (target_resume_hook): Delete extern declaration.
9208 (target_wait_loop_hook): Ditto.
9209 (tdisassemble_command): Eliminate assignment in "if" conditional.
9210 (d10v_ts2_register_sim_regno): Eliminate call to
9211 legacy_register_sim_regno.
9212 (d10v_ts3_register_sim_regno): Ditto.
9213
6949171e
JJ
92142003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9215
9216 * thread.c: Reindented.
9217 * lin-lwp.c: Ditto.
9218 * linux-proc.c: Ditto.
9219
98c7071f
BR
92202003-03-28 Bob Rossi <bob_rossi@cox.net>
9221
fbe586ae 9222 * MAINTAINERS (write after approval): Add myself.
98c7071f 9223
5edc9ca6
TR
92242003-03-27 Theodore A. Roth <troth@openavr.org>
9225
9226 * objc-exp.y: Add missing semi-colons.
9227
378bfd1b
AC
92282003-03-27 Andrew Cagney <cagney@redhat.com>
9229
9230 * regcache.c (write_sp): Delete function and references.
9231 * inferior.h (write_sp): Delete declaration.
9232 * valops.c (hand_function_call): Replace write_sp with
9233 TARGET_WRITE_SP.
9234 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9235 (sparc_pop_frame): Ditto.
8ffd9b1b 9236
56056df7
AC
92372003-03-27 Andrew Cagney <cagney@redhat.com>
9238
9239 * NEWS: Mention removal of support for hppa*-*-bsd* and
9240 hppa*-*-osf* natives, and hppa*-*-pro* target.
9241 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9242 * config/pa/xm-pa.h: Obsolete file.
9243 * config/pa/xm-hppab.h: Obsolete file.
9244 * config/pa/nm-hppab.h: Obsolete file.
9245 * config/pa/tm-hppab.h: Obsolete file.
9246 * config/pa/tm-hppao.h: Obsolete file.
9247 * config/pa/nm-hppao.h: Obsolete file.
9248 * config/pa/tm-pro.h: Obsolete file.
9249 * config/pa/hppaosf.mt: Obsolete file.
9250 * config/pa/hppaosf.mh: Obsolete file.
9251 * config/pa/hppapro.mt: Obsolete file.
9252 * config/pa/hppabsd.mt: Obsolete file.
9253 * config/pa/hppabsd.mh: Obsolete file.
9254 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9255 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9256 hppa*-*-osf*.
9257
5873a88d
AC
92582003-03-27 Andrew Cagney <cagney@redhat.com>
9259
9260 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9261 push_arguments. Don't set push_return_address or write_sp.
9262 (d10v_push_dummy_call): Replace d10v_push_arguments.
9263 (d10v_push_return_address, d10v_write_sp): Delete function,
9264 handled by push_dummy_call.
9265
b81774d8
AC
92662003-03-26 Andrew Cagney <cagney@redhat.com>
9267
9268 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9269 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9270 regcache and dummy_addr parameters.
9271 * gdbarch.h, gdbarch.c: Re-generate.
9272 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9273 available; assume it will handle stack alignment and return
9274 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9275 legacy_push_arguments.
9276 (legacy_push_arguments): Rename default_push_arguments.
9277 * value.h (legacy_push_arguments): Rename default_push_arguments.
9278 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9279 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9280 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9281 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9282 * config/i386/tm-symmetry.h: Update.
9283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9284 * x86-64-tdep.c (x86_64_init_abi): Update.
9285 * v850-tdep.c (v850_gdbarch_init): Update.
9286 * sparc-tdep.c (sparc_gdbarch_init): Update.
9287 * sh-tdep.c (sh_gdbarch_init): Update.
9288 * s390-tdep.c (s390_gdbarch_init): Update.
9289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9290 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9291 * mips-tdep.c (mips_gdbarch_init): Update.
9292 * mcore-tdep.c (mcore_gdbarch_init): Update.
9293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9294 * ia64-tdep.c (ia64_gdbarch_init): Update.
9295 * i386-tdep.c (i386_gdbarch_init): Update.
9296 * hppa-tdep.c (hppa_gdbarch_init): Update.
9297 * h8300-tdep.c (h8300_gdbarch_init): Update.
9298 * frv-tdep.c (frv_gdbarch_init): Update.
9299 * d10v-tdep.c (d10v_gdbarch_init): Update.
9300 * cris-tdep.c (cris_gdbarch_init): Update.
9301 * avr-tdep.c (avr_gdbarch_init): Update.
9302 * arm-tdep.c (arm_gdbarch_init): Update.
9303 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9304 * alpha-tdep.c (alpha_gdbarch_init): Update.
9305
f541410f
DJ
93062003-03-26 Daniel Jacobowitz <drow@mvista.com>
9307
9308 * signals/signals.c (do_target_signal_to_host): Correct realtime
9309 signal range test.
9310
69f567ae
DJ
93112003-03-26 Daniel Jacobowitz <drow@mvista.com>
9312
9313 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9314 (struct sal_chain, map_catch_names): Remove.
9315 (catch_exception_command_1): Don't call
9316 handle_gnu_4_16_catch_command.
9317
d5d14a5a
DJ
93182003-03-26 Daniel Jacobowitz <drow@mvista.com>
9319
9320 From Mark Dettinger <dettinge@de.ibm.com>:
9321 * dwarf2cfi.c (read_2u): Increment pointer by two.
9322
bdd73e22
DJ
93232003-03-26 Daniel Jacobowitz <drow@mvista.com>
9324
9325 * signals/signals.c: Fix typos in last change.
9326
960cb555
DJ
93272003-03-26 Daniel Jacobowitz <drow@mvista.com>
9328
9329 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9330 not already defined. Use __SIGRTMIN if available.
9331 (target_signal_from_host): Remove SIGRTMIN block.
9332 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9333 the signal is within the realtime range.
9334
f636b87d
AF
93352003-03-25 Adam Fedor <fedor@gnu.org>
9336
9337 * Makefile.in (infrun.o): Add $(language_h)
9338 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9339 for language specific trampolines.
9340 * language.h (struct language_defn): Add skip_trampoline.
9341 (skip_language_trampoline): Declare.
9342 * language.c (unk_lang_trampoline, skip_language_trampoline):
9343 New functions.
9344 (unknown_language_defn, auto_language_defn, local_language_defn):
9345 Add ukn_lang_trampoline.
9346 * ada-lang.c (ada_language_defn): Add NULL for language
9347 specific skip_trampoline.
9348 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9349 scm-lang.c: Likewise.
9350 * objc-lang.c (objc_skip_trampoline): New function.
9351 (objc_language_defn): Add objc_skip_trampoline.
9352
28f617b3 93532003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9354
9355 * frame.c (get_prev_frame): Delay validating a frame's ID -
9356 non-NULL, didn't go backwards - until an attempt to unwind it to
9357 the previous frame.
9358
f933a9c5
AC
93592003-03-25 Andrew Cagney <cagney@redhat.com>
9360
9361 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9362 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9363 * gdbarch.h, gdbarch.c: Re-generate.
9364 * config/sparc/tm-sparc.h
9365 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9366 * sparc-tdep.c (sparc_gdbarch_init): Set
9367 deprecated_extra_stack_alignment_needed.
9368 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9370 extra_stack_alignment_needed.
9371 * v850-tdep.c (v850_gdbarch_init): Ditto.
9372 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9373 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9374 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9375 * cris-tdep.c (cris_gdbarch_init): Ditto.
9376 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9378
4183d812
AC
93792003-03-25 Andrew Cagney <cagney@redhat.com>
9380
9381 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9382 STORE_STRUCT_RETURN.
9383 * gdbarch.h, gdbarch.c: Regenerate.
9384 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9385 (d10v_push_arguments): Set the struct return register.
9386 (d10v_gdbarch_init): Update.
9387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9388 * x86-64-tdep.c (x86_64_init_abi): Update.
9389 * vax-tdep.c (vax_gdbarch_init): Update.
9390 * v850-tdep.c (v850_gdbarch_init): Update.
9391 * sparc-tdep.c (sparc_gdbarch_init): Update.
9392 * sh-tdep.c (sh_gdbarch_init): Update.
9393 * s390-tdep.c (s390_gdbarch_init): Update.
9394 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9395 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9396 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9397 * mips-tdep.c (mips_gdbarch_init): Update.
9398 * mcore-tdep.c (mcore_gdbarch_init): Update.
9399 * m68k-tdep.c (m68k_gdbarch_init): Update.
9400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9401 * ia64-tdep.c (ia64_gdbarch_init): Update.
9402 * i386-tdep.c (i386_gdbarch_init): Update.
9403 * hppa-tdep.c (hppa_gdbarch_init): Update.
9404 * h8300-tdep.c (h8300_gdbarch_init): Update.
9405 * frv-tdep.c (frv_gdbarch_init): Update.
9406 * cris-tdep.c (cris_gdbarch_init): Update.
9407 * avr-tdep.c (avr_gdbarch_init): Update.
9408 * arm-tdep.c (arm_gdbarch_init): Update.
9409 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9410
1bf6d5cc
AC
94112003-03-25 Andrew Cagney <cagney@redhat.com>
9412
9413 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9414 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9415 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9416 * gdbarch.h, gdbarch.c: Regenerate.
9417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9418 call_dummy_stack_adjust_p.
9419 * vax-tdep.c (vax_gdbarch_init): Ditto.
9420 * v850-tdep.c (v850_gdbarch_init): Ditto.
9421 * sh-tdep.c (sh_gdbarch_init): Ditto.
9422 * s390-tdep.c (s390_gdbarch_init): Ditto.
9423 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9424 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9425 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9426 * mips-tdep.c (mips_gdbarch_init): Ditto.
9427 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9428 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9430 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9431 * i386-tdep.c (i386_gdbarch_init): Ditto.
9432 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9433 * frv-tdep.c (frv_gdbarch_init): Ditto.
9434 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9435 * cris-tdep.c (cris_gdbarch_init): Ditto.
9436 * avr-tdep.c (avr_gdbarch_init): Ditto.
9437 * arm-tdep.c (arm_gdbarch_init): Ditto.
9438 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9439 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9440 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9441 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9442 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9443 call_dummy_stack_adjust_p.
9444 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9445 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9446 * sparc-tdep.c (sparc32_push_arguments): Update.
9447 * valops.c (hand_function_call): Update.
9448
71c08af0
CV
94492003-03-25 Corinna Vinschen <vinschen@redhat.com>
9450
9451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9452 set_gdbarch_char_signed.
9453
30757f90
RE
94542003-03-25 Richard Earnshaw <rearnsha@arm.com>
9455
9456 PR cli/548
9457 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9458
03d48a7d
RE
94592003-03-25 Richard Earnshaw <rearnsha@arm.com>
9460
9461 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9462 (_initialize_arm_tdep): Don't set tm_print_insn.
9463
2cf6873c
AF
94642003-03-24 Adam Fedor <fedor@gnu.org>
9465
9466 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9467 * objc-lang.h: Add multiple inclusion protection.
9468 (start_msglist, add_msglist, end_msglist): Additional declarations.
9469
17c0759e
RE
94702003-03-24 Richard Earnshaw <rearnsha@arm.com>
9471
9472 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9473 value was renamed to ARM_FLOAT_SOFT_FPA.
9474
618ce49f
AC
94752003-03-23 Andrew Cagney <cagney@redhat.com>
9476
9477 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9478 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9479 * gdbarch.h, gdbarch.c: Regenerate.
9480 * valops.c (hand_function_call): Update.
9481 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9482 * frame.c (legacy_saved_regs_this_id): Update.
9483 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9484 * dummy-frame.h: Update.
9485 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9486 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9487 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9488 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9489 * config/m68k/tm-sun3.h: Update.
9490 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9492 * x86-64-tdep.c (x86_64_init_abi): Update.
9493 * vax-tdep.c (vax_gdbarch_init): Update.
9494 * v850-tdep.c (v850_gdbarch_init): Update.
9495 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9496 * sh-tdep.c (sh_gdbarch_init): Update.
9497 * s390-tdep.c (s390_gdbarch_init): Update.
9498 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9499 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9500 (frame_get_saved_regs): Update.
9501 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9502 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9503 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9504 * mips-tdep.c (mips_gdbarch_init): Update.
9505 * mcore-tdep.c (mcore_gdbarch_init): Update.
9506 * m68k-tdep.c (m68k_gdbarch_init): Update.
9507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9508 * ia64-tdep.c (ia64_gdbarch_init): Update.
9509 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9510 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9511 (i386_interix_back_one_frame): Update.
9512 * hppa-tdep.c (hppa_gdbarch_init): Update.
9513 (hppa_init_extra_frame_info): Update.
9514 * h8300-tdep.c (h8300_gdbarch_init): Update.
9515 * frv-tdep.c (frv_gdbarch_init): Update.
9516 * cris-tdep.c (cris_gdbarch_init): Update.
9517 * avr-tdep.c (avr_gdbarch_init): Update.
9518 * arm-tdep.c (arm_gdbarch_init): Update.
9519 * alpha-tdep.c (alpha_gdbarch_init): Update.
9520
fd50bc42
RE
95212003-03-22 Richard Earnshaw <rearnsha@arm.com>
9522
9523 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9524 (arm_get_fp_model): Declare.
9525 * arm-tdep.c (fp_model_strings): New string array.
9526 (arm_fp_model, current_fp_model): New variables.
9527 (arm_get_fp_model): New function.
9528 (arm_set_fp): New function.
9529 (set_fp_model_sfunc): New function.
9530 (show_fp_model): New function.
9531 (_initialize_arm_tdep): Add new command to set/show the FPU.
9532 (arm_extract_return_value): Use arm_get_fp_model.
9533 (arm_store_return_value): Likewise.
9534 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9535 to initialize the floating-point data types.
9536 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9537 model is FPA.
9538
26304000
RE
95392003-03-22 Richard Earnshaw <rearnsha@arm.com>
9540
9541 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9542 the current setting of each value.
9543 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9544 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9545 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9546 commands and add new version as subcommands of "set/show arm".
9547
afd7eef0
RE
95482003-03-22 Richard Earnshaw <rearnsha@arm.com>
9549
9550 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9551 (set_arm_command, show_arm_command): New functions.
9552 (_initialize_arm_tdep): Add them.
9553 (num_disassembly_options): Renamed from num_flavor_options.
9554 (valid_disassembly_styles): Renamed from valid_flavors.
9555 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9556 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9557 set_disassembly_flavor_sfunc.
9558 (set_disassembly_style): Renamed from set_disassembly_flavor.
9559 (arm_othernames): Updated.
9560 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9561 command. Add "set/show arm disassembly" commands. Deprecate
9562 "othernames" command.
9563
299a7944
RE
95642003-03-22 Richard Earnshaw <rearnsha@arm.com>
9565
9566 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9567 (arm-tdep.o): Depend on elf_arm_h.
9568
c1dac9e6
RE
95692003-03-22 Richard Earnshaw <rearnsha@arm.com>
9570
9571 * Makefile.in (coff_internal_h): Define.
9572 (arm-tdep.o): Update dependencies.
9573
2702d96c
RE
95742003-03-22 Richard Earnshaw <rearnsha@arm.com>
9575
9576 * arm-tdep.c (prologue_cache): Delete.
9577 (check_prologue_cache, save_prologue_cache): Delete.
9578 (arm_scan_prologue): Don't check or update the prologue_cache.
9579 (arm_gdb_arch_init): Don't initialize it.
9580 (_initialize_arm_tdep): Likewise.
9581
27d5d74b
SC
95822003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9583
9584 * MAINTAINERS (tui): Maintainer of tui code.
9585
1762d96d
CV
95862003-03-21 Corinna Vinschen <vinschen@redhat.com>
9587
9588 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9589 (i386-cygwin-tdep.o): Add dependencies.
9590 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9591 * i386-cygwin-tdep.c: New file.
9592 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9593 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9594
4c2e2391
AC
95952003-03-20 Andrew Cagney <cagney@redhat.com>
9596
f20d38b7
AC
9597 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9598 (handle_inferior_event): Remove code calling
9599 DYNAMIC_TRAMPOLINE_NEXTPC.
9600
0022b738
AC
9601 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9602 already has a full path.
9603
864dbc90
AC
9604 * main.c (gdb_main): Return 1.
9605 (captured_main): Call error to report an invalid interpreter.
9606
4c2e2391
AC
9607 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9608 * alpha-osf1-tdep.c: Include "gdb_string.h".
9609
5ef7553b
JB
96102003-03-19 J. Brobecker <brobecker@gnat.com>
9611
9612 Continuing work to convert the hppa targets to multiarch partial.
9613
9614 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9615 method, now that hppa_push_dummy_frame has a conformant prototype.
9616 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9617 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9618 for the switch to multiarch partial.
9619
7bde8967
KB
96202003-03-19 Kevin Buettner <kevinb@redhat.com>
9621
9622 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9623 when iss is issNull.
9624
b006a9e9
KB
96252003-03-18 Kevin Buettner <kevinb@redhat.com>
9626
9627 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9628 NUM_REGS bounds check.
9629
5e2e9765
KB
96302003-03-18 Kevin Buettner <kevinb@redhat.com>
9631
9632 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9633 * mips-tdep.c (gdb_assert.h): Include.
9634 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9635 (mips_register_name): Handle integer registers explicitly. Add
9636 bounds checking.
9637 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9638 (mips_lsi33k_reg_names): Don't list integer registers; they're
9639 handled by mips_register_name() now.
9640 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9641 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9642 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9643 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9644 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9645
a2867626
AC
96462003-03-18 Andrew Cagney <cagney@redhat.com>
9647
9648 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9649 a void pointer.
9650 * gdbtypes.h (print_scalar_formatted): Update declaration.
9651 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9652
06600e06
JB
96532003-03-18 J. Brobecker <brobecker@gnat.com>
9654
9655 * infrun.c (observer.h): Add #include.
9656 (normal_stop): Add call to observer_notify_normal_stop.
9657 * Makefile.in (infrun.o): Add dependency on observer.h.
9658
7daf4f5b
JB
96592003-03-18 J. Brobecker <brobecker@gnat.com>
9660
9661 Continuing work to convert the hppa targets to multiarch partial.
9662 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9663 parameter. Reformat comment.
9664 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9665 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9666 to match new profile.
9667
3371ccc0
JB
96682003-03-18 J. Brobecker <brobecker@gnat.com>
9669
9670 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9671 appear to be working in any case.
9672
4fbe891e
JB
96732003-03-18 J. Brobecker <brobecker@gnat.com>
9674
9675 * observer.c (observer_test_first_observer): New static variable.
9676 (observer_test_second_observer): Likewise.
9677 (observer_test_third_observer): Likewise.
9678 (observer_test_first_notification_function): New static function.
9679 (observer_test_second_notification_function): Likewise.
9680 (observer_test_third_notification_function): Likewise.
9681
a7ff40e7
JB
96822003-03-17 J. Brobecker <brobecker@gnat.com>
9683
9684 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9685 * somsolib.c (gdb_assert.h): Likewise.
9686 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9687 (somsolib.o): Likewise.
9688
26ca4152
AC
96892003-03-17 Andrew Cagney <cagney@redhat.com>
9690
9691 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9692 BFD. Simplify setting of di.endian.
9693
0a613259
AC
96942003-03-17 Andrew Cagney <cagney@redhat.com>
9695
9696 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9697 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9698
9699 From Elena Zannoni <ezannoni@redhat.com>
9700 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9701 vector and floating-point parameters.
9702 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9703 convention.
9704 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9705
1132738f
FN
97062003-03-17 Fernando Nasser <fnasser@redhat.com>
9707
9708 * MAINTAINERS: Remove my name from several maintainership roles.
9709
6dc42492
AC
97102003-03-17 Andrew Cagney <cagney@redhat.com>
9711
9712 Fix frame off-by-one bug.
9713 * frame-unwind.h (frame_this_id_ftype): Replace
9714 frame_unwind_id_ftype.
9715 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9716 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9717 with "prev_register".
9718 * frame-unwind.c (frame_unwind_find_by_pc): Return
9719 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9720 comment.
9721 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9722 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9723 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9724 (dummy_frame_unwind): Update.
9725 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9726 sentinel_frame_register_unwind.
9727 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9728 (sentinel_frame_unwinder): Update.
9729 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9730 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9731 * frame.c (create_sentinel_frame): Update. Initialize
9732 "prologue_cache" instead of "unwind_cache".
9733 (frame_register_unwind): Call this frame's prev_register with the
9734 next frame and this frame's prologue cache.
9735 (get_prev_frame): Simplify. Always call prev frame's this_id with
9736 this frame and prev frame's prologue cache. Document that this
9737 call is shifted one to the left when compared to the
9738 frame_register_unwind call.
9739 (legacy_saved_regs_prev_register): Replace
9740 frame_saved_regs_register_unwind.
9741 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9742 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9743 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9744 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9745 (d10v_frame_unwind): Update.
9746 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9747 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9748 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9749 "saved_regs" with "this_saved_regs".
9750
efd710d6
AC
97512003-03-16 Andrew Cagney <cagney@redhat.com>
9752
9753 * frame.c (frame_pop): Don't call target_store_registers. Fix
9754 problem reported by Mark Kettenis.
9755
4e259f09
MK
97562003-03-16 Mark Kettenis <kettenis@gnu.org>
9757
9758 * i386-tdep.c (i386_register_type): Renamed from
9759 i386_register_virtual_type. Adjust function signature.
9760 (i386_gdbarch_init): Set register_type instead of
9761 deprecated_max_register_raw_size,
9762 deprecated_max_register_virtual_size and register_virtual_type.
9763
055bb976
AC
97642003-03-14 Andrew Cagney <cagney@redhat.com>
9765
9766 * frame.c (get_prev_frame): When a legacy frame, always call
9767 legacy_get_prev_frame. Simplify unwind code using assumption that
9768 the unwinder is new.
9769 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9770 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9771 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9772
ac2adee5
AC
97732003-03-14 Andrew Cagney <cagney@redhat.com>
9774
9775 * frame.c (get_saved_register): Delete function.
9776 * frame.h (get_saved_register): Delete declaration.
9777 * xstormy16-tdep.c: Update comment.
9778 * regcache.h: Update comments.
9779 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9780 get_saved_register and extract_address, use
9781 frame_read_unsigned_register.
9782 (sparc_frame_saved_pc): Ditto.
9783 (sparc_get_saved_register): Instead of get_saved_register, use
9784 frame_register.
9785 (sparc_pop_frame): Ditto.
9786 * findvar.c: Update comments.
9787 (value_of_register): Call frame_register instead of
9788 get_saved_register.
9789 (value_from_register): Ditto.
9790 * config/sparc/tm-sparc.h: Update comment.
9791 * breakpoint.c: Update comment.
9792
129c1cd6
AC
97932003-03-14 Andrew Cagney <cagney@redhat.com>
9794
9795 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9796 GET_SAVED_REGISTER.
9797 * gdbarch.h, gdbarch.c: Re-generate.
9798 * frame.h: Update comments.
9799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9800 * x86-64-tdep.c (x86_64_init_abi): Update.
9801 * sparc-tdep.c (sparc_gdbarch_init): Update.
9802 * sh-tdep.c (sh_gdbarch_init): Update.
9803 * mips-tdep.c (mips_gdbarch_init): Update.
9804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9805 * cris-tdep.c (cris_gdbarch_init): Update.
9806 * ia64-tdep.c (ia64_gdbarch_init): Update.
9807 * frame.c (frame_register): Update.
9808 (get_saved_register): Update.
9809 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9810
749b82f6
AC
98112003-03-13 Andrew Cagney <cagney@redhat.com>
9812
9813 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9814 * gdbarch.h, gdbarch.c: Regenerate.
9815 * valops.c (hand_function_call): Update comment.
9816 * stack.c (return_command): Update comment.
9817 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9818 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9820 * x86-64-tdep.c (x86_64_init_abi): Update.
9821 * vax-tdep.c (vax_gdbarch_init): Update.
9822 * v850-tdep.c (v850_gdbarch_init): Update.
9823 * sparc-tdep.c (sparc_gdbarch_init): Update.
9824 * sh-tdep.c (sh_gdbarch_init): Update.
9825 * s390-tdep.c (s390_gdbarch_init): Update.
9826 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9827 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9828 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9829 * mips-tdep.c (mips_gdbarch_init): Update.
9830 * mcore-tdep.c (mcore_gdbarch_init): Update.
9831 * m68k-tdep.c (m68k_gdbarch_init): Update.
9832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9833 * ia64-tdep.c (ia64_gdbarch_init): Update.
9834 * i386-tdep.c (i386_gdbarch_init): Update.
9835 * hppa-tdep.c (hppa_gdbarch_init): Update.
9836 * h8300-tdep.c (h8300_gdbarch_init): Update.
9837 * frv-tdep.c (frv_gdbarch_init): Update.
9838 * cris-tdep.c (cris_gdbarch_init): Update.
9839 * avr-tdep.c (avr_gdbarch_init): Update.
9840 * arm-tdep.c (arm_gdbarch_init): Update.
9841 * alpha-tdep.c (alpha_gdbarch_init): Update.
9842
1594fa56
AC
98432003-03-13 Andrew Cagney <cagney@redhat.com>
9844
9845 * frame.c (legacy_frame_p): New function.
9846 (get_prev_frame): Use legacy_frame_p.
9847 * frame.h (legacy_frame_p): Declare.
9848
7717fda3
V
98492003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9850
fbe586ae 9851 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9852 listing corrected.
9853
0c67cbe9
V
98542003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9855
fbe586ae 9856 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9857
03febf99
AC
98582003-03-12 Andrew Cagney <cagney@redhat.com>
9859
9860 * frame.c (get_prev_frame): Rename the frame parameter to
9861 "this_frame".
9862 (get_next_frame, legacy_get_prev_frame): Ditto.
9863
0a1e1ca1
AC
98642003-03-12 Andrew Cagney <cagney@redhat.com>
9865
9866 * frame.c (get_current_frame): Check target_has_registers before
9867 checking target_has_stack.
9868 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9869 instead of deprecated_selected_frame.
9870 * findvar.c (value_of_register): Pass "frame", not
9871 deprecated_selected_frame, to value_of_builtin_reg.
9872
a66a9c23
AC
98732003-03-12 Andrew Cagney <cagney@redhat.com>
9874
9875 * regcache.c (regcache_cooked_write_signed): New function.
9876 (regcache_cooked_write_unsigned): New function.
9877 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9878 (regcache_cooked_read_signed): Fix regnum in range assertion.
9879 * regcache.h (regcache_cooked_write_signed): Declare.
9880 (regcache_cooked_write_unsigned): Declare.
9881
8bedc050
AC
98822003-03-12 Andrew Cagney <cagney@redhat.com>
9883
9884 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9885 * gdbarch.h, gdbarch.c: Re-generate.
9886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9887 * x86-64-tdep.h: Update.
9888 * x86-64-tdep.c (x86_64_init_abi): Update.
9889 * v850-tdep.c (v850_gdbarch_init): Update.
9890 * sparc-tdep.c (sparc_gdbarch_init): Update.
9891 * sh-tdep.c (sh_gdbarch_init): Update.
9892 * s390-tdep.c (s390_gdbarch_init): Update.
9893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9894 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9895 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9896 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9897 * mips-tdep.c (mips_gdbarch_init): Update.
9898 * mcore-tdep.c (mcore_gdbarch_init): Update.
9899 * m68k-tdep.c (m68k_gdbarch_init): Update.
9900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9901 * ia64-tdep.c (ia64_gdbarch_init): Update.
9902 * i386-tdep.c (i386_gdbarch_init): Update.
9903 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9904 * hppa-tdep.c (hppa_gdbarch_init): Update.
9905 * h8300-tdep.c (h8300_gdbarch_init): Update.
9906 * frv-tdep.c (frv_gdbarch_init): Update.
9907 * cris-tdep.c (cris_gdbarch_init): Update.
9908 * avr-tdep.c (avr_gdbarch_init): Update.
9909 * arm-tdep.c (arm_gdbarch_init): Update.
9910 * alpha-tdep.c (alpha_gdbarch_init): Update.
9911 * sh-tdep.c (sh_init_extra_frame_info): Update.
9912 (sh64_init_extra_frame_info): Update.
9913 * ns32knbsd-nat.c (frame_num_args): Update.
9914 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9915 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9916 (xstormy16_frame_chain_valid): Update.
9917 * vax-tdep.c (vax_saved_pc_after_call): Update.
9918 * v850-tdep.c (v850_frame_chain): Update.
9919 (v850_pop_frame): Update.
9920 (v850_init_extra_frame_info): Update.
9921 * sparc-tdep.c (setup_arbitrary_frame): Update.
9922 * ns32k-tdep.c (umax_frame_num_args): Update.
9923 * s390-tdep.c (s390_pop_frame_regular): Update.
9924 * mn10300-tdep.c (mn10300_frame_chain): Update.
9925 (mn10300_pop_frame_regular): Update.
9926 (mn10300_init_extra_frame_info): Update.
9927 * mips-tdep.c (mips_init_frame_pc_first): Update.
9928 (mips_frame_chain): Update.
9929 (mips_pop_frame): Update.
9930 * mcore-tdep.c (mcore_frame_chain): Update.
9931 (mcore_pop_frame): Update.
9932 (mcore_init_extra_frame_info): Update.
9933 * arch-utils.c (init_frame_pc_default): Update.
9934 * m68k-tdep.c (isi_frame_num_args): Update.
9935 (delta68_frame_num_args): Update.
9936 (news_frame_num_args): Update.
9937 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9938 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9939 (alpha_frame_chain): Update.
9940 (alpha_pop_frame): Update.
9941 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9942 (hppa_init_extra_frame_info): Update.
9943 (hppa_frame_chain): Update.
9944 (hppa_frame_chain_valid): Update.
9945 * cris-tdep.c (cris_init_extra_frame_info): Update.
9946 * avr-tdep.c (avr_init_extra_frame_info): Update.
9947 * arm-tdep.c (arm_frame_chain_valid): Update.
9948 (arm_init_extra_frame_info): Update.
9949 (arm_pop_frame): Update.
9950 * frame.c (frame_pc_unwind): Update.
9951 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9952 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9953 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9954 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9955 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9956 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9957
7a25a7c1
AC
99582003-03-12 Andrew Cagney <cagney@redhat.com>
9959
9960 Eliminate the need for POP_FRAME.
9961 * frame.c (do_frame_unwind_register): New function.
9962 (frame_pop): When no POP_FRAME, pop the frame using register
9963 unwind and a scratch regcache.
9964 (frame_saved_regs_pop): Delete function.
9965 (trad_frame_unwinder): Update.
9966 * d10v-tdep.c (d10v_frame_pop): Delete function.
9967 (d10v_frame_unwind): Update.
9968 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9969 (sentinel_frame_unwinder): Update.
9970 * dummy-frame.c (dummy_frame_pop): Delete function.
9971 (dummy_frame_unwind): Update.
9972 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9973 (struct frame_unwind): Update.
9974
2f38ef89
KB
99752003-03-11 Kevin Buettner <kevinb@redhat.com>
9976
9977 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9978 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9979 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9980 Do range checks on register number obtained from debugging info.
9981 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9982 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9983 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9984 mapping function.
9985 (do_fp_register_row): Fix typo which caused double type to be
9986 used when attempting to unpack a float.
9987
552f4abf
JB
99882003-03-11 J. Brobecker <brobecker@gnat.com>
9989
9990 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9991
e0d2ae16
AC
99922003-03-11 Andrew Cagney <cagney@redhat.com>
9993
9994 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9995 frame. Problem found by Corinna Vinschen.
9996
ddbfdd06
PM
99972003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9998
9999 * doublest.c (floatformat_from_length): Accept also
10000 the real size of 'long double' type.
10001
088b2ddc 100022003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10003
088b2ddc 10004 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10005 * breakpoint.c (bpstat_copy): Copy the command lines as well
10006 as the old value, to match what is freed in bpstat_clear.
10007
f56f77c1
DC
100082003-03-10 David Carlton <carlton@math.stanford.edu>
10009
10010 * minsyms.c (add_minsym_to_hash_table): Replace
10011 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10012 (compare_minimal_symbols, compact_minimal_symbols)
10013 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10014 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10015 of DEPRECATED_SYMBOL_MATCHES_NAME.
10016 (lookup_minimal_symbol_solib_trampoline): Ditto.
10017
5602984a
AC
100182003-03-10 Andrew Cagney <cagney@redhat.com>
10019
10020 * regcache.h (regcache_cooked_read_ftype): Define.
10021 (regcache_save, regcache_restore): Add a cooked_read parameter.
10022 * regcache.c (regcache_save, regcache_restore): Update.
10023 (do_cooked_read): New function.
10024 (regcache_cpy): Pass do_cooked_read to regcache_save and
10025 regcache_restore.
10026
8bedc050
AC
100272003-03-10 Andrew Cagney <cagney@redhat.com>
10028
10029 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10030 * gdbarch.h, gdbarch.c: Re-generate.
10031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10032 * x86-64-tdep.h: Update.
10033 * x86-64-tdep.c (x86_64_init_abi): Update.
10034 * v850-tdep.c (v850_gdbarch_init): Update.
10035 * sparc-tdep.c (sparc_gdbarch_init): Update.
10036 * sh-tdep.c (sh_gdbarch_init): Update.
10037 * s390-tdep.c (s390_gdbarch_init): Update.
10038 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10039 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10040 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10041 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10042 * mips-tdep.c (mips_gdbarch_init): Update.
10043 * mcore-tdep.c (mcore_gdbarch_init): Update.
10044 * m68k-tdep.c (m68k_gdbarch_init): Update.
10045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10046 * ia64-tdep.c (ia64_gdbarch_init): Update.
10047 * i386-tdep.c (i386_gdbarch_init): Update.
10048 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10049 * hppa-tdep.c (hppa_gdbarch_init): Update.
10050 * h8300-tdep.c (h8300_gdbarch_init): Update.
10051 * frv-tdep.c (frv_gdbarch_init): Update.
10052 * cris-tdep.c (cris_gdbarch_init): Update.
10053 * avr-tdep.c (avr_gdbarch_init): Update.
10054 * arm-tdep.c (arm_gdbarch_init): Update.
10055 * alpha-tdep.c (alpha_gdbarch_init): Update.
10056 * sh-tdep.c (sh_init_extra_frame_info): Update.
10057 (sh64_init_extra_frame_info): Update.
10058 * ns32knbsd-nat.c (frame_num_args): Update.
10059 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10060 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10061 (xstormy16_frame_chain_valid): Update.
10062 * vax-tdep.c (vax_saved_pc_after_call): Update.
10063 * v850-tdep.c (v850_frame_chain): Update.
10064 (v850_pop_frame): Update.
10065 (v850_init_extra_frame_info): Update.
10066 * sparc-tdep.c (setup_arbitrary_frame): Update.
10067 * ns32k-tdep.c (umax_frame_num_args): Update.
10068 * s390-tdep.c (s390_pop_frame_regular): Update.
10069 * mn10300-tdep.c (mn10300_frame_chain): Update.
10070 (mn10300_pop_frame_regular): Update.
10071 (mn10300_init_extra_frame_info): Update.
10072 * mips-tdep.c (mips_init_frame_pc_first): Update.
10073 (mips_frame_chain): Update.
10074 (mips_pop_frame): Update.
10075 * mcore-tdep.c (mcore_frame_chain): Update.
10076 (mcore_pop_frame): Update.
10077 (mcore_init_extra_frame_info): Update.
10078 * arch-utils.c (init_frame_pc_default): Update.
10079 * m68k-tdep.c (isi_frame_num_args): Update.
10080 (delta68_frame_num_args): Update.
10081 (news_frame_num_args): Update.
10082 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10083 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10084 (alpha_frame_chain): Update.
10085 (alpha_pop_frame): Update.
10086 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10087 (hppa_init_extra_frame_info): Update.
10088 (hppa_frame_chain): Update.
10089 (hppa_frame_chain_valid): Update.
10090 * cris-tdep.c (cris_init_extra_frame_info): Update.
10091 * avr-tdep.c (avr_init_extra_frame_info): Update.
10092 * arm-tdep.c (arm_frame_chain_valid): Update.
10093 (arm_init_extra_frame_info): Update.
10094 (arm_pop_frame): Update.
10095 * frame.c (frame_pc_unwind): Update.
10096 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10097 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10098 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10099 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10100 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10101 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10102
12cc2063
AC
101032003-03-10 Andrew Cagney <cagney@redhat.com>
10104
10105 * gdbarch.sh (gdbarch_unwind_pc): New method.
10106 * gdbarch.h, gdbarch.c: Regenerate.
10107 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10108 but use read_pc and FRAME_SAVED_PC as fall backs.
10109 (frame_saved_regs_pc_unwind): Delete function.
10110 (trad_frame_unwinder): Update.
10111 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10112 (struct frame_unwind): Update.
10113 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10114 (dummy_frame_unwind): Update.
10115 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10116 (sentinel_frame_unwinder): Update.
10117 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10118 (d10v_frame_unwind): Update.
10119 (d10v_unwind_pc): New function.
10120 (d10v_gdbarch_init): Set unwind_pc.
10121
ef840a37
AC
101222003-03-10 Andrew Cagney <cagney@redhat.com>
10123
a2ce2e56
AC
10124 * gdbarch.h: Re-generate.
10125
ef840a37
AC
10126 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10127 PC.
10128 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10129 the PC register.
10130
08f3424b
MK
101312003-03-08 Mark Kettenis <kettenis@gnu.org>
10132
10133 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10134
1248ede2
AC
101352003-03-08 Andrew Cagney <cagney@redhat.com>
10136
10137 * cli-out.c: Update copyright.
10138 (cli_out_data): Define typedef. Use instead of ui_out_data.
10139
f49bacc8
AC
101402003-03-08 Andrew Cagney <cagney@redhat.com>
10141
10142 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10143 the result.
10144
9b05f993
AC
101452003-03-07 Andrew Cagney <cagney@redhat.com>
10146
10147 * gdbarch.sh: Don't generate two macro definitions when an
10148 undefined macro taking no arguments.
10149 * gdbarch.h: Regenerate.
8ffd9b1b 10150
166f4c7b
ML
101512002-03-07 Michal Ludvig <mludvig@suse.cz>
10152
10153 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10154 (x86_64_unwind_dummy_id): New functions.
10155 (x86_64_init_abi): Register these two new functions.
10156
6d686a84
ML
101572003-03-07 Michal Ludvig <mludvig@suse.cz>
10158
10159 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10160 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10161 separate function.
10162 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10163
6314f104
AC
101642003-03-05 Andrew Cagney <cagney@redhat.com>
10165
10166 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10167 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10168 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10169 to use unwind_dummy_id when a dummy frame.
10170 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10171 predicate.
10172 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10173
ceea5145
AC
101742003-03-05 Andrew Cagney <cagney@redhat.com>
10175
10176 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10177 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10178 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10179 values.
10180
0d843116
AC
101812003-03-05 Andrew Cagney <cagney@redhat.com>
10182
10183 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10184 (struct d10v_unwind_cache): Delete field "frameless". Replace
10185 "next_addr" with "sp_offset". Add "r11_offset".
10186 (d10v_frame_unwind_cache): Update.
10187 (prologue_find_regs): Update. When "mv r11, sp", save the
10188 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10189 RN was saved in r11_offset.
10190
b2579786
AC
101912003-03-05 Andrew Cagney <cagney@redhat.com>
10192
10193 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10194 cached PC value in the next frame.
10195
218e5956
AC
101962003-03-05 Andrew Cagney <cagney@redhat.com>
10197
10198 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10199 "id_unwind_cache" with "id".
10200 (frame_id_unwind): Delete declaration.
10201 * frame.c (frame_id_unwind): Delete function.
10202 (get_prev_frame): Call the frame id unwind method directly. Store
10203 the returned next frame's ID value in NEXT_FRAME. Note that there
10204 is a problem with the wrong unwind ID being called with the wrong
10205 unwind cache.
10206
ed363b1b
DJ
102072003-03-05 Daniel Jacobowitz <drow@mvista.com>
10208
10209 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10210
fe1f4a5e
DJ
102112003-03-05 James Ingham <jingham@apple.com>
10212 Daniel Jacobowitz <drow@mvista.com>
10213
10214 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10215 (auto_cp_abi): New variable.
10216 (current_cp_abi, num_cp_abis): Make static.
10217 (CP_ABI_MAX): Define.
10218 (cp_abis): Turn into an array.
10219 (value_virtual_fn_field): Fix formatting.
10220 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10221 takes a pointer.
10222 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10223 (list_cp_abis, _initialize_cp_abi): New functions.
10224 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10225 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10226 switch_to_cp_abi. Update prototype for register_cp_abi.
10227 * Makefile.in (cp-abi.o): Update dependencies.
10228 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10229 instead of switch_to_cp_abi.
10230 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10231 register_cp_abi.
10232 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10233 register_cp_abi.
10234 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10235
e4adbba9
DJ
102362003-03-05 Daniel Jacobowitz <drow@mvista.com>
10237
10238 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10239 * dwarf2loc.c: Include "regcache.h".
10240 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10241 register_size.
10242 * Makefile.in (dwarf2loc.o): Update dependencies.
10243
91ccbfc1
TR
102442003-03-04 Theodore A. Roth <troth@openavr.org>
10245
10246 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10247 number of io registers reported by remote target is not a multiple of
10248 step.
10249
3d4e8fd2
DC
102502003-03-04 David Carlton <carlton@math.stanford.edu>
10251
10252 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10253 (lookup_symbol_aux_psymtabs): Update call to
10254 lookup_partial_symbol.
10255 (lookup_transparent_type, find_main_psymtab)
10256 (make_symbol_overload_list): Ditto.
10257
ed42d87b
KH
102582003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10259
10260 * MAINTAINERS (Write after approval): Update my email address.
10261
a0ed5532
AC
102622003-03-03 Andrew Cagney <cagney@redhat.com>
10263
10264 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10265 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10266 predicate. Replace MAX_REGISTER_RAW_SIZE.
10267 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10268 MAX_REGISTER_VIRTUAL_SIZE.
10269 * regcache.c (legacy_max_register_raw_size): New function.
10270 (legacy_max_register_virtual_size): New function.
10271 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10272 (MAX_REGISTER_RAW_SIZE): Define.
10273 (legacy_max_register_raw_size): Declare.
10274 (legacy_max_register_virtual_size): Declare.
10275 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10276 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10277 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10278 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10279 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10280 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10281 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10282 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10283 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10285 * vax-tdep.c (vax_gdbarch_init): Update.
10286 * v850-tdep.c (v850_gdbarch_init): Update.
10287 * sparc-tdep.c (sparc_gdbarch_init): Update.
10288 * sh-tdep.c (sh_gdbarch_init): Update.
10289 * s390-tdep.c (s390_gdbarch_init): Update.
10290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10291 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10292 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10293 * mips-tdep.c (mips_gdbarch_init): Update.
10294 * mcore-tdep.c (mcore_gdbarch_init): Update.
10295 * m68k-tdep.c (m68k_gdbarch_init): Update.
10296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10297 * ia64-tdep.c (ia64_gdbarch_init): Update.
10298 * i386-tdep.c (i386_gdbarch_init): Update.
10299 * hppa-tdep.c (hppa_gdbarch_init): Update.
10300 * h8300-tdep.c (h8300_gdbarch_init): Update.
10301 * frv-tdep.c (frv_gdbarch_init): Update.
10302 * cris-tdep.c (cris_gdbarch_init): Update.
10303 * avr-tdep.c (avr_gdbarch_init): Update.
10304 * arm-tdep.c (arm_gdbarch_init): Update.
10305 * alpha-tdep.c (alpha_gdbarch_init): Update.
10306 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10307 max_register_raw_size or max_register_virtual_size.
10308
8e437497
DC
103092003-03-03 David Carlton <carlton@math.stanford.edu>
10310
10311 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10312 SYMBOL_MATCHES_NAME, add comment.
10313 (SYMBOL_MATCHES_NATURAL_NAME): New.
10314 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10315 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10316 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10317 * symtab.c (lookup_partial_symbol): Use
10318 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10319 unhelpful comment.
10320 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10321 SYMBOL_MATCHES_NAME.
10322 Fix for PR c++/33.
10323
25120b0d
DC
103242003-03-03 David Carlton <carlton@math.stanford.edu>
10325
10326 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10327 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10328 by regexp matching against SYMBOL_NATURAL_NAME.
10329
78a11fb4
DC
103302003-03-03 David Carlton <carlton@math.stanford.edu>
10331
10332 * linespec.c (find_method): Extract code into collect_methods.
10333 (collect_methods): New.
10334
645dd519
MK
103352003-03-02 Mark Kettenis <kettenis@gnu.org>
10336
b4700d91
MK
10337 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10338 get_frame_base.
10339
645dd519
MK
10340 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10341 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10342
0aa7e1aa
SC
103432003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10344
8ffd9b1b 10345 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10346 and not regnum when summing the size of all registers up to regnum.
10347
f30ee0bc
AC
103482003-03-01 Andrew Cagney <cagney@redhat.com>
10349
10350 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10351 FRAME_INIT_SAVED_REGS.
10352 * gdbarch.h, gdbarch.c: Regenerate.
10353 * stack.c (frame_info): Update.
10354 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10355 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10356 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10357 * ns32k-tdep.c (ns32k_pop_frame): Update.
10358 * mips-tdep.c (mips_pop_frame): Update.
10359 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10360 * ia64-tdep.c (ia64_frame_chain): Update.
10361 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10362 (ia64_frameless_function_invocation): Update.
10363 (ia64_init_extra_frame_info): Update.
10364 (ia64_pop_frame_regular): Update.
10365 * frame.h (struct frame_info): Update comment.
10366 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10367 * frame.c (frame_saved_regs_register_unwind): Update.
10368 (frame_saved_regs_register_unwind): Update.
10369 (deprecated_generic_get_saved_register): Update.
10370 * cris-tdep.c: Update comment.
10371 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10372 Rename macro.
10373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10374 * x86-64-tdep.c (x86_64_init_abi): Update.
10375 * vax-tdep.c (vax_gdbarch_init): Update.
10376 * v850-tdep.c (v850_gdbarch_init): Update.
10377 * sparc-tdep.c (sparc_gdbarch_init): Update.
10378 * sh-tdep.c (sh_gdbarch_init): Update.
10379 * s390-tdep.c (s390_gdbarch_init): Update.
10380 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10381 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10382 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10383 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10384 * mips-tdep.c (mips_gdbarch_init): Update.
10385 * mcore-tdep.c (mcore_gdbarch_init): Update.
10386 * m68k-tdep.c (m68k_gdbarch_init): Update.
10387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10388 * ia64-tdep.c (ia64_gdbarch_init): Update.
10389 * i386-tdep.c (i386_gdbarch_init): Update.
10390 * frv-tdep.c (frv_gdbarch_init): Update.
10391 * avr-tdep.c (avr_gdbarch_init): Update.
10392 * arm-tdep.c (arm_gdbarch_init): Update.
10393 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10394
42fa7c0f
AC
103952003-03-01 Andrew Cagney <cagney@redhat.com>
10396
10397 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10398 option enum and switch. When no windows, set the interpreter to
10399 INTERP_CONSOLE.
8ffd9b1b 10400
49c7e338
AC
104012003-03-01 Andrew Cagney <cagney@redhat.com>
10402
10403 * main.c (captured_main): Replace magic option characters with an
10404 enum.
10405
e9582e71
AC
104062003-03-01 Andrew Cagney <cagney@redhat.com>
10407
10408 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10409 INIT_EXTRA_FRAME_INFO.
10410 * gdbarch.h, gdbarch.c: Regenerate.
10411 * arm-tdep.c: Update comments.
10412 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10413 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10414 * frame.h, avr-tdep.c: Ditto.
10415 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10416 (create_new_frame, legacy_get_prev_frame): Ditto.
10417 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10418 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10420 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10421 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10422 * v850-tdep.c (v850_gdbarch_init): Ditto.
10423 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10424 * sh-tdep.c (sh_gdbarch_init): Ditto.
10425 * s390-tdep.c (s390_gdbarch_init): Ditto.
10426 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10427 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10428 * mips-tdep.c (mips_gdbarch_init): Ditto.
10429 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10431 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10432 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10433 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10434 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10435 * frv-tdep.c (frv_gdbarch_init): Ditto.
10436 * cris-tdep.c (cris_gdbarch_init): Ditto.
10437 * avr-tdep.c (avr_gdbarch_init): Ditto.
10438 * arm-tdep.c (arm_gdbarch_init): Ditto.
10439 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10440 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10441
35cac7cf
AC
104422003-03-01 Andrew Cagney <cagney@redhat.com>
10443
10444 * gdbarch.sh (register_type): New function with predicate.
10445 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10446 * gdbarch.h, gdbarch.c: Re-generate.
10447 * arch-utils.c (generic_register_byte): Use generic_register_size.
10448 (generic_register_size): When available, use
10449 gdbarch_register_type.
10450 * regcache.c (init_regcache_descr): When available, initialize the
10451 register type array using gdbarch_register_type. If the
10452 architecture supplies gdbarch_register_type, do not use the legacy
10453 regcache layout.
10454 * d10v-tdep.c (d10v_register_type): Replace
10455 d10v_register_virtual_type.
10456 (d10v_gdbarch_init): Set register_type instead of
10457 register_virtual_type.
10458
7b83296f
AC
104592003-03-01 Andrew Cagney <cagney@redhat.com>
10460
10461 * Makefile.in (ax-gdb.o): Update dependencies.
10462 * ax-gdb.c: Include "regcache.h".
10463 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10464 * findvar.c (value_of_register): Ditto.
10465 * infcmd.c (default_print_registers_info): Ditto.
10466
eadc1c87
MK
104672003-03-01 Mark Kettenis <kettenis@gnu.org>
10468
10469 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10470 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10471
14143612
MK
104722003-03-01 Mark Kettenis <kettenis@gnu.org>
10473
10474 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10475 of STREQ.
10476
a55cc764
DJ
104772003-02-28 Daniel Jacobowitz <drow@mvista.com>
10478
10479 * Makefile.in (dwarf2loc.o): Update dependencies.
10480 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10481 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10482 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10483 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10484 (locexpr_tracepoint_var_ref): New function.
10485 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10486
08a617da
AC
104872003-02-28 Andrew Cagney <cagney@redhat.com>
10488
10489 * regcache.c (register_size): New function.
10490 * regcache.h (register_size): Declare
10491 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10492 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10493
4224873a
DC
104942003-02-28 David Carlton <carlton@math.stanford.edu>
10495
10496 * linespec.c (decode_compound): Extract code into find_method.
10497 (find_method): New.
10498
ccdc5d7f
JB
104992003-02-28 J. Brobecker <brobecker@gnat.com>
10500
10501 * Makefile.in: Add rules to build and link in observer.o.
10502
974e8ced
JB
105032003-02-27 J. Brobecker <brobecker@gnat.com>
10504
10505 * observer.c: Minor comments edits.
10506
7a28f973
JB
105072003-02-27 J. Brobecker <brobecker@gnat.com>
10508
10509 * observer.h, observer.c: New file.
10510
27cddce2
AC
105112003-02-27 Andrew Cagney <cagney@redhat.com>
10512
10513 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10514
b94a41a1
SC
105152003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10516
10517 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10518 (M6812_OP_STS_EXT): Likewise.
10519 (m6811_prologue): Use the above to recognize prologue.
10520 (m6812_prologue): Likewise.
10521
c8be8951
DC
105222003-02-27 David Carlton <carlton@math.stanford.edu>
10523
10524 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10525 SYMBOL_PRINT_NAME.
10526 (compare_psymbols): Ditto.
10527 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10528
d05bb1fc
MS
105292003-02-27 Michael Snyder <msnyder@redhat.com>
10530
4e845cd3
MS
10531 * f-lang.c (build_fortran_types): New function.
10532 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10533 * doublest.c (extract_floating): Fix warning text.
10534
f3824013
AC
105352003-02-27 Andrew Cagney <cagney@redhat.com>
10536
10537 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10538 predicate. Replaces PUSH_DUMMY_FRAME.
10539 * gdbarch.h, gdbarch.c: Regnerate.
10540 * valops.c (hand_function_call): Update. Call
10541 generic_push_dummy_frame directly.
10542 * vax-tdep.c (vax_gdbarch_init): Update.
10543 * sparc-tdep.c (sparc_gdbarch_init): Update.
10544 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10545 * m68k-tdep.c (m68k_gdbarch_init): Update.
10546 * hppa-tdep.c (hppa_gdbarch_init): Update.
10547 * alpha-tdep.c (alpha_gdbarch_init): Update.
10548 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10549 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10550 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10552 push_dummy_frame to generic_push_dummy_frame.
10553 * v850-tdep.c (v850_gdbarch_init): Ditto.
10554 * sh-tdep.c (sh_gdbarch_init): Ditto.
10555 * s390-tdep.c (s390_gdbarch_init): Ditto.
10556 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10557 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10558 * mips-tdep.c (mips_gdbarch_init): Ditto.
10559 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10561 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10562 * i386-tdep.c (i386_gdbarch_init): Ditto.
10563 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10564 * frv-tdep.c (frv_gdbarch_init): Ditto.
10565 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10566 * cris-tdep.c (cris_gdbarch_init): Ditto.
10567 * avr-tdep.c (avr_gdbarch_init): Ditto.
10568 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10569
ad188201
KB
105702003-02-26 Kevin Buettner <kevinb@redhat.com>
10571
10572 * mips-tdep.c (show_mips_abi): New function.
10573 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10574 command ``show mips abi''.
10575
6b37567a 105762003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10577
6b37567a 10578 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10579 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10580 more sline entries have been seen for the function.
10581
d3e0a5bf
MC
105822003-02-26 Michael Chastain <mec@shout.net>
10583
10584 * configure: Regenerate with autoconf 000227.
10585
18972eea
MC
105862003-02-26 Michael Chastain <mec@shout.net>
10587
10588 Close PR build/660.
10589 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10590 for old libc5/glibc.
10591 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10592
0bbde931
KW
105932003-02-26 Kris Warkentin <kewarken@qnx.com>
10594
10595 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10596 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10597
27ca5dad
MC
105982003-02-26 Michael Chastain <mec@shout.net>
10599
10600 * configure.in: New variable HAVE_UINTPTR_T.
10601 * configure, config.in: Regenerated.
10602
6f88d630
DJ
106032003-02-26 Daniel Jacobowitz <drow@mvista.com>
10604
10605 Fix PR build/1097.
10606 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10607
b14185ce
AC
106082003-02-25 Andrew Cagney <cagney@redhat.com>
10609
10610 * frame.c (get_prev_frame): Add comment on check for
10611 inside_entry_func. Only check for inside_entry_file when not a
10612 dummy and not a sentinel. Check that the new frame is not inner
10613 to the old frame.
10614
ac2bd0a9
AC
106152003-02-25 Andrew Cagney <cagney@redhat.com>
10616
10617 * frame.c (frame_debug): New variable.
10618 (_initialize_frame): Add "set/show debug frame" command.
10619 (get_prev_frame): When frame_debug, print reason why unwind
10620 failed.
10621
b18a0fd2
MC
106222003-02-25 Michael Chastain <mec@shout.net>
10623
10624 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10625 to avoid uintptr_t definition problems.
10626
22abf04a
DC
106272003-02-25 David Carlton <carlton@math.stanford.edu>
10628
10629 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10630 (SYMBOL_LINKAGE_NAME): Ditto.
10631 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10632 SYMBOL_LINKAGE_NAME.
10633 (struct general_symbol_info): Expand comment.
10634 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10635 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10636 (SYMBOL_MATCHES_REGEXP): Ditto.
10637 * symtab.c (symbol_natural_name): New function.
10638 * objfiles.h: Replace all uses of SYMBOL_NAME by
10639 DEPRECATED_SYMBOL_NAME.
10640 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10641 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10642 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10643 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10644 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10645 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10646 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10647 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10648 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10649 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10650 * ada-exp.y: Ditto.
10651 * ada-exp.y: Update copyright.
10652 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10653 * cp-valprint.c: Ditto.
10654
1a5848f6
JJ
106552003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10656
10657 * infptrace.c (detach): Do not flag error if ptrace detach fails
10658 and errno is set to ESRCH.
10659
7343d46a
AC
106602003-02-24 Andrew Cagney <cagney@redhat.com>
10661
10662 * infptrace.c (udot_info): Change type of udot_off to long. Use
10663 paddr when printing udot_off's value.
10664
49fa1dc2
DC
106652003-02-24 David Carlton <carlton@math.stanford.edu>
10666
10667 * symtab.c (make_symbol_overload_list): Only read in partial
10668 symtabs containing a matching partial symbol.
10669
0fe19209
DC
106702003-02-24 David Carlton <carlton@math.stanford.edu>
10671
10672 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10673 do the comparison, not strcmp.
10674 * symfile.c (compare_psymbols): Ditto.
10675 * defs.h: Declare strcmp_iw_ordered.
10676 * utils.c (strcmp_iw_ordered): New function.
10677
8e3ee7b5
JB
106782003-02-24 Jim Blandy <jimb@redhat.com>
10679
10680 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10681 support, shared libs): Remove my name from here, to better reflect
10682 reality.
10683
7df1a324
KW
106842003-02-24 Kris Warkentin <kewarken@qnx.com>
10685
10686 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10687 (target_ops): Add to_have_continuable_watchpoint.
10688 * target.c (update_current_target): Add INHERIT line for
10689 to_have_continuable_watchpoint.
10690 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10691 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10692 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10693 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10694
d1c76907
EZ
106952003-02-24 Elena Zannoni <ezannoni@redhat.com>
10696
10697 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10698 maintainership.
10699
2610b0bf
KW
107002003-02-24 Kris Warkentin <kewarken@qnx.com>
10701
f46169db
KW
10702 * solib.c (solib_open): Call target defined search function after
10703 failing with solib-search-path.
10704 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10705 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10706
9a3c34fe
KW
107072003-02-24 Kris Warkentin <kewarken@qnx.com>
10708
f46169db 10709 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10710
2417dd25
SC
107112003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10712
10713 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10714
b631436b
SC
107152003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10716
10717 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10718 (m68hc11_add_reggroups): New function.
10719 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10720 (m68hc11_gdbarch_init): Install the reggroups.
10721 (_initialize_m68hc11_tdep): Initialize them.
10722
0aa8c1e4
JW
107232003-02-21 James E Wilson <wilson@tuliptree.org>
10724
10725 * MAINTAINERS: Update my email address.
10726
50ceaba5
DC
107272003-02-21 David Carlton <carlton@math.stanford.edu>
10728
10729 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10730
4c2df51b
DJ
107312003-02-21 Daniel Jacobowitz <drow@mvista.com>
10732
10733 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10734 * symtab.h: Add opaque declarations of struct axs_value and
10735 struct agent_expr.
10736 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10737 (struct location_funcs): New type.
10738 (struct symbol): Add "loc" to aux_value.
10739 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10740 * dwarf2read.c: Include "dwarf2expr.h".
10741 (dwarf2_symbol_mark_computed): New function.
10742 (read_func_scope): Use it.
10743 (var_decode_location): New function.
10744 (new_symbol): Use it.
10745 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10746
10747 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10748 (dwarf2expr_h, dwarf2loc_h): New variables.
10749 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10750 (dwarf2expr.o, dwarf2loc.o): New rules.
10751 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10752 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10753 LOC_COMPUTED_ARG.
10754 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10755 * m2-exp.y (yylex): Likewise.
10756 * printcmd.c (address_info, print_frame_args): Likewise.
10757 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10758 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10759 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10760 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10761 * symtab.c (lookup_block_symbol): Likewise.
10762
5784d15e
AF
107632003-02-20 Adam Fedor <fedor@gnu.org>
10764
10765 * symtab.h: Remove objc_specific struct
10766 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10767 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10768 Have language_objc use cplus_specific struct.
10769
d4cad8db
TT
107702003-02-20 Tom Tromey <tromey@redhat.com>
10771
10772 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10773 TYPE_NAME, when printing a String value. PR java/1075.
10774
2f9a90b4
AF
107752003-02-20 Adam Fedor <fedor@gnu.org>
10776
d38074a8 10777 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10778 * objc-lang.c (find_methods): Make static.
2f9a90b4 10779
6f17862b
CF
107802003-02-20 Christopher Faylor <cgf@redhat.com>
10781
10782 * win32-nat.c (get_image_name): Check return value from
10783 ReadProcessMemory.
10784 (child_xfer_memory): Ditto.
10785
715d1656
AO
107862003-02-20 Alexandre Oliva <aoliva@redhat.com>
10787
10788 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10789 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10790 '${exec_prefix}' (in addition to the expansion thereof) as
10791 relocatable.
10792 * configure: Rebuilt.
10793
b1262a02
DC
107942003-02-20 David Carlton <carlton@math.stanford.edu>
10795
10796 * symtab.c (search_symbols): Revert the search_symbols part of my
10797 2002-12-23 patch. Add comment.
10798
7134143f
DJ
107992002-02-20 Daniel Jacobowitz <drow@mvista.com>
10800
10801 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10802 * dbxread.c (elfstab_build_psymtabs): Don't call
10803 install_minimal_symbols.
10804 (stabsect_build_psymtabs): Likewise.
10805 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10806 earlier.
10807 * somread.c (som_symfile_read): Call install_minimal_symbols
10808 and do_cleanups earlier.
10809 * nlmread.c (nlm_symfile_read): Likewise.
10810 * mdebugread.c (elfmdebug_build_psymtabs): Call
10811 install_minimal_symbols and make appropriate cleanups.
10812
cf466558
KB
108132003-02-20 Kevin Buettner <kevinb@redhat.com>
10814
10815 * solib.c (reload_shared_libraries): New function.
10816 (_initialize_solib): Add callbacks for ``set solib-search-path''
10817 and ``set solib-absolute-prefix''.
10818
de5ad195
DC
108192003-02-20 David Carlton <carlton@math.stanford.edu>
10820
10821 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10822 expand comment.
10823 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10824 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10825 * ada-typeprint.c (ada_typedef_print): Ditto.
10826 * ax-gdb.c (gen_var_ref): Ditto.
10827 * breakpoint.c (print_one_breakpoint): Ditto.
10828 * buildsym.c (finish_block): Ditto.
10829 * c-valprint.c (c_val_print): Ditto.
10830 * expprint.c (print_subexp): Ditto.
10831 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10832 * infcmd.c (jump_command): Ditto.
10833 * linespec.c (decode_line_2, decode_compound): Ditto.
10834 * maint.c (maintenance_translate_address): Ditto.
10835 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10836 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10837 Ditto.
8ffd9b1b
AJ
10838 * p-valprint.c (pascal_val_print): Ditto.
10839 * stabsread.c (define_symbol): Ditto.
de5ad195 10840 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10841 (print_frame_arg_vars, return_command): Ditto.
10842 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10843 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10844 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10845 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10846 (rbreak_command): Ditto.
10847 * tracepoint.c (tracepoints_info): Ditto.
10848 * typeprint.c (typedef_print): Ditto.
10849 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10850 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10851 * ada-typeprint.c: Update Copyright.
10852 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10853 * tracepoint.c, cli/cli-cmds.c: Ditto.
10854
f796e4be
KB
108552003-02-20 Kevin Buettner <kevinb@redhat.com>
10856
10857 * frame.c (generic_unwind_get_saved_register): Make non-static.
10858 * frame.h (generic_unwind_get_saved_register): Declare.
10859 * mips-tdep.c (read_next_frame_reg): Fetch register from
10860 current regcache when frame is NULL.
10861 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10862 that must be NULL.
10863 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10864 instead of frame_register_unwind().
10865
836cc9f4
AC
108662003-02-20 Andrew Cagney <ac131313@redhat.com>
10867
10868 * remote-sim.c (gdbsim_insert_breakpoint)
10869 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10870 code.
10871
501eef12
AC
108722003-02-20 Andrew Cagney <ac131313@redhat.com>
10873
10874 * remote.c (_initialize_remote): Add commands "set/show remote
10875 hardware-watchpoint-limit" and "set/show remote
10876 hardware-breakpoint-limit".
10877 (remote_hw_watchpoint_limit): Initialize to -1.
10878 (remote_hw_breakpoint_limit): Ditto.
10879 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10880
1b6bc7e0
CF
108812003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10882
10883 * coff-pe-read.c: New file - support reading of minimal symbols from a
10884 portable executable using the export table.
10885 * coff-pe-read.h: New file.
10886 * coffread.c: Include coff-pe-read.h.
10887 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10888 debugging symbols found.
10889 * Makefile.in (SFILES): Add coff-pe-read.o.
10890 (coff_pe_read_h): Define.
10891 (COMMON_OBS): Add coff-pe-read.o.
10892 (coffread.o): Add coff_pe_read_h dependency.
10893 (coff-pe-read.o): New target.
10894
fe898f56
DC
108952003-02-19 David Carlton <carlton@math.stanford.edu>
10896
10897 * Makefile.in (SFILES): Add block.c.
10898 (block_h): New.
10899 (COMMON_OBS): Add block.o.
10900 (block.o): New.
10901 (x86-64-tdep.o): Add $(block_h).
10902 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10903 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10904 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10905 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10906 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10907 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10908 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10909 * value.h: Add opaque declaration for struct block.
10910 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10911 * ada-lang.h: Ditto.
10912 * x86-64-tdep.c: #include "block.h"
10913 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10914 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10915 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10916 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10917 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10918 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10919 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10920 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10921 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10922 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10923 * symtab.c (block_function): Ditto.
10924 (contained_in): Ditto.
10925 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10926 block.h. Add opaque declaration for struct block.
10927 * symtab.h: Move block_function and contained_in declarations to
10928 block.h. Add opaque declarations for struct block, struct
10929 blockvector.
10930 (struct block): Move to block.h.
10931 (struct blockvector): Ditto.
10932 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10933 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10934 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10935 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10936 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10937 Ditto.
10938 * block.c: New file.
10939 * block.h: New file.
10940
173345b5
TR
109412003-02-19 Theodore A. Roth <troth@openavr.org>
10942
10943 * avr-tdep.c (avr_extract_return_value): Remove function.
10944 (avr_store_return_value): Remove function.
10945 (avr_extract_struct_value_address): Remove function.
10946 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10947
338ef23d
AC
109482003-02-19 Andrew Cagney <ac131313@redhat.com>
10949
10950 * rs6000-tdep.c: Include "gdb_assert.h".
10951 (registers_e500): Add "acc" and "spefscr".
10952 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10953 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10954 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10955 really is "r0".
10956 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10957
5412f5f3
KS
109582003-02-18 Keith Seitz <keiths@redhat.com>
10959
10960 * Makefile.in: Add gdbtk-interps.c.
10961
881324eb
KB
109622003-02-18 Kevin Buettner <kevinb@redhat.com>
10963
10964 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10965 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10966
6a2f5abf
AC
109672003-02-18 Andrew Cagney <cagney@redhat.com>
10968
10969 * symtab.h (struct objfile): Add opaque declaration.
10970
54c7009d
EZ
109712003-02-18 Elena Zannoni <ezannoni@redhat.com>
10972
10973 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10974 * dbxread.c (process_one_symbol): Use last_function_start rather
10975 than function_start_offset to find the real beginning of the
10976 current function. The latter is just the text section offset on
10977 some systems, the former is always the real function start.
54c7009d 10978
7ee6d7eb
AC
109792003-02-17 Andrew Cagney <cagney@redhat.com>
10980
10981 * configure.in: Revert ${target} != ${host}.
10982
2846da9b
AC
109832003-02-17 Andrew Cagney <ac131313@redhat.com>
10984
10985 * configure.in (Makefile): Use the test ${target} != ${host},
10986 instead of the absence of the "nm.h" file, to determine of the
10987 configuration non-native.
10988 * configure: Regenerate.
8ffd9b1b 10989
3b27aeea
EZ
109902003-02-14 Elena Zannoni <ezannoni@redhat.com>
10991
fbe586ae 10992 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10993
10994 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10995 conditionalize tui_active test.
10996 (lookup_cmd_1): Ditto.
10997
b0b1c2c0
MK
109982003-02-14 Mark Kettenis <kettenis@gnu.org>
10999
11000 * configure.in: Add check for _etext.
11001 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11002 available.
11003 * config.in, configure: regenerated.
11004
8f05cde5
DJ
110052003-02-14 Daniel Jacobowitz <drow@mvista.com>
11006
11007 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11008
021e7609
AC
110092003-02-14 Andrew Cagney <ac131313@redhat.com>
11010
11011 * main.c (tui_version): Delete variable.
11012 (captured_main): When --tui, set interpreter_p to "tui" instead of
11013 enabling tui_version.
11014 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11015 tui_version.
11016 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11017 * cli/cli-cmds.c (disassemble_command): Ditto.
11018 * defs.h (tui_version): Delete declaration.
11019 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11020 (tui-interp.o): Add rules.
11021 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11022
e325dcec
CF
110232003-02-14 Christopher Faylor <cgf@redhat.com>
11024
36ffb041 11025 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11026 just-loaded dll.
11027
c4f90d87
JM
110282003-02-12 Jason Molenda (jmolenda@apple.com)
11029
fbe586ae
RH
11030 * symmisc.c (print_objfile_statistics): Include information about
11031 the number of psymtabs and symtabs in each object file.
c4f90d87 11032
e46e5ccd
KS
110332003-02-13 Keith R Seitz <keiths@redhat.com>
11034
11035 * main.h (struct captured_main_args): Add interpreter_p.
11036 * main.c (captured_main): Initialize interpreter_p from context.
11037 * gdb.c (main): Set interpreter_p argument.
11038 * Makefile.in (gdb.o): Add dependency for interps.h.
11039
fe97fe9c
AC
110402003-02-12 Andrew Cagney <ac131313@redhat.com>
11041
11042 * event-top.c (cli_command_loop): Delete declaration.
11043 (_initialize_event_loop): Delete function setting event_loop_hook.
11044 * event-top.h (cli_command_loop): Declare. Update copyright.
11045 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11046 * interps.c (current_interp_command_loop): When event_loop_p, call
11047 cli_command_loop.
11048
1cdac4ef
AC
110492003-02-12 Andrew Cagney <ac131313@redhat.com>
11050
11051 * interps.h (interp_command_loop_ftype): Change return type to
11052 void.
11053
48037ead
ML
110542003-02-12 Michal Ludvig <mludvig@suse.cz>
11055
11056 * x86-64-tdep.c (x86_64_extract_return_value)
11057 (x86_64_store_return_value): Use regcache instead of regbuf.
11058 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11059 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11060
033afc63
AC
110612003-02-11 Andrew Cagney <ac131313@redhat.com>
11062
11063 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11064 * aclocal.m4: Regenerate.
11065 * configure: Regenerate.
11066
11067 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11068 TCL_LD_SEARCH_FLAGS.
11069
40d02bca
ML
110702003-02-10 Michal Ludvig <mludvig@suse.cz>
11071
11072 * dwarf2cfi.c: Reindented.
11073
11308a41
AC
110742003-02-09 Andrew Cagney <ac131313@redhat.com>
11075
11076 * interps.c (clear_interpreter_hooks): Convert function definition
11077 to ISO C.
11078
e1c1c0f6
DC
110792003-02-07 David Carlton <carlton@math.stanford.edu>
11080
11081 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11082
ab5d3da6
KB
110832003-02-07 Kevin Buettner <kevinb@redhat.com>
11084
11085 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11086 (struct type): ...to here.
11087 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11088 field.
11089 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11090 (replace_type): Set length on all type variants for a given type.
11091
b8a92b82
AC
110922003-02-07 Andrew Cagney <ac131313@redhat.com>
11093
11094 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11095 <sys/stat.h>.
11096 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11097
5cb316ef
AC
110982003-02-06 Andrew Cagney <ac131313@redhat.com>
11099
2555fe1a
AC
11100 * Makefile.in (symm-nat.o): Update dependencies.
11101 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11102 (lynx-nat.o, ia64-linux-nat.): Ditto.
11103 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11104 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11105 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11106
44270758
AC
11107 * Makefile.in (inflow_h): Define.
11108 (procfs.o, inflow.o, procfs.o): Update dependencies.
11109 * inftarg.c (child_stop): Delete extern declaration of
11110 inferior_process_group. Include "inflow.h".
11111 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11112 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11113 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11114 (our_process_group, inferior_process_group): Extern declarations.
11115
df8f7274
AC
11116 * procfs.c: Include "gdb_assert.h".
11117
5cb316ef
AC
11118 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11119 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11120 * jv-typeprint.c (java_type_print_base): Ditto.
11121 * typeprint.c (typedef_print): Eliminate STREQ.
11122 * cli/cli-script.c (define_command, define_command): Ditto.
11123 * main.c (captured_main): Ditto.
11124 * values.c (lookup_internalvar): Ditto.
11125 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11126 within `if' conditional.
11127 * linespec.c (decode_line_2): Ditto.
11128 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11129 (bfd_openw_with_cleanup): Ditto.
11130
2a28ccea
MK
111312003-02-07 Mark Kettenis <kettenis@gnu.org>
11132
11133 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11134 legacy_extract_return_value and store_return_value to
11135 legacy_return_value.
11136
786b8124
CF
111372003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11138
11139 * win32-nat.c (get_relocated_section_addrs): New function. Find
11140 section load addresses for symbol handling in relocated DLLs.
11141 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11142
b871e4ec
FF
111432003-02-05 Fred Fish <fnf@intrinsity.com>
11144
11145 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11146 '=' and '!='.
11147 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11148 with '&' and '=='.
11149 (angel_RDI_info): Ditto.
11150 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11151 with '&' and '!='.
11152 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11153
4389a95a 111542003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11155 Keith Seitz <keiths@redhat.com>
11156 Elena Zannoni <ezannoni@redhat.com>
11157 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11158
11159 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11160 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11161 (SUBDIR_MI_OBS): Add "mi-interp.o".
11162 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11163 (SFILES): Add "interps.c".
11164 (COMMON_OBS): Add "interps.o".
11165 (interps_h, mi_main_h): Define.
11166 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11167 (mi-main.o, main.o, event-top.o): Update dependencies.
11168 * cli/cli-interp.c: New file.
11169 * interps.h, interps.c: New files.
11170 * top.c: (gdb_init): Don't install the default interpreter, handed
11171 by captured_main.
11172 * main.c: Include "interps.h".
11173 (interpreter_p): Note that it should malloc'ed.
11174 (captured_command_loop): Call current_interp_command_loop.
11175 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11176 xfree and xstrdup when updating interpreter_p. Install the
11177 default interpreter. Add hack to stop mi1's copyright notice
11178 being encoded.
11179 * event-top.h (gdb_setup_readline): Declare.
11180 (gdb_disable_readline): Declare.
11181 * event-top.c: Include "interps.h".
11182 (display_gdb_prompt): Call current_interp_display_prompt_p.
11183 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11184 gdb_stdlog, and gdb_stdtarg.
11185 (_initialize_event_loop): Don't call gdb_setup_readline.
11186 * cli-out.c (cli_out_set_stream): New function.
11187 * cli-out.h (cli_out_set_stream): Declare.
11188
ff3b5810
MK
111892003-02-06 Mark Kettenis <kettenis@gnu.org>
11190
11191 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11192 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11193 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11194 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11195 config/i386/i386v42mp.mt: Removed.
11196
5b729aa5
MK
111972003-02-05 Mark Kettenis <kettenis@gnu.org>
11198
11199 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11200 GDB_OSABI_SOLARIS.
11201
8cc15142
MC
112022003-02-05 Michael Chastain <mec@shout.net>
11203
11204 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11205 2.12.1 and earlier versions.
11206
5aa5d4b9
AC
112072003-02-05 Andrew Cagney <ac131313@redhat.com>
11208
11209 Remove orphaned hosts, targets and files.
11210 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11211 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11212 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11213 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11214 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11215 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11216 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11217 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11218 * config/sparc/tm-sp64sim.h: Delete.
11219 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11220 hosts.
11221 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11222 mips*-dec-mach3* targets.
11223
b68767c1
MC
112242003-02-04 Michael Chastain <mec@shout.net>
11225
11226 * NEWS: Fix typo: sepcifying -> specifying.
11227
5ae7ca1d
MC
112282003-02-04 Michael Chastain <mec@shout.net>
11229
11230 * dwarfread.c: Add documentation on the state of dwarf-1,
11231 looking towards obsoletion.
11232
d08a4280
MC
112332003-02-03 Michael Chastain <mec@shout.net>
11234
11235 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11236 gdb/testsuite/gdb.c++/pr-1023.exp.
11237
e9be73e4
AC
112382003-02-04 Andrew Cagney <ac131313@redhat.com>
11239
11240 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11241 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11242
11243 * utils.c (init_page_info): Delete reference to MPW in comments.
11244 * main.c (captured_main): Delete #ifdef MPW.
11245
05d57f6f
AC
112462003-02-04 Andrew Cagney <ac131313@redhat.com>
11247
8ffd9b1b 11248 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11249 * monitor.c (monitor_expect): Obsolete reference to m32r.
11250 * configure.tgt: Mark m32r-*-elf* as obsolete.
11251 * MAINTAINERS: Mark m32k as obsolete.
11252 * m32r-rom.c: Obsolete file.
11253 * config/m32r/m32r.mt: Obsolete file.
11254 * config/m32r/tm-m32r.h: Obsolete file.
11255 * m32r-stub.c: Obsolete file.
11256 * m32r-tdep.c: Obsolete file.
11257
8b0e5691
AC
112582003-02-04 Andrew Cagney <ac131313@redhat.com>
11259
11260 * NEWS: Mention that the z8k-zilog-none is obsolete.
11261 * MAINTAINERS: Mark z8k as obsolete.
11262 * configure.tgt: Obsolete the z8k-*-coff* target.
11263 * config/z8k/z8k.mt: Obsolete file.
11264 * config/z8k/tm-z8k.h: Obsolete file.
11265 * z8k-tdep.c: Obsolete file.
11266
67f16606
AC
112672003-02-04 Andrew Cagney <ac131313@redhat.com>
11268
11269 * NEWS: Mention that the mn10200-elf is obsolete.
11270 * configure.tgt: Obsolete mn10200-*-* target.
11271 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11272 mention that the mn10200 is obsolete.
11273 * breakpoint.h: Ditto.
11274 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11275 * config/mn10200/mn10200.mt: Obsolete file.
11276 * config/mn10200/tm-mn10200.h: Obsolete file.
11277 * mn10200-tdep.c: Obsolete file.
11278
fd2299bd
AC
112792003-02-04 Andrew Cagney <ac131313@redhat.com>
11280
11281 * MAINTAINERS: Mark h8500 as obsolete.
11282 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11283 * findvar.c (value_from_register): Ditto.
11284 * h8500-tdep.c: Mark file as obsolete.
11285 * config/h8500/h8500.mt: Ditto.
11286 * config/h8500/tm-h8500.h: Ditto.
11287 * NEWS: Mention that h8500 is obsolete.
11288
eb9a305d
DC
112892003-02-04 David Carlton <carlton@math.stanford.edu>
11290
11291 * objfiles.c (allocate_objfile): Always set name. Add comment at
11292 start of function.
11293 * jv-lang.c (get_dynamics_objfile): Add comment.
11294
406fc7fb
DC
112952003-02-04 David Carlton <carlton@math.stanford.edu>
11296
11297 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11298 * printcmd.c (build_address_symbolic): Replace uses of
11299 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11300 SYMBOL_NAME, and asm_demangle.
11301 Update copyright.
11302
93d91629
DC
113032003-02-04 David Carlton <carlton@math.stanford.edu>
11304
11305 * linespec.c (decode_compound): Extract code into
11306 lookup_prefix_sym.
11307 (lookup_prefix_sym): New function.
11308
1c5cb38e
DC
113092003-02-04 David Carlton <carlton@math.stanford.edu>
11310
11311 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11312 FLOAT_COERCION_BADNESS.
11313 * gdbtypes.c (rank_one_type): Replace all uses of
11314 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11315
0cf824c9
JB
113162003-02-04 Jim Blandy <jimb@redhat.com>
11317
11318 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11319 section, let dwarf_macinfo_section point to it, not
11320 dwarf_loc_section.
11321
a2d356b0
DJ
113222003-02-04 Daniel Jacobowitz <drow@mvista.com>
11323
11324 Pointed out by Anton Blanchard <anton@samba.org>.
11325 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11326 (ppc_linux_at_sigtramp_return_path): Use it.
11327
2de7ced7
DJ
113282003-02-04 Daniel Jacobowitz <drow@mvista.com>
11329
11330 * defs.h (streq): Add prototype.
11331 * utils.c (streq): New function.
11332
11333 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11334 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11335 * mdebugread.c (new_symbol): Likewise.
11336 * stabsread.c (define_symbol): Likewise.
11337 * coffread.c (process_coff_symbol): Likewise.
11338 * dwarfread.c (new_symbol): Likewise.
11339
11340 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11341 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11342 here.
11343 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11344 SYMBOL_INIT_DEMANGLED_NAME.
11345 * objfiles.c: Include "hashtab.h".
11346 (allocate_objfile): Call htab_set_functions_ex for the
11347 demangled_names_hash.
11348 (free_objfile): Call htab_delete for the demangled_names_hash.
11349 * objfiles.h (struct htab): Add declaration.
11350 (struct objfile): Add demangled_names_hash.
11351 * symfile.c: Include "hashtab.h".
11352 (reread_symbols): Call htab_delete for the demangled_names_hash.
11353 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11354 SYMBOL_NAME in the bcache.
11355 * symtab.c: Include "hashtab.h". Update comments.
11356 (create_demangled_names_hash, symbol_set_names): New functions.
11357 (symbol_find_demangled_name): New function, broken out from
11358 symbol_init_demangled_names.
11359 (symbol_init_demangled_names): Use it.
11360 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11361 (SYMBOL_SET_NAMES): New macro.
11362 (symbol_set_names): Add prototype.
11363
15831452
JB
113642003-02-03 Jim Blandy <jimb@redhat.com>
11365
11366 Use a single, consistent representation for an empty minimal
11367 symbol table in an objfile.
11368 * objfiles.c (terminate_minimal_symbol_table): New function.
11369 (allocate_objfile): Call it.
11370 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11371 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11372 non-NULL.
15831452
JB
11373 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11374 objfile has minimal symbols, compare minimal_symbol_count to zero,
11375 instead of comparing msymbols with NULL.
11376 * objfiles.c (have_minimal_symbols): Same.
11377 * solib-sunos.c (solib_add_common_symbols): Call
11378 terminate_minimal_symbol_table.
11379 * symfile.c (reread_symbols): Same.
8ffd9b1b 11380
ffc65945
KB
113812003-02-03 Kevin Buettner <kevinb@redhat.com>
11382
11383 * s390-tdep.c (s390_address_class_type_flags)
11384 (s390_address_class_type_flags_to_name)
11385 (s390_address_class_name_to_type_flags): New functions.
11386 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11387 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11388
f211c6d4
MS
113892003-02-03 Michael Snyder <msnyder@redhat.com>
11390
11391 * arm-tdep.c: Fix spell-o in comment.
11392
659b0389
ML
113932003-02-03 Michal Ludvig <mludvig@suse.cz>
11394
11395 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11396 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11397 error messages to contain BFD filename.
659b0389 11398
3b31d625
EZ
113992003-02-02 Elena Zannoni <ezannoni@redhat.com>
11400
997b089a 11401 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11402 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11403 (do_mixed_source_and_assembly): Use
11404 make_cleanup_ui_out_tuple_begin_end and
11405 make_cleanup_ui_out_tuple_begin_end.
11406 (do_mixed_source_and_assembly): Ditto.
11407 * thread.c (do_captured_list_thread_ids): Ditto.
11408 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11409 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11410 ui_out_tuple_end): Delete prototypes.
11411 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11412 ui_out_list_end, ui_out_tuple_end): Delete.
11413
11414 From Kevin Buettner <kevinb@redhat.com>:
11415 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11416 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11417 (do_cleanup_table_end): New functions.
11418 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11419 Use cleanups to invoke_ui_out_tuple_end().
11420 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11421 * cli/cli-setshow.c (cmd_show_list): Use
11422 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11423
5b181d62
AC
114242003-02-02 Andrew Cagney <ac131313@redhat.com>
11425
11426 * frame.c (frame_unwind_register): New function.
11427 (frame_unwind_unsigned_register): Use.
11428 (frame_unwind_signed_register): Use.
11429 (frame_read_register): New function.
11430 * frame.h (frame_unwind_register): Declare.
11431 (frame_read_register): Declare.
11432
11433 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11434 and frame_unwind_register instead of read_memory, write_register
11435 and deprecated_write_register_bytes.
11436
5f601589
AC
114372003-02-02 Andrew Cagney <ac131313@redhat.com>
11438
11439 * frame.h: Note that namelen can be negative.
11440 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11441 NAME's length.
11442
11443 * NEWS: Mention that the d10v's `regs' command is deprecated.
11444 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11445 (d10v_print_registers_info): New function.
11446 (show_regs): Call d10v_print_registers_info.
11447 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11448
6a3fe0a4
MK
114492003-02-02 Mark Kettenis <kettenis@gnu.org>
11450
11451 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11452 lost in the previous patch.
11453
075559bc
AC
114542003-02-01 Andrew Cagney <ac131313@redhat.com>
11455
11456 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11457 * stack.c (print_frame_info_base): Output complete FRAME tuple
11458 for synthesized frames.
075559bc 11459
6789195b
AC
114602003-02-02 Andrew Cagney <ac131313@redhat.com>
11461
11462 * mips-nat.c (zerobuf): Delete.
11463 (fetch_inferior_registers): Alloc local zerobuf.
11464 (fetch_core_registers): Alloc local zerobuf.
11465 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11466 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11467 * thread-db.c (thread_db_store_registers): Ditto.
11468 * sh-tdep.c (sh_do_register): Ditto.
11469 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11470 * remote-sim.c (gdbsim_store_register): Ditto.
11471 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11472 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11473 * monitor.c (monitor_supply_register): Ditto.
11474 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11475 * mips-nat.c (fetch_inferior_registers): Ditto.
11476 * m68klinux-nat.c (fetch_register): Ditto.
11477 * lynx-nat.c (fetch_inferior_registers): Ditto.
11478 (fetch_inferior_registers): Ditto.
11479 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11480 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11481 (hpux_thread_store_registers): Ditto.
11482 * hppah-nat.c (fetch_register): Ditto.
11483 * hppab-nat.c (fetch_register): Ditto.
11484 * hppa-tdep.c (pa_register_look_aside): Ditto.
11485 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11486 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11487
e669114a
AC
114882003-02-01 Andrew Cagney <ac131313@redhat.com>
11489
11490 * gdbarch.sh: Explictly specify all method levels. When a
11491 variable with an empty level, provide a non-multi-arch default.
11492 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11493 * gdbarch.h: Re-generate.
11494 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11495 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11496
9a043c1d
AC
114972003-02-01 Andrew Cagney <ac131313@redhat.com>
11498
11499 * defs.h (host_pointer_to_address): Delete declaration.
11500 (address_to_host_pointer): Delete declaration.
11501 * utils.c (host_pointer_to_address): Delete function.
11502 (address_to_host_pointer): Delete function.
11503 * procfs.c (procfs_address_to_host_pointer): New function.
11504 * procfs.c (proc_set_watchpoint): Use.
11505 (procfs_can_use_hw_breakpoint): Update comments.
11506 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11507 (som_solib_add): Use.
11508 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11509 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11510
7ca9f392
AC
115112003-02-01 Andrew Cagney <ac131313@redhat.com>
11512
94bbfd30
AC
11513 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11514 strlen d_name.
11515
7ca9f392
AC
11516 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11517 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11518 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11519 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11520 (define_symbol): Update.
11521 * symfile.c (generic_load): Remove references to nindy.
11522 * symtab.c: Remove references to nindy.
11523
31a85ea2
AC
115242003-02-01 Andrew Cagney <ac131313@redhat.com>
11525
11526 * infcmd.c (print_float_info): Delete code conditional on
11527 FLOAT_INFO.
11528 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11529 * config/m68k/nm-apollo68b.h: Ditto.
11530 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11531 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11532 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11533
f6e85fc8
MK
115342003-02-01 Mark Kettenis <kettenis@gnu.org>
11535
6015b6a0
MK
11536 * config/i386/tm-i386os9k.h: Removed.
11537
f7a30bdf
MK
11538 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11539 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11540 they're identical to i[3456]86-*-sysv* now.
11541 * config/i386/i386v32.mh: Removed.
11542 * config/i386/xm-i386v32.h: Removed.
11543 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11544
28d52111
MK
11545 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11546
4d3f6bce
MK
11547 * config/i386/i386dgux.mh: Removed.
11548 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11549
f6e85fc8
MK
11550 * configure.in: Fix typo.
11551 * configure: Regenerated.
11552
53955967
DC
115532003-01-31 David Carlton <carlton@math.stanford.edu>
11554
11555 * dwarf2read.c (dwarf2_locate_sections): Set
11556 dwarf_ranges_section.
11557
b1364885
AC
115582003-01-31 Andrew Cagney <ac131313@redhat.com>
11559
8dbb1c65
AC
11560 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11561 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11562
8731e58e
AC
11563 * utils.c: Re-indent.
11564
b1364885
AC
11565 * config/djgpp/fnchange.lst: Delete nindy files.
11566 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11567 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11568 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11569 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11570 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11571 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11572 * Makefile.in (init.c): Remove nindy references.
11573 (saber_gdb): Delete rule.
11574 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11575 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11576 and a68v-nat.c.
11577 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11578 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11579 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11580 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11581 nindy-share/stop.h.
11582 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11583 * saber.suppress: Delete file.
11584
086df311
DJ
115852003-01-31 Daniel Jacobowitz <drow@mvista.com>
11586
11587 * dbxread.c (stabs_data): New static variable.
11588 (fill_symbuf): Support an in-memory buffer for stabs data.
11589 (stabs_seek): New function.
11590 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11591 (read_ofile_symtab): Use stabs_seek.
11592 (elfstab_build_psymtabs): Take an asection* instead of
11593 an offset and size. Relocate the stabs data if necessary.
11594 Save the section* for dbx_psymtab_to_symtab.
11595 * dwarf2read.c: Add section variables for each debug section.
11596 (dwarf2_locate_sections): Fill them in.
11597 (dwarf2_read_section): Take an asection* argument.
11598 Relocate the section contents if necessary.
11599 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11600 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11601 it to dwarf2_read_section.
11602 (dwarf2_build_frame_info): Update callers.
11603 * elfread.c (elf_symfile_read): Update call to
11604 elfstab_build_psymtabs.
11605 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11606 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11607 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11608 * symfile.c (symfile_dummy_outputs): New function.
11609 (symfile_relocate_debug_section): New function.
11610 * symfile.h (symfile_relocate_debug_section): Add prototype.
11611
87d1b352
RH
116122003-01-31 Richard Henderson <rth@redhat.com>
11613
11614 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11615 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11616 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11617 * alpha-tdep.c (alpha_register_name): Add "unique".
11618 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11619 (ALPHA_UNIQUE_REGNUM): New.
11620 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11621
c48861fb
AC
116222003-01-31 Andrew Cagney <ac131313@redhat.com>
11623
11624 * README: Remove reference to Ericsson 1800 monitor.
11625 * Makefile.in (remote-es.o): Delete rule.
11626 (ALLDEPFILES): Delete remote-es.c.
11627 * remote-es.c: Delete file.
11628 * config/m68k/es1800.mt: Delete file.
11629 * config/djgpp/fnchange.lst: Update.
11630 * configure.tgt: Delete m68*-ericsson-* target.
11631
d764a824
AF
116322003-01-31 Adam Fedor <fedor@gnu.org>
11633
11634 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11635 Remove duplicate/shadowing variable of same name.
11636
fe36c4f4
JB
116372003-01-30 Jim Blandy <jimb@redhat.com>
11638
11639 * symfile.c (find_separate_debug_file): Assert that the objfile's
11640 directory name we compute ends with a slash, and then assume that
11641 that's so everywhere we use it.
11642
cb741690
DJ
116432003-01-30 Daniel Jacobowitz <drow@mvista.com>
11644
11645 * valops.c (value_assign): Flush frame cache after stores to memory
11646 also.
11647
96ee5227
AC
116482003-01-30 Andrew Cagney <ac131313@redhat.com>
11649
11650 * Makefile.in (mon960-rom.o): Delete rule.
11651 * mon960-rom.c: Delete file.
11652
7f6104a9
AC
116532003-01-30 Andrew Cagney <ac131313@redhat.com>
11654
11655 * d10v-tdep.c: Include "frame-unwind.h".
11656 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11657 list.
11658 (next_addr, uses_frame): Delete.
11659 (struct d10v_unwind_cache): Define.
11660 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11661 Use info instead of next_addr and uses_frame globals.
11662 (d10v_frame_init_saved_regs): Delete function.
11663 (d10v_init_extra_frame_info): Delete function.
11664 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11665 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11666 init_frame_pc or frame_saved_pc.
11667 (d10v_pop_frame): Delete function.
11668 (do_d10v_pop_frame): Delete function.
11669 (d10v_frame_chain): Delete function.
11670 (d10v_frame_chain_valid): Delete function.
11671 (d10v_frame_pc_unwind): New function.
11672 (d10v_frame_id_unwind): New function.
11673 (saved_regs_unwinder): New function.
11674 (d10v_frame_register_unwind): New function.
11675 (d10v_frame_pop): New function.
11676 (d10v_frame_unwind): New variable.
11677 (d10v_frame_p): New function.
11678 (d10v_frame_saved_pc): Delete function.
11679 * Makefile.in (d10v-tdep.o): Update dependencies.
11680
cad2e848
JB
116812003-01-30 J. Brobecker <brobecker@gnat.com>
11682
11683 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11684 causing some regressions due to a change in the default value
11685 for this macro.
11686
af34e669
DJ
116872003-01-29 Richard Henderson <rth@redhat.com>
11688 Elena Zannoni <ezannoni@redhat.com>
11689 Daniel Jacobowitz <drow@mvista.com>
11690
11691 Fix PR gdb/961.
8ffd9b1b 11692 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11693 variables.
11694 (RANGES_SECTION): New.
11695 (dwarf_ranges_buffer): New variable.
11696 (struct comp_unit_head): Add member "die".
11697 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11698 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11699 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11700 (dwarf2_locate_sections): Likewise.
11701 (dwarf2_build_psymtabs): Read .debug_ranges.
11702 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11703 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11704 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11705 Look for DW_AT_ranges and return the bounding box.
11706
baa93fa6
CF
117072003-01-29 Brian Ford <ford@vss.fsi.com>
11708
11709 * win32-nat.c (cygwin_pid): Removed as unused.
11710 (child_attach): Try fall back to Cygwin pid.
11711
c63f977f
JB
117122003-01-29 Jim Blandy <jimb@redhat.com>
11713
11714 * objfiles.h (struct objfile): Doc fix.
11715
d62d1979
AC
117162003-01-29 Andrew Cagney <ac131313@redhat.com>
11717
11718 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11719 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11720 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11721 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11722 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11723 (FRAME_SAVED_PC): Change to a function with predicate.
11724 * gdbarch.h, gdbarch.c: Re-generate.
11725
1ae18a04
AC
117262003-01-28 Andrew Cagney <ac131313@redhat.com>
11727
52287340
AC
11728 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11729
1ae18a04
AC
11730 * complaints.c (complain): Delete function.
11731 * complaints.h (struct deprecated_complaint): Delete definition.
11732 (complain): Delete declaration.
11733
f2c16bd6
KB
117342003-01-28 Kevin Buettner <kevinb@redhat.com>
11735
11736 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11737 dummy frames.
11738
a94dd1fd
AC
117392003-01-27 Andrew Cagney <ac131313@redhat.com>
11740
11741 * sentinel-frame.h, sentinel-frame.c: New files.
11742 * Makefile.in (frame.o): Update dependencies.
11743 (SFILES): Add sentinel-frame.c.
11744 (sentinel_frame_h): Define.
11745 (COMMON_OBS): Add sentinel-frame.o.
11746 (sentinel-frame.o): Specify dependencies.
11747 * frame.c: Include "sentinel-frame.h".
11748 (frame_register_unwind): Rewrite assuming that there is always a a
11749 ->next frame.
11750 (frame_register, generic_unwind_get_saved_register): Ditto.
11751 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11752 (create_sentinel_frame, unwind_to_current_frame): New functions.
11753 (get_current_frame): Rewrite using create_sentinel_frame and
11754 unwind_to_current_frame. When possible, always create a frame.
11755 (create_new_frame): Set next to the sentinel frame.
11756 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11757 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11758 ID cache when necessary.
11759 (frame_saved_regs_id_unwind): Use frame_relative_level.
11760 (deprecated_generic_get_saved_register): Use frame_relative_level,
11761 get_frame_saved_regs, get_frame_pc, get_frame_base and
11762 get_next_frame.
11763 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11764 frame_register.
11765
5378adc4
DJ
117662003-01-27 Daniel Jacobowitz <drow@mvista.com>
11767
11768 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11769
51ee2ddc
DJ
117702003-01-27 Daniel Jacobowitz <drow@mvista.com>
11771
11772 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11773 (maintenance_set_profile_cmd): Use error () instead of warning ().
11774
d9feb4e7
DJ
117752003-01-27 Daniel Jacobowitz <drow@mvista.com>
11776
11777 * configure.in: Check that -pg works if using --enable-profiling.
11778 Check for monstartup and _mcleanup regardless of --enable-profiling.
11779 * maint.c: Check for monstartup and _mcleanup before using them.
11780 * config.in: Regenerated.
11781 * configure: Regenerated.
11782
2d188dd3
NC
117832003-01-24 Nick Clifton <nickc@redhat.com>
11784
11785 * Add sh2e support:
11786
11787 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11788
11789 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11790 (sh2e_show_regs): New.
11791 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11792 * config/sh/tm-sh.h: Added sh2e to comments.
11793
cb3c37b2
JB
117942003-01-23 Jim Blandy <jimb@redhat.com>
11795
11796 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11797 symbols found)" message here; we haven't checked for a separate
11798 debug info file yet, so we don't know yet.
11799 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11800 we've looked everywhere. Also, there's no need to print a special
11801 message when we're loading the separate debug info file: the one
11802 symbol_file_add prints is fine.
11803
5b5d99cf
JB
118042003-01-23 Alexander Larsson <alexl@redhat.com>
11805 Jim Blandy <jimb@redhat.com>
11806
11807 Add support for executables whose debug info has been separated
11808 out into a separate file, leaving only a link behind.
11809 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11810 and separate_debug_objfile_backlink.
11811 (put_objfile_before): New declaration.
11812 * symfile.c: #include "filenames.h".
11813 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11814 debug info in a separate file, read that, too. Save the addrs
11815 argument, so we can use it again to read the separated debug info;
11816 syms_from_objfile modifies the table we pass it.
11817 (reread_symbols): After re-reading an objfile, call
11818 reread_separate_symbols to refresh its separate debug info
11819 objfile, if it has one.
11820 (reread_separate_symbols, find_separate_debug_file,
11821 get_debug_link_info, separate_debug_file_exists): New functions.
11822 (debug_file_directory): New global var.
11823 (_initialize_symfile): Initialize debug_file_directory, and
11824 provide the new `set debug-file-directory' command to let the user
11825 change it.
11826 * objfiles.c (free_objfile): If this objfile has its debug info in
11827 a separate objfile, free that one too. If this is itself a
11828 separate debug info objfile, clear our parent's backlink.
11829 (put_objfile_before): New function.
11830 * utils.c (gnu_debuglink_crc32): New function.
11831 * defs.h (gnu_debuglink_crc32): New declaration.
11832 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11833 * configure.in: Handle --with-separate-debug-dir config option.
11834 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11835 * acconfig.h (DEBUGDIR): New macro.
11836 * configure, aclocal.m4, config.in: Regenerated.
11837
7e8580c1
JB
118382003-01-22 Jim Blandy <jimb@redhat.com>
11839
7904e09f
JB
11840 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11841 like the old symbol_file_add, but taking new arguments: you can
11842 now pass in either a `struct section_addr_info' list to say where
11843 each section is loaded, or a `struct section_offsets' table. Pass
11844 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11845 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11846 with the appropriate quiescent values for the new arguments.
11847
7e8580c1
JB
11848 * symfile.c: #include "gdb_assert.h".
11849 (syms_from_objfile): Add the ability to pass in a section offset
11850 table directly, as an alternative to the section_addr_info table.
11851 Document arguments better.
11852 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11853 * symfile.h (syms_from_objfile): Update declaration.
11854 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11855 syms_from_objfile.
11856 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11857
d28f9cdf
DJ
118582003-01-22 Daniel Jacobowitz <drow@mvista.com>
11859
11860 Original patch by Tom Tromey <tromey@cygnus.com> and
11861 Jason Molenda <jmolenda@apple.com>.
11862 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11863 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11864 * NEWS: Mention profiling.
11865 * configure.in (--enable-gdbtk): Fix typo.
11866 (--enable-profiling): New. Set PROFILE_CFLAGS.
11867 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11868 Fill in function.
11869 (profiling_state): New variable.
11870 (mcleanup_wrapper): New function.
11871 (_initialize_maint): Remove NOTYET, fix call to
11872 add_setshow_boolean_cmd for "maint set profile".
11873 * configure: Regenerated.
11874
df21e465
MH
118752003-01-21 Martin M. Hunt <hunt@redhat.com>
11876
11877 * Makefile.in (install-gdbtk): Install PNG images too.
11878
73c1f219
AC
118792003-01-21 Andrew Cagney <ac131313@redhat.com>
11880
11881 * exec.c (text_start): Delete global variable.
11882 (exec_file_attach): Make text_start local to the function.
11883 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11884 * valops.c (hand_function_call): Delete code that handles
11885 BEFORE_TEXT_END and AFTER_TEXT_END.
11886 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11887 of CALL_DUMMY_LOCATION.
11888 * gdbarch.c: Regenerate.
11889 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11890 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11891 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11892 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11893 (text_end): Delete extern declaration.
11894
eb4f72c5
AC
118952003-01-21 Andrew Cagney <ac131313@redhat.com>
11896
11897 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11898 * blockframe.c (backtrace_below_main): Move to "frame.c".
11899 (frame_chain_valid): Delete check for backtrace_below_main.
11900 (_initialize_blockframe): Delete initialization, move ``set
11901 backtrace-below-main'' command to "frame.c".
11902 (do_flush_frames_sfunc): Delete function.
11903 * frame.c: Include "command.h" and "gdbcmd.h".
11904 (frame_type_from_pc): New function.
11905 (create_new_frame): Use frame_type_from_pc.
11906 (legacy_get_prev_frame): New function.
11907 (get_prev_frame): Rewrite. When an old style frame, call
11908 legacy_get_prev_frame. Otherwize, unwind the PC first.
11909 (_initialize_frame): Add ``set backtrace-below-main'' command.
11910 * Makefile.in (frame.o): Update dependencies.
11911
778ce8cc
AC
119122003-01-19 Andrew Cagney <ac131313@redhat.com>
11913
11914 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11915 DEPRECATED_REGISTERS_INFO.
11916
01c193c8
AC
119172003-01-19 Andrew Cagney <ac131313@redhat.com>
11918
11919 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11920 Maintainers'. Update `Various Maintainers'.
11921
dedc2a2b
AC
119222003-01-19 Andrew Cagney <ac131313@redhat.com>
11923
11924 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11925 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11926 Suppress actual parameters when `-'.
11927 * gdbarch.h, gdbarch.c: Regenerate.
11928
b7261c70
AC
119292003-01-19 Andrew Cagney <ac131313@redhat.com>
11930
11931 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11932 code handling dummy frames.
11933
dbe9fe58
AC
119342003-01-19 Andrew Cagney <ac131313@redhat.com>
11935
11936 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11937 (struct frame_unwind): Add field pop.
11938 * frame.h (frame_pop): Declare.
11939 * frame.c (frame_saved_regs_pop): New function.
11940 (trad_frame_unwinder): Add frame_saved_regs_pop.
11941 (frame_pop): New function.
11942 * dummy-frame.c (dummy_frame_pop): New function.
11943 (discard_innermost_dummy): New function.
11944 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11945 (dummy_frame_unwind): Add dummy_frame_pop.
11946 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11947 * valops.c (hand_function_call): Ditto.
11948 * stack.c (return_command): Ditto.
11949
570b8f7c
AC
119502003-01-18 Andrew Cagney <ac131313@redhat.com>
11951
11952 * cris-tdep.c: Fix function declaration indentation.
11953 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11954 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11955 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11956 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11957 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11958 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11959
119602003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11961
11962 * README (Unpacking and Installation -- quick overview):
11963 Warn against ".../gdb-5.3/gdb/configure".
11964
494cca16
AC
119652003-01-18 Andrew Cagney <ac131313@redhat.com>
11966
11967 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11968 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11969 (struct frame_unwind): Declare opaque.
11970 (dummy_frame_p): Declare function.
11971 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11972 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11973 * dummy-frame.c: Include "frame-unwind.h".
11974 (dummy_frame_p): New function.
11975 (dummy_frame_unwind): New variable.
11976 * frame.c: Include "frame-unwind.h".
11977 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11978 to use the new unwind field.
11979 (set_unwind_by_pc): Delete function.
11980 (create_new_frame, get_prev_frame): Set unwind field using
11981 frame_unwind_find_by_pc.
11982 (trad_frame_unwind, trad_frame_unwinder): New variables.
11983 * frame.h (trad_frame_unwind): Declare variable.
11984 (frame_id_unwind_ftype): Delete declaration.
11985 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11986 (struct frame_unwind): Declare opaque.
11987 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11988 register_unwind with a single unwind pointer.
11989 * frame-unwind.h, frame-unwind.c: New files.
11990 * Makefile.in (SFILES): Add frame-unwind.c.
11991 (frame_unwind_h): Define.
11992 (COMMON_OBS): Add frame-unwind.o.
11993 (frame-unwind.o): Specify dependencies.
11994 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11995
4efb68b1
AC
119962003-01-18 Andrew Cagney <ac131313@redhat.com>
11997
11998 * ada-valprint.c: Eliminate PTR.
11999 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12000 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12001 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12002 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12003 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12004 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12005 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12006
a84d24ee
AC
120072003-01-17 Andrew Cagney <ac131313@redhat.com>
12008
762f08a3
AC
12009 * main.c (captured_main): Don't use PTR.
12010 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12011 * gdbtypes.c (lookup_primitive_typename): Ditto.
12012 (lookup_struct_elt_type): Ditto.
12013 * f-valprint.c (info_common_command): Ditto.
12014 (list_all_visible_commons): Ditto.
12015 * jv-typeprint.c (java_type_print_base): Ditto.
12016
a84d24ee
AC
12017 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12018 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12019 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12020 i386-interix-nat.c and i386-interix-tdep.c. Rename
12021 m68klinux-nat.c and m68klinux-tdep.c. Rename
12022 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12023 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12024 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12025 * main.c (captured_main): Use xfree, not free.
12026
c170fb60
AC
120272003-01-16 Andrew Cagney <ac131313@redhat.com>
12028
12029 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12030 ID back using a parameter.
12031 * frame.c (frame_id_unwind): Update call.
12032 (frame_saved_regs_id_unwind): Update.
12033 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12034 * dummy-frame.h (struct frame_id): Add opaque declaration.
12035 (dummy_frame_id_unwind): Update declaration.
12036
867f3898
AC
120372003-01-15 Andrew Cagney <ac131313@redhat.com>
12038
12039 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12040
40622be8 120412003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12042
40622be8 12043 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12044
ae66c1fc
EZ
120452003-01-14 Elena Zannoni <ezannoni@redhat.com>
12046
997b089a 12047 Fix PR gdb/898
ae66c1fc
EZ
12048 * breakpoint.c (until_break_command): Add new argument. Use it to
12049 decide whether to stop only at the current frame or not.
12050 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12051 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12052 call.
12053 (advance_command): New function.
12054 (_initialize_infcmd): Update help string for 'until' command.
12055 Add new 'advance' command.
12056
a04257e6
DC
120572003-01-14 David Carlton <carlton@math.stanford.edu>
12058
12059 * linespec.c (decode_line_1): Normalize comments.
12060 (set_flags): Ditto.
12061 (locate_first_half): Ditto.
12062 (decode_compound): Ditto.
12063 (symtab_from_filename): Ditto.
12064 (decode_all_digits): Ditto.
12065 (decode_dollar): Ditto.
12066 (find_methods): Ditto.
12067 (find_toplevel_char): Ditto.
12068
1bac305b
AC
120692003-01-13 Andrew Cagney <ac131313@redhat.com>
12070
12071 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12072 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12073 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12074 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12075 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12076 * language.c, language.h, m32r-tdep.c: Update copyright.
12077 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12078 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12079 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12080 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12081 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12082 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12083
25caa7a8
EZ
120842003-01-13 Elena Zannoni <ezannoni@redhat.com>
12085
12086 * stabsread.h (process_later, resolve_cfront_continuation):
12087 Obsolete.
12088 Update copyright years.
12089 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12090 Update copyright year.
12091 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12092 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12093 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12094 Update copyright year.
12095 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12096 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12097 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12098 (parse_partial_symbols): Obsolete cfront support.
12099 * stabsread.c
12100 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12101 macros.
12102 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12103 read_cfront_baseclasses, read_cfront_member_functions,
12104 resolve_cfront_continuation,read_cfront_static_fields,
12105 copy_cfront_struct_fields): Obsolete functions.
12106 (define_symbol, read_one_struct_field): Obsolete cfront support.
12107 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12108 Update Copyright year.
12109
7789c6f5
EZ
121102003-01-13 Elena Zannoni <ezannoni@redhat.com>
12111
12112 * stack.c (print_frame_info, print_stack_frame_base_stub,
12113 print_stack_frame_base, show_and_print_stack_frame_stub,
12114 show_and_print_stack_frame, print_only_stack_frame_stub,
12115 print_only_stack_frame): Delete functions.
12116 (print_stack_frame_stub): Call print_frame_info instead of
12117 print_frame_info_base.
12118 (print_frame_info_base): Rename to print_frame_info.
12119 (backtrace_command_1): Call print_frame_info, instead of
12120 print_frame_info_base.
12121 (current_frame_command): Call print_stack_frame, instead of
12122 print_only_stack_frame.
12123 (frame_command): Call print_stack_frame, instead of
12124 show_and_print_stack_frame.
12125 (up_command): Ditto.
12126 (down_command): Ditto.
12127 * frame.h (print_only_stack_frame): Delete prototype.
12128 * infrun.c (normal_stop): Call print_stack_frame, instead of
12129 show_and_print_stack_frame.
12130 * thread.c (info_threads_command): Call print_stack_frame, instead
12131 of print_only_stack_frame.
12132
3f5a3016
AC
121332003-01-13 Andrew Cagney <ac131313@redhat.com>
12134
d99ba314
AC
12135 * README (Graphical interface to GDB): Update URL. Point at
12136 gdb/links/.
12137
3f5a3016
AC
12138 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12139 version match.
12140
083ae935
DJ
121412003-01-13 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12144 lines.
12145
5365276c
DJ
121462003-01-13 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * thread-db.c (attach_thread): Prototype.
12149 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12150 thread information (ti), and valid flags (th_valid, ti_valid).
12151 (attach_thread): Move target_pid_to_str call to after the thread
12152 is added to GDB's list. Initialize the cache.
12153 (thread_get_info_callback, thread_db_map_id2thr)
12154 (thread_db_get_info): New functions.
12155 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12156 (thread_db_store_registers, thread_db_thread_alive)
12157 (thread_db_get_thread_local_address): Use them.
12158 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12159 of calling error() for threads in unknown state.
12160
12161 (clear_lwpid_callback): New function.
12162 (thread_db_resume): Use it to clear the cache.
12163
9fc30b6b
DJ
121642003-01-13 Daniel Jacobowitz <drow@mvista.com>
12165
12166 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12167 (resume_callback): Remove dead code.
12168
8f871025
AC
121692003-01-13 Andrew Cagney <ac131313@redhat.com>
12170
12171 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12172 predicate.
12173 * gdbarch.h, gdbarch.c: Regenerate.
12174 * stack.c (frame_info): Only initialize the saved registers when
12175 FRAME_INIT_SAVED_REGS_P.
12176 * frame.c (frame_saved_regs_register_unwind): Assert
12177 FRAME_INIT_SAVED_REGS_P.
12178 (deprecated_generic_get_saved_register): Ditto.
12179
3f565f1e
DJ
121802003-01-13 Daniel Jacobowitz <drow@mvista.com>
12181
12182 * source.c (openp): Squelch warning about "filename".
12183
072b1022
DJ
121842003-01-13 Daniel Jacobowitz <drow@mvista.com>
12185
12186 * source.c (openp): If the file does not exist don't necessarily
12187 search the path.
12188
973ccf8b
DJ
121892003-01-13 Daniel Jacobowitz <drow@mvista.com>
12190
12191 Fix PR gdb/872.
12192 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12193 (integer_types_same_name_p): New function.
12194 (rank_one_type): Use it.
12195 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12196
030292b7
DJ
121972003-01-13 Daniel Jacobowitz <drow@mvista.com>
12198
12199 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12200 variables.
12201 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12202 * configure.in: Add --with-sysroot.
12203 * configure: Regenerated.
12204 * main.c (gdb_sysroot): New variable.
12205 (captured_main): Initialize gdb_sysroot.
12206 * defs.h (gdb_sysroot): New extern declaration.
12207 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12208
afb5d334
MC
122092003-01-12 Michael Chastain <mec@shout.net>
12210
12211 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12212
751ceeb4
MC
122132003-01-12 Michael Chastain <mec@shout.net>
12214
12215 * top.c (print_gdb_version): Bump copyright year to 2003.
12216
94cd26f8
DC
122172003-01-12 David Carlton <carlton@bactrian.org>
12218
12219 * linespec.c (symtab_from_filename): Rename variable 's' to
12220 'file_symtab'.
12221
1ce79225
AC
122222003-01-12 Andrew Cagney <ac131313@redhat.com>
12223
12224 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12225 dummy frame.
12226 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12227
fa1fd571
AC
122282003-01-12 Andrew Cagney <ac131313@redhat.com>
12229
12230 * d10v-tdep.c: Include "gdb_assert.h".
12231 (d10v_store_return_value): Rewrite to match current interface.
12232 (d10v_extract_struct_value_address): Ditto.
12233 (d10v_extract_return_value): Ditto.
12234 (d10v_gdbarch_init): Set store_restore_value,
12235 extract_struct_value_address and extract_return_value.
12236
68b8d23e
JB
122372003-01-12 J. Brobecker <brobecker@gnat.com>
12238
12239 * hpread.c (set_namestring): New procedure replacing the
12240 SET_NAMESTRING macro.
12241 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12242 by calls to set_namestring.
12243
122442003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12245
12246 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12247 a compilation warning.
12248 (hpread_process_one_debug_symbol): Likewise.
12249
88d262ca
DC
122502003-01-10 David Carlton <carlton@math.stanford.edu>
12251
12252 * linespec.c (decode_line_1): Rename variable 's' to
12253 'file_symtab'.
12254 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12255 (decode_dollar): Ditto.
12256 (decode_variable): Ditto.
12257 (symbol_found): Ditto.
12258
86669319
MC
122592003-01-09 Michael Chastain <mec@shout.net>
12260
12261 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12262
616a9dc4
CV
122632003-01-07 Corinna Vinschen <vinschen@redhat.com>
12264
12265 * win32-nat.c (set_process_privilege): New function.
12266 (child_attach): Call set_process_privilege() to enable the
12267 SE_DEBUG_NAME user privilege if available in process token.
12268
3269bcfa
JB
122692003-01-10 J. Brobecker <brobecker@gnat.com>
12270
12271 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12272 compilation error in the previous revision.
12273
2b0ee454
DC
122742003-01-09 David Carlton <carlton@math.stanford.edu>
12275
12276 * linespec.c: Update copyright.
12277
b3ba1b44
DJ
122782003-01-09 Daniel Jacobowitz <drow@mvista.com>
12279
12280 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12281 than inferior_ptid.
12282 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12283
4ef3f3be
AC
122842003-01-09 Andrew Cagney <ac131313@redhat.com>
12285
479ab5a0
AC
12286 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12287 Update comments.
12288 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12289 (frame_saved_regs_zalloc): Update.
12290 (frame_saved_regs_register_unwind): Update.
12291 (create_new_frame): Update.
12292 (get_prev_frame): Update.
12293 (frame_extra_info_zalloc): Update.
12294 (deprecated_get_frame_saved_regs): Update.
12295 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12296 * cris-tdep.c: Update comment.
12297
bde58177
AC
12298 * somsolib.h: Fix function indentation.
12299 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12300 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12301 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12302 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12303 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12304
4ef3f3be
AC
12305 * infrun.c (follow_fork): Use ISO C definition.
12306 * expprint.c (print_subexp): Use xfree instead of free.
12307 * charset.c: Include "gdb_string.h" instead of <string.h>.
12308 (register_iconv_charsets): Use ISO C definition.
12309 (host_charset, target_charset): Ditto.
12310 * Makefile.in (charset.o): Update dependencies.
12311 (mi-cmd-env.o): Update dependencies.
12312
1c615f7a
AC
123132003-01-08 Andrew Cagney <cagney@redhat.com>
12314
12315 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12316 get_frame_base.
12317
c9a1dc08
AC
123182003-01-08 Andrew Cagney <ac131313@redhat.com>
12319
12320 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12321 build directories. Save edited gdb output in Mbuild.log. If a
12322 build fails, remove any final GDB executable.
12323
dbad9d94
AC
123242003-01-08 Andrew Cagney <ac131313@redhat.com>
12325
12326 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12327 replacing hex constants with function names and stripping leading
12328 file name directory prefixes.
12329
8d357cca
AC
123302003-01-08 Andrew Cagney <cagney@redhat.com>
12331
12332 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12333 get_frame_base.
12334
bca02a8a
DC
123352003-01-08 David Carlton <carlton@math.stanford.edu>
12336
12337 * linespec.c (decode_line_1): Move code into decode_variable.
12338 (decode_variable): New function.
12339
7f8ab3a0
AC
123402003-01-08 Andrew Cagney <ac131313@redhat.com>
12341
12342 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12343
7b5849cc
AC
123442003-01-08 Andrew Cagney <cagney@redhat.com>
12345
12346 * cris-tdep.c (cris_frame_init_saved_regs): Use
12347 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12348 saved_regs buffer.
12349 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12350 (sh64_nofp_frame_init_saved_regs): Ditto.
12351 (sh_fp_frame_init_saved_regs): Ditto.
12352 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12353 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12354 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12355 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12356
72a5efb3
DJ
123572003-01-08 Daniel Jacobowitz <drow@mvista.com>
12358
12359 * minsyms.c (lookup_minimal_symbol): Update comment.
12360 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12361 (lookup_minimal_symbol_solib_trampoline): Likewise.
12362
11c02a10
AC
123632003-01-08 Andrew Cagney <cagney@redhat.com>
12364
aab3ea25
AC
12365 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12366 frame_relative_level.
12367
da50a4b7
AC
12368 * alpha-tdep.c: Use get_frame_extra_info.
12369 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12370 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12371 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12372 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12373
11c02a10
AC
12374 * alpha-tdep.c: Use get_next_frame.
12375 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12376 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12377 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12378 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12379 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12380 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12381 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12382
1e2330ba
AC
123832003-01-07 Andrew Cagney <cagney@redhat.com>
12384
12385 * alpha-tdep.c: Use get_frame_base.
12386 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12387 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12388 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12389 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12390 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12391 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12392 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12393 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12394
2d75187b
AC
123952003-01-07 Andrew Cagney <cagney@redhat.com>
12396
12397 * frame.c (deprecated_get_frame_context): New function.
12398 (deprecated_set_frame_context): New function.
12399 * frame.h (deprecated_get_frame_context): Declare.
12400 (deprecated_set_frame_context): Declare.
12401 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12402 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12403
483d36b2
AC
124042003-01-07 Andrew Cagney <cagney@redhat.com>
12405
12406 * frame.c (deprecated_set_frame_next_hack): New function.
12407 (deprecated_set_frame_prev_hack): New function.
12408 * frame.h (deprecated_set_frame_next_hack): Declare.
12409 (deprecated_set_frame_prev_hack): Declare.
12410 * mcore-tdep.c (analyze_dummy_frame): Use
12411 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12412 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12413
14e91ac5
DC
124142003-01-07 David Carlton <carlton@math.stanford.edu>
12415
12416 * linespec.c (decode_line_1): Move code into decode_dollar.
12417 (decode_dollar): New function.
12418
b0c6b05c
AC
124192003-01-07 Andrew Cagney <cagney@redhat.com>
12420
12421 * arm-tdep.c (arm_init_extra_frame_info): Use
12422 deprecated_update_frame_base_hack.
12423 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12424 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12425 (fix_frame_pointer): Ditto.
12426 (mn10300_analyze_prologue): Ditto.
12427
a00a19e9
AC
124282003-01-07 Andrew Cagney <cagney@redhat.com>
12429
12430 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12431 extra_info using frame_extra_info_zalloc.
12432 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12433 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12434 (sh64_init_extra_frame_info): Ditto.
12435 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12436 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12437 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12438 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12439 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12440 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12441 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12442 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12443 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12444 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12445 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12446 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12447
12448 * mn10300-tdep.c (analyze_dummy_frame): Use
12449 deprecated_set_frame_extra_info_hack.
12450 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12451
1fb4c65b
JB
124522003-01-07 J. Brobecker <brobecker@gnat.com>
12453
12454 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12455 class is not scText. These do not define "real" procedures.
12456 (parse_partial_symbols): Likewise.
12457
9fe7d6bf
MS
124582003-01-06 Michael Snyder <msnyder@redhat.com>
12459
12460 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12461
f6c609c4
AC
124622003-01-06 Andrew Cagney <ac131313@redhat.com>
12463
12464 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12465 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12466 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12467 deprecated_frame_xmalloc_with_cleanup.
12468 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12469 deprecated_frame_xmalloc.
12470 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12471 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12472
d995ff4b
AC
124732003-01-06 Andrew Cagney <cagney@redhat.com>
12474
84dc46cb
AC
12475 * x86-64-linux-tdep.c: Include "osabi.h".
12476 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12477
d995ff4b
AC
12478 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12479
66140c26
AC
124802003-01-06 Andrew Cagney <cagney@redhat.com>
12481
12482 * MAINTAINERS (Target Instruction Set Architectures): Update
12483 arm-elf. Can be built with -Werror, has been multiarched.
12484
12485 * value.h (unpack_long): Make buffer parameter constant.
12486 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12487 * scm-lang.h (scm_parse): Ditto.
12488 * defs.h (extract_typed_address, extract_address): Ditto.
12489 (extract_long_unsigned_integer): Ditto.
12490 * inferior.h (unsigned_pointer_to_address): Ditto.
12491 (signed_pointer_to_address): Ditto.
12492 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12493 * gdbarch.h, gdbarch.c: Regenerate.
12494 * findvar.c (extract_long_unsigned_integer): Update.
12495 (extract_address): Update.
12496 (extract_typed_address): Update.
12497 (unsigned_pointer_to_address): Update.
12498 * values.c (unpack_long): Update.
12499 (unpack_double): Update.
12500 (unpack_pointer): Update.
12501 (unpack_field_as_long): Update.
12502 * d10v-tdep.c (d10v_pointer_to_address): Update.
12503 * avr-tdep.c (avr_pointer_to_address): Update.
12504 * scm-lang.c (scm_unpack): Update.
12505 * findvar.c (signed_pointer_to_address): Update.
12506
b089b3da
ML
125072003-01-06 Michal Ludvig <mludvig@suse.cz>
12508
8ffd9b1b 12509 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12510 since it is in i386-tdep.c.
12511
aff87235
JB
125122003-01-06 J. Brobecker <brobecker@gnat.com>
12513
12514 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12515 failure introduced in the previous change.
12516
34f5e845
MC
125172003-01-05 Michael Chastain <mec@shout.net>
12518
12519 * README: Remove references to deleted remote-*.c files:
12520 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12521 remote-nrom.c, remote-os9k.c, remote-udi.c.
12522
28bcfd30
MK
125232003-01-05 Mark Kettenis <kettenis@gnu.org>
12524
12525 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12526 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12527 i386_get_longjmp_target.
12528
15a5b3ee
AC
125292003-01-05 Andrew Cagney <ac131313@redhat.com>
12530
12531 * arm-tdep.c (prologue_cache): Change to a pointer.
12532 (_initialize_arm_tdep): Allocate prologue_cache.
12533 (check_prologue_cache): Update.
12534 (save_prologue_cache): Update.
12535 (arm_gdbarch_init): Update.
12536
c263362b
DJ
125372003-01-04 Daniel Jacobowitz <drow@mvista.com>
12538
12539 * stabsread.c (update_method_name_from_physname): Call complaint()
12540 instead of error.
12541
51603483
DJ
125422003-01-04 Daniel Jacobowitz <drow@mvista.com>
12543
12544 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12545 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12546 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12547
12548 * blockframe.c: Include "gdbcmd.h" and "command.h".
12549 (backtrace_below_main): New variable.
12550 (file_frame_chain_valid, func_frame_chain_valid)
12551 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12552 (generic_func_frame_chain_valid): Remove functions.
12553 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12554 (_initialize_blockframe): New function.
12555 * Makefile.in (blockframe.o): Update dependencies.
12556 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12557 comment. Call frame_chain_valid ().
12558 * frame.h: Remove old prototypes. Add prototype for
12559 frame_chain_valid and update comments to match.
12560 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12561 Remove old comment.
12562 * gdbarch.h: Regenerated.
12563 * gdbarch.c: Regenerated.
12564
12565 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12566 set_gdbarch_frame_chain_valid.
12567 * avr-tdep.c (avr_gdbarch_init): Likewise.
12568 * cris-tdep.c (cris_gdbarch_init): Likewise.
12569 * frv-tdep.c (frv_gdbarch_init): Likewise.
12570 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12571 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12572 (i386_nw_init_abi): Likewise.
12573 (i386_gdbarch_init): Likewise.
12574 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12576 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12577 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12578 * mips-tdep.c (mips_gdbarch_init): Likewise.
12579 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12580 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12581 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12582 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12583 * s390-tdep.c (s390_gdbarch_init): Likewise.
12584 * sh-tdep.c (sh_gdbarch_init): Likewise.
12585 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12586 * v850-tdep.c (v850_gdbarch_init): Likewise.
12587 * vax-tdep.c (vax_gdbarch_init): Likewise.
12588 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12589
12590 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12591 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12592 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12593 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12594 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12595 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12596 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12597 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12598
b00a8037
DJ
125992002-01-04 Daniel Jacobowitz <drow@mvista.com>
12600
12601 * Makefile.in (acconfig_h): Remove incorrect macro.
12602 (config_h): Define.
12603 (osabi.o): Update dependencies.
12604 * configure.tgt: Set gdb_osabi based on target triplet.
12605 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12606 * configure: Regenerated.
12607 * config.in: Regenerated.
12608 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12609 (GDB_OSABI_DEFAULT): Define if not already defined.
12610 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12611 (set_osabi_string): New variables.
12612 (gdbarch_register_osabi): Add new OS ABI to
12613 gdb_osabi_available_names.
12614 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12615 (set_osabi, show_osabi): New functions.
12616 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12617
4be87837
DJ
126182003-01-04 Daniel Jacobowitz <drow@mvista.com>
12619
12620 * arch-utils.c (gdbarch_info_init): Set osabi to
12621 GDB_OSABI_UNINITIALIZED.
12622 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12623 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12624 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12625 * gdbarch.c: Regenerated.
12626 * gdbarch.h: Regenerated.
12627 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12628 there's no BFD.
12629 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12630 * osabi.h (enum gdb_osabi): Move to defs.h.
12631 (gdbarch_init_osabi): Update prototype.
12632 * defs.h (enum gdb_osabi): Moved here.
12633 * Makefile.in: Update dependencies.
12634
12635 * alpha-tdep.h: Don't include "osabi.h".
12636 (struct gdbarch_tdep): Remove osabi member.
12637 * alpha-tdep.c: Include "osabi.h".
12638 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12639 iterate over arches. Update call to gdbarch_init_osabi.
12640 (alpha_dump_tdep): Don't dump osabi.
12641 * alpha-linux-tdep.c: Include "osabi.h".
12642 * alpha-osf1-tdep.c: Include "osabi.h".
12643 * alphafbsd-tdep.c: Include "osabi.h".
12644 * alphanbsd-tdep.c: Include "osabi.h".
12645
12646 * arm-tdep.h: Don't include "osabi.h".
12647 (struct gdbarch_tdep): Remove osabi member.
12648 * arm-tdep.c: Include "osabi.h".
12649 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12650 iterate over arches. Update call to gdbarch_init_osabi.
12651 (arm_dump_tdep): Don't dump osabi.
12652 * arm-linux-tdep.c: Include "osabi.h".
12653 * armnbsd-tdep.c: Include "osabi.h".
12654
12655 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12656 Update call to gdbarch_init_osabi.
12657
12658 * i386-tdep.h: Don't include "osabi.h".
12659 (struct gdbarch_tdep): Remove osabi member.
12660 * i386-tdep.c: Include "osabi.h".
12661 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12662 iterate over arches. Update call to gdbarch_init_osabi.
12663 (i386_dump_tdep): Don't dump osabi.
12664 * i386-linux-tdep.c: Include "osabi.h".
12665 * i386-sol2-tdep.c: Include "osabi.h".
12666 * i386bsd-tdep.c: Include "osabi.h".
12667 * i386gnu-tdep.c: Include "osabi.h".
12668 * i386ly-tdep.c: Include "osabi.h".
12669 * i386nbsd-tdep.c: Include "osabi.h".
12670 * i386obsd-tdep.c: Include "osabi.h".
12671
12672 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12673 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12674 check osabi when iterating over arches. Update call to
12675 gdbarch_init_osabi.
12676 (mips_dump_tdep): Don't dump osabi.
12677
12678 * ns32k-tdep.h: Don't include "osabi.h".
12679 (struct gdbarch_tdep): Remove.
12680 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12681 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12682 allocate tdep. Update call to gdbarch_init_osabi.
12683 (ns32k_dump_tdep): Remove.
12684 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12685 * ns32knbsd-tdep.c: Include "osabi.h".
12686
12687 * ppc-tdep.h: Don't include "osabi.h".
12688 (struct gdbarch_tdep): Remove osabi member.
12689 * rs6000-tdep.c: Include "osabi.h".
12690 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12691 osabi when iterating over arches. Update call to
12692 gdbarch_init_osabi.
12693 (rs6000_dump_tdep): Don't dump osabi.
12694 * ppc-linux-tdep.c: Include "osabi.h".
12695 * ppcnbsd-tdep.c: Include "osabi.h".
12696
12697 * sh-tdep.h: Don't include "osabi.h".
12698 (struct gdbarch_tdep): Remove osabi member.
12699 * sh-tdep.c: Include "osabi.h".
12700 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12701 iterate over arches. Update call to gdbarch_init_osabi.
12702 (sh_dump_tdep): Don't dump osabi.
12703 * shnbsd-tdep.c: Include "osabi.h".
12704
12705 * sparc-tdep.c: Include "osabi.h".
12706 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12707 iterate over arches. Update call to gdbarch_init_osabi.
12708 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12709 tdep structure.
12710
12711 * vax-tdep.h: Don't include "osabi.h".
12712 (struct gdbarch_tdep): Remove.
12713 * vax-tdep.c: Include "osabi.h".
12714 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12715 iterate over arches. Don't allocate tdep. Update call
12716 to gdbarch_init_osabi.
12717 (vax_dump_tdep): Remove.
12718 (_initialize_vax_tdep): Update call to gdbarch_register.
12719
a881cf8e
DJ
127202003-01-04 Daniel Jacobowitz <drow@mvista.com>
12721
12722 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12723 entirely.
12724 (breakpoint_re_set_one): Don't fetch the value for a disabled
12725 watchpoint.
12726
1e698235
DJ
127272003-01-04 Daniel Jacobowitz <drow@mvista.com>
12728
12729 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12730 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12731 (COERCE_FLOAT_TO_DOUBLE): Remove.
12732 * gdbarch.c: Regenerate.
12733 * gdbarch.h: Regenerate.
12734 * Makefile.in: Remove value_h from gdbarch_h.
12735 * valops.c (coerce_float_to_double): New variable.
12736 (default_coerce_float_to_double): Remove.
12737 (standard_coerce_float_to_double): Remove.
12738 (value_arg_coerce): Use coerce_float_to_double.
12739 (_initialize_valops): Add "set coerce-float-to-double".
12740 * value.h (default_coerce_float_to_double): Remove prototype.
12741 (standard_coerce_float_to_double): Remove prototype.
12742
12743 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12744 prototyped.
12745 * mdebugread.c (parse_symbol): Likewise.
12746 * stabsread.c (define_symbol): Mark all functions as prototyped.
12747
12748 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12749 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12750 set_gdbarch_coerce_float_to_double.
12751 * arm-tdep.c (arm_gdbarch_init): Likewise.
12752 * frv-tdep.c (frv_gdbarch_init): Likewise.
12753 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12754 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12755 * mips-tdep.c (mips_gdbarch_init): Likewise.
12756 (mips_coerce_float_to_double): Remove.
12757 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12758 (rs6000_coerce_float_to_double): Remove.
12759 * s390-tdep.c (s390_gdbarch_init): Likewise.
12760 * sh-tdep.c (sh_gdbarch_init): Likewise.
12761 (sh_coerce_float_to_double): Remove.
12762 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12763 (sparc_coerce_float_to_double): Remove.
12764 * v850-tdep.c (v850_gdbarch_init): Likewise.
12765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12766 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12767 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12768 (hppa_coerce_float_to_double): Remove prototype.
12769 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12770
f436a26a
DJ
127712003-01-04 Daniel Jacobowitz <drow@mvista.com>
12772
12773 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12774
248f8055
DJ
127752003-01-04 Daniel Jacobowitz <drow@mvista.com>
12776
12777 Suggested by Stewart Brown <sb24@avaya.com>:
12778 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12779 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12780 (c_type_print_varspec_suffix): Likewise.
12781
72cfdc76
MK
127822003-01-04 Mark Kettenis <kettenis@gnu.org>
12783
bfd260bb
MK
12784 * configure.in: Don't set and AC_SUBST SUBDIRS.
12785 * configure: Regenerated.
12786
72cfdc76
MK
12787 * configure.in: Remove code dealing with shared libraries.
12788 * Makefile.in: Remove HLDFLAGS and HLDENV.
12789 * configure: Regenerated.
12790
c8b8a898
AC
127912003-01-04 Andrew Cagney <ac131313@redhat.com>
12792
12793 * frame.c (deprecated_frame_xmalloc): New function.
12794 (deprecated_set_frame_saved_regs_hack): New function.
12795 (deprecated_set_frame_extra_info_hack): New function.
12796 * frame.h (deprecated_frame_xmalloc): Declare.
12797 (deprecated_set_frame_saved_regs_hack): Declare.
12798 (deprecated_set_frame_extra_info_hack): Declare.
12799
14abd0fb
MK
128002003-01-04 Mark Kettenis <kettenis@gnu.org>
12801
8ee53726
MK
12802 * configure.in: Move code that provides the --enable-gdbtk option
12803 right after the code that handles the --enable-tui option, and
12804 polish it somewhat.
12805 * configure: Regenerated.
12806
14abd0fb
MK
12807 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12808 AC_CHECK_FUNCS and remove the old check for pread64.
12809 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12810 * acconfig.h (_GNU_SOURCE): Add.
12811 (HAVE_PREAD64): Remove.
12812 * configure, aclocal.m4, config.in: Regenerated.
12813
b2fb4676
AC
128142003-01-03 Andrew Cagney <ac131313@redhat.com>
12815
12816 * alpha-tdep.c: Use get_frame_saved_regs.
12817 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12818 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12819 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12820 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12821 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12822
8dcde887
MK
128232003-01-03 Mark Kettenis <kettenis@gnu.org>
12824
12825 * configure.in: Remove all use of the SUBDIRS variable; add
12826 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12827 code providing the --enable-multi-ice option, and move it right in
12828 front of the code that checks whether gdbserver is supported.
12829 Polish that too.
12830 * configure: Regenerated.
12831 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12832 @SUBDIRS@.
12833
8ccd593b
AC
128342003-01-03 Andrew Cagney <cagney@redhat.com>
12835
12836 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12837 * avr-tdep.c, cris-tdep.c: Ditto.
12838 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12839 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12840
91151a06
MK
128412003-01-03 Mark Kettenis <kettenis@gnu.org>
12842
12843 * configure.in: Remove --enable-netrom option.
12844 * configure: Regenerated.
12845
8fe84d01
MK
128462003-01-03 Mark Kettenis <kettenis@gnu.org>
12847
12848 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12849 declaration for `struct re_pattern_buffer' instead.
12850 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12851
f0394be6
JB
128522003-01-03 J. Brobecker <brobecker@gnat.com>
12853
12854 * mdebugread.c (parse_symbol): Count until the stEnd matching
12855 the structure name.
12856
27e9bf90
MK
128572003-01-02 Mark Kettenis <kettenis@gnu.org>
12858
93d331ba
MK
12859 * configure.in: Remove --with-cpu option.
12860 subscripts. Remove evil changequotes here.
12861 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12862 * config.in, configure: Regenerated.
8ffd9b1b 12863
27e9bf90
MK
12864 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12865 * configure.in: Cleanup section that sources GDB and BFD configure
12866 subscripts. Remove evil changequotes here.
12867 * config.in, configure: Regenerated.
12868
50abf9e5
AC
128692003-01-02 Andrew Cagney <ac131313@redhat.com>
12870
12871 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12872 frame accessor methods.
12873 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12874 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12875 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12876 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12877 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12878 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12879 * z8k-tdep.c: Ditto.
8ffd9b1b 12880
287c1a40
MK
128812003-01-02 Mark Kettenis <kettenis@gnu.org>
12882
f5dbc56d
MK
12883 * configure.in: Remove UI_OUT configuration code.
12884 * ada-lang.c: Update assuming UI_OUT is always true.
12885 * Makefile.in (UIOUT_CFLAGS): Remove.
12886 * configure: Regenerated.
12887 * TODO: Remove blurb about elimination of -DUI_OUT.
12888
627af7ea
MK
12889 * configure.in: Move code that provides the --enable-gdbcli,
12890 --enable-gdbmi options right before the code that handles the
12891 --enable-tui option. Polish a bit.
12892 * configure: Regenerated.
12893
06825bd1
MK
12894 * configure.in: Rewrite check for GNU regex and the
12895 --without-included regex option, and move it into the "Checks for
12896 library functions" section. This makes us use the system regex
12897 again by default on systems with version 2 of the GNU C library.
12898 This was apparently broken.
12899 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12900 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12901 * config.in, configure: Regenerated.
12902
287c1a40
MK
12903 * configure.in: Move code that provides the --enable-tui option
12904 before the "Checks for libraries" section. Polish the code
12905 somewhat and set need_curses to yes if we build the TUI. Rewrite
12906 code that looks for a library providing termcap functionality to
12907 match more closely what's done in the Readline library, and move
12908 it into to the "Checks for libraries" section.
12909 * configure: Regenerated.
12910 * Makefile.in (TERMCAP): Remove variable.
12911 * config/i386/go32.mh (TERMCAP): Remove variable.
12912
684e56bf
AC
129132003-01-02 Andrew Cagney <ac131313@redhat.com>
12914
12915 * MAINTAINERS: Mention gdb_mbuild.sh.
12916 * gdb_mbuild.sh: Rewrite.
12917
e1ea1d75
MK
129182003-01-02 Mark Kettenis <kettenis@gnu.org>
12919
12920 * configure.in: Fix typo in last change.
12921 * config.in, configure: Regenerated.
12922
1b831c93
AC
129232003-01-02 Andrew Cagney <ac131313@redhat.com>
12924
12925 * valarith.c (value_binop): Delete obsolete code and comments.
12926 * configure.host: Ditto.
12927 * buildsym.h (make_blockvector): Ditto.
12928 * buildsym.c (make_blockvector): Ditto.
12929 * defs.h (enum language): Ditto.
12930 (chill_demangle): Ditto.
12931 * elfread.c (elf_symtab_read): Ditto.
12932 * dwarfread.c (CHILL_PRODUCER): Ditto.
12933 (set_cu_language): Ditto.
12934 (handle_producer): Ditto.
12935 * expprint.c (print_subexp): Ditto.
12936 * gdbtypes.c (chill_varying_type): Ditto.
12937 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12938 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12939 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12940 (chill_varying_type): Ditto.
12941 * language.h (_LANG_chill): Ditto.
12942 * language.c (binop_result_type, integral_type): Ditto.
12943 (character_type, string_type, structured_type): Ditto.
12944 (lang_bool_type, binop_type_check): Ditto.
12945 * stabsread.h (os9k_stabs): Ditto.
12946 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12947 (define_symbol, read_type, read_struct_fields): Ditto.
12948 (read_array_type, read_enum_type, read_huge_number): Ditto.
12949 (read_range_type, start_stabs): Ditto.
12950 * symfile.c (init_filename_language_table): Ditto.
12951 (add_psymbol_with_dem_name_to_list): Ditto.
12952 * symtab.c (symbol_init_language_specific): Ditto.
12953 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12954 * symtab.h (struct general_symbol_info): Ditto.
12955 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12956 * typeprint.c (typedef_print): Ditto.
12957 * utils.c (fprintf_symbol_filtered): Ditto.
12958 * valops.c (value_cast, search_struct_field, value_slice): Delete
12959 obsolete code.
12960 (varying_to_slice): Delete function.
12961 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12962 (varying_to_slice): Delete declaration.
12963 * MAINTAINERS: Update.
12964
8bb2c122
MK
129652003-01-02 Mark Kettenis <kettenis@gnu.org>
12966
97bf5e38
MK
12967 * configure.in: Reorganize "Checks for library functions section"
12968 a bit. Remove check for `btowc' and `isascii' functions.
12969 * configure: Regenerated.
12970
5ee754fc
MK
12971 * acconfig.h (_MSE_INT_H): Remove.
12972 * configure.in: Create "Checks for header files" section, and move
12973 appropriate tests there. Don't check for objlist.h, wchar.h,
12974 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12975 misdetection fix. Also add "Checks for types", "Checks for
12976 compiler characteristics" and "Checks for library functions"
12977 sections.
12978 * config.in, configure: Regenerated.
12979
8bb2c122
MK
12980 * configure.in: Create "Checks for programs" section, and move
12981 appropriate tests there.
12982
9a156167
MK
129832003-01-01 Mark Kettenis <kettenis@gnu.org>
12984
12985 * configure.in: Create "Checks for libraries" section, and move
12986 appropriate tests there. Cleanup check for wctype in libw. Use
12987 AC_SEARCH_LIBS to see whether we need libsocket.
12988 * configure: Regenerated.
12989
a80e2bcb 12990For older changes see ChangeLog-2002
c906108c
SS
12991\f
12992Local Variables:
12993mode: change-log
12994left-margin: 8
12995fill-column: 74
12996version-control: never
12997End:
This page took 1.035252 seconds and 4 git commands to generate.