2003-09-17 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
957e27ac
AC
12003-09-17 Andrew Cagney <cagney@redhat.com>
2
3 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
4 (ppcnbsd_init_abi): Set "use_struct_convention" to
5 "ppcnbsd_use_struct_convention".
6
192cb3d4
MK
72003-09-17 Mark Kettenis <kettenis@gnu.org>
8
9 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
10 * gdbarch.h, gdbarch.c: Regenerate.
11 (stabs_argument_has_addr): New architecture method.
12 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
13 * arch-utils.c: Include "buildsym.h".
14 (default_stabs_argument_has_addr): New function.
15 * stabsread.c (define_symbol): Use stabs_argument_has_addr
16 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
17
efe59759
AC
182003-09-17 Andrew Cagney <cagney@redhat.com>
19
20 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
21 * gdbarch.h, gdbarch.c: Regenerate.
22 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
23 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
24 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
25 * sparcnbsd-tdep.c: Update.
26
62700349
AC
272003-09-17 Andrew Cagney <cagney@redhat.com>
28
29 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
30 * gdbarch.h, gdbarch.c: Regenerate.
31 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
32 * d10v-tdep.c, frame.c: Update.
33 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
34 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
35 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
36 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
37 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
38 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
39 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
40 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
41 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
42 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
43 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
44 * config/pa/nm-hppah.h: Update.
45
b9ff3018
AC
462003-09-16 Andrew Cagney <cagney@redhat.com>
47
48 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
49 "use_struct_convention" to "ppc_linux_use_struct_convention".
50 (ppc_linux_use_struct_convention): New function.
51 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
52 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
53 "rs6000_use_struct_convention".
54 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
55 declaration.
56 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
57 Delete function.
58
aa1ee363
AC
592003-09-16 Andrew Cagney <cagney@redhat.com>
60
61 * buildsym.c: Remove more occurances of "register".
62 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
63 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
64 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
65 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
66 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
67 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
68 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
69 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
70
f2ea0907
CV
712003-09-16 Corinna Vinschen <vinschen@redhat.com>
72
73 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
74 numbers to enumeration values.
75 * sh-tdep.c: Accomodate above change.
76 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
77 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
78 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
79 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
80 (IS_FPUSH): Rename from IS_FMOV.
81 (sh_extract_struct_value_address): Remove useless comment.
82 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
83 instead of own local values.
84 (sh_dump_tdep): Remove.
85 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
86 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
87
1c704f11
AC
882003-09-15 Andrew Cagney <cagney@redhat.com>
89
90 * doublest.c (convert_floatformat_to_doublest): No longer need to
91 cast "exp_bias" to an int. Reverts 2002-12-04 change.
92
ac79b88b
DJ
932003-09-15 Daniel Jacobowitz <drow@mvista.com>
94
95 * values.c (unpack_double): Call floatformat_is_valid.
96
1c671366
MK
972003-09-15 Mark Kettenis <kettenis@gnu.org>
98
de5227fb
MK
99 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
100 ps_strings into a long.
101
1c671366
MK
102 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
103 _initialize_am64fbsd_nat.
104
a604369a
KB
1052003-09-15 Kevin Buettner <kevinb@redhat.com>
106
107 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
108 associated with DW_AT_ranges attribute is out of bounds.
109
b3cacbee
DL
1102003-09-15 David Lecomber <dsl@sources.redhat.com>
111
112 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
113
d0f37bb2
MC
1142003-09-14 Michael Chastain <mec@shout.net>
115
116 * config/m68k/nm-apollo68v.h: Delete.
117 * config/m68k/xm-apollo68v.h: Delete.
118
69517000
AC
1192003-09-14 Andrew Cagney <cagney@redhat.com>
120
121 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
122 * dcache.c: Update copyrights and descriptions.
123 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
124
ef8b349d
AC
1252003-09-14 Andrew Cagney <cagney@redhat.com>
126
127 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
128 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
129
52f0bd74
AC
1302003-09-14 Andrew Cagney <cagney@redhat.com>
131
132 * alpha-nat.c: Remove some occurances of "register".
133 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
134 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
135 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
136 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
137 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
138 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
139 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
140 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
141 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
142 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
143 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
144 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
145 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
146 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
147 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
148 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
149 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
150 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
151 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
152 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
153 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
154 * values.c, vax-tdep.c, xcoffread.c: Ditto.
155
4a4b3fed
AC
1562003-09-13 Andrew Cagney <cagney@redhat.com>
157
158 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
159 * ppc-tdep.h (struct regcache): Declare opaque.
160 * objfiles.h (struct objfile_data): Declare opaque.
161 * cp-support.h (struct objfile): Declare opaque.
162 * linux-nat.h (target_waitstatus): Declare opaque.
163
2110b94f
MK
1642003-09-14 Mark Kettenis <kettenis@gnu.org>
165
1c671366
MK
166 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
167 (stabs_argument_has_addr): New architecture method.
168 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
169 * arch-utils.c: Include "buildsym.h".
170 (default_stabs_argument_has_addr): New function.
171 * stabsread.c (define_symbol): Use stabs_argument_has_addr
172 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
173
2110b94f
MK
174 * cris-tdep.c (cris_gdbarch_init): Set
175 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
176 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
177 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
178 * mips-tdep.c (mips_gdbarch_init): Likewise.
179 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
180 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
181
48436ce6
AC
1822003-09-13 Andrew Cagney <cagney@redhat.com>
183
184 * values.c (using_struct_return): Delete "function" and "funcaddr"
185 parameters.
186 * value.h (using_struct_return): Update declaration.
187 * infcmd.c (finish_command_continuation): Update.
188 (finish_command): Update.
189 * infcall.c (call_function_by_hand): Update.
190 * eval.c (evaluate_subexp_standard): Update.
191
403d9909
CF
1922003-09-13 Christopher Faylor <cgf@redhat.com>
193
194 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
195 SSE registers since gdb will not operate correctly without this.
196 Restore include file ordering munged in previous change.
197 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
198
ebf7d56b
MK
1992003-09-13 Mark Kettenis <kettenis@gnu.org>
200
8e823e25
MK
201 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
202 REG_STRUCT_HAS_ADDR.
203 * gdbarch.c, gdbarch.h: Updated.
204 * infcall.c (call_function_by_hand): Update.
205 * stabsread.c (define_symbol): Updated.
206
ebf7d56b
MK
207 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
208
d3f13f72
CF
2092003-09-12 Christopher Faylor <cgf@redhat.com>
210
211 * win32-nat.c: Reorganize so that defines used by target headers are
212 actually defined by the system headers.
213 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
214 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
215
14f75137
JB
2162003-09-12 Jim Blandy <jimb@redhat.com>
217
d646061f
JB
218 * dbxread.c (read_dbx_symtab): Don't report an internal error if
219 the file has no .data, .bss, or .rodata sections. Instead wait
220 until we see a variable alleged to live in one of those sections.
221
2a13f9bc
JB
222 * dbxread.c (read_dbx_symtab): If we have no .data section and no
223 .bss section, presume that any variables we find live in the
224 .rodata section.
225
4f49b26b
JB
226 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
227 offsets for global and static variables.
228
14f75137
JB
229 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
230 symbol types are, by definition, in the .data section, so it is
231 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
232 If there is no .data section, there should be no N_DATA or N_DATA
233 | N_EXT symbols.
234
212c460c
MK
2352003-09-12 Mark Kettenis <kettenis@gnu.org>
236
237 * amd64fbsd-tdep.c: Fix sigtramp recognition.
238 (amd64fbsd_sigcontext_addr): Rewrite.
239 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
240 with correct values.
241 (amd64fbsd_sc_reg_offset): Initialize with correct values.
242 (amd64fbsd_init_abi): Fix typo.
243
68856ea3
AC
2442003-09-12 Andrew Cagney <cagney@redhat.com>
245
246 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
247 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
248
627b3ba2
AC
2492003-09-12 Andrew Cagney <cagney@redhat.com>
250
251 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
252 "entry_file_highpc". Update comments.
253 * defs.h (deprecated_inside_entry_file): Rename
254 "inside_entry_file".
255 * blockframe.c (deprecated_inside_entry_file): Rename
256 "inside_entry_file".
257 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
258 * vax-tdep.c (vax_frame_chain): Update.
259 * sh64-tdep.c (sh64_frame_chain): Update.
260 * sh-tdep.c (sh_frame_chain): Update.
261 * rs6000-tdep.c (rs6000_frame_chain): Update.
262 * ns32k-tdep.c (ns32k_frame_chain): Update.
263 * mips-tdep.c (mips_frame_chain): Update.
264 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
265 * m32r-tdep.c (m32r_frame_this_id): Update.
266 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
267 * frv-tdep.c (frv_frame_this_id): Update.
268 * d10v-tdep.c (d10v_frame_this_id): Update.
269 * cris-tdep.c (cris_frame_chain): Update.
270 * blockframe.c (legacy_frame_chain_valid): Update.
271 * avr-tdep.c (avr_frame_this_id): Update.
272 * arm-tdep.c (arm_prologue_this_id): Update.
273 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
274 * objfiles.c (objfile_relocate): Update.
275 * mipsread.c (mipscoff_symfile_read): Update.
276 (mipscoff_symfile_read): Update.
277 * mdebugread.c (parse_partial_symbols): Update.
278 * dwarfread.c (read_file_scope): Update.
279 * dwarf2read.c (read_file_scope): Update.
280 * dbxread.c (read_dbx_symtab): Update.
281 (read_dbx_symtab): Update.
282 * coffread.c (complete_symtab): Update.
283
b0abbc58
JJ
2842003-09-12 Jeff Johnston <jjohnstn@redhat.com>
285
286 * top.c (quit_target): New static helper function.
287 (quit_force): Moved code to quit_target(). Call quit_target()
288 via catch_errors() to catch errors during quit.
289
a1632d59
DC
2902003-09-11 David Carlton <carlton@kealia.com>
291
292 * buildsym.c (finish_block): Use allocate_block to allocate the
293 block.
294 * mdebugread.c (new_block): Add FIXME.
295
5c4e30ca
DC
2962003-09-11 David Carlton <carlton@kealia.com>
297
298 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
299 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
300 (recursive_dump_type): Ditto.
301 * printcmd.c (print_formatted): Ditto.
302 * typeprint.c (print_type_scalar): Ditto.
303 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
304 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
305 * cp-support.h: Declare cp_check_possible_namespace_symbols,
306 maint_cplus_cmd_list.
307 * cp-support.c: Make maint_cplus_cmd_list extern.
308 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
309 command.h.
310 (lookup_symbol_file): Look in possible namespace blocks when
311 appropriate.
312 (initialize_namespace_symtab): New.
313 (get_possible_namespace_block, free_namespace_block)
314 (check_possible_namespace_symbols)
315 (check_possible_namespace_symbols_loop)
316 (check_one_possible_namespace_symbol)
317 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
318 (_initialize_cp_namespace): Ditto.
319 * block.h: Declare allocate_block.
320 * block.c (allocate_block): New.
321 * jv-lang.c (get_java_class_symtab): Allocate blocks via
322 allocate_block.
323 * symfile.h: Update declaration of add_psymbol_to_list.
324 * symfile.c (add_psymbol_to_list): Return the partial symbol in
325 question.
326 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
327 scan_partial_symbols_call.
328 (scan_partial_symbols): Add NAMESPACE argument; update calls to
329 helper functions.
330 (add_partial_symbol): If necessary, scan mangled names for names
331 of namespaces.
332 (add_partial_namespace): Add NAMESPACE argument; generate partial
333 symbols associated to namespaces.
334 (add_partial_enumeration): Add NAMESPACE argument.
335 (new_symbol): Allow namespace syms.
336 (read_namespace): Generate namespace syms.
337 * objfiles.h: Add opaque declaration of struct symtab.
338 (struct objfile): Add cp_namespace_symtab member.
339 * objfiles.c (allocate_objfile): Set
340 objfile->cp_namespace_symtab.
341 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
342 dictionary_h, command_h.
343
33a7c2fc
AC
3442003-09-11 Andrew Cagney <cagney@redhat.com>
345
346 * rs6000-tdep.c (rs6000_push_dummy_call): Use
347 regcache_raw_write_signed to set SP_REGNUM, move the operation to
348 near the function's end.
349 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
350 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
351 regcache_raw_write_signed to set SP_REGNUM.
352
63cd24fe
EZ
3532003-09-11 Elena Zannoni <ezannoni@redhat.com>
354
355 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
356 orig_addrs is set up properly.
357
f27dd7fd
AC
3582003-09-11 Andrew Cagney <cagney@redhat.com>
359
360 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
361 * gdbarch.h, gdbarch.c: Re-generate.
362 * infcall.c (call_function_by_hand): Update.
363 * hppa-tdep.c (hppa_push_arguments): Update.
364 * ada-lang.c (place_on_stack): Update.
365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
366 * sparc-tdep.c (sparc_gdbarch_init): Update.
367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
368 * hppa-tdep.c (hppa_gdbarch_init): Update.
369 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
370 stack_align.
371
f630a401
DJ
3722003-09-11 Daniel Jacobowitz <drow@mvista.com>
373
374 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
375 register do need a frame.
376
0ddabb4c
AC
3772003-09-11 Andrew Cagney <cagney@redhat.com>
378
379 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
380 buildable since GDB 5.0.
381 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
382 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
383 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
384 * irix4-nat.c: Delete file.
385 * config/mips/irix4.mh: Delete file.
386 * config/mips/irix3.mh: Delete file.
387 * config/mips/irix3.mt: Delete file.
388 * config/mips/tm-irix3.h: Delete file.
389 * config/mips/nm-irix3.h: Delete file.
390 * config/mips/xm-irix3.h: Delete file.
391 * config/mips/nm-irix4.h: Delete file.
392 * config/mips/xm-irix4.h: Delete file.
393 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
394
fde2cceb
JB
3952003-09-10 J. Brobecker <brobecker@gnat.com>
396
397 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
398 * Makefile.in (hppa-tdep.o): Update dependencies.
399
66f667f5
JW
4002003-09-10 James E Wilson <wilson@specifixinc.com>
401
ef5fd69f
JW
402 * MAINTAINERS: Change my e-mail address. Move to paper trail
403 section.
66f667f5 404
53e8aaea
KB
4052003-09-10 Kevin Buettner <kevinb@redhat.com>
406
407 * MAINTAINERS (frv): New ISA entry.
408
dcc6aaff
KB
4092003-09-10 Kevin Buettner <kevinb@redhat.com>
410
411 * frv-tdep.c (dis-asm.h): Include.
412 * Makefile.in (frv-tdep.o): Update dependencies.
413
932644f0
JJ
4142003-09-09 Jeff Johnston <jjohnstn@redhat.com>
415
416 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
417 Fix typo for high range of floating registers.
418
91c24f0a
DC
4192003-09-09 David Carlton <carlton@kealia.com>
420
421 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
422 highpc initialization here out of scan_partial_symbols.
423 (scan_partial_symbols): Restructure into a recursive version,
424 calling add_partial_namespace and add_partial_enumeration when
425 appropriate.
426 (add_partial_namespace): New.
427 (add_partial_enumeration, locate_pdi_sibling): Ditto.
428
c9263853
AC
4292003-09-09 Andrew Cagney <cagney@redhat.com>
430
e56a0ecc
AC
431 * rs6000-tdep.c (ppc_push_return_address): Delete function.
432 (rs6000_push_dummy_call): Set LR to BP_ADDR.
433 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
434 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
435
794a477a
AC
436 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
437 (rs6000_push_dummy_call): Set the "TOC" register.
438
c9263853
AC
439 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
440 methods "max_register_raw_size", "max_register_virtual_size" or
441 "register_virtual_size".
442
afa7d0b2
ILT
4432003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
444
445 * MAINTAINERS: Update my e-mail address.
446
7a41266b
AC
4472003-09-09 Andrew Cagney <cagney@redhat.com>
448
449 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
450 (rs6000_push_dummy_call): Store the struct return address.
451 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
452
77b2b6d4
AC
4532003-09-09 Andrew Cagney <cagney@redhat.com>
454
455 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
456 "ppc_sysv_abi_push_arguments".
457 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
458 "ppc_sysv_abi_push_arguments".
459 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
460 instead of "push_arguments".
461 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
462
e8a7b686
AC
4632003-09-09 Andrew Cagney <cagney@redhat.com>
464
465 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
466 instead of CALL_DUMMY_ADDRESS.
467
f86f5ca3
PH
4682003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
469
470 * p-lang.c: Eliminate "register".
471 * c-lang.c: Ditto.
472 * expprint.c: Ditto.
473 * f-lang.c: Ditto.
474 * jv-lang.c: Ditto.
475 * language.c: Ditto.
476 * m2-lang.c: Ditto.
477 * parse.c: Ditto.
478 * scm-lang.c: Ditto.
479 * objc-lang.c: Ditto.
480
83ee270e
NC
4812003-09-09 Nick Clifton <nickc@redhat.com>
482
483 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
484
a89aa300
AC
4852003-09-04 Andrew Cagney <cagney@redhat.com>
486
487 * avr-tdep.c: Include "dis-asm.h".
488 * cris-tdep.c: Include "dis-asm.h".
489 (cris_delayed_get_disassembler): Use "struct disassemble_info"
490 instead of corresponding typedef.
491 * h8300-tdep.c: Include "dis-asm.h".
492 * ia64-tdep.c: Include "dis-asm.h".
493 * i386-tdep.c: Include "dis-asm.h".
494 (i386_print_insn): Use "struct disassemble_info" instead of
495 corresponding typedef.
496 * m68k-tdep.c: Include "dis-asm.h".
497 * mcore-tdep.c: Include "dis-asm.h".
498 * mips-tdep.c: Include "dis-asm.h".
499 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
500 instead of corresponding typedef.
501 * ns32k-tdep.c: Include "dis-asm.h".
502 * s390-tdep.c: Include "dis-asm.h".
503 * sparc-tdep.c: Include "dis-asm.h".
504 * vax-tdep.c: Include "dis-asm.h".
505 * v850-tdep.c: Include "dis-asm.h".
506 * mn10300-tdep.c: Include "dis-asm.h".
507 * rs6000-tdep.c: Include "dis-asm.h".
508 * xstormy16-tdep.c: Include "dis-asm.h".
509 (_initialize_xstormy16_tdep): Delete "extern" declaration of
510 print_insn_xstormy16.
511 * Makefile.in (v850-tdep.o): Update dependencies.
512 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
513 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
514 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
515 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
516 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
517 (gdbarch_h): Remove $(dis_asm_h).
518 * disasm.c: Include "dis-asm.h".
519 (dis_asm_read_memory): Use "struct disassemble_info" instead of
520 corresponding typedef.
521 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
522 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
523 * gdbarch.sh: Do not include "dis-asm.h".
524 (struct disassemble_info): Declare opaque.
525 (TARGET_PRINT_INSN): Update declaration.
526 * gdbarch.h, gdbarch.c: Re-generate.
527
88a82a65
AC
5282003-09-08 Andrew Cagney <cagney@redhat.com>
529
530 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
531 CALL_DUMMY_ADDRESS, change to a predicate.
532 * gdbarch.h, gdbarch.c: Re-generate.
533 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
534 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
535 * infcall.c (call_function_by_hand): Ditto.
536 * sparc-tdep.c (sparc_push_return_address): Ditto.
537 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
538 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
539 CALL_DUMMY_ADDRESS with entry_point_address.
540 * v850-tdep.c (v850_push_return_address): Ditto.
541 * s390-tdep.c (s390_push_return_address): Ditto.
542 * rs6000-tdep.c (ppc_push_return_address): Ditto.
543 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
544 * mcore-tdep.c (mcore_push_return_address): Ditto.
545 * cris-tdep.c (cris_push_return_address): Ditto.
546 * arm-tdep.c (arm_push_return_address): Ditto.
547
3e2c4033
AC
5482003-09-08 Andrew Cagney <cagney@redhat.com>
549
550 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
551 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
552 and REG_UNMODIFIED to REG_SAME_VALUE.
553 (execute_cfa_program): Update.
554 (dwarf2_frame_cache): Update. Initialize table to
555 REG_UNSPECIFIED, complain if CFI fails to specify a register's
556 location.
557 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
558
39efb398
AC
5592003-09-08 Andrew Cagney <cagney@redhat.com>
560
561 * gnu-nat.c: Remove "inline" function attribute.
562 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
563
f5cb5aca
KB
5642003-09-08 Kevin Buettner <kevinb@redhat.com>
565
566 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
567 target.
568
1cb761c7
KB
5692003-09-08 Kevin Buettner <kevinb@redhat.com>
570
571 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
572 (frame_extra_info): Rename this struct to frv_unwind_cache.
573 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
574 Add fields ``prev_sp'' and ``base''.
575 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
576 (frv_saved_pc_after_call, frv_init_extra_frame_info)
577 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
578 Delete.
579 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
580 Revise all callers. Fill in the unwind cache argument and make
581 other adjustments to account for new frame mechanisms.
582 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
583 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
584 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
585 (frv_frame_unwind, frv_frame_base): New structs.
586 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
587 additional arguments expected by this method and adjust function
588 body accordingly.
589 (frv_gdbarch_init): Remove calls to the following functions:
590 set_gdbarch_deprecated_init_frame_pc(),
591 set_gdbarch_deprecated_saved_pc_after_call(),
592 set_gdbarch_deprecated_frame_chain(),
593 set_gdbarch_deprecated_frame_saved_pc(),
594 set_gdbarch_deprecated_frame_init_saved_regs(),
595 set_gdbarch_deprecated_push_arguments(),
596 set_gdbarch_deprecated_push_return_address(),
597 set_gdbarch_deprecated_pop_frame(),
598 set_gdbarch_deprecated_call_dummy_words(),
599 set_gdbarch_deprecated_sizeof_call_dummy_words(),
600 set_gdbarch_deprecated_init_extra_frame_info(),
601 set_gdbarch_deprecated_dummy_write_sp(), and
602 set_gdbarch_deprecated_pc_in_call_dummy().
603 Add calls to the following functions:
604 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
605 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
606 frame_base_set_default().
607 * Makefile.in (frv-tdep.o): Update dependencies.
608
68f6cf99
MK
6092003-09-09 Mark Kettenis <kettenis@gnu.org>
610
611 * dwarf2-frame.c (read_encoded_value): Add support for
612 DW_EH_PE_aligned encoding.
613
73b65bb0
DJ
6142003-09-08 Daniel Jacobowitz <drow@mvista.com>
615
616 * infrun.c (normal_stop): Don't print a message if the inferior
617 has exited.
618
7c8a5605
JB
6192003-09-08 Jim Blandy <jimb@redhat.com>
620
621 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
622 * dbxread.c: #include "gdb_assert.h".
623 (read_dbx_symtab): If the objfile has no .data section, use the
624 section index for the .bss section instead.
625
7dd88986
DJ
6262003-09-08 Daniel Jacobowitz <drow@mvista.com>
627
628 * frame.c (deprecated_safe_get_selected_frame): New function.
629 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
630 * findvar.c (read_var_value): Call it.
631
55ff77ac
CV
6322003-09-08 Corinna Vinschen <vinschen@redhat.com>
633
634 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
635 (sh64-tdep.o): Add dependencies.
636 * configure.tgt: Add FIXME to sh-*-linux*.
637 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
638 (sh_gdbarch_init): Always set correct sh_show_regs function
639 pointer. Call sh64_gdbarch_init() if machine type is sh5.
640 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
641 * sh64-tdep.c: New file, containing all sh64 related code from
642 sh-tdep.c.
643 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
644 * config/sh/linux.mt (TDEPFILES): Ditto.
645 * config/sh/nbsd.mt (TDEPFILES): Ditto.
646 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
647 * config/sh/wince.mt (TDEPFILES): Ditto.
648
bfb39158
DJ
6492003-09-07 Daniel Jacobowitz <drow@mvista.com>
650
651 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
652 (stop_wait_callback): Handle !lp->signalled also.
653 (lin_lwp_has_pending, flush_callback): New functions.
654 (lin_lwp_wait): Call flush_callback.
655 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
656 (linux_proc_pending_signals): New function.
657 * linux-nat.h (linux_proc_pending_signals): Add prototype.
658
9407de8e
DJ
6592003-09-07 Daniel Jacobowitz <drow@mvista.com>
660
661 From Nick Kelsey <nickk@ubicom.com>:
662 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
663 when the stop PC is at the beginning of a function also.
664
2ef47cd0
DJ
6652003-09-06 Daniel Jacobowitz <drow@mvista.com>
666
667 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
668 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
669
6f4492c8
MK
6702003-09-06 Mark Kettenis <kettenis@gnu.org>
671
672 * sol-thread.c: Include "gdb_string.h".
673
d3420b2f
MK
6742003-09-03 Mark Kettenis <m.kettenis@osp.nl>
675
676 * gcore.c: Reorder include files in alphabetical order. Include
677 "gdb_assert.h". Various coding style fixes.
678 (derive_stack_segment, derive_heap_segment): Replace check for
679 non-null BOTTOM and TOP with gdb_assert.
680 (derive_heap_segment): Replace check for successful creation of
681 ZERO with gdb_assert.
682 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
683
5220ea4c
AC
6842003-09-04 Andrew Cagney <cagney@redhat.com>
685
686 * thread-db.c (verbose_dlsym): New function.
687 (thread_db_load): Use verbose_dlsym
688 (thread_db_new_objfile): Print that libthread_db was loaded, and
689 that thread debugging was enabled.
690
6e8c2c06
AC
6912003-09-04 Andrew Cagney <cagney@redhat.com>
692
693 * configure.tgt: Add "mips64*-*-*" target. Delete
694 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
695 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
696 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
697 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
698 mips*-sony-*, and mips64*-*-elf* targets.
699 * config/mips/embedl.mt: Delete file.
700 * config/mips/embedl64.mt: Delete file.
701 * config/mips/mips.mt: Delete file.
702 * config/mips/mips64.mt: Delete file.
703 * config/mips/tm-embed.h: Delete file.
704 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
705 * config/mips/embed64.mt: Delete out-of-date comment.
706
3a3bc038
AC
7072003-09-04 Andrew Cagney <cagney@redhat.com>
708
709 * hppa-tdep.c (hppa_gdbarch_init): Set
710 "have_nonsteppable_watchpoint".
711 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
712 * mips-tdep.c (mips_dump_tdep): Do not print
713 HAVE_NONSTEPPABLE_WATCHPOINT.
714 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
715 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
716 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
717 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
718
a957e642
CV
7192003-09-04 Corinna Vinschen <vinschen@redhat.com>
720
721 * breakpoint.c (watchpoint_check): Remove accidentally checked in
722 unused code. Add comment.
723
a6fbcf2f
CV
7242003-09-04 Corinna Vinschen <vinschen@redhat.com>
725
726 * breakpoint.c (watchpoint_check): Check for pc being in an
727 epilogue if watchpoint frame couldn't be found.
728
c14a44d5
AC
7292003-09-04 Andrew Cagney <cagney@redhat.com>
730
731 * Makefile.in: Re-generate all dependencies.
732
f6c40618
AC
7332003-09-03 Andrew Cagney <cagney@redhat.com>
734
735 * arch-utils.h (legacy_print_insn): Delete declaration.
736 * arch-utils.c (legacy_print_insn): Delete function.
737 * disasm.c (deprecated_tm_print_insn_info): Delete.
738 (_initialize_disasm): Delete function, contained code initializing
739 deprecated_tm_print_insn_info.
740 * gdbarch.sh (deprecated_tm_print_insn): Delete.
741 (deprecated_tm_print_insn_info): Delete.
742 (TARGET_PRINT_INSN): Do not provide a default.
743 * gdbarch.h, gdbarch.c: Re-generate.
744
242e8be5
AC
7452003-09-03 Andrew Cagney <cagney@redhat.com>
746
747 * disasm.c (fprintf_disasm): New function.
748 (gdb_disassemble_info): Call "init_disassemble_info", instead of
749 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
750 reverts 2003-08-14 change.
751 (_initialize_disasm): Call "init_disassemble_info", instead of
752 INIT_DISASSEMBLE_INFO_NO_ARCH.
753
3ffc3dda
MS
7542003-09-03 Michael Snyder <msnyder@redhat.com>
755
756 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
757
52d16ba8
AC
7582003-09-03 Andrew Cagney <cagney@redhat.com>
759
760 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
761 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
762 * symfile.c (syms_from_objfile): Update.
763 (reread_symbols): `Update
764 * exec.c (exec_file_attach): Update.
765 (exec_file_attach): Update.
766 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
767 2003-08-29 change.
768 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
769
eb5492fa
DJ
7702003-09-03 Daniel Jacobowitz <drow@mvista.com>
771
772 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
773 trad-frame.h.
774 (arm_get_cache): Delete macro.
775 (struct arm_prologue_cache): Update comments. Make saved_regs into
776 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
777 to prev_sp.
778 (thumb_scan_prologue): Update for cache changes. Don't call
779 DEPRECATED_PC_IN_CALL_DUMMY.
780 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
781 argument and use it in desperation search for our prologue. Do not
782 search past the specified PC.
783 (arm_make_prologue_cache): Simplify.
784
785 (arm_prologue_this_id, arm_prologue_prev_register)
786 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
787 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
788 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
789 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
790 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
791
792 (arm_frame_chain_valid, arm_find_callers_reg)
793 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
794 (arm_pop_frame): Delete obsolete methods.
795 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
796
797 (arm_gdbarch_init): Update for new frame methods. Register prologue
798 and sigtramp unwinders. Set the default frame base method.
799
800 * Makefile.in (arm-tdep.o): Update dependencies.
801 * varobj.c (find_frame_addr_in_frame_chain): Call
802 get_frame_base_address.
803 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
804
24de872b
DJ
8052003-09-03 Daniel Jacobowitz <drow@mvista.com>
806
807 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
808 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
809 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
810 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
811 Take NEXT_FRAME and CACHE arguments. Call
812 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
813 Set unwound_pc in CACHE instead of modifying the frame argument.
814 Don't bother checking the frame type when looking for sigtramp
815 frames.
816 (arm_make_prologue_cache, arm_frame_chain)
817 (arm_init_extra_frame_info): New functions.
818
9b8d791a
DJ
8192003-09-03 Daniel Jacobowitz <drow@mvista.com>
820
821 * arm-tdep.c (arm_get_cache): Define.
822 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
823 unwound_sp, unwound_pc, and saved_regs.
824 (thumb_scan_prologue): Take a cache instead of the frame.
825 (arm_scan_prologue): Likewise.
826 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
827 instead of a temporary frame.
828 (arm_init_extra_frame_info): Allocate and use a cache.
829 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
830
7ee3275f
AC
8312003-09-03 Andrew Cagney <cagney@redhat.com>
832
833 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
834 * config/mips/wince.mt (TM_CLIBS): Ditto.
835 * config/sh/wince.mt (TM_CLIBS): Ditto.
836 * config/pa/hppa64.mt (TM_CLIBS): Delete.
837 * config/sparc/sp64.mt (CC): Delete.
838
57b29be7
AC
8392003-09-03 Andrew Cagney <cagney@redhat.com>
840
841 * defs.h: Do not include "arch-utils.h".
842 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
843 GDB_MULTI_ARCH_PURE.
844 * configure.in (GDB_MULTI_ARCH): Do not define.
845 * configure, config.in: Regenerate.
846 * configure.tgt: Do not set variable "gdb_multi_arch".
847 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
848 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
849 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
850 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
851 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
852 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
853 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
854 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
855 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
856 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
857 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
858 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
859 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
860 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
861 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
862 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
863 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
864 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
865
12e035e2
MC
8662003-08-30 Michael Chastain <mec@shout.net>
867
868 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
869 * config/m68k/nm-hp300hpux.h: Delete.
870 * config/m68k/tm-hp300hpux.h: Delete.
871 * config/m68k/xm-hp300hpux.h: Delete.
872 * config/m68k/xm-hp300bsd.h: Delete.
873 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
874 tm-hp300hpux.h, xm-hp300hpux.h.
875 * somsolib.c: Remove comment about hp300 shared libraries.
876
bda34dc2
MK
8772003-08-31 Mark Kettenis <kettenis@gnu.org>
878
5bca7895
MK
879 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
880 Only define PTRACE_GET_THREAD_AREA is not already defined.
881 Various style fixes in code and comments and some additional
882 spelling fixes in comments. Move after functions dealing with
883 debug registers.
884 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
885 Fix coding-style.
886
bda34dc2
MK
887 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
888 frame_unwind_register_unsigned instead of
889 frame_unwind_unsigned_register.
890
c890192f
MK
8912003-08-30 Mark Kettenis <kettenis@gnu.org>
892
893 * configure.in: Search for gethostbyname in libnsl.
894 * configure: Regenerated.
895
60fac5b8
MK
8962003-08-29 Mark Kettenis <kettenis@gnu.org>
897
e294916c
MK
898 * configure.in: Remove redundant AC_MSG_RESULT in check for
899 uintptr_t in stdint.h.
900 * configure: Regenerated.
901
c40d267a
MK
902 * amd64-nat.h (struct regcache): Add opaque declaration.
903
60fac5b8
MK
904 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
905 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
906 Change "register array" to "register cache" in comments.
907 (x86_64_linux_gregset64_reg_offset): New variable.
908 (GETREGS_SUPPLIES): Remove macro.
909 (supply_gregset): Call amd64_supply_native_gregset instead of
910 x86_64_linux_supply_gregset.
911 (fill_gregset): Rename `regno' to `regnum'. Call
912 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
913 (store_regs): Rename `regno' to `regnum'.
914 (store_fpregs): Rename `regno' to `regnum'.
915 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
916 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
917 Reorganize function a bit.
918 (store_inferior_registers): Rename `regno' to `regnum'. Use
919 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
920 Reorganize function a bit.
921 (_initialize_x86_64_linux_nat): New function.
922 * config/i386/x86-64linux.mh.
923
546143b6
AC
9242003-08-29 Andrew Cagney <cagney@redhat.com>
925
926 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
927 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
928 (target_remove_watchpoint): Delete macro.
929 (target_insert_watchpoint): Delete macro.
930 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
931 (remote_mips_stopped_by_watchpoint): Delete declaration.
932 (remote_mips_remove_watchpoint): Delete declaration.
933 (remote_mips_set_watchpoint): Delete declaration.
934 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
935 * remote-mips.c (_initialize_remote_mips): Set
936 "to_insert_watchpoint", "to_stopped_by_watchpoint",
937 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
938 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
939 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
940 (mips_stopped_by_watchpoint): Rename
941 remote_mips_stopped_by_watchpoint.
942 (mips_can_hardware_watchpoint): Rename
943 remote_mips_can_use_hardware_watchpoint, update function
944 signature.
945
7bace51b
MK
9462003-08-29 Mark Kettenis <kettenis@gnu.org>
947
b0f5c6f2
MK
948 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
949 USER_DS. We haven't given them a register number yet.
950
2a6d284d
MK
951 * amd64-nat.h: New file.
952 * amd64-nat.c: New file.
953 * amd64fbsd-nat.c: Include "amd64-nat.h".
954 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
955 (amd64fbsd32_r_reg_offset): New variable.
956 (supply_gregset): Simply call amd64_supply_native_gregset.
957 (fill_gregset): Rename `regno' to `regnum'. Simply call
958 amd64_collect_native_gregset.
959 (fill_fpregset): Rename `regno' to `regnum'.
960 (fetch_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_supply_native_gregset instead of
964 supply_gregset. Call x86_64_supply_fxsave instead of
965 supply_fpregset.
966 (store_inferior_registers): Rename `regno' to `regnum'. Replace
967 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
968 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
969 `fpregset_t'. Call amd64_collect_native_gregset instead of
970 fill_gregset. Call x86_64_collect_fxsave instead of
971 fill_fpregset.
972 (_initialize_am64fbsd_nat): Initialize
973 amd64_native_gregset32_reg_offset and
974 amd64_native_gregset64_reg_offset.
975 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
976
a16d75cc
MK
977 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
978 null pointer. Fix typo in comment.
979
7bace51b
MK
980 * regcache.c (supply_register): Reimplement to call
981 regcache_raw_supply.
982 (regcache_collect): Reimplement by calling regcache_raw_collect.
983
9a661b68
MK
9842003-08-28 Mark Kettenis <kettenis@gnu.org>
985
986 * regcache.c (register_buffer): Consitify first argument.
987 (regcache_raw_supply, regcache_raw_collect): New
988 functions.
989
e94cc8fa
DJ
9902003-08-28 Daniel Jacobowitz <drow@mvista.com>
991
992 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
993 by Nathan J. Williams.
994
c64bd0ce
DJ
9952003-08-28 Daniel Jacobowitz <drow@mvista.com>
996
997 * lin-lwp.c (wait_lwp): New function, copied from
998 stop_wait_callback. Clean up.
999 (stop_wait_callback): Use wait_lwp.
1000
e5ab0dce
AC
10012003-08-28 Andrew Cagney <cagney@redhat.com>
1002
1003 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1004 flavour and disassembler options.
1005 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1006 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1007 deprecated_tm_print_insn_info.
1008
a788de9b
AC
10092003-08-27 Andrew Cagney <cagney@redhat.com>
1010
1011 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1012 Use target_read_memory.
1013 (s390_get_frame_info): Update. Do not reference
1014 deprecated_tm_print_insn_info.
1015 (s390_check_function_end, s390_is_sigreturn): Ditto.
1016
36482093
AC
10172003-08-27 Andrew Cagney <cagney@redhat.com>
1018
1019 * Makefile.in (cris-tdep.o): Update dependencies.
1020 * cris-tdep.c: Include "gdb_assert.h".
1021 (cris_gdbarch_init): Set print_insn.
1022 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1023 (cris_delayed_get_disassembler): Simplify, directly call the
1024 disassembler returned by cris_get_disassembler.
1025 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1026 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1027 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1028 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1029 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1030 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1031 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1032 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1033 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1034 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1035 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1036 (gdb_print_insn_sparc): Delete function.
1037 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1038 deprecated_tm_print_insn_info.
1039 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1040 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1041 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1043 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1044 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1045 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1046 (s390_gdbarch_init): Set print_insn.
1047
0285512f
AC
10482003-08-27 Andrew Cagney <cagney@redhat.com>
1049
1050 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1051 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1052 * infcall.c (call_function_by_hand): Convert the entry point
1053 address into a code address.
1054
cdcd5552
AC
10552003-08-27 Andrew Cagney <cagney@redhat.com>
1056
1057 * dsrec.c: Include "gdb_string.h".
1058 * Makefile.in (dsrec.o): Update dependencies.
1059
e85cddad
MC
10602003-08-27 Michael Chastain <mec@shout.net>
1061
1062 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1063
8bbfbb23
AC
10642003-08-27 Andrew Cagney <cagney@redhat.com>
1065
1066 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1067 (alpha_osf1_init_abi): Do not set call_dummy_address.
1068
ba058b66
DC
10692003-08-27 David Carlton <carlton@kealia.com>
1070
1071 From Randolph Chung <tausq@debian.org>:
1072 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1073 compiles with -Wformat-nonliteral -Werror.
1074
87f84c9d
JB
10752003-08-26 Jim Blandy <jimb@redhat.com>
1076
1077 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1078 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1079 bfd_lookup_symbol, since we only want symbols in code sections.
1080 (look_for_base): Pass zero as the SECT_FLAGS argument to
1081 bfd_lookup_symbol, since we're not concerned about which section
1082 the symbol is in.
1083
102d615a
JJ
10842003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1085
1086 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1087 we are frameless or the return address register is already known.
1088
cc7ad3ea
AC
10892003-08-26 Andrew Cagney <cagney@redhat.com>
1090
1091 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1092 in size. Add comments.
1093
af8b88dd
JJ
10942003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1095
1096 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1097 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1098
e0a4f5a1
JM
10992003-08-26 Jason Merrill <jason@redhat.com>
1100
1101 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1102 case out of #ifdef MIPS block.
1103
4ae9ee8e
DJ
11042003-08-25 Daniel Jacobowitz <drow@mvista.com>
1105
1106 PR java/1322
1107 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1108 available before calling SECT_OFF_TEXT.
3c164570 1109 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1110
004d836a
JJ
11112003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1112
1113 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1114 bof, and nat0-nat127 as pseudo-registers.
1115 (ia64_frame_cache): New struct used to cache frame info.
1116 (ia64_register_reggroup_p): New routine used to override default
1117 register grouping so registers without names are still saved and
1118 restored.
1119 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1120 pseudo values.
1121 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1122 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1123 (ia64_alloc_frame_cache): New routine to create a new
1124 ia64_frame_cache.
1125 (examine_prologue): Change prototype to add next_frame pointer.
1126 Assume frameless until otherwise proven. Verify that the cfm for
1127 current frame matches the cfm that should occur for the prologues
1128 alloc insn and if equal, mark as not frameless. At end of routine,
1129 if not frameless, calculate registers for the previous frame and store
1130 in the cache, if a cache is provided.
1131 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1132 and pass 0 for next_frame.
1133 (ia64_store_return_value): Change to use convert_typed_floating()
1134 instead of calling ia64_convert_to_raw().
1135 (ia64_extract_return_value): Change to use convert_typed_floating()
1136 instead of calling ia64_convert_to_virtual().
1137 (ia64_frame_cache): New routine to support new frame model.
1138 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1139 (ia64_frame_sniffer): Ditto.
1140 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1141 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1142 (ia64_sigtramp_frame_prev_register): Ditto.
1143 (ia64_sigtramp_frame_sniffer): Ditto.
1144 (ia64_frame_base_address): Ditto.
1145 (ia64_extract_struct_value_address): Change to issue error message.
1146 (ia64_frame_align): New routine to align sp.
1147 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1148 (ia64_push_arguments): Removed. Logic moved to
1149 ia64_push_dummy_call().
1150 (ia64_push_return_address): Ditto.
1151 (ia64_unwind_dummy_id): New function.
1152 (ia64_unwind_pc): Ditto.
1153 (ia64_convert_register_p): Ditto.
1154 (ia64_register_to_value): Ditto.
1155 (ia64_value_to_register): Ditto.
1156 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1157 (ia64_register_byte, ia64_register_raw_size): Ditto.
1158 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1159 (ia64_saved_pc_after_call): Ditto.
1160 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1161 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1162 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1163 (ia64_register_convert_to_raw): Ditto.
1164 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1165 (ia64_init_extra_frame_info): Ditto.
1166 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1167 (ia64_gdbarch_init): Remove registering of deprecated functions that
1168 are no longer used. Add registration of new gdbarch functions.
1169 Remove registering deprecated_write_sp. Replace
1170 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1171 Delete set_gdbarch_deprecated_register_convertible(),
1172 set_gdbarch_deprecated_register_convert_to_virtual(), and
1173 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1174 set_gdbarch_deprecated_register_size(),
1175 set_gdbarch_deprecated_register_bytes(),
1176 set_gdbarch_pcregnum(),
1177 set_gdbarch_deprecated_register_byte(),
1178 set_gdbarch_deprecated_register_raw_size(),
1179 set_gdbarch_deprecated_max_register_raw_size(),
1180 set_gdbarch_deprecated_register_virtual_size(),
1181 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1182 Replace set_gdbarch_deprecated_extract_return_value() with
1183 set_gdbarch_extract_return_value(). Remove calls to:
1184 set_gdbarch_deprecated_saved_pc_after_call();
1185 set_gdbarch_deprecated_frame_chain(),
1186 set_gdbarch_deprecated_frame_saved_pc(),
1187 set_gdbarch_deprecated_frame_init_saved_regs(),
1188 set_gdbarch_deprecated_get_saved_register(),
1189 set_gdbarch_deprecated_call_dummy_words(),
1190 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1191 set_gdbarch_deprecated_init_extra_frame_info(),
1192 set_gdbarch_deprecated_frame_args_address(),
1193 set_gdbarch_deprecated_frame_locals_address(),
1194 and set_gdbarch_deprecated_dummy_write_sp().
1195 Add set_gdbarch_convert_register_p(),
1196 set_gdbarch_register_to_value(),
1197 set_gdbarch_value_to_register(),
1198 set_gdbarch_push_dummy_call(),
1199 set_gdbarch_frame_align(),
1200 set_gdbarch_unwind_dummy_id(),
1201 set_gdbarch_unwind_pc(),
1202 frame_unwind_append_sniffer(),
1203 frame_unwind_append_sniffer(),
1204 and frame_base_set_default().
1205
aede7613
CD
12062003-08-25 Chris Demetriou <cgd@broadcom.com>
1207
1208 * configure.tgt: Document need for special "mipsisa64" handling.
1209 (mipsisa64*-*-linux64): Handle as target linux64.
1210 (mipsisa64*-*-*): Handle as target embed64.
1211
43c3a82e
MC
12122003-08-18 Michael Chastain <mec@shout.net>
1213
1214 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1215 objfile bug.
1216
6564f77d
MK
12172003-08-24 Mark Kettenis <kettenis@gnu.org>
1218
2de139ba
MK
1219 * i387-tdep.h: Update copyright date.
1220 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1221
6564f77d
MK
1222 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1223 CFLAGS games to reflect reality.
1224
42cf1509
AC
12252003-08-24 Andrew Cagney <cagney@redhat.com>
1226
1227 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1228 GDB_MULTI_ARCH is always non-zero.
1229 * osabi.c (_initialize_gdb_osabi): Ditto.
1230 (gdbarch_init_osabi): Ditto.
1231 * sparc-tdep.c: Ditto for #if code.
1232
0485f6ad
MK
12332003-08-23 Mark Kettenis <kettenis@gnu.org>
1234
1235 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1236 Update comments.
1237 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1238 comments.
1239 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1240 x86_64_supply_fxsave.
1241 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1242 x86_64_supply_fxsave.
1243 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1244 x86_64_supply_fxsave.
1245
c7716133
AJ
12462003-08-23 Andreas Jaeger <aj@suse.de>
1247
1248 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1249 i387_supply_fxsave.
1250
ed504bdf
MK
12512003-08-23 Mark Kettenis <kettenis@gnu.org>
1252
1253 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1254 i387_supply_register.
1255 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1256 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1257 i387_supply_fsave.
1258 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1259 i387_supply_fxsave.
1260 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1261 i387_supply_fsave.
1262 * i386bsd-nat.c (supply_fpregset): Adjust call to
1263 i387_supply_fsave.
1264 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1265 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1266 supply_fpregset.
1267 (store_inferior_registers): Remove extraneous whitespace. Call
1268 i387_fill_fsave instead of fill_fpregset.
1269 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1270 (supply_fpregset): Likewise.
1271 * i386v4-nat.c (supply_fpregset): Adjust call to
1272 i387_supply_fsave.
1273 * i386-interix-nat.c (supply_fpregset): Adjust call to
1274 i387_supply_fsave.
1275 * i386-linux-nat.c (supply_fpregset): Adjust call to
1276 i387_supply_fsave.
1277 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1278 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1279 i387supply_fsave and i387_supply_fxsave.
1280 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1281 Incorporate code from `i387_supply_register.
1282 (i387_supply_register): Remove.
1283 (i387_supply_fxsave): Add `regnum' argument.
1284 Update comments.
1285 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1286 prototype.
1287 (i387_supply_register): remove prototype.
1288 Update comments.
1289
4be5d520
MC
12902003-08-22 Michael Chastain <mec@shout.net>
1291
1292 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1293 Add lines for files in gdb/testsuite/gdb.cp/* that are
1294 still not 8.3 unique.
1295
7ed85d26
DJ
12962003-08-22 Daniel Jacobowitz <drow@mvista.com>
1297
1298 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1299 TYPE_VPTR_FIELDNO is valid.
1300
eb0d3137
MK
13012003-08-19 Mark Kettenis <kettenis@gnu.org>
1302
1303 * utils.c (set_width_command): Remove prototypes.
1304 (set_screen_size): New prototype.
1305 (init_page_info): Simplify by fetching the screen size from
1306 Readline. Call set_screen_size.
1307 (set_screen_size): New function.
1308 (set_width): Add missing whitespace in comment.
1309 (set_width_command): Call set_screen_size.
1310 (set_height_command): New function.
1311 (initialize_utils): Fix formatting. Make "set height" command
1312 call set_height_command. Remove redundant code that turns off
1313 pagination if output isn't a terminal. Remove redundant call to
1314 set_width_command.
1315
7e6d0ac8
MK
13162003-08-22 Mark Kettenis <kettenis@gnu.org>
1317
3567a8ea
MK
1318 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1319 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1320 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1321 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1322 `case' keyword.
1323 (sparc64_register_info): Give the reister with number
1324 SPARC64_STATE_REGNUM a name.
1325 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1326 %asi and %ccr.
1327 (sparc64_push_dummy_call): Take BIAS into account when checking
1328 stcak alignment.
1329 (sparc_software_single_step): Remove assertions that check whether
1330 NPC and NNPC were zero.
1331 (sparc_supply_rwindow): Make public. Merge functionality with
1332 sparc64_supply_rwindow.
1333 (sparc_fill_rwindow): Make public. Merge functionality with
1334 sparc64_fill_rwindow.
1335 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1336 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1337 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1338 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1339 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1340
7e6d0ac8
MK
1341 * reggroups.c: Add whitespace after declarations of local
1342 variables in functions.
1343
72e5f484
MC
13442003-08-21 Michael Chastain <mec@shout.net>
1345
1346 * gdbtypes.h: Change array bound type from an int to enum.
1347
435ac228
AC
13482003-08-21 Andrew Cagney <cagney@redhat.com>
1349
1350 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1351 * config/sparc/tm-sparc.h: Ditto.
1352 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1353 unconditionally.
1354 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1355
0d0e1a63
MK
13562003-07-13 Mark Kettenis <kettenis@gnu.org>
1357
1358 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1359 (register_objfile_data, set_objfile_data, objfile_data): New
1360 prototypes.
1361 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1362 prototypes.
1363 (allocate_objfile): Call objfile_alloc_data.
1364 (free_objfile): Call objfile_free_data.
1365 (struct objfile_data): New.
1366 (struct objfile_data_registration): New.
1367 (struct objfile_data_registry): New.
1368 (objfile_data_registry): New variable.
1369 (register_objfile_data): New function.
1370 (objfile_alloc_data, objfile_free_data): New functions.
1371 (set_objfile_data, objfile_data): New functions.
1372 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1373 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1374 (_initialize_dwarf2_frame): New function and prototype.
1375
d90cf509
AC
13762003-08-21 Andrew Cagney <cagney@redhat.com>
1377
1378 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1379 a specific architecture.
1380 * arch-utils.h (set_architecture_from_arch_mach): Delete
1381 declaration.
1382 (target_architecture_hook): Delete declaration.
1383 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1384 (default_float_format): Assume GDB_MULTI_ARCH.
1385 (default_double_format): Assume GDB_MULTI_ARCH.
1386 (set_endian_from_file): Delete function.
1387 (arch_ok): Delete function.
1388 (set_arch): Delete function.
1389 (set_architecture_from_arch_mach): Delete function.
1390 (set_architecture_from_file): Delete function.
1391 (set_architecture): Assume GDB_MULTI_ARCH.
1392 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1393
8b39fe56
MK
13942003-08-21 Mark Kettenis <kettenis@gnu.org>
1395
1396 Rewrite FreeBSD/sparc64 native configuration.
1397 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1398 * sparc64fbsd-nat.c: New file.
1399 * sparc64fbsd-tdep.c: New file.
1400 * sparc64-tdep.c sparc64-tdep.h: New files.
1401 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1402 sparc64fbsd-tdep.o): New dependencies.
1403 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1404 and sparc64fbsd-tdep.c.
1405 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1406 * config/sparc/fbsd.mh: Remove copyright notice.
1407 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1408 sparcbsd-nat.o.
1409 * config/sparc/fbsd.mt: Remove copyright notice.
1410 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1411 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1412 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1413 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1414 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1415 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1416 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1417 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1418 "sparc/tm-sp64.h".
1419 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1420 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1421
a7f19c79
MC
14222003-08-21 Michael Chastain <mec@shout.net>
1423
1424 * symtab.h: Add doco on the space critical structures and
1425 some measurements of space usage.
1426
da08ea5b
MS
14272003-08-21 Michael Snyder <msnyder@redhat.com>
1428
1429 * tracepoint.c (trace_dump_command): Trace break address
1430 is subject to DECR_PC_AFTER_BREAK.
1431 (set_traceframe_context): Make "trace_line" an int.
1432 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1433
6df2bf50
MS
14342003-08-20 Michael Snyder <msnyder@redhat.com>
1435
1436 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1437 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1438 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1439 argument passing.
1440 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1441 functions, replace sh_push_dummy_call.
1442 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1443
0955bbf0
MC
14442003-08-20 Michael Chastain <mec@shout.net>
1445
1446 * gdbtypes.h (struct main_type): Rearrange to save space.
1447
260a4188
MS
14482003-08-20 Michael Snyder <msnyder@redhat.com>
1449
1450 * trad-frame.c: Comment typo fix.
1451
8baa6f92
KB
14522003-08-20 Michael Snyder <msnyder@redhat.com>
1453 Kevin Buettner <kevinb@redhat.com>
1454
1455 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1456 (frv_frame_init_saved_regs): Add declaration.
1457 (frame_extra_info): Add new field ``saved_regs''.
1458 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1459 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1460 Update frame related code.
1461 (frv_extract_struct_value_address): Adjust formatting.
1462 * Makefile.in (frv-tdep.o): Update dependencies.
1463 * config/frv/tm-frv.h (target_insert_watchpoint)
1464 (target_remove_watchpoint, target_insert_hw_breakpoint)
1465 (target_remove_hw_breakpoint): Delete these macros.
1466 (remote_insert_watchpoint, remote_remove_watchpoint)
1467 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1468 these declarations.
1469
87193939
MC
14702003-08-20 Michael Chastain <mec@shout.net>
1471
1472 * defs.h (ENUM_BITFIELD): New macro.
1473 * symtab.h (ENUM_BITFIELD): Use it.
1474 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1475
062103ba
SA
14762003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1477
1478 * MAINTAINERS (write after approval): Add myself.
1479
8b148df9
AC
14802003-08-18 Andrew Cagney <cagney@redhat.com>
1481
1482 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1483 * gdbarch.h, gdbarch.c: Re-generate.
1484 * infcall.c (call_function_by_hand): Adjust the SP by
1485 frame_red_zone_size before allocating any stack space.
1486 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1487 * x86-64-tdep.c (x86_64_frame_align): New function.
1488 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1489
1490 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1491 Remove code adjusting SP so that it skips over the Red Zone.
1492
954a4db8
MK
14932003-08-18 Mark Kettenis <kettenis@gnu.org>
1494
1495 * NEWS (New native configurations): Mention FreeBSD/amd64.
1496
1a241548
AC
14972003-08-18 Andrew Cagney <cagney@redhat.com>
1498
1499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1500 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1501 "m68k_frame_p".
1502 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1503
f82b2acd
MK
15042003-08-18 Mark Kettenis <kettenis@gnu.org>
1505
1506 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1507
4056d258
ML
15082003-08-18 Michal Ludvig <mludvig@suse.cz>
1509
1510 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1511 Define.
1512 * i386-linux-nat.c: Include "linux-nat.h".
1513 (child_post_startup_inferior): New function.
1514
99ab4326
MK
15152003-08-18 Mark Kettenis <kettenis@gnu.org>
1516
1517 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1518 at the start of a frameless function. This probably fixes PR
1519 backtrace/1338.
1520
c8d5f0d6
MC
15212003-08-17 Michael Chastain <mec@shout.net>
1522
1523 * symfile.c (find_sym_fns): Remove special case for apollo target.
1524
9016a515
DJ
15252003-08-17 Daniel Jacobowitz <drow@mvista.com>
1526
1527 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1528 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1529 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1530 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1531 (linux_supports_tracevforkdone): New function.
1532 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1533 TRACEVFORKDONE.
1534 (child_follow_fork): Handle vfork.
1535 (linux_handle_extended_wait): Likewise. Also handle exec.
1536 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1537 * NEWS: Mention fork tracing.
1538
c538c11c
DJ
15392003-08-17 Daniel Jacobowitz <drow@mvista.com>
1540
1541 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1542
4de4c07c
DJ
15432003-08-17 Daniel Jacobowitz <drow@mvista.com>
1544
1545 * Makefile.in (i386-linux-nat.o): Update dependencies.
1546 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1547 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1548 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1549 * i386-linux-nat.c: Include "linux-nat.h".
1550 (child_post_startup_inferior): New function.
1551 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1552 * infptrace.c (kill_inferior): Wrap in #ifdef.
1553 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1554 attaching to each LWP.
1555 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1556 (init_lin_lwp_ops): Fill in some more operations.
1557 * linux-nat.h (linux_enable_event_reporting)
1558 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1559 prototypes.
1560 * linux-nat.c (linux_enable_event_reporting): New function.
1561 (child_post_attach, linux_child_post_startup_inferior)
1562 (child_post_startup_inferior, child_follow_fork)
1563 (linux_handle_extended_wait, kill_inferior): New functions.
1564
7996bcec
AC
15652003-08-16 Andrew Cagney <cagney@redhat.com>
1566
1567 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1568 * gdbarch.h, gdbarch.c: Re-generate.
1569
3d48a7a0
MK
15702003-08-16 Mark Kettenis <kettenis@gnu.org>
1571
1572 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1573
7989c619
AC
15742003-08-16 Andrew Cagney <cagney@redhat.com>
1575
1576 * NEWS: Mention that "set prompt-escape-char" was deleted.
1577 * top.c (get_prompt_1): Delete function.
1578 (gdb_prompt_escape):
1579 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1580 prompt-escape-char" command.
1581 (MAX_PROMPT_SIZE): Delete macro.
1582 (get_prompt): Simplify, do not call get_prompt_1.
1583
07978cd8
AC
15842003-08-16 Andrew Cagney <cagney@redhat.com>
1585
1586 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1587 -Werror. -Wformat-nonliteral problems.
1588
3ff7cf9e
JB
15892003-08-15 J. Brobecker <brobecker@gnat.com>
1590
1591 Further multiarching work mostly for hppa64-*-hpux11:
1592 * hppa-tdep.h: New file.
1593 * hppa-tdep.c: #include hppa-tdep.c.
1594 (hppa32_num_regs): Renamed from hppa_num_regs.
1595 (hppa64_num_regs): New constant.
1596 (hppa64_call_dummy_breakpoint_offset): New constant.
1597 (hppa32_call_dummy_length): New constant.
1598 (hppa64_call_dummy_length): New constant.
1599 (hppa32_stack_align): Make name 32bit explicit.
1600 (hppa32_register_virtual_type): Likewise.
1601 (hppa32_extract_return_value): Likewise.
1602 (hppa32_use_struct_convention): Likewise.
1603 (hppa32_store_return_value): Likewise.
1604 (hppa64_register_virtual_type): New function.
1605 (hppa64_extract_return_value): New function.
1606 (hppa64_use_struct_convention): New function.
1607 (hppa64_store_return_value): New function.
1608 (hppa_frame_locals_address): Remove declaration, function does
1609 not exist anymore.
1610 (hppa_register_byte): Add support for PA64 ABI.
1611 (hppa_gdbarch_init): Add support for PA64 ABI.
1612 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1613 Make name 32bit explicit.
1614 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1615 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1616 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1617 (hppa64_hpux_frame_base_before_sigtramp): New function.
1618 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1619 * config/pa/tm-hppa64.h: Remove macros that are no longer
1620 necessary now that the gdbarch vector is properly setup.
1621 Transform some macros into function calls. Some minor cleanup.
1622 * config/pa/tm-hppah.h: Update function calls in macros
1623 following the function renaming in hppa-hpux-tdep.c.
1624 * Makefile.in (hppa_tdep_h): New variable.
1625 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1626
5d05ca6d
MS
16272003-08-14 Michael Snyder <msnyder@redhat.com>
1628
1629 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1630
37ba2569
JB
16312003-08-13 J. Brobecker <brobecker@gnat.com>
1632
1633 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1634 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1635 routine.
1636
aed7f26a
MS
16372003-08-13 Michael Snyder <msnyder@redhat.com>
1638
1639 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1640 (frv_saved_pc_after_call): Use deprecated ftype.
1641 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1642 (frv_remote_translate_xfer_address): Remove.
1643 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1644
752d4ac1
JB
16452003-08-13 J. Brobecker <brobecker@gnat.com>
1646
1647 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1648 initialization after the common gdbarch initialization, not before.
1649
1426ac1d
JB
16502003-08-13 J. Brobecker <brobecker@gnat.com>
1651
1652 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1653 (ADDR_BITS_REMOVE): Remove, redundant.
1654
b6fbdd1d
JB
16552003-08-13 J. Brobecker <brobecker@gnat.com>
1656
1657 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1658 gdbarch method to clear the 2 low bits of text addresses.
1659
44160db3
AC
16602003-08-12 Andrew Cagney <cagney@redhat.com>
1661
1662 * Makefile.in (dsrec.o): Update dependencies.
1663 * dsrec.c: Include "gdb_assert.h".
1664 (make_srec): Use snprintf instead of sprintf, use a literal format
1665 string.
1666
bcf7d3ca
AC
16672003-08-12 Andrew Cagney <cagney@redhat.com>
1668
1669 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1670 FRAME_OBSTACK_ZALLOC.
1671
49ed40de
KB
16722003-08-12 Kevin Buettner <kevinb@redhat.com>
1673
1674 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1675 SSE registers.
1676
b246147c
MK
16772003-08-10 Mark Kettenis <kettenis@gnu.org>
1678
1679 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1680 amd64fbsd_sc_reg_offset): Add extern declarations.
1681 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1682 declarations.
1683
d95fdc0d
BE
16842003-08-11 Ben Elliston <bje@wasabisystems.com>
1685
1686 * MAINTAINERS (write after approval): Update my mail address.
1687
cf6a0e73
AC
16882003-08-10 Andrew Cagney <cagney@redhat.com>
1689
1690 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1691
f837910f
MK
16922003-08-10 Mark Kettenis <kettenis@gnu.org>
1693
e2dbbd2d
MK
1694 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1695 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1696 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1697 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1698 i386bsd_sc_reg_offset): Add extern declarations.
1699 * i386obsd-nat.c: Include "i386-tdep.h"
1700 (_initialize_i386obsd_nat): Remove extern declarations.
1701 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1702 declarations.
1703 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1704 declarations.
1705
f837910f
MK
1706 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1707 instead of frame_read_register.
1708 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1709 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1710 SP_REGNUM.
1711 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1712 instead of frame_unwind_unsigned_register. Use
1713 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1714 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1715 instead of read_register. Use builtin_type_void_data_ptr instead
1716 of builtin_type_void_func_ptr when extracting the address of the
1717 jmp_buf.
1718 (i386_extract_return_value, i386_store_return_value,
1719 i386_pseudo_register_read, i386_pseudo_register_write): Use
1720 register_size instead REGISTER_RAW_SIZE.
1721
edcf254d
AC
17222003-08-10 Andrew Cagney <cagney@redhat.com>
1723
1724 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1725 sprintf. Make "name" constant.
1726
26604a34
MK
17272003-08-10 Mark Kettenis <kettenis@gnu.org>
1728
192285c6
MK
1729 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1730 instead of frame_read_register.
f837910f
MK
1731 (i387_print_float_info): Use get_frame_register and
1732 get_frame_register_unsigned instead of frame_register_read.
192285c6 1733
f0925262
MK
1734 * i386fbsd-nat.c: Include "i386-tdep.h".
1735 (child_resume): Make `eflags' an ULONGEST. Use
1736 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1737 instead of register_read and register_write.
1738
a144416f
MK
1739 * i386bsd-nat.c (fetch_inferior_registers,
1740 store_inferior_registers): Don't use && at the end of a line.
1741 (_initialize_i386bsd_nat): Fix typo.
1742
fec74868
MK
1743 * frame.c (_initialize_frame): Add missing backslash.
1744
87232496
MK
1745 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1746 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1747 and supply_register instead of manipulating the register buffer
1748 directly.
1749
c9b9de0b
MK
1750 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1751 * config/i386/nm-i386sol2.h
1752 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1753
26604a34
MK
1754 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1755 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1756 instructions that GCC likes to mingle into the prologue. Fixes
1757 gdb/1253 and gdb/1255.
1758
25d29d70
AC
17592003-08-09 Andrew Cagney <cagney@redhat.com>
1760
1761 Fix GDB PR cli/926.
1762 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1763 * command.h (add_setshow_uinteger_cmd): Declare.
1764 * frame.c (set_backtrace_cmd): New function.
1765 (show_backtrace_cmd): New function.
1766 * frame.c (_initialize_frame): Replace "set/show
1767 backtrace-below-main" with "set/show backtrace past-main". Add
1768 command "set/show backtrace limit".
1769 (backtrace_past_main): Rename "backtrace_below_main".
1770 (backtrace_limit): New variable.
1771 (get_prev_frame): Update. Check the backtrace_limit.
1772
9ebf4acf
AC
17732003-08-09 Andrew Cagney <cagney@redhat.com>
1774
1775 * defs.h (xstrprintf): Declare.
1776 * utils.c (xstrprintf): New function.
1777 * breakpoint.c (insert_breakpoints): Replace sprintf and
1778 non-literal format strings, with xstrprintf and cleanups.
1779 (delete_breakpoint,breakpoint_re_set): Ditto.
1780 (commands_command, insert_breakpoints): Ditto.
1781 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1782 (break_at_finish_command_1): Ditto.
1783
3771659b
AC
17842003-08-09 Andrew Cagney <cagney@redhat.com>
1785
1786 * MAINTAINERS (language support): List Adam Fedor as Objective C
1787 maintainer.
1788
b4263afa
JB
17892003-08-08 J. Brobecker <brobecker@gnat.com>
1790
1791 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1792 are now multiarched.
1793
d84defb1
JB
17942003-08-08 J. Brobecker <brobecker@gnat.com>
1795
1796 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1797 longer necessary now that hppa64 is partially multiarch'ed.
1798
f786f615
AC
17992003-08-08 Andrew Cagney <cagney@redhat.com>
1800
1801 * interps.c (interp_set): Check for a NULL "old_interp".
1802
c938e9b0
L
18032003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1804
1805 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1806 (install-only): Support DESTDIR.
1807 (uninstall): Likewise.
1808 (install-gdbtk): Likewise.
1809
9a146a11
EZ
18102003-08-08 Elena Zannoni <ezannoni@redhat.com>
1811
1812 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1813 contains something meaningful at all times.
1814
1815Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1816
62599e99 1817 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1818
56296155
BC
1819Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1820
62599e99 1821 * MAINTAINERS (write after approval): Added self.
56296155 1822
9710e734
AC
18232003-08-07 Andrew Cagney <cagney@redhat.com>
1824
1825 * inferior.h (AT_SYMBOL): Define.
1826 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1827 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1828 * mips-tdep.c (mips_call_dummy_address): Delete function.
1829 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1830 set call_dummy_address.
1831
98b3ab73
AC
18322003-08-07 Andrew Cagney <cagney@redhat.com>
1833
1834 * language.c (op_error): Delete function.
1835 (binop_type_check): Delete function.
1836 * language.h (type_op_error, range_op_error): Delete macros.
1837 (op_error): Delete declaration.
1838
2fcf52f0
AC
18392003-08-07 Andrew Cagney <cagney@redhat.com>
1840
1841 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1842
abd4220e 18432003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1844
abd4220e 1845 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1846 (x86_64_push_arguments): Skip the red zone.
abd4220e 1847
9dd5f34f
AC
18482003-08-05 Andrew Cagney <cagney@redhat.com>
1849
1850 * reggroups.c (reggroup_next): Check for the final entry.
1851
e5e78edc
AC
18522003-08-04 Andrew Cagney <cagney@redhat.com>
1853
ab4e3d93
AC
1854 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1855 * cli/cli-script.c (define_command): Call query directly, instead
1856 of passing it a buffer.
1857 * ocd.c (ocd_error): Pass error a constant format string.
1858 * remote-mips.c (mips_error): Use fputs_filtered.
1859
1062ca82
AC
1860 * solib-svr4.c (_initialize_svr4_solib): Update
1861 register_gdbarch_data call.
1862 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1863
fcc1c85c
AC
1864 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1865 (register_gdbarch_data): Delete "free" parameter. Update
1866 comments.
1867 * gdbarch.h, gdbarch.c: Re-generate.
1868 * reggroups.c (_initialize_reggroup): Update.
1869 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1870 * frame-base.c (_initialize_frame_base): Update.
1871 * frame-unwind.c (_initialize_frame_unwind): Update.
1872 * user-regs.c (_initialize_user_regs): Update.
1873 * remote.c (_initialize_remote): Update.
1874 * regcache.c (_initialize_regcache): Update.
1875
116f06ea
AC
1876 * regcache.c (xfree_regcache_descr): Delete function.
1877 (_initialize_regcache): Update call to register_gdbarch_data.
1878 (init_regcache_descr, init_legacy_regcache_descr): Use
1879 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1880
e5e78edc
AC
1881 * remote.c (free_remote_state): Delete function.
1882 (_initialize_remote): Update register_gdbarch_data.
1883 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1884 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1885
6c7d17ba
AC
18862003-08-04 Andrew Cagney <cagney@redhat.com>
1887
1888 * reggroups.c (struct reggroup_el): Define.
1889 (struct reggroups): Delete field "nr_group". Replace array
1890 "group" with a "first" to "last" linked list.
1891 (reggroups_init): Update. Allocate using gdbarch's obstack.
1892 (reggroups_free): Delete function.
1893 (add_group): Update. Add "el" parameter.
1894 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1895 (default_groups): Update.
1896 (reggroup_next): Replace reggroups.
1897 (reggroups_dump): Update.
1898 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1899 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1900 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1901
89b7795b
DJ
19022003-08-04 Daniel Jacobowitz <drow@mvista.com>
1903
1904 * Makefile.in (tui-interp.o): Update dependencies.
1905
306d9ac5
DC
19062003-08-04 David Carlton <carlton@kealia.com>
1907
1908 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1909 to internal_error call.
1910 * source.c (forward_search_command): Add "%s" format argument.
1911 (reverse_search_command): Ditto.
1912 * top.c (quit_confirm): Ditto.
1913 * cli/cli-setshow.c (do_setshow_command): Ditto.
1914 * cp-valprint.c (cp_print_class_method): Replace
1915 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1916 (cp_print_class_member): Ditto.
1917 * event-top.c (command_line_handler): Ditto.
1918 * linux-proc.c (linux_info_proc_cmd): Ditto.
1919 * p-typeprint.c (pascal_type_print_base): Ditto.
1920 * p-valprint.c (pascal_object_print_class_method): Ditto.
1921 (pascal_object_print_class_member): Ditto.
1922 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1923 * remote.c (remote_cisco_section_offsets): Ditto.
1924 * top.c (command_line_input): Ditto.
1925 * utils.c (vwarning,error_stream,quit): Ditto.
1926 * valprint.c (print_floating,print_binary_chars)
1927 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1928
57bfe177
AC
19292003-08-04 Andrew Cagney <cagney@redhat.com>
1930
1931 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1932
e546b999
AC
19332003-08-02 Andrew Cagney <cagney@redhat.com>
1934
1935 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1936 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1937 amd64fbsd-nat.c.
1938
91092ee5
AC
19392003-08-02 Andrew Cagney <cagney@redhat.com>
1940
1941 * Makefile.in: Update all dependencies and definitions.
1942
889f28e2
AF
19432003-08-02 Adam Fedor <fedor@gnu.org>
1944
1945 * linespec.c (is_objc_method_format): New function
1946 (decode_line_1, locate_first_half): Use it.
1947 Fixes PR objc/1298
1948
880bc914
AC
19492003-08-01 Andrew Cagney <cagney@redhat.com>
1950
1951 * NEWS: Mention that m32r is multi-arch.
1952 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1953 * configure.tgt: Recognize m32r-*-*.
1954 * config/m32r/tm-m32r.h: Delete file.
1955 * config/m32r/m32r.mt: New file.
1956 * m32r-rom.c (m32r_upload_command): Use hostent only when
1957 gethostname succeeds, in order to avoid a compilation
1958 warning.
1959 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1960 compiler warning.
1961
19f59343
MS
19622003-08-01 Michael Snyder <msnyder@redhat.com>
1963
1964 * sh-tdep.c (sh_frame_align): New gdbarch method.
1965 (sh_gdbarch_init): Set up frame_align method.
1966
4e7d7511
MS
19672003-07-31 Michael Snyder <msnyder@redhat.com>
1968
1969 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1970 which is already covered by the new frames infrastructure.
1971
63022984
AC
19722003-07-31 Andrew Cagney <cagney@redhat.com>
1973
1974 * user-regs.c (struct user_reg): Add "next" link.
1975 (struct user_regs): Replace "user" with "first" and "last" links.
1976 (append_user_reg): Add pre-allocated "reg" parameter.
1977 (builtin_user_regs): Provide initial value for "last".
1978 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1979 (user_regs_init): Allocate memory from the gdbarch obstack.
1980 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1981 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1982 linked list.
1983 (usernum_to_user_reg): New function.
1984 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1985 (value_of_user_reg): Use usernum_to_user_reg.
1986 (user_regs_free): Delete function.
1987 (_initialize_user_regs): Update register_gdbarch_data call.
1988
7cf6e574
DJ
19892003-07-31 Daniel Jacobowitz <drow@mvista.com>
1990
1991 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1992
c48a845b
MS
19932003-07-30 Michael Snyder <msnyder@redhat.com>
1994
4e7d7511 1995 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1996 * infcall.c (call_function_by_hand): Pass struct_addr to
1997 value_being_returned.
1998 * infcmd.c (print_return_value): Pass zero as struct_addr.
1999 * values.c (value_being_returned): If struct_addr is passed,
2000 use it instead of trying to recover it from the inferior.
2001
f0d8db19
KB
20022003-07-30 Kevin Buettner <kevinb@redhat.com>
2003
2004 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2005 the prologue analyzer won't need to attempt to extract the pc
2006 value from the woefully incomplete dummy frame.
2007 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2008 possible. Disable code which modifies the frame.
2009
e5c113a1
AC
20102003-07-28 Andrew Cagney <cagney@redhat.com>
2011
2012 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2013 to level 2.
2014 (annotate_breakpoints_table, annotate_record): Ditto.
2015 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2016 (annotate_field_name_end, annotate_field_value): Ditto.
2017 (annotate_field_end, annotate_frame_source_begin): Ditto.
2018 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2019 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2020 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2021 (annotate_frame_address_end, annotate_frame_address): Ditto.
2022 (annotate_frame_args, annotate_frame_end): Ditto.
2023 (annotate_frame_where, annotate_arg_begin): Ditto.
2024 (annotate_arg_name_end, annotate_arg_value): Ditto.
2025 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2026 (annotate_function_call, annotate_signal_name): Ditto.
2027 (annotate_signal_string, annotate_signal_name_end): Ditto.
2028 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2029 (annotate_value_begin, annotate_value_history_value): Ditto.
2030 (annotate_value_history_end, annotate_value_end): Ditto.
2031 (annotate_display_begin, annotate_display_number_end): Ditto.
2032 (annotate_display_format, annotate_display_expression): Ditto.
2033 (annotate_display_expression_end, annotate_display_value): Ditto.
2034 (annotate_display_end, annotate_array_section_begin): Ditto.
2035 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2036 (annotate_elt, annotate_array_section_end): Ditto.
2037
bb1db049
AC
20382003-07-28 Andrew Cagney <cagney@redhat.com>
2039
2040 * regcache.c (struct regcache_descr): Update comments on
2041 nr_raw_registers.
2042 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2043 sizeof_raw_register_valid_p.
2044 (init_regcache_descr): Set nr_raw_registers and
2045 sizeof_raw_register_valid_p before calling
2046 init_legacy_regcache_descr.
2047
20e6603c
AC
20482003-07-28 Andrew Cagney <cagney@redhat.com>
2049
2050 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2051 MOD NUM_REGS.
2052
db742940
DJ
20532003-07-28 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * thread.c (info_threads_command): Use get_selected_frame ().
2056 Check that there is at least one non-sentinel frame.
2057
ce7f4371
SC
20582003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2059
2060 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2061 (m68hc11_pop_frame): Remove.
2062 (m68hc11_frame_saved_pc): Remove.
2063 (m68hc11_frame_chain): Remove.
2064 (m68hc11_frame_init_saved_regs): Remove.
2065 (m68hc11_init_extra_frame_info): Remove.
2066 (m68hc11_store_struct_return): Remove.
2067 (m68hc11_saved_pc_after_call): Remove.
2068
1ea653ae
SC
20692003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2070
2071 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2072 frame unwind information.
2073 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2074 and adapted for frame unwinding.
2075 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2076 (m68hc11_unwind_pc): New function.
2077 (m68hc11_frame_unwind_cache): New function to analyze frames.
2078 (m68hc11_frame_this_id): New function to create new frame struct.
2079 (m68hc11_frame_prev_register): New function to unwind a register from
2080 the frame.
2081 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2082 (m68hc11_frame_p): New function for the above.
2083 (m68hc11_frame_base_address): New function to return fp of frame.
2084 (m68hc11_frame_args_address): Update for frame.
2085 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2086 (m68hc11_unwind_sp): New function.
2087 (m68hc11_unwind_dummy_id): New function.
2088 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2089 calls.
2090
c8a7f6ac
SC
20912003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2092
2093 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2094 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2095 when we are beyond the current pc.
2096
3dc990bf
SC
20972003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2098
2099 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2100 from m68hc11_push_arguments.
2101 (m68hc11_push_arguments): Remove.
2102 (m68hc11_push_return_address): Remove.
2103 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2104 handlers; remove deprecated_extra_stack_alignment_needed.
2105
222e5d1d
AC
21062003-07-27 Andrew Cagney <cagney@redhat.com>
2107
2108 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2109 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2110 REAL_PC and not the pointer.
2111 * hppa-hpux-tdep.c: Include frame.h
2112
a7e9a47e
AC
21132003-07-27 Andrew Cagney <cagney@redhat.com>
2114
2115 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2116 GDB_MULTI_ACH_PARTIAL.
2117
7e3dd49e
AC
21182003-07-27 Andrew Cagney <cagney@redhat.com>
2119
2120 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2121 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2122 operator at start and not end of line.
2123 (decode_prologue): Ditto.
2124 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2125 frame_unwind_register_unsigned instead of
2126 frame_unwind_unsigned_register.
2127 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2128 read_register.
2129 (m32r_push_dummy_call): Use register_size instead of
2130 REGISTER_RAW_SIZE.
2131 (m32r_frame_sniffer): Replace m32r_frame_p.
2132 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2133 * m32r-rom.c (report_transfer_performance): Delete extern
2134 declaration.
2135 (m32r_load, m32r_upload_command): Use print_transfer_performance
2136 instead of report_transfer_performance.
2137 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2138 / add_show_from_set.
2139
0880807f
AC
21402003-07-26 Andrew Cagney <cagney@redhat.com>
2141
2142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2143 store_return_value and extract_struct_value_address.
2144
64ae9269
DJ
21452003-07-26 Daniel Jacobowitz <drow@mvista.com>
2146
2147 PR c++/1267
2148 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2149 NULL, default to the section containing PC.
2150
e286caf2
SC
21512003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2152
2153 * NEWS: Mention "regs" deprecated for m68hc11 too.
2154
2155 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2156 (m68hc11_print_register): New function to print out one register.
2157 (m68hc11_print_registers_info): New function to print registers.
2158 (show_regs): Deprecate and use the above.
2159 (m68hc11_gdbarch_init): Install the print_registers_info.
2160
705b278b
JJ
21612003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2162
2163 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2164 that we have a SIGTRAP before returning non-zero.
2165
63cd4198
EZ
21662003-07-23 Michal Ludvig <mludvig@suse.cz>
2167 Elena Zannoni <ezannoni@redhat.com>
2168
2169 * linespec.c (decode_line_2): Avoid crash if
2170 find_function_start_sal() returns empty record.
2171
6926787d
AS
21722003-07-23 Andreas Schwab <schwab@suse.de>
2173
2174 * ia64-tdep.c (ia64_print_insn): New function.
2175 (ia64_gdbarch_init): Set print_insn to it.
2176 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2177 deprecated_tm_print_insn_info.
2178
708cc1b6
MS
21792003-07-22 Michael Snyder <msnyder@redhat.com>
2180
2181 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2182 handle 8-bit returns (long long).
2183 (h8300h_extract_return_value): Ditto.
2184 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2185
aebd7893
AC
21862003-07-22 Andrew Cagney <cagney@redhat.com>
2187
2188 * gdbarch.c Include "gdb_obstack.h".
2189 (struct gdbarch): Add an "obstack".
2190 (alloc_gdbarch_data): Allocate the gdbarch data using
2191 GDBARCH_OBSTACK_CALLOC.
2192 (free_gdbarch_data): Delete function.
2193 (gdbarch_obstack_zalloc): New function.
2194 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2195 Assert that the architecture is not initialized.
2196 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2197 vector from the obstack.
2198 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2199 architecture obstack.
2200 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2201 (set_gdbarch_data): Assert that the data is not initialized.
2202 (struct gdbarch_data): Delete member "free".
2203 (register_gdbarch_data): Do not initialize "free".
2204 * gdbarch.h, gdbarch.c: Re-generate.
2205
153721e6
AC
22062003-07-22 Andrew Cagney <cagney@redhat.com>
2207
2208 * configure.in (build_warnings): Add -Wformat-nonliteral.
2209 * configure: Re-generate.
2210
c193f044 22112003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2212
2213 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2214
c3228f12
EZ
22152003-07-22 Elena Zannoni <ezannoni@redhat.com>
2216
2217 * findvar.c (read_var_value): Remove case for thread local storage
2218 variables. It is now entirely handled by the dwarf2 location
2219 expression code.
2220 * printcmd.c (address_info): Ditto.
2221 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2222 enumeration value.
2223 (struct symbol): Remove objfile field, which was used by
2224 LOC_THREAD_LOCAL_STATIC only.
2225 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2226 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2227 usage of objfile pointer.
2228 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2229 thread local variables.
2230 Add include of objfiles.h.
2231 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2232 storage variables.
2233 * Makefile.in (dwarf2loc.o): Update dependencies.
2234
aef9bcd2
AC
22352003-07-22 Andrew Cagney <cagney@redhat.com>
2236
2237 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2238 get_frame_base.
2239 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2240 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2241 (struct value): Add opaque declaration.
2242 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2243
d95a8903
AC
22442003-07-21 Andrew Cagney <cagney@redhat.com>
2245
2246 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2247 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2248
4db73d49
SC
22492003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2250
2251 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2252 regcache_cooked_read_unsigned instead of read_register.
2253 (m68hc11_saved_pc_after_call): Likewise.
2254 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2255 instead of write_register.
2256 (m68hc11_register_type): New function.
2257 (m68hc11_register_virtual_type): Remove.
2258 (m68hc11_store_return_value): Convert to use the regcache.
2259 (m68hc11_extract_struct_value_address): Likewise.
2260 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2261 m68hc11_register_type; undeprecate store_return_value and
2262 extract_struct_value_address.
2263
ef2b8fcd
SC
22642003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2265
2266 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2267 and translate to use regcache.
2268 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2269
625b0b97
AC
22702003-07-18 Andrew Cagney <cagney@redhat.com>
2271
2272 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2273 * gdbarch.h, gdbarch.c: Re-generate.
2274 * i386-tdep.c (i386_gdbarch_init): Do not set
2275 DWARF2_BUILD_FRAME_INFO.
2276 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2277 unconditionally.
2278 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2279 DWARF2_BUILD_FRAME_INFO.
2280
22b0d388
AC
22812003-07-18 Andrew Cagney <cagney@redhat.com>
2282
2283 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2284 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2285
1ce5d6dd
AC
22862003-07-18 Andrew Cagney <cagney@redhat.com>
2287
2288 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2289 frame_unwind_address_in_block, instead of frame_pc_unwind.
2290 (dwarf2_frame_cache): Ditto.
2291
e6e5e94c
AC
22922003-07-18 Andrew Cagney <cagney@redhat.com>
2293
2294 * user-regs.h (struct gdbarch): Declare opaque.
2295 * ui-out.h (struct ui_file): Declare opaque.
2296 * dwarf2-frame.h (struct frame_info): Declare opaque.
2297
5483d879
KW
22982003-07-18 Kris Warkentin <kewarken@qnx.com>
2299
2300 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2301 #include "...".
2302 (procfs_meminfo): Change strerror to safe_strerror.
2303 (procfs_can_run): Remove K&R badness.
2304
278a7cf7
MS
23052003-07-17 Michael Snyder <msnyder@redhat.com>
2306
2307 * remote-sim.c: Comment typo fix.
2308
606e3b82
AC
23092003-07-17 Andrew Cagney <cagney@redhat.com>
2310
2311 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2312 configure.
2313 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2314 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2315 GDB_MULTI_ARCH_PARTIAL.
2316
c43af07c
EZ
23172003-07-17 Elena Zannoni <ezannoni@redhat.com>
2318
2319 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2320 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2321 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2322
3b85b0f1
TR
23232003-07-16 Theodore A. Roth <troth@openavr.org>
2324
2325 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2326 found.
2327 (avr_frame_unwind_cache): Don't unwind FP for main.
2328 Update a comment.
2329 Save the computed prev_sp.
2330 (avr_saved_regs_unwinder): Remove function.
2331 (avr_frame_prev_register): Use PC unwind logic from
2332 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2333
336d1bba
AC
23342003-07-16 Andrew Cagney <cagney@redhat.com>
2335
2336 * frame-base.h (frame_base_p_ftype): Delete definition.
2337 (frame_base_append_predicate): Delete declaration.
2338 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2339 (frame_unwind_append_predicate): Delete declaration.
2340 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2341 (append_predicate): Delete parameter "p".
2342 (frame_unwind_append_predicate): Delete function.
2343 (frame_unwind_append_sniffer): Update call to append_predicate.
2344 (frame_unwind_free): Delete function.
2345 (_initialize_frame_unwind): Pass NULL as "free" to
2346 register_gdbarch_data.
2347 (frame_unwind_init): Append the dummy_frame_sniffer.
2348 (frame_unwind_find_by_frame): Simplify.
2349 * frame-base.c (struct frame_base_table): Delete field "p".
2350 (append_predicate): Delete parameter "p".
2351 (frame_base_append_predicate): Delete function.
2352 (frame_base_append_sniffer): Update call to append_predicate.
2353 (frame_base_free): Delete function.
2354 (frame_base_find_by_frame): Simplify.
2355 (_initialize_frame_base): Pass NULL as "free" to
2356 register_gdbarch_data.
2357 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2358 (x86_64_sigtramp_frame_sniffer): Replace
2359 "x86_64_sigtramp_frame_p".
2360 (x86_64_init_abi): Set the frame unwind sniffers.
2361 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2362 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2363 (m68k_gdbarch_init): Set the frame unwind sniffers.
2364 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2365 "i386_sigtramp_frame_p".
2366 (i386_frame_sniffer): Replace "i386_frame_p".
2367 (i386_gdbarch_init): Set the frame unwind sniffers.
2368 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2369 (avr_gdbarch_init): Set the frame unwind sniffers.
2370 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2371 "alpha_sigtramp_frame_p"
2372 (alpha_heuristic_frame_sniffer): Replace
2373 "alpha_heuristic_frame_p".
2374 (alpha_gdbarch_init): Set the frame unwind sniffers.
2375 (alpha_dwarf2_init_abi): Ditto.
2376 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2377 "alpha_debug_frame_p".
2378 (alpha_mdebug_frame_base_sniffer): Replace
2379 "alpha_mdebug_frame_base_p".
2380 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2381 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2382 (d10v_gdbarch_init): Set the frame unwind sniffer.
2383 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2384 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2385 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2386 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2387 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2388 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2389
48db5a3c
CV
23902003-07-16 Michael Snyder <msnyder@redhat.com>
2391
2392 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2393 should go thru sh_dsp_register_sim_regno, else the dsp regs
2394 will not get the right values.
2395
23962003-07-16 Corinna Vinschen <vinschen@redhat.com>
2397
2398 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2399 deprecated_store_floating by call to store_typed_floating.
2400 (sh_sh4_register_convert_to_raw): Substitute call to
2401 deprecated_extract_floating by call to extract_typed_floating.
2402
24032003-07-16 Corinna Vinschen <vinschen@redhat.com>
2404
2405 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2406
24072003-07-16 Corinna Vinschen <vinschen@redhat.com>
2408
2409 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2410 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2411 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2412 as possible.
2413 (do_pseudo_register): Remove.
2414 (sh_push_dummy_code): New function.
2415 (sh64_store_struct_return): Rename from sh_store_struct_return.
2416 Only called for sh64 now.
2417 (sh_extract_struct_value_address): Regcache'ify.
2418 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2419 and accomodate new tasks.
2420 (sh64_push_return_address): Rename from sh_push_return_address.
2421 Only called for sh64 now.
2422 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2423 Regcache'ify.
2424 (sh3e_sh4_extract_return_value): Regcache'ify.
2425 (sh_default_store_return_value): Ditto.
2426 (sh3e_sh4_store_return_value): Ditto.
2427 (sh_default_register_byte): Remove.
2428 (sh_sh4_register_byte): Remove.
2429 (sh_default_register_raw_size): Remove.
2430 (sh_sh4_register_raw_size): Remove.
2431 (sh_register_virtual_size): Remove.
2432 (sh_sh3e_register_virtual_type): Remove.
2433 (sh_sh3e_register_type): New function.
2434 (sh_sh4_register_virtual_type): Remove.
2435 (sh_sh4_register_type): New function.
2436 (sh_default_register_virtual_type): Remove.
2437 (sh_default_register_type): New function.
2438 (do_fv_register_info): Add parameters to accomodate call from
2439 sh_print_registers_info.
2440 (do_dr_register_info): Ditto.
2441 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2442 Add parameters to accomodate call from sh_print_registers_info.
2443 (sh_do_fp_register): Ditto.
2444 (sh64_do_pseudo_register): Call do_dr_register_info,
2445 do_fv_register_info and sh_do_fp_register with default parameters.
2446 (sh_do_register): Add parameters to accomodate call from
2447 sh_print_registers_info.
2448 (sh_print_register): Ditto.
2449 (sh_print_registers_info): Rename from sh_do_registers_info.
2450 Add parameters to be used as gdbarch_print_registers_info
2451 implementation. Accomodate removed do_pseudo_register function
2452 pointer.
2453 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2454 function pointer. Call sh_print_register with default parameters.
2455 (sh64_do_registers_info): Call sh_print_registers_info instead of
2456 sh_do_registers_info.
2457 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2458 detection of deprecated vs. non-deprecated functionality.
2459 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2460 function pointer assignments by direct function calls.
2461
e8a89fe2
AC
24622003-07-15 Andrew Cagney <cagney@redhat.com>
2463
2464 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2465 (frame_register_unwind, create_new_frame): Ditto.
2466 (legacy_get_prev_frame, get_frame_type): Ditto.
2467 (get_frame_base_address): Use frame_base_find_by_frame.
2468 (get_frame_locals_address): Use frame_base_find_by_frame.
2469 (get_frame_args_address): Use frame_base_find_by_frame.
2470 * frame-base.h (frame_base_sniffer_ftype): Declare.
2471 (frame_base_append_sniffer): Declare.
2472 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2473 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2474 (frame_base_append_sniffer): New function.
2475 (frame_base_append_predicate): Add a NULL sniffer.
2476 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2477 (struct frame_base_table): Add "sniffer".
2478 (frame_base_free): Free the "sniffer" table.
2479 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2480 (frame_unwind_append_sniffer): Declare.
2481 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2482 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2483 (struct frame_unwind_table): Add "sniffer", delete "middle".
2484 (append_predicate): Add "sniffer" parameter, append the sniffer.
2485 (frame_unwind_init): Update append_predicate call.
2486 (frame_unwind_append_sniffer): New function.
2487 (frame_unwind_append_predicate): Update append_predicate call.
2488 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2489
0714963c
AC
24902003-07-15 Andrew Cagney <cagney@redhat.com>
2491
2492 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2493 before code inhibiting repeated unwind attempts. Add to
2494 commentary on that test's problems.
2495 * blockframe.c (inside_main_func): Look for "main" in the minimal
2496 symbol table.
2497 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2498 identical.
2499
d9170e22
AC
25002003-07-15 Andrew Cagney <cagney@redhat.com>
2501
2502 * complaints.c (struct explanation): Define.
2503 (struct complaints): Change type of "explanation" to "struct
2504 explanation".
2505 (symfile_explanations): Convert to a "struct explanation" table.
2506 (vcomplaint): Update.
2507
eba29c8c
ML
25082003-07-15 Michal Ludvig <mludvig@suse.cz>
2509
2510 * x86-64-linux-nat.c (regmap): Removed.
2511 (supply_gregset, fill_gregset): Call
2512 x86_64_linux_(fill,supply)_gregset functions.
2513 * x86-64-linux-tdep.c (USER_*): New defines.
2514 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2515 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2516 New functions.
2517 (fetch_core_registers): Ditto.
2518 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2519 * x86-64-linux-tdep.h: New file.
2520 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2521 and core-regset.o.
2522 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2523
68cc0bfb
MK
25242003-07-13 Mark Kettenis <kettenis@gnu.org>
2525
88a115f7
MK
2526 * x86-64-tdep.c (x86_64_store_return_value): Use
2527 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2528
68cc0bfb
MK
2529 * configure.host: Add x86_64-*-freebsd*.
2530 * configure.tgt: Add x86_64-*-freebsd*.
2531 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2532 * amd64fbsd-nat.c: New file.
2533 * amd64fbsd-tdep.c: New file.
2534 * config/i386/nm-fbsd64.h: New file.
2535 * config/i386/fbsd64.mh: New file.
2536 * config/i386/fbsd64.mt: New file.
2537
138e7be5
MK
25382003-07-11 Mark Kettenis <kettenis@gnu.org>
2539
2540 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2541 `sc_regs_offset' and `sc_fpregs_offset'.
2542 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2543 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2544 (alpha_sigtramp_register_address): Rewrite to use new members of
2545 `struct gdbarch_tdep'.
2546 (alpha_gdbarch_init): Initialize new members of struct
2547 gdbarch_tdep'.
2548 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2549 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2550 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2551 (alphafbsd_pc_in_sigtramp): Implement.
2552 (alphafbsd_sigtramp_offset): New function.
2553 (alphafbsd_sigcontext_addr): New function.
2554 (alphafbsd_init_abi): Initialize signal trampoline related members
2555 of `struct gdbarch_tdep'.
2556 (_initialize_alphafbsd_tdep): Add prototype.
2557
95303a68
TR
25582003-07-11 Theodore A. Roth <troth@openavr.org>
2559
ba292e4c
TR
2560 * Makefile.in (install-only): Quote sed expression when generating
2561 transformed_name.
95303a68 2562
6896c0c7
RH
25632003-07-11 Richard Henderson <rth@redhat.com>
2564
2565 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2566 * dwarf2-frame.c: Include complaints.h.
2567 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2568 variable initialization; return NULL on error.
2569 (decode_frame_entry): New.
2570
8edd5d01
AC
25712003-07-11 Andrew Cagney <cagney@redhat.com>
2572
c4a09524
AC
2573 * frame.h (frame_address_in_block): Delete declaration.
2574 * blockframe.c (frame_address_in_block): Delete function.
2575 (get_frame_block): Use get_frame_address_in_block.
2576 (block_innermost_frame): Ditto.
2577 * stack.c (print_frame, backtrace_command_1): Ditto.
2578
8edd5d01
AC
2579 * frame.h (get_frame_address_in_block): Declare.
2580 (frame_unwind_address_in_block): Declare.
2581 * frame.c (frame_unwind_address_in_block): New function.
2582 (get_frame_address_in_block): New function.
2583
f7968451
AC
25842003-07-10 Andrew Cagney <cagney@redhat.com>
2585
2586 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2587 pre-default. Note: re-generate has no effect.
2588
ae99b398
AC
25892003-07-10 Andrew Cagney <cagney@redhat.com>
2590
2591 * gdbarch.sh: When a variable, but not a function, compare against
2592 0. Fix problem in previous patch.
2593 * gdbarch.c: Re-generate.
2594
956ac328
AC
25952003-07-10 Andrew Cagney <cagney@redhat.com>
2596
2597 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2598 functions against NULL, not 0.
2599 * gdbarch.c: Re-generate.
2600
287c3240
FF
26012003-07-10 Fred Fish <fnf@ninemoons.com>
2602
2603 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2604 null string instead of a null pointer.
2605 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2606
32f63c4b
MS
26072003-07-09 Michael Snyder <msnyder@redhat.com>
2608
2609 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2610
402ecd56
MK
26112003-07-09 Mark Kettenis <kettenis@gnu.org>
2612
2613 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2614 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2615 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2616 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2617 * x86-64-tdep.c: ... from here.
2618
c481dac7
AS
26192003-07-09 Andreas Schwab <schwab@suse.de>
2620
2621 * m68k-tdep.h (enum struct_return): Define.
2622 (struct gdbarch_tdep): Add struct_return.
2623 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2624 bytes are padded to the right, not to the left. Pass struct value
2625 address in register %a1, not on stack.
2626 (m68k_use_struct_convention): New function.
2627 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2628 struct_return in tdep to pcc_struct_return.
2629 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2630 reg_struct_return.
2631
64176fa3
JB
26322003-07-09 Joel Brobecker <brobecker@gnat.com>
2633
2634 * somread.c (som_symfile_offsets): Fix compilation error.
2635
96a4ee76
AC
26362003-07-09 Andrew Cagney <cagney@redhat.com>
2637
2638 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2639 Add comments about the checks.
2640
1517c6d1
AC
26412003-07-08 Andrew Cagney <cagney@redhat.com>
2642
2643 * Makefile.in: Make dependency section headers consistent.
2644 (config_h): Move to $BUILD headers section.
2645 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2646 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2647 (ada-exp.tab.c): Move to YACC/LEX section.
2648 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2649 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2650
dc5dd1eb
KW
26512003-07-08 Kris Warkentin <kewarken@qnx.com>
2652
2653 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2654 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2655 of strerror with safe_strerror, use ISO C function definitions,
2656 and replace instances of sprintf with snprintf.
dc5dd1eb 2657
612dde91
AC
26582003-07-07 Andrew Cagney <cagney@redhat.com>
2659
2660 * frame.c (get_prev_frame): Enable check for identical frames.
2661 Update comments. Update error messages.
2662
492c11d3
JB
26632003-07-07 Joel Brobecker <brobecker@gnat.com>
2664
2665 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2666
376a5a49
JB
26672003-07-07 Joel Brobecker <brobecker@gnat.com>
2668
2669 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2670 sort_symtab_syms, no longer necessary.
2671
22b4a9ad
JB
26722003-07-07 Joel Brobecker <brobecker@gnat.com>
2673
2674 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2675
5bbcb741
JB
26762003-07-07 Joel Brobecker <brobecker@gnat.com>
2677
2678 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2679 (mips_register_byte): Likewise.
2680
c139e7d9
DJ
26812003-07-07 Daniel Jacobowitz <drow@mvista.com>
2682
2683 * Makefile.in (sparc_tdep_h): New.
2684 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2685 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2686 * sparc-linux-nat.c: Include "sparc-tdep.h".
2687 * sparc-nat.c: Likewise.
2688 * sparc-tdep.c: Likewise.
2689 * sparc64nbsd-nat.c: Likewise.
2690 * sparcnbsd-nat.c: Likewise.
2691 * sparcnbsd-tdep.c: Likewise.
2692 * sparc-tdep.h: New file.
2693 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2694 and sparc_npc_regnum.
2695
fd8f87c5
DJ
26962003-07-07 Daniel Jacobowitz <drow@mvista.com>
2697
2698 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2699 (mips_linux_cannot_store_register): List supported instead of
2700 unsupported registers.
2701
13adf674
DJ
27022003-07-07 Daniel Jacobowitz <drow@mvista.com>
2703
2704 * disasm.c (dump_insns): Separate instructions from addresses.
2705
8de307e0
AS
27062003-07-07 Andreas Schwab <schwab@suse.de>
2707
2708 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2709 dependencies.
2710 * m68k-tdep.c (NUM_FREGS): Delete.
2711 (SIG_PC_FP_OFFSET): Delete.
2712 (TARGET_M68K): Delete.
2713 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2714 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2715 P_MOVEL_SP, P_MOVEML_SP): Define.
2716 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2717 P_TRAP): Delete.
2718 (m68k_register_raw_size): Delete.
2719 (m68k_register_virtual_size): Delete.
2720 (m68k_register_type): Renamed from m68k_register_virtual_type and
2721 add gdbarch argument.
2722 (m68k_store_struct_return): Delete.
2723 (m68k_deprecated_extract_return_value): Delete.
2724 (m68k_deprecated_extract_struct_value_address): Delete.
2725 (m68k_frame_chain): Delete.
2726 (m68k_frame_saved_pc): Delete.
2727 (m68k_fix_call_dummy): Delete.
2728 (m68k_push_dummy_frame): Delete.
2729 (m68k_pop_frame): Delete.
2730 (m68k_extract_return_value): New function.
2731 (m68k_store_return_value): Rewrite using regcache.
2732 (m68k_extract_struct_value_address): Rewrite using regcache.
2733 (m68k_push_dummy_call): New function.
2734 (struct m68k_frame_cache): Define.
2735 (m68k_alloc_frame_cache): New function.
2736 (m68k_analyze_frame_setup): New function.
2737 (m68k_analyze_register_saves): New function.
2738 (m68k_analyze_prologue): New function.
2739 (m68k_skip_prologue): Rewrite using above functions.
2740 (m68k_unwind_pc): New function.
2741 (m68k_frame_cache): New function.
2742 (m68k_frame_this_id): New function.
2743 (m68k_frame_prev_register): New function.
2744 (m68k_frame_unwind): New variable.
2745 (m68k_frame_p): New function.
2746 (m68k_sigtramp_frame_cache): New function.
2747 (m68k_sigtramp_frame_this_id): New function.
2748 (m68k_sigtramp_frame_prev_register): New function.
2749 (m68k_sigtramp_frame_unwind): New variable.
2750 (m68k_sigtramp_frame_p): New function.
2751 (m68k_frame_base_address): New function.
2752 (m68k_frame_base): New function.
2753 (m68k_unwind_dummy_id): New function.
2754 (fill_gregset): Use regcache_collect.
2755 (fill_fpregset): Likewise.
2756 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2757 defined.
2758 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2759 deprecated_init_frame_pc, deprecated_store_struct_return,
2760 deprecated_extract_return_value, deprecated_store_return_value,
2761 deprecated_frame_chain, deprecated_frame_saved_pc,
2762 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2763 deprecated_register_virtual_size,
2764 deprecated_max_register_raw_size,
2765 deprecated_max_register_virtual_size,
2766 deprecated_register_virtual_type, deprecated_register_size,
2767 deprecated_register_byte, deprecated_register_bytes,
2768 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2769 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2770 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2771 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2772 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2773 deprecated_push_dummy_frame, deprecated_pop_frame,
2774 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2775 only if SYSCALL_TRAP is defined. Set extract_return_value,
2776 store_return_value, extract_struct_value_address, register_type,
2777 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2778 predicates.
2779 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2780 M68K_MAX_REGISTER_SIZE): Define.
2781 (struct m68k_sigtramp_info): Define.
2782 (struct gdbarch_tdep): Add get_sigtramp_info.
2783 * m68klinux-nat.c (fetch_register): Use register_size instead of
2784 REGISTER_RAW_SIZE. Don't put assignment in if.
2785 (store_register): Likewise.
2786 (fetch_inferior_registers): Likewise.
2787 (store_inferior_registers): Likewise.
2788 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2789 (m68k_linux_frame_saved_pc): Delete.
2790 (m68k_linux_sigcontext_reg_offset,
2791 m68k_linux_ucontext_reg_offset): Define.
2792 (m68k_linux_get_sigtramp_info): New function.
2793 (m68k_linux_extract_return_value): Rewrite using regcache.
2794 (m68k_linux_store_return_value): Likewise.
2795 (m68k_linux_extract_struct_value_address): Likewise.
2796 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2797 Don't set deprecated_frame_saved_pc,
2798 deprecated_extract_return_value, deprecated_store_return_value,
2799 deprecated_extract_struct_value_address. Set
2800 extract_return_value, store_return_value,
2801 extract_struct_value_address.
2802
eb8bc282
AC
28032003-07-07 Andrew Cagney <cagney@redhat.com>
2804
2805 * expprint.c: Include "user-regs.h" instead of "frame.h".
2806 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2807 frame_map_regnum_to_name.
2808 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2809 (frame_map_name_to_regnum): Simplify, call
2810 user_reg_map_name_to_regnum.
2811 (frame_map_regnum_to_name): Simplify, call
2812 user_reg_map_regnum_to_name.
2813 (frame_register_unwind): Update.
2814 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2815 (_initialize_frame_reg): Call user_reg_add_builtin.
2816 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2817 (value_of_register): Use value_of_user_reg.
2818 * eval.c (evaluate_subexp_standard): Update.
2819 * parse.c (write_dollar_variable): Update.
2820 * d10v-tdep.c (d10v_print_registers_info): Update.
2821 * infcmd.c (registers_info): Update.
2822 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2823 (builtin_regs_h): Delete macro.
2824 (user_regs_h): Define.
2825 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2826 (builtin-regs.o): Delete target.
2827 (user-regs.o): Specify dependencies.
2828 (expprint.o): Update dependencies.
2829 (findvar.o): Update dependencies.
2830 (frame.o): Update dependencies.
2831 (std-regs.o): Update dependencies.
2832
9f476a01
CF
28332003-07-06 Christopher Faylor <cgf@redhat.com>
2834
2835 * win32-nat.c (solib_symbols_add): Use one variable for all section
2836 address stuff. Pass variable rather than address of variable to
2837 safe_symbol_file_add.
2838
a731b831
AS
28392003-07-06 Andreas Schwab <schwab@suse.de>
2840
2841 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2842
9f83329d
JB
28432003-07-04 Joel Brobecker <brobecker@gnat.com>
2844
2845 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2846
27e28cc5
KW
28472003-07-04 Kris Warkentin <kewarken@qnx.com>
2848
2849 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2850
28512003-07-04 Kris Warkentin <kewarken@qnx.com>
2852
2853 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2854 * config/i386/nto.mh: New file.
2855 * config/i386/nm-nto.h: New file.
2856 * configure.host: Add i[3456]86-*-nto*.
2857
100f2e98
JB
28582003-07-03 Joel Brobecker <brobecker@gnat.com>
2859
2860 * remote-vx.c (vx_add_symbols): Fix compilation error.
2861
e23457df
AC
28622003-07-03 Andrew Cagney <cagney@redhat.com>
2863
2864 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2865 * gdbarch.h, gdbarch.c: Re-generate.
2866 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2867 (legacy_register_name): Declare.
2868 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2869 (REGISTER_NAME): Define.
2870 * sparc-tdep.c (legacy_register_name): New function.
2871 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2872 (REGISTER_NAME): Define.
2873 (hppa64_register_name): Declare.
2874 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2875 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2876 (hppa64_register_name): New function.
2877 (hppa_register_name): New function.
2878 * arch-utils.c (legacy_register_name): Delete.
2879 * arch-utils.h (legacy_register_name): Delete.
2880
38caaeec
DJ
28812003-07-03 Daniel Jacobowitz <drow@mvista.com>
2882
2883 * cli/cli-interp.c (cli_interpreter_resume): Update the
2884 cli_uiout's stream to gdb_stdout.
2885
dadd712e
AC
28862003-07-03 Andrew Cagney <cagney@redhat.com>
2887
2888 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2889 predicate.
2890 * gdbarch.h, gdbarch.c: Re-generate.
2891 * regcache.c (init_regcache_descr): Use legacy code when either
2892 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2893
c7f1390e
DJ
28942003-07-02 Daniel Jacobowitz <drow@mvista.com>
2895
2896 * NEWS: Move "set logging" entry into GDB 6.0 section.
2897
4bc8c588
JB
28982003-07-02 Jim Blandy <jimb@redhat.com>
2899
a9dd42f1
JB
2900 * s390-tdep.c (struct frame_extra_info): new member:
2901 'stack_bought_valid'.
2902 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2903 initialize fextra_info->stack_bought.
2904 (s390_frameless_function_invocation): Don't trust the value of
2905 fextra_info_ptr->stack_bought unless
2906 fextra_info->stack_bought_valid is set.
2907
4bc8c588
JB
2908 New S390 prologue analyzer.
2909 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2910 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2911 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2912 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2913 compute_x_addr, s390_on_stack, s390_store,
2914 s390_get_signal_frame_info): New functions.
2915 (S390_NUM_SPILL_SLOTS): New macro.
2916 (s390_get_frame_info): Rewritten.
2917 (is_arg_reg): Deleted.
2918
2919 Break out the decoding of S/390 instructions into separate
2920 functions, to make it more legible, and easier to check
2921 against the spec.
2922 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2923 is_rx, is_rxe): New functions.
2924 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2925 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2926 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2927 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2928 enums for opcode values. (Is this an improvement?)
2929
fd13a04a
AC
29302003-07-02 Andrew Cagney <cagney@redhat.com>
2931
2932 * i386-tdep.c: Revert change committed as part of trad-frame code
2933 below.
2934
3f8091c1
DJ
29352003-07-02 Daniel Jacobowitz <drow@mvista.com>
2936
2937 * breakpoint.c (insert_catchpoint): Make static.
2938
8dd5115e
AS
29392003-07-02 Andreas Schwab <schwab@suse.de>
2940
2941 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2942 former ia64_push_arguments and ia64_push_return_address, and use
2943 regcache functions instead of read/write_register.
2944 (ia64_gdbarch_init): Set push_dummy_call instead of
2945 deprecated_push_arguments and deprecated_push_return_address.
2946
a2229c23
AJ
29472003-07-01 Andreas Jaeger <aj@suse.de>
2948
2949 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2950 before the call.
2951 Set %rax only to number of SSE registers used.
2952
3b3850e8
AC
29532003-07-01 Andrew Cagney <cagney@redhat.com>
2954
2955 * trad-frame.h: Update comments, a -1 .addr is reserved.
2956 (trad_frame_value_p, trad_frame_addr_p): Declare.
2957 (trad_frame_reg_p): Declare.
2958 (trad_frame_set_value): Rename trad_frame_register_value.
2959 (trad_frame_set_unknown): Declare.
2960 * trad-frame.c (trad_frame_realreg_p): New function.
2961 (trad_frame_addr_p, trad_frame_value_p): New function.
2962 (trad_frame_set_unknown): New function.
2963 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2964 (trad_frame_prev_register): Use trad_frame_realreg_p,
2965 trad_frame_addr_p and trad_frame_value_p.
2966 (trad_frame_set_value): Rename trad_frame_register_value.
2967 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2968 and trad_frame_set_value.
a2229c23 2969
4d819d0e
JB
29702003-06-30 Jim Blandy <jimb@redhat.com>
2971
2972 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2973 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2974 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2975 for 16 registers, and then 32 more bytes.
2976 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2977 New macros.
2978 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2979 Move up in the file, since it's now used by is_simple_arg.
2980 (is_simple_arg): Don't assume registers are four bytes long.
2981 Exclude all double arguments. Extended floats are not simple
2982 args.
2983 (is_power_of_two): New function.
2984 (pass_by_copy_ref): Call is_power_of_two, and check that the
2985 length fits in a register, rather than listing all the acceptable
2986 sizes. Extended floats are not passed by reference.
2987 (s390_push_arguments): Don't assume registers are four bytes long.
2988 Reserve an argument register to point to the buffer for structures
2989 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2990 S390_STACK_FRAME_OVERHEAD.
2991
1ad828f1
AS
29922003-06-30 Andreas Schwab <schwab@suse.de>
2993
2994 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2995 format error message.
2996
39b00981
JB
29972003-06-30 Joel Brobecker <brobecker@gnat.com>
2998
2999 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3000
b2a7f303
DC
30012003-06-30 David Carlton <carlton@kealia.com>
3002
3003 Band-aid for PR c++/1245.
3004 * Makefile.in (cp-support.o): Depend on complaints_h.
3005 * cp-support.c: Include complaints.h. Add declaration for
3006 find_last_component.
3007 (cp_find_first_component): Separate code into
3008 cp_find_first_component_aux.
3009 (cp_find_first_component_aux): Call demangled_name_complaint.
3010 (demangled_name_complaint): New.
3011
a257b5bb
AC
30122003-06-30 Andrew Cagney <cagney@redhat.com>
3013
3014 * remote.c (remote_write_bytes): Explicitly compute and then use
3015 the payload size. Update comments to reflect. Fixes problem of
3016 GDB not sending small packets as found by Fred Fish.
3017
0a2cfde4
AC
30182003-06-30 Andrew Cagney <cagney@redhat.com>
3019
3020 * remote.c (remote_async_wait): Fix -Wformat problem.
3021
3fcb8548
AC
30222003-06-29 Andrew Cagney <cagney@redhat.com>
3023
3024 * remote.c (remote_wait): Call error, and not warning, when the
3025 packet is corrupt.
3026 (remote_async_wait): Ditto.
3027
9f9970a3
DJ
30282003-06-29 Daniel Jacobowitz <drow@mvista.com>
3029
3030 * sparc-tdep.c (sparc_y_regnum): Make external again.
3031
83a8ccca
DJ
30322003-06-29 Daniel Jacobowitz <drow@mvista.com>
3033
3034 * cli/cli-logging.c (pop_output_files): Add void to function
3035 definition.
3036
d2cf594a
AC
30372003-06-29 Andrew Cagney <cagney@redhat.com>
3038
3039 * frame.c (frame_register_unwind): Use unsigned char when dumping
3040 the buffer contents.
3041
0fac0b41
DJ
30422003-06-28 Daniel Jacobowitz <drow@mvista.com>
3043
3044 * cli/cli-logging.c: New file.
3045 * cli-out.c (struct ui_out_data): Add original_stream.
3046 (cli_redirect): New function.
3047 (cli_ui_out_impl): Add cli_redirect.
3048 (cli_out_new): Initialize original_stream.
3049 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3050 (uo_redirect, ui_out_redirect): New.
3051 * ui-out.h (struct ui_out_impl): Add redirect member.
3052 (redirect_ftype): New.
3053 (ui_out_redirect): Add prototype.
3054 * Makefile.in: Add rules for cli-logging.c.
3055 * NEWS: Mention "set logging".
3056
88a07d7c
EZ
30572003-06-27 Elena Zannoni <ezannoni@redhat.com>
3058
3059 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3060
4eb58876
AC
30612003-06-27 Andrew Cagney <cagney@redhat.com>
3062
3063 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3064 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3065 * avr-tdep.c (avr_call_dummy_address): Delete function.
3066 (avr_gdbarch_init): Do not set call_dummy_address.
3067
1549f619
EZ
30682003-06-27 Elena Zannoni <ezannoni@redhat.com>
3069
3070 * symfile.c (syms_from_objfile): Move variables to inner block.
3071 Move the checks for the non-mainline case a bit earlier to avoid
3072 doing some useless computations.
3073
3cb3398d
EZ
30742003-06-27 Elena Zannoni <ezannoni@redhat.com>
3075
3076 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3077
3799ccc6
EZ
30782003-06-26 Elena Zannoni <ezannoni@redhat.com>
3079
3080 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3081 sections.
3082
ce1f6491
MC
30832003-06-26 Michael Chastain <mec@shout.net>
3084
3085 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3086 gdb/testsuite/gdb.c++/pr-1210.exp.
3087
d958dfd0
AC
30882003-06-26 Andrew Cagney <cagney@redhat.com>
3089
3090 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3091 altivec_expression.h and altivec_registers.h.
3092
d31431ed
AC
30932003-06-26 Andrew Cagney <cagney@redhat.com>
3094
3095 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3096 info->mach when MIPS16. Patch suggested by Fred Fish.
3097
714b1282
AC
30982003-06-26 Andrew Cagney <cagney@redhat.com>
3099
3100 * utils.c (internal_vproblem): Print the problem to a reason
3101 buffer and then pass to query. Make the msg variable more local.
3102
42efa47a
AC
31032003-06-26 Andrew Cagney <cagney@redhat.com>
3104
3105 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3106 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3107 * gdbarch.h, gdbarch.c: Re-generate.
3108 * frame-base.c (default_frame_args_address): Update. Use
3109 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3110 not available.
3111 (default_frame_locals_address): Ditto for
3112 DEPRECATED_FRAME_LOCALS_ADDRESS.
3113 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3114 (vax_frame_num_args): Update.
3115 (vax_gdbarch_init): Update.
3116 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3117 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3118 * mcore-tdep.c (mcore_gdbarch_init): Update.
3119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3120 * ia64-tdep.c (ia64_gdbarch_init): Update.
3121 * symtab.h (address_class): Update comments.
3122 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3123 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3124 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3125 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3126 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3127 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3128 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3129 * alpha-mdebug-tdep.c: Update.
3130 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3131
8ffd9b1b
AJ
31322003-06-26 Andreas Jaeger <aj@suse.de>
3133
3134 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3135 of SSE registers so that varargs functions work. Rework handling
3136 of passing arguments on the stack.
3137 (x86_64_store_return_value): Return double and float values in SSE
3138 register.
3139
e8ac10a6
MC
31402003-06-24 Michael Chastain <mec@shout.net>
3141
3142 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3143 the "constructor breakpoints ignored" bug.
3144
986af8e6
DC
31452003-06-25 David Carlton <carlton@kealia.com>
3146
3147 * MAINTAINERS: Update e-mail address.
3148
d64558a5
JB
31492003-06-24 Jim Blandy <jimb@redhat.com>
3150
e538d2d7
JB
3151 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3152
02631ec0
JB
3153 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3154 function.
3155 (ppc_linux_init_abi): Register it as the
3156 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3157
e716d87a
JB
3158 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3159 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3160 method.
3161
d64558a5
JB
3162 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3163 (ppc64_standard_linkage_target): Use it.
3164
449a5da4
AC
31652003-06-23 Andrew Cagney <cagney@redhat.com>
3166
3167 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3168 for 0 "int0" and 4 "int32" sized registers.
3169 * gdbtypes.c (builtin_type_int0): Define.
3170 (build_gdbtypes): Initialize builtin_type_int0.
3171 * gdbtypes.h (builtin_type_int0): Declare.
3172
b2a02dda
SC
31732003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3174
3175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3176 as characters are unsigned.
3177
fba3138e
DJ
31782003-06-22 Daniel Jacobowitz <drow@mvista.com>
3179
3180 PR gdb/1179
3181 * dwarfread.c (struct_type): Skip static fields without crashing.
3182
f6c8180b
AC
31832003-06-22 Andrew Cagney <cagney@redhat.com>
3184
3185 GDB 6.0 branch created.
f2c06f52
AC
3186 * README: Update.
3187 * PROBLEMS: Update. Empty.
3188 * NEWS: Update.
f6c8180b 3189
ae822768
DJ
31902003-06-22 Daniel Jacobowitz <drow@mvista.com>
3191
3192 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3193 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3194
261de166
AC
31952003-06-22 Andrew Cagney <cagney@redhat.com>
3196
3197 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3198 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3199 Velikov.
3200
30e94205
DJ
32012003-06-22 Daniel Jacobowitz <drow@mvista.com>
3202
3203 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3204 compilers.
3205
9e14d721
DJ
32062003-06-21 Daniel Jacobowitz <drow@mvista.com>
3207
3208 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3209 argument of val_print.
3210 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3211 to the address argument of baseclass_offset or target_read_memory.
3212 Do add it to the argument of cp_print_value_fields.
3213
a4b8ebc8
AC
32142003-06-21 Andrew Cagney <cagney@redhat.com>
3215
3216 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3217 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3218 instead of 0..NUM_REGS.
3219 (mips_register_reggroup_p): New function.
3220 (mips_pseudo_register_write): New function.
3221 (mips_pseudo_register_read): New function.
3222 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3223 based on the register's type.
3224 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3225 cooked.
3226 (mips_get_saved_register): Simplify. Assert that REGNO is a
3227 pseudo / cooked.
3228 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3229 (mips_register_type): Replace mips_register_virtual_type. Map
3230 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3231 when available.
3232 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3233 that the register is cooked / virtual.
3234 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3235 Only get the extra info when needed.
3236 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3237 (mips32_heuristic_proc_desc): Fetch the cooked register.
3238 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3239 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3240 (mips_print_register): Use gdbarch_register_type, instead of
3241 REGISTER_VIRTUAL_TYPE.
3242 (print_gp_register_row): Use gdbarch_register_type, instead of
3243 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3244 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3245 Print the pseudo / cooked registers.
3246 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3247 Print the pseudo / cooked registers.
3248 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3249 REG_NUM is pseudo / cooked.
3250 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3251 (mips_n32n64_xfer_return_value): Ditto.
3252 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3253 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3254 (mips_register_sim_regno): New function.
3255 (mips_gdbarch_init): Set deprecated_register_byte,
3256 register_group_p, pseudo_register_write, pseudo_register_read,
3257 register_sim_regno, and num_pseudo_regs. Set register_type,
3258 instead of register_virtual_type.
3259 * Makefile.in (mips-tdep.o): Update dependencies.
3260 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3261 REGISTER_VIRTUAL_TYPE.
3262 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3263 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3264 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3265 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3266 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3267
325ed089
DJ
32682003-06-21 Daniel Jacobowitz <drow@mvista.com>
3269
3270 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3271 * cli/cli-cmds.c: Include "gdb_vfork.h".
3272 (shell_escape): Use vfork.
3273
f0e7d0e8
AC
32742003-06-21 Andrew Cagney <cagney@redhat.com>
3275
c57bb9fa
AC
3276 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3277 32 bit floating-point register saves.
3278
6e51443a
AC
3279 * frame.h (deprecated_unwind_get_saved_register): Delete.
3280 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3281 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3282 and deprecated_get_next_frame_hack instead of
3283 deprecated_unwind_get_saved_register.
3284
ed183c7c
AC
3285 * mips-tdep.c (mips_dump_tdep): Do not print
3286 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3287
f0e7d0e8
AC
3288 * frame.c (get_frame_register): New function.
3289 (frame_unwind_register_signed): New function.
3290 (get_frame_register_signed): New function.
3291 (frame_unwind_register_unsigned): New function.
3292 (get_frame_register_unsigned): New function.
3293 * frame.h: Add comments on naming schema.
3294 (get_frame_register, frame_unwind_register_signed): Declare.
3295 (get_frame_register_signed, get_frame_register_signed): Declare.
3296 (frame_unwind_register_unsigned): Declare.
3297 (get_frame_register_unsigned): Declare.
3298
2224d941
TR
32992003-06-20 Theodore A. Roth <troth@openavr.org>
3300
3301 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3302
8619218d
TR
33032003-06-20 Theodore A. Roth <troth@openavr.org>
3304
3305 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3306 (avr_read_sp): Ditto.
3307
0b1b50c0
DJ
33082003-06-20 Daniel Jacobowitz <drow@mvista.com>
3309
3310 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3311 * config/arm/nm-linux.h: Likewise.
3312 * config/arm/tm-linux.h: Likewise.
3313 * config/ia64/nm-linux.h: Likewise.
3314 * config/ia64/tm-ia64.h: Likewise.
3315 * config/s390/tm-linux.h: Likewise.
3316 * config/s390/tm-s390.h: Likewise.
3317 * s390-nat.c: Likewise.
3318 * s390-tdep.c: Likewise.
3319
3320 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3321 * config/ia64/linux.mt: Likewise.
3322 * config/m68k/linux.mh: Likewise.
3323 * config/mips/linux.mt: Likewise.
3324 * config/powerpc/linux.mh: Likewise.
3325 * config/sh/linux.mt: Likewise.
3326
c8c18e65
KW
33272003-06-19 Kris Warkentin <kewarken@qnx.com>
3328
3329 * solib.c (solib_open): Change tests for whether to search
3330 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3331 comments.
3332
dcccef2e
TR
33332003-06-19 Theodore A. Roth <troth@openavr.org>
3334
3335 * avr-tdep.c (avr_frame_address): Delete function.
3336 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3337 set_gdbarch_frame_args_address.
3338
5861a190
AC
33392003-06-19 Andrew Cagney <cagney@redhat.com>
3340
3341 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3342 (REGISTER_CONVERT_FROM_TYPE): Delete.
3343 (mips_register_convert_to_type): Delete declaration.
3344 (mips_register_convert_from_type): Delete declaration.
3345 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3346 kernel/.
3347
0274a8ce
MS
33482003-06-19 Michael Snyder <msnyder@redhat.com>
3349
3350 * linux-nat.h: New file.
3351 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3352 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3353 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3354 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3355 (linux_make_note_section): Iterate over lwps instead of threads.
3356 (linux_do_thread_registers): Use lwp instead of merged pid.
3357 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3358 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3359 Add dependency on linux_nat_h.
3360
adf5f719
TR
33612003-06-19 Theodore A. Roth <troth@openavr.org>
3362
3363 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3364
6766a268
DJ
33652003-06-19 Daniel Jacobowitz <drow@mvista.com>
3366
3367 * varobj.c (get_type, get_target_type): Use check_typedef.
3368
1171114a
DJ
33692003-06-19 Daniel Jacobowitz <drow@mvista.com>
3370
3371 * breakpoint.c (insert_catchpoint): Call internal_error.
3372
adcf68a2
TR
33732003-06-19 Theodore A. Roth <troth@openavr.org>
3374
3375 * avr-tdep.c (avr_push_dummy_code): Delete function.
3376 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3377
ea67f13b
DJ
33782003-06-19 Daniel Jacobowitz <drow@mvista.com>
3379
3380 * arch-utils.c (default_prepare_to_proceed): Remove.
3381 (generic_prepare_to_proceed): Remove.
3382 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3383 (generic_prepare_to_proceed): Remove prototype.
3384 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3385 * gdbarch.c: Regenerate.
3386 * gdbarch.h: Regenerate.
3387 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3388 * hppah-nat.c (hppa_switched_threads): Remove.
3389 * infrun.c (prepare_to_proceed): New static function, copied from
3390 generic_prepare_to_proceed. Remove select_it argument.
3391 (proceed): Call prepare_to_proceed.
3392 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3393 variables.
3394 (ptrace_wait): Don't set the removed variables.
3395 (hppa_switched_threads): Remove.
3396 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3397 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3398 (lin_lwp_prepare_to_proceed): Remove prototype.
3399 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3400 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3401
4add8633
TR
34022003-06-18 Theodore A. Roth <troth@openavr.org>
3403
3404 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3405 trad-frame.h.
3406 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3407 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3408 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3409 (AVR_PROLOGUE_*): Enumerate prologue types.
3410 (struct frame_extra_info): Remove.
3411 (struct avr_unwind_cache): Define.
3412 (avr_write_sp): Delete function.
3413 (avr_read_fp): Ditto.
3414 (avr_init_extra_frame_info): Ditto.
3415 (avr_pop_frame): Ditto.
3416 (avr_frame_saved_pc): Ditto.
3417 (avr_saved_pc_after_call): Ditto.
3418 (avr_push_return_address): Ditto.
3419 (avr_frame_chain): Ditto.
3420 (avr_store_struct_return): Ditto.
3421 (avr_push_arguments): Ditto.
3422 (avr_scan_prologue): Update comments. Changed to set up the info for
3423 cache unwinding. Now returns end of prologue PC.
3424 (avr_skip_prologue): Better handling of functions lacking a prologue
3425 by using avr_scan_prologue.
3426 (avr_scan_arg_moves): New function.
3427 (avr_saved_regs_unwinder): Ditto.
3428 (avr_frame_unwind_cache): Ditto.
3429 (avr_unwind_pc): Ditto.
3430 (avr_frame_this_id): Ditto.
3431 (avr_frame_prev_register): Ditto.
3432 (avr_frame_p): Ditto.
3433 (avr_frame_base_address ): Ditto.
3434 (avr_unwind_dummy_id): Ditto.
3435 (avr_push_dummy_code): Ditto.
3436 (push_stack_item): Ditto.
3437 (pop_stack_item): Ditto.
3438 (avr_push_dummy_call): Ditto.
3439 (struct stack_item): Define.
3440 (avr_frame_unwind): Declare structure.
3441 (avr_frame_base): Ditto.
3442 (avr_gdbarch_init): Remove calls to
3443 set_gdbarch_deprecated_init_frame_pc,
3444 set_gdbarch_deprecated_target_read_fp,
3445 set_gdbarch_deprecated_dummy_write_sp,
3446 set_gdbarch_deprecated_fp_regnum,
3447 set_gdbarch_deprecated_push_arguments,
3448 set_gdbarch_deprecated_push_return_address,
3449 set_gdbarch_deprecated_pop_frame,
3450 set_gdbarch_deprecated_store_struct_return,
3451 set_gdbarch_deprecated_frame_init_saved_regs,
3452 set_gdbarch_deprecated_init_extra_frame_info,
3453 set_gdbarch_deprecated_frame_chain,
3454 set_gdbarch_deprecated_frame_saved_pc,
3455 set_gdbarch_deprecated_saved_pc_after_call.
3456 Add calls to set_gdbarch_push_dummy_call,
3457 set_gdbarch_push_dummy_code,
3458 frame_unwind_append_predicate,
3459 frame_base_set_default,
3460 set_gdbarch_unwind_dummy_id,
3461 set_gdbarch_unwind_pc.
3462 Wrap a long line.
3463
7be04a68
MS
34642003-06-18 Corinna Vinschen <vinschen@redhat.com>
3465
3466 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3467 registers for H8/300S.
3468 (h8300_print_registers_info): Ditto.
8ffd9b1b 3469 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3470
ae087d01
DJ
34712003-06-18 Daniel Jacobowitz <drow@mvista.com>
3472
3473 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3474 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3475 (lin_lwp_wait): Likewise. Update comments.
3476 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3477 (pull_pid_from_list, linux_record_stopped_pid): New.
3478
07d8f827
SC
34792003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3480
3481 * ada-lang.c (scan_discrim_bound): Name first argument.
3482 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3483 declared by ALL_BLOCK_SYMBOLS.
3484
7cb47b14
SC
34852003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3486
3487 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3488 ("regcache.h"): Include it.
3489 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3490
6ad8ae5c
DJ
34912003-06-17 Daniel Jacobowitz <drow@mvista.com>
3492
3493 * NEWS: Mention gdbserver detach change and "disconnect" command.
3494 * infcmd.c (disconnect_command): New function.
3495 (_initialize_infcmd): Add ``disconnect'' command.
3496 * remote.c (remote_async_detach): Delete.
3497 (remote_detach): Merge remote_async_detach.
3498 (remote_disconnect): New.
3499 (init_remote_ops): Set to_disconnect.
3500 (init_remote_cisco_ops): Likewise.
3501 (init_remote_async_ops): Likewise. Use remote_detach.
3502 * target.c (cleanup_target): Default to_disconnect.
3503 (update_current_target): Inherit to_disconnect.
3504 (target_disconnect, debug_to_disconnect): New functions.
3505 (setup_target_debug): Set to_disconnect.
3506 * target.h (struct target_ops): Add to_disconnect.
3507 (target_disconnect): Add prototype.
3508
687595f9
DJ
35092003-06-17 Daniel Jacobowitz <drow@mvista.com>
3510
3511 * breakpoint.c (insert_catchpoint): New function.
3512 (insert_breakpoints): Use catch_exceptions to call
3513 insert_catchpoint. Disable catchpoints if they fail to insert.
3514
29239a8f
DJ
35152003-06-17 Daniel Jacobowitz <drow@mvista.com>
3516
3517 * symfile.c (reread_symbols): Clear sym_private.
3518
2cdf3c63
AC
35192003-06-17 Andrew Cagney <cagney@redhat.com>
3520
3521 * trad-frame.h (struct frame_info): Add opaque declaration.
3522 * remote-fileio.h (struct cmd_list_element): Add opaque
3523 declaration.
3524 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3525 comments.
3526
cf0e1e0d
DJ
35272003-06-17 Daniel Jacobowitz <drow@mvista.com>
3528
3529 * remote.c (remote_prepare_to_store): Replace call to
3530 deprecated_read_register_bytes with multiple regcache_raw_read
3531 calls.
3532
192cdb19
KW
35332003-06-17 Kris Warkentin <kewarken@qnx.com>
3534
3535 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3536 (nto_find_and_open_solib): Likewise.
3537 (nto_init_solib_absolute_prefix): Likewise.
3538 (_initialize_nto_tdep): Fix indentation.
3539
89929b45
KW
35402003-06-17 Kris Warkentin <kewarken@qnx.com>
3541
3542 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3543
46019f27
KW
35442003-06-17 Kris Warkentin <kewarken@qnx.com>
3545
3546 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3547
1a38736e
JB
35482003-06-17 Jim Blandy <jimb@redhat.com>
3549
3550 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3551
3605c34a
TR
35522003-06-16 Theodore A. Roth <troth@openavr.org>
3553
3554 * avr-tdep.c (avr_extract_return_value): New function.
3555 (avr_gdbarch_init): Set extract_return_value method.
3556
870b3035
AC
35572003-06-16 Andrew Cagney <cagney@redhat.com>
3558
3559 * frame.h (deprecated_get_next_frame_hack): Declare.
3560 * frame.c (legacy_saved_regs_prev_register): Only require
3561 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3562 there are always saved regs.
3563 (deprecated_generic_get_saved_register): Do not require
3564 DEPRECATED_FRAME_INIT_SAVED_REGS.
3565 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3566 use frame ID unwind instead.
3567 (deprecated_get_next_frame_hack): New function.
3568
63d47a7d
CV
35692003-06-16 Corinna Vinschen <vinschen@redhat.com>
3570
3571 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3572 (h8300_push_dummy_call): ...this function. Some minor optimization.
3573 (h8300_push_return_address): Remove.
3574 (h8300_gdbarch_init): Remove calls to
3575 set_gdbarch_deprecated_dummy_write_sp,
3576 set_gdbarch_deprecated_push_arguments and
3577 set_gdbarch_deprecated_push_return_address.
3578 Add call to set_gdbarch_push_dummy_call.
3579
4bb1dc5e
CV
35802003-06-16 Corinna Vinschen <vinschen@redhat.com>
3581
3582 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3583 (E_PSEUDO_EXR_REGNUM): Ditto.
3584 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3585 registers into safe registers.
4bb1dc5e
CV
3586 (h8300_skip_prologue): Check for stm instruction to push registers
3587 used for register variables onto stack.
3588 (gdb_print_insn_h8300): Remove.
3589 (h8300_examine_prologue): Add a comment.
3590 (h8300_register_name): Take pseudo registers into account.
3591 (h8300s_register_name): Ditto.
3592 (h8300sx_register_name): Ditto.
3593 (h8300_print_register): Ditto.
3594 (h8300_print_registers_info): Define "nice" printing order.
3595 (h8300_saved_pc_after_call): Take pseudo registers into account.
3596 (h8300_register_type): Ditto. Return type used for remote connection
3597 when requesting real CCR or EXR register, return actual type when
3598 requesting pseudo CCR or EXR.
3599 (h8300_pseudo_register_read): New function.
3600 (h8300_pseudo_register_write): Ditto.
3601 (h8300_dbg_reg_to_regnum): Ditto.
3602 (h8300s_dbg_reg_to_regnum): Ditto.
3603 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3604 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3605 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3606 set_gdbarch_print_insn architecture dependent.
3607 Call set_gdbarch_pseudo_register_read and
3608 set_gdbarch_pseudo_register_write.
3609 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3610
a59fe496
AC
36112003-06-16 Andrew Cagney <cagney@redhat.com>
3612
3613 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3614 * gdbarch.h, gdbarch.c: Re-generate.
3615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3616 * s390-tdep.c (s390_gdbarch_init): Update.
3617 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3618 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3619 * mips-tdep.c (mips_gdbarch_init): Update.
3620 * mcore-tdep.c (mcore_gdbarch_init): Update.
3621 * cris-tdep.c (cris_gdbarch_init): Update.
3622 * infcall.c (call_function_by_hand): Update.
3623 * ia64-tdep.c (ia64_push_arguments): Update comment.
3624 * frame.c (legacy_get_prev_frame): Do not assume
3625 SAVE_DUMMY_FRAME_TOS_P.
3626 * dummy-frame.c (find_dummy_frame): Update comment.
3627
6f4e5a41
AC
36282003-06-16 Andrew Cagney <cagney@redhat.com>
3629
3630 * regcache.c (do_cooked_read): Do not use register_valid_p.
3631
72fab697
TR
36322003-06-15 Theodore A. Roth <troth@openavr.org>
3633
3634 * avr-tdep.c (avr_register_type): Remove a blank line.
3635 (avr_scan_prologue): Correct some comments.
3636
e3d8b004
TR
36372003-06-15 Theodore A. Roth <troth@openavr.org>
3638
3639 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3640 prologue types.
8ffd9b1b 3641 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3642 option.
3643 Add code to scan -mcall-prologues for mega devices.
3644
866b76ea
TR
36452003-06-15 Theodore A. Roth <troth@openavr.org>
3646
3647 * avr-tdep.c (avr_register_byte): Delete function.
3648 (avr_register_raw_size): Delete function.
3649 (avr_register_virtual_size): Delete function.
3650 (avr_register_virtual_type): Delete function.
3651 (avr_register_type): New function.
3652 (avr_address_to_pointer): Remove unused code.
3653 (avr_read_fp): Need to read FP as two separate bytes due to change to
3654 avr_register_type() usage.
3655 (avr_gdbarch_init): Don't set deprecated_register_size.
3656 Don't set deprecated_register_bytes.
3657 Don't set deprecated_register_byte.
3658 Don't set deprecated_register_raw_size.
3659 Don't set deprecated_max_register_raw_size.
3660 Don't set deprecated_register_virtual_size.
3661 Don't set deprecated_max_register_virtual_size.
3662 Don't set deprecated_register_virtual_type.
3663 Set register_type method.
3664
3993f6b1
DJ
36652003-06-15 Daniel Jacobowitz <drow@mvista.com>
3666
3667 * Makefile.in (linux-nat.o): Add rule.
3668 * linux-nat.c: New file.
3669 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3670 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3671 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3672 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3673 * config/arm/linux.mh (NATDEPFILES): Likewise.
3674 * config/i386/linux.mh (NATDEPFILES): Likewise.
3675 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3676 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3677 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3678 * config/mips/linux.mh (NATDEPFILES): Likewise.
3679 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3680 * config/s390/s390.mh (NATDEPFILES): Likewise.
3681 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3682
786a90bb
MK
36832003-06-15 Mark Kettenis <kettenis@gnu.org>
3684
3685 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3686 replace out-of-date comment.
3687
3bd3f01e
AC
36882003-06-15 Andrew Cagney <cagney@redhat.com>
3689
3690 * rdi-share/host.h (Fail): Change to a varargs function.
3691 * remote-rdi.c (Fail): Update.
8ffd9b1b 3692
de5b9bb9
MK
36932003-06-15 Mark Kettenis <kettenis@gnu.org>
3694
3695 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3696 (i386_convert_register_p, i386_register_to_value,
3697 i386_register_from_value): Handle types longer than 8 bytes.
3698
d532c08f
MK
36992003-06-15 Mark Kettenis <kettenis@gnu.org>
3700
3701 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3702 Move floating-point code to new function in i387-tdep.c.
3703 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3704 New functions containing code moved here from i386-tdep.c.
3705 * i387-tdep.h: Add opaque declaration for `struct type'.
3706 (i387_register_to_value, i387_value_to_register): New prototypes.
3707 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3708 (x86_64_init_abi): Set convert_register_p, register_to_value and
3709 value_to_register here.
8ffd9b1b 3710
42c466d7
AC
37112003-06-14 Andrew Cagney <cagney@redhat.com>
3712
3713 * mips-tdep.c (mips_register_to_value): Make static.
3714 (mips_value_to_register): Make static.
3715 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3716 * ia64-tdep.c (ia64_register_raw_size): Make static.
3717 (ia64_register_virtual_size): Make static.
3718 (ia64_register_byte): Make static.
3719 * i387-tdep.c: Include "i387-tdep.h".
3720 (print_387_control_word): Delete function.
3721 (print_387_status_word): Delete function.
3722 (print_387_status_bits): Delete function.
3723 (print_387_control_bits): Delete function.
3724 * Makefile.in (i387-tdep.o): Update dependencies.
3725 * rdi-share/host.h (Fail): Declare.
3726 * remote-rdi.c (Fail): Update to match declaration.
3727
2a9cda49
AC
37282003-06-14 Andrew Cagney <cagney@redhat.com>
3729
3730 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3731 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3732 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3733 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3734 * README: Delete reference to remote-array.
3735 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3736 (remote-array.o): Delete target.
3737 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3738 * remote-array.c: Delete file.
3739
ff2e87ac
AC
37402003-06-14 Andrew Cagney <cagney@redhat.com>
3741 Mark Kettenis <kettenis@gnu.org>
3742
3743 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3744 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3745 parameter with "frame".
3746 * gdbarch.h, gdbarch.c: Re-generate.
3747 * frame.h (put_frame_register): Declare.
3748 * frame.c (put_frame_register): New function.
3749 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3750 (legacy_register_to_value): Rewrite, use "frame" to get the
3751 register value.
3752 (legacy_value_to_register): Rewrite, use "frame" to find the
3753 register's location before storing.
3754 * arch-utils.h (legacy_convert_register_p): Update.
3755 (legacy_register_to_value, legacy_value_to_register): Update.
3756 * findvar.c (value_from_register): Rewrite, eliminate use of
3757 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3758 "frame" to REGISTER_TO_VALUE.
3759 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3760 lval_reg_frame_relative + lval_register branch of the switch. Do
3761 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3762 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3763 I386_EDI_REGNUM): New defines.
3764 (i386_next_regnum, i386_convert_register_p,
3765 i386_register_to_value, i386_value_to_register): New functions.
3766 (i386_register_convertible, i386_register_convert_to_virtual,
3767 i386_convert_to_raw): Remove functions.
3768 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3769 value_to_register instead of register_convertible,
3770 register_convert_to_virtual and register_convert_to_raw.
3771 * mips-tdep.c (mips_convert_register_p): New function.
3772 (mips_value_to_register): Replace mips_register_convert_from_type.
3773 (mips_register_to_value): Replace mips_register_convert_to_type.
3774 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3775 register_to_value.
3776 * alpha-tdep.c (alpha_convert_register_p): Update.
3777 (alpha_value_to_register): Update, store the register.
3778 (alpha_register_to_value): Update, fetch the register.
3779
98be1e77
TR
37802003-06-14 Theodore A. Roth <troth@openavr.org>
3781
3782 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3783 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3784 Don't set deprecated_call_dummy_words.
3785 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3786 Don't set remote_translate_xfer_address.
3787 (avr_io_reg_read_command): Remove commented out debug printf.
3788 Wrap a long line.
3789
57bc6122
TR
37902003-06-14 Theodore A. Roth <troth@openavr.org>
3791
3792 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3793 causes gdb to seg fault.
3794
eb01fc62
DJ
37952003-06-14 Daniel Jacobowitz <drow@mvista.com>
3796
3797 * sparc-nat.c (fetch_inferior_registers): Correct
3798 a reference to "registers".
3799
3b3e6bee
DJ
38002003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3801
3802 * Makefile.in (exc_request_U_h): Define
3803 (exc_request_S_h): Likewise.
3804 (msg_reply_S_h): Likewise.
3805 (msg_U_h): Likewise.
3806 (notify_S_h): Likewise.
3807 (process_reply_S_h): Likewise.
3808 (gnu-nat.o): Depend on gdb_obstack_h
3809 * gnu-nat.c: Include "gdb_obstack.h".
3810
b8de8283
AC
38112003-06-13 Andrew Cagney <cagney@redhat.com>
3812
3813 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3814 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3815
f3be58bc
AC
38162003-06-13 Andrew Cagney <cagney@redhat.com>
3817
3818 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3819 when deprecated REGISTER macros can be deleted.
3820 * gdbarch.h, gdbarch.c: Re-generate.
3821
4c0122c8
JB
38222003-06-13 Jim Blandy <jimb@redhat.com>
3823
3824 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3825 Linux entry point symbols for _dl_debug_state, too.
3826
3e210248
AC
38272003-06-13 Andrew Cagney <cagney@redhat.com>
3828
3829 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3830 available, do not use the FP register, and always save the TOS.
3831 * dummy-frame.c (dummy_frame_this_id): Do not assert
3832 SAVE_DUMMY_FRAME_TOS.
3833 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3834 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3835 (i386_push_dummy_call): Add 8 to the returned SP.
3836 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3837 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3838 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3839 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3840 (x86_64_push_dummy_call): Return "sp + 16".
3841 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3842 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3843 save_dummy_frame_tos.
3844
0b65af49
JB
38452003-06-13 Jim Blandy <jimb@redhat.com>
3846
3847 * frv-tdep.c (frv_use_struct_convention): Delete static
3848 declaration for function deleted in my change of 2003-06-12.
3849
4ea2465e
TR
38502003-06-13 Theodore A. Roth <troth@openavr.org>
3851
3852 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3853 (avr_pointer_to_address): Shift code addrs left 1 bit.
3854 (avr_convert_from_func_ptr_addr): Delete function since operation is
3855 better handled by avr_address_to_pointer and avr_pointer_to_address.
3856 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3857
1581182a
MK
38582003-06-13 Mark Kettenis <kettenis@gnu.org>
3859
3860 From Kelley Cook <kelleycook@wideopenwest.com>:
3861 * configure.host: Accept i[34567]86 variants.
3862 * configure.tgt: Likewise.
3863 * nlm/configure.in: Likewise.
3864 * nlm/configure: Regenerated.
3865
7aa1783e
RE
38662003-06-13 Richard Earnshaw <rearnsha@arm.com>
3867
3868 * arm-tdep.c (solib-svr4.h): Dont' include it.
3869 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3870 * arm-linux-tdep.c: ... here. Make static.
3871 (arm_linux_init_abi): Register it.
3872 (solib-svr4.h): Include it.
3873 * Makefile.in: Update dependencies.
3874 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3875 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3876
0261a0d0
CV
38772003-06-13 Corinna Vinschen <vinschen@redhat.com>
3878
3879 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3880 indicate registers used for return values.
3881 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3882 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3883 members.
3884 (h8300_init_extra_frame_info): Ditto.
3885 (h8300_frame_locals_address): Removed.
3886 (h8300_frame_args_address): Removed.
3887 (h8300_extract_return_value): Use new regcache structure. Only care
3888 for 16 bit CPUs.
3889 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3890 (h8300_store_return_value): Use new regcache structure. Only care
3891 for 16 bit CPUs.
3892 (h8300h_store_return_value): Same function for 32 bit CPUs.
3893 (h8300_store_struct_return): Removed.
3894 (h8300_extract_struct_value_address): Use new regcache structure.
3895 (h8300h_extract_struct_value_address): Removed.
3896 (h8300_push_dummy_code): New function.
3897 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3898 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3899 set_gdbarch_store_return_value architecture dependent.
3900 Call set_gdbarch_push_dummy_code and
3901 set_gdbarch_extract_struct_value_address.
3902 Remove calls to set_gdbarch_frame_args_address,
3903 set_gdbarch_frame_locals_address,
3904 set_gdbarch_deprecated_store_struct_return,
3905 set_gdbarch_deprecated_extract_return_value,
3906 set_gdbarch_deprecated_extract_struct_value_address,
3907 set_gdbarch_deprecated_call_dummy_words and
3908 set_gdbarch_deprecated_sizeof_call_dummy_words.
3909
055c394a
CV
39102003-06-13 Corinna Vinschen <vinschen@redhat.com>
3911
3912 * h8300-tdep.c (h8300_register_byte): Remove.
3913 (h8300h_register_byte): Remove.
3914 (h8300_register_virtual_type): Remove. Substitute by...
3915 (h8300_register_type): New function.
3916 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3917 (h8300h_extract_struct_value_address): Ditto.
3918 (h8300_gdbarch_init): Drop calls to
3919 set_gdbarch_deprecated_register_byte and
3920 set_gdbarch_deprecated_register_virtual_type.
3921 Add call to set_gdbarch_register_type.
3922
9c04cab7
AC
39232003-06-13 Andrew Cagney <cagney@redhat.com>
3924
3925 * gdbarch.sh: Update comments on registers.
3926 (deprecated_register_byte): Rename register_byte.
3927 (deprecated_register_raw_size): Rename register_raw_size.
3928 (deprecated_register_virtual_size): Rename register_virtual_size.
3929 (deprecated_register_virtual_type): Rename register_virtual_type.
3930 * gdbarch.h, gdbarch.c: Re-generate.
3931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3932 * vax-tdep.c (vax_gdbarch_init): Update.
3933 * v850-tdep.c (v850_gdbarch_init): Update.
3934 * sparc-tdep.c (sparc_gdbarch_init): Update.
3935 * sh-tdep.c (sh_gdbarch_init): Update.
3936 * s390-tdep.c (s390_gdbarch_init): Update.
3937 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3938 * ns32k-tdep.c: Update.
3939 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3940 * mips-tdep.c (mips_gdbarch_init): Update.
3941 * mcore-tdep.c (mcore_gdbarch_init): Update.
3942 * m68k-tdep.c (m68k_gdbarch_init): Update.
3943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3944 * ia64-tdep.c (ia64_gdbarch_init): Update.
3945 * hppa-tdep.c (hppa_gdbarch_init): Update.
3946 * h8300-tdep.c (h8300_gdbarch_init): Update.
3947 * frv-tdep.c (frv_gdbarch_init): Update.
3948 * cris-tdep.c (cris_gdbarch_init): Update.
3949 * avr-tdep.c (avr_gdbarch_init): Update.
3950 * alpha-tdep.c (alpha_gdbarch_init): Update.
3951 * arm-tdep.c (arm_gdbarch_init): Update.
3952
b060cbea
AC
39532003-06-13 Andrew Cagney <cagney@redhat.com>
3954
3955 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3956 mips_o32_use_struct_convention with always_use_struct_convention.
3957
0fc9922a
DC
39582003-06-12 David Carlton <carlton@kealia.com>
3959
3960 * cp-namespace.c (cp_set_block_scope): Comment out
3961 processing_has_namespace_info branch.
3962
1fd35568
JB
39632003-06-12 Jim Blandy <jimb@redhat.com>
3964
f470a70a
JB
3965 Recognize and skip 64-bit PowerPC Linux linkage functions.
3966 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3967 insn_pattern, insns_match_pattern, d_field, ds_field): New
3968 functions, macros, and types for working with PPC instructions.
3969 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3970 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3971 ppc64_skip_trampoline_code): New functions, variables, and macros
3972 for recognizing and skipping linkage functions.
3973 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3974 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3975
49ff75ad
JB
3976 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3977 register offsets for both the 32- and 64-bit interfaces.
3978
bd918c83
JB
3979 Actually finish the job started by my change of 2003-05-29.
3980 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3981 other #definition of this.
3982 (ppc_linux_skip_trampoline_code): Remove declaration.
3983 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3984 static.
3985 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3986 method for GDBARCH.
3987
3988 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3989 'long' on ppc64-*-linux*.
3990
f8c59253
JB
3991 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3992 isn't #defined, assume the register doesn't exist: act as if
3993 tdep->ppc_mq_regnum were -1.
3994
8fbb30b1
JB
3995 * configure.host, configure.tgt: Add entries for
3996 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3997 powerpc/linux.mt.
3998 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3999 New files.
4000
1fd35568
JB
4001 * arch-utils.c (always_use_struct_convention): New function.
4002 * arch-utils.h (always_use_struct_convention): New prototype.
4003 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4004 (alpha_gdbarch_init): Register always_use_struct_convention,
4005 instead of alpha_use_struct_convention.
4006 * cris-tdep.c (cris_use_struct_convention): Delete.
4007 (cris_gdbarch_init): Register always_use_struct_convention,
4008 instead of cris_use_struct_convention.
4009 * frv-tdep.c (frv_use_struct_convention): Delete.
4010 (frv_gdbarch_init): Register always_use_struct_convention,
4011 instead of frv_use_struct_convention.
4012 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4013 (h8300_gdbarch_init): Register always_use_struct_convention,
4014 instead of h8300_use_struct_convention.
e3305dd9 4015 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4016 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4017 instead of mips_o32_use_struct_convention.
4018
e14e6e9c
AC
40192003-06-12 Andrew Cagney <cagney@redhat.com>
4020
4021 * wince.c: Include "mips-tdep.h".
4022 * mips-tdep.h (mips_next_pc): Declare.
4023 * mcore-tdep.c: Make more local functions static.
4024 * Makefile.in (wince.o): Update dependencies.
4025
2335f48e
DC
40262003-06-12 David Carlton <carlton@kealia.com>
4027
4028 * symtab.c (lookup_symbol_aux_minsyms): Replace
4029 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4030 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4031 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4032 SYMBOL_NATURAL_NAME.
4033
f70a7d61
AS
40342003-06-12 Andreas Schwab <schwab@suse.de>
4035
4036 * Makefile.in (tuiDisassem.o): Update dependencies.
4037
b6429628
DC
40382003-06-12 David Carlton <carlton@bactrian.org>
4039
4040 * symtab.h: Delete declaration of make_symbol_overload_list.
4041 Add declaration of lookup_partial_symbol.
4042 * symtab.c (remove_params): Move to cp-support.c.
4043 (overload_list_add_symbol, make_symbol_overload_list)
4044 (sym_return_val_size, sym_return_val_index): Ditto.
4045 (lookup_partial_symbol): Make extern.
4046 * cp-support.h: Add declaration of make_symbol_overload_list.
4047 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4048 symtab.h, and block.h.
4049 (remove_params): Move here from symtab.c.
4050 (overload_list_add_symbol, make_symbol_overload_list)
4051 (sym_return_val_size, sym_return_val_index): Ditto.
4052 * valops.c: Include cp-support.h.
4053 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4054 frame_h, and block_h.
4055 (valops.o): Depend on cp_support_h.
4056
084edea5
CV
40572003-06-12 Corinna Vinschen <vinschen@redhat.com>
4058
4059 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4060 substitute by NUM_REGS throughout.
4061 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4062 (h8300s_register_name): New function for H8S registers.
4063 (h8300sx_register_name): Ditto for H8SX registers.
4064 (h8300_print_register): Revise register printing, avoid depending
4065 on 32 bit long.
0261a0d0 4066 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4067 (h8300h_register_byte): New function for any other architecture.
4068 (h8300_register_raw_size): Remove.
4069 (h8300_register_virtual_type): Revise to return actually useful
4070 type.
4071 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4072 (h8300h_extract_struct_value_address): New function for any other
4073 architecture.
4074 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4075 set_gdbarch_register_name, set_gdbarch_register_byte,
4076 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4077 Remove calls to set_gdbarch_deprecated_register_size,
4078 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4079 set_gdbarch_deprecated_max_register_raw_size,
4080 set_gdbarch_register_virtual_size and
4081 set_gdbarch_deprecated_max_register_virtual_size entirely.
4082 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4083 set_gdbarch_long_double_bit.
4084
06194148
JJ
40852003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4086
8ffd9b1b
AJ
4087 * doublest.c (convert_doublest_to_floatformat): When dealing
4088 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4089 processing a full 32 bits of mantissa.
4090
de4f826b
DC
40912003-06-11 David Carlton <carlton@bactrian.org>
4092
4093 * dictionary.h: New.
4094 * dictionary.c: New.
4095 * block.h: Add opaque declaration for struct dictionary.
4096 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4097 'sym' members.
4098 (BLOCK_DICT): New macro.
4099 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4100 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4101 BLOCK_SHOULD_SORT.
4102 (ALL_BLOCK_SYMBOLS): Update definition.
4103 * Makefile.in (SFILES): Add dictionary.c.
4104 (dictionary_h): New.
4105 (COMMON_OBS): Add dictionary.o.
4106 (dictionary.o): New.
4107 (ada-lang.o): Depend on dictionary_h.
4108 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4109 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4110 (mi-cmd-stack.o): Ditto.
4111 (gdbtk-cmds.o): Update dependencies.
4112 (gdbtk-stack.o): Ditto.
4113 * ada-lang.c: Include dictionary.h.
4114 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4115 (fill_in_ada_prototype, debug_print_block): Ditto.
4116 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4117 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4118 'is_sorted'.
4119 * mdebugread.c: Include dictionary.h.
4120 (struct parse_stack): Delete 'maxsyms' member.
4121 (parse_symbol): Update calls to new_block. Delete calls to
4122 shrink_block. Use dictionary methods.
4123 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4124 Update calls to new_symtab. Don't maintain maxsyms data.
4125 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4126 (add_symbol): Just call dict_add_symbol.
4127 (new_symtab): Delete 'maxsyms' argument.
4128 (new_symtab): Update calls to new_block.
4129 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4130 (shrink_block): Delete function.
4131 (fixup_sigtramp): Update call to new_block. Add symbol via
4132 dict_add_symbol.
4133 * jv-lang.c: Include dictionary.h.
4134 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4135 appropriately. Set class_symtab->free_func. Make sure the
4136 blockvector is big enough to hold two blocks.
4137 (add_class_symtab_symbol): Use dictionary methods.
4138 (free_class_block): New function.
4139 (type_from_class): Replace explicit iteration by
4140 ALL_BLOCK_SYMBOLS.
4141 * symtab.h (struct symtab): Replace 'free_ptr' method by
4142 'free_func'.
4143 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4144 sort_symtab_syms.
4145 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4146 sort_symtab_syms.
4147 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4148 Include dictionary.h.
4149 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4150 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4151 sort_symtab_syms.
4152 * objfiles.c: Include dictionary.h.
4153 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4154 * buildsym.c: Include dictionary.h.
4155 (finish_block): Use dictionary methods.
4156 (end_symtab): Set free_func to NULL, not free_ptr.
4157 * tracepoint.c: Include dictionary.h.
4158 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4159 (scope_info): Ditto.
4160 * stack.c: Include dictionary.h.
4161 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4162 (print_block_frame_labels, print_frame_arg_vars)
4163 (print_frame_args): Ditto.
4164 * symmisc.c (free_symtab_block): Use dictionary methods.
4165 (dump_symtab): Ditto.
4166 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4167 Include dictionary.h.
4168 * symfile.h: Delete declarations of sort_block_syms,
4169 sort_symtab_syms.
4170 * symfile.c (sort_block_syms): Delete.
4171 (sort_symtab_syms): Delete.
4172 * symtab.c: Include dictionary.h.
4173 (lookup_block_symbol): Use dictionary iterators.
4174 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4175 (search_symbols, make_symbol_completion_list): Ditto.
4176 (make_symbol_overload_list): Ditto.
4177 * valops.c (value_of_local): Use dict_empty.
4178 Include dictionary.h.
4179
a31f978c
JB
41802003-06-11 J. Brobecker <brobecker@gnat.com>
4181
4182 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4183
526e70c0
DC
41842003-06-11 David Carlton <carlton@bactrian.org>
4185
4186 * block.h (BLOCK_SHOULD_SORT): Delete.
4187 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4188 blocks.
4189 * ada-lang.c (ada_add_block_symbols): Ditto.
4190 * symfile.c (sort_block_syms): Delete.
4191 (sort_symtab_syms): Ditto.
4192 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4193 declarations.
4194 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4195 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4196 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4197 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4198 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4199 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4200 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4201
33c08150
JJ
42022003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4203
8ffd9b1b 4204 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4205 bits to 128.
4206
781a750d
AC
42072003-06-11 Andrew Cagney <cagney@redhat.com>
4208
4209 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4210 REGISTER_CONVERTIBLE.
4211 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4212 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4213 * gdbarch.h, gdbarch.c: Re-generate.
4214 * arch-utils.h (deprecated_register_convertible_not): Rename
4215 generic_register_convertible_not.
4216 * arch-utils.c (deprecated_register_convertible_not): Rename
4217 generic_register_convertible.
4218 (legacy_convert_register_p, legacy_register_to_value): Update.
4219 * sh-tdep.c (sh64_push_arguments): Update.
4220 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4221 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4222 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4223 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4224 * arch-utils.c (legacy_value_to_register): Update.
4225 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4226 (rs6000_register_convert_to_raw): Make parameter "from" const.
4227 * mips-tdep.c (mips_gdbarch_init): Update.
4228 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4229 * infcmd.c (default_print_registers_info): Update.
4230 * ia64-tdep.c (ia64_gdbarch_init): Update.
4231 (ia64_register_convert_to_raw): Make parameter "from" const.
4232 * i386-tdep.c (i386_gdbarch_init): Update.
4233 (i386_register_convert_to_raw): Update.
4234
cd90e54f
AC
42352003-06-11 Andrew Cagney <cagney@redhat.com>
4236
4237 * remote-fileio.c: Include "remote-fileio.h".
4238 * Makefile.in (remote-fileio.o): Update dependencies.
4239 (remote_fileio_h): Fix typo.
4240
a78f21af
AC
42412003-06-11 Andrew Cagney <cagney@redhat.com>
4242
4243 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4244 (xstormy16_save_dummy_frame_tos): Make static.
4245 (_initialize_xstormy16_tdep): Add declaration.
4246 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4247 * v850-tdep.c: Make local functions static.
4248 (_initialize_v850_tdep): Add declaration.
4249 * sparc-tdep.c: Make local functions static.
4250 (_initialize_sparc_tdep): Add declaration.
4251 * sh-tdep.c: Make local functions static.
4252 (_initialize_sh_tdep): Add declaration.
4253 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4254 * s390-tdep.c: Make local functions static.
4255 (_initialize_s390_tdep): Add declaration.
4256 * dbxread.c (find_stab_function_addr): Make static.
4257 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4258 * ocd.c (_initialize_remote_ocd): Add declaration.
4259 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4260 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4261 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4262 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4263 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4264 * remote-array.c (_initialize_array): Add declaration.
4265 (_initialize_remote_monitors): Add declaration.
4266 * remote-mips.c: Make local functions static.
4267 (_initialize_remote_mips): Add declaration.
4268 * mcore-tdep.c: Make all local functions static.
4269 (_initialize_mcore_tdep): Add declaration.
4270 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4271 * abug-rom.c (_initialize_abug_rom): Add declaration.
4272 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4273 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4274 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4275 * remote-est.c (_initialize_est): Add declaration.
4276 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4277 (m68hc11_call_dummy_address): Make static.
4278 * ia64-tdep.c: Make local functions static.
4279 (_initialize_ia64_tdep): Add declaration.
4280 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4281 * monitor.c (monitor_wait_filter): Make static.
4282 (_initialize_remote_monitors): Add declaration.
4283 * remote-hms.c (_initialize_remote_hms): Add declaration.
4284 * remote-e7000.c (fetch_regs_from_dump): Make static.
4285 (expect_n): Make static.
4286 (_initialize_remote_e7000): Add declaration.
4287 * ser-e7kpc.c: Always include "defs.h".
4288 (_initialize_ser_e7000pc): Add declaration.
4289 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4290 * cris-tdep.c: Make all but one function static.
4291 (_initialize_cris_tdep): Add declaration.
4292 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4293 * solib.c (update_solib_list): Make static.
4294 (_initialize_solib): Add declaration.
4295 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4296 (_initialize_avr_tdep): Add declaration.
4297 * remote-rdi.c (voiddummy): Make static.
4298 (_initialize_remote_rdi): Add declaration.
4299 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4300 * remote-rdp.c (send_rdp): Make static.
4301 (_initialize_remote_rdp): Add declaration.
4302 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4303
cbcdb1f5
CV
43042003-06-11 Corinna Vinschen <vinschen@redhat.com>
4305
4306 * remote-fileio.c: Make ari happy.
4307
a191ea8d
JB
43082003-06-10 J. Brobecker <brobecker@gnat.com>
4309
4310 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4311 fetching the trailing bytes of the buffer we are about to write.
4312
0ef75e11
AC
43132003-06-10 Andrew Cagney <cagney@redhat.com>
4314
4315 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4316 * Makefile.in (remote-fileio.o): Update dependencies.
4317 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4318 include <setjmp.h>, or <sys/types.h> conditional on USG.
4319 (remote_fio_jmp_buf): Delete global variable.
4320
449092f6 43212003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4322 Martin M. Hunt <hunt@redhat.com>
449092f6 4323
559fa028
AC
4324 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4325 (SFILES): Add remote-fileio.c.
4326 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4327 dependencies for building remote.o.
449092f6
CV
4328 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4329 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4330 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4331 static storage class.
4332 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4333 'F' packet.
4334 (_initialize_remote): Call initialize_remote_fileio().
4335 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4336 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4337 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4338 (captured_main): Initialize new ui_files.
4339 * ui-file.c: Add read and fgets input functions.
4340 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4341 (null_file_read): New function.
4342 (ui_file_read): New function.
4343 (set_ui_file_read): New function.
4344 (stdio_file_read): New function.
4345 * ui-file.h: New type ui_file_read_ftype.
4346 (set_ui_file_read): Declare.
4347 (ui_file_read): Declare.
4348
248de703
AC
43492003-06-09 Andrew Cagney <cagney@redhat.com>
4350
4351 * frame.h (deprecated_unwind_get_saved_register): Rename
4352 generic_unwind_get_saved_register, update comments.
4353 * mips-tdep.c (mips_get_saved_register): Update.
4354 * frame.c (deprecated_unwind_get_saved_register): Update.
4355
0ed8aa57
AC
43562003-06-09 Andrew Cagney <cagney@redhat.com>
4357
4358 * vax-tdep.c (vax_frame_locals_address): Delete function.
4359 (vax_gdbarch_init): Do not set frame_locals_address.
4360 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4361 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4362 * s390-tdep.c (s390_frame_args_address): Delete function.
4363 (s390_gdbarch_init): Do not set frame_args_address or
4364 frame_locals_address.
4365 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4366 (ns32k_gdbarch_init): Do not set frame_locals_address.
4367 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4368 (hppa_frame_locals_address): Delete function.
4369 (hppa_gdbarch_init): Do not set frame_args_address, or
4370 frame_locals_address.
4371 * arm-tdep.c (arm_frame_args_address): Delete.
4372 (arm_frame_locals_address): Delete.
4373 (arm_gdbarch_init): Do not set frame_args_address, or
4374 frame_locals_address.
4375
983a287a
AC
43762003-06-09 Andrew Cagney <cagney@redhat.com>
4377
4378 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4379 * gdbarch.h, gdbarch.c: Re-generate.
4380 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4381 * arch-utils.c (frame_num_args_unknown): Delete function.
4382 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4383 (frame_info): Use FRAME_NUM_ARGS_P.
4384 * arm-tdep.c (arm_frame_num_args): Delete function.
4385 (arm_gdbarch_init): Do not set frame_num_args.
4386 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4387 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4388 (hppa_gdbarch_init): Do not set frame_num_args.
4389 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4390 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4391 frame_num_args to default frame_num_args_unknown.
4392 * v850-tdep.c (v850_gdbarch_init): Ditto.
4393 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4394 * sh-tdep.c (sh_gdbarch_init): Ditto.
4395 * s390-tdep.c (s390_gdbarch_init): Ditto.
4396 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4397 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4398 * mips-tdep.c (mips_gdbarch_init): Ditto.
4399 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4400 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4402 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4403 * i386-tdep.c (i386_gdbarch_init): Ditto.
4404 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4405 * frv-tdep.c (frv_gdbarch_init): Ditto.
4406 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4407 * cris-tdep.c (cris_gdbarch_init): Ditto.
4408 * avr-tdep.c (avr_gdbarch_init): Ditto.
4409 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4410
8d3b0994
AC
44112003-06-09 Andrew Cagney <cagney@redhat.com>
4412
4413 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4414 (print_frame_args): Moved to "stack.c".
4415 * stack.c: Include "gdb_assert.h".
4416 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4417 (print_frame_args): Moved from "printcmd.c".
4418 * frame.h (print_frame_args): Delete declaration.
4419 * Makefile.in (stack.o): Update dependencies.
4420
25e3a86b
AC
44212003-06-08 Andrew Cagney <cagney@redhat.com>
4422
4423 * frame.c (get_prev_frame): Remove reference to
4424 frame_args_address_correct in comments.
4425 * frame-base.c (default_frame_args_address): Delete code
4426 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4427 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4428 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4429 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4430 (vax_frame_args_address_correct): Delete declaration.
4431
a9e5fdc2
AC
44322003-06-08 Andrew Cagney <cagney@redhat.com>
4433
4434 * gdbarch.sh (UNWIND_SP): Add.
4435 * gdbarch.h, gdbarch.c: Re-generate.
4436 * frame.c (frame_sp_unwind): New function.
4437 (get_frame_sp): New function.
4438 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4439 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4440 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4441 value.
4442 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4443 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4444
8983bd83
AC
44452003-06-08 Andrew Cagney <cagney@redhat.com>
4446
7fec2c59
AC
4447 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4448 REMOTE_BREAKPOINT.
4449 * remote.c: Update.
4450 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4451 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4452 * config/m68k/tm-sun3.h: Update.
4453 * config/m68k/tm-m68klynx.h: Update.
4454 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4455
8983bd83
AC
4456 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4457 trad_frame". Update comments.
4458 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4459 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4460 (trad_frame_register_value, trad_frame_prev_register): Update.
4461
b9362cc7
AC
44622003-06-08 Andrew Cagney <cagney@redhat.com>
4463
4464 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4465 from GCC's acinclude.m4.
4466 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4467 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4468 * main.c (error_init): Delete declaration.
4469 * defs.h (error_init): Declare.
4470 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4471 (rs6000_convert_from_func_ptr_addr): Make static.
4472 (_initialize_rs6000_tdep): Add declaration.
4473 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4474 (show_commands, set_verbose, show_history): Delete declaration.
4475 * top.h (set_verbose): Add declaration.
4476 (show_history, set_history, show_commands): Add declaration.
4477 (do_restore_instream_cleanup): Add declaration.
4478 * objc-lang.c (specialcmp): Make static.
4479 (print_object_command): Make static.
4480 (find_objc_msgsend): Make static.
4481 (find_objc_msgcall_submethod_helper): Make static.
4482 (find_objc_msgcall_submethod): Make static.
4483 (_initialize_objc_language): Add declaration.
4484 (find_implementation_from_class): Make static.
4485 (find_implementation): Make static.
4486 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4487 * objc-lang.h (lookup_struct_typedef): Add declaration.
4488 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4489 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4490 (do_restore_user_call_depth): Make static.
4491 (do_restore_instream_cleanup): Delete declaration.
4492 (dont_repeat): Delete declaration.
4493 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4494 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4495 * reggroups.c (_initialize_reggroup): Add declaration.
4496 * cp-support.c (_initialize_cp_support): Add declaration.
4497 * cp-abi.c (_initialize_cp_abi): Add declaration.
4498 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4499 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4500 (_initialize_gnu_v3_abi): Add declaration.
4501 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4502 (_initialize_gnu_v2_abi): Add declaration.
4503 * frame-base.c (_initialize_frame_base): Add declaration.
4504 * doublest.c (floatformat_from_length): Make static.
4505 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4506 * frame.c (create_sentinel_frame): Make static.
4507 (_initialize_frame): Add declaration.
4508 * top.c (do_catch_errors): Make static.
4509 (gdb_rl_operate_and_get_next_completion): Make static.
4510 * typeprint.c: Include "typeprint.h".
4511 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4512 (sentinel_frame_this_id): Make static.
4513 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4514 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4515 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4516 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4517 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4518 * maint.c (maintenance_print_architecture): Make static.
4519 * signals/signals.c (_initialize_signals): Add declaration.
4520 * std-regs.c (_initialize_frame_reg): Add declaration.
4521 * jv-exp.y (push_variable): ISO C definition.
4522 (push_qualified_expression_name): Ditto.
4523 * memattr.c (_initialize_mem): Add declaration.
4524 * remote.c (remote_check_watch_resources): Make static.
4525 (remote_stopped_by_watchpoint): Make static.
4526 (remote_stopped_data_address): Make static.
4527 * d10v-tdep.c (nr_dmap_regs): Make static.
4528 (a0_regnum): Make static.
4529 (d10v_frame_unwind_cache): Make static.
4530 (d10v_frame_p): Make static.
4531 * osabi.c (show_osabi): Make static.
4532 (_initialize_gdb_osabi): Add extern declaration.
4533 * gdbtypes.c (make_qualified_type): Make static.
4534 (safe_parse_type): Make static.
4535 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4536 * macrotab.c (macro_bcache_free): Make static.
4537 * interps.c (interp_set_quiet): Make static.
4538 (interpreter_exec_cmd): Make static.
4539 * stack.h (select_frame_command): New file.
4540 * stack.c: Include "stack.h".
4541 (select_frame_command_wrapper): Delete function.
4542 (select_frame_command): Make global.
4543 * infcall.c: Include "infcall.h".
4544 * linespec.c: Include "linespec.h".
4545 * symfile.c (sections_overlap): Make static.
4546 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4547 * charset.c (_initialize_charset): Add missing prototype.
4548 * regcache.c (init_legacy_regcache_descr): Make static.
4549 (do_regcache_xfree): Make static.
4550 (regcache_xfer_part): Make static.
4551 (_initialize_regcache): Add missing prototype.
4552 * breakpoint.c (parse_breakpoint_sals): Make static.
4553 (breakpoint_sals_to_pc): Make static.
4554 * interps.h (clear_interpreter_hooks): ISO C declaration.
4555 * Makefile.in (stack_h): Define.
4556 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4557 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4558
a0f267c7
AC
45592003-06-08 Andrew Cagney <cagney@redhat.com>
4560
4561 * Makefile.in (d10v-tdep.o): Update dependencies.
4562 (SFILES): Add trad-frame.c.
4563 (trad_frame_h): Define.
4564 (COMMON_OBS): Add trad-frame.o.
4565 (trad-frame.o): Specify dependencies.
4566 * d10v-tdep.c: Include "trad-frame.h".
4567 (saved_regs_unwinder): Delete function.
4568 (d10v_frame_prev_register): Use trad_frame_prev_register.
4569 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4570 trad_frame", delete "regs" and "prev_sp".
4571 (prologue_find_regs): Use trad-frame.
4572 * trad-frame.h, trad-frame.c: New files.
4573
4538b4f4
MK
45742003-06-08 Mark Kettenis <kettenis@gnu.org>
4575
4576 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4577
a0273b2f
AF
45782003-06-07 Adam Fedor <fedor@gnu.org>
4579
4580 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4581 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4582 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4583 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4584 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4585 Use it.
4586
3a6c3343
AC
45872003-06-07 Andrew Cagney <cagney@redhat.com>
4588
4589 * symfile.h: Re-indent, clean up comments.
4590
b46e02f6
AC
45912003-06-07 Andrew Cagney <cagney@redhat.com>
4592
4593 * inferior.h (deprecated_write_sp): Replace
4594 generic_target_write_sp.
4595 * regcache.c (deprecated_write_sp): Replace
4596 generic_target_write_sp.
4597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4598 * vax-tdep.c (vax_gdbarch_init): Update.
4599 * v850-tdep.c (v850_gdbarch_init): Update.
4600 * sparc-tdep.c (sparc_gdbarch_init): Update.
4601 * sh-tdep.c (sh_gdbarch_init): Update.
4602 * s390-tdep.c (s390_gdbarch_init): Update.
4603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4604 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4605 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4606 * mcore-tdep.c (mcore_gdbarch_init): Update.
4607 * m68k-tdep.c (m68k_gdbarch_init): Update.
4608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4609 * ia64-tdep.c (ia64_gdbarch_init): Update.
4610 * h8300-tdep.c (h8300_gdbarch_init): Update.
4611 * frv-tdep.c (frv_gdbarch_init): Update.
4612 * cris-tdep.c (cris_gdbarch_init): Update.
4613 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4614
a42e117c
AC
46152003-06-07 Andrew Cagney <cagney@redhat.com>
4616
4617 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4618 Assert that PC_REGNUM is valid.
4619 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4620
bd1ce8ba
AC
46212003-06-07 Andrew Cagney <cagney@redhat.com>
4622
4623 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4624 * gdbarch.h, gdbarch.c: Regenerate.
4625 * mn10300-tdep.c: Include "gdb_assert.h".
4626 (mn10300_read_fp): New function.
4627 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4628 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4629 * ia64-tdep.c: Include "gdb_assert.h".
4630 (ia64_read_fp): New function.
4631 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4632 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4633 * regcache.c (generic_target_read_sp): Delete function.
4634 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4635 * inferior.h (generic_target_read_sp): Delete declaration.
4636 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4637 generic_target_read_sp.
4638 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4639 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4640 * sh-tdep.c (sh_gdbarch_init): Ditto.
4641 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4642 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4643
ec5cbaec
AC
46442003-06-07 Andrew Cagney <cagney@redhat.com>
4645
4646 * gdbarch.sh: Comment each field of startup_gdbarch.
4647 * gdbarch.h, gdbarch.c: Re-generate.
4648
cde9ea48
AC
46492003-06-07 Andrew Cagney <cagney@redhat.com>
4650
4651 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4652 * gdbarch.h, gdbarch.c: Re-generate.
4653 * regcache.c: Update comments on read_pc et.al.
4654 (generic_target_read_pc): Delete function.
4655 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4656 * inferior.h (generic_target_read_pc): Delete declaration.
4657 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4658 generic_target_read_pc.
4659 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4660 * sh-tdep.c (sh_gdbarch_init): Ditto.
4661 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4663
9a90a780
AC
46642003-06-07 Andrew Cagney <cagney@redhat.com>
4665
4666 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4667 "index" with "special_local_sect". Use strcmp instead of STREQ.
4668 Append period to coments.
4669
a39a16c4
MM
46702003-06-06 Mark Mitchell <mark@codesourcery.com>
4671
4672 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4673 (elfstab_offset_sections): Likewise.
4674 * gdb-stabs.h (stab_section_info): Likewise.
4675 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4676 * objfiles.c (objfile_relocate): Likewise.
4677 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4678 * remote.c (get_offsets): Likewise.
4679 (remote_cisco_objfile_relocate): Likewise.
4680 * somread.c (som_symfile_offsets): Likewise.
4681 * symfile.c (alloc_section_addr_info): New function.
4682 (build_section_addr_info_from_section_tab): Use it.
4683 (free_section_addr_info): Adjust.
4684 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4685 (syms_from_objfile): Allocate local_addr dynamically.
4686 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4687 dynamically.
4688 (add_symbol_file_command): Allocate sect_opts dynamically.
4689 (reread_symbols): Avoid use of SECT_OFF_MAX.
4690 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4691 (alloc_section_addr_info): Declare it.
4692 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4693 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4694 dynamically.
4695 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4696
20c6c2f8
AC
46972003-06-06 Andrew Cagney <cagney@redhat.com>
4698
4699 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4700 (d10v_frame_unwind_cache): Do not set "return_pc".
4701
884a26c8
MS
47022003-06-06 Michael Snyder <msnyder@redhat.com>
4703
4704 * h8300-tdep.c: Make tidy (long lines).
4705
088ce440
ML
47062003-06-06 Michal Ludvig <mludvig@suse.cz>
4707
8ffd9b1b 4708 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4709 to regcache_collect().
4710
7d773d96
JB
47112003-06-05 J. Brobecker <brobecker@gnat.com>
4712
4713 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4714 pc_in_sigtramp multiarch method.
4715 (hppa_hpux_som_init_abi): Use it.
4716 (hppa_hpux_elf_init_abi): Likewise.
4717 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4718 macro has been multiarched.
4719 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4720 macro here, as hppa64 isn't multiarched yet.
4721
1df6926e
AC
47222003-06-05 Andrew Cagney <cagney@redhat.com>
4723
4724 * Makefile.in (value_h): Add $(frame_h).
4725 * value.h: Include "frame.h".
4726 (struct value): Replace "frame_addr" with "frame_id".
4727 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4728 * values.c (allocate_value): Use VALUE_FRAME_ID.
4729 (value_copy): Use VALUE_FRAME_ID.
4730 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4731 * valops.c (value_assign): Update. Use frame_find_by_id.
4732
6b53acc6
ML
47332003-06-05 Michal Ludvig <mludvig@suse.cz>
4734
4735 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4736 in each pass.
4737
4d9850d3
JJ
47382003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4739
4740 * thread-db.c (check_event): For create/death event breakpoints,
4741 loop through all messages to ensure that we read the message
4742 corresponding to the breakpoint we are at.
4743
8efca6ba
MS
47442003-06-04 Michael Snyder <msnyder@redhat.com>
4745
4746 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4747
0912c7f2
MK
47482003-06-04 Mark Kettenis <kettenis@gnu.org>
4749
4750 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4751 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4752 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4753 when handling .eh_frame sections.
4754
4e370325
JB
47552003-06-04 J. Brobecker <brobecker@gnat.com>
4756
4757 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4758 prepare_to_proceed procedure instead of the hppa-specific one.
4759 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4760
b757528f 47612003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4762
b757528f
JJ
4763 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4764 * config.in: Regenerated.
4765 * configure.in: Add test for syscall function and check for
4766 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4767 * configure: Regenerated.
4768 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4769 <sys/syscall.h>.
4770 (kill_lwp): New function that uses tkill syscall or
4771 uses kill, depending on whether threading model is nptl or not.
4772 All callers of kill() changed to use kill_lwp().
4773 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4774 see if all threads have already exited in the nptl model.
4775 (stop_and_resume_callback): New callback function used by the
4776 lin_lwp_wait thread exit handling code.
4777 (stop_wait_callback): Check for threads already having exited and
4778 delete such threads fromt the lwp list when discovered.
4779 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4780
b757528f
JJ
4781 Roland McGrath <roland@redhat.com>
4782 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4783 nptl libthread_db.
4784
087779b1
RH
47852003-06-03 Richard Henderson <rth@redhat.com>
4786
b21fd293
RH
4787 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4788 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4789 (alpha_sigtramp_frame_prev_register): Likewise.
4790 (alpha_heuristic_frame_prev_register): Likewise.
4791 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4792
8ffd9b1b 4793 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4794 alpha-specific register id names.
4795 (alpha_mdebug_frame_unwind_cache): Likewise.
4796 (alpha_mdebug_frame_prev_register): Likewise.
4797
baa490c4
RH
47982003-06-03 Richard Henderson <rth@redhat.com>
4799
4800 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4801 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4802 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4803 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4804 unwind routines.
4805 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4806 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4807 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4808
4809 * alpha-linux-tdep.c: Remove unnecessary includes.
4810 * Makefile.in (alpha-linux-tdep.o): Update.
4811
48122003-06-03 Richard Henderson <rth@redhat.com>
4813
4814 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4815 (alphabsd_fill_fpreg): Likewise.
4816
f534e522
JB
48172003-06-03 J. Brobecker <brobecker@gnat.com>
4818
4819 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4820 references to struct frame_info fields by calls to the equivalent
4821 accessors. Necessary now that frame_info is opaque.
4822
4035536b
JB
48232003-06-03 J. Brobecker <brobecker@gnat.com>
4824
4825 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4826 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4827 structure, field no longer exists.
4828
0bd79c5c
JB
48292003-06-03 J. Brobecker <brobecker@gnat.com>
4830
4831 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4832 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4833
37bb6d9f
JB
48342003-06-03 J. Brobecker <brobecker@gnat.com>
4835
4836 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4837 references to struct frame_info fields by calls to the equivalent
4838 accessors. Necessary now that frame_info is opaque.
4839
852ee05c
JB
48402003-06-03 J. Brobecker <brobecker@gnat.com>
4841
4842 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4843 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4844 structure, field no longer exists.
4845
7d58c67d
TR
48462003-06-03 Theodore A. Roth <troth@openavr.org>
4847
8ffd9b1b 4848 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4849 accumulation of the size of all registers instead of blindly using
4850 DEPRECATED_REGISTER_BYTES.
4851
0a48e7e8
MS
48522003-06-03 Michael Snyder <msnyder@redhat.com>
4853
4854 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4855 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4856 for h8300sx.
4857
9798ab0d
JB
48582003-06-03 J. Brobecker <brobecker@gnat.com>
4859
4860 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4861 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4862
00b037e2
AC
48632003-06-03 Andrew Cagney <cagney@redhat.com>
4864
4865 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4866 (sparc_convert_to_raw): Delete function.
4867 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4868 register_convert_to_virtual.
4869
043b2f77
JJ
48702003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4871
4872 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4873 layer if not dealing with a statically-linked threaded program.
4874
f43caff8
KW
48752003-06-03 Kris Warkentin <kewarken@qnx.com>
4876
4877 * solib.c (solib_open): Update comment to reflect actual search order.
4878
ae1e7417
AC
48792003-06-03 Andrew Cagney <cagney@redhat.com>
4880
4881 * frame.c (get_frame_memory_signed): New function.
4882 (get_frame_memory, get_frame_memory_unsigned): New function.
4883 (get_frame_arch): New function.
4884 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4885 (get_frame_memory, get_frame_unsigned_memory): Declare.
4886 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4887 get_frame_memory_unsigned and get_frame_arch.
4888 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4889
cb123844
RG
48902003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4891
4892 * MAINTAINERS (write after approval): Add myself.
4893
1bb792e9
JB
48942003-06-03 Jim Blandy <jimb@redhat.com>
4895
4896 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4897 elements of gregset_t are 64 bits each, but access registers
4898 are still 32 bits, so they're packed two per gregset_t
4899 element. Unpack/pack them properly.
4900
aee8d8ba
DC
49012003-06-02 David Carlton <carlton@bactrian.org>
4902
4903 * linespec.c (find_methods): Break out code into
4904 add_matching_methods and add_constructors.
4905 (add_matching_methods): New.
4906 (add_constructors): Ditto.
4907
bf7488d2
AC
49082003-06-02 Andrew Cagney <cagney@redhat.com>
4909
bf7488d2
AC
4910 * sparc-tdep.c (sparc_print_registers): Delete call to
4911 REGISTER_CONVERTIBLE.
4912 (sparc_gdbarch_init): Do not set register_convertible.
4913 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4914 * frv-tdep.c (frv_gdbarch_init): Ditto.
4915 * cris-tdep.c (cris_gdbarch_init): Ditto.
4916
adedef68
EZ
49172003-06-02 Elena Zannoni <ezannoni@redhat.com>
4918
8ffd9b1b 4919 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4920 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4921 (syms_from_objfile): Ditto.
4922
650fcc91
AS
49232003-06-03 Andreas Schwab <schwab@suse.de>
4924
4925 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4926 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4927
df4a182b
RH
49282003-06-02 Richard Henderson <rth@redhat.com>
4929
4930 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4931 a member of all_reggroup.
4932
c483c494
RH
49332003-06-02 Richard Henderson <rth@redhat.com>
4934
4935 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4936 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4937 (alpha_lds, alpha_sts): New.
4938 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4939 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4940 restructure and fail for type sizes other than 4 or 8.
4941 (alpha_value_to_register): Similarly.
4942 (alpha_extract_return_value): Use alpha_sts.
4943 (alpha_store_return_value): Use alpha_lds.
4944 (alpha_gdbarch_init): Update hooks.
4945
b38b6be2
RH
49462003-06-02 Richard Henderson <rth@redhat.com>
4947
4948 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4949 regnum identifiers.
4950 (alpha_sigtramp_register_address): Likewise.
4951
98a8e1e5
RH
49522003-06-02 Richard Henderson <rth@redhat.com>
4953
4954 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4955 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4956 * alpha-tdep.h: Declare them.
4957
4958 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4959 Remove zerobuf. Don't error on UNIQUE.
4960 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4961 (ALPHA_REGSET_UNIQUE): Provide default.
4962 (supply_gregset): Use alpha_supply_int_regs.
4963 (fill_gregset): Use alpha_fill_int_regs.
4964 (supply_fpregset): Use alpha_supply_fp_regs.
4965 (fill_fpregset): Use alpha_fill_fp_regs.
4966 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4967 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4968 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4969 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4970 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4971 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4972
67dfac52
RH
49732003-06-02 Richard Henderson <rth@redhat.com>
4974
f75d70cc
RH
4975 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4976
67dfac52
RH
4977 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4978 (alpha_store_return_value): Likewise.
4979
0cf566ec
DC
49802003-06-02 David Carlton <carlton@math.stanford.edu>
4981
4982 * block.c (contained_in): Add 'const' to arguments.
4983 (block_function): Ditto.
4984 * block.h: Update declarations for block_function and
4985 contained_in.
4986
cdef89d0
DC
49872003-06-02 David Carlton <carlton@math.stanford.edu>
4988
4989 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4990 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4991 * p-valprint.c (pascal_val_print): Ditto.
4992 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4993
72667056
RH
49942003-06-02 Richard Henderson <rth@redhat.com>
4995
98a8e1e5
RH
4996 * alpha-tdep.c (alpha_push_dummy_call): Use
4997 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4998
8ffd9b1b 4999 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5000 sign-extension of 32-bit values.
5001 (alpha_store_return_value): Similarly.
0ede8eca 5002
98a8e1e5
RH
5003 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5004 (alpha_extract_return_value): Likewise.
5005 (alpha_store_return_value): Likewise.
7b5e1cb3 5006
98a8e1e5
RH
5007 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5008 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5009
98a8e1e5
RH
5010 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5011 (alpha_extract_struct_value_address): Likewise.
5012 (alpha_store_return_value): Likewise.
5013 (alpha_store_struct_return): Remove.
5014 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5015
98a8e1e5
RH
5016 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5017 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5018 macros where appropriate.
5019 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5020 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5021
98a8e1e5
RH
5022 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5023 for SP, GP; void_func_ptr for PC; non-language-specific types
5024 for all others.
5025 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5026
6dd77b81
RH
50272003-06-02 Richard Henderson <rth@redhat.com>
5028
5029 * top.h (lim_at_start): Declare.
5030 * main.c (captured_main): Set it.
5031 * top.c (lim_at_start): Define.
5032 (command_loop): Use it instead of &environ.
5033 * event-top.c (command_handler): Likewise.
5034
f4dbdb54
JT
50352003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5036
5037 * mipsnbsd-tdep.c: Update copyright years.
5038 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5039
8f285956
RH
50402003-06-01 Richard Henderson <rth@redhat.com>
5041
98a8e1e5
RH
5042 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5043 (alpha-linux-tdep.o): Update dependencies.
5044 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5045 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5046
615967cb
RH
50472003-06-01 Richard Henderson <rth@redhat.com>
5048
98a8e1e5
RH
5049 * alpha-tdep.c (alpha_register_reggroup_p): New.
5050 (alpha_gdbarch_init): Register it.
615967cb 5051
b59661bd
AC
50522003-06-02 Andrew Cagney <cagney@redhat.com>
5053
5054 * dwarfread.c: Eliminate "register"
5055 (decode_die_type): Eliminate assignment within "if".
5056 (struct_type, decode_array_element_type): Ditto.
5057 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5058 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5059 (decode_modified_type, completedieinfo): Ditto.
5060 * block.c: Eliminate "register".
5061 (blockvector_for_pc_sect): Eliminate assignment within "if".
5062 * cp-support.h (struct symbol): Opaque declaration.
5063 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5064
5ef165c2
RH
50652003-06-01 Richard Henderson <rth@redhat.com>
5066
98a8e1e5
RH
5067 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5068 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5069
143985b7
AF
50702003-06-01 Adam Fedor <fedor@gnu.org>
5071
5072 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5073 * gdbarch.[ch]: Regenerate.
5074 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5075 (hppa_gdbarch_init): Set it in the gdbarch vector.
5076 * i386-tdep.c (i386_fetch_pointer_argument): New
5077 (i386_gdbarch_init): Set it into gdbarch.
5078 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5079 (rs6000_gdbarch_init): Set it in gdbarch.
5080 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5081 (sparc_gdbarch_init): Set it in gdbarch.
5082
ae0167b9
AC
50832003-06-01 Andrew Cagney <cagney@redhat.com>
5084
7c0b4a20
AC
5085 * defs.h (extract_address): Delete declaration.
5086 * findvar.c (extract_address): Delete function.
5087 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5088 extract_address with the inline equivalent,
5089 extract_unsigned_integer.
5090 (xstormy16_extract_struct_value_address): Ditto.
5091 (xstormy16_pointer_to_address): Ditto.
5092 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5093 * v850-tdep.c (v850_push_arguments): Ditto.
5094 (v850_extract_return_value): Ditto.
5095 (v850_extract_struct_value_address): Ditto.
5096 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5097 (sparcnbsd_get_longjmp_target_64): Ditto.
5098 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5099 (get_longjmp_target): Ditto.
5100 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5101 (sh64_extract_struct_value_address): Ditto.
5102 (sh_push_arguments): Ditto.
5103 (sh64_push_arguments): Ditto.
5104 * remote-vxsparc.c (vx_read_register): Ditto.
5105 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5106 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5107 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5108 * mipsv4-nat.c (get_longjmp_target): Ditto.
5109 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5110 * mips-nat.c (get_longjmp_target): Ditto.
5111 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5112 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5113 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5114 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5115 * irix5-nat.c (get_longjmp_target): Ditto.
5116 * irix4-nat.c (get_longjmp_target): Ditto.
5117 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5118 (ia64_push_arguments): Ditto.
5119 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5120 * h8300-tdep.c (h8300_push_arguments): Ditto.
5121 (h8300_store_return_value): Ditto.
5122 (h8300_extract_struct_value_address): Ditto.
5123 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5124 (frv_push_arguments): Ditto.
5125 * avr-tdep.c (avr_pointer_to_address): Ditto.
5126 (avr_push_arguments): Ditto.
5127 * arm-tdep.c (arm_push_dummy_call): Ditto.
5128 (arm_get_longjmp_target): Ditto.
5129 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5130 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5131 (alpha_get_longjmp_target): Ditto.
5132
ae0167b9
AC
5133 * solib-irix.c (extract_mips_address): Inline extract_address,
5134 replacing it with extract_signed_integer.
5135 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5136 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5137 (first_link_map_member, open_symbol_file_object): Ditto.
5138 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5139 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5140 (LM_NEXT, LM_NAME): Ditto.
5141
44d88583
RH
51422003-06-01 Richard Henderson <rth@redhat.com>
5143
98a8e1e5
RH
5144 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5145 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5146 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5147 (alpha_cannot_store_register): Likewise.
5148 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5149 * alpha-nat.c (supply_gregset): Likewise.
5150 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5151
310e9b6a
AC
51522003-06-01 Andrew Cagney <cagney@redhat.com>
5153
5154 * infcall.c (call_function_by_hand): Update comment on
5155 DEPRECATED_DUMMY_WRITE_SP.
5156
5157 * mips-tdep.c (mips_gdbarch_init): Do not set
5158 deprecated_dummy_write_sp.
5159 (mips_eabi_push_dummy_call): Set the SP register.
5160 (mips_o64_push_dummy_call): Set the SP register.
5161 (mips_o32_push_dummy_call): Set the SP register.
5162 (mips_n32n64_push_dummy_call): Set the SP register.
5163
5ab84872
RH
51642003-06-01 Richard Henderson <rth@redhat.com>
5165
98a8e1e5
RH
5166 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5167 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5168 (supply_gregset): Likewise.
5169 * alpha-tdep.c (alpha_store_return_value): Likewise.
5170 (alpha_get_longjmp_target): Likewise.
5171 (alpha_register_name): Constify array.
5172 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5173 deprecated_register_size, deprecated_register_bytes,
5174 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5175 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5176 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5177
09cc52fd
RH
51782003-06-01 Richard Henderson <rth@redhat.com>
5179
5180 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5181 from arg_reg_buffer to regcache to avoid double conversion.
5182
c7f16359
MK
51832003-06-01 Mark Kettenis <kettenis@gnu.org>
5184
5185 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5186 SP_REGNUM.
5187 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5188 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5189
7131cb6e
RH
51902003-06-01 Richard Henderson <rth@redhat.com>
5191
98a8e1e5
RH
5192 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5193 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5194
f3e0f90b
RH
51952003-06-01 Richard Henderson <rth@redhat.com>
5196
98a8e1e5
RH
5197 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5198 not overlapping PC_REGNUM.
f3e0f90b 5199
c88e30c0
RH
52002003-06-01 Richard Henderson <rth@redhat.com>
5201
98a8e1e5
RH
5202 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5203 alpha_push_arguments. Don't dump argument register data to
5204 the target stack. Fix float and 128-bit long double semantics.
5205 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5206 (alpha_fix_call_dummy): Remove.
5207 (alpha_call_dummy_words): Remove.
5208 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5209
f1a559ae
RH
52102003-06-01 Richard Henderson <rth@redhat.com>
5211
5212 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5213
5e045346
AC
52142003-06-01 Andrew Cagney <cagney@redhat.com>
5215
95404a3e
AC
5216 * mips-tdep.c (is_mips16_addr): New function.
5217 (make_mips16_addr, unmake_mips16_addr): New functions.
5218 (pc_is_mips16, mips_fetch_instruction): Use.
5219 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5220 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5221 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5222 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5223 TARGET_MIPS.
5224 * config/mips/tm-mips.h: Update copyright.
5225 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5226 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5227 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5228 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5229 (TM_PRINT_INSN_MACH): Delete.
5230 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5231
5e045346
AC
5232 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5233 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5234 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5235 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5236 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5237 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5238 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5239 mips*-*-riscos* and mips*-*-sysv* onto mips.
5240 * config/mips/mips64.mt: New file.
5241 * config/mips/mips.mt: New file.
5242 * config/mips/littlemips.mt: Delete file.
5243 * config/mips/decstation.mt: Delete file.
5244 * config/mips/vr4300el.mt: Delete file.
5245 * config/mips/vr5000el.mt: Delete file.
5246 * config/mips/vr5000.mt: Delete file.
5247 * config/mips/vr4100.mt: Delete file.
5248 * config/mips/vr4xxxel.mt: Delete file.
5249 * config/mips/vr4300.mt: Delete file.
5250 * config/mips/vr4xxx.mt: Delete file.
5251 * config/mips/bigmips.mt: Delete file.
5252 * config/mips/bigmips64.mt: Delete file.
5253 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5254 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5255 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5256 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5257 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5258 "tm-bigmips.h".
5259 * config/mips/tm-irix3.h: Ditto.
5260 * config/mips/tm-mipsv4.h: Ditto.
5261 * config/mips/tm-embed.h: Ditto.
5262 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5263 "tm-bigmips64.h".
5264 * config/mips/tm-vr5000el.h: Delete file.
5265 * config/mips/tm-tx39l.h: Delete file.
5266 * config/mips/tm-vr4300el.h: Delete file.
5267 * config/mips/tm-vr4xxxel.h: Delete file.
5268 * config/mips/tm-vr4300.h: Delete file.
5269 * config/mips/tm-vr4100.h: Delete file.
5270 * config/mips/tm-vr4xxx.h: Delete file.
5271 * config/mips/tm-vr5000.h: Delete file.
5272 * config/mips/tm-embedl64.h: Delete file.
5273 * config/mips/tm-embedl.h: Delete file.
5274 * config/mips/tm-embed64.h: Delete file.
5275 * config/mips/tm-bigmips64.h: Delete file.
5276 * config/mips/tm-bigmips.h: Delete file.
5277
2473a4a9
MK
52782003-06-01 Mark Kettenis <kettenis@gnu.org>
5279
97a5b208
MK
5280 Fix gdb/1216.
5281 * shnbsd-nat.c: Include "sh-tdep.h".
5282
2473a4a9
MK
5283 From Richard Henderson <rth@redhat.com>:
5284 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5285
e0f7ec59
AC
52862003-05-31 Andrew Cagney <cagney@redhat.com>
5287
5288 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5289 forward declaration.
5290 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5291 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5292 (mips_find_saved_regs): Use set_reg_offset.
5293 (mips_frame_init_saved_regs): Delete function.
5294 (mips_pop_frame): Call mips_find_saved_regs instead of
5295 DEPRECATED_FRAME_INIT_SAVED_REGS.
5296
68dcc709
AC
52972003-05-31 Andrew Cagney <cagney@redhat.com>
5298
5299 * mips-tdep.c (mips_gdbarch_init): Do not set
5300 deprecated_max_register_raw_size, register_virtual_size, and
5301 deprecated_max_register_virtual_size.
5302
cfc14b3a
MK
53032003-05-31 Mark Kettenis <kettenis@gnu.org>
5304
6405b0a6
MK
5305 * i386-tdep.c: Include "dwarf2-frame.h".
5306 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5307 * Makefile.in (i386-tdep.o): Update dependencies.
5308
cfc14b3a
MK
5309 * dwarf2-frame.c, dwarf2-frame.h: New files.
5310 * Makefile.in (SFILES): Add dwarf2-frame.c.
5311 (dwarf2_frame_h): Define.
5312 (COMMON_OBS): Add dwarf2-frame.o.
5313 (dwarf2-frame.o): Add dependencies.
5314
6a2751d2
AJ
53152003-05-31 Andreas Jaeger <aj@suse.de>
5316
5317 * x86-64-linux-nat.c: Fix comment.
5318
1c3545ae
MK
53192003-05-31 Mark Kettenis <kettenis@gnu.org>
5320
10f93086
MK
5321 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5322 function signature.
5323
1c3545ae
MK
5324 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5325 have a sigcontext_addr handler.
5326 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5327 sigcontext_addr handler.
5328
e11c53d2
AC
53292003-05-31 Andrew Cagney <cagney@redhat.com>
5330
5331 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5332 (print_fp_register_row): Replace do_fp_register_row.
5333 (mips_print_fp_register): Add "file" and "frame" parameters.
5334 (mips_print_register): Add "file" and "frame" parameters.
5335 (mips_print_registers_info): Replace mips_do_registers_info.
5336 (mips_gdbarch_init): Set print_registers_info instead of
5337 deprecated_do_registers_info.
5338 (mips_read_fp_register_single): Add "frame" parameter.
5339 (mips_read_fp_register_double): Add "frame" parameter.
5340
a3386186
MK
53412003-05-31 Mark Kettenis <kettenis@gnu.org>
5342
70913449
MK
5343 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5344 Fixes a bug where GDB would print the wrong register names for
5345 targets without SSE.
5346
2b5e0749
MK
5347 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5348 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5349 registers.
5350
5351 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5352 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5353 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5354 TDEP->sc_sp_offset.
5355
a3386186
MK
5356 From Michal Ludvig <mludvig@suse.cz>:
5357 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5358 and `sc_num_regs'.
5359 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5360 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5361 I386_ST0_REGNUM): Move here from...
5362 * i386-tdep.c: ... here.
5363 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5364 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5365 registers if possible.
5366 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5367 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5368 Remove variables.
5369 (i386bsd_sc_reg_offset): New variable.
5370 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5371 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5372 TDEP->sc_sp_offset.
5373 (i386fbsd_sc_reg_offset): New variable.
5374 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5375 TDEP->sc_num_regs.
5376 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5377 variables.
5378 (i386fbsd4_sc_reg_offset): New variable.
5379 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5380 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5381 TDEP->sc_sp_offset.
5382 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5383 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5384 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5385 Remove variables.
5386 (i386nbsd_sc_reg_offset): New variable.
5387 (i386nbsd_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 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5391 Remove variables.
5392 (i386obsd_sc_reg_offset): New variable.
5393 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5394 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5395 TDEP->sc_sp_offset.
5396 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5397 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5398 for frame pointer offset in `struct sigcontext'.
5399
25ab4790
AC
54002003-05-31 Andrew Cagney <cagney@redhat.com>
5401
5402 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5403 architecture methods call_dummy_words, sizeof_call_dummy_words,
5404 push_return_address, store_struct_return, and fix_call_dummy. Set
5405 push_dummy_call instead of deprecated_push_arguments.
5406 (mips_store_struct_return): Delete function.
5407 (mips_fix_call_dummy): Delete function.
5408 (mips_push_return_address): Delete function.
5409 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5410 RA_REGNUM and T9_REGNUM.
5411 (mips_n32n64_push_dummy_call): Ditto for
5412 mips_n32n64_push_arguments.
5413 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5414 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5415
6a65450a
AC
54162003-05-31 Andrew Cagney <cagney@redhat.com>
5417
5418 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5419 "dummy_addr" to "bp_addr".
5420 * infcall.c (call_function_by_hand): Pass "funaddr" to
5421 gdbarch_push_dummy_call.
5422 * gdbarch.h, gdbarch.c: Re-generate.
5423 * i386-tdep.c (i386_push_dummy_call): Update.
5424 * arm-tdep.c (arm_push_dummy_call): Update.
5425 * d10v-tdep.c (d10v_push_dummy_call): Update.
5426
c4f35dd8
MK
54272003-05-31 Mark Kettenis <kettenis@gnu.org>
5428
5429 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5430 variable declarations.
5431 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5432 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5433 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5434 x86_64_init_frame_pc, x86_64_init_frame_pc,
5435 x86_64_function_has_prologue): Remove prototypes.
5436 (X86_64_NUM_GREGS): New define.
5437 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5438 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5439 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5440 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5441 XMM1_REGNUM): Remove defines.
5442 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5443 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5444 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5445 X86_64_XMM1_REGNUM): New defines.
5446 (struct x86_64_register_info): Renamed from `struct
5447 register_info'. Remove `size' member.
5448 (x86_64_register_info_table): Remove variable.
5449 (x86_64_register_info): New variable.
5450 (X86_64_NUM_REGS): New define.
5451 (X86_64_NUM_GREGS): Remove define.
5452 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5453 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5454 Remove variables.
5455 (x86_54_dwarf2_reg_to_regnum): Remove function.
5456 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5457 (x86_64_dwarf_reg_to_regnum): New function.
5458 (x86_64_register_name): Rewrite.
5459 (x86_64_register_raw_size): Remove function.
5460 (x86_64_register_byte_table): Remove variable.
5461 (x86_64_register_byte): Remove function.
5462 (x86_64_register_virtual_type): Remove function.
5463 (x86_64_register_type): New function.
5464 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5465 x86_64_register_convert_to_raw): Remove functions.
5466 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5467 (x86_64_use_struct_convention): Make static. Adjust for renamed
5468 defines.
5469 (x86_64_frame_init_saved_regs): Remove function.
5470 (x86_64_push_arguments): Make static. Change to accept a regcache
5471 as argument.
5472 (x86_64_store_return_value, x86_64_extract_return_value): Make
5473 static. Rewrite based on i386 counterparts.
5474 (x86_64_push_dummy_call): New function.
5475 (X86_64_NUM_SAVED_REGS): New define.
5476 (x86_64_register_number): Remove function.
5477 (x86_64_store_struct_return): Remove function.
5478 (x86_64_frameless_function_invocation,
5479 x86_64_function_has_prologue): Remove functions.
5480 (PROLOG_BUFSIZE): Remove define.
5481 (struct x86_64_frame_cache): New structure.
5482 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5483 x86_64_frame_cache, x86_64_frame_this_id,
5484 x86_64_frame_prev_register, x86_64_frame_p,
5485 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5486 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5487 functions.
5488 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5489 variables.
5490 (x86_64_skip_prologue): Rewrite in terms of
5491 x86_64_analyze_prologue.
5492 (x86_64_frame_base_address): New function.
5493 (x86_64_frame_base): New variable.
5494 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5495 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5496 set deprecated_fp_regnum, deprecated_register_size,
5497 deprecated_register_bytes, register_raw_size, register_byte,
5498 register_virtual_type, register_convertiable,
5499 register_convert_to_virtual, convert_to_raw,
5500 deprecated_get_saved_register, deprecated_target_read_fp,
5501 deprecated_push_arguments, deprecated_push_return_address,
5502 deprecated_pop_frame, deprecated_store_struct_return,
5503 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5504 frameless_function_invocation, deprecated_frame_saved_pc,
5505 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5506 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5507 deprecated_init_frame_pc and virtual_frame_pointer. Call
5508 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5509 and x86_64_frame_p. Call frame_base_set_default to register
5510 x86_64_frame_base.
5511 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5512 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5513 (_initialize_x86_64_tdep): Remove function.
5514 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5515 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5516 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5517 define.
5518 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5519 (x86_64_linux_sigcontext_addr): Rewrite.
5520 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5521 x86_64_linux_frame_saved_pc): Remove functions.
5522 (x86_64_linux_pc_in_sigtramp): Renamed from
5523 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5524 trampoline.
5525 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5526 Remove_functions.
5527 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5528 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5529 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5530 (x86_64_regmap): Rename to regmap.
5531 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5532 x86_64_num_gregs.
5533 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5534 x86_64_regmap.
5535 (x86_64_fxsave_offset): Remove function.
5536 (supply_fpregset): Simply call x86_64_supply_fxsave.
5537 (fill_fpregset): Simply call x86_64_fill_fxsave.
5538 (fetch_inferior_registers, store_inferior_registers): Avoid
5539 asignment in if-statement.
5540 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5541 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5542 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5543 (fetch_core_registers): Remove function.
5544 (linux_elf_core_fns): Remove.
5545 (offsetoff): Don't define.
5546 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5547 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5548 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5549 add core-regset.o.
5550 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5551 protection against multiple includes instead of NM_X86_64_h. Add
5552 various comments. Include "config/nm-linux.h". Don't include
5553 <signal.h>.
5554 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5555 GET_THREAD_SIGNALS): Remove defines.
5556 (x86_64_register_u_addr, kernel_u_size,
5557 lin_thread_get_thread_signals): Remove prototypes.
5558 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5559 [HAVE_LINK_H]: Don't include "solib.h".
5560 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5561 * config/i386/tm-x86-64linux.h: Fix comments.
5562 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5563 x86-64-tdep.o): Update dependencies.
5564
c25083af
AC
55652003-05-30 Andrew Cagney <cagney@redhat.com>
5566
c8f55a7b
AC
5567 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5568 Change parameter type to a "struct regcache *".
5569
c25083af
AC
5570 * gdbarch.sh: Regardless of the multi-arch level, always define
5571 the macro when not already defined.
5572 * gdbarch.h, gdbarch.c: Re-generate.
5573
fbe586ae
RH
55742003-05-30 Richard Henderson <rth@redhat.com>
5575
5576 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5577 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5578 (alpha_mdebug_frame_this_id): Likewise.
5579 (alpha_mdebug_frame_prev_register): Likewise.
5580 (alpha_mdebug_frame_base_address): Likewise.
5581 (alpha_mdebug_frame_locals_address): Likewise.
5582 (alpha_mdebug_frame_args_address): Likewise.
5583 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5584 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5585 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5586 loop increment.
5587 (alpha_heuristic_frame_this_id): Make static.
5588 (alpha_heuristic_frame_prev_register): Likewise.
5589 (alpha_heuristic_frame_base_address): Likewise.
5590 * alpha-tdep.h: Update.
5591
acd5c798
MK
55922003-05-30 Mark Kettenis <kettenis@gnu.org>
5593
5594 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5595 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5596 defenitions.
5597 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5598 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5599 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5600 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5601 I386_ST0_REGNUM): New defines.
5602 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5603 codestream_get): Remove define.
5604 (codestream_next_addr, condestream_addr, condestream_buf,
5605 codestream_off, codestream_cnt): Remove variables.
5606 (codestream_fill, codestream_seek, codestream_read): Remove
5607 functions.
5608 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5609 functionality.
5610 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5611 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5612 i386_frame_saved_pc, i386_saved_pc_after_call,
5613 i386_frame_num_args, i386_frame_init_saved_regs,
5614 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5615 i386_push_arguments): Remove functions.
5616 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5617 functionality. Use i386_analyze_prologue instead of
5618 i386_get_frame_setup.
5619 (I386_NUM_SAVED_REGS): New define.
5620 (struct i386_frame_cache): New structure.
5621 (i386_alloc_frame_cache, i386_analyze_struct_return,
5622 i386_skip_probe, i386_analyze_frame_setup,
5623 i386_analyze_register_saves, i386_analyze_prologue,
5624 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5625 i386_frame_prev_register, i386_sigtramp_frame_cache,
5626 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5627 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5628 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5629 New functions.
5630 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5631 New variables.
5632 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5633 I386_EAX_REGNUM and I386_EDX_REGNUM.
5634 (i386_extract_return_value, i386_store_return_value): Use
5635 I386_ST0_REGNUM where appropriate.
5636 (i386_extract_struct_value_address): Rewrite to use extract_address.
5637 (i386_svr4_pc_in_sigtramp): Add comment.
5638 (i386_svr4_sigcontext_addr): Rewrite.
5639 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5640 TDEP->sc_sp_offset.
5641 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5642 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5643 of new defines. Set push_dummy_call, don't set
5644 deprecated_push_arguments, deprecated_push_return_address,
5645 deprecated_pop_frame. Don't set parm_boundary. Don't set
5646 deprecated_frame_chain, deprecated_frame_saved_pc,
5647 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5648 save_dummy_frame_tos, unwind_pc. Call
5649 frame_unwind_append_predicate and frame_base_set_default. Don't
5650 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5651 Don't set frameless_function_invocation. Don't set
5652 deprecated_register_bytes, deprecated_register_size,
5653 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5654 * i386-linux-tdep.c: Fix formatting in some comments.
5655 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5656 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5657 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5658 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5659 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5660 redundant parentheses.
5661 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5662 (i386_linux_sigcontext_addr): Use it. Rewrite.
5663 (find_minsym_and_objfile): Change name of second argument.
5664 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5665 changed. Use frame_pc_unwind instead of
5666 DEPRECATED_SAVED_PC_AFTER_CALL.
5667 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5668 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5669 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5670 unwinder.
5671 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5672 "dummy-frame.h".
5673 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5674 (_initialize_i386_cygwin_tdep): New prototype.
5675 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5676 deprecated_frame_chain_valid.
5677 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5678 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5679 Rely on the SVR4 defaults.
5680 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5681 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5682
c89b70f1
AC
56832003-05-30 Andrew Cagney <cagney@redhat.com>
5684
5685 * infcall.c (call_function_by_hand): Always call
5686 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5687
85b32d22
RH
56882003-05-30 Richard Henderson <rth@redhat.com>
5689
c89b70f1
AC
5690 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5691 increment.
85b32d22 5692
bfe51b1e
JB
56932003-05-29 Jim Blandy <jimb@redhat.com>
5694
5695 Use gdbarch methods for solib stuff on PowerPC Linux.
5696 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5697 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5698 show through.
5699 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5700 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5701 giving the same effect as the #definitions above.
5702
1abf022c
AF
57032003-05-29 Adam Fedor <fedor@gnu.org>
5704
5705 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5706 (find_implementation_from_class): Replace it with the standard
5707 case i.e. do nothing.
5708
d2427a71
RH
57092003-05-29 Richard Henderson <rth@redhat.com>
5710
5711 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5712 (alpha_linux_sigtramp_offset): Use it. Make static.
5713 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5714 update for new frame model.
5715 * alpha-mdebug-tdep.c: New file.
5716 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5717 (alpha_osf1_init_abi): Install it.
5718 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5719 (linked_proc_desc_table): Remove.
5720 (alpha_frame_past_sigtramp_frame): Remove.
5721 (alpha_dynamic_sigtramp_offset): Remove.
5722 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5723 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5724 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5725 (push_sigtramp_desc): Remove.
5726 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5727 (alpha_cannot_store_register): Likewise.
5728 (alpha_sigcontext_addr): Remove.
5729 (alpha_find_saved_regs): Remove.
5730 (alpha_frame_init_saved_regs): Remove.
5731 (alpha_init_frame_pc_first): Remove.
5732 (read_next_frame_reg): Remove.
5733 (alpha_frame_saved_pc): Remove.
5734 (alpha_saved_pc_after_call): Remove.
5735 (temp_proc_desc, temp_saved_regs): Remove.
5736 (alpha_about_to_return): Remove.
5737 (cached_proc_desc): Remove.
5738 (alpha_frame_chain): Remove.
5739 (alpha_print_extra_frame_info): Remove.
5740 (alpha_init_extra_frame_info): Remove.
5741 (alpha_frame_locals_address): Remove.
5742 (alpha_frame_args_address): Remove.
5743 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5744 (alpha_push_dummy_frame): Remove.
5745 (alpha_pop_frame): Remove.
5746 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5747 (alpha_read_insn): New.
5748 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5749 for different insn encodings.
5750 (alpha_in_lenient_prologue): Remove.
5751 (struct alpha_sigtramp_unwind_cache): New.
5752 (alpha_sigtramp_frame_unwind_cache): New.
5753 (alpha_sigtramp_register_address): New.
5754 (alpha_sigtramp_frame_this_id): New.
5755 (alpha_sigtramp_frame_prev_register): New.
5756 (alpha_sigtramp_frame_unwind): New.
5757 (alpha_sigtramp_frame_p): New.
5758 (struct alpha_heuristic_unwind_cache): New.
5759 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5760 don't count nop insns that occur between functions.
5761 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5762 heuristic_proc_desc, but without the mdebug wrapping.
5763 (alpha_heuristic_frame_this_id): New.
5764 (alpha_heuristic_frame_prev_register): New.
5765 (alpha_heuristic_frame_unwind): New.
5766 (alpha_heuristic_frame_p): New.
5767 (alpha_heuristic_frame_base_address): New.
5768 (alpha_heuristic_frame_base): New.
5769 (alpha_unwind_dummy_id): New.
5770 (alpha_unwind_pc): New.
5771 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5772 frame related deprecated initializations; install replacements.
5773 (alpha_dump_tdep): Remove.
5774 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5775 (alpha_read_insn, alpha_after_prologue,
5776 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5777 alpha_heuristic_frame_prev_register,
5778 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5779 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5780 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5781 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5782
93ec1121
AC
57832003-05-29 Andrew Cagney <cagney@redhat.com>
5784
5785 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5786 dependant on the availability of ASSERT_FUNCTION.
5787 (ASSERT_FUNCTION): Do not define when there is no function name.
5788
98f08d3d
KB
57892003-05-29 Kevin Buettner <kevinb@redhat.com>
5790
5791 From Jimi X <jimix@watson.ibm.com>:
5792 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5793
0897f59b
JB
57942003-05-28 Jim Blandy <jimb@redhat.com>
5795
5796 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5797 argument to ptrace to int; the system headers should give it the
5798 right type, and pointers don't fit in ints on powerpc64-*-*.
5799
14898363
L
58002003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5801
5802 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5803 DW_TAG_catch_block.
5804
a7a48797
EZ
58052003-05-26 Elena Zannoni <ezannoni@redhat.com>
5806
5807 * stabsread.c (dbx_lookup_type): Make static.
5808 (read_type): Ditto.
5809 (add_undefined_type): Ditto.
5810 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5811 not export.
5812
f5479e9c
EZ
58132003-05-26 Elena Zannoni <ezannoni@redhat.com>
5814
5815 * hpread.c (hpread_has_name): Make static.
5816 (hpread_psymtab_to_symtab): Ditto.
5817 (file_exists): Ditto.
5818 (hpread_call_pxdb): Ditto.
5819 (hpread_pxdb_needed): Ditto.
5820 (hpread_quick_traverse): Ditto.
5821 (hpread_get_header): Ditto.
5822 (hpread_get_lntt): Ditto.
5823 (hpread_get_slt): Ditto.
5824 (class_of): Ditto.
5825
eb2e12d7
AS
58262003-05-25 Andreas Schwab <schwab@suse.de>
5827
78bf922a
AS
5828 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5829 stack_align and deprecated_extra_stack_alignment_needed.
5830 (m68k_stack_align): Delete.
5831
eb2e12d7
AS
5832 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5833 (m68k_register_virtual_size): Likewise.
5834 (altos_skip_prologue): Remove obsolete function.
5835 (isi_frame_num_args): Likewise.
5836 (news_frame_num_args): Likewise.
5837 (m68k_fix_call_dummy): Make static.
5838 (m68k_push_dummy_frame): Likewise.
5839 (m68k_pop_frame): Likewise.
5840 (m68k_skip_prologue): Likewise.
5841 (m68k_frame_init_saved_regs): Likewise.
5842 (m68k_saved_pc_after_call): Likewise.
5843 (m68k_get_longjmp_target): Make multi-arch.
5844 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5845 structure. Register m68k_get_longjmp_target if enabled.
5846 * m68k-tdep.h (struct gdbarch_tdep): Define.
5847 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5848
5849 * Makefile.in (config.status): Also depend on configure.tgt
5850 and configure.host.
5851 (m68klinux-tdep.o): Update dependencies.
5852 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5853 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5854 (M68K_LINUX_JB_PC): Define.
5855 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5856 and take additional parameter.
5857 (m68k_linux_sigtramp_saved_pc): Update.
5858 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5859 m68k_linux_pc_in_sigtramp, in_plt_section,
5860 find_solib_trampoline_target.
5861 * config/m68k/tm-linux.h: Don't include any tm headers.
5862 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5863 (JB_ELEMENT_SIZE): Likewise.
5864 (JB_PC): Likewise.
5865 (GET_LONGJMP_TARGET): Likewise.
5866 (IN_SIGTRAMP): Likewise.
5867 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5868
eb2c22dc
MK
58692003-05-25 Mark Kettenis <kettenis@gnu.org>
5870
5871 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5872 (sparc32_push_arguments): Re-implement by calling
5873 sparc32_do_push_arguments.
5874
44b7b84e
MK
58752003-05-25 Mark Kettenis <kettenis@gnu.org>
5876
5877 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5878 SPARC_O1_REGNUM): New defines.
5879 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5880 (sparc32_store_return_value): New function.
5881 (sparc_extract_struct_value_address): Rewrite to operate on a
5882 regcache.
5883 (sparc_gdbarch_init): Don't set
5884 deprecated_extract_struct_value_address. Set
5885 extract_struct_value_address instead. Don't set
5886 deprecated_extract_return_value and deprecated_store_return_value
5887 for 32-bit targets. Set extract_return_value and
5888 store_return_value instead.
5889 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5890 DEPRECTAED_EXTRACT_RETURN_VALUE,
5891 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5892 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5893 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5894 (sparc_store_return_value): Remove prototype.
5895 (sparc32_store_return_value): New prototype.
5896 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5897 Adjust prototypes.
5898
f6ad61e3
MK
58992003-05-24 Mark Kettenis <kettenis@gnu.org>
5900
5901 * sparcnbsd-tdep.c: Include "gdb_string.h".
5902
b276f1bb
AC
59032003-05-23 Andrew Cagney <cagney@redhat.com>
5904
5905 * p-valprint.c (pascal_val_print): Replace extract_address with
5906 the inline equivalent extract_unsigned_integer.
5907 * jv-valprint.c (java_value_print): Ditto.
5908 * ada-valprint.c (ada_val_print_1): Ditto.
5909 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5910
e76c5fcc
TR
59112003-05-23 Theodore A. Roth <troth@openavr.org>
5912
5913 * blockframe.c (frameless_look_for_prologue): Remove unused
5914 after_prologue variable.
5915
2cdd89cb
MK
59162003-05-23 Mark Kettenis <kettenis@gnu.org>
5917
5918 * blockframe.c (get_pc_function_start): Rewrite to avoid
5919 asignments in if-statements.
5920
182d43bc
EZ
59212003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5922
5923 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5924 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5925 files, don't relocate absolute symbols (and do use mst_abs).
5926
e8f3fcdd
AC
59272003-05-23 Andrew Cagney <cagney@redhat.com>
5928
5929 * objc-lang.c: Include "gdb_assert.h".
5930 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5931 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5932 (gdb_check, gdb_check_fatal): Delete functions.
5933 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5934 gdb_assert.
5935 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5936 * Makefile.in (objc-lang.o): Update dependencies.
5937
3c23e6fb
ILT
59382003-05-22 Ian Lance Taylor <ian@airs.com>
5939
5940 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5941 with fprintf_filtered, not fprintf_unfiltered.
5942
af1342ab
AC
59432003-05-22 Andrew Cagney <cagney@redhat.com>
5944
5945 * stack.c (frame_info): Inline extract_address, replacing it with
5946 extract_unsigned_integer.
5947 * findvar.c (unsigned_pointer_to_address): Ditto.
5948 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5949 * dwarf2expr.c (dwarf2_read_address): Ditto.
5950 * frame.c (frame_pc_unwind): Update comment.
5951 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5952
47e242ec
JJ
59532003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5954
5955 * infptrace.c (detach): Call print_sys_errmsg rather than
5956 perror_with_name to issue warning message when errno is non-zero
5957 after calling ptrace detach.
5958
e2ac8128
JB
59592003-05-21 J. Brobecker <brobecker@gnat.com>
5960
5961 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5962 macro definitions from here...
5963 * hppa-tdep.c: ...to there.
5964
92b3541e
KB
59652003-05-20 Kevin Buettner <kevinb@redhat.com>
5966
5967 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5968 register_ptrace_addr(). Fix all callers.
5969
55809acb
AS
59702003-05-21 Andreas Schwab <schwab@suse.de>
5971
5972 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5973 dependencies.
5974 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5975 end.
5976 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5977 (_initialize_m68k_linux_tdep): New function.
5978 (m68k_linux_frame_saved_pc): Make static.
5979 (m68k_linux_extract_return_value): Likewise.
5980 (m68k_linux_store_return_value): Likewise.
5981 (m68k_linux_extract_struct_value_address): Likewise.
5982 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5983 Remove.
5984 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5985 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5986 (DEPRECATED_FRAME_SAVED_PC): Remove.
5987
0fbc10f7
KW
59882003-05-20 Kris Warkentin <kewarken@qnx.com>
5989
5990 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5991 regset numbering rather than our own.
5992
58da2eb2
DC
59932003-05-19 David Carlton <carlton@bactrian.org>
5994
5995 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5996
1fcb5155
DC
59972003-05-19 David Carlton <carlton@bactrian.org>
5998
5999 Partial fix for PR c++/827.
6000 * cp-support.h: Include symtab.h.
6001 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6002 * cp-namespace.c: Update contributors.
6003 (cp_lookup_symbol_nonlocal): New.
6004 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6005 (lookup_symbol_file): Ditto.
6006 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6007 * block.h: Declare block_scope, block_using, block_global_block.
6008 * block.c (block_scope): New.
6009 (block_using, block_global_block): Ditto.
6010 * Makefile.in (cp_support_h): Depend on symtab_h.
6011 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6012
5f9a71c3
DC
60132003-05-19 David Carlton <carlton@bactrian.org>
6014
6015 * language.h (struct language_defn): Add 'la_value_of_this'
6016 and 'la_lookup_symbol_nonlocal' members.
6017 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6018 lookup_symbol_static, lookup_symbol_global,
6019 lookup_symbol_aux_block.
6020 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6021 if we should search fields of this and how to do static/global
6022 lookup.
6023 (lookup_symbol_aux_block): Make extern.
6024 (basic_lookup_symbol_nonlocal): New.
6025 (lookup_symbol_static, lookup_symbol_global): Ditto.
6026 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6027 'la_lookup_symbol_nonlocal' members.
6028 * c-lang.c (c_language_defn, cplus_language_defn)
6029 (asm_language_defn, minimal_language_defn): Ditto.
6030 * jv-lang.c (java_language_defn): Ditto.
6031 * language.c (unknown_language_defn, auto_language_defn)
6032 (local_language_defn): Ditto.
6033 * m2-lang.c (m2_language_defn): Ditto.
6034 * objc-lang.c (objc_language_defn): Ditto.
6035 * scm-lang.c (scm_language_defn): Ditto.
6036 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6037 * p-lang.c (pascal_language_defn): Ditto for both.
6038 * Makefile.in (f-lang.o): Depend on value_h.
6039 (p-lang.o): Ditto.
6040
89a9d1b1
DC
60412003-05-19 David Carlton <carlton@bactrian.org>
6042
6043 * block.h: Declare block_static_block.
6044 * block.c (block_static_block): New.
6045 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6046 lookup_symbol_aux_local, calling block_static_block instead.
6047 (lookup_symbol_aux_local): Delete 'static_block' argument.
6048
eed3f8ab
DC
60492003-05-19 David Carlton <carlton@bactrian.org>
6050
6051 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6052
a09d8bda
ML
60532003-05-19 Michal Ludvig <mludvig@suse.cz>
6054
6055 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6056 register numbers mapping.
6057
69636828
AF
60582003-05-18 Adam Fedor <fedor@gnu.org>
6059
6060 * symtab.c (completion_list_objc_symbol): New function.
6061 (make_symbol_completion_list): Use it to add ObjC symbols
6062 when looking though the list.
6063 (language_search_unquoted_string): New function.
6064 (make_file_symbol_completion_list): Use it.
6065
55baeb84
AS
60662003-05-18 Andreas Schwab <schwab@suse.de>
6067
d0b45d99
AS
6068 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6069 dependencies.
6070 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6071 as m68k_linux_extract_return_value.
6072 (DEPRECATED_STORE_RETURN_VALUE): Define as
6073 m68k_linux_store_return_value.
6074 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6075 m68k_linux_extract_struct_value_address.
6076 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6077 get_next_frame, get_frame_base, get_frame_pc.
6078 (m68k_linux_frame_saved_pc): Use get_frame_base.
6079 (m68k_linux_extract_return_value): New function.
6080 (m68k_linux_store_return_value): New function.
6081 (m68k_linux_extract_struct_value_address): New function.
6082 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6083
55baeb84
AS
6084 * c-exp.y (typebase): Remove duplicate occurence of
6085 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6086 of lookup_signed_typename.
55baeb84 6087
b6b08ebf
MK
60882003-05-18 Mark Kettenis <kettenis@gnu.org>
6089
6090 * dwarf2loc.c (find_location_expression): Change type of second
6091 argument to `size_t *'.
6092 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6093 for size variable.
6094
5ad1c190
DC
60952003-05-18 David Carlton <carlton@bactrian.org>
6096
6097 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6098 'linkage_name'. Add comment.
6099 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6100 'linkage_name'.
6101 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6102 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6103 (lookup_block_symbol): Ditto.
6104
b8b527c5
AC
61052003-05-16 Andrew Cagney <cagney@redhat.com>
6106
6107 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6108 * gdbarch.h, gdbarch.c: Re-generate.
6109 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6110 * TODO (REGISTER_BYTES): Delete reference.
6111 * alpha-tdep.c (alpha_gdbarch_init): Update.
6112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6113 * x86-64-tdep.c (x86_64_init_abi): Update.
6114 * vax-tdep.c (vax_gdbarch_init): Update.
6115 * v850-tdep.c (v850_gdbarch_init): Update.
6116 * sparc-tdep.c (sparc_gdbarch_init): Update.
6117 * sh-tdep.c (sh_gdbarch_init): Update.
6118 * s390-tdep.c (s390_gdbarch_init): Update.
6119 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6120 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6121 (ns32k_gdbarch_init_32382): Update.
6122 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6123 * mcore-tdep.c (mcore_gdbarch_init): Update.
6124 * m68k-tdep.c (m68k_gdbarch_init): Update.
6125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6126 * ia64-tdep.c (ia64_gdbarch_init): Update.
6127 * i386-tdep.c (i386_gdbarch_init): Update.
6128 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6129 * hppa-tdep.c (hppa_gdbarch_init): Update.
6130 * h8300-tdep.c (h8300_gdbarch_init): Update.
6131 * frv-tdep.c (frv_gdbarch_init): Update.
6132 * cris-tdep.c (cris_gdbarch_init): Update.
6133 * avr-tdep.c (avr_gdbarch_init): Update.
6134 * arm-tdep.c (arm_gdbarch_init): Update.
6135 * sparc-tdep.c (sparc_pop_frame): Update.
6136 * rs6000-tdep.c (rs6000_pop_frame): Update.
6137 * remote.c (init_remote_state): Update.
6138 (remote_prepare_to_store): Update.
6139 * remote-vx.c (vx_prepare_to_store): Update.
6140 * remote-sds.c (sds_fetch_registers): Update.
6141 (sds_prepare_to_store): Update.
6142 * remote-array.c: Update.
6143 * regcache.c (init_legacy_regcache_descr): Update.
6144 (init_regcache_descr): Update.
6145 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6146 (mips_o64_extract_return_value): Update.
6147 * irix5-nat.c (fetch_core_registers): Update.
6148 * irix4-nat.c (fetch_core_registers): Update.
6149 * i386-tdep.h: Update.
6150 * hppa-tdep.c (pa_do_registers_info): Update.
6151 (pa_do_strcat_registers_info): Update.
6152 * cris-tdep.c (cris_register_bytes_ok): Update.
6153 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6154 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6155 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6156 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6157 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6158 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6159 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6160 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6161 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6162 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6163 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6164 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6165 (REGISTER_BYTES_OK): Update.
6166 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6167 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6168
ee2842e2
ILT
61692003-05-16 Ian Lance Taylor <ian@airs.com>
6170
6171 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6172 (vax_print_insn, print_insn_arg): Remove static functions.
6173 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6174 print_insn_vax from opcodes library.
6175 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6176
973177d3
AC
61772003-05-15 Andrew Cagney <cagney@redhat.com>
6178
aaab4dba
AC
6179 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6180 * target.h (memory_breakpoint_from_pc): Delete declaration.
6181 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6182 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6183 * monitor.c (monitor_insert_breakpoint): Use
6184 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6185 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6186 * gdbarch.h, gdbarch.c: Re-generate.
6187 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6188 (sparc_gdbarch_init): Set breakpoint_from_pc to
6189 sparc_breakpoint_from_pc.
6190 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6191 (BREAKPOINT_FROM_PC): Define.
6192 (sparc_breakpoint_from_pc): Declare.
6193 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6194 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6195 (BREAKPOINT_FROM_PC): Define.
6196 (BREAKPOINT): Delete macro.
6197 * target.h: Update comment.
6198 * s390-tdep.c (s390_gdbarch_init): Update comments.
6199 * remote.c: Update comments.
6200 * remote-mips.c: Update comments.
6201 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6202 * mem-break.c: Update comment.
6203 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6204 (ia64_memory_insert_breakpoint): Update.
6205 * config/sparc/tm-sparc.h: Update comment.
6206 * config/pa/tm-hppa64.h: Update comment.
6207 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6208 (rs6000_breakpoint_from_pc): Update.
6209 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6210 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6211 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6212 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6213 (mips_breakpoint_from_pc): Update.
6214 (mips_dump_tdep): Update.
6215
e06963ff
AC
6216 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6217 * minsyms.c (lookup_minimal_symbol): Inline
6218 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6219
973177d3
AC
6220 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6221 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6222 * p-lang.c (pascal_printstr): Ditto.
6223 * objc-lang.c (objc_printstr): Ditto.
6224 * m2-lang.c (m2_printstr): Ditto.
6225 * jv-valprint.c (java_print_value_fields): Ditto.
6226 * f-lang.c (f_printstr): Ditto.
6227 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6228 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6229 for repeat_count_threshold.
6230 * Makefile.in (cp-valprint.o): Update dependencies.
6231
5ea2bd7f 62322003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6233
5ea2bd7f
JJ
6234 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6235 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6236 they start with mov r2,r12. Support skipping over indirect stores
6237 of the input registers. Upon hitting a non-nop branch instruction
6238 or predicated instruction, bail out by setting lim_pc to the current
6239 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6240 beyond our calculated value and we have trust_limit set,
6241 use the lim_pc value.
6242
cc8c88f3
AC
62432003-05-15 Andrew Cagney <cagney@redhat.com>
6244
6245 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6246 generic_find_dummy_frame.
6247 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6248 (deprecated_generic_find_dummy_frame): Update.
6249 (deprecated_read_register_dummy): Update.
6250 * frame.c (deprecated_generic_get_saved_register): Update.
6251
909cd28e
TR
62522003-05-15 Theodore A. Roth <troth@openavr.org>
6253
6254 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6255 (avr_gdbarch_init): Set breakpoint_from_pc method.
6256
b923b08d
AC
62572003-05-15 Andrew Cagney <cagney@redhat.com>
6258
6259 * regcache.c (build_regcache): Set deprecated_register_valid
6260 directly.
6261 (deprecated_grub_regcache_for_register_valid): Delete function.
6262 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6263 declaration.
6264
ae2f03ac 62652003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6266
6267 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6268 * symtab.c (lookup_symbol_aux): Delete calls to
6269 lookup_symbol_aux_minsyms.
6270 (lookup_symbol_aux_minsyms): Comment out function and
6271 prototype. Delete lookup by mangled name.
ae2f03ac 6272
18ec9831
KB
62732003-05-14 Kevin Buettner <kevinb@redhat.com>
6274
6275 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6276 correctly indicate an empty stack and ``stack_allocated'' to the
6277 indicate the number of elements initially allocated.
6278 (dwarf_expr_grow_stack): Simplify method for computing new
6279 stack size. Don't loop infinitely if ``stack_len'' is zero.
6280 (execute_stack_op): Move ``ctx->in_reg'' initialization
6281 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6282 be used in conjuction with DW_OP_piece. Revise error message
6283 accordingly.
6284
de18ac1f
TR
62852003-05-14 Theodore A. Roth <troth@openavr.org>
6286
6287 * MAINTAINERS: Update my email address.
6288 * avr-tdep.c: Ditto.
6289
176620f1
EZ
62902003-05-14 Elena Zannoni <ezannoni@redhat.com>
6291
6292 * symtab.h (enum domain_enum): Rename from namespace_enum.
6293 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6294 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6295 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6296 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6297 TYPES_NAMESPACE, METHODS_NAMESPACE.
6298 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6299 (struct symbol, struct partial_symbol): Rename field
6300 'namespace_enum namespace' to 'domain_enum domain'.
6301 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6302 Delete old define kludge for namespace.
6303
6304 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6305 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6306 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6307 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6308 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6309 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6310 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6311 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6312 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6313 occurrences of the above.
6314
b7f31508
ILT
63152003-05-14 Ian Lance Taylor <ian@airs.com>
6316
6317 * Makefile.in (install-only): Use $(SHELL) when running
6318 mkinstalldirs.
6319
2fdbdd39
ILT
63202003-05-13 Ian Lance Taylor <ian@airs.com>
6321
a208d82c
ILT
6322 * MAINTAINERS (write after approval): Add myself.
6323
2fdbdd39
ILT
6324 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6325 second and third arguments.
6326 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6327 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6328
fbd9dcd3
AC
63292003-05-13 Andrew Cagney <cagney@redhat.com>
6330
6331 * defs.h (store_address): Delete declaration.
6332 findvar.c (store_address): Delete function.
6333 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6334 store_unsigned_integer.
6335 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6336 * v850-tdep.c (v850_push_arguments): Ditto.
6337 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6338 * sh-tdep.c (sh64_get_saved_register): Ditto.
6339 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6340 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6341 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6342 (mips_get_saved_register): Ditto.
6343 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6344 (find_func_descr, ia64_push_arguments): Ditto.
6345 * i386-tdep.c (i386_push_arguments): Ditto.
6346 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6347 * frv-tdep.c (frv_push_arguments): Ditto.
6348 * frame.c (legacy_saved_regs_prev_register): Ditto.
6349 (deprecated_generic_get_saved_register): Ditto.
6350 * findvar.c (unsigned_address_to_pointer): Ditto.
6351 * dwarf2read.c (dwarf2_const_value): Ditto.
6352 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6353 * alpha-tdep.c (alpha_push_arguments): Ditto.
6354
6760f9e6
JB
63552003-05-12 J. Brobecker <brobecker@gnat.com>
6356
6357 * NEWS: Mention that the hppa-hpux port has been partially
6358 multiarched (32bit ABIT only, so far).
6359
30e221b4
AC
63602003-05-11 Andrew Cagney <cagney@redhat.com>
6361
6362 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6363 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6364 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6365 sim/testsuite/sim/arm/misaligned2.ms, and
6366 sim/testsuite/sim/arm/misaligned3.ms.
6367 * disasm.h (struct ui_file): Add opaque struct declaration.
6368 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6369 * frame.h (struct ui_file): Ditto.
6370
dea7f9ba
MK
63712003-05-11 Mark Kettenis <kettenis@gnu.org>
6372
6373 * value.h: Pretty print.
6374
01986c48
MK
63752003-05-10 Mark Kettenis <kettenis@gnu.org>
6376
6377 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6378
123a958e
AC
63792003-05-08 Andrew Cagney <cagney@redhat.com>
6380
6381 * regcache.h (max_register_size): Delete declaration.
6382 * regcache.c (max_register_size): Delete function.
6383 (struct regcache_descr): Delete field "max_register_size".
6384 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6385 registers fit in MAX_REGISTER_SIZE.
6386 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6387 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6388 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6389 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6390 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6391 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6392 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6393 * dve3900-rom.c, hppa-tdep.c: Ditto.
6394
eb294659
DC
63952003-05-08 David Carlton <carlton@math.stanford.edu>
6396
6397 * valops.c (push_word): Fix typo.
6398
d9d9c31f
AC
63992003-05-08 Andrew Cagney <cagney@redhat.com>
6400
6401 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6402 * gdbarch.h: Re-generate.
6403 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6404 (legacy_max_register_raw_size): Delete declaration.
6405 * regcache.c (legacy_max_register_raw_size): Delete function.
6406 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6407 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6408 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6409 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6410 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6411 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6412 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6413 * findvar.c, dwarf2cfi.c: Ditto.
6414
22540ece
AC
64152003-05-08 Andrew Cagney <cagney@redhat.com>
6416
6417 * mips-tdep.c (read_signed_register): New function, moved to here
6418 from "regcache.c".
6419 (read_signed_register_pid): Ditto.
6420 * regcache.c (read_signed_register_pid): Delete function, moved to
6421 "mips-tdep.c".
6422 (read_signed_register): Ditto.
6423 * regcache.h (read_signed_register): Delete declaration.
6424 (read_signed_register_pid): Delete declaration.
6425
0c92afe8
AC
64262003-05-08 Andrew Cagney <cagney@redhat.com>
6427
6428 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6429 * gdbarch.h: Re-generate.
6430 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6431 (legacy_max_register_virtual_size): Delete declaration.
6432 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6433 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6434 * tracepoint.c (memrange_sortmerge): Ditto.
6435 * sparc-tdep.c (sparc_print_registers): Ditto.
6436 * regcache.c (legacy_max_register_virtual_size): Delete function.
6437
6037b830
JB
64382002-05-08 J. Brobecker <brobecker@gnat.com>
6439
6440 * fork-child.c (escape_bang_in_quoted_argument): New function.
6441 (fork_inferior): Escape '!' characters in quoted arguments
6442 only when needed.
6443
5d62c8b1
JB
64442003-05-08 J. Brobecker <brobecker@gnat.com>
6445
6446 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6447 the language of the CU is not currently supported by GDB.
6448
20a0e81d
JB
64492003-05-08 J. Brobecker <brobecker@gnat.com>
6450
6451 * defs.h (language): Add language_minimal enum value.
6452 * c-lang.c (minimal_language_defn): New language definition.
6453 (_initialize_c_language): Add the new minimal language to the list
6454 of languages known to GDB.
6455
710ee10a
KB
64562003-05-08 Kevin Buettner <kevinb@redhat.com>
6457
6458 * frame.c (get_frame_type): Don't attempt to lazily initialize
6459 frame's unwinder for legacy frames.
6460
1750fa04
AC
64612003-05-07 Andrew Cagney <cagney@redhat.com>
6462
6463 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6464 and "regcache" parameters.
6465 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6466
ddf9f258 64672003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6468
6469 * dwarf2read.c (dwarf_decode_lines): Only use output of
6470 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6471 the current address.
6472
87767c29
AC
64732003-05-07 Andrew Cagney <cagney@redhat.com>
6474
6475 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6476 code.
6477
5e7b2f39
JB
64782003-05-07 Jim Blandy <jimb@redhat.com>
6479
6480 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6481 'maint info symtabs' and 'maint info psymtabs'.
6482 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6483 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6484 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6485 Declarations updated.
6486 * maint.c (maintenance_list_command): Delete.
6487 (_initialize_maint_cmds): Update calls to add_cmd.
6488 * gdbcmd.h (maintenancelistlist): Delete declaration.
6489 * cli/cli-cmds.c (maintenancelistlist): Delete.
6490 (init_cmd_lists): Don't initialize it.
6491 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6492
f6684c31
AC
64932003-05-07 Andrew Cagney <cagney@redhat.com>
6494
6495 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6496 "regcache".
6497 (d10v_print_registers_info): Update.
6498 (d10v_dmap_register, d10v_imap_register): Delete functions.
6499 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6500 and "imap_register".
6501 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6502 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6503 * arch-utils.c (generic_remote_translate_xfer_address): Add
6504 "regcache" and "gdbarch" parameters.
6505 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6506 parameter. Change class to multi-arch.
6507 * gdbarch.h, gdbarch.c: Re-generate.
6508 * remote.c (remote_xfer_memory): Use
6509 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6510
e4846b08
JJ
65112003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6512
6513 * infrun.c (prev_pc): Move declaration ahead of proceed().
6514 (proceed): Refresh prev_pc value before resuming.
6515 (stop_stepping): Remove code to refresh prev_pc.
6516
6b71b8ac
KW
65172003-05-06 Kris Warkentin <kewarken@qnx.com>
6518
6519 * nto-tdep.c: Removed stray comment.
6520
47979a4b
KW
65212003-05-06 Kris Warkentin <kewarken@qnx.com>
6522
6523 * i386-nto-tdep.c: Fix old K&R function definitions.
6524 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6525 Also change add_show_from_set() call to add_setshow_cmd().
6526 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6527
00905d52
AC
65282003-05-05 Andrew Cagney <cagney@redhat.com>
6529
6530 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6531 (fprint_dummy_frames): New function.
6532 (maintenance_print_dummy_frames): New function.
6533 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6534 * frame.c (fprint_frame_id): Make global.
6535 * frame.h (fprint_frame_id): Declare.
6536 * Makefile.in (dummy-frame.o): Update dependencies.
6537
b1e29e33
AC
65382003-05-05 Andrew Cagney <cagney@redhat.com>
6539
6540 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6541 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6542 SIZEOF_CALL_DUMMY_WORDS.
6543 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6544 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6545 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6546 CALL_DUMMY_BREAKPOINT_OFFSET.
6547 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6548 CALL_DUMMY_START_OFFSET.
6549 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6550 * gdbarch.h, gdbarch.c: Re-generate.
6551 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6552 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6553 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6554 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6555 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6556 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6557 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6558 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6559 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6560 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6561 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6562 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6563 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6564 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6565 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6566
65672003-05-05 Kris Warkentin <kewarken@qnx.com>
6568
6569 * configure.tgt: Add i[3456]86-*-nto*.
6570 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6571 * nto-tdep.c: New file. Neutrino target support routines.
6572 * nto-tdep.h: New file. Neutrino target header.
6573 * config/tm-qnxnto.h: New file.
6574 * config/i386/i386nto.mt: New file.
6575 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6576
0ce3d317
AC
65772003-05-04 Andrew Cagney <cagney@redhat.com>
6578
6579 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6580 (load_infrun_state): Ditto.
6581 (struct thread_info): Drop "prev_func_name" field.
6582 * thread.c (load_infrun_state): Update.
6583 (save_infrun_state): Update.
6584 * infrun.c (prev_func_name): Delete variable.
6585 (init_wait_for_inferior): Do not clear prev_func_name.
6586 (stop_stepping, keep_going, context_switch): Do not swap
6587 prev_func_name.
6588 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6589 instead of PC_IN_SIGTRAMP.
6590
46654a5b
AC
65912003-05-04 Andrew Cagney <cagney@redhat.com>
6592
6593 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6594 REGISTER_BYTE with register_offset_hack.
6595 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6596 that REGISTER_BYTE is consistent with the regcache.
6597 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6598 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6599
14b08c1b
MK
66002003-05-04 Mark Kettenis <kettenis@gnu.org>
6601
04c8243f
MK
6602 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6603 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6604
14b08c1b
MK
6605 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6606
c7a11e01
JB
66072003-05-03 J. Brobecker <brobecker@gnat.com>
6608
6609 From Thierry Schneider <tpschneider1@yahoo.com>
6610 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6611 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6612 (mi-cmd-symbol.o): Add rule.
6613
7043d8dc
AC
66142003-05-03 Andrew Cagney <cagney@redhat.com>
6615
6616 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6617 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6618 * gdbarch.h, gdbarch.c: Re-generate.
6619 * d10v-tdep.c (d10v_push_dummy_code): New function.
6620 (d10v_gdbarch_init): Set push_dummy_code.
6621 * infcall.c (legacy_push_dummy_code): New function.
6622 (generic_push_dummy_code): New function.
6623 (push_dummy_code): New function.
6624 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6625 instead of dummy_addr, to push_dummy_call. Move call to
6626 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6627 switch.
6628 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6629
92bf2b80
AC
66302003-05-03 Andrew Cagney <cagney@redhat.com>
6631
6632 * disasm.h (print_insn): Declare.
6633 * disasm.c (init_gdb_disassemble_info): New function.
6634 (gdb_disassembly): Call init_gdb_disassemble_info.
6635 (gdb_print_insn): New function.
6636 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6637 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6638 * mcore-tdep.c: Include "disasm.h"
6639 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6640 * d10v-tdep.c: Include "disasm.h".
6641 (display_trace): Call gdb_print_insn, instead of print_insn.
6642 (print_insn): Delete function.
6643 * printcmd.c: Include "disasm.h".
6644 (print_insn): Delete function.
6645 (print_formatted): Call gdb_print_insn, instead of print_insn.
6646 * Makefile.in (printcmd.o): Update dependencies.
6647 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6648
27d94c49
AC
66492003-05-02 Andrew Cagney <cagney@redhat.com>
6650
82de1e5b
AC
6651 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6652 PC_REGNUM, re-indent.
6653 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6654 PC_REGNUM isn't set.
6655
27d94c49
AC
6656 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6657 * gdbarch.h, gdbarch.c: Re-generate.
6658 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6659 register_virtual_size, pc_regnum, or register_bytes.
6660 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6661 (d10v_register_type): Use D10V_PC_REGNUM.
6662 (d10v_print_registers_info, d10v_read_pc): Ditto.
6663 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6664 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6665
a9c0dc7f
DC
66662003-05-02 David Carlton <carlton@bactrian.org>
6667
6668 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6669 the name with mstrsave.
6670
e33d66ec
EZ
66712003-05-02 Elena Zannoni <ezannoni@redhat.com>
6672
6673 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6674 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6675 (host_charset_name, target_charset_name): New vars for use by
6676 set/show commands.
6677 (host_charset_enum, target_charset_enum): New enums for set/show
6678 commands.
6679 (set_charset_sfunc, set_host_charset_sfunc,
6680 set_target_charset_sfunc): New functions.
6681 (set_host_charset, set_target_charset): Make static.
6682 (list_charsets, set_host_charset_command,
6683 set_target_charset_command): Delete functions.
6684 (show_charset_command): Rewrite as....
6685 (show_charset): Hook this up with the set/show command mechanism.
6686 (_initialize_charset): Change names of charsets to match the
6687 set/show enums. Use host_charset_name and target_charset_name.
6688 Use set/show mechanism for charset, host-charset, target-charset
6689 commands. Do not make 'show host-charset' and 'show
6690 target-charset' be aliases of 'show charset'.
6691
6692 * charset.h (set_host_charset, set_target_charset): Don't export,
6693 they are not used outside the file.
6694
2b6fd0d8
AC
66952003-05-01 Andrew Cagney <cagney@redhat.com>
6696
6697 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6698 (gdb_disassembly): Make "di" non static, always initialize and
6699 cleanup. Always use dis_asm_read_memory.
6700 (gdb_dis_asm_read_memory): Delete function.
6701
6ae2f580
AC
67022003-05-01 Andrew Cagney <cagney@redhat.com>
6703
6704 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6705 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6706
810ecf9f
AC
67072003-04-30 Andrew Cagney <cagney@redhat.com>
6708
6709 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6710 "tm_print_insn_info".
6711 (TARGET_PRINT_INSN_INFO): Delete macro.
6712 (dis_asm_read_memory): Delete function declaration.
6713 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6714 (tm_print_insn_info): Delete variable definition.
6715 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6716 * gdbarch.h, gdbarch.c: Re-generate.
6717 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6718 "deprecated_tm_print_insn_info".
6719 * mcore-tdep.c (mcore_dump_insn): Ditto.
6720 * mips-tdep.c (mips_gdbarch_init): Ditto.
6721 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6722 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6723 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6724 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6725 instead of TARGET_PRINT_INSN_INFO, add comment.
6726 * s390-tdep.c (s390_get_frame_info): Instead of
6727 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6728 (s390_check_function_end, s390_is_sigreturn): Ditto.
6729 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6730 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6731 * disasm.c: Include "gdbcore.h".
6732 (_initialize_disasm): New function, initialize
6733 "deprecated_tm_print_insn_info".
6734 (deprecated_tm_print_insn_info): New variable.
6735 (dis_asm_read_memory): Moved from "corefile.c", made static.
6736 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6737 * Makefile.in (disasm.o): Update dependencies.
6738
07020390
AC
67392003-04-30 Andrew Cagney <cagney@redhat.com>
6740
6741 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6742
a9fa03de
AF
67432003-04-29 Adam Fedor <fedor@gnu.org>
6744
6745 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6746 * infcall.c (find_function_addr): Make non-static.
6747 * infcall.h (find_function_addr): Declare.
6748 * Makefile.in (eval.o): Update dependencies.
6749
1bae87b9
AF
67502003-04-28 Adam Fedor <fedor@gnu.org>
6751
6752 * symtab.c (symbol_find_demangled_name): Check for and demangle
6753 ObjC symbols.
6754 (symbol_init_demangled_name): Init for language_objc as well.
6755
0ba6dca9
AC
67562003-04-28 Andrew Cagney <cagney@redhat.com>
6757
6758 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6759 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6760 * gdbarch.h, gdbarch.c: Re-generate.
6761 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6762 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6763 * inferior.h (deprecated_read_fp): Rename read_fp.
6764 (generic_target_read_fp): Delete declaration.
6765 * regcache.c (generic_target_read_fp): Delete function.
6766 (deprecated_read_fp): Replace read_fp, use
6767 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6768 * d10v-tdep.c (d10v_read_fp): Delete function.
6769 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6770
6771 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6772 deprecated_target_read_fp to generic_target_read_fp.
6773 * sh-tdep.c (sh_gdbarch_init): Ditto.
6774 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6776 * frv-tdep.c (frv_gdbarch_init): Ditto.
6777
6778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6779 deprecated_fp_regnum.
6780 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6781 * vax-tdep.c (vax_gdbarch_init): Ditto.
6782 * v850-tdep.c (v850_gdbarch_init): Ditto.
6783 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6784 * sh-tdep.c (sh_gdbarch_init): Ditto.
6785 * s390-tdep.c (s390_gdbarch_init): Ditto.
6786 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6787 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6788 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6789 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6791 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6792 * i386-tdep.c (i386_gdbarch_init): Ditto.
6793 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6794 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6795 * frv-tdep.c (frv_gdbarch_init): Ditto.
6796 * cris-tdep.c (cris_gdbarch_init): Ditto.
6797 * avr-tdep.c (avr_gdbarch_init): Ditto.
6798 * arm-tdep.c (arm_gdbarch_init): Ditto.
6799 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6800
6801 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6802 * v850-tdep.c (v850_gdbarch_init): Ditto.
6803 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6804 * sh-tdep.c (sh_gdbarch_init): Ditto.
6805 * s390-tdep.c (s390_gdbarch_init): Ditto.
6806 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6807 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6808 * mips-tdep.c (mips_gdbarch_init): Ditto.
6809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6810 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6811 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6812 * frv-tdep.c (frv_gdbarch_init): Ditto.
6813 * avr-tdep.c (avr_gdbarch_init): Ditto.
6814 * arm-tdep.c (arm_gdbarch_init): Ditto.
6815
6816 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6817 DEPRECATED_FP_REGNUM.
6818 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6819 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6820 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6821 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6822 (sparc32_register_virtual_type): Ditto.
6823 * sh-tdep.c (sh64_frame_chain): Ditto.
6824 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6825 (sh_nofp_frame_init_saved_regs): Ditto.
6826 (sh64_nofp_frame_init_saved_regs): Ditto.
6827 (sh_fp_frame_init_saved_regs): Ditto.
6828 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6829 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6830 * procfs.c (procfs_fetch_registers): Ditto.
6831 (procfs_store_registers): Ditto.
6832 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6833 (store_inferior_registers, fetch_core_registers): Ditto.
6834 (fetch_kcore_registers, clear_regs): Ditto.
6835 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6836 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6837 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6838 * nlm/i386.c (do_status): Ditto.
6839 * mipsv4-nat.c (supply_gregset): Ditto.
6840 * mips-tdep.c: Ditto for comments.
6841 * mips-nat.c (fetch_inferior_registers): Ditto.
6842 (store_inferior_registers, fetch_core_registers): Ditto.
6843 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6844 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6845 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6846 (i386_do_pop_frame, i386_register_type): Ditto.
6847 * hppa-tdep.c (hppa_frame_chain): Ditto.
6848 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6849 (hppa_pop_frame, hppa_read_fp): Ditto.
6850 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6851 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6852 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6853 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6854 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6855 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6856 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6857 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6858 * blockframe.c: Ditto for comments.
6859 * arch-utils.h: Ditto for comments.
6860 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6861 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6862 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6863 * alpha-tdep.h: Ditto for comments.
6864 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6865 (alpha_cannot_store_register): Ditto.
6866 (alpha_push_dummy_frame): Ditto.
6867 * alpha-nat.c (supply_gregset): Ditto.
6868
6869 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6870 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6871 * config/sparc/tm-sparc.h: Update comment.
6872
6873 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6874 deprecated_read_fp instead of TARGET_READ_FP.
6875 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6876 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6877 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6878 deprecated_read_fp instead of read_fp.
6879 * s390-tdep.c (s390_push_arguments): Ditto.
6880 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6881 * frame.h: Ditto in comments.
6882 * frame.c (legacy_get_prev_frame): Ditto.
6883 * dummy-frame.c (dummy_frame_this_id): Ditto.
6884 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6885
d7a27068
AC
68862003-04-28 Andrew Cagney <cagney@redhat.com>
6887
6888 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6889 * gdbarch.h, gdbarch.c: Re-generate.
6890 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6891 * vax-tdep.c (_initialize_vax_tdep): Update.
6892 * v850-tdep.c (_initialize_v850_tdep): Update.
6893 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6894 * s390-tdep.c (_initialize_s390_tdep): Update.
6895 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6896 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6897 * mips-tdep.c (_initialize_mips_tdep): Update.
6898 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6899 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6900 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6901 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6902 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6903 * frv-tdep.c (_initialize_frv_tdep): Update.
6904 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6905 (_initialize_cris_tdep): Update.
6906 * arch-utils.c (legacy_print_insn): Update.
6907 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6908
d2630e69
AF
69092003-04-26 Adam Fedor <fedor@gnu.org>
6910
6911 * linespec.c (decode_objc): New function to decode ObjC calls
6912 (decode_line_1): Check for ObjC calls (using decode_objc)
6913 * Makefile (linespec.o): Update dependencies.
6914
3086aeae
DJ
69152003-04-26 Daniel Jacobowitz <drow@mvista.com>
6916
6917 * breakpoint.h (struct breakpoint_ops): New.
6918 (struct breakpoint): Add ops member.
6919
6920 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6921 (mention): Use new breakpoint ops member.
6922 (set_raw_breakpoint): Initialize ops field to NULL.
6923 (print_exception_catchpoint, print_one_exception_catchpoint)
6924 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6925 (gnu_v3_exception_catchpoint_ops): New.
6926 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6927
1fbec6c3
AF
69282003-04-25 Adam Fedor <fedor@gnu.org>
6929
6930 * Makefile.in (COMMON_OBS): Add objc-lang.o
6931
0ef21242
AC
69322003-04-25 Andrew Cagney <cagney@redhat.com>
6933
6934 * d10v-tdep.c (print_insn): Delete function.
6935 (display_trace): Use TARGET_PRINT_INSN.
6936 (_initialize_d10v_tdep): Do not set tm_print_insn.
6937 (d10v_gdbarch_init): Set print_insn.
6938
f75493ed
AC
69392003-04-25 Andrew Cagney <cagney@redhat.com>
6940
6941 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6942 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6943 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6944 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6945 (nr_dmap_regs, a0_regnum): ... new functions.
6946 (d10v_print_registers_info): Use a0_regnum, use register_size.
6947 (d10v_register_byte): Delete function.
6948 (d10v_register_raw_size): Delete function.
6949 (d10v_register_type): Use a0_regnum.
6950 (d10v_print_registers_info): Use a0_regnum.
6951 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6952 (d10v_gdbarch_init): Do not set register_byte or
6953 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6954 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6955 extract_address.
6956 (trace_command): Use XCALLOC.
6957 (print_insn): Delete reference to tm_print_insn.
6958 (saved_regs_unwinder): Use store_unsigned_integer instead of
6959 store_address.
6960 * frame.h (FRAME_OBSTACK_CALLOC): Define
6961
2202b100
DC
69622003-04-25 David Carlton <carlton@bactrian.org>
6963
6964 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6965
4e45ca2e
AF
69662003-04-24 Adam Fedor <fedor@gnu.org>
6967
6968 * objc-lang.c: Include "valprint.h"
6969 * Makefile.in (objc-lang.o): Update dependencies.
6970
93de3e7f
AF
69712003-04-24 Adam Fedor <fedor@gnu.org>
6972
8ffd9b1b 6973 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6974 architecture dependant compilation and mark as unimplemented
6975 (until they get put in the gdbarch vector).
6976
0f20eeea
DC
69772003-04-23 David Carlton <carlton@bactrian.org>
6978
6979 * cp-support.c (cp_find_first_component): Accept 'operator' in
6980 more locations.
6981
74cfe982
AC
69822003-04-23 Andrew Cagney <cagney@redhat.com>
6983
6984 * infcall.c (call_function_by_hand): Eliminate redundant
6985 indentation. Move "saved_async" and "old_cleanups" to where they
6986 are needed.
8ffd9b1b 6987
52557533
AC
69882003-04-23 Andrew Cagney <cagney@redhat.com>
6989
6990 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6991 and "buffer". Move the "name" code to where it is needed.
6992
158775de
AC
69932003-04-23 Andrew Cagney <cagney@redhat.com>
6994
6995 * infcall.c (call_function_by_hand): Move variables "start_sp",
6996 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6997 code to ON_STACK switch branch.
8ffd9b1b 6998
ebc7896c
AC
69992003-04-23 Andrew Cagney <cagney@redhat.com>
7000
7001 * infcall.c (call_function_by_hand): Make declaration of "i",
7002 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7003 lint.
7004
d727590f
AC
70052003-04-23 Andrew Cagney <cagney@redhat.com>
7006
7007 * infcall.c (call_function_by_hand): Delete variable
7008 "n_method_args". Localize "param_type"'s declaration to the loop
7009 that it is used. Reinstate code assigning to said variable -
7010 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7011 Rationalize code using "param_type".
7012
d585e13a
AC
70132003-04-22 Andrew Cagney <cagney@redhat.com>
7014
7015 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7016 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7017 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7018 to DEPRECATED_PUSH_RETURN_ADDRESS.
7019
051caad9
KB
70202003-04-22 Kevin Buettner <kevinb@redhat.com>
7021
7022 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7023 on the DWARF2 register number prior to fetching a register.
7024
77296879
JB
70252003-04-22 J. Brobecker <brobecker@gnat.com>
7026
7027 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7028 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7029 this macro was always set to 0.
77296879
JB
7030 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7031 considering the fact that this macro was always set to 0.
7032 * hppa-tdep.h (hppa_store_return_value): Likewise.
7033 (hppa_extract_return_value): Likewise.
7034
4252f1df
JB
70352003-04-22 J. Brobecker <brobecker@gnat.com>
7036
7037 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7038 the hppa-pro target only.
7039
14604c6b
JB
70402003-04-21 J. Brobecker <brobecker@gnat.com>
7041
7042 Ongoing multi-arch conversion effort for HP/UX:
7043 * config/pa/tm-hppa.h: Move all macro that are no longer
7044 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7045 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7046
77eb01d1
JB
70472003-04-21 J. Brobecker <brobecker@gnat.com>
7048
7049 * config/pa/tm-hppa.h: Obsolete a section that was only used
7050 for hppa-pro.
7051
61995b3b
JB
70522003-04-21 J. Brobecker <brobecker@gnat.com>
7053
7054 Ongoing multi-arch conversion for HP/UX.
7055 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7056 if already defined (allows hppa64 to stay non-multiarched for now).
7057 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7058
4aa79dcc
AC
70592003-04-21 Andrew Cagney <cagney@redhat.com>
7060
7061 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7062
0f751ff2
AC
70632003-04-21 Andrew Cagney <cagney@redhat.com>
7064
7065 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7066 "i386_num_mmx_regs".
7067
04714b91
AC
70682003-04-21 Andrew Cagney <cagney@redhat.com>
7069
7070 * infcall.c: New file.
7071 * infcall.h: New file.
7072 * valarith.c: Include "infcall.h".
7073 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7074 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7075 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7076 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7077 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7078 (SFILES): Add "infcall.c"
7079 (COMMON_OBS): Add "infcall.o".
7080 (infcall.o): Specify dependencies.
7081 * value.h (call_function_by_hand): Delete declaration.
7082 * inferior.h (run_stack_dummy): Delete declaration.
7083 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7084 (run_stack_dummy): Move to "infcall.c", merged into
7085 call_function_by_hand.
7086 * valops.c (call_function_by_hand): Moved to "infcall.c".
7087 (find_function_addr, value_arg_coerce): Ditto.
7088 (unwindonsignal_p, coerce_float_to_double): Ditto.
7089 (_initialize_valops): Move "set/show coerce-float-to-double", and
7090 "set/show unwindonsignal" commands to "infcall.c".
7091 * v850-tdep.c, target.h: Update comments.
7092 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7093 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7094 (sh64_init_extra_frame_info): Update comments.
7095 * mn10300-tdep.c: Update comments.
7096 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7097 * config/sparc/tm-sparc.h: Update comments.
7098 * breakpoint.h: Update comments.
7099 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7100 * arm-tdep.c: Update comment.
7101
f9d3c2a8
MK
71022003-04-19 Mark Kettenis <kettenis@gnu.org>
7103
c40e1eab
MK
7104 * i386-tdep.c (i386_num_register_names): New variable.
7105 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7106 (MM0_REGNUM): Remove redundant parentheses in define.
7107 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7108 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7109 i386_mxcsr_regnum_p): Remove redundant parentheses.
7110 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7111
94ea66b3
MK
7112 * i386-tdep.c (i386_extract_return_value,
7113 i386_store_return_value): Correct check for availability of
7114 floating-point registers.
7115
54299a1d
MK
7116 * i386-tdep.c (i386_frame_num_args): Remove function.
7117 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7118
c86c27af
MK
7119 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7120 mmx_regnum_to_fp_regnum. Adjust all callers.
7121
f9d3c2a8
MK
7122 * i386-tdep.c (i386_get_longjmp_target): Use
7123 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7124 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7125 extract_address.
7126
94ba74a9
MK
71272003-04-19 Mark Kettenis <kettenis@gnu.org>
7128
7129 * core-regset.c: Update comments to reflect reality. Re-order
7130 includes.
7131 (fetch_core_registers): Use switch instead of if. Remove
7132 redundant prototype.
7133
4074e13c
JB
71342003-04-18 Jim Blandy <jimb@redhat.com>
7135
7136 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7137 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7138
e3ab4aba
RH
71392003-04-17 Richard Henderson <rth@redhat.com>
7140
7141 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7142
627bf7c1
EZ
71432003-04-17 Michael Snyder <msnyder@redhat.com>
7144 Karen Bennet <bennet@redhat.com>
7145
7146 Committed by Elena Zannoni <ezannoni@redhat.com>
7147 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7148
514621a9
EZ
71492003-04-17 Elena Zannoni <ezannoni@redhat.com>
7150
7151 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7152 value if the return type is void.
514621a9 7153
b4acd559
JJ
71542003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7155
7156 * thread-db.c: Reindented.
8ffd9b1b 7157
530b167e 71582003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7159
7160 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7161 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7162 as types.
7163
0a48e7e8
MS
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
8ffd9b1b 7187
ab9fe00e
KB
71882003-04-16 Kevin Buettner <kevinb@redhat.com>
7189
610a3745 7190 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7191 the size of ``long double'' to 16, instead of 8.
7192
e64a344c
MK
71932003-04-16 Mark Kettenis <kettenis@gnu.org>
7194
7195 * i386-linux-nat.c: Add some whitespace to make things more
7196 readable.
7197 (fetch_register, store_register, fetch_inferior_registers,
7198 store_inferior_registers): Get rid of assignment in if-statement.
7199 (store_register): Fix typo in error message.
7200
25d41031
AC
72012003-04-16 Andrew Cagney <cagney@redhat.com>
7202
7203 * utils.c (xmmalloc): Always allocate something, matches
7204 libiberty/xmalloc's semantics.
7205 (xmrealloc, xmcalloc): Ditto.
7206
c50901fd
AC
72072003-04-16 Andrew Cagney <cagney@redhat.com>
7208
7209 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7210 update comments.
7211 (get_frame_type): Initialize unwind and type when needed.
7212 (get_frame_id, frame_register_unwind): Ditto.
7213
f81824a9
AC
72142003-04-16 Andrew Cagney <cagney@redhat.com>
7215
7216 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7217 obsolete.
7218 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7219 * sparcl-stub.c: Obsolete file.
7220 * config/sparc/tm-sparclet.h: Obsolete file.
7221 * sparclet-stub.c: Obsolete file.
7222 * sparclet-rom.c: Obsolete file.
7223 * sparcl-tdep.c: Obsolete file.
7224 * config/sparc/tm-sparclite.h: Obsolete file.
7225 * config/sparc/sparclite.mt: Obsolete file.
7226 * config/sparc/sparclet.mt: Obsolete file.
7227 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7228 sparc86x-*-* obsolete.
7229
9219021c
DC
72302003-04-15 David Carlton <carlton@math.stanford.edu>
7231
7232 * Makefile.in (SFILES): Add cp-namespace.c.
7233 (COMMON_OBS): Add cp-namespace.o.
7234 (block.o): Depend on gdb_obstack_h and cp_support_h.
7235 (buildsym.o): Depend on cp_support_h.
7236 (cp-namespace.o): New.
7237 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7238 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7239 (dwarf2read.o): Depend on cp_support_h.
7240 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7241 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7242 processing_current_namespace.
7243 (read_namespace): Update processing_current_namespace; check for
7244 anonymous namespaces.
7245 (dwarf2_name): New function.
7246 (dwarf2_extension): Ditto.
7247 * cp-support.h: Update copyright, contributors.
7248 Add inclusion guards.
7249 Add opaque declaration for structs obstack, block, symbol.
7250 (struct using_direct): New struct.
7251 Add declarations for cp_find_first_component,
7252 cp_entire_prefix_len, processing_has_namespace_info,
7253 processing_current_namespace, cp_is_anonymous,
7254 cp_add_using_directive, cp_initialize_namespace,
7255 cp_finalize_namespace, cp_set_block_scope,
7256 cp_scan_for_anonymous_namespaces.
7257 * cp-namespace.c: New file.
7258 * cp-support.c: Update copyright.
7259 Include ctype.h, gdb_assert.h, gdbcmd.h.
7260 New variable maint_cplus_cmd_list.
7261 (cp_find_first_component): New function.
7262 (cp_entire_prefix_len, maint_cplus_command)
7263 (first_component_command, _initialize_cp_support): Ditto.
7264 * buildsym.c: Include cp-support.h.
7265 New variable using_list.
7266 (add_symbol_to_list): Check for anonymous namespaces.
7267 (finish_block): Set block's scope.
7268 (start_symtab): Initialize C++ namespace support.
7269 (end_symtab): Finalize C++ namespace support.
7270 * block.h: Add opaque declarations for structs
7271 block_namespace_info, using_direct, and obstack.
7272 Add declarations for block_set_scope and block_set_using.
7273 (struct block): Add 'language_specific' member.
7274 (BLOCK_NAMESPACE): New macro.
7275 * block.c: Include gdb_obstack.h and cp-support.h.
7276 (struct block_namespace_info): New struct.
7277 (block_set_scope): New function.
7278 (block_set_using, block_initialize_namespace): Ditto.
7279
d5a921c9
KB
72802003-04-14 Kevin Buettner <kevinb@redhat.com>
7281
7282 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7283 (locate_base): Return early if there aren't any link map offsets.
7284 (svr4_solib_create_inferior_hook): Warn if shared library support
7285 is unavailable.
7286
d2a52b27
DC
72872003-04-14 David Carlton <carlton@math.stanford.edu>
7288
7289 * symtab.c (symbol_set_names): Add prefix when storing Java names
7290 in hash table. Fix for PR java/1039.
7291
980cae7a
DC
72922003-04-14 David Carlton <carlton@math.stanford.edu>
7293
7294 * symtab.c (symbol_set_names): Rename 'name' arg to
7295 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7296 * symtab.h: Change 'name' argument in declaration of
7297 symbol_set_names to 'linkage_name'.
7298 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7299
e227b13c
AC
73002003-04-14 Andrew Cagney <cagney@redhat.com>
7301
7302 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7303 return the fully sign-extended register value.
7304 (get_frame_pointer): Ditto.
7305 (mips_pop_frame): Initialize "proc_desc" after checking for a
7306 dummy frame.
7307
36712a20
AC
73082003-04-14 Andrew Cagney <cagney@redhat.com>
7309
7310 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7311 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7312 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7313 (mips_push_register): Delete function.
7314 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7315 PUSH_FP_REGNUM.
7316
44ea7b70
JB
73172003-04-14 Jim Blandy <jimb@redhat.com>
7318
7319 * symmisc.c: #include "gdb_regex.h".
7320 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7321 functions.
7322 * maint.c (maintenance_list_command): New function.
7323 (_initialize_maint_cmds): Register the above as commands.
7324 * symtab.h (maintenance_list_symtabs,
7325 maintenance_list_psymtabs): New declarations.
7326 * cli/cli-cmds.c (maintenancelistlist): New variable.
7327 (init_cmd_lists): Initialize it.
7328 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7329 * gdbcmd.h (maintenancelistlist): New declaration.
7330 * Makefile.in (symmisc.o): Update dependencies.
7331
2d0c7962
EZ
73322003-04-14 Elena Zannoni <ezannoni@redhat.com>
7333
7334 * s390-nat.c: Include asm/types.h for addr_t.
7335
1947a811
CV
73362003-04-14 Corinna Vinschen <vinschen@redhat.com>
7337
7338 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7339 actually incoming type.
7340
adb616d7
AC
73412003-04-13 Andrew Cagney <cagney@redhat.com>
7342
7343 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7344 get_next_frame and get_frame_saved_regs.
7345
9b5e151c
AC
73462003-04-13 Andrew Cagney <cagney@redhat.com>
7347
7348 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7349 of gdbarch_num_regs.
7350
ef6e7e13
AC
73512003-04-13 Andrew Cagney <cagney@redhat.com>
7352
7353 * frame.h: Mention what replaced what in "struct frame_info".
7354 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7355 deprecated_update_frame_base_hack and
7356 deprecated_update_frame_pc_hack.
7357 * hppa-tdep.c: Ditto.
7358
61fbb938
DJ
73592003-04-13 Daniel Jacobowitz <drow@mvista.com>
7360
7361 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7362 to read_reg and update its comment. Remove regnum member.
7363 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7364 Don't call read_reg when setting in_reg. Call read_reg to get
7365 the frame base if it's in a register. Return the register number
7366 on the stack instead of in the context. Remove extra arguments
7367 to read_reg.
7368 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7369 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7370 the register number on the expression stack.
7371 (needs_frame_read_reg): Remove extra arguments.
7372
0d53c4c4
DJ
73732003-04-13 Daniel Jacobowitz <drow@mvista.com>
7374
7375 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7376 made non-static.
7377 (execute_stack_op): All callers updated.
7378 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7379 * dwarf2loc.c (find_location_expression): New function.
7380 (dwarf_expr_frame_base): Call it.
7381 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7382 (dwarf2_tracepoint_var_ref): New function, broken out from
7383 locexpr_tracepoint_var_ref.
7384 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7385 Make static.
7386 (loclist_read_variable, loclist_read_needs_frame): New functions.
7387 (loclist_describe_location, loclist_tracepoint_var_ref): New
7388 functions.
7389 (dwarf2_loclist_funcs): New struct location_funcs.
7390 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7391 (struct dwarf2_locexpr_baton): Add comments.
7392 (dwarf2_loclist_funcs): New extern.
7393 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7394 base_address and base_known.
7395 (dwarf_loc_buffer): New variable.
7396 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7397 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7398 (dwarf2_has_info): Initialize dwarf_loc_offset.
7399 (dwarf2_build_psymtabs): Read in .debug_loc.
7400 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7401 DWARF_LOC_SIZE.
7402 (psymtab_to_symtab_1): Likewise. Move base address calculation
7403 here, from...
7404 (dwarf2_get_pc_bounds): ... here. Use the base address from
7405 cu_header.
7406 (dwarf2_symbol_mark_computed): Handle location lists.
7407
6aca59a3
DJ
74082003-04-13 Daniel Jacobowitz <drow@mvista.com>
7409
7410 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7411 if the linkage name demangled successfully.
7412
aca1fcd0
MK
74132003-04-13 Mark Kettenis <kettenis@gnu.org>
7414
97095916
MK
7415 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7416 disassmbly_flavour): Removed.
7417
aca1fcd0
MK
7418 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7419
562a961f
MK
74202003-04-13 Mark Kettenis <kettenis@gnu.org>
7421
7422 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7423
bd013d54
AC
74242003-04-12 Andrew Cagney <cagney@redhat.com>
7425
7426 * frame.h (struct frame_info): Move definition from here ...
7427 * frame.c (struct frame_info): ... to here.
7428
167ef8b1
AC
74292003-04-12 Andrew Cagney <cagney@redhat.com>
7430
7431 * gdbthread.h (save_infrun_state): Delete parameter
7432 "prev_func_start".
7433 (struct thread_info): Delete field "prev_func_start".
7434 (load_infrun_state): Ditto.
7435 * thread.c (load_infrun_state, save_infrun_state): Update.
7436 * infrun.c (prev_func_start): Delete variable.
7437 (context_switch, init_wait_for_inferior): Update.
7438 (stop_stepping, keep_going): Update.
7439
da3331ec
AC
74402003-04-12 Andrew Cagney <cagney@redhat.com>
7441
7442 * gdbarch.sh: Add missing opaque declarations.
7443 * gdbarch.h: Regnerate.
7444 * symtab.h: Add missing opaque declarations.
7445 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7446 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7447 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7448 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7449 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7450 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7451 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7452 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7453 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7454 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7455 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7456 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7457 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7458
18adea3f
AC
74592003-04-11 Andrew Cagney <cagney@redhat.com>
7460
7461 * frame.c (get_frame_id): Return this frame's "id".
7462 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7463 function start.
7464 (legacy_saved_regs_this_id): Replace function body with
7465 internal-error.
7466 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7467 FRAME_OBSTACK_ZALLOC.
7468 (create_new_frame): Mark the frame ID as valid.
7469
2252e863
AO
74702003-04-11 Alexandre Oliva <aoliva@redhat.com>
7471
7472 * Makefile.in (libbfd_h): Added missing setting.
7473 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7474 according to the selected ABI.
7475
a8245ab8
JJ
74762003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7477
7478 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7479
6913c89a
AC
74802003-04-11 Andrew Cagney <cagney@redhat.com>
7481
7482 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7483 SAVED_PC_AFTER_CALL.
7484 * gdbarch.h, gdbarch.c: Regenerate.
7485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7486 * x86-64-tdep.c (x86_64_init_abi): Update.
7487 * vax-tdep.c (vax_gdbarch_init): Update.
7488 * v850-tdep.c (v850_gdbarch_init): Update.
7489 * sparc-tdep.c (sparc_gdbarch_init): Update.
7490 * sh-tdep.c (sh_gdbarch_init): Update.
7491 * s390-tdep.c (s390_gdbarch_init): Update.
7492 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7493 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7494 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7495 * mips-tdep.c (mips_gdbarch_init): Update.
7496 * mcore-tdep.c (mcore_gdbarch_init): Update.
7497 * m68k-tdep.c (m68k_gdbarch_init): Update.
7498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7499 * ia64-tdep.c (ia64_gdbarch_init): Update.
7500 (ia64_saved_pc_after_call): Update declaration.
7501 * i386ly-tdep.c (i386lynx_init_abi): Update.
7502 * i386-tdep.c (i386_gdbarch_init): Update.
7503 * hppa-tdep.c (hppa_gdbarch_init): Update.
7504 * h8300-tdep.c (h8300_gdbarch_init): Update.
7505 * frv-tdep.c (frv_gdbarch_init): Update.
7506 * cris-tdep.c (cris_gdbarch_init): Update.
7507 * avr-tdep.c (avr_gdbarch_init): Update.
7508 * arm-tdep.c (arm_gdbarch_init): Update.
7509 * alpha-tdep.c (alpha_gdbarch_init): Update.
7510 * ns32knbsd-nat.c (frame_num_args): Update.
7511 * ns32k-tdep.c (umax_frame_num_args): Update.
7512 * mips-tdep.c (mips_init_frame_pc_first): Update.
7513 * infrun.c (step_over_function): Update.
7514 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7515 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7516 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7517 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7518 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7519 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7520 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7521 * arch-utils.c (init_frame_pc_default): Update.
7522 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7523 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7524 declaration.
8ffd9b1b 7525
38edeab8
AC
75262003-04-11 Andrew Cagney <cagney@redhat.com>
7527
7528 * i387-tdep.c: Update copyright.
7529 (i387_to_double): Delete function.
7530 (double_to_i387): Delete function.
7531
81f8a206
AC
75322003-04-10 Andrew Cagney <cagney@redhat.com>
7533
7534 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7535 frame's function's address. Simplify.
7536 (d10v_frame_unwind_cache): Check that the frame's function is
7537 non-zero.
7538
6e691f7a
JB
75392003-04-10 Jim Blandy <jimb@redhat.com>
7540
7541 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7542 call to set_gdbarch_deprecated_push_arguments.
7543
7f78e237
AC
75442003-04-10 Andrew Cagney <cagney@redhat.com>
7545
7546 * frame.c (fprint_frame_id): New function.
7547 (fprint_frame_type, fprint_frame): New function.
7548 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7549 (create_sentinel_frame, get_frame_id): Ditto.
7550 (frame_id_p, frame_id_eq): Ditto.
7551 (frame_id_inner, create_new_frame): Ditto.
7552 (legacy_get_prev_frame, get_prev_frame): Ditto.
7553 (deprecated_update_frame_pc_hack): Ditto.
7554 (frame_register_unwind): Ditto.
7555 (deprecated_update_frame_base_hack): Ditto.
7556
f870b49b
CV
75572003-04-10 Corinna Vinschen <vinschen@redhat.com>
7558
7559 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7560 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7561 frame_chain function.
7562 * Makefile.in: Add dependencies due to above change.
7563
7c86889b
CV
75642003-04-10 Corinna Vinschen <vinschen@redhat.com>
7565
7566 * blockframe.c (legacy_frame_chain_valid): Move call to
7567 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7568 inside_entry_file.
7569
d0a55772
AC
75702003-04-09 Andrew Cagney <cagney@redhat.com>
7571
7572 * frame.h (struct frame_id): Replace "pc" and "base" with
7573 "stack_addr" and "code_addr". Update comments.
7574 (frame_id_build): Update parameter names and comment.
7575 (struct frame_info): Replace "id_p" and "id" with "this_id".
7576 * dummy-frame.c (dummy_frame_this_id): Update.
7577 * breakpoint.c (print_one_breakpoint): Update.
7578 * frame.c (get_frame_id): Update.
7579 (get_frame_base, frame_id_build): Update.
7580 (create_sentinel_frame, legacy_get_prev_frame): Update.
7581 (deprecated_update_frame_base_hack): Update.
7582 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7583 (frame_id_inner): Ditto.
7584
ac16bf07
AC
75852003-04-09 Andrew Cagney <cagney@redhat.com>
7586
7587 * defs.h (gdb_print_host_address): Make "addr" parameter a
7588 pointer constant.
7589 * utils.c (gdb_print_host_address): Update.
7590
366cfc9e
KB
75912003-04-09 Kevin Buettner <kevinb@redhat.com>
7592
7593 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7594 register number for R0 is 0.
7595
cd983b5c
JB
75962003-04-09 J. Brobecker <brobecker@gnat.com>
7597
7598 * frame.h (struct gdbarch): Add opaque structure definition
7599 to avoid a compilation warning on LynxOS 4.0.
7600
d1340264
AC
76012003-04-09 Andrew Cagney <cagney@redhat.com>
7602
7603 * frame.h (struct frame_info): Delete field "pc". Replace
7604 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7605 structure.
7606 * frame.c (frame_pc_unwind): Update.
7607 (create_sentinel_frame): Do not set "pc".
7608 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7609 (get_frame_pc): Call frame_pc_unwind.
7610 (deprecated_update_frame_pc_hack): Update.
7611 (create_new_frame): Use "pc" not "->pc".
7612
90a6fffb
AC
76132003-04-09 Andrew Cagney <cagney@redhat.com>
7614
7615 * frame.c (get_frame_id): Eliminate code updating "frame".
7616 (legacy_get_prev_frame): Ditto.
7617 (get_frame_base): Return id.base directly.
7618 (deprecated_update_frame_base_hack): Update "id.base".
7619 * frame.h (struct frame_info): Delete field "frame".
7620
2fbce691
AC
76212003-04-09 Andrew Cagney <cagney@redhat.com>
7622
7623 * NEWS: Mention that the "Sequent family" is obsolete.
7624 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7625 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7626 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7627 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7628 * config/i386/tm-ptx4.h: Obsolete file.
7629 * config/i386/tm-ptx.h: Obsolete file.
7630 * symm-tdep.c: Obsolete file.
7631 * config/i386/symmetry.mt: Obsolete file.
7632 * config/i386/tm-symmetry.h: Obsolete file.
7633 * symm-nat.c: Obsolete file.
7634 * config/i386/nm-symmetry.h: Obsolete file.
7635 * config/i386/xm-symmetry.h: Obsolete file.
7636 * config/i386/symmetry.mh: Obsolete file.
7637 * config/i386/nm-ptx4.h: Obsolete file.
7638 * config/i386/ptx4.mh: Obsolete file.
7639 * config/i386/ptx.mt: Obsolete file.
7640 * config/i386/ptx.mh: Obsolete file.
7641 * config/i386/xm-ptx4.h: Obsolete file.
7642 * config/i386/xm-ptx.h: Obsolete file.
7643
78c43945
AC
76442003-04-09 Andrew Cagney <cagney@redhat.com>
7645
7646 Obsolete mips*-*-mach3*.
7647 * NEWS: Mention that mips*-*-mach3* is obsolete.
7648 * m3-nat.c: Obsolete file.
7649 * config/nm-m3.h: Obsolete file.
7650 * config/mips/tm-mipsm3.h: Obsolete file.
7651 * config/mips/mipsm3.mt: Obsolete file.
7652 * config/mips/mipsm3.mh: Obsolete file.
7653 * config/mips/xm-mipsm3.h: Obsolete file.
7654 * mipsm3-nat.c: Obsolete file.
7655 * configure.host: Obsolete mips-dec-mach3*.
7656 * configure.tgt: Obsolete mips*-*-mach3*.
7657
f1908289
AC
76582003-04-09 Andrew Cagney <cagney@redhat.com>
7659
7660 * doublest.h: Update copyright.
7661 (deprecated_store_floating, deprecated_extract_floating): Rename
7662 store_floating and extract_floating. Update comments.
7663 * doublest.c: Update copyright.
7664 (extract_floating_by_length): Replace extract_floating.
7665 (store_floating_by_length): Replace store_floating.
7666 (deprecated_extract_floating): New function.
7667 (deprecated_store_floating): New function.
7668 (extract_typed_floating): Call extract_floating_by_length.
7669 (store_typed_floating): Call store_floating_by_length.
7670 * x86-64-tdep.c (x86_64_store_return_value): Update.
7671 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7672 (sh64_extract_return_value): Update.
7673 (sh_sh4_register_convert_to_virtual): Update.
7674 (sh_sh64_register_convert_to_virtual): Update.
7675 (sh_sh4_register_convert_to_raw): Update.
7676 (sh_sh64_register_convert_to_raw): Update.
7677 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7678 (rs6000_register_convert_to_raw): Update.
7679 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7680 (ia64_register_convert_to_raw): Update.
7681 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7682 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7683 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7684 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7685 (alpha_register_convert_to_raw): Update.
7686
4443bd83
AC
76872003-04-08 Andrew Cagney <cagney@redhat.com>
7688
7689 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7690 * gdbarch.h, gdbarch.c: Re-generate.
7691 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7692 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7693 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7694 conditionally, use frame_pc_unwind as an alternative. Add
7695 comments.
7696 * arch-utils.c (init_frame_pc_default): Only call
7697 SAVED_PC_AFTER_CALL when available.
7698
c0236d92
EZ
76992003-04-08 Elena Zannoni <ezannoni@redhat.com>
7700
fbe586ae 7701 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7702 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7703 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7704 (start_remote): Ditto.
7705 (handle_inferior_event): Ditto.
7706 (save_inferior_status): Ditto.
7707 (restore_inferior_status): Ditto.
7708 * infcmd.c (attach_command): Ditto.
7709 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7710 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7711 * alpha-tdep.c (heuristic_proc_start): Ditto.
7712 * mips-tdep.c (heuristic_proc_start): Ditto.
7713 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7714 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7715 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7716 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7717 * remote-vx.c (vx_create_inferior): Ditto.
7718
77192003-04-08 Elena Zannoni <ezannoni@redhat.com>
7720
7721 * infrun.c (stop_soon_quietly): Make it an enum, to better
7722 override the default behavior of handle_inferior_event.
7723 (clear_proceed_status): Update uses of stop_soon_quietly to
7724 reflect that it is now an enum.
7725 (start_remote): Ditto.
7726 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7727 is set to handle the new GNU/Linux kernel behavior for
7728 attach/sigstop. Update uses of stop_soon_quietly.
7729 * inferior.h (enum stop_kind): New enum.
7730 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7731 Reset normal handle_inferior_event behavior, afterwards.
7732 * fork-child.c (startup_inferior): Update.
7733 * alpha-tdep.c (heuristic_proc_start): Update.
7734 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7735 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7736 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7737 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7738 * remote-vx.c (vx_create_inferior): Update.
7739 * mips-tdep.c (heuristic_proc_start): Update.
7740
1211bce3
EZ
77412003-04-07 Elena Zannoni <ezannoni@redhat.com>
7742
7743 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7744 be freed more than once, causing wild memory corruptions.
1211bce3 7745 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7746 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7747 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7748 with the "core" target.
1211bce3 7749
f0ef6b29
KB
77502003-04-07 Kevin Buettner <kevinb@redhat.com>
7751
7752 * mips-tdep.c (mips_print_fp_register): New function, created from
7753 do_fp_register_row(). Registers are now (also) printed as hex.
7754 Only one register is printed per row.
7755 (mips_print_register, do_fp_register_row): Print floating point
7756 registers with mips_print_fp_register().
7757
8cf71652
AC
77582003-04-06 Andrew Cagney <cagney@redhat.com>
7759
5e488a7b
AC
7760 * valprint.h (inspect_it): Add extern declaration.
7761 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7762 (selectors_info, classes_info): Ditto.
7763 (find_objc_msgcall): Fix indentation.
7764 (objc_printstr): Delete extern declarations.
7765
8cf71652
AC
7766 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7767
e6ba3bc9
AC
77682003-04-06 Andrew Cagney <cagney@redhat.com>
7769
7770 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7771 Update comment.
7772 * frame.c (legacy_saved_regs_this_id): Update.
7773 (legacy_get_prev_frame): Update.
7774 * xstormy16-tdep.c: Update comment.
7775 * sparc-tdep.c (sparc_frame_chain): Update comment.
7776 * blockframe.c (legacy_frame_chain_valid): Update.
7777
55e1d7e7
AC
77782003-04-06 Andrew Cagney <cagney@redhat.com>
7779
996179ee
AC
7780 * valprint.c (val_print_type_code_int): Delete #ifdef
7781 PRINT_TYPELESS_INTEGER code.
7782
55e1d7e7
AC
7783 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7784 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7785 multi-arch definition.
7786 * gdbarch.h: Re-generate.
7787
43bd9a9e
AC
77882003-04-05 Andrew Cagney <cagney@redhat.com>
7789
7790 Eliminate FRAME_FIND_SAVED_REGS.
7791 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7792 Change FSR parameter to a pointer.
7793 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7794 Assume FSR parameter is a pointer.
7795 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7796 Make fsr a pointer.
7797 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7798 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7799 saved_regs a pointer.
7800 (hppa_frame_saved_pc): Ditto.
7801 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7802 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7803 pointer.
7804 (restore_pc_queue): Make fsr a pointer.
7805 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7806 (hppa_frame_chain): Make saved_regs a pointer, call
7807 hppa_frame_init_saved_regs.
7808 * sparc-tdep.c: Include "gdb_assert.h".
7809 (sparc_frame_find_saved_regs): Replace internal_error with
7810 gdb_assert.
7811 * remote-vxsparc.c (vx_read_register): Delete reference to
7812 FRAME_FIND_SAVED_REGS.
7813 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7814 * gdbarch.h: Regenerate.
7815 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7816 (deprecated_get_frame_saved_regs): Delete declaration.
7817 (struct frame_saved_regs): Delete definition.
7818 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7819 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7820 (hppa_frame_find_saved_regs): Delete declaration.
7821 (FRAME_FIND_SAVED_REGS): Delete macro.
7822 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7823 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7824 FRAME_FIND_SAVED_REGS in comment.
7825
be41e9f4
AC
78262003-04-05 Andrew Cagney <cagney@redhat.com>
7827
7828 * frame.c (frame_func_unwind, get_frame_func): New functions.
7829 * frame.h (get_frame_func, frame_func_unwind): Declare.
7830 (struct frame_info): Add field "prev_func" for caching the
7831 previous frame's function address.
7832 * arm-tdep.c (arm_frameless_function_invocation): Combine
7833 get_pc_function_start and get_frame_pc into get_frame_func.
7834 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7835 (sh64_nofp_frame_init_saved_regs): Ditto.
7836 * s390-tdep.c (s390_function_start): Ditto.
7837 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7838 (rs6000_frameless_function_invocation): Ditto.
7839 (rs6000_frame_saved_pc): Ditto.
7840 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7841 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7842 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7843 (i386_frame_init_saved_regs): Ditto.
7844 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7845 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7846 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7847 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7848 * blockframe.c (frameless_look_for_prologue): Ditto.
7849
a01dd7cc
AC
78502003-04-05 Andrew Cagney <cagney@redhat.com>
7851
7852 * frame.c (legacy_get_prev_frame): Link prev to next at the
7853 function start. Update comments.
7854
5e5592e6
AC
78552003-04-05 Andrew Cagney <cagney@redhat.com>
7856
7857 * frame.c (get_frame_id): Update comment.
7858 (legacy_get_prev_frame): Update comment.
7859 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7860 * gdbarch.h: Regenerate.
7861 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7862 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7863
6fba5002
AC
78642003-04-05 Andrew Cagney <cagney@redhat.com>
7865
7866 * stack.c (print_frame_info): Use get_frame_pc.
7867
7df05f2b
AC
78682003-04-04 Andrew Cagney <cagney@redhat.com>
7869
7870 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7871 the frame's type from the unwinder.
7872 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7873 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7874 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7875 (get_frame_base_address): Use get_frame_type.
7876 (get_frame_locals_address, get_frame_args_address): Ditto.
7877 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7878 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7879 (struct frame_info): Add comment explaining why the frame contains
7880 a "type" field.
7881 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7882 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7883 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7884 NORMAL_FRAME.
7885 * frame-unwind.h: Include "frame.h".
7886 (struct frame_unwind): Add "type" field.
7887 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7888
11889732
AC
78892003-04-04 Andrew Cagney <cagney@redhat.com>
7890
7891 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7892 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7893 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7894 get_frame_base.
7895 (d10v_unwind_dummy_id): Use frame_id_build.
7896 * frame.c (find_frame_sal): Use get_frame_pc.
7897 (create_new_frame): Use deprecated_update_frame_pc_hack and
7898 deprecated_update_frame_base_hack.
7899 (create_sentinel_frame): Add comment about ->pc going away.
7900 (get_prev_frame): Add comment about ->pc going away.
7901 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7902 frame_id_build, deprecated_update_frame_pc_hack and
7903 deprecated_update_frame_base_hack.
7904 (select_frame): Use get_frame_pc.
7905 (legacy_saved_regs_this_id): Use frame_id_build.
7906
50c46a0d
EZ
79072003-04-04 Elena Zannoni <ezannoni@redhat.com>
7908
fbe586ae
RH
7909 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7910 signed integer case.
7911 (classify_argument): Handle enumerations and references.
50c46a0d 7912
50bbdbd9
AC
79132003-04-04 Andrew Cagney <cagney@redhat.com>
7914
7915 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7916 ID to NULL.
7917
36018d2e
AF
79182003-04-01 Adam Fedor <fedor@gnu.org>
7919
7920 * gdb/objc-lang.c (selectors_info): Replace calls to
7921 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7922 SYMBOL_NATURAL_NAME.
7923 (classes_info, find_methods): Likewise.
7924
35cec841
KB
79252003-04-03 Kevin Buettner <kevinb@redhat.com>
7926
7927 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7928 ``mach'' to the value determined by bfd_default_set_arch_mach().
7929
43136899
BR
79302003-04-02 Bob Rossi <bob_rossi@cox.net>
7931
7932 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7933 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7934 (mi-cmd-file.o): Update dependencies.
7935
040b99fd
KB
79362003-04-01 Kevin Buettner <kevinb@redhat.com>
7937
7938 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7939 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7940
9a3d7dfd
AF
79412003-04-01 Adam Fedor <fedor@gnu.org>
7942
7943 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7944 * language.h (struct language_defn): Add la_demangle.
7945 (language_demangle): Declare.
7946 * language.c (language_demangle): New function.
7947 (unk_lang_demangle): Likewise.
7948 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7949 Add ukn_lang_demangle.
9a3d7dfd 7950 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7951 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7952 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7953 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7954 * jv-lang.c (java_demangle): New function
7955 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7956 * objc-lang.c (objc_demangle): Add options argument
7957 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7958 * maint.c (maintenance_demangle): Replace switch with
7959 call to language_demangle.
7960 * utils.c (fprintf_symbol_filtered): Likewise.
7961
5e074003
AC
79622003-04-01 Andrew Cagney <cagney@redhat.com>
7963
7964 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7965 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7966 PRINT_TYPELESS_INTEGER.
7967 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7968 PUSH_RETURN_ADDRESS.
7969
270cb5d6
AC
79702003-04-01 Andrew Cagney <cagney@redhat.com>
7971
7972 * Makefile.in (d10v-tdep.o): Update dependencies.
7973 * d10v-tdep.c: Include "frame-base.h".
7974 (d10v_frame_unwind): Make constant.
7975 (d10v_frame_base_address): New function.
7976 (d10v_frame_base): New variable.
7977 (d10v_gdbarch_init): Set frame_base default.
7978 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7979 comment for base.
7980 (d10v_frame_unwind_cache): Set and use "prev_sp".
7981 (d10v_frame_this_id): Use the previous frame's inner most stack
7982 address and this frame's func address for the frame ID. Use
7983 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7984
6bfb3e36
AC
79852003-04-01 Andrew Cagney <cagney@redhat.com>
7986
7987 * frame.h (get_frame_locals_address, get_frame_args_address):
7988 Refer to the base address, instead of the address of the first
7989 local or parameter.
8ffd9b1b 7990
da62e633
AC
79912003-04-01 Andrew Cagney <cagney@redhat.com>
7992
7993 Add frame debug info addresses:
7994 * frame-base.c: New file.
7995 * frame-base.h: New file.
7996 * frame.h (struct frame_base): Add opaque declaration.
7997 (get_frame_base): Update comment.
7998 (get_frame_base_address): Declare.
7999 (get_frame_locals_address): Declare.
8000 (get_frame_args_address): Declare.
8001 (struct frame_info): Add "base" and "base_cache". Update
8002 comments on the unwinder.
8003 * frame.c: Include "frame-base.h".
8004 (get_frame_locals_address): New function.
8005 (get_frame_base_address): New function.
8006 (get_frame_args_address): New function.
8007 * findvar.c (read_var_value): Use get_frame_locals_address and
8008 get_frame_args_address.
8009 * stack.c (frame_info): Use get_frame_locals_address and
8010 get_frame_args_address.
8011 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8012 moved to "frame-base.c".
8013 * printcmd.c (print_frame_nameless_args): Ditto.
8014 * symtab.h (address_class): Update comments.
8015 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8016 get_frame_base_address.
8017 * dwarf2expr.c (execute_stack_op): Ditto.
8018 * Makefile.in (frame_base_h): Define.
8019 (frame.o): Update dependencies.
8020 (frame-base.o): Add dependencies.
8021 (SFILES): Add frame-base.c.
8022 (COMMON_OBS): Add frame-base.o.
8023
3d30e9c2
AC
80242003-04-01 Andrew Cagney <cagney@redhat.com>
8025
8026 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8027 CALL_DUMMY_LENGTH): Ditto.
8028 * gdbarch.c: Re-generate.
8029 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8030 (CALL_DUMMY_LENGTH): Delete macro.
8031 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8032 * arm-tdep.c (arm_gdbarch_init): Ditto.
8033 * avr-tdep.c (avr_gdbarch_init): Ditto.
8034 * cris-tdep.c (cris_gdbarch_init): Ditto.
8035 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8036 * frv-tdep.c (frv_gdbarch_init): Ditto.
8037 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8038 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8039 * i386-tdep.c (i386_gdbarch_init): Ditto.
8040 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8042 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8043 * mips-tdep.c (mips_gdbarch_init): Ditto.
8044 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8045 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8046 * s390-tdep.c (s390_gdbarch_init): Ditto.
8047 * sh-tdep.c (sh_gdbarch_init): Ditto.
8048 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8049 * v850-tdep.c (v850_gdbarch_init): Ditto.
8050 * vax-tdep.c (vax_gdbarch_init): Ditto.
8051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8052
ce0c7262
CV
80532003-04-01 Corinna Vinschen <vinschen@redhat.com>
8054
8055 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8056
73dd234f
AC
80572003-04-01 Andrew Cagney <cagney@redhat.com>
8058
8059 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8060 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8061 * gdbarch.h, gdbarch.c: Re-generate.
8062 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8063 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8064 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8065 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8066 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8067 * infcmd.c (run_stack_dummy): Simplify assuming
8068 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8069 * infrun.c (handle_inferior_event): Ditto.
8070 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8071 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8072 * arm-tdep.c (arm_gdbarch_init): Ditto.
8073 * avr-tdep.c (avr_gdbarch_init): Ditto.
8074 * cris-tdep.c (cris_gdbarch_init): Ditto.
8075 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8076 * frv-tdep.c (frv_gdbarch_init): Ditto.
8077 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8078 * i386-tdep.c (i386_gdbarch_init): Ditto.
8079 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8081 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8082 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8083 * mips-tdep.c (mips_gdbarch_init): Ditto.
8084 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8085 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8086 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8087 * s390-tdep.c (s390_gdbarch_init): Ditto.
8088 * sh-tdep.c (sh_gdbarch_init): Ditto.
8089 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8090 * v850-tdep.c (v850_gdbarch_init): Ditto.
8091 * vax-tdep.c (vax_gdbarch_init): Ditto.
8092 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8093
97606a13
DJ
80942003-04-01 Daniel Jacobowitz <drow@mvista.com>
8095
8096 * symfile.c (symfile_relocate_debug_section): Update call to
8097 bfd_simple_get_relocated_section_contents.
8098
e8ab51f7
AC
80992003-03-31 Andrew Cagney <cagney@redhat.com>
8100
8101 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8102 * gdbarch.h, gdbarch.c: Regenerate.
8103 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8104 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8105 available.
8106 * frame.h (generic_fix_call_dummy): Delete declaration.
8107 * dummy-frame.h: Update comment.
8108 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8110 fix_call_dummy.
8111 * sh-tdep.c (sh_gdbarch_init): Ditto.
8112 * s390-tdep.c (s390_gdbarch_init): Ditto.
8113 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8114 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8116 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8117 * i386-tdep.c (i386_gdbarch_init): Ditto.
8118 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8119 * frv-tdep.c (frv_gdbarch_init): Ditto.
8120 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8121 * cris-tdep.c (cris_gdbarch_init): Ditto.
8122 * avr-tdep.c (avr_gdbarch_init): Ditto.
8123 * arm-tdep.c (arm_gdbarch_init): Ditto.
8124
018d1b48
JB
81252003-03-31 J. Brobecker <brobecker@gnat.com>
8126
8127 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8128 (INIT_FRAME_AP): Likewise.
8129 (EXTRA_FRAME_INFO): Likewise.
8130
e9a2674e
AC
81312003-03-31 Andrew Cagney <cagney@redhat.com>
8132
8133 * gdbarch.sh: Include "symfile.h".
8134 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8135 * gdbarch.h, gdbarch.c: Re-generate.
8136 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8137 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8138 call_dummy_address, the default is at entry_point_address.
8139 * v850-tdep.c (v850_gdbarch_init): Ditto.
8140 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8141 * sh-tdep.c (sh_gdbarch_init): Ditto.
8142 * s390-tdep.c (s390_gdbarch_init): Ditto.
8143 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8144 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8146 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8147 * i386-tdep.c (i386_gdbarch_init): Ditto.
8148 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8149 * frv-tdep.c (frv_gdbarch_init): Ditto.
8150 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8151 * cris-tdep.c (cris_gdbarch_init): Ditto.
8152 * arm-tdep.c (arm_gdbarch_init): Ditto.
8153
e8a8712a
AC
81542003-03-31 Andrew Cagney <cagney@redhat.com>
8155
8156 * gdbarch.sh (CALL_DUMMY_P): Delete.
8157 * gdbarch.h, gdbarch.c: Re-generate.
8158 * inferior.h (CALL_DUMMY_P): Delete macro.
8159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8160 * vax-tdep.c (vax_gdbarch_init): Update.
8161 * v850-tdep.c (v850_gdbarch_init): Update.
8162 * sparc-tdep.c (sparc_gdbarch_init): Update.
8163 * sh-tdep.c (sh_gdbarch_init): Update.
8164 * s390-tdep.c (s390_gdbarch_init): Update.
8165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8166 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8167 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8168 * mips-tdep.c (mips_gdbarch_init): Update.
8169 * mcore-tdep.c (mcore_gdbarch_init): Update.
8170 * m68k-tdep.c (m68k_gdbarch_init): Update.
8171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8172 * ia64-tdep.c (ia64_gdbarch_init): Update.
8173 * i386-tdep.c (i386_gdbarch_init): Update.
8174 * h8300-tdep.c (h8300_gdbarch_init): Update.
8175 * frv-tdep.c (frv_gdbarch_init): Update.
8176 * d10v-tdep.c (d10v_gdbarch_init): Update.
8177 * cris-tdep.c (cris_gdbarch_init): Update.
8178 * breakpoint.c (deprecated_frame_in_dummy): Update.
8179 * avr-tdep.c (avr_gdbarch_init): Update.
8180 * alpha-tdep.c (alpha_gdbarch_init): Update.
8181 * arm-tdep.c (arm_gdbarch_init): Update.
8182 * dummy-frame.c (dummy_frame_this_id): Update comments.
8183 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8184 * frame.c (legacy_get_prev_frame): Ditto.
8185 * valops.c (call_function_by_hand): Delete function.
8186 (hand_function_call): Rename to call_function_by_hand
8187
ed234cf8
AC
81882003-03-30 Andrew Cagney <cagney@redhat.com>
8189
8190 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8191 * value.h (struct value): Update comment.
ed234cf8 8192
06c77151
AC
81932003-03-30 Andrew Cagney <cagney@redhat.com>
8194
6c2b5168
AC
8195 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8196 D10V_FP_REGNUM.
8197 (d10v_gdbarch_init): Do not set fp_regnum.
8198
06c77151
AC
8199 * frame.c (get_frame_base): Force ID initialization.
8200 (get_prev_frame): Move computation of the frame ID from here ...
8201 (get_frame_id): ... to here.
8202 (legacy_get_prev_frame): Mark the frame ID as valid.
8203 * frame.h (struct frame_info): Add field "id_p".
8204
97a1a11c
MK
82052003-03-30 Mark Kettenis <kettenis@gnu.org>
8206
8207 * i386-tdep.c (i386_store_struct_return): Removed.
8208 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8209
6c0e89ed
AC
82102003-03-30 Andrew Cagney <cagney@redhat.com>
8211
8212 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8213 * gdbarch.h, gdbarch.c: Regenerate.
8214 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8216 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8217 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8218 * i386-tdep.c (i386_gdbarch_init): Ditto.
8219 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8220 * cris-tdep.c (cris_gdbarch_init): Ditto.
8221 * vax-tdep.c (vax_gdbarch_init): Ditto.
8222 * s390-tdep.c (s390_gdbarch_init): Ditto.
8223 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8224 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8225 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8226 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8227 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8228 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8229 * sparc-tdep.c (sparc_gdbarch_init): Update.
8230 * sh-tdep.c (sh_gdbarch_init): Update.
8231 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8232 * mips-tdep.c (mips_gdbarch_init): Update.
8233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8234 * ia64-tdep.c (ia64_gdbarch_init): Update.
8235 * frv-tdep.c (frv_gdbarch_init): Update.
8236 * avr-tdep.c (avr_gdbarch_init): Update.
8237 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8238 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8239 instead of when push_dummy_call is not available.
8ffd9b1b 8240
f7dd6af2
AC
82412003-03-30 Andrew Cagney <cagney@redhat.com>
8242
8243 * infttrace.c: Include "gdbthread.h".
8244 (parent_attach_all): Fix function signature.
8245 (call_ptrace): Update call.
8246 * Makefile.in (infttrace.o): Update dependencies.
8247
28f617b3
AC
82482003-03-30 Andrew Cagney <cagney@redhat.com>
8249
8250 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8251 PUSH_RETURN_ADDRESS.
8252 * gdbarch.h, gdbarch.c: Regenerate.
8253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8254 * x86-64-tdep.c (x86_64_init_abi): Update.
8255 * v850-tdep.c (v850_gdbarch_init): Update.
8256 * sparc-tdep.c (sparc_gdbarch_init): Update.
8257 * sh-tdep.c (sh_gdbarch_init): Update.
8258 * s390-tdep.c (s390_gdbarch_init): Update.
8259 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8260 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8261 * mips-tdep.c (mips_gdbarch_init): Update.
8262 * mcore-tdep.c (mcore_gdbarch_init): Update.
8263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8264 * ia64-tdep.c (ia64_gdbarch_init): Update.
8265 * i386-tdep.c (i386_gdbarch_init): Update.
8266 * h8300-tdep.c (h8300_gdbarch_init): Update.
8267 * frv-tdep.c (frv_gdbarch_init): Update.
8268 * cris-tdep.c (cris_gdbarch_init): Update.
8269 * avr-tdep.c (avr_gdbarch_init): Update.
8270 * arm-tdep.c (arm_gdbarch_init): Update.
8271 * valops.c (hand_function_call): Update.
8272
4d628cd7
AC
82732003-03-29 Andrew Cagney <cagney@redhat.com>
8274
8275 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8276 sizeof_call_dummy_words.
8277 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8278 define.
8279 * gdbarch.h: Regenerate.
8ffd9b1b 8280
65e82032
AC
82812003-03-29 Andrew Cagney <cagney@redhat.com>
8282
8283 * infttrace.h: New file.
8284 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8285 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8286 (hpread_read_doc_function_type): Detect an initialized type1.
8287 (hpread_quick_traverse): Initialize mod_name_string.
8288 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8289 (som_solib_get_solib_by_pc): Declare.
8290 (so_lib_thread_start_addr): Declare.
8291 (no_shared_libraries): Declare.
8292 * somread.c (init_import_symbols): Make static. Add forward
8293 declaration.
8294 * config/pa/nm-hppah.h: Include "infttrace.h" for
8295 parent_attach_all.
8296 (hppa_insert_hw_watchpoint): Declare.
8297 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8298 * hppah-nat.c: Include "gdb_string.h".
8299 (parent_attach_all): Delete extern declaration, moved to
8300 "infttrace.h".
8301 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8302 int.
8303 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8304 * Makefile.in (infttrace_h): Define.
8305 (hpread.o): Update dependencies.
8306 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8307 * hppa-hpux-tdep.c: Include "gdb_string.h".
8308 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8309 * infrun.c (handle_inferior_event): Always initialize
8310 stepped_after_stopped_by_watchpoint. Add default and remove
8311 fallthrough in switch statement.
8312 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8313 parameter to int.
8314 (hppa_remove_hw_watchpoint): Ditto.
8315
2c3bbe77
AC
83162003-03-29 Andrew Cagney <cagney@redhat.com>
8317
8318 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8319 offset.
8320
2dd604e7
RE
83212003-03-29 Richard Earnshaw <rearnsha@arm.com>
8322
8323 * arm-tdep.c (arm_push_arguments): Delete.
8324 (struct stack_item): New type.
8325 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8326 (arm_store_struct_return): Delte.
8327 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8328 arm_push_arguments or arm_store_struct_return.
8329
e8933a55
AC
83302003-03-28 Andrew Cagney <cagney@redhat.com>
8331
8332 * Makefile.in (d10v-tdep.o): Update dependencies.
8333 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8334 * d10v-tdep.c: Include "remote.h".
8335 (target_resume_hook): Delete extern declaration.
8336 (target_wait_loop_hook): Ditto.
8337 (tdisassemble_command): Eliminate assignment in "if" conditional.
8338 (d10v_ts2_register_sim_regno): Eliminate call to
8339 legacy_register_sim_regno.
8340 (d10v_ts3_register_sim_regno): Ditto.
8341
6949171e
JJ
83422003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8343
8344 * thread.c: Reindented.
8345 * lin-lwp.c: Ditto.
8346 * linux-proc.c: Ditto.
8347
98c7071f
BR
83482003-03-28 Bob Rossi <bob_rossi@cox.net>
8349
fbe586ae 8350 * MAINTAINERS (write after approval): Add myself.
98c7071f 8351
5edc9ca6
TR
83522003-03-27 Theodore A. Roth <troth@openavr.org>
8353
8354 * objc-exp.y: Add missing semi-colons.
8355
378bfd1b
AC
83562003-03-27 Andrew Cagney <cagney@redhat.com>
8357
8358 * regcache.c (write_sp): Delete function and references.
8359 * inferior.h (write_sp): Delete declaration.
8360 * valops.c (hand_function_call): Replace write_sp with
8361 TARGET_WRITE_SP.
8362 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8363 (sparc_pop_frame): Ditto.
8ffd9b1b 8364
56056df7
AC
83652003-03-27 Andrew Cagney <cagney@redhat.com>
8366
8367 * NEWS: Mention removal of support for hppa*-*-bsd* and
8368 hppa*-*-osf* natives, and hppa*-*-pro* target.
8369 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8370 * config/pa/xm-pa.h: Obsolete file.
8371 * config/pa/xm-hppab.h: Obsolete file.
8372 * config/pa/nm-hppab.h: Obsolete file.
8373 * config/pa/tm-hppab.h: Obsolete file.
8374 * config/pa/tm-hppao.h: Obsolete file.
8375 * config/pa/nm-hppao.h: Obsolete file.
8376 * config/pa/tm-pro.h: Obsolete file.
8377 * config/pa/hppaosf.mt: Obsolete file.
8378 * config/pa/hppaosf.mh: Obsolete file.
8379 * config/pa/hppapro.mt: Obsolete file.
8380 * config/pa/hppabsd.mt: Obsolete file.
8381 * config/pa/hppabsd.mh: Obsolete file.
8382 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8383 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8384 hppa*-*-osf*.
8385
5873a88d
AC
83862003-03-27 Andrew Cagney <cagney@redhat.com>
8387
8388 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8389 push_arguments. Don't set push_return_address or write_sp.
8390 (d10v_push_dummy_call): Replace d10v_push_arguments.
8391 (d10v_push_return_address, d10v_write_sp): Delete function,
8392 handled by push_dummy_call.
8393
b81774d8
AC
83942003-03-26 Andrew Cagney <cagney@redhat.com>
8395
8396 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8397 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8398 regcache and dummy_addr parameters.
8399 * gdbarch.h, gdbarch.c: Re-generate.
8400 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8401 available; assume it will handle stack alignment and return
8402 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8403 legacy_push_arguments.
8404 (legacy_push_arguments): Rename default_push_arguments.
8405 * value.h (legacy_push_arguments): Rename default_push_arguments.
8406 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8407 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8408 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8409 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8410 * config/i386/tm-symmetry.h: Update.
8411 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8412 * x86-64-tdep.c (x86_64_init_abi): Update.
8413 * v850-tdep.c (v850_gdbarch_init): Update.
8414 * sparc-tdep.c (sparc_gdbarch_init): Update.
8415 * sh-tdep.c (sh_gdbarch_init): Update.
8416 * s390-tdep.c (s390_gdbarch_init): Update.
8417 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8418 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8419 * mips-tdep.c (mips_gdbarch_init): Update.
8420 * mcore-tdep.c (mcore_gdbarch_init): Update.
8421 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8422 * ia64-tdep.c (ia64_gdbarch_init): Update.
8423 * i386-tdep.c (i386_gdbarch_init): Update.
8424 * hppa-tdep.c (hppa_gdbarch_init): Update.
8425 * h8300-tdep.c (h8300_gdbarch_init): Update.
8426 * frv-tdep.c (frv_gdbarch_init): Update.
8427 * d10v-tdep.c (d10v_gdbarch_init): Update.
8428 * cris-tdep.c (cris_gdbarch_init): Update.
8429 * avr-tdep.c (avr_gdbarch_init): Update.
8430 * arm-tdep.c (arm_gdbarch_init): Update.
8431 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8432 * alpha-tdep.c (alpha_gdbarch_init): Update.
8433
f541410f
DJ
84342003-03-26 Daniel Jacobowitz <drow@mvista.com>
8435
8436 * signals/signals.c (do_target_signal_to_host): Correct realtime
8437 signal range test.
8438
69f567ae
DJ
84392003-03-26 Daniel Jacobowitz <drow@mvista.com>
8440
8441 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8442 (struct sal_chain, map_catch_names): Remove.
8443 (catch_exception_command_1): Don't call
8444 handle_gnu_4_16_catch_command.
8445
d5d14a5a
DJ
84462003-03-26 Daniel Jacobowitz <drow@mvista.com>
8447
8448 From Mark Dettinger <dettinge@de.ibm.com>:
8449 * dwarf2cfi.c (read_2u): Increment pointer by two.
8450
bdd73e22
DJ
84512003-03-26 Daniel Jacobowitz <drow@mvista.com>
8452
8453 * signals/signals.c: Fix typos in last change.
8454
960cb555
DJ
84552003-03-26 Daniel Jacobowitz <drow@mvista.com>
8456
8457 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8458 not already defined. Use __SIGRTMIN if available.
8459 (target_signal_from_host): Remove SIGRTMIN block.
8460 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8461 the signal is within the realtime range.
8462
f636b87d
AF
84632003-03-25 Adam Fedor <fedor@gnu.org>
8464
8465 * Makefile.in (infrun.o): Add $(language_h)
8466 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8467 for language specific trampolines.
8468 * language.h (struct language_defn): Add skip_trampoline.
8469 (skip_language_trampoline): Declare.
8470 * language.c (unk_lang_trampoline, skip_language_trampoline):
8471 New functions.
8472 (unknown_language_defn, auto_language_defn, local_language_defn):
8473 Add ukn_lang_trampoline.
8474 * ada-lang.c (ada_language_defn): Add NULL for language
8475 specific skip_trampoline.
8476 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8477 scm-lang.c: Likewise.
8478 * objc-lang.c (objc_skip_trampoline): New function.
8479 (objc_language_defn): Add objc_skip_trampoline.
8480
28f617b3 84812003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8482
8483 * frame.c (get_prev_frame): Delay validating a frame's ID -
8484 non-NULL, didn't go backwards - until an attempt to unwind it to
8485 the previous frame.
8486
f933a9c5
AC
84872003-03-25 Andrew Cagney <cagney@redhat.com>
8488
8489 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8490 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8491 * gdbarch.h, gdbarch.c: Re-generate.
8492 * config/sparc/tm-sparc.h
8493 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8494 * sparc-tdep.c (sparc_gdbarch_init): Set
8495 deprecated_extra_stack_alignment_needed.
8496 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8497 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8498 extra_stack_alignment_needed.
8499 * v850-tdep.c (v850_gdbarch_init): Ditto.
8500 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8501 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8503 * cris-tdep.c (cris_gdbarch_init): Ditto.
8504 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8506
4183d812
AC
85072003-03-25 Andrew Cagney <cagney@redhat.com>
8508
8509 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8510 STORE_STRUCT_RETURN.
8511 * gdbarch.h, gdbarch.c: Regenerate.
8512 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8513 (d10v_push_arguments): Set the struct return register.
8514 (d10v_gdbarch_init): Update.
8515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8516 * x86-64-tdep.c (x86_64_init_abi): Update.
8517 * vax-tdep.c (vax_gdbarch_init): Update.
8518 * v850-tdep.c (v850_gdbarch_init): Update.
8519 * sparc-tdep.c (sparc_gdbarch_init): Update.
8520 * sh-tdep.c (sh_gdbarch_init): Update.
8521 * s390-tdep.c (s390_gdbarch_init): Update.
8522 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8523 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8524 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8525 * mips-tdep.c (mips_gdbarch_init): Update.
8526 * mcore-tdep.c (mcore_gdbarch_init): Update.
8527 * m68k-tdep.c (m68k_gdbarch_init): Update.
8528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8529 * ia64-tdep.c (ia64_gdbarch_init): Update.
8530 * i386-tdep.c (i386_gdbarch_init): Update.
8531 * hppa-tdep.c (hppa_gdbarch_init): Update.
8532 * h8300-tdep.c (h8300_gdbarch_init): Update.
8533 * frv-tdep.c (frv_gdbarch_init): Update.
8534 * cris-tdep.c (cris_gdbarch_init): Update.
8535 * avr-tdep.c (avr_gdbarch_init): Update.
8536 * arm-tdep.c (arm_gdbarch_init): Update.
8537 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8538
1bf6d5cc
AC
85392003-03-25 Andrew Cagney <cagney@redhat.com>
8540
8541 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8542 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8543 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8544 * gdbarch.h, gdbarch.c: Regenerate.
8545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8546 call_dummy_stack_adjust_p.
8547 * vax-tdep.c (vax_gdbarch_init): Ditto.
8548 * v850-tdep.c (v850_gdbarch_init): Ditto.
8549 * sh-tdep.c (sh_gdbarch_init): Ditto.
8550 * s390-tdep.c (s390_gdbarch_init): Ditto.
8551 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8552 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8553 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8554 * mips-tdep.c (mips_gdbarch_init): Ditto.
8555 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8556 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8558 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8559 * i386-tdep.c (i386_gdbarch_init): Ditto.
8560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8561 * frv-tdep.c (frv_gdbarch_init): Ditto.
8562 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8563 * cris-tdep.c (cris_gdbarch_init): Ditto.
8564 * avr-tdep.c (avr_gdbarch_init): Ditto.
8565 * arm-tdep.c (arm_gdbarch_init): Ditto.
8566 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8567 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8568 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8569 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8570 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8571 call_dummy_stack_adjust_p.
8572 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8573 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8574 * sparc-tdep.c (sparc32_push_arguments): Update.
8575 * valops.c (hand_function_call): Update.
8576
71c08af0
CV
85772003-03-25 Corinna Vinschen <vinschen@redhat.com>
8578
8579 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8580 set_gdbarch_char_signed.
8581
30757f90
RE
85822003-03-25 Richard Earnshaw <rearnsha@arm.com>
8583
8584 PR cli/548
8585 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8586
03d48a7d
RE
85872003-03-25 Richard Earnshaw <rearnsha@arm.com>
8588
8589 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8590 (_initialize_arm_tdep): Don't set tm_print_insn.
8591
2cf6873c
AF
85922003-03-24 Adam Fedor <fedor@gnu.org>
8593
8594 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8595 * objc-lang.h: Add multiple inclusion protection.
8596 (start_msglist, add_msglist, end_msglist): Additional declarations.
8597
17c0759e
RE
85982003-03-24 Richard Earnshaw <rearnsha@arm.com>
8599
8600 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8601 value was renamed to ARM_FLOAT_SOFT_FPA.
8602
618ce49f
AC
86032003-03-23 Andrew Cagney <cagney@redhat.com>
8604
8605 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8606 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8607 * gdbarch.h, gdbarch.c: Regenerate.
8608 * valops.c (hand_function_call): Update.
8609 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8610 * frame.c (legacy_saved_regs_this_id): Update.
8611 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8612 * dummy-frame.h: Update.
8613 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8614 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8615 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8616 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8617 * config/m68k/tm-sun3.h: Update.
8618 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8619 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8620 * x86-64-tdep.c (x86_64_init_abi): Update.
8621 * vax-tdep.c (vax_gdbarch_init): Update.
8622 * v850-tdep.c (v850_gdbarch_init): Update.
8623 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8624 * sh-tdep.c (sh_gdbarch_init): Update.
8625 * s390-tdep.c (s390_gdbarch_init): Update.
8626 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8627 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8628 (frame_get_saved_regs): Update.
8629 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8630 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8631 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8632 * mips-tdep.c (mips_gdbarch_init): Update.
8633 * mcore-tdep.c (mcore_gdbarch_init): Update.
8634 * m68k-tdep.c (m68k_gdbarch_init): Update.
8635 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8636 * ia64-tdep.c (ia64_gdbarch_init): Update.
8637 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8638 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8639 (i386_interix_back_one_frame): Update.
8640 * hppa-tdep.c (hppa_gdbarch_init): Update.
8641 (hppa_init_extra_frame_info): Update.
8642 * h8300-tdep.c (h8300_gdbarch_init): Update.
8643 * frv-tdep.c (frv_gdbarch_init): Update.
8644 * cris-tdep.c (cris_gdbarch_init): Update.
8645 * avr-tdep.c (avr_gdbarch_init): Update.
8646 * arm-tdep.c (arm_gdbarch_init): Update.
8647 * alpha-tdep.c (alpha_gdbarch_init): Update.
8648
fd50bc42
RE
86492003-03-22 Richard Earnshaw <rearnsha@arm.com>
8650
8651 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8652 (arm_get_fp_model): Declare.
8653 * arm-tdep.c (fp_model_strings): New string array.
8654 (arm_fp_model, current_fp_model): New variables.
8655 (arm_get_fp_model): New function.
8656 (arm_set_fp): New function.
8657 (set_fp_model_sfunc): New function.
8658 (show_fp_model): New function.
8659 (_initialize_arm_tdep): Add new command to set/show the FPU.
8660 (arm_extract_return_value): Use arm_get_fp_model.
8661 (arm_store_return_value): Likewise.
8662 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8663 to initialize the floating-point data types.
8664 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8665 model is FPA.
8666
26304000
RE
86672003-03-22 Richard Earnshaw <rearnsha@arm.com>
8668
8669 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8670 the current setting of each value.
8671 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8672 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8673 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8674 commands and add new version as subcommands of "set/show arm".
8675
afd7eef0
RE
86762003-03-22 Richard Earnshaw <rearnsha@arm.com>
8677
8678 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8679 (set_arm_command, show_arm_command): New functions.
8680 (_initialize_arm_tdep): Add them.
8681 (num_disassembly_options): Renamed from num_flavor_options.
8682 (valid_disassembly_styles): Renamed from valid_flavors.
8683 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8684 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8685 set_disassembly_flavor_sfunc.
8686 (set_disassembly_style): Renamed from set_disassembly_flavor.
8687 (arm_othernames): Updated.
8688 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8689 command. Add "set/show arm disassembly" commands. Deprecate
8690 "othernames" command.
8691
299a7944
RE
86922003-03-22 Richard Earnshaw <rearnsha@arm.com>
8693
8694 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8695 (arm-tdep.o): Depend on elf_arm_h.
8696
c1dac9e6
RE
86972003-03-22 Richard Earnshaw <rearnsha@arm.com>
8698
8699 * Makefile.in (coff_internal_h): Define.
8700 (arm-tdep.o): Update dependencies.
8701
2702d96c
RE
87022003-03-22 Richard Earnshaw <rearnsha@arm.com>
8703
8704 * arm-tdep.c (prologue_cache): Delete.
8705 (check_prologue_cache, save_prologue_cache): Delete.
8706 (arm_scan_prologue): Don't check or update the prologue_cache.
8707 (arm_gdb_arch_init): Don't initialize it.
8708 (_initialize_arm_tdep): Likewise.
8709
27d5d74b
SC
87102003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8711
8712 * MAINTAINERS (tui): Maintainer of tui code.
8713
1762d96d
CV
87142003-03-21 Corinna Vinschen <vinschen@redhat.com>
8715
8716 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8717 (i386-cygwin-tdep.o): Add dependencies.
8718 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8719 * i386-cygwin-tdep.c: New file.
8720 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8721 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8722
4c2e2391
AC
87232003-03-20 Andrew Cagney <cagney@redhat.com>
8724
f20d38b7
AC
8725 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8726 (handle_inferior_event): Remove code calling
8727 DYNAMIC_TRAMPOLINE_NEXTPC.
8728
0022b738
AC
8729 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8730 already has a full path.
8731
864dbc90
AC
8732 * main.c (gdb_main): Return 1.
8733 (captured_main): Call error to report an invalid interpreter.
8734
4c2e2391
AC
8735 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8736 * alpha-osf1-tdep.c: Include "gdb_string.h".
8737
5ef7553b
JB
87382003-03-19 J. Brobecker <brobecker@gnat.com>
8739
8740 Continuing work to convert the hppa targets to multiarch partial.
8741
8742 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8743 method, now that hppa_push_dummy_frame has a conformant prototype.
8744 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8745 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8746 for the switch to multiarch partial.
8747
7bde8967
KB
87482003-03-19 Kevin Buettner <kevinb@redhat.com>
8749
8750 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8751 when iss is issNull.
8752
b006a9e9
KB
87532003-03-18 Kevin Buettner <kevinb@redhat.com>
8754
8755 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8756 NUM_REGS bounds check.
8757
5e2e9765
KB
87582003-03-18 Kevin Buettner <kevinb@redhat.com>
8759
8760 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8761 * mips-tdep.c (gdb_assert.h): Include.
8762 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8763 (mips_register_name): Handle integer registers explicitly. Add
8764 bounds checking.
8765 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8766 (mips_lsi33k_reg_names): Don't list integer registers; they're
8767 handled by mips_register_name() now.
8768 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8769 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8770 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8771 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8772 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8773
a2867626
AC
87742003-03-18 Andrew Cagney <cagney@redhat.com>
8775
8776 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8777 a void pointer.
8778 * gdbtypes.h (print_scalar_formatted): Update declaration.
8779 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8780
06600e06
JB
87812003-03-18 J. Brobecker <brobecker@gnat.com>
8782
8783 * infrun.c (observer.h): Add #include.
8784 (normal_stop): Add call to observer_notify_normal_stop.
8785 * Makefile.in (infrun.o): Add dependency on observer.h.
8786
7daf4f5b
JB
87872003-03-18 J. Brobecker <brobecker@gnat.com>
8788
8789 Continuing work to convert the hppa targets to multiarch partial.
8790 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8791 parameter. Reformat comment.
8792 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8793 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8794 to match new profile.
8795
3371ccc0
JB
87962003-03-18 J. Brobecker <brobecker@gnat.com>
8797
8798 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8799 appear to be working in any case.
8800
4fbe891e
JB
88012003-03-18 J. Brobecker <brobecker@gnat.com>
8802
8803 * observer.c (observer_test_first_observer): New static variable.
8804 (observer_test_second_observer): Likewise.
8805 (observer_test_third_observer): Likewise.
8806 (observer_test_first_notification_function): New static function.
8807 (observer_test_second_notification_function): Likewise.
8808 (observer_test_third_notification_function): Likewise.
8809
a7ff40e7
JB
88102003-03-17 J. Brobecker <brobecker@gnat.com>
8811
8812 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8813 * somsolib.c (gdb_assert.h): Likewise.
8814 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8815 (somsolib.o): Likewise.
8816
26ca4152
AC
88172003-03-17 Andrew Cagney <cagney@redhat.com>
8818
8819 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8820 BFD. Simplify setting of di.endian.
8821
0a613259
AC
88222003-03-17 Andrew Cagney <cagney@redhat.com>
8823
8824 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8825 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8826
8827 From Elena Zannoni <ezannoni@redhat.com>
8828 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8829 vector and floating-point parameters.
8830 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8831 convention.
8832 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8833
1132738f
FN
88342003-03-17 Fernando Nasser <fnasser@redhat.com>
8835
8836 * MAINTAINERS: Remove my name from several maintainership roles.
8837
6dc42492
AC
88382003-03-17 Andrew Cagney <cagney@redhat.com>
8839
8840 Fix frame off-by-one bug.
8841 * frame-unwind.h (frame_this_id_ftype): Replace
8842 frame_unwind_id_ftype.
8843 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8844 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8845 with "prev_register".
8846 * frame-unwind.c (frame_unwind_find_by_pc): Return
8847 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8848 comment.
8849 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8850 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8851 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8852 (dummy_frame_unwind): Update.
8853 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8854 sentinel_frame_register_unwind.
8855 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8856 (sentinel_frame_unwinder): Update.
8857 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8858 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8859 * frame.c (create_sentinel_frame): Update. Initialize
8860 "prologue_cache" instead of "unwind_cache".
8861 (frame_register_unwind): Call this frame's prev_register with the
8862 next frame and this frame's prologue cache.
8863 (get_prev_frame): Simplify. Always call prev frame's this_id with
8864 this frame and prev frame's prologue cache. Document that this
8865 call is shifted one to the left when compared to the
8866 frame_register_unwind call.
8867 (legacy_saved_regs_prev_register): Replace
8868 frame_saved_regs_register_unwind.
8869 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8870 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8871 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8872 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8873 (d10v_frame_unwind): Update.
8874 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8875 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8876 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8877 "saved_regs" with "this_saved_regs".
8878
efd710d6
AC
88792003-03-16 Andrew Cagney <cagney@redhat.com>
8880
8881 * frame.c (frame_pop): Don't call target_store_registers. Fix
8882 problem reported by Mark Kettenis.
8883
4e259f09
MK
88842003-03-16 Mark Kettenis <kettenis@gnu.org>
8885
8886 * i386-tdep.c (i386_register_type): Renamed from
8887 i386_register_virtual_type. Adjust function signature.
8888 (i386_gdbarch_init): Set register_type instead of
8889 deprecated_max_register_raw_size,
8890 deprecated_max_register_virtual_size and register_virtual_type.
8891
055bb976
AC
88922003-03-14 Andrew Cagney <cagney@redhat.com>
8893
8894 * frame.c (get_prev_frame): When a legacy frame, always call
8895 legacy_get_prev_frame. Simplify unwind code using assumption that
8896 the unwinder is new.
8897 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8898 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8899 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8900
ac2adee5
AC
89012003-03-14 Andrew Cagney <cagney@redhat.com>
8902
8903 * frame.c (get_saved_register): Delete function.
8904 * frame.h (get_saved_register): Delete declaration.
8905 * xstormy16-tdep.c: Update comment.
8906 * regcache.h: Update comments.
8907 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8908 get_saved_register and extract_address, use
8909 frame_read_unsigned_register.
8910 (sparc_frame_saved_pc): Ditto.
8911 (sparc_get_saved_register): Instead of get_saved_register, use
8912 frame_register.
8913 (sparc_pop_frame): Ditto.
8914 * findvar.c: Update comments.
8915 (value_of_register): Call frame_register instead of
8916 get_saved_register.
8917 (value_from_register): Ditto.
8918 * config/sparc/tm-sparc.h: Update comment.
8919 * breakpoint.c: Update comment.
8920
129c1cd6
AC
89212003-03-14 Andrew Cagney <cagney@redhat.com>
8922
8923 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8924 GET_SAVED_REGISTER.
8925 * gdbarch.h, gdbarch.c: Re-generate.
8926 * frame.h: Update comments.
8927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8928 * x86-64-tdep.c (x86_64_init_abi): Update.
8929 * sparc-tdep.c (sparc_gdbarch_init): Update.
8930 * sh-tdep.c (sh_gdbarch_init): Update.
8931 * mips-tdep.c (mips_gdbarch_init): Update.
8932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8933 * cris-tdep.c (cris_gdbarch_init): Update.
8934 * ia64-tdep.c (ia64_gdbarch_init): Update.
8935 * frame.c (frame_register): Update.
8936 (get_saved_register): Update.
8937 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8938
749b82f6
AC
89392003-03-13 Andrew Cagney <cagney@redhat.com>
8940
8941 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8942 * gdbarch.h, gdbarch.c: Regenerate.
8943 * valops.c (hand_function_call): Update comment.
8944 * stack.c (return_command): Update comment.
8945 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8946 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8948 * x86-64-tdep.c (x86_64_init_abi): Update.
8949 * vax-tdep.c (vax_gdbarch_init): Update.
8950 * v850-tdep.c (v850_gdbarch_init): Update.
8951 * sparc-tdep.c (sparc_gdbarch_init): Update.
8952 * sh-tdep.c (sh_gdbarch_init): Update.
8953 * s390-tdep.c (s390_gdbarch_init): Update.
8954 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8955 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8956 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8957 * mips-tdep.c (mips_gdbarch_init): Update.
8958 * mcore-tdep.c (mcore_gdbarch_init): Update.
8959 * m68k-tdep.c (m68k_gdbarch_init): Update.
8960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8961 * ia64-tdep.c (ia64_gdbarch_init): Update.
8962 * i386-tdep.c (i386_gdbarch_init): Update.
8963 * hppa-tdep.c (hppa_gdbarch_init): Update.
8964 * h8300-tdep.c (h8300_gdbarch_init): Update.
8965 * frv-tdep.c (frv_gdbarch_init): Update.
8966 * cris-tdep.c (cris_gdbarch_init): Update.
8967 * avr-tdep.c (avr_gdbarch_init): Update.
8968 * arm-tdep.c (arm_gdbarch_init): Update.
8969 * alpha-tdep.c (alpha_gdbarch_init): Update.
8970
1594fa56
AC
89712003-03-13 Andrew Cagney <cagney@redhat.com>
8972
8973 * frame.c (legacy_frame_p): New function.
8974 (get_prev_frame): Use legacy_frame_p.
8975 * frame.h (legacy_frame_p): Declare.
8976
7717fda3
V
89772003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8978
fbe586ae 8979 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8980 listing corrected.
8981
0c67cbe9
V
89822003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8983
fbe586ae 8984 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8985
03febf99
AC
89862003-03-12 Andrew Cagney <cagney@redhat.com>
8987
8988 * frame.c (get_prev_frame): Rename the frame parameter to
8989 "this_frame".
8990 (get_next_frame, legacy_get_prev_frame): Ditto.
8991
0a1e1ca1
AC
89922003-03-12 Andrew Cagney <cagney@redhat.com>
8993
8994 * frame.c (get_current_frame): Check target_has_registers before
8995 checking target_has_stack.
8996 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8997 instead of deprecated_selected_frame.
8998 * findvar.c (value_of_register): Pass "frame", not
8999 deprecated_selected_frame, to value_of_builtin_reg.
9000
a66a9c23
AC
90012003-03-12 Andrew Cagney <cagney@redhat.com>
9002
9003 * regcache.c (regcache_cooked_write_signed): New function.
9004 (regcache_cooked_write_unsigned): New function.
9005 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9006 (regcache_cooked_read_signed): Fix regnum in range assertion.
9007 * regcache.h (regcache_cooked_write_signed): Declare.
9008 (regcache_cooked_write_unsigned): Declare.
9009
8bedc050
AC
90102003-03-12 Andrew Cagney <cagney@redhat.com>
9011
9012 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9013 * gdbarch.h, gdbarch.c: Re-generate.
9014 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9015 * x86-64-tdep.h: Update.
9016 * x86-64-tdep.c (x86_64_init_abi): Update.
9017 * v850-tdep.c (v850_gdbarch_init): Update.
9018 * sparc-tdep.c (sparc_gdbarch_init): Update.
9019 * sh-tdep.c (sh_gdbarch_init): Update.
9020 * s390-tdep.c (s390_gdbarch_init): Update.
9021 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9022 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9023 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9024 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9025 * mips-tdep.c (mips_gdbarch_init): Update.
9026 * mcore-tdep.c (mcore_gdbarch_init): Update.
9027 * m68k-tdep.c (m68k_gdbarch_init): Update.
9028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9029 * ia64-tdep.c (ia64_gdbarch_init): Update.
9030 * i386-tdep.c (i386_gdbarch_init): Update.
9031 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9032 * hppa-tdep.c (hppa_gdbarch_init): Update.
9033 * h8300-tdep.c (h8300_gdbarch_init): Update.
9034 * frv-tdep.c (frv_gdbarch_init): Update.
9035 * cris-tdep.c (cris_gdbarch_init): Update.
9036 * avr-tdep.c (avr_gdbarch_init): Update.
9037 * arm-tdep.c (arm_gdbarch_init): Update.
9038 * alpha-tdep.c (alpha_gdbarch_init): Update.
9039 * sh-tdep.c (sh_init_extra_frame_info): Update.
9040 (sh64_init_extra_frame_info): Update.
9041 * ns32knbsd-nat.c (frame_num_args): Update.
9042 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9043 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9044 (xstormy16_frame_chain_valid): Update.
9045 * vax-tdep.c (vax_saved_pc_after_call): Update.
9046 * v850-tdep.c (v850_frame_chain): Update.
9047 (v850_pop_frame): Update.
9048 (v850_init_extra_frame_info): Update.
9049 * sparc-tdep.c (setup_arbitrary_frame): Update.
9050 * ns32k-tdep.c (umax_frame_num_args): Update.
9051 * s390-tdep.c (s390_pop_frame_regular): Update.
9052 * mn10300-tdep.c (mn10300_frame_chain): Update.
9053 (mn10300_pop_frame_regular): Update.
9054 (mn10300_init_extra_frame_info): Update.
9055 * mips-tdep.c (mips_init_frame_pc_first): Update.
9056 (mips_frame_chain): Update.
9057 (mips_pop_frame): Update.
9058 * mcore-tdep.c (mcore_frame_chain): Update.
9059 (mcore_pop_frame): Update.
9060 (mcore_init_extra_frame_info): Update.
9061 * arch-utils.c (init_frame_pc_default): Update.
9062 * m68k-tdep.c (isi_frame_num_args): Update.
9063 (delta68_frame_num_args): Update.
9064 (news_frame_num_args): Update.
9065 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9066 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9067 (alpha_frame_chain): Update.
9068 (alpha_pop_frame): Update.
9069 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9070 (hppa_init_extra_frame_info): Update.
9071 (hppa_frame_chain): Update.
9072 (hppa_frame_chain_valid): Update.
9073 * cris-tdep.c (cris_init_extra_frame_info): Update.
9074 * avr-tdep.c (avr_init_extra_frame_info): Update.
9075 * arm-tdep.c (arm_frame_chain_valid): Update.
9076 (arm_init_extra_frame_info): Update.
9077 (arm_pop_frame): Update.
9078 * frame.c (frame_pc_unwind): Update.
9079 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9080 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9081 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9082 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9083 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9084 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9085
7a25a7c1
AC
90862003-03-12 Andrew Cagney <cagney@redhat.com>
9087
9088 Eliminate the need for POP_FRAME.
9089 * frame.c (do_frame_unwind_register): New function.
9090 (frame_pop): When no POP_FRAME, pop the frame using register
9091 unwind and a scratch regcache.
9092 (frame_saved_regs_pop): Delete function.
9093 (trad_frame_unwinder): Update.
9094 * d10v-tdep.c (d10v_frame_pop): Delete function.
9095 (d10v_frame_unwind): Update.
9096 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9097 (sentinel_frame_unwinder): Update.
9098 * dummy-frame.c (dummy_frame_pop): Delete function.
9099 (dummy_frame_unwind): Update.
9100 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9101 (struct frame_unwind): Update.
9102
2f38ef89
KB
91032003-03-11 Kevin Buettner <kevinb@redhat.com>
9104
9105 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9106 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9107 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9108 Do range checks on register number obtained from debugging info.
9109 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9110 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9111 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9112 mapping function.
9113 (do_fp_register_row): Fix typo which caused double type to be
9114 used when attempting to unpack a float.
9115
552f4abf
JB
91162003-03-11 J. Brobecker <brobecker@gnat.com>
9117
9118 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9119
e0d2ae16
AC
91202003-03-11 Andrew Cagney <cagney@redhat.com>
9121
9122 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9123 frame. Problem found by Corinna Vinschen.
9124
ddbfdd06
PM
91252003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9126
9127 * doublest.c (floatformat_from_length): Accept also
9128 the real size of 'long double' type.
9129
088b2ddc 91302003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9131
088b2ddc 9132 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9133 * breakpoint.c (bpstat_copy): Copy the command lines as well
9134 as the old value, to match what is freed in bpstat_clear.
9135
f56f77c1
DC
91362003-03-10 David Carlton <carlton@math.stanford.edu>
9137
9138 * minsyms.c (add_minsym_to_hash_table): Replace
9139 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9140 (compare_minimal_symbols, compact_minimal_symbols)
9141 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9142 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9143 of DEPRECATED_SYMBOL_MATCHES_NAME.
9144 (lookup_minimal_symbol_solib_trampoline): Ditto.
9145
5602984a
AC
91462003-03-10 Andrew Cagney <cagney@redhat.com>
9147
9148 * regcache.h (regcache_cooked_read_ftype): Define.
9149 (regcache_save, regcache_restore): Add a cooked_read parameter.
9150 * regcache.c (regcache_save, regcache_restore): Update.
9151 (do_cooked_read): New function.
9152 (regcache_cpy): Pass do_cooked_read to regcache_save and
9153 regcache_restore.
9154
8bedc050
AC
91552003-03-10 Andrew Cagney <cagney@redhat.com>
9156
9157 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9158 * gdbarch.h, gdbarch.c: Re-generate.
9159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9160 * x86-64-tdep.h: Update.
9161 * x86-64-tdep.c (x86_64_init_abi): Update.
9162 * v850-tdep.c (v850_gdbarch_init): Update.
9163 * sparc-tdep.c (sparc_gdbarch_init): Update.
9164 * sh-tdep.c (sh_gdbarch_init): Update.
9165 * s390-tdep.c (s390_gdbarch_init): Update.
9166 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9167 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9168 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9169 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9170 * mips-tdep.c (mips_gdbarch_init): Update.
9171 * mcore-tdep.c (mcore_gdbarch_init): Update.
9172 * m68k-tdep.c (m68k_gdbarch_init): Update.
9173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9174 * ia64-tdep.c (ia64_gdbarch_init): Update.
9175 * i386-tdep.c (i386_gdbarch_init): Update.
9176 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9177 * hppa-tdep.c (hppa_gdbarch_init): Update.
9178 * h8300-tdep.c (h8300_gdbarch_init): Update.
9179 * frv-tdep.c (frv_gdbarch_init): Update.
9180 * cris-tdep.c (cris_gdbarch_init): Update.
9181 * avr-tdep.c (avr_gdbarch_init): Update.
9182 * arm-tdep.c (arm_gdbarch_init): Update.
9183 * alpha-tdep.c (alpha_gdbarch_init): Update.
9184 * sh-tdep.c (sh_init_extra_frame_info): Update.
9185 (sh64_init_extra_frame_info): Update.
9186 * ns32knbsd-nat.c (frame_num_args): Update.
9187 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9188 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9189 (xstormy16_frame_chain_valid): Update.
9190 * vax-tdep.c (vax_saved_pc_after_call): Update.
9191 * v850-tdep.c (v850_frame_chain): Update.
9192 (v850_pop_frame): Update.
9193 (v850_init_extra_frame_info): Update.
9194 * sparc-tdep.c (setup_arbitrary_frame): Update.
9195 * ns32k-tdep.c (umax_frame_num_args): Update.
9196 * s390-tdep.c (s390_pop_frame_regular): Update.
9197 * mn10300-tdep.c (mn10300_frame_chain): Update.
9198 (mn10300_pop_frame_regular): Update.
9199 (mn10300_init_extra_frame_info): Update.
9200 * mips-tdep.c (mips_init_frame_pc_first): Update.
9201 (mips_frame_chain): Update.
9202 (mips_pop_frame): Update.
9203 * mcore-tdep.c (mcore_frame_chain): Update.
9204 (mcore_pop_frame): Update.
9205 (mcore_init_extra_frame_info): Update.
9206 * arch-utils.c (init_frame_pc_default): Update.
9207 * m68k-tdep.c (isi_frame_num_args): Update.
9208 (delta68_frame_num_args): Update.
9209 (news_frame_num_args): Update.
9210 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9211 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9212 (alpha_frame_chain): Update.
9213 (alpha_pop_frame): Update.
9214 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9215 (hppa_init_extra_frame_info): Update.
9216 (hppa_frame_chain): Update.
9217 (hppa_frame_chain_valid): Update.
9218 * cris-tdep.c (cris_init_extra_frame_info): Update.
9219 * avr-tdep.c (avr_init_extra_frame_info): Update.
9220 * arm-tdep.c (arm_frame_chain_valid): Update.
9221 (arm_init_extra_frame_info): Update.
9222 (arm_pop_frame): Update.
9223 * frame.c (frame_pc_unwind): Update.
9224 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9225 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9226 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9227 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9228 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9229 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9230
12cc2063
AC
92312003-03-10 Andrew Cagney <cagney@redhat.com>
9232
9233 * gdbarch.sh (gdbarch_unwind_pc): New method.
9234 * gdbarch.h, gdbarch.c: Regenerate.
9235 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9236 but use read_pc and FRAME_SAVED_PC as fall backs.
9237 (frame_saved_regs_pc_unwind): Delete function.
9238 (trad_frame_unwinder): Update.
9239 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9240 (struct frame_unwind): Update.
9241 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9242 (dummy_frame_unwind): Update.
9243 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9244 (sentinel_frame_unwinder): Update.
9245 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9246 (d10v_frame_unwind): Update.
9247 (d10v_unwind_pc): New function.
9248 (d10v_gdbarch_init): Set unwind_pc.
9249
ef840a37
AC
92502003-03-10 Andrew Cagney <cagney@redhat.com>
9251
a2ce2e56
AC
9252 * gdbarch.h: Re-generate.
9253
ef840a37
AC
9254 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9255 PC.
9256 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9257 the PC register.
9258
08f3424b
MK
92592003-03-08 Mark Kettenis <kettenis@gnu.org>
9260
9261 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9262
1248ede2
AC
92632003-03-08 Andrew Cagney <cagney@redhat.com>
9264
9265 * cli-out.c: Update copyright.
9266 (cli_out_data): Define typedef. Use instead of ui_out_data.
9267
f49bacc8
AC
92682003-03-08 Andrew Cagney <cagney@redhat.com>
9269
9270 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9271 the result.
9272
9b05f993
AC
92732003-03-07 Andrew Cagney <cagney@redhat.com>
9274
9275 * gdbarch.sh: Don't generate two macro definitions when an
9276 undefined macro taking no arguments.
9277 * gdbarch.h: Regenerate.
8ffd9b1b 9278
166f4c7b
ML
92792002-03-07 Michal Ludvig <mludvig@suse.cz>
9280
9281 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9282 (x86_64_unwind_dummy_id): New functions.
9283 (x86_64_init_abi): Register these two new functions.
9284
6d686a84
ML
92852003-03-07 Michal Ludvig <mludvig@suse.cz>
9286
9287 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9288 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9289 separate function.
9290 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9291
6314f104
AC
92922003-03-05 Andrew Cagney <cagney@redhat.com>
9293
9294 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9295 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9296 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9297 to use unwind_dummy_id when a dummy frame.
9298 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9299 predicate.
9300 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9301
ceea5145
AC
93022003-03-05 Andrew Cagney <cagney@redhat.com>
9303
9304 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9305 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9306 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9307 values.
9308
0d843116
AC
93092003-03-05 Andrew Cagney <cagney@redhat.com>
9310
9311 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9312 (struct d10v_unwind_cache): Delete field "frameless". Replace
9313 "next_addr" with "sp_offset". Add "r11_offset".
9314 (d10v_frame_unwind_cache): Update.
9315 (prologue_find_regs): Update. When "mv r11, sp", save the
9316 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9317 RN was saved in r11_offset.
9318
b2579786
AC
93192003-03-05 Andrew Cagney <cagney@redhat.com>
9320
9321 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9322 cached PC value in the next frame.
9323
218e5956
AC
93242003-03-05 Andrew Cagney <cagney@redhat.com>
9325
9326 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9327 "id_unwind_cache" with "id".
9328 (frame_id_unwind): Delete declaration.
9329 * frame.c (frame_id_unwind): Delete function.
9330 (get_prev_frame): Call the frame id unwind method directly. Store
9331 the returned next frame's ID value in NEXT_FRAME. Note that there
9332 is a problem with the wrong unwind ID being called with the wrong
9333 unwind cache.
9334
ed363b1b
DJ
93352003-03-05 Daniel Jacobowitz <drow@mvista.com>
9336
9337 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9338
fe1f4a5e
DJ
93392003-03-05 James Ingham <jingham@apple.com>
9340 Daniel Jacobowitz <drow@mvista.com>
9341
9342 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9343 (auto_cp_abi): New variable.
9344 (current_cp_abi, num_cp_abis): Make static.
9345 (CP_ABI_MAX): Define.
9346 (cp_abis): Turn into an array.
9347 (value_virtual_fn_field): Fix formatting.
9348 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9349 takes a pointer.
9350 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9351 (list_cp_abis, _initialize_cp_abi): New functions.
9352 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9353 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9354 switch_to_cp_abi. Update prototype for register_cp_abi.
9355 * Makefile.in (cp-abi.o): Update dependencies.
9356 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9357 instead of switch_to_cp_abi.
9358 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9359 register_cp_abi.
9360 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9361 register_cp_abi.
9362 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9363
e4adbba9
DJ
93642003-03-05 Daniel Jacobowitz <drow@mvista.com>
9365
9366 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9367 * dwarf2loc.c: Include "regcache.h".
9368 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9369 register_size.
9370 * Makefile.in (dwarf2loc.o): Update dependencies.
9371
91ccbfc1
TR
93722003-03-04 Theodore A. Roth <troth@openavr.org>
9373
9374 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9375 number of io registers reported by remote target is not a multiple of
9376 step.
9377
3d4e8fd2
DC
93782003-03-04 David Carlton <carlton@math.stanford.edu>
9379
9380 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9381 (lookup_symbol_aux_psymtabs): Update call to
9382 lookup_partial_symbol.
9383 (lookup_transparent_type, find_main_psymtab)
9384 (make_symbol_overload_list): Ditto.
9385
ed42d87b
KH
93862003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9387
9388 * MAINTAINERS (Write after approval): Update my email address.
9389
a0ed5532
AC
93902003-03-03 Andrew Cagney <cagney@redhat.com>
9391
9392 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9393 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9394 predicate. Replace MAX_REGISTER_RAW_SIZE.
9395 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9396 MAX_REGISTER_VIRTUAL_SIZE.
9397 * regcache.c (legacy_max_register_raw_size): New function.
9398 (legacy_max_register_virtual_size): New function.
9399 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9400 (MAX_REGISTER_RAW_SIZE): Define.
9401 (legacy_max_register_raw_size): Declare.
9402 (legacy_max_register_virtual_size): Declare.
9403 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9404 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9405 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9406 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9407 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9408 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9409 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9410 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9411 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9412 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9413 * vax-tdep.c (vax_gdbarch_init): Update.
9414 * v850-tdep.c (v850_gdbarch_init): Update.
9415 * sparc-tdep.c (sparc_gdbarch_init): Update.
9416 * sh-tdep.c (sh_gdbarch_init): Update.
9417 * s390-tdep.c (s390_gdbarch_init): Update.
9418 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9419 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9420 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9421 * mips-tdep.c (mips_gdbarch_init): Update.
9422 * mcore-tdep.c (mcore_gdbarch_init): Update.
9423 * m68k-tdep.c (m68k_gdbarch_init): Update.
9424 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9425 * ia64-tdep.c (ia64_gdbarch_init): Update.
9426 * i386-tdep.c (i386_gdbarch_init): Update.
9427 * hppa-tdep.c (hppa_gdbarch_init): Update.
9428 * h8300-tdep.c (h8300_gdbarch_init): Update.
9429 * frv-tdep.c (frv_gdbarch_init): Update.
9430 * cris-tdep.c (cris_gdbarch_init): Update.
9431 * avr-tdep.c (avr_gdbarch_init): Update.
9432 * arm-tdep.c (arm_gdbarch_init): Update.
9433 * alpha-tdep.c (alpha_gdbarch_init): Update.
9434 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9435 max_register_raw_size or max_register_virtual_size.
9436
8e437497
DC
94372003-03-03 David Carlton <carlton@math.stanford.edu>
9438
9439 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9440 SYMBOL_MATCHES_NAME, add comment.
9441 (SYMBOL_MATCHES_NATURAL_NAME): New.
9442 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9443 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9444 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9445 * symtab.c (lookup_partial_symbol): Use
9446 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9447 unhelpful comment.
9448 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9449 SYMBOL_MATCHES_NAME.
9450 Fix for PR c++/33.
9451
25120b0d
DC
94522003-03-03 David Carlton <carlton@math.stanford.edu>
9453
9454 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9455 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9456 by regexp matching against SYMBOL_NATURAL_NAME.
9457
78a11fb4
DC
94582003-03-03 David Carlton <carlton@math.stanford.edu>
9459
9460 * linespec.c (find_method): Extract code into collect_methods.
9461 (collect_methods): New.
9462
645dd519
MK
94632003-03-02 Mark Kettenis <kettenis@gnu.org>
9464
b4700d91
MK
9465 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9466 get_frame_base.
9467
645dd519
MK
9468 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9469 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9470
0aa7e1aa
SC
94712003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9472
8ffd9b1b 9473 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9474 and not regnum when summing the size of all registers up to regnum.
9475
f30ee0bc
AC
94762003-03-01 Andrew Cagney <cagney@redhat.com>
9477
9478 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9479 FRAME_INIT_SAVED_REGS.
9480 * gdbarch.h, gdbarch.c: Regenerate.
9481 * stack.c (frame_info): Update.
9482 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9483 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9484 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9485 * ns32k-tdep.c (ns32k_pop_frame): Update.
9486 * mips-tdep.c (mips_pop_frame): Update.
9487 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9488 * ia64-tdep.c (ia64_frame_chain): Update.
9489 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9490 (ia64_frameless_function_invocation): Update.
9491 (ia64_init_extra_frame_info): Update.
9492 (ia64_pop_frame_regular): Update.
9493 * frame.h (struct frame_info): Update comment.
9494 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9495 * frame.c (frame_saved_regs_register_unwind): Update.
9496 (frame_saved_regs_register_unwind): Update.
9497 (deprecated_generic_get_saved_register): Update.
9498 * cris-tdep.c: Update comment.
9499 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9500 Rename macro.
9501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9502 * x86-64-tdep.c (x86_64_init_abi): Update.
9503 * vax-tdep.c (vax_gdbarch_init): Update.
9504 * v850-tdep.c (v850_gdbarch_init): Update.
9505 * sparc-tdep.c (sparc_gdbarch_init): Update.
9506 * sh-tdep.c (sh_gdbarch_init): Update.
9507 * s390-tdep.c (s390_gdbarch_init): Update.
9508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9509 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9510 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9512 * mips-tdep.c (mips_gdbarch_init): Update.
9513 * mcore-tdep.c (mcore_gdbarch_init): Update.
9514 * m68k-tdep.c (m68k_gdbarch_init): Update.
9515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9516 * ia64-tdep.c (ia64_gdbarch_init): Update.
9517 * i386-tdep.c (i386_gdbarch_init): Update.
9518 * frv-tdep.c (frv_gdbarch_init): Update.
9519 * avr-tdep.c (avr_gdbarch_init): Update.
9520 * arm-tdep.c (arm_gdbarch_init): Update.
9521 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9522
42fa7c0f
AC
95232003-03-01 Andrew Cagney <cagney@redhat.com>
9524
9525 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9526 option enum and switch. When no windows, set the interpreter to
9527 INTERP_CONSOLE.
8ffd9b1b 9528
49c7e338
AC
95292003-03-01 Andrew Cagney <cagney@redhat.com>
9530
9531 * main.c (captured_main): Replace magic option characters with an
9532 enum.
9533
e9582e71
AC
95342003-03-01 Andrew Cagney <cagney@redhat.com>
9535
9536 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9537 INIT_EXTRA_FRAME_INFO.
9538 * gdbarch.h, gdbarch.c: Regenerate.
9539 * arm-tdep.c: Update comments.
9540 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9541 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9542 * frame.h, avr-tdep.c: Ditto.
9543 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9544 (create_new_frame, legacy_get_prev_frame): Ditto.
9545 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9546 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9547 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9548 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9549 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9550 * v850-tdep.c (v850_gdbarch_init): Ditto.
9551 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9552 * sh-tdep.c (sh_gdbarch_init): Ditto.
9553 * s390-tdep.c (s390_gdbarch_init): Ditto.
9554 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9555 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9556 * mips-tdep.c (mips_gdbarch_init): Ditto.
9557 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9559 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9560 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9561 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9562 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9563 * frv-tdep.c (frv_gdbarch_init): Ditto.
9564 * cris-tdep.c (cris_gdbarch_init): Ditto.
9565 * avr-tdep.c (avr_gdbarch_init): Ditto.
9566 * arm-tdep.c (arm_gdbarch_init): Ditto.
9567 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9568 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9569
35cac7cf
AC
95702003-03-01 Andrew Cagney <cagney@redhat.com>
9571
9572 * gdbarch.sh (register_type): New function with predicate.
9573 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9574 * gdbarch.h, gdbarch.c: Re-generate.
9575 * arch-utils.c (generic_register_byte): Use generic_register_size.
9576 (generic_register_size): When available, use
9577 gdbarch_register_type.
9578 * regcache.c (init_regcache_descr): When available, initialize the
9579 register type array using gdbarch_register_type. If the
9580 architecture supplies gdbarch_register_type, do not use the legacy
9581 regcache layout.
9582 * d10v-tdep.c (d10v_register_type): Replace
9583 d10v_register_virtual_type.
9584 (d10v_gdbarch_init): Set register_type instead of
9585 register_virtual_type.
9586
7b83296f
AC
95872003-03-01 Andrew Cagney <cagney@redhat.com>
9588
9589 * Makefile.in (ax-gdb.o): Update dependencies.
9590 * ax-gdb.c: Include "regcache.h".
9591 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9592 * findvar.c (value_of_register): Ditto.
9593 * infcmd.c (default_print_registers_info): Ditto.
9594
eadc1c87
MK
95952003-03-01 Mark Kettenis <kettenis@gnu.org>
9596
9597 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9598 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9599
14143612
MK
96002003-03-01 Mark Kettenis <kettenis@gnu.org>
9601
9602 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9603 of STREQ.
9604
a55cc764
DJ
96052003-02-28 Daniel Jacobowitz <drow@mvista.com>
9606
9607 * Makefile.in (dwarf2loc.o): Update dependencies.
9608 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9609 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9610 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9611 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9612 (locexpr_tracepoint_var_ref): New function.
9613 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9614
08a617da
AC
96152003-02-28 Andrew Cagney <cagney@redhat.com>
9616
9617 * regcache.c (register_size): New function.
9618 * regcache.h (register_size): Declare
9619 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9620 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9621
4224873a
DC
96222003-02-28 David Carlton <carlton@math.stanford.edu>
9623
9624 * linespec.c (decode_compound): Extract code into find_method.
9625 (find_method): New.
9626
ccdc5d7f
JB
96272003-02-28 J. Brobecker <brobecker@gnat.com>
9628
9629 * Makefile.in: Add rules to build and link in observer.o.
9630
974e8ced
JB
96312003-02-27 J. Brobecker <brobecker@gnat.com>
9632
9633 * observer.c: Minor comments edits.
9634
7a28f973
JB
96352003-02-27 J. Brobecker <brobecker@gnat.com>
9636
9637 * observer.h, observer.c: New file.
9638
27cddce2
AC
96392003-02-27 Andrew Cagney <cagney@redhat.com>
9640
9641 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9642
b94a41a1
SC
96432003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9644
9645 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9646 (M6812_OP_STS_EXT): Likewise.
9647 (m6811_prologue): Use the above to recognize prologue.
9648 (m6812_prologue): Likewise.
9649
c8be8951
DC
96502003-02-27 David Carlton <carlton@math.stanford.edu>
9651
9652 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9653 SYMBOL_PRINT_NAME.
9654 (compare_psymbols): Ditto.
9655 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9656
d05bb1fc
MS
96572003-02-27 Michael Snyder <msnyder@redhat.com>
9658
4e845cd3
MS
9659 * f-lang.c (build_fortran_types): New function.
9660 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9661 * doublest.c (extract_floating): Fix warning text.
9662
f3824013
AC
96632003-02-27 Andrew Cagney <cagney@redhat.com>
9664
9665 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9666 predicate. Replaces PUSH_DUMMY_FRAME.
9667 * gdbarch.h, gdbarch.c: Regnerate.
9668 * valops.c (hand_function_call): Update. Call
9669 generic_push_dummy_frame directly.
9670 * vax-tdep.c (vax_gdbarch_init): Update.
9671 * sparc-tdep.c (sparc_gdbarch_init): Update.
9672 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9673 * m68k-tdep.c (m68k_gdbarch_init): Update.
9674 * hppa-tdep.c (hppa_gdbarch_init): Update.
9675 * alpha-tdep.c (alpha_gdbarch_init): Update.
9676 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9677 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9678 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9680 push_dummy_frame to generic_push_dummy_frame.
9681 * v850-tdep.c (v850_gdbarch_init): Ditto.
9682 * sh-tdep.c (sh_gdbarch_init): Ditto.
9683 * s390-tdep.c (s390_gdbarch_init): Ditto.
9684 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9685 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9686 * mips-tdep.c (mips_gdbarch_init): Ditto.
9687 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9688 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9689 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9690 * i386-tdep.c (i386_gdbarch_init): Ditto.
9691 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9692 * frv-tdep.c (frv_gdbarch_init): Ditto.
9693 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9694 * cris-tdep.c (cris_gdbarch_init): Ditto.
9695 * avr-tdep.c (avr_gdbarch_init): Ditto.
9696 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9697
ad188201
KB
96982003-02-26 Kevin Buettner <kevinb@redhat.com>
9699
9700 * mips-tdep.c (show_mips_abi): New function.
9701 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9702 command ``show mips abi''.
9703
6b37567a 97042003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9705
6b37567a 9706 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9707 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9708 more sline entries have been seen for the function.
9709
d3e0a5bf
MC
97102003-02-26 Michael Chastain <mec@shout.net>
9711
9712 * configure: Regenerate with autoconf 000227.
9713
18972eea
MC
97142003-02-26 Michael Chastain <mec@shout.net>
9715
9716 Close PR build/660.
9717 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9718 for old libc5/glibc.
9719 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9720
0bbde931
KW
97212003-02-26 Kris Warkentin <kewarken@qnx.com>
9722
9723 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9724 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9725
27ca5dad
MC
97262003-02-26 Michael Chastain <mec@shout.net>
9727
9728 * configure.in: New variable HAVE_UINTPTR_T.
9729 * configure, config.in: Regenerated.
9730
6f88d630
DJ
97312003-02-26 Daniel Jacobowitz <drow@mvista.com>
9732
9733 Fix PR build/1097.
9734 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9735
b14185ce
AC
97362003-02-25 Andrew Cagney <cagney@redhat.com>
9737
9738 * frame.c (get_prev_frame): Add comment on check for
9739 inside_entry_func. Only check for inside_entry_file when not a
9740 dummy and not a sentinel. Check that the new frame is not inner
9741 to the old frame.
9742
ac2bd0a9
AC
97432003-02-25 Andrew Cagney <cagney@redhat.com>
9744
9745 * frame.c (frame_debug): New variable.
9746 (_initialize_frame): Add "set/show debug frame" command.
9747 (get_prev_frame): When frame_debug, print reason why unwind
9748 failed.
9749
b18a0fd2
MC
97502003-02-25 Michael Chastain <mec@shout.net>
9751
9752 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9753 to avoid uintptr_t definition problems.
9754
22abf04a
DC
97552003-02-25 David Carlton <carlton@math.stanford.edu>
9756
9757 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9758 (SYMBOL_LINKAGE_NAME): Ditto.
9759 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9760 SYMBOL_LINKAGE_NAME.
9761 (struct general_symbol_info): Expand comment.
9762 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9763 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9764 (SYMBOL_MATCHES_REGEXP): Ditto.
9765 * symtab.c (symbol_natural_name): New function.
9766 * objfiles.h: Replace all uses of SYMBOL_NAME by
9767 DEPRECATED_SYMBOL_NAME.
9768 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9769 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9770 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9771 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9772 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9773 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9774 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9775 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9776 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9777 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9778 * ada-exp.y: Ditto.
9779 * ada-exp.y: Update copyright.
9780 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9781 * cp-valprint.c: Ditto.
9782
1a5848f6
JJ
97832003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9784
9785 * infptrace.c (detach): Do not flag error if ptrace detach fails
9786 and errno is set to ESRCH.
9787
7343d46a
AC
97882003-02-24 Andrew Cagney <cagney@redhat.com>
9789
9790 * infptrace.c (udot_info): Change type of udot_off to long. Use
9791 paddr when printing udot_off's value.
9792
49fa1dc2
DC
97932003-02-24 David Carlton <carlton@math.stanford.edu>
9794
9795 * symtab.c (make_symbol_overload_list): Only read in partial
9796 symtabs containing a matching partial symbol.
9797
0fe19209
DC
97982003-02-24 David Carlton <carlton@math.stanford.edu>
9799
9800 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9801 do the comparison, not strcmp.
9802 * symfile.c (compare_psymbols): Ditto.
9803 * defs.h: Declare strcmp_iw_ordered.
9804 * utils.c (strcmp_iw_ordered): New function.
9805
8e3ee7b5
JB
98062003-02-24 Jim Blandy <jimb@redhat.com>
9807
9808 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9809 support, shared libs): Remove my name from here, to better reflect
9810 reality.
9811
7df1a324
KW
98122003-02-24 Kris Warkentin <kewarken@qnx.com>
9813
9814 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9815 (target_ops): Add to_have_continuable_watchpoint.
9816 * target.c (update_current_target): Add INHERIT line for
9817 to_have_continuable_watchpoint.
9818 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9819 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9820 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9821 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9822
d1c76907
EZ
98232003-02-24 Elena Zannoni <ezannoni@redhat.com>
9824
9825 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9826 maintainership.
9827
2610b0bf
KW
98282003-02-24 Kris Warkentin <kewarken@qnx.com>
9829
f46169db
KW
9830 * solib.c (solib_open): Call target defined search function after
9831 failing with solib-search-path.
9832 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9833 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9834
9a3c34fe
KW
98352003-02-24 Kris Warkentin <kewarken@qnx.com>
9836
f46169db 9837 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9838
2417dd25
SC
98392003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9840
9841 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9842
b631436b
SC
98432003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9844
9845 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9846 (m68hc11_add_reggroups): New function.
9847 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9848 (m68hc11_gdbarch_init): Install the reggroups.
9849 (_initialize_m68hc11_tdep): Initialize them.
9850
0aa8c1e4
JW
98512003-02-21 James E Wilson <wilson@tuliptree.org>
9852
9853 * MAINTAINERS: Update my email address.
9854
50ceaba5
DC
98552003-02-21 David Carlton <carlton@math.stanford.edu>
9856
9857 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9858
4c2df51b
DJ
98592003-02-21 Daniel Jacobowitz <drow@mvista.com>
9860
9861 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9862 * symtab.h: Add opaque declarations of struct axs_value and
9863 struct agent_expr.
9864 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9865 (struct location_funcs): New type.
9866 (struct symbol): Add "loc" to aux_value.
9867 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9868 * dwarf2read.c: Include "dwarf2expr.h".
9869 (dwarf2_symbol_mark_computed): New function.
9870 (read_func_scope): Use it.
9871 (var_decode_location): New function.
9872 (new_symbol): Use it.
9873 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9874
9875 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9876 (dwarf2expr_h, dwarf2loc_h): New variables.
9877 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9878 (dwarf2expr.o, dwarf2loc.o): New rules.
9879 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9880 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9881 LOC_COMPUTED_ARG.
9882 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9883 * m2-exp.y (yylex): Likewise.
9884 * printcmd.c (address_info, print_frame_args): Likewise.
9885 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9886 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9887 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9888 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9889 * symtab.c (lookup_block_symbol): Likewise.
9890
5784d15e
AF
98912003-02-20 Adam Fedor <fedor@gnu.org>
9892
9893 * symtab.h: Remove objc_specific struct
9894 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9895 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9896 Have language_objc use cplus_specific struct.
9897
d4cad8db
TT
98982003-02-20 Tom Tromey <tromey@redhat.com>
9899
9900 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9901 TYPE_NAME, when printing a String value. PR java/1075.
9902
2f9a90b4
AF
99032003-02-20 Adam Fedor <fedor@gnu.org>
9904
d38074a8 9905 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9906 * objc-lang.c (find_methods): Make static.
2f9a90b4 9907
6f17862b
CF
99082003-02-20 Christopher Faylor <cgf@redhat.com>
9909
9910 * win32-nat.c (get_image_name): Check return value from
9911 ReadProcessMemory.
9912 (child_xfer_memory): Ditto.
9913
715d1656
AO
99142003-02-20 Alexandre Oliva <aoliva@redhat.com>
9915
9916 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9917 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9918 '${exec_prefix}' (in addition to the expansion thereof) as
9919 relocatable.
9920 * configure: Rebuilt.
9921
b1262a02
DC
99222003-02-20 David Carlton <carlton@math.stanford.edu>
9923
9924 * symtab.c (search_symbols): Revert the search_symbols part of my
9925 2002-12-23 patch. Add comment.
9926
7134143f
DJ
99272002-02-20 Daniel Jacobowitz <drow@mvista.com>
9928
9929 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9930 * dbxread.c (elfstab_build_psymtabs): Don't call
9931 install_minimal_symbols.
9932 (stabsect_build_psymtabs): Likewise.
9933 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9934 earlier.
9935 * somread.c (som_symfile_read): Call install_minimal_symbols
9936 and do_cleanups earlier.
9937 * nlmread.c (nlm_symfile_read): Likewise.
9938 * mdebugread.c (elfmdebug_build_psymtabs): Call
9939 install_minimal_symbols and make appropriate cleanups.
9940
cf466558
KB
99412003-02-20 Kevin Buettner <kevinb@redhat.com>
9942
9943 * solib.c (reload_shared_libraries): New function.
9944 (_initialize_solib): Add callbacks for ``set solib-search-path''
9945 and ``set solib-absolute-prefix''.
9946
de5ad195
DC
99472003-02-20 David Carlton <carlton@math.stanford.edu>
9948
9949 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9950 expand comment.
9951 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9952 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9953 * ada-typeprint.c (ada_typedef_print): Ditto.
9954 * ax-gdb.c (gen_var_ref): Ditto.
9955 * breakpoint.c (print_one_breakpoint): Ditto.
9956 * buildsym.c (finish_block): Ditto.
9957 * c-valprint.c (c_val_print): Ditto.
9958 * expprint.c (print_subexp): Ditto.
9959 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9960 * infcmd.c (jump_command): Ditto.
9961 * linespec.c (decode_line_2, decode_compound): Ditto.
9962 * maint.c (maintenance_translate_address): Ditto.
9963 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9964 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9965 Ditto.
8ffd9b1b
AJ
9966 * p-valprint.c (pascal_val_print): Ditto.
9967 * stabsread.c (define_symbol): Ditto.
de5ad195 9968 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9969 (print_frame_arg_vars, return_command): Ditto.
9970 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9971 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9972 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9973 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9974 (rbreak_command): Ditto.
9975 * tracepoint.c (tracepoints_info): Ditto.
9976 * typeprint.c (typedef_print): Ditto.
9977 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9978 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9979 * ada-typeprint.c: Update Copyright.
9980 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9981 * tracepoint.c, cli/cli-cmds.c: Ditto.
9982
f796e4be
KB
99832003-02-20 Kevin Buettner <kevinb@redhat.com>
9984
9985 * frame.c (generic_unwind_get_saved_register): Make non-static.
9986 * frame.h (generic_unwind_get_saved_register): Declare.
9987 * mips-tdep.c (read_next_frame_reg): Fetch register from
9988 current regcache when frame is NULL.
9989 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9990 that must be NULL.
9991 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9992 instead of frame_register_unwind().
9993
836cc9f4
AC
99942003-02-20 Andrew Cagney <ac131313@redhat.com>
9995
9996 * remote-sim.c (gdbsim_insert_breakpoint)
9997 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9998 code.
9999
501eef12
AC
100002003-02-20 Andrew Cagney <ac131313@redhat.com>
10001
10002 * remote.c (_initialize_remote): Add commands "set/show remote
10003 hardware-watchpoint-limit" and "set/show remote
10004 hardware-breakpoint-limit".
10005 (remote_hw_watchpoint_limit): Initialize to -1.
10006 (remote_hw_breakpoint_limit): Ditto.
10007 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10008
1b6bc7e0
CF
100092003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10010
10011 * coff-pe-read.c: New file - support reading of minimal symbols from a
10012 portable executable using the export table.
10013 * coff-pe-read.h: New file.
10014 * coffread.c: Include coff-pe-read.h.
10015 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10016 debugging symbols found.
10017 * Makefile.in (SFILES): Add coff-pe-read.o.
10018 (coff_pe_read_h): Define.
10019 (COMMON_OBS): Add coff-pe-read.o.
10020 (coffread.o): Add coff_pe_read_h dependency.
10021 (coff-pe-read.o): New target.
10022
fe898f56
DC
100232003-02-19 David Carlton <carlton@math.stanford.edu>
10024
10025 * Makefile.in (SFILES): Add block.c.
10026 (block_h): New.
10027 (COMMON_OBS): Add block.o.
10028 (block.o): New.
10029 (x86-64-tdep.o): Add $(block_h).
10030 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10031 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10032 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10033 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10034 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10035 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10036 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10037 * value.h: Add opaque declaration for struct block.
10038 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10039 * ada-lang.h: Ditto.
10040 * x86-64-tdep.c: #include "block.h"
10041 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10042 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10043 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10044 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10045 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10046 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10047 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10048 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10049 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10050 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10051 * symtab.c (block_function): Ditto.
10052 (contained_in): Ditto.
10053 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10054 block.h. Add opaque declaration for struct block.
10055 * symtab.h: Move block_function and contained_in declarations to
10056 block.h. Add opaque declarations for struct block, struct
10057 blockvector.
10058 (struct block): Move to block.h.
10059 (struct blockvector): Ditto.
10060 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10061 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10062 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10063 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10064 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10065 Ditto.
10066 * block.c: New file.
10067 * block.h: New file.
10068
173345b5
TR
100692003-02-19 Theodore A. Roth <troth@openavr.org>
10070
10071 * avr-tdep.c (avr_extract_return_value): Remove function.
10072 (avr_store_return_value): Remove function.
10073 (avr_extract_struct_value_address): Remove function.
10074 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10075
338ef23d
AC
100762003-02-19 Andrew Cagney <ac131313@redhat.com>
10077
10078 * rs6000-tdep.c: Include "gdb_assert.h".
10079 (registers_e500): Add "acc" and "spefscr".
10080 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10081 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10082 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10083 really is "r0".
10084 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10085
5412f5f3
KS
100862003-02-18 Keith Seitz <keiths@redhat.com>
10087
10088 * Makefile.in: Add gdbtk-interps.c.
10089
881324eb
KB
100902003-02-18 Kevin Buettner <kevinb@redhat.com>
10091
10092 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10093 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10094
6a2f5abf
AC
100952003-02-18 Andrew Cagney <cagney@redhat.com>
10096
10097 * symtab.h (struct objfile): Add opaque declaration.
10098
54c7009d
EZ
100992003-02-18 Elena Zannoni <ezannoni@redhat.com>
10100
10101 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10102 * dbxread.c (process_one_symbol): Use last_function_start rather
10103 than function_start_offset to find the real beginning of the
10104 current function. The latter is just the text section offset on
10105 some systems, the former is always the real function start.
54c7009d 10106
7ee6d7eb
AC
101072003-02-17 Andrew Cagney <cagney@redhat.com>
10108
10109 * configure.in: Revert ${target} != ${host}.
10110
2846da9b
AC
101112003-02-17 Andrew Cagney <ac131313@redhat.com>
10112
10113 * configure.in (Makefile): Use the test ${target} != ${host},
10114 instead of the absence of the "nm.h" file, to determine of the
10115 configuration non-native.
10116 * configure: Regenerate.
8ffd9b1b 10117
3b27aeea
EZ
101182003-02-14 Elena Zannoni <ezannoni@redhat.com>
10119
fbe586ae 10120 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10121
10122 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10123 conditionalize tui_active test.
10124 (lookup_cmd_1): Ditto.
10125
b0b1c2c0
MK
101262003-02-14 Mark Kettenis <kettenis@gnu.org>
10127
10128 * configure.in: Add check for _etext.
10129 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10130 available.
10131 * config.in, configure: regenerated.
10132
8f05cde5
DJ
101332003-02-14 Daniel Jacobowitz <drow@mvista.com>
10134
10135 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10136
021e7609
AC
101372003-02-14 Andrew Cagney <ac131313@redhat.com>
10138
10139 * main.c (tui_version): Delete variable.
10140 (captured_main): When --tui, set interpreter_p to "tui" instead of
10141 enabling tui_version.
10142 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10143 tui_version.
10144 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10145 * cli/cli-cmds.c (disassemble_command): Ditto.
10146 * defs.h (tui_version): Delete declaration.
10147 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10148 (tui-interp.o): Add rules.
10149 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10150
e325dcec
CF
101512003-02-14 Christopher Faylor <cgf@redhat.com>
10152
36ffb041 10153 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10154 just-loaded dll.
10155
c4f90d87
JM
101562003-02-12 Jason Molenda (jmolenda@apple.com)
10157
fbe586ae
RH
10158 * symmisc.c (print_objfile_statistics): Include information about
10159 the number of psymtabs and symtabs in each object file.
c4f90d87 10160
e46e5ccd
KS
101612003-02-13 Keith R Seitz <keiths@redhat.com>
10162
10163 * main.h (struct captured_main_args): Add interpreter_p.
10164 * main.c (captured_main): Initialize interpreter_p from context.
10165 * gdb.c (main): Set interpreter_p argument.
10166 * Makefile.in (gdb.o): Add dependency for interps.h.
10167
fe97fe9c
AC
101682003-02-12 Andrew Cagney <ac131313@redhat.com>
10169
10170 * event-top.c (cli_command_loop): Delete declaration.
10171 (_initialize_event_loop): Delete function setting event_loop_hook.
10172 * event-top.h (cli_command_loop): Declare. Update copyright.
10173 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10174 * interps.c (current_interp_command_loop): When event_loop_p, call
10175 cli_command_loop.
10176
1cdac4ef
AC
101772003-02-12 Andrew Cagney <ac131313@redhat.com>
10178
10179 * interps.h (interp_command_loop_ftype): Change return type to
10180 void.
10181
48037ead
ML
101822003-02-12 Michal Ludvig <mludvig@suse.cz>
10183
10184 * x86-64-tdep.c (x86_64_extract_return_value)
10185 (x86_64_store_return_value): Use regcache instead of regbuf.
10186 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10187 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10188
033afc63
AC
101892003-02-11 Andrew Cagney <ac131313@redhat.com>
10190
10191 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10192 * aclocal.m4: Regenerate.
10193 * configure: Regenerate.
10194
10195 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10196 TCL_LD_SEARCH_FLAGS.
10197
40d02bca
ML
101982003-02-10 Michal Ludvig <mludvig@suse.cz>
10199
10200 * dwarf2cfi.c: Reindented.
10201
11308a41
AC
102022003-02-09 Andrew Cagney <ac131313@redhat.com>
10203
10204 * interps.c (clear_interpreter_hooks): Convert function definition
10205 to ISO C.
10206
e1c1c0f6
DC
102072003-02-07 David Carlton <carlton@math.stanford.edu>
10208
10209 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10210
ab5d3da6
KB
102112003-02-07 Kevin Buettner <kevinb@redhat.com>
10212
10213 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10214 (struct type): ...to here.
10215 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10216 field.
10217 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10218 (replace_type): Set length on all type variants for a given type.
10219
b8a92b82
AC
102202003-02-07 Andrew Cagney <ac131313@redhat.com>
10221
10222 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10223 <sys/stat.h>.
10224 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10225
5cb316ef
AC
102262003-02-06 Andrew Cagney <ac131313@redhat.com>
10227
2555fe1a
AC
10228 * Makefile.in (symm-nat.o): Update dependencies.
10229 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10230 (lynx-nat.o, ia64-linux-nat.): Ditto.
10231 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10232 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10233 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10234
44270758
AC
10235 * Makefile.in (inflow_h): Define.
10236 (procfs.o, inflow.o, procfs.o): Update dependencies.
10237 * inftarg.c (child_stop): Delete extern declaration of
10238 inferior_process_group. Include "inflow.h".
10239 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10240 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10241 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10242 (our_process_group, inferior_process_group): Extern declarations.
10243
df8f7274
AC
10244 * procfs.c: Include "gdb_assert.h".
10245
5cb316ef
AC
10246 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10247 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10248 * jv-typeprint.c (java_type_print_base): Ditto.
10249 * typeprint.c (typedef_print): Eliminate STREQ.
10250 * cli/cli-script.c (define_command, define_command): Ditto.
10251 * main.c (captured_main): Ditto.
10252 * values.c (lookup_internalvar): Ditto.
10253 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10254 within `if' conditional.
10255 * linespec.c (decode_line_2): Ditto.
10256 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10257 (bfd_openw_with_cleanup): Ditto.
10258
2a28ccea
MK
102592003-02-07 Mark Kettenis <kettenis@gnu.org>
10260
10261 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10262 legacy_extract_return_value and store_return_value to
10263 legacy_return_value.
10264
786b8124
CF
102652003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10266
10267 * win32-nat.c (get_relocated_section_addrs): New function. Find
10268 section load addresses for symbol handling in relocated DLLs.
10269 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10270
b871e4ec
FF
102712003-02-05 Fred Fish <fnf@intrinsity.com>
10272
10273 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10274 '=' and '!='.
10275 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10276 with '&' and '=='.
10277 (angel_RDI_info): Ditto.
10278 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10279 with '&' and '!='.
10280 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10281
4389a95a 102822003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10283 Keith Seitz <keiths@redhat.com>
10284 Elena Zannoni <ezannoni@redhat.com>
10285 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10286
10287 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10288 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10289 (SUBDIR_MI_OBS): Add "mi-interp.o".
10290 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10291 (SFILES): Add "interps.c".
10292 (COMMON_OBS): Add "interps.o".
10293 (interps_h, mi_main_h): Define.
10294 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10295 (mi-main.o, main.o, event-top.o): Update dependencies.
10296 * cli/cli-interp.c: New file.
10297 * interps.h, interps.c: New files.
10298 * top.c: (gdb_init): Don't install the default interpreter, handed
10299 by captured_main.
10300 * main.c: Include "interps.h".
10301 (interpreter_p): Note that it should malloc'ed.
10302 (captured_command_loop): Call current_interp_command_loop.
10303 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10304 xfree and xstrdup when updating interpreter_p. Install the
10305 default interpreter. Add hack to stop mi1's copyright notice
10306 being encoded.
10307 * event-top.h (gdb_setup_readline): Declare.
10308 (gdb_disable_readline): Declare.
10309 * event-top.c: Include "interps.h".
10310 (display_gdb_prompt): Call current_interp_display_prompt_p.
10311 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10312 gdb_stdlog, and gdb_stdtarg.
10313 (_initialize_event_loop): Don't call gdb_setup_readline.
10314 * cli-out.c (cli_out_set_stream): New function.
10315 * cli-out.h (cli_out_set_stream): Declare.
10316
ff3b5810
MK
103172003-02-06 Mark Kettenis <kettenis@gnu.org>
10318
10319 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10320 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10321 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10322 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10323 config/i386/i386v42mp.mt: Removed.
10324
5b729aa5
MK
103252003-02-05 Mark Kettenis <kettenis@gnu.org>
10326
10327 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10328 GDB_OSABI_SOLARIS.
10329
8cc15142
MC
103302003-02-05 Michael Chastain <mec@shout.net>
10331
10332 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10333 2.12.1 and earlier versions.
10334
5aa5d4b9
AC
103352003-02-05 Andrew Cagney <ac131313@redhat.com>
10336
10337 Remove orphaned hosts, targets and files.
10338 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10339 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10340 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10341 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10342 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10343 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10344 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10345 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10346 * config/sparc/tm-sp64sim.h: Delete.
10347 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10348 hosts.
10349 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10350 mips*-dec-mach3* targets.
10351
b68767c1
MC
103522003-02-04 Michael Chastain <mec@shout.net>
10353
10354 * NEWS: Fix typo: sepcifying -> specifying.
10355
5ae7ca1d
MC
103562003-02-04 Michael Chastain <mec@shout.net>
10357
10358 * dwarfread.c: Add documentation on the state of dwarf-1,
10359 looking towards obsoletion.
10360
d08a4280
MC
103612003-02-03 Michael Chastain <mec@shout.net>
10362
10363 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10364 gdb/testsuite/gdb.c++/pr-1023.exp.
10365
e9be73e4
AC
103662003-02-04 Andrew Cagney <ac131313@redhat.com>
10367
10368 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10369 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10370
10371 * utils.c (init_page_info): Delete reference to MPW in comments.
10372 * main.c (captured_main): Delete #ifdef MPW.
10373
05d57f6f
AC
103742003-02-04 Andrew Cagney <ac131313@redhat.com>
10375
8ffd9b1b 10376 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10377 * monitor.c (monitor_expect): Obsolete reference to m32r.
10378 * configure.tgt: Mark m32r-*-elf* as obsolete.
10379 * MAINTAINERS: Mark m32k as obsolete.
10380 * m32r-rom.c: Obsolete file.
10381 * config/m32r/m32r.mt: Obsolete file.
10382 * config/m32r/tm-m32r.h: Obsolete file.
10383 * m32r-stub.c: Obsolete file.
10384 * m32r-tdep.c: Obsolete file.
10385
8b0e5691
AC
103862003-02-04 Andrew Cagney <ac131313@redhat.com>
10387
10388 * NEWS: Mention that the z8k-zilog-none is obsolete.
10389 * MAINTAINERS: Mark z8k as obsolete.
10390 * configure.tgt: Obsolete the z8k-*-coff* target.
10391 * config/z8k/z8k.mt: Obsolete file.
10392 * config/z8k/tm-z8k.h: Obsolete file.
10393 * z8k-tdep.c: Obsolete file.
10394
67f16606
AC
103952003-02-04 Andrew Cagney <ac131313@redhat.com>
10396
10397 * NEWS: Mention that the mn10200-elf is obsolete.
10398 * configure.tgt: Obsolete mn10200-*-* target.
10399 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10400 mention that the mn10200 is obsolete.
10401 * breakpoint.h: Ditto.
10402 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10403 * config/mn10200/mn10200.mt: Obsolete file.
10404 * config/mn10200/tm-mn10200.h: Obsolete file.
10405 * mn10200-tdep.c: Obsolete file.
10406
fd2299bd
AC
104072003-02-04 Andrew Cagney <ac131313@redhat.com>
10408
10409 * MAINTAINERS: Mark h8500 as obsolete.
10410 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10411 * findvar.c (value_from_register): Ditto.
10412 * h8500-tdep.c: Mark file as obsolete.
10413 * config/h8500/h8500.mt: Ditto.
10414 * config/h8500/tm-h8500.h: Ditto.
10415 * NEWS: Mention that h8500 is obsolete.
10416
eb9a305d
DC
104172003-02-04 David Carlton <carlton@math.stanford.edu>
10418
10419 * objfiles.c (allocate_objfile): Always set name. Add comment at
10420 start of function.
10421 * jv-lang.c (get_dynamics_objfile): Add comment.
10422
406fc7fb
DC
104232003-02-04 David Carlton <carlton@math.stanford.edu>
10424
10425 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10426 * printcmd.c (build_address_symbolic): Replace uses of
10427 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10428 SYMBOL_NAME, and asm_demangle.
10429 Update copyright.
10430
93d91629
DC
104312003-02-04 David Carlton <carlton@math.stanford.edu>
10432
10433 * linespec.c (decode_compound): Extract code into
10434 lookup_prefix_sym.
10435 (lookup_prefix_sym): New function.
10436
1c5cb38e
DC
104372003-02-04 David Carlton <carlton@math.stanford.edu>
10438
10439 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10440 FLOAT_COERCION_BADNESS.
10441 * gdbtypes.c (rank_one_type): Replace all uses of
10442 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10443
0cf824c9
JB
104442003-02-04 Jim Blandy <jimb@redhat.com>
10445
10446 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10447 section, let dwarf_macinfo_section point to it, not
10448 dwarf_loc_section.
10449
a2d356b0
DJ
104502003-02-04 Daniel Jacobowitz <drow@mvista.com>
10451
10452 Pointed out by Anton Blanchard <anton@samba.org>.
10453 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10454 (ppc_linux_at_sigtramp_return_path): Use it.
10455
2de7ced7
DJ
104562003-02-04 Daniel Jacobowitz <drow@mvista.com>
10457
10458 * defs.h (streq): Add prototype.
10459 * utils.c (streq): New function.
10460
10461 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10462 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10463 * mdebugread.c (new_symbol): Likewise.
10464 * stabsread.c (define_symbol): Likewise.
10465 * coffread.c (process_coff_symbol): Likewise.
10466 * dwarfread.c (new_symbol): Likewise.
10467
10468 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10469 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10470 here.
10471 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10472 SYMBOL_INIT_DEMANGLED_NAME.
10473 * objfiles.c: Include "hashtab.h".
10474 (allocate_objfile): Call htab_set_functions_ex for the
10475 demangled_names_hash.
10476 (free_objfile): Call htab_delete for the demangled_names_hash.
10477 * objfiles.h (struct htab): Add declaration.
10478 (struct objfile): Add demangled_names_hash.
10479 * symfile.c: Include "hashtab.h".
10480 (reread_symbols): Call htab_delete for the demangled_names_hash.
10481 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10482 SYMBOL_NAME in the bcache.
10483 * symtab.c: Include "hashtab.h". Update comments.
10484 (create_demangled_names_hash, symbol_set_names): New functions.
10485 (symbol_find_demangled_name): New function, broken out from
10486 symbol_init_demangled_names.
10487 (symbol_init_demangled_names): Use it.
10488 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10489 (SYMBOL_SET_NAMES): New macro.
10490 (symbol_set_names): Add prototype.
10491
15831452
JB
104922003-02-03 Jim Blandy <jimb@redhat.com>
10493
10494 Use a single, consistent representation for an empty minimal
10495 symbol table in an objfile.
10496 * objfiles.c (terminate_minimal_symbol_table): New function.
10497 (allocate_objfile): Call it.
10498 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10499 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10500 non-NULL.
15831452
JB
10501 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10502 objfile has minimal symbols, compare minimal_symbol_count to zero,
10503 instead of comparing msymbols with NULL.
10504 * objfiles.c (have_minimal_symbols): Same.
10505 * solib-sunos.c (solib_add_common_symbols): Call
10506 terminate_minimal_symbol_table.
10507 * symfile.c (reread_symbols): Same.
8ffd9b1b 10508
ffc65945
KB
105092003-02-03 Kevin Buettner <kevinb@redhat.com>
10510
10511 * s390-tdep.c (s390_address_class_type_flags)
10512 (s390_address_class_type_flags_to_name)
10513 (s390_address_class_name_to_type_flags): New functions.
10514 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10515 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10516
f211c6d4
MS
105172003-02-03 Michael Snyder <msnyder@redhat.com>
10518
10519 * arm-tdep.c: Fix spell-o in comment.
10520
659b0389
ML
105212003-02-03 Michal Ludvig <mludvig@suse.cz>
10522
10523 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10524 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10525 error messages to contain BFD filename.
659b0389 10526
3b31d625
EZ
105272003-02-02 Elena Zannoni <ezannoni@redhat.com>
10528
997b089a 10529 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10530 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10531 (do_mixed_source_and_assembly): Use
10532 make_cleanup_ui_out_tuple_begin_end and
10533 make_cleanup_ui_out_tuple_begin_end.
10534 (do_mixed_source_and_assembly): Ditto.
10535 * thread.c (do_captured_list_thread_ids): Ditto.
10536 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10537 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10538 ui_out_tuple_end): Delete prototypes.
10539 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10540 ui_out_list_end, ui_out_tuple_end): Delete.
10541
10542 From Kevin Buettner <kevinb@redhat.com>:
10543 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10544 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10545 (do_cleanup_table_end): New functions.
10546 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10547 Use cleanups to invoke_ui_out_tuple_end().
10548 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10549 * cli/cli-setshow.c (cmd_show_list): Use
10550 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10551
5b181d62
AC
105522003-02-02 Andrew Cagney <ac131313@redhat.com>
10553
10554 * frame.c (frame_unwind_register): New function.
10555 (frame_unwind_unsigned_register): Use.
10556 (frame_unwind_signed_register): Use.
10557 (frame_read_register): New function.
10558 * frame.h (frame_unwind_register): Declare.
10559 (frame_read_register): Declare.
10560
10561 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10562 and frame_unwind_register instead of read_memory, write_register
10563 and deprecated_write_register_bytes.
10564
5f601589
AC
105652003-02-02 Andrew Cagney <ac131313@redhat.com>
10566
10567 * frame.h: Note that namelen can be negative.
10568 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10569 NAME's length.
10570
10571 * NEWS: Mention that the d10v's `regs' command is deprecated.
10572 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10573 (d10v_print_registers_info): New function.
10574 (show_regs): Call d10v_print_registers_info.
10575 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10576
6a3fe0a4
MK
105772003-02-02 Mark Kettenis <kettenis@gnu.org>
10578
10579 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10580 lost in the previous patch.
10581
075559bc
AC
105822003-02-01 Andrew Cagney <ac131313@redhat.com>
10583
10584 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10585 * stack.c (print_frame_info_base): Output complete FRAME tuple
10586 for synthesized frames.
075559bc 10587
6789195b
AC
105882003-02-02 Andrew Cagney <ac131313@redhat.com>
10589
10590 * mips-nat.c (zerobuf): Delete.
10591 (fetch_inferior_registers): Alloc local zerobuf.
10592 (fetch_core_registers): Alloc local zerobuf.
10593 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10594 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10595 * thread-db.c (thread_db_store_registers): Ditto.
10596 * sh-tdep.c (sh_do_register): Ditto.
10597 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10598 * remote-sim.c (gdbsim_store_register): Ditto.
10599 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10600 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10601 * monitor.c (monitor_supply_register): Ditto.
10602 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10603 * mips-nat.c (fetch_inferior_registers): Ditto.
10604 * m68klinux-nat.c (fetch_register): Ditto.
10605 * lynx-nat.c (fetch_inferior_registers): Ditto.
10606 (fetch_inferior_registers): Ditto.
10607 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10608 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10609 (hpux_thread_store_registers): Ditto.
10610 * hppah-nat.c (fetch_register): Ditto.
10611 * hppab-nat.c (fetch_register): Ditto.
10612 * hppa-tdep.c (pa_register_look_aside): Ditto.
10613 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10614 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10615
e669114a
AC
106162003-02-01 Andrew Cagney <ac131313@redhat.com>
10617
10618 * gdbarch.sh: Explictly specify all method levels. When a
10619 variable with an empty level, provide a non-multi-arch default.
10620 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10621 * gdbarch.h: Re-generate.
10622 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10623 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10624
9a043c1d
AC
106252003-02-01 Andrew Cagney <ac131313@redhat.com>
10626
10627 * defs.h (host_pointer_to_address): Delete declaration.
10628 (address_to_host_pointer): Delete declaration.
10629 * utils.c (host_pointer_to_address): Delete function.
10630 (address_to_host_pointer): Delete function.
10631 * procfs.c (procfs_address_to_host_pointer): New function.
10632 * procfs.c (proc_set_watchpoint): Use.
10633 (procfs_can_use_hw_breakpoint): Update comments.
10634 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10635 (som_solib_add): Use.
10636 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10637 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10638
7ca9f392
AC
106392003-02-01 Andrew Cagney <ac131313@redhat.com>
10640
94bbfd30
AC
10641 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10642 strlen d_name.
10643
7ca9f392
AC
10644 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10645 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10646 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10647 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10648 (define_symbol): Update.
10649 * symfile.c (generic_load): Remove references to nindy.
10650 * symtab.c: Remove references to nindy.
10651
31a85ea2
AC
106522003-02-01 Andrew Cagney <ac131313@redhat.com>
10653
10654 * infcmd.c (print_float_info): Delete code conditional on
10655 FLOAT_INFO.
10656 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10657 * config/m68k/nm-apollo68b.h: Ditto.
10658 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10659 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10660 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10661
f6e85fc8
MK
106622003-02-01 Mark Kettenis <kettenis@gnu.org>
10663
6015b6a0
MK
10664 * config/i386/tm-i386os9k.h: Removed.
10665
f7a30bdf
MK
10666 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10667 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10668 they're identical to i[3456]86-*-sysv* now.
10669 * config/i386/i386v32.mh: Removed.
10670 * config/i386/xm-i386v32.h: Removed.
10671 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10672
28d52111
MK
10673 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10674
4d3f6bce
MK
10675 * config/i386/i386dgux.mh: Removed.
10676 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10677
f6e85fc8
MK
10678 * configure.in: Fix typo.
10679 * configure: Regenerated.
10680
53955967
DC
106812003-01-31 David Carlton <carlton@math.stanford.edu>
10682
10683 * dwarf2read.c (dwarf2_locate_sections): Set
10684 dwarf_ranges_section.
10685
b1364885
AC
106862003-01-31 Andrew Cagney <ac131313@redhat.com>
10687
8dbb1c65
AC
10688 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10689 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10690
8731e58e
AC
10691 * utils.c: Re-indent.
10692
b1364885
AC
10693 * config/djgpp/fnchange.lst: Delete nindy files.
10694 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10695 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10696 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10697 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10698 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10699 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10700 * Makefile.in (init.c): Remove nindy references.
10701 (saber_gdb): Delete rule.
10702 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10703 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10704 and a68v-nat.c.
10705 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10706 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10707 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10708 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10709 nindy-share/stop.h.
10710 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10711 * saber.suppress: Delete file.
10712
086df311
DJ
107132003-01-31 Daniel Jacobowitz <drow@mvista.com>
10714
10715 * dbxread.c (stabs_data): New static variable.
10716 (fill_symbuf): Support an in-memory buffer for stabs data.
10717 (stabs_seek): New function.
10718 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10719 (read_ofile_symtab): Use stabs_seek.
10720 (elfstab_build_psymtabs): Take an asection* instead of
10721 an offset and size. Relocate the stabs data if necessary.
10722 Save the section* for dbx_psymtab_to_symtab.
10723 * dwarf2read.c: Add section variables for each debug section.
10724 (dwarf2_locate_sections): Fill them in.
10725 (dwarf2_read_section): Take an asection* argument.
10726 Relocate the section contents if necessary.
10727 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10728 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10729 it to dwarf2_read_section.
10730 (dwarf2_build_frame_info): Update callers.
10731 * elfread.c (elf_symfile_read): Update call to
10732 elfstab_build_psymtabs.
10733 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10734 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10735 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10736 * symfile.c (symfile_dummy_outputs): New function.
10737 (symfile_relocate_debug_section): New function.
10738 * symfile.h (symfile_relocate_debug_section): Add prototype.
10739
87d1b352
RH
107402003-01-31 Richard Henderson <rth@redhat.com>
10741
10742 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10743 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10744 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10745 * alpha-tdep.c (alpha_register_name): Add "unique".
10746 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10747 (ALPHA_UNIQUE_REGNUM): New.
10748 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10749
c48861fb
AC
107502003-01-31 Andrew Cagney <ac131313@redhat.com>
10751
10752 * README: Remove reference to Ericsson 1800 monitor.
10753 * Makefile.in (remote-es.o): Delete rule.
10754 (ALLDEPFILES): Delete remote-es.c.
10755 * remote-es.c: Delete file.
10756 * config/m68k/es1800.mt: Delete file.
10757 * config/djgpp/fnchange.lst: Update.
10758 * configure.tgt: Delete m68*-ericsson-* target.
10759
d764a824
AF
107602003-01-31 Adam Fedor <fedor@gnu.org>
10761
10762 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10763 Remove duplicate/shadowing variable of same name.
10764
fe36c4f4
JB
107652003-01-30 Jim Blandy <jimb@redhat.com>
10766
10767 * symfile.c (find_separate_debug_file): Assert that the objfile's
10768 directory name we compute ends with a slash, and then assume that
10769 that's so everywhere we use it.
10770
cb741690
DJ
107712003-01-30 Daniel Jacobowitz <drow@mvista.com>
10772
10773 * valops.c (value_assign): Flush frame cache after stores to memory
10774 also.
10775
96ee5227
AC
107762003-01-30 Andrew Cagney <ac131313@redhat.com>
10777
10778 * Makefile.in (mon960-rom.o): Delete rule.
10779 * mon960-rom.c: Delete file.
10780
7f6104a9
AC
107812003-01-30 Andrew Cagney <ac131313@redhat.com>
10782
10783 * d10v-tdep.c: Include "frame-unwind.h".
10784 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10785 list.
10786 (next_addr, uses_frame): Delete.
10787 (struct d10v_unwind_cache): Define.
10788 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10789 Use info instead of next_addr and uses_frame globals.
10790 (d10v_frame_init_saved_regs): Delete function.
10791 (d10v_init_extra_frame_info): Delete function.
10792 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10793 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10794 init_frame_pc or frame_saved_pc.
10795 (d10v_pop_frame): Delete function.
10796 (do_d10v_pop_frame): Delete function.
10797 (d10v_frame_chain): Delete function.
10798 (d10v_frame_chain_valid): Delete function.
10799 (d10v_frame_pc_unwind): New function.
10800 (d10v_frame_id_unwind): New function.
10801 (saved_regs_unwinder): New function.
10802 (d10v_frame_register_unwind): New function.
10803 (d10v_frame_pop): New function.
10804 (d10v_frame_unwind): New variable.
10805 (d10v_frame_p): New function.
10806 (d10v_frame_saved_pc): Delete function.
10807 * Makefile.in (d10v-tdep.o): Update dependencies.
10808
cad2e848
JB
108092003-01-30 J. Brobecker <brobecker@gnat.com>
10810
10811 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10812 causing some regressions due to a change in the default value
10813 for this macro.
10814
af34e669
DJ
108152003-01-29 Richard Henderson <rth@redhat.com>
10816 Elena Zannoni <ezannoni@redhat.com>
10817 Daniel Jacobowitz <drow@mvista.com>
10818
10819 Fix PR gdb/961.
8ffd9b1b 10820 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10821 variables.
10822 (RANGES_SECTION): New.
10823 (dwarf_ranges_buffer): New variable.
10824 (struct comp_unit_head): Add member "die".
10825 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10826 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10827 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10828 (dwarf2_locate_sections): Likewise.
10829 (dwarf2_build_psymtabs): Read .debug_ranges.
10830 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10831 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10832 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10833 Look for DW_AT_ranges and return the bounding box.
10834
baa93fa6
CF
108352003-01-29 Brian Ford <ford@vss.fsi.com>
10836
10837 * win32-nat.c (cygwin_pid): Removed as unused.
10838 (child_attach): Try fall back to Cygwin pid.
10839
c63f977f
JB
108402003-01-29 Jim Blandy <jimb@redhat.com>
10841
10842 * objfiles.h (struct objfile): Doc fix.
10843
d62d1979
AC
108442003-01-29 Andrew Cagney <ac131313@redhat.com>
10845
10846 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10847 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10848 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10849 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10850 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10851 (FRAME_SAVED_PC): Change to a function with predicate.
10852 * gdbarch.h, gdbarch.c: Re-generate.
10853
1ae18a04
AC
108542003-01-28 Andrew Cagney <ac131313@redhat.com>
10855
52287340
AC
10856 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10857
1ae18a04
AC
10858 * complaints.c (complain): Delete function.
10859 * complaints.h (struct deprecated_complaint): Delete definition.
10860 (complain): Delete declaration.
10861
f2c16bd6
KB
108622003-01-28 Kevin Buettner <kevinb@redhat.com>
10863
10864 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10865 dummy frames.
10866
a94dd1fd
AC
108672003-01-27 Andrew Cagney <ac131313@redhat.com>
10868
10869 * sentinel-frame.h, sentinel-frame.c: New files.
10870 * Makefile.in (frame.o): Update dependencies.
10871 (SFILES): Add sentinel-frame.c.
10872 (sentinel_frame_h): Define.
10873 (COMMON_OBS): Add sentinel-frame.o.
10874 (sentinel-frame.o): Specify dependencies.
10875 * frame.c: Include "sentinel-frame.h".
10876 (frame_register_unwind): Rewrite assuming that there is always a a
10877 ->next frame.
10878 (frame_register, generic_unwind_get_saved_register): Ditto.
10879 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10880 (create_sentinel_frame, unwind_to_current_frame): New functions.
10881 (get_current_frame): Rewrite using create_sentinel_frame and
10882 unwind_to_current_frame. When possible, always create a frame.
10883 (create_new_frame): Set next to the sentinel frame.
10884 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10885 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10886 ID cache when necessary.
10887 (frame_saved_regs_id_unwind): Use frame_relative_level.
10888 (deprecated_generic_get_saved_register): Use frame_relative_level,
10889 get_frame_saved_regs, get_frame_pc, get_frame_base and
10890 get_next_frame.
10891 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10892 frame_register.
10893
5378adc4
DJ
108942003-01-27 Daniel Jacobowitz <drow@mvista.com>
10895
10896 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10897
51ee2ddc
DJ
108982003-01-27 Daniel Jacobowitz <drow@mvista.com>
10899
10900 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10901 (maintenance_set_profile_cmd): Use error () instead of warning ().
10902
d9feb4e7
DJ
109032003-01-27 Daniel Jacobowitz <drow@mvista.com>
10904
10905 * configure.in: Check that -pg works if using --enable-profiling.
10906 Check for monstartup and _mcleanup regardless of --enable-profiling.
10907 * maint.c: Check for monstartup and _mcleanup before using them.
10908 * config.in: Regenerated.
10909 * configure: Regenerated.
10910
2d188dd3
NC
109112003-01-24 Nick Clifton <nickc@redhat.com>
10912
10913 * Add sh2e support:
10914
10915 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10916
10917 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10918 (sh2e_show_regs): New.
10919 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10920 * config/sh/tm-sh.h: Added sh2e to comments.
10921
cb3c37b2
JB
109222003-01-23 Jim Blandy <jimb@redhat.com>
10923
10924 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10925 symbols found)" message here; we haven't checked for a separate
10926 debug info file yet, so we don't know yet.
10927 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10928 we've looked everywhere. Also, there's no need to print a special
10929 message when we're loading the separate debug info file: the one
10930 symbol_file_add prints is fine.
10931
5b5d99cf
JB
109322003-01-23 Alexander Larsson <alexl@redhat.com>
10933 Jim Blandy <jimb@redhat.com>
10934
10935 Add support for executables whose debug info has been separated
10936 out into a separate file, leaving only a link behind.
10937 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10938 and separate_debug_objfile_backlink.
10939 (put_objfile_before): New declaration.
10940 * symfile.c: #include "filenames.h".
10941 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10942 debug info in a separate file, read that, too. Save the addrs
10943 argument, so we can use it again to read the separated debug info;
10944 syms_from_objfile modifies the table we pass it.
10945 (reread_symbols): After re-reading an objfile, call
10946 reread_separate_symbols to refresh its separate debug info
10947 objfile, if it has one.
10948 (reread_separate_symbols, find_separate_debug_file,
10949 get_debug_link_info, separate_debug_file_exists): New functions.
10950 (debug_file_directory): New global var.
10951 (_initialize_symfile): Initialize debug_file_directory, and
10952 provide the new `set debug-file-directory' command to let the user
10953 change it.
10954 * objfiles.c (free_objfile): If this objfile has its debug info in
10955 a separate objfile, free that one too. If this is itself a
10956 separate debug info objfile, clear our parent's backlink.
10957 (put_objfile_before): New function.
10958 * utils.c (gnu_debuglink_crc32): New function.
10959 * defs.h (gnu_debuglink_crc32): New declaration.
10960 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10961 * configure.in: Handle --with-separate-debug-dir config option.
10962 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10963 * acconfig.h (DEBUGDIR): New macro.
10964 * configure, aclocal.m4, config.in: Regenerated.
10965
7e8580c1
JB
109662003-01-22 Jim Blandy <jimb@redhat.com>
10967
7904e09f
JB
10968 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10969 like the old symbol_file_add, but taking new arguments: you can
10970 now pass in either a `struct section_addr_info' list to say where
10971 each section is loaded, or a `struct section_offsets' table. Pass
10972 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10973 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10974 with the appropriate quiescent values for the new arguments.
10975
7e8580c1
JB
10976 * symfile.c: #include "gdb_assert.h".
10977 (syms_from_objfile): Add the ability to pass in a section offset
10978 table directly, as an alternative to the section_addr_info table.
10979 Document arguments better.
10980 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10981 * symfile.h (syms_from_objfile): Update declaration.
10982 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10983 syms_from_objfile.
10984 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10985
d28f9cdf
DJ
109862003-01-22 Daniel Jacobowitz <drow@mvista.com>
10987
10988 Original patch by Tom Tromey <tromey@cygnus.com> and
10989 Jason Molenda <jmolenda@apple.com>.
10990 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10991 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10992 * NEWS: Mention profiling.
10993 * configure.in (--enable-gdbtk): Fix typo.
10994 (--enable-profiling): New. Set PROFILE_CFLAGS.
10995 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10996 Fill in function.
10997 (profiling_state): New variable.
10998 (mcleanup_wrapper): New function.
10999 (_initialize_maint): Remove NOTYET, fix call to
11000 add_setshow_boolean_cmd for "maint set profile".
11001 * configure: Regenerated.
11002
df21e465
MH
110032003-01-21 Martin M. Hunt <hunt@redhat.com>
11004
11005 * Makefile.in (install-gdbtk): Install PNG images too.
11006
73c1f219
AC
110072003-01-21 Andrew Cagney <ac131313@redhat.com>
11008
11009 * exec.c (text_start): Delete global variable.
11010 (exec_file_attach): Make text_start local to the function.
11011 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11012 * valops.c (hand_function_call): Delete code that handles
11013 BEFORE_TEXT_END and AFTER_TEXT_END.
11014 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11015 of CALL_DUMMY_LOCATION.
11016 * gdbarch.c: Regenerate.
11017 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11018 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11019 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11020 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11021 (text_end): Delete extern declaration.
11022
eb4f72c5
AC
110232003-01-21 Andrew Cagney <ac131313@redhat.com>
11024
11025 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11026 * blockframe.c (backtrace_below_main): Move to "frame.c".
11027 (frame_chain_valid): Delete check for backtrace_below_main.
11028 (_initialize_blockframe): Delete initialization, move ``set
11029 backtrace-below-main'' command to "frame.c".
11030 (do_flush_frames_sfunc): Delete function.
11031 * frame.c: Include "command.h" and "gdbcmd.h".
11032 (frame_type_from_pc): New function.
11033 (create_new_frame): Use frame_type_from_pc.
11034 (legacy_get_prev_frame): New function.
11035 (get_prev_frame): Rewrite. When an old style frame, call
11036 legacy_get_prev_frame. Otherwize, unwind the PC first.
11037 (_initialize_frame): Add ``set backtrace-below-main'' command.
11038 * Makefile.in (frame.o): Update dependencies.
11039
778ce8cc
AC
110402003-01-19 Andrew Cagney <ac131313@redhat.com>
11041
11042 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11043 DEPRECATED_REGISTERS_INFO.
11044
01c193c8
AC
110452003-01-19 Andrew Cagney <ac131313@redhat.com>
11046
11047 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11048 Maintainers'. Update `Various Maintainers'.
11049
dedc2a2b
AC
110502003-01-19 Andrew Cagney <ac131313@redhat.com>
11051
11052 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11053 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11054 Suppress actual parameters when `-'.
11055 * gdbarch.h, gdbarch.c: Regenerate.
11056
b7261c70
AC
110572003-01-19 Andrew Cagney <ac131313@redhat.com>
11058
11059 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11060 code handling dummy frames.
11061
dbe9fe58
AC
110622003-01-19 Andrew Cagney <ac131313@redhat.com>
11063
11064 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11065 (struct frame_unwind): Add field pop.
11066 * frame.h (frame_pop): Declare.
11067 * frame.c (frame_saved_regs_pop): New function.
11068 (trad_frame_unwinder): Add frame_saved_regs_pop.
11069 (frame_pop): New function.
11070 * dummy-frame.c (dummy_frame_pop): New function.
11071 (discard_innermost_dummy): New function.
11072 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11073 (dummy_frame_unwind): Add dummy_frame_pop.
11074 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11075 * valops.c (hand_function_call): Ditto.
11076 * stack.c (return_command): Ditto.
11077
570b8f7c
AC
110782003-01-18 Andrew Cagney <ac131313@redhat.com>
11079
11080 * cris-tdep.c: Fix function declaration indentation.
11081 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11082 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11083 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11084 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11085 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11086 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11087
110882003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11089
11090 * README (Unpacking and Installation -- quick overview):
11091 Warn against ".../gdb-5.3/gdb/configure".
11092
494cca16
AC
110932003-01-18 Andrew Cagney <ac131313@redhat.com>
11094
11095 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11096 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11097 (struct frame_unwind): Declare opaque.
11098 (dummy_frame_p): Declare function.
11099 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11100 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11101 * dummy-frame.c: Include "frame-unwind.h".
11102 (dummy_frame_p): New function.
11103 (dummy_frame_unwind): New variable.
11104 * frame.c: Include "frame-unwind.h".
11105 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11106 to use the new unwind field.
11107 (set_unwind_by_pc): Delete function.
11108 (create_new_frame, get_prev_frame): Set unwind field using
11109 frame_unwind_find_by_pc.
11110 (trad_frame_unwind, trad_frame_unwinder): New variables.
11111 * frame.h (trad_frame_unwind): Declare variable.
11112 (frame_id_unwind_ftype): Delete declaration.
11113 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11114 (struct frame_unwind): Declare opaque.
11115 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11116 register_unwind with a single unwind pointer.
11117 * frame-unwind.h, frame-unwind.c: New files.
11118 * Makefile.in (SFILES): Add frame-unwind.c.
11119 (frame_unwind_h): Define.
11120 (COMMON_OBS): Add frame-unwind.o.
11121 (frame-unwind.o): Specify dependencies.
11122 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11123
4efb68b1
AC
111242003-01-18 Andrew Cagney <ac131313@redhat.com>
11125
11126 * ada-valprint.c: Eliminate PTR.
11127 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11128 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11129 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11130 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11131 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11132 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11133 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11134
a84d24ee
AC
111352003-01-17 Andrew Cagney <ac131313@redhat.com>
11136
762f08a3
AC
11137 * main.c (captured_main): Don't use PTR.
11138 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11139 * gdbtypes.c (lookup_primitive_typename): Ditto.
11140 (lookup_struct_elt_type): Ditto.
11141 * f-valprint.c (info_common_command): Ditto.
11142 (list_all_visible_commons): Ditto.
11143 * jv-typeprint.c (java_type_print_base): Ditto.
11144
a84d24ee
AC
11145 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11146 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11147 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11148 i386-interix-nat.c and i386-interix-tdep.c. Rename
11149 m68klinux-nat.c and m68klinux-tdep.c. Rename
11150 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11151 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11152 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11153 * main.c (captured_main): Use xfree, not free.
11154
c170fb60
AC
111552003-01-16 Andrew Cagney <ac131313@redhat.com>
11156
11157 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11158 ID back using a parameter.
11159 * frame.c (frame_id_unwind): Update call.
11160 (frame_saved_regs_id_unwind): Update.
11161 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11162 * dummy-frame.h (struct frame_id): Add opaque declaration.
11163 (dummy_frame_id_unwind): Update declaration.
11164
867f3898
AC
111652003-01-15 Andrew Cagney <ac131313@redhat.com>
11166
11167 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11168
40622be8 111692003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11170
40622be8 11171 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11172
ae66c1fc
EZ
111732003-01-14 Elena Zannoni <ezannoni@redhat.com>
11174
997b089a 11175 Fix PR gdb/898
ae66c1fc
EZ
11176 * breakpoint.c (until_break_command): Add new argument. Use it to
11177 decide whether to stop only at the current frame or not.
11178 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11179 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11180 call.
11181 (advance_command): New function.
11182 (_initialize_infcmd): Update help string for 'until' command.
11183 Add new 'advance' command.
11184
a04257e6
DC
111852003-01-14 David Carlton <carlton@math.stanford.edu>
11186
11187 * linespec.c (decode_line_1): Normalize comments.
11188 (set_flags): Ditto.
11189 (locate_first_half): Ditto.
11190 (decode_compound): Ditto.
11191 (symtab_from_filename): Ditto.
11192 (decode_all_digits): Ditto.
11193 (decode_dollar): Ditto.
11194 (find_methods): Ditto.
11195 (find_toplevel_char): Ditto.
11196
1bac305b
AC
111972003-01-13 Andrew Cagney <ac131313@redhat.com>
11198
11199 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11200 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11201 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11202 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11203 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11204 * language.c, language.h, m32r-tdep.c: Update copyright.
11205 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11206 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11207 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11208 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11209 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11210 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11211
25caa7a8
EZ
112122003-01-13 Elena Zannoni <ezannoni@redhat.com>
11213
11214 * stabsread.h (process_later, resolve_cfront_continuation):
11215 Obsolete.
11216 Update copyright years.
11217 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11218 Update copyright year.
11219 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11220 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11221 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11222 Update copyright year.
11223 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11224 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11225 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11226 (parse_partial_symbols): Obsolete cfront support.
11227 * stabsread.c
11228 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11229 macros.
11230 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11231 read_cfront_baseclasses, read_cfront_member_functions,
11232 resolve_cfront_continuation,read_cfront_static_fields,
11233 copy_cfront_struct_fields): Obsolete functions.
11234 (define_symbol, read_one_struct_field): Obsolete cfront support.
11235 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11236 Update Copyright year.
11237
7789c6f5
EZ
112382003-01-13 Elena Zannoni <ezannoni@redhat.com>
11239
11240 * stack.c (print_frame_info, print_stack_frame_base_stub,
11241 print_stack_frame_base, show_and_print_stack_frame_stub,
11242 show_and_print_stack_frame, print_only_stack_frame_stub,
11243 print_only_stack_frame): Delete functions.
11244 (print_stack_frame_stub): Call print_frame_info instead of
11245 print_frame_info_base.
11246 (print_frame_info_base): Rename to print_frame_info.
11247 (backtrace_command_1): Call print_frame_info, instead of
11248 print_frame_info_base.
11249 (current_frame_command): Call print_stack_frame, instead of
11250 print_only_stack_frame.
11251 (frame_command): Call print_stack_frame, instead of
11252 show_and_print_stack_frame.
11253 (up_command): Ditto.
11254 (down_command): Ditto.
11255 * frame.h (print_only_stack_frame): Delete prototype.
11256 * infrun.c (normal_stop): Call print_stack_frame, instead of
11257 show_and_print_stack_frame.
11258 * thread.c (info_threads_command): Call print_stack_frame, instead
11259 of print_only_stack_frame.
11260
3f5a3016
AC
112612003-01-13 Andrew Cagney <ac131313@redhat.com>
11262
d99ba314
AC
11263 * README (Graphical interface to GDB): Update URL. Point at
11264 gdb/links/.
11265
3f5a3016
AC
11266 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11267 version match.
11268
083ae935
DJ
112692003-01-13 Daniel Jacobowitz <drow@mvista.com>
11270
11271 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11272 lines.
11273
5365276c
DJ
112742003-01-13 Daniel Jacobowitz <drow@mvista.com>
11275
11276 * thread-db.c (attach_thread): Prototype.
11277 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11278 thread information (ti), and valid flags (th_valid, ti_valid).
11279 (attach_thread): Move target_pid_to_str call to after the thread
11280 is added to GDB's list. Initialize the cache.
11281 (thread_get_info_callback, thread_db_map_id2thr)
11282 (thread_db_get_info): New functions.
11283 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11284 (thread_db_store_registers, thread_db_thread_alive)
11285 (thread_db_get_thread_local_address): Use them.
11286 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11287 of calling error() for threads in unknown state.
11288
11289 (clear_lwpid_callback): New function.
11290 (thread_db_resume): Use it to clear the cache.
11291
9fc30b6b
DJ
112922003-01-13 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11295 (resume_callback): Remove dead code.
11296
8f871025
AC
112972003-01-13 Andrew Cagney <ac131313@redhat.com>
11298
11299 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11300 predicate.
11301 * gdbarch.h, gdbarch.c: Regenerate.
11302 * stack.c (frame_info): Only initialize the saved registers when
11303 FRAME_INIT_SAVED_REGS_P.
11304 * frame.c (frame_saved_regs_register_unwind): Assert
11305 FRAME_INIT_SAVED_REGS_P.
11306 (deprecated_generic_get_saved_register): Ditto.
11307
3f565f1e
DJ
113082003-01-13 Daniel Jacobowitz <drow@mvista.com>
11309
11310 * source.c (openp): Squelch warning about "filename".
11311
072b1022
DJ
113122003-01-13 Daniel Jacobowitz <drow@mvista.com>
11313
11314 * source.c (openp): If the file does not exist don't necessarily
11315 search the path.
11316
973ccf8b
DJ
113172003-01-13 Daniel Jacobowitz <drow@mvista.com>
11318
11319 Fix PR gdb/872.
11320 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11321 (integer_types_same_name_p): New function.
11322 (rank_one_type): Use it.
11323 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11324
030292b7
DJ
113252003-01-13 Daniel Jacobowitz <drow@mvista.com>
11326
11327 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11328 variables.
11329 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11330 * configure.in: Add --with-sysroot.
11331 * configure: Regenerated.
11332 * main.c (gdb_sysroot): New variable.
11333 (captured_main): Initialize gdb_sysroot.
11334 * defs.h (gdb_sysroot): New extern declaration.
11335 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11336
afb5d334
MC
113372003-01-12 Michael Chastain <mec@shout.net>
11338
11339 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11340
751ceeb4
MC
113412003-01-12 Michael Chastain <mec@shout.net>
11342
11343 * top.c (print_gdb_version): Bump copyright year to 2003.
11344
94cd26f8
DC
113452003-01-12 David Carlton <carlton@bactrian.org>
11346
11347 * linespec.c (symtab_from_filename): Rename variable 's' to
11348 'file_symtab'.
11349
1ce79225
AC
113502003-01-12 Andrew Cagney <ac131313@redhat.com>
11351
11352 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11353 dummy frame.
11354 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11355
fa1fd571
AC
113562003-01-12 Andrew Cagney <ac131313@redhat.com>
11357
11358 * d10v-tdep.c: Include "gdb_assert.h".
11359 (d10v_store_return_value): Rewrite to match current interface.
11360 (d10v_extract_struct_value_address): Ditto.
11361 (d10v_extract_return_value): Ditto.
11362 (d10v_gdbarch_init): Set store_restore_value,
11363 extract_struct_value_address and extract_return_value.
11364
68b8d23e
JB
113652003-01-12 J. Brobecker <brobecker@gnat.com>
11366
11367 * hpread.c (set_namestring): New procedure replacing the
11368 SET_NAMESTRING macro.
11369 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11370 by calls to set_namestring.
11371
113722003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11373
11374 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11375 a compilation warning.
11376 (hpread_process_one_debug_symbol): Likewise.
11377
88d262ca
DC
113782003-01-10 David Carlton <carlton@math.stanford.edu>
11379
11380 * linespec.c (decode_line_1): Rename variable 's' to
11381 'file_symtab'.
11382 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11383 (decode_dollar): Ditto.
11384 (decode_variable): Ditto.
11385 (symbol_found): Ditto.
11386
86669319
MC
113872003-01-09 Michael Chastain <mec@shout.net>
11388
11389 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11390
616a9dc4
CV
113912003-01-07 Corinna Vinschen <vinschen@redhat.com>
11392
11393 * win32-nat.c (set_process_privilege): New function.
11394 (child_attach): Call set_process_privilege() to enable the
11395 SE_DEBUG_NAME user privilege if available in process token.
11396
3269bcfa
JB
113972003-01-10 J. Brobecker <brobecker@gnat.com>
11398
11399 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11400 compilation error in the previous revision.
11401
2b0ee454
DC
114022003-01-09 David Carlton <carlton@math.stanford.edu>
11403
11404 * linespec.c: Update copyright.
11405
b3ba1b44
DJ
114062003-01-09 Daniel Jacobowitz <drow@mvista.com>
11407
11408 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11409 than inferior_ptid.
11410 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11411
4ef3f3be
AC
114122003-01-09 Andrew Cagney <ac131313@redhat.com>
11413
479ab5a0
AC
11414 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11415 Update comments.
11416 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11417 (frame_saved_regs_zalloc): Update.
11418 (frame_saved_regs_register_unwind): Update.
11419 (create_new_frame): Update.
11420 (get_prev_frame): Update.
11421 (frame_extra_info_zalloc): Update.
11422 (deprecated_get_frame_saved_regs): Update.
11423 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11424 * cris-tdep.c: Update comment.
11425
bde58177
AC
11426 * somsolib.h: Fix function indentation.
11427 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11428 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11429 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11430 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11431 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11432
4ef3f3be
AC
11433 * infrun.c (follow_fork): Use ISO C definition.
11434 * expprint.c (print_subexp): Use xfree instead of free.
11435 * charset.c: Include "gdb_string.h" instead of <string.h>.
11436 (register_iconv_charsets): Use ISO C definition.
11437 (host_charset, target_charset): Ditto.
11438 * Makefile.in (charset.o): Update dependencies.
11439 (mi-cmd-env.o): Update dependencies.
11440
1c615f7a
AC
114412003-01-08 Andrew Cagney <cagney@redhat.com>
11442
11443 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11444 get_frame_base.
11445
c9a1dc08
AC
114462003-01-08 Andrew Cagney <ac131313@redhat.com>
11447
11448 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11449 build directories. Save edited gdb output in Mbuild.log. If a
11450 build fails, remove any final GDB executable.
11451
dbad9d94
AC
114522003-01-08 Andrew Cagney <ac131313@redhat.com>
11453
11454 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11455 replacing hex constants with function names and stripping leading
11456 file name directory prefixes.
11457
8d357cca
AC
114582003-01-08 Andrew Cagney <cagney@redhat.com>
11459
11460 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11461 get_frame_base.
11462
bca02a8a
DC
114632003-01-08 David Carlton <carlton@math.stanford.edu>
11464
11465 * linespec.c (decode_line_1): Move code into decode_variable.
11466 (decode_variable): New function.
11467
7f8ab3a0
AC
114682003-01-08 Andrew Cagney <ac131313@redhat.com>
11469
11470 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11471
7b5849cc
AC
114722003-01-08 Andrew Cagney <cagney@redhat.com>
11473
11474 * cris-tdep.c (cris_frame_init_saved_regs): Use
11475 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11476 saved_regs buffer.
11477 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11478 (sh64_nofp_frame_init_saved_regs): Ditto.
11479 (sh_fp_frame_init_saved_regs): Ditto.
11480 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11481 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11482 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11483 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11484
72a5efb3
DJ
114852003-01-08 Daniel Jacobowitz <drow@mvista.com>
11486
11487 * minsyms.c (lookup_minimal_symbol): Update comment.
11488 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11489 (lookup_minimal_symbol_solib_trampoline): Likewise.
11490
11c02a10
AC
114912003-01-08 Andrew Cagney <cagney@redhat.com>
11492
aab3ea25
AC
11493 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11494 frame_relative_level.
11495
da50a4b7
AC
11496 * alpha-tdep.c: Use get_frame_extra_info.
11497 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11498 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11499 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11500 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11501
11c02a10
AC
11502 * alpha-tdep.c: Use get_next_frame.
11503 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11504 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11505 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11506 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11507 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11508 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11509 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11510
1e2330ba
AC
115112003-01-07 Andrew Cagney <cagney@redhat.com>
11512
11513 * alpha-tdep.c: Use get_frame_base.
11514 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11515 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11516 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11517 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11518 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11519 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11520 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11521 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11522
2d75187b
AC
115232003-01-07 Andrew Cagney <cagney@redhat.com>
11524
11525 * frame.c (deprecated_get_frame_context): New function.
11526 (deprecated_set_frame_context): New function.
11527 * frame.h (deprecated_get_frame_context): Declare.
11528 (deprecated_set_frame_context): Declare.
11529 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11530 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11531
483d36b2
AC
115322003-01-07 Andrew Cagney <cagney@redhat.com>
11533
11534 * frame.c (deprecated_set_frame_next_hack): New function.
11535 (deprecated_set_frame_prev_hack): New function.
11536 * frame.h (deprecated_set_frame_next_hack): Declare.
11537 (deprecated_set_frame_prev_hack): Declare.
11538 * mcore-tdep.c (analyze_dummy_frame): Use
11539 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11540 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11541
14e91ac5
DC
115422003-01-07 David Carlton <carlton@math.stanford.edu>
11543
11544 * linespec.c (decode_line_1): Move code into decode_dollar.
11545 (decode_dollar): New function.
11546
b0c6b05c
AC
115472003-01-07 Andrew Cagney <cagney@redhat.com>
11548
11549 * arm-tdep.c (arm_init_extra_frame_info): Use
11550 deprecated_update_frame_base_hack.
11551 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11552 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11553 (fix_frame_pointer): Ditto.
11554 (mn10300_analyze_prologue): Ditto.
11555
a00a19e9
AC
115562003-01-07 Andrew Cagney <cagney@redhat.com>
11557
11558 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11559 extra_info using frame_extra_info_zalloc.
11560 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11561 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11562 (sh64_init_extra_frame_info): Ditto.
11563 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11564 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11565 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11566 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11567 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11568 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11569 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11570 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11571 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11572 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11573 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11574 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11575
11576 * mn10300-tdep.c (analyze_dummy_frame): Use
11577 deprecated_set_frame_extra_info_hack.
11578 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11579
1fb4c65b
JB
115802003-01-07 J. Brobecker <brobecker@gnat.com>
11581
11582 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11583 class is not scText. These do not define "real" procedures.
11584 (parse_partial_symbols): Likewise.
11585
9fe7d6bf
MS
115862003-01-06 Michael Snyder <msnyder@redhat.com>
11587
11588 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11589
f6c609c4
AC
115902003-01-06 Andrew Cagney <ac131313@redhat.com>
11591
11592 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11593 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11594 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11595 deprecated_frame_xmalloc_with_cleanup.
11596 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11597 deprecated_frame_xmalloc.
11598 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11599 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11600
d995ff4b
AC
116012003-01-06 Andrew Cagney <cagney@redhat.com>
11602
84dc46cb
AC
11603 * x86-64-linux-tdep.c: Include "osabi.h".
11604 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11605
d995ff4b
AC
11606 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11607
66140c26
AC
116082003-01-06 Andrew Cagney <cagney@redhat.com>
11609
11610 * MAINTAINERS (Target Instruction Set Architectures): Update
11611 arm-elf. Can be built with -Werror, has been multiarched.
11612
11613 * value.h (unpack_long): Make buffer parameter constant.
11614 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11615 * scm-lang.h (scm_parse): Ditto.
11616 * defs.h (extract_typed_address, extract_address): Ditto.
11617 (extract_long_unsigned_integer): Ditto.
11618 * inferior.h (unsigned_pointer_to_address): Ditto.
11619 (signed_pointer_to_address): Ditto.
11620 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11621 * gdbarch.h, gdbarch.c: Regenerate.
11622 * findvar.c (extract_long_unsigned_integer): Update.
11623 (extract_address): Update.
11624 (extract_typed_address): Update.
11625 (unsigned_pointer_to_address): Update.
11626 * values.c (unpack_long): Update.
11627 (unpack_double): Update.
11628 (unpack_pointer): Update.
11629 (unpack_field_as_long): Update.
11630 * d10v-tdep.c (d10v_pointer_to_address): Update.
11631 * avr-tdep.c (avr_pointer_to_address): Update.
11632 * scm-lang.c (scm_unpack): Update.
11633 * findvar.c (signed_pointer_to_address): Update.
11634
b089b3da
ML
116352003-01-06 Michal Ludvig <mludvig@suse.cz>
11636
8ffd9b1b 11637 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11638 since it is in i386-tdep.c.
11639
aff87235
JB
116402003-01-06 J. Brobecker <brobecker@gnat.com>
11641
11642 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11643 failure introduced in the previous change.
11644
34f5e845
MC
116452003-01-05 Michael Chastain <mec@shout.net>
11646
11647 * README: Remove references to deleted remote-*.c files:
11648 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11649 remote-nrom.c, remote-os9k.c, remote-udi.c.
11650
28bcfd30
MK
116512003-01-05 Mark Kettenis <kettenis@gnu.org>
11652
11653 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11654 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11655 i386_get_longjmp_target.
11656
15a5b3ee
AC
116572003-01-05 Andrew Cagney <ac131313@redhat.com>
11658
11659 * arm-tdep.c (prologue_cache): Change to a pointer.
11660 (_initialize_arm_tdep): Allocate prologue_cache.
11661 (check_prologue_cache): Update.
11662 (save_prologue_cache): Update.
11663 (arm_gdbarch_init): Update.
11664
c263362b
DJ
116652003-01-04 Daniel Jacobowitz <drow@mvista.com>
11666
11667 * stabsread.c (update_method_name_from_physname): Call complaint()
11668 instead of error.
11669
51603483
DJ
116702003-01-04 Daniel Jacobowitz <drow@mvista.com>
11671
11672 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11673 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11674 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11675
11676 * blockframe.c: Include "gdbcmd.h" and "command.h".
11677 (backtrace_below_main): New variable.
11678 (file_frame_chain_valid, func_frame_chain_valid)
11679 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11680 (generic_func_frame_chain_valid): Remove functions.
11681 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11682 (_initialize_blockframe): New function.
11683 * Makefile.in (blockframe.o): Update dependencies.
11684 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11685 comment. Call frame_chain_valid ().
11686 * frame.h: Remove old prototypes. Add prototype for
11687 frame_chain_valid and update comments to match.
11688 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11689 Remove old comment.
11690 * gdbarch.h: Regenerated.
11691 * gdbarch.c: Regenerated.
11692
11693 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11694 set_gdbarch_frame_chain_valid.
11695 * avr-tdep.c (avr_gdbarch_init): Likewise.
11696 * cris-tdep.c (cris_gdbarch_init): Likewise.
11697 * frv-tdep.c (frv_gdbarch_init): Likewise.
11698 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11699 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11700 (i386_nw_init_abi): Likewise.
11701 (i386_gdbarch_init): Likewise.
11702 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11704 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11705 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11706 * mips-tdep.c (mips_gdbarch_init): Likewise.
11707 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11708 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11709 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11710 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11711 * s390-tdep.c (s390_gdbarch_init): Likewise.
11712 * sh-tdep.c (sh_gdbarch_init): Likewise.
11713 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11714 * v850-tdep.c (v850_gdbarch_init): Likewise.
11715 * vax-tdep.c (vax_gdbarch_init): Likewise.
11716 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11717
11718 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11719 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11720 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11721 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11722 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11723 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11724 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11725 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11726
b00a8037
DJ
117272002-01-04 Daniel Jacobowitz <drow@mvista.com>
11728
11729 * Makefile.in (acconfig_h): Remove incorrect macro.
11730 (config_h): Define.
11731 (osabi.o): Update dependencies.
11732 * configure.tgt: Set gdb_osabi based on target triplet.
11733 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11734 * configure: Regenerated.
11735 * config.in: Regenerated.
11736 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11737 (GDB_OSABI_DEFAULT): Define if not already defined.
11738 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11739 (set_osabi_string): New variables.
11740 (gdbarch_register_osabi): Add new OS ABI to
11741 gdb_osabi_available_names.
11742 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11743 (set_osabi, show_osabi): New functions.
11744 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11745
4be87837
DJ
117462003-01-04 Daniel Jacobowitz <drow@mvista.com>
11747
11748 * arch-utils.c (gdbarch_info_init): Set osabi to
11749 GDB_OSABI_UNINITIALIZED.
11750 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11751 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11752 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11753 * gdbarch.c: Regenerated.
11754 * gdbarch.h: Regenerated.
11755 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11756 there's no BFD.
11757 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11758 * osabi.h (enum gdb_osabi): Move to defs.h.
11759 (gdbarch_init_osabi): Update prototype.
11760 * defs.h (enum gdb_osabi): Moved here.
11761 * Makefile.in: Update dependencies.
11762
11763 * alpha-tdep.h: Don't include "osabi.h".
11764 (struct gdbarch_tdep): Remove osabi member.
11765 * alpha-tdep.c: Include "osabi.h".
11766 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11767 iterate over arches. Update call to gdbarch_init_osabi.
11768 (alpha_dump_tdep): Don't dump osabi.
11769 * alpha-linux-tdep.c: Include "osabi.h".
11770 * alpha-osf1-tdep.c: Include "osabi.h".
11771 * alphafbsd-tdep.c: Include "osabi.h".
11772 * alphanbsd-tdep.c: Include "osabi.h".
11773
11774 * arm-tdep.h: Don't include "osabi.h".
11775 (struct gdbarch_tdep): Remove osabi member.
11776 * arm-tdep.c: Include "osabi.h".
11777 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11778 iterate over arches. Update call to gdbarch_init_osabi.
11779 (arm_dump_tdep): Don't dump osabi.
11780 * arm-linux-tdep.c: Include "osabi.h".
11781 * armnbsd-tdep.c: Include "osabi.h".
11782
11783 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11784 Update call to gdbarch_init_osabi.
11785
11786 * i386-tdep.h: Don't include "osabi.h".
11787 (struct gdbarch_tdep): Remove osabi member.
11788 * i386-tdep.c: Include "osabi.h".
11789 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11790 iterate over arches. Update call to gdbarch_init_osabi.
11791 (i386_dump_tdep): Don't dump osabi.
11792 * i386-linux-tdep.c: Include "osabi.h".
11793 * i386-sol2-tdep.c: Include "osabi.h".
11794 * i386bsd-tdep.c: Include "osabi.h".
11795 * i386gnu-tdep.c: Include "osabi.h".
11796 * i386ly-tdep.c: Include "osabi.h".
11797 * i386nbsd-tdep.c: Include "osabi.h".
11798 * i386obsd-tdep.c: Include "osabi.h".
11799
11800 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11801 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11802 check osabi when iterating over arches. Update call to
11803 gdbarch_init_osabi.
11804 (mips_dump_tdep): Don't dump osabi.
11805
11806 * ns32k-tdep.h: Don't include "osabi.h".
11807 (struct gdbarch_tdep): Remove.
11808 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11809 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11810 allocate tdep. Update call to gdbarch_init_osabi.
11811 (ns32k_dump_tdep): Remove.
11812 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11813 * ns32knbsd-tdep.c: Include "osabi.h".
11814
11815 * ppc-tdep.h: Don't include "osabi.h".
11816 (struct gdbarch_tdep): Remove osabi member.
11817 * rs6000-tdep.c: Include "osabi.h".
11818 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11819 osabi when iterating over arches. Update call to
11820 gdbarch_init_osabi.
11821 (rs6000_dump_tdep): Don't dump osabi.
11822 * ppc-linux-tdep.c: Include "osabi.h".
11823 * ppcnbsd-tdep.c: Include "osabi.h".
11824
11825 * sh-tdep.h: Don't include "osabi.h".
11826 (struct gdbarch_tdep): Remove osabi member.
11827 * sh-tdep.c: Include "osabi.h".
11828 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11829 iterate over arches. Update call to gdbarch_init_osabi.
11830 (sh_dump_tdep): Don't dump osabi.
11831 * shnbsd-tdep.c: Include "osabi.h".
11832
11833 * sparc-tdep.c: Include "osabi.h".
11834 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11835 iterate over arches. Update call to gdbarch_init_osabi.
11836 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11837 tdep structure.
11838
11839 * vax-tdep.h: Don't include "osabi.h".
11840 (struct gdbarch_tdep): Remove.
11841 * vax-tdep.c: Include "osabi.h".
11842 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11843 iterate over arches. Don't allocate tdep. Update call
11844 to gdbarch_init_osabi.
11845 (vax_dump_tdep): Remove.
11846 (_initialize_vax_tdep): Update call to gdbarch_register.
11847
a881cf8e
DJ
118482003-01-04 Daniel Jacobowitz <drow@mvista.com>
11849
11850 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11851 entirely.
11852 (breakpoint_re_set_one): Don't fetch the value for a disabled
11853 watchpoint.
11854
1e698235
DJ
118552003-01-04 Daniel Jacobowitz <drow@mvista.com>
11856
11857 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11858 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11859 (COERCE_FLOAT_TO_DOUBLE): Remove.
11860 * gdbarch.c: Regenerate.
11861 * gdbarch.h: Regenerate.
11862 * Makefile.in: Remove value_h from gdbarch_h.
11863 * valops.c (coerce_float_to_double): New variable.
11864 (default_coerce_float_to_double): Remove.
11865 (standard_coerce_float_to_double): Remove.
11866 (value_arg_coerce): Use coerce_float_to_double.
11867 (_initialize_valops): Add "set coerce-float-to-double".
11868 * value.h (default_coerce_float_to_double): Remove prototype.
11869 (standard_coerce_float_to_double): Remove prototype.
11870
11871 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11872 prototyped.
11873 * mdebugread.c (parse_symbol): Likewise.
11874 * stabsread.c (define_symbol): Mark all functions as prototyped.
11875
11876 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11877 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11878 set_gdbarch_coerce_float_to_double.
11879 * arm-tdep.c (arm_gdbarch_init): Likewise.
11880 * frv-tdep.c (frv_gdbarch_init): Likewise.
11881 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11882 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11883 * mips-tdep.c (mips_gdbarch_init): Likewise.
11884 (mips_coerce_float_to_double): Remove.
11885 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11886 (rs6000_coerce_float_to_double): Remove.
11887 * s390-tdep.c (s390_gdbarch_init): Likewise.
11888 * sh-tdep.c (sh_gdbarch_init): Likewise.
11889 (sh_coerce_float_to_double): Remove.
11890 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11891 (sparc_coerce_float_to_double): Remove.
11892 * v850-tdep.c (v850_gdbarch_init): Likewise.
11893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11894 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11895 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11896 (hppa_coerce_float_to_double): Remove prototype.
11897 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11898
f436a26a
DJ
118992003-01-04 Daniel Jacobowitz <drow@mvista.com>
11900
11901 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11902
248f8055
DJ
119032003-01-04 Daniel Jacobowitz <drow@mvista.com>
11904
11905 Suggested by Stewart Brown <sb24@avaya.com>:
11906 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11907 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11908 (c_type_print_varspec_suffix): Likewise.
11909
72cfdc76
MK
119102003-01-04 Mark Kettenis <kettenis@gnu.org>
11911
bfd260bb
MK
11912 * configure.in: Don't set and AC_SUBST SUBDIRS.
11913 * configure: Regenerated.
11914
72cfdc76
MK
11915 * configure.in: Remove code dealing with shared libraries.
11916 * Makefile.in: Remove HLDFLAGS and HLDENV.
11917 * configure: Regenerated.
11918
c8b8a898
AC
119192003-01-04 Andrew Cagney <ac131313@redhat.com>
11920
11921 * frame.c (deprecated_frame_xmalloc): New function.
11922 (deprecated_set_frame_saved_regs_hack): New function.
11923 (deprecated_set_frame_extra_info_hack): New function.
11924 * frame.h (deprecated_frame_xmalloc): Declare.
11925 (deprecated_set_frame_saved_regs_hack): Declare.
11926 (deprecated_set_frame_extra_info_hack): Declare.
11927
14abd0fb
MK
119282003-01-04 Mark Kettenis <kettenis@gnu.org>
11929
8ee53726
MK
11930 * configure.in: Move code that provides the --enable-gdbtk option
11931 right after the code that handles the --enable-tui option, and
11932 polish it somewhat.
11933 * configure: Regenerated.
11934
14abd0fb
MK
11935 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11936 AC_CHECK_FUNCS and remove the old check for pread64.
11937 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11938 * acconfig.h (_GNU_SOURCE): Add.
11939 (HAVE_PREAD64): Remove.
11940 * configure, aclocal.m4, config.in: Regenerated.
11941
b2fb4676
AC
119422003-01-03 Andrew Cagney <ac131313@redhat.com>
11943
11944 * alpha-tdep.c: Use get_frame_saved_regs.
11945 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11946 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11947 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11948 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11949 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11950
8dcde887
MK
119512003-01-03 Mark Kettenis <kettenis@gnu.org>
11952
11953 * configure.in: Remove all use of the SUBDIRS variable; add
11954 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11955 code providing the --enable-multi-ice option, and move it right in
11956 front of the code that checks whether gdbserver is supported.
11957 Polish that too.
11958 * configure: Regenerated.
11959 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11960 @SUBDIRS@.
11961
8ccd593b
AC
119622003-01-03 Andrew Cagney <cagney@redhat.com>
11963
11964 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11965 * avr-tdep.c, cris-tdep.c: Ditto.
11966 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11967 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11968
91151a06
MK
119692003-01-03 Mark Kettenis <kettenis@gnu.org>
11970
11971 * configure.in: Remove --enable-netrom option.
11972 * configure: Regenerated.
11973
8fe84d01
MK
119742003-01-03 Mark Kettenis <kettenis@gnu.org>
11975
11976 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11977 declaration for `struct re_pattern_buffer' instead.
11978 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11979
f0394be6
JB
119802003-01-03 J. Brobecker <brobecker@gnat.com>
11981
11982 * mdebugread.c (parse_symbol): Count until the stEnd matching
11983 the structure name.
11984
27e9bf90
MK
119852003-01-02 Mark Kettenis <kettenis@gnu.org>
11986
93d331ba
MK
11987 * configure.in: Remove --with-cpu option.
11988 subscripts. Remove evil changequotes here.
11989 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11990 * config.in, configure: Regenerated.
8ffd9b1b 11991
27e9bf90
MK
11992 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11993 * configure.in: Cleanup section that sources GDB and BFD configure
11994 subscripts. Remove evil changequotes here.
11995 * config.in, configure: Regenerated.
11996
50abf9e5
AC
119972003-01-02 Andrew Cagney <ac131313@redhat.com>
11998
11999 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12000 frame accessor methods.
12001 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12002 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12003 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12004 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12005 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12006 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12007 * z8k-tdep.c: Ditto.
8ffd9b1b 12008
287c1a40
MK
120092003-01-02 Mark Kettenis <kettenis@gnu.org>
12010
f5dbc56d
MK
12011 * configure.in: Remove UI_OUT configuration code.
12012 * ada-lang.c: Update assuming UI_OUT is always true.
12013 * Makefile.in (UIOUT_CFLAGS): Remove.
12014 * configure: Regenerated.
12015 * TODO: Remove blurb about elimination of -DUI_OUT.
12016
627af7ea
MK
12017 * configure.in: Move code that provides the --enable-gdbcli,
12018 --enable-gdbmi options right before the code that handles the
12019 --enable-tui option. Polish a bit.
12020 * configure: Regenerated.
12021
06825bd1
MK
12022 * configure.in: Rewrite check for GNU regex and the
12023 --without-included regex option, and move it into the "Checks for
12024 library functions" section. This makes us use the system regex
12025 again by default on systems with version 2 of the GNU C library.
12026 This was apparently broken.
12027 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12028 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12029 * config.in, configure: Regenerated.
12030
287c1a40
MK
12031 * configure.in: Move code that provides the --enable-tui option
12032 before the "Checks for libraries" section. Polish the code
12033 somewhat and set need_curses to yes if we build the TUI. Rewrite
12034 code that looks for a library providing termcap functionality to
12035 match more closely what's done in the Readline library, and move
12036 it into to the "Checks for libraries" section.
12037 * configure: Regenerated.
12038 * Makefile.in (TERMCAP): Remove variable.
12039 * config/i386/go32.mh (TERMCAP): Remove variable.
12040
684e56bf
AC
120412003-01-02 Andrew Cagney <ac131313@redhat.com>
12042
12043 * MAINTAINERS: Mention gdb_mbuild.sh.
12044 * gdb_mbuild.sh: Rewrite.
12045
e1ea1d75
MK
120462003-01-02 Mark Kettenis <kettenis@gnu.org>
12047
12048 * configure.in: Fix typo in last change.
12049 * config.in, configure: Regenerated.
12050
1b831c93
AC
120512003-01-02 Andrew Cagney <ac131313@redhat.com>
12052
12053 * valarith.c (value_binop): Delete obsolete code and comments.
12054 * configure.host: Ditto.
12055 * buildsym.h (make_blockvector): Ditto.
12056 * buildsym.c (make_blockvector): Ditto.
12057 * defs.h (enum language): Ditto.
12058 (chill_demangle): Ditto.
12059 * elfread.c (elf_symtab_read): Ditto.
12060 * dwarfread.c (CHILL_PRODUCER): Ditto.
12061 (set_cu_language): Ditto.
12062 (handle_producer): Ditto.
12063 * expprint.c (print_subexp): Ditto.
12064 * gdbtypes.c (chill_varying_type): Ditto.
12065 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12066 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12067 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12068 (chill_varying_type): Ditto.
12069 * language.h (_LANG_chill): Ditto.
12070 * language.c (binop_result_type, integral_type): Ditto.
12071 (character_type, string_type, structured_type): Ditto.
12072 (lang_bool_type, binop_type_check): Ditto.
12073 * stabsread.h (os9k_stabs): Ditto.
12074 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12075 (define_symbol, read_type, read_struct_fields): Ditto.
12076 (read_array_type, read_enum_type, read_huge_number): Ditto.
12077 (read_range_type, start_stabs): Ditto.
12078 * symfile.c (init_filename_language_table): Ditto.
12079 (add_psymbol_with_dem_name_to_list): Ditto.
12080 * symtab.c (symbol_init_language_specific): Ditto.
12081 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12082 * symtab.h (struct general_symbol_info): Ditto.
12083 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12084 * typeprint.c (typedef_print): Ditto.
12085 * utils.c (fprintf_symbol_filtered): Ditto.
12086 * valops.c (value_cast, search_struct_field, value_slice): Delete
12087 obsolete code.
12088 (varying_to_slice): Delete function.
12089 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12090 (varying_to_slice): Delete declaration.
12091 * MAINTAINERS: Update.
12092
8bb2c122
MK
120932003-01-02 Mark Kettenis <kettenis@gnu.org>
12094
97bf5e38
MK
12095 * configure.in: Reorganize "Checks for library functions section"
12096 a bit. Remove check for `btowc' and `isascii' functions.
12097 * configure: Regenerated.
12098
5ee754fc
MK
12099 * acconfig.h (_MSE_INT_H): Remove.
12100 * configure.in: Create "Checks for header files" section, and move
12101 appropriate tests there. Don't check for objlist.h, wchar.h,
12102 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12103 misdetection fix. Also add "Checks for types", "Checks for
12104 compiler characteristics" and "Checks for library functions"
12105 sections.
12106 * config.in, configure: Regenerated.
12107
8bb2c122
MK
12108 * configure.in: Create "Checks for programs" section, and move
12109 appropriate tests there.
12110
9a156167
MK
121112003-01-01 Mark Kettenis <kettenis@gnu.org>
12112
12113 * configure.in: Create "Checks for libraries" section, and move
12114 appropriate tests there. Cleanup check for wctype in libw. Use
12115 AC_SEARCH_LIBS to see whether we need libsocket.
12116 * configure: Regenerated.
12117
a80e2bcb 12118For older changes see ChangeLog-2002
c906108c
SS
12119\f
12120Local Variables:
12121mode: change-log
12122left-margin: 8
12123fill-column: 74
12124version-control: never
12125End:
This page took 1.00027 seconds and 4 git commands to generate.