* sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f2ea0907
CV
12003-09-16 Corinna Vinschen <vinschen@redhat.com>
2
3 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
4 numbers to enumeration values.
5 * sh-tdep.c: Accomodate above change.
6 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
7 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
8 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
9 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
10 (IS_FPUSH): Rename from IS_FMOV.
11 (sh_extract_struct_value_address): Remove useless comment.
12 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
13 instead of own local values.
14 (sh_dump_tdep): Remove.
15 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
16 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
17
1c704f11
AC
182003-09-15 Andrew Cagney <cagney@redhat.com>
19
20 * doublest.c (convert_floatformat_to_doublest): No longer need to
21 cast "exp_bias" to an int. Reverts 2002-12-04 change.
22
ac79b88b
DJ
232003-09-15 Daniel Jacobowitz <drow@mvista.com>
24
25 * values.c (unpack_double): Call floatformat_is_valid.
26
1c671366
MK
272003-09-15 Mark Kettenis <kettenis@gnu.org>
28
de5227fb
MK
29 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
30 ps_strings into a long.
31
1c671366
MK
32 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
33 _initialize_am64fbsd_nat.
34
a604369a
KB
352003-09-15 Kevin Buettner <kevinb@redhat.com>
36
37 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
38 associated with DW_AT_ranges attribute is out of bounds.
39
b3cacbee
DL
402003-09-15 David Lecomber <dsl@sources.redhat.com>
41
42 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
43
d0f37bb2
MC
442003-09-14 Michael Chastain <mec@shout.net>
45
46 * config/m68k/nm-apollo68v.h: Delete.
47 * config/m68k/xm-apollo68v.h: Delete.
48
69517000
AC
492003-09-14 Andrew Cagney <cagney@redhat.com>
50
51 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
52 * dcache.c: Update copyrights and descriptions.
53 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
54
ef8b349d
AC
552003-09-14 Andrew Cagney <cagney@redhat.com>
56
57 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
58 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
59
52f0bd74
AC
602003-09-14 Andrew Cagney <cagney@redhat.com>
61
62 * alpha-nat.c: Remove some occurances of "register".
63 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
64 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
65 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
66 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
67 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
68 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
69 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
70 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
71 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
72 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
73 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
74 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
75 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
76 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
77 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
78 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
79 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
80 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
81 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
82 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
83 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
84 * values.c, vax-tdep.c, xcoffread.c: Ditto.
85
4a4b3fed
AC
862003-09-13 Andrew Cagney <cagney@redhat.com>
87
88 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
89 * ppc-tdep.h (struct regcache): Declare opaque.
90 * objfiles.h (struct objfile_data): Declare opaque.
91 * cp-support.h (struct objfile): Declare opaque.
92 * linux-nat.h (target_waitstatus): Declare opaque.
93
2110b94f
MK
942003-09-14 Mark Kettenis <kettenis@gnu.org>
95
1c671366
MK
96 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
97 (stabs_argument_has_addr): New architecture method.
98 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
99 * arch-utils.c: Include "buildsym.h".
100 (default_stabs_argument_has_addr): New function.
101 * stabsread.c (define_symbol): Use stabs_argument_has_addr
102 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
103
2110b94f
MK
104 * cris-tdep.c (cris_gdbarch_init): Set
105 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
106 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
107 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
108 * mips-tdep.c (mips_gdbarch_init): Likewise.
109 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
110 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
111
48436ce6
AC
1122003-09-13 Andrew Cagney <cagney@redhat.com>
113
114 * values.c (using_struct_return): Delete "function" and "funcaddr"
115 parameters.
116 * value.h (using_struct_return): Update declaration.
117 * infcmd.c (finish_command_continuation): Update.
118 (finish_command): Update.
119 * infcall.c (call_function_by_hand): Update.
120 * eval.c (evaluate_subexp_standard): Update.
121
403d9909
CF
1222003-09-13 Christopher Faylor <cgf@redhat.com>
123
124 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
125 SSE registers since gdb will not operate correctly without this.
126 Restore include file ordering munged in previous change.
127 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
128
ebf7d56b
MK
1292003-09-13 Mark Kettenis <kettenis@gnu.org>
130
8e823e25
MK
131 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
132 REG_STRUCT_HAS_ADDR.
133 * gdbarch.c, gdbarch.h: Updated.
134 * infcall.c (call_function_by_hand): Update.
135 * stabsread.c (define_symbol): Updated.
136
ebf7d56b
MK
137 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
138
d3f13f72
CF
1392003-09-12 Christopher Faylor <cgf@redhat.com>
140
141 * win32-nat.c: Reorganize so that defines used by target headers are
142 actually defined by the system headers.
143 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
144 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
145
14f75137
JB
1462003-09-12 Jim Blandy <jimb@redhat.com>
147
d646061f
JB
148 * dbxread.c (read_dbx_symtab): Don't report an internal error if
149 the file has no .data, .bss, or .rodata sections. Instead wait
150 until we see a variable alleged to live in one of those sections.
151
2a13f9bc
JB
152 * dbxread.c (read_dbx_symtab): If we have no .data section and no
153 .bss section, presume that any variables we find live in the
154 .rodata section.
155
4f49b26b
JB
156 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
157 offsets for global and static variables.
158
14f75137
JB
159 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
160 symbol types are, by definition, in the .data section, so it is
161 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
162 If there is no .data section, there should be no N_DATA or N_DATA
163 | N_EXT symbols.
164
212c460c
MK
1652003-09-12 Mark Kettenis <kettenis@gnu.org>
166
167 * amd64fbsd-tdep.c: Fix sigtramp recognition.
168 (amd64fbsd_sigcontext_addr): Rewrite.
169 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
170 with correct values.
171 (amd64fbsd_sc_reg_offset): Initialize with correct values.
172 (amd64fbsd_init_abi): Fix typo.
173
68856ea3
AC
1742003-09-12 Andrew Cagney <cagney@redhat.com>
175
176 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
177 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
178
627b3ba2
AC
1792003-09-12 Andrew Cagney <cagney@redhat.com>
180
181 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
182 "entry_file_highpc". Update comments.
183 * defs.h (deprecated_inside_entry_file): Rename
184 "inside_entry_file".
185 * blockframe.c (deprecated_inside_entry_file): Rename
186 "inside_entry_file".
187 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
188 * vax-tdep.c (vax_frame_chain): Update.
189 * sh64-tdep.c (sh64_frame_chain): Update.
190 * sh-tdep.c (sh_frame_chain): Update.
191 * rs6000-tdep.c (rs6000_frame_chain): Update.
192 * ns32k-tdep.c (ns32k_frame_chain): Update.
193 * mips-tdep.c (mips_frame_chain): Update.
194 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
195 * m32r-tdep.c (m32r_frame_this_id): Update.
196 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
197 * frv-tdep.c (frv_frame_this_id): Update.
198 * d10v-tdep.c (d10v_frame_this_id): Update.
199 * cris-tdep.c (cris_frame_chain): Update.
200 * blockframe.c (legacy_frame_chain_valid): Update.
201 * avr-tdep.c (avr_frame_this_id): Update.
202 * arm-tdep.c (arm_prologue_this_id): Update.
203 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
204 * objfiles.c (objfile_relocate): Update.
205 * mipsread.c (mipscoff_symfile_read): Update.
206 (mipscoff_symfile_read): Update.
207 * mdebugread.c (parse_partial_symbols): Update.
208 * dwarfread.c (read_file_scope): Update.
209 * dwarf2read.c (read_file_scope): Update.
210 * dbxread.c (read_dbx_symtab): Update.
211 (read_dbx_symtab): Update.
212 * coffread.c (complete_symtab): Update.
213
b0abbc58
JJ
2142003-09-12 Jeff Johnston <jjohnstn@redhat.com>
215
216 * top.c (quit_target): New static helper function.
217 (quit_force): Moved code to quit_target(). Call quit_target()
218 via catch_errors() to catch errors during quit.
219
a1632d59
DC
2202003-09-11 David Carlton <carlton@kealia.com>
221
222 * buildsym.c (finish_block): Use allocate_block to allocate the
223 block.
224 * mdebugread.c (new_block): Add FIXME.
225
5c4e30ca
DC
2262003-09-11 David Carlton <carlton@kealia.com>
227
228 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
229 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
230 (recursive_dump_type): Ditto.
231 * printcmd.c (print_formatted): Ditto.
232 * typeprint.c (print_type_scalar): Ditto.
233 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
234 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
235 * cp-support.h: Declare cp_check_possible_namespace_symbols,
236 maint_cplus_cmd_list.
237 * cp-support.c: Make maint_cplus_cmd_list extern.
238 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
239 command.h.
240 (lookup_symbol_file): Look in possible namespace blocks when
241 appropriate.
242 (initialize_namespace_symtab): New.
243 (get_possible_namespace_block, free_namespace_block)
244 (check_possible_namespace_symbols)
245 (check_possible_namespace_symbols_loop)
246 (check_one_possible_namespace_symbol)
247 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
248 (_initialize_cp_namespace): Ditto.
249 * block.h: Declare allocate_block.
250 * block.c (allocate_block): New.
251 * jv-lang.c (get_java_class_symtab): Allocate blocks via
252 allocate_block.
253 * symfile.h: Update declaration of add_psymbol_to_list.
254 * symfile.c (add_psymbol_to_list): Return the partial symbol in
255 question.
256 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
257 scan_partial_symbols_call.
258 (scan_partial_symbols): Add NAMESPACE argument; update calls to
259 helper functions.
260 (add_partial_symbol): If necessary, scan mangled names for names
261 of namespaces.
262 (add_partial_namespace): Add NAMESPACE argument; generate partial
263 symbols associated to namespaces.
264 (add_partial_enumeration): Add NAMESPACE argument.
265 (new_symbol): Allow namespace syms.
266 (read_namespace): Generate namespace syms.
267 * objfiles.h: Add opaque declaration of struct symtab.
268 (struct objfile): Add cp_namespace_symtab member.
269 * objfiles.c (allocate_objfile): Set
270 objfile->cp_namespace_symtab.
271 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
272 dictionary_h, command_h.
273
33a7c2fc
AC
2742003-09-11 Andrew Cagney <cagney@redhat.com>
275
276 * rs6000-tdep.c (rs6000_push_dummy_call): Use
277 regcache_raw_write_signed to set SP_REGNUM, move the operation to
278 near the function's end.
279 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
280 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
281 regcache_raw_write_signed to set SP_REGNUM.
282
63cd24fe
EZ
2832003-09-11 Elena Zannoni <ezannoni@redhat.com>
284
285 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
286 orig_addrs is set up properly.
287
f27dd7fd
AC
2882003-09-11 Andrew Cagney <cagney@redhat.com>
289
290 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
291 * gdbarch.h, gdbarch.c: Re-generate.
292 * infcall.c (call_function_by_hand): Update.
293 * hppa-tdep.c (hppa_push_arguments): Update.
294 * ada-lang.c (place_on_stack): Update.
295 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
296 * sparc-tdep.c (sparc_gdbarch_init): Update.
297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
298 * hppa-tdep.c (hppa_gdbarch_init): Update.
299 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
300 stack_align.
301
f630a401
DJ
3022003-09-11 Daniel Jacobowitz <drow@mvista.com>
303
304 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
305 register do need a frame.
306
0ddabb4c
AC
3072003-09-11 Andrew Cagney <cagney@redhat.com>
308
309 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
310 buildable since GDB 5.0.
311 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
312 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
313 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
314 * irix4-nat.c: Delete file.
315 * config/mips/irix4.mh: Delete file.
316 * config/mips/irix3.mh: Delete file.
317 * config/mips/irix3.mt: Delete file.
318 * config/mips/tm-irix3.h: Delete file.
319 * config/mips/nm-irix3.h: Delete file.
320 * config/mips/xm-irix3.h: Delete file.
321 * config/mips/nm-irix4.h: Delete file.
322 * config/mips/xm-irix4.h: Delete file.
323 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
324
fde2cceb
JB
3252003-09-10 J. Brobecker <brobecker@gnat.com>
326
327 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
328 * Makefile.in (hppa-tdep.o): Update dependencies.
329
66f667f5
JW
3302003-09-10 James E Wilson <wilson@specifixinc.com>
331
ef5fd69f
JW
332 * MAINTAINERS: Change my e-mail address. Move to paper trail
333 section.
66f667f5 334
53e8aaea
KB
3352003-09-10 Kevin Buettner <kevinb@redhat.com>
336
337 * MAINTAINERS (frv): New ISA entry.
338
dcc6aaff
KB
3392003-09-10 Kevin Buettner <kevinb@redhat.com>
340
341 * frv-tdep.c (dis-asm.h): Include.
342 * Makefile.in (frv-tdep.o): Update dependencies.
343
932644f0
JJ
3442003-09-09 Jeff Johnston <jjohnstn@redhat.com>
345
346 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
347 Fix typo for high range of floating registers.
348
91c24f0a
DC
3492003-09-09 David Carlton <carlton@kealia.com>
350
351 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
352 highpc initialization here out of scan_partial_symbols.
353 (scan_partial_symbols): Restructure into a recursive version,
354 calling add_partial_namespace and add_partial_enumeration when
355 appropriate.
356 (add_partial_namespace): New.
357 (add_partial_enumeration, locate_pdi_sibling): Ditto.
358
c9263853
AC
3592003-09-09 Andrew Cagney <cagney@redhat.com>
360
e56a0ecc
AC
361 * rs6000-tdep.c (ppc_push_return_address): Delete function.
362 (rs6000_push_dummy_call): Set LR to BP_ADDR.
363 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
364 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
365
794a477a
AC
366 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
367 (rs6000_push_dummy_call): Set the "TOC" register.
368
c9263853
AC
369 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
370 methods "max_register_raw_size", "max_register_virtual_size" or
371 "register_virtual_size".
372
afa7d0b2
ILT
3732003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
374
375 * MAINTAINERS: Update my e-mail address.
376
7a41266b
AC
3772003-09-09 Andrew Cagney <cagney@redhat.com>
378
379 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
380 (rs6000_push_dummy_call): Store the struct return address.
381 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
382
77b2b6d4
AC
3832003-09-09 Andrew Cagney <cagney@redhat.com>
384
385 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
386 "ppc_sysv_abi_push_arguments".
387 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
388 "ppc_sysv_abi_push_arguments".
389 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
390 instead of "push_arguments".
391 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
392
e8a7b686
AC
3932003-09-09 Andrew Cagney <cagney@redhat.com>
394
395 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
396 instead of CALL_DUMMY_ADDRESS.
397
f86f5ca3
PH
3982003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
399
400 * p-lang.c: Eliminate "register".
401 * c-lang.c: Ditto.
402 * expprint.c: Ditto.
403 * f-lang.c: Ditto.
404 * jv-lang.c: Ditto.
405 * language.c: Ditto.
406 * m2-lang.c: Ditto.
407 * parse.c: Ditto.
408 * scm-lang.c: Ditto.
409 * objc-lang.c: Ditto.
410
83ee270e
NC
4112003-09-09 Nick Clifton <nickc@redhat.com>
412
413 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
414
a89aa300
AC
4152003-09-04 Andrew Cagney <cagney@redhat.com>
416
417 * avr-tdep.c: Include "dis-asm.h".
418 * cris-tdep.c: Include "dis-asm.h".
419 (cris_delayed_get_disassembler): Use "struct disassemble_info"
420 instead of corresponding typedef.
421 * h8300-tdep.c: Include "dis-asm.h".
422 * ia64-tdep.c: Include "dis-asm.h".
423 * i386-tdep.c: Include "dis-asm.h".
424 (i386_print_insn): Use "struct disassemble_info" instead of
425 corresponding typedef.
426 * m68k-tdep.c: Include "dis-asm.h".
427 * mcore-tdep.c: Include "dis-asm.h".
428 * mips-tdep.c: Include "dis-asm.h".
429 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
430 instead of corresponding typedef.
431 * ns32k-tdep.c: Include "dis-asm.h".
432 * s390-tdep.c: Include "dis-asm.h".
433 * sparc-tdep.c: Include "dis-asm.h".
434 * vax-tdep.c: Include "dis-asm.h".
435 * v850-tdep.c: Include "dis-asm.h".
436 * mn10300-tdep.c: Include "dis-asm.h".
437 * rs6000-tdep.c: Include "dis-asm.h".
438 * xstormy16-tdep.c: Include "dis-asm.h".
439 (_initialize_xstormy16_tdep): Delete "extern" declaration of
440 print_insn_xstormy16.
441 * Makefile.in (v850-tdep.o): Update dependencies.
442 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
443 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
444 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
445 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
446 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
447 (gdbarch_h): Remove $(dis_asm_h).
448 * disasm.c: Include "dis-asm.h".
449 (dis_asm_read_memory): Use "struct disassemble_info" instead of
450 corresponding typedef.
451 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
452 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
453 * gdbarch.sh: Do not include "dis-asm.h".
454 (struct disassemble_info): Declare opaque.
455 (TARGET_PRINT_INSN): Update declaration.
456 * gdbarch.h, gdbarch.c: Re-generate.
457
88a82a65
AC
4582003-09-08 Andrew Cagney <cagney@redhat.com>
459
460 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
461 CALL_DUMMY_ADDRESS, change to a predicate.
462 * gdbarch.h, gdbarch.c: Re-generate.
463 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
464 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
465 * infcall.c (call_function_by_hand): Ditto.
466 * sparc-tdep.c (sparc_push_return_address): Ditto.
467 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
468 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
469 CALL_DUMMY_ADDRESS with entry_point_address.
470 * v850-tdep.c (v850_push_return_address): Ditto.
471 * s390-tdep.c (s390_push_return_address): Ditto.
472 * rs6000-tdep.c (ppc_push_return_address): Ditto.
473 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
474 * mcore-tdep.c (mcore_push_return_address): Ditto.
475 * cris-tdep.c (cris_push_return_address): Ditto.
476 * arm-tdep.c (arm_push_return_address): Ditto.
477
3e2c4033
AC
4782003-09-08 Andrew Cagney <cagney@redhat.com>
479
480 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
481 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
482 and REG_UNMODIFIED to REG_SAME_VALUE.
483 (execute_cfa_program): Update.
484 (dwarf2_frame_cache): Update. Initialize table to
485 REG_UNSPECIFIED, complain if CFI fails to specify a register's
486 location.
487 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
488
39efb398
AC
4892003-09-08 Andrew Cagney <cagney@redhat.com>
490
491 * gnu-nat.c: Remove "inline" function attribute.
492 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
493
f5cb5aca
KB
4942003-09-08 Kevin Buettner <kevinb@redhat.com>
495
496 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
497 target.
498
1cb761c7
KB
4992003-09-08 Kevin Buettner <kevinb@redhat.com>
500
501 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
502 (frame_extra_info): Rename this struct to frv_unwind_cache.
503 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
504 Add fields ``prev_sp'' and ``base''.
505 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
506 (frv_saved_pc_after_call, frv_init_extra_frame_info)
507 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
508 Delete.
509 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
510 Revise all callers. Fill in the unwind cache argument and make
511 other adjustments to account for new frame mechanisms.
512 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
513 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
514 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
515 (frv_frame_unwind, frv_frame_base): New structs.
516 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
517 additional arguments expected by this method and adjust function
518 body accordingly.
519 (frv_gdbarch_init): Remove calls to the following functions:
520 set_gdbarch_deprecated_init_frame_pc(),
521 set_gdbarch_deprecated_saved_pc_after_call(),
522 set_gdbarch_deprecated_frame_chain(),
523 set_gdbarch_deprecated_frame_saved_pc(),
524 set_gdbarch_deprecated_frame_init_saved_regs(),
525 set_gdbarch_deprecated_push_arguments(),
526 set_gdbarch_deprecated_push_return_address(),
527 set_gdbarch_deprecated_pop_frame(),
528 set_gdbarch_deprecated_call_dummy_words(),
529 set_gdbarch_deprecated_sizeof_call_dummy_words(),
530 set_gdbarch_deprecated_init_extra_frame_info(),
531 set_gdbarch_deprecated_dummy_write_sp(), and
532 set_gdbarch_deprecated_pc_in_call_dummy().
533 Add calls to the following functions:
534 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
535 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
536 frame_base_set_default().
537 * Makefile.in (frv-tdep.o): Update dependencies.
538
68f6cf99
MK
5392003-09-09 Mark Kettenis <kettenis@gnu.org>
540
541 * dwarf2-frame.c (read_encoded_value): Add support for
542 DW_EH_PE_aligned encoding.
543
73b65bb0
DJ
5442003-09-08 Daniel Jacobowitz <drow@mvista.com>
545
546 * infrun.c (normal_stop): Don't print a message if the inferior
547 has exited.
548
7c8a5605
JB
5492003-09-08 Jim Blandy <jimb@redhat.com>
550
551 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
552 * dbxread.c: #include "gdb_assert.h".
553 (read_dbx_symtab): If the objfile has no .data section, use the
554 section index for the .bss section instead.
555
7dd88986
DJ
5562003-09-08 Daniel Jacobowitz <drow@mvista.com>
557
558 * frame.c (deprecated_safe_get_selected_frame): New function.
559 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
560 * findvar.c (read_var_value): Call it.
561
55ff77ac
CV
5622003-09-08 Corinna Vinschen <vinschen@redhat.com>
563
564 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
565 (sh64-tdep.o): Add dependencies.
566 * configure.tgt: Add FIXME to sh-*-linux*.
567 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
568 (sh_gdbarch_init): Always set correct sh_show_regs function
569 pointer. Call sh64_gdbarch_init() if machine type is sh5.
570 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
571 * sh64-tdep.c: New file, containing all sh64 related code from
572 sh-tdep.c.
573 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
574 * config/sh/linux.mt (TDEPFILES): Ditto.
575 * config/sh/nbsd.mt (TDEPFILES): Ditto.
576 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
577 * config/sh/wince.mt (TDEPFILES): Ditto.
578
bfb39158
DJ
5792003-09-07 Daniel Jacobowitz <drow@mvista.com>
580
581 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
582 (stop_wait_callback): Handle !lp->signalled also.
583 (lin_lwp_has_pending, flush_callback): New functions.
584 (lin_lwp_wait): Call flush_callback.
585 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
586 (linux_proc_pending_signals): New function.
587 * linux-nat.h (linux_proc_pending_signals): Add prototype.
588
9407de8e
DJ
5892003-09-07 Daniel Jacobowitz <drow@mvista.com>
590
591 From Nick Kelsey <nickk@ubicom.com>:
592 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
593 when the stop PC is at the beginning of a function also.
594
2ef47cd0
DJ
5952003-09-06 Daniel Jacobowitz <drow@mvista.com>
596
597 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
598 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
599
6f4492c8
MK
6002003-09-06 Mark Kettenis <kettenis@gnu.org>
601
602 * sol-thread.c: Include "gdb_string.h".
603
d3420b2f
MK
6042003-09-03 Mark Kettenis <m.kettenis@osp.nl>
605
606 * gcore.c: Reorder include files in alphabetical order. Include
607 "gdb_assert.h". Various coding style fixes.
608 (derive_stack_segment, derive_heap_segment): Replace check for
609 non-null BOTTOM and TOP with gdb_assert.
610 (derive_heap_segment): Replace check for successful creation of
611 ZERO with gdb_assert.
612 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
613
5220ea4c
AC
6142003-09-04 Andrew Cagney <cagney@redhat.com>
615
616 * thread-db.c (verbose_dlsym): New function.
617 (thread_db_load): Use verbose_dlsym
618 (thread_db_new_objfile): Print that libthread_db was loaded, and
619 that thread debugging was enabled.
620
6e8c2c06
AC
6212003-09-04 Andrew Cagney <cagney@redhat.com>
622
623 * configure.tgt: Add "mips64*-*-*" target. Delete
624 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
625 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
626 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
627 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
628 mips*-sony-*, and mips64*-*-elf* targets.
629 * config/mips/embedl.mt: Delete file.
630 * config/mips/embedl64.mt: Delete file.
631 * config/mips/mips.mt: Delete file.
632 * config/mips/mips64.mt: Delete file.
633 * config/mips/tm-embed.h: Delete file.
634 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
635 * config/mips/embed64.mt: Delete out-of-date comment.
636
3a3bc038
AC
6372003-09-04 Andrew Cagney <cagney@redhat.com>
638
639 * hppa-tdep.c (hppa_gdbarch_init): Set
640 "have_nonsteppable_watchpoint".
641 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
642 * mips-tdep.c (mips_dump_tdep): Do not print
643 HAVE_NONSTEPPABLE_WATCHPOINT.
644 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
645 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
646 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
647 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
648
a957e642
CV
6492003-09-04 Corinna Vinschen <vinschen@redhat.com>
650
651 * breakpoint.c (watchpoint_check): Remove accidentally checked in
652 unused code. Add comment.
653
a6fbcf2f
CV
6542003-09-04 Corinna Vinschen <vinschen@redhat.com>
655
656 * breakpoint.c (watchpoint_check): Check for pc being in an
657 epilogue if watchpoint frame couldn't be found.
658
c14a44d5
AC
6592003-09-04 Andrew Cagney <cagney@redhat.com>
660
661 * Makefile.in: Re-generate all dependencies.
662
f6c40618
AC
6632003-09-03 Andrew Cagney <cagney@redhat.com>
664
665 * arch-utils.h (legacy_print_insn): Delete declaration.
666 * arch-utils.c (legacy_print_insn): Delete function.
667 * disasm.c (deprecated_tm_print_insn_info): Delete.
668 (_initialize_disasm): Delete function, contained code initializing
669 deprecated_tm_print_insn_info.
670 * gdbarch.sh (deprecated_tm_print_insn): Delete.
671 (deprecated_tm_print_insn_info): Delete.
672 (TARGET_PRINT_INSN): Do not provide a default.
673 * gdbarch.h, gdbarch.c: Re-generate.
674
242e8be5
AC
6752003-09-03 Andrew Cagney <cagney@redhat.com>
676
677 * disasm.c (fprintf_disasm): New function.
678 (gdb_disassemble_info): Call "init_disassemble_info", instead of
679 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
680 reverts 2003-08-14 change.
681 (_initialize_disasm): Call "init_disassemble_info", instead of
682 INIT_DISASSEMBLE_INFO_NO_ARCH.
683
3ffc3dda
MS
6842003-09-03 Michael Snyder <msnyder@redhat.com>
685
686 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
687
52d16ba8
AC
6882003-09-03 Andrew Cagney <cagney@redhat.com>
689
690 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
691 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
692 * symfile.c (syms_from_objfile): Update.
693 (reread_symbols): `Update
694 * exec.c (exec_file_attach): Update.
695 (exec_file_attach): Update.
696 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
697 2003-08-29 change.
698 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
699
eb5492fa
DJ
7002003-09-03 Daniel Jacobowitz <drow@mvista.com>
701
702 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
703 trad-frame.h.
704 (arm_get_cache): Delete macro.
705 (struct arm_prologue_cache): Update comments. Make saved_regs into
706 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
707 to prev_sp.
708 (thumb_scan_prologue): Update for cache changes. Don't call
709 DEPRECATED_PC_IN_CALL_DUMMY.
710 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
711 argument and use it in desperation search for our prologue. Do not
712 search past the specified PC.
713 (arm_make_prologue_cache): Simplify.
714
715 (arm_prologue_this_id, arm_prologue_prev_register)
716 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
717 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
718 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
719 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
720 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
721
722 (arm_frame_chain_valid, arm_find_callers_reg)
723 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
724 (arm_pop_frame): Delete obsolete methods.
725 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
726
727 (arm_gdbarch_init): Update for new frame methods. Register prologue
728 and sigtramp unwinders. Set the default frame base method.
729
730 * Makefile.in (arm-tdep.o): Update dependencies.
731 * varobj.c (find_frame_addr_in_frame_chain): Call
732 get_frame_base_address.
733 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
734
24de872b
DJ
7352003-09-03 Daniel Jacobowitz <drow@mvista.com>
736
737 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
738 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
739 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
740 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
741 Take NEXT_FRAME and CACHE arguments. Call
742 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
743 Set unwound_pc in CACHE instead of modifying the frame argument.
744 Don't bother checking the frame type when looking for sigtramp
745 frames.
746 (arm_make_prologue_cache, arm_frame_chain)
747 (arm_init_extra_frame_info): New functions.
748
9b8d791a
DJ
7492003-09-03 Daniel Jacobowitz <drow@mvista.com>
750
751 * arm-tdep.c (arm_get_cache): Define.
752 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
753 unwound_sp, unwound_pc, and saved_regs.
754 (thumb_scan_prologue): Take a cache instead of the frame.
755 (arm_scan_prologue): Likewise.
756 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
757 instead of a temporary frame.
758 (arm_init_extra_frame_info): Allocate and use a cache.
759 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
760
7ee3275f
AC
7612003-09-03 Andrew Cagney <cagney@redhat.com>
762
763 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
764 * config/mips/wince.mt (TM_CLIBS): Ditto.
765 * config/sh/wince.mt (TM_CLIBS): Ditto.
766 * config/pa/hppa64.mt (TM_CLIBS): Delete.
767 * config/sparc/sp64.mt (CC): Delete.
768
57b29be7
AC
7692003-09-03 Andrew Cagney <cagney@redhat.com>
770
771 * defs.h: Do not include "arch-utils.h".
772 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
773 GDB_MULTI_ARCH_PURE.
774 * configure.in (GDB_MULTI_ARCH): Do not define.
775 * configure, config.in: Regenerate.
776 * configure.tgt: Do not set variable "gdb_multi_arch".
777 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
778 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
779 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
780 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
781 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
782 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
783 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
784 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
785 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
786 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
787 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
788 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
789 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
790 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
791 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
792 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
793 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
794 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
795
12e035e2
MC
7962003-08-30 Michael Chastain <mec@shout.net>
797
798 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
799 * config/m68k/nm-hp300hpux.h: Delete.
800 * config/m68k/tm-hp300hpux.h: Delete.
801 * config/m68k/xm-hp300hpux.h: Delete.
802 * config/m68k/xm-hp300bsd.h: Delete.
803 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
804 tm-hp300hpux.h, xm-hp300hpux.h.
805 * somsolib.c: Remove comment about hp300 shared libraries.
806
bda34dc2
MK
8072003-08-31 Mark Kettenis <kettenis@gnu.org>
808
5bca7895
MK
809 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
810 Only define PTRACE_GET_THREAD_AREA is not already defined.
811 Various style fixes in code and comments and some additional
812 spelling fixes in comments. Move after functions dealing with
813 debug registers.
814 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
815 Fix coding-style.
816
bda34dc2
MK
817 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
818 frame_unwind_register_unsigned instead of
819 frame_unwind_unsigned_register.
820
c890192f
MK
8212003-08-30 Mark Kettenis <kettenis@gnu.org>
822
823 * configure.in: Search for gethostbyname in libnsl.
824 * configure: Regenerated.
825
60fac5b8
MK
8262003-08-29 Mark Kettenis <kettenis@gnu.org>
827
e294916c
MK
828 * configure.in: Remove redundant AC_MSG_RESULT in check for
829 uintptr_t in stdint.h.
830 * configure: Regenerated.
831
c40d267a
MK
832 * amd64-nat.h (struct regcache): Add opaque declaration.
833
60fac5b8
MK
834 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
835 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
836 Change "register array" to "register cache" in comments.
837 (x86_64_linux_gregset64_reg_offset): New variable.
838 (GETREGS_SUPPLIES): Remove macro.
839 (supply_gregset): Call amd64_supply_native_gregset instead of
840 x86_64_linux_supply_gregset.
841 (fill_gregset): Rename `regno' to `regnum'. Call
842 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
843 (store_regs): Rename `regno' to `regnum'.
844 (store_fpregs): Rename `regno' to `regnum'.
845 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
846 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
847 Reorganize function a bit.
848 (store_inferior_registers): Rename `regno' to `regnum'. Use
849 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
850 Reorganize function a bit.
851 (_initialize_x86_64_linux_nat): New function.
852 * config/i386/x86-64linux.mh.
853
546143b6
AC
8542003-08-29 Andrew Cagney <cagney@redhat.com>
855
856 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
857 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
858 (target_remove_watchpoint): Delete macro.
859 (target_insert_watchpoint): Delete macro.
860 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
861 (remote_mips_stopped_by_watchpoint): Delete declaration.
862 (remote_mips_remove_watchpoint): Delete declaration.
863 (remote_mips_set_watchpoint): Delete declaration.
864 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
865 * remote-mips.c (_initialize_remote_mips): Set
866 "to_insert_watchpoint", "to_stopped_by_watchpoint",
867 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
868 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
869 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
870 (mips_stopped_by_watchpoint): Rename
871 remote_mips_stopped_by_watchpoint.
872 (mips_can_hardware_watchpoint): Rename
873 remote_mips_can_use_hardware_watchpoint, update function
874 signature.
875
7bace51b
MK
8762003-08-29 Mark Kettenis <kettenis@gnu.org>
877
b0f5c6f2
MK
878 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
879 USER_DS. We haven't given them a register number yet.
880
2a6d284d
MK
881 * amd64-nat.h: New file.
882 * amd64-nat.c: New file.
883 * amd64fbsd-nat.c: Include "amd64-nat.h".
884 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
885 (amd64fbsd32_r_reg_offset): New variable.
886 (supply_gregset): Simply call amd64_supply_native_gregset.
887 (fill_gregset): Rename `regno' to `regnum'. Simply call
888 amd64_collect_native_gregset.
889 (fill_fpregset): Rename `regno' to `regnum'.
890 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
891 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
892 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
893 `fpregset_t'. Call amd64_supply_native_gregset instead of
894 supply_gregset. Call x86_64_supply_fxsave instead of
895 supply_fpregset.
896 (store_inferior_registers): Rename `regno' to `regnum'. Replace
897 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
898 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
899 `fpregset_t'. Call amd64_collect_native_gregset instead of
900 fill_gregset. Call x86_64_collect_fxsave instead of
901 fill_fpregset.
902 (_initialize_am64fbsd_nat): Initialize
903 amd64_native_gregset32_reg_offset and
904 amd64_native_gregset64_reg_offset.
905 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
906
a16d75cc
MK
907 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
908 null pointer. Fix typo in comment.
909
7bace51b
MK
910 * regcache.c (supply_register): Reimplement to call
911 regcache_raw_supply.
912 (regcache_collect): Reimplement by calling regcache_raw_collect.
913
9a661b68
MK
9142003-08-28 Mark Kettenis <kettenis@gnu.org>
915
916 * regcache.c (register_buffer): Consitify first argument.
917 (regcache_raw_supply, regcache_raw_collect): New
918 functions.
919
e94cc8fa
DJ
9202003-08-28 Daniel Jacobowitz <drow@mvista.com>
921
922 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
923 by Nathan J. Williams.
924
c64bd0ce
DJ
9252003-08-28 Daniel Jacobowitz <drow@mvista.com>
926
927 * lin-lwp.c (wait_lwp): New function, copied from
928 stop_wait_callback. Clean up.
929 (stop_wait_callback): Use wait_lwp.
930
e5ab0dce
AC
9312003-08-28 Andrew Cagney <cagney@redhat.com>
932
933 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
934 flavour and disassembler options.
935 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
936 (mips_gdbarch_init): Set "print_insn". Delete initialization of
937 deprecated_tm_print_insn_info.
938
a788de9b
AC
9392003-08-27 Andrew Cagney <cagney@redhat.com>
940
941 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
942 Use target_read_memory.
943 (s390_get_frame_info): Update. Do not reference
944 deprecated_tm_print_insn_info.
945 (s390_check_function_end, s390_is_sigreturn): Ditto.
946
36482093
AC
9472003-08-27 Andrew Cagney <cagney@redhat.com>
948
949 * Makefile.in (cris-tdep.o): Update dependencies.
950 * cris-tdep.c: Include "gdb_assert.h".
951 (cris_gdbarch_init): Set print_insn.
952 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
953 (cris_delayed_get_disassembler): Simplify, directly call the
954 disassembler returned by cris_get_disassembler.
955 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
956 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
957 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
958 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
959 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
960 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
961 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
962 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
963 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
964 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
965 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
966 (gdb_print_insn_sparc): Delete function.
967 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
968 deprecated_tm_print_insn_info.
969 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
970 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
971 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
973 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
974 * s390-tdep.c (gdb_print_insn_s390): Delete function.
975 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
976 (s390_gdbarch_init): Set print_insn.
977
0285512f
AC
9782003-08-27 Andrew Cagney <cagney@redhat.com>
979
980 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
981 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
982 * infcall.c (call_function_by_hand): Convert the entry point
983 address into a code address.
984
cdcd5552
AC
9852003-08-27 Andrew Cagney <cagney@redhat.com>
986
987 * dsrec.c: Include "gdb_string.h".
988 * Makefile.in (dsrec.o): Update dependencies.
989
e85cddad
MC
9902003-08-27 Michael Chastain <mec@shout.net>
991
992 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
993
8bbfbb23
AC
9942003-08-27 Andrew Cagney <cagney@redhat.com>
995
996 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
997 (alpha_osf1_init_abi): Do not set call_dummy_address.
998
ba058b66
DC
9992003-08-27 David Carlton <carlton@kealia.com>
1000
1001 From Randolph Chung <tausq@debian.org>:
1002 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1003 compiles with -Wformat-nonliteral -Werror.
1004
87f84c9d
JB
10052003-08-26 Jim Blandy <jimb@redhat.com>
1006
1007 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1008 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1009 bfd_lookup_symbol, since we only want symbols in code sections.
1010 (look_for_base): Pass zero as the SECT_FLAGS argument to
1011 bfd_lookup_symbol, since we're not concerned about which section
1012 the symbol is in.
1013
102d615a
JJ
10142003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1015
1016 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1017 we are frameless or the return address register is already known.
1018
cc7ad3ea
AC
10192003-08-26 Andrew Cagney <cagney@redhat.com>
1020
1021 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1022 in size. Add comments.
1023
af8b88dd
JJ
10242003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1025
1026 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1027 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1028
e0a4f5a1
JM
10292003-08-26 Jason Merrill <jason@redhat.com>
1030
1031 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1032 case out of #ifdef MIPS block.
1033
4ae9ee8e
DJ
10342003-08-25 Daniel Jacobowitz <drow@mvista.com>
1035
1036 PR java/1322
1037 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1038 available before calling SECT_OFF_TEXT.
3c164570 1039 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1040
004d836a
JJ
10412003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1042
1043 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1044 bof, and nat0-nat127 as pseudo-registers.
1045 (ia64_frame_cache): New struct used to cache frame info.
1046 (ia64_register_reggroup_p): New routine used to override default
1047 register grouping so registers without names are still saved and
1048 restored.
1049 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1050 pseudo values.
1051 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1052 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1053 (ia64_alloc_frame_cache): New routine to create a new
1054 ia64_frame_cache.
1055 (examine_prologue): Change prototype to add next_frame pointer.
1056 Assume frameless until otherwise proven. Verify that the cfm for
1057 current frame matches the cfm that should occur for the prologues
1058 alloc insn and if equal, mark as not frameless. At end of routine,
1059 if not frameless, calculate registers for the previous frame and store
1060 in the cache, if a cache is provided.
1061 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1062 and pass 0 for next_frame.
1063 (ia64_store_return_value): Change to use convert_typed_floating()
1064 instead of calling ia64_convert_to_raw().
1065 (ia64_extract_return_value): Change to use convert_typed_floating()
1066 instead of calling ia64_convert_to_virtual().
1067 (ia64_frame_cache): New routine to support new frame model.
1068 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1069 (ia64_frame_sniffer): Ditto.
1070 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1071 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1072 (ia64_sigtramp_frame_prev_register): Ditto.
1073 (ia64_sigtramp_frame_sniffer): Ditto.
1074 (ia64_frame_base_address): Ditto.
1075 (ia64_extract_struct_value_address): Change to issue error message.
1076 (ia64_frame_align): New routine to align sp.
1077 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1078 (ia64_push_arguments): Removed. Logic moved to
1079 ia64_push_dummy_call().
1080 (ia64_push_return_address): Ditto.
1081 (ia64_unwind_dummy_id): New function.
1082 (ia64_unwind_pc): Ditto.
1083 (ia64_convert_register_p): Ditto.
1084 (ia64_register_to_value): Ditto.
1085 (ia64_value_to_register): Ditto.
1086 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1087 (ia64_register_byte, ia64_register_raw_size): Ditto.
1088 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1089 (ia64_saved_pc_after_call): Ditto.
1090 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1091 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1092 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1093 (ia64_register_convert_to_raw): Ditto.
1094 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1095 (ia64_init_extra_frame_info): Ditto.
1096 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1097 (ia64_gdbarch_init): Remove registering of deprecated functions that
1098 are no longer used. Add registration of new gdbarch functions.
1099 Remove registering deprecated_write_sp. Replace
1100 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1101 Delete set_gdbarch_deprecated_register_convertible(),
1102 set_gdbarch_deprecated_register_convert_to_virtual(), and
1103 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1104 set_gdbarch_deprecated_register_size(),
1105 set_gdbarch_deprecated_register_bytes(),
1106 set_gdbarch_pcregnum(),
1107 set_gdbarch_deprecated_register_byte(),
1108 set_gdbarch_deprecated_register_raw_size(),
1109 set_gdbarch_deprecated_max_register_raw_size(),
1110 set_gdbarch_deprecated_register_virtual_size(),
1111 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1112 Replace set_gdbarch_deprecated_extract_return_value() with
1113 set_gdbarch_extract_return_value(). Remove calls to:
1114 set_gdbarch_deprecated_saved_pc_after_call();
1115 set_gdbarch_deprecated_frame_chain(),
1116 set_gdbarch_deprecated_frame_saved_pc(),
1117 set_gdbarch_deprecated_frame_init_saved_regs(),
1118 set_gdbarch_deprecated_get_saved_register(),
1119 set_gdbarch_deprecated_call_dummy_words(),
1120 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1121 set_gdbarch_deprecated_init_extra_frame_info(),
1122 set_gdbarch_deprecated_frame_args_address(),
1123 set_gdbarch_deprecated_frame_locals_address(),
1124 and set_gdbarch_deprecated_dummy_write_sp().
1125 Add set_gdbarch_convert_register_p(),
1126 set_gdbarch_register_to_value(),
1127 set_gdbarch_value_to_register(),
1128 set_gdbarch_push_dummy_call(),
1129 set_gdbarch_frame_align(),
1130 set_gdbarch_unwind_dummy_id(),
1131 set_gdbarch_unwind_pc(),
1132 frame_unwind_append_sniffer(),
1133 frame_unwind_append_sniffer(),
1134 and frame_base_set_default().
1135
aede7613
CD
11362003-08-25 Chris Demetriou <cgd@broadcom.com>
1137
1138 * configure.tgt: Document need for special "mipsisa64" handling.
1139 (mipsisa64*-*-linux64): Handle as target linux64.
1140 (mipsisa64*-*-*): Handle as target embed64.
1141
43c3a82e
MC
11422003-08-18 Michael Chastain <mec@shout.net>
1143
1144 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1145 objfile bug.
1146
6564f77d
MK
11472003-08-24 Mark Kettenis <kettenis@gnu.org>
1148
2de139ba
MK
1149 * i387-tdep.h: Update copyright date.
1150 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1151
6564f77d
MK
1152 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1153 CFLAGS games to reflect reality.
1154
42cf1509
AC
11552003-08-24 Andrew Cagney <cagney@redhat.com>
1156
1157 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1158 GDB_MULTI_ARCH is always non-zero.
1159 * osabi.c (_initialize_gdb_osabi): Ditto.
1160 (gdbarch_init_osabi): Ditto.
1161 * sparc-tdep.c: Ditto for #if code.
1162
0485f6ad
MK
11632003-08-23 Mark Kettenis <kettenis@gnu.org>
1164
1165 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1166 Update comments.
1167 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1168 comments.
1169 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1170 x86_64_supply_fxsave.
1171 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1172 x86_64_supply_fxsave.
1173 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1174 x86_64_supply_fxsave.
1175
c7716133
AJ
11762003-08-23 Andreas Jaeger <aj@suse.de>
1177
1178 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1179 i387_supply_fxsave.
1180
ed504bdf
MK
11812003-08-23 Mark Kettenis <kettenis@gnu.org>
1182
1183 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1184 i387_supply_register.
1185 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1186 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1187 i387_supply_fsave.
1188 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1189 i387_supply_fxsave.
1190 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1191 i387_supply_fsave.
1192 * i386bsd-nat.c (supply_fpregset): Adjust call to
1193 i387_supply_fsave.
1194 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1195 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1196 supply_fpregset.
1197 (store_inferior_registers): Remove extraneous whitespace. Call
1198 i387_fill_fsave instead of fill_fpregset.
1199 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1200 (supply_fpregset): Likewise.
1201 * i386v4-nat.c (supply_fpregset): Adjust call to
1202 i387_supply_fsave.
1203 * i386-interix-nat.c (supply_fpregset): Adjust call to
1204 i387_supply_fsave.
1205 * i386-linux-nat.c (supply_fpregset): Adjust call to
1206 i387_supply_fsave.
1207 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1208 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1209 i387supply_fsave and i387_supply_fxsave.
1210 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1211 Incorporate code from `i387_supply_register.
1212 (i387_supply_register): Remove.
1213 (i387_supply_fxsave): Add `regnum' argument.
1214 Update comments.
1215 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1216 prototype.
1217 (i387_supply_register): remove prototype.
1218 Update comments.
1219
4be5d520
MC
12202003-08-22 Michael Chastain <mec@shout.net>
1221
1222 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1223 Add lines for files in gdb/testsuite/gdb.cp/* that are
1224 still not 8.3 unique.
1225
7ed85d26
DJ
12262003-08-22 Daniel Jacobowitz <drow@mvista.com>
1227
1228 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1229 TYPE_VPTR_FIELDNO is valid.
1230
eb0d3137
MK
12312003-08-19 Mark Kettenis <kettenis@gnu.org>
1232
1233 * utils.c (set_width_command): Remove prototypes.
1234 (set_screen_size): New prototype.
1235 (init_page_info): Simplify by fetching the screen size from
1236 Readline. Call set_screen_size.
1237 (set_screen_size): New function.
1238 (set_width): Add missing whitespace in comment.
1239 (set_width_command): Call set_screen_size.
1240 (set_height_command): New function.
1241 (initialize_utils): Fix formatting. Make "set height" command
1242 call set_height_command. Remove redundant code that turns off
1243 pagination if output isn't a terminal. Remove redundant call to
1244 set_width_command.
1245
7e6d0ac8
MK
12462003-08-22 Mark Kettenis <kettenis@gnu.org>
1247
3567a8ea
MK
1248 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1249 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1250 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1251 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1252 `case' keyword.
1253 (sparc64_register_info): Give the reister with number
1254 SPARC64_STATE_REGNUM a name.
1255 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1256 %asi and %ccr.
1257 (sparc64_push_dummy_call): Take BIAS into account when checking
1258 stcak alignment.
1259 (sparc_software_single_step): Remove assertions that check whether
1260 NPC and NNPC were zero.
1261 (sparc_supply_rwindow): Make public. Merge functionality with
1262 sparc64_supply_rwindow.
1263 (sparc_fill_rwindow): Make public. Merge functionality with
1264 sparc64_fill_rwindow.
1265 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1266 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1267 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1268 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1269 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1270
7e6d0ac8
MK
1271 * reggroups.c: Add whitespace after declarations of local
1272 variables in functions.
1273
72e5f484
MC
12742003-08-21 Michael Chastain <mec@shout.net>
1275
1276 * gdbtypes.h: Change array bound type from an int to enum.
1277
435ac228
AC
12782003-08-21 Andrew Cagney <cagney@redhat.com>
1279
1280 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1281 * config/sparc/tm-sparc.h: Ditto.
1282 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1283 unconditionally.
1284 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1285
0d0e1a63
MK
12862003-07-13 Mark Kettenis <kettenis@gnu.org>
1287
1288 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1289 (register_objfile_data, set_objfile_data, objfile_data): New
1290 prototypes.
1291 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1292 prototypes.
1293 (allocate_objfile): Call objfile_alloc_data.
1294 (free_objfile): Call objfile_free_data.
1295 (struct objfile_data): New.
1296 (struct objfile_data_registration): New.
1297 (struct objfile_data_registry): New.
1298 (objfile_data_registry): New variable.
1299 (register_objfile_data): New function.
1300 (objfile_alloc_data, objfile_free_data): New functions.
1301 (set_objfile_data, objfile_data): New functions.
1302 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1303 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1304 (_initialize_dwarf2_frame): New function and prototype.
1305
d90cf509
AC
13062003-08-21 Andrew Cagney <cagney@redhat.com>
1307
1308 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1309 a specific architecture.
1310 * arch-utils.h (set_architecture_from_arch_mach): Delete
1311 declaration.
1312 (target_architecture_hook): Delete declaration.
1313 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1314 (default_float_format): Assume GDB_MULTI_ARCH.
1315 (default_double_format): Assume GDB_MULTI_ARCH.
1316 (set_endian_from_file): Delete function.
1317 (arch_ok): Delete function.
1318 (set_arch): Delete function.
1319 (set_architecture_from_arch_mach): Delete function.
1320 (set_architecture_from_file): Delete function.
1321 (set_architecture): Assume GDB_MULTI_ARCH.
1322 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1323
8b39fe56
MK
13242003-08-21 Mark Kettenis <kettenis@gnu.org>
1325
1326 Rewrite FreeBSD/sparc64 native configuration.
1327 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1328 * sparc64fbsd-nat.c: New file.
1329 * sparc64fbsd-tdep.c: New file.
1330 * sparc64-tdep.c sparc64-tdep.h: New files.
1331 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1332 sparc64fbsd-tdep.o): New dependencies.
1333 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1334 and sparc64fbsd-tdep.c.
1335 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1336 * config/sparc/fbsd.mh: Remove copyright notice.
1337 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1338 sparcbsd-nat.o.
1339 * config/sparc/fbsd.mt: Remove copyright notice.
1340 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1341 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1342 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1343 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1344 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1345 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1346 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1347 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1348 "sparc/tm-sp64.h".
1349 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1350 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1351
a7f19c79
MC
13522003-08-21 Michael Chastain <mec@shout.net>
1353
1354 * symtab.h: Add doco on the space critical structures and
1355 some measurements of space usage.
1356
da08ea5b
MS
13572003-08-21 Michael Snyder <msnyder@redhat.com>
1358
1359 * tracepoint.c (trace_dump_command): Trace break address
1360 is subject to DECR_PC_AFTER_BREAK.
1361 (set_traceframe_context): Make "trace_line" an int.
1362 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1363
6df2bf50
MS
13642003-08-20 Michael Snyder <msnyder@redhat.com>
1365
1366 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1367 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1368 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1369 argument passing.
1370 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1371 functions, replace sh_push_dummy_call.
1372 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1373
0955bbf0
MC
13742003-08-20 Michael Chastain <mec@shout.net>
1375
1376 * gdbtypes.h (struct main_type): Rearrange to save space.
1377
260a4188
MS
13782003-08-20 Michael Snyder <msnyder@redhat.com>
1379
1380 * trad-frame.c: Comment typo fix.
1381
8baa6f92
KB
13822003-08-20 Michael Snyder <msnyder@redhat.com>
1383 Kevin Buettner <kevinb@redhat.com>
1384
1385 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1386 (frv_frame_init_saved_regs): Add declaration.
1387 (frame_extra_info): Add new field ``saved_regs''.
1388 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1389 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1390 Update frame related code.
1391 (frv_extract_struct_value_address): Adjust formatting.
1392 * Makefile.in (frv-tdep.o): Update dependencies.
1393 * config/frv/tm-frv.h (target_insert_watchpoint)
1394 (target_remove_watchpoint, target_insert_hw_breakpoint)
1395 (target_remove_hw_breakpoint): Delete these macros.
1396 (remote_insert_watchpoint, remote_remove_watchpoint)
1397 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1398 these declarations.
1399
87193939
MC
14002003-08-20 Michael Chastain <mec@shout.net>
1401
1402 * defs.h (ENUM_BITFIELD): New macro.
1403 * symtab.h (ENUM_BITFIELD): Use it.
1404 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1405
062103ba
SA
14062003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1407
1408 * MAINTAINERS (write after approval): Add myself.
1409
8b148df9
AC
14102003-08-18 Andrew Cagney <cagney@redhat.com>
1411
1412 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1413 * gdbarch.h, gdbarch.c: Re-generate.
1414 * infcall.c (call_function_by_hand): Adjust the SP by
1415 frame_red_zone_size before allocating any stack space.
1416 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1417 * x86-64-tdep.c (x86_64_frame_align): New function.
1418 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1419
1420 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1421 Remove code adjusting SP so that it skips over the Red Zone.
1422
954a4db8
MK
14232003-08-18 Mark Kettenis <kettenis@gnu.org>
1424
1425 * NEWS (New native configurations): Mention FreeBSD/amd64.
1426
1a241548
AC
14272003-08-18 Andrew Cagney <cagney@redhat.com>
1428
1429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1430 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1431 "m68k_frame_p".
1432 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1433
f82b2acd
MK
14342003-08-18 Mark Kettenis <kettenis@gnu.org>
1435
1436 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1437
4056d258
ML
14382003-08-18 Michal Ludvig <mludvig@suse.cz>
1439
1440 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1441 Define.
1442 * i386-linux-nat.c: Include "linux-nat.h".
1443 (child_post_startup_inferior): New function.
1444
99ab4326
MK
14452003-08-18 Mark Kettenis <kettenis@gnu.org>
1446
1447 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1448 at the start of a frameless function. This probably fixes PR
1449 backtrace/1338.
1450
c8d5f0d6
MC
14512003-08-17 Michael Chastain <mec@shout.net>
1452
1453 * symfile.c (find_sym_fns): Remove special case for apollo target.
1454
9016a515
DJ
14552003-08-17 Daniel Jacobowitz <drow@mvista.com>
1456
1457 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1458 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1459 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1460 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1461 (linux_supports_tracevforkdone): New function.
1462 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1463 TRACEVFORKDONE.
1464 (child_follow_fork): Handle vfork.
1465 (linux_handle_extended_wait): Likewise. Also handle exec.
1466 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1467 * NEWS: Mention fork tracing.
1468
c538c11c
DJ
14692003-08-17 Daniel Jacobowitz <drow@mvista.com>
1470
1471 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1472
4de4c07c
DJ
14732003-08-17 Daniel Jacobowitz <drow@mvista.com>
1474
1475 * Makefile.in (i386-linux-nat.o): Update dependencies.
1476 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1477 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1478 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1479 * i386-linux-nat.c: Include "linux-nat.h".
1480 (child_post_startup_inferior): New function.
1481 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1482 * infptrace.c (kill_inferior): Wrap in #ifdef.
1483 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1484 attaching to each LWP.
1485 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1486 (init_lin_lwp_ops): Fill in some more operations.
1487 * linux-nat.h (linux_enable_event_reporting)
1488 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1489 prototypes.
1490 * linux-nat.c (linux_enable_event_reporting): New function.
1491 (child_post_attach, linux_child_post_startup_inferior)
1492 (child_post_startup_inferior, child_follow_fork)
1493 (linux_handle_extended_wait, kill_inferior): New functions.
1494
7996bcec
AC
14952003-08-16 Andrew Cagney <cagney@redhat.com>
1496
1497 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1498 * gdbarch.h, gdbarch.c: Re-generate.
1499
3d48a7a0
MK
15002003-08-16 Mark Kettenis <kettenis@gnu.org>
1501
1502 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1503
7989c619
AC
15042003-08-16 Andrew Cagney <cagney@redhat.com>
1505
1506 * NEWS: Mention that "set prompt-escape-char" was deleted.
1507 * top.c (get_prompt_1): Delete function.
1508 (gdb_prompt_escape):
1509 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1510 prompt-escape-char" command.
1511 (MAX_PROMPT_SIZE): Delete macro.
1512 (get_prompt): Simplify, do not call get_prompt_1.
1513
07978cd8
AC
15142003-08-16 Andrew Cagney <cagney@redhat.com>
1515
1516 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1517 -Werror. -Wformat-nonliteral problems.
1518
3ff7cf9e
JB
15192003-08-15 J. Brobecker <brobecker@gnat.com>
1520
1521 Further multiarching work mostly for hppa64-*-hpux11:
1522 * hppa-tdep.h: New file.
1523 * hppa-tdep.c: #include hppa-tdep.c.
1524 (hppa32_num_regs): Renamed from hppa_num_regs.
1525 (hppa64_num_regs): New constant.
1526 (hppa64_call_dummy_breakpoint_offset): New constant.
1527 (hppa32_call_dummy_length): New constant.
1528 (hppa64_call_dummy_length): New constant.
1529 (hppa32_stack_align): Make name 32bit explicit.
1530 (hppa32_register_virtual_type): Likewise.
1531 (hppa32_extract_return_value): Likewise.
1532 (hppa32_use_struct_convention): Likewise.
1533 (hppa32_store_return_value): Likewise.
1534 (hppa64_register_virtual_type): New function.
1535 (hppa64_extract_return_value): New function.
1536 (hppa64_use_struct_convention): New function.
1537 (hppa64_store_return_value): New function.
1538 (hppa_frame_locals_address): Remove declaration, function does
1539 not exist anymore.
1540 (hppa_register_byte): Add support for PA64 ABI.
1541 (hppa_gdbarch_init): Add support for PA64 ABI.
1542 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1543 Make name 32bit explicit.
1544 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1545 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1546 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1547 (hppa64_hpux_frame_base_before_sigtramp): New function.
1548 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1549 * config/pa/tm-hppa64.h: Remove macros that are no longer
1550 necessary now that the gdbarch vector is properly setup.
1551 Transform some macros into function calls. Some minor cleanup.
1552 * config/pa/tm-hppah.h: Update function calls in macros
1553 following the function renaming in hppa-hpux-tdep.c.
1554 * Makefile.in (hppa_tdep_h): New variable.
1555 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1556
5d05ca6d
MS
15572003-08-14 Michael Snyder <msnyder@redhat.com>
1558
1559 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1560
37ba2569
JB
15612003-08-13 J. Brobecker <brobecker@gnat.com>
1562
1563 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1564 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1565 routine.
1566
aed7f26a
MS
15672003-08-13 Michael Snyder <msnyder@redhat.com>
1568
1569 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1570 (frv_saved_pc_after_call): Use deprecated ftype.
1571 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1572 (frv_remote_translate_xfer_address): Remove.
1573 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1574
752d4ac1
JB
15752003-08-13 J. Brobecker <brobecker@gnat.com>
1576
1577 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1578 initialization after the common gdbarch initialization, not before.
1579
1426ac1d
JB
15802003-08-13 J. Brobecker <brobecker@gnat.com>
1581
1582 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1583 (ADDR_BITS_REMOVE): Remove, redundant.
1584
b6fbdd1d
JB
15852003-08-13 J. Brobecker <brobecker@gnat.com>
1586
1587 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1588 gdbarch method to clear the 2 low bits of text addresses.
1589
44160db3
AC
15902003-08-12 Andrew Cagney <cagney@redhat.com>
1591
1592 * Makefile.in (dsrec.o): Update dependencies.
1593 * dsrec.c: Include "gdb_assert.h".
1594 (make_srec): Use snprintf instead of sprintf, use a literal format
1595 string.
1596
bcf7d3ca
AC
15972003-08-12 Andrew Cagney <cagney@redhat.com>
1598
1599 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1600 FRAME_OBSTACK_ZALLOC.
1601
49ed40de
KB
16022003-08-12 Kevin Buettner <kevinb@redhat.com>
1603
1604 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1605 SSE registers.
1606
b246147c
MK
16072003-08-10 Mark Kettenis <kettenis@gnu.org>
1608
1609 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1610 amd64fbsd_sc_reg_offset): Add extern declarations.
1611 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1612 declarations.
1613
d95fdc0d
BE
16142003-08-11 Ben Elliston <bje@wasabisystems.com>
1615
1616 * MAINTAINERS (write after approval): Update my mail address.
1617
cf6a0e73
AC
16182003-08-10 Andrew Cagney <cagney@redhat.com>
1619
1620 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1621
f837910f
MK
16222003-08-10 Mark Kettenis <kettenis@gnu.org>
1623
e2dbbd2d
MK
1624 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1625 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1626 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1627 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1628 i386bsd_sc_reg_offset): Add extern declarations.
1629 * i386obsd-nat.c: Include "i386-tdep.h"
1630 (_initialize_i386obsd_nat): Remove extern declarations.
1631 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1632 declarations.
1633 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1634 declarations.
1635
f837910f
MK
1636 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1637 instead of frame_read_register.
1638 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1639 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1640 SP_REGNUM.
1641 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1642 instead of frame_unwind_unsigned_register. Use
1643 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1644 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1645 instead of read_register. Use builtin_type_void_data_ptr instead
1646 of builtin_type_void_func_ptr when extracting the address of the
1647 jmp_buf.
1648 (i386_extract_return_value, i386_store_return_value,
1649 i386_pseudo_register_read, i386_pseudo_register_write): Use
1650 register_size instead REGISTER_RAW_SIZE.
1651
edcf254d
AC
16522003-08-10 Andrew Cagney <cagney@redhat.com>
1653
1654 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1655 sprintf. Make "name" constant.
1656
26604a34
MK
16572003-08-10 Mark Kettenis <kettenis@gnu.org>
1658
192285c6
MK
1659 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1660 instead of frame_read_register.
f837910f
MK
1661 (i387_print_float_info): Use get_frame_register and
1662 get_frame_register_unsigned instead of frame_register_read.
192285c6 1663
f0925262
MK
1664 * i386fbsd-nat.c: Include "i386-tdep.h".
1665 (child_resume): Make `eflags' an ULONGEST. Use
1666 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1667 instead of register_read and register_write.
1668
a144416f
MK
1669 * i386bsd-nat.c (fetch_inferior_registers,
1670 store_inferior_registers): Don't use && at the end of a line.
1671 (_initialize_i386bsd_nat): Fix typo.
1672
fec74868
MK
1673 * frame.c (_initialize_frame): Add missing backslash.
1674
87232496
MK
1675 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1676 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1677 and supply_register instead of manipulating the register buffer
1678 directly.
1679
c9b9de0b
MK
1680 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1681 * config/i386/nm-i386sol2.h
1682 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1683
26604a34
MK
1684 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1685 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1686 instructions that GCC likes to mingle into the prologue. Fixes
1687 gdb/1253 and gdb/1255.
1688
25d29d70
AC
16892003-08-09 Andrew Cagney <cagney@redhat.com>
1690
1691 Fix GDB PR cli/926.
1692 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1693 * command.h (add_setshow_uinteger_cmd): Declare.
1694 * frame.c (set_backtrace_cmd): New function.
1695 (show_backtrace_cmd): New function.
1696 * frame.c (_initialize_frame): Replace "set/show
1697 backtrace-below-main" with "set/show backtrace past-main". Add
1698 command "set/show backtrace limit".
1699 (backtrace_past_main): Rename "backtrace_below_main".
1700 (backtrace_limit): New variable.
1701 (get_prev_frame): Update. Check the backtrace_limit.
1702
9ebf4acf
AC
17032003-08-09 Andrew Cagney <cagney@redhat.com>
1704
1705 * defs.h (xstrprintf): Declare.
1706 * utils.c (xstrprintf): New function.
1707 * breakpoint.c (insert_breakpoints): Replace sprintf and
1708 non-literal format strings, with xstrprintf and cleanups.
1709 (delete_breakpoint,breakpoint_re_set): Ditto.
1710 (commands_command, insert_breakpoints): Ditto.
1711 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1712 (break_at_finish_command_1): Ditto.
1713
3771659b
AC
17142003-08-09 Andrew Cagney <cagney@redhat.com>
1715
1716 * MAINTAINERS (language support): List Adam Fedor as Objective C
1717 maintainer.
1718
b4263afa
JB
17192003-08-08 J. Brobecker <brobecker@gnat.com>
1720
1721 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1722 are now multiarched.
1723
d84defb1
JB
17242003-08-08 J. Brobecker <brobecker@gnat.com>
1725
1726 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1727 longer necessary now that hppa64 is partially multiarch'ed.
1728
f786f615
AC
17292003-08-08 Andrew Cagney <cagney@redhat.com>
1730
1731 * interps.c (interp_set): Check for a NULL "old_interp".
1732
c938e9b0
L
17332003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1734
1735 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1736 (install-only): Support DESTDIR.
1737 (uninstall): Likewise.
1738 (install-gdbtk): Likewise.
1739
9a146a11
EZ
17402003-08-08 Elena Zannoni <ezannoni@redhat.com>
1741
1742 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1743 contains something meaningful at all times.
1744
1745Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1746
62599e99 1747 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1748
56296155
BC
1749Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1750
62599e99 1751 * MAINTAINERS (write after approval): Added self.
56296155 1752
9710e734
AC
17532003-08-07 Andrew Cagney <cagney@redhat.com>
1754
1755 * inferior.h (AT_SYMBOL): Define.
1756 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1757 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1758 * mips-tdep.c (mips_call_dummy_address): Delete function.
1759 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1760 set call_dummy_address.
1761
98b3ab73
AC
17622003-08-07 Andrew Cagney <cagney@redhat.com>
1763
1764 * language.c (op_error): Delete function.
1765 (binop_type_check): Delete function.
1766 * language.h (type_op_error, range_op_error): Delete macros.
1767 (op_error): Delete declaration.
1768
2fcf52f0
AC
17692003-08-07 Andrew Cagney <cagney@redhat.com>
1770
1771 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1772
abd4220e 17732003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1774
abd4220e 1775 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1776 (x86_64_push_arguments): Skip the red zone.
abd4220e 1777
9dd5f34f
AC
17782003-08-05 Andrew Cagney <cagney@redhat.com>
1779
1780 * reggroups.c (reggroup_next): Check for the final entry.
1781
e5e78edc
AC
17822003-08-04 Andrew Cagney <cagney@redhat.com>
1783
ab4e3d93
AC
1784 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1785 * cli/cli-script.c (define_command): Call query directly, instead
1786 of passing it a buffer.
1787 * ocd.c (ocd_error): Pass error a constant format string.
1788 * remote-mips.c (mips_error): Use fputs_filtered.
1789
1062ca82
AC
1790 * solib-svr4.c (_initialize_svr4_solib): Update
1791 register_gdbarch_data call.
1792 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1793
fcc1c85c
AC
1794 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1795 (register_gdbarch_data): Delete "free" parameter. Update
1796 comments.
1797 * gdbarch.h, gdbarch.c: Re-generate.
1798 * reggroups.c (_initialize_reggroup): Update.
1799 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1800 * frame-base.c (_initialize_frame_base): Update.
1801 * frame-unwind.c (_initialize_frame_unwind): Update.
1802 * user-regs.c (_initialize_user_regs): Update.
1803 * remote.c (_initialize_remote): Update.
1804 * regcache.c (_initialize_regcache): Update.
1805
116f06ea
AC
1806 * regcache.c (xfree_regcache_descr): Delete function.
1807 (_initialize_regcache): Update call to register_gdbarch_data.
1808 (init_regcache_descr, init_legacy_regcache_descr): Use
1809 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1810
e5e78edc
AC
1811 * remote.c (free_remote_state): Delete function.
1812 (_initialize_remote): Update register_gdbarch_data.
1813 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1814 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1815
6c7d17ba
AC
18162003-08-04 Andrew Cagney <cagney@redhat.com>
1817
1818 * reggroups.c (struct reggroup_el): Define.
1819 (struct reggroups): Delete field "nr_group". Replace array
1820 "group" with a "first" to "last" linked list.
1821 (reggroups_init): Update. Allocate using gdbarch's obstack.
1822 (reggroups_free): Delete function.
1823 (add_group): Update. Add "el" parameter.
1824 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1825 (default_groups): Update.
1826 (reggroup_next): Replace reggroups.
1827 (reggroups_dump): Update.
1828 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1829 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1830 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1831
89b7795b
DJ
18322003-08-04 Daniel Jacobowitz <drow@mvista.com>
1833
1834 * Makefile.in (tui-interp.o): Update dependencies.
1835
306d9ac5
DC
18362003-08-04 David Carlton <carlton@kealia.com>
1837
1838 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1839 to internal_error call.
1840 * source.c (forward_search_command): Add "%s" format argument.
1841 (reverse_search_command): Ditto.
1842 * top.c (quit_confirm): Ditto.
1843 * cli/cli-setshow.c (do_setshow_command): Ditto.
1844 * cp-valprint.c (cp_print_class_method): Replace
1845 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1846 (cp_print_class_member): Ditto.
1847 * event-top.c (command_line_handler): Ditto.
1848 * linux-proc.c (linux_info_proc_cmd): Ditto.
1849 * p-typeprint.c (pascal_type_print_base): Ditto.
1850 * p-valprint.c (pascal_object_print_class_method): Ditto.
1851 (pascal_object_print_class_member): Ditto.
1852 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1853 * remote.c (remote_cisco_section_offsets): Ditto.
1854 * top.c (command_line_input): Ditto.
1855 * utils.c (vwarning,error_stream,quit): Ditto.
1856 * valprint.c (print_floating,print_binary_chars)
1857 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1858
57bfe177
AC
18592003-08-04 Andrew Cagney <cagney@redhat.com>
1860
1861 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1862
e546b999
AC
18632003-08-02 Andrew Cagney <cagney@redhat.com>
1864
1865 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1866 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1867 amd64fbsd-nat.c.
1868
91092ee5
AC
18692003-08-02 Andrew Cagney <cagney@redhat.com>
1870
1871 * Makefile.in: Update all dependencies and definitions.
1872
889f28e2
AF
18732003-08-02 Adam Fedor <fedor@gnu.org>
1874
1875 * linespec.c (is_objc_method_format): New function
1876 (decode_line_1, locate_first_half): Use it.
1877 Fixes PR objc/1298
1878
880bc914
AC
18792003-08-01 Andrew Cagney <cagney@redhat.com>
1880
1881 * NEWS: Mention that m32r is multi-arch.
1882 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1883 * configure.tgt: Recognize m32r-*-*.
1884 * config/m32r/tm-m32r.h: Delete file.
1885 * config/m32r/m32r.mt: New file.
1886 * m32r-rom.c (m32r_upload_command): Use hostent only when
1887 gethostname succeeds, in order to avoid a compilation
1888 warning.
1889 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1890 compiler warning.
1891
19f59343
MS
18922003-08-01 Michael Snyder <msnyder@redhat.com>
1893
1894 * sh-tdep.c (sh_frame_align): New gdbarch method.
1895 (sh_gdbarch_init): Set up frame_align method.
1896
4e7d7511
MS
18972003-07-31 Michael Snyder <msnyder@redhat.com>
1898
1899 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1900 which is already covered by the new frames infrastructure.
1901
63022984
AC
19022003-07-31 Andrew Cagney <cagney@redhat.com>
1903
1904 * user-regs.c (struct user_reg): Add "next" link.
1905 (struct user_regs): Replace "user" with "first" and "last" links.
1906 (append_user_reg): Add pre-allocated "reg" parameter.
1907 (builtin_user_regs): Provide initial value for "last".
1908 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1909 (user_regs_init): Allocate memory from the gdbarch obstack.
1910 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1911 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1912 linked list.
1913 (usernum_to_user_reg): New function.
1914 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1915 (value_of_user_reg): Use usernum_to_user_reg.
1916 (user_regs_free): Delete function.
1917 (_initialize_user_regs): Update register_gdbarch_data call.
1918
7cf6e574
DJ
19192003-07-31 Daniel Jacobowitz <drow@mvista.com>
1920
1921 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1922
c48a845b
MS
19232003-07-30 Michael Snyder <msnyder@redhat.com>
1924
4e7d7511 1925 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1926 * infcall.c (call_function_by_hand): Pass struct_addr to
1927 value_being_returned.
1928 * infcmd.c (print_return_value): Pass zero as struct_addr.
1929 * values.c (value_being_returned): If struct_addr is passed,
1930 use it instead of trying to recover it from the inferior.
1931
f0d8db19
KB
19322003-07-30 Kevin Buettner <kevinb@redhat.com>
1933
1934 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1935 the prologue analyzer won't need to attempt to extract the pc
1936 value from the woefully incomplete dummy frame.
1937 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1938 possible. Disable code which modifies the frame.
1939
e5c113a1
AC
19402003-07-28 Andrew Cagney <cagney@redhat.com>
1941
1942 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1943 to level 2.
1944 (annotate_breakpoints_table, annotate_record): Ditto.
1945 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1946 (annotate_field_name_end, annotate_field_value): Ditto.
1947 (annotate_field_end, annotate_frame_source_begin): Ditto.
1948 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1949 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1950 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1951 (annotate_frame_address_end, annotate_frame_address): Ditto.
1952 (annotate_frame_args, annotate_frame_end): Ditto.
1953 (annotate_frame_where, annotate_arg_begin): Ditto.
1954 (annotate_arg_name_end, annotate_arg_value): Ditto.
1955 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1956 (annotate_function_call, annotate_signal_name): Ditto.
1957 (annotate_signal_string, annotate_signal_name_end): Ditto.
1958 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1959 (annotate_value_begin, annotate_value_history_value): Ditto.
1960 (annotate_value_history_end, annotate_value_end): Ditto.
1961 (annotate_display_begin, annotate_display_number_end): Ditto.
1962 (annotate_display_format, annotate_display_expression): Ditto.
1963 (annotate_display_expression_end, annotate_display_value): Ditto.
1964 (annotate_display_end, annotate_array_section_begin): Ditto.
1965 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1966 (annotate_elt, annotate_array_section_end): Ditto.
1967
bb1db049
AC
19682003-07-28 Andrew Cagney <cagney@redhat.com>
1969
1970 * regcache.c (struct regcache_descr): Update comments on
1971 nr_raw_registers.
1972 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1973 sizeof_raw_register_valid_p.
1974 (init_regcache_descr): Set nr_raw_registers and
1975 sizeof_raw_register_valid_p before calling
1976 init_legacy_regcache_descr.
1977
20e6603c
AC
19782003-07-28 Andrew Cagney <cagney@redhat.com>
1979
1980 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1981 MOD NUM_REGS.
1982
db742940
DJ
19832003-07-28 Daniel Jacobowitz <drow@mvista.com>
1984
1985 * thread.c (info_threads_command): Use get_selected_frame ().
1986 Check that there is at least one non-sentinel frame.
1987
ce7f4371
SC
19882003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1989
1990 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1991 (m68hc11_pop_frame): Remove.
1992 (m68hc11_frame_saved_pc): Remove.
1993 (m68hc11_frame_chain): Remove.
1994 (m68hc11_frame_init_saved_regs): Remove.
1995 (m68hc11_init_extra_frame_info): Remove.
1996 (m68hc11_store_struct_return): Remove.
1997 (m68hc11_saved_pc_after_call): Remove.
1998
1ea653ae
SC
19992003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2000
2001 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2002 frame unwind information.
2003 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2004 and adapted for frame unwinding.
2005 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2006 (m68hc11_unwind_pc): New function.
2007 (m68hc11_frame_unwind_cache): New function to analyze frames.
2008 (m68hc11_frame_this_id): New function to create new frame struct.
2009 (m68hc11_frame_prev_register): New function to unwind a register from
2010 the frame.
2011 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2012 (m68hc11_frame_p): New function for the above.
2013 (m68hc11_frame_base_address): New function to return fp of frame.
2014 (m68hc11_frame_args_address): Update for frame.
2015 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2016 (m68hc11_unwind_sp): New function.
2017 (m68hc11_unwind_dummy_id): New function.
2018 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2019 calls.
2020
c8a7f6ac
SC
20212003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2022
2023 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2024 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2025 when we are beyond the current pc.
2026
3dc990bf
SC
20272003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2028
2029 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2030 from m68hc11_push_arguments.
2031 (m68hc11_push_arguments): Remove.
2032 (m68hc11_push_return_address): Remove.
2033 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2034 handlers; remove deprecated_extra_stack_alignment_needed.
2035
222e5d1d
AC
20362003-07-27 Andrew Cagney <cagney@redhat.com>
2037
2038 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2039 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2040 REAL_PC and not the pointer.
2041 * hppa-hpux-tdep.c: Include frame.h
2042
a7e9a47e
AC
20432003-07-27 Andrew Cagney <cagney@redhat.com>
2044
2045 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2046 GDB_MULTI_ACH_PARTIAL.
2047
7e3dd49e
AC
20482003-07-27 Andrew Cagney <cagney@redhat.com>
2049
2050 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2051 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2052 operator at start and not end of line.
2053 (decode_prologue): Ditto.
2054 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2055 frame_unwind_register_unsigned instead of
2056 frame_unwind_unsigned_register.
2057 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2058 read_register.
2059 (m32r_push_dummy_call): Use register_size instead of
2060 REGISTER_RAW_SIZE.
2061 (m32r_frame_sniffer): Replace m32r_frame_p.
2062 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2063 * m32r-rom.c (report_transfer_performance): Delete extern
2064 declaration.
2065 (m32r_load, m32r_upload_command): Use print_transfer_performance
2066 instead of report_transfer_performance.
2067 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2068 / add_show_from_set.
2069
0880807f
AC
20702003-07-26 Andrew Cagney <cagney@redhat.com>
2071
2072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2073 store_return_value and extract_struct_value_address.
2074
64ae9269
DJ
20752003-07-26 Daniel Jacobowitz <drow@mvista.com>
2076
2077 PR c++/1267
2078 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2079 NULL, default to the section containing PC.
2080
e286caf2
SC
20812003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2082
2083 * NEWS: Mention "regs" deprecated for m68hc11 too.
2084
2085 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2086 (m68hc11_print_register): New function to print out one register.
2087 (m68hc11_print_registers_info): New function to print registers.
2088 (show_regs): Deprecate and use the above.
2089 (m68hc11_gdbarch_init): Install the print_registers_info.
2090
705b278b
JJ
20912003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2092
2093 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2094 that we have a SIGTRAP before returning non-zero.
2095
63cd4198
EZ
20962003-07-23 Michal Ludvig <mludvig@suse.cz>
2097 Elena Zannoni <ezannoni@redhat.com>
2098
2099 * linespec.c (decode_line_2): Avoid crash if
2100 find_function_start_sal() returns empty record.
2101
6926787d
AS
21022003-07-23 Andreas Schwab <schwab@suse.de>
2103
2104 * ia64-tdep.c (ia64_print_insn): New function.
2105 (ia64_gdbarch_init): Set print_insn to it.
2106 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2107 deprecated_tm_print_insn_info.
2108
708cc1b6
MS
21092003-07-22 Michael Snyder <msnyder@redhat.com>
2110
2111 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2112 handle 8-bit returns (long long).
2113 (h8300h_extract_return_value): Ditto.
2114 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2115
aebd7893
AC
21162003-07-22 Andrew Cagney <cagney@redhat.com>
2117
2118 * gdbarch.c Include "gdb_obstack.h".
2119 (struct gdbarch): Add an "obstack".
2120 (alloc_gdbarch_data): Allocate the gdbarch data using
2121 GDBARCH_OBSTACK_CALLOC.
2122 (free_gdbarch_data): Delete function.
2123 (gdbarch_obstack_zalloc): New function.
2124 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2125 Assert that the architecture is not initialized.
2126 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2127 vector from the obstack.
2128 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2129 architecture obstack.
2130 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2131 (set_gdbarch_data): Assert that the data is not initialized.
2132 (struct gdbarch_data): Delete member "free".
2133 (register_gdbarch_data): Do not initialize "free".
2134 * gdbarch.h, gdbarch.c: Re-generate.
2135
153721e6
AC
21362003-07-22 Andrew Cagney <cagney@redhat.com>
2137
2138 * configure.in (build_warnings): Add -Wformat-nonliteral.
2139 * configure: Re-generate.
2140
c193f044 21412003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2142
2143 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2144
c3228f12
EZ
21452003-07-22 Elena Zannoni <ezannoni@redhat.com>
2146
2147 * findvar.c (read_var_value): Remove case for thread local storage
2148 variables. It is now entirely handled by the dwarf2 location
2149 expression code.
2150 * printcmd.c (address_info): Ditto.
2151 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2152 enumeration value.
2153 (struct symbol): Remove objfile field, which was used by
2154 LOC_THREAD_LOCAL_STATIC only.
2155 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2156 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2157 usage of objfile pointer.
2158 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2159 thread local variables.
2160 Add include of objfiles.h.
2161 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2162 storage variables.
2163 * Makefile.in (dwarf2loc.o): Update dependencies.
2164
aef9bcd2
AC
21652003-07-22 Andrew Cagney <cagney@redhat.com>
2166
2167 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2168 get_frame_base.
2169 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2170 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2171 (struct value): Add opaque declaration.
2172 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2173
d95a8903
AC
21742003-07-21 Andrew Cagney <cagney@redhat.com>
2175
2176 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2177 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2178
4db73d49
SC
21792003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2180
2181 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2182 regcache_cooked_read_unsigned instead of read_register.
2183 (m68hc11_saved_pc_after_call): Likewise.
2184 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2185 instead of write_register.
2186 (m68hc11_register_type): New function.
2187 (m68hc11_register_virtual_type): Remove.
2188 (m68hc11_store_return_value): Convert to use the regcache.
2189 (m68hc11_extract_struct_value_address): Likewise.
2190 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2191 m68hc11_register_type; undeprecate store_return_value and
2192 extract_struct_value_address.
2193
ef2b8fcd
SC
21942003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2195
2196 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2197 and translate to use regcache.
2198 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2199
625b0b97
AC
22002003-07-18 Andrew Cagney <cagney@redhat.com>
2201
2202 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2203 * gdbarch.h, gdbarch.c: Re-generate.
2204 * i386-tdep.c (i386_gdbarch_init): Do not set
2205 DWARF2_BUILD_FRAME_INFO.
2206 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2207 unconditionally.
2208 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2209 DWARF2_BUILD_FRAME_INFO.
2210
22b0d388
AC
22112003-07-18 Andrew Cagney <cagney@redhat.com>
2212
2213 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2214 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2215
1ce5d6dd
AC
22162003-07-18 Andrew Cagney <cagney@redhat.com>
2217
2218 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2219 frame_unwind_address_in_block, instead of frame_pc_unwind.
2220 (dwarf2_frame_cache): Ditto.
2221
e6e5e94c
AC
22222003-07-18 Andrew Cagney <cagney@redhat.com>
2223
2224 * user-regs.h (struct gdbarch): Declare opaque.
2225 * ui-out.h (struct ui_file): Declare opaque.
2226 * dwarf2-frame.h (struct frame_info): Declare opaque.
2227
5483d879
KW
22282003-07-18 Kris Warkentin <kewarken@qnx.com>
2229
2230 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2231 #include "...".
2232 (procfs_meminfo): Change strerror to safe_strerror.
2233 (procfs_can_run): Remove K&R badness.
2234
278a7cf7
MS
22352003-07-17 Michael Snyder <msnyder@redhat.com>
2236
2237 * remote-sim.c: Comment typo fix.
2238
606e3b82
AC
22392003-07-17 Andrew Cagney <cagney@redhat.com>
2240
2241 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2242 configure.
2243 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2244 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2245 GDB_MULTI_ARCH_PARTIAL.
2246
c43af07c
EZ
22472003-07-17 Elena Zannoni <ezannoni@redhat.com>
2248
2249 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2250 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2251 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2252
3b85b0f1
TR
22532003-07-16 Theodore A. Roth <troth@openavr.org>
2254
2255 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2256 found.
2257 (avr_frame_unwind_cache): Don't unwind FP for main.
2258 Update a comment.
2259 Save the computed prev_sp.
2260 (avr_saved_regs_unwinder): Remove function.
2261 (avr_frame_prev_register): Use PC unwind logic from
2262 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2263
336d1bba
AC
22642003-07-16 Andrew Cagney <cagney@redhat.com>
2265
2266 * frame-base.h (frame_base_p_ftype): Delete definition.
2267 (frame_base_append_predicate): Delete declaration.
2268 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2269 (frame_unwind_append_predicate): Delete declaration.
2270 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2271 (append_predicate): Delete parameter "p".
2272 (frame_unwind_append_predicate): Delete function.
2273 (frame_unwind_append_sniffer): Update call to append_predicate.
2274 (frame_unwind_free): Delete function.
2275 (_initialize_frame_unwind): Pass NULL as "free" to
2276 register_gdbarch_data.
2277 (frame_unwind_init): Append the dummy_frame_sniffer.
2278 (frame_unwind_find_by_frame): Simplify.
2279 * frame-base.c (struct frame_base_table): Delete field "p".
2280 (append_predicate): Delete parameter "p".
2281 (frame_base_append_predicate): Delete function.
2282 (frame_base_append_sniffer): Update call to append_predicate.
2283 (frame_base_free): Delete function.
2284 (frame_base_find_by_frame): Simplify.
2285 (_initialize_frame_base): Pass NULL as "free" to
2286 register_gdbarch_data.
2287 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2288 (x86_64_sigtramp_frame_sniffer): Replace
2289 "x86_64_sigtramp_frame_p".
2290 (x86_64_init_abi): Set the frame unwind sniffers.
2291 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2292 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2293 (m68k_gdbarch_init): Set the frame unwind sniffers.
2294 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2295 "i386_sigtramp_frame_p".
2296 (i386_frame_sniffer): Replace "i386_frame_p".
2297 (i386_gdbarch_init): Set the frame unwind sniffers.
2298 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2299 (avr_gdbarch_init): Set the frame unwind sniffers.
2300 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2301 "alpha_sigtramp_frame_p"
2302 (alpha_heuristic_frame_sniffer): Replace
2303 "alpha_heuristic_frame_p".
2304 (alpha_gdbarch_init): Set the frame unwind sniffers.
2305 (alpha_dwarf2_init_abi): Ditto.
2306 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2307 "alpha_debug_frame_p".
2308 (alpha_mdebug_frame_base_sniffer): Replace
2309 "alpha_mdebug_frame_base_p".
2310 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2311 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2312 (d10v_gdbarch_init): Set the frame unwind sniffer.
2313 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2314 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2315 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2316 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2317 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2318 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2319
48db5a3c
CV
23202003-07-16 Michael Snyder <msnyder@redhat.com>
2321
2322 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2323 should go thru sh_dsp_register_sim_regno, else the dsp regs
2324 will not get the right values.
2325
23262003-07-16 Corinna Vinschen <vinschen@redhat.com>
2327
2328 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2329 deprecated_store_floating by call to store_typed_floating.
2330 (sh_sh4_register_convert_to_raw): Substitute call to
2331 deprecated_extract_floating by call to extract_typed_floating.
2332
23332003-07-16 Corinna Vinschen <vinschen@redhat.com>
2334
2335 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2336
23372003-07-16 Corinna Vinschen <vinschen@redhat.com>
2338
2339 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2340 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2341 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2342 as possible.
2343 (do_pseudo_register): Remove.
2344 (sh_push_dummy_code): New function.
2345 (sh64_store_struct_return): Rename from sh_store_struct_return.
2346 Only called for sh64 now.
2347 (sh_extract_struct_value_address): Regcache'ify.
2348 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2349 and accomodate new tasks.
2350 (sh64_push_return_address): Rename from sh_push_return_address.
2351 Only called for sh64 now.
2352 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2353 Regcache'ify.
2354 (sh3e_sh4_extract_return_value): Regcache'ify.
2355 (sh_default_store_return_value): Ditto.
2356 (sh3e_sh4_store_return_value): Ditto.
2357 (sh_default_register_byte): Remove.
2358 (sh_sh4_register_byte): Remove.
2359 (sh_default_register_raw_size): Remove.
2360 (sh_sh4_register_raw_size): Remove.
2361 (sh_register_virtual_size): Remove.
2362 (sh_sh3e_register_virtual_type): Remove.
2363 (sh_sh3e_register_type): New function.
2364 (sh_sh4_register_virtual_type): Remove.
2365 (sh_sh4_register_type): New function.
2366 (sh_default_register_virtual_type): Remove.
2367 (sh_default_register_type): New function.
2368 (do_fv_register_info): Add parameters to accomodate call from
2369 sh_print_registers_info.
2370 (do_dr_register_info): Ditto.
2371 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2372 Add parameters to accomodate call from sh_print_registers_info.
2373 (sh_do_fp_register): Ditto.
2374 (sh64_do_pseudo_register): Call do_dr_register_info,
2375 do_fv_register_info and sh_do_fp_register with default parameters.
2376 (sh_do_register): Add parameters to accomodate call from
2377 sh_print_registers_info.
2378 (sh_print_register): Ditto.
2379 (sh_print_registers_info): Rename from sh_do_registers_info.
2380 Add parameters to be used as gdbarch_print_registers_info
2381 implementation. Accomodate removed do_pseudo_register function
2382 pointer.
2383 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2384 function pointer. Call sh_print_register with default parameters.
2385 (sh64_do_registers_info): Call sh_print_registers_info instead of
2386 sh_do_registers_info.
2387 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2388 detection of deprecated vs. non-deprecated functionality.
2389 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2390 function pointer assignments by direct function calls.
2391
e8a89fe2
AC
23922003-07-15 Andrew Cagney <cagney@redhat.com>
2393
2394 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2395 (frame_register_unwind, create_new_frame): Ditto.
2396 (legacy_get_prev_frame, get_frame_type): Ditto.
2397 (get_frame_base_address): Use frame_base_find_by_frame.
2398 (get_frame_locals_address): Use frame_base_find_by_frame.
2399 (get_frame_args_address): Use frame_base_find_by_frame.
2400 * frame-base.h (frame_base_sniffer_ftype): Declare.
2401 (frame_base_append_sniffer): Declare.
2402 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2403 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2404 (frame_base_append_sniffer): New function.
2405 (frame_base_append_predicate): Add a NULL sniffer.
2406 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2407 (struct frame_base_table): Add "sniffer".
2408 (frame_base_free): Free the "sniffer" table.
2409 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2410 (frame_unwind_append_sniffer): Declare.
2411 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2412 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2413 (struct frame_unwind_table): Add "sniffer", delete "middle".
2414 (append_predicate): Add "sniffer" parameter, append the sniffer.
2415 (frame_unwind_init): Update append_predicate call.
2416 (frame_unwind_append_sniffer): New function.
2417 (frame_unwind_append_predicate): Update append_predicate call.
2418 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2419
0714963c
AC
24202003-07-15 Andrew Cagney <cagney@redhat.com>
2421
2422 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2423 before code inhibiting repeated unwind attempts. Add to
2424 commentary on that test's problems.
2425 * blockframe.c (inside_main_func): Look for "main" in the minimal
2426 symbol table.
2427 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2428 identical.
2429
d9170e22
AC
24302003-07-15 Andrew Cagney <cagney@redhat.com>
2431
2432 * complaints.c (struct explanation): Define.
2433 (struct complaints): Change type of "explanation" to "struct
2434 explanation".
2435 (symfile_explanations): Convert to a "struct explanation" table.
2436 (vcomplaint): Update.
2437
eba29c8c
ML
24382003-07-15 Michal Ludvig <mludvig@suse.cz>
2439
2440 * x86-64-linux-nat.c (regmap): Removed.
2441 (supply_gregset, fill_gregset): Call
2442 x86_64_linux_(fill,supply)_gregset functions.
2443 * x86-64-linux-tdep.c (USER_*): New defines.
2444 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2445 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2446 New functions.
2447 (fetch_core_registers): Ditto.
2448 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2449 * x86-64-linux-tdep.h: New file.
2450 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2451 and core-regset.o.
2452 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2453
68cc0bfb
MK
24542003-07-13 Mark Kettenis <kettenis@gnu.org>
2455
88a115f7
MK
2456 * x86-64-tdep.c (x86_64_store_return_value): Use
2457 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2458
68cc0bfb
MK
2459 * configure.host: Add x86_64-*-freebsd*.
2460 * configure.tgt: Add x86_64-*-freebsd*.
2461 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2462 * amd64fbsd-nat.c: New file.
2463 * amd64fbsd-tdep.c: New file.
2464 * config/i386/nm-fbsd64.h: New file.
2465 * config/i386/fbsd64.mh: New file.
2466 * config/i386/fbsd64.mt: New file.
2467
138e7be5
MK
24682003-07-11 Mark Kettenis <kettenis@gnu.org>
2469
2470 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2471 `sc_regs_offset' and `sc_fpregs_offset'.
2472 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2473 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2474 (alpha_sigtramp_register_address): Rewrite to use new members of
2475 `struct gdbarch_tdep'.
2476 (alpha_gdbarch_init): Initialize new members of struct
2477 gdbarch_tdep'.
2478 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2479 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2480 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2481 (alphafbsd_pc_in_sigtramp): Implement.
2482 (alphafbsd_sigtramp_offset): New function.
2483 (alphafbsd_sigcontext_addr): New function.
2484 (alphafbsd_init_abi): Initialize signal trampoline related members
2485 of `struct gdbarch_tdep'.
2486 (_initialize_alphafbsd_tdep): Add prototype.
2487
95303a68
TR
24882003-07-11 Theodore A. Roth <troth@openavr.org>
2489
ba292e4c
TR
2490 * Makefile.in (install-only): Quote sed expression when generating
2491 transformed_name.
95303a68 2492
6896c0c7
RH
24932003-07-11 Richard Henderson <rth@redhat.com>
2494
2495 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2496 * dwarf2-frame.c: Include complaints.h.
2497 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2498 variable initialization; return NULL on error.
2499 (decode_frame_entry): New.
2500
8edd5d01
AC
25012003-07-11 Andrew Cagney <cagney@redhat.com>
2502
c4a09524
AC
2503 * frame.h (frame_address_in_block): Delete declaration.
2504 * blockframe.c (frame_address_in_block): Delete function.
2505 (get_frame_block): Use get_frame_address_in_block.
2506 (block_innermost_frame): Ditto.
2507 * stack.c (print_frame, backtrace_command_1): Ditto.
2508
8edd5d01
AC
2509 * frame.h (get_frame_address_in_block): Declare.
2510 (frame_unwind_address_in_block): Declare.
2511 * frame.c (frame_unwind_address_in_block): New function.
2512 (get_frame_address_in_block): New function.
2513
f7968451
AC
25142003-07-10 Andrew Cagney <cagney@redhat.com>
2515
2516 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2517 pre-default. Note: re-generate has no effect.
2518
ae99b398
AC
25192003-07-10 Andrew Cagney <cagney@redhat.com>
2520
2521 * gdbarch.sh: When a variable, but not a function, compare against
2522 0. Fix problem in previous patch.
2523 * gdbarch.c: Re-generate.
2524
956ac328
AC
25252003-07-10 Andrew Cagney <cagney@redhat.com>
2526
2527 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2528 functions against NULL, not 0.
2529 * gdbarch.c: Re-generate.
2530
287c3240
FF
25312003-07-10 Fred Fish <fnf@ninemoons.com>
2532
2533 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2534 null string instead of a null pointer.
2535 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2536
32f63c4b
MS
25372003-07-09 Michael Snyder <msnyder@redhat.com>
2538
2539 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2540
402ecd56
MK
25412003-07-09 Mark Kettenis <kettenis@gnu.org>
2542
2543 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2544 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2545 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2546 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2547 * x86-64-tdep.c: ... from here.
2548
c481dac7
AS
25492003-07-09 Andreas Schwab <schwab@suse.de>
2550
2551 * m68k-tdep.h (enum struct_return): Define.
2552 (struct gdbarch_tdep): Add struct_return.
2553 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2554 bytes are padded to the right, not to the left. Pass struct value
2555 address in register %a1, not on stack.
2556 (m68k_use_struct_convention): New function.
2557 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2558 struct_return in tdep to pcc_struct_return.
2559 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2560 reg_struct_return.
2561
64176fa3
JB
25622003-07-09 Joel Brobecker <brobecker@gnat.com>
2563
2564 * somread.c (som_symfile_offsets): Fix compilation error.
2565
96a4ee76
AC
25662003-07-09 Andrew Cagney <cagney@redhat.com>
2567
2568 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2569 Add comments about the checks.
2570
1517c6d1
AC
25712003-07-08 Andrew Cagney <cagney@redhat.com>
2572
2573 * Makefile.in: Make dependency section headers consistent.
2574 (config_h): Move to $BUILD headers section.
2575 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2576 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2577 (ada-exp.tab.c): Move to YACC/LEX section.
2578 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2579 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2580
dc5dd1eb
KW
25812003-07-08 Kris Warkentin <kewarken@qnx.com>
2582
2583 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2584 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2585 of strerror with safe_strerror, use ISO C function definitions,
2586 and replace instances of sprintf with snprintf.
dc5dd1eb 2587
612dde91
AC
25882003-07-07 Andrew Cagney <cagney@redhat.com>
2589
2590 * frame.c (get_prev_frame): Enable check for identical frames.
2591 Update comments. Update error messages.
2592
492c11d3
JB
25932003-07-07 Joel Brobecker <brobecker@gnat.com>
2594
2595 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2596
376a5a49
JB
25972003-07-07 Joel Brobecker <brobecker@gnat.com>
2598
2599 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2600 sort_symtab_syms, no longer necessary.
2601
22b4a9ad
JB
26022003-07-07 Joel Brobecker <brobecker@gnat.com>
2603
2604 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2605
5bbcb741
JB
26062003-07-07 Joel Brobecker <brobecker@gnat.com>
2607
2608 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2609 (mips_register_byte): Likewise.
2610
c139e7d9
DJ
26112003-07-07 Daniel Jacobowitz <drow@mvista.com>
2612
2613 * Makefile.in (sparc_tdep_h): New.
2614 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2615 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2616 * sparc-linux-nat.c: Include "sparc-tdep.h".
2617 * sparc-nat.c: Likewise.
2618 * sparc-tdep.c: Likewise.
2619 * sparc64nbsd-nat.c: Likewise.
2620 * sparcnbsd-nat.c: Likewise.
2621 * sparcnbsd-tdep.c: Likewise.
2622 * sparc-tdep.h: New file.
2623 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2624 and sparc_npc_regnum.
2625
fd8f87c5
DJ
26262003-07-07 Daniel Jacobowitz <drow@mvista.com>
2627
2628 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2629 (mips_linux_cannot_store_register): List supported instead of
2630 unsupported registers.
2631
13adf674
DJ
26322003-07-07 Daniel Jacobowitz <drow@mvista.com>
2633
2634 * disasm.c (dump_insns): Separate instructions from addresses.
2635
8de307e0
AS
26362003-07-07 Andreas Schwab <schwab@suse.de>
2637
2638 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2639 dependencies.
2640 * m68k-tdep.c (NUM_FREGS): Delete.
2641 (SIG_PC_FP_OFFSET): Delete.
2642 (TARGET_M68K): Delete.
2643 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2644 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2645 P_MOVEL_SP, P_MOVEML_SP): Define.
2646 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2647 P_TRAP): Delete.
2648 (m68k_register_raw_size): Delete.
2649 (m68k_register_virtual_size): Delete.
2650 (m68k_register_type): Renamed from m68k_register_virtual_type and
2651 add gdbarch argument.
2652 (m68k_store_struct_return): Delete.
2653 (m68k_deprecated_extract_return_value): Delete.
2654 (m68k_deprecated_extract_struct_value_address): Delete.
2655 (m68k_frame_chain): Delete.
2656 (m68k_frame_saved_pc): Delete.
2657 (m68k_fix_call_dummy): Delete.
2658 (m68k_push_dummy_frame): Delete.
2659 (m68k_pop_frame): Delete.
2660 (m68k_extract_return_value): New function.
2661 (m68k_store_return_value): Rewrite using regcache.
2662 (m68k_extract_struct_value_address): Rewrite using regcache.
2663 (m68k_push_dummy_call): New function.
2664 (struct m68k_frame_cache): Define.
2665 (m68k_alloc_frame_cache): New function.
2666 (m68k_analyze_frame_setup): New function.
2667 (m68k_analyze_register_saves): New function.
2668 (m68k_analyze_prologue): New function.
2669 (m68k_skip_prologue): Rewrite using above functions.
2670 (m68k_unwind_pc): New function.
2671 (m68k_frame_cache): New function.
2672 (m68k_frame_this_id): New function.
2673 (m68k_frame_prev_register): New function.
2674 (m68k_frame_unwind): New variable.
2675 (m68k_frame_p): New function.
2676 (m68k_sigtramp_frame_cache): New function.
2677 (m68k_sigtramp_frame_this_id): New function.
2678 (m68k_sigtramp_frame_prev_register): New function.
2679 (m68k_sigtramp_frame_unwind): New variable.
2680 (m68k_sigtramp_frame_p): New function.
2681 (m68k_frame_base_address): New function.
2682 (m68k_frame_base): New function.
2683 (m68k_unwind_dummy_id): New function.
2684 (fill_gregset): Use regcache_collect.
2685 (fill_fpregset): Likewise.
2686 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2687 defined.
2688 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2689 deprecated_init_frame_pc, deprecated_store_struct_return,
2690 deprecated_extract_return_value, deprecated_store_return_value,
2691 deprecated_frame_chain, deprecated_frame_saved_pc,
2692 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2693 deprecated_register_virtual_size,
2694 deprecated_max_register_raw_size,
2695 deprecated_max_register_virtual_size,
2696 deprecated_register_virtual_type, deprecated_register_size,
2697 deprecated_register_byte, deprecated_register_bytes,
2698 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2699 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2700 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2701 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2702 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2703 deprecated_push_dummy_frame, deprecated_pop_frame,
2704 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2705 only if SYSCALL_TRAP is defined. Set extract_return_value,
2706 store_return_value, extract_struct_value_address, register_type,
2707 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2708 predicates.
2709 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2710 M68K_MAX_REGISTER_SIZE): Define.
2711 (struct m68k_sigtramp_info): Define.
2712 (struct gdbarch_tdep): Add get_sigtramp_info.
2713 * m68klinux-nat.c (fetch_register): Use register_size instead of
2714 REGISTER_RAW_SIZE. Don't put assignment in if.
2715 (store_register): Likewise.
2716 (fetch_inferior_registers): Likewise.
2717 (store_inferior_registers): Likewise.
2718 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2719 (m68k_linux_frame_saved_pc): Delete.
2720 (m68k_linux_sigcontext_reg_offset,
2721 m68k_linux_ucontext_reg_offset): Define.
2722 (m68k_linux_get_sigtramp_info): New function.
2723 (m68k_linux_extract_return_value): Rewrite using regcache.
2724 (m68k_linux_store_return_value): Likewise.
2725 (m68k_linux_extract_struct_value_address): Likewise.
2726 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2727 Don't set deprecated_frame_saved_pc,
2728 deprecated_extract_return_value, deprecated_store_return_value,
2729 deprecated_extract_struct_value_address. Set
2730 extract_return_value, store_return_value,
2731 extract_struct_value_address.
2732
eb8bc282
AC
27332003-07-07 Andrew Cagney <cagney@redhat.com>
2734
2735 * expprint.c: Include "user-regs.h" instead of "frame.h".
2736 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2737 frame_map_regnum_to_name.
2738 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2739 (frame_map_name_to_regnum): Simplify, call
2740 user_reg_map_name_to_regnum.
2741 (frame_map_regnum_to_name): Simplify, call
2742 user_reg_map_regnum_to_name.
2743 (frame_register_unwind): Update.
2744 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2745 (_initialize_frame_reg): Call user_reg_add_builtin.
2746 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2747 (value_of_register): Use value_of_user_reg.
2748 * eval.c (evaluate_subexp_standard): Update.
2749 * parse.c (write_dollar_variable): Update.
2750 * d10v-tdep.c (d10v_print_registers_info): Update.
2751 * infcmd.c (registers_info): Update.
2752 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2753 (builtin_regs_h): Delete macro.
2754 (user_regs_h): Define.
2755 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2756 (builtin-regs.o): Delete target.
2757 (user-regs.o): Specify dependencies.
2758 (expprint.o): Update dependencies.
2759 (findvar.o): Update dependencies.
2760 (frame.o): Update dependencies.
2761 (std-regs.o): Update dependencies.
2762
9f476a01
CF
27632003-07-06 Christopher Faylor <cgf@redhat.com>
2764
2765 * win32-nat.c (solib_symbols_add): Use one variable for all section
2766 address stuff. Pass variable rather than address of variable to
2767 safe_symbol_file_add.
2768
a731b831
AS
27692003-07-06 Andreas Schwab <schwab@suse.de>
2770
2771 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2772
9f83329d
JB
27732003-07-04 Joel Brobecker <brobecker@gnat.com>
2774
2775 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2776
27e28cc5
KW
27772003-07-04 Kris Warkentin <kewarken@qnx.com>
2778
2779 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2780
27812003-07-04 Kris Warkentin <kewarken@qnx.com>
2782
2783 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2784 * config/i386/nto.mh: New file.
2785 * config/i386/nm-nto.h: New file.
2786 * configure.host: Add i[3456]86-*-nto*.
2787
100f2e98
JB
27882003-07-03 Joel Brobecker <brobecker@gnat.com>
2789
2790 * remote-vx.c (vx_add_symbols): Fix compilation error.
2791
e23457df
AC
27922003-07-03 Andrew Cagney <cagney@redhat.com>
2793
2794 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2795 * gdbarch.h, gdbarch.c: Re-generate.
2796 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2797 (legacy_register_name): Declare.
2798 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2799 (REGISTER_NAME): Define.
2800 * sparc-tdep.c (legacy_register_name): New function.
2801 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2802 (REGISTER_NAME): Define.
2803 (hppa64_register_name): Declare.
2804 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2805 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2806 (hppa64_register_name): New function.
2807 (hppa_register_name): New function.
2808 * arch-utils.c (legacy_register_name): Delete.
2809 * arch-utils.h (legacy_register_name): Delete.
2810
38caaeec
DJ
28112003-07-03 Daniel Jacobowitz <drow@mvista.com>
2812
2813 * cli/cli-interp.c (cli_interpreter_resume): Update the
2814 cli_uiout's stream to gdb_stdout.
2815
dadd712e
AC
28162003-07-03 Andrew Cagney <cagney@redhat.com>
2817
2818 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2819 predicate.
2820 * gdbarch.h, gdbarch.c: Re-generate.
2821 * regcache.c (init_regcache_descr): Use legacy code when either
2822 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2823
c7f1390e
DJ
28242003-07-02 Daniel Jacobowitz <drow@mvista.com>
2825
2826 * NEWS: Move "set logging" entry into GDB 6.0 section.
2827
4bc8c588
JB
28282003-07-02 Jim Blandy <jimb@redhat.com>
2829
a9dd42f1
JB
2830 * s390-tdep.c (struct frame_extra_info): new member:
2831 'stack_bought_valid'.
2832 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2833 initialize fextra_info->stack_bought.
2834 (s390_frameless_function_invocation): Don't trust the value of
2835 fextra_info_ptr->stack_bought unless
2836 fextra_info->stack_bought_valid is set.
2837
4bc8c588
JB
2838 New S390 prologue analyzer.
2839 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2840 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2841 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2842 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2843 compute_x_addr, s390_on_stack, s390_store,
2844 s390_get_signal_frame_info): New functions.
2845 (S390_NUM_SPILL_SLOTS): New macro.
2846 (s390_get_frame_info): Rewritten.
2847 (is_arg_reg): Deleted.
2848
2849 Break out the decoding of S/390 instructions into separate
2850 functions, to make it more legible, and easier to check
2851 against the spec.
2852 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2853 is_rx, is_rxe): New functions.
2854 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2855 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2856 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2857 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2858 enums for opcode values. (Is this an improvement?)
2859
fd13a04a
AC
28602003-07-02 Andrew Cagney <cagney@redhat.com>
2861
2862 * i386-tdep.c: Revert change committed as part of trad-frame code
2863 below.
2864
3f8091c1
DJ
28652003-07-02 Daniel Jacobowitz <drow@mvista.com>
2866
2867 * breakpoint.c (insert_catchpoint): Make static.
2868
8dd5115e
AS
28692003-07-02 Andreas Schwab <schwab@suse.de>
2870
2871 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2872 former ia64_push_arguments and ia64_push_return_address, and use
2873 regcache functions instead of read/write_register.
2874 (ia64_gdbarch_init): Set push_dummy_call instead of
2875 deprecated_push_arguments and deprecated_push_return_address.
2876
a2229c23
AJ
28772003-07-01 Andreas Jaeger <aj@suse.de>
2878
2879 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2880 before the call.
2881 Set %rax only to number of SSE registers used.
2882
3b3850e8
AC
28832003-07-01 Andrew Cagney <cagney@redhat.com>
2884
2885 * trad-frame.h: Update comments, a -1 .addr is reserved.
2886 (trad_frame_value_p, trad_frame_addr_p): Declare.
2887 (trad_frame_reg_p): Declare.
2888 (trad_frame_set_value): Rename trad_frame_register_value.
2889 (trad_frame_set_unknown): Declare.
2890 * trad-frame.c (trad_frame_realreg_p): New function.
2891 (trad_frame_addr_p, trad_frame_value_p): New function.
2892 (trad_frame_set_unknown): New function.
2893 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2894 (trad_frame_prev_register): Use trad_frame_realreg_p,
2895 trad_frame_addr_p and trad_frame_value_p.
2896 (trad_frame_set_value): Rename trad_frame_register_value.
2897 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2898 and trad_frame_set_value.
a2229c23 2899
4d819d0e
JB
29002003-06-30 Jim Blandy <jimb@redhat.com>
2901
2902 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2903 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2904 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2905 for 16 registers, and then 32 more bytes.
2906 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2907 New macros.
2908 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2909 Move up in the file, since it's now used by is_simple_arg.
2910 (is_simple_arg): Don't assume registers are four bytes long.
2911 Exclude all double arguments. Extended floats are not simple
2912 args.
2913 (is_power_of_two): New function.
2914 (pass_by_copy_ref): Call is_power_of_two, and check that the
2915 length fits in a register, rather than listing all the acceptable
2916 sizes. Extended floats are not passed by reference.
2917 (s390_push_arguments): Don't assume registers are four bytes long.
2918 Reserve an argument register to point to the buffer for structures
2919 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2920 S390_STACK_FRAME_OVERHEAD.
2921
1ad828f1
AS
29222003-06-30 Andreas Schwab <schwab@suse.de>
2923
2924 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2925 format error message.
2926
39b00981
JB
29272003-06-30 Joel Brobecker <brobecker@gnat.com>
2928
2929 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2930
b2a7f303
DC
29312003-06-30 David Carlton <carlton@kealia.com>
2932
2933 Band-aid for PR c++/1245.
2934 * Makefile.in (cp-support.o): Depend on complaints_h.
2935 * cp-support.c: Include complaints.h. Add declaration for
2936 find_last_component.
2937 (cp_find_first_component): Separate code into
2938 cp_find_first_component_aux.
2939 (cp_find_first_component_aux): Call demangled_name_complaint.
2940 (demangled_name_complaint): New.
2941
a257b5bb
AC
29422003-06-30 Andrew Cagney <cagney@redhat.com>
2943
2944 * remote.c (remote_write_bytes): Explicitly compute and then use
2945 the payload size. Update comments to reflect. Fixes problem of
2946 GDB not sending small packets as found by Fred Fish.
2947
0a2cfde4
AC
29482003-06-30 Andrew Cagney <cagney@redhat.com>
2949
2950 * remote.c (remote_async_wait): Fix -Wformat problem.
2951
3fcb8548
AC
29522003-06-29 Andrew Cagney <cagney@redhat.com>
2953
2954 * remote.c (remote_wait): Call error, and not warning, when the
2955 packet is corrupt.
2956 (remote_async_wait): Ditto.
2957
9f9970a3
DJ
29582003-06-29 Daniel Jacobowitz <drow@mvista.com>
2959
2960 * sparc-tdep.c (sparc_y_regnum): Make external again.
2961
83a8ccca
DJ
29622003-06-29 Daniel Jacobowitz <drow@mvista.com>
2963
2964 * cli/cli-logging.c (pop_output_files): Add void to function
2965 definition.
2966
d2cf594a
AC
29672003-06-29 Andrew Cagney <cagney@redhat.com>
2968
2969 * frame.c (frame_register_unwind): Use unsigned char when dumping
2970 the buffer contents.
2971
0fac0b41
DJ
29722003-06-28 Daniel Jacobowitz <drow@mvista.com>
2973
2974 * cli/cli-logging.c: New file.
2975 * cli-out.c (struct ui_out_data): Add original_stream.
2976 (cli_redirect): New function.
2977 (cli_ui_out_impl): Add cli_redirect.
2978 (cli_out_new): Initialize original_stream.
2979 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2980 (uo_redirect, ui_out_redirect): New.
2981 * ui-out.h (struct ui_out_impl): Add redirect member.
2982 (redirect_ftype): New.
2983 (ui_out_redirect): Add prototype.
2984 * Makefile.in: Add rules for cli-logging.c.
2985 * NEWS: Mention "set logging".
2986
88a07d7c
EZ
29872003-06-27 Elena Zannoni <ezannoni@redhat.com>
2988
2989 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2990
4eb58876
AC
29912003-06-27 Andrew Cagney <cagney@redhat.com>
2992
2993 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2994 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2995 * avr-tdep.c (avr_call_dummy_address): Delete function.
2996 (avr_gdbarch_init): Do not set call_dummy_address.
2997
1549f619
EZ
29982003-06-27 Elena Zannoni <ezannoni@redhat.com>
2999
3000 * symfile.c (syms_from_objfile): Move variables to inner block.
3001 Move the checks for the non-mainline case a bit earlier to avoid
3002 doing some useless computations.
3003
3cb3398d
EZ
30042003-06-27 Elena Zannoni <ezannoni@redhat.com>
3005
3006 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3007
3799ccc6
EZ
30082003-06-26 Elena Zannoni <ezannoni@redhat.com>
3009
3010 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3011 sections.
3012
ce1f6491
MC
30132003-06-26 Michael Chastain <mec@shout.net>
3014
3015 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3016 gdb/testsuite/gdb.c++/pr-1210.exp.
3017
d958dfd0
AC
30182003-06-26 Andrew Cagney <cagney@redhat.com>
3019
3020 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3021 altivec_expression.h and altivec_registers.h.
3022
d31431ed
AC
30232003-06-26 Andrew Cagney <cagney@redhat.com>
3024
3025 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3026 info->mach when MIPS16. Patch suggested by Fred Fish.
3027
714b1282
AC
30282003-06-26 Andrew Cagney <cagney@redhat.com>
3029
3030 * utils.c (internal_vproblem): Print the problem to a reason
3031 buffer and then pass to query. Make the msg variable more local.
3032
42efa47a
AC
30332003-06-26 Andrew Cagney <cagney@redhat.com>
3034
3035 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3036 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3037 * gdbarch.h, gdbarch.c: Re-generate.
3038 * frame-base.c (default_frame_args_address): Update. Use
3039 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3040 not available.
3041 (default_frame_locals_address): Ditto for
3042 DEPRECATED_FRAME_LOCALS_ADDRESS.
3043 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3044 (vax_frame_num_args): Update.
3045 (vax_gdbarch_init): Update.
3046 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3047 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3048 * mcore-tdep.c (mcore_gdbarch_init): Update.
3049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3050 * ia64-tdep.c (ia64_gdbarch_init): Update.
3051 * symtab.h (address_class): Update comments.
3052 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3053 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3054 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3055 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3056 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3057 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3058 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3059 * alpha-mdebug-tdep.c: Update.
3060 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3061
8ffd9b1b
AJ
30622003-06-26 Andreas Jaeger <aj@suse.de>
3063
3064 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3065 of SSE registers so that varargs functions work. Rework handling
3066 of passing arguments on the stack.
3067 (x86_64_store_return_value): Return double and float values in SSE
3068 register.
3069
e8ac10a6
MC
30702003-06-24 Michael Chastain <mec@shout.net>
3071
3072 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3073 the "constructor breakpoints ignored" bug.
3074
986af8e6
DC
30752003-06-25 David Carlton <carlton@kealia.com>
3076
3077 * MAINTAINERS: Update e-mail address.
3078
d64558a5
JB
30792003-06-24 Jim Blandy <jimb@redhat.com>
3080
e538d2d7
JB
3081 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3082
02631ec0
JB
3083 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3084 function.
3085 (ppc_linux_init_abi): Register it as the
3086 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3087
e716d87a
JB
3088 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3089 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3090 method.
3091
d64558a5
JB
3092 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3093 (ppc64_standard_linkage_target): Use it.
3094
449a5da4
AC
30952003-06-23 Andrew Cagney <cagney@redhat.com>
3096
3097 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3098 for 0 "int0" and 4 "int32" sized registers.
3099 * gdbtypes.c (builtin_type_int0): Define.
3100 (build_gdbtypes): Initialize builtin_type_int0.
3101 * gdbtypes.h (builtin_type_int0): Declare.
3102
b2a02dda
SC
31032003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3104
3105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3106 as characters are unsigned.
3107
fba3138e
DJ
31082003-06-22 Daniel Jacobowitz <drow@mvista.com>
3109
3110 PR gdb/1179
3111 * dwarfread.c (struct_type): Skip static fields without crashing.
3112
f6c8180b
AC
31132003-06-22 Andrew Cagney <cagney@redhat.com>
3114
3115 GDB 6.0 branch created.
f2c06f52
AC
3116 * README: Update.
3117 * PROBLEMS: Update. Empty.
3118 * NEWS: Update.
f6c8180b 3119
ae822768
DJ
31202003-06-22 Daniel Jacobowitz <drow@mvista.com>
3121
3122 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3123 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3124
261de166
AC
31252003-06-22 Andrew Cagney <cagney@redhat.com>
3126
3127 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3128 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3129 Velikov.
3130
30e94205
DJ
31312003-06-22 Daniel Jacobowitz <drow@mvista.com>
3132
3133 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3134 compilers.
3135
9e14d721
DJ
31362003-06-21 Daniel Jacobowitz <drow@mvista.com>
3137
3138 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3139 argument of val_print.
3140 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3141 to the address argument of baseclass_offset or target_read_memory.
3142 Do add it to the argument of cp_print_value_fields.
3143
a4b8ebc8
AC
31442003-06-21 Andrew Cagney <cagney@redhat.com>
3145
3146 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3147 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3148 instead of 0..NUM_REGS.
3149 (mips_register_reggroup_p): New function.
3150 (mips_pseudo_register_write): New function.
3151 (mips_pseudo_register_read): New function.
3152 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3153 based on the register's type.
3154 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3155 cooked.
3156 (mips_get_saved_register): Simplify. Assert that REGNO is a
3157 pseudo / cooked.
3158 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3159 (mips_register_type): Replace mips_register_virtual_type. Map
3160 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3161 when available.
3162 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3163 that the register is cooked / virtual.
3164 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3165 Only get the extra info when needed.
3166 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3167 (mips32_heuristic_proc_desc): Fetch the cooked register.
3168 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3169 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3170 (mips_print_register): Use gdbarch_register_type, instead of
3171 REGISTER_VIRTUAL_TYPE.
3172 (print_gp_register_row): Use gdbarch_register_type, instead of
3173 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3174 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3175 Print the pseudo / cooked registers.
3176 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3177 Print the pseudo / cooked registers.
3178 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3179 REG_NUM is pseudo / cooked.
3180 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3181 (mips_n32n64_xfer_return_value): Ditto.
3182 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3183 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3184 (mips_register_sim_regno): New function.
3185 (mips_gdbarch_init): Set deprecated_register_byte,
3186 register_group_p, pseudo_register_write, pseudo_register_read,
3187 register_sim_regno, and num_pseudo_regs. Set register_type,
3188 instead of register_virtual_type.
3189 * Makefile.in (mips-tdep.o): Update dependencies.
3190 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3191 REGISTER_VIRTUAL_TYPE.
3192 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3193 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3194 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3195 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3196 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3197
325ed089
DJ
31982003-06-21 Daniel Jacobowitz <drow@mvista.com>
3199
3200 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3201 * cli/cli-cmds.c: Include "gdb_vfork.h".
3202 (shell_escape): Use vfork.
3203
f0e7d0e8
AC
32042003-06-21 Andrew Cagney <cagney@redhat.com>
3205
c57bb9fa
AC
3206 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3207 32 bit floating-point register saves.
3208
6e51443a
AC
3209 * frame.h (deprecated_unwind_get_saved_register): Delete.
3210 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3211 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3212 and deprecated_get_next_frame_hack instead of
3213 deprecated_unwind_get_saved_register.
3214
ed183c7c
AC
3215 * mips-tdep.c (mips_dump_tdep): Do not print
3216 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3217
f0e7d0e8
AC
3218 * frame.c (get_frame_register): New function.
3219 (frame_unwind_register_signed): New function.
3220 (get_frame_register_signed): New function.
3221 (frame_unwind_register_unsigned): New function.
3222 (get_frame_register_unsigned): New function.
3223 * frame.h: Add comments on naming schema.
3224 (get_frame_register, frame_unwind_register_signed): Declare.
3225 (get_frame_register_signed, get_frame_register_signed): Declare.
3226 (frame_unwind_register_unsigned): Declare.
3227 (get_frame_register_unsigned): Declare.
3228
2224d941
TR
32292003-06-20 Theodore A. Roth <troth@openavr.org>
3230
3231 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3232
8619218d
TR
32332003-06-20 Theodore A. Roth <troth@openavr.org>
3234
3235 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3236 (avr_read_sp): Ditto.
3237
0b1b50c0
DJ
32382003-06-20 Daniel Jacobowitz <drow@mvista.com>
3239
3240 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3241 * config/arm/nm-linux.h: Likewise.
3242 * config/arm/tm-linux.h: Likewise.
3243 * config/ia64/nm-linux.h: Likewise.
3244 * config/ia64/tm-ia64.h: Likewise.
3245 * config/s390/tm-linux.h: Likewise.
3246 * config/s390/tm-s390.h: Likewise.
3247 * s390-nat.c: Likewise.
3248 * s390-tdep.c: Likewise.
3249
3250 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3251 * config/ia64/linux.mt: Likewise.
3252 * config/m68k/linux.mh: Likewise.
3253 * config/mips/linux.mt: Likewise.
3254 * config/powerpc/linux.mh: Likewise.
3255 * config/sh/linux.mt: Likewise.
3256
c8c18e65
KW
32572003-06-19 Kris Warkentin <kewarken@qnx.com>
3258
3259 * solib.c (solib_open): Change tests for whether to search
3260 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3261 comments.
3262
dcccef2e
TR
32632003-06-19 Theodore A. Roth <troth@openavr.org>
3264
3265 * avr-tdep.c (avr_frame_address): Delete function.
3266 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3267 set_gdbarch_frame_args_address.
3268
5861a190
AC
32692003-06-19 Andrew Cagney <cagney@redhat.com>
3270
3271 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3272 (REGISTER_CONVERT_FROM_TYPE): Delete.
3273 (mips_register_convert_to_type): Delete declaration.
3274 (mips_register_convert_from_type): Delete declaration.
3275 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3276 kernel/.
3277
0274a8ce
MS
32782003-06-19 Michael Snyder <msnyder@redhat.com>
3279
3280 * linux-nat.h: New file.
3281 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3282 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3283 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3284 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3285 (linux_make_note_section): Iterate over lwps instead of threads.
3286 (linux_do_thread_registers): Use lwp instead of merged pid.
3287 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3288 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3289 Add dependency on linux_nat_h.
3290
adf5f719
TR
32912003-06-19 Theodore A. Roth <troth@openavr.org>
3292
3293 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3294
6766a268
DJ
32952003-06-19 Daniel Jacobowitz <drow@mvista.com>
3296
3297 * varobj.c (get_type, get_target_type): Use check_typedef.
3298
1171114a
DJ
32992003-06-19 Daniel Jacobowitz <drow@mvista.com>
3300
3301 * breakpoint.c (insert_catchpoint): Call internal_error.
3302
adcf68a2
TR
33032003-06-19 Theodore A. Roth <troth@openavr.org>
3304
3305 * avr-tdep.c (avr_push_dummy_code): Delete function.
3306 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3307
ea67f13b
DJ
33082003-06-19 Daniel Jacobowitz <drow@mvista.com>
3309
3310 * arch-utils.c (default_prepare_to_proceed): Remove.
3311 (generic_prepare_to_proceed): Remove.
3312 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3313 (generic_prepare_to_proceed): Remove prototype.
3314 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3315 * gdbarch.c: Regenerate.
3316 * gdbarch.h: Regenerate.
3317 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3318 * hppah-nat.c (hppa_switched_threads): Remove.
3319 * infrun.c (prepare_to_proceed): New static function, copied from
3320 generic_prepare_to_proceed. Remove select_it argument.
3321 (proceed): Call prepare_to_proceed.
3322 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3323 variables.
3324 (ptrace_wait): Don't set the removed variables.
3325 (hppa_switched_threads): Remove.
3326 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3327 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3328 (lin_lwp_prepare_to_proceed): Remove prototype.
3329 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3330 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3331
4add8633
TR
33322003-06-18 Theodore A. Roth <troth@openavr.org>
3333
3334 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3335 trad-frame.h.
3336 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3337 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3338 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3339 (AVR_PROLOGUE_*): Enumerate prologue types.
3340 (struct frame_extra_info): Remove.
3341 (struct avr_unwind_cache): Define.
3342 (avr_write_sp): Delete function.
3343 (avr_read_fp): Ditto.
3344 (avr_init_extra_frame_info): Ditto.
3345 (avr_pop_frame): Ditto.
3346 (avr_frame_saved_pc): Ditto.
3347 (avr_saved_pc_after_call): Ditto.
3348 (avr_push_return_address): Ditto.
3349 (avr_frame_chain): Ditto.
3350 (avr_store_struct_return): Ditto.
3351 (avr_push_arguments): Ditto.
3352 (avr_scan_prologue): Update comments. Changed to set up the info for
3353 cache unwinding. Now returns end of prologue PC.
3354 (avr_skip_prologue): Better handling of functions lacking a prologue
3355 by using avr_scan_prologue.
3356 (avr_scan_arg_moves): New function.
3357 (avr_saved_regs_unwinder): Ditto.
3358 (avr_frame_unwind_cache): Ditto.
3359 (avr_unwind_pc): Ditto.
3360 (avr_frame_this_id): Ditto.
3361 (avr_frame_prev_register): Ditto.
3362 (avr_frame_p): Ditto.
3363 (avr_frame_base_address ): Ditto.
3364 (avr_unwind_dummy_id): Ditto.
3365 (avr_push_dummy_code): Ditto.
3366 (push_stack_item): Ditto.
3367 (pop_stack_item): Ditto.
3368 (avr_push_dummy_call): Ditto.
3369 (struct stack_item): Define.
3370 (avr_frame_unwind): Declare structure.
3371 (avr_frame_base): Ditto.
3372 (avr_gdbarch_init): Remove calls to
3373 set_gdbarch_deprecated_init_frame_pc,
3374 set_gdbarch_deprecated_target_read_fp,
3375 set_gdbarch_deprecated_dummy_write_sp,
3376 set_gdbarch_deprecated_fp_regnum,
3377 set_gdbarch_deprecated_push_arguments,
3378 set_gdbarch_deprecated_push_return_address,
3379 set_gdbarch_deprecated_pop_frame,
3380 set_gdbarch_deprecated_store_struct_return,
3381 set_gdbarch_deprecated_frame_init_saved_regs,
3382 set_gdbarch_deprecated_init_extra_frame_info,
3383 set_gdbarch_deprecated_frame_chain,
3384 set_gdbarch_deprecated_frame_saved_pc,
3385 set_gdbarch_deprecated_saved_pc_after_call.
3386 Add calls to set_gdbarch_push_dummy_call,
3387 set_gdbarch_push_dummy_code,
3388 frame_unwind_append_predicate,
3389 frame_base_set_default,
3390 set_gdbarch_unwind_dummy_id,
3391 set_gdbarch_unwind_pc.
3392 Wrap a long line.
3393
7be04a68
MS
33942003-06-18 Corinna Vinschen <vinschen@redhat.com>
3395
3396 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3397 registers for H8/300S.
3398 (h8300_print_registers_info): Ditto.
8ffd9b1b 3399 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3400
ae087d01
DJ
34012003-06-18 Daniel Jacobowitz <drow@mvista.com>
3402
3403 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3404 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3405 (lin_lwp_wait): Likewise. Update comments.
3406 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3407 (pull_pid_from_list, linux_record_stopped_pid): New.
3408
07d8f827
SC
34092003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3410
3411 * ada-lang.c (scan_discrim_bound): Name first argument.
3412 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3413 declared by ALL_BLOCK_SYMBOLS.
3414
7cb47b14
SC
34152003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3416
3417 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3418 ("regcache.h"): Include it.
3419 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3420
6ad8ae5c
DJ
34212003-06-17 Daniel Jacobowitz <drow@mvista.com>
3422
3423 * NEWS: Mention gdbserver detach change and "disconnect" command.
3424 * infcmd.c (disconnect_command): New function.
3425 (_initialize_infcmd): Add ``disconnect'' command.
3426 * remote.c (remote_async_detach): Delete.
3427 (remote_detach): Merge remote_async_detach.
3428 (remote_disconnect): New.
3429 (init_remote_ops): Set to_disconnect.
3430 (init_remote_cisco_ops): Likewise.
3431 (init_remote_async_ops): Likewise. Use remote_detach.
3432 * target.c (cleanup_target): Default to_disconnect.
3433 (update_current_target): Inherit to_disconnect.
3434 (target_disconnect, debug_to_disconnect): New functions.
3435 (setup_target_debug): Set to_disconnect.
3436 * target.h (struct target_ops): Add to_disconnect.
3437 (target_disconnect): Add prototype.
3438
687595f9
DJ
34392003-06-17 Daniel Jacobowitz <drow@mvista.com>
3440
3441 * breakpoint.c (insert_catchpoint): New function.
3442 (insert_breakpoints): Use catch_exceptions to call
3443 insert_catchpoint. Disable catchpoints if they fail to insert.
3444
29239a8f
DJ
34452003-06-17 Daniel Jacobowitz <drow@mvista.com>
3446
3447 * symfile.c (reread_symbols): Clear sym_private.
3448
2cdf3c63
AC
34492003-06-17 Andrew Cagney <cagney@redhat.com>
3450
3451 * trad-frame.h (struct frame_info): Add opaque declaration.
3452 * remote-fileio.h (struct cmd_list_element): Add opaque
3453 declaration.
3454 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3455 comments.
3456
cf0e1e0d
DJ
34572003-06-17 Daniel Jacobowitz <drow@mvista.com>
3458
3459 * remote.c (remote_prepare_to_store): Replace call to
3460 deprecated_read_register_bytes with multiple regcache_raw_read
3461 calls.
3462
192cdb19
KW
34632003-06-17 Kris Warkentin <kewarken@qnx.com>
3464
3465 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3466 (nto_find_and_open_solib): Likewise.
3467 (nto_init_solib_absolute_prefix): Likewise.
3468 (_initialize_nto_tdep): Fix indentation.
3469
89929b45
KW
34702003-06-17 Kris Warkentin <kewarken@qnx.com>
3471
3472 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3473
46019f27
KW
34742003-06-17 Kris Warkentin <kewarken@qnx.com>
3475
3476 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3477
1a38736e
JB
34782003-06-17 Jim Blandy <jimb@redhat.com>
3479
3480 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3481
3605c34a
TR
34822003-06-16 Theodore A. Roth <troth@openavr.org>
3483
3484 * avr-tdep.c (avr_extract_return_value): New function.
3485 (avr_gdbarch_init): Set extract_return_value method.
3486
870b3035
AC
34872003-06-16 Andrew Cagney <cagney@redhat.com>
3488
3489 * frame.h (deprecated_get_next_frame_hack): Declare.
3490 * frame.c (legacy_saved_regs_prev_register): Only require
3491 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3492 there are always saved regs.
3493 (deprecated_generic_get_saved_register): Do not require
3494 DEPRECATED_FRAME_INIT_SAVED_REGS.
3495 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3496 use frame ID unwind instead.
3497 (deprecated_get_next_frame_hack): New function.
3498
63d47a7d
CV
34992003-06-16 Corinna Vinschen <vinschen@redhat.com>
3500
3501 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3502 (h8300_push_dummy_call): ...this function. Some minor optimization.
3503 (h8300_push_return_address): Remove.
3504 (h8300_gdbarch_init): Remove calls to
3505 set_gdbarch_deprecated_dummy_write_sp,
3506 set_gdbarch_deprecated_push_arguments and
3507 set_gdbarch_deprecated_push_return_address.
3508 Add call to set_gdbarch_push_dummy_call.
3509
4bb1dc5e
CV
35102003-06-16 Corinna Vinschen <vinschen@redhat.com>
3511
3512 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3513 (E_PSEUDO_EXR_REGNUM): Ditto.
3514 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3515 registers into safe registers.
4bb1dc5e
CV
3516 (h8300_skip_prologue): Check for stm instruction to push registers
3517 used for register variables onto stack.
3518 (gdb_print_insn_h8300): Remove.
3519 (h8300_examine_prologue): Add a comment.
3520 (h8300_register_name): Take pseudo registers into account.
3521 (h8300s_register_name): Ditto.
3522 (h8300sx_register_name): Ditto.
3523 (h8300_print_register): Ditto.
3524 (h8300_print_registers_info): Define "nice" printing order.
3525 (h8300_saved_pc_after_call): Take pseudo registers into account.
3526 (h8300_register_type): Ditto. Return type used for remote connection
3527 when requesting real CCR or EXR register, return actual type when
3528 requesting pseudo CCR or EXR.
3529 (h8300_pseudo_register_read): New function.
3530 (h8300_pseudo_register_write): Ditto.
3531 (h8300_dbg_reg_to_regnum): Ditto.
3532 (h8300s_dbg_reg_to_regnum): Ditto.
3533 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3534 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3535 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3536 set_gdbarch_print_insn architecture dependent.
3537 Call set_gdbarch_pseudo_register_read and
3538 set_gdbarch_pseudo_register_write.
3539 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3540
a59fe496
AC
35412003-06-16 Andrew Cagney <cagney@redhat.com>
3542
3543 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3544 * gdbarch.h, gdbarch.c: Re-generate.
3545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3546 * s390-tdep.c (s390_gdbarch_init): Update.
3547 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3548 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3549 * mips-tdep.c (mips_gdbarch_init): Update.
3550 * mcore-tdep.c (mcore_gdbarch_init): Update.
3551 * cris-tdep.c (cris_gdbarch_init): Update.
3552 * infcall.c (call_function_by_hand): Update.
3553 * ia64-tdep.c (ia64_push_arguments): Update comment.
3554 * frame.c (legacy_get_prev_frame): Do not assume
3555 SAVE_DUMMY_FRAME_TOS_P.
3556 * dummy-frame.c (find_dummy_frame): Update comment.
3557
6f4e5a41
AC
35582003-06-16 Andrew Cagney <cagney@redhat.com>
3559
3560 * regcache.c (do_cooked_read): Do not use register_valid_p.
3561
72fab697
TR
35622003-06-15 Theodore A. Roth <troth@openavr.org>
3563
3564 * avr-tdep.c (avr_register_type): Remove a blank line.
3565 (avr_scan_prologue): Correct some comments.
3566
e3d8b004
TR
35672003-06-15 Theodore A. Roth <troth@openavr.org>
3568
3569 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3570 prologue types.
8ffd9b1b 3571 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3572 option.
3573 Add code to scan -mcall-prologues for mega devices.
3574
866b76ea
TR
35752003-06-15 Theodore A. Roth <troth@openavr.org>
3576
3577 * avr-tdep.c (avr_register_byte): Delete function.
3578 (avr_register_raw_size): Delete function.
3579 (avr_register_virtual_size): Delete function.
3580 (avr_register_virtual_type): Delete function.
3581 (avr_register_type): New function.
3582 (avr_address_to_pointer): Remove unused code.
3583 (avr_read_fp): Need to read FP as two separate bytes due to change to
3584 avr_register_type() usage.
3585 (avr_gdbarch_init): Don't set deprecated_register_size.
3586 Don't set deprecated_register_bytes.
3587 Don't set deprecated_register_byte.
3588 Don't set deprecated_register_raw_size.
3589 Don't set deprecated_max_register_raw_size.
3590 Don't set deprecated_register_virtual_size.
3591 Don't set deprecated_max_register_virtual_size.
3592 Don't set deprecated_register_virtual_type.
3593 Set register_type method.
3594
3993f6b1
DJ
35952003-06-15 Daniel Jacobowitz <drow@mvista.com>
3596
3597 * Makefile.in (linux-nat.o): Add rule.
3598 * linux-nat.c: New file.
3599 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3600 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3601 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3602 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3603 * config/arm/linux.mh (NATDEPFILES): Likewise.
3604 * config/i386/linux.mh (NATDEPFILES): Likewise.
3605 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3606 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3607 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3608 * config/mips/linux.mh (NATDEPFILES): Likewise.
3609 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3610 * config/s390/s390.mh (NATDEPFILES): Likewise.
3611 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3612
786a90bb
MK
36132003-06-15 Mark Kettenis <kettenis@gnu.org>
3614
3615 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3616 replace out-of-date comment.
3617
3bd3f01e
AC
36182003-06-15 Andrew Cagney <cagney@redhat.com>
3619
3620 * rdi-share/host.h (Fail): Change to a varargs function.
3621 * remote-rdi.c (Fail): Update.
8ffd9b1b 3622
de5b9bb9
MK
36232003-06-15 Mark Kettenis <kettenis@gnu.org>
3624
3625 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3626 (i386_convert_register_p, i386_register_to_value,
3627 i386_register_from_value): Handle types longer than 8 bytes.
3628
d532c08f
MK
36292003-06-15 Mark Kettenis <kettenis@gnu.org>
3630
3631 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3632 Move floating-point code to new function in i387-tdep.c.
3633 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3634 New functions containing code moved here from i386-tdep.c.
3635 * i387-tdep.h: Add opaque declaration for `struct type'.
3636 (i387_register_to_value, i387_value_to_register): New prototypes.
3637 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3638 (x86_64_init_abi): Set convert_register_p, register_to_value and
3639 value_to_register here.
8ffd9b1b 3640
42c466d7
AC
36412003-06-14 Andrew Cagney <cagney@redhat.com>
3642
3643 * mips-tdep.c (mips_register_to_value): Make static.
3644 (mips_value_to_register): Make static.
3645 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3646 * ia64-tdep.c (ia64_register_raw_size): Make static.
3647 (ia64_register_virtual_size): Make static.
3648 (ia64_register_byte): Make static.
3649 * i387-tdep.c: Include "i387-tdep.h".
3650 (print_387_control_word): Delete function.
3651 (print_387_status_word): Delete function.
3652 (print_387_status_bits): Delete function.
3653 (print_387_control_bits): Delete function.
3654 * Makefile.in (i387-tdep.o): Update dependencies.
3655 * rdi-share/host.h (Fail): Declare.
3656 * remote-rdi.c (Fail): Update to match declaration.
3657
2a9cda49
AC
36582003-06-14 Andrew Cagney <cagney@redhat.com>
3659
3660 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3661 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3662 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3663 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3664 * README: Delete reference to remote-array.
3665 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3666 (remote-array.o): Delete target.
3667 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3668 * remote-array.c: Delete file.
3669
ff2e87ac
AC
36702003-06-14 Andrew Cagney <cagney@redhat.com>
3671 Mark Kettenis <kettenis@gnu.org>
3672
3673 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3674 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3675 parameter with "frame".
3676 * gdbarch.h, gdbarch.c: Re-generate.
3677 * frame.h (put_frame_register): Declare.
3678 * frame.c (put_frame_register): New function.
3679 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3680 (legacy_register_to_value): Rewrite, use "frame" to get the
3681 register value.
3682 (legacy_value_to_register): Rewrite, use "frame" to find the
3683 register's location before storing.
3684 * arch-utils.h (legacy_convert_register_p): Update.
3685 (legacy_register_to_value, legacy_value_to_register): Update.
3686 * findvar.c (value_from_register): Rewrite, eliminate use of
3687 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3688 "frame" to REGISTER_TO_VALUE.
3689 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3690 lval_reg_frame_relative + lval_register branch of the switch. Do
3691 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3692 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3693 I386_EDI_REGNUM): New defines.
3694 (i386_next_regnum, i386_convert_register_p,
3695 i386_register_to_value, i386_value_to_register): New functions.
3696 (i386_register_convertible, i386_register_convert_to_virtual,
3697 i386_convert_to_raw): Remove functions.
3698 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3699 value_to_register instead of register_convertible,
3700 register_convert_to_virtual and register_convert_to_raw.
3701 * mips-tdep.c (mips_convert_register_p): New function.
3702 (mips_value_to_register): Replace mips_register_convert_from_type.
3703 (mips_register_to_value): Replace mips_register_convert_to_type.
3704 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3705 register_to_value.
3706 * alpha-tdep.c (alpha_convert_register_p): Update.
3707 (alpha_value_to_register): Update, store the register.
3708 (alpha_register_to_value): Update, fetch the register.
3709
98be1e77
TR
37102003-06-14 Theodore A. Roth <troth@openavr.org>
3711
3712 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3713 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3714 Don't set deprecated_call_dummy_words.
3715 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3716 Don't set remote_translate_xfer_address.
3717 (avr_io_reg_read_command): Remove commented out debug printf.
3718 Wrap a long line.
3719
57bc6122
TR
37202003-06-14 Theodore A. Roth <troth@openavr.org>
3721
3722 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3723 causes gdb to seg fault.
3724
eb01fc62
DJ
37252003-06-14 Daniel Jacobowitz <drow@mvista.com>
3726
3727 * sparc-nat.c (fetch_inferior_registers): Correct
3728 a reference to "registers".
3729
3b3e6bee
DJ
37302003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3731
3732 * Makefile.in (exc_request_U_h): Define
3733 (exc_request_S_h): Likewise.
3734 (msg_reply_S_h): Likewise.
3735 (msg_U_h): Likewise.
3736 (notify_S_h): Likewise.
3737 (process_reply_S_h): Likewise.
3738 (gnu-nat.o): Depend on gdb_obstack_h
3739 * gnu-nat.c: Include "gdb_obstack.h".
3740
b8de8283
AC
37412003-06-13 Andrew Cagney <cagney@redhat.com>
3742
3743 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3744 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3745
f3be58bc
AC
37462003-06-13 Andrew Cagney <cagney@redhat.com>
3747
3748 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3749 when deprecated REGISTER macros can be deleted.
3750 * gdbarch.h, gdbarch.c: Re-generate.
3751
4c0122c8
JB
37522003-06-13 Jim Blandy <jimb@redhat.com>
3753
3754 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3755 Linux entry point symbols for _dl_debug_state, too.
3756
3e210248
AC
37572003-06-13 Andrew Cagney <cagney@redhat.com>
3758
3759 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3760 available, do not use the FP register, and always save the TOS.
3761 * dummy-frame.c (dummy_frame_this_id): Do not assert
3762 SAVE_DUMMY_FRAME_TOS.
3763 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3764 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3765 (i386_push_dummy_call): Add 8 to the returned SP.
3766 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3767 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3768 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3769 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3770 (x86_64_push_dummy_call): Return "sp + 16".
3771 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3772 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3773 save_dummy_frame_tos.
3774
0b65af49
JB
37752003-06-13 Jim Blandy <jimb@redhat.com>
3776
3777 * frv-tdep.c (frv_use_struct_convention): Delete static
3778 declaration for function deleted in my change of 2003-06-12.
3779
4ea2465e
TR
37802003-06-13 Theodore A. Roth <troth@openavr.org>
3781
3782 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3783 (avr_pointer_to_address): Shift code addrs left 1 bit.
3784 (avr_convert_from_func_ptr_addr): Delete function since operation is
3785 better handled by avr_address_to_pointer and avr_pointer_to_address.
3786 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3787
1581182a
MK
37882003-06-13 Mark Kettenis <kettenis@gnu.org>
3789
3790 From Kelley Cook <kelleycook@wideopenwest.com>:
3791 * configure.host: Accept i[34567]86 variants.
3792 * configure.tgt: Likewise.
3793 * nlm/configure.in: Likewise.
3794 * nlm/configure: Regenerated.
3795
7aa1783e
RE
37962003-06-13 Richard Earnshaw <rearnsha@arm.com>
3797
3798 * arm-tdep.c (solib-svr4.h): Dont' include it.
3799 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3800 * arm-linux-tdep.c: ... here. Make static.
3801 (arm_linux_init_abi): Register it.
3802 (solib-svr4.h): Include it.
3803 * Makefile.in: Update dependencies.
3804 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3805 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3806
0261a0d0
CV
38072003-06-13 Corinna Vinschen <vinschen@redhat.com>
3808
3809 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3810 indicate registers used for return values.
3811 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3812 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3813 members.
3814 (h8300_init_extra_frame_info): Ditto.
3815 (h8300_frame_locals_address): Removed.
3816 (h8300_frame_args_address): Removed.
3817 (h8300_extract_return_value): Use new regcache structure. Only care
3818 for 16 bit CPUs.
3819 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3820 (h8300_store_return_value): Use new regcache structure. Only care
3821 for 16 bit CPUs.
3822 (h8300h_store_return_value): Same function for 32 bit CPUs.
3823 (h8300_store_struct_return): Removed.
3824 (h8300_extract_struct_value_address): Use new regcache structure.
3825 (h8300h_extract_struct_value_address): Removed.
3826 (h8300_push_dummy_code): New function.
3827 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3828 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3829 set_gdbarch_store_return_value architecture dependent.
3830 Call set_gdbarch_push_dummy_code and
3831 set_gdbarch_extract_struct_value_address.
3832 Remove calls to set_gdbarch_frame_args_address,
3833 set_gdbarch_frame_locals_address,
3834 set_gdbarch_deprecated_store_struct_return,
3835 set_gdbarch_deprecated_extract_return_value,
3836 set_gdbarch_deprecated_extract_struct_value_address,
3837 set_gdbarch_deprecated_call_dummy_words and
3838 set_gdbarch_deprecated_sizeof_call_dummy_words.
3839
055c394a
CV
38402003-06-13 Corinna Vinschen <vinschen@redhat.com>
3841
3842 * h8300-tdep.c (h8300_register_byte): Remove.
3843 (h8300h_register_byte): Remove.
3844 (h8300_register_virtual_type): Remove. Substitute by...
3845 (h8300_register_type): New function.
3846 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3847 (h8300h_extract_struct_value_address): Ditto.
3848 (h8300_gdbarch_init): Drop calls to
3849 set_gdbarch_deprecated_register_byte and
3850 set_gdbarch_deprecated_register_virtual_type.
3851 Add call to set_gdbarch_register_type.
3852
9c04cab7
AC
38532003-06-13 Andrew Cagney <cagney@redhat.com>
3854
3855 * gdbarch.sh: Update comments on registers.
3856 (deprecated_register_byte): Rename register_byte.
3857 (deprecated_register_raw_size): Rename register_raw_size.
3858 (deprecated_register_virtual_size): Rename register_virtual_size.
3859 (deprecated_register_virtual_type): Rename register_virtual_type.
3860 * gdbarch.h, gdbarch.c: Re-generate.
3861 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3862 * vax-tdep.c (vax_gdbarch_init): Update.
3863 * v850-tdep.c (v850_gdbarch_init): Update.
3864 * sparc-tdep.c (sparc_gdbarch_init): Update.
3865 * sh-tdep.c (sh_gdbarch_init): Update.
3866 * s390-tdep.c (s390_gdbarch_init): Update.
3867 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3868 * ns32k-tdep.c: Update.
3869 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3870 * mips-tdep.c (mips_gdbarch_init): Update.
3871 * mcore-tdep.c (mcore_gdbarch_init): Update.
3872 * m68k-tdep.c (m68k_gdbarch_init): Update.
3873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3874 * ia64-tdep.c (ia64_gdbarch_init): Update.
3875 * hppa-tdep.c (hppa_gdbarch_init): Update.
3876 * h8300-tdep.c (h8300_gdbarch_init): Update.
3877 * frv-tdep.c (frv_gdbarch_init): Update.
3878 * cris-tdep.c (cris_gdbarch_init): Update.
3879 * avr-tdep.c (avr_gdbarch_init): Update.
3880 * alpha-tdep.c (alpha_gdbarch_init): Update.
3881 * arm-tdep.c (arm_gdbarch_init): Update.
3882
b060cbea
AC
38832003-06-13 Andrew Cagney <cagney@redhat.com>
3884
3885 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3886 mips_o32_use_struct_convention with always_use_struct_convention.
3887
0fc9922a
DC
38882003-06-12 David Carlton <carlton@kealia.com>
3889
3890 * cp-namespace.c (cp_set_block_scope): Comment out
3891 processing_has_namespace_info branch.
3892
1fd35568
JB
38932003-06-12 Jim Blandy <jimb@redhat.com>
3894
f470a70a
JB
3895 Recognize and skip 64-bit PowerPC Linux linkage functions.
3896 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3897 insn_pattern, insns_match_pattern, d_field, ds_field): New
3898 functions, macros, and types for working with PPC instructions.
3899 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3900 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3901 ppc64_skip_trampoline_code): New functions, variables, and macros
3902 for recognizing and skipping linkage functions.
3903 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3904 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3905
49ff75ad
JB
3906 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3907 register offsets for both the 32- and 64-bit interfaces.
3908
bd918c83
JB
3909 Actually finish the job started by my change of 2003-05-29.
3910 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3911 other #definition of this.
3912 (ppc_linux_skip_trampoline_code): Remove declaration.
3913 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3914 static.
3915 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3916 method for GDBARCH.
3917
3918 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3919 'long' on ppc64-*-linux*.
3920
f8c59253
JB
3921 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3922 isn't #defined, assume the register doesn't exist: act as if
3923 tdep->ppc_mq_regnum were -1.
3924
8fbb30b1
JB
3925 * configure.host, configure.tgt: Add entries for
3926 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3927 powerpc/linux.mt.
3928 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3929 New files.
3930
1fd35568
JB
3931 * arch-utils.c (always_use_struct_convention): New function.
3932 * arch-utils.h (always_use_struct_convention): New prototype.
3933 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3934 (alpha_gdbarch_init): Register always_use_struct_convention,
3935 instead of alpha_use_struct_convention.
3936 * cris-tdep.c (cris_use_struct_convention): Delete.
3937 (cris_gdbarch_init): Register always_use_struct_convention,
3938 instead of cris_use_struct_convention.
3939 * frv-tdep.c (frv_use_struct_convention): Delete.
3940 (frv_gdbarch_init): Register always_use_struct_convention,
3941 instead of frv_use_struct_convention.
3942 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3943 (h8300_gdbarch_init): Register always_use_struct_convention,
3944 instead of h8300_use_struct_convention.
e3305dd9 3945 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3946 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3947 instead of mips_o32_use_struct_convention.
3948
e14e6e9c
AC
39492003-06-12 Andrew Cagney <cagney@redhat.com>
3950
3951 * wince.c: Include "mips-tdep.h".
3952 * mips-tdep.h (mips_next_pc): Declare.
3953 * mcore-tdep.c: Make more local functions static.
3954 * Makefile.in (wince.o): Update dependencies.
3955
2335f48e
DC
39562003-06-12 David Carlton <carlton@kealia.com>
3957
3958 * symtab.c (lookup_symbol_aux_minsyms): Replace
3959 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3960 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3961 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3962 SYMBOL_NATURAL_NAME.
3963
f70a7d61
AS
39642003-06-12 Andreas Schwab <schwab@suse.de>
3965
3966 * Makefile.in (tuiDisassem.o): Update dependencies.
3967
b6429628
DC
39682003-06-12 David Carlton <carlton@bactrian.org>
3969
3970 * symtab.h: Delete declaration of make_symbol_overload_list.
3971 Add declaration of lookup_partial_symbol.
3972 * symtab.c (remove_params): Move to cp-support.c.
3973 (overload_list_add_symbol, make_symbol_overload_list)
3974 (sym_return_val_size, sym_return_val_index): Ditto.
3975 (lookup_partial_symbol): Make extern.
3976 * cp-support.h: Add declaration of make_symbol_overload_list.
3977 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3978 symtab.h, and block.h.
3979 (remove_params): Move here from symtab.c.
3980 (overload_list_add_symbol, make_symbol_overload_list)
3981 (sym_return_val_size, sym_return_val_index): Ditto.
3982 * valops.c: Include cp-support.h.
3983 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3984 frame_h, and block_h.
3985 (valops.o): Depend on cp_support_h.
3986
084edea5
CV
39872003-06-12 Corinna Vinschen <vinschen@redhat.com>
3988
3989 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3990 substitute by NUM_REGS throughout.
3991 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3992 (h8300s_register_name): New function for H8S registers.
3993 (h8300sx_register_name): Ditto for H8SX registers.
3994 (h8300_print_register): Revise register printing, avoid depending
3995 on 32 bit long.
0261a0d0 3996 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3997 (h8300h_register_byte): New function for any other architecture.
3998 (h8300_register_raw_size): Remove.
3999 (h8300_register_virtual_type): Revise to return actually useful
4000 type.
4001 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4002 (h8300h_extract_struct_value_address): New function for any other
4003 architecture.
4004 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4005 set_gdbarch_register_name, set_gdbarch_register_byte,
4006 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4007 Remove calls to set_gdbarch_deprecated_register_size,
4008 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4009 set_gdbarch_deprecated_max_register_raw_size,
4010 set_gdbarch_register_virtual_size and
4011 set_gdbarch_deprecated_max_register_virtual_size entirely.
4012 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4013 set_gdbarch_long_double_bit.
4014
06194148
JJ
40152003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4016
8ffd9b1b
AJ
4017 * doublest.c (convert_doublest_to_floatformat): When dealing
4018 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4019 processing a full 32 bits of mantissa.
4020
de4f826b
DC
40212003-06-11 David Carlton <carlton@bactrian.org>
4022
4023 * dictionary.h: New.
4024 * dictionary.c: New.
4025 * block.h: Add opaque declaration for struct dictionary.
4026 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4027 'sym' members.
4028 (BLOCK_DICT): New macro.
4029 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4030 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4031 BLOCK_SHOULD_SORT.
4032 (ALL_BLOCK_SYMBOLS): Update definition.
4033 * Makefile.in (SFILES): Add dictionary.c.
4034 (dictionary_h): New.
4035 (COMMON_OBS): Add dictionary.o.
4036 (dictionary.o): New.
4037 (ada-lang.o): Depend on dictionary_h.
4038 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4039 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4040 (mi-cmd-stack.o): Ditto.
4041 (gdbtk-cmds.o): Update dependencies.
4042 (gdbtk-stack.o): Ditto.
4043 * ada-lang.c: Include dictionary.h.
4044 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4045 (fill_in_ada_prototype, debug_print_block): Ditto.
4046 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4047 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4048 'is_sorted'.
4049 * mdebugread.c: Include dictionary.h.
4050 (struct parse_stack): Delete 'maxsyms' member.
4051 (parse_symbol): Update calls to new_block. Delete calls to
4052 shrink_block. Use dictionary methods.
4053 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4054 Update calls to new_symtab. Don't maintain maxsyms data.
4055 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4056 (add_symbol): Just call dict_add_symbol.
4057 (new_symtab): Delete 'maxsyms' argument.
4058 (new_symtab): Update calls to new_block.
4059 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4060 (shrink_block): Delete function.
4061 (fixup_sigtramp): Update call to new_block. Add symbol via
4062 dict_add_symbol.
4063 * jv-lang.c: Include dictionary.h.
4064 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4065 appropriately. Set class_symtab->free_func. Make sure the
4066 blockvector is big enough to hold two blocks.
4067 (add_class_symtab_symbol): Use dictionary methods.
4068 (free_class_block): New function.
4069 (type_from_class): Replace explicit iteration by
4070 ALL_BLOCK_SYMBOLS.
4071 * symtab.h (struct symtab): Replace 'free_ptr' method by
4072 'free_func'.
4073 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4074 sort_symtab_syms.
4075 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4076 sort_symtab_syms.
4077 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4078 Include dictionary.h.
4079 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4080 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4081 sort_symtab_syms.
4082 * objfiles.c: Include dictionary.h.
4083 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4084 * buildsym.c: Include dictionary.h.
4085 (finish_block): Use dictionary methods.
4086 (end_symtab): Set free_func to NULL, not free_ptr.
4087 * tracepoint.c: Include dictionary.h.
4088 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4089 (scope_info): Ditto.
4090 * stack.c: Include dictionary.h.
4091 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4092 (print_block_frame_labels, print_frame_arg_vars)
4093 (print_frame_args): Ditto.
4094 * symmisc.c (free_symtab_block): Use dictionary methods.
4095 (dump_symtab): Ditto.
4096 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4097 Include dictionary.h.
4098 * symfile.h: Delete declarations of sort_block_syms,
4099 sort_symtab_syms.
4100 * symfile.c (sort_block_syms): Delete.
4101 (sort_symtab_syms): Delete.
4102 * symtab.c: Include dictionary.h.
4103 (lookup_block_symbol): Use dictionary iterators.
4104 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4105 (search_symbols, make_symbol_completion_list): Ditto.
4106 (make_symbol_overload_list): Ditto.
4107 * valops.c (value_of_local): Use dict_empty.
4108 Include dictionary.h.
4109
a31f978c
JB
41102003-06-11 J. Brobecker <brobecker@gnat.com>
4111
4112 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4113
526e70c0
DC
41142003-06-11 David Carlton <carlton@bactrian.org>
4115
4116 * block.h (BLOCK_SHOULD_SORT): Delete.
4117 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4118 blocks.
4119 * ada-lang.c (ada_add_block_symbols): Ditto.
4120 * symfile.c (sort_block_syms): Delete.
4121 (sort_symtab_syms): Ditto.
4122 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4123 declarations.
4124 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4125 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4126 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4127 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4128 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4129 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4130 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4131
33c08150
JJ
41322003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4133
8ffd9b1b 4134 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4135 bits to 128.
4136
781a750d
AC
41372003-06-11 Andrew Cagney <cagney@redhat.com>
4138
4139 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4140 REGISTER_CONVERTIBLE.
4141 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4142 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4143 * gdbarch.h, gdbarch.c: Re-generate.
4144 * arch-utils.h (deprecated_register_convertible_not): Rename
4145 generic_register_convertible_not.
4146 * arch-utils.c (deprecated_register_convertible_not): Rename
4147 generic_register_convertible.
4148 (legacy_convert_register_p, legacy_register_to_value): Update.
4149 * sh-tdep.c (sh64_push_arguments): Update.
4150 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4151 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4152 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4153 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4154 * arch-utils.c (legacy_value_to_register): Update.
4155 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4156 (rs6000_register_convert_to_raw): Make parameter "from" const.
4157 * mips-tdep.c (mips_gdbarch_init): Update.
4158 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4159 * infcmd.c (default_print_registers_info): Update.
4160 * ia64-tdep.c (ia64_gdbarch_init): Update.
4161 (ia64_register_convert_to_raw): Make parameter "from" const.
4162 * i386-tdep.c (i386_gdbarch_init): Update.
4163 (i386_register_convert_to_raw): Update.
4164
cd90e54f
AC
41652003-06-11 Andrew Cagney <cagney@redhat.com>
4166
4167 * remote-fileio.c: Include "remote-fileio.h".
4168 * Makefile.in (remote-fileio.o): Update dependencies.
4169 (remote_fileio_h): Fix typo.
4170
a78f21af
AC
41712003-06-11 Andrew Cagney <cagney@redhat.com>
4172
4173 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4174 (xstormy16_save_dummy_frame_tos): Make static.
4175 (_initialize_xstormy16_tdep): Add declaration.
4176 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4177 * v850-tdep.c: Make local functions static.
4178 (_initialize_v850_tdep): Add declaration.
4179 * sparc-tdep.c: Make local functions static.
4180 (_initialize_sparc_tdep): Add declaration.
4181 * sh-tdep.c: Make local functions static.
4182 (_initialize_sh_tdep): Add declaration.
4183 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4184 * s390-tdep.c: Make local functions static.
4185 (_initialize_s390_tdep): Add declaration.
4186 * dbxread.c (find_stab_function_addr): Make static.
4187 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4188 * ocd.c (_initialize_remote_ocd): Add declaration.
4189 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4190 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4191 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4192 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4193 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4194 * remote-array.c (_initialize_array): Add declaration.
4195 (_initialize_remote_monitors): Add declaration.
4196 * remote-mips.c: Make local functions static.
4197 (_initialize_remote_mips): Add declaration.
4198 * mcore-tdep.c: Make all local functions static.
4199 (_initialize_mcore_tdep): Add declaration.
4200 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4201 * abug-rom.c (_initialize_abug_rom): Add declaration.
4202 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4203 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4204 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4205 * remote-est.c (_initialize_est): Add declaration.
4206 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4207 (m68hc11_call_dummy_address): Make static.
4208 * ia64-tdep.c: Make local functions static.
4209 (_initialize_ia64_tdep): Add declaration.
4210 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4211 * monitor.c (monitor_wait_filter): Make static.
4212 (_initialize_remote_monitors): Add declaration.
4213 * remote-hms.c (_initialize_remote_hms): Add declaration.
4214 * remote-e7000.c (fetch_regs_from_dump): Make static.
4215 (expect_n): Make static.
4216 (_initialize_remote_e7000): Add declaration.
4217 * ser-e7kpc.c: Always include "defs.h".
4218 (_initialize_ser_e7000pc): Add declaration.
4219 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4220 * cris-tdep.c: Make all but one function static.
4221 (_initialize_cris_tdep): Add declaration.
4222 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4223 * solib.c (update_solib_list): Make static.
4224 (_initialize_solib): Add declaration.
4225 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4226 (_initialize_avr_tdep): Add declaration.
4227 * remote-rdi.c (voiddummy): Make static.
4228 (_initialize_remote_rdi): Add declaration.
4229 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4230 * remote-rdp.c (send_rdp): Make static.
4231 (_initialize_remote_rdp): Add declaration.
4232 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4233
cbcdb1f5
CV
42342003-06-11 Corinna Vinschen <vinschen@redhat.com>
4235
4236 * remote-fileio.c: Make ari happy.
4237
a191ea8d
JB
42382003-06-10 J. Brobecker <brobecker@gnat.com>
4239
4240 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4241 fetching the trailing bytes of the buffer we are about to write.
4242
0ef75e11
AC
42432003-06-10 Andrew Cagney <cagney@redhat.com>
4244
4245 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4246 * Makefile.in (remote-fileio.o): Update dependencies.
4247 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4248 include <setjmp.h>, or <sys/types.h> conditional on USG.
4249 (remote_fio_jmp_buf): Delete global variable.
4250
449092f6 42512003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4252 Martin M. Hunt <hunt@redhat.com>
449092f6 4253
559fa028
AC
4254 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4255 (SFILES): Add remote-fileio.c.
4256 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4257 dependencies for building remote.o.
449092f6
CV
4258 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4259 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4260 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4261 static storage class.
4262 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4263 'F' packet.
4264 (_initialize_remote): Call initialize_remote_fileio().
4265 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4266 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4267 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4268 (captured_main): Initialize new ui_files.
4269 * ui-file.c: Add read and fgets input functions.
4270 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4271 (null_file_read): New function.
4272 (ui_file_read): New function.
4273 (set_ui_file_read): New function.
4274 (stdio_file_read): New function.
4275 * ui-file.h: New type ui_file_read_ftype.
4276 (set_ui_file_read): Declare.
4277 (ui_file_read): Declare.
4278
248de703
AC
42792003-06-09 Andrew Cagney <cagney@redhat.com>
4280
4281 * frame.h (deprecated_unwind_get_saved_register): Rename
4282 generic_unwind_get_saved_register, update comments.
4283 * mips-tdep.c (mips_get_saved_register): Update.
4284 * frame.c (deprecated_unwind_get_saved_register): Update.
4285
0ed8aa57
AC
42862003-06-09 Andrew Cagney <cagney@redhat.com>
4287
4288 * vax-tdep.c (vax_frame_locals_address): Delete function.
4289 (vax_gdbarch_init): Do not set frame_locals_address.
4290 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4291 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4292 * s390-tdep.c (s390_frame_args_address): Delete function.
4293 (s390_gdbarch_init): Do not set frame_args_address or
4294 frame_locals_address.
4295 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4296 (ns32k_gdbarch_init): Do not set frame_locals_address.
4297 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4298 (hppa_frame_locals_address): Delete function.
4299 (hppa_gdbarch_init): Do not set frame_args_address, or
4300 frame_locals_address.
4301 * arm-tdep.c (arm_frame_args_address): Delete.
4302 (arm_frame_locals_address): Delete.
4303 (arm_gdbarch_init): Do not set frame_args_address, or
4304 frame_locals_address.
4305
983a287a
AC
43062003-06-09 Andrew Cagney <cagney@redhat.com>
4307
4308 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4309 * gdbarch.h, gdbarch.c: Re-generate.
4310 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4311 * arch-utils.c (frame_num_args_unknown): Delete function.
4312 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4313 (frame_info): Use FRAME_NUM_ARGS_P.
4314 * arm-tdep.c (arm_frame_num_args): Delete function.
4315 (arm_gdbarch_init): Do not set frame_num_args.
4316 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4317 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4318 (hppa_gdbarch_init): Do not set frame_num_args.
4319 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4321 frame_num_args to default frame_num_args_unknown.
4322 * v850-tdep.c (v850_gdbarch_init): Ditto.
4323 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4324 * sh-tdep.c (sh_gdbarch_init): Ditto.
4325 * s390-tdep.c (s390_gdbarch_init): Ditto.
4326 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4327 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4328 * mips-tdep.c (mips_gdbarch_init): Ditto.
4329 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4330 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4332 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4333 * i386-tdep.c (i386_gdbarch_init): Ditto.
4334 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4335 * frv-tdep.c (frv_gdbarch_init): Ditto.
4336 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4337 * cris-tdep.c (cris_gdbarch_init): Ditto.
4338 * avr-tdep.c (avr_gdbarch_init): Ditto.
4339 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4340
8d3b0994
AC
43412003-06-09 Andrew Cagney <cagney@redhat.com>
4342
4343 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4344 (print_frame_args): Moved to "stack.c".
4345 * stack.c: Include "gdb_assert.h".
4346 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4347 (print_frame_args): Moved from "printcmd.c".
4348 * frame.h (print_frame_args): Delete declaration.
4349 * Makefile.in (stack.o): Update dependencies.
4350
25e3a86b
AC
43512003-06-08 Andrew Cagney <cagney@redhat.com>
4352
4353 * frame.c (get_prev_frame): Remove reference to
4354 frame_args_address_correct in comments.
4355 * frame-base.c (default_frame_args_address): Delete code
4356 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4357 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4358 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4359 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4360 (vax_frame_args_address_correct): Delete declaration.
4361
a9e5fdc2
AC
43622003-06-08 Andrew Cagney <cagney@redhat.com>
4363
4364 * gdbarch.sh (UNWIND_SP): Add.
4365 * gdbarch.h, gdbarch.c: Re-generate.
4366 * frame.c (frame_sp_unwind): New function.
4367 (get_frame_sp): New function.
4368 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4369 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4370 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4371 value.
4372 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4373 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4374
8983bd83
AC
43752003-06-08 Andrew Cagney <cagney@redhat.com>
4376
7fec2c59
AC
4377 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4378 REMOTE_BREAKPOINT.
4379 * remote.c: Update.
4380 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4381 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4382 * config/m68k/tm-sun3.h: Update.
4383 * config/m68k/tm-m68klynx.h: Update.
4384 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4385
8983bd83
AC
4386 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4387 trad_frame". Update comments.
4388 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4389 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4390 (trad_frame_register_value, trad_frame_prev_register): Update.
4391
b9362cc7
AC
43922003-06-08 Andrew Cagney <cagney@redhat.com>
4393
4394 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4395 from GCC's acinclude.m4.
4396 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4397 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4398 * main.c (error_init): Delete declaration.
4399 * defs.h (error_init): Declare.
4400 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4401 (rs6000_convert_from_func_ptr_addr): Make static.
4402 (_initialize_rs6000_tdep): Add declaration.
4403 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4404 (show_commands, set_verbose, show_history): Delete declaration.
4405 * top.h (set_verbose): Add declaration.
4406 (show_history, set_history, show_commands): Add declaration.
4407 (do_restore_instream_cleanup): Add declaration.
4408 * objc-lang.c (specialcmp): Make static.
4409 (print_object_command): Make static.
4410 (find_objc_msgsend): Make static.
4411 (find_objc_msgcall_submethod_helper): Make static.
4412 (find_objc_msgcall_submethod): Make static.
4413 (_initialize_objc_language): Add declaration.
4414 (find_implementation_from_class): Make static.
4415 (find_implementation): Make static.
4416 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4417 * objc-lang.h (lookup_struct_typedef): Add declaration.
4418 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4419 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4420 (do_restore_user_call_depth): Make static.
4421 (do_restore_instream_cleanup): Delete declaration.
4422 (dont_repeat): Delete declaration.
4423 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4424 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4425 * reggroups.c (_initialize_reggroup): Add declaration.
4426 * cp-support.c (_initialize_cp_support): Add declaration.
4427 * cp-abi.c (_initialize_cp_abi): Add declaration.
4428 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4429 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4430 (_initialize_gnu_v3_abi): Add declaration.
4431 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4432 (_initialize_gnu_v2_abi): Add declaration.
4433 * frame-base.c (_initialize_frame_base): Add declaration.
4434 * doublest.c (floatformat_from_length): Make static.
4435 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4436 * frame.c (create_sentinel_frame): Make static.
4437 (_initialize_frame): Add declaration.
4438 * top.c (do_catch_errors): Make static.
4439 (gdb_rl_operate_and_get_next_completion): Make static.
4440 * typeprint.c: Include "typeprint.h".
4441 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4442 (sentinel_frame_this_id): Make static.
4443 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4444 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4445 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4446 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4447 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4448 * maint.c (maintenance_print_architecture): Make static.
4449 * signals/signals.c (_initialize_signals): Add declaration.
4450 * std-regs.c (_initialize_frame_reg): Add declaration.
4451 * jv-exp.y (push_variable): ISO C definition.
4452 (push_qualified_expression_name): Ditto.
4453 * memattr.c (_initialize_mem): Add declaration.
4454 * remote.c (remote_check_watch_resources): Make static.
4455 (remote_stopped_by_watchpoint): Make static.
4456 (remote_stopped_data_address): Make static.
4457 * d10v-tdep.c (nr_dmap_regs): Make static.
4458 (a0_regnum): Make static.
4459 (d10v_frame_unwind_cache): Make static.
4460 (d10v_frame_p): Make static.
4461 * osabi.c (show_osabi): Make static.
4462 (_initialize_gdb_osabi): Add extern declaration.
4463 * gdbtypes.c (make_qualified_type): Make static.
4464 (safe_parse_type): Make static.
4465 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4466 * macrotab.c (macro_bcache_free): Make static.
4467 * interps.c (interp_set_quiet): Make static.
4468 (interpreter_exec_cmd): Make static.
4469 * stack.h (select_frame_command): New file.
4470 * stack.c: Include "stack.h".
4471 (select_frame_command_wrapper): Delete function.
4472 (select_frame_command): Make global.
4473 * infcall.c: Include "infcall.h".
4474 * linespec.c: Include "linespec.h".
4475 * symfile.c (sections_overlap): Make static.
4476 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4477 * charset.c (_initialize_charset): Add missing prototype.
4478 * regcache.c (init_legacy_regcache_descr): Make static.
4479 (do_regcache_xfree): Make static.
4480 (regcache_xfer_part): Make static.
4481 (_initialize_regcache): Add missing prototype.
4482 * breakpoint.c (parse_breakpoint_sals): Make static.
4483 (breakpoint_sals_to_pc): Make static.
4484 * interps.h (clear_interpreter_hooks): ISO C declaration.
4485 * Makefile.in (stack_h): Define.
4486 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4487 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4488
a0f267c7
AC
44892003-06-08 Andrew Cagney <cagney@redhat.com>
4490
4491 * Makefile.in (d10v-tdep.o): Update dependencies.
4492 (SFILES): Add trad-frame.c.
4493 (trad_frame_h): Define.
4494 (COMMON_OBS): Add trad-frame.o.
4495 (trad-frame.o): Specify dependencies.
4496 * d10v-tdep.c: Include "trad-frame.h".
4497 (saved_regs_unwinder): Delete function.
4498 (d10v_frame_prev_register): Use trad_frame_prev_register.
4499 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4500 trad_frame", delete "regs" and "prev_sp".
4501 (prologue_find_regs): Use trad-frame.
4502 * trad-frame.h, trad-frame.c: New files.
4503
4538b4f4
MK
45042003-06-08 Mark Kettenis <kettenis@gnu.org>
4505
4506 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4507
a0273b2f
AF
45082003-06-07 Adam Fedor <fedor@gnu.org>
4509
4510 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4511 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4512 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4513 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4514 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4515 Use it.
4516
3a6c3343
AC
45172003-06-07 Andrew Cagney <cagney@redhat.com>
4518
4519 * symfile.h: Re-indent, clean up comments.
4520
b46e02f6
AC
45212003-06-07 Andrew Cagney <cagney@redhat.com>
4522
4523 * inferior.h (deprecated_write_sp): Replace
4524 generic_target_write_sp.
4525 * regcache.c (deprecated_write_sp): Replace
4526 generic_target_write_sp.
4527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4528 * vax-tdep.c (vax_gdbarch_init): Update.
4529 * v850-tdep.c (v850_gdbarch_init): Update.
4530 * sparc-tdep.c (sparc_gdbarch_init): Update.
4531 * sh-tdep.c (sh_gdbarch_init): Update.
4532 * s390-tdep.c (s390_gdbarch_init): Update.
4533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4534 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4535 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4536 * mcore-tdep.c (mcore_gdbarch_init): Update.
4537 * m68k-tdep.c (m68k_gdbarch_init): Update.
4538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4539 * ia64-tdep.c (ia64_gdbarch_init): Update.
4540 * h8300-tdep.c (h8300_gdbarch_init): Update.
4541 * frv-tdep.c (frv_gdbarch_init): Update.
4542 * cris-tdep.c (cris_gdbarch_init): Update.
4543 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4544
a42e117c
AC
45452003-06-07 Andrew Cagney <cagney@redhat.com>
4546
4547 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4548 Assert that PC_REGNUM is valid.
4549 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4550
bd1ce8ba
AC
45512003-06-07 Andrew Cagney <cagney@redhat.com>
4552
4553 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4554 * gdbarch.h, gdbarch.c: Regenerate.
4555 * mn10300-tdep.c: Include "gdb_assert.h".
4556 (mn10300_read_fp): New function.
4557 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4558 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4559 * ia64-tdep.c: Include "gdb_assert.h".
4560 (ia64_read_fp): New function.
4561 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4562 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4563 * regcache.c (generic_target_read_sp): Delete function.
4564 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4565 * inferior.h (generic_target_read_sp): Delete declaration.
4566 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4567 generic_target_read_sp.
4568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4569 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4570 * sh-tdep.c (sh_gdbarch_init): Ditto.
4571 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4572 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4573
ec5cbaec
AC
45742003-06-07 Andrew Cagney <cagney@redhat.com>
4575
4576 * gdbarch.sh: Comment each field of startup_gdbarch.
4577 * gdbarch.h, gdbarch.c: Re-generate.
4578
cde9ea48
AC
45792003-06-07 Andrew Cagney <cagney@redhat.com>
4580
4581 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4582 * gdbarch.h, gdbarch.c: Re-generate.
4583 * regcache.c: Update comments on read_pc et.al.
4584 (generic_target_read_pc): Delete function.
4585 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4586 * inferior.h (generic_target_read_pc): Delete declaration.
4587 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4588 generic_target_read_pc.
4589 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4590 * sh-tdep.c (sh_gdbarch_init): Ditto.
4591 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4593
9a90a780
AC
45942003-06-07 Andrew Cagney <cagney@redhat.com>
4595
4596 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4597 "index" with "special_local_sect". Use strcmp instead of STREQ.
4598 Append period to coments.
4599
a39a16c4
MM
46002003-06-06 Mark Mitchell <mark@codesourcery.com>
4601
4602 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4603 (elfstab_offset_sections): Likewise.
4604 * gdb-stabs.h (stab_section_info): Likewise.
4605 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4606 * objfiles.c (objfile_relocate): Likewise.
4607 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4608 * remote.c (get_offsets): Likewise.
4609 (remote_cisco_objfile_relocate): Likewise.
4610 * somread.c (som_symfile_offsets): Likewise.
4611 * symfile.c (alloc_section_addr_info): New function.
4612 (build_section_addr_info_from_section_tab): Use it.
4613 (free_section_addr_info): Adjust.
4614 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4615 (syms_from_objfile): Allocate local_addr dynamically.
4616 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4617 dynamically.
4618 (add_symbol_file_command): Allocate sect_opts dynamically.
4619 (reread_symbols): Avoid use of SECT_OFF_MAX.
4620 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4621 (alloc_section_addr_info): Declare it.
4622 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4623 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4624 dynamically.
4625 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4626
20c6c2f8
AC
46272003-06-06 Andrew Cagney <cagney@redhat.com>
4628
4629 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4630 (d10v_frame_unwind_cache): Do not set "return_pc".
4631
884a26c8
MS
46322003-06-06 Michael Snyder <msnyder@redhat.com>
4633
4634 * h8300-tdep.c: Make tidy (long lines).
4635
088ce440
ML
46362003-06-06 Michal Ludvig <mludvig@suse.cz>
4637
8ffd9b1b 4638 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4639 to regcache_collect().
4640
7d773d96
JB
46412003-06-05 J. Brobecker <brobecker@gnat.com>
4642
4643 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4644 pc_in_sigtramp multiarch method.
4645 (hppa_hpux_som_init_abi): Use it.
4646 (hppa_hpux_elf_init_abi): Likewise.
4647 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4648 macro has been multiarched.
4649 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4650 macro here, as hppa64 isn't multiarched yet.
4651
1df6926e
AC
46522003-06-05 Andrew Cagney <cagney@redhat.com>
4653
4654 * Makefile.in (value_h): Add $(frame_h).
4655 * value.h: Include "frame.h".
4656 (struct value): Replace "frame_addr" with "frame_id".
4657 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4658 * values.c (allocate_value): Use VALUE_FRAME_ID.
4659 (value_copy): Use VALUE_FRAME_ID.
4660 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4661 * valops.c (value_assign): Update. Use frame_find_by_id.
4662
6b53acc6
ML
46632003-06-05 Michal Ludvig <mludvig@suse.cz>
4664
4665 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4666 in each pass.
4667
4d9850d3
JJ
46682003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4669
4670 * thread-db.c (check_event): For create/death event breakpoints,
4671 loop through all messages to ensure that we read the message
4672 corresponding to the breakpoint we are at.
4673
8efca6ba
MS
46742003-06-04 Michael Snyder <msnyder@redhat.com>
4675
4676 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4677
0912c7f2
MK
46782003-06-04 Mark Kettenis <kettenis@gnu.org>
4679
4680 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4681 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4682 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4683 when handling .eh_frame sections.
4684
4e370325
JB
46852003-06-04 J. Brobecker <brobecker@gnat.com>
4686
4687 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4688 prepare_to_proceed procedure instead of the hppa-specific one.
4689 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4690
b757528f 46912003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4692
b757528f
JJ
4693 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4694 * config.in: Regenerated.
4695 * configure.in: Add test for syscall function and check for
4696 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4697 * configure: Regenerated.
4698 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4699 <sys/syscall.h>.
4700 (kill_lwp): New function that uses tkill syscall or
4701 uses kill, depending on whether threading model is nptl or not.
4702 All callers of kill() changed to use kill_lwp().
4703 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4704 see if all threads have already exited in the nptl model.
4705 (stop_and_resume_callback): New callback function used by the
4706 lin_lwp_wait thread exit handling code.
4707 (stop_wait_callback): Check for threads already having exited and
4708 delete such threads fromt the lwp list when discovered.
4709 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4710
b757528f
JJ
4711 Roland McGrath <roland@redhat.com>
4712 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4713 nptl libthread_db.
4714
087779b1
RH
47152003-06-03 Richard Henderson <rth@redhat.com>
4716
b21fd293
RH
4717 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4718 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4719 (alpha_sigtramp_frame_prev_register): Likewise.
4720 (alpha_heuristic_frame_prev_register): Likewise.
4721 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4722
8ffd9b1b 4723 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4724 alpha-specific register id names.
4725 (alpha_mdebug_frame_unwind_cache): Likewise.
4726 (alpha_mdebug_frame_prev_register): Likewise.
4727
baa490c4
RH
47282003-06-03 Richard Henderson <rth@redhat.com>
4729
4730 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4731 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4732 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4733 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4734 unwind routines.
4735 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4736 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4737 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4738
4739 * alpha-linux-tdep.c: Remove unnecessary includes.
4740 * Makefile.in (alpha-linux-tdep.o): Update.
4741
47422003-06-03 Richard Henderson <rth@redhat.com>
4743
4744 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4745 (alphabsd_fill_fpreg): Likewise.
4746
f534e522
JB
47472003-06-03 J. Brobecker <brobecker@gnat.com>
4748
4749 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4750 references to struct frame_info fields by calls to the equivalent
4751 accessors. Necessary now that frame_info is opaque.
4752
4035536b
JB
47532003-06-03 J. Brobecker <brobecker@gnat.com>
4754
4755 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4756 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4757 structure, field no longer exists.
4758
0bd79c5c
JB
47592003-06-03 J. Brobecker <brobecker@gnat.com>
4760
4761 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4762 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4763
37bb6d9f
JB
47642003-06-03 J. Brobecker <brobecker@gnat.com>
4765
4766 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4767 references to struct frame_info fields by calls to the equivalent
4768 accessors. Necessary now that frame_info is opaque.
4769
852ee05c
JB
47702003-06-03 J. Brobecker <brobecker@gnat.com>
4771
4772 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4773 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4774 structure, field no longer exists.
4775
7d58c67d
TR
47762003-06-03 Theodore A. Roth <troth@openavr.org>
4777
8ffd9b1b 4778 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4779 accumulation of the size of all registers instead of blindly using
4780 DEPRECATED_REGISTER_BYTES.
4781
0a48e7e8
MS
47822003-06-03 Michael Snyder <msnyder@redhat.com>
4783
4784 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4785 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4786 for h8300sx.
4787
9798ab0d
JB
47882003-06-03 J. Brobecker <brobecker@gnat.com>
4789
4790 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4791 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4792
00b037e2
AC
47932003-06-03 Andrew Cagney <cagney@redhat.com>
4794
4795 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4796 (sparc_convert_to_raw): Delete function.
4797 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4798 register_convert_to_virtual.
4799
043b2f77
JJ
48002003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4801
4802 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4803 layer if not dealing with a statically-linked threaded program.
4804
f43caff8
KW
48052003-06-03 Kris Warkentin <kewarken@qnx.com>
4806
4807 * solib.c (solib_open): Update comment to reflect actual search order.
4808
ae1e7417
AC
48092003-06-03 Andrew Cagney <cagney@redhat.com>
4810
4811 * frame.c (get_frame_memory_signed): New function.
4812 (get_frame_memory, get_frame_memory_unsigned): New function.
4813 (get_frame_arch): New function.
4814 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4815 (get_frame_memory, get_frame_unsigned_memory): Declare.
4816 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4817 get_frame_memory_unsigned and get_frame_arch.
4818 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4819
cb123844
RG
48202003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4821
4822 * MAINTAINERS (write after approval): Add myself.
4823
1bb792e9
JB
48242003-06-03 Jim Blandy <jimb@redhat.com>
4825
4826 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4827 elements of gregset_t are 64 bits each, but access registers
4828 are still 32 bits, so they're packed two per gregset_t
4829 element. Unpack/pack them properly.
4830
aee8d8ba
DC
48312003-06-02 David Carlton <carlton@bactrian.org>
4832
4833 * linespec.c (find_methods): Break out code into
4834 add_matching_methods and add_constructors.
4835 (add_matching_methods): New.
4836 (add_constructors): Ditto.
4837
bf7488d2
AC
48382003-06-02 Andrew Cagney <cagney@redhat.com>
4839
bf7488d2
AC
4840 * sparc-tdep.c (sparc_print_registers): Delete call to
4841 REGISTER_CONVERTIBLE.
4842 (sparc_gdbarch_init): Do not set register_convertible.
4843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4844 * frv-tdep.c (frv_gdbarch_init): Ditto.
4845 * cris-tdep.c (cris_gdbarch_init): Ditto.
4846
adedef68
EZ
48472003-06-02 Elena Zannoni <ezannoni@redhat.com>
4848
8ffd9b1b 4849 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4850 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4851 (syms_from_objfile): Ditto.
4852
650fcc91
AS
48532003-06-03 Andreas Schwab <schwab@suse.de>
4854
4855 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4856 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4857
df4a182b
RH
48582003-06-02 Richard Henderson <rth@redhat.com>
4859
4860 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4861 a member of all_reggroup.
4862
c483c494
RH
48632003-06-02 Richard Henderson <rth@redhat.com>
4864
4865 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4866 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4867 (alpha_lds, alpha_sts): New.
4868 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4869 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4870 restructure and fail for type sizes other than 4 or 8.
4871 (alpha_value_to_register): Similarly.
4872 (alpha_extract_return_value): Use alpha_sts.
4873 (alpha_store_return_value): Use alpha_lds.
4874 (alpha_gdbarch_init): Update hooks.
4875
b38b6be2
RH
48762003-06-02 Richard Henderson <rth@redhat.com>
4877
4878 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4879 regnum identifiers.
4880 (alpha_sigtramp_register_address): Likewise.
4881
98a8e1e5
RH
48822003-06-02 Richard Henderson <rth@redhat.com>
4883
4884 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4885 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4886 * alpha-tdep.h: Declare them.
4887
4888 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4889 Remove zerobuf. Don't error on UNIQUE.
4890 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4891 (ALPHA_REGSET_UNIQUE): Provide default.
4892 (supply_gregset): Use alpha_supply_int_regs.
4893 (fill_gregset): Use alpha_fill_int_regs.
4894 (supply_fpregset): Use alpha_supply_fp_regs.
4895 (fill_fpregset): Use alpha_fill_fp_regs.
4896 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4897 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4898 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4899 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4900 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4901 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4902
67dfac52
RH
49032003-06-02 Richard Henderson <rth@redhat.com>
4904
f75d70cc
RH
4905 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4906
67dfac52
RH
4907 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4908 (alpha_store_return_value): Likewise.
4909
0cf566ec
DC
49102003-06-02 David Carlton <carlton@math.stanford.edu>
4911
4912 * block.c (contained_in): Add 'const' to arguments.
4913 (block_function): Ditto.
4914 * block.h: Update declarations for block_function and
4915 contained_in.
4916
cdef89d0
DC
49172003-06-02 David Carlton <carlton@math.stanford.edu>
4918
4919 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4920 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4921 * p-valprint.c (pascal_val_print): Ditto.
4922 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4923
72667056
RH
49242003-06-02 Richard Henderson <rth@redhat.com>
4925
98a8e1e5
RH
4926 * alpha-tdep.c (alpha_push_dummy_call): Use
4927 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4928
8ffd9b1b 4929 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4930 sign-extension of 32-bit values.
4931 (alpha_store_return_value): Similarly.
0ede8eca 4932
98a8e1e5
RH
4933 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4934 (alpha_extract_return_value): Likewise.
4935 (alpha_store_return_value): Likewise.
7b5e1cb3 4936
98a8e1e5
RH
4937 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4938 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4939
98a8e1e5
RH
4940 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4941 (alpha_extract_struct_value_address): Likewise.
4942 (alpha_store_return_value): Likewise.
4943 (alpha_store_struct_return): Remove.
4944 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4945
98a8e1e5
RH
4946 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4947 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4948 macros where appropriate.
4949 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4950 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4951
98a8e1e5
RH
4952 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4953 for SP, GP; void_func_ptr for PC; non-language-specific types
4954 for all others.
4955 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4956
6dd77b81
RH
49572003-06-02 Richard Henderson <rth@redhat.com>
4958
4959 * top.h (lim_at_start): Declare.
4960 * main.c (captured_main): Set it.
4961 * top.c (lim_at_start): Define.
4962 (command_loop): Use it instead of &environ.
4963 * event-top.c (command_handler): Likewise.
4964
f4dbdb54
JT
49652003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4966
4967 * mipsnbsd-tdep.c: Update copyright years.
4968 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4969
8f285956
RH
49702003-06-01 Richard Henderson <rth@redhat.com>
4971
98a8e1e5
RH
4972 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4973 (alpha-linux-tdep.o): Update dependencies.
4974 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4975 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4976
615967cb
RH
49772003-06-01 Richard Henderson <rth@redhat.com>
4978
98a8e1e5
RH
4979 * alpha-tdep.c (alpha_register_reggroup_p): New.
4980 (alpha_gdbarch_init): Register it.
615967cb 4981
b59661bd
AC
49822003-06-02 Andrew Cagney <cagney@redhat.com>
4983
4984 * dwarfread.c: Eliminate "register"
4985 (decode_die_type): Eliminate assignment within "if".
4986 (struct_type, decode_array_element_type): Ditto.
4987 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4988 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4989 (decode_modified_type, completedieinfo): Ditto.
4990 * block.c: Eliminate "register".
4991 (blockvector_for_pc_sect): Eliminate assignment within "if".
4992 * cp-support.h (struct symbol): Opaque declaration.
4993 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4994
5ef165c2
RH
49952003-06-01 Richard Henderson <rth@redhat.com>
4996
98a8e1e5
RH
4997 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4998 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4999
143985b7
AF
50002003-06-01 Adam Fedor <fedor@gnu.org>
5001
5002 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5003 * gdbarch.[ch]: Regenerate.
5004 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5005 (hppa_gdbarch_init): Set it in the gdbarch vector.
5006 * i386-tdep.c (i386_fetch_pointer_argument): New
5007 (i386_gdbarch_init): Set it into gdbarch.
5008 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5009 (rs6000_gdbarch_init): Set it in gdbarch.
5010 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5011 (sparc_gdbarch_init): Set it in gdbarch.
5012
ae0167b9
AC
50132003-06-01 Andrew Cagney <cagney@redhat.com>
5014
7c0b4a20
AC
5015 * defs.h (extract_address): Delete declaration.
5016 * findvar.c (extract_address): Delete function.
5017 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5018 extract_address with the inline equivalent,
5019 extract_unsigned_integer.
5020 (xstormy16_extract_struct_value_address): Ditto.
5021 (xstormy16_pointer_to_address): Ditto.
5022 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5023 * v850-tdep.c (v850_push_arguments): Ditto.
5024 (v850_extract_return_value): Ditto.
5025 (v850_extract_struct_value_address): Ditto.
5026 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5027 (sparcnbsd_get_longjmp_target_64): Ditto.
5028 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5029 (get_longjmp_target): Ditto.
5030 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5031 (sh64_extract_struct_value_address): Ditto.
5032 (sh_push_arguments): Ditto.
5033 (sh64_push_arguments): Ditto.
5034 * remote-vxsparc.c (vx_read_register): Ditto.
5035 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5036 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5037 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5038 * mipsv4-nat.c (get_longjmp_target): Ditto.
5039 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5040 * mips-nat.c (get_longjmp_target): Ditto.
5041 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5042 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5043 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5044 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5045 * irix5-nat.c (get_longjmp_target): Ditto.
5046 * irix4-nat.c (get_longjmp_target): Ditto.
5047 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5048 (ia64_push_arguments): Ditto.
5049 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5050 * h8300-tdep.c (h8300_push_arguments): Ditto.
5051 (h8300_store_return_value): Ditto.
5052 (h8300_extract_struct_value_address): Ditto.
5053 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5054 (frv_push_arguments): Ditto.
5055 * avr-tdep.c (avr_pointer_to_address): Ditto.
5056 (avr_push_arguments): Ditto.
5057 * arm-tdep.c (arm_push_dummy_call): Ditto.
5058 (arm_get_longjmp_target): Ditto.
5059 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5060 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5061 (alpha_get_longjmp_target): Ditto.
5062
ae0167b9
AC
5063 * solib-irix.c (extract_mips_address): Inline extract_address,
5064 replacing it with extract_signed_integer.
5065 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5066 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5067 (first_link_map_member, open_symbol_file_object): Ditto.
5068 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5069 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5070 (LM_NEXT, LM_NAME): Ditto.
5071
44d88583
RH
50722003-06-01 Richard Henderson <rth@redhat.com>
5073
98a8e1e5
RH
5074 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5075 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5076 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5077 (alpha_cannot_store_register): Likewise.
5078 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5079 * alpha-nat.c (supply_gregset): Likewise.
5080 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5081
310e9b6a
AC
50822003-06-01 Andrew Cagney <cagney@redhat.com>
5083
5084 * infcall.c (call_function_by_hand): Update comment on
5085 DEPRECATED_DUMMY_WRITE_SP.
5086
5087 * mips-tdep.c (mips_gdbarch_init): Do not set
5088 deprecated_dummy_write_sp.
5089 (mips_eabi_push_dummy_call): Set the SP register.
5090 (mips_o64_push_dummy_call): Set the SP register.
5091 (mips_o32_push_dummy_call): Set the SP register.
5092 (mips_n32n64_push_dummy_call): Set the SP register.
5093
5ab84872
RH
50942003-06-01 Richard Henderson <rth@redhat.com>
5095
98a8e1e5
RH
5096 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5097 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5098 (supply_gregset): Likewise.
5099 * alpha-tdep.c (alpha_store_return_value): Likewise.
5100 (alpha_get_longjmp_target): Likewise.
5101 (alpha_register_name): Constify array.
5102 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5103 deprecated_register_size, deprecated_register_bytes,
5104 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5105 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5106 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5107
09cc52fd
RH
51082003-06-01 Richard Henderson <rth@redhat.com>
5109
5110 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5111 from arg_reg_buffer to regcache to avoid double conversion.
5112
c7f16359
MK
51132003-06-01 Mark Kettenis <kettenis@gnu.org>
5114
5115 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5116 SP_REGNUM.
5117 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5118 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5119
7131cb6e
RH
51202003-06-01 Richard Henderson <rth@redhat.com>
5121
98a8e1e5
RH
5122 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5123 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5124
f3e0f90b
RH
51252003-06-01 Richard Henderson <rth@redhat.com>
5126
98a8e1e5
RH
5127 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5128 not overlapping PC_REGNUM.
f3e0f90b 5129
c88e30c0
RH
51302003-06-01 Richard Henderson <rth@redhat.com>
5131
98a8e1e5
RH
5132 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5133 alpha_push_arguments. Don't dump argument register data to
5134 the target stack. Fix float and 128-bit long double semantics.
5135 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5136 (alpha_fix_call_dummy): Remove.
5137 (alpha_call_dummy_words): Remove.
5138 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5139
f1a559ae
RH
51402003-06-01 Richard Henderson <rth@redhat.com>
5141
5142 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5143
5e045346
AC
51442003-06-01 Andrew Cagney <cagney@redhat.com>
5145
95404a3e
AC
5146 * mips-tdep.c (is_mips16_addr): New function.
5147 (make_mips16_addr, unmake_mips16_addr): New functions.
5148 (pc_is_mips16, mips_fetch_instruction): Use.
5149 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5150 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5151 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5152 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5153 TARGET_MIPS.
5154 * config/mips/tm-mips.h: Update copyright.
5155 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5156 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5157 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5158 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5159 (TM_PRINT_INSN_MACH): Delete.
5160 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5161
5e045346
AC
5162 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5163 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5164 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5165 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5166 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5167 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5168 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5169 mips*-*-riscos* and mips*-*-sysv* onto mips.
5170 * config/mips/mips64.mt: New file.
5171 * config/mips/mips.mt: New file.
5172 * config/mips/littlemips.mt: Delete file.
5173 * config/mips/decstation.mt: Delete file.
5174 * config/mips/vr4300el.mt: Delete file.
5175 * config/mips/vr5000el.mt: Delete file.
5176 * config/mips/vr5000.mt: Delete file.
5177 * config/mips/vr4100.mt: Delete file.
5178 * config/mips/vr4xxxel.mt: Delete file.
5179 * config/mips/vr4300.mt: Delete file.
5180 * config/mips/vr4xxx.mt: Delete file.
5181 * config/mips/bigmips.mt: Delete file.
5182 * config/mips/bigmips64.mt: Delete file.
5183 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5184 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5185 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5186 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5187 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5188 "tm-bigmips.h".
5189 * config/mips/tm-irix3.h: Ditto.
5190 * config/mips/tm-mipsv4.h: Ditto.
5191 * config/mips/tm-embed.h: Ditto.
5192 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5193 "tm-bigmips64.h".
5194 * config/mips/tm-vr5000el.h: Delete file.
5195 * config/mips/tm-tx39l.h: Delete file.
5196 * config/mips/tm-vr4300el.h: Delete file.
5197 * config/mips/tm-vr4xxxel.h: Delete file.
5198 * config/mips/tm-vr4300.h: Delete file.
5199 * config/mips/tm-vr4100.h: Delete file.
5200 * config/mips/tm-vr4xxx.h: Delete file.
5201 * config/mips/tm-vr5000.h: Delete file.
5202 * config/mips/tm-embedl64.h: Delete file.
5203 * config/mips/tm-embedl.h: Delete file.
5204 * config/mips/tm-embed64.h: Delete file.
5205 * config/mips/tm-bigmips64.h: Delete file.
5206 * config/mips/tm-bigmips.h: Delete file.
5207
2473a4a9
MK
52082003-06-01 Mark Kettenis <kettenis@gnu.org>
5209
97a5b208
MK
5210 Fix gdb/1216.
5211 * shnbsd-nat.c: Include "sh-tdep.h".
5212
2473a4a9
MK
5213 From Richard Henderson <rth@redhat.com>:
5214 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5215
e0f7ec59
AC
52162003-05-31 Andrew Cagney <cagney@redhat.com>
5217
5218 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5219 forward declaration.
5220 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5221 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5222 (mips_find_saved_regs): Use set_reg_offset.
5223 (mips_frame_init_saved_regs): Delete function.
5224 (mips_pop_frame): Call mips_find_saved_regs instead of
5225 DEPRECATED_FRAME_INIT_SAVED_REGS.
5226
68dcc709
AC
52272003-05-31 Andrew Cagney <cagney@redhat.com>
5228
5229 * mips-tdep.c (mips_gdbarch_init): Do not set
5230 deprecated_max_register_raw_size, register_virtual_size, and
5231 deprecated_max_register_virtual_size.
5232
cfc14b3a
MK
52332003-05-31 Mark Kettenis <kettenis@gnu.org>
5234
6405b0a6
MK
5235 * i386-tdep.c: Include "dwarf2-frame.h".
5236 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5237 * Makefile.in (i386-tdep.o): Update dependencies.
5238
cfc14b3a
MK
5239 * dwarf2-frame.c, dwarf2-frame.h: New files.
5240 * Makefile.in (SFILES): Add dwarf2-frame.c.
5241 (dwarf2_frame_h): Define.
5242 (COMMON_OBS): Add dwarf2-frame.o.
5243 (dwarf2-frame.o): Add dependencies.
5244
6a2751d2
AJ
52452003-05-31 Andreas Jaeger <aj@suse.de>
5246
5247 * x86-64-linux-nat.c: Fix comment.
5248
1c3545ae
MK
52492003-05-31 Mark Kettenis <kettenis@gnu.org>
5250
10f93086
MK
5251 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5252 function signature.
5253
1c3545ae
MK
5254 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5255 have a sigcontext_addr handler.
5256 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5257 sigcontext_addr handler.
5258
e11c53d2
AC
52592003-05-31 Andrew Cagney <cagney@redhat.com>
5260
5261 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5262 (print_fp_register_row): Replace do_fp_register_row.
5263 (mips_print_fp_register): Add "file" and "frame" parameters.
5264 (mips_print_register): Add "file" and "frame" parameters.
5265 (mips_print_registers_info): Replace mips_do_registers_info.
5266 (mips_gdbarch_init): Set print_registers_info instead of
5267 deprecated_do_registers_info.
5268 (mips_read_fp_register_single): Add "frame" parameter.
5269 (mips_read_fp_register_double): Add "frame" parameter.
5270
a3386186
MK
52712003-05-31 Mark Kettenis <kettenis@gnu.org>
5272
70913449
MK
5273 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5274 Fixes a bug where GDB would print the wrong register names for
5275 targets without SSE.
5276
2b5e0749
MK
5277 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5278 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5279 registers.
5280
5281 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5282 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5283 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5284 TDEP->sc_sp_offset.
5285
a3386186
MK
5286 From Michal Ludvig <mludvig@suse.cz>:
5287 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5288 and `sc_num_regs'.
5289 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5290 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5291 I386_ST0_REGNUM): Move here from...
5292 * i386-tdep.c: ... here.
5293 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5294 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5295 registers if possible.
5296 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5297 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5298 Remove variables.
5299 (i386bsd_sc_reg_offset): New variable.
5300 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5301 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5302 TDEP->sc_sp_offset.
5303 (i386fbsd_sc_reg_offset): New variable.
5304 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5305 TDEP->sc_num_regs.
5306 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5307 variables.
5308 (i386fbsd4_sc_reg_offset): New variable.
5309 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5310 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5311 TDEP->sc_sp_offset.
5312 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5313 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5314 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5315 Remove variables.
5316 (i386nbsd_sc_reg_offset): New variable.
5317 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5318 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5319 TDEP->sc_sp_offset.
5320 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5321 Remove variables.
5322 (i386obsd_sc_reg_offset): New variable.
5323 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5324 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5325 TDEP->sc_sp_offset.
5326 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5327 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5328 for frame pointer offset in `struct sigcontext'.
5329
25ab4790
AC
53302003-05-31 Andrew Cagney <cagney@redhat.com>
5331
5332 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5333 architecture methods call_dummy_words, sizeof_call_dummy_words,
5334 push_return_address, store_struct_return, and fix_call_dummy. Set
5335 push_dummy_call instead of deprecated_push_arguments.
5336 (mips_store_struct_return): Delete function.
5337 (mips_fix_call_dummy): Delete function.
5338 (mips_push_return_address): Delete function.
5339 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5340 RA_REGNUM and T9_REGNUM.
5341 (mips_n32n64_push_dummy_call): Ditto for
5342 mips_n32n64_push_arguments.
5343 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5344 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5345
6a65450a
AC
53462003-05-31 Andrew Cagney <cagney@redhat.com>
5347
5348 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5349 "dummy_addr" to "bp_addr".
5350 * infcall.c (call_function_by_hand): Pass "funaddr" to
5351 gdbarch_push_dummy_call.
5352 * gdbarch.h, gdbarch.c: Re-generate.
5353 * i386-tdep.c (i386_push_dummy_call): Update.
5354 * arm-tdep.c (arm_push_dummy_call): Update.
5355 * d10v-tdep.c (d10v_push_dummy_call): Update.
5356
c4f35dd8
MK
53572003-05-31 Mark Kettenis <kettenis@gnu.org>
5358
5359 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5360 variable declarations.
5361 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5362 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5363 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5364 x86_64_init_frame_pc, x86_64_init_frame_pc,
5365 x86_64_function_has_prologue): Remove prototypes.
5366 (X86_64_NUM_GREGS): New define.
5367 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5368 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5369 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5370 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5371 XMM1_REGNUM): Remove defines.
5372 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5373 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5374 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5375 X86_64_XMM1_REGNUM): New defines.
5376 (struct x86_64_register_info): Renamed from `struct
5377 register_info'. Remove `size' member.
5378 (x86_64_register_info_table): Remove variable.
5379 (x86_64_register_info): New variable.
5380 (X86_64_NUM_REGS): New define.
5381 (X86_64_NUM_GREGS): Remove define.
5382 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5383 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5384 Remove variables.
5385 (x86_54_dwarf2_reg_to_regnum): Remove function.
5386 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5387 (x86_64_dwarf_reg_to_regnum): New function.
5388 (x86_64_register_name): Rewrite.
5389 (x86_64_register_raw_size): Remove function.
5390 (x86_64_register_byte_table): Remove variable.
5391 (x86_64_register_byte): Remove function.
5392 (x86_64_register_virtual_type): Remove function.
5393 (x86_64_register_type): New function.
5394 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5395 x86_64_register_convert_to_raw): Remove functions.
5396 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5397 (x86_64_use_struct_convention): Make static. Adjust for renamed
5398 defines.
5399 (x86_64_frame_init_saved_regs): Remove function.
5400 (x86_64_push_arguments): Make static. Change to accept a regcache
5401 as argument.
5402 (x86_64_store_return_value, x86_64_extract_return_value): Make
5403 static. Rewrite based on i386 counterparts.
5404 (x86_64_push_dummy_call): New function.
5405 (X86_64_NUM_SAVED_REGS): New define.
5406 (x86_64_register_number): Remove function.
5407 (x86_64_store_struct_return): Remove function.
5408 (x86_64_frameless_function_invocation,
5409 x86_64_function_has_prologue): Remove functions.
5410 (PROLOG_BUFSIZE): Remove define.
5411 (struct x86_64_frame_cache): New structure.
5412 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5413 x86_64_frame_cache, x86_64_frame_this_id,
5414 x86_64_frame_prev_register, x86_64_frame_p,
5415 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5416 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5417 functions.
5418 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5419 variables.
5420 (x86_64_skip_prologue): Rewrite in terms of
5421 x86_64_analyze_prologue.
5422 (x86_64_frame_base_address): New function.
5423 (x86_64_frame_base): New variable.
5424 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5425 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5426 set deprecated_fp_regnum, deprecated_register_size,
5427 deprecated_register_bytes, register_raw_size, register_byte,
5428 register_virtual_type, register_convertiable,
5429 register_convert_to_virtual, convert_to_raw,
5430 deprecated_get_saved_register, deprecated_target_read_fp,
5431 deprecated_push_arguments, deprecated_push_return_address,
5432 deprecated_pop_frame, deprecated_store_struct_return,
5433 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5434 frameless_function_invocation, deprecated_frame_saved_pc,
5435 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5436 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5437 deprecated_init_frame_pc and virtual_frame_pointer. Call
5438 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5439 and x86_64_frame_p. Call frame_base_set_default to register
5440 x86_64_frame_base.
5441 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5442 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5443 (_initialize_x86_64_tdep): Remove function.
5444 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5445 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5446 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5447 define.
5448 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5449 (x86_64_linux_sigcontext_addr): Rewrite.
5450 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5451 x86_64_linux_frame_saved_pc): Remove functions.
5452 (x86_64_linux_pc_in_sigtramp): Renamed from
5453 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5454 trampoline.
5455 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5456 Remove_functions.
5457 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5458 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5459 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5460 (x86_64_regmap): Rename to regmap.
5461 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5462 x86_64_num_gregs.
5463 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5464 x86_64_regmap.
5465 (x86_64_fxsave_offset): Remove function.
5466 (supply_fpregset): Simply call x86_64_supply_fxsave.
5467 (fill_fpregset): Simply call x86_64_fill_fxsave.
5468 (fetch_inferior_registers, store_inferior_registers): Avoid
5469 asignment in if-statement.
5470 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5471 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5472 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5473 (fetch_core_registers): Remove function.
5474 (linux_elf_core_fns): Remove.
5475 (offsetoff): Don't define.
5476 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5477 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5478 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5479 add core-regset.o.
5480 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5481 protection against multiple includes instead of NM_X86_64_h. Add
5482 various comments. Include "config/nm-linux.h". Don't include
5483 <signal.h>.
5484 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5485 GET_THREAD_SIGNALS): Remove defines.
5486 (x86_64_register_u_addr, kernel_u_size,
5487 lin_thread_get_thread_signals): Remove prototypes.
5488 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5489 [HAVE_LINK_H]: Don't include "solib.h".
5490 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5491 * config/i386/tm-x86-64linux.h: Fix comments.
5492 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5493 x86-64-tdep.o): Update dependencies.
5494
c25083af
AC
54952003-05-30 Andrew Cagney <cagney@redhat.com>
5496
c8f55a7b
AC
5497 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5498 Change parameter type to a "struct regcache *".
5499
c25083af
AC
5500 * gdbarch.sh: Regardless of the multi-arch level, always define
5501 the macro when not already defined.
5502 * gdbarch.h, gdbarch.c: Re-generate.
5503
fbe586ae
RH
55042003-05-30 Richard Henderson <rth@redhat.com>
5505
5506 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5507 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5508 (alpha_mdebug_frame_this_id): Likewise.
5509 (alpha_mdebug_frame_prev_register): Likewise.
5510 (alpha_mdebug_frame_base_address): Likewise.
5511 (alpha_mdebug_frame_locals_address): Likewise.
5512 (alpha_mdebug_frame_args_address): Likewise.
5513 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5514 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5515 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5516 loop increment.
5517 (alpha_heuristic_frame_this_id): Make static.
5518 (alpha_heuristic_frame_prev_register): Likewise.
5519 (alpha_heuristic_frame_base_address): Likewise.
5520 * alpha-tdep.h: Update.
5521
acd5c798
MK
55222003-05-30 Mark Kettenis <kettenis@gnu.org>
5523
5524 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5525 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5526 defenitions.
5527 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5528 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5529 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5530 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5531 I386_ST0_REGNUM): New defines.
5532 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5533 codestream_get): Remove define.
5534 (codestream_next_addr, condestream_addr, condestream_buf,
5535 codestream_off, codestream_cnt): Remove variables.
5536 (codestream_fill, codestream_seek, codestream_read): Remove
5537 functions.
5538 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5539 functionality.
5540 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5541 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5542 i386_frame_saved_pc, i386_saved_pc_after_call,
5543 i386_frame_num_args, i386_frame_init_saved_regs,
5544 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5545 i386_push_arguments): Remove functions.
5546 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5547 functionality. Use i386_analyze_prologue instead of
5548 i386_get_frame_setup.
5549 (I386_NUM_SAVED_REGS): New define.
5550 (struct i386_frame_cache): New structure.
5551 (i386_alloc_frame_cache, i386_analyze_struct_return,
5552 i386_skip_probe, i386_analyze_frame_setup,
5553 i386_analyze_register_saves, i386_analyze_prologue,
5554 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5555 i386_frame_prev_register, i386_sigtramp_frame_cache,
5556 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5557 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5558 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5559 New functions.
5560 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5561 New variables.
5562 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5563 I386_EAX_REGNUM and I386_EDX_REGNUM.
5564 (i386_extract_return_value, i386_store_return_value): Use
5565 I386_ST0_REGNUM where appropriate.
5566 (i386_extract_struct_value_address): Rewrite to use extract_address.
5567 (i386_svr4_pc_in_sigtramp): Add comment.
5568 (i386_svr4_sigcontext_addr): Rewrite.
5569 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5570 TDEP->sc_sp_offset.
5571 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5572 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5573 of new defines. Set push_dummy_call, don't set
5574 deprecated_push_arguments, deprecated_push_return_address,
5575 deprecated_pop_frame. Don't set parm_boundary. Don't set
5576 deprecated_frame_chain, deprecated_frame_saved_pc,
5577 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5578 save_dummy_frame_tos, unwind_pc. Call
5579 frame_unwind_append_predicate and frame_base_set_default. Don't
5580 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5581 Don't set frameless_function_invocation. Don't set
5582 deprecated_register_bytes, deprecated_register_size,
5583 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5584 * i386-linux-tdep.c: Fix formatting in some comments.
5585 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5586 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5587 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5588 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5589 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5590 redundant parentheses.
5591 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5592 (i386_linux_sigcontext_addr): Use it. Rewrite.
5593 (find_minsym_and_objfile): Change name of second argument.
5594 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5595 changed. Use frame_pc_unwind instead of
5596 DEPRECATED_SAVED_PC_AFTER_CALL.
5597 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5598 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5599 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5600 unwinder.
5601 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5602 "dummy-frame.h".
5603 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5604 (_initialize_i386_cygwin_tdep): New prototype.
5605 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5606 deprecated_frame_chain_valid.
5607 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5608 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5609 Rely on the SVR4 defaults.
5610 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5611 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5612
c89b70f1
AC
56132003-05-30 Andrew Cagney <cagney@redhat.com>
5614
5615 * infcall.c (call_function_by_hand): Always call
5616 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5617
85b32d22
RH
56182003-05-30 Richard Henderson <rth@redhat.com>
5619
c89b70f1
AC
5620 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5621 increment.
85b32d22 5622
bfe51b1e
JB
56232003-05-29 Jim Blandy <jimb@redhat.com>
5624
5625 Use gdbarch methods for solib stuff on PowerPC Linux.
5626 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5627 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5628 show through.
5629 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5630 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5631 giving the same effect as the #definitions above.
5632
1abf022c
AF
56332003-05-29 Adam Fedor <fedor@gnu.org>
5634
5635 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5636 (find_implementation_from_class): Replace it with the standard
5637 case i.e. do nothing.
5638
d2427a71
RH
56392003-05-29 Richard Henderson <rth@redhat.com>
5640
5641 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5642 (alpha_linux_sigtramp_offset): Use it. Make static.
5643 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5644 update for new frame model.
5645 * alpha-mdebug-tdep.c: New file.
5646 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5647 (alpha_osf1_init_abi): Install it.
5648 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5649 (linked_proc_desc_table): Remove.
5650 (alpha_frame_past_sigtramp_frame): Remove.
5651 (alpha_dynamic_sigtramp_offset): Remove.
5652 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5653 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5654 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5655 (push_sigtramp_desc): Remove.
5656 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5657 (alpha_cannot_store_register): Likewise.
5658 (alpha_sigcontext_addr): Remove.
5659 (alpha_find_saved_regs): Remove.
5660 (alpha_frame_init_saved_regs): Remove.
5661 (alpha_init_frame_pc_first): Remove.
5662 (read_next_frame_reg): Remove.
5663 (alpha_frame_saved_pc): Remove.
5664 (alpha_saved_pc_after_call): Remove.
5665 (temp_proc_desc, temp_saved_regs): Remove.
5666 (alpha_about_to_return): Remove.
5667 (cached_proc_desc): Remove.
5668 (alpha_frame_chain): Remove.
5669 (alpha_print_extra_frame_info): Remove.
5670 (alpha_init_extra_frame_info): Remove.
5671 (alpha_frame_locals_address): Remove.
5672 (alpha_frame_args_address): Remove.
5673 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5674 (alpha_push_dummy_frame): Remove.
5675 (alpha_pop_frame): Remove.
5676 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5677 (alpha_read_insn): New.
5678 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5679 for different insn encodings.
5680 (alpha_in_lenient_prologue): Remove.
5681 (struct alpha_sigtramp_unwind_cache): New.
5682 (alpha_sigtramp_frame_unwind_cache): New.
5683 (alpha_sigtramp_register_address): New.
5684 (alpha_sigtramp_frame_this_id): New.
5685 (alpha_sigtramp_frame_prev_register): New.
5686 (alpha_sigtramp_frame_unwind): New.
5687 (alpha_sigtramp_frame_p): New.
5688 (struct alpha_heuristic_unwind_cache): New.
5689 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5690 don't count nop insns that occur between functions.
5691 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5692 heuristic_proc_desc, but without the mdebug wrapping.
5693 (alpha_heuristic_frame_this_id): New.
5694 (alpha_heuristic_frame_prev_register): New.
5695 (alpha_heuristic_frame_unwind): New.
5696 (alpha_heuristic_frame_p): New.
5697 (alpha_heuristic_frame_base_address): New.
5698 (alpha_heuristic_frame_base): New.
5699 (alpha_unwind_dummy_id): New.
5700 (alpha_unwind_pc): New.
5701 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5702 frame related deprecated initializations; install replacements.
5703 (alpha_dump_tdep): Remove.
5704 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5705 (alpha_read_insn, alpha_after_prologue,
5706 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5707 alpha_heuristic_frame_prev_register,
5708 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5709 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5710 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5711 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5712
93ec1121
AC
57132003-05-29 Andrew Cagney <cagney@redhat.com>
5714
5715 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5716 dependant on the availability of ASSERT_FUNCTION.
5717 (ASSERT_FUNCTION): Do not define when there is no function name.
5718
98f08d3d
KB
57192003-05-29 Kevin Buettner <kevinb@redhat.com>
5720
5721 From Jimi X <jimix@watson.ibm.com>:
5722 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5723
0897f59b
JB
57242003-05-28 Jim Blandy <jimb@redhat.com>
5725
5726 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5727 argument to ptrace to int; the system headers should give it the
5728 right type, and pointers don't fit in ints on powerpc64-*-*.
5729
14898363
L
57302003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5731
5732 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5733 DW_TAG_catch_block.
5734
a7a48797
EZ
57352003-05-26 Elena Zannoni <ezannoni@redhat.com>
5736
5737 * stabsread.c (dbx_lookup_type): Make static.
5738 (read_type): Ditto.
5739 (add_undefined_type): Ditto.
5740 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5741 not export.
5742
f5479e9c
EZ
57432003-05-26 Elena Zannoni <ezannoni@redhat.com>
5744
5745 * hpread.c (hpread_has_name): Make static.
5746 (hpread_psymtab_to_symtab): Ditto.
5747 (file_exists): Ditto.
5748 (hpread_call_pxdb): Ditto.
5749 (hpread_pxdb_needed): Ditto.
5750 (hpread_quick_traverse): Ditto.
5751 (hpread_get_header): Ditto.
5752 (hpread_get_lntt): Ditto.
5753 (hpread_get_slt): Ditto.
5754 (class_of): Ditto.
5755
eb2e12d7
AS
57562003-05-25 Andreas Schwab <schwab@suse.de>
5757
78bf922a
AS
5758 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5759 stack_align and deprecated_extra_stack_alignment_needed.
5760 (m68k_stack_align): Delete.
5761
eb2e12d7
AS
5762 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5763 (m68k_register_virtual_size): Likewise.
5764 (altos_skip_prologue): Remove obsolete function.
5765 (isi_frame_num_args): Likewise.
5766 (news_frame_num_args): Likewise.
5767 (m68k_fix_call_dummy): Make static.
5768 (m68k_push_dummy_frame): Likewise.
5769 (m68k_pop_frame): Likewise.
5770 (m68k_skip_prologue): Likewise.
5771 (m68k_frame_init_saved_regs): Likewise.
5772 (m68k_saved_pc_after_call): Likewise.
5773 (m68k_get_longjmp_target): Make multi-arch.
5774 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5775 structure. Register m68k_get_longjmp_target if enabled.
5776 * m68k-tdep.h (struct gdbarch_tdep): Define.
5777 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5778
5779 * Makefile.in (config.status): Also depend on configure.tgt
5780 and configure.host.
5781 (m68klinux-tdep.o): Update dependencies.
5782 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5783 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5784 (M68K_LINUX_JB_PC): Define.
5785 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5786 and take additional parameter.
5787 (m68k_linux_sigtramp_saved_pc): Update.
5788 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5789 m68k_linux_pc_in_sigtramp, in_plt_section,
5790 find_solib_trampoline_target.
5791 * config/m68k/tm-linux.h: Don't include any tm headers.
5792 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5793 (JB_ELEMENT_SIZE): Likewise.
5794 (JB_PC): Likewise.
5795 (GET_LONGJMP_TARGET): Likewise.
5796 (IN_SIGTRAMP): Likewise.
5797 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5798
eb2c22dc
MK
57992003-05-25 Mark Kettenis <kettenis@gnu.org>
5800
5801 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5802 (sparc32_push_arguments): Re-implement by calling
5803 sparc32_do_push_arguments.
5804
44b7b84e
MK
58052003-05-25 Mark Kettenis <kettenis@gnu.org>
5806
5807 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5808 SPARC_O1_REGNUM): New defines.
5809 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5810 (sparc32_store_return_value): New function.
5811 (sparc_extract_struct_value_address): Rewrite to operate on a
5812 regcache.
5813 (sparc_gdbarch_init): Don't set
5814 deprecated_extract_struct_value_address. Set
5815 extract_struct_value_address instead. Don't set
5816 deprecated_extract_return_value and deprecated_store_return_value
5817 for 32-bit targets. Set extract_return_value and
5818 store_return_value instead.
5819 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5820 DEPRECTAED_EXTRACT_RETURN_VALUE,
5821 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5822 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5823 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5824 (sparc_store_return_value): Remove prototype.
5825 (sparc32_store_return_value): New prototype.
5826 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5827 Adjust prototypes.
5828
f6ad61e3
MK
58292003-05-24 Mark Kettenis <kettenis@gnu.org>
5830
5831 * sparcnbsd-tdep.c: Include "gdb_string.h".
5832
b276f1bb
AC
58332003-05-23 Andrew Cagney <cagney@redhat.com>
5834
5835 * p-valprint.c (pascal_val_print): Replace extract_address with
5836 the inline equivalent extract_unsigned_integer.
5837 * jv-valprint.c (java_value_print): Ditto.
5838 * ada-valprint.c (ada_val_print_1): Ditto.
5839 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5840
e76c5fcc
TR
58412003-05-23 Theodore A. Roth <troth@openavr.org>
5842
5843 * blockframe.c (frameless_look_for_prologue): Remove unused
5844 after_prologue variable.
5845
2cdd89cb
MK
58462003-05-23 Mark Kettenis <kettenis@gnu.org>
5847
5848 * blockframe.c (get_pc_function_start): Rewrite to avoid
5849 asignments in if-statements.
5850
182d43bc
EZ
58512003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5852
5853 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5854 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5855 files, don't relocate absolute symbols (and do use mst_abs).
5856
e8f3fcdd
AC
58572003-05-23 Andrew Cagney <cagney@redhat.com>
5858
5859 * objc-lang.c: Include "gdb_assert.h".
5860 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5861 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5862 (gdb_check, gdb_check_fatal): Delete functions.
5863 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5864 gdb_assert.
5865 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5866 * Makefile.in (objc-lang.o): Update dependencies.
5867
3c23e6fb
ILT
58682003-05-22 Ian Lance Taylor <ian@airs.com>
5869
5870 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5871 with fprintf_filtered, not fprintf_unfiltered.
5872
af1342ab
AC
58732003-05-22 Andrew Cagney <cagney@redhat.com>
5874
5875 * stack.c (frame_info): Inline extract_address, replacing it with
5876 extract_unsigned_integer.
5877 * findvar.c (unsigned_pointer_to_address): Ditto.
5878 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5879 * dwarf2expr.c (dwarf2_read_address): Ditto.
5880 * frame.c (frame_pc_unwind): Update comment.
5881 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5882
47e242ec
JJ
58832003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5884
5885 * infptrace.c (detach): Call print_sys_errmsg rather than
5886 perror_with_name to issue warning message when errno is non-zero
5887 after calling ptrace detach.
5888
e2ac8128
JB
58892003-05-21 J. Brobecker <brobecker@gnat.com>
5890
5891 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5892 macro definitions from here...
5893 * hppa-tdep.c: ...to there.
5894
92b3541e
KB
58952003-05-20 Kevin Buettner <kevinb@redhat.com>
5896
5897 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5898 register_ptrace_addr(). Fix all callers.
5899
55809acb
AS
59002003-05-21 Andreas Schwab <schwab@suse.de>
5901
5902 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5903 dependencies.
5904 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5905 end.
5906 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5907 (_initialize_m68k_linux_tdep): New function.
5908 (m68k_linux_frame_saved_pc): Make static.
5909 (m68k_linux_extract_return_value): Likewise.
5910 (m68k_linux_store_return_value): Likewise.
5911 (m68k_linux_extract_struct_value_address): Likewise.
5912 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5913 Remove.
5914 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5915 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5916 (DEPRECATED_FRAME_SAVED_PC): Remove.
5917
0fbc10f7
KW
59182003-05-20 Kris Warkentin <kewarken@qnx.com>
5919
5920 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5921 regset numbering rather than our own.
5922
58da2eb2
DC
59232003-05-19 David Carlton <carlton@bactrian.org>
5924
5925 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5926
1fcb5155
DC
59272003-05-19 David Carlton <carlton@bactrian.org>
5928
5929 Partial fix for PR c++/827.
5930 * cp-support.h: Include symtab.h.
5931 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5932 * cp-namespace.c: Update contributors.
5933 (cp_lookup_symbol_nonlocal): New.
5934 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5935 (lookup_symbol_file): Ditto.
5936 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5937 * block.h: Declare block_scope, block_using, block_global_block.
5938 * block.c (block_scope): New.
5939 (block_using, block_global_block): Ditto.
5940 * Makefile.in (cp_support_h): Depend on symtab_h.
5941 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5942
5f9a71c3
DC
59432003-05-19 David Carlton <carlton@bactrian.org>
5944
5945 * language.h (struct language_defn): Add 'la_value_of_this'
5946 and 'la_lookup_symbol_nonlocal' members.
5947 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5948 lookup_symbol_static, lookup_symbol_global,
5949 lookup_symbol_aux_block.
5950 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5951 if we should search fields of this and how to do static/global
5952 lookup.
5953 (lookup_symbol_aux_block): Make extern.
5954 (basic_lookup_symbol_nonlocal): New.
5955 (lookup_symbol_static, lookup_symbol_global): Ditto.
5956 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5957 'la_lookup_symbol_nonlocal' members.
5958 * c-lang.c (c_language_defn, cplus_language_defn)
5959 (asm_language_defn, minimal_language_defn): Ditto.
5960 * jv-lang.c (java_language_defn): Ditto.
5961 * language.c (unknown_language_defn, auto_language_defn)
5962 (local_language_defn): Ditto.
5963 * m2-lang.c (m2_language_defn): Ditto.
5964 * objc-lang.c (objc_language_defn): Ditto.
5965 * scm-lang.c (scm_language_defn): Ditto.
5966 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5967 * p-lang.c (pascal_language_defn): Ditto for both.
5968 * Makefile.in (f-lang.o): Depend on value_h.
5969 (p-lang.o): Ditto.
5970
89a9d1b1
DC
59712003-05-19 David Carlton <carlton@bactrian.org>
5972
5973 * block.h: Declare block_static_block.
5974 * block.c (block_static_block): New.
5975 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5976 lookup_symbol_aux_local, calling block_static_block instead.
5977 (lookup_symbol_aux_local): Delete 'static_block' argument.
5978
eed3f8ab
DC
59792003-05-19 David Carlton <carlton@bactrian.org>
5980
5981 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5982
a09d8bda
ML
59832003-05-19 Michal Ludvig <mludvig@suse.cz>
5984
5985 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5986 register numbers mapping.
5987
69636828
AF
59882003-05-18 Adam Fedor <fedor@gnu.org>
5989
5990 * symtab.c (completion_list_objc_symbol): New function.
5991 (make_symbol_completion_list): Use it to add ObjC symbols
5992 when looking though the list.
5993 (language_search_unquoted_string): New function.
5994 (make_file_symbol_completion_list): Use it.
5995
55baeb84
AS
59962003-05-18 Andreas Schwab <schwab@suse.de>
5997
d0b45d99
AS
5998 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5999 dependencies.
6000 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6001 as m68k_linux_extract_return_value.
6002 (DEPRECATED_STORE_RETURN_VALUE): Define as
6003 m68k_linux_store_return_value.
6004 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6005 m68k_linux_extract_struct_value_address.
6006 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6007 get_next_frame, get_frame_base, get_frame_pc.
6008 (m68k_linux_frame_saved_pc): Use get_frame_base.
6009 (m68k_linux_extract_return_value): New function.
6010 (m68k_linux_store_return_value): New function.
6011 (m68k_linux_extract_struct_value_address): New function.
6012 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6013
55baeb84
AS
6014 * c-exp.y (typebase): Remove duplicate occurence of
6015 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6016 of lookup_signed_typename.
55baeb84 6017
b6b08ebf
MK
60182003-05-18 Mark Kettenis <kettenis@gnu.org>
6019
6020 * dwarf2loc.c (find_location_expression): Change type of second
6021 argument to `size_t *'.
6022 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6023 for size variable.
6024
5ad1c190
DC
60252003-05-18 David Carlton <carlton@bactrian.org>
6026
6027 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6028 'linkage_name'. Add comment.
6029 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6030 'linkage_name'.
6031 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6032 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6033 (lookup_block_symbol): Ditto.
6034
b8b527c5
AC
60352003-05-16 Andrew Cagney <cagney@redhat.com>
6036
6037 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6038 * gdbarch.h, gdbarch.c: Re-generate.
6039 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6040 * TODO (REGISTER_BYTES): Delete reference.
6041 * alpha-tdep.c (alpha_gdbarch_init): Update.
6042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6043 * x86-64-tdep.c (x86_64_init_abi): Update.
6044 * vax-tdep.c (vax_gdbarch_init): Update.
6045 * v850-tdep.c (v850_gdbarch_init): Update.
6046 * sparc-tdep.c (sparc_gdbarch_init): Update.
6047 * sh-tdep.c (sh_gdbarch_init): Update.
6048 * s390-tdep.c (s390_gdbarch_init): Update.
6049 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6050 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6051 (ns32k_gdbarch_init_32382): Update.
6052 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6053 * mcore-tdep.c (mcore_gdbarch_init): Update.
6054 * m68k-tdep.c (m68k_gdbarch_init): Update.
6055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6056 * ia64-tdep.c (ia64_gdbarch_init): Update.
6057 * i386-tdep.c (i386_gdbarch_init): Update.
6058 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6059 * hppa-tdep.c (hppa_gdbarch_init): Update.
6060 * h8300-tdep.c (h8300_gdbarch_init): Update.
6061 * frv-tdep.c (frv_gdbarch_init): Update.
6062 * cris-tdep.c (cris_gdbarch_init): Update.
6063 * avr-tdep.c (avr_gdbarch_init): Update.
6064 * arm-tdep.c (arm_gdbarch_init): Update.
6065 * sparc-tdep.c (sparc_pop_frame): Update.
6066 * rs6000-tdep.c (rs6000_pop_frame): Update.
6067 * remote.c (init_remote_state): Update.
6068 (remote_prepare_to_store): Update.
6069 * remote-vx.c (vx_prepare_to_store): Update.
6070 * remote-sds.c (sds_fetch_registers): Update.
6071 (sds_prepare_to_store): Update.
6072 * remote-array.c: Update.
6073 * regcache.c (init_legacy_regcache_descr): Update.
6074 (init_regcache_descr): Update.
6075 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6076 (mips_o64_extract_return_value): Update.
6077 * irix5-nat.c (fetch_core_registers): Update.
6078 * irix4-nat.c (fetch_core_registers): Update.
6079 * i386-tdep.h: Update.
6080 * hppa-tdep.c (pa_do_registers_info): Update.
6081 (pa_do_strcat_registers_info): Update.
6082 * cris-tdep.c (cris_register_bytes_ok): Update.
6083 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6084 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6085 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6086 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6087 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6088 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6089 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6090 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6091 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6092 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6093 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6094 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6095 (REGISTER_BYTES_OK): Update.
6096 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6097 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6098
ee2842e2
ILT
60992003-05-16 Ian Lance Taylor <ian@airs.com>
6100
6101 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6102 (vax_print_insn, print_insn_arg): Remove static functions.
6103 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6104 print_insn_vax from opcodes library.
6105 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6106
973177d3
AC
61072003-05-15 Andrew Cagney <cagney@redhat.com>
6108
aaab4dba
AC
6109 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6110 * target.h (memory_breakpoint_from_pc): Delete declaration.
6111 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6112 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6113 * monitor.c (monitor_insert_breakpoint): Use
6114 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6115 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6116 * gdbarch.h, gdbarch.c: Re-generate.
6117 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6118 (sparc_gdbarch_init): Set breakpoint_from_pc to
6119 sparc_breakpoint_from_pc.
6120 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6121 (BREAKPOINT_FROM_PC): Define.
6122 (sparc_breakpoint_from_pc): Declare.
6123 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6124 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6125 (BREAKPOINT_FROM_PC): Define.
6126 (BREAKPOINT): Delete macro.
6127 * target.h: Update comment.
6128 * s390-tdep.c (s390_gdbarch_init): Update comments.
6129 * remote.c: Update comments.
6130 * remote-mips.c: Update comments.
6131 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6132 * mem-break.c: Update comment.
6133 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6134 (ia64_memory_insert_breakpoint): Update.
6135 * config/sparc/tm-sparc.h: Update comment.
6136 * config/pa/tm-hppa64.h: Update comment.
6137 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6138 (rs6000_breakpoint_from_pc): Update.
6139 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6140 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6141 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6142 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6143 (mips_breakpoint_from_pc): Update.
6144 (mips_dump_tdep): Update.
6145
e06963ff
AC
6146 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6147 * minsyms.c (lookup_minimal_symbol): Inline
6148 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6149
973177d3
AC
6150 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6151 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6152 * p-lang.c (pascal_printstr): Ditto.
6153 * objc-lang.c (objc_printstr): Ditto.
6154 * m2-lang.c (m2_printstr): Ditto.
6155 * jv-valprint.c (java_print_value_fields): Ditto.
6156 * f-lang.c (f_printstr): Ditto.
6157 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6158 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6159 for repeat_count_threshold.
6160 * Makefile.in (cp-valprint.o): Update dependencies.
6161
5ea2bd7f 61622003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6163
5ea2bd7f
JJ
6164 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6165 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6166 they start with mov r2,r12. Support skipping over indirect stores
6167 of the input registers. Upon hitting a non-nop branch instruction
6168 or predicated instruction, bail out by setting lim_pc to the current
6169 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6170 beyond our calculated value and we have trust_limit set,
6171 use the lim_pc value.
6172
cc8c88f3
AC
61732003-05-15 Andrew Cagney <cagney@redhat.com>
6174
6175 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6176 generic_find_dummy_frame.
6177 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6178 (deprecated_generic_find_dummy_frame): Update.
6179 (deprecated_read_register_dummy): Update.
6180 * frame.c (deprecated_generic_get_saved_register): Update.
6181
909cd28e
TR
61822003-05-15 Theodore A. Roth <troth@openavr.org>
6183
6184 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6185 (avr_gdbarch_init): Set breakpoint_from_pc method.
6186
b923b08d
AC
61872003-05-15 Andrew Cagney <cagney@redhat.com>
6188
6189 * regcache.c (build_regcache): Set deprecated_register_valid
6190 directly.
6191 (deprecated_grub_regcache_for_register_valid): Delete function.
6192 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6193 declaration.
6194
ae2f03ac 61952003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6196
6197 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6198 * symtab.c (lookup_symbol_aux): Delete calls to
6199 lookup_symbol_aux_minsyms.
6200 (lookup_symbol_aux_minsyms): Comment out function and
6201 prototype. Delete lookup by mangled name.
ae2f03ac 6202
18ec9831
KB
62032003-05-14 Kevin Buettner <kevinb@redhat.com>
6204
6205 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6206 correctly indicate an empty stack and ``stack_allocated'' to the
6207 indicate the number of elements initially allocated.
6208 (dwarf_expr_grow_stack): Simplify method for computing new
6209 stack size. Don't loop infinitely if ``stack_len'' is zero.
6210 (execute_stack_op): Move ``ctx->in_reg'' initialization
6211 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6212 be used in conjuction with DW_OP_piece. Revise error message
6213 accordingly.
6214
de18ac1f
TR
62152003-05-14 Theodore A. Roth <troth@openavr.org>
6216
6217 * MAINTAINERS: Update my email address.
6218 * avr-tdep.c: Ditto.
6219
176620f1
EZ
62202003-05-14 Elena Zannoni <ezannoni@redhat.com>
6221
6222 * symtab.h (enum domain_enum): Rename from namespace_enum.
6223 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6224 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6225 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6226 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6227 TYPES_NAMESPACE, METHODS_NAMESPACE.
6228 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6229 (struct symbol, struct partial_symbol): Rename field
6230 'namespace_enum namespace' to 'domain_enum domain'.
6231 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6232 Delete old define kludge for namespace.
6233
6234 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6235 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6236 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6237 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6238 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6239 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6240 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6241 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6242 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6243 occurrences of the above.
6244
b7f31508
ILT
62452003-05-14 Ian Lance Taylor <ian@airs.com>
6246
6247 * Makefile.in (install-only): Use $(SHELL) when running
6248 mkinstalldirs.
6249
2fdbdd39
ILT
62502003-05-13 Ian Lance Taylor <ian@airs.com>
6251
a208d82c
ILT
6252 * MAINTAINERS (write after approval): Add myself.
6253
2fdbdd39
ILT
6254 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6255 second and third arguments.
6256 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6257 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6258
fbd9dcd3
AC
62592003-05-13 Andrew Cagney <cagney@redhat.com>
6260
6261 * defs.h (store_address): Delete declaration.
6262 findvar.c (store_address): Delete function.
6263 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6264 store_unsigned_integer.
6265 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6266 * v850-tdep.c (v850_push_arguments): Ditto.
6267 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6268 * sh-tdep.c (sh64_get_saved_register): Ditto.
6269 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6270 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6271 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6272 (mips_get_saved_register): Ditto.
6273 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6274 (find_func_descr, ia64_push_arguments): Ditto.
6275 * i386-tdep.c (i386_push_arguments): Ditto.
6276 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6277 * frv-tdep.c (frv_push_arguments): Ditto.
6278 * frame.c (legacy_saved_regs_prev_register): Ditto.
6279 (deprecated_generic_get_saved_register): Ditto.
6280 * findvar.c (unsigned_address_to_pointer): Ditto.
6281 * dwarf2read.c (dwarf2_const_value): Ditto.
6282 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6283 * alpha-tdep.c (alpha_push_arguments): Ditto.
6284
6760f9e6
JB
62852003-05-12 J. Brobecker <brobecker@gnat.com>
6286
6287 * NEWS: Mention that the hppa-hpux port has been partially
6288 multiarched (32bit ABIT only, so far).
6289
30e221b4
AC
62902003-05-11 Andrew Cagney <cagney@redhat.com>
6291
6292 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6293 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6294 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6295 sim/testsuite/sim/arm/misaligned2.ms, and
6296 sim/testsuite/sim/arm/misaligned3.ms.
6297 * disasm.h (struct ui_file): Add opaque struct declaration.
6298 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6299 * frame.h (struct ui_file): Ditto.
6300
dea7f9ba
MK
63012003-05-11 Mark Kettenis <kettenis@gnu.org>
6302
6303 * value.h: Pretty print.
6304
01986c48
MK
63052003-05-10 Mark Kettenis <kettenis@gnu.org>
6306
6307 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6308
123a958e
AC
63092003-05-08 Andrew Cagney <cagney@redhat.com>
6310
6311 * regcache.h (max_register_size): Delete declaration.
6312 * regcache.c (max_register_size): Delete function.
6313 (struct regcache_descr): Delete field "max_register_size".
6314 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6315 registers fit in MAX_REGISTER_SIZE.
6316 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6317 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6318 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6319 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6320 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6321 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6322 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6323 * dve3900-rom.c, hppa-tdep.c: Ditto.
6324
eb294659
DC
63252003-05-08 David Carlton <carlton@math.stanford.edu>
6326
6327 * valops.c (push_word): Fix typo.
6328
d9d9c31f
AC
63292003-05-08 Andrew Cagney <cagney@redhat.com>
6330
6331 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6332 * gdbarch.h: Re-generate.
6333 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6334 (legacy_max_register_raw_size): Delete declaration.
6335 * regcache.c (legacy_max_register_raw_size): Delete function.
6336 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6337 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6338 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6339 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6340 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6341 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6342 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6343 * findvar.c, dwarf2cfi.c: Ditto.
6344
22540ece
AC
63452003-05-08 Andrew Cagney <cagney@redhat.com>
6346
6347 * mips-tdep.c (read_signed_register): New function, moved to here
6348 from "regcache.c".
6349 (read_signed_register_pid): Ditto.
6350 * regcache.c (read_signed_register_pid): Delete function, moved to
6351 "mips-tdep.c".
6352 (read_signed_register): Ditto.
6353 * regcache.h (read_signed_register): Delete declaration.
6354 (read_signed_register_pid): Delete declaration.
6355
0c92afe8
AC
63562003-05-08 Andrew Cagney <cagney@redhat.com>
6357
6358 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6359 * gdbarch.h: Re-generate.
6360 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6361 (legacy_max_register_virtual_size): Delete declaration.
6362 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6363 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6364 * tracepoint.c (memrange_sortmerge): Ditto.
6365 * sparc-tdep.c (sparc_print_registers): Ditto.
6366 * regcache.c (legacy_max_register_virtual_size): Delete function.
6367
6037b830
JB
63682002-05-08 J. Brobecker <brobecker@gnat.com>
6369
6370 * fork-child.c (escape_bang_in_quoted_argument): New function.
6371 (fork_inferior): Escape '!' characters in quoted arguments
6372 only when needed.
6373
5d62c8b1
JB
63742003-05-08 J. Brobecker <brobecker@gnat.com>
6375
6376 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6377 the language of the CU is not currently supported by GDB.
6378
20a0e81d
JB
63792003-05-08 J. Brobecker <brobecker@gnat.com>
6380
6381 * defs.h (language): Add language_minimal enum value.
6382 * c-lang.c (minimal_language_defn): New language definition.
6383 (_initialize_c_language): Add the new minimal language to the list
6384 of languages known to GDB.
6385
710ee10a
KB
63862003-05-08 Kevin Buettner <kevinb@redhat.com>
6387
6388 * frame.c (get_frame_type): Don't attempt to lazily initialize
6389 frame's unwinder for legacy frames.
6390
1750fa04
AC
63912003-05-07 Andrew Cagney <cagney@redhat.com>
6392
6393 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6394 and "regcache" parameters.
6395 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6396
ddf9f258 63972003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6398
6399 * dwarf2read.c (dwarf_decode_lines): Only use output of
6400 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6401 the current address.
6402
87767c29
AC
64032003-05-07 Andrew Cagney <cagney@redhat.com>
6404
6405 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6406 code.
6407
5e7b2f39
JB
64082003-05-07 Jim Blandy <jimb@redhat.com>
6409
6410 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6411 'maint info symtabs' and 'maint info psymtabs'.
6412 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6413 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6414 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6415 Declarations updated.
6416 * maint.c (maintenance_list_command): Delete.
6417 (_initialize_maint_cmds): Update calls to add_cmd.
6418 * gdbcmd.h (maintenancelistlist): Delete declaration.
6419 * cli/cli-cmds.c (maintenancelistlist): Delete.
6420 (init_cmd_lists): Don't initialize it.
6421 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6422
f6684c31
AC
64232003-05-07 Andrew Cagney <cagney@redhat.com>
6424
6425 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6426 "regcache".
6427 (d10v_print_registers_info): Update.
6428 (d10v_dmap_register, d10v_imap_register): Delete functions.
6429 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6430 and "imap_register".
6431 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6432 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6433 * arch-utils.c (generic_remote_translate_xfer_address): Add
6434 "regcache" and "gdbarch" parameters.
6435 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6436 parameter. Change class to multi-arch.
6437 * gdbarch.h, gdbarch.c: Re-generate.
6438 * remote.c (remote_xfer_memory): Use
6439 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6440
e4846b08
JJ
64412003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6442
6443 * infrun.c (prev_pc): Move declaration ahead of proceed().
6444 (proceed): Refresh prev_pc value before resuming.
6445 (stop_stepping): Remove code to refresh prev_pc.
6446
6b71b8ac
KW
64472003-05-06 Kris Warkentin <kewarken@qnx.com>
6448
6449 * nto-tdep.c: Removed stray comment.
6450
47979a4b
KW
64512003-05-06 Kris Warkentin <kewarken@qnx.com>
6452
6453 * i386-nto-tdep.c: Fix old K&R function definitions.
6454 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6455 Also change add_show_from_set() call to add_setshow_cmd().
6456 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6457
00905d52
AC
64582003-05-05 Andrew Cagney <cagney@redhat.com>
6459
6460 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6461 (fprint_dummy_frames): New function.
6462 (maintenance_print_dummy_frames): New function.
6463 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6464 * frame.c (fprint_frame_id): Make global.
6465 * frame.h (fprint_frame_id): Declare.
6466 * Makefile.in (dummy-frame.o): Update dependencies.
6467
b1e29e33
AC
64682003-05-05 Andrew Cagney <cagney@redhat.com>
6469
6470 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6471 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6472 SIZEOF_CALL_DUMMY_WORDS.
6473 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6474 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6475 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6476 CALL_DUMMY_BREAKPOINT_OFFSET.
6477 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6478 CALL_DUMMY_START_OFFSET.
6479 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6480 * gdbarch.h, gdbarch.c: Re-generate.
6481 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6482 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6483 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6484 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6485 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6486 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6487 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6488 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6489 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6490 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6491 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6492 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6493 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6494 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6495 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6496
64972003-05-05 Kris Warkentin <kewarken@qnx.com>
6498
6499 * configure.tgt: Add i[3456]86-*-nto*.
6500 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6501 * nto-tdep.c: New file. Neutrino target support routines.
6502 * nto-tdep.h: New file. Neutrino target header.
6503 * config/tm-qnxnto.h: New file.
6504 * config/i386/i386nto.mt: New file.
6505 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6506
0ce3d317
AC
65072003-05-04 Andrew Cagney <cagney@redhat.com>
6508
6509 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6510 (load_infrun_state): Ditto.
6511 (struct thread_info): Drop "prev_func_name" field.
6512 * thread.c (load_infrun_state): Update.
6513 (save_infrun_state): Update.
6514 * infrun.c (prev_func_name): Delete variable.
6515 (init_wait_for_inferior): Do not clear prev_func_name.
6516 (stop_stepping, keep_going, context_switch): Do not swap
6517 prev_func_name.
6518 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6519 instead of PC_IN_SIGTRAMP.
6520
46654a5b
AC
65212003-05-04 Andrew Cagney <cagney@redhat.com>
6522
6523 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6524 REGISTER_BYTE with register_offset_hack.
6525 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6526 that REGISTER_BYTE is consistent with the regcache.
6527 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6528 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6529
14b08c1b
MK
65302003-05-04 Mark Kettenis <kettenis@gnu.org>
6531
04c8243f
MK
6532 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6533 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6534
14b08c1b
MK
6535 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6536
c7a11e01
JB
65372003-05-03 J. Brobecker <brobecker@gnat.com>
6538
6539 From Thierry Schneider <tpschneider1@yahoo.com>
6540 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6541 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6542 (mi-cmd-symbol.o): Add rule.
6543
7043d8dc
AC
65442003-05-03 Andrew Cagney <cagney@redhat.com>
6545
6546 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6547 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6548 * gdbarch.h, gdbarch.c: Re-generate.
6549 * d10v-tdep.c (d10v_push_dummy_code): New function.
6550 (d10v_gdbarch_init): Set push_dummy_code.
6551 * infcall.c (legacy_push_dummy_code): New function.
6552 (generic_push_dummy_code): New function.
6553 (push_dummy_code): New function.
6554 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6555 instead of dummy_addr, to push_dummy_call. Move call to
6556 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6557 switch.
6558 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6559
92bf2b80
AC
65602003-05-03 Andrew Cagney <cagney@redhat.com>
6561
6562 * disasm.h (print_insn): Declare.
6563 * disasm.c (init_gdb_disassemble_info): New function.
6564 (gdb_disassembly): Call init_gdb_disassemble_info.
6565 (gdb_print_insn): New function.
6566 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6567 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6568 * mcore-tdep.c: Include "disasm.h"
6569 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6570 * d10v-tdep.c: Include "disasm.h".
6571 (display_trace): Call gdb_print_insn, instead of print_insn.
6572 (print_insn): Delete function.
6573 * printcmd.c: Include "disasm.h".
6574 (print_insn): Delete function.
6575 (print_formatted): Call gdb_print_insn, instead of print_insn.
6576 * Makefile.in (printcmd.o): Update dependencies.
6577 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6578
27d94c49
AC
65792003-05-02 Andrew Cagney <cagney@redhat.com>
6580
82de1e5b
AC
6581 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6582 PC_REGNUM, re-indent.
6583 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6584 PC_REGNUM isn't set.
6585
27d94c49
AC
6586 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6587 * gdbarch.h, gdbarch.c: Re-generate.
6588 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6589 register_virtual_size, pc_regnum, or register_bytes.
6590 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6591 (d10v_register_type): Use D10V_PC_REGNUM.
6592 (d10v_print_registers_info, d10v_read_pc): Ditto.
6593 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6594 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6595
a9c0dc7f
DC
65962003-05-02 David Carlton <carlton@bactrian.org>
6597
6598 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6599 the name with mstrsave.
6600
e33d66ec
EZ
66012003-05-02 Elena Zannoni <ezannoni@redhat.com>
6602
6603 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6604 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6605 (host_charset_name, target_charset_name): New vars for use by
6606 set/show commands.
6607 (host_charset_enum, target_charset_enum): New enums for set/show
6608 commands.
6609 (set_charset_sfunc, set_host_charset_sfunc,
6610 set_target_charset_sfunc): New functions.
6611 (set_host_charset, set_target_charset): Make static.
6612 (list_charsets, set_host_charset_command,
6613 set_target_charset_command): Delete functions.
6614 (show_charset_command): Rewrite as....
6615 (show_charset): Hook this up with the set/show command mechanism.
6616 (_initialize_charset): Change names of charsets to match the
6617 set/show enums. Use host_charset_name and target_charset_name.
6618 Use set/show mechanism for charset, host-charset, target-charset
6619 commands. Do not make 'show host-charset' and 'show
6620 target-charset' be aliases of 'show charset'.
6621
6622 * charset.h (set_host_charset, set_target_charset): Don't export,
6623 they are not used outside the file.
6624
2b6fd0d8
AC
66252003-05-01 Andrew Cagney <cagney@redhat.com>
6626
6627 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6628 (gdb_disassembly): Make "di" non static, always initialize and
6629 cleanup. Always use dis_asm_read_memory.
6630 (gdb_dis_asm_read_memory): Delete function.
6631
6ae2f580
AC
66322003-05-01 Andrew Cagney <cagney@redhat.com>
6633
6634 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6635 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6636
810ecf9f
AC
66372003-04-30 Andrew Cagney <cagney@redhat.com>
6638
6639 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6640 "tm_print_insn_info".
6641 (TARGET_PRINT_INSN_INFO): Delete macro.
6642 (dis_asm_read_memory): Delete function declaration.
6643 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6644 (tm_print_insn_info): Delete variable definition.
6645 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6646 * gdbarch.h, gdbarch.c: Re-generate.
6647 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6648 "deprecated_tm_print_insn_info".
6649 * mcore-tdep.c (mcore_dump_insn): Ditto.
6650 * mips-tdep.c (mips_gdbarch_init): Ditto.
6651 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6652 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6653 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6654 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6655 instead of TARGET_PRINT_INSN_INFO, add comment.
6656 * s390-tdep.c (s390_get_frame_info): Instead of
6657 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6658 (s390_check_function_end, s390_is_sigreturn): Ditto.
6659 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6660 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6661 * disasm.c: Include "gdbcore.h".
6662 (_initialize_disasm): New function, initialize
6663 "deprecated_tm_print_insn_info".
6664 (deprecated_tm_print_insn_info): New variable.
6665 (dis_asm_read_memory): Moved from "corefile.c", made static.
6666 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6667 * Makefile.in (disasm.o): Update dependencies.
6668
07020390
AC
66692003-04-30 Andrew Cagney <cagney@redhat.com>
6670
6671 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6672
a9fa03de
AF
66732003-04-29 Adam Fedor <fedor@gnu.org>
6674
6675 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6676 * infcall.c (find_function_addr): Make non-static.
6677 * infcall.h (find_function_addr): Declare.
6678 * Makefile.in (eval.o): Update dependencies.
6679
1bae87b9
AF
66802003-04-28 Adam Fedor <fedor@gnu.org>
6681
6682 * symtab.c (symbol_find_demangled_name): Check for and demangle
6683 ObjC symbols.
6684 (symbol_init_demangled_name): Init for language_objc as well.
6685
0ba6dca9
AC
66862003-04-28 Andrew Cagney <cagney@redhat.com>
6687
6688 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6689 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6690 * gdbarch.h, gdbarch.c: Re-generate.
6691 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6692 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6693 * inferior.h (deprecated_read_fp): Rename read_fp.
6694 (generic_target_read_fp): Delete declaration.
6695 * regcache.c (generic_target_read_fp): Delete function.
6696 (deprecated_read_fp): Replace read_fp, use
6697 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6698 * d10v-tdep.c (d10v_read_fp): Delete function.
6699 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6700
6701 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6702 deprecated_target_read_fp to generic_target_read_fp.
6703 * sh-tdep.c (sh_gdbarch_init): Ditto.
6704 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6706 * frv-tdep.c (frv_gdbarch_init): Ditto.
6707
6708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6709 deprecated_fp_regnum.
6710 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6711 * vax-tdep.c (vax_gdbarch_init): Ditto.
6712 * v850-tdep.c (v850_gdbarch_init): Ditto.
6713 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6714 * sh-tdep.c (sh_gdbarch_init): Ditto.
6715 * s390-tdep.c (s390_gdbarch_init): Ditto.
6716 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6717 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6718 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6719 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6721 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6722 * i386-tdep.c (i386_gdbarch_init): Ditto.
6723 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6724 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6725 * frv-tdep.c (frv_gdbarch_init): Ditto.
6726 * cris-tdep.c (cris_gdbarch_init): Ditto.
6727 * avr-tdep.c (avr_gdbarch_init): Ditto.
6728 * arm-tdep.c (arm_gdbarch_init): Ditto.
6729 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6730
6731 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6732 * v850-tdep.c (v850_gdbarch_init): Ditto.
6733 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6734 * sh-tdep.c (sh_gdbarch_init): Ditto.
6735 * s390-tdep.c (s390_gdbarch_init): Ditto.
6736 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6737 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6738 * mips-tdep.c (mips_gdbarch_init): Ditto.
6739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6740 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6741 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6742 * frv-tdep.c (frv_gdbarch_init): Ditto.
6743 * avr-tdep.c (avr_gdbarch_init): Ditto.
6744 * arm-tdep.c (arm_gdbarch_init): Ditto.
6745
6746 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6747 DEPRECATED_FP_REGNUM.
6748 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6749 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6750 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6751 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6752 (sparc32_register_virtual_type): Ditto.
6753 * sh-tdep.c (sh64_frame_chain): Ditto.
6754 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6755 (sh_nofp_frame_init_saved_regs): Ditto.
6756 (sh64_nofp_frame_init_saved_regs): Ditto.
6757 (sh_fp_frame_init_saved_regs): Ditto.
6758 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6759 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6760 * procfs.c (procfs_fetch_registers): Ditto.
6761 (procfs_store_registers): Ditto.
6762 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6763 (store_inferior_registers, fetch_core_registers): Ditto.
6764 (fetch_kcore_registers, clear_regs): Ditto.
6765 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6766 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6767 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6768 * nlm/i386.c (do_status): Ditto.
6769 * mipsv4-nat.c (supply_gregset): Ditto.
6770 * mips-tdep.c: Ditto for comments.
6771 * mips-nat.c (fetch_inferior_registers): Ditto.
6772 (store_inferior_registers, fetch_core_registers): Ditto.
6773 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6774 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6775 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6776 (i386_do_pop_frame, i386_register_type): Ditto.
6777 * hppa-tdep.c (hppa_frame_chain): Ditto.
6778 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6779 (hppa_pop_frame, hppa_read_fp): Ditto.
6780 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6781 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6782 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6783 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6784 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6785 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6786 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6787 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6788 * blockframe.c: Ditto for comments.
6789 * arch-utils.h: Ditto for comments.
6790 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6791 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6792 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6793 * alpha-tdep.h: Ditto for comments.
6794 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6795 (alpha_cannot_store_register): Ditto.
6796 (alpha_push_dummy_frame): Ditto.
6797 * alpha-nat.c (supply_gregset): Ditto.
6798
6799 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6800 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6801 * config/sparc/tm-sparc.h: Update comment.
6802
6803 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6804 deprecated_read_fp instead of TARGET_READ_FP.
6805 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6806 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6807 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6808 deprecated_read_fp instead of read_fp.
6809 * s390-tdep.c (s390_push_arguments): Ditto.
6810 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6811 * frame.h: Ditto in comments.
6812 * frame.c (legacy_get_prev_frame): Ditto.
6813 * dummy-frame.c (dummy_frame_this_id): Ditto.
6814 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6815
d7a27068
AC
68162003-04-28 Andrew Cagney <cagney@redhat.com>
6817
6818 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6819 * gdbarch.h, gdbarch.c: Re-generate.
6820 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6821 * vax-tdep.c (_initialize_vax_tdep): Update.
6822 * v850-tdep.c (_initialize_v850_tdep): Update.
6823 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6824 * s390-tdep.c (_initialize_s390_tdep): Update.
6825 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6826 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6827 * mips-tdep.c (_initialize_mips_tdep): Update.
6828 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6829 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6830 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6831 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6832 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6833 * frv-tdep.c (_initialize_frv_tdep): Update.
6834 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6835 (_initialize_cris_tdep): Update.
6836 * arch-utils.c (legacy_print_insn): Update.
6837 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6838
d2630e69
AF
68392003-04-26 Adam Fedor <fedor@gnu.org>
6840
6841 * linespec.c (decode_objc): New function to decode ObjC calls
6842 (decode_line_1): Check for ObjC calls (using decode_objc)
6843 * Makefile (linespec.o): Update dependencies.
6844
3086aeae
DJ
68452003-04-26 Daniel Jacobowitz <drow@mvista.com>
6846
6847 * breakpoint.h (struct breakpoint_ops): New.
6848 (struct breakpoint): Add ops member.
6849
6850 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6851 (mention): Use new breakpoint ops member.
6852 (set_raw_breakpoint): Initialize ops field to NULL.
6853 (print_exception_catchpoint, print_one_exception_catchpoint)
6854 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6855 (gnu_v3_exception_catchpoint_ops): New.
6856 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6857
1fbec6c3
AF
68582003-04-25 Adam Fedor <fedor@gnu.org>
6859
6860 * Makefile.in (COMMON_OBS): Add objc-lang.o
6861
0ef21242
AC
68622003-04-25 Andrew Cagney <cagney@redhat.com>
6863
6864 * d10v-tdep.c (print_insn): Delete function.
6865 (display_trace): Use TARGET_PRINT_INSN.
6866 (_initialize_d10v_tdep): Do not set tm_print_insn.
6867 (d10v_gdbarch_init): Set print_insn.
6868
f75493ed
AC
68692003-04-25 Andrew Cagney <cagney@redhat.com>
6870
6871 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6872 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6873 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6874 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6875 (nr_dmap_regs, a0_regnum): ... new functions.
6876 (d10v_print_registers_info): Use a0_regnum, use register_size.
6877 (d10v_register_byte): Delete function.
6878 (d10v_register_raw_size): Delete function.
6879 (d10v_register_type): Use a0_regnum.
6880 (d10v_print_registers_info): Use a0_regnum.
6881 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6882 (d10v_gdbarch_init): Do not set register_byte or
6883 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6884 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6885 extract_address.
6886 (trace_command): Use XCALLOC.
6887 (print_insn): Delete reference to tm_print_insn.
6888 (saved_regs_unwinder): Use store_unsigned_integer instead of
6889 store_address.
6890 * frame.h (FRAME_OBSTACK_CALLOC): Define
6891
2202b100
DC
68922003-04-25 David Carlton <carlton@bactrian.org>
6893
6894 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6895
4e45ca2e
AF
68962003-04-24 Adam Fedor <fedor@gnu.org>
6897
6898 * objc-lang.c: Include "valprint.h"
6899 * Makefile.in (objc-lang.o): Update dependencies.
6900
93de3e7f
AF
69012003-04-24 Adam Fedor <fedor@gnu.org>
6902
8ffd9b1b 6903 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6904 architecture dependant compilation and mark as unimplemented
6905 (until they get put in the gdbarch vector).
6906
0f20eeea
DC
69072003-04-23 David Carlton <carlton@bactrian.org>
6908
6909 * cp-support.c (cp_find_first_component): Accept 'operator' in
6910 more locations.
6911
74cfe982
AC
69122003-04-23 Andrew Cagney <cagney@redhat.com>
6913
6914 * infcall.c (call_function_by_hand): Eliminate redundant
6915 indentation. Move "saved_async" and "old_cleanups" to where they
6916 are needed.
8ffd9b1b 6917
52557533
AC
69182003-04-23 Andrew Cagney <cagney@redhat.com>
6919
6920 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6921 and "buffer". Move the "name" code to where it is needed.
6922
158775de
AC
69232003-04-23 Andrew Cagney <cagney@redhat.com>
6924
6925 * infcall.c (call_function_by_hand): Move variables "start_sp",
6926 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6927 code to ON_STACK switch branch.
8ffd9b1b 6928
ebc7896c
AC
69292003-04-23 Andrew Cagney <cagney@redhat.com>
6930
6931 * infcall.c (call_function_by_hand): Make declaration of "i",
6932 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6933 lint.
6934
d727590f
AC
69352003-04-23 Andrew Cagney <cagney@redhat.com>
6936
6937 * infcall.c (call_function_by_hand): Delete variable
6938 "n_method_args". Localize "param_type"'s declaration to the loop
6939 that it is used. Reinstate code assigning to said variable -
6940 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6941 Rationalize code using "param_type".
6942
d585e13a
AC
69432003-04-22 Andrew Cagney <cagney@redhat.com>
6944
6945 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6946 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6947 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6948 to DEPRECATED_PUSH_RETURN_ADDRESS.
6949
051caad9
KB
69502003-04-22 Kevin Buettner <kevinb@redhat.com>
6951
6952 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6953 on the DWARF2 register number prior to fetching a register.
6954
77296879
JB
69552003-04-22 J. Brobecker <brobecker@gnat.com>
6956
6957 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6958 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6959 this macro was always set to 0.
77296879
JB
6960 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6961 considering the fact that this macro was always set to 0.
6962 * hppa-tdep.h (hppa_store_return_value): Likewise.
6963 (hppa_extract_return_value): Likewise.
6964
4252f1df
JB
69652003-04-22 J. Brobecker <brobecker@gnat.com>
6966
6967 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6968 the hppa-pro target only.
6969
14604c6b
JB
69702003-04-21 J. Brobecker <brobecker@gnat.com>
6971
6972 Ongoing multi-arch conversion effort for HP/UX:
6973 * config/pa/tm-hppa.h: Move all macro that are no longer
6974 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6975 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6976
77eb01d1
JB
69772003-04-21 J. Brobecker <brobecker@gnat.com>
6978
6979 * config/pa/tm-hppa.h: Obsolete a section that was only used
6980 for hppa-pro.
6981
61995b3b
JB
69822003-04-21 J. Brobecker <brobecker@gnat.com>
6983
6984 Ongoing multi-arch conversion for HP/UX.
6985 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6986 if already defined (allows hppa64 to stay non-multiarched for now).
6987 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6988
4aa79dcc
AC
69892003-04-21 Andrew Cagney <cagney@redhat.com>
6990
6991 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6992
0f751ff2
AC
69932003-04-21 Andrew Cagney <cagney@redhat.com>
6994
6995 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6996 "i386_num_mmx_regs".
6997
04714b91
AC
69982003-04-21 Andrew Cagney <cagney@redhat.com>
6999
7000 * infcall.c: New file.
7001 * infcall.h: New file.
7002 * valarith.c: Include "infcall.h".
7003 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7004 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7005 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7006 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7007 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7008 (SFILES): Add "infcall.c"
7009 (COMMON_OBS): Add "infcall.o".
7010 (infcall.o): Specify dependencies.
7011 * value.h (call_function_by_hand): Delete declaration.
7012 * inferior.h (run_stack_dummy): Delete declaration.
7013 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7014 (run_stack_dummy): Move to "infcall.c", merged into
7015 call_function_by_hand.
7016 * valops.c (call_function_by_hand): Moved to "infcall.c".
7017 (find_function_addr, value_arg_coerce): Ditto.
7018 (unwindonsignal_p, coerce_float_to_double): Ditto.
7019 (_initialize_valops): Move "set/show coerce-float-to-double", and
7020 "set/show unwindonsignal" commands to "infcall.c".
7021 * v850-tdep.c, target.h: Update comments.
7022 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7023 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7024 (sh64_init_extra_frame_info): Update comments.
7025 * mn10300-tdep.c: Update comments.
7026 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7027 * config/sparc/tm-sparc.h: Update comments.
7028 * breakpoint.h: Update comments.
7029 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7030 * arm-tdep.c: Update comment.
7031
f9d3c2a8
MK
70322003-04-19 Mark Kettenis <kettenis@gnu.org>
7033
c40e1eab
MK
7034 * i386-tdep.c (i386_num_register_names): New variable.
7035 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7036 (MM0_REGNUM): Remove redundant parentheses in define.
7037 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7038 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7039 i386_mxcsr_regnum_p): Remove redundant parentheses.
7040 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7041
94ea66b3
MK
7042 * i386-tdep.c (i386_extract_return_value,
7043 i386_store_return_value): Correct check for availability of
7044 floating-point registers.
7045
54299a1d
MK
7046 * i386-tdep.c (i386_frame_num_args): Remove function.
7047 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7048
c86c27af
MK
7049 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7050 mmx_regnum_to_fp_regnum. Adjust all callers.
7051
f9d3c2a8
MK
7052 * i386-tdep.c (i386_get_longjmp_target): Use
7053 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7054 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7055 extract_address.
7056
94ba74a9
MK
70572003-04-19 Mark Kettenis <kettenis@gnu.org>
7058
7059 * core-regset.c: Update comments to reflect reality. Re-order
7060 includes.
7061 (fetch_core_registers): Use switch instead of if. Remove
7062 redundant prototype.
7063
4074e13c
JB
70642003-04-18 Jim Blandy <jimb@redhat.com>
7065
7066 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7067 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7068
e3ab4aba
RH
70692003-04-17 Richard Henderson <rth@redhat.com>
7070
7071 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7072
627bf7c1
EZ
70732003-04-17 Michael Snyder <msnyder@redhat.com>
7074 Karen Bennet <bennet@redhat.com>
7075
7076 Committed by Elena Zannoni <ezannoni@redhat.com>
7077 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7078
514621a9
EZ
70792003-04-17 Elena Zannoni <ezannoni@redhat.com>
7080
7081 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7082 value if the return type is void.
514621a9 7083
b4acd559
JJ
70842003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7085
7086 * thread-db.c: Reindented.
8ffd9b1b 7087
530b167e 70882003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7089
7090 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7091 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7092 as types.
7093
0a48e7e8
MS
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
8ffd9b1b 7117
ab9fe00e
KB
71182003-04-16 Kevin Buettner <kevinb@redhat.com>
7119
610a3745 7120 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7121 the size of ``long double'' to 16, instead of 8.
7122
e64a344c
MK
71232003-04-16 Mark Kettenis <kettenis@gnu.org>
7124
7125 * i386-linux-nat.c: Add some whitespace to make things more
7126 readable.
7127 (fetch_register, store_register, fetch_inferior_registers,
7128 store_inferior_registers): Get rid of assignment in if-statement.
7129 (store_register): Fix typo in error message.
7130
25d41031
AC
71312003-04-16 Andrew Cagney <cagney@redhat.com>
7132
7133 * utils.c (xmmalloc): Always allocate something, matches
7134 libiberty/xmalloc's semantics.
7135 (xmrealloc, xmcalloc): Ditto.
7136
c50901fd
AC
71372003-04-16 Andrew Cagney <cagney@redhat.com>
7138
7139 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7140 update comments.
7141 (get_frame_type): Initialize unwind and type when needed.
7142 (get_frame_id, frame_register_unwind): Ditto.
7143
f81824a9
AC
71442003-04-16 Andrew Cagney <cagney@redhat.com>
7145
7146 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7147 obsolete.
7148 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7149 * sparcl-stub.c: Obsolete file.
7150 * config/sparc/tm-sparclet.h: Obsolete file.
7151 * sparclet-stub.c: Obsolete file.
7152 * sparclet-rom.c: Obsolete file.
7153 * sparcl-tdep.c: Obsolete file.
7154 * config/sparc/tm-sparclite.h: Obsolete file.
7155 * config/sparc/sparclite.mt: Obsolete file.
7156 * config/sparc/sparclet.mt: Obsolete file.
7157 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7158 sparc86x-*-* obsolete.
7159
9219021c
DC
71602003-04-15 David Carlton <carlton@math.stanford.edu>
7161
7162 * Makefile.in (SFILES): Add cp-namespace.c.
7163 (COMMON_OBS): Add cp-namespace.o.
7164 (block.o): Depend on gdb_obstack_h and cp_support_h.
7165 (buildsym.o): Depend on cp_support_h.
7166 (cp-namespace.o): New.
7167 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7168 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7169 (dwarf2read.o): Depend on cp_support_h.
7170 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7171 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7172 processing_current_namespace.
7173 (read_namespace): Update processing_current_namespace; check for
7174 anonymous namespaces.
7175 (dwarf2_name): New function.
7176 (dwarf2_extension): Ditto.
7177 * cp-support.h: Update copyright, contributors.
7178 Add inclusion guards.
7179 Add opaque declaration for structs obstack, block, symbol.
7180 (struct using_direct): New struct.
7181 Add declarations for cp_find_first_component,
7182 cp_entire_prefix_len, processing_has_namespace_info,
7183 processing_current_namespace, cp_is_anonymous,
7184 cp_add_using_directive, cp_initialize_namespace,
7185 cp_finalize_namespace, cp_set_block_scope,
7186 cp_scan_for_anonymous_namespaces.
7187 * cp-namespace.c: New file.
7188 * cp-support.c: Update copyright.
7189 Include ctype.h, gdb_assert.h, gdbcmd.h.
7190 New variable maint_cplus_cmd_list.
7191 (cp_find_first_component): New function.
7192 (cp_entire_prefix_len, maint_cplus_command)
7193 (first_component_command, _initialize_cp_support): Ditto.
7194 * buildsym.c: Include cp-support.h.
7195 New variable using_list.
7196 (add_symbol_to_list): Check for anonymous namespaces.
7197 (finish_block): Set block's scope.
7198 (start_symtab): Initialize C++ namespace support.
7199 (end_symtab): Finalize C++ namespace support.
7200 * block.h: Add opaque declarations for structs
7201 block_namespace_info, using_direct, and obstack.
7202 Add declarations for block_set_scope and block_set_using.
7203 (struct block): Add 'language_specific' member.
7204 (BLOCK_NAMESPACE): New macro.
7205 * block.c: Include gdb_obstack.h and cp-support.h.
7206 (struct block_namespace_info): New struct.
7207 (block_set_scope): New function.
7208 (block_set_using, block_initialize_namespace): Ditto.
7209
d5a921c9
KB
72102003-04-14 Kevin Buettner <kevinb@redhat.com>
7211
7212 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7213 (locate_base): Return early if there aren't any link map offsets.
7214 (svr4_solib_create_inferior_hook): Warn if shared library support
7215 is unavailable.
7216
d2a52b27
DC
72172003-04-14 David Carlton <carlton@math.stanford.edu>
7218
7219 * symtab.c (symbol_set_names): Add prefix when storing Java names
7220 in hash table. Fix for PR java/1039.
7221
980cae7a
DC
72222003-04-14 David Carlton <carlton@math.stanford.edu>
7223
7224 * symtab.c (symbol_set_names): Rename 'name' arg to
7225 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7226 * symtab.h: Change 'name' argument in declaration of
7227 symbol_set_names to 'linkage_name'.
7228 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7229
e227b13c
AC
72302003-04-14 Andrew Cagney <cagney@redhat.com>
7231
7232 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7233 return the fully sign-extended register value.
7234 (get_frame_pointer): Ditto.
7235 (mips_pop_frame): Initialize "proc_desc" after checking for a
7236 dummy frame.
7237
36712a20
AC
72382003-04-14 Andrew Cagney <cagney@redhat.com>
7239
7240 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7241 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7242 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7243 (mips_push_register): Delete function.
7244 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7245 PUSH_FP_REGNUM.
7246
44ea7b70
JB
72472003-04-14 Jim Blandy <jimb@redhat.com>
7248
7249 * symmisc.c: #include "gdb_regex.h".
7250 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7251 functions.
7252 * maint.c (maintenance_list_command): New function.
7253 (_initialize_maint_cmds): Register the above as commands.
7254 * symtab.h (maintenance_list_symtabs,
7255 maintenance_list_psymtabs): New declarations.
7256 * cli/cli-cmds.c (maintenancelistlist): New variable.
7257 (init_cmd_lists): Initialize it.
7258 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7259 * gdbcmd.h (maintenancelistlist): New declaration.
7260 * Makefile.in (symmisc.o): Update dependencies.
7261
2d0c7962
EZ
72622003-04-14 Elena Zannoni <ezannoni@redhat.com>
7263
7264 * s390-nat.c: Include asm/types.h for addr_t.
7265
1947a811
CV
72662003-04-14 Corinna Vinschen <vinschen@redhat.com>
7267
7268 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7269 actually incoming type.
7270
adb616d7
AC
72712003-04-13 Andrew Cagney <cagney@redhat.com>
7272
7273 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7274 get_next_frame and get_frame_saved_regs.
7275
9b5e151c
AC
72762003-04-13 Andrew Cagney <cagney@redhat.com>
7277
7278 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7279 of gdbarch_num_regs.
7280
ef6e7e13
AC
72812003-04-13 Andrew Cagney <cagney@redhat.com>
7282
7283 * frame.h: Mention what replaced what in "struct frame_info".
7284 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7285 deprecated_update_frame_base_hack and
7286 deprecated_update_frame_pc_hack.
7287 * hppa-tdep.c: Ditto.
7288
61fbb938
DJ
72892003-04-13 Daniel Jacobowitz <drow@mvista.com>
7290
7291 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7292 to read_reg and update its comment. Remove regnum member.
7293 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7294 Don't call read_reg when setting in_reg. Call read_reg to get
7295 the frame base if it's in a register. Return the register number
7296 on the stack instead of in the context. Remove extra arguments
7297 to read_reg.
7298 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7299 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7300 the register number on the expression stack.
7301 (needs_frame_read_reg): Remove extra arguments.
7302
0d53c4c4
DJ
73032003-04-13 Daniel Jacobowitz <drow@mvista.com>
7304
7305 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7306 made non-static.
7307 (execute_stack_op): All callers updated.
7308 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7309 * dwarf2loc.c (find_location_expression): New function.
7310 (dwarf_expr_frame_base): Call it.
7311 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7312 (dwarf2_tracepoint_var_ref): New function, broken out from
7313 locexpr_tracepoint_var_ref.
7314 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7315 Make static.
7316 (loclist_read_variable, loclist_read_needs_frame): New functions.
7317 (loclist_describe_location, loclist_tracepoint_var_ref): New
7318 functions.
7319 (dwarf2_loclist_funcs): New struct location_funcs.
7320 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7321 (struct dwarf2_locexpr_baton): Add comments.
7322 (dwarf2_loclist_funcs): New extern.
7323 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7324 base_address and base_known.
7325 (dwarf_loc_buffer): New variable.
7326 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7327 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7328 (dwarf2_has_info): Initialize dwarf_loc_offset.
7329 (dwarf2_build_psymtabs): Read in .debug_loc.
7330 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7331 DWARF_LOC_SIZE.
7332 (psymtab_to_symtab_1): Likewise. Move base address calculation
7333 here, from...
7334 (dwarf2_get_pc_bounds): ... here. Use the base address from
7335 cu_header.
7336 (dwarf2_symbol_mark_computed): Handle location lists.
7337
6aca59a3
DJ
73382003-04-13 Daniel Jacobowitz <drow@mvista.com>
7339
7340 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7341 if the linkage name demangled successfully.
7342
aca1fcd0
MK
73432003-04-13 Mark Kettenis <kettenis@gnu.org>
7344
97095916
MK
7345 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7346 disassmbly_flavour): Removed.
7347
aca1fcd0
MK
7348 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7349
562a961f
MK
73502003-04-13 Mark Kettenis <kettenis@gnu.org>
7351
7352 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7353
bd013d54
AC
73542003-04-12 Andrew Cagney <cagney@redhat.com>
7355
7356 * frame.h (struct frame_info): Move definition from here ...
7357 * frame.c (struct frame_info): ... to here.
7358
167ef8b1
AC
73592003-04-12 Andrew Cagney <cagney@redhat.com>
7360
7361 * gdbthread.h (save_infrun_state): Delete parameter
7362 "prev_func_start".
7363 (struct thread_info): Delete field "prev_func_start".
7364 (load_infrun_state): Ditto.
7365 * thread.c (load_infrun_state, save_infrun_state): Update.
7366 * infrun.c (prev_func_start): Delete variable.
7367 (context_switch, init_wait_for_inferior): Update.
7368 (stop_stepping, keep_going): Update.
7369
da3331ec
AC
73702003-04-12 Andrew Cagney <cagney@redhat.com>
7371
7372 * gdbarch.sh: Add missing opaque declarations.
7373 * gdbarch.h: Regnerate.
7374 * symtab.h: Add missing opaque declarations.
7375 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7376 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7377 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7378 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7379 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7380 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7381 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7382 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7383 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7384 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7385 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7386 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7387 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7388
18adea3f
AC
73892003-04-11 Andrew Cagney <cagney@redhat.com>
7390
7391 * frame.c (get_frame_id): Return this frame's "id".
7392 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7393 function start.
7394 (legacy_saved_regs_this_id): Replace function body with
7395 internal-error.
7396 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7397 FRAME_OBSTACK_ZALLOC.
7398 (create_new_frame): Mark the frame ID as valid.
7399
2252e863
AO
74002003-04-11 Alexandre Oliva <aoliva@redhat.com>
7401
7402 * Makefile.in (libbfd_h): Added missing setting.
7403 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7404 according to the selected ABI.
7405
a8245ab8
JJ
74062003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7407
7408 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7409
6913c89a
AC
74102003-04-11 Andrew Cagney <cagney@redhat.com>
7411
7412 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7413 SAVED_PC_AFTER_CALL.
7414 * gdbarch.h, gdbarch.c: Regenerate.
7415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7416 * x86-64-tdep.c (x86_64_init_abi): Update.
7417 * vax-tdep.c (vax_gdbarch_init): Update.
7418 * v850-tdep.c (v850_gdbarch_init): Update.
7419 * sparc-tdep.c (sparc_gdbarch_init): Update.
7420 * sh-tdep.c (sh_gdbarch_init): Update.
7421 * s390-tdep.c (s390_gdbarch_init): Update.
7422 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7423 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7424 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7425 * mips-tdep.c (mips_gdbarch_init): Update.
7426 * mcore-tdep.c (mcore_gdbarch_init): Update.
7427 * m68k-tdep.c (m68k_gdbarch_init): Update.
7428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7429 * ia64-tdep.c (ia64_gdbarch_init): Update.
7430 (ia64_saved_pc_after_call): Update declaration.
7431 * i386ly-tdep.c (i386lynx_init_abi): Update.
7432 * i386-tdep.c (i386_gdbarch_init): Update.
7433 * hppa-tdep.c (hppa_gdbarch_init): Update.
7434 * h8300-tdep.c (h8300_gdbarch_init): Update.
7435 * frv-tdep.c (frv_gdbarch_init): Update.
7436 * cris-tdep.c (cris_gdbarch_init): Update.
7437 * avr-tdep.c (avr_gdbarch_init): Update.
7438 * arm-tdep.c (arm_gdbarch_init): Update.
7439 * alpha-tdep.c (alpha_gdbarch_init): Update.
7440 * ns32knbsd-nat.c (frame_num_args): Update.
7441 * ns32k-tdep.c (umax_frame_num_args): Update.
7442 * mips-tdep.c (mips_init_frame_pc_first): Update.
7443 * infrun.c (step_over_function): Update.
7444 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7445 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7446 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7447 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7448 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7449 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7450 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7451 * arch-utils.c (init_frame_pc_default): Update.
7452 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7453 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7454 declaration.
8ffd9b1b 7455
38edeab8
AC
74562003-04-11 Andrew Cagney <cagney@redhat.com>
7457
7458 * i387-tdep.c: Update copyright.
7459 (i387_to_double): Delete function.
7460 (double_to_i387): Delete function.
7461
81f8a206
AC
74622003-04-10 Andrew Cagney <cagney@redhat.com>
7463
7464 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7465 frame's function's address. Simplify.
7466 (d10v_frame_unwind_cache): Check that the frame's function is
7467 non-zero.
7468
6e691f7a
JB
74692003-04-10 Jim Blandy <jimb@redhat.com>
7470
7471 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7472 call to set_gdbarch_deprecated_push_arguments.
7473
7f78e237
AC
74742003-04-10 Andrew Cagney <cagney@redhat.com>
7475
7476 * frame.c (fprint_frame_id): New function.
7477 (fprint_frame_type, fprint_frame): New function.
7478 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7479 (create_sentinel_frame, get_frame_id): Ditto.
7480 (frame_id_p, frame_id_eq): Ditto.
7481 (frame_id_inner, create_new_frame): Ditto.
7482 (legacy_get_prev_frame, get_prev_frame): Ditto.
7483 (deprecated_update_frame_pc_hack): Ditto.
7484 (frame_register_unwind): Ditto.
7485 (deprecated_update_frame_base_hack): Ditto.
7486
f870b49b
CV
74872003-04-10 Corinna Vinschen <vinschen@redhat.com>
7488
7489 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7490 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7491 frame_chain function.
7492 * Makefile.in: Add dependencies due to above change.
7493
7c86889b
CV
74942003-04-10 Corinna Vinschen <vinschen@redhat.com>
7495
7496 * blockframe.c (legacy_frame_chain_valid): Move call to
7497 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7498 inside_entry_file.
7499
d0a55772
AC
75002003-04-09 Andrew Cagney <cagney@redhat.com>
7501
7502 * frame.h (struct frame_id): Replace "pc" and "base" with
7503 "stack_addr" and "code_addr". Update comments.
7504 (frame_id_build): Update parameter names and comment.
7505 (struct frame_info): Replace "id_p" and "id" with "this_id".
7506 * dummy-frame.c (dummy_frame_this_id): Update.
7507 * breakpoint.c (print_one_breakpoint): Update.
7508 * frame.c (get_frame_id): Update.
7509 (get_frame_base, frame_id_build): Update.
7510 (create_sentinel_frame, legacy_get_prev_frame): Update.
7511 (deprecated_update_frame_base_hack): Update.
7512 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7513 (frame_id_inner): Ditto.
7514
ac16bf07
AC
75152003-04-09 Andrew Cagney <cagney@redhat.com>
7516
7517 * defs.h (gdb_print_host_address): Make "addr" parameter a
7518 pointer constant.
7519 * utils.c (gdb_print_host_address): Update.
7520
366cfc9e
KB
75212003-04-09 Kevin Buettner <kevinb@redhat.com>
7522
7523 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7524 register number for R0 is 0.
7525
cd983b5c
JB
75262003-04-09 J. Brobecker <brobecker@gnat.com>
7527
7528 * frame.h (struct gdbarch): Add opaque structure definition
7529 to avoid a compilation warning on LynxOS 4.0.
7530
d1340264
AC
75312003-04-09 Andrew Cagney <cagney@redhat.com>
7532
7533 * frame.h (struct frame_info): Delete field "pc". Replace
7534 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7535 structure.
7536 * frame.c (frame_pc_unwind): Update.
7537 (create_sentinel_frame): Do not set "pc".
7538 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7539 (get_frame_pc): Call frame_pc_unwind.
7540 (deprecated_update_frame_pc_hack): Update.
7541 (create_new_frame): Use "pc" not "->pc".
7542
90a6fffb
AC
75432003-04-09 Andrew Cagney <cagney@redhat.com>
7544
7545 * frame.c (get_frame_id): Eliminate code updating "frame".
7546 (legacy_get_prev_frame): Ditto.
7547 (get_frame_base): Return id.base directly.
7548 (deprecated_update_frame_base_hack): Update "id.base".
7549 * frame.h (struct frame_info): Delete field "frame".
7550
2fbce691
AC
75512003-04-09 Andrew Cagney <cagney@redhat.com>
7552
7553 * NEWS: Mention that the "Sequent family" is obsolete.
7554 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7555 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7556 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7557 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7558 * config/i386/tm-ptx4.h: Obsolete file.
7559 * config/i386/tm-ptx.h: Obsolete file.
7560 * symm-tdep.c: Obsolete file.
7561 * config/i386/symmetry.mt: Obsolete file.
7562 * config/i386/tm-symmetry.h: Obsolete file.
7563 * symm-nat.c: Obsolete file.
7564 * config/i386/nm-symmetry.h: Obsolete file.
7565 * config/i386/xm-symmetry.h: Obsolete file.
7566 * config/i386/symmetry.mh: Obsolete file.
7567 * config/i386/nm-ptx4.h: Obsolete file.
7568 * config/i386/ptx4.mh: Obsolete file.
7569 * config/i386/ptx.mt: Obsolete file.
7570 * config/i386/ptx.mh: Obsolete file.
7571 * config/i386/xm-ptx4.h: Obsolete file.
7572 * config/i386/xm-ptx.h: Obsolete file.
7573
78c43945
AC
75742003-04-09 Andrew Cagney <cagney@redhat.com>
7575
7576 Obsolete mips*-*-mach3*.
7577 * NEWS: Mention that mips*-*-mach3* is obsolete.
7578 * m3-nat.c: Obsolete file.
7579 * config/nm-m3.h: Obsolete file.
7580 * config/mips/tm-mipsm3.h: Obsolete file.
7581 * config/mips/mipsm3.mt: Obsolete file.
7582 * config/mips/mipsm3.mh: Obsolete file.
7583 * config/mips/xm-mipsm3.h: Obsolete file.
7584 * mipsm3-nat.c: Obsolete file.
7585 * configure.host: Obsolete mips-dec-mach3*.
7586 * configure.tgt: Obsolete mips*-*-mach3*.
7587
f1908289
AC
75882003-04-09 Andrew Cagney <cagney@redhat.com>
7589
7590 * doublest.h: Update copyright.
7591 (deprecated_store_floating, deprecated_extract_floating): Rename
7592 store_floating and extract_floating. Update comments.
7593 * doublest.c: Update copyright.
7594 (extract_floating_by_length): Replace extract_floating.
7595 (store_floating_by_length): Replace store_floating.
7596 (deprecated_extract_floating): New function.
7597 (deprecated_store_floating): New function.
7598 (extract_typed_floating): Call extract_floating_by_length.
7599 (store_typed_floating): Call store_floating_by_length.
7600 * x86-64-tdep.c (x86_64_store_return_value): Update.
7601 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7602 (sh64_extract_return_value): Update.
7603 (sh_sh4_register_convert_to_virtual): Update.
7604 (sh_sh64_register_convert_to_virtual): Update.
7605 (sh_sh4_register_convert_to_raw): Update.
7606 (sh_sh64_register_convert_to_raw): Update.
7607 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7608 (rs6000_register_convert_to_raw): Update.
7609 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7610 (ia64_register_convert_to_raw): Update.
7611 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7612 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7613 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7614 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7615 (alpha_register_convert_to_raw): Update.
7616
4443bd83
AC
76172003-04-08 Andrew Cagney <cagney@redhat.com>
7618
7619 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7620 * gdbarch.h, gdbarch.c: Re-generate.
7621 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7622 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7623 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7624 conditionally, use frame_pc_unwind as an alternative. Add
7625 comments.
7626 * arch-utils.c (init_frame_pc_default): Only call
7627 SAVED_PC_AFTER_CALL when available.
7628
c0236d92
EZ
76292003-04-08 Elena Zannoni <ezannoni@redhat.com>
7630
fbe586ae 7631 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7632 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7633 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7634 (start_remote): Ditto.
7635 (handle_inferior_event): Ditto.
7636 (save_inferior_status): Ditto.
7637 (restore_inferior_status): Ditto.
7638 * infcmd.c (attach_command): Ditto.
7639 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7640 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7641 * alpha-tdep.c (heuristic_proc_start): Ditto.
7642 * mips-tdep.c (heuristic_proc_start): Ditto.
7643 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7644 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7645 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7646 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7647 * remote-vx.c (vx_create_inferior): Ditto.
7648
76492003-04-08 Elena Zannoni <ezannoni@redhat.com>
7650
7651 * infrun.c (stop_soon_quietly): Make it an enum, to better
7652 override the default behavior of handle_inferior_event.
7653 (clear_proceed_status): Update uses of stop_soon_quietly to
7654 reflect that it is now an enum.
7655 (start_remote): Ditto.
7656 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7657 is set to handle the new GNU/Linux kernel behavior for
7658 attach/sigstop. Update uses of stop_soon_quietly.
7659 * inferior.h (enum stop_kind): New enum.
7660 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7661 Reset normal handle_inferior_event behavior, afterwards.
7662 * fork-child.c (startup_inferior): Update.
7663 * alpha-tdep.c (heuristic_proc_start): Update.
7664 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7665 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7666 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7667 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7668 * remote-vx.c (vx_create_inferior): Update.
7669 * mips-tdep.c (heuristic_proc_start): Update.
7670
1211bce3
EZ
76712003-04-07 Elena Zannoni <ezannoni@redhat.com>
7672
7673 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7674 be freed more than once, causing wild memory corruptions.
1211bce3 7675 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7676 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7677 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7678 with the "core" target.
1211bce3 7679
f0ef6b29
KB
76802003-04-07 Kevin Buettner <kevinb@redhat.com>
7681
7682 * mips-tdep.c (mips_print_fp_register): New function, created from
7683 do_fp_register_row(). Registers are now (also) printed as hex.
7684 Only one register is printed per row.
7685 (mips_print_register, do_fp_register_row): Print floating point
7686 registers with mips_print_fp_register().
7687
8cf71652
AC
76882003-04-06 Andrew Cagney <cagney@redhat.com>
7689
5e488a7b
AC
7690 * valprint.h (inspect_it): Add extern declaration.
7691 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7692 (selectors_info, classes_info): Ditto.
7693 (find_objc_msgcall): Fix indentation.
7694 (objc_printstr): Delete extern declarations.
7695
8cf71652
AC
7696 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7697
e6ba3bc9
AC
76982003-04-06 Andrew Cagney <cagney@redhat.com>
7699
7700 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7701 Update comment.
7702 * frame.c (legacy_saved_regs_this_id): Update.
7703 (legacy_get_prev_frame): Update.
7704 * xstormy16-tdep.c: Update comment.
7705 * sparc-tdep.c (sparc_frame_chain): Update comment.
7706 * blockframe.c (legacy_frame_chain_valid): Update.
7707
55e1d7e7
AC
77082003-04-06 Andrew Cagney <cagney@redhat.com>
7709
996179ee
AC
7710 * valprint.c (val_print_type_code_int): Delete #ifdef
7711 PRINT_TYPELESS_INTEGER code.
7712
55e1d7e7
AC
7713 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7714 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7715 multi-arch definition.
7716 * gdbarch.h: Re-generate.
7717
43bd9a9e
AC
77182003-04-05 Andrew Cagney <cagney@redhat.com>
7719
7720 Eliminate FRAME_FIND_SAVED_REGS.
7721 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7722 Change FSR parameter to a pointer.
7723 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7724 Assume FSR parameter is a pointer.
7725 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7726 Make fsr a pointer.
7727 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7728 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7729 saved_regs a pointer.
7730 (hppa_frame_saved_pc): Ditto.
7731 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7732 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7733 pointer.
7734 (restore_pc_queue): Make fsr a pointer.
7735 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7736 (hppa_frame_chain): Make saved_regs a pointer, call
7737 hppa_frame_init_saved_regs.
7738 * sparc-tdep.c: Include "gdb_assert.h".
7739 (sparc_frame_find_saved_regs): Replace internal_error with
7740 gdb_assert.
7741 * remote-vxsparc.c (vx_read_register): Delete reference to
7742 FRAME_FIND_SAVED_REGS.
7743 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7744 * gdbarch.h: Regenerate.
7745 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7746 (deprecated_get_frame_saved_regs): Delete declaration.
7747 (struct frame_saved_regs): Delete definition.
7748 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7749 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7750 (hppa_frame_find_saved_regs): Delete declaration.
7751 (FRAME_FIND_SAVED_REGS): Delete macro.
7752 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7753 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7754 FRAME_FIND_SAVED_REGS in comment.
7755
be41e9f4
AC
77562003-04-05 Andrew Cagney <cagney@redhat.com>
7757
7758 * frame.c (frame_func_unwind, get_frame_func): New functions.
7759 * frame.h (get_frame_func, frame_func_unwind): Declare.
7760 (struct frame_info): Add field "prev_func" for caching the
7761 previous frame's function address.
7762 * arm-tdep.c (arm_frameless_function_invocation): Combine
7763 get_pc_function_start and get_frame_pc into get_frame_func.
7764 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7765 (sh64_nofp_frame_init_saved_regs): Ditto.
7766 * s390-tdep.c (s390_function_start): Ditto.
7767 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7768 (rs6000_frameless_function_invocation): Ditto.
7769 (rs6000_frame_saved_pc): Ditto.
7770 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7771 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7772 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7773 (i386_frame_init_saved_regs): Ditto.
7774 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7775 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7776 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7777 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7778 * blockframe.c (frameless_look_for_prologue): Ditto.
7779
a01dd7cc
AC
77802003-04-05 Andrew Cagney <cagney@redhat.com>
7781
7782 * frame.c (legacy_get_prev_frame): Link prev to next at the
7783 function start. Update comments.
7784
5e5592e6
AC
77852003-04-05 Andrew Cagney <cagney@redhat.com>
7786
7787 * frame.c (get_frame_id): Update comment.
7788 (legacy_get_prev_frame): Update comment.
7789 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7790 * gdbarch.h: Regenerate.
7791 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7792 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7793
6fba5002
AC
77942003-04-05 Andrew Cagney <cagney@redhat.com>
7795
7796 * stack.c (print_frame_info): Use get_frame_pc.
7797
7df05f2b
AC
77982003-04-04 Andrew Cagney <cagney@redhat.com>
7799
7800 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7801 the frame's type from the unwinder.
7802 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7803 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7804 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7805 (get_frame_base_address): Use get_frame_type.
7806 (get_frame_locals_address, get_frame_args_address): Ditto.
7807 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7808 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7809 (struct frame_info): Add comment explaining why the frame contains
7810 a "type" field.
7811 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7812 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7813 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7814 NORMAL_FRAME.
7815 * frame-unwind.h: Include "frame.h".
7816 (struct frame_unwind): Add "type" field.
7817 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7818
11889732
AC
78192003-04-04 Andrew Cagney <cagney@redhat.com>
7820
7821 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7822 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7823 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7824 get_frame_base.
7825 (d10v_unwind_dummy_id): Use frame_id_build.
7826 * frame.c (find_frame_sal): Use get_frame_pc.
7827 (create_new_frame): Use deprecated_update_frame_pc_hack and
7828 deprecated_update_frame_base_hack.
7829 (create_sentinel_frame): Add comment about ->pc going away.
7830 (get_prev_frame): Add comment about ->pc going away.
7831 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7832 frame_id_build, deprecated_update_frame_pc_hack and
7833 deprecated_update_frame_base_hack.
7834 (select_frame): Use get_frame_pc.
7835 (legacy_saved_regs_this_id): Use frame_id_build.
7836
50c46a0d
EZ
78372003-04-04 Elena Zannoni <ezannoni@redhat.com>
7838
fbe586ae
RH
7839 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7840 signed integer case.
7841 (classify_argument): Handle enumerations and references.
50c46a0d 7842
50bbdbd9
AC
78432003-04-04 Andrew Cagney <cagney@redhat.com>
7844
7845 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7846 ID to NULL.
7847
36018d2e
AF
78482003-04-01 Adam Fedor <fedor@gnu.org>
7849
7850 * gdb/objc-lang.c (selectors_info): Replace calls to
7851 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7852 SYMBOL_NATURAL_NAME.
7853 (classes_info, find_methods): Likewise.
7854
35cec841
KB
78552003-04-03 Kevin Buettner <kevinb@redhat.com>
7856
7857 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7858 ``mach'' to the value determined by bfd_default_set_arch_mach().
7859
43136899
BR
78602003-04-02 Bob Rossi <bob_rossi@cox.net>
7861
7862 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7863 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7864 (mi-cmd-file.o): Update dependencies.
7865
040b99fd
KB
78662003-04-01 Kevin Buettner <kevinb@redhat.com>
7867
7868 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7869 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7870
9a3d7dfd
AF
78712003-04-01 Adam Fedor <fedor@gnu.org>
7872
7873 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7874 * language.h (struct language_defn): Add la_demangle.
7875 (language_demangle): Declare.
7876 * language.c (language_demangle): New function.
7877 (unk_lang_demangle): Likewise.
7878 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7879 Add ukn_lang_demangle.
9a3d7dfd 7880 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7881 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7882 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7883 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7884 * jv-lang.c (java_demangle): New function
7885 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7886 * objc-lang.c (objc_demangle): Add options argument
7887 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7888 * maint.c (maintenance_demangle): Replace switch with
7889 call to language_demangle.
7890 * utils.c (fprintf_symbol_filtered): Likewise.
7891
5e074003
AC
78922003-04-01 Andrew Cagney <cagney@redhat.com>
7893
7894 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7895 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7896 PRINT_TYPELESS_INTEGER.
7897 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7898 PUSH_RETURN_ADDRESS.
7899
270cb5d6
AC
79002003-04-01 Andrew Cagney <cagney@redhat.com>
7901
7902 * Makefile.in (d10v-tdep.o): Update dependencies.
7903 * d10v-tdep.c: Include "frame-base.h".
7904 (d10v_frame_unwind): Make constant.
7905 (d10v_frame_base_address): New function.
7906 (d10v_frame_base): New variable.
7907 (d10v_gdbarch_init): Set frame_base default.
7908 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7909 comment for base.
7910 (d10v_frame_unwind_cache): Set and use "prev_sp".
7911 (d10v_frame_this_id): Use the previous frame's inner most stack
7912 address and this frame's func address for the frame ID. Use
7913 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7914
6bfb3e36
AC
79152003-04-01 Andrew Cagney <cagney@redhat.com>
7916
7917 * frame.h (get_frame_locals_address, get_frame_args_address):
7918 Refer to the base address, instead of the address of the first
7919 local or parameter.
8ffd9b1b 7920
da62e633
AC
79212003-04-01 Andrew Cagney <cagney@redhat.com>
7922
7923 Add frame debug info addresses:
7924 * frame-base.c: New file.
7925 * frame-base.h: New file.
7926 * frame.h (struct frame_base): Add opaque declaration.
7927 (get_frame_base): Update comment.
7928 (get_frame_base_address): Declare.
7929 (get_frame_locals_address): Declare.
7930 (get_frame_args_address): Declare.
7931 (struct frame_info): Add "base" and "base_cache". Update
7932 comments on the unwinder.
7933 * frame.c: Include "frame-base.h".
7934 (get_frame_locals_address): New function.
7935 (get_frame_base_address): New function.
7936 (get_frame_args_address): New function.
7937 * findvar.c (read_var_value): Use get_frame_locals_address and
7938 get_frame_args_address.
7939 * stack.c (frame_info): Use get_frame_locals_address and
7940 get_frame_args_address.
7941 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7942 moved to "frame-base.c".
7943 * printcmd.c (print_frame_nameless_args): Ditto.
7944 * symtab.h (address_class): Update comments.
7945 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7946 get_frame_base_address.
7947 * dwarf2expr.c (execute_stack_op): Ditto.
7948 * Makefile.in (frame_base_h): Define.
7949 (frame.o): Update dependencies.
7950 (frame-base.o): Add dependencies.
7951 (SFILES): Add frame-base.c.
7952 (COMMON_OBS): Add frame-base.o.
7953
3d30e9c2
AC
79542003-04-01 Andrew Cagney <cagney@redhat.com>
7955
7956 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7957 CALL_DUMMY_LENGTH): Ditto.
7958 * gdbarch.c: Re-generate.
7959 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7960 (CALL_DUMMY_LENGTH): Delete macro.
7961 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7962 * arm-tdep.c (arm_gdbarch_init): Ditto.
7963 * avr-tdep.c (avr_gdbarch_init): Ditto.
7964 * cris-tdep.c (cris_gdbarch_init): Ditto.
7965 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7966 * frv-tdep.c (frv_gdbarch_init): Ditto.
7967 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7968 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7969 * i386-tdep.c (i386_gdbarch_init): Ditto.
7970 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7972 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7973 * mips-tdep.c (mips_gdbarch_init): Ditto.
7974 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7975 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7976 * s390-tdep.c (s390_gdbarch_init): Ditto.
7977 * sh-tdep.c (sh_gdbarch_init): Ditto.
7978 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7979 * v850-tdep.c (v850_gdbarch_init): Ditto.
7980 * vax-tdep.c (vax_gdbarch_init): Ditto.
7981 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7982
ce0c7262
CV
79832003-04-01 Corinna Vinschen <vinschen@redhat.com>
7984
7985 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7986
73dd234f
AC
79872003-04-01 Andrew Cagney <cagney@redhat.com>
7988
7989 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7990 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7991 * gdbarch.h, gdbarch.c: Re-generate.
7992 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7993 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7994 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7995 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7996 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7997 * infcmd.c (run_stack_dummy): Simplify assuming
7998 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7999 * infrun.c (handle_inferior_event): Ditto.
8000 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8001 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8002 * arm-tdep.c (arm_gdbarch_init): Ditto.
8003 * avr-tdep.c (avr_gdbarch_init): Ditto.
8004 * cris-tdep.c (cris_gdbarch_init): Ditto.
8005 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8006 * frv-tdep.c (frv_gdbarch_init): Ditto.
8007 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8008 * i386-tdep.c (i386_gdbarch_init): Ditto.
8009 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8011 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8012 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8013 * mips-tdep.c (mips_gdbarch_init): Ditto.
8014 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8015 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8016 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8017 * s390-tdep.c (s390_gdbarch_init): Ditto.
8018 * sh-tdep.c (sh_gdbarch_init): Ditto.
8019 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8020 * v850-tdep.c (v850_gdbarch_init): Ditto.
8021 * vax-tdep.c (vax_gdbarch_init): Ditto.
8022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8023
97606a13
DJ
80242003-04-01 Daniel Jacobowitz <drow@mvista.com>
8025
8026 * symfile.c (symfile_relocate_debug_section): Update call to
8027 bfd_simple_get_relocated_section_contents.
8028
e8ab51f7
AC
80292003-03-31 Andrew Cagney <cagney@redhat.com>
8030
8031 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8032 * gdbarch.h, gdbarch.c: Regenerate.
8033 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8034 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8035 available.
8036 * frame.h (generic_fix_call_dummy): Delete declaration.
8037 * dummy-frame.h: Update comment.
8038 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8039 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8040 fix_call_dummy.
8041 * sh-tdep.c (sh_gdbarch_init): Ditto.
8042 * s390-tdep.c (s390_gdbarch_init): Ditto.
8043 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8044 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8046 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8047 * i386-tdep.c (i386_gdbarch_init): Ditto.
8048 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8049 * frv-tdep.c (frv_gdbarch_init): Ditto.
8050 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8051 * cris-tdep.c (cris_gdbarch_init): Ditto.
8052 * avr-tdep.c (avr_gdbarch_init): Ditto.
8053 * arm-tdep.c (arm_gdbarch_init): Ditto.
8054
018d1b48
JB
80552003-03-31 J. Brobecker <brobecker@gnat.com>
8056
8057 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8058 (INIT_FRAME_AP): Likewise.
8059 (EXTRA_FRAME_INFO): Likewise.
8060
e9a2674e
AC
80612003-03-31 Andrew Cagney <cagney@redhat.com>
8062
8063 * gdbarch.sh: Include "symfile.h".
8064 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8065 * gdbarch.h, gdbarch.c: Re-generate.
8066 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8068 call_dummy_address, the default is at entry_point_address.
8069 * v850-tdep.c (v850_gdbarch_init): Ditto.
8070 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8071 * sh-tdep.c (sh_gdbarch_init): Ditto.
8072 * s390-tdep.c (s390_gdbarch_init): Ditto.
8073 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8074 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8075 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8076 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8077 * i386-tdep.c (i386_gdbarch_init): Ditto.
8078 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8079 * frv-tdep.c (frv_gdbarch_init): Ditto.
8080 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8081 * cris-tdep.c (cris_gdbarch_init): Ditto.
8082 * arm-tdep.c (arm_gdbarch_init): Ditto.
8083
e8a8712a
AC
80842003-03-31 Andrew Cagney <cagney@redhat.com>
8085
8086 * gdbarch.sh (CALL_DUMMY_P): Delete.
8087 * gdbarch.h, gdbarch.c: Re-generate.
8088 * inferior.h (CALL_DUMMY_P): Delete macro.
8089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8090 * vax-tdep.c (vax_gdbarch_init): Update.
8091 * v850-tdep.c (v850_gdbarch_init): Update.
8092 * sparc-tdep.c (sparc_gdbarch_init): Update.
8093 * sh-tdep.c (sh_gdbarch_init): Update.
8094 * s390-tdep.c (s390_gdbarch_init): Update.
8095 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8096 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8097 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8098 * mips-tdep.c (mips_gdbarch_init): Update.
8099 * mcore-tdep.c (mcore_gdbarch_init): Update.
8100 * m68k-tdep.c (m68k_gdbarch_init): Update.
8101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8102 * ia64-tdep.c (ia64_gdbarch_init): Update.
8103 * i386-tdep.c (i386_gdbarch_init): Update.
8104 * h8300-tdep.c (h8300_gdbarch_init): Update.
8105 * frv-tdep.c (frv_gdbarch_init): Update.
8106 * d10v-tdep.c (d10v_gdbarch_init): Update.
8107 * cris-tdep.c (cris_gdbarch_init): Update.
8108 * breakpoint.c (deprecated_frame_in_dummy): Update.
8109 * avr-tdep.c (avr_gdbarch_init): Update.
8110 * alpha-tdep.c (alpha_gdbarch_init): Update.
8111 * arm-tdep.c (arm_gdbarch_init): Update.
8112 * dummy-frame.c (dummy_frame_this_id): Update comments.
8113 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8114 * frame.c (legacy_get_prev_frame): Ditto.
8115 * valops.c (call_function_by_hand): Delete function.
8116 (hand_function_call): Rename to call_function_by_hand
8117
ed234cf8
AC
81182003-03-30 Andrew Cagney <cagney@redhat.com>
8119
8120 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8121 * value.h (struct value): Update comment.
ed234cf8 8122
06c77151
AC
81232003-03-30 Andrew Cagney <cagney@redhat.com>
8124
6c2b5168
AC
8125 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8126 D10V_FP_REGNUM.
8127 (d10v_gdbarch_init): Do not set fp_regnum.
8128
06c77151
AC
8129 * frame.c (get_frame_base): Force ID initialization.
8130 (get_prev_frame): Move computation of the frame ID from here ...
8131 (get_frame_id): ... to here.
8132 (legacy_get_prev_frame): Mark the frame ID as valid.
8133 * frame.h (struct frame_info): Add field "id_p".
8134
97a1a11c
MK
81352003-03-30 Mark Kettenis <kettenis@gnu.org>
8136
8137 * i386-tdep.c (i386_store_struct_return): Removed.
8138 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8139
6c0e89ed
AC
81402003-03-30 Andrew Cagney <cagney@redhat.com>
8141
8142 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8143 * gdbarch.h, gdbarch.c: Regenerate.
8144 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8146 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8147 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8148 * i386-tdep.c (i386_gdbarch_init): Ditto.
8149 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8150 * cris-tdep.c (cris_gdbarch_init): Ditto.
8151 * vax-tdep.c (vax_gdbarch_init): Ditto.
8152 * s390-tdep.c (s390_gdbarch_init): Ditto.
8153 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8154 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8155 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8156 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8157 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8158 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8159 * sparc-tdep.c (sparc_gdbarch_init): Update.
8160 * sh-tdep.c (sh_gdbarch_init): Update.
8161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8162 * mips-tdep.c (mips_gdbarch_init): Update.
8163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8164 * ia64-tdep.c (ia64_gdbarch_init): Update.
8165 * frv-tdep.c (frv_gdbarch_init): Update.
8166 * avr-tdep.c (avr_gdbarch_init): Update.
8167 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8168 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8169 instead of when push_dummy_call is not available.
8ffd9b1b 8170
f7dd6af2
AC
81712003-03-30 Andrew Cagney <cagney@redhat.com>
8172
8173 * infttrace.c: Include "gdbthread.h".
8174 (parent_attach_all): Fix function signature.
8175 (call_ptrace): Update call.
8176 * Makefile.in (infttrace.o): Update dependencies.
8177
28f617b3
AC
81782003-03-30 Andrew Cagney <cagney@redhat.com>
8179
8180 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8181 PUSH_RETURN_ADDRESS.
8182 * gdbarch.h, gdbarch.c: Regenerate.
8183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8184 * x86-64-tdep.c (x86_64_init_abi): Update.
8185 * v850-tdep.c (v850_gdbarch_init): Update.
8186 * sparc-tdep.c (sparc_gdbarch_init): Update.
8187 * sh-tdep.c (sh_gdbarch_init): Update.
8188 * s390-tdep.c (s390_gdbarch_init): Update.
8189 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8190 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8191 * mips-tdep.c (mips_gdbarch_init): Update.
8192 * mcore-tdep.c (mcore_gdbarch_init): Update.
8193 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8194 * ia64-tdep.c (ia64_gdbarch_init): Update.
8195 * i386-tdep.c (i386_gdbarch_init): Update.
8196 * h8300-tdep.c (h8300_gdbarch_init): Update.
8197 * frv-tdep.c (frv_gdbarch_init): Update.
8198 * cris-tdep.c (cris_gdbarch_init): Update.
8199 * avr-tdep.c (avr_gdbarch_init): Update.
8200 * arm-tdep.c (arm_gdbarch_init): Update.
8201 * valops.c (hand_function_call): Update.
8202
4d628cd7
AC
82032003-03-29 Andrew Cagney <cagney@redhat.com>
8204
8205 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8206 sizeof_call_dummy_words.
8207 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8208 define.
8209 * gdbarch.h: Regenerate.
8ffd9b1b 8210
65e82032
AC
82112003-03-29 Andrew Cagney <cagney@redhat.com>
8212
8213 * infttrace.h: New file.
8214 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8215 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8216 (hpread_read_doc_function_type): Detect an initialized type1.
8217 (hpread_quick_traverse): Initialize mod_name_string.
8218 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8219 (som_solib_get_solib_by_pc): Declare.
8220 (so_lib_thread_start_addr): Declare.
8221 (no_shared_libraries): Declare.
8222 * somread.c (init_import_symbols): Make static. Add forward
8223 declaration.
8224 * config/pa/nm-hppah.h: Include "infttrace.h" for
8225 parent_attach_all.
8226 (hppa_insert_hw_watchpoint): Declare.
8227 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8228 * hppah-nat.c: Include "gdb_string.h".
8229 (parent_attach_all): Delete extern declaration, moved to
8230 "infttrace.h".
8231 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8232 int.
8233 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8234 * Makefile.in (infttrace_h): Define.
8235 (hpread.o): Update dependencies.
8236 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8237 * hppa-hpux-tdep.c: Include "gdb_string.h".
8238 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8239 * infrun.c (handle_inferior_event): Always initialize
8240 stepped_after_stopped_by_watchpoint. Add default and remove
8241 fallthrough in switch statement.
8242 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8243 parameter to int.
8244 (hppa_remove_hw_watchpoint): Ditto.
8245
2c3bbe77
AC
82462003-03-29 Andrew Cagney <cagney@redhat.com>
8247
8248 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8249 offset.
8250
2dd604e7
RE
82512003-03-29 Richard Earnshaw <rearnsha@arm.com>
8252
8253 * arm-tdep.c (arm_push_arguments): Delete.
8254 (struct stack_item): New type.
8255 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8256 (arm_store_struct_return): Delte.
8257 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8258 arm_push_arguments or arm_store_struct_return.
8259
e8933a55
AC
82602003-03-28 Andrew Cagney <cagney@redhat.com>
8261
8262 * Makefile.in (d10v-tdep.o): Update dependencies.
8263 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8264 * d10v-tdep.c: Include "remote.h".
8265 (target_resume_hook): Delete extern declaration.
8266 (target_wait_loop_hook): Ditto.
8267 (tdisassemble_command): Eliminate assignment in "if" conditional.
8268 (d10v_ts2_register_sim_regno): Eliminate call to
8269 legacy_register_sim_regno.
8270 (d10v_ts3_register_sim_regno): Ditto.
8271
6949171e
JJ
82722003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8273
8274 * thread.c: Reindented.
8275 * lin-lwp.c: Ditto.
8276 * linux-proc.c: Ditto.
8277
98c7071f
BR
82782003-03-28 Bob Rossi <bob_rossi@cox.net>
8279
fbe586ae 8280 * MAINTAINERS (write after approval): Add myself.
98c7071f 8281
5edc9ca6
TR
82822003-03-27 Theodore A. Roth <troth@openavr.org>
8283
8284 * objc-exp.y: Add missing semi-colons.
8285
378bfd1b
AC
82862003-03-27 Andrew Cagney <cagney@redhat.com>
8287
8288 * regcache.c (write_sp): Delete function and references.
8289 * inferior.h (write_sp): Delete declaration.
8290 * valops.c (hand_function_call): Replace write_sp with
8291 TARGET_WRITE_SP.
8292 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8293 (sparc_pop_frame): Ditto.
8ffd9b1b 8294
56056df7
AC
82952003-03-27 Andrew Cagney <cagney@redhat.com>
8296
8297 * NEWS: Mention removal of support for hppa*-*-bsd* and
8298 hppa*-*-osf* natives, and hppa*-*-pro* target.
8299 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8300 * config/pa/xm-pa.h: Obsolete file.
8301 * config/pa/xm-hppab.h: Obsolete file.
8302 * config/pa/nm-hppab.h: Obsolete file.
8303 * config/pa/tm-hppab.h: Obsolete file.
8304 * config/pa/tm-hppao.h: Obsolete file.
8305 * config/pa/nm-hppao.h: Obsolete file.
8306 * config/pa/tm-pro.h: Obsolete file.
8307 * config/pa/hppaosf.mt: Obsolete file.
8308 * config/pa/hppaosf.mh: Obsolete file.
8309 * config/pa/hppapro.mt: Obsolete file.
8310 * config/pa/hppabsd.mt: Obsolete file.
8311 * config/pa/hppabsd.mh: Obsolete file.
8312 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8313 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8314 hppa*-*-osf*.
8315
5873a88d
AC
83162003-03-27 Andrew Cagney <cagney@redhat.com>
8317
8318 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8319 push_arguments. Don't set push_return_address or write_sp.
8320 (d10v_push_dummy_call): Replace d10v_push_arguments.
8321 (d10v_push_return_address, d10v_write_sp): Delete function,
8322 handled by push_dummy_call.
8323
b81774d8
AC
83242003-03-26 Andrew Cagney <cagney@redhat.com>
8325
8326 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8327 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8328 regcache and dummy_addr parameters.
8329 * gdbarch.h, gdbarch.c: Re-generate.
8330 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8331 available; assume it will handle stack alignment and return
8332 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8333 legacy_push_arguments.
8334 (legacy_push_arguments): Rename default_push_arguments.
8335 * value.h (legacy_push_arguments): Rename default_push_arguments.
8336 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8337 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8338 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8339 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8340 * config/i386/tm-symmetry.h: Update.
8341 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8342 * x86-64-tdep.c (x86_64_init_abi): Update.
8343 * v850-tdep.c (v850_gdbarch_init): Update.
8344 * sparc-tdep.c (sparc_gdbarch_init): Update.
8345 * sh-tdep.c (sh_gdbarch_init): Update.
8346 * s390-tdep.c (s390_gdbarch_init): Update.
8347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8348 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8349 * mips-tdep.c (mips_gdbarch_init): Update.
8350 * mcore-tdep.c (mcore_gdbarch_init): Update.
8351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8352 * ia64-tdep.c (ia64_gdbarch_init): Update.
8353 * i386-tdep.c (i386_gdbarch_init): Update.
8354 * hppa-tdep.c (hppa_gdbarch_init): Update.
8355 * h8300-tdep.c (h8300_gdbarch_init): Update.
8356 * frv-tdep.c (frv_gdbarch_init): Update.
8357 * d10v-tdep.c (d10v_gdbarch_init): Update.
8358 * cris-tdep.c (cris_gdbarch_init): Update.
8359 * avr-tdep.c (avr_gdbarch_init): Update.
8360 * arm-tdep.c (arm_gdbarch_init): Update.
8361 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8362 * alpha-tdep.c (alpha_gdbarch_init): Update.
8363
f541410f
DJ
83642003-03-26 Daniel Jacobowitz <drow@mvista.com>
8365
8366 * signals/signals.c (do_target_signal_to_host): Correct realtime
8367 signal range test.
8368
69f567ae
DJ
83692003-03-26 Daniel Jacobowitz <drow@mvista.com>
8370
8371 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8372 (struct sal_chain, map_catch_names): Remove.
8373 (catch_exception_command_1): Don't call
8374 handle_gnu_4_16_catch_command.
8375
d5d14a5a
DJ
83762003-03-26 Daniel Jacobowitz <drow@mvista.com>
8377
8378 From Mark Dettinger <dettinge@de.ibm.com>:
8379 * dwarf2cfi.c (read_2u): Increment pointer by two.
8380
bdd73e22
DJ
83812003-03-26 Daniel Jacobowitz <drow@mvista.com>
8382
8383 * signals/signals.c: Fix typos in last change.
8384
960cb555
DJ
83852003-03-26 Daniel Jacobowitz <drow@mvista.com>
8386
8387 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8388 not already defined. Use __SIGRTMIN if available.
8389 (target_signal_from_host): Remove SIGRTMIN block.
8390 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8391 the signal is within the realtime range.
8392
f636b87d
AF
83932003-03-25 Adam Fedor <fedor@gnu.org>
8394
8395 * Makefile.in (infrun.o): Add $(language_h)
8396 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8397 for language specific trampolines.
8398 * language.h (struct language_defn): Add skip_trampoline.
8399 (skip_language_trampoline): Declare.
8400 * language.c (unk_lang_trampoline, skip_language_trampoline):
8401 New functions.
8402 (unknown_language_defn, auto_language_defn, local_language_defn):
8403 Add ukn_lang_trampoline.
8404 * ada-lang.c (ada_language_defn): Add NULL for language
8405 specific skip_trampoline.
8406 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8407 scm-lang.c: Likewise.
8408 * objc-lang.c (objc_skip_trampoline): New function.
8409 (objc_language_defn): Add objc_skip_trampoline.
8410
28f617b3 84112003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8412
8413 * frame.c (get_prev_frame): Delay validating a frame's ID -
8414 non-NULL, didn't go backwards - until an attempt to unwind it to
8415 the previous frame.
8416
f933a9c5
AC
84172003-03-25 Andrew Cagney <cagney@redhat.com>
8418
8419 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8420 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8421 * gdbarch.h, gdbarch.c: Re-generate.
8422 * config/sparc/tm-sparc.h
8423 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8424 * sparc-tdep.c (sparc_gdbarch_init): Set
8425 deprecated_extra_stack_alignment_needed.
8426 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8428 extra_stack_alignment_needed.
8429 * v850-tdep.c (v850_gdbarch_init): Ditto.
8430 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8431 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8432 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8433 * cris-tdep.c (cris_gdbarch_init): Ditto.
8434 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8436
4183d812
AC
84372003-03-25 Andrew Cagney <cagney@redhat.com>
8438
8439 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8440 STORE_STRUCT_RETURN.
8441 * gdbarch.h, gdbarch.c: Regenerate.
8442 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8443 (d10v_push_arguments): Set the struct return register.
8444 (d10v_gdbarch_init): Update.
8445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8446 * x86-64-tdep.c (x86_64_init_abi): Update.
8447 * vax-tdep.c (vax_gdbarch_init): Update.
8448 * v850-tdep.c (v850_gdbarch_init): Update.
8449 * sparc-tdep.c (sparc_gdbarch_init): Update.
8450 * sh-tdep.c (sh_gdbarch_init): Update.
8451 * s390-tdep.c (s390_gdbarch_init): Update.
8452 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8453 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8454 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8455 * mips-tdep.c (mips_gdbarch_init): Update.
8456 * mcore-tdep.c (mcore_gdbarch_init): Update.
8457 * m68k-tdep.c (m68k_gdbarch_init): Update.
8458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8459 * ia64-tdep.c (ia64_gdbarch_init): Update.
8460 * i386-tdep.c (i386_gdbarch_init): Update.
8461 * hppa-tdep.c (hppa_gdbarch_init): Update.
8462 * h8300-tdep.c (h8300_gdbarch_init): Update.
8463 * frv-tdep.c (frv_gdbarch_init): Update.
8464 * cris-tdep.c (cris_gdbarch_init): Update.
8465 * avr-tdep.c (avr_gdbarch_init): Update.
8466 * arm-tdep.c (arm_gdbarch_init): Update.
8467 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8468
1bf6d5cc
AC
84692003-03-25 Andrew Cagney <cagney@redhat.com>
8470
8471 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8472 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8473 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8474 * gdbarch.h, gdbarch.c: Regenerate.
8475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8476 call_dummy_stack_adjust_p.
8477 * vax-tdep.c (vax_gdbarch_init): Ditto.
8478 * v850-tdep.c (v850_gdbarch_init): Ditto.
8479 * sh-tdep.c (sh_gdbarch_init): Ditto.
8480 * s390-tdep.c (s390_gdbarch_init): Ditto.
8481 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8482 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8483 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8484 * mips-tdep.c (mips_gdbarch_init): Ditto.
8485 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8486 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8488 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8489 * i386-tdep.c (i386_gdbarch_init): Ditto.
8490 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8491 * frv-tdep.c (frv_gdbarch_init): Ditto.
8492 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8493 * cris-tdep.c (cris_gdbarch_init): Ditto.
8494 * avr-tdep.c (avr_gdbarch_init): Ditto.
8495 * arm-tdep.c (arm_gdbarch_init): Ditto.
8496 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8497 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8498 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8499 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8500 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8501 call_dummy_stack_adjust_p.
8502 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8503 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8504 * sparc-tdep.c (sparc32_push_arguments): Update.
8505 * valops.c (hand_function_call): Update.
8506
71c08af0
CV
85072003-03-25 Corinna Vinschen <vinschen@redhat.com>
8508
8509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8510 set_gdbarch_char_signed.
8511
30757f90
RE
85122003-03-25 Richard Earnshaw <rearnsha@arm.com>
8513
8514 PR cli/548
8515 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8516
03d48a7d
RE
85172003-03-25 Richard Earnshaw <rearnsha@arm.com>
8518
8519 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8520 (_initialize_arm_tdep): Don't set tm_print_insn.
8521
2cf6873c
AF
85222003-03-24 Adam Fedor <fedor@gnu.org>
8523
8524 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8525 * objc-lang.h: Add multiple inclusion protection.
8526 (start_msglist, add_msglist, end_msglist): Additional declarations.
8527
17c0759e
RE
85282003-03-24 Richard Earnshaw <rearnsha@arm.com>
8529
8530 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8531 value was renamed to ARM_FLOAT_SOFT_FPA.
8532
618ce49f
AC
85332003-03-23 Andrew Cagney <cagney@redhat.com>
8534
8535 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8536 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8537 * gdbarch.h, gdbarch.c: Regenerate.
8538 * valops.c (hand_function_call): Update.
8539 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8540 * frame.c (legacy_saved_regs_this_id): Update.
8541 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8542 * dummy-frame.h: Update.
8543 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8544 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8545 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8546 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8547 * config/m68k/tm-sun3.h: Update.
8548 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8550 * x86-64-tdep.c (x86_64_init_abi): Update.
8551 * vax-tdep.c (vax_gdbarch_init): Update.
8552 * v850-tdep.c (v850_gdbarch_init): Update.
8553 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8554 * sh-tdep.c (sh_gdbarch_init): Update.
8555 * s390-tdep.c (s390_gdbarch_init): Update.
8556 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8557 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8558 (frame_get_saved_regs): Update.
8559 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8560 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8561 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8562 * mips-tdep.c (mips_gdbarch_init): Update.
8563 * mcore-tdep.c (mcore_gdbarch_init): Update.
8564 * m68k-tdep.c (m68k_gdbarch_init): Update.
8565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8566 * ia64-tdep.c (ia64_gdbarch_init): Update.
8567 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8568 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8569 (i386_interix_back_one_frame): Update.
8570 * hppa-tdep.c (hppa_gdbarch_init): Update.
8571 (hppa_init_extra_frame_info): Update.
8572 * h8300-tdep.c (h8300_gdbarch_init): Update.
8573 * frv-tdep.c (frv_gdbarch_init): Update.
8574 * cris-tdep.c (cris_gdbarch_init): Update.
8575 * avr-tdep.c (avr_gdbarch_init): Update.
8576 * arm-tdep.c (arm_gdbarch_init): Update.
8577 * alpha-tdep.c (alpha_gdbarch_init): Update.
8578
fd50bc42
RE
85792003-03-22 Richard Earnshaw <rearnsha@arm.com>
8580
8581 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8582 (arm_get_fp_model): Declare.
8583 * arm-tdep.c (fp_model_strings): New string array.
8584 (arm_fp_model, current_fp_model): New variables.
8585 (arm_get_fp_model): New function.
8586 (arm_set_fp): New function.
8587 (set_fp_model_sfunc): New function.
8588 (show_fp_model): New function.
8589 (_initialize_arm_tdep): Add new command to set/show the FPU.
8590 (arm_extract_return_value): Use arm_get_fp_model.
8591 (arm_store_return_value): Likewise.
8592 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8593 to initialize the floating-point data types.
8594 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8595 model is FPA.
8596
26304000
RE
85972003-03-22 Richard Earnshaw <rearnsha@arm.com>
8598
8599 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8600 the current setting of each value.
8601 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8602 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8603 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8604 commands and add new version as subcommands of "set/show arm".
8605
afd7eef0
RE
86062003-03-22 Richard Earnshaw <rearnsha@arm.com>
8607
8608 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8609 (set_arm_command, show_arm_command): New functions.
8610 (_initialize_arm_tdep): Add them.
8611 (num_disassembly_options): Renamed from num_flavor_options.
8612 (valid_disassembly_styles): Renamed from valid_flavors.
8613 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8614 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8615 set_disassembly_flavor_sfunc.
8616 (set_disassembly_style): Renamed from set_disassembly_flavor.
8617 (arm_othernames): Updated.
8618 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8619 command. Add "set/show arm disassembly" commands. Deprecate
8620 "othernames" command.
8621
299a7944
RE
86222003-03-22 Richard Earnshaw <rearnsha@arm.com>
8623
8624 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8625 (arm-tdep.o): Depend on elf_arm_h.
8626
c1dac9e6
RE
86272003-03-22 Richard Earnshaw <rearnsha@arm.com>
8628
8629 * Makefile.in (coff_internal_h): Define.
8630 (arm-tdep.o): Update dependencies.
8631
2702d96c
RE
86322003-03-22 Richard Earnshaw <rearnsha@arm.com>
8633
8634 * arm-tdep.c (prologue_cache): Delete.
8635 (check_prologue_cache, save_prologue_cache): Delete.
8636 (arm_scan_prologue): Don't check or update the prologue_cache.
8637 (arm_gdb_arch_init): Don't initialize it.
8638 (_initialize_arm_tdep): Likewise.
8639
27d5d74b
SC
86402003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8641
8642 * MAINTAINERS (tui): Maintainer of tui code.
8643
1762d96d
CV
86442003-03-21 Corinna Vinschen <vinschen@redhat.com>
8645
8646 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8647 (i386-cygwin-tdep.o): Add dependencies.
8648 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8649 * i386-cygwin-tdep.c: New file.
8650 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8651 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8652
4c2e2391
AC
86532003-03-20 Andrew Cagney <cagney@redhat.com>
8654
f20d38b7
AC
8655 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8656 (handle_inferior_event): Remove code calling
8657 DYNAMIC_TRAMPOLINE_NEXTPC.
8658
0022b738
AC
8659 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8660 already has a full path.
8661
864dbc90
AC
8662 * main.c (gdb_main): Return 1.
8663 (captured_main): Call error to report an invalid interpreter.
8664
4c2e2391
AC
8665 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8666 * alpha-osf1-tdep.c: Include "gdb_string.h".
8667
5ef7553b
JB
86682003-03-19 J. Brobecker <brobecker@gnat.com>
8669
8670 Continuing work to convert the hppa targets to multiarch partial.
8671
8672 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8673 method, now that hppa_push_dummy_frame has a conformant prototype.
8674 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8675 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8676 for the switch to multiarch partial.
8677
7bde8967
KB
86782003-03-19 Kevin Buettner <kevinb@redhat.com>
8679
8680 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8681 when iss is issNull.
8682
b006a9e9
KB
86832003-03-18 Kevin Buettner <kevinb@redhat.com>
8684
8685 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8686 NUM_REGS bounds check.
8687
5e2e9765
KB
86882003-03-18 Kevin Buettner <kevinb@redhat.com>
8689
8690 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8691 * mips-tdep.c (gdb_assert.h): Include.
8692 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8693 (mips_register_name): Handle integer registers explicitly. Add
8694 bounds checking.
8695 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8696 (mips_lsi33k_reg_names): Don't list integer registers; they're
8697 handled by mips_register_name() now.
8698 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8699 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8700 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8701 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8702 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8703
a2867626
AC
87042003-03-18 Andrew Cagney <cagney@redhat.com>
8705
8706 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8707 a void pointer.
8708 * gdbtypes.h (print_scalar_formatted): Update declaration.
8709 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8710
06600e06
JB
87112003-03-18 J. Brobecker <brobecker@gnat.com>
8712
8713 * infrun.c (observer.h): Add #include.
8714 (normal_stop): Add call to observer_notify_normal_stop.
8715 * Makefile.in (infrun.o): Add dependency on observer.h.
8716
7daf4f5b
JB
87172003-03-18 J. Brobecker <brobecker@gnat.com>
8718
8719 Continuing work to convert the hppa targets to multiarch partial.
8720 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8721 parameter. Reformat comment.
8722 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8723 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8724 to match new profile.
8725
3371ccc0
JB
87262003-03-18 J. Brobecker <brobecker@gnat.com>
8727
8728 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8729 appear to be working in any case.
8730
4fbe891e
JB
87312003-03-18 J. Brobecker <brobecker@gnat.com>
8732
8733 * observer.c (observer_test_first_observer): New static variable.
8734 (observer_test_second_observer): Likewise.
8735 (observer_test_third_observer): Likewise.
8736 (observer_test_first_notification_function): New static function.
8737 (observer_test_second_notification_function): Likewise.
8738 (observer_test_third_notification_function): Likewise.
8739
a7ff40e7
JB
87402003-03-17 J. Brobecker <brobecker@gnat.com>
8741
8742 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8743 * somsolib.c (gdb_assert.h): Likewise.
8744 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8745 (somsolib.o): Likewise.
8746
26ca4152
AC
87472003-03-17 Andrew Cagney <cagney@redhat.com>
8748
8749 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8750 BFD. Simplify setting of di.endian.
8751
0a613259
AC
87522003-03-17 Andrew Cagney <cagney@redhat.com>
8753
8754 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8755 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8756
8757 From Elena Zannoni <ezannoni@redhat.com>
8758 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8759 vector and floating-point parameters.
8760 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8761 convention.
8762 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8763
1132738f
FN
87642003-03-17 Fernando Nasser <fnasser@redhat.com>
8765
8766 * MAINTAINERS: Remove my name from several maintainership roles.
8767
6dc42492
AC
87682003-03-17 Andrew Cagney <cagney@redhat.com>
8769
8770 Fix frame off-by-one bug.
8771 * frame-unwind.h (frame_this_id_ftype): Replace
8772 frame_unwind_id_ftype.
8773 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8774 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8775 with "prev_register".
8776 * frame-unwind.c (frame_unwind_find_by_pc): Return
8777 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8778 comment.
8779 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8780 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8781 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8782 (dummy_frame_unwind): Update.
8783 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8784 sentinel_frame_register_unwind.
8785 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8786 (sentinel_frame_unwinder): Update.
8787 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8788 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8789 * frame.c (create_sentinel_frame): Update. Initialize
8790 "prologue_cache" instead of "unwind_cache".
8791 (frame_register_unwind): Call this frame's prev_register with the
8792 next frame and this frame's prologue cache.
8793 (get_prev_frame): Simplify. Always call prev frame's this_id with
8794 this frame and prev frame's prologue cache. Document that this
8795 call is shifted one to the left when compared to the
8796 frame_register_unwind call.
8797 (legacy_saved_regs_prev_register): Replace
8798 frame_saved_regs_register_unwind.
8799 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8800 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8801 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8802 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8803 (d10v_frame_unwind): Update.
8804 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8805 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8806 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8807 "saved_regs" with "this_saved_regs".
8808
efd710d6
AC
88092003-03-16 Andrew Cagney <cagney@redhat.com>
8810
8811 * frame.c (frame_pop): Don't call target_store_registers. Fix
8812 problem reported by Mark Kettenis.
8813
4e259f09
MK
88142003-03-16 Mark Kettenis <kettenis@gnu.org>
8815
8816 * i386-tdep.c (i386_register_type): Renamed from
8817 i386_register_virtual_type. Adjust function signature.
8818 (i386_gdbarch_init): Set register_type instead of
8819 deprecated_max_register_raw_size,
8820 deprecated_max_register_virtual_size and register_virtual_type.
8821
055bb976
AC
88222003-03-14 Andrew Cagney <cagney@redhat.com>
8823
8824 * frame.c (get_prev_frame): When a legacy frame, always call
8825 legacy_get_prev_frame. Simplify unwind code using assumption that
8826 the unwinder is new.
8827 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8828 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8829 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8830
ac2adee5
AC
88312003-03-14 Andrew Cagney <cagney@redhat.com>
8832
8833 * frame.c (get_saved_register): Delete function.
8834 * frame.h (get_saved_register): Delete declaration.
8835 * xstormy16-tdep.c: Update comment.
8836 * regcache.h: Update comments.
8837 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8838 get_saved_register and extract_address, use
8839 frame_read_unsigned_register.
8840 (sparc_frame_saved_pc): Ditto.
8841 (sparc_get_saved_register): Instead of get_saved_register, use
8842 frame_register.
8843 (sparc_pop_frame): Ditto.
8844 * findvar.c: Update comments.
8845 (value_of_register): Call frame_register instead of
8846 get_saved_register.
8847 (value_from_register): Ditto.
8848 * config/sparc/tm-sparc.h: Update comment.
8849 * breakpoint.c: Update comment.
8850
129c1cd6
AC
88512003-03-14 Andrew Cagney <cagney@redhat.com>
8852
8853 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8854 GET_SAVED_REGISTER.
8855 * gdbarch.h, gdbarch.c: Re-generate.
8856 * frame.h: Update comments.
8857 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8858 * x86-64-tdep.c (x86_64_init_abi): Update.
8859 * sparc-tdep.c (sparc_gdbarch_init): Update.
8860 * sh-tdep.c (sh_gdbarch_init): Update.
8861 * mips-tdep.c (mips_gdbarch_init): Update.
8862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8863 * cris-tdep.c (cris_gdbarch_init): Update.
8864 * ia64-tdep.c (ia64_gdbarch_init): Update.
8865 * frame.c (frame_register): Update.
8866 (get_saved_register): Update.
8867 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8868
749b82f6
AC
88692003-03-13 Andrew Cagney <cagney@redhat.com>
8870
8871 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8872 * gdbarch.h, gdbarch.c: Regenerate.
8873 * valops.c (hand_function_call): Update comment.
8874 * stack.c (return_command): Update comment.
8875 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8876 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8878 * x86-64-tdep.c (x86_64_init_abi): Update.
8879 * vax-tdep.c (vax_gdbarch_init): Update.
8880 * v850-tdep.c (v850_gdbarch_init): Update.
8881 * sparc-tdep.c (sparc_gdbarch_init): Update.
8882 * sh-tdep.c (sh_gdbarch_init): Update.
8883 * s390-tdep.c (s390_gdbarch_init): Update.
8884 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8885 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8886 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8887 * mips-tdep.c (mips_gdbarch_init): Update.
8888 * mcore-tdep.c (mcore_gdbarch_init): Update.
8889 * m68k-tdep.c (m68k_gdbarch_init): Update.
8890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8891 * ia64-tdep.c (ia64_gdbarch_init): Update.
8892 * i386-tdep.c (i386_gdbarch_init): Update.
8893 * hppa-tdep.c (hppa_gdbarch_init): Update.
8894 * h8300-tdep.c (h8300_gdbarch_init): Update.
8895 * frv-tdep.c (frv_gdbarch_init): Update.
8896 * cris-tdep.c (cris_gdbarch_init): Update.
8897 * avr-tdep.c (avr_gdbarch_init): Update.
8898 * arm-tdep.c (arm_gdbarch_init): Update.
8899 * alpha-tdep.c (alpha_gdbarch_init): Update.
8900
1594fa56
AC
89012003-03-13 Andrew Cagney <cagney@redhat.com>
8902
8903 * frame.c (legacy_frame_p): New function.
8904 (get_prev_frame): Use legacy_frame_p.
8905 * frame.h (legacy_frame_p): Declare.
8906
7717fda3
V
89072003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8908
fbe586ae 8909 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8910 listing corrected.
8911
0c67cbe9
V
89122003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8913
fbe586ae 8914 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8915
03febf99
AC
89162003-03-12 Andrew Cagney <cagney@redhat.com>
8917
8918 * frame.c (get_prev_frame): Rename the frame parameter to
8919 "this_frame".
8920 (get_next_frame, legacy_get_prev_frame): Ditto.
8921
0a1e1ca1
AC
89222003-03-12 Andrew Cagney <cagney@redhat.com>
8923
8924 * frame.c (get_current_frame): Check target_has_registers before
8925 checking target_has_stack.
8926 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8927 instead of deprecated_selected_frame.
8928 * findvar.c (value_of_register): Pass "frame", not
8929 deprecated_selected_frame, to value_of_builtin_reg.
8930
a66a9c23
AC
89312003-03-12 Andrew Cagney <cagney@redhat.com>
8932
8933 * regcache.c (regcache_cooked_write_signed): New function.
8934 (regcache_cooked_write_unsigned): New function.
8935 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8936 (regcache_cooked_read_signed): Fix regnum in range assertion.
8937 * regcache.h (regcache_cooked_write_signed): Declare.
8938 (regcache_cooked_write_unsigned): Declare.
8939
8bedc050
AC
89402003-03-12 Andrew Cagney <cagney@redhat.com>
8941
8942 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8943 * gdbarch.h, gdbarch.c: Re-generate.
8944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8945 * x86-64-tdep.h: Update.
8946 * x86-64-tdep.c (x86_64_init_abi): Update.
8947 * v850-tdep.c (v850_gdbarch_init): Update.
8948 * sparc-tdep.c (sparc_gdbarch_init): Update.
8949 * sh-tdep.c (sh_gdbarch_init): Update.
8950 * s390-tdep.c (s390_gdbarch_init): Update.
8951 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8952 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8953 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8954 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8955 * mips-tdep.c (mips_gdbarch_init): Update.
8956 * mcore-tdep.c (mcore_gdbarch_init): Update.
8957 * m68k-tdep.c (m68k_gdbarch_init): Update.
8958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8959 * ia64-tdep.c (ia64_gdbarch_init): Update.
8960 * i386-tdep.c (i386_gdbarch_init): Update.
8961 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8962 * hppa-tdep.c (hppa_gdbarch_init): Update.
8963 * h8300-tdep.c (h8300_gdbarch_init): Update.
8964 * frv-tdep.c (frv_gdbarch_init): Update.
8965 * cris-tdep.c (cris_gdbarch_init): Update.
8966 * avr-tdep.c (avr_gdbarch_init): Update.
8967 * arm-tdep.c (arm_gdbarch_init): Update.
8968 * alpha-tdep.c (alpha_gdbarch_init): Update.
8969 * sh-tdep.c (sh_init_extra_frame_info): Update.
8970 (sh64_init_extra_frame_info): Update.
8971 * ns32knbsd-nat.c (frame_num_args): Update.
8972 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8973 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8974 (xstormy16_frame_chain_valid): Update.
8975 * vax-tdep.c (vax_saved_pc_after_call): Update.
8976 * v850-tdep.c (v850_frame_chain): Update.
8977 (v850_pop_frame): Update.
8978 (v850_init_extra_frame_info): Update.
8979 * sparc-tdep.c (setup_arbitrary_frame): Update.
8980 * ns32k-tdep.c (umax_frame_num_args): Update.
8981 * s390-tdep.c (s390_pop_frame_regular): Update.
8982 * mn10300-tdep.c (mn10300_frame_chain): Update.
8983 (mn10300_pop_frame_regular): Update.
8984 (mn10300_init_extra_frame_info): Update.
8985 * mips-tdep.c (mips_init_frame_pc_first): Update.
8986 (mips_frame_chain): Update.
8987 (mips_pop_frame): Update.
8988 * mcore-tdep.c (mcore_frame_chain): Update.
8989 (mcore_pop_frame): Update.
8990 (mcore_init_extra_frame_info): Update.
8991 * arch-utils.c (init_frame_pc_default): Update.
8992 * m68k-tdep.c (isi_frame_num_args): Update.
8993 (delta68_frame_num_args): Update.
8994 (news_frame_num_args): Update.
8995 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8996 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8997 (alpha_frame_chain): Update.
8998 (alpha_pop_frame): Update.
8999 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9000 (hppa_init_extra_frame_info): Update.
9001 (hppa_frame_chain): Update.
9002 (hppa_frame_chain_valid): Update.
9003 * cris-tdep.c (cris_init_extra_frame_info): Update.
9004 * avr-tdep.c (avr_init_extra_frame_info): Update.
9005 * arm-tdep.c (arm_frame_chain_valid): Update.
9006 (arm_init_extra_frame_info): Update.
9007 (arm_pop_frame): Update.
9008 * frame.c (frame_pc_unwind): Update.
9009 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9010 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9011 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9012 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9013 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9014 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9015
7a25a7c1
AC
90162003-03-12 Andrew Cagney <cagney@redhat.com>
9017
9018 Eliminate the need for POP_FRAME.
9019 * frame.c (do_frame_unwind_register): New function.
9020 (frame_pop): When no POP_FRAME, pop the frame using register
9021 unwind and a scratch regcache.
9022 (frame_saved_regs_pop): Delete function.
9023 (trad_frame_unwinder): Update.
9024 * d10v-tdep.c (d10v_frame_pop): Delete function.
9025 (d10v_frame_unwind): Update.
9026 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9027 (sentinel_frame_unwinder): Update.
9028 * dummy-frame.c (dummy_frame_pop): Delete function.
9029 (dummy_frame_unwind): Update.
9030 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9031 (struct frame_unwind): Update.
9032
2f38ef89
KB
90332003-03-11 Kevin Buettner <kevinb@redhat.com>
9034
9035 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9036 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9037 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9038 Do range checks on register number obtained from debugging info.
9039 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9040 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9041 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9042 mapping function.
9043 (do_fp_register_row): Fix typo which caused double type to be
9044 used when attempting to unpack a float.
9045
552f4abf
JB
90462003-03-11 J. Brobecker <brobecker@gnat.com>
9047
9048 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9049
e0d2ae16
AC
90502003-03-11 Andrew Cagney <cagney@redhat.com>
9051
9052 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9053 frame. Problem found by Corinna Vinschen.
9054
ddbfdd06
PM
90552003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9056
9057 * doublest.c (floatformat_from_length): Accept also
9058 the real size of 'long double' type.
9059
088b2ddc 90602003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9061
088b2ddc 9062 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9063 * breakpoint.c (bpstat_copy): Copy the command lines as well
9064 as the old value, to match what is freed in bpstat_clear.
9065
f56f77c1
DC
90662003-03-10 David Carlton <carlton@math.stanford.edu>
9067
9068 * minsyms.c (add_minsym_to_hash_table): Replace
9069 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9070 (compare_minimal_symbols, compact_minimal_symbols)
9071 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9072 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9073 of DEPRECATED_SYMBOL_MATCHES_NAME.
9074 (lookup_minimal_symbol_solib_trampoline): Ditto.
9075
5602984a
AC
90762003-03-10 Andrew Cagney <cagney@redhat.com>
9077
9078 * regcache.h (regcache_cooked_read_ftype): Define.
9079 (regcache_save, regcache_restore): Add a cooked_read parameter.
9080 * regcache.c (regcache_save, regcache_restore): Update.
9081 (do_cooked_read): New function.
9082 (regcache_cpy): Pass do_cooked_read to regcache_save and
9083 regcache_restore.
9084
8bedc050
AC
90852003-03-10 Andrew Cagney <cagney@redhat.com>
9086
9087 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9088 * gdbarch.h, gdbarch.c: Re-generate.
9089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9090 * x86-64-tdep.h: Update.
9091 * x86-64-tdep.c (x86_64_init_abi): Update.
9092 * v850-tdep.c (v850_gdbarch_init): Update.
9093 * sparc-tdep.c (sparc_gdbarch_init): Update.
9094 * sh-tdep.c (sh_gdbarch_init): Update.
9095 * s390-tdep.c (s390_gdbarch_init): Update.
9096 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9097 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9098 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9099 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9100 * mips-tdep.c (mips_gdbarch_init): Update.
9101 * mcore-tdep.c (mcore_gdbarch_init): Update.
9102 * m68k-tdep.c (m68k_gdbarch_init): Update.
9103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9104 * ia64-tdep.c (ia64_gdbarch_init): Update.
9105 * i386-tdep.c (i386_gdbarch_init): Update.
9106 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9107 * hppa-tdep.c (hppa_gdbarch_init): Update.
9108 * h8300-tdep.c (h8300_gdbarch_init): Update.
9109 * frv-tdep.c (frv_gdbarch_init): Update.
9110 * cris-tdep.c (cris_gdbarch_init): Update.
9111 * avr-tdep.c (avr_gdbarch_init): Update.
9112 * arm-tdep.c (arm_gdbarch_init): Update.
9113 * alpha-tdep.c (alpha_gdbarch_init): Update.
9114 * sh-tdep.c (sh_init_extra_frame_info): Update.
9115 (sh64_init_extra_frame_info): Update.
9116 * ns32knbsd-nat.c (frame_num_args): Update.
9117 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9118 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9119 (xstormy16_frame_chain_valid): Update.
9120 * vax-tdep.c (vax_saved_pc_after_call): Update.
9121 * v850-tdep.c (v850_frame_chain): Update.
9122 (v850_pop_frame): Update.
9123 (v850_init_extra_frame_info): Update.
9124 * sparc-tdep.c (setup_arbitrary_frame): Update.
9125 * ns32k-tdep.c (umax_frame_num_args): Update.
9126 * s390-tdep.c (s390_pop_frame_regular): Update.
9127 * mn10300-tdep.c (mn10300_frame_chain): Update.
9128 (mn10300_pop_frame_regular): Update.
9129 (mn10300_init_extra_frame_info): Update.
9130 * mips-tdep.c (mips_init_frame_pc_first): Update.
9131 (mips_frame_chain): Update.
9132 (mips_pop_frame): Update.
9133 * mcore-tdep.c (mcore_frame_chain): Update.
9134 (mcore_pop_frame): Update.
9135 (mcore_init_extra_frame_info): Update.
9136 * arch-utils.c (init_frame_pc_default): Update.
9137 * m68k-tdep.c (isi_frame_num_args): Update.
9138 (delta68_frame_num_args): Update.
9139 (news_frame_num_args): Update.
9140 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9141 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9142 (alpha_frame_chain): Update.
9143 (alpha_pop_frame): Update.
9144 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9145 (hppa_init_extra_frame_info): Update.
9146 (hppa_frame_chain): Update.
9147 (hppa_frame_chain_valid): Update.
9148 * cris-tdep.c (cris_init_extra_frame_info): Update.
9149 * avr-tdep.c (avr_init_extra_frame_info): Update.
9150 * arm-tdep.c (arm_frame_chain_valid): Update.
9151 (arm_init_extra_frame_info): Update.
9152 (arm_pop_frame): Update.
9153 * frame.c (frame_pc_unwind): Update.
9154 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9155 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9156 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9157 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9158 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9159 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9160
12cc2063
AC
91612003-03-10 Andrew Cagney <cagney@redhat.com>
9162
9163 * gdbarch.sh (gdbarch_unwind_pc): New method.
9164 * gdbarch.h, gdbarch.c: Regenerate.
9165 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9166 but use read_pc and FRAME_SAVED_PC as fall backs.
9167 (frame_saved_regs_pc_unwind): Delete function.
9168 (trad_frame_unwinder): Update.
9169 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9170 (struct frame_unwind): Update.
9171 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9172 (dummy_frame_unwind): Update.
9173 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9174 (sentinel_frame_unwinder): Update.
9175 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9176 (d10v_frame_unwind): Update.
9177 (d10v_unwind_pc): New function.
9178 (d10v_gdbarch_init): Set unwind_pc.
9179
ef840a37
AC
91802003-03-10 Andrew Cagney <cagney@redhat.com>
9181
a2ce2e56
AC
9182 * gdbarch.h: Re-generate.
9183
ef840a37
AC
9184 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9185 PC.
9186 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9187 the PC register.
9188
08f3424b
MK
91892003-03-08 Mark Kettenis <kettenis@gnu.org>
9190
9191 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9192
1248ede2
AC
91932003-03-08 Andrew Cagney <cagney@redhat.com>
9194
9195 * cli-out.c: Update copyright.
9196 (cli_out_data): Define typedef. Use instead of ui_out_data.
9197
f49bacc8
AC
91982003-03-08 Andrew Cagney <cagney@redhat.com>
9199
9200 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9201 the result.
9202
9b05f993
AC
92032003-03-07 Andrew Cagney <cagney@redhat.com>
9204
9205 * gdbarch.sh: Don't generate two macro definitions when an
9206 undefined macro taking no arguments.
9207 * gdbarch.h: Regenerate.
8ffd9b1b 9208
166f4c7b
ML
92092002-03-07 Michal Ludvig <mludvig@suse.cz>
9210
9211 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9212 (x86_64_unwind_dummy_id): New functions.
9213 (x86_64_init_abi): Register these two new functions.
9214
6d686a84
ML
92152003-03-07 Michal Ludvig <mludvig@suse.cz>
9216
9217 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9218 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9219 separate function.
9220 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9221
6314f104
AC
92222003-03-05 Andrew Cagney <cagney@redhat.com>
9223
9224 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9225 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9226 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9227 to use unwind_dummy_id when a dummy frame.
9228 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9229 predicate.
9230 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9231
ceea5145
AC
92322003-03-05 Andrew Cagney <cagney@redhat.com>
9233
9234 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9235 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9236 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9237 values.
9238
0d843116
AC
92392003-03-05 Andrew Cagney <cagney@redhat.com>
9240
9241 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9242 (struct d10v_unwind_cache): Delete field "frameless". Replace
9243 "next_addr" with "sp_offset". Add "r11_offset".
9244 (d10v_frame_unwind_cache): Update.
9245 (prologue_find_regs): Update. When "mv r11, sp", save the
9246 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9247 RN was saved in r11_offset.
9248
b2579786
AC
92492003-03-05 Andrew Cagney <cagney@redhat.com>
9250
9251 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9252 cached PC value in the next frame.
9253
218e5956
AC
92542003-03-05 Andrew Cagney <cagney@redhat.com>
9255
9256 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9257 "id_unwind_cache" with "id".
9258 (frame_id_unwind): Delete declaration.
9259 * frame.c (frame_id_unwind): Delete function.
9260 (get_prev_frame): Call the frame id unwind method directly. Store
9261 the returned next frame's ID value in NEXT_FRAME. Note that there
9262 is a problem with the wrong unwind ID being called with the wrong
9263 unwind cache.
9264
ed363b1b
DJ
92652003-03-05 Daniel Jacobowitz <drow@mvista.com>
9266
9267 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9268
fe1f4a5e
DJ
92692003-03-05 James Ingham <jingham@apple.com>
9270 Daniel Jacobowitz <drow@mvista.com>
9271
9272 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9273 (auto_cp_abi): New variable.
9274 (current_cp_abi, num_cp_abis): Make static.
9275 (CP_ABI_MAX): Define.
9276 (cp_abis): Turn into an array.
9277 (value_virtual_fn_field): Fix formatting.
9278 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9279 takes a pointer.
9280 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9281 (list_cp_abis, _initialize_cp_abi): New functions.
9282 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9283 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9284 switch_to_cp_abi. Update prototype for register_cp_abi.
9285 * Makefile.in (cp-abi.o): Update dependencies.
9286 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9287 instead of switch_to_cp_abi.
9288 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9289 register_cp_abi.
9290 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9291 register_cp_abi.
9292 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9293
e4adbba9
DJ
92942003-03-05 Daniel Jacobowitz <drow@mvista.com>
9295
9296 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9297 * dwarf2loc.c: Include "regcache.h".
9298 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9299 register_size.
9300 * Makefile.in (dwarf2loc.o): Update dependencies.
9301
91ccbfc1
TR
93022003-03-04 Theodore A. Roth <troth@openavr.org>
9303
9304 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9305 number of io registers reported by remote target is not a multiple of
9306 step.
9307
3d4e8fd2
DC
93082003-03-04 David Carlton <carlton@math.stanford.edu>
9309
9310 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9311 (lookup_symbol_aux_psymtabs): Update call to
9312 lookup_partial_symbol.
9313 (lookup_transparent_type, find_main_psymtab)
9314 (make_symbol_overload_list): Ditto.
9315
ed42d87b
KH
93162003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9317
9318 * MAINTAINERS (Write after approval): Update my email address.
9319
a0ed5532
AC
93202003-03-03 Andrew Cagney <cagney@redhat.com>
9321
9322 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9323 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9324 predicate. Replace MAX_REGISTER_RAW_SIZE.
9325 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9326 MAX_REGISTER_VIRTUAL_SIZE.
9327 * regcache.c (legacy_max_register_raw_size): New function.
9328 (legacy_max_register_virtual_size): New function.
9329 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9330 (MAX_REGISTER_RAW_SIZE): Define.
9331 (legacy_max_register_raw_size): Declare.
9332 (legacy_max_register_virtual_size): Declare.
9333 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9334 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9335 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9336 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9337 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9338 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9339 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9340 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9341 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9343 * vax-tdep.c (vax_gdbarch_init): Update.
9344 * v850-tdep.c (v850_gdbarch_init): Update.
9345 * sparc-tdep.c (sparc_gdbarch_init): Update.
9346 * sh-tdep.c (sh_gdbarch_init): Update.
9347 * s390-tdep.c (s390_gdbarch_init): Update.
9348 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9349 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9350 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9351 * mips-tdep.c (mips_gdbarch_init): Update.
9352 * mcore-tdep.c (mcore_gdbarch_init): Update.
9353 * m68k-tdep.c (m68k_gdbarch_init): Update.
9354 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9355 * ia64-tdep.c (ia64_gdbarch_init): Update.
9356 * i386-tdep.c (i386_gdbarch_init): Update.
9357 * hppa-tdep.c (hppa_gdbarch_init): Update.
9358 * h8300-tdep.c (h8300_gdbarch_init): Update.
9359 * frv-tdep.c (frv_gdbarch_init): Update.
9360 * cris-tdep.c (cris_gdbarch_init): Update.
9361 * avr-tdep.c (avr_gdbarch_init): Update.
9362 * arm-tdep.c (arm_gdbarch_init): Update.
9363 * alpha-tdep.c (alpha_gdbarch_init): Update.
9364 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9365 max_register_raw_size or max_register_virtual_size.
9366
8e437497
DC
93672003-03-03 David Carlton <carlton@math.stanford.edu>
9368
9369 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9370 SYMBOL_MATCHES_NAME, add comment.
9371 (SYMBOL_MATCHES_NATURAL_NAME): New.
9372 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9373 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9374 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9375 * symtab.c (lookup_partial_symbol): Use
9376 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9377 unhelpful comment.
9378 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9379 SYMBOL_MATCHES_NAME.
9380 Fix for PR c++/33.
9381
25120b0d
DC
93822003-03-03 David Carlton <carlton@math.stanford.edu>
9383
9384 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9385 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9386 by regexp matching against SYMBOL_NATURAL_NAME.
9387
78a11fb4
DC
93882003-03-03 David Carlton <carlton@math.stanford.edu>
9389
9390 * linespec.c (find_method): Extract code into collect_methods.
9391 (collect_methods): New.
9392
645dd519
MK
93932003-03-02 Mark Kettenis <kettenis@gnu.org>
9394
b4700d91
MK
9395 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9396 get_frame_base.
9397
645dd519
MK
9398 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9399 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9400
0aa7e1aa
SC
94012003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9402
8ffd9b1b 9403 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9404 and not regnum when summing the size of all registers up to regnum.
9405
f30ee0bc
AC
94062003-03-01 Andrew Cagney <cagney@redhat.com>
9407
9408 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9409 FRAME_INIT_SAVED_REGS.
9410 * gdbarch.h, gdbarch.c: Regenerate.
9411 * stack.c (frame_info): Update.
9412 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9413 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9414 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9415 * ns32k-tdep.c (ns32k_pop_frame): Update.
9416 * mips-tdep.c (mips_pop_frame): Update.
9417 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9418 * ia64-tdep.c (ia64_frame_chain): Update.
9419 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9420 (ia64_frameless_function_invocation): Update.
9421 (ia64_init_extra_frame_info): Update.
9422 (ia64_pop_frame_regular): Update.
9423 * frame.h (struct frame_info): Update comment.
9424 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9425 * frame.c (frame_saved_regs_register_unwind): Update.
9426 (frame_saved_regs_register_unwind): Update.
9427 (deprecated_generic_get_saved_register): Update.
9428 * cris-tdep.c: Update comment.
9429 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9430 Rename macro.
9431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9432 * x86-64-tdep.c (x86_64_init_abi): Update.
9433 * vax-tdep.c (vax_gdbarch_init): Update.
9434 * v850-tdep.c (v850_gdbarch_init): Update.
9435 * sparc-tdep.c (sparc_gdbarch_init): Update.
9436 * sh-tdep.c (sh_gdbarch_init): Update.
9437 * s390-tdep.c (s390_gdbarch_init): Update.
9438 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9439 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9440 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9441 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9442 * mips-tdep.c (mips_gdbarch_init): Update.
9443 * mcore-tdep.c (mcore_gdbarch_init): Update.
9444 * m68k-tdep.c (m68k_gdbarch_init): Update.
9445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9446 * ia64-tdep.c (ia64_gdbarch_init): Update.
9447 * i386-tdep.c (i386_gdbarch_init): Update.
9448 * frv-tdep.c (frv_gdbarch_init): Update.
9449 * avr-tdep.c (avr_gdbarch_init): Update.
9450 * arm-tdep.c (arm_gdbarch_init): Update.
9451 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9452
42fa7c0f
AC
94532003-03-01 Andrew Cagney <cagney@redhat.com>
9454
9455 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9456 option enum and switch. When no windows, set the interpreter to
9457 INTERP_CONSOLE.
8ffd9b1b 9458
49c7e338
AC
94592003-03-01 Andrew Cagney <cagney@redhat.com>
9460
9461 * main.c (captured_main): Replace magic option characters with an
9462 enum.
9463
e9582e71
AC
94642003-03-01 Andrew Cagney <cagney@redhat.com>
9465
9466 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9467 INIT_EXTRA_FRAME_INFO.
9468 * gdbarch.h, gdbarch.c: Regenerate.
9469 * arm-tdep.c: Update comments.
9470 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9471 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9472 * frame.h, avr-tdep.c: Ditto.
9473 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9474 (create_new_frame, legacy_get_prev_frame): Ditto.
9475 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9476 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9478 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9479 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9480 * v850-tdep.c (v850_gdbarch_init): Ditto.
9481 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9482 * sh-tdep.c (sh_gdbarch_init): Ditto.
9483 * s390-tdep.c (s390_gdbarch_init): Ditto.
9484 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9485 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9486 * mips-tdep.c (mips_gdbarch_init): Ditto.
9487 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9489 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9490 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9491 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9492 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9493 * frv-tdep.c (frv_gdbarch_init): Ditto.
9494 * cris-tdep.c (cris_gdbarch_init): Ditto.
9495 * avr-tdep.c (avr_gdbarch_init): Ditto.
9496 * arm-tdep.c (arm_gdbarch_init): Ditto.
9497 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9498 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9499
35cac7cf
AC
95002003-03-01 Andrew Cagney <cagney@redhat.com>
9501
9502 * gdbarch.sh (register_type): New function with predicate.
9503 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9504 * gdbarch.h, gdbarch.c: Re-generate.
9505 * arch-utils.c (generic_register_byte): Use generic_register_size.
9506 (generic_register_size): When available, use
9507 gdbarch_register_type.
9508 * regcache.c (init_regcache_descr): When available, initialize the
9509 register type array using gdbarch_register_type. If the
9510 architecture supplies gdbarch_register_type, do not use the legacy
9511 regcache layout.
9512 * d10v-tdep.c (d10v_register_type): Replace
9513 d10v_register_virtual_type.
9514 (d10v_gdbarch_init): Set register_type instead of
9515 register_virtual_type.
9516
7b83296f
AC
95172003-03-01 Andrew Cagney <cagney@redhat.com>
9518
9519 * Makefile.in (ax-gdb.o): Update dependencies.
9520 * ax-gdb.c: Include "regcache.h".
9521 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9522 * findvar.c (value_of_register): Ditto.
9523 * infcmd.c (default_print_registers_info): Ditto.
9524
eadc1c87
MK
95252003-03-01 Mark Kettenis <kettenis@gnu.org>
9526
9527 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9528 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9529
14143612
MK
95302003-03-01 Mark Kettenis <kettenis@gnu.org>
9531
9532 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9533 of STREQ.
9534
a55cc764
DJ
95352003-02-28 Daniel Jacobowitz <drow@mvista.com>
9536
9537 * Makefile.in (dwarf2loc.o): Update dependencies.
9538 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9539 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9540 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9541 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9542 (locexpr_tracepoint_var_ref): New function.
9543 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9544
08a617da
AC
95452003-02-28 Andrew Cagney <cagney@redhat.com>
9546
9547 * regcache.c (register_size): New function.
9548 * regcache.h (register_size): Declare
9549 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9550 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9551
4224873a
DC
95522003-02-28 David Carlton <carlton@math.stanford.edu>
9553
9554 * linespec.c (decode_compound): Extract code into find_method.
9555 (find_method): New.
9556
ccdc5d7f
JB
95572003-02-28 J. Brobecker <brobecker@gnat.com>
9558
9559 * Makefile.in: Add rules to build and link in observer.o.
9560
974e8ced
JB
95612003-02-27 J. Brobecker <brobecker@gnat.com>
9562
9563 * observer.c: Minor comments edits.
9564
7a28f973
JB
95652003-02-27 J. Brobecker <brobecker@gnat.com>
9566
9567 * observer.h, observer.c: New file.
9568
27cddce2
AC
95692003-02-27 Andrew Cagney <cagney@redhat.com>
9570
9571 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9572
b94a41a1
SC
95732003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9574
9575 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9576 (M6812_OP_STS_EXT): Likewise.
9577 (m6811_prologue): Use the above to recognize prologue.
9578 (m6812_prologue): Likewise.
9579
c8be8951
DC
95802003-02-27 David Carlton <carlton@math.stanford.edu>
9581
9582 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9583 SYMBOL_PRINT_NAME.
9584 (compare_psymbols): Ditto.
9585 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9586
d05bb1fc
MS
95872003-02-27 Michael Snyder <msnyder@redhat.com>
9588
4e845cd3
MS
9589 * f-lang.c (build_fortran_types): New function.
9590 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9591 * doublest.c (extract_floating): Fix warning text.
9592
f3824013
AC
95932003-02-27 Andrew Cagney <cagney@redhat.com>
9594
9595 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9596 predicate. Replaces PUSH_DUMMY_FRAME.
9597 * gdbarch.h, gdbarch.c: Regnerate.
9598 * valops.c (hand_function_call): Update. Call
9599 generic_push_dummy_frame directly.
9600 * vax-tdep.c (vax_gdbarch_init): Update.
9601 * sparc-tdep.c (sparc_gdbarch_init): Update.
9602 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9603 * m68k-tdep.c (m68k_gdbarch_init): Update.
9604 * hppa-tdep.c (hppa_gdbarch_init): Update.
9605 * alpha-tdep.c (alpha_gdbarch_init): Update.
9606 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9607 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9608 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9610 push_dummy_frame to generic_push_dummy_frame.
9611 * v850-tdep.c (v850_gdbarch_init): Ditto.
9612 * sh-tdep.c (sh_gdbarch_init): Ditto.
9613 * s390-tdep.c (s390_gdbarch_init): Ditto.
9614 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9615 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9616 * mips-tdep.c (mips_gdbarch_init): Ditto.
9617 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9619 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9620 * i386-tdep.c (i386_gdbarch_init): Ditto.
9621 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9622 * frv-tdep.c (frv_gdbarch_init): Ditto.
9623 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9624 * cris-tdep.c (cris_gdbarch_init): Ditto.
9625 * avr-tdep.c (avr_gdbarch_init): Ditto.
9626 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9627
ad188201
KB
96282003-02-26 Kevin Buettner <kevinb@redhat.com>
9629
9630 * mips-tdep.c (show_mips_abi): New function.
9631 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9632 command ``show mips abi''.
9633
6b37567a 96342003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9635
6b37567a 9636 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9637 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9638 more sline entries have been seen for the function.
9639
d3e0a5bf
MC
96402003-02-26 Michael Chastain <mec@shout.net>
9641
9642 * configure: Regenerate with autoconf 000227.
9643
18972eea
MC
96442003-02-26 Michael Chastain <mec@shout.net>
9645
9646 Close PR build/660.
9647 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9648 for old libc5/glibc.
9649 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9650
0bbde931
KW
96512003-02-26 Kris Warkentin <kewarken@qnx.com>
9652
9653 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9654 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9655
27ca5dad
MC
96562003-02-26 Michael Chastain <mec@shout.net>
9657
9658 * configure.in: New variable HAVE_UINTPTR_T.
9659 * configure, config.in: Regenerated.
9660
6f88d630
DJ
96612003-02-26 Daniel Jacobowitz <drow@mvista.com>
9662
9663 Fix PR build/1097.
9664 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9665
b14185ce
AC
96662003-02-25 Andrew Cagney <cagney@redhat.com>
9667
9668 * frame.c (get_prev_frame): Add comment on check for
9669 inside_entry_func. Only check for inside_entry_file when not a
9670 dummy and not a sentinel. Check that the new frame is not inner
9671 to the old frame.
9672
ac2bd0a9
AC
96732003-02-25 Andrew Cagney <cagney@redhat.com>
9674
9675 * frame.c (frame_debug): New variable.
9676 (_initialize_frame): Add "set/show debug frame" command.
9677 (get_prev_frame): When frame_debug, print reason why unwind
9678 failed.
9679
b18a0fd2
MC
96802003-02-25 Michael Chastain <mec@shout.net>
9681
9682 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9683 to avoid uintptr_t definition problems.
9684
22abf04a
DC
96852003-02-25 David Carlton <carlton@math.stanford.edu>
9686
9687 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9688 (SYMBOL_LINKAGE_NAME): Ditto.
9689 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9690 SYMBOL_LINKAGE_NAME.
9691 (struct general_symbol_info): Expand comment.
9692 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9693 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9694 (SYMBOL_MATCHES_REGEXP): Ditto.
9695 * symtab.c (symbol_natural_name): New function.
9696 * objfiles.h: Replace all uses of SYMBOL_NAME by
9697 DEPRECATED_SYMBOL_NAME.
9698 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9699 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9700 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9701 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9702 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9703 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9704 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9705 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9706 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9707 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9708 * ada-exp.y: Ditto.
9709 * ada-exp.y: Update copyright.
9710 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9711 * cp-valprint.c: Ditto.
9712
1a5848f6
JJ
97132003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9714
9715 * infptrace.c (detach): Do not flag error if ptrace detach fails
9716 and errno is set to ESRCH.
9717
7343d46a
AC
97182003-02-24 Andrew Cagney <cagney@redhat.com>
9719
9720 * infptrace.c (udot_info): Change type of udot_off to long. Use
9721 paddr when printing udot_off's value.
9722
49fa1dc2
DC
97232003-02-24 David Carlton <carlton@math.stanford.edu>
9724
9725 * symtab.c (make_symbol_overload_list): Only read in partial
9726 symtabs containing a matching partial symbol.
9727
0fe19209
DC
97282003-02-24 David Carlton <carlton@math.stanford.edu>
9729
9730 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9731 do the comparison, not strcmp.
9732 * symfile.c (compare_psymbols): Ditto.
9733 * defs.h: Declare strcmp_iw_ordered.
9734 * utils.c (strcmp_iw_ordered): New function.
9735
8e3ee7b5
JB
97362003-02-24 Jim Blandy <jimb@redhat.com>
9737
9738 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9739 support, shared libs): Remove my name from here, to better reflect
9740 reality.
9741
7df1a324
KW
97422003-02-24 Kris Warkentin <kewarken@qnx.com>
9743
9744 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9745 (target_ops): Add to_have_continuable_watchpoint.
9746 * target.c (update_current_target): Add INHERIT line for
9747 to_have_continuable_watchpoint.
9748 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9749 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9750 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9751 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9752
d1c76907
EZ
97532003-02-24 Elena Zannoni <ezannoni@redhat.com>
9754
9755 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9756 maintainership.
9757
2610b0bf
KW
97582003-02-24 Kris Warkentin <kewarken@qnx.com>
9759
f46169db
KW
9760 * solib.c (solib_open): Call target defined search function after
9761 failing with solib-search-path.
9762 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9763 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9764
9a3c34fe
KW
97652003-02-24 Kris Warkentin <kewarken@qnx.com>
9766
f46169db 9767 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9768
2417dd25
SC
97692003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9770
9771 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9772
b631436b
SC
97732003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9774
9775 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9776 (m68hc11_add_reggroups): New function.
9777 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9778 (m68hc11_gdbarch_init): Install the reggroups.
9779 (_initialize_m68hc11_tdep): Initialize them.
9780
0aa8c1e4
JW
97812003-02-21 James E Wilson <wilson@tuliptree.org>
9782
9783 * MAINTAINERS: Update my email address.
9784
50ceaba5
DC
97852003-02-21 David Carlton <carlton@math.stanford.edu>
9786
9787 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9788
4c2df51b
DJ
97892003-02-21 Daniel Jacobowitz <drow@mvista.com>
9790
9791 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9792 * symtab.h: Add opaque declarations of struct axs_value and
9793 struct agent_expr.
9794 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9795 (struct location_funcs): New type.
9796 (struct symbol): Add "loc" to aux_value.
9797 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9798 * dwarf2read.c: Include "dwarf2expr.h".
9799 (dwarf2_symbol_mark_computed): New function.
9800 (read_func_scope): Use it.
9801 (var_decode_location): New function.
9802 (new_symbol): Use it.
9803 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9804
9805 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9806 (dwarf2expr_h, dwarf2loc_h): New variables.
9807 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9808 (dwarf2expr.o, dwarf2loc.o): New rules.
9809 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9810 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9811 LOC_COMPUTED_ARG.
9812 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9813 * m2-exp.y (yylex): Likewise.
9814 * printcmd.c (address_info, print_frame_args): Likewise.
9815 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9816 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9817 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9818 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9819 * symtab.c (lookup_block_symbol): Likewise.
9820
5784d15e
AF
98212003-02-20 Adam Fedor <fedor@gnu.org>
9822
9823 * symtab.h: Remove objc_specific struct
9824 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9825 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9826 Have language_objc use cplus_specific struct.
9827
d4cad8db
TT
98282003-02-20 Tom Tromey <tromey@redhat.com>
9829
9830 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9831 TYPE_NAME, when printing a String value. PR java/1075.
9832
2f9a90b4
AF
98332003-02-20 Adam Fedor <fedor@gnu.org>
9834
d38074a8 9835 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9836 * objc-lang.c (find_methods): Make static.
2f9a90b4 9837
6f17862b
CF
98382003-02-20 Christopher Faylor <cgf@redhat.com>
9839
9840 * win32-nat.c (get_image_name): Check return value from
9841 ReadProcessMemory.
9842 (child_xfer_memory): Ditto.
9843
715d1656
AO
98442003-02-20 Alexandre Oliva <aoliva@redhat.com>
9845
9846 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9847 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9848 '${exec_prefix}' (in addition to the expansion thereof) as
9849 relocatable.
9850 * configure: Rebuilt.
9851
b1262a02
DC
98522003-02-20 David Carlton <carlton@math.stanford.edu>
9853
9854 * symtab.c (search_symbols): Revert the search_symbols part of my
9855 2002-12-23 patch. Add comment.
9856
7134143f
DJ
98572002-02-20 Daniel Jacobowitz <drow@mvista.com>
9858
9859 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9860 * dbxread.c (elfstab_build_psymtabs): Don't call
9861 install_minimal_symbols.
9862 (stabsect_build_psymtabs): Likewise.
9863 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9864 earlier.
9865 * somread.c (som_symfile_read): Call install_minimal_symbols
9866 and do_cleanups earlier.
9867 * nlmread.c (nlm_symfile_read): Likewise.
9868 * mdebugread.c (elfmdebug_build_psymtabs): Call
9869 install_minimal_symbols and make appropriate cleanups.
9870
cf466558
KB
98712003-02-20 Kevin Buettner <kevinb@redhat.com>
9872
9873 * solib.c (reload_shared_libraries): New function.
9874 (_initialize_solib): Add callbacks for ``set solib-search-path''
9875 and ``set solib-absolute-prefix''.
9876
de5ad195
DC
98772003-02-20 David Carlton <carlton@math.stanford.edu>
9878
9879 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9880 expand comment.
9881 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9882 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9883 * ada-typeprint.c (ada_typedef_print): Ditto.
9884 * ax-gdb.c (gen_var_ref): Ditto.
9885 * breakpoint.c (print_one_breakpoint): Ditto.
9886 * buildsym.c (finish_block): Ditto.
9887 * c-valprint.c (c_val_print): Ditto.
9888 * expprint.c (print_subexp): Ditto.
9889 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9890 * infcmd.c (jump_command): Ditto.
9891 * linespec.c (decode_line_2, decode_compound): Ditto.
9892 * maint.c (maintenance_translate_address): Ditto.
9893 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9894 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9895 Ditto.
8ffd9b1b
AJ
9896 * p-valprint.c (pascal_val_print): Ditto.
9897 * stabsread.c (define_symbol): Ditto.
de5ad195 9898 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9899 (print_frame_arg_vars, return_command): Ditto.
9900 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9901 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9902 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9903 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9904 (rbreak_command): Ditto.
9905 * tracepoint.c (tracepoints_info): Ditto.
9906 * typeprint.c (typedef_print): Ditto.
9907 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9908 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9909 * ada-typeprint.c: Update Copyright.
9910 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9911 * tracepoint.c, cli/cli-cmds.c: Ditto.
9912
f796e4be
KB
99132003-02-20 Kevin Buettner <kevinb@redhat.com>
9914
9915 * frame.c (generic_unwind_get_saved_register): Make non-static.
9916 * frame.h (generic_unwind_get_saved_register): Declare.
9917 * mips-tdep.c (read_next_frame_reg): Fetch register from
9918 current regcache when frame is NULL.
9919 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9920 that must be NULL.
9921 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9922 instead of frame_register_unwind().
9923
836cc9f4
AC
99242003-02-20 Andrew Cagney <ac131313@redhat.com>
9925
9926 * remote-sim.c (gdbsim_insert_breakpoint)
9927 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9928 code.
9929
501eef12
AC
99302003-02-20 Andrew Cagney <ac131313@redhat.com>
9931
9932 * remote.c (_initialize_remote): Add commands "set/show remote
9933 hardware-watchpoint-limit" and "set/show remote
9934 hardware-breakpoint-limit".
9935 (remote_hw_watchpoint_limit): Initialize to -1.
9936 (remote_hw_breakpoint_limit): Ditto.
9937 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9938
1b6bc7e0
CF
99392003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9940
9941 * coff-pe-read.c: New file - support reading of minimal symbols from a
9942 portable executable using the export table.
9943 * coff-pe-read.h: New file.
9944 * coffread.c: Include coff-pe-read.h.
9945 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9946 debugging symbols found.
9947 * Makefile.in (SFILES): Add coff-pe-read.o.
9948 (coff_pe_read_h): Define.
9949 (COMMON_OBS): Add coff-pe-read.o.
9950 (coffread.o): Add coff_pe_read_h dependency.
9951 (coff-pe-read.o): New target.
9952
fe898f56
DC
99532003-02-19 David Carlton <carlton@math.stanford.edu>
9954
9955 * Makefile.in (SFILES): Add block.c.
9956 (block_h): New.
9957 (COMMON_OBS): Add block.o.
9958 (block.o): New.
9959 (x86-64-tdep.o): Add $(block_h).
9960 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9961 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9962 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9963 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9964 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9965 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9966 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9967 * value.h: Add opaque declaration for struct block.
9968 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9969 * ada-lang.h: Ditto.
9970 * x86-64-tdep.c: #include "block.h"
9971 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9972 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9973 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9974 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9975 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9976 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9977 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9978 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9979 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9980 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9981 * symtab.c (block_function): Ditto.
9982 (contained_in): Ditto.
9983 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9984 block.h. Add opaque declaration for struct block.
9985 * symtab.h: Move block_function and contained_in declarations to
9986 block.h. Add opaque declarations for struct block, struct
9987 blockvector.
9988 (struct block): Move to block.h.
9989 (struct blockvector): Ditto.
9990 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9991 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9992 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9993 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9994 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9995 Ditto.
9996 * block.c: New file.
9997 * block.h: New file.
9998
173345b5
TR
99992003-02-19 Theodore A. Roth <troth@openavr.org>
10000
10001 * avr-tdep.c (avr_extract_return_value): Remove function.
10002 (avr_store_return_value): Remove function.
10003 (avr_extract_struct_value_address): Remove function.
10004 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10005
338ef23d
AC
100062003-02-19 Andrew Cagney <ac131313@redhat.com>
10007
10008 * rs6000-tdep.c: Include "gdb_assert.h".
10009 (registers_e500): Add "acc" and "spefscr".
10010 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10011 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10012 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10013 really is "r0".
10014 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10015
5412f5f3
KS
100162003-02-18 Keith Seitz <keiths@redhat.com>
10017
10018 * Makefile.in: Add gdbtk-interps.c.
10019
881324eb
KB
100202003-02-18 Kevin Buettner <kevinb@redhat.com>
10021
10022 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10023 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10024
6a2f5abf
AC
100252003-02-18 Andrew Cagney <cagney@redhat.com>
10026
10027 * symtab.h (struct objfile): Add opaque declaration.
10028
54c7009d
EZ
100292003-02-18 Elena Zannoni <ezannoni@redhat.com>
10030
10031 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10032 * dbxread.c (process_one_symbol): Use last_function_start rather
10033 than function_start_offset to find the real beginning of the
10034 current function. The latter is just the text section offset on
10035 some systems, the former is always the real function start.
54c7009d 10036
7ee6d7eb
AC
100372003-02-17 Andrew Cagney <cagney@redhat.com>
10038
10039 * configure.in: Revert ${target} != ${host}.
10040
2846da9b
AC
100412003-02-17 Andrew Cagney <ac131313@redhat.com>
10042
10043 * configure.in (Makefile): Use the test ${target} != ${host},
10044 instead of the absence of the "nm.h" file, to determine of the
10045 configuration non-native.
10046 * configure: Regenerate.
8ffd9b1b 10047
3b27aeea
EZ
100482003-02-14 Elena Zannoni <ezannoni@redhat.com>
10049
fbe586ae 10050 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10051
10052 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10053 conditionalize tui_active test.
10054 (lookup_cmd_1): Ditto.
10055
b0b1c2c0
MK
100562003-02-14 Mark Kettenis <kettenis@gnu.org>
10057
10058 * configure.in: Add check for _etext.
10059 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10060 available.
10061 * config.in, configure: regenerated.
10062
8f05cde5
DJ
100632003-02-14 Daniel Jacobowitz <drow@mvista.com>
10064
10065 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10066
021e7609
AC
100672003-02-14 Andrew Cagney <ac131313@redhat.com>
10068
10069 * main.c (tui_version): Delete variable.
10070 (captured_main): When --tui, set interpreter_p to "tui" instead of
10071 enabling tui_version.
10072 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10073 tui_version.
10074 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10075 * cli/cli-cmds.c (disassemble_command): Ditto.
10076 * defs.h (tui_version): Delete declaration.
10077 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10078 (tui-interp.o): Add rules.
10079 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10080
e325dcec
CF
100812003-02-14 Christopher Faylor <cgf@redhat.com>
10082
36ffb041 10083 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10084 just-loaded dll.
10085
c4f90d87
JM
100862003-02-12 Jason Molenda (jmolenda@apple.com)
10087
fbe586ae
RH
10088 * symmisc.c (print_objfile_statistics): Include information about
10089 the number of psymtabs and symtabs in each object file.
c4f90d87 10090
e46e5ccd
KS
100912003-02-13 Keith R Seitz <keiths@redhat.com>
10092
10093 * main.h (struct captured_main_args): Add interpreter_p.
10094 * main.c (captured_main): Initialize interpreter_p from context.
10095 * gdb.c (main): Set interpreter_p argument.
10096 * Makefile.in (gdb.o): Add dependency for interps.h.
10097
fe97fe9c
AC
100982003-02-12 Andrew Cagney <ac131313@redhat.com>
10099
10100 * event-top.c (cli_command_loop): Delete declaration.
10101 (_initialize_event_loop): Delete function setting event_loop_hook.
10102 * event-top.h (cli_command_loop): Declare. Update copyright.
10103 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10104 * interps.c (current_interp_command_loop): When event_loop_p, call
10105 cli_command_loop.
10106
1cdac4ef
AC
101072003-02-12 Andrew Cagney <ac131313@redhat.com>
10108
10109 * interps.h (interp_command_loop_ftype): Change return type to
10110 void.
10111
48037ead
ML
101122003-02-12 Michal Ludvig <mludvig@suse.cz>
10113
10114 * x86-64-tdep.c (x86_64_extract_return_value)
10115 (x86_64_store_return_value): Use regcache instead of regbuf.
10116 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10117 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10118
033afc63
AC
101192003-02-11 Andrew Cagney <ac131313@redhat.com>
10120
10121 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10122 * aclocal.m4: Regenerate.
10123 * configure: Regenerate.
10124
10125 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10126 TCL_LD_SEARCH_FLAGS.
10127
40d02bca
ML
101282003-02-10 Michal Ludvig <mludvig@suse.cz>
10129
10130 * dwarf2cfi.c: Reindented.
10131
11308a41
AC
101322003-02-09 Andrew Cagney <ac131313@redhat.com>
10133
10134 * interps.c (clear_interpreter_hooks): Convert function definition
10135 to ISO C.
10136
e1c1c0f6
DC
101372003-02-07 David Carlton <carlton@math.stanford.edu>
10138
10139 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10140
ab5d3da6
KB
101412003-02-07 Kevin Buettner <kevinb@redhat.com>
10142
10143 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10144 (struct type): ...to here.
10145 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10146 field.
10147 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10148 (replace_type): Set length on all type variants for a given type.
10149
b8a92b82
AC
101502003-02-07 Andrew Cagney <ac131313@redhat.com>
10151
10152 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10153 <sys/stat.h>.
10154 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10155
5cb316ef
AC
101562003-02-06 Andrew Cagney <ac131313@redhat.com>
10157
2555fe1a
AC
10158 * Makefile.in (symm-nat.o): Update dependencies.
10159 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10160 (lynx-nat.o, ia64-linux-nat.): Ditto.
10161 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10162 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10163 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10164
44270758
AC
10165 * Makefile.in (inflow_h): Define.
10166 (procfs.o, inflow.o, procfs.o): Update dependencies.
10167 * inftarg.c (child_stop): Delete extern declaration of
10168 inferior_process_group. Include "inflow.h".
10169 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10170 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10171 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10172 (our_process_group, inferior_process_group): Extern declarations.
10173
df8f7274
AC
10174 * procfs.c: Include "gdb_assert.h".
10175
5cb316ef
AC
10176 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10177 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10178 * jv-typeprint.c (java_type_print_base): Ditto.
10179 * typeprint.c (typedef_print): Eliminate STREQ.
10180 * cli/cli-script.c (define_command, define_command): Ditto.
10181 * main.c (captured_main): Ditto.
10182 * values.c (lookup_internalvar): Ditto.
10183 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10184 within `if' conditional.
10185 * linespec.c (decode_line_2): Ditto.
10186 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10187 (bfd_openw_with_cleanup): Ditto.
10188
2a28ccea
MK
101892003-02-07 Mark Kettenis <kettenis@gnu.org>
10190
10191 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10192 legacy_extract_return_value and store_return_value to
10193 legacy_return_value.
10194
786b8124
CF
101952003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10196
10197 * win32-nat.c (get_relocated_section_addrs): New function. Find
10198 section load addresses for symbol handling in relocated DLLs.
10199 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10200
b871e4ec
FF
102012003-02-05 Fred Fish <fnf@intrinsity.com>
10202
10203 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10204 '=' and '!='.
10205 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10206 with '&' and '=='.
10207 (angel_RDI_info): Ditto.
10208 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10209 with '&' and '!='.
10210 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10211
4389a95a 102122003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10213 Keith Seitz <keiths@redhat.com>
10214 Elena Zannoni <ezannoni@redhat.com>
10215 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10216
10217 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10218 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10219 (SUBDIR_MI_OBS): Add "mi-interp.o".
10220 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10221 (SFILES): Add "interps.c".
10222 (COMMON_OBS): Add "interps.o".
10223 (interps_h, mi_main_h): Define.
10224 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10225 (mi-main.o, main.o, event-top.o): Update dependencies.
10226 * cli/cli-interp.c: New file.
10227 * interps.h, interps.c: New files.
10228 * top.c: (gdb_init): Don't install the default interpreter, handed
10229 by captured_main.
10230 * main.c: Include "interps.h".
10231 (interpreter_p): Note that it should malloc'ed.
10232 (captured_command_loop): Call current_interp_command_loop.
10233 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10234 xfree and xstrdup when updating interpreter_p. Install the
10235 default interpreter. Add hack to stop mi1's copyright notice
10236 being encoded.
10237 * event-top.h (gdb_setup_readline): Declare.
10238 (gdb_disable_readline): Declare.
10239 * event-top.c: Include "interps.h".
10240 (display_gdb_prompt): Call current_interp_display_prompt_p.
10241 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10242 gdb_stdlog, and gdb_stdtarg.
10243 (_initialize_event_loop): Don't call gdb_setup_readline.
10244 * cli-out.c (cli_out_set_stream): New function.
10245 * cli-out.h (cli_out_set_stream): Declare.
10246
ff3b5810
MK
102472003-02-06 Mark Kettenis <kettenis@gnu.org>
10248
10249 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10250 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10251 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10252 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10253 config/i386/i386v42mp.mt: Removed.
10254
5b729aa5
MK
102552003-02-05 Mark Kettenis <kettenis@gnu.org>
10256
10257 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10258 GDB_OSABI_SOLARIS.
10259
8cc15142
MC
102602003-02-05 Michael Chastain <mec@shout.net>
10261
10262 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10263 2.12.1 and earlier versions.
10264
5aa5d4b9
AC
102652003-02-05 Andrew Cagney <ac131313@redhat.com>
10266
10267 Remove orphaned hosts, targets and files.
10268 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10269 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10270 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10271 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10272 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10273 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10274 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10275 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10276 * config/sparc/tm-sp64sim.h: Delete.
10277 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10278 hosts.
10279 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10280 mips*-dec-mach3* targets.
10281
b68767c1
MC
102822003-02-04 Michael Chastain <mec@shout.net>
10283
10284 * NEWS: Fix typo: sepcifying -> specifying.
10285
5ae7ca1d
MC
102862003-02-04 Michael Chastain <mec@shout.net>
10287
10288 * dwarfread.c: Add documentation on the state of dwarf-1,
10289 looking towards obsoletion.
10290
d08a4280
MC
102912003-02-03 Michael Chastain <mec@shout.net>
10292
10293 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10294 gdb/testsuite/gdb.c++/pr-1023.exp.
10295
e9be73e4
AC
102962003-02-04 Andrew Cagney <ac131313@redhat.com>
10297
10298 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10299 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10300
10301 * utils.c (init_page_info): Delete reference to MPW in comments.
10302 * main.c (captured_main): Delete #ifdef MPW.
10303
05d57f6f
AC
103042003-02-04 Andrew Cagney <ac131313@redhat.com>
10305
8ffd9b1b 10306 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10307 * monitor.c (monitor_expect): Obsolete reference to m32r.
10308 * configure.tgt: Mark m32r-*-elf* as obsolete.
10309 * MAINTAINERS: Mark m32k as obsolete.
10310 * m32r-rom.c: Obsolete file.
10311 * config/m32r/m32r.mt: Obsolete file.
10312 * config/m32r/tm-m32r.h: Obsolete file.
10313 * m32r-stub.c: Obsolete file.
10314 * m32r-tdep.c: Obsolete file.
10315
8b0e5691
AC
103162003-02-04 Andrew Cagney <ac131313@redhat.com>
10317
10318 * NEWS: Mention that the z8k-zilog-none is obsolete.
10319 * MAINTAINERS: Mark z8k as obsolete.
10320 * configure.tgt: Obsolete the z8k-*-coff* target.
10321 * config/z8k/z8k.mt: Obsolete file.
10322 * config/z8k/tm-z8k.h: Obsolete file.
10323 * z8k-tdep.c: Obsolete file.
10324
67f16606
AC
103252003-02-04 Andrew Cagney <ac131313@redhat.com>
10326
10327 * NEWS: Mention that the mn10200-elf is obsolete.
10328 * configure.tgt: Obsolete mn10200-*-* target.
10329 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10330 mention that the mn10200 is obsolete.
10331 * breakpoint.h: Ditto.
10332 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10333 * config/mn10200/mn10200.mt: Obsolete file.
10334 * config/mn10200/tm-mn10200.h: Obsolete file.
10335 * mn10200-tdep.c: Obsolete file.
10336
fd2299bd
AC
103372003-02-04 Andrew Cagney <ac131313@redhat.com>
10338
10339 * MAINTAINERS: Mark h8500 as obsolete.
10340 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10341 * findvar.c (value_from_register): Ditto.
10342 * h8500-tdep.c: Mark file as obsolete.
10343 * config/h8500/h8500.mt: Ditto.
10344 * config/h8500/tm-h8500.h: Ditto.
10345 * NEWS: Mention that h8500 is obsolete.
10346
eb9a305d
DC
103472003-02-04 David Carlton <carlton@math.stanford.edu>
10348
10349 * objfiles.c (allocate_objfile): Always set name. Add comment at
10350 start of function.
10351 * jv-lang.c (get_dynamics_objfile): Add comment.
10352
406fc7fb
DC
103532003-02-04 David Carlton <carlton@math.stanford.edu>
10354
10355 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10356 * printcmd.c (build_address_symbolic): Replace uses of
10357 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10358 SYMBOL_NAME, and asm_demangle.
10359 Update copyright.
10360
93d91629
DC
103612003-02-04 David Carlton <carlton@math.stanford.edu>
10362
10363 * linespec.c (decode_compound): Extract code into
10364 lookup_prefix_sym.
10365 (lookup_prefix_sym): New function.
10366
1c5cb38e
DC
103672003-02-04 David Carlton <carlton@math.stanford.edu>
10368
10369 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10370 FLOAT_COERCION_BADNESS.
10371 * gdbtypes.c (rank_one_type): Replace all uses of
10372 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10373
0cf824c9
JB
103742003-02-04 Jim Blandy <jimb@redhat.com>
10375
10376 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10377 section, let dwarf_macinfo_section point to it, not
10378 dwarf_loc_section.
10379
a2d356b0
DJ
103802003-02-04 Daniel Jacobowitz <drow@mvista.com>
10381
10382 Pointed out by Anton Blanchard <anton@samba.org>.
10383 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10384 (ppc_linux_at_sigtramp_return_path): Use it.
10385
2de7ced7
DJ
103862003-02-04 Daniel Jacobowitz <drow@mvista.com>
10387
10388 * defs.h (streq): Add prototype.
10389 * utils.c (streq): New function.
10390
10391 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10392 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10393 * mdebugread.c (new_symbol): Likewise.
10394 * stabsread.c (define_symbol): Likewise.
10395 * coffread.c (process_coff_symbol): Likewise.
10396 * dwarfread.c (new_symbol): Likewise.
10397
10398 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10399 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10400 here.
10401 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10402 SYMBOL_INIT_DEMANGLED_NAME.
10403 * objfiles.c: Include "hashtab.h".
10404 (allocate_objfile): Call htab_set_functions_ex for the
10405 demangled_names_hash.
10406 (free_objfile): Call htab_delete for the demangled_names_hash.
10407 * objfiles.h (struct htab): Add declaration.
10408 (struct objfile): Add demangled_names_hash.
10409 * symfile.c: Include "hashtab.h".
10410 (reread_symbols): Call htab_delete for the demangled_names_hash.
10411 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10412 SYMBOL_NAME in the bcache.
10413 * symtab.c: Include "hashtab.h". Update comments.
10414 (create_demangled_names_hash, symbol_set_names): New functions.
10415 (symbol_find_demangled_name): New function, broken out from
10416 symbol_init_demangled_names.
10417 (symbol_init_demangled_names): Use it.
10418 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10419 (SYMBOL_SET_NAMES): New macro.
10420 (symbol_set_names): Add prototype.
10421
15831452
JB
104222003-02-03 Jim Blandy <jimb@redhat.com>
10423
10424 Use a single, consistent representation for an empty minimal
10425 symbol table in an objfile.
10426 * objfiles.c (terminate_minimal_symbol_table): New function.
10427 (allocate_objfile): Call it.
10428 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10429 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10430 non-NULL.
15831452
JB
10431 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10432 objfile has minimal symbols, compare minimal_symbol_count to zero,
10433 instead of comparing msymbols with NULL.
10434 * objfiles.c (have_minimal_symbols): Same.
10435 * solib-sunos.c (solib_add_common_symbols): Call
10436 terminate_minimal_symbol_table.
10437 * symfile.c (reread_symbols): Same.
8ffd9b1b 10438
ffc65945
KB
104392003-02-03 Kevin Buettner <kevinb@redhat.com>
10440
10441 * s390-tdep.c (s390_address_class_type_flags)
10442 (s390_address_class_type_flags_to_name)
10443 (s390_address_class_name_to_type_flags): New functions.
10444 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10445 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10446
f211c6d4
MS
104472003-02-03 Michael Snyder <msnyder@redhat.com>
10448
10449 * arm-tdep.c: Fix spell-o in comment.
10450
659b0389
ML
104512003-02-03 Michal Ludvig <mludvig@suse.cz>
10452
10453 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10454 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10455 error messages to contain BFD filename.
659b0389 10456
3b31d625
EZ
104572003-02-02 Elena Zannoni <ezannoni@redhat.com>
10458
997b089a 10459 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10460 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10461 (do_mixed_source_and_assembly): Use
10462 make_cleanup_ui_out_tuple_begin_end and
10463 make_cleanup_ui_out_tuple_begin_end.
10464 (do_mixed_source_and_assembly): Ditto.
10465 * thread.c (do_captured_list_thread_ids): Ditto.
10466 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10467 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10468 ui_out_tuple_end): Delete prototypes.
10469 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10470 ui_out_list_end, ui_out_tuple_end): Delete.
10471
10472 From Kevin Buettner <kevinb@redhat.com>:
10473 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10474 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10475 (do_cleanup_table_end): New functions.
10476 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10477 Use cleanups to invoke_ui_out_tuple_end().
10478 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10479 * cli/cli-setshow.c (cmd_show_list): Use
10480 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10481
5b181d62
AC
104822003-02-02 Andrew Cagney <ac131313@redhat.com>
10483
10484 * frame.c (frame_unwind_register): New function.
10485 (frame_unwind_unsigned_register): Use.
10486 (frame_unwind_signed_register): Use.
10487 (frame_read_register): New function.
10488 * frame.h (frame_unwind_register): Declare.
10489 (frame_read_register): Declare.
10490
10491 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10492 and frame_unwind_register instead of read_memory, write_register
10493 and deprecated_write_register_bytes.
10494
5f601589
AC
104952003-02-02 Andrew Cagney <ac131313@redhat.com>
10496
10497 * frame.h: Note that namelen can be negative.
10498 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10499 NAME's length.
10500
10501 * NEWS: Mention that the d10v's `regs' command is deprecated.
10502 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10503 (d10v_print_registers_info): New function.
10504 (show_regs): Call d10v_print_registers_info.
10505 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10506
6a3fe0a4
MK
105072003-02-02 Mark Kettenis <kettenis@gnu.org>
10508
10509 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10510 lost in the previous patch.
10511
075559bc
AC
105122003-02-01 Andrew Cagney <ac131313@redhat.com>
10513
10514 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10515 * stack.c (print_frame_info_base): Output complete FRAME tuple
10516 for synthesized frames.
075559bc 10517
6789195b
AC
105182003-02-02 Andrew Cagney <ac131313@redhat.com>
10519
10520 * mips-nat.c (zerobuf): Delete.
10521 (fetch_inferior_registers): Alloc local zerobuf.
10522 (fetch_core_registers): Alloc local zerobuf.
10523 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10524 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10525 * thread-db.c (thread_db_store_registers): Ditto.
10526 * sh-tdep.c (sh_do_register): Ditto.
10527 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10528 * remote-sim.c (gdbsim_store_register): Ditto.
10529 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10530 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10531 * monitor.c (monitor_supply_register): Ditto.
10532 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10533 * mips-nat.c (fetch_inferior_registers): Ditto.
10534 * m68klinux-nat.c (fetch_register): Ditto.
10535 * lynx-nat.c (fetch_inferior_registers): Ditto.
10536 (fetch_inferior_registers): Ditto.
10537 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10538 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10539 (hpux_thread_store_registers): Ditto.
10540 * hppah-nat.c (fetch_register): Ditto.
10541 * hppab-nat.c (fetch_register): Ditto.
10542 * hppa-tdep.c (pa_register_look_aside): Ditto.
10543 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10544 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10545
e669114a
AC
105462003-02-01 Andrew Cagney <ac131313@redhat.com>
10547
10548 * gdbarch.sh: Explictly specify all method levels. When a
10549 variable with an empty level, provide a non-multi-arch default.
10550 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10551 * gdbarch.h: Re-generate.
10552 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10553 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10554
9a043c1d
AC
105552003-02-01 Andrew Cagney <ac131313@redhat.com>
10556
10557 * defs.h (host_pointer_to_address): Delete declaration.
10558 (address_to_host_pointer): Delete declaration.
10559 * utils.c (host_pointer_to_address): Delete function.
10560 (address_to_host_pointer): Delete function.
10561 * procfs.c (procfs_address_to_host_pointer): New function.
10562 * procfs.c (proc_set_watchpoint): Use.
10563 (procfs_can_use_hw_breakpoint): Update comments.
10564 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10565 (som_solib_add): Use.
10566 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10567 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10568
7ca9f392
AC
105692003-02-01 Andrew Cagney <ac131313@redhat.com>
10570
94bbfd30
AC
10571 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10572 strlen d_name.
10573
7ca9f392
AC
10574 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10575 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10576 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10577 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10578 (define_symbol): Update.
10579 * symfile.c (generic_load): Remove references to nindy.
10580 * symtab.c: Remove references to nindy.
10581
31a85ea2
AC
105822003-02-01 Andrew Cagney <ac131313@redhat.com>
10583
10584 * infcmd.c (print_float_info): Delete code conditional on
10585 FLOAT_INFO.
10586 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10587 * config/m68k/nm-apollo68b.h: Ditto.
10588 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10589 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10590 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10591
f6e85fc8
MK
105922003-02-01 Mark Kettenis <kettenis@gnu.org>
10593
6015b6a0
MK
10594 * config/i386/tm-i386os9k.h: Removed.
10595
f7a30bdf
MK
10596 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10597 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10598 they're identical to i[3456]86-*-sysv* now.
10599 * config/i386/i386v32.mh: Removed.
10600 * config/i386/xm-i386v32.h: Removed.
10601 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10602
28d52111
MK
10603 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10604
4d3f6bce
MK
10605 * config/i386/i386dgux.mh: Removed.
10606 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10607
f6e85fc8
MK
10608 * configure.in: Fix typo.
10609 * configure: Regenerated.
10610
53955967
DC
106112003-01-31 David Carlton <carlton@math.stanford.edu>
10612
10613 * dwarf2read.c (dwarf2_locate_sections): Set
10614 dwarf_ranges_section.
10615
b1364885
AC
106162003-01-31 Andrew Cagney <ac131313@redhat.com>
10617
8dbb1c65
AC
10618 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10619 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10620
8731e58e
AC
10621 * utils.c: Re-indent.
10622
b1364885
AC
10623 * config/djgpp/fnchange.lst: Delete nindy files.
10624 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10625 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10626 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10627 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10628 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10629 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10630 * Makefile.in (init.c): Remove nindy references.
10631 (saber_gdb): Delete rule.
10632 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10633 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10634 and a68v-nat.c.
10635 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10636 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10637 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10638 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10639 nindy-share/stop.h.
10640 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10641 * saber.suppress: Delete file.
10642
086df311
DJ
106432003-01-31 Daniel Jacobowitz <drow@mvista.com>
10644
10645 * dbxread.c (stabs_data): New static variable.
10646 (fill_symbuf): Support an in-memory buffer for stabs data.
10647 (stabs_seek): New function.
10648 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10649 (read_ofile_symtab): Use stabs_seek.
10650 (elfstab_build_psymtabs): Take an asection* instead of
10651 an offset and size. Relocate the stabs data if necessary.
10652 Save the section* for dbx_psymtab_to_symtab.
10653 * dwarf2read.c: Add section variables for each debug section.
10654 (dwarf2_locate_sections): Fill them in.
10655 (dwarf2_read_section): Take an asection* argument.
10656 Relocate the section contents if necessary.
10657 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10658 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10659 it to dwarf2_read_section.
10660 (dwarf2_build_frame_info): Update callers.
10661 * elfread.c (elf_symfile_read): Update call to
10662 elfstab_build_psymtabs.
10663 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10664 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10665 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10666 * symfile.c (symfile_dummy_outputs): New function.
10667 (symfile_relocate_debug_section): New function.
10668 * symfile.h (symfile_relocate_debug_section): Add prototype.
10669
87d1b352
RH
106702003-01-31 Richard Henderson <rth@redhat.com>
10671
10672 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10673 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10674 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10675 * alpha-tdep.c (alpha_register_name): Add "unique".
10676 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10677 (ALPHA_UNIQUE_REGNUM): New.
10678 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10679
c48861fb
AC
106802003-01-31 Andrew Cagney <ac131313@redhat.com>
10681
10682 * README: Remove reference to Ericsson 1800 monitor.
10683 * Makefile.in (remote-es.o): Delete rule.
10684 (ALLDEPFILES): Delete remote-es.c.
10685 * remote-es.c: Delete file.
10686 * config/m68k/es1800.mt: Delete file.
10687 * config/djgpp/fnchange.lst: Update.
10688 * configure.tgt: Delete m68*-ericsson-* target.
10689
d764a824
AF
106902003-01-31 Adam Fedor <fedor@gnu.org>
10691
10692 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10693 Remove duplicate/shadowing variable of same name.
10694
fe36c4f4
JB
106952003-01-30 Jim Blandy <jimb@redhat.com>
10696
10697 * symfile.c (find_separate_debug_file): Assert that the objfile's
10698 directory name we compute ends with a slash, and then assume that
10699 that's so everywhere we use it.
10700
cb741690
DJ
107012003-01-30 Daniel Jacobowitz <drow@mvista.com>
10702
10703 * valops.c (value_assign): Flush frame cache after stores to memory
10704 also.
10705
96ee5227
AC
107062003-01-30 Andrew Cagney <ac131313@redhat.com>
10707
10708 * Makefile.in (mon960-rom.o): Delete rule.
10709 * mon960-rom.c: Delete file.
10710
7f6104a9
AC
107112003-01-30 Andrew Cagney <ac131313@redhat.com>
10712
10713 * d10v-tdep.c: Include "frame-unwind.h".
10714 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10715 list.
10716 (next_addr, uses_frame): Delete.
10717 (struct d10v_unwind_cache): Define.
10718 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10719 Use info instead of next_addr and uses_frame globals.
10720 (d10v_frame_init_saved_regs): Delete function.
10721 (d10v_init_extra_frame_info): Delete function.
10722 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10723 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10724 init_frame_pc or frame_saved_pc.
10725 (d10v_pop_frame): Delete function.
10726 (do_d10v_pop_frame): Delete function.
10727 (d10v_frame_chain): Delete function.
10728 (d10v_frame_chain_valid): Delete function.
10729 (d10v_frame_pc_unwind): New function.
10730 (d10v_frame_id_unwind): New function.
10731 (saved_regs_unwinder): New function.
10732 (d10v_frame_register_unwind): New function.
10733 (d10v_frame_pop): New function.
10734 (d10v_frame_unwind): New variable.
10735 (d10v_frame_p): New function.
10736 (d10v_frame_saved_pc): Delete function.
10737 * Makefile.in (d10v-tdep.o): Update dependencies.
10738
cad2e848
JB
107392003-01-30 J. Brobecker <brobecker@gnat.com>
10740
10741 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10742 causing some regressions due to a change in the default value
10743 for this macro.
10744
af34e669
DJ
107452003-01-29 Richard Henderson <rth@redhat.com>
10746 Elena Zannoni <ezannoni@redhat.com>
10747 Daniel Jacobowitz <drow@mvista.com>
10748
10749 Fix PR gdb/961.
8ffd9b1b 10750 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10751 variables.
10752 (RANGES_SECTION): New.
10753 (dwarf_ranges_buffer): New variable.
10754 (struct comp_unit_head): Add member "die".
10755 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10756 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10757 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10758 (dwarf2_locate_sections): Likewise.
10759 (dwarf2_build_psymtabs): Read .debug_ranges.
10760 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10761 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10762 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10763 Look for DW_AT_ranges and return the bounding box.
10764
baa93fa6
CF
107652003-01-29 Brian Ford <ford@vss.fsi.com>
10766
10767 * win32-nat.c (cygwin_pid): Removed as unused.
10768 (child_attach): Try fall back to Cygwin pid.
10769
c63f977f
JB
107702003-01-29 Jim Blandy <jimb@redhat.com>
10771
10772 * objfiles.h (struct objfile): Doc fix.
10773
d62d1979
AC
107742003-01-29 Andrew Cagney <ac131313@redhat.com>
10775
10776 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10777 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10778 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10779 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10780 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10781 (FRAME_SAVED_PC): Change to a function with predicate.
10782 * gdbarch.h, gdbarch.c: Re-generate.
10783
1ae18a04
AC
107842003-01-28 Andrew Cagney <ac131313@redhat.com>
10785
52287340
AC
10786 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10787
1ae18a04
AC
10788 * complaints.c (complain): Delete function.
10789 * complaints.h (struct deprecated_complaint): Delete definition.
10790 (complain): Delete declaration.
10791
f2c16bd6
KB
107922003-01-28 Kevin Buettner <kevinb@redhat.com>
10793
10794 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10795 dummy frames.
10796
a94dd1fd
AC
107972003-01-27 Andrew Cagney <ac131313@redhat.com>
10798
10799 * sentinel-frame.h, sentinel-frame.c: New files.
10800 * Makefile.in (frame.o): Update dependencies.
10801 (SFILES): Add sentinel-frame.c.
10802 (sentinel_frame_h): Define.
10803 (COMMON_OBS): Add sentinel-frame.o.
10804 (sentinel-frame.o): Specify dependencies.
10805 * frame.c: Include "sentinel-frame.h".
10806 (frame_register_unwind): Rewrite assuming that there is always a a
10807 ->next frame.
10808 (frame_register, generic_unwind_get_saved_register): Ditto.
10809 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10810 (create_sentinel_frame, unwind_to_current_frame): New functions.
10811 (get_current_frame): Rewrite using create_sentinel_frame and
10812 unwind_to_current_frame. When possible, always create a frame.
10813 (create_new_frame): Set next to the sentinel frame.
10814 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10815 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10816 ID cache when necessary.
10817 (frame_saved_regs_id_unwind): Use frame_relative_level.
10818 (deprecated_generic_get_saved_register): Use frame_relative_level,
10819 get_frame_saved_regs, get_frame_pc, get_frame_base and
10820 get_next_frame.
10821 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10822 frame_register.
10823
5378adc4
DJ
108242003-01-27 Daniel Jacobowitz <drow@mvista.com>
10825
10826 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10827
51ee2ddc
DJ
108282003-01-27 Daniel Jacobowitz <drow@mvista.com>
10829
10830 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10831 (maintenance_set_profile_cmd): Use error () instead of warning ().
10832
d9feb4e7
DJ
108332003-01-27 Daniel Jacobowitz <drow@mvista.com>
10834
10835 * configure.in: Check that -pg works if using --enable-profiling.
10836 Check for monstartup and _mcleanup regardless of --enable-profiling.
10837 * maint.c: Check for monstartup and _mcleanup before using them.
10838 * config.in: Regenerated.
10839 * configure: Regenerated.
10840
2d188dd3
NC
108412003-01-24 Nick Clifton <nickc@redhat.com>
10842
10843 * Add sh2e support:
10844
10845 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10846
10847 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10848 (sh2e_show_regs): New.
10849 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10850 * config/sh/tm-sh.h: Added sh2e to comments.
10851
cb3c37b2
JB
108522003-01-23 Jim Blandy <jimb@redhat.com>
10853
10854 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10855 symbols found)" message here; we haven't checked for a separate
10856 debug info file yet, so we don't know yet.
10857 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10858 we've looked everywhere. Also, there's no need to print a special
10859 message when we're loading the separate debug info file: the one
10860 symbol_file_add prints is fine.
10861
5b5d99cf
JB
108622003-01-23 Alexander Larsson <alexl@redhat.com>
10863 Jim Blandy <jimb@redhat.com>
10864
10865 Add support for executables whose debug info has been separated
10866 out into a separate file, leaving only a link behind.
10867 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10868 and separate_debug_objfile_backlink.
10869 (put_objfile_before): New declaration.
10870 * symfile.c: #include "filenames.h".
10871 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10872 debug info in a separate file, read that, too. Save the addrs
10873 argument, so we can use it again to read the separated debug info;
10874 syms_from_objfile modifies the table we pass it.
10875 (reread_symbols): After re-reading an objfile, call
10876 reread_separate_symbols to refresh its separate debug info
10877 objfile, if it has one.
10878 (reread_separate_symbols, find_separate_debug_file,
10879 get_debug_link_info, separate_debug_file_exists): New functions.
10880 (debug_file_directory): New global var.
10881 (_initialize_symfile): Initialize debug_file_directory, and
10882 provide the new `set debug-file-directory' command to let the user
10883 change it.
10884 * objfiles.c (free_objfile): If this objfile has its debug info in
10885 a separate objfile, free that one too. If this is itself a
10886 separate debug info objfile, clear our parent's backlink.
10887 (put_objfile_before): New function.
10888 * utils.c (gnu_debuglink_crc32): New function.
10889 * defs.h (gnu_debuglink_crc32): New declaration.
10890 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10891 * configure.in: Handle --with-separate-debug-dir config option.
10892 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10893 * acconfig.h (DEBUGDIR): New macro.
10894 * configure, aclocal.m4, config.in: Regenerated.
10895
7e8580c1
JB
108962003-01-22 Jim Blandy <jimb@redhat.com>
10897
7904e09f
JB
10898 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10899 like the old symbol_file_add, but taking new arguments: you can
10900 now pass in either a `struct section_addr_info' list to say where
10901 each section is loaded, or a `struct section_offsets' table. Pass
10902 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10903 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10904 with the appropriate quiescent values for the new arguments.
10905
7e8580c1
JB
10906 * symfile.c: #include "gdb_assert.h".
10907 (syms_from_objfile): Add the ability to pass in a section offset
10908 table directly, as an alternative to the section_addr_info table.
10909 Document arguments better.
10910 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10911 * symfile.h (syms_from_objfile): Update declaration.
10912 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10913 syms_from_objfile.
10914 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10915
d28f9cdf
DJ
109162003-01-22 Daniel Jacobowitz <drow@mvista.com>
10917
10918 Original patch by Tom Tromey <tromey@cygnus.com> and
10919 Jason Molenda <jmolenda@apple.com>.
10920 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10921 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10922 * NEWS: Mention profiling.
10923 * configure.in (--enable-gdbtk): Fix typo.
10924 (--enable-profiling): New. Set PROFILE_CFLAGS.
10925 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10926 Fill in function.
10927 (profiling_state): New variable.
10928 (mcleanup_wrapper): New function.
10929 (_initialize_maint): Remove NOTYET, fix call to
10930 add_setshow_boolean_cmd for "maint set profile".
10931 * configure: Regenerated.
10932
df21e465
MH
109332003-01-21 Martin M. Hunt <hunt@redhat.com>
10934
10935 * Makefile.in (install-gdbtk): Install PNG images too.
10936
73c1f219
AC
109372003-01-21 Andrew Cagney <ac131313@redhat.com>
10938
10939 * exec.c (text_start): Delete global variable.
10940 (exec_file_attach): Make text_start local to the function.
10941 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10942 * valops.c (hand_function_call): Delete code that handles
10943 BEFORE_TEXT_END and AFTER_TEXT_END.
10944 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10945 of CALL_DUMMY_LOCATION.
10946 * gdbarch.c: Regenerate.
10947 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10948 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10949 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10950 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10951 (text_end): Delete extern declaration.
10952
eb4f72c5
AC
109532003-01-21 Andrew Cagney <ac131313@redhat.com>
10954
10955 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10956 * blockframe.c (backtrace_below_main): Move to "frame.c".
10957 (frame_chain_valid): Delete check for backtrace_below_main.
10958 (_initialize_blockframe): Delete initialization, move ``set
10959 backtrace-below-main'' command to "frame.c".
10960 (do_flush_frames_sfunc): Delete function.
10961 * frame.c: Include "command.h" and "gdbcmd.h".
10962 (frame_type_from_pc): New function.
10963 (create_new_frame): Use frame_type_from_pc.
10964 (legacy_get_prev_frame): New function.
10965 (get_prev_frame): Rewrite. When an old style frame, call
10966 legacy_get_prev_frame. Otherwize, unwind the PC first.
10967 (_initialize_frame): Add ``set backtrace-below-main'' command.
10968 * Makefile.in (frame.o): Update dependencies.
10969
778ce8cc
AC
109702003-01-19 Andrew Cagney <ac131313@redhat.com>
10971
10972 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10973 DEPRECATED_REGISTERS_INFO.
10974
01c193c8
AC
109752003-01-19 Andrew Cagney <ac131313@redhat.com>
10976
10977 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10978 Maintainers'. Update `Various Maintainers'.
10979
dedc2a2b
AC
109802003-01-19 Andrew Cagney <ac131313@redhat.com>
10981
10982 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10983 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10984 Suppress actual parameters when `-'.
10985 * gdbarch.h, gdbarch.c: Regenerate.
10986
b7261c70
AC
109872003-01-19 Andrew Cagney <ac131313@redhat.com>
10988
10989 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10990 code handling dummy frames.
10991
dbe9fe58
AC
109922003-01-19 Andrew Cagney <ac131313@redhat.com>
10993
10994 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10995 (struct frame_unwind): Add field pop.
10996 * frame.h (frame_pop): Declare.
10997 * frame.c (frame_saved_regs_pop): New function.
10998 (trad_frame_unwinder): Add frame_saved_regs_pop.
10999 (frame_pop): New function.
11000 * dummy-frame.c (dummy_frame_pop): New function.
11001 (discard_innermost_dummy): New function.
11002 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11003 (dummy_frame_unwind): Add dummy_frame_pop.
11004 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11005 * valops.c (hand_function_call): Ditto.
11006 * stack.c (return_command): Ditto.
11007
570b8f7c
AC
110082003-01-18 Andrew Cagney <ac131313@redhat.com>
11009
11010 * cris-tdep.c: Fix function declaration indentation.
11011 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11012 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11013 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11014 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11015 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11016 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11017
110182003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11019
11020 * README (Unpacking and Installation -- quick overview):
11021 Warn against ".../gdb-5.3/gdb/configure".
11022
494cca16
AC
110232003-01-18 Andrew Cagney <ac131313@redhat.com>
11024
11025 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11026 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11027 (struct frame_unwind): Declare opaque.
11028 (dummy_frame_p): Declare function.
11029 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11030 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11031 * dummy-frame.c: Include "frame-unwind.h".
11032 (dummy_frame_p): New function.
11033 (dummy_frame_unwind): New variable.
11034 * frame.c: Include "frame-unwind.h".
11035 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11036 to use the new unwind field.
11037 (set_unwind_by_pc): Delete function.
11038 (create_new_frame, get_prev_frame): Set unwind field using
11039 frame_unwind_find_by_pc.
11040 (trad_frame_unwind, trad_frame_unwinder): New variables.
11041 * frame.h (trad_frame_unwind): Declare variable.
11042 (frame_id_unwind_ftype): Delete declaration.
11043 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11044 (struct frame_unwind): Declare opaque.
11045 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11046 register_unwind with a single unwind pointer.
11047 * frame-unwind.h, frame-unwind.c: New files.
11048 * Makefile.in (SFILES): Add frame-unwind.c.
11049 (frame_unwind_h): Define.
11050 (COMMON_OBS): Add frame-unwind.o.
11051 (frame-unwind.o): Specify dependencies.
11052 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11053
4efb68b1
AC
110542003-01-18 Andrew Cagney <ac131313@redhat.com>
11055
11056 * ada-valprint.c: Eliminate PTR.
11057 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11058 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11059 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11060 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11061 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11062 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11063 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11064
a84d24ee
AC
110652003-01-17 Andrew Cagney <ac131313@redhat.com>
11066
762f08a3
AC
11067 * main.c (captured_main): Don't use PTR.
11068 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11069 * gdbtypes.c (lookup_primitive_typename): Ditto.
11070 (lookup_struct_elt_type): Ditto.
11071 * f-valprint.c (info_common_command): Ditto.
11072 (list_all_visible_commons): Ditto.
11073 * jv-typeprint.c (java_type_print_base): Ditto.
11074
a84d24ee
AC
11075 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11076 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11077 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11078 i386-interix-nat.c and i386-interix-tdep.c. Rename
11079 m68klinux-nat.c and m68klinux-tdep.c. Rename
11080 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11081 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11082 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11083 * main.c (captured_main): Use xfree, not free.
11084
c170fb60
AC
110852003-01-16 Andrew Cagney <ac131313@redhat.com>
11086
11087 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11088 ID back using a parameter.
11089 * frame.c (frame_id_unwind): Update call.
11090 (frame_saved_regs_id_unwind): Update.
11091 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11092 * dummy-frame.h (struct frame_id): Add opaque declaration.
11093 (dummy_frame_id_unwind): Update declaration.
11094
867f3898
AC
110952003-01-15 Andrew Cagney <ac131313@redhat.com>
11096
11097 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11098
40622be8 110992003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11100
40622be8 11101 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11102
ae66c1fc
EZ
111032003-01-14 Elena Zannoni <ezannoni@redhat.com>
11104
997b089a 11105 Fix PR gdb/898
ae66c1fc
EZ
11106 * breakpoint.c (until_break_command): Add new argument. Use it to
11107 decide whether to stop only at the current frame or not.
11108 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11109 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11110 call.
11111 (advance_command): New function.
11112 (_initialize_infcmd): Update help string for 'until' command.
11113 Add new 'advance' command.
11114
a04257e6
DC
111152003-01-14 David Carlton <carlton@math.stanford.edu>
11116
11117 * linespec.c (decode_line_1): Normalize comments.
11118 (set_flags): Ditto.
11119 (locate_first_half): Ditto.
11120 (decode_compound): Ditto.
11121 (symtab_from_filename): Ditto.
11122 (decode_all_digits): Ditto.
11123 (decode_dollar): Ditto.
11124 (find_methods): Ditto.
11125 (find_toplevel_char): Ditto.
11126
1bac305b
AC
111272003-01-13 Andrew Cagney <ac131313@redhat.com>
11128
11129 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11130 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11131 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11132 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11133 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11134 * language.c, language.h, m32r-tdep.c: Update copyright.
11135 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11136 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11137 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11138 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11139 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11140 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11141
25caa7a8
EZ
111422003-01-13 Elena Zannoni <ezannoni@redhat.com>
11143
11144 * stabsread.h (process_later, resolve_cfront_continuation):
11145 Obsolete.
11146 Update copyright years.
11147 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11148 Update copyright year.
11149 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11150 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11151 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11152 Update copyright year.
11153 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11154 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11155 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11156 (parse_partial_symbols): Obsolete cfront support.
11157 * stabsread.c
11158 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11159 macros.
11160 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11161 read_cfront_baseclasses, read_cfront_member_functions,
11162 resolve_cfront_continuation,read_cfront_static_fields,
11163 copy_cfront_struct_fields): Obsolete functions.
11164 (define_symbol, read_one_struct_field): Obsolete cfront support.
11165 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11166 Update Copyright year.
11167
7789c6f5
EZ
111682003-01-13 Elena Zannoni <ezannoni@redhat.com>
11169
11170 * stack.c (print_frame_info, print_stack_frame_base_stub,
11171 print_stack_frame_base, show_and_print_stack_frame_stub,
11172 show_and_print_stack_frame, print_only_stack_frame_stub,
11173 print_only_stack_frame): Delete functions.
11174 (print_stack_frame_stub): Call print_frame_info instead of
11175 print_frame_info_base.
11176 (print_frame_info_base): Rename to print_frame_info.
11177 (backtrace_command_1): Call print_frame_info, instead of
11178 print_frame_info_base.
11179 (current_frame_command): Call print_stack_frame, instead of
11180 print_only_stack_frame.
11181 (frame_command): Call print_stack_frame, instead of
11182 show_and_print_stack_frame.
11183 (up_command): Ditto.
11184 (down_command): Ditto.
11185 * frame.h (print_only_stack_frame): Delete prototype.
11186 * infrun.c (normal_stop): Call print_stack_frame, instead of
11187 show_and_print_stack_frame.
11188 * thread.c (info_threads_command): Call print_stack_frame, instead
11189 of print_only_stack_frame.
11190
3f5a3016
AC
111912003-01-13 Andrew Cagney <ac131313@redhat.com>
11192
d99ba314
AC
11193 * README (Graphical interface to GDB): Update URL. Point at
11194 gdb/links/.
11195
3f5a3016
AC
11196 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11197 version match.
11198
083ae935
DJ
111992003-01-13 Daniel Jacobowitz <drow@mvista.com>
11200
11201 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11202 lines.
11203
5365276c
DJ
112042003-01-13 Daniel Jacobowitz <drow@mvista.com>
11205
11206 * thread-db.c (attach_thread): Prototype.
11207 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11208 thread information (ti), and valid flags (th_valid, ti_valid).
11209 (attach_thread): Move target_pid_to_str call to after the thread
11210 is added to GDB's list. Initialize the cache.
11211 (thread_get_info_callback, thread_db_map_id2thr)
11212 (thread_db_get_info): New functions.
11213 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11214 (thread_db_store_registers, thread_db_thread_alive)
11215 (thread_db_get_thread_local_address): Use them.
11216 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11217 of calling error() for threads in unknown state.
11218
11219 (clear_lwpid_callback): New function.
11220 (thread_db_resume): Use it to clear the cache.
11221
9fc30b6b
DJ
112222003-01-13 Daniel Jacobowitz <drow@mvista.com>
11223
11224 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11225 (resume_callback): Remove dead code.
11226
8f871025
AC
112272003-01-13 Andrew Cagney <ac131313@redhat.com>
11228
11229 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11230 predicate.
11231 * gdbarch.h, gdbarch.c: Regenerate.
11232 * stack.c (frame_info): Only initialize the saved registers when
11233 FRAME_INIT_SAVED_REGS_P.
11234 * frame.c (frame_saved_regs_register_unwind): Assert
11235 FRAME_INIT_SAVED_REGS_P.
11236 (deprecated_generic_get_saved_register): Ditto.
11237
3f565f1e
DJ
112382003-01-13 Daniel Jacobowitz <drow@mvista.com>
11239
11240 * source.c (openp): Squelch warning about "filename".
11241
072b1022
DJ
112422003-01-13 Daniel Jacobowitz <drow@mvista.com>
11243
11244 * source.c (openp): If the file does not exist don't necessarily
11245 search the path.
11246
973ccf8b
DJ
112472003-01-13 Daniel Jacobowitz <drow@mvista.com>
11248
11249 Fix PR gdb/872.
11250 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11251 (integer_types_same_name_p): New function.
11252 (rank_one_type): Use it.
11253 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11254
030292b7
DJ
112552003-01-13 Daniel Jacobowitz <drow@mvista.com>
11256
11257 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11258 variables.
11259 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11260 * configure.in: Add --with-sysroot.
11261 * configure: Regenerated.
11262 * main.c (gdb_sysroot): New variable.
11263 (captured_main): Initialize gdb_sysroot.
11264 * defs.h (gdb_sysroot): New extern declaration.
11265 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11266
afb5d334
MC
112672003-01-12 Michael Chastain <mec@shout.net>
11268
11269 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11270
751ceeb4
MC
112712003-01-12 Michael Chastain <mec@shout.net>
11272
11273 * top.c (print_gdb_version): Bump copyright year to 2003.
11274
94cd26f8
DC
112752003-01-12 David Carlton <carlton@bactrian.org>
11276
11277 * linespec.c (symtab_from_filename): Rename variable 's' to
11278 'file_symtab'.
11279
1ce79225
AC
112802003-01-12 Andrew Cagney <ac131313@redhat.com>
11281
11282 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11283 dummy frame.
11284 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11285
fa1fd571
AC
112862003-01-12 Andrew Cagney <ac131313@redhat.com>
11287
11288 * d10v-tdep.c: Include "gdb_assert.h".
11289 (d10v_store_return_value): Rewrite to match current interface.
11290 (d10v_extract_struct_value_address): Ditto.
11291 (d10v_extract_return_value): Ditto.
11292 (d10v_gdbarch_init): Set store_restore_value,
11293 extract_struct_value_address and extract_return_value.
11294
68b8d23e
JB
112952003-01-12 J. Brobecker <brobecker@gnat.com>
11296
11297 * hpread.c (set_namestring): New procedure replacing the
11298 SET_NAMESTRING macro.
11299 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11300 by calls to set_namestring.
11301
113022003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11303
11304 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11305 a compilation warning.
11306 (hpread_process_one_debug_symbol): Likewise.
11307
88d262ca
DC
113082003-01-10 David Carlton <carlton@math.stanford.edu>
11309
11310 * linespec.c (decode_line_1): Rename variable 's' to
11311 'file_symtab'.
11312 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11313 (decode_dollar): Ditto.
11314 (decode_variable): Ditto.
11315 (symbol_found): Ditto.
11316
86669319
MC
113172003-01-09 Michael Chastain <mec@shout.net>
11318
11319 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11320
616a9dc4
CV
113212003-01-07 Corinna Vinschen <vinschen@redhat.com>
11322
11323 * win32-nat.c (set_process_privilege): New function.
11324 (child_attach): Call set_process_privilege() to enable the
11325 SE_DEBUG_NAME user privilege if available in process token.
11326
3269bcfa
JB
113272003-01-10 J. Brobecker <brobecker@gnat.com>
11328
11329 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11330 compilation error in the previous revision.
11331
2b0ee454
DC
113322003-01-09 David Carlton <carlton@math.stanford.edu>
11333
11334 * linespec.c: Update copyright.
11335
b3ba1b44
DJ
113362003-01-09 Daniel Jacobowitz <drow@mvista.com>
11337
11338 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11339 than inferior_ptid.
11340 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11341
4ef3f3be
AC
113422003-01-09 Andrew Cagney <ac131313@redhat.com>
11343
479ab5a0
AC
11344 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11345 Update comments.
11346 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11347 (frame_saved_regs_zalloc): Update.
11348 (frame_saved_regs_register_unwind): Update.
11349 (create_new_frame): Update.
11350 (get_prev_frame): Update.
11351 (frame_extra_info_zalloc): Update.
11352 (deprecated_get_frame_saved_regs): Update.
11353 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11354 * cris-tdep.c: Update comment.
11355
bde58177
AC
11356 * somsolib.h: Fix function indentation.
11357 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11358 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11359 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11360 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11361 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11362
4ef3f3be
AC
11363 * infrun.c (follow_fork): Use ISO C definition.
11364 * expprint.c (print_subexp): Use xfree instead of free.
11365 * charset.c: Include "gdb_string.h" instead of <string.h>.
11366 (register_iconv_charsets): Use ISO C definition.
11367 (host_charset, target_charset): Ditto.
11368 * Makefile.in (charset.o): Update dependencies.
11369 (mi-cmd-env.o): Update dependencies.
11370
1c615f7a
AC
113712003-01-08 Andrew Cagney <cagney@redhat.com>
11372
11373 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11374 get_frame_base.
11375
c9a1dc08
AC
113762003-01-08 Andrew Cagney <ac131313@redhat.com>
11377
11378 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11379 build directories. Save edited gdb output in Mbuild.log. If a
11380 build fails, remove any final GDB executable.
11381
dbad9d94
AC
113822003-01-08 Andrew Cagney <ac131313@redhat.com>
11383
11384 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11385 replacing hex constants with function names and stripping leading
11386 file name directory prefixes.
11387
8d357cca
AC
113882003-01-08 Andrew Cagney <cagney@redhat.com>
11389
11390 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11391 get_frame_base.
11392
bca02a8a
DC
113932003-01-08 David Carlton <carlton@math.stanford.edu>
11394
11395 * linespec.c (decode_line_1): Move code into decode_variable.
11396 (decode_variable): New function.
11397
7f8ab3a0
AC
113982003-01-08 Andrew Cagney <ac131313@redhat.com>
11399
11400 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11401
7b5849cc
AC
114022003-01-08 Andrew Cagney <cagney@redhat.com>
11403
11404 * cris-tdep.c (cris_frame_init_saved_regs): Use
11405 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11406 saved_regs buffer.
11407 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11408 (sh64_nofp_frame_init_saved_regs): Ditto.
11409 (sh_fp_frame_init_saved_regs): Ditto.
11410 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11411 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11412 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11413 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11414
72a5efb3
DJ
114152003-01-08 Daniel Jacobowitz <drow@mvista.com>
11416
11417 * minsyms.c (lookup_minimal_symbol): Update comment.
11418 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11419 (lookup_minimal_symbol_solib_trampoline): Likewise.
11420
11c02a10
AC
114212003-01-08 Andrew Cagney <cagney@redhat.com>
11422
aab3ea25
AC
11423 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11424 frame_relative_level.
11425
da50a4b7
AC
11426 * alpha-tdep.c: Use get_frame_extra_info.
11427 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11428 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11429 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11430 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11431
11c02a10
AC
11432 * alpha-tdep.c: Use get_next_frame.
11433 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11434 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11435 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11436 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11437 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11438 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11439 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11440
1e2330ba
AC
114412003-01-07 Andrew Cagney <cagney@redhat.com>
11442
11443 * alpha-tdep.c: Use get_frame_base.
11444 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11445 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11446 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11447 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11448 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11449 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11450 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11451 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11452
2d75187b
AC
114532003-01-07 Andrew Cagney <cagney@redhat.com>
11454
11455 * frame.c (deprecated_get_frame_context): New function.
11456 (deprecated_set_frame_context): New function.
11457 * frame.h (deprecated_get_frame_context): Declare.
11458 (deprecated_set_frame_context): Declare.
11459 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11460 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11461
483d36b2
AC
114622003-01-07 Andrew Cagney <cagney@redhat.com>
11463
11464 * frame.c (deprecated_set_frame_next_hack): New function.
11465 (deprecated_set_frame_prev_hack): New function.
11466 * frame.h (deprecated_set_frame_next_hack): Declare.
11467 (deprecated_set_frame_prev_hack): Declare.
11468 * mcore-tdep.c (analyze_dummy_frame): Use
11469 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11470 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11471
14e91ac5
DC
114722003-01-07 David Carlton <carlton@math.stanford.edu>
11473
11474 * linespec.c (decode_line_1): Move code into decode_dollar.
11475 (decode_dollar): New function.
11476
b0c6b05c
AC
114772003-01-07 Andrew Cagney <cagney@redhat.com>
11478
11479 * arm-tdep.c (arm_init_extra_frame_info): Use
11480 deprecated_update_frame_base_hack.
11481 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11482 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11483 (fix_frame_pointer): Ditto.
11484 (mn10300_analyze_prologue): Ditto.
11485
a00a19e9
AC
114862003-01-07 Andrew Cagney <cagney@redhat.com>
11487
11488 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11489 extra_info using frame_extra_info_zalloc.
11490 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11491 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11492 (sh64_init_extra_frame_info): Ditto.
11493 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11494 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11495 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11496 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11497 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11498 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11499 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11500 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11501 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11502 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11503 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11504 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11505
11506 * mn10300-tdep.c (analyze_dummy_frame): Use
11507 deprecated_set_frame_extra_info_hack.
11508 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11509
1fb4c65b
JB
115102003-01-07 J. Brobecker <brobecker@gnat.com>
11511
11512 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11513 class is not scText. These do not define "real" procedures.
11514 (parse_partial_symbols): Likewise.
11515
9fe7d6bf
MS
115162003-01-06 Michael Snyder <msnyder@redhat.com>
11517
11518 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11519
f6c609c4
AC
115202003-01-06 Andrew Cagney <ac131313@redhat.com>
11521
11522 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11523 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11524 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11525 deprecated_frame_xmalloc_with_cleanup.
11526 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11527 deprecated_frame_xmalloc.
11528 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11529 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11530
d995ff4b
AC
115312003-01-06 Andrew Cagney <cagney@redhat.com>
11532
84dc46cb
AC
11533 * x86-64-linux-tdep.c: Include "osabi.h".
11534 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11535
d995ff4b
AC
11536 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11537
66140c26
AC
115382003-01-06 Andrew Cagney <cagney@redhat.com>
11539
11540 * MAINTAINERS (Target Instruction Set Architectures): Update
11541 arm-elf. Can be built with -Werror, has been multiarched.
11542
11543 * value.h (unpack_long): Make buffer parameter constant.
11544 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11545 * scm-lang.h (scm_parse): Ditto.
11546 * defs.h (extract_typed_address, extract_address): Ditto.
11547 (extract_long_unsigned_integer): Ditto.
11548 * inferior.h (unsigned_pointer_to_address): Ditto.
11549 (signed_pointer_to_address): Ditto.
11550 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11551 * gdbarch.h, gdbarch.c: Regenerate.
11552 * findvar.c (extract_long_unsigned_integer): Update.
11553 (extract_address): Update.
11554 (extract_typed_address): Update.
11555 (unsigned_pointer_to_address): Update.
11556 * values.c (unpack_long): Update.
11557 (unpack_double): Update.
11558 (unpack_pointer): Update.
11559 (unpack_field_as_long): Update.
11560 * d10v-tdep.c (d10v_pointer_to_address): Update.
11561 * avr-tdep.c (avr_pointer_to_address): Update.
11562 * scm-lang.c (scm_unpack): Update.
11563 * findvar.c (signed_pointer_to_address): Update.
11564
b089b3da
ML
115652003-01-06 Michal Ludvig <mludvig@suse.cz>
11566
8ffd9b1b 11567 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11568 since it is in i386-tdep.c.
11569
aff87235
JB
115702003-01-06 J. Brobecker <brobecker@gnat.com>
11571
11572 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11573 failure introduced in the previous change.
11574
34f5e845
MC
115752003-01-05 Michael Chastain <mec@shout.net>
11576
11577 * README: Remove references to deleted remote-*.c files:
11578 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11579 remote-nrom.c, remote-os9k.c, remote-udi.c.
11580
28bcfd30
MK
115812003-01-05 Mark Kettenis <kettenis@gnu.org>
11582
11583 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11584 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11585 i386_get_longjmp_target.
11586
15a5b3ee
AC
115872003-01-05 Andrew Cagney <ac131313@redhat.com>
11588
11589 * arm-tdep.c (prologue_cache): Change to a pointer.
11590 (_initialize_arm_tdep): Allocate prologue_cache.
11591 (check_prologue_cache): Update.
11592 (save_prologue_cache): Update.
11593 (arm_gdbarch_init): Update.
11594
c263362b
DJ
115952003-01-04 Daniel Jacobowitz <drow@mvista.com>
11596
11597 * stabsread.c (update_method_name_from_physname): Call complaint()
11598 instead of error.
11599
51603483
DJ
116002003-01-04 Daniel Jacobowitz <drow@mvista.com>
11601
11602 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11603 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11604 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11605
11606 * blockframe.c: Include "gdbcmd.h" and "command.h".
11607 (backtrace_below_main): New variable.
11608 (file_frame_chain_valid, func_frame_chain_valid)
11609 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11610 (generic_func_frame_chain_valid): Remove functions.
11611 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11612 (_initialize_blockframe): New function.
11613 * Makefile.in (blockframe.o): Update dependencies.
11614 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11615 comment. Call frame_chain_valid ().
11616 * frame.h: Remove old prototypes. Add prototype for
11617 frame_chain_valid and update comments to match.
11618 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11619 Remove old comment.
11620 * gdbarch.h: Regenerated.
11621 * gdbarch.c: Regenerated.
11622
11623 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11624 set_gdbarch_frame_chain_valid.
11625 * avr-tdep.c (avr_gdbarch_init): Likewise.
11626 * cris-tdep.c (cris_gdbarch_init): Likewise.
11627 * frv-tdep.c (frv_gdbarch_init): Likewise.
11628 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11629 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11630 (i386_nw_init_abi): Likewise.
11631 (i386_gdbarch_init): Likewise.
11632 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11634 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11635 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11636 * mips-tdep.c (mips_gdbarch_init): Likewise.
11637 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11638 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11639 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11640 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11641 * s390-tdep.c (s390_gdbarch_init): Likewise.
11642 * sh-tdep.c (sh_gdbarch_init): Likewise.
11643 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11644 * v850-tdep.c (v850_gdbarch_init): Likewise.
11645 * vax-tdep.c (vax_gdbarch_init): Likewise.
11646 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11647
11648 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11649 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11650 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11651 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11652 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11653 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11654 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11655 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11656
b00a8037
DJ
116572002-01-04 Daniel Jacobowitz <drow@mvista.com>
11658
11659 * Makefile.in (acconfig_h): Remove incorrect macro.
11660 (config_h): Define.
11661 (osabi.o): Update dependencies.
11662 * configure.tgt: Set gdb_osabi based on target triplet.
11663 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11664 * configure: Regenerated.
11665 * config.in: Regenerated.
11666 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11667 (GDB_OSABI_DEFAULT): Define if not already defined.
11668 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11669 (set_osabi_string): New variables.
11670 (gdbarch_register_osabi): Add new OS ABI to
11671 gdb_osabi_available_names.
11672 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11673 (set_osabi, show_osabi): New functions.
11674 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11675
4be87837
DJ
116762003-01-04 Daniel Jacobowitz <drow@mvista.com>
11677
11678 * arch-utils.c (gdbarch_info_init): Set osabi to
11679 GDB_OSABI_UNINITIALIZED.
11680 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11681 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11682 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11683 * gdbarch.c: Regenerated.
11684 * gdbarch.h: Regenerated.
11685 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11686 there's no BFD.
11687 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11688 * osabi.h (enum gdb_osabi): Move to defs.h.
11689 (gdbarch_init_osabi): Update prototype.
11690 * defs.h (enum gdb_osabi): Moved here.
11691 * Makefile.in: Update dependencies.
11692
11693 * alpha-tdep.h: Don't include "osabi.h".
11694 (struct gdbarch_tdep): Remove osabi member.
11695 * alpha-tdep.c: Include "osabi.h".
11696 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11697 iterate over arches. Update call to gdbarch_init_osabi.
11698 (alpha_dump_tdep): Don't dump osabi.
11699 * alpha-linux-tdep.c: Include "osabi.h".
11700 * alpha-osf1-tdep.c: Include "osabi.h".
11701 * alphafbsd-tdep.c: Include "osabi.h".
11702 * alphanbsd-tdep.c: Include "osabi.h".
11703
11704 * arm-tdep.h: Don't include "osabi.h".
11705 (struct gdbarch_tdep): Remove osabi member.
11706 * arm-tdep.c: Include "osabi.h".
11707 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11708 iterate over arches. Update call to gdbarch_init_osabi.
11709 (arm_dump_tdep): Don't dump osabi.
11710 * arm-linux-tdep.c: Include "osabi.h".
11711 * armnbsd-tdep.c: Include "osabi.h".
11712
11713 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11714 Update call to gdbarch_init_osabi.
11715
11716 * i386-tdep.h: Don't include "osabi.h".
11717 (struct gdbarch_tdep): Remove osabi member.
11718 * i386-tdep.c: Include "osabi.h".
11719 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11720 iterate over arches. Update call to gdbarch_init_osabi.
11721 (i386_dump_tdep): Don't dump osabi.
11722 * i386-linux-tdep.c: Include "osabi.h".
11723 * i386-sol2-tdep.c: Include "osabi.h".
11724 * i386bsd-tdep.c: Include "osabi.h".
11725 * i386gnu-tdep.c: Include "osabi.h".
11726 * i386ly-tdep.c: Include "osabi.h".
11727 * i386nbsd-tdep.c: Include "osabi.h".
11728 * i386obsd-tdep.c: Include "osabi.h".
11729
11730 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11731 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11732 check osabi when iterating over arches. Update call to
11733 gdbarch_init_osabi.
11734 (mips_dump_tdep): Don't dump osabi.
11735
11736 * ns32k-tdep.h: Don't include "osabi.h".
11737 (struct gdbarch_tdep): Remove.
11738 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11739 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11740 allocate tdep. Update call to gdbarch_init_osabi.
11741 (ns32k_dump_tdep): Remove.
11742 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11743 * ns32knbsd-tdep.c: Include "osabi.h".
11744
11745 * ppc-tdep.h: Don't include "osabi.h".
11746 (struct gdbarch_tdep): Remove osabi member.
11747 * rs6000-tdep.c: Include "osabi.h".
11748 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11749 osabi when iterating over arches. Update call to
11750 gdbarch_init_osabi.
11751 (rs6000_dump_tdep): Don't dump osabi.
11752 * ppc-linux-tdep.c: Include "osabi.h".
11753 * ppcnbsd-tdep.c: Include "osabi.h".
11754
11755 * sh-tdep.h: Don't include "osabi.h".
11756 (struct gdbarch_tdep): Remove osabi member.
11757 * sh-tdep.c: Include "osabi.h".
11758 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11759 iterate over arches. Update call to gdbarch_init_osabi.
11760 (sh_dump_tdep): Don't dump osabi.
11761 * shnbsd-tdep.c: Include "osabi.h".
11762
11763 * sparc-tdep.c: Include "osabi.h".
11764 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11765 iterate over arches. Update call to gdbarch_init_osabi.
11766 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11767 tdep structure.
11768
11769 * vax-tdep.h: Don't include "osabi.h".
11770 (struct gdbarch_tdep): Remove.
11771 * vax-tdep.c: Include "osabi.h".
11772 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11773 iterate over arches. Don't allocate tdep. Update call
11774 to gdbarch_init_osabi.
11775 (vax_dump_tdep): Remove.
11776 (_initialize_vax_tdep): Update call to gdbarch_register.
11777
a881cf8e
DJ
117782003-01-04 Daniel Jacobowitz <drow@mvista.com>
11779
11780 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11781 entirely.
11782 (breakpoint_re_set_one): Don't fetch the value for a disabled
11783 watchpoint.
11784
1e698235
DJ
117852003-01-04 Daniel Jacobowitz <drow@mvista.com>
11786
11787 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11788 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11789 (COERCE_FLOAT_TO_DOUBLE): Remove.
11790 * gdbarch.c: Regenerate.
11791 * gdbarch.h: Regenerate.
11792 * Makefile.in: Remove value_h from gdbarch_h.
11793 * valops.c (coerce_float_to_double): New variable.
11794 (default_coerce_float_to_double): Remove.
11795 (standard_coerce_float_to_double): Remove.
11796 (value_arg_coerce): Use coerce_float_to_double.
11797 (_initialize_valops): Add "set coerce-float-to-double".
11798 * value.h (default_coerce_float_to_double): Remove prototype.
11799 (standard_coerce_float_to_double): Remove prototype.
11800
11801 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11802 prototyped.
11803 * mdebugread.c (parse_symbol): Likewise.
11804 * stabsread.c (define_symbol): Mark all functions as prototyped.
11805
11806 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11807 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11808 set_gdbarch_coerce_float_to_double.
11809 * arm-tdep.c (arm_gdbarch_init): Likewise.
11810 * frv-tdep.c (frv_gdbarch_init): Likewise.
11811 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11812 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11813 * mips-tdep.c (mips_gdbarch_init): Likewise.
11814 (mips_coerce_float_to_double): Remove.
11815 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11816 (rs6000_coerce_float_to_double): Remove.
11817 * s390-tdep.c (s390_gdbarch_init): Likewise.
11818 * sh-tdep.c (sh_gdbarch_init): Likewise.
11819 (sh_coerce_float_to_double): Remove.
11820 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11821 (sparc_coerce_float_to_double): Remove.
11822 * v850-tdep.c (v850_gdbarch_init): Likewise.
11823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11824 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11825 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11826 (hppa_coerce_float_to_double): Remove prototype.
11827 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11828
f436a26a
DJ
118292003-01-04 Daniel Jacobowitz <drow@mvista.com>
11830
11831 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11832
248f8055
DJ
118332003-01-04 Daniel Jacobowitz <drow@mvista.com>
11834
11835 Suggested by Stewart Brown <sb24@avaya.com>:
11836 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11837 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11838 (c_type_print_varspec_suffix): Likewise.
11839
72cfdc76
MK
118402003-01-04 Mark Kettenis <kettenis@gnu.org>
11841
bfd260bb
MK
11842 * configure.in: Don't set and AC_SUBST SUBDIRS.
11843 * configure: Regenerated.
11844
72cfdc76
MK
11845 * configure.in: Remove code dealing with shared libraries.
11846 * Makefile.in: Remove HLDFLAGS and HLDENV.
11847 * configure: Regenerated.
11848
c8b8a898
AC
118492003-01-04 Andrew Cagney <ac131313@redhat.com>
11850
11851 * frame.c (deprecated_frame_xmalloc): New function.
11852 (deprecated_set_frame_saved_regs_hack): New function.
11853 (deprecated_set_frame_extra_info_hack): New function.
11854 * frame.h (deprecated_frame_xmalloc): Declare.
11855 (deprecated_set_frame_saved_regs_hack): Declare.
11856 (deprecated_set_frame_extra_info_hack): Declare.
11857
14abd0fb
MK
118582003-01-04 Mark Kettenis <kettenis@gnu.org>
11859
8ee53726
MK
11860 * configure.in: Move code that provides the --enable-gdbtk option
11861 right after the code that handles the --enable-tui option, and
11862 polish it somewhat.
11863 * configure: Regenerated.
11864
14abd0fb
MK
11865 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11866 AC_CHECK_FUNCS and remove the old check for pread64.
11867 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11868 * acconfig.h (_GNU_SOURCE): Add.
11869 (HAVE_PREAD64): Remove.
11870 * configure, aclocal.m4, config.in: Regenerated.
11871
b2fb4676
AC
118722003-01-03 Andrew Cagney <ac131313@redhat.com>
11873
11874 * alpha-tdep.c: Use get_frame_saved_regs.
11875 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11876 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11877 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11878 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11879 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11880
8dcde887
MK
118812003-01-03 Mark Kettenis <kettenis@gnu.org>
11882
11883 * configure.in: Remove all use of the SUBDIRS variable; add
11884 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11885 code providing the --enable-multi-ice option, and move it right in
11886 front of the code that checks whether gdbserver is supported.
11887 Polish that too.
11888 * configure: Regenerated.
11889 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11890 @SUBDIRS@.
11891
8ccd593b
AC
118922003-01-03 Andrew Cagney <cagney@redhat.com>
11893
11894 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11895 * avr-tdep.c, cris-tdep.c: Ditto.
11896 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11897 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11898
91151a06
MK
118992003-01-03 Mark Kettenis <kettenis@gnu.org>
11900
11901 * configure.in: Remove --enable-netrom option.
11902 * configure: Regenerated.
11903
8fe84d01
MK
119042003-01-03 Mark Kettenis <kettenis@gnu.org>
11905
11906 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11907 declaration for `struct re_pattern_buffer' instead.
11908 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11909
f0394be6
JB
119102003-01-03 J. Brobecker <brobecker@gnat.com>
11911
11912 * mdebugread.c (parse_symbol): Count until the stEnd matching
11913 the structure name.
11914
27e9bf90
MK
119152003-01-02 Mark Kettenis <kettenis@gnu.org>
11916
93d331ba
MK
11917 * configure.in: Remove --with-cpu option.
11918 subscripts. Remove evil changequotes here.
11919 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11920 * config.in, configure: Regenerated.
8ffd9b1b 11921
27e9bf90
MK
11922 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11923 * configure.in: Cleanup section that sources GDB and BFD configure
11924 subscripts. Remove evil changequotes here.
11925 * config.in, configure: Regenerated.
11926
50abf9e5
AC
119272003-01-02 Andrew Cagney <ac131313@redhat.com>
11928
11929 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11930 frame accessor methods.
11931 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11932 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11933 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11934 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11935 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11936 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11937 * z8k-tdep.c: Ditto.
8ffd9b1b 11938
287c1a40
MK
119392003-01-02 Mark Kettenis <kettenis@gnu.org>
11940
f5dbc56d
MK
11941 * configure.in: Remove UI_OUT configuration code.
11942 * ada-lang.c: Update assuming UI_OUT is always true.
11943 * Makefile.in (UIOUT_CFLAGS): Remove.
11944 * configure: Regenerated.
11945 * TODO: Remove blurb about elimination of -DUI_OUT.
11946
627af7ea
MK
11947 * configure.in: Move code that provides the --enable-gdbcli,
11948 --enable-gdbmi options right before the code that handles the
11949 --enable-tui option. Polish a bit.
11950 * configure: Regenerated.
11951
06825bd1
MK
11952 * configure.in: Rewrite check for GNU regex and the
11953 --without-included regex option, and move it into the "Checks for
11954 library functions" section. This makes us use the system regex
11955 again by default on systems with version 2 of the GNU C library.
11956 This was apparently broken.
11957 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11958 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11959 * config.in, configure: Regenerated.
11960
287c1a40
MK
11961 * configure.in: Move code that provides the --enable-tui option
11962 before the "Checks for libraries" section. Polish the code
11963 somewhat and set need_curses to yes if we build the TUI. Rewrite
11964 code that looks for a library providing termcap functionality to
11965 match more closely what's done in the Readline library, and move
11966 it into to the "Checks for libraries" section.
11967 * configure: Regenerated.
11968 * Makefile.in (TERMCAP): Remove variable.
11969 * config/i386/go32.mh (TERMCAP): Remove variable.
11970
684e56bf
AC
119712003-01-02 Andrew Cagney <ac131313@redhat.com>
11972
11973 * MAINTAINERS: Mention gdb_mbuild.sh.
11974 * gdb_mbuild.sh: Rewrite.
11975
e1ea1d75
MK
119762003-01-02 Mark Kettenis <kettenis@gnu.org>
11977
11978 * configure.in: Fix typo in last change.
11979 * config.in, configure: Regenerated.
11980
1b831c93
AC
119812003-01-02 Andrew Cagney <ac131313@redhat.com>
11982
11983 * valarith.c (value_binop): Delete obsolete code and comments.
11984 * configure.host: Ditto.
11985 * buildsym.h (make_blockvector): Ditto.
11986 * buildsym.c (make_blockvector): Ditto.
11987 * defs.h (enum language): Ditto.
11988 (chill_demangle): Ditto.
11989 * elfread.c (elf_symtab_read): Ditto.
11990 * dwarfread.c (CHILL_PRODUCER): Ditto.
11991 (set_cu_language): Ditto.
11992 (handle_producer): Ditto.
11993 * expprint.c (print_subexp): Ditto.
11994 * gdbtypes.c (chill_varying_type): Ditto.
11995 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11996 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11997 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11998 (chill_varying_type): Ditto.
11999 * language.h (_LANG_chill): Ditto.
12000 * language.c (binop_result_type, integral_type): Ditto.
12001 (character_type, string_type, structured_type): Ditto.
12002 (lang_bool_type, binop_type_check): Ditto.
12003 * stabsread.h (os9k_stabs): Ditto.
12004 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12005 (define_symbol, read_type, read_struct_fields): Ditto.
12006 (read_array_type, read_enum_type, read_huge_number): Ditto.
12007 (read_range_type, start_stabs): Ditto.
12008 * symfile.c (init_filename_language_table): Ditto.
12009 (add_psymbol_with_dem_name_to_list): Ditto.
12010 * symtab.c (symbol_init_language_specific): Ditto.
12011 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12012 * symtab.h (struct general_symbol_info): Ditto.
12013 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12014 * typeprint.c (typedef_print): Ditto.
12015 * utils.c (fprintf_symbol_filtered): Ditto.
12016 * valops.c (value_cast, search_struct_field, value_slice): Delete
12017 obsolete code.
12018 (varying_to_slice): Delete function.
12019 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12020 (varying_to_slice): Delete declaration.
12021 * MAINTAINERS: Update.
12022
8bb2c122
MK
120232003-01-02 Mark Kettenis <kettenis@gnu.org>
12024
97bf5e38
MK
12025 * configure.in: Reorganize "Checks for library functions section"
12026 a bit. Remove check for `btowc' and `isascii' functions.
12027 * configure: Regenerated.
12028
5ee754fc
MK
12029 * acconfig.h (_MSE_INT_H): Remove.
12030 * configure.in: Create "Checks for header files" section, and move
12031 appropriate tests there. Don't check for objlist.h, wchar.h,
12032 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12033 misdetection fix. Also add "Checks for types", "Checks for
12034 compiler characteristics" and "Checks for library functions"
12035 sections.
12036 * config.in, configure: Regenerated.
12037
8bb2c122
MK
12038 * configure.in: Create "Checks for programs" section, and move
12039 appropriate tests there.
12040
9a156167
MK
120412003-01-01 Mark Kettenis <kettenis@gnu.org>
12042
12043 * configure.in: Create "Checks for libraries" section, and move
12044 appropriate tests there. Cleanup check for wctype in libw. Use
12045 AC_SEARCH_LIBS to see whether we need libsocket.
12046 * configure: Regenerated.
12047
a80e2bcb 12048For older changes see ChangeLog-2002
c906108c
SS
12049\f
12050Local Variables:
12051mode: change-log
12052left-margin: 8
12053fill-column: 74
12054version-control: never
12055End:
This page took 1.032469 seconds and 4 git commands to generate.