* gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
192cb3d4
MK
12003-09-17 Mark Kettenis <kettenis@gnu.org>
2
3 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
4 * gdbarch.h, gdbarch.c: Regenerate.
5 (stabs_argument_has_addr): New architecture method.
6 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
7 * arch-utils.c: Include "buildsym.h".
8 (default_stabs_argument_has_addr): New function.
9 * stabsread.c (define_symbol): Use stabs_argument_has_addr
10 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
11
efe59759
AC
122003-09-17 Andrew Cagney <cagney@redhat.com>
13
14 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
15 * gdbarch.h, gdbarch.c: Regenerate.
16 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
17 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
18 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
19 * sparcnbsd-tdep.c: Update.
20
62700349
AC
212003-09-17 Andrew Cagney <cagney@redhat.com>
22
23 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
24 * gdbarch.h, gdbarch.c: Regenerate.
25 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
26 * d10v-tdep.c, frame.c: Update.
27 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
28 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
29 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
30 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
31 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
32 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
33 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
34 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
35 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
36 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
37 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
38 * config/pa/nm-hppah.h: Update.
39
b9ff3018
AC
402003-09-16 Andrew Cagney <cagney@redhat.com>
41
42 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
43 "use_struct_convention" to "ppc_linux_use_struct_convention".
44 (ppc_linux_use_struct_convention): New function.
45 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
46 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
47 "rs6000_use_struct_convention".
48 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
49 declaration.
50 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
51 Delete function.
52
aa1ee363
AC
532003-09-16 Andrew Cagney <cagney@redhat.com>
54
55 * buildsym.c: Remove more occurances of "register".
56 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
57 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
58 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
59 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
60 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
61 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
62 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
63 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
64
f2ea0907
CV
652003-09-16 Corinna Vinschen <vinschen@redhat.com>
66
67 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
68 numbers to enumeration values.
69 * sh-tdep.c: Accomodate above change.
70 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
71 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
72 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
73 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
74 (IS_FPUSH): Rename from IS_FMOV.
75 (sh_extract_struct_value_address): Remove useless comment.
76 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
77 instead of own local values.
78 (sh_dump_tdep): Remove.
79 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
80 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
81
1c704f11
AC
822003-09-15 Andrew Cagney <cagney@redhat.com>
83
84 * doublest.c (convert_floatformat_to_doublest): No longer need to
85 cast "exp_bias" to an int. Reverts 2002-12-04 change.
86
ac79b88b
DJ
872003-09-15 Daniel Jacobowitz <drow@mvista.com>
88
89 * values.c (unpack_double): Call floatformat_is_valid.
90
1c671366
MK
912003-09-15 Mark Kettenis <kettenis@gnu.org>
92
de5227fb
MK
93 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
94 ps_strings into a long.
95
1c671366
MK
96 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
97 _initialize_am64fbsd_nat.
98
a604369a
KB
992003-09-15 Kevin Buettner <kevinb@redhat.com>
100
101 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
102 associated with DW_AT_ranges attribute is out of bounds.
103
b3cacbee
DL
1042003-09-15 David Lecomber <dsl@sources.redhat.com>
105
106 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
107
d0f37bb2
MC
1082003-09-14 Michael Chastain <mec@shout.net>
109
110 * config/m68k/nm-apollo68v.h: Delete.
111 * config/m68k/xm-apollo68v.h: Delete.
112
69517000
AC
1132003-09-14 Andrew Cagney <cagney@redhat.com>
114
115 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
116 * dcache.c: Update copyrights and descriptions.
117 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
118
ef8b349d
AC
1192003-09-14 Andrew Cagney <cagney@redhat.com>
120
121 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
122 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
123
52f0bd74
AC
1242003-09-14 Andrew Cagney <cagney@redhat.com>
125
126 * alpha-nat.c: Remove some occurances of "register".
127 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
128 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
129 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
130 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
131 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
132 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
133 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
134 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
135 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
136 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
137 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
138 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
139 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
140 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
141 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
142 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
143 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
144 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
145 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
146 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
147 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
148 * values.c, vax-tdep.c, xcoffread.c: Ditto.
149
4a4b3fed
AC
1502003-09-13 Andrew Cagney <cagney@redhat.com>
151
152 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
153 * ppc-tdep.h (struct regcache): Declare opaque.
154 * objfiles.h (struct objfile_data): Declare opaque.
155 * cp-support.h (struct objfile): Declare opaque.
156 * linux-nat.h (target_waitstatus): Declare opaque.
157
2110b94f
MK
1582003-09-14 Mark Kettenis <kettenis@gnu.org>
159
1c671366
MK
160 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
161 (stabs_argument_has_addr): New architecture method.
162 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
163 * arch-utils.c: Include "buildsym.h".
164 (default_stabs_argument_has_addr): New function.
165 * stabsread.c (define_symbol): Use stabs_argument_has_addr
166 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
167
2110b94f
MK
168 * cris-tdep.c (cris_gdbarch_init): Set
169 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
170 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
171 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
172 * mips-tdep.c (mips_gdbarch_init): Likewise.
173 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
174 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
175
48436ce6
AC
1762003-09-13 Andrew Cagney <cagney@redhat.com>
177
178 * values.c (using_struct_return): Delete "function" and "funcaddr"
179 parameters.
180 * value.h (using_struct_return): Update declaration.
181 * infcmd.c (finish_command_continuation): Update.
182 (finish_command): Update.
183 * infcall.c (call_function_by_hand): Update.
184 * eval.c (evaluate_subexp_standard): Update.
185
403d9909
CF
1862003-09-13 Christopher Faylor <cgf@redhat.com>
187
188 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
189 SSE registers since gdb will not operate correctly without this.
190 Restore include file ordering munged in previous change.
191 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
192
ebf7d56b
MK
1932003-09-13 Mark Kettenis <kettenis@gnu.org>
194
8e823e25
MK
195 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
196 REG_STRUCT_HAS_ADDR.
197 * gdbarch.c, gdbarch.h: Updated.
198 * infcall.c (call_function_by_hand): Update.
199 * stabsread.c (define_symbol): Updated.
200
ebf7d56b
MK
201 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
202
d3f13f72
CF
2032003-09-12 Christopher Faylor <cgf@redhat.com>
204
205 * win32-nat.c: Reorganize so that defines used by target headers are
206 actually defined by the system headers.
207 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
208 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
209
14f75137
JB
2102003-09-12 Jim Blandy <jimb@redhat.com>
211
d646061f
JB
212 * dbxread.c (read_dbx_symtab): Don't report an internal error if
213 the file has no .data, .bss, or .rodata sections. Instead wait
214 until we see a variable alleged to live in one of those sections.
215
2a13f9bc
JB
216 * dbxread.c (read_dbx_symtab): If we have no .data section and no
217 .bss section, presume that any variables we find live in the
218 .rodata section.
219
4f49b26b
JB
220 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
221 offsets for global and static variables.
222
14f75137
JB
223 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
224 symbol types are, by definition, in the .data section, so it is
225 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
226 If there is no .data section, there should be no N_DATA or N_DATA
227 | N_EXT symbols.
228
212c460c
MK
2292003-09-12 Mark Kettenis <kettenis@gnu.org>
230
231 * amd64fbsd-tdep.c: Fix sigtramp recognition.
232 (amd64fbsd_sigcontext_addr): Rewrite.
233 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
234 with correct values.
235 (amd64fbsd_sc_reg_offset): Initialize with correct values.
236 (amd64fbsd_init_abi): Fix typo.
237
68856ea3
AC
2382003-09-12 Andrew Cagney <cagney@redhat.com>
239
240 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
241 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
242
627b3ba2
AC
2432003-09-12 Andrew Cagney <cagney@redhat.com>
244
245 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
246 "entry_file_highpc". Update comments.
247 * defs.h (deprecated_inside_entry_file): Rename
248 "inside_entry_file".
249 * blockframe.c (deprecated_inside_entry_file): Rename
250 "inside_entry_file".
251 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
252 * vax-tdep.c (vax_frame_chain): Update.
253 * sh64-tdep.c (sh64_frame_chain): Update.
254 * sh-tdep.c (sh_frame_chain): Update.
255 * rs6000-tdep.c (rs6000_frame_chain): Update.
256 * ns32k-tdep.c (ns32k_frame_chain): Update.
257 * mips-tdep.c (mips_frame_chain): Update.
258 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
259 * m32r-tdep.c (m32r_frame_this_id): Update.
260 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
261 * frv-tdep.c (frv_frame_this_id): Update.
262 * d10v-tdep.c (d10v_frame_this_id): Update.
263 * cris-tdep.c (cris_frame_chain): Update.
264 * blockframe.c (legacy_frame_chain_valid): Update.
265 * avr-tdep.c (avr_frame_this_id): Update.
266 * arm-tdep.c (arm_prologue_this_id): Update.
267 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
268 * objfiles.c (objfile_relocate): Update.
269 * mipsread.c (mipscoff_symfile_read): Update.
270 (mipscoff_symfile_read): Update.
271 * mdebugread.c (parse_partial_symbols): Update.
272 * dwarfread.c (read_file_scope): Update.
273 * dwarf2read.c (read_file_scope): Update.
274 * dbxread.c (read_dbx_symtab): Update.
275 (read_dbx_symtab): Update.
276 * coffread.c (complete_symtab): Update.
277
b0abbc58
JJ
2782003-09-12 Jeff Johnston <jjohnstn@redhat.com>
279
280 * top.c (quit_target): New static helper function.
281 (quit_force): Moved code to quit_target(). Call quit_target()
282 via catch_errors() to catch errors during quit.
283
a1632d59
DC
2842003-09-11 David Carlton <carlton@kealia.com>
285
286 * buildsym.c (finish_block): Use allocate_block to allocate the
287 block.
288 * mdebugread.c (new_block): Add FIXME.
289
5c4e30ca
DC
2902003-09-11 David Carlton <carlton@kealia.com>
291
292 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
293 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
294 (recursive_dump_type): Ditto.
295 * printcmd.c (print_formatted): Ditto.
296 * typeprint.c (print_type_scalar): Ditto.
297 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
298 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
299 * cp-support.h: Declare cp_check_possible_namespace_symbols,
300 maint_cplus_cmd_list.
301 * cp-support.c: Make maint_cplus_cmd_list extern.
302 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
303 command.h.
304 (lookup_symbol_file): Look in possible namespace blocks when
305 appropriate.
306 (initialize_namespace_symtab): New.
307 (get_possible_namespace_block, free_namespace_block)
308 (check_possible_namespace_symbols)
309 (check_possible_namespace_symbols_loop)
310 (check_one_possible_namespace_symbol)
311 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
312 (_initialize_cp_namespace): Ditto.
313 * block.h: Declare allocate_block.
314 * block.c (allocate_block): New.
315 * jv-lang.c (get_java_class_symtab): Allocate blocks via
316 allocate_block.
317 * symfile.h: Update declaration of add_psymbol_to_list.
318 * symfile.c (add_psymbol_to_list): Return the partial symbol in
319 question.
320 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
321 scan_partial_symbols_call.
322 (scan_partial_symbols): Add NAMESPACE argument; update calls to
323 helper functions.
324 (add_partial_symbol): If necessary, scan mangled names for names
325 of namespaces.
326 (add_partial_namespace): Add NAMESPACE argument; generate partial
327 symbols associated to namespaces.
328 (add_partial_enumeration): Add NAMESPACE argument.
329 (new_symbol): Allow namespace syms.
330 (read_namespace): Generate namespace syms.
331 * objfiles.h: Add opaque declaration of struct symtab.
332 (struct objfile): Add cp_namespace_symtab member.
333 * objfiles.c (allocate_objfile): Set
334 objfile->cp_namespace_symtab.
335 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
336 dictionary_h, command_h.
337
33a7c2fc
AC
3382003-09-11 Andrew Cagney <cagney@redhat.com>
339
340 * rs6000-tdep.c (rs6000_push_dummy_call): Use
341 regcache_raw_write_signed to set SP_REGNUM, move the operation to
342 near the function's end.
343 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
344 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
345 regcache_raw_write_signed to set SP_REGNUM.
346
63cd24fe
EZ
3472003-09-11 Elena Zannoni <ezannoni@redhat.com>
348
349 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
350 orig_addrs is set up properly.
351
f27dd7fd
AC
3522003-09-11 Andrew Cagney <cagney@redhat.com>
353
354 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
355 * gdbarch.h, gdbarch.c: Re-generate.
356 * infcall.c (call_function_by_hand): Update.
357 * hppa-tdep.c (hppa_push_arguments): Update.
358 * ada-lang.c (place_on_stack): Update.
359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
360 * sparc-tdep.c (sparc_gdbarch_init): Update.
361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
362 * hppa-tdep.c (hppa_gdbarch_init): Update.
363 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
364 stack_align.
365
f630a401
DJ
3662003-09-11 Daniel Jacobowitz <drow@mvista.com>
367
368 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
369 register do need a frame.
370
0ddabb4c
AC
3712003-09-11 Andrew Cagney <cagney@redhat.com>
372
373 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
374 buildable since GDB 5.0.
375 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
376 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
377 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
378 * irix4-nat.c: Delete file.
379 * config/mips/irix4.mh: Delete file.
380 * config/mips/irix3.mh: Delete file.
381 * config/mips/irix3.mt: Delete file.
382 * config/mips/tm-irix3.h: Delete file.
383 * config/mips/nm-irix3.h: Delete file.
384 * config/mips/xm-irix3.h: Delete file.
385 * config/mips/nm-irix4.h: Delete file.
386 * config/mips/xm-irix4.h: Delete file.
387 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
388
fde2cceb
JB
3892003-09-10 J. Brobecker <brobecker@gnat.com>
390
391 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
392 * Makefile.in (hppa-tdep.o): Update dependencies.
393
66f667f5
JW
3942003-09-10 James E Wilson <wilson@specifixinc.com>
395
ef5fd69f
JW
396 * MAINTAINERS: Change my e-mail address. Move to paper trail
397 section.
66f667f5 398
53e8aaea
KB
3992003-09-10 Kevin Buettner <kevinb@redhat.com>
400
401 * MAINTAINERS (frv): New ISA entry.
402
dcc6aaff
KB
4032003-09-10 Kevin Buettner <kevinb@redhat.com>
404
405 * frv-tdep.c (dis-asm.h): Include.
406 * Makefile.in (frv-tdep.o): Update dependencies.
407
932644f0
JJ
4082003-09-09 Jeff Johnston <jjohnstn@redhat.com>
409
410 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
411 Fix typo for high range of floating registers.
412
91c24f0a
DC
4132003-09-09 David Carlton <carlton@kealia.com>
414
415 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
416 highpc initialization here out of scan_partial_symbols.
417 (scan_partial_symbols): Restructure into a recursive version,
418 calling add_partial_namespace and add_partial_enumeration when
419 appropriate.
420 (add_partial_namespace): New.
421 (add_partial_enumeration, locate_pdi_sibling): Ditto.
422
c9263853
AC
4232003-09-09 Andrew Cagney <cagney@redhat.com>
424
e56a0ecc
AC
425 * rs6000-tdep.c (ppc_push_return_address): Delete function.
426 (rs6000_push_dummy_call): Set LR to BP_ADDR.
427 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
428 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
429
794a477a
AC
430 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
431 (rs6000_push_dummy_call): Set the "TOC" register.
432
c9263853
AC
433 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
434 methods "max_register_raw_size", "max_register_virtual_size" or
435 "register_virtual_size".
436
afa7d0b2
ILT
4372003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
438
439 * MAINTAINERS: Update my e-mail address.
440
7a41266b
AC
4412003-09-09 Andrew Cagney <cagney@redhat.com>
442
443 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
444 (rs6000_push_dummy_call): Store the struct return address.
445 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
446
77b2b6d4
AC
4472003-09-09 Andrew Cagney <cagney@redhat.com>
448
449 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
450 "ppc_sysv_abi_push_arguments".
451 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
452 "ppc_sysv_abi_push_arguments".
453 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
454 instead of "push_arguments".
455 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
456
e8a7b686
AC
4572003-09-09 Andrew Cagney <cagney@redhat.com>
458
459 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
460 instead of CALL_DUMMY_ADDRESS.
461
f86f5ca3
PH
4622003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
463
464 * p-lang.c: Eliminate "register".
465 * c-lang.c: Ditto.
466 * expprint.c: Ditto.
467 * f-lang.c: Ditto.
468 * jv-lang.c: Ditto.
469 * language.c: Ditto.
470 * m2-lang.c: Ditto.
471 * parse.c: Ditto.
472 * scm-lang.c: Ditto.
473 * objc-lang.c: Ditto.
474
83ee270e
NC
4752003-09-09 Nick Clifton <nickc@redhat.com>
476
477 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
478
a89aa300
AC
4792003-09-04 Andrew Cagney <cagney@redhat.com>
480
481 * avr-tdep.c: Include "dis-asm.h".
482 * cris-tdep.c: Include "dis-asm.h".
483 (cris_delayed_get_disassembler): Use "struct disassemble_info"
484 instead of corresponding typedef.
485 * h8300-tdep.c: Include "dis-asm.h".
486 * ia64-tdep.c: Include "dis-asm.h".
487 * i386-tdep.c: Include "dis-asm.h".
488 (i386_print_insn): Use "struct disassemble_info" instead of
489 corresponding typedef.
490 * m68k-tdep.c: Include "dis-asm.h".
491 * mcore-tdep.c: Include "dis-asm.h".
492 * mips-tdep.c: Include "dis-asm.h".
493 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
494 instead of corresponding typedef.
495 * ns32k-tdep.c: Include "dis-asm.h".
496 * s390-tdep.c: Include "dis-asm.h".
497 * sparc-tdep.c: Include "dis-asm.h".
498 * vax-tdep.c: Include "dis-asm.h".
499 * v850-tdep.c: Include "dis-asm.h".
500 * mn10300-tdep.c: Include "dis-asm.h".
501 * rs6000-tdep.c: Include "dis-asm.h".
502 * xstormy16-tdep.c: Include "dis-asm.h".
503 (_initialize_xstormy16_tdep): Delete "extern" declaration of
504 print_insn_xstormy16.
505 * Makefile.in (v850-tdep.o): Update dependencies.
506 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
507 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
508 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
509 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
510 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
511 (gdbarch_h): Remove $(dis_asm_h).
512 * disasm.c: Include "dis-asm.h".
513 (dis_asm_read_memory): Use "struct disassemble_info" instead of
514 corresponding typedef.
515 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
516 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
517 * gdbarch.sh: Do not include "dis-asm.h".
518 (struct disassemble_info): Declare opaque.
519 (TARGET_PRINT_INSN): Update declaration.
520 * gdbarch.h, gdbarch.c: Re-generate.
521
88a82a65
AC
5222003-09-08 Andrew Cagney <cagney@redhat.com>
523
524 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
525 CALL_DUMMY_ADDRESS, change to a predicate.
526 * gdbarch.h, gdbarch.c: Re-generate.
527 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
528 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
529 * infcall.c (call_function_by_hand): Ditto.
530 * sparc-tdep.c (sparc_push_return_address): Ditto.
531 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
532 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
533 CALL_DUMMY_ADDRESS with entry_point_address.
534 * v850-tdep.c (v850_push_return_address): Ditto.
535 * s390-tdep.c (s390_push_return_address): Ditto.
536 * rs6000-tdep.c (ppc_push_return_address): Ditto.
537 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
538 * mcore-tdep.c (mcore_push_return_address): Ditto.
539 * cris-tdep.c (cris_push_return_address): Ditto.
540 * arm-tdep.c (arm_push_return_address): Ditto.
541
3e2c4033
AC
5422003-09-08 Andrew Cagney <cagney@redhat.com>
543
544 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
545 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
546 and REG_UNMODIFIED to REG_SAME_VALUE.
547 (execute_cfa_program): Update.
548 (dwarf2_frame_cache): Update. Initialize table to
549 REG_UNSPECIFIED, complain if CFI fails to specify a register's
550 location.
551 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
552
39efb398
AC
5532003-09-08 Andrew Cagney <cagney@redhat.com>
554
555 * gnu-nat.c: Remove "inline" function attribute.
556 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
557
f5cb5aca
KB
5582003-09-08 Kevin Buettner <kevinb@redhat.com>
559
560 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
561 target.
562
1cb761c7
KB
5632003-09-08 Kevin Buettner <kevinb@redhat.com>
564
565 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
566 (frame_extra_info): Rename this struct to frv_unwind_cache.
567 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
568 Add fields ``prev_sp'' and ``base''.
569 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
570 (frv_saved_pc_after_call, frv_init_extra_frame_info)
571 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
572 Delete.
573 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
574 Revise all callers. Fill in the unwind cache argument and make
575 other adjustments to account for new frame mechanisms.
576 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
577 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
578 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
579 (frv_frame_unwind, frv_frame_base): New structs.
580 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
581 additional arguments expected by this method and adjust function
582 body accordingly.
583 (frv_gdbarch_init): Remove calls to the following functions:
584 set_gdbarch_deprecated_init_frame_pc(),
585 set_gdbarch_deprecated_saved_pc_after_call(),
586 set_gdbarch_deprecated_frame_chain(),
587 set_gdbarch_deprecated_frame_saved_pc(),
588 set_gdbarch_deprecated_frame_init_saved_regs(),
589 set_gdbarch_deprecated_push_arguments(),
590 set_gdbarch_deprecated_push_return_address(),
591 set_gdbarch_deprecated_pop_frame(),
592 set_gdbarch_deprecated_call_dummy_words(),
593 set_gdbarch_deprecated_sizeof_call_dummy_words(),
594 set_gdbarch_deprecated_init_extra_frame_info(),
595 set_gdbarch_deprecated_dummy_write_sp(), and
596 set_gdbarch_deprecated_pc_in_call_dummy().
597 Add calls to the following functions:
598 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
599 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
600 frame_base_set_default().
601 * Makefile.in (frv-tdep.o): Update dependencies.
602
68f6cf99
MK
6032003-09-09 Mark Kettenis <kettenis@gnu.org>
604
605 * dwarf2-frame.c (read_encoded_value): Add support for
606 DW_EH_PE_aligned encoding.
607
73b65bb0
DJ
6082003-09-08 Daniel Jacobowitz <drow@mvista.com>
609
610 * infrun.c (normal_stop): Don't print a message if the inferior
611 has exited.
612
7c8a5605
JB
6132003-09-08 Jim Blandy <jimb@redhat.com>
614
615 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
616 * dbxread.c: #include "gdb_assert.h".
617 (read_dbx_symtab): If the objfile has no .data section, use the
618 section index for the .bss section instead.
619
7dd88986
DJ
6202003-09-08 Daniel Jacobowitz <drow@mvista.com>
621
622 * frame.c (deprecated_safe_get_selected_frame): New function.
623 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
624 * findvar.c (read_var_value): Call it.
625
55ff77ac
CV
6262003-09-08 Corinna Vinschen <vinschen@redhat.com>
627
628 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
629 (sh64-tdep.o): Add dependencies.
630 * configure.tgt: Add FIXME to sh-*-linux*.
631 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
632 (sh_gdbarch_init): Always set correct sh_show_regs function
633 pointer. Call sh64_gdbarch_init() if machine type is sh5.
634 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
635 * sh64-tdep.c: New file, containing all sh64 related code from
636 sh-tdep.c.
637 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
638 * config/sh/linux.mt (TDEPFILES): Ditto.
639 * config/sh/nbsd.mt (TDEPFILES): Ditto.
640 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
641 * config/sh/wince.mt (TDEPFILES): Ditto.
642
bfb39158
DJ
6432003-09-07 Daniel Jacobowitz <drow@mvista.com>
644
645 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
646 (stop_wait_callback): Handle !lp->signalled also.
647 (lin_lwp_has_pending, flush_callback): New functions.
648 (lin_lwp_wait): Call flush_callback.
649 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
650 (linux_proc_pending_signals): New function.
651 * linux-nat.h (linux_proc_pending_signals): Add prototype.
652
9407de8e
DJ
6532003-09-07 Daniel Jacobowitz <drow@mvista.com>
654
655 From Nick Kelsey <nickk@ubicom.com>:
656 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
657 when the stop PC is at the beginning of a function also.
658
2ef47cd0
DJ
6592003-09-06 Daniel Jacobowitz <drow@mvista.com>
660
661 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
662 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
663
6f4492c8
MK
6642003-09-06 Mark Kettenis <kettenis@gnu.org>
665
666 * sol-thread.c: Include "gdb_string.h".
667
d3420b2f
MK
6682003-09-03 Mark Kettenis <m.kettenis@osp.nl>
669
670 * gcore.c: Reorder include files in alphabetical order. Include
671 "gdb_assert.h". Various coding style fixes.
672 (derive_stack_segment, derive_heap_segment): Replace check for
673 non-null BOTTOM and TOP with gdb_assert.
674 (derive_heap_segment): Replace check for successful creation of
675 ZERO with gdb_assert.
676 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
677
5220ea4c
AC
6782003-09-04 Andrew Cagney <cagney@redhat.com>
679
680 * thread-db.c (verbose_dlsym): New function.
681 (thread_db_load): Use verbose_dlsym
682 (thread_db_new_objfile): Print that libthread_db was loaded, and
683 that thread debugging was enabled.
684
6e8c2c06
AC
6852003-09-04 Andrew Cagney <cagney@redhat.com>
686
687 * configure.tgt: Add "mips64*-*-*" target. Delete
688 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
689 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
690 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
691 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
692 mips*-sony-*, and mips64*-*-elf* targets.
693 * config/mips/embedl.mt: Delete file.
694 * config/mips/embedl64.mt: Delete file.
695 * config/mips/mips.mt: Delete file.
696 * config/mips/mips64.mt: Delete file.
697 * config/mips/tm-embed.h: Delete file.
698 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
699 * config/mips/embed64.mt: Delete out-of-date comment.
700
3a3bc038
AC
7012003-09-04 Andrew Cagney <cagney@redhat.com>
702
703 * hppa-tdep.c (hppa_gdbarch_init): Set
704 "have_nonsteppable_watchpoint".
705 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
706 * mips-tdep.c (mips_dump_tdep): Do not print
707 HAVE_NONSTEPPABLE_WATCHPOINT.
708 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
709 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
710 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
711 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
712
a957e642
CV
7132003-09-04 Corinna Vinschen <vinschen@redhat.com>
714
715 * breakpoint.c (watchpoint_check): Remove accidentally checked in
716 unused code. Add comment.
717
a6fbcf2f
CV
7182003-09-04 Corinna Vinschen <vinschen@redhat.com>
719
720 * breakpoint.c (watchpoint_check): Check for pc being in an
721 epilogue if watchpoint frame couldn't be found.
722
c14a44d5
AC
7232003-09-04 Andrew Cagney <cagney@redhat.com>
724
725 * Makefile.in: Re-generate all dependencies.
726
f6c40618
AC
7272003-09-03 Andrew Cagney <cagney@redhat.com>
728
729 * arch-utils.h (legacy_print_insn): Delete declaration.
730 * arch-utils.c (legacy_print_insn): Delete function.
731 * disasm.c (deprecated_tm_print_insn_info): Delete.
732 (_initialize_disasm): Delete function, contained code initializing
733 deprecated_tm_print_insn_info.
734 * gdbarch.sh (deprecated_tm_print_insn): Delete.
735 (deprecated_tm_print_insn_info): Delete.
736 (TARGET_PRINT_INSN): Do not provide a default.
737 * gdbarch.h, gdbarch.c: Re-generate.
738
242e8be5
AC
7392003-09-03 Andrew Cagney <cagney@redhat.com>
740
741 * disasm.c (fprintf_disasm): New function.
742 (gdb_disassemble_info): Call "init_disassemble_info", instead of
743 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
744 reverts 2003-08-14 change.
745 (_initialize_disasm): Call "init_disassemble_info", instead of
746 INIT_DISASSEMBLE_INFO_NO_ARCH.
747
3ffc3dda
MS
7482003-09-03 Michael Snyder <msnyder@redhat.com>
749
750 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
751
52d16ba8
AC
7522003-09-03 Andrew Cagney <cagney@redhat.com>
753
754 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
755 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
756 * symfile.c (syms_from_objfile): Update.
757 (reread_symbols): `Update
758 * exec.c (exec_file_attach): Update.
759 (exec_file_attach): Update.
760 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
761 2003-08-29 change.
762 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
763
eb5492fa
DJ
7642003-09-03 Daniel Jacobowitz <drow@mvista.com>
765
766 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
767 trad-frame.h.
768 (arm_get_cache): Delete macro.
769 (struct arm_prologue_cache): Update comments. Make saved_regs into
770 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
771 to prev_sp.
772 (thumb_scan_prologue): Update for cache changes. Don't call
773 DEPRECATED_PC_IN_CALL_DUMMY.
774 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
775 argument and use it in desperation search for our prologue. Do not
776 search past the specified PC.
777 (arm_make_prologue_cache): Simplify.
778
779 (arm_prologue_this_id, arm_prologue_prev_register)
780 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
781 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
782 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
783 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
784 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
785
786 (arm_frame_chain_valid, arm_find_callers_reg)
787 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
788 (arm_pop_frame): Delete obsolete methods.
789 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
790
791 (arm_gdbarch_init): Update for new frame methods. Register prologue
792 and sigtramp unwinders. Set the default frame base method.
793
794 * Makefile.in (arm-tdep.o): Update dependencies.
795 * varobj.c (find_frame_addr_in_frame_chain): Call
796 get_frame_base_address.
797 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
798
24de872b
DJ
7992003-09-03 Daniel Jacobowitz <drow@mvista.com>
800
801 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
802 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
803 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
804 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
805 Take NEXT_FRAME and CACHE arguments. Call
806 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
807 Set unwound_pc in CACHE instead of modifying the frame argument.
808 Don't bother checking the frame type when looking for sigtramp
809 frames.
810 (arm_make_prologue_cache, arm_frame_chain)
811 (arm_init_extra_frame_info): New functions.
812
9b8d791a
DJ
8132003-09-03 Daniel Jacobowitz <drow@mvista.com>
814
815 * arm-tdep.c (arm_get_cache): Define.
816 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
817 unwound_sp, unwound_pc, and saved_regs.
818 (thumb_scan_prologue): Take a cache instead of the frame.
819 (arm_scan_prologue): Likewise.
820 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
821 instead of a temporary frame.
822 (arm_init_extra_frame_info): Allocate and use a cache.
823 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
824
7ee3275f
AC
8252003-09-03 Andrew Cagney <cagney@redhat.com>
826
827 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
828 * config/mips/wince.mt (TM_CLIBS): Ditto.
829 * config/sh/wince.mt (TM_CLIBS): Ditto.
830 * config/pa/hppa64.mt (TM_CLIBS): Delete.
831 * config/sparc/sp64.mt (CC): Delete.
832
57b29be7
AC
8332003-09-03 Andrew Cagney <cagney@redhat.com>
834
835 * defs.h: Do not include "arch-utils.h".
836 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
837 GDB_MULTI_ARCH_PURE.
838 * configure.in (GDB_MULTI_ARCH): Do not define.
839 * configure, config.in: Regenerate.
840 * configure.tgt: Do not set variable "gdb_multi_arch".
841 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
842 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
843 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
844 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
845 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
846 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
847 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
848 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
849 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
850 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
851 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
852 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
853 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
854 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
855 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
856 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
857 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
858 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
859
12e035e2
MC
8602003-08-30 Michael Chastain <mec@shout.net>
861
862 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
863 * config/m68k/nm-hp300hpux.h: Delete.
864 * config/m68k/tm-hp300hpux.h: Delete.
865 * config/m68k/xm-hp300hpux.h: Delete.
866 * config/m68k/xm-hp300bsd.h: Delete.
867 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
868 tm-hp300hpux.h, xm-hp300hpux.h.
869 * somsolib.c: Remove comment about hp300 shared libraries.
870
bda34dc2
MK
8712003-08-31 Mark Kettenis <kettenis@gnu.org>
872
5bca7895
MK
873 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
874 Only define PTRACE_GET_THREAD_AREA is not already defined.
875 Various style fixes in code and comments and some additional
876 spelling fixes in comments. Move after functions dealing with
877 debug registers.
878 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
879 Fix coding-style.
880
bda34dc2
MK
881 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
882 frame_unwind_register_unsigned instead of
883 frame_unwind_unsigned_register.
884
c890192f
MK
8852003-08-30 Mark Kettenis <kettenis@gnu.org>
886
887 * configure.in: Search for gethostbyname in libnsl.
888 * configure: Regenerated.
889
60fac5b8
MK
8902003-08-29 Mark Kettenis <kettenis@gnu.org>
891
e294916c
MK
892 * configure.in: Remove redundant AC_MSG_RESULT in check for
893 uintptr_t in stdint.h.
894 * configure: Regenerated.
895
c40d267a
MK
896 * amd64-nat.h (struct regcache): Add opaque declaration.
897
60fac5b8
MK
898 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
899 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
900 Change "register array" to "register cache" in comments.
901 (x86_64_linux_gregset64_reg_offset): New variable.
902 (GETREGS_SUPPLIES): Remove macro.
903 (supply_gregset): Call amd64_supply_native_gregset instead of
904 x86_64_linux_supply_gregset.
905 (fill_gregset): Rename `regno' to `regnum'. Call
906 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
907 (store_regs): Rename `regno' to `regnum'.
908 (store_fpregs): Rename `regno' to `regnum'.
909 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
910 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
911 Reorganize function a bit.
912 (store_inferior_registers): Rename `regno' to `regnum'. Use
913 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
914 Reorganize function a bit.
915 (_initialize_x86_64_linux_nat): New function.
916 * config/i386/x86-64linux.mh.
917
546143b6
AC
9182003-08-29 Andrew Cagney <cagney@redhat.com>
919
920 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
921 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
922 (target_remove_watchpoint): Delete macro.
923 (target_insert_watchpoint): Delete macro.
924 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
925 (remote_mips_stopped_by_watchpoint): Delete declaration.
926 (remote_mips_remove_watchpoint): Delete declaration.
927 (remote_mips_set_watchpoint): Delete declaration.
928 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
929 * remote-mips.c (_initialize_remote_mips): Set
930 "to_insert_watchpoint", "to_stopped_by_watchpoint",
931 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
932 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
933 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
934 (mips_stopped_by_watchpoint): Rename
935 remote_mips_stopped_by_watchpoint.
936 (mips_can_hardware_watchpoint): Rename
937 remote_mips_can_use_hardware_watchpoint, update function
938 signature.
939
7bace51b
MK
9402003-08-29 Mark Kettenis <kettenis@gnu.org>
941
b0f5c6f2
MK
942 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
943 USER_DS. We haven't given them a register number yet.
944
2a6d284d
MK
945 * amd64-nat.h: New file.
946 * amd64-nat.c: New file.
947 * amd64fbsd-nat.c: Include "amd64-nat.h".
948 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
949 (amd64fbsd32_r_reg_offset): New variable.
950 (supply_gregset): Simply call amd64_supply_native_gregset.
951 (fill_gregset): Rename `regno' to `regnum'. Simply call
952 amd64_collect_native_gregset.
953 (fill_fpregset): Rename `regno' to `regnum'.
954 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
955 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
956 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
957 `fpregset_t'. Call amd64_supply_native_gregset instead of
958 supply_gregset. Call x86_64_supply_fxsave instead of
959 supply_fpregset.
960 (store_inferior_registers): Rename `regno' to `regnum'. Replace
961 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
962 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
963 `fpregset_t'. Call amd64_collect_native_gregset instead of
964 fill_gregset. Call x86_64_collect_fxsave instead of
965 fill_fpregset.
966 (_initialize_am64fbsd_nat): Initialize
967 amd64_native_gregset32_reg_offset and
968 amd64_native_gregset64_reg_offset.
969 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
970
a16d75cc
MK
971 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
972 null pointer. Fix typo in comment.
973
7bace51b
MK
974 * regcache.c (supply_register): Reimplement to call
975 regcache_raw_supply.
976 (regcache_collect): Reimplement by calling regcache_raw_collect.
977
9a661b68
MK
9782003-08-28 Mark Kettenis <kettenis@gnu.org>
979
980 * regcache.c (register_buffer): Consitify first argument.
981 (regcache_raw_supply, regcache_raw_collect): New
982 functions.
983
e94cc8fa
DJ
9842003-08-28 Daniel Jacobowitz <drow@mvista.com>
985
986 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
987 by Nathan J. Williams.
988
c64bd0ce
DJ
9892003-08-28 Daniel Jacobowitz <drow@mvista.com>
990
991 * lin-lwp.c (wait_lwp): New function, copied from
992 stop_wait_callback. Clean up.
993 (stop_wait_callback): Use wait_lwp.
994
e5ab0dce
AC
9952003-08-28 Andrew Cagney <cagney@redhat.com>
996
997 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
998 flavour and disassembler options.
999 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1000 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1001 deprecated_tm_print_insn_info.
1002
a788de9b
AC
10032003-08-27 Andrew Cagney <cagney@redhat.com>
1004
1005 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1006 Use target_read_memory.
1007 (s390_get_frame_info): Update. Do not reference
1008 deprecated_tm_print_insn_info.
1009 (s390_check_function_end, s390_is_sigreturn): Ditto.
1010
36482093
AC
10112003-08-27 Andrew Cagney <cagney@redhat.com>
1012
1013 * Makefile.in (cris-tdep.o): Update dependencies.
1014 * cris-tdep.c: Include "gdb_assert.h".
1015 (cris_gdbarch_init): Set print_insn.
1016 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1017 (cris_delayed_get_disassembler): Simplify, directly call the
1018 disassembler returned by cris_get_disassembler.
1019 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1020 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1021 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1022 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1023 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1024 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1025 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1026 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1027 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1028 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1029 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1030 (gdb_print_insn_sparc): Delete function.
1031 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1032 deprecated_tm_print_insn_info.
1033 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1034 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1035 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1037 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1038 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1039 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1040 (s390_gdbarch_init): Set print_insn.
1041
0285512f
AC
10422003-08-27 Andrew Cagney <cagney@redhat.com>
1043
1044 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1045 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1046 * infcall.c (call_function_by_hand): Convert the entry point
1047 address into a code address.
1048
cdcd5552
AC
10492003-08-27 Andrew Cagney <cagney@redhat.com>
1050
1051 * dsrec.c: Include "gdb_string.h".
1052 * Makefile.in (dsrec.o): Update dependencies.
1053
e85cddad
MC
10542003-08-27 Michael Chastain <mec@shout.net>
1055
1056 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1057
8bbfbb23
AC
10582003-08-27 Andrew Cagney <cagney@redhat.com>
1059
1060 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1061 (alpha_osf1_init_abi): Do not set call_dummy_address.
1062
ba058b66
DC
10632003-08-27 David Carlton <carlton@kealia.com>
1064
1065 From Randolph Chung <tausq@debian.org>:
1066 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1067 compiles with -Wformat-nonliteral -Werror.
1068
87f84c9d
JB
10692003-08-26 Jim Blandy <jimb@redhat.com>
1070
1071 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1072 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1073 bfd_lookup_symbol, since we only want symbols in code sections.
1074 (look_for_base): Pass zero as the SECT_FLAGS argument to
1075 bfd_lookup_symbol, since we're not concerned about which section
1076 the symbol is in.
1077
102d615a
JJ
10782003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1079
1080 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1081 we are frameless or the return address register is already known.
1082
cc7ad3ea
AC
10832003-08-26 Andrew Cagney <cagney@redhat.com>
1084
1085 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1086 in size. Add comments.
1087
af8b88dd
JJ
10882003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1089
1090 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1091 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1092
e0a4f5a1
JM
10932003-08-26 Jason Merrill <jason@redhat.com>
1094
1095 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1096 case out of #ifdef MIPS block.
1097
4ae9ee8e
DJ
10982003-08-25 Daniel Jacobowitz <drow@mvista.com>
1099
1100 PR java/1322
1101 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1102 available before calling SECT_OFF_TEXT.
3c164570 1103 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1104
004d836a
JJ
11052003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1106
1107 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1108 bof, and nat0-nat127 as pseudo-registers.
1109 (ia64_frame_cache): New struct used to cache frame info.
1110 (ia64_register_reggroup_p): New routine used to override default
1111 register grouping so registers without names are still saved and
1112 restored.
1113 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1114 pseudo values.
1115 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1116 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1117 (ia64_alloc_frame_cache): New routine to create a new
1118 ia64_frame_cache.
1119 (examine_prologue): Change prototype to add next_frame pointer.
1120 Assume frameless until otherwise proven. Verify that the cfm for
1121 current frame matches the cfm that should occur for the prologues
1122 alloc insn and if equal, mark as not frameless. At end of routine,
1123 if not frameless, calculate registers for the previous frame and store
1124 in the cache, if a cache is provided.
1125 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1126 and pass 0 for next_frame.
1127 (ia64_store_return_value): Change to use convert_typed_floating()
1128 instead of calling ia64_convert_to_raw().
1129 (ia64_extract_return_value): Change to use convert_typed_floating()
1130 instead of calling ia64_convert_to_virtual().
1131 (ia64_frame_cache): New routine to support new frame model.
1132 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1133 (ia64_frame_sniffer): Ditto.
1134 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1135 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1136 (ia64_sigtramp_frame_prev_register): Ditto.
1137 (ia64_sigtramp_frame_sniffer): Ditto.
1138 (ia64_frame_base_address): Ditto.
1139 (ia64_extract_struct_value_address): Change to issue error message.
1140 (ia64_frame_align): New routine to align sp.
1141 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1142 (ia64_push_arguments): Removed. Logic moved to
1143 ia64_push_dummy_call().
1144 (ia64_push_return_address): Ditto.
1145 (ia64_unwind_dummy_id): New function.
1146 (ia64_unwind_pc): Ditto.
1147 (ia64_convert_register_p): Ditto.
1148 (ia64_register_to_value): Ditto.
1149 (ia64_value_to_register): Ditto.
1150 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1151 (ia64_register_byte, ia64_register_raw_size): Ditto.
1152 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1153 (ia64_saved_pc_after_call): Ditto.
1154 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1155 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1156 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1157 (ia64_register_convert_to_raw): Ditto.
1158 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1159 (ia64_init_extra_frame_info): Ditto.
1160 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1161 (ia64_gdbarch_init): Remove registering of deprecated functions that
1162 are no longer used. Add registration of new gdbarch functions.
1163 Remove registering deprecated_write_sp. Replace
1164 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1165 Delete set_gdbarch_deprecated_register_convertible(),
1166 set_gdbarch_deprecated_register_convert_to_virtual(), and
1167 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1168 set_gdbarch_deprecated_register_size(),
1169 set_gdbarch_deprecated_register_bytes(),
1170 set_gdbarch_pcregnum(),
1171 set_gdbarch_deprecated_register_byte(),
1172 set_gdbarch_deprecated_register_raw_size(),
1173 set_gdbarch_deprecated_max_register_raw_size(),
1174 set_gdbarch_deprecated_register_virtual_size(),
1175 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1176 Replace set_gdbarch_deprecated_extract_return_value() with
1177 set_gdbarch_extract_return_value(). Remove calls to:
1178 set_gdbarch_deprecated_saved_pc_after_call();
1179 set_gdbarch_deprecated_frame_chain(),
1180 set_gdbarch_deprecated_frame_saved_pc(),
1181 set_gdbarch_deprecated_frame_init_saved_regs(),
1182 set_gdbarch_deprecated_get_saved_register(),
1183 set_gdbarch_deprecated_call_dummy_words(),
1184 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1185 set_gdbarch_deprecated_init_extra_frame_info(),
1186 set_gdbarch_deprecated_frame_args_address(),
1187 set_gdbarch_deprecated_frame_locals_address(),
1188 and set_gdbarch_deprecated_dummy_write_sp().
1189 Add set_gdbarch_convert_register_p(),
1190 set_gdbarch_register_to_value(),
1191 set_gdbarch_value_to_register(),
1192 set_gdbarch_push_dummy_call(),
1193 set_gdbarch_frame_align(),
1194 set_gdbarch_unwind_dummy_id(),
1195 set_gdbarch_unwind_pc(),
1196 frame_unwind_append_sniffer(),
1197 frame_unwind_append_sniffer(),
1198 and frame_base_set_default().
1199
aede7613
CD
12002003-08-25 Chris Demetriou <cgd@broadcom.com>
1201
1202 * configure.tgt: Document need for special "mipsisa64" handling.
1203 (mipsisa64*-*-linux64): Handle as target linux64.
1204 (mipsisa64*-*-*): Handle as target embed64.
1205
43c3a82e
MC
12062003-08-18 Michael Chastain <mec@shout.net>
1207
1208 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1209 objfile bug.
1210
6564f77d
MK
12112003-08-24 Mark Kettenis <kettenis@gnu.org>
1212
2de139ba
MK
1213 * i387-tdep.h: Update copyright date.
1214 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1215
6564f77d
MK
1216 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1217 CFLAGS games to reflect reality.
1218
42cf1509
AC
12192003-08-24 Andrew Cagney <cagney@redhat.com>
1220
1221 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1222 GDB_MULTI_ARCH is always non-zero.
1223 * osabi.c (_initialize_gdb_osabi): Ditto.
1224 (gdbarch_init_osabi): Ditto.
1225 * sparc-tdep.c: Ditto for #if code.
1226
0485f6ad
MK
12272003-08-23 Mark Kettenis <kettenis@gnu.org>
1228
1229 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1230 Update comments.
1231 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1232 comments.
1233 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1234 x86_64_supply_fxsave.
1235 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1236 x86_64_supply_fxsave.
1237 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1238 x86_64_supply_fxsave.
1239
c7716133
AJ
12402003-08-23 Andreas Jaeger <aj@suse.de>
1241
1242 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1243 i387_supply_fxsave.
1244
ed504bdf
MK
12452003-08-23 Mark Kettenis <kettenis@gnu.org>
1246
1247 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1248 i387_supply_register.
1249 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1250 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1251 i387_supply_fsave.
1252 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1253 i387_supply_fxsave.
1254 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1255 i387_supply_fsave.
1256 * i386bsd-nat.c (supply_fpregset): Adjust call to
1257 i387_supply_fsave.
1258 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1259 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1260 supply_fpregset.
1261 (store_inferior_registers): Remove extraneous whitespace. Call
1262 i387_fill_fsave instead of fill_fpregset.
1263 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1264 (supply_fpregset): Likewise.
1265 * i386v4-nat.c (supply_fpregset): Adjust call to
1266 i387_supply_fsave.
1267 * i386-interix-nat.c (supply_fpregset): Adjust call to
1268 i387_supply_fsave.
1269 * i386-linux-nat.c (supply_fpregset): Adjust call to
1270 i387_supply_fsave.
1271 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1272 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1273 i387supply_fsave and i387_supply_fxsave.
1274 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1275 Incorporate code from `i387_supply_register.
1276 (i387_supply_register): Remove.
1277 (i387_supply_fxsave): Add `regnum' argument.
1278 Update comments.
1279 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1280 prototype.
1281 (i387_supply_register): remove prototype.
1282 Update comments.
1283
4be5d520
MC
12842003-08-22 Michael Chastain <mec@shout.net>
1285
1286 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1287 Add lines for files in gdb/testsuite/gdb.cp/* that are
1288 still not 8.3 unique.
1289
7ed85d26
DJ
12902003-08-22 Daniel Jacobowitz <drow@mvista.com>
1291
1292 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1293 TYPE_VPTR_FIELDNO is valid.
1294
eb0d3137
MK
12952003-08-19 Mark Kettenis <kettenis@gnu.org>
1296
1297 * utils.c (set_width_command): Remove prototypes.
1298 (set_screen_size): New prototype.
1299 (init_page_info): Simplify by fetching the screen size from
1300 Readline. Call set_screen_size.
1301 (set_screen_size): New function.
1302 (set_width): Add missing whitespace in comment.
1303 (set_width_command): Call set_screen_size.
1304 (set_height_command): New function.
1305 (initialize_utils): Fix formatting. Make "set height" command
1306 call set_height_command. Remove redundant code that turns off
1307 pagination if output isn't a terminal. Remove redundant call to
1308 set_width_command.
1309
7e6d0ac8
MK
13102003-08-22 Mark Kettenis <kettenis@gnu.org>
1311
3567a8ea
MK
1312 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1313 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1314 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1315 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1316 `case' keyword.
1317 (sparc64_register_info): Give the reister with number
1318 SPARC64_STATE_REGNUM a name.
1319 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1320 %asi and %ccr.
1321 (sparc64_push_dummy_call): Take BIAS into account when checking
1322 stcak alignment.
1323 (sparc_software_single_step): Remove assertions that check whether
1324 NPC and NNPC were zero.
1325 (sparc_supply_rwindow): Make public. Merge functionality with
1326 sparc64_supply_rwindow.
1327 (sparc_fill_rwindow): Make public. Merge functionality with
1328 sparc64_fill_rwindow.
1329 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1330 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1331 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1332 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1333 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1334
7e6d0ac8
MK
1335 * reggroups.c: Add whitespace after declarations of local
1336 variables in functions.
1337
72e5f484
MC
13382003-08-21 Michael Chastain <mec@shout.net>
1339
1340 * gdbtypes.h: Change array bound type from an int to enum.
1341
435ac228
AC
13422003-08-21 Andrew Cagney <cagney@redhat.com>
1343
1344 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1345 * config/sparc/tm-sparc.h: Ditto.
1346 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1347 unconditionally.
1348 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1349
0d0e1a63
MK
13502003-07-13 Mark Kettenis <kettenis@gnu.org>
1351
1352 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1353 (register_objfile_data, set_objfile_data, objfile_data): New
1354 prototypes.
1355 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1356 prototypes.
1357 (allocate_objfile): Call objfile_alloc_data.
1358 (free_objfile): Call objfile_free_data.
1359 (struct objfile_data): New.
1360 (struct objfile_data_registration): New.
1361 (struct objfile_data_registry): New.
1362 (objfile_data_registry): New variable.
1363 (register_objfile_data): New function.
1364 (objfile_alloc_data, objfile_free_data): New functions.
1365 (set_objfile_data, objfile_data): New functions.
1366 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1367 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1368 (_initialize_dwarf2_frame): New function and prototype.
1369
d90cf509
AC
13702003-08-21 Andrew Cagney <cagney@redhat.com>
1371
1372 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1373 a specific architecture.
1374 * arch-utils.h (set_architecture_from_arch_mach): Delete
1375 declaration.
1376 (target_architecture_hook): Delete declaration.
1377 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1378 (default_float_format): Assume GDB_MULTI_ARCH.
1379 (default_double_format): Assume GDB_MULTI_ARCH.
1380 (set_endian_from_file): Delete function.
1381 (arch_ok): Delete function.
1382 (set_arch): Delete function.
1383 (set_architecture_from_arch_mach): Delete function.
1384 (set_architecture_from_file): Delete function.
1385 (set_architecture): Assume GDB_MULTI_ARCH.
1386 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1387
8b39fe56
MK
13882003-08-21 Mark Kettenis <kettenis@gnu.org>
1389
1390 Rewrite FreeBSD/sparc64 native configuration.
1391 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1392 * sparc64fbsd-nat.c: New file.
1393 * sparc64fbsd-tdep.c: New file.
1394 * sparc64-tdep.c sparc64-tdep.h: New files.
1395 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1396 sparc64fbsd-tdep.o): New dependencies.
1397 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1398 and sparc64fbsd-tdep.c.
1399 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1400 * config/sparc/fbsd.mh: Remove copyright notice.
1401 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1402 sparcbsd-nat.o.
1403 * config/sparc/fbsd.mt: Remove copyright notice.
1404 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1405 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1406 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1407 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1408 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1409 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1410 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1411 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1412 "sparc/tm-sp64.h".
1413 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1414 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1415
a7f19c79
MC
14162003-08-21 Michael Chastain <mec@shout.net>
1417
1418 * symtab.h: Add doco on the space critical structures and
1419 some measurements of space usage.
1420
da08ea5b
MS
14212003-08-21 Michael Snyder <msnyder@redhat.com>
1422
1423 * tracepoint.c (trace_dump_command): Trace break address
1424 is subject to DECR_PC_AFTER_BREAK.
1425 (set_traceframe_context): Make "trace_line" an int.
1426 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1427
6df2bf50
MS
14282003-08-20 Michael Snyder <msnyder@redhat.com>
1429
1430 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1431 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1432 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1433 argument passing.
1434 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1435 functions, replace sh_push_dummy_call.
1436 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1437
0955bbf0
MC
14382003-08-20 Michael Chastain <mec@shout.net>
1439
1440 * gdbtypes.h (struct main_type): Rearrange to save space.
1441
260a4188
MS
14422003-08-20 Michael Snyder <msnyder@redhat.com>
1443
1444 * trad-frame.c: Comment typo fix.
1445
8baa6f92
KB
14462003-08-20 Michael Snyder <msnyder@redhat.com>
1447 Kevin Buettner <kevinb@redhat.com>
1448
1449 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1450 (frv_frame_init_saved_regs): Add declaration.
1451 (frame_extra_info): Add new field ``saved_regs''.
1452 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1453 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1454 Update frame related code.
1455 (frv_extract_struct_value_address): Adjust formatting.
1456 * Makefile.in (frv-tdep.o): Update dependencies.
1457 * config/frv/tm-frv.h (target_insert_watchpoint)
1458 (target_remove_watchpoint, target_insert_hw_breakpoint)
1459 (target_remove_hw_breakpoint): Delete these macros.
1460 (remote_insert_watchpoint, remote_remove_watchpoint)
1461 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1462 these declarations.
1463
87193939
MC
14642003-08-20 Michael Chastain <mec@shout.net>
1465
1466 * defs.h (ENUM_BITFIELD): New macro.
1467 * symtab.h (ENUM_BITFIELD): Use it.
1468 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1469
062103ba
SA
14702003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1471
1472 * MAINTAINERS (write after approval): Add myself.
1473
8b148df9
AC
14742003-08-18 Andrew Cagney <cagney@redhat.com>
1475
1476 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1477 * gdbarch.h, gdbarch.c: Re-generate.
1478 * infcall.c (call_function_by_hand): Adjust the SP by
1479 frame_red_zone_size before allocating any stack space.
1480 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1481 * x86-64-tdep.c (x86_64_frame_align): New function.
1482 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1483
1484 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1485 Remove code adjusting SP so that it skips over the Red Zone.
1486
954a4db8
MK
14872003-08-18 Mark Kettenis <kettenis@gnu.org>
1488
1489 * NEWS (New native configurations): Mention FreeBSD/amd64.
1490
1a241548
AC
14912003-08-18 Andrew Cagney <cagney@redhat.com>
1492
1493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1494 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1495 "m68k_frame_p".
1496 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1497
f82b2acd
MK
14982003-08-18 Mark Kettenis <kettenis@gnu.org>
1499
1500 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1501
4056d258
ML
15022003-08-18 Michal Ludvig <mludvig@suse.cz>
1503
1504 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1505 Define.
1506 * i386-linux-nat.c: Include "linux-nat.h".
1507 (child_post_startup_inferior): New function.
1508
99ab4326
MK
15092003-08-18 Mark Kettenis <kettenis@gnu.org>
1510
1511 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1512 at the start of a frameless function. This probably fixes PR
1513 backtrace/1338.
1514
c8d5f0d6
MC
15152003-08-17 Michael Chastain <mec@shout.net>
1516
1517 * symfile.c (find_sym_fns): Remove special case for apollo target.
1518
9016a515
DJ
15192003-08-17 Daniel Jacobowitz <drow@mvista.com>
1520
1521 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1522 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1523 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1524 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1525 (linux_supports_tracevforkdone): New function.
1526 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1527 TRACEVFORKDONE.
1528 (child_follow_fork): Handle vfork.
1529 (linux_handle_extended_wait): Likewise. Also handle exec.
1530 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1531 * NEWS: Mention fork tracing.
1532
c538c11c
DJ
15332003-08-17 Daniel Jacobowitz <drow@mvista.com>
1534
1535 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1536
4de4c07c
DJ
15372003-08-17 Daniel Jacobowitz <drow@mvista.com>
1538
1539 * Makefile.in (i386-linux-nat.o): Update dependencies.
1540 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1541 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1542 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1543 * i386-linux-nat.c: Include "linux-nat.h".
1544 (child_post_startup_inferior): New function.
1545 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1546 * infptrace.c (kill_inferior): Wrap in #ifdef.
1547 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1548 attaching to each LWP.
1549 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1550 (init_lin_lwp_ops): Fill in some more operations.
1551 * linux-nat.h (linux_enable_event_reporting)
1552 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1553 prototypes.
1554 * linux-nat.c (linux_enable_event_reporting): New function.
1555 (child_post_attach, linux_child_post_startup_inferior)
1556 (child_post_startup_inferior, child_follow_fork)
1557 (linux_handle_extended_wait, kill_inferior): New functions.
1558
7996bcec
AC
15592003-08-16 Andrew Cagney <cagney@redhat.com>
1560
1561 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1562 * gdbarch.h, gdbarch.c: Re-generate.
1563
3d48a7a0
MK
15642003-08-16 Mark Kettenis <kettenis@gnu.org>
1565
1566 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1567
7989c619
AC
15682003-08-16 Andrew Cagney <cagney@redhat.com>
1569
1570 * NEWS: Mention that "set prompt-escape-char" was deleted.
1571 * top.c (get_prompt_1): Delete function.
1572 (gdb_prompt_escape):
1573 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1574 prompt-escape-char" command.
1575 (MAX_PROMPT_SIZE): Delete macro.
1576 (get_prompt): Simplify, do not call get_prompt_1.
1577
07978cd8
AC
15782003-08-16 Andrew Cagney <cagney@redhat.com>
1579
1580 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1581 -Werror. -Wformat-nonliteral problems.
1582
3ff7cf9e
JB
15832003-08-15 J. Brobecker <brobecker@gnat.com>
1584
1585 Further multiarching work mostly for hppa64-*-hpux11:
1586 * hppa-tdep.h: New file.
1587 * hppa-tdep.c: #include hppa-tdep.c.
1588 (hppa32_num_regs): Renamed from hppa_num_regs.
1589 (hppa64_num_regs): New constant.
1590 (hppa64_call_dummy_breakpoint_offset): New constant.
1591 (hppa32_call_dummy_length): New constant.
1592 (hppa64_call_dummy_length): New constant.
1593 (hppa32_stack_align): Make name 32bit explicit.
1594 (hppa32_register_virtual_type): Likewise.
1595 (hppa32_extract_return_value): Likewise.
1596 (hppa32_use_struct_convention): Likewise.
1597 (hppa32_store_return_value): Likewise.
1598 (hppa64_register_virtual_type): New function.
1599 (hppa64_extract_return_value): New function.
1600 (hppa64_use_struct_convention): New function.
1601 (hppa64_store_return_value): New function.
1602 (hppa_frame_locals_address): Remove declaration, function does
1603 not exist anymore.
1604 (hppa_register_byte): Add support for PA64 ABI.
1605 (hppa_gdbarch_init): Add support for PA64 ABI.
1606 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1607 Make name 32bit explicit.
1608 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1609 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1610 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1611 (hppa64_hpux_frame_base_before_sigtramp): New function.
1612 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1613 * config/pa/tm-hppa64.h: Remove macros that are no longer
1614 necessary now that the gdbarch vector is properly setup.
1615 Transform some macros into function calls. Some minor cleanup.
1616 * config/pa/tm-hppah.h: Update function calls in macros
1617 following the function renaming in hppa-hpux-tdep.c.
1618 * Makefile.in (hppa_tdep_h): New variable.
1619 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1620
5d05ca6d
MS
16212003-08-14 Michael Snyder <msnyder@redhat.com>
1622
1623 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1624
37ba2569
JB
16252003-08-13 J. Brobecker <brobecker@gnat.com>
1626
1627 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1628 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1629 routine.
1630
aed7f26a
MS
16312003-08-13 Michael Snyder <msnyder@redhat.com>
1632
1633 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1634 (frv_saved_pc_after_call): Use deprecated ftype.
1635 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1636 (frv_remote_translate_xfer_address): Remove.
1637 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1638
752d4ac1
JB
16392003-08-13 J. Brobecker <brobecker@gnat.com>
1640
1641 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1642 initialization after the common gdbarch initialization, not before.
1643
1426ac1d
JB
16442003-08-13 J. Brobecker <brobecker@gnat.com>
1645
1646 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1647 (ADDR_BITS_REMOVE): Remove, redundant.
1648
b6fbdd1d
JB
16492003-08-13 J. Brobecker <brobecker@gnat.com>
1650
1651 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1652 gdbarch method to clear the 2 low bits of text addresses.
1653
44160db3
AC
16542003-08-12 Andrew Cagney <cagney@redhat.com>
1655
1656 * Makefile.in (dsrec.o): Update dependencies.
1657 * dsrec.c: Include "gdb_assert.h".
1658 (make_srec): Use snprintf instead of sprintf, use a literal format
1659 string.
1660
bcf7d3ca
AC
16612003-08-12 Andrew Cagney <cagney@redhat.com>
1662
1663 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1664 FRAME_OBSTACK_ZALLOC.
1665
49ed40de
KB
16662003-08-12 Kevin Buettner <kevinb@redhat.com>
1667
1668 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1669 SSE registers.
1670
b246147c
MK
16712003-08-10 Mark Kettenis <kettenis@gnu.org>
1672
1673 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1674 amd64fbsd_sc_reg_offset): Add extern declarations.
1675 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1676 declarations.
1677
d95fdc0d
BE
16782003-08-11 Ben Elliston <bje@wasabisystems.com>
1679
1680 * MAINTAINERS (write after approval): Update my mail address.
1681
cf6a0e73
AC
16822003-08-10 Andrew Cagney <cagney@redhat.com>
1683
1684 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1685
f837910f
MK
16862003-08-10 Mark Kettenis <kettenis@gnu.org>
1687
e2dbbd2d
MK
1688 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1689 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1690 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1691 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1692 i386bsd_sc_reg_offset): Add extern declarations.
1693 * i386obsd-nat.c: Include "i386-tdep.h"
1694 (_initialize_i386obsd_nat): Remove extern declarations.
1695 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1696 declarations.
1697 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1698 declarations.
1699
f837910f
MK
1700 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1701 instead of frame_read_register.
1702 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1703 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1704 SP_REGNUM.
1705 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1706 instead of frame_unwind_unsigned_register. Use
1707 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1708 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1709 instead of read_register. Use builtin_type_void_data_ptr instead
1710 of builtin_type_void_func_ptr when extracting the address of the
1711 jmp_buf.
1712 (i386_extract_return_value, i386_store_return_value,
1713 i386_pseudo_register_read, i386_pseudo_register_write): Use
1714 register_size instead REGISTER_RAW_SIZE.
1715
edcf254d
AC
17162003-08-10 Andrew Cagney <cagney@redhat.com>
1717
1718 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1719 sprintf. Make "name" constant.
1720
26604a34
MK
17212003-08-10 Mark Kettenis <kettenis@gnu.org>
1722
192285c6
MK
1723 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1724 instead of frame_read_register.
f837910f
MK
1725 (i387_print_float_info): Use get_frame_register and
1726 get_frame_register_unsigned instead of frame_register_read.
192285c6 1727
f0925262
MK
1728 * i386fbsd-nat.c: Include "i386-tdep.h".
1729 (child_resume): Make `eflags' an ULONGEST. Use
1730 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1731 instead of register_read and register_write.
1732
a144416f
MK
1733 * i386bsd-nat.c (fetch_inferior_registers,
1734 store_inferior_registers): Don't use && at the end of a line.
1735 (_initialize_i386bsd_nat): Fix typo.
1736
fec74868
MK
1737 * frame.c (_initialize_frame): Add missing backslash.
1738
87232496
MK
1739 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1740 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1741 and supply_register instead of manipulating the register buffer
1742 directly.
1743
c9b9de0b
MK
1744 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1745 * config/i386/nm-i386sol2.h
1746 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1747
26604a34
MK
1748 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1749 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1750 instructions that GCC likes to mingle into the prologue. Fixes
1751 gdb/1253 and gdb/1255.
1752
25d29d70
AC
17532003-08-09 Andrew Cagney <cagney@redhat.com>
1754
1755 Fix GDB PR cli/926.
1756 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1757 * command.h (add_setshow_uinteger_cmd): Declare.
1758 * frame.c (set_backtrace_cmd): New function.
1759 (show_backtrace_cmd): New function.
1760 * frame.c (_initialize_frame): Replace "set/show
1761 backtrace-below-main" with "set/show backtrace past-main". Add
1762 command "set/show backtrace limit".
1763 (backtrace_past_main): Rename "backtrace_below_main".
1764 (backtrace_limit): New variable.
1765 (get_prev_frame): Update. Check the backtrace_limit.
1766
9ebf4acf
AC
17672003-08-09 Andrew Cagney <cagney@redhat.com>
1768
1769 * defs.h (xstrprintf): Declare.
1770 * utils.c (xstrprintf): New function.
1771 * breakpoint.c (insert_breakpoints): Replace sprintf and
1772 non-literal format strings, with xstrprintf and cleanups.
1773 (delete_breakpoint,breakpoint_re_set): Ditto.
1774 (commands_command, insert_breakpoints): Ditto.
1775 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1776 (break_at_finish_command_1): Ditto.
1777
3771659b
AC
17782003-08-09 Andrew Cagney <cagney@redhat.com>
1779
1780 * MAINTAINERS (language support): List Adam Fedor as Objective C
1781 maintainer.
1782
b4263afa
JB
17832003-08-08 J. Brobecker <brobecker@gnat.com>
1784
1785 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1786 are now multiarched.
1787
d84defb1
JB
17882003-08-08 J. Brobecker <brobecker@gnat.com>
1789
1790 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1791 longer necessary now that hppa64 is partially multiarch'ed.
1792
f786f615
AC
17932003-08-08 Andrew Cagney <cagney@redhat.com>
1794
1795 * interps.c (interp_set): Check for a NULL "old_interp".
1796
c938e9b0
L
17972003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1798
1799 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1800 (install-only): Support DESTDIR.
1801 (uninstall): Likewise.
1802 (install-gdbtk): Likewise.
1803
9a146a11
EZ
18042003-08-08 Elena Zannoni <ezannoni@redhat.com>
1805
1806 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1807 contains something meaningful at all times.
1808
1809Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1810
62599e99 1811 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1812
56296155
BC
1813Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1814
62599e99 1815 * MAINTAINERS (write after approval): Added self.
56296155 1816
9710e734
AC
18172003-08-07 Andrew Cagney <cagney@redhat.com>
1818
1819 * inferior.h (AT_SYMBOL): Define.
1820 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1821 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1822 * mips-tdep.c (mips_call_dummy_address): Delete function.
1823 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1824 set call_dummy_address.
1825
98b3ab73
AC
18262003-08-07 Andrew Cagney <cagney@redhat.com>
1827
1828 * language.c (op_error): Delete function.
1829 (binop_type_check): Delete function.
1830 * language.h (type_op_error, range_op_error): Delete macros.
1831 (op_error): Delete declaration.
1832
2fcf52f0
AC
18332003-08-07 Andrew Cagney <cagney@redhat.com>
1834
1835 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1836
abd4220e 18372003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1838
abd4220e 1839 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1840 (x86_64_push_arguments): Skip the red zone.
abd4220e 1841
9dd5f34f
AC
18422003-08-05 Andrew Cagney <cagney@redhat.com>
1843
1844 * reggroups.c (reggroup_next): Check for the final entry.
1845
e5e78edc
AC
18462003-08-04 Andrew Cagney <cagney@redhat.com>
1847
ab4e3d93
AC
1848 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1849 * cli/cli-script.c (define_command): Call query directly, instead
1850 of passing it a buffer.
1851 * ocd.c (ocd_error): Pass error a constant format string.
1852 * remote-mips.c (mips_error): Use fputs_filtered.
1853
1062ca82
AC
1854 * solib-svr4.c (_initialize_svr4_solib): Update
1855 register_gdbarch_data call.
1856 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1857
fcc1c85c
AC
1858 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1859 (register_gdbarch_data): Delete "free" parameter. Update
1860 comments.
1861 * gdbarch.h, gdbarch.c: Re-generate.
1862 * reggroups.c (_initialize_reggroup): Update.
1863 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1864 * frame-base.c (_initialize_frame_base): Update.
1865 * frame-unwind.c (_initialize_frame_unwind): Update.
1866 * user-regs.c (_initialize_user_regs): Update.
1867 * remote.c (_initialize_remote): Update.
1868 * regcache.c (_initialize_regcache): Update.
1869
116f06ea
AC
1870 * regcache.c (xfree_regcache_descr): Delete function.
1871 (_initialize_regcache): Update call to register_gdbarch_data.
1872 (init_regcache_descr, init_legacy_regcache_descr): Use
1873 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1874
e5e78edc
AC
1875 * remote.c (free_remote_state): Delete function.
1876 (_initialize_remote): Update register_gdbarch_data.
1877 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1878 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1879
6c7d17ba
AC
18802003-08-04 Andrew Cagney <cagney@redhat.com>
1881
1882 * reggroups.c (struct reggroup_el): Define.
1883 (struct reggroups): Delete field "nr_group". Replace array
1884 "group" with a "first" to "last" linked list.
1885 (reggroups_init): Update. Allocate using gdbarch's obstack.
1886 (reggroups_free): Delete function.
1887 (add_group): Update. Add "el" parameter.
1888 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1889 (default_groups): Update.
1890 (reggroup_next): Replace reggroups.
1891 (reggroups_dump): Update.
1892 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1893 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1894 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1895
89b7795b
DJ
18962003-08-04 Daniel Jacobowitz <drow@mvista.com>
1897
1898 * Makefile.in (tui-interp.o): Update dependencies.
1899
306d9ac5
DC
19002003-08-04 David Carlton <carlton@kealia.com>
1901
1902 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1903 to internal_error call.
1904 * source.c (forward_search_command): Add "%s" format argument.
1905 (reverse_search_command): Ditto.
1906 * top.c (quit_confirm): Ditto.
1907 * cli/cli-setshow.c (do_setshow_command): Ditto.
1908 * cp-valprint.c (cp_print_class_method): Replace
1909 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1910 (cp_print_class_member): Ditto.
1911 * event-top.c (command_line_handler): Ditto.
1912 * linux-proc.c (linux_info_proc_cmd): Ditto.
1913 * p-typeprint.c (pascal_type_print_base): Ditto.
1914 * p-valprint.c (pascal_object_print_class_method): Ditto.
1915 (pascal_object_print_class_member): Ditto.
1916 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1917 * remote.c (remote_cisco_section_offsets): Ditto.
1918 * top.c (command_line_input): Ditto.
1919 * utils.c (vwarning,error_stream,quit): Ditto.
1920 * valprint.c (print_floating,print_binary_chars)
1921 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1922
57bfe177
AC
19232003-08-04 Andrew Cagney <cagney@redhat.com>
1924
1925 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1926
e546b999
AC
19272003-08-02 Andrew Cagney <cagney@redhat.com>
1928
1929 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1930 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1931 amd64fbsd-nat.c.
1932
91092ee5
AC
19332003-08-02 Andrew Cagney <cagney@redhat.com>
1934
1935 * Makefile.in: Update all dependencies and definitions.
1936
889f28e2
AF
19372003-08-02 Adam Fedor <fedor@gnu.org>
1938
1939 * linespec.c (is_objc_method_format): New function
1940 (decode_line_1, locate_first_half): Use it.
1941 Fixes PR objc/1298
1942
880bc914
AC
19432003-08-01 Andrew Cagney <cagney@redhat.com>
1944
1945 * NEWS: Mention that m32r is multi-arch.
1946 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1947 * configure.tgt: Recognize m32r-*-*.
1948 * config/m32r/tm-m32r.h: Delete file.
1949 * config/m32r/m32r.mt: New file.
1950 * m32r-rom.c (m32r_upload_command): Use hostent only when
1951 gethostname succeeds, in order to avoid a compilation
1952 warning.
1953 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1954 compiler warning.
1955
19f59343
MS
19562003-08-01 Michael Snyder <msnyder@redhat.com>
1957
1958 * sh-tdep.c (sh_frame_align): New gdbarch method.
1959 (sh_gdbarch_init): Set up frame_align method.
1960
4e7d7511
MS
19612003-07-31 Michael Snyder <msnyder@redhat.com>
1962
1963 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1964 which is already covered by the new frames infrastructure.
1965
63022984
AC
19662003-07-31 Andrew Cagney <cagney@redhat.com>
1967
1968 * user-regs.c (struct user_reg): Add "next" link.
1969 (struct user_regs): Replace "user" with "first" and "last" links.
1970 (append_user_reg): Add pre-allocated "reg" parameter.
1971 (builtin_user_regs): Provide initial value for "last".
1972 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1973 (user_regs_init): Allocate memory from the gdbarch obstack.
1974 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1975 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1976 linked list.
1977 (usernum_to_user_reg): New function.
1978 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1979 (value_of_user_reg): Use usernum_to_user_reg.
1980 (user_regs_free): Delete function.
1981 (_initialize_user_regs): Update register_gdbarch_data call.
1982
7cf6e574
DJ
19832003-07-31 Daniel Jacobowitz <drow@mvista.com>
1984
1985 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1986
c48a845b
MS
19872003-07-30 Michael Snyder <msnyder@redhat.com>
1988
4e7d7511 1989 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1990 * infcall.c (call_function_by_hand): Pass struct_addr to
1991 value_being_returned.
1992 * infcmd.c (print_return_value): Pass zero as struct_addr.
1993 * values.c (value_being_returned): If struct_addr is passed,
1994 use it instead of trying to recover it from the inferior.
1995
f0d8db19
KB
19962003-07-30 Kevin Buettner <kevinb@redhat.com>
1997
1998 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1999 the prologue analyzer won't need to attempt to extract the pc
2000 value from the woefully incomplete dummy frame.
2001 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2002 possible. Disable code which modifies the frame.
2003
e5c113a1
AC
20042003-07-28 Andrew Cagney <cagney@redhat.com>
2005
2006 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2007 to level 2.
2008 (annotate_breakpoints_table, annotate_record): Ditto.
2009 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2010 (annotate_field_name_end, annotate_field_value): Ditto.
2011 (annotate_field_end, annotate_frame_source_begin): Ditto.
2012 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2013 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2014 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2015 (annotate_frame_address_end, annotate_frame_address): Ditto.
2016 (annotate_frame_args, annotate_frame_end): Ditto.
2017 (annotate_frame_where, annotate_arg_begin): Ditto.
2018 (annotate_arg_name_end, annotate_arg_value): Ditto.
2019 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2020 (annotate_function_call, annotate_signal_name): Ditto.
2021 (annotate_signal_string, annotate_signal_name_end): Ditto.
2022 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2023 (annotate_value_begin, annotate_value_history_value): Ditto.
2024 (annotate_value_history_end, annotate_value_end): Ditto.
2025 (annotate_display_begin, annotate_display_number_end): Ditto.
2026 (annotate_display_format, annotate_display_expression): Ditto.
2027 (annotate_display_expression_end, annotate_display_value): Ditto.
2028 (annotate_display_end, annotate_array_section_begin): Ditto.
2029 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2030 (annotate_elt, annotate_array_section_end): Ditto.
2031
bb1db049
AC
20322003-07-28 Andrew Cagney <cagney@redhat.com>
2033
2034 * regcache.c (struct regcache_descr): Update comments on
2035 nr_raw_registers.
2036 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2037 sizeof_raw_register_valid_p.
2038 (init_regcache_descr): Set nr_raw_registers and
2039 sizeof_raw_register_valid_p before calling
2040 init_legacy_regcache_descr.
2041
20e6603c
AC
20422003-07-28 Andrew Cagney <cagney@redhat.com>
2043
2044 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2045 MOD NUM_REGS.
2046
db742940
DJ
20472003-07-28 Daniel Jacobowitz <drow@mvista.com>
2048
2049 * thread.c (info_threads_command): Use get_selected_frame ().
2050 Check that there is at least one non-sentinel frame.
2051
ce7f4371
SC
20522003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2053
2054 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2055 (m68hc11_pop_frame): Remove.
2056 (m68hc11_frame_saved_pc): Remove.
2057 (m68hc11_frame_chain): Remove.
2058 (m68hc11_frame_init_saved_regs): Remove.
2059 (m68hc11_init_extra_frame_info): Remove.
2060 (m68hc11_store_struct_return): Remove.
2061 (m68hc11_saved_pc_after_call): Remove.
2062
1ea653ae
SC
20632003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2064
2065 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2066 frame unwind information.
2067 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2068 and adapted for frame unwinding.
2069 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2070 (m68hc11_unwind_pc): New function.
2071 (m68hc11_frame_unwind_cache): New function to analyze frames.
2072 (m68hc11_frame_this_id): New function to create new frame struct.
2073 (m68hc11_frame_prev_register): New function to unwind a register from
2074 the frame.
2075 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2076 (m68hc11_frame_p): New function for the above.
2077 (m68hc11_frame_base_address): New function to return fp of frame.
2078 (m68hc11_frame_args_address): Update for frame.
2079 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2080 (m68hc11_unwind_sp): New function.
2081 (m68hc11_unwind_dummy_id): New function.
2082 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2083 calls.
2084
c8a7f6ac
SC
20852003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2086
2087 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2088 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2089 when we are beyond the current pc.
2090
3dc990bf
SC
20912003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2092
2093 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2094 from m68hc11_push_arguments.
2095 (m68hc11_push_arguments): Remove.
2096 (m68hc11_push_return_address): Remove.
2097 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2098 handlers; remove deprecated_extra_stack_alignment_needed.
2099
222e5d1d
AC
21002003-07-27 Andrew Cagney <cagney@redhat.com>
2101
2102 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2103 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2104 REAL_PC and not the pointer.
2105 * hppa-hpux-tdep.c: Include frame.h
2106
a7e9a47e
AC
21072003-07-27 Andrew Cagney <cagney@redhat.com>
2108
2109 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2110 GDB_MULTI_ACH_PARTIAL.
2111
7e3dd49e
AC
21122003-07-27 Andrew Cagney <cagney@redhat.com>
2113
2114 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2115 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2116 operator at start and not end of line.
2117 (decode_prologue): Ditto.
2118 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2119 frame_unwind_register_unsigned instead of
2120 frame_unwind_unsigned_register.
2121 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2122 read_register.
2123 (m32r_push_dummy_call): Use register_size instead of
2124 REGISTER_RAW_SIZE.
2125 (m32r_frame_sniffer): Replace m32r_frame_p.
2126 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2127 * m32r-rom.c (report_transfer_performance): Delete extern
2128 declaration.
2129 (m32r_load, m32r_upload_command): Use print_transfer_performance
2130 instead of report_transfer_performance.
2131 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2132 / add_show_from_set.
2133
0880807f
AC
21342003-07-26 Andrew Cagney <cagney@redhat.com>
2135
2136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2137 store_return_value and extract_struct_value_address.
2138
64ae9269
DJ
21392003-07-26 Daniel Jacobowitz <drow@mvista.com>
2140
2141 PR c++/1267
2142 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2143 NULL, default to the section containing PC.
2144
e286caf2
SC
21452003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2146
2147 * NEWS: Mention "regs" deprecated for m68hc11 too.
2148
2149 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2150 (m68hc11_print_register): New function to print out one register.
2151 (m68hc11_print_registers_info): New function to print registers.
2152 (show_regs): Deprecate and use the above.
2153 (m68hc11_gdbarch_init): Install the print_registers_info.
2154
705b278b
JJ
21552003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2156
2157 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2158 that we have a SIGTRAP before returning non-zero.
2159
63cd4198
EZ
21602003-07-23 Michal Ludvig <mludvig@suse.cz>
2161 Elena Zannoni <ezannoni@redhat.com>
2162
2163 * linespec.c (decode_line_2): Avoid crash if
2164 find_function_start_sal() returns empty record.
2165
6926787d
AS
21662003-07-23 Andreas Schwab <schwab@suse.de>
2167
2168 * ia64-tdep.c (ia64_print_insn): New function.
2169 (ia64_gdbarch_init): Set print_insn to it.
2170 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2171 deprecated_tm_print_insn_info.
2172
708cc1b6
MS
21732003-07-22 Michael Snyder <msnyder@redhat.com>
2174
2175 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2176 handle 8-bit returns (long long).
2177 (h8300h_extract_return_value): Ditto.
2178 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2179
aebd7893
AC
21802003-07-22 Andrew Cagney <cagney@redhat.com>
2181
2182 * gdbarch.c Include "gdb_obstack.h".
2183 (struct gdbarch): Add an "obstack".
2184 (alloc_gdbarch_data): Allocate the gdbarch data using
2185 GDBARCH_OBSTACK_CALLOC.
2186 (free_gdbarch_data): Delete function.
2187 (gdbarch_obstack_zalloc): New function.
2188 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2189 Assert that the architecture is not initialized.
2190 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2191 vector from the obstack.
2192 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2193 architecture obstack.
2194 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2195 (set_gdbarch_data): Assert that the data is not initialized.
2196 (struct gdbarch_data): Delete member "free".
2197 (register_gdbarch_data): Do not initialize "free".
2198 * gdbarch.h, gdbarch.c: Re-generate.
2199
153721e6
AC
22002003-07-22 Andrew Cagney <cagney@redhat.com>
2201
2202 * configure.in (build_warnings): Add -Wformat-nonliteral.
2203 * configure: Re-generate.
2204
c193f044 22052003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2206
2207 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2208
c3228f12
EZ
22092003-07-22 Elena Zannoni <ezannoni@redhat.com>
2210
2211 * findvar.c (read_var_value): Remove case for thread local storage
2212 variables. It is now entirely handled by the dwarf2 location
2213 expression code.
2214 * printcmd.c (address_info): Ditto.
2215 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2216 enumeration value.
2217 (struct symbol): Remove objfile field, which was used by
2218 LOC_THREAD_LOCAL_STATIC only.
2219 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2220 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2221 usage of objfile pointer.
2222 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2223 thread local variables.
2224 Add include of objfiles.h.
2225 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2226 storage variables.
2227 * Makefile.in (dwarf2loc.o): Update dependencies.
2228
aef9bcd2
AC
22292003-07-22 Andrew Cagney <cagney@redhat.com>
2230
2231 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2232 get_frame_base.
2233 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2234 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2235 (struct value): Add opaque declaration.
2236 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2237
d95a8903
AC
22382003-07-21 Andrew Cagney <cagney@redhat.com>
2239
2240 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2241 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2242
4db73d49
SC
22432003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2244
2245 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2246 regcache_cooked_read_unsigned instead of read_register.
2247 (m68hc11_saved_pc_after_call): Likewise.
2248 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2249 instead of write_register.
2250 (m68hc11_register_type): New function.
2251 (m68hc11_register_virtual_type): Remove.
2252 (m68hc11_store_return_value): Convert to use the regcache.
2253 (m68hc11_extract_struct_value_address): Likewise.
2254 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2255 m68hc11_register_type; undeprecate store_return_value and
2256 extract_struct_value_address.
2257
ef2b8fcd
SC
22582003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2259
2260 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2261 and translate to use regcache.
2262 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2263
625b0b97
AC
22642003-07-18 Andrew Cagney <cagney@redhat.com>
2265
2266 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2267 * gdbarch.h, gdbarch.c: Re-generate.
2268 * i386-tdep.c (i386_gdbarch_init): Do not set
2269 DWARF2_BUILD_FRAME_INFO.
2270 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2271 unconditionally.
2272 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2273 DWARF2_BUILD_FRAME_INFO.
2274
22b0d388
AC
22752003-07-18 Andrew Cagney <cagney@redhat.com>
2276
2277 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2278 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2279
1ce5d6dd
AC
22802003-07-18 Andrew Cagney <cagney@redhat.com>
2281
2282 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2283 frame_unwind_address_in_block, instead of frame_pc_unwind.
2284 (dwarf2_frame_cache): Ditto.
2285
e6e5e94c
AC
22862003-07-18 Andrew Cagney <cagney@redhat.com>
2287
2288 * user-regs.h (struct gdbarch): Declare opaque.
2289 * ui-out.h (struct ui_file): Declare opaque.
2290 * dwarf2-frame.h (struct frame_info): Declare opaque.
2291
5483d879
KW
22922003-07-18 Kris Warkentin <kewarken@qnx.com>
2293
2294 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2295 #include "...".
2296 (procfs_meminfo): Change strerror to safe_strerror.
2297 (procfs_can_run): Remove K&R badness.
2298
278a7cf7
MS
22992003-07-17 Michael Snyder <msnyder@redhat.com>
2300
2301 * remote-sim.c: Comment typo fix.
2302
606e3b82
AC
23032003-07-17 Andrew Cagney <cagney@redhat.com>
2304
2305 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2306 configure.
2307 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2308 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2309 GDB_MULTI_ARCH_PARTIAL.
2310
c43af07c
EZ
23112003-07-17 Elena Zannoni <ezannoni@redhat.com>
2312
2313 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2314 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2315 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2316
3b85b0f1
TR
23172003-07-16 Theodore A. Roth <troth@openavr.org>
2318
2319 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2320 found.
2321 (avr_frame_unwind_cache): Don't unwind FP for main.
2322 Update a comment.
2323 Save the computed prev_sp.
2324 (avr_saved_regs_unwinder): Remove function.
2325 (avr_frame_prev_register): Use PC unwind logic from
2326 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2327
336d1bba
AC
23282003-07-16 Andrew Cagney <cagney@redhat.com>
2329
2330 * frame-base.h (frame_base_p_ftype): Delete definition.
2331 (frame_base_append_predicate): Delete declaration.
2332 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2333 (frame_unwind_append_predicate): Delete declaration.
2334 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2335 (append_predicate): Delete parameter "p".
2336 (frame_unwind_append_predicate): Delete function.
2337 (frame_unwind_append_sniffer): Update call to append_predicate.
2338 (frame_unwind_free): Delete function.
2339 (_initialize_frame_unwind): Pass NULL as "free" to
2340 register_gdbarch_data.
2341 (frame_unwind_init): Append the dummy_frame_sniffer.
2342 (frame_unwind_find_by_frame): Simplify.
2343 * frame-base.c (struct frame_base_table): Delete field "p".
2344 (append_predicate): Delete parameter "p".
2345 (frame_base_append_predicate): Delete function.
2346 (frame_base_append_sniffer): Update call to append_predicate.
2347 (frame_base_free): Delete function.
2348 (frame_base_find_by_frame): Simplify.
2349 (_initialize_frame_base): Pass NULL as "free" to
2350 register_gdbarch_data.
2351 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2352 (x86_64_sigtramp_frame_sniffer): Replace
2353 "x86_64_sigtramp_frame_p".
2354 (x86_64_init_abi): Set the frame unwind sniffers.
2355 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2356 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2357 (m68k_gdbarch_init): Set the frame unwind sniffers.
2358 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2359 "i386_sigtramp_frame_p".
2360 (i386_frame_sniffer): Replace "i386_frame_p".
2361 (i386_gdbarch_init): Set the frame unwind sniffers.
2362 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2363 (avr_gdbarch_init): Set the frame unwind sniffers.
2364 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2365 "alpha_sigtramp_frame_p"
2366 (alpha_heuristic_frame_sniffer): Replace
2367 "alpha_heuristic_frame_p".
2368 (alpha_gdbarch_init): Set the frame unwind sniffers.
2369 (alpha_dwarf2_init_abi): Ditto.
2370 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2371 "alpha_debug_frame_p".
2372 (alpha_mdebug_frame_base_sniffer): Replace
2373 "alpha_mdebug_frame_base_p".
2374 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2375 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2376 (d10v_gdbarch_init): Set the frame unwind sniffer.
2377 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2378 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2379 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2380 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2381 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2382 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2383
48db5a3c
CV
23842003-07-16 Michael Snyder <msnyder@redhat.com>
2385
2386 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2387 should go thru sh_dsp_register_sim_regno, else the dsp regs
2388 will not get the right values.
2389
23902003-07-16 Corinna Vinschen <vinschen@redhat.com>
2391
2392 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2393 deprecated_store_floating by call to store_typed_floating.
2394 (sh_sh4_register_convert_to_raw): Substitute call to
2395 deprecated_extract_floating by call to extract_typed_floating.
2396
23972003-07-16 Corinna Vinschen <vinschen@redhat.com>
2398
2399 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2400
24012003-07-16 Corinna Vinschen <vinschen@redhat.com>
2402
2403 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2404 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2405 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2406 as possible.
2407 (do_pseudo_register): Remove.
2408 (sh_push_dummy_code): New function.
2409 (sh64_store_struct_return): Rename from sh_store_struct_return.
2410 Only called for sh64 now.
2411 (sh_extract_struct_value_address): Regcache'ify.
2412 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2413 and accomodate new tasks.
2414 (sh64_push_return_address): Rename from sh_push_return_address.
2415 Only called for sh64 now.
2416 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2417 Regcache'ify.
2418 (sh3e_sh4_extract_return_value): Regcache'ify.
2419 (sh_default_store_return_value): Ditto.
2420 (sh3e_sh4_store_return_value): Ditto.
2421 (sh_default_register_byte): Remove.
2422 (sh_sh4_register_byte): Remove.
2423 (sh_default_register_raw_size): Remove.
2424 (sh_sh4_register_raw_size): Remove.
2425 (sh_register_virtual_size): Remove.
2426 (sh_sh3e_register_virtual_type): Remove.
2427 (sh_sh3e_register_type): New function.
2428 (sh_sh4_register_virtual_type): Remove.
2429 (sh_sh4_register_type): New function.
2430 (sh_default_register_virtual_type): Remove.
2431 (sh_default_register_type): New function.
2432 (do_fv_register_info): Add parameters to accomodate call from
2433 sh_print_registers_info.
2434 (do_dr_register_info): Ditto.
2435 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2436 Add parameters to accomodate call from sh_print_registers_info.
2437 (sh_do_fp_register): Ditto.
2438 (sh64_do_pseudo_register): Call do_dr_register_info,
2439 do_fv_register_info and sh_do_fp_register with default parameters.
2440 (sh_do_register): Add parameters to accomodate call from
2441 sh_print_registers_info.
2442 (sh_print_register): Ditto.
2443 (sh_print_registers_info): Rename from sh_do_registers_info.
2444 Add parameters to be used as gdbarch_print_registers_info
2445 implementation. Accomodate removed do_pseudo_register function
2446 pointer.
2447 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2448 function pointer. Call sh_print_register with default parameters.
2449 (sh64_do_registers_info): Call sh_print_registers_info instead of
2450 sh_do_registers_info.
2451 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2452 detection of deprecated vs. non-deprecated functionality.
2453 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2454 function pointer assignments by direct function calls.
2455
e8a89fe2
AC
24562003-07-15 Andrew Cagney <cagney@redhat.com>
2457
2458 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2459 (frame_register_unwind, create_new_frame): Ditto.
2460 (legacy_get_prev_frame, get_frame_type): Ditto.
2461 (get_frame_base_address): Use frame_base_find_by_frame.
2462 (get_frame_locals_address): Use frame_base_find_by_frame.
2463 (get_frame_args_address): Use frame_base_find_by_frame.
2464 * frame-base.h (frame_base_sniffer_ftype): Declare.
2465 (frame_base_append_sniffer): Declare.
2466 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2467 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2468 (frame_base_append_sniffer): New function.
2469 (frame_base_append_predicate): Add a NULL sniffer.
2470 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2471 (struct frame_base_table): Add "sniffer".
2472 (frame_base_free): Free the "sniffer" table.
2473 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2474 (frame_unwind_append_sniffer): Declare.
2475 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2476 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2477 (struct frame_unwind_table): Add "sniffer", delete "middle".
2478 (append_predicate): Add "sniffer" parameter, append the sniffer.
2479 (frame_unwind_init): Update append_predicate call.
2480 (frame_unwind_append_sniffer): New function.
2481 (frame_unwind_append_predicate): Update append_predicate call.
2482 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2483
0714963c
AC
24842003-07-15 Andrew Cagney <cagney@redhat.com>
2485
2486 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2487 before code inhibiting repeated unwind attempts. Add to
2488 commentary on that test's problems.
2489 * blockframe.c (inside_main_func): Look for "main" in the minimal
2490 symbol table.
2491 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2492 identical.
2493
d9170e22
AC
24942003-07-15 Andrew Cagney <cagney@redhat.com>
2495
2496 * complaints.c (struct explanation): Define.
2497 (struct complaints): Change type of "explanation" to "struct
2498 explanation".
2499 (symfile_explanations): Convert to a "struct explanation" table.
2500 (vcomplaint): Update.
2501
eba29c8c
ML
25022003-07-15 Michal Ludvig <mludvig@suse.cz>
2503
2504 * x86-64-linux-nat.c (regmap): Removed.
2505 (supply_gregset, fill_gregset): Call
2506 x86_64_linux_(fill,supply)_gregset functions.
2507 * x86-64-linux-tdep.c (USER_*): New defines.
2508 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2509 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2510 New functions.
2511 (fetch_core_registers): Ditto.
2512 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2513 * x86-64-linux-tdep.h: New file.
2514 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2515 and core-regset.o.
2516 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2517
68cc0bfb
MK
25182003-07-13 Mark Kettenis <kettenis@gnu.org>
2519
88a115f7
MK
2520 * x86-64-tdep.c (x86_64_store_return_value): Use
2521 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2522
68cc0bfb
MK
2523 * configure.host: Add x86_64-*-freebsd*.
2524 * configure.tgt: Add x86_64-*-freebsd*.
2525 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2526 * amd64fbsd-nat.c: New file.
2527 * amd64fbsd-tdep.c: New file.
2528 * config/i386/nm-fbsd64.h: New file.
2529 * config/i386/fbsd64.mh: New file.
2530 * config/i386/fbsd64.mt: New file.
2531
138e7be5
MK
25322003-07-11 Mark Kettenis <kettenis@gnu.org>
2533
2534 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2535 `sc_regs_offset' and `sc_fpregs_offset'.
2536 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2537 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2538 (alpha_sigtramp_register_address): Rewrite to use new members of
2539 `struct gdbarch_tdep'.
2540 (alpha_gdbarch_init): Initialize new members of struct
2541 gdbarch_tdep'.
2542 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2543 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2544 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2545 (alphafbsd_pc_in_sigtramp): Implement.
2546 (alphafbsd_sigtramp_offset): New function.
2547 (alphafbsd_sigcontext_addr): New function.
2548 (alphafbsd_init_abi): Initialize signal trampoline related members
2549 of `struct gdbarch_tdep'.
2550 (_initialize_alphafbsd_tdep): Add prototype.
2551
95303a68
TR
25522003-07-11 Theodore A. Roth <troth@openavr.org>
2553
ba292e4c
TR
2554 * Makefile.in (install-only): Quote sed expression when generating
2555 transformed_name.
95303a68 2556
6896c0c7
RH
25572003-07-11 Richard Henderson <rth@redhat.com>
2558
2559 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2560 * dwarf2-frame.c: Include complaints.h.
2561 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2562 variable initialization; return NULL on error.
2563 (decode_frame_entry): New.
2564
8edd5d01
AC
25652003-07-11 Andrew Cagney <cagney@redhat.com>
2566
c4a09524
AC
2567 * frame.h (frame_address_in_block): Delete declaration.
2568 * blockframe.c (frame_address_in_block): Delete function.
2569 (get_frame_block): Use get_frame_address_in_block.
2570 (block_innermost_frame): Ditto.
2571 * stack.c (print_frame, backtrace_command_1): Ditto.
2572
8edd5d01
AC
2573 * frame.h (get_frame_address_in_block): Declare.
2574 (frame_unwind_address_in_block): Declare.
2575 * frame.c (frame_unwind_address_in_block): New function.
2576 (get_frame_address_in_block): New function.
2577
f7968451
AC
25782003-07-10 Andrew Cagney <cagney@redhat.com>
2579
2580 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2581 pre-default. Note: re-generate has no effect.
2582
ae99b398
AC
25832003-07-10 Andrew Cagney <cagney@redhat.com>
2584
2585 * gdbarch.sh: When a variable, but not a function, compare against
2586 0. Fix problem in previous patch.
2587 * gdbarch.c: Re-generate.
2588
956ac328
AC
25892003-07-10 Andrew Cagney <cagney@redhat.com>
2590
2591 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2592 functions against NULL, not 0.
2593 * gdbarch.c: Re-generate.
2594
287c3240
FF
25952003-07-10 Fred Fish <fnf@ninemoons.com>
2596
2597 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2598 null string instead of a null pointer.
2599 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2600
32f63c4b
MS
26012003-07-09 Michael Snyder <msnyder@redhat.com>
2602
2603 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2604
402ecd56
MK
26052003-07-09 Mark Kettenis <kettenis@gnu.org>
2606
2607 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2608 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2609 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2610 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2611 * x86-64-tdep.c: ... from here.
2612
c481dac7
AS
26132003-07-09 Andreas Schwab <schwab@suse.de>
2614
2615 * m68k-tdep.h (enum struct_return): Define.
2616 (struct gdbarch_tdep): Add struct_return.
2617 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2618 bytes are padded to the right, not to the left. Pass struct value
2619 address in register %a1, not on stack.
2620 (m68k_use_struct_convention): New function.
2621 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2622 struct_return in tdep to pcc_struct_return.
2623 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2624 reg_struct_return.
2625
64176fa3
JB
26262003-07-09 Joel Brobecker <brobecker@gnat.com>
2627
2628 * somread.c (som_symfile_offsets): Fix compilation error.
2629
96a4ee76
AC
26302003-07-09 Andrew Cagney <cagney@redhat.com>
2631
2632 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2633 Add comments about the checks.
2634
1517c6d1
AC
26352003-07-08 Andrew Cagney <cagney@redhat.com>
2636
2637 * Makefile.in: Make dependency section headers consistent.
2638 (config_h): Move to $BUILD headers section.
2639 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2640 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2641 (ada-exp.tab.c): Move to YACC/LEX section.
2642 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2643 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2644
dc5dd1eb
KW
26452003-07-08 Kris Warkentin <kewarken@qnx.com>
2646
2647 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2648 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2649 of strerror with safe_strerror, use ISO C function definitions,
2650 and replace instances of sprintf with snprintf.
dc5dd1eb 2651
612dde91
AC
26522003-07-07 Andrew Cagney <cagney@redhat.com>
2653
2654 * frame.c (get_prev_frame): Enable check for identical frames.
2655 Update comments. Update error messages.
2656
492c11d3
JB
26572003-07-07 Joel Brobecker <brobecker@gnat.com>
2658
2659 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2660
376a5a49
JB
26612003-07-07 Joel Brobecker <brobecker@gnat.com>
2662
2663 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2664 sort_symtab_syms, no longer necessary.
2665
22b4a9ad
JB
26662003-07-07 Joel Brobecker <brobecker@gnat.com>
2667
2668 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2669
5bbcb741
JB
26702003-07-07 Joel Brobecker <brobecker@gnat.com>
2671
2672 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2673 (mips_register_byte): Likewise.
2674
c139e7d9
DJ
26752003-07-07 Daniel Jacobowitz <drow@mvista.com>
2676
2677 * Makefile.in (sparc_tdep_h): New.
2678 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2679 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2680 * sparc-linux-nat.c: Include "sparc-tdep.h".
2681 * sparc-nat.c: Likewise.
2682 * sparc-tdep.c: Likewise.
2683 * sparc64nbsd-nat.c: Likewise.
2684 * sparcnbsd-nat.c: Likewise.
2685 * sparcnbsd-tdep.c: Likewise.
2686 * sparc-tdep.h: New file.
2687 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2688 and sparc_npc_regnum.
2689
fd8f87c5
DJ
26902003-07-07 Daniel Jacobowitz <drow@mvista.com>
2691
2692 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2693 (mips_linux_cannot_store_register): List supported instead of
2694 unsupported registers.
2695
13adf674
DJ
26962003-07-07 Daniel Jacobowitz <drow@mvista.com>
2697
2698 * disasm.c (dump_insns): Separate instructions from addresses.
2699
8de307e0
AS
27002003-07-07 Andreas Schwab <schwab@suse.de>
2701
2702 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2703 dependencies.
2704 * m68k-tdep.c (NUM_FREGS): Delete.
2705 (SIG_PC_FP_OFFSET): Delete.
2706 (TARGET_M68K): Delete.
2707 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2708 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2709 P_MOVEL_SP, P_MOVEML_SP): Define.
2710 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2711 P_TRAP): Delete.
2712 (m68k_register_raw_size): Delete.
2713 (m68k_register_virtual_size): Delete.
2714 (m68k_register_type): Renamed from m68k_register_virtual_type and
2715 add gdbarch argument.
2716 (m68k_store_struct_return): Delete.
2717 (m68k_deprecated_extract_return_value): Delete.
2718 (m68k_deprecated_extract_struct_value_address): Delete.
2719 (m68k_frame_chain): Delete.
2720 (m68k_frame_saved_pc): Delete.
2721 (m68k_fix_call_dummy): Delete.
2722 (m68k_push_dummy_frame): Delete.
2723 (m68k_pop_frame): Delete.
2724 (m68k_extract_return_value): New function.
2725 (m68k_store_return_value): Rewrite using regcache.
2726 (m68k_extract_struct_value_address): Rewrite using regcache.
2727 (m68k_push_dummy_call): New function.
2728 (struct m68k_frame_cache): Define.
2729 (m68k_alloc_frame_cache): New function.
2730 (m68k_analyze_frame_setup): New function.
2731 (m68k_analyze_register_saves): New function.
2732 (m68k_analyze_prologue): New function.
2733 (m68k_skip_prologue): Rewrite using above functions.
2734 (m68k_unwind_pc): New function.
2735 (m68k_frame_cache): New function.
2736 (m68k_frame_this_id): New function.
2737 (m68k_frame_prev_register): New function.
2738 (m68k_frame_unwind): New variable.
2739 (m68k_frame_p): New function.
2740 (m68k_sigtramp_frame_cache): New function.
2741 (m68k_sigtramp_frame_this_id): New function.
2742 (m68k_sigtramp_frame_prev_register): New function.
2743 (m68k_sigtramp_frame_unwind): New variable.
2744 (m68k_sigtramp_frame_p): New function.
2745 (m68k_frame_base_address): New function.
2746 (m68k_frame_base): New function.
2747 (m68k_unwind_dummy_id): New function.
2748 (fill_gregset): Use regcache_collect.
2749 (fill_fpregset): Likewise.
2750 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2751 defined.
2752 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2753 deprecated_init_frame_pc, deprecated_store_struct_return,
2754 deprecated_extract_return_value, deprecated_store_return_value,
2755 deprecated_frame_chain, deprecated_frame_saved_pc,
2756 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2757 deprecated_register_virtual_size,
2758 deprecated_max_register_raw_size,
2759 deprecated_max_register_virtual_size,
2760 deprecated_register_virtual_type, deprecated_register_size,
2761 deprecated_register_byte, deprecated_register_bytes,
2762 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2763 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2764 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2765 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2766 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2767 deprecated_push_dummy_frame, deprecated_pop_frame,
2768 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2769 only if SYSCALL_TRAP is defined. Set extract_return_value,
2770 store_return_value, extract_struct_value_address, register_type,
2771 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2772 predicates.
2773 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2774 M68K_MAX_REGISTER_SIZE): Define.
2775 (struct m68k_sigtramp_info): Define.
2776 (struct gdbarch_tdep): Add get_sigtramp_info.
2777 * m68klinux-nat.c (fetch_register): Use register_size instead of
2778 REGISTER_RAW_SIZE. Don't put assignment in if.
2779 (store_register): Likewise.
2780 (fetch_inferior_registers): Likewise.
2781 (store_inferior_registers): Likewise.
2782 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2783 (m68k_linux_frame_saved_pc): Delete.
2784 (m68k_linux_sigcontext_reg_offset,
2785 m68k_linux_ucontext_reg_offset): Define.
2786 (m68k_linux_get_sigtramp_info): New function.
2787 (m68k_linux_extract_return_value): Rewrite using regcache.
2788 (m68k_linux_store_return_value): Likewise.
2789 (m68k_linux_extract_struct_value_address): Likewise.
2790 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2791 Don't set deprecated_frame_saved_pc,
2792 deprecated_extract_return_value, deprecated_store_return_value,
2793 deprecated_extract_struct_value_address. Set
2794 extract_return_value, store_return_value,
2795 extract_struct_value_address.
2796
eb8bc282
AC
27972003-07-07 Andrew Cagney <cagney@redhat.com>
2798
2799 * expprint.c: Include "user-regs.h" instead of "frame.h".
2800 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2801 frame_map_regnum_to_name.
2802 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2803 (frame_map_name_to_regnum): Simplify, call
2804 user_reg_map_name_to_regnum.
2805 (frame_map_regnum_to_name): Simplify, call
2806 user_reg_map_regnum_to_name.
2807 (frame_register_unwind): Update.
2808 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2809 (_initialize_frame_reg): Call user_reg_add_builtin.
2810 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2811 (value_of_register): Use value_of_user_reg.
2812 * eval.c (evaluate_subexp_standard): Update.
2813 * parse.c (write_dollar_variable): Update.
2814 * d10v-tdep.c (d10v_print_registers_info): Update.
2815 * infcmd.c (registers_info): Update.
2816 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2817 (builtin_regs_h): Delete macro.
2818 (user_regs_h): Define.
2819 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2820 (builtin-regs.o): Delete target.
2821 (user-regs.o): Specify dependencies.
2822 (expprint.o): Update dependencies.
2823 (findvar.o): Update dependencies.
2824 (frame.o): Update dependencies.
2825 (std-regs.o): Update dependencies.
2826
9f476a01
CF
28272003-07-06 Christopher Faylor <cgf@redhat.com>
2828
2829 * win32-nat.c (solib_symbols_add): Use one variable for all section
2830 address stuff. Pass variable rather than address of variable to
2831 safe_symbol_file_add.
2832
a731b831
AS
28332003-07-06 Andreas Schwab <schwab@suse.de>
2834
2835 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2836
9f83329d
JB
28372003-07-04 Joel Brobecker <brobecker@gnat.com>
2838
2839 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2840
27e28cc5
KW
28412003-07-04 Kris Warkentin <kewarken@qnx.com>
2842
2843 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2844
28452003-07-04 Kris Warkentin <kewarken@qnx.com>
2846
2847 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2848 * config/i386/nto.mh: New file.
2849 * config/i386/nm-nto.h: New file.
2850 * configure.host: Add i[3456]86-*-nto*.
2851
100f2e98
JB
28522003-07-03 Joel Brobecker <brobecker@gnat.com>
2853
2854 * remote-vx.c (vx_add_symbols): Fix compilation error.
2855
e23457df
AC
28562003-07-03 Andrew Cagney <cagney@redhat.com>
2857
2858 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2859 * gdbarch.h, gdbarch.c: Re-generate.
2860 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2861 (legacy_register_name): Declare.
2862 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2863 (REGISTER_NAME): Define.
2864 * sparc-tdep.c (legacy_register_name): New function.
2865 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2866 (REGISTER_NAME): Define.
2867 (hppa64_register_name): Declare.
2868 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2869 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2870 (hppa64_register_name): New function.
2871 (hppa_register_name): New function.
2872 * arch-utils.c (legacy_register_name): Delete.
2873 * arch-utils.h (legacy_register_name): Delete.
2874
38caaeec
DJ
28752003-07-03 Daniel Jacobowitz <drow@mvista.com>
2876
2877 * cli/cli-interp.c (cli_interpreter_resume): Update the
2878 cli_uiout's stream to gdb_stdout.
2879
dadd712e
AC
28802003-07-03 Andrew Cagney <cagney@redhat.com>
2881
2882 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2883 predicate.
2884 * gdbarch.h, gdbarch.c: Re-generate.
2885 * regcache.c (init_regcache_descr): Use legacy code when either
2886 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2887
c7f1390e
DJ
28882003-07-02 Daniel Jacobowitz <drow@mvista.com>
2889
2890 * NEWS: Move "set logging" entry into GDB 6.0 section.
2891
4bc8c588
JB
28922003-07-02 Jim Blandy <jimb@redhat.com>
2893
a9dd42f1
JB
2894 * s390-tdep.c (struct frame_extra_info): new member:
2895 'stack_bought_valid'.
2896 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2897 initialize fextra_info->stack_bought.
2898 (s390_frameless_function_invocation): Don't trust the value of
2899 fextra_info_ptr->stack_bought unless
2900 fextra_info->stack_bought_valid is set.
2901
4bc8c588
JB
2902 New S390 prologue analyzer.
2903 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2904 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2905 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2906 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2907 compute_x_addr, s390_on_stack, s390_store,
2908 s390_get_signal_frame_info): New functions.
2909 (S390_NUM_SPILL_SLOTS): New macro.
2910 (s390_get_frame_info): Rewritten.
2911 (is_arg_reg): Deleted.
2912
2913 Break out the decoding of S/390 instructions into separate
2914 functions, to make it more legible, and easier to check
2915 against the spec.
2916 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2917 is_rx, is_rxe): New functions.
2918 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2919 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2920 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2921 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2922 enums for opcode values. (Is this an improvement?)
2923
fd13a04a
AC
29242003-07-02 Andrew Cagney <cagney@redhat.com>
2925
2926 * i386-tdep.c: Revert change committed as part of trad-frame code
2927 below.
2928
3f8091c1
DJ
29292003-07-02 Daniel Jacobowitz <drow@mvista.com>
2930
2931 * breakpoint.c (insert_catchpoint): Make static.
2932
8dd5115e
AS
29332003-07-02 Andreas Schwab <schwab@suse.de>
2934
2935 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2936 former ia64_push_arguments and ia64_push_return_address, and use
2937 regcache functions instead of read/write_register.
2938 (ia64_gdbarch_init): Set push_dummy_call instead of
2939 deprecated_push_arguments and deprecated_push_return_address.
2940
a2229c23
AJ
29412003-07-01 Andreas Jaeger <aj@suse.de>
2942
2943 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2944 before the call.
2945 Set %rax only to number of SSE registers used.
2946
3b3850e8
AC
29472003-07-01 Andrew Cagney <cagney@redhat.com>
2948
2949 * trad-frame.h: Update comments, a -1 .addr is reserved.
2950 (trad_frame_value_p, trad_frame_addr_p): Declare.
2951 (trad_frame_reg_p): Declare.
2952 (trad_frame_set_value): Rename trad_frame_register_value.
2953 (trad_frame_set_unknown): Declare.
2954 * trad-frame.c (trad_frame_realreg_p): New function.
2955 (trad_frame_addr_p, trad_frame_value_p): New function.
2956 (trad_frame_set_unknown): New function.
2957 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2958 (trad_frame_prev_register): Use trad_frame_realreg_p,
2959 trad_frame_addr_p and trad_frame_value_p.
2960 (trad_frame_set_value): Rename trad_frame_register_value.
2961 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2962 and trad_frame_set_value.
a2229c23 2963
4d819d0e
JB
29642003-06-30 Jim Blandy <jimb@redhat.com>
2965
2966 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2967 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2968 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2969 for 16 registers, and then 32 more bytes.
2970 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2971 New macros.
2972 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2973 Move up in the file, since it's now used by is_simple_arg.
2974 (is_simple_arg): Don't assume registers are four bytes long.
2975 Exclude all double arguments. Extended floats are not simple
2976 args.
2977 (is_power_of_two): New function.
2978 (pass_by_copy_ref): Call is_power_of_two, and check that the
2979 length fits in a register, rather than listing all the acceptable
2980 sizes. Extended floats are not passed by reference.
2981 (s390_push_arguments): Don't assume registers are four bytes long.
2982 Reserve an argument register to point to the buffer for structures
2983 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2984 S390_STACK_FRAME_OVERHEAD.
2985
1ad828f1
AS
29862003-06-30 Andreas Schwab <schwab@suse.de>
2987
2988 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2989 format error message.
2990
39b00981
JB
29912003-06-30 Joel Brobecker <brobecker@gnat.com>
2992
2993 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2994
b2a7f303
DC
29952003-06-30 David Carlton <carlton@kealia.com>
2996
2997 Band-aid for PR c++/1245.
2998 * Makefile.in (cp-support.o): Depend on complaints_h.
2999 * cp-support.c: Include complaints.h. Add declaration for
3000 find_last_component.
3001 (cp_find_first_component): Separate code into
3002 cp_find_first_component_aux.
3003 (cp_find_first_component_aux): Call demangled_name_complaint.
3004 (demangled_name_complaint): New.
3005
a257b5bb
AC
30062003-06-30 Andrew Cagney <cagney@redhat.com>
3007
3008 * remote.c (remote_write_bytes): Explicitly compute and then use
3009 the payload size. Update comments to reflect. Fixes problem of
3010 GDB not sending small packets as found by Fred Fish.
3011
0a2cfde4
AC
30122003-06-30 Andrew Cagney <cagney@redhat.com>
3013
3014 * remote.c (remote_async_wait): Fix -Wformat problem.
3015
3fcb8548
AC
30162003-06-29 Andrew Cagney <cagney@redhat.com>
3017
3018 * remote.c (remote_wait): Call error, and not warning, when the
3019 packet is corrupt.
3020 (remote_async_wait): Ditto.
3021
9f9970a3
DJ
30222003-06-29 Daniel Jacobowitz <drow@mvista.com>
3023
3024 * sparc-tdep.c (sparc_y_regnum): Make external again.
3025
83a8ccca
DJ
30262003-06-29 Daniel Jacobowitz <drow@mvista.com>
3027
3028 * cli/cli-logging.c (pop_output_files): Add void to function
3029 definition.
3030
d2cf594a
AC
30312003-06-29 Andrew Cagney <cagney@redhat.com>
3032
3033 * frame.c (frame_register_unwind): Use unsigned char when dumping
3034 the buffer contents.
3035
0fac0b41
DJ
30362003-06-28 Daniel Jacobowitz <drow@mvista.com>
3037
3038 * cli/cli-logging.c: New file.
3039 * cli-out.c (struct ui_out_data): Add original_stream.
3040 (cli_redirect): New function.
3041 (cli_ui_out_impl): Add cli_redirect.
3042 (cli_out_new): Initialize original_stream.
3043 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3044 (uo_redirect, ui_out_redirect): New.
3045 * ui-out.h (struct ui_out_impl): Add redirect member.
3046 (redirect_ftype): New.
3047 (ui_out_redirect): Add prototype.
3048 * Makefile.in: Add rules for cli-logging.c.
3049 * NEWS: Mention "set logging".
3050
88a07d7c
EZ
30512003-06-27 Elena Zannoni <ezannoni@redhat.com>
3052
3053 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3054
4eb58876
AC
30552003-06-27 Andrew Cagney <cagney@redhat.com>
3056
3057 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3058 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3059 * avr-tdep.c (avr_call_dummy_address): Delete function.
3060 (avr_gdbarch_init): Do not set call_dummy_address.
3061
1549f619
EZ
30622003-06-27 Elena Zannoni <ezannoni@redhat.com>
3063
3064 * symfile.c (syms_from_objfile): Move variables to inner block.
3065 Move the checks for the non-mainline case a bit earlier to avoid
3066 doing some useless computations.
3067
3cb3398d
EZ
30682003-06-27 Elena Zannoni <ezannoni@redhat.com>
3069
3070 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3071
3799ccc6
EZ
30722003-06-26 Elena Zannoni <ezannoni@redhat.com>
3073
3074 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3075 sections.
3076
ce1f6491
MC
30772003-06-26 Michael Chastain <mec@shout.net>
3078
3079 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3080 gdb/testsuite/gdb.c++/pr-1210.exp.
3081
d958dfd0
AC
30822003-06-26 Andrew Cagney <cagney@redhat.com>
3083
3084 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3085 altivec_expression.h and altivec_registers.h.
3086
d31431ed
AC
30872003-06-26 Andrew Cagney <cagney@redhat.com>
3088
3089 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3090 info->mach when MIPS16. Patch suggested by Fred Fish.
3091
714b1282
AC
30922003-06-26 Andrew Cagney <cagney@redhat.com>
3093
3094 * utils.c (internal_vproblem): Print the problem to a reason
3095 buffer and then pass to query. Make the msg variable more local.
3096
42efa47a
AC
30972003-06-26 Andrew Cagney <cagney@redhat.com>
3098
3099 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3100 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3101 * gdbarch.h, gdbarch.c: Re-generate.
3102 * frame-base.c (default_frame_args_address): Update. Use
3103 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3104 not available.
3105 (default_frame_locals_address): Ditto for
3106 DEPRECATED_FRAME_LOCALS_ADDRESS.
3107 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3108 (vax_frame_num_args): Update.
3109 (vax_gdbarch_init): Update.
3110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3111 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3112 * mcore-tdep.c (mcore_gdbarch_init): Update.
3113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3114 * ia64-tdep.c (ia64_gdbarch_init): Update.
3115 * symtab.h (address_class): Update comments.
3116 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3117 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3118 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3119 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3120 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3121 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3122 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3123 * alpha-mdebug-tdep.c: Update.
3124 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3125
8ffd9b1b
AJ
31262003-06-26 Andreas Jaeger <aj@suse.de>
3127
3128 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3129 of SSE registers so that varargs functions work. Rework handling
3130 of passing arguments on the stack.
3131 (x86_64_store_return_value): Return double and float values in SSE
3132 register.
3133
e8ac10a6
MC
31342003-06-24 Michael Chastain <mec@shout.net>
3135
3136 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3137 the "constructor breakpoints ignored" bug.
3138
986af8e6
DC
31392003-06-25 David Carlton <carlton@kealia.com>
3140
3141 * MAINTAINERS: Update e-mail address.
3142
d64558a5
JB
31432003-06-24 Jim Blandy <jimb@redhat.com>
3144
e538d2d7
JB
3145 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3146
02631ec0
JB
3147 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3148 function.
3149 (ppc_linux_init_abi): Register it as the
3150 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3151
e716d87a
JB
3152 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3153 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3154 method.
3155
d64558a5
JB
3156 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3157 (ppc64_standard_linkage_target): Use it.
3158
449a5da4
AC
31592003-06-23 Andrew Cagney <cagney@redhat.com>
3160
3161 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3162 for 0 "int0" and 4 "int32" sized registers.
3163 * gdbtypes.c (builtin_type_int0): Define.
3164 (build_gdbtypes): Initialize builtin_type_int0.
3165 * gdbtypes.h (builtin_type_int0): Declare.
3166
b2a02dda
SC
31672003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3168
3169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3170 as characters are unsigned.
3171
fba3138e
DJ
31722003-06-22 Daniel Jacobowitz <drow@mvista.com>
3173
3174 PR gdb/1179
3175 * dwarfread.c (struct_type): Skip static fields without crashing.
3176
f6c8180b
AC
31772003-06-22 Andrew Cagney <cagney@redhat.com>
3178
3179 GDB 6.0 branch created.
f2c06f52
AC
3180 * README: Update.
3181 * PROBLEMS: Update. Empty.
3182 * NEWS: Update.
f6c8180b 3183
ae822768
DJ
31842003-06-22 Daniel Jacobowitz <drow@mvista.com>
3185
3186 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3187 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3188
261de166
AC
31892003-06-22 Andrew Cagney <cagney@redhat.com>
3190
3191 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3192 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3193 Velikov.
3194
30e94205
DJ
31952003-06-22 Daniel Jacobowitz <drow@mvista.com>
3196
3197 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3198 compilers.
3199
9e14d721
DJ
32002003-06-21 Daniel Jacobowitz <drow@mvista.com>
3201
3202 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3203 argument of val_print.
3204 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3205 to the address argument of baseclass_offset or target_read_memory.
3206 Do add it to the argument of cp_print_value_fields.
3207
a4b8ebc8
AC
32082003-06-21 Andrew Cagney <cagney@redhat.com>
3209
3210 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3211 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3212 instead of 0..NUM_REGS.
3213 (mips_register_reggroup_p): New function.
3214 (mips_pseudo_register_write): New function.
3215 (mips_pseudo_register_read): New function.
3216 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3217 based on the register's type.
3218 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3219 cooked.
3220 (mips_get_saved_register): Simplify. Assert that REGNO is a
3221 pseudo / cooked.
3222 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3223 (mips_register_type): Replace mips_register_virtual_type. Map
3224 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3225 when available.
3226 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3227 that the register is cooked / virtual.
3228 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3229 Only get the extra info when needed.
3230 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3231 (mips32_heuristic_proc_desc): Fetch the cooked register.
3232 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3233 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3234 (mips_print_register): Use gdbarch_register_type, instead of
3235 REGISTER_VIRTUAL_TYPE.
3236 (print_gp_register_row): Use gdbarch_register_type, instead of
3237 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3238 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3239 Print the pseudo / cooked registers.
3240 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3241 Print the pseudo / cooked registers.
3242 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3243 REG_NUM is pseudo / cooked.
3244 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3245 (mips_n32n64_xfer_return_value): Ditto.
3246 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3247 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3248 (mips_register_sim_regno): New function.
3249 (mips_gdbarch_init): Set deprecated_register_byte,
3250 register_group_p, pseudo_register_write, pseudo_register_read,
3251 register_sim_regno, and num_pseudo_regs. Set register_type,
3252 instead of register_virtual_type.
3253 * Makefile.in (mips-tdep.o): Update dependencies.
3254 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3255 REGISTER_VIRTUAL_TYPE.
3256 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3257 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3258 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3259 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3260 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3261
325ed089
DJ
32622003-06-21 Daniel Jacobowitz <drow@mvista.com>
3263
3264 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3265 * cli/cli-cmds.c: Include "gdb_vfork.h".
3266 (shell_escape): Use vfork.
3267
f0e7d0e8
AC
32682003-06-21 Andrew Cagney <cagney@redhat.com>
3269
c57bb9fa
AC
3270 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3271 32 bit floating-point register saves.
3272
6e51443a
AC
3273 * frame.h (deprecated_unwind_get_saved_register): Delete.
3274 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3275 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3276 and deprecated_get_next_frame_hack instead of
3277 deprecated_unwind_get_saved_register.
3278
ed183c7c
AC
3279 * mips-tdep.c (mips_dump_tdep): Do not print
3280 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3281
f0e7d0e8
AC
3282 * frame.c (get_frame_register): New function.
3283 (frame_unwind_register_signed): New function.
3284 (get_frame_register_signed): New function.
3285 (frame_unwind_register_unsigned): New function.
3286 (get_frame_register_unsigned): New function.
3287 * frame.h: Add comments on naming schema.
3288 (get_frame_register, frame_unwind_register_signed): Declare.
3289 (get_frame_register_signed, get_frame_register_signed): Declare.
3290 (frame_unwind_register_unsigned): Declare.
3291 (get_frame_register_unsigned): Declare.
3292
2224d941
TR
32932003-06-20 Theodore A. Roth <troth@openavr.org>
3294
3295 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3296
8619218d
TR
32972003-06-20 Theodore A. Roth <troth@openavr.org>
3298
3299 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3300 (avr_read_sp): Ditto.
3301
0b1b50c0
DJ
33022003-06-20 Daniel Jacobowitz <drow@mvista.com>
3303
3304 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3305 * config/arm/nm-linux.h: Likewise.
3306 * config/arm/tm-linux.h: Likewise.
3307 * config/ia64/nm-linux.h: Likewise.
3308 * config/ia64/tm-ia64.h: Likewise.
3309 * config/s390/tm-linux.h: Likewise.
3310 * config/s390/tm-s390.h: Likewise.
3311 * s390-nat.c: Likewise.
3312 * s390-tdep.c: Likewise.
3313
3314 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3315 * config/ia64/linux.mt: Likewise.
3316 * config/m68k/linux.mh: Likewise.
3317 * config/mips/linux.mt: Likewise.
3318 * config/powerpc/linux.mh: Likewise.
3319 * config/sh/linux.mt: Likewise.
3320
c8c18e65
KW
33212003-06-19 Kris Warkentin <kewarken@qnx.com>
3322
3323 * solib.c (solib_open): Change tests for whether to search
3324 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3325 comments.
3326
dcccef2e
TR
33272003-06-19 Theodore A. Roth <troth@openavr.org>
3328
3329 * avr-tdep.c (avr_frame_address): Delete function.
3330 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3331 set_gdbarch_frame_args_address.
3332
5861a190
AC
33332003-06-19 Andrew Cagney <cagney@redhat.com>
3334
3335 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3336 (REGISTER_CONVERT_FROM_TYPE): Delete.
3337 (mips_register_convert_to_type): Delete declaration.
3338 (mips_register_convert_from_type): Delete declaration.
3339 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3340 kernel/.
3341
0274a8ce
MS
33422003-06-19 Michael Snyder <msnyder@redhat.com>
3343
3344 * linux-nat.h: New file.
3345 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3346 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3347 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3348 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3349 (linux_make_note_section): Iterate over lwps instead of threads.
3350 (linux_do_thread_registers): Use lwp instead of merged pid.
3351 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3352 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3353 Add dependency on linux_nat_h.
3354
adf5f719
TR
33552003-06-19 Theodore A. Roth <troth@openavr.org>
3356
3357 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3358
6766a268
DJ
33592003-06-19 Daniel Jacobowitz <drow@mvista.com>
3360
3361 * varobj.c (get_type, get_target_type): Use check_typedef.
3362
1171114a
DJ
33632003-06-19 Daniel Jacobowitz <drow@mvista.com>
3364
3365 * breakpoint.c (insert_catchpoint): Call internal_error.
3366
adcf68a2
TR
33672003-06-19 Theodore A. Roth <troth@openavr.org>
3368
3369 * avr-tdep.c (avr_push_dummy_code): Delete function.
3370 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3371
ea67f13b
DJ
33722003-06-19 Daniel Jacobowitz <drow@mvista.com>
3373
3374 * arch-utils.c (default_prepare_to_proceed): Remove.
3375 (generic_prepare_to_proceed): Remove.
3376 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3377 (generic_prepare_to_proceed): Remove prototype.
3378 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3379 * gdbarch.c: Regenerate.
3380 * gdbarch.h: Regenerate.
3381 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3382 * hppah-nat.c (hppa_switched_threads): Remove.
3383 * infrun.c (prepare_to_proceed): New static function, copied from
3384 generic_prepare_to_proceed. Remove select_it argument.
3385 (proceed): Call prepare_to_proceed.
3386 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3387 variables.
3388 (ptrace_wait): Don't set the removed variables.
3389 (hppa_switched_threads): Remove.
3390 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3391 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3392 (lin_lwp_prepare_to_proceed): Remove prototype.
3393 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3394 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3395
4add8633
TR
33962003-06-18 Theodore A. Roth <troth@openavr.org>
3397
3398 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3399 trad-frame.h.
3400 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3401 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3402 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3403 (AVR_PROLOGUE_*): Enumerate prologue types.
3404 (struct frame_extra_info): Remove.
3405 (struct avr_unwind_cache): Define.
3406 (avr_write_sp): Delete function.
3407 (avr_read_fp): Ditto.
3408 (avr_init_extra_frame_info): Ditto.
3409 (avr_pop_frame): Ditto.
3410 (avr_frame_saved_pc): Ditto.
3411 (avr_saved_pc_after_call): Ditto.
3412 (avr_push_return_address): Ditto.
3413 (avr_frame_chain): Ditto.
3414 (avr_store_struct_return): Ditto.
3415 (avr_push_arguments): Ditto.
3416 (avr_scan_prologue): Update comments. Changed to set up the info for
3417 cache unwinding. Now returns end of prologue PC.
3418 (avr_skip_prologue): Better handling of functions lacking a prologue
3419 by using avr_scan_prologue.
3420 (avr_scan_arg_moves): New function.
3421 (avr_saved_regs_unwinder): Ditto.
3422 (avr_frame_unwind_cache): Ditto.
3423 (avr_unwind_pc): Ditto.
3424 (avr_frame_this_id): Ditto.
3425 (avr_frame_prev_register): Ditto.
3426 (avr_frame_p): Ditto.
3427 (avr_frame_base_address ): Ditto.
3428 (avr_unwind_dummy_id): Ditto.
3429 (avr_push_dummy_code): Ditto.
3430 (push_stack_item): Ditto.
3431 (pop_stack_item): Ditto.
3432 (avr_push_dummy_call): Ditto.
3433 (struct stack_item): Define.
3434 (avr_frame_unwind): Declare structure.
3435 (avr_frame_base): Ditto.
3436 (avr_gdbarch_init): Remove calls to
3437 set_gdbarch_deprecated_init_frame_pc,
3438 set_gdbarch_deprecated_target_read_fp,
3439 set_gdbarch_deprecated_dummy_write_sp,
3440 set_gdbarch_deprecated_fp_regnum,
3441 set_gdbarch_deprecated_push_arguments,
3442 set_gdbarch_deprecated_push_return_address,
3443 set_gdbarch_deprecated_pop_frame,
3444 set_gdbarch_deprecated_store_struct_return,
3445 set_gdbarch_deprecated_frame_init_saved_regs,
3446 set_gdbarch_deprecated_init_extra_frame_info,
3447 set_gdbarch_deprecated_frame_chain,
3448 set_gdbarch_deprecated_frame_saved_pc,
3449 set_gdbarch_deprecated_saved_pc_after_call.
3450 Add calls to set_gdbarch_push_dummy_call,
3451 set_gdbarch_push_dummy_code,
3452 frame_unwind_append_predicate,
3453 frame_base_set_default,
3454 set_gdbarch_unwind_dummy_id,
3455 set_gdbarch_unwind_pc.
3456 Wrap a long line.
3457
7be04a68
MS
34582003-06-18 Corinna Vinschen <vinschen@redhat.com>
3459
3460 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3461 registers for H8/300S.
3462 (h8300_print_registers_info): Ditto.
8ffd9b1b 3463 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3464
ae087d01
DJ
34652003-06-18 Daniel Jacobowitz <drow@mvista.com>
3466
3467 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3468 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3469 (lin_lwp_wait): Likewise. Update comments.
3470 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3471 (pull_pid_from_list, linux_record_stopped_pid): New.
3472
07d8f827
SC
34732003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3474
3475 * ada-lang.c (scan_discrim_bound): Name first argument.
3476 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3477 declared by ALL_BLOCK_SYMBOLS.
3478
7cb47b14
SC
34792003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3480
3481 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3482 ("regcache.h"): Include it.
3483 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3484
6ad8ae5c
DJ
34852003-06-17 Daniel Jacobowitz <drow@mvista.com>
3486
3487 * NEWS: Mention gdbserver detach change and "disconnect" command.
3488 * infcmd.c (disconnect_command): New function.
3489 (_initialize_infcmd): Add ``disconnect'' command.
3490 * remote.c (remote_async_detach): Delete.
3491 (remote_detach): Merge remote_async_detach.
3492 (remote_disconnect): New.
3493 (init_remote_ops): Set to_disconnect.
3494 (init_remote_cisco_ops): Likewise.
3495 (init_remote_async_ops): Likewise. Use remote_detach.
3496 * target.c (cleanup_target): Default to_disconnect.
3497 (update_current_target): Inherit to_disconnect.
3498 (target_disconnect, debug_to_disconnect): New functions.
3499 (setup_target_debug): Set to_disconnect.
3500 * target.h (struct target_ops): Add to_disconnect.
3501 (target_disconnect): Add prototype.
3502
687595f9
DJ
35032003-06-17 Daniel Jacobowitz <drow@mvista.com>
3504
3505 * breakpoint.c (insert_catchpoint): New function.
3506 (insert_breakpoints): Use catch_exceptions to call
3507 insert_catchpoint. Disable catchpoints if they fail to insert.
3508
29239a8f
DJ
35092003-06-17 Daniel Jacobowitz <drow@mvista.com>
3510
3511 * symfile.c (reread_symbols): Clear sym_private.
3512
2cdf3c63
AC
35132003-06-17 Andrew Cagney <cagney@redhat.com>
3514
3515 * trad-frame.h (struct frame_info): Add opaque declaration.
3516 * remote-fileio.h (struct cmd_list_element): Add opaque
3517 declaration.
3518 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3519 comments.
3520
cf0e1e0d
DJ
35212003-06-17 Daniel Jacobowitz <drow@mvista.com>
3522
3523 * remote.c (remote_prepare_to_store): Replace call to
3524 deprecated_read_register_bytes with multiple regcache_raw_read
3525 calls.
3526
192cdb19
KW
35272003-06-17 Kris Warkentin <kewarken@qnx.com>
3528
3529 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3530 (nto_find_and_open_solib): Likewise.
3531 (nto_init_solib_absolute_prefix): Likewise.
3532 (_initialize_nto_tdep): Fix indentation.
3533
89929b45
KW
35342003-06-17 Kris Warkentin <kewarken@qnx.com>
3535
3536 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3537
46019f27
KW
35382003-06-17 Kris Warkentin <kewarken@qnx.com>
3539
3540 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3541
1a38736e
JB
35422003-06-17 Jim Blandy <jimb@redhat.com>
3543
3544 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3545
3605c34a
TR
35462003-06-16 Theodore A. Roth <troth@openavr.org>
3547
3548 * avr-tdep.c (avr_extract_return_value): New function.
3549 (avr_gdbarch_init): Set extract_return_value method.
3550
870b3035
AC
35512003-06-16 Andrew Cagney <cagney@redhat.com>
3552
3553 * frame.h (deprecated_get_next_frame_hack): Declare.
3554 * frame.c (legacy_saved_regs_prev_register): Only require
3555 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3556 there are always saved regs.
3557 (deprecated_generic_get_saved_register): Do not require
3558 DEPRECATED_FRAME_INIT_SAVED_REGS.
3559 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3560 use frame ID unwind instead.
3561 (deprecated_get_next_frame_hack): New function.
3562
63d47a7d
CV
35632003-06-16 Corinna Vinschen <vinschen@redhat.com>
3564
3565 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3566 (h8300_push_dummy_call): ...this function. Some minor optimization.
3567 (h8300_push_return_address): Remove.
3568 (h8300_gdbarch_init): Remove calls to
3569 set_gdbarch_deprecated_dummy_write_sp,
3570 set_gdbarch_deprecated_push_arguments and
3571 set_gdbarch_deprecated_push_return_address.
3572 Add call to set_gdbarch_push_dummy_call.
3573
4bb1dc5e
CV
35742003-06-16 Corinna Vinschen <vinschen@redhat.com>
3575
3576 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3577 (E_PSEUDO_EXR_REGNUM): Ditto.
3578 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3579 registers into safe registers.
4bb1dc5e
CV
3580 (h8300_skip_prologue): Check for stm instruction to push registers
3581 used for register variables onto stack.
3582 (gdb_print_insn_h8300): Remove.
3583 (h8300_examine_prologue): Add a comment.
3584 (h8300_register_name): Take pseudo registers into account.
3585 (h8300s_register_name): Ditto.
3586 (h8300sx_register_name): Ditto.
3587 (h8300_print_register): Ditto.
3588 (h8300_print_registers_info): Define "nice" printing order.
3589 (h8300_saved_pc_after_call): Take pseudo registers into account.
3590 (h8300_register_type): Ditto. Return type used for remote connection
3591 when requesting real CCR or EXR register, return actual type when
3592 requesting pseudo CCR or EXR.
3593 (h8300_pseudo_register_read): New function.
3594 (h8300_pseudo_register_write): Ditto.
3595 (h8300_dbg_reg_to_regnum): Ditto.
3596 (h8300s_dbg_reg_to_regnum): Ditto.
3597 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3598 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3599 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3600 set_gdbarch_print_insn architecture dependent.
3601 Call set_gdbarch_pseudo_register_read and
3602 set_gdbarch_pseudo_register_write.
3603 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3604
a59fe496
AC
36052003-06-16 Andrew Cagney <cagney@redhat.com>
3606
3607 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3608 * gdbarch.h, gdbarch.c: Re-generate.
3609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3610 * s390-tdep.c (s390_gdbarch_init): Update.
3611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3612 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3613 * mips-tdep.c (mips_gdbarch_init): Update.
3614 * mcore-tdep.c (mcore_gdbarch_init): Update.
3615 * cris-tdep.c (cris_gdbarch_init): Update.
3616 * infcall.c (call_function_by_hand): Update.
3617 * ia64-tdep.c (ia64_push_arguments): Update comment.
3618 * frame.c (legacy_get_prev_frame): Do not assume
3619 SAVE_DUMMY_FRAME_TOS_P.
3620 * dummy-frame.c (find_dummy_frame): Update comment.
3621
6f4e5a41
AC
36222003-06-16 Andrew Cagney <cagney@redhat.com>
3623
3624 * regcache.c (do_cooked_read): Do not use register_valid_p.
3625
72fab697
TR
36262003-06-15 Theodore A. Roth <troth@openavr.org>
3627
3628 * avr-tdep.c (avr_register_type): Remove a blank line.
3629 (avr_scan_prologue): Correct some comments.
3630
e3d8b004
TR
36312003-06-15 Theodore A. Roth <troth@openavr.org>
3632
3633 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3634 prologue types.
8ffd9b1b 3635 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3636 option.
3637 Add code to scan -mcall-prologues for mega devices.
3638
866b76ea
TR
36392003-06-15 Theodore A. Roth <troth@openavr.org>
3640
3641 * avr-tdep.c (avr_register_byte): Delete function.
3642 (avr_register_raw_size): Delete function.
3643 (avr_register_virtual_size): Delete function.
3644 (avr_register_virtual_type): Delete function.
3645 (avr_register_type): New function.
3646 (avr_address_to_pointer): Remove unused code.
3647 (avr_read_fp): Need to read FP as two separate bytes due to change to
3648 avr_register_type() usage.
3649 (avr_gdbarch_init): Don't set deprecated_register_size.
3650 Don't set deprecated_register_bytes.
3651 Don't set deprecated_register_byte.
3652 Don't set deprecated_register_raw_size.
3653 Don't set deprecated_max_register_raw_size.
3654 Don't set deprecated_register_virtual_size.
3655 Don't set deprecated_max_register_virtual_size.
3656 Don't set deprecated_register_virtual_type.
3657 Set register_type method.
3658
3993f6b1
DJ
36592003-06-15 Daniel Jacobowitz <drow@mvista.com>
3660
3661 * Makefile.in (linux-nat.o): Add rule.
3662 * linux-nat.c: New file.
3663 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3664 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3665 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3666 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3667 * config/arm/linux.mh (NATDEPFILES): Likewise.
3668 * config/i386/linux.mh (NATDEPFILES): Likewise.
3669 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3670 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3671 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3672 * config/mips/linux.mh (NATDEPFILES): Likewise.
3673 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3674 * config/s390/s390.mh (NATDEPFILES): Likewise.
3675 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3676
786a90bb
MK
36772003-06-15 Mark Kettenis <kettenis@gnu.org>
3678
3679 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3680 replace out-of-date comment.
3681
3bd3f01e
AC
36822003-06-15 Andrew Cagney <cagney@redhat.com>
3683
3684 * rdi-share/host.h (Fail): Change to a varargs function.
3685 * remote-rdi.c (Fail): Update.
8ffd9b1b 3686
de5b9bb9
MK
36872003-06-15 Mark Kettenis <kettenis@gnu.org>
3688
3689 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3690 (i386_convert_register_p, i386_register_to_value,
3691 i386_register_from_value): Handle types longer than 8 bytes.
3692
d532c08f
MK
36932003-06-15 Mark Kettenis <kettenis@gnu.org>
3694
3695 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3696 Move floating-point code to new function in i387-tdep.c.
3697 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3698 New functions containing code moved here from i386-tdep.c.
3699 * i387-tdep.h: Add opaque declaration for `struct type'.
3700 (i387_register_to_value, i387_value_to_register): New prototypes.
3701 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3702 (x86_64_init_abi): Set convert_register_p, register_to_value and
3703 value_to_register here.
8ffd9b1b 3704
42c466d7
AC
37052003-06-14 Andrew Cagney <cagney@redhat.com>
3706
3707 * mips-tdep.c (mips_register_to_value): Make static.
3708 (mips_value_to_register): Make static.
3709 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3710 * ia64-tdep.c (ia64_register_raw_size): Make static.
3711 (ia64_register_virtual_size): Make static.
3712 (ia64_register_byte): Make static.
3713 * i387-tdep.c: Include "i387-tdep.h".
3714 (print_387_control_word): Delete function.
3715 (print_387_status_word): Delete function.
3716 (print_387_status_bits): Delete function.
3717 (print_387_control_bits): Delete function.
3718 * Makefile.in (i387-tdep.o): Update dependencies.
3719 * rdi-share/host.h (Fail): Declare.
3720 * remote-rdi.c (Fail): Update to match declaration.
3721
2a9cda49
AC
37222003-06-14 Andrew Cagney <cagney@redhat.com>
3723
3724 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3725 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3726 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3727 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3728 * README: Delete reference to remote-array.
3729 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3730 (remote-array.o): Delete target.
3731 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3732 * remote-array.c: Delete file.
3733
ff2e87ac
AC
37342003-06-14 Andrew Cagney <cagney@redhat.com>
3735 Mark Kettenis <kettenis@gnu.org>
3736
3737 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3738 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3739 parameter with "frame".
3740 * gdbarch.h, gdbarch.c: Re-generate.
3741 * frame.h (put_frame_register): Declare.
3742 * frame.c (put_frame_register): New function.
3743 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3744 (legacy_register_to_value): Rewrite, use "frame" to get the
3745 register value.
3746 (legacy_value_to_register): Rewrite, use "frame" to find the
3747 register's location before storing.
3748 * arch-utils.h (legacy_convert_register_p): Update.
3749 (legacy_register_to_value, legacy_value_to_register): Update.
3750 * findvar.c (value_from_register): Rewrite, eliminate use of
3751 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3752 "frame" to REGISTER_TO_VALUE.
3753 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3754 lval_reg_frame_relative + lval_register branch of the switch. Do
3755 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3756 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3757 I386_EDI_REGNUM): New defines.
3758 (i386_next_regnum, i386_convert_register_p,
3759 i386_register_to_value, i386_value_to_register): New functions.
3760 (i386_register_convertible, i386_register_convert_to_virtual,
3761 i386_convert_to_raw): Remove functions.
3762 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3763 value_to_register instead of register_convertible,
3764 register_convert_to_virtual and register_convert_to_raw.
3765 * mips-tdep.c (mips_convert_register_p): New function.
3766 (mips_value_to_register): Replace mips_register_convert_from_type.
3767 (mips_register_to_value): Replace mips_register_convert_to_type.
3768 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3769 register_to_value.
3770 * alpha-tdep.c (alpha_convert_register_p): Update.
3771 (alpha_value_to_register): Update, store the register.
3772 (alpha_register_to_value): Update, fetch the register.
3773
98be1e77
TR
37742003-06-14 Theodore A. Roth <troth@openavr.org>
3775
3776 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3777 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3778 Don't set deprecated_call_dummy_words.
3779 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3780 Don't set remote_translate_xfer_address.
3781 (avr_io_reg_read_command): Remove commented out debug printf.
3782 Wrap a long line.
3783
57bc6122
TR
37842003-06-14 Theodore A. Roth <troth@openavr.org>
3785
3786 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3787 causes gdb to seg fault.
3788
eb01fc62
DJ
37892003-06-14 Daniel Jacobowitz <drow@mvista.com>
3790
3791 * sparc-nat.c (fetch_inferior_registers): Correct
3792 a reference to "registers".
3793
3b3e6bee
DJ
37942003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3795
3796 * Makefile.in (exc_request_U_h): Define
3797 (exc_request_S_h): Likewise.
3798 (msg_reply_S_h): Likewise.
3799 (msg_U_h): Likewise.
3800 (notify_S_h): Likewise.
3801 (process_reply_S_h): Likewise.
3802 (gnu-nat.o): Depend on gdb_obstack_h
3803 * gnu-nat.c: Include "gdb_obstack.h".
3804
b8de8283
AC
38052003-06-13 Andrew Cagney <cagney@redhat.com>
3806
3807 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3808 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3809
f3be58bc
AC
38102003-06-13 Andrew Cagney <cagney@redhat.com>
3811
3812 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3813 when deprecated REGISTER macros can be deleted.
3814 * gdbarch.h, gdbarch.c: Re-generate.
3815
4c0122c8
JB
38162003-06-13 Jim Blandy <jimb@redhat.com>
3817
3818 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3819 Linux entry point symbols for _dl_debug_state, too.
3820
3e210248
AC
38212003-06-13 Andrew Cagney <cagney@redhat.com>
3822
3823 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3824 available, do not use the FP register, and always save the TOS.
3825 * dummy-frame.c (dummy_frame_this_id): Do not assert
3826 SAVE_DUMMY_FRAME_TOS.
3827 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3828 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3829 (i386_push_dummy_call): Add 8 to the returned SP.
3830 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3831 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3832 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3833 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3834 (x86_64_push_dummy_call): Return "sp + 16".
3835 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3836 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3837 save_dummy_frame_tos.
3838
0b65af49
JB
38392003-06-13 Jim Blandy <jimb@redhat.com>
3840
3841 * frv-tdep.c (frv_use_struct_convention): Delete static
3842 declaration for function deleted in my change of 2003-06-12.
3843
4ea2465e
TR
38442003-06-13 Theodore A. Roth <troth@openavr.org>
3845
3846 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3847 (avr_pointer_to_address): Shift code addrs left 1 bit.
3848 (avr_convert_from_func_ptr_addr): Delete function since operation is
3849 better handled by avr_address_to_pointer and avr_pointer_to_address.
3850 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3851
1581182a
MK
38522003-06-13 Mark Kettenis <kettenis@gnu.org>
3853
3854 From Kelley Cook <kelleycook@wideopenwest.com>:
3855 * configure.host: Accept i[34567]86 variants.
3856 * configure.tgt: Likewise.
3857 * nlm/configure.in: Likewise.
3858 * nlm/configure: Regenerated.
3859
7aa1783e
RE
38602003-06-13 Richard Earnshaw <rearnsha@arm.com>
3861
3862 * arm-tdep.c (solib-svr4.h): Dont' include it.
3863 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3864 * arm-linux-tdep.c: ... here. Make static.
3865 (arm_linux_init_abi): Register it.
3866 (solib-svr4.h): Include it.
3867 * Makefile.in: Update dependencies.
3868 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3869 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3870
0261a0d0
CV
38712003-06-13 Corinna Vinschen <vinschen@redhat.com>
3872
3873 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3874 indicate registers used for return values.
3875 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3876 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3877 members.
3878 (h8300_init_extra_frame_info): Ditto.
3879 (h8300_frame_locals_address): Removed.
3880 (h8300_frame_args_address): Removed.
3881 (h8300_extract_return_value): Use new regcache structure. Only care
3882 for 16 bit CPUs.
3883 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3884 (h8300_store_return_value): Use new regcache structure. Only care
3885 for 16 bit CPUs.
3886 (h8300h_store_return_value): Same function for 32 bit CPUs.
3887 (h8300_store_struct_return): Removed.
3888 (h8300_extract_struct_value_address): Use new regcache structure.
3889 (h8300h_extract_struct_value_address): Removed.
3890 (h8300_push_dummy_code): New function.
3891 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3892 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3893 set_gdbarch_store_return_value architecture dependent.
3894 Call set_gdbarch_push_dummy_code and
3895 set_gdbarch_extract_struct_value_address.
3896 Remove calls to set_gdbarch_frame_args_address,
3897 set_gdbarch_frame_locals_address,
3898 set_gdbarch_deprecated_store_struct_return,
3899 set_gdbarch_deprecated_extract_return_value,
3900 set_gdbarch_deprecated_extract_struct_value_address,
3901 set_gdbarch_deprecated_call_dummy_words and
3902 set_gdbarch_deprecated_sizeof_call_dummy_words.
3903
055c394a
CV
39042003-06-13 Corinna Vinschen <vinschen@redhat.com>
3905
3906 * h8300-tdep.c (h8300_register_byte): Remove.
3907 (h8300h_register_byte): Remove.
3908 (h8300_register_virtual_type): Remove. Substitute by...
3909 (h8300_register_type): New function.
3910 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3911 (h8300h_extract_struct_value_address): Ditto.
3912 (h8300_gdbarch_init): Drop calls to
3913 set_gdbarch_deprecated_register_byte and
3914 set_gdbarch_deprecated_register_virtual_type.
3915 Add call to set_gdbarch_register_type.
3916
9c04cab7
AC
39172003-06-13 Andrew Cagney <cagney@redhat.com>
3918
3919 * gdbarch.sh: Update comments on registers.
3920 (deprecated_register_byte): Rename register_byte.
3921 (deprecated_register_raw_size): Rename register_raw_size.
3922 (deprecated_register_virtual_size): Rename register_virtual_size.
3923 (deprecated_register_virtual_type): Rename register_virtual_type.
3924 * gdbarch.h, gdbarch.c: Re-generate.
3925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3926 * vax-tdep.c (vax_gdbarch_init): Update.
3927 * v850-tdep.c (v850_gdbarch_init): Update.
3928 * sparc-tdep.c (sparc_gdbarch_init): Update.
3929 * sh-tdep.c (sh_gdbarch_init): Update.
3930 * s390-tdep.c (s390_gdbarch_init): Update.
3931 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3932 * ns32k-tdep.c: Update.
3933 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3934 * mips-tdep.c (mips_gdbarch_init): Update.
3935 * mcore-tdep.c (mcore_gdbarch_init): Update.
3936 * m68k-tdep.c (m68k_gdbarch_init): Update.
3937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3938 * ia64-tdep.c (ia64_gdbarch_init): Update.
3939 * hppa-tdep.c (hppa_gdbarch_init): Update.
3940 * h8300-tdep.c (h8300_gdbarch_init): Update.
3941 * frv-tdep.c (frv_gdbarch_init): Update.
3942 * cris-tdep.c (cris_gdbarch_init): Update.
3943 * avr-tdep.c (avr_gdbarch_init): Update.
3944 * alpha-tdep.c (alpha_gdbarch_init): Update.
3945 * arm-tdep.c (arm_gdbarch_init): Update.
3946
b060cbea
AC
39472003-06-13 Andrew Cagney <cagney@redhat.com>
3948
3949 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3950 mips_o32_use_struct_convention with always_use_struct_convention.
3951
0fc9922a
DC
39522003-06-12 David Carlton <carlton@kealia.com>
3953
3954 * cp-namespace.c (cp_set_block_scope): Comment out
3955 processing_has_namespace_info branch.
3956
1fd35568
JB
39572003-06-12 Jim Blandy <jimb@redhat.com>
3958
f470a70a
JB
3959 Recognize and skip 64-bit PowerPC Linux linkage functions.
3960 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3961 insn_pattern, insns_match_pattern, d_field, ds_field): New
3962 functions, macros, and types for working with PPC instructions.
3963 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3964 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3965 ppc64_skip_trampoline_code): New functions, variables, and macros
3966 for recognizing and skipping linkage functions.
3967 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3968 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3969
49ff75ad
JB
3970 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3971 register offsets for both the 32- and 64-bit interfaces.
3972
bd918c83
JB
3973 Actually finish the job started by my change of 2003-05-29.
3974 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3975 other #definition of this.
3976 (ppc_linux_skip_trampoline_code): Remove declaration.
3977 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3978 static.
3979 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3980 method for GDBARCH.
3981
3982 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3983 'long' on ppc64-*-linux*.
3984
f8c59253
JB
3985 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3986 isn't #defined, assume the register doesn't exist: act as if
3987 tdep->ppc_mq_regnum were -1.
3988
8fbb30b1
JB
3989 * configure.host, configure.tgt: Add entries for
3990 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3991 powerpc/linux.mt.
3992 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3993 New files.
3994
1fd35568
JB
3995 * arch-utils.c (always_use_struct_convention): New function.
3996 * arch-utils.h (always_use_struct_convention): New prototype.
3997 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3998 (alpha_gdbarch_init): Register always_use_struct_convention,
3999 instead of alpha_use_struct_convention.
4000 * cris-tdep.c (cris_use_struct_convention): Delete.
4001 (cris_gdbarch_init): Register always_use_struct_convention,
4002 instead of cris_use_struct_convention.
4003 * frv-tdep.c (frv_use_struct_convention): Delete.
4004 (frv_gdbarch_init): Register always_use_struct_convention,
4005 instead of frv_use_struct_convention.
4006 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4007 (h8300_gdbarch_init): Register always_use_struct_convention,
4008 instead of h8300_use_struct_convention.
e3305dd9 4009 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4010 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4011 instead of mips_o32_use_struct_convention.
4012
e14e6e9c
AC
40132003-06-12 Andrew Cagney <cagney@redhat.com>
4014
4015 * wince.c: Include "mips-tdep.h".
4016 * mips-tdep.h (mips_next_pc): Declare.
4017 * mcore-tdep.c: Make more local functions static.
4018 * Makefile.in (wince.o): Update dependencies.
4019
2335f48e
DC
40202003-06-12 David Carlton <carlton@kealia.com>
4021
4022 * symtab.c (lookup_symbol_aux_minsyms): Replace
4023 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4024 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4025 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4026 SYMBOL_NATURAL_NAME.
4027
f70a7d61
AS
40282003-06-12 Andreas Schwab <schwab@suse.de>
4029
4030 * Makefile.in (tuiDisassem.o): Update dependencies.
4031
b6429628
DC
40322003-06-12 David Carlton <carlton@bactrian.org>
4033
4034 * symtab.h: Delete declaration of make_symbol_overload_list.
4035 Add declaration of lookup_partial_symbol.
4036 * symtab.c (remove_params): Move to cp-support.c.
4037 (overload_list_add_symbol, make_symbol_overload_list)
4038 (sym_return_val_size, sym_return_val_index): Ditto.
4039 (lookup_partial_symbol): Make extern.
4040 * cp-support.h: Add declaration of make_symbol_overload_list.
4041 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4042 symtab.h, and block.h.
4043 (remove_params): Move here from symtab.c.
4044 (overload_list_add_symbol, make_symbol_overload_list)
4045 (sym_return_val_size, sym_return_val_index): Ditto.
4046 * valops.c: Include cp-support.h.
4047 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4048 frame_h, and block_h.
4049 (valops.o): Depend on cp_support_h.
4050
084edea5
CV
40512003-06-12 Corinna Vinschen <vinschen@redhat.com>
4052
4053 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4054 substitute by NUM_REGS throughout.
4055 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4056 (h8300s_register_name): New function for H8S registers.
4057 (h8300sx_register_name): Ditto for H8SX registers.
4058 (h8300_print_register): Revise register printing, avoid depending
4059 on 32 bit long.
0261a0d0 4060 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4061 (h8300h_register_byte): New function for any other architecture.
4062 (h8300_register_raw_size): Remove.
4063 (h8300_register_virtual_type): Revise to return actually useful
4064 type.
4065 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4066 (h8300h_extract_struct_value_address): New function for any other
4067 architecture.
4068 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4069 set_gdbarch_register_name, set_gdbarch_register_byte,
4070 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4071 Remove calls to set_gdbarch_deprecated_register_size,
4072 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4073 set_gdbarch_deprecated_max_register_raw_size,
4074 set_gdbarch_register_virtual_size and
4075 set_gdbarch_deprecated_max_register_virtual_size entirely.
4076 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4077 set_gdbarch_long_double_bit.
4078
06194148
JJ
40792003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4080
8ffd9b1b
AJ
4081 * doublest.c (convert_doublest_to_floatformat): When dealing
4082 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4083 processing a full 32 bits of mantissa.
4084
de4f826b
DC
40852003-06-11 David Carlton <carlton@bactrian.org>
4086
4087 * dictionary.h: New.
4088 * dictionary.c: New.
4089 * block.h: Add opaque declaration for struct dictionary.
4090 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4091 'sym' members.
4092 (BLOCK_DICT): New macro.
4093 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4094 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4095 BLOCK_SHOULD_SORT.
4096 (ALL_BLOCK_SYMBOLS): Update definition.
4097 * Makefile.in (SFILES): Add dictionary.c.
4098 (dictionary_h): New.
4099 (COMMON_OBS): Add dictionary.o.
4100 (dictionary.o): New.
4101 (ada-lang.o): Depend on dictionary_h.
4102 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4103 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4104 (mi-cmd-stack.o): Ditto.
4105 (gdbtk-cmds.o): Update dependencies.
4106 (gdbtk-stack.o): Ditto.
4107 * ada-lang.c: Include dictionary.h.
4108 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4109 (fill_in_ada_prototype, debug_print_block): Ditto.
4110 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4111 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4112 'is_sorted'.
4113 * mdebugread.c: Include dictionary.h.
4114 (struct parse_stack): Delete 'maxsyms' member.
4115 (parse_symbol): Update calls to new_block. Delete calls to
4116 shrink_block. Use dictionary methods.
4117 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4118 Update calls to new_symtab. Don't maintain maxsyms data.
4119 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4120 (add_symbol): Just call dict_add_symbol.
4121 (new_symtab): Delete 'maxsyms' argument.
4122 (new_symtab): Update calls to new_block.
4123 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4124 (shrink_block): Delete function.
4125 (fixup_sigtramp): Update call to new_block. Add symbol via
4126 dict_add_symbol.
4127 * jv-lang.c: Include dictionary.h.
4128 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4129 appropriately. Set class_symtab->free_func. Make sure the
4130 blockvector is big enough to hold two blocks.
4131 (add_class_symtab_symbol): Use dictionary methods.
4132 (free_class_block): New function.
4133 (type_from_class): Replace explicit iteration by
4134 ALL_BLOCK_SYMBOLS.
4135 * symtab.h (struct symtab): Replace 'free_ptr' method by
4136 'free_func'.
4137 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4138 sort_symtab_syms.
4139 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4140 sort_symtab_syms.
4141 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4142 Include dictionary.h.
4143 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4144 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4145 sort_symtab_syms.
4146 * objfiles.c: Include dictionary.h.
4147 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4148 * buildsym.c: Include dictionary.h.
4149 (finish_block): Use dictionary methods.
4150 (end_symtab): Set free_func to NULL, not free_ptr.
4151 * tracepoint.c: Include dictionary.h.
4152 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4153 (scope_info): Ditto.
4154 * stack.c: Include dictionary.h.
4155 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4156 (print_block_frame_labels, print_frame_arg_vars)
4157 (print_frame_args): Ditto.
4158 * symmisc.c (free_symtab_block): Use dictionary methods.
4159 (dump_symtab): Ditto.
4160 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4161 Include dictionary.h.
4162 * symfile.h: Delete declarations of sort_block_syms,
4163 sort_symtab_syms.
4164 * symfile.c (sort_block_syms): Delete.
4165 (sort_symtab_syms): Delete.
4166 * symtab.c: Include dictionary.h.
4167 (lookup_block_symbol): Use dictionary iterators.
4168 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4169 (search_symbols, make_symbol_completion_list): Ditto.
4170 (make_symbol_overload_list): Ditto.
4171 * valops.c (value_of_local): Use dict_empty.
4172 Include dictionary.h.
4173
a31f978c
JB
41742003-06-11 J. Brobecker <brobecker@gnat.com>
4175
4176 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4177
526e70c0
DC
41782003-06-11 David Carlton <carlton@bactrian.org>
4179
4180 * block.h (BLOCK_SHOULD_SORT): Delete.
4181 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4182 blocks.
4183 * ada-lang.c (ada_add_block_symbols): Ditto.
4184 * symfile.c (sort_block_syms): Delete.
4185 (sort_symtab_syms): Ditto.
4186 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4187 declarations.
4188 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4189 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4190 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4191 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4192 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4193 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4194 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4195
33c08150
JJ
41962003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4197
8ffd9b1b 4198 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4199 bits to 128.
4200
781a750d
AC
42012003-06-11 Andrew Cagney <cagney@redhat.com>
4202
4203 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4204 REGISTER_CONVERTIBLE.
4205 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4206 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4207 * gdbarch.h, gdbarch.c: Re-generate.
4208 * arch-utils.h (deprecated_register_convertible_not): Rename
4209 generic_register_convertible_not.
4210 * arch-utils.c (deprecated_register_convertible_not): Rename
4211 generic_register_convertible.
4212 (legacy_convert_register_p, legacy_register_to_value): Update.
4213 * sh-tdep.c (sh64_push_arguments): Update.
4214 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4215 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4216 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4217 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4218 * arch-utils.c (legacy_value_to_register): Update.
4219 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4220 (rs6000_register_convert_to_raw): Make parameter "from" const.
4221 * mips-tdep.c (mips_gdbarch_init): Update.
4222 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4223 * infcmd.c (default_print_registers_info): Update.
4224 * ia64-tdep.c (ia64_gdbarch_init): Update.
4225 (ia64_register_convert_to_raw): Make parameter "from" const.
4226 * i386-tdep.c (i386_gdbarch_init): Update.
4227 (i386_register_convert_to_raw): Update.
4228
cd90e54f
AC
42292003-06-11 Andrew Cagney <cagney@redhat.com>
4230
4231 * remote-fileio.c: Include "remote-fileio.h".
4232 * Makefile.in (remote-fileio.o): Update dependencies.
4233 (remote_fileio_h): Fix typo.
4234
a78f21af
AC
42352003-06-11 Andrew Cagney <cagney@redhat.com>
4236
4237 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4238 (xstormy16_save_dummy_frame_tos): Make static.
4239 (_initialize_xstormy16_tdep): Add declaration.
4240 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4241 * v850-tdep.c: Make local functions static.
4242 (_initialize_v850_tdep): Add declaration.
4243 * sparc-tdep.c: Make local functions static.
4244 (_initialize_sparc_tdep): Add declaration.
4245 * sh-tdep.c: Make local functions static.
4246 (_initialize_sh_tdep): Add declaration.
4247 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4248 * s390-tdep.c: Make local functions static.
4249 (_initialize_s390_tdep): Add declaration.
4250 * dbxread.c (find_stab_function_addr): Make static.
4251 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4252 * ocd.c (_initialize_remote_ocd): Add declaration.
4253 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4254 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4255 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4256 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4257 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4258 * remote-array.c (_initialize_array): Add declaration.
4259 (_initialize_remote_monitors): Add declaration.
4260 * remote-mips.c: Make local functions static.
4261 (_initialize_remote_mips): Add declaration.
4262 * mcore-tdep.c: Make all local functions static.
4263 (_initialize_mcore_tdep): Add declaration.
4264 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4265 * abug-rom.c (_initialize_abug_rom): Add declaration.
4266 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4267 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4268 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4269 * remote-est.c (_initialize_est): Add declaration.
4270 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4271 (m68hc11_call_dummy_address): Make static.
4272 * ia64-tdep.c: Make local functions static.
4273 (_initialize_ia64_tdep): Add declaration.
4274 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4275 * monitor.c (monitor_wait_filter): Make static.
4276 (_initialize_remote_monitors): Add declaration.
4277 * remote-hms.c (_initialize_remote_hms): Add declaration.
4278 * remote-e7000.c (fetch_regs_from_dump): Make static.
4279 (expect_n): Make static.
4280 (_initialize_remote_e7000): Add declaration.
4281 * ser-e7kpc.c: Always include "defs.h".
4282 (_initialize_ser_e7000pc): Add declaration.
4283 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4284 * cris-tdep.c: Make all but one function static.
4285 (_initialize_cris_tdep): Add declaration.
4286 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4287 * solib.c (update_solib_list): Make static.
4288 (_initialize_solib): Add declaration.
4289 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4290 (_initialize_avr_tdep): Add declaration.
4291 * remote-rdi.c (voiddummy): Make static.
4292 (_initialize_remote_rdi): Add declaration.
4293 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4294 * remote-rdp.c (send_rdp): Make static.
4295 (_initialize_remote_rdp): Add declaration.
4296 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4297
cbcdb1f5
CV
42982003-06-11 Corinna Vinschen <vinschen@redhat.com>
4299
4300 * remote-fileio.c: Make ari happy.
4301
a191ea8d
JB
43022003-06-10 J. Brobecker <brobecker@gnat.com>
4303
4304 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4305 fetching the trailing bytes of the buffer we are about to write.
4306
0ef75e11
AC
43072003-06-10 Andrew Cagney <cagney@redhat.com>
4308
4309 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4310 * Makefile.in (remote-fileio.o): Update dependencies.
4311 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4312 include <setjmp.h>, or <sys/types.h> conditional on USG.
4313 (remote_fio_jmp_buf): Delete global variable.
4314
449092f6 43152003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4316 Martin M. Hunt <hunt@redhat.com>
449092f6 4317
559fa028
AC
4318 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4319 (SFILES): Add remote-fileio.c.
4320 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4321 dependencies for building remote.o.
449092f6
CV
4322 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4323 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4324 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4325 static storage class.
4326 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4327 'F' packet.
4328 (_initialize_remote): Call initialize_remote_fileio().
4329 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4330 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4331 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4332 (captured_main): Initialize new ui_files.
4333 * ui-file.c: Add read and fgets input functions.
4334 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4335 (null_file_read): New function.
4336 (ui_file_read): New function.
4337 (set_ui_file_read): New function.
4338 (stdio_file_read): New function.
4339 * ui-file.h: New type ui_file_read_ftype.
4340 (set_ui_file_read): Declare.
4341 (ui_file_read): Declare.
4342
248de703
AC
43432003-06-09 Andrew Cagney <cagney@redhat.com>
4344
4345 * frame.h (deprecated_unwind_get_saved_register): Rename
4346 generic_unwind_get_saved_register, update comments.
4347 * mips-tdep.c (mips_get_saved_register): Update.
4348 * frame.c (deprecated_unwind_get_saved_register): Update.
4349
0ed8aa57
AC
43502003-06-09 Andrew Cagney <cagney@redhat.com>
4351
4352 * vax-tdep.c (vax_frame_locals_address): Delete function.
4353 (vax_gdbarch_init): Do not set frame_locals_address.
4354 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4355 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4356 * s390-tdep.c (s390_frame_args_address): Delete function.
4357 (s390_gdbarch_init): Do not set frame_args_address or
4358 frame_locals_address.
4359 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4360 (ns32k_gdbarch_init): Do not set frame_locals_address.
4361 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4362 (hppa_frame_locals_address): Delete function.
4363 (hppa_gdbarch_init): Do not set frame_args_address, or
4364 frame_locals_address.
4365 * arm-tdep.c (arm_frame_args_address): Delete.
4366 (arm_frame_locals_address): Delete.
4367 (arm_gdbarch_init): Do not set frame_args_address, or
4368 frame_locals_address.
4369
983a287a
AC
43702003-06-09 Andrew Cagney <cagney@redhat.com>
4371
4372 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4373 * gdbarch.h, gdbarch.c: Re-generate.
4374 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4375 * arch-utils.c (frame_num_args_unknown): Delete function.
4376 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4377 (frame_info): Use FRAME_NUM_ARGS_P.
4378 * arm-tdep.c (arm_frame_num_args): Delete function.
4379 (arm_gdbarch_init): Do not set frame_num_args.
4380 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4381 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4382 (hppa_gdbarch_init): Do not set frame_num_args.
4383 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4385 frame_num_args to default frame_num_args_unknown.
4386 * v850-tdep.c (v850_gdbarch_init): Ditto.
4387 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4388 * sh-tdep.c (sh_gdbarch_init): Ditto.
4389 * s390-tdep.c (s390_gdbarch_init): Ditto.
4390 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4391 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4392 * mips-tdep.c (mips_gdbarch_init): Ditto.
4393 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4394 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4396 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4397 * i386-tdep.c (i386_gdbarch_init): Ditto.
4398 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4399 * frv-tdep.c (frv_gdbarch_init): Ditto.
4400 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4401 * cris-tdep.c (cris_gdbarch_init): Ditto.
4402 * avr-tdep.c (avr_gdbarch_init): Ditto.
4403 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4404
8d3b0994
AC
44052003-06-09 Andrew Cagney <cagney@redhat.com>
4406
4407 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4408 (print_frame_args): Moved to "stack.c".
4409 * stack.c: Include "gdb_assert.h".
4410 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4411 (print_frame_args): Moved from "printcmd.c".
4412 * frame.h (print_frame_args): Delete declaration.
4413 * Makefile.in (stack.o): Update dependencies.
4414
25e3a86b
AC
44152003-06-08 Andrew Cagney <cagney@redhat.com>
4416
4417 * frame.c (get_prev_frame): Remove reference to
4418 frame_args_address_correct in comments.
4419 * frame-base.c (default_frame_args_address): Delete code
4420 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4421 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4422 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4423 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4424 (vax_frame_args_address_correct): Delete declaration.
4425
a9e5fdc2
AC
44262003-06-08 Andrew Cagney <cagney@redhat.com>
4427
4428 * gdbarch.sh (UNWIND_SP): Add.
4429 * gdbarch.h, gdbarch.c: Re-generate.
4430 * frame.c (frame_sp_unwind): New function.
4431 (get_frame_sp): New function.
4432 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4433 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4434 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4435 value.
4436 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4437 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4438
8983bd83
AC
44392003-06-08 Andrew Cagney <cagney@redhat.com>
4440
7fec2c59
AC
4441 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4442 REMOTE_BREAKPOINT.
4443 * remote.c: Update.
4444 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4445 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4446 * config/m68k/tm-sun3.h: Update.
4447 * config/m68k/tm-m68klynx.h: Update.
4448 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4449
8983bd83
AC
4450 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4451 trad_frame". Update comments.
4452 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4453 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4454 (trad_frame_register_value, trad_frame_prev_register): Update.
4455
b9362cc7
AC
44562003-06-08 Andrew Cagney <cagney@redhat.com>
4457
4458 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4459 from GCC's acinclude.m4.
4460 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4461 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4462 * main.c (error_init): Delete declaration.
4463 * defs.h (error_init): Declare.
4464 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4465 (rs6000_convert_from_func_ptr_addr): Make static.
4466 (_initialize_rs6000_tdep): Add declaration.
4467 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4468 (show_commands, set_verbose, show_history): Delete declaration.
4469 * top.h (set_verbose): Add declaration.
4470 (show_history, set_history, show_commands): Add declaration.
4471 (do_restore_instream_cleanup): Add declaration.
4472 * objc-lang.c (specialcmp): Make static.
4473 (print_object_command): Make static.
4474 (find_objc_msgsend): Make static.
4475 (find_objc_msgcall_submethod_helper): Make static.
4476 (find_objc_msgcall_submethod): Make static.
4477 (_initialize_objc_language): Add declaration.
4478 (find_implementation_from_class): Make static.
4479 (find_implementation): Make static.
4480 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4481 * objc-lang.h (lookup_struct_typedef): Add declaration.
4482 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4483 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4484 (do_restore_user_call_depth): Make static.
4485 (do_restore_instream_cleanup): Delete declaration.
4486 (dont_repeat): Delete declaration.
4487 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4488 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4489 * reggroups.c (_initialize_reggroup): Add declaration.
4490 * cp-support.c (_initialize_cp_support): Add declaration.
4491 * cp-abi.c (_initialize_cp_abi): Add declaration.
4492 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4493 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4494 (_initialize_gnu_v3_abi): Add declaration.
4495 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4496 (_initialize_gnu_v2_abi): Add declaration.
4497 * frame-base.c (_initialize_frame_base): Add declaration.
4498 * doublest.c (floatformat_from_length): Make static.
4499 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4500 * frame.c (create_sentinel_frame): Make static.
4501 (_initialize_frame): Add declaration.
4502 * top.c (do_catch_errors): Make static.
4503 (gdb_rl_operate_and_get_next_completion): Make static.
4504 * typeprint.c: Include "typeprint.h".
4505 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4506 (sentinel_frame_this_id): Make static.
4507 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4508 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4509 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4510 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4511 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4512 * maint.c (maintenance_print_architecture): Make static.
4513 * signals/signals.c (_initialize_signals): Add declaration.
4514 * std-regs.c (_initialize_frame_reg): Add declaration.
4515 * jv-exp.y (push_variable): ISO C definition.
4516 (push_qualified_expression_name): Ditto.
4517 * memattr.c (_initialize_mem): Add declaration.
4518 * remote.c (remote_check_watch_resources): Make static.
4519 (remote_stopped_by_watchpoint): Make static.
4520 (remote_stopped_data_address): Make static.
4521 * d10v-tdep.c (nr_dmap_regs): Make static.
4522 (a0_regnum): Make static.
4523 (d10v_frame_unwind_cache): Make static.
4524 (d10v_frame_p): Make static.
4525 * osabi.c (show_osabi): Make static.
4526 (_initialize_gdb_osabi): Add extern declaration.
4527 * gdbtypes.c (make_qualified_type): Make static.
4528 (safe_parse_type): Make static.
4529 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4530 * macrotab.c (macro_bcache_free): Make static.
4531 * interps.c (interp_set_quiet): Make static.
4532 (interpreter_exec_cmd): Make static.
4533 * stack.h (select_frame_command): New file.
4534 * stack.c: Include "stack.h".
4535 (select_frame_command_wrapper): Delete function.
4536 (select_frame_command): Make global.
4537 * infcall.c: Include "infcall.h".
4538 * linespec.c: Include "linespec.h".
4539 * symfile.c (sections_overlap): Make static.
4540 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4541 * charset.c (_initialize_charset): Add missing prototype.
4542 * regcache.c (init_legacy_regcache_descr): Make static.
4543 (do_regcache_xfree): Make static.
4544 (regcache_xfer_part): Make static.
4545 (_initialize_regcache): Add missing prototype.
4546 * breakpoint.c (parse_breakpoint_sals): Make static.
4547 (breakpoint_sals_to_pc): Make static.
4548 * interps.h (clear_interpreter_hooks): ISO C declaration.
4549 * Makefile.in (stack_h): Define.
4550 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4551 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4552
a0f267c7
AC
45532003-06-08 Andrew Cagney <cagney@redhat.com>
4554
4555 * Makefile.in (d10v-tdep.o): Update dependencies.
4556 (SFILES): Add trad-frame.c.
4557 (trad_frame_h): Define.
4558 (COMMON_OBS): Add trad-frame.o.
4559 (trad-frame.o): Specify dependencies.
4560 * d10v-tdep.c: Include "trad-frame.h".
4561 (saved_regs_unwinder): Delete function.
4562 (d10v_frame_prev_register): Use trad_frame_prev_register.
4563 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4564 trad_frame", delete "regs" and "prev_sp".
4565 (prologue_find_regs): Use trad-frame.
4566 * trad-frame.h, trad-frame.c: New files.
4567
4538b4f4
MK
45682003-06-08 Mark Kettenis <kettenis@gnu.org>
4569
4570 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4571
a0273b2f
AF
45722003-06-07 Adam Fedor <fedor@gnu.org>
4573
4574 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4575 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4576 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4577 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4578 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4579 Use it.
4580
3a6c3343
AC
45812003-06-07 Andrew Cagney <cagney@redhat.com>
4582
4583 * symfile.h: Re-indent, clean up comments.
4584
b46e02f6
AC
45852003-06-07 Andrew Cagney <cagney@redhat.com>
4586
4587 * inferior.h (deprecated_write_sp): Replace
4588 generic_target_write_sp.
4589 * regcache.c (deprecated_write_sp): Replace
4590 generic_target_write_sp.
4591 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4592 * vax-tdep.c (vax_gdbarch_init): Update.
4593 * v850-tdep.c (v850_gdbarch_init): Update.
4594 * sparc-tdep.c (sparc_gdbarch_init): Update.
4595 * sh-tdep.c (sh_gdbarch_init): Update.
4596 * s390-tdep.c (s390_gdbarch_init): Update.
4597 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4598 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4599 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4600 * mcore-tdep.c (mcore_gdbarch_init): Update.
4601 * m68k-tdep.c (m68k_gdbarch_init): Update.
4602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4603 * ia64-tdep.c (ia64_gdbarch_init): Update.
4604 * h8300-tdep.c (h8300_gdbarch_init): Update.
4605 * frv-tdep.c (frv_gdbarch_init): Update.
4606 * cris-tdep.c (cris_gdbarch_init): Update.
4607 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4608
a42e117c
AC
46092003-06-07 Andrew Cagney <cagney@redhat.com>
4610
4611 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4612 Assert that PC_REGNUM is valid.
4613 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4614
bd1ce8ba
AC
46152003-06-07 Andrew Cagney <cagney@redhat.com>
4616
4617 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4618 * gdbarch.h, gdbarch.c: Regenerate.
4619 * mn10300-tdep.c: Include "gdb_assert.h".
4620 (mn10300_read_fp): New function.
4621 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4622 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4623 * ia64-tdep.c: Include "gdb_assert.h".
4624 (ia64_read_fp): New function.
4625 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4626 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4627 * regcache.c (generic_target_read_sp): Delete function.
4628 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4629 * inferior.h (generic_target_read_sp): Delete declaration.
4630 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4631 generic_target_read_sp.
4632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4633 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4634 * sh-tdep.c (sh_gdbarch_init): Ditto.
4635 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4636 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4637
ec5cbaec
AC
46382003-06-07 Andrew Cagney <cagney@redhat.com>
4639
4640 * gdbarch.sh: Comment each field of startup_gdbarch.
4641 * gdbarch.h, gdbarch.c: Re-generate.
4642
cde9ea48
AC
46432003-06-07 Andrew Cagney <cagney@redhat.com>
4644
4645 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4646 * gdbarch.h, gdbarch.c: Re-generate.
4647 * regcache.c: Update comments on read_pc et.al.
4648 (generic_target_read_pc): Delete function.
4649 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4650 * inferior.h (generic_target_read_pc): Delete declaration.
4651 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4652 generic_target_read_pc.
4653 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4654 * sh-tdep.c (sh_gdbarch_init): Ditto.
4655 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4657
9a90a780
AC
46582003-06-07 Andrew Cagney <cagney@redhat.com>
4659
4660 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4661 "index" with "special_local_sect". Use strcmp instead of STREQ.
4662 Append period to coments.
4663
a39a16c4
MM
46642003-06-06 Mark Mitchell <mark@codesourcery.com>
4665
4666 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4667 (elfstab_offset_sections): Likewise.
4668 * gdb-stabs.h (stab_section_info): Likewise.
4669 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4670 * objfiles.c (objfile_relocate): Likewise.
4671 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4672 * remote.c (get_offsets): Likewise.
4673 (remote_cisco_objfile_relocate): Likewise.
4674 * somread.c (som_symfile_offsets): Likewise.
4675 * symfile.c (alloc_section_addr_info): New function.
4676 (build_section_addr_info_from_section_tab): Use it.
4677 (free_section_addr_info): Adjust.
4678 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4679 (syms_from_objfile): Allocate local_addr dynamically.
4680 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4681 dynamically.
4682 (add_symbol_file_command): Allocate sect_opts dynamically.
4683 (reread_symbols): Avoid use of SECT_OFF_MAX.
4684 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4685 (alloc_section_addr_info): Declare it.
4686 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4687 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4688 dynamically.
4689 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4690
20c6c2f8
AC
46912003-06-06 Andrew Cagney <cagney@redhat.com>
4692
4693 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4694 (d10v_frame_unwind_cache): Do not set "return_pc".
4695
884a26c8
MS
46962003-06-06 Michael Snyder <msnyder@redhat.com>
4697
4698 * h8300-tdep.c: Make tidy (long lines).
4699
088ce440
ML
47002003-06-06 Michal Ludvig <mludvig@suse.cz>
4701
8ffd9b1b 4702 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4703 to regcache_collect().
4704
7d773d96
JB
47052003-06-05 J. Brobecker <brobecker@gnat.com>
4706
4707 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4708 pc_in_sigtramp multiarch method.
4709 (hppa_hpux_som_init_abi): Use it.
4710 (hppa_hpux_elf_init_abi): Likewise.
4711 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4712 macro has been multiarched.
4713 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4714 macro here, as hppa64 isn't multiarched yet.
4715
1df6926e
AC
47162003-06-05 Andrew Cagney <cagney@redhat.com>
4717
4718 * Makefile.in (value_h): Add $(frame_h).
4719 * value.h: Include "frame.h".
4720 (struct value): Replace "frame_addr" with "frame_id".
4721 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4722 * values.c (allocate_value): Use VALUE_FRAME_ID.
4723 (value_copy): Use VALUE_FRAME_ID.
4724 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4725 * valops.c (value_assign): Update. Use frame_find_by_id.
4726
6b53acc6
ML
47272003-06-05 Michal Ludvig <mludvig@suse.cz>
4728
4729 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4730 in each pass.
4731
4d9850d3
JJ
47322003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4733
4734 * thread-db.c (check_event): For create/death event breakpoints,
4735 loop through all messages to ensure that we read the message
4736 corresponding to the breakpoint we are at.
4737
8efca6ba
MS
47382003-06-04 Michael Snyder <msnyder@redhat.com>
4739
4740 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4741
0912c7f2
MK
47422003-06-04 Mark Kettenis <kettenis@gnu.org>
4743
4744 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4745 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4746 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4747 when handling .eh_frame sections.
4748
4e370325
JB
47492003-06-04 J. Brobecker <brobecker@gnat.com>
4750
4751 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4752 prepare_to_proceed procedure instead of the hppa-specific one.
4753 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4754
b757528f 47552003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4756
b757528f
JJ
4757 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4758 * config.in: Regenerated.
4759 * configure.in: Add test for syscall function and check for
4760 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4761 * configure: Regenerated.
4762 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4763 <sys/syscall.h>.
4764 (kill_lwp): New function that uses tkill syscall or
4765 uses kill, depending on whether threading model is nptl or not.
4766 All callers of kill() changed to use kill_lwp().
4767 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4768 see if all threads have already exited in the nptl model.
4769 (stop_and_resume_callback): New callback function used by the
4770 lin_lwp_wait thread exit handling code.
4771 (stop_wait_callback): Check for threads already having exited and
4772 delete such threads fromt the lwp list when discovered.
4773 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4774
b757528f
JJ
4775 Roland McGrath <roland@redhat.com>
4776 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4777 nptl libthread_db.
4778
087779b1
RH
47792003-06-03 Richard Henderson <rth@redhat.com>
4780
b21fd293
RH
4781 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4782 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4783 (alpha_sigtramp_frame_prev_register): Likewise.
4784 (alpha_heuristic_frame_prev_register): Likewise.
4785 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4786
8ffd9b1b 4787 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4788 alpha-specific register id names.
4789 (alpha_mdebug_frame_unwind_cache): Likewise.
4790 (alpha_mdebug_frame_prev_register): Likewise.
4791
baa490c4
RH
47922003-06-03 Richard Henderson <rth@redhat.com>
4793
4794 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4795 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4796 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4797 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4798 unwind routines.
4799 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4800 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4801 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4802
4803 * alpha-linux-tdep.c: Remove unnecessary includes.
4804 * Makefile.in (alpha-linux-tdep.o): Update.
4805
48062003-06-03 Richard Henderson <rth@redhat.com>
4807
4808 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4809 (alphabsd_fill_fpreg): Likewise.
4810
f534e522
JB
48112003-06-03 J. Brobecker <brobecker@gnat.com>
4812
4813 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4814 references to struct frame_info fields by calls to the equivalent
4815 accessors. Necessary now that frame_info is opaque.
4816
4035536b
JB
48172003-06-03 J. Brobecker <brobecker@gnat.com>
4818
4819 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4820 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4821 structure, field no longer exists.
4822
0bd79c5c
JB
48232003-06-03 J. Brobecker <brobecker@gnat.com>
4824
4825 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4826 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4827
37bb6d9f
JB
48282003-06-03 J. Brobecker <brobecker@gnat.com>
4829
4830 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4831 references to struct frame_info fields by calls to the equivalent
4832 accessors. Necessary now that frame_info is opaque.
4833
852ee05c
JB
48342003-06-03 J. Brobecker <brobecker@gnat.com>
4835
4836 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4837 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4838 structure, field no longer exists.
4839
7d58c67d
TR
48402003-06-03 Theodore A. Roth <troth@openavr.org>
4841
8ffd9b1b 4842 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4843 accumulation of the size of all registers instead of blindly using
4844 DEPRECATED_REGISTER_BYTES.
4845
0a48e7e8
MS
48462003-06-03 Michael Snyder <msnyder@redhat.com>
4847
4848 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4849 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4850 for h8300sx.
4851
9798ab0d
JB
48522003-06-03 J. Brobecker <brobecker@gnat.com>
4853
4854 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4855 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4856
00b037e2
AC
48572003-06-03 Andrew Cagney <cagney@redhat.com>
4858
4859 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4860 (sparc_convert_to_raw): Delete function.
4861 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4862 register_convert_to_virtual.
4863
043b2f77
JJ
48642003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4865
4866 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4867 layer if not dealing with a statically-linked threaded program.
4868
f43caff8
KW
48692003-06-03 Kris Warkentin <kewarken@qnx.com>
4870
4871 * solib.c (solib_open): Update comment to reflect actual search order.
4872
ae1e7417
AC
48732003-06-03 Andrew Cagney <cagney@redhat.com>
4874
4875 * frame.c (get_frame_memory_signed): New function.
4876 (get_frame_memory, get_frame_memory_unsigned): New function.
4877 (get_frame_arch): New function.
4878 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4879 (get_frame_memory, get_frame_unsigned_memory): Declare.
4880 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4881 get_frame_memory_unsigned and get_frame_arch.
4882 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4883
cb123844
RG
48842003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4885
4886 * MAINTAINERS (write after approval): Add myself.
4887
1bb792e9
JB
48882003-06-03 Jim Blandy <jimb@redhat.com>
4889
4890 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4891 elements of gregset_t are 64 bits each, but access registers
4892 are still 32 bits, so they're packed two per gregset_t
4893 element. Unpack/pack them properly.
4894
aee8d8ba
DC
48952003-06-02 David Carlton <carlton@bactrian.org>
4896
4897 * linespec.c (find_methods): Break out code into
4898 add_matching_methods and add_constructors.
4899 (add_matching_methods): New.
4900 (add_constructors): Ditto.
4901
bf7488d2
AC
49022003-06-02 Andrew Cagney <cagney@redhat.com>
4903
bf7488d2
AC
4904 * sparc-tdep.c (sparc_print_registers): Delete call to
4905 REGISTER_CONVERTIBLE.
4906 (sparc_gdbarch_init): Do not set register_convertible.
4907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4908 * frv-tdep.c (frv_gdbarch_init): Ditto.
4909 * cris-tdep.c (cris_gdbarch_init): Ditto.
4910
adedef68
EZ
49112003-06-02 Elena Zannoni <ezannoni@redhat.com>
4912
8ffd9b1b 4913 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4914 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4915 (syms_from_objfile): Ditto.
4916
650fcc91
AS
49172003-06-03 Andreas Schwab <schwab@suse.de>
4918
4919 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4920 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4921
df4a182b
RH
49222003-06-02 Richard Henderson <rth@redhat.com>
4923
4924 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4925 a member of all_reggroup.
4926
c483c494
RH
49272003-06-02 Richard Henderson <rth@redhat.com>
4928
4929 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4930 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4931 (alpha_lds, alpha_sts): New.
4932 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4933 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4934 restructure and fail for type sizes other than 4 or 8.
4935 (alpha_value_to_register): Similarly.
4936 (alpha_extract_return_value): Use alpha_sts.
4937 (alpha_store_return_value): Use alpha_lds.
4938 (alpha_gdbarch_init): Update hooks.
4939
b38b6be2
RH
49402003-06-02 Richard Henderson <rth@redhat.com>
4941
4942 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4943 regnum identifiers.
4944 (alpha_sigtramp_register_address): Likewise.
4945
98a8e1e5
RH
49462003-06-02 Richard Henderson <rth@redhat.com>
4947
4948 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4949 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4950 * alpha-tdep.h: Declare them.
4951
4952 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4953 Remove zerobuf. Don't error on UNIQUE.
4954 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4955 (ALPHA_REGSET_UNIQUE): Provide default.
4956 (supply_gregset): Use alpha_supply_int_regs.
4957 (fill_gregset): Use alpha_fill_int_regs.
4958 (supply_fpregset): Use alpha_supply_fp_regs.
4959 (fill_fpregset): Use alpha_fill_fp_regs.
4960 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4961 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4962 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4963 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4964 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4965 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4966
67dfac52
RH
49672003-06-02 Richard Henderson <rth@redhat.com>
4968
f75d70cc
RH
4969 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4970
67dfac52
RH
4971 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4972 (alpha_store_return_value): Likewise.
4973
0cf566ec
DC
49742003-06-02 David Carlton <carlton@math.stanford.edu>
4975
4976 * block.c (contained_in): Add 'const' to arguments.
4977 (block_function): Ditto.
4978 * block.h: Update declarations for block_function and
4979 contained_in.
4980
cdef89d0
DC
49812003-06-02 David Carlton <carlton@math.stanford.edu>
4982
4983 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4984 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4985 * p-valprint.c (pascal_val_print): Ditto.
4986 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4987
72667056
RH
49882003-06-02 Richard Henderson <rth@redhat.com>
4989
98a8e1e5
RH
4990 * alpha-tdep.c (alpha_push_dummy_call): Use
4991 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4992
8ffd9b1b 4993 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4994 sign-extension of 32-bit values.
4995 (alpha_store_return_value): Similarly.
0ede8eca 4996
98a8e1e5
RH
4997 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4998 (alpha_extract_return_value): Likewise.
4999 (alpha_store_return_value): Likewise.
7b5e1cb3 5000
98a8e1e5
RH
5001 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5002 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5003
98a8e1e5
RH
5004 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5005 (alpha_extract_struct_value_address): Likewise.
5006 (alpha_store_return_value): Likewise.
5007 (alpha_store_struct_return): Remove.
5008 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5009
98a8e1e5
RH
5010 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5011 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5012 macros where appropriate.
5013 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5014 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5015
98a8e1e5
RH
5016 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5017 for SP, GP; void_func_ptr for PC; non-language-specific types
5018 for all others.
5019 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5020
6dd77b81
RH
50212003-06-02 Richard Henderson <rth@redhat.com>
5022
5023 * top.h (lim_at_start): Declare.
5024 * main.c (captured_main): Set it.
5025 * top.c (lim_at_start): Define.
5026 (command_loop): Use it instead of &environ.
5027 * event-top.c (command_handler): Likewise.
5028
f4dbdb54
JT
50292003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5030
5031 * mipsnbsd-tdep.c: Update copyright years.
5032 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5033
8f285956
RH
50342003-06-01 Richard Henderson <rth@redhat.com>
5035
98a8e1e5
RH
5036 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5037 (alpha-linux-tdep.o): Update dependencies.
5038 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5039 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5040
615967cb
RH
50412003-06-01 Richard Henderson <rth@redhat.com>
5042
98a8e1e5
RH
5043 * alpha-tdep.c (alpha_register_reggroup_p): New.
5044 (alpha_gdbarch_init): Register it.
615967cb 5045
b59661bd
AC
50462003-06-02 Andrew Cagney <cagney@redhat.com>
5047
5048 * dwarfread.c: Eliminate "register"
5049 (decode_die_type): Eliminate assignment within "if".
5050 (struct_type, decode_array_element_type): Ditto.
5051 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5052 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5053 (decode_modified_type, completedieinfo): Ditto.
5054 * block.c: Eliminate "register".
5055 (blockvector_for_pc_sect): Eliminate assignment within "if".
5056 * cp-support.h (struct symbol): Opaque declaration.
5057 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5058
5ef165c2
RH
50592003-06-01 Richard Henderson <rth@redhat.com>
5060
98a8e1e5
RH
5061 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5062 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5063
143985b7
AF
50642003-06-01 Adam Fedor <fedor@gnu.org>
5065
5066 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5067 * gdbarch.[ch]: Regenerate.
5068 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5069 (hppa_gdbarch_init): Set it in the gdbarch vector.
5070 * i386-tdep.c (i386_fetch_pointer_argument): New
5071 (i386_gdbarch_init): Set it into gdbarch.
5072 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5073 (rs6000_gdbarch_init): Set it in gdbarch.
5074 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5075 (sparc_gdbarch_init): Set it in gdbarch.
5076
ae0167b9
AC
50772003-06-01 Andrew Cagney <cagney@redhat.com>
5078
7c0b4a20
AC
5079 * defs.h (extract_address): Delete declaration.
5080 * findvar.c (extract_address): Delete function.
5081 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5082 extract_address with the inline equivalent,
5083 extract_unsigned_integer.
5084 (xstormy16_extract_struct_value_address): Ditto.
5085 (xstormy16_pointer_to_address): Ditto.
5086 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5087 * v850-tdep.c (v850_push_arguments): Ditto.
5088 (v850_extract_return_value): Ditto.
5089 (v850_extract_struct_value_address): Ditto.
5090 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5091 (sparcnbsd_get_longjmp_target_64): Ditto.
5092 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5093 (get_longjmp_target): Ditto.
5094 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5095 (sh64_extract_struct_value_address): Ditto.
5096 (sh_push_arguments): Ditto.
5097 (sh64_push_arguments): Ditto.
5098 * remote-vxsparc.c (vx_read_register): Ditto.
5099 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5100 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5101 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5102 * mipsv4-nat.c (get_longjmp_target): Ditto.
5103 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5104 * mips-nat.c (get_longjmp_target): Ditto.
5105 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5106 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5107 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5108 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5109 * irix5-nat.c (get_longjmp_target): Ditto.
5110 * irix4-nat.c (get_longjmp_target): Ditto.
5111 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5112 (ia64_push_arguments): Ditto.
5113 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5114 * h8300-tdep.c (h8300_push_arguments): Ditto.
5115 (h8300_store_return_value): Ditto.
5116 (h8300_extract_struct_value_address): Ditto.
5117 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5118 (frv_push_arguments): Ditto.
5119 * avr-tdep.c (avr_pointer_to_address): Ditto.
5120 (avr_push_arguments): Ditto.
5121 * arm-tdep.c (arm_push_dummy_call): Ditto.
5122 (arm_get_longjmp_target): Ditto.
5123 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5124 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5125 (alpha_get_longjmp_target): Ditto.
5126
ae0167b9
AC
5127 * solib-irix.c (extract_mips_address): Inline extract_address,
5128 replacing it with extract_signed_integer.
5129 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5130 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5131 (first_link_map_member, open_symbol_file_object): Ditto.
5132 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5133 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5134 (LM_NEXT, LM_NAME): Ditto.
5135
44d88583
RH
51362003-06-01 Richard Henderson <rth@redhat.com>
5137
98a8e1e5
RH
5138 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5139 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5140 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5141 (alpha_cannot_store_register): Likewise.
5142 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5143 * alpha-nat.c (supply_gregset): Likewise.
5144 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5145
310e9b6a
AC
51462003-06-01 Andrew Cagney <cagney@redhat.com>
5147
5148 * infcall.c (call_function_by_hand): Update comment on
5149 DEPRECATED_DUMMY_WRITE_SP.
5150
5151 * mips-tdep.c (mips_gdbarch_init): Do not set
5152 deprecated_dummy_write_sp.
5153 (mips_eabi_push_dummy_call): Set the SP register.
5154 (mips_o64_push_dummy_call): Set the SP register.
5155 (mips_o32_push_dummy_call): Set the SP register.
5156 (mips_n32n64_push_dummy_call): Set the SP register.
5157
5ab84872
RH
51582003-06-01 Richard Henderson <rth@redhat.com>
5159
98a8e1e5
RH
5160 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5161 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5162 (supply_gregset): Likewise.
5163 * alpha-tdep.c (alpha_store_return_value): Likewise.
5164 (alpha_get_longjmp_target): Likewise.
5165 (alpha_register_name): Constify array.
5166 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5167 deprecated_register_size, deprecated_register_bytes,
5168 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5169 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5170 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5171
09cc52fd
RH
51722003-06-01 Richard Henderson <rth@redhat.com>
5173
5174 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5175 from arg_reg_buffer to regcache to avoid double conversion.
5176
c7f16359
MK
51772003-06-01 Mark Kettenis <kettenis@gnu.org>
5178
5179 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5180 SP_REGNUM.
5181 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5182 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5183
7131cb6e
RH
51842003-06-01 Richard Henderson <rth@redhat.com>
5185
98a8e1e5
RH
5186 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5187 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5188
f3e0f90b
RH
51892003-06-01 Richard Henderson <rth@redhat.com>
5190
98a8e1e5
RH
5191 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5192 not overlapping PC_REGNUM.
f3e0f90b 5193
c88e30c0
RH
51942003-06-01 Richard Henderson <rth@redhat.com>
5195
98a8e1e5
RH
5196 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5197 alpha_push_arguments. Don't dump argument register data to
5198 the target stack. Fix float and 128-bit long double semantics.
5199 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5200 (alpha_fix_call_dummy): Remove.
5201 (alpha_call_dummy_words): Remove.
5202 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5203
f1a559ae
RH
52042003-06-01 Richard Henderson <rth@redhat.com>
5205
5206 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5207
5e045346
AC
52082003-06-01 Andrew Cagney <cagney@redhat.com>
5209
95404a3e
AC
5210 * mips-tdep.c (is_mips16_addr): New function.
5211 (make_mips16_addr, unmake_mips16_addr): New functions.
5212 (pc_is_mips16, mips_fetch_instruction): Use.
5213 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5214 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5215 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5216 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5217 TARGET_MIPS.
5218 * config/mips/tm-mips.h: Update copyright.
5219 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5220 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5221 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5222 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5223 (TM_PRINT_INSN_MACH): Delete.
5224 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5225
5e045346
AC
5226 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5227 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5228 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5229 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5230 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5231 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5232 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5233 mips*-*-riscos* and mips*-*-sysv* onto mips.
5234 * config/mips/mips64.mt: New file.
5235 * config/mips/mips.mt: New file.
5236 * config/mips/littlemips.mt: Delete file.
5237 * config/mips/decstation.mt: Delete file.
5238 * config/mips/vr4300el.mt: Delete file.
5239 * config/mips/vr5000el.mt: Delete file.
5240 * config/mips/vr5000.mt: Delete file.
5241 * config/mips/vr4100.mt: Delete file.
5242 * config/mips/vr4xxxel.mt: Delete file.
5243 * config/mips/vr4300.mt: Delete file.
5244 * config/mips/vr4xxx.mt: Delete file.
5245 * config/mips/bigmips.mt: Delete file.
5246 * config/mips/bigmips64.mt: Delete file.
5247 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5248 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5249 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5250 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5251 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5252 "tm-bigmips.h".
5253 * config/mips/tm-irix3.h: Ditto.
5254 * config/mips/tm-mipsv4.h: Ditto.
5255 * config/mips/tm-embed.h: Ditto.
5256 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5257 "tm-bigmips64.h".
5258 * config/mips/tm-vr5000el.h: Delete file.
5259 * config/mips/tm-tx39l.h: Delete file.
5260 * config/mips/tm-vr4300el.h: Delete file.
5261 * config/mips/tm-vr4xxxel.h: Delete file.
5262 * config/mips/tm-vr4300.h: Delete file.
5263 * config/mips/tm-vr4100.h: Delete file.
5264 * config/mips/tm-vr4xxx.h: Delete file.
5265 * config/mips/tm-vr5000.h: Delete file.
5266 * config/mips/tm-embedl64.h: Delete file.
5267 * config/mips/tm-embedl.h: Delete file.
5268 * config/mips/tm-embed64.h: Delete file.
5269 * config/mips/tm-bigmips64.h: Delete file.
5270 * config/mips/tm-bigmips.h: Delete file.
5271
2473a4a9
MK
52722003-06-01 Mark Kettenis <kettenis@gnu.org>
5273
97a5b208
MK
5274 Fix gdb/1216.
5275 * shnbsd-nat.c: Include "sh-tdep.h".
5276
2473a4a9
MK
5277 From Richard Henderson <rth@redhat.com>:
5278 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5279
e0f7ec59
AC
52802003-05-31 Andrew Cagney <cagney@redhat.com>
5281
5282 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5283 forward declaration.
5284 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5285 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5286 (mips_find_saved_regs): Use set_reg_offset.
5287 (mips_frame_init_saved_regs): Delete function.
5288 (mips_pop_frame): Call mips_find_saved_regs instead of
5289 DEPRECATED_FRAME_INIT_SAVED_REGS.
5290
68dcc709
AC
52912003-05-31 Andrew Cagney <cagney@redhat.com>
5292
5293 * mips-tdep.c (mips_gdbarch_init): Do not set
5294 deprecated_max_register_raw_size, register_virtual_size, and
5295 deprecated_max_register_virtual_size.
5296
cfc14b3a
MK
52972003-05-31 Mark Kettenis <kettenis@gnu.org>
5298
6405b0a6
MK
5299 * i386-tdep.c: Include "dwarf2-frame.h".
5300 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5301 * Makefile.in (i386-tdep.o): Update dependencies.
5302
cfc14b3a
MK
5303 * dwarf2-frame.c, dwarf2-frame.h: New files.
5304 * Makefile.in (SFILES): Add dwarf2-frame.c.
5305 (dwarf2_frame_h): Define.
5306 (COMMON_OBS): Add dwarf2-frame.o.
5307 (dwarf2-frame.o): Add dependencies.
5308
6a2751d2
AJ
53092003-05-31 Andreas Jaeger <aj@suse.de>
5310
5311 * x86-64-linux-nat.c: Fix comment.
5312
1c3545ae
MK
53132003-05-31 Mark Kettenis <kettenis@gnu.org>
5314
10f93086
MK
5315 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5316 function signature.
5317
1c3545ae
MK
5318 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5319 have a sigcontext_addr handler.
5320 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5321 sigcontext_addr handler.
5322
e11c53d2
AC
53232003-05-31 Andrew Cagney <cagney@redhat.com>
5324
5325 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5326 (print_fp_register_row): Replace do_fp_register_row.
5327 (mips_print_fp_register): Add "file" and "frame" parameters.
5328 (mips_print_register): Add "file" and "frame" parameters.
5329 (mips_print_registers_info): Replace mips_do_registers_info.
5330 (mips_gdbarch_init): Set print_registers_info instead of
5331 deprecated_do_registers_info.
5332 (mips_read_fp_register_single): Add "frame" parameter.
5333 (mips_read_fp_register_double): Add "frame" parameter.
5334
a3386186
MK
53352003-05-31 Mark Kettenis <kettenis@gnu.org>
5336
70913449
MK
5337 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5338 Fixes a bug where GDB would print the wrong register names for
5339 targets without SSE.
5340
2b5e0749
MK
5341 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5342 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5343 registers.
5344
5345 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5346 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5347 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5348 TDEP->sc_sp_offset.
5349
a3386186
MK
5350 From Michal Ludvig <mludvig@suse.cz>:
5351 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5352 and `sc_num_regs'.
5353 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5354 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5355 I386_ST0_REGNUM): Move here from...
5356 * i386-tdep.c: ... here.
5357 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5358 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5359 registers if possible.
5360 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5361 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5362 Remove variables.
5363 (i386bsd_sc_reg_offset): New variable.
5364 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5365 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5366 TDEP->sc_sp_offset.
5367 (i386fbsd_sc_reg_offset): New variable.
5368 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5369 TDEP->sc_num_regs.
5370 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5371 variables.
5372 (i386fbsd4_sc_reg_offset): New variable.
5373 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5374 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5375 TDEP->sc_sp_offset.
5376 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5377 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5378 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5379 Remove variables.
5380 (i386nbsd_sc_reg_offset): New variable.
5381 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5382 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5383 TDEP->sc_sp_offset.
5384 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5385 Remove variables.
5386 (i386obsd_sc_reg_offset): New variable.
5387 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5388 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5389 TDEP->sc_sp_offset.
5390 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5391 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5392 for frame pointer offset in `struct sigcontext'.
5393
25ab4790
AC
53942003-05-31 Andrew Cagney <cagney@redhat.com>
5395
5396 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5397 architecture methods call_dummy_words, sizeof_call_dummy_words,
5398 push_return_address, store_struct_return, and fix_call_dummy. Set
5399 push_dummy_call instead of deprecated_push_arguments.
5400 (mips_store_struct_return): Delete function.
5401 (mips_fix_call_dummy): Delete function.
5402 (mips_push_return_address): Delete function.
5403 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5404 RA_REGNUM and T9_REGNUM.
5405 (mips_n32n64_push_dummy_call): Ditto for
5406 mips_n32n64_push_arguments.
5407 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5408 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5409
6a65450a
AC
54102003-05-31 Andrew Cagney <cagney@redhat.com>
5411
5412 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5413 "dummy_addr" to "bp_addr".
5414 * infcall.c (call_function_by_hand): Pass "funaddr" to
5415 gdbarch_push_dummy_call.
5416 * gdbarch.h, gdbarch.c: Re-generate.
5417 * i386-tdep.c (i386_push_dummy_call): Update.
5418 * arm-tdep.c (arm_push_dummy_call): Update.
5419 * d10v-tdep.c (d10v_push_dummy_call): Update.
5420
c4f35dd8
MK
54212003-05-31 Mark Kettenis <kettenis@gnu.org>
5422
5423 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5424 variable declarations.
5425 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5426 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5427 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5428 x86_64_init_frame_pc, x86_64_init_frame_pc,
5429 x86_64_function_has_prologue): Remove prototypes.
5430 (X86_64_NUM_GREGS): New define.
5431 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5432 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5433 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5434 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5435 XMM1_REGNUM): Remove defines.
5436 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5437 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5438 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5439 X86_64_XMM1_REGNUM): New defines.
5440 (struct x86_64_register_info): Renamed from `struct
5441 register_info'. Remove `size' member.
5442 (x86_64_register_info_table): Remove variable.
5443 (x86_64_register_info): New variable.
5444 (X86_64_NUM_REGS): New define.
5445 (X86_64_NUM_GREGS): Remove define.
5446 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5447 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5448 Remove variables.
5449 (x86_54_dwarf2_reg_to_regnum): Remove function.
5450 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5451 (x86_64_dwarf_reg_to_regnum): New function.
5452 (x86_64_register_name): Rewrite.
5453 (x86_64_register_raw_size): Remove function.
5454 (x86_64_register_byte_table): Remove variable.
5455 (x86_64_register_byte): Remove function.
5456 (x86_64_register_virtual_type): Remove function.
5457 (x86_64_register_type): New function.
5458 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5459 x86_64_register_convert_to_raw): Remove functions.
5460 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5461 (x86_64_use_struct_convention): Make static. Adjust for renamed
5462 defines.
5463 (x86_64_frame_init_saved_regs): Remove function.
5464 (x86_64_push_arguments): Make static. Change to accept a regcache
5465 as argument.
5466 (x86_64_store_return_value, x86_64_extract_return_value): Make
5467 static. Rewrite based on i386 counterparts.
5468 (x86_64_push_dummy_call): New function.
5469 (X86_64_NUM_SAVED_REGS): New define.
5470 (x86_64_register_number): Remove function.
5471 (x86_64_store_struct_return): Remove function.
5472 (x86_64_frameless_function_invocation,
5473 x86_64_function_has_prologue): Remove functions.
5474 (PROLOG_BUFSIZE): Remove define.
5475 (struct x86_64_frame_cache): New structure.
5476 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5477 x86_64_frame_cache, x86_64_frame_this_id,
5478 x86_64_frame_prev_register, x86_64_frame_p,
5479 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5480 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5481 functions.
5482 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5483 variables.
5484 (x86_64_skip_prologue): Rewrite in terms of
5485 x86_64_analyze_prologue.
5486 (x86_64_frame_base_address): New function.
5487 (x86_64_frame_base): New variable.
5488 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5489 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5490 set deprecated_fp_regnum, deprecated_register_size,
5491 deprecated_register_bytes, register_raw_size, register_byte,
5492 register_virtual_type, register_convertiable,
5493 register_convert_to_virtual, convert_to_raw,
5494 deprecated_get_saved_register, deprecated_target_read_fp,
5495 deprecated_push_arguments, deprecated_push_return_address,
5496 deprecated_pop_frame, deprecated_store_struct_return,
5497 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5498 frameless_function_invocation, deprecated_frame_saved_pc,
5499 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5500 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5501 deprecated_init_frame_pc and virtual_frame_pointer. Call
5502 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5503 and x86_64_frame_p. Call frame_base_set_default to register
5504 x86_64_frame_base.
5505 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5506 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5507 (_initialize_x86_64_tdep): Remove function.
5508 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5509 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5510 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5511 define.
5512 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5513 (x86_64_linux_sigcontext_addr): Rewrite.
5514 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5515 x86_64_linux_frame_saved_pc): Remove functions.
5516 (x86_64_linux_pc_in_sigtramp): Renamed from
5517 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5518 trampoline.
5519 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5520 Remove_functions.
5521 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5522 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5523 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5524 (x86_64_regmap): Rename to regmap.
5525 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5526 x86_64_num_gregs.
5527 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5528 x86_64_regmap.
5529 (x86_64_fxsave_offset): Remove function.
5530 (supply_fpregset): Simply call x86_64_supply_fxsave.
5531 (fill_fpregset): Simply call x86_64_fill_fxsave.
5532 (fetch_inferior_registers, store_inferior_registers): Avoid
5533 asignment in if-statement.
5534 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5535 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5536 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5537 (fetch_core_registers): Remove function.
5538 (linux_elf_core_fns): Remove.
5539 (offsetoff): Don't define.
5540 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5541 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5542 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5543 add core-regset.o.
5544 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5545 protection against multiple includes instead of NM_X86_64_h. Add
5546 various comments. Include "config/nm-linux.h". Don't include
5547 <signal.h>.
5548 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5549 GET_THREAD_SIGNALS): Remove defines.
5550 (x86_64_register_u_addr, kernel_u_size,
5551 lin_thread_get_thread_signals): Remove prototypes.
5552 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5553 [HAVE_LINK_H]: Don't include "solib.h".
5554 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5555 * config/i386/tm-x86-64linux.h: Fix comments.
5556 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5557 x86-64-tdep.o): Update dependencies.
5558
c25083af
AC
55592003-05-30 Andrew Cagney <cagney@redhat.com>
5560
c8f55a7b
AC
5561 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5562 Change parameter type to a "struct regcache *".
5563
c25083af
AC
5564 * gdbarch.sh: Regardless of the multi-arch level, always define
5565 the macro when not already defined.
5566 * gdbarch.h, gdbarch.c: Re-generate.
5567
fbe586ae
RH
55682003-05-30 Richard Henderson <rth@redhat.com>
5569
5570 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5571 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5572 (alpha_mdebug_frame_this_id): Likewise.
5573 (alpha_mdebug_frame_prev_register): Likewise.
5574 (alpha_mdebug_frame_base_address): Likewise.
5575 (alpha_mdebug_frame_locals_address): Likewise.
5576 (alpha_mdebug_frame_args_address): Likewise.
5577 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5578 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5579 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5580 loop increment.
5581 (alpha_heuristic_frame_this_id): Make static.
5582 (alpha_heuristic_frame_prev_register): Likewise.
5583 (alpha_heuristic_frame_base_address): Likewise.
5584 * alpha-tdep.h: Update.
5585
acd5c798
MK
55862003-05-30 Mark Kettenis <kettenis@gnu.org>
5587
5588 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5589 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5590 defenitions.
5591 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5592 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5593 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5594 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5595 I386_ST0_REGNUM): New defines.
5596 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5597 codestream_get): Remove define.
5598 (codestream_next_addr, condestream_addr, condestream_buf,
5599 codestream_off, codestream_cnt): Remove variables.
5600 (codestream_fill, codestream_seek, codestream_read): Remove
5601 functions.
5602 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5603 functionality.
5604 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5605 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5606 i386_frame_saved_pc, i386_saved_pc_after_call,
5607 i386_frame_num_args, i386_frame_init_saved_regs,
5608 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5609 i386_push_arguments): Remove functions.
5610 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5611 functionality. Use i386_analyze_prologue instead of
5612 i386_get_frame_setup.
5613 (I386_NUM_SAVED_REGS): New define.
5614 (struct i386_frame_cache): New structure.
5615 (i386_alloc_frame_cache, i386_analyze_struct_return,
5616 i386_skip_probe, i386_analyze_frame_setup,
5617 i386_analyze_register_saves, i386_analyze_prologue,
5618 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5619 i386_frame_prev_register, i386_sigtramp_frame_cache,
5620 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5621 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5622 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5623 New functions.
5624 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5625 New variables.
5626 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5627 I386_EAX_REGNUM and I386_EDX_REGNUM.
5628 (i386_extract_return_value, i386_store_return_value): Use
5629 I386_ST0_REGNUM where appropriate.
5630 (i386_extract_struct_value_address): Rewrite to use extract_address.
5631 (i386_svr4_pc_in_sigtramp): Add comment.
5632 (i386_svr4_sigcontext_addr): Rewrite.
5633 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5634 TDEP->sc_sp_offset.
5635 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5636 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5637 of new defines. Set push_dummy_call, don't set
5638 deprecated_push_arguments, deprecated_push_return_address,
5639 deprecated_pop_frame. Don't set parm_boundary. Don't set
5640 deprecated_frame_chain, deprecated_frame_saved_pc,
5641 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5642 save_dummy_frame_tos, unwind_pc. Call
5643 frame_unwind_append_predicate and frame_base_set_default. Don't
5644 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5645 Don't set frameless_function_invocation. Don't set
5646 deprecated_register_bytes, deprecated_register_size,
5647 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5648 * i386-linux-tdep.c: Fix formatting in some comments.
5649 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5650 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5651 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5652 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5653 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5654 redundant parentheses.
5655 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5656 (i386_linux_sigcontext_addr): Use it. Rewrite.
5657 (find_minsym_and_objfile): Change name of second argument.
5658 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5659 changed. Use frame_pc_unwind instead of
5660 DEPRECATED_SAVED_PC_AFTER_CALL.
5661 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5662 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5663 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5664 unwinder.
5665 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5666 "dummy-frame.h".
5667 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5668 (_initialize_i386_cygwin_tdep): New prototype.
5669 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5670 deprecated_frame_chain_valid.
5671 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5672 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5673 Rely on the SVR4 defaults.
5674 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5675 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5676
c89b70f1
AC
56772003-05-30 Andrew Cagney <cagney@redhat.com>
5678
5679 * infcall.c (call_function_by_hand): Always call
5680 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5681
85b32d22
RH
56822003-05-30 Richard Henderson <rth@redhat.com>
5683
c89b70f1
AC
5684 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5685 increment.
85b32d22 5686
bfe51b1e
JB
56872003-05-29 Jim Blandy <jimb@redhat.com>
5688
5689 Use gdbarch methods for solib stuff on PowerPC Linux.
5690 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5691 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5692 show through.
5693 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5694 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5695 giving the same effect as the #definitions above.
5696
1abf022c
AF
56972003-05-29 Adam Fedor <fedor@gnu.org>
5698
5699 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5700 (find_implementation_from_class): Replace it with the standard
5701 case i.e. do nothing.
5702
d2427a71
RH
57032003-05-29 Richard Henderson <rth@redhat.com>
5704
5705 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5706 (alpha_linux_sigtramp_offset): Use it. Make static.
5707 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5708 update for new frame model.
5709 * alpha-mdebug-tdep.c: New file.
5710 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5711 (alpha_osf1_init_abi): Install it.
5712 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5713 (linked_proc_desc_table): Remove.
5714 (alpha_frame_past_sigtramp_frame): Remove.
5715 (alpha_dynamic_sigtramp_offset): Remove.
5716 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5717 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5718 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5719 (push_sigtramp_desc): Remove.
5720 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5721 (alpha_cannot_store_register): Likewise.
5722 (alpha_sigcontext_addr): Remove.
5723 (alpha_find_saved_regs): Remove.
5724 (alpha_frame_init_saved_regs): Remove.
5725 (alpha_init_frame_pc_first): Remove.
5726 (read_next_frame_reg): Remove.
5727 (alpha_frame_saved_pc): Remove.
5728 (alpha_saved_pc_after_call): Remove.
5729 (temp_proc_desc, temp_saved_regs): Remove.
5730 (alpha_about_to_return): Remove.
5731 (cached_proc_desc): Remove.
5732 (alpha_frame_chain): Remove.
5733 (alpha_print_extra_frame_info): Remove.
5734 (alpha_init_extra_frame_info): Remove.
5735 (alpha_frame_locals_address): Remove.
5736 (alpha_frame_args_address): Remove.
5737 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5738 (alpha_push_dummy_frame): Remove.
5739 (alpha_pop_frame): Remove.
5740 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5741 (alpha_read_insn): New.
5742 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5743 for different insn encodings.
5744 (alpha_in_lenient_prologue): Remove.
5745 (struct alpha_sigtramp_unwind_cache): New.
5746 (alpha_sigtramp_frame_unwind_cache): New.
5747 (alpha_sigtramp_register_address): New.
5748 (alpha_sigtramp_frame_this_id): New.
5749 (alpha_sigtramp_frame_prev_register): New.
5750 (alpha_sigtramp_frame_unwind): New.
5751 (alpha_sigtramp_frame_p): New.
5752 (struct alpha_heuristic_unwind_cache): New.
5753 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5754 don't count nop insns that occur between functions.
5755 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5756 heuristic_proc_desc, but without the mdebug wrapping.
5757 (alpha_heuristic_frame_this_id): New.
5758 (alpha_heuristic_frame_prev_register): New.
5759 (alpha_heuristic_frame_unwind): New.
5760 (alpha_heuristic_frame_p): New.
5761 (alpha_heuristic_frame_base_address): New.
5762 (alpha_heuristic_frame_base): New.
5763 (alpha_unwind_dummy_id): New.
5764 (alpha_unwind_pc): New.
5765 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5766 frame related deprecated initializations; install replacements.
5767 (alpha_dump_tdep): Remove.
5768 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5769 (alpha_read_insn, alpha_after_prologue,
5770 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5771 alpha_heuristic_frame_prev_register,
5772 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5773 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5774 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5775 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5776
93ec1121
AC
57772003-05-29 Andrew Cagney <cagney@redhat.com>
5778
5779 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5780 dependant on the availability of ASSERT_FUNCTION.
5781 (ASSERT_FUNCTION): Do not define when there is no function name.
5782
98f08d3d
KB
57832003-05-29 Kevin Buettner <kevinb@redhat.com>
5784
5785 From Jimi X <jimix@watson.ibm.com>:
5786 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5787
0897f59b
JB
57882003-05-28 Jim Blandy <jimb@redhat.com>
5789
5790 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5791 argument to ptrace to int; the system headers should give it the
5792 right type, and pointers don't fit in ints on powerpc64-*-*.
5793
14898363
L
57942003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5795
5796 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5797 DW_TAG_catch_block.
5798
a7a48797
EZ
57992003-05-26 Elena Zannoni <ezannoni@redhat.com>
5800
5801 * stabsread.c (dbx_lookup_type): Make static.
5802 (read_type): Ditto.
5803 (add_undefined_type): Ditto.
5804 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5805 not export.
5806
f5479e9c
EZ
58072003-05-26 Elena Zannoni <ezannoni@redhat.com>
5808
5809 * hpread.c (hpread_has_name): Make static.
5810 (hpread_psymtab_to_symtab): Ditto.
5811 (file_exists): Ditto.
5812 (hpread_call_pxdb): Ditto.
5813 (hpread_pxdb_needed): Ditto.
5814 (hpread_quick_traverse): Ditto.
5815 (hpread_get_header): Ditto.
5816 (hpread_get_lntt): Ditto.
5817 (hpread_get_slt): Ditto.
5818 (class_of): Ditto.
5819
eb2e12d7
AS
58202003-05-25 Andreas Schwab <schwab@suse.de>
5821
78bf922a
AS
5822 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5823 stack_align and deprecated_extra_stack_alignment_needed.
5824 (m68k_stack_align): Delete.
5825
eb2e12d7
AS
5826 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5827 (m68k_register_virtual_size): Likewise.
5828 (altos_skip_prologue): Remove obsolete function.
5829 (isi_frame_num_args): Likewise.
5830 (news_frame_num_args): Likewise.
5831 (m68k_fix_call_dummy): Make static.
5832 (m68k_push_dummy_frame): Likewise.
5833 (m68k_pop_frame): Likewise.
5834 (m68k_skip_prologue): Likewise.
5835 (m68k_frame_init_saved_regs): Likewise.
5836 (m68k_saved_pc_after_call): Likewise.
5837 (m68k_get_longjmp_target): Make multi-arch.
5838 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5839 structure. Register m68k_get_longjmp_target if enabled.
5840 * m68k-tdep.h (struct gdbarch_tdep): Define.
5841 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5842
5843 * Makefile.in (config.status): Also depend on configure.tgt
5844 and configure.host.
5845 (m68klinux-tdep.o): Update dependencies.
5846 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5847 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5848 (M68K_LINUX_JB_PC): Define.
5849 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5850 and take additional parameter.
5851 (m68k_linux_sigtramp_saved_pc): Update.
5852 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5853 m68k_linux_pc_in_sigtramp, in_plt_section,
5854 find_solib_trampoline_target.
5855 * config/m68k/tm-linux.h: Don't include any tm headers.
5856 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5857 (JB_ELEMENT_SIZE): Likewise.
5858 (JB_PC): Likewise.
5859 (GET_LONGJMP_TARGET): Likewise.
5860 (IN_SIGTRAMP): Likewise.
5861 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5862
eb2c22dc
MK
58632003-05-25 Mark Kettenis <kettenis@gnu.org>
5864
5865 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5866 (sparc32_push_arguments): Re-implement by calling
5867 sparc32_do_push_arguments.
5868
44b7b84e
MK
58692003-05-25 Mark Kettenis <kettenis@gnu.org>
5870
5871 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5872 SPARC_O1_REGNUM): New defines.
5873 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5874 (sparc32_store_return_value): New function.
5875 (sparc_extract_struct_value_address): Rewrite to operate on a
5876 regcache.
5877 (sparc_gdbarch_init): Don't set
5878 deprecated_extract_struct_value_address. Set
5879 extract_struct_value_address instead. Don't set
5880 deprecated_extract_return_value and deprecated_store_return_value
5881 for 32-bit targets. Set extract_return_value and
5882 store_return_value instead.
5883 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5884 DEPRECTAED_EXTRACT_RETURN_VALUE,
5885 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5886 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5887 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5888 (sparc_store_return_value): Remove prototype.
5889 (sparc32_store_return_value): New prototype.
5890 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5891 Adjust prototypes.
5892
f6ad61e3
MK
58932003-05-24 Mark Kettenis <kettenis@gnu.org>
5894
5895 * sparcnbsd-tdep.c: Include "gdb_string.h".
5896
b276f1bb
AC
58972003-05-23 Andrew Cagney <cagney@redhat.com>
5898
5899 * p-valprint.c (pascal_val_print): Replace extract_address with
5900 the inline equivalent extract_unsigned_integer.
5901 * jv-valprint.c (java_value_print): Ditto.
5902 * ada-valprint.c (ada_val_print_1): Ditto.
5903 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5904
e76c5fcc
TR
59052003-05-23 Theodore A. Roth <troth@openavr.org>
5906
5907 * blockframe.c (frameless_look_for_prologue): Remove unused
5908 after_prologue variable.
5909
2cdd89cb
MK
59102003-05-23 Mark Kettenis <kettenis@gnu.org>
5911
5912 * blockframe.c (get_pc_function_start): Rewrite to avoid
5913 asignments in if-statements.
5914
182d43bc
EZ
59152003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5916
5917 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5918 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5919 files, don't relocate absolute symbols (and do use mst_abs).
5920
e8f3fcdd
AC
59212003-05-23 Andrew Cagney <cagney@redhat.com>
5922
5923 * objc-lang.c: Include "gdb_assert.h".
5924 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5925 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5926 (gdb_check, gdb_check_fatal): Delete functions.
5927 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5928 gdb_assert.
5929 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5930 * Makefile.in (objc-lang.o): Update dependencies.
5931
3c23e6fb
ILT
59322003-05-22 Ian Lance Taylor <ian@airs.com>
5933
5934 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5935 with fprintf_filtered, not fprintf_unfiltered.
5936
af1342ab
AC
59372003-05-22 Andrew Cagney <cagney@redhat.com>
5938
5939 * stack.c (frame_info): Inline extract_address, replacing it with
5940 extract_unsigned_integer.
5941 * findvar.c (unsigned_pointer_to_address): Ditto.
5942 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5943 * dwarf2expr.c (dwarf2_read_address): Ditto.
5944 * frame.c (frame_pc_unwind): Update comment.
5945 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5946
47e242ec
JJ
59472003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5948
5949 * infptrace.c (detach): Call print_sys_errmsg rather than
5950 perror_with_name to issue warning message when errno is non-zero
5951 after calling ptrace detach.
5952
e2ac8128
JB
59532003-05-21 J. Brobecker <brobecker@gnat.com>
5954
5955 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5956 macro definitions from here...
5957 * hppa-tdep.c: ...to there.
5958
92b3541e
KB
59592003-05-20 Kevin Buettner <kevinb@redhat.com>
5960
5961 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5962 register_ptrace_addr(). Fix all callers.
5963
55809acb
AS
59642003-05-21 Andreas Schwab <schwab@suse.de>
5965
5966 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5967 dependencies.
5968 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5969 end.
5970 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5971 (_initialize_m68k_linux_tdep): New function.
5972 (m68k_linux_frame_saved_pc): Make static.
5973 (m68k_linux_extract_return_value): Likewise.
5974 (m68k_linux_store_return_value): Likewise.
5975 (m68k_linux_extract_struct_value_address): Likewise.
5976 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5977 Remove.
5978 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5979 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5980 (DEPRECATED_FRAME_SAVED_PC): Remove.
5981
0fbc10f7
KW
59822003-05-20 Kris Warkentin <kewarken@qnx.com>
5983
5984 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5985 regset numbering rather than our own.
5986
58da2eb2
DC
59872003-05-19 David Carlton <carlton@bactrian.org>
5988
5989 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5990
1fcb5155
DC
59912003-05-19 David Carlton <carlton@bactrian.org>
5992
5993 Partial fix for PR c++/827.
5994 * cp-support.h: Include symtab.h.
5995 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5996 * cp-namespace.c: Update contributors.
5997 (cp_lookup_symbol_nonlocal): New.
5998 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5999 (lookup_symbol_file): Ditto.
6000 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6001 * block.h: Declare block_scope, block_using, block_global_block.
6002 * block.c (block_scope): New.
6003 (block_using, block_global_block): Ditto.
6004 * Makefile.in (cp_support_h): Depend on symtab_h.
6005 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6006
5f9a71c3
DC
60072003-05-19 David Carlton <carlton@bactrian.org>
6008
6009 * language.h (struct language_defn): Add 'la_value_of_this'
6010 and 'la_lookup_symbol_nonlocal' members.
6011 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6012 lookup_symbol_static, lookup_symbol_global,
6013 lookup_symbol_aux_block.
6014 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6015 if we should search fields of this and how to do static/global
6016 lookup.
6017 (lookup_symbol_aux_block): Make extern.
6018 (basic_lookup_symbol_nonlocal): New.
6019 (lookup_symbol_static, lookup_symbol_global): Ditto.
6020 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6021 'la_lookup_symbol_nonlocal' members.
6022 * c-lang.c (c_language_defn, cplus_language_defn)
6023 (asm_language_defn, minimal_language_defn): Ditto.
6024 * jv-lang.c (java_language_defn): Ditto.
6025 * language.c (unknown_language_defn, auto_language_defn)
6026 (local_language_defn): Ditto.
6027 * m2-lang.c (m2_language_defn): Ditto.
6028 * objc-lang.c (objc_language_defn): Ditto.
6029 * scm-lang.c (scm_language_defn): Ditto.
6030 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6031 * p-lang.c (pascal_language_defn): Ditto for both.
6032 * Makefile.in (f-lang.o): Depend on value_h.
6033 (p-lang.o): Ditto.
6034
89a9d1b1
DC
60352003-05-19 David Carlton <carlton@bactrian.org>
6036
6037 * block.h: Declare block_static_block.
6038 * block.c (block_static_block): New.
6039 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6040 lookup_symbol_aux_local, calling block_static_block instead.
6041 (lookup_symbol_aux_local): Delete 'static_block' argument.
6042
eed3f8ab
DC
60432003-05-19 David Carlton <carlton@bactrian.org>
6044
6045 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6046
a09d8bda
ML
60472003-05-19 Michal Ludvig <mludvig@suse.cz>
6048
6049 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6050 register numbers mapping.
6051
69636828
AF
60522003-05-18 Adam Fedor <fedor@gnu.org>
6053
6054 * symtab.c (completion_list_objc_symbol): New function.
6055 (make_symbol_completion_list): Use it to add ObjC symbols
6056 when looking though the list.
6057 (language_search_unquoted_string): New function.
6058 (make_file_symbol_completion_list): Use it.
6059
55baeb84
AS
60602003-05-18 Andreas Schwab <schwab@suse.de>
6061
d0b45d99
AS
6062 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6063 dependencies.
6064 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6065 as m68k_linux_extract_return_value.
6066 (DEPRECATED_STORE_RETURN_VALUE): Define as
6067 m68k_linux_store_return_value.
6068 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6069 m68k_linux_extract_struct_value_address.
6070 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6071 get_next_frame, get_frame_base, get_frame_pc.
6072 (m68k_linux_frame_saved_pc): Use get_frame_base.
6073 (m68k_linux_extract_return_value): New function.
6074 (m68k_linux_store_return_value): New function.
6075 (m68k_linux_extract_struct_value_address): New function.
6076 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6077
55baeb84
AS
6078 * c-exp.y (typebase): Remove duplicate occurence of
6079 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6080 of lookup_signed_typename.
55baeb84 6081
b6b08ebf
MK
60822003-05-18 Mark Kettenis <kettenis@gnu.org>
6083
6084 * dwarf2loc.c (find_location_expression): Change type of second
6085 argument to `size_t *'.
6086 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6087 for size variable.
6088
5ad1c190
DC
60892003-05-18 David Carlton <carlton@bactrian.org>
6090
6091 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6092 'linkage_name'. Add comment.
6093 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6094 'linkage_name'.
6095 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6096 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6097 (lookup_block_symbol): Ditto.
6098
b8b527c5
AC
60992003-05-16 Andrew Cagney <cagney@redhat.com>
6100
6101 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6102 * gdbarch.h, gdbarch.c: Re-generate.
6103 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6104 * TODO (REGISTER_BYTES): Delete reference.
6105 * alpha-tdep.c (alpha_gdbarch_init): Update.
6106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6107 * x86-64-tdep.c (x86_64_init_abi): Update.
6108 * vax-tdep.c (vax_gdbarch_init): Update.
6109 * v850-tdep.c (v850_gdbarch_init): Update.
6110 * sparc-tdep.c (sparc_gdbarch_init): Update.
6111 * sh-tdep.c (sh_gdbarch_init): Update.
6112 * s390-tdep.c (s390_gdbarch_init): Update.
6113 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6114 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6115 (ns32k_gdbarch_init_32382): Update.
6116 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6117 * mcore-tdep.c (mcore_gdbarch_init): Update.
6118 * m68k-tdep.c (m68k_gdbarch_init): Update.
6119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6120 * ia64-tdep.c (ia64_gdbarch_init): Update.
6121 * i386-tdep.c (i386_gdbarch_init): Update.
6122 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6123 * hppa-tdep.c (hppa_gdbarch_init): Update.
6124 * h8300-tdep.c (h8300_gdbarch_init): Update.
6125 * frv-tdep.c (frv_gdbarch_init): Update.
6126 * cris-tdep.c (cris_gdbarch_init): Update.
6127 * avr-tdep.c (avr_gdbarch_init): Update.
6128 * arm-tdep.c (arm_gdbarch_init): Update.
6129 * sparc-tdep.c (sparc_pop_frame): Update.
6130 * rs6000-tdep.c (rs6000_pop_frame): Update.
6131 * remote.c (init_remote_state): Update.
6132 (remote_prepare_to_store): Update.
6133 * remote-vx.c (vx_prepare_to_store): Update.
6134 * remote-sds.c (sds_fetch_registers): Update.
6135 (sds_prepare_to_store): Update.
6136 * remote-array.c: Update.
6137 * regcache.c (init_legacy_regcache_descr): Update.
6138 (init_regcache_descr): Update.
6139 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6140 (mips_o64_extract_return_value): Update.
6141 * irix5-nat.c (fetch_core_registers): Update.
6142 * irix4-nat.c (fetch_core_registers): Update.
6143 * i386-tdep.h: Update.
6144 * hppa-tdep.c (pa_do_registers_info): Update.
6145 (pa_do_strcat_registers_info): Update.
6146 * cris-tdep.c (cris_register_bytes_ok): Update.
6147 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6148 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6149 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6150 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6151 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6152 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6153 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6154 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6155 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6156 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6157 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6158 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6159 (REGISTER_BYTES_OK): Update.
6160 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6161 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6162
ee2842e2
ILT
61632003-05-16 Ian Lance Taylor <ian@airs.com>
6164
6165 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6166 (vax_print_insn, print_insn_arg): Remove static functions.
6167 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6168 print_insn_vax from opcodes library.
6169 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6170
973177d3
AC
61712003-05-15 Andrew Cagney <cagney@redhat.com>
6172
aaab4dba
AC
6173 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6174 * target.h (memory_breakpoint_from_pc): Delete declaration.
6175 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6176 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6177 * monitor.c (monitor_insert_breakpoint): Use
6178 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6179 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6180 * gdbarch.h, gdbarch.c: Re-generate.
6181 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6182 (sparc_gdbarch_init): Set breakpoint_from_pc to
6183 sparc_breakpoint_from_pc.
6184 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6185 (BREAKPOINT_FROM_PC): Define.
6186 (sparc_breakpoint_from_pc): Declare.
6187 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6188 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6189 (BREAKPOINT_FROM_PC): Define.
6190 (BREAKPOINT): Delete macro.
6191 * target.h: Update comment.
6192 * s390-tdep.c (s390_gdbarch_init): Update comments.
6193 * remote.c: Update comments.
6194 * remote-mips.c: Update comments.
6195 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6196 * mem-break.c: Update comment.
6197 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6198 (ia64_memory_insert_breakpoint): Update.
6199 * config/sparc/tm-sparc.h: Update comment.
6200 * config/pa/tm-hppa64.h: Update comment.
6201 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6202 (rs6000_breakpoint_from_pc): Update.
6203 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6204 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6205 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6206 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6207 (mips_breakpoint_from_pc): Update.
6208 (mips_dump_tdep): Update.
6209
e06963ff
AC
6210 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6211 * minsyms.c (lookup_minimal_symbol): Inline
6212 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6213
973177d3
AC
6214 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6215 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6216 * p-lang.c (pascal_printstr): Ditto.
6217 * objc-lang.c (objc_printstr): Ditto.
6218 * m2-lang.c (m2_printstr): Ditto.
6219 * jv-valprint.c (java_print_value_fields): Ditto.
6220 * f-lang.c (f_printstr): Ditto.
6221 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6222 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6223 for repeat_count_threshold.
6224 * Makefile.in (cp-valprint.o): Update dependencies.
6225
5ea2bd7f 62262003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6227
5ea2bd7f
JJ
6228 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6229 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6230 they start with mov r2,r12. Support skipping over indirect stores
6231 of the input registers. Upon hitting a non-nop branch instruction
6232 or predicated instruction, bail out by setting lim_pc to the current
6233 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6234 beyond our calculated value and we have trust_limit set,
6235 use the lim_pc value.
6236
cc8c88f3
AC
62372003-05-15 Andrew Cagney <cagney@redhat.com>
6238
6239 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6240 generic_find_dummy_frame.
6241 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6242 (deprecated_generic_find_dummy_frame): Update.
6243 (deprecated_read_register_dummy): Update.
6244 * frame.c (deprecated_generic_get_saved_register): Update.
6245
909cd28e
TR
62462003-05-15 Theodore A. Roth <troth@openavr.org>
6247
6248 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6249 (avr_gdbarch_init): Set breakpoint_from_pc method.
6250
b923b08d
AC
62512003-05-15 Andrew Cagney <cagney@redhat.com>
6252
6253 * regcache.c (build_regcache): Set deprecated_register_valid
6254 directly.
6255 (deprecated_grub_regcache_for_register_valid): Delete function.
6256 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6257 declaration.
6258
ae2f03ac 62592003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6260
6261 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6262 * symtab.c (lookup_symbol_aux): Delete calls to
6263 lookup_symbol_aux_minsyms.
6264 (lookup_symbol_aux_minsyms): Comment out function and
6265 prototype. Delete lookup by mangled name.
ae2f03ac 6266
18ec9831
KB
62672003-05-14 Kevin Buettner <kevinb@redhat.com>
6268
6269 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6270 correctly indicate an empty stack and ``stack_allocated'' to the
6271 indicate the number of elements initially allocated.
6272 (dwarf_expr_grow_stack): Simplify method for computing new
6273 stack size. Don't loop infinitely if ``stack_len'' is zero.
6274 (execute_stack_op): Move ``ctx->in_reg'' initialization
6275 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6276 be used in conjuction with DW_OP_piece. Revise error message
6277 accordingly.
6278
de18ac1f
TR
62792003-05-14 Theodore A. Roth <troth@openavr.org>
6280
6281 * MAINTAINERS: Update my email address.
6282 * avr-tdep.c: Ditto.
6283
176620f1
EZ
62842003-05-14 Elena Zannoni <ezannoni@redhat.com>
6285
6286 * symtab.h (enum domain_enum): Rename from namespace_enum.
6287 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6288 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6289 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6290 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6291 TYPES_NAMESPACE, METHODS_NAMESPACE.
6292 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6293 (struct symbol, struct partial_symbol): Rename field
6294 'namespace_enum namespace' to 'domain_enum domain'.
6295 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6296 Delete old define kludge for namespace.
6297
6298 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6299 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6300 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6301 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6302 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6303 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6304 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6305 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6306 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6307 occurrences of the above.
6308
b7f31508
ILT
63092003-05-14 Ian Lance Taylor <ian@airs.com>
6310
6311 * Makefile.in (install-only): Use $(SHELL) when running
6312 mkinstalldirs.
6313
2fdbdd39
ILT
63142003-05-13 Ian Lance Taylor <ian@airs.com>
6315
a208d82c
ILT
6316 * MAINTAINERS (write after approval): Add myself.
6317
2fdbdd39
ILT
6318 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6319 second and third arguments.
6320 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6321 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6322
fbd9dcd3
AC
63232003-05-13 Andrew Cagney <cagney@redhat.com>
6324
6325 * defs.h (store_address): Delete declaration.
6326 findvar.c (store_address): Delete function.
6327 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6328 store_unsigned_integer.
6329 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6330 * v850-tdep.c (v850_push_arguments): Ditto.
6331 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6332 * sh-tdep.c (sh64_get_saved_register): Ditto.
6333 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6334 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6335 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6336 (mips_get_saved_register): Ditto.
6337 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6338 (find_func_descr, ia64_push_arguments): Ditto.
6339 * i386-tdep.c (i386_push_arguments): Ditto.
6340 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6341 * frv-tdep.c (frv_push_arguments): Ditto.
6342 * frame.c (legacy_saved_regs_prev_register): Ditto.
6343 (deprecated_generic_get_saved_register): Ditto.
6344 * findvar.c (unsigned_address_to_pointer): Ditto.
6345 * dwarf2read.c (dwarf2_const_value): Ditto.
6346 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6347 * alpha-tdep.c (alpha_push_arguments): Ditto.
6348
6760f9e6
JB
63492003-05-12 J. Brobecker <brobecker@gnat.com>
6350
6351 * NEWS: Mention that the hppa-hpux port has been partially
6352 multiarched (32bit ABIT only, so far).
6353
30e221b4
AC
63542003-05-11 Andrew Cagney <cagney@redhat.com>
6355
6356 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6357 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6358 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6359 sim/testsuite/sim/arm/misaligned2.ms, and
6360 sim/testsuite/sim/arm/misaligned3.ms.
6361 * disasm.h (struct ui_file): Add opaque struct declaration.
6362 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6363 * frame.h (struct ui_file): Ditto.
6364
dea7f9ba
MK
63652003-05-11 Mark Kettenis <kettenis@gnu.org>
6366
6367 * value.h: Pretty print.
6368
01986c48
MK
63692003-05-10 Mark Kettenis <kettenis@gnu.org>
6370
6371 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6372
123a958e
AC
63732003-05-08 Andrew Cagney <cagney@redhat.com>
6374
6375 * regcache.h (max_register_size): Delete declaration.
6376 * regcache.c (max_register_size): Delete function.
6377 (struct regcache_descr): Delete field "max_register_size".
6378 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6379 registers fit in MAX_REGISTER_SIZE.
6380 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6381 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6382 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6383 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6384 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6385 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6386 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6387 * dve3900-rom.c, hppa-tdep.c: Ditto.
6388
eb294659
DC
63892003-05-08 David Carlton <carlton@math.stanford.edu>
6390
6391 * valops.c (push_word): Fix typo.
6392
d9d9c31f
AC
63932003-05-08 Andrew Cagney <cagney@redhat.com>
6394
6395 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6396 * gdbarch.h: Re-generate.
6397 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6398 (legacy_max_register_raw_size): Delete declaration.
6399 * regcache.c (legacy_max_register_raw_size): Delete function.
6400 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6401 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6402 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6403 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6404 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6405 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6406 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6407 * findvar.c, dwarf2cfi.c: Ditto.
6408
22540ece
AC
64092003-05-08 Andrew Cagney <cagney@redhat.com>
6410
6411 * mips-tdep.c (read_signed_register): New function, moved to here
6412 from "regcache.c".
6413 (read_signed_register_pid): Ditto.
6414 * regcache.c (read_signed_register_pid): Delete function, moved to
6415 "mips-tdep.c".
6416 (read_signed_register): Ditto.
6417 * regcache.h (read_signed_register): Delete declaration.
6418 (read_signed_register_pid): Delete declaration.
6419
0c92afe8
AC
64202003-05-08 Andrew Cagney <cagney@redhat.com>
6421
6422 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6423 * gdbarch.h: Re-generate.
6424 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6425 (legacy_max_register_virtual_size): Delete declaration.
6426 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6427 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6428 * tracepoint.c (memrange_sortmerge): Ditto.
6429 * sparc-tdep.c (sparc_print_registers): Ditto.
6430 * regcache.c (legacy_max_register_virtual_size): Delete function.
6431
6037b830
JB
64322002-05-08 J. Brobecker <brobecker@gnat.com>
6433
6434 * fork-child.c (escape_bang_in_quoted_argument): New function.
6435 (fork_inferior): Escape '!' characters in quoted arguments
6436 only when needed.
6437
5d62c8b1
JB
64382003-05-08 J. Brobecker <brobecker@gnat.com>
6439
6440 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6441 the language of the CU is not currently supported by GDB.
6442
20a0e81d
JB
64432003-05-08 J. Brobecker <brobecker@gnat.com>
6444
6445 * defs.h (language): Add language_minimal enum value.
6446 * c-lang.c (minimal_language_defn): New language definition.
6447 (_initialize_c_language): Add the new minimal language to the list
6448 of languages known to GDB.
6449
710ee10a
KB
64502003-05-08 Kevin Buettner <kevinb@redhat.com>
6451
6452 * frame.c (get_frame_type): Don't attempt to lazily initialize
6453 frame's unwinder for legacy frames.
6454
1750fa04
AC
64552003-05-07 Andrew Cagney <cagney@redhat.com>
6456
6457 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6458 and "regcache" parameters.
6459 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6460
ddf9f258 64612003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6462
6463 * dwarf2read.c (dwarf_decode_lines): Only use output of
6464 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6465 the current address.
6466
87767c29
AC
64672003-05-07 Andrew Cagney <cagney@redhat.com>
6468
6469 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6470 code.
6471
5e7b2f39
JB
64722003-05-07 Jim Blandy <jimb@redhat.com>
6473
6474 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6475 'maint info symtabs' and 'maint info psymtabs'.
6476 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6477 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6478 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6479 Declarations updated.
6480 * maint.c (maintenance_list_command): Delete.
6481 (_initialize_maint_cmds): Update calls to add_cmd.
6482 * gdbcmd.h (maintenancelistlist): Delete declaration.
6483 * cli/cli-cmds.c (maintenancelistlist): Delete.
6484 (init_cmd_lists): Don't initialize it.
6485 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6486
f6684c31
AC
64872003-05-07 Andrew Cagney <cagney@redhat.com>
6488
6489 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6490 "regcache".
6491 (d10v_print_registers_info): Update.
6492 (d10v_dmap_register, d10v_imap_register): Delete functions.
6493 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6494 and "imap_register".
6495 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6496 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6497 * arch-utils.c (generic_remote_translate_xfer_address): Add
6498 "regcache" and "gdbarch" parameters.
6499 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6500 parameter. Change class to multi-arch.
6501 * gdbarch.h, gdbarch.c: Re-generate.
6502 * remote.c (remote_xfer_memory): Use
6503 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6504
e4846b08
JJ
65052003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6506
6507 * infrun.c (prev_pc): Move declaration ahead of proceed().
6508 (proceed): Refresh prev_pc value before resuming.
6509 (stop_stepping): Remove code to refresh prev_pc.
6510
6b71b8ac
KW
65112003-05-06 Kris Warkentin <kewarken@qnx.com>
6512
6513 * nto-tdep.c: Removed stray comment.
6514
47979a4b
KW
65152003-05-06 Kris Warkentin <kewarken@qnx.com>
6516
6517 * i386-nto-tdep.c: Fix old K&R function definitions.
6518 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6519 Also change add_show_from_set() call to add_setshow_cmd().
6520 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6521
00905d52
AC
65222003-05-05 Andrew Cagney <cagney@redhat.com>
6523
6524 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6525 (fprint_dummy_frames): New function.
6526 (maintenance_print_dummy_frames): New function.
6527 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6528 * frame.c (fprint_frame_id): Make global.
6529 * frame.h (fprint_frame_id): Declare.
6530 * Makefile.in (dummy-frame.o): Update dependencies.
6531
b1e29e33
AC
65322003-05-05 Andrew Cagney <cagney@redhat.com>
6533
6534 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6535 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6536 SIZEOF_CALL_DUMMY_WORDS.
6537 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6538 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6539 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6540 CALL_DUMMY_BREAKPOINT_OFFSET.
6541 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6542 CALL_DUMMY_START_OFFSET.
6543 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6544 * gdbarch.h, gdbarch.c: Re-generate.
6545 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6546 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6547 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6548 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6549 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6550 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6551 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6552 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6553 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6554 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6555 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6556 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6557 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6558 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6559 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6560
65612003-05-05 Kris Warkentin <kewarken@qnx.com>
6562
6563 * configure.tgt: Add i[3456]86-*-nto*.
6564 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6565 * nto-tdep.c: New file. Neutrino target support routines.
6566 * nto-tdep.h: New file. Neutrino target header.
6567 * config/tm-qnxnto.h: New file.
6568 * config/i386/i386nto.mt: New file.
6569 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6570
0ce3d317
AC
65712003-05-04 Andrew Cagney <cagney@redhat.com>
6572
6573 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6574 (load_infrun_state): Ditto.
6575 (struct thread_info): Drop "prev_func_name" field.
6576 * thread.c (load_infrun_state): Update.
6577 (save_infrun_state): Update.
6578 * infrun.c (prev_func_name): Delete variable.
6579 (init_wait_for_inferior): Do not clear prev_func_name.
6580 (stop_stepping, keep_going, context_switch): Do not swap
6581 prev_func_name.
6582 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6583 instead of PC_IN_SIGTRAMP.
6584
46654a5b
AC
65852003-05-04 Andrew Cagney <cagney@redhat.com>
6586
6587 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6588 REGISTER_BYTE with register_offset_hack.
6589 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6590 that REGISTER_BYTE is consistent with the regcache.
6591 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6592 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6593
14b08c1b
MK
65942003-05-04 Mark Kettenis <kettenis@gnu.org>
6595
04c8243f
MK
6596 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6597 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6598
14b08c1b
MK
6599 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6600
c7a11e01
JB
66012003-05-03 J. Brobecker <brobecker@gnat.com>
6602
6603 From Thierry Schneider <tpschneider1@yahoo.com>
6604 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6605 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6606 (mi-cmd-symbol.o): Add rule.
6607
7043d8dc
AC
66082003-05-03 Andrew Cagney <cagney@redhat.com>
6609
6610 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6611 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6612 * gdbarch.h, gdbarch.c: Re-generate.
6613 * d10v-tdep.c (d10v_push_dummy_code): New function.
6614 (d10v_gdbarch_init): Set push_dummy_code.
6615 * infcall.c (legacy_push_dummy_code): New function.
6616 (generic_push_dummy_code): New function.
6617 (push_dummy_code): New function.
6618 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6619 instead of dummy_addr, to push_dummy_call. Move call to
6620 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6621 switch.
6622 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6623
92bf2b80
AC
66242003-05-03 Andrew Cagney <cagney@redhat.com>
6625
6626 * disasm.h (print_insn): Declare.
6627 * disasm.c (init_gdb_disassemble_info): New function.
6628 (gdb_disassembly): Call init_gdb_disassemble_info.
6629 (gdb_print_insn): New function.
6630 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6631 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6632 * mcore-tdep.c: Include "disasm.h"
6633 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6634 * d10v-tdep.c: Include "disasm.h".
6635 (display_trace): Call gdb_print_insn, instead of print_insn.
6636 (print_insn): Delete function.
6637 * printcmd.c: Include "disasm.h".
6638 (print_insn): Delete function.
6639 (print_formatted): Call gdb_print_insn, instead of print_insn.
6640 * Makefile.in (printcmd.o): Update dependencies.
6641 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6642
27d94c49
AC
66432003-05-02 Andrew Cagney <cagney@redhat.com>
6644
82de1e5b
AC
6645 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6646 PC_REGNUM, re-indent.
6647 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6648 PC_REGNUM isn't set.
6649
27d94c49
AC
6650 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6651 * gdbarch.h, gdbarch.c: Re-generate.
6652 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6653 register_virtual_size, pc_regnum, or register_bytes.
6654 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6655 (d10v_register_type): Use D10V_PC_REGNUM.
6656 (d10v_print_registers_info, d10v_read_pc): Ditto.
6657 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6658 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6659
a9c0dc7f
DC
66602003-05-02 David Carlton <carlton@bactrian.org>
6661
6662 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6663 the name with mstrsave.
6664
e33d66ec
EZ
66652003-05-02 Elena Zannoni <ezannoni@redhat.com>
6666
6667 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6668 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6669 (host_charset_name, target_charset_name): New vars for use by
6670 set/show commands.
6671 (host_charset_enum, target_charset_enum): New enums for set/show
6672 commands.
6673 (set_charset_sfunc, set_host_charset_sfunc,
6674 set_target_charset_sfunc): New functions.
6675 (set_host_charset, set_target_charset): Make static.
6676 (list_charsets, set_host_charset_command,
6677 set_target_charset_command): Delete functions.
6678 (show_charset_command): Rewrite as....
6679 (show_charset): Hook this up with the set/show command mechanism.
6680 (_initialize_charset): Change names of charsets to match the
6681 set/show enums. Use host_charset_name and target_charset_name.
6682 Use set/show mechanism for charset, host-charset, target-charset
6683 commands. Do not make 'show host-charset' and 'show
6684 target-charset' be aliases of 'show charset'.
6685
6686 * charset.h (set_host_charset, set_target_charset): Don't export,
6687 they are not used outside the file.
6688
2b6fd0d8
AC
66892003-05-01 Andrew Cagney <cagney@redhat.com>
6690
6691 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6692 (gdb_disassembly): Make "di" non static, always initialize and
6693 cleanup. Always use dis_asm_read_memory.
6694 (gdb_dis_asm_read_memory): Delete function.
6695
6ae2f580
AC
66962003-05-01 Andrew Cagney <cagney@redhat.com>
6697
6698 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6699 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6700
810ecf9f
AC
67012003-04-30 Andrew Cagney <cagney@redhat.com>
6702
6703 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6704 "tm_print_insn_info".
6705 (TARGET_PRINT_INSN_INFO): Delete macro.
6706 (dis_asm_read_memory): Delete function declaration.
6707 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6708 (tm_print_insn_info): Delete variable definition.
6709 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6710 * gdbarch.h, gdbarch.c: Re-generate.
6711 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6712 "deprecated_tm_print_insn_info".
6713 * mcore-tdep.c (mcore_dump_insn): Ditto.
6714 * mips-tdep.c (mips_gdbarch_init): Ditto.
6715 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6716 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6717 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6718 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6719 instead of TARGET_PRINT_INSN_INFO, add comment.
6720 * s390-tdep.c (s390_get_frame_info): Instead of
6721 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6722 (s390_check_function_end, s390_is_sigreturn): Ditto.
6723 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6724 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6725 * disasm.c: Include "gdbcore.h".
6726 (_initialize_disasm): New function, initialize
6727 "deprecated_tm_print_insn_info".
6728 (deprecated_tm_print_insn_info): New variable.
6729 (dis_asm_read_memory): Moved from "corefile.c", made static.
6730 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6731 * Makefile.in (disasm.o): Update dependencies.
6732
07020390
AC
67332003-04-30 Andrew Cagney <cagney@redhat.com>
6734
6735 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6736
a9fa03de
AF
67372003-04-29 Adam Fedor <fedor@gnu.org>
6738
6739 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6740 * infcall.c (find_function_addr): Make non-static.
6741 * infcall.h (find_function_addr): Declare.
6742 * Makefile.in (eval.o): Update dependencies.
6743
1bae87b9
AF
67442003-04-28 Adam Fedor <fedor@gnu.org>
6745
6746 * symtab.c (symbol_find_demangled_name): Check for and demangle
6747 ObjC symbols.
6748 (symbol_init_demangled_name): Init for language_objc as well.
6749
0ba6dca9
AC
67502003-04-28 Andrew Cagney <cagney@redhat.com>
6751
6752 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6753 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6754 * gdbarch.h, gdbarch.c: Re-generate.
6755 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6756 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6757 * inferior.h (deprecated_read_fp): Rename read_fp.
6758 (generic_target_read_fp): Delete declaration.
6759 * regcache.c (generic_target_read_fp): Delete function.
6760 (deprecated_read_fp): Replace read_fp, use
6761 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6762 * d10v-tdep.c (d10v_read_fp): Delete function.
6763 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6764
6765 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6766 deprecated_target_read_fp to generic_target_read_fp.
6767 * sh-tdep.c (sh_gdbarch_init): Ditto.
6768 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6770 * frv-tdep.c (frv_gdbarch_init): Ditto.
6771
6772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6773 deprecated_fp_regnum.
6774 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6775 * vax-tdep.c (vax_gdbarch_init): Ditto.
6776 * v850-tdep.c (v850_gdbarch_init): Ditto.
6777 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6778 * sh-tdep.c (sh_gdbarch_init): Ditto.
6779 * s390-tdep.c (s390_gdbarch_init): Ditto.
6780 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6782 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6783 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6785 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6786 * i386-tdep.c (i386_gdbarch_init): Ditto.
6787 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6788 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6789 * frv-tdep.c (frv_gdbarch_init): Ditto.
6790 * cris-tdep.c (cris_gdbarch_init): Ditto.
6791 * avr-tdep.c (avr_gdbarch_init): Ditto.
6792 * arm-tdep.c (arm_gdbarch_init): Ditto.
6793 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6794
6795 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6796 * v850-tdep.c (v850_gdbarch_init): Ditto.
6797 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6798 * sh-tdep.c (sh_gdbarch_init): Ditto.
6799 * s390-tdep.c (s390_gdbarch_init): Ditto.
6800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6801 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6802 * mips-tdep.c (mips_gdbarch_init): Ditto.
6803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6804 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6805 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6806 * frv-tdep.c (frv_gdbarch_init): Ditto.
6807 * avr-tdep.c (avr_gdbarch_init): Ditto.
6808 * arm-tdep.c (arm_gdbarch_init): Ditto.
6809
6810 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6811 DEPRECATED_FP_REGNUM.
6812 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6813 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6814 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6815 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6816 (sparc32_register_virtual_type): Ditto.
6817 * sh-tdep.c (sh64_frame_chain): Ditto.
6818 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6819 (sh_nofp_frame_init_saved_regs): Ditto.
6820 (sh64_nofp_frame_init_saved_regs): Ditto.
6821 (sh_fp_frame_init_saved_regs): Ditto.
6822 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6823 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6824 * procfs.c (procfs_fetch_registers): Ditto.
6825 (procfs_store_registers): Ditto.
6826 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6827 (store_inferior_registers, fetch_core_registers): Ditto.
6828 (fetch_kcore_registers, clear_regs): Ditto.
6829 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6830 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6831 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6832 * nlm/i386.c (do_status): Ditto.
6833 * mipsv4-nat.c (supply_gregset): Ditto.
6834 * mips-tdep.c: Ditto for comments.
6835 * mips-nat.c (fetch_inferior_registers): Ditto.
6836 (store_inferior_registers, fetch_core_registers): Ditto.
6837 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6838 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6839 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6840 (i386_do_pop_frame, i386_register_type): Ditto.
6841 * hppa-tdep.c (hppa_frame_chain): Ditto.
6842 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6843 (hppa_pop_frame, hppa_read_fp): Ditto.
6844 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6845 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6846 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6847 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6848 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6849 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6850 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6851 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6852 * blockframe.c: Ditto for comments.
6853 * arch-utils.h: Ditto for comments.
6854 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6855 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6856 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6857 * alpha-tdep.h: Ditto for comments.
6858 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6859 (alpha_cannot_store_register): Ditto.
6860 (alpha_push_dummy_frame): Ditto.
6861 * alpha-nat.c (supply_gregset): Ditto.
6862
6863 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6864 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6865 * config/sparc/tm-sparc.h: Update comment.
6866
6867 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6868 deprecated_read_fp instead of TARGET_READ_FP.
6869 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6870 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6871 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6872 deprecated_read_fp instead of read_fp.
6873 * s390-tdep.c (s390_push_arguments): Ditto.
6874 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6875 * frame.h: Ditto in comments.
6876 * frame.c (legacy_get_prev_frame): Ditto.
6877 * dummy-frame.c (dummy_frame_this_id): Ditto.
6878 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6879
d7a27068
AC
68802003-04-28 Andrew Cagney <cagney@redhat.com>
6881
6882 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6883 * gdbarch.h, gdbarch.c: Re-generate.
6884 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6885 * vax-tdep.c (_initialize_vax_tdep): Update.
6886 * v850-tdep.c (_initialize_v850_tdep): Update.
6887 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6888 * s390-tdep.c (_initialize_s390_tdep): Update.
6889 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6890 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6891 * mips-tdep.c (_initialize_mips_tdep): Update.
6892 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6893 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6894 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6895 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6896 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6897 * frv-tdep.c (_initialize_frv_tdep): Update.
6898 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6899 (_initialize_cris_tdep): Update.
6900 * arch-utils.c (legacy_print_insn): Update.
6901 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6902
d2630e69
AF
69032003-04-26 Adam Fedor <fedor@gnu.org>
6904
6905 * linespec.c (decode_objc): New function to decode ObjC calls
6906 (decode_line_1): Check for ObjC calls (using decode_objc)
6907 * Makefile (linespec.o): Update dependencies.
6908
3086aeae
DJ
69092003-04-26 Daniel Jacobowitz <drow@mvista.com>
6910
6911 * breakpoint.h (struct breakpoint_ops): New.
6912 (struct breakpoint): Add ops member.
6913
6914 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6915 (mention): Use new breakpoint ops member.
6916 (set_raw_breakpoint): Initialize ops field to NULL.
6917 (print_exception_catchpoint, print_one_exception_catchpoint)
6918 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6919 (gnu_v3_exception_catchpoint_ops): New.
6920 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6921
1fbec6c3
AF
69222003-04-25 Adam Fedor <fedor@gnu.org>
6923
6924 * Makefile.in (COMMON_OBS): Add objc-lang.o
6925
0ef21242
AC
69262003-04-25 Andrew Cagney <cagney@redhat.com>
6927
6928 * d10v-tdep.c (print_insn): Delete function.
6929 (display_trace): Use TARGET_PRINT_INSN.
6930 (_initialize_d10v_tdep): Do not set tm_print_insn.
6931 (d10v_gdbarch_init): Set print_insn.
6932
f75493ed
AC
69332003-04-25 Andrew Cagney <cagney@redhat.com>
6934
6935 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6936 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6937 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6938 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6939 (nr_dmap_regs, a0_regnum): ... new functions.
6940 (d10v_print_registers_info): Use a0_regnum, use register_size.
6941 (d10v_register_byte): Delete function.
6942 (d10v_register_raw_size): Delete function.
6943 (d10v_register_type): Use a0_regnum.
6944 (d10v_print_registers_info): Use a0_regnum.
6945 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6946 (d10v_gdbarch_init): Do not set register_byte or
6947 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6948 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6949 extract_address.
6950 (trace_command): Use XCALLOC.
6951 (print_insn): Delete reference to tm_print_insn.
6952 (saved_regs_unwinder): Use store_unsigned_integer instead of
6953 store_address.
6954 * frame.h (FRAME_OBSTACK_CALLOC): Define
6955
2202b100
DC
69562003-04-25 David Carlton <carlton@bactrian.org>
6957
6958 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6959
4e45ca2e
AF
69602003-04-24 Adam Fedor <fedor@gnu.org>
6961
6962 * objc-lang.c: Include "valprint.h"
6963 * Makefile.in (objc-lang.o): Update dependencies.
6964
93de3e7f
AF
69652003-04-24 Adam Fedor <fedor@gnu.org>
6966
8ffd9b1b 6967 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6968 architecture dependant compilation and mark as unimplemented
6969 (until they get put in the gdbarch vector).
6970
0f20eeea
DC
69712003-04-23 David Carlton <carlton@bactrian.org>
6972
6973 * cp-support.c (cp_find_first_component): Accept 'operator' in
6974 more locations.
6975
74cfe982
AC
69762003-04-23 Andrew Cagney <cagney@redhat.com>
6977
6978 * infcall.c (call_function_by_hand): Eliminate redundant
6979 indentation. Move "saved_async" and "old_cleanups" to where they
6980 are needed.
8ffd9b1b 6981
52557533
AC
69822003-04-23 Andrew Cagney <cagney@redhat.com>
6983
6984 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6985 and "buffer". Move the "name" code to where it is needed.
6986
158775de
AC
69872003-04-23 Andrew Cagney <cagney@redhat.com>
6988
6989 * infcall.c (call_function_by_hand): Move variables "start_sp",
6990 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6991 code to ON_STACK switch branch.
8ffd9b1b 6992
ebc7896c
AC
69932003-04-23 Andrew Cagney <cagney@redhat.com>
6994
6995 * infcall.c (call_function_by_hand): Make declaration of "i",
6996 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6997 lint.
6998
d727590f
AC
69992003-04-23 Andrew Cagney <cagney@redhat.com>
7000
7001 * infcall.c (call_function_by_hand): Delete variable
7002 "n_method_args". Localize "param_type"'s declaration to the loop
7003 that it is used. Reinstate code assigning to said variable -
7004 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7005 Rationalize code using "param_type".
7006
d585e13a
AC
70072003-04-22 Andrew Cagney <cagney@redhat.com>
7008
7009 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7010 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7011 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7012 to DEPRECATED_PUSH_RETURN_ADDRESS.
7013
051caad9
KB
70142003-04-22 Kevin Buettner <kevinb@redhat.com>
7015
7016 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7017 on the DWARF2 register number prior to fetching a register.
7018
77296879
JB
70192003-04-22 J. Brobecker <brobecker@gnat.com>
7020
7021 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7022 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7023 this macro was always set to 0.
77296879
JB
7024 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7025 considering the fact that this macro was always set to 0.
7026 * hppa-tdep.h (hppa_store_return_value): Likewise.
7027 (hppa_extract_return_value): Likewise.
7028
4252f1df
JB
70292003-04-22 J. Brobecker <brobecker@gnat.com>
7030
7031 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7032 the hppa-pro target only.
7033
14604c6b
JB
70342003-04-21 J. Brobecker <brobecker@gnat.com>
7035
7036 Ongoing multi-arch conversion effort for HP/UX:
7037 * config/pa/tm-hppa.h: Move all macro that are no longer
7038 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7039 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7040
77eb01d1
JB
70412003-04-21 J. Brobecker <brobecker@gnat.com>
7042
7043 * config/pa/tm-hppa.h: Obsolete a section that was only used
7044 for hppa-pro.
7045
61995b3b
JB
70462003-04-21 J. Brobecker <brobecker@gnat.com>
7047
7048 Ongoing multi-arch conversion for HP/UX.
7049 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7050 if already defined (allows hppa64 to stay non-multiarched for now).
7051 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7052
4aa79dcc
AC
70532003-04-21 Andrew Cagney <cagney@redhat.com>
7054
7055 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7056
0f751ff2
AC
70572003-04-21 Andrew Cagney <cagney@redhat.com>
7058
7059 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7060 "i386_num_mmx_regs".
7061
04714b91
AC
70622003-04-21 Andrew Cagney <cagney@redhat.com>
7063
7064 * infcall.c: New file.
7065 * infcall.h: New file.
7066 * valarith.c: Include "infcall.h".
7067 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7068 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7069 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7070 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7071 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7072 (SFILES): Add "infcall.c"
7073 (COMMON_OBS): Add "infcall.o".
7074 (infcall.o): Specify dependencies.
7075 * value.h (call_function_by_hand): Delete declaration.
7076 * inferior.h (run_stack_dummy): Delete declaration.
7077 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7078 (run_stack_dummy): Move to "infcall.c", merged into
7079 call_function_by_hand.
7080 * valops.c (call_function_by_hand): Moved to "infcall.c".
7081 (find_function_addr, value_arg_coerce): Ditto.
7082 (unwindonsignal_p, coerce_float_to_double): Ditto.
7083 (_initialize_valops): Move "set/show coerce-float-to-double", and
7084 "set/show unwindonsignal" commands to "infcall.c".
7085 * v850-tdep.c, target.h: Update comments.
7086 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7087 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7088 (sh64_init_extra_frame_info): Update comments.
7089 * mn10300-tdep.c: Update comments.
7090 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7091 * config/sparc/tm-sparc.h: Update comments.
7092 * breakpoint.h: Update comments.
7093 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7094 * arm-tdep.c: Update comment.
7095
f9d3c2a8
MK
70962003-04-19 Mark Kettenis <kettenis@gnu.org>
7097
c40e1eab
MK
7098 * i386-tdep.c (i386_num_register_names): New variable.
7099 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7100 (MM0_REGNUM): Remove redundant parentheses in define.
7101 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7102 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7103 i386_mxcsr_regnum_p): Remove redundant parentheses.
7104 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7105
94ea66b3
MK
7106 * i386-tdep.c (i386_extract_return_value,
7107 i386_store_return_value): Correct check for availability of
7108 floating-point registers.
7109
54299a1d
MK
7110 * i386-tdep.c (i386_frame_num_args): Remove function.
7111 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7112
c86c27af
MK
7113 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7114 mmx_regnum_to_fp_regnum. Adjust all callers.
7115
f9d3c2a8
MK
7116 * i386-tdep.c (i386_get_longjmp_target): Use
7117 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7118 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7119 extract_address.
7120
94ba74a9
MK
71212003-04-19 Mark Kettenis <kettenis@gnu.org>
7122
7123 * core-regset.c: Update comments to reflect reality. Re-order
7124 includes.
7125 (fetch_core_registers): Use switch instead of if. Remove
7126 redundant prototype.
7127
4074e13c
JB
71282003-04-18 Jim Blandy <jimb@redhat.com>
7129
7130 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7131 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7132
e3ab4aba
RH
71332003-04-17 Richard Henderson <rth@redhat.com>
7134
7135 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7136
627bf7c1
EZ
71372003-04-17 Michael Snyder <msnyder@redhat.com>
7138 Karen Bennet <bennet@redhat.com>
7139
7140 Committed by Elena Zannoni <ezannoni@redhat.com>
7141 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7142
514621a9
EZ
71432003-04-17 Elena Zannoni <ezannoni@redhat.com>
7144
7145 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7146 value if the return type is void.
514621a9 7147
b4acd559
JJ
71482003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7149
7150 * thread-db.c: Reindented.
8ffd9b1b 7151
530b167e 71522003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7153
7154 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7155 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7156 as types.
7157
0a48e7e8
MS
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
8ffd9b1b 7181
ab9fe00e
KB
71822003-04-16 Kevin Buettner <kevinb@redhat.com>
7183
610a3745 7184 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7185 the size of ``long double'' to 16, instead of 8.
7186
e64a344c
MK
71872003-04-16 Mark Kettenis <kettenis@gnu.org>
7188
7189 * i386-linux-nat.c: Add some whitespace to make things more
7190 readable.
7191 (fetch_register, store_register, fetch_inferior_registers,
7192 store_inferior_registers): Get rid of assignment in if-statement.
7193 (store_register): Fix typo in error message.
7194
25d41031
AC
71952003-04-16 Andrew Cagney <cagney@redhat.com>
7196
7197 * utils.c (xmmalloc): Always allocate something, matches
7198 libiberty/xmalloc's semantics.
7199 (xmrealloc, xmcalloc): Ditto.
7200
c50901fd
AC
72012003-04-16 Andrew Cagney <cagney@redhat.com>
7202
7203 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7204 update comments.
7205 (get_frame_type): Initialize unwind and type when needed.
7206 (get_frame_id, frame_register_unwind): Ditto.
7207
f81824a9
AC
72082003-04-16 Andrew Cagney <cagney@redhat.com>
7209
7210 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7211 obsolete.
7212 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7213 * sparcl-stub.c: Obsolete file.
7214 * config/sparc/tm-sparclet.h: Obsolete file.
7215 * sparclet-stub.c: Obsolete file.
7216 * sparclet-rom.c: Obsolete file.
7217 * sparcl-tdep.c: Obsolete file.
7218 * config/sparc/tm-sparclite.h: Obsolete file.
7219 * config/sparc/sparclite.mt: Obsolete file.
7220 * config/sparc/sparclet.mt: Obsolete file.
7221 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7222 sparc86x-*-* obsolete.
7223
9219021c
DC
72242003-04-15 David Carlton <carlton@math.stanford.edu>
7225
7226 * Makefile.in (SFILES): Add cp-namespace.c.
7227 (COMMON_OBS): Add cp-namespace.o.
7228 (block.o): Depend on gdb_obstack_h and cp_support_h.
7229 (buildsym.o): Depend on cp_support_h.
7230 (cp-namespace.o): New.
7231 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7232 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7233 (dwarf2read.o): Depend on cp_support_h.
7234 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7235 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7236 processing_current_namespace.
7237 (read_namespace): Update processing_current_namespace; check for
7238 anonymous namespaces.
7239 (dwarf2_name): New function.
7240 (dwarf2_extension): Ditto.
7241 * cp-support.h: Update copyright, contributors.
7242 Add inclusion guards.
7243 Add opaque declaration for structs obstack, block, symbol.
7244 (struct using_direct): New struct.
7245 Add declarations for cp_find_first_component,
7246 cp_entire_prefix_len, processing_has_namespace_info,
7247 processing_current_namespace, cp_is_anonymous,
7248 cp_add_using_directive, cp_initialize_namespace,
7249 cp_finalize_namespace, cp_set_block_scope,
7250 cp_scan_for_anonymous_namespaces.
7251 * cp-namespace.c: New file.
7252 * cp-support.c: Update copyright.
7253 Include ctype.h, gdb_assert.h, gdbcmd.h.
7254 New variable maint_cplus_cmd_list.
7255 (cp_find_first_component): New function.
7256 (cp_entire_prefix_len, maint_cplus_command)
7257 (first_component_command, _initialize_cp_support): Ditto.
7258 * buildsym.c: Include cp-support.h.
7259 New variable using_list.
7260 (add_symbol_to_list): Check for anonymous namespaces.
7261 (finish_block): Set block's scope.
7262 (start_symtab): Initialize C++ namespace support.
7263 (end_symtab): Finalize C++ namespace support.
7264 * block.h: Add opaque declarations for structs
7265 block_namespace_info, using_direct, and obstack.
7266 Add declarations for block_set_scope and block_set_using.
7267 (struct block): Add 'language_specific' member.
7268 (BLOCK_NAMESPACE): New macro.
7269 * block.c: Include gdb_obstack.h and cp-support.h.
7270 (struct block_namespace_info): New struct.
7271 (block_set_scope): New function.
7272 (block_set_using, block_initialize_namespace): Ditto.
7273
d5a921c9
KB
72742003-04-14 Kevin Buettner <kevinb@redhat.com>
7275
7276 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7277 (locate_base): Return early if there aren't any link map offsets.
7278 (svr4_solib_create_inferior_hook): Warn if shared library support
7279 is unavailable.
7280
d2a52b27
DC
72812003-04-14 David Carlton <carlton@math.stanford.edu>
7282
7283 * symtab.c (symbol_set_names): Add prefix when storing Java names
7284 in hash table. Fix for PR java/1039.
7285
980cae7a
DC
72862003-04-14 David Carlton <carlton@math.stanford.edu>
7287
7288 * symtab.c (symbol_set_names): Rename 'name' arg to
7289 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7290 * symtab.h: Change 'name' argument in declaration of
7291 symbol_set_names to 'linkage_name'.
7292 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7293
e227b13c
AC
72942003-04-14 Andrew Cagney <cagney@redhat.com>
7295
7296 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7297 return the fully sign-extended register value.
7298 (get_frame_pointer): Ditto.
7299 (mips_pop_frame): Initialize "proc_desc" after checking for a
7300 dummy frame.
7301
36712a20
AC
73022003-04-14 Andrew Cagney <cagney@redhat.com>
7303
7304 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7305 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7306 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7307 (mips_push_register): Delete function.
7308 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7309 PUSH_FP_REGNUM.
7310
44ea7b70
JB
73112003-04-14 Jim Blandy <jimb@redhat.com>
7312
7313 * symmisc.c: #include "gdb_regex.h".
7314 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7315 functions.
7316 * maint.c (maintenance_list_command): New function.
7317 (_initialize_maint_cmds): Register the above as commands.
7318 * symtab.h (maintenance_list_symtabs,
7319 maintenance_list_psymtabs): New declarations.
7320 * cli/cli-cmds.c (maintenancelistlist): New variable.
7321 (init_cmd_lists): Initialize it.
7322 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7323 * gdbcmd.h (maintenancelistlist): New declaration.
7324 * Makefile.in (symmisc.o): Update dependencies.
7325
2d0c7962
EZ
73262003-04-14 Elena Zannoni <ezannoni@redhat.com>
7327
7328 * s390-nat.c: Include asm/types.h for addr_t.
7329
1947a811
CV
73302003-04-14 Corinna Vinschen <vinschen@redhat.com>
7331
7332 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7333 actually incoming type.
7334
adb616d7
AC
73352003-04-13 Andrew Cagney <cagney@redhat.com>
7336
7337 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7338 get_next_frame and get_frame_saved_regs.
7339
9b5e151c
AC
73402003-04-13 Andrew Cagney <cagney@redhat.com>
7341
7342 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7343 of gdbarch_num_regs.
7344
ef6e7e13
AC
73452003-04-13 Andrew Cagney <cagney@redhat.com>
7346
7347 * frame.h: Mention what replaced what in "struct frame_info".
7348 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7349 deprecated_update_frame_base_hack and
7350 deprecated_update_frame_pc_hack.
7351 * hppa-tdep.c: Ditto.
7352
61fbb938
DJ
73532003-04-13 Daniel Jacobowitz <drow@mvista.com>
7354
7355 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7356 to read_reg and update its comment. Remove regnum member.
7357 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7358 Don't call read_reg when setting in_reg. Call read_reg to get
7359 the frame base if it's in a register. Return the register number
7360 on the stack instead of in the context. Remove extra arguments
7361 to read_reg.
7362 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7363 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7364 the register number on the expression stack.
7365 (needs_frame_read_reg): Remove extra arguments.
7366
0d53c4c4
DJ
73672003-04-13 Daniel Jacobowitz <drow@mvista.com>
7368
7369 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7370 made non-static.
7371 (execute_stack_op): All callers updated.
7372 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7373 * dwarf2loc.c (find_location_expression): New function.
7374 (dwarf_expr_frame_base): Call it.
7375 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7376 (dwarf2_tracepoint_var_ref): New function, broken out from
7377 locexpr_tracepoint_var_ref.
7378 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7379 Make static.
7380 (loclist_read_variable, loclist_read_needs_frame): New functions.
7381 (loclist_describe_location, loclist_tracepoint_var_ref): New
7382 functions.
7383 (dwarf2_loclist_funcs): New struct location_funcs.
7384 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7385 (struct dwarf2_locexpr_baton): Add comments.
7386 (dwarf2_loclist_funcs): New extern.
7387 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7388 base_address and base_known.
7389 (dwarf_loc_buffer): New variable.
7390 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7391 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7392 (dwarf2_has_info): Initialize dwarf_loc_offset.
7393 (dwarf2_build_psymtabs): Read in .debug_loc.
7394 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7395 DWARF_LOC_SIZE.
7396 (psymtab_to_symtab_1): Likewise. Move base address calculation
7397 here, from...
7398 (dwarf2_get_pc_bounds): ... here. Use the base address from
7399 cu_header.
7400 (dwarf2_symbol_mark_computed): Handle location lists.
7401
6aca59a3
DJ
74022003-04-13 Daniel Jacobowitz <drow@mvista.com>
7403
7404 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7405 if the linkage name demangled successfully.
7406
aca1fcd0
MK
74072003-04-13 Mark Kettenis <kettenis@gnu.org>
7408
97095916
MK
7409 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7410 disassmbly_flavour): Removed.
7411
aca1fcd0
MK
7412 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7413
562a961f
MK
74142003-04-13 Mark Kettenis <kettenis@gnu.org>
7415
7416 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7417
bd013d54
AC
74182003-04-12 Andrew Cagney <cagney@redhat.com>
7419
7420 * frame.h (struct frame_info): Move definition from here ...
7421 * frame.c (struct frame_info): ... to here.
7422
167ef8b1
AC
74232003-04-12 Andrew Cagney <cagney@redhat.com>
7424
7425 * gdbthread.h (save_infrun_state): Delete parameter
7426 "prev_func_start".
7427 (struct thread_info): Delete field "prev_func_start".
7428 (load_infrun_state): Ditto.
7429 * thread.c (load_infrun_state, save_infrun_state): Update.
7430 * infrun.c (prev_func_start): Delete variable.
7431 (context_switch, init_wait_for_inferior): Update.
7432 (stop_stepping, keep_going): Update.
7433
da3331ec
AC
74342003-04-12 Andrew Cagney <cagney@redhat.com>
7435
7436 * gdbarch.sh: Add missing opaque declarations.
7437 * gdbarch.h: Regnerate.
7438 * symtab.h: Add missing opaque declarations.
7439 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7440 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7441 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7442 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7443 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7444 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7445 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7446 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7447 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7448 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7449 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7450 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7451 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7452
18adea3f
AC
74532003-04-11 Andrew Cagney <cagney@redhat.com>
7454
7455 * frame.c (get_frame_id): Return this frame's "id".
7456 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7457 function start.
7458 (legacy_saved_regs_this_id): Replace function body with
7459 internal-error.
7460 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7461 FRAME_OBSTACK_ZALLOC.
7462 (create_new_frame): Mark the frame ID as valid.
7463
2252e863
AO
74642003-04-11 Alexandre Oliva <aoliva@redhat.com>
7465
7466 * Makefile.in (libbfd_h): Added missing setting.
7467 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7468 according to the selected ABI.
7469
a8245ab8
JJ
74702003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7471
7472 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7473
6913c89a
AC
74742003-04-11 Andrew Cagney <cagney@redhat.com>
7475
7476 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7477 SAVED_PC_AFTER_CALL.
7478 * gdbarch.h, gdbarch.c: Regenerate.
7479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7480 * x86-64-tdep.c (x86_64_init_abi): Update.
7481 * vax-tdep.c (vax_gdbarch_init): Update.
7482 * v850-tdep.c (v850_gdbarch_init): Update.
7483 * sparc-tdep.c (sparc_gdbarch_init): Update.
7484 * sh-tdep.c (sh_gdbarch_init): Update.
7485 * s390-tdep.c (s390_gdbarch_init): Update.
7486 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7487 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7488 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7489 * mips-tdep.c (mips_gdbarch_init): Update.
7490 * mcore-tdep.c (mcore_gdbarch_init): Update.
7491 * m68k-tdep.c (m68k_gdbarch_init): Update.
7492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7493 * ia64-tdep.c (ia64_gdbarch_init): Update.
7494 (ia64_saved_pc_after_call): Update declaration.
7495 * i386ly-tdep.c (i386lynx_init_abi): Update.
7496 * i386-tdep.c (i386_gdbarch_init): Update.
7497 * hppa-tdep.c (hppa_gdbarch_init): Update.
7498 * h8300-tdep.c (h8300_gdbarch_init): Update.
7499 * frv-tdep.c (frv_gdbarch_init): Update.
7500 * cris-tdep.c (cris_gdbarch_init): Update.
7501 * avr-tdep.c (avr_gdbarch_init): Update.
7502 * arm-tdep.c (arm_gdbarch_init): Update.
7503 * alpha-tdep.c (alpha_gdbarch_init): Update.
7504 * ns32knbsd-nat.c (frame_num_args): Update.
7505 * ns32k-tdep.c (umax_frame_num_args): Update.
7506 * mips-tdep.c (mips_init_frame_pc_first): Update.
7507 * infrun.c (step_over_function): Update.
7508 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7509 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7510 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7511 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7512 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7513 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7514 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7515 * arch-utils.c (init_frame_pc_default): Update.
7516 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7517 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7518 declaration.
8ffd9b1b 7519
38edeab8
AC
75202003-04-11 Andrew Cagney <cagney@redhat.com>
7521
7522 * i387-tdep.c: Update copyright.
7523 (i387_to_double): Delete function.
7524 (double_to_i387): Delete function.
7525
81f8a206
AC
75262003-04-10 Andrew Cagney <cagney@redhat.com>
7527
7528 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7529 frame's function's address. Simplify.
7530 (d10v_frame_unwind_cache): Check that the frame's function is
7531 non-zero.
7532
6e691f7a
JB
75332003-04-10 Jim Blandy <jimb@redhat.com>
7534
7535 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7536 call to set_gdbarch_deprecated_push_arguments.
7537
7f78e237
AC
75382003-04-10 Andrew Cagney <cagney@redhat.com>
7539
7540 * frame.c (fprint_frame_id): New function.
7541 (fprint_frame_type, fprint_frame): New function.
7542 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7543 (create_sentinel_frame, get_frame_id): Ditto.
7544 (frame_id_p, frame_id_eq): Ditto.
7545 (frame_id_inner, create_new_frame): Ditto.
7546 (legacy_get_prev_frame, get_prev_frame): Ditto.
7547 (deprecated_update_frame_pc_hack): Ditto.
7548 (frame_register_unwind): Ditto.
7549 (deprecated_update_frame_base_hack): Ditto.
7550
f870b49b
CV
75512003-04-10 Corinna Vinschen <vinschen@redhat.com>
7552
7553 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7554 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7555 frame_chain function.
7556 * Makefile.in: Add dependencies due to above change.
7557
7c86889b
CV
75582003-04-10 Corinna Vinschen <vinschen@redhat.com>
7559
7560 * blockframe.c (legacy_frame_chain_valid): Move call to
7561 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7562 inside_entry_file.
7563
d0a55772
AC
75642003-04-09 Andrew Cagney <cagney@redhat.com>
7565
7566 * frame.h (struct frame_id): Replace "pc" and "base" with
7567 "stack_addr" and "code_addr". Update comments.
7568 (frame_id_build): Update parameter names and comment.
7569 (struct frame_info): Replace "id_p" and "id" with "this_id".
7570 * dummy-frame.c (dummy_frame_this_id): Update.
7571 * breakpoint.c (print_one_breakpoint): Update.
7572 * frame.c (get_frame_id): Update.
7573 (get_frame_base, frame_id_build): Update.
7574 (create_sentinel_frame, legacy_get_prev_frame): Update.
7575 (deprecated_update_frame_base_hack): Update.
7576 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7577 (frame_id_inner): Ditto.
7578
ac16bf07
AC
75792003-04-09 Andrew Cagney <cagney@redhat.com>
7580
7581 * defs.h (gdb_print_host_address): Make "addr" parameter a
7582 pointer constant.
7583 * utils.c (gdb_print_host_address): Update.
7584
366cfc9e
KB
75852003-04-09 Kevin Buettner <kevinb@redhat.com>
7586
7587 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7588 register number for R0 is 0.
7589
cd983b5c
JB
75902003-04-09 J. Brobecker <brobecker@gnat.com>
7591
7592 * frame.h (struct gdbarch): Add opaque structure definition
7593 to avoid a compilation warning on LynxOS 4.0.
7594
d1340264
AC
75952003-04-09 Andrew Cagney <cagney@redhat.com>
7596
7597 * frame.h (struct frame_info): Delete field "pc". Replace
7598 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7599 structure.
7600 * frame.c (frame_pc_unwind): Update.
7601 (create_sentinel_frame): Do not set "pc".
7602 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7603 (get_frame_pc): Call frame_pc_unwind.
7604 (deprecated_update_frame_pc_hack): Update.
7605 (create_new_frame): Use "pc" not "->pc".
7606
90a6fffb
AC
76072003-04-09 Andrew Cagney <cagney@redhat.com>
7608
7609 * frame.c (get_frame_id): Eliminate code updating "frame".
7610 (legacy_get_prev_frame): Ditto.
7611 (get_frame_base): Return id.base directly.
7612 (deprecated_update_frame_base_hack): Update "id.base".
7613 * frame.h (struct frame_info): Delete field "frame".
7614
2fbce691
AC
76152003-04-09 Andrew Cagney <cagney@redhat.com>
7616
7617 * NEWS: Mention that the "Sequent family" is obsolete.
7618 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7619 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7620 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7621 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7622 * config/i386/tm-ptx4.h: Obsolete file.
7623 * config/i386/tm-ptx.h: Obsolete file.
7624 * symm-tdep.c: Obsolete file.
7625 * config/i386/symmetry.mt: Obsolete file.
7626 * config/i386/tm-symmetry.h: Obsolete file.
7627 * symm-nat.c: Obsolete file.
7628 * config/i386/nm-symmetry.h: Obsolete file.
7629 * config/i386/xm-symmetry.h: Obsolete file.
7630 * config/i386/symmetry.mh: Obsolete file.
7631 * config/i386/nm-ptx4.h: Obsolete file.
7632 * config/i386/ptx4.mh: Obsolete file.
7633 * config/i386/ptx.mt: Obsolete file.
7634 * config/i386/ptx.mh: Obsolete file.
7635 * config/i386/xm-ptx4.h: Obsolete file.
7636 * config/i386/xm-ptx.h: Obsolete file.
7637
78c43945
AC
76382003-04-09 Andrew Cagney <cagney@redhat.com>
7639
7640 Obsolete mips*-*-mach3*.
7641 * NEWS: Mention that mips*-*-mach3* is obsolete.
7642 * m3-nat.c: Obsolete file.
7643 * config/nm-m3.h: Obsolete file.
7644 * config/mips/tm-mipsm3.h: Obsolete file.
7645 * config/mips/mipsm3.mt: Obsolete file.
7646 * config/mips/mipsm3.mh: Obsolete file.
7647 * config/mips/xm-mipsm3.h: Obsolete file.
7648 * mipsm3-nat.c: Obsolete file.
7649 * configure.host: Obsolete mips-dec-mach3*.
7650 * configure.tgt: Obsolete mips*-*-mach3*.
7651
f1908289
AC
76522003-04-09 Andrew Cagney <cagney@redhat.com>
7653
7654 * doublest.h: Update copyright.
7655 (deprecated_store_floating, deprecated_extract_floating): Rename
7656 store_floating and extract_floating. Update comments.
7657 * doublest.c: Update copyright.
7658 (extract_floating_by_length): Replace extract_floating.
7659 (store_floating_by_length): Replace store_floating.
7660 (deprecated_extract_floating): New function.
7661 (deprecated_store_floating): New function.
7662 (extract_typed_floating): Call extract_floating_by_length.
7663 (store_typed_floating): Call store_floating_by_length.
7664 * x86-64-tdep.c (x86_64_store_return_value): Update.
7665 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7666 (sh64_extract_return_value): Update.
7667 (sh_sh4_register_convert_to_virtual): Update.
7668 (sh_sh64_register_convert_to_virtual): Update.
7669 (sh_sh4_register_convert_to_raw): Update.
7670 (sh_sh64_register_convert_to_raw): Update.
7671 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7672 (rs6000_register_convert_to_raw): Update.
7673 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7674 (ia64_register_convert_to_raw): Update.
7675 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7676 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7677 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7678 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7679 (alpha_register_convert_to_raw): Update.
7680
4443bd83
AC
76812003-04-08 Andrew Cagney <cagney@redhat.com>
7682
7683 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7684 * gdbarch.h, gdbarch.c: Re-generate.
7685 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7686 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7687 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7688 conditionally, use frame_pc_unwind as an alternative. Add
7689 comments.
7690 * arch-utils.c (init_frame_pc_default): Only call
7691 SAVED_PC_AFTER_CALL when available.
7692
c0236d92
EZ
76932003-04-08 Elena Zannoni <ezannoni@redhat.com>
7694
fbe586ae 7695 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7696 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7697 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7698 (start_remote): Ditto.
7699 (handle_inferior_event): Ditto.
7700 (save_inferior_status): Ditto.
7701 (restore_inferior_status): Ditto.
7702 * infcmd.c (attach_command): Ditto.
7703 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7704 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7705 * alpha-tdep.c (heuristic_proc_start): Ditto.
7706 * mips-tdep.c (heuristic_proc_start): Ditto.
7707 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7708 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7709 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7710 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7711 * remote-vx.c (vx_create_inferior): Ditto.
7712
77132003-04-08 Elena Zannoni <ezannoni@redhat.com>
7714
7715 * infrun.c (stop_soon_quietly): Make it an enum, to better
7716 override the default behavior of handle_inferior_event.
7717 (clear_proceed_status): Update uses of stop_soon_quietly to
7718 reflect that it is now an enum.
7719 (start_remote): Ditto.
7720 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7721 is set to handle the new GNU/Linux kernel behavior for
7722 attach/sigstop. Update uses of stop_soon_quietly.
7723 * inferior.h (enum stop_kind): New enum.
7724 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7725 Reset normal handle_inferior_event behavior, afterwards.
7726 * fork-child.c (startup_inferior): Update.
7727 * alpha-tdep.c (heuristic_proc_start): Update.
7728 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7729 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7730 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7731 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7732 * remote-vx.c (vx_create_inferior): Update.
7733 * mips-tdep.c (heuristic_proc_start): Update.
7734
1211bce3
EZ
77352003-04-07 Elena Zannoni <ezannoni@redhat.com>
7736
7737 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7738 be freed more than once, causing wild memory corruptions.
1211bce3 7739 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7740 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7741 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7742 with the "core" target.
1211bce3 7743
f0ef6b29
KB
77442003-04-07 Kevin Buettner <kevinb@redhat.com>
7745
7746 * mips-tdep.c (mips_print_fp_register): New function, created from
7747 do_fp_register_row(). Registers are now (also) printed as hex.
7748 Only one register is printed per row.
7749 (mips_print_register, do_fp_register_row): Print floating point
7750 registers with mips_print_fp_register().
7751
8cf71652
AC
77522003-04-06 Andrew Cagney <cagney@redhat.com>
7753
5e488a7b
AC
7754 * valprint.h (inspect_it): Add extern declaration.
7755 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7756 (selectors_info, classes_info): Ditto.
7757 (find_objc_msgcall): Fix indentation.
7758 (objc_printstr): Delete extern declarations.
7759
8cf71652
AC
7760 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7761
e6ba3bc9
AC
77622003-04-06 Andrew Cagney <cagney@redhat.com>
7763
7764 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7765 Update comment.
7766 * frame.c (legacy_saved_regs_this_id): Update.
7767 (legacy_get_prev_frame): Update.
7768 * xstormy16-tdep.c: Update comment.
7769 * sparc-tdep.c (sparc_frame_chain): Update comment.
7770 * blockframe.c (legacy_frame_chain_valid): Update.
7771
55e1d7e7
AC
77722003-04-06 Andrew Cagney <cagney@redhat.com>
7773
996179ee
AC
7774 * valprint.c (val_print_type_code_int): Delete #ifdef
7775 PRINT_TYPELESS_INTEGER code.
7776
55e1d7e7
AC
7777 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7778 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7779 multi-arch definition.
7780 * gdbarch.h: Re-generate.
7781
43bd9a9e
AC
77822003-04-05 Andrew Cagney <cagney@redhat.com>
7783
7784 Eliminate FRAME_FIND_SAVED_REGS.
7785 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7786 Change FSR parameter to a pointer.
7787 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7788 Assume FSR parameter is a pointer.
7789 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7790 Make fsr a pointer.
7791 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7792 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7793 saved_regs a pointer.
7794 (hppa_frame_saved_pc): Ditto.
7795 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7796 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7797 pointer.
7798 (restore_pc_queue): Make fsr a pointer.
7799 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7800 (hppa_frame_chain): Make saved_regs a pointer, call
7801 hppa_frame_init_saved_regs.
7802 * sparc-tdep.c: Include "gdb_assert.h".
7803 (sparc_frame_find_saved_regs): Replace internal_error with
7804 gdb_assert.
7805 * remote-vxsparc.c (vx_read_register): Delete reference to
7806 FRAME_FIND_SAVED_REGS.
7807 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7808 * gdbarch.h: Regenerate.
7809 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7810 (deprecated_get_frame_saved_regs): Delete declaration.
7811 (struct frame_saved_regs): Delete definition.
7812 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7813 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7814 (hppa_frame_find_saved_regs): Delete declaration.
7815 (FRAME_FIND_SAVED_REGS): Delete macro.
7816 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7817 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7818 FRAME_FIND_SAVED_REGS in comment.
7819
be41e9f4
AC
78202003-04-05 Andrew Cagney <cagney@redhat.com>
7821
7822 * frame.c (frame_func_unwind, get_frame_func): New functions.
7823 * frame.h (get_frame_func, frame_func_unwind): Declare.
7824 (struct frame_info): Add field "prev_func" for caching the
7825 previous frame's function address.
7826 * arm-tdep.c (arm_frameless_function_invocation): Combine
7827 get_pc_function_start and get_frame_pc into get_frame_func.
7828 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7829 (sh64_nofp_frame_init_saved_regs): Ditto.
7830 * s390-tdep.c (s390_function_start): Ditto.
7831 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7832 (rs6000_frameless_function_invocation): Ditto.
7833 (rs6000_frame_saved_pc): Ditto.
7834 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7835 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7836 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7837 (i386_frame_init_saved_regs): Ditto.
7838 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7839 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7840 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7841 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7842 * blockframe.c (frameless_look_for_prologue): Ditto.
7843
a01dd7cc
AC
78442003-04-05 Andrew Cagney <cagney@redhat.com>
7845
7846 * frame.c (legacy_get_prev_frame): Link prev to next at the
7847 function start. Update comments.
7848
5e5592e6
AC
78492003-04-05 Andrew Cagney <cagney@redhat.com>
7850
7851 * frame.c (get_frame_id): Update comment.
7852 (legacy_get_prev_frame): Update comment.
7853 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7854 * gdbarch.h: Regenerate.
7855 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7856 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7857
6fba5002
AC
78582003-04-05 Andrew Cagney <cagney@redhat.com>
7859
7860 * stack.c (print_frame_info): Use get_frame_pc.
7861
7df05f2b
AC
78622003-04-04 Andrew Cagney <cagney@redhat.com>
7863
7864 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7865 the frame's type from the unwinder.
7866 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7867 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7868 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7869 (get_frame_base_address): Use get_frame_type.
7870 (get_frame_locals_address, get_frame_args_address): Ditto.
7871 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7872 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7873 (struct frame_info): Add comment explaining why the frame contains
7874 a "type" field.
7875 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7876 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7877 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7878 NORMAL_FRAME.
7879 * frame-unwind.h: Include "frame.h".
7880 (struct frame_unwind): Add "type" field.
7881 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7882
11889732
AC
78832003-04-04 Andrew Cagney <cagney@redhat.com>
7884
7885 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7886 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7887 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7888 get_frame_base.
7889 (d10v_unwind_dummy_id): Use frame_id_build.
7890 * frame.c (find_frame_sal): Use get_frame_pc.
7891 (create_new_frame): Use deprecated_update_frame_pc_hack and
7892 deprecated_update_frame_base_hack.
7893 (create_sentinel_frame): Add comment about ->pc going away.
7894 (get_prev_frame): Add comment about ->pc going away.
7895 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7896 frame_id_build, deprecated_update_frame_pc_hack and
7897 deprecated_update_frame_base_hack.
7898 (select_frame): Use get_frame_pc.
7899 (legacy_saved_regs_this_id): Use frame_id_build.
7900
50c46a0d
EZ
79012003-04-04 Elena Zannoni <ezannoni@redhat.com>
7902
fbe586ae
RH
7903 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7904 signed integer case.
7905 (classify_argument): Handle enumerations and references.
50c46a0d 7906
50bbdbd9
AC
79072003-04-04 Andrew Cagney <cagney@redhat.com>
7908
7909 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7910 ID to NULL.
7911
36018d2e
AF
79122003-04-01 Adam Fedor <fedor@gnu.org>
7913
7914 * gdb/objc-lang.c (selectors_info): Replace calls to
7915 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7916 SYMBOL_NATURAL_NAME.
7917 (classes_info, find_methods): Likewise.
7918
35cec841
KB
79192003-04-03 Kevin Buettner <kevinb@redhat.com>
7920
7921 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7922 ``mach'' to the value determined by bfd_default_set_arch_mach().
7923
43136899
BR
79242003-04-02 Bob Rossi <bob_rossi@cox.net>
7925
7926 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7927 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7928 (mi-cmd-file.o): Update dependencies.
7929
040b99fd
KB
79302003-04-01 Kevin Buettner <kevinb@redhat.com>
7931
7932 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7933 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7934
9a3d7dfd
AF
79352003-04-01 Adam Fedor <fedor@gnu.org>
7936
7937 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7938 * language.h (struct language_defn): Add la_demangle.
7939 (language_demangle): Declare.
7940 * language.c (language_demangle): New function.
7941 (unk_lang_demangle): Likewise.
7942 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7943 Add ukn_lang_demangle.
9a3d7dfd 7944 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7945 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7946 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7947 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7948 * jv-lang.c (java_demangle): New function
7949 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7950 * objc-lang.c (objc_demangle): Add options argument
7951 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7952 * maint.c (maintenance_demangle): Replace switch with
7953 call to language_demangle.
7954 * utils.c (fprintf_symbol_filtered): Likewise.
7955
5e074003
AC
79562003-04-01 Andrew Cagney <cagney@redhat.com>
7957
7958 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7959 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7960 PRINT_TYPELESS_INTEGER.
7961 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7962 PUSH_RETURN_ADDRESS.
7963
270cb5d6
AC
79642003-04-01 Andrew Cagney <cagney@redhat.com>
7965
7966 * Makefile.in (d10v-tdep.o): Update dependencies.
7967 * d10v-tdep.c: Include "frame-base.h".
7968 (d10v_frame_unwind): Make constant.
7969 (d10v_frame_base_address): New function.
7970 (d10v_frame_base): New variable.
7971 (d10v_gdbarch_init): Set frame_base default.
7972 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7973 comment for base.
7974 (d10v_frame_unwind_cache): Set and use "prev_sp".
7975 (d10v_frame_this_id): Use the previous frame's inner most stack
7976 address and this frame's func address for the frame ID. Use
7977 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7978
6bfb3e36
AC
79792003-04-01 Andrew Cagney <cagney@redhat.com>
7980
7981 * frame.h (get_frame_locals_address, get_frame_args_address):
7982 Refer to the base address, instead of the address of the first
7983 local or parameter.
8ffd9b1b 7984
da62e633
AC
79852003-04-01 Andrew Cagney <cagney@redhat.com>
7986
7987 Add frame debug info addresses:
7988 * frame-base.c: New file.
7989 * frame-base.h: New file.
7990 * frame.h (struct frame_base): Add opaque declaration.
7991 (get_frame_base): Update comment.
7992 (get_frame_base_address): Declare.
7993 (get_frame_locals_address): Declare.
7994 (get_frame_args_address): Declare.
7995 (struct frame_info): Add "base" and "base_cache". Update
7996 comments on the unwinder.
7997 * frame.c: Include "frame-base.h".
7998 (get_frame_locals_address): New function.
7999 (get_frame_base_address): New function.
8000 (get_frame_args_address): New function.
8001 * findvar.c (read_var_value): Use get_frame_locals_address and
8002 get_frame_args_address.
8003 * stack.c (frame_info): Use get_frame_locals_address and
8004 get_frame_args_address.
8005 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8006 moved to "frame-base.c".
8007 * printcmd.c (print_frame_nameless_args): Ditto.
8008 * symtab.h (address_class): Update comments.
8009 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8010 get_frame_base_address.
8011 * dwarf2expr.c (execute_stack_op): Ditto.
8012 * Makefile.in (frame_base_h): Define.
8013 (frame.o): Update dependencies.
8014 (frame-base.o): Add dependencies.
8015 (SFILES): Add frame-base.c.
8016 (COMMON_OBS): Add frame-base.o.
8017
3d30e9c2
AC
80182003-04-01 Andrew Cagney <cagney@redhat.com>
8019
8020 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8021 CALL_DUMMY_LENGTH): Ditto.
8022 * gdbarch.c: Re-generate.
8023 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8024 (CALL_DUMMY_LENGTH): Delete macro.
8025 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8026 * arm-tdep.c (arm_gdbarch_init): Ditto.
8027 * avr-tdep.c (avr_gdbarch_init): Ditto.
8028 * cris-tdep.c (cris_gdbarch_init): Ditto.
8029 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8030 * frv-tdep.c (frv_gdbarch_init): Ditto.
8031 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8032 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8033 * i386-tdep.c (i386_gdbarch_init): Ditto.
8034 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8036 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8037 * mips-tdep.c (mips_gdbarch_init): Ditto.
8038 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8039 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8040 * s390-tdep.c (s390_gdbarch_init): Ditto.
8041 * sh-tdep.c (sh_gdbarch_init): Ditto.
8042 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8043 * v850-tdep.c (v850_gdbarch_init): Ditto.
8044 * vax-tdep.c (vax_gdbarch_init): Ditto.
8045 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8046
ce0c7262
CV
80472003-04-01 Corinna Vinschen <vinschen@redhat.com>
8048
8049 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8050
73dd234f
AC
80512003-04-01 Andrew Cagney <cagney@redhat.com>
8052
8053 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8054 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8055 * gdbarch.h, gdbarch.c: Re-generate.
8056 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8057 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8058 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8059 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8060 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8061 * infcmd.c (run_stack_dummy): Simplify assuming
8062 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8063 * infrun.c (handle_inferior_event): Ditto.
8064 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8065 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8066 * arm-tdep.c (arm_gdbarch_init): Ditto.
8067 * avr-tdep.c (avr_gdbarch_init): Ditto.
8068 * cris-tdep.c (cris_gdbarch_init): Ditto.
8069 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8070 * frv-tdep.c (frv_gdbarch_init): Ditto.
8071 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8072 * i386-tdep.c (i386_gdbarch_init): Ditto.
8073 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8075 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8076 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8077 * mips-tdep.c (mips_gdbarch_init): Ditto.
8078 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8079 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8080 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8081 * s390-tdep.c (s390_gdbarch_init): Ditto.
8082 * sh-tdep.c (sh_gdbarch_init): Ditto.
8083 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8084 * v850-tdep.c (v850_gdbarch_init): Ditto.
8085 * vax-tdep.c (vax_gdbarch_init): Ditto.
8086 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8087
97606a13
DJ
80882003-04-01 Daniel Jacobowitz <drow@mvista.com>
8089
8090 * symfile.c (symfile_relocate_debug_section): Update call to
8091 bfd_simple_get_relocated_section_contents.
8092
e8ab51f7
AC
80932003-03-31 Andrew Cagney <cagney@redhat.com>
8094
8095 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8096 * gdbarch.h, gdbarch.c: Regenerate.
8097 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8098 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8099 available.
8100 * frame.h (generic_fix_call_dummy): Delete declaration.
8101 * dummy-frame.h: Update comment.
8102 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8104 fix_call_dummy.
8105 * sh-tdep.c (sh_gdbarch_init): Ditto.
8106 * s390-tdep.c (s390_gdbarch_init): Ditto.
8107 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8108 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8110 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8111 * i386-tdep.c (i386_gdbarch_init): Ditto.
8112 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8113 * frv-tdep.c (frv_gdbarch_init): Ditto.
8114 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8115 * cris-tdep.c (cris_gdbarch_init): Ditto.
8116 * avr-tdep.c (avr_gdbarch_init): Ditto.
8117 * arm-tdep.c (arm_gdbarch_init): Ditto.
8118
018d1b48
JB
81192003-03-31 J. Brobecker <brobecker@gnat.com>
8120
8121 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8122 (INIT_FRAME_AP): Likewise.
8123 (EXTRA_FRAME_INFO): Likewise.
8124
e9a2674e
AC
81252003-03-31 Andrew Cagney <cagney@redhat.com>
8126
8127 * gdbarch.sh: Include "symfile.h".
8128 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8129 * gdbarch.h, gdbarch.c: Re-generate.
8130 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8132 call_dummy_address, the default is at entry_point_address.
8133 * v850-tdep.c (v850_gdbarch_init): Ditto.
8134 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8135 * sh-tdep.c (sh_gdbarch_init): Ditto.
8136 * s390-tdep.c (s390_gdbarch_init): Ditto.
8137 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8138 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8139 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8140 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8141 * i386-tdep.c (i386_gdbarch_init): Ditto.
8142 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8143 * frv-tdep.c (frv_gdbarch_init): Ditto.
8144 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8145 * cris-tdep.c (cris_gdbarch_init): Ditto.
8146 * arm-tdep.c (arm_gdbarch_init): Ditto.
8147
e8a8712a
AC
81482003-03-31 Andrew Cagney <cagney@redhat.com>
8149
8150 * gdbarch.sh (CALL_DUMMY_P): Delete.
8151 * gdbarch.h, gdbarch.c: Re-generate.
8152 * inferior.h (CALL_DUMMY_P): Delete macro.
8153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8154 * vax-tdep.c (vax_gdbarch_init): Update.
8155 * v850-tdep.c (v850_gdbarch_init): Update.
8156 * sparc-tdep.c (sparc_gdbarch_init): Update.
8157 * sh-tdep.c (sh_gdbarch_init): Update.
8158 * s390-tdep.c (s390_gdbarch_init): Update.
8159 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8160 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8161 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8162 * mips-tdep.c (mips_gdbarch_init): Update.
8163 * mcore-tdep.c (mcore_gdbarch_init): Update.
8164 * m68k-tdep.c (m68k_gdbarch_init): Update.
8165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8166 * ia64-tdep.c (ia64_gdbarch_init): Update.
8167 * i386-tdep.c (i386_gdbarch_init): Update.
8168 * h8300-tdep.c (h8300_gdbarch_init): Update.
8169 * frv-tdep.c (frv_gdbarch_init): Update.
8170 * d10v-tdep.c (d10v_gdbarch_init): Update.
8171 * cris-tdep.c (cris_gdbarch_init): Update.
8172 * breakpoint.c (deprecated_frame_in_dummy): Update.
8173 * avr-tdep.c (avr_gdbarch_init): Update.
8174 * alpha-tdep.c (alpha_gdbarch_init): Update.
8175 * arm-tdep.c (arm_gdbarch_init): Update.
8176 * dummy-frame.c (dummy_frame_this_id): Update comments.
8177 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8178 * frame.c (legacy_get_prev_frame): Ditto.
8179 * valops.c (call_function_by_hand): Delete function.
8180 (hand_function_call): Rename to call_function_by_hand
8181
ed234cf8
AC
81822003-03-30 Andrew Cagney <cagney@redhat.com>
8183
8184 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8185 * value.h (struct value): Update comment.
ed234cf8 8186
06c77151
AC
81872003-03-30 Andrew Cagney <cagney@redhat.com>
8188
6c2b5168
AC
8189 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8190 D10V_FP_REGNUM.
8191 (d10v_gdbarch_init): Do not set fp_regnum.
8192
06c77151
AC
8193 * frame.c (get_frame_base): Force ID initialization.
8194 (get_prev_frame): Move computation of the frame ID from here ...
8195 (get_frame_id): ... to here.
8196 (legacy_get_prev_frame): Mark the frame ID as valid.
8197 * frame.h (struct frame_info): Add field "id_p".
8198
97a1a11c
MK
81992003-03-30 Mark Kettenis <kettenis@gnu.org>
8200
8201 * i386-tdep.c (i386_store_struct_return): Removed.
8202 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8203
6c0e89ed
AC
82042003-03-30 Andrew Cagney <cagney@redhat.com>
8205
8206 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8207 * gdbarch.h, gdbarch.c: Regenerate.
8208 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8210 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8211 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8212 * i386-tdep.c (i386_gdbarch_init): Ditto.
8213 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8214 * cris-tdep.c (cris_gdbarch_init): Ditto.
8215 * vax-tdep.c (vax_gdbarch_init): Ditto.
8216 * s390-tdep.c (s390_gdbarch_init): Ditto.
8217 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8218 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8219 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8220 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8221 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8222 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8223 * sparc-tdep.c (sparc_gdbarch_init): Update.
8224 * sh-tdep.c (sh_gdbarch_init): Update.
8225 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8226 * mips-tdep.c (mips_gdbarch_init): Update.
8227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8228 * ia64-tdep.c (ia64_gdbarch_init): Update.
8229 * frv-tdep.c (frv_gdbarch_init): Update.
8230 * avr-tdep.c (avr_gdbarch_init): Update.
8231 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8232 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8233 instead of when push_dummy_call is not available.
8ffd9b1b 8234
f7dd6af2
AC
82352003-03-30 Andrew Cagney <cagney@redhat.com>
8236
8237 * infttrace.c: Include "gdbthread.h".
8238 (parent_attach_all): Fix function signature.
8239 (call_ptrace): Update call.
8240 * Makefile.in (infttrace.o): Update dependencies.
8241
28f617b3
AC
82422003-03-30 Andrew Cagney <cagney@redhat.com>
8243
8244 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8245 PUSH_RETURN_ADDRESS.
8246 * gdbarch.h, gdbarch.c: Regenerate.
8247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8248 * x86-64-tdep.c (x86_64_init_abi): Update.
8249 * v850-tdep.c (v850_gdbarch_init): Update.
8250 * sparc-tdep.c (sparc_gdbarch_init): Update.
8251 * sh-tdep.c (sh_gdbarch_init): Update.
8252 * s390-tdep.c (s390_gdbarch_init): Update.
8253 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8254 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8255 * mips-tdep.c (mips_gdbarch_init): Update.
8256 * mcore-tdep.c (mcore_gdbarch_init): Update.
8257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8258 * ia64-tdep.c (ia64_gdbarch_init): Update.
8259 * i386-tdep.c (i386_gdbarch_init): Update.
8260 * h8300-tdep.c (h8300_gdbarch_init): Update.
8261 * frv-tdep.c (frv_gdbarch_init): Update.
8262 * cris-tdep.c (cris_gdbarch_init): Update.
8263 * avr-tdep.c (avr_gdbarch_init): Update.
8264 * arm-tdep.c (arm_gdbarch_init): Update.
8265 * valops.c (hand_function_call): Update.
8266
4d628cd7
AC
82672003-03-29 Andrew Cagney <cagney@redhat.com>
8268
8269 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8270 sizeof_call_dummy_words.
8271 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8272 define.
8273 * gdbarch.h: Regenerate.
8ffd9b1b 8274
65e82032
AC
82752003-03-29 Andrew Cagney <cagney@redhat.com>
8276
8277 * infttrace.h: New file.
8278 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8279 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8280 (hpread_read_doc_function_type): Detect an initialized type1.
8281 (hpread_quick_traverse): Initialize mod_name_string.
8282 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8283 (som_solib_get_solib_by_pc): Declare.
8284 (so_lib_thread_start_addr): Declare.
8285 (no_shared_libraries): Declare.
8286 * somread.c (init_import_symbols): Make static. Add forward
8287 declaration.
8288 * config/pa/nm-hppah.h: Include "infttrace.h" for
8289 parent_attach_all.
8290 (hppa_insert_hw_watchpoint): Declare.
8291 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8292 * hppah-nat.c: Include "gdb_string.h".
8293 (parent_attach_all): Delete extern declaration, moved to
8294 "infttrace.h".
8295 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8296 int.
8297 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8298 * Makefile.in (infttrace_h): Define.
8299 (hpread.o): Update dependencies.
8300 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8301 * hppa-hpux-tdep.c: Include "gdb_string.h".
8302 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8303 * infrun.c (handle_inferior_event): Always initialize
8304 stepped_after_stopped_by_watchpoint. Add default and remove
8305 fallthrough in switch statement.
8306 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8307 parameter to int.
8308 (hppa_remove_hw_watchpoint): Ditto.
8309
2c3bbe77
AC
83102003-03-29 Andrew Cagney <cagney@redhat.com>
8311
8312 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8313 offset.
8314
2dd604e7
RE
83152003-03-29 Richard Earnshaw <rearnsha@arm.com>
8316
8317 * arm-tdep.c (arm_push_arguments): Delete.
8318 (struct stack_item): New type.
8319 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8320 (arm_store_struct_return): Delte.
8321 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8322 arm_push_arguments or arm_store_struct_return.
8323
e8933a55
AC
83242003-03-28 Andrew Cagney <cagney@redhat.com>
8325
8326 * Makefile.in (d10v-tdep.o): Update dependencies.
8327 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8328 * d10v-tdep.c: Include "remote.h".
8329 (target_resume_hook): Delete extern declaration.
8330 (target_wait_loop_hook): Ditto.
8331 (tdisassemble_command): Eliminate assignment in "if" conditional.
8332 (d10v_ts2_register_sim_regno): Eliminate call to
8333 legacy_register_sim_regno.
8334 (d10v_ts3_register_sim_regno): Ditto.
8335
6949171e
JJ
83362003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8337
8338 * thread.c: Reindented.
8339 * lin-lwp.c: Ditto.
8340 * linux-proc.c: Ditto.
8341
98c7071f
BR
83422003-03-28 Bob Rossi <bob_rossi@cox.net>
8343
fbe586ae 8344 * MAINTAINERS (write after approval): Add myself.
98c7071f 8345
5edc9ca6
TR
83462003-03-27 Theodore A. Roth <troth@openavr.org>
8347
8348 * objc-exp.y: Add missing semi-colons.
8349
378bfd1b
AC
83502003-03-27 Andrew Cagney <cagney@redhat.com>
8351
8352 * regcache.c (write_sp): Delete function and references.
8353 * inferior.h (write_sp): Delete declaration.
8354 * valops.c (hand_function_call): Replace write_sp with
8355 TARGET_WRITE_SP.
8356 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8357 (sparc_pop_frame): Ditto.
8ffd9b1b 8358
56056df7
AC
83592003-03-27 Andrew Cagney <cagney@redhat.com>
8360
8361 * NEWS: Mention removal of support for hppa*-*-bsd* and
8362 hppa*-*-osf* natives, and hppa*-*-pro* target.
8363 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8364 * config/pa/xm-pa.h: Obsolete file.
8365 * config/pa/xm-hppab.h: Obsolete file.
8366 * config/pa/nm-hppab.h: Obsolete file.
8367 * config/pa/tm-hppab.h: Obsolete file.
8368 * config/pa/tm-hppao.h: Obsolete file.
8369 * config/pa/nm-hppao.h: Obsolete file.
8370 * config/pa/tm-pro.h: Obsolete file.
8371 * config/pa/hppaosf.mt: Obsolete file.
8372 * config/pa/hppaosf.mh: Obsolete file.
8373 * config/pa/hppapro.mt: Obsolete file.
8374 * config/pa/hppabsd.mt: Obsolete file.
8375 * config/pa/hppabsd.mh: Obsolete file.
8376 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8377 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8378 hppa*-*-osf*.
8379
5873a88d
AC
83802003-03-27 Andrew Cagney <cagney@redhat.com>
8381
8382 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8383 push_arguments. Don't set push_return_address or write_sp.
8384 (d10v_push_dummy_call): Replace d10v_push_arguments.
8385 (d10v_push_return_address, d10v_write_sp): Delete function,
8386 handled by push_dummy_call.
8387
b81774d8
AC
83882003-03-26 Andrew Cagney <cagney@redhat.com>
8389
8390 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8391 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8392 regcache and dummy_addr parameters.
8393 * gdbarch.h, gdbarch.c: Re-generate.
8394 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8395 available; assume it will handle stack alignment and return
8396 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8397 legacy_push_arguments.
8398 (legacy_push_arguments): Rename default_push_arguments.
8399 * value.h (legacy_push_arguments): Rename default_push_arguments.
8400 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8401 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8402 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8403 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8404 * config/i386/tm-symmetry.h: Update.
8405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8406 * x86-64-tdep.c (x86_64_init_abi): Update.
8407 * v850-tdep.c (v850_gdbarch_init): Update.
8408 * sparc-tdep.c (sparc_gdbarch_init): Update.
8409 * sh-tdep.c (sh_gdbarch_init): Update.
8410 * s390-tdep.c (s390_gdbarch_init): Update.
8411 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8412 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8413 * mips-tdep.c (mips_gdbarch_init): Update.
8414 * mcore-tdep.c (mcore_gdbarch_init): Update.
8415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8416 * ia64-tdep.c (ia64_gdbarch_init): Update.
8417 * i386-tdep.c (i386_gdbarch_init): Update.
8418 * hppa-tdep.c (hppa_gdbarch_init): Update.
8419 * h8300-tdep.c (h8300_gdbarch_init): Update.
8420 * frv-tdep.c (frv_gdbarch_init): Update.
8421 * d10v-tdep.c (d10v_gdbarch_init): Update.
8422 * cris-tdep.c (cris_gdbarch_init): Update.
8423 * avr-tdep.c (avr_gdbarch_init): Update.
8424 * arm-tdep.c (arm_gdbarch_init): Update.
8425 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8426 * alpha-tdep.c (alpha_gdbarch_init): Update.
8427
f541410f
DJ
84282003-03-26 Daniel Jacobowitz <drow@mvista.com>
8429
8430 * signals/signals.c (do_target_signal_to_host): Correct realtime
8431 signal range test.
8432
69f567ae
DJ
84332003-03-26 Daniel Jacobowitz <drow@mvista.com>
8434
8435 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8436 (struct sal_chain, map_catch_names): Remove.
8437 (catch_exception_command_1): Don't call
8438 handle_gnu_4_16_catch_command.
8439
d5d14a5a
DJ
84402003-03-26 Daniel Jacobowitz <drow@mvista.com>
8441
8442 From Mark Dettinger <dettinge@de.ibm.com>:
8443 * dwarf2cfi.c (read_2u): Increment pointer by two.
8444
bdd73e22
DJ
84452003-03-26 Daniel Jacobowitz <drow@mvista.com>
8446
8447 * signals/signals.c: Fix typos in last change.
8448
960cb555
DJ
84492003-03-26 Daniel Jacobowitz <drow@mvista.com>
8450
8451 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8452 not already defined. Use __SIGRTMIN if available.
8453 (target_signal_from_host): Remove SIGRTMIN block.
8454 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8455 the signal is within the realtime range.
8456
f636b87d
AF
84572003-03-25 Adam Fedor <fedor@gnu.org>
8458
8459 * Makefile.in (infrun.o): Add $(language_h)
8460 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8461 for language specific trampolines.
8462 * language.h (struct language_defn): Add skip_trampoline.
8463 (skip_language_trampoline): Declare.
8464 * language.c (unk_lang_trampoline, skip_language_trampoline):
8465 New functions.
8466 (unknown_language_defn, auto_language_defn, local_language_defn):
8467 Add ukn_lang_trampoline.
8468 * ada-lang.c (ada_language_defn): Add NULL for language
8469 specific skip_trampoline.
8470 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8471 scm-lang.c: Likewise.
8472 * objc-lang.c (objc_skip_trampoline): New function.
8473 (objc_language_defn): Add objc_skip_trampoline.
8474
28f617b3 84752003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8476
8477 * frame.c (get_prev_frame): Delay validating a frame's ID -
8478 non-NULL, didn't go backwards - until an attempt to unwind it to
8479 the previous frame.
8480
f933a9c5
AC
84812003-03-25 Andrew Cagney <cagney@redhat.com>
8482
8483 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8484 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8485 * gdbarch.h, gdbarch.c: Re-generate.
8486 * config/sparc/tm-sparc.h
8487 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8488 * sparc-tdep.c (sparc_gdbarch_init): Set
8489 deprecated_extra_stack_alignment_needed.
8490 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8492 extra_stack_alignment_needed.
8493 * v850-tdep.c (v850_gdbarch_init): Ditto.
8494 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8495 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8496 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8497 * cris-tdep.c (cris_gdbarch_init): Ditto.
8498 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8500
4183d812
AC
85012003-03-25 Andrew Cagney <cagney@redhat.com>
8502
8503 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8504 STORE_STRUCT_RETURN.
8505 * gdbarch.h, gdbarch.c: Regenerate.
8506 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8507 (d10v_push_arguments): Set the struct return register.
8508 (d10v_gdbarch_init): Update.
8509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8510 * x86-64-tdep.c (x86_64_init_abi): Update.
8511 * vax-tdep.c (vax_gdbarch_init): Update.
8512 * v850-tdep.c (v850_gdbarch_init): Update.
8513 * sparc-tdep.c (sparc_gdbarch_init): Update.
8514 * sh-tdep.c (sh_gdbarch_init): Update.
8515 * s390-tdep.c (s390_gdbarch_init): Update.
8516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8517 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8518 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8519 * mips-tdep.c (mips_gdbarch_init): Update.
8520 * mcore-tdep.c (mcore_gdbarch_init): Update.
8521 * m68k-tdep.c (m68k_gdbarch_init): Update.
8522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8523 * ia64-tdep.c (ia64_gdbarch_init): Update.
8524 * i386-tdep.c (i386_gdbarch_init): Update.
8525 * hppa-tdep.c (hppa_gdbarch_init): Update.
8526 * h8300-tdep.c (h8300_gdbarch_init): Update.
8527 * frv-tdep.c (frv_gdbarch_init): Update.
8528 * cris-tdep.c (cris_gdbarch_init): Update.
8529 * avr-tdep.c (avr_gdbarch_init): Update.
8530 * arm-tdep.c (arm_gdbarch_init): Update.
8531 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8532
1bf6d5cc
AC
85332003-03-25 Andrew Cagney <cagney@redhat.com>
8534
8535 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8536 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8537 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8538 * gdbarch.h, gdbarch.c: Regenerate.
8539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8540 call_dummy_stack_adjust_p.
8541 * vax-tdep.c (vax_gdbarch_init): Ditto.
8542 * v850-tdep.c (v850_gdbarch_init): Ditto.
8543 * sh-tdep.c (sh_gdbarch_init): Ditto.
8544 * s390-tdep.c (s390_gdbarch_init): Ditto.
8545 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8546 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8548 * mips-tdep.c (mips_gdbarch_init): Ditto.
8549 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8550 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8552 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8553 * i386-tdep.c (i386_gdbarch_init): Ditto.
8554 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8555 * frv-tdep.c (frv_gdbarch_init): Ditto.
8556 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8557 * cris-tdep.c (cris_gdbarch_init): Ditto.
8558 * avr-tdep.c (avr_gdbarch_init): Ditto.
8559 * arm-tdep.c (arm_gdbarch_init): Ditto.
8560 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8561 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8562 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8563 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8564 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8565 call_dummy_stack_adjust_p.
8566 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8567 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8568 * sparc-tdep.c (sparc32_push_arguments): Update.
8569 * valops.c (hand_function_call): Update.
8570
71c08af0
CV
85712003-03-25 Corinna Vinschen <vinschen@redhat.com>
8572
8573 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8574 set_gdbarch_char_signed.
8575
30757f90
RE
85762003-03-25 Richard Earnshaw <rearnsha@arm.com>
8577
8578 PR cli/548
8579 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8580
03d48a7d
RE
85812003-03-25 Richard Earnshaw <rearnsha@arm.com>
8582
8583 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8584 (_initialize_arm_tdep): Don't set tm_print_insn.
8585
2cf6873c
AF
85862003-03-24 Adam Fedor <fedor@gnu.org>
8587
8588 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8589 * objc-lang.h: Add multiple inclusion protection.
8590 (start_msglist, add_msglist, end_msglist): Additional declarations.
8591
17c0759e
RE
85922003-03-24 Richard Earnshaw <rearnsha@arm.com>
8593
8594 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8595 value was renamed to ARM_FLOAT_SOFT_FPA.
8596
618ce49f
AC
85972003-03-23 Andrew Cagney <cagney@redhat.com>
8598
8599 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8600 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8601 * gdbarch.h, gdbarch.c: Regenerate.
8602 * valops.c (hand_function_call): Update.
8603 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8604 * frame.c (legacy_saved_regs_this_id): Update.
8605 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8606 * dummy-frame.h: Update.
8607 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8608 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8609 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8610 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8611 * config/m68k/tm-sun3.h: Update.
8612 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8613 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8614 * x86-64-tdep.c (x86_64_init_abi): Update.
8615 * vax-tdep.c (vax_gdbarch_init): Update.
8616 * v850-tdep.c (v850_gdbarch_init): Update.
8617 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8618 * sh-tdep.c (sh_gdbarch_init): Update.
8619 * s390-tdep.c (s390_gdbarch_init): Update.
8620 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8621 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8622 (frame_get_saved_regs): Update.
8623 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8624 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8625 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8626 * mips-tdep.c (mips_gdbarch_init): Update.
8627 * mcore-tdep.c (mcore_gdbarch_init): Update.
8628 * m68k-tdep.c (m68k_gdbarch_init): Update.
8629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8630 * ia64-tdep.c (ia64_gdbarch_init): Update.
8631 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8632 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8633 (i386_interix_back_one_frame): Update.
8634 * hppa-tdep.c (hppa_gdbarch_init): Update.
8635 (hppa_init_extra_frame_info): Update.
8636 * h8300-tdep.c (h8300_gdbarch_init): Update.
8637 * frv-tdep.c (frv_gdbarch_init): Update.
8638 * cris-tdep.c (cris_gdbarch_init): Update.
8639 * avr-tdep.c (avr_gdbarch_init): Update.
8640 * arm-tdep.c (arm_gdbarch_init): Update.
8641 * alpha-tdep.c (alpha_gdbarch_init): Update.
8642
fd50bc42
RE
86432003-03-22 Richard Earnshaw <rearnsha@arm.com>
8644
8645 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8646 (arm_get_fp_model): Declare.
8647 * arm-tdep.c (fp_model_strings): New string array.
8648 (arm_fp_model, current_fp_model): New variables.
8649 (arm_get_fp_model): New function.
8650 (arm_set_fp): New function.
8651 (set_fp_model_sfunc): New function.
8652 (show_fp_model): New function.
8653 (_initialize_arm_tdep): Add new command to set/show the FPU.
8654 (arm_extract_return_value): Use arm_get_fp_model.
8655 (arm_store_return_value): Likewise.
8656 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8657 to initialize the floating-point data types.
8658 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8659 model is FPA.
8660
26304000
RE
86612003-03-22 Richard Earnshaw <rearnsha@arm.com>
8662
8663 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8664 the current setting of each value.
8665 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8666 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8667 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8668 commands and add new version as subcommands of "set/show arm".
8669
afd7eef0
RE
86702003-03-22 Richard Earnshaw <rearnsha@arm.com>
8671
8672 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8673 (set_arm_command, show_arm_command): New functions.
8674 (_initialize_arm_tdep): Add them.
8675 (num_disassembly_options): Renamed from num_flavor_options.
8676 (valid_disassembly_styles): Renamed from valid_flavors.
8677 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8678 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8679 set_disassembly_flavor_sfunc.
8680 (set_disassembly_style): Renamed from set_disassembly_flavor.
8681 (arm_othernames): Updated.
8682 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8683 command. Add "set/show arm disassembly" commands. Deprecate
8684 "othernames" command.
8685
299a7944
RE
86862003-03-22 Richard Earnshaw <rearnsha@arm.com>
8687
8688 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8689 (arm-tdep.o): Depend on elf_arm_h.
8690
c1dac9e6
RE
86912003-03-22 Richard Earnshaw <rearnsha@arm.com>
8692
8693 * Makefile.in (coff_internal_h): Define.
8694 (arm-tdep.o): Update dependencies.
8695
2702d96c
RE
86962003-03-22 Richard Earnshaw <rearnsha@arm.com>
8697
8698 * arm-tdep.c (prologue_cache): Delete.
8699 (check_prologue_cache, save_prologue_cache): Delete.
8700 (arm_scan_prologue): Don't check or update the prologue_cache.
8701 (arm_gdb_arch_init): Don't initialize it.
8702 (_initialize_arm_tdep): Likewise.
8703
27d5d74b
SC
87042003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8705
8706 * MAINTAINERS (tui): Maintainer of tui code.
8707
1762d96d
CV
87082003-03-21 Corinna Vinschen <vinschen@redhat.com>
8709
8710 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8711 (i386-cygwin-tdep.o): Add dependencies.
8712 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8713 * i386-cygwin-tdep.c: New file.
8714 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8715 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8716
4c2e2391
AC
87172003-03-20 Andrew Cagney <cagney@redhat.com>
8718
f20d38b7
AC
8719 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8720 (handle_inferior_event): Remove code calling
8721 DYNAMIC_TRAMPOLINE_NEXTPC.
8722
0022b738
AC
8723 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8724 already has a full path.
8725
864dbc90
AC
8726 * main.c (gdb_main): Return 1.
8727 (captured_main): Call error to report an invalid interpreter.
8728
4c2e2391
AC
8729 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8730 * alpha-osf1-tdep.c: Include "gdb_string.h".
8731
5ef7553b
JB
87322003-03-19 J. Brobecker <brobecker@gnat.com>
8733
8734 Continuing work to convert the hppa targets to multiarch partial.
8735
8736 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8737 method, now that hppa_push_dummy_frame has a conformant prototype.
8738 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8739 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8740 for the switch to multiarch partial.
8741
7bde8967
KB
87422003-03-19 Kevin Buettner <kevinb@redhat.com>
8743
8744 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8745 when iss is issNull.
8746
b006a9e9
KB
87472003-03-18 Kevin Buettner <kevinb@redhat.com>
8748
8749 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8750 NUM_REGS bounds check.
8751
5e2e9765
KB
87522003-03-18 Kevin Buettner <kevinb@redhat.com>
8753
8754 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8755 * mips-tdep.c (gdb_assert.h): Include.
8756 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8757 (mips_register_name): Handle integer registers explicitly. Add
8758 bounds checking.
8759 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8760 (mips_lsi33k_reg_names): Don't list integer registers; they're
8761 handled by mips_register_name() now.
8762 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8763 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8764 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8765 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8766 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8767
a2867626
AC
87682003-03-18 Andrew Cagney <cagney@redhat.com>
8769
8770 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8771 a void pointer.
8772 * gdbtypes.h (print_scalar_formatted): Update declaration.
8773 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8774
06600e06
JB
87752003-03-18 J. Brobecker <brobecker@gnat.com>
8776
8777 * infrun.c (observer.h): Add #include.
8778 (normal_stop): Add call to observer_notify_normal_stop.
8779 * Makefile.in (infrun.o): Add dependency on observer.h.
8780
7daf4f5b
JB
87812003-03-18 J. Brobecker <brobecker@gnat.com>
8782
8783 Continuing work to convert the hppa targets to multiarch partial.
8784 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8785 parameter. Reformat comment.
8786 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8787 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8788 to match new profile.
8789
3371ccc0
JB
87902003-03-18 J. Brobecker <brobecker@gnat.com>
8791
8792 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8793 appear to be working in any case.
8794
4fbe891e
JB
87952003-03-18 J. Brobecker <brobecker@gnat.com>
8796
8797 * observer.c (observer_test_first_observer): New static variable.
8798 (observer_test_second_observer): Likewise.
8799 (observer_test_third_observer): Likewise.
8800 (observer_test_first_notification_function): New static function.
8801 (observer_test_second_notification_function): Likewise.
8802 (observer_test_third_notification_function): Likewise.
8803
a7ff40e7
JB
88042003-03-17 J. Brobecker <brobecker@gnat.com>
8805
8806 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8807 * somsolib.c (gdb_assert.h): Likewise.
8808 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8809 (somsolib.o): Likewise.
8810
26ca4152
AC
88112003-03-17 Andrew Cagney <cagney@redhat.com>
8812
8813 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8814 BFD. Simplify setting of di.endian.
8815
0a613259
AC
88162003-03-17 Andrew Cagney <cagney@redhat.com>
8817
8818 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8819 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8820
8821 From Elena Zannoni <ezannoni@redhat.com>
8822 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8823 vector and floating-point parameters.
8824 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8825 convention.
8826 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8827
1132738f
FN
88282003-03-17 Fernando Nasser <fnasser@redhat.com>
8829
8830 * MAINTAINERS: Remove my name from several maintainership roles.
8831
6dc42492
AC
88322003-03-17 Andrew Cagney <cagney@redhat.com>
8833
8834 Fix frame off-by-one bug.
8835 * frame-unwind.h (frame_this_id_ftype): Replace
8836 frame_unwind_id_ftype.
8837 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8838 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8839 with "prev_register".
8840 * frame-unwind.c (frame_unwind_find_by_pc): Return
8841 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8842 comment.
8843 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8844 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8845 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8846 (dummy_frame_unwind): Update.
8847 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8848 sentinel_frame_register_unwind.
8849 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8850 (sentinel_frame_unwinder): Update.
8851 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8852 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8853 * frame.c (create_sentinel_frame): Update. Initialize
8854 "prologue_cache" instead of "unwind_cache".
8855 (frame_register_unwind): Call this frame's prev_register with the
8856 next frame and this frame's prologue cache.
8857 (get_prev_frame): Simplify. Always call prev frame's this_id with
8858 this frame and prev frame's prologue cache. Document that this
8859 call is shifted one to the left when compared to the
8860 frame_register_unwind call.
8861 (legacy_saved_regs_prev_register): Replace
8862 frame_saved_regs_register_unwind.
8863 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8864 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8865 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8866 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8867 (d10v_frame_unwind): Update.
8868 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8869 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8870 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8871 "saved_regs" with "this_saved_regs".
8872
efd710d6
AC
88732003-03-16 Andrew Cagney <cagney@redhat.com>
8874
8875 * frame.c (frame_pop): Don't call target_store_registers. Fix
8876 problem reported by Mark Kettenis.
8877
4e259f09
MK
88782003-03-16 Mark Kettenis <kettenis@gnu.org>
8879
8880 * i386-tdep.c (i386_register_type): Renamed from
8881 i386_register_virtual_type. Adjust function signature.
8882 (i386_gdbarch_init): Set register_type instead of
8883 deprecated_max_register_raw_size,
8884 deprecated_max_register_virtual_size and register_virtual_type.
8885
055bb976
AC
88862003-03-14 Andrew Cagney <cagney@redhat.com>
8887
8888 * frame.c (get_prev_frame): When a legacy frame, always call
8889 legacy_get_prev_frame. Simplify unwind code using assumption that
8890 the unwinder is new.
8891 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8892 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8893 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8894
ac2adee5
AC
88952003-03-14 Andrew Cagney <cagney@redhat.com>
8896
8897 * frame.c (get_saved_register): Delete function.
8898 * frame.h (get_saved_register): Delete declaration.
8899 * xstormy16-tdep.c: Update comment.
8900 * regcache.h: Update comments.
8901 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8902 get_saved_register and extract_address, use
8903 frame_read_unsigned_register.
8904 (sparc_frame_saved_pc): Ditto.
8905 (sparc_get_saved_register): Instead of get_saved_register, use
8906 frame_register.
8907 (sparc_pop_frame): Ditto.
8908 * findvar.c: Update comments.
8909 (value_of_register): Call frame_register instead of
8910 get_saved_register.
8911 (value_from_register): Ditto.
8912 * config/sparc/tm-sparc.h: Update comment.
8913 * breakpoint.c: Update comment.
8914
129c1cd6
AC
89152003-03-14 Andrew Cagney <cagney@redhat.com>
8916
8917 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8918 GET_SAVED_REGISTER.
8919 * gdbarch.h, gdbarch.c: Re-generate.
8920 * frame.h: Update comments.
8921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8922 * x86-64-tdep.c (x86_64_init_abi): Update.
8923 * sparc-tdep.c (sparc_gdbarch_init): Update.
8924 * sh-tdep.c (sh_gdbarch_init): Update.
8925 * mips-tdep.c (mips_gdbarch_init): Update.
8926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8927 * cris-tdep.c (cris_gdbarch_init): Update.
8928 * ia64-tdep.c (ia64_gdbarch_init): Update.
8929 * frame.c (frame_register): Update.
8930 (get_saved_register): Update.
8931 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8932
749b82f6
AC
89332003-03-13 Andrew Cagney <cagney@redhat.com>
8934
8935 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8936 * gdbarch.h, gdbarch.c: Regenerate.
8937 * valops.c (hand_function_call): Update comment.
8938 * stack.c (return_command): Update comment.
8939 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8940 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8942 * x86-64-tdep.c (x86_64_init_abi): Update.
8943 * vax-tdep.c (vax_gdbarch_init): Update.
8944 * v850-tdep.c (v850_gdbarch_init): Update.
8945 * sparc-tdep.c (sparc_gdbarch_init): Update.
8946 * sh-tdep.c (sh_gdbarch_init): Update.
8947 * s390-tdep.c (s390_gdbarch_init): Update.
8948 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8949 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8950 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8951 * mips-tdep.c (mips_gdbarch_init): Update.
8952 * mcore-tdep.c (mcore_gdbarch_init): Update.
8953 * m68k-tdep.c (m68k_gdbarch_init): Update.
8954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8955 * ia64-tdep.c (ia64_gdbarch_init): Update.
8956 * i386-tdep.c (i386_gdbarch_init): Update.
8957 * hppa-tdep.c (hppa_gdbarch_init): Update.
8958 * h8300-tdep.c (h8300_gdbarch_init): Update.
8959 * frv-tdep.c (frv_gdbarch_init): Update.
8960 * cris-tdep.c (cris_gdbarch_init): Update.
8961 * avr-tdep.c (avr_gdbarch_init): Update.
8962 * arm-tdep.c (arm_gdbarch_init): Update.
8963 * alpha-tdep.c (alpha_gdbarch_init): Update.
8964
1594fa56
AC
89652003-03-13 Andrew Cagney <cagney@redhat.com>
8966
8967 * frame.c (legacy_frame_p): New function.
8968 (get_prev_frame): Use legacy_frame_p.
8969 * frame.h (legacy_frame_p): Declare.
8970
7717fda3
V
89712003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8972
fbe586ae 8973 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8974 listing corrected.
8975
0c67cbe9
V
89762003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8977
fbe586ae 8978 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8979
03febf99
AC
89802003-03-12 Andrew Cagney <cagney@redhat.com>
8981
8982 * frame.c (get_prev_frame): Rename the frame parameter to
8983 "this_frame".
8984 (get_next_frame, legacy_get_prev_frame): Ditto.
8985
0a1e1ca1
AC
89862003-03-12 Andrew Cagney <cagney@redhat.com>
8987
8988 * frame.c (get_current_frame): Check target_has_registers before
8989 checking target_has_stack.
8990 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8991 instead of deprecated_selected_frame.
8992 * findvar.c (value_of_register): Pass "frame", not
8993 deprecated_selected_frame, to value_of_builtin_reg.
8994
a66a9c23
AC
89952003-03-12 Andrew Cagney <cagney@redhat.com>
8996
8997 * regcache.c (regcache_cooked_write_signed): New function.
8998 (regcache_cooked_write_unsigned): New function.
8999 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9000 (regcache_cooked_read_signed): Fix regnum in range assertion.
9001 * regcache.h (regcache_cooked_write_signed): Declare.
9002 (regcache_cooked_write_unsigned): Declare.
9003
8bedc050
AC
90042003-03-12 Andrew Cagney <cagney@redhat.com>
9005
9006 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9007 * gdbarch.h, gdbarch.c: Re-generate.
9008 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9009 * x86-64-tdep.h: Update.
9010 * x86-64-tdep.c (x86_64_init_abi): Update.
9011 * v850-tdep.c (v850_gdbarch_init): Update.
9012 * sparc-tdep.c (sparc_gdbarch_init): Update.
9013 * sh-tdep.c (sh_gdbarch_init): Update.
9014 * s390-tdep.c (s390_gdbarch_init): Update.
9015 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9016 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9017 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9018 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9019 * mips-tdep.c (mips_gdbarch_init): Update.
9020 * mcore-tdep.c (mcore_gdbarch_init): Update.
9021 * m68k-tdep.c (m68k_gdbarch_init): Update.
9022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9023 * ia64-tdep.c (ia64_gdbarch_init): Update.
9024 * i386-tdep.c (i386_gdbarch_init): Update.
9025 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9026 * hppa-tdep.c (hppa_gdbarch_init): Update.
9027 * h8300-tdep.c (h8300_gdbarch_init): Update.
9028 * frv-tdep.c (frv_gdbarch_init): Update.
9029 * cris-tdep.c (cris_gdbarch_init): Update.
9030 * avr-tdep.c (avr_gdbarch_init): Update.
9031 * arm-tdep.c (arm_gdbarch_init): Update.
9032 * alpha-tdep.c (alpha_gdbarch_init): Update.
9033 * sh-tdep.c (sh_init_extra_frame_info): Update.
9034 (sh64_init_extra_frame_info): Update.
9035 * ns32knbsd-nat.c (frame_num_args): Update.
9036 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9037 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9038 (xstormy16_frame_chain_valid): Update.
9039 * vax-tdep.c (vax_saved_pc_after_call): Update.
9040 * v850-tdep.c (v850_frame_chain): Update.
9041 (v850_pop_frame): Update.
9042 (v850_init_extra_frame_info): Update.
9043 * sparc-tdep.c (setup_arbitrary_frame): Update.
9044 * ns32k-tdep.c (umax_frame_num_args): Update.
9045 * s390-tdep.c (s390_pop_frame_regular): Update.
9046 * mn10300-tdep.c (mn10300_frame_chain): Update.
9047 (mn10300_pop_frame_regular): Update.
9048 (mn10300_init_extra_frame_info): Update.
9049 * mips-tdep.c (mips_init_frame_pc_first): Update.
9050 (mips_frame_chain): Update.
9051 (mips_pop_frame): Update.
9052 * mcore-tdep.c (mcore_frame_chain): Update.
9053 (mcore_pop_frame): Update.
9054 (mcore_init_extra_frame_info): Update.
9055 * arch-utils.c (init_frame_pc_default): Update.
9056 * m68k-tdep.c (isi_frame_num_args): Update.
9057 (delta68_frame_num_args): Update.
9058 (news_frame_num_args): Update.
9059 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9060 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9061 (alpha_frame_chain): Update.
9062 (alpha_pop_frame): Update.
9063 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9064 (hppa_init_extra_frame_info): Update.
9065 (hppa_frame_chain): Update.
9066 (hppa_frame_chain_valid): Update.
9067 * cris-tdep.c (cris_init_extra_frame_info): Update.
9068 * avr-tdep.c (avr_init_extra_frame_info): Update.
9069 * arm-tdep.c (arm_frame_chain_valid): Update.
9070 (arm_init_extra_frame_info): Update.
9071 (arm_pop_frame): Update.
9072 * frame.c (frame_pc_unwind): Update.
9073 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9074 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9075 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9076 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9077 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9078 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9079
7a25a7c1
AC
90802003-03-12 Andrew Cagney <cagney@redhat.com>
9081
9082 Eliminate the need for POP_FRAME.
9083 * frame.c (do_frame_unwind_register): New function.
9084 (frame_pop): When no POP_FRAME, pop the frame using register
9085 unwind and a scratch regcache.
9086 (frame_saved_regs_pop): Delete function.
9087 (trad_frame_unwinder): Update.
9088 * d10v-tdep.c (d10v_frame_pop): Delete function.
9089 (d10v_frame_unwind): Update.
9090 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9091 (sentinel_frame_unwinder): Update.
9092 * dummy-frame.c (dummy_frame_pop): Delete function.
9093 (dummy_frame_unwind): Update.
9094 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9095 (struct frame_unwind): Update.
9096
2f38ef89
KB
90972003-03-11 Kevin Buettner <kevinb@redhat.com>
9098
9099 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9100 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9101 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9102 Do range checks on register number obtained from debugging info.
9103 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9104 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9105 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9106 mapping function.
9107 (do_fp_register_row): Fix typo which caused double type to be
9108 used when attempting to unpack a float.
9109
552f4abf
JB
91102003-03-11 J. Brobecker <brobecker@gnat.com>
9111
9112 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9113
e0d2ae16
AC
91142003-03-11 Andrew Cagney <cagney@redhat.com>
9115
9116 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9117 frame. Problem found by Corinna Vinschen.
9118
ddbfdd06
PM
91192003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9120
9121 * doublest.c (floatformat_from_length): Accept also
9122 the real size of 'long double' type.
9123
088b2ddc 91242003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9125
088b2ddc 9126 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9127 * breakpoint.c (bpstat_copy): Copy the command lines as well
9128 as the old value, to match what is freed in bpstat_clear.
9129
f56f77c1
DC
91302003-03-10 David Carlton <carlton@math.stanford.edu>
9131
9132 * minsyms.c (add_minsym_to_hash_table): Replace
9133 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9134 (compare_minimal_symbols, compact_minimal_symbols)
9135 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9136 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9137 of DEPRECATED_SYMBOL_MATCHES_NAME.
9138 (lookup_minimal_symbol_solib_trampoline): Ditto.
9139
5602984a
AC
91402003-03-10 Andrew Cagney <cagney@redhat.com>
9141
9142 * regcache.h (regcache_cooked_read_ftype): Define.
9143 (regcache_save, regcache_restore): Add a cooked_read parameter.
9144 * regcache.c (regcache_save, regcache_restore): Update.
9145 (do_cooked_read): New function.
9146 (regcache_cpy): Pass do_cooked_read to regcache_save and
9147 regcache_restore.
9148
8bedc050
AC
91492003-03-10 Andrew Cagney <cagney@redhat.com>
9150
9151 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9152 * gdbarch.h, gdbarch.c: Re-generate.
9153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9154 * x86-64-tdep.h: Update.
9155 * x86-64-tdep.c (x86_64_init_abi): Update.
9156 * v850-tdep.c (v850_gdbarch_init): Update.
9157 * sparc-tdep.c (sparc_gdbarch_init): Update.
9158 * sh-tdep.c (sh_gdbarch_init): Update.
9159 * s390-tdep.c (s390_gdbarch_init): Update.
9160 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9161 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9162 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9163 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9164 * mips-tdep.c (mips_gdbarch_init): Update.
9165 * mcore-tdep.c (mcore_gdbarch_init): Update.
9166 * m68k-tdep.c (m68k_gdbarch_init): Update.
9167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9168 * ia64-tdep.c (ia64_gdbarch_init): Update.
9169 * i386-tdep.c (i386_gdbarch_init): Update.
9170 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9171 * hppa-tdep.c (hppa_gdbarch_init): Update.
9172 * h8300-tdep.c (h8300_gdbarch_init): Update.
9173 * frv-tdep.c (frv_gdbarch_init): Update.
9174 * cris-tdep.c (cris_gdbarch_init): Update.
9175 * avr-tdep.c (avr_gdbarch_init): Update.
9176 * arm-tdep.c (arm_gdbarch_init): Update.
9177 * alpha-tdep.c (alpha_gdbarch_init): Update.
9178 * sh-tdep.c (sh_init_extra_frame_info): Update.
9179 (sh64_init_extra_frame_info): Update.
9180 * ns32knbsd-nat.c (frame_num_args): Update.
9181 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9182 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9183 (xstormy16_frame_chain_valid): Update.
9184 * vax-tdep.c (vax_saved_pc_after_call): Update.
9185 * v850-tdep.c (v850_frame_chain): Update.
9186 (v850_pop_frame): Update.
9187 (v850_init_extra_frame_info): Update.
9188 * sparc-tdep.c (setup_arbitrary_frame): Update.
9189 * ns32k-tdep.c (umax_frame_num_args): Update.
9190 * s390-tdep.c (s390_pop_frame_regular): Update.
9191 * mn10300-tdep.c (mn10300_frame_chain): Update.
9192 (mn10300_pop_frame_regular): Update.
9193 (mn10300_init_extra_frame_info): Update.
9194 * mips-tdep.c (mips_init_frame_pc_first): Update.
9195 (mips_frame_chain): Update.
9196 (mips_pop_frame): Update.
9197 * mcore-tdep.c (mcore_frame_chain): Update.
9198 (mcore_pop_frame): Update.
9199 (mcore_init_extra_frame_info): Update.
9200 * arch-utils.c (init_frame_pc_default): Update.
9201 * m68k-tdep.c (isi_frame_num_args): Update.
9202 (delta68_frame_num_args): Update.
9203 (news_frame_num_args): Update.
9204 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9205 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9206 (alpha_frame_chain): Update.
9207 (alpha_pop_frame): Update.
9208 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9209 (hppa_init_extra_frame_info): Update.
9210 (hppa_frame_chain): Update.
9211 (hppa_frame_chain_valid): Update.
9212 * cris-tdep.c (cris_init_extra_frame_info): Update.
9213 * avr-tdep.c (avr_init_extra_frame_info): Update.
9214 * arm-tdep.c (arm_frame_chain_valid): Update.
9215 (arm_init_extra_frame_info): Update.
9216 (arm_pop_frame): Update.
9217 * frame.c (frame_pc_unwind): Update.
9218 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9219 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9220 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9221 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9222 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9223 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9224
12cc2063
AC
92252003-03-10 Andrew Cagney <cagney@redhat.com>
9226
9227 * gdbarch.sh (gdbarch_unwind_pc): New method.
9228 * gdbarch.h, gdbarch.c: Regenerate.
9229 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9230 but use read_pc and FRAME_SAVED_PC as fall backs.
9231 (frame_saved_regs_pc_unwind): Delete function.
9232 (trad_frame_unwinder): Update.
9233 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9234 (struct frame_unwind): Update.
9235 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9236 (dummy_frame_unwind): Update.
9237 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9238 (sentinel_frame_unwinder): Update.
9239 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9240 (d10v_frame_unwind): Update.
9241 (d10v_unwind_pc): New function.
9242 (d10v_gdbarch_init): Set unwind_pc.
9243
ef840a37
AC
92442003-03-10 Andrew Cagney <cagney@redhat.com>
9245
a2ce2e56
AC
9246 * gdbarch.h: Re-generate.
9247
ef840a37
AC
9248 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9249 PC.
9250 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9251 the PC register.
9252
08f3424b
MK
92532003-03-08 Mark Kettenis <kettenis@gnu.org>
9254
9255 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9256
1248ede2
AC
92572003-03-08 Andrew Cagney <cagney@redhat.com>
9258
9259 * cli-out.c: Update copyright.
9260 (cli_out_data): Define typedef. Use instead of ui_out_data.
9261
f49bacc8
AC
92622003-03-08 Andrew Cagney <cagney@redhat.com>
9263
9264 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9265 the result.
9266
9b05f993
AC
92672003-03-07 Andrew Cagney <cagney@redhat.com>
9268
9269 * gdbarch.sh: Don't generate two macro definitions when an
9270 undefined macro taking no arguments.
9271 * gdbarch.h: Regenerate.
8ffd9b1b 9272
166f4c7b
ML
92732002-03-07 Michal Ludvig <mludvig@suse.cz>
9274
9275 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9276 (x86_64_unwind_dummy_id): New functions.
9277 (x86_64_init_abi): Register these two new functions.
9278
6d686a84
ML
92792003-03-07 Michal Ludvig <mludvig@suse.cz>
9280
9281 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9282 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9283 separate function.
9284 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9285
6314f104
AC
92862003-03-05 Andrew Cagney <cagney@redhat.com>
9287
9288 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9289 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9290 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9291 to use unwind_dummy_id when a dummy frame.
9292 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9293 predicate.
9294 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9295
ceea5145
AC
92962003-03-05 Andrew Cagney <cagney@redhat.com>
9297
9298 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9299 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9300 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9301 values.
9302
0d843116
AC
93032003-03-05 Andrew Cagney <cagney@redhat.com>
9304
9305 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9306 (struct d10v_unwind_cache): Delete field "frameless". Replace
9307 "next_addr" with "sp_offset". Add "r11_offset".
9308 (d10v_frame_unwind_cache): Update.
9309 (prologue_find_regs): Update. When "mv r11, sp", save the
9310 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9311 RN was saved in r11_offset.
9312
b2579786
AC
93132003-03-05 Andrew Cagney <cagney@redhat.com>
9314
9315 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9316 cached PC value in the next frame.
9317
218e5956
AC
93182003-03-05 Andrew Cagney <cagney@redhat.com>
9319
9320 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9321 "id_unwind_cache" with "id".
9322 (frame_id_unwind): Delete declaration.
9323 * frame.c (frame_id_unwind): Delete function.
9324 (get_prev_frame): Call the frame id unwind method directly. Store
9325 the returned next frame's ID value in NEXT_FRAME. Note that there
9326 is a problem with the wrong unwind ID being called with the wrong
9327 unwind cache.
9328
ed363b1b
DJ
93292003-03-05 Daniel Jacobowitz <drow@mvista.com>
9330
9331 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9332
fe1f4a5e
DJ
93332003-03-05 James Ingham <jingham@apple.com>
9334 Daniel Jacobowitz <drow@mvista.com>
9335
9336 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9337 (auto_cp_abi): New variable.
9338 (current_cp_abi, num_cp_abis): Make static.
9339 (CP_ABI_MAX): Define.
9340 (cp_abis): Turn into an array.
9341 (value_virtual_fn_field): Fix formatting.
9342 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9343 takes a pointer.
9344 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9345 (list_cp_abis, _initialize_cp_abi): New functions.
9346 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9347 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9348 switch_to_cp_abi. Update prototype for register_cp_abi.
9349 * Makefile.in (cp-abi.o): Update dependencies.
9350 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9351 instead of switch_to_cp_abi.
9352 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9353 register_cp_abi.
9354 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9355 register_cp_abi.
9356 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9357
e4adbba9
DJ
93582003-03-05 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9361 * dwarf2loc.c: Include "regcache.h".
9362 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9363 register_size.
9364 * Makefile.in (dwarf2loc.o): Update dependencies.
9365
91ccbfc1
TR
93662003-03-04 Theodore A. Roth <troth@openavr.org>
9367
9368 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9369 number of io registers reported by remote target is not a multiple of
9370 step.
9371
3d4e8fd2
DC
93722003-03-04 David Carlton <carlton@math.stanford.edu>
9373
9374 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9375 (lookup_symbol_aux_psymtabs): Update call to
9376 lookup_partial_symbol.
9377 (lookup_transparent_type, find_main_psymtab)
9378 (make_symbol_overload_list): Ditto.
9379
ed42d87b
KH
93802003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9381
9382 * MAINTAINERS (Write after approval): Update my email address.
9383
a0ed5532
AC
93842003-03-03 Andrew Cagney <cagney@redhat.com>
9385
9386 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9387 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9388 predicate. Replace MAX_REGISTER_RAW_SIZE.
9389 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9390 MAX_REGISTER_VIRTUAL_SIZE.
9391 * regcache.c (legacy_max_register_raw_size): New function.
9392 (legacy_max_register_virtual_size): New function.
9393 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9394 (MAX_REGISTER_RAW_SIZE): Define.
9395 (legacy_max_register_raw_size): Declare.
9396 (legacy_max_register_virtual_size): Declare.
9397 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9398 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9399 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9400 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9401 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9402 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9403 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9404 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9405 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9407 * vax-tdep.c (vax_gdbarch_init): Update.
9408 * v850-tdep.c (v850_gdbarch_init): Update.
9409 * sparc-tdep.c (sparc_gdbarch_init): Update.
9410 * sh-tdep.c (sh_gdbarch_init): Update.
9411 * s390-tdep.c (s390_gdbarch_init): Update.
9412 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9413 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9414 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9415 * mips-tdep.c (mips_gdbarch_init): Update.
9416 * mcore-tdep.c (mcore_gdbarch_init): Update.
9417 * m68k-tdep.c (m68k_gdbarch_init): Update.
9418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9419 * ia64-tdep.c (ia64_gdbarch_init): Update.
9420 * i386-tdep.c (i386_gdbarch_init): Update.
9421 * hppa-tdep.c (hppa_gdbarch_init): Update.
9422 * h8300-tdep.c (h8300_gdbarch_init): Update.
9423 * frv-tdep.c (frv_gdbarch_init): Update.
9424 * cris-tdep.c (cris_gdbarch_init): Update.
9425 * avr-tdep.c (avr_gdbarch_init): Update.
9426 * arm-tdep.c (arm_gdbarch_init): Update.
9427 * alpha-tdep.c (alpha_gdbarch_init): Update.
9428 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9429 max_register_raw_size or max_register_virtual_size.
9430
8e437497
DC
94312003-03-03 David Carlton <carlton@math.stanford.edu>
9432
9433 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9434 SYMBOL_MATCHES_NAME, add comment.
9435 (SYMBOL_MATCHES_NATURAL_NAME): New.
9436 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9437 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9438 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9439 * symtab.c (lookup_partial_symbol): Use
9440 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9441 unhelpful comment.
9442 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9443 SYMBOL_MATCHES_NAME.
9444 Fix for PR c++/33.
9445
25120b0d
DC
94462003-03-03 David Carlton <carlton@math.stanford.edu>
9447
9448 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9449 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9450 by regexp matching against SYMBOL_NATURAL_NAME.
9451
78a11fb4
DC
94522003-03-03 David Carlton <carlton@math.stanford.edu>
9453
9454 * linespec.c (find_method): Extract code into collect_methods.
9455 (collect_methods): New.
9456
645dd519
MK
94572003-03-02 Mark Kettenis <kettenis@gnu.org>
9458
b4700d91
MK
9459 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9460 get_frame_base.
9461
645dd519
MK
9462 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9463 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9464
0aa7e1aa
SC
94652003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9466
8ffd9b1b 9467 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9468 and not regnum when summing the size of all registers up to regnum.
9469
f30ee0bc
AC
94702003-03-01 Andrew Cagney <cagney@redhat.com>
9471
9472 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9473 FRAME_INIT_SAVED_REGS.
9474 * gdbarch.h, gdbarch.c: Regenerate.
9475 * stack.c (frame_info): Update.
9476 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9477 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9478 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9479 * ns32k-tdep.c (ns32k_pop_frame): Update.
9480 * mips-tdep.c (mips_pop_frame): Update.
9481 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9482 * ia64-tdep.c (ia64_frame_chain): Update.
9483 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9484 (ia64_frameless_function_invocation): Update.
9485 (ia64_init_extra_frame_info): Update.
9486 (ia64_pop_frame_regular): Update.
9487 * frame.h (struct frame_info): Update comment.
9488 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9489 * frame.c (frame_saved_regs_register_unwind): Update.
9490 (frame_saved_regs_register_unwind): Update.
9491 (deprecated_generic_get_saved_register): Update.
9492 * cris-tdep.c: Update comment.
9493 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9494 Rename macro.
9495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9496 * x86-64-tdep.c (x86_64_init_abi): Update.
9497 * vax-tdep.c (vax_gdbarch_init): Update.
9498 * v850-tdep.c (v850_gdbarch_init): Update.
9499 * sparc-tdep.c (sparc_gdbarch_init): Update.
9500 * sh-tdep.c (sh_gdbarch_init): Update.
9501 * s390-tdep.c (s390_gdbarch_init): Update.
9502 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9503 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9504 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9505 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9506 * mips-tdep.c (mips_gdbarch_init): Update.
9507 * mcore-tdep.c (mcore_gdbarch_init): Update.
9508 * m68k-tdep.c (m68k_gdbarch_init): Update.
9509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9510 * ia64-tdep.c (ia64_gdbarch_init): Update.
9511 * i386-tdep.c (i386_gdbarch_init): Update.
9512 * frv-tdep.c (frv_gdbarch_init): Update.
9513 * avr-tdep.c (avr_gdbarch_init): Update.
9514 * arm-tdep.c (arm_gdbarch_init): Update.
9515 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9516
42fa7c0f
AC
95172003-03-01 Andrew Cagney <cagney@redhat.com>
9518
9519 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9520 option enum and switch. When no windows, set the interpreter to
9521 INTERP_CONSOLE.
8ffd9b1b 9522
49c7e338
AC
95232003-03-01 Andrew Cagney <cagney@redhat.com>
9524
9525 * main.c (captured_main): Replace magic option characters with an
9526 enum.
9527
e9582e71
AC
95282003-03-01 Andrew Cagney <cagney@redhat.com>
9529
9530 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9531 INIT_EXTRA_FRAME_INFO.
9532 * gdbarch.h, gdbarch.c: Regenerate.
9533 * arm-tdep.c: Update comments.
9534 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9535 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9536 * frame.h, avr-tdep.c: Ditto.
9537 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9538 (create_new_frame, legacy_get_prev_frame): Ditto.
9539 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9540 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9542 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9543 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9544 * v850-tdep.c (v850_gdbarch_init): Ditto.
9545 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9546 * sh-tdep.c (sh_gdbarch_init): Ditto.
9547 * s390-tdep.c (s390_gdbarch_init): Ditto.
9548 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9549 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9550 * mips-tdep.c (mips_gdbarch_init): Ditto.
9551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9553 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9554 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9555 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9556 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9557 * frv-tdep.c (frv_gdbarch_init): Ditto.
9558 * cris-tdep.c (cris_gdbarch_init): Ditto.
9559 * avr-tdep.c (avr_gdbarch_init): Ditto.
9560 * arm-tdep.c (arm_gdbarch_init): Ditto.
9561 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9562 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9563
35cac7cf
AC
95642003-03-01 Andrew Cagney <cagney@redhat.com>
9565
9566 * gdbarch.sh (register_type): New function with predicate.
9567 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9568 * gdbarch.h, gdbarch.c: Re-generate.
9569 * arch-utils.c (generic_register_byte): Use generic_register_size.
9570 (generic_register_size): When available, use
9571 gdbarch_register_type.
9572 * regcache.c (init_regcache_descr): When available, initialize the
9573 register type array using gdbarch_register_type. If the
9574 architecture supplies gdbarch_register_type, do not use the legacy
9575 regcache layout.
9576 * d10v-tdep.c (d10v_register_type): Replace
9577 d10v_register_virtual_type.
9578 (d10v_gdbarch_init): Set register_type instead of
9579 register_virtual_type.
9580
7b83296f
AC
95812003-03-01 Andrew Cagney <cagney@redhat.com>
9582
9583 * Makefile.in (ax-gdb.o): Update dependencies.
9584 * ax-gdb.c: Include "regcache.h".
9585 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9586 * findvar.c (value_of_register): Ditto.
9587 * infcmd.c (default_print_registers_info): Ditto.
9588
eadc1c87
MK
95892003-03-01 Mark Kettenis <kettenis@gnu.org>
9590
9591 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9592 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9593
14143612
MK
95942003-03-01 Mark Kettenis <kettenis@gnu.org>
9595
9596 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9597 of STREQ.
9598
a55cc764
DJ
95992003-02-28 Daniel Jacobowitz <drow@mvista.com>
9600
9601 * Makefile.in (dwarf2loc.o): Update dependencies.
9602 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9603 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9604 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9605 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9606 (locexpr_tracepoint_var_ref): New function.
9607 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9608
08a617da
AC
96092003-02-28 Andrew Cagney <cagney@redhat.com>
9610
9611 * regcache.c (register_size): New function.
9612 * regcache.h (register_size): Declare
9613 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9614 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9615
4224873a
DC
96162003-02-28 David Carlton <carlton@math.stanford.edu>
9617
9618 * linespec.c (decode_compound): Extract code into find_method.
9619 (find_method): New.
9620
ccdc5d7f
JB
96212003-02-28 J. Brobecker <brobecker@gnat.com>
9622
9623 * Makefile.in: Add rules to build and link in observer.o.
9624
974e8ced
JB
96252003-02-27 J. Brobecker <brobecker@gnat.com>
9626
9627 * observer.c: Minor comments edits.
9628
7a28f973
JB
96292003-02-27 J. Brobecker <brobecker@gnat.com>
9630
9631 * observer.h, observer.c: New file.
9632
27cddce2
AC
96332003-02-27 Andrew Cagney <cagney@redhat.com>
9634
9635 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9636
b94a41a1
SC
96372003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9638
9639 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9640 (M6812_OP_STS_EXT): Likewise.
9641 (m6811_prologue): Use the above to recognize prologue.
9642 (m6812_prologue): Likewise.
9643
c8be8951
DC
96442003-02-27 David Carlton <carlton@math.stanford.edu>
9645
9646 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9647 SYMBOL_PRINT_NAME.
9648 (compare_psymbols): Ditto.
9649 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9650
d05bb1fc
MS
96512003-02-27 Michael Snyder <msnyder@redhat.com>
9652
4e845cd3
MS
9653 * f-lang.c (build_fortran_types): New function.
9654 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9655 * doublest.c (extract_floating): Fix warning text.
9656
f3824013
AC
96572003-02-27 Andrew Cagney <cagney@redhat.com>
9658
9659 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9660 predicate. Replaces PUSH_DUMMY_FRAME.
9661 * gdbarch.h, gdbarch.c: Regnerate.
9662 * valops.c (hand_function_call): Update. Call
9663 generic_push_dummy_frame directly.
9664 * vax-tdep.c (vax_gdbarch_init): Update.
9665 * sparc-tdep.c (sparc_gdbarch_init): Update.
9666 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9667 * m68k-tdep.c (m68k_gdbarch_init): Update.
9668 * hppa-tdep.c (hppa_gdbarch_init): Update.
9669 * alpha-tdep.c (alpha_gdbarch_init): Update.
9670 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9671 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9672 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9673 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9674 push_dummy_frame to generic_push_dummy_frame.
9675 * v850-tdep.c (v850_gdbarch_init): Ditto.
9676 * sh-tdep.c (sh_gdbarch_init): Ditto.
9677 * s390-tdep.c (s390_gdbarch_init): Ditto.
9678 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9679 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9680 * mips-tdep.c (mips_gdbarch_init): Ditto.
9681 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9683 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9684 * i386-tdep.c (i386_gdbarch_init): Ditto.
9685 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9686 * frv-tdep.c (frv_gdbarch_init): Ditto.
9687 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9688 * cris-tdep.c (cris_gdbarch_init): Ditto.
9689 * avr-tdep.c (avr_gdbarch_init): Ditto.
9690 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9691
ad188201
KB
96922003-02-26 Kevin Buettner <kevinb@redhat.com>
9693
9694 * mips-tdep.c (show_mips_abi): New function.
9695 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9696 command ``show mips abi''.
9697
6b37567a 96982003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9699
6b37567a 9700 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9701 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9702 more sline entries have been seen for the function.
9703
d3e0a5bf
MC
97042003-02-26 Michael Chastain <mec@shout.net>
9705
9706 * configure: Regenerate with autoconf 000227.
9707
18972eea
MC
97082003-02-26 Michael Chastain <mec@shout.net>
9709
9710 Close PR build/660.
9711 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9712 for old libc5/glibc.
9713 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9714
0bbde931
KW
97152003-02-26 Kris Warkentin <kewarken@qnx.com>
9716
9717 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9718 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9719
27ca5dad
MC
97202003-02-26 Michael Chastain <mec@shout.net>
9721
9722 * configure.in: New variable HAVE_UINTPTR_T.
9723 * configure, config.in: Regenerated.
9724
6f88d630
DJ
97252003-02-26 Daniel Jacobowitz <drow@mvista.com>
9726
9727 Fix PR build/1097.
9728 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9729
b14185ce
AC
97302003-02-25 Andrew Cagney <cagney@redhat.com>
9731
9732 * frame.c (get_prev_frame): Add comment on check for
9733 inside_entry_func. Only check for inside_entry_file when not a
9734 dummy and not a sentinel. Check that the new frame is not inner
9735 to the old frame.
9736
ac2bd0a9
AC
97372003-02-25 Andrew Cagney <cagney@redhat.com>
9738
9739 * frame.c (frame_debug): New variable.
9740 (_initialize_frame): Add "set/show debug frame" command.
9741 (get_prev_frame): When frame_debug, print reason why unwind
9742 failed.
9743
b18a0fd2
MC
97442003-02-25 Michael Chastain <mec@shout.net>
9745
9746 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9747 to avoid uintptr_t definition problems.
9748
22abf04a
DC
97492003-02-25 David Carlton <carlton@math.stanford.edu>
9750
9751 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9752 (SYMBOL_LINKAGE_NAME): Ditto.
9753 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9754 SYMBOL_LINKAGE_NAME.
9755 (struct general_symbol_info): Expand comment.
9756 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9757 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9758 (SYMBOL_MATCHES_REGEXP): Ditto.
9759 * symtab.c (symbol_natural_name): New function.
9760 * objfiles.h: Replace all uses of SYMBOL_NAME by
9761 DEPRECATED_SYMBOL_NAME.
9762 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9763 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9764 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9765 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9766 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9767 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9768 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9769 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9770 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9771 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9772 * ada-exp.y: Ditto.
9773 * ada-exp.y: Update copyright.
9774 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9775 * cp-valprint.c: Ditto.
9776
1a5848f6
JJ
97772003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9778
9779 * infptrace.c (detach): Do not flag error if ptrace detach fails
9780 and errno is set to ESRCH.
9781
7343d46a
AC
97822003-02-24 Andrew Cagney <cagney@redhat.com>
9783
9784 * infptrace.c (udot_info): Change type of udot_off to long. Use
9785 paddr when printing udot_off's value.
9786
49fa1dc2
DC
97872003-02-24 David Carlton <carlton@math.stanford.edu>
9788
9789 * symtab.c (make_symbol_overload_list): Only read in partial
9790 symtabs containing a matching partial symbol.
9791
0fe19209
DC
97922003-02-24 David Carlton <carlton@math.stanford.edu>
9793
9794 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9795 do the comparison, not strcmp.
9796 * symfile.c (compare_psymbols): Ditto.
9797 * defs.h: Declare strcmp_iw_ordered.
9798 * utils.c (strcmp_iw_ordered): New function.
9799
8e3ee7b5
JB
98002003-02-24 Jim Blandy <jimb@redhat.com>
9801
9802 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9803 support, shared libs): Remove my name from here, to better reflect
9804 reality.
9805
7df1a324
KW
98062003-02-24 Kris Warkentin <kewarken@qnx.com>
9807
9808 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9809 (target_ops): Add to_have_continuable_watchpoint.
9810 * target.c (update_current_target): Add INHERIT line for
9811 to_have_continuable_watchpoint.
9812 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9813 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9814 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9815 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9816
d1c76907
EZ
98172003-02-24 Elena Zannoni <ezannoni@redhat.com>
9818
9819 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9820 maintainership.
9821
2610b0bf
KW
98222003-02-24 Kris Warkentin <kewarken@qnx.com>
9823
f46169db
KW
9824 * solib.c (solib_open): Call target defined search function after
9825 failing with solib-search-path.
9826 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9827 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9828
9a3c34fe
KW
98292003-02-24 Kris Warkentin <kewarken@qnx.com>
9830
f46169db 9831 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9832
2417dd25
SC
98332003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9834
9835 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9836
b631436b
SC
98372003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9838
9839 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9840 (m68hc11_add_reggroups): New function.
9841 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9842 (m68hc11_gdbarch_init): Install the reggroups.
9843 (_initialize_m68hc11_tdep): Initialize them.
9844
0aa8c1e4
JW
98452003-02-21 James E Wilson <wilson@tuliptree.org>
9846
9847 * MAINTAINERS: Update my email address.
9848
50ceaba5
DC
98492003-02-21 David Carlton <carlton@math.stanford.edu>
9850
9851 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9852
4c2df51b
DJ
98532003-02-21 Daniel Jacobowitz <drow@mvista.com>
9854
9855 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9856 * symtab.h: Add opaque declarations of struct axs_value and
9857 struct agent_expr.
9858 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9859 (struct location_funcs): New type.
9860 (struct symbol): Add "loc" to aux_value.
9861 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9862 * dwarf2read.c: Include "dwarf2expr.h".
9863 (dwarf2_symbol_mark_computed): New function.
9864 (read_func_scope): Use it.
9865 (var_decode_location): New function.
9866 (new_symbol): Use it.
9867 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9868
9869 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9870 (dwarf2expr_h, dwarf2loc_h): New variables.
9871 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9872 (dwarf2expr.o, dwarf2loc.o): New rules.
9873 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9874 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9875 LOC_COMPUTED_ARG.
9876 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9877 * m2-exp.y (yylex): Likewise.
9878 * printcmd.c (address_info, print_frame_args): Likewise.
9879 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9880 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9881 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9882 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9883 * symtab.c (lookup_block_symbol): Likewise.
9884
5784d15e
AF
98852003-02-20 Adam Fedor <fedor@gnu.org>
9886
9887 * symtab.h: Remove objc_specific struct
9888 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9889 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9890 Have language_objc use cplus_specific struct.
9891
d4cad8db
TT
98922003-02-20 Tom Tromey <tromey@redhat.com>
9893
9894 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9895 TYPE_NAME, when printing a String value. PR java/1075.
9896
2f9a90b4
AF
98972003-02-20 Adam Fedor <fedor@gnu.org>
9898
d38074a8 9899 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9900 * objc-lang.c (find_methods): Make static.
2f9a90b4 9901
6f17862b
CF
99022003-02-20 Christopher Faylor <cgf@redhat.com>
9903
9904 * win32-nat.c (get_image_name): Check return value from
9905 ReadProcessMemory.
9906 (child_xfer_memory): Ditto.
9907
715d1656
AO
99082003-02-20 Alexandre Oliva <aoliva@redhat.com>
9909
9910 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9911 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9912 '${exec_prefix}' (in addition to the expansion thereof) as
9913 relocatable.
9914 * configure: Rebuilt.
9915
b1262a02
DC
99162003-02-20 David Carlton <carlton@math.stanford.edu>
9917
9918 * symtab.c (search_symbols): Revert the search_symbols part of my
9919 2002-12-23 patch. Add comment.
9920
7134143f
DJ
99212002-02-20 Daniel Jacobowitz <drow@mvista.com>
9922
9923 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9924 * dbxread.c (elfstab_build_psymtabs): Don't call
9925 install_minimal_symbols.
9926 (stabsect_build_psymtabs): Likewise.
9927 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9928 earlier.
9929 * somread.c (som_symfile_read): Call install_minimal_symbols
9930 and do_cleanups earlier.
9931 * nlmread.c (nlm_symfile_read): Likewise.
9932 * mdebugread.c (elfmdebug_build_psymtabs): Call
9933 install_minimal_symbols and make appropriate cleanups.
9934
cf466558
KB
99352003-02-20 Kevin Buettner <kevinb@redhat.com>
9936
9937 * solib.c (reload_shared_libraries): New function.
9938 (_initialize_solib): Add callbacks for ``set solib-search-path''
9939 and ``set solib-absolute-prefix''.
9940
de5ad195
DC
99412003-02-20 David Carlton <carlton@math.stanford.edu>
9942
9943 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9944 expand comment.
9945 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9946 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9947 * ada-typeprint.c (ada_typedef_print): Ditto.
9948 * ax-gdb.c (gen_var_ref): Ditto.
9949 * breakpoint.c (print_one_breakpoint): Ditto.
9950 * buildsym.c (finish_block): Ditto.
9951 * c-valprint.c (c_val_print): Ditto.
9952 * expprint.c (print_subexp): Ditto.
9953 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9954 * infcmd.c (jump_command): Ditto.
9955 * linespec.c (decode_line_2, decode_compound): Ditto.
9956 * maint.c (maintenance_translate_address): Ditto.
9957 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9958 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9959 Ditto.
8ffd9b1b
AJ
9960 * p-valprint.c (pascal_val_print): Ditto.
9961 * stabsread.c (define_symbol): Ditto.
de5ad195 9962 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9963 (print_frame_arg_vars, return_command): Ditto.
9964 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9965 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9966 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9967 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9968 (rbreak_command): Ditto.
9969 * tracepoint.c (tracepoints_info): Ditto.
9970 * typeprint.c (typedef_print): Ditto.
9971 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9972 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9973 * ada-typeprint.c: Update Copyright.
9974 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9975 * tracepoint.c, cli/cli-cmds.c: Ditto.
9976
f796e4be
KB
99772003-02-20 Kevin Buettner <kevinb@redhat.com>
9978
9979 * frame.c (generic_unwind_get_saved_register): Make non-static.
9980 * frame.h (generic_unwind_get_saved_register): Declare.
9981 * mips-tdep.c (read_next_frame_reg): Fetch register from
9982 current regcache when frame is NULL.
9983 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9984 that must be NULL.
9985 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9986 instead of frame_register_unwind().
9987
836cc9f4
AC
99882003-02-20 Andrew Cagney <ac131313@redhat.com>
9989
9990 * remote-sim.c (gdbsim_insert_breakpoint)
9991 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9992 code.
9993
501eef12
AC
99942003-02-20 Andrew Cagney <ac131313@redhat.com>
9995
9996 * remote.c (_initialize_remote): Add commands "set/show remote
9997 hardware-watchpoint-limit" and "set/show remote
9998 hardware-breakpoint-limit".
9999 (remote_hw_watchpoint_limit): Initialize to -1.
10000 (remote_hw_breakpoint_limit): Ditto.
10001 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10002
1b6bc7e0
CF
100032003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10004
10005 * coff-pe-read.c: New file - support reading of minimal symbols from a
10006 portable executable using the export table.
10007 * coff-pe-read.h: New file.
10008 * coffread.c: Include coff-pe-read.h.
10009 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10010 debugging symbols found.
10011 * Makefile.in (SFILES): Add coff-pe-read.o.
10012 (coff_pe_read_h): Define.
10013 (COMMON_OBS): Add coff-pe-read.o.
10014 (coffread.o): Add coff_pe_read_h dependency.
10015 (coff-pe-read.o): New target.
10016
fe898f56
DC
100172003-02-19 David Carlton <carlton@math.stanford.edu>
10018
10019 * Makefile.in (SFILES): Add block.c.
10020 (block_h): New.
10021 (COMMON_OBS): Add block.o.
10022 (block.o): New.
10023 (x86-64-tdep.o): Add $(block_h).
10024 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10025 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10026 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10027 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10028 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10029 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10030 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10031 * value.h: Add opaque declaration for struct block.
10032 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10033 * ada-lang.h: Ditto.
10034 * x86-64-tdep.c: #include "block.h"
10035 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10036 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10037 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10038 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10039 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10040 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10041 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10042 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10043 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10044 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10045 * symtab.c (block_function): Ditto.
10046 (contained_in): Ditto.
10047 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10048 block.h. Add opaque declaration for struct block.
10049 * symtab.h: Move block_function and contained_in declarations to
10050 block.h. Add opaque declarations for struct block, struct
10051 blockvector.
10052 (struct block): Move to block.h.
10053 (struct blockvector): Ditto.
10054 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10055 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10056 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10057 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10058 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10059 Ditto.
10060 * block.c: New file.
10061 * block.h: New file.
10062
173345b5
TR
100632003-02-19 Theodore A. Roth <troth@openavr.org>
10064
10065 * avr-tdep.c (avr_extract_return_value): Remove function.
10066 (avr_store_return_value): Remove function.
10067 (avr_extract_struct_value_address): Remove function.
10068 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10069
338ef23d
AC
100702003-02-19 Andrew Cagney <ac131313@redhat.com>
10071
10072 * rs6000-tdep.c: Include "gdb_assert.h".
10073 (registers_e500): Add "acc" and "spefscr".
10074 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10075 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10076 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10077 really is "r0".
10078 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10079
5412f5f3
KS
100802003-02-18 Keith Seitz <keiths@redhat.com>
10081
10082 * Makefile.in: Add gdbtk-interps.c.
10083
881324eb
KB
100842003-02-18 Kevin Buettner <kevinb@redhat.com>
10085
10086 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10087 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10088
6a2f5abf
AC
100892003-02-18 Andrew Cagney <cagney@redhat.com>
10090
10091 * symtab.h (struct objfile): Add opaque declaration.
10092
54c7009d
EZ
100932003-02-18 Elena Zannoni <ezannoni@redhat.com>
10094
10095 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10096 * dbxread.c (process_one_symbol): Use last_function_start rather
10097 than function_start_offset to find the real beginning of the
10098 current function. The latter is just the text section offset on
10099 some systems, the former is always the real function start.
54c7009d 10100
7ee6d7eb
AC
101012003-02-17 Andrew Cagney <cagney@redhat.com>
10102
10103 * configure.in: Revert ${target} != ${host}.
10104
2846da9b
AC
101052003-02-17 Andrew Cagney <ac131313@redhat.com>
10106
10107 * configure.in (Makefile): Use the test ${target} != ${host},
10108 instead of the absence of the "nm.h" file, to determine of the
10109 configuration non-native.
10110 * configure: Regenerate.
8ffd9b1b 10111
3b27aeea
EZ
101122003-02-14 Elena Zannoni <ezannoni@redhat.com>
10113
fbe586ae 10114 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10115
10116 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10117 conditionalize tui_active test.
10118 (lookup_cmd_1): Ditto.
10119
b0b1c2c0
MK
101202003-02-14 Mark Kettenis <kettenis@gnu.org>
10121
10122 * configure.in: Add check for _etext.
10123 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10124 available.
10125 * config.in, configure: regenerated.
10126
8f05cde5
DJ
101272003-02-14 Daniel Jacobowitz <drow@mvista.com>
10128
10129 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10130
021e7609
AC
101312003-02-14 Andrew Cagney <ac131313@redhat.com>
10132
10133 * main.c (tui_version): Delete variable.
10134 (captured_main): When --tui, set interpreter_p to "tui" instead of
10135 enabling tui_version.
10136 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10137 tui_version.
10138 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10139 * cli/cli-cmds.c (disassemble_command): Ditto.
10140 * defs.h (tui_version): Delete declaration.
10141 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10142 (tui-interp.o): Add rules.
10143 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10144
e325dcec
CF
101452003-02-14 Christopher Faylor <cgf@redhat.com>
10146
36ffb041 10147 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10148 just-loaded dll.
10149
c4f90d87
JM
101502003-02-12 Jason Molenda (jmolenda@apple.com)
10151
fbe586ae
RH
10152 * symmisc.c (print_objfile_statistics): Include information about
10153 the number of psymtabs and symtabs in each object file.
c4f90d87 10154
e46e5ccd
KS
101552003-02-13 Keith R Seitz <keiths@redhat.com>
10156
10157 * main.h (struct captured_main_args): Add interpreter_p.
10158 * main.c (captured_main): Initialize interpreter_p from context.
10159 * gdb.c (main): Set interpreter_p argument.
10160 * Makefile.in (gdb.o): Add dependency for interps.h.
10161
fe97fe9c
AC
101622003-02-12 Andrew Cagney <ac131313@redhat.com>
10163
10164 * event-top.c (cli_command_loop): Delete declaration.
10165 (_initialize_event_loop): Delete function setting event_loop_hook.
10166 * event-top.h (cli_command_loop): Declare. Update copyright.
10167 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10168 * interps.c (current_interp_command_loop): When event_loop_p, call
10169 cli_command_loop.
10170
1cdac4ef
AC
101712003-02-12 Andrew Cagney <ac131313@redhat.com>
10172
10173 * interps.h (interp_command_loop_ftype): Change return type to
10174 void.
10175
48037ead
ML
101762003-02-12 Michal Ludvig <mludvig@suse.cz>
10177
10178 * x86-64-tdep.c (x86_64_extract_return_value)
10179 (x86_64_store_return_value): Use regcache instead of regbuf.
10180 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10181 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10182
033afc63
AC
101832003-02-11 Andrew Cagney <ac131313@redhat.com>
10184
10185 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10186 * aclocal.m4: Regenerate.
10187 * configure: Regenerate.
10188
10189 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10190 TCL_LD_SEARCH_FLAGS.
10191
40d02bca
ML
101922003-02-10 Michal Ludvig <mludvig@suse.cz>
10193
10194 * dwarf2cfi.c: Reindented.
10195
11308a41
AC
101962003-02-09 Andrew Cagney <ac131313@redhat.com>
10197
10198 * interps.c (clear_interpreter_hooks): Convert function definition
10199 to ISO C.
10200
e1c1c0f6
DC
102012003-02-07 David Carlton <carlton@math.stanford.edu>
10202
10203 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10204
ab5d3da6
KB
102052003-02-07 Kevin Buettner <kevinb@redhat.com>
10206
10207 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10208 (struct type): ...to here.
10209 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10210 field.
10211 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10212 (replace_type): Set length on all type variants for a given type.
10213
b8a92b82
AC
102142003-02-07 Andrew Cagney <ac131313@redhat.com>
10215
10216 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10217 <sys/stat.h>.
10218 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10219
5cb316ef
AC
102202003-02-06 Andrew Cagney <ac131313@redhat.com>
10221
2555fe1a
AC
10222 * Makefile.in (symm-nat.o): Update dependencies.
10223 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10224 (lynx-nat.o, ia64-linux-nat.): Ditto.
10225 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10226 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10227 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10228
44270758
AC
10229 * Makefile.in (inflow_h): Define.
10230 (procfs.o, inflow.o, procfs.o): Update dependencies.
10231 * inftarg.c (child_stop): Delete extern declaration of
10232 inferior_process_group. Include "inflow.h".
10233 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10234 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10235 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10236 (our_process_group, inferior_process_group): Extern declarations.
10237
df8f7274
AC
10238 * procfs.c: Include "gdb_assert.h".
10239
5cb316ef
AC
10240 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10241 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10242 * jv-typeprint.c (java_type_print_base): Ditto.
10243 * typeprint.c (typedef_print): Eliminate STREQ.
10244 * cli/cli-script.c (define_command, define_command): Ditto.
10245 * main.c (captured_main): Ditto.
10246 * values.c (lookup_internalvar): Ditto.
10247 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10248 within `if' conditional.
10249 * linespec.c (decode_line_2): Ditto.
10250 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10251 (bfd_openw_with_cleanup): Ditto.
10252
2a28ccea
MK
102532003-02-07 Mark Kettenis <kettenis@gnu.org>
10254
10255 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10256 legacy_extract_return_value and store_return_value to
10257 legacy_return_value.
10258
786b8124
CF
102592003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10260
10261 * win32-nat.c (get_relocated_section_addrs): New function. Find
10262 section load addresses for symbol handling in relocated DLLs.
10263 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10264
b871e4ec
FF
102652003-02-05 Fred Fish <fnf@intrinsity.com>
10266
10267 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10268 '=' and '!='.
10269 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10270 with '&' and '=='.
10271 (angel_RDI_info): Ditto.
10272 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10273 with '&' and '!='.
10274 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10275
4389a95a 102762003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10277 Keith Seitz <keiths@redhat.com>
10278 Elena Zannoni <ezannoni@redhat.com>
10279 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10280
10281 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10282 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10283 (SUBDIR_MI_OBS): Add "mi-interp.o".
10284 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10285 (SFILES): Add "interps.c".
10286 (COMMON_OBS): Add "interps.o".
10287 (interps_h, mi_main_h): Define.
10288 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10289 (mi-main.o, main.o, event-top.o): Update dependencies.
10290 * cli/cli-interp.c: New file.
10291 * interps.h, interps.c: New files.
10292 * top.c: (gdb_init): Don't install the default interpreter, handed
10293 by captured_main.
10294 * main.c: Include "interps.h".
10295 (interpreter_p): Note that it should malloc'ed.
10296 (captured_command_loop): Call current_interp_command_loop.
10297 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10298 xfree and xstrdup when updating interpreter_p. Install the
10299 default interpreter. Add hack to stop mi1's copyright notice
10300 being encoded.
10301 * event-top.h (gdb_setup_readline): Declare.
10302 (gdb_disable_readline): Declare.
10303 * event-top.c: Include "interps.h".
10304 (display_gdb_prompt): Call current_interp_display_prompt_p.
10305 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10306 gdb_stdlog, and gdb_stdtarg.
10307 (_initialize_event_loop): Don't call gdb_setup_readline.
10308 * cli-out.c (cli_out_set_stream): New function.
10309 * cli-out.h (cli_out_set_stream): Declare.
10310
ff3b5810
MK
103112003-02-06 Mark Kettenis <kettenis@gnu.org>
10312
10313 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10314 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10315 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10316 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10317 config/i386/i386v42mp.mt: Removed.
10318
5b729aa5
MK
103192003-02-05 Mark Kettenis <kettenis@gnu.org>
10320
10321 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10322 GDB_OSABI_SOLARIS.
10323
8cc15142
MC
103242003-02-05 Michael Chastain <mec@shout.net>
10325
10326 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10327 2.12.1 and earlier versions.
10328
5aa5d4b9
AC
103292003-02-05 Andrew Cagney <ac131313@redhat.com>
10330
10331 Remove orphaned hosts, targets and files.
10332 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10333 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10334 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10335 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10336 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10337 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10338 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10339 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10340 * config/sparc/tm-sp64sim.h: Delete.
10341 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10342 hosts.
10343 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10344 mips*-dec-mach3* targets.
10345
b68767c1
MC
103462003-02-04 Michael Chastain <mec@shout.net>
10347
10348 * NEWS: Fix typo: sepcifying -> specifying.
10349
5ae7ca1d
MC
103502003-02-04 Michael Chastain <mec@shout.net>
10351
10352 * dwarfread.c: Add documentation on the state of dwarf-1,
10353 looking towards obsoletion.
10354
d08a4280
MC
103552003-02-03 Michael Chastain <mec@shout.net>
10356
10357 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10358 gdb/testsuite/gdb.c++/pr-1023.exp.
10359
e9be73e4
AC
103602003-02-04 Andrew Cagney <ac131313@redhat.com>
10361
10362 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10363 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10364
10365 * utils.c (init_page_info): Delete reference to MPW in comments.
10366 * main.c (captured_main): Delete #ifdef MPW.
10367
05d57f6f
AC
103682003-02-04 Andrew Cagney <ac131313@redhat.com>
10369
8ffd9b1b 10370 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10371 * monitor.c (monitor_expect): Obsolete reference to m32r.
10372 * configure.tgt: Mark m32r-*-elf* as obsolete.
10373 * MAINTAINERS: Mark m32k as obsolete.
10374 * m32r-rom.c: Obsolete file.
10375 * config/m32r/m32r.mt: Obsolete file.
10376 * config/m32r/tm-m32r.h: Obsolete file.
10377 * m32r-stub.c: Obsolete file.
10378 * m32r-tdep.c: Obsolete file.
10379
8b0e5691
AC
103802003-02-04 Andrew Cagney <ac131313@redhat.com>
10381
10382 * NEWS: Mention that the z8k-zilog-none is obsolete.
10383 * MAINTAINERS: Mark z8k as obsolete.
10384 * configure.tgt: Obsolete the z8k-*-coff* target.
10385 * config/z8k/z8k.mt: Obsolete file.
10386 * config/z8k/tm-z8k.h: Obsolete file.
10387 * z8k-tdep.c: Obsolete file.
10388
67f16606
AC
103892003-02-04 Andrew Cagney <ac131313@redhat.com>
10390
10391 * NEWS: Mention that the mn10200-elf is obsolete.
10392 * configure.tgt: Obsolete mn10200-*-* target.
10393 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10394 mention that the mn10200 is obsolete.
10395 * breakpoint.h: Ditto.
10396 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10397 * config/mn10200/mn10200.mt: Obsolete file.
10398 * config/mn10200/tm-mn10200.h: Obsolete file.
10399 * mn10200-tdep.c: Obsolete file.
10400
fd2299bd
AC
104012003-02-04 Andrew Cagney <ac131313@redhat.com>
10402
10403 * MAINTAINERS: Mark h8500 as obsolete.
10404 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10405 * findvar.c (value_from_register): Ditto.
10406 * h8500-tdep.c: Mark file as obsolete.
10407 * config/h8500/h8500.mt: Ditto.
10408 * config/h8500/tm-h8500.h: Ditto.
10409 * NEWS: Mention that h8500 is obsolete.
10410
eb9a305d
DC
104112003-02-04 David Carlton <carlton@math.stanford.edu>
10412
10413 * objfiles.c (allocate_objfile): Always set name. Add comment at
10414 start of function.
10415 * jv-lang.c (get_dynamics_objfile): Add comment.
10416
406fc7fb
DC
104172003-02-04 David Carlton <carlton@math.stanford.edu>
10418
10419 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10420 * printcmd.c (build_address_symbolic): Replace uses of
10421 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10422 SYMBOL_NAME, and asm_demangle.
10423 Update copyright.
10424
93d91629
DC
104252003-02-04 David Carlton <carlton@math.stanford.edu>
10426
10427 * linespec.c (decode_compound): Extract code into
10428 lookup_prefix_sym.
10429 (lookup_prefix_sym): New function.
10430
1c5cb38e
DC
104312003-02-04 David Carlton <carlton@math.stanford.edu>
10432
10433 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10434 FLOAT_COERCION_BADNESS.
10435 * gdbtypes.c (rank_one_type): Replace all uses of
10436 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10437
0cf824c9
JB
104382003-02-04 Jim Blandy <jimb@redhat.com>
10439
10440 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10441 section, let dwarf_macinfo_section point to it, not
10442 dwarf_loc_section.
10443
a2d356b0
DJ
104442003-02-04 Daniel Jacobowitz <drow@mvista.com>
10445
10446 Pointed out by Anton Blanchard <anton@samba.org>.
10447 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10448 (ppc_linux_at_sigtramp_return_path): Use it.
10449
2de7ced7
DJ
104502003-02-04 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * defs.h (streq): Add prototype.
10453 * utils.c (streq): New function.
10454
10455 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10456 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10457 * mdebugread.c (new_symbol): Likewise.
10458 * stabsread.c (define_symbol): Likewise.
10459 * coffread.c (process_coff_symbol): Likewise.
10460 * dwarfread.c (new_symbol): Likewise.
10461
10462 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10463 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10464 here.
10465 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10466 SYMBOL_INIT_DEMANGLED_NAME.
10467 * objfiles.c: Include "hashtab.h".
10468 (allocate_objfile): Call htab_set_functions_ex for the
10469 demangled_names_hash.
10470 (free_objfile): Call htab_delete for the demangled_names_hash.
10471 * objfiles.h (struct htab): Add declaration.
10472 (struct objfile): Add demangled_names_hash.
10473 * symfile.c: Include "hashtab.h".
10474 (reread_symbols): Call htab_delete for the demangled_names_hash.
10475 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10476 SYMBOL_NAME in the bcache.
10477 * symtab.c: Include "hashtab.h". Update comments.
10478 (create_demangled_names_hash, symbol_set_names): New functions.
10479 (symbol_find_demangled_name): New function, broken out from
10480 symbol_init_demangled_names.
10481 (symbol_init_demangled_names): Use it.
10482 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10483 (SYMBOL_SET_NAMES): New macro.
10484 (symbol_set_names): Add prototype.
10485
15831452
JB
104862003-02-03 Jim Blandy <jimb@redhat.com>
10487
10488 Use a single, consistent representation for an empty minimal
10489 symbol table in an objfile.
10490 * objfiles.c (terminate_minimal_symbol_table): New function.
10491 (allocate_objfile): Call it.
10492 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10493 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10494 non-NULL.
15831452
JB
10495 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10496 objfile has minimal symbols, compare minimal_symbol_count to zero,
10497 instead of comparing msymbols with NULL.
10498 * objfiles.c (have_minimal_symbols): Same.
10499 * solib-sunos.c (solib_add_common_symbols): Call
10500 terminate_minimal_symbol_table.
10501 * symfile.c (reread_symbols): Same.
8ffd9b1b 10502
ffc65945
KB
105032003-02-03 Kevin Buettner <kevinb@redhat.com>
10504
10505 * s390-tdep.c (s390_address_class_type_flags)
10506 (s390_address_class_type_flags_to_name)
10507 (s390_address_class_name_to_type_flags): New functions.
10508 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10509 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10510
f211c6d4
MS
105112003-02-03 Michael Snyder <msnyder@redhat.com>
10512
10513 * arm-tdep.c: Fix spell-o in comment.
10514
659b0389
ML
105152003-02-03 Michal Ludvig <mludvig@suse.cz>
10516
10517 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10518 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10519 error messages to contain BFD filename.
659b0389 10520
3b31d625
EZ
105212003-02-02 Elena Zannoni <ezannoni@redhat.com>
10522
997b089a 10523 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10524 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10525 (do_mixed_source_and_assembly): Use
10526 make_cleanup_ui_out_tuple_begin_end and
10527 make_cleanup_ui_out_tuple_begin_end.
10528 (do_mixed_source_and_assembly): Ditto.
10529 * thread.c (do_captured_list_thread_ids): Ditto.
10530 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10531 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10532 ui_out_tuple_end): Delete prototypes.
10533 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10534 ui_out_list_end, ui_out_tuple_end): Delete.
10535
10536 From Kevin Buettner <kevinb@redhat.com>:
10537 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10538 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10539 (do_cleanup_table_end): New functions.
10540 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10541 Use cleanups to invoke_ui_out_tuple_end().
10542 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10543 * cli/cli-setshow.c (cmd_show_list): Use
10544 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10545
5b181d62
AC
105462003-02-02 Andrew Cagney <ac131313@redhat.com>
10547
10548 * frame.c (frame_unwind_register): New function.
10549 (frame_unwind_unsigned_register): Use.
10550 (frame_unwind_signed_register): Use.
10551 (frame_read_register): New function.
10552 * frame.h (frame_unwind_register): Declare.
10553 (frame_read_register): Declare.
10554
10555 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10556 and frame_unwind_register instead of read_memory, write_register
10557 and deprecated_write_register_bytes.
10558
5f601589
AC
105592003-02-02 Andrew Cagney <ac131313@redhat.com>
10560
10561 * frame.h: Note that namelen can be negative.
10562 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10563 NAME's length.
10564
10565 * NEWS: Mention that the d10v's `regs' command is deprecated.
10566 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10567 (d10v_print_registers_info): New function.
10568 (show_regs): Call d10v_print_registers_info.
10569 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10570
6a3fe0a4
MK
105712003-02-02 Mark Kettenis <kettenis@gnu.org>
10572
10573 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10574 lost in the previous patch.
10575
075559bc
AC
105762003-02-01 Andrew Cagney <ac131313@redhat.com>
10577
10578 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10579 * stack.c (print_frame_info_base): Output complete FRAME tuple
10580 for synthesized frames.
075559bc 10581
6789195b
AC
105822003-02-02 Andrew Cagney <ac131313@redhat.com>
10583
10584 * mips-nat.c (zerobuf): Delete.
10585 (fetch_inferior_registers): Alloc local zerobuf.
10586 (fetch_core_registers): Alloc local zerobuf.
10587 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10588 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10589 * thread-db.c (thread_db_store_registers): Ditto.
10590 * sh-tdep.c (sh_do_register): Ditto.
10591 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10592 * remote-sim.c (gdbsim_store_register): Ditto.
10593 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10594 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10595 * monitor.c (monitor_supply_register): Ditto.
10596 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10597 * mips-nat.c (fetch_inferior_registers): Ditto.
10598 * m68klinux-nat.c (fetch_register): Ditto.
10599 * lynx-nat.c (fetch_inferior_registers): Ditto.
10600 (fetch_inferior_registers): Ditto.
10601 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10602 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10603 (hpux_thread_store_registers): Ditto.
10604 * hppah-nat.c (fetch_register): Ditto.
10605 * hppab-nat.c (fetch_register): Ditto.
10606 * hppa-tdep.c (pa_register_look_aside): Ditto.
10607 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10608 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10609
e669114a
AC
106102003-02-01 Andrew Cagney <ac131313@redhat.com>
10611
10612 * gdbarch.sh: Explictly specify all method levels. When a
10613 variable with an empty level, provide a non-multi-arch default.
10614 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10615 * gdbarch.h: Re-generate.
10616 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10617 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10618
9a043c1d
AC
106192003-02-01 Andrew Cagney <ac131313@redhat.com>
10620
10621 * defs.h (host_pointer_to_address): Delete declaration.
10622 (address_to_host_pointer): Delete declaration.
10623 * utils.c (host_pointer_to_address): Delete function.
10624 (address_to_host_pointer): Delete function.
10625 * procfs.c (procfs_address_to_host_pointer): New function.
10626 * procfs.c (proc_set_watchpoint): Use.
10627 (procfs_can_use_hw_breakpoint): Update comments.
10628 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10629 (som_solib_add): Use.
10630 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10631 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10632
7ca9f392
AC
106332003-02-01 Andrew Cagney <ac131313@redhat.com>
10634
94bbfd30
AC
10635 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10636 strlen d_name.
10637
7ca9f392
AC
10638 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10639 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10640 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10641 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10642 (define_symbol): Update.
10643 * symfile.c (generic_load): Remove references to nindy.
10644 * symtab.c: Remove references to nindy.
10645
31a85ea2
AC
106462003-02-01 Andrew Cagney <ac131313@redhat.com>
10647
10648 * infcmd.c (print_float_info): Delete code conditional on
10649 FLOAT_INFO.
10650 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10651 * config/m68k/nm-apollo68b.h: Ditto.
10652 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10653 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10654 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10655
f6e85fc8
MK
106562003-02-01 Mark Kettenis <kettenis@gnu.org>
10657
6015b6a0
MK
10658 * config/i386/tm-i386os9k.h: Removed.
10659
f7a30bdf
MK
10660 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10661 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10662 they're identical to i[3456]86-*-sysv* now.
10663 * config/i386/i386v32.mh: Removed.
10664 * config/i386/xm-i386v32.h: Removed.
10665 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10666
28d52111
MK
10667 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10668
4d3f6bce
MK
10669 * config/i386/i386dgux.mh: Removed.
10670 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10671
f6e85fc8
MK
10672 * configure.in: Fix typo.
10673 * configure: Regenerated.
10674
53955967
DC
106752003-01-31 David Carlton <carlton@math.stanford.edu>
10676
10677 * dwarf2read.c (dwarf2_locate_sections): Set
10678 dwarf_ranges_section.
10679
b1364885
AC
106802003-01-31 Andrew Cagney <ac131313@redhat.com>
10681
8dbb1c65
AC
10682 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10683 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10684
8731e58e
AC
10685 * utils.c: Re-indent.
10686
b1364885
AC
10687 * config/djgpp/fnchange.lst: Delete nindy files.
10688 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10689 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10690 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10691 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10692 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10693 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10694 * Makefile.in (init.c): Remove nindy references.
10695 (saber_gdb): Delete rule.
10696 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10697 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10698 and a68v-nat.c.
10699 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10700 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10701 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10702 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10703 nindy-share/stop.h.
10704 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10705 * saber.suppress: Delete file.
10706
086df311
DJ
107072003-01-31 Daniel Jacobowitz <drow@mvista.com>
10708
10709 * dbxread.c (stabs_data): New static variable.
10710 (fill_symbuf): Support an in-memory buffer for stabs data.
10711 (stabs_seek): New function.
10712 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10713 (read_ofile_symtab): Use stabs_seek.
10714 (elfstab_build_psymtabs): Take an asection* instead of
10715 an offset and size. Relocate the stabs data if necessary.
10716 Save the section* for dbx_psymtab_to_symtab.
10717 * dwarf2read.c: Add section variables for each debug section.
10718 (dwarf2_locate_sections): Fill them in.
10719 (dwarf2_read_section): Take an asection* argument.
10720 Relocate the section contents if necessary.
10721 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10722 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10723 it to dwarf2_read_section.
10724 (dwarf2_build_frame_info): Update callers.
10725 * elfread.c (elf_symfile_read): Update call to
10726 elfstab_build_psymtabs.
10727 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10728 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10729 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10730 * symfile.c (symfile_dummy_outputs): New function.
10731 (symfile_relocate_debug_section): New function.
10732 * symfile.h (symfile_relocate_debug_section): Add prototype.
10733
87d1b352
RH
107342003-01-31 Richard Henderson <rth@redhat.com>
10735
10736 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10737 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10738 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10739 * alpha-tdep.c (alpha_register_name): Add "unique".
10740 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10741 (ALPHA_UNIQUE_REGNUM): New.
10742 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10743
c48861fb
AC
107442003-01-31 Andrew Cagney <ac131313@redhat.com>
10745
10746 * README: Remove reference to Ericsson 1800 monitor.
10747 * Makefile.in (remote-es.o): Delete rule.
10748 (ALLDEPFILES): Delete remote-es.c.
10749 * remote-es.c: Delete file.
10750 * config/m68k/es1800.mt: Delete file.
10751 * config/djgpp/fnchange.lst: Update.
10752 * configure.tgt: Delete m68*-ericsson-* target.
10753
d764a824
AF
107542003-01-31 Adam Fedor <fedor@gnu.org>
10755
10756 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10757 Remove duplicate/shadowing variable of same name.
10758
fe36c4f4
JB
107592003-01-30 Jim Blandy <jimb@redhat.com>
10760
10761 * symfile.c (find_separate_debug_file): Assert that the objfile's
10762 directory name we compute ends with a slash, and then assume that
10763 that's so everywhere we use it.
10764
cb741690
DJ
107652003-01-30 Daniel Jacobowitz <drow@mvista.com>
10766
10767 * valops.c (value_assign): Flush frame cache after stores to memory
10768 also.
10769
96ee5227
AC
107702003-01-30 Andrew Cagney <ac131313@redhat.com>
10771
10772 * Makefile.in (mon960-rom.o): Delete rule.
10773 * mon960-rom.c: Delete file.
10774
7f6104a9
AC
107752003-01-30 Andrew Cagney <ac131313@redhat.com>
10776
10777 * d10v-tdep.c: Include "frame-unwind.h".
10778 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10779 list.
10780 (next_addr, uses_frame): Delete.
10781 (struct d10v_unwind_cache): Define.
10782 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10783 Use info instead of next_addr and uses_frame globals.
10784 (d10v_frame_init_saved_regs): Delete function.
10785 (d10v_init_extra_frame_info): Delete function.
10786 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10787 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10788 init_frame_pc or frame_saved_pc.
10789 (d10v_pop_frame): Delete function.
10790 (do_d10v_pop_frame): Delete function.
10791 (d10v_frame_chain): Delete function.
10792 (d10v_frame_chain_valid): Delete function.
10793 (d10v_frame_pc_unwind): New function.
10794 (d10v_frame_id_unwind): New function.
10795 (saved_regs_unwinder): New function.
10796 (d10v_frame_register_unwind): New function.
10797 (d10v_frame_pop): New function.
10798 (d10v_frame_unwind): New variable.
10799 (d10v_frame_p): New function.
10800 (d10v_frame_saved_pc): Delete function.
10801 * Makefile.in (d10v-tdep.o): Update dependencies.
10802
cad2e848
JB
108032003-01-30 J. Brobecker <brobecker@gnat.com>
10804
10805 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10806 causing some regressions due to a change in the default value
10807 for this macro.
10808
af34e669
DJ
108092003-01-29 Richard Henderson <rth@redhat.com>
10810 Elena Zannoni <ezannoni@redhat.com>
10811 Daniel Jacobowitz <drow@mvista.com>
10812
10813 Fix PR gdb/961.
8ffd9b1b 10814 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10815 variables.
10816 (RANGES_SECTION): New.
10817 (dwarf_ranges_buffer): New variable.
10818 (struct comp_unit_head): Add member "die".
10819 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10820 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10821 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10822 (dwarf2_locate_sections): Likewise.
10823 (dwarf2_build_psymtabs): Read .debug_ranges.
10824 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10825 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10826 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10827 Look for DW_AT_ranges and return the bounding box.
10828
baa93fa6
CF
108292003-01-29 Brian Ford <ford@vss.fsi.com>
10830
10831 * win32-nat.c (cygwin_pid): Removed as unused.
10832 (child_attach): Try fall back to Cygwin pid.
10833
c63f977f
JB
108342003-01-29 Jim Blandy <jimb@redhat.com>
10835
10836 * objfiles.h (struct objfile): Doc fix.
10837
d62d1979
AC
108382003-01-29 Andrew Cagney <ac131313@redhat.com>
10839
10840 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10841 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10842 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10843 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10844 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10845 (FRAME_SAVED_PC): Change to a function with predicate.
10846 * gdbarch.h, gdbarch.c: Re-generate.
10847
1ae18a04
AC
108482003-01-28 Andrew Cagney <ac131313@redhat.com>
10849
52287340
AC
10850 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10851
1ae18a04
AC
10852 * complaints.c (complain): Delete function.
10853 * complaints.h (struct deprecated_complaint): Delete definition.
10854 (complain): Delete declaration.
10855
f2c16bd6
KB
108562003-01-28 Kevin Buettner <kevinb@redhat.com>
10857
10858 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10859 dummy frames.
10860
a94dd1fd
AC
108612003-01-27 Andrew Cagney <ac131313@redhat.com>
10862
10863 * sentinel-frame.h, sentinel-frame.c: New files.
10864 * Makefile.in (frame.o): Update dependencies.
10865 (SFILES): Add sentinel-frame.c.
10866 (sentinel_frame_h): Define.
10867 (COMMON_OBS): Add sentinel-frame.o.
10868 (sentinel-frame.o): Specify dependencies.
10869 * frame.c: Include "sentinel-frame.h".
10870 (frame_register_unwind): Rewrite assuming that there is always a a
10871 ->next frame.
10872 (frame_register, generic_unwind_get_saved_register): Ditto.
10873 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10874 (create_sentinel_frame, unwind_to_current_frame): New functions.
10875 (get_current_frame): Rewrite using create_sentinel_frame and
10876 unwind_to_current_frame. When possible, always create a frame.
10877 (create_new_frame): Set next to the sentinel frame.
10878 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10879 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10880 ID cache when necessary.
10881 (frame_saved_regs_id_unwind): Use frame_relative_level.
10882 (deprecated_generic_get_saved_register): Use frame_relative_level,
10883 get_frame_saved_regs, get_frame_pc, get_frame_base and
10884 get_next_frame.
10885 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10886 frame_register.
10887
5378adc4
DJ
108882003-01-27 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10891
51ee2ddc
DJ
108922003-01-27 Daniel Jacobowitz <drow@mvista.com>
10893
10894 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10895 (maintenance_set_profile_cmd): Use error () instead of warning ().
10896
d9feb4e7
DJ
108972003-01-27 Daniel Jacobowitz <drow@mvista.com>
10898
10899 * configure.in: Check that -pg works if using --enable-profiling.
10900 Check for monstartup and _mcleanup regardless of --enable-profiling.
10901 * maint.c: Check for monstartup and _mcleanup before using them.
10902 * config.in: Regenerated.
10903 * configure: Regenerated.
10904
2d188dd3
NC
109052003-01-24 Nick Clifton <nickc@redhat.com>
10906
10907 * Add sh2e support:
10908
10909 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10910
10911 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10912 (sh2e_show_regs): New.
10913 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10914 * config/sh/tm-sh.h: Added sh2e to comments.
10915
cb3c37b2
JB
109162003-01-23 Jim Blandy <jimb@redhat.com>
10917
10918 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10919 symbols found)" message here; we haven't checked for a separate
10920 debug info file yet, so we don't know yet.
10921 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10922 we've looked everywhere. Also, there's no need to print a special
10923 message when we're loading the separate debug info file: the one
10924 symbol_file_add prints is fine.
10925
5b5d99cf
JB
109262003-01-23 Alexander Larsson <alexl@redhat.com>
10927 Jim Blandy <jimb@redhat.com>
10928
10929 Add support for executables whose debug info has been separated
10930 out into a separate file, leaving only a link behind.
10931 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10932 and separate_debug_objfile_backlink.
10933 (put_objfile_before): New declaration.
10934 * symfile.c: #include "filenames.h".
10935 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10936 debug info in a separate file, read that, too. Save the addrs
10937 argument, so we can use it again to read the separated debug info;
10938 syms_from_objfile modifies the table we pass it.
10939 (reread_symbols): After re-reading an objfile, call
10940 reread_separate_symbols to refresh its separate debug info
10941 objfile, if it has one.
10942 (reread_separate_symbols, find_separate_debug_file,
10943 get_debug_link_info, separate_debug_file_exists): New functions.
10944 (debug_file_directory): New global var.
10945 (_initialize_symfile): Initialize debug_file_directory, and
10946 provide the new `set debug-file-directory' command to let the user
10947 change it.
10948 * objfiles.c (free_objfile): If this objfile has its debug info in
10949 a separate objfile, free that one too. If this is itself a
10950 separate debug info objfile, clear our parent's backlink.
10951 (put_objfile_before): New function.
10952 * utils.c (gnu_debuglink_crc32): New function.
10953 * defs.h (gnu_debuglink_crc32): New declaration.
10954 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10955 * configure.in: Handle --with-separate-debug-dir config option.
10956 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10957 * acconfig.h (DEBUGDIR): New macro.
10958 * configure, aclocal.m4, config.in: Regenerated.
10959
7e8580c1
JB
109602003-01-22 Jim Blandy <jimb@redhat.com>
10961
7904e09f
JB
10962 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10963 like the old symbol_file_add, but taking new arguments: you can
10964 now pass in either a `struct section_addr_info' list to say where
10965 each section is loaded, or a `struct section_offsets' table. Pass
10966 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10967 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10968 with the appropriate quiescent values for the new arguments.
10969
7e8580c1
JB
10970 * symfile.c: #include "gdb_assert.h".
10971 (syms_from_objfile): Add the ability to pass in a section offset
10972 table directly, as an alternative to the section_addr_info table.
10973 Document arguments better.
10974 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10975 * symfile.h (syms_from_objfile): Update declaration.
10976 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10977 syms_from_objfile.
10978 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10979
d28f9cdf
DJ
109802003-01-22 Daniel Jacobowitz <drow@mvista.com>
10981
10982 Original patch by Tom Tromey <tromey@cygnus.com> and
10983 Jason Molenda <jmolenda@apple.com>.
10984 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10985 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10986 * NEWS: Mention profiling.
10987 * configure.in (--enable-gdbtk): Fix typo.
10988 (--enable-profiling): New. Set PROFILE_CFLAGS.
10989 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10990 Fill in function.
10991 (profiling_state): New variable.
10992 (mcleanup_wrapper): New function.
10993 (_initialize_maint): Remove NOTYET, fix call to
10994 add_setshow_boolean_cmd for "maint set profile".
10995 * configure: Regenerated.
10996
df21e465
MH
109972003-01-21 Martin M. Hunt <hunt@redhat.com>
10998
10999 * Makefile.in (install-gdbtk): Install PNG images too.
11000
73c1f219
AC
110012003-01-21 Andrew Cagney <ac131313@redhat.com>
11002
11003 * exec.c (text_start): Delete global variable.
11004 (exec_file_attach): Make text_start local to the function.
11005 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11006 * valops.c (hand_function_call): Delete code that handles
11007 BEFORE_TEXT_END and AFTER_TEXT_END.
11008 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11009 of CALL_DUMMY_LOCATION.
11010 * gdbarch.c: Regenerate.
11011 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11012 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11013 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11014 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11015 (text_end): Delete extern declaration.
11016
eb4f72c5
AC
110172003-01-21 Andrew Cagney <ac131313@redhat.com>
11018
11019 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11020 * blockframe.c (backtrace_below_main): Move to "frame.c".
11021 (frame_chain_valid): Delete check for backtrace_below_main.
11022 (_initialize_blockframe): Delete initialization, move ``set
11023 backtrace-below-main'' command to "frame.c".
11024 (do_flush_frames_sfunc): Delete function.
11025 * frame.c: Include "command.h" and "gdbcmd.h".
11026 (frame_type_from_pc): New function.
11027 (create_new_frame): Use frame_type_from_pc.
11028 (legacy_get_prev_frame): New function.
11029 (get_prev_frame): Rewrite. When an old style frame, call
11030 legacy_get_prev_frame. Otherwize, unwind the PC first.
11031 (_initialize_frame): Add ``set backtrace-below-main'' command.
11032 * Makefile.in (frame.o): Update dependencies.
11033
778ce8cc
AC
110342003-01-19 Andrew Cagney <ac131313@redhat.com>
11035
11036 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11037 DEPRECATED_REGISTERS_INFO.
11038
01c193c8
AC
110392003-01-19 Andrew Cagney <ac131313@redhat.com>
11040
11041 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11042 Maintainers'. Update `Various Maintainers'.
11043
dedc2a2b
AC
110442003-01-19 Andrew Cagney <ac131313@redhat.com>
11045
11046 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11047 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11048 Suppress actual parameters when `-'.
11049 * gdbarch.h, gdbarch.c: Regenerate.
11050
b7261c70
AC
110512003-01-19 Andrew Cagney <ac131313@redhat.com>
11052
11053 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11054 code handling dummy frames.
11055
dbe9fe58
AC
110562003-01-19 Andrew Cagney <ac131313@redhat.com>
11057
11058 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11059 (struct frame_unwind): Add field pop.
11060 * frame.h (frame_pop): Declare.
11061 * frame.c (frame_saved_regs_pop): New function.
11062 (trad_frame_unwinder): Add frame_saved_regs_pop.
11063 (frame_pop): New function.
11064 * dummy-frame.c (dummy_frame_pop): New function.
11065 (discard_innermost_dummy): New function.
11066 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11067 (dummy_frame_unwind): Add dummy_frame_pop.
11068 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11069 * valops.c (hand_function_call): Ditto.
11070 * stack.c (return_command): Ditto.
11071
570b8f7c
AC
110722003-01-18 Andrew Cagney <ac131313@redhat.com>
11073
11074 * cris-tdep.c: Fix function declaration indentation.
11075 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11076 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11077 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11078 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11079 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11080 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11081
110822003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11083
11084 * README (Unpacking and Installation -- quick overview):
11085 Warn against ".../gdb-5.3/gdb/configure".
11086
494cca16
AC
110872003-01-18 Andrew Cagney <ac131313@redhat.com>
11088
11089 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11090 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11091 (struct frame_unwind): Declare opaque.
11092 (dummy_frame_p): Declare function.
11093 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11094 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11095 * dummy-frame.c: Include "frame-unwind.h".
11096 (dummy_frame_p): New function.
11097 (dummy_frame_unwind): New variable.
11098 * frame.c: Include "frame-unwind.h".
11099 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11100 to use the new unwind field.
11101 (set_unwind_by_pc): Delete function.
11102 (create_new_frame, get_prev_frame): Set unwind field using
11103 frame_unwind_find_by_pc.
11104 (trad_frame_unwind, trad_frame_unwinder): New variables.
11105 * frame.h (trad_frame_unwind): Declare variable.
11106 (frame_id_unwind_ftype): Delete declaration.
11107 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11108 (struct frame_unwind): Declare opaque.
11109 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11110 register_unwind with a single unwind pointer.
11111 * frame-unwind.h, frame-unwind.c: New files.
11112 * Makefile.in (SFILES): Add frame-unwind.c.
11113 (frame_unwind_h): Define.
11114 (COMMON_OBS): Add frame-unwind.o.
11115 (frame-unwind.o): Specify dependencies.
11116 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11117
4efb68b1
AC
111182003-01-18 Andrew Cagney <ac131313@redhat.com>
11119
11120 * ada-valprint.c: Eliminate PTR.
11121 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11122 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11123 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11124 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11125 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11126 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11127 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11128
a84d24ee
AC
111292003-01-17 Andrew Cagney <ac131313@redhat.com>
11130
762f08a3
AC
11131 * main.c (captured_main): Don't use PTR.
11132 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11133 * gdbtypes.c (lookup_primitive_typename): Ditto.
11134 (lookup_struct_elt_type): Ditto.
11135 * f-valprint.c (info_common_command): Ditto.
11136 (list_all_visible_commons): Ditto.
11137 * jv-typeprint.c (java_type_print_base): Ditto.
11138
a84d24ee
AC
11139 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11140 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11141 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11142 i386-interix-nat.c and i386-interix-tdep.c. Rename
11143 m68klinux-nat.c and m68klinux-tdep.c. Rename
11144 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11145 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11146 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11147 * main.c (captured_main): Use xfree, not free.
11148
c170fb60
AC
111492003-01-16 Andrew Cagney <ac131313@redhat.com>
11150
11151 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11152 ID back using a parameter.
11153 * frame.c (frame_id_unwind): Update call.
11154 (frame_saved_regs_id_unwind): Update.
11155 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11156 * dummy-frame.h (struct frame_id): Add opaque declaration.
11157 (dummy_frame_id_unwind): Update declaration.
11158
867f3898
AC
111592003-01-15 Andrew Cagney <ac131313@redhat.com>
11160
11161 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11162
40622be8 111632003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11164
40622be8 11165 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11166
ae66c1fc
EZ
111672003-01-14 Elena Zannoni <ezannoni@redhat.com>
11168
997b089a 11169 Fix PR gdb/898
ae66c1fc
EZ
11170 * breakpoint.c (until_break_command): Add new argument. Use it to
11171 decide whether to stop only at the current frame or not.
11172 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11173 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11174 call.
11175 (advance_command): New function.
11176 (_initialize_infcmd): Update help string for 'until' command.
11177 Add new 'advance' command.
11178
a04257e6
DC
111792003-01-14 David Carlton <carlton@math.stanford.edu>
11180
11181 * linespec.c (decode_line_1): Normalize comments.
11182 (set_flags): Ditto.
11183 (locate_first_half): Ditto.
11184 (decode_compound): Ditto.
11185 (symtab_from_filename): Ditto.
11186 (decode_all_digits): Ditto.
11187 (decode_dollar): Ditto.
11188 (find_methods): Ditto.
11189 (find_toplevel_char): Ditto.
11190
1bac305b
AC
111912003-01-13 Andrew Cagney <ac131313@redhat.com>
11192
11193 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11194 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11195 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11196 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11197 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11198 * language.c, language.h, m32r-tdep.c: Update copyright.
11199 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11200 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11201 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11202 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11203 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11204 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11205
25caa7a8
EZ
112062003-01-13 Elena Zannoni <ezannoni@redhat.com>
11207
11208 * stabsread.h (process_later, resolve_cfront_continuation):
11209 Obsolete.
11210 Update copyright years.
11211 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11212 Update copyright year.
11213 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11214 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11215 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11216 Update copyright year.
11217 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11218 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11219 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11220 (parse_partial_symbols): Obsolete cfront support.
11221 * stabsread.c
11222 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11223 macros.
11224 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11225 read_cfront_baseclasses, read_cfront_member_functions,
11226 resolve_cfront_continuation,read_cfront_static_fields,
11227 copy_cfront_struct_fields): Obsolete functions.
11228 (define_symbol, read_one_struct_field): Obsolete cfront support.
11229 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11230 Update Copyright year.
11231
7789c6f5
EZ
112322003-01-13 Elena Zannoni <ezannoni@redhat.com>
11233
11234 * stack.c (print_frame_info, print_stack_frame_base_stub,
11235 print_stack_frame_base, show_and_print_stack_frame_stub,
11236 show_and_print_stack_frame, print_only_stack_frame_stub,
11237 print_only_stack_frame): Delete functions.
11238 (print_stack_frame_stub): Call print_frame_info instead of
11239 print_frame_info_base.
11240 (print_frame_info_base): Rename to print_frame_info.
11241 (backtrace_command_1): Call print_frame_info, instead of
11242 print_frame_info_base.
11243 (current_frame_command): Call print_stack_frame, instead of
11244 print_only_stack_frame.
11245 (frame_command): Call print_stack_frame, instead of
11246 show_and_print_stack_frame.
11247 (up_command): Ditto.
11248 (down_command): Ditto.
11249 * frame.h (print_only_stack_frame): Delete prototype.
11250 * infrun.c (normal_stop): Call print_stack_frame, instead of
11251 show_and_print_stack_frame.
11252 * thread.c (info_threads_command): Call print_stack_frame, instead
11253 of print_only_stack_frame.
11254
3f5a3016
AC
112552003-01-13 Andrew Cagney <ac131313@redhat.com>
11256
d99ba314
AC
11257 * README (Graphical interface to GDB): Update URL. Point at
11258 gdb/links/.
11259
3f5a3016
AC
11260 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11261 version match.
11262
083ae935
DJ
112632003-01-13 Daniel Jacobowitz <drow@mvista.com>
11264
11265 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11266 lines.
11267
5365276c
DJ
112682003-01-13 Daniel Jacobowitz <drow@mvista.com>
11269
11270 * thread-db.c (attach_thread): Prototype.
11271 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11272 thread information (ti), and valid flags (th_valid, ti_valid).
11273 (attach_thread): Move target_pid_to_str call to after the thread
11274 is added to GDB's list. Initialize the cache.
11275 (thread_get_info_callback, thread_db_map_id2thr)
11276 (thread_db_get_info): New functions.
11277 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11278 (thread_db_store_registers, thread_db_thread_alive)
11279 (thread_db_get_thread_local_address): Use them.
11280 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11281 of calling error() for threads in unknown state.
11282
11283 (clear_lwpid_callback): New function.
11284 (thread_db_resume): Use it to clear the cache.
11285
9fc30b6b
DJ
112862003-01-13 Daniel Jacobowitz <drow@mvista.com>
11287
11288 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11289 (resume_callback): Remove dead code.
11290
8f871025
AC
112912003-01-13 Andrew Cagney <ac131313@redhat.com>
11292
11293 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11294 predicate.
11295 * gdbarch.h, gdbarch.c: Regenerate.
11296 * stack.c (frame_info): Only initialize the saved registers when
11297 FRAME_INIT_SAVED_REGS_P.
11298 * frame.c (frame_saved_regs_register_unwind): Assert
11299 FRAME_INIT_SAVED_REGS_P.
11300 (deprecated_generic_get_saved_register): Ditto.
11301
3f565f1e
DJ
113022003-01-13 Daniel Jacobowitz <drow@mvista.com>
11303
11304 * source.c (openp): Squelch warning about "filename".
11305
072b1022
DJ
113062003-01-13 Daniel Jacobowitz <drow@mvista.com>
11307
11308 * source.c (openp): If the file does not exist don't necessarily
11309 search the path.
11310
973ccf8b
DJ
113112003-01-13 Daniel Jacobowitz <drow@mvista.com>
11312
11313 Fix PR gdb/872.
11314 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11315 (integer_types_same_name_p): New function.
11316 (rank_one_type): Use it.
11317 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11318
030292b7
DJ
113192003-01-13 Daniel Jacobowitz <drow@mvista.com>
11320
11321 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11322 variables.
11323 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11324 * configure.in: Add --with-sysroot.
11325 * configure: Regenerated.
11326 * main.c (gdb_sysroot): New variable.
11327 (captured_main): Initialize gdb_sysroot.
11328 * defs.h (gdb_sysroot): New extern declaration.
11329 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11330
afb5d334
MC
113312003-01-12 Michael Chastain <mec@shout.net>
11332
11333 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11334
751ceeb4
MC
113352003-01-12 Michael Chastain <mec@shout.net>
11336
11337 * top.c (print_gdb_version): Bump copyright year to 2003.
11338
94cd26f8
DC
113392003-01-12 David Carlton <carlton@bactrian.org>
11340
11341 * linespec.c (symtab_from_filename): Rename variable 's' to
11342 'file_symtab'.
11343
1ce79225
AC
113442003-01-12 Andrew Cagney <ac131313@redhat.com>
11345
11346 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11347 dummy frame.
11348 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11349
fa1fd571
AC
113502003-01-12 Andrew Cagney <ac131313@redhat.com>
11351
11352 * d10v-tdep.c: Include "gdb_assert.h".
11353 (d10v_store_return_value): Rewrite to match current interface.
11354 (d10v_extract_struct_value_address): Ditto.
11355 (d10v_extract_return_value): Ditto.
11356 (d10v_gdbarch_init): Set store_restore_value,
11357 extract_struct_value_address and extract_return_value.
11358
68b8d23e
JB
113592003-01-12 J. Brobecker <brobecker@gnat.com>
11360
11361 * hpread.c (set_namestring): New procedure replacing the
11362 SET_NAMESTRING macro.
11363 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11364 by calls to set_namestring.
11365
113662003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11367
11368 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11369 a compilation warning.
11370 (hpread_process_one_debug_symbol): Likewise.
11371
88d262ca
DC
113722003-01-10 David Carlton <carlton@math.stanford.edu>
11373
11374 * linespec.c (decode_line_1): Rename variable 's' to
11375 'file_symtab'.
11376 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11377 (decode_dollar): Ditto.
11378 (decode_variable): Ditto.
11379 (symbol_found): Ditto.
11380
86669319
MC
113812003-01-09 Michael Chastain <mec@shout.net>
11382
11383 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11384
616a9dc4
CV
113852003-01-07 Corinna Vinschen <vinschen@redhat.com>
11386
11387 * win32-nat.c (set_process_privilege): New function.
11388 (child_attach): Call set_process_privilege() to enable the
11389 SE_DEBUG_NAME user privilege if available in process token.
11390
3269bcfa
JB
113912003-01-10 J. Brobecker <brobecker@gnat.com>
11392
11393 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11394 compilation error in the previous revision.
11395
2b0ee454
DC
113962003-01-09 David Carlton <carlton@math.stanford.edu>
11397
11398 * linespec.c: Update copyright.
11399
b3ba1b44
DJ
114002003-01-09 Daniel Jacobowitz <drow@mvista.com>
11401
11402 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11403 than inferior_ptid.
11404 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11405
4ef3f3be
AC
114062003-01-09 Andrew Cagney <ac131313@redhat.com>
11407
479ab5a0
AC
11408 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11409 Update comments.
11410 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11411 (frame_saved_regs_zalloc): Update.
11412 (frame_saved_regs_register_unwind): Update.
11413 (create_new_frame): Update.
11414 (get_prev_frame): Update.
11415 (frame_extra_info_zalloc): Update.
11416 (deprecated_get_frame_saved_regs): Update.
11417 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11418 * cris-tdep.c: Update comment.
11419
bde58177
AC
11420 * somsolib.h: Fix function indentation.
11421 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11422 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11423 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11424 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11425 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11426
4ef3f3be
AC
11427 * infrun.c (follow_fork): Use ISO C definition.
11428 * expprint.c (print_subexp): Use xfree instead of free.
11429 * charset.c: Include "gdb_string.h" instead of <string.h>.
11430 (register_iconv_charsets): Use ISO C definition.
11431 (host_charset, target_charset): Ditto.
11432 * Makefile.in (charset.o): Update dependencies.
11433 (mi-cmd-env.o): Update dependencies.
11434
1c615f7a
AC
114352003-01-08 Andrew Cagney <cagney@redhat.com>
11436
11437 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11438 get_frame_base.
11439
c9a1dc08
AC
114402003-01-08 Andrew Cagney <ac131313@redhat.com>
11441
11442 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11443 build directories. Save edited gdb output in Mbuild.log. If a
11444 build fails, remove any final GDB executable.
11445
dbad9d94
AC
114462003-01-08 Andrew Cagney <ac131313@redhat.com>
11447
11448 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11449 replacing hex constants with function names and stripping leading
11450 file name directory prefixes.
11451
8d357cca
AC
114522003-01-08 Andrew Cagney <cagney@redhat.com>
11453
11454 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11455 get_frame_base.
11456
bca02a8a
DC
114572003-01-08 David Carlton <carlton@math.stanford.edu>
11458
11459 * linespec.c (decode_line_1): Move code into decode_variable.
11460 (decode_variable): New function.
11461
7f8ab3a0
AC
114622003-01-08 Andrew Cagney <ac131313@redhat.com>
11463
11464 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11465
7b5849cc
AC
114662003-01-08 Andrew Cagney <cagney@redhat.com>
11467
11468 * cris-tdep.c (cris_frame_init_saved_regs): Use
11469 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11470 saved_regs buffer.
11471 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11472 (sh64_nofp_frame_init_saved_regs): Ditto.
11473 (sh_fp_frame_init_saved_regs): Ditto.
11474 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11475 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11476 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11477 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11478
72a5efb3
DJ
114792003-01-08 Daniel Jacobowitz <drow@mvista.com>
11480
11481 * minsyms.c (lookup_minimal_symbol): Update comment.
11482 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11483 (lookup_minimal_symbol_solib_trampoline): Likewise.
11484
11c02a10
AC
114852003-01-08 Andrew Cagney <cagney@redhat.com>
11486
aab3ea25
AC
11487 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11488 frame_relative_level.
11489
da50a4b7
AC
11490 * alpha-tdep.c: Use get_frame_extra_info.
11491 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11492 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11493 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11494 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11495
11c02a10
AC
11496 * alpha-tdep.c: Use get_next_frame.
11497 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11498 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11499 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11500 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11501 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11502 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11503 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11504
1e2330ba
AC
115052003-01-07 Andrew Cagney <cagney@redhat.com>
11506
11507 * alpha-tdep.c: Use get_frame_base.
11508 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11509 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11510 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11511 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11512 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11513 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11514 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11515 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11516
2d75187b
AC
115172003-01-07 Andrew Cagney <cagney@redhat.com>
11518
11519 * frame.c (deprecated_get_frame_context): New function.
11520 (deprecated_set_frame_context): New function.
11521 * frame.h (deprecated_get_frame_context): Declare.
11522 (deprecated_set_frame_context): Declare.
11523 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11524 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11525
483d36b2
AC
115262003-01-07 Andrew Cagney <cagney@redhat.com>
11527
11528 * frame.c (deprecated_set_frame_next_hack): New function.
11529 (deprecated_set_frame_prev_hack): New function.
11530 * frame.h (deprecated_set_frame_next_hack): Declare.
11531 (deprecated_set_frame_prev_hack): Declare.
11532 * mcore-tdep.c (analyze_dummy_frame): Use
11533 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11534 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11535
14e91ac5
DC
115362003-01-07 David Carlton <carlton@math.stanford.edu>
11537
11538 * linespec.c (decode_line_1): Move code into decode_dollar.
11539 (decode_dollar): New function.
11540
b0c6b05c
AC
115412003-01-07 Andrew Cagney <cagney@redhat.com>
11542
11543 * arm-tdep.c (arm_init_extra_frame_info): Use
11544 deprecated_update_frame_base_hack.
11545 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11546 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11547 (fix_frame_pointer): Ditto.
11548 (mn10300_analyze_prologue): Ditto.
11549
a00a19e9
AC
115502003-01-07 Andrew Cagney <cagney@redhat.com>
11551
11552 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11553 extra_info using frame_extra_info_zalloc.
11554 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11555 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11556 (sh64_init_extra_frame_info): Ditto.
11557 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11558 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11559 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11560 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11561 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11562 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11563 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11564 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11565 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11566 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11567 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11568 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11569
11570 * mn10300-tdep.c (analyze_dummy_frame): Use
11571 deprecated_set_frame_extra_info_hack.
11572 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11573
1fb4c65b
JB
115742003-01-07 J. Brobecker <brobecker@gnat.com>
11575
11576 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11577 class is not scText. These do not define "real" procedures.
11578 (parse_partial_symbols): Likewise.
11579
9fe7d6bf
MS
115802003-01-06 Michael Snyder <msnyder@redhat.com>
11581
11582 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11583
f6c609c4
AC
115842003-01-06 Andrew Cagney <ac131313@redhat.com>
11585
11586 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11587 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11588 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11589 deprecated_frame_xmalloc_with_cleanup.
11590 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11591 deprecated_frame_xmalloc.
11592 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11593 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11594
d995ff4b
AC
115952003-01-06 Andrew Cagney <cagney@redhat.com>
11596
84dc46cb
AC
11597 * x86-64-linux-tdep.c: Include "osabi.h".
11598 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11599
d995ff4b
AC
11600 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11601
66140c26
AC
116022003-01-06 Andrew Cagney <cagney@redhat.com>
11603
11604 * MAINTAINERS (Target Instruction Set Architectures): Update
11605 arm-elf. Can be built with -Werror, has been multiarched.
11606
11607 * value.h (unpack_long): Make buffer parameter constant.
11608 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11609 * scm-lang.h (scm_parse): Ditto.
11610 * defs.h (extract_typed_address, extract_address): Ditto.
11611 (extract_long_unsigned_integer): Ditto.
11612 * inferior.h (unsigned_pointer_to_address): Ditto.
11613 (signed_pointer_to_address): Ditto.
11614 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11615 * gdbarch.h, gdbarch.c: Regenerate.
11616 * findvar.c (extract_long_unsigned_integer): Update.
11617 (extract_address): Update.
11618 (extract_typed_address): Update.
11619 (unsigned_pointer_to_address): Update.
11620 * values.c (unpack_long): Update.
11621 (unpack_double): Update.
11622 (unpack_pointer): Update.
11623 (unpack_field_as_long): Update.
11624 * d10v-tdep.c (d10v_pointer_to_address): Update.
11625 * avr-tdep.c (avr_pointer_to_address): Update.
11626 * scm-lang.c (scm_unpack): Update.
11627 * findvar.c (signed_pointer_to_address): Update.
11628
b089b3da
ML
116292003-01-06 Michal Ludvig <mludvig@suse.cz>
11630
8ffd9b1b 11631 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11632 since it is in i386-tdep.c.
11633
aff87235
JB
116342003-01-06 J. Brobecker <brobecker@gnat.com>
11635
11636 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11637 failure introduced in the previous change.
11638
34f5e845
MC
116392003-01-05 Michael Chastain <mec@shout.net>
11640
11641 * README: Remove references to deleted remote-*.c files:
11642 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11643 remote-nrom.c, remote-os9k.c, remote-udi.c.
11644
28bcfd30
MK
116452003-01-05 Mark Kettenis <kettenis@gnu.org>
11646
11647 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11648 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11649 i386_get_longjmp_target.
11650
15a5b3ee
AC
116512003-01-05 Andrew Cagney <ac131313@redhat.com>
11652
11653 * arm-tdep.c (prologue_cache): Change to a pointer.
11654 (_initialize_arm_tdep): Allocate prologue_cache.
11655 (check_prologue_cache): Update.
11656 (save_prologue_cache): Update.
11657 (arm_gdbarch_init): Update.
11658
c263362b
DJ
116592003-01-04 Daniel Jacobowitz <drow@mvista.com>
11660
11661 * stabsread.c (update_method_name_from_physname): Call complaint()
11662 instead of error.
11663
51603483
DJ
116642003-01-04 Daniel Jacobowitz <drow@mvista.com>
11665
11666 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11667 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11668 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11669
11670 * blockframe.c: Include "gdbcmd.h" and "command.h".
11671 (backtrace_below_main): New variable.
11672 (file_frame_chain_valid, func_frame_chain_valid)
11673 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11674 (generic_func_frame_chain_valid): Remove functions.
11675 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11676 (_initialize_blockframe): New function.
11677 * Makefile.in (blockframe.o): Update dependencies.
11678 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11679 comment. Call frame_chain_valid ().
11680 * frame.h: Remove old prototypes. Add prototype for
11681 frame_chain_valid and update comments to match.
11682 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11683 Remove old comment.
11684 * gdbarch.h: Regenerated.
11685 * gdbarch.c: Regenerated.
11686
11687 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11688 set_gdbarch_frame_chain_valid.
11689 * avr-tdep.c (avr_gdbarch_init): Likewise.
11690 * cris-tdep.c (cris_gdbarch_init): Likewise.
11691 * frv-tdep.c (frv_gdbarch_init): Likewise.
11692 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11693 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11694 (i386_nw_init_abi): Likewise.
11695 (i386_gdbarch_init): Likewise.
11696 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11698 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11699 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11700 * mips-tdep.c (mips_gdbarch_init): Likewise.
11701 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11702 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11703 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11704 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11705 * s390-tdep.c (s390_gdbarch_init): Likewise.
11706 * sh-tdep.c (sh_gdbarch_init): Likewise.
11707 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11708 * v850-tdep.c (v850_gdbarch_init): Likewise.
11709 * vax-tdep.c (vax_gdbarch_init): Likewise.
11710 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11711
11712 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11713 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11714 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11715 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11716 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11717 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11718 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11719 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11720
b00a8037
DJ
117212002-01-04 Daniel Jacobowitz <drow@mvista.com>
11722
11723 * Makefile.in (acconfig_h): Remove incorrect macro.
11724 (config_h): Define.
11725 (osabi.o): Update dependencies.
11726 * configure.tgt: Set gdb_osabi based on target triplet.
11727 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11728 * configure: Regenerated.
11729 * config.in: Regenerated.
11730 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11731 (GDB_OSABI_DEFAULT): Define if not already defined.
11732 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11733 (set_osabi_string): New variables.
11734 (gdbarch_register_osabi): Add new OS ABI to
11735 gdb_osabi_available_names.
11736 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11737 (set_osabi, show_osabi): New functions.
11738 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11739
4be87837
DJ
117402003-01-04 Daniel Jacobowitz <drow@mvista.com>
11741
11742 * arch-utils.c (gdbarch_info_init): Set osabi to
11743 GDB_OSABI_UNINITIALIZED.
11744 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11745 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11746 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11747 * gdbarch.c: Regenerated.
11748 * gdbarch.h: Regenerated.
11749 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11750 there's no BFD.
11751 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11752 * osabi.h (enum gdb_osabi): Move to defs.h.
11753 (gdbarch_init_osabi): Update prototype.
11754 * defs.h (enum gdb_osabi): Moved here.
11755 * Makefile.in: Update dependencies.
11756
11757 * alpha-tdep.h: Don't include "osabi.h".
11758 (struct gdbarch_tdep): Remove osabi member.
11759 * alpha-tdep.c: Include "osabi.h".
11760 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11761 iterate over arches. Update call to gdbarch_init_osabi.
11762 (alpha_dump_tdep): Don't dump osabi.
11763 * alpha-linux-tdep.c: Include "osabi.h".
11764 * alpha-osf1-tdep.c: Include "osabi.h".
11765 * alphafbsd-tdep.c: Include "osabi.h".
11766 * alphanbsd-tdep.c: Include "osabi.h".
11767
11768 * arm-tdep.h: Don't include "osabi.h".
11769 (struct gdbarch_tdep): Remove osabi member.
11770 * arm-tdep.c: Include "osabi.h".
11771 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11772 iterate over arches. Update call to gdbarch_init_osabi.
11773 (arm_dump_tdep): Don't dump osabi.
11774 * arm-linux-tdep.c: Include "osabi.h".
11775 * armnbsd-tdep.c: Include "osabi.h".
11776
11777 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11778 Update call to gdbarch_init_osabi.
11779
11780 * i386-tdep.h: Don't include "osabi.h".
11781 (struct gdbarch_tdep): Remove osabi member.
11782 * i386-tdep.c: Include "osabi.h".
11783 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11784 iterate over arches. Update call to gdbarch_init_osabi.
11785 (i386_dump_tdep): Don't dump osabi.
11786 * i386-linux-tdep.c: Include "osabi.h".
11787 * i386-sol2-tdep.c: Include "osabi.h".
11788 * i386bsd-tdep.c: Include "osabi.h".
11789 * i386gnu-tdep.c: Include "osabi.h".
11790 * i386ly-tdep.c: Include "osabi.h".
11791 * i386nbsd-tdep.c: Include "osabi.h".
11792 * i386obsd-tdep.c: Include "osabi.h".
11793
11794 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11795 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11796 check osabi when iterating over arches. Update call to
11797 gdbarch_init_osabi.
11798 (mips_dump_tdep): Don't dump osabi.
11799
11800 * ns32k-tdep.h: Don't include "osabi.h".
11801 (struct gdbarch_tdep): Remove.
11802 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11803 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11804 allocate tdep. Update call to gdbarch_init_osabi.
11805 (ns32k_dump_tdep): Remove.
11806 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11807 * ns32knbsd-tdep.c: Include "osabi.h".
11808
11809 * ppc-tdep.h: Don't include "osabi.h".
11810 (struct gdbarch_tdep): Remove osabi member.
11811 * rs6000-tdep.c: Include "osabi.h".
11812 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11813 osabi when iterating over arches. Update call to
11814 gdbarch_init_osabi.
11815 (rs6000_dump_tdep): Don't dump osabi.
11816 * ppc-linux-tdep.c: Include "osabi.h".
11817 * ppcnbsd-tdep.c: Include "osabi.h".
11818
11819 * sh-tdep.h: Don't include "osabi.h".
11820 (struct gdbarch_tdep): Remove osabi member.
11821 * sh-tdep.c: Include "osabi.h".
11822 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11823 iterate over arches. Update call to gdbarch_init_osabi.
11824 (sh_dump_tdep): Don't dump osabi.
11825 * shnbsd-tdep.c: Include "osabi.h".
11826
11827 * sparc-tdep.c: Include "osabi.h".
11828 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11829 iterate over arches. Update call to gdbarch_init_osabi.
11830 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11831 tdep structure.
11832
11833 * vax-tdep.h: Don't include "osabi.h".
11834 (struct gdbarch_tdep): Remove.
11835 * vax-tdep.c: Include "osabi.h".
11836 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11837 iterate over arches. Don't allocate tdep. Update call
11838 to gdbarch_init_osabi.
11839 (vax_dump_tdep): Remove.
11840 (_initialize_vax_tdep): Update call to gdbarch_register.
11841
a881cf8e
DJ
118422003-01-04 Daniel Jacobowitz <drow@mvista.com>
11843
11844 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11845 entirely.
11846 (breakpoint_re_set_one): Don't fetch the value for a disabled
11847 watchpoint.
11848
1e698235
DJ
118492003-01-04 Daniel Jacobowitz <drow@mvista.com>
11850
11851 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11852 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11853 (COERCE_FLOAT_TO_DOUBLE): Remove.
11854 * gdbarch.c: Regenerate.
11855 * gdbarch.h: Regenerate.
11856 * Makefile.in: Remove value_h from gdbarch_h.
11857 * valops.c (coerce_float_to_double): New variable.
11858 (default_coerce_float_to_double): Remove.
11859 (standard_coerce_float_to_double): Remove.
11860 (value_arg_coerce): Use coerce_float_to_double.
11861 (_initialize_valops): Add "set coerce-float-to-double".
11862 * value.h (default_coerce_float_to_double): Remove prototype.
11863 (standard_coerce_float_to_double): Remove prototype.
11864
11865 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11866 prototyped.
11867 * mdebugread.c (parse_symbol): Likewise.
11868 * stabsread.c (define_symbol): Mark all functions as prototyped.
11869
11870 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11871 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11872 set_gdbarch_coerce_float_to_double.
11873 * arm-tdep.c (arm_gdbarch_init): Likewise.
11874 * frv-tdep.c (frv_gdbarch_init): Likewise.
11875 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11876 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11877 * mips-tdep.c (mips_gdbarch_init): Likewise.
11878 (mips_coerce_float_to_double): Remove.
11879 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11880 (rs6000_coerce_float_to_double): Remove.
11881 * s390-tdep.c (s390_gdbarch_init): Likewise.
11882 * sh-tdep.c (sh_gdbarch_init): Likewise.
11883 (sh_coerce_float_to_double): Remove.
11884 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11885 (sparc_coerce_float_to_double): Remove.
11886 * v850-tdep.c (v850_gdbarch_init): Likewise.
11887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11888 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11889 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11890 (hppa_coerce_float_to_double): Remove prototype.
11891 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11892
f436a26a
DJ
118932003-01-04 Daniel Jacobowitz <drow@mvista.com>
11894
11895 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11896
248f8055
DJ
118972003-01-04 Daniel Jacobowitz <drow@mvista.com>
11898
11899 Suggested by Stewart Brown <sb24@avaya.com>:
11900 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11901 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11902 (c_type_print_varspec_suffix): Likewise.
11903
72cfdc76
MK
119042003-01-04 Mark Kettenis <kettenis@gnu.org>
11905
bfd260bb
MK
11906 * configure.in: Don't set and AC_SUBST SUBDIRS.
11907 * configure: Regenerated.
11908
72cfdc76
MK
11909 * configure.in: Remove code dealing with shared libraries.
11910 * Makefile.in: Remove HLDFLAGS and HLDENV.
11911 * configure: Regenerated.
11912
c8b8a898
AC
119132003-01-04 Andrew Cagney <ac131313@redhat.com>
11914
11915 * frame.c (deprecated_frame_xmalloc): New function.
11916 (deprecated_set_frame_saved_regs_hack): New function.
11917 (deprecated_set_frame_extra_info_hack): New function.
11918 * frame.h (deprecated_frame_xmalloc): Declare.
11919 (deprecated_set_frame_saved_regs_hack): Declare.
11920 (deprecated_set_frame_extra_info_hack): Declare.
11921
14abd0fb
MK
119222003-01-04 Mark Kettenis <kettenis@gnu.org>
11923
8ee53726
MK
11924 * configure.in: Move code that provides the --enable-gdbtk option
11925 right after the code that handles the --enable-tui option, and
11926 polish it somewhat.
11927 * configure: Regenerated.
11928
14abd0fb
MK
11929 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11930 AC_CHECK_FUNCS and remove the old check for pread64.
11931 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11932 * acconfig.h (_GNU_SOURCE): Add.
11933 (HAVE_PREAD64): Remove.
11934 * configure, aclocal.m4, config.in: Regenerated.
11935
b2fb4676
AC
119362003-01-03 Andrew Cagney <ac131313@redhat.com>
11937
11938 * alpha-tdep.c: Use get_frame_saved_regs.
11939 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11940 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11941 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11942 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11943 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11944
8dcde887
MK
119452003-01-03 Mark Kettenis <kettenis@gnu.org>
11946
11947 * configure.in: Remove all use of the SUBDIRS variable; add
11948 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11949 code providing the --enable-multi-ice option, and move it right in
11950 front of the code that checks whether gdbserver is supported.
11951 Polish that too.
11952 * configure: Regenerated.
11953 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11954 @SUBDIRS@.
11955
8ccd593b
AC
119562003-01-03 Andrew Cagney <cagney@redhat.com>
11957
11958 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11959 * avr-tdep.c, cris-tdep.c: Ditto.
11960 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11961 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11962
91151a06
MK
119632003-01-03 Mark Kettenis <kettenis@gnu.org>
11964
11965 * configure.in: Remove --enable-netrom option.
11966 * configure: Regenerated.
11967
8fe84d01
MK
119682003-01-03 Mark Kettenis <kettenis@gnu.org>
11969
11970 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11971 declaration for `struct re_pattern_buffer' instead.
11972 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11973
f0394be6
JB
119742003-01-03 J. Brobecker <brobecker@gnat.com>
11975
11976 * mdebugread.c (parse_symbol): Count until the stEnd matching
11977 the structure name.
11978
27e9bf90
MK
119792003-01-02 Mark Kettenis <kettenis@gnu.org>
11980
93d331ba
MK
11981 * configure.in: Remove --with-cpu option.
11982 subscripts. Remove evil changequotes here.
11983 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11984 * config.in, configure: Regenerated.
8ffd9b1b 11985
27e9bf90
MK
11986 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11987 * configure.in: Cleanup section that sources GDB and BFD configure
11988 subscripts. Remove evil changequotes here.
11989 * config.in, configure: Regenerated.
11990
50abf9e5
AC
119912003-01-02 Andrew Cagney <ac131313@redhat.com>
11992
11993 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11994 frame accessor methods.
11995 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11996 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11997 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11998 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11999 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12000 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12001 * z8k-tdep.c: Ditto.
8ffd9b1b 12002
287c1a40
MK
120032003-01-02 Mark Kettenis <kettenis@gnu.org>
12004
f5dbc56d
MK
12005 * configure.in: Remove UI_OUT configuration code.
12006 * ada-lang.c: Update assuming UI_OUT is always true.
12007 * Makefile.in (UIOUT_CFLAGS): Remove.
12008 * configure: Regenerated.
12009 * TODO: Remove blurb about elimination of -DUI_OUT.
12010
627af7ea
MK
12011 * configure.in: Move code that provides the --enable-gdbcli,
12012 --enable-gdbmi options right before the code that handles the
12013 --enable-tui option. Polish a bit.
12014 * configure: Regenerated.
12015
06825bd1
MK
12016 * configure.in: Rewrite check for GNU regex and the
12017 --without-included regex option, and move it into the "Checks for
12018 library functions" section. This makes us use the system regex
12019 again by default on systems with version 2 of the GNU C library.
12020 This was apparently broken.
12021 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12022 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12023 * config.in, configure: Regenerated.
12024
287c1a40
MK
12025 * configure.in: Move code that provides the --enable-tui option
12026 before the "Checks for libraries" section. Polish the code
12027 somewhat and set need_curses to yes if we build the TUI. Rewrite
12028 code that looks for a library providing termcap functionality to
12029 match more closely what's done in the Readline library, and move
12030 it into to the "Checks for libraries" section.
12031 * configure: Regenerated.
12032 * Makefile.in (TERMCAP): Remove variable.
12033 * config/i386/go32.mh (TERMCAP): Remove variable.
12034
684e56bf
AC
120352003-01-02 Andrew Cagney <ac131313@redhat.com>
12036
12037 * MAINTAINERS: Mention gdb_mbuild.sh.
12038 * gdb_mbuild.sh: Rewrite.
12039
e1ea1d75
MK
120402003-01-02 Mark Kettenis <kettenis@gnu.org>
12041
12042 * configure.in: Fix typo in last change.
12043 * config.in, configure: Regenerated.
12044
1b831c93
AC
120452003-01-02 Andrew Cagney <ac131313@redhat.com>
12046
12047 * valarith.c (value_binop): Delete obsolete code and comments.
12048 * configure.host: Ditto.
12049 * buildsym.h (make_blockvector): Ditto.
12050 * buildsym.c (make_blockvector): Ditto.
12051 * defs.h (enum language): Ditto.
12052 (chill_demangle): Ditto.
12053 * elfread.c (elf_symtab_read): Ditto.
12054 * dwarfread.c (CHILL_PRODUCER): Ditto.
12055 (set_cu_language): Ditto.
12056 (handle_producer): Ditto.
12057 * expprint.c (print_subexp): Ditto.
12058 * gdbtypes.c (chill_varying_type): Ditto.
12059 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12060 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12061 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12062 (chill_varying_type): Ditto.
12063 * language.h (_LANG_chill): Ditto.
12064 * language.c (binop_result_type, integral_type): Ditto.
12065 (character_type, string_type, structured_type): Ditto.
12066 (lang_bool_type, binop_type_check): Ditto.
12067 * stabsread.h (os9k_stabs): Ditto.
12068 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12069 (define_symbol, read_type, read_struct_fields): Ditto.
12070 (read_array_type, read_enum_type, read_huge_number): Ditto.
12071 (read_range_type, start_stabs): Ditto.
12072 * symfile.c (init_filename_language_table): Ditto.
12073 (add_psymbol_with_dem_name_to_list): Ditto.
12074 * symtab.c (symbol_init_language_specific): Ditto.
12075 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12076 * symtab.h (struct general_symbol_info): Ditto.
12077 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12078 * typeprint.c (typedef_print): Ditto.
12079 * utils.c (fprintf_symbol_filtered): Ditto.
12080 * valops.c (value_cast, search_struct_field, value_slice): Delete
12081 obsolete code.
12082 (varying_to_slice): Delete function.
12083 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12084 (varying_to_slice): Delete declaration.
12085 * MAINTAINERS: Update.
12086
8bb2c122
MK
120872003-01-02 Mark Kettenis <kettenis@gnu.org>
12088
97bf5e38
MK
12089 * configure.in: Reorganize "Checks for library functions section"
12090 a bit. Remove check for `btowc' and `isascii' functions.
12091 * configure: Regenerated.
12092
5ee754fc
MK
12093 * acconfig.h (_MSE_INT_H): Remove.
12094 * configure.in: Create "Checks for header files" section, and move
12095 appropriate tests there. Don't check for objlist.h, wchar.h,
12096 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12097 misdetection fix. Also add "Checks for types", "Checks for
12098 compiler characteristics" and "Checks for library functions"
12099 sections.
12100 * config.in, configure: Regenerated.
12101
8bb2c122
MK
12102 * configure.in: Create "Checks for programs" section, and move
12103 appropriate tests there.
12104
9a156167
MK
121052003-01-01 Mark Kettenis <kettenis@gnu.org>
12106
12107 * configure.in: Create "Checks for libraries" section, and move
12108 appropriate tests there. Cleanup check for wctype in libw. Use
12109 AC_SEARCH_LIBS to see whether we need libsocket.
12110 * configure: Regenerated.
12111
a80e2bcb 12112For older changes see ChangeLog-2002
c906108c
SS
12113\f
12114Local Variables:
12115mode: change-log
12116left-margin: 8
12117fill-column: 74
12118version-control: never
12119End:
This page took 1.351457 seconds and 4 git commands to generate.