* hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
51db5742
JB
12003-09-18 J. Brobecker <brobecker@gnat.com>
2
3 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
4 hard-coded constant. Use the proper machine name instead.
5
77949794
AC
62003-09-17 Andrew Cagney <cagney@redhat.com>
7
8 * sparc-tdep.c (legacy_register_name): Delete function.
9 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
10 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
11 * infcmd.c (gdb_register_name): Delete variable.
12 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
13 REGISTER_NAME and "tm.h".
14 * gdbarch.h, gdbarch.c: Regenerate.
15 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
16 REGISTER_NAMES in comments.
17 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
18 * m68klinux-nat.c (regmap): Ditto.
19
b55c33cc
JB
202003-09-17 Jim Blandy <jimb@redhat.com>
21
22 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
23
957e27ac
AC
242003-09-17 Andrew Cagney <cagney@redhat.com>
25
26 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
27 (ppcnbsd_init_abi): Set "use_struct_convention" to
28 "ppcnbsd_use_struct_convention".
29
192cb3d4
MK
302003-09-17 Mark Kettenis <kettenis@gnu.org>
31
32 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
33 * gdbarch.h, gdbarch.c: Regenerate.
34 (stabs_argument_has_addr): New architecture method.
35 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
36 * arch-utils.c: Include "buildsym.h".
37 (default_stabs_argument_has_addr): New function.
38 * stabsread.c (define_symbol): Use stabs_argument_has_addr
39 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
40
efe59759
AC
412003-09-17 Andrew Cagney <cagney@redhat.com>
42
43 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
44 * gdbarch.h, gdbarch.c: Regenerate.
45 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
46 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
47 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
48 * sparcnbsd-tdep.c: Update.
49
62700349
AC
502003-09-17 Andrew Cagney <cagney@redhat.com>
51
52 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
53 * gdbarch.h, gdbarch.c: Regenerate.
54 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
55 * d10v-tdep.c, frame.c: Update.
56 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
57 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
58 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
59 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
60 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
61 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
62 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
63 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
64 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
65 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
66 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
67 * config/pa/nm-hppah.h: Update.
68
b9ff3018
AC
692003-09-16 Andrew Cagney <cagney@redhat.com>
70
71 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
72 "use_struct_convention" to "ppc_linux_use_struct_convention".
73 (ppc_linux_use_struct_convention): New function.
74 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
75 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
76 "rs6000_use_struct_convention".
77 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
78 declaration.
79 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
80 Delete function.
81
aa1ee363
AC
822003-09-16 Andrew Cagney <cagney@redhat.com>
83
84 * buildsym.c: Remove more occurances of "register".
85 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
86 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
87 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
88 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
89 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
90 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
91 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
92 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
93
f2ea0907
CV
942003-09-16 Corinna Vinschen <vinschen@redhat.com>
95
96 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
97 numbers to enumeration values.
98 * sh-tdep.c: Accomodate above change.
99 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
100 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
101 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
102 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
103 (IS_FPUSH): Rename from IS_FMOV.
104 (sh_extract_struct_value_address): Remove useless comment.
105 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
106 instead of own local values.
107 (sh_dump_tdep): Remove.
108 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
109 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
110
1c704f11
AC
1112003-09-15 Andrew Cagney <cagney@redhat.com>
112
113 * doublest.c (convert_floatformat_to_doublest): No longer need to
114 cast "exp_bias" to an int. Reverts 2002-12-04 change.
115
ac79b88b
DJ
1162003-09-15 Daniel Jacobowitz <drow@mvista.com>
117
118 * values.c (unpack_double): Call floatformat_is_valid.
119
1c671366
MK
1202003-09-15 Mark Kettenis <kettenis@gnu.org>
121
de5227fb
MK
122 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
123 ps_strings into a long.
124
1c671366
MK
125 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
126 _initialize_am64fbsd_nat.
127
a604369a
KB
1282003-09-15 Kevin Buettner <kevinb@redhat.com>
129
130 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
131 associated with DW_AT_ranges attribute is out of bounds.
132
b3cacbee
DL
1332003-09-15 David Lecomber <dsl@sources.redhat.com>
134
135 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
136
d0f37bb2
MC
1372003-09-14 Michael Chastain <mec@shout.net>
138
139 * config/m68k/nm-apollo68v.h: Delete.
140 * config/m68k/xm-apollo68v.h: Delete.
141
69517000
AC
1422003-09-14 Andrew Cagney <cagney@redhat.com>
143
144 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
145 * dcache.c: Update copyrights and descriptions.
146 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
147
ef8b349d
AC
1482003-09-14 Andrew Cagney <cagney@redhat.com>
149
150 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
151 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
152
52f0bd74
AC
1532003-09-14 Andrew Cagney <cagney@redhat.com>
154
155 * alpha-nat.c: Remove some occurances of "register".
156 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
157 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
158 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
159 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
160 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
161 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
162 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
163 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
164 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
165 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
166 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
167 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
168 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
169 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
170 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
171 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
172 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
173 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
174 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
175 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
176 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
177 * values.c, vax-tdep.c, xcoffread.c: Ditto.
178
4a4b3fed
AC
1792003-09-13 Andrew Cagney <cagney@redhat.com>
180
181 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
182 * ppc-tdep.h (struct regcache): Declare opaque.
183 * objfiles.h (struct objfile_data): Declare opaque.
184 * cp-support.h (struct objfile): Declare opaque.
185 * linux-nat.h (target_waitstatus): Declare opaque.
186
2110b94f
MK
1872003-09-14 Mark Kettenis <kettenis@gnu.org>
188
1c671366
MK
189 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
190 (stabs_argument_has_addr): New architecture method.
191 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
192 * arch-utils.c: Include "buildsym.h".
193 (default_stabs_argument_has_addr): New function.
194 * stabsread.c (define_symbol): Use stabs_argument_has_addr
195 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
196
2110b94f
MK
197 * cris-tdep.c (cris_gdbarch_init): Set
198 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
199 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
200 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
201 * mips-tdep.c (mips_gdbarch_init): Likewise.
202 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
203 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
204
48436ce6
AC
2052003-09-13 Andrew Cagney <cagney@redhat.com>
206
207 * values.c (using_struct_return): Delete "function" and "funcaddr"
208 parameters.
209 * value.h (using_struct_return): Update declaration.
210 * infcmd.c (finish_command_continuation): Update.
211 (finish_command): Update.
212 * infcall.c (call_function_by_hand): Update.
213 * eval.c (evaluate_subexp_standard): Update.
214
403d9909
CF
2152003-09-13 Christopher Faylor <cgf@redhat.com>
216
217 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
218 SSE registers since gdb will not operate correctly without this.
219 Restore include file ordering munged in previous change.
220 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
221
ebf7d56b
MK
2222003-09-13 Mark Kettenis <kettenis@gnu.org>
223
8e823e25
MK
224 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
225 REG_STRUCT_HAS_ADDR.
226 * gdbarch.c, gdbarch.h: Updated.
227 * infcall.c (call_function_by_hand): Update.
228 * stabsread.c (define_symbol): Updated.
229
ebf7d56b
MK
230 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
231
d3f13f72
CF
2322003-09-12 Christopher Faylor <cgf@redhat.com>
233
234 * win32-nat.c: Reorganize so that defines used by target headers are
235 actually defined by the system headers.
236 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
237 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
238
14f75137
JB
2392003-09-12 Jim Blandy <jimb@redhat.com>
240
d646061f
JB
241 * dbxread.c (read_dbx_symtab): Don't report an internal error if
242 the file has no .data, .bss, or .rodata sections. Instead wait
243 until we see a variable alleged to live in one of those sections.
244
2a13f9bc
JB
245 * dbxread.c (read_dbx_symtab): If we have no .data section and no
246 .bss section, presume that any variables we find live in the
247 .rodata section.
248
4f49b26b
JB
249 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
250 offsets for global and static variables.
251
14f75137
JB
252 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
253 symbol types are, by definition, in the .data section, so it is
254 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
255 If there is no .data section, there should be no N_DATA or N_DATA
256 | N_EXT symbols.
257
212c460c
MK
2582003-09-12 Mark Kettenis <kettenis@gnu.org>
259
260 * amd64fbsd-tdep.c: Fix sigtramp recognition.
261 (amd64fbsd_sigcontext_addr): Rewrite.
262 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
263 with correct values.
264 (amd64fbsd_sc_reg_offset): Initialize with correct values.
265 (amd64fbsd_init_abi): Fix typo.
266
68856ea3
AC
2672003-09-12 Andrew Cagney <cagney@redhat.com>
268
269 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
270 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
271
627b3ba2
AC
2722003-09-12 Andrew Cagney <cagney@redhat.com>
273
274 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
275 "entry_file_highpc". Update comments.
276 * defs.h (deprecated_inside_entry_file): Rename
277 "inside_entry_file".
278 * blockframe.c (deprecated_inside_entry_file): Rename
279 "inside_entry_file".
280 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
281 * vax-tdep.c (vax_frame_chain): Update.
282 * sh64-tdep.c (sh64_frame_chain): Update.
283 * sh-tdep.c (sh_frame_chain): Update.
284 * rs6000-tdep.c (rs6000_frame_chain): Update.
285 * ns32k-tdep.c (ns32k_frame_chain): Update.
286 * mips-tdep.c (mips_frame_chain): Update.
287 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
288 * m32r-tdep.c (m32r_frame_this_id): Update.
289 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
290 * frv-tdep.c (frv_frame_this_id): Update.
291 * d10v-tdep.c (d10v_frame_this_id): Update.
292 * cris-tdep.c (cris_frame_chain): Update.
293 * blockframe.c (legacy_frame_chain_valid): Update.
294 * avr-tdep.c (avr_frame_this_id): Update.
295 * arm-tdep.c (arm_prologue_this_id): Update.
296 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
297 * objfiles.c (objfile_relocate): Update.
298 * mipsread.c (mipscoff_symfile_read): Update.
299 (mipscoff_symfile_read): Update.
300 * mdebugread.c (parse_partial_symbols): Update.
301 * dwarfread.c (read_file_scope): Update.
302 * dwarf2read.c (read_file_scope): Update.
303 * dbxread.c (read_dbx_symtab): Update.
304 (read_dbx_symtab): Update.
305 * coffread.c (complete_symtab): Update.
306
b0abbc58
JJ
3072003-09-12 Jeff Johnston <jjohnstn@redhat.com>
308
309 * top.c (quit_target): New static helper function.
310 (quit_force): Moved code to quit_target(). Call quit_target()
311 via catch_errors() to catch errors during quit.
312
a1632d59
DC
3132003-09-11 David Carlton <carlton@kealia.com>
314
315 * buildsym.c (finish_block): Use allocate_block to allocate the
316 block.
317 * mdebugread.c (new_block): Add FIXME.
318
5c4e30ca
DC
3192003-09-11 David Carlton <carlton@kealia.com>
320
321 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
322 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
323 (recursive_dump_type): Ditto.
324 * printcmd.c (print_formatted): Ditto.
325 * typeprint.c (print_type_scalar): Ditto.
326 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
327 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
328 * cp-support.h: Declare cp_check_possible_namespace_symbols,
329 maint_cplus_cmd_list.
330 * cp-support.c: Make maint_cplus_cmd_list extern.
331 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
332 command.h.
333 (lookup_symbol_file): Look in possible namespace blocks when
334 appropriate.
335 (initialize_namespace_symtab): New.
336 (get_possible_namespace_block, free_namespace_block)
337 (check_possible_namespace_symbols)
338 (check_possible_namespace_symbols_loop)
339 (check_one_possible_namespace_symbol)
340 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
341 (_initialize_cp_namespace): Ditto.
342 * block.h: Declare allocate_block.
343 * block.c (allocate_block): New.
344 * jv-lang.c (get_java_class_symtab): Allocate blocks via
345 allocate_block.
346 * symfile.h: Update declaration of add_psymbol_to_list.
347 * symfile.c (add_psymbol_to_list): Return the partial symbol in
348 question.
349 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
350 scan_partial_symbols_call.
351 (scan_partial_symbols): Add NAMESPACE argument; update calls to
352 helper functions.
353 (add_partial_symbol): If necessary, scan mangled names for names
354 of namespaces.
355 (add_partial_namespace): Add NAMESPACE argument; generate partial
356 symbols associated to namespaces.
357 (add_partial_enumeration): Add NAMESPACE argument.
358 (new_symbol): Allow namespace syms.
359 (read_namespace): Generate namespace syms.
360 * objfiles.h: Add opaque declaration of struct symtab.
361 (struct objfile): Add cp_namespace_symtab member.
362 * objfiles.c (allocate_objfile): Set
363 objfile->cp_namespace_symtab.
364 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
365 dictionary_h, command_h.
366
33a7c2fc
AC
3672003-09-11 Andrew Cagney <cagney@redhat.com>
368
369 * rs6000-tdep.c (rs6000_push_dummy_call): Use
370 regcache_raw_write_signed to set SP_REGNUM, move the operation to
371 near the function's end.
372 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
373 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
374 regcache_raw_write_signed to set SP_REGNUM.
375
63cd24fe
EZ
3762003-09-11 Elena Zannoni <ezannoni@redhat.com>
377
378 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
379 orig_addrs is set up properly.
380
f27dd7fd
AC
3812003-09-11 Andrew Cagney <cagney@redhat.com>
382
383 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
384 * gdbarch.h, gdbarch.c: Re-generate.
385 * infcall.c (call_function_by_hand): Update.
386 * hppa-tdep.c (hppa_push_arguments): Update.
387 * ada-lang.c (place_on_stack): Update.
388 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
389 * sparc-tdep.c (sparc_gdbarch_init): Update.
390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
391 * hppa-tdep.c (hppa_gdbarch_init): Update.
392 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
393 stack_align.
394
f630a401
DJ
3952003-09-11 Daniel Jacobowitz <drow@mvista.com>
396
397 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
398 register do need a frame.
399
0ddabb4c
AC
4002003-09-11 Andrew Cagney <cagney@redhat.com>
401
402 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
403 buildable since GDB 5.0.
404 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
405 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
406 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
407 * irix4-nat.c: Delete file.
408 * config/mips/irix4.mh: Delete file.
409 * config/mips/irix3.mh: Delete file.
410 * config/mips/irix3.mt: Delete file.
411 * config/mips/tm-irix3.h: Delete file.
412 * config/mips/nm-irix3.h: Delete file.
413 * config/mips/xm-irix3.h: Delete file.
414 * config/mips/nm-irix4.h: Delete file.
415 * config/mips/xm-irix4.h: Delete file.
416 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
417
fde2cceb
JB
4182003-09-10 J. Brobecker <brobecker@gnat.com>
419
420 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
421 * Makefile.in (hppa-tdep.o): Update dependencies.
422
66f667f5
JW
4232003-09-10 James E Wilson <wilson@specifixinc.com>
424
ef5fd69f
JW
425 * MAINTAINERS: Change my e-mail address. Move to paper trail
426 section.
66f667f5 427
53e8aaea
KB
4282003-09-10 Kevin Buettner <kevinb@redhat.com>
429
430 * MAINTAINERS (frv): New ISA entry.
431
dcc6aaff
KB
4322003-09-10 Kevin Buettner <kevinb@redhat.com>
433
434 * frv-tdep.c (dis-asm.h): Include.
435 * Makefile.in (frv-tdep.o): Update dependencies.
436
932644f0
JJ
4372003-09-09 Jeff Johnston <jjohnstn@redhat.com>
438
439 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
440 Fix typo for high range of floating registers.
441
91c24f0a
DC
4422003-09-09 David Carlton <carlton@kealia.com>
443
444 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
445 highpc initialization here out of scan_partial_symbols.
446 (scan_partial_symbols): Restructure into a recursive version,
447 calling add_partial_namespace and add_partial_enumeration when
448 appropriate.
449 (add_partial_namespace): New.
450 (add_partial_enumeration, locate_pdi_sibling): Ditto.
451
c9263853
AC
4522003-09-09 Andrew Cagney <cagney@redhat.com>
453
e56a0ecc
AC
454 * rs6000-tdep.c (ppc_push_return_address): Delete function.
455 (rs6000_push_dummy_call): Set LR to BP_ADDR.
456 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
457 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
458
794a477a
AC
459 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
460 (rs6000_push_dummy_call): Set the "TOC" register.
461
c9263853
AC
462 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
463 methods "max_register_raw_size", "max_register_virtual_size" or
464 "register_virtual_size".
465
afa7d0b2
ILT
4662003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
467
468 * MAINTAINERS: Update my e-mail address.
469
7a41266b
AC
4702003-09-09 Andrew Cagney <cagney@redhat.com>
471
472 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
473 (rs6000_push_dummy_call): Store the struct return address.
474 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
475
77b2b6d4
AC
4762003-09-09 Andrew Cagney <cagney@redhat.com>
477
478 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
479 "ppc_sysv_abi_push_arguments".
480 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
481 "ppc_sysv_abi_push_arguments".
482 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
483 instead of "push_arguments".
484 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
485
e8a7b686
AC
4862003-09-09 Andrew Cagney <cagney@redhat.com>
487
488 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
489 instead of CALL_DUMMY_ADDRESS.
490
f86f5ca3
PH
4912003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
492
493 * p-lang.c: Eliminate "register".
494 * c-lang.c: Ditto.
495 * expprint.c: Ditto.
496 * f-lang.c: Ditto.
497 * jv-lang.c: Ditto.
498 * language.c: Ditto.
499 * m2-lang.c: Ditto.
500 * parse.c: Ditto.
501 * scm-lang.c: Ditto.
502 * objc-lang.c: Ditto.
503
83ee270e
NC
5042003-09-09 Nick Clifton <nickc@redhat.com>
505
506 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
507
a89aa300
AC
5082003-09-04 Andrew Cagney <cagney@redhat.com>
509
510 * avr-tdep.c: Include "dis-asm.h".
511 * cris-tdep.c: Include "dis-asm.h".
512 (cris_delayed_get_disassembler): Use "struct disassemble_info"
513 instead of corresponding typedef.
514 * h8300-tdep.c: Include "dis-asm.h".
515 * ia64-tdep.c: Include "dis-asm.h".
516 * i386-tdep.c: Include "dis-asm.h".
517 (i386_print_insn): Use "struct disassemble_info" instead of
518 corresponding typedef.
519 * m68k-tdep.c: Include "dis-asm.h".
520 * mcore-tdep.c: Include "dis-asm.h".
521 * mips-tdep.c: Include "dis-asm.h".
522 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
523 instead of corresponding typedef.
524 * ns32k-tdep.c: Include "dis-asm.h".
525 * s390-tdep.c: Include "dis-asm.h".
526 * sparc-tdep.c: Include "dis-asm.h".
527 * vax-tdep.c: Include "dis-asm.h".
528 * v850-tdep.c: Include "dis-asm.h".
529 * mn10300-tdep.c: Include "dis-asm.h".
530 * rs6000-tdep.c: Include "dis-asm.h".
531 * xstormy16-tdep.c: Include "dis-asm.h".
532 (_initialize_xstormy16_tdep): Delete "extern" declaration of
533 print_insn_xstormy16.
534 * Makefile.in (v850-tdep.o): Update dependencies.
535 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
536 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
537 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
538 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
539 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
540 (gdbarch_h): Remove $(dis_asm_h).
541 * disasm.c: Include "dis-asm.h".
542 (dis_asm_read_memory): Use "struct disassemble_info" instead of
543 corresponding typedef.
544 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
545 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
546 * gdbarch.sh: Do not include "dis-asm.h".
547 (struct disassemble_info): Declare opaque.
548 (TARGET_PRINT_INSN): Update declaration.
549 * gdbarch.h, gdbarch.c: Re-generate.
550
88a82a65
AC
5512003-09-08 Andrew Cagney <cagney@redhat.com>
552
553 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
554 CALL_DUMMY_ADDRESS, change to a predicate.
555 * gdbarch.h, gdbarch.c: Re-generate.
556 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
557 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
558 * infcall.c (call_function_by_hand): Ditto.
559 * sparc-tdep.c (sparc_push_return_address): Ditto.
560 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
561 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
562 CALL_DUMMY_ADDRESS with entry_point_address.
563 * v850-tdep.c (v850_push_return_address): Ditto.
564 * s390-tdep.c (s390_push_return_address): Ditto.
565 * rs6000-tdep.c (ppc_push_return_address): Ditto.
566 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
567 * mcore-tdep.c (mcore_push_return_address): Ditto.
568 * cris-tdep.c (cris_push_return_address): Ditto.
569 * arm-tdep.c (arm_push_return_address): Ditto.
570
3e2c4033
AC
5712003-09-08 Andrew Cagney <cagney@redhat.com>
572
573 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
574 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
575 and REG_UNMODIFIED to REG_SAME_VALUE.
576 (execute_cfa_program): Update.
577 (dwarf2_frame_cache): Update. Initialize table to
578 REG_UNSPECIFIED, complain if CFI fails to specify a register's
579 location.
580 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
581
39efb398
AC
5822003-09-08 Andrew Cagney <cagney@redhat.com>
583
584 * gnu-nat.c: Remove "inline" function attribute.
585 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
586
f5cb5aca
KB
5872003-09-08 Kevin Buettner <kevinb@redhat.com>
588
589 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
590 target.
591
1cb761c7
KB
5922003-09-08 Kevin Buettner <kevinb@redhat.com>
593
594 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
595 (frame_extra_info): Rename this struct to frv_unwind_cache.
596 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
597 Add fields ``prev_sp'' and ``base''.
598 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
599 (frv_saved_pc_after_call, frv_init_extra_frame_info)
600 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
601 Delete.
602 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
603 Revise all callers. Fill in the unwind cache argument and make
604 other adjustments to account for new frame mechanisms.
605 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
606 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
607 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
608 (frv_frame_unwind, frv_frame_base): New structs.
609 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
610 additional arguments expected by this method and adjust function
611 body accordingly.
612 (frv_gdbarch_init): Remove calls to the following functions:
613 set_gdbarch_deprecated_init_frame_pc(),
614 set_gdbarch_deprecated_saved_pc_after_call(),
615 set_gdbarch_deprecated_frame_chain(),
616 set_gdbarch_deprecated_frame_saved_pc(),
617 set_gdbarch_deprecated_frame_init_saved_regs(),
618 set_gdbarch_deprecated_push_arguments(),
619 set_gdbarch_deprecated_push_return_address(),
620 set_gdbarch_deprecated_pop_frame(),
621 set_gdbarch_deprecated_call_dummy_words(),
622 set_gdbarch_deprecated_sizeof_call_dummy_words(),
623 set_gdbarch_deprecated_init_extra_frame_info(),
624 set_gdbarch_deprecated_dummy_write_sp(), and
625 set_gdbarch_deprecated_pc_in_call_dummy().
626 Add calls to the following functions:
627 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
628 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
629 frame_base_set_default().
630 * Makefile.in (frv-tdep.o): Update dependencies.
631
68f6cf99
MK
6322003-09-09 Mark Kettenis <kettenis@gnu.org>
633
634 * dwarf2-frame.c (read_encoded_value): Add support for
635 DW_EH_PE_aligned encoding.
636
73b65bb0
DJ
6372003-09-08 Daniel Jacobowitz <drow@mvista.com>
638
639 * infrun.c (normal_stop): Don't print a message if the inferior
640 has exited.
641
7c8a5605
JB
6422003-09-08 Jim Blandy <jimb@redhat.com>
643
644 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
645 * dbxread.c: #include "gdb_assert.h".
646 (read_dbx_symtab): If the objfile has no .data section, use the
647 section index for the .bss section instead.
648
7dd88986
DJ
6492003-09-08 Daniel Jacobowitz <drow@mvista.com>
650
651 * frame.c (deprecated_safe_get_selected_frame): New function.
652 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
653 * findvar.c (read_var_value): Call it.
654
55ff77ac
CV
6552003-09-08 Corinna Vinschen <vinschen@redhat.com>
656
657 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
658 (sh64-tdep.o): Add dependencies.
659 * configure.tgt: Add FIXME to sh-*-linux*.
660 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
661 (sh_gdbarch_init): Always set correct sh_show_regs function
662 pointer. Call sh64_gdbarch_init() if machine type is sh5.
663 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
664 * sh64-tdep.c: New file, containing all sh64 related code from
665 sh-tdep.c.
666 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
667 * config/sh/linux.mt (TDEPFILES): Ditto.
668 * config/sh/nbsd.mt (TDEPFILES): Ditto.
669 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
670 * config/sh/wince.mt (TDEPFILES): Ditto.
671
bfb39158
DJ
6722003-09-07 Daniel Jacobowitz <drow@mvista.com>
673
674 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
675 (stop_wait_callback): Handle !lp->signalled also.
676 (lin_lwp_has_pending, flush_callback): New functions.
677 (lin_lwp_wait): Call flush_callback.
678 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
679 (linux_proc_pending_signals): New function.
680 * linux-nat.h (linux_proc_pending_signals): Add prototype.
681
9407de8e
DJ
6822003-09-07 Daniel Jacobowitz <drow@mvista.com>
683
684 From Nick Kelsey <nickk@ubicom.com>:
685 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
686 when the stop PC is at the beginning of a function also.
687
2ef47cd0
DJ
6882003-09-06 Daniel Jacobowitz <drow@mvista.com>
689
690 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
691 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
692
6f4492c8
MK
6932003-09-06 Mark Kettenis <kettenis@gnu.org>
694
695 * sol-thread.c: Include "gdb_string.h".
696
d3420b2f
MK
6972003-09-03 Mark Kettenis <m.kettenis@osp.nl>
698
699 * gcore.c: Reorder include files in alphabetical order. Include
700 "gdb_assert.h". Various coding style fixes.
701 (derive_stack_segment, derive_heap_segment): Replace check for
702 non-null BOTTOM and TOP with gdb_assert.
703 (derive_heap_segment): Replace check for successful creation of
704 ZERO with gdb_assert.
705 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
706
5220ea4c
AC
7072003-09-04 Andrew Cagney <cagney@redhat.com>
708
709 * thread-db.c (verbose_dlsym): New function.
710 (thread_db_load): Use verbose_dlsym
711 (thread_db_new_objfile): Print that libthread_db was loaded, and
712 that thread debugging was enabled.
713
6e8c2c06
AC
7142003-09-04 Andrew Cagney <cagney@redhat.com>
715
716 * configure.tgt: Add "mips64*-*-*" target. Delete
717 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
718 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
719 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
720 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
721 mips*-sony-*, and mips64*-*-elf* targets.
722 * config/mips/embedl.mt: Delete file.
723 * config/mips/embedl64.mt: Delete file.
724 * config/mips/mips.mt: Delete file.
725 * config/mips/mips64.mt: Delete file.
726 * config/mips/tm-embed.h: Delete file.
727 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
728 * config/mips/embed64.mt: Delete out-of-date comment.
729
3a3bc038
AC
7302003-09-04 Andrew Cagney <cagney@redhat.com>
731
732 * hppa-tdep.c (hppa_gdbarch_init): Set
733 "have_nonsteppable_watchpoint".
734 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
735 * mips-tdep.c (mips_dump_tdep): Do not print
736 HAVE_NONSTEPPABLE_WATCHPOINT.
737 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
738 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
739 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
740 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
741
a957e642
CV
7422003-09-04 Corinna Vinschen <vinschen@redhat.com>
743
744 * breakpoint.c (watchpoint_check): Remove accidentally checked in
745 unused code. Add comment.
746
a6fbcf2f
CV
7472003-09-04 Corinna Vinschen <vinschen@redhat.com>
748
749 * breakpoint.c (watchpoint_check): Check for pc being in an
750 epilogue if watchpoint frame couldn't be found.
751
c14a44d5
AC
7522003-09-04 Andrew Cagney <cagney@redhat.com>
753
754 * Makefile.in: Re-generate all dependencies.
755
f6c40618
AC
7562003-09-03 Andrew Cagney <cagney@redhat.com>
757
758 * arch-utils.h (legacy_print_insn): Delete declaration.
759 * arch-utils.c (legacy_print_insn): Delete function.
760 * disasm.c (deprecated_tm_print_insn_info): Delete.
761 (_initialize_disasm): Delete function, contained code initializing
762 deprecated_tm_print_insn_info.
763 * gdbarch.sh (deprecated_tm_print_insn): Delete.
764 (deprecated_tm_print_insn_info): Delete.
765 (TARGET_PRINT_INSN): Do not provide a default.
766 * gdbarch.h, gdbarch.c: Re-generate.
767
242e8be5
AC
7682003-09-03 Andrew Cagney <cagney@redhat.com>
769
770 * disasm.c (fprintf_disasm): New function.
771 (gdb_disassemble_info): Call "init_disassemble_info", instead of
772 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
773 reverts 2003-08-14 change.
774 (_initialize_disasm): Call "init_disassemble_info", instead of
775 INIT_DISASSEMBLE_INFO_NO_ARCH.
776
3ffc3dda
MS
7772003-09-03 Michael Snyder <msnyder@redhat.com>
778
779 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
780
52d16ba8
AC
7812003-09-03 Andrew Cagney <cagney@redhat.com>
782
783 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
784 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
785 * symfile.c (syms_from_objfile): Update.
786 (reread_symbols): `Update
787 * exec.c (exec_file_attach): Update.
788 (exec_file_attach): Update.
789 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
790 2003-08-29 change.
791 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
792
eb5492fa
DJ
7932003-09-03 Daniel Jacobowitz <drow@mvista.com>
794
795 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
796 trad-frame.h.
797 (arm_get_cache): Delete macro.
798 (struct arm_prologue_cache): Update comments. Make saved_regs into
799 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
800 to prev_sp.
801 (thumb_scan_prologue): Update for cache changes. Don't call
802 DEPRECATED_PC_IN_CALL_DUMMY.
803 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
804 argument and use it in desperation search for our prologue. Do not
805 search past the specified PC.
806 (arm_make_prologue_cache): Simplify.
807
808 (arm_prologue_this_id, arm_prologue_prev_register)
809 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
810 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
811 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
812 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
813 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
814
815 (arm_frame_chain_valid, arm_find_callers_reg)
816 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
817 (arm_pop_frame): Delete obsolete methods.
818 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
819
820 (arm_gdbarch_init): Update for new frame methods. Register prologue
821 and sigtramp unwinders. Set the default frame base method.
822
823 * Makefile.in (arm-tdep.o): Update dependencies.
824 * varobj.c (find_frame_addr_in_frame_chain): Call
825 get_frame_base_address.
826 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
827
24de872b
DJ
8282003-09-03 Daniel Jacobowitz <drow@mvista.com>
829
830 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
831 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
832 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
833 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
834 Take NEXT_FRAME and CACHE arguments. Call
835 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
836 Set unwound_pc in CACHE instead of modifying the frame argument.
837 Don't bother checking the frame type when looking for sigtramp
838 frames.
839 (arm_make_prologue_cache, arm_frame_chain)
840 (arm_init_extra_frame_info): New functions.
841
9b8d791a
DJ
8422003-09-03 Daniel Jacobowitz <drow@mvista.com>
843
844 * arm-tdep.c (arm_get_cache): Define.
845 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
846 unwound_sp, unwound_pc, and saved_regs.
847 (thumb_scan_prologue): Take a cache instead of the frame.
848 (arm_scan_prologue): Likewise.
849 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
850 instead of a temporary frame.
851 (arm_init_extra_frame_info): Allocate and use a cache.
852 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
853
7ee3275f
AC
8542003-09-03 Andrew Cagney <cagney@redhat.com>
855
856 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
857 * config/mips/wince.mt (TM_CLIBS): Ditto.
858 * config/sh/wince.mt (TM_CLIBS): Ditto.
859 * config/pa/hppa64.mt (TM_CLIBS): Delete.
860 * config/sparc/sp64.mt (CC): Delete.
861
57b29be7
AC
8622003-09-03 Andrew Cagney <cagney@redhat.com>
863
864 * defs.h: Do not include "arch-utils.h".
865 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
866 GDB_MULTI_ARCH_PURE.
867 * configure.in (GDB_MULTI_ARCH): Do not define.
868 * configure, config.in: Regenerate.
869 * configure.tgt: Do not set variable "gdb_multi_arch".
870 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
871 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
872 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
873 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
874 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
875 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
876 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
877 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
878 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
879 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
880 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
881 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
882 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
883 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
884 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
885 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
886 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
887 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
888
12e035e2
MC
8892003-08-30 Michael Chastain <mec@shout.net>
890
891 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
892 * config/m68k/nm-hp300hpux.h: Delete.
893 * config/m68k/tm-hp300hpux.h: Delete.
894 * config/m68k/xm-hp300hpux.h: Delete.
895 * config/m68k/xm-hp300bsd.h: Delete.
896 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
897 tm-hp300hpux.h, xm-hp300hpux.h.
898 * somsolib.c: Remove comment about hp300 shared libraries.
899
bda34dc2
MK
9002003-08-31 Mark Kettenis <kettenis@gnu.org>
901
5bca7895
MK
902 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
903 Only define PTRACE_GET_THREAD_AREA is not already defined.
904 Various style fixes in code and comments and some additional
905 spelling fixes in comments. Move after functions dealing with
906 debug registers.
907 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
908 Fix coding-style.
909
bda34dc2
MK
910 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
911 frame_unwind_register_unsigned instead of
912 frame_unwind_unsigned_register.
913
c890192f
MK
9142003-08-30 Mark Kettenis <kettenis@gnu.org>
915
916 * configure.in: Search for gethostbyname in libnsl.
917 * configure: Regenerated.
918
60fac5b8
MK
9192003-08-29 Mark Kettenis <kettenis@gnu.org>
920
e294916c
MK
921 * configure.in: Remove redundant AC_MSG_RESULT in check for
922 uintptr_t in stdint.h.
923 * configure: Regenerated.
924
c40d267a
MK
925 * amd64-nat.h (struct regcache): Add opaque declaration.
926
60fac5b8
MK
927 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
928 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
929 Change "register array" to "register cache" in comments.
930 (x86_64_linux_gregset64_reg_offset): New variable.
931 (GETREGS_SUPPLIES): Remove macro.
932 (supply_gregset): Call amd64_supply_native_gregset instead of
933 x86_64_linux_supply_gregset.
934 (fill_gregset): Rename `regno' to `regnum'. Call
935 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
936 (store_regs): Rename `regno' to `regnum'.
937 (store_fpregs): Rename `regno' to `regnum'.
938 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
939 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
940 Reorganize function a bit.
941 (store_inferior_registers): Rename `regno' to `regnum'. Use
942 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
943 Reorganize function a bit.
944 (_initialize_x86_64_linux_nat): New function.
945 * config/i386/x86-64linux.mh.
946
546143b6
AC
9472003-08-29 Andrew Cagney <cagney@redhat.com>
948
949 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
950 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
951 (target_remove_watchpoint): Delete macro.
952 (target_insert_watchpoint): Delete macro.
953 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
954 (remote_mips_stopped_by_watchpoint): Delete declaration.
955 (remote_mips_remove_watchpoint): Delete declaration.
956 (remote_mips_set_watchpoint): Delete declaration.
957 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
958 * remote-mips.c (_initialize_remote_mips): Set
959 "to_insert_watchpoint", "to_stopped_by_watchpoint",
960 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
961 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
962 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
963 (mips_stopped_by_watchpoint): Rename
964 remote_mips_stopped_by_watchpoint.
965 (mips_can_hardware_watchpoint): Rename
966 remote_mips_can_use_hardware_watchpoint, update function
967 signature.
968
7bace51b
MK
9692003-08-29 Mark Kettenis <kettenis@gnu.org>
970
b0f5c6f2
MK
971 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
972 USER_DS. We haven't given them a register number yet.
973
2a6d284d
MK
974 * amd64-nat.h: New file.
975 * amd64-nat.c: New file.
976 * amd64fbsd-nat.c: Include "amd64-nat.h".
977 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
978 (amd64fbsd32_r_reg_offset): New variable.
979 (supply_gregset): Simply call amd64_supply_native_gregset.
980 (fill_gregset): Rename `regno' to `regnum'. Simply call
981 amd64_collect_native_gregset.
982 (fill_fpregset): Rename `regno' to `regnum'.
983 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
984 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
985 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
986 `fpregset_t'. Call amd64_supply_native_gregset instead of
987 supply_gregset. Call x86_64_supply_fxsave instead of
988 supply_fpregset.
989 (store_inferior_registers): Rename `regno' to `regnum'. Replace
990 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
991 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
992 `fpregset_t'. Call amd64_collect_native_gregset instead of
993 fill_gregset. Call x86_64_collect_fxsave instead of
994 fill_fpregset.
995 (_initialize_am64fbsd_nat): Initialize
996 amd64_native_gregset32_reg_offset and
997 amd64_native_gregset64_reg_offset.
998 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
999
a16d75cc
MK
1000 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1001 null pointer. Fix typo in comment.
1002
7bace51b
MK
1003 * regcache.c (supply_register): Reimplement to call
1004 regcache_raw_supply.
1005 (regcache_collect): Reimplement by calling regcache_raw_collect.
1006
9a661b68
MK
10072003-08-28 Mark Kettenis <kettenis@gnu.org>
1008
1009 * regcache.c (register_buffer): Consitify first argument.
1010 (regcache_raw_supply, regcache_raw_collect): New
1011 functions.
1012
e94cc8fa
DJ
10132003-08-28 Daniel Jacobowitz <drow@mvista.com>
1014
1015 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1016 by Nathan J. Williams.
1017
c64bd0ce
DJ
10182003-08-28 Daniel Jacobowitz <drow@mvista.com>
1019
1020 * lin-lwp.c (wait_lwp): New function, copied from
1021 stop_wait_callback. Clean up.
1022 (stop_wait_callback): Use wait_lwp.
1023
e5ab0dce
AC
10242003-08-28 Andrew Cagney <cagney@redhat.com>
1025
1026 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1027 flavour and disassembler options.
1028 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1029 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1030 deprecated_tm_print_insn_info.
1031
a788de9b
AC
10322003-08-27 Andrew Cagney <cagney@redhat.com>
1033
1034 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1035 Use target_read_memory.
1036 (s390_get_frame_info): Update. Do not reference
1037 deprecated_tm_print_insn_info.
1038 (s390_check_function_end, s390_is_sigreturn): Ditto.
1039
36482093
AC
10402003-08-27 Andrew Cagney <cagney@redhat.com>
1041
1042 * Makefile.in (cris-tdep.o): Update dependencies.
1043 * cris-tdep.c: Include "gdb_assert.h".
1044 (cris_gdbarch_init): Set print_insn.
1045 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1046 (cris_delayed_get_disassembler): Simplify, directly call the
1047 disassembler returned by cris_get_disassembler.
1048 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1049 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1050 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1051 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1052 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1053 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1054 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1055 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1056 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1057 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1058 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1059 (gdb_print_insn_sparc): Delete function.
1060 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1061 deprecated_tm_print_insn_info.
1062 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1063 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1064 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1066 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1067 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1068 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1069 (s390_gdbarch_init): Set print_insn.
1070
0285512f
AC
10712003-08-27 Andrew Cagney <cagney@redhat.com>
1072
1073 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1074 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1075 * infcall.c (call_function_by_hand): Convert the entry point
1076 address into a code address.
1077
cdcd5552
AC
10782003-08-27 Andrew Cagney <cagney@redhat.com>
1079
1080 * dsrec.c: Include "gdb_string.h".
1081 * Makefile.in (dsrec.o): Update dependencies.
1082
e85cddad
MC
10832003-08-27 Michael Chastain <mec@shout.net>
1084
1085 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1086
8bbfbb23
AC
10872003-08-27 Andrew Cagney <cagney@redhat.com>
1088
1089 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1090 (alpha_osf1_init_abi): Do not set call_dummy_address.
1091
ba058b66
DC
10922003-08-27 David Carlton <carlton@kealia.com>
1093
1094 From Randolph Chung <tausq@debian.org>:
1095 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1096 compiles with -Wformat-nonliteral -Werror.
1097
87f84c9d
JB
10982003-08-26 Jim Blandy <jimb@redhat.com>
1099
1100 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1101 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1102 bfd_lookup_symbol, since we only want symbols in code sections.
1103 (look_for_base): Pass zero as the SECT_FLAGS argument to
1104 bfd_lookup_symbol, since we're not concerned about which section
1105 the symbol is in.
1106
102d615a
JJ
11072003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1108
1109 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1110 we are frameless or the return address register is already known.
1111
cc7ad3ea
AC
11122003-08-26 Andrew Cagney <cagney@redhat.com>
1113
1114 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1115 in size. Add comments.
1116
af8b88dd
JJ
11172003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1118
1119 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1120 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1121
e0a4f5a1
JM
11222003-08-26 Jason Merrill <jason@redhat.com>
1123
1124 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1125 case out of #ifdef MIPS block.
1126
4ae9ee8e
DJ
11272003-08-25 Daniel Jacobowitz <drow@mvista.com>
1128
1129 PR java/1322
1130 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1131 available before calling SECT_OFF_TEXT.
3c164570 1132 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1133
004d836a
JJ
11342003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1135
1136 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1137 bof, and nat0-nat127 as pseudo-registers.
1138 (ia64_frame_cache): New struct used to cache frame info.
1139 (ia64_register_reggroup_p): New routine used to override default
1140 register grouping so registers without names are still saved and
1141 restored.
1142 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1143 pseudo values.
1144 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1145 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1146 (ia64_alloc_frame_cache): New routine to create a new
1147 ia64_frame_cache.
1148 (examine_prologue): Change prototype to add next_frame pointer.
1149 Assume frameless until otherwise proven. Verify that the cfm for
1150 current frame matches the cfm that should occur for the prologues
1151 alloc insn and if equal, mark as not frameless. At end of routine,
1152 if not frameless, calculate registers for the previous frame and store
1153 in the cache, if a cache is provided.
1154 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1155 and pass 0 for next_frame.
1156 (ia64_store_return_value): Change to use convert_typed_floating()
1157 instead of calling ia64_convert_to_raw().
1158 (ia64_extract_return_value): Change to use convert_typed_floating()
1159 instead of calling ia64_convert_to_virtual().
1160 (ia64_frame_cache): New routine to support new frame model.
1161 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1162 (ia64_frame_sniffer): Ditto.
1163 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1164 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1165 (ia64_sigtramp_frame_prev_register): Ditto.
1166 (ia64_sigtramp_frame_sniffer): Ditto.
1167 (ia64_frame_base_address): Ditto.
1168 (ia64_extract_struct_value_address): Change to issue error message.
1169 (ia64_frame_align): New routine to align sp.
1170 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1171 (ia64_push_arguments): Removed. Logic moved to
1172 ia64_push_dummy_call().
1173 (ia64_push_return_address): Ditto.
1174 (ia64_unwind_dummy_id): New function.
1175 (ia64_unwind_pc): Ditto.
1176 (ia64_convert_register_p): Ditto.
1177 (ia64_register_to_value): Ditto.
1178 (ia64_value_to_register): Ditto.
1179 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1180 (ia64_register_byte, ia64_register_raw_size): Ditto.
1181 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1182 (ia64_saved_pc_after_call): Ditto.
1183 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1184 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1185 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1186 (ia64_register_convert_to_raw): Ditto.
1187 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1188 (ia64_init_extra_frame_info): Ditto.
1189 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1190 (ia64_gdbarch_init): Remove registering of deprecated functions that
1191 are no longer used. Add registration of new gdbarch functions.
1192 Remove registering deprecated_write_sp. Replace
1193 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1194 Delete set_gdbarch_deprecated_register_convertible(),
1195 set_gdbarch_deprecated_register_convert_to_virtual(), and
1196 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1197 set_gdbarch_deprecated_register_size(),
1198 set_gdbarch_deprecated_register_bytes(),
1199 set_gdbarch_pcregnum(),
1200 set_gdbarch_deprecated_register_byte(),
1201 set_gdbarch_deprecated_register_raw_size(),
1202 set_gdbarch_deprecated_max_register_raw_size(),
1203 set_gdbarch_deprecated_register_virtual_size(),
1204 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1205 Replace set_gdbarch_deprecated_extract_return_value() with
1206 set_gdbarch_extract_return_value(). Remove calls to:
1207 set_gdbarch_deprecated_saved_pc_after_call();
1208 set_gdbarch_deprecated_frame_chain(),
1209 set_gdbarch_deprecated_frame_saved_pc(),
1210 set_gdbarch_deprecated_frame_init_saved_regs(),
1211 set_gdbarch_deprecated_get_saved_register(),
1212 set_gdbarch_deprecated_call_dummy_words(),
1213 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1214 set_gdbarch_deprecated_init_extra_frame_info(),
1215 set_gdbarch_deprecated_frame_args_address(),
1216 set_gdbarch_deprecated_frame_locals_address(),
1217 and set_gdbarch_deprecated_dummy_write_sp().
1218 Add set_gdbarch_convert_register_p(),
1219 set_gdbarch_register_to_value(),
1220 set_gdbarch_value_to_register(),
1221 set_gdbarch_push_dummy_call(),
1222 set_gdbarch_frame_align(),
1223 set_gdbarch_unwind_dummy_id(),
1224 set_gdbarch_unwind_pc(),
1225 frame_unwind_append_sniffer(),
1226 frame_unwind_append_sniffer(),
1227 and frame_base_set_default().
1228
aede7613
CD
12292003-08-25 Chris Demetriou <cgd@broadcom.com>
1230
1231 * configure.tgt: Document need for special "mipsisa64" handling.
1232 (mipsisa64*-*-linux64): Handle as target linux64.
1233 (mipsisa64*-*-*): Handle as target embed64.
1234
43c3a82e
MC
12352003-08-18 Michael Chastain <mec@shout.net>
1236
1237 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1238 objfile bug.
1239
6564f77d
MK
12402003-08-24 Mark Kettenis <kettenis@gnu.org>
1241
2de139ba
MK
1242 * i387-tdep.h: Update copyright date.
1243 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1244
6564f77d
MK
1245 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1246 CFLAGS games to reflect reality.
1247
42cf1509
AC
12482003-08-24 Andrew Cagney <cagney@redhat.com>
1249
1250 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1251 GDB_MULTI_ARCH is always non-zero.
1252 * osabi.c (_initialize_gdb_osabi): Ditto.
1253 (gdbarch_init_osabi): Ditto.
1254 * sparc-tdep.c: Ditto for #if code.
1255
0485f6ad
MK
12562003-08-23 Mark Kettenis <kettenis@gnu.org>
1257
1258 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1259 Update comments.
1260 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1261 comments.
1262 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1263 x86_64_supply_fxsave.
1264 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1265 x86_64_supply_fxsave.
1266 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1267 x86_64_supply_fxsave.
1268
c7716133
AJ
12692003-08-23 Andreas Jaeger <aj@suse.de>
1270
1271 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1272 i387_supply_fxsave.
1273
ed504bdf
MK
12742003-08-23 Mark Kettenis <kettenis@gnu.org>
1275
1276 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1277 i387_supply_register.
1278 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1279 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1280 i387_supply_fsave.
1281 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1282 i387_supply_fxsave.
1283 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1284 i387_supply_fsave.
1285 * i386bsd-nat.c (supply_fpregset): Adjust call to
1286 i387_supply_fsave.
1287 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1288 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1289 supply_fpregset.
1290 (store_inferior_registers): Remove extraneous whitespace. Call
1291 i387_fill_fsave instead of fill_fpregset.
1292 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1293 (supply_fpregset): Likewise.
1294 * i386v4-nat.c (supply_fpregset): Adjust call to
1295 i387_supply_fsave.
1296 * i386-interix-nat.c (supply_fpregset): Adjust call to
1297 i387_supply_fsave.
1298 * i386-linux-nat.c (supply_fpregset): Adjust call to
1299 i387_supply_fsave.
1300 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1301 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1302 i387supply_fsave and i387_supply_fxsave.
1303 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1304 Incorporate code from `i387_supply_register.
1305 (i387_supply_register): Remove.
1306 (i387_supply_fxsave): Add `regnum' argument.
1307 Update comments.
1308 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1309 prototype.
1310 (i387_supply_register): remove prototype.
1311 Update comments.
1312
4be5d520
MC
13132003-08-22 Michael Chastain <mec@shout.net>
1314
1315 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1316 Add lines for files in gdb/testsuite/gdb.cp/* that are
1317 still not 8.3 unique.
1318
7ed85d26
DJ
13192003-08-22 Daniel Jacobowitz <drow@mvista.com>
1320
1321 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1322 TYPE_VPTR_FIELDNO is valid.
1323
eb0d3137
MK
13242003-08-19 Mark Kettenis <kettenis@gnu.org>
1325
1326 * utils.c (set_width_command): Remove prototypes.
1327 (set_screen_size): New prototype.
1328 (init_page_info): Simplify by fetching the screen size from
1329 Readline. Call set_screen_size.
1330 (set_screen_size): New function.
1331 (set_width): Add missing whitespace in comment.
1332 (set_width_command): Call set_screen_size.
1333 (set_height_command): New function.
1334 (initialize_utils): Fix formatting. Make "set height" command
1335 call set_height_command. Remove redundant code that turns off
1336 pagination if output isn't a terminal. Remove redundant call to
1337 set_width_command.
1338
7e6d0ac8
MK
13392003-08-22 Mark Kettenis <kettenis@gnu.org>
1340
3567a8ea
MK
1341 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1342 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1343 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1344 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1345 `case' keyword.
1346 (sparc64_register_info): Give the reister with number
1347 SPARC64_STATE_REGNUM a name.
1348 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1349 %asi and %ccr.
1350 (sparc64_push_dummy_call): Take BIAS into account when checking
1351 stcak alignment.
1352 (sparc_software_single_step): Remove assertions that check whether
1353 NPC and NNPC were zero.
1354 (sparc_supply_rwindow): Make public. Merge functionality with
1355 sparc64_supply_rwindow.
1356 (sparc_fill_rwindow): Make public. Merge functionality with
1357 sparc64_fill_rwindow.
1358 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1359 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1360 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1361 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1362 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1363
7e6d0ac8
MK
1364 * reggroups.c: Add whitespace after declarations of local
1365 variables in functions.
1366
72e5f484
MC
13672003-08-21 Michael Chastain <mec@shout.net>
1368
1369 * gdbtypes.h: Change array bound type from an int to enum.
1370
435ac228
AC
13712003-08-21 Andrew Cagney <cagney@redhat.com>
1372
1373 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1374 * config/sparc/tm-sparc.h: Ditto.
1375 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1376 unconditionally.
1377 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1378
0d0e1a63
MK
13792003-07-13 Mark Kettenis <kettenis@gnu.org>
1380
1381 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1382 (register_objfile_data, set_objfile_data, objfile_data): New
1383 prototypes.
1384 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1385 prototypes.
1386 (allocate_objfile): Call objfile_alloc_data.
1387 (free_objfile): Call objfile_free_data.
1388 (struct objfile_data): New.
1389 (struct objfile_data_registration): New.
1390 (struct objfile_data_registry): New.
1391 (objfile_data_registry): New variable.
1392 (register_objfile_data): New function.
1393 (objfile_alloc_data, objfile_free_data): New functions.
1394 (set_objfile_data, objfile_data): New functions.
1395 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1396 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1397 (_initialize_dwarf2_frame): New function and prototype.
1398
d90cf509
AC
13992003-08-21 Andrew Cagney <cagney@redhat.com>
1400
1401 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1402 a specific architecture.
1403 * arch-utils.h (set_architecture_from_arch_mach): Delete
1404 declaration.
1405 (target_architecture_hook): Delete declaration.
1406 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1407 (default_float_format): Assume GDB_MULTI_ARCH.
1408 (default_double_format): Assume GDB_MULTI_ARCH.
1409 (set_endian_from_file): Delete function.
1410 (arch_ok): Delete function.
1411 (set_arch): Delete function.
1412 (set_architecture_from_arch_mach): Delete function.
1413 (set_architecture_from_file): Delete function.
1414 (set_architecture): Assume GDB_MULTI_ARCH.
1415 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1416
8b39fe56
MK
14172003-08-21 Mark Kettenis <kettenis@gnu.org>
1418
1419 Rewrite FreeBSD/sparc64 native configuration.
1420 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1421 * sparc64fbsd-nat.c: New file.
1422 * sparc64fbsd-tdep.c: New file.
1423 * sparc64-tdep.c sparc64-tdep.h: New files.
1424 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1425 sparc64fbsd-tdep.o): New dependencies.
1426 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1427 and sparc64fbsd-tdep.c.
1428 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1429 * config/sparc/fbsd.mh: Remove copyright notice.
1430 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1431 sparcbsd-nat.o.
1432 * config/sparc/fbsd.mt: Remove copyright notice.
1433 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1434 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1435 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1436 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1437 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1438 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1439 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1440 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1441 "sparc/tm-sp64.h".
1442 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1443 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1444
a7f19c79
MC
14452003-08-21 Michael Chastain <mec@shout.net>
1446
1447 * symtab.h: Add doco on the space critical structures and
1448 some measurements of space usage.
1449
da08ea5b
MS
14502003-08-21 Michael Snyder <msnyder@redhat.com>
1451
1452 * tracepoint.c (trace_dump_command): Trace break address
1453 is subject to DECR_PC_AFTER_BREAK.
1454 (set_traceframe_context): Make "trace_line" an int.
1455 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1456
6df2bf50
MS
14572003-08-20 Michael Snyder <msnyder@redhat.com>
1458
1459 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1460 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1461 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1462 argument passing.
1463 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1464 functions, replace sh_push_dummy_call.
1465 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1466
0955bbf0
MC
14672003-08-20 Michael Chastain <mec@shout.net>
1468
1469 * gdbtypes.h (struct main_type): Rearrange to save space.
1470
260a4188
MS
14712003-08-20 Michael Snyder <msnyder@redhat.com>
1472
1473 * trad-frame.c: Comment typo fix.
1474
8baa6f92
KB
14752003-08-20 Michael Snyder <msnyder@redhat.com>
1476 Kevin Buettner <kevinb@redhat.com>
1477
1478 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1479 (frv_frame_init_saved_regs): Add declaration.
1480 (frame_extra_info): Add new field ``saved_regs''.
1481 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1482 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1483 Update frame related code.
1484 (frv_extract_struct_value_address): Adjust formatting.
1485 * Makefile.in (frv-tdep.o): Update dependencies.
1486 * config/frv/tm-frv.h (target_insert_watchpoint)
1487 (target_remove_watchpoint, target_insert_hw_breakpoint)
1488 (target_remove_hw_breakpoint): Delete these macros.
1489 (remote_insert_watchpoint, remote_remove_watchpoint)
1490 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1491 these declarations.
1492
87193939
MC
14932003-08-20 Michael Chastain <mec@shout.net>
1494
1495 * defs.h (ENUM_BITFIELD): New macro.
1496 * symtab.h (ENUM_BITFIELD): Use it.
1497 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1498
062103ba
SA
14992003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1500
1501 * MAINTAINERS (write after approval): Add myself.
1502
8b148df9
AC
15032003-08-18 Andrew Cagney <cagney@redhat.com>
1504
1505 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1506 * gdbarch.h, gdbarch.c: Re-generate.
1507 * infcall.c (call_function_by_hand): Adjust the SP by
1508 frame_red_zone_size before allocating any stack space.
1509 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1510 * x86-64-tdep.c (x86_64_frame_align): New function.
1511 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1512
1513 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1514 Remove code adjusting SP so that it skips over the Red Zone.
1515
954a4db8
MK
15162003-08-18 Mark Kettenis <kettenis@gnu.org>
1517
1518 * NEWS (New native configurations): Mention FreeBSD/amd64.
1519
1a241548
AC
15202003-08-18 Andrew Cagney <cagney@redhat.com>
1521
1522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1523 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1524 "m68k_frame_p".
1525 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1526
f82b2acd
MK
15272003-08-18 Mark Kettenis <kettenis@gnu.org>
1528
1529 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1530
4056d258
ML
15312003-08-18 Michal Ludvig <mludvig@suse.cz>
1532
1533 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1534 Define.
1535 * i386-linux-nat.c: Include "linux-nat.h".
1536 (child_post_startup_inferior): New function.
1537
99ab4326
MK
15382003-08-18 Mark Kettenis <kettenis@gnu.org>
1539
1540 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1541 at the start of a frameless function. This probably fixes PR
1542 backtrace/1338.
1543
c8d5f0d6
MC
15442003-08-17 Michael Chastain <mec@shout.net>
1545
1546 * symfile.c (find_sym_fns): Remove special case for apollo target.
1547
9016a515
DJ
15482003-08-17 Daniel Jacobowitz <drow@mvista.com>
1549
1550 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1551 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1552 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1553 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1554 (linux_supports_tracevforkdone): New function.
1555 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1556 TRACEVFORKDONE.
1557 (child_follow_fork): Handle vfork.
1558 (linux_handle_extended_wait): Likewise. Also handle exec.
1559 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1560 * NEWS: Mention fork tracing.
1561
c538c11c
DJ
15622003-08-17 Daniel Jacobowitz <drow@mvista.com>
1563
1564 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1565
4de4c07c
DJ
15662003-08-17 Daniel Jacobowitz <drow@mvista.com>
1567
1568 * Makefile.in (i386-linux-nat.o): Update dependencies.
1569 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1570 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1571 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1572 * i386-linux-nat.c: Include "linux-nat.h".
1573 (child_post_startup_inferior): New function.
1574 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1575 * infptrace.c (kill_inferior): Wrap in #ifdef.
1576 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1577 attaching to each LWP.
1578 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1579 (init_lin_lwp_ops): Fill in some more operations.
1580 * linux-nat.h (linux_enable_event_reporting)
1581 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1582 prototypes.
1583 * linux-nat.c (linux_enable_event_reporting): New function.
1584 (child_post_attach, linux_child_post_startup_inferior)
1585 (child_post_startup_inferior, child_follow_fork)
1586 (linux_handle_extended_wait, kill_inferior): New functions.
1587
7996bcec
AC
15882003-08-16 Andrew Cagney <cagney@redhat.com>
1589
1590 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1591 * gdbarch.h, gdbarch.c: Re-generate.
1592
3d48a7a0
MK
15932003-08-16 Mark Kettenis <kettenis@gnu.org>
1594
1595 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1596
7989c619
AC
15972003-08-16 Andrew Cagney <cagney@redhat.com>
1598
1599 * NEWS: Mention that "set prompt-escape-char" was deleted.
1600 * top.c (get_prompt_1): Delete function.
1601 (gdb_prompt_escape):
1602 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1603 prompt-escape-char" command.
1604 (MAX_PROMPT_SIZE): Delete macro.
1605 (get_prompt): Simplify, do not call get_prompt_1.
1606
07978cd8
AC
16072003-08-16 Andrew Cagney <cagney@redhat.com>
1608
1609 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1610 -Werror. -Wformat-nonliteral problems.
1611
3ff7cf9e
JB
16122003-08-15 J. Brobecker <brobecker@gnat.com>
1613
1614 Further multiarching work mostly for hppa64-*-hpux11:
1615 * hppa-tdep.h: New file.
1616 * hppa-tdep.c: #include hppa-tdep.c.
1617 (hppa32_num_regs): Renamed from hppa_num_regs.
1618 (hppa64_num_regs): New constant.
1619 (hppa64_call_dummy_breakpoint_offset): New constant.
1620 (hppa32_call_dummy_length): New constant.
1621 (hppa64_call_dummy_length): New constant.
1622 (hppa32_stack_align): Make name 32bit explicit.
1623 (hppa32_register_virtual_type): Likewise.
1624 (hppa32_extract_return_value): Likewise.
1625 (hppa32_use_struct_convention): Likewise.
1626 (hppa32_store_return_value): Likewise.
1627 (hppa64_register_virtual_type): New function.
1628 (hppa64_extract_return_value): New function.
1629 (hppa64_use_struct_convention): New function.
1630 (hppa64_store_return_value): New function.
1631 (hppa_frame_locals_address): Remove declaration, function does
1632 not exist anymore.
1633 (hppa_register_byte): Add support for PA64 ABI.
1634 (hppa_gdbarch_init): Add support for PA64 ABI.
1635 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1636 Make name 32bit explicit.
1637 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1638 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1639 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1640 (hppa64_hpux_frame_base_before_sigtramp): New function.
1641 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1642 * config/pa/tm-hppa64.h: Remove macros that are no longer
1643 necessary now that the gdbarch vector is properly setup.
1644 Transform some macros into function calls. Some minor cleanup.
1645 * config/pa/tm-hppah.h: Update function calls in macros
1646 following the function renaming in hppa-hpux-tdep.c.
1647 * Makefile.in (hppa_tdep_h): New variable.
1648 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1649
5d05ca6d
MS
16502003-08-14 Michael Snyder <msnyder@redhat.com>
1651
1652 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1653
37ba2569
JB
16542003-08-13 J. Brobecker <brobecker@gnat.com>
1655
1656 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1657 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1658 routine.
1659
aed7f26a
MS
16602003-08-13 Michael Snyder <msnyder@redhat.com>
1661
1662 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1663 (frv_saved_pc_after_call): Use deprecated ftype.
1664 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1665 (frv_remote_translate_xfer_address): Remove.
1666 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1667
752d4ac1
JB
16682003-08-13 J. Brobecker <brobecker@gnat.com>
1669
1670 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1671 initialization after the common gdbarch initialization, not before.
1672
1426ac1d
JB
16732003-08-13 J. Brobecker <brobecker@gnat.com>
1674
1675 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1676 (ADDR_BITS_REMOVE): Remove, redundant.
1677
b6fbdd1d
JB
16782003-08-13 J. Brobecker <brobecker@gnat.com>
1679
1680 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1681 gdbarch method to clear the 2 low bits of text addresses.
1682
44160db3
AC
16832003-08-12 Andrew Cagney <cagney@redhat.com>
1684
1685 * Makefile.in (dsrec.o): Update dependencies.
1686 * dsrec.c: Include "gdb_assert.h".
1687 (make_srec): Use snprintf instead of sprintf, use a literal format
1688 string.
1689
bcf7d3ca
AC
16902003-08-12 Andrew Cagney <cagney@redhat.com>
1691
1692 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1693 FRAME_OBSTACK_ZALLOC.
1694
49ed40de
KB
16952003-08-12 Kevin Buettner <kevinb@redhat.com>
1696
1697 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1698 SSE registers.
1699
b246147c
MK
17002003-08-10 Mark Kettenis <kettenis@gnu.org>
1701
1702 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1703 amd64fbsd_sc_reg_offset): Add extern declarations.
1704 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1705 declarations.
1706
d95fdc0d
BE
17072003-08-11 Ben Elliston <bje@wasabisystems.com>
1708
1709 * MAINTAINERS (write after approval): Update my mail address.
1710
cf6a0e73
AC
17112003-08-10 Andrew Cagney <cagney@redhat.com>
1712
1713 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1714
f837910f
MK
17152003-08-10 Mark Kettenis <kettenis@gnu.org>
1716
e2dbbd2d
MK
1717 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1718 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1719 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1720 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1721 i386bsd_sc_reg_offset): Add extern declarations.
1722 * i386obsd-nat.c: Include "i386-tdep.h"
1723 (_initialize_i386obsd_nat): Remove extern declarations.
1724 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1725 declarations.
1726 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1727 declarations.
1728
f837910f
MK
1729 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1730 instead of frame_read_register.
1731 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1732 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1733 SP_REGNUM.
1734 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1735 instead of frame_unwind_unsigned_register. Use
1736 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1737 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1738 instead of read_register. Use builtin_type_void_data_ptr instead
1739 of builtin_type_void_func_ptr when extracting the address of the
1740 jmp_buf.
1741 (i386_extract_return_value, i386_store_return_value,
1742 i386_pseudo_register_read, i386_pseudo_register_write): Use
1743 register_size instead REGISTER_RAW_SIZE.
1744
edcf254d
AC
17452003-08-10 Andrew Cagney <cagney@redhat.com>
1746
1747 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1748 sprintf. Make "name" constant.
1749
26604a34
MK
17502003-08-10 Mark Kettenis <kettenis@gnu.org>
1751
192285c6
MK
1752 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1753 instead of frame_read_register.
f837910f
MK
1754 (i387_print_float_info): Use get_frame_register and
1755 get_frame_register_unsigned instead of frame_register_read.
192285c6 1756
f0925262
MK
1757 * i386fbsd-nat.c: Include "i386-tdep.h".
1758 (child_resume): Make `eflags' an ULONGEST. Use
1759 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1760 instead of register_read and register_write.
1761
a144416f
MK
1762 * i386bsd-nat.c (fetch_inferior_registers,
1763 store_inferior_registers): Don't use && at the end of a line.
1764 (_initialize_i386bsd_nat): Fix typo.
1765
fec74868
MK
1766 * frame.c (_initialize_frame): Add missing backslash.
1767
87232496
MK
1768 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1769 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1770 and supply_register instead of manipulating the register buffer
1771 directly.
1772
c9b9de0b
MK
1773 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1774 * config/i386/nm-i386sol2.h
1775 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1776
26604a34
MK
1777 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1778 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1779 instructions that GCC likes to mingle into the prologue. Fixes
1780 gdb/1253 and gdb/1255.
1781
25d29d70
AC
17822003-08-09 Andrew Cagney <cagney@redhat.com>
1783
1784 Fix GDB PR cli/926.
1785 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1786 * command.h (add_setshow_uinteger_cmd): Declare.
1787 * frame.c (set_backtrace_cmd): New function.
1788 (show_backtrace_cmd): New function.
1789 * frame.c (_initialize_frame): Replace "set/show
1790 backtrace-below-main" with "set/show backtrace past-main". Add
1791 command "set/show backtrace limit".
1792 (backtrace_past_main): Rename "backtrace_below_main".
1793 (backtrace_limit): New variable.
1794 (get_prev_frame): Update. Check the backtrace_limit.
1795
9ebf4acf
AC
17962003-08-09 Andrew Cagney <cagney@redhat.com>
1797
1798 * defs.h (xstrprintf): Declare.
1799 * utils.c (xstrprintf): New function.
1800 * breakpoint.c (insert_breakpoints): Replace sprintf and
1801 non-literal format strings, with xstrprintf and cleanups.
1802 (delete_breakpoint,breakpoint_re_set): Ditto.
1803 (commands_command, insert_breakpoints): Ditto.
1804 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1805 (break_at_finish_command_1): Ditto.
1806
3771659b
AC
18072003-08-09 Andrew Cagney <cagney@redhat.com>
1808
1809 * MAINTAINERS (language support): List Adam Fedor as Objective C
1810 maintainer.
1811
b4263afa
JB
18122003-08-08 J. Brobecker <brobecker@gnat.com>
1813
1814 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1815 are now multiarched.
1816
d84defb1
JB
18172003-08-08 J. Brobecker <brobecker@gnat.com>
1818
1819 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1820 longer necessary now that hppa64 is partially multiarch'ed.
1821
f786f615
AC
18222003-08-08 Andrew Cagney <cagney@redhat.com>
1823
1824 * interps.c (interp_set): Check for a NULL "old_interp".
1825
c938e9b0
L
18262003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1827
1828 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1829 (install-only): Support DESTDIR.
1830 (uninstall): Likewise.
1831 (install-gdbtk): Likewise.
1832
9a146a11
EZ
18332003-08-08 Elena Zannoni <ezannoni@redhat.com>
1834
1835 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1836 contains something meaningful at all times.
1837
1838Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1839
62599e99 1840 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1841
56296155
BC
1842Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1843
62599e99 1844 * MAINTAINERS (write after approval): Added self.
56296155 1845
9710e734
AC
18462003-08-07 Andrew Cagney <cagney@redhat.com>
1847
1848 * inferior.h (AT_SYMBOL): Define.
1849 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1850 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1851 * mips-tdep.c (mips_call_dummy_address): Delete function.
1852 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1853 set call_dummy_address.
1854
98b3ab73
AC
18552003-08-07 Andrew Cagney <cagney@redhat.com>
1856
1857 * language.c (op_error): Delete function.
1858 (binop_type_check): Delete function.
1859 * language.h (type_op_error, range_op_error): Delete macros.
1860 (op_error): Delete declaration.
1861
2fcf52f0
AC
18622003-08-07 Andrew Cagney <cagney@redhat.com>
1863
1864 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1865
abd4220e 18662003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1867
abd4220e 1868 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1869 (x86_64_push_arguments): Skip the red zone.
abd4220e 1870
9dd5f34f
AC
18712003-08-05 Andrew Cagney <cagney@redhat.com>
1872
1873 * reggroups.c (reggroup_next): Check for the final entry.
1874
e5e78edc
AC
18752003-08-04 Andrew Cagney <cagney@redhat.com>
1876
ab4e3d93
AC
1877 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1878 * cli/cli-script.c (define_command): Call query directly, instead
1879 of passing it a buffer.
1880 * ocd.c (ocd_error): Pass error a constant format string.
1881 * remote-mips.c (mips_error): Use fputs_filtered.
1882
1062ca82
AC
1883 * solib-svr4.c (_initialize_svr4_solib): Update
1884 register_gdbarch_data call.
1885 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1886
fcc1c85c
AC
1887 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1888 (register_gdbarch_data): Delete "free" parameter. Update
1889 comments.
1890 * gdbarch.h, gdbarch.c: Re-generate.
1891 * reggroups.c (_initialize_reggroup): Update.
1892 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1893 * frame-base.c (_initialize_frame_base): Update.
1894 * frame-unwind.c (_initialize_frame_unwind): Update.
1895 * user-regs.c (_initialize_user_regs): Update.
1896 * remote.c (_initialize_remote): Update.
1897 * regcache.c (_initialize_regcache): Update.
1898
116f06ea
AC
1899 * regcache.c (xfree_regcache_descr): Delete function.
1900 (_initialize_regcache): Update call to register_gdbarch_data.
1901 (init_regcache_descr, init_legacy_regcache_descr): Use
1902 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1903
e5e78edc
AC
1904 * remote.c (free_remote_state): Delete function.
1905 (_initialize_remote): Update register_gdbarch_data.
1906 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1907 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1908
6c7d17ba
AC
19092003-08-04 Andrew Cagney <cagney@redhat.com>
1910
1911 * reggroups.c (struct reggroup_el): Define.
1912 (struct reggroups): Delete field "nr_group". Replace array
1913 "group" with a "first" to "last" linked list.
1914 (reggroups_init): Update. Allocate using gdbarch's obstack.
1915 (reggroups_free): Delete function.
1916 (add_group): Update. Add "el" parameter.
1917 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1918 (default_groups): Update.
1919 (reggroup_next): Replace reggroups.
1920 (reggroups_dump): Update.
1921 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1922 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1923 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1924
89b7795b
DJ
19252003-08-04 Daniel Jacobowitz <drow@mvista.com>
1926
1927 * Makefile.in (tui-interp.o): Update dependencies.
1928
306d9ac5
DC
19292003-08-04 David Carlton <carlton@kealia.com>
1930
1931 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1932 to internal_error call.
1933 * source.c (forward_search_command): Add "%s" format argument.
1934 (reverse_search_command): Ditto.
1935 * top.c (quit_confirm): Ditto.
1936 * cli/cli-setshow.c (do_setshow_command): Ditto.
1937 * cp-valprint.c (cp_print_class_method): Replace
1938 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1939 (cp_print_class_member): Ditto.
1940 * event-top.c (command_line_handler): Ditto.
1941 * linux-proc.c (linux_info_proc_cmd): Ditto.
1942 * p-typeprint.c (pascal_type_print_base): Ditto.
1943 * p-valprint.c (pascal_object_print_class_method): Ditto.
1944 (pascal_object_print_class_member): Ditto.
1945 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1946 * remote.c (remote_cisco_section_offsets): Ditto.
1947 * top.c (command_line_input): Ditto.
1948 * utils.c (vwarning,error_stream,quit): Ditto.
1949 * valprint.c (print_floating,print_binary_chars)
1950 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1951
57bfe177
AC
19522003-08-04 Andrew Cagney <cagney@redhat.com>
1953
1954 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1955
e546b999
AC
19562003-08-02 Andrew Cagney <cagney@redhat.com>
1957
1958 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1959 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1960 amd64fbsd-nat.c.
1961
91092ee5
AC
19622003-08-02 Andrew Cagney <cagney@redhat.com>
1963
1964 * Makefile.in: Update all dependencies and definitions.
1965
889f28e2
AF
19662003-08-02 Adam Fedor <fedor@gnu.org>
1967
1968 * linespec.c (is_objc_method_format): New function
1969 (decode_line_1, locate_first_half): Use it.
1970 Fixes PR objc/1298
1971
880bc914
AC
19722003-08-01 Andrew Cagney <cagney@redhat.com>
1973
1974 * NEWS: Mention that m32r is multi-arch.
1975 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1976 * configure.tgt: Recognize m32r-*-*.
1977 * config/m32r/tm-m32r.h: Delete file.
1978 * config/m32r/m32r.mt: New file.
1979 * m32r-rom.c (m32r_upload_command): Use hostent only when
1980 gethostname succeeds, in order to avoid a compilation
1981 warning.
1982 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1983 compiler warning.
1984
19f59343
MS
19852003-08-01 Michael Snyder <msnyder@redhat.com>
1986
1987 * sh-tdep.c (sh_frame_align): New gdbarch method.
1988 (sh_gdbarch_init): Set up frame_align method.
1989
4e7d7511
MS
19902003-07-31 Michael Snyder <msnyder@redhat.com>
1991
1992 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1993 which is already covered by the new frames infrastructure.
1994
63022984
AC
19952003-07-31 Andrew Cagney <cagney@redhat.com>
1996
1997 * user-regs.c (struct user_reg): Add "next" link.
1998 (struct user_regs): Replace "user" with "first" and "last" links.
1999 (append_user_reg): Add pre-allocated "reg" parameter.
2000 (builtin_user_regs): Provide initial value for "last".
2001 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2002 (user_regs_init): Allocate memory from the gdbarch obstack.
2003 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2004 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2005 linked list.
2006 (usernum_to_user_reg): New function.
2007 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2008 (value_of_user_reg): Use usernum_to_user_reg.
2009 (user_regs_free): Delete function.
2010 (_initialize_user_regs): Update register_gdbarch_data call.
2011
7cf6e574
DJ
20122003-07-31 Daniel Jacobowitz <drow@mvista.com>
2013
2014 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2015
c48a845b
MS
20162003-07-30 Michael Snyder <msnyder@redhat.com>
2017
4e7d7511 2018 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2019 * infcall.c (call_function_by_hand): Pass struct_addr to
2020 value_being_returned.
2021 * infcmd.c (print_return_value): Pass zero as struct_addr.
2022 * values.c (value_being_returned): If struct_addr is passed,
2023 use it instead of trying to recover it from the inferior.
2024
f0d8db19
KB
20252003-07-30 Kevin Buettner <kevinb@redhat.com>
2026
2027 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2028 the prologue analyzer won't need to attempt to extract the pc
2029 value from the woefully incomplete dummy frame.
2030 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2031 possible. Disable code which modifies the frame.
2032
e5c113a1
AC
20332003-07-28 Andrew Cagney <cagney@redhat.com>
2034
2035 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2036 to level 2.
2037 (annotate_breakpoints_table, annotate_record): Ditto.
2038 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2039 (annotate_field_name_end, annotate_field_value): Ditto.
2040 (annotate_field_end, annotate_frame_source_begin): Ditto.
2041 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2042 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2043 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2044 (annotate_frame_address_end, annotate_frame_address): Ditto.
2045 (annotate_frame_args, annotate_frame_end): Ditto.
2046 (annotate_frame_where, annotate_arg_begin): Ditto.
2047 (annotate_arg_name_end, annotate_arg_value): Ditto.
2048 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2049 (annotate_function_call, annotate_signal_name): Ditto.
2050 (annotate_signal_string, annotate_signal_name_end): Ditto.
2051 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2052 (annotate_value_begin, annotate_value_history_value): Ditto.
2053 (annotate_value_history_end, annotate_value_end): Ditto.
2054 (annotate_display_begin, annotate_display_number_end): Ditto.
2055 (annotate_display_format, annotate_display_expression): Ditto.
2056 (annotate_display_expression_end, annotate_display_value): Ditto.
2057 (annotate_display_end, annotate_array_section_begin): Ditto.
2058 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2059 (annotate_elt, annotate_array_section_end): Ditto.
2060
bb1db049
AC
20612003-07-28 Andrew Cagney <cagney@redhat.com>
2062
2063 * regcache.c (struct regcache_descr): Update comments on
2064 nr_raw_registers.
2065 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2066 sizeof_raw_register_valid_p.
2067 (init_regcache_descr): Set nr_raw_registers and
2068 sizeof_raw_register_valid_p before calling
2069 init_legacy_regcache_descr.
2070
20e6603c
AC
20712003-07-28 Andrew Cagney <cagney@redhat.com>
2072
2073 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2074 MOD NUM_REGS.
2075
db742940
DJ
20762003-07-28 Daniel Jacobowitz <drow@mvista.com>
2077
2078 * thread.c (info_threads_command): Use get_selected_frame ().
2079 Check that there is at least one non-sentinel frame.
2080
ce7f4371
SC
20812003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2082
2083 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2084 (m68hc11_pop_frame): Remove.
2085 (m68hc11_frame_saved_pc): Remove.
2086 (m68hc11_frame_chain): Remove.
2087 (m68hc11_frame_init_saved_regs): Remove.
2088 (m68hc11_init_extra_frame_info): Remove.
2089 (m68hc11_store_struct_return): Remove.
2090 (m68hc11_saved_pc_after_call): Remove.
2091
1ea653ae
SC
20922003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2093
2094 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2095 frame unwind information.
2096 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2097 and adapted for frame unwinding.
2098 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2099 (m68hc11_unwind_pc): New function.
2100 (m68hc11_frame_unwind_cache): New function to analyze frames.
2101 (m68hc11_frame_this_id): New function to create new frame struct.
2102 (m68hc11_frame_prev_register): New function to unwind a register from
2103 the frame.
2104 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2105 (m68hc11_frame_p): New function for the above.
2106 (m68hc11_frame_base_address): New function to return fp of frame.
2107 (m68hc11_frame_args_address): Update for frame.
2108 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2109 (m68hc11_unwind_sp): New function.
2110 (m68hc11_unwind_dummy_id): New function.
2111 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2112 calls.
2113
c8a7f6ac
SC
21142003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2115
2116 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2117 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2118 when we are beyond the current pc.
2119
3dc990bf
SC
21202003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2121
2122 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2123 from m68hc11_push_arguments.
2124 (m68hc11_push_arguments): Remove.
2125 (m68hc11_push_return_address): Remove.
2126 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2127 handlers; remove deprecated_extra_stack_alignment_needed.
2128
222e5d1d
AC
21292003-07-27 Andrew Cagney <cagney@redhat.com>
2130
2131 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2132 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2133 REAL_PC and not the pointer.
2134 * hppa-hpux-tdep.c: Include frame.h
2135
a7e9a47e
AC
21362003-07-27 Andrew Cagney <cagney@redhat.com>
2137
2138 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2139 GDB_MULTI_ACH_PARTIAL.
2140
7e3dd49e
AC
21412003-07-27 Andrew Cagney <cagney@redhat.com>
2142
2143 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2144 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2145 operator at start and not end of line.
2146 (decode_prologue): Ditto.
2147 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2148 frame_unwind_register_unsigned instead of
2149 frame_unwind_unsigned_register.
2150 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2151 read_register.
2152 (m32r_push_dummy_call): Use register_size instead of
2153 REGISTER_RAW_SIZE.
2154 (m32r_frame_sniffer): Replace m32r_frame_p.
2155 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2156 * m32r-rom.c (report_transfer_performance): Delete extern
2157 declaration.
2158 (m32r_load, m32r_upload_command): Use print_transfer_performance
2159 instead of report_transfer_performance.
2160 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2161 / add_show_from_set.
2162
0880807f
AC
21632003-07-26 Andrew Cagney <cagney@redhat.com>
2164
2165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2166 store_return_value and extract_struct_value_address.
2167
64ae9269
DJ
21682003-07-26 Daniel Jacobowitz <drow@mvista.com>
2169
2170 PR c++/1267
2171 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2172 NULL, default to the section containing PC.
2173
e286caf2
SC
21742003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2175
2176 * NEWS: Mention "regs" deprecated for m68hc11 too.
2177
2178 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2179 (m68hc11_print_register): New function to print out one register.
2180 (m68hc11_print_registers_info): New function to print registers.
2181 (show_regs): Deprecate and use the above.
2182 (m68hc11_gdbarch_init): Install the print_registers_info.
2183
705b278b
JJ
21842003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2185
2186 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2187 that we have a SIGTRAP before returning non-zero.
2188
63cd4198
EZ
21892003-07-23 Michal Ludvig <mludvig@suse.cz>
2190 Elena Zannoni <ezannoni@redhat.com>
2191
2192 * linespec.c (decode_line_2): Avoid crash if
2193 find_function_start_sal() returns empty record.
2194
6926787d
AS
21952003-07-23 Andreas Schwab <schwab@suse.de>
2196
2197 * ia64-tdep.c (ia64_print_insn): New function.
2198 (ia64_gdbarch_init): Set print_insn to it.
2199 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2200 deprecated_tm_print_insn_info.
2201
708cc1b6
MS
22022003-07-22 Michael Snyder <msnyder@redhat.com>
2203
2204 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2205 handle 8-bit returns (long long).
2206 (h8300h_extract_return_value): Ditto.
2207 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2208
aebd7893
AC
22092003-07-22 Andrew Cagney <cagney@redhat.com>
2210
2211 * gdbarch.c Include "gdb_obstack.h".
2212 (struct gdbarch): Add an "obstack".
2213 (alloc_gdbarch_data): Allocate the gdbarch data using
2214 GDBARCH_OBSTACK_CALLOC.
2215 (free_gdbarch_data): Delete function.
2216 (gdbarch_obstack_zalloc): New function.
2217 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2218 Assert that the architecture is not initialized.
2219 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2220 vector from the obstack.
2221 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2222 architecture obstack.
2223 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2224 (set_gdbarch_data): Assert that the data is not initialized.
2225 (struct gdbarch_data): Delete member "free".
2226 (register_gdbarch_data): Do not initialize "free".
2227 * gdbarch.h, gdbarch.c: Re-generate.
2228
153721e6
AC
22292003-07-22 Andrew Cagney <cagney@redhat.com>
2230
2231 * configure.in (build_warnings): Add -Wformat-nonliteral.
2232 * configure: Re-generate.
2233
c193f044 22342003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2235
2236 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2237
c3228f12
EZ
22382003-07-22 Elena Zannoni <ezannoni@redhat.com>
2239
2240 * findvar.c (read_var_value): Remove case for thread local storage
2241 variables. It is now entirely handled by the dwarf2 location
2242 expression code.
2243 * printcmd.c (address_info): Ditto.
2244 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2245 enumeration value.
2246 (struct symbol): Remove objfile field, which was used by
2247 LOC_THREAD_LOCAL_STATIC only.
2248 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2249 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2250 usage of objfile pointer.
2251 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2252 thread local variables.
2253 Add include of objfiles.h.
2254 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2255 storage variables.
2256 * Makefile.in (dwarf2loc.o): Update dependencies.
2257
aef9bcd2
AC
22582003-07-22 Andrew Cagney <cagney@redhat.com>
2259
2260 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2261 get_frame_base.
2262 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2263 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2264 (struct value): Add opaque declaration.
2265 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2266
d95a8903
AC
22672003-07-21 Andrew Cagney <cagney@redhat.com>
2268
2269 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2270 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2271
4db73d49
SC
22722003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2273
2274 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2275 regcache_cooked_read_unsigned instead of read_register.
2276 (m68hc11_saved_pc_after_call): Likewise.
2277 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2278 instead of write_register.
2279 (m68hc11_register_type): New function.
2280 (m68hc11_register_virtual_type): Remove.
2281 (m68hc11_store_return_value): Convert to use the regcache.
2282 (m68hc11_extract_struct_value_address): Likewise.
2283 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2284 m68hc11_register_type; undeprecate store_return_value and
2285 extract_struct_value_address.
2286
ef2b8fcd
SC
22872003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2288
2289 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2290 and translate to use regcache.
2291 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2292
625b0b97
AC
22932003-07-18 Andrew Cagney <cagney@redhat.com>
2294
2295 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2296 * gdbarch.h, gdbarch.c: Re-generate.
2297 * i386-tdep.c (i386_gdbarch_init): Do not set
2298 DWARF2_BUILD_FRAME_INFO.
2299 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2300 unconditionally.
2301 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2302 DWARF2_BUILD_FRAME_INFO.
2303
22b0d388
AC
23042003-07-18 Andrew Cagney <cagney@redhat.com>
2305
2306 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2307 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2308
1ce5d6dd
AC
23092003-07-18 Andrew Cagney <cagney@redhat.com>
2310
2311 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2312 frame_unwind_address_in_block, instead of frame_pc_unwind.
2313 (dwarf2_frame_cache): Ditto.
2314
e6e5e94c
AC
23152003-07-18 Andrew Cagney <cagney@redhat.com>
2316
2317 * user-regs.h (struct gdbarch): Declare opaque.
2318 * ui-out.h (struct ui_file): Declare opaque.
2319 * dwarf2-frame.h (struct frame_info): Declare opaque.
2320
5483d879
KW
23212003-07-18 Kris Warkentin <kewarken@qnx.com>
2322
2323 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2324 #include "...".
2325 (procfs_meminfo): Change strerror to safe_strerror.
2326 (procfs_can_run): Remove K&R badness.
2327
278a7cf7
MS
23282003-07-17 Michael Snyder <msnyder@redhat.com>
2329
2330 * remote-sim.c: Comment typo fix.
2331
606e3b82
AC
23322003-07-17 Andrew Cagney <cagney@redhat.com>
2333
2334 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2335 configure.
2336 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2337 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2338 GDB_MULTI_ARCH_PARTIAL.
2339
c43af07c
EZ
23402003-07-17 Elena Zannoni <ezannoni@redhat.com>
2341
2342 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2343 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2344 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2345
3b85b0f1
TR
23462003-07-16 Theodore A. Roth <troth@openavr.org>
2347
2348 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2349 found.
2350 (avr_frame_unwind_cache): Don't unwind FP for main.
2351 Update a comment.
2352 Save the computed prev_sp.
2353 (avr_saved_regs_unwinder): Remove function.
2354 (avr_frame_prev_register): Use PC unwind logic from
2355 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2356
336d1bba
AC
23572003-07-16 Andrew Cagney <cagney@redhat.com>
2358
2359 * frame-base.h (frame_base_p_ftype): Delete definition.
2360 (frame_base_append_predicate): Delete declaration.
2361 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2362 (frame_unwind_append_predicate): Delete declaration.
2363 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2364 (append_predicate): Delete parameter "p".
2365 (frame_unwind_append_predicate): Delete function.
2366 (frame_unwind_append_sniffer): Update call to append_predicate.
2367 (frame_unwind_free): Delete function.
2368 (_initialize_frame_unwind): Pass NULL as "free" to
2369 register_gdbarch_data.
2370 (frame_unwind_init): Append the dummy_frame_sniffer.
2371 (frame_unwind_find_by_frame): Simplify.
2372 * frame-base.c (struct frame_base_table): Delete field "p".
2373 (append_predicate): Delete parameter "p".
2374 (frame_base_append_predicate): Delete function.
2375 (frame_base_append_sniffer): Update call to append_predicate.
2376 (frame_base_free): Delete function.
2377 (frame_base_find_by_frame): Simplify.
2378 (_initialize_frame_base): Pass NULL as "free" to
2379 register_gdbarch_data.
2380 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2381 (x86_64_sigtramp_frame_sniffer): Replace
2382 "x86_64_sigtramp_frame_p".
2383 (x86_64_init_abi): Set the frame unwind sniffers.
2384 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2385 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2386 (m68k_gdbarch_init): Set the frame unwind sniffers.
2387 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2388 "i386_sigtramp_frame_p".
2389 (i386_frame_sniffer): Replace "i386_frame_p".
2390 (i386_gdbarch_init): Set the frame unwind sniffers.
2391 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2392 (avr_gdbarch_init): Set the frame unwind sniffers.
2393 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2394 "alpha_sigtramp_frame_p"
2395 (alpha_heuristic_frame_sniffer): Replace
2396 "alpha_heuristic_frame_p".
2397 (alpha_gdbarch_init): Set the frame unwind sniffers.
2398 (alpha_dwarf2_init_abi): Ditto.
2399 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2400 "alpha_debug_frame_p".
2401 (alpha_mdebug_frame_base_sniffer): Replace
2402 "alpha_mdebug_frame_base_p".
2403 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2404 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2405 (d10v_gdbarch_init): Set the frame unwind sniffer.
2406 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2407 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2408 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2409 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2410 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2411 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2412
48db5a3c
CV
24132003-07-16 Michael Snyder <msnyder@redhat.com>
2414
2415 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2416 should go thru sh_dsp_register_sim_regno, else the dsp regs
2417 will not get the right values.
2418
24192003-07-16 Corinna Vinschen <vinschen@redhat.com>
2420
2421 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2422 deprecated_store_floating by call to store_typed_floating.
2423 (sh_sh4_register_convert_to_raw): Substitute call to
2424 deprecated_extract_floating by call to extract_typed_floating.
2425
24262003-07-16 Corinna Vinschen <vinschen@redhat.com>
2427
2428 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2429
24302003-07-16 Corinna Vinschen <vinschen@redhat.com>
2431
2432 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2433 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2434 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2435 as possible.
2436 (do_pseudo_register): Remove.
2437 (sh_push_dummy_code): New function.
2438 (sh64_store_struct_return): Rename from sh_store_struct_return.
2439 Only called for sh64 now.
2440 (sh_extract_struct_value_address): Regcache'ify.
2441 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2442 and accomodate new tasks.
2443 (sh64_push_return_address): Rename from sh_push_return_address.
2444 Only called for sh64 now.
2445 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2446 Regcache'ify.
2447 (sh3e_sh4_extract_return_value): Regcache'ify.
2448 (sh_default_store_return_value): Ditto.
2449 (sh3e_sh4_store_return_value): Ditto.
2450 (sh_default_register_byte): Remove.
2451 (sh_sh4_register_byte): Remove.
2452 (sh_default_register_raw_size): Remove.
2453 (sh_sh4_register_raw_size): Remove.
2454 (sh_register_virtual_size): Remove.
2455 (sh_sh3e_register_virtual_type): Remove.
2456 (sh_sh3e_register_type): New function.
2457 (sh_sh4_register_virtual_type): Remove.
2458 (sh_sh4_register_type): New function.
2459 (sh_default_register_virtual_type): Remove.
2460 (sh_default_register_type): New function.
2461 (do_fv_register_info): Add parameters to accomodate call from
2462 sh_print_registers_info.
2463 (do_dr_register_info): Ditto.
2464 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2465 Add parameters to accomodate call from sh_print_registers_info.
2466 (sh_do_fp_register): Ditto.
2467 (sh64_do_pseudo_register): Call do_dr_register_info,
2468 do_fv_register_info and sh_do_fp_register with default parameters.
2469 (sh_do_register): Add parameters to accomodate call from
2470 sh_print_registers_info.
2471 (sh_print_register): Ditto.
2472 (sh_print_registers_info): Rename from sh_do_registers_info.
2473 Add parameters to be used as gdbarch_print_registers_info
2474 implementation. Accomodate removed do_pseudo_register function
2475 pointer.
2476 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2477 function pointer. Call sh_print_register with default parameters.
2478 (sh64_do_registers_info): Call sh_print_registers_info instead of
2479 sh_do_registers_info.
2480 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2481 detection of deprecated vs. non-deprecated functionality.
2482 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2483 function pointer assignments by direct function calls.
2484
e8a89fe2
AC
24852003-07-15 Andrew Cagney <cagney@redhat.com>
2486
2487 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2488 (frame_register_unwind, create_new_frame): Ditto.
2489 (legacy_get_prev_frame, get_frame_type): Ditto.
2490 (get_frame_base_address): Use frame_base_find_by_frame.
2491 (get_frame_locals_address): Use frame_base_find_by_frame.
2492 (get_frame_args_address): Use frame_base_find_by_frame.
2493 * frame-base.h (frame_base_sniffer_ftype): Declare.
2494 (frame_base_append_sniffer): Declare.
2495 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2496 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2497 (frame_base_append_sniffer): New function.
2498 (frame_base_append_predicate): Add a NULL sniffer.
2499 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2500 (struct frame_base_table): Add "sniffer".
2501 (frame_base_free): Free the "sniffer" table.
2502 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2503 (frame_unwind_append_sniffer): Declare.
2504 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2505 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2506 (struct frame_unwind_table): Add "sniffer", delete "middle".
2507 (append_predicate): Add "sniffer" parameter, append the sniffer.
2508 (frame_unwind_init): Update append_predicate call.
2509 (frame_unwind_append_sniffer): New function.
2510 (frame_unwind_append_predicate): Update append_predicate call.
2511 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2512
0714963c
AC
25132003-07-15 Andrew Cagney <cagney@redhat.com>
2514
2515 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2516 before code inhibiting repeated unwind attempts. Add to
2517 commentary on that test's problems.
2518 * blockframe.c (inside_main_func): Look for "main" in the minimal
2519 symbol table.
2520 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2521 identical.
2522
d9170e22
AC
25232003-07-15 Andrew Cagney <cagney@redhat.com>
2524
2525 * complaints.c (struct explanation): Define.
2526 (struct complaints): Change type of "explanation" to "struct
2527 explanation".
2528 (symfile_explanations): Convert to a "struct explanation" table.
2529 (vcomplaint): Update.
2530
eba29c8c
ML
25312003-07-15 Michal Ludvig <mludvig@suse.cz>
2532
2533 * x86-64-linux-nat.c (regmap): Removed.
2534 (supply_gregset, fill_gregset): Call
2535 x86_64_linux_(fill,supply)_gregset functions.
2536 * x86-64-linux-tdep.c (USER_*): New defines.
2537 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2538 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2539 New functions.
2540 (fetch_core_registers): Ditto.
2541 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2542 * x86-64-linux-tdep.h: New file.
2543 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2544 and core-regset.o.
2545 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2546
68cc0bfb
MK
25472003-07-13 Mark Kettenis <kettenis@gnu.org>
2548
88a115f7
MK
2549 * x86-64-tdep.c (x86_64_store_return_value): Use
2550 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2551
68cc0bfb
MK
2552 * configure.host: Add x86_64-*-freebsd*.
2553 * configure.tgt: Add x86_64-*-freebsd*.
2554 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2555 * amd64fbsd-nat.c: New file.
2556 * amd64fbsd-tdep.c: New file.
2557 * config/i386/nm-fbsd64.h: New file.
2558 * config/i386/fbsd64.mh: New file.
2559 * config/i386/fbsd64.mt: New file.
2560
138e7be5
MK
25612003-07-11 Mark Kettenis <kettenis@gnu.org>
2562
2563 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2564 `sc_regs_offset' and `sc_fpregs_offset'.
2565 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2566 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2567 (alpha_sigtramp_register_address): Rewrite to use new members of
2568 `struct gdbarch_tdep'.
2569 (alpha_gdbarch_init): Initialize new members of struct
2570 gdbarch_tdep'.
2571 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2572 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2573 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2574 (alphafbsd_pc_in_sigtramp): Implement.
2575 (alphafbsd_sigtramp_offset): New function.
2576 (alphafbsd_sigcontext_addr): New function.
2577 (alphafbsd_init_abi): Initialize signal trampoline related members
2578 of `struct gdbarch_tdep'.
2579 (_initialize_alphafbsd_tdep): Add prototype.
2580
95303a68
TR
25812003-07-11 Theodore A. Roth <troth@openavr.org>
2582
ba292e4c
TR
2583 * Makefile.in (install-only): Quote sed expression when generating
2584 transformed_name.
95303a68 2585
6896c0c7
RH
25862003-07-11 Richard Henderson <rth@redhat.com>
2587
2588 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2589 * dwarf2-frame.c: Include complaints.h.
2590 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2591 variable initialization; return NULL on error.
2592 (decode_frame_entry): New.
2593
8edd5d01
AC
25942003-07-11 Andrew Cagney <cagney@redhat.com>
2595
c4a09524
AC
2596 * frame.h (frame_address_in_block): Delete declaration.
2597 * blockframe.c (frame_address_in_block): Delete function.
2598 (get_frame_block): Use get_frame_address_in_block.
2599 (block_innermost_frame): Ditto.
2600 * stack.c (print_frame, backtrace_command_1): Ditto.
2601
8edd5d01
AC
2602 * frame.h (get_frame_address_in_block): Declare.
2603 (frame_unwind_address_in_block): Declare.
2604 * frame.c (frame_unwind_address_in_block): New function.
2605 (get_frame_address_in_block): New function.
2606
f7968451
AC
26072003-07-10 Andrew Cagney <cagney@redhat.com>
2608
2609 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2610 pre-default. Note: re-generate has no effect.
2611
ae99b398
AC
26122003-07-10 Andrew Cagney <cagney@redhat.com>
2613
2614 * gdbarch.sh: When a variable, but not a function, compare against
2615 0. Fix problem in previous patch.
2616 * gdbarch.c: Re-generate.
2617
956ac328
AC
26182003-07-10 Andrew Cagney <cagney@redhat.com>
2619
2620 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2621 functions against NULL, not 0.
2622 * gdbarch.c: Re-generate.
2623
287c3240
FF
26242003-07-10 Fred Fish <fnf@ninemoons.com>
2625
2626 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2627 null string instead of a null pointer.
2628 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2629
32f63c4b
MS
26302003-07-09 Michael Snyder <msnyder@redhat.com>
2631
2632 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2633
402ecd56
MK
26342003-07-09 Mark Kettenis <kettenis@gnu.org>
2635
2636 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2637 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2638 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2639 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2640 * x86-64-tdep.c: ... from here.
2641
c481dac7
AS
26422003-07-09 Andreas Schwab <schwab@suse.de>
2643
2644 * m68k-tdep.h (enum struct_return): Define.
2645 (struct gdbarch_tdep): Add struct_return.
2646 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2647 bytes are padded to the right, not to the left. Pass struct value
2648 address in register %a1, not on stack.
2649 (m68k_use_struct_convention): New function.
2650 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2651 struct_return in tdep to pcc_struct_return.
2652 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2653 reg_struct_return.
2654
64176fa3
JB
26552003-07-09 Joel Brobecker <brobecker@gnat.com>
2656
2657 * somread.c (som_symfile_offsets): Fix compilation error.
2658
96a4ee76
AC
26592003-07-09 Andrew Cagney <cagney@redhat.com>
2660
2661 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2662 Add comments about the checks.
2663
1517c6d1
AC
26642003-07-08 Andrew Cagney <cagney@redhat.com>
2665
2666 * Makefile.in: Make dependency section headers consistent.
2667 (config_h): Move to $BUILD headers section.
2668 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2669 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2670 (ada-exp.tab.c): Move to YACC/LEX section.
2671 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2672 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2673
dc5dd1eb
KW
26742003-07-08 Kris Warkentin <kewarken@qnx.com>
2675
2676 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2677 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2678 of strerror with safe_strerror, use ISO C function definitions,
2679 and replace instances of sprintf with snprintf.
dc5dd1eb 2680
612dde91
AC
26812003-07-07 Andrew Cagney <cagney@redhat.com>
2682
2683 * frame.c (get_prev_frame): Enable check for identical frames.
2684 Update comments. Update error messages.
2685
492c11d3
JB
26862003-07-07 Joel Brobecker <brobecker@gnat.com>
2687
2688 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2689
376a5a49
JB
26902003-07-07 Joel Brobecker <brobecker@gnat.com>
2691
2692 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2693 sort_symtab_syms, no longer necessary.
2694
22b4a9ad
JB
26952003-07-07 Joel Brobecker <brobecker@gnat.com>
2696
2697 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2698
5bbcb741
JB
26992003-07-07 Joel Brobecker <brobecker@gnat.com>
2700
2701 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2702 (mips_register_byte): Likewise.
2703
c139e7d9
DJ
27042003-07-07 Daniel Jacobowitz <drow@mvista.com>
2705
2706 * Makefile.in (sparc_tdep_h): New.
2707 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2708 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2709 * sparc-linux-nat.c: Include "sparc-tdep.h".
2710 * sparc-nat.c: Likewise.
2711 * sparc-tdep.c: Likewise.
2712 * sparc64nbsd-nat.c: Likewise.
2713 * sparcnbsd-nat.c: Likewise.
2714 * sparcnbsd-tdep.c: Likewise.
2715 * sparc-tdep.h: New file.
2716 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2717 and sparc_npc_regnum.
2718
fd8f87c5
DJ
27192003-07-07 Daniel Jacobowitz <drow@mvista.com>
2720
2721 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2722 (mips_linux_cannot_store_register): List supported instead of
2723 unsupported registers.
2724
13adf674
DJ
27252003-07-07 Daniel Jacobowitz <drow@mvista.com>
2726
2727 * disasm.c (dump_insns): Separate instructions from addresses.
2728
8de307e0
AS
27292003-07-07 Andreas Schwab <schwab@suse.de>
2730
2731 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2732 dependencies.
2733 * m68k-tdep.c (NUM_FREGS): Delete.
2734 (SIG_PC_FP_OFFSET): Delete.
2735 (TARGET_M68K): Delete.
2736 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2737 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2738 P_MOVEL_SP, P_MOVEML_SP): Define.
2739 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2740 P_TRAP): Delete.
2741 (m68k_register_raw_size): Delete.
2742 (m68k_register_virtual_size): Delete.
2743 (m68k_register_type): Renamed from m68k_register_virtual_type and
2744 add gdbarch argument.
2745 (m68k_store_struct_return): Delete.
2746 (m68k_deprecated_extract_return_value): Delete.
2747 (m68k_deprecated_extract_struct_value_address): Delete.
2748 (m68k_frame_chain): Delete.
2749 (m68k_frame_saved_pc): Delete.
2750 (m68k_fix_call_dummy): Delete.
2751 (m68k_push_dummy_frame): Delete.
2752 (m68k_pop_frame): Delete.
2753 (m68k_extract_return_value): New function.
2754 (m68k_store_return_value): Rewrite using regcache.
2755 (m68k_extract_struct_value_address): Rewrite using regcache.
2756 (m68k_push_dummy_call): New function.
2757 (struct m68k_frame_cache): Define.
2758 (m68k_alloc_frame_cache): New function.
2759 (m68k_analyze_frame_setup): New function.
2760 (m68k_analyze_register_saves): New function.
2761 (m68k_analyze_prologue): New function.
2762 (m68k_skip_prologue): Rewrite using above functions.
2763 (m68k_unwind_pc): New function.
2764 (m68k_frame_cache): New function.
2765 (m68k_frame_this_id): New function.
2766 (m68k_frame_prev_register): New function.
2767 (m68k_frame_unwind): New variable.
2768 (m68k_frame_p): New function.
2769 (m68k_sigtramp_frame_cache): New function.
2770 (m68k_sigtramp_frame_this_id): New function.
2771 (m68k_sigtramp_frame_prev_register): New function.
2772 (m68k_sigtramp_frame_unwind): New variable.
2773 (m68k_sigtramp_frame_p): New function.
2774 (m68k_frame_base_address): New function.
2775 (m68k_frame_base): New function.
2776 (m68k_unwind_dummy_id): New function.
2777 (fill_gregset): Use regcache_collect.
2778 (fill_fpregset): Likewise.
2779 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2780 defined.
2781 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2782 deprecated_init_frame_pc, deprecated_store_struct_return,
2783 deprecated_extract_return_value, deprecated_store_return_value,
2784 deprecated_frame_chain, deprecated_frame_saved_pc,
2785 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2786 deprecated_register_virtual_size,
2787 deprecated_max_register_raw_size,
2788 deprecated_max_register_virtual_size,
2789 deprecated_register_virtual_type, deprecated_register_size,
2790 deprecated_register_byte, deprecated_register_bytes,
2791 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2792 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2793 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2794 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2795 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2796 deprecated_push_dummy_frame, deprecated_pop_frame,
2797 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2798 only if SYSCALL_TRAP is defined. Set extract_return_value,
2799 store_return_value, extract_struct_value_address, register_type,
2800 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2801 predicates.
2802 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2803 M68K_MAX_REGISTER_SIZE): Define.
2804 (struct m68k_sigtramp_info): Define.
2805 (struct gdbarch_tdep): Add get_sigtramp_info.
2806 * m68klinux-nat.c (fetch_register): Use register_size instead of
2807 REGISTER_RAW_SIZE. Don't put assignment in if.
2808 (store_register): Likewise.
2809 (fetch_inferior_registers): Likewise.
2810 (store_inferior_registers): Likewise.
2811 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2812 (m68k_linux_frame_saved_pc): Delete.
2813 (m68k_linux_sigcontext_reg_offset,
2814 m68k_linux_ucontext_reg_offset): Define.
2815 (m68k_linux_get_sigtramp_info): New function.
2816 (m68k_linux_extract_return_value): Rewrite using regcache.
2817 (m68k_linux_store_return_value): Likewise.
2818 (m68k_linux_extract_struct_value_address): Likewise.
2819 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2820 Don't set deprecated_frame_saved_pc,
2821 deprecated_extract_return_value, deprecated_store_return_value,
2822 deprecated_extract_struct_value_address. Set
2823 extract_return_value, store_return_value,
2824 extract_struct_value_address.
2825
eb8bc282
AC
28262003-07-07 Andrew Cagney <cagney@redhat.com>
2827
2828 * expprint.c: Include "user-regs.h" instead of "frame.h".
2829 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2830 frame_map_regnum_to_name.
2831 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2832 (frame_map_name_to_regnum): Simplify, call
2833 user_reg_map_name_to_regnum.
2834 (frame_map_regnum_to_name): Simplify, call
2835 user_reg_map_regnum_to_name.
2836 (frame_register_unwind): Update.
2837 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2838 (_initialize_frame_reg): Call user_reg_add_builtin.
2839 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2840 (value_of_register): Use value_of_user_reg.
2841 * eval.c (evaluate_subexp_standard): Update.
2842 * parse.c (write_dollar_variable): Update.
2843 * d10v-tdep.c (d10v_print_registers_info): Update.
2844 * infcmd.c (registers_info): Update.
2845 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2846 (builtin_regs_h): Delete macro.
2847 (user_regs_h): Define.
2848 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2849 (builtin-regs.o): Delete target.
2850 (user-regs.o): Specify dependencies.
2851 (expprint.o): Update dependencies.
2852 (findvar.o): Update dependencies.
2853 (frame.o): Update dependencies.
2854 (std-regs.o): Update dependencies.
2855
9f476a01
CF
28562003-07-06 Christopher Faylor <cgf@redhat.com>
2857
2858 * win32-nat.c (solib_symbols_add): Use one variable for all section
2859 address stuff. Pass variable rather than address of variable to
2860 safe_symbol_file_add.
2861
a731b831
AS
28622003-07-06 Andreas Schwab <schwab@suse.de>
2863
2864 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2865
9f83329d
JB
28662003-07-04 Joel Brobecker <brobecker@gnat.com>
2867
2868 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2869
27e28cc5
KW
28702003-07-04 Kris Warkentin <kewarken@qnx.com>
2871
2872 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2873
28742003-07-04 Kris Warkentin <kewarken@qnx.com>
2875
2876 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2877 * config/i386/nto.mh: New file.
2878 * config/i386/nm-nto.h: New file.
2879 * configure.host: Add i[3456]86-*-nto*.
2880
100f2e98
JB
28812003-07-03 Joel Brobecker <brobecker@gnat.com>
2882
2883 * remote-vx.c (vx_add_symbols): Fix compilation error.
2884
e23457df
AC
28852003-07-03 Andrew Cagney <cagney@redhat.com>
2886
2887 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2888 * gdbarch.h, gdbarch.c: Re-generate.
2889 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2890 (legacy_register_name): Declare.
2891 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2892 (REGISTER_NAME): Define.
2893 * sparc-tdep.c (legacy_register_name): New function.
2894 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2895 (REGISTER_NAME): Define.
2896 (hppa64_register_name): Declare.
2897 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2898 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2899 (hppa64_register_name): New function.
2900 (hppa_register_name): New function.
2901 * arch-utils.c (legacy_register_name): Delete.
2902 * arch-utils.h (legacy_register_name): Delete.
2903
38caaeec
DJ
29042003-07-03 Daniel Jacobowitz <drow@mvista.com>
2905
2906 * cli/cli-interp.c (cli_interpreter_resume): Update the
2907 cli_uiout's stream to gdb_stdout.
2908
dadd712e
AC
29092003-07-03 Andrew Cagney <cagney@redhat.com>
2910
2911 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2912 predicate.
2913 * gdbarch.h, gdbarch.c: Re-generate.
2914 * regcache.c (init_regcache_descr): Use legacy code when either
2915 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2916
c7f1390e
DJ
29172003-07-02 Daniel Jacobowitz <drow@mvista.com>
2918
2919 * NEWS: Move "set logging" entry into GDB 6.0 section.
2920
4bc8c588
JB
29212003-07-02 Jim Blandy <jimb@redhat.com>
2922
a9dd42f1
JB
2923 * s390-tdep.c (struct frame_extra_info): new member:
2924 'stack_bought_valid'.
2925 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2926 initialize fextra_info->stack_bought.
2927 (s390_frameless_function_invocation): Don't trust the value of
2928 fextra_info_ptr->stack_bought unless
2929 fextra_info->stack_bought_valid is set.
2930
4bc8c588
JB
2931 New S390 prologue analyzer.
2932 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2933 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2934 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2935 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2936 compute_x_addr, s390_on_stack, s390_store,
2937 s390_get_signal_frame_info): New functions.
2938 (S390_NUM_SPILL_SLOTS): New macro.
2939 (s390_get_frame_info): Rewritten.
2940 (is_arg_reg): Deleted.
2941
2942 Break out the decoding of S/390 instructions into separate
2943 functions, to make it more legible, and easier to check
2944 against the spec.
2945 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2946 is_rx, is_rxe): New functions.
2947 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2948 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2949 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2950 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2951 enums for opcode values. (Is this an improvement?)
2952
fd13a04a
AC
29532003-07-02 Andrew Cagney <cagney@redhat.com>
2954
2955 * i386-tdep.c: Revert change committed as part of trad-frame code
2956 below.
2957
3f8091c1
DJ
29582003-07-02 Daniel Jacobowitz <drow@mvista.com>
2959
2960 * breakpoint.c (insert_catchpoint): Make static.
2961
8dd5115e
AS
29622003-07-02 Andreas Schwab <schwab@suse.de>
2963
2964 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2965 former ia64_push_arguments and ia64_push_return_address, and use
2966 regcache functions instead of read/write_register.
2967 (ia64_gdbarch_init): Set push_dummy_call instead of
2968 deprecated_push_arguments and deprecated_push_return_address.
2969
a2229c23
AJ
29702003-07-01 Andreas Jaeger <aj@suse.de>
2971
2972 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2973 before the call.
2974 Set %rax only to number of SSE registers used.
2975
3b3850e8
AC
29762003-07-01 Andrew Cagney <cagney@redhat.com>
2977
2978 * trad-frame.h: Update comments, a -1 .addr is reserved.
2979 (trad_frame_value_p, trad_frame_addr_p): Declare.
2980 (trad_frame_reg_p): Declare.
2981 (trad_frame_set_value): Rename trad_frame_register_value.
2982 (trad_frame_set_unknown): Declare.
2983 * trad-frame.c (trad_frame_realreg_p): New function.
2984 (trad_frame_addr_p, trad_frame_value_p): New function.
2985 (trad_frame_set_unknown): New function.
2986 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2987 (trad_frame_prev_register): Use trad_frame_realreg_p,
2988 trad_frame_addr_p and trad_frame_value_p.
2989 (trad_frame_set_value): Rename trad_frame_register_value.
2990 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2991 and trad_frame_set_value.
a2229c23 2992
4d819d0e
JB
29932003-06-30 Jim Blandy <jimb@redhat.com>
2994
2995 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2996 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2997 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2998 for 16 registers, and then 32 more bytes.
2999 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3000 New macros.
3001 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3002 Move up in the file, since it's now used by is_simple_arg.
3003 (is_simple_arg): Don't assume registers are four bytes long.
3004 Exclude all double arguments. Extended floats are not simple
3005 args.
3006 (is_power_of_two): New function.
3007 (pass_by_copy_ref): Call is_power_of_two, and check that the
3008 length fits in a register, rather than listing all the acceptable
3009 sizes. Extended floats are not passed by reference.
3010 (s390_push_arguments): Don't assume registers are four bytes long.
3011 Reserve an argument register to point to the buffer for structures
3012 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3013 S390_STACK_FRAME_OVERHEAD.
3014
1ad828f1
AS
30152003-06-30 Andreas Schwab <schwab@suse.de>
3016
3017 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3018 format error message.
3019
39b00981
JB
30202003-06-30 Joel Brobecker <brobecker@gnat.com>
3021
3022 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3023
b2a7f303
DC
30242003-06-30 David Carlton <carlton@kealia.com>
3025
3026 Band-aid for PR c++/1245.
3027 * Makefile.in (cp-support.o): Depend on complaints_h.
3028 * cp-support.c: Include complaints.h. Add declaration for
3029 find_last_component.
3030 (cp_find_first_component): Separate code into
3031 cp_find_first_component_aux.
3032 (cp_find_first_component_aux): Call demangled_name_complaint.
3033 (demangled_name_complaint): New.
3034
a257b5bb
AC
30352003-06-30 Andrew Cagney <cagney@redhat.com>
3036
3037 * remote.c (remote_write_bytes): Explicitly compute and then use
3038 the payload size. Update comments to reflect. Fixes problem of
3039 GDB not sending small packets as found by Fred Fish.
3040
0a2cfde4
AC
30412003-06-30 Andrew Cagney <cagney@redhat.com>
3042
3043 * remote.c (remote_async_wait): Fix -Wformat problem.
3044
3fcb8548
AC
30452003-06-29 Andrew Cagney <cagney@redhat.com>
3046
3047 * remote.c (remote_wait): Call error, and not warning, when the
3048 packet is corrupt.
3049 (remote_async_wait): Ditto.
3050
9f9970a3
DJ
30512003-06-29 Daniel Jacobowitz <drow@mvista.com>
3052
3053 * sparc-tdep.c (sparc_y_regnum): Make external again.
3054
83a8ccca
DJ
30552003-06-29 Daniel Jacobowitz <drow@mvista.com>
3056
3057 * cli/cli-logging.c (pop_output_files): Add void to function
3058 definition.
3059
d2cf594a
AC
30602003-06-29 Andrew Cagney <cagney@redhat.com>
3061
3062 * frame.c (frame_register_unwind): Use unsigned char when dumping
3063 the buffer contents.
3064
0fac0b41
DJ
30652003-06-28 Daniel Jacobowitz <drow@mvista.com>
3066
3067 * cli/cli-logging.c: New file.
3068 * cli-out.c (struct ui_out_data): Add original_stream.
3069 (cli_redirect): New function.
3070 (cli_ui_out_impl): Add cli_redirect.
3071 (cli_out_new): Initialize original_stream.
3072 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3073 (uo_redirect, ui_out_redirect): New.
3074 * ui-out.h (struct ui_out_impl): Add redirect member.
3075 (redirect_ftype): New.
3076 (ui_out_redirect): Add prototype.
3077 * Makefile.in: Add rules for cli-logging.c.
3078 * NEWS: Mention "set logging".
3079
88a07d7c
EZ
30802003-06-27 Elena Zannoni <ezannoni@redhat.com>
3081
3082 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3083
4eb58876
AC
30842003-06-27 Andrew Cagney <cagney@redhat.com>
3085
3086 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3087 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3088 * avr-tdep.c (avr_call_dummy_address): Delete function.
3089 (avr_gdbarch_init): Do not set call_dummy_address.
3090
1549f619
EZ
30912003-06-27 Elena Zannoni <ezannoni@redhat.com>
3092
3093 * symfile.c (syms_from_objfile): Move variables to inner block.
3094 Move the checks for the non-mainline case a bit earlier to avoid
3095 doing some useless computations.
3096
3cb3398d
EZ
30972003-06-27 Elena Zannoni <ezannoni@redhat.com>
3098
3099 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3100
3799ccc6
EZ
31012003-06-26 Elena Zannoni <ezannoni@redhat.com>
3102
3103 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3104 sections.
3105
ce1f6491
MC
31062003-06-26 Michael Chastain <mec@shout.net>
3107
3108 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3109 gdb/testsuite/gdb.c++/pr-1210.exp.
3110
d958dfd0
AC
31112003-06-26 Andrew Cagney <cagney@redhat.com>
3112
3113 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3114 altivec_expression.h and altivec_registers.h.
3115
d31431ed
AC
31162003-06-26 Andrew Cagney <cagney@redhat.com>
3117
3118 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3119 info->mach when MIPS16. Patch suggested by Fred Fish.
3120
714b1282
AC
31212003-06-26 Andrew Cagney <cagney@redhat.com>
3122
3123 * utils.c (internal_vproblem): Print the problem to a reason
3124 buffer and then pass to query. Make the msg variable more local.
3125
42efa47a
AC
31262003-06-26 Andrew Cagney <cagney@redhat.com>
3127
3128 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3129 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3130 * gdbarch.h, gdbarch.c: Re-generate.
3131 * frame-base.c (default_frame_args_address): Update. Use
3132 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3133 not available.
3134 (default_frame_locals_address): Ditto for
3135 DEPRECATED_FRAME_LOCALS_ADDRESS.
3136 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3137 (vax_frame_num_args): Update.
3138 (vax_gdbarch_init): Update.
3139 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3140 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3141 * mcore-tdep.c (mcore_gdbarch_init): Update.
3142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3143 * ia64-tdep.c (ia64_gdbarch_init): Update.
3144 * symtab.h (address_class): Update comments.
3145 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3146 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3147 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3148 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3149 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3150 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3151 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3152 * alpha-mdebug-tdep.c: Update.
3153 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3154
8ffd9b1b
AJ
31552003-06-26 Andreas Jaeger <aj@suse.de>
3156
3157 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3158 of SSE registers so that varargs functions work. Rework handling
3159 of passing arguments on the stack.
3160 (x86_64_store_return_value): Return double and float values in SSE
3161 register.
3162
e8ac10a6
MC
31632003-06-24 Michael Chastain <mec@shout.net>
3164
3165 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3166 the "constructor breakpoints ignored" bug.
3167
986af8e6
DC
31682003-06-25 David Carlton <carlton@kealia.com>
3169
3170 * MAINTAINERS: Update e-mail address.
3171
d64558a5
JB
31722003-06-24 Jim Blandy <jimb@redhat.com>
3173
e538d2d7
JB
3174 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3175
02631ec0
JB
3176 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3177 function.
3178 (ppc_linux_init_abi): Register it as the
3179 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3180
e716d87a
JB
3181 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3182 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3183 method.
3184
d64558a5
JB
3185 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3186 (ppc64_standard_linkage_target): Use it.
3187
449a5da4
AC
31882003-06-23 Andrew Cagney <cagney@redhat.com>
3189
3190 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3191 for 0 "int0" and 4 "int32" sized registers.
3192 * gdbtypes.c (builtin_type_int0): Define.
3193 (build_gdbtypes): Initialize builtin_type_int0.
3194 * gdbtypes.h (builtin_type_int0): Declare.
3195
b2a02dda
SC
31962003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3197
3198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3199 as characters are unsigned.
3200
fba3138e
DJ
32012003-06-22 Daniel Jacobowitz <drow@mvista.com>
3202
3203 PR gdb/1179
3204 * dwarfread.c (struct_type): Skip static fields without crashing.
3205
f6c8180b
AC
32062003-06-22 Andrew Cagney <cagney@redhat.com>
3207
3208 GDB 6.0 branch created.
f2c06f52
AC
3209 * README: Update.
3210 * PROBLEMS: Update. Empty.
3211 * NEWS: Update.
f6c8180b 3212
ae822768
DJ
32132003-06-22 Daniel Jacobowitz <drow@mvista.com>
3214
3215 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3216 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3217
261de166
AC
32182003-06-22 Andrew Cagney <cagney@redhat.com>
3219
3220 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3221 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3222 Velikov.
3223
30e94205
DJ
32242003-06-22 Daniel Jacobowitz <drow@mvista.com>
3225
3226 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3227 compilers.
3228
9e14d721
DJ
32292003-06-21 Daniel Jacobowitz <drow@mvista.com>
3230
3231 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3232 argument of val_print.
3233 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3234 to the address argument of baseclass_offset or target_read_memory.
3235 Do add it to the argument of cp_print_value_fields.
3236
a4b8ebc8
AC
32372003-06-21 Andrew Cagney <cagney@redhat.com>
3238
3239 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3240 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3241 instead of 0..NUM_REGS.
3242 (mips_register_reggroup_p): New function.
3243 (mips_pseudo_register_write): New function.
3244 (mips_pseudo_register_read): New function.
3245 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3246 based on the register's type.
3247 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3248 cooked.
3249 (mips_get_saved_register): Simplify. Assert that REGNO is a
3250 pseudo / cooked.
3251 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3252 (mips_register_type): Replace mips_register_virtual_type. Map
3253 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3254 when available.
3255 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3256 that the register is cooked / virtual.
3257 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3258 Only get the extra info when needed.
3259 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3260 (mips32_heuristic_proc_desc): Fetch the cooked register.
3261 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3262 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3263 (mips_print_register): Use gdbarch_register_type, instead of
3264 REGISTER_VIRTUAL_TYPE.
3265 (print_gp_register_row): Use gdbarch_register_type, instead of
3266 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3267 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3268 Print the pseudo / cooked registers.
3269 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3270 Print the pseudo / cooked registers.
3271 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3272 REG_NUM is pseudo / cooked.
3273 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3274 (mips_n32n64_xfer_return_value): Ditto.
3275 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3276 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3277 (mips_register_sim_regno): New function.
3278 (mips_gdbarch_init): Set deprecated_register_byte,
3279 register_group_p, pseudo_register_write, pseudo_register_read,
3280 register_sim_regno, and num_pseudo_regs. Set register_type,
3281 instead of register_virtual_type.
3282 * Makefile.in (mips-tdep.o): Update dependencies.
3283 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3284 REGISTER_VIRTUAL_TYPE.
3285 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3286 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3287 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3288 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3289 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3290
325ed089
DJ
32912003-06-21 Daniel Jacobowitz <drow@mvista.com>
3292
3293 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3294 * cli/cli-cmds.c: Include "gdb_vfork.h".
3295 (shell_escape): Use vfork.
3296
f0e7d0e8
AC
32972003-06-21 Andrew Cagney <cagney@redhat.com>
3298
c57bb9fa
AC
3299 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3300 32 bit floating-point register saves.
3301
6e51443a
AC
3302 * frame.h (deprecated_unwind_get_saved_register): Delete.
3303 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3304 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3305 and deprecated_get_next_frame_hack instead of
3306 deprecated_unwind_get_saved_register.
3307
ed183c7c
AC
3308 * mips-tdep.c (mips_dump_tdep): Do not print
3309 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3310
f0e7d0e8
AC
3311 * frame.c (get_frame_register): New function.
3312 (frame_unwind_register_signed): New function.
3313 (get_frame_register_signed): New function.
3314 (frame_unwind_register_unsigned): New function.
3315 (get_frame_register_unsigned): New function.
3316 * frame.h: Add comments on naming schema.
3317 (get_frame_register, frame_unwind_register_signed): Declare.
3318 (get_frame_register_signed, get_frame_register_signed): Declare.
3319 (frame_unwind_register_unsigned): Declare.
3320 (get_frame_register_unsigned): Declare.
3321
2224d941
TR
33222003-06-20 Theodore A. Roth <troth@openavr.org>
3323
3324 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3325
8619218d
TR
33262003-06-20 Theodore A. Roth <troth@openavr.org>
3327
3328 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3329 (avr_read_sp): Ditto.
3330
0b1b50c0
DJ
33312003-06-20 Daniel Jacobowitz <drow@mvista.com>
3332
3333 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3334 * config/arm/nm-linux.h: Likewise.
3335 * config/arm/tm-linux.h: Likewise.
3336 * config/ia64/nm-linux.h: Likewise.
3337 * config/ia64/tm-ia64.h: Likewise.
3338 * config/s390/tm-linux.h: Likewise.
3339 * config/s390/tm-s390.h: Likewise.
3340 * s390-nat.c: Likewise.
3341 * s390-tdep.c: Likewise.
3342
3343 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3344 * config/ia64/linux.mt: Likewise.
3345 * config/m68k/linux.mh: Likewise.
3346 * config/mips/linux.mt: Likewise.
3347 * config/powerpc/linux.mh: Likewise.
3348 * config/sh/linux.mt: Likewise.
3349
c8c18e65
KW
33502003-06-19 Kris Warkentin <kewarken@qnx.com>
3351
3352 * solib.c (solib_open): Change tests for whether to search
3353 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3354 comments.
3355
dcccef2e
TR
33562003-06-19 Theodore A. Roth <troth@openavr.org>
3357
3358 * avr-tdep.c (avr_frame_address): Delete function.
3359 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3360 set_gdbarch_frame_args_address.
3361
5861a190
AC
33622003-06-19 Andrew Cagney <cagney@redhat.com>
3363
3364 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3365 (REGISTER_CONVERT_FROM_TYPE): Delete.
3366 (mips_register_convert_to_type): Delete declaration.
3367 (mips_register_convert_from_type): Delete declaration.
3368 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3369 kernel/.
3370
0274a8ce
MS
33712003-06-19 Michael Snyder <msnyder@redhat.com>
3372
3373 * linux-nat.h: New file.
3374 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3375 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3376 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3377 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3378 (linux_make_note_section): Iterate over lwps instead of threads.
3379 (linux_do_thread_registers): Use lwp instead of merged pid.
3380 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3381 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3382 Add dependency on linux_nat_h.
3383
adf5f719
TR
33842003-06-19 Theodore A. Roth <troth@openavr.org>
3385
3386 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3387
6766a268
DJ
33882003-06-19 Daniel Jacobowitz <drow@mvista.com>
3389
3390 * varobj.c (get_type, get_target_type): Use check_typedef.
3391
1171114a
DJ
33922003-06-19 Daniel Jacobowitz <drow@mvista.com>
3393
3394 * breakpoint.c (insert_catchpoint): Call internal_error.
3395
adcf68a2
TR
33962003-06-19 Theodore A. Roth <troth@openavr.org>
3397
3398 * avr-tdep.c (avr_push_dummy_code): Delete function.
3399 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3400
ea67f13b
DJ
34012003-06-19 Daniel Jacobowitz <drow@mvista.com>
3402
3403 * arch-utils.c (default_prepare_to_proceed): Remove.
3404 (generic_prepare_to_proceed): Remove.
3405 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3406 (generic_prepare_to_proceed): Remove prototype.
3407 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3408 * gdbarch.c: Regenerate.
3409 * gdbarch.h: Regenerate.
3410 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3411 * hppah-nat.c (hppa_switched_threads): Remove.
3412 * infrun.c (prepare_to_proceed): New static function, copied from
3413 generic_prepare_to_proceed. Remove select_it argument.
3414 (proceed): Call prepare_to_proceed.
3415 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3416 variables.
3417 (ptrace_wait): Don't set the removed variables.
3418 (hppa_switched_threads): Remove.
3419 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3420 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3421 (lin_lwp_prepare_to_proceed): Remove prototype.
3422 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3423 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3424
4add8633
TR
34252003-06-18 Theodore A. Roth <troth@openavr.org>
3426
3427 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3428 trad-frame.h.
3429 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3430 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3431 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3432 (AVR_PROLOGUE_*): Enumerate prologue types.
3433 (struct frame_extra_info): Remove.
3434 (struct avr_unwind_cache): Define.
3435 (avr_write_sp): Delete function.
3436 (avr_read_fp): Ditto.
3437 (avr_init_extra_frame_info): Ditto.
3438 (avr_pop_frame): Ditto.
3439 (avr_frame_saved_pc): Ditto.
3440 (avr_saved_pc_after_call): Ditto.
3441 (avr_push_return_address): Ditto.
3442 (avr_frame_chain): Ditto.
3443 (avr_store_struct_return): Ditto.
3444 (avr_push_arguments): Ditto.
3445 (avr_scan_prologue): Update comments. Changed to set up the info for
3446 cache unwinding. Now returns end of prologue PC.
3447 (avr_skip_prologue): Better handling of functions lacking a prologue
3448 by using avr_scan_prologue.
3449 (avr_scan_arg_moves): New function.
3450 (avr_saved_regs_unwinder): Ditto.
3451 (avr_frame_unwind_cache): Ditto.
3452 (avr_unwind_pc): Ditto.
3453 (avr_frame_this_id): Ditto.
3454 (avr_frame_prev_register): Ditto.
3455 (avr_frame_p): Ditto.
3456 (avr_frame_base_address ): Ditto.
3457 (avr_unwind_dummy_id): Ditto.
3458 (avr_push_dummy_code): Ditto.
3459 (push_stack_item): Ditto.
3460 (pop_stack_item): Ditto.
3461 (avr_push_dummy_call): Ditto.
3462 (struct stack_item): Define.
3463 (avr_frame_unwind): Declare structure.
3464 (avr_frame_base): Ditto.
3465 (avr_gdbarch_init): Remove calls to
3466 set_gdbarch_deprecated_init_frame_pc,
3467 set_gdbarch_deprecated_target_read_fp,
3468 set_gdbarch_deprecated_dummy_write_sp,
3469 set_gdbarch_deprecated_fp_regnum,
3470 set_gdbarch_deprecated_push_arguments,
3471 set_gdbarch_deprecated_push_return_address,
3472 set_gdbarch_deprecated_pop_frame,
3473 set_gdbarch_deprecated_store_struct_return,
3474 set_gdbarch_deprecated_frame_init_saved_regs,
3475 set_gdbarch_deprecated_init_extra_frame_info,
3476 set_gdbarch_deprecated_frame_chain,
3477 set_gdbarch_deprecated_frame_saved_pc,
3478 set_gdbarch_deprecated_saved_pc_after_call.
3479 Add calls to set_gdbarch_push_dummy_call,
3480 set_gdbarch_push_dummy_code,
3481 frame_unwind_append_predicate,
3482 frame_base_set_default,
3483 set_gdbarch_unwind_dummy_id,
3484 set_gdbarch_unwind_pc.
3485 Wrap a long line.
3486
7be04a68
MS
34872003-06-18 Corinna Vinschen <vinschen@redhat.com>
3488
3489 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3490 registers for H8/300S.
3491 (h8300_print_registers_info): Ditto.
8ffd9b1b 3492 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3493
ae087d01
DJ
34942003-06-18 Daniel Jacobowitz <drow@mvista.com>
3495
3496 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3497 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3498 (lin_lwp_wait): Likewise. Update comments.
3499 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3500 (pull_pid_from_list, linux_record_stopped_pid): New.
3501
07d8f827
SC
35022003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3503
3504 * ada-lang.c (scan_discrim_bound): Name first argument.
3505 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3506 declared by ALL_BLOCK_SYMBOLS.
3507
7cb47b14
SC
35082003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3509
3510 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3511 ("regcache.h"): Include it.
3512 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3513
6ad8ae5c
DJ
35142003-06-17 Daniel Jacobowitz <drow@mvista.com>
3515
3516 * NEWS: Mention gdbserver detach change and "disconnect" command.
3517 * infcmd.c (disconnect_command): New function.
3518 (_initialize_infcmd): Add ``disconnect'' command.
3519 * remote.c (remote_async_detach): Delete.
3520 (remote_detach): Merge remote_async_detach.
3521 (remote_disconnect): New.
3522 (init_remote_ops): Set to_disconnect.
3523 (init_remote_cisco_ops): Likewise.
3524 (init_remote_async_ops): Likewise. Use remote_detach.
3525 * target.c (cleanup_target): Default to_disconnect.
3526 (update_current_target): Inherit to_disconnect.
3527 (target_disconnect, debug_to_disconnect): New functions.
3528 (setup_target_debug): Set to_disconnect.
3529 * target.h (struct target_ops): Add to_disconnect.
3530 (target_disconnect): Add prototype.
3531
687595f9
DJ
35322003-06-17 Daniel Jacobowitz <drow@mvista.com>
3533
3534 * breakpoint.c (insert_catchpoint): New function.
3535 (insert_breakpoints): Use catch_exceptions to call
3536 insert_catchpoint. Disable catchpoints if they fail to insert.
3537
29239a8f
DJ
35382003-06-17 Daniel Jacobowitz <drow@mvista.com>
3539
3540 * symfile.c (reread_symbols): Clear sym_private.
3541
2cdf3c63
AC
35422003-06-17 Andrew Cagney <cagney@redhat.com>
3543
3544 * trad-frame.h (struct frame_info): Add opaque declaration.
3545 * remote-fileio.h (struct cmd_list_element): Add opaque
3546 declaration.
3547 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3548 comments.
3549
cf0e1e0d
DJ
35502003-06-17 Daniel Jacobowitz <drow@mvista.com>
3551
3552 * remote.c (remote_prepare_to_store): Replace call to
3553 deprecated_read_register_bytes with multiple regcache_raw_read
3554 calls.
3555
192cdb19
KW
35562003-06-17 Kris Warkentin <kewarken@qnx.com>
3557
3558 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3559 (nto_find_and_open_solib): Likewise.
3560 (nto_init_solib_absolute_prefix): Likewise.
3561 (_initialize_nto_tdep): Fix indentation.
3562
89929b45
KW
35632003-06-17 Kris Warkentin <kewarken@qnx.com>
3564
3565 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3566
46019f27
KW
35672003-06-17 Kris Warkentin <kewarken@qnx.com>
3568
3569 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3570
1a38736e
JB
35712003-06-17 Jim Blandy <jimb@redhat.com>
3572
3573 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3574
3605c34a
TR
35752003-06-16 Theodore A. Roth <troth@openavr.org>
3576
3577 * avr-tdep.c (avr_extract_return_value): New function.
3578 (avr_gdbarch_init): Set extract_return_value method.
3579
870b3035
AC
35802003-06-16 Andrew Cagney <cagney@redhat.com>
3581
3582 * frame.h (deprecated_get_next_frame_hack): Declare.
3583 * frame.c (legacy_saved_regs_prev_register): Only require
3584 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3585 there are always saved regs.
3586 (deprecated_generic_get_saved_register): Do not require
3587 DEPRECATED_FRAME_INIT_SAVED_REGS.
3588 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3589 use frame ID unwind instead.
3590 (deprecated_get_next_frame_hack): New function.
3591
63d47a7d
CV
35922003-06-16 Corinna Vinschen <vinschen@redhat.com>
3593
3594 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3595 (h8300_push_dummy_call): ...this function. Some minor optimization.
3596 (h8300_push_return_address): Remove.
3597 (h8300_gdbarch_init): Remove calls to
3598 set_gdbarch_deprecated_dummy_write_sp,
3599 set_gdbarch_deprecated_push_arguments and
3600 set_gdbarch_deprecated_push_return_address.
3601 Add call to set_gdbarch_push_dummy_call.
3602
4bb1dc5e
CV
36032003-06-16 Corinna Vinschen <vinschen@redhat.com>
3604
3605 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3606 (E_PSEUDO_EXR_REGNUM): Ditto.
3607 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3608 registers into safe registers.
4bb1dc5e
CV
3609 (h8300_skip_prologue): Check for stm instruction to push registers
3610 used for register variables onto stack.
3611 (gdb_print_insn_h8300): Remove.
3612 (h8300_examine_prologue): Add a comment.
3613 (h8300_register_name): Take pseudo registers into account.
3614 (h8300s_register_name): Ditto.
3615 (h8300sx_register_name): Ditto.
3616 (h8300_print_register): Ditto.
3617 (h8300_print_registers_info): Define "nice" printing order.
3618 (h8300_saved_pc_after_call): Take pseudo registers into account.
3619 (h8300_register_type): Ditto. Return type used for remote connection
3620 when requesting real CCR or EXR register, return actual type when
3621 requesting pseudo CCR or EXR.
3622 (h8300_pseudo_register_read): New function.
3623 (h8300_pseudo_register_write): Ditto.
3624 (h8300_dbg_reg_to_regnum): Ditto.
3625 (h8300s_dbg_reg_to_regnum): Ditto.
3626 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3627 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3628 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3629 set_gdbarch_print_insn architecture dependent.
3630 Call set_gdbarch_pseudo_register_read and
3631 set_gdbarch_pseudo_register_write.
3632 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3633
a59fe496
AC
36342003-06-16 Andrew Cagney <cagney@redhat.com>
3635
3636 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3637 * gdbarch.h, gdbarch.c: Re-generate.
3638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3639 * s390-tdep.c (s390_gdbarch_init): Update.
3640 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3641 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3642 * mips-tdep.c (mips_gdbarch_init): Update.
3643 * mcore-tdep.c (mcore_gdbarch_init): Update.
3644 * cris-tdep.c (cris_gdbarch_init): Update.
3645 * infcall.c (call_function_by_hand): Update.
3646 * ia64-tdep.c (ia64_push_arguments): Update comment.
3647 * frame.c (legacy_get_prev_frame): Do not assume
3648 SAVE_DUMMY_FRAME_TOS_P.
3649 * dummy-frame.c (find_dummy_frame): Update comment.
3650
6f4e5a41
AC
36512003-06-16 Andrew Cagney <cagney@redhat.com>
3652
3653 * regcache.c (do_cooked_read): Do not use register_valid_p.
3654
72fab697
TR
36552003-06-15 Theodore A. Roth <troth@openavr.org>
3656
3657 * avr-tdep.c (avr_register_type): Remove a blank line.
3658 (avr_scan_prologue): Correct some comments.
3659
e3d8b004
TR
36602003-06-15 Theodore A. Roth <troth@openavr.org>
3661
3662 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3663 prologue types.
8ffd9b1b 3664 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3665 option.
3666 Add code to scan -mcall-prologues for mega devices.
3667
866b76ea
TR
36682003-06-15 Theodore A. Roth <troth@openavr.org>
3669
3670 * avr-tdep.c (avr_register_byte): Delete function.
3671 (avr_register_raw_size): Delete function.
3672 (avr_register_virtual_size): Delete function.
3673 (avr_register_virtual_type): Delete function.
3674 (avr_register_type): New function.
3675 (avr_address_to_pointer): Remove unused code.
3676 (avr_read_fp): Need to read FP as two separate bytes due to change to
3677 avr_register_type() usage.
3678 (avr_gdbarch_init): Don't set deprecated_register_size.
3679 Don't set deprecated_register_bytes.
3680 Don't set deprecated_register_byte.
3681 Don't set deprecated_register_raw_size.
3682 Don't set deprecated_max_register_raw_size.
3683 Don't set deprecated_register_virtual_size.
3684 Don't set deprecated_max_register_virtual_size.
3685 Don't set deprecated_register_virtual_type.
3686 Set register_type method.
3687
3993f6b1
DJ
36882003-06-15 Daniel Jacobowitz <drow@mvista.com>
3689
3690 * Makefile.in (linux-nat.o): Add rule.
3691 * linux-nat.c: New file.
3692 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3693 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3694 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3695 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3696 * config/arm/linux.mh (NATDEPFILES): Likewise.
3697 * config/i386/linux.mh (NATDEPFILES): Likewise.
3698 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3699 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3700 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3701 * config/mips/linux.mh (NATDEPFILES): Likewise.
3702 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3703 * config/s390/s390.mh (NATDEPFILES): Likewise.
3704 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3705
786a90bb
MK
37062003-06-15 Mark Kettenis <kettenis@gnu.org>
3707
3708 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3709 replace out-of-date comment.
3710
3bd3f01e
AC
37112003-06-15 Andrew Cagney <cagney@redhat.com>
3712
3713 * rdi-share/host.h (Fail): Change to a varargs function.
3714 * remote-rdi.c (Fail): Update.
8ffd9b1b 3715
de5b9bb9
MK
37162003-06-15 Mark Kettenis <kettenis@gnu.org>
3717
3718 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3719 (i386_convert_register_p, i386_register_to_value,
3720 i386_register_from_value): Handle types longer than 8 bytes.
3721
d532c08f
MK
37222003-06-15 Mark Kettenis <kettenis@gnu.org>
3723
3724 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3725 Move floating-point code to new function in i387-tdep.c.
3726 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3727 New functions containing code moved here from i386-tdep.c.
3728 * i387-tdep.h: Add opaque declaration for `struct type'.
3729 (i387_register_to_value, i387_value_to_register): New prototypes.
3730 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3731 (x86_64_init_abi): Set convert_register_p, register_to_value and
3732 value_to_register here.
8ffd9b1b 3733
42c466d7
AC
37342003-06-14 Andrew Cagney <cagney@redhat.com>
3735
3736 * mips-tdep.c (mips_register_to_value): Make static.
3737 (mips_value_to_register): Make static.
3738 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3739 * ia64-tdep.c (ia64_register_raw_size): Make static.
3740 (ia64_register_virtual_size): Make static.
3741 (ia64_register_byte): Make static.
3742 * i387-tdep.c: Include "i387-tdep.h".
3743 (print_387_control_word): Delete function.
3744 (print_387_status_word): Delete function.
3745 (print_387_status_bits): Delete function.
3746 (print_387_control_bits): Delete function.
3747 * Makefile.in (i387-tdep.o): Update dependencies.
3748 * rdi-share/host.h (Fail): Declare.
3749 * remote-rdi.c (Fail): Update to match declaration.
3750
2a9cda49
AC
37512003-06-14 Andrew Cagney <cagney@redhat.com>
3752
3753 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3754 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3755 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3756 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3757 * README: Delete reference to remote-array.
3758 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3759 (remote-array.o): Delete target.
3760 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3761 * remote-array.c: Delete file.
3762
ff2e87ac
AC
37632003-06-14 Andrew Cagney <cagney@redhat.com>
3764 Mark Kettenis <kettenis@gnu.org>
3765
3766 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3767 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3768 parameter with "frame".
3769 * gdbarch.h, gdbarch.c: Re-generate.
3770 * frame.h (put_frame_register): Declare.
3771 * frame.c (put_frame_register): New function.
3772 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3773 (legacy_register_to_value): Rewrite, use "frame" to get the
3774 register value.
3775 (legacy_value_to_register): Rewrite, use "frame" to find the
3776 register's location before storing.
3777 * arch-utils.h (legacy_convert_register_p): Update.
3778 (legacy_register_to_value, legacy_value_to_register): Update.
3779 * findvar.c (value_from_register): Rewrite, eliminate use of
3780 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3781 "frame" to REGISTER_TO_VALUE.
3782 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3783 lval_reg_frame_relative + lval_register branch of the switch. Do
3784 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3785 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3786 I386_EDI_REGNUM): New defines.
3787 (i386_next_regnum, i386_convert_register_p,
3788 i386_register_to_value, i386_value_to_register): New functions.
3789 (i386_register_convertible, i386_register_convert_to_virtual,
3790 i386_convert_to_raw): Remove functions.
3791 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3792 value_to_register instead of register_convertible,
3793 register_convert_to_virtual and register_convert_to_raw.
3794 * mips-tdep.c (mips_convert_register_p): New function.
3795 (mips_value_to_register): Replace mips_register_convert_from_type.
3796 (mips_register_to_value): Replace mips_register_convert_to_type.
3797 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3798 register_to_value.
3799 * alpha-tdep.c (alpha_convert_register_p): Update.
3800 (alpha_value_to_register): Update, store the register.
3801 (alpha_register_to_value): Update, fetch the register.
3802
98be1e77
TR
38032003-06-14 Theodore A. Roth <troth@openavr.org>
3804
3805 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3806 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3807 Don't set deprecated_call_dummy_words.
3808 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3809 Don't set remote_translate_xfer_address.
3810 (avr_io_reg_read_command): Remove commented out debug printf.
3811 Wrap a long line.
3812
57bc6122
TR
38132003-06-14 Theodore A. Roth <troth@openavr.org>
3814
3815 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3816 causes gdb to seg fault.
3817
eb01fc62
DJ
38182003-06-14 Daniel Jacobowitz <drow@mvista.com>
3819
3820 * sparc-nat.c (fetch_inferior_registers): Correct
3821 a reference to "registers".
3822
3b3e6bee
DJ
38232003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3824
3825 * Makefile.in (exc_request_U_h): Define
3826 (exc_request_S_h): Likewise.
3827 (msg_reply_S_h): Likewise.
3828 (msg_U_h): Likewise.
3829 (notify_S_h): Likewise.
3830 (process_reply_S_h): Likewise.
3831 (gnu-nat.o): Depend on gdb_obstack_h
3832 * gnu-nat.c: Include "gdb_obstack.h".
3833
b8de8283
AC
38342003-06-13 Andrew Cagney <cagney@redhat.com>
3835
3836 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3837 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3838
f3be58bc
AC
38392003-06-13 Andrew Cagney <cagney@redhat.com>
3840
3841 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3842 when deprecated REGISTER macros can be deleted.
3843 * gdbarch.h, gdbarch.c: Re-generate.
3844
4c0122c8
JB
38452003-06-13 Jim Blandy <jimb@redhat.com>
3846
3847 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3848 Linux entry point symbols for _dl_debug_state, too.
3849
3e210248
AC
38502003-06-13 Andrew Cagney <cagney@redhat.com>
3851
3852 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3853 available, do not use the FP register, and always save the TOS.
3854 * dummy-frame.c (dummy_frame_this_id): Do not assert
3855 SAVE_DUMMY_FRAME_TOS.
3856 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3857 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3858 (i386_push_dummy_call): Add 8 to the returned SP.
3859 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3860 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3861 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3862 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3863 (x86_64_push_dummy_call): Return "sp + 16".
3864 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3865 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3866 save_dummy_frame_tos.
3867
0b65af49
JB
38682003-06-13 Jim Blandy <jimb@redhat.com>
3869
3870 * frv-tdep.c (frv_use_struct_convention): Delete static
3871 declaration for function deleted in my change of 2003-06-12.
3872
4ea2465e
TR
38732003-06-13 Theodore A. Roth <troth@openavr.org>
3874
3875 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3876 (avr_pointer_to_address): Shift code addrs left 1 bit.
3877 (avr_convert_from_func_ptr_addr): Delete function since operation is
3878 better handled by avr_address_to_pointer and avr_pointer_to_address.
3879 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3880
1581182a
MK
38812003-06-13 Mark Kettenis <kettenis@gnu.org>
3882
3883 From Kelley Cook <kelleycook@wideopenwest.com>:
3884 * configure.host: Accept i[34567]86 variants.
3885 * configure.tgt: Likewise.
3886 * nlm/configure.in: Likewise.
3887 * nlm/configure: Regenerated.
3888
7aa1783e
RE
38892003-06-13 Richard Earnshaw <rearnsha@arm.com>
3890
3891 * arm-tdep.c (solib-svr4.h): Dont' include it.
3892 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3893 * arm-linux-tdep.c: ... here. Make static.
3894 (arm_linux_init_abi): Register it.
3895 (solib-svr4.h): Include it.
3896 * Makefile.in: Update dependencies.
3897 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3898 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3899
0261a0d0
CV
39002003-06-13 Corinna Vinschen <vinschen@redhat.com>
3901
3902 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3903 indicate registers used for return values.
3904 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3905 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3906 members.
3907 (h8300_init_extra_frame_info): Ditto.
3908 (h8300_frame_locals_address): Removed.
3909 (h8300_frame_args_address): Removed.
3910 (h8300_extract_return_value): Use new regcache structure. Only care
3911 for 16 bit CPUs.
3912 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3913 (h8300_store_return_value): Use new regcache structure. Only care
3914 for 16 bit CPUs.
3915 (h8300h_store_return_value): Same function for 32 bit CPUs.
3916 (h8300_store_struct_return): Removed.
3917 (h8300_extract_struct_value_address): Use new regcache structure.
3918 (h8300h_extract_struct_value_address): Removed.
3919 (h8300_push_dummy_code): New function.
3920 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3921 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3922 set_gdbarch_store_return_value architecture dependent.
3923 Call set_gdbarch_push_dummy_code and
3924 set_gdbarch_extract_struct_value_address.
3925 Remove calls to set_gdbarch_frame_args_address,
3926 set_gdbarch_frame_locals_address,
3927 set_gdbarch_deprecated_store_struct_return,
3928 set_gdbarch_deprecated_extract_return_value,
3929 set_gdbarch_deprecated_extract_struct_value_address,
3930 set_gdbarch_deprecated_call_dummy_words and
3931 set_gdbarch_deprecated_sizeof_call_dummy_words.
3932
055c394a
CV
39332003-06-13 Corinna Vinschen <vinschen@redhat.com>
3934
3935 * h8300-tdep.c (h8300_register_byte): Remove.
3936 (h8300h_register_byte): Remove.
3937 (h8300_register_virtual_type): Remove. Substitute by...
3938 (h8300_register_type): New function.
3939 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3940 (h8300h_extract_struct_value_address): Ditto.
3941 (h8300_gdbarch_init): Drop calls to
3942 set_gdbarch_deprecated_register_byte and
3943 set_gdbarch_deprecated_register_virtual_type.
3944 Add call to set_gdbarch_register_type.
3945
9c04cab7
AC
39462003-06-13 Andrew Cagney <cagney@redhat.com>
3947
3948 * gdbarch.sh: Update comments on registers.
3949 (deprecated_register_byte): Rename register_byte.
3950 (deprecated_register_raw_size): Rename register_raw_size.
3951 (deprecated_register_virtual_size): Rename register_virtual_size.
3952 (deprecated_register_virtual_type): Rename register_virtual_type.
3953 * gdbarch.h, gdbarch.c: Re-generate.
3954 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3955 * vax-tdep.c (vax_gdbarch_init): Update.
3956 * v850-tdep.c (v850_gdbarch_init): Update.
3957 * sparc-tdep.c (sparc_gdbarch_init): Update.
3958 * sh-tdep.c (sh_gdbarch_init): Update.
3959 * s390-tdep.c (s390_gdbarch_init): Update.
3960 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3961 * ns32k-tdep.c: Update.
3962 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3963 * mips-tdep.c (mips_gdbarch_init): Update.
3964 * mcore-tdep.c (mcore_gdbarch_init): Update.
3965 * m68k-tdep.c (m68k_gdbarch_init): Update.
3966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3967 * ia64-tdep.c (ia64_gdbarch_init): Update.
3968 * hppa-tdep.c (hppa_gdbarch_init): Update.
3969 * h8300-tdep.c (h8300_gdbarch_init): Update.
3970 * frv-tdep.c (frv_gdbarch_init): Update.
3971 * cris-tdep.c (cris_gdbarch_init): Update.
3972 * avr-tdep.c (avr_gdbarch_init): Update.
3973 * alpha-tdep.c (alpha_gdbarch_init): Update.
3974 * arm-tdep.c (arm_gdbarch_init): Update.
3975
b060cbea
AC
39762003-06-13 Andrew Cagney <cagney@redhat.com>
3977
3978 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3979 mips_o32_use_struct_convention with always_use_struct_convention.
3980
0fc9922a
DC
39812003-06-12 David Carlton <carlton@kealia.com>
3982
3983 * cp-namespace.c (cp_set_block_scope): Comment out
3984 processing_has_namespace_info branch.
3985
1fd35568
JB
39862003-06-12 Jim Blandy <jimb@redhat.com>
3987
f470a70a
JB
3988 Recognize and skip 64-bit PowerPC Linux linkage functions.
3989 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3990 insn_pattern, insns_match_pattern, d_field, ds_field): New
3991 functions, macros, and types for working with PPC instructions.
3992 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3993 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3994 ppc64_skip_trampoline_code): New functions, variables, and macros
3995 for recognizing and skipping linkage functions.
3996 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3997 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3998
49ff75ad
JB
3999 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4000 register offsets for both the 32- and 64-bit interfaces.
4001
bd918c83
JB
4002 Actually finish the job started by my change of 2003-05-29.
4003 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4004 other #definition of this.
4005 (ppc_linux_skip_trampoline_code): Remove declaration.
4006 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4007 static.
4008 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4009 method for GDBARCH.
4010
4011 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4012 'long' on ppc64-*-linux*.
4013
f8c59253
JB
4014 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4015 isn't #defined, assume the register doesn't exist: act as if
4016 tdep->ppc_mq_regnum were -1.
4017
8fbb30b1
JB
4018 * configure.host, configure.tgt: Add entries for
4019 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4020 powerpc/linux.mt.
4021 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4022 New files.
4023
1fd35568
JB
4024 * arch-utils.c (always_use_struct_convention): New function.
4025 * arch-utils.h (always_use_struct_convention): New prototype.
4026 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4027 (alpha_gdbarch_init): Register always_use_struct_convention,
4028 instead of alpha_use_struct_convention.
4029 * cris-tdep.c (cris_use_struct_convention): Delete.
4030 (cris_gdbarch_init): Register always_use_struct_convention,
4031 instead of cris_use_struct_convention.
4032 * frv-tdep.c (frv_use_struct_convention): Delete.
4033 (frv_gdbarch_init): Register always_use_struct_convention,
4034 instead of frv_use_struct_convention.
4035 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4036 (h8300_gdbarch_init): Register always_use_struct_convention,
4037 instead of h8300_use_struct_convention.
e3305dd9 4038 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4039 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4040 instead of mips_o32_use_struct_convention.
4041
e14e6e9c
AC
40422003-06-12 Andrew Cagney <cagney@redhat.com>
4043
4044 * wince.c: Include "mips-tdep.h".
4045 * mips-tdep.h (mips_next_pc): Declare.
4046 * mcore-tdep.c: Make more local functions static.
4047 * Makefile.in (wince.o): Update dependencies.
4048
2335f48e
DC
40492003-06-12 David Carlton <carlton@kealia.com>
4050
4051 * symtab.c (lookup_symbol_aux_minsyms): Replace
4052 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4053 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4054 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4055 SYMBOL_NATURAL_NAME.
4056
f70a7d61
AS
40572003-06-12 Andreas Schwab <schwab@suse.de>
4058
4059 * Makefile.in (tuiDisassem.o): Update dependencies.
4060
b6429628
DC
40612003-06-12 David Carlton <carlton@bactrian.org>
4062
4063 * symtab.h: Delete declaration of make_symbol_overload_list.
4064 Add declaration of lookup_partial_symbol.
4065 * symtab.c (remove_params): Move to cp-support.c.
4066 (overload_list_add_symbol, make_symbol_overload_list)
4067 (sym_return_val_size, sym_return_val_index): Ditto.
4068 (lookup_partial_symbol): Make extern.
4069 * cp-support.h: Add declaration of make_symbol_overload_list.
4070 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4071 symtab.h, and block.h.
4072 (remove_params): Move here from symtab.c.
4073 (overload_list_add_symbol, make_symbol_overload_list)
4074 (sym_return_val_size, sym_return_val_index): Ditto.
4075 * valops.c: Include cp-support.h.
4076 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4077 frame_h, and block_h.
4078 (valops.o): Depend on cp_support_h.
4079
084edea5
CV
40802003-06-12 Corinna Vinschen <vinschen@redhat.com>
4081
4082 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4083 substitute by NUM_REGS throughout.
4084 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4085 (h8300s_register_name): New function for H8S registers.
4086 (h8300sx_register_name): Ditto for H8SX registers.
4087 (h8300_print_register): Revise register printing, avoid depending
4088 on 32 bit long.
0261a0d0 4089 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4090 (h8300h_register_byte): New function for any other architecture.
4091 (h8300_register_raw_size): Remove.
4092 (h8300_register_virtual_type): Revise to return actually useful
4093 type.
4094 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4095 (h8300h_extract_struct_value_address): New function for any other
4096 architecture.
4097 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4098 set_gdbarch_register_name, set_gdbarch_register_byte,
4099 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4100 Remove calls to set_gdbarch_deprecated_register_size,
4101 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4102 set_gdbarch_deprecated_max_register_raw_size,
4103 set_gdbarch_register_virtual_size and
4104 set_gdbarch_deprecated_max_register_virtual_size entirely.
4105 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4106 set_gdbarch_long_double_bit.
4107
06194148
JJ
41082003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4109
8ffd9b1b
AJ
4110 * doublest.c (convert_doublest_to_floatformat): When dealing
4111 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4112 processing a full 32 bits of mantissa.
4113
de4f826b
DC
41142003-06-11 David Carlton <carlton@bactrian.org>
4115
4116 * dictionary.h: New.
4117 * dictionary.c: New.
4118 * block.h: Add opaque declaration for struct dictionary.
4119 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4120 'sym' members.
4121 (BLOCK_DICT): New macro.
4122 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4123 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4124 BLOCK_SHOULD_SORT.
4125 (ALL_BLOCK_SYMBOLS): Update definition.
4126 * Makefile.in (SFILES): Add dictionary.c.
4127 (dictionary_h): New.
4128 (COMMON_OBS): Add dictionary.o.
4129 (dictionary.o): New.
4130 (ada-lang.o): Depend on dictionary_h.
4131 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4132 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4133 (mi-cmd-stack.o): Ditto.
4134 (gdbtk-cmds.o): Update dependencies.
4135 (gdbtk-stack.o): Ditto.
4136 * ada-lang.c: Include dictionary.h.
4137 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4138 (fill_in_ada_prototype, debug_print_block): Ditto.
4139 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4140 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4141 'is_sorted'.
4142 * mdebugread.c: Include dictionary.h.
4143 (struct parse_stack): Delete 'maxsyms' member.
4144 (parse_symbol): Update calls to new_block. Delete calls to
4145 shrink_block. Use dictionary methods.
4146 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4147 Update calls to new_symtab. Don't maintain maxsyms data.
4148 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4149 (add_symbol): Just call dict_add_symbol.
4150 (new_symtab): Delete 'maxsyms' argument.
4151 (new_symtab): Update calls to new_block.
4152 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4153 (shrink_block): Delete function.
4154 (fixup_sigtramp): Update call to new_block. Add symbol via
4155 dict_add_symbol.
4156 * jv-lang.c: Include dictionary.h.
4157 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4158 appropriately. Set class_symtab->free_func. Make sure the
4159 blockvector is big enough to hold two blocks.
4160 (add_class_symtab_symbol): Use dictionary methods.
4161 (free_class_block): New function.
4162 (type_from_class): Replace explicit iteration by
4163 ALL_BLOCK_SYMBOLS.
4164 * symtab.h (struct symtab): Replace 'free_ptr' method by
4165 'free_func'.
4166 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4167 sort_symtab_syms.
4168 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4169 sort_symtab_syms.
4170 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4171 Include dictionary.h.
4172 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4173 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4174 sort_symtab_syms.
4175 * objfiles.c: Include dictionary.h.
4176 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4177 * buildsym.c: Include dictionary.h.
4178 (finish_block): Use dictionary methods.
4179 (end_symtab): Set free_func to NULL, not free_ptr.
4180 * tracepoint.c: Include dictionary.h.
4181 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4182 (scope_info): Ditto.
4183 * stack.c: Include dictionary.h.
4184 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4185 (print_block_frame_labels, print_frame_arg_vars)
4186 (print_frame_args): Ditto.
4187 * symmisc.c (free_symtab_block): Use dictionary methods.
4188 (dump_symtab): Ditto.
4189 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4190 Include dictionary.h.
4191 * symfile.h: Delete declarations of sort_block_syms,
4192 sort_symtab_syms.
4193 * symfile.c (sort_block_syms): Delete.
4194 (sort_symtab_syms): Delete.
4195 * symtab.c: Include dictionary.h.
4196 (lookup_block_symbol): Use dictionary iterators.
4197 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4198 (search_symbols, make_symbol_completion_list): Ditto.
4199 (make_symbol_overload_list): Ditto.
4200 * valops.c (value_of_local): Use dict_empty.
4201 Include dictionary.h.
4202
a31f978c
JB
42032003-06-11 J. Brobecker <brobecker@gnat.com>
4204
4205 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4206
526e70c0
DC
42072003-06-11 David Carlton <carlton@bactrian.org>
4208
4209 * block.h (BLOCK_SHOULD_SORT): Delete.
4210 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4211 blocks.
4212 * ada-lang.c (ada_add_block_symbols): Ditto.
4213 * symfile.c (sort_block_syms): Delete.
4214 (sort_symtab_syms): Ditto.
4215 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4216 declarations.
4217 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4218 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4219 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4220 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4221 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4222 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4223 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4224
33c08150
JJ
42252003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4226
8ffd9b1b 4227 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4228 bits to 128.
4229
781a750d
AC
42302003-06-11 Andrew Cagney <cagney@redhat.com>
4231
4232 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4233 REGISTER_CONVERTIBLE.
4234 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4235 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4236 * gdbarch.h, gdbarch.c: Re-generate.
4237 * arch-utils.h (deprecated_register_convertible_not): Rename
4238 generic_register_convertible_not.
4239 * arch-utils.c (deprecated_register_convertible_not): Rename
4240 generic_register_convertible.
4241 (legacy_convert_register_p, legacy_register_to_value): Update.
4242 * sh-tdep.c (sh64_push_arguments): Update.
4243 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4244 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4245 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4246 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4247 * arch-utils.c (legacy_value_to_register): Update.
4248 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4249 (rs6000_register_convert_to_raw): Make parameter "from" const.
4250 * mips-tdep.c (mips_gdbarch_init): Update.
4251 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4252 * infcmd.c (default_print_registers_info): Update.
4253 * ia64-tdep.c (ia64_gdbarch_init): Update.
4254 (ia64_register_convert_to_raw): Make parameter "from" const.
4255 * i386-tdep.c (i386_gdbarch_init): Update.
4256 (i386_register_convert_to_raw): Update.
4257
cd90e54f
AC
42582003-06-11 Andrew Cagney <cagney@redhat.com>
4259
4260 * remote-fileio.c: Include "remote-fileio.h".
4261 * Makefile.in (remote-fileio.o): Update dependencies.
4262 (remote_fileio_h): Fix typo.
4263
a78f21af
AC
42642003-06-11 Andrew Cagney <cagney@redhat.com>
4265
4266 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4267 (xstormy16_save_dummy_frame_tos): Make static.
4268 (_initialize_xstormy16_tdep): Add declaration.
4269 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4270 * v850-tdep.c: Make local functions static.
4271 (_initialize_v850_tdep): Add declaration.
4272 * sparc-tdep.c: Make local functions static.
4273 (_initialize_sparc_tdep): Add declaration.
4274 * sh-tdep.c: Make local functions static.
4275 (_initialize_sh_tdep): Add declaration.
4276 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4277 * s390-tdep.c: Make local functions static.
4278 (_initialize_s390_tdep): Add declaration.
4279 * dbxread.c (find_stab_function_addr): Make static.
4280 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4281 * ocd.c (_initialize_remote_ocd): Add declaration.
4282 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4283 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4284 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4285 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4286 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4287 * remote-array.c (_initialize_array): Add declaration.
4288 (_initialize_remote_monitors): Add declaration.
4289 * remote-mips.c: Make local functions static.
4290 (_initialize_remote_mips): Add declaration.
4291 * mcore-tdep.c: Make all local functions static.
4292 (_initialize_mcore_tdep): Add declaration.
4293 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4294 * abug-rom.c (_initialize_abug_rom): Add declaration.
4295 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4296 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4297 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4298 * remote-est.c (_initialize_est): Add declaration.
4299 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4300 (m68hc11_call_dummy_address): Make static.
4301 * ia64-tdep.c: Make local functions static.
4302 (_initialize_ia64_tdep): Add declaration.
4303 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4304 * monitor.c (monitor_wait_filter): Make static.
4305 (_initialize_remote_monitors): Add declaration.
4306 * remote-hms.c (_initialize_remote_hms): Add declaration.
4307 * remote-e7000.c (fetch_regs_from_dump): Make static.
4308 (expect_n): Make static.
4309 (_initialize_remote_e7000): Add declaration.
4310 * ser-e7kpc.c: Always include "defs.h".
4311 (_initialize_ser_e7000pc): Add declaration.
4312 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4313 * cris-tdep.c: Make all but one function static.
4314 (_initialize_cris_tdep): Add declaration.
4315 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4316 * solib.c (update_solib_list): Make static.
4317 (_initialize_solib): Add declaration.
4318 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4319 (_initialize_avr_tdep): Add declaration.
4320 * remote-rdi.c (voiddummy): Make static.
4321 (_initialize_remote_rdi): Add declaration.
4322 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4323 * remote-rdp.c (send_rdp): Make static.
4324 (_initialize_remote_rdp): Add declaration.
4325 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4326
cbcdb1f5
CV
43272003-06-11 Corinna Vinschen <vinschen@redhat.com>
4328
4329 * remote-fileio.c: Make ari happy.
4330
a191ea8d
JB
43312003-06-10 J. Brobecker <brobecker@gnat.com>
4332
4333 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4334 fetching the trailing bytes of the buffer we are about to write.
4335
0ef75e11
AC
43362003-06-10 Andrew Cagney <cagney@redhat.com>
4337
4338 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4339 * Makefile.in (remote-fileio.o): Update dependencies.
4340 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4341 include <setjmp.h>, or <sys/types.h> conditional on USG.
4342 (remote_fio_jmp_buf): Delete global variable.
4343
449092f6 43442003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4345 Martin M. Hunt <hunt@redhat.com>
449092f6 4346
559fa028
AC
4347 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4348 (SFILES): Add remote-fileio.c.
4349 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4350 dependencies for building remote.o.
449092f6
CV
4351 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4352 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4353 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4354 static storage class.
4355 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4356 'F' packet.
4357 (_initialize_remote): Call initialize_remote_fileio().
4358 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4359 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4360 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4361 (captured_main): Initialize new ui_files.
4362 * ui-file.c: Add read and fgets input functions.
4363 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4364 (null_file_read): New function.
4365 (ui_file_read): New function.
4366 (set_ui_file_read): New function.
4367 (stdio_file_read): New function.
4368 * ui-file.h: New type ui_file_read_ftype.
4369 (set_ui_file_read): Declare.
4370 (ui_file_read): Declare.
4371
248de703
AC
43722003-06-09 Andrew Cagney <cagney@redhat.com>
4373
4374 * frame.h (deprecated_unwind_get_saved_register): Rename
4375 generic_unwind_get_saved_register, update comments.
4376 * mips-tdep.c (mips_get_saved_register): Update.
4377 * frame.c (deprecated_unwind_get_saved_register): Update.
4378
0ed8aa57
AC
43792003-06-09 Andrew Cagney <cagney@redhat.com>
4380
4381 * vax-tdep.c (vax_frame_locals_address): Delete function.
4382 (vax_gdbarch_init): Do not set frame_locals_address.
4383 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4384 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4385 * s390-tdep.c (s390_frame_args_address): Delete function.
4386 (s390_gdbarch_init): Do not set frame_args_address or
4387 frame_locals_address.
4388 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4389 (ns32k_gdbarch_init): Do not set frame_locals_address.
4390 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4391 (hppa_frame_locals_address): Delete function.
4392 (hppa_gdbarch_init): Do not set frame_args_address, or
4393 frame_locals_address.
4394 * arm-tdep.c (arm_frame_args_address): Delete.
4395 (arm_frame_locals_address): Delete.
4396 (arm_gdbarch_init): Do not set frame_args_address, or
4397 frame_locals_address.
4398
983a287a
AC
43992003-06-09 Andrew Cagney <cagney@redhat.com>
4400
4401 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4402 * gdbarch.h, gdbarch.c: Re-generate.
4403 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4404 * arch-utils.c (frame_num_args_unknown): Delete function.
4405 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4406 (frame_info): Use FRAME_NUM_ARGS_P.
4407 * arm-tdep.c (arm_frame_num_args): Delete function.
4408 (arm_gdbarch_init): Do not set frame_num_args.
4409 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4410 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4411 (hppa_gdbarch_init): Do not set frame_num_args.
4412 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4413 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4414 frame_num_args to default frame_num_args_unknown.
4415 * v850-tdep.c (v850_gdbarch_init): Ditto.
4416 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4417 * sh-tdep.c (sh_gdbarch_init): Ditto.
4418 * s390-tdep.c (s390_gdbarch_init): Ditto.
4419 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4420 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4421 * mips-tdep.c (mips_gdbarch_init): Ditto.
4422 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4423 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4424 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4425 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4426 * i386-tdep.c (i386_gdbarch_init): Ditto.
4427 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4428 * frv-tdep.c (frv_gdbarch_init): Ditto.
4429 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4430 * cris-tdep.c (cris_gdbarch_init): Ditto.
4431 * avr-tdep.c (avr_gdbarch_init): Ditto.
4432 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4433
8d3b0994
AC
44342003-06-09 Andrew Cagney <cagney@redhat.com>
4435
4436 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4437 (print_frame_args): Moved to "stack.c".
4438 * stack.c: Include "gdb_assert.h".
4439 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4440 (print_frame_args): Moved from "printcmd.c".
4441 * frame.h (print_frame_args): Delete declaration.
4442 * Makefile.in (stack.o): Update dependencies.
4443
25e3a86b
AC
44442003-06-08 Andrew Cagney <cagney@redhat.com>
4445
4446 * frame.c (get_prev_frame): Remove reference to
4447 frame_args_address_correct in comments.
4448 * frame-base.c (default_frame_args_address): Delete code
4449 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4450 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4451 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4452 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4453 (vax_frame_args_address_correct): Delete declaration.
4454
a9e5fdc2
AC
44552003-06-08 Andrew Cagney <cagney@redhat.com>
4456
4457 * gdbarch.sh (UNWIND_SP): Add.
4458 * gdbarch.h, gdbarch.c: Re-generate.
4459 * frame.c (frame_sp_unwind): New function.
4460 (get_frame_sp): New function.
4461 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4462 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4463 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4464 value.
4465 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4466 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4467
8983bd83
AC
44682003-06-08 Andrew Cagney <cagney@redhat.com>
4469
7fec2c59
AC
4470 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4471 REMOTE_BREAKPOINT.
4472 * remote.c: Update.
4473 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4474 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4475 * config/m68k/tm-sun3.h: Update.
4476 * config/m68k/tm-m68klynx.h: Update.
4477 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4478
8983bd83
AC
4479 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4480 trad_frame". Update comments.
4481 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4482 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4483 (trad_frame_register_value, trad_frame_prev_register): Update.
4484
b9362cc7
AC
44852003-06-08 Andrew Cagney <cagney@redhat.com>
4486
4487 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4488 from GCC's acinclude.m4.
4489 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4490 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4491 * main.c (error_init): Delete declaration.
4492 * defs.h (error_init): Declare.
4493 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4494 (rs6000_convert_from_func_ptr_addr): Make static.
4495 (_initialize_rs6000_tdep): Add declaration.
4496 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4497 (show_commands, set_verbose, show_history): Delete declaration.
4498 * top.h (set_verbose): Add declaration.
4499 (show_history, set_history, show_commands): Add declaration.
4500 (do_restore_instream_cleanup): Add declaration.
4501 * objc-lang.c (specialcmp): Make static.
4502 (print_object_command): Make static.
4503 (find_objc_msgsend): Make static.
4504 (find_objc_msgcall_submethod_helper): Make static.
4505 (find_objc_msgcall_submethod): Make static.
4506 (_initialize_objc_language): Add declaration.
4507 (find_implementation_from_class): Make static.
4508 (find_implementation): Make static.
4509 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4510 * objc-lang.h (lookup_struct_typedef): Add declaration.
4511 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4512 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4513 (do_restore_user_call_depth): Make static.
4514 (do_restore_instream_cleanup): Delete declaration.
4515 (dont_repeat): Delete declaration.
4516 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4517 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4518 * reggroups.c (_initialize_reggroup): Add declaration.
4519 * cp-support.c (_initialize_cp_support): Add declaration.
4520 * cp-abi.c (_initialize_cp_abi): Add declaration.
4521 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4522 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4523 (_initialize_gnu_v3_abi): Add declaration.
4524 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4525 (_initialize_gnu_v2_abi): Add declaration.
4526 * frame-base.c (_initialize_frame_base): Add declaration.
4527 * doublest.c (floatformat_from_length): Make static.
4528 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4529 * frame.c (create_sentinel_frame): Make static.
4530 (_initialize_frame): Add declaration.
4531 * top.c (do_catch_errors): Make static.
4532 (gdb_rl_operate_and_get_next_completion): Make static.
4533 * typeprint.c: Include "typeprint.h".
4534 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4535 (sentinel_frame_this_id): Make static.
4536 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4537 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4538 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4539 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4540 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4541 * maint.c (maintenance_print_architecture): Make static.
4542 * signals/signals.c (_initialize_signals): Add declaration.
4543 * std-regs.c (_initialize_frame_reg): Add declaration.
4544 * jv-exp.y (push_variable): ISO C definition.
4545 (push_qualified_expression_name): Ditto.
4546 * memattr.c (_initialize_mem): Add declaration.
4547 * remote.c (remote_check_watch_resources): Make static.
4548 (remote_stopped_by_watchpoint): Make static.
4549 (remote_stopped_data_address): Make static.
4550 * d10v-tdep.c (nr_dmap_regs): Make static.
4551 (a0_regnum): Make static.
4552 (d10v_frame_unwind_cache): Make static.
4553 (d10v_frame_p): Make static.
4554 * osabi.c (show_osabi): Make static.
4555 (_initialize_gdb_osabi): Add extern declaration.
4556 * gdbtypes.c (make_qualified_type): Make static.
4557 (safe_parse_type): Make static.
4558 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4559 * macrotab.c (macro_bcache_free): Make static.
4560 * interps.c (interp_set_quiet): Make static.
4561 (interpreter_exec_cmd): Make static.
4562 * stack.h (select_frame_command): New file.
4563 * stack.c: Include "stack.h".
4564 (select_frame_command_wrapper): Delete function.
4565 (select_frame_command): Make global.
4566 * infcall.c: Include "infcall.h".
4567 * linespec.c: Include "linespec.h".
4568 * symfile.c (sections_overlap): Make static.
4569 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4570 * charset.c (_initialize_charset): Add missing prototype.
4571 * regcache.c (init_legacy_regcache_descr): Make static.
4572 (do_regcache_xfree): Make static.
4573 (regcache_xfer_part): Make static.
4574 (_initialize_regcache): Add missing prototype.
4575 * breakpoint.c (parse_breakpoint_sals): Make static.
4576 (breakpoint_sals_to_pc): Make static.
4577 * interps.h (clear_interpreter_hooks): ISO C declaration.
4578 * Makefile.in (stack_h): Define.
4579 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4580 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4581
a0f267c7
AC
45822003-06-08 Andrew Cagney <cagney@redhat.com>
4583
4584 * Makefile.in (d10v-tdep.o): Update dependencies.
4585 (SFILES): Add trad-frame.c.
4586 (trad_frame_h): Define.
4587 (COMMON_OBS): Add trad-frame.o.
4588 (trad-frame.o): Specify dependencies.
4589 * d10v-tdep.c: Include "trad-frame.h".
4590 (saved_regs_unwinder): Delete function.
4591 (d10v_frame_prev_register): Use trad_frame_prev_register.
4592 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4593 trad_frame", delete "regs" and "prev_sp".
4594 (prologue_find_regs): Use trad-frame.
4595 * trad-frame.h, trad-frame.c: New files.
4596
4538b4f4
MK
45972003-06-08 Mark Kettenis <kettenis@gnu.org>
4598
4599 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4600
a0273b2f
AF
46012003-06-07 Adam Fedor <fedor@gnu.org>
4602
4603 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4604 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4605 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4606 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4607 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4608 Use it.
4609
3a6c3343
AC
46102003-06-07 Andrew Cagney <cagney@redhat.com>
4611
4612 * symfile.h: Re-indent, clean up comments.
4613
b46e02f6
AC
46142003-06-07 Andrew Cagney <cagney@redhat.com>
4615
4616 * inferior.h (deprecated_write_sp): Replace
4617 generic_target_write_sp.
4618 * regcache.c (deprecated_write_sp): Replace
4619 generic_target_write_sp.
4620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4621 * vax-tdep.c (vax_gdbarch_init): Update.
4622 * v850-tdep.c (v850_gdbarch_init): Update.
4623 * sparc-tdep.c (sparc_gdbarch_init): Update.
4624 * sh-tdep.c (sh_gdbarch_init): Update.
4625 * s390-tdep.c (s390_gdbarch_init): Update.
4626 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4627 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4628 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4629 * mcore-tdep.c (mcore_gdbarch_init): Update.
4630 * m68k-tdep.c (m68k_gdbarch_init): Update.
4631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4632 * ia64-tdep.c (ia64_gdbarch_init): Update.
4633 * h8300-tdep.c (h8300_gdbarch_init): Update.
4634 * frv-tdep.c (frv_gdbarch_init): Update.
4635 * cris-tdep.c (cris_gdbarch_init): Update.
4636 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4637
a42e117c
AC
46382003-06-07 Andrew Cagney <cagney@redhat.com>
4639
4640 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4641 Assert that PC_REGNUM is valid.
4642 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4643
bd1ce8ba
AC
46442003-06-07 Andrew Cagney <cagney@redhat.com>
4645
4646 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4647 * gdbarch.h, gdbarch.c: Regenerate.
4648 * mn10300-tdep.c: Include "gdb_assert.h".
4649 (mn10300_read_fp): New function.
4650 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4651 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4652 * ia64-tdep.c: Include "gdb_assert.h".
4653 (ia64_read_fp): New function.
4654 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4655 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4656 * regcache.c (generic_target_read_sp): Delete function.
4657 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4658 * inferior.h (generic_target_read_sp): Delete declaration.
4659 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4660 generic_target_read_sp.
4661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4662 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4663 * sh-tdep.c (sh_gdbarch_init): Ditto.
4664 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4665 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4666
ec5cbaec
AC
46672003-06-07 Andrew Cagney <cagney@redhat.com>
4668
4669 * gdbarch.sh: Comment each field of startup_gdbarch.
4670 * gdbarch.h, gdbarch.c: Re-generate.
4671
cde9ea48
AC
46722003-06-07 Andrew Cagney <cagney@redhat.com>
4673
4674 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4675 * gdbarch.h, gdbarch.c: Re-generate.
4676 * regcache.c: Update comments on read_pc et.al.
4677 (generic_target_read_pc): Delete function.
4678 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4679 * inferior.h (generic_target_read_pc): Delete declaration.
4680 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4681 generic_target_read_pc.
4682 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4683 * sh-tdep.c (sh_gdbarch_init): Ditto.
4684 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4686
9a90a780
AC
46872003-06-07 Andrew Cagney <cagney@redhat.com>
4688
4689 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4690 "index" with "special_local_sect". Use strcmp instead of STREQ.
4691 Append period to coments.
4692
a39a16c4
MM
46932003-06-06 Mark Mitchell <mark@codesourcery.com>
4694
4695 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4696 (elfstab_offset_sections): Likewise.
4697 * gdb-stabs.h (stab_section_info): Likewise.
4698 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4699 * objfiles.c (objfile_relocate): Likewise.
4700 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4701 * remote.c (get_offsets): Likewise.
4702 (remote_cisco_objfile_relocate): Likewise.
4703 * somread.c (som_symfile_offsets): Likewise.
4704 * symfile.c (alloc_section_addr_info): New function.
4705 (build_section_addr_info_from_section_tab): Use it.
4706 (free_section_addr_info): Adjust.
4707 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4708 (syms_from_objfile): Allocate local_addr dynamically.
4709 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4710 dynamically.
4711 (add_symbol_file_command): Allocate sect_opts dynamically.
4712 (reread_symbols): Avoid use of SECT_OFF_MAX.
4713 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4714 (alloc_section_addr_info): Declare it.
4715 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4716 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4717 dynamically.
4718 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4719
20c6c2f8
AC
47202003-06-06 Andrew Cagney <cagney@redhat.com>
4721
4722 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4723 (d10v_frame_unwind_cache): Do not set "return_pc".
4724
884a26c8
MS
47252003-06-06 Michael Snyder <msnyder@redhat.com>
4726
4727 * h8300-tdep.c: Make tidy (long lines).
4728
088ce440
ML
47292003-06-06 Michal Ludvig <mludvig@suse.cz>
4730
8ffd9b1b 4731 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4732 to regcache_collect().
4733
7d773d96
JB
47342003-06-05 J. Brobecker <brobecker@gnat.com>
4735
4736 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4737 pc_in_sigtramp multiarch method.
4738 (hppa_hpux_som_init_abi): Use it.
4739 (hppa_hpux_elf_init_abi): Likewise.
4740 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4741 macro has been multiarched.
4742 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4743 macro here, as hppa64 isn't multiarched yet.
4744
1df6926e
AC
47452003-06-05 Andrew Cagney <cagney@redhat.com>
4746
4747 * Makefile.in (value_h): Add $(frame_h).
4748 * value.h: Include "frame.h".
4749 (struct value): Replace "frame_addr" with "frame_id".
4750 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4751 * values.c (allocate_value): Use VALUE_FRAME_ID.
4752 (value_copy): Use VALUE_FRAME_ID.
4753 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4754 * valops.c (value_assign): Update. Use frame_find_by_id.
4755
6b53acc6
ML
47562003-06-05 Michal Ludvig <mludvig@suse.cz>
4757
4758 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4759 in each pass.
4760
4d9850d3
JJ
47612003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4762
4763 * thread-db.c (check_event): For create/death event breakpoints,
4764 loop through all messages to ensure that we read the message
4765 corresponding to the breakpoint we are at.
4766
8efca6ba
MS
47672003-06-04 Michael Snyder <msnyder@redhat.com>
4768
4769 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4770
0912c7f2
MK
47712003-06-04 Mark Kettenis <kettenis@gnu.org>
4772
4773 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4774 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4775 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4776 when handling .eh_frame sections.
4777
4e370325
JB
47782003-06-04 J. Brobecker <brobecker@gnat.com>
4779
4780 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4781 prepare_to_proceed procedure instead of the hppa-specific one.
4782 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4783
b757528f 47842003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4785
b757528f
JJ
4786 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4787 * config.in: Regenerated.
4788 * configure.in: Add test for syscall function and check for
4789 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4790 * configure: Regenerated.
4791 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4792 <sys/syscall.h>.
4793 (kill_lwp): New function that uses tkill syscall or
4794 uses kill, depending on whether threading model is nptl or not.
4795 All callers of kill() changed to use kill_lwp().
4796 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4797 see if all threads have already exited in the nptl model.
4798 (stop_and_resume_callback): New callback function used by the
4799 lin_lwp_wait thread exit handling code.
4800 (stop_wait_callback): Check for threads already having exited and
4801 delete such threads fromt the lwp list when discovered.
4802 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4803
b757528f
JJ
4804 Roland McGrath <roland@redhat.com>
4805 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4806 nptl libthread_db.
4807
087779b1
RH
48082003-06-03 Richard Henderson <rth@redhat.com>
4809
b21fd293
RH
4810 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4811 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4812 (alpha_sigtramp_frame_prev_register): Likewise.
4813 (alpha_heuristic_frame_prev_register): Likewise.
4814 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4815
8ffd9b1b 4816 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4817 alpha-specific register id names.
4818 (alpha_mdebug_frame_unwind_cache): Likewise.
4819 (alpha_mdebug_frame_prev_register): Likewise.
4820
baa490c4
RH
48212003-06-03 Richard Henderson <rth@redhat.com>
4822
4823 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4824 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4825 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4826 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4827 unwind routines.
4828 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4829 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4830 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4831
4832 * alpha-linux-tdep.c: Remove unnecessary includes.
4833 * Makefile.in (alpha-linux-tdep.o): Update.
4834
48352003-06-03 Richard Henderson <rth@redhat.com>
4836
4837 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4838 (alphabsd_fill_fpreg): Likewise.
4839
f534e522
JB
48402003-06-03 J. Brobecker <brobecker@gnat.com>
4841
4842 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4843 references to struct frame_info fields by calls to the equivalent
4844 accessors. Necessary now that frame_info is opaque.
4845
4035536b
JB
48462003-06-03 J. Brobecker <brobecker@gnat.com>
4847
4848 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4849 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4850 structure, field no longer exists.
4851
0bd79c5c
JB
48522003-06-03 J. Brobecker <brobecker@gnat.com>
4853
4854 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4855 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4856
37bb6d9f
JB
48572003-06-03 J. Brobecker <brobecker@gnat.com>
4858
4859 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4860 references to struct frame_info fields by calls to the equivalent
4861 accessors. Necessary now that frame_info is opaque.
4862
852ee05c
JB
48632003-06-03 J. Brobecker <brobecker@gnat.com>
4864
4865 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4866 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4867 structure, field no longer exists.
4868
7d58c67d
TR
48692003-06-03 Theodore A. Roth <troth@openavr.org>
4870
8ffd9b1b 4871 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4872 accumulation of the size of all registers instead of blindly using
4873 DEPRECATED_REGISTER_BYTES.
4874
0a48e7e8
MS
48752003-06-03 Michael Snyder <msnyder@redhat.com>
4876
4877 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4878 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4879 for h8300sx.
4880
9798ab0d
JB
48812003-06-03 J. Brobecker <brobecker@gnat.com>
4882
4883 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4884 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4885
00b037e2
AC
48862003-06-03 Andrew Cagney <cagney@redhat.com>
4887
4888 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4889 (sparc_convert_to_raw): Delete function.
4890 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4891 register_convert_to_virtual.
4892
043b2f77
JJ
48932003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4894
4895 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4896 layer if not dealing with a statically-linked threaded program.
4897
f43caff8
KW
48982003-06-03 Kris Warkentin <kewarken@qnx.com>
4899
4900 * solib.c (solib_open): Update comment to reflect actual search order.
4901
ae1e7417
AC
49022003-06-03 Andrew Cagney <cagney@redhat.com>
4903
4904 * frame.c (get_frame_memory_signed): New function.
4905 (get_frame_memory, get_frame_memory_unsigned): New function.
4906 (get_frame_arch): New function.
4907 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4908 (get_frame_memory, get_frame_unsigned_memory): Declare.
4909 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4910 get_frame_memory_unsigned and get_frame_arch.
4911 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4912
cb123844
RG
49132003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4914
4915 * MAINTAINERS (write after approval): Add myself.
4916
1bb792e9
JB
49172003-06-03 Jim Blandy <jimb@redhat.com>
4918
4919 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4920 elements of gregset_t are 64 bits each, but access registers
4921 are still 32 bits, so they're packed two per gregset_t
4922 element. Unpack/pack them properly.
4923
aee8d8ba
DC
49242003-06-02 David Carlton <carlton@bactrian.org>
4925
4926 * linespec.c (find_methods): Break out code into
4927 add_matching_methods and add_constructors.
4928 (add_matching_methods): New.
4929 (add_constructors): Ditto.
4930
bf7488d2
AC
49312003-06-02 Andrew Cagney <cagney@redhat.com>
4932
bf7488d2
AC
4933 * sparc-tdep.c (sparc_print_registers): Delete call to
4934 REGISTER_CONVERTIBLE.
4935 (sparc_gdbarch_init): Do not set register_convertible.
4936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4937 * frv-tdep.c (frv_gdbarch_init): Ditto.
4938 * cris-tdep.c (cris_gdbarch_init): Ditto.
4939
adedef68
EZ
49402003-06-02 Elena Zannoni <ezannoni@redhat.com>
4941
8ffd9b1b 4942 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4943 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4944 (syms_from_objfile): Ditto.
4945
650fcc91
AS
49462003-06-03 Andreas Schwab <schwab@suse.de>
4947
4948 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4949 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4950
df4a182b
RH
49512003-06-02 Richard Henderson <rth@redhat.com>
4952
4953 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4954 a member of all_reggroup.
4955
c483c494
RH
49562003-06-02 Richard Henderson <rth@redhat.com>
4957
4958 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4959 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4960 (alpha_lds, alpha_sts): New.
4961 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4962 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4963 restructure and fail for type sizes other than 4 or 8.
4964 (alpha_value_to_register): Similarly.
4965 (alpha_extract_return_value): Use alpha_sts.
4966 (alpha_store_return_value): Use alpha_lds.
4967 (alpha_gdbarch_init): Update hooks.
4968
b38b6be2
RH
49692003-06-02 Richard Henderson <rth@redhat.com>
4970
4971 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4972 regnum identifiers.
4973 (alpha_sigtramp_register_address): Likewise.
4974
98a8e1e5
RH
49752003-06-02 Richard Henderson <rth@redhat.com>
4976
4977 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4978 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4979 * alpha-tdep.h: Declare them.
4980
4981 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4982 Remove zerobuf. Don't error on UNIQUE.
4983 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4984 (ALPHA_REGSET_UNIQUE): Provide default.
4985 (supply_gregset): Use alpha_supply_int_regs.
4986 (fill_gregset): Use alpha_fill_int_regs.
4987 (supply_fpregset): Use alpha_supply_fp_regs.
4988 (fill_fpregset): Use alpha_fill_fp_regs.
4989 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4990 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4991 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4992 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4993 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4994 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4995
67dfac52
RH
49962003-06-02 Richard Henderson <rth@redhat.com>
4997
f75d70cc
RH
4998 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4999
67dfac52
RH
5000 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5001 (alpha_store_return_value): Likewise.
5002
0cf566ec
DC
50032003-06-02 David Carlton <carlton@math.stanford.edu>
5004
5005 * block.c (contained_in): Add 'const' to arguments.
5006 (block_function): Ditto.
5007 * block.h: Update declarations for block_function and
5008 contained_in.
5009
cdef89d0
DC
50102003-06-02 David Carlton <carlton@math.stanford.edu>
5011
5012 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5013 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5014 * p-valprint.c (pascal_val_print): Ditto.
5015 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5016
72667056
RH
50172003-06-02 Richard Henderson <rth@redhat.com>
5018
98a8e1e5
RH
5019 * alpha-tdep.c (alpha_push_dummy_call): Use
5020 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5021
8ffd9b1b 5022 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5023 sign-extension of 32-bit values.
5024 (alpha_store_return_value): Similarly.
0ede8eca 5025
98a8e1e5
RH
5026 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5027 (alpha_extract_return_value): Likewise.
5028 (alpha_store_return_value): Likewise.
7b5e1cb3 5029
98a8e1e5
RH
5030 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5031 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5032
98a8e1e5
RH
5033 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5034 (alpha_extract_struct_value_address): Likewise.
5035 (alpha_store_return_value): Likewise.
5036 (alpha_store_struct_return): Remove.
5037 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5038
98a8e1e5
RH
5039 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5040 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5041 macros where appropriate.
5042 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5043 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5044
98a8e1e5
RH
5045 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5046 for SP, GP; void_func_ptr for PC; non-language-specific types
5047 for all others.
5048 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5049
6dd77b81
RH
50502003-06-02 Richard Henderson <rth@redhat.com>
5051
5052 * top.h (lim_at_start): Declare.
5053 * main.c (captured_main): Set it.
5054 * top.c (lim_at_start): Define.
5055 (command_loop): Use it instead of &environ.
5056 * event-top.c (command_handler): Likewise.
5057
f4dbdb54
JT
50582003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5059
5060 * mipsnbsd-tdep.c: Update copyright years.
5061 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5062
8f285956
RH
50632003-06-01 Richard Henderson <rth@redhat.com>
5064
98a8e1e5
RH
5065 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5066 (alpha-linux-tdep.o): Update dependencies.
5067 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5068 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5069
615967cb
RH
50702003-06-01 Richard Henderson <rth@redhat.com>
5071
98a8e1e5
RH
5072 * alpha-tdep.c (alpha_register_reggroup_p): New.
5073 (alpha_gdbarch_init): Register it.
615967cb 5074
b59661bd
AC
50752003-06-02 Andrew Cagney <cagney@redhat.com>
5076
5077 * dwarfread.c: Eliminate "register"
5078 (decode_die_type): Eliminate assignment within "if".
5079 (struct_type, decode_array_element_type): Ditto.
5080 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5081 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5082 (decode_modified_type, completedieinfo): Ditto.
5083 * block.c: Eliminate "register".
5084 (blockvector_for_pc_sect): Eliminate assignment within "if".
5085 * cp-support.h (struct symbol): Opaque declaration.
5086 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5087
5ef165c2
RH
50882003-06-01 Richard Henderson <rth@redhat.com>
5089
98a8e1e5
RH
5090 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5091 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5092
143985b7
AF
50932003-06-01 Adam Fedor <fedor@gnu.org>
5094
5095 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5096 * gdbarch.[ch]: Regenerate.
5097 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5098 (hppa_gdbarch_init): Set it in the gdbarch vector.
5099 * i386-tdep.c (i386_fetch_pointer_argument): New
5100 (i386_gdbarch_init): Set it into gdbarch.
5101 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5102 (rs6000_gdbarch_init): Set it in gdbarch.
5103 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5104 (sparc_gdbarch_init): Set it in gdbarch.
5105
ae0167b9
AC
51062003-06-01 Andrew Cagney <cagney@redhat.com>
5107
7c0b4a20
AC
5108 * defs.h (extract_address): Delete declaration.
5109 * findvar.c (extract_address): Delete function.
5110 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5111 extract_address with the inline equivalent,
5112 extract_unsigned_integer.
5113 (xstormy16_extract_struct_value_address): Ditto.
5114 (xstormy16_pointer_to_address): Ditto.
5115 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5116 * v850-tdep.c (v850_push_arguments): Ditto.
5117 (v850_extract_return_value): Ditto.
5118 (v850_extract_struct_value_address): Ditto.
5119 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5120 (sparcnbsd_get_longjmp_target_64): Ditto.
5121 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5122 (get_longjmp_target): Ditto.
5123 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5124 (sh64_extract_struct_value_address): Ditto.
5125 (sh_push_arguments): Ditto.
5126 (sh64_push_arguments): Ditto.
5127 * remote-vxsparc.c (vx_read_register): Ditto.
5128 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5129 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5130 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5131 * mipsv4-nat.c (get_longjmp_target): Ditto.
5132 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5133 * mips-nat.c (get_longjmp_target): Ditto.
5134 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5135 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5136 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5137 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5138 * irix5-nat.c (get_longjmp_target): Ditto.
5139 * irix4-nat.c (get_longjmp_target): Ditto.
5140 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5141 (ia64_push_arguments): Ditto.
5142 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5143 * h8300-tdep.c (h8300_push_arguments): Ditto.
5144 (h8300_store_return_value): Ditto.
5145 (h8300_extract_struct_value_address): Ditto.
5146 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5147 (frv_push_arguments): Ditto.
5148 * avr-tdep.c (avr_pointer_to_address): Ditto.
5149 (avr_push_arguments): Ditto.
5150 * arm-tdep.c (arm_push_dummy_call): Ditto.
5151 (arm_get_longjmp_target): Ditto.
5152 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5153 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5154 (alpha_get_longjmp_target): Ditto.
5155
ae0167b9
AC
5156 * solib-irix.c (extract_mips_address): Inline extract_address,
5157 replacing it with extract_signed_integer.
5158 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5159 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5160 (first_link_map_member, open_symbol_file_object): Ditto.
5161 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5162 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5163 (LM_NEXT, LM_NAME): Ditto.
5164
44d88583
RH
51652003-06-01 Richard Henderson <rth@redhat.com>
5166
98a8e1e5
RH
5167 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5168 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5169 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5170 (alpha_cannot_store_register): Likewise.
5171 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5172 * alpha-nat.c (supply_gregset): Likewise.
5173 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5174
310e9b6a
AC
51752003-06-01 Andrew Cagney <cagney@redhat.com>
5176
5177 * infcall.c (call_function_by_hand): Update comment on
5178 DEPRECATED_DUMMY_WRITE_SP.
5179
5180 * mips-tdep.c (mips_gdbarch_init): Do not set
5181 deprecated_dummy_write_sp.
5182 (mips_eabi_push_dummy_call): Set the SP register.
5183 (mips_o64_push_dummy_call): Set the SP register.
5184 (mips_o32_push_dummy_call): Set the SP register.
5185 (mips_n32n64_push_dummy_call): Set the SP register.
5186
5ab84872
RH
51872003-06-01 Richard Henderson <rth@redhat.com>
5188
98a8e1e5
RH
5189 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5190 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5191 (supply_gregset): Likewise.
5192 * alpha-tdep.c (alpha_store_return_value): Likewise.
5193 (alpha_get_longjmp_target): Likewise.
5194 (alpha_register_name): Constify array.
5195 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5196 deprecated_register_size, deprecated_register_bytes,
5197 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5198 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5199 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5200
09cc52fd
RH
52012003-06-01 Richard Henderson <rth@redhat.com>
5202
5203 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5204 from arg_reg_buffer to regcache to avoid double conversion.
5205
c7f16359
MK
52062003-06-01 Mark Kettenis <kettenis@gnu.org>
5207
5208 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5209 SP_REGNUM.
5210 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5211 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5212
7131cb6e
RH
52132003-06-01 Richard Henderson <rth@redhat.com>
5214
98a8e1e5
RH
5215 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5216 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5217
f3e0f90b
RH
52182003-06-01 Richard Henderson <rth@redhat.com>
5219
98a8e1e5
RH
5220 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5221 not overlapping PC_REGNUM.
f3e0f90b 5222
c88e30c0
RH
52232003-06-01 Richard Henderson <rth@redhat.com>
5224
98a8e1e5
RH
5225 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5226 alpha_push_arguments. Don't dump argument register data to
5227 the target stack. Fix float and 128-bit long double semantics.
5228 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5229 (alpha_fix_call_dummy): Remove.
5230 (alpha_call_dummy_words): Remove.
5231 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5232
f1a559ae
RH
52332003-06-01 Richard Henderson <rth@redhat.com>
5234
5235 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5236
5e045346
AC
52372003-06-01 Andrew Cagney <cagney@redhat.com>
5238
95404a3e
AC
5239 * mips-tdep.c (is_mips16_addr): New function.
5240 (make_mips16_addr, unmake_mips16_addr): New functions.
5241 (pc_is_mips16, mips_fetch_instruction): Use.
5242 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5243 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5244 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5245 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5246 TARGET_MIPS.
5247 * config/mips/tm-mips.h: Update copyright.
5248 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5249 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5250 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5251 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5252 (TM_PRINT_INSN_MACH): Delete.
5253 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5254
5e045346
AC
5255 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5256 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5257 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5258 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5259 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5260 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5261 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5262 mips*-*-riscos* and mips*-*-sysv* onto mips.
5263 * config/mips/mips64.mt: New file.
5264 * config/mips/mips.mt: New file.
5265 * config/mips/littlemips.mt: Delete file.
5266 * config/mips/decstation.mt: Delete file.
5267 * config/mips/vr4300el.mt: Delete file.
5268 * config/mips/vr5000el.mt: Delete file.
5269 * config/mips/vr5000.mt: Delete file.
5270 * config/mips/vr4100.mt: Delete file.
5271 * config/mips/vr4xxxel.mt: Delete file.
5272 * config/mips/vr4300.mt: Delete file.
5273 * config/mips/vr4xxx.mt: Delete file.
5274 * config/mips/bigmips.mt: Delete file.
5275 * config/mips/bigmips64.mt: Delete file.
5276 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5277 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5278 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5279 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5280 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5281 "tm-bigmips.h".
5282 * config/mips/tm-irix3.h: Ditto.
5283 * config/mips/tm-mipsv4.h: Ditto.
5284 * config/mips/tm-embed.h: Ditto.
5285 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5286 "tm-bigmips64.h".
5287 * config/mips/tm-vr5000el.h: Delete file.
5288 * config/mips/tm-tx39l.h: Delete file.
5289 * config/mips/tm-vr4300el.h: Delete file.
5290 * config/mips/tm-vr4xxxel.h: Delete file.
5291 * config/mips/tm-vr4300.h: Delete file.
5292 * config/mips/tm-vr4100.h: Delete file.
5293 * config/mips/tm-vr4xxx.h: Delete file.
5294 * config/mips/tm-vr5000.h: Delete file.
5295 * config/mips/tm-embedl64.h: Delete file.
5296 * config/mips/tm-embedl.h: Delete file.
5297 * config/mips/tm-embed64.h: Delete file.
5298 * config/mips/tm-bigmips64.h: Delete file.
5299 * config/mips/tm-bigmips.h: Delete file.
5300
2473a4a9
MK
53012003-06-01 Mark Kettenis <kettenis@gnu.org>
5302
97a5b208
MK
5303 Fix gdb/1216.
5304 * shnbsd-nat.c: Include "sh-tdep.h".
5305
2473a4a9
MK
5306 From Richard Henderson <rth@redhat.com>:
5307 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5308
e0f7ec59
AC
53092003-05-31 Andrew Cagney <cagney@redhat.com>
5310
5311 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5312 forward declaration.
5313 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5314 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5315 (mips_find_saved_regs): Use set_reg_offset.
5316 (mips_frame_init_saved_regs): Delete function.
5317 (mips_pop_frame): Call mips_find_saved_regs instead of
5318 DEPRECATED_FRAME_INIT_SAVED_REGS.
5319
68dcc709
AC
53202003-05-31 Andrew Cagney <cagney@redhat.com>
5321
5322 * mips-tdep.c (mips_gdbarch_init): Do not set
5323 deprecated_max_register_raw_size, register_virtual_size, and
5324 deprecated_max_register_virtual_size.
5325
cfc14b3a
MK
53262003-05-31 Mark Kettenis <kettenis@gnu.org>
5327
6405b0a6
MK
5328 * i386-tdep.c: Include "dwarf2-frame.h".
5329 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5330 * Makefile.in (i386-tdep.o): Update dependencies.
5331
cfc14b3a
MK
5332 * dwarf2-frame.c, dwarf2-frame.h: New files.
5333 * Makefile.in (SFILES): Add dwarf2-frame.c.
5334 (dwarf2_frame_h): Define.
5335 (COMMON_OBS): Add dwarf2-frame.o.
5336 (dwarf2-frame.o): Add dependencies.
5337
6a2751d2
AJ
53382003-05-31 Andreas Jaeger <aj@suse.de>
5339
5340 * x86-64-linux-nat.c: Fix comment.
5341
1c3545ae
MK
53422003-05-31 Mark Kettenis <kettenis@gnu.org>
5343
10f93086
MK
5344 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5345 function signature.
5346
1c3545ae
MK
5347 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5348 have a sigcontext_addr handler.
5349 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5350 sigcontext_addr handler.
5351
e11c53d2
AC
53522003-05-31 Andrew Cagney <cagney@redhat.com>
5353
5354 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5355 (print_fp_register_row): Replace do_fp_register_row.
5356 (mips_print_fp_register): Add "file" and "frame" parameters.
5357 (mips_print_register): Add "file" and "frame" parameters.
5358 (mips_print_registers_info): Replace mips_do_registers_info.
5359 (mips_gdbarch_init): Set print_registers_info instead of
5360 deprecated_do_registers_info.
5361 (mips_read_fp_register_single): Add "frame" parameter.
5362 (mips_read_fp_register_double): Add "frame" parameter.
5363
a3386186
MK
53642003-05-31 Mark Kettenis <kettenis@gnu.org>
5365
70913449
MK
5366 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5367 Fixes a bug where GDB would print the wrong register names for
5368 targets without SSE.
5369
2b5e0749
MK
5370 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5371 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5372 registers.
5373
5374 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5375 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5376 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5377 TDEP->sc_sp_offset.
5378
a3386186
MK
5379 From Michal Ludvig <mludvig@suse.cz>:
5380 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5381 and `sc_num_regs'.
5382 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5383 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5384 I386_ST0_REGNUM): Move here from...
5385 * i386-tdep.c: ... here.
5386 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5387 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5388 registers if possible.
5389 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5390 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5391 Remove variables.
5392 (i386bsd_sc_reg_offset): New variable.
5393 (i386bsd_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 (i386fbsd_sc_reg_offset): New variable.
5397 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5398 TDEP->sc_num_regs.
5399 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5400 variables.
5401 (i386fbsd4_sc_reg_offset): New variable.
5402 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5403 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5404 TDEP->sc_sp_offset.
5405 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5406 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5407 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5408 Remove variables.
5409 (i386nbsd_sc_reg_offset): New variable.
5410 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5411 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5412 TDEP->sc_sp_offset.
5413 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5414 Remove variables.
5415 (i386obsd_sc_reg_offset): New variable.
5416 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5417 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5418 TDEP->sc_sp_offset.
5419 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5420 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5421 for frame pointer offset in `struct sigcontext'.
5422
25ab4790
AC
54232003-05-31 Andrew Cagney <cagney@redhat.com>
5424
5425 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5426 architecture methods call_dummy_words, sizeof_call_dummy_words,
5427 push_return_address, store_struct_return, and fix_call_dummy. Set
5428 push_dummy_call instead of deprecated_push_arguments.
5429 (mips_store_struct_return): Delete function.
5430 (mips_fix_call_dummy): Delete function.
5431 (mips_push_return_address): Delete function.
5432 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5433 RA_REGNUM and T9_REGNUM.
5434 (mips_n32n64_push_dummy_call): Ditto for
5435 mips_n32n64_push_arguments.
5436 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5437 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5438
6a65450a
AC
54392003-05-31 Andrew Cagney <cagney@redhat.com>
5440
5441 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5442 "dummy_addr" to "bp_addr".
5443 * infcall.c (call_function_by_hand): Pass "funaddr" to
5444 gdbarch_push_dummy_call.
5445 * gdbarch.h, gdbarch.c: Re-generate.
5446 * i386-tdep.c (i386_push_dummy_call): Update.
5447 * arm-tdep.c (arm_push_dummy_call): Update.
5448 * d10v-tdep.c (d10v_push_dummy_call): Update.
5449
c4f35dd8
MK
54502003-05-31 Mark Kettenis <kettenis@gnu.org>
5451
5452 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5453 variable declarations.
5454 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5455 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5456 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5457 x86_64_init_frame_pc, x86_64_init_frame_pc,
5458 x86_64_function_has_prologue): Remove prototypes.
5459 (X86_64_NUM_GREGS): New define.
5460 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5461 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5462 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5463 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5464 XMM1_REGNUM): Remove defines.
5465 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5466 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5467 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5468 X86_64_XMM1_REGNUM): New defines.
5469 (struct x86_64_register_info): Renamed from `struct
5470 register_info'. Remove `size' member.
5471 (x86_64_register_info_table): Remove variable.
5472 (x86_64_register_info): New variable.
5473 (X86_64_NUM_REGS): New define.
5474 (X86_64_NUM_GREGS): Remove define.
5475 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5476 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5477 Remove variables.
5478 (x86_54_dwarf2_reg_to_regnum): Remove function.
5479 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5480 (x86_64_dwarf_reg_to_regnum): New function.
5481 (x86_64_register_name): Rewrite.
5482 (x86_64_register_raw_size): Remove function.
5483 (x86_64_register_byte_table): Remove variable.
5484 (x86_64_register_byte): Remove function.
5485 (x86_64_register_virtual_type): Remove function.
5486 (x86_64_register_type): New function.
5487 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5488 x86_64_register_convert_to_raw): Remove functions.
5489 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5490 (x86_64_use_struct_convention): Make static. Adjust for renamed
5491 defines.
5492 (x86_64_frame_init_saved_regs): Remove function.
5493 (x86_64_push_arguments): Make static. Change to accept a regcache
5494 as argument.
5495 (x86_64_store_return_value, x86_64_extract_return_value): Make
5496 static. Rewrite based on i386 counterparts.
5497 (x86_64_push_dummy_call): New function.
5498 (X86_64_NUM_SAVED_REGS): New define.
5499 (x86_64_register_number): Remove function.
5500 (x86_64_store_struct_return): Remove function.
5501 (x86_64_frameless_function_invocation,
5502 x86_64_function_has_prologue): Remove functions.
5503 (PROLOG_BUFSIZE): Remove define.
5504 (struct x86_64_frame_cache): New structure.
5505 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5506 x86_64_frame_cache, x86_64_frame_this_id,
5507 x86_64_frame_prev_register, x86_64_frame_p,
5508 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5509 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5510 functions.
5511 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5512 variables.
5513 (x86_64_skip_prologue): Rewrite in terms of
5514 x86_64_analyze_prologue.
5515 (x86_64_frame_base_address): New function.
5516 (x86_64_frame_base): New variable.
5517 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5518 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5519 set deprecated_fp_regnum, deprecated_register_size,
5520 deprecated_register_bytes, register_raw_size, register_byte,
5521 register_virtual_type, register_convertiable,
5522 register_convert_to_virtual, convert_to_raw,
5523 deprecated_get_saved_register, deprecated_target_read_fp,
5524 deprecated_push_arguments, deprecated_push_return_address,
5525 deprecated_pop_frame, deprecated_store_struct_return,
5526 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5527 frameless_function_invocation, deprecated_frame_saved_pc,
5528 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5529 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5530 deprecated_init_frame_pc and virtual_frame_pointer. Call
5531 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5532 and x86_64_frame_p. Call frame_base_set_default to register
5533 x86_64_frame_base.
5534 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5535 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5536 (_initialize_x86_64_tdep): Remove function.
5537 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5538 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5539 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5540 define.
5541 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5542 (x86_64_linux_sigcontext_addr): Rewrite.
5543 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5544 x86_64_linux_frame_saved_pc): Remove functions.
5545 (x86_64_linux_pc_in_sigtramp): Renamed from
5546 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5547 trampoline.
5548 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5549 Remove_functions.
5550 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5551 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5552 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5553 (x86_64_regmap): Rename to regmap.
5554 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5555 x86_64_num_gregs.
5556 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5557 x86_64_regmap.
5558 (x86_64_fxsave_offset): Remove function.
5559 (supply_fpregset): Simply call x86_64_supply_fxsave.
5560 (fill_fpregset): Simply call x86_64_fill_fxsave.
5561 (fetch_inferior_registers, store_inferior_registers): Avoid
5562 asignment in if-statement.
5563 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5564 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5565 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5566 (fetch_core_registers): Remove function.
5567 (linux_elf_core_fns): Remove.
5568 (offsetoff): Don't define.
5569 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5570 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5571 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5572 add core-regset.o.
5573 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5574 protection against multiple includes instead of NM_X86_64_h. Add
5575 various comments. Include "config/nm-linux.h". Don't include
5576 <signal.h>.
5577 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5578 GET_THREAD_SIGNALS): Remove defines.
5579 (x86_64_register_u_addr, kernel_u_size,
5580 lin_thread_get_thread_signals): Remove prototypes.
5581 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5582 [HAVE_LINK_H]: Don't include "solib.h".
5583 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5584 * config/i386/tm-x86-64linux.h: Fix comments.
5585 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5586 x86-64-tdep.o): Update dependencies.
5587
c25083af
AC
55882003-05-30 Andrew Cagney <cagney@redhat.com>
5589
c8f55a7b
AC
5590 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5591 Change parameter type to a "struct regcache *".
5592
c25083af
AC
5593 * gdbarch.sh: Regardless of the multi-arch level, always define
5594 the macro when not already defined.
5595 * gdbarch.h, gdbarch.c: Re-generate.
5596
fbe586ae
RH
55972003-05-30 Richard Henderson <rth@redhat.com>
5598
5599 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5600 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5601 (alpha_mdebug_frame_this_id): Likewise.
5602 (alpha_mdebug_frame_prev_register): Likewise.
5603 (alpha_mdebug_frame_base_address): Likewise.
5604 (alpha_mdebug_frame_locals_address): Likewise.
5605 (alpha_mdebug_frame_args_address): Likewise.
5606 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5607 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5608 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5609 loop increment.
5610 (alpha_heuristic_frame_this_id): Make static.
5611 (alpha_heuristic_frame_prev_register): Likewise.
5612 (alpha_heuristic_frame_base_address): Likewise.
5613 * alpha-tdep.h: Update.
5614
acd5c798
MK
56152003-05-30 Mark Kettenis <kettenis@gnu.org>
5616
5617 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5618 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5619 defenitions.
5620 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5621 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5622 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5623 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5624 I386_ST0_REGNUM): New defines.
5625 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5626 codestream_get): Remove define.
5627 (codestream_next_addr, condestream_addr, condestream_buf,
5628 codestream_off, codestream_cnt): Remove variables.
5629 (codestream_fill, codestream_seek, codestream_read): Remove
5630 functions.
5631 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5632 functionality.
5633 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5634 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5635 i386_frame_saved_pc, i386_saved_pc_after_call,
5636 i386_frame_num_args, i386_frame_init_saved_regs,
5637 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5638 i386_push_arguments): Remove functions.
5639 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5640 functionality. Use i386_analyze_prologue instead of
5641 i386_get_frame_setup.
5642 (I386_NUM_SAVED_REGS): New define.
5643 (struct i386_frame_cache): New structure.
5644 (i386_alloc_frame_cache, i386_analyze_struct_return,
5645 i386_skip_probe, i386_analyze_frame_setup,
5646 i386_analyze_register_saves, i386_analyze_prologue,
5647 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5648 i386_frame_prev_register, i386_sigtramp_frame_cache,
5649 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5650 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5651 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5652 New functions.
5653 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5654 New variables.
5655 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5656 I386_EAX_REGNUM and I386_EDX_REGNUM.
5657 (i386_extract_return_value, i386_store_return_value): Use
5658 I386_ST0_REGNUM where appropriate.
5659 (i386_extract_struct_value_address): Rewrite to use extract_address.
5660 (i386_svr4_pc_in_sigtramp): Add comment.
5661 (i386_svr4_sigcontext_addr): Rewrite.
5662 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5663 TDEP->sc_sp_offset.
5664 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5665 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5666 of new defines. Set push_dummy_call, don't set
5667 deprecated_push_arguments, deprecated_push_return_address,
5668 deprecated_pop_frame. Don't set parm_boundary. Don't set
5669 deprecated_frame_chain, deprecated_frame_saved_pc,
5670 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5671 save_dummy_frame_tos, unwind_pc. Call
5672 frame_unwind_append_predicate and frame_base_set_default. Don't
5673 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5674 Don't set frameless_function_invocation. Don't set
5675 deprecated_register_bytes, deprecated_register_size,
5676 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5677 * i386-linux-tdep.c: Fix formatting in some comments.
5678 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5679 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5680 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5681 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5682 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5683 redundant parentheses.
5684 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5685 (i386_linux_sigcontext_addr): Use it. Rewrite.
5686 (find_minsym_and_objfile): Change name of second argument.
5687 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5688 changed. Use frame_pc_unwind instead of
5689 DEPRECATED_SAVED_PC_AFTER_CALL.
5690 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5691 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5692 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5693 unwinder.
5694 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5695 "dummy-frame.h".
5696 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5697 (_initialize_i386_cygwin_tdep): New prototype.
5698 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5699 deprecated_frame_chain_valid.
5700 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5701 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5702 Rely on the SVR4 defaults.
5703 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5704 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5705
c89b70f1
AC
57062003-05-30 Andrew Cagney <cagney@redhat.com>
5707
5708 * infcall.c (call_function_by_hand): Always call
5709 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5710
85b32d22
RH
57112003-05-30 Richard Henderson <rth@redhat.com>
5712
c89b70f1
AC
5713 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5714 increment.
85b32d22 5715
bfe51b1e
JB
57162003-05-29 Jim Blandy <jimb@redhat.com>
5717
5718 Use gdbarch methods for solib stuff on PowerPC Linux.
5719 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5720 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5721 show through.
5722 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5723 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5724 giving the same effect as the #definitions above.
5725
1abf022c
AF
57262003-05-29 Adam Fedor <fedor@gnu.org>
5727
5728 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5729 (find_implementation_from_class): Replace it with the standard
5730 case i.e. do nothing.
5731
d2427a71
RH
57322003-05-29 Richard Henderson <rth@redhat.com>
5733
5734 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5735 (alpha_linux_sigtramp_offset): Use it. Make static.
5736 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5737 update for new frame model.
5738 * alpha-mdebug-tdep.c: New file.
5739 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5740 (alpha_osf1_init_abi): Install it.
5741 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5742 (linked_proc_desc_table): Remove.
5743 (alpha_frame_past_sigtramp_frame): Remove.
5744 (alpha_dynamic_sigtramp_offset): Remove.
5745 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5746 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5747 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5748 (push_sigtramp_desc): Remove.
5749 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5750 (alpha_cannot_store_register): Likewise.
5751 (alpha_sigcontext_addr): Remove.
5752 (alpha_find_saved_regs): Remove.
5753 (alpha_frame_init_saved_regs): Remove.
5754 (alpha_init_frame_pc_first): Remove.
5755 (read_next_frame_reg): Remove.
5756 (alpha_frame_saved_pc): Remove.
5757 (alpha_saved_pc_after_call): Remove.
5758 (temp_proc_desc, temp_saved_regs): Remove.
5759 (alpha_about_to_return): Remove.
5760 (cached_proc_desc): Remove.
5761 (alpha_frame_chain): Remove.
5762 (alpha_print_extra_frame_info): Remove.
5763 (alpha_init_extra_frame_info): Remove.
5764 (alpha_frame_locals_address): Remove.
5765 (alpha_frame_args_address): Remove.
5766 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5767 (alpha_push_dummy_frame): Remove.
5768 (alpha_pop_frame): Remove.
5769 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5770 (alpha_read_insn): New.
5771 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5772 for different insn encodings.
5773 (alpha_in_lenient_prologue): Remove.
5774 (struct alpha_sigtramp_unwind_cache): New.
5775 (alpha_sigtramp_frame_unwind_cache): New.
5776 (alpha_sigtramp_register_address): New.
5777 (alpha_sigtramp_frame_this_id): New.
5778 (alpha_sigtramp_frame_prev_register): New.
5779 (alpha_sigtramp_frame_unwind): New.
5780 (alpha_sigtramp_frame_p): New.
5781 (struct alpha_heuristic_unwind_cache): New.
5782 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5783 don't count nop insns that occur between functions.
5784 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5785 heuristic_proc_desc, but without the mdebug wrapping.
5786 (alpha_heuristic_frame_this_id): New.
5787 (alpha_heuristic_frame_prev_register): New.
5788 (alpha_heuristic_frame_unwind): New.
5789 (alpha_heuristic_frame_p): New.
5790 (alpha_heuristic_frame_base_address): New.
5791 (alpha_heuristic_frame_base): New.
5792 (alpha_unwind_dummy_id): New.
5793 (alpha_unwind_pc): New.
5794 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5795 frame related deprecated initializations; install replacements.
5796 (alpha_dump_tdep): Remove.
5797 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5798 (alpha_read_insn, alpha_after_prologue,
5799 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5800 alpha_heuristic_frame_prev_register,
5801 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5802 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5803 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5804 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5805
93ec1121
AC
58062003-05-29 Andrew Cagney <cagney@redhat.com>
5807
5808 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5809 dependant on the availability of ASSERT_FUNCTION.
5810 (ASSERT_FUNCTION): Do not define when there is no function name.
5811
98f08d3d
KB
58122003-05-29 Kevin Buettner <kevinb@redhat.com>
5813
5814 From Jimi X <jimix@watson.ibm.com>:
5815 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5816
0897f59b
JB
58172003-05-28 Jim Blandy <jimb@redhat.com>
5818
5819 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5820 argument to ptrace to int; the system headers should give it the
5821 right type, and pointers don't fit in ints on powerpc64-*-*.
5822
14898363
L
58232003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5824
5825 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5826 DW_TAG_catch_block.
5827
a7a48797
EZ
58282003-05-26 Elena Zannoni <ezannoni@redhat.com>
5829
5830 * stabsread.c (dbx_lookup_type): Make static.
5831 (read_type): Ditto.
5832 (add_undefined_type): Ditto.
5833 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5834 not export.
5835
f5479e9c
EZ
58362003-05-26 Elena Zannoni <ezannoni@redhat.com>
5837
5838 * hpread.c (hpread_has_name): Make static.
5839 (hpread_psymtab_to_symtab): Ditto.
5840 (file_exists): Ditto.
5841 (hpread_call_pxdb): Ditto.
5842 (hpread_pxdb_needed): Ditto.
5843 (hpread_quick_traverse): Ditto.
5844 (hpread_get_header): Ditto.
5845 (hpread_get_lntt): Ditto.
5846 (hpread_get_slt): Ditto.
5847 (class_of): Ditto.
5848
eb2e12d7
AS
58492003-05-25 Andreas Schwab <schwab@suse.de>
5850
78bf922a
AS
5851 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5852 stack_align and deprecated_extra_stack_alignment_needed.
5853 (m68k_stack_align): Delete.
5854
eb2e12d7
AS
5855 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5856 (m68k_register_virtual_size): Likewise.
5857 (altos_skip_prologue): Remove obsolete function.
5858 (isi_frame_num_args): Likewise.
5859 (news_frame_num_args): Likewise.
5860 (m68k_fix_call_dummy): Make static.
5861 (m68k_push_dummy_frame): Likewise.
5862 (m68k_pop_frame): Likewise.
5863 (m68k_skip_prologue): Likewise.
5864 (m68k_frame_init_saved_regs): Likewise.
5865 (m68k_saved_pc_after_call): Likewise.
5866 (m68k_get_longjmp_target): Make multi-arch.
5867 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5868 structure. Register m68k_get_longjmp_target if enabled.
5869 * m68k-tdep.h (struct gdbarch_tdep): Define.
5870 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5871
5872 * Makefile.in (config.status): Also depend on configure.tgt
5873 and configure.host.
5874 (m68klinux-tdep.o): Update dependencies.
5875 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5876 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5877 (M68K_LINUX_JB_PC): Define.
5878 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5879 and take additional parameter.
5880 (m68k_linux_sigtramp_saved_pc): Update.
5881 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5882 m68k_linux_pc_in_sigtramp, in_plt_section,
5883 find_solib_trampoline_target.
5884 * config/m68k/tm-linux.h: Don't include any tm headers.
5885 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5886 (JB_ELEMENT_SIZE): Likewise.
5887 (JB_PC): Likewise.
5888 (GET_LONGJMP_TARGET): Likewise.
5889 (IN_SIGTRAMP): Likewise.
5890 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5891
eb2c22dc
MK
58922003-05-25 Mark Kettenis <kettenis@gnu.org>
5893
5894 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5895 (sparc32_push_arguments): Re-implement by calling
5896 sparc32_do_push_arguments.
5897
44b7b84e
MK
58982003-05-25 Mark Kettenis <kettenis@gnu.org>
5899
5900 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5901 SPARC_O1_REGNUM): New defines.
5902 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5903 (sparc32_store_return_value): New function.
5904 (sparc_extract_struct_value_address): Rewrite to operate on a
5905 regcache.
5906 (sparc_gdbarch_init): Don't set
5907 deprecated_extract_struct_value_address. Set
5908 extract_struct_value_address instead. Don't set
5909 deprecated_extract_return_value and deprecated_store_return_value
5910 for 32-bit targets. Set extract_return_value and
5911 store_return_value instead.
5912 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5913 DEPRECTAED_EXTRACT_RETURN_VALUE,
5914 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5915 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5916 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5917 (sparc_store_return_value): Remove prototype.
5918 (sparc32_store_return_value): New prototype.
5919 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5920 Adjust prototypes.
5921
f6ad61e3
MK
59222003-05-24 Mark Kettenis <kettenis@gnu.org>
5923
5924 * sparcnbsd-tdep.c: Include "gdb_string.h".
5925
b276f1bb
AC
59262003-05-23 Andrew Cagney <cagney@redhat.com>
5927
5928 * p-valprint.c (pascal_val_print): Replace extract_address with
5929 the inline equivalent extract_unsigned_integer.
5930 * jv-valprint.c (java_value_print): Ditto.
5931 * ada-valprint.c (ada_val_print_1): Ditto.
5932 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5933
e76c5fcc
TR
59342003-05-23 Theodore A. Roth <troth@openavr.org>
5935
5936 * blockframe.c (frameless_look_for_prologue): Remove unused
5937 after_prologue variable.
5938
2cdd89cb
MK
59392003-05-23 Mark Kettenis <kettenis@gnu.org>
5940
5941 * blockframe.c (get_pc_function_start): Rewrite to avoid
5942 asignments in if-statements.
5943
182d43bc
EZ
59442003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5945
5946 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5947 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5948 files, don't relocate absolute symbols (and do use mst_abs).
5949
e8f3fcdd
AC
59502003-05-23 Andrew Cagney <cagney@redhat.com>
5951
5952 * objc-lang.c: Include "gdb_assert.h".
5953 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5954 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5955 (gdb_check, gdb_check_fatal): Delete functions.
5956 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5957 gdb_assert.
5958 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5959 * Makefile.in (objc-lang.o): Update dependencies.
5960
3c23e6fb
ILT
59612003-05-22 Ian Lance Taylor <ian@airs.com>
5962
5963 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5964 with fprintf_filtered, not fprintf_unfiltered.
5965
af1342ab
AC
59662003-05-22 Andrew Cagney <cagney@redhat.com>
5967
5968 * stack.c (frame_info): Inline extract_address, replacing it with
5969 extract_unsigned_integer.
5970 * findvar.c (unsigned_pointer_to_address): Ditto.
5971 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5972 * dwarf2expr.c (dwarf2_read_address): Ditto.
5973 * frame.c (frame_pc_unwind): Update comment.
5974 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5975
47e242ec
JJ
59762003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5977
5978 * infptrace.c (detach): Call print_sys_errmsg rather than
5979 perror_with_name to issue warning message when errno is non-zero
5980 after calling ptrace detach.
5981
e2ac8128
JB
59822003-05-21 J. Brobecker <brobecker@gnat.com>
5983
5984 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5985 macro definitions from here...
5986 * hppa-tdep.c: ...to there.
5987
92b3541e
KB
59882003-05-20 Kevin Buettner <kevinb@redhat.com>
5989
5990 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5991 register_ptrace_addr(). Fix all callers.
5992
55809acb
AS
59932003-05-21 Andreas Schwab <schwab@suse.de>
5994
5995 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5996 dependencies.
5997 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5998 end.
5999 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6000 (_initialize_m68k_linux_tdep): New function.
6001 (m68k_linux_frame_saved_pc): Make static.
6002 (m68k_linux_extract_return_value): Likewise.
6003 (m68k_linux_store_return_value): Likewise.
6004 (m68k_linux_extract_struct_value_address): Likewise.
6005 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6006 Remove.
6007 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6008 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6009 (DEPRECATED_FRAME_SAVED_PC): Remove.
6010
0fbc10f7
KW
60112003-05-20 Kris Warkentin <kewarken@qnx.com>
6012
6013 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6014 regset numbering rather than our own.
6015
58da2eb2
DC
60162003-05-19 David Carlton <carlton@bactrian.org>
6017
6018 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6019
1fcb5155
DC
60202003-05-19 David Carlton <carlton@bactrian.org>
6021
6022 Partial fix for PR c++/827.
6023 * cp-support.h: Include symtab.h.
6024 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6025 * cp-namespace.c: Update contributors.
6026 (cp_lookup_symbol_nonlocal): New.
6027 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6028 (lookup_symbol_file): Ditto.
6029 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6030 * block.h: Declare block_scope, block_using, block_global_block.
6031 * block.c (block_scope): New.
6032 (block_using, block_global_block): Ditto.
6033 * Makefile.in (cp_support_h): Depend on symtab_h.
6034 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6035
5f9a71c3
DC
60362003-05-19 David Carlton <carlton@bactrian.org>
6037
6038 * language.h (struct language_defn): Add 'la_value_of_this'
6039 and 'la_lookup_symbol_nonlocal' members.
6040 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6041 lookup_symbol_static, lookup_symbol_global,
6042 lookup_symbol_aux_block.
6043 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6044 if we should search fields of this and how to do static/global
6045 lookup.
6046 (lookup_symbol_aux_block): Make extern.
6047 (basic_lookup_symbol_nonlocal): New.
6048 (lookup_symbol_static, lookup_symbol_global): Ditto.
6049 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6050 'la_lookup_symbol_nonlocal' members.
6051 * c-lang.c (c_language_defn, cplus_language_defn)
6052 (asm_language_defn, minimal_language_defn): Ditto.
6053 * jv-lang.c (java_language_defn): Ditto.
6054 * language.c (unknown_language_defn, auto_language_defn)
6055 (local_language_defn): Ditto.
6056 * m2-lang.c (m2_language_defn): Ditto.
6057 * objc-lang.c (objc_language_defn): Ditto.
6058 * scm-lang.c (scm_language_defn): Ditto.
6059 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6060 * p-lang.c (pascal_language_defn): Ditto for both.
6061 * Makefile.in (f-lang.o): Depend on value_h.
6062 (p-lang.o): Ditto.
6063
89a9d1b1
DC
60642003-05-19 David Carlton <carlton@bactrian.org>
6065
6066 * block.h: Declare block_static_block.
6067 * block.c (block_static_block): New.
6068 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6069 lookup_symbol_aux_local, calling block_static_block instead.
6070 (lookup_symbol_aux_local): Delete 'static_block' argument.
6071
eed3f8ab
DC
60722003-05-19 David Carlton <carlton@bactrian.org>
6073
6074 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6075
a09d8bda
ML
60762003-05-19 Michal Ludvig <mludvig@suse.cz>
6077
6078 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6079 register numbers mapping.
6080
69636828
AF
60812003-05-18 Adam Fedor <fedor@gnu.org>
6082
6083 * symtab.c (completion_list_objc_symbol): New function.
6084 (make_symbol_completion_list): Use it to add ObjC symbols
6085 when looking though the list.
6086 (language_search_unquoted_string): New function.
6087 (make_file_symbol_completion_list): Use it.
6088
55baeb84
AS
60892003-05-18 Andreas Schwab <schwab@suse.de>
6090
d0b45d99
AS
6091 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6092 dependencies.
6093 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6094 as m68k_linux_extract_return_value.
6095 (DEPRECATED_STORE_RETURN_VALUE): Define as
6096 m68k_linux_store_return_value.
6097 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6098 m68k_linux_extract_struct_value_address.
6099 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6100 get_next_frame, get_frame_base, get_frame_pc.
6101 (m68k_linux_frame_saved_pc): Use get_frame_base.
6102 (m68k_linux_extract_return_value): New function.
6103 (m68k_linux_store_return_value): New function.
6104 (m68k_linux_extract_struct_value_address): New function.
6105 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6106
55baeb84
AS
6107 * c-exp.y (typebase): Remove duplicate occurence of
6108 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6109 of lookup_signed_typename.
55baeb84 6110
b6b08ebf
MK
61112003-05-18 Mark Kettenis <kettenis@gnu.org>
6112
6113 * dwarf2loc.c (find_location_expression): Change type of second
6114 argument to `size_t *'.
6115 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6116 for size variable.
6117
5ad1c190
DC
61182003-05-18 David Carlton <carlton@bactrian.org>
6119
6120 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6121 'linkage_name'. Add comment.
6122 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6123 'linkage_name'.
6124 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6125 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6126 (lookup_block_symbol): Ditto.
6127
b8b527c5
AC
61282003-05-16 Andrew Cagney <cagney@redhat.com>
6129
6130 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6131 * gdbarch.h, gdbarch.c: Re-generate.
6132 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6133 * TODO (REGISTER_BYTES): Delete reference.
6134 * alpha-tdep.c (alpha_gdbarch_init): Update.
6135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6136 * x86-64-tdep.c (x86_64_init_abi): Update.
6137 * vax-tdep.c (vax_gdbarch_init): Update.
6138 * v850-tdep.c (v850_gdbarch_init): Update.
6139 * sparc-tdep.c (sparc_gdbarch_init): Update.
6140 * sh-tdep.c (sh_gdbarch_init): Update.
6141 * s390-tdep.c (s390_gdbarch_init): Update.
6142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6143 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6144 (ns32k_gdbarch_init_32382): Update.
6145 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6146 * mcore-tdep.c (mcore_gdbarch_init): Update.
6147 * m68k-tdep.c (m68k_gdbarch_init): Update.
6148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6149 * ia64-tdep.c (ia64_gdbarch_init): Update.
6150 * i386-tdep.c (i386_gdbarch_init): Update.
6151 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6152 * hppa-tdep.c (hppa_gdbarch_init): Update.
6153 * h8300-tdep.c (h8300_gdbarch_init): Update.
6154 * frv-tdep.c (frv_gdbarch_init): Update.
6155 * cris-tdep.c (cris_gdbarch_init): Update.
6156 * avr-tdep.c (avr_gdbarch_init): Update.
6157 * arm-tdep.c (arm_gdbarch_init): Update.
6158 * sparc-tdep.c (sparc_pop_frame): Update.
6159 * rs6000-tdep.c (rs6000_pop_frame): Update.
6160 * remote.c (init_remote_state): Update.
6161 (remote_prepare_to_store): Update.
6162 * remote-vx.c (vx_prepare_to_store): Update.
6163 * remote-sds.c (sds_fetch_registers): Update.
6164 (sds_prepare_to_store): Update.
6165 * remote-array.c: Update.
6166 * regcache.c (init_legacy_regcache_descr): Update.
6167 (init_regcache_descr): Update.
6168 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6169 (mips_o64_extract_return_value): Update.
6170 * irix5-nat.c (fetch_core_registers): Update.
6171 * irix4-nat.c (fetch_core_registers): Update.
6172 * i386-tdep.h: Update.
6173 * hppa-tdep.c (pa_do_registers_info): Update.
6174 (pa_do_strcat_registers_info): Update.
6175 * cris-tdep.c (cris_register_bytes_ok): Update.
6176 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6177 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6178 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6179 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6180 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6181 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6182 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6183 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6184 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6185 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6186 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6187 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6188 (REGISTER_BYTES_OK): Update.
6189 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6190 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6191
ee2842e2
ILT
61922003-05-16 Ian Lance Taylor <ian@airs.com>
6193
6194 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6195 (vax_print_insn, print_insn_arg): Remove static functions.
6196 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6197 print_insn_vax from opcodes library.
6198 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6199
973177d3
AC
62002003-05-15 Andrew Cagney <cagney@redhat.com>
6201
aaab4dba
AC
6202 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6203 * target.h (memory_breakpoint_from_pc): Delete declaration.
6204 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6205 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6206 * monitor.c (monitor_insert_breakpoint): Use
6207 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6208 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6209 * gdbarch.h, gdbarch.c: Re-generate.
6210 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6211 (sparc_gdbarch_init): Set breakpoint_from_pc to
6212 sparc_breakpoint_from_pc.
6213 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6214 (BREAKPOINT_FROM_PC): Define.
6215 (sparc_breakpoint_from_pc): Declare.
6216 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6217 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6218 (BREAKPOINT_FROM_PC): Define.
6219 (BREAKPOINT): Delete macro.
6220 * target.h: Update comment.
6221 * s390-tdep.c (s390_gdbarch_init): Update comments.
6222 * remote.c: Update comments.
6223 * remote-mips.c: Update comments.
6224 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6225 * mem-break.c: Update comment.
6226 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6227 (ia64_memory_insert_breakpoint): Update.
6228 * config/sparc/tm-sparc.h: Update comment.
6229 * config/pa/tm-hppa64.h: Update comment.
6230 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6231 (rs6000_breakpoint_from_pc): Update.
6232 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6233 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6234 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6235 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6236 (mips_breakpoint_from_pc): Update.
6237 (mips_dump_tdep): Update.
6238
e06963ff
AC
6239 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6240 * minsyms.c (lookup_minimal_symbol): Inline
6241 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6242
973177d3
AC
6243 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6244 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6245 * p-lang.c (pascal_printstr): Ditto.
6246 * objc-lang.c (objc_printstr): Ditto.
6247 * m2-lang.c (m2_printstr): Ditto.
6248 * jv-valprint.c (java_print_value_fields): Ditto.
6249 * f-lang.c (f_printstr): Ditto.
6250 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6251 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6252 for repeat_count_threshold.
6253 * Makefile.in (cp-valprint.o): Update dependencies.
6254
5ea2bd7f 62552003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6256
5ea2bd7f
JJ
6257 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6258 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6259 they start with mov r2,r12. Support skipping over indirect stores
6260 of the input registers. Upon hitting a non-nop branch instruction
6261 or predicated instruction, bail out by setting lim_pc to the current
6262 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6263 beyond our calculated value and we have trust_limit set,
6264 use the lim_pc value.
6265
cc8c88f3
AC
62662003-05-15 Andrew Cagney <cagney@redhat.com>
6267
6268 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6269 generic_find_dummy_frame.
6270 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6271 (deprecated_generic_find_dummy_frame): Update.
6272 (deprecated_read_register_dummy): Update.
6273 * frame.c (deprecated_generic_get_saved_register): Update.
6274
909cd28e
TR
62752003-05-15 Theodore A. Roth <troth@openavr.org>
6276
6277 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6278 (avr_gdbarch_init): Set breakpoint_from_pc method.
6279
b923b08d
AC
62802003-05-15 Andrew Cagney <cagney@redhat.com>
6281
6282 * regcache.c (build_regcache): Set deprecated_register_valid
6283 directly.
6284 (deprecated_grub_regcache_for_register_valid): Delete function.
6285 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6286 declaration.
6287
ae2f03ac 62882003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6289
6290 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6291 * symtab.c (lookup_symbol_aux): Delete calls to
6292 lookup_symbol_aux_minsyms.
6293 (lookup_symbol_aux_minsyms): Comment out function and
6294 prototype. Delete lookup by mangled name.
ae2f03ac 6295
18ec9831
KB
62962003-05-14 Kevin Buettner <kevinb@redhat.com>
6297
6298 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6299 correctly indicate an empty stack and ``stack_allocated'' to the
6300 indicate the number of elements initially allocated.
6301 (dwarf_expr_grow_stack): Simplify method for computing new
6302 stack size. Don't loop infinitely if ``stack_len'' is zero.
6303 (execute_stack_op): Move ``ctx->in_reg'' initialization
6304 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6305 be used in conjuction with DW_OP_piece. Revise error message
6306 accordingly.
6307
de18ac1f
TR
63082003-05-14 Theodore A. Roth <troth@openavr.org>
6309
6310 * MAINTAINERS: Update my email address.
6311 * avr-tdep.c: Ditto.
6312
176620f1
EZ
63132003-05-14 Elena Zannoni <ezannoni@redhat.com>
6314
6315 * symtab.h (enum domain_enum): Rename from namespace_enum.
6316 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6317 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6318 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6319 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6320 TYPES_NAMESPACE, METHODS_NAMESPACE.
6321 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6322 (struct symbol, struct partial_symbol): Rename field
6323 'namespace_enum namespace' to 'domain_enum domain'.
6324 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6325 Delete old define kludge for namespace.
6326
6327 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6328 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6329 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6330 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6331 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6332 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6333 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6334 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6335 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6336 occurrences of the above.
6337
b7f31508
ILT
63382003-05-14 Ian Lance Taylor <ian@airs.com>
6339
6340 * Makefile.in (install-only): Use $(SHELL) when running
6341 mkinstalldirs.
6342
2fdbdd39
ILT
63432003-05-13 Ian Lance Taylor <ian@airs.com>
6344
a208d82c
ILT
6345 * MAINTAINERS (write after approval): Add myself.
6346
2fdbdd39
ILT
6347 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6348 second and third arguments.
6349 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6350 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6351
fbd9dcd3
AC
63522003-05-13 Andrew Cagney <cagney@redhat.com>
6353
6354 * defs.h (store_address): Delete declaration.
6355 findvar.c (store_address): Delete function.
6356 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6357 store_unsigned_integer.
6358 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6359 * v850-tdep.c (v850_push_arguments): Ditto.
6360 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6361 * sh-tdep.c (sh64_get_saved_register): Ditto.
6362 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6363 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6364 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6365 (mips_get_saved_register): Ditto.
6366 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6367 (find_func_descr, ia64_push_arguments): Ditto.
6368 * i386-tdep.c (i386_push_arguments): Ditto.
6369 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6370 * frv-tdep.c (frv_push_arguments): Ditto.
6371 * frame.c (legacy_saved_regs_prev_register): Ditto.
6372 (deprecated_generic_get_saved_register): Ditto.
6373 * findvar.c (unsigned_address_to_pointer): Ditto.
6374 * dwarf2read.c (dwarf2_const_value): Ditto.
6375 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6376 * alpha-tdep.c (alpha_push_arguments): Ditto.
6377
6760f9e6
JB
63782003-05-12 J. Brobecker <brobecker@gnat.com>
6379
6380 * NEWS: Mention that the hppa-hpux port has been partially
6381 multiarched (32bit ABIT only, so far).
6382
30e221b4
AC
63832003-05-11 Andrew Cagney <cagney@redhat.com>
6384
6385 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6386 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6387 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6388 sim/testsuite/sim/arm/misaligned2.ms, and
6389 sim/testsuite/sim/arm/misaligned3.ms.
6390 * disasm.h (struct ui_file): Add opaque struct declaration.
6391 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6392 * frame.h (struct ui_file): Ditto.
6393
dea7f9ba
MK
63942003-05-11 Mark Kettenis <kettenis@gnu.org>
6395
6396 * value.h: Pretty print.
6397
01986c48
MK
63982003-05-10 Mark Kettenis <kettenis@gnu.org>
6399
6400 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6401
123a958e
AC
64022003-05-08 Andrew Cagney <cagney@redhat.com>
6403
6404 * regcache.h (max_register_size): Delete declaration.
6405 * regcache.c (max_register_size): Delete function.
6406 (struct regcache_descr): Delete field "max_register_size".
6407 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6408 registers fit in MAX_REGISTER_SIZE.
6409 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6410 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6411 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6412 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6413 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6414 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6415 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6416 * dve3900-rom.c, hppa-tdep.c: Ditto.
6417
eb294659
DC
64182003-05-08 David Carlton <carlton@math.stanford.edu>
6419
6420 * valops.c (push_word): Fix typo.
6421
d9d9c31f
AC
64222003-05-08 Andrew Cagney <cagney@redhat.com>
6423
6424 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6425 * gdbarch.h: Re-generate.
6426 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6427 (legacy_max_register_raw_size): Delete declaration.
6428 * regcache.c (legacy_max_register_raw_size): Delete function.
6429 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6430 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6431 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6432 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6433 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6434 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6435 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6436 * findvar.c, dwarf2cfi.c: Ditto.
6437
22540ece
AC
64382003-05-08 Andrew Cagney <cagney@redhat.com>
6439
6440 * mips-tdep.c (read_signed_register): New function, moved to here
6441 from "regcache.c".
6442 (read_signed_register_pid): Ditto.
6443 * regcache.c (read_signed_register_pid): Delete function, moved to
6444 "mips-tdep.c".
6445 (read_signed_register): Ditto.
6446 * regcache.h (read_signed_register): Delete declaration.
6447 (read_signed_register_pid): Delete declaration.
6448
0c92afe8
AC
64492003-05-08 Andrew Cagney <cagney@redhat.com>
6450
6451 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6452 * gdbarch.h: Re-generate.
6453 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6454 (legacy_max_register_virtual_size): Delete declaration.
6455 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6456 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6457 * tracepoint.c (memrange_sortmerge): Ditto.
6458 * sparc-tdep.c (sparc_print_registers): Ditto.
6459 * regcache.c (legacy_max_register_virtual_size): Delete function.
6460
6037b830
JB
64612002-05-08 J. Brobecker <brobecker@gnat.com>
6462
6463 * fork-child.c (escape_bang_in_quoted_argument): New function.
6464 (fork_inferior): Escape '!' characters in quoted arguments
6465 only when needed.
6466
5d62c8b1
JB
64672003-05-08 J. Brobecker <brobecker@gnat.com>
6468
6469 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6470 the language of the CU is not currently supported by GDB.
6471
20a0e81d
JB
64722003-05-08 J. Brobecker <brobecker@gnat.com>
6473
6474 * defs.h (language): Add language_minimal enum value.
6475 * c-lang.c (minimal_language_defn): New language definition.
6476 (_initialize_c_language): Add the new minimal language to the list
6477 of languages known to GDB.
6478
710ee10a
KB
64792003-05-08 Kevin Buettner <kevinb@redhat.com>
6480
6481 * frame.c (get_frame_type): Don't attempt to lazily initialize
6482 frame's unwinder for legacy frames.
6483
1750fa04
AC
64842003-05-07 Andrew Cagney <cagney@redhat.com>
6485
6486 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6487 and "regcache" parameters.
6488 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6489
ddf9f258 64902003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6491
6492 * dwarf2read.c (dwarf_decode_lines): Only use output of
6493 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6494 the current address.
6495
87767c29
AC
64962003-05-07 Andrew Cagney <cagney@redhat.com>
6497
6498 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6499 code.
6500
5e7b2f39
JB
65012003-05-07 Jim Blandy <jimb@redhat.com>
6502
6503 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6504 'maint info symtabs' and 'maint info psymtabs'.
6505 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6506 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6507 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6508 Declarations updated.
6509 * maint.c (maintenance_list_command): Delete.
6510 (_initialize_maint_cmds): Update calls to add_cmd.
6511 * gdbcmd.h (maintenancelistlist): Delete declaration.
6512 * cli/cli-cmds.c (maintenancelistlist): Delete.
6513 (init_cmd_lists): Don't initialize it.
6514 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6515
f6684c31
AC
65162003-05-07 Andrew Cagney <cagney@redhat.com>
6517
6518 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6519 "regcache".
6520 (d10v_print_registers_info): Update.
6521 (d10v_dmap_register, d10v_imap_register): Delete functions.
6522 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6523 and "imap_register".
6524 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6525 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6526 * arch-utils.c (generic_remote_translate_xfer_address): Add
6527 "regcache" and "gdbarch" parameters.
6528 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6529 parameter. Change class to multi-arch.
6530 * gdbarch.h, gdbarch.c: Re-generate.
6531 * remote.c (remote_xfer_memory): Use
6532 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6533
e4846b08
JJ
65342003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6535
6536 * infrun.c (prev_pc): Move declaration ahead of proceed().
6537 (proceed): Refresh prev_pc value before resuming.
6538 (stop_stepping): Remove code to refresh prev_pc.
6539
6b71b8ac
KW
65402003-05-06 Kris Warkentin <kewarken@qnx.com>
6541
6542 * nto-tdep.c: Removed stray comment.
6543
47979a4b
KW
65442003-05-06 Kris Warkentin <kewarken@qnx.com>
6545
6546 * i386-nto-tdep.c: Fix old K&R function definitions.
6547 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6548 Also change add_show_from_set() call to add_setshow_cmd().
6549 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6550
00905d52
AC
65512003-05-05 Andrew Cagney <cagney@redhat.com>
6552
6553 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6554 (fprint_dummy_frames): New function.
6555 (maintenance_print_dummy_frames): New function.
6556 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6557 * frame.c (fprint_frame_id): Make global.
6558 * frame.h (fprint_frame_id): Declare.
6559 * Makefile.in (dummy-frame.o): Update dependencies.
6560
b1e29e33
AC
65612003-05-05 Andrew Cagney <cagney@redhat.com>
6562
6563 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6564 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6565 SIZEOF_CALL_DUMMY_WORDS.
6566 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6567 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6568 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6569 CALL_DUMMY_BREAKPOINT_OFFSET.
6570 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6571 CALL_DUMMY_START_OFFSET.
6572 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6573 * gdbarch.h, gdbarch.c: Re-generate.
6574 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6575 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6576 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6577 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6578 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6579 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6580 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6581 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6582 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6583 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6584 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6585 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6586 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6587 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6588 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6589
65902003-05-05 Kris Warkentin <kewarken@qnx.com>
6591
6592 * configure.tgt: Add i[3456]86-*-nto*.
6593 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6594 * nto-tdep.c: New file. Neutrino target support routines.
6595 * nto-tdep.h: New file. Neutrino target header.
6596 * config/tm-qnxnto.h: New file.
6597 * config/i386/i386nto.mt: New file.
6598 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6599
0ce3d317
AC
66002003-05-04 Andrew Cagney <cagney@redhat.com>
6601
6602 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6603 (load_infrun_state): Ditto.
6604 (struct thread_info): Drop "prev_func_name" field.
6605 * thread.c (load_infrun_state): Update.
6606 (save_infrun_state): Update.
6607 * infrun.c (prev_func_name): Delete variable.
6608 (init_wait_for_inferior): Do not clear prev_func_name.
6609 (stop_stepping, keep_going, context_switch): Do not swap
6610 prev_func_name.
6611 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6612 instead of PC_IN_SIGTRAMP.
6613
46654a5b
AC
66142003-05-04 Andrew Cagney <cagney@redhat.com>
6615
6616 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6617 REGISTER_BYTE with register_offset_hack.
6618 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6619 that REGISTER_BYTE is consistent with the regcache.
6620 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6621 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6622
14b08c1b
MK
66232003-05-04 Mark Kettenis <kettenis@gnu.org>
6624
04c8243f
MK
6625 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6626 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6627
14b08c1b
MK
6628 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6629
c7a11e01
JB
66302003-05-03 J. Brobecker <brobecker@gnat.com>
6631
6632 From Thierry Schneider <tpschneider1@yahoo.com>
6633 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6634 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6635 (mi-cmd-symbol.o): Add rule.
6636
7043d8dc
AC
66372003-05-03 Andrew Cagney <cagney@redhat.com>
6638
6639 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6640 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6641 * gdbarch.h, gdbarch.c: Re-generate.
6642 * d10v-tdep.c (d10v_push_dummy_code): New function.
6643 (d10v_gdbarch_init): Set push_dummy_code.
6644 * infcall.c (legacy_push_dummy_code): New function.
6645 (generic_push_dummy_code): New function.
6646 (push_dummy_code): New function.
6647 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6648 instead of dummy_addr, to push_dummy_call. Move call to
6649 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6650 switch.
6651 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6652
92bf2b80
AC
66532003-05-03 Andrew Cagney <cagney@redhat.com>
6654
6655 * disasm.h (print_insn): Declare.
6656 * disasm.c (init_gdb_disassemble_info): New function.
6657 (gdb_disassembly): Call init_gdb_disassemble_info.
6658 (gdb_print_insn): New function.
6659 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6660 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6661 * mcore-tdep.c: Include "disasm.h"
6662 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6663 * d10v-tdep.c: Include "disasm.h".
6664 (display_trace): Call gdb_print_insn, instead of print_insn.
6665 (print_insn): Delete function.
6666 * printcmd.c: Include "disasm.h".
6667 (print_insn): Delete function.
6668 (print_formatted): Call gdb_print_insn, instead of print_insn.
6669 * Makefile.in (printcmd.o): Update dependencies.
6670 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6671
27d94c49
AC
66722003-05-02 Andrew Cagney <cagney@redhat.com>
6673
82de1e5b
AC
6674 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6675 PC_REGNUM, re-indent.
6676 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6677 PC_REGNUM isn't set.
6678
27d94c49
AC
6679 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6680 * gdbarch.h, gdbarch.c: Re-generate.
6681 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6682 register_virtual_size, pc_regnum, or register_bytes.
6683 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6684 (d10v_register_type): Use D10V_PC_REGNUM.
6685 (d10v_print_registers_info, d10v_read_pc): Ditto.
6686 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6687 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6688
a9c0dc7f
DC
66892003-05-02 David Carlton <carlton@bactrian.org>
6690
6691 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6692 the name with mstrsave.
6693
e33d66ec
EZ
66942003-05-02 Elena Zannoni <ezannoni@redhat.com>
6695
6696 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6697 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6698 (host_charset_name, target_charset_name): New vars for use by
6699 set/show commands.
6700 (host_charset_enum, target_charset_enum): New enums for set/show
6701 commands.
6702 (set_charset_sfunc, set_host_charset_sfunc,
6703 set_target_charset_sfunc): New functions.
6704 (set_host_charset, set_target_charset): Make static.
6705 (list_charsets, set_host_charset_command,
6706 set_target_charset_command): Delete functions.
6707 (show_charset_command): Rewrite as....
6708 (show_charset): Hook this up with the set/show command mechanism.
6709 (_initialize_charset): Change names of charsets to match the
6710 set/show enums. Use host_charset_name and target_charset_name.
6711 Use set/show mechanism for charset, host-charset, target-charset
6712 commands. Do not make 'show host-charset' and 'show
6713 target-charset' be aliases of 'show charset'.
6714
6715 * charset.h (set_host_charset, set_target_charset): Don't export,
6716 they are not used outside the file.
6717
2b6fd0d8
AC
67182003-05-01 Andrew Cagney <cagney@redhat.com>
6719
6720 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6721 (gdb_disassembly): Make "di" non static, always initialize and
6722 cleanup. Always use dis_asm_read_memory.
6723 (gdb_dis_asm_read_memory): Delete function.
6724
6ae2f580
AC
67252003-05-01 Andrew Cagney <cagney@redhat.com>
6726
6727 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6728 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6729
810ecf9f
AC
67302003-04-30 Andrew Cagney <cagney@redhat.com>
6731
6732 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6733 "tm_print_insn_info".
6734 (TARGET_PRINT_INSN_INFO): Delete macro.
6735 (dis_asm_read_memory): Delete function declaration.
6736 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6737 (tm_print_insn_info): Delete variable definition.
6738 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6739 * gdbarch.h, gdbarch.c: Re-generate.
6740 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6741 "deprecated_tm_print_insn_info".
6742 * mcore-tdep.c (mcore_dump_insn): Ditto.
6743 * mips-tdep.c (mips_gdbarch_init): Ditto.
6744 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6745 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6746 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6747 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6748 instead of TARGET_PRINT_INSN_INFO, add comment.
6749 * s390-tdep.c (s390_get_frame_info): Instead of
6750 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6751 (s390_check_function_end, s390_is_sigreturn): Ditto.
6752 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6753 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6754 * disasm.c: Include "gdbcore.h".
6755 (_initialize_disasm): New function, initialize
6756 "deprecated_tm_print_insn_info".
6757 (deprecated_tm_print_insn_info): New variable.
6758 (dis_asm_read_memory): Moved from "corefile.c", made static.
6759 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6760 * Makefile.in (disasm.o): Update dependencies.
6761
07020390
AC
67622003-04-30 Andrew Cagney <cagney@redhat.com>
6763
6764 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6765
a9fa03de
AF
67662003-04-29 Adam Fedor <fedor@gnu.org>
6767
6768 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6769 * infcall.c (find_function_addr): Make non-static.
6770 * infcall.h (find_function_addr): Declare.
6771 * Makefile.in (eval.o): Update dependencies.
6772
1bae87b9
AF
67732003-04-28 Adam Fedor <fedor@gnu.org>
6774
6775 * symtab.c (symbol_find_demangled_name): Check for and demangle
6776 ObjC symbols.
6777 (symbol_init_demangled_name): Init for language_objc as well.
6778
0ba6dca9
AC
67792003-04-28 Andrew Cagney <cagney@redhat.com>
6780
6781 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6782 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6783 * gdbarch.h, gdbarch.c: Re-generate.
6784 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6785 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6786 * inferior.h (deprecated_read_fp): Rename read_fp.
6787 (generic_target_read_fp): Delete declaration.
6788 * regcache.c (generic_target_read_fp): Delete function.
6789 (deprecated_read_fp): Replace read_fp, use
6790 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6791 * d10v-tdep.c (d10v_read_fp): Delete function.
6792 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6793
6794 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6795 deprecated_target_read_fp to generic_target_read_fp.
6796 * sh-tdep.c (sh_gdbarch_init): Ditto.
6797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6799 * frv-tdep.c (frv_gdbarch_init): Ditto.
6800
6801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6802 deprecated_fp_regnum.
6803 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6804 * vax-tdep.c (vax_gdbarch_init): Ditto.
6805 * v850-tdep.c (v850_gdbarch_init): Ditto.
6806 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6807 * sh-tdep.c (sh_gdbarch_init): Ditto.
6808 * s390-tdep.c (s390_gdbarch_init): Ditto.
6809 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6810 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6811 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6812 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6814 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6815 * i386-tdep.c (i386_gdbarch_init): Ditto.
6816 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6817 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6818 * frv-tdep.c (frv_gdbarch_init): Ditto.
6819 * cris-tdep.c (cris_gdbarch_init): Ditto.
6820 * avr-tdep.c (avr_gdbarch_init): Ditto.
6821 * arm-tdep.c (arm_gdbarch_init): Ditto.
6822 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6823
6824 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6825 * v850-tdep.c (v850_gdbarch_init): Ditto.
6826 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6827 * sh-tdep.c (sh_gdbarch_init): Ditto.
6828 * s390-tdep.c (s390_gdbarch_init): Ditto.
6829 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6830 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6831 * mips-tdep.c (mips_gdbarch_init): Ditto.
6832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6833 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6834 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6835 * frv-tdep.c (frv_gdbarch_init): Ditto.
6836 * avr-tdep.c (avr_gdbarch_init): Ditto.
6837 * arm-tdep.c (arm_gdbarch_init): Ditto.
6838
6839 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6840 DEPRECATED_FP_REGNUM.
6841 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6842 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6843 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6844 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6845 (sparc32_register_virtual_type): Ditto.
6846 * sh-tdep.c (sh64_frame_chain): Ditto.
6847 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6848 (sh_nofp_frame_init_saved_regs): Ditto.
6849 (sh64_nofp_frame_init_saved_regs): Ditto.
6850 (sh_fp_frame_init_saved_regs): Ditto.
6851 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6852 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6853 * procfs.c (procfs_fetch_registers): Ditto.
6854 (procfs_store_registers): Ditto.
6855 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6856 (store_inferior_registers, fetch_core_registers): Ditto.
6857 (fetch_kcore_registers, clear_regs): Ditto.
6858 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6859 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6860 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6861 * nlm/i386.c (do_status): Ditto.
6862 * mipsv4-nat.c (supply_gregset): Ditto.
6863 * mips-tdep.c: Ditto for comments.
6864 * mips-nat.c (fetch_inferior_registers): Ditto.
6865 (store_inferior_registers, fetch_core_registers): Ditto.
6866 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6867 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6868 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6869 (i386_do_pop_frame, i386_register_type): Ditto.
6870 * hppa-tdep.c (hppa_frame_chain): Ditto.
6871 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6872 (hppa_pop_frame, hppa_read_fp): Ditto.
6873 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6874 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6875 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6876 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6877 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6878 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6879 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6880 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6881 * blockframe.c: Ditto for comments.
6882 * arch-utils.h: Ditto for comments.
6883 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6884 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6885 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6886 * alpha-tdep.h: Ditto for comments.
6887 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6888 (alpha_cannot_store_register): Ditto.
6889 (alpha_push_dummy_frame): Ditto.
6890 * alpha-nat.c (supply_gregset): Ditto.
6891
6892 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6893 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6894 * config/sparc/tm-sparc.h: Update comment.
6895
6896 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6897 deprecated_read_fp instead of TARGET_READ_FP.
6898 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6899 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6900 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6901 deprecated_read_fp instead of read_fp.
6902 * s390-tdep.c (s390_push_arguments): Ditto.
6903 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6904 * frame.h: Ditto in comments.
6905 * frame.c (legacy_get_prev_frame): Ditto.
6906 * dummy-frame.c (dummy_frame_this_id): Ditto.
6907 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6908
d7a27068
AC
69092003-04-28 Andrew Cagney <cagney@redhat.com>
6910
6911 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6912 * gdbarch.h, gdbarch.c: Re-generate.
6913 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6914 * vax-tdep.c (_initialize_vax_tdep): Update.
6915 * v850-tdep.c (_initialize_v850_tdep): Update.
6916 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6917 * s390-tdep.c (_initialize_s390_tdep): Update.
6918 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6919 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6920 * mips-tdep.c (_initialize_mips_tdep): Update.
6921 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6922 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6923 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6924 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6925 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6926 * frv-tdep.c (_initialize_frv_tdep): Update.
6927 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6928 (_initialize_cris_tdep): Update.
6929 * arch-utils.c (legacy_print_insn): Update.
6930 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6931
d2630e69
AF
69322003-04-26 Adam Fedor <fedor@gnu.org>
6933
6934 * linespec.c (decode_objc): New function to decode ObjC calls
6935 (decode_line_1): Check for ObjC calls (using decode_objc)
6936 * Makefile (linespec.o): Update dependencies.
6937
3086aeae
DJ
69382003-04-26 Daniel Jacobowitz <drow@mvista.com>
6939
6940 * breakpoint.h (struct breakpoint_ops): New.
6941 (struct breakpoint): Add ops member.
6942
6943 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6944 (mention): Use new breakpoint ops member.
6945 (set_raw_breakpoint): Initialize ops field to NULL.
6946 (print_exception_catchpoint, print_one_exception_catchpoint)
6947 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6948 (gnu_v3_exception_catchpoint_ops): New.
6949 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6950
1fbec6c3
AF
69512003-04-25 Adam Fedor <fedor@gnu.org>
6952
6953 * Makefile.in (COMMON_OBS): Add objc-lang.o
6954
0ef21242
AC
69552003-04-25 Andrew Cagney <cagney@redhat.com>
6956
6957 * d10v-tdep.c (print_insn): Delete function.
6958 (display_trace): Use TARGET_PRINT_INSN.
6959 (_initialize_d10v_tdep): Do not set tm_print_insn.
6960 (d10v_gdbarch_init): Set print_insn.
6961
f75493ed
AC
69622003-04-25 Andrew Cagney <cagney@redhat.com>
6963
6964 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6965 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6966 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6967 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6968 (nr_dmap_regs, a0_regnum): ... new functions.
6969 (d10v_print_registers_info): Use a0_regnum, use register_size.
6970 (d10v_register_byte): Delete function.
6971 (d10v_register_raw_size): Delete function.
6972 (d10v_register_type): Use a0_regnum.
6973 (d10v_print_registers_info): Use a0_regnum.
6974 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6975 (d10v_gdbarch_init): Do not set register_byte or
6976 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6977 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6978 extract_address.
6979 (trace_command): Use XCALLOC.
6980 (print_insn): Delete reference to tm_print_insn.
6981 (saved_regs_unwinder): Use store_unsigned_integer instead of
6982 store_address.
6983 * frame.h (FRAME_OBSTACK_CALLOC): Define
6984
2202b100
DC
69852003-04-25 David Carlton <carlton@bactrian.org>
6986
6987 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6988
4e45ca2e
AF
69892003-04-24 Adam Fedor <fedor@gnu.org>
6990
6991 * objc-lang.c: Include "valprint.h"
6992 * Makefile.in (objc-lang.o): Update dependencies.
6993
93de3e7f
AF
69942003-04-24 Adam Fedor <fedor@gnu.org>
6995
8ffd9b1b 6996 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6997 architecture dependant compilation and mark as unimplemented
6998 (until they get put in the gdbarch vector).
6999
0f20eeea
DC
70002003-04-23 David Carlton <carlton@bactrian.org>
7001
7002 * cp-support.c (cp_find_first_component): Accept 'operator' in
7003 more locations.
7004
74cfe982
AC
70052003-04-23 Andrew Cagney <cagney@redhat.com>
7006
7007 * infcall.c (call_function_by_hand): Eliminate redundant
7008 indentation. Move "saved_async" and "old_cleanups" to where they
7009 are needed.
8ffd9b1b 7010
52557533
AC
70112003-04-23 Andrew Cagney <cagney@redhat.com>
7012
7013 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7014 and "buffer". Move the "name" code to where it is needed.
7015
158775de
AC
70162003-04-23 Andrew Cagney <cagney@redhat.com>
7017
7018 * infcall.c (call_function_by_hand): Move variables "start_sp",
7019 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7020 code to ON_STACK switch branch.
8ffd9b1b 7021
ebc7896c
AC
70222003-04-23 Andrew Cagney <cagney@redhat.com>
7023
7024 * infcall.c (call_function_by_hand): Make declaration of "i",
7025 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7026 lint.
7027
d727590f
AC
70282003-04-23 Andrew Cagney <cagney@redhat.com>
7029
7030 * infcall.c (call_function_by_hand): Delete variable
7031 "n_method_args". Localize "param_type"'s declaration to the loop
7032 that it is used. Reinstate code assigning to said variable -
7033 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7034 Rationalize code using "param_type".
7035
d585e13a
AC
70362003-04-22 Andrew Cagney <cagney@redhat.com>
7037
7038 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7039 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7040 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7041 to DEPRECATED_PUSH_RETURN_ADDRESS.
7042
051caad9
KB
70432003-04-22 Kevin Buettner <kevinb@redhat.com>
7044
7045 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7046 on the DWARF2 register number prior to fetching a register.
7047
77296879
JB
70482003-04-22 J. Brobecker <brobecker@gnat.com>
7049
7050 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7051 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7052 this macro was always set to 0.
77296879
JB
7053 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7054 considering the fact that this macro was always set to 0.
7055 * hppa-tdep.h (hppa_store_return_value): Likewise.
7056 (hppa_extract_return_value): Likewise.
7057
4252f1df
JB
70582003-04-22 J. Brobecker <brobecker@gnat.com>
7059
7060 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7061 the hppa-pro target only.
7062
14604c6b
JB
70632003-04-21 J. Brobecker <brobecker@gnat.com>
7064
7065 Ongoing multi-arch conversion effort for HP/UX:
7066 * config/pa/tm-hppa.h: Move all macro that are no longer
7067 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7068 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7069
77eb01d1
JB
70702003-04-21 J. Brobecker <brobecker@gnat.com>
7071
7072 * config/pa/tm-hppa.h: Obsolete a section that was only used
7073 for hppa-pro.
7074
61995b3b
JB
70752003-04-21 J. Brobecker <brobecker@gnat.com>
7076
7077 Ongoing multi-arch conversion for HP/UX.
7078 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7079 if already defined (allows hppa64 to stay non-multiarched for now).
7080 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7081
4aa79dcc
AC
70822003-04-21 Andrew Cagney <cagney@redhat.com>
7083
7084 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7085
0f751ff2
AC
70862003-04-21 Andrew Cagney <cagney@redhat.com>
7087
7088 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7089 "i386_num_mmx_regs".
7090
04714b91
AC
70912003-04-21 Andrew Cagney <cagney@redhat.com>
7092
7093 * infcall.c: New file.
7094 * infcall.h: New file.
7095 * valarith.c: Include "infcall.h".
7096 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7097 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7098 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7099 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7100 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7101 (SFILES): Add "infcall.c"
7102 (COMMON_OBS): Add "infcall.o".
7103 (infcall.o): Specify dependencies.
7104 * value.h (call_function_by_hand): Delete declaration.
7105 * inferior.h (run_stack_dummy): Delete declaration.
7106 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7107 (run_stack_dummy): Move to "infcall.c", merged into
7108 call_function_by_hand.
7109 * valops.c (call_function_by_hand): Moved to "infcall.c".
7110 (find_function_addr, value_arg_coerce): Ditto.
7111 (unwindonsignal_p, coerce_float_to_double): Ditto.
7112 (_initialize_valops): Move "set/show coerce-float-to-double", and
7113 "set/show unwindonsignal" commands to "infcall.c".
7114 * v850-tdep.c, target.h: Update comments.
7115 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7116 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7117 (sh64_init_extra_frame_info): Update comments.
7118 * mn10300-tdep.c: Update comments.
7119 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7120 * config/sparc/tm-sparc.h: Update comments.
7121 * breakpoint.h: Update comments.
7122 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7123 * arm-tdep.c: Update comment.
7124
f9d3c2a8
MK
71252003-04-19 Mark Kettenis <kettenis@gnu.org>
7126
c40e1eab
MK
7127 * i386-tdep.c (i386_num_register_names): New variable.
7128 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7129 (MM0_REGNUM): Remove redundant parentheses in define.
7130 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7131 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7132 i386_mxcsr_regnum_p): Remove redundant parentheses.
7133 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7134
94ea66b3
MK
7135 * i386-tdep.c (i386_extract_return_value,
7136 i386_store_return_value): Correct check for availability of
7137 floating-point registers.
7138
54299a1d
MK
7139 * i386-tdep.c (i386_frame_num_args): Remove function.
7140 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7141
c86c27af
MK
7142 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7143 mmx_regnum_to_fp_regnum. Adjust all callers.
7144
f9d3c2a8
MK
7145 * i386-tdep.c (i386_get_longjmp_target): Use
7146 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7147 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7148 extract_address.
7149
94ba74a9
MK
71502003-04-19 Mark Kettenis <kettenis@gnu.org>
7151
7152 * core-regset.c: Update comments to reflect reality. Re-order
7153 includes.
7154 (fetch_core_registers): Use switch instead of if. Remove
7155 redundant prototype.
7156
4074e13c
JB
71572003-04-18 Jim Blandy <jimb@redhat.com>
7158
7159 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7160 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7161
e3ab4aba
RH
71622003-04-17 Richard Henderson <rth@redhat.com>
7163
7164 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7165
627bf7c1
EZ
71662003-04-17 Michael Snyder <msnyder@redhat.com>
7167 Karen Bennet <bennet@redhat.com>
7168
7169 Committed by Elena Zannoni <ezannoni@redhat.com>
7170 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7171
514621a9
EZ
71722003-04-17 Elena Zannoni <ezannoni@redhat.com>
7173
7174 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7175 value if the return type is void.
514621a9 7176
b4acd559
JJ
71772003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7178
7179 * thread-db.c: Reindented.
8ffd9b1b 7180
530b167e 71812003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7182
7183 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7184 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7185 as types.
7186
0a48e7e8
MS
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
8ffd9b1b 7210
ab9fe00e
KB
72112003-04-16 Kevin Buettner <kevinb@redhat.com>
7212
610a3745 7213 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7214 the size of ``long double'' to 16, instead of 8.
7215
e64a344c
MK
72162003-04-16 Mark Kettenis <kettenis@gnu.org>
7217
7218 * i386-linux-nat.c: Add some whitespace to make things more
7219 readable.
7220 (fetch_register, store_register, fetch_inferior_registers,
7221 store_inferior_registers): Get rid of assignment in if-statement.
7222 (store_register): Fix typo in error message.
7223
25d41031
AC
72242003-04-16 Andrew Cagney <cagney@redhat.com>
7225
7226 * utils.c (xmmalloc): Always allocate something, matches
7227 libiberty/xmalloc's semantics.
7228 (xmrealloc, xmcalloc): Ditto.
7229
c50901fd
AC
72302003-04-16 Andrew Cagney <cagney@redhat.com>
7231
7232 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7233 update comments.
7234 (get_frame_type): Initialize unwind and type when needed.
7235 (get_frame_id, frame_register_unwind): Ditto.
7236
f81824a9
AC
72372003-04-16 Andrew Cagney <cagney@redhat.com>
7238
7239 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7240 obsolete.
7241 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7242 * sparcl-stub.c: Obsolete file.
7243 * config/sparc/tm-sparclet.h: Obsolete file.
7244 * sparclet-stub.c: Obsolete file.
7245 * sparclet-rom.c: Obsolete file.
7246 * sparcl-tdep.c: Obsolete file.
7247 * config/sparc/tm-sparclite.h: Obsolete file.
7248 * config/sparc/sparclite.mt: Obsolete file.
7249 * config/sparc/sparclet.mt: Obsolete file.
7250 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7251 sparc86x-*-* obsolete.
7252
9219021c
DC
72532003-04-15 David Carlton <carlton@math.stanford.edu>
7254
7255 * Makefile.in (SFILES): Add cp-namespace.c.
7256 (COMMON_OBS): Add cp-namespace.o.
7257 (block.o): Depend on gdb_obstack_h and cp_support_h.
7258 (buildsym.o): Depend on cp_support_h.
7259 (cp-namespace.o): New.
7260 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7261 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7262 (dwarf2read.o): Depend on cp_support_h.
7263 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7264 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7265 processing_current_namespace.
7266 (read_namespace): Update processing_current_namespace; check for
7267 anonymous namespaces.
7268 (dwarf2_name): New function.
7269 (dwarf2_extension): Ditto.
7270 * cp-support.h: Update copyright, contributors.
7271 Add inclusion guards.
7272 Add opaque declaration for structs obstack, block, symbol.
7273 (struct using_direct): New struct.
7274 Add declarations for cp_find_first_component,
7275 cp_entire_prefix_len, processing_has_namespace_info,
7276 processing_current_namespace, cp_is_anonymous,
7277 cp_add_using_directive, cp_initialize_namespace,
7278 cp_finalize_namespace, cp_set_block_scope,
7279 cp_scan_for_anonymous_namespaces.
7280 * cp-namespace.c: New file.
7281 * cp-support.c: Update copyright.
7282 Include ctype.h, gdb_assert.h, gdbcmd.h.
7283 New variable maint_cplus_cmd_list.
7284 (cp_find_first_component): New function.
7285 (cp_entire_prefix_len, maint_cplus_command)
7286 (first_component_command, _initialize_cp_support): Ditto.
7287 * buildsym.c: Include cp-support.h.
7288 New variable using_list.
7289 (add_symbol_to_list): Check for anonymous namespaces.
7290 (finish_block): Set block's scope.
7291 (start_symtab): Initialize C++ namespace support.
7292 (end_symtab): Finalize C++ namespace support.
7293 * block.h: Add opaque declarations for structs
7294 block_namespace_info, using_direct, and obstack.
7295 Add declarations for block_set_scope and block_set_using.
7296 (struct block): Add 'language_specific' member.
7297 (BLOCK_NAMESPACE): New macro.
7298 * block.c: Include gdb_obstack.h and cp-support.h.
7299 (struct block_namespace_info): New struct.
7300 (block_set_scope): New function.
7301 (block_set_using, block_initialize_namespace): Ditto.
7302
d5a921c9
KB
73032003-04-14 Kevin Buettner <kevinb@redhat.com>
7304
7305 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7306 (locate_base): Return early if there aren't any link map offsets.
7307 (svr4_solib_create_inferior_hook): Warn if shared library support
7308 is unavailable.
7309
d2a52b27
DC
73102003-04-14 David Carlton <carlton@math.stanford.edu>
7311
7312 * symtab.c (symbol_set_names): Add prefix when storing Java names
7313 in hash table. Fix for PR java/1039.
7314
980cae7a
DC
73152003-04-14 David Carlton <carlton@math.stanford.edu>
7316
7317 * symtab.c (symbol_set_names): Rename 'name' arg to
7318 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7319 * symtab.h: Change 'name' argument in declaration of
7320 symbol_set_names to 'linkage_name'.
7321 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7322
e227b13c
AC
73232003-04-14 Andrew Cagney <cagney@redhat.com>
7324
7325 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7326 return the fully sign-extended register value.
7327 (get_frame_pointer): Ditto.
7328 (mips_pop_frame): Initialize "proc_desc" after checking for a
7329 dummy frame.
7330
36712a20
AC
73312003-04-14 Andrew Cagney <cagney@redhat.com>
7332
7333 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7334 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7335 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7336 (mips_push_register): Delete function.
7337 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7338 PUSH_FP_REGNUM.
7339
44ea7b70
JB
73402003-04-14 Jim Blandy <jimb@redhat.com>
7341
7342 * symmisc.c: #include "gdb_regex.h".
7343 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7344 functions.
7345 * maint.c (maintenance_list_command): New function.
7346 (_initialize_maint_cmds): Register the above as commands.
7347 * symtab.h (maintenance_list_symtabs,
7348 maintenance_list_psymtabs): New declarations.
7349 * cli/cli-cmds.c (maintenancelistlist): New variable.
7350 (init_cmd_lists): Initialize it.
7351 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7352 * gdbcmd.h (maintenancelistlist): New declaration.
7353 * Makefile.in (symmisc.o): Update dependencies.
7354
2d0c7962
EZ
73552003-04-14 Elena Zannoni <ezannoni@redhat.com>
7356
7357 * s390-nat.c: Include asm/types.h for addr_t.
7358
1947a811
CV
73592003-04-14 Corinna Vinschen <vinschen@redhat.com>
7360
7361 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7362 actually incoming type.
7363
adb616d7
AC
73642003-04-13 Andrew Cagney <cagney@redhat.com>
7365
7366 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7367 get_next_frame and get_frame_saved_regs.
7368
9b5e151c
AC
73692003-04-13 Andrew Cagney <cagney@redhat.com>
7370
7371 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7372 of gdbarch_num_regs.
7373
ef6e7e13
AC
73742003-04-13 Andrew Cagney <cagney@redhat.com>
7375
7376 * frame.h: Mention what replaced what in "struct frame_info".
7377 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7378 deprecated_update_frame_base_hack and
7379 deprecated_update_frame_pc_hack.
7380 * hppa-tdep.c: Ditto.
7381
61fbb938
DJ
73822003-04-13 Daniel Jacobowitz <drow@mvista.com>
7383
7384 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7385 to read_reg and update its comment. Remove regnum member.
7386 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7387 Don't call read_reg when setting in_reg. Call read_reg to get
7388 the frame base if it's in a register. Return the register number
7389 on the stack instead of in the context. Remove extra arguments
7390 to read_reg.
7391 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7392 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7393 the register number on the expression stack.
7394 (needs_frame_read_reg): Remove extra arguments.
7395
0d53c4c4
DJ
73962003-04-13 Daniel Jacobowitz <drow@mvista.com>
7397
7398 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7399 made non-static.
7400 (execute_stack_op): All callers updated.
7401 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7402 * dwarf2loc.c (find_location_expression): New function.
7403 (dwarf_expr_frame_base): Call it.
7404 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7405 (dwarf2_tracepoint_var_ref): New function, broken out from
7406 locexpr_tracepoint_var_ref.
7407 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7408 Make static.
7409 (loclist_read_variable, loclist_read_needs_frame): New functions.
7410 (loclist_describe_location, loclist_tracepoint_var_ref): New
7411 functions.
7412 (dwarf2_loclist_funcs): New struct location_funcs.
7413 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7414 (struct dwarf2_locexpr_baton): Add comments.
7415 (dwarf2_loclist_funcs): New extern.
7416 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7417 base_address and base_known.
7418 (dwarf_loc_buffer): New variable.
7419 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7420 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7421 (dwarf2_has_info): Initialize dwarf_loc_offset.
7422 (dwarf2_build_psymtabs): Read in .debug_loc.
7423 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7424 DWARF_LOC_SIZE.
7425 (psymtab_to_symtab_1): Likewise. Move base address calculation
7426 here, from...
7427 (dwarf2_get_pc_bounds): ... here. Use the base address from
7428 cu_header.
7429 (dwarf2_symbol_mark_computed): Handle location lists.
7430
6aca59a3
DJ
74312003-04-13 Daniel Jacobowitz <drow@mvista.com>
7432
7433 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7434 if the linkage name demangled successfully.
7435
aca1fcd0
MK
74362003-04-13 Mark Kettenis <kettenis@gnu.org>
7437
97095916
MK
7438 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7439 disassmbly_flavour): Removed.
7440
aca1fcd0
MK
7441 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7442
562a961f
MK
74432003-04-13 Mark Kettenis <kettenis@gnu.org>
7444
7445 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7446
bd013d54
AC
74472003-04-12 Andrew Cagney <cagney@redhat.com>
7448
7449 * frame.h (struct frame_info): Move definition from here ...
7450 * frame.c (struct frame_info): ... to here.
7451
167ef8b1
AC
74522003-04-12 Andrew Cagney <cagney@redhat.com>
7453
7454 * gdbthread.h (save_infrun_state): Delete parameter
7455 "prev_func_start".
7456 (struct thread_info): Delete field "prev_func_start".
7457 (load_infrun_state): Ditto.
7458 * thread.c (load_infrun_state, save_infrun_state): Update.
7459 * infrun.c (prev_func_start): Delete variable.
7460 (context_switch, init_wait_for_inferior): Update.
7461 (stop_stepping, keep_going): Update.
7462
da3331ec
AC
74632003-04-12 Andrew Cagney <cagney@redhat.com>
7464
7465 * gdbarch.sh: Add missing opaque declarations.
7466 * gdbarch.h: Regnerate.
7467 * symtab.h: Add missing opaque declarations.
7468 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7469 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7470 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7471 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7472 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7473 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7474 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7475 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7476 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7477 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7478 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7479 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7480 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7481
18adea3f
AC
74822003-04-11 Andrew Cagney <cagney@redhat.com>
7483
7484 * frame.c (get_frame_id): Return this frame's "id".
7485 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7486 function start.
7487 (legacy_saved_regs_this_id): Replace function body with
7488 internal-error.
7489 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7490 FRAME_OBSTACK_ZALLOC.
7491 (create_new_frame): Mark the frame ID as valid.
7492
2252e863
AO
74932003-04-11 Alexandre Oliva <aoliva@redhat.com>
7494
7495 * Makefile.in (libbfd_h): Added missing setting.
7496 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7497 according to the selected ABI.
7498
a8245ab8
JJ
74992003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7500
7501 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7502
6913c89a
AC
75032003-04-11 Andrew Cagney <cagney@redhat.com>
7504
7505 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7506 SAVED_PC_AFTER_CALL.
7507 * gdbarch.h, gdbarch.c: Regenerate.
7508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7509 * x86-64-tdep.c (x86_64_init_abi): Update.
7510 * vax-tdep.c (vax_gdbarch_init): Update.
7511 * v850-tdep.c (v850_gdbarch_init): Update.
7512 * sparc-tdep.c (sparc_gdbarch_init): Update.
7513 * sh-tdep.c (sh_gdbarch_init): Update.
7514 * s390-tdep.c (s390_gdbarch_init): Update.
7515 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7516 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7517 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7518 * mips-tdep.c (mips_gdbarch_init): Update.
7519 * mcore-tdep.c (mcore_gdbarch_init): Update.
7520 * m68k-tdep.c (m68k_gdbarch_init): Update.
7521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7522 * ia64-tdep.c (ia64_gdbarch_init): Update.
7523 (ia64_saved_pc_after_call): Update declaration.
7524 * i386ly-tdep.c (i386lynx_init_abi): Update.
7525 * i386-tdep.c (i386_gdbarch_init): Update.
7526 * hppa-tdep.c (hppa_gdbarch_init): Update.
7527 * h8300-tdep.c (h8300_gdbarch_init): Update.
7528 * frv-tdep.c (frv_gdbarch_init): Update.
7529 * cris-tdep.c (cris_gdbarch_init): Update.
7530 * avr-tdep.c (avr_gdbarch_init): Update.
7531 * arm-tdep.c (arm_gdbarch_init): Update.
7532 * alpha-tdep.c (alpha_gdbarch_init): Update.
7533 * ns32knbsd-nat.c (frame_num_args): Update.
7534 * ns32k-tdep.c (umax_frame_num_args): Update.
7535 * mips-tdep.c (mips_init_frame_pc_first): Update.
7536 * infrun.c (step_over_function): Update.
7537 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7538 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7539 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7540 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7541 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7542 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7543 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7544 * arch-utils.c (init_frame_pc_default): Update.
7545 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7546 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7547 declaration.
8ffd9b1b 7548
38edeab8
AC
75492003-04-11 Andrew Cagney <cagney@redhat.com>
7550
7551 * i387-tdep.c: Update copyright.
7552 (i387_to_double): Delete function.
7553 (double_to_i387): Delete function.
7554
81f8a206
AC
75552003-04-10 Andrew Cagney <cagney@redhat.com>
7556
7557 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7558 frame's function's address. Simplify.
7559 (d10v_frame_unwind_cache): Check that the frame's function is
7560 non-zero.
7561
6e691f7a
JB
75622003-04-10 Jim Blandy <jimb@redhat.com>
7563
7564 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7565 call to set_gdbarch_deprecated_push_arguments.
7566
7f78e237
AC
75672003-04-10 Andrew Cagney <cagney@redhat.com>
7568
7569 * frame.c (fprint_frame_id): New function.
7570 (fprint_frame_type, fprint_frame): New function.
7571 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7572 (create_sentinel_frame, get_frame_id): Ditto.
7573 (frame_id_p, frame_id_eq): Ditto.
7574 (frame_id_inner, create_new_frame): Ditto.
7575 (legacy_get_prev_frame, get_prev_frame): Ditto.
7576 (deprecated_update_frame_pc_hack): Ditto.
7577 (frame_register_unwind): Ditto.
7578 (deprecated_update_frame_base_hack): Ditto.
7579
f870b49b
CV
75802003-04-10 Corinna Vinschen <vinschen@redhat.com>
7581
7582 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7583 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7584 frame_chain function.
7585 * Makefile.in: Add dependencies due to above change.
7586
7c86889b
CV
75872003-04-10 Corinna Vinschen <vinschen@redhat.com>
7588
7589 * blockframe.c (legacy_frame_chain_valid): Move call to
7590 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7591 inside_entry_file.
7592
d0a55772
AC
75932003-04-09 Andrew Cagney <cagney@redhat.com>
7594
7595 * frame.h (struct frame_id): Replace "pc" and "base" with
7596 "stack_addr" and "code_addr". Update comments.
7597 (frame_id_build): Update parameter names and comment.
7598 (struct frame_info): Replace "id_p" and "id" with "this_id".
7599 * dummy-frame.c (dummy_frame_this_id): Update.
7600 * breakpoint.c (print_one_breakpoint): Update.
7601 * frame.c (get_frame_id): Update.
7602 (get_frame_base, frame_id_build): Update.
7603 (create_sentinel_frame, legacy_get_prev_frame): Update.
7604 (deprecated_update_frame_base_hack): Update.
7605 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7606 (frame_id_inner): Ditto.
7607
ac16bf07
AC
76082003-04-09 Andrew Cagney <cagney@redhat.com>
7609
7610 * defs.h (gdb_print_host_address): Make "addr" parameter a
7611 pointer constant.
7612 * utils.c (gdb_print_host_address): Update.
7613
366cfc9e
KB
76142003-04-09 Kevin Buettner <kevinb@redhat.com>
7615
7616 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7617 register number for R0 is 0.
7618
cd983b5c
JB
76192003-04-09 J. Brobecker <brobecker@gnat.com>
7620
7621 * frame.h (struct gdbarch): Add opaque structure definition
7622 to avoid a compilation warning on LynxOS 4.0.
7623
d1340264
AC
76242003-04-09 Andrew Cagney <cagney@redhat.com>
7625
7626 * frame.h (struct frame_info): Delete field "pc". Replace
7627 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7628 structure.
7629 * frame.c (frame_pc_unwind): Update.
7630 (create_sentinel_frame): Do not set "pc".
7631 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7632 (get_frame_pc): Call frame_pc_unwind.
7633 (deprecated_update_frame_pc_hack): Update.
7634 (create_new_frame): Use "pc" not "->pc".
7635
90a6fffb
AC
76362003-04-09 Andrew Cagney <cagney@redhat.com>
7637
7638 * frame.c (get_frame_id): Eliminate code updating "frame".
7639 (legacy_get_prev_frame): Ditto.
7640 (get_frame_base): Return id.base directly.
7641 (deprecated_update_frame_base_hack): Update "id.base".
7642 * frame.h (struct frame_info): Delete field "frame".
7643
2fbce691
AC
76442003-04-09 Andrew Cagney <cagney@redhat.com>
7645
7646 * NEWS: Mention that the "Sequent family" is obsolete.
7647 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7648 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7649 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7650 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7651 * config/i386/tm-ptx4.h: Obsolete file.
7652 * config/i386/tm-ptx.h: Obsolete file.
7653 * symm-tdep.c: Obsolete file.
7654 * config/i386/symmetry.mt: Obsolete file.
7655 * config/i386/tm-symmetry.h: Obsolete file.
7656 * symm-nat.c: Obsolete file.
7657 * config/i386/nm-symmetry.h: Obsolete file.
7658 * config/i386/xm-symmetry.h: Obsolete file.
7659 * config/i386/symmetry.mh: Obsolete file.
7660 * config/i386/nm-ptx4.h: Obsolete file.
7661 * config/i386/ptx4.mh: Obsolete file.
7662 * config/i386/ptx.mt: Obsolete file.
7663 * config/i386/ptx.mh: Obsolete file.
7664 * config/i386/xm-ptx4.h: Obsolete file.
7665 * config/i386/xm-ptx.h: Obsolete file.
7666
78c43945
AC
76672003-04-09 Andrew Cagney <cagney@redhat.com>
7668
7669 Obsolete mips*-*-mach3*.
7670 * NEWS: Mention that mips*-*-mach3* is obsolete.
7671 * m3-nat.c: Obsolete file.
7672 * config/nm-m3.h: Obsolete file.
7673 * config/mips/tm-mipsm3.h: Obsolete file.
7674 * config/mips/mipsm3.mt: Obsolete file.
7675 * config/mips/mipsm3.mh: Obsolete file.
7676 * config/mips/xm-mipsm3.h: Obsolete file.
7677 * mipsm3-nat.c: Obsolete file.
7678 * configure.host: Obsolete mips-dec-mach3*.
7679 * configure.tgt: Obsolete mips*-*-mach3*.
7680
f1908289
AC
76812003-04-09 Andrew Cagney <cagney@redhat.com>
7682
7683 * doublest.h: Update copyright.
7684 (deprecated_store_floating, deprecated_extract_floating): Rename
7685 store_floating and extract_floating. Update comments.
7686 * doublest.c: Update copyright.
7687 (extract_floating_by_length): Replace extract_floating.
7688 (store_floating_by_length): Replace store_floating.
7689 (deprecated_extract_floating): New function.
7690 (deprecated_store_floating): New function.
7691 (extract_typed_floating): Call extract_floating_by_length.
7692 (store_typed_floating): Call store_floating_by_length.
7693 * x86-64-tdep.c (x86_64_store_return_value): Update.
7694 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7695 (sh64_extract_return_value): Update.
7696 (sh_sh4_register_convert_to_virtual): Update.
7697 (sh_sh64_register_convert_to_virtual): Update.
7698 (sh_sh4_register_convert_to_raw): Update.
7699 (sh_sh64_register_convert_to_raw): Update.
7700 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7701 (rs6000_register_convert_to_raw): Update.
7702 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7703 (ia64_register_convert_to_raw): Update.
7704 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7705 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7706 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7707 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7708 (alpha_register_convert_to_raw): Update.
7709
4443bd83
AC
77102003-04-08 Andrew Cagney <cagney@redhat.com>
7711
7712 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7713 * gdbarch.h, gdbarch.c: Re-generate.
7714 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7715 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7716 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7717 conditionally, use frame_pc_unwind as an alternative. Add
7718 comments.
7719 * arch-utils.c (init_frame_pc_default): Only call
7720 SAVED_PC_AFTER_CALL when available.
7721
c0236d92
EZ
77222003-04-08 Elena Zannoni <ezannoni@redhat.com>
7723
fbe586ae 7724 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7725 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7726 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7727 (start_remote): Ditto.
7728 (handle_inferior_event): Ditto.
7729 (save_inferior_status): Ditto.
7730 (restore_inferior_status): Ditto.
7731 * infcmd.c (attach_command): Ditto.
7732 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7733 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7734 * alpha-tdep.c (heuristic_proc_start): Ditto.
7735 * mips-tdep.c (heuristic_proc_start): Ditto.
7736 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7737 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7738 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7739 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7740 * remote-vx.c (vx_create_inferior): Ditto.
7741
77422003-04-08 Elena Zannoni <ezannoni@redhat.com>
7743
7744 * infrun.c (stop_soon_quietly): Make it an enum, to better
7745 override the default behavior of handle_inferior_event.
7746 (clear_proceed_status): Update uses of stop_soon_quietly to
7747 reflect that it is now an enum.
7748 (start_remote): Ditto.
7749 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7750 is set to handle the new GNU/Linux kernel behavior for
7751 attach/sigstop. Update uses of stop_soon_quietly.
7752 * inferior.h (enum stop_kind): New enum.
7753 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7754 Reset normal handle_inferior_event behavior, afterwards.
7755 * fork-child.c (startup_inferior): Update.
7756 * alpha-tdep.c (heuristic_proc_start): Update.
7757 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7758 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7759 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7760 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7761 * remote-vx.c (vx_create_inferior): Update.
7762 * mips-tdep.c (heuristic_proc_start): Update.
7763
1211bce3
EZ
77642003-04-07 Elena Zannoni <ezannoni@redhat.com>
7765
7766 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7767 be freed more than once, causing wild memory corruptions.
1211bce3 7768 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7769 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7770 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7771 with the "core" target.
1211bce3 7772
f0ef6b29
KB
77732003-04-07 Kevin Buettner <kevinb@redhat.com>
7774
7775 * mips-tdep.c (mips_print_fp_register): New function, created from
7776 do_fp_register_row(). Registers are now (also) printed as hex.
7777 Only one register is printed per row.
7778 (mips_print_register, do_fp_register_row): Print floating point
7779 registers with mips_print_fp_register().
7780
8cf71652
AC
77812003-04-06 Andrew Cagney <cagney@redhat.com>
7782
5e488a7b
AC
7783 * valprint.h (inspect_it): Add extern declaration.
7784 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7785 (selectors_info, classes_info): Ditto.
7786 (find_objc_msgcall): Fix indentation.
7787 (objc_printstr): Delete extern declarations.
7788
8cf71652
AC
7789 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7790
e6ba3bc9
AC
77912003-04-06 Andrew Cagney <cagney@redhat.com>
7792
7793 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7794 Update comment.
7795 * frame.c (legacy_saved_regs_this_id): Update.
7796 (legacy_get_prev_frame): Update.
7797 * xstormy16-tdep.c: Update comment.
7798 * sparc-tdep.c (sparc_frame_chain): Update comment.
7799 * blockframe.c (legacy_frame_chain_valid): Update.
7800
55e1d7e7
AC
78012003-04-06 Andrew Cagney <cagney@redhat.com>
7802
996179ee
AC
7803 * valprint.c (val_print_type_code_int): Delete #ifdef
7804 PRINT_TYPELESS_INTEGER code.
7805
55e1d7e7
AC
7806 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7807 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7808 multi-arch definition.
7809 * gdbarch.h: Re-generate.
7810
43bd9a9e
AC
78112003-04-05 Andrew Cagney <cagney@redhat.com>
7812
7813 Eliminate FRAME_FIND_SAVED_REGS.
7814 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7815 Change FSR parameter to a pointer.
7816 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7817 Assume FSR parameter is a pointer.
7818 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7819 Make fsr a pointer.
7820 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7821 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7822 saved_regs a pointer.
7823 (hppa_frame_saved_pc): Ditto.
7824 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7825 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7826 pointer.
7827 (restore_pc_queue): Make fsr a pointer.
7828 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7829 (hppa_frame_chain): Make saved_regs a pointer, call
7830 hppa_frame_init_saved_regs.
7831 * sparc-tdep.c: Include "gdb_assert.h".
7832 (sparc_frame_find_saved_regs): Replace internal_error with
7833 gdb_assert.
7834 * remote-vxsparc.c (vx_read_register): Delete reference to
7835 FRAME_FIND_SAVED_REGS.
7836 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7837 * gdbarch.h: Regenerate.
7838 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7839 (deprecated_get_frame_saved_regs): Delete declaration.
7840 (struct frame_saved_regs): Delete definition.
7841 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7842 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7843 (hppa_frame_find_saved_regs): Delete declaration.
7844 (FRAME_FIND_SAVED_REGS): Delete macro.
7845 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7846 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7847 FRAME_FIND_SAVED_REGS in comment.
7848
be41e9f4
AC
78492003-04-05 Andrew Cagney <cagney@redhat.com>
7850
7851 * frame.c (frame_func_unwind, get_frame_func): New functions.
7852 * frame.h (get_frame_func, frame_func_unwind): Declare.
7853 (struct frame_info): Add field "prev_func" for caching the
7854 previous frame's function address.
7855 * arm-tdep.c (arm_frameless_function_invocation): Combine
7856 get_pc_function_start and get_frame_pc into get_frame_func.
7857 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7858 (sh64_nofp_frame_init_saved_regs): Ditto.
7859 * s390-tdep.c (s390_function_start): Ditto.
7860 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7861 (rs6000_frameless_function_invocation): Ditto.
7862 (rs6000_frame_saved_pc): Ditto.
7863 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7864 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7865 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7866 (i386_frame_init_saved_regs): Ditto.
7867 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7868 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7869 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7870 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7871 * blockframe.c (frameless_look_for_prologue): Ditto.
7872
a01dd7cc
AC
78732003-04-05 Andrew Cagney <cagney@redhat.com>
7874
7875 * frame.c (legacy_get_prev_frame): Link prev to next at the
7876 function start. Update comments.
7877
5e5592e6
AC
78782003-04-05 Andrew Cagney <cagney@redhat.com>
7879
7880 * frame.c (get_frame_id): Update comment.
7881 (legacy_get_prev_frame): Update comment.
7882 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7883 * gdbarch.h: Regenerate.
7884 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7885 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7886
6fba5002
AC
78872003-04-05 Andrew Cagney <cagney@redhat.com>
7888
7889 * stack.c (print_frame_info): Use get_frame_pc.
7890
7df05f2b
AC
78912003-04-04 Andrew Cagney <cagney@redhat.com>
7892
7893 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7894 the frame's type from the unwinder.
7895 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7896 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7897 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7898 (get_frame_base_address): Use get_frame_type.
7899 (get_frame_locals_address, get_frame_args_address): Ditto.
7900 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7901 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7902 (struct frame_info): Add comment explaining why the frame contains
7903 a "type" field.
7904 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7905 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7906 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7907 NORMAL_FRAME.
7908 * frame-unwind.h: Include "frame.h".
7909 (struct frame_unwind): Add "type" field.
7910 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7911
11889732
AC
79122003-04-04 Andrew Cagney <cagney@redhat.com>
7913
7914 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7915 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7916 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7917 get_frame_base.
7918 (d10v_unwind_dummy_id): Use frame_id_build.
7919 * frame.c (find_frame_sal): Use get_frame_pc.
7920 (create_new_frame): Use deprecated_update_frame_pc_hack and
7921 deprecated_update_frame_base_hack.
7922 (create_sentinel_frame): Add comment about ->pc going away.
7923 (get_prev_frame): Add comment about ->pc going away.
7924 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7925 frame_id_build, deprecated_update_frame_pc_hack and
7926 deprecated_update_frame_base_hack.
7927 (select_frame): Use get_frame_pc.
7928 (legacy_saved_regs_this_id): Use frame_id_build.
7929
50c46a0d
EZ
79302003-04-04 Elena Zannoni <ezannoni@redhat.com>
7931
fbe586ae
RH
7932 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7933 signed integer case.
7934 (classify_argument): Handle enumerations and references.
50c46a0d 7935
50bbdbd9
AC
79362003-04-04 Andrew Cagney <cagney@redhat.com>
7937
7938 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7939 ID to NULL.
7940
36018d2e
AF
79412003-04-01 Adam Fedor <fedor@gnu.org>
7942
7943 * gdb/objc-lang.c (selectors_info): Replace calls to
7944 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7945 SYMBOL_NATURAL_NAME.
7946 (classes_info, find_methods): Likewise.
7947
35cec841
KB
79482003-04-03 Kevin Buettner <kevinb@redhat.com>
7949
7950 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7951 ``mach'' to the value determined by bfd_default_set_arch_mach().
7952
43136899
BR
79532003-04-02 Bob Rossi <bob_rossi@cox.net>
7954
7955 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7956 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7957 (mi-cmd-file.o): Update dependencies.
7958
040b99fd
KB
79592003-04-01 Kevin Buettner <kevinb@redhat.com>
7960
7961 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7962 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7963
9a3d7dfd
AF
79642003-04-01 Adam Fedor <fedor@gnu.org>
7965
7966 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7967 * language.h (struct language_defn): Add la_demangle.
7968 (language_demangle): Declare.
7969 * language.c (language_demangle): New function.
7970 (unk_lang_demangle): Likewise.
7971 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7972 Add ukn_lang_demangle.
9a3d7dfd 7973 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7974 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7975 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7976 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7977 * jv-lang.c (java_demangle): New function
7978 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7979 * objc-lang.c (objc_demangle): Add options argument
7980 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7981 * maint.c (maintenance_demangle): Replace switch with
7982 call to language_demangle.
7983 * utils.c (fprintf_symbol_filtered): Likewise.
7984
5e074003
AC
79852003-04-01 Andrew Cagney <cagney@redhat.com>
7986
7987 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7988 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7989 PRINT_TYPELESS_INTEGER.
7990 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7991 PUSH_RETURN_ADDRESS.
7992
270cb5d6
AC
79932003-04-01 Andrew Cagney <cagney@redhat.com>
7994
7995 * Makefile.in (d10v-tdep.o): Update dependencies.
7996 * d10v-tdep.c: Include "frame-base.h".
7997 (d10v_frame_unwind): Make constant.
7998 (d10v_frame_base_address): New function.
7999 (d10v_frame_base): New variable.
8000 (d10v_gdbarch_init): Set frame_base default.
8001 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8002 comment for base.
8003 (d10v_frame_unwind_cache): Set and use "prev_sp".
8004 (d10v_frame_this_id): Use the previous frame's inner most stack
8005 address and this frame's func address for the frame ID. Use
8006 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8007
6bfb3e36
AC
80082003-04-01 Andrew Cagney <cagney@redhat.com>
8009
8010 * frame.h (get_frame_locals_address, get_frame_args_address):
8011 Refer to the base address, instead of the address of the first
8012 local or parameter.
8ffd9b1b 8013
da62e633
AC
80142003-04-01 Andrew Cagney <cagney@redhat.com>
8015
8016 Add frame debug info addresses:
8017 * frame-base.c: New file.
8018 * frame-base.h: New file.
8019 * frame.h (struct frame_base): Add opaque declaration.
8020 (get_frame_base): Update comment.
8021 (get_frame_base_address): Declare.
8022 (get_frame_locals_address): Declare.
8023 (get_frame_args_address): Declare.
8024 (struct frame_info): Add "base" and "base_cache". Update
8025 comments on the unwinder.
8026 * frame.c: Include "frame-base.h".
8027 (get_frame_locals_address): New function.
8028 (get_frame_base_address): New function.
8029 (get_frame_args_address): New function.
8030 * findvar.c (read_var_value): Use get_frame_locals_address and
8031 get_frame_args_address.
8032 * stack.c (frame_info): Use get_frame_locals_address and
8033 get_frame_args_address.
8034 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8035 moved to "frame-base.c".
8036 * printcmd.c (print_frame_nameless_args): Ditto.
8037 * symtab.h (address_class): Update comments.
8038 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8039 get_frame_base_address.
8040 * dwarf2expr.c (execute_stack_op): Ditto.
8041 * Makefile.in (frame_base_h): Define.
8042 (frame.o): Update dependencies.
8043 (frame-base.o): Add dependencies.
8044 (SFILES): Add frame-base.c.
8045 (COMMON_OBS): Add frame-base.o.
8046
3d30e9c2
AC
80472003-04-01 Andrew Cagney <cagney@redhat.com>
8048
8049 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8050 CALL_DUMMY_LENGTH): Ditto.
8051 * gdbarch.c: Re-generate.
8052 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8053 (CALL_DUMMY_LENGTH): Delete macro.
8054 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8055 * arm-tdep.c (arm_gdbarch_init): Ditto.
8056 * avr-tdep.c (avr_gdbarch_init): Ditto.
8057 * cris-tdep.c (cris_gdbarch_init): Ditto.
8058 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8059 * frv-tdep.c (frv_gdbarch_init): Ditto.
8060 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8061 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8062 * i386-tdep.c (i386_gdbarch_init): Ditto.
8063 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8065 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8066 * mips-tdep.c (mips_gdbarch_init): Ditto.
8067 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8068 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8069 * s390-tdep.c (s390_gdbarch_init): Ditto.
8070 * sh-tdep.c (sh_gdbarch_init): Ditto.
8071 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8072 * v850-tdep.c (v850_gdbarch_init): Ditto.
8073 * vax-tdep.c (vax_gdbarch_init): Ditto.
8074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8075
ce0c7262
CV
80762003-04-01 Corinna Vinschen <vinschen@redhat.com>
8077
8078 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8079
73dd234f
AC
80802003-04-01 Andrew Cagney <cagney@redhat.com>
8081
8082 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8083 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8084 * gdbarch.h, gdbarch.c: Re-generate.
8085 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8086 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8087 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8088 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8089 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8090 * infcmd.c (run_stack_dummy): Simplify assuming
8091 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8092 * infrun.c (handle_inferior_event): Ditto.
8093 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8094 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8095 * arm-tdep.c (arm_gdbarch_init): Ditto.
8096 * avr-tdep.c (avr_gdbarch_init): Ditto.
8097 * cris-tdep.c (cris_gdbarch_init): Ditto.
8098 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8099 * frv-tdep.c (frv_gdbarch_init): Ditto.
8100 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8101 * i386-tdep.c (i386_gdbarch_init): Ditto.
8102 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8104 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8105 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8106 * mips-tdep.c (mips_gdbarch_init): Ditto.
8107 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8108 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8109 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8110 * s390-tdep.c (s390_gdbarch_init): Ditto.
8111 * sh-tdep.c (sh_gdbarch_init): Ditto.
8112 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8113 * v850-tdep.c (v850_gdbarch_init): Ditto.
8114 * vax-tdep.c (vax_gdbarch_init): Ditto.
8115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8116
97606a13
DJ
81172003-04-01 Daniel Jacobowitz <drow@mvista.com>
8118
8119 * symfile.c (symfile_relocate_debug_section): Update call to
8120 bfd_simple_get_relocated_section_contents.
8121
e8ab51f7
AC
81222003-03-31 Andrew Cagney <cagney@redhat.com>
8123
8124 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8125 * gdbarch.h, gdbarch.c: Regenerate.
8126 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8127 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8128 available.
8129 * frame.h (generic_fix_call_dummy): Delete declaration.
8130 * dummy-frame.h: Update comment.
8131 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8133 fix_call_dummy.
8134 * sh-tdep.c (sh_gdbarch_init): Ditto.
8135 * s390-tdep.c (s390_gdbarch_init): Ditto.
8136 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8139 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8140 * i386-tdep.c (i386_gdbarch_init): Ditto.
8141 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8142 * frv-tdep.c (frv_gdbarch_init): Ditto.
8143 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8144 * cris-tdep.c (cris_gdbarch_init): Ditto.
8145 * avr-tdep.c (avr_gdbarch_init): Ditto.
8146 * arm-tdep.c (arm_gdbarch_init): Ditto.
8147
018d1b48
JB
81482003-03-31 J. Brobecker <brobecker@gnat.com>
8149
8150 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8151 (INIT_FRAME_AP): Likewise.
8152 (EXTRA_FRAME_INFO): Likewise.
8153
e9a2674e
AC
81542003-03-31 Andrew Cagney <cagney@redhat.com>
8155
8156 * gdbarch.sh: Include "symfile.h".
8157 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8158 * gdbarch.h, gdbarch.c: Re-generate.
8159 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8160 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8161 call_dummy_address, the default is at entry_point_address.
8162 * v850-tdep.c (v850_gdbarch_init): Ditto.
8163 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8164 * sh-tdep.c (sh_gdbarch_init): Ditto.
8165 * s390-tdep.c (s390_gdbarch_init): Ditto.
8166 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8167 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8168 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8169 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8170 * i386-tdep.c (i386_gdbarch_init): Ditto.
8171 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8172 * frv-tdep.c (frv_gdbarch_init): Ditto.
8173 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8174 * cris-tdep.c (cris_gdbarch_init): Ditto.
8175 * arm-tdep.c (arm_gdbarch_init): Ditto.
8176
e8a8712a
AC
81772003-03-31 Andrew Cagney <cagney@redhat.com>
8178
8179 * gdbarch.sh (CALL_DUMMY_P): Delete.
8180 * gdbarch.h, gdbarch.c: Re-generate.
8181 * inferior.h (CALL_DUMMY_P): Delete macro.
8182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8183 * vax-tdep.c (vax_gdbarch_init): Update.
8184 * v850-tdep.c (v850_gdbarch_init): Update.
8185 * sparc-tdep.c (sparc_gdbarch_init): Update.
8186 * sh-tdep.c (sh_gdbarch_init): Update.
8187 * s390-tdep.c (s390_gdbarch_init): Update.
8188 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8189 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8190 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8191 * mips-tdep.c (mips_gdbarch_init): Update.
8192 * mcore-tdep.c (mcore_gdbarch_init): Update.
8193 * m68k-tdep.c (m68k_gdbarch_init): Update.
8194 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8195 * ia64-tdep.c (ia64_gdbarch_init): Update.
8196 * i386-tdep.c (i386_gdbarch_init): Update.
8197 * h8300-tdep.c (h8300_gdbarch_init): Update.
8198 * frv-tdep.c (frv_gdbarch_init): Update.
8199 * d10v-tdep.c (d10v_gdbarch_init): Update.
8200 * cris-tdep.c (cris_gdbarch_init): Update.
8201 * breakpoint.c (deprecated_frame_in_dummy): Update.
8202 * avr-tdep.c (avr_gdbarch_init): Update.
8203 * alpha-tdep.c (alpha_gdbarch_init): Update.
8204 * arm-tdep.c (arm_gdbarch_init): Update.
8205 * dummy-frame.c (dummy_frame_this_id): Update comments.
8206 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8207 * frame.c (legacy_get_prev_frame): Ditto.
8208 * valops.c (call_function_by_hand): Delete function.
8209 (hand_function_call): Rename to call_function_by_hand
8210
ed234cf8
AC
82112003-03-30 Andrew Cagney <cagney@redhat.com>
8212
8213 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8214 * value.h (struct value): Update comment.
ed234cf8 8215
06c77151
AC
82162003-03-30 Andrew Cagney <cagney@redhat.com>
8217
6c2b5168
AC
8218 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8219 D10V_FP_REGNUM.
8220 (d10v_gdbarch_init): Do not set fp_regnum.
8221
06c77151
AC
8222 * frame.c (get_frame_base): Force ID initialization.
8223 (get_prev_frame): Move computation of the frame ID from here ...
8224 (get_frame_id): ... to here.
8225 (legacy_get_prev_frame): Mark the frame ID as valid.
8226 * frame.h (struct frame_info): Add field "id_p".
8227
97a1a11c
MK
82282003-03-30 Mark Kettenis <kettenis@gnu.org>
8229
8230 * i386-tdep.c (i386_store_struct_return): Removed.
8231 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8232
6c0e89ed
AC
82332003-03-30 Andrew Cagney <cagney@redhat.com>
8234
8235 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8236 * gdbarch.h, gdbarch.c: Regenerate.
8237 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8238 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8240 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8241 * i386-tdep.c (i386_gdbarch_init): Ditto.
8242 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8243 * cris-tdep.c (cris_gdbarch_init): Ditto.
8244 * vax-tdep.c (vax_gdbarch_init): Ditto.
8245 * s390-tdep.c (s390_gdbarch_init): Ditto.
8246 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8247 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8248 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8249 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8250 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8251 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8252 * sparc-tdep.c (sparc_gdbarch_init): Update.
8253 * sh-tdep.c (sh_gdbarch_init): Update.
8254 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8255 * mips-tdep.c (mips_gdbarch_init): Update.
8256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8257 * ia64-tdep.c (ia64_gdbarch_init): Update.
8258 * frv-tdep.c (frv_gdbarch_init): Update.
8259 * avr-tdep.c (avr_gdbarch_init): Update.
8260 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8261 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8262 instead of when push_dummy_call is not available.
8ffd9b1b 8263
f7dd6af2
AC
82642003-03-30 Andrew Cagney <cagney@redhat.com>
8265
8266 * infttrace.c: Include "gdbthread.h".
8267 (parent_attach_all): Fix function signature.
8268 (call_ptrace): Update call.
8269 * Makefile.in (infttrace.o): Update dependencies.
8270
28f617b3
AC
82712003-03-30 Andrew Cagney <cagney@redhat.com>
8272
8273 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8274 PUSH_RETURN_ADDRESS.
8275 * gdbarch.h, gdbarch.c: Regenerate.
8276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8277 * x86-64-tdep.c (x86_64_init_abi): Update.
8278 * v850-tdep.c (v850_gdbarch_init): Update.
8279 * sparc-tdep.c (sparc_gdbarch_init): Update.
8280 * sh-tdep.c (sh_gdbarch_init): Update.
8281 * s390-tdep.c (s390_gdbarch_init): Update.
8282 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8283 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8284 * mips-tdep.c (mips_gdbarch_init): Update.
8285 * mcore-tdep.c (mcore_gdbarch_init): Update.
8286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8287 * ia64-tdep.c (ia64_gdbarch_init): Update.
8288 * i386-tdep.c (i386_gdbarch_init): Update.
8289 * h8300-tdep.c (h8300_gdbarch_init): Update.
8290 * frv-tdep.c (frv_gdbarch_init): Update.
8291 * cris-tdep.c (cris_gdbarch_init): Update.
8292 * avr-tdep.c (avr_gdbarch_init): Update.
8293 * arm-tdep.c (arm_gdbarch_init): Update.
8294 * valops.c (hand_function_call): Update.
8295
4d628cd7
AC
82962003-03-29 Andrew Cagney <cagney@redhat.com>
8297
8298 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8299 sizeof_call_dummy_words.
8300 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8301 define.
8302 * gdbarch.h: Regenerate.
8ffd9b1b 8303
65e82032
AC
83042003-03-29 Andrew Cagney <cagney@redhat.com>
8305
8306 * infttrace.h: New file.
8307 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8308 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8309 (hpread_read_doc_function_type): Detect an initialized type1.
8310 (hpread_quick_traverse): Initialize mod_name_string.
8311 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8312 (som_solib_get_solib_by_pc): Declare.
8313 (so_lib_thread_start_addr): Declare.
8314 (no_shared_libraries): Declare.
8315 * somread.c (init_import_symbols): Make static. Add forward
8316 declaration.
8317 * config/pa/nm-hppah.h: Include "infttrace.h" for
8318 parent_attach_all.
8319 (hppa_insert_hw_watchpoint): Declare.
8320 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8321 * hppah-nat.c: Include "gdb_string.h".
8322 (parent_attach_all): Delete extern declaration, moved to
8323 "infttrace.h".
8324 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8325 int.
8326 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8327 * Makefile.in (infttrace_h): Define.
8328 (hpread.o): Update dependencies.
8329 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8330 * hppa-hpux-tdep.c: Include "gdb_string.h".
8331 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8332 * infrun.c (handle_inferior_event): Always initialize
8333 stepped_after_stopped_by_watchpoint. Add default and remove
8334 fallthrough in switch statement.
8335 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8336 parameter to int.
8337 (hppa_remove_hw_watchpoint): Ditto.
8338
2c3bbe77
AC
83392003-03-29 Andrew Cagney <cagney@redhat.com>
8340
8341 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8342 offset.
8343
2dd604e7
RE
83442003-03-29 Richard Earnshaw <rearnsha@arm.com>
8345
8346 * arm-tdep.c (arm_push_arguments): Delete.
8347 (struct stack_item): New type.
8348 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8349 (arm_store_struct_return): Delte.
8350 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8351 arm_push_arguments or arm_store_struct_return.
8352
e8933a55
AC
83532003-03-28 Andrew Cagney <cagney@redhat.com>
8354
8355 * Makefile.in (d10v-tdep.o): Update dependencies.
8356 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8357 * d10v-tdep.c: Include "remote.h".
8358 (target_resume_hook): Delete extern declaration.
8359 (target_wait_loop_hook): Ditto.
8360 (tdisassemble_command): Eliminate assignment in "if" conditional.
8361 (d10v_ts2_register_sim_regno): Eliminate call to
8362 legacy_register_sim_regno.
8363 (d10v_ts3_register_sim_regno): Ditto.
8364
6949171e
JJ
83652003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8366
8367 * thread.c: Reindented.
8368 * lin-lwp.c: Ditto.
8369 * linux-proc.c: Ditto.
8370
98c7071f
BR
83712003-03-28 Bob Rossi <bob_rossi@cox.net>
8372
fbe586ae 8373 * MAINTAINERS (write after approval): Add myself.
98c7071f 8374
5edc9ca6
TR
83752003-03-27 Theodore A. Roth <troth@openavr.org>
8376
8377 * objc-exp.y: Add missing semi-colons.
8378
378bfd1b
AC
83792003-03-27 Andrew Cagney <cagney@redhat.com>
8380
8381 * regcache.c (write_sp): Delete function and references.
8382 * inferior.h (write_sp): Delete declaration.
8383 * valops.c (hand_function_call): Replace write_sp with
8384 TARGET_WRITE_SP.
8385 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8386 (sparc_pop_frame): Ditto.
8ffd9b1b 8387
56056df7
AC
83882003-03-27 Andrew Cagney <cagney@redhat.com>
8389
8390 * NEWS: Mention removal of support for hppa*-*-bsd* and
8391 hppa*-*-osf* natives, and hppa*-*-pro* target.
8392 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8393 * config/pa/xm-pa.h: Obsolete file.
8394 * config/pa/xm-hppab.h: Obsolete file.
8395 * config/pa/nm-hppab.h: Obsolete file.
8396 * config/pa/tm-hppab.h: Obsolete file.
8397 * config/pa/tm-hppao.h: Obsolete file.
8398 * config/pa/nm-hppao.h: Obsolete file.
8399 * config/pa/tm-pro.h: Obsolete file.
8400 * config/pa/hppaosf.mt: Obsolete file.
8401 * config/pa/hppaosf.mh: Obsolete file.
8402 * config/pa/hppapro.mt: Obsolete file.
8403 * config/pa/hppabsd.mt: Obsolete file.
8404 * config/pa/hppabsd.mh: Obsolete file.
8405 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8406 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8407 hppa*-*-osf*.
8408
5873a88d
AC
84092003-03-27 Andrew Cagney <cagney@redhat.com>
8410
8411 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8412 push_arguments. Don't set push_return_address or write_sp.
8413 (d10v_push_dummy_call): Replace d10v_push_arguments.
8414 (d10v_push_return_address, d10v_write_sp): Delete function,
8415 handled by push_dummy_call.
8416
b81774d8
AC
84172003-03-26 Andrew Cagney <cagney@redhat.com>
8418
8419 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8420 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8421 regcache and dummy_addr parameters.
8422 * gdbarch.h, gdbarch.c: Re-generate.
8423 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8424 available; assume it will handle stack alignment and return
8425 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8426 legacy_push_arguments.
8427 (legacy_push_arguments): Rename default_push_arguments.
8428 * value.h (legacy_push_arguments): Rename default_push_arguments.
8429 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8430 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8431 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8432 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8433 * config/i386/tm-symmetry.h: Update.
8434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8435 * x86-64-tdep.c (x86_64_init_abi): Update.
8436 * v850-tdep.c (v850_gdbarch_init): Update.
8437 * sparc-tdep.c (sparc_gdbarch_init): Update.
8438 * sh-tdep.c (sh_gdbarch_init): Update.
8439 * s390-tdep.c (s390_gdbarch_init): Update.
8440 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8441 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8442 * mips-tdep.c (mips_gdbarch_init): Update.
8443 * mcore-tdep.c (mcore_gdbarch_init): Update.
8444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8445 * ia64-tdep.c (ia64_gdbarch_init): Update.
8446 * i386-tdep.c (i386_gdbarch_init): Update.
8447 * hppa-tdep.c (hppa_gdbarch_init): Update.
8448 * h8300-tdep.c (h8300_gdbarch_init): Update.
8449 * frv-tdep.c (frv_gdbarch_init): Update.
8450 * d10v-tdep.c (d10v_gdbarch_init): Update.
8451 * cris-tdep.c (cris_gdbarch_init): Update.
8452 * avr-tdep.c (avr_gdbarch_init): Update.
8453 * arm-tdep.c (arm_gdbarch_init): Update.
8454 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8455 * alpha-tdep.c (alpha_gdbarch_init): Update.
8456
f541410f
DJ
84572003-03-26 Daniel Jacobowitz <drow@mvista.com>
8458
8459 * signals/signals.c (do_target_signal_to_host): Correct realtime
8460 signal range test.
8461
69f567ae
DJ
84622003-03-26 Daniel Jacobowitz <drow@mvista.com>
8463
8464 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8465 (struct sal_chain, map_catch_names): Remove.
8466 (catch_exception_command_1): Don't call
8467 handle_gnu_4_16_catch_command.
8468
d5d14a5a
DJ
84692003-03-26 Daniel Jacobowitz <drow@mvista.com>
8470
8471 From Mark Dettinger <dettinge@de.ibm.com>:
8472 * dwarf2cfi.c (read_2u): Increment pointer by two.
8473
bdd73e22
DJ
84742003-03-26 Daniel Jacobowitz <drow@mvista.com>
8475
8476 * signals/signals.c: Fix typos in last change.
8477
960cb555
DJ
84782003-03-26 Daniel Jacobowitz <drow@mvista.com>
8479
8480 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8481 not already defined. Use __SIGRTMIN if available.
8482 (target_signal_from_host): Remove SIGRTMIN block.
8483 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8484 the signal is within the realtime range.
8485
f636b87d
AF
84862003-03-25 Adam Fedor <fedor@gnu.org>
8487
8488 * Makefile.in (infrun.o): Add $(language_h)
8489 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8490 for language specific trampolines.
8491 * language.h (struct language_defn): Add skip_trampoline.
8492 (skip_language_trampoline): Declare.
8493 * language.c (unk_lang_trampoline, skip_language_trampoline):
8494 New functions.
8495 (unknown_language_defn, auto_language_defn, local_language_defn):
8496 Add ukn_lang_trampoline.
8497 * ada-lang.c (ada_language_defn): Add NULL for language
8498 specific skip_trampoline.
8499 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8500 scm-lang.c: Likewise.
8501 * objc-lang.c (objc_skip_trampoline): New function.
8502 (objc_language_defn): Add objc_skip_trampoline.
8503
28f617b3 85042003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8505
8506 * frame.c (get_prev_frame): Delay validating a frame's ID -
8507 non-NULL, didn't go backwards - until an attempt to unwind it to
8508 the previous frame.
8509
f933a9c5
AC
85102003-03-25 Andrew Cagney <cagney@redhat.com>
8511
8512 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8513 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8514 * gdbarch.h, gdbarch.c: Re-generate.
8515 * config/sparc/tm-sparc.h
8516 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8517 * sparc-tdep.c (sparc_gdbarch_init): Set
8518 deprecated_extra_stack_alignment_needed.
8519 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8521 extra_stack_alignment_needed.
8522 * v850-tdep.c (v850_gdbarch_init): Ditto.
8523 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8524 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8525 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8526 * cris-tdep.c (cris_gdbarch_init): Ditto.
8527 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8529
4183d812
AC
85302003-03-25 Andrew Cagney <cagney@redhat.com>
8531
8532 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8533 STORE_STRUCT_RETURN.
8534 * gdbarch.h, gdbarch.c: Regenerate.
8535 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8536 (d10v_push_arguments): Set the struct return register.
8537 (d10v_gdbarch_init): Update.
8538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8539 * x86-64-tdep.c (x86_64_init_abi): Update.
8540 * vax-tdep.c (vax_gdbarch_init): Update.
8541 * v850-tdep.c (v850_gdbarch_init): Update.
8542 * sparc-tdep.c (sparc_gdbarch_init): Update.
8543 * sh-tdep.c (sh_gdbarch_init): Update.
8544 * s390-tdep.c (s390_gdbarch_init): Update.
8545 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8546 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8547 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8548 * mips-tdep.c (mips_gdbarch_init): Update.
8549 * mcore-tdep.c (mcore_gdbarch_init): Update.
8550 * m68k-tdep.c (m68k_gdbarch_init): Update.
8551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8552 * ia64-tdep.c (ia64_gdbarch_init): Update.
8553 * i386-tdep.c (i386_gdbarch_init): Update.
8554 * hppa-tdep.c (hppa_gdbarch_init): Update.
8555 * h8300-tdep.c (h8300_gdbarch_init): Update.
8556 * frv-tdep.c (frv_gdbarch_init): Update.
8557 * cris-tdep.c (cris_gdbarch_init): Update.
8558 * avr-tdep.c (avr_gdbarch_init): Update.
8559 * arm-tdep.c (arm_gdbarch_init): Update.
8560 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8561
1bf6d5cc
AC
85622003-03-25 Andrew Cagney <cagney@redhat.com>
8563
8564 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8565 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8566 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8567 * gdbarch.h, gdbarch.c: Regenerate.
8568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8569 call_dummy_stack_adjust_p.
8570 * vax-tdep.c (vax_gdbarch_init): Ditto.
8571 * v850-tdep.c (v850_gdbarch_init): Ditto.
8572 * sh-tdep.c (sh_gdbarch_init): Ditto.
8573 * s390-tdep.c (s390_gdbarch_init): Ditto.
8574 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8575 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8576 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8577 * mips-tdep.c (mips_gdbarch_init): Ditto.
8578 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8579 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8581 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8582 * i386-tdep.c (i386_gdbarch_init): Ditto.
8583 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8584 * frv-tdep.c (frv_gdbarch_init): Ditto.
8585 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8586 * cris-tdep.c (cris_gdbarch_init): Ditto.
8587 * avr-tdep.c (avr_gdbarch_init): Ditto.
8588 * arm-tdep.c (arm_gdbarch_init): Ditto.
8589 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8590 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8591 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8592 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8593 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8594 call_dummy_stack_adjust_p.
8595 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8596 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8597 * sparc-tdep.c (sparc32_push_arguments): Update.
8598 * valops.c (hand_function_call): Update.
8599
71c08af0
CV
86002003-03-25 Corinna Vinschen <vinschen@redhat.com>
8601
8602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8603 set_gdbarch_char_signed.
8604
30757f90
RE
86052003-03-25 Richard Earnshaw <rearnsha@arm.com>
8606
8607 PR cli/548
8608 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8609
03d48a7d
RE
86102003-03-25 Richard Earnshaw <rearnsha@arm.com>
8611
8612 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8613 (_initialize_arm_tdep): Don't set tm_print_insn.
8614
2cf6873c
AF
86152003-03-24 Adam Fedor <fedor@gnu.org>
8616
8617 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8618 * objc-lang.h: Add multiple inclusion protection.
8619 (start_msglist, add_msglist, end_msglist): Additional declarations.
8620
17c0759e
RE
86212003-03-24 Richard Earnshaw <rearnsha@arm.com>
8622
8623 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8624 value was renamed to ARM_FLOAT_SOFT_FPA.
8625
618ce49f
AC
86262003-03-23 Andrew Cagney <cagney@redhat.com>
8627
8628 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8629 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8630 * gdbarch.h, gdbarch.c: Regenerate.
8631 * valops.c (hand_function_call): Update.
8632 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8633 * frame.c (legacy_saved_regs_this_id): Update.
8634 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8635 * dummy-frame.h: Update.
8636 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8637 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8638 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8639 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8640 * config/m68k/tm-sun3.h: Update.
8641 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8643 * x86-64-tdep.c (x86_64_init_abi): Update.
8644 * vax-tdep.c (vax_gdbarch_init): Update.
8645 * v850-tdep.c (v850_gdbarch_init): Update.
8646 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8647 * sh-tdep.c (sh_gdbarch_init): Update.
8648 * s390-tdep.c (s390_gdbarch_init): Update.
8649 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8650 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8651 (frame_get_saved_regs): Update.
8652 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8653 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8654 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8655 * mips-tdep.c (mips_gdbarch_init): Update.
8656 * mcore-tdep.c (mcore_gdbarch_init): Update.
8657 * m68k-tdep.c (m68k_gdbarch_init): Update.
8658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8659 * ia64-tdep.c (ia64_gdbarch_init): Update.
8660 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8661 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8662 (i386_interix_back_one_frame): Update.
8663 * hppa-tdep.c (hppa_gdbarch_init): Update.
8664 (hppa_init_extra_frame_info): Update.
8665 * h8300-tdep.c (h8300_gdbarch_init): Update.
8666 * frv-tdep.c (frv_gdbarch_init): Update.
8667 * cris-tdep.c (cris_gdbarch_init): Update.
8668 * avr-tdep.c (avr_gdbarch_init): Update.
8669 * arm-tdep.c (arm_gdbarch_init): Update.
8670 * alpha-tdep.c (alpha_gdbarch_init): Update.
8671
fd50bc42
RE
86722003-03-22 Richard Earnshaw <rearnsha@arm.com>
8673
8674 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8675 (arm_get_fp_model): Declare.
8676 * arm-tdep.c (fp_model_strings): New string array.
8677 (arm_fp_model, current_fp_model): New variables.
8678 (arm_get_fp_model): New function.
8679 (arm_set_fp): New function.
8680 (set_fp_model_sfunc): New function.
8681 (show_fp_model): New function.
8682 (_initialize_arm_tdep): Add new command to set/show the FPU.
8683 (arm_extract_return_value): Use arm_get_fp_model.
8684 (arm_store_return_value): Likewise.
8685 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8686 to initialize the floating-point data types.
8687 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8688 model is FPA.
8689
26304000
RE
86902003-03-22 Richard Earnshaw <rearnsha@arm.com>
8691
8692 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8693 the current setting of each value.
8694 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8695 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8696 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8697 commands and add new version as subcommands of "set/show arm".
8698
afd7eef0
RE
86992003-03-22 Richard Earnshaw <rearnsha@arm.com>
8700
8701 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8702 (set_arm_command, show_arm_command): New functions.
8703 (_initialize_arm_tdep): Add them.
8704 (num_disassembly_options): Renamed from num_flavor_options.
8705 (valid_disassembly_styles): Renamed from valid_flavors.
8706 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8707 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8708 set_disassembly_flavor_sfunc.
8709 (set_disassembly_style): Renamed from set_disassembly_flavor.
8710 (arm_othernames): Updated.
8711 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8712 command. Add "set/show arm disassembly" commands. Deprecate
8713 "othernames" command.
8714
299a7944
RE
87152003-03-22 Richard Earnshaw <rearnsha@arm.com>
8716
8717 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8718 (arm-tdep.o): Depend on elf_arm_h.
8719
c1dac9e6
RE
87202003-03-22 Richard Earnshaw <rearnsha@arm.com>
8721
8722 * Makefile.in (coff_internal_h): Define.
8723 (arm-tdep.o): Update dependencies.
8724
2702d96c
RE
87252003-03-22 Richard Earnshaw <rearnsha@arm.com>
8726
8727 * arm-tdep.c (prologue_cache): Delete.
8728 (check_prologue_cache, save_prologue_cache): Delete.
8729 (arm_scan_prologue): Don't check or update the prologue_cache.
8730 (arm_gdb_arch_init): Don't initialize it.
8731 (_initialize_arm_tdep): Likewise.
8732
27d5d74b
SC
87332003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8734
8735 * MAINTAINERS (tui): Maintainer of tui code.
8736
1762d96d
CV
87372003-03-21 Corinna Vinschen <vinschen@redhat.com>
8738
8739 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8740 (i386-cygwin-tdep.o): Add dependencies.
8741 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8742 * i386-cygwin-tdep.c: New file.
8743 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8744 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8745
4c2e2391
AC
87462003-03-20 Andrew Cagney <cagney@redhat.com>
8747
f20d38b7
AC
8748 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8749 (handle_inferior_event): Remove code calling
8750 DYNAMIC_TRAMPOLINE_NEXTPC.
8751
0022b738
AC
8752 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8753 already has a full path.
8754
864dbc90
AC
8755 * main.c (gdb_main): Return 1.
8756 (captured_main): Call error to report an invalid interpreter.
8757
4c2e2391
AC
8758 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8759 * alpha-osf1-tdep.c: Include "gdb_string.h".
8760
5ef7553b
JB
87612003-03-19 J. Brobecker <brobecker@gnat.com>
8762
8763 Continuing work to convert the hppa targets to multiarch partial.
8764
8765 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8766 method, now that hppa_push_dummy_frame has a conformant prototype.
8767 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8768 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8769 for the switch to multiarch partial.
8770
7bde8967
KB
87712003-03-19 Kevin Buettner <kevinb@redhat.com>
8772
8773 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8774 when iss is issNull.
8775
b006a9e9
KB
87762003-03-18 Kevin Buettner <kevinb@redhat.com>
8777
8778 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8779 NUM_REGS bounds check.
8780
5e2e9765
KB
87812003-03-18 Kevin Buettner <kevinb@redhat.com>
8782
8783 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8784 * mips-tdep.c (gdb_assert.h): Include.
8785 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8786 (mips_register_name): Handle integer registers explicitly. Add
8787 bounds checking.
8788 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8789 (mips_lsi33k_reg_names): Don't list integer registers; they're
8790 handled by mips_register_name() now.
8791 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8792 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8793 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8794 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8795 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8796
a2867626
AC
87972003-03-18 Andrew Cagney <cagney@redhat.com>
8798
8799 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8800 a void pointer.
8801 * gdbtypes.h (print_scalar_formatted): Update declaration.
8802 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8803
06600e06
JB
88042003-03-18 J. Brobecker <brobecker@gnat.com>
8805
8806 * infrun.c (observer.h): Add #include.
8807 (normal_stop): Add call to observer_notify_normal_stop.
8808 * Makefile.in (infrun.o): Add dependency on observer.h.
8809
7daf4f5b
JB
88102003-03-18 J. Brobecker <brobecker@gnat.com>
8811
8812 Continuing work to convert the hppa targets to multiarch partial.
8813 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8814 parameter. Reformat comment.
8815 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8816 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8817 to match new profile.
8818
3371ccc0
JB
88192003-03-18 J. Brobecker <brobecker@gnat.com>
8820
8821 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8822 appear to be working in any case.
8823
4fbe891e
JB
88242003-03-18 J. Brobecker <brobecker@gnat.com>
8825
8826 * observer.c (observer_test_first_observer): New static variable.
8827 (observer_test_second_observer): Likewise.
8828 (observer_test_third_observer): Likewise.
8829 (observer_test_first_notification_function): New static function.
8830 (observer_test_second_notification_function): Likewise.
8831 (observer_test_third_notification_function): Likewise.
8832
a7ff40e7
JB
88332003-03-17 J. Brobecker <brobecker@gnat.com>
8834
8835 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8836 * somsolib.c (gdb_assert.h): Likewise.
8837 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8838 (somsolib.o): Likewise.
8839
26ca4152
AC
88402003-03-17 Andrew Cagney <cagney@redhat.com>
8841
8842 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8843 BFD. Simplify setting of di.endian.
8844
0a613259
AC
88452003-03-17 Andrew Cagney <cagney@redhat.com>
8846
8847 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8848 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8849
8850 From Elena Zannoni <ezannoni@redhat.com>
8851 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8852 vector and floating-point parameters.
8853 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8854 convention.
8855 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8856
1132738f
FN
88572003-03-17 Fernando Nasser <fnasser@redhat.com>
8858
8859 * MAINTAINERS: Remove my name from several maintainership roles.
8860
6dc42492
AC
88612003-03-17 Andrew Cagney <cagney@redhat.com>
8862
8863 Fix frame off-by-one bug.
8864 * frame-unwind.h (frame_this_id_ftype): Replace
8865 frame_unwind_id_ftype.
8866 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8867 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8868 with "prev_register".
8869 * frame-unwind.c (frame_unwind_find_by_pc): Return
8870 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8871 comment.
8872 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8873 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8874 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8875 (dummy_frame_unwind): Update.
8876 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8877 sentinel_frame_register_unwind.
8878 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8879 (sentinel_frame_unwinder): Update.
8880 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8881 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8882 * frame.c (create_sentinel_frame): Update. Initialize
8883 "prologue_cache" instead of "unwind_cache".
8884 (frame_register_unwind): Call this frame's prev_register with the
8885 next frame and this frame's prologue cache.
8886 (get_prev_frame): Simplify. Always call prev frame's this_id with
8887 this frame and prev frame's prologue cache. Document that this
8888 call is shifted one to the left when compared to the
8889 frame_register_unwind call.
8890 (legacy_saved_regs_prev_register): Replace
8891 frame_saved_regs_register_unwind.
8892 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8893 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8894 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8895 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8896 (d10v_frame_unwind): Update.
8897 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8898 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8899 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8900 "saved_regs" with "this_saved_regs".
8901
efd710d6
AC
89022003-03-16 Andrew Cagney <cagney@redhat.com>
8903
8904 * frame.c (frame_pop): Don't call target_store_registers. Fix
8905 problem reported by Mark Kettenis.
8906
4e259f09
MK
89072003-03-16 Mark Kettenis <kettenis@gnu.org>
8908
8909 * i386-tdep.c (i386_register_type): Renamed from
8910 i386_register_virtual_type. Adjust function signature.
8911 (i386_gdbarch_init): Set register_type instead of
8912 deprecated_max_register_raw_size,
8913 deprecated_max_register_virtual_size and register_virtual_type.
8914
055bb976
AC
89152003-03-14 Andrew Cagney <cagney@redhat.com>
8916
8917 * frame.c (get_prev_frame): When a legacy frame, always call
8918 legacy_get_prev_frame. Simplify unwind code using assumption that
8919 the unwinder is new.
8920 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8921 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8922 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8923
ac2adee5
AC
89242003-03-14 Andrew Cagney <cagney@redhat.com>
8925
8926 * frame.c (get_saved_register): Delete function.
8927 * frame.h (get_saved_register): Delete declaration.
8928 * xstormy16-tdep.c: Update comment.
8929 * regcache.h: Update comments.
8930 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8931 get_saved_register and extract_address, use
8932 frame_read_unsigned_register.
8933 (sparc_frame_saved_pc): Ditto.
8934 (sparc_get_saved_register): Instead of get_saved_register, use
8935 frame_register.
8936 (sparc_pop_frame): Ditto.
8937 * findvar.c: Update comments.
8938 (value_of_register): Call frame_register instead of
8939 get_saved_register.
8940 (value_from_register): Ditto.
8941 * config/sparc/tm-sparc.h: Update comment.
8942 * breakpoint.c: Update comment.
8943
129c1cd6
AC
89442003-03-14 Andrew Cagney <cagney@redhat.com>
8945
8946 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8947 GET_SAVED_REGISTER.
8948 * gdbarch.h, gdbarch.c: Re-generate.
8949 * frame.h: Update comments.
8950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8951 * x86-64-tdep.c (x86_64_init_abi): Update.
8952 * sparc-tdep.c (sparc_gdbarch_init): Update.
8953 * sh-tdep.c (sh_gdbarch_init): Update.
8954 * mips-tdep.c (mips_gdbarch_init): Update.
8955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8956 * cris-tdep.c (cris_gdbarch_init): Update.
8957 * ia64-tdep.c (ia64_gdbarch_init): Update.
8958 * frame.c (frame_register): Update.
8959 (get_saved_register): Update.
8960 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8961
749b82f6
AC
89622003-03-13 Andrew Cagney <cagney@redhat.com>
8963
8964 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8965 * gdbarch.h, gdbarch.c: Regenerate.
8966 * valops.c (hand_function_call): Update comment.
8967 * stack.c (return_command): Update comment.
8968 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8969 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8971 * x86-64-tdep.c (x86_64_init_abi): Update.
8972 * vax-tdep.c (vax_gdbarch_init): Update.
8973 * v850-tdep.c (v850_gdbarch_init): Update.
8974 * sparc-tdep.c (sparc_gdbarch_init): Update.
8975 * sh-tdep.c (sh_gdbarch_init): Update.
8976 * s390-tdep.c (s390_gdbarch_init): Update.
8977 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8978 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8979 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8980 * mips-tdep.c (mips_gdbarch_init): Update.
8981 * mcore-tdep.c (mcore_gdbarch_init): Update.
8982 * m68k-tdep.c (m68k_gdbarch_init): Update.
8983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8984 * ia64-tdep.c (ia64_gdbarch_init): Update.
8985 * i386-tdep.c (i386_gdbarch_init): Update.
8986 * hppa-tdep.c (hppa_gdbarch_init): Update.
8987 * h8300-tdep.c (h8300_gdbarch_init): Update.
8988 * frv-tdep.c (frv_gdbarch_init): Update.
8989 * cris-tdep.c (cris_gdbarch_init): Update.
8990 * avr-tdep.c (avr_gdbarch_init): Update.
8991 * arm-tdep.c (arm_gdbarch_init): Update.
8992 * alpha-tdep.c (alpha_gdbarch_init): Update.
8993
1594fa56
AC
89942003-03-13 Andrew Cagney <cagney@redhat.com>
8995
8996 * frame.c (legacy_frame_p): New function.
8997 (get_prev_frame): Use legacy_frame_p.
8998 * frame.h (legacy_frame_p): Declare.
8999
7717fda3
V
90002003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9001
fbe586ae 9002 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9003 listing corrected.
9004
0c67cbe9
V
90052003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9006
fbe586ae 9007 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9008
03febf99
AC
90092003-03-12 Andrew Cagney <cagney@redhat.com>
9010
9011 * frame.c (get_prev_frame): Rename the frame parameter to
9012 "this_frame".
9013 (get_next_frame, legacy_get_prev_frame): Ditto.
9014
0a1e1ca1
AC
90152003-03-12 Andrew Cagney <cagney@redhat.com>
9016
9017 * frame.c (get_current_frame): Check target_has_registers before
9018 checking target_has_stack.
9019 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9020 instead of deprecated_selected_frame.
9021 * findvar.c (value_of_register): Pass "frame", not
9022 deprecated_selected_frame, to value_of_builtin_reg.
9023
a66a9c23
AC
90242003-03-12 Andrew Cagney <cagney@redhat.com>
9025
9026 * regcache.c (regcache_cooked_write_signed): New function.
9027 (regcache_cooked_write_unsigned): New function.
9028 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9029 (regcache_cooked_read_signed): Fix regnum in range assertion.
9030 * regcache.h (regcache_cooked_write_signed): Declare.
9031 (regcache_cooked_write_unsigned): Declare.
9032
8bedc050
AC
90332003-03-12 Andrew Cagney <cagney@redhat.com>
9034
9035 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9036 * gdbarch.h, gdbarch.c: Re-generate.
9037 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9038 * x86-64-tdep.h: Update.
9039 * x86-64-tdep.c (x86_64_init_abi): Update.
9040 * v850-tdep.c (v850_gdbarch_init): Update.
9041 * sparc-tdep.c (sparc_gdbarch_init): Update.
9042 * sh-tdep.c (sh_gdbarch_init): Update.
9043 * s390-tdep.c (s390_gdbarch_init): Update.
9044 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9045 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9046 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9047 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9048 * mips-tdep.c (mips_gdbarch_init): Update.
9049 * mcore-tdep.c (mcore_gdbarch_init): Update.
9050 * m68k-tdep.c (m68k_gdbarch_init): Update.
9051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9052 * ia64-tdep.c (ia64_gdbarch_init): Update.
9053 * i386-tdep.c (i386_gdbarch_init): Update.
9054 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9055 * hppa-tdep.c (hppa_gdbarch_init): Update.
9056 * h8300-tdep.c (h8300_gdbarch_init): Update.
9057 * frv-tdep.c (frv_gdbarch_init): Update.
9058 * cris-tdep.c (cris_gdbarch_init): Update.
9059 * avr-tdep.c (avr_gdbarch_init): Update.
9060 * arm-tdep.c (arm_gdbarch_init): Update.
9061 * alpha-tdep.c (alpha_gdbarch_init): Update.
9062 * sh-tdep.c (sh_init_extra_frame_info): Update.
9063 (sh64_init_extra_frame_info): Update.
9064 * ns32knbsd-nat.c (frame_num_args): Update.
9065 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9066 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9067 (xstormy16_frame_chain_valid): Update.
9068 * vax-tdep.c (vax_saved_pc_after_call): Update.
9069 * v850-tdep.c (v850_frame_chain): Update.
9070 (v850_pop_frame): Update.
9071 (v850_init_extra_frame_info): Update.
9072 * sparc-tdep.c (setup_arbitrary_frame): Update.
9073 * ns32k-tdep.c (umax_frame_num_args): Update.
9074 * s390-tdep.c (s390_pop_frame_regular): Update.
9075 * mn10300-tdep.c (mn10300_frame_chain): Update.
9076 (mn10300_pop_frame_regular): Update.
9077 (mn10300_init_extra_frame_info): Update.
9078 * mips-tdep.c (mips_init_frame_pc_first): Update.
9079 (mips_frame_chain): Update.
9080 (mips_pop_frame): Update.
9081 * mcore-tdep.c (mcore_frame_chain): Update.
9082 (mcore_pop_frame): Update.
9083 (mcore_init_extra_frame_info): Update.
9084 * arch-utils.c (init_frame_pc_default): Update.
9085 * m68k-tdep.c (isi_frame_num_args): Update.
9086 (delta68_frame_num_args): Update.
9087 (news_frame_num_args): Update.
9088 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9089 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9090 (alpha_frame_chain): Update.
9091 (alpha_pop_frame): Update.
9092 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9093 (hppa_init_extra_frame_info): Update.
9094 (hppa_frame_chain): Update.
9095 (hppa_frame_chain_valid): Update.
9096 * cris-tdep.c (cris_init_extra_frame_info): Update.
9097 * avr-tdep.c (avr_init_extra_frame_info): Update.
9098 * arm-tdep.c (arm_frame_chain_valid): Update.
9099 (arm_init_extra_frame_info): Update.
9100 (arm_pop_frame): Update.
9101 * frame.c (frame_pc_unwind): Update.
9102 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9103 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9104 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9105 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9106 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9107 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9108
7a25a7c1
AC
91092003-03-12 Andrew Cagney <cagney@redhat.com>
9110
9111 Eliminate the need for POP_FRAME.
9112 * frame.c (do_frame_unwind_register): New function.
9113 (frame_pop): When no POP_FRAME, pop the frame using register
9114 unwind and a scratch regcache.
9115 (frame_saved_regs_pop): Delete function.
9116 (trad_frame_unwinder): Update.
9117 * d10v-tdep.c (d10v_frame_pop): Delete function.
9118 (d10v_frame_unwind): Update.
9119 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9120 (sentinel_frame_unwinder): Update.
9121 * dummy-frame.c (dummy_frame_pop): Delete function.
9122 (dummy_frame_unwind): Update.
9123 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9124 (struct frame_unwind): Update.
9125
2f38ef89
KB
91262003-03-11 Kevin Buettner <kevinb@redhat.com>
9127
9128 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9129 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9130 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9131 Do range checks on register number obtained from debugging info.
9132 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9133 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9134 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9135 mapping function.
9136 (do_fp_register_row): Fix typo which caused double type to be
9137 used when attempting to unpack a float.
9138
552f4abf
JB
91392003-03-11 J. Brobecker <brobecker@gnat.com>
9140
9141 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9142
e0d2ae16
AC
91432003-03-11 Andrew Cagney <cagney@redhat.com>
9144
9145 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9146 frame. Problem found by Corinna Vinschen.
9147
ddbfdd06
PM
91482003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9149
9150 * doublest.c (floatformat_from_length): Accept also
9151 the real size of 'long double' type.
9152
088b2ddc 91532003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9154
088b2ddc 9155 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9156 * breakpoint.c (bpstat_copy): Copy the command lines as well
9157 as the old value, to match what is freed in bpstat_clear.
9158
f56f77c1
DC
91592003-03-10 David Carlton <carlton@math.stanford.edu>
9160
9161 * minsyms.c (add_minsym_to_hash_table): Replace
9162 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9163 (compare_minimal_symbols, compact_minimal_symbols)
9164 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9165 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9166 of DEPRECATED_SYMBOL_MATCHES_NAME.
9167 (lookup_minimal_symbol_solib_trampoline): Ditto.
9168
5602984a
AC
91692003-03-10 Andrew Cagney <cagney@redhat.com>
9170
9171 * regcache.h (regcache_cooked_read_ftype): Define.
9172 (regcache_save, regcache_restore): Add a cooked_read parameter.
9173 * regcache.c (regcache_save, regcache_restore): Update.
9174 (do_cooked_read): New function.
9175 (regcache_cpy): Pass do_cooked_read to regcache_save and
9176 regcache_restore.
9177
8bedc050
AC
91782003-03-10 Andrew Cagney <cagney@redhat.com>
9179
9180 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9181 * gdbarch.h, gdbarch.c: Re-generate.
9182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9183 * x86-64-tdep.h: Update.
9184 * x86-64-tdep.c (x86_64_init_abi): Update.
9185 * v850-tdep.c (v850_gdbarch_init): Update.
9186 * sparc-tdep.c (sparc_gdbarch_init): Update.
9187 * sh-tdep.c (sh_gdbarch_init): Update.
9188 * s390-tdep.c (s390_gdbarch_init): Update.
9189 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9190 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9191 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9193 * mips-tdep.c (mips_gdbarch_init): Update.
9194 * mcore-tdep.c (mcore_gdbarch_init): Update.
9195 * m68k-tdep.c (m68k_gdbarch_init): Update.
9196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9197 * ia64-tdep.c (ia64_gdbarch_init): Update.
9198 * i386-tdep.c (i386_gdbarch_init): Update.
9199 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9200 * hppa-tdep.c (hppa_gdbarch_init): Update.
9201 * h8300-tdep.c (h8300_gdbarch_init): Update.
9202 * frv-tdep.c (frv_gdbarch_init): Update.
9203 * cris-tdep.c (cris_gdbarch_init): Update.
9204 * avr-tdep.c (avr_gdbarch_init): Update.
9205 * arm-tdep.c (arm_gdbarch_init): Update.
9206 * alpha-tdep.c (alpha_gdbarch_init): Update.
9207 * sh-tdep.c (sh_init_extra_frame_info): Update.
9208 (sh64_init_extra_frame_info): Update.
9209 * ns32knbsd-nat.c (frame_num_args): Update.
9210 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9211 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9212 (xstormy16_frame_chain_valid): Update.
9213 * vax-tdep.c (vax_saved_pc_after_call): Update.
9214 * v850-tdep.c (v850_frame_chain): Update.
9215 (v850_pop_frame): Update.
9216 (v850_init_extra_frame_info): Update.
9217 * sparc-tdep.c (setup_arbitrary_frame): Update.
9218 * ns32k-tdep.c (umax_frame_num_args): Update.
9219 * s390-tdep.c (s390_pop_frame_regular): Update.
9220 * mn10300-tdep.c (mn10300_frame_chain): Update.
9221 (mn10300_pop_frame_regular): Update.
9222 (mn10300_init_extra_frame_info): Update.
9223 * mips-tdep.c (mips_init_frame_pc_first): Update.
9224 (mips_frame_chain): Update.
9225 (mips_pop_frame): Update.
9226 * mcore-tdep.c (mcore_frame_chain): Update.
9227 (mcore_pop_frame): Update.
9228 (mcore_init_extra_frame_info): Update.
9229 * arch-utils.c (init_frame_pc_default): Update.
9230 * m68k-tdep.c (isi_frame_num_args): Update.
9231 (delta68_frame_num_args): Update.
9232 (news_frame_num_args): Update.
9233 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9234 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9235 (alpha_frame_chain): Update.
9236 (alpha_pop_frame): Update.
9237 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9238 (hppa_init_extra_frame_info): Update.
9239 (hppa_frame_chain): Update.
9240 (hppa_frame_chain_valid): Update.
9241 * cris-tdep.c (cris_init_extra_frame_info): Update.
9242 * avr-tdep.c (avr_init_extra_frame_info): Update.
9243 * arm-tdep.c (arm_frame_chain_valid): Update.
9244 (arm_init_extra_frame_info): Update.
9245 (arm_pop_frame): Update.
9246 * frame.c (frame_pc_unwind): Update.
9247 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9248 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9249 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9250 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9251 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9252 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9253
12cc2063
AC
92542003-03-10 Andrew Cagney <cagney@redhat.com>
9255
9256 * gdbarch.sh (gdbarch_unwind_pc): New method.
9257 * gdbarch.h, gdbarch.c: Regenerate.
9258 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9259 but use read_pc and FRAME_SAVED_PC as fall backs.
9260 (frame_saved_regs_pc_unwind): Delete function.
9261 (trad_frame_unwinder): Update.
9262 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9263 (struct frame_unwind): Update.
9264 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9265 (dummy_frame_unwind): Update.
9266 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9267 (sentinel_frame_unwinder): Update.
9268 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9269 (d10v_frame_unwind): Update.
9270 (d10v_unwind_pc): New function.
9271 (d10v_gdbarch_init): Set unwind_pc.
9272
ef840a37
AC
92732003-03-10 Andrew Cagney <cagney@redhat.com>
9274
a2ce2e56
AC
9275 * gdbarch.h: Re-generate.
9276
ef840a37
AC
9277 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9278 PC.
9279 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9280 the PC register.
9281
08f3424b
MK
92822003-03-08 Mark Kettenis <kettenis@gnu.org>
9283
9284 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9285
1248ede2
AC
92862003-03-08 Andrew Cagney <cagney@redhat.com>
9287
9288 * cli-out.c: Update copyright.
9289 (cli_out_data): Define typedef. Use instead of ui_out_data.
9290
f49bacc8
AC
92912003-03-08 Andrew Cagney <cagney@redhat.com>
9292
9293 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9294 the result.
9295
9b05f993
AC
92962003-03-07 Andrew Cagney <cagney@redhat.com>
9297
9298 * gdbarch.sh: Don't generate two macro definitions when an
9299 undefined macro taking no arguments.
9300 * gdbarch.h: Regenerate.
8ffd9b1b 9301
166f4c7b
ML
93022002-03-07 Michal Ludvig <mludvig@suse.cz>
9303
9304 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9305 (x86_64_unwind_dummy_id): New functions.
9306 (x86_64_init_abi): Register these two new functions.
9307
6d686a84
ML
93082003-03-07 Michal Ludvig <mludvig@suse.cz>
9309
9310 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9311 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9312 separate function.
9313 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9314
6314f104
AC
93152003-03-05 Andrew Cagney <cagney@redhat.com>
9316
9317 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9318 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9319 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9320 to use unwind_dummy_id when a dummy frame.
9321 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9322 predicate.
9323 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9324
ceea5145
AC
93252003-03-05 Andrew Cagney <cagney@redhat.com>
9326
9327 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9328 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9329 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9330 values.
9331
0d843116
AC
93322003-03-05 Andrew Cagney <cagney@redhat.com>
9333
9334 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9335 (struct d10v_unwind_cache): Delete field "frameless". Replace
9336 "next_addr" with "sp_offset". Add "r11_offset".
9337 (d10v_frame_unwind_cache): Update.
9338 (prologue_find_regs): Update. When "mv r11, sp", save the
9339 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9340 RN was saved in r11_offset.
9341
b2579786
AC
93422003-03-05 Andrew Cagney <cagney@redhat.com>
9343
9344 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9345 cached PC value in the next frame.
9346
218e5956
AC
93472003-03-05 Andrew Cagney <cagney@redhat.com>
9348
9349 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9350 "id_unwind_cache" with "id".
9351 (frame_id_unwind): Delete declaration.
9352 * frame.c (frame_id_unwind): Delete function.
9353 (get_prev_frame): Call the frame id unwind method directly. Store
9354 the returned next frame's ID value in NEXT_FRAME. Note that there
9355 is a problem with the wrong unwind ID being called with the wrong
9356 unwind cache.
9357
ed363b1b
DJ
93582003-03-05 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9361
fe1f4a5e
DJ
93622003-03-05 James Ingham <jingham@apple.com>
9363 Daniel Jacobowitz <drow@mvista.com>
9364
9365 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9366 (auto_cp_abi): New variable.
9367 (current_cp_abi, num_cp_abis): Make static.
9368 (CP_ABI_MAX): Define.
9369 (cp_abis): Turn into an array.
9370 (value_virtual_fn_field): Fix formatting.
9371 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9372 takes a pointer.
9373 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9374 (list_cp_abis, _initialize_cp_abi): New functions.
9375 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9376 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9377 switch_to_cp_abi. Update prototype for register_cp_abi.
9378 * Makefile.in (cp-abi.o): Update dependencies.
9379 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9380 instead of switch_to_cp_abi.
9381 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9382 register_cp_abi.
9383 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9384 register_cp_abi.
9385 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9386
e4adbba9
DJ
93872003-03-05 Daniel Jacobowitz <drow@mvista.com>
9388
9389 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9390 * dwarf2loc.c: Include "regcache.h".
9391 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9392 register_size.
9393 * Makefile.in (dwarf2loc.o): Update dependencies.
9394
91ccbfc1
TR
93952003-03-04 Theodore A. Roth <troth@openavr.org>
9396
9397 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9398 number of io registers reported by remote target is not a multiple of
9399 step.
9400
3d4e8fd2
DC
94012003-03-04 David Carlton <carlton@math.stanford.edu>
9402
9403 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9404 (lookup_symbol_aux_psymtabs): Update call to
9405 lookup_partial_symbol.
9406 (lookup_transparent_type, find_main_psymtab)
9407 (make_symbol_overload_list): Ditto.
9408
ed42d87b
KH
94092003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9410
9411 * MAINTAINERS (Write after approval): Update my email address.
9412
a0ed5532
AC
94132003-03-03 Andrew Cagney <cagney@redhat.com>
9414
9415 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9416 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9417 predicate. Replace MAX_REGISTER_RAW_SIZE.
9418 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9419 MAX_REGISTER_VIRTUAL_SIZE.
9420 * regcache.c (legacy_max_register_raw_size): New function.
9421 (legacy_max_register_virtual_size): New function.
9422 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9423 (MAX_REGISTER_RAW_SIZE): Define.
9424 (legacy_max_register_raw_size): Declare.
9425 (legacy_max_register_virtual_size): Declare.
9426 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9427 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9428 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9429 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9430 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9431 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9432 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9433 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9434 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9436 * vax-tdep.c (vax_gdbarch_init): Update.
9437 * v850-tdep.c (v850_gdbarch_init): Update.
9438 * sparc-tdep.c (sparc_gdbarch_init): Update.
9439 * sh-tdep.c (sh_gdbarch_init): Update.
9440 * s390-tdep.c (s390_gdbarch_init): Update.
9441 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9442 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9443 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9444 * mips-tdep.c (mips_gdbarch_init): Update.
9445 * mcore-tdep.c (mcore_gdbarch_init): Update.
9446 * m68k-tdep.c (m68k_gdbarch_init): Update.
9447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9448 * ia64-tdep.c (ia64_gdbarch_init): Update.
9449 * i386-tdep.c (i386_gdbarch_init): Update.
9450 * hppa-tdep.c (hppa_gdbarch_init): Update.
9451 * h8300-tdep.c (h8300_gdbarch_init): Update.
9452 * frv-tdep.c (frv_gdbarch_init): Update.
9453 * cris-tdep.c (cris_gdbarch_init): Update.
9454 * avr-tdep.c (avr_gdbarch_init): Update.
9455 * arm-tdep.c (arm_gdbarch_init): Update.
9456 * alpha-tdep.c (alpha_gdbarch_init): Update.
9457 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9458 max_register_raw_size or max_register_virtual_size.
9459
8e437497
DC
94602003-03-03 David Carlton <carlton@math.stanford.edu>
9461
9462 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9463 SYMBOL_MATCHES_NAME, add comment.
9464 (SYMBOL_MATCHES_NATURAL_NAME): New.
9465 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9466 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9467 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9468 * symtab.c (lookup_partial_symbol): Use
9469 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9470 unhelpful comment.
9471 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9472 SYMBOL_MATCHES_NAME.
9473 Fix for PR c++/33.
9474
25120b0d
DC
94752003-03-03 David Carlton <carlton@math.stanford.edu>
9476
9477 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9478 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9479 by regexp matching against SYMBOL_NATURAL_NAME.
9480
78a11fb4
DC
94812003-03-03 David Carlton <carlton@math.stanford.edu>
9482
9483 * linespec.c (find_method): Extract code into collect_methods.
9484 (collect_methods): New.
9485
645dd519
MK
94862003-03-02 Mark Kettenis <kettenis@gnu.org>
9487
b4700d91
MK
9488 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9489 get_frame_base.
9490
645dd519
MK
9491 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9492 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9493
0aa7e1aa
SC
94942003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9495
8ffd9b1b 9496 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9497 and not regnum when summing the size of all registers up to regnum.
9498
f30ee0bc
AC
94992003-03-01 Andrew Cagney <cagney@redhat.com>
9500
9501 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9502 FRAME_INIT_SAVED_REGS.
9503 * gdbarch.h, gdbarch.c: Regenerate.
9504 * stack.c (frame_info): Update.
9505 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9506 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9507 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9508 * ns32k-tdep.c (ns32k_pop_frame): Update.
9509 * mips-tdep.c (mips_pop_frame): Update.
9510 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9511 * ia64-tdep.c (ia64_frame_chain): Update.
9512 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9513 (ia64_frameless_function_invocation): Update.
9514 (ia64_init_extra_frame_info): Update.
9515 (ia64_pop_frame_regular): Update.
9516 * frame.h (struct frame_info): Update comment.
9517 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9518 * frame.c (frame_saved_regs_register_unwind): Update.
9519 (frame_saved_regs_register_unwind): Update.
9520 (deprecated_generic_get_saved_register): Update.
9521 * cris-tdep.c: Update comment.
9522 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9523 Rename macro.
9524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9525 * x86-64-tdep.c (x86_64_init_abi): Update.
9526 * vax-tdep.c (vax_gdbarch_init): Update.
9527 * v850-tdep.c (v850_gdbarch_init): Update.
9528 * sparc-tdep.c (sparc_gdbarch_init): Update.
9529 * sh-tdep.c (sh_gdbarch_init): Update.
9530 * s390-tdep.c (s390_gdbarch_init): Update.
9531 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9532 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9533 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9534 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9535 * mips-tdep.c (mips_gdbarch_init): Update.
9536 * mcore-tdep.c (mcore_gdbarch_init): Update.
9537 * m68k-tdep.c (m68k_gdbarch_init): Update.
9538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9539 * ia64-tdep.c (ia64_gdbarch_init): Update.
9540 * i386-tdep.c (i386_gdbarch_init): Update.
9541 * frv-tdep.c (frv_gdbarch_init): Update.
9542 * avr-tdep.c (avr_gdbarch_init): Update.
9543 * arm-tdep.c (arm_gdbarch_init): Update.
9544 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9545
42fa7c0f
AC
95462003-03-01 Andrew Cagney <cagney@redhat.com>
9547
9548 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9549 option enum and switch. When no windows, set the interpreter to
9550 INTERP_CONSOLE.
8ffd9b1b 9551
49c7e338
AC
95522003-03-01 Andrew Cagney <cagney@redhat.com>
9553
9554 * main.c (captured_main): Replace magic option characters with an
9555 enum.
9556
e9582e71
AC
95572003-03-01 Andrew Cagney <cagney@redhat.com>
9558
9559 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9560 INIT_EXTRA_FRAME_INFO.
9561 * gdbarch.h, gdbarch.c: Regenerate.
9562 * arm-tdep.c: Update comments.
9563 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9564 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9565 * frame.h, avr-tdep.c: Ditto.
9566 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9567 (create_new_frame, legacy_get_prev_frame): Ditto.
9568 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9569 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9571 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9572 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9573 * v850-tdep.c (v850_gdbarch_init): Ditto.
9574 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9575 * sh-tdep.c (sh_gdbarch_init): Ditto.
9576 * s390-tdep.c (s390_gdbarch_init): Ditto.
9577 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9578 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9579 * mips-tdep.c (mips_gdbarch_init): Ditto.
9580 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9582 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9583 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9584 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9585 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9586 * frv-tdep.c (frv_gdbarch_init): Ditto.
9587 * cris-tdep.c (cris_gdbarch_init): Ditto.
9588 * avr-tdep.c (avr_gdbarch_init): Ditto.
9589 * arm-tdep.c (arm_gdbarch_init): Ditto.
9590 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9591 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9592
35cac7cf
AC
95932003-03-01 Andrew Cagney <cagney@redhat.com>
9594
9595 * gdbarch.sh (register_type): New function with predicate.
9596 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9597 * gdbarch.h, gdbarch.c: Re-generate.
9598 * arch-utils.c (generic_register_byte): Use generic_register_size.
9599 (generic_register_size): When available, use
9600 gdbarch_register_type.
9601 * regcache.c (init_regcache_descr): When available, initialize the
9602 register type array using gdbarch_register_type. If the
9603 architecture supplies gdbarch_register_type, do not use the legacy
9604 regcache layout.
9605 * d10v-tdep.c (d10v_register_type): Replace
9606 d10v_register_virtual_type.
9607 (d10v_gdbarch_init): Set register_type instead of
9608 register_virtual_type.
9609
7b83296f
AC
96102003-03-01 Andrew Cagney <cagney@redhat.com>
9611
9612 * Makefile.in (ax-gdb.o): Update dependencies.
9613 * ax-gdb.c: Include "regcache.h".
9614 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9615 * findvar.c (value_of_register): Ditto.
9616 * infcmd.c (default_print_registers_info): Ditto.
9617
eadc1c87
MK
96182003-03-01 Mark Kettenis <kettenis@gnu.org>
9619
9620 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9621 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9622
14143612
MK
96232003-03-01 Mark Kettenis <kettenis@gnu.org>
9624
9625 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9626 of STREQ.
9627
a55cc764
DJ
96282003-02-28 Daniel Jacobowitz <drow@mvista.com>
9629
9630 * Makefile.in (dwarf2loc.o): Update dependencies.
9631 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9632 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9633 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9634 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9635 (locexpr_tracepoint_var_ref): New function.
9636 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9637
08a617da
AC
96382003-02-28 Andrew Cagney <cagney@redhat.com>
9639
9640 * regcache.c (register_size): New function.
9641 * regcache.h (register_size): Declare
9642 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9643 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9644
4224873a
DC
96452003-02-28 David Carlton <carlton@math.stanford.edu>
9646
9647 * linespec.c (decode_compound): Extract code into find_method.
9648 (find_method): New.
9649
ccdc5d7f
JB
96502003-02-28 J. Brobecker <brobecker@gnat.com>
9651
9652 * Makefile.in: Add rules to build and link in observer.o.
9653
974e8ced
JB
96542003-02-27 J. Brobecker <brobecker@gnat.com>
9655
9656 * observer.c: Minor comments edits.
9657
7a28f973
JB
96582003-02-27 J. Brobecker <brobecker@gnat.com>
9659
9660 * observer.h, observer.c: New file.
9661
27cddce2
AC
96622003-02-27 Andrew Cagney <cagney@redhat.com>
9663
9664 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9665
b94a41a1
SC
96662003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9667
9668 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9669 (M6812_OP_STS_EXT): Likewise.
9670 (m6811_prologue): Use the above to recognize prologue.
9671 (m6812_prologue): Likewise.
9672
c8be8951
DC
96732003-02-27 David Carlton <carlton@math.stanford.edu>
9674
9675 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9676 SYMBOL_PRINT_NAME.
9677 (compare_psymbols): Ditto.
9678 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9679
d05bb1fc
MS
96802003-02-27 Michael Snyder <msnyder@redhat.com>
9681
4e845cd3
MS
9682 * f-lang.c (build_fortran_types): New function.
9683 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9684 * doublest.c (extract_floating): Fix warning text.
9685
f3824013
AC
96862003-02-27 Andrew Cagney <cagney@redhat.com>
9687
9688 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9689 predicate. Replaces PUSH_DUMMY_FRAME.
9690 * gdbarch.h, gdbarch.c: Regnerate.
9691 * valops.c (hand_function_call): Update. Call
9692 generic_push_dummy_frame directly.
9693 * vax-tdep.c (vax_gdbarch_init): Update.
9694 * sparc-tdep.c (sparc_gdbarch_init): Update.
9695 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9696 * m68k-tdep.c (m68k_gdbarch_init): Update.
9697 * hppa-tdep.c (hppa_gdbarch_init): Update.
9698 * alpha-tdep.c (alpha_gdbarch_init): Update.
9699 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9700 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9701 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9703 push_dummy_frame to generic_push_dummy_frame.
9704 * v850-tdep.c (v850_gdbarch_init): Ditto.
9705 * sh-tdep.c (sh_gdbarch_init): Ditto.
9706 * s390-tdep.c (s390_gdbarch_init): Ditto.
9707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9708 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9709 * mips-tdep.c (mips_gdbarch_init): Ditto.
9710 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9712 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9713 * i386-tdep.c (i386_gdbarch_init): Ditto.
9714 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9715 * frv-tdep.c (frv_gdbarch_init): Ditto.
9716 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9717 * cris-tdep.c (cris_gdbarch_init): Ditto.
9718 * avr-tdep.c (avr_gdbarch_init): Ditto.
9719 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9720
ad188201
KB
97212003-02-26 Kevin Buettner <kevinb@redhat.com>
9722
9723 * mips-tdep.c (show_mips_abi): New function.
9724 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9725 command ``show mips abi''.
9726
6b37567a 97272003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9728
6b37567a 9729 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9730 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9731 more sline entries have been seen for the function.
9732
d3e0a5bf
MC
97332003-02-26 Michael Chastain <mec@shout.net>
9734
9735 * configure: Regenerate with autoconf 000227.
9736
18972eea
MC
97372003-02-26 Michael Chastain <mec@shout.net>
9738
9739 Close PR build/660.
9740 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9741 for old libc5/glibc.
9742 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9743
0bbde931
KW
97442003-02-26 Kris Warkentin <kewarken@qnx.com>
9745
9746 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9747 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9748
27ca5dad
MC
97492003-02-26 Michael Chastain <mec@shout.net>
9750
9751 * configure.in: New variable HAVE_UINTPTR_T.
9752 * configure, config.in: Regenerated.
9753
6f88d630
DJ
97542003-02-26 Daniel Jacobowitz <drow@mvista.com>
9755
9756 Fix PR build/1097.
9757 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9758
b14185ce
AC
97592003-02-25 Andrew Cagney <cagney@redhat.com>
9760
9761 * frame.c (get_prev_frame): Add comment on check for
9762 inside_entry_func. Only check for inside_entry_file when not a
9763 dummy and not a sentinel. Check that the new frame is not inner
9764 to the old frame.
9765
ac2bd0a9
AC
97662003-02-25 Andrew Cagney <cagney@redhat.com>
9767
9768 * frame.c (frame_debug): New variable.
9769 (_initialize_frame): Add "set/show debug frame" command.
9770 (get_prev_frame): When frame_debug, print reason why unwind
9771 failed.
9772
b18a0fd2
MC
97732003-02-25 Michael Chastain <mec@shout.net>
9774
9775 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9776 to avoid uintptr_t definition problems.
9777
22abf04a
DC
97782003-02-25 David Carlton <carlton@math.stanford.edu>
9779
9780 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9781 (SYMBOL_LINKAGE_NAME): Ditto.
9782 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9783 SYMBOL_LINKAGE_NAME.
9784 (struct general_symbol_info): Expand comment.
9785 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9786 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9787 (SYMBOL_MATCHES_REGEXP): Ditto.
9788 * symtab.c (symbol_natural_name): New function.
9789 * objfiles.h: Replace all uses of SYMBOL_NAME by
9790 DEPRECATED_SYMBOL_NAME.
9791 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9792 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9793 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9794 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9795 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9796 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9797 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9798 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9799 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9800 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9801 * ada-exp.y: Ditto.
9802 * ada-exp.y: Update copyright.
9803 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9804 * cp-valprint.c: Ditto.
9805
1a5848f6
JJ
98062003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9807
9808 * infptrace.c (detach): Do not flag error if ptrace detach fails
9809 and errno is set to ESRCH.
9810
7343d46a
AC
98112003-02-24 Andrew Cagney <cagney@redhat.com>
9812
9813 * infptrace.c (udot_info): Change type of udot_off to long. Use
9814 paddr when printing udot_off's value.
9815
49fa1dc2
DC
98162003-02-24 David Carlton <carlton@math.stanford.edu>
9817
9818 * symtab.c (make_symbol_overload_list): Only read in partial
9819 symtabs containing a matching partial symbol.
9820
0fe19209
DC
98212003-02-24 David Carlton <carlton@math.stanford.edu>
9822
9823 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9824 do the comparison, not strcmp.
9825 * symfile.c (compare_psymbols): Ditto.
9826 * defs.h: Declare strcmp_iw_ordered.
9827 * utils.c (strcmp_iw_ordered): New function.
9828
8e3ee7b5
JB
98292003-02-24 Jim Blandy <jimb@redhat.com>
9830
9831 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9832 support, shared libs): Remove my name from here, to better reflect
9833 reality.
9834
7df1a324
KW
98352003-02-24 Kris Warkentin <kewarken@qnx.com>
9836
9837 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9838 (target_ops): Add to_have_continuable_watchpoint.
9839 * target.c (update_current_target): Add INHERIT line for
9840 to_have_continuable_watchpoint.
9841 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9842 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9843 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9844 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9845
d1c76907
EZ
98462003-02-24 Elena Zannoni <ezannoni@redhat.com>
9847
9848 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9849 maintainership.
9850
2610b0bf
KW
98512003-02-24 Kris Warkentin <kewarken@qnx.com>
9852
f46169db
KW
9853 * solib.c (solib_open): Call target defined search function after
9854 failing with solib-search-path.
9855 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9856 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9857
9a3c34fe
KW
98582003-02-24 Kris Warkentin <kewarken@qnx.com>
9859
f46169db 9860 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9861
2417dd25
SC
98622003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9863
9864 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9865
b631436b
SC
98662003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9867
9868 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9869 (m68hc11_add_reggroups): New function.
9870 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9871 (m68hc11_gdbarch_init): Install the reggroups.
9872 (_initialize_m68hc11_tdep): Initialize them.
9873
0aa8c1e4
JW
98742003-02-21 James E Wilson <wilson@tuliptree.org>
9875
9876 * MAINTAINERS: Update my email address.
9877
50ceaba5
DC
98782003-02-21 David Carlton <carlton@math.stanford.edu>
9879
9880 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9881
4c2df51b
DJ
98822003-02-21 Daniel Jacobowitz <drow@mvista.com>
9883
9884 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9885 * symtab.h: Add opaque declarations of struct axs_value and
9886 struct agent_expr.
9887 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9888 (struct location_funcs): New type.
9889 (struct symbol): Add "loc" to aux_value.
9890 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9891 * dwarf2read.c: Include "dwarf2expr.h".
9892 (dwarf2_symbol_mark_computed): New function.
9893 (read_func_scope): Use it.
9894 (var_decode_location): New function.
9895 (new_symbol): Use it.
9896 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9897
9898 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9899 (dwarf2expr_h, dwarf2loc_h): New variables.
9900 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9901 (dwarf2expr.o, dwarf2loc.o): New rules.
9902 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9903 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9904 LOC_COMPUTED_ARG.
9905 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9906 * m2-exp.y (yylex): Likewise.
9907 * printcmd.c (address_info, print_frame_args): Likewise.
9908 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9909 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9910 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9911 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9912 * symtab.c (lookup_block_symbol): Likewise.
9913
5784d15e
AF
99142003-02-20 Adam Fedor <fedor@gnu.org>
9915
9916 * symtab.h: Remove objc_specific struct
9917 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9918 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9919 Have language_objc use cplus_specific struct.
9920
d4cad8db
TT
99212003-02-20 Tom Tromey <tromey@redhat.com>
9922
9923 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9924 TYPE_NAME, when printing a String value. PR java/1075.
9925
2f9a90b4
AF
99262003-02-20 Adam Fedor <fedor@gnu.org>
9927
d38074a8 9928 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9929 * objc-lang.c (find_methods): Make static.
2f9a90b4 9930
6f17862b
CF
99312003-02-20 Christopher Faylor <cgf@redhat.com>
9932
9933 * win32-nat.c (get_image_name): Check return value from
9934 ReadProcessMemory.
9935 (child_xfer_memory): Ditto.
9936
715d1656
AO
99372003-02-20 Alexandre Oliva <aoliva@redhat.com>
9938
9939 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9940 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9941 '${exec_prefix}' (in addition to the expansion thereof) as
9942 relocatable.
9943 * configure: Rebuilt.
9944
b1262a02
DC
99452003-02-20 David Carlton <carlton@math.stanford.edu>
9946
9947 * symtab.c (search_symbols): Revert the search_symbols part of my
9948 2002-12-23 patch. Add comment.
9949
7134143f
DJ
99502002-02-20 Daniel Jacobowitz <drow@mvista.com>
9951
9952 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9953 * dbxread.c (elfstab_build_psymtabs): Don't call
9954 install_minimal_symbols.
9955 (stabsect_build_psymtabs): Likewise.
9956 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9957 earlier.
9958 * somread.c (som_symfile_read): Call install_minimal_symbols
9959 and do_cleanups earlier.
9960 * nlmread.c (nlm_symfile_read): Likewise.
9961 * mdebugread.c (elfmdebug_build_psymtabs): Call
9962 install_minimal_symbols and make appropriate cleanups.
9963
cf466558
KB
99642003-02-20 Kevin Buettner <kevinb@redhat.com>
9965
9966 * solib.c (reload_shared_libraries): New function.
9967 (_initialize_solib): Add callbacks for ``set solib-search-path''
9968 and ``set solib-absolute-prefix''.
9969
de5ad195
DC
99702003-02-20 David Carlton <carlton@math.stanford.edu>
9971
9972 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9973 expand comment.
9974 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9975 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9976 * ada-typeprint.c (ada_typedef_print): Ditto.
9977 * ax-gdb.c (gen_var_ref): Ditto.
9978 * breakpoint.c (print_one_breakpoint): Ditto.
9979 * buildsym.c (finish_block): Ditto.
9980 * c-valprint.c (c_val_print): Ditto.
9981 * expprint.c (print_subexp): Ditto.
9982 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9983 * infcmd.c (jump_command): Ditto.
9984 * linespec.c (decode_line_2, decode_compound): Ditto.
9985 * maint.c (maintenance_translate_address): Ditto.
9986 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9987 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9988 Ditto.
8ffd9b1b
AJ
9989 * p-valprint.c (pascal_val_print): Ditto.
9990 * stabsread.c (define_symbol): Ditto.
de5ad195 9991 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9992 (print_frame_arg_vars, return_command): Ditto.
9993 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9994 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9995 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9996 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9997 (rbreak_command): Ditto.
9998 * tracepoint.c (tracepoints_info): Ditto.
9999 * typeprint.c (typedef_print): Ditto.
10000 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10001 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10002 * ada-typeprint.c: Update Copyright.
10003 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10004 * tracepoint.c, cli/cli-cmds.c: Ditto.
10005
f796e4be
KB
100062003-02-20 Kevin Buettner <kevinb@redhat.com>
10007
10008 * frame.c (generic_unwind_get_saved_register): Make non-static.
10009 * frame.h (generic_unwind_get_saved_register): Declare.
10010 * mips-tdep.c (read_next_frame_reg): Fetch register from
10011 current regcache when frame is NULL.
10012 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10013 that must be NULL.
10014 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10015 instead of frame_register_unwind().
10016
836cc9f4
AC
100172003-02-20 Andrew Cagney <ac131313@redhat.com>
10018
10019 * remote-sim.c (gdbsim_insert_breakpoint)
10020 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10021 code.
10022
501eef12
AC
100232003-02-20 Andrew Cagney <ac131313@redhat.com>
10024
10025 * remote.c (_initialize_remote): Add commands "set/show remote
10026 hardware-watchpoint-limit" and "set/show remote
10027 hardware-breakpoint-limit".
10028 (remote_hw_watchpoint_limit): Initialize to -1.
10029 (remote_hw_breakpoint_limit): Ditto.
10030 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10031
1b6bc7e0
CF
100322003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10033
10034 * coff-pe-read.c: New file - support reading of minimal symbols from a
10035 portable executable using the export table.
10036 * coff-pe-read.h: New file.
10037 * coffread.c: Include coff-pe-read.h.
10038 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10039 debugging symbols found.
10040 * Makefile.in (SFILES): Add coff-pe-read.o.
10041 (coff_pe_read_h): Define.
10042 (COMMON_OBS): Add coff-pe-read.o.
10043 (coffread.o): Add coff_pe_read_h dependency.
10044 (coff-pe-read.o): New target.
10045
fe898f56
DC
100462003-02-19 David Carlton <carlton@math.stanford.edu>
10047
10048 * Makefile.in (SFILES): Add block.c.
10049 (block_h): New.
10050 (COMMON_OBS): Add block.o.
10051 (block.o): New.
10052 (x86-64-tdep.o): Add $(block_h).
10053 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10054 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10055 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10056 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10057 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10058 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10059 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10060 * value.h: Add opaque declaration for struct block.
10061 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10062 * ada-lang.h: Ditto.
10063 * x86-64-tdep.c: #include "block.h"
10064 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10065 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10066 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10067 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10068 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10069 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10070 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10071 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10072 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10073 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10074 * symtab.c (block_function): Ditto.
10075 (contained_in): Ditto.
10076 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10077 block.h. Add opaque declaration for struct block.
10078 * symtab.h: Move block_function and contained_in declarations to
10079 block.h. Add opaque declarations for struct block, struct
10080 blockvector.
10081 (struct block): Move to block.h.
10082 (struct blockvector): Ditto.
10083 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10084 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10085 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10086 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10087 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10088 Ditto.
10089 * block.c: New file.
10090 * block.h: New file.
10091
173345b5
TR
100922003-02-19 Theodore A. Roth <troth@openavr.org>
10093
10094 * avr-tdep.c (avr_extract_return_value): Remove function.
10095 (avr_store_return_value): Remove function.
10096 (avr_extract_struct_value_address): Remove function.
10097 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10098
338ef23d
AC
100992003-02-19 Andrew Cagney <ac131313@redhat.com>
10100
10101 * rs6000-tdep.c: Include "gdb_assert.h".
10102 (registers_e500): Add "acc" and "spefscr".
10103 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10104 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10105 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10106 really is "r0".
10107 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10108
5412f5f3
KS
101092003-02-18 Keith Seitz <keiths@redhat.com>
10110
10111 * Makefile.in: Add gdbtk-interps.c.
10112
881324eb
KB
101132003-02-18 Kevin Buettner <kevinb@redhat.com>
10114
10115 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10116 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10117
6a2f5abf
AC
101182003-02-18 Andrew Cagney <cagney@redhat.com>
10119
10120 * symtab.h (struct objfile): Add opaque declaration.
10121
54c7009d
EZ
101222003-02-18 Elena Zannoni <ezannoni@redhat.com>
10123
10124 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10125 * dbxread.c (process_one_symbol): Use last_function_start rather
10126 than function_start_offset to find the real beginning of the
10127 current function. The latter is just the text section offset on
10128 some systems, the former is always the real function start.
54c7009d 10129
7ee6d7eb
AC
101302003-02-17 Andrew Cagney <cagney@redhat.com>
10131
10132 * configure.in: Revert ${target} != ${host}.
10133
2846da9b
AC
101342003-02-17 Andrew Cagney <ac131313@redhat.com>
10135
10136 * configure.in (Makefile): Use the test ${target} != ${host},
10137 instead of the absence of the "nm.h" file, to determine of the
10138 configuration non-native.
10139 * configure: Regenerate.
8ffd9b1b 10140
3b27aeea
EZ
101412003-02-14 Elena Zannoni <ezannoni@redhat.com>
10142
fbe586ae 10143 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10144
10145 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10146 conditionalize tui_active test.
10147 (lookup_cmd_1): Ditto.
10148
b0b1c2c0
MK
101492003-02-14 Mark Kettenis <kettenis@gnu.org>
10150
10151 * configure.in: Add check for _etext.
10152 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10153 available.
10154 * config.in, configure: regenerated.
10155
8f05cde5
DJ
101562003-02-14 Daniel Jacobowitz <drow@mvista.com>
10157
10158 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10159
021e7609
AC
101602003-02-14 Andrew Cagney <ac131313@redhat.com>
10161
10162 * main.c (tui_version): Delete variable.
10163 (captured_main): When --tui, set interpreter_p to "tui" instead of
10164 enabling tui_version.
10165 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10166 tui_version.
10167 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10168 * cli/cli-cmds.c (disassemble_command): Ditto.
10169 * defs.h (tui_version): Delete declaration.
10170 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10171 (tui-interp.o): Add rules.
10172 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10173
e325dcec
CF
101742003-02-14 Christopher Faylor <cgf@redhat.com>
10175
36ffb041 10176 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10177 just-loaded dll.
10178
c4f90d87
JM
101792003-02-12 Jason Molenda (jmolenda@apple.com)
10180
fbe586ae
RH
10181 * symmisc.c (print_objfile_statistics): Include information about
10182 the number of psymtabs and symtabs in each object file.
c4f90d87 10183
e46e5ccd
KS
101842003-02-13 Keith R Seitz <keiths@redhat.com>
10185
10186 * main.h (struct captured_main_args): Add interpreter_p.
10187 * main.c (captured_main): Initialize interpreter_p from context.
10188 * gdb.c (main): Set interpreter_p argument.
10189 * Makefile.in (gdb.o): Add dependency for interps.h.
10190
fe97fe9c
AC
101912003-02-12 Andrew Cagney <ac131313@redhat.com>
10192
10193 * event-top.c (cli_command_loop): Delete declaration.
10194 (_initialize_event_loop): Delete function setting event_loop_hook.
10195 * event-top.h (cli_command_loop): Declare. Update copyright.
10196 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10197 * interps.c (current_interp_command_loop): When event_loop_p, call
10198 cli_command_loop.
10199
1cdac4ef
AC
102002003-02-12 Andrew Cagney <ac131313@redhat.com>
10201
10202 * interps.h (interp_command_loop_ftype): Change return type to
10203 void.
10204
48037ead
ML
102052003-02-12 Michal Ludvig <mludvig@suse.cz>
10206
10207 * x86-64-tdep.c (x86_64_extract_return_value)
10208 (x86_64_store_return_value): Use regcache instead of regbuf.
10209 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10210 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10211
033afc63
AC
102122003-02-11 Andrew Cagney <ac131313@redhat.com>
10213
10214 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10215 * aclocal.m4: Regenerate.
10216 * configure: Regenerate.
10217
10218 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10219 TCL_LD_SEARCH_FLAGS.
10220
40d02bca
ML
102212003-02-10 Michal Ludvig <mludvig@suse.cz>
10222
10223 * dwarf2cfi.c: Reindented.
10224
11308a41
AC
102252003-02-09 Andrew Cagney <ac131313@redhat.com>
10226
10227 * interps.c (clear_interpreter_hooks): Convert function definition
10228 to ISO C.
10229
e1c1c0f6
DC
102302003-02-07 David Carlton <carlton@math.stanford.edu>
10231
10232 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10233
ab5d3da6
KB
102342003-02-07 Kevin Buettner <kevinb@redhat.com>
10235
10236 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10237 (struct type): ...to here.
10238 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10239 field.
10240 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10241 (replace_type): Set length on all type variants for a given type.
10242
b8a92b82
AC
102432003-02-07 Andrew Cagney <ac131313@redhat.com>
10244
10245 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10246 <sys/stat.h>.
10247 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10248
5cb316ef
AC
102492003-02-06 Andrew Cagney <ac131313@redhat.com>
10250
2555fe1a
AC
10251 * Makefile.in (symm-nat.o): Update dependencies.
10252 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10253 (lynx-nat.o, ia64-linux-nat.): Ditto.
10254 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10255 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10256 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10257
44270758
AC
10258 * Makefile.in (inflow_h): Define.
10259 (procfs.o, inflow.o, procfs.o): Update dependencies.
10260 * inftarg.c (child_stop): Delete extern declaration of
10261 inferior_process_group. Include "inflow.h".
10262 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10263 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10264 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10265 (our_process_group, inferior_process_group): Extern declarations.
10266
df8f7274
AC
10267 * procfs.c: Include "gdb_assert.h".
10268
5cb316ef
AC
10269 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10270 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10271 * jv-typeprint.c (java_type_print_base): Ditto.
10272 * typeprint.c (typedef_print): Eliminate STREQ.
10273 * cli/cli-script.c (define_command, define_command): Ditto.
10274 * main.c (captured_main): Ditto.
10275 * values.c (lookup_internalvar): Ditto.
10276 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10277 within `if' conditional.
10278 * linespec.c (decode_line_2): Ditto.
10279 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10280 (bfd_openw_with_cleanup): Ditto.
10281
2a28ccea
MK
102822003-02-07 Mark Kettenis <kettenis@gnu.org>
10283
10284 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10285 legacy_extract_return_value and store_return_value to
10286 legacy_return_value.
10287
786b8124
CF
102882003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10289
10290 * win32-nat.c (get_relocated_section_addrs): New function. Find
10291 section load addresses for symbol handling in relocated DLLs.
10292 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10293
b871e4ec
FF
102942003-02-05 Fred Fish <fnf@intrinsity.com>
10295
10296 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10297 '=' and '!='.
10298 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10299 with '&' and '=='.
10300 (angel_RDI_info): Ditto.
10301 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10302 with '&' and '!='.
10303 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10304
4389a95a 103052003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10306 Keith Seitz <keiths@redhat.com>
10307 Elena Zannoni <ezannoni@redhat.com>
10308 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10309
10310 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10311 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10312 (SUBDIR_MI_OBS): Add "mi-interp.o".
10313 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10314 (SFILES): Add "interps.c".
10315 (COMMON_OBS): Add "interps.o".
10316 (interps_h, mi_main_h): Define.
10317 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10318 (mi-main.o, main.o, event-top.o): Update dependencies.
10319 * cli/cli-interp.c: New file.
10320 * interps.h, interps.c: New files.
10321 * top.c: (gdb_init): Don't install the default interpreter, handed
10322 by captured_main.
10323 * main.c: Include "interps.h".
10324 (interpreter_p): Note that it should malloc'ed.
10325 (captured_command_loop): Call current_interp_command_loop.
10326 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10327 xfree and xstrdup when updating interpreter_p. Install the
10328 default interpreter. Add hack to stop mi1's copyright notice
10329 being encoded.
10330 * event-top.h (gdb_setup_readline): Declare.
10331 (gdb_disable_readline): Declare.
10332 * event-top.c: Include "interps.h".
10333 (display_gdb_prompt): Call current_interp_display_prompt_p.
10334 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10335 gdb_stdlog, and gdb_stdtarg.
10336 (_initialize_event_loop): Don't call gdb_setup_readline.
10337 * cli-out.c (cli_out_set_stream): New function.
10338 * cli-out.h (cli_out_set_stream): Declare.
10339
ff3b5810
MK
103402003-02-06 Mark Kettenis <kettenis@gnu.org>
10341
10342 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10343 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10344 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10345 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10346 config/i386/i386v42mp.mt: Removed.
10347
5b729aa5
MK
103482003-02-05 Mark Kettenis <kettenis@gnu.org>
10349
10350 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10351 GDB_OSABI_SOLARIS.
10352
8cc15142
MC
103532003-02-05 Michael Chastain <mec@shout.net>
10354
10355 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10356 2.12.1 and earlier versions.
10357
5aa5d4b9
AC
103582003-02-05 Andrew Cagney <ac131313@redhat.com>
10359
10360 Remove orphaned hosts, targets and files.
10361 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10362 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10363 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10364 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10365 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10366 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10367 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10368 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10369 * config/sparc/tm-sp64sim.h: Delete.
10370 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10371 hosts.
10372 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10373 mips*-dec-mach3* targets.
10374
b68767c1
MC
103752003-02-04 Michael Chastain <mec@shout.net>
10376
10377 * NEWS: Fix typo: sepcifying -> specifying.
10378
5ae7ca1d
MC
103792003-02-04 Michael Chastain <mec@shout.net>
10380
10381 * dwarfread.c: Add documentation on the state of dwarf-1,
10382 looking towards obsoletion.
10383
d08a4280
MC
103842003-02-03 Michael Chastain <mec@shout.net>
10385
10386 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10387 gdb/testsuite/gdb.c++/pr-1023.exp.
10388
e9be73e4
AC
103892003-02-04 Andrew Cagney <ac131313@redhat.com>
10390
10391 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10392 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10393
10394 * utils.c (init_page_info): Delete reference to MPW in comments.
10395 * main.c (captured_main): Delete #ifdef MPW.
10396
05d57f6f
AC
103972003-02-04 Andrew Cagney <ac131313@redhat.com>
10398
8ffd9b1b 10399 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10400 * monitor.c (monitor_expect): Obsolete reference to m32r.
10401 * configure.tgt: Mark m32r-*-elf* as obsolete.
10402 * MAINTAINERS: Mark m32k as obsolete.
10403 * m32r-rom.c: Obsolete file.
10404 * config/m32r/m32r.mt: Obsolete file.
10405 * config/m32r/tm-m32r.h: Obsolete file.
10406 * m32r-stub.c: Obsolete file.
10407 * m32r-tdep.c: Obsolete file.
10408
8b0e5691
AC
104092003-02-04 Andrew Cagney <ac131313@redhat.com>
10410
10411 * NEWS: Mention that the z8k-zilog-none is obsolete.
10412 * MAINTAINERS: Mark z8k as obsolete.
10413 * configure.tgt: Obsolete the z8k-*-coff* target.
10414 * config/z8k/z8k.mt: Obsolete file.
10415 * config/z8k/tm-z8k.h: Obsolete file.
10416 * z8k-tdep.c: Obsolete file.
10417
67f16606
AC
104182003-02-04 Andrew Cagney <ac131313@redhat.com>
10419
10420 * NEWS: Mention that the mn10200-elf is obsolete.
10421 * configure.tgt: Obsolete mn10200-*-* target.
10422 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10423 mention that the mn10200 is obsolete.
10424 * breakpoint.h: Ditto.
10425 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10426 * config/mn10200/mn10200.mt: Obsolete file.
10427 * config/mn10200/tm-mn10200.h: Obsolete file.
10428 * mn10200-tdep.c: Obsolete file.
10429
fd2299bd
AC
104302003-02-04 Andrew Cagney <ac131313@redhat.com>
10431
10432 * MAINTAINERS: Mark h8500 as obsolete.
10433 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10434 * findvar.c (value_from_register): Ditto.
10435 * h8500-tdep.c: Mark file as obsolete.
10436 * config/h8500/h8500.mt: Ditto.
10437 * config/h8500/tm-h8500.h: Ditto.
10438 * NEWS: Mention that h8500 is obsolete.
10439
eb9a305d
DC
104402003-02-04 David Carlton <carlton@math.stanford.edu>
10441
10442 * objfiles.c (allocate_objfile): Always set name. Add comment at
10443 start of function.
10444 * jv-lang.c (get_dynamics_objfile): Add comment.
10445
406fc7fb
DC
104462003-02-04 David Carlton <carlton@math.stanford.edu>
10447
10448 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10449 * printcmd.c (build_address_symbolic): Replace uses of
10450 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10451 SYMBOL_NAME, and asm_demangle.
10452 Update copyright.
10453
93d91629
DC
104542003-02-04 David Carlton <carlton@math.stanford.edu>
10455
10456 * linespec.c (decode_compound): Extract code into
10457 lookup_prefix_sym.
10458 (lookup_prefix_sym): New function.
10459
1c5cb38e
DC
104602003-02-04 David Carlton <carlton@math.stanford.edu>
10461
10462 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10463 FLOAT_COERCION_BADNESS.
10464 * gdbtypes.c (rank_one_type): Replace all uses of
10465 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10466
0cf824c9
JB
104672003-02-04 Jim Blandy <jimb@redhat.com>
10468
10469 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10470 section, let dwarf_macinfo_section point to it, not
10471 dwarf_loc_section.
10472
a2d356b0
DJ
104732003-02-04 Daniel Jacobowitz <drow@mvista.com>
10474
10475 Pointed out by Anton Blanchard <anton@samba.org>.
10476 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10477 (ppc_linux_at_sigtramp_return_path): Use it.
10478
2de7ced7
DJ
104792003-02-04 Daniel Jacobowitz <drow@mvista.com>
10480
10481 * defs.h (streq): Add prototype.
10482 * utils.c (streq): New function.
10483
10484 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10485 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10486 * mdebugread.c (new_symbol): Likewise.
10487 * stabsread.c (define_symbol): Likewise.
10488 * coffread.c (process_coff_symbol): Likewise.
10489 * dwarfread.c (new_symbol): Likewise.
10490
10491 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10492 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10493 here.
10494 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10495 SYMBOL_INIT_DEMANGLED_NAME.
10496 * objfiles.c: Include "hashtab.h".
10497 (allocate_objfile): Call htab_set_functions_ex for the
10498 demangled_names_hash.
10499 (free_objfile): Call htab_delete for the demangled_names_hash.
10500 * objfiles.h (struct htab): Add declaration.
10501 (struct objfile): Add demangled_names_hash.
10502 * symfile.c: Include "hashtab.h".
10503 (reread_symbols): Call htab_delete for the demangled_names_hash.
10504 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10505 SYMBOL_NAME in the bcache.
10506 * symtab.c: Include "hashtab.h". Update comments.
10507 (create_demangled_names_hash, symbol_set_names): New functions.
10508 (symbol_find_demangled_name): New function, broken out from
10509 symbol_init_demangled_names.
10510 (symbol_init_demangled_names): Use it.
10511 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10512 (SYMBOL_SET_NAMES): New macro.
10513 (symbol_set_names): Add prototype.
10514
15831452
JB
105152003-02-03 Jim Blandy <jimb@redhat.com>
10516
10517 Use a single, consistent representation for an empty minimal
10518 symbol table in an objfile.
10519 * objfiles.c (terminate_minimal_symbol_table): New function.
10520 (allocate_objfile): Call it.
10521 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10522 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10523 non-NULL.
15831452
JB
10524 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10525 objfile has minimal symbols, compare minimal_symbol_count to zero,
10526 instead of comparing msymbols with NULL.
10527 * objfiles.c (have_minimal_symbols): Same.
10528 * solib-sunos.c (solib_add_common_symbols): Call
10529 terminate_minimal_symbol_table.
10530 * symfile.c (reread_symbols): Same.
8ffd9b1b 10531
ffc65945
KB
105322003-02-03 Kevin Buettner <kevinb@redhat.com>
10533
10534 * s390-tdep.c (s390_address_class_type_flags)
10535 (s390_address_class_type_flags_to_name)
10536 (s390_address_class_name_to_type_flags): New functions.
10537 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10538 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10539
f211c6d4
MS
105402003-02-03 Michael Snyder <msnyder@redhat.com>
10541
10542 * arm-tdep.c: Fix spell-o in comment.
10543
659b0389
ML
105442003-02-03 Michal Ludvig <mludvig@suse.cz>
10545
10546 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10547 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10548 error messages to contain BFD filename.
659b0389 10549
3b31d625
EZ
105502003-02-02 Elena Zannoni <ezannoni@redhat.com>
10551
997b089a 10552 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10553 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10554 (do_mixed_source_and_assembly): Use
10555 make_cleanup_ui_out_tuple_begin_end and
10556 make_cleanup_ui_out_tuple_begin_end.
10557 (do_mixed_source_and_assembly): Ditto.
10558 * thread.c (do_captured_list_thread_ids): Ditto.
10559 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10560 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10561 ui_out_tuple_end): Delete prototypes.
10562 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10563 ui_out_list_end, ui_out_tuple_end): Delete.
10564
10565 From Kevin Buettner <kevinb@redhat.com>:
10566 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10567 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10568 (do_cleanup_table_end): New functions.
10569 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10570 Use cleanups to invoke_ui_out_tuple_end().
10571 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10572 * cli/cli-setshow.c (cmd_show_list): Use
10573 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10574
5b181d62
AC
105752003-02-02 Andrew Cagney <ac131313@redhat.com>
10576
10577 * frame.c (frame_unwind_register): New function.
10578 (frame_unwind_unsigned_register): Use.
10579 (frame_unwind_signed_register): Use.
10580 (frame_read_register): New function.
10581 * frame.h (frame_unwind_register): Declare.
10582 (frame_read_register): Declare.
10583
10584 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10585 and frame_unwind_register instead of read_memory, write_register
10586 and deprecated_write_register_bytes.
10587
5f601589
AC
105882003-02-02 Andrew Cagney <ac131313@redhat.com>
10589
10590 * frame.h: Note that namelen can be negative.
10591 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10592 NAME's length.
10593
10594 * NEWS: Mention that the d10v's `regs' command is deprecated.
10595 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10596 (d10v_print_registers_info): New function.
10597 (show_regs): Call d10v_print_registers_info.
10598 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10599
6a3fe0a4
MK
106002003-02-02 Mark Kettenis <kettenis@gnu.org>
10601
10602 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10603 lost in the previous patch.
10604
075559bc
AC
106052003-02-01 Andrew Cagney <ac131313@redhat.com>
10606
10607 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10608 * stack.c (print_frame_info_base): Output complete FRAME tuple
10609 for synthesized frames.
075559bc 10610
6789195b
AC
106112003-02-02 Andrew Cagney <ac131313@redhat.com>
10612
10613 * mips-nat.c (zerobuf): Delete.
10614 (fetch_inferior_registers): Alloc local zerobuf.
10615 (fetch_core_registers): Alloc local zerobuf.
10616 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10617 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10618 * thread-db.c (thread_db_store_registers): Ditto.
10619 * sh-tdep.c (sh_do_register): Ditto.
10620 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10621 * remote-sim.c (gdbsim_store_register): Ditto.
10622 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10623 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10624 * monitor.c (monitor_supply_register): Ditto.
10625 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10626 * mips-nat.c (fetch_inferior_registers): Ditto.
10627 * m68klinux-nat.c (fetch_register): Ditto.
10628 * lynx-nat.c (fetch_inferior_registers): Ditto.
10629 (fetch_inferior_registers): Ditto.
10630 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10631 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10632 (hpux_thread_store_registers): Ditto.
10633 * hppah-nat.c (fetch_register): Ditto.
10634 * hppab-nat.c (fetch_register): Ditto.
10635 * hppa-tdep.c (pa_register_look_aside): Ditto.
10636 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10637 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10638
e669114a
AC
106392003-02-01 Andrew Cagney <ac131313@redhat.com>
10640
10641 * gdbarch.sh: Explictly specify all method levels. When a
10642 variable with an empty level, provide a non-multi-arch default.
10643 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10644 * gdbarch.h: Re-generate.
10645 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10646 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10647
9a043c1d
AC
106482003-02-01 Andrew Cagney <ac131313@redhat.com>
10649
10650 * defs.h (host_pointer_to_address): Delete declaration.
10651 (address_to_host_pointer): Delete declaration.
10652 * utils.c (host_pointer_to_address): Delete function.
10653 (address_to_host_pointer): Delete function.
10654 * procfs.c (procfs_address_to_host_pointer): New function.
10655 * procfs.c (proc_set_watchpoint): Use.
10656 (procfs_can_use_hw_breakpoint): Update comments.
10657 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10658 (som_solib_add): Use.
10659 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10660 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10661
7ca9f392
AC
106622003-02-01 Andrew Cagney <ac131313@redhat.com>
10663
94bbfd30
AC
10664 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10665 strlen d_name.
10666
7ca9f392
AC
10667 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10668 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10669 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10670 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10671 (define_symbol): Update.
10672 * symfile.c (generic_load): Remove references to nindy.
10673 * symtab.c: Remove references to nindy.
10674
31a85ea2
AC
106752003-02-01 Andrew Cagney <ac131313@redhat.com>
10676
10677 * infcmd.c (print_float_info): Delete code conditional on
10678 FLOAT_INFO.
10679 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10680 * config/m68k/nm-apollo68b.h: Ditto.
10681 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10682 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10683 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10684
f6e85fc8
MK
106852003-02-01 Mark Kettenis <kettenis@gnu.org>
10686
6015b6a0
MK
10687 * config/i386/tm-i386os9k.h: Removed.
10688
f7a30bdf
MK
10689 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10690 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10691 they're identical to i[3456]86-*-sysv* now.
10692 * config/i386/i386v32.mh: Removed.
10693 * config/i386/xm-i386v32.h: Removed.
10694 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10695
28d52111
MK
10696 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10697
4d3f6bce
MK
10698 * config/i386/i386dgux.mh: Removed.
10699 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10700
f6e85fc8
MK
10701 * configure.in: Fix typo.
10702 * configure: Regenerated.
10703
53955967
DC
107042003-01-31 David Carlton <carlton@math.stanford.edu>
10705
10706 * dwarf2read.c (dwarf2_locate_sections): Set
10707 dwarf_ranges_section.
10708
b1364885
AC
107092003-01-31 Andrew Cagney <ac131313@redhat.com>
10710
8dbb1c65
AC
10711 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10712 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10713
8731e58e
AC
10714 * utils.c: Re-indent.
10715
b1364885
AC
10716 * config/djgpp/fnchange.lst: Delete nindy files.
10717 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10718 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10719 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10720 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10721 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10722 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10723 * Makefile.in (init.c): Remove nindy references.
10724 (saber_gdb): Delete rule.
10725 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10726 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10727 and a68v-nat.c.
10728 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10729 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10730 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10731 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10732 nindy-share/stop.h.
10733 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10734 * saber.suppress: Delete file.
10735
086df311
DJ
107362003-01-31 Daniel Jacobowitz <drow@mvista.com>
10737
10738 * dbxread.c (stabs_data): New static variable.
10739 (fill_symbuf): Support an in-memory buffer for stabs data.
10740 (stabs_seek): New function.
10741 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10742 (read_ofile_symtab): Use stabs_seek.
10743 (elfstab_build_psymtabs): Take an asection* instead of
10744 an offset and size. Relocate the stabs data if necessary.
10745 Save the section* for dbx_psymtab_to_symtab.
10746 * dwarf2read.c: Add section variables for each debug section.
10747 (dwarf2_locate_sections): Fill them in.
10748 (dwarf2_read_section): Take an asection* argument.
10749 Relocate the section contents if necessary.
10750 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10751 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10752 it to dwarf2_read_section.
10753 (dwarf2_build_frame_info): Update callers.
10754 * elfread.c (elf_symfile_read): Update call to
10755 elfstab_build_psymtabs.
10756 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10757 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10758 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10759 * symfile.c (symfile_dummy_outputs): New function.
10760 (symfile_relocate_debug_section): New function.
10761 * symfile.h (symfile_relocate_debug_section): Add prototype.
10762
87d1b352
RH
107632003-01-31 Richard Henderson <rth@redhat.com>
10764
10765 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10766 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10767 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10768 * alpha-tdep.c (alpha_register_name): Add "unique".
10769 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10770 (ALPHA_UNIQUE_REGNUM): New.
10771 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10772
c48861fb
AC
107732003-01-31 Andrew Cagney <ac131313@redhat.com>
10774
10775 * README: Remove reference to Ericsson 1800 monitor.
10776 * Makefile.in (remote-es.o): Delete rule.
10777 (ALLDEPFILES): Delete remote-es.c.
10778 * remote-es.c: Delete file.
10779 * config/m68k/es1800.mt: Delete file.
10780 * config/djgpp/fnchange.lst: Update.
10781 * configure.tgt: Delete m68*-ericsson-* target.
10782
d764a824
AF
107832003-01-31 Adam Fedor <fedor@gnu.org>
10784
10785 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10786 Remove duplicate/shadowing variable of same name.
10787
fe36c4f4
JB
107882003-01-30 Jim Blandy <jimb@redhat.com>
10789
10790 * symfile.c (find_separate_debug_file): Assert that the objfile's
10791 directory name we compute ends with a slash, and then assume that
10792 that's so everywhere we use it.
10793
cb741690
DJ
107942003-01-30 Daniel Jacobowitz <drow@mvista.com>
10795
10796 * valops.c (value_assign): Flush frame cache after stores to memory
10797 also.
10798
96ee5227
AC
107992003-01-30 Andrew Cagney <ac131313@redhat.com>
10800
10801 * Makefile.in (mon960-rom.o): Delete rule.
10802 * mon960-rom.c: Delete file.
10803
7f6104a9
AC
108042003-01-30 Andrew Cagney <ac131313@redhat.com>
10805
10806 * d10v-tdep.c: Include "frame-unwind.h".
10807 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10808 list.
10809 (next_addr, uses_frame): Delete.
10810 (struct d10v_unwind_cache): Define.
10811 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10812 Use info instead of next_addr and uses_frame globals.
10813 (d10v_frame_init_saved_regs): Delete function.
10814 (d10v_init_extra_frame_info): Delete function.
10815 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10816 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10817 init_frame_pc or frame_saved_pc.
10818 (d10v_pop_frame): Delete function.
10819 (do_d10v_pop_frame): Delete function.
10820 (d10v_frame_chain): Delete function.
10821 (d10v_frame_chain_valid): Delete function.
10822 (d10v_frame_pc_unwind): New function.
10823 (d10v_frame_id_unwind): New function.
10824 (saved_regs_unwinder): New function.
10825 (d10v_frame_register_unwind): New function.
10826 (d10v_frame_pop): New function.
10827 (d10v_frame_unwind): New variable.
10828 (d10v_frame_p): New function.
10829 (d10v_frame_saved_pc): Delete function.
10830 * Makefile.in (d10v-tdep.o): Update dependencies.
10831
cad2e848
JB
108322003-01-30 J. Brobecker <brobecker@gnat.com>
10833
10834 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10835 causing some regressions due to a change in the default value
10836 for this macro.
10837
af34e669
DJ
108382003-01-29 Richard Henderson <rth@redhat.com>
10839 Elena Zannoni <ezannoni@redhat.com>
10840 Daniel Jacobowitz <drow@mvista.com>
10841
10842 Fix PR gdb/961.
8ffd9b1b 10843 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10844 variables.
10845 (RANGES_SECTION): New.
10846 (dwarf_ranges_buffer): New variable.
10847 (struct comp_unit_head): Add member "die".
10848 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10849 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10850 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10851 (dwarf2_locate_sections): Likewise.
10852 (dwarf2_build_psymtabs): Read .debug_ranges.
10853 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10854 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10855 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10856 Look for DW_AT_ranges and return the bounding box.
10857
baa93fa6
CF
108582003-01-29 Brian Ford <ford@vss.fsi.com>
10859
10860 * win32-nat.c (cygwin_pid): Removed as unused.
10861 (child_attach): Try fall back to Cygwin pid.
10862
c63f977f
JB
108632003-01-29 Jim Blandy <jimb@redhat.com>
10864
10865 * objfiles.h (struct objfile): Doc fix.
10866
d62d1979
AC
108672003-01-29 Andrew Cagney <ac131313@redhat.com>
10868
10869 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10870 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10871 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10872 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10873 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10874 (FRAME_SAVED_PC): Change to a function with predicate.
10875 * gdbarch.h, gdbarch.c: Re-generate.
10876
1ae18a04
AC
108772003-01-28 Andrew Cagney <ac131313@redhat.com>
10878
52287340
AC
10879 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10880
1ae18a04
AC
10881 * complaints.c (complain): Delete function.
10882 * complaints.h (struct deprecated_complaint): Delete definition.
10883 (complain): Delete declaration.
10884
f2c16bd6
KB
108852003-01-28 Kevin Buettner <kevinb@redhat.com>
10886
10887 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10888 dummy frames.
10889
a94dd1fd
AC
108902003-01-27 Andrew Cagney <ac131313@redhat.com>
10891
10892 * sentinel-frame.h, sentinel-frame.c: New files.
10893 * Makefile.in (frame.o): Update dependencies.
10894 (SFILES): Add sentinel-frame.c.
10895 (sentinel_frame_h): Define.
10896 (COMMON_OBS): Add sentinel-frame.o.
10897 (sentinel-frame.o): Specify dependencies.
10898 * frame.c: Include "sentinel-frame.h".
10899 (frame_register_unwind): Rewrite assuming that there is always a a
10900 ->next frame.
10901 (frame_register, generic_unwind_get_saved_register): Ditto.
10902 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10903 (create_sentinel_frame, unwind_to_current_frame): New functions.
10904 (get_current_frame): Rewrite using create_sentinel_frame and
10905 unwind_to_current_frame. When possible, always create a frame.
10906 (create_new_frame): Set next to the sentinel frame.
10907 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10908 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10909 ID cache when necessary.
10910 (frame_saved_regs_id_unwind): Use frame_relative_level.
10911 (deprecated_generic_get_saved_register): Use frame_relative_level,
10912 get_frame_saved_regs, get_frame_pc, get_frame_base and
10913 get_next_frame.
10914 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10915 frame_register.
10916
5378adc4
DJ
109172003-01-27 Daniel Jacobowitz <drow@mvista.com>
10918
10919 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10920
51ee2ddc
DJ
109212003-01-27 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10924 (maintenance_set_profile_cmd): Use error () instead of warning ().
10925
d9feb4e7
DJ
109262003-01-27 Daniel Jacobowitz <drow@mvista.com>
10927
10928 * configure.in: Check that -pg works if using --enable-profiling.
10929 Check for monstartup and _mcleanup regardless of --enable-profiling.
10930 * maint.c: Check for monstartup and _mcleanup before using them.
10931 * config.in: Regenerated.
10932 * configure: Regenerated.
10933
2d188dd3
NC
109342003-01-24 Nick Clifton <nickc@redhat.com>
10935
10936 * Add sh2e support:
10937
10938 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10939
10940 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10941 (sh2e_show_regs): New.
10942 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10943 * config/sh/tm-sh.h: Added sh2e to comments.
10944
cb3c37b2
JB
109452003-01-23 Jim Blandy <jimb@redhat.com>
10946
10947 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10948 symbols found)" message here; we haven't checked for a separate
10949 debug info file yet, so we don't know yet.
10950 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10951 we've looked everywhere. Also, there's no need to print a special
10952 message when we're loading the separate debug info file: the one
10953 symbol_file_add prints is fine.
10954
5b5d99cf
JB
109552003-01-23 Alexander Larsson <alexl@redhat.com>
10956 Jim Blandy <jimb@redhat.com>
10957
10958 Add support for executables whose debug info has been separated
10959 out into a separate file, leaving only a link behind.
10960 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10961 and separate_debug_objfile_backlink.
10962 (put_objfile_before): New declaration.
10963 * symfile.c: #include "filenames.h".
10964 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10965 debug info in a separate file, read that, too. Save the addrs
10966 argument, so we can use it again to read the separated debug info;
10967 syms_from_objfile modifies the table we pass it.
10968 (reread_symbols): After re-reading an objfile, call
10969 reread_separate_symbols to refresh its separate debug info
10970 objfile, if it has one.
10971 (reread_separate_symbols, find_separate_debug_file,
10972 get_debug_link_info, separate_debug_file_exists): New functions.
10973 (debug_file_directory): New global var.
10974 (_initialize_symfile): Initialize debug_file_directory, and
10975 provide the new `set debug-file-directory' command to let the user
10976 change it.
10977 * objfiles.c (free_objfile): If this objfile has its debug info in
10978 a separate objfile, free that one too. If this is itself a
10979 separate debug info objfile, clear our parent's backlink.
10980 (put_objfile_before): New function.
10981 * utils.c (gnu_debuglink_crc32): New function.
10982 * defs.h (gnu_debuglink_crc32): New declaration.
10983 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10984 * configure.in: Handle --with-separate-debug-dir config option.
10985 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10986 * acconfig.h (DEBUGDIR): New macro.
10987 * configure, aclocal.m4, config.in: Regenerated.
10988
7e8580c1
JB
109892003-01-22 Jim Blandy <jimb@redhat.com>
10990
7904e09f
JB
10991 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10992 like the old symbol_file_add, but taking new arguments: you can
10993 now pass in either a `struct section_addr_info' list to say where
10994 each section is loaded, or a `struct section_offsets' table. Pass
10995 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10996 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10997 with the appropriate quiescent values for the new arguments.
10998
7e8580c1
JB
10999 * symfile.c: #include "gdb_assert.h".
11000 (syms_from_objfile): Add the ability to pass in a section offset
11001 table directly, as an alternative to the section_addr_info table.
11002 Document arguments better.
11003 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11004 * symfile.h (syms_from_objfile): Update declaration.
11005 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11006 syms_from_objfile.
11007 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11008
d28f9cdf
DJ
110092003-01-22 Daniel Jacobowitz <drow@mvista.com>
11010
11011 Original patch by Tom Tromey <tromey@cygnus.com> and
11012 Jason Molenda <jmolenda@apple.com>.
11013 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11014 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11015 * NEWS: Mention profiling.
11016 * configure.in (--enable-gdbtk): Fix typo.
11017 (--enable-profiling): New. Set PROFILE_CFLAGS.
11018 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11019 Fill in function.
11020 (profiling_state): New variable.
11021 (mcleanup_wrapper): New function.
11022 (_initialize_maint): Remove NOTYET, fix call to
11023 add_setshow_boolean_cmd for "maint set profile".
11024 * configure: Regenerated.
11025
df21e465
MH
110262003-01-21 Martin M. Hunt <hunt@redhat.com>
11027
11028 * Makefile.in (install-gdbtk): Install PNG images too.
11029
73c1f219
AC
110302003-01-21 Andrew Cagney <ac131313@redhat.com>
11031
11032 * exec.c (text_start): Delete global variable.
11033 (exec_file_attach): Make text_start local to the function.
11034 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11035 * valops.c (hand_function_call): Delete code that handles
11036 BEFORE_TEXT_END and AFTER_TEXT_END.
11037 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11038 of CALL_DUMMY_LOCATION.
11039 * gdbarch.c: Regenerate.
11040 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11041 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11042 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11043 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11044 (text_end): Delete extern declaration.
11045
eb4f72c5
AC
110462003-01-21 Andrew Cagney <ac131313@redhat.com>
11047
11048 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11049 * blockframe.c (backtrace_below_main): Move to "frame.c".
11050 (frame_chain_valid): Delete check for backtrace_below_main.
11051 (_initialize_blockframe): Delete initialization, move ``set
11052 backtrace-below-main'' command to "frame.c".
11053 (do_flush_frames_sfunc): Delete function.
11054 * frame.c: Include "command.h" and "gdbcmd.h".
11055 (frame_type_from_pc): New function.
11056 (create_new_frame): Use frame_type_from_pc.
11057 (legacy_get_prev_frame): New function.
11058 (get_prev_frame): Rewrite. When an old style frame, call
11059 legacy_get_prev_frame. Otherwize, unwind the PC first.
11060 (_initialize_frame): Add ``set backtrace-below-main'' command.
11061 * Makefile.in (frame.o): Update dependencies.
11062
778ce8cc
AC
110632003-01-19 Andrew Cagney <ac131313@redhat.com>
11064
11065 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11066 DEPRECATED_REGISTERS_INFO.
11067
01c193c8
AC
110682003-01-19 Andrew Cagney <ac131313@redhat.com>
11069
11070 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11071 Maintainers'. Update `Various Maintainers'.
11072
dedc2a2b
AC
110732003-01-19 Andrew Cagney <ac131313@redhat.com>
11074
11075 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11076 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11077 Suppress actual parameters when `-'.
11078 * gdbarch.h, gdbarch.c: Regenerate.
11079
b7261c70
AC
110802003-01-19 Andrew Cagney <ac131313@redhat.com>
11081
11082 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11083 code handling dummy frames.
11084
dbe9fe58
AC
110852003-01-19 Andrew Cagney <ac131313@redhat.com>
11086
11087 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11088 (struct frame_unwind): Add field pop.
11089 * frame.h (frame_pop): Declare.
11090 * frame.c (frame_saved_regs_pop): New function.
11091 (trad_frame_unwinder): Add frame_saved_regs_pop.
11092 (frame_pop): New function.
11093 * dummy-frame.c (dummy_frame_pop): New function.
11094 (discard_innermost_dummy): New function.
11095 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11096 (dummy_frame_unwind): Add dummy_frame_pop.
11097 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11098 * valops.c (hand_function_call): Ditto.
11099 * stack.c (return_command): Ditto.
11100
570b8f7c
AC
111012003-01-18 Andrew Cagney <ac131313@redhat.com>
11102
11103 * cris-tdep.c: Fix function declaration indentation.
11104 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11105 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11106 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11107 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11108 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11109 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11110
111112003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11112
11113 * README (Unpacking and Installation -- quick overview):
11114 Warn against ".../gdb-5.3/gdb/configure".
11115
494cca16
AC
111162003-01-18 Andrew Cagney <ac131313@redhat.com>
11117
11118 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11119 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11120 (struct frame_unwind): Declare opaque.
11121 (dummy_frame_p): Declare function.
11122 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11123 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11124 * dummy-frame.c: Include "frame-unwind.h".
11125 (dummy_frame_p): New function.
11126 (dummy_frame_unwind): New variable.
11127 * frame.c: Include "frame-unwind.h".
11128 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11129 to use the new unwind field.
11130 (set_unwind_by_pc): Delete function.
11131 (create_new_frame, get_prev_frame): Set unwind field using
11132 frame_unwind_find_by_pc.
11133 (trad_frame_unwind, trad_frame_unwinder): New variables.
11134 * frame.h (trad_frame_unwind): Declare variable.
11135 (frame_id_unwind_ftype): Delete declaration.
11136 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11137 (struct frame_unwind): Declare opaque.
11138 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11139 register_unwind with a single unwind pointer.
11140 * frame-unwind.h, frame-unwind.c: New files.
11141 * Makefile.in (SFILES): Add frame-unwind.c.
11142 (frame_unwind_h): Define.
11143 (COMMON_OBS): Add frame-unwind.o.
11144 (frame-unwind.o): Specify dependencies.
11145 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11146
4efb68b1
AC
111472003-01-18 Andrew Cagney <ac131313@redhat.com>
11148
11149 * ada-valprint.c: Eliminate PTR.
11150 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11151 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11152 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11153 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11154 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11155 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11156 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11157
a84d24ee
AC
111582003-01-17 Andrew Cagney <ac131313@redhat.com>
11159
762f08a3
AC
11160 * main.c (captured_main): Don't use PTR.
11161 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11162 * gdbtypes.c (lookup_primitive_typename): Ditto.
11163 (lookup_struct_elt_type): Ditto.
11164 * f-valprint.c (info_common_command): Ditto.
11165 (list_all_visible_commons): Ditto.
11166 * jv-typeprint.c (java_type_print_base): Ditto.
11167
a84d24ee
AC
11168 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11169 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11170 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11171 i386-interix-nat.c and i386-interix-tdep.c. Rename
11172 m68klinux-nat.c and m68klinux-tdep.c. Rename
11173 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11174 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11175 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11176 * main.c (captured_main): Use xfree, not free.
11177
c170fb60
AC
111782003-01-16 Andrew Cagney <ac131313@redhat.com>
11179
11180 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11181 ID back using a parameter.
11182 * frame.c (frame_id_unwind): Update call.
11183 (frame_saved_regs_id_unwind): Update.
11184 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11185 * dummy-frame.h (struct frame_id): Add opaque declaration.
11186 (dummy_frame_id_unwind): Update declaration.
11187
867f3898
AC
111882003-01-15 Andrew Cagney <ac131313@redhat.com>
11189
11190 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11191
40622be8 111922003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11193
40622be8 11194 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11195
ae66c1fc
EZ
111962003-01-14 Elena Zannoni <ezannoni@redhat.com>
11197
997b089a 11198 Fix PR gdb/898
ae66c1fc
EZ
11199 * breakpoint.c (until_break_command): Add new argument. Use it to
11200 decide whether to stop only at the current frame or not.
11201 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11202 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11203 call.
11204 (advance_command): New function.
11205 (_initialize_infcmd): Update help string for 'until' command.
11206 Add new 'advance' command.
11207
a04257e6
DC
112082003-01-14 David Carlton <carlton@math.stanford.edu>
11209
11210 * linespec.c (decode_line_1): Normalize comments.
11211 (set_flags): Ditto.
11212 (locate_first_half): Ditto.
11213 (decode_compound): Ditto.
11214 (symtab_from_filename): Ditto.
11215 (decode_all_digits): Ditto.
11216 (decode_dollar): Ditto.
11217 (find_methods): Ditto.
11218 (find_toplevel_char): Ditto.
11219
1bac305b
AC
112202003-01-13 Andrew Cagney <ac131313@redhat.com>
11221
11222 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11223 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11224 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11225 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11226 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11227 * language.c, language.h, m32r-tdep.c: Update copyright.
11228 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11229 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11230 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11231 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11232 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11233 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11234
25caa7a8
EZ
112352003-01-13 Elena Zannoni <ezannoni@redhat.com>
11236
11237 * stabsread.h (process_later, resolve_cfront_continuation):
11238 Obsolete.
11239 Update copyright years.
11240 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11241 Update copyright year.
11242 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11243 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11244 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11245 Update copyright year.
11246 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11247 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11248 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11249 (parse_partial_symbols): Obsolete cfront support.
11250 * stabsread.c
11251 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11252 macros.
11253 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11254 read_cfront_baseclasses, read_cfront_member_functions,
11255 resolve_cfront_continuation,read_cfront_static_fields,
11256 copy_cfront_struct_fields): Obsolete functions.
11257 (define_symbol, read_one_struct_field): Obsolete cfront support.
11258 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11259 Update Copyright year.
11260
7789c6f5
EZ
112612003-01-13 Elena Zannoni <ezannoni@redhat.com>
11262
11263 * stack.c (print_frame_info, print_stack_frame_base_stub,
11264 print_stack_frame_base, show_and_print_stack_frame_stub,
11265 show_and_print_stack_frame, print_only_stack_frame_stub,
11266 print_only_stack_frame): Delete functions.
11267 (print_stack_frame_stub): Call print_frame_info instead of
11268 print_frame_info_base.
11269 (print_frame_info_base): Rename to print_frame_info.
11270 (backtrace_command_1): Call print_frame_info, instead of
11271 print_frame_info_base.
11272 (current_frame_command): Call print_stack_frame, instead of
11273 print_only_stack_frame.
11274 (frame_command): Call print_stack_frame, instead of
11275 show_and_print_stack_frame.
11276 (up_command): Ditto.
11277 (down_command): Ditto.
11278 * frame.h (print_only_stack_frame): Delete prototype.
11279 * infrun.c (normal_stop): Call print_stack_frame, instead of
11280 show_and_print_stack_frame.
11281 * thread.c (info_threads_command): Call print_stack_frame, instead
11282 of print_only_stack_frame.
11283
3f5a3016
AC
112842003-01-13 Andrew Cagney <ac131313@redhat.com>
11285
d99ba314
AC
11286 * README (Graphical interface to GDB): Update URL. Point at
11287 gdb/links/.
11288
3f5a3016
AC
11289 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11290 version match.
11291
083ae935
DJ
112922003-01-13 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11295 lines.
11296
5365276c
DJ
112972003-01-13 Daniel Jacobowitz <drow@mvista.com>
11298
11299 * thread-db.c (attach_thread): Prototype.
11300 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11301 thread information (ti), and valid flags (th_valid, ti_valid).
11302 (attach_thread): Move target_pid_to_str call to after the thread
11303 is added to GDB's list. Initialize the cache.
11304 (thread_get_info_callback, thread_db_map_id2thr)
11305 (thread_db_get_info): New functions.
11306 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11307 (thread_db_store_registers, thread_db_thread_alive)
11308 (thread_db_get_thread_local_address): Use them.
11309 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11310 of calling error() for threads in unknown state.
11311
11312 (clear_lwpid_callback): New function.
11313 (thread_db_resume): Use it to clear the cache.
11314
9fc30b6b
DJ
113152003-01-13 Daniel Jacobowitz <drow@mvista.com>
11316
11317 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11318 (resume_callback): Remove dead code.
11319
8f871025
AC
113202003-01-13 Andrew Cagney <ac131313@redhat.com>
11321
11322 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11323 predicate.
11324 * gdbarch.h, gdbarch.c: Regenerate.
11325 * stack.c (frame_info): Only initialize the saved registers when
11326 FRAME_INIT_SAVED_REGS_P.
11327 * frame.c (frame_saved_regs_register_unwind): Assert
11328 FRAME_INIT_SAVED_REGS_P.
11329 (deprecated_generic_get_saved_register): Ditto.
11330
3f565f1e
DJ
113312003-01-13 Daniel Jacobowitz <drow@mvista.com>
11332
11333 * source.c (openp): Squelch warning about "filename".
11334
072b1022
DJ
113352003-01-13 Daniel Jacobowitz <drow@mvista.com>
11336
11337 * source.c (openp): If the file does not exist don't necessarily
11338 search the path.
11339
973ccf8b
DJ
113402003-01-13 Daniel Jacobowitz <drow@mvista.com>
11341
11342 Fix PR gdb/872.
11343 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11344 (integer_types_same_name_p): New function.
11345 (rank_one_type): Use it.
11346 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11347
030292b7
DJ
113482003-01-13 Daniel Jacobowitz <drow@mvista.com>
11349
11350 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11351 variables.
11352 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11353 * configure.in: Add --with-sysroot.
11354 * configure: Regenerated.
11355 * main.c (gdb_sysroot): New variable.
11356 (captured_main): Initialize gdb_sysroot.
11357 * defs.h (gdb_sysroot): New extern declaration.
11358 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11359
afb5d334
MC
113602003-01-12 Michael Chastain <mec@shout.net>
11361
11362 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11363
751ceeb4
MC
113642003-01-12 Michael Chastain <mec@shout.net>
11365
11366 * top.c (print_gdb_version): Bump copyright year to 2003.
11367
94cd26f8
DC
113682003-01-12 David Carlton <carlton@bactrian.org>
11369
11370 * linespec.c (symtab_from_filename): Rename variable 's' to
11371 'file_symtab'.
11372
1ce79225
AC
113732003-01-12 Andrew Cagney <ac131313@redhat.com>
11374
11375 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11376 dummy frame.
11377 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11378
fa1fd571
AC
113792003-01-12 Andrew Cagney <ac131313@redhat.com>
11380
11381 * d10v-tdep.c: Include "gdb_assert.h".
11382 (d10v_store_return_value): Rewrite to match current interface.
11383 (d10v_extract_struct_value_address): Ditto.
11384 (d10v_extract_return_value): Ditto.
11385 (d10v_gdbarch_init): Set store_restore_value,
11386 extract_struct_value_address and extract_return_value.
11387
68b8d23e
JB
113882003-01-12 J. Brobecker <brobecker@gnat.com>
11389
11390 * hpread.c (set_namestring): New procedure replacing the
11391 SET_NAMESTRING macro.
11392 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11393 by calls to set_namestring.
11394
113952003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11396
11397 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11398 a compilation warning.
11399 (hpread_process_one_debug_symbol): Likewise.
11400
88d262ca
DC
114012003-01-10 David Carlton <carlton@math.stanford.edu>
11402
11403 * linespec.c (decode_line_1): Rename variable 's' to
11404 'file_symtab'.
11405 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11406 (decode_dollar): Ditto.
11407 (decode_variable): Ditto.
11408 (symbol_found): Ditto.
11409
86669319
MC
114102003-01-09 Michael Chastain <mec@shout.net>
11411
11412 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11413
616a9dc4
CV
114142003-01-07 Corinna Vinschen <vinschen@redhat.com>
11415
11416 * win32-nat.c (set_process_privilege): New function.
11417 (child_attach): Call set_process_privilege() to enable the
11418 SE_DEBUG_NAME user privilege if available in process token.
11419
3269bcfa
JB
114202003-01-10 J. Brobecker <brobecker@gnat.com>
11421
11422 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11423 compilation error in the previous revision.
11424
2b0ee454
DC
114252003-01-09 David Carlton <carlton@math.stanford.edu>
11426
11427 * linespec.c: Update copyright.
11428
b3ba1b44
DJ
114292003-01-09 Daniel Jacobowitz <drow@mvista.com>
11430
11431 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11432 than inferior_ptid.
11433 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11434
4ef3f3be
AC
114352003-01-09 Andrew Cagney <ac131313@redhat.com>
11436
479ab5a0
AC
11437 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11438 Update comments.
11439 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11440 (frame_saved_regs_zalloc): Update.
11441 (frame_saved_regs_register_unwind): Update.
11442 (create_new_frame): Update.
11443 (get_prev_frame): Update.
11444 (frame_extra_info_zalloc): Update.
11445 (deprecated_get_frame_saved_regs): Update.
11446 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11447 * cris-tdep.c: Update comment.
11448
bde58177
AC
11449 * somsolib.h: Fix function indentation.
11450 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11451 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11452 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11453 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11454 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11455
4ef3f3be
AC
11456 * infrun.c (follow_fork): Use ISO C definition.
11457 * expprint.c (print_subexp): Use xfree instead of free.
11458 * charset.c: Include "gdb_string.h" instead of <string.h>.
11459 (register_iconv_charsets): Use ISO C definition.
11460 (host_charset, target_charset): Ditto.
11461 * Makefile.in (charset.o): Update dependencies.
11462 (mi-cmd-env.o): Update dependencies.
11463
1c615f7a
AC
114642003-01-08 Andrew Cagney <cagney@redhat.com>
11465
11466 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11467 get_frame_base.
11468
c9a1dc08
AC
114692003-01-08 Andrew Cagney <ac131313@redhat.com>
11470
11471 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11472 build directories. Save edited gdb output in Mbuild.log. If a
11473 build fails, remove any final GDB executable.
11474
dbad9d94
AC
114752003-01-08 Andrew Cagney <ac131313@redhat.com>
11476
11477 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11478 replacing hex constants with function names and stripping leading
11479 file name directory prefixes.
11480
8d357cca
AC
114812003-01-08 Andrew Cagney <cagney@redhat.com>
11482
11483 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11484 get_frame_base.
11485
bca02a8a
DC
114862003-01-08 David Carlton <carlton@math.stanford.edu>
11487
11488 * linespec.c (decode_line_1): Move code into decode_variable.
11489 (decode_variable): New function.
11490
7f8ab3a0
AC
114912003-01-08 Andrew Cagney <ac131313@redhat.com>
11492
11493 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11494
7b5849cc
AC
114952003-01-08 Andrew Cagney <cagney@redhat.com>
11496
11497 * cris-tdep.c (cris_frame_init_saved_regs): Use
11498 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11499 saved_regs buffer.
11500 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11501 (sh64_nofp_frame_init_saved_regs): Ditto.
11502 (sh_fp_frame_init_saved_regs): Ditto.
11503 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11504 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11505 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11506 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11507
72a5efb3
DJ
115082003-01-08 Daniel Jacobowitz <drow@mvista.com>
11509
11510 * minsyms.c (lookup_minimal_symbol): Update comment.
11511 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11512 (lookup_minimal_symbol_solib_trampoline): Likewise.
11513
11c02a10
AC
115142003-01-08 Andrew Cagney <cagney@redhat.com>
11515
aab3ea25
AC
11516 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11517 frame_relative_level.
11518
da50a4b7
AC
11519 * alpha-tdep.c: Use get_frame_extra_info.
11520 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11521 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11522 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11523 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11524
11c02a10
AC
11525 * alpha-tdep.c: Use get_next_frame.
11526 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11527 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11528 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11529 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11530 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11531 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11532 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11533
1e2330ba
AC
115342003-01-07 Andrew Cagney <cagney@redhat.com>
11535
11536 * alpha-tdep.c: Use get_frame_base.
11537 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11538 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11539 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11540 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11541 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11542 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11543 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11544 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11545
2d75187b
AC
115462003-01-07 Andrew Cagney <cagney@redhat.com>
11547
11548 * frame.c (deprecated_get_frame_context): New function.
11549 (deprecated_set_frame_context): New function.
11550 * frame.h (deprecated_get_frame_context): Declare.
11551 (deprecated_set_frame_context): Declare.
11552 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11553 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11554
483d36b2
AC
115552003-01-07 Andrew Cagney <cagney@redhat.com>
11556
11557 * frame.c (deprecated_set_frame_next_hack): New function.
11558 (deprecated_set_frame_prev_hack): New function.
11559 * frame.h (deprecated_set_frame_next_hack): Declare.
11560 (deprecated_set_frame_prev_hack): Declare.
11561 * mcore-tdep.c (analyze_dummy_frame): Use
11562 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11563 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11564
14e91ac5
DC
115652003-01-07 David Carlton <carlton@math.stanford.edu>
11566
11567 * linespec.c (decode_line_1): Move code into decode_dollar.
11568 (decode_dollar): New function.
11569
b0c6b05c
AC
115702003-01-07 Andrew Cagney <cagney@redhat.com>
11571
11572 * arm-tdep.c (arm_init_extra_frame_info): Use
11573 deprecated_update_frame_base_hack.
11574 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11575 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11576 (fix_frame_pointer): Ditto.
11577 (mn10300_analyze_prologue): Ditto.
11578
a00a19e9
AC
115792003-01-07 Andrew Cagney <cagney@redhat.com>
11580
11581 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11582 extra_info using frame_extra_info_zalloc.
11583 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11584 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11585 (sh64_init_extra_frame_info): Ditto.
11586 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11587 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11588 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11589 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11590 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11591 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11592 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11593 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11594 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11595 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11596 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11597 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11598
11599 * mn10300-tdep.c (analyze_dummy_frame): Use
11600 deprecated_set_frame_extra_info_hack.
11601 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11602
1fb4c65b
JB
116032003-01-07 J. Brobecker <brobecker@gnat.com>
11604
11605 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11606 class is not scText. These do not define "real" procedures.
11607 (parse_partial_symbols): Likewise.
11608
9fe7d6bf
MS
116092003-01-06 Michael Snyder <msnyder@redhat.com>
11610
11611 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11612
f6c609c4
AC
116132003-01-06 Andrew Cagney <ac131313@redhat.com>
11614
11615 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11616 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11617 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11618 deprecated_frame_xmalloc_with_cleanup.
11619 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11620 deprecated_frame_xmalloc.
11621 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11622 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11623
d995ff4b
AC
116242003-01-06 Andrew Cagney <cagney@redhat.com>
11625
84dc46cb
AC
11626 * x86-64-linux-tdep.c: Include "osabi.h".
11627 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11628
d995ff4b
AC
11629 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11630
66140c26
AC
116312003-01-06 Andrew Cagney <cagney@redhat.com>
11632
11633 * MAINTAINERS (Target Instruction Set Architectures): Update
11634 arm-elf. Can be built with -Werror, has been multiarched.
11635
11636 * value.h (unpack_long): Make buffer parameter constant.
11637 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11638 * scm-lang.h (scm_parse): Ditto.
11639 * defs.h (extract_typed_address, extract_address): Ditto.
11640 (extract_long_unsigned_integer): Ditto.
11641 * inferior.h (unsigned_pointer_to_address): Ditto.
11642 (signed_pointer_to_address): Ditto.
11643 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11644 * gdbarch.h, gdbarch.c: Regenerate.
11645 * findvar.c (extract_long_unsigned_integer): Update.
11646 (extract_address): Update.
11647 (extract_typed_address): Update.
11648 (unsigned_pointer_to_address): Update.
11649 * values.c (unpack_long): Update.
11650 (unpack_double): Update.
11651 (unpack_pointer): Update.
11652 (unpack_field_as_long): Update.
11653 * d10v-tdep.c (d10v_pointer_to_address): Update.
11654 * avr-tdep.c (avr_pointer_to_address): Update.
11655 * scm-lang.c (scm_unpack): Update.
11656 * findvar.c (signed_pointer_to_address): Update.
11657
b089b3da
ML
116582003-01-06 Michal Ludvig <mludvig@suse.cz>
11659
8ffd9b1b 11660 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11661 since it is in i386-tdep.c.
11662
aff87235
JB
116632003-01-06 J. Brobecker <brobecker@gnat.com>
11664
11665 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11666 failure introduced in the previous change.
11667
34f5e845
MC
116682003-01-05 Michael Chastain <mec@shout.net>
11669
11670 * README: Remove references to deleted remote-*.c files:
11671 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11672 remote-nrom.c, remote-os9k.c, remote-udi.c.
11673
28bcfd30
MK
116742003-01-05 Mark Kettenis <kettenis@gnu.org>
11675
11676 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11677 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11678 i386_get_longjmp_target.
11679
15a5b3ee
AC
116802003-01-05 Andrew Cagney <ac131313@redhat.com>
11681
11682 * arm-tdep.c (prologue_cache): Change to a pointer.
11683 (_initialize_arm_tdep): Allocate prologue_cache.
11684 (check_prologue_cache): Update.
11685 (save_prologue_cache): Update.
11686 (arm_gdbarch_init): Update.
11687
c263362b
DJ
116882003-01-04 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * stabsread.c (update_method_name_from_physname): Call complaint()
11691 instead of error.
11692
51603483
DJ
116932003-01-04 Daniel Jacobowitz <drow@mvista.com>
11694
11695 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11696 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11697 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11698
11699 * blockframe.c: Include "gdbcmd.h" and "command.h".
11700 (backtrace_below_main): New variable.
11701 (file_frame_chain_valid, func_frame_chain_valid)
11702 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11703 (generic_func_frame_chain_valid): Remove functions.
11704 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11705 (_initialize_blockframe): New function.
11706 * Makefile.in (blockframe.o): Update dependencies.
11707 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11708 comment. Call frame_chain_valid ().
11709 * frame.h: Remove old prototypes. Add prototype for
11710 frame_chain_valid and update comments to match.
11711 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11712 Remove old comment.
11713 * gdbarch.h: Regenerated.
11714 * gdbarch.c: Regenerated.
11715
11716 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11717 set_gdbarch_frame_chain_valid.
11718 * avr-tdep.c (avr_gdbarch_init): Likewise.
11719 * cris-tdep.c (cris_gdbarch_init): Likewise.
11720 * frv-tdep.c (frv_gdbarch_init): Likewise.
11721 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11722 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11723 (i386_nw_init_abi): Likewise.
11724 (i386_gdbarch_init): Likewise.
11725 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11727 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11728 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11729 * mips-tdep.c (mips_gdbarch_init): Likewise.
11730 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11731 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11732 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11733 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11734 * s390-tdep.c (s390_gdbarch_init): Likewise.
11735 * sh-tdep.c (sh_gdbarch_init): Likewise.
11736 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11737 * v850-tdep.c (v850_gdbarch_init): Likewise.
11738 * vax-tdep.c (vax_gdbarch_init): Likewise.
11739 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11740
11741 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11742 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11743 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11744 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11745 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11746 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11747 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11748 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11749
b00a8037
DJ
117502002-01-04 Daniel Jacobowitz <drow@mvista.com>
11751
11752 * Makefile.in (acconfig_h): Remove incorrect macro.
11753 (config_h): Define.
11754 (osabi.o): Update dependencies.
11755 * configure.tgt: Set gdb_osabi based on target triplet.
11756 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11757 * configure: Regenerated.
11758 * config.in: Regenerated.
11759 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11760 (GDB_OSABI_DEFAULT): Define if not already defined.
11761 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11762 (set_osabi_string): New variables.
11763 (gdbarch_register_osabi): Add new OS ABI to
11764 gdb_osabi_available_names.
11765 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11766 (set_osabi, show_osabi): New functions.
11767 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11768
4be87837
DJ
117692003-01-04 Daniel Jacobowitz <drow@mvista.com>
11770
11771 * arch-utils.c (gdbarch_info_init): Set osabi to
11772 GDB_OSABI_UNINITIALIZED.
11773 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11774 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11775 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11776 * gdbarch.c: Regenerated.
11777 * gdbarch.h: Regenerated.
11778 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11779 there's no BFD.
11780 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11781 * osabi.h (enum gdb_osabi): Move to defs.h.
11782 (gdbarch_init_osabi): Update prototype.
11783 * defs.h (enum gdb_osabi): Moved here.
11784 * Makefile.in: Update dependencies.
11785
11786 * alpha-tdep.h: Don't include "osabi.h".
11787 (struct gdbarch_tdep): Remove osabi member.
11788 * alpha-tdep.c: Include "osabi.h".
11789 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11790 iterate over arches. Update call to gdbarch_init_osabi.
11791 (alpha_dump_tdep): Don't dump osabi.
11792 * alpha-linux-tdep.c: Include "osabi.h".
11793 * alpha-osf1-tdep.c: Include "osabi.h".
11794 * alphafbsd-tdep.c: Include "osabi.h".
11795 * alphanbsd-tdep.c: Include "osabi.h".
11796
11797 * arm-tdep.h: Don't include "osabi.h".
11798 (struct gdbarch_tdep): Remove osabi member.
11799 * arm-tdep.c: Include "osabi.h".
11800 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11801 iterate over arches. Update call to gdbarch_init_osabi.
11802 (arm_dump_tdep): Don't dump osabi.
11803 * arm-linux-tdep.c: Include "osabi.h".
11804 * armnbsd-tdep.c: Include "osabi.h".
11805
11806 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11807 Update call to gdbarch_init_osabi.
11808
11809 * i386-tdep.h: Don't include "osabi.h".
11810 (struct gdbarch_tdep): Remove osabi member.
11811 * i386-tdep.c: Include "osabi.h".
11812 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11813 iterate over arches. Update call to gdbarch_init_osabi.
11814 (i386_dump_tdep): Don't dump osabi.
11815 * i386-linux-tdep.c: Include "osabi.h".
11816 * i386-sol2-tdep.c: Include "osabi.h".
11817 * i386bsd-tdep.c: Include "osabi.h".
11818 * i386gnu-tdep.c: Include "osabi.h".
11819 * i386ly-tdep.c: Include "osabi.h".
11820 * i386nbsd-tdep.c: Include "osabi.h".
11821 * i386obsd-tdep.c: Include "osabi.h".
11822
11823 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11824 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11825 check osabi when iterating over arches. Update call to
11826 gdbarch_init_osabi.
11827 (mips_dump_tdep): Don't dump osabi.
11828
11829 * ns32k-tdep.h: Don't include "osabi.h".
11830 (struct gdbarch_tdep): Remove.
11831 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11832 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11833 allocate tdep. Update call to gdbarch_init_osabi.
11834 (ns32k_dump_tdep): Remove.
11835 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11836 * ns32knbsd-tdep.c: Include "osabi.h".
11837
11838 * ppc-tdep.h: Don't include "osabi.h".
11839 (struct gdbarch_tdep): Remove osabi member.
11840 * rs6000-tdep.c: Include "osabi.h".
11841 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11842 osabi when iterating over arches. Update call to
11843 gdbarch_init_osabi.
11844 (rs6000_dump_tdep): Don't dump osabi.
11845 * ppc-linux-tdep.c: Include "osabi.h".
11846 * ppcnbsd-tdep.c: Include "osabi.h".
11847
11848 * sh-tdep.h: Don't include "osabi.h".
11849 (struct gdbarch_tdep): Remove osabi member.
11850 * sh-tdep.c: Include "osabi.h".
11851 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11852 iterate over arches. Update call to gdbarch_init_osabi.
11853 (sh_dump_tdep): Don't dump osabi.
11854 * shnbsd-tdep.c: Include "osabi.h".
11855
11856 * sparc-tdep.c: Include "osabi.h".
11857 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11858 iterate over arches. Update call to gdbarch_init_osabi.
11859 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11860 tdep structure.
11861
11862 * vax-tdep.h: Don't include "osabi.h".
11863 (struct gdbarch_tdep): Remove.
11864 * vax-tdep.c: Include "osabi.h".
11865 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11866 iterate over arches. Don't allocate tdep. Update call
11867 to gdbarch_init_osabi.
11868 (vax_dump_tdep): Remove.
11869 (_initialize_vax_tdep): Update call to gdbarch_register.
11870
a881cf8e
DJ
118712003-01-04 Daniel Jacobowitz <drow@mvista.com>
11872
11873 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11874 entirely.
11875 (breakpoint_re_set_one): Don't fetch the value for a disabled
11876 watchpoint.
11877
1e698235
DJ
118782003-01-04 Daniel Jacobowitz <drow@mvista.com>
11879
11880 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11881 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11882 (COERCE_FLOAT_TO_DOUBLE): Remove.
11883 * gdbarch.c: Regenerate.
11884 * gdbarch.h: Regenerate.
11885 * Makefile.in: Remove value_h from gdbarch_h.
11886 * valops.c (coerce_float_to_double): New variable.
11887 (default_coerce_float_to_double): Remove.
11888 (standard_coerce_float_to_double): Remove.
11889 (value_arg_coerce): Use coerce_float_to_double.
11890 (_initialize_valops): Add "set coerce-float-to-double".
11891 * value.h (default_coerce_float_to_double): Remove prototype.
11892 (standard_coerce_float_to_double): Remove prototype.
11893
11894 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11895 prototyped.
11896 * mdebugread.c (parse_symbol): Likewise.
11897 * stabsread.c (define_symbol): Mark all functions as prototyped.
11898
11899 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11900 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11901 set_gdbarch_coerce_float_to_double.
11902 * arm-tdep.c (arm_gdbarch_init): Likewise.
11903 * frv-tdep.c (frv_gdbarch_init): Likewise.
11904 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11905 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11906 * mips-tdep.c (mips_gdbarch_init): Likewise.
11907 (mips_coerce_float_to_double): Remove.
11908 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11909 (rs6000_coerce_float_to_double): Remove.
11910 * s390-tdep.c (s390_gdbarch_init): Likewise.
11911 * sh-tdep.c (sh_gdbarch_init): Likewise.
11912 (sh_coerce_float_to_double): Remove.
11913 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11914 (sparc_coerce_float_to_double): Remove.
11915 * v850-tdep.c (v850_gdbarch_init): Likewise.
11916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11917 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11918 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11919 (hppa_coerce_float_to_double): Remove prototype.
11920 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11921
f436a26a
DJ
119222003-01-04 Daniel Jacobowitz <drow@mvista.com>
11923
11924 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11925
248f8055
DJ
119262003-01-04 Daniel Jacobowitz <drow@mvista.com>
11927
11928 Suggested by Stewart Brown <sb24@avaya.com>:
11929 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11930 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11931 (c_type_print_varspec_suffix): Likewise.
11932
72cfdc76
MK
119332003-01-04 Mark Kettenis <kettenis@gnu.org>
11934
bfd260bb
MK
11935 * configure.in: Don't set and AC_SUBST SUBDIRS.
11936 * configure: Regenerated.
11937
72cfdc76
MK
11938 * configure.in: Remove code dealing with shared libraries.
11939 * Makefile.in: Remove HLDFLAGS and HLDENV.
11940 * configure: Regenerated.
11941
c8b8a898
AC
119422003-01-04 Andrew Cagney <ac131313@redhat.com>
11943
11944 * frame.c (deprecated_frame_xmalloc): New function.
11945 (deprecated_set_frame_saved_regs_hack): New function.
11946 (deprecated_set_frame_extra_info_hack): New function.
11947 * frame.h (deprecated_frame_xmalloc): Declare.
11948 (deprecated_set_frame_saved_regs_hack): Declare.
11949 (deprecated_set_frame_extra_info_hack): Declare.
11950
14abd0fb
MK
119512003-01-04 Mark Kettenis <kettenis@gnu.org>
11952
8ee53726
MK
11953 * configure.in: Move code that provides the --enable-gdbtk option
11954 right after the code that handles the --enable-tui option, and
11955 polish it somewhat.
11956 * configure: Regenerated.
11957
14abd0fb
MK
11958 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11959 AC_CHECK_FUNCS and remove the old check for pread64.
11960 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11961 * acconfig.h (_GNU_SOURCE): Add.
11962 (HAVE_PREAD64): Remove.
11963 * configure, aclocal.m4, config.in: Regenerated.
11964
b2fb4676
AC
119652003-01-03 Andrew Cagney <ac131313@redhat.com>
11966
11967 * alpha-tdep.c: Use get_frame_saved_regs.
11968 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11969 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11970 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11971 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11972 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11973
8dcde887
MK
119742003-01-03 Mark Kettenis <kettenis@gnu.org>
11975
11976 * configure.in: Remove all use of the SUBDIRS variable; add
11977 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11978 code providing the --enable-multi-ice option, and move it right in
11979 front of the code that checks whether gdbserver is supported.
11980 Polish that too.
11981 * configure: Regenerated.
11982 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11983 @SUBDIRS@.
11984
8ccd593b
AC
119852003-01-03 Andrew Cagney <cagney@redhat.com>
11986
11987 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11988 * avr-tdep.c, cris-tdep.c: Ditto.
11989 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11990 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11991
91151a06
MK
119922003-01-03 Mark Kettenis <kettenis@gnu.org>
11993
11994 * configure.in: Remove --enable-netrom option.
11995 * configure: Regenerated.
11996
8fe84d01
MK
119972003-01-03 Mark Kettenis <kettenis@gnu.org>
11998
11999 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12000 declaration for `struct re_pattern_buffer' instead.
12001 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12002
f0394be6
JB
120032003-01-03 J. Brobecker <brobecker@gnat.com>
12004
12005 * mdebugread.c (parse_symbol): Count until the stEnd matching
12006 the structure name.
12007
27e9bf90
MK
120082003-01-02 Mark Kettenis <kettenis@gnu.org>
12009
93d331ba
MK
12010 * configure.in: Remove --with-cpu option.
12011 subscripts. Remove evil changequotes here.
12012 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12013 * config.in, configure: Regenerated.
8ffd9b1b 12014
27e9bf90
MK
12015 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12016 * configure.in: Cleanup section that sources GDB and BFD configure
12017 subscripts. Remove evil changequotes here.
12018 * config.in, configure: Regenerated.
12019
50abf9e5
AC
120202003-01-02 Andrew Cagney <ac131313@redhat.com>
12021
12022 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12023 frame accessor methods.
12024 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12025 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12026 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12027 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12028 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12029 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12030 * z8k-tdep.c: Ditto.
8ffd9b1b 12031
287c1a40
MK
120322003-01-02 Mark Kettenis <kettenis@gnu.org>
12033
f5dbc56d
MK
12034 * configure.in: Remove UI_OUT configuration code.
12035 * ada-lang.c: Update assuming UI_OUT is always true.
12036 * Makefile.in (UIOUT_CFLAGS): Remove.
12037 * configure: Regenerated.
12038 * TODO: Remove blurb about elimination of -DUI_OUT.
12039
627af7ea
MK
12040 * configure.in: Move code that provides the --enable-gdbcli,
12041 --enable-gdbmi options right before the code that handles the
12042 --enable-tui option. Polish a bit.
12043 * configure: Regenerated.
12044
06825bd1
MK
12045 * configure.in: Rewrite check for GNU regex and the
12046 --without-included regex option, and move it into the "Checks for
12047 library functions" section. This makes us use the system regex
12048 again by default on systems with version 2 of the GNU C library.
12049 This was apparently broken.
12050 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12051 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12052 * config.in, configure: Regenerated.
12053
287c1a40
MK
12054 * configure.in: Move code that provides the --enable-tui option
12055 before the "Checks for libraries" section. Polish the code
12056 somewhat and set need_curses to yes if we build the TUI. Rewrite
12057 code that looks for a library providing termcap functionality to
12058 match more closely what's done in the Readline library, and move
12059 it into to the "Checks for libraries" section.
12060 * configure: Regenerated.
12061 * Makefile.in (TERMCAP): Remove variable.
12062 * config/i386/go32.mh (TERMCAP): Remove variable.
12063
684e56bf
AC
120642003-01-02 Andrew Cagney <ac131313@redhat.com>
12065
12066 * MAINTAINERS: Mention gdb_mbuild.sh.
12067 * gdb_mbuild.sh: Rewrite.
12068
e1ea1d75
MK
120692003-01-02 Mark Kettenis <kettenis@gnu.org>
12070
12071 * configure.in: Fix typo in last change.
12072 * config.in, configure: Regenerated.
12073
1b831c93
AC
120742003-01-02 Andrew Cagney <ac131313@redhat.com>
12075
12076 * valarith.c (value_binop): Delete obsolete code and comments.
12077 * configure.host: Ditto.
12078 * buildsym.h (make_blockvector): Ditto.
12079 * buildsym.c (make_blockvector): Ditto.
12080 * defs.h (enum language): Ditto.
12081 (chill_demangle): Ditto.
12082 * elfread.c (elf_symtab_read): Ditto.
12083 * dwarfread.c (CHILL_PRODUCER): Ditto.
12084 (set_cu_language): Ditto.
12085 (handle_producer): Ditto.
12086 * expprint.c (print_subexp): Ditto.
12087 * gdbtypes.c (chill_varying_type): Ditto.
12088 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12089 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12090 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12091 (chill_varying_type): Ditto.
12092 * language.h (_LANG_chill): Ditto.
12093 * language.c (binop_result_type, integral_type): Ditto.
12094 (character_type, string_type, structured_type): Ditto.
12095 (lang_bool_type, binop_type_check): Ditto.
12096 * stabsread.h (os9k_stabs): Ditto.
12097 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12098 (define_symbol, read_type, read_struct_fields): Ditto.
12099 (read_array_type, read_enum_type, read_huge_number): Ditto.
12100 (read_range_type, start_stabs): Ditto.
12101 * symfile.c (init_filename_language_table): Ditto.
12102 (add_psymbol_with_dem_name_to_list): Ditto.
12103 * symtab.c (symbol_init_language_specific): Ditto.
12104 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12105 * symtab.h (struct general_symbol_info): Ditto.
12106 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12107 * typeprint.c (typedef_print): Ditto.
12108 * utils.c (fprintf_symbol_filtered): Ditto.
12109 * valops.c (value_cast, search_struct_field, value_slice): Delete
12110 obsolete code.
12111 (varying_to_slice): Delete function.
12112 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12113 (varying_to_slice): Delete declaration.
12114 * MAINTAINERS: Update.
12115
8bb2c122
MK
121162003-01-02 Mark Kettenis <kettenis@gnu.org>
12117
97bf5e38
MK
12118 * configure.in: Reorganize "Checks for library functions section"
12119 a bit. Remove check for `btowc' and `isascii' functions.
12120 * configure: Regenerated.
12121
5ee754fc
MK
12122 * acconfig.h (_MSE_INT_H): Remove.
12123 * configure.in: Create "Checks for header files" section, and move
12124 appropriate tests there. Don't check for objlist.h, wchar.h,
12125 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12126 misdetection fix. Also add "Checks for types", "Checks for
12127 compiler characteristics" and "Checks for library functions"
12128 sections.
12129 * config.in, configure: Regenerated.
12130
8bb2c122
MK
12131 * configure.in: Create "Checks for programs" section, and move
12132 appropriate tests there.
12133
9a156167
MK
121342003-01-01 Mark Kettenis <kettenis@gnu.org>
12135
12136 * configure.in: Create "Checks for libraries" section, and move
12137 appropriate tests there. Cleanup check for wctype in libw. Use
12138 AC_SEARCH_LIBS to see whether we need libsocket.
12139 * configure: Regenerated.
12140
a80e2bcb 12141For older changes see ChangeLog-2002
c906108c
SS
12142\f
12143Local Variables:
12144mode: change-log
12145left-margin: 8
12146fill-column: 74
12147version-control: never
12148End:
This page took 0.966309 seconds and 4 git commands to generate.