2003-09-19 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b03f266
AC
12003-09-19 Andrew Cagney <cagney@redhat.com>
2
3 * utils.c (align_up, align_down): New functions.
4 * defs.h (align_up, align_down): Declare.
5 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
6 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
7 and "align_down".
8 (round_up, round_down): Delete functions.
9 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
10 "align_down".
11 (ROUND_DOWN, ROUND_UP): Delete macros.
12 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
13 * h8300-tdep.c: Replace "round_up" and "round_down" with
14 "align_up" and "align_down".
15 (round_up, round_down): Delete macros.
16 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
17 "align_down".
18 (ROUND_UP, ROUND_DOWN): Delete macros.
19
51db5742
JB
202003-09-18 J. Brobecker <brobecker@gnat.com>
21
22 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
23 hard-coded constant. Use the proper machine name instead.
24
77949794
AC
252003-09-17 Andrew Cagney <cagney@redhat.com>
26
27 * sparc-tdep.c (legacy_register_name): Delete function.
28 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
29 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
30 * infcmd.c (gdb_register_name): Delete variable.
31 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
32 REGISTER_NAME and "tm.h".
33 * gdbarch.h, gdbarch.c: Regenerate.
34 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
35 REGISTER_NAMES in comments.
36 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
37 * m68klinux-nat.c (regmap): Ditto.
38
b55c33cc
JB
392003-09-17 Jim Blandy <jimb@redhat.com>
40
41 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
42
957e27ac
AC
432003-09-17 Andrew Cagney <cagney@redhat.com>
44
45 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
46 (ppcnbsd_init_abi): Set "use_struct_convention" to
47 "ppcnbsd_use_struct_convention".
48
192cb3d4
MK
492003-09-17 Mark Kettenis <kettenis@gnu.org>
50
51 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
52 * gdbarch.h, gdbarch.c: Regenerate.
53 (stabs_argument_has_addr): New architecture method.
54 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
55 * arch-utils.c: Include "buildsym.h".
56 (default_stabs_argument_has_addr): New function.
57 * stabsread.c (define_symbol): Use stabs_argument_has_addr
58 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
59
efe59759
AC
602003-09-17 Andrew Cagney <cagney@redhat.com>
61
62 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
63 * gdbarch.h, gdbarch.c: Regenerate.
64 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
65 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
66 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
67 * sparcnbsd-tdep.c: Update.
68
62700349
AC
692003-09-17 Andrew Cagney <cagney@redhat.com>
70
71 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
72 * gdbarch.h, gdbarch.c: Regenerate.
73 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
74 * d10v-tdep.c, frame.c: Update.
75 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
76 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
77 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
78 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
79 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
80 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
81 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
82 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
83 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
84 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
85 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
86 * config/pa/nm-hppah.h: Update.
87
b9ff3018
AC
882003-09-16 Andrew Cagney <cagney@redhat.com>
89
90 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
91 "use_struct_convention" to "ppc_linux_use_struct_convention".
92 (ppc_linux_use_struct_convention): New function.
93 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
94 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
95 "rs6000_use_struct_convention".
96 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
97 declaration.
98 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
99 Delete function.
100
aa1ee363
AC
1012003-09-16 Andrew Cagney <cagney@redhat.com>
102
103 * buildsym.c: Remove more occurances of "register".
104 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
105 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
106 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
107 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
108 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
109 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
110 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
111 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
112
f2ea0907
CV
1132003-09-16 Corinna Vinschen <vinschen@redhat.com>
114
115 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
116 numbers to enumeration values.
117 * sh-tdep.c: Accomodate above change.
118 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
119 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
120 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
121 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
122 (IS_FPUSH): Rename from IS_FMOV.
123 (sh_extract_struct_value_address): Remove useless comment.
124 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
125 instead of own local values.
126 (sh_dump_tdep): Remove.
127 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
128 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
129
1c704f11
AC
1302003-09-15 Andrew Cagney <cagney@redhat.com>
131
132 * doublest.c (convert_floatformat_to_doublest): No longer need to
133 cast "exp_bias" to an int. Reverts 2002-12-04 change.
134
ac79b88b
DJ
1352003-09-15 Daniel Jacobowitz <drow@mvista.com>
136
137 * values.c (unpack_double): Call floatformat_is_valid.
138
1c671366
MK
1392003-09-15 Mark Kettenis <kettenis@gnu.org>
140
de5227fb
MK
141 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
142 ps_strings into a long.
143
1c671366
MK
144 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
145 _initialize_am64fbsd_nat.
146
a604369a
KB
1472003-09-15 Kevin Buettner <kevinb@redhat.com>
148
149 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
150 associated with DW_AT_ranges attribute is out of bounds.
151
b3cacbee
DL
1522003-09-15 David Lecomber <dsl@sources.redhat.com>
153
154 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
155
d0f37bb2
MC
1562003-09-14 Michael Chastain <mec@shout.net>
157
158 * config/m68k/nm-apollo68v.h: Delete.
159 * config/m68k/xm-apollo68v.h: Delete.
160
69517000
AC
1612003-09-14 Andrew Cagney <cagney@redhat.com>
162
163 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
164 * dcache.c: Update copyrights and descriptions.
165 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
166
ef8b349d
AC
1672003-09-14 Andrew Cagney <cagney@redhat.com>
168
169 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
170 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
171
52f0bd74
AC
1722003-09-14 Andrew Cagney <cagney@redhat.com>
173
174 * alpha-nat.c: Remove some occurances of "register".
175 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
176 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
177 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
178 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
179 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
180 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
181 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
182 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
183 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
184 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
185 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
186 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
187 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
188 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
189 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
190 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
191 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
192 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
193 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
194 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
195 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
196 * values.c, vax-tdep.c, xcoffread.c: Ditto.
197
4a4b3fed
AC
1982003-09-13 Andrew Cagney <cagney@redhat.com>
199
200 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
201 * ppc-tdep.h (struct regcache): Declare opaque.
202 * objfiles.h (struct objfile_data): Declare opaque.
203 * cp-support.h (struct objfile): Declare opaque.
204 * linux-nat.h (target_waitstatus): Declare opaque.
205
2110b94f
MK
2062003-09-14 Mark Kettenis <kettenis@gnu.org>
207
1c671366
MK
208 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
209 (stabs_argument_has_addr): New architecture method.
210 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
211 * arch-utils.c: Include "buildsym.h".
212 (default_stabs_argument_has_addr): New function.
213 * stabsread.c (define_symbol): Use stabs_argument_has_addr
214 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
215
2110b94f
MK
216 * cris-tdep.c (cris_gdbarch_init): Set
217 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
218 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
219 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
220 * mips-tdep.c (mips_gdbarch_init): Likewise.
221 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
222 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
223
48436ce6
AC
2242003-09-13 Andrew Cagney <cagney@redhat.com>
225
226 * values.c (using_struct_return): Delete "function" and "funcaddr"
227 parameters.
228 * value.h (using_struct_return): Update declaration.
229 * infcmd.c (finish_command_continuation): Update.
230 (finish_command): Update.
231 * infcall.c (call_function_by_hand): Update.
232 * eval.c (evaluate_subexp_standard): Update.
233
403d9909
CF
2342003-09-13 Christopher Faylor <cgf@redhat.com>
235
236 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
237 SSE registers since gdb will not operate correctly without this.
238 Restore include file ordering munged in previous change.
239 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
240
ebf7d56b
MK
2412003-09-13 Mark Kettenis <kettenis@gnu.org>
242
8e823e25
MK
243 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
244 REG_STRUCT_HAS_ADDR.
245 * gdbarch.c, gdbarch.h: Updated.
246 * infcall.c (call_function_by_hand): Update.
247 * stabsread.c (define_symbol): Updated.
248
ebf7d56b
MK
249 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
250
d3f13f72
CF
2512003-09-12 Christopher Faylor <cgf@redhat.com>
252
253 * win32-nat.c: Reorganize so that defines used by target headers are
254 actually defined by the system headers.
255 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
256 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
257
14f75137
JB
2582003-09-12 Jim Blandy <jimb@redhat.com>
259
d646061f
JB
260 * dbxread.c (read_dbx_symtab): Don't report an internal error if
261 the file has no .data, .bss, or .rodata sections. Instead wait
262 until we see a variable alleged to live in one of those sections.
263
2a13f9bc
JB
264 * dbxread.c (read_dbx_symtab): If we have no .data section and no
265 .bss section, presume that any variables we find live in the
266 .rodata section.
267
4f49b26b
JB
268 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
269 offsets for global and static variables.
270
14f75137
JB
271 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
272 symbol types are, by definition, in the .data section, so it is
273 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
274 If there is no .data section, there should be no N_DATA or N_DATA
275 | N_EXT symbols.
276
212c460c
MK
2772003-09-12 Mark Kettenis <kettenis@gnu.org>
278
279 * amd64fbsd-tdep.c: Fix sigtramp recognition.
280 (amd64fbsd_sigcontext_addr): Rewrite.
281 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
282 with correct values.
283 (amd64fbsd_sc_reg_offset): Initialize with correct values.
284 (amd64fbsd_init_abi): Fix typo.
285
68856ea3
AC
2862003-09-12 Andrew Cagney <cagney@redhat.com>
287
288 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
289 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
290
627b3ba2
AC
2912003-09-12 Andrew Cagney <cagney@redhat.com>
292
293 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
294 "entry_file_highpc". Update comments.
295 * defs.h (deprecated_inside_entry_file): Rename
296 "inside_entry_file".
297 * blockframe.c (deprecated_inside_entry_file): Rename
298 "inside_entry_file".
299 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
300 * vax-tdep.c (vax_frame_chain): Update.
301 * sh64-tdep.c (sh64_frame_chain): Update.
302 * sh-tdep.c (sh_frame_chain): Update.
303 * rs6000-tdep.c (rs6000_frame_chain): Update.
304 * ns32k-tdep.c (ns32k_frame_chain): Update.
305 * mips-tdep.c (mips_frame_chain): Update.
306 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
307 * m32r-tdep.c (m32r_frame_this_id): Update.
308 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
309 * frv-tdep.c (frv_frame_this_id): Update.
310 * d10v-tdep.c (d10v_frame_this_id): Update.
311 * cris-tdep.c (cris_frame_chain): Update.
312 * blockframe.c (legacy_frame_chain_valid): Update.
313 * avr-tdep.c (avr_frame_this_id): Update.
314 * arm-tdep.c (arm_prologue_this_id): Update.
315 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
316 * objfiles.c (objfile_relocate): Update.
317 * mipsread.c (mipscoff_symfile_read): Update.
318 (mipscoff_symfile_read): Update.
319 * mdebugread.c (parse_partial_symbols): Update.
320 * dwarfread.c (read_file_scope): Update.
321 * dwarf2read.c (read_file_scope): Update.
322 * dbxread.c (read_dbx_symtab): Update.
323 (read_dbx_symtab): Update.
324 * coffread.c (complete_symtab): Update.
325
b0abbc58
JJ
3262003-09-12 Jeff Johnston <jjohnstn@redhat.com>
327
328 * top.c (quit_target): New static helper function.
329 (quit_force): Moved code to quit_target(). Call quit_target()
330 via catch_errors() to catch errors during quit.
331
a1632d59
DC
3322003-09-11 David Carlton <carlton@kealia.com>
333
334 * buildsym.c (finish_block): Use allocate_block to allocate the
335 block.
336 * mdebugread.c (new_block): Add FIXME.
337
5c4e30ca
DC
3382003-09-11 David Carlton <carlton@kealia.com>
339
340 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
341 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
342 (recursive_dump_type): Ditto.
343 * printcmd.c (print_formatted): Ditto.
344 * typeprint.c (print_type_scalar): Ditto.
345 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
346 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
347 * cp-support.h: Declare cp_check_possible_namespace_symbols,
348 maint_cplus_cmd_list.
349 * cp-support.c: Make maint_cplus_cmd_list extern.
350 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
351 command.h.
352 (lookup_symbol_file): Look in possible namespace blocks when
353 appropriate.
354 (initialize_namespace_symtab): New.
355 (get_possible_namespace_block, free_namespace_block)
356 (check_possible_namespace_symbols)
357 (check_possible_namespace_symbols_loop)
358 (check_one_possible_namespace_symbol)
359 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
360 (_initialize_cp_namespace): Ditto.
361 * block.h: Declare allocate_block.
362 * block.c (allocate_block): New.
363 * jv-lang.c (get_java_class_symtab): Allocate blocks via
364 allocate_block.
365 * symfile.h: Update declaration of add_psymbol_to_list.
366 * symfile.c (add_psymbol_to_list): Return the partial symbol in
367 question.
368 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
369 scan_partial_symbols_call.
370 (scan_partial_symbols): Add NAMESPACE argument; update calls to
371 helper functions.
372 (add_partial_symbol): If necessary, scan mangled names for names
373 of namespaces.
374 (add_partial_namespace): Add NAMESPACE argument; generate partial
375 symbols associated to namespaces.
376 (add_partial_enumeration): Add NAMESPACE argument.
377 (new_symbol): Allow namespace syms.
378 (read_namespace): Generate namespace syms.
379 * objfiles.h: Add opaque declaration of struct symtab.
380 (struct objfile): Add cp_namespace_symtab member.
381 * objfiles.c (allocate_objfile): Set
382 objfile->cp_namespace_symtab.
383 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
384 dictionary_h, command_h.
385
33a7c2fc
AC
3862003-09-11 Andrew Cagney <cagney@redhat.com>
387
388 * rs6000-tdep.c (rs6000_push_dummy_call): Use
389 regcache_raw_write_signed to set SP_REGNUM, move the operation to
390 near the function's end.
391 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
392 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
393 regcache_raw_write_signed to set SP_REGNUM.
394
63cd24fe
EZ
3952003-09-11 Elena Zannoni <ezannoni@redhat.com>
396
397 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
398 orig_addrs is set up properly.
399
f27dd7fd
AC
4002003-09-11 Andrew Cagney <cagney@redhat.com>
401
402 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
403 * gdbarch.h, gdbarch.c: Re-generate.
404 * infcall.c (call_function_by_hand): Update.
405 * hppa-tdep.c (hppa_push_arguments): Update.
406 * ada-lang.c (place_on_stack): Update.
407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
408 * sparc-tdep.c (sparc_gdbarch_init): Update.
409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
410 * hppa-tdep.c (hppa_gdbarch_init): Update.
411 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
412 stack_align.
413
f630a401
DJ
4142003-09-11 Daniel Jacobowitz <drow@mvista.com>
415
416 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
417 register do need a frame.
418
0ddabb4c
AC
4192003-09-11 Andrew Cagney <cagney@redhat.com>
420
421 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
422 buildable since GDB 5.0.
423 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
424 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
425 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
426 * irix4-nat.c: Delete file.
427 * config/mips/irix4.mh: Delete file.
428 * config/mips/irix3.mh: Delete file.
429 * config/mips/irix3.mt: Delete file.
430 * config/mips/tm-irix3.h: Delete file.
431 * config/mips/nm-irix3.h: Delete file.
432 * config/mips/xm-irix3.h: Delete file.
433 * config/mips/nm-irix4.h: Delete file.
434 * config/mips/xm-irix4.h: Delete file.
435 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
436
fde2cceb
JB
4372003-09-10 J. Brobecker <brobecker@gnat.com>
438
439 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
440 * Makefile.in (hppa-tdep.o): Update dependencies.
441
66f667f5
JW
4422003-09-10 James E Wilson <wilson@specifixinc.com>
443
ef5fd69f
JW
444 * MAINTAINERS: Change my e-mail address. Move to paper trail
445 section.
66f667f5 446
53e8aaea
KB
4472003-09-10 Kevin Buettner <kevinb@redhat.com>
448
449 * MAINTAINERS (frv): New ISA entry.
450
dcc6aaff
KB
4512003-09-10 Kevin Buettner <kevinb@redhat.com>
452
453 * frv-tdep.c (dis-asm.h): Include.
454 * Makefile.in (frv-tdep.o): Update dependencies.
455
932644f0
JJ
4562003-09-09 Jeff Johnston <jjohnstn@redhat.com>
457
458 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
459 Fix typo for high range of floating registers.
460
91c24f0a
DC
4612003-09-09 David Carlton <carlton@kealia.com>
462
463 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
464 highpc initialization here out of scan_partial_symbols.
465 (scan_partial_symbols): Restructure into a recursive version,
466 calling add_partial_namespace and add_partial_enumeration when
467 appropriate.
468 (add_partial_namespace): New.
469 (add_partial_enumeration, locate_pdi_sibling): Ditto.
470
c9263853
AC
4712003-09-09 Andrew Cagney <cagney@redhat.com>
472
e56a0ecc
AC
473 * rs6000-tdep.c (ppc_push_return_address): Delete function.
474 (rs6000_push_dummy_call): Set LR to BP_ADDR.
475 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
476 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
477
794a477a
AC
478 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
479 (rs6000_push_dummy_call): Set the "TOC" register.
480
c9263853
AC
481 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
482 methods "max_register_raw_size", "max_register_virtual_size" or
483 "register_virtual_size".
484
afa7d0b2
ILT
4852003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
486
487 * MAINTAINERS: Update my e-mail address.
488
7a41266b
AC
4892003-09-09 Andrew Cagney <cagney@redhat.com>
490
491 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
492 (rs6000_push_dummy_call): Store the struct return address.
493 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
494
77b2b6d4
AC
4952003-09-09 Andrew Cagney <cagney@redhat.com>
496
497 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
498 "ppc_sysv_abi_push_arguments".
499 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
500 "ppc_sysv_abi_push_arguments".
501 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
502 instead of "push_arguments".
503 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
504
e8a7b686
AC
5052003-09-09 Andrew Cagney <cagney@redhat.com>
506
507 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
508 instead of CALL_DUMMY_ADDRESS.
509
f86f5ca3
PH
5102003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
511
512 * p-lang.c: Eliminate "register".
513 * c-lang.c: Ditto.
514 * expprint.c: Ditto.
515 * f-lang.c: Ditto.
516 * jv-lang.c: Ditto.
517 * language.c: Ditto.
518 * m2-lang.c: Ditto.
519 * parse.c: Ditto.
520 * scm-lang.c: Ditto.
521 * objc-lang.c: Ditto.
522
83ee270e
NC
5232003-09-09 Nick Clifton <nickc@redhat.com>
524
525 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
526
a89aa300
AC
5272003-09-04 Andrew Cagney <cagney@redhat.com>
528
529 * avr-tdep.c: Include "dis-asm.h".
530 * cris-tdep.c: Include "dis-asm.h".
531 (cris_delayed_get_disassembler): Use "struct disassemble_info"
532 instead of corresponding typedef.
533 * h8300-tdep.c: Include "dis-asm.h".
534 * ia64-tdep.c: Include "dis-asm.h".
535 * i386-tdep.c: Include "dis-asm.h".
536 (i386_print_insn): Use "struct disassemble_info" instead of
537 corresponding typedef.
538 * m68k-tdep.c: Include "dis-asm.h".
539 * mcore-tdep.c: Include "dis-asm.h".
540 * mips-tdep.c: Include "dis-asm.h".
541 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
542 instead of corresponding typedef.
543 * ns32k-tdep.c: Include "dis-asm.h".
544 * s390-tdep.c: Include "dis-asm.h".
545 * sparc-tdep.c: Include "dis-asm.h".
546 * vax-tdep.c: Include "dis-asm.h".
547 * v850-tdep.c: Include "dis-asm.h".
548 * mn10300-tdep.c: Include "dis-asm.h".
549 * rs6000-tdep.c: Include "dis-asm.h".
550 * xstormy16-tdep.c: Include "dis-asm.h".
551 (_initialize_xstormy16_tdep): Delete "extern" declaration of
552 print_insn_xstormy16.
553 * Makefile.in (v850-tdep.o): Update dependencies.
554 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
555 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
556 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
557 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
558 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
559 (gdbarch_h): Remove $(dis_asm_h).
560 * disasm.c: Include "dis-asm.h".
561 (dis_asm_read_memory): Use "struct disassemble_info" instead of
562 corresponding typedef.
563 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
564 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
565 * gdbarch.sh: Do not include "dis-asm.h".
566 (struct disassemble_info): Declare opaque.
567 (TARGET_PRINT_INSN): Update declaration.
568 * gdbarch.h, gdbarch.c: Re-generate.
569
88a82a65
AC
5702003-09-08 Andrew Cagney <cagney@redhat.com>
571
572 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
573 CALL_DUMMY_ADDRESS, change to a predicate.
574 * gdbarch.h, gdbarch.c: Re-generate.
575 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
576 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
577 * infcall.c (call_function_by_hand): Ditto.
578 * sparc-tdep.c (sparc_push_return_address): Ditto.
579 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
580 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
581 CALL_DUMMY_ADDRESS with entry_point_address.
582 * v850-tdep.c (v850_push_return_address): Ditto.
583 * s390-tdep.c (s390_push_return_address): Ditto.
584 * rs6000-tdep.c (ppc_push_return_address): Ditto.
585 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
586 * mcore-tdep.c (mcore_push_return_address): Ditto.
587 * cris-tdep.c (cris_push_return_address): Ditto.
588 * arm-tdep.c (arm_push_return_address): Ditto.
589
3e2c4033
AC
5902003-09-08 Andrew Cagney <cagney@redhat.com>
591
592 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
593 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
594 and REG_UNMODIFIED to REG_SAME_VALUE.
595 (execute_cfa_program): Update.
596 (dwarf2_frame_cache): Update. Initialize table to
597 REG_UNSPECIFIED, complain if CFI fails to specify a register's
598 location.
599 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
600
39efb398
AC
6012003-09-08 Andrew Cagney <cagney@redhat.com>
602
603 * gnu-nat.c: Remove "inline" function attribute.
604 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
605
f5cb5aca
KB
6062003-09-08 Kevin Buettner <kevinb@redhat.com>
607
608 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
609 target.
610
1cb761c7
KB
6112003-09-08 Kevin Buettner <kevinb@redhat.com>
612
613 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
614 (frame_extra_info): Rename this struct to frv_unwind_cache.
615 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
616 Add fields ``prev_sp'' and ``base''.
617 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
618 (frv_saved_pc_after_call, frv_init_extra_frame_info)
619 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
620 Delete.
621 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
622 Revise all callers. Fill in the unwind cache argument and make
623 other adjustments to account for new frame mechanisms.
624 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
625 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
626 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
627 (frv_frame_unwind, frv_frame_base): New structs.
628 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
629 additional arguments expected by this method and adjust function
630 body accordingly.
631 (frv_gdbarch_init): Remove calls to the following functions:
632 set_gdbarch_deprecated_init_frame_pc(),
633 set_gdbarch_deprecated_saved_pc_after_call(),
634 set_gdbarch_deprecated_frame_chain(),
635 set_gdbarch_deprecated_frame_saved_pc(),
636 set_gdbarch_deprecated_frame_init_saved_regs(),
637 set_gdbarch_deprecated_push_arguments(),
638 set_gdbarch_deprecated_push_return_address(),
639 set_gdbarch_deprecated_pop_frame(),
640 set_gdbarch_deprecated_call_dummy_words(),
641 set_gdbarch_deprecated_sizeof_call_dummy_words(),
642 set_gdbarch_deprecated_init_extra_frame_info(),
643 set_gdbarch_deprecated_dummy_write_sp(), and
644 set_gdbarch_deprecated_pc_in_call_dummy().
645 Add calls to the following functions:
646 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
647 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
648 frame_base_set_default().
649 * Makefile.in (frv-tdep.o): Update dependencies.
650
68f6cf99
MK
6512003-09-09 Mark Kettenis <kettenis@gnu.org>
652
653 * dwarf2-frame.c (read_encoded_value): Add support for
654 DW_EH_PE_aligned encoding.
655
73b65bb0
DJ
6562003-09-08 Daniel Jacobowitz <drow@mvista.com>
657
658 * infrun.c (normal_stop): Don't print a message if the inferior
659 has exited.
660
7c8a5605
JB
6612003-09-08 Jim Blandy <jimb@redhat.com>
662
663 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
664 * dbxread.c: #include "gdb_assert.h".
665 (read_dbx_symtab): If the objfile has no .data section, use the
666 section index for the .bss section instead.
667
7dd88986
DJ
6682003-09-08 Daniel Jacobowitz <drow@mvista.com>
669
670 * frame.c (deprecated_safe_get_selected_frame): New function.
671 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
672 * findvar.c (read_var_value): Call it.
673
55ff77ac
CV
6742003-09-08 Corinna Vinschen <vinschen@redhat.com>
675
676 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
677 (sh64-tdep.o): Add dependencies.
678 * configure.tgt: Add FIXME to sh-*-linux*.
679 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
680 (sh_gdbarch_init): Always set correct sh_show_regs function
681 pointer. Call sh64_gdbarch_init() if machine type is sh5.
682 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
683 * sh64-tdep.c: New file, containing all sh64 related code from
684 sh-tdep.c.
685 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
686 * config/sh/linux.mt (TDEPFILES): Ditto.
687 * config/sh/nbsd.mt (TDEPFILES): Ditto.
688 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
689 * config/sh/wince.mt (TDEPFILES): Ditto.
690
bfb39158
DJ
6912003-09-07 Daniel Jacobowitz <drow@mvista.com>
692
693 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
694 (stop_wait_callback): Handle !lp->signalled also.
695 (lin_lwp_has_pending, flush_callback): New functions.
696 (lin_lwp_wait): Call flush_callback.
697 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
698 (linux_proc_pending_signals): New function.
699 * linux-nat.h (linux_proc_pending_signals): Add prototype.
700
9407de8e
DJ
7012003-09-07 Daniel Jacobowitz <drow@mvista.com>
702
703 From Nick Kelsey <nickk@ubicom.com>:
704 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
705 when the stop PC is at the beginning of a function also.
706
2ef47cd0
DJ
7072003-09-06 Daniel Jacobowitz <drow@mvista.com>
708
709 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
710 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
711
6f4492c8
MK
7122003-09-06 Mark Kettenis <kettenis@gnu.org>
713
714 * sol-thread.c: Include "gdb_string.h".
715
d3420b2f
MK
7162003-09-03 Mark Kettenis <m.kettenis@osp.nl>
717
718 * gcore.c: Reorder include files in alphabetical order. Include
719 "gdb_assert.h". Various coding style fixes.
720 (derive_stack_segment, derive_heap_segment): Replace check for
721 non-null BOTTOM and TOP with gdb_assert.
722 (derive_heap_segment): Replace check for successful creation of
723 ZERO with gdb_assert.
724 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
725
5220ea4c
AC
7262003-09-04 Andrew Cagney <cagney@redhat.com>
727
728 * thread-db.c (verbose_dlsym): New function.
729 (thread_db_load): Use verbose_dlsym
730 (thread_db_new_objfile): Print that libthread_db was loaded, and
731 that thread debugging was enabled.
732
6e8c2c06
AC
7332003-09-04 Andrew Cagney <cagney@redhat.com>
734
735 * configure.tgt: Add "mips64*-*-*" target. Delete
736 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
737 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
738 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
739 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
740 mips*-sony-*, and mips64*-*-elf* targets.
741 * config/mips/embedl.mt: Delete file.
742 * config/mips/embedl64.mt: Delete file.
743 * config/mips/mips.mt: Delete file.
744 * config/mips/mips64.mt: Delete file.
745 * config/mips/tm-embed.h: Delete file.
746 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
747 * config/mips/embed64.mt: Delete out-of-date comment.
748
3a3bc038
AC
7492003-09-04 Andrew Cagney <cagney@redhat.com>
750
751 * hppa-tdep.c (hppa_gdbarch_init): Set
752 "have_nonsteppable_watchpoint".
753 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
754 * mips-tdep.c (mips_dump_tdep): Do not print
755 HAVE_NONSTEPPABLE_WATCHPOINT.
756 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
757 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
758 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
759 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
760
a957e642
CV
7612003-09-04 Corinna Vinschen <vinschen@redhat.com>
762
763 * breakpoint.c (watchpoint_check): Remove accidentally checked in
764 unused code. Add comment.
765
a6fbcf2f
CV
7662003-09-04 Corinna Vinschen <vinschen@redhat.com>
767
768 * breakpoint.c (watchpoint_check): Check for pc being in an
769 epilogue if watchpoint frame couldn't be found.
770
c14a44d5
AC
7712003-09-04 Andrew Cagney <cagney@redhat.com>
772
773 * Makefile.in: Re-generate all dependencies.
774
f6c40618
AC
7752003-09-03 Andrew Cagney <cagney@redhat.com>
776
777 * arch-utils.h (legacy_print_insn): Delete declaration.
778 * arch-utils.c (legacy_print_insn): Delete function.
779 * disasm.c (deprecated_tm_print_insn_info): Delete.
780 (_initialize_disasm): Delete function, contained code initializing
781 deprecated_tm_print_insn_info.
782 * gdbarch.sh (deprecated_tm_print_insn): Delete.
783 (deprecated_tm_print_insn_info): Delete.
784 (TARGET_PRINT_INSN): Do not provide a default.
785 * gdbarch.h, gdbarch.c: Re-generate.
786
242e8be5
AC
7872003-09-03 Andrew Cagney <cagney@redhat.com>
788
789 * disasm.c (fprintf_disasm): New function.
790 (gdb_disassemble_info): Call "init_disassemble_info", instead of
791 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
792 reverts 2003-08-14 change.
793 (_initialize_disasm): Call "init_disassemble_info", instead of
794 INIT_DISASSEMBLE_INFO_NO_ARCH.
795
3ffc3dda
MS
7962003-09-03 Michael Snyder <msnyder@redhat.com>
797
798 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
799
52d16ba8
AC
8002003-09-03 Andrew Cagney <cagney@redhat.com>
801
802 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
803 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
804 * symfile.c (syms_from_objfile): Update.
805 (reread_symbols): `Update
806 * exec.c (exec_file_attach): Update.
807 (exec_file_attach): Update.
808 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
809 2003-08-29 change.
810 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
811
eb5492fa
DJ
8122003-09-03 Daniel Jacobowitz <drow@mvista.com>
813
814 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
815 trad-frame.h.
816 (arm_get_cache): Delete macro.
817 (struct arm_prologue_cache): Update comments. Make saved_regs into
818 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
819 to prev_sp.
820 (thumb_scan_prologue): Update for cache changes. Don't call
821 DEPRECATED_PC_IN_CALL_DUMMY.
822 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
823 argument and use it in desperation search for our prologue. Do not
824 search past the specified PC.
825 (arm_make_prologue_cache): Simplify.
826
827 (arm_prologue_this_id, arm_prologue_prev_register)
828 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
829 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
830 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
831 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
832 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
833
834 (arm_frame_chain_valid, arm_find_callers_reg)
835 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
836 (arm_pop_frame): Delete obsolete methods.
837 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
838
839 (arm_gdbarch_init): Update for new frame methods. Register prologue
840 and sigtramp unwinders. Set the default frame base method.
841
842 * Makefile.in (arm-tdep.o): Update dependencies.
843 * varobj.c (find_frame_addr_in_frame_chain): Call
844 get_frame_base_address.
845 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
846
24de872b
DJ
8472003-09-03 Daniel Jacobowitz <drow@mvista.com>
848
849 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
850 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
851 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
852 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
853 Take NEXT_FRAME and CACHE arguments. Call
854 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
855 Set unwound_pc in CACHE instead of modifying the frame argument.
856 Don't bother checking the frame type when looking for sigtramp
857 frames.
858 (arm_make_prologue_cache, arm_frame_chain)
859 (arm_init_extra_frame_info): New functions.
860
9b8d791a
DJ
8612003-09-03 Daniel Jacobowitz <drow@mvista.com>
862
863 * arm-tdep.c (arm_get_cache): Define.
864 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
865 unwound_sp, unwound_pc, and saved_regs.
866 (thumb_scan_prologue): Take a cache instead of the frame.
867 (arm_scan_prologue): Likewise.
868 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
869 instead of a temporary frame.
870 (arm_init_extra_frame_info): Allocate and use a cache.
871 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
872
7ee3275f
AC
8732003-09-03 Andrew Cagney <cagney@redhat.com>
874
875 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
876 * config/mips/wince.mt (TM_CLIBS): Ditto.
877 * config/sh/wince.mt (TM_CLIBS): Ditto.
878 * config/pa/hppa64.mt (TM_CLIBS): Delete.
879 * config/sparc/sp64.mt (CC): Delete.
880
57b29be7
AC
8812003-09-03 Andrew Cagney <cagney@redhat.com>
882
883 * defs.h: Do not include "arch-utils.h".
884 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
885 GDB_MULTI_ARCH_PURE.
886 * configure.in (GDB_MULTI_ARCH): Do not define.
887 * configure, config.in: Regenerate.
888 * configure.tgt: Do not set variable "gdb_multi_arch".
889 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
890 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
891 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
892 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
893 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
894 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
895 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
896 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
897 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
898 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
899 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
900 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
901 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
902 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
903 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
904 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
905 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
906 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
907
12e035e2
MC
9082003-08-30 Michael Chastain <mec@shout.net>
909
910 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
911 * config/m68k/nm-hp300hpux.h: Delete.
912 * config/m68k/tm-hp300hpux.h: Delete.
913 * config/m68k/xm-hp300hpux.h: Delete.
914 * config/m68k/xm-hp300bsd.h: Delete.
915 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
916 tm-hp300hpux.h, xm-hp300hpux.h.
917 * somsolib.c: Remove comment about hp300 shared libraries.
918
bda34dc2
MK
9192003-08-31 Mark Kettenis <kettenis@gnu.org>
920
5bca7895
MK
921 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
922 Only define PTRACE_GET_THREAD_AREA is not already defined.
923 Various style fixes in code and comments and some additional
924 spelling fixes in comments. Move after functions dealing with
925 debug registers.
926 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
927 Fix coding-style.
928
bda34dc2
MK
929 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
930 frame_unwind_register_unsigned instead of
931 frame_unwind_unsigned_register.
932
c890192f
MK
9332003-08-30 Mark Kettenis <kettenis@gnu.org>
934
935 * configure.in: Search for gethostbyname in libnsl.
936 * configure: Regenerated.
937
60fac5b8
MK
9382003-08-29 Mark Kettenis <kettenis@gnu.org>
939
e294916c
MK
940 * configure.in: Remove redundant AC_MSG_RESULT in check for
941 uintptr_t in stdint.h.
942 * configure: Regenerated.
943
c40d267a
MK
944 * amd64-nat.h (struct regcache): Add opaque declaration.
945
60fac5b8
MK
946 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
947 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
948 Change "register array" to "register cache" in comments.
949 (x86_64_linux_gregset64_reg_offset): New variable.
950 (GETREGS_SUPPLIES): Remove macro.
951 (supply_gregset): Call amd64_supply_native_gregset instead of
952 x86_64_linux_supply_gregset.
953 (fill_gregset): Rename `regno' to `regnum'. Call
954 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
955 (store_regs): Rename `regno' to `regnum'.
956 (store_fpregs): Rename `regno' to `regnum'.
957 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
958 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
959 Reorganize function a bit.
960 (store_inferior_registers): Rename `regno' to `regnum'. Use
961 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
962 Reorganize function a bit.
963 (_initialize_x86_64_linux_nat): New function.
964 * config/i386/x86-64linux.mh.
965
546143b6
AC
9662003-08-29 Andrew Cagney <cagney@redhat.com>
967
968 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
969 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
970 (target_remove_watchpoint): Delete macro.
971 (target_insert_watchpoint): Delete macro.
972 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
973 (remote_mips_stopped_by_watchpoint): Delete declaration.
974 (remote_mips_remove_watchpoint): Delete declaration.
975 (remote_mips_set_watchpoint): Delete declaration.
976 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
977 * remote-mips.c (_initialize_remote_mips): Set
978 "to_insert_watchpoint", "to_stopped_by_watchpoint",
979 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
980 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
981 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
982 (mips_stopped_by_watchpoint): Rename
983 remote_mips_stopped_by_watchpoint.
984 (mips_can_hardware_watchpoint): Rename
985 remote_mips_can_use_hardware_watchpoint, update function
986 signature.
987
7bace51b
MK
9882003-08-29 Mark Kettenis <kettenis@gnu.org>
989
b0f5c6f2
MK
990 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
991 USER_DS. We haven't given them a register number yet.
992
2a6d284d
MK
993 * amd64-nat.h: New file.
994 * amd64-nat.c: New file.
995 * amd64fbsd-nat.c: Include "amd64-nat.h".
996 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
997 (amd64fbsd32_r_reg_offset): New variable.
998 (supply_gregset): Simply call amd64_supply_native_gregset.
999 (fill_gregset): Rename `regno' to `regnum'. Simply call
1000 amd64_collect_native_gregset.
1001 (fill_fpregset): Rename `regno' to `regnum'.
1002 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1003 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1004 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1005 `fpregset_t'. Call amd64_supply_native_gregset instead of
1006 supply_gregset. Call x86_64_supply_fxsave instead of
1007 supply_fpregset.
1008 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1009 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1010 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1011 `fpregset_t'. Call amd64_collect_native_gregset instead of
1012 fill_gregset. Call x86_64_collect_fxsave instead of
1013 fill_fpregset.
1014 (_initialize_am64fbsd_nat): Initialize
1015 amd64_native_gregset32_reg_offset and
1016 amd64_native_gregset64_reg_offset.
1017 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1018
a16d75cc
MK
1019 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1020 null pointer. Fix typo in comment.
1021
7bace51b
MK
1022 * regcache.c (supply_register): Reimplement to call
1023 regcache_raw_supply.
1024 (regcache_collect): Reimplement by calling regcache_raw_collect.
1025
9a661b68
MK
10262003-08-28 Mark Kettenis <kettenis@gnu.org>
1027
1028 * regcache.c (register_buffer): Consitify first argument.
1029 (regcache_raw_supply, regcache_raw_collect): New
1030 functions.
1031
e94cc8fa
DJ
10322003-08-28 Daniel Jacobowitz <drow@mvista.com>
1033
1034 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1035 by Nathan J. Williams.
1036
c64bd0ce
DJ
10372003-08-28 Daniel Jacobowitz <drow@mvista.com>
1038
1039 * lin-lwp.c (wait_lwp): New function, copied from
1040 stop_wait_callback. Clean up.
1041 (stop_wait_callback): Use wait_lwp.
1042
e5ab0dce
AC
10432003-08-28 Andrew Cagney <cagney@redhat.com>
1044
1045 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1046 flavour and disassembler options.
1047 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1048 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1049 deprecated_tm_print_insn_info.
1050
a788de9b
AC
10512003-08-27 Andrew Cagney <cagney@redhat.com>
1052
1053 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1054 Use target_read_memory.
1055 (s390_get_frame_info): Update. Do not reference
1056 deprecated_tm_print_insn_info.
1057 (s390_check_function_end, s390_is_sigreturn): Ditto.
1058
36482093
AC
10592003-08-27 Andrew Cagney <cagney@redhat.com>
1060
1061 * Makefile.in (cris-tdep.o): Update dependencies.
1062 * cris-tdep.c: Include "gdb_assert.h".
1063 (cris_gdbarch_init): Set print_insn.
1064 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1065 (cris_delayed_get_disassembler): Simplify, directly call the
1066 disassembler returned by cris_get_disassembler.
1067 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1068 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1069 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1070 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1071 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1072 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1073 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1074 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1075 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1076 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1077 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1078 (gdb_print_insn_sparc): Delete function.
1079 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1080 deprecated_tm_print_insn_info.
1081 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1082 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1083 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1085 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1086 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1087 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1088 (s390_gdbarch_init): Set print_insn.
1089
0285512f
AC
10902003-08-27 Andrew Cagney <cagney@redhat.com>
1091
1092 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1093 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1094 * infcall.c (call_function_by_hand): Convert the entry point
1095 address into a code address.
1096
cdcd5552
AC
10972003-08-27 Andrew Cagney <cagney@redhat.com>
1098
1099 * dsrec.c: Include "gdb_string.h".
1100 * Makefile.in (dsrec.o): Update dependencies.
1101
e85cddad
MC
11022003-08-27 Michael Chastain <mec@shout.net>
1103
1104 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1105
8bbfbb23
AC
11062003-08-27 Andrew Cagney <cagney@redhat.com>
1107
1108 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1109 (alpha_osf1_init_abi): Do not set call_dummy_address.
1110
ba058b66
DC
11112003-08-27 David Carlton <carlton@kealia.com>
1112
1113 From Randolph Chung <tausq@debian.org>:
1114 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1115 compiles with -Wformat-nonliteral -Werror.
1116
87f84c9d
JB
11172003-08-26 Jim Blandy <jimb@redhat.com>
1118
1119 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1120 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1121 bfd_lookup_symbol, since we only want symbols in code sections.
1122 (look_for_base): Pass zero as the SECT_FLAGS argument to
1123 bfd_lookup_symbol, since we're not concerned about which section
1124 the symbol is in.
1125
102d615a
JJ
11262003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1127
1128 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1129 we are frameless or the return address register is already known.
1130
cc7ad3ea
AC
11312003-08-26 Andrew Cagney <cagney@redhat.com>
1132
1133 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1134 in size. Add comments.
1135
af8b88dd
JJ
11362003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1137
1138 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1139 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1140
e0a4f5a1
JM
11412003-08-26 Jason Merrill <jason@redhat.com>
1142
1143 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1144 case out of #ifdef MIPS block.
1145
4ae9ee8e
DJ
11462003-08-25 Daniel Jacobowitz <drow@mvista.com>
1147
1148 PR java/1322
1149 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1150 available before calling SECT_OFF_TEXT.
3c164570 1151 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1152
004d836a
JJ
11532003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1154
1155 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1156 bof, and nat0-nat127 as pseudo-registers.
1157 (ia64_frame_cache): New struct used to cache frame info.
1158 (ia64_register_reggroup_p): New routine used to override default
1159 register grouping so registers without names are still saved and
1160 restored.
1161 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1162 pseudo values.
1163 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1164 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1165 (ia64_alloc_frame_cache): New routine to create a new
1166 ia64_frame_cache.
1167 (examine_prologue): Change prototype to add next_frame pointer.
1168 Assume frameless until otherwise proven. Verify that the cfm for
1169 current frame matches the cfm that should occur for the prologues
1170 alloc insn and if equal, mark as not frameless. At end of routine,
1171 if not frameless, calculate registers for the previous frame and store
1172 in the cache, if a cache is provided.
1173 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1174 and pass 0 for next_frame.
1175 (ia64_store_return_value): Change to use convert_typed_floating()
1176 instead of calling ia64_convert_to_raw().
1177 (ia64_extract_return_value): Change to use convert_typed_floating()
1178 instead of calling ia64_convert_to_virtual().
1179 (ia64_frame_cache): New routine to support new frame model.
1180 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1181 (ia64_frame_sniffer): Ditto.
1182 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1183 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1184 (ia64_sigtramp_frame_prev_register): Ditto.
1185 (ia64_sigtramp_frame_sniffer): Ditto.
1186 (ia64_frame_base_address): Ditto.
1187 (ia64_extract_struct_value_address): Change to issue error message.
1188 (ia64_frame_align): New routine to align sp.
1189 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1190 (ia64_push_arguments): Removed. Logic moved to
1191 ia64_push_dummy_call().
1192 (ia64_push_return_address): Ditto.
1193 (ia64_unwind_dummy_id): New function.
1194 (ia64_unwind_pc): Ditto.
1195 (ia64_convert_register_p): Ditto.
1196 (ia64_register_to_value): Ditto.
1197 (ia64_value_to_register): Ditto.
1198 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1199 (ia64_register_byte, ia64_register_raw_size): Ditto.
1200 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1201 (ia64_saved_pc_after_call): Ditto.
1202 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1203 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1204 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1205 (ia64_register_convert_to_raw): Ditto.
1206 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1207 (ia64_init_extra_frame_info): Ditto.
1208 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1209 (ia64_gdbarch_init): Remove registering of deprecated functions that
1210 are no longer used. Add registration of new gdbarch functions.
1211 Remove registering deprecated_write_sp. Replace
1212 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1213 Delete set_gdbarch_deprecated_register_convertible(),
1214 set_gdbarch_deprecated_register_convert_to_virtual(), and
1215 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1216 set_gdbarch_deprecated_register_size(),
1217 set_gdbarch_deprecated_register_bytes(),
1218 set_gdbarch_pcregnum(),
1219 set_gdbarch_deprecated_register_byte(),
1220 set_gdbarch_deprecated_register_raw_size(),
1221 set_gdbarch_deprecated_max_register_raw_size(),
1222 set_gdbarch_deprecated_register_virtual_size(),
1223 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1224 Replace set_gdbarch_deprecated_extract_return_value() with
1225 set_gdbarch_extract_return_value(). Remove calls to:
1226 set_gdbarch_deprecated_saved_pc_after_call();
1227 set_gdbarch_deprecated_frame_chain(),
1228 set_gdbarch_deprecated_frame_saved_pc(),
1229 set_gdbarch_deprecated_frame_init_saved_regs(),
1230 set_gdbarch_deprecated_get_saved_register(),
1231 set_gdbarch_deprecated_call_dummy_words(),
1232 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1233 set_gdbarch_deprecated_init_extra_frame_info(),
1234 set_gdbarch_deprecated_frame_args_address(),
1235 set_gdbarch_deprecated_frame_locals_address(),
1236 and set_gdbarch_deprecated_dummy_write_sp().
1237 Add set_gdbarch_convert_register_p(),
1238 set_gdbarch_register_to_value(),
1239 set_gdbarch_value_to_register(),
1240 set_gdbarch_push_dummy_call(),
1241 set_gdbarch_frame_align(),
1242 set_gdbarch_unwind_dummy_id(),
1243 set_gdbarch_unwind_pc(),
1244 frame_unwind_append_sniffer(),
1245 frame_unwind_append_sniffer(),
1246 and frame_base_set_default().
1247
aede7613
CD
12482003-08-25 Chris Demetriou <cgd@broadcom.com>
1249
1250 * configure.tgt: Document need for special "mipsisa64" handling.
1251 (mipsisa64*-*-linux64): Handle as target linux64.
1252 (mipsisa64*-*-*): Handle as target embed64.
1253
43c3a82e
MC
12542003-08-18 Michael Chastain <mec@shout.net>
1255
1256 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1257 objfile bug.
1258
6564f77d
MK
12592003-08-24 Mark Kettenis <kettenis@gnu.org>
1260
2de139ba
MK
1261 * i387-tdep.h: Update copyright date.
1262 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1263
6564f77d
MK
1264 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1265 CFLAGS games to reflect reality.
1266
42cf1509
AC
12672003-08-24 Andrew Cagney <cagney@redhat.com>
1268
1269 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1270 GDB_MULTI_ARCH is always non-zero.
1271 * osabi.c (_initialize_gdb_osabi): Ditto.
1272 (gdbarch_init_osabi): Ditto.
1273 * sparc-tdep.c: Ditto for #if code.
1274
0485f6ad
MK
12752003-08-23 Mark Kettenis <kettenis@gnu.org>
1276
1277 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1278 Update comments.
1279 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1280 comments.
1281 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1282 x86_64_supply_fxsave.
1283 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1284 x86_64_supply_fxsave.
1285 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1286 x86_64_supply_fxsave.
1287
c7716133
AJ
12882003-08-23 Andreas Jaeger <aj@suse.de>
1289
1290 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1291 i387_supply_fxsave.
1292
ed504bdf
MK
12932003-08-23 Mark Kettenis <kettenis@gnu.org>
1294
1295 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1296 i387_supply_register.
1297 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1298 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1299 i387_supply_fsave.
1300 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1301 i387_supply_fxsave.
1302 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1303 i387_supply_fsave.
1304 * i386bsd-nat.c (supply_fpregset): Adjust call to
1305 i387_supply_fsave.
1306 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1307 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1308 supply_fpregset.
1309 (store_inferior_registers): Remove extraneous whitespace. Call
1310 i387_fill_fsave instead of fill_fpregset.
1311 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1312 (supply_fpregset): Likewise.
1313 * i386v4-nat.c (supply_fpregset): Adjust call to
1314 i387_supply_fsave.
1315 * i386-interix-nat.c (supply_fpregset): Adjust call to
1316 i387_supply_fsave.
1317 * i386-linux-nat.c (supply_fpregset): Adjust call to
1318 i387_supply_fsave.
1319 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1320 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1321 i387supply_fsave and i387_supply_fxsave.
1322 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1323 Incorporate code from `i387_supply_register.
1324 (i387_supply_register): Remove.
1325 (i387_supply_fxsave): Add `regnum' argument.
1326 Update comments.
1327 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1328 prototype.
1329 (i387_supply_register): remove prototype.
1330 Update comments.
1331
4be5d520
MC
13322003-08-22 Michael Chastain <mec@shout.net>
1333
1334 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1335 Add lines for files in gdb/testsuite/gdb.cp/* that are
1336 still not 8.3 unique.
1337
7ed85d26
DJ
13382003-08-22 Daniel Jacobowitz <drow@mvista.com>
1339
1340 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1341 TYPE_VPTR_FIELDNO is valid.
1342
eb0d3137
MK
13432003-08-19 Mark Kettenis <kettenis@gnu.org>
1344
1345 * utils.c (set_width_command): Remove prototypes.
1346 (set_screen_size): New prototype.
1347 (init_page_info): Simplify by fetching the screen size from
1348 Readline. Call set_screen_size.
1349 (set_screen_size): New function.
1350 (set_width): Add missing whitespace in comment.
1351 (set_width_command): Call set_screen_size.
1352 (set_height_command): New function.
1353 (initialize_utils): Fix formatting. Make "set height" command
1354 call set_height_command. Remove redundant code that turns off
1355 pagination if output isn't a terminal. Remove redundant call to
1356 set_width_command.
1357
7e6d0ac8
MK
13582003-08-22 Mark Kettenis <kettenis@gnu.org>
1359
3567a8ea
MK
1360 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1361 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1362 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1363 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1364 `case' keyword.
1365 (sparc64_register_info): Give the reister with number
1366 SPARC64_STATE_REGNUM a name.
1367 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1368 %asi and %ccr.
1369 (sparc64_push_dummy_call): Take BIAS into account when checking
1370 stcak alignment.
1371 (sparc_software_single_step): Remove assertions that check whether
1372 NPC and NNPC were zero.
1373 (sparc_supply_rwindow): Make public. Merge functionality with
1374 sparc64_supply_rwindow.
1375 (sparc_fill_rwindow): Make public. Merge functionality with
1376 sparc64_fill_rwindow.
1377 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1378 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1379 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1380 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1381 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1382
7e6d0ac8
MK
1383 * reggroups.c: Add whitespace after declarations of local
1384 variables in functions.
1385
72e5f484
MC
13862003-08-21 Michael Chastain <mec@shout.net>
1387
1388 * gdbtypes.h: Change array bound type from an int to enum.
1389
435ac228
AC
13902003-08-21 Andrew Cagney <cagney@redhat.com>
1391
1392 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1393 * config/sparc/tm-sparc.h: Ditto.
1394 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1395 unconditionally.
1396 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1397
0d0e1a63
MK
13982003-07-13 Mark Kettenis <kettenis@gnu.org>
1399
1400 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1401 (register_objfile_data, set_objfile_data, objfile_data): New
1402 prototypes.
1403 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1404 prototypes.
1405 (allocate_objfile): Call objfile_alloc_data.
1406 (free_objfile): Call objfile_free_data.
1407 (struct objfile_data): New.
1408 (struct objfile_data_registration): New.
1409 (struct objfile_data_registry): New.
1410 (objfile_data_registry): New variable.
1411 (register_objfile_data): New function.
1412 (objfile_alloc_data, objfile_free_data): New functions.
1413 (set_objfile_data, objfile_data): New functions.
1414 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1415 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1416 (_initialize_dwarf2_frame): New function and prototype.
1417
d90cf509
AC
14182003-08-21 Andrew Cagney <cagney@redhat.com>
1419
1420 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1421 a specific architecture.
1422 * arch-utils.h (set_architecture_from_arch_mach): Delete
1423 declaration.
1424 (target_architecture_hook): Delete declaration.
1425 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1426 (default_float_format): Assume GDB_MULTI_ARCH.
1427 (default_double_format): Assume GDB_MULTI_ARCH.
1428 (set_endian_from_file): Delete function.
1429 (arch_ok): Delete function.
1430 (set_arch): Delete function.
1431 (set_architecture_from_arch_mach): Delete function.
1432 (set_architecture_from_file): Delete function.
1433 (set_architecture): Assume GDB_MULTI_ARCH.
1434 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1435
8b39fe56
MK
14362003-08-21 Mark Kettenis <kettenis@gnu.org>
1437
1438 Rewrite FreeBSD/sparc64 native configuration.
1439 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1440 * sparc64fbsd-nat.c: New file.
1441 * sparc64fbsd-tdep.c: New file.
1442 * sparc64-tdep.c sparc64-tdep.h: New files.
1443 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1444 sparc64fbsd-tdep.o): New dependencies.
1445 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1446 and sparc64fbsd-tdep.c.
1447 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1448 * config/sparc/fbsd.mh: Remove copyright notice.
1449 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1450 sparcbsd-nat.o.
1451 * config/sparc/fbsd.mt: Remove copyright notice.
1452 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1453 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1454 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1455 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1456 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1457 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1458 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1459 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1460 "sparc/tm-sp64.h".
1461 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1462 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1463
a7f19c79
MC
14642003-08-21 Michael Chastain <mec@shout.net>
1465
1466 * symtab.h: Add doco on the space critical structures and
1467 some measurements of space usage.
1468
da08ea5b
MS
14692003-08-21 Michael Snyder <msnyder@redhat.com>
1470
1471 * tracepoint.c (trace_dump_command): Trace break address
1472 is subject to DECR_PC_AFTER_BREAK.
1473 (set_traceframe_context): Make "trace_line" an int.
1474 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1475
6df2bf50
MS
14762003-08-20 Michael Snyder <msnyder@redhat.com>
1477
1478 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1479 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1480 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1481 argument passing.
1482 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1483 functions, replace sh_push_dummy_call.
1484 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1485
0955bbf0
MC
14862003-08-20 Michael Chastain <mec@shout.net>
1487
1488 * gdbtypes.h (struct main_type): Rearrange to save space.
1489
260a4188
MS
14902003-08-20 Michael Snyder <msnyder@redhat.com>
1491
1492 * trad-frame.c: Comment typo fix.
1493
8baa6f92
KB
14942003-08-20 Michael Snyder <msnyder@redhat.com>
1495 Kevin Buettner <kevinb@redhat.com>
1496
1497 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1498 (frv_frame_init_saved_regs): Add declaration.
1499 (frame_extra_info): Add new field ``saved_regs''.
1500 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1501 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1502 Update frame related code.
1503 (frv_extract_struct_value_address): Adjust formatting.
1504 * Makefile.in (frv-tdep.o): Update dependencies.
1505 * config/frv/tm-frv.h (target_insert_watchpoint)
1506 (target_remove_watchpoint, target_insert_hw_breakpoint)
1507 (target_remove_hw_breakpoint): Delete these macros.
1508 (remote_insert_watchpoint, remote_remove_watchpoint)
1509 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1510 these declarations.
1511
87193939
MC
15122003-08-20 Michael Chastain <mec@shout.net>
1513
1514 * defs.h (ENUM_BITFIELD): New macro.
1515 * symtab.h (ENUM_BITFIELD): Use it.
1516 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1517
062103ba
SA
15182003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1519
1520 * MAINTAINERS (write after approval): Add myself.
1521
8b148df9
AC
15222003-08-18 Andrew Cagney <cagney@redhat.com>
1523
1524 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1525 * gdbarch.h, gdbarch.c: Re-generate.
1526 * infcall.c (call_function_by_hand): Adjust the SP by
1527 frame_red_zone_size before allocating any stack space.
1528 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1529 * x86-64-tdep.c (x86_64_frame_align): New function.
1530 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1531
1532 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1533 Remove code adjusting SP so that it skips over the Red Zone.
1534
954a4db8
MK
15352003-08-18 Mark Kettenis <kettenis@gnu.org>
1536
1537 * NEWS (New native configurations): Mention FreeBSD/amd64.
1538
1a241548
AC
15392003-08-18 Andrew Cagney <cagney@redhat.com>
1540
1541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1542 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1543 "m68k_frame_p".
1544 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1545
f82b2acd
MK
15462003-08-18 Mark Kettenis <kettenis@gnu.org>
1547
1548 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1549
4056d258
ML
15502003-08-18 Michal Ludvig <mludvig@suse.cz>
1551
1552 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1553 Define.
1554 * i386-linux-nat.c: Include "linux-nat.h".
1555 (child_post_startup_inferior): New function.
1556
99ab4326
MK
15572003-08-18 Mark Kettenis <kettenis@gnu.org>
1558
1559 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1560 at the start of a frameless function. This probably fixes PR
1561 backtrace/1338.
1562
c8d5f0d6
MC
15632003-08-17 Michael Chastain <mec@shout.net>
1564
1565 * symfile.c (find_sym_fns): Remove special case for apollo target.
1566
9016a515
DJ
15672003-08-17 Daniel Jacobowitz <drow@mvista.com>
1568
1569 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1570 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1571 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1572 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1573 (linux_supports_tracevforkdone): New function.
1574 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1575 TRACEVFORKDONE.
1576 (child_follow_fork): Handle vfork.
1577 (linux_handle_extended_wait): Likewise. Also handle exec.
1578 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1579 * NEWS: Mention fork tracing.
1580
c538c11c
DJ
15812003-08-17 Daniel Jacobowitz <drow@mvista.com>
1582
1583 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1584
4de4c07c
DJ
15852003-08-17 Daniel Jacobowitz <drow@mvista.com>
1586
1587 * Makefile.in (i386-linux-nat.o): Update dependencies.
1588 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1589 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1590 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1591 * i386-linux-nat.c: Include "linux-nat.h".
1592 (child_post_startup_inferior): New function.
1593 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1594 * infptrace.c (kill_inferior): Wrap in #ifdef.
1595 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1596 attaching to each LWP.
1597 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1598 (init_lin_lwp_ops): Fill in some more operations.
1599 * linux-nat.h (linux_enable_event_reporting)
1600 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1601 prototypes.
1602 * linux-nat.c (linux_enable_event_reporting): New function.
1603 (child_post_attach, linux_child_post_startup_inferior)
1604 (child_post_startup_inferior, child_follow_fork)
1605 (linux_handle_extended_wait, kill_inferior): New functions.
1606
7996bcec
AC
16072003-08-16 Andrew Cagney <cagney@redhat.com>
1608
1609 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1610 * gdbarch.h, gdbarch.c: Re-generate.
1611
3d48a7a0
MK
16122003-08-16 Mark Kettenis <kettenis@gnu.org>
1613
1614 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1615
7989c619
AC
16162003-08-16 Andrew Cagney <cagney@redhat.com>
1617
1618 * NEWS: Mention that "set prompt-escape-char" was deleted.
1619 * top.c (get_prompt_1): Delete function.
1620 (gdb_prompt_escape):
1621 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1622 prompt-escape-char" command.
1623 (MAX_PROMPT_SIZE): Delete macro.
1624 (get_prompt): Simplify, do not call get_prompt_1.
1625
07978cd8
AC
16262003-08-16 Andrew Cagney <cagney@redhat.com>
1627
1628 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1629 -Werror. -Wformat-nonliteral problems.
1630
3ff7cf9e
JB
16312003-08-15 J. Brobecker <brobecker@gnat.com>
1632
1633 Further multiarching work mostly for hppa64-*-hpux11:
1634 * hppa-tdep.h: New file.
1635 * hppa-tdep.c: #include hppa-tdep.c.
1636 (hppa32_num_regs): Renamed from hppa_num_regs.
1637 (hppa64_num_regs): New constant.
1638 (hppa64_call_dummy_breakpoint_offset): New constant.
1639 (hppa32_call_dummy_length): New constant.
1640 (hppa64_call_dummy_length): New constant.
1641 (hppa32_stack_align): Make name 32bit explicit.
1642 (hppa32_register_virtual_type): Likewise.
1643 (hppa32_extract_return_value): Likewise.
1644 (hppa32_use_struct_convention): Likewise.
1645 (hppa32_store_return_value): Likewise.
1646 (hppa64_register_virtual_type): New function.
1647 (hppa64_extract_return_value): New function.
1648 (hppa64_use_struct_convention): New function.
1649 (hppa64_store_return_value): New function.
1650 (hppa_frame_locals_address): Remove declaration, function does
1651 not exist anymore.
1652 (hppa_register_byte): Add support for PA64 ABI.
1653 (hppa_gdbarch_init): Add support for PA64 ABI.
1654 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1655 Make name 32bit explicit.
1656 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1657 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1658 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1659 (hppa64_hpux_frame_base_before_sigtramp): New function.
1660 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1661 * config/pa/tm-hppa64.h: Remove macros that are no longer
1662 necessary now that the gdbarch vector is properly setup.
1663 Transform some macros into function calls. Some minor cleanup.
1664 * config/pa/tm-hppah.h: Update function calls in macros
1665 following the function renaming in hppa-hpux-tdep.c.
1666 * Makefile.in (hppa_tdep_h): New variable.
1667 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1668
5d05ca6d
MS
16692003-08-14 Michael Snyder <msnyder@redhat.com>
1670
1671 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1672
37ba2569
JB
16732003-08-13 J. Brobecker <brobecker@gnat.com>
1674
1675 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1676 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1677 routine.
1678
aed7f26a
MS
16792003-08-13 Michael Snyder <msnyder@redhat.com>
1680
1681 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1682 (frv_saved_pc_after_call): Use deprecated ftype.
1683 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1684 (frv_remote_translate_xfer_address): Remove.
1685 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1686
752d4ac1
JB
16872003-08-13 J. Brobecker <brobecker@gnat.com>
1688
1689 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1690 initialization after the common gdbarch initialization, not before.
1691
1426ac1d
JB
16922003-08-13 J. Brobecker <brobecker@gnat.com>
1693
1694 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1695 (ADDR_BITS_REMOVE): Remove, redundant.
1696
b6fbdd1d
JB
16972003-08-13 J. Brobecker <brobecker@gnat.com>
1698
1699 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1700 gdbarch method to clear the 2 low bits of text addresses.
1701
44160db3
AC
17022003-08-12 Andrew Cagney <cagney@redhat.com>
1703
1704 * Makefile.in (dsrec.o): Update dependencies.
1705 * dsrec.c: Include "gdb_assert.h".
1706 (make_srec): Use snprintf instead of sprintf, use a literal format
1707 string.
1708
bcf7d3ca
AC
17092003-08-12 Andrew Cagney <cagney@redhat.com>
1710
1711 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1712 FRAME_OBSTACK_ZALLOC.
1713
49ed40de
KB
17142003-08-12 Kevin Buettner <kevinb@redhat.com>
1715
1716 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1717 SSE registers.
1718
b246147c
MK
17192003-08-10 Mark Kettenis <kettenis@gnu.org>
1720
1721 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1722 amd64fbsd_sc_reg_offset): Add extern declarations.
1723 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1724 declarations.
1725
d95fdc0d
BE
17262003-08-11 Ben Elliston <bje@wasabisystems.com>
1727
1728 * MAINTAINERS (write after approval): Update my mail address.
1729
cf6a0e73
AC
17302003-08-10 Andrew Cagney <cagney@redhat.com>
1731
1732 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1733
f837910f
MK
17342003-08-10 Mark Kettenis <kettenis@gnu.org>
1735
e2dbbd2d
MK
1736 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1737 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1738 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1739 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1740 i386bsd_sc_reg_offset): Add extern declarations.
1741 * i386obsd-nat.c: Include "i386-tdep.h"
1742 (_initialize_i386obsd_nat): Remove extern declarations.
1743 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1744 declarations.
1745 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1746 declarations.
1747
f837910f
MK
1748 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1749 instead of frame_read_register.
1750 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1751 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1752 SP_REGNUM.
1753 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1754 instead of frame_unwind_unsigned_register. Use
1755 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1756 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1757 instead of read_register. Use builtin_type_void_data_ptr instead
1758 of builtin_type_void_func_ptr when extracting the address of the
1759 jmp_buf.
1760 (i386_extract_return_value, i386_store_return_value,
1761 i386_pseudo_register_read, i386_pseudo_register_write): Use
1762 register_size instead REGISTER_RAW_SIZE.
1763
edcf254d
AC
17642003-08-10 Andrew Cagney <cagney@redhat.com>
1765
1766 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1767 sprintf. Make "name" constant.
1768
26604a34
MK
17692003-08-10 Mark Kettenis <kettenis@gnu.org>
1770
192285c6
MK
1771 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1772 instead of frame_read_register.
f837910f
MK
1773 (i387_print_float_info): Use get_frame_register and
1774 get_frame_register_unsigned instead of frame_register_read.
192285c6 1775
f0925262
MK
1776 * i386fbsd-nat.c: Include "i386-tdep.h".
1777 (child_resume): Make `eflags' an ULONGEST. Use
1778 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1779 instead of register_read and register_write.
1780
a144416f
MK
1781 * i386bsd-nat.c (fetch_inferior_registers,
1782 store_inferior_registers): Don't use && at the end of a line.
1783 (_initialize_i386bsd_nat): Fix typo.
1784
fec74868
MK
1785 * frame.c (_initialize_frame): Add missing backslash.
1786
87232496
MK
1787 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1788 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1789 and supply_register instead of manipulating the register buffer
1790 directly.
1791
c9b9de0b
MK
1792 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1793 * config/i386/nm-i386sol2.h
1794 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1795
26604a34
MK
1796 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1797 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1798 instructions that GCC likes to mingle into the prologue. Fixes
1799 gdb/1253 and gdb/1255.
1800
25d29d70
AC
18012003-08-09 Andrew Cagney <cagney@redhat.com>
1802
1803 Fix GDB PR cli/926.
1804 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1805 * command.h (add_setshow_uinteger_cmd): Declare.
1806 * frame.c (set_backtrace_cmd): New function.
1807 (show_backtrace_cmd): New function.
1808 * frame.c (_initialize_frame): Replace "set/show
1809 backtrace-below-main" with "set/show backtrace past-main". Add
1810 command "set/show backtrace limit".
1811 (backtrace_past_main): Rename "backtrace_below_main".
1812 (backtrace_limit): New variable.
1813 (get_prev_frame): Update. Check the backtrace_limit.
1814
9ebf4acf
AC
18152003-08-09 Andrew Cagney <cagney@redhat.com>
1816
1817 * defs.h (xstrprintf): Declare.
1818 * utils.c (xstrprintf): New function.
1819 * breakpoint.c (insert_breakpoints): Replace sprintf and
1820 non-literal format strings, with xstrprintf and cleanups.
1821 (delete_breakpoint,breakpoint_re_set): Ditto.
1822 (commands_command, insert_breakpoints): Ditto.
1823 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1824 (break_at_finish_command_1): Ditto.
1825
3771659b
AC
18262003-08-09 Andrew Cagney <cagney@redhat.com>
1827
1828 * MAINTAINERS (language support): List Adam Fedor as Objective C
1829 maintainer.
1830
b4263afa
JB
18312003-08-08 J. Brobecker <brobecker@gnat.com>
1832
1833 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1834 are now multiarched.
1835
d84defb1
JB
18362003-08-08 J. Brobecker <brobecker@gnat.com>
1837
1838 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1839 longer necessary now that hppa64 is partially multiarch'ed.
1840
f786f615
AC
18412003-08-08 Andrew Cagney <cagney@redhat.com>
1842
1843 * interps.c (interp_set): Check for a NULL "old_interp".
1844
c938e9b0
L
18452003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1846
1847 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1848 (install-only): Support DESTDIR.
1849 (uninstall): Likewise.
1850 (install-gdbtk): Likewise.
1851
9a146a11
EZ
18522003-08-08 Elena Zannoni <ezannoni@redhat.com>
1853
1854 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1855 contains something meaningful at all times.
1856
1857Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1858
62599e99 1859 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1860
56296155
BC
1861Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1862
62599e99 1863 * MAINTAINERS (write after approval): Added self.
56296155 1864
9710e734
AC
18652003-08-07 Andrew Cagney <cagney@redhat.com>
1866
1867 * inferior.h (AT_SYMBOL): Define.
1868 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1869 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1870 * mips-tdep.c (mips_call_dummy_address): Delete function.
1871 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1872 set call_dummy_address.
1873
98b3ab73
AC
18742003-08-07 Andrew Cagney <cagney@redhat.com>
1875
1876 * language.c (op_error): Delete function.
1877 (binop_type_check): Delete function.
1878 * language.h (type_op_error, range_op_error): Delete macros.
1879 (op_error): Delete declaration.
1880
2fcf52f0
AC
18812003-08-07 Andrew Cagney <cagney@redhat.com>
1882
1883 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1884
abd4220e 18852003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1886
abd4220e 1887 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1888 (x86_64_push_arguments): Skip the red zone.
abd4220e 1889
9dd5f34f
AC
18902003-08-05 Andrew Cagney <cagney@redhat.com>
1891
1892 * reggroups.c (reggroup_next): Check for the final entry.
1893
e5e78edc
AC
18942003-08-04 Andrew Cagney <cagney@redhat.com>
1895
ab4e3d93
AC
1896 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1897 * cli/cli-script.c (define_command): Call query directly, instead
1898 of passing it a buffer.
1899 * ocd.c (ocd_error): Pass error a constant format string.
1900 * remote-mips.c (mips_error): Use fputs_filtered.
1901
1062ca82
AC
1902 * solib-svr4.c (_initialize_svr4_solib): Update
1903 register_gdbarch_data call.
1904 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1905
fcc1c85c
AC
1906 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1907 (register_gdbarch_data): Delete "free" parameter. Update
1908 comments.
1909 * gdbarch.h, gdbarch.c: Re-generate.
1910 * reggroups.c (_initialize_reggroup): Update.
1911 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1912 * frame-base.c (_initialize_frame_base): Update.
1913 * frame-unwind.c (_initialize_frame_unwind): Update.
1914 * user-regs.c (_initialize_user_regs): Update.
1915 * remote.c (_initialize_remote): Update.
1916 * regcache.c (_initialize_regcache): Update.
1917
116f06ea
AC
1918 * regcache.c (xfree_regcache_descr): Delete function.
1919 (_initialize_regcache): Update call to register_gdbarch_data.
1920 (init_regcache_descr, init_legacy_regcache_descr): Use
1921 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1922
e5e78edc
AC
1923 * remote.c (free_remote_state): Delete function.
1924 (_initialize_remote): Update register_gdbarch_data.
1925 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1926 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1927
6c7d17ba
AC
19282003-08-04 Andrew Cagney <cagney@redhat.com>
1929
1930 * reggroups.c (struct reggroup_el): Define.
1931 (struct reggroups): Delete field "nr_group". Replace array
1932 "group" with a "first" to "last" linked list.
1933 (reggroups_init): Update. Allocate using gdbarch's obstack.
1934 (reggroups_free): Delete function.
1935 (add_group): Update. Add "el" parameter.
1936 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1937 (default_groups): Update.
1938 (reggroup_next): Replace reggroups.
1939 (reggroups_dump): Update.
1940 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1941 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1942 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1943
89b7795b
DJ
19442003-08-04 Daniel Jacobowitz <drow@mvista.com>
1945
1946 * Makefile.in (tui-interp.o): Update dependencies.
1947
306d9ac5
DC
19482003-08-04 David Carlton <carlton@kealia.com>
1949
1950 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1951 to internal_error call.
1952 * source.c (forward_search_command): Add "%s" format argument.
1953 (reverse_search_command): Ditto.
1954 * top.c (quit_confirm): Ditto.
1955 * cli/cli-setshow.c (do_setshow_command): Ditto.
1956 * cp-valprint.c (cp_print_class_method): Replace
1957 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1958 (cp_print_class_member): Ditto.
1959 * event-top.c (command_line_handler): Ditto.
1960 * linux-proc.c (linux_info_proc_cmd): Ditto.
1961 * p-typeprint.c (pascal_type_print_base): Ditto.
1962 * p-valprint.c (pascal_object_print_class_method): Ditto.
1963 (pascal_object_print_class_member): Ditto.
1964 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1965 * remote.c (remote_cisco_section_offsets): Ditto.
1966 * top.c (command_line_input): Ditto.
1967 * utils.c (vwarning,error_stream,quit): Ditto.
1968 * valprint.c (print_floating,print_binary_chars)
1969 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1970
57bfe177
AC
19712003-08-04 Andrew Cagney <cagney@redhat.com>
1972
1973 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1974
e546b999
AC
19752003-08-02 Andrew Cagney <cagney@redhat.com>
1976
1977 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1978 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1979 amd64fbsd-nat.c.
1980
91092ee5
AC
19812003-08-02 Andrew Cagney <cagney@redhat.com>
1982
1983 * Makefile.in: Update all dependencies and definitions.
1984
889f28e2
AF
19852003-08-02 Adam Fedor <fedor@gnu.org>
1986
1987 * linespec.c (is_objc_method_format): New function
1988 (decode_line_1, locate_first_half): Use it.
1989 Fixes PR objc/1298
1990
880bc914
AC
19912003-08-01 Andrew Cagney <cagney@redhat.com>
1992
1993 * NEWS: Mention that m32r is multi-arch.
1994 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1995 * configure.tgt: Recognize m32r-*-*.
1996 * config/m32r/tm-m32r.h: Delete file.
1997 * config/m32r/m32r.mt: New file.
1998 * m32r-rom.c (m32r_upload_command): Use hostent only when
1999 gethostname succeeds, in order to avoid a compilation
2000 warning.
2001 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2002 compiler warning.
2003
19f59343
MS
20042003-08-01 Michael Snyder <msnyder@redhat.com>
2005
2006 * sh-tdep.c (sh_frame_align): New gdbarch method.
2007 (sh_gdbarch_init): Set up frame_align method.
2008
4e7d7511
MS
20092003-07-31 Michael Snyder <msnyder@redhat.com>
2010
2011 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2012 which is already covered by the new frames infrastructure.
2013
63022984
AC
20142003-07-31 Andrew Cagney <cagney@redhat.com>
2015
2016 * user-regs.c (struct user_reg): Add "next" link.
2017 (struct user_regs): Replace "user" with "first" and "last" links.
2018 (append_user_reg): Add pre-allocated "reg" parameter.
2019 (builtin_user_regs): Provide initial value for "last".
2020 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2021 (user_regs_init): Allocate memory from the gdbarch obstack.
2022 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2023 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2024 linked list.
2025 (usernum_to_user_reg): New function.
2026 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2027 (value_of_user_reg): Use usernum_to_user_reg.
2028 (user_regs_free): Delete function.
2029 (_initialize_user_regs): Update register_gdbarch_data call.
2030
7cf6e574
DJ
20312003-07-31 Daniel Jacobowitz <drow@mvista.com>
2032
2033 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2034
c48a845b
MS
20352003-07-30 Michael Snyder <msnyder@redhat.com>
2036
4e7d7511 2037 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2038 * infcall.c (call_function_by_hand): Pass struct_addr to
2039 value_being_returned.
2040 * infcmd.c (print_return_value): Pass zero as struct_addr.
2041 * values.c (value_being_returned): If struct_addr is passed,
2042 use it instead of trying to recover it from the inferior.
2043
f0d8db19
KB
20442003-07-30 Kevin Buettner <kevinb@redhat.com>
2045
2046 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2047 the prologue analyzer won't need to attempt to extract the pc
2048 value from the woefully incomplete dummy frame.
2049 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2050 possible. Disable code which modifies the frame.
2051
e5c113a1
AC
20522003-07-28 Andrew Cagney <cagney@redhat.com>
2053
2054 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2055 to level 2.
2056 (annotate_breakpoints_table, annotate_record): Ditto.
2057 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2058 (annotate_field_name_end, annotate_field_value): Ditto.
2059 (annotate_field_end, annotate_frame_source_begin): Ditto.
2060 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2061 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2062 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2063 (annotate_frame_address_end, annotate_frame_address): Ditto.
2064 (annotate_frame_args, annotate_frame_end): Ditto.
2065 (annotate_frame_where, annotate_arg_begin): Ditto.
2066 (annotate_arg_name_end, annotate_arg_value): Ditto.
2067 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2068 (annotate_function_call, annotate_signal_name): Ditto.
2069 (annotate_signal_string, annotate_signal_name_end): Ditto.
2070 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2071 (annotate_value_begin, annotate_value_history_value): Ditto.
2072 (annotate_value_history_end, annotate_value_end): Ditto.
2073 (annotate_display_begin, annotate_display_number_end): Ditto.
2074 (annotate_display_format, annotate_display_expression): Ditto.
2075 (annotate_display_expression_end, annotate_display_value): Ditto.
2076 (annotate_display_end, annotate_array_section_begin): Ditto.
2077 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2078 (annotate_elt, annotate_array_section_end): Ditto.
2079
bb1db049
AC
20802003-07-28 Andrew Cagney <cagney@redhat.com>
2081
2082 * regcache.c (struct regcache_descr): Update comments on
2083 nr_raw_registers.
2084 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2085 sizeof_raw_register_valid_p.
2086 (init_regcache_descr): Set nr_raw_registers and
2087 sizeof_raw_register_valid_p before calling
2088 init_legacy_regcache_descr.
2089
20e6603c
AC
20902003-07-28 Andrew Cagney <cagney@redhat.com>
2091
2092 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2093 MOD NUM_REGS.
2094
db742940
DJ
20952003-07-28 Daniel Jacobowitz <drow@mvista.com>
2096
2097 * thread.c (info_threads_command): Use get_selected_frame ().
2098 Check that there is at least one non-sentinel frame.
2099
ce7f4371
SC
21002003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2101
2102 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2103 (m68hc11_pop_frame): Remove.
2104 (m68hc11_frame_saved_pc): Remove.
2105 (m68hc11_frame_chain): Remove.
2106 (m68hc11_frame_init_saved_regs): Remove.
2107 (m68hc11_init_extra_frame_info): Remove.
2108 (m68hc11_store_struct_return): Remove.
2109 (m68hc11_saved_pc_after_call): Remove.
2110
1ea653ae
SC
21112003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2112
2113 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2114 frame unwind information.
2115 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2116 and adapted for frame unwinding.
2117 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2118 (m68hc11_unwind_pc): New function.
2119 (m68hc11_frame_unwind_cache): New function to analyze frames.
2120 (m68hc11_frame_this_id): New function to create new frame struct.
2121 (m68hc11_frame_prev_register): New function to unwind a register from
2122 the frame.
2123 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2124 (m68hc11_frame_p): New function for the above.
2125 (m68hc11_frame_base_address): New function to return fp of frame.
2126 (m68hc11_frame_args_address): Update for frame.
2127 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2128 (m68hc11_unwind_sp): New function.
2129 (m68hc11_unwind_dummy_id): New function.
2130 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2131 calls.
2132
c8a7f6ac
SC
21332003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2134
2135 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2136 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2137 when we are beyond the current pc.
2138
3dc990bf
SC
21392003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2140
2141 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2142 from m68hc11_push_arguments.
2143 (m68hc11_push_arguments): Remove.
2144 (m68hc11_push_return_address): Remove.
2145 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2146 handlers; remove deprecated_extra_stack_alignment_needed.
2147
222e5d1d
AC
21482003-07-27 Andrew Cagney <cagney@redhat.com>
2149
2150 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2151 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2152 REAL_PC and not the pointer.
2153 * hppa-hpux-tdep.c: Include frame.h
2154
a7e9a47e
AC
21552003-07-27 Andrew Cagney <cagney@redhat.com>
2156
2157 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2158 GDB_MULTI_ACH_PARTIAL.
2159
7e3dd49e
AC
21602003-07-27 Andrew Cagney <cagney@redhat.com>
2161
2162 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2163 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2164 operator at start and not end of line.
2165 (decode_prologue): Ditto.
2166 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2167 frame_unwind_register_unsigned instead of
2168 frame_unwind_unsigned_register.
2169 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2170 read_register.
2171 (m32r_push_dummy_call): Use register_size instead of
2172 REGISTER_RAW_SIZE.
2173 (m32r_frame_sniffer): Replace m32r_frame_p.
2174 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2175 * m32r-rom.c (report_transfer_performance): Delete extern
2176 declaration.
2177 (m32r_load, m32r_upload_command): Use print_transfer_performance
2178 instead of report_transfer_performance.
2179 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2180 / add_show_from_set.
2181
0880807f
AC
21822003-07-26 Andrew Cagney <cagney@redhat.com>
2183
2184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2185 store_return_value and extract_struct_value_address.
2186
64ae9269
DJ
21872003-07-26 Daniel Jacobowitz <drow@mvista.com>
2188
2189 PR c++/1267
2190 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2191 NULL, default to the section containing PC.
2192
e286caf2
SC
21932003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2194
2195 * NEWS: Mention "regs" deprecated for m68hc11 too.
2196
2197 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2198 (m68hc11_print_register): New function to print out one register.
2199 (m68hc11_print_registers_info): New function to print registers.
2200 (show_regs): Deprecate and use the above.
2201 (m68hc11_gdbarch_init): Install the print_registers_info.
2202
705b278b
JJ
22032003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2204
2205 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2206 that we have a SIGTRAP before returning non-zero.
2207
63cd4198
EZ
22082003-07-23 Michal Ludvig <mludvig@suse.cz>
2209 Elena Zannoni <ezannoni@redhat.com>
2210
2211 * linespec.c (decode_line_2): Avoid crash if
2212 find_function_start_sal() returns empty record.
2213
6926787d
AS
22142003-07-23 Andreas Schwab <schwab@suse.de>
2215
2216 * ia64-tdep.c (ia64_print_insn): New function.
2217 (ia64_gdbarch_init): Set print_insn to it.
2218 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2219 deprecated_tm_print_insn_info.
2220
708cc1b6
MS
22212003-07-22 Michael Snyder <msnyder@redhat.com>
2222
2223 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2224 handle 8-bit returns (long long).
2225 (h8300h_extract_return_value): Ditto.
2226 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2227
aebd7893
AC
22282003-07-22 Andrew Cagney <cagney@redhat.com>
2229
2230 * gdbarch.c Include "gdb_obstack.h".
2231 (struct gdbarch): Add an "obstack".
2232 (alloc_gdbarch_data): Allocate the gdbarch data using
2233 GDBARCH_OBSTACK_CALLOC.
2234 (free_gdbarch_data): Delete function.
2235 (gdbarch_obstack_zalloc): New function.
2236 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2237 Assert that the architecture is not initialized.
2238 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2239 vector from the obstack.
2240 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2241 architecture obstack.
2242 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2243 (set_gdbarch_data): Assert that the data is not initialized.
2244 (struct gdbarch_data): Delete member "free".
2245 (register_gdbarch_data): Do not initialize "free".
2246 * gdbarch.h, gdbarch.c: Re-generate.
2247
153721e6
AC
22482003-07-22 Andrew Cagney <cagney@redhat.com>
2249
2250 * configure.in (build_warnings): Add -Wformat-nonliteral.
2251 * configure: Re-generate.
2252
c193f044 22532003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2254
2255 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2256
c3228f12
EZ
22572003-07-22 Elena Zannoni <ezannoni@redhat.com>
2258
2259 * findvar.c (read_var_value): Remove case for thread local storage
2260 variables. It is now entirely handled by the dwarf2 location
2261 expression code.
2262 * printcmd.c (address_info): Ditto.
2263 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2264 enumeration value.
2265 (struct symbol): Remove objfile field, which was used by
2266 LOC_THREAD_LOCAL_STATIC only.
2267 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2268 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2269 usage of objfile pointer.
2270 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2271 thread local variables.
2272 Add include of objfiles.h.
2273 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2274 storage variables.
2275 * Makefile.in (dwarf2loc.o): Update dependencies.
2276
aef9bcd2
AC
22772003-07-22 Andrew Cagney <cagney@redhat.com>
2278
2279 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2280 get_frame_base.
2281 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2282 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2283 (struct value): Add opaque declaration.
2284 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2285
d95a8903
AC
22862003-07-21 Andrew Cagney <cagney@redhat.com>
2287
2288 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2289 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2290
4db73d49
SC
22912003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2292
2293 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2294 regcache_cooked_read_unsigned instead of read_register.
2295 (m68hc11_saved_pc_after_call): Likewise.
2296 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2297 instead of write_register.
2298 (m68hc11_register_type): New function.
2299 (m68hc11_register_virtual_type): Remove.
2300 (m68hc11_store_return_value): Convert to use the regcache.
2301 (m68hc11_extract_struct_value_address): Likewise.
2302 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2303 m68hc11_register_type; undeprecate store_return_value and
2304 extract_struct_value_address.
2305
ef2b8fcd
SC
23062003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2307
2308 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2309 and translate to use regcache.
2310 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2311
625b0b97
AC
23122003-07-18 Andrew Cagney <cagney@redhat.com>
2313
2314 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2315 * gdbarch.h, gdbarch.c: Re-generate.
2316 * i386-tdep.c (i386_gdbarch_init): Do not set
2317 DWARF2_BUILD_FRAME_INFO.
2318 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2319 unconditionally.
2320 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2321 DWARF2_BUILD_FRAME_INFO.
2322
22b0d388
AC
23232003-07-18 Andrew Cagney <cagney@redhat.com>
2324
2325 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2326 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2327
1ce5d6dd
AC
23282003-07-18 Andrew Cagney <cagney@redhat.com>
2329
2330 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2331 frame_unwind_address_in_block, instead of frame_pc_unwind.
2332 (dwarf2_frame_cache): Ditto.
2333
e6e5e94c
AC
23342003-07-18 Andrew Cagney <cagney@redhat.com>
2335
2336 * user-regs.h (struct gdbarch): Declare opaque.
2337 * ui-out.h (struct ui_file): Declare opaque.
2338 * dwarf2-frame.h (struct frame_info): Declare opaque.
2339
5483d879
KW
23402003-07-18 Kris Warkentin <kewarken@qnx.com>
2341
2342 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2343 #include "...".
2344 (procfs_meminfo): Change strerror to safe_strerror.
2345 (procfs_can_run): Remove K&R badness.
2346
278a7cf7
MS
23472003-07-17 Michael Snyder <msnyder@redhat.com>
2348
2349 * remote-sim.c: Comment typo fix.
2350
606e3b82
AC
23512003-07-17 Andrew Cagney <cagney@redhat.com>
2352
2353 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2354 configure.
2355 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2356 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2357 GDB_MULTI_ARCH_PARTIAL.
2358
c43af07c
EZ
23592003-07-17 Elena Zannoni <ezannoni@redhat.com>
2360
2361 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2362 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2363 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2364
3b85b0f1
TR
23652003-07-16 Theodore A. Roth <troth@openavr.org>
2366
2367 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2368 found.
2369 (avr_frame_unwind_cache): Don't unwind FP for main.
2370 Update a comment.
2371 Save the computed prev_sp.
2372 (avr_saved_regs_unwinder): Remove function.
2373 (avr_frame_prev_register): Use PC unwind logic from
2374 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2375
336d1bba
AC
23762003-07-16 Andrew Cagney <cagney@redhat.com>
2377
2378 * frame-base.h (frame_base_p_ftype): Delete definition.
2379 (frame_base_append_predicate): Delete declaration.
2380 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2381 (frame_unwind_append_predicate): Delete declaration.
2382 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2383 (append_predicate): Delete parameter "p".
2384 (frame_unwind_append_predicate): Delete function.
2385 (frame_unwind_append_sniffer): Update call to append_predicate.
2386 (frame_unwind_free): Delete function.
2387 (_initialize_frame_unwind): Pass NULL as "free" to
2388 register_gdbarch_data.
2389 (frame_unwind_init): Append the dummy_frame_sniffer.
2390 (frame_unwind_find_by_frame): Simplify.
2391 * frame-base.c (struct frame_base_table): Delete field "p".
2392 (append_predicate): Delete parameter "p".
2393 (frame_base_append_predicate): Delete function.
2394 (frame_base_append_sniffer): Update call to append_predicate.
2395 (frame_base_free): Delete function.
2396 (frame_base_find_by_frame): Simplify.
2397 (_initialize_frame_base): Pass NULL as "free" to
2398 register_gdbarch_data.
2399 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2400 (x86_64_sigtramp_frame_sniffer): Replace
2401 "x86_64_sigtramp_frame_p".
2402 (x86_64_init_abi): Set the frame unwind sniffers.
2403 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2404 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2405 (m68k_gdbarch_init): Set the frame unwind sniffers.
2406 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2407 "i386_sigtramp_frame_p".
2408 (i386_frame_sniffer): Replace "i386_frame_p".
2409 (i386_gdbarch_init): Set the frame unwind sniffers.
2410 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2411 (avr_gdbarch_init): Set the frame unwind sniffers.
2412 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2413 "alpha_sigtramp_frame_p"
2414 (alpha_heuristic_frame_sniffer): Replace
2415 "alpha_heuristic_frame_p".
2416 (alpha_gdbarch_init): Set the frame unwind sniffers.
2417 (alpha_dwarf2_init_abi): Ditto.
2418 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2419 "alpha_debug_frame_p".
2420 (alpha_mdebug_frame_base_sniffer): Replace
2421 "alpha_mdebug_frame_base_p".
2422 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2423 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2424 (d10v_gdbarch_init): Set the frame unwind sniffer.
2425 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2426 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2427 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2428 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2429 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2430 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2431
48db5a3c
CV
24322003-07-16 Michael Snyder <msnyder@redhat.com>
2433
2434 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2435 should go thru sh_dsp_register_sim_regno, else the dsp regs
2436 will not get the right values.
2437
24382003-07-16 Corinna Vinschen <vinschen@redhat.com>
2439
2440 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2441 deprecated_store_floating by call to store_typed_floating.
2442 (sh_sh4_register_convert_to_raw): Substitute call to
2443 deprecated_extract_floating by call to extract_typed_floating.
2444
24452003-07-16 Corinna Vinschen <vinschen@redhat.com>
2446
2447 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2448
24492003-07-16 Corinna Vinschen <vinschen@redhat.com>
2450
2451 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2452 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2453 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2454 as possible.
2455 (do_pseudo_register): Remove.
2456 (sh_push_dummy_code): New function.
2457 (sh64_store_struct_return): Rename from sh_store_struct_return.
2458 Only called for sh64 now.
2459 (sh_extract_struct_value_address): Regcache'ify.
2460 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2461 and accomodate new tasks.
2462 (sh64_push_return_address): Rename from sh_push_return_address.
2463 Only called for sh64 now.
2464 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2465 Regcache'ify.
2466 (sh3e_sh4_extract_return_value): Regcache'ify.
2467 (sh_default_store_return_value): Ditto.
2468 (sh3e_sh4_store_return_value): Ditto.
2469 (sh_default_register_byte): Remove.
2470 (sh_sh4_register_byte): Remove.
2471 (sh_default_register_raw_size): Remove.
2472 (sh_sh4_register_raw_size): Remove.
2473 (sh_register_virtual_size): Remove.
2474 (sh_sh3e_register_virtual_type): Remove.
2475 (sh_sh3e_register_type): New function.
2476 (sh_sh4_register_virtual_type): Remove.
2477 (sh_sh4_register_type): New function.
2478 (sh_default_register_virtual_type): Remove.
2479 (sh_default_register_type): New function.
2480 (do_fv_register_info): Add parameters to accomodate call from
2481 sh_print_registers_info.
2482 (do_dr_register_info): Ditto.
2483 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2484 Add parameters to accomodate call from sh_print_registers_info.
2485 (sh_do_fp_register): Ditto.
2486 (sh64_do_pseudo_register): Call do_dr_register_info,
2487 do_fv_register_info and sh_do_fp_register with default parameters.
2488 (sh_do_register): Add parameters to accomodate call from
2489 sh_print_registers_info.
2490 (sh_print_register): Ditto.
2491 (sh_print_registers_info): Rename from sh_do_registers_info.
2492 Add parameters to be used as gdbarch_print_registers_info
2493 implementation. Accomodate removed do_pseudo_register function
2494 pointer.
2495 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2496 function pointer. Call sh_print_register with default parameters.
2497 (sh64_do_registers_info): Call sh_print_registers_info instead of
2498 sh_do_registers_info.
2499 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2500 detection of deprecated vs. non-deprecated functionality.
2501 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2502 function pointer assignments by direct function calls.
2503
e8a89fe2
AC
25042003-07-15 Andrew Cagney <cagney@redhat.com>
2505
2506 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2507 (frame_register_unwind, create_new_frame): Ditto.
2508 (legacy_get_prev_frame, get_frame_type): Ditto.
2509 (get_frame_base_address): Use frame_base_find_by_frame.
2510 (get_frame_locals_address): Use frame_base_find_by_frame.
2511 (get_frame_args_address): Use frame_base_find_by_frame.
2512 * frame-base.h (frame_base_sniffer_ftype): Declare.
2513 (frame_base_append_sniffer): Declare.
2514 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2515 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2516 (frame_base_append_sniffer): New function.
2517 (frame_base_append_predicate): Add a NULL sniffer.
2518 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2519 (struct frame_base_table): Add "sniffer".
2520 (frame_base_free): Free the "sniffer" table.
2521 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2522 (frame_unwind_append_sniffer): Declare.
2523 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2524 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2525 (struct frame_unwind_table): Add "sniffer", delete "middle".
2526 (append_predicate): Add "sniffer" parameter, append the sniffer.
2527 (frame_unwind_init): Update append_predicate call.
2528 (frame_unwind_append_sniffer): New function.
2529 (frame_unwind_append_predicate): Update append_predicate call.
2530 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2531
0714963c
AC
25322003-07-15 Andrew Cagney <cagney@redhat.com>
2533
2534 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2535 before code inhibiting repeated unwind attempts. Add to
2536 commentary on that test's problems.
2537 * blockframe.c (inside_main_func): Look for "main" in the minimal
2538 symbol table.
2539 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2540 identical.
2541
d9170e22
AC
25422003-07-15 Andrew Cagney <cagney@redhat.com>
2543
2544 * complaints.c (struct explanation): Define.
2545 (struct complaints): Change type of "explanation" to "struct
2546 explanation".
2547 (symfile_explanations): Convert to a "struct explanation" table.
2548 (vcomplaint): Update.
2549
eba29c8c
ML
25502003-07-15 Michal Ludvig <mludvig@suse.cz>
2551
2552 * x86-64-linux-nat.c (regmap): Removed.
2553 (supply_gregset, fill_gregset): Call
2554 x86_64_linux_(fill,supply)_gregset functions.
2555 * x86-64-linux-tdep.c (USER_*): New defines.
2556 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2557 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2558 New functions.
2559 (fetch_core_registers): Ditto.
2560 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2561 * x86-64-linux-tdep.h: New file.
2562 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2563 and core-regset.o.
2564 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2565
68cc0bfb
MK
25662003-07-13 Mark Kettenis <kettenis@gnu.org>
2567
88a115f7
MK
2568 * x86-64-tdep.c (x86_64_store_return_value): Use
2569 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2570
68cc0bfb
MK
2571 * configure.host: Add x86_64-*-freebsd*.
2572 * configure.tgt: Add x86_64-*-freebsd*.
2573 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2574 * amd64fbsd-nat.c: New file.
2575 * amd64fbsd-tdep.c: New file.
2576 * config/i386/nm-fbsd64.h: New file.
2577 * config/i386/fbsd64.mh: New file.
2578 * config/i386/fbsd64.mt: New file.
2579
138e7be5
MK
25802003-07-11 Mark Kettenis <kettenis@gnu.org>
2581
2582 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2583 `sc_regs_offset' and `sc_fpregs_offset'.
2584 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2585 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2586 (alpha_sigtramp_register_address): Rewrite to use new members of
2587 `struct gdbarch_tdep'.
2588 (alpha_gdbarch_init): Initialize new members of struct
2589 gdbarch_tdep'.
2590 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2591 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2592 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2593 (alphafbsd_pc_in_sigtramp): Implement.
2594 (alphafbsd_sigtramp_offset): New function.
2595 (alphafbsd_sigcontext_addr): New function.
2596 (alphafbsd_init_abi): Initialize signal trampoline related members
2597 of `struct gdbarch_tdep'.
2598 (_initialize_alphafbsd_tdep): Add prototype.
2599
95303a68
TR
26002003-07-11 Theodore A. Roth <troth@openavr.org>
2601
ba292e4c
TR
2602 * Makefile.in (install-only): Quote sed expression when generating
2603 transformed_name.
95303a68 2604
6896c0c7
RH
26052003-07-11 Richard Henderson <rth@redhat.com>
2606
2607 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2608 * dwarf2-frame.c: Include complaints.h.
2609 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2610 variable initialization; return NULL on error.
2611 (decode_frame_entry): New.
2612
8edd5d01
AC
26132003-07-11 Andrew Cagney <cagney@redhat.com>
2614
c4a09524
AC
2615 * frame.h (frame_address_in_block): Delete declaration.
2616 * blockframe.c (frame_address_in_block): Delete function.
2617 (get_frame_block): Use get_frame_address_in_block.
2618 (block_innermost_frame): Ditto.
2619 * stack.c (print_frame, backtrace_command_1): Ditto.
2620
8edd5d01
AC
2621 * frame.h (get_frame_address_in_block): Declare.
2622 (frame_unwind_address_in_block): Declare.
2623 * frame.c (frame_unwind_address_in_block): New function.
2624 (get_frame_address_in_block): New function.
2625
f7968451
AC
26262003-07-10 Andrew Cagney <cagney@redhat.com>
2627
2628 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2629 pre-default. Note: re-generate has no effect.
2630
ae99b398
AC
26312003-07-10 Andrew Cagney <cagney@redhat.com>
2632
2633 * gdbarch.sh: When a variable, but not a function, compare against
2634 0. Fix problem in previous patch.
2635 * gdbarch.c: Re-generate.
2636
956ac328
AC
26372003-07-10 Andrew Cagney <cagney@redhat.com>
2638
2639 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2640 functions against NULL, not 0.
2641 * gdbarch.c: Re-generate.
2642
287c3240
FF
26432003-07-10 Fred Fish <fnf@ninemoons.com>
2644
2645 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2646 null string instead of a null pointer.
2647 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2648
32f63c4b
MS
26492003-07-09 Michael Snyder <msnyder@redhat.com>
2650
2651 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2652
402ecd56
MK
26532003-07-09 Mark Kettenis <kettenis@gnu.org>
2654
2655 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2656 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2657 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2658 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2659 * x86-64-tdep.c: ... from here.
2660
c481dac7
AS
26612003-07-09 Andreas Schwab <schwab@suse.de>
2662
2663 * m68k-tdep.h (enum struct_return): Define.
2664 (struct gdbarch_tdep): Add struct_return.
2665 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2666 bytes are padded to the right, not to the left. Pass struct value
2667 address in register %a1, not on stack.
2668 (m68k_use_struct_convention): New function.
2669 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2670 struct_return in tdep to pcc_struct_return.
2671 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2672 reg_struct_return.
2673
64176fa3
JB
26742003-07-09 Joel Brobecker <brobecker@gnat.com>
2675
2676 * somread.c (som_symfile_offsets): Fix compilation error.
2677
96a4ee76
AC
26782003-07-09 Andrew Cagney <cagney@redhat.com>
2679
2680 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2681 Add comments about the checks.
2682
1517c6d1
AC
26832003-07-08 Andrew Cagney <cagney@redhat.com>
2684
2685 * Makefile.in: Make dependency section headers consistent.
2686 (config_h): Move to $BUILD headers section.
2687 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2688 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2689 (ada-exp.tab.c): Move to YACC/LEX section.
2690 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2691 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2692
dc5dd1eb
KW
26932003-07-08 Kris Warkentin <kewarken@qnx.com>
2694
2695 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2696 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2697 of strerror with safe_strerror, use ISO C function definitions,
2698 and replace instances of sprintf with snprintf.
dc5dd1eb 2699
612dde91
AC
27002003-07-07 Andrew Cagney <cagney@redhat.com>
2701
2702 * frame.c (get_prev_frame): Enable check for identical frames.
2703 Update comments. Update error messages.
2704
492c11d3
JB
27052003-07-07 Joel Brobecker <brobecker@gnat.com>
2706
2707 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2708
376a5a49
JB
27092003-07-07 Joel Brobecker <brobecker@gnat.com>
2710
2711 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2712 sort_symtab_syms, no longer necessary.
2713
22b4a9ad
JB
27142003-07-07 Joel Brobecker <brobecker@gnat.com>
2715
2716 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2717
5bbcb741
JB
27182003-07-07 Joel Brobecker <brobecker@gnat.com>
2719
2720 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2721 (mips_register_byte): Likewise.
2722
c139e7d9
DJ
27232003-07-07 Daniel Jacobowitz <drow@mvista.com>
2724
2725 * Makefile.in (sparc_tdep_h): New.
2726 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2727 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2728 * sparc-linux-nat.c: Include "sparc-tdep.h".
2729 * sparc-nat.c: Likewise.
2730 * sparc-tdep.c: Likewise.
2731 * sparc64nbsd-nat.c: Likewise.
2732 * sparcnbsd-nat.c: Likewise.
2733 * sparcnbsd-tdep.c: Likewise.
2734 * sparc-tdep.h: New file.
2735 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2736 and sparc_npc_regnum.
2737
fd8f87c5
DJ
27382003-07-07 Daniel Jacobowitz <drow@mvista.com>
2739
2740 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2741 (mips_linux_cannot_store_register): List supported instead of
2742 unsupported registers.
2743
13adf674
DJ
27442003-07-07 Daniel Jacobowitz <drow@mvista.com>
2745
2746 * disasm.c (dump_insns): Separate instructions from addresses.
2747
8de307e0
AS
27482003-07-07 Andreas Schwab <schwab@suse.de>
2749
2750 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2751 dependencies.
2752 * m68k-tdep.c (NUM_FREGS): Delete.
2753 (SIG_PC_FP_OFFSET): Delete.
2754 (TARGET_M68K): Delete.
2755 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2756 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2757 P_MOVEL_SP, P_MOVEML_SP): Define.
2758 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2759 P_TRAP): Delete.
2760 (m68k_register_raw_size): Delete.
2761 (m68k_register_virtual_size): Delete.
2762 (m68k_register_type): Renamed from m68k_register_virtual_type and
2763 add gdbarch argument.
2764 (m68k_store_struct_return): Delete.
2765 (m68k_deprecated_extract_return_value): Delete.
2766 (m68k_deprecated_extract_struct_value_address): Delete.
2767 (m68k_frame_chain): Delete.
2768 (m68k_frame_saved_pc): Delete.
2769 (m68k_fix_call_dummy): Delete.
2770 (m68k_push_dummy_frame): Delete.
2771 (m68k_pop_frame): Delete.
2772 (m68k_extract_return_value): New function.
2773 (m68k_store_return_value): Rewrite using regcache.
2774 (m68k_extract_struct_value_address): Rewrite using regcache.
2775 (m68k_push_dummy_call): New function.
2776 (struct m68k_frame_cache): Define.
2777 (m68k_alloc_frame_cache): New function.
2778 (m68k_analyze_frame_setup): New function.
2779 (m68k_analyze_register_saves): New function.
2780 (m68k_analyze_prologue): New function.
2781 (m68k_skip_prologue): Rewrite using above functions.
2782 (m68k_unwind_pc): New function.
2783 (m68k_frame_cache): New function.
2784 (m68k_frame_this_id): New function.
2785 (m68k_frame_prev_register): New function.
2786 (m68k_frame_unwind): New variable.
2787 (m68k_frame_p): New function.
2788 (m68k_sigtramp_frame_cache): New function.
2789 (m68k_sigtramp_frame_this_id): New function.
2790 (m68k_sigtramp_frame_prev_register): New function.
2791 (m68k_sigtramp_frame_unwind): New variable.
2792 (m68k_sigtramp_frame_p): New function.
2793 (m68k_frame_base_address): New function.
2794 (m68k_frame_base): New function.
2795 (m68k_unwind_dummy_id): New function.
2796 (fill_gregset): Use regcache_collect.
2797 (fill_fpregset): Likewise.
2798 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2799 defined.
2800 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2801 deprecated_init_frame_pc, deprecated_store_struct_return,
2802 deprecated_extract_return_value, deprecated_store_return_value,
2803 deprecated_frame_chain, deprecated_frame_saved_pc,
2804 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2805 deprecated_register_virtual_size,
2806 deprecated_max_register_raw_size,
2807 deprecated_max_register_virtual_size,
2808 deprecated_register_virtual_type, deprecated_register_size,
2809 deprecated_register_byte, deprecated_register_bytes,
2810 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2811 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2812 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2813 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2814 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2815 deprecated_push_dummy_frame, deprecated_pop_frame,
2816 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2817 only if SYSCALL_TRAP is defined. Set extract_return_value,
2818 store_return_value, extract_struct_value_address, register_type,
2819 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2820 predicates.
2821 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2822 M68K_MAX_REGISTER_SIZE): Define.
2823 (struct m68k_sigtramp_info): Define.
2824 (struct gdbarch_tdep): Add get_sigtramp_info.
2825 * m68klinux-nat.c (fetch_register): Use register_size instead of
2826 REGISTER_RAW_SIZE. Don't put assignment in if.
2827 (store_register): Likewise.
2828 (fetch_inferior_registers): Likewise.
2829 (store_inferior_registers): Likewise.
2830 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2831 (m68k_linux_frame_saved_pc): Delete.
2832 (m68k_linux_sigcontext_reg_offset,
2833 m68k_linux_ucontext_reg_offset): Define.
2834 (m68k_linux_get_sigtramp_info): New function.
2835 (m68k_linux_extract_return_value): Rewrite using regcache.
2836 (m68k_linux_store_return_value): Likewise.
2837 (m68k_linux_extract_struct_value_address): Likewise.
2838 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2839 Don't set deprecated_frame_saved_pc,
2840 deprecated_extract_return_value, deprecated_store_return_value,
2841 deprecated_extract_struct_value_address. Set
2842 extract_return_value, store_return_value,
2843 extract_struct_value_address.
2844
eb8bc282
AC
28452003-07-07 Andrew Cagney <cagney@redhat.com>
2846
2847 * expprint.c: Include "user-regs.h" instead of "frame.h".
2848 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2849 frame_map_regnum_to_name.
2850 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2851 (frame_map_name_to_regnum): Simplify, call
2852 user_reg_map_name_to_regnum.
2853 (frame_map_regnum_to_name): Simplify, call
2854 user_reg_map_regnum_to_name.
2855 (frame_register_unwind): Update.
2856 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2857 (_initialize_frame_reg): Call user_reg_add_builtin.
2858 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2859 (value_of_register): Use value_of_user_reg.
2860 * eval.c (evaluate_subexp_standard): Update.
2861 * parse.c (write_dollar_variable): Update.
2862 * d10v-tdep.c (d10v_print_registers_info): Update.
2863 * infcmd.c (registers_info): Update.
2864 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2865 (builtin_regs_h): Delete macro.
2866 (user_regs_h): Define.
2867 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2868 (builtin-regs.o): Delete target.
2869 (user-regs.o): Specify dependencies.
2870 (expprint.o): Update dependencies.
2871 (findvar.o): Update dependencies.
2872 (frame.o): Update dependencies.
2873 (std-regs.o): Update dependencies.
2874
9f476a01
CF
28752003-07-06 Christopher Faylor <cgf@redhat.com>
2876
2877 * win32-nat.c (solib_symbols_add): Use one variable for all section
2878 address stuff. Pass variable rather than address of variable to
2879 safe_symbol_file_add.
2880
a731b831
AS
28812003-07-06 Andreas Schwab <schwab@suse.de>
2882
2883 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2884
9f83329d
JB
28852003-07-04 Joel Brobecker <brobecker@gnat.com>
2886
2887 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2888
27e28cc5
KW
28892003-07-04 Kris Warkentin <kewarken@qnx.com>
2890
2891 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2892
28932003-07-04 Kris Warkentin <kewarken@qnx.com>
2894
2895 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2896 * config/i386/nto.mh: New file.
2897 * config/i386/nm-nto.h: New file.
2898 * configure.host: Add i[3456]86-*-nto*.
2899
100f2e98
JB
29002003-07-03 Joel Brobecker <brobecker@gnat.com>
2901
2902 * remote-vx.c (vx_add_symbols): Fix compilation error.
2903
e23457df
AC
29042003-07-03 Andrew Cagney <cagney@redhat.com>
2905
2906 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2907 * gdbarch.h, gdbarch.c: Re-generate.
2908 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2909 (legacy_register_name): Declare.
2910 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2911 (REGISTER_NAME): Define.
2912 * sparc-tdep.c (legacy_register_name): New function.
2913 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2914 (REGISTER_NAME): Define.
2915 (hppa64_register_name): Declare.
2916 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2917 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2918 (hppa64_register_name): New function.
2919 (hppa_register_name): New function.
2920 * arch-utils.c (legacy_register_name): Delete.
2921 * arch-utils.h (legacy_register_name): Delete.
2922
38caaeec
DJ
29232003-07-03 Daniel Jacobowitz <drow@mvista.com>
2924
2925 * cli/cli-interp.c (cli_interpreter_resume): Update the
2926 cli_uiout's stream to gdb_stdout.
2927
dadd712e
AC
29282003-07-03 Andrew Cagney <cagney@redhat.com>
2929
2930 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2931 predicate.
2932 * gdbarch.h, gdbarch.c: Re-generate.
2933 * regcache.c (init_regcache_descr): Use legacy code when either
2934 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2935
c7f1390e
DJ
29362003-07-02 Daniel Jacobowitz <drow@mvista.com>
2937
2938 * NEWS: Move "set logging" entry into GDB 6.0 section.
2939
4bc8c588
JB
29402003-07-02 Jim Blandy <jimb@redhat.com>
2941
a9dd42f1
JB
2942 * s390-tdep.c (struct frame_extra_info): new member:
2943 'stack_bought_valid'.
2944 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2945 initialize fextra_info->stack_bought.
2946 (s390_frameless_function_invocation): Don't trust the value of
2947 fextra_info_ptr->stack_bought unless
2948 fextra_info->stack_bought_valid is set.
2949
4bc8c588
JB
2950 New S390 prologue analyzer.
2951 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2952 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2953 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2954 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2955 compute_x_addr, s390_on_stack, s390_store,
2956 s390_get_signal_frame_info): New functions.
2957 (S390_NUM_SPILL_SLOTS): New macro.
2958 (s390_get_frame_info): Rewritten.
2959 (is_arg_reg): Deleted.
2960
2961 Break out the decoding of S/390 instructions into separate
2962 functions, to make it more legible, and easier to check
2963 against the spec.
2964 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2965 is_rx, is_rxe): New functions.
2966 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2967 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2968 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2969 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2970 enums for opcode values. (Is this an improvement?)
2971
fd13a04a
AC
29722003-07-02 Andrew Cagney <cagney@redhat.com>
2973
2974 * i386-tdep.c: Revert change committed as part of trad-frame code
2975 below.
2976
3f8091c1
DJ
29772003-07-02 Daniel Jacobowitz <drow@mvista.com>
2978
2979 * breakpoint.c (insert_catchpoint): Make static.
2980
8dd5115e
AS
29812003-07-02 Andreas Schwab <schwab@suse.de>
2982
2983 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2984 former ia64_push_arguments and ia64_push_return_address, and use
2985 regcache functions instead of read/write_register.
2986 (ia64_gdbarch_init): Set push_dummy_call instead of
2987 deprecated_push_arguments and deprecated_push_return_address.
2988
a2229c23
AJ
29892003-07-01 Andreas Jaeger <aj@suse.de>
2990
2991 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2992 before the call.
2993 Set %rax only to number of SSE registers used.
2994
3b3850e8
AC
29952003-07-01 Andrew Cagney <cagney@redhat.com>
2996
2997 * trad-frame.h: Update comments, a -1 .addr is reserved.
2998 (trad_frame_value_p, trad_frame_addr_p): Declare.
2999 (trad_frame_reg_p): Declare.
3000 (trad_frame_set_value): Rename trad_frame_register_value.
3001 (trad_frame_set_unknown): Declare.
3002 * trad-frame.c (trad_frame_realreg_p): New function.
3003 (trad_frame_addr_p, trad_frame_value_p): New function.
3004 (trad_frame_set_unknown): New function.
3005 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3006 (trad_frame_prev_register): Use trad_frame_realreg_p,
3007 trad_frame_addr_p and trad_frame_value_p.
3008 (trad_frame_set_value): Rename trad_frame_register_value.
3009 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3010 and trad_frame_set_value.
a2229c23 3011
4d819d0e
JB
30122003-06-30 Jim Blandy <jimb@redhat.com>
3013
3014 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3015 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3016 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3017 for 16 registers, and then 32 more bytes.
3018 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3019 New macros.
3020 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3021 Move up in the file, since it's now used by is_simple_arg.
3022 (is_simple_arg): Don't assume registers are four bytes long.
3023 Exclude all double arguments. Extended floats are not simple
3024 args.
3025 (is_power_of_two): New function.
3026 (pass_by_copy_ref): Call is_power_of_two, and check that the
3027 length fits in a register, rather than listing all the acceptable
3028 sizes. Extended floats are not passed by reference.
3029 (s390_push_arguments): Don't assume registers are four bytes long.
3030 Reserve an argument register to point to the buffer for structures
3031 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3032 S390_STACK_FRAME_OVERHEAD.
3033
1ad828f1
AS
30342003-06-30 Andreas Schwab <schwab@suse.de>
3035
3036 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3037 format error message.
3038
39b00981
JB
30392003-06-30 Joel Brobecker <brobecker@gnat.com>
3040
3041 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3042
b2a7f303
DC
30432003-06-30 David Carlton <carlton@kealia.com>
3044
3045 Band-aid for PR c++/1245.
3046 * Makefile.in (cp-support.o): Depend on complaints_h.
3047 * cp-support.c: Include complaints.h. Add declaration for
3048 find_last_component.
3049 (cp_find_first_component): Separate code into
3050 cp_find_first_component_aux.
3051 (cp_find_first_component_aux): Call demangled_name_complaint.
3052 (demangled_name_complaint): New.
3053
a257b5bb
AC
30542003-06-30 Andrew Cagney <cagney@redhat.com>
3055
3056 * remote.c (remote_write_bytes): Explicitly compute and then use
3057 the payload size. Update comments to reflect. Fixes problem of
3058 GDB not sending small packets as found by Fred Fish.
3059
0a2cfde4
AC
30602003-06-30 Andrew Cagney <cagney@redhat.com>
3061
3062 * remote.c (remote_async_wait): Fix -Wformat problem.
3063
3fcb8548
AC
30642003-06-29 Andrew Cagney <cagney@redhat.com>
3065
3066 * remote.c (remote_wait): Call error, and not warning, when the
3067 packet is corrupt.
3068 (remote_async_wait): Ditto.
3069
9f9970a3
DJ
30702003-06-29 Daniel Jacobowitz <drow@mvista.com>
3071
3072 * sparc-tdep.c (sparc_y_regnum): Make external again.
3073
83a8ccca
DJ
30742003-06-29 Daniel Jacobowitz <drow@mvista.com>
3075
3076 * cli/cli-logging.c (pop_output_files): Add void to function
3077 definition.
3078
d2cf594a
AC
30792003-06-29 Andrew Cagney <cagney@redhat.com>
3080
3081 * frame.c (frame_register_unwind): Use unsigned char when dumping
3082 the buffer contents.
3083
0fac0b41
DJ
30842003-06-28 Daniel Jacobowitz <drow@mvista.com>
3085
3086 * cli/cli-logging.c: New file.
3087 * cli-out.c (struct ui_out_data): Add original_stream.
3088 (cli_redirect): New function.
3089 (cli_ui_out_impl): Add cli_redirect.
3090 (cli_out_new): Initialize original_stream.
3091 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3092 (uo_redirect, ui_out_redirect): New.
3093 * ui-out.h (struct ui_out_impl): Add redirect member.
3094 (redirect_ftype): New.
3095 (ui_out_redirect): Add prototype.
3096 * Makefile.in: Add rules for cli-logging.c.
3097 * NEWS: Mention "set logging".
3098
88a07d7c
EZ
30992003-06-27 Elena Zannoni <ezannoni@redhat.com>
3100
3101 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3102
4eb58876
AC
31032003-06-27 Andrew Cagney <cagney@redhat.com>
3104
3105 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3106 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3107 * avr-tdep.c (avr_call_dummy_address): Delete function.
3108 (avr_gdbarch_init): Do not set call_dummy_address.
3109
1549f619
EZ
31102003-06-27 Elena Zannoni <ezannoni@redhat.com>
3111
3112 * symfile.c (syms_from_objfile): Move variables to inner block.
3113 Move the checks for the non-mainline case a bit earlier to avoid
3114 doing some useless computations.
3115
3cb3398d
EZ
31162003-06-27 Elena Zannoni <ezannoni@redhat.com>
3117
3118 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3119
3799ccc6
EZ
31202003-06-26 Elena Zannoni <ezannoni@redhat.com>
3121
3122 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3123 sections.
3124
ce1f6491
MC
31252003-06-26 Michael Chastain <mec@shout.net>
3126
3127 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3128 gdb/testsuite/gdb.c++/pr-1210.exp.
3129
d958dfd0
AC
31302003-06-26 Andrew Cagney <cagney@redhat.com>
3131
3132 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3133 altivec_expression.h and altivec_registers.h.
3134
d31431ed
AC
31352003-06-26 Andrew Cagney <cagney@redhat.com>
3136
3137 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3138 info->mach when MIPS16. Patch suggested by Fred Fish.
3139
714b1282
AC
31402003-06-26 Andrew Cagney <cagney@redhat.com>
3141
3142 * utils.c (internal_vproblem): Print the problem to a reason
3143 buffer and then pass to query. Make the msg variable more local.
3144
42efa47a
AC
31452003-06-26 Andrew Cagney <cagney@redhat.com>
3146
3147 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3148 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3149 * gdbarch.h, gdbarch.c: Re-generate.
3150 * frame-base.c (default_frame_args_address): Update. Use
3151 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3152 not available.
3153 (default_frame_locals_address): Ditto for
3154 DEPRECATED_FRAME_LOCALS_ADDRESS.
3155 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3156 (vax_frame_num_args): Update.
3157 (vax_gdbarch_init): Update.
3158 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3159 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3160 * mcore-tdep.c (mcore_gdbarch_init): Update.
3161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3162 * ia64-tdep.c (ia64_gdbarch_init): Update.
3163 * symtab.h (address_class): Update comments.
3164 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3165 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3166 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3167 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3168 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3169 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3170 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3171 * alpha-mdebug-tdep.c: Update.
3172 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3173
8ffd9b1b
AJ
31742003-06-26 Andreas Jaeger <aj@suse.de>
3175
3176 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3177 of SSE registers so that varargs functions work. Rework handling
3178 of passing arguments on the stack.
3179 (x86_64_store_return_value): Return double and float values in SSE
3180 register.
3181
e8ac10a6
MC
31822003-06-24 Michael Chastain <mec@shout.net>
3183
3184 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3185 the "constructor breakpoints ignored" bug.
3186
986af8e6
DC
31872003-06-25 David Carlton <carlton@kealia.com>
3188
3189 * MAINTAINERS: Update e-mail address.
3190
d64558a5
JB
31912003-06-24 Jim Blandy <jimb@redhat.com>
3192
e538d2d7
JB
3193 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3194
02631ec0
JB
3195 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3196 function.
3197 (ppc_linux_init_abi): Register it as the
3198 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3199
e716d87a
JB
3200 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3201 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3202 method.
3203
d64558a5
JB
3204 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3205 (ppc64_standard_linkage_target): Use it.
3206
449a5da4
AC
32072003-06-23 Andrew Cagney <cagney@redhat.com>
3208
3209 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3210 for 0 "int0" and 4 "int32" sized registers.
3211 * gdbtypes.c (builtin_type_int0): Define.
3212 (build_gdbtypes): Initialize builtin_type_int0.
3213 * gdbtypes.h (builtin_type_int0): Declare.
3214
b2a02dda
SC
32152003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3216
3217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3218 as characters are unsigned.
3219
fba3138e
DJ
32202003-06-22 Daniel Jacobowitz <drow@mvista.com>
3221
3222 PR gdb/1179
3223 * dwarfread.c (struct_type): Skip static fields without crashing.
3224
f6c8180b
AC
32252003-06-22 Andrew Cagney <cagney@redhat.com>
3226
3227 GDB 6.0 branch created.
f2c06f52
AC
3228 * README: Update.
3229 * PROBLEMS: Update. Empty.
3230 * NEWS: Update.
f6c8180b 3231
ae822768
DJ
32322003-06-22 Daniel Jacobowitz <drow@mvista.com>
3233
3234 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3235 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3236
261de166
AC
32372003-06-22 Andrew Cagney <cagney@redhat.com>
3238
3239 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3240 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3241 Velikov.
3242
30e94205
DJ
32432003-06-22 Daniel Jacobowitz <drow@mvista.com>
3244
3245 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3246 compilers.
3247
9e14d721
DJ
32482003-06-21 Daniel Jacobowitz <drow@mvista.com>
3249
3250 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3251 argument of val_print.
3252 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3253 to the address argument of baseclass_offset or target_read_memory.
3254 Do add it to the argument of cp_print_value_fields.
3255
a4b8ebc8
AC
32562003-06-21 Andrew Cagney <cagney@redhat.com>
3257
3258 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3259 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3260 instead of 0..NUM_REGS.
3261 (mips_register_reggroup_p): New function.
3262 (mips_pseudo_register_write): New function.
3263 (mips_pseudo_register_read): New function.
3264 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3265 based on the register's type.
3266 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3267 cooked.
3268 (mips_get_saved_register): Simplify. Assert that REGNO is a
3269 pseudo / cooked.
3270 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3271 (mips_register_type): Replace mips_register_virtual_type. Map
3272 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3273 when available.
3274 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3275 that the register is cooked / virtual.
3276 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3277 Only get the extra info when needed.
3278 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3279 (mips32_heuristic_proc_desc): Fetch the cooked register.
3280 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3281 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3282 (mips_print_register): Use gdbarch_register_type, instead of
3283 REGISTER_VIRTUAL_TYPE.
3284 (print_gp_register_row): Use gdbarch_register_type, instead of
3285 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3286 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3287 Print the pseudo / cooked registers.
3288 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3289 Print the pseudo / cooked registers.
3290 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3291 REG_NUM is pseudo / cooked.
3292 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3293 (mips_n32n64_xfer_return_value): Ditto.
3294 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3295 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3296 (mips_register_sim_regno): New function.
3297 (mips_gdbarch_init): Set deprecated_register_byte,
3298 register_group_p, pseudo_register_write, pseudo_register_read,
3299 register_sim_regno, and num_pseudo_regs. Set register_type,
3300 instead of register_virtual_type.
3301 * Makefile.in (mips-tdep.o): Update dependencies.
3302 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3303 REGISTER_VIRTUAL_TYPE.
3304 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3305 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3306 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3307 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3308 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3309
325ed089
DJ
33102003-06-21 Daniel Jacobowitz <drow@mvista.com>
3311
3312 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3313 * cli/cli-cmds.c: Include "gdb_vfork.h".
3314 (shell_escape): Use vfork.
3315
f0e7d0e8
AC
33162003-06-21 Andrew Cagney <cagney@redhat.com>
3317
c57bb9fa
AC
3318 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3319 32 bit floating-point register saves.
3320
6e51443a
AC
3321 * frame.h (deprecated_unwind_get_saved_register): Delete.
3322 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3323 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3324 and deprecated_get_next_frame_hack instead of
3325 deprecated_unwind_get_saved_register.
3326
ed183c7c
AC
3327 * mips-tdep.c (mips_dump_tdep): Do not print
3328 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3329
f0e7d0e8
AC
3330 * frame.c (get_frame_register): New function.
3331 (frame_unwind_register_signed): New function.
3332 (get_frame_register_signed): New function.
3333 (frame_unwind_register_unsigned): New function.
3334 (get_frame_register_unsigned): New function.
3335 * frame.h: Add comments on naming schema.
3336 (get_frame_register, frame_unwind_register_signed): Declare.
3337 (get_frame_register_signed, get_frame_register_signed): Declare.
3338 (frame_unwind_register_unsigned): Declare.
3339 (get_frame_register_unsigned): Declare.
3340
2224d941
TR
33412003-06-20 Theodore A. Roth <troth@openavr.org>
3342
3343 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3344
8619218d
TR
33452003-06-20 Theodore A. Roth <troth@openavr.org>
3346
3347 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3348 (avr_read_sp): Ditto.
3349
0b1b50c0
DJ
33502003-06-20 Daniel Jacobowitz <drow@mvista.com>
3351
3352 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3353 * config/arm/nm-linux.h: Likewise.
3354 * config/arm/tm-linux.h: Likewise.
3355 * config/ia64/nm-linux.h: Likewise.
3356 * config/ia64/tm-ia64.h: Likewise.
3357 * config/s390/tm-linux.h: Likewise.
3358 * config/s390/tm-s390.h: Likewise.
3359 * s390-nat.c: Likewise.
3360 * s390-tdep.c: Likewise.
3361
3362 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3363 * config/ia64/linux.mt: Likewise.
3364 * config/m68k/linux.mh: Likewise.
3365 * config/mips/linux.mt: Likewise.
3366 * config/powerpc/linux.mh: Likewise.
3367 * config/sh/linux.mt: Likewise.
3368
c8c18e65
KW
33692003-06-19 Kris Warkentin <kewarken@qnx.com>
3370
3371 * solib.c (solib_open): Change tests for whether to search
3372 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3373 comments.
3374
dcccef2e
TR
33752003-06-19 Theodore A. Roth <troth@openavr.org>
3376
3377 * avr-tdep.c (avr_frame_address): Delete function.
3378 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3379 set_gdbarch_frame_args_address.
3380
5861a190
AC
33812003-06-19 Andrew Cagney <cagney@redhat.com>
3382
3383 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3384 (REGISTER_CONVERT_FROM_TYPE): Delete.
3385 (mips_register_convert_to_type): Delete declaration.
3386 (mips_register_convert_from_type): Delete declaration.
3387 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3388 kernel/.
3389
0274a8ce
MS
33902003-06-19 Michael Snyder <msnyder@redhat.com>
3391
3392 * linux-nat.h: New file.
3393 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3394 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3395 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3396 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3397 (linux_make_note_section): Iterate over lwps instead of threads.
3398 (linux_do_thread_registers): Use lwp instead of merged pid.
3399 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3400 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3401 Add dependency on linux_nat_h.
3402
adf5f719
TR
34032003-06-19 Theodore A. Roth <troth@openavr.org>
3404
3405 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3406
6766a268
DJ
34072003-06-19 Daniel Jacobowitz <drow@mvista.com>
3408
3409 * varobj.c (get_type, get_target_type): Use check_typedef.
3410
1171114a
DJ
34112003-06-19 Daniel Jacobowitz <drow@mvista.com>
3412
3413 * breakpoint.c (insert_catchpoint): Call internal_error.
3414
adcf68a2
TR
34152003-06-19 Theodore A. Roth <troth@openavr.org>
3416
3417 * avr-tdep.c (avr_push_dummy_code): Delete function.
3418 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3419
ea67f13b
DJ
34202003-06-19 Daniel Jacobowitz <drow@mvista.com>
3421
3422 * arch-utils.c (default_prepare_to_proceed): Remove.
3423 (generic_prepare_to_proceed): Remove.
3424 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3425 (generic_prepare_to_proceed): Remove prototype.
3426 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3427 * gdbarch.c: Regenerate.
3428 * gdbarch.h: Regenerate.
3429 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3430 * hppah-nat.c (hppa_switched_threads): Remove.
3431 * infrun.c (prepare_to_proceed): New static function, copied from
3432 generic_prepare_to_proceed. Remove select_it argument.
3433 (proceed): Call prepare_to_proceed.
3434 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3435 variables.
3436 (ptrace_wait): Don't set the removed variables.
3437 (hppa_switched_threads): Remove.
3438 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3439 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3440 (lin_lwp_prepare_to_proceed): Remove prototype.
3441 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3442 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3443
4add8633
TR
34442003-06-18 Theodore A. Roth <troth@openavr.org>
3445
3446 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3447 trad-frame.h.
3448 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3449 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3450 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3451 (AVR_PROLOGUE_*): Enumerate prologue types.
3452 (struct frame_extra_info): Remove.
3453 (struct avr_unwind_cache): Define.
3454 (avr_write_sp): Delete function.
3455 (avr_read_fp): Ditto.
3456 (avr_init_extra_frame_info): Ditto.
3457 (avr_pop_frame): Ditto.
3458 (avr_frame_saved_pc): Ditto.
3459 (avr_saved_pc_after_call): Ditto.
3460 (avr_push_return_address): Ditto.
3461 (avr_frame_chain): Ditto.
3462 (avr_store_struct_return): Ditto.
3463 (avr_push_arguments): Ditto.
3464 (avr_scan_prologue): Update comments. Changed to set up the info for
3465 cache unwinding. Now returns end of prologue PC.
3466 (avr_skip_prologue): Better handling of functions lacking a prologue
3467 by using avr_scan_prologue.
3468 (avr_scan_arg_moves): New function.
3469 (avr_saved_regs_unwinder): Ditto.
3470 (avr_frame_unwind_cache): Ditto.
3471 (avr_unwind_pc): Ditto.
3472 (avr_frame_this_id): Ditto.
3473 (avr_frame_prev_register): Ditto.
3474 (avr_frame_p): Ditto.
3475 (avr_frame_base_address ): Ditto.
3476 (avr_unwind_dummy_id): Ditto.
3477 (avr_push_dummy_code): Ditto.
3478 (push_stack_item): Ditto.
3479 (pop_stack_item): Ditto.
3480 (avr_push_dummy_call): Ditto.
3481 (struct stack_item): Define.
3482 (avr_frame_unwind): Declare structure.
3483 (avr_frame_base): Ditto.
3484 (avr_gdbarch_init): Remove calls to
3485 set_gdbarch_deprecated_init_frame_pc,
3486 set_gdbarch_deprecated_target_read_fp,
3487 set_gdbarch_deprecated_dummy_write_sp,
3488 set_gdbarch_deprecated_fp_regnum,
3489 set_gdbarch_deprecated_push_arguments,
3490 set_gdbarch_deprecated_push_return_address,
3491 set_gdbarch_deprecated_pop_frame,
3492 set_gdbarch_deprecated_store_struct_return,
3493 set_gdbarch_deprecated_frame_init_saved_regs,
3494 set_gdbarch_deprecated_init_extra_frame_info,
3495 set_gdbarch_deprecated_frame_chain,
3496 set_gdbarch_deprecated_frame_saved_pc,
3497 set_gdbarch_deprecated_saved_pc_after_call.
3498 Add calls to set_gdbarch_push_dummy_call,
3499 set_gdbarch_push_dummy_code,
3500 frame_unwind_append_predicate,
3501 frame_base_set_default,
3502 set_gdbarch_unwind_dummy_id,
3503 set_gdbarch_unwind_pc.
3504 Wrap a long line.
3505
7be04a68
MS
35062003-06-18 Corinna Vinschen <vinschen@redhat.com>
3507
3508 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3509 registers for H8/300S.
3510 (h8300_print_registers_info): Ditto.
8ffd9b1b 3511 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3512
ae087d01
DJ
35132003-06-18 Daniel Jacobowitz <drow@mvista.com>
3514
3515 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3516 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3517 (lin_lwp_wait): Likewise. Update comments.
3518 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3519 (pull_pid_from_list, linux_record_stopped_pid): New.
3520
07d8f827
SC
35212003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3522
3523 * ada-lang.c (scan_discrim_bound): Name first argument.
3524 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3525 declared by ALL_BLOCK_SYMBOLS.
3526
7cb47b14
SC
35272003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3528
3529 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3530 ("regcache.h"): Include it.
3531 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3532
6ad8ae5c
DJ
35332003-06-17 Daniel Jacobowitz <drow@mvista.com>
3534
3535 * NEWS: Mention gdbserver detach change and "disconnect" command.
3536 * infcmd.c (disconnect_command): New function.
3537 (_initialize_infcmd): Add ``disconnect'' command.
3538 * remote.c (remote_async_detach): Delete.
3539 (remote_detach): Merge remote_async_detach.
3540 (remote_disconnect): New.
3541 (init_remote_ops): Set to_disconnect.
3542 (init_remote_cisco_ops): Likewise.
3543 (init_remote_async_ops): Likewise. Use remote_detach.
3544 * target.c (cleanup_target): Default to_disconnect.
3545 (update_current_target): Inherit to_disconnect.
3546 (target_disconnect, debug_to_disconnect): New functions.
3547 (setup_target_debug): Set to_disconnect.
3548 * target.h (struct target_ops): Add to_disconnect.
3549 (target_disconnect): Add prototype.
3550
687595f9
DJ
35512003-06-17 Daniel Jacobowitz <drow@mvista.com>
3552
3553 * breakpoint.c (insert_catchpoint): New function.
3554 (insert_breakpoints): Use catch_exceptions to call
3555 insert_catchpoint. Disable catchpoints if they fail to insert.
3556
29239a8f
DJ
35572003-06-17 Daniel Jacobowitz <drow@mvista.com>
3558
3559 * symfile.c (reread_symbols): Clear sym_private.
3560
2cdf3c63
AC
35612003-06-17 Andrew Cagney <cagney@redhat.com>
3562
3563 * trad-frame.h (struct frame_info): Add opaque declaration.
3564 * remote-fileio.h (struct cmd_list_element): Add opaque
3565 declaration.
3566 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3567 comments.
3568
cf0e1e0d
DJ
35692003-06-17 Daniel Jacobowitz <drow@mvista.com>
3570
3571 * remote.c (remote_prepare_to_store): Replace call to
3572 deprecated_read_register_bytes with multiple regcache_raw_read
3573 calls.
3574
192cdb19
KW
35752003-06-17 Kris Warkentin <kewarken@qnx.com>
3576
3577 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3578 (nto_find_and_open_solib): Likewise.
3579 (nto_init_solib_absolute_prefix): Likewise.
3580 (_initialize_nto_tdep): Fix indentation.
3581
89929b45
KW
35822003-06-17 Kris Warkentin <kewarken@qnx.com>
3583
3584 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3585
46019f27
KW
35862003-06-17 Kris Warkentin <kewarken@qnx.com>
3587
3588 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3589
1a38736e
JB
35902003-06-17 Jim Blandy <jimb@redhat.com>
3591
3592 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3593
3605c34a
TR
35942003-06-16 Theodore A. Roth <troth@openavr.org>
3595
3596 * avr-tdep.c (avr_extract_return_value): New function.
3597 (avr_gdbarch_init): Set extract_return_value method.
3598
870b3035
AC
35992003-06-16 Andrew Cagney <cagney@redhat.com>
3600
3601 * frame.h (deprecated_get_next_frame_hack): Declare.
3602 * frame.c (legacy_saved_regs_prev_register): Only require
3603 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3604 there are always saved regs.
3605 (deprecated_generic_get_saved_register): Do not require
3606 DEPRECATED_FRAME_INIT_SAVED_REGS.
3607 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3608 use frame ID unwind instead.
3609 (deprecated_get_next_frame_hack): New function.
3610
63d47a7d
CV
36112003-06-16 Corinna Vinschen <vinschen@redhat.com>
3612
3613 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3614 (h8300_push_dummy_call): ...this function. Some minor optimization.
3615 (h8300_push_return_address): Remove.
3616 (h8300_gdbarch_init): Remove calls to
3617 set_gdbarch_deprecated_dummy_write_sp,
3618 set_gdbarch_deprecated_push_arguments and
3619 set_gdbarch_deprecated_push_return_address.
3620 Add call to set_gdbarch_push_dummy_call.
3621
4bb1dc5e
CV
36222003-06-16 Corinna Vinschen <vinschen@redhat.com>
3623
3624 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3625 (E_PSEUDO_EXR_REGNUM): Ditto.
3626 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3627 registers into safe registers.
4bb1dc5e
CV
3628 (h8300_skip_prologue): Check for stm instruction to push registers
3629 used for register variables onto stack.
3630 (gdb_print_insn_h8300): Remove.
3631 (h8300_examine_prologue): Add a comment.
3632 (h8300_register_name): Take pseudo registers into account.
3633 (h8300s_register_name): Ditto.
3634 (h8300sx_register_name): Ditto.
3635 (h8300_print_register): Ditto.
3636 (h8300_print_registers_info): Define "nice" printing order.
3637 (h8300_saved_pc_after_call): Take pseudo registers into account.
3638 (h8300_register_type): Ditto. Return type used for remote connection
3639 when requesting real CCR or EXR register, return actual type when
3640 requesting pseudo CCR or EXR.
3641 (h8300_pseudo_register_read): New function.
3642 (h8300_pseudo_register_write): Ditto.
3643 (h8300_dbg_reg_to_regnum): Ditto.
3644 (h8300s_dbg_reg_to_regnum): Ditto.
3645 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3646 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3647 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3648 set_gdbarch_print_insn architecture dependent.
3649 Call set_gdbarch_pseudo_register_read and
3650 set_gdbarch_pseudo_register_write.
3651 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3652
a59fe496
AC
36532003-06-16 Andrew Cagney <cagney@redhat.com>
3654
3655 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3656 * gdbarch.h, gdbarch.c: Re-generate.
3657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3658 * s390-tdep.c (s390_gdbarch_init): Update.
3659 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3660 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3661 * mips-tdep.c (mips_gdbarch_init): Update.
3662 * mcore-tdep.c (mcore_gdbarch_init): Update.
3663 * cris-tdep.c (cris_gdbarch_init): Update.
3664 * infcall.c (call_function_by_hand): Update.
3665 * ia64-tdep.c (ia64_push_arguments): Update comment.
3666 * frame.c (legacy_get_prev_frame): Do not assume
3667 SAVE_DUMMY_FRAME_TOS_P.
3668 * dummy-frame.c (find_dummy_frame): Update comment.
3669
6f4e5a41
AC
36702003-06-16 Andrew Cagney <cagney@redhat.com>
3671
3672 * regcache.c (do_cooked_read): Do not use register_valid_p.
3673
72fab697
TR
36742003-06-15 Theodore A. Roth <troth@openavr.org>
3675
3676 * avr-tdep.c (avr_register_type): Remove a blank line.
3677 (avr_scan_prologue): Correct some comments.
3678
e3d8b004
TR
36792003-06-15 Theodore A. Roth <troth@openavr.org>
3680
3681 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3682 prologue types.
8ffd9b1b 3683 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3684 option.
3685 Add code to scan -mcall-prologues for mega devices.
3686
866b76ea
TR
36872003-06-15 Theodore A. Roth <troth@openavr.org>
3688
3689 * avr-tdep.c (avr_register_byte): Delete function.
3690 (avr_register_raw_size): Delete function.
3691 (avr_register_virtual_size): Delete function.
3692 (avr_register_virtual_type): Delete function.
3693 (avr_register_type): New function.
3694 (avr_address_to_pointer): Remove unused code.
3695 (avr_read_fp): Need to read FP as two separate bytes due to change to
3696 avr_register_type() usage.
3697 (avr_gdbarch_init): Don't set deprecated_register_size.
3698 Don't set deprecated_register_bytes.
3699 Don't set deprecated_register_byte.
3700 Don't set deprecated_register_raw_size.
3701 Don't set deprecated_max_register_raw_size.
3702 Don't set deprecated_register_virtual_size.
3703 Don't set deprecated_max_register_virtual_size.
3704 Don't set deprecated_register_virtual_type.
3705 Set register_type method.
3706
3993f6b1
DJ
37072003-06-15 Daniel Jacobowitz <drow@mvista.com>
3708
3709 * Makefile.in (linux-nat.o): Add rule.
3710 * linux-nat.c: New file.
3711 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3712 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3713 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3714 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3715 * config/arm/linux.mh (NATDEPFILES): Likewise.
3716 * config/i386/linux.mh (NATDEPFILES): Likewise.
3717 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3718 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3719 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3720 * config/mips/linux.mh (NATDEPFILES): Likewise.
3721 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3722 * config/s390/s390.mh (NATDEPFILES): Likewise.
3723 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3724
786a90bb
MK
37252003-06-15 Mark Kettenis <kettenis@gnu.org>
3726
3727 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3728 replace out-of-date comment.
3729
3bd3f01e
AC
37302003-06-15 Andrew Cagney <cagney@redhat.com>
3731
3732 * rdi-share/host.h (Fail): Change to a varargs function.
3733 * remote-rdi.c (Fail): Update.
8ffd9b1b 3734
de5b9bb9
MK
37352003-06-15 Mark Kettenis <kettenis@gnu.org>
3736
3737 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3738 (i386_convert_register_p, i386_register_to_value,
3739 i386_register_from_value): Handle types longer than 8 bytes.
3740
d532c08f
MK
37412003-06-15 Mark Kettenis <kettenis@gnu.org>
3742
3743 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3744 Move floating-point code to new function in i387-tdep.c.
3745 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3746 New functions containing code moved here from i386-tdep.c.
3747 * i387-tdep.h: Add opaque declaration for `struct type'.
3748 (i387_register_to_value, i387_value_to_register): New prototypes.
3749 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3750 (x86_64_init_abi): Set convert_register_p, register_to_value and
3751 value_to_register here.
8ffd9b1b 3752
42c466d7
AC
37532003-06-14 Andrew Cagney <cagney@redhat.com>
3754
3755 * mips-tdep.c (mips_register_to_value): Make static.
3756 (mips_value_to_register): Make static.
3757 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3758 * ia64-tdep.c (ia64_register_raw_size): Make static.
3759 (ia64_register_virtual_size): Make static.
3760 (ia64_register_byte): Make static.
3761 * i387-tdep.c: Include "i387-tdep.h".
3762 (print_387_control_word): Delete function.
3763 (print_387_status_word): Delete function.
3764 (print_387_status_bits): Delete function.
3765 (print_387_control_bits): Delete function.
3766 * Makefile.in (i387-tdep.o): Update dependencies.
3767 * rdi-share/host.h (Fail): Declare.
3768 * remote-rdi.c (Fail): Update to match declaration.
3769
2a9cda49
AC
37702003-06-14 Andrew Cagney <cagney@redhat.com>
3771
3772 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3773 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3774 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3775 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3776 * README: Delete reference to remote-array.
3777 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3778 (remote-array.o): Delete target.
3779 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3780 * remote-array.c: Delete file.
3781
ff2e87ac
AC
37822003-06-14 Andrew Cagney <cagney@redhat.com>
3783 Mark Kettenis <kettenis@gnu.org>
3784
3785 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3786 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3787 parameter with "frame".
3788 * gdbarch.h, gdbarch.c: Re-generate.
3789 * frame.h (put_frame_register): Declare.
3790 * frame.c (put_frame_register): New function.
3791 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3792 (legacy_register_to_value): Rewrite, use "frame" to get the
3793 register value.
3794 (legacy_value_to_register): Rewrite, use "frame" to find the
3795 register's location before storing.
3796 * arch-utils.h (legacy_convert_register_p): Update.
3797 (legacy_register_to_value, legacy_value_to_register): Update.
3798 * findvar.c (value_from_register): Rewrite, eliminate use of
3799 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3800 "frame" to REGISTER_TO_VALUE.
3801 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3802 lval_reg_frame_relative + lval_register branch of the switch. Do
3803 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3804 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3805 I386_EDI_REGNUM): New defines.
3806 (i386_next_regnum, i386_convert_register_p,
3807 i386_register_to_value, i386_value_to_register): New functions.
3808 (i386_register_convertible, i386_register_convert_to_virtual,
3809 i386_convert_to_raw): Remove functions.
3810 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3811 value_to_register instead of register_convertible,
3812 register_convert_to_virtual and register_convert_to_raw.
3813 * mips-tdep.c (mips_convert_register_p): New function.
3814 (mips_value_to_register): Replace mips_register_convert_from_type.
3815 (mips_register_to_value): Replace mips_register_convert_to_type.
3816 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3817 register_to_value.
3818 * alpha-tdep.c (alpha_convert_register_p): Update.
3819 (alpha_value_to_register): Update, store the register.
3820 (alpha_register_to_value): Update, fetch the register.
3821
98be1e77
TR
38222003-06-14 Theodore A. Roth <troth@openavr.org>
3823
3824 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3825 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3826 Don't set deprecated_call_dummy_words.
3827 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3828 Don't set remote_translate_xfer_address.
3829 (avr_io_reg_read_command): Remove commented out debug printf.
3830 Wrap a long line.
3831
57bc6122
TR
38322003-06-14 Theodore A. Roth <troth@openavr.org>
3833
3834 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3835 causes gdb to seg fault.
3836
eb01fc62
DJ
38372003-06-14 Daniel Jacobowitz <drow@mvista.com>
3838
3839 * sparc-nat.c (fetch_inferior_registers): Correct
3840 a reference to "registers".
3841
3b3e6bee
DJ
38422003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3843
3844 * Makefile.in (exc_request_U_h): Define
3845 (exc_request_S_h): Likewise.
3846 (msg_reply_S_h): Likewise.
3847 (msg_U_h): Likewise.
3848 (notify_S_h): Likewise.
3849 (process_reply_S_h): Likewise.
3850 (gnu-nat.o): Depend on gdb_obstack_h
3851 * gnu-nat.c: Include "gdb_obstack.h".
3852
b8de8283
AC
38532003-06-13 Andrew Cagney <cagney@redhat.com>
3854
3855 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3856 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3857
f3be58bc
AC
38582003-06-13 Andrew Cagney <cagney@redhat.com>
3859
3860 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3861 when deprecated REGISTER macros can be deleted.
3862 * gdbarch.h, gdbarch.c: Re-generate.
3863
4c0122c8
JB
38642003-06-13 Jim Blandy <jimb@redhat.com>
3865
3866 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3867 Linux entry point symbols for _dl_debug_state, too.
3868
3e210248
AC
38692003-06-13 Andrew Cagney <cagney@redhat.com>
3870
3871 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3872 available, do not use the FP register, and always save the TOS.
3873 * dummy-frame.c (dummy_frame_this_id): Do not assert
3874 SAVE_DUMMY_FRAME_TOS.
3875 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3876 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3877 (i386_push_dummy_call): Add 8 to the returned SP.
3878 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3879 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3880 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3881 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3882 (x86_64_push_dummy_call): Return "sp + 16".
3883 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3884 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3885 save_dummy_frame_tos.
3886
0b65af49
JB
38872003-06-13 Jim Blandy <jimb@redhat.com>
3888
3889 * frv-tdep.c (frv_use_struct_convention): Delete static
3890 declaration for function deleted in my change of 2003-06-12.
3891
4ea2465e
TR
38922003-06-13 Theodore A. Roth <troth@openavr.org>
3893
3894 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3895 (avr_pointer_to_address): Shift code addrs left 1 bit.
3896 (avr_convert_from_func_ptr_addr): Delete function since operation is
3897 better handled by avr_address_to_pointer and avr_pointer_to_address.
3898 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3899
1581182a
MK
39002003-06-13 Mark Kettenis <kettenis@gnu.org>
3901
3902 From Kelley Cook <kelleycook@wideopenwest.com>:
3903 * configure.host: Accept i[34567]86 variants.
3904 * configure.tgt: Likewise.
3905 * nlm/configure.in: Likewise.
3906 * nlm/configure: Regenerated.
3907
7aa1783e
RE
39082003-06-13 Richard Earnshaw <rearnsha@arm.com>
3909
3910 * arm-tdep.c (solib-svr4.h): Dont' include it.
3911 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3912 * arm-linux-tdep.c: ... here. Make static.
3913 (arm_linux_init_abi): Register it.
3914 (solib-svr4.h): Include it.
3915 * Makefile.in: Update dependencies.
3916 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3917 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3918
0261a0d0
CV
39192003-06-13 Corinna Vinschen <vinschen@redhat.com>
3920
3921 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3922 indicate registers used for return values.
3923 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3924 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3925 members.
3926 (h8300_init_extra_frame_info): Ditto.
3927 (h8300_frame_locals_address): Removed.
3928 (h8300_frame_args_address): Removed.
3929 (h8300_extract_return_value): Use new regcache structure. Only care
3930 for 16 bit CPUs.
3931 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3932 (h8300_store_return_value): Use new regcache structure. Only care
3933 for 16 bit CPUs.
3934 (h8300h_store_return_value): Same function for 32 bit CPUs.
3935 (h8300_store_struct_return): Removed.
3936 (h8300_extract_struct_value_address): Use new regcache structure.
3937 (h8300h_extract_struct_value_address): Removed.
3938 (h8300_push_dummy_code): New function.
3939 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3940 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3941 set_gdbarch_store_return_value architecture dependent.
3942 Call set_gdbarch_push_dummy_code and
3943 set_gdbarch_extract_struct_value_address.
3944 Remove calls to set_gdbarch_frame_args_address,
3945 set_gdbarch_frame_locals_address,
3946 set_gdbarch_deprecated_store_struct_return,
3947 set_gdbarch_deprecated_extract_return_value,
3948 set_gdbarch_deprecated_extract_struct_value_address,
3949 set_gdbarch_deprecated_call_dummy_words and
3950 set_gdbarch_deprecated_sizeof_call_dummy_words.
3951
055c394a
CV
39522003-06-13 Corinna Vinschen <vinschen@redhat.com>
3953
3954 * h8300-tdep.c (h8300_register_byte): Remove.
3955 (h8300h_register_byte): Remove.
3956 (h8300_register_virtual_type): Remove. Substitute by...
3957 (h8300_register_type): New function.
3958 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3959 (h8300h_extract_struct_value_address): Ditto.
3960 (h8300_gdbarch_init): Drop calls to
3961 set_gdbarch_deprecated_register_byte and
3962 set_gdbarch_deprecated_register_virtual_type.
3963 Add call to set_gdbarch_register_type.
3964
9c04cab7
AC
39652003-06-13 Andrew Cagney <cagney@redhat.com>
3966
3967 * gdbarch.sh: Update comments on registers.
3968 (deprecated_register_byte): Rename register_byte.
3969 (deprecated_register_raw_size): Rename register_raw_size.
3970 (deprecated_register_virtual_size): Rename register_virtual_size.
3971 (deprecated_register_virtual_type): Rename register_virtual_type.
3972 * gdbarch.h, gdbarch.c: Re-generate.
3973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3974 * vax-tdep.c (vax_gdbarch_init): Update.
3975 * v850-tdep.c (v850_gdbarch_init): Update.
3976 * sparc-tdep.c (sparc_gdbarch_init): Update.
3977 * sh-tdep.c (sh_gdbarch_init): Update.
3978 * s390-tdep.c (s390_gdbarch_init): Update.
3979 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3980 * ns32k-tdep.c: Update.
3981 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3982 * mips-tdep.c (mips_gdbarch_init): Update.
3983 * mcore-tdep.c (mcore_gdbarch_init): Update.
3984 * m68k-tdep.c (m68k_gdbarch_init): Update.
3985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3986 * ia64-tdep.c (ia64_gdbarch_init): Update.
3987 * hppa-tdep.c (hppa_gdbarch_init): Update.
3988 * h8300-tdep.c (h8300_gdbarch_init): Update.
3989 * frv-tdep.c (frv_gdbarch_init): Update.
3990 * cris-tdep.c (cris_gdbarch_init): Update.
3991 * avr-tdep.c (avr_gdbarch_init): Update.
3992 * alpha-tdep.c (alpha_gdbarch_init): Update.
3993 * arm-tdep.c (arm_gdbarch_init): Update.
3994
b060cbea
AC
39952003-06-13 Andrew Cagney <cagney@redhat.com>
3996
3997 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3998 mips_o32_use_struct_convention with always_use_struct_convention.
3999
0fc9922a
DC
40002003-06-12 David Carlton <carlton@kealia.com>
4001
4002 * cp-namespace.c (cp_set_block_scope): Comment out
4003 processing_has_namespace_info branch.
4004
1fd35568
JB
40052003-06-12 Jim Blandy <jimb@redhat.com>
4006
f470a70a
JB
4007 Recognize and skip 64-bit PowerPC Linux linkage functions.
4008 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4009 insn_pattern, insns_match_pattern, d_field, ds_field): New
4010 functions, macros, and types for working with PPC instructions.
4011 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4012 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4013 ppc64_skip_trampoline_code): New functions, variables, and macros
4014 for recognizing and skipping linkage functions.
4015 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4016 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4017
49ff75ad
JB
4018 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4019 register offsets for both the 32- and 64-bit interfaces.
4020
bd918c83
JB
4021 Actually finish the job started by my change of 2003-05-29.
4022 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4023 other #definition of this.
4024 (ppc_linux_skip_trampoline_code): Remove declaration.
4025 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4026 static.
4027 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4028 method for GDBARCH.
4029
4030 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4031 'long' on ppc64-*-linux*.
4032
f8c59253
JB
4033 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4034 isn't #defined, assume the register doesn't exist: act as if
4035 tdep->ppc_mq_regnum were -1.
4036
8fbb30b1
JB
4037 * configure.host, configure.tgt: Add entries for
4038 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4039 powerpc/linux.mt.
4040 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4041 New files.
4042
1fd35568
JB
4043 * arch-utils.c (always_use_struct_convention): New function.
4044 * arch-utils.h (always_use_struct_convention): New prototype.
4045 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4046 (alpha_gdbarch_init): Register always_use_struct_convention,
4047 instead of alpha_use_struct_convention.
4048 * cris-tdep.c (cris_use_struct_convention): Delete.
4049 (cris_gdbarch_init): Register always_use_struct_convention,
4050 instead of cris_use_struct_convention.
4051 * frv-tdep.c (frv_use_struct_convention): Delete.
4052 (frv_gdbarch_init): Register always_use_struct_convention,
4053 instead of frv_use_struct_convention.
4054 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4055 (h8300_gdbarch_init): Register always_use_struct_convention,
4056 instead of h8300_use_struct_convention.
e3305dd9 4057 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4058 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4059 instead of mips_o32_use_struct_convention.
4060
e14e6e9c
AC
40612003-06-12 Andrew Cagney <cagney@redhat.com>
4062
4063 * wince.c: Include "mips-tdep.h".
4064 * mips-tdep.h (mips_next_pc): Declare.
4065 * mcore-tdep.c: Make more local functions static.
4066 * Makefile.in (wince.o): Update dependencies.
4067
2335f48e
DC
40682003-06-12 David Carlton <carlton@kealia.com>
4069
4070 * symtab.c (lookup_symbol_aux_minsyms): Replace
4071 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4072 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4073 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4074 SYMBOL_NATURAL_NAME.
4075
f70a7d61
AS
40762003-06-12 Andreas Schwab <schwab@suse.de>
4077
4078 * Makefile.in (tuiDisassem.o): Update dependencies.
4079
b6429628
DC
40802003-06-12 David Carlton <carlton@bactrian.org>
4081
4082 * symtab.h: Delete declaration of make_symbol_overload_list.
4083 Add declaration of lookup_partial_symbol.
4084 * symtab.c (remove_params): Move to cp-support.c.
4085 (overload_list_add_symbol, make_symbol_overload_list)
4086 (sym_return_val_size, sym_return_val_index): Ditto.
4087 (lookup_partial_symbol): Make extern.
4088 * cp-support.h: Add declaration of make_symbol_overload_list.
4089 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4090 symtab.h, and block.h.
4091 (remove_params): Move here from symtab.c.
4092 (overload_list_add_symbol, make_symbol_overload_list)
4093 (sym_return_val_size, sym_return_val_index): Ditto.
4094 * valops.c: Include cp-support.h.
4095 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4096 frame_h, and block_h.
4097 (valops.o): Depend on cp_support_h.
4098
084edea5
CV
40992003-06-12 Corinna Vinschen <vinschen@redhat.com>
4100
4101 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4102 substitute by NUM_REGS throughout.
4103 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4104 (h8300s_register_name): New function for H8S registers.
4105 (h8300sx_register_name): Ditto for H8SX registers.
4106 (h8300_print_register): Revise register printing, avoid depending
4107 on 32 bit long.
0261a0d0 4108 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4109 (h8300h_register_byte): New function for any other architecture.
4110 (h8300_register_raw_size): Remove.
4111 (h8300_register_virtual_type): Revise to return actually useful
4112 type.
4113 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4114 (h8300h_extract_struct_value_address): New function for any other
4115 architecture.
4116 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4117 set_gdbarch_register_name, set_gdbarch_register_byte,
4118 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4119 Remove calls to set_gdbarch_deprecated_register_size,
4120 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4121 set_gdbarch_deprecated_max_register_raw_size,
4122 set_gdbarch_register_virtual_size and
4123 set_gdbarch_deprecated_max_register_virtual_size entirely.
4124 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4125 set_gdbarch_long_double_bit.
4126
06194148
JJ
41272003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4128
8ffd9b1b
AJ
4129 * doublest.c (convert_doublest_to_floatformat): When dealing
4130 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4131 processing a full 32 bits of mantissa.
4132
de4f826b
DC
41332003-06-11 David Carlton <carlton@bactrian.org>
4134
4135 * dictionary.h: New.
4136 * dictionary.c: New.
4137 * block.h: Add opaque declaration for struct dictionary.
4138 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4139 'sym' members.
4140 (BLOCK_DICT): New macro.
4141 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4142 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4143 BLOCK_SHOULD_SORT.
4144 (ALL_BLOCK_SYMBOLS): Update definition.
4145 * Makefile.in (SFILES): Add dictionary.c.
4146 (dictionary_h): New.
4147 (COMMON_OBS): Add dictionary.o.
4148 (dictionary.o): New.
4149 (ada-lang.o): Depend on dictionary_h.
4150 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4151 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4152 (mi-cmd-stack.o): Ditto.
4153 (gdbtk-cmds.o): Update dependencies.
4154 (gdbtk-stack.o): Ditto.
4155 * ada-lang.c: Include dictionary.h.
4156 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4157 (fill_in_ada_prototype, debug_print_block): Ditto.
4158 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4159 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4160 'is_sorted'.
4161 * mdebugread.c: Include dictionary.h.
4162 (struct parse_stack): Delete 'maxsyms' member.
4163 (parse_symbol): Update calls to new_block. Delete calls to
4164 shrink_block. Use dictionary methods.
4165 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4166 Update calls to new_symtab. Don't maintain maxsyms data.
4167 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4168 (add_symbol): Just call dict_add_symbol.
4169 (new_symtab): Delete 'maxsyms' argument.
4170 (new_symtab): Update calls to new_block.
4171 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4172 (shrink_block): Delete function.
4173 (fixup_sigtramp): Update call to new_block. Add symbol via
4174 dict_add_symbol.
4175 * jv-lang.c: Include dictionary.h.
4176 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4177 appropriately. Set class_symtab->free_func. Make sure the
4178 blockvector is big enough to hold two blocks.
4179 (add_class_symtab_symbol): Use dictionary methods.
4180 (free_class_block): New function.
4181 (type_from_class): Replace explicit iteration by
4182 ALL_BLOCK_SYMBOLS.
4183 * symtab.h (struct symtab): Replace 'free_ptr' method by
4184 'free_func'.
4185 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4186 sort_symtab_syms.
4187 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4188 sort_symtab_syms.
4189 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4190 Include dictionary.h.
4191 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4192 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4193 sort_symtab_syms.
4194 * objfiles.c: Include dictionary.h.
4195 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4196 * buildsym.c: Include dictionary.h.
4197 (finish_block): Use dictionary methods.
4198 (end_symtab): Set free_func to NULL, not free_ptr.
4199 * tracepoint.c: Include dictionary.h.
4200 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4201 (scope_info): Ditto.
4202 * stack.c: Include dictionary.h.
4203 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4204 (print_block_frame_labels, print_frame_arg_vars)
4205 (print_frame_args): Ditto.
4206 * symmisc.c (free_symtab_block): Use dictionary methods.
4207 (dump_symtab): Ditto.
4208 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4209 Include dictionary.h.
4210 * symfile.h: Delete declarations of sort_block_syms,
4211 sort_symtab_syms.
4212 * symfile.c (sort_block_syms): Delete.
4213 (sort_symtab_syms): Delete.
4214 * symtab.c: Include dictionary.h.
4215 (lookup_block_symbol): Use dictionary iterators.
4216 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4217 (search_symbols, make_symbol_completion_list): Ditto.
4218 (make_symbol_overload_list): Ditto.
4219 * valops.c (value_of_local): Use dict_empty.
4220 Include dictionary.h.
4221
a31f978c
JB
42222003-06-11 J. Brobecker <brobecker@gnat.com>
4223
4224 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4225
526e70c0
DC
42262003-06-11 David Carlton <carlton@bactrian.org>
4227
4228 * block.h (BLOCK_SHOULD_SORT): Delete.
4229 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4230 blocks.
4231 * ada-lang.c (ada_add_block_symbols): Ditto.
4232 * symfile.c (sort_block_syms): Delete.
4233 (sort_symtab_syms): Ditto.
4234 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4235 declarations.
4236 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4237 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4238 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4239 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4240 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4241 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4242 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4243
33c08150
JJ
42442003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4245
8ffd9b1b 4246 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4247 bits to 128.
4248
781a750d
AC
42492003-06-11 Andrew Cagney <cagney@redhat.com>
4250
4251 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4252 REGISTER_CONVERTIBLE.
4253 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4254 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4255 * gdbarch.h, gdbarch.c: Re-generate.
4256 * arch-utils.h (deprecated_register_convertible_not): Rename
4257 generic_register_convertible_not.
4258 * arch-utils.c (deprecated_register_convertible_not): Rename
4259 generic_register_convertible.
4260 (legacy_convert_register_p, legacy_register_to_value): Update.
4261 * sh-tdep.c (sh64_push_arguments): Update.
4262 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4263 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4264 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4265 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4266 * arch-utils.c (legacy_value_to_register): Update.
4267 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4268 (rs6000_register_convert_to_raw): Make parameter "from" const.
4269 * mips-tdep.c (mips_gdbarch_init): Update.
4270 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4271 * infcmd.c (default_print_registers_info): Update.
4272 * ia64-tdep.c (ia64_gdbarch_init): Update.
4273 (ia64_register_convert_to_raw): Make parameter "from" const.
4274 * i386-tdep.c (i386_gdbarch_init): Update.
4275 (i386_register_convert_to_raw): Update.
4276
cd90e54f
AC
42772003-06-11 Andrew Cagney <cagney@redhat.com>
4278
4279 * remote-fileio.c: Include "remote-fileio.h".
4280 * Makefile.in (remote-fileio.o): Update dependencies.
4281 (remote_fileio_h): Fix typo.
4282
a78f21af
AC
42832003-06-11 Andrew Cagney <cagney@redhat.com>
4284
4285 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4286 (xstormy16_save_dummy_frame_tos): Make static.
4287 (_initialize_xstormy16_tdep): Add declaration.
4288 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4289 * v850-tdep.c: Make local functions static.
4290 (_initialize_v850_tdep): Add declaration.
4291 * sparc-tdep.c: Make local functions static.
4292 (_initialize_sparc_tdep): Add declaration.
4293 * sh-tdep.c: Make local functions static.
4294 (_initialize_sh_tdep): Add declaration.
4295 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4296 * s390-tdep.c: Make local functions static.
4297 (_initialize_s390_tdep): Add declaration.
4298 * dbxread.c (find_stab_function_addr): Make static.
4299 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4300 * ocd.c (_initialize_remote_ocd): Add declaration.
4301 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4302 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4303 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4304 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4305 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4306 * remote-array.c (_initialize_array): Add declaration.
4307 (_initialize_remote_monitors): Add declaration.
4308 * remote-mips.c: Make local functions static.
4309 (_initialize_remote_mips): Add declaration.
4310 * mcore-tdep.c: Make all local functions static.
4311 (_initialize_mcore_tdep): Add declaration.
4312 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4313 * abug-rom.c (_initialize_abug_rom): Add declaration.
4314 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4315 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4316 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4317 * remote-est.c (_initialize_est): Add declaration.
4318 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4319 (m68hc11_call_dummy_address): Make static.
4320 * ia64-tdep.c: Make local functions static.
4321 (_initialize_ia64_tdep): Add declaration.
4322 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4323 * monitor.c (monitor_wait_filter): Make static.
4324 (_initialize_remote_monitors): Add declaration.
4325 * remote-hms.c (_initialize_remote_hms): Add declaration.
4326 * remote-e7000.c (fetch_regs_from_dump): Make static.
4327 (expect_n): Make static.
4328 (_initialize_remote_e7000): Add declaration.
4329 * ser-e7kpc.c: Always include "defs.h".
4330 (_initialize_ser_e7000pc): Add declaration.
4331 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4332 * cris-tdep.c: Make all but one function static.
4333 (_initialize_cris_tdep): Add declaration.
4334 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4335 * solib.c (update_solib_list): Make static.
4336 (_initialize_solib): Add declaration.
4337 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4338 (_initialize_avr_tdep): Add declaration.
4339 * remote-rdi.c (voiddummy): Make static.
4340 (_initialize_remote_rdi): Add declaration.
4341 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4342 * remote-rdp.c (send_rdp): Make static.
4343 (_initialize_remote_rdp): Add declaration.
4344 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4345
cbcdb1f5
CV
43462003-06-11 Corinna Vinschen <vinschen@redhat.com>
4347
4348 * remote-fileio.c: Make ari happy.
4349
a191ea8d
JB
43502003-06-10 J. Brobecker <brobecker@gnat.com>
4351
4352 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4353 fetching the trailing bytes of the buffer we are about to write.
4354
0ef75e11
AC
43552003-06-10 Andrew Cagney <cagney@redhat.com>
4356
4357 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4358 * Makefile.in (remote-fileio.o): Update dependencies.
4359 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4360 include <setjmp.h>, or <sys/types.h> conditional on USG.
4361 (remote_fio_jmp_buf): Delete global variable.
4362
449092f6 43632003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4364 Martin M. Hunt <hunt@redhat.com>
449092f6 4365
559fa028
AC
4366 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4367 (SFILES): Add remote-fileio.c.
4368 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4369 dependencies for building remote.o.
449092f6
CV
4370 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4371 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4372 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4373 static storage class.
4374 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4375 'F' packet.
4376 (_initialize_remote): Call initialize_remote_fileio().
4377 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4378 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4379 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4380 (captured_main): Initialize new ui_files.
4381 * ui-file.c: Add read and fgets input functions.
4382 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4383 (null_file_read): New function.
4384 (ui_file_read): New function.
4385 (set_ui_file_read): New function.
4386 (stdio_file_read): New function.
4387 * ui-file.h: New type ui_file_read_ftype.
4388 (set_ui_file_read): Declare.
4389 (ui_file_read): Declare.
4390
248de703
AC
43912003-06-09 Andrew Cagney <cagney@redhat.com>
4392
4393 * frame.h (deprecated_unwind_get_saved_register): Rename
4394 generic_unwind_get_saved_register, update comments.
4395 * mips-tdep.c (mips_get_saved_register): Update.
4396 * frame.c (deprecated_unwind_get_saved_register): Update.
4397
0ed8aa57
AC
43982003-06-09 Andrew Cagney <cagney@redhat.com>
4399
4400 * vax-tdep.c (vax_frame_locals_address): Delete function.
4401 (vax_gdbarch_init): Do not set frame_locals_address.
4402 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4403 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4404 * s390-tdep.c (s390_frame_args_address): Delete function.
4405 (s390_gdbarch_init): Do not set frame_args_address or
4406 frame_locals_address.
4407 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4408 (ns32k_gdbarch_init): Do not set frame_locals_address.
4409 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4410 (hppa_frame_locals_address): Delete function.
4411 (hppa_gdbarch_init): Do not set frame_args_address, or
4412 frame_locals_address.
4413 * arm-tdep.c (arm_frame_args_address): Delete.
4414 (arm_frame_locals_address): Delete.
4415 (arm_gdbarch_init): Do not set frame_args_address, or
4416 frame_locals_address.
4417
983a287a
AC
44182003-06-09 Andrew Cagney <cagney@redhat.com>
4419
4420 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4421 * gdbarch.h, gdbarch.c: Re-generate.
4422 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4423 * arch-utils.c (frame_num_args_unknown): Delete function.
4424 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4425 (frame_info): Use FRAME_NUM_ARGS_P.
4426 * arm-tdep.c (arm_frame_num_args): Delete function.
4427 (arm_gdbarch_init): Do not set frame_num_args.
4428 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4429 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4430 (hppa_gdbarch_init): Do not set frame_num_args.
4431 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4433 frame_num_args to default frame_num_args_unknown.
4434 * v850-tdep.c (v850_gdbarch_init): Ditto.
4435 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4436 * sh-tdep.c (sh_gdbarch_init): Ditto.
4437 * s390-tdep.c (s390_gdbarch_init): Ditto.
4438 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4439 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4440 * mips-tdep.c (mips_gdbarch_init): Ditto.
4441 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4442 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4444 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4445 * i386-tdep.c (i386_gdbarch_init): Ditto.
4446 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4447 * frv-tdep.c (frv_gdbarch_init): Ditto.
4448 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4449 * cris-tdep.c (cris_gdbarch_init): Ditto.
4450 * avr-tdep.c (avr_gdbarch_init): Ditto.
4451 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4452
8d3b0994
AC
44532003-06-09 Andrew Cagney <cagney@redhat.com>
4454
4455 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4456 (print_frame_args): Moved to "stack.c".
4457 * stack.c: Include "gdb_assert.h".
4458 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4459 (print_frame_args): Moved from "printcmd.c".
4460 * frame.h (print_frame_args): Delete declaration.
4461 * Makefile.in (stack.o): Update dependencies.
4462
25e3a86b
AC
44632003-06-08 Andrew Cagney <cagney@redhat.com>
4464
4465 * frame.c (get_prev_frame): Remove reference to
4466 frame_args_address_correct in comments.
4467 * frame-base.c (default_frame_args_address): Delete code
4468 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4469 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4470 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4471 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4472 (vax_frame_args_address_correct): Delete declaration.
4473
a9e5fdc2
AC
44742003-06-08 Andrew Cagney <cagney@redhat.com>
4475
4476 * gdbarch.sh (UNWIND_SP): Add.
4477 * gdbarch.h, gdbarch.c: Re-generate.
4478 * frame.c (frame_sp_unwind): New function.
4479 (get_frame_sp): New function.
4480 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4481 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4482 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4483 value.
4484 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4485 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4486
8983bd83
AC
44872003-06-08 Andrew Cagney <cagney@redhat.com>
4488
7fec2c59
AC
4489 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4490 REMOTE_BREAKPOINT.
4491 * remote.c: Update.
4492 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4493 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4494 * config/m68k/tm-sun3.h: Update.
4495 * config/m68k/tm-m68klynx.h: Update.
4496 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4497
8983bd83
AC
4498 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4499 trad_frame". Update comments.
4500 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4501 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4502 (trad_frame_register_value, trad_frame_prev_register): Update.
4503
b9362cc7
AC
45042003-06-08 Andrew Cagney <cagney@redhat.com>
4505
4506 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4507 from GCC's acinclude.m4.
4508 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4509 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4510 * main.c (error_init): Delete declaration.
4511 * defs.h (error_init): Declare.
4512 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4513 (rs6000_convert_from_func_ptr_addr): Make static.
4514 (_initialize_rs6000_tdep): Add declaration.
4515 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4516 (show_commands, set_verbose, show_history): Delete declaration.
4517 * top.h (set_verbose): Add declaration.
4518 (show_history, set_history, show_commands): Add declaration.
4519 (do_restore_instream_cleanup): Add declaration.
4520 * objc-lang.c (specialcmp): Make static.
4521 (print_object_command): Make static.
4522 (find_objc_msgsend): Make static.
4523 (find_objc_msgcall_submethod_helper): Make static.
4524 (find_objc_msgcall_submethod): Make static.
4525 (_initialize_objc_language): Add declaration.
4526 (find_implementation_from_class): Make static.
4527 (find_implementation): Make static.
4528 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4529 * objc-lang.h (lookup_struct_typedef): Add declaration.
4530 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4531 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4532 (do_restore_user_call_depth): Make static.
4533 (do_restore_instream_cleanup): Delete declaration.
4534 (dont_repeat): Delete declaration.
4535 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4536 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4537 * reggroups.c (_initialize_reggroup): Add declaration.
4538 * cp-support.c (_initialize_cp_support): Add declaration.
4539 * cp-abi.c (_initialize_cp_abi): Add declaration.
4540 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4541 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4542 (_initialize_gnu_v3_abi): Add declaration.
4543 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4544 (_initialize_gnu_v2_abi): Add declaration.
4545 * frame-base.c (_initialize_frame_base): Add declaration.
4546 * doublest.c (floatformat_from_length): Make static.
4547 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4548 * frame.c (create_sentinel_frame): Make static.
4549 (_initialize_frame): Add declaration.
4550 * top.c (do_catch_errors): Make static.
4551 (gdb_rl_operate_and_get_next_completion): Make static.
4552 * typeprint.c: Include "typeprint.h".
4553 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4554 (sentinel_frame_this_id): Make static.
4555 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4556 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4557 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4558 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4559 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4560 * maint.c (maintenance_print_architecture): Make static.
4561 * signals/signals.c (_initialize_signals): Add declaration.
4562 * std-regs.c (_initialize_frame_reg): Add declaration.
4563 * jv-exp.y (push_variable): ISO C definition.
4564 (push_qualified_expression_name): Ditto.
4565 * memattr.c (_initialize_mem): Add declaration.
4566 * remote.c (remote_check_watch_resources): Make static.
4567 (remote_stopped_by_watchpoint): Make static.
4568 (remote_stopped_data_address): Make static.
4569 * d10v-tdep.c (nr_dmap_regs): Make static.
4570 (a0_regnum): Make static.
4571 (d10v_frame_unwind_cache): Make static.
4572 (d10v_frame_p): Make static.
4573 * osabi.c (show_osabi): Make static.
4574 (_initialize_gdb_osabi): Add extern declaration.
4575 * gdbtypes.c (make_qualified_type): Make static.
4576 (safe_parse_type): Make static.
4577 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4578 * macrotab.c (macro_bcache_free): Make static.
4579 * interps.c (interp_set_quiet): Make static.
4580 (interpreter_exec_cmd): Make static.
4581 * stack.h (select_frame_command): New file.
4582 * stack.c: Include "stack.h".
4583 (select_frame_command_wrapper): Delete function.
4584 (select_frame_command): Make global.
4585 * infcall.c: Include "infcall.h".
4586 * linespec.c: Include "linespec.h".
4587 * symfile.c (sections_overlap): Make static.
4588 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4589 * charset.c (_initialize_charset): Add missing prototype.
4590 * regcache.c (init_legacy_regcache_descr): Make static.
4591 (do_regcache_xfree): Make static.
4592 (regcache_xfer_part): Make static.
4593 (_initialize_regcache): Add missing prototype.
4594 * breakpoint.c (parse_breakpoint_sals): Make static.
4595 (breakpoint_sals_to_pc): Make static.
4596 * interps.h (clear_interpreter_hooks): ISO C declaration.
4597 * Makefile.in (stack_h): Define.
4598 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4599 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4600
a0f267c7
AC
46012003-06-08 Andrew Cagney <cagney@redhat.com>
4602
4603 * Makefile.in (d10v-tdep.o): Update dependencies.
4604 (SFILES): Add trad-frame.c.
4605 (trad_frame_h): Define.
4606 (COMMON_OBS): Add trad-frame.o.
4607 (trad-frame.o): Specify dependencies.
4608 * d10v-tdep.c: Include "trad-frame.h".
4609 (saved_regs_unwinder): Delete function.
4610 (d10v_frame_prev_register): Use trad_frame_prev_register.
4611 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4612 trad_frame", delete "regs" and "prev_sp".
4613 (prologue_find_regs): Use trad-frame.
4614 * trad-frame.h, trad-frame.c: New files.
4615
4538b4f4
MK
46162003-06-08 Mark Kettenis <kettenis@gnu.org>
4617
4618 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4619
a0273b2f
AF
46202003-06-07 Adam Fedor <fedor@gnu.org>
4621
4622 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4623 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4624 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4625 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4626 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4627 Use it.
4628
3a6c3343
AC
46292003-06-07 Andrew Cagney <cagney@redhat.com>
4630
4631 * symfile.h: Re-indent, clean up comments.
4632
b46e02f6
AC
46332003-06-07 Andrew Cagney <cagney@redhat.com>
4634
4635 * inferior.h (deprecated_write_sp): Replace
4636 generic_target_write_sp.
4637 * regcache.c (deprecated_write_sp): Replace
4638 generic_target_write_sp.
4639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4640 * vax-tdep.c (vax_gdbarch_init): Update.
4641 * v850-tdep.c (v850_gdbarch_init): Update.
4642 * sparc-tdep.c (sparc_gdbarch_init): Update.
4643 * sh-tdep.c (sh_gdbarch_init): Update.
4644 * s390-tdep.c (s390_gdbarch_init): Update.
4645 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4646 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4647 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4648 * mcore-tdep.c (mcore_gdbarch_init): Update.
4649 * m68k-tdep.c (m68k_gdbarch_init): Update.
4650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4651 * ia64-tdep.c (ia64_gdbarch_init): Update.
4652 * h8300-tdep.c (h8300_gdbarch_init): Update.
4653 * frv-tdep.c (frv_gdbarch_init): Update.
4654 * cris-tdep.c (cris_gdbarch_init): Update.
4655 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4656
a42e117c
AC
46572003-06-07 Andrew Cagney <cagney@redhat.com>
4658
4659 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4660 Assert that PC_REGNUM is valid.
4661 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4662
bd1ce8ba
AC
46632003-06-07 Andrew Cagney <cagney@redhat.com>
4664
4665 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4666 * gdbarch.h, gdbarch.c: Regenerate.
4667 * mn10300-tdep.c: Include "gdb_assert.h".
4668 (mn10300_read_fp): New function.
4669 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4670 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4671 * ia64-tdep.c: Include "gdb_assert.h".
4672 (ia64_read_fp): New function.
4673 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4674 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4675 * regcache.c (generic_target_read_sp): Delete function.
4676 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4677 * inferior.h (generic_target_read_sp): Delete declaration.
4678 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4679 generic_target_read_sp.
4680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4681 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4682 * sh-tdep.c (sh_gdbarch_init): Ditto.
4683 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4684 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4685
ec5cbaec
AC
46862003-06-07 Andrew Cagney <cagney@redhat.com>
4687
4688 * gdbarch.sh: Comment each field of startup_gdbarch.
4689 * gdbarch.h, gdbarch.c: Re-generate.
4690
cde9ea48
AC
46912003-06-07 Andrew Cagney <cagney@redhat.com>
4692
4693 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4694 * gdbarch.h, gdbarch.c: Re-generate.
4695 * regcache.c: Update comments on read_pc et.al.
4696 (generic_target_read_pc): Delete function.
4697 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4698 * inferior.h (generic_target_read_pc): Delete declaration.
4699 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4700 generic_target_read_pc.
4701 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4702 * sh-tdep.c (sh_gdbarch_init): Ditto.
4703 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4705
9a90a780
AC
47062003-06-07 Andrew Cagney <cagney@redhat.com>
4707
4708 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4709 "index" with "special_local_sect". Use strcmp instead of STREQ.
4710 Append period to coments.
4711
a39a16c4
MM
47122003-06-06 Mark Mitchell <mark@codesourcery.com>
4713
4714 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4715 (elfstab_offset_sections): Likewise.
4716 * gdb-stabs.h (stab_section_info): Likewise.
4717 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4718 * objfiles.c (objfile_relocate): Likewise.
4719 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4720 * remote.c (get_offsets): Likewise.
4721 (remote_cisco_objfile_relocate): Likewise.
4722 * somread.c (som_symfile_offsets): Likewise.
4723 * symfile.c (alloc_section_addr_info): New function.
4724 (build_section_addr_info_from_section_tab): Use it.
4725 (free_section_addr_info): Adjust.
4726 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4727 (syms_from_objfile): Allocate local_addr dynamically.
4728 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4729 dynamically.
4730 (add_symbol_file_command): Allocate sect_opts dynamically.
4731 (reread_symbols): Avoid use of SECT_OFF_MAX.
4732 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4733 (alloc_section_addr_info): Declare it.
4734 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4735 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4736 dynamically.
4737 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4738
20c6c2f8
AC
47392003-06-06 Andrew Cagney <cagney@redhat.com>
4740
4741 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4742 (d10v_frame_unwind_cache): Do not set "return_pc".
4743
884a26c8
MS
47442003-06-06 Michael Snyder <msnyder@redhat.com>
4745
4746 * h8300-tdep.c: Make tidy (long lines).
4747
088ce440
ML
47482003-06-06 Michal Ludvig <mludvig@suse.cz>
4749
8ffd9b1b 4750 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4751 to regcache_collect().
4752
7d773d96
JB
47532003-06-05 J. Brobecker <brobecker@gnat.com>
4754
4755 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4756 pc_in_sigtramp multiarch method.
4757 (hppa_hpux_som_init_abi): Use it.
4758 (hppa_hpux_elf_init_abi): Likewise.
4759 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4760 macro has been multiarched.
4761 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4762 macro here, as hppa64 isn't multiarched yet.
4763
1df6926e
AC
47642003-06-05 Andrew Cagney <cagney@redhat.com>
4765
4766 * Makefile.in (value_h): Add $(frame_h).
4767 * value.h: Include "frame.h".
4768 (struct value): Replace "frame_addr" with "frame_id".
4769 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4770 * values.c (allocate_value): Use VALUE_FRAME_ID.
4771 (value_copy): Use VALUE_FRAME_ID.
4772 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4773 * valops.c (value_assign): Update. Use frame_find_by_id.
4774
6b53acc6
ML
47752003-06-05 Michal Ludvig <mludvig@suse.cz>
4776
4777 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4778 in each pass.
4779
4d9850d3
JJ
47802003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4781
4782 * thread-db.c (check_event): For create/death event breakpoints,
4783 loop through all messages to ensure that we read the message
4784 corresponding to the breakpoint we are at.
4785
8efca6ba
MS
47862003-06-04 Michael Snyder <msnyder@redhat.com>
4787
4788 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4789
0912c7f2
MK
47902003-06-04 Mark Kettenis <kettenis@gnu.org>
4791
4792 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4793 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4794 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4795 when handling .eh_frame sections.
4796
4e370325
JB
47972003-06-04 J. Brobecker <brobecker@gnat.com>
4798
4799 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4800 prepare_to_proceed procedure instead of the hppa-specific one.
4801 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4802
b757528f 48032003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4804
b757528f
JJ
4805 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4806 * config.in: Regenerated.
4807 * configure.in: Add test for syscall function and check for
4808 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4809 * configure: Regenerated.
4810 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4811 <sys/syscall.h>.
4812 (kill_lwp): New function that uses tkill syscall or
4813 uses kill, depending on whether threading model is nptl or not.
4814 All callers of kill() changed to use kill_lwp().
4815 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4816 see if all threads have already exited in the nptl model.
4817 (stop_and_resume_callback): New callback function used by the
4818 lin_lwp_wait thread exit handling code.
4819 (stop_wait_callback): Check for threads already having exited and
4820 delete such threads fromt the lwp list when discovered.
4821 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4822
b757528f
JJ
4823 Roland McGrath <roland@redhat.com>
4824 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4825 nptl libthread_db.
4826
087779b1
RH
48272003-06-03 Richard Henderson <rth@redhat.com>
4828
b21fd293
RH
4829 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4830 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4831 (alpha_sigtramp_frame_prev_register): Likewise.
4832 (alpha_heuristic_frame_prev_register): Likewise.
4833 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4834
8ffd9b1b 4835 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4836 alpha-specific register id names.
4837 (alpha_mdebug_frame_unwind_cache): Likewise.
4838 (alpha_mdebug_frame_prev_register): Likewise.
4839
baa490c4
RH
48402003-06-03 Richard Henderson <rth@redhat.com>
4841
4842 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4843 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4844 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4845 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4846 unwind routines.
4847 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4848 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4849 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4850
4851 * alpha-linux-tdep.c: Remove unnecessary includes.
4852 * Makefile.in (alpha-linux-tdep.o): Update.
4853
48542003-06-03 Richard Henderson <rth@redhat.com>
4855
4856 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4857 (alphabsd_fill_fpreg): Likewise.
4858
f534e522
JB
48592003-06-03 J. Brobecker <brobecker@gnat.com>
4860
4861 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4862 references to struct frame_info fields by calls to the equivalent
4863 accessors. Necessary now that frame_info is opaque.
4864
4035536b
JB
48652003-06-03 J. Brobecker <brobecker@gnat.com>
4866
4867 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4868 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4869 structure, field no longer exists.
4870
0bd79c5c
JB
48712003-06-03 J. Brobecker <brobecker@gnat.com>
4872
4873 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4874 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4875
37bb6d9f
JB
48762003-06-03 J. Brobecker <brobecker@gnat.com>
4877
4878 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4879 references to struct frame_info fields by calls to the equivalent
4880 accessors. Necessary now that frame_info is opaque.
4881
852ee05c
JB
48822003-06-03 J. Brobecker <brobecker@gnat.com>
4883
4884 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4885 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4886 structure, field no longer exists.
4887
7d58c67d
TR
48882003-06-03 Theodore A. Roth <troth@openavr.org>
4889
8ffd9b1b 4890 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4891 accumulation of the size of all registers instead of blindly using
4892 DEPRECATED_REGISTER_BYTES.
4893
0a48e7e8
MS
48942003-06-03 Michael Snyder <msnyder@redhat.com>
4895
4896 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4897 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4898 for h8300sx.
4899
9798ab0d
JB
49002003-06-03 J. Brobecker <brobecker@gnat.com>
4901
4902 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4903 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4904
00b037e2
AC
49052003-06-03 Andrew Cagney <cagney@redhat.com>
4906
4907 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4908 (sparc_convert_to_raw): Delete function.
4909 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4910 register_convert_to_virtual.
4911
043b2f77
JJ
49122003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4913
4914 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4915 layer if not dealing with a statically-linked threaded program.
4916
f43caff8
KW
49172003-06-03 Kris Warkentin <kewarken@qnx.com>
4918
4919 * solib.c (solib_open): Update comment to reflect actual search order.
4920
ae1e7417
AC
49212003-06-03 Andrew Cagney <cagney@redhat.com>
4922
4923 * frame.c (get_frame_memory_signed): New function.
4924 (get_frame_memory, get_frame_memory_unsigned): New function.
4925 (get_frame_arch): New function.
4926 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4927 (get_frame_memory, get_frame_unsigned_memory): Declare.
4928 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4929 get_frame_memory_unsigned and get_frame_arch.
4930 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4931
cb123844
RG
49322003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4933
4934 * MAINTAINERS (write after approval): Add myself.
4935
1bb792e9
JB
49362003-06-03 Jim Blandy <jimb@redhat.com>
4937
4938 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4939 elements of gregset_t are 64 bits each, but access registers
4940 are still 32 bits, so they're packed two per gregset_t
4941 element. Unpack/pack them properly.
4942
aee8d8ba
DC
49432003-06-02 David Carlton <carlton@bactrian.org>
4944
4945 * linespec.c (find_methods): Break out code into
4946 add_matching_methods and add_constructors.
4947 (add_matching_methods): New.
4948 (add_constructors): Ditto.
4949
bf7488d2
AC
49502003-06-02 Andrew Cagney <cagney@redhat.com>
4951
bf7488d2
AC
4952 * sparc-tdep.c (sparc_print_registers): Delete call to
4953 REGISTER_CONVERTIBLE.
4954 (sparc_gdbarch_init): Do not set register_convertible.
4955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4956 * frv-tdep.c (frv_gdbarch_init): Ditto.
4957 * cris-tdep.c (cris_gdbarch_init): Ditto.
4958
adedef68
EZ
49592003-06-02 Elena Zannoni <ezannoni@redhat.com>
4960
8ffd9b1b 4961 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4962 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4963 (syms_from_objfile): Ditto.
4964
650fcc91
AS
49652003-06-03 Andreas Schwab <schwab@suse.de>
4966
4967 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4968 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4969
df4a182b
RH
49702003-06-02 Richard Henderson <rth@redhat.com>
4971
4972 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4973 a member of all_reggroup.
4974
c483c494
RH
49752003-06-02 Richard Henderson <rth@redhat.com>
4976
4977 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4978 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4979 (alpha_lds, alpha_sts): New.
4980 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4981 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4982 restructure and fail for type sizes other than 4 or 8.
4983 (alpha_value_to_register): Similarly.
4984 (alpha_extract_return_value): Use alpha_sts.
4985 (alpha_store_return_value): Use alpha_lds.
4986 (alpha_gdbarch_init): Update hooks.
4987
b38b6be2
RH
49882003-06-02 Richard Henderson <rth@redhat.com>
4989
4990 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4991 regnum identifiers.
4992 (alpha_sigtramp_register_address): Likewise.
4993
98a8e1e5
RH
49942003-06-02 Richard Henderson <rth@redhat.com>
4995
4996 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4997 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4998 * alpha-tdep.h: Declare them.
4999
5000 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5001 Remove zerobuf. Don't error on UNIQUE.
5002 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5003 (ALPHA_REGSET_UNIQUE): Provide default.
5004 (supply_gregset): Use alpha_supply_int_regs.
5005 (fill_gregset): Use alpha_fill_int_regs.
5006 (supply_fpregset): Use alpha_supply_fp_regs.
5007 (fill_fpregset): Use alpha_fill_fp_regs.
5008 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5009 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5010 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5011 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5012 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5013 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5014
67dfac52
RH
50152003-06-02 Richard Henderson <rth@redhat.com>
5016
f75d70cc
RH
5017 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5018
67dfac52
RH
5019 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5020 (alpha_store_return_value): Likewise.
5021
0cf566ec
DC
50222003-06-02 David Carlton <carlton@math.stanford.edu>
5023
5024 * block.c (contained_in): Add 'const' to arguments.
5025 (block_function): Ditto.
5026 * block.h: Update declarations for block_function and
5027 contained_in.
5028
cdef89d0
DC
50292003-06-02 David Carlton <carlton@math.stanford.edu>
5030
5031 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5032 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5033 * p-valprint.c (pascal_val_print): Ditto.
5034 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5035
72667056
RH
50362003-06-02 Richard Henderson <rth@redhat.com>
5037
98a8e1e5
RH
5038 * alpha-tdep.c (alpha_push_dummy_call): Use
5039 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5040
8ffd9b1b 5041 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5042 sign-extension of 32-bit values.
5043 (alpha_store_return_value): Similarly.
0ede8eca 5044
98a8e1e5
RH
5045 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5046 (alpha_extract_return_value): Likewise.
5047 (alpha_store_return_value): Likewise.
7b5e1cb3 5048
98a8e1e5
RH
5049 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5050 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5051
98a8e1e5
RH
5052 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5053 (alpha_extract_struct_value_address): Likewise.
5054 (alpha_store_return_value): Likewise.
5055 (alpha_store_struct_return): Remove.
5056 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5057
98a8e1e5
RH
5058 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5059 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5060 macros where appropriate.
5061 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5062 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5063
98a8e1e5
RH
5064 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5065 for SP, GP; void_func_ptr for PC; non-language-specific types
5066 for all others.
5067 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5068
6dd77b81
RH
50692003-06-02 Richard Henderson <rth@redhat.com>
5070
5071 * top.h (lim_at_start): Declare.
5072 * main.c (captured_main): Set it.
5073 * top.c (lim_at_start): Define.
5074 (command_loop): Use it instead of &environ.
5075 * event-top.c (command_handler): Likewise.
5076
f4dbdb54
JT
50772003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5078
5079 * mipsnbsd-tdep.c: Update copyright years.
5080 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5081
8f285956
RH
50822003-06-01 Richard Henderson <rth@redhat.com>
5083
98a8e1e5
RH
5084 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5085 (alpha-linux-tdep.o): Update dependencies.
5086 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5087 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5088
615967cb
RH
50892003-06-01 Richard Henderson <rth@redhat.com>
5090
98a8e1e5
RH
5091 * alpha-tdep.c (alpha_register_reggroup_p): New.
5092 (alpha_gdbarch_init): Register it.
615967cb 5093
b59661bd
AC
50942003-06-02 Andrew Cagney <cagney@redhat.com>
5095
5096 * dwarfread.c: Eliminate "register"
5097 (decode_die_type): Eliminate assignment within "if".
5098 (struct_type, decode_array_element_type): Ditto.
5099 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5100 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5101 (decode_modified_type, completedieinfo): Ditto.
5102 * block.c: Eliminate "register".
5103 (blockvector_for_pc_sect): Eliminate assignment within "if".
5104 * cp-support.h (struct symbol): Opaque declaration.
5105 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5106
5ef165c2
RH
51072003-06-01 Richard Henderson <rth@redhat.com>
5108
98a8e1e5
RH
5109 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5110 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5111
143985b7
AF
51122003-06-01 Adam Fedor <fedor@gnu.org>
5113
5114 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5115 * gdbarch.[ch]: Regenerate.
5116 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5117 (hppa_gdbarch_init): Set it in the gdbarch vector.
5118 * i386-tdep.c (i386_fetch_pointer_argument): New
5119 (i386_gdbarch_init): Set it into gdbarch.
5120 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5121 (rs6000_gdbarch_init): Set it in gdbarch.
5122 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5123 (sparc_gdbarch_init): Set it in gdbarch.
5124
ae0167b9
AC
51252003-06-01 Andrew Cagney <cagney@redhat.com>
5126
7c0b4a20
AC
5127 * defs.h (extract_address): Delete declaration.
5128 * findvar.c (extract_address): Delete function.
5129 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5130 extract_address with the inline equivalent,
5131 extract_unsigned_integer.
5132 (xstormy16_extract_struct_value_address): Ditto.
5133 (xstormy16_pointer_to_address): Ditto.
5134 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5135 * v850-tdep.c (v850_push_arguments): Ditto.
5136 (v850_extract_return_value): Ditto.
5137 (v850_extract_struct_value_address): Ditto.
5138 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5139 (sparcnbsd_get_longjmp_target_64): Ditto.
5140 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5141 (get_longjmp_target): Ditto.
5142 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5143 (sh64_extract_struct_value_address): Ditto.
5144 (sh_push_arguments): Ditto.
5145 (sh64_push_arguments): Ditto.
5146 * remote-vxsparc.c (vx_read_register): Ditto.
5147 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5148 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5149 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5150 * mipsv4-nat.c (get_longjmp_target): Ditto.
5151 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5152 * mips-nat.c (get_longjmp_target): Ditto.
5153 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5154 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5155 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5156 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5157 * irix5-nat.c (get_longjmp_target): Ditto.
5158 * irix4-nat.c (get_longjmp_target): Ditto.
5159 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5160 (ia64_push_arguments): Ditto.
5161 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5162 * h8300-tdep.c (h8300_push_arguments): Ditto.
5163 (h8300_store_return_value): Ditto.
5164 (h8300_extract_struct_value_address): Ditto.
5165 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5166 (frv_push_arguments): Ditto.
5167 * avr-tdep.c (avr_pointer_to_address): Ditto.
5168 (avr_push_arguments): Ditto.
5169 * arm-tdep.c (arm_push_dummy_call): Ditto.
5170 (arm_get_longjmp_target): Ditto.
5171 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5172 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5173 (alpha_get_longjmp_target): Ditto.
5174
ae0167b9
AC
5175 * solib-irix.c (extract_mips_address): Inline extract_address,
5176 replacing it with extract_signed_integer.
5177 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5178 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5179 (first_link_map_member, open_symbol_file_object): Ditto.
5180 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5181 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5182 (LM_NEXT, LM_NAME): Ditto.
5183
44d88583
RH
51842003-06-01 Richard Henderson <rth@redhat.com>
5185
98a8e1e5
RH
5186 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5187 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5188 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5189 (alpha_cannot_store_register): Likewise.
5190 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5191 * alpha-nat.c (supply_gregset): Likewise.
5192 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5193
310e9b6a
AC
51942003-06-01 Andrew Cagney <cagney@redhat.com>
5195
5196 * infcall.c (call_function_by_hand): Update comment on
5197 DEPRECATED_DUMMY_WRITE_SP.
5198
5199 * mips-tdep.c (mips_gdbarch_init): Do not set
5200 deprecated_dummy_write_sp.
5201 (mips_eabi_push_dummy_call): Set the SP register.
5202 (mips_o64_push_dummy_call): Set the SP register.
5203 (mips_o32_push_dummy_call): Set the SP register.
5204 (mips_n32n64_push_dummy_call): Set the SP register.
5205
5ab84872
RH
52062003-06-01 Richard Henderson <rth@redhat.com>
5207
98a8e1e5
RH
5208 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5209 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5210 (supply_gregset): Likewise.
5211 * alpha-tdep.c (alpha_store_return_value): Likewise.
5212 (alpha_get_longjmp_target): Likewise.
5213 (alpha_register_name): Constify array.
5214 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5215 deprecated_register_size, deprecated_register_bytes,
5216 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5217 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5218 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5219
09cc52fd
RH
52202003-06-01 Richard Henderson <rth@redhat.com>
5221
5222 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5223 from arg_reg_buffer to regcache to avoid double conversion.
5224
c7f16359
MK
52252003-06-01 Mark Kettenis <kettenis@gnu.org>
5226
5227 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5228 SP_REGNUM.
5229 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5230 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5231
7131cb6e
RH
52322003-06-01 Richard Henderson <rth@redhat.com>
5233
98a8e1e5
RH
5234 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5235 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5236
f3e0f90b
RH
52372003-06-01 Richard Henderson <rth@redhat.com>
5238
98a8e1e5
RH
5239 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5240 not overlapping PC_REGNUM.
f3e0f90b 5241
c88e30c0
RH
52422003-06-01 Richard Henderson <rth@redhat.com>
5243
98a8e1e5
RH
5244 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5245 alpha_push_arguments. Don't dump argument register data to
5246 the target stack. Fix float and 128-bit long double semantics.
5247 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5248 (alpha_fix_call_dummy): Remove.
5249 (alpha_call_dummy_words): Remove.
5250 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5251
f1a559ae
RH
52522003-06-01 Richard Henderson <rth@redhat.com>
5253
5254 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5255
5e045346
AC
52562003-06-01 Andrew Cagney <cagney@redhat.com>
5257
95404a3e
AC
5258 * mips-tdep.c (is_mips16_addr): New function.
5259 (make_mips16_addr, unmake_mips16_addr): New functions.
5260 (pc_is_mips16, mips_fetch_instruction): Use.
5261 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5262 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5263 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5264 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5265 TARGET_MIPS.
5266 * config/mips/tm-mips.h: Update copyright.
5267 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5268 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5269 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5270 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5271 (TM_PRINT_INSN_MACH): Delete.
5272 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5273
5e045346
AC
5274 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5275 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5276 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5277 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5278 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5279 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5280 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5281 mips*-*-riscos* and mips*-*-sysv* onto mips.
5282 * config/mips/mips64.mt: New file.
5283 * config/mips/mips.mt: New file.
5284 * config/mips/littlemips.mt: Delete file.
5285 * config/mips/decstation.mt: Delete file.
5286 * config/mips/vr4300el.mt: Delete file.
5287 * config/mips/vr5000el.mt: Delete file.
5288 * config/mips/vr5000.mt: Delete file.
5289 * config/mips/vr4100.mt: Delete file.
5290 * config/mips/vr4xxxel.mt: Delete file.
5291 * config/mips/vr4300.mt: Delete file.
5292 * config/mips/vr4xxx.mt: Delete file.
5293 * config/mips/bigmips.mt: Delete file.
5294 * config/mips/bigmips64.mt: Delete file.
5295 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5296 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5297 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5298 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5299 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5300 "tm-bigmips.h".
5301 * config/mips/tm-irix3.h: Ditto.
5302 * config/mips/tm-mipsv4.h: Ditto.
5303 * config/mips/tm-embed.h: Ditto.
5304 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5305 "tm-bigmips64.h".
5306 * config/mips/tm-vr5000el.h: Delete file.
5307 * config/mips/tm-tx39l.h: Delete file.
5308 * config/mips/tm-vr4300el.h: Delete file.
5309 * config/mips/tm-vr4xxxel.h: Delete file.
5310 * config/mips/tm-vr4300.h: Delete file.
5311 * config/mips/tm-vr4100.h: Delete file.
5312 * config/mips/tm-vr4xxx.h: Delete file.
5313 * config/mips/tm-vr5000.h: Delete file.
5314 * config/mips/tm-embedl64.h: Delete file.
5315 * config/mips/tm-embedl.h: Delete file.
5316 * config/mips/tm-embed64.h: Delete file.
5317 * config/mips/tm-bigmips64.h: Delete file.
5318 * config/mips/tm-bigmips.h: Delete file.
5319
2473a4a9
MK
53202003-06-01 Mark Kettenis <kettenis@gnu.org>
5321
97a5b208
MK
5322 Fix gdb/1216.
5323 * shnbsd-nat.c: Include "sh-tdep.h".
5324
2473a4a9
MK
5325 From Richard Henderson <rth@redhat.com>:
5326 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5327
e0f7ec59
AC
53282003-05-31 Andrew Cagney <cagney@redhat.com>
5329
5330 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5331 forward declaration.
5332 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5333 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5334 (mips_find_saved_regs): Use set_reg_offset.
5335 (mips_frame_init_saved_regs): Delete function.
5336 (mips_pop_frame): Call mips_find_saved_regs instead of
5337 DEPRECATED_FRAME_INIT_SAVED_REGS.
5338
68dcc709
AC
53392003-05-31 Andrew Cagney <cagney@redhat.com>
5340
5341 * mips-tdep.c (mips_gdbarch_init): Do not set
5342 deprecated_max_register_raw_size, register_virtual_size, and
5343 deprecated_max_register_virtual_size.
5344
cfc14b3a
MK
53452003-05-31 Mark Kettenis <kettenis@gnu.org>
5346
6405b0a6
MK
5347 * i386-tdep.c: Include "dwarf2-frame.h".
5348 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5349 * Makefile.in (i386-tdep.o): Update dependencies.
5350
cfc14b3a
MK
5351 * dwarf2-frame.c, dwarf2-frame.h: New files.
5352 * Makefile.in (SFILES): Add dwarf2-frame.c.
5353 (dwarf2_frame_h): Define.
5354 (COMMON_OBS): Add dwarf2-frame.o.
5355 (dwarf2-frame.o): Add dependencies.
5356
6a2751d2
AJ
53572003-05-31 Andreas Jaeger <aj@suse.de>
5358
5359 * x86-64-linux-nat.c: Fix comment.
5360
1c3545ae
MK
53612003-05-31 Mark Kettenis <kettenis@gnu.org>
5362
10f93086
MK
5363 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5364 function signature.
5365
1c3545ae
MK
5366 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5367 have a sigcontext_addr handler.
5368 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5369 sigcontext_addr handler.
5370
e11c53d2
AC
53712003-05-31 Andrew Cagney <cagney@redhat.com>
5372
5373 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5374 (print_fp_register_row): Replace do_fp_register_row.
5375 (mips_print_fp_register): Add "file" and "frame" parameters.
5376 (mips_print_register): Add "file" and "frame" parameters.
5377 (mips_print_registers_info): Replace mips_do_registers_info.
5378 (mips_gdbarch_init): Set print_registers_info instead of
5379 deprecated_do_registers_info.
5380 (mips_read_fp_register_single): Add "frame" parameter.
5381 (mips_read_fp_register_double): Add "frame" parameter.
5382
a3386186
MK
53832003-05-31 Mark Kettenis <kettenis@gnu.org>
5384
70913449
MK
5385 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5386 Fixes a bug where GDB would print the wrong register names for
5387 targets without SSE.
5388
2b5e0749
MK
5389 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5390 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5391 registers.
5392
5393 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5394 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5395 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5396 TDEP->sc_sp_offset.
5397
a3386186
MK
5398 From Michal Ludvig <mludvig@suse.cz>:
5399 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5400 and `sc_num_regs'.
5401 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5402 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5403 I386_ST0_REGNUM): Move here from...
5404 * i386-tdep.c: ... here.
5405 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5406 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5407 registers if possible.
5408 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5409 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5410 Remove variables.
5411 (i386bsd_sc_reg_offset): New variable.
5412 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5413 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5414 TDEP->sc_sp_offset.
5415 (i386fbsd_sc_reg_offset): New variable.
5416 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5417 TDEP->sc_num_regs.
5418 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5419 variables.
5420 (i386fbsd4_sc_reg_offset): New variable.
5421 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5422 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5423 TDEP->sc_sp_offset.
5424 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5425 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5426 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5427 Remove variables.
5428 (i386nbsd_sc_reg_offset): New variable.
5429 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5430 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5431 TDEP->sc_sp_offset.
5432 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5433 Remove variables.
5434 (i386obsd_sc_reg_offset): New variable.
5435 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5436 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5437 TDEP->sc_sp_offset.
5438 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5439 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5440 for frame pointer offset in `struct sigcontext'.
5441
25ab4790
AC
54422003-05-31 Andrew Cagney <cagney@redhat.com>
5443
5444 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5445 architecture methods call_dummy_words, sizeof_call_dummy_words,
5446 push_return_address, store_struct_return, and fix_call_dummy. Set
5447 push_dummy_call instead of deprecated_push_arguments.
5448 (mips_store_struct_return): Delete function.
5449 (mips_fix_call_dummy): Delete function.
5450 (mips_push_return_address): Delete function.
5451 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5452 RA_REGNUM and T9_REGNUM.
5453 (mips_n32n64_push_dummy_call): Ditto for
5454 mips_n32n64_push_arguments.
5455 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5456 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5457
6a65450a
AC
54582003-05-31 Andrew Cagney <cagney@redhat.com>
5459
5460 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5461 "dummy_addr" to "bp_addr".
5462 * infcall.c (call_function_by_hand): Pass "funaddr" to
5463 gdbarch_push_dummy_call.
5464 * gdbarch.h, gdbarch.c: Re-generate.
5465 * i386-tdep.c (i386_push_dummy_call): Update.
5466 * arm-tdep.c (arm_push_dummy_call): Update.
5467 * d10v-tdep.c (d10v_push_dummy_call): Update.
5468
c4f35dd8
MK
54692003-05-31 Mark Kettenis <kettenis@gnu.org>
5470
5471 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5472 variable declarations.
5473 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5474 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5475 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5476 x86_64_init_frame_pc, x86_64_init_frame_pc,
5477 x86_64_function_has_prologue): Remove prototypes.
5478 (X86_64_NUM_GREGS): New define.
5479 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5480 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5481 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5482 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5483 XMM1_REGNUM): Remove defines.
5484 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5485 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5486 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5487 X86_64_XMM1_REGNUM): New defines.
5488 (struct x86_64_register_info): Renamed from `struct
5489 register_info'. Remove `size' member.
5490 (x86_64_register_info_table): Remove variable.
5491 (x86_64_register_info): New variable.
5492 (X86_64_NUM_REGS): New define.
5493 (X86_64_NUM_GREGS): Remove define.
5494 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5495 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5496 Remove variables.
5497 (x86_54_dwarf2_reg_to_regnum): Remove function.
5498 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5499 (x86_64_dwarf_reg_to_regnum): New function.
5500 (x86_64_register_name): Rewrite.
5501 (x86_64_register_raw_size): Remove function.
5502 (x86_64_register_byte_table): Remove variable.
5503 (x86_64_register_byte): Remove function.
5504 (x86_64_register_virtual_type): Remove function.
5505 (x86_64_register_type): New function.
5506 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5507 x86_64_register_convert_to_raw): Remove functions.
5508 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5509 (x86_64_use_struct_convention): Make static. Adjust for renamed
5510 defines.
5511 (x86_64_frame_init_saved_regs): Remove function.
5512 (x86_64_push_arguments): Make static. Change to accept a regcache
5513 as argument.
5514 (x86_64_store_return_value, x86_64_extract_return_value): Make
5515 static. Rewrite based on i386 counterparts.
5516 (x86_64_push_dummy_call): New function.
5517 (X86_64_NUM_SAVED_REGS): New define.
5518 (x86_64_register_number): Remove function.
5519 (x86_64_store_struct_return): Remove function.
5520 (x86_64_frameless_function_invocation,
5521 x86_64_function_has_prologue): Remove functions.
5522 (PROLOG_BUFSIZE): Remove define.
5523 (struct x86_64_frame_cache): New structure.
5524 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5525 x86_64_frame_cache, x86_64_frame_this_id,
5526 x86_64_frame_prev_register, x86_64_frame_p,
5527 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5528 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5529 functions.
5530 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5531 variables.
5532 (x86_64_skip_prologue): Rewrite in terms of
5533 x86_64_analyze_prologue.
5534 (x86_64_frame_base_address): New function.
5535 (x86_64_frame_base): New variable.
5536 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5537 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5538 set deprecated_fp_regnum, deprecated_register_size,
5539 deprecated_register_bytes, register_raw_size, register_byte,
5540 register_virtual_type, register_convertiable,
5541 register_convert_to_virtual, convert_to_raw,
5542 deprecated_get_saved_register, deprecated_target_read_fp,
5543 deprecated_push_arguments, deprecated_push_return_address,
5544 deprecated_pop_frame, deprecated_store_struct_return,
5545 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5546 frameless_function_invocation, deprecated_frame_saved_pc,
5547 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5548 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5549 deprecated_init_frame_pc and virtual_frame_pointer. Call
5550 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5551 and x86_64_frame_p. Call frame_base_set_default to register
5552 x86_64_frame_base.
5553 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5554 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5555 (_initialize_x86_64_tdep): Remove function.
5556 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5557 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5558 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5559 define.
5560 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5561 (x86_64_linux_sigcontext_addr): Rewrite.
5562 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5563 x86_64_linux_frame_saved_pc): Remove functions.
5564 (x86_64_linux_pc_in_sigtramp): Renamed from
5565 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5566 trampoline.
5567 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5568 Remove_functions.
5569 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5570 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5571 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5572 (x86_64_regmap): Rename to regmap.
5573 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5574 x86_64_num_gregs.
5575 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5576 x86_64_regmap.
5577 (x86_64_fxsave_offset): Remove function.
5578 (supply_fpregset): Simply call x86_64_supply_fxsave.
5579 (fill_fpregset): Simply call x86_64_fill_fxsave.
5580 (fetch_inferior_registers, store_inferior_registers): Avoid
5581 asignment in if-statement.
5582 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5583 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5584 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5585 (fetch_core_registers): Remove function.
5586 (linux_elf_core_fns): Remove.
5587 (offsetoff): Don't define.
5588 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5589 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5590 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5591 add core-regset.o.
5592 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5593 protection against multiple includes instead of NM_X86_64_h. Add
5594 various comments. Include "config/nm-linux.h". Don't include
5595 <signal.h>.
5596 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5597 GET_THREAD_SIGNALS): Remove defines.
5598 (x86_64_register_u_addr, kernel_u_size,
5599 lin_thread_get_thread_signals): Remove prototypes.
5600 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5601 [HAVE_LINK_H]: Don't include "solib.h".
5602 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5603 * config/i386/tm-x86-64linux.h: Fix comments.
5604 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5605 x86-64-tdep.o): Update dependencies.
5606
c25083af
AC
56072003-05-30 Andrew Cagney <cagney@redhat.com>
5608
c8f55a7b
AC
5609 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5610 Change parameter type to a "struct regcache *".
5611
c25083af
AC
5612 * gdbarch.sh: Regardless of the multi-arch level, always define
5613 the macro when not already defined.
5614 * gdbarch.h, gdbarch.c: Re-generate.
5615
fbe586ae
RH
56162003-05-30 Richard Henderson <rth@redhat.com>
5617
5618 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5619 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5620 (alpha_mdebug_frame_this_id): Likewise.
5621 (alpha_mdebug_frame_prev_register): Likewise.
5622 (alpha_mdebug_frame_base_address): Likewise.
5623 (alpha_mdebug_frame_locals_address): Likewise.
5624 (alpha_mdebug_frame_args_address): Likewise.
5625 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5626 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5627 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5628 loop increment.
5629 (alpha_heuristic_frame_this_id): Make static.
5630 (alpha_heuristic_frame_prev_register): Likewise.
5631 (alpha_heuristic_frame_base_address): Likewise.
5632 * alpha-tdep.h: Update.
5633
acd5c798
MK
56342003-05-30 Mark Kettenis <kettenis@gnu.org>
5635
5636 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5637 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5638 defenitions.
5639 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5640 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5641 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5642 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5643 I386_ST0_REGNUM): New defines.
5644 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5645 codestream_get): Remove define.
5646 (codestream_next_addr, condestream_addr, condestream_buf,
5647 codestream_off, codestream_cnt): Remove variables.
5648 (codestream_fill, codestream_seek, codestream_read): Remove
5649 functions.
5650 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5651 functionality.
5652 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5653 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5654 i386_frame_saved_pc, i386_saved_pc_after_call,
5655 i386_frame_num_args, i386_frame_init_saved_regs,
5656 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5657 i386_push_arguments): Remove functions.
5658 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5659 functionality. Use i386_analyze_prologue instead of
5660 i386_get_frame_setup.
5661 (I386_NUM_SAVED_REGS): New define.
5662 (struct i386_frame_cache): New structure.
5663 (i386_alloc_frame_cache, i386_analyze_struct_return,
5664 i386_skip_probe, i386_analyze_frame_setup,
5665 i386_analyze_register_saves, i386_analyze_prologue,
5666 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5667 i386_frame_prev_register, i386_sigtramp_frame_cache,
5668 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5669 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5670 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5671 New functions.
5672 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5673 New variables.
5674 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5675 I386_EAX_REGNUM and I386_EDX_REGNUM.
5676 (i386_extract_return_value, i386_store_return_value): Use
5677 I386_ST0_REGNUM where appropriate.
5678 (i386_extract_struct_value_address): Rewrite to use extract_address.
5679 (i386_svr4_pc_in_sigtramp): Add comment.
5680 (i386_svr4_sigcontext_addr): Rewrite.
5681 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5682 TDEP->sc_sp_offset.
5683 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5684 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5685 of new defines. Set push_dummy_call, don't set
5686 deprecated_push_arguments, deprecated_push_return_address,
5687 deprecated_pop_frame. Don't set parm_boundary. Don't set
5688 deprecated_frame_chain, deprecated_frame_saved_pc,
5689 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5690 save_dummy_frame_tos, unwind_pc. Call
5691 frame_unwind_append_predicate and frame_base_set_default. Don't
5692 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5693 Don't set frameless_function_invocation. Don't set
5694 deprecated_register_bytes, deprecated_register_size,
5695 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5696 * i386-linux-tdep.c: Fix formatting in some comments.
5697 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5698 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5699 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5700 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5701 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5702 redundant parentheses.
5703 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5704 (i386_linux_sigcontext_addr): Use it. Rewrite.
5705 (find_minsym_and_objfile): Change name of second argument.
5706 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5707 changed. Use frame_pc_unwind instead of
5708 DEPRECATED_SAVED_PC_AFTER_CALL.
5709 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5710 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5711 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5712 unwinder.
5713 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5714 "dummy-frame.h".
5715 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5716 (_initialize_i386_cygwin_tdep): New prototype.
5717 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5718 deprecated_frame_chain_valid.
5719 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5720 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5721 Rely on the SVR4 defaults.
5722 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5723 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5724
c89b70f1
AC
57252003-05-30 Andrew Cagney <cagney@redhat.com>
5726
5727 * infcall.c (call_function_by_hand): Always call
5728 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5729
85b32d22
RH
57302003-05-30 Richard Henderson <rth@redhat.com>
5731
c89b70f1
AC
5732 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5733 increment.
85b32d22 5734
bfe51b1e
JB
57352003-05-29 Jim Blandy <jimb@redhat.com>
5736
5737 Use gdbarch methods for solib stuff on PowerPC Linux.
5738 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5739 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5740 show through.
5741 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5742 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5743 giving the same effect as the #definitions above.
5744
1abf022c
AF
57452003-05-29 Adam Fedor <fedor@gnu.org>
5746
5747 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5748 (find_implementation_from_class): Replace it with the standard
5749 case i.e. do nothing.
5750
d2427a71
RH
57512003-05-29 Richard Henderson <rth@redhat.com>
5752
5753 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5754 (alpha_linux_sigtramp_offset): Use it. Make static.
5755 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5756 update for new frame model.
5757 * alpha-mdebug-tdep.c: New file.
5758 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5759 (alpha_osf1_init_abi): Install it.
5760 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5761 (linked_proc_desc_table): Remove.
5762 (alpha_frame_past_sigtramp_frame): Remove.
5763 (alpha_dynamic_sigtramp_offset): Remove.
5764 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5765 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5766 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5767 (push_sigtramp_desc): Remove.
5768 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5769 (alpha_cannot_store_register): Likewise.
5770 (alpha_sigcontext_addr): Remove.
5771 (alpha_find_saved_regs): Remove.
5772 (alpha_frame_init_saved_regs): Remove.
5773 (alpha_init_frame_pc_first): Remove.
5774 (read_next_frame_reg): Remove.
5775 (alpha_frame_saved_pc): Remove.
5776 (alpha_saved_pc_after_call): Remove.
5777 (temp_proc_desc, temp_saved_regs): Remove.
5778 (alpha_about_to_return): Remove.
5779 (cached_proc_desc): Remove.
5780 (alpha_frame_chain): Remove.
5781 (alpha_print_extra_frame_info): Remove.
5782 (alpha_init_extra_frame_info): Remove.
5783 (alpha_frame_locals_address): Remove.
5784 (alpha_frame_args_address): Remove.
5785 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5786 (alpha_push_dummy_frame): Remove.
5787 (alpha_pop_frame): Remove.
5788 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5789 (alpha_read_insn): New.
5790 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5791 for different insn encodings.
5792 (alpha_in_lenient_prologue): Remove.
5793 (struct alpha_sigtramp_unwind_cache): New.
5794 (alpha_sigtramp_frame_unwind_cache): New.
5795 (alpha_sigtramp_register_address): New.
5796 (alpha_sigtramp_frame_this_id): New.
5797 (alpha_sigtramp_frame_prev_register): New.
5798 (alpha_sigtramp_frame_unwind): New.
5799 (alpha_sigtramp_frame_p): New.
5800 (struct alpha_heuristic_unwind_cache): New.
5801 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5802 don't count nop insns that occur between functions.
5803 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5804 heuristic_proc_desc, but without the mdebug wrapping.
5805 (alpha_heuristic_frame_this_id): New.
5806 (alpha_heuristic_frame_prev_register): New.
5807 (alpha_heuristic_frame_unwind): New.
5808 (alpha_heuristic_frame_p): New.
5809 (alpha_heuristic_frame_base_address): New.
5810 (alpha_heuristic_frame_base): New.
5811 (alpha_unwind_dummy_id): New.
5812 (alpha_unwind_pc): New.
5813 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5814 frame related deprecated initializations; install replacements.
5815 (alpha_dump_tdep): Remove.
5816 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5817 (alpha_read_insn, alpha_after_prologue,
5818 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5819 alpha_heuristic_frame_prev_register,
5820 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5821 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5822 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5823 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5824
93ec1121
AC
58252003-05-29 Andrew Cagney <cagney@redhat.com>
5826
5827 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5828 dependant on the availability of ASSERT_FUNCTION.
5829 (ASSERT_FUNCTION): Do not define when there is no function name.
5830
98f08d3d
KB
58312003-05-29 Kevin Buettner <kevinb@redhat.com>
5832
5833 From Jimi X <jimix@watson.ibm.com>:
5834 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5835
0897f59b
JB
58362003-05-28 Jim Blandy <jimb@redhat.com>
5837
5838 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5839 argument to ptrace to int; the system headers should give it the
5840 right type, and pointers don't fit in ints on powerpc64-*-*.
5841
14898363
L
58422003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5843
5844 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5845 DW_TAG_catch_block.
5846
a7a48797
EZ
58472003-05-26 Elena Zannoni <ezannoni@redhat.com>
5848
5849 * stabsread.c (dbx_lookup_type): Make static.
5850 (read_type): Ditto.
5851 (add_undefined_type): Ditto.
5852 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5853 not export.
5854
f5479e9c
EZ
58552003-05-26 Elena Zannoni <ezannoni@redhat.com>
5856
5857 * hpread.c (hpread_has_name): Make static.
5858 (hpread_psymtab_to_symtab): Ditto.
5859 (file_exists): Ditto.
5860 (hpread_call_pxdb): Ditto.
5861 (hpread_pxdb_needed): Ditto.
5862 (hpread_quick_traverse): Ditto.
5863 (hpread_get_header): Ditto.
5864 (hpread_get_lntt): Ditto.
5865 (hpread_get_slt): Ditto.
5866 (class_of): Ditto.
5867
eb2e12d7
AS
58682003-05-25 Andreas Schwab <schwab@suse.de>
5869
78bf922a
AS
5870 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5871 stack_align and deprecated_extra_stack_alignment_needed.
5872 (m68k_stack_align): Delete.
5873
eb2e12d7
AS
5874 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5875 (m68k_register_virtual_size): Likewise.
5876 (altos_skip_prologue): Remove obsolete function.
5877 (isi_frame_num_args): Likewise.
5878 (news_frame_num_args): Likewise.
5879 (m68k_fix_call_dummy): Make static.
5880 (m68k_push_dummy_frame): Likewise.
5881 (m68k_pop_frame): Likewise.
5882 (m68k_skip_prologue): Likewise.
5883 (m68k_frame_init_saved_regs): Likewise.
5884 (m68k_saved_pc_after_call): Likewise.
5885 (m68k_get_longjmp_target): Make multi-arch.
5886 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5887 structure. Register m68k_get_longjmp_target if enabled.
5888 * m68k-tdep.h (struct gdbarch_tdep): Define.
5889 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5890
5891 * Makefile.in (config.status): Also depend on configure.tgt
5892 and configure.host.
5893 (m68klinux-tdep.o): Update dependencies.
5894 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5895 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5896 (M68K_LINUX_JB_PC): Define.
5897 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5898 and take additional parameter.
5899 (m68k_linux_sigtramp_saved_pc): Update.
5900 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5901 m68k_linux_pc_in_sigtramp, in_plt_section,
5902 find_solib_trampoline_target.
5903 * config/m68k/tm-linux.h: Don't include any tm headers.
5904 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5905 (JB_ELEMENT_SIZE): Likewise.
5906 (JB_PC): Likewise.
5907 (GET_LONGJMP_TARGET): Likewise.
5908 (IN_SIGTRAMP): Likewise.
5909 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5910
eb2c22dc
MK
59112003-05-25 Mark Kettenis <kettenis@gnu.org>
5912
5913 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5914 (sparc32_push_arguments): Re-implement by calling
5915 sparc32_do_push_arguments.
5916
44b7b84e
MK
59172003-05-25 Mark Kettenis <kettenis@gnu.org>
5918
5919 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5920 SPARC_O1_REGNUM): New defines.
5921 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5922 (sparc32_store_return_value): New function.
5923 (sparc_extract_struct_value_address): Rewrite to operate on a
5924 regcache.
5925 (sparc_gdbarch_init): Don't set
5926 deprecated_extract_struct_value_address. Set
5927 extract_struct_value_address instead. Don't set
5928 deprecated_extract_return_value and deprecated_store_return_value
5929 for 32-bit targets. Set extract_return_value and
5930 store_return_value instead.
5931 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5932 DEPRECTAED_EXTRACT_RETURN_VALUE,
5933 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5934 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5935 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5936 (sparc_store_return_value): Remove prototype.
5937 (sparc32_store_return_value): New prototype.
5938 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5939 Adjust prototypes.
5940
f6ad61e3
MK
59412003-05-24 Mark Kettenis <kettenis@gnu.org>
5942
5943 * sparcnbsd-tdep.c: Include "gdb_string.h".
5944
b276f1bb
AC
59452003-05-23 Andrew Cagney <cagney@redhat.com>
5946
5947 * p-valprint.c (pascal_val_print): Replace extract_address with
5948 the inline equivalent extract_unsigned_integer.
5949 * jv-valprint.c (java_value_print): Ditto.
5950 * ada-valprint.c (ada_val_print_1): Ditto.
5951 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5952
e76c5fcc
TR
59532003-05-23 Theodore A. Roth <troth@openavr.org>
5954
5955 * blockframe.c (frameless_look_for_prologue): Remove unused
5956 after_prologue variable.
5957
2cdd89cb
MK
59582003-05-23 Mark Kettenis <kettenis@gnu.org>
5959
5960 * blockframe.c (get_pc_function_start): Rewrite to avoid
5961 asignments in if-statements.
5962
182d43bc
EZ
59632003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5964
5965 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5966 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5967 files, don't relocate absolute symbols (and do use mst_abs).
5968
e8f3fcdd
AC
59692003-05-23 Andrew Cagney <cagney@redhat.com>
5970
5971 * objc-lang.c: Include "gdb_assert.h".
5972 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5973 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5974 (gdb_check, gdb_check_fatal): Delete functions.
5975 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5976 gdb_assert.
5977 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5978 * Makefile.in (objc-lang.o): Update dependencies.
5979
3c23e6fb
ILT
59802003-05-22 Ian Lance Taylor <ian@airs.com>
5981
5982 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5983 with fprintf_filtered, not fprintf_unfiltered.
5984
af1342ab
AC
59852003-05-22 Andrew Cagney <cagney@redhat.com>
5986
5987 * stack.c (frame_info): Inline extract_address, replacing it with
5988 extract_unsigned_integer.
5989 * findvar.c (unsigned_pointer_to_address): Ditto.
5990 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5991 * dwarf2expr.c (dwarf2_read_address): Ditto.
5992 * frame.c (frame_pc_unwind): Update comment.
5993 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5994
47e242ec
JJ
59952003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5996
5997 * infptrace.c (detach): Call print_sys_errmsg rather than
5998 perror_with_name to issue warning message when errno is non-zero
5999 after calling ptrace detach.
6000
e2ac8128
JB
60012003-05-21 J. Brobecker <brobecker@gnat.com>
6002
6003 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6004 macro definitions from here...
6005 * hppa-tdep.c: ...to there.
6006
92b3541e
KB
60072003-05-20 Kevin Buettner <kevinb@redhat.com>
6008
6009 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6010 register_ptrace_addr(). Fix all callers.
6011
55809acb
AS
60122003-05-21 Andreas Schwab <schwab@suse.de>
6013
6014 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6015 dependencies.
6016 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6017 end.
6018 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6019 (_initialize_m68k_linux_tdep): New function.
6020 (m68k_linux_frame_saved_pc): Make static.
6021 (m68k_linux_extract_return_value): Likewise.
6022 (m68k_linux_store_return_value): Likewise.
6023 (m68k_linux_extract_struct_value_address): Likewise.
6024 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6025 Remove.
6026 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6027 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6028 (DEPRECATED_FRAME_SAVED_PC): Remove.
6029
0fbc10f7
KW
60302003-05-20 Kris Warkentin <kewarken@qnx.com>
6031
6032 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6033 regset numbering rather than our own.
6034
58da2eb2
DC
60352003-05-19 David Carlton <carlton@bactrian.org>
6036
6037 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6038
1fcb5155
DC
60392003-05-19 David Carlton <carlton@bactrian.org>
6040
6041 Partial fix for PR c++/827.
6042 * cp-support.h: Include symtab.h.
6043 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6044 * cp-namespace.c: Update contributors.
6045 (cp_lookup_symbol_nonlocal): New.
6046 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6047 (lookup_symbol_file): Ditto.
6048 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6049 * block.h: Declare block_scope, block_using, block_global_block.
6050 * block.c (block_scope): New.
6051 (block_using, block_global_block): Ditto.
6052 * Makefile.in (cp_support_h): Depend on symtab_h.
6053 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6054
5f9a71c3
DC
60552003-05-19 David Carlton <carlton@bactrian.org>
6056
6057 * language.h (struct language_defn): Add 'la_value_of_this'
6058 and 'la_lookup_symbol_nonlocal' members.
6059 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6060 lookup_symbol_static, lookup_symbol_global,
6061 lookup_symbol_aux_block.
6062 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6063 if we should search fields of this and how to do static/global
6064 lookup.
6065 (lookup_symbol_aux_block): Make extern.
6066 (basic_lookup_symbol_nonlocal): New.
6067 (lookup_symbol_static, lookup_symbol_global): Ditto.
6068 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6069 'la_lookup_symbol_nonlocal' members.
6070 * c-lang.c (c_language_defn, cplus_language_defn)
6071 (asm_language_defn, minimal_language_defn): Ditto.
6072 * jv-lang.c (java_language_defn): Ditto.
6073 * language.c (unknown_language_defn, auto_language_defn)
6074 (local_language_defn): Ditto.
6075 * m2-lang.c (m2_language_defn): Ditto.
6076 * objc-lang.c (objc_language_defn): Ditto.
6077 * scm-lang.c (scm_language_defn): Ditto.
6078 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6079 * p-lang.c (pascal_language_defn): Ditto for both.
6080 * Makefile.in (f-lang.o): Depend on value_h.
6081 (p-lang.o): Ditto.
6082
89a9d1b1
DC
60832003-05-19 David Carlton <carlton@bactrian.org>
6084
6085 * block.h: Declare block_static_block.
6086 * block.c (block_static_block): New.
6087 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6088 lookup_symbol_aux_local, calling block_static_block instead.
6089 (lookup_symbol_aux_local): Delete 'static_block' argument.
6090
eed3f8ab
DC
60912003-05-19 David Carlton <carlton@bactrian.org>
6092
6093 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6094
a09d8bda
ML
60952003-05-19 Michal Ludvig <mludvig@suse.cz>
6096
6097 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6098 register numbers mapping.
6099
69636828
AF
61002003-05-18 Adam Fedor <fedor@gnu.org>
6101
6102 * symtab.c (completion_list_objc_symbol): New function.
6103 (make_symbol_completion_list): Use it to add ObjC symbols
6104 when looking though the list.
6105 (language_search_unquoted_string): New function.
6106 (make_file_symbol_completion_list): Use it.
6107
55baeb84
AS
61082003-05-18 Andreas Schwab <schwab@suse.de>
6109
d0b45d99
AS
6110 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6111 dependencies.
6112 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6113 as m68k_linux_extract_return_value.
6114 (DEPRECATED_STORE_RETURN_VALUE): Define as
6115 m68k_linux_store_return_value.
6116 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6117 m68k_linux_extract_struct_value_address.
6118 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6119 get_next_frame, get_frame_base, get_frame_pc.
6120 (m68k_linux_frame_saved_pc): Use get_frame_base.
6121 (m68k_linux_extract_return_value): New function.
6122 (m68k_linux_store_return_value): New function.
6123 (m68k_linux_extract_struct_value_address): New function.
6124 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6125
55baeb84
AS
6126 * c-exp.y (typebase): Remove duplicate occurence of
6127 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6128 of lookup_signed_typename.
55baeb84 6129
b6b08ebf
MK
61302003-05-18 Mark Kettenis <kettenis@gnu.org>
6131
6132 * dwarf2loc.c (find_location_expression): Change type of second
6133 argument to `size_t *'.
6134 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6135 for size variable.
6136
5ad1c190
DC
61372003-05-18 David Carlton <carlton@bactrian.org>
6138
6139 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6140 'linkage_name'. Add comment.
6141 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6142 'linkage_name'.
6143 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6144 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6145 (lookup_block_symbol): Ditto.
6146
b8b527c5
AC
61472003-05-16 Andrew Cagney <cagney@redhat.com>
6148
6149 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6150 * gdbarch.h, gdbarch.c: Re-generate.
6151 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6152 * TODO (REGISTER_BYTES): Delete reference.
6153 * alpha-tdep.c (alpha_gdbarch_init): Update.
6154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6155 * x86-64-tdep.c (x86_64_init_abi): Update.
6156 * vax-tdep.c (vax_gdbarch_init): Update.
6157 * v850-tdep.c (v850_gdbarch_init): Update.
6158 * sparc-tdep.c (sparc_gdbarch_init): Update.
6159 * sh-tdep.c (sh_gdbarch_init): Update.
6160 * s390-tdep.c (s390_gdbarch_init): Update.
6161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6162 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6163 (ns32k_gdbarch_init_32382): Update.
6164 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6165 * mcore-tdep.c (mcore_gdbarch_init): Update.
6166 * m68k-tdep.c (m68k_gdbarch_init): Update.
6167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6168 * ia64-tdep.c (ia64_gdbarch_init): Update.
6169 * i386-tdep.c (i386_gdbarch_init): Update.
6170 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6171 * hppa-tdep.c (hppa_gdbarch_init): Update.
6172 * h8300-tdep.c (h8300_gdbarch_init): Update.
6173 * frv-tdep.c (frv_gdbarch_init): Update.
6174 * cris-tdep.c (cris_gdbarch_init): Update.
6175 * avr-tdep.c (avr_gdbarch_init): Update.
6176 * arm-tdep.c (arm_gdbarch_init): Update.
6177 * sparc-tdep.c (sparc_pop_frame): Update.
6178 * rs6000-tdep.c (rs6000_pop_frame): Update.
6179 * remote.c (init_remote_state): Update.
6180 (remote_prepare_to_store): Update.
6181 * remote-vx.c (vx_prepare_to_store): Update.
6182 * remote-sds.c (sds_fetch_registers): Update.
6183 (sds_prepare_to_store): Update.
6184 * remote-array.c: Update.
6185 * regcache.c (init_legacy_regcache_descr): Update.
6186 (init_regcache_descr): Update.
6187 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6188 (mips_o64_extract_return_value): Update.
6189 * irix5-nat.c (fetch_core_registers): Update.
6190 * irix4-nat.c (fetch_core_registers): Update.
6191 * i386-tdep.h: Update.
6192 * hppa-tdep.c (pa_do_registers_info): Update.
6193 (pa_do_strcat_registers_info): Update.
6194 * cris-tdep.c (cris_register_bytes_ok): Update.
6195 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6196 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6197 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6198 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6199 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6200 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6201 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6202 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6203 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6204 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6205 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6206 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6207 (REGISTER_BYTES_OK): Update.
6208 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6209 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6210
ee2842e2
ILT
62112003-05-16 Ian Lance Taylor <ian@airs.com>
6212
6213 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6214 (vax_print_insn, print_insn_arg): Remove static functions.
6215 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6216 print_insn_vax from opcodes library.
6217 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6218
973177d3
AC
62192003-05-15 Andrew Cagney <cagney@redhat.com>
6220
aaab4dba
AC
6221 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6222 * target.h (memory_breakpoint_from_pc): Delete declaration.
6223 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6224 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6225 * monitor.c (monitor_insert_breakpoint): Use
6226 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6227 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6228 * gdbarch.h, gdbarch.c: Re-generate.
6229 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6230 (sparc_gdbarch_init): Set breakpoint_from_pc to
6231 sparc_breakpoint_from_pc.
6232 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6233 (BREAKPOINT_FROM_PC): Define.
6234 (sparc_breakpoint_from_pc): Declare.
6235 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6236 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6237 (BREAKPOINT_FROM_PC): Define.
6238 (BREAKPOINT): Delete macro.
6239 * target.h: Update comment.
6240 * s390-tdep.c (s390_gdbarch_init): Update comments.
6241 * remote.c: Update comments.
6242 * remote-mips.c: Update comments.
6243 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6244 * mem-break.c: Update comment.
6245 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6246 (ia64_memory_insert_breakpoint): Update.
6247 * config/sparc/tm-sparc.h: Update comment.
6248 * config/pa/tm-hppa64.h: Update comment.
6249 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6250 (rs6000_breakpoint_from_pc): Update.
6251 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6252 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6253 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6254 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6255 (mips_breakpoint_from_pc): Update.
6256 (mips_dump_tdep): Update.
6257
e06963ff
AC
6258 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6259 * minsyms.c (lookup_minimal_symbol): Inline
6260 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6261
973177d3
AC
6262 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6263 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6264 * p-lang.c (pascal_printstr): Ditto.
6265 * objc-lang.c (objc_printstr): Ditto.
6266 * m2-lang.c (m2_printstr): Ditto.
6267 * jv-valprint.c (java_print_value_fields): Ditto.
6268 * f-lang.c (f_printstr): Ditto.
6269 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6270 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6271 for repeat_count_threshold.
6272 * Makefile.in (cp-valprint.o): Update dependencies.
6273
5ea2bd7f 62742003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6275
5ea2bd7f
JJ
6276 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6277 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6278 they start with mov r2,r12. Support skipping over indirect stores
6279 of the input registers. Upon hitting a non-nop branch instruction
6280 or predicated instruction, bail out by setting lim_pc to the current
6281 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6282 beyond our calculated value and we have trust_limit set,
6283 use the lim_pc value.
6284
cc8c88f3
AC
62852003-05-15 Andrew Cagney <cagney@redhat.com>
6286
6287 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6288 generic_find_dummy_frame.
6289 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6290 (deprecated_generic_find_dummy_frame): Update.
6291 (deprecated_read_register_dummy): Update.
6292 * frame.c (deprecated_generic_get_saved_register): Update.
6293
909cd28e
TR
62942003-05-15 Theodore A. Roth <troth@openavr.org>
6295
6296 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6297 (avr_gdbarch_init): Set breakpoint_from_pc method.
6298
b923b08d
AC
62992003-05-15 Andrew Cagney <cagney@redhat.com>
6300
6301 * regcache.c (build_regcache): Set deprecated_register_valid
6302 directly.
6303 (deprecated_grub_regcache_for_register_valid): Delete function.
6304 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6305 declaration.
6306
ae2f03ac 63072003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6308
6309 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6310 * symtab.c (lookup_symbol_aux): Delete calls to
6311 lookup_symbol_aux_minsyms.
6312 (lookup_symbol_aux_minsyms): Comment out function and
6313 prototype. Delete lookup by mangled name.
ae2f03ac 6314
18ec9831
KB
63152003-05-14 Kevin Buettner <kevinb@redhat.com>
6316
6317 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6318 correctly indicate an empty stack and ``stack_allocated'' to the
6319 indicate the number of elements initially allocated.
6320 (dwarf_expr_grow_stack): Simplify method for computing new
6321 stack size. Don't loop infinitely if ``stack_len'' is zero.
6322 (execute_stack_op): Move ``ctx->in_reg'' initialization
6323 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6324 be used in conjuction with DW_OP_piece. Revise error message
6325 accordingly.
6326
de18ac1f
TR
63272003-05-14 Theodore A. Roth <troth@openavr.org>
6328
6329 * MAINTAINERS: Update my email address.
6330 * avr-tdep.c: Ditto.
6331
176620f1
EZ
63322003-05-14 Elena Zannoni <ezannoni@redhat.com>
6333
6334 * symtab.h (enum domain_enum): Rename from namespace_enum.
6335 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6336 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6337 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6338 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6339 TYPES_NAMESPACE, METHODS_NAMESPACE.
6340 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6341 (struct symbol, struct partial_symbol): Rename field
6342 'namespace_enum namespace' to 'domain_enum domain'.
6343 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6344 Delete old define kludge for namespace.
6345
6346 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6347 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6348 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6349 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6350 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6351 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6352 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6353 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6354 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6355 occurrences of the above.
6356
b7f31508
ILT
63572003-05-14 Ian Lance Taylor <ian@airs.com>
6358
6359 * Makefile.in (install-only): Use $(SHELL) when running
6360 mkinstalldirs.
6361
2fdbdd39
ILT
63622003-05-13 Ian Lance Taylor <ian@airs.com>
6363
a208d82c
ILT
6364 * MAINTAINERS (write after approval): Add myself.
6365
2fdbdd39
ILT
6366 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6367 second and third arguments.
6368 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6369 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6370
fbd9dcd3
AC
63712003-05-13 Andrew Cagney <cagney@redhat.com>
6372
6373 * defs.h (store_address): Delete declaration.
6374 findvar.c (store_address): Delete function.
6375 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6376 store_unsigned_integer.
6377 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6378 * v850-tdep.c (v850_push_arguments): Ditto.
6379 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6380 * sh-tdep.c (sh64_get_saved_register): Ditto.
6381 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6382 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6383 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6384 (mips_get_saved_register): Ditto.
6385 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6386 (find_func_descr, ia64_push_arguments): Ditto.
6387 * i386-tdep.c (i386_push_arguments): Ditto.
6388 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6389 * frv-tdep.c (frv_push_arguments): Ditto.
6390 * frame.c (legacy_saved_regs_prev_register): Ditto.
6391 (deprecated_generic_get_saved_register): Ditto.
6392 * findvar.c (unsigned_address_to_pointer): Ditto.
6393 * dwarf2read.c (dwarf2_const_value): Ditto.
6394 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6395 * alpha-tdep.c (alpha_push_arguments): Ditto.
6396
6760f9e6
JB
63972003-05-12 J. Brobecker <brobecker@gnat.com>
6398
6399 * NEWS: Mention that the hppa-hpux port has been partially
6400 multiarched (32bit ABIT only, so far).
6401
30e221b4
AC
64022003-05-11 Andrew Cagney <cagney@redhat.com>
6403
6404 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6405 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6406 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6407 sim/testsuite/sim/arm/misaligned2.ms, and
6408 sim/testsuite/sim/arm/misaligned3.ms.
6409 * disasm.h (struct ui_file): Add opaque struct declaration.
6410 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6411 * frame.h (struct ui_file): Ditto.
6412
dea7f9ba
MK
64132003-05-11 Mark Kettenis <kettenis@gnu.org>
6414
6415 * value.h: Pretty print.
6416
01986c48
MK
64172003-05-10 Mark Kettenis <kettenis@gnu.org>
6418
6419 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6420
123a958e
AC
64212003-05-08 Andrew Cagney <cagney@redhat.com>
6422
6423 * regcache.h (max_register_size): Delete declaration.
6424 * regcache.c (max_register_size): Delete function.
6425 (struct regcache_descr): Delete field "max_register_size".
6426 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6427 registers fit in MAX_REGISTER_SIZE.
6428 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6429 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6430 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6431 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6432 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6433 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6434 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6435 * dve3900-rom.c, hppa-tdep.c: Ditto.
6436
eb294659
DC
64372003-05-08 David Carlton <carlton@math.stanford.edu>
6438
6439 * valops.c (push_word): Fix typo.
6440
d9d9c31f
AC
64412003-05-08 Andrew Cagney <cagney@redhat.com>
6442
6443 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6444 * gdbarch.h: Re-generate.
6445 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6446 (legacy_max_register_raw_size): Delete declaration.
6447 * regcache.c (legacy_max_register_raw_size): Delete function.
6448 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6449 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6450 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6451 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6452 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6453 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6454 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6455 * findvar.c, dwarf2cfi.c: Ditto.
6456
22540ece
AC
64572003-05-08 Andrew Cagney <cagney@redhat.com>
6458
6459 * mips-tdep.c (read_signed_register): New function, moved to here
6460 from "regcache.c".
6461 (read_signed_register_pid): Ditto.
6462 * regcache.c (read_signed_register_pid): Delete function, moved to
6463 "mips-tdep.c".
6464 (read_signed_register): Ditto.
6465 * regcache.h (read_signed_register): Delete declaration.
6466 (read_signed_register_pid): Delete declaration.
6467
0c92afe8
AC
64682003-05-08 Andrew Cagney <cagney@redhat.com>
6469
6470 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6471 * gdbarch.h: Re-generate.
6472 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6473 (legacy_max_register_virtual_size): Delete declaration.
6474 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6475 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6476 * tracepoint.c (memrange_sortmerge): Ditto.
6477 * sparc-tdep.c (sparc_print_registers): Ditto.
6478 * regcache.c (legacy_max_register_virtual_size): Delete function.
6479
6037b830
JB
64802002-05-08 J. Brobecker <brobecker@gnat.com>
6481
6482 * fork-child.c (escape_bang_in_quoted_argument): New function.
6483 (fork_inferior): Escape '!' characters in quoted arguments
6484 only when needed.
6485
5d62c8b1
JB
64862003-05-08 J. Brobecker <brobecker@gnat.com>
6487
6488 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6489 the language of the CU is not currently supported by GDB.
6490
20a0e81d
JB
64912003-05-08 J. Brobecker <brobecker@gnat.com>
6492
6493 * defs.h (language): Add language_minimal enum value.
6494 * c-lang.c (minimal_language_defn): New language definition.
6495 (_initialize_c_language): Add the new minimal language to the list
6496 of languages known to GDB.
6497
710ee10a
KB
64982003-05-08 Kevin Buettner <kevinb@redhat.com>
6499
6500 * frame.c (get_frame_type): Don't attempt to lazily initialize
6501 frame's unwinder for legacy frames.
6502
1750fa04
AC
65032003-05-07 Andrew Cagney <cagney@redhat.com>
6504
6505 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6506 and "regcache" parameters.
6507 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6508
ddf9f258 65092003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6510
6511 * dwarf2read.c (dwarf_decode_lines): Only use output of
6512 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6513 the current address.
6514
87767c29
AC
65152003-05-07 Andrew Cagney <cagney@redhat.com>
6516
6517 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6518 code.
6519
5e7b2f39
JB
65202003-05-07 Jim Blandy <jimb@redhat.com>
6521
6522 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6523 'maint info symtabs' and 'maint info psymtabs'.
6524 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6525 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6526 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6527 Declarations updated.
6528 * maint.c (maintenance_list_command): Delete.
6529 (_initialize_maint_cmds): Update calls to add_cmd.
6530 * gdbcmd.h (maintenancelistlist): Delete declaration.
6531 * cli/cli-cmds.c (maintenancelistlist): Delete.
6532 (init_cmd_lists): Don't initialize it.
6533 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6534
f6684c31
AC
65352003-05-07 Andrew Cagney <cagney@redhat.com>
6536
6537 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6538 "regcache".
6539 (d10v_print_registers_info): Update.
6540 (d10v_dmap_register, d10v_imap_register): Delete functions.
6541 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6542 and "imap_register".
6543 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6544 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6545 * arch-utils.c (generic_remote_translate_xfer_address): Add
6546 "regcache" and "gdbarch" parameters.
6547 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6548 parameter. Change class to multi-arch.
6549 * gdbarch.h, gdbarch.c: Re-generate.
6550 * remote.c (remote_xfer_memory): Use
6551 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6552
e4846b08
JJ
65532003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6554
6555 * infrun.c (prev_pc): Move declaration ahead of proceed().
6556 (proceed): Refresh prev_pc value before resuming.
6557 (stop_stepping): Remove code to refresh prev_pc.
6558
6b71b8ac
KW
65592003-05-06 Kris Warkentin <kewarken@qnx.com>
6560
6561 * nto-tdep.c: Removed stray comment.
6562
47979a4b
KW
65632003-05-06 Kris Warkentin <kewarken@qnx.com>
6564
6565 * i386-nto-tdep.c: Fix old K&R function definitions.
6566 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6567 Also change add_show_from_set() call to add_setshow_cmd().
6568 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6569
00905d52
AC
65702003-05-05 Andrew Cagney <cagney@redhat.com>
6571
6572 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6573 (fprint_dummy_frames): New function.
6574 (maintenance_print_dummy_frames): New function.
6575 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6576 * frame.c (fprint_frame_id): Make global.
6577 * frame.h (fprint_frame_id): Declare.
6578 * Makefile.in (dummy-frame.o): Update dependencies.
6579
b1e29e33
AC
65802003-05-05 Andrew Cagney <cagney@redhat.com>
6581
6582 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6583 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6584 SIZEOF_CALL_DUMMY_WORDS.
6585 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6586 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6587 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6588 CALL_DUMMY_BREAKPOINT_OFFSET.
6589 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6590 CALL_DUMMY_START_OFFSET.
6591 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6592 * gdbarch.h, gdbarch.c: Re-generate.
6593 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6594 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6595 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6596 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6597 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6598 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6599 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6600 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6601 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6602 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6603 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6604 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6605 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6606 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6607 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6608
66092003-05-05 Kris Warkentin <kewarken@qnx.com>
6610
6611 * configure.tgt: Add i[3456]86-*-nto*.
6612 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6613 * nto-tdep.c: New file. Neutrino target support routines.
6614 * nto-tdep.h: New file. Neutrino target header.
6615 * config/tm-qnxnto.h: New file.
6616 * config/i386/i386nto.mt: New file.
6617 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6618
0ce3d317
AC
66192003-05-04 Andrew Cagney <cagney@redhat.com>
6620
6621 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6622 (load_infrun_state): Ditto.
6623 (struct thread_info): Drop "prev_func_name" field.
6624 * thread.c (load_infrun_state): Update.
6625 (save_infrun_state): Update.
6626 * infrun.c (prev_func_name): Delete variable.
6627 (init_wait_for_inferior): Do not clear prev_func_name.
6628 (stop_stepping, keep_going, context_switch): Do not swap
6629 prev_func_name.
6630 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6631 instead of PC_IN_SIGTRAMP.
6632
46654a5b
AC
66332003-05-04 Andrew Cagney <cagney@redhat.com>
6634
6635 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6636 REGISTER_BYTE with register_offset_hack.
6637 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6638 that REGISTER_BYTE is consistent with the regcache.
6639 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6640 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6641
14b08c1b
MK
66422003-05-04 Mark Kettenis <kettenis@gnu.org>
6643
04c8243f
MK
6644 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6645 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6646
14b08c1b
MK
6647 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6648
c7a11e01
JB
66492003-05-03 J. Brobecker <brobecker@gnat.com>
6650
6651 From Thierry Schneider <tpschneider1@yahoo.com>
6652 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6653 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6654 (mi-cmd-symbol.o): Add rule.
6655
7043d8dc
AC
66562003-05-03 Andrew Cagney <cagney@redhat.com>
6657
6658 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6659 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6660 * gdbarch.h, gdbarch.c: Re-generate.
6661 * d10v-tdep.c (d10v_push_dummy_code): New function.
6662 (d10v_gdbarch_init): Set push_dummy_code.
6663 * infcall.c (legacy_push_dummy_code): New function.
6664 (generic_push_dummy_code): New function.
6665 (push_dummy_code): New function.
6666 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6667 instead of dummy_addr, to push_dummy_call. Move call to
6668 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6669 switch.
6670 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6671
92bf2b80
AC
66722003-05-03 Andrew Cagney <cagney@redhat.com>
6673
6674 * disasm.h (print_insn): Declare.
6675 * disasm.c (init_gdb_disassemble_info): New function.
6676 (gdb_disassembly): Call init_gdb_disassemble_info.
6677 (gdb_print_insn): New function.
6678 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6679 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6680 * mcore-tdep.c: Include "disasm.h"
6681 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6682 * d10v-tdep.c: Include "disasm.h".
6683 (display_trace): Call gdb_print_insn, instead of print_insn.
6684 (print_insn): Delete function.
6685 * printcmd.c: Include "disasm.h".
6686 (print_insn): Delete function.
6687 (print_formatted): Call gdb_print_insn, instead of print_insn.
6688 * Makefile.in (printcmd.o): Update dependencies.
6689 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6690
27d94c49
AC
66912003-05-02 Andrew Cagney <cagney@redhat.com>
6692
82de1e5b
AC
6693 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6694 PC_REGNUM, re-indent.
6695 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6696 PC_REGNUM isn't set.
6697
27d94c49
AC
6698 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6699 * gdbarch.h, gdbarch.c: Re-generate.
6700 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6701 register_virtual_size, pc_regnum, or register_bytes.
6702 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6703 (d10v_register_type): Use D10V_PC_REGNUM.
6704 (d10v_print_registers_info, d10v_read_pc): Ditto.
6705 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6706 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6707
a9c0dc7f
DC
67082003-05-02 David Carlton <carlton@bactrian.org>
6709
6710 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6711 the name with mstrsave.
6712
e33d66ec
EZ
67132003-05-02 Elena Zannoni <ezannoni@redhat.com>
6714
6715 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6716 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6717 (host_charset_name, target_charset_name): New vars for use by
6718 set/show commands.
6719 (host_charset_enum, target_charset_enum): New enums for set/show
6720 commands.
6721 (set_charset_sfunc, set_host_charset_sfunc,
6722 set_target_charset_sfunc): New functions.
6723 (set_host_charset, set_target_charset): Make static.
6724 (list_charsets, set_host_charset_command,
6725 set_target_charset_command): Delete functions.
6726 (show_charset_command): Rewrite as....
6727 (show_charset): Hook this up with the set/show command mechanism.
6728 (_initialize_charset): Change names of charsets to match the
6729 set/show enums. Use host_charset_name and target_charset_name.
6730 Use set/show mechanism for charset, host-charset, target-charset
6731 commands. Do not make 'show host-charset' and 'show
6732 target-charset' be aliases of 'show charset'.
6733
6734 * charset.h (set_host_charset, set_target_charset): Don't export,
6735 they are not used outside the file.
6736
2b6fd0d8
AC
67372003-05-01 Andrew Cagney <cagney@redhat.com>
6738
6739 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6740 (gdb_disassembly): Make "di" non static, always initialize and
6741 cleanup. Always use dis_asm_read_memory.
6742 (gdb_dis_asm_read_memory): Delete function.
6743
6ae2f580
AC
67442003-05-01 Andrew Cagney <cagney@redhat.com>
6745
6746 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6747 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6748
810ecf9f
AC
67492003-04-30 Andrew Cagney <cagney@redhat.com>
6750
6751 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6752 "tm_print_insn_info".
6753 (TARGET_PRINT_INSN_INFO): Delete macro.
6754 (dis_asm_read_memory): Delete function declaration.
6755 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6756 (tm_print_insn_info): Delete variable definition.
6757 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6758 * gdbarch.h, gdbarch.c: Re-generate.
6759 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6760 "deprecated_tm_print_insn_info".
6761 * mcore-tdep.c (mcore_dump_insn): Ditto.
6762 * mips-tdep.c (mips_gdbarch_init): Ditto.
6763 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6764 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6765 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6766 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6767 instead of TARGET_PRINT_INSN_INFO, add comment.
6768 * s390-tdep.c (s390_get_frame_info): Instead of
6769 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6770 (s390_check_function_end, s390_is_sigreturn): Ditto.
6771 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6772 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6773 * disasm.c: Include "gdbcore.h".
6774 (_initialize_disasm): New function, initialize
6775 "deprecated_tm_print_insn_info".
6776 (deprecated_tm_print_insn_info): New variable.
6777 (dis_asm_read_memory): Moved from "corefile.c", made static.
6778 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6779 * Makefile.in (disasm.o): Update dependencies.
6780
07020390
AC
67812003-04-30 Andrew Cagney <cagney@redhat.com>
6782
6783 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6784
a9fa03de
AF
67852003-04-29 Adam Fedor <fedor@gnu.org>
6786
6787 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6788 * infcall.c (find_function_addr): Make non-static.
6789 * infcall.h (find_function_addr): Declare.
6790 * Makefile.in (eval.o): Update dependencies.
6791
1bae87b9
AF
67922003-04-28 Adam Fedor <fedor@gnu.org>
6793
6794 * symtab.c (symbol_find_demangled_name): Check for and demangle
6795 ObjC symbols.
6796 (symbol_init_demangled_name): Init for language_objc as well.
6797
0ba6dca9
AC
67982003-04-28 Andrew Cagney <cagney@redhat.com>
6799
6800 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6801 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6802 * gdbarch.h, gdbarch.c: Re-generate.
6803 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6804 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6805 * inferior.h (deprecated_read_fp): Rename read_fp.
6806 (generic_target_read_fp): Delete declaration.
6807 * regcache.c (generic_target_read_fp): Delete function.
6808 (deprecated_read_fp): Replace read_fp, use
6809 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6810 * d10v-tdep.c (d10v_read_fp): Delete function.
6811 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6812
6813 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6814 deprecated_target_read_fp to generic_target_read_fp.
6815 * sh-tdep.c (sh_gdbarch_init): Ditto.
6816 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6818 * frv-tdep.c (frv_gdbarch_init): Ditto.
6819
6820 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6821 deprecated_fp_regnum.
6822 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6823 * vax-tdep.c (vax_gdbarch_init): Ditto.
6824 * v850-tdep.c (v850_gdbarch_init): Ditto.
6825 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6826 * sh-tdep.c (sh_gdbarch_init): Ditto.
6827 * s390-tdep.c (s390_gdbarch_init): Ditto.
6828 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6829 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6830 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6831 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6833 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6834 * i386-tdep.c (i386_gdbarch_init): Ditto.
6835 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6836 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6837 * frv-tdep.c (frv_gdbarch_init): Ditto.
6838 * cris-tdep.c (cris_gdbarch_init): Ditto.
6839 * avr-tdep.c (avr_gdbarch_init): Ditto.
6840 * arm-tdep.c (arm_gdbarch_init): Ditto.
6841 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6842
6843 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6844 * v850-tdep.c (v850_gdbarch_init): Ditto.
6845 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6846 * sh-tdep.c (sh_gdbarch_init): Ditto.
6847 * s390-tdep.c (s390_gdbarch_init): Ditto.
6848 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6849 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6850 * mips-tdep.c (mips_gdbarch_init): Ditto.
6851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6852 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6853 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6854 * frv-tdep.c (frv_gdbarch_init): Ditto.
6855 * avr-tdep.c (avr_gdbarch_init): Ditto.
6856 * arm-tdep.c (arm_gdbarch_init): Ditto.
6857
6858 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6859 DEPRECATED_FP_REGNUM.
6860 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6861 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6862 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6863 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6864 (sparc32_register_virtual_type): Ditto.
6865 * sh-tdep.c (sh64_frame_chain): Ditto.
6866 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6867 (sh_nofp_frame_init_saved_regs): Ditto.
6868 (sh64_nofp_frame_init_saved_regs): Ditto.
6869 (sh_fp_frame_init_saved_regs): Ditto.
6870 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6871 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6872 * procfs.c (procfs_fetch_registers): Ditto.
6873 (procfs_store_registers): Ditto.
6874 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6875 (store_inferior_registers, fetch_core_registers): Ditto.
6876 (fetch_kcore_registers, clear_regs): Ditto.
6877 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6878 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6879 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6880 * nlm/i386.c (do_status): Ditto.
6881 * mipsv4-nat.c (supply_gregset): Ditto.
6882 * mips-tdep.c: Ditto for comments.
6883 * mips-nat.c (fetch_inferior_registers): Ditto.
6884 (store_inferior_registers, fetch_core_registers): Ditto.
6885 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6886 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6887 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6888 (i386_do_pop_frame, i386_register_type): Ditto.
6889 * hppa-tdep.c (hppa_frame_chain): Ditto.
6890 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6891 (hppa_pop_frame, hppa_read_fp): Ditto.
6892 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6893 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6894 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6895 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6896 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6897 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6898 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6899 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6900 * blockframe.c: Ditto for comments.
6901 * arch-utils.h: Ditto for comments.
6902 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6903 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6904 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6905 * alpha-tdep.h: Ditto for comments.
6906 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6907 (alpha_cannot_store_register): Ditto.
6908 (alpha_push_dummy_frame): Ditto.
6909 * alpha-nat.c (supply_gregset): Ditto.
6910
6911 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6912 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6913 * config/sparc/tm-sparc.h: Update comment.
6914
6915 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6916 deprecated_read_fp instead of TARGET_READ_FP.
6917 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6918 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6919 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6920 deprecated_read_fp instead of read_fp.
6921 * s390-tdep.c (s390_push_arguments): Ditto.
6922 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6923 * frame.h: Ditto in comments.
6924 * frame.c (legacy_get_prev_frame): Ditto.
6925 * dummy-frame.c (dummy_frame_this_id): Ditto.
6926 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6927
d7a27068
AC
69282003-04-28 Andrew Cagney <cagney@redhat.com>
6929
6930 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6931 * gdbarch.h, gdbarch.c: Re-generate.
6932 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6933 * vax-tdep.c (_initialize_vax_tdep): Update.
6934 * v850-tdep.c (_initialize_v850_tdep): Update.
6935 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6936 * s390-tdep.c (_initialize_s390_tdep): Update.
6937 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6938 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6939 * mips-tdep.c (_initialize_mips_tdep): Update.
6940 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6941 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6942 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6943 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6944 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6945 * frv-tdep.c (_initialize_frv_tdep): Update.
6946 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6947 (_initialize_cris_tdep): Update.
6948 * arch-utils.c (legacy_print_insn): Update.
6949 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6950
d2630e69
AF
69512003-04-26 Adam Fedor <fedor@gnu.org>
6952
6953 * linespec.c (decode_objc): New function to decode ObjC calls
6954 (decode_line_1): Check for ObjC calls (using decode_objc)
6955 * Makefile (linespec.o): Update dependencies.
6956
3086aeae
DJ
69572003-04-26 Daniel Jacobowitz <drow@mvista.com>
6958
6959 * breakpoint.h (struct breakpoint_ops): New.
6960 (struct breakpoint): Add ops member.
6961
6962 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6963 (mention): Use new breakpoint ops member.
6964 (set_raw_breakpoint): Initialize ops field to NULL.
6965 (print_exception_catchpoint, print_one_exception_catchpoint)
6966 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6967 (gnu_v3_exception_catchpoint_ops): New.
6968 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6969
1fbec6c3
AF
69702003-04-25 Adam Fedor <fedor@gnu.org>
6971
6972 * Makefile.in (COMMON_OBS): Add objc-lang.o
6973
0ef21242
AC
69742003-04-25 Andrew Cagney <cagney@redhat.com>
6975
6976 * d10v-tdep.c (print_insn): Delete function.
6977 (display_trace): Use TARGET_PRINT_INSN.
6978 (_initialize_d10v_tdep): Do not set tm_print_insn.
6979 (d10v_gdbarch_init): Set print_insn.
6980
f75493ed
AC
69812003-04-25 Andrew Cagney <cagney@redhat.com>
6982
6983 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6984 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6985 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6986 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6987 (nr_dmap_regs, a0_regnum): ... new functions.
6988 (d10v_print_registers_info): Use a0_regnum, use register_size.
6989 (d10v_register_byte): Delete function.
6990 (d10v_register_raw_size): Delete function.
6991 (d10v_register_type): Use a0_regnum.
6992 (d10v_print_registers_info): Use a0_regnum.
6993 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6994 (d10v_gdbarch_init): Do not set register_byte or
6995 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6996 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6997 extract_address.
6998 (trace_command): Use XCALLOC.
6999 (print_insn): Delete reference to tm_print_insn.
7000 (saved_regs_unwinder): Use store_unsigned_integer instead of
7001 store_address.
7002 * frame.h (FRAME_OBSTACK_CALLOC): Define
7003
2202b100
DC
70042003-04-25 David Carlton <carlton@bactrian.org>
7005
7006 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7007
4e45ca2e
AF
70082003-04-24 Adam Fedor <fedor@gnu.org>
7009
7010 * objc-lang.c: Include "valprint.h"
7011 * Makefile.in (objc-lang.o): Update dependencies.
7012
93de3e7f
AF
70132003-04-24 Adam Fedor <fedor@gnu.org>
7014
8ffd9b1b 7015 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7016 architecture dependant compilation and mark as unimplemented
7017 (until they get put in the gdbarch vector).
7018
0f20eeea
DC
70192003-04-23 David Carlton <carlton@bactrian.org>
7020
7021 * cp-support.c (cp_find_first_component): Accept 'operator' in
7022 more locations.
7023
74cfe982
AC
70242003-04-23 Andrew Cagney <cagney@redhat.com>
7025
7026 * infcall.c (call_function_by_hand): Eliminate redundant
7027 indentation. Move "saved_async" and "old_cleanups" to where they
7028 are needed.
8ffd9b1b 7029
52557533
AC
70302003-04-23 Andrew Cagney <cagney@redhat.com>
7031
7032 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7033 and "buffer". Move the "name" code to where it is needed.
7034
158775de
AC
70352003-04-23 Andrew Cagney <cagney@redhat.com>
7036
7037 * infcall.c (call_function_by_hand): Move variables "start_sp",
7038 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7039 code to ON_STACK switch branch.
8ffd9b1b 7040
ebc7896c
AC
70412003-04-23 Andrew Cagney <cagney@redhat.com>
7042
7043 * infcall.c (call_function_by_hand): Make declaration of "i",
7044 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7045 lint.
7046
d727590f
AC
70472003-04-23 Andrew Cagney <cagney@redhat.com>
7048
7049 * infcall.c (call_function_by_hand): Delete variable
7050 "n_method_args". Localize "param_type"'s declaration to the loop
7051 that it is used. Reinstate code assigning to said variable -
7052 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7053 Rationalize code using "param_type".
7054
d585e13a
AC
70552003-04-22 Andrew Cagney <cagney@redhat.com>
7056
7057 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7058 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7059 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7060 to DEPRECATED_PUSH_RETURN_ADDRESS.
7061
051caad9
KB
70622003-04-22 Kevin Buettner <kevinb@redhat.com>
7063
7064 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7065 on the DWARF2 register number prior to fetching a register.
7066
77296879
JB
70672003-04-22 J. Brobecker <brobecker@gnat.com>
7068
7069 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7070 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7071 this macro was always set to 0.
77296879
JB
7072 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7073 considering the fact that this macro was always set to 0.
7074 * hppa-tdep.h (hppa_store_return_value): Likewise.
7075 (hppa_extract_return_value): Likewise.
7076
4252f1df
JB
70772003-04-22 J. Brobecker <brobecker@gnat.com>
7078
7079 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7080 the hppa-pro target only.
7081
14604c6b
JB
70822003-04-21 J. Brobecker <brobecker@gnat.com>
7083
7084 Ongoing multi-arch conversion effort for HP/UX:
7085 * config/pa/tm-hppa.h: Move all macro that are no longer
7086 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7087 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7088
77eb01d1
JB
70892003-04-21 J. Brobecker <brobecker@gnat.com>
7090
7091 * config/pa/tm-hppa.h: Obsolete a section that was only used
7092 for hppa-pro.
7093
61995b3b
JB
70942003-04-21 J. Brobecker <brobecker@gnat.com>
7095
7096 Ongoing multi-arch conversion for HP/UX.
7097 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7098 if already defined (allows hppa64 to stay non-multiarched for now).
7099 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7100
4aa79dcc
AC
71012003-04-21 Andrew Cagney <cagney@redhat.com>
7102
7103 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7104
0f751ff2
AC
71052003-04-21 Andrew Cagney <cagney@redhat.com>
7106
7107 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7108 "i386_num_mmx_regs".
7109
04714b91
AC
71102003-04-21 Andrew Cagney <cagney@redhat.com>
7111
7112 * infcall.c: New file.
7113 * infcall.h: New file.
7114 * valarith.c: Include "infcall.h".
7115 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7116 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7117 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7118 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7119 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7120 (SFILES): Add "infcall.c"
7121 (COMMON_OBS): Add "infcall.o".
7122 (infcall.o): Specify dependencies.
7123 * value.h (call_function_by_hand): Delete declaration.
7124 * inferior.h (run_stack_dummy): Delete declaration.
7125 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7126 (run_stack_dummy): Move to "infcall.c", merged into
7127 call_function_by_hand.
7128 * valops.c (call_function_by_hand): Moved to "infcall.c".
7129 (find_function_addr, value_arg_coerce): Ditto.
7130 (unwindonsignal_p, coerce_float_to_double): Ditto.
7131 (_initialize_valops): Move "set/show coerce-float-to-double", and
7132 "set/show unwindonsignal" commands to "infcall.c".
7133 * v850-tdep.c, target.h: Update comments.
7134 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7135 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7136 (sh64_init_extra_frame_info): Update comments.
7137 * mn10300-tdep.c: Update comments.
7138 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7139 * config/sparc/tm-sparc.h: Update comments.
7140 * breakpoint.h: Update comments.
7141 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7142 * arm-tdep.c: Update comment.
7143
f9d3c2a8
MK
71442003-04-19 Mark Kettenis <kettenis@gnu.org>
7145
c40e1eab
MK
7146 * i386-tdep.c (i386_num_register_names): New variable.
7147 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7148 (MM0_REGNUM): Remove redundant parentheses in define.
7149 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7150 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7151 i386_mxcsr_regnum_p): Remove redundant parentheses.
7152 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7153
94ea66b3
MK
7154 * i386-tdep.c (i386_extract_return_value,
7155 i386_store_return_value): Correct check for availability of
7156 floating-point registers.
7157
54299a1d
MK
7158 * i386-tdep.c (i386_frame_num_args): Remove function.
7159 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7160
c86c27af
MK
7161 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7162 mmx_regnum_to_fp_regnum. Adjust all callers.
7163
f9d3c2a8
MK
7164 * i386-tdep.c (i386_get_longjmp_target): Use
7165 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7166 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7167 extract_address.
7168
94ba74a9
MK
71692003-04-19 Mark Kettenis <kettenis@gnu.org>
7170
7171 * core-regset.c: Update comments to reflect reality. Re-order
7172 includes.
7173 (fetch_core_registers): Use switch instead of if. Remove
7174 redundant prototype.
7175
4074e13c
JB
71762003-04-18 Jim Blandy <jimb@redhat.com>
7177
7178 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7179 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7180
e3ab4aba
RH
71812003-04-17 Richard Henderson <rth@redhat.com>
7182
7183 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7184
627bf7c1
EZ
71852003-04-17 Michael Snyder <msnyder@redhat.com>
7186 Karen Bennet <bennet@redhat.com>
7187
7188 Committed by Elena Zannoni <ezannoni@redhat.com>
7189 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7190
514621a9
EZ
71912003-04-17 Elena Zannoni <ezannoni@redhat.com>
7192
7193 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7194 value if the return type is void.
514621a9 7195
b4acd559
JJ
71962003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7197
7198 * thread-db.c: Reindented.
8ffd9b1b 7199
530b167e 72002003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7201
7202 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7203 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7204 as types.
7205
0a48e7e8
MS
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
8ffd9b1b 7229
ab9fe00e
KB
72302003-04-16 Kevin Buettner <kevinb@redhat.com>
7231
610a3745 7232 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7233 the size of ``long double'' to 16, instead of 8.
7234
e64a344c
MK
72352003-04-16 Mark Kettenis <kettenis@gnu.org>
7236
7237 * i386-linux-nat.c: Add some whitespace to make things more
7238 readable.
7239 (fetch_register, store_register, fetch_inferior_registers,
7240 store_inferior_registers): Get rid of assignment in if-statement.
7241 (store_register): Fix typo in error message.
7242
25d41031
AC
72432003-04-16 Andrew Cagney <cagney@redhat.com>
7244
7245 * utils.c (xmmalloc): Always allocate something, matches
7246 libiberty/xmalloc's semantics.
7247 (xmrealloc, xmcalloc): Ditto.
7248
c50901fd
AC
72492003-04-16 Andrew Cagney <cagney@redhat.com>
7250
7251 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7252 update comments.
7253 (get_frame_type): Initialize unwind and type when needed.
7254 (get_frame_id, frame_register_unwind): Ditto.
7255
f81824a9
AC
72562003-04-16 Andrew Cagney <cagney@redhat.com>
7257
7258 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7259 obsolete.
7260 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7261 * sparcl-stub.c: Obsolete file.
7262 * config/sparc/tm-sparclet.h: Obsolete file.
7263 * sparclet-stub.c: Obsolete file.
7264 * sparclet-rom.c: Obsolete file.
7265 * sparcl-tdep.c: Obsolete file.
7266 * config/sparc/tm-sparclite.h: Obsolete file.
7267 * config/sparc/sparclite.mt: Obsolete file.
7268 * config/sparc/sparclet.mt: Obsolete file.
7269 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7270 sparc86x-*-* obsolete.
7271
9219021c
DC
72722003-04-15 David Carlton <carlton@math.stanford.edu>
7273
7274 * Makefile.in (SFILES): Add cp-namespace.c.
7275 (COMMON_OBS): Add cp-namespace.o.
7276 (block.o): Depend on gdb_obstack_h and cp_support_h.
7277 (buildsym.o): Depend on cp_support_h.
7278 (cp-namespace.o): New.
7279 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7280 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7281 (dwarf2read.o): Depend on cp_support_h.
7282 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7283 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7284 processing_current_namespace.
7285 (read_namespace): Update processing_current_namespace; check for
7286 anonymous namespaces.
7287 (dwarf2_name): New function.
7288 (dwarf2_extension): Ditto.
7289 * cp-support.h: Update copyright, contributors.
7290 Add inclusion guards.
7291 Add opaque declaration for structs obstack, block, symbol.
7292 (struct using_direct): New struct.
7293 Add declarations for cp_find_first_component,
7294 cp_entire_prefix_len, processing_has_namespace_info,
7295 processing_current_namespace, cp_is_anonymous,
7296 cp_add_using_directive, cp_initialize_namespace,
7297 cp_finalize_namespace, cp_set_block_scope,
7298 cp_scan_for_anonymous_namespaces.
7299 * cp-namespace.c: New file.
7300 * cp-support.c: Update copyright.
7301 Include ctype.h, gdb_assert.h, gdbcmd.h.
7302 New variable maint_cplus_cmd_list.
7303 (cp_find_first_component): New function.
7304 (cp_entire_prefix_len, maint_cplus_command)
7305 (first_component_command, _initialize_cp_support): Ditto.
7306 * buildsym.c: Include cp-support.h.
7307 New variable using_list.
7308 (add_symbol_to_list): Check for anonymous namespaces.
7309 (finish_block): Set block's scope.
7310 (start_symtab): Initialize C++ namespace support.
7311 (end_symtab): Finalize C++ namespace support.
7312 * block.h: Add opaque declarations for structs
7313 block_namespace_info, using_direct, and obstack.
7314 Add declarations for block_set_scope and block_set_using.
7315 (struct block): Add 'language_specific' member.
7316 (BLOCK_NAMESPACE): New macro.
7317 * block.c: Include gdb_obstack.h and cp-support.h.
7318 (struct block_namespace_info): New struct.
7319 (block_set_scope): New function.
7320 (block_set_using, block_initialize_namespace): Ditto.
7321
d5a921c9
KB
73222003-04-14 Kevin Buettner <kevinb@redhat.com>
7323
7324 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7325 (locate_base): Return early if there aren't any link map offsets.
7326 (svr4_solib_create_inferior_hook): Warn if shared library support
7327 is unavailable.
7328
d2a52b27
DC
73292003-04-14 David Carlton <carlton@math.stanford.edu>
7330
7331 * symtab.c (symbol_set_names): Add prefix when storing Java names
7332 in hash table. Fix for PR java/1039.
7333
980cae7a
DC
73342003-04-14 David Carlton <carlton@math.stanford.edu>
7335
7336 * symtab.c (symbol_set_names): Rename 'name' arg to
7337 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7338 * symtab.h: Change 'name' argument in declaration of
7339 symbol_set_names to 'linkage_name'.
7340 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7341
e227b13c
AC
73422003-04-14 Andrew Cagney <cagney@redhat.com>
7343
7344 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7345 return the fully sign-extended register value.
7346 (get_frame_pointer): Ditto.
7347 (mips_pop_frame): Initialize "proc_desc" after checking for a
7348 dummy frame.
7349
36712a20
AC
73502003-04-14 Andrew Cagney <cagney@redhat.com>
7351
7352 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7353 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7354 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7355 (mips_push_register): Delete function.
7356 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7357 PUSH_FP_REGNUM.
7358
44ea7b70
JB
73592003-04-14 Jim Blandy <jimb@redhat.com>
7360
7361 * symmisc.c: #include "gdb_regex.h".
7362 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7363 functions.
7364 * maint.c (maintenance_list_command): New function.
7365 (_initialize_maint_cmds): Register the above as commands.
7366 * symtab.h (maintenance_list_symtabs,
7367 maintenance_list_psymtabs): New declarations.
7368 * cli/cli-cmds.c (maintenancelistlist): New variable.
7369 (init_cmd_lists): Initialize it.
7370 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7371 * gdbcmd.h (maintenancelistlist): New declaration.
7372 * Makefile.in (symmisc.o): Update dependencies.
7373
2d0c7962
EZ
73742003-04-14 Elena Zannoni <ezannoni@redhat.com>
7375
7376 * s390-nat.c: Include asm/types.h for addr_t.
7377
1947a811
CV
73782003-04-14 Corinna Vinschen <vinschen@redhat.com>
7379
7380 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7381 actually incoming type.
7382
adb616d7
AC
73832003-04-13 Andrew Cagney <cagney@redhat.com>
7384
7385 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7386 get_next_frame and get_frame_saved_regs.
7387
9b5e151c
AC
73882003-04-13 Andrew Cagney <cagney@redhat.com>
7389
7390 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7391 of gdbarch_num_regs.
7392
ef6e7e13
AC
73932003-04-13 Andrew Cagney <cagney@redhat.com>
7394
7395 * frame.h: Mention what replaced what in "struct frame_info".
7396 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7397 deprecated_update_frame_base_hack and
7398 deprecated_update_frame_pc_hack.
7399 * hppa-tdep.c: Ditto.
7400
61fbb938
DJ
74012003-04-13 Daniel Jacobowitz <drow@mvista.com>
7402
7403 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7404 to read_reg and update its comment. Remove regnum member.
7405 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7406 Don't call read_reg when setting in_reg. Call read_reg to get
7407 the frame base if it's in a register. Return the register number
7408 on the stack instead of in the context. Remove extra arguments
7409 to read_reg.
7410 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7411 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7412 the register number on the expression stack.
7413 (needs_frame_read_reg): Remove extra arguments.
7414
0d53c4c4
DJ
74152003-04-13 Daniel Jacobowitz <drow@mvista.com>
7416
7417 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7418 made non-static.
7419 (execute_stack_op): All callers updated.
7420 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7421 * dwarf2loc.c (find_location_expression): New function.
7422 (dwarf_expr_frame_base): Call it.
7423 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7424 (dwarf2_tracepoint_var_ref): New function, broken out from
7425 locexpr_tracepoint_var_ref.
7426 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7427 Make static.
7428 (loclist_read_variable, loclist_read_needs_frame): New functions.
7429 (loclist_describe_location, loclist_tracepoint_var_ref): New
7430 functions.
7431 (dwarf2_loclist_funcs): New struct location_funcs.
7432 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7433 (struct dwarf2_locexpr_baton): Add comments.
7434 (dwarf2_loclist_funcs): New extern.
7435 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7436 base_address and base_known.
7437 (dwarf_loc_buffer): New variable.
7438 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7439 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7440 (dwarf2_has_info): Initialize dwarf_loc_offset.
7441 (dwarf2_build_psymtabs): Read in .debug_loc.
7442 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7443 DWARF_LOC_SIZE.
7444 (psymtab_to_symtab_1): Likewise. Move base address calculation
7445 here, from...
7446 (dwarf2_get_pc_bounds): ... here. Use the base address from
7447 cu_header.
7448 (dwarf2_symbol_mark_computed): Handle location lists.
7449
6aca59a3
DJ
74502003-04-13 Daniel Jacobowitz <drow@mvista.com>
7451
7452 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7453 if the linkage name demangled successfully.
7454
aca1fcd0
MK
74552003-04-13 Mark Kettenis <kettenis@gnu.org>
7456
97095916
MK
7457 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7458 disassmbly_flavour): Removed.
7459
aca1fcd0
MK
7460 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7461
562a961f
MK
74622003-04-13 Mark Kettenis <kettenis@gnu.org>
7463
7464 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7465
bd013d54
AC
74662003-04-12 Andrew Cagney <cagney@redhat.com>
7467
7468 * frame.h (struct frame_info): Move definition from here ...
7469 * frame.c (struct frame_info): ... to here.
7470
167ef8b1
AC
74712003-04-12 Andrew Cagney <cagney@redhat.com>
7472
7473 * gdbthread.h (save_infrun_state): Delete parameter
7474 "prev_func_start".
7475 (struct thread_info): Delete field "prev_func_start".
7476 (load_infrun_state): Ditto.
7477 * thread.c (load_infrun_state, save_infrun_state): Update.
7478 * infrun.c (prev_func_start): Delete variable.
7479 (context_switch, init_wait_for_inferior): Update.
7480 (stop_stepping, keep_going): Update.
7481
da3331ec
AC
74822003-04-12 Andrew Cagney <cagney@redhat.com>
7483
7484 * gdbarch.sh: Add missing opaque declarations.
7485 * gdbarch.h: Regnerate.
7486 * symtab.h: Add missing opaque declarations.
7487 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7488 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7489 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7490 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7491 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7492 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7493 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7494 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7495 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7496 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7497 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7498 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7499 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7500
18adea3f
AC
75012003-04-11 Andrew Cagney <cagney@redhat.com>
7502
7503 * frame.c (get_frame_id): Return this frame's "id".
7504 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7505 function start.
7506 (legacy_saved_regs_this_id): Replace function body with
7507 internal-error.
7508 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7509 FRAME_OBSTACK_ZALLOC.
7510 (create_new_frame): Mark the frame ID as valid.
7511
2252e863
AO
75122003-04-11 Alexandre Oliva <aoliva@redhat.com>
7513
7514 * Makefile.in (libbfd_h): Added missing setting.
7515 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7516 according to the selected ABI.
7517
a8245ab8
JJ
75182003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7519
7520 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7521
6913c89a
AC
75222003-04-11 Andrew Cagney <cagney@redhat.com>
7523
7524 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7525 SAVED_PC_AFTER_CALL.
7526 * gdbarch.h, gdbarch.c: Regenerate.
7527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7528 * x86-64-tdep.c (x86_64_init_abi): Update.
7529 * vax-tdep.c (vax_gdbarch_init): Update.
7530 * v850-tdep.c (v850_gdbarch_init): Update.
7531 * sparc-tdep.c (sparc_gdbarch_init): Update.
7532 * sh-tdep.c (sh_gdbarch_init): Update.
7533 * s390-tdep.c (s390_gdbarch_init): Update.
7534 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7535 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7536 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7537 * mips-tdep.c (mips_gdbarch_init): Update.
7538 * mcore-tdep.c (mcore_gdbarch_init): Update.
7539 * m68k-tdep.c (m68k_gdbarch_init): Update.
7540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7541 * ia64-tdep.c (ia64_gdbarch_init): Update.
7542 (ia64_saved_pc_after_call): Update declaration.
7543 * i386ly-tdep.c (i386lynx_init_abi): Update.
7544 * i386-tdep.c (i386_gdbarch_init): Update.
7545 * hppa-tdep.c (hppa_gdbarch_init): Update.
7546 * h8300-tdep.c (h8300_gdbarch_init): Update.
7547 * frv-tdep.c (frv_gdbarch_init): Update.
7548 * cris-tdep.c (cris_gdbarch_init): Update.
7549 * avr-tdep.c (avr_gdbarch_init): Update.
7550 * arm-tdep.c (arm_gdbarch_init): Update.
7551 * alpha-tdep.c (alpha_gdbarch_init): Update.
7552 * ns32knbsd-nat.c (frame_num_args): Update.
7553 * ns32k-tdep.c (umax_frame_num_args): Update.
7554 * mips-tdep.c (mips_init_frame_pc_first): Update.
7555 * infrun.c (step_over_function): Update.
7556 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7557 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7558 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7559 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7560 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7561 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7562 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7563 * arch-utils.c (init_frame_pc_default): Update.
7564 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7565 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7566 declaration.
8ffd9b1b 7567
38edeab8
AC
75682003-04-11 Andrew Cagney <cagney@redhat.com>
7569
7570 * i387-tdep.c: Update copyright.
7571 (i387_to_double): Delete function.
7572 (double_to_i387): Delete function.
7573
81f8a206
AC
75742003-04-10 Andrew Cagney <cagney@redhat.com>
7575
7576 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7577 frame's function's address. Simplify.
7578 (d10v_frame_unwind_cache): Check that the frame's function is
7579 non-zero.
7580
6e691f7a
JB
75812003-04-10 Jim Blandy <jimb@redhat.com>
7582
7583 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7584 call to set_gdbarch_deprecated_push_arguments.
7585
7f78e237
AC
75862003-04-10 Andrew Cagney <cagney@redhat.com>
7587
7588 * frame.c (fprint_frame_id): New function.
7589 (fprint_frame_type, fprint_frame): New function.
7590 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7591 (create_sentinel_frame, get_frame_id): Ditto.
7592 (frame_id_p, frame_id_eq): Ditto.
7593 (frame_id_inner, create_new_frame): Ditto.
7594 (legacy_get_prev_frame, get_prev_frame): Ditto.
7595 (deprecated_update_frame_pc_hack): Ditto.
7596 (frame_register_unwind): Ditto.
7597 (deprecated_update_frame_base_hack): Ditto.
7598
f870b49b
CV
75992003-04-10 Corinna Vinschen <vinschen@redhat.com>
7600
7601 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7602 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7603 frame_chain function.
7604 * Makefile.in: Add dependencies due to above change.
7605
7c86889b
CV
76062003-04-10 Corinna Vinschen <vinschen@redhat.com>
7607
7608 * blockframe.c (legacy_frame_chain_valid): Move call to
7609 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7610 inside_entry_file.
7611
d0a55772
AC
76122003-04-09 Andrew Cagney <cagney@redhat.com>
7613
7614 * frame.h (struct frame_id): Replace "pc" and "base" with
7615 "stack_addr" and "code_addr". Update comments.
7616 (frame_id_build): Update parameter names and comment.
7617 (struct frame_info): Replace "id_p" and "id" with "this_id".
7618 * dummy-frame.c (dummy_frame_this_id): Update.
7619 * breakpoint.c (print_one_breakpoint): Update.
7620 * frame.c (get_frame_id): Update.
7621 (get_frame_base, frame_id_build): Update.
7622 (create_sentinel_frame, legacy_get_prev_frame): Update.
7623 (deprecated_update_frame_base_hack): Update.
7624 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7625 (frame_id_inner): Ditto.
7626
ac16bf07
AC
76272003-04-09 Andrew Cagney <cagney@redhat.com>
7628
7629 * defs.h (gdb_print_host_address): Make "addr" parameter a
7630 pointer constant.
7631 * utils.c (gdb_print_host_address): Update.
7632
366cfc9e
KB
76332003-04-09 Kevin Buettner <kevinb@redhat.com>
7634
7635 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7636 register number for R0 is 0.
7637
cd983b5c
JB
76382003-04-09 J. Brobecker <brobecker@gnat.com>
7639
7640 * frame.h (struct gdbarch): Add opaque structure definition
7641 to avoid a compilation warning on LynxOS 4.0.
7642
d1340264
AC
76432003-04-09 Andrew Cagney <cagney@redhat.com>
7644
7645 * frame.h (struct frame_info): Delete field "pc". Replace
7646 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7647 structure.
7648 * frame.c (frame_pc_unwind): Update.
7649 (create_sentinel_frame): Do not set "pc".
7650 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7651 (get_frame_pc): Call frame_pc_unwind.
7652 (deprecated_update_frame_pc_hack): Update.
7653 (create_new_frame): Use "pc" not "->pc".
7654
90a6fffb
AC
76552003-04-09 Andrew Cagney <cagney@redhat.com>
7656
7657 * frame.c (get_frame_id): Eliminate code updating "frame".
7658 (legacy_get_prev_frame): Ditto.
7659 (get_frame_base): Return id.base directly.
7660 (deprecated_update_frame_base_hack): Update "id.base".
7661 * frame.h (struct frame_info): Delete field "frame".
7662
2fbce691
AC
76632003-04-09 Andrew Cagney <cagney@redhat.com>
7664
7665 * NEWS: Mention that the "Sequent family" is obsolete.
7666 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7667 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7668 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7669 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7670 * config/i386/tm-ptx4.h: Obsolete file.
7671 * config/i386/tm-ptx.h: Obsolete file.
7672 * symm-tdep.c: Obsolete file.
7673 * config/i386/symmetry.mt: Obsolete file.
7674 * config/i386/tm-symmetry.h: Obsolete file.
7675 * symm-nat.c: Obsolete file.
7676 * config/i386/nm-symmetry.h: Obsolete file.
7677 * config/i386/xm-symmetry.h: Obsolete file.
7678 * config/i386/symmetry.mh: Obsolete file.
7679 * config/i386/nm-ptx4.h: Obsolete file.
7680 * config/i386/ptx4.mh: Obsolete file.
7681 * config/i386/ptx.mt: Obsolete file.
7682 * config/i386/ptx.mh: Obsolete file.
7683 * config/i386/xm-ptx4.h: Obsolete file.
7684 * config/i386/xm-ptx.h: Obsolete file.
7685
78c43945
AC
76862003-04-09 Andrew Cagney <cagney@redhat.com>
7687
7688 Obsolete mips*-*-mach3*.
7689 * NEWS: Mention that mips*-*-mach3* is obsolete.
7690 * m3-nat.c: Obsolete file.
7691 * config/nm-m3.h: Obsolete file.
7692 * config/mips/tm-mipsm3.h: Obsolete file.
7693 * config/mips/mipsm3.mt: Obsolete file.
7694 * config/mips/mipsm3.mh: Obsolete file.
7695 * config/mips/xm-mipsm3.h: Obsolete file.
7696 * mipsm3-nat.c: Obsolete file.
7697 * configure.host: Obsolete mips-dec-mach3*.
7698 * configure.tgt: Obsolete mips*-*-mach3*.
7699
f1908289
AC
77002003-04-09 Andrew Cagney <cagney@redhat.com>
7701
7702 * doublest.h: Update copyright.
7703 (deprecated_store_floating, deprecated_extract_floating): Rename
7704 store_floating and extract_floating. Update comments.
7705 * doublest.c: Update copyright.
7706 (extract_floating_by_length): Replace extract_floating.
7707 (store_floating_by_length): Replace store_floating.
7708 (deprecated_extract_floating): New function.
7709 (deprecated_store_floating): New function.
7710 (extract_typed_floating): Call extract_floating_by_length.
7711 (store_typed_floating): Call store_floating_by_length.
7712 * x86-64-tdep.c (x86_64_store_return_value): Update.
7713 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7714 (sh64_extract_return_value): Update.
7715 (sh_sh4_register_convert_to_virtual): Update.
7716 (sh_sh64_register_convert_to_virtual): Update.
7717 (sh_sh4_register_convert_to_raw): Update.
7718 (sh_sh64_register_convert_to_raw): Update.
7719 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7720 (rs6000_register_convert_to_raw): Update.
7721 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7722 (ia64_register_convert_to_raw): Update.
7723 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7724 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7725 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7726 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7727 (alpha_register_convert_to_raw): Update.
7728
4443bd83
AC
77292003-04-08 Andrew Cagney <cagney@redhat.com>
7730
7731 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7732 * gdbarch.h, gdbarch.c: Re-generate.
7733 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7734 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7735 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7736 conditionally, use frame_pc_unwind as an alternative. Add
7737 comments.
7738 * arch-utils.c (init_frame_pc_default): Only call
7739 SAVED_PC_AFTER_CALL when available.
7740
c0236d92
EZ
77412003-04-08 Elena Zannoni <ezannoni@redhat.com>
7742
fbe586ae 7743 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7744 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7745 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7746 (start_remote): Ditto.
7747 (handle_inferior_event): Ditto.
7748 (save_inferior_status): Ditto.
7749 (restore_inferior_status): Ditto.
7750 * infcmd.c (attach_command): Ditto.
7751 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7752 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7753 * alpha-tdep.c (heuristic_proc_start): Ditto.
7754 * mips-tdep.c (heuristic_proc_start): Ditto.
7755 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7756 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7757 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7758 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7759 * remote-vx.c (vx_create_inferior): Ditto.
7760
77612003-04-08 Elena Zannoni <ezannoni@redhat.com>
7762
7763 * infrun.c (stop_soon_quietly): Make it an enum, to better
7764 override the default behavior of handle_inferior_event.
7765 (clear_proceed_status): Update uses of stop_soon_quietly to
7766 reflect that it is now an enum.
7767 (start_remote): Ditto.
7768 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7769 is set to handle the new GNU/Linux kernel behavior for
7770 attach/sigstop. Update uses of stop_soon_quietly.
7771 * inferior.h (enum stop_kind): New enum.
7772 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7773 Reset normal handle_inferior_event behavior, afterwards.
7774 * fork-child.c (startup_inferior): Update.
7775 * alpha-tdep.c (heuristic_proc_start): Update.
7776 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7777 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7778 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7779 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7780 * remote-vx.c (vx_create_inferior): Update.
7781 * mips-tdep.c (heuristic_proc_start): Update.
7782
1211bce3
EZ
77832003-04-07 Elena Zannoni <ezannoni@redhat.com>
7784
7785 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7786 be freed more than once, causing wild memory corruptions.
1211bce3 7787 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7788 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7789 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7790 with the "core" target.
1211bce3 7791
f0ef6b29
KB
77922003-04-07 Kevin Buettner <kevinb@redhat.com>
7793
7794 * mips-tdep.c (mips_print_fp_register): New function, created from
7795 do_fp_register_row(). Registers are now (also) printed as hex.
7796 Only one register is printed per row.
7797 (mips_print_register, do_fp_register_row): Print floating point
7798 registers with mips_print_fp_register().
7799
8cf71652
AC
78002003-04-06 Andrew Cagney <cagney@redhat.com>
7801
5e488a7b
AC
7802 * valprint.h (inspect_it): Add extern declaration.
7803 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7804 (selectors_info, classes_info): Ditto.
7805 (find_objc_msgcall): Fix indentation.
7806 (objc_printstr): Delete extern declarations.
7807
8cf71652
AC
7808 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7809
e6ba3bc9
AC
78102003-04-06 Andrew Cagney <cagney@redhat.com>
7811
7812 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7813 Update comment.
7814 * frame.c (legacy_saved_regs_this_id): Update.
7815 (legacy_get_prev_frame): Update.
7816 * xstormy16-tdep.c: Update comment.
7817 * sparc-tdep.c (sparc_frame_chain): Update comment.
7818 * blockframe.c (legacy_frame_chain_valid): Update.
7819
55e1d7e7
AC
78202003-04-06 Andrew Cagney <cagney@redhat.com>
7821
996179ee
AC
7822 * valprint.c (val_print_type_code_int): Delete #ifdef
7823 PRINT_TYPELESS_INTEGER code.
7824
55e1d7e7
AC
7825 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7826 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7827 multi-arch definition.
7828 * gdbarch.h: Re-generate.
7829
43bd9a9e
AC
78302003-04-05 Andrew Cagney <cagney@redhat.com>
7831
7832 Eliminate FRAME_FIND_SAVED_REGS.
7833 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7834 Change FSR parameter to a pointer.
7835 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7836 Assume FSR parameter is a pointer.
7837 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7838 Make fsr a pointer.
7839 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7840 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7841 saved_regs a pointer.
7842 (hppa_frame_saved_pc): Ditto.
7843 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7844 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7845 pointer.
7846 (restore_pc_queue): Make fsr a pointer.
7847 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7848 (hppa_frame_chain): Make saved_regs a pointer, call
7849 hppa_frame_init_saved_regs.
7850 * sparc-tdep.c: Include "gdb_assert.h".
7851 (sparc_frame_find_saved_regs): Replace internal_error with
7852 gdb_assert.
7853 * remote-vxsparc.c (vx_read_register): Delete reference to
7854 FRAME_FIND_SAVED_REGS.
7855 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7856 * gdbarch.h: Regenerate.
7857 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7858 (deprecated_get_frame_saved_regs): Delete declaration.
7859 (struct frame_saved_regs): Delete definition.
7860 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7861 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7862 (hppa_frame_find_saved_regs): Delete declaration.
7863 (FRAME_FIND_SAVED_REGS): Delete macro.
7864 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7865 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7866 FRAME_FIND_SAVED_REGS in comment.
7867
be41e9f4
AC
78682003-04-05 Andrew Cagney <cagney@redhat.com>
7869
7870 * frame.c (frame_func_unwind, get_frame_func): New functions.
7871 * frame.h (get_frame_func, frame_func_unwind): Declare.
7872 (struct frame_info): Add field "prev_func" for caching the
7873 previous frame's function address.
7874 * arm-tdep.c (arm_frameless_function_invocation): Combine
7875 get_pc_function_start and get_frame_pc into get_frame_func.
7876 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7877 (sh64_nofp_frame_init_saved_regs): Ditto.
7878 * s390-tdep.c (s390_function_start): Ditto.
7879 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7880 (rs6000_frameless_function_invocation): Ditto.
7881 (rs6000_frame_saved_pc): Ditto.
7882 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7883 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7884 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7885 (i386_frame_init_saved_regs): Ditto.
7886 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7887 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7888 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7889 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7890 * blockframe.c (frameless_look_for_prologue): Ditto.
7891
a01dd7cc
AC
78922003-04-05 Andrew Cagney <cagney@redhat.com>
7893
7894 * frame.c (legacy_get_prev_frame): Link prev to next at the
7895 function start. Update comments.
7896
5e5592e6
AC
78972003-04-05 Andrew Cagney <cagney@redhat.com>
7898
7899 * frame.c (get_frame_id): Update comment.
7900 (legacy_get_prev_frame): Update comment.
7901 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7902 * gdbarch.h: Regenerate.
7903 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7904 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7905
6fba5002
AC
79062003-04-05 Andrew Cagney <cagney@redhat.com>
7907
7908 * stack.c (print_frame_info): Use get_frame_pc.
7909
7df05f2b
AC
79102003-04-04 Andrew Cagney <cagney@redhat.com>
7911
7912 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7913 the frame's type from the unwinder.
7914 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7915 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7916 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7917 (get_frame_base_address): Use get_frame_type.
7918 (get_frame_locals_address, get_frame_args_address): Ditto.
7919 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7920 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7921 (struct frame_info): Add comment explaining why the frame contains
7922 a "type" field.
7923 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7924 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7925 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7926 NORMAL_FRAME.
7927 * frame-unwind.h: Include "frame.h".
7928 (struct frame_unwind): Add "type" field.
7929 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7930
11889732
AC
79312003-04-04 Andrew Cagney <cagney@redhat.com>
7932
7933 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7934 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7935 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7936 get_frame_base.
7937 (d10v_unwind_dummy_id): Use frame_id_build.
7938 * frame.c (find_frame_sal): Use get_frame_pc.
7939 (create_new_frame): Use deprecated_update_frame_pc_hack and
7940 deprecated_update_frame_base_hack.
7941 (create_sentinel_frame): Add comment about ->pc going away.
7942 (get_prev_frame): Add comment about ->pc going away.
7943 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7944 frame_id_build, deprecated_update_frame_pc_hack and
7945 deprecated_update_frame_base_hack.
7946 (select_frame): Use get_frame_pc.
7947 (legacy_saved_regs_this_id): Use frame_id_build.
7948
50c46a0d
EZ
79492003-04-04 Elena Zannoni <ezannoni@redhat.com>
7950
fbe586ae
RH
7951 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7952 signed integer case.
7953 (classify_argument): Handle enumerations and references.
50c46a0d 7954
50bbdbd9
AC
79552003-04-04 Andrew Cagney <cagney@redhat.com>
7956
7957 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7958 ID to NULL.
7959
36018d2e
AF
79602003-04-01 Adam Fedor <fedor@gnu.org>
7961
7962 * gdb/objc-lang.c (selectors_info): Replace calls to
7963 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7964 SYMBOL_NATURAL_NAME.
7965 (classes_info, find_methods): Likewise.
7966
35cec841
KB
79672003-04-03 Kevin Buettner <kevinb@redhat.com>
7968
7969 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7970 ``mach'' to the value determined by bfd_default_set_arch_mach().
7971
43136899
BR
79722003-04-02 Bob Rossi <bob_rossi@cox.net>
7973
7974 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7975 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7976 (mi-cmd-file.o): Update dependencies.
7977
040b99fd
KB
79782003-04-01 Kevin Buettner <kevinb@redhat.com>
7979
7980 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7981 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7982
9a3d7dfd
AF
79832003-04-01 Adam Fedor <fedor@gnu.org>
7984
7985 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7986 * language.h (struct language_defn): Add la_demangle.
7987 (language_demangle): Declare.
7988 * language.c (language_demangle): New function.
7989 (unk_lang_demangle): Likewise.
7990 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7991 Add ukn_lang_demangle.
9a3d7dfd 7992 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7993 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7994 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7995 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7996 * jv-lang.c (java_demangle): New function
7997 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7998 * objc-lang.c (objc_demangle): Add options argument
7999 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8000 * maint.c (maintenance_demangle): Replace switch with
8001 call to language_demangle.
8002 * utils.c (fprintf_symbol_filtered): Likewise.
8003
5e074003
AC
80042003-04-01 Andrew Cagney <cagney@redhat.com>
8005
8006 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8007 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8008 PRINT_TYPELESS_INTEGER.
8009 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8010 PUSH_RETURN_ADDRESS.
8011
270cb5d6
AC
80122003-04-01 Andrew Cagney <cagney@redhat.com>
8013
8014 * Makefile.in (d10v-tdep.o): Update dependencies.
8015 * d10v-tdep.c: Include "frame-base.h".
8016 (d10v_frame_unwind): Make constant.
8017 (d10v_frame_base_address): New function.
8018 (d10v_frame_base): New variable.
8019 (d10v_gdbarch_init): Set frame_base default.
8020 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8021 comment for base.
8022 (d10v_frame_unwind_cache): Set and use "prev_sp".
8023 (d10v_frame_this_id): Use the previous frame's inner most stack
8024 address and this frame's func address for the frame ID. Use
8025 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8026
6bfb3e36
AC
80272003-04-01 Andrew Cagney <cagney@redhat.com>
8028
8029 * frame.h (get_frame_locals_address, get_frame_args_address):
8030 Refer to the base address, instead of the address of the first
8031 local or parameter.
8ffd9b1b 8032
da62e633
AC
80332003-04-01 Andrew Cagney <cagney@redhat.com>
8034
8035 Add frame debug info addresses:
8036 * frame-base.c: New file.
8037 * frame-base.h: New file.
8038 * frame.h (struct frame_base): Add opaque declaration.
8039 (get_frame_base): Update comment.
8040 (get_frame_base_address): Declare.
8041 (get_frame_locals_address): Declare.
8042 (get_frame_args_address): Declare.
8043 (struct frame_info): Add "base" and "base_cache". Update
8044 comments on the unwinder.
8045 * frame.c: Include "frame-base.h".
8046 (get_frame_locals_address): New function.
8047 (get_frame_base_address): New function.
8048 (get_frame_args_address): New function.
8049 * findvar.c (read_var_value): Use get_frame_locals_address and
8050 get_frame_args_address.
8051 * stack.c (frame_info): Use get_frame_locals_address and
8052 get_frame_args_address.
8053 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8054 moved to "frame-base.c".
8055 * printcmd.c (print_frame_nameless_args): Ditto.
8056 * symtab.h (address_class): Update comments.
8057 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8058 get_frame_base_address.
8059 * dwarf2expr.c (execute_stack_op): Ditto.
8060 * Makefile.in (frame_base_h): Define.
8061 (frame.o): Update dependencies.
8062 (frame-base.o): Add dependencies.
8063 (SFILES): Add frame-base.c.
8064 (COMMON_OBS): Add frame-base.o.
8065
3d30e9c2
AC
80662003-04-01 Andrew Cagney <cagney@redhat.com>
8067
8068 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8069 CALL_DUMMY_LENGTH): Ditto.
8070 * gdbarch.c: Re-generate.
8071 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8072 (CALL_DUMMY_LENGTH): Delete macro.
8073 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8074 * arm-tdep.c (arm_gdbarch_init): Ditto.
8075 * avr-tdep.c (avr_gdbarch_init): Ditto.
8076 * cris-tdep.c (cris_gdbarch_init): Ditto.
8077 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8078 * frv-tdep.c (frv_gdbarch_init): Ditto.
8079 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8080 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8081 * i386-tdep.c (i386_gdbarch_init): Ditto.
8082 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8084 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8085 * mips-tdep.c (mips_gdbarch_init): Ditto.
8086 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8087 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8088 * s390-tdep.c (s390_gdbarch_init): Ditto.
8089 * sh-tdep.c (sh_gdbarch_init): Ditto.
8090 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8091 * v850-tdep.c (v850_gdbarch_init): Ditto.
8092 * vax-tdep.c (vax_gdbarch_init): Ditto.
8093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8094
ce0c7262
CV
80952003-04-01 Corinna Vinschen <vinschen@redhat.com>
8096
8097 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8098
73dd234f
AC
80992003-04-01 Andrew Cagney <cagney@redhat.com>
8100
8101 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8102 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8103 * gdbarch.h, gdbarch.c: Re-generate.
8104 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8105 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8106 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8107 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8108 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8109 * infcmd.c (run_stack_dummy): Simplify assuming
8110 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8111 * infrun.c (handle_inferior_event): Ditto.
8112 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8113 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8114 * arm-tdep.c (arm_gdbarch_init): Ditto.
8115 * avr-tdep.c (avr_gdbarch_init): Ditto.
8116 * cris-tdep.c (cris_gdbarch_init): Ditto.
8117 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8118 * frv-tdep.c (frv_gdbarch_init): Ditto.
8119 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8120 * i386-tdep.c (i386_gdbarch_init): Ditto.
8121 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8123 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8124 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8125 * mips-tdep.c (mips_gdbarch_init): Ditto.
8126 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8127 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8128 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8129 * s390-tdep.c (s390_gdbarch_init): Ditto.
8130 * sh-tdep.c (sh_gdbarch_init): Ditto.
8131 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8132 * v850-tdep.c (v850_gdbarch_init): Ditto.
8133 * vax-tdep.c (vax_gdbarch_init): Ditto.
8134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8135
97606a13
DJ
81362003-04-01 Daniel Jacobowitz <drow@mvista.com>
8137
8138 * symfile.c (symfile_relocate_debug_section): Update call to
8139 bfd_simple_get_relocated_section_contents.
8140
e8ab51f7
AC
81412003-03-31 Andrew Cagney <cagney@redhat.com>
8142
8143 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8144 * gdbarch.h, gdbarch.c: Regenerate.
8145 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8146 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8147 available.
8148 * frame.h (generic_fix_call_dummy): Delete declaration.
8149 * dummy-frame.h: Update comment.
8150 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8152 fix_call_dummy.
8153 * sh-tdep.c (sh_gdbarch_init): Ditto.
8154 * s390-tdep.c (s390_gdbarch_init): Ditto.
8155 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8156 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8158 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8159 * i386-tdep.c (i386_gdbarch_init): Ditto.
8160 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8161 * frv-tdep.c (frv_gdbarch_init): Ditto.
8162 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8163 * cris-tdep.c (cris_gdbarch_init): Ditto.
8164 * avr-tdep.c (avr_gdbarch_init): Ditto.
8165 * arm-tdep.c (arm_gdbarch_init): Ditto.
8166
018d1b48
JB
81672003-03-31 J. Brobecker <brobecker@gnat.com>
8168
8169 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8170 (INIT_FRAME_AP): Likewise.
8171 (EXTRA_FRAME_INFO): Likewise.
8172
e9a2674e
AC
81732003-03-31 Andrew Cagney <cagney@redhat.com>
8174
8175 * gdbarch.sh: Include "symfile.h".
8176 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8177 * gdbarch.h, gdbarch.c: Re-generate.
8178 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8180 call_dummy_address, the default is at entry_point_address.
8181 * v850-tdep.c (v850_gdbarch_init): Ditto.
8182 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8183 * sh-tdep.c (sh_gdbarch_init): Ditto.
8184 * s390-tdep.c (s390_gdbarch_init): Ditto.
8185 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8186 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8187 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8188 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8189 * i386-tdep.c (i386_gdbarch_init): Ditto.
8190 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8191 * frv-tdep.c (frv_gdbarch_init): Ditto.
8192 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8193 * cris-tdep.c (cris_gdbarch_init): Ditto.
8194 * arm-tdep.c (arm_gdbarch_init): Ditto.
8195
e8a8712a
AC
81962003-03-31 Andrew Cagney <cagney@redhat.com>
8197
8198 * gdbarch.sh (CALL_DUMMY_P): Delete.
8199 * gdbarch.h, gdbarch.c: Re-generate.
8200 * inferior.h (CALL_DUMMY_P): Delete macro.
8201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8202 * vax-tdep.c (vax_gdbarch_init): Update.
8203 * v850-tdep.c (v850_gdbarch_init): Update.
8204 * sparc-tdep.c (sparc_gdbarch_init): Update.
8205 * sh-tdep.c (sh_gdbarch_init): Update.
8206 * s390-tdep.c (s390_gdbarch_init): Update.
8207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8208 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8209 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8210 * mips-tdep.c (mips_gdbarch_init): Update.
8211 * mcore-tdep.c (mcore_gdbarch_init): Update.
8212 * m68k-tdep.c (m68k_gdbarch_init): Update.
8213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8214 * ia64-tdep.c (ia64_gdbarch_init): Update.
8215 * i386-tdep.c (i386_gdbarch_init): Update.
8216 * h8300-tdep.c (h8300_gdbarch_init): Update.
8217 * frv-tdep.c (frv_gdbarch_init): Update.
8218 * d10v-tdep.c (d10v_gdbarch_init): Update.
8219 * cris-tdep.c (cris_gdbarch_init): Update.
8220 * breakpoint.c (deprecated_frame_in_dummy): Update.
8221 * avr-tdep.c (avr_gdbarch_init): Update.
8222 * alpha-tdep.c (alpha_gdbarch_init): Update.
8223 * arm-tdep.c (arm_gdbarch_init): Update.
8224 * dummy-frame.c (dummy_frame_this_id): Update comments.
8225 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8226 * frame.c (legacy_get_prev_frame): Ditto.
8227 * valops.c (call_function_by_hand): Delete function.
8228 (hand_function_call): Rename to call_function_by_hand
8229
ed234cf8
AC
82302003-03-30 Andrew Cagney <cagney@redhat.com>
8231
8232 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8233 * value.h (struct value): Update comment.
ed234cf8 8234
06c77151
AC
82352003-03-30 Andrew Cagney <cagney@redhat.com>
8236
6c2b5168
AC
8237 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8238 D10V_FP_REGNUM.
8239 (d10v_gdbarch_init): Do not set fp_regnum.
8240
06c77151
AC
8241 * frame.c (get_frame_base): Force ID initialization.
8242 (get_prev_frame): Move computation of the frame ID from here ...
8243 (get_frame_id): ... to here.
8244 (legacy_get_prev_frame): Mark the frame ID as valid.
8245 * frame.h (struct frame_info): Add field "id_p".
8246
97a1a11c
MK
82472003-03-30 Mark Kettenis <kettenis@gnu.org>
8248
8249 * i386-tdep.c (i386_store_struct_return): Removed.
8250 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8251
6c0e89ed
AC
82522003-03-30 Andrew Cagney <cagney@redhat.com>
8253
8254 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8255 * gdbarch.h, gdbarch.c: Regenerate.
8256 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8257 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8258 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8259 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8260 * i386-tdep.c (i386_gdbarch_init): Ditto.
8261 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8262 * cris-tdep.c (cris_gdbarch_init): Ditto.
8263 * vax-tdep.c (vax_gdbarch_init): Ditto.
8264 * s390-tdep.c (s390_gdbarch_init): Ditto.
8265 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8266 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8267 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8268 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8269 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8270 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8271 * sparc-tdep.c (sparc_gdbarch_init): Update.
8272 * sh-tdep.c (sh_gdbarch_init): Update.
8273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8274 * mips-tdep.c (mips_gdbarch_init): Update.
8275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8276 * ia64-tdep.c (ia64_gdbarch_init): Update.
8277 * frv-tdep.c (frv_gdbarch_init): Update.
8278 * avr-tdep.c (avr_gdbarch_init): Update.
8279 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8280 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8281 instead of when push_dummy_call is not available.
8ffd9b1b 8282
f7dd6af2
AC
82832003-03-30 Andrew Cagney <cagney@redhat.com>
8284
8285 * infttrace.c: Include "gdbthread.h".
8286 (parent_attach_all): Fix function signature.
8287 (call_ptrace): Update call.
8288 * Makefile.in (infttrace.o): Update dependencies.
8289
28f617b3
AC
82902003-03-30 Andrew Cagney <cagney@redhat.com>
8291
8292 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8293 PUSH_RETURN_ADDRESS.
8294 * gdbarch.h, gdbarch.c: Regenerate.
8295 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8296 * x86-64-tdep.c (x86_64_init_abi): Update.
8297 * v850-tdep.c (v850_gdbarch_init): Update.
8298 * sparc-tdep.c (sparc_gdbarch_init): Update.
8299 * sh-tdep.c (sh_gdbarch_init): Update.
8300 * s390-tdep.c (s390_gdbarch_init): Update.
8301 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8303 * mips-tdep.c (mips_gdbarch_init): Update.
8304 * mcore-tdep.c (mcore_gdbarch_init): Update.
8305 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8306 * ia64-tdep.c (ia64_gdbarch_init): Update.
8307 * i386-tdep.c (i386_gdbarch_init): Update.
8308 * h8300-tdep.c (h8300_gdbarch_init): Update.
8309 * frv-tdep.c (frv_gdbarch_init): Update.
8310 * cris-tdep.c (cris_gdbarch_init): Update.
8311 * avr-tdep.c (avr_gdbarch_init): Update.
8312 * arm-tdep.c (arm_gdbarch_init): Update.
8313 * valops.c (hand_function_call): Update.
8314
4d628cd7
AC
83152003-03-29 Andrew Cagney <cagney@redhat.com>
8316
8317 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8318 sizeof_call_dummy_words.
8319 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8320 define.
8321 * gdbarch.h: Regenerate.
8ffd9b1b 8322
65e82032
AC
83232003-03-29 Andrew Cagney <cagney@redhat.com>
8324
8325 * infttrace.h: New file.
8326 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8327 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8328 (hpread_read_doc_function_type): Detect an initialized type1.
8329 (hpread_quick_traverse): Initialize mod_name_string.
8330 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8331 (som_solib_get_solib_by_pc): Declare.
8332 (so_lib_thread_start_addr): Declare.
8333 (no_shared_libraries): Declare.
8334 * somread.c (init_import_symbols): Make static. Add forward
8335 declaration.
8336 * config/pa/nm-hppah.h: Include "infttrace.h" for
8337 parent_attach_all.
8338 (hppa_insert_hw_watchpoint): Declare.
8339 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8340 * hppah-nat.c: Include "gdb_string.h".
8341 (parent_attach_all): Delete extern declaration, moved to
8342 "infttrace.h".
8343 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8344 int.
8345 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8346 * Makefile.in (infttrace_h): Define.
8347 (hpread.o): Update dependencies.
8348 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8349 * hppa-hpux-tdep.c: Include "gdb_string.h".
8350 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8351 * infrun.c (handle_inferior_event): Always initialize
8352 stepped_after_stopped_by_watchpoint. Add default and remove
8353 fallthrough in switch statement.
8354 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8355 parameter to int.
8356 (hppa_remove_hw_watchpoint): Ditto.
8357
2c3bbe77
AC
83582003-03-29 Andrew Cagney <cagney@redhat.com>
8359
8360 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8361 offset.
8362
2dd604e7
RE
83632003-03-29 Richard Earnshaw <rearnsha@arm.com>
8364
8365 * arm-tdep.c (arm_push_arguments): Delete.
8366 (struct stack_item): New type.
8367 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8368 (arm_store_struct_return): Delte.
8369 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8370 arm_push_arguments or arm_store_struct_return.
8371
e8933a55
AC
83722003-03-28 Andrew Cagney <cagney@redhat.com>
8373
8374 * Makefile.in (d10v-tdep.o): Update dependencies.
8375 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8376 * d10v-tdep.c: Include "remote.h".
8377 (target_resume_hook): Delete extern declaration.
8378 (target_wait_loop_hook): Ditto.
8379 (tdisassemble_command): Eliminate assignment in "if" conditional.
8380 (d10v_ts2_register_sim_regno): Eliminate call to
8381 legacy_register_sim_regno.
8382 (d10v_ts3_register_sim_regno): Ditto.
8383
6949171e
JJ
83842003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8385
8386 * thread.c: Reindented.
8387 * lin-lwp.c: Ditto.
8388 * linux-proc.c: Ditto.
8389
98c7071f
BR
83902003-03-28 Bob Rossi <bob_rossi@cox.net>
8391
fbe586ae 8392 * MAINTAINERS (write after approval): Add myself.
98c7071f 8393
5edc9ca6
TR
83942003-03-27 Theodore A. Roth <troth@openavr.org>
8395
8396 * objc-exp.y: Add missing semi-colons.
8397
378bfd1b
AC
83982003-03-27 Andrew Cagney <cagney@redhat.com>
8399
8400 * regcache.c (write_sp): Delete function and references.
8401 * inferior.h (write_sp): Delete declaration.
8402 * valops.c (hand_function_call): Replace write_sp with
8403 TARGET_WRITE_SP.
8404 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8405 (sparc_pop_frame): Ditto.
8ffd9b1b 8406
56056df7
AC
84072003-03-27 Andrew Cagney <cagney@redhat.com>
8408
8409 * NEWS: Mention removal of support for hppa*-*-bsd* and
8410 hppa*-*-osf* natives, and hppa*-*-pro* target.
8411 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8412 * config/pa/xm-pa.h: Obsolete file.
8413 * config/pa/xm-hppab.h: Obsolete file.
8414 * config/pa/nm-hppab.h: Obsolete file.
8415 * config/pa/tm-hppab.h: Obsolete file.
8416 * config/pa/tm-hppao.h: Obsolete file.
8417 * config/pa/nm-hppao.h: Obsolete file.
8418 * config/pa/tm-pro.h: Obsolete file.
8419 * config/pa/hppaosf.mt: Obsolete file.
8420 * config/pa/hppaosf.mh: Obsolete file.
8421 * config/pa/hppapro.mt: Obsolete file.
8422 * config/pa/hppabsd.mt: Obsolete file.
8423 * config/pa/hppabsd.mh: Obsolete file.
8424 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8425 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8426 hppa*-*-osf*.
8427
5873a88d
AC
84282003-03-27 Andrew Cagney <cagney@redhat.com>
8429
8430 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8431 push_arguments. Don't set push_return_address or write_sp.
8432 (d10v_push_dummy_call): Replace d10v_push_arguments.
8433 (d10v_push_return_address, d10v_write_sp): Delete function,
8434 handled by push_dummy_call.
8435
b81774d8
AC
84362003-03-26 Andrew Cagney <cagney@redhat.com>
8437
8438 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8439 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8440 regcache and dummy_addr parameters.
8441 * gdbarch.h, gdbarch.c: Re-generate.
8442 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8443 available; assume it will handle stack alignment and return
8444 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8445 legacy_push_arguments.
8446 (legacy_push_arguments): Rename default_push_arguments.
8447 * value.h (legacy_push_arguments): Rename default_push_arguments.
8448 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8449 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8450 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8451 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8452 * config/i386/tm-symmetry.h: Update.
8453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8454 * x86-64-tdep.c (x86_64_init_abi): Update.
8455 * v850-tdep.c (v850_gdbarch_init): Update.
8456 * sparc-tdep.c (sparc_gdbarch_init): Update.
8457 * sh-tdep.c (sh_gdbarch_init): Update.
8458 * s390-tdep.c (s390_gdbarch_init): Update.
8459 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8460 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8461 * mips-tdep.c (mips_gdbarch_init): Update.
8462 * mcore-tdep.c (mcore_gdbarch_init): Update.
8463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8464 * ia64-tdep.c (ia64_gdbarch_init): Update.
8465 * i386-tdep.c (i386_gdbarch_init): Update.
8466 * hppa-tdep.c (hppa_gdbarch_init): Update.
8467 * h8300-tdep.c (h8300_gdbarch_init): Update.
8468 * frv-tdep.c (frv_gdbarch_init): Update.
8469 * d10v-tdep.c (d10v_gdbarch_init): Update.
8470 * cris-tdep.c (cris_gdbarch_init): Update.
8471 * avr-tdep.c (avr_gdbarch_init): Update.
8472 * arm-tdep.c (arm_gdbarch_init): Update.
8473 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8474 * alpha-tdep.c (alpha_gdbarch_init): Update.
8475
f541410f
DJ
84762003-03-26 Daniel Jacobowitz <drow@mvista.com>
8477
8478 * signals/signals.c (do_target_signal_to_host): Correct realtime
8479 signal range test.
8480
69f567ae
DJ
84812003-03-26 Daniel Jacobowitz <drow@mvista.com>
8482
8483 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8484 (struct sal_chain, map_catch_names): Remove.
8485 (catch_exception_command_1): Don't call
8486 handle_gnu_4_16_catch_command.
8487
d5d14a5a
DJ
84882003-03-26 Daniel Jacobowitz <drow@mvista.com>
8489
8490 From Mark Dettinger <dettinge@de.ibm.com>:
8491 * dwarf2cfi.c (read_2u): Increment pointer by two.
8492
bdd73e22
DJ
84932003-03-26 Daniel Jacobowitz <drow@mvista.com>
8494
8495 * signals/signals.c: Fix typos in last change.
8496
960cb555
DJ
84972003-03-26 Daniel Jacobowitz <drow@mvista.com>
8498
8499 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8500 not already defined. Use __SIGRTMIN if available.
8501 (target_signal_from_host): Remove SIGRTMIN block.
8502 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8503 the signal is within the realtime range.
8504
f636b87d
AF
85052003-03-25 Adam Fedor <fedor@gnu.org>
8506
8507 * Makefile.in (infrun.o): Add $(language_h)
8508 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8509 for language specific trampolines.
8510 * language.h (struct language_defn): Add skip_trampoline.
8511 (skip_language_trampoline): Declare.
8512 * language.c (unk_lang_trampoline, skip_language_trampoline):
8513 New functions.
8514 (unknown_language_defn, auto_language_defn, local_language_defn):
8515 Add ukn_lang_trampoline.
8516 * ada-lang.c (ada_language_defn): Add NULL for language
8517 specific skip_trampoline.
8518 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8519 scm-lang.c: Likewise.
8520 * objc-lang.c (objc_skip_trampoline): New function.
8521 (objc_language_defn): Add objc_skip_trampoline.
8522
28f617b3 85232003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8524
8525 * frame.c (get_prev_frame): Delay validating a frame's ID -
8526 non-NULL, didn't go backwards - until an attempt to unwind it to
8527 the previous frame.
8528
f933a9c5
AC
85292003-03-25 Andrew Cagney <cagney@redhat.com>
8530
8531 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8532 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8533 * gdbarch.h, gdbarch.c: Re-generate.
8534 * config/sparc/tm-sparc.h
8535 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8536 * sparc-tdep.c (sparc_gdbarch_init): Set
8537 deprecated_extra_stack_alignment_needed.
8538 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8540 extra_stack_alignment_needed.
8541 * v850-tdep.c (v850_gdbarch_init): Ditto.
8542 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8543 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8544 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8545 * cris-tdep.c (cris_gdbarch_init): Ditto.
8546 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8548
4183d812
AC
85492003-03-25 Andrew Cagney <cagney@redhat.com>
8550
8551 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8552 STORE_STRUCT_RETURN.
8553 * gdbarch.h, gdbarch.c: Regenerate.
8554 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8555 (d10v_push_arguments): Set the struct return register.
8556 (d10v_gdbarch_init): Update.
8557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8558 * x86-64-tdep.c (x86_64_init_abi): Update.
8559 * vax-tdep.c (vax_gdbarch_init): Update.
8560 * v850-tdep.c (v850_gdbarch_init): Update.
8561 * sparc-tdep.c (sparc_gdbarch_init): Update.
8562 * sh-tdep.c (sh_gdbarch_init): Update.
8563 * s390-tdep.c (s390_gdbarch_init): Update.
8564 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8565 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8566 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8567 * mips-tdep.c (mips_gdbarch_init): Update.
8568 * mcore-tdep.c (mcore_gdbarch_init): Update.
8569 * m68k-tdep.c (m68k_gdbarch_init): Update.
8570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8571 * ia64-tdep.c (ia64_gdbarch_init): Update.
8572 * i386-tdep.c (i386_gdbarch_init): Update.
8573 * hppa-tdep.c (hppa_gdbarch_init): Update.
8574 * h8300-tdep.c (h8300_gdbarch_init): Update.
8575 * frv-tdep.c (frv_gdbarch_init): Update.
8576 * cris-tdep.c (cris_gdbarch_init): Update.
8577 * avr-tdep.c (avr_gdbarch_init): Update.
8578 * arm-tdep.c (arm_gdbarch_init): Update.
8579 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8580
1bf6d5cc
AC
85812003-03-25 Andrew Cagney <cagney@redhat.com>
8582
8583 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8584 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8585 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8586 * gdbarch.h, gdbarch.c: Regenerate.
8587 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8588 call_dummy_stack_adjust_p.
8589 * vax-tdep.c (vax_gdbarch_init): Ditto.
8590 * v850-tdep.c (v850_gdbarch_init): Ditto.
8591 * sh-tdep.c (sh_gdbarch_init): Ditto.
8592 * s390-tdep.c (s390_gdbarch_init): Ditto.
8593 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8594 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8595 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8596 * mips-tdep.c (mips_gdbarch_init): Ditto.
8597 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8598 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8600 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8601 * i386-tdep.c (i386_gdbarch_init): Ditto.
8602 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8603 * frv-tdep.c (frv_gdbarch_init): Ditto.
8604 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8605 * cris-tdep.c (cris_gdbarch_init): Ditto.
8606 * avr-tdep.c (avr_gdbarch_init): Ditto.
8607 * arm-tdep.c (arm_gdbarch_init): Ditto.
8608 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8609 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8610 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8611 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8612 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8613 call_dummy_stack_adjust_p.
8614 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8615 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8616 * sparc-tdep.c (sparc32_push_arguments): Update.
8617 * valops.c (hand_function_call): Update.
8618
71c08af0
CV
86192003-03-25 Corinna Vinschen <vinschen@redhat.com>
8620
8621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8622 set_gdbarch_char_signed.
8623
30757f90
RE
86242003-03-25 Richard Earnshaw <rearnsha@arm.com>
8625
8626 PR cli/548
8627 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8628
03d48a7d
RE
86292003-03-25 Richard Earnshaw <rearnsha@arm.com>
8630
8631 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8632 (_initialize_arm_tdep): Don't set tm_print_insn.
8633
2cf6873c
AF
86342003-03-24 Adam Fedor <fedor@gnu.org>
8635
8636 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8637 * objc-lang.h: Add multiple inclusion protection.
8638 (start_msglist, add_msglist, end_msglist): Additional declarations.
8639
17c0759e
RE
86402003-03-24 Richard Earnshaw <rearnsha@arm.com>
8641
8642 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8643 value was renamed to ARM_FLOAT_SOFT_FPA.
8644
618ce49f
AC
86452003-03-23 Andrew Cagney <cagney@redhat.com>
8646
8647 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8648 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8649 * gdbarch.h, gdbarch.c: Regenerate.
8650 * valops.c (hand_function_call): Update.
8651 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8652 * frame.c (legacy_saved_regs_this_id): Update.
8653 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8654 * dummy-frame.h: Update.
8655 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8656 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8657 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8658 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8659 * config/m68k/tm-sun3.h: Update.
8660 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8662 * x86-64-tdep.c (x86_64_init_abi): Update.
8663 * vax-tdep.c (vax_gdbarch_init): Update.
8664 * v850-tdep.c (v850_gdbarch_init): Update.
8665 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8666 * sh-tdep.c (sh_gdbarch_init): Update.
8667 * s390-tdep.c (s390_gdbarch_init): Update.
8668 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8669 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8670 (frame_get_saved_regs): Update.
8671 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8672 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8673 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8674 * mips-tdep.c (mips_gdbarch_init): Update.
8675 * mcore-tdep.c (mcore_gdbarch_init): Update.
8676 * m68k-tdep.c (m68k_gdbarch_init): Update.
8677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8678 * ia64-tdep.c (ia64_gdbarch_init): Update.
8679 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8680 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8681 (i386_interix_back_one_frame): Update.
8682 * hppa-tdep.c (hppa_gdbarch_init): Update.
8683 (hppa_init_extra_frame_info): Update.
8684 * h8300-tdep.c (h8300_gdbarch_init): Update.
8685 * frv-tdep.c (frv_gdbarch_init): Update.
8686 * cris-tdep.c (cris_gdbarch_init): Update.
8687 * avr-tdep.c (avr_gdbarch_init): Update.
8688 * arm-tdep.c (arm_gdbarch_init): Update.
8689 * alpha-tdep.c (alpha_gdbarch_init): Update.
8690
fd50bc42
RE
86912003-03-22 Richard Earnshaw <rearnsha@arm.com>
8692
8693 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8694 (arm_get_fp_model): Declare.
8695 * arm-tdep.c (fp_model_strings): New string array.
8696 (arm_fp_model, current_fp_model): New variables.
8697 (arm_get_fp_model): New function.
8698 (arm_set_fp): New function.
8699 (set_fp_model_sfunc): New function.
8700 (show_fp_model): New function.
8701 (_initialize_arm_tdep): Add new command to set/show the FPU.
8702 (arm_extract_return_value): Use arm_get_fp_model.
8703 (arm_store_return_value): Likewise.
8704 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8705 to initialize the floating-point data types.
8706 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8707 model is FPA.
8708
26304000
RE
87092003-03-22 Richard Earnshaw <rearnsha@arm.com>
8710
8711 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8712 the current setting of each value.
8713 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8714 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8715 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8716 commands and add new version as subcommands of "set/show arm".
8717
afd7eef0
RE
87182003-03-22 Richard Earnshaw <rearnsha@arm.com>
8719
8720 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8721 (set_arm_command, show_arm_command): New functions.
8722 (_initialize_arm_tdep): Add them.
8723 (num_disassembly_options): Renamed from num_flavor_options.
8724 (valid_disassembly_styles): Renamed from valid_flavors.
8725 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8726 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8727 set_disassembly_flavor_sfunc.
8728 (set_disassembly_style): Renamed from set_disassembly_flavor.
8729 (arm_othernames): Updated.
8730 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8731 command. Add "set/show arm disassembly" commands. Deprecate
8732 "othernames" command.
8733
299a7944
RE
87342003-03-22 Richard Earnshaw <rearnsha@arm.com>
8735
8736 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8737 (arm-tdep.o): Depend on elf_arm_h.
8738
c1dac9e6
RE
87392003-03-22 Richard Earnshaw <rearnsha@arm.com>
8740
8741 * Makefile.in (coff_internal_h): Define.
8742 (arm-tdep.o): Update dependencies.
8743
2702d96c
RE
87442003-03-22 Richard Earnshaw <rearnsha@arm.com>
8745
8746 * arm-tdep.c (prologue_cache): Delete.
8747 (check_prologue_cache, save_prologue_cache): Delete.
8748 (arm_scan_prologue): Don't check or update the prologue_cache.
8749 (arm_gdb_arch_init): Don't initialize it.
8750 (_initialize_arm_tdep): Likewise.
8751
27d5d74b
SC
87522003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8753
8754 * MAINTAINERS (tui): Maintainer of tui code.
8755
1762d96d
CV
87562003-03-21 Corinna Vinschen <vinschen@redhat.com>
8757
8758 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8759 (i386-cygwin-tdep.o): Add dependencies.
8760 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8761 * i386-cygwin-tdep.c: New file.
8762 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8763 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8764
4c2e2391
AC
87652003-03-20 Andrew Cagney <cagney@redhat.com>
8766
f20d38b7
AC
8767 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8768 (handle_inferior_event): Remove code calling
8769 DYNAMIC_TRAMPOLINE_NEXTPC.
8770
0022b738
AC
8771 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8772 already has a full path.
8773
864dbc90
AC
8774 * main.c (gdb_main): Return 1.
8775 (captured_main): Call error to report an invalid interpreter.
8776
4c2e2391
AC
8777 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8778 * alpha-osf1-tdep.c: Include "gdb_string.h".
8779
5ef7553b
JB
87802003-03-19 J. Brobecker <brobecker@gnat.com>
8781
8782 Continuing work to convert the hppa targets to multiarch partial.
8783
8784 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8785 method, now that hppa_push_dummy_frame has a conformant prototype.
8786 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8787 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8788 for the switch to multiarch partial.
8789
7bde8967
KB
87902003-03-19 Kevin Buettner <kevinb@redhat.com>
8791
8792 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8793 when iss is issNull.
8794
b006a9e9
KB
87952003-03-18 Kevin Buettner <kevinb@redhat.com>
8796
8797 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8798 NUM_REGS bounds check.
8799
5e2e9765
KB
88002003-03-18 Kevin Buettner <kevinb@redhat.com>
8801
8802 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8803 * mips-tdep.c (gdb_assert.h): Include.
8804 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8805 (mips_register_name): Handle integer registers explicitly. Add
8806 bounds checking.
8807 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8808 (mips_lsi33k_reg_names): Don't list integer registers; they're
8809 handled by mips_register_name() now.
8810 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8811 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8812 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8813 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8814 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8815
a2867626
AC
88162003-03-18 Andrew Cagney <cagney@redhat.com>
8817
8818 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8819 a void pointer.
8820 * gdbtypes.h (print_scalar_formatted): Update declaration.
8821 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8822
06600e06
JB
88232003-03-18 J. Brobecker <brobecker@gnat.com>
8824
8825 * infrun.c (observer.h): Add #include.
8826 (normal_stop): Add call to observer_notify_normal_stop.
8827 * Makefile.in (infrun.o): Add dependency on observer.h.
8828
7daf4f5b
JB
88292003-03-18 J. Brobecker <brobecker@gnat.com>
8830
8831 Continuing work to convert the hppa targets to multiarch partial.
8832 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8833 parameter. Reformat comment.
8834 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8835 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8836 to match new profile.
8837
3371ccc0
JB
88382003-03-18 J. Brobecker <brobecker@gnat.com>
8839
8840 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8841 appear to be working in any case.
8842
4fbe891e
JB
88432003-03-18 J. Brobecker <brobecker@gnat.com>
8844
8845 * observer.c (observer_test_first_observer): New static variable.
8846 (observer_test_second_observer): Likewise.
8847 (observer_test_third_observer): Likewise.
8848 (observer_test_first_notification_function): New static function.
8849 (observer_test_second_notification_function): Likewise.
8850 (observer_test_third_notification_function): Likewise.
8851
a7ff40e7
JB
88522003-03-17 J. Brobecker <brobecker@gnat.com>
8853
8854 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8855 * somsolib.c (gdb_assert.h): Likewise.
8856 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8857 (somsolib.o): Likewise.
8858
26ca4152
AC
88592003-03-17 Andrew Cagney <cagney@redhat.com>
8860
8861 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8862 BFD. Simplify setting of di.endian.
8863
0a613259
AC
88642003-03-17 Andrew Cagney <cagney@redhat.com>
8865
8866 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8867 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8868
8869 From Elena Zannoni <ezannoni@redhat.com>
8870 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8871 vector and floating-point parameters.
8872 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8873 convention.
8874 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8875
1132738f
FN
88762003-03-17 Fernando Nasser <fnasser@redhat.com>
8877
8878 * MAINTAINERS: Remove my name from several maintainership roles.
8879
6dc42492
AC
88802003-03-17 Andrew Cagney <cagney@redhat.com>
8881
8882 Fix frame off-by-one bug.
8883 * frame-unwind.h (frame_this_id_ftype): Replace
8884 frame_unwind_id_ftype.
8885 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8886 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8887 with "prev_register".
8888 * frame-unwind.c (frame_unwind_find_by_pc): Return
8889 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8890 comment.
8891 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8892 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8893 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8894 (dummy_frame_unwind): Update.
8895 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8896 sentinel_frame_register_unwind.
8897 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8898 (sentinel_frame_unwinder): Update.
8899 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8900 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8901 * frame.c (create_sentinel_frame): Update. Initialize
8902 "prologue_cache" instead of "unwind_cache".
8903 (frame_register_unwind): Call this frame's prev_register with the
8904 next frame and this frame's prologue cache.
8905 (get_prev_frame): Simplify. Always call prev frame's this_id with
8906 this frame and prev frame's prologue cache. Document that this
8907 call is shifted one to the left when compared to the
8908 frame_register_unwind call.
8909 (legacy_saved_regs_prev_register): Replace
8910 frame_saved_regs_register_unwind.
8911 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8912 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8913 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8914 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8915 (d10v_frame_unwind): Update.
8916 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8917 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8918 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8919 "saved_regs" with "this_saved_regs".
8920
efd710d6
AC
89212003-03-16 Andrew Cagney <cagney@redhat.com>
8922
8923 * frame.c (frame_pop): Don't call target_store_registers. Fix
8924 problem reported by Mark Kettenis.
8925
4e259f09
MK
89262003-03-16 Mark Kettenis <kettenis@gnu.org>
8927
8928 * i386-tdep.c (i386_register_type): Renamed from
8929 i386_register_virtual_type. Adjust function signature.
8930 (i386_gdbarch_init): Set register_type instead of
8931 deprecated_max_register_raw_size,
8932 deprecated_max_register_virtual_size and register_virtual_type.
8933
055bb976
AC
89342003-03-14 Andrew Cagney <cagney@redhat.com>
8935
8936 * frame.c (get_prev_frame): When a legacy frame, always call
8937 legacy_get_prev_frame. Simplify unwind code using assumption that
8938 the unwinder is new.
8939 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8940 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8941 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8942
ac2adee5
AC
89432003-03-14 Andrew Cagney <cagney@redhat.com>
8944
8945 * frame.c (get_saved_register): Delete function.
8946 * frame.h (get_saved_register): Delete declaration.
8947 * xstormy16-tdep.c: Update comment.
8948 * regcache.h: Update comments.
8949 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8950 get_saved_register and extract_address, use
8951 frame_read_unsigned_register.
8952 (sparc_frame_saved_pc): Ditto.
8953 (sparc_get_saved_register): Instead of get_saved_register, use
8954 frame_register.
8955 (sparc_pop_frame): Ditto.
8956 * findvar.c: Update comments.
8957 (value_of_register): Call frame_register instead of
8958 get_saved_register.
8959 (value_from_register): Ditto.
8960 * config/sparc/tm-sparc.h: Update comment.
8961 * breakpoint.c: Update comment.
8962
129c1cd6
AC
89632003-03-14 Andrew Cagney <cagney@redhat.com>
8964
8965 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8966 GET_SAVED_REGISTER.
8967 * gdbarch.h, gdbarch.c: Re-generate.
8968 * frame.h: Update comments.
8969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8970 * x86-64-tdep.c (x86_64_init_abi): Update.
8971 * sparc-tdep.c (sparc_gdbarch_init): Update.
8972 * sh-tdep.c (sh_gdbarch_init): Update.
8973 * mips-tdep.c (mips_gdbarch_init): Update.
8974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8975 * cris-tdep.c (cris_gdbarch_init): Update.
8976 * ia64-tdep.c (ia64_gdbarch_init): Update.
8977 * frame.c (frame_register): Update.
8978 (get_saved_register): Update.
8979 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8980
749b82f6
AC
89812003-03-13 Andrew Cagney <cagney@redhat.com>
8982
8983 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8984 * gdbarch.h, gdbarch.c: Regenerate.
8985 * valops.c (hand_function_call): Update comment.
8986 * stack.c (return_command): Update comment.
8987 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8988 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8990 * x86-64-tdep.c (x86_64_init_abi): Update.
8991 * vax-tdep.c (vax_gdbarch_init): Update.
8992 * v850-tdep.c (v850_gdbarch_init): Update.
8993 * sparc-tdep.c (sparc_gdbarch_init): Update.
8994 * sh-tdep.c (sh_gdbarch_init): Update.
8995 * s390-tdep.c (s390_gdbarch_init): Update.
8996 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8997 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8998 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8999 * mips-tdep.c (mips_gdbarch_init): Update.
9000 * mcore-tdep.c (mcore_gdbarch_init): Update.
9001 * m68k-tdep.c (m68k_gdbarch_init): Update.
9002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9003 * ia64-tdep.c (ia64_gdbarch_init): Update.
9004 * i386-tdep.c (i386_gdbarch_init): Update.
9005 * hppa-tdep.c (hppa_gdbarch_init): Update.
9006 * h8300-tdep.c (h8300_gdbarch_init): Update.
9007 * frv-tdep.c (frv_gdbarch_init): Update.
9008 * cris-tdep.c (cris_gdbarch_init): Update.
9009 * avr-tdep.c (avr_gdbarch_init): Update.
9010 * arm-tdep.c (arm_gdbarch_init): Update.
9011 * alpha-tdep.c (alpha_gdbarch_init): Update.
9012
1594fa56
AC
90132003-03-13 Andrew Cagney <cagney@redhat.com>
9014
9015 * frame.c (legacy_frame_p): New function.
9016 (get_prev_frame): Use legacy_frame_p.
9017 * frame.h (legacy_frame_p): Declare.
9018
7717fda3
V
90192003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9020
fbe586ae 9021 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9022 listing corrected.
9023
0c67cbe9
V
90242003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9025
fbe586ae 9026 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9027
03febf99
AC
90282003-03-12 Andrew Cagney <cagney@redhat.com>
9029
9030 * frame.c (get_prev_frame): Rename the frame parameter to
9031 "this_frame".
9032 (get_next_frame, legacy_get_prev_frame): Ditto.
9033
0a1e1ca1
AC
90342003-03-12 Andrew Cagney <cagney@redhat.com>
9035
9036 * frame.c (get_current_frame): Check target_has_registers before
9037 checking target_has_stack.
9038 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9039 instead of deprecated_selected_frame.
9040 * findvar.c (value_of_register): Pass "frame", not
9041 deprecated_selected_frame, to value_of_builtin_reg.
9042
a66a9c23
AC
90432003-03-12 Andrew Cagney <cagney@redhat.com>
9044
9045 * regcache.c (regcache_cooked_write_signed): New function.
9046 (regcache_cooked_write_unsigned): New function.
9047 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9048 (regcache_cooked_read_signed): Fix regnum in range assertion.
9049 * regcache.h (regcache_cooked_write_signed): Declare.
9050 (regcache_cooked_write_unsigned): Declare.
9051
8bedc050
AC
90522003-03-12 Andrew Cagney <cagney@redhat.com>
9053
9054 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9055 * gdbarch.h, gdbarch.c: Re-generate.
9056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9057 * x86-64-tdep.h: Update.
9058 * x86-64-tdep.c (x86_64_init_abi): Update.
9059 * v850-tdep.c (v850_gdbarch_init): Update.
9060 * sparc-tdep.c (sparc_gdbarch_init): Update.
9061 * sh-tdep.c (sh_gdbarch_init): Update.
9062 * s390-tdep.c (s390_gdbarch_init): Update.
9063 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9064 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9065 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9066 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9067 * mips-tdep.c (mips_gdbarch_init): Update.
9068 * mcore-tdep.c (mcore_gdbarch_init): Update.
9069 * m68k-tdep.c (m68k_gdbarch_init): Update.
9070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9071 * ia64-tdep.c (ia64_gdbarch_init): Update.
9072 * i386-tdep.c (i386_gdbarch_init): Update.
9073 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9074 * hppa-tdep.c (hppa_gdbarch_init): Update.
9075 * h8300-tdep.c (h8300_gdbarch_init): Update.
9076 * frv-tdep.c (frv_gdbarch_init): Update.
9077 * cris-tdep.c (cris_gdbarch_init): Update.
9078 * avr-tdep.c (avr_gdbarch_init): Update.
9079 * arm-tdep.c (arm_gdbarch_init): Update.
9080 * alpha-tdep.c (alpha_gdbarch_init): Update.
9081 * sh-tdep.c (sh_init_extra_frame_info): Update.
9082 (sh64_init_extra_frame_info): Update.
9083 * ns32knbsd-nat.c (frame_num_args): Update.
9084 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9085 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9086 (xstormy16_frame_chain_valid): Update.
9087 * vax-tdep.c (vax_saved_pc_after_call): Update.
9088 * v850-tdep.c (v850_frame_chain): Update.
9089 (v850_pop_frame): Update.
9090 (v850_init_extra_frame_info): Update.
9091 * sparc-tdep.c (setup_arbitrary_frame): Update.
9092 * ns32k-tdep.c (umax_frame_num_args): Update.
9093 * s390-tdep.c (s390_pop_frame_regular): Update.
9094 * mn10300-tdep.c (mn10300_frame_chain): Update.
9095 (mn10300_pop_frame_regular): Update.
9096 (mn10300_init_extra_frame_info): Update.
9097 * mips-tdep.c (mips_init_frame_pc_first): Update.
9098 (mips_frame_chain): Update.
9099 (mips_pop_frame): Update.
9100 * mcore-tdep.c (mcore_frame_chain): Update.
9101 (mcore_pop_frame): Update.
9102 (mcore_init_extra_frame_info): Update.
9103 * arch-utils.c (init_frame_pc_default): Update.
9104 * m68k-tdep.c (isi_frame_num_args): Update.
9105 (delta68_frame_num_args): Update.
9106 (news_frame_num_args): Update.
9107 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9108 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9109 (alpha_frame_chain): Update.
9110 (alpha_pop_frame): Update.
9111 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9112 (hppa_init_extra_frame_info): Update.
9113 (hppa_frame_chain): Update.
9114 (hppa_frame_chain_valid): Update.
9115 * cris-tdep.c (cris_init_extra_frame_info): Update.
9116 * avr-tdep.c (avr_init_extra_frame_info): Update.
9117 * arm-tdep.c (arm_frame_chain_valid): Update.
9118 (arm_init_extra_frame_info): Update.
9119 (arm_pop_frame): Update.
9120 * frame.c (frame_pc_unwind): Update.
9121 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9122 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9123 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9124 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9125 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9126 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9127
7a25a7c1
AC
91282003-03-12 Andrew Cagney <cagney@redhat.com>
9129
9130 Eliminate the need for POP_FRAME.
9131 * frame.c (do_frame_unwind_register): New function.
9132 (frame_pop): When no POP_FRAME, pop the frame using register
9133 unwind and a scratch regcache.
9134 (frame_saved_regs_pop): Delete function.
9135 (trad_frame_unwinder): Update.
9136 * d10v-tdep.c (d10v_frame_pop): Delete function.
9137 (d10v_frame_unwind): Update.
9138 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9139 (sentinel_frame_unwinder): Update.
9140 * dummy-frame.c (dummy_frame_pop): Delete function.
9141 (dummy_frame_unwind): Update.
9142 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9143 (struct frame_unwind): Update.
9144
2f38ef89
KB
91452003-03-11 Kevin Buettner <kevinb@redhat.com>
9146
9147 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9148 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9149 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9150 Do range checks on register number obtained from debugging info.
9151 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9152 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9153 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9154 mapping function.
9155 (do_fp_register_row): Fix typo which caused double type to be
9156 used when attempting to unpack a float.
9157
552f4abf
JB
91582003-03-11 J. Brobecker <brobecker@gnat.com>
9159
9160 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9161
e0d2ae16
AC
91622003-03-11 Andrew Cagney <cagney@redhat.com>
9163
9164 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9165 frame. Problem found by Corinna Vinschen.
9166
ddbfdd06
PM
91672003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9168
9169 * doublest.c (floatformat_from_length): Accept also
9170 the real size of 'long double' type.
9171
088b2ddc 91722003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9173
088b2ddc 9174 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9175 * breakpoint.c (bpstat_copy): Copy the command lines as well
9176 as the old value, to match what is freed in bpstat_clear.
9177
f56f77c1
DC
91782003-03-10 David Carlton <carlton@math.stanford.edu>
9179
9180 * minsyms.c (add_minsym_to_hash_table): Replace
9181 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9182 (compare_minimal_symbols, compact_minimal_symbols)
9183 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9184 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9185 of DEPRECATED_SYMBOL_MATCHES_NAME.
9186 (lookup_minimal_symbol_solib_trampoline): Ditto.
9187
5602984a
AC
91882003-03-10 Andrew Cagney <cagney@redhat.com>
9189
9190 * regcache.h (regcache_cooked_read_ftype): Define.
9191 (regcache_save, regcache_restore): Add a cooked_read parameter.
9192 * regcache.c (regcache_save, regcache_restore): Update.
9193 (do_cooked_read): New function.
9194 (regcache_cpy): Pass do_cooked_read to regcache_save and
9195 regcache_restore.
9196
8bedc050
AC
91972003-03-10 Andrew Cagney <cagney@redhat.com>
9198
9199 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9200 * gdbarch.h, gdbarch.c: Re-generate.
9201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9202 * x86-64-tdep.h: Update.
9203 * x86-64-tdep.c (x86_64_init_abi): Update.
9204 * v850-tdep.c (v850_gdbarch_init): Update.
9205 * sparc-tdep.c (sparc_gdbarch_init): Update.
9206 * sh-tdep.c (sh_gdbarch_init): Update.
9207 * s390-tdep.c (s390_gdbarch_init): Update.
9208 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9209 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9211 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9212 * mips-tdep.c (mips_gdbarch_init): Update.
9213 * mcore-tdep.c (mcore_gdbarch_init): Update.
9214 * m68k-tdep.c (m68k_gdbarch_init): Update.
9215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9216 * ia64-tdep.c (ia64_gdbarch_init): Update.
9217 * i386-tdep.c (i386_gdbarch_init): Update.
9218 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9219 * hppa-tdep.c (hppa_gdbarch_init): Update.
9220 * h8300-tdep.c (h8300_gdbarch_init): Update.
9221 * frv-tdep.c (frv_gdbarch_init): Update.
9222 * cris-tdep.c (cris_gdbarch_init): Update.
9223 * avr-tdep.c (avr_gdbarch_init): Update.
9224 * arm-tdep.c (arm_gdbarch_init): Update.
9225 * alpha-tdep.c (alpha_gdbarch_init): Update.
9226 * sh-tdep.c (sh_init_extra_frame_info): Update.
9227 (sh64_init_extra_frame_info): Update.
9228 * ns32knbsd-nat.c (frame_num_args): Update.
9229 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9230 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9231 (xstormy16_frame_chain_valid): Update.
9232 * vax-tdep.c (vax_saved_pc_after_call): Update.
9233 * v850-tdep.c (v850_frame_chain): Update.
9234 (v850_pop_frame): Update.
9235 (v850_init_extra_frame_info): Update.
9236 * sparc-tdep.c (setup_arbitrary_frame): Update.
9237 * ns32k-tdep.c (umax_frame_num_args): Update.
9238 * s390-tdep.c (s390_pop_frame_regular): Update.
9239 * mn10300-tdep.c (mn10300_frame_chain): Update.
9240 (mn10300_pop_frame_regular): Update.
9241 (mn10300_init_extra_frame_info): Update.
9242 * mips-tdep.c (mips_init_frame_pc_first): Update.
9243 (mips_frame_chain): Update.
9244 (mips_pop_frame): Update.
9245 * mcore-tdep.c (mcore_frame_chain): Update.
9246 (mcore_pop_frame): Update.
9247 (mcore_init_extra_frame_info): Update.
9248 * arch-utils.c (init_frame_pc_default): Update.
9249 * m68k-tdep.c (isi_frame_num_args): Update.
9250 (delta68_frame_num_args): Update.
9251 (news_frame_num_args): Update.
9252 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9253 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9254 (alpha_frame_chain): Update.
9255 (alpha_pop_frame): Update.
9256 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9257 (hppa_init_extra_frame_info): Update.
9258 (hppa_frame_chain): Update.
9259 (hppa_frame_chain_valid): Update.
9260 * cris-tdep.c (cris_init_extra_frame_info): Update.
9261 * avr-tdep.c (avr_init_extra_frame_info): Update.
9262 * arm-tdep.c (arm_frame_chain_valid): Update.
9263 (arm_init_extra_frame_info): Update.
9264 (arm_pop_frame): Update.
9265 * frame.c (frame_pc_unwind): Update.
9266 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9267 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9268 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9269 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9270 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9271 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9272
12cc2063
AC
92732003-03-10 Andrew Cagney <cagney@redhat.com>
9274
9275 * gdbarch.sh (gdbarch_unwind_pc): New method.
9276 * gdbarch.h, gdbarch.c: Regenerate.
9277 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9278 but use read_pc and FRAME_SAVED_PC as fall backs.
9279 (frame_saved_regs_pc_unwind): Delete function.
9280 (trad_frame_unwinder): Update.
9281 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9282 (struct frame_unwind): Update.
9283 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9284 (dummy_frame_unwind): Update.
9285 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9286 (sentinel_frame_unwinder): Update.
9287 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9288 (d10v_frame_unwind): Update.
9289 (d10v_unwind_pc): New function.
9290 (d10v_gdbarch_init): Set unwind_pc.
9291
ef840a37
AC
92922003-03-10 Andrew Cagney <cagney@redhat.com>
9293
a2ce2e56
AC
9294 * gdbarch.h: Re-generate.
9295
ef840a37
AC
9296 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9297 PC.
9298 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9299 the PC register.
9300
08f3424b
MK
93012003-03-08 Mark Kettenis <kettenis@gnu.org>
9302
9303 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9304
1248ede2
AC
93052003-03-08 Andrew Cagney <cagney@redhat.com>
9306
9307 * cli-out.c: Update copyright.
9308 (cli_out_data): Define typedef. Use instead of ui_out_data.
9309
f49bacc8
AC
93102003-03-08 Andrew Cagney <cagney@redhat.com>
9311
9312 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9313 the result.
9314
9b05f993
AC
93152003-03-07 Andrew Cagney <cagney@redhat.com>
9316
9317 * gdbarch.sh: Don't generate two macro definitions when an
9318 undefined macro taking no arguments.
9319 * gdbarch.h: Regenerate.
8ffd9b1b 9320
166f4c7b
ML
93212002-03-07 Michal Ludvig <mludvig@suse.cz>
9322
9323 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9324 (x86_64_unwind_dummy_id): New functions.
9325 (x86_64_init_abi): Register these two new functions.
9326
6d686a84
ML
93272003-03-07 Michal Ludvig <mludvig@suse.cz>
9328
9329 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9330 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9331 separate function.
9332 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9333
6314f104
AC
93342003-03-05 Andrew Cagney <cagney@redhat.com>
9335
9336 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9337 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9338 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9339 to use unwind_dummy_id when a dummy frame.
9340 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9341 predicate.
9342 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9343
ceea5145
AC
93442003-03-05 Andrew Cagney <cagney@redhat.com>
9345
9346 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9347 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9348 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9349 values.
9350
0d843116
AC
93512003-03-05 Andrew Cagney <cagney@redhat.com>
9352
9353 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9354 (struct d10v_unwind_cache): Delete field "frameless". Replace
9355 "next_addr" with "sp_offset". Add "r11_offset".
9356 (d10v_frame_unwind_cache): Update.
9357 (prologue_find_regs): Update. When "mv r11, sp", save the
9358 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9359 RN was saved in r11_offset.
9360
b2579786
AC
93612003-03-05 Andrew Cagney <cagney@redhat.com>
9362
9363 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9364 cached PC value in the next frame.
9365
218e5956
AC
93662003-03-05 Andrew Cagney <cagney@redhat.com>
9367
9368 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9369 "id_unwind_cache" with "id".
9370 (frame_id_unwind): Delete declaration.
9371 * frame.c (frame_id_unwind): Delete function.
9372 (get_prev_frame): Call the frame id unwind method directly. Store
9373 the returned next frame's ID value in NEXT_FRAME. Note that there
9374 is a problem with the wrong unwind ID being called with the wrong
9375 unwind cache.
9376
ed363b1b
DJ
93772003-03-05 Daniel Jacobowitz <drow@mvista.com>
9378
9379 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9380
fe1f4a5e
DJ
93812003-03-05 James Ingham <jingham@apple.com>
9382 Daniel Jacobowitz <drow@mvista.com>
9383
9384 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9385 (auto_cp_abi): New variable.
9386 (current_cp_abi, num_cp_abis): Make static.
9387 (CP_ABI_MAX): Define.
9388 (cp_abis): Turn into an array.
9389 (value_virtual_fn_field): Fix formatting.
9390 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9391 takes a pointer.
9392 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9393 (list_cp_abis, _initialize_cp_abi): New functions.
9394 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9395 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9396 switch_to_cp_abi. Update prototype for register_cp_abi.
9397 * Makefile.in (cp-abi.o): Update dependencies.
9398 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9399 instead of switch_to_cp_abi.
9400 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9401 register_cp_abi.
9402 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9403 register_cp_abi.
9404 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9405
e4adbba9
DJ
94062003-03-05 Daniel Jacobowitz <drow@mvista.com>
9407
9408 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9409 * dwarf2loc.c: Include "regcache.h".
9410 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9411 register_size.
9412 * Makefile.in (dwarf2loc.o): Update dependencies.
9413
91ccbfc1
TR
94142003-03-04 Theodore A. Roth <troth@openavr.org>
9415
9416 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9417 number of io registers reported by remote target is not a multiple of
9418 step.
9419
3d4e8fd2
DC
94202003-03-04 David Carlton <carlton@math.stanford.edu>
9421
9422 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9423 (lookup_symbol_aux_psymtabs): Update call to
9424 lookup_partial_symbol.
9425 (lookup_transparent_type, find_main_psymtab)
9426 (make_symbol_overload_list): Ditto.
9427
ed42d87b
KH
94282003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9429
9430 * MAINTAINERS (Write after approval): Update my email address.
9431
a0ed5532
AC
94322003-03-03 Andrew Cagney <cagney@redhat.com>
9433
9434 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9435 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9436 predicate. Replace MAX_REGISTER_RAW_SIZE.
9437 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9438 MAX_REGISTER_VIRTUAL_SIZE.
9439 * regcache.c (legacy_max_register_raw_size): New function.
9440 (legacy_max_register_virtual_size): New function.
9441 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9442 (MAX_REGISTER_RAW_SIZE): Define.
9443 (legacy_max_register_raw_size): Declare.
9444 (legacy_max_register_virtual_size): Declare.
9445 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9446 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9447 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9448 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9449 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9450 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9451 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9452 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9453 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9455 * vax-tdep.c (vax_gdbarch_init): Update.
9456 * v850-tdep.c (v850_gdbarch_init): Update.
9457 * sparc-tdep.c (sparc_gdbarch_init): Update.
9458 * sh-tdep.c (sh_gdbarch_init): Update.
9459 * s390-tdep.c (s390_gdbarch_init): Update.
9460 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9461 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9462 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9463 * mips-tdep.c (mips_gdbarch_init): Update.
9464 * mcore-tdep.c (mcore_gdbarch_init): Update.
9465 * m68k-tdep.c (m68k_gdbarch_init): Update.
9466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9467 * ia64-tdep.c (ia64_gdbarch_init): Update.
9468 * i386-tdep.c (i386_gdbarch_init): Update.
9469 * hppa-tdep.c (hppa_gdbarch_init): Update.
9470 * h8300-tdep.c (h8300_gdbarch_init): Update.
9471 * frv-tdep.c (frv_gdbarch_init): Update.
9472 * cris-tdep.c (cris_gdbarch_init): Update.
9473 * avr-tdep.c (avr_gdbarch_init): Update.
9474 * arm-tdep.c (arm_gdbarch_init): Update.
9475 * alpha-tdep.c (alpha_gdbarch_init): Update.
9476 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9477 max_register_raw_size or max_register_virtual_size.
9478
8e437497
DC
94792003-03-03 David Carlton <carlton@math.stanford.edu>
9480
9481 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9482 SYMBOL_MATCHES_NAME, add comment.
9483 (SYMBOL_MATCHES_NATURAL_NAME): New.
9484 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9485 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9486 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9487 * symtab.c (lookup_partial_symbol): Use
9488 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9489 unhelpful comment.
9490 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9491 SYMBOL_MATCHES_NAME.
9492 Fix for PR c++/33.
9493
25120b0d
DC
94942003-03-03 David Carlton <carlton@math.stanford.edu>
9495
9496 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9497 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9498 by regexp matching against SYMBOL_NATURAL_NAME.
9499
78a11fb4
DC
95002003-03-03 David Carlton <carlton@math.stanford.edu>
9501
9502 * linespec.c (find_method): Extract code into collect_methods.
9503 (collect_methods): New.
9504
645dd519
MK
95052003-03-02 Mark Kettenis <kettenis@gnu.org>
9506
b4700d91
MK
9507 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9508 get_frame_base.
9509
645dd519
MK
9510 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9511 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9512
0aa7e1aa
SC
95132003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9514
8ffd9b1b 9515 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9516 and not regnum when summing the size of all registers up to regnum.
9517
f30ee0bc
AC
95182003-03-01 Andrew Cagney <cagney@redhat.com>
9519
9520 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9521 FRAME_INIT_SAVED_REGS.
9522 * gdbarch.h, gdbarch.c: Regenerate.
9523 * stack.c (frame_info): Update.
9524 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9525 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9526 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9527 * ns32k-tdep.c (ns32k_pop_frame): Update.
9528 * mips-tdep.c (mips_pop_frame): Update.
9529 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9530 * ia64-tdep.c (ia64_frame_chain): Update.
9531 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9532 (ia64_frameless_function_invocation): Update.
9533 (ia64_init_extra_frame_info): Update.
9534 (ia64_pop_frame_regular): Update.
9535 * frame.h (struct frame_info): Update comment.
9536 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9537 * frame.c (frame_saved_regs_register_unwind): Update.
9538 (frame_saved_regs_register_unwind): Update.
9539 (deprecated_generic_get_saved_register): Update.
9540 * cris-tdep.c: Update comment.
9541 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9542 Rename macro.
9543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9544 * x86-64-tdep.c (x86_64_init_abi): Update.
9545 * vax-tdep.c (vax_gdbarch_init): Update.
9546 * v850-tdep.c (v850_gdbarch_init): Update.
9547 * sparc-tdep.c (sparc_gdbarch_init): Update.
9548 * sh-tdep.c (sh_gdbarch_init): Update.
9549 * s390-tdep.c (s390_gdbarch_init): Update.
9550 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9551 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9552 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9553 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9554 * mips-tdep.c (mips_gdbarch_init): Update.
9555 * mcore-tdep.c (mcore_gdbarch_init): Update.
9556 * m68k-tdep.c (m68k_gdbarch_init): Update.
9557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9558 * ia64-tdep.c (ia64_gdbarch_init): Update.
9559 * i386-tdep.c (i386_gdbarch_init): Update.
9560 * frv-tdep.c (frv_gdbarch_init): Update.
9561 * avr-tdep.c (avr_gdbarch_init): Update.
9562 * arm-tdep.c (arm_gdbarch_init): Update.
9563 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9564
42fa7c0f
AC
95652003-03-01 Andrew Cagney <cagney@redhat.com>
9566
9567 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9568 option enum and switch. When no windows, set the interpreter to
9569 INTERP_CONSOLE.
8ffd9b1b 9570
49c7e338
AC
95712003-03-01 Andrew Cagney <cagney@redhat.com>
9572
9573 * main.c (captured_main): Replace magic option characters with an
9574 enum.
9575
e9582e71
AC
95762003-03-01 Andrew Cagney <cagney@redhat.com>
9577
9578 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9579 INIT_EXTRA_FRAME_INFO.
9580 * gdbarch.h, gdbarch.c: Regenerate.
9581 * arm-tdep.c: Update comments.
9582 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9583 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9584 * frame.h, avr-tdep.c: Ditto.
9585 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9586 (create_new_frame, legacy_get_prev_frame): Ditto.
9587 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9588 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9590 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9591 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9592 * v850-tdep.c (v850_gdbarch_init): Ditto.
9593 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9594 * sh-tdep.c (sh_gdbarch_init): Ditto.
9595 * s390-tdep.c (s390_gdbarch_init): Ditto.
9596 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9597 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9598 * mips-tdep.c (mips_gdbarch_init): Ditto.
9599 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9601 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9602 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9603 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9604 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9605 * frv-tdep.c (frv_gdbarch_init): Ditto.
9606 * cris-tdep.c (cris_gdbarch_init): Ditto.
9607 * avr-tdep.c (avr_gdbarch_init): Ditto.
9608 * arm-tdep.c (arm_gdbarch_init): Ditto.
9609 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9610 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9611
35cac7cf
AC
96122003-03-01 Andrew Cagney <cagney@redhat.com>
9613
9614 * gdbarch.sh (register_type): New function with predicate.
9615 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9616 * gdbarch.h, gdbarch.c: Re-generate.
9617 * arch-utils.c (generic_register_byte): Use generic_register_size.
9618 (generic_register_size): When available, use
9619 gdbarch_register_type.
9620 * regcache.c (init_regcache_descr): When available, initialize the
9621 register type array using gdbarch_register_type. If the
9622 architecture supplies gdbarch_register_type, do not use the legacy
9623 regcache layout.
9624 * d10v-tdep.c (d10v_register_type): Replace
9625 d10v_register_virtual_type.
9626 (d10v_gdbarch_init): Set register_type instead of
9627 register_virtual_type.
9628
7b83296f
AC
96292003-03-01 Andrew Cagney <cagney@redhat.com>
9630
9631 * Makefile.in (ax-gdb.o): Update dependencies.
9632 * ax-gdb.c: Include "regcache.h".
9633 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9634 * findvar.c (value_of_register): Ditto.
9635 * infcmd.c (default_print_registers_info): Ditto.
9636
eadc1c87
MK
96372003-03-01 Mark Kettenis <kettenis@gnu.org>
9638
9639 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9640 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9641
14143612
MK
96422003-03-01 Mark Kettenis <kettenis@gnu.org>
9643
9644 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9645 of STREQ.
9646
a55cc764
DJ
96472003-02-28 Daniel Jacobowitz <drow@mvista.com>
9648
9649 * Makefile.in (dwarf2loc.o): Update dependencies.
9650 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9651 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9652 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9653 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9654 (locexpr_tracepoint_var_ref): New function.
9655 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9656
08a617da
AC
96572003-02-28 Andrew Cagney <cagney@redhat.com>
9658
9659 * regcache.c (register_size): New function.
9660 * regcache.h (register_size): Declare
9661 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9662 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9663
4224873a
DC
96642003-02-28 David Carlton <carlton@math.stanford.edu>
9665
9666 * linespec.c (decode_compound): Extract code into find_method.
9667 (find_method): New.
9668
ccdc5d7f
JB
96692003-02-28 J. Brobecker <brobecker@gnat.com>
9670
9671 * Makefile.in: Add rules to build and link in observer.o.
9672
974e8ced
JB
96732003-02-27 J. Brobecker <brobecker@gnat.com>
9674
9675 * observer.c: Minor comments edits.
9676
7a28f973
JB
96772003-02-27 J. Brobecker <brobecker@gnat.com>
9678
9679 * observer.h, observer.c: New file.
9680
27cddce2
AC
96812003-02-27 Andrew Cagney <cagney@redhat.com>
9682
9683 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9684
b94a41a1
SC
96852003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9686
9687 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9688 (M6812_OP_STS_EXT): Likewise.
9689 (m6811_prologue): Use the above to recognize prologue.
9690 (m6812_prologue): Likewise.
9691
c8be8951
DC
96922003-02-27 David Carlton <carlton@math.stanford.edu>
9693
9694 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9695 SYMBOL_PRINT_NAME.
9696 (compare_psymbols): Ditto.
9697 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9698
d05bb1fc
MS
96992003-02-27 Michael Snyder <msnyder@redhat.com>
9700
4e845cd3
MS
9701 * f-lang.c (build_fortran_types): New function.
9702 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9703 * doublest.c (extract_floating): Fix warning text.
9704
f3824013
AC
97052003-02-27 Andrew Cagney <cagney@redhat.com>
9706
9707 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9708 predicate. Replaces PUSH_DUMMY_FRAME.
9709 * gdbarch.h, gdbarch.c: Regnerate.
9710 * valops.c (hand_function_call): Update. Call
9711 generic_push_dummy_frame directly.
9712 * vax-tdep.c (vax_gdbarch_init): Update.
9713 * sparc-tdep.c (sparc_gdbarch_init): Update.
9714 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9715 * m68k-tdep.c (m68k_gdbarch_init): Update.
9716 * hppa-tdep.c (hppa_gdbarch_init): Update.
9717 * alpha-tdep.c (alpha_gdbarch_init): Update.
9718 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9719 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9720 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9722 push_dummy_frame to generic_push_dummy_frame.
9723 * v850-tdep.c (v850_gdbarch_init): Ditto.
9724 * sh-tdep.c (sh_gdbarch_init): Ditto.
9725 * s390-tdep.c (s390_gdbarch_init): Ditto.
9726 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9727 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9728 * mips-tdep.c (mips_gdbarch_init): Ditto.
9729 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9730 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9731 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9732 * i386-tdep.c (i386_gdbarch_init): Ditto.
9733 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9734 * frv-tdep.c (frv_gdbarch_init): Ditto.
9735 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9736 * cris-tdep.c (cris_gdbarch_init): Ditto.
9737 * avr-tdep.c (avr_gdbarch_init): Ditto.
9738 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9739
ad188201
KB
97402003-02-26 Kevin Buettner <kevinb@redhat.com>
9741
9742 * mips-tdep.c (show_mips_abi): New function.
9743 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9744 command ``show mips abi''.
9745
6b37567a 97462003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9747
6b37567a 9748 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9749 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9750 more sline entries have been seen for the function.
9751
d3e0a5bf
MC
97522003-02-26 Michael Chastain <mec@shout.net>
9753
9754 * configure: Regenerate with autoconf 000227.
9755
18972eea
MC
97562003-02-26 Michael Chastain <mec@shout.net>
9757
9758 Close PR build/660.
9759 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9760 for old libc5/glibc.
9761 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9762
0bbde931
KW
97632003-02-26 Kris Warkentin <kewarken@qnx.com>
9764
9765 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9766 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9767
27ca5dad
MC
97682003-02-26 Michael Chastain <mec@shout.net>
9769
9770 * configure.in: New variable HAVE_UINTPTR_T.
9771 * configure, config.in: Regenerated.
9772
6f88d630
DJ
97732003-02-26 Daniel Jacobowitz <drow@mvista.com>
9774
9775 Fix PR build/1097.
9776 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9777
b14185ce
AC
97782003-02-25 Andrew Cagney <cagney@redhat.com>
9779
9780 * frame.c (get_prev_frame): Add comment on check for
9781 inside_entry_func. Only check for inside_entry_file when not a
9782 dummy and not a sentinel. Check that the new frame is not inner
9783 to the old frame.
9784
ac2bd0a9
AC
97852003-02-25 Andrew Cagney <cagney@redhat.com>
9786
9787 * frame.c (frame_debug): New variable.
9788 (_initialize_frame): Add "set/show debug frame" command.
9789 (get_prev_frame): When frame_debug, print reason why unwind
9790 failed.
9791
b18a0fd2
MC
97922003-02-25 Michael Chastain <mec@shout.net>
9793
9794 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9795 to avoid uintptr_t definition problems.
9796
22abf04a
DC
97972003-02-25 David Carlton <carlton@math.stanford.edu>
9798
9799 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9800 (SYMBOL_LINKAGE_NAME): Ditto.
9801 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9802 SYMBOL_LINKAGE_NAME.
9803 (struct general_symbol_info): Expand comment.
9804 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9805 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9806 (SYMBOL_MATCHES_REGEXP): Ditto.
9807 * symtab.c (symbol_natural_name): New function.
9808 * objfiles.h: Replace all uses of SYMBOL_NAME by
9809 DEPRECATED_SYMBOL_NAME.
9810 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9811 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9812 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9813 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9814 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9815 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9816 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9817 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9818 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9819 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9820 * ada-exp.y: Ditto.
9821 * ada-exp.y: Update copyright.
9822 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9823 * cp-valprint.c: Ditto.
9824
1a5848f6
JJ
98252003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9826
9827 * infptrace.c (detach): Do not flag error if ptrace detach fails
9828 and errno is set to ESRCH.
9829
7343d46a
AC
98302003-02-24 Andrew Cagney <cagney@redhat.com>
9831
9832 * infptrace.c (udot_info): Change type of udot_off to long. Use
9833 paddr when printing udot_off's value.
9834
49fa1dc2
DC
98352003-02-24 David Carlton <carlton@math.stanford.edu>
9836
9837 * symtab.c (make_symbol_overload_list): Only read in partial
9838 symtabs containing a matching partial symbol.
9839
0fe19209
DC
98402003-02-24 David Carlton <carlton@math.stanford.edu>
9841
9842 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9843 do the comparison, not strcmp.
9844 * symfile.c (compare_psymbols): Ditto.
9845 * defs.h: Declare strcmp_iw_ordered.
9846 * utils.c (strcmp_iw_ordered): New function.
9847
8e3ee7b5
JB
98482003-02-24 Jim Blandy <jimb@redhat.com>
9849
9850 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9851 support, shared libs): Remove my name from here, to better reflect
9852 reality.
9853
7df1a324
KW
98542003-02-24 Kris Warkentin <kewarken@qnx.com>
9855
9856 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9857 (target_ops): Add to_have_continuable_watchpoint.
9858 * target.c (update_current_target): Add INHERIT line for
9859 to_have_continuable_watchpoint.
9860 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9861 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9862 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9863 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9864
d1c76907
EZ
98652003-02-24 Elena Zannoni <ezannoni@redhat.com>
9866
9867 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9868 maintainership.
9869
2610b0bf
KW
98702003-02-24 Kris Warkentin <kewarken@qnx.com>
9871
f46169db
KW
9872 * solib.c (solib_open): Call target defined search function after
9873 failing with solib-search-path.
9874 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9875 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9876
9a3c34fe
KW
98772003-02-24 Kris Warkentin <kewarken@qnx.com>
9878
f46169db 9879 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9880
2417dd25
SC
98812003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9882
9883 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9884
b631436b
SC
98852003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9886
9887 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9888 (m68hc11_add_reggroups): New function.
9889 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9890 (m68hc11_gdbarch_init): Install the reggroups.
9891 (_initialize_m68hc11_tdep): Initialize them.
9892
0aa8c1e4
JW
98932003-02-21 James E Wilson <wilson@tuliptree.org>
9894
9895 * MAINTAINERS: Update my email address.
9896
50ceaba5
DC
98972003-02-21 David Carlton <carlton@math.stanford.edu>
9898
9899 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9900
4c2df51b
DJ
99012003-02-21 Daniel Jacobowitz <drow@mvista.com>
9902
9903 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9904 * symtab.h: Add opaque declarations of struct axs_value and
9905 struct agent_expr.
9906 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9907 (struct location_funcs): New type.
9908 (struct symbol): Add "loc" to aux_value.
9909 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9910 * dwarf2read.c: Include "dwarf2expr.h".
9911 (dwarf2_symbol_mark_computed): New function.
9912 (read_func_scope): Use it.
9913 (var_decode_location): New function.
9914 (new_symbol): Use it.
9915 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9916
9917 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9918 (dwarf2expr_h, dwarf2loc_h): New variables.
9919 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9920 (dwarf2expr.o, dwarf2loc.o): New rules.
9921 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9922 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9923 LOC_COMPUTED_ARG.
9924 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9925 * m2-exp.y (yylex): Likewise.
9926 * printcmd.c (address_info, print_frame_args): Likewise.
9927 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9928 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9929 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9930 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9931 * symtab.c (lookup_block_symbol): Likewise.
9932
5784d15e
AF
99332003-02-20 Adam Fedor <fedor@gnu.org>
9934
9935 * symtab.h: Remove objc_specific struct
9936 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9937 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9938 Have language_objc use cplus_specific struct.
9939
d4cad8db
TT
99402003-02-20 Tom Tromey <tromey@redhat.com>
9941
9942 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9943 TYPE_NAME, when printing a String value. PR java/1075.
9944
2f9a90b4
AF
99452003-02-20 Adam Fedor <fedor@gnu.org>
9946
d38074a8 9947 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9948 * objc-lang.c (find_methods): Make static.
2f9a90b4 9949
6f17862b
CF
99502003-02-20 Christopher Faylor <cgf@redhat.com>
9951
9952 * win32-nat.c (get_image_name): Check return value from
9953 ReadProcessMemory.
9954 (child_xfer_memory): Ditto.
9955
715d1656
AO
99562003-02-20 Alexandre Oliva <aoliva@redhat.com>
9957
9958 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9959 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9960 '${exec_prefix}' (in addition to the expansion thereof) as
9961 relocatable.
9962 * configure: Rebuilt.
9963
b1262a02
DC
99642003-02-20 David Carlton <carlton@math.stanford.edu>
9965
9966 * symtab.c (search_symbols): Revert the search_symbols part of my
9967 2002-12-23 patch. Add comment.
9968
7134143f
DJ
99692002-02-20 Daniel Jacobowitz <drow@mvista.com>
9970
9971 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9972 * dbxread.c (elfstab_build_psymtabs): Don't call
9973 install_minimal_symbols.
9974 (stabsect_build_psymtabs): Likewise.
9975 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9976 earlier.
9977 * somread.c (som_symfile_read): Call install_minimal_symbols
9978 and do_cleanups earlier.
9979 * nlmread.c (nlm_symfile_read): Likewise.
9980 * mdebugread.c (elfmdebug_build_psymtabs): Call
9981 install_minimal_symbols and make appropriate cleanups.
9982
cf466558
KB
99832003-02-20 Kevin Buettner <kevinb@redhat.com>
9984
9985 * solib.c (reload_shared_libraries): New function.
9986 (_initialize_solib): Add callbacks for ``set solib-search-path''
9987 and ``set solib-absolute-prefix''.
9988
de5ad195
DC
99892003-02-20 David Carlton <carlton@math.stanford.edu>
9990
9991 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9992 expand comment.
9993 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9994 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9995 * ada-typeprint.c (ada_typedef_print): Ditto.
9996 * ax-gdb.c (gen_var_ref): Ditto.
9997 * breakpoint.c (print_one_breakpoint): Ditto.
9998 * buildsym.c (finish_block): Ditto.
9999 * c-valprint.c (c_val_print): Ditto.
10000 * expprint.c (print_subexp): Ditto.
10001 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10002 * infcmd.c (jump_command): Ditto.
10003 * linespec.c (decode_line_2, decode_compound): Ditto.
10004 * maint.c (maintenance_translate_address): Ditto.
10005 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10006 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10007 Ditto.
8ffd9b1b
AJ
10008 * p-valprint.c (pascal_val_print): Ditto.
10009 * stabsread.c (define_symbol): Ditto.
de5ad195 10010 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10011 (print_frame_arg_vars, return_command): Ditto.
10012 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10013 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10014 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10015 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10016 (rbreak_command): Ditto.
10017 * tracepoint.c (tracepoints_info): Ditto.
10018 * typeprint.c (typedef_print): Ditto.
10019 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10020 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10021 * ada-typeprint.c: Update Copyright.
10022 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10023 * tracepoint.c, cli/cli-cmds.c: Ditto.
10024
f796e4be
KB
100252003-02-20 Kevin Buettner <kevinb@redhat.com>
10026
10027 * frame.c (generic_unwind_get_saved_register): Make non-static.
10028 * frame.h (generic_unwind_get_saved_register): Declare.
10029 * mips-tdep.c (read_next_frame_reg): Fetch register from
10030 current regcache when frame is NULL.
10031 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10032 that must be NULL.
10033 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10034 instead of frame_register_unwind().
10035
836cc9f4
AC
100362003-02-20 Andrew Cagney <ac131313@redhat.com>
10037
10038 * remote-sim.c (gdbsim_insert_breakpoint)
10039 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10040 code.
10041
501eef12
AC
100422003-02-20 Andrew Cagney <ac131313@redhat.com>
10043
10044 * remote.c (_initialize_remote): Add commands "set/show remote
10045 hardware-watchpoint-limit" and "set/show remote
10046 hardware-breakpoint-limit".
10047 (remote_hw_watchpoint_limit): Initialize to -1.
10048 (remote_hw_breakpoint_limit): Ditto.
10049 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10050
1b6bc7e0
CF
100512003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10052
10053 * coff-pe-read.c: New file - support reading of minimal symbols from a
10054 portable executable using the export table.
10055 * coff-pe-read.h: New file.
10056 * coffread.c: Include coff-pe-read.h.
10057 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10058 debugging symbols found.
10059 * Makefile.in (SFILES): Add coff-pe-read.o.
10060 (coff_pe_read_h): Define.
10061 (COMMON_OBS): Add coff-pe-read.o.
10062 (coffread.o): Add coff_pe_read_h dependency.
10063 (coff-pe-read.o): New target.
10064
fe898f56
DC
100652003-02-19 David Carlton <carlton@math.stanford.edu>
10066
10067 * Makefile.in (SFILES): Add block.c.
10068 (block_h): New.
10069 (COMMON_OBS): Add block.o.
10070 (block.o): New.
10071 (x86-64-tdep.o): Add $(block_h).
10072 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10073 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10074 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10075 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10076 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10077 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10078 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10079 * value.h: Add opaque declaration for struct block.
10080 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10081 * ada-lang.h: Ditto.
10082 * x86-64-tdep.c: #include "block.h"
10083 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10084 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10085 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10086 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10087 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10088 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10089 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10090 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10091 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10092 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10093 * symtab.c (block_function): Ditto.
10094 (contained_in): Ditto.
10095 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10096 block.h. Add opaque declaration for struct block.
10097 * symtab.h: Move block_function and contained_in declarations to
10098 block.h. Add opaque declarations for struct block, struct
10099 blockvector.
10100 (struct block): Move to block.h.
10101 (struct blockvector): Ditto.
10102 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10103 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10104 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10105 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10106 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10107 Ditto.
10108 * block.c: New file.
10109 * block.h: New file.
10110
173345b5
TR
101112003-02-19 Theodore A. Roth <troth@openavr.org>
10112
10113 * avr-tdep.c (avr_extract_return_value): Remove function.
10114 (avr_store_return_value): Remove function.
10115 (avr_extract_struct_value_address): Remove function.
10116 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10117
338ef23d
AC
101182003-02-19 Andrew Cagney <ac131313@redhat.com>
10119
10120 * rs6000-tdep.c: Include "gdb_assert.h".
10121 (registers_e500): Add "acc" and "spefscr".
10122 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10123 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10124 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10125 really is "r0".
10126 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10127
5412f5f3
KS
101282003-02-18 Keith Seitz <keiths@redhat.com>
10129
10130 * Makefile.in: Add gdbtk-interps.c.
10131
881324eb
KB
101322003-02-18 Kevin Buettner <kevinb@redhat.com>
10133
10134 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10135 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10136
6a2f5abf
AC
101372003-02-18 Andrew Cagney <cagney@redhat.com>
10138
10139 * symtab.h (struct objfile): Add opaque declaration.
10140
54c7009d
EZ
101412003-02-18 Elena Zannoni <ezannoni@redhat.com>
10142
10143 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10144 * dbxread.c (process_one_symbol): Use last_function_start rather
10145 than function_start_offset to find the real beginning of the
10146 current function. The latter is just the text section offset on
10147 some systems, the former is always the real function start.
54c7009d 10148
7ee6d7eb
AC
101492003-02-17 Andrew Cagney <cagney@redhat.com>
10150
10151 * configure.in: Revert ${target} != ${host}.
10152
2846da9b
AC
101532003-02-17 Andrew Cagney <ac131313@redhat.com>
10154
10155 * configure.in (Makefile): Use the test ${target} != ${host},
10156 instead of the absence of the "nm.h" file, to determine of the
10157 configuration non-native.
10158 * configure: Regenerate.
8ffd9b1b 10159
3b27aeea
EZ
101602003-02-14 Elena Zannoni <ezannoni@redhat.com>
10161
fbe586ae 10162 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10163
10164 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10165 conditionalize tui_active test.
10166 (lookup_cmd_1): Ditto.
10167
b0b1c2c0
MK
101682003-02-14 Mark Kettenis <kettenis@gnu.org>
10169
10170 * configure.in: Add check for _etext.
10171 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10172 available.
10173 * config.in, configure: regenerated.
10174
8f05cde5
DJ
101752003-02-14 Daniel Jacobowitz <drow@mvista.com>
10176
10177 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10178
021e7609
AC
101792003-02-14 Andrew Cagney <ac131313@redhat.com>
10180
10181 * main.c (tui_version): Delete variable.
10182 (captured_main): When --tui, set interpreter_p to "tui" instead of
10183 enabling tui_version.
10184 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10185 tui_version.
10186 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10187 * cli/cli-cmds.c (disassemble_command): Ditto.
10188 * defs.h (tui_version): Delete declaration.
10189 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10190 (tui-interp.o): Add rules.
10191 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10192
e325dcec
CF
101932003-02-14 Christopher Faylor <cgf@redhat.com>
10194
36ffb041 10195 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10196 just-loaded dll.
10197
c4f90d87
JM
101982003-02-12 Jason Molenda (jmolenda@apple.com)
10199
fbe586ae
RH
10200 * symmisc.c (print_objfile_statistics): Include information about
10201 the number of psymtabs and symtabs in each object file.
c4f90d87 10202
e46e5ccd
KS
102032003-02-13 Keith R Seitz <keiths@redhat.com>
10204
10205 * main.h (struct captured_main_args): Add interpreter_p.
10206 * main.c (captured_main): Initialize interpreter_p from context.
10207 * gdb.c (main): Set interpreter_p argument.
10208 * Makefile.in (gdb.o): Add dependency for interps.h.
10209
fe97fe9c
AC
102102003-02-12 Andrew Cagney <ac131313@redhat.com>
10211
10212 * event-top.c (cli_command_loop): Delete declaration.
10213 (_initialize_event_loop): Delete function setting event_loop_hook.
10214 * event-top.h (cli_command_loop): Declare. Update copyright.
10215 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10216 * interps.c (current_interp_command_loop): When event_loop_p, call
10217 cli_command_loop.
10218
1cdac4ef
AC
102192003-02-12 Andrew Cagney <ac131313@redhat.com>
10220
10221 * interps.h (interp_command_loop_ftype): Change return type to
10222 void.
10223
48037ead
ML
102242003-02-12 Michal Ludvig <mludvig@suse.cz>
10225
10226 * x86-64-tdep.c (x86_64_extract_return_value)
10227 (x86_64_store_return_value): Use regcache instead of regbuf.
10228 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10229 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10230
033afc63
AC
102312003-02-11 Andrew Cagney <ac131313@redhat.com>
10232
10233 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10234 * aclocal.m4: Regenerate.
10235 * configure: Regenerate.
10236
10237 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10238 TCL_LD_SEARCH_FLAGS.
10239
40d02bca
ML
102402003-02-10 Michal Ludvig <mludvig@suse.cz>
10241
10242 * dwarf2cfi.c: Reindented.
10243
11308a41
AC
102442003-02-09 Andrew Cagney <ac131313@redhat.com>
10245
10246 * interps.c (clear_interpreter_hooks): Convert function definition
10247 to ISO C.
10248
e1c1c0f6
DC
102492003-02-07 David Carlton <carlton@math.stanford.edu>
10250
10251 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10252
ab5d3da6
KB
102532003-02-07 Kevin Buettner <kevinb@redhat.com>
10254
10255 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10256 (struct type): ...to here.
10257 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10258 field.
10259 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10260 (replace_type): Set length on all type variants for a given type.
10261
b8a92b82
AC
102622003-02-07 Andrew Cagney <ac131313@redhat.com>
10263
10264 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10265 <sys/stat.h>.
10266 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10267
5cb316ef
AC
102682003-02-06 Andrew Cagney <ac131313@redhat.com>
10269
2555fe1a
AC
10270 * Makefile.in (symm-nat.o): Update dependencies.
10271 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10272 (lynx-nat.o, ia64-linux-nat.): Ditto.
10273 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10274 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10275 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10276
44270758
AC
10277 * Makefile.in (inflow_h): Define.
10278 (procfs.o, inflow.o, procfs.o): Update dependencies.
10279 * inftarg.c (child_stop): Delete extern declaration of
10280 inferior_process_group. Include "inflow.h".
10281 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10282 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10283 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10284 (our_process_group, inferior_process_group): Extern declarations.
10285
df8f7274
AC
10286 * procfs.c: Include "gdb_assert.h".
10287
5cb316ef
AC
10288 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10289 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10290 * jv-typeprint.c (java_type_print_base): Ditto.
10291 * typeprint.c (typedef_print): Eliminate STREQ.
10292 * cli/cli-script.c (define_command, define_command): Ditto.
10293 * main.c (captured_main): Ditto.
10294 * values.c (lookup_internalvar): Ditto.
10295 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10296 within `if' conditional.
10297 * linespec.c (decode_line_2): Ditto.
10298 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10299 (bfd_openw_with_cleanup): Ditto.
10300
2a28ccea
MK
103012003-02-07 Mark Kettenis <kettenis@gnu.org>
10302
10303 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10304 legacy_extract_return_value and store_return_value to
10305 legacy_return_value.
10306
786b8124
CF
103072003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10308
10309 * win32-nat.c (get_relocated_section_addrs): New function. Find
10310 section load addresses for symbol handling in relocated DLLs.
10311 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10312
b871e4ec
FF
103132003-02-05 Fred Fish <fnf@intrinsity.com>
10314
10315 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10316 '=' and '!='.
10317 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10318 with '&' and '=='.
10319 (angel_RDI_info): Ditto.
10320 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10321 with '&' and '!='.
10322 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10323
4389a95a 103242003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10325 Keith Seitz <keiths@redhat.com>
10326 Elena Zannoni <ezannoni@redhat.com>
10327 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10328
10329 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10330 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10331 (SUBDIR_MI_OBS): Add "mi-interp.o".
10332 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10333 (SFILES): Add "interps.c".
10334 (COMMON_OBS): Add "interps.o".
10335 (interps_h, mi_main_h): Define.
10336 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10337 (mi-main.o, main.o, event-top.o): Update dependencies.
10338 * cli/cli-interp.c: New file.
10339 * interps.h, interps.c: New files.
10340 * top.c: (gdb_init): Don't install the default interpreter, handed
10341 by captured_main.
10342 * main.c: Include "interps.h".
10343 (interpreter_p): Note that it should malloc'ed.
10344 (captured_command_loop): Call current_interp_command_loop.
10345 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10346 xfree and xstrdup when updating interpreter_p. Install the
10347 default interpreter. Add hack to stop mi1's copyright notice
10348 being encoded.
10349 * event-top.h (gdb_setup_readline): Declare.
10350 (gdb_disable_readline): Declare.
10351 * event-top.c: Include "interps.h".
10352 (display_gdb_prompt): Call current_interp_display_prompt_p.
10353 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10354 gdb_stdlog, and gdb_stdtarg.
10355 (_initialize_event_loop): Don't call gdb_setup_readline.
10356 * cli-out.c (cli_out_set_stream): New function.
10357 * cli-out.h (cli_out_set_stream): Declare.
10358
ff3b5810
MK
103592003-02-06 Mark Kettenis <kettenis@gnu.org>
10360
10361 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10362 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10363 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10364 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10365 config/i386/i386v42mp.mt: Removed.
10366
5b729aa5
MK
103672003-02-05 Mark Kettenis <kettenis@gnu.org>
10368
10369 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10370 GDB_OSABI_SOLARIS.
10371
8cc15142
MC
103722003-02-05 Michael Chastain <mec@shout.net>
10373
10374 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10375 2.12.1 and earlier versions.
10376
5aa5d4b9
AC
103772003-02-05 Andrew Cagney <ac131313@redhat.com>
10378
10379 Remove orphaned hosts, targets and files.
10380 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10381 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10382 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10383 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10384 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10385 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10386 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10387 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10388 * config/sparc/tm-sp64sim.h: Delete.
10389 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10390 hosts.
10391 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10392 mips*-dec-mach3* targets.
10393
b68767c1
MC
103942003-02-04 Michael Chastain <mec@shout.net>
10395
10396 * NEWS: Fix typo: sepcifying -> specifying.
10397
5ae7ca1d
MC
103982003-02-04 Michael Chastain <mec@shout.net>
10399
10400 * dwarfread.c: Add documentation on the state of dwarf-1,
10401 looking towards obsoletion.
10402
d08a4280
MC
104032003-02-03 Michael Chastain <mec@shout.net>
10404
10405 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10406 gdb/testsuite/gdb.c++/pr-1023.exp.
10407
e9be73e4
AC
104082003-02-04 Andrew Cagney <ac131313@redhat.com>
10409
10410 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10411 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10412
10413 * utils.c (init_page_info): Delete reference to MPW in comments.
10414 * main.c (captured_main): Delete #ifdef MPW.
10415
05d57f6f
AC
104162003-02-04 Andrew Cagney <ac131313@redhat.com>
10417
8ffd9b1b 10418 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10419 * monitor.c (monitor_expect): Obsolete reference to m32r.
10420 * configure.tgt: Mark m32r-*-elf* as obsolete.
10421 * MAINTAINERS: Mark m32k as obsolete.
10422 * m32r-rom.c: Obsolete file.
10423 * config/m32r/m32r.mt: Obsolete file.
10424 * config/m32r/tm-m32r.h: Obsolete file.
10425 * m32r-stub.c: Obsolete file.
10426 * m32r-tdep.c: Obsolete file.
10427
8b0e5691
AC
104282003-02-04 Andrew Cagney <ac131313@redhat.com>
10429
10430 * NEWS: Mention that the z8k-zilog-none is obsolete.
10431 * MAINTAINERS: Mark z8k as obsolete.
10432 * configure.tgt: Obsolete the z8k-*-coff* target.
10433 * config/z8k/z8k.mt: Obsolete file.
10434 * config/z8k/tm-z8k.h: Obsolete file.
10435 * z8k-tdep.c: Obsolete file.
10436
67f16606
AC
104372003-02-04 Andrew Cagney <ac131313@redhat.com>
10438
10439 * NEWS: Mention that the mn10200-elf is obsolete.
10440 * configure.tgt: Obsolete mn10200-*-* target.
10441 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10442 mention that the mn10200 is obsolete.
10443 * breakpoint.h: Ditto.
10444 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10445 * config/mn10200/mn10200.mt: Obsolete file.
10446 * config/mn10200/tm-mn10200.h: Obsolete file.
10447 * mn10200-tdep.c: Obsolete file.
10448
fd2299bd
AC
104492003-02-04 Andrew Cagney <ac131313@redhat.com>
10450
10451 * MAINTAINERS: Mark h8500 as obsolete.
10452 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10453 * findvar.c (value_from_register): Ditto.
10454 * h8500-tdep.c: Mark file as obsolete.
10455 * config/h8500/h8500.mt: Ditto.
10456 * config/h8500/tm-h8500.h: Ditto.
10457 * NEWS: Mention that h8500 is obsolete.
10458
eb9a305d
DC
104592003-02-04 David Carlton <carlton@math.stanford.edu>
10460
10461 * objfiles.c (allocate_objfile): Always set name. Add comment at
10462 start of function.
10463 * jv-lang.c (get_dynamics_objfile): Add comment.
10464
406fc7fb
DC
104652003-02-04 David Carlton <carlton@math.stanford.edu>
10466
10467 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10468 * printcmd.c (build_address_symbolic): Replace uses of
10469 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10470 SYMBOL_NAME, and asm_demangle.
10471 Update copyright.
10472
93d91629
DC
104732003-02-04 David Carlton <carlton@math.stanford.edu>
10474
10475 * linespec.c (decode_compound): Extract code into
10476 lookup_prefix_sym.
10477 (lookup_prefix_sym): New function.
10478
1c5cb38e
DC
104792003-02-04 David Carlton <carlton@math.stanford.edu>
10480
10481 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10482 FLOAT_COERCION_BADNESS.
10483 * gdbtypes.c (rank_one_type): Replace all uses of
10484 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10485
0cf824c9
JB
104862003-02-04 Jim Blandy <jimb@redhat.com>
10487
10488 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10489 section, let dwarf_macinfo_section point to it, not
10490 dwarf_loc_section.
10491
a2d356b0
DJ
104922003-02-04 Daniel Jacobowitz <drow@mvista.com>
10493
10494 Pointed out by Anton Blanchard <anton@samba.org>.
10495 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10496 (ppc_linux_at_sigtramp_return_path): Use it.
10497
2de7ced7
DJ
104982003-02-04 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * defs.h (streq): Add prototype.
10501 * utils.c (streq): New function.
10502
10503 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10504 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10505 * mdebugread.c (new_symbol): Likewise.
10506 * stabsread.c (define_symbol): Likewise.
10507 * coffread.c (process_coff_symbol): Likewise.
10508 * dwarfread.c (new_symbol): Likewise.
10509
10510 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10511 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10512 here.
10513 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10514 SYMBOL_INIT_DEMANGLED_NAME.
10515 * objfiles.c: Include "hashtab.h".
10516 (allocate_objfile): Call htab_set_functions_ex for the
10517 demangled_names_hash.
10518 (free_objfile): Call htab_delete for the demangled_names_hash.
10519 * objfiles.h (struct htab): Add declaration.
10520 (struct objfile): Add demangled_names_hash.
10521 * symfile.c: Include "hashtab.h".
10522 (reread_symbols): Call htab_delete for the demangled_names_hash.
10523 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10524 SYMBOL_NAME in the bcache.
10525 * symtab.c: Include "hashtab.h". Update comments.
10526 (create_demangled_names_hash, symbol_set_names): New functions.
10527 (symbol_find_demangled_name): New function, broken out from
10528 symbol_init_demangled_names.
10529 (symbol_init_demangled_names): Use it.
10530 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10531 (SYMBOL_SET_NAMES): New macro.
10532 (symbol_set_names): Add prototype.
10533
15831452
JB
105342003-02-03 Jim Blandy <jimb@redhat.com>
10535
10536 Use a single, consistent representation for an empty minimal
10537 symbol table in an objfile.
10538 * objfiles.c (terminate_minimal_symbol_table): New function.
10539 (allocate_objfile): Call it.
10540 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10541 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10542 non-NULL.
15831452
JB
10543 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10544 objfile has minimal symbols, compare minimal_symbol_count to zero,
10545 instead of comparing msymbols with NULL.
10546 * objfiles.c (have_minimal_symbols): Same.
10547 * solib-sunos.c (solib_add_common_symbols): Call
10548 terminate_minimal_symbol_table.
10549 * symfile.c (reread_symbols): Same.
8ffd9b1b 10550
ffc65945
KB
105512003-02-03 Kevin Buettner <kevinb@redhat.com>
10552
10553 * s390-tdep.c (s390_address_class_type_flags)
10554 (s390_address_class_type_flags_to_name)
10555 (s390_address_class_name_to_type_flags): New functions.
10556 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10557 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10558
f211c6d4
MS
105592003-02-03 Michael Snyder <msnyder@redhat.com>
10560
10561 * arm-tdep.c: Fix spell-o in comment.
10562
659b0389
ML
105632003-02-03 Michal Ludvig <mludvig@suse.cz>
10564
10565 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10566 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10567 error messages to contain BFD filename.
659b0389 10568
3b31d625
EZ
105692003-02-02 Elena Zannoni <ezannoni@redhat.com>
10570
997b089a 10571 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10572 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10573 (do_mixed_source_and_assembly): Use
10574 make_cleanup_ui_out_tuple_begin_end and
10575 make_cleanup_ui_out_tuple_begin_end.
10576 (do_mixed_source_and_assembly): Ditto.
10577 * thread.c (do_captured_list_thread_ids): Ditto.
10578 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10579 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10580 ui_out_tuple_end): Delete prototypes.
10581 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10582 ui_out_list_end, ui_out_tuple_end): Delete.
10583
10584 From Kevin Buettner <kevinb@redhat.com>:
10585 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10586 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10587 (do_cleanup_table_end): New functions.
10588 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10589 Use cleanups to invoke_ui_out_tuple_end().
10590 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10591 * cli/cli-setshow.c (cmd_show_list): Use
10592 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10593
5b181d62
AC
105942003-02-02 Andrew Cagney <ac131313@redhat.com>
10595
10596 * frame.c (frame_unwind_register): New function.
10597 (frame_unwind_unsigned_register): Use.
10598 (frame_unwind_signed_register): Use.
10599 (frame_read_register): New function.
10600 * frame.h (frame_unwind_register): Declare.
10601 (frame_read_register): Declare.
10602
10603 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10604 and frame_unwind_register instead of read_memory, write_register
10605 and deprecated_write_register_bytes.
10606
5f601589
AC
106072003-02-02 Andrew Cagney <ac131313@redhat.com>
10608
10609 * frame.h: Note that namelen can be negative.
10610 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10611 NAME's length.
10612
10613 * NEWS: Mention that the d10v's `regs' command is deprecated.
10614 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10615 (d10v_print_registers_info): New function.
10616 (show_regs): Call d10v_print_registers_info.
10617 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10618
6a3fe0a4
MK
106192003-02-02 Mark Kettenis <kettenis@gnu.org>
10620
10621 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10622 lost in the previous patch.
10623
075559bc
AC
106242003-02-01 Andrew Cagney <ac131313@redhat.com>
10625
10626 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10627 * stack.c (print_frame_info_base): Output complete FRAME tuple
10628 for synthesized frames.
075559bc 10629
6789195b
AC
106302003-02-02 Andrew Cagney <ac131313@redhat.com>
10631
10632 * mips-nat.c (zerobuf): Delete.
10633 (fetch_inferior_registers): Alloc local zerobuf.
10634 (fetch_core_registers): Alloc local zerobuf.
10635 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10636 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10637 * thread-db.c (thread_db_store_registers): Ditto.
10638 * sh-tdep.c (sh_do_register): Ditto.
10639 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10640 * remote-sim.c (gdbsim_store_register): Ditto.
10641 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10642 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10643 * monitor.c (monitor_supply_register): Ditto.
10644 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10645 * mips-nat.c (fetch_inferior_registers): Ditto.
10646 * m68klinux-nat.c (fetch_register): Ditto.
10647 * lynx-nat.c (fetch_inferior_registers): Ditto.
10648 (fetch_inferior_registers): Ditto.
10649 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10650 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10651 (hpux_thread_store_registers): Ditto.
10652 * hppah-nat.c (fetch_register): Ditto.
10653 * hppab-nat.c (fetch_register): Ditto.
10654 * hppa-tdep.c (pa_register_look_aside): Ditto.
10655 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10656 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10657
e669114a
AC
106582003-02-01 Andrew Cagney <ac131313@redhat.com>
10659
10660 * gdbarch.sh: Explictly specify all method levels. When a
10661 variable with an empty level, provide a non-multi-arch default.
10662 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10663 * gdbarch.h: Re-generate.
10664 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10665 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10666
9a043c1d
AC
106672003-02-01 Andrew Cagney <ac131313@redhat.com>
10668
10669 * defs.h (host_pointer_to_address): Delete declaration.
10670 (address_to_host_pointer): Delete declaration.
10671 * utils.c (host_pointer_to_address): Delete function.
10672 (address_to_host_pointer): Delete function.
10673 * procfs.c (procfs_address_to_host_pointer): New function.
10674 * procfs.c (proc_set_watchpoint): Use.
10675 (procfs_can_use_hw_breakpoint): Update comments.
10676 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10677 (som_solib_add): Use.
10678 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10679 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10680
7ca9f392
AC
106812003-02-01 Andrew Cagney <ac131313@redhat.com>
10682
94bbfd30
AC
10683 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10684 strlen d_name.
10685
7ca9f392
AC
10686 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10687 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10688 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10689 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10690 (define_symbol): Update.
10691 * symfile.c (generic_load): Remove references to nindy.
10692 * symtab.c: Remove references to nindy.
10693
31a85ea2
AC
106942003-02-01 Andrew Cagney <ac131313@redhat.com>
10695
10696 * infcmd.c (print_float_info): Delete code conditional on
10697 FLOAT_INFO.
10698 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10699 * config/m68k/nm-apollo68b.h: Ditto.
10700 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10701 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10702 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10703
f6e85fc8
MK
107042003-02-01 Mark Kettenis <kettenis@gnu.org>
10705
6015b6a0
MK
10706 * config/i386/tm-i386os9k.h: Removed.
10707
f7a30bdf
MK
10708 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10709 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10710 they're identical to i[3456]86-*-sysv* now.
10711 * config/i386/i386v32.mh: Removed.
10712 * config/i386/xm-i386v32.h: Removed.
10713 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10714
28d52111
MK
10715 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10716
4d3f6bce
MK
10717 * config/i386/i386dgux.mh: Removed.
10718 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10719
f6e85fc8
MK
10720 * configure.in: Fix typo.
10721 * configure: Regenerated.
10722
53955967
DC
107232003-01-31 David Carlton <carlton@math.stanford.edu>
10724
10725 * dwarf2read.c (dwarf2_locate_sections): Set
10726 dwarf_ranges_section.
10727
b1364885
AC
107282003-01-31 Andrew Cagney <ac131313@redhat.com>
10729
8dbb1c65
AC
10730 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10731 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10732
8731e58e
AC
10733 * utils.c: Re-indent.
10734
b1364885
AC
10735 * config/djgpp/fnchange.lst: Delete nindy files.
10736 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10737 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10738 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10739 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10740 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10741 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10742 * Makefile.in (init.c): Remove nindy references.
10743 (saber_gdb): Delete rule.
10744 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10745 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10746 and a68v-nat.c.
10747 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10748 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10749 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10750 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10751 nindy-share/stop.h.
10752 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10753 * saber.suppress: Delete file.
10754
086df311
DJ
107552003-01-31 Daniel Jacobowitz <drow@mvista.com>
10756
10757 * dbxread.c (stabs_data): New static variable.
10758 (fill_symbuf): Support an in-memory buffer for stabs data.
10759 (stabs_seek): New function.
10760 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10761 (read_ofile_symtab): Use stabs_seek.
10762 (elfstab_build_psymtabs): Take an asection* instead of
10763 an offset and size. Relocate the stabs data if necessary.
10764 Save the section* for dbx_psymtab_to_symtab.
10765 * dwarf2read.c: Add section variables for each debug section.
10766 (dwarf2_locate_sections): Fill them in.
10767 (dwarf2_read_section): Take an asection* argument.
10768 Relocate the section contents if necessary.
10769 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10770 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10771 it to dwarf2_read_section.
10772 (dwarf2_build_frame_info): Update callers.
10773 * elfread.c (elf_symfile_read): Update call to
10774 elfstab_build_psymtabs.
10775 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10776 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10777 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10778 * symfile.c (symfile_dummy_outputs): New function.
10779 (symfile_relocate_debug_section): New function.
10780 * symfile.h (symfile_relocate_debug_section): Add prototype.
10781
87d1b352
RH
107822003-01-31 Richard Henderson <rth@redhat.com>
10783
10784 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10785 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10786 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10787 * alpha-tdep.c (alpha_register_name): Add "unique".
10788 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10789 (ALPHA_UNIQUE_REGNUM): New.
10790 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10791
c48861fb
AC
107922003-01-31 Andrew Cagney <ac131313@redhat.com>
10793
10794 * README: Remove reference to Ericsson 1800 monitor.
10795 * Makefile.in (remote-es.o): Delete rule.
10796 (ALLDEPFILES): Delete remote-es.c.
10797 * remote-es.c: Delete file.
10798 * config/m68k/es1800.mt: Delete file.
10799 * config/djgpp/fnchange.lst: Update.
10800 * configure.tgt: Delete m68*-ericsson-* target.
10801
d764a824
AF
108022003-01-31 Adam Fedor <fedor@gnu.org>
10803
10804 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10805 Remove duplicate/shadowing variable of same name.
10806
fe36c4f4
JB
108072003-01-30 Jim Blandy <jimb@redhat.com>
10808
10809 * symfile.c (find_separate_debug_file): Assert that the objfile's
10810 directory name we compute ends with a slash, and then assume that
10811 that's so everywhere we use it.
10812
cb741690
DJ
108132003-01-30 Daniel Jacobowitz <drow@mvista.com>
10814
10815 * valops.c (value_assign): Flush frame cache after stores to memory
10816 also.
10817
96ee5227
AC
108182003-01-30 Andrew Cagney <ac131313@redhat.com>
10819
10820 * Makefile.in (mon960-rom.o): Delete rule.
10821 * mon960-rom.c: Delete file.
10822
7f6104a9
AC
108232003-01-30 Andrew Cagney <ac131313@redhat.com>
10824
10825 * d10v-tdep.c: Include "frame-unwind.h".
10826 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10827 list.
10828 (next_addr, uses_frame): Delete.
10829 (struct d10v_unwind_cache): Define.
10830 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10831 Use info instead of next_addr and uses_frame globals.
10832 (d10v_frame_init_saved_regs): Delete function.
10833 (d10v_init_extra_frame_info): Delete function.
10834 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10835 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10836 init_frame_pc or frame_saved_pc.
10837 (d10v_pop_frame): Delete function.
10838 (do_d10v_pop_frame): Delete function.
10839 (d10v_frame_chain): Delete function.
10840 (d10v_frame_chain_valid): Delete function.
10841 (d10v_frame_pc_unwind): New function.
10842 (d10v_frame_id_unwind): New function.
10843 (saved_regs_unwinder): New function.
10844 (d10v_frame_register_unwind): New function.
10845 (d10v_frame_pop): New function.
10846 (d10v_frame_unwind): New variable.
10847 (d10v_frame_p): New function.
10848 (d10v_frame_saved_pc): Delete function.
10849 * Makefile.in (d10v-tdep.o): Update dependencies.
10850
cad2e848
JB
108512003-01-30 J. Brobecker <brobecker@gnat.com>
10852
10853 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10854 causing some regressions due to a change in the default value
10855 for this macro.
10856
af34e669
DJ
108572003-01-29 Richard Henderson <rth@redhat.com>
10858 Elena Zannoni <ezannoni@redhat.com>
10859 Daniel Jacobowitz <drow@mvista.com>
10860
10861 Fix PR gdb/961.
8ffd9b1b 10862 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10863 variables.
10864 (RANGES_SECTION): New.
10865 (dwarf_ranges_buffer): New variable.
10866 (struct comp_unit_head): Add member "die".
10867 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10868 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10869 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10870 (dwarf2_locate_sections): Likewise.
10871 (dwarf2_build_psymtabs): Read .debug_ranges.
10872 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10873 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10874 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10875 Look for DW_AT_ranges and return the bounding box.
10876
baa93fa6
CF
108772003-01-29 Brian Ford <ford@vss.fsi.com>
10878
10879 * win32-nat.c (cygwin_pid): Removed as unused.
10880 (child_attach): Try fall back to Cygwin pid.
10881
c63f977f
JB
108822003-01-29 Jim Blandy <jimb@redhat.com>
10883
10884 * objfiles.h (struct objfile): Doc fix.
10885
d62d1979
AC
108862003-01-29 Andrew Cagney <ac131313@redhat.com>
10887
10888 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10889 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10890 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10891 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10892 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10893 (FRAME_SAVED_PC): Change to a function with predicate.
10894 * gdbarch.h, gdbarch.c: Re-generate.
10895
1ae18a04
AC
108962003-01-28 Andrew Cagney <ac131313@redhat.com>
10897
52287340
AC
10898 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10899
1ae18a04
AC
10900 * complaints.c (complain): Delete function.
10901 * complaints.h (struct deprecated_complaint): Delete definition.
10902 (complain): Delete declaration.
10903
f2c16bd6
KB
109042003-01-28 Kevin Buettner <kevinb@redhat.com>
10905
10906 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10907 dummy frames.
10908
a94dd1fd
AC
109092003-01-27 Andrew Cagney <ac131313@redhat.com>
10910
10911 * sentinel-frame.h, sentinel-frame.c: New files.
10912 * Makefile.in (frame.o): Update dependencies.
10913 (SFILES): Add sentinel-frame.c.
10914 (sentinel_frame_h): Define.
10915 (COMMON_OBS): Add sentinel-frame.o.
10916 (sentinel-frame.o): Specify dependencies.
10917 * frame.c: Include "sentinel-frame.h".
10918 (frame_register_unwind): Rewrite assuming that there is always a a
10919 ->next frame.
10920 (frame_register, generic_unwind_get_saved_register): Ditto.
10921 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10922 (create_sentinel_frame, unwind_to_current_frame): New functions.
10923 (get_current_frame): Rewrite using create_sentinel_frame and
10924 unwind_to_current_frame. When possible, always create a frame.
10925 (create_new_frame): Set next to the sentinel frame.
10926 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10927 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10928 ID cache when necessary.
10929 (frame_saved_regs_id_unwind): Use frame_relative_level.
10930 (deprecated_generic_get_saved_register): Use frame_relative_level,
10931 get_frame_saved_regs, get_frame_pc, get_frame_base and
10932 get_next_frame.
10933 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10934 frame_register.
10935
5378adc4
DJ
109362003-01-27 Daniel Jacobowitz <drow@mvista.com>
10937
10938 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10939
51ee2ddc
DJ
109402003-01-27 Daniel Jacobowitz <drow@mvista.com>
10941
10942 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10943 (maintenance_set_profile_cmd): Use error () instead of warning ().
10944
d9feb4e7
DJ
109452003-01-27 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * configure.in: Check that -pg works if using --enable-profiling.
10948 Check for monstartup and _mcleanup regardless of --enable-profiling.
10949 * maint.c: Check for monstartup and _mcleanup before using them.
10950 * config.in: Regenerated.
10951 * configure: Regenerated.
10952
2d188dd3
NC
109532003-01-24 Nick Clifton <nickc@redhat.com>
10954
10955 * Add sh2e support:
10956
10957 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10958
10959 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10960 (sh2e_show_regs): New.
10961 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10962 * config/sh/tm-sh.h: Added sh2e to comments.
10963
cb3c37b2
JB
109642003-01-23 Jim Blandy <jimb@redhat.com>
10965
10966 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10967 symbols found)" message here; we haven't checked for a separate
10968 debug info file yet, so we don't know yet.
10969 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10970 we've looked everywhere. Also, there's no need to print a special
10971 message when we're loading the separate debug info file: the one
10972 symbol_file_add prints is fine.
10973
5b5d99cf
JB
109742003-01-23 Alexander Larsson <alexl@redhat.com>
10975 Jim Blandy <jimb@redhat.com>
10976
10977 Add support for executables whose debug info has been separated
10978 out into a separate file, leaving only a link behind.
10979 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10980 and separate_debug_objfile_backlink.
10981 (put_objfile_before): New declaration.
10982 * symfile.c: #include "filenames.h".
10983 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10984 debug info in a separate file, read that, too. Save the addrs
10985 argument, so we can use it again to read the separated debug info;
10986 syms_from_objfile modifies the table we pass it.
10987 (reread_symbols): After re-reading an objfile, call
10988 reread_separate_symbols to refresh its separate debug info
10989 objfile, if it has one.
10990 (reread_separate_symbols, find_separate_debug_file,
10991 get_debug_link_info, separate_debug_file_exists): New functions.
10992 (debug_file_directory): New global var.
10993 (_initialize_symfile): Initialize debug_file_directory, and
10994 provide the new `set debug-file-directory' command to let the user
10995 change it.
10996 * objfiles.c (free_objfile): If this objfile has its debug info in
10997 a separate objfile, free that one too. If this is itself a
10998 separate debug info objfile, clear our parent's backlink.
10999 (put_objfile_before): New function.
11000 * utils.c (gnu_debuglink_crc32): New function.
11001 * defs.h (gnu_debuglink_crc32): New declaration.
11002 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11003 * configure.in: Handle --with-separate-debug-dir config option.
11004 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11005 * acconfig.h (DEBUGDIR): New macro.
11006 * configure, aclocal.m4, config.in: Regenerated.
11007
7e8580c1
JB
110082003-01-22 Jim Blandy <jimb@redhat.com>
11009
7904e09f
JB
11010 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11011 like the old symbol_file_add, but taking new arguments: you can
11012 now pass in either a `struct section_addr_info' list to say where
11013 each section is loaded, or a `struct section_offsets' table. Pass
11014 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11015 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11016 with the appropriate quiescent values for the new arguments.
11017
7e8580c1
JB
11018 * symfile.c: #include "gdb_assert.h".
11019 (syms_from_objfile): Add the ability to pass in a section offset
11020 table directly, as an alternative to the section_addr_info table.
11021 Document arguments better.
11022 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11023 * symfile.h (syms_from_objfile): Update declaration.
11024 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11025 syms_from_objfile.
11026 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11027
d28f9cdf
DJ
110282003-01-22 Daniel Jacobowitz <drow@mvista.com>
11029
11030 Original patch by Tom Tromey <tromey@cygnus.com> and
11031 Jason Molenda <jmolenda@apple.com>.
11032 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11033 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11034 * NEWS: Mention profiling.
11035 * configure.in (--enable-gdbtk): Fix typo.
11036 (--enable-profiling): New. Set PROFILE_CFLAGS.
11037 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11038 Fill in function.
11039 (profiling_state): New variable.
11040 (mcleanup_wrapper): New function.
11041 (_initialize_maint): Remove NOTYET, fix call to
11042 add_setshow_boolean_cmd for "maint set profile".
11043 * configure: Regenerated.
11044
df21e465
MH
110452003-01-21 Martin M. Hunt <hunt@redhat.com>
11046
11047 * Makefile.in (install-gdbtk): Install PNG images too.
11048
73c1f219
AC
110492003-01-21 Andrew Cagney <ac131313@redhat.com>
11050
11051 * exec.c (text_start): Delete global variable.
11052 (exec_file_attach): Make text_start local to the function.
11053 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11054 * valops.c (hand_function_call): Delete code that handles
11055 BEFORE_TEXT_END and AFTER_TEXT_END.
11056 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11057 of CALL_DUMMY_LOCATION.
11058 * gdbarch.c: Regenerate.
11059 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11060 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11061 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11062 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11063 (text_end): Delete extern declaration.
11064
eb4f72c5
AC
110652003-01-21 Andrew Cagney <ac131313@redhat.com>
11066
11067 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11068 * blockframe.c (backtrace_below_main): Move to "frame.c".
11069 (frame_chain_valid): Delete check for backtrace_below_main.
11070 (_initialize_blockframe): Delete initialization, move ``set
11071 backtrace-below-main'' command to "frame.c".
11072 (do_flush_frames_sfunc): Delete function.
11073 * frame.c: Include "command.h" and "gdbcmd.h".
11074 (frame_type_from_pc): New function.
11075 (create_new_frame): Use frame_type_from_pc.
11076 (legacy_get_prev_frame): New function.
11077 (get_prev_frame): Rewrite. When an old style frame, call
11078 legacy_get_prev_frame. Otherwize, unwind the PC first.
11079 (_initialize_frame): Add ``set backtrace-below-main'' command.
11080 * Makefile.in (frame.o): Update dependencies.
11081
778ce8cc
AC
110822003-01-19 Andrew Cagney <ac131313@redhat.com>
11083
11084 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11085 DEPRECATED_REGISTERS_INFO.
11086
01c193c8
AC
110872003-01-19 Andrew Cagney <ac131313@redhat.com>
11088
11089 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11090 Maintainers'. Update `Various Maintainers'.
11091
dedc2a2b
AC
110922003-01-19 Andrew Cagney <ac131313@redhat.com>
11093
11094 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11095 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11096 Suppress actual parameters when `-'.
11097 * gdbarch.h, gdbarch.c: Regenerate.
11098
b7261c70
AC
110992003-01-19 Andrew Cagney <ac131313@redhat.com>
11100
11101 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11102 code handling dummy frames.
11103
dbe9fe58
AC
111042003-01-19 Andrew Cagney <ac131313@redhat.com>
11105
11106 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11107 (struct frame_unwind): Add field pop.
11108 * frame.h (frame_pop): Declare.
11109 * frame.c (frame_saved_regs_pop): New function.
11110 (trad_frame_unwinder): Add frame_saved_regs_pop.
11111 (frame_pop): New function.
11112 * dummy-frame.c (dummy_frame_pop): New function.
11113 (discard_innermost_dummy): New function.
11114 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11115 (dummy_frame_unwind): Add dummy_frame_pop.
11116 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11117 * valops.c (hand_function_call): Ditto.
11118 * stack.c (return_command): Ditto.
11119
570b8f7c
AC
111202003-01-18 Andrew Cagney <ac131313@redhat.com>
11121
11122 * cris-tdep.c: Fix function declaration indentation.
11123 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11124 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11125 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11126 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11127 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11128 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11129
111302003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11131
11132 * README (Unpacking and Installation -- quick overview):
11133 Warn against ".../gdb-5.3/gdb/configure".
11134
494cca16
AC
111352003-01-18 Andrew Cagney <ac131313@redhat.com>
11136
11137 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11138 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11139 (struct frame_unwind): Declare opaque.
11140 (dummy_frame_p): Declare function.
11141 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11142 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11143 * dummy-frame.c: Include "frame-unwind.h".
11144 (dummy_frame_p): New function.
11145 (dummy_frame_unwind): New variable.
11146 * frame.c: Include "frame-unwind.h".
11147 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11148 to use the new unwind field.
11149 (set_unwind_by_pc): Delete function.
11150 (create_new_frame, get_prev_frame): Set unwind field using
11151 frame_unwind_find_by_pc.
11152 (trad_frame_unwind, trad_frame_unwinder): New variables.
11153 * frame.h (trad_frame_unwind): Declare variable.
11154 (frame_id_unwind_ftype): Delete declaration.
11155 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11156 (struct frame_unwind): Declare opaque.
11157 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11158 register_unwind with a single unwind pointer.
11159 * frame-unwind.h, frame-unwind.c: New files.
11160 * Makefile.in (SFILES): Add frame-unwind.c.
11161 (frame_unwind_h): Define.
11162 (COMMON_OBS): Add frame-unwind.o.
11163 (frame-unwind.o): Specify dependencies.
11164 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11165
4efb68b1
AC
111662003-01-18 Andrew Cagney <ac131313@redhat.com>
11167
11168 * ada-valprint.c: Eliminate PTR.
11169 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11170 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11171 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11172 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11173 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11174 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11175 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11176
a84d24ee
AC
111772003-01-17 Andrew Cagney <ac131313@redhat.com>
11178
762f08a3
AC
11179 * main.c (captured_main): Don't use PTR.
11180 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11181 * gdbtypes.c (lookup_primitive_typename): Ditto.
11182 (lookup_struct_elt_type): Ditto.
11183 * f-valprint.c (info_common_command): Ditto.
11184 (list_all_visible_commons): Ditto.
11185 * jv-typeprint.c (java_type_print_base): Ditto.
11186
a84d24ee
AC
11187 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11188 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11189 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11190 i386-interix-nat.c and i386-interix-tdep.c. Rename
11191 m68klinux-nat.c and m68klinux-tdep.c. Rename
11192 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11193 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11194 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11195 * main.c (captured_main): Use xfree, not free.
11196
c170fb60
AC
111972003-01-16 Andrew Cagney <ac131313@redhat.com>
11198
11199 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11200 ID back using a parameter.
11201 * frame.c (frame_id_unwind): Update call.
11202 (frame_saved_regs_id_unwind): Update.
11203 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11204 * dummy-frame.h (struct frame_id): Add opaque declaration.
11205 (dummy_frame_id_unwind): Update declaration.
11206
867f3898
AC
112072003-01-15 Andrew Cagney <ac131313@redhat.com>
11208
11209 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11210
40622be8 112112003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11212
40622be8 11213 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11214
ae66c1fc
EZ
112152003-01-14 Elena Zannoni <ezannoni@redhat.com>
11216
997b089a 11217 Fix PR gdb/898
ae66c1fc
EZ
11218 * breakpoint.c (until_break_command): Add new argument. Use it to
11219 decide whether to stop only at the current frame or not.
11220 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11221 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11222 call.
11223 (advance_command): New function.
11224 (_initialize_infcmd): Update help string for 'until' command.
11225 Add new 'advance' command.
11226
a04257e6
DC
112272003-01-14 David Carlton <carlton@math.stanford.edu>
11228
11229 * linespec.c (decode_line_1): Normalize comments.
11230 (set_flags): Ditto.
11231 (locate_first_half): Ditto.
11232 (decode_compound): Ditto.
11233 (symtab_from_filename): Ditto.
11234 (decode_all_digits): Ditto.
11235 (decode_dollar): Ditto.
11236 (find_methods): Ditto.
11237 (find_toplevel_char): Ditto.
11238
1bac305b
AC
112392003-01-13 Andrew Cagney <ac131313@redhat.com>
11240
11241 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11242 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11243 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11244 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11245 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11246 * language.c, language.h, m32r-tdep.c: Update copyright.
11247 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11248 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11249 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11250 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11251 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11252 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11253
25caa7a8
EZ
112542003-01-13 Elena Zannoni <ezannoni@redhat.com>
11255
11256 * stabsread.h (process_later, resolve_cfront_continuation):
11257 Obsolete.
11258 Update copyright years.
11259 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11260 Update copyright year.
11261 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11262 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11263 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11264 Update copyright year.
11265 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11266 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11267 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11268 (parse_partial_symbols): Obsolete cfront support.
11269 * stabsread.c
11270 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11271 macros.
11272 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11273 read_cfront_baseclasses, read_cfront_member_functions,
11274 resolve_cfront_continuation,read_cfront_static_fields,
11275 copy_cfront_struct_fields): Obsolete functions.
11276 (define_symbol, read_one_struct_field): Obsolete cfront support.
11277 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11278 Update Copyright year.
11279
7789c6f5
EZ
112802003-01-13 Elena Zannoni <ezannoni@redhat.com>
11281
11282 * stack.c (print_frame_info, print_stack_frame_base_stub,
11283 print_stack_frame_base, show_and_print_stack_frame_stub,
11284 show_and_print_stack_frame, print_only_stack_frame_stub,
11285 print_only_stack_frame): Delete functions.
11286 (print_stack_frame_stub): Call print_frame_info instead of
11287 print_frame_info_base.
11288 (print_frame_info_base): Rename to print_frame_info.
11289 (backtrace_command_1): Call print_frame_info, instead of
11290 print_frame_info_base.
11291 (current_frame_command): Call print_stack_frame, instead of
11292 print_only_stack_frame.
11293 (frame_command): Call print_stack_frame, instead of
11294 show_and_print_stack_frame.
11295 (up_command): Ditto.
11296 (down_command): Ditto.
11297 * frame.h (print_only_stack_frame): Delete prototype.
11298 * infrun.c (normal_stop): Call print_stack_frame, instead of
11299 show_and_print_stack_frame.
11300 * thread.c (info_threads_command): Call print_stack_frame, instead
11301 of print_only_stack_frame.
11302
3f5a3016
AC
113032003-01-13 Andrew Cagney <ac131313@redhat.com>
11304
d99ba314
AC
11305 * README (Graphical interface to GDB): Update URL. Point at
11306 gdb/links/.
11307
3f5a3016
AC
11308 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11309 version match.
11310
083ae935
DJ
113112003-01-13 Daniel Jacobowitz <drow@mvista.com>
11312
11313 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11314 lines.
11315
5365276c
DJ
113162003-01-13 Daniel Jacobowitz <drow@mvista.com>
11317
11318 * thread-db.c (attach_thread): Prototype.
11319 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11320 thread information (ti), and valid flags (th_valid, ti_valid).
11321 (attach_thread): Move target_pid_to_str call to after the thread
11322 is added to GDB's list. Initialize the cache.
11323 (thread_get_info_callback, thread_db_map_id2thr)
11324 (thread_db_get_info): New functions.
11325 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11326 (thread_db_store_registers, thread_db_thread_alive)
11327 (thread_db_get_thread_local_address): Use them.
11328 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11329 of calling error() for threads in unknown state.
11330
11331 (clear_lwpid_callback): New function.
11332 (thread_db_resume): Use it to clear the cache.
11333
9fc30b6b
DJ
113342003-01-13 Daniel Jacobowitz <drow@mvista.com>
11335
11336 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11337 (resume_callback): Remove dead code.
11338
8f871025
AC
113392003-01-13 Andrew Cagney <ac131313@redhat.com>
11340
11341 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11342 predicate.
11343 * gdbarch.h, gdbarch.c: Regenerate.
11344 * stack.c (frame_info): Only initialize the saved registers when
11345 FRAME_INIT_SAVED_REGS_P.
11346 * frame.c (frame_saved_regs_register_unwind): Assert
11347 FRAME_INIT_SAVED_REGS_P.
11348 (deprecated_generic_get_saved_register): Ditto.
11349
3f565f1e
DJ
113502003-01-13 Daniel Jacobowitz <drow@mvista.com>
11351
11352 * source.c (openp): Squelch warning about "filename".
11353
072b1022
DJ
113542003-01-13 Daniel Jacobowitz <drow@mvista.com>
11355
11356 * source.c (openp): If the file does not exist don't necessarily
11357 search the path.
11358
973ccf8b
DJ
113592003-01-13 Daniel Jacobowitz <drow@mvista.com>
11360
11361 Fix PR gdb/872.
11362 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11363 (integer_types_same_name_p): New function.
11364 (rank_one_type): Use it.
11365 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11366
030292b7
DJ
113672003-01-13 Daniel Jacobowitz <drow@mvista.com>
11368
11369 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11370 variables.
11371 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11372 * configure.in: Add --with-sysroot.
11373 * configure: Regenerated.
11374 * main.c (gdb_sysroot): New variable.
11375 (captured_main): Initialize gdb_sysroot.
11376 * defs.h (gdb_sysroot): New extern declaration.
11377 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11378
afb5d334
MC
113792003-01-12 Michael Chastain <mec@shout.net>
11380
11381 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11382
751ceeb4
MC
113832003-01-12 Michael Chastain <mec@shout.net>
11384
11385 * top.c (print_gdb_version): Bump copyright year to 2003.
11386
94cd26f8
DC
113872003-01-12 David Carlton <carlton@bactrian.org>
11388
11389 * linespec.c (symtab_from_filename): Rename variable 's' to
11390 'file_symtab'.
11391
1ce79225
AC
113922003-01-12 Andrew Cagney <ac131313@redhat.com>
11393
11394 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11395 dummy frame.
11396 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11397
fa1fd571
AC
113982003-01-12 Andrew Cagney <ac131313@redhat.com>
11399
11400 * d10v-tdep.c: Include "gdb_assert.h".
11401 (d10v_store_return_value): Rewrite to match current interface.
11402 (d10v_extract_struct_value_address): Ditto.
11403 (d10v_extract_return_value): Ditto.
11404 (d10v_gdbarch_init): Set store_restore_value,
11405 extract_struct_value_address and extract_return_value.
11406
68b8d23e
JB
114072003-01-12 J. Brobecker <brobecker@gnat.com>
11408
11409 * hpread.c (set_namestring): New procedure replacing the
11410 SET_NAMESTRING macro.
11411 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11412 by calls to set_namestring.
11413
114142003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11415
11416 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11417 a compilation warning.
11418 (hpread_process_one_debug_symbol): Likewise.
11419
88d262ca
DC
114202003-01-10 David Carlton <carlton@math.stanford.edu>
11421
11422 * linespec.c (decode_line_1): Rename variable 's' to
11423 'file_symtab'.
11424 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11425 (decode_dollar): Ditto.
11426 (decode_variable): Ditto.
11427 (symbol_found): Ditto.
11428
86669319
MC
114292003-01-09 Michael Chastain <mec@shout.net>
11430
11431 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11432
616a9dc4
CV
114332003-01-07 Corinna Vinschen <vinschen@redhat.com>
11434
11435 * win32-nat.c (set_process_privilege): New function.
11436 (child_attach): Call set_process_privilege() to enable the
11437 SE_DEBUG_NAME user privilege if available in process token.
11438
3269bcfa
JB
114392003-01-10 J. Brobecker <brobecker@gnat.com>
11440
11441 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11442 compilation error in the previous revision.
11443
2b0ee454
DC
114442003-01-09 David Carlton <carlton@math.stanford.edu>
11445
11446 * linespec.c: Update copyright.
11447
b3ba1b44
DJ
114482003-01-09 Daniel Jacobowitz <drow@mvista.com>
11449
11450 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11451 than inferior_ptid.
11452 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11453
4ef3f3be
AC
114542003-01-09 Andrew Cagney <ac131313@redhat.com>
11455
479ab5a0
AC
11456 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11457 Update comments.
11458 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11459 (frame_saved_regs_zalloc): Update.
11460 (frame_saved_regs_register_unwind): Update.
11461 (create_new_frame): Update.
11462 (get_prev_frame): Update.
11463 (frame_extra_info_zalloc): Update.
11464 (deprecated_get_frame_saved_regs): Update.
11465 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11466 * cris-tdep.c: Update comment.
11467
bde58177
AC
11468 * somsolib.h: Fix function indentation.
11469 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11470 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11471 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11472 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11473 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11474
4ef3f3be
AC
11475 * infrun.c (follow_fork): Use ISO C definition.
11476 * expprint.c (print_subexp): Use xfree instead of free.
11477 * charset.c: Include "gdb_string.h" instead of <string.h>.
11478 (register_iconv_charsets): Use ISO C definition.
11479 (host_charset, target_charset): Ditto.
11480 * Makefile.in (charset.o): Update dependencies.
11481 (mi-cmd-env.o): Update dependencies.
11482
1c615f7a
AC
114832003-01-08 Andrew Cagney <cagney@redhat.com>
11484
11485 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11486 get_frame_base.
11487
c9a1dc08
AC
114882003-01-08 Andrew Cagney <ac131313@redhat.com>
11489
11490 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11491 build directories. Save edited gdb output in Mbuild.log. If a
11492 build fails, remove any final GDB executable.
11493
dbad9d94
AC
114942003-01-08 Andrew Cagney <ac131313@redhat.com>
11495
11496 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11497 replacing hex constants with function names and stripping leading
11498 file name directory prefixes.
11499
8d357cca
AC
115002003-01-08 Andrew Cagney <cagney@redhat.com>
11501
11502 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11503 get_frame_base.
11504
bca02a8a
DC
115052003-01-08 David Carlton <carlton@math.stanford.edu>
11506
11507 * linespec.c (decode_line_1): Move code into decode_variable.
11508 (decode_variable): New function.
11509
7f8ab3a0
AC
115102003-01-08 Andrew Cagney <ac131313@redhat.com>
11511
11512 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11513
7b5849cc
AC
115142003-01-08 Andrew Cagney <cagney@redhat.com>
11515
11516 * cris-tdep.c (cris_frame_init_saved_regs): Use
11517 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11518 saved_regs buffer.
11519 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11520 (sh64_nofp_frame_init_saved_regs): Ditto.
11521 (sh_fp_frame_init_saved_regs): Ditto.
11522 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11523 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11524 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11525 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11526
72a5efb3
DJ
115272003-01-08 Daniel Jacobowitz <drow@mvista.com>
11528
11529 * minsyms.c (lookup_minimal_symbol): Update comment.
11530 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11531 (lookup_minimal_symbol_solib_trampoline): Likewise.
11532
11c02a10
AC
115332003-01-08 Andrew Cagney <cagney@redhat.com>
11534
aab3ea25
AC
11535 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11536 frame_relative_level.
11537
da50a4b7
AC
11538 * alpha-tdep.c: Use get_frame_extra_info.
11539 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11540 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11541 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11542 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11543
11c02a10
AC
11544 * alpha-tdep.c: Use get_next_frame.
11545 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11546 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11547 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11548 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11549 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11550 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11551 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11552
1e2330ba
AC
115532003-01-07 Andrew Cagney <cagney@redhat.com>
11554
11555 * alpha-tdep.c: Use get_frame_base.
11556 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11557 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11558 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11559 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11560 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11561 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11562 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11563 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11564
2d75187b
AC
115652003-01-07 Andrew Cagney <cagney@redhat.com>
11566
11567 * frame.c (deprecated_get_frame_context): New function.
11568 (deprecated_set_frame_context): New function.
11569 * frame.h (deprecated_get_frame_context): Declare.
11570 (deprecated_set_frame_context): Declare.
11571 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11572 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11573
483d36b2
AC
115742003-01-07 Andrew Cagney <cagney@redhat.com>
11575
11576 * frame.c (deprecated_set_frame_next_hack): New function.
11577 (deprecated_set_frame_prev_hack): New function.
11578 * frame.h (deprecated_set_frame_next_hack): Declare.
11579 (deprecated_set_frame_prev_hack): Declare.
11580 * mcore-tdep.c (analyze_dummy_frame): Use
11581 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11582 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11583
14e91ac5
DC
115842003-01-07 David Carlton <carlton@math.stanford.edu>
11585
11586 * linespec.c (decode_line_1): Move code into decode_dollar.
11587 (decode_dollar): New function.
11588
b0c6b05c
AC
115892003-01-07 Andrew Cagney <cagney@redhat.com>
11590
11591 * arm-tdep.c (arm_init_extra_frame_info): Use
11592 deprecated_update_frame_base_hack.
11593 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11594 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11595 (fix_frame_pointer): Ditto.
11596 (mn10300_analyze_prologue): Ditto.
11597
a00a19e9
AC
115982003-01-07 Andrew Cagney <cagney@redhat.com>
11599
11600 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11601 extra_info using frame_extra_info_zalloc.
11602 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11603 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11604 (sh64_init_extra_frame_info): Ditto.
11605 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11606 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11607 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11608 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11609 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11610 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11611 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11612 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11613 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11614 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11615 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11616 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11617
11618 * mn10300-tdep.c (analyze_dummy_frame): Use
11619 deprecated_set_frame_extra_info_hack.
11620 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11621
1fb4c65b
JB
116222003-01-07 J. Brobecker <brobecker@gnat.com>
11623
11624 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11625 class is not scText. These do not define "real" procedures.
11626 (parse_partial_symbols): Likewise.
11627
9fe7d6bf
MS
116282003-01-06 Michael Snyder <msnyder@redhat.com>
11629
11630 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11631
f6c609c4
AC
116322003-01-06 Andrew Cagney <ac131313@redhat.com>
11633
11634 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11635 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11636 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11637 deprecated_frame_xmalloc_with_cleanup.
11638 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11639 deprecated_frame_xmalloc.
11640 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11641 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11642
d995ff4b
AC
116432003-01-06 Andrew Cagney <cagney@redhat.com>
11644
84dc46cb
AC
11645 * x86-64-linux-tdep.c: Include "osabi.h".
11646 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11647
d995ff4b
AC
11648 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11649
66140c26
AC
116502003-01-06 Andrew Cagney <cagney@redhat.com>
11651
11652 * MAINTAINERS (Target Instruction Set Architectures): Update
11653 arm-elf. Can be built with -Werror, has been multiarched.
11654
11655 * value.h (unpack_long): Make buffer parameter constant.
11656 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11657 * scm-lang.h (scm_parse): Ditto.
11658 * defs.h (extract_typed_address, extract_address): Ditto.
11659 (extract_long_unsigned_integer): Ditto.
11660 * inferior.h (unsigned_pointer_to_address): Ditto.
11661 (signed_pointer_to_address): Ditto.
11662 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11663 * gdbarch.h, gdbarch.c: Regenerate.
11664 * findvar.c (extract_long_unsigned_integer): Update.
11665 (extract_address): Update.
11666 (extract_typed_address): Update.
11667 (unsigned_pointer_to_address): Update.
11668 * values.c (unpack_long): Update.
11669 (unpack_double): Update.
11670 (unpack_pointer): Update.
11671 (unpack_field_as_long): Update.
11672 * d10v-tdep.c (d10v_pointer_to_address): Update.
11673 * avr-tdep.c (avr_pointer_to_address): Update.
11674 * scm-lang.c (scm_unpack): Update.
11675 * findvar.c (signed_pointer_to_address): Update.
11676
b089b3da
ML
116772003-01-06 Michal Ludvig <mludvig@suse.cz>
11678
8ffd9b1b 11679 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11680 since it is in i386-tdep.c.
11681
aff87235
JB
116822003-01-06 J. Brobecker <brobecker@gnat.com>
11683
11684 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11685 failure introduced in the previous change.
11686
34f5e845
MC
116872003-01-05 Michael Chastain <mec@shout.net>
11688
11689 * README: Remove references to deleted remote-*.c files:
11690 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11691 remote-nrom.c, remote-os9k.c, remote-udi.c.
11692
28bcfd30
MK
116932003-01-05 Mark Kettenis <kettenis@gnu.org>
11694
11695 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11696 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11697 i386_get_longjmp_target.
11698
15a5b3ee
AC
116992003-01-05 Andrew Cagney <ac131313@redhat.com>
11700
11701 * arm-tdep.c (prologue_cache): Change to a pointer.
11702 (_initialize_arm_tdep): Allocate prologue_cache.
11703 (check_prologue_cache): Update.
11704 (save_prologue_cache): Update.
11705 (arm_gdbarch_init): Update.
11706
c263362b
DJ
117072003-01-04 Daniel Jacobowitz <drow@mvista.com>
11708
11709 * stabsread.c (update_method_name_from_physname): Call complaint()
11710 instead of error.
11711
51603483
DJ
117122003-01-04 Daniel Jacobowitz <drow@mvista.com>
11713
11714 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11715 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11716 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11717
11718 * blockframe.c: Include "gdbcmd.h" and "command.h".
11719 (backtrace_below_main): New variable.
11720 (file_frame_chain_valid, func_frame_chain_valid)
11721 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11722 (generic_func_frame_chain_valid): Remove functions.
11723 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11724 (_initialize_blockframe): New function.
11725 * Makefile.in (blockframe.o): Update dependencies.
11726 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11727 comment. Call frame_chain_valid ().
11728 * frame.h: Remove old prototypes. Add prototype for
11729 frame_chain_valid and update comments to match.
11730 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11731 Remove old comment.
11732 * gdbarch.h: Regenerated.
11733 * gdbarch.c: Regenerated.
11734
11735 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11736 set_gdbarch_frame_chain_valid.
11737 * avr-tdep.c (avr_gdbarch_init): Likewise.
11738 * cris-tdep.c (cris_gdbarch_init): Likewise.
11739 * frv-tdep.c (frv_gdbarch_init): Likewise.
11740 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11741 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11742 (i386_nw_init_abi): Likewise.
11743 (i386_gdbarch_init): Likewise.
11744 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11746 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11747 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11748 * mips-tdep.c (mips_gdbarch_init): Likewise.
11749 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11750 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11751 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11752 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11753 * s390-tdep.c (s390_gdbarch_init): Likewise.
11754 * sh-tdep.c (sh_gdbarch_init): Likewise.
11755 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11756 * v850-tdep.c (v850_gdbarch_init): Likewise.
11757 * vax-tdep.c (vax_gdbarch_init): Likewise.
11758 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11759
11760 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11761 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11762 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11763 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11764 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11765 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11766 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11767 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11768
b00a8037
DJ
117692002-01-04 Daniel Jacobowitz <drow@mvista.com>
11770
11771 * Makefile.in (acconfig_h): Remove incorrect macro.
11772 (config_h): Define.
11773 (osabi.o): Update dependencies.
11774 * configure.tgt: Set gdb_osabi based on target triplet.
11775 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11776 * configure: Regenerated.
11777 * config.in: Regenerated.
11778 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11779 (GDB_OSABI_DEFAULT): Define if not already defined.
11780 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11781 (set_osabi_string): New variables.
11782 (gdbarch_register_osabi): Add new OS ABI to
11783 gdb_osabi_available_names.
11784 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11785 (set_osabi, show_osabi): New functions.
11786 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11787
4be87837
DJ
117882003-01-04 Daniel Jacobowitz <drow@mvista.com>
11789
11790 * arch-utils.c (gdbarch_info_init): Set osabi to
11791 GDB_OSABI_UNINITIALIZED.
11792 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11793 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11794 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11795 * gdbarch.c: Regenerated.
11796 * gdbarch.h: Regenerated.
11797 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11798 there's no BFD.
11799 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11800 * osabi.h (enum gdb_osabi): Move to defs.h.
11801 (gdbarch_init_osabi): Update prototype.
11802 * defs.h (enum gdb_osabi): Moved here.
11803 * Makefile.in: Update dependencies.
11804
11805 * alpha-tdep.h: Don't include "osabi.h".
11806 (struct gdbarch_tdep): Remove osabi member.
11807 * alpha-tdep.c: Include "osabi.h".
11808 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11809 iterate over arches. Update call to gdbarch_init_osabi.
11810 (alpha_dump_tdep): Don't dump osabi.
11811 * alpha-linux-tdep.c: Include "osabi.h".
11812 * alpha-osf1-tdep.c: Include "osabi.h".
11813 * alphafbsd-tdep.c: Include "osabi.h".
11814 * alphanbsd-tdep.c: Include "osabi.h".
11815
11816 * arm-tdep.h: Don't include "osabi.h".
11817 (struct gdbarch_tdep): Remove osabi member.
11818 * arm-tdep.c: Include "osabi.h".
11819 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11820 iterate over arches. Update call to gdbarch_init_osabi.
11821 (arm_dump_tdep): Don't dump osabi.
11822 * arm-linux-tdep.c: Include "osabi.h".
11823 * armnbsd-tdep.c: Include "osabi.h".
11824
11825 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11826 Update call to gdbarch_init_osabi.
11827
11828 * i386-tdep.h: Don't include "osabi.h".
11829 (struct gdbarch_tdep): Remove osabi member.
11830 * i386-tdep.c: Include "osabi.h".
11831 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11832 iterate over arches. Update call to gdbarch_init_osabi.
11833 (i386_dump_tdep): Don't dump osabi.
11834 * i386-linux-tdep.c: Include "osabi.h".
11835 * i386-sol2-tdep.c: Include "osabi.h".
11836 * i386bsd-tdep.c: Include "osabi.h".
11837 * i386gnu-tdep.c: Include "osabi.h".
11838 * i386ly-tdep.c: Include "osabi.h".
11839 * i386nbsd-tdep.c: Include "osabi.h".
11840 * i386obsd-tdep.c: Include "osabi.h".
11841
11842 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11843 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11844 check osabi when iterating over arches. Update call to
11845 gdbarch_init_osabi.
11846 (mips_dump_tdep): Don't dump osabi.
11847
11848 * ns32k-tdep.h: Don't include "osabi.h".
11849 (struct gdbarch_tdep): Remove.
11850 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11851 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11852 allocate tdep. Update call to gdbarch_init_osabi.
11853 (ns32k_dump_tdep): Remove.
11854 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11855 * ns32knbsd-tdep.c: Include "osabi.h".
11856
11857 * ppc-tdep.h: Don't include "osabi.h".
11858 (struct gdbarch_tdep): Remove osabi member.
11859 * rs6000-tdep.c: Include "osabi.h".
11860 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11861 osabi when iterating over arches. Update call to
11862 gdbarch_init_osabi.
11863 (rs6000_dump_tdep): Don't dump osabi.
11864 * ppc-linux-tdep.c: Include "osabi.h".
11865 * ppcnbsd-tdep.c: Include "osabi.h".
11866
11867 * sh-tdep.h: Don't include "osabi.h".
11868 (struct gdbarch_tdep): Remove osabi member.
11869 * sh-tdep.c: Include "osabi.h".
11870 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11871 iterate over arches. Update call to gdbarch_init_osabi.
11872 (sh_dump_tdep): Don't dump osabi.
11873 * shnbsd-tdep.c: Include "osabi.h".
11874
11875 * sparc-tdep.c: Include "osabi.h".
11876 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11877 iterate over arches. Update call to gdbarch_init_osabi.
11878 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11879 tdep structure.
11880
11881 * vax-tdep.h: Don't include "osabi.h".
11882 (struct gdbarch_tdep): Remove.
11883 * vax-tdep.c: Include "osabi.h".
11884 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11885 iterate over arches. Don't allocate tdep. Update call
11886 to gdbarch_init_osabi.
11887 (vax_dump_tdep): Remove.
11888 (_initialize_vax_tdep): Update call to gdbarch_register.
11889
a881cf8e
DJ
118902003-01-04 Daniel Jacobowitz <drow@mvista.com>
11891
11892 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11893 entirely.
11894 (breakpoint_re_set_one): Don't fetch the value for a disabled
11895 watchpoint.
11896
1e698235
DJ
118972003-01-04 Daniel Jacobowitz <drow@mvista.com>
11898
11899 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11900 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11901 (COERCE_FLOAT_TO_DOUBLE): Remove.
11902 * gdbarch.c: Regenerate.
11903 * gdbarch.h: Regenerate.
11904 * Makefile.in: Remove value_h from gdbarch_h.
11905 * valops.c (coerce_float_to_double): New variable.
11906 (default_coerce_float_to_double): Remove.
11907 (standard_coerce_float_to_double): Remove.
11908 (value_arg_coerce): Use coerce_float_to_double.
11909 (_initialize_valops): Add "set coerce-float-to-double".
11910 * value.h (default_coerce_float_to_double): Remove prototype.
11911 (standard_coerce_float_to_double): Remove prototype.
11912
11913 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11914 prototyped.
11915 * mdebugread.c (parse_symbol): Likewise.
11916 * stabsread.c (define_symbol): Mark all functions as prototyped.
11917
11918 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11919 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11920 set_gdbarch_coerce_float_to_double.
11921 * arm-tdep.c (arm_gdbarch_init): Likewise.
11922 * frv-tdep.c (frv_gdbarch_init): Likewise.
11923 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11924 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11925 * mips-tdep.c (mips_gdbarch_init): Likewise.
11926 (mips_coerce_float_to_double): Remove.
11927 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11928 (rs6000_coerce_float_to_double): Remove.
11929 * s390-tdep.c (s390_gdbarch_init): Likewise.
11930 * sh-tdep.c (sh_gdbarch_init): Likewise.
11931 (sh_coerce_float_to_double): Remove.
11932 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11933 (sparc_coerce_float_to_double): Remove.
11934 * v850-tdep.c (v850_gdbarch_init): Likewise.
11935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11936 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11937 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11938 (hppa_coerce_float_to_double): Remove prototype.
11939 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11940
f436a26a
DJ
119412003-01-04 Daniel Jacobowitz <drow@mvista.com>
11942
11943 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11944
248f8055
DJ
119452003-01-04 Daniel Jacobowitz <drow@mvista.com>
11946
11947 Suggested by Stewart Brown <sb24@avaya.com>:
11948 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11949 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11950 (c_type_print_varspec_suffix): Likewise.
11951
72cfdc76
MK
119522003-01-04 Mark Kettenis <kettenis@gnu.org>
11953
bfd260bb
MK
11954 * configure.in: Don't set and AC_SUBST SUBDIRS.
11955 * configure: Regenerated.
11956
72cfdc76
MK
11957 * configure.in: Remove code dealing with shared libraries.
11958 * Makefile.in: Remove HLDFLAGS and HLDENV.
11959 * configure: Regenerated.
11960
c8b8a898
AC
119612003-01-04 Andrew Cagney <ac131313@redhat.com>
11962
11963 * frame.c (deprecated_frame_xmalloc): New function.
11964 (deprecated_set_frame_saved_regs_hack): New function.
11965 (deprecated_set_frame_extra_info_hack): New function.
11966 * frame.h (deprecated_frame_xmalloc): Declare.
11967 (deprecated_set_frame_saved_regs_hack): Declare.
11968 (deprecated_set_frame_extra_info_hack): Declare.
11969
14abd0fb
MK
119702003-01-04 Mark Kettenis <kettenis@gnu.org>
11971
8ee53726
MK
11972 * configure.in: Move code that provides the --enable-gdbtk option
11973 right after the code that handles the --enable-tui option, and
11974 polish it somewhat.
11975 * configure: Regenerated.
11976
14abd0fb
MK
11977 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11978 AC_CHECK_FUNCS and remove the old check for pread64.
11979 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11980 * acconfig.h (_GNU_SOURCE): Add.
11981 (HAVE_PREAD64): Remove.
11982 * configure, aclocal.m4, config.in: Regenerated.
11983
b2fb4676
AC
119842003-01-03 Andrew Cagney <ac131313@redhat.com>
11985
11986 * alpha-tdep.c: Use get_frame_saved_regs.
11987 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11988 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11989 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11990 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11991 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11992
8dcde887
MK
119932003-01-03 Mark Kettenis <kettenis@gnu.org>
11994
11995 * configure.in: Remove all use of the SUBDIRS variable; add
11996 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11997 code providing the --enable-multi-ice option, and move it right in
11998 front of the code that checks whether gdbserver is supported.
11999 Polish that too.
12000 * configure: Regenerated.
12001 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12002 @SUBDIRS@.
12003
8ccd593b
AC
120042003-01-03 Andrew Cagney <cagney@redhat.com>
12005
12006 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12007 * avr-tdep.c, cris-tdep.c: Ditto.
12008 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12009 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12010
91151a06
MK
120112003-01-03 Mark Kettenis <kettenis@gnu.org>
12012
12013 * configure.in: Remove --enable-netrom option.
12014 * configure: Regenerated.
12015
8fe84d01
MK
120162003-01-03 Mark Kettenis <kettenis@gnu.org>
12017
12018 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12019 declaration for `struct re_pattern_buffer' instead.
12020 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12021
f0394be6
JB
120222003-01-03 J. Brobecker <brobecker@gnat.com>
12023
12024 * mdebugread.c (parse_symbol): Count until the stEnd matching
12025 the structure name.
12026
27e9bf90
MK
120272003-01-02 Mark Kettenis <kettenis@gnu.org>
12028
93d331ba
MK
12029 * configure.in: Remove --with-cpu option.
12030 subscripts. Remove evil changequotes here.
12031 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12032 * config.in, configure: Regenerated.
8ffd9b1b 12033
27e9bf90
MK
12034 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12035 * configure.in: Cleanup section that sources GDB and BFD configure
12036 subscripts. Remove evil changequotes here.
12037 * config.in, configure: Regenerated.
12038
50abf9e5
AC
120392003-01-02 Andrew Cagney <ac131313@redhat.com>
12040
12041 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12042 frame accessor methods.
12043 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12044 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12045 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12046 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12047 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12048 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12049 * z8k-tdep.c: Ditto.
8ffd9b1b 12050
287c1a40
MK
120512003-01-02 Mark Kettenis <kettenis@gnu.org>
12052
f5dbc56d
MK
12053 * configure.in: Remove UI_OUT configuration code.
12054 * ada-lang.c: Update assuming UI_OUT is always true.
12055 * Makefile.in (UIOUT_CFLAGS): Remove.
12056 * configure: Regenerated.
12057 * TODO: Remove blurb about elimination of -DUI_OUT.
12058
627af7ea
MK
12059 * configure.in: Move code that provides the --enable-gdbcli,
12060 --enable-gdbmi options right before the code that handles the
12061 --enable-tui option. Polish a bit.
12062 * configure: Regenerated.
12063
06825bd1
MK
12064 * configure.in: Rewrite check for GNU regex and the
12065 --without-included regex option, and move it into the "Checks for
12066 library functions" section. This makes us use the system regex
12067 again by default on systems with version 2 of the GNU C library.
12068 This was apparently broken.
12069 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12070 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12071 * config.in, configure: Regenerated.
12072
287c1a40
MK
12073 * configure.in: Move code that provides the --enable-tui option
12074 before the "Checks for libraries" section. Polish the code
12075 somewhat and set need_curses to yes if we build the TUI. Rewrite
12076 code that looks for a library providing termcap functionality to
12077 match more closely what's done in the Readline library, and move
12078 it into to the "Checks for libraries" section.
12079 * configure: Regenerated.
12080 * Makefile.in (TERMCAP): Remove variable.
12081 * config/i386/go32.mh (TERMCAP): Remove variable.
12082
684e56bf
AC
120832003-01-02 Andrew Cagney <ac131313@redhat.com>
12084
12085 * MAINTAINERS: Mention gdb_mbuild.sh.
12086 * gdb_mbuild.sh: Rewrite.
12087
e1ea1d75
MK
120882003-01-02 Mark Kettenis <kettenis@gnu.org>
12089
12090 * configure.in: Fix typo in last change.
12091 * config.in, configure: Regenerated.
12092
1b831c93
AC
120932003-01-02 Andrew Cagney <ac131313@redhat.com>
12094
12095 * valarith.c (value_binop): Delete obsolete code and comments.
12096 * configure.host: Ditto.
12097 * buildsym.h (make_blockvector): Ditto.
12098 * buildsym.c (make_blockvector): Ditto.
12099 * defs.h (enum language): Ditto.
12100 (chill_demangle): Ditto.
12101 * elfread.c (elf_symtab_read): Ditto.
12102 * dwarfread.c (CHILL_PRODUCER): Ditto.
12103 (set_cu_language): Ditto.
12104 (handle_producer): Ditto.
12105 * expprint.c (print_subexp): Ditto.
12106 * gdbtypes.c (chill_varying_type): Ditto.
12107 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12108 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12109 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12110 (chill_varying_type): Ditto.
12111 * language.h (_LANG_chill): Ditto.
12112 * language.c (binop_result_type, integral_type): Ditto.
12113 (character_type, string_type, structured_type): Ditto.
12114 (lang_bool_type, binop_type_check): Ditto.
12115 * stabsread.h (os9k_stabs): Ditto.
12116 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12117 (define_symbol, read_type, read_struct_fields): Ditto.
12118 (read_array_type, read_enum_type, read_huge_number): Ditto.
12119 (read_range_type, start_stabs): Ditto.
12120 * symfile.c (init_filename_language_table): Ditto.
12121 (add_psymbol_with_dem_name_to_list): Ditto.
12122 * symtab.c (symbol_init_language_specific): Ditto.
12123 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12124 * symtab.h (struct general_symbol_info): Ditto.
12125 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12126 * typeprint.c (typedef_print): Ditto.
12127 * utils.c (fprintf_symbol_filtered): Ditto.
12128 * valops.c (value_cast, search_struct_field, value_slice): Delete
12129 obsolete code.
12130 (varying_to_slice): Delete function.
12131 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12132 (varying_to_slice): Delete declaration.
12133 * MAINTAINERS: Update.
12134
8bb2c122
MK
121352003-01-02 Mark Kettenis <kettenis@gnu.org>
12136
97bf5e38
MK
12137 * configure.in: Reorganize "Checks for library functions section"
12138 a bit. Remove check for `btowc' and `isascii' functions.
12139 * configure: Regenerated.
12140
5ee754fc
MK
12141 * acconfig.h (_MSE_INT_H): Remove.
12142 * configure.in: Create "Checks for header files" section, and move
12143 appropriate tests there. Don't check for objlist.h, wchar.h,
12144 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12145 misdetection fix. Also add "Checks for types", "Checks for
12146 compiler characteristics" and "Checks for library functions"
12147 sections.
12148 * config.in, configure: Regenerated.
12149
8bb2c122
MK
12150 * configure.in: Create "Checks for programs" section, and move
12151 appropriate tests there.
12152
9a156167
MK
121532003-01-01 Mark Kettenis <kettenis@gnu.org>
12154
12155 * configure.in: Create "Checks for libraries" section, and move
12156 appropriate tests there. Cleanup check for wctype in libw. Use
12157 AC_SEARCH_LIBS to see whether we need libsocket.
12158 * configure: Regenerated.
12159
a80e2bcb 12160For older changes see ChangeLog-2002
c906108c
SS
12161\f
12162Local Variables:
12163mode: change-log
12164left-margin: 8
12165fill-column: 74
12166version-control: never
12167End:
This page took 1.232829 seconds and 4 git commands to generate.