Fix typos.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d5b5ac79
AC
12003-09-20 Andrew Cagney <cagney@redhat.com>
2
deafb061
AC
3 * breakpoint.c: Eliminate ARGSUSED.
4 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
5 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
6 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
7 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
8 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
9 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
10 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
11 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
12 * wince.c, remote-vx.c: Ditto.
13
d5b5ac79
AC
14 * cli/cli-script.c: Remove "register" attributes.
15 * config/pa/tm-hppa.h: Ditto.
16 * cli/cli-decode.c: Ditto.
17 * cli/cli-cmds.c: Ditto.
18
c6316faa
AC
192003-09-19 Andrew Cagney <cagney@redhat.com>
20
21 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
22 DEPRECATED_NPC_REGNUM.
23 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
24
f4f99b11
CF
252003-09-19 Christopher Faylor <cgf@redhat.com>
26
27 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
28
1708f284
JB
292003-09-19 Jim Blandy <jimb@redhat.com>
30
31 * macrotab.c (macro_include): Use the correct comparison to find
32 the appropriate place for this inclusion in the list.
33
b9fbf434
AC
342003-09-19 Andrew Cagney <cagney@redhat.com>
35
36 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
37 (DEPRECATED_HPUX_TEXT_END): Define.
38 (deprecated_hpux_text_end): Declare.
39 (struct target_ops): Declare opaque.
40 * hppah-nat.c (text_end): Make static.
41 (deprecated_hpux_text_end): New function.
42 * exec.c (text_end): Delete global variable.
43 (NEED_TEXT_START_END): Do not define.
44 (exec_file_attach): Replace code computing "text_end" code with
45 call to DEPRECATED_HPUX_TEXT_END.
46
5b03f266
AC
472003-09-19 Andrew Cagney <cagney@redhat.com>
48
49 * utils.c (align_up, align_down): New functions.
50 * defs.h (align_up, align_down): Declare.
51 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
52 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
53 and "align_down".
54 (round_up, round_down): Delete functions.
55 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
56 "align_down".
57 (ROUND_DOWN, ROUND_UP): Delete macros.
58 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
59 * h8300-tdep.c: Replace "round_up" and "round_down" with
60 "align_up" and "align_down".
61 (round_up, round_down): Delete macros.
62 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
63 "align_down".
64 (ROUND_UP, ROUND_DOWN): Delete macros.
65
51db5742
JB
662003-09-18 J. Brobecker <brobecker@gnat.com>
67
68 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
69 hard-coded constant. Use the proper machine name instead.
70
77949794
AC
712003-09-17 Andrew Cagney <cagney@redhat.com>
72
73 * sparc-tdep.c (legacy_register_name): Delete function.
74 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
75 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
76 * infcmd.c (gdb_register_name): Delete variable.
77 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
78 REGISTER_NAME and "tm.h".
79 * gdbarch.h, gdbarch.c: Regenerate.
80 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
81 REGISTER_NAMES in comments.
82 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
83 * m68klinux-nat.c (regmap): Ditto.
84
b55c33cc
JB
852003-09-17 Jim Blandy <jimb@redhat.com>
86
87 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
88
957e27ac
AC
892003-09-17 Andrew Cagney <cagney@redhat.com>
90
91 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
92 (ppcnbsd_init_abi): Set "use_struct_convention" to
93 "ppcnbsd_use_struct_convention".
94
192cb3d4
MK
952003-09-17 Mark Kettenis <kettenis@gnu.org>
96
97 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
98 * gdbarch.h, gdbarch.c: Regenerate.
99 (stabs_argument_has_addr): New architecture method.
100 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
101 * arch-utils.c: Include "buildsym.h".
102 (default_stabs_argument_has_addr): New function.
103 * stabsread.c (define_symbol): Use stabs_argument_has_addr
104 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
105
efe59759
AC
1062003-09-17 Andrew Cagney <cagney@redhat.com>
107
108 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
109 * gdbarch.h, gdbarch.c: Regenerate.
110 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
111 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
112 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
113 * sparcnbsd-tdep.c: Update.
114
62700349
AC
1152003-09-17 Andrew Cagney <cagney@redhat.com>
116
117 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
118 * gdbarch.h, gdbarch.c: Regenerate.
119 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
120 * d10v-tdep.c, frame.c: Update.
121 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
122 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
123 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
124 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
125 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
126 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
127 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
128 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
129 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
130 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
131 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
132 * config/pa/nm-hppah.h: Update.
133
b9ff3018
AC
1342003-09-16 Andrew Cagney <cagney@redhat.com>
135
136 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
137 "use_struct_convention" to "ppc_linux_use_struct_convention".
138 (ppc_linux_use_struct_convention): New function.
139 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
140 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
141 "rs6000_use_struct_convention".
142 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
143 declaration.
144 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
145 Delete function.
146
aa1ee363
AC
1472003-09-16 Andrew Cagney <cagney@redhat.com>
148
149 * buildsym.c: Remove more occurances of "register".
150 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
151 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
152 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
153 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
154 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
155 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
156 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
157 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
158
f2ea0907
CV
1592003-09-16 Corinna Vinschen <vinschen@redhat.com>
160
161 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
162 numbers to enumeration values.
163 * sh-tdep.c: Accomodate above change.
164 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
165 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
166 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
167 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
168 (IS_FPUSH): Rename from IS_FMOV.
169 (sh_extract_struct_value_address): Remove useless comment.
170 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
171 instead of own local values.
172 (sh_dump_tdep): Remove.
173 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
174 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
175
1c704f11
AC
1762003-09-15 Andrew Cagney <cagney@redhat.com>
177
178 * doublest.c (convert_floatformat_to_doublest): No longer need to
179 cast "exp_bias" to an int. Reverts 2002-12-04 change.
180
ac79b88b
DJ
1812003-09-15 Daniel Jacobowitz <drow@mvista.com>
182
183 * values.c (unpack_double): Call floatformat_is_valid.
184
1c671366
MK
1852003-09-15 Mark Kettenis <kettenis@gnu.org>
186
de5227fb
MK
187 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
188 ps_strings into a long.
189
1c671366
MK
190 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
191 _initialize_am64fbsd_nat.
192
a604369a
KB
1932003-09-15 Kevin Buettner <kevinb@redhat.com>
194
195 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
196 associated with DW_AT_ranges attribute is out of bounds.
197
b3cacbee
DL
1982003-09-15 David Lecomber <dsl@sources.redhat.com>
199
200 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
201
d0f37bb2
MC
2022003-09-14 Michael Chastain <mec@shout.net>
203
204 * config/m68k/nm-apollo68v.h: Delete.
205 * config/m68k/xm-apollo68v.h: Delete.
206
69517000
AC
2072003-09-14 Andrew Cagney <cagney@redhat.com>
208
209 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
210 * dcache.c: Update copyrights and descriptions.
211 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
212
ef8b349d
AC
2132003-09-14 Andrew Cagney <cagney@redhat.com>
214
215 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
216 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
217
52f0bd74
AC
2182003-09-14 Andrew Cagney <cagney@redhat.com>
219
220 * alpha-nat.c: Remove some occurances of "register".
221 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
222 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
223 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
224 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
225 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
226 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
227 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
228 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
229 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
230 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
231 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
232 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
233 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
234 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
235 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
236 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
237 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
238 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
239 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
240 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
241 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
242 * values.c, vax-tdep.c, xcoffread.c: Ditto.
243
4a4b3fed
AC
2442003-09-13 Andrew Cagney <cagney@redhat.com>
245
246 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
247 * ppc-tdep.h (struct regcache): Declare opaque.
248 * objfiles.h (struct objfile_data): Declare opaque.
249 * cp-support.h (struct objfile): Declare opaque.
250 * linux-nat.h (target_waitstatus): Declare opaque.
251
2110b94f
MK
2522003-09-14 Mark Kettenis <kettenis@gnu.org>
253
1c671366
MK
254 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
255 (stabs_argument_has_addr): New architecture method.
256 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
257 * arch-utils.c: Include "buildsym.h".
258 (default_stabs_argument_has_addr): New function.
259 * stabsread.c (define_symbol): Use stabs_argument_has_addr
260 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
261
2110b94f
MK
262 * cris-tdep.c (cris_gdbarch_init): Set
263 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
264 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
265 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
266 * mips-tdep.c (mips_gdbarch_init): Likewise.
267 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
268 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
269
48436ce6
AC
2702003-09-13 Andrew Cagney <cagney@redhat.com>
271
272 * values.c (using_struct_return): Delete "function" and "funcaddr"
273 parameters.
274 * value.h (using_struct_return): Update declaration.
275 * infcmd.c (finish_command_continuation): Update.
276 (finish_command): Update.
277 * infcall.c (call_function_by_hand): Update.
278 * eval.c (evaluate_subexp_standard): Update.
279
403d9909
CF
2802003-09-13 Christopher Faylor <cgf@redhat.com>
281
282 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
283 SSE registers since gdb will not operate correctly without this.
284 Restore include file ordering munged in previous change.
285 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
286
ebf7d56b
MK
2872003-09-13 Mark Kettenis <kettenis@gnu.org>
288
8e823e25
MK
289 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
290 REG_STRUCT_HAS_ADDR.
291 * gdbarch.c, gdbarch.h: Updated.
292 * infcall.c (call_function_by_hand): Update.
293 * stabsread.c (define_symbol): Updated.
294
ebf7d56b
MK
295 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
296
d3f13f72
CF
2972003-09-12 Christopher Faylor <cgf@redhat.com>
298
299 * win32-nat.c: Reorganize so that defines used by target headers are
300 actually defined by the system headers.
301 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
302 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
303
14f75137
JB
3042003-09-12 Jim Blandy <jimb@redhat.com>
305
d646061f
JB
306 * dbxread.c (read_dbx_symtab): Don't report an internal error if
307 the file has no .data, .bss, or .rodata sections. Instead wait
308 until we see a variable alleged to live in one of those sections.
309
2a13f9bc
JB
310 * dbxread.c (read_dbx_symtab): If we have no .data section and no
311 .bss section, presume that any variables we find live in the
312 .rodata section.
313
4f49b26b
JB
314 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
315 offsets for global and static variables.
316
14f75137
JB
317 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
318 symbol types are, by definition, in the .data section, so it is
319 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
320 If there is no .data section, there should be no N_DATA or N_DATA
321 | N_EXT symbols.
322
212c460c
MK
3232003-09-12 Mark Kettenis <kettenis@gnu.org>
324
325 * amd64fbsd-tdep.c: Fix sigtramp recognition.
326 (amd64fbsd_sigcontext_addr): Rewrite.
327 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
328 with correct values.
329 (amd64fbsd_sc_reg_offset): Initialize with correct values.
330 (amd64fbsd_init_abi): Fix typo.
331
68856ea3
AC
3322003-09-12 Andrew Cagney <cagney@redhat.com>
333
334 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
335 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
336
627b3ba2
AC
3372003-09-12 Andrew Cagney <cagney@redhat.com>
338
339 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
340 "entry_file_highpc". Update comments.
341 * defs.h (deprecated_inside_entry_file): Rename
342 "inside_entry_file".
343 * blockframe.c (deprecated_inside_entry_file): Rename
344 "inside_entry_file".
345 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
346 * vax-tdep.c (vax_frame_chain): Update.
347 * sh64-tdep.c (sh64_frame_chain): Update.
348 * sh-tdep.c (sh_frame_chain): Update.
349 * rs6000-tdep.c (rs6000_frame_chain): Update.
350 * ns32k-tdep.c (ns32k_frame_chain): Update.
351 * mips-tdep.c (mips_frame_chain): Update.
352 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
353 * m32r-tdep.c (m32r_frame_this_id): Update.
354 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
355 * frv-tdep.c (frv_frame_this_id): Update.
356 * d10v-tdep.c (d10v_frame_this_id): Update.
357 * cris-tdep.c (cris_frame_chain): Update.
358 * blockframe.c (legacy_frame_chain_valid): Update.
359 * avr-tdep.c (avr_frame_this_id): Update.
360 * arm-tdep.c (arm_prologue_this_id): Update.
361 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
362 * objfiles.c (objfile_relocate): Update.
363 * mipsread.c (mipscoff_symfile_read): Update.
364 (mipscoff_symfile_read): Update.
365 * mdebugread.c (parse_partial_symbols): Update.
366 * dwarfread.c (read_file_scope): Update.
367 * dwarf2read.c (read_file_scope): Update.
368 * dbxread.c (read_dbx_symtab): Update.
369 (read_dbx_symtab): Update.
370 * coffread.c (complete_symtab): Update.
371
b0abbc58
JJ
3722003-09-12 Jeff Johnston <jjohnstn@redhat.com>
373
374 * top.c (quit_target): New static helper function.
375 (quit_force): Moved code to quit_target(). Call quit_target()
376 via catch_errors() to catch errors during quit.
377
a1632d59
DC
3782003-09-11 David Carlton <carlton@kealia.com>
379
380 * buildsym.c (finish_block): Use allocate_block to allocate the
381 block.
382 * mdebugread.c (new_block): Add FIXME.
383
5c4e30ca
DC
3842003-09-11 David Carlton <carlton@kealia.com>
385
386 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
387 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
388 (recursive_dump_type): Ditto.
389 * printcmd.c (print_formatted): Ditto.
390 * typeprint.c (print_type_scalar): Ditto.
391 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
392 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
393 * cp-support.h: Declare cp_check_possible_namespace_symbols,
394 maint_cplus_cmd_list.
395 * cp-support.c: Make maint_cplus_cmd_list extern.
396 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
397 command.h.
398 (lookup_symbol_file): Look in possible namespace blocks when
399 appropriate.
400 (initialize_namespace_symtab): New.
401 (get_possible_namespace_block, free_namespace_block)
402 (check_possible_namespace_symbols)
403 (check_possible_namespace_symbols_loop)
404 (check_one_possible_namespace_symbol)
405 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
406 (_initialize_cp_namespace): Ditto.
407 * block.h: Declare allocate_block.
408 * block.c (allocate_block): New.
409 * jv-lang.c (get_java_class_symtab): Allocate blocks via
410 allocate_block.
411 * symfile.h: Update declaration of add_psymbol_to_list.
412 * symfile.c (add_psymbol_to_list): Return the partial symbol in
413 question.
414 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
415 scan_partial_symbols_call.
416 (scan_partial_symbols): Add NAMESPACE argument; update calls to
417 helper functions.
418 (add_partial_symbol): If necessary, scan mangled names for names
419 of namespaces.
420 (add_partial_namespace): Add NAMESPACE argument; generate partial
421 symbols associated to namespaces.
422 (add_partial_enumeration): Add NAMESPACE argument.
423 (new_symbol): Allow namespace syms.
424 (read_namespace): Generate namespace syms.
425 * objfiles.h: Add opaque declaration of struct symtab.
426 (struct objfile): Add cp_namespace_symtab member.
427 * objfiles.c (allocate_objfile): Set
428 objfile->cp_namespace_symtab.
429 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
430 dictionary_h, command_h.
431
33a7c2fc
AC
4322003-09-11 Andrew Cagney <cagney@redhat.com>
433
434 * rs6000-tdep.c (rs6000_push_dummy_call): Use
435 regcache_raw_write_signed to set SP_REGNUM, move the operation to
436 near the function's end.
437 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
438 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
439 regcache_raw_write_signed to set SP_REGNUM.
440
63cd24fe
EZ
4412003-09-11 Elena Zannoni <ezannoni@redhat.com>
442
443 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
444 orig_addrs is set up properly.
445
f27dd7fd
AC
4462003-09-11 Andrew Cagney <cagney@redhat.com>
447
448 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
449 * gdbarch.h, gdbarch.c: Re-generate.
450 * infcall.c (call_function_by_hand): Update.
451 * hppa-tdep.c (hppa_push_arguments): Update.
452 * ada-lang.c (place_on_stack): Update.
453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
454 * sparc-tdep.c (sparc_gdbarch_init): Update.
455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
456 * hppa-tdep.c (hppa_gdbarch_init): Update.
457 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
458 stack_align.
459
f630a401
DJ
4602003-09-11 Daniel Jacobowitz <drow@mvista.com>
461
462 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
463 register do need a frame.
464
0ddabb4c
AC
4652003-09-11 Andrew Cagney <cagney@redhat.com>
466
467 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
468 buildable since GDB 5.0.
469 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
470 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
471 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
472 * irix4-nat.c: Delete file.
473 * config/mips/irix4.mh: Delete file.
474 * config/mips/irix3.mh: Delete file.
475 * config/mips/irix3.mt: Delete file.
476 * config/mips/tm-irix3.h: Delete file.
477 * config/mips/nm-irix3.h: Delete file.
478 * config/mips/xm-irix3.h: Delete file.
479 * config/mips/nm-irix4.h: Delete file.
480 * config/mips/xm-irix4.h: Delete file.
481 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
482
fde2cceb
JB
4832003-09-10 J. Brobecker <brobecker@gnat.com>
484
485 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
486 * Makefile.in (hppa-tdep.o): Update dependencies.
487
66f667f5
JW
4882003-09-10 James E Wilson <wilson@specifixinc.com>
489
ef5fd69f
JW
490 * MAINTAINERS: Change my e-mail address. Move to paper trail
491 section.
66f667f5 492
53e8aaea
KB
4932003-09-10 Kevin Buettner <kevinb@redhat.com>
494
495 * MAINTAINERS (frv): New ISA entry.
496
dcc6aaff
KB
4972003-09-10 Kevin Buettner <kevinb@redhat.com>
498
499 * frv-tdep.c (dis-asm.h): Include.
500 * Makefile.in (frv-tdep.o): Update dependencies.
501
932644f0
JJ
5022003-09-09 Jeff Johnston <jjohnstn@redhat.com>
503
504 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
505 Fix typo for high range of floating registers.
506
91c24f0a
DC
5072003-09-09 David Carlton <carlton@kealia.com>
508
509 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
510 highpc initialization here out of scan_partial_symbols.
511 (scan_partial_symbols): Restructure into a recursive version,
512 calling add_partial_namespace and add_partial_enumeration when
513 appropriate.
514 (add_partial_namespace): New.
515 (add_partial_enumeration, locate_pdi_sibling): Ditto.
516
c9263853
AC
5172003-09-09 Andrew Cagney <cagney@redhat.com>
518
e56a0ecc
AC
519 * rs6000-tdep.c (ppc_push_return_address): Delete function.
520 (rs6000_push_dummy_call): Set LR to BP_ADDR.
521 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
522 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
523
794a477a
AC
524 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
525 (rs6000_push_dummy_call): Set the "TOC" register.
526
c9263853
AC
527 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
528 methods "max_register_raw_size", "max_register_virtual_size" or
529 "register_virtual_size".
530
afa7d0b2
ILT
5312003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
532
533 * MAINTAINERS: Update my e-mail address.
534
7a41266b
AC
5352003-09-09 Andrew Cagney <cagney@redhat.com>
536
537 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
538 (rs6000_push_dummy_call): Store the struct return address.
539 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
540
77b2b6d4
AC
5412003-09-09 Andrew Cagney <cagney@redhat.com>
542
543 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
544 "ppc_sysv_abi_push_arguments".
545 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
546 "ppc_sysv_abi_push_arguments".
547 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
548 instead of "push_arguments".
549 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
550
e8a7b686
AC
5512003-09-09 Andrew Cagney <cagney@redhat.com>
552
553 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
554 instead of CALL_DUMMY_ADDRESS.
555
f86f5ca3
PH
5562003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
557
558 * p-lang.c: Eliminate "register".
559 * c-lang.c: Ditto.
560 * expprint.c: Ditto.
561 * f-lang.c: Ditto.
562 * jv-lang.c: Ditto.
563 * language.c: Ditto.
564 * m2-lang.c: Ditto.
565 * parse.c: Ditto.
566 * scm-lang.c: Ditto.
567 * objc-lang.c: Ditto.
568
83ee270e
NC
5692003-09-09 Nick Clifton <nickc@redhat.com>
570
571 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
572
a89aa300
AC
5732003-09-04 Andrew Cagney <cagney@redhat.com>
574
575 * avr-tdep.c: Include "dis-asm.h".
576 * cris-tdep.c: Include "dis-asm.h".
577 (cris_delayed_get_disassembler): Use "struct disassemble_info"
578 instead of corresponding typedef.
579 * h8300-tdep.c: Include "dis-asm.h".
580 * ia64-tdep.c: Include "dis-asm.h".
581 * i386-tdep.c: Include "dis-asm.h".
582 (i386_print_insn): Use "struct disassemble_info" instead of
583 corresponding typedef.
584 * m68k-tdep.c: Include "dis-asm.h".
585 * mcore-tdep.c: Include "dis-asm.h".
586 * mips-tdep.c: Include "dis-asm.h".
587 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
588 instead of corresponding typedef.
589 * ns32k-tdep.c: Include "dis-asm.h".
590 * s390-tdep.c: Include "dis-asm.h".
591 * sparc-tdep.c: Include "dis-asm.h".
592 * vax-tdep.c: Include "dis-asm.h".
593 * v850-tdep.c: Include "dis-asm.h".
594 * mn10300-tdep.c: Include "dis-asm.h".
595 * rs6000-tdep.c: Include "dis-asm.h".
596 * xstormy16-tdep.c: Include "dis-asm.h".
597 (_initialize_xstormy16_tdep): Delete "extern" declaration of
598 print_insn_xstormy16.
599 * Makefile.in (v850-tdep.o): Update dependencies.
600 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
601 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
602 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
603 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
604 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
605 (gdbarch_h): Remove $(dis_asm_h).
606 * disasm.c: Include "dis-asm.h".
607 (dis_asm_read_memory): Use "struct disassemble_info" instead of
608 corresponding typedef.
609 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
610 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
611 * gdbarch.sh: Do not include "dis-asm.h".
612 (struct disassemble_info): Declare opaque.
613 (TARGET_PRINT_INSN): Update declaration.
614 * gdbarch.h, gdbarch.c: Re-generate.
615
88a82a65
AC
6162003-09-08 Andrew Cagney <cagney@redhat.com>
617
618 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
619 CALL_DUMMY_ADDRESS, change to a predicate.
620 * gdbarch.h, gdbarch.c: Re-generate.
621 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
622 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
623 * infcall.c (call_function_by_hand): Ditto.
624 * sparc-tdep.c (sparc_push_return_address): Ditto.
625 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
626 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
627 CALL_DUMMY_ADDRESS with entry_point_address.
628 * v850-tdep.c (v850_push_return_address): Ditto.
629 * s390-tdep.c (s390_push_return_address): Ditto.
630 * rs6000-tdep.c (ppc_push_return_address): Ditto.
631 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
632 * mcore-tdep.c (mcore_push_return_address): Ditto.
633 * cris-tdep.c (cris_push_return_address): Ditto.
634 * arm-tdep.c (arm_push_return_address): Ditto.
635
3e2c4033
AC
6362003-09-08 Andrew Cagney <cagney@redhat.com>
637
638 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
639 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
640 and REG_UNMODIFIED to REG_SAME_VALUE.
641 (execute_cfa_program): Update.
642 (dwarf2_frame_cache): Update. Initialize table to
643 REG_UNSPECIFIED, complain if CFI fails to specify a register's
644 location.
645 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
646
39efb398
AC
6472003-09-08 Andrew Cagney <cagney@redhat.com>
648
649 * gnu-nat.c: Remove "inline" function attribute.
650 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
651
f5cb5aca
KB
6522003-09-08 Kevin Buettner <kevinb@redhat.com>
653
654 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
655 target.
656
1cb761c7
KB
6572003-09-08 Kevin Buettner <kevinb@redhat.com>
658
659 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
660 (frame_extra_info): Rename this struct to frv_unwind_cache.
661 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
662 Add fields ``prev_sp'' and ``base''.
663 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
664 (frv_saved_pc_after_call, frv_init_extra_frame_info)
665 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
666 Delete.
667 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
668 Revise all callers. Fill in the unwind cache argument and make
669 other adjustments to account for new frame mechanisms.
670 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
671 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
672 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
673 (frv_frame_unwind, frv_frame_base): New structs.
674 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
675 additional arguments expected by this method and adjust function
676 body accordingly.
677 (frv_gdbarch_init): Remove calls to the following functions:
678 set_gdbarch_deprecated_init_frame_pc(),
679 set_gdbarch_deprecated_saved_pc_after_call(),
680 set_gdbarch_deprecated_frame_chain(),
681 set_gdbarch_deprecated_frame_saved_pc(),
682 set_gdbarch_deprecated_frame_init_saved_regs(),
683 set_gdbarch_deprecated_push_arguments(),
684 set_gdbarch_deprecated_push_return_address(),
685 set_gdbarch_deprecated_pop_frame(),
686 set_gdbarch_deprecated_call_dummy_words(),
687 set_gdbarch_deprecated_sizeof_call_dummy_words(),
688 set_gdbarch_deprecated_init_extra_frame_info(),
689 set_gdbarch_deprecated_dummy_write_sp(), and
690 set_gdbarch_deprecated_pc_in_call_dummy().
691 Add calls to the following functions:
692 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
693 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
694 frame_base_set_default().
695 * Makefile.in (frv-tdep.o): Update dependencies.
696
68f6cf99
MK
6972003-09-09 Mark Kettenis <kettenis@gnu.org>
698
699 * dwarf2-frame.c (read_encoded_value): Add support for
700 DW_EH_PE_aligned encoding.
701
73b65bb0
DJ
7022003-09-08 Daniel Jacobowitz <drow@mvista.com>
703
704 * infrun.c (normal_stop): Don't print a message if the inferior
705 has exited.
706
7c8a5605
JB
7072003-09-08 Jim Blandy <jimb@redhat.com>
708
709 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
710 * dbxread.c: #include "gdb_assert.h".
711 (read_dbx_symtab): If the objfile has no .data section, use the
712 section index for the .bss section instead.
713
7dd88986
DJ
7142003-09-08 Daniel Jacobowitz <drow@mvista.com>
715
716 * frame.c (deprecated_safe_get_selected_frame): New function.
717 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
718 * findvar.c (read_var_value): Call it.
719
55ff77ac
CV
7202003-09-08 Corinna Vinschen <vinschen@redhat.com>
721
722 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
723 (sh64-tdep.o): Add dependencies.
724 * configure.tgt: Add FIXME to sh-*-linux*.
725 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
726 (sh_gdbarch_init): Always set correct sh_show_regs function
727 pointer. Call sh64_gdbarch_init() if machine type is sh5.
728 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
729 * sh64-tdep.c: New file, containing all sh64 related code from
730 sh-tdep.c.
731 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
732 * config/sh/linux.mt (TDEPFILES): Ditto.
733 * config/sh/nbsd.mt (TDEPFILES): Ditto.
734 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
735 * config/sh/wince.mt (TDEPFILES): Ditto.
736
bfb39158
DJ
7372003-09-07 Daniel Jacobowitz <drow@mvista.com>
738
739 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
740 (stop_wait_callback): Handle !lp->signalled also.
741 (lin_lwp_has_pending, flush_callback): New functions.
742 (lin_lwp_wait): Call flush_callback.
743 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
744 (linux_proc_pending_signals): New function.
745 * linux-nat.h (linux_proc_pending_signals): Add prototype.
746
9407de8e
DJ
7472003-09-07 Daniel Jacobowitz <drow@mvista.com>
748
749 From Nick Kelsey <nickk@ubicom.com>:
750 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
751 when the stop PC is at the beginning of a function also.
752
2ef47cd0
DJ
7532003-09-06 Daniel Jacobowitz <drow@mvista.com>
754
755 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
756 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
757
6f4492c8
MK
7582003-09-06 Mark Kettenis <kettenis@gnu.org>
759
760 * sol-thread.c: Include "gdb_string.h".
761
d3420b2f
MK
7622003-09-03 Mark Kettenis <m.kettenis@osp.nl>
763
764 * gcore.c: Reorder include files in alphabetical order. Include
765 "gdb_assert.h". Various coding style fixes.
766 (derive_stack_segment, derive_heap_segment): Replace check for
767 non-null BOTTOM and TOP with gdb_assert.
768 (derive_heap_segment): Replace check for successful creation of
769 ZERO with gdb_assert.
770 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
771
5220ea4c
AC
7722003-09-04 Andrew Cagney <cagney@redhat.com>
773
774 * thread-db.c (verbose_dlsym): New function.
775 (thread_db_load): Use verbose_dlsym
776 (thread_db_new_objfile): Print that libthread_db was loaded, and
777 that thread debugging was enabled.
778
6e8c2c06
AC
7792003-09-04 Andrew Cagney <cagney@redhat.com>
780
781 * configure.tgt: Add "mips64*-*-*" target. Delete
782 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
783 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
784 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
785 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
786 mips*-sony-*, and mips64*-*-elf* targets.
787 * config/mips/embedl.mt: Delete file.
788 * config/mips/embedl64.mt: Delete file.
789 * config/mips/mips.mt: Delete file.
790 * config/mips/mips64.mt: Delete file.
791 * config/mips/tm-embed.h: Delete file.
792 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
793 * config/mips/embed64.mt: Delete out-of-date comment.
794
3a3bc038
AC
7952003-09-04 Andrew Cagney <cagney@redhat.com>
796
797 * hppa-tdep.c (hppa_gdbarch_init): Set
798 "have_nonsteppable_watchpoint".
799 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
800 * mips-tdep.c (mips_dump_tdep): Do not print
801 HAVE_NONSTEPPABLE_WATCHPOINT.
802 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
803 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
804 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
805 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
806
a957e642
CV
8072003-09-04 Corinna Vinschen <vinschen@redhat.com>
808
809 * breakpoint.c (watchpoint_check): Remove accidentally checked in
810 unused code. Add comment.
811
a6fbcf2f
CV
8122003-09-04 Corinna Vinschen <vinschen@redhat.com>
813
814 * breakpoint.c (watchpoint_check): Check for pc being in an
815 epilogue if watchpoint frame couldn't be found.
816
c14a44d5
AC
8172003-09-04 Andrew Cagney <cagney@redhat.com>
818
819 * Makefile.in: Re-generate all dependencies.
820
f6c40618
AC
8212003-09-03 Andrew Cagney <cagney@redhat.com>
822
823 * arch-utils.h (legacy_print_insn): Delete declaration.
824 * arch-utils.c (legacy_print_insn): Delete function.
825 * disasm.c (deprecated_tm_print_insn_info): Delete.
826 (_initialize_disasm): Delete function, contained code initializing
827 deprecated_tm_print_insn_info.
828 * gdbarch.sh (deprecated_tm_print_insn): Delete.
829 (deprecated_tm_print_insn_info): Delete.
830 (TARGET_PRINT_INSN): Do not provide a default.
831 * gdbarch.h, gdbarch.c: Re-generate.
832
242e8be5
AC
8332003-09-03 Andrew Cagney <cagney@redhat.com>
834
835 * disasm.c (fprintf_disasm): New function.
836 (gdb_disassemble_info): Call "init_disassemble_info", instead of
837 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
838 reverts 2003-08-14 change.
839 (_initialize_disasm): Call "init_disassemble_info", instead of
840 INIT_DISASSEMBLE_INFO_NO_ARCH.
841
3ffc3dda
MS
8422003-09-03 Michael Snyder <msnyder@redhat.com>
843
844 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
845
52d16ba8
AC
8462003-09-03 Andrew Cagney <cagney@redhat.com>
847
848 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
849 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
850 * symfile.c (syms_from_objfile): Update.
851 (reread_symbols): `Update
852 * exec.c (exec_file_attach): Update.
853 (exec_file_attach): Update.
854 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
855 2003-08-29 change.
856 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
857
eb5492fa
DJ
8582003-09-03 Daniel Jacobowitz <drow@mvista.com>
859
860 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
861 trad-frame.h.
862 (arm_get_cache): Delete macro.
863 (struct arm_prologue_cache): Update comments. Make saved_regs into
864 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
865 to prev_sp.
866 (thumb_scan_prologue): Update for cache changes. Don't call
867 DEPRECATED_PC_IN_CALL_DUMMY.
868 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
869 argument and use it in desperation search for our prologue. Do not
870 search past the specified PC.
871 (arm_make_prologue_cache): Simplify.
872
873 (arm_prologue_this_id, arm_prologue_prev_register)
874 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
875 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
876 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
877 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
878 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
879
880 (arm_frame_chain_valid, arm_find_callers_reg)
881 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
882 (arm_pop_frame): Delete obsolete methods.
883 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
884
885 (arm_gdbarch_init): Update for new frame methods. Register prologue
886 and sigtramp unwinders. Set the default frame base method.
887
888 * Makefile.in (arm-tdep.o): Update dependencies.
889 * varobj.c (find_frame_addr_in_frame_chain): Call
890 get_frame_base_address.
891 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
892
24de872b
DJ
8932003-09-03 Daniel Jacobowitz <drow@mvista.com>
894
895 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
896 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
897 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
898 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
899 Take NEXT_FRAME and CACHE arguments. Call
900 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
901 Set unwound_pc in CACHE instead of modifying the frame argument.
902 Don't bother checking the frame type when looking for sigtramp
903 frames.
904 (arm_make_prologue_cache, arm_frame_chain)
905 (arm_init_extra_frame_info): New functions.
906
9b8d791a
DJ
9072003-09-03 Daniel Jacobowitz <drow@mvista.com>
908
909 * arm-tdep.c (arm_get_cache): Define.
910 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
911 unwound_sp, unwound_pc, and saved_regs.
912 (thumb_scan_prologue): Take a cache instead of the frame.
913 (arm_scan_prologue): Likewise.
914 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
915 instead of a temporary frame.
916 (arm_init_extra_frame_info): Allocate and use a cache.
917 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
918
7ee3275f
AC
9192003-09-03 Andrew Cagney <cagney@redhat.com>
920
921 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
922 * config/mips/wince.mt (TM_CLIBS): Ditto.
923 * config/sh/wince.mt (TM_CLIBS): Ditto.
924 * config/pa/hppa64.mt (TM_CLIBS): Delete.
925 * config/sparc/sp64.mt (CC): Delete.
926
57b29be7
AC
9272003-09-03 Andrew Cagney <cagney@redhat.com>
928
929 * defs.h: Do not include "arch-utils.h".
930 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
931 GDB_MULTI_ARCH_PURE.
932 * configure.in (GDB_MULTI_ARCH): Do not define.
933 * configure, config.in: Regenerate.
934 * configure.tgt: Do not set variable "gdb_multi_arch".
935 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
936 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
937 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
938 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
939 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
940 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
941 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
942 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
943 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
944 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
945 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
946 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
947 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
948 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
949 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
950 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
951 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
952 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
953
12e035e2
MC
9542003-08-30 Michael Chastain <mec@shout.net>
955
956 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
957 * config/m68k/nm-hp300hpux.h: Delete.
958 * config/m68k/tm-hp300hpux.h: Delete.
959 * config/m68k/xm-hp300hpux.h: Delete.
960 * config/m68k/xm-hp300bsd.h: Delete.
961 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
962 tm-hp300hpux.h, xm-hp300hpux.h.
963 * somsolib.c: Remove comment about hp300 shared libraries.
964
bda34dc2
MK
9652003-08-31 Mark Kettenis <kettenis@gnu.org>
966
5bca7895
MK
967 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
968 Only define PTRACE_GET_THREAD_AREA is not already defined.
969 Various style fixes in code and comments and some additional
970 spelling fixes in comments. Move after functions dealing with
971 debug registers.
972 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
973 Fix coding-style.
974
bda34dc2
MK
975 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
976 frame_unwind_register_unsigned instead of
977 frame_unwind_unsigned_register.
978
c890192f
MK
9792003-08-30 Mark Kettenis <kettenis@gnu.org>
980
981 * configure.in: Search for gethostbyname in libnsl.
982 * configure: Regenerated.
983
60fac5b8
MK
9842003-08-29 Mark Kettenis <kettenis@gnu.org>
985
e294916c
MK
986 * configure.in: Remove redundant AC_MSG_RESULT in check for
987 uintptr_t in stdint.h.
988 * configure: Regenerated.
989
c40d267a
MK
990 * amd64-nat.h (struct regcache): Add opaque declaration.
991
60fac5b8
MK
992 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
993 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
994 Change "register array" to "register cache" in comments.
995 (x86_64_linux_gregset64_reg_offset): New variable.
996 (GETREGS_SUPPLIES): Remove macro.
997 (supply_gregset): Call amd64_supply_native_gregset instead of
998 x86_64_linux_supply_gregset.
999 (fill_gregset): Rename `regno' to `regnum'. Call
1000 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1001 (store_regs): Rename `regno' to `regnum'.
1002 (store_fpregs): Rename `regno' to `regnum'.
1003 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1004 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1005 Reorganize function a bit.
1006 (store_inferior_registers): Rename `regno' to `regnum'. Use
1007 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1008 Reorganize function a bit.
1009 (_initialize_x86_64_linux_nat): New function.
1010 * config/i386/x86-64linux.mh.
1011
546143b6
AC
10122003-08-29 Andrew Cagney <cagney@redhat.com>
1013
1014 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1015 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1016 (target_remove_watchpoint): Delete macro.
1017 (target_insert_watchpoint): Delete macro.
1018 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1019 (remote_mips_stopped_by_watchpoint): Delete declaration.
1020 (remote_mips_remove_watchpoint): Delete declaration.
1021 (remote_mips_set_watchpoint): Delete declaration.
1022 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1023 * remote-mips.c (_initialize_remote_mips): Set
1024 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1025 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1026 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1027 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1028 (mips_stopped_by_watchpoint): Rename
1029 remote_mips_stopped_by_watchpoint.
1030 (mips_can_hardware_watchpoint): Rename
1031 remote_mips_can_use_hardware_watchpoint, update function
1032 signature.
1033
7bace51b
MK
10342003-08-29 Mark Kettenis <kettenis@gnu.org>
1035
b0f5c6f2
MK
1036 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1037 USER_DS. We haven't given them a register number yet.
1038
2a6d284d
MK
1039 * amd64-nat.h: New file.
1040 * amd64-nat.c: New file.
1041 * amd64fbsd-nat.c: Include "amd64-nat.h".
1042 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1043 (amd64fbsd32_r_reg_offset): New variable.
1044 (supply_gregset): Simply call amd64_supply_native_gregset.
1045 (fill_gregset): Rename `regno' to `regnum'. Simply call
1046 amd64_collect_native_gregset.
1047 (fill_fpregset): Rename `regno' to `regnum'.
1048 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1049 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1050 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1051 `fpregset_t'. Call amd64_supply_native_gregset instead of
1052 supply_gregset. Call x86_64_supply_fxsave instead of
1053 supply_fpregset.
1054 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1055 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1056 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1057 `fpregset_t'. Call amd64_collect_native_gregset instead of
1058 fill_gregset. Call x86_64_collect_fxsave instead of
1059 fill_fpregset.
1060 (_initialize_am64fbsd_nat): Initialize
1061 amd64_native_gregset32_reg_offset and
1062 amd64_native_gregset64_reg_offset.
1063 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1064
a16d75cc
MK
1065 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1066 null pointer. Fix typo in comment.
1067
7bace51b
MK
1068 * regcache.c (supply_register): Reimplement to call
1069 regcache_raw_supply.
1070 (regcache_collect): Reimplement by calling regcache_raw_collect.
1071
9a661b68
MK
10722003-08-28 Mark Kettenis <kettenis@gnu.org>
1073
1074 * regcache.c (register_buffer): Consitify first argument.
1075 (regcache_raw_supply, regcache_raw_collect): New
1076 functions.
1077
e94cc8fa
DJ
10782003-08-28 Daniel Jacobowitz <drow@mvista.com>
1079
1080 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1081 by Nathan J. Williams.
1082
c64bd0ce
DJ
10832003-08-28 Daniel Jacobowitz <drow@mvista.com>
1084
1085 * lin-lwp.c (wait_lwp): New function, copied from
1086 stop_wait_callback. Clean up.
1087 (stop_wait_callback): Use wait_lwp.
1088
e5ab0dce
AC
10892003-08-28 Andrew Cagney <cagney@redhat.com>
1090
1091 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1092 flavour and disassembler options.
1093 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1094 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1095 deprecated_tm_print_insn_info.
1096
a788de9b
AC
10972003-08-27 Andrew Cagney <cagney@redhat.com>
1098
1099 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1100 Use target_read_memory.
1101 (s390_get_frame_info): Update. Do not reference
1102 deprecated_tm_print_insn_info.
1103 (s390_check_function_end, s390_is_sigreturn): Ditto.
1104
36482093
AC
11052003-08-27 Andrew Cagney <cagney@redhat.com>
1106
1107 * Makefile.in (cris-tdep.o): Update dependencies.
1108 * cris-tdep.c: Include "gdb_assert.h".
1109 (cris_gdbarch_init): Set print_insn.
1110 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1111 (cris_delayed_get_disassembler): Simplify, directly call the
1112 disassembler returned by cris_get_disassembler.
1113 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1114 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1115 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1116 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1117 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1118 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1119 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1120 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1121 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1122 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1123 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1124 (gdb_print_insn_sparc): Delete function.
1125 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1126 deprecated_tm_print_insn_info.
1127 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1128 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1129 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1131 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1132 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1133 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1134 (s390_gdbarch_init): Set print_insn.
1135
0285512f
AC
11362003-08-27 Andrew Cagney <cagney@redhat.com>
1137
1138 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1139 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1140 * infcall.c (call_function_by_hand): Convert the entry point
1141 address into a code address.
1142
cdcd5552
AC
11432003-08-27 Andrew Cagney <cagney@redhat.com>
1144
1145 * dsrec.c: Include "gdb_string.h".
1146 * Makefile.in (dsrec.o): Update dependencies.
1147
e85cddad
MC
11482003-08-27 Michael Chastain <mec@shout.net>
1149
1150 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1151
8bbfbb23
AC
11522003-08-27 Andrew Cagney <cagney@redhat.com>
1153
1154 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1155 (alpha_osf1_init_abi): Do not set call_dummy_address.
1156
ba058b66
DC
11572003-08-27 David Carlton <carlton@kealia.com>
1158
1159 From Randolph Chung <tausq@debian.org>:
1160 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1161 compiles with -Wformat-nonliteral -Werror.
1162
87f84c9d
JB
11632003-08-26 Jim Blandy <jimb@redhat.com>
1164
1165 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1166 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1167 bfd_lookup_symbol, since we only want symbols in code sections.
1168 (look_for_base): Pass zero as the SECT_FLAGS argument to
1169 bfd_lookup_symbol, since we're not concerned about which section
1170 the symbol is in.
1171
102d615a
JJ
11722003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1173
1174 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1175 we are frameless or the return address register is already known.
1176
cc7ad3ea
AC
11772003-08-26 Andrew Cagney <cagney@redhat.com>
1178
1179 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1180 in size. Add comments.
1181
af8b88dd
JJ
11822003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1183
1184 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1185 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1186
e0a4f5a1
JM
11872003-08-26 Jason Merrill <jason@redhat.com>
1188
1189 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1190 case out of #ifdef MIPS block.
1191
4ae9ee8e
DJ
11922003-08-25 Daniel Jacobowitz <drow@mvista.com>
1193
1194 PR java/1322
1195 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1196 available before calling SECT_OFF_TEXT.
3c164570 1197 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1198
004d836a
JJ
11992003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1200
1201 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1202 bof, and nat0-nat127 as pseudo-registers.
1203 (ia64_frame_cache): New struct used to cache frame info.
1204 (ia64_register_reggroup_p): New routine used to override default
1205 register grouping so registers without names are still saved and
1206 restored.
1207 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1208 pseudo values.
1209 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1210 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1211 (ia64_alloc_frame_cache): New routine to create a new
1212 ia64_frame_cache.
1213 (examine_prologue): Change prototype to add next_frame pointer.
1214 Assume frameless until otherwise proven. Verify that the cfm for
1215 current frame matches the cfm that should occur for the prologues
1216 alloc insn and if equal, mark as not frameless. At end of routine,
1217 if not frameless, calculate registers for the previous frame and store
1218 in the cache, if a cache is provided.
1219 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1220 and pass 0 for next_frame.
1221 (ia64_store_return_value): Change to use convert_typed_floating()
1222 instead of calling ia64_convert_to_raw().
1223 (ia64_extract_return_value): Change to use convert_typed_floating()
1224 instead of calling ia64_convert_to_virtual().
1225 (ia64_frame_cache): New routine to support new frame model.
1226 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1227 (ia64_frame_sniffer): Ditto.
1228 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1229 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1230 (ia64_sigtramp_frame_prev_register): Ditto.
1231 (ia64_sigtramp_frame_sniffer): Ditto.
1232 (ia64_frame_base_address): Ditto.
1233 (ia64_extract_struct_value_address): Change to issue error message.
1234 (ia64_frame_align): New routine to align sp.
1235 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1236 (ia64_push_arguments): Removed. Logic moved to
1237 ia64_push_dummy_call().
1238 (ia64_push_return_address): Ditto.
1239 (ia64_unwind_dummy_id): New function.
1240 (ia64_unwind_pc): Ditto.
1241 (ia64_convert_register_p): Ditto.
1242 (ia64_register_to_value): Ditto.
1243 (ia64_value_to_register): Ditto.
1244 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1245 (ia64_register_byte, ia64_register_raw_size): Ditto.
1246 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1247 (ia64_saved_pc_after_call): Ditto.
1248 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1249 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1250 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1251 (ia64_register_convert_to_raw): Ditto.
1252 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1253 (ia64_init_extra_frame_info): Ditto.
1254 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1255 (ia64_gdbarch_init): Remove registering of deprecated functions that
1256 are no longer used. Add registration of new gdbarch functions.
1257 Remove registering deprecated_write_sp. Replace
1258 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1259 Delete set_gdbarch_deprecated_register_convertible(),
1260 set_gdbarch_deprecated_register_convert_to_virtual(), and
1261 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1262 set_gdbarch_deprecated_register_size(),
1263 set_gdbarch_deprecated_register_bytes(),
1264 set_gdbarch_pcregnum(),
1265 set_gdbarch_deprecated_register_byte(),
1266 set_gdbarch_deprecated_register_raw_size(),
1267 set_gdbarch_deprecated_max_register_raw_size(),
1268 set_gdbarch_deprecated_register_virtual_size(),
1269 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1270 Replace set_gdbarch_deprecated_extract_return_value() with
1271 set_gdbarch_extract_return_value(). Remove calls to:
1272 set_gdbarch_deprecated_saved_pc_after_call();
1273 set_gdbarch_deprecated_frame_chain(),
1274 set_gdbarch_deprecated_frame_saved_pc(),
1275 set_gdbarch_deprecated_frame_init_saved_regs(),
1276 set_gdbarch_deprecated_get_saved_register(),
1277 set_gdbarch_deprecated_call_dummy_words(),
1278 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1279 set_gdbarch_deprecated_init_extra_frame_info(),
1280 set_gdbarch_deprecated_frame_args_address(),
1281 set_gdbarch_deprecated_frame_locals_address(),
1282 and set_gdbarch_deprecated_dummy_write_sp().
1283 Add set_gdbarch_convert_register_p(),
1284 set_gdbarch_register_to_value(),
1285 set_gdbarch_value_to_register(),
1286 set_gdbarch_push_dummy_call(),
1287 set_gdbarch_frame_align(),
1288 set_gdbarch_unwind_dummy_id(),
1289 set_gdbarch_unwind_pc(),
1290 frame_unwind_append_sniffer(),
1291 frame_unwind_append_sniffer(),
1292 and frame_base_set_default().
1293
aede7613
CD
12942003-08-25 Chris Demetriou <cgd@broadcom.com>
1295
1296 * configure.tgt: Document need for special "mipsisa64" handling.
1297 (mipsisa64*-*-linux64): Handle as target linux64.
1298 (mipsisa64*-*-*): Handle as target embed64.
1299
43c3a82e
MC
13002003-08-18 Michael Chastain <mec@shout.net>
1301
1302 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1303 objfile bug.
1304
6564f77d
MK
13052003-08-24 Mark Kettenis <kettenis@gnu.org>
1306
2de139ba
MK
1307 * i387-tdep.h: Update copyright date.
1308 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1309
6564f77d
MK
1310 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1311 CFLAGS games to reflect reality.
1312
42cf1509
AC
13132003-08-24 Andrew Cagney <cagney@redhat.com>
1314
1315 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1316 GDB_MULTI_ARCH is always non-zero.
1317 * osabi.c (_initialize_gdb_osabi): Ditto.
1318 (gdbarch_init_osabi): Ditto.
1319 * sparc-tdep.c: Ditto for #if code.
1320
0485f6ad
MK
13212003-08-23 Mark Kettenis <kettenis@gnu.org>
1322
1323 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1324 Update comments.
1325 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1326 comments.
1327 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1328 x86_64_supply_fxsave.
1329 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1330 x86_64_supply_fxsave.
1331 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1332 x86_64_supply_fxsave.
1333
c7716133
AJ
13342003-08-23 Andreas Jaeger <aj@suse.de>
1335
1336 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1337 i387_supply_fxsave.
1338
ed504bdf
MK
13392003-08-23 Mark Kettenis <kettenis@gnu.org>
1340
1341 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1342 i387_supply_register.
1343 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1344 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1345 i387_supply_fsave.
1346 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1347 i387_supply_fxsave.
1348 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1349 i387_supply_fsave.
1350 * i386bsd-nat.c (supply_fpregset): Adjust call to
1351 i387_supply_fsave.
1352 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1353 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1354 supply_fpregset.
1355 (store_inferior_registers): Remove extraneous whitespace. Call
1356 i387_fill_fsave instead of fill_fpregset.
1357 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1358 (supply_fpregset): Likewise.
1359 * i386v4-nat.c (supply_fpregset): Adjust call to
1360 i387_supply_fsave.
1361 * i386-interix-nat.c (supply_fpregset): Adjust call to
1362 i387_supply_fsave.
1363 * i386-linux-nat.c (supply_fpregset): Adjust call to
1364 i387_supply_fsave.
1365 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1366 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1367 i387supply_fsave and i387_supply_fxsave.
1368 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1369 Incorporate code from `i387_supply_register.
1370 (i387_supply_register): Remove.
1371 (i387_supply_fxsave): Add `regnum' argument.
1372 Update comments.
1373 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1374 prototype.
1375 (i387_supply_register): remove prototype.
1376 Update comments.
1377
4be5d520
MC
13782003-08-22 Michael Chastain <mec@shout.net>
1379
1380 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1381 Add lines for files in gdb/testsuite/gdb.cp/* that are
1382 still not 8.3 unique.
1383
7ed85d26
DJ
13842003-08-22 Daniel Jacobowitz <drow@mvista.com>
1385
1386 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1387 TYPE_VPTR_FIELDNO is valid.
1388
eb0d3137
MK
13892003-08-19 Mark Kettenis <kettenis@gnu.org>
1390
1391 * utils.c (set_width_command): Remove prototypes.
1392 (set_screen_size): New prototype.
1393 (init_page_info): Simplify by fetching the screen size from
1394 Readline. Call set_screen_size.
1395 (set_screen_size): New function.
1396 (set_width): Add missing whitespace in comment.
1397 (set_width_command): Call set_screen_size.
1398 (set_height_command): New function.
1399 (initialize_utils): Fix formatting. Make "set height" command
1400 call set_height_command. Remove redundant code that turns off
1401 pagination if output isn't a terminal. Remove redundant call to
1402 set_width_command.
1403
7e6d0ac8
MK
14042003-08-22 Mark Kettenis <kettenis@gnu.org>
1405
3567a8ea
MK
1406 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1407 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1408 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1409 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1410 `case' keyword.
1411 (sparc64_register_info): Give the reister with number
1412 SPARC64_STATE_REGNUM a name.
1413 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1414 %asi and %ccr.
1415 (sparc64_push_dummy_call): Take BIAS into account when checking
1416 stcak alignment.
1417 (sparc_software_single_step): Remove assertions that check whether
1418 NPC and NNPC were zero.
1419 (sparc_supply_rwindow): Make public. Merge functionality with
1420 sparc64_supply_rwindow.
1421 (sparc_fill_rwindow): Make public. Merge functionality with
1422 sparc64_fill_rwindow.
1423 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1424 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1425 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1426 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1427 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1428
7e6d0ac8
MK
1429 * reggroups.c: Add whitespace after declarations of local
1430 variables in functions.
1431
72e5f484
MC
14322003-08-21 Michael Chastain <mec@shout.net>
1433
1434 * gdbtypes.h: Change array bound type from an int to enum.
1435
435ac228
AC
14362003-08-21 Andrew Cagney <cagney@redhat.com>
1437
1438 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1439 * config/sparc/tm-sparc.h: Ditto.
1440 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1441 unconditionally.
1442 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1443
0d0e1a63
MK
14442003-07-13 Mark Kettenis <kettenis@gnu.org>
1445
1446 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1447 (register_objfile_data, set_objfile_data, objfile_data): New
1448 prototypes.
1449 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1450 prototypes.
1451 (allocate_objfile): Call objfile_alloc_data.
1452 (free_objfile): Call objfile_free_data.
1453 (struct objfile_data): New.
1454 (struct objfile_data_registration): New.
1455 (struct objfile_data_registry): New.
1456 (objfile_data_registry): New variable.
1457 (register_objfile_data): New function.
1458 (objfile_alloc_data, objfile_free_data): New functions.
1459 (set_objfile_data, objfile_data): New functions.
1460 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1461 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1462 (_initialize_dwarf2_frame): New function and prototype.
1463
d90cf509
AC
14642003-08-21 Andrew Cagney <cagney@redhat.com>
1465
1466 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1467 a specific architecture.
1468 * arch-utils.h (set_architecture_from_arch_mach): Delete
1469 declaration.
1470 (target_architecture_hook): Delete declaration.
1471 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1472 (default_float_format): Assume GDB_MULTI_ARCH.
1473 (default_double_format): Assume GDB_MULTI_ARCH.
1474 (set_endian_from_file): Delete function.
1475 (arch_ok): Delete function.
1476 (set_arch): Delete function.
1477 (set_architecture_from_arch_mach): Delete function.
1478 (set_architecture_from_file): Delete function.
1479 (set_architecture): Assume GDB_MULTI_ARCH.
1480 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1481
8b39fe56
MK
14822003-08-21 Mark Kettenis <kettenis@gnu.org>
1483
1484 Rewrite FreeBSD/sparc64 native configuration.
1485 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1486 * sparc64fbsd-nat.c: New file.
1487 * sparc64fbsd-tdep.c: New file.
1488 * sparc64-tdep.c sparc64-tdep.h: New files.
1489 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1490 sparc64fbsd-tdep.o): New dependencies.
1491 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1492 and sparc64fbsd-tdep.c.
1493 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1494 * config/sparc/fbsd.mh: Remove copyright notice.
1495 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1496 sparcbsd-nat.o.
1497 * config/sparc/fbsd.mt: Remove copyright notice.
1498 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1499 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1500 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1501 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1502 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1503 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1504 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1505 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1506 "sparc/tm-sp64.h".
1507 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1508 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1509
a7f19c79
MC
15102003-08-21 Michael Chastain <mec@shout.net>
1511
1512 * symtab.h: Add doco on the space critical structures and
1513 some measurements of space usage.
1514
da08ea5b
MS
15152003-08-21 Michael Snyder <msnyder@redhat.com>
1516
1517 * tracepoint.c (trace_dump_command): Trace break address
1518 is subject to DECR_PC_AFTER_BREAK.
1519 (set_traceframe_context): Make "trace_line" an int.
1520 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1521
6df2bf50
MS
15222003-08-20 Michael Snyder <msnyder@redhat.com>
1523
1524 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1525 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1526 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1527 argument passing.
1528 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1529 functions, replace sh_push_dummy_call.
1530 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1531
0955bbf0
MC
15322003-08-20 Michael Chastain <mec@shout.net>
1533
1534 * gdbtypes.h (struct main_type): Rearrange to save space.
1535
260a4188
MS
15362003-08-20 Michael Snyder <msnyder@redhat.com>
1537
1538 * trad-frame.c: Comment typo fix.
1539
8baa6f92
KB
15402003-08-20 Michael Snyder <msnyder@redhat.com>
1541 Kevin Buettner <kevinb@redhat.com>
1542
1543 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1544 (frv_frame_init_saved_regs): Add declaration.
1545 (frame_extra_info): Add new field ``saved_regs''.
1546 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1547 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1548 Update frame related code.
1549 (frv_extract_struct_value_address): Adjust formatting.
1550 * Makefile.in (frv-tdep.o): Update dependencies.
1551 * config/frv/tm-frv.h (target_insert_watchpoint)
1552 (target_remove_watchpoint, target_insert_hw_breakpoint)
1553 (target_remove_hw_breakpoint): Delete these macros.
1554 (remote_insert_watchpoint, remote_remove_watchpoint)
1555 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1556 these declarations.
1557
87193939
MC
15582003-08-20 Michael Chastain <mec@shout.net>
1559
1560 * defs.h (ENUM_BITFIELD): New macro.
1561 * symtab.h (ENUM_BITFIELD): Use it.
1562 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1563
062103ba
SA
15642003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1565
1566 * MAINTAINERS (write after approval): Add myself.
1567
8b148df9
AC
15682003-08-18 Andrew Cagney <cagney@redhat.com>
1569
1570 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1571 * gdbarch.h, gdbarch.c: Re-generate.
1572 * infcall.c (call_function_by_hand): Adjust the SP by
1573 frame_red_zone_size before allocating any stack space.
1574 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1575 * x86-64-tdep.c (x86_64_frame_align): New function.
1576 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1577
1578 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1579 Remove code adjusting SP so that it skips over the Red Zone.
1580
954a4db8
MK
15812003-08-18 Mark Kettenis <kettenis@gnu.org>
1582
1583 * NEWS (New native configurations): Mention FreeBSD/amd64.
1584
1a241548
AC
15852003-08-18 Andrew Cagney <cagney@redhat.com>
1586
1587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1588 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1589 "m68k_frame_p".
1590 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1591
f82b2acd
MK
15922003-08-18 Mark Kettenis <kettenis@gnu.org>
1593
1594 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1595
4056d258
ML
15962003-08-18 Michal Ludvig <mludvig@suse.cz>
1597
1598 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1599 Define.
1600 * i386-linux-nat.c: Include "linux-nat.h".
1601 (child_post_startup_inferior): New function.
1602
99ab4326
MK
16032003-08-18 Mark Kettenis <kettenis@gnu.org>
1604
1605 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1606 at the start of a frameless function. This probably fixes PR
1607 backtrace/1338.
1608
c8d5f0d6
MC
16092003-08-17 Michael Chastain <mec@shout.net>
1610
1611 * symfile.c (find_sym_fns): Remove special case for apollo target.
1612
9016a515
DJ
16132003-08-17 Daniel Jacobowitz <drow@mvista.com>
1614
1615 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1616 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1617 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1618 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1619 (linux_supports_tracevforkdone): New function.
1620 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1621 TRACEVFORKDONE.
1622 (child_follow_fork): Handle vfork.
1623 (linux_handle_extended_wait): Likewise. Also handle exec.
1624 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1625 * NEWS: Mention fork tracing.
1626
c538c11c
DJ
16272003-08-17 Daniel Jacobowitz <drow@mvista.com>
1628
1629 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1630
4de4c07c
DJ
16312003-08-17 Daniel Jacobowitz <drow@mvista.com>
1632
1633 * Makefile.in (i386-linux-nat.o): Update dependencies.
1634 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1635 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1636 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1637 * i386-linux-nat.c: Include "linux-nat.h".
1638 (child_post_startup_inferior): New function.
1639 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1640 * infptrace.c (kill_inferior): Wrap in #ifdef.
1641 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1642 attaching to each LWP.
1643 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1644 (init_lin_lwp_ops): Fill in some more operations.
1645 * linux-nat.h (linux_enable_event_reporting)
1646 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1647 prototypes.
1648 * linux-nat.c (linux_enable_event_reporting): New function.
1649 (child_post_attach, linux_child_post_startup_inferior)
1650 (child_post_startup_inferior, child_follow_fork)
1651 (linux_handle_extended_wait, kill_inferior): New functions.
1652
7996bcec
AC
16532003-08-16 Andrew Cagney <cagney@redhat.com>
1654
1655 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1656 * gdbarch.h, gdbarch.c: Re-generate.
1657
3d48a7a0
MK
16582003-08-16 Mark Kettenis <kettenis@gnu.org>
1659
1660 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1661
7989c619
AC
16622003-08-16 Andrew Cagney <cagney@redhat.com>
1663
1664 * NEWS: Mention that "set prompt-escape-char" was deleted.
1665 * top.c (get_prompt_1): Delete function.
1666 (gdb_prompt_escape):
1667 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1668 prompt-escape-char" command.
1669 (MAX_PROMPT_SIZE): Delete macro.
1670 (get_prompt): Simplify, do not call get_prompt_1.
1671
07978cd8
AC
16722003-08-16 Andrew Cagney <cagney@redhat.com>
1673
1674 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1675 -Werror. -Wformat-nonliteral problems.
1676
3ff7cf9e
JB
16772003-08-15 J. Brobecker <brobecker@gnat.com>
1678
1679 Further multiarching work mostly for hppa64-*-hpux11:
1680 * hppa-tdep.h: New file.
1681 * hppa-tdep.c: #include hppa-tdep.c.
1682 (hppa32_num_regs): Renamed from hppa_num_regs.
1683 (hppa64_num_regs): New constant.
1684 (hppa64_call_dummy_breakpoint_offset): New constant.
1685 (hppa32_call_dummy_length): New constant.
1686 (hppa64_call_dummy_length): New constant.
1687 (hppa32_stack_align): Make name 32bit explicit.
1688 (hppa32_register_virtual_type): Likewise.
1689 (hppa32_extract_return_value): Likewise.
1690 (hppa32_use_struct_convention): Likewise.
1691 (hppa32_store_return_value): Likewise.
1692 (hppa64_register_virtual_type): New function.
1693 (hppa64_extract_return_value): New function.
1694 (hppa64_use_struct_convention): New function.
1695 (hppa64_store_return_value): New function.
1696 (hppa_frame_locals_address): Remove declaration, function does
1697 not exist anymore.
1698 (hppa_register_byte): Add support for PA64 ABI.
1699 (hppa_gdbarch_init): Add support for PA64 ABI.
1700 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1701 Make name 32bit explicit.
1702 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1703 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1704 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1705 (hppa64_hpux_frame_base_before_sigtramp): New function.
1706 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1707 * config/pa/tm-hppa64.h: Remove macros that are no longer
1708 necessary now that the gdbarch vector is properly setup.
1709 Transform some macros into function calls. Some minor cleanup.
1710 * config/pa/tm-hppah.h: Update function calls in macros
1711 following the function renaming in hppa-hpux-tdep.c.
1712 * Makefile.in (hppa_tdep_h): New variable.
1713 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1714
5d05ca6d
MS
17152003-08-14 Michael Snyder <msnyder@redhat.com>
1716
1717 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1718
37ba2569
JB
17192003-08-13 J. Brobecker <brobecker@gnat.com>
1720
1721 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1722 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1723 routine.
1724
aed7f26a
MS
17252003-08-13 Michael Snyder <msnyder@redhat.com>
1726
1727 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1728 (frv_saved_pc_after_call): Use deprecated ftype.
1729 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1730 (frv_remote_translate_xfer_address): Remove.
1731 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1732
752d4ac1
JB
17332003-08-13 J. Brobecker <brobecker@gnat.com>
1734
1735 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1736 initialization after the common gdbarch initialization, not before.
1737
1426ac1d
JB
17382003-08-13 J. Brobecker <brobecker@gnat.com>
1739
1740 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1741 (ADDR_BITS_REMOVE): Remove, redundant.
1742
b6fbdd1d
JB
17432003-08-13 J. Brobecker <brobecker@gnat.com>
1744
1745 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1746 gdbarch method to clear the 2 low bits of text addresses.
1747
44160db3
AC
17482003-08-12 Andrew Cagney <cagney@redhat.com>
1749
1750 * Makefile.in (dsrec.o): Update dependencies.
1751 * dsrec.c: Include "gdb_assert.h".
1752 (make_srec): Use snprintf instead of sprintf, use a literal format
1753 string.
1754
bcf7d3ca
AC
17552003-08-12 Andrew Cagney <cagney@redhat.com>
1756
1757 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1758 FRAME_OBSTACK_ZALLOC.
1759
49ed40de
KB
17602003-08-12 Kevin Buettner <kevinb@redhat.com>
1761
1762 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1763 SSE registers.
1764
b246147c
MK
17652003-08-10 Mark Kettenis <kettenis@gnu.org>
1766
1767 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1768 amd64fbsd_sc_reg_offset): Add extern declarations.
1769 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1770 declarations.
1771
d95fdc0d
BE
17722003-08-11 Ben Elliston <bje@wasabisystems.com>
1773
1774 * MAINTAINERS (write after approval): Update my mail address.
1775
cf6a0e73
AC
17762003-08-10 Andrew Cagney <cagney@redhat.com>
1777
1778 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1779
f837910f
MK
17802003-08-10 Mark Kettenis <kettenis@gnu.org>
1781
e2dbbd2d
MK
1782 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1783 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1784 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1785 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1786 i386bsd_sc_reg_offset): Add extern declarations.
1787 * i386obsd-nat.c: Include "i386-tdep.h"
1788 (_initialize_i386obsd_nat): Remove extern declarations.
1789 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1790 declarations.
1791 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1792 declarations.
1793
f837910f
MK
1794 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1795 instead of frame_read_register.
1796 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1797 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1798 SP_REGNUM.
1799 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1800 instead of frame_unwind_unsigned_register. Use
1801 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1802 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1803 instead of read_register. Use builtin_type_void_data_ptr instead
1804 of builtin_type_void_func_ptr when extracting the address of the
1805 jmp_buf.
1806 (i386_extract_return_value, i386_store_return_value,
1807 i386_pseudo_register_read, i386_pseudo_register_write): Use
1808 register_size instead REGISTER_RAW_SIZE.
1809
edcf254d
AC
18102003-08-10 Andrew Cagney <cagney@redhat.com>
1811
1812 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1813 sprintf. Make "name" constant.
1814
26604a34
MK
18152003-08-10 Mark Kettenis <kettenis@gnu.org>
1816
192285c6
MK
1817 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1818 instead of frame_read_register.
f837910f
MK
1819 (i387_print_float_info): Use get_frame_register and
1820 get_frame_register_unsigned instead of frame_register_read.
192285c6 1821
f0925262
MK
1822 * i386fbsd-nat.c: Include "i386-tdep.h".
1823 (child_resume): Make `eflags' an ULONGEST. Use
1824 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1825 instead of register_read and register_write.
1826
a144416f
MK
1827 * i386bsd-nat.c (fetch_inferior_registers,
1828 store_inferior_registers): Don't use && at the end of a line.
1829 (_initialize_i386bsd_nat): Fix typo.
1830
fec74868
MK
1831 * frame.c (_initialize_frame): Add missing backslash.
1832
87232496
MK
1833 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1834 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1835 and supply_register instead of manipulating the register buffer
1836 directly.
1837
c9b9de0b
MK
1838 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1839 * config/i386/nm-i386sol2.h
1840 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1841
26604a34
MK
1842 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1843 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1844 instructions that GCC likes to mingle into the prologue. Fixes
1845 gdb/1253 and gdb/1255.
1846
25d29d70
AC
18472003-08-09 Andrew Cagney <cagney@redhat.com>
1848
1849 Fix GDB PR cli/926.
1850 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1851 * command.h (add_setshow_uinteger_cmd): Declare.
1852 * frame.c (set_backtrace_cmd): New function.
1853 (show_backtrace_cmd): New function.
1854 * frame.c (_initialize_frame): Replace "set/show
1855 backtrace-below-main" with "set/show backtrace past-main". Add
1856 command "set/show backtrace limit".
1857 (backtrace_past_main): Rename "backtrace_below_main".
1858 (backtrace_limit): New variable.
1859 (get_prev_frame): Update. Check the backtrace_limit.
1860
9ebf4acf
AC
18612003-08-09 Andrew Cagney <cagney@redhat.com>
1862
1863 * defs.h (xstrprintf): Declare.
1864 * utils.c (xstrprintf): New function.
1865 * breakpoint.c (insert_breakpoints): Replace sprintf and
1866 non-literal format strings, with xstrprintf and cleanups.
1867 (delete_breakpoint,breakpoint_re_set): Ditto.
1868 (commands_command, insert_breakpoints): Ditto.
1869 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1870 (break_at_finish_command_1): Ditto.
1871
3771659b
AC
18722003-08-09 Andrew Cagney <cagney@redhat.com>
1873
1874 * MAINTAINERS (language support): List Adam Fedor as Objective C
1875 maintainer.
1876
b4263afa
JB
18772003-08-08 J. Brobecker <brobecker@gnat.com>
1878
1879 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1880 are now multiarched.
1881
d84defb1
JB
18822003-08-08 J. Brobecker <brobecker@gnat.com>
1883
1884 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1885 longer necessary now that hppa64 is partially multiarch'ed.
1886
f786f615
AC
18872003-08-08 Andrew Cagney <cagney@redhat.com>
1888
1889 * interps.c (interp_set): Check for a NULL "old_interp".
1890
c938e9b0
L
18912003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1892
1893 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1894 (install-only): Support DESTDIR.
1895 (uninstall): Likewise.
1896 (install-gdbtk): Likewise.
1897
9a146a11
EZ
18982003-08-08 Elena Zannoni <ezannoni@redhat.com>
1899
1900 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1901 contains something meaningful at all times.
1902
1903Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1904
62599e99 1905 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1906
56296155
BC
1907Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1908
62599e99 1909 * MAINTAINERS (write after approval): Added self.
56296155 1910
9710e734
AC
19112003-08-07 Andrew Cagney <cagney@redhat.com>
1912
1913 * inferior.h (AT_SYMBOL): Define.
1914 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1915 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1916 * mips-tdep.c (mips_call_dummy_address): Delete function.
1917 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1918 set call_dummy_address.
1919
98b3ab73
AC
19202003-08-07 Andrew Cagney <cagney@redhat.com>
1921
1922 * language.c (op_error): Delete function.
1923 (binop_type_check): Delete function.
1924 * language.h (type_op_error, range_op_error): Delete macros.
1925 (op_error): Delete declaration.
1926
2fcf52f0
AC
19272003-08-07 Andrew Cagney <cagney@redhat.com>
1928
1929 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1930
abd4220e 19312003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1932
abd4220e 1933 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1934 (x86_64_push_arguments): Skip the red zone.
abd4220e 1935
9dd5f34f
AC
19362003-08-05 Andrew Cagney <cagney@redhat.com>
1937
1938 * reggroups.c (reggroup_next): Check for the final entry.
1939
e5e78edc
AC
19402003-08-04 Andrew Cagney <cagney@redhat.com>
1941
ab4e3d93
AC
1942 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1943 * cli/cli-script.c (define_command): Call query directly, instead
1944 of passing it a buffer.
1945 * ocd.c (ocd_error): Pass error a constant format string.
1946 * remote-mips.c (mips_error): Use fputs_filtered.
1947
1062ca82
AC
1948 * solib-svr4.c (_initialize_svr4_solib): Update
1949 register_gdbarch_data call.
1950 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1951
fcc1c85c
AC
1952 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1953 (register_gdbarch_data): Delete "free" parameter. Update
1954 comments.
1955 * gdbarch.h, gdbarch.c: Re-generate.
1956 * reggroups.c (_initialize_reggroup): Update.
1957 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1958 * frame-base.c (_initialize_frame_base): Update.
1959 * frame-unwind.c (_initialize_frame_unwind): Update.
1960 * user-regs.c (_initialize_user_regs): Update.
1961 * remote.c (_initialize_remote): Update.
1962 * regcache.c (_initialize_regcache): Update.
1963
116f06ea
AC
1964 * regcache.c (xfree_regcache_descr): Delete function.
1965 (_initialize_regcache): Update call to register_gdbarch_data.
1966 (init_regcache_descr, init_legacy_regcache_descr): Use
1967 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1968
e5e78edc
AC
1969 * remote.c (free_remote_state): Delete function.
1970 (_initialize_remote): Update register_gdbarch_data.
1971 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1972 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1973
6c7d17ba
AC
19742003-08-04 Andrew Cagney <cagney@redhat.com>
1975
1976 * reggroups.c (struct reggroup_el): Define.
1977 (struct reggroups): Delete field "nr_group". Replace array
1978 "group" with a "first" to "last" linked list.
1979 (reggroups_init): Update. Allocate using gdbarch's obstack.
1980 (reggroups_free): Delete function.
1981 (add_group): Update. Add "el" parameter.
1982 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1983 (default_groups): Update.
1984 (reggroup_next): Replace reggroups.
1985 (reggroups_dump): Update.
1986 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1987 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1988 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1989
89b7795b
DJ
19902003-08-04 Daniel Jacobowitz <drow@mvista.com>
1991
1992 * Makefile.in (tui-interp.o): Update dependencies.
1993
306d9ac5
DC
19942003-08-04 David Carlton <carlton@kealia.com>
1995
1996 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1997 to internal_error call.
1998 * source.c (forward_search_command): Add "%s" format argument.
1999 (reverse_search_command): Ditto.
2000 * top.c (quit_confirm): Ditto.
2001 * cli/cli-setshow.c (do_setshow_command): Ditto.
2002 * cp-valprint.c (cp_print_class_method): Replace
2003 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2004 (cp_print_class_member): Ditto.
2005 * event-top.c (command_line_handler): Ditto.
2006 * linux-proc.c (linux_info_proc_cmd): Ditto.
2007 * p-typeprint.c (pascal_type_print_base): Ditto.
2008 * p-valprint.c (pascal_object_print_class_method): Ditto.
2009 (pascal_object_print_class_member): Ditto.
2010 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2011 * remote.c (remote_cisco_section_offsets): Ditto.
2012 * top.c (command_line_input): Ditto.
2013 * utils.c (vwarning,error_stream,quit): Ditto.
2014 * valprint.c (print_floating,print_binary_chars)
2015 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2016
57bfe177
AC
20172003-08-04 Andrew Cagney <cagney@redhat.com>
2018
2019 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2020
e546b999
AC
20212003-08-02 Andrew Cagney <cagney@redhat.com>
2022
2023 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2024 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2025 amd64fbsd-nat.c.
2026
91092ee5
AC
20272003-08-02 Andrew Cagney <cagney@redhat.com>
2028
2029 * Makefile.in: Update all dependencies and definitions.
2030
889f28e2
AF
20312003-08-02 Adam Fedor <fedor@gnu.org>
2032
2033 * linespec.c (is_objc_method_format): New function
2034 (decode_line_1, locate_first_half): Use it.
2035 Fixes PR objc/1298
2036
880bc914
AC
20372003-08-01 Andrew Cagney <cagney@redhat.com>
2038
2039 * NEWS: Mention that m32r is multi-arch.
2040 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2041 * configure.tgt: Recognize m32r-*-*.
2042 * config/m32r/tm-m32r.h: Delete file.
2043 * config/m32r/m32r.mt: New file.
2044 * m32r-rom.c (m32r_upload_command): Use hostent only when
2045 gethostname succeeds, in order to avoid a compilation
2046 warning.
2047 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2048 compiler warning.
2049
19f59343
MS
20502003-08-01 Michael Snyder <msnyder@redhat.com>
2051
2052 * sh-tdep.c (sh_frame_align): New gdbarch method.
2053 (sh_gdbarch_init): Set up frame_align method.
2054
4e7d7511
MS
20552003-07-31 Michael Snyder <msnyder@redhat.com>
2056
2057 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2058 which is already covered by the new frames infrastructure.
2059
63022984
AC
20602003-07-31 Andrew Cagney <cagney@redhat.com>
2061
2062 * user-regs.c (struct user_reg): Add "next" link.
2063 (struct user_regs): Replace "user" with "first" and "last" links.
2064 (append_user_reg): Add pre-allocated "reg" parameter.
2065 (builtin_user_regs): Provide initial value for "last".
2066 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2067 (user_regs_init): Allocate memory from the gdbarch obstack.
2068 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2069 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2070 linked list.
2071 (usernum_to_user_reg): New function.
2072 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2073 (value_of_user_reg): Use usernum_to_user_reg.
2074 (user_regs_free): Delete function.
2075 (_initialize_user_regs): Update register_gdbarch_data call.
2076
7cf6e574
DJ
20772003-07-31 Daniel Jacobowitz <drow@mvista.com>
2078
2079 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2080
c48a845b
MS
20812003-07-30 Michael Snyder <msnyder@redhat.com>
2082
4e7d7511 2083 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2084 * infcall.c (call_function_by_hand): Pass struct_addr to
2085 value_being_returned.
2086 * infcmd.c (print_return_value): Pass zero as struct_addr.
2087 * values.c (value_being_returned): If struct_addr is passed,
2088 use it instead of trying to recover it from the inferior.
2089
f0d8db19
KB
20902003-07-30 Kevin Buettner <kevinb@redhat.com>
2091
2092 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2093 the prologue analyzer won't need to attempt to extract the pc
2094 value from the woefully incomplete dummy frame.
2095 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2096 possible. Disable code which modifies the frame.
2097
e5c113a1
AC
20982003-07-28 Andrew Cagney <cagney@redhat.com>
2099
2100 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2101 to level 2.
2102 (annotate_breakpoints_table, annotate_record): Ditto.
2103 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2104 (annotate_field_name_end, annotate_field_value): Ditto.
2105 (annotate_field_end, annotate_frame_source_begin): Ditto.
2106 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2107 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2108 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2109 (annotate_frame_address_end, annotate_frame_address): Ditto.
2110 (annotate_frame_args, annotate_frame_end): Ditto.
2111 (annotate_frame_where, annotate_arg_begin): Ditto.
2112 (annotate_arg_name_end, annotate_arg_value): Ditto.
2113 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2114 (annotate_function_call, annotate_signal_name): Ditto.
2115 (annotate_signal_string, annotate_signal_name_end): Ditto.
2116 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2117 (annotate_value_begin, annotate_value_history_value): Ditto.
2118 (annotate_value_history_end, annotate_value_end): Ditto.
2119 (annotate_display_begin, annotate_display_number_end): Ditto.
2120 (annotate_display_format, annotate_display_expression): Ditto.
2121 (annotate_display_expression_end, annotate_display_value): Ditto.
2122 (annotate_display_end, annotate_array_section_begin): Ditto.
2123 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2124 (annotate_elt, annotate_array_section_end): Ditto.
2125
bb1db049
AC
21262003-07-28 Andrew Cagney <cagney@redhat.com>
2127
2128 * regcache.c (struct regcache_descr): Update comments on
2129 nr_raw_registers.
2130 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2131 sizeof_raw_register_valid_p.
2132 (init_regcache_descr): Set nr_raw_registers and
2133 sizeof_raw_register_valid_p before calling
2134 init_legacy_regcache_descr.
2135
20e6603c
AC
21362003-07-28 Andrew Cagney <cagney@redhat.com>
2137
2138 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2139 MOD NUM_REGS.
2140
db742940
DJ
21412003-07-28 Daniel Jacobowitz <drow@mvista.com>
2142
2143 * thread.c (info_threads_command): Use get_selected_frame ().
2144 Check that there is at least one non-sentinel frame.
2145
ce7f4371
SC
21462003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2147
2148 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2149 (m68hc11_pop_frame): Remove.
2150 (m68hc11_frame_saved_pc): Remove.
2151 (m68hc11_frame_chain): Remove.
2152 (m68hc11_frame_init_saved_regs): Remove.
2153 (m68hc11_init_extra_frame_info): Remove.
2154 (m68hc11_store_struct_return): Remove.
2155 (m68hc11_saved_pc_after_call): Remove.
2156
1ea653ae
SC
21572003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2158
2159 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2160 frame unwind information.
2161 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2162 and adapted for frame unwinding.
2163 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2164 (m68hc11_unwind_pc): New function.
2165 (m68hc11_frame_unwind_cache): New function to analyze frames.
2166 (m68hc11_frame_this_id): New function to create new frame struct.
2167 (m68hc11_frame_prev_register): New function to unwind a register from
2168 the frame.
2169 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2170 (m68hc11_frame_p): New function for the above.
2171 (m68hc11_frame_base_address): New function to return fp of frame.
2172 (m68hc11_frame_args_address): Update for frame.
2173 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2174 (m68hc11_unwind_sp): New function.
2175 (m68hc11_unwind_dummy_id): New function.
2176 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2177 calls.
2178
c8a7f6ac
SC
21792003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2180
2181 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2182 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2183 when we are beyond the current pc.
2184
3dc990bf
SC
21852003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2186
2187 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2188 from m68hc11_push_arguments.
2189 (m68hc11_push_arguments): Remove.
2190 (m68hc11_push_return_address): Remove.
2191 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2192 handlers; remove deprecated_extra_stack_alignment_needed.
2193
222e5d1d
AC
21942003-07-27 Andrew Cagney <cagney@redhat.com>
2195
2196 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2197 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2198 REAL_PC and not the pointer.
2199 * hppa-hpux-tdep.c: Include frame.h
2200
a7e9a47e
AC
22012003-07-27 Andrew Cagney <cagney@redhat.com>
2202
2203 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2204 GDB_MULTI_ACH_PARTIAL.
2205
7e3dd49e
AC
22062003-07-27 Andrew Cagney <cagney@redhat.com>
2207
2208 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2209 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2210 operator at start and not end of line.
2211 (decode_prologue): Ditto.
2212 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2213 frame_unwind_register_unsigned instead of
2214 frame_unwind_unsigned_register.
2215 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2216 read_register.
2217 (m32r_push_dummy_call): Use register_size instead of
2218 REGISTER_RAW_SIZE.
2219 (m32r_frame_sniffer): Replace m32r_frame_p.
2220 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2221 * m32r-rom.c (report_transfer_performance): Delete extern
2222 declaration.
2223 (m32r_load, m32r_upload_command): Use print_transfer_performance
2224 instead of report_transfer_performance.
2225 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2226 / add_show_from_set.
2227
0880807f
AC
22282003-07-26 Andrew Cagney <cagney@redhat.com>
2229
2230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2231 store_return_value and extract_struct_value_address.
2232
64ae9269
DJ
22332003-07-26 Daniel Jacobowitz <drow@mvista.com>
2234
2235 PR c++/1267
2236 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2237 NULL, default to the section containing PC.
2238
e286caf2
SC
22392003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2240
2241 * NEWS: Mention "regs" deprecated for m68hc11 too.
2242
2243 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2244 (m68hc11_print_register): New function to print out one register.
2245 (m68hc11_print_registers_info): New function to print registers.
2246 (show_regs): Deprecate and use the above.
2247 (m68hc11_gdbarch_init): Install the print_registers_info.
2248
705b278b
JJ
22492003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2250
2251 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2252 that we have a SIGTRAP before returning non-zero.
2253
63cd4198
EZ
22542003-07-23 Michal Ludvig <mludvig@suse.cz>
2255 Elena Zannoni <ezannoni@redhat.com>
2256
2257 * linespec.c (decode_line_2): Avoid crash if
2258 find_function_start_sal() returns empty record.
2259
6926787d
AS
22602003-07-23 Andreas Schwab <schwab@suse.de>
2261
2262 * ia64-tdep.c (ia64_print_insn): New function.
2263 (ia64_gdbarch_init): Set print_insn to it.
2264 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2265 deprecated_tm_print_insn_info.
2266
708cc1b6
MS
22672003-07-22 Michael Snyder <msnyder@redhat.com>
2268
2269 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2270 handle 8-bit returns (long long).
2271 (h8300h_extract_return_value): Ditto.
2272 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2273
aebd7893
AC
22742003-07-22 Andrew Cagney <cagney@redhat.com>
2275
2276 * gdbarch.c Include "gdb_obstack.h".
2277 (struct gdbarch): Add an "obstack".
2278 (alloc_gdbarch_data): Allocate the gdbarch data using
2279 GDBARCH_OBSTACK_CALLOC.
2280 (free_gdbarch_data): Delete function.
2281 (gdbarch_obstack_zalloc): New function.
2282 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2283 Assert that the architecture is not initialized.
2284 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2285 vector from the obstack.
2286 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2287 architecture obstack.
2288 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2289 (set_gdbarch_data): Assert that the data is not initialized.
2290 (struct gdbarch_data): Delete member "free".
2291 (register_gdbarch_data): Do not initialize "free".
2292 * gdbarch.h, gdbarch.c: Re-generate.
2293
153721e6
AC
22942003-07-22 Andrew Cagney <cagney@redhat.com>
2295
2296 * configure.in (build_warnings): Add -Wformat-nonliteral.
2297 * configure: Re-generate.
2298
c193f044 22992003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2300
2301 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2302
c3228f12
EZ
23032003-07-22 Elena Zannoni <ezannoni@redhat.com>
2304
2305 * findvar.c (read_var_value): Remove case for thread local storage
2306 variables. It is now entirely handled by the dwarf2 location
2307 expression code.
2308 * printcmd.c (address_info): Ditto.
2309 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2310 enumeration value.
2311 (struct symbol): Remove objfile field, which was used by
2312 LOC_THREAD_LOCAL_STATIC only.
2313 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2314 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2315 usage of objfile pointer.
2316 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2317 thread local variables.
2318 Add include of objfiles.h.
2319 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2320 storage variables.
2321 * Makefile.in (dwarf2loc.o): Update dependencies.
2322
aef9bcd2
AC
23232003-07-22 Andrew Cagney <cagney@redhat.com>
2324
2325 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2326 get_frame_base.
2327 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2328 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2329 (struct value): Add opaque declaration.
2330 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2331
d95a8903
AC
23322003-07-21 Andrew Cagney <cagney@redhat.com>
2333
2334 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2335 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2336
4db73d49
SC
23372003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2338
2339 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2340 regcache_cooked_read_unsigned instead of read_register.
2341 (m68hc11_saved_pc_after_call): Likewise.
2342 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2343 instead of write_register.
2344 (m68hc11_register_type): New function.
2345 (m68hc11_register_virtual_type): Remove.
2346 (m68hc11_store_return_value): Convert to use the regcache.
2347 (m68hc11_extract_struct_value_address): Likewise.
2348 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2349 m68hc11_register_type; undeprecate store_return_value and
2350 extract_struct_value_address.
2351
ef2b8fcd
SC
23522003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2353
2354 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2355 and translate to use regcache.
2356 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2357
625b0b97
AC
23582003-07-18 Andrew Cagney <cagney@redhat.com>
2359
2360 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2361 * gdbarch.h, gdbarch.c: Re-generate.
2362 * i386-tdep.c (i386_gdbarch_init): Do not set
2363 DWARF2_BUILD_FRAME_INFO.
2364 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2365 unconditionally.
2366 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2367 DWARF2_BUILD_FRAME_INFO.
2368
22b0d388
AC
23692003-07-18 Andrew Cagney <cagney@redhat.com>
2370
2371 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2372 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2373
1ce5d6dd
AC
23742003-07-18 Andrew Cagney <cagney@redhat.com>
2375
2376 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2377 frame_unwind_address_in_block, instead of frame_pc_unwind.
2378 (dwarf2_frame_cache): Ditto.
2379
e6e5e94c
AC
23802003-07-18 Andrew Cagney <cagney@redhat.com>
2381
2382 * user-regs.h (struct gdbarch): Declare opaque.
2383 * ui-out.h (struct ui_file): Declare opaque.
2384 * dwarf2-frame.h (struct frame_info): Declare opaque.
2385
5483d879
KW
23862003-07-18 Kris Warkentin <kewarken@qnx.com>
2387
2388 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2389 #include "...".
2390 (procfs_meminfo): Change strerror to safe_strerror.
2391 (procfs_can_run): Remove K&R badness.
2392
278a7cf7
MS
23932003-07-17 Michael Snyder <msnyder@redhat.com>
2394
2395 * remote-sim.c: Comment typo fix.
2396
606e3b82
AC
23972003-07-17 Andrew Cagney <cagney@redhat.com>
2398
2399 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2400 configure.
2401 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2402 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2403 GDB_MULTI_ARCH_PARTIAL.
2404
c43af07c
EZ
24052003-07-17 Elena Zannoni <ezannoni@redhat.com>
2406
2407 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2408 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2409 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2410
3b85b0f1
TR
24112003-07-16 Theodore A. Roth <troth@openavr.org>
2412
2413 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2414 found.
2415 (avr_frame_unwind_cache): Don't unwind FP for main.
2416 Update a comment.
2417 Save the computed prev_sp.
2418 (avr_saved_regs_unwinder): Remove function.
2419 (avr_frame_prev_register): Use PC unwind logic from
2420 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2421
336d1bba
AC
24222003-07-16 Andrew Cagney <cagney@redhat.com>
2423
2424 * frame-base.h (frame_base_p_ftype): Delete definition.
2425 (frame_base_append_predicate): Delete declaration.
2426 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2427 (frame_unwind_append_predicate): Delete declaration.
2428 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2429 (append_predicate): Delete parameter "p".
2430 (frame_unwind_append_predicate): Delete function.
2431 (frame_unwind_append_sniffer): Update call to append_predicate.
2432 (frame_unwind_free): Delete function.
2433 (_initialize_frame_unwind): Pass NULL as "free" to
2434 register_gdbarch_data.
2435 (frame_unwind_init): Append the dummy_frame_sniffer.
2436 (frame_unwind_find_by_frame): Simplify.
2437 * frame-base.c (struct frame_base_table): Delete field "p".
2438 (append_predicate): Delete parameter "p".
2439 (frame_base_append_predicate): Delete function.
2440 (frame_base_append_sniffer): Update call to append_predicate.
2441 (frame_base_free): Delete function.
2442 (frame_base_find_by_frame): Simplify.
2443 (_initialize_frame_base): Pass NULL as "free" to
2444 register_gdbarch_data.
2445 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2446 (x86_64_sigtramp_frame_sniffer): Replace
2447 "x86_64_sigtramp_frame_p".
2448 (x86_64_init_abi): Set the frame unwind sniffers.
2449 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2450 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2451 (m68k_gdbarch_init): Set the frame unwind sniffers.
2452 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2453 "i386_sigtramp_frame_p".
2454 (i386_frame_sniffer): Replace "i386_frame_p".
2455 (i386_gdbarch_init): Set the frame unwind sniffers.
2456 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2457 (avr_gdbarch_init): Set the frame unwind sniffers.
2458 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2459 "alpha_sigtramp_frame_p"
2460 (alpha_heuristic_frame_sniffer): Replace
2461 "alpha_heuristic_frame_p".
2462 (alpha_gdbarch_init): Set the frame unwind sniffers.
2463 (alpha_dwarf2_init_abi): Ditto.
2464 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2465 "alpha_debug_frame_p".
2466 (alpha_mdebug_frame_base_sniffer): Replace
2467 "alpha_mdebug_frame_base_p".
2468 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2469 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2470 (d10v_gdbarch_init): Set the frame unwind sniffer.
2471 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2472 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2473 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2474 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2475 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2476 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2477
48db5a3c
CV
24782003-07-16 Michael Snyder <msnyder@redhat.com>
2479
2480 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2481 should go thru sh_dsp_register_sim_regno, else the dsp regs
2482 will not get the right values.
2483
24842003-07-16 Corinna Vinschen <vinschen@redhat.com>
2485
2486 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2487 deprecated_store_floating by call to store_typed_floating.
2488 (sh_sh4_register_convert_to_raw): Substitute call to
2489 deprecated_extract_floating by call to extract_typed_floating.
2490
24912003-07-16 Corinna Vinschen <vinschen@redhat.com>
2492
2493 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2494
24952003-07-16 Corinna Vinschen <vinschen@redhat.com>
2496
2497 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2498 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2499 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2500 as possible.
2501 (do_pseudo_register): Remove.
2502 (sh_push_dummy_code): New function.
2503 (sh64_store_struct_return): Rename from sh_store_struct_return.
2504 Only called for sh64 now.
2505 (sh_extract_struct_value_address): Regcache'ify.
2506 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2507 and accomodate new tasks.
2508 (sh64_push_return_address): Rename from sh_push_return_address.
2509 Only called for sh64 now.
2510 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2511 Regcache'ify.
2512 (sh3e_sh4_extract_return_value): Regcache'ify.
2513 (sh_default_store_return_value): Ditto.
2514 (sh3e_sh4_store_return_value): Ditto.
2515 (sh_default_register_byte): Remove.
2516 (sh_sh4_register_byte): Remove.
2517 (sh_default_register_raw_size): Remove.
2518 (sh_sh4_register_raw_size): Remove.
2519 (sh_register_virtual_size): Remove.
2520 (sh_sh3e_register_virtual_type): Remove.
2521 (sh_sh3e_register_type): New function.
2522 (sh_sh4_register_virtual_type): Remove.
2523 (sh_sh4_register_type): New function.
2524 (sh_default_register_virtual_type): Remove.
2525 (sh_default_register_type): New function.
2526 (do_fv_register_info): Add parameters to accomodate call from
2527 sh_print_registers_info.
2528 (do_dr_register_info): Ditto.
2529 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2530 Add parameters to accomodate call from sh_print_registers_info.
2531 (sh_do_fp_register): Ditto.
2532 (sh64_do_pseudo_register): Call do_dr_register_info,
2533 do_fv_register_info and sh_do_fp_register with default parameters.
2534 (sh_do_register): Add parameters to accomodate call from
2535 sh_print_registers_info.
2536 (sh_print_register): Ditto.
2537 (sh_print_registers_info): Rename from sh_do_registers_info.
2538 Add parameters to be used as gdbarch_print_registers_info
2539 implementation. Accomodate removed do_pseudo_register function
2540 pointer.
2541 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2542 function pointer. Call sh_print_register with default parameters.
2543 (sh64_do_registers_info): Call sh_print_registers_info instead of
2544 sh_do_registers_info.
2545 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2546 detection of deprecated vs. non-deprecated functionality.
2547 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2548 function pointer assignments by direct function calls.
2549
e8a89fe2
AC
25502003-07-15 Andrew Cagney <cagney@redhat.com>
2551
2552 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2553 (frame_register_unwind, create_new_frame): Ditto.
2554 (legacy_get_prev_frame, get_frame_type): Ditto.
2555 (get_frame_base_address): Use frame_base_find_by_frame.
2556 (get_frame_locals_address): Use frame_base_find_by_frame.
2557 (get_frame_args_address): Use frame_base_find_by_frame.
2558 * frame-base.h (frame_base_sniffer_ftype): Declare.
2559 (frame_base_append_sniffer): Declare.
2560 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2561 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2562 (frame_base_append_sniffer): New function.
2563 (frame_base_append_predicate): Add a NULL sniffer.
2564 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2565 (struct frame_base_table): Add "sniffer".
2566 (frame_base_free): Free the "sniffer" table.
2567 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2568 (frame_unwind_append_sniffer): Declare.
2569 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2570 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2571 (struct frame_unwind_table): Add "sniffer", delete "middle".
2572 (append_predicate): Add "sniffer" parameter, append the sniffer.
2573 (frame_unwind_init): Update append_predicate call.
2574 (frame_unwind_append_sniffer): New function.
2575 (frame_unwind_append_predicate): Update append_predicate call.
2576 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2577
0714963c
AC
25782003-07-15 Andrew Cagney <cagney@redhat.com>
2579
2580 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2581 before code inhibiting repeated unwind attempts. Add to
2582 commentary on that test's problems.
2583 * blockframe.c (inside_main_func): Look for "main" in the minimal
2584 symbol table.
2585 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2586 identical.
2587
d9170e22
AC
25882003-07-15 Andrew Cagney <cagney@redhat.com>
2589
2590 * complaints.c (struct explanation): Define.
2591 (struct complaints): Change type of "explanation" to "struct
2592 explanation".
2593 (symfile_explanations): Convert to a "struct explanation" table.
2594 (vcomplaint): Update.
2595
eba29c8c
ML
25962003-07-15 Michal Ludvig <mludvig@suse.cz>
2597
2598 * x86-64-linux-nat.c (regmap): Removed.
2599 (supply_gregset, fill_gregset): Call
2600 x86_64_linux_(fill,supply)_gregset functions.
2601 * x86-64-linux-tdep.c (USER_*): New defines.
2602 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2603 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2604 New functions.
2605 (fetch_core_registers): Ditto.
2606 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2607 * x86-64-linux-tdep.h: New file.
2608 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2609 and core-regset.o.
2610 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2611
68cc0bfb
MK
26122003-07-13 Mark Kettenis <kettenis@gnu.org>
2613
88a115f7
MK
2614 * x86-64-tdep.c (x86_64_store_return_value): Use
2615 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2616
68cc0bfb
MK
2617 * configure.host: Add x86_64-*-freebsd*.
2618 * configure.tgt: Add x86_64-*-freebsd*.
2619 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2620 * amd64fbsd-nat.c: New file.
2621 * amd64fbsd-tdep.c: New file.
2622 * config/i386/nm-fbsd64.h: New file.
2623 * config/i386/fbsd64.mh: New file.
2624 * config/i386/fbsd64.mt: New file.
2625
138e7be5
MK
26262003-07-11 Mark Kettenis <kettenis@gnu.org>
2627
2628 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2629 `sc_regs_offset' and `sc_fpregs_offset'.
2630 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2631 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2632 (alpha_sigtramp_register_address): Rewrite to use new members of
2633 `struct gdbarch_tdep'.
2634 (alpha_gdbarch_init): Initialize new members of struct
2635 gdbarch_tdep'.
2636 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2637 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2638 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2639 (alphafbsd_pc_in_sigtramp): Implement.
2640 (alphafbsd_sigtramp_offset): New function.
2641 (alphafbsd_sigcontext_addr): New function.
2642 (alphafbsd_init_abi): Initialize signal trampoline related members
2643 of `struct gdbarch_tdep'.
2644 (_initialize_alphafbsd_tdep): Add prototype.
2645
95303a68
TR
26462003-07-11 Theodore A. Roth <troth@openavr.org>
2647
ba292e4c
TR
2648 * Makefile.in (install-only): Quote sed expression when generating
2649 transformed_name.
95303a68 2650
6896c0c7
RH
26512003-07-11 Richard Henderson <rth@redhat.com>
2652
2653 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2654 * dwarf2-frame.c: Include complaints.h.
2655 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2656 variable initialization; return NULL on error.
2657 (decode_frame_entry): New.
2658
8edd5d01
AC
26592003-07-11 Andrew Cagney <cagney@redhat.com>
2660
c4a09524
AC
2661 * frame.h (frame_address_in_block): Delete declaration.
2662 * blockframe.c (frame_address_in_block): Delete function.
2663 (get_frame_block): Use get_frame_address_in_block.
2664 (block_innermost_frame): Ditto.
2665 * stack.c (print_frame, backtrace_command_1): Ditto.
2666
8edd5d01
AC
2667 * frame.h (get_frame_address_in_block): Declare.
2668 (frame_unwind_address_in_block): Declare.
2669 * frame.c (frame_unwind_address_in_block): New function.
2670 (get_frame_address_in_block): New function.
2671
f7968451
AC
26722003-07-10 Andrew Cagney <cagney@redhat.com>
2673
2674 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2675 pre-default. Note: re-generate has no effect.
2676
ae99b398
AC
26772003-07-10 Andrew Cagney <cagney@redhat.com>
2678
2679 * gdbarch.sh: When a variable, but not a function, compare against
2680 0. Fix problem in previous patch.
2681 * gdbarch.c: Re-generate.
2682
956ac328
AC
26832003-07-10 Andrew Cagney <cagney@redhat.com>
2684
2685 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2686 functions against NULL, not 0.
2687 * gdbarch.c: Re-generate.
2688
287c3240
FF
26892003-07-10 Fred Fish <fnf@ninemoons.com>
2690
2691 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2692 null string instead of a null pointer.
2693 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2694
32f63c4b
MS
26952003-07-09 Michael Snyder <msnyder@redhat.com>
2696
2697 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2698
402ecd56
MK
26992003-07-09 Mark Kettenis <kettenis@gnu.org>
2700
2701 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2702 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2703 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2704 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2705 * x86-64-tdep.c: ... from here.
2706
c481dac7
AS
27072003-07-09 Andreas Schwab <schwab@suse.de>
2708
2709 * m68k-tdep.h (enum struct_return): Define.
2710 (struct gdbarch_tdep): Add struct_return.
2711 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2712 bytes are padded to the right, not to the left. Pass struct value
2713 address in register %a1, not on stack.
2714 (m68k_use_struct_convention): New function.
2715 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2716 struct_return in tdep to pcc_struct_return.
2717 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2718 reg_struct_return.
2719
64176fa3
JB
27202003-07-09 Joel Brobecker <brobecker@gnat.com>
2721
2722 * somread.c (som_symfile_offsets): Fix compilation error.
2723
96a4ee76
AC
27242003-07-09 Andrew Cagney <cagney@redhat.com>
2725
2726 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2727 Add comments about the checks.
2728
1517c6d1
AC
27292003-07-08 Andrew Cagney <cagney@redhat.com>
2730
2731 * Makefile.in: Make dependency section headers consistent.
2732 (config_h): Move to $BUILD headers section.
2733 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2734 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2735 (ada-exp.tab.c): Move to YACC/LEX section.
2736 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2737 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2738
dc5dd1eb
KW
27392003-07-08 Kris Warkentin <kewarken@qnx.com>
2740
2741 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2742 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2743 of strerror with safe_strerror, use ISO C function definitions,
2744 and replace instances of sprintf with snprintf.
dc5dd1eb 2745
612dde91
AC
27462003-07-07 Andrew Cagney <cagney@redhat.com>
2747
2748 * frame.c (get_prev_frame): Enable check for identical frames.
2749 Update comments. Update error messages.
2750
492c11d3
JB
27512003-07-07 Joel Brobecker <brobecker@gnat.com>
2752
2753 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2754
376a5a49
JB
27552003-07-07 Joel Brobecker <brobecker@gnat.com>
2756
2757 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2758 sort_symtab_syms, no longer necessary.
2759
22b4a9ad
JB
27602003-07-07 Joel Brobecker <brobecker@gnat.com>
2761
2762 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2763
5bbcb741
JB
27642003-07-07 Joel Brobecker <brobecker@gnat.com>
2765
2766 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2767 (mips_register_byte): Likewise.
2768
c139e7d9
DJ
27692003-07-07 Daniel Jacobowitz <drow@mvista.com>
2770
2771 * Makefile.in (sparc_tdep_h): New.
2772 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2773 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2774 * sparc-linux-nat.c: Include "sparc-tdep.h".
2775 * sparc-nat.c: Likewise.
2776 * sparc-tdep.c: Likewise.
2777 * sparc64nbsd-nat.c: Likewise.
2778 * sparcnbsd-nat.c: Likewise.
2779 * sparcnbsd-tdep.c: Likewise.
2780 * sparc-tdep.h: New file.
2781 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2782 and sparc_npc_regnum.
2783
fd8f87c5
DJ
27842003-07-07 Daniel Jacobowitz <drow@mvista.com>
2785
2786 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2787 (mips_linux_cannot_store_register): List supported instead of
2788 unsupported registers.
2789
13adf674
DJ
27902003-07-07 Daniel Jacobowitz <drow@mvista.com>
2791
2792 * disasm.c (dump_insns): Separate instructions from addresses.
2793
8de307e0
AS
27942003-07-07 Andreas Schwab <schwab@suse.de>
2795
2796 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2797 dependencies.
2798 * m68k-tdep.c (NUM_FREGS): Delete.
2799 (SIG_PC_FP_OFFSET): Delete.
2800 (TARGET_M68K): Delete.
2801 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2802 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2803 P_MOVEL_SP, P_MOVEML_SP): Define.
2804 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2805 P_TRAP): Delete.
2806 (m68k_register_raw_size): Delete.
2807 (m68k_register_virtual_size): Delete.
2808 (m68k_register_type): Renamed from m68k_register_virtual_type and
2809 add gdbarch argument.
2810 (m68k_store_struct_return): Delete.
2811 (m68k_deprecated_extract_return_value): Delete.
2812 (m68k_deprecated_extract_struct_value_address): Delete.
2813 (m68k_frame_chain): Delete.
2814 (m68k_frame_saved_pc): Delete.
2815 (m68k_fix_call_dummy): Delete.
2816 (m68k_push_dummy_frame): Delete.
2817 (m68k_pop_frame): Delete.
2818 (m68k_extract_return_value): New function.
2819 (m68k_store_return_value): Rewrite using regcache.
2820 (m68k_extract_struct_value_address): Rewrite using regcache.
2821 (m68k_push_dummy_call): New function.
2822 (struct m68k_frame_cache): Define.
2823 (m68k_alloc_frame_cache): New function.
2824 (m68k_analyze_frame_setup): New function.
2825 (m68k_analyze_register_saves): New function.
2826 (m68k_analyze_prologue): New function.
2827 (m68k_skip_prologue): Rewrite using above functions.
2828 (m68k_unwind_pc): New function.
2829 (m68k_frame_cache): New function.
2830 (m68k_frame_this_id): New function.
2831 (m68k_frame_prev_register): New function.
2832 (m68k_frame_unwind): New variable.
2833 (m68k_frame_p): New function.
2834 (m68k_sigtramp_frame_cache): New function.
2835 (m68k_sigtramp_frame_this_id): New function.
2836 (m68k_sigtramp_frame_prev_register): New function.
2837 (m68k_sigtramp_frame_unwind): New variable.
2838 (m68k_sigtramp_frame_p): New function.
2839 (m68k_frame_base_address): New function.
2840 (m68k_frame_base): New function.
2841 (m68k_unwind_dummy_id): New function.
2842 (fill_gregset): Use regcache_collect.
2843 (fill_fpregset): Likewise.
2844 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2845 defined.
2846 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2847 deprecated_init_frame_pc, deprecated_store_struct_return,
2848 deprecated_extract_return_value, deprecated_store_return_value,
2849 deprecated_frame_chain, deprecated_frame_saved_pc,
2850 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2851 deprecated_register_virtual_size,
2852 deprecated_max_register_raw_size,
2853 deprecated_max_register_virtual_size,
2854 deprecated_register_virtual_type, deprecated_register_size,
2855 deprecated_register_byte, deprecated_register_bytes,
2856 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2857 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2858 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2859 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2860 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2861 deprecated_push_dummy_frame, deprecated_pop_frame,
2862 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2863 only if SYSCALL_TRAP is defined. Set extract_return_value,
2864 store_return_value, extract_struct_value_address, register_type,
2865 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2866 predicates.
2867 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2868 M68K_MAX_REGISTER_SIZE): Define.
2869 (struct m68k_sigtramp_info): Define.
2870 (struct gdbarch_tdep): Add get_sigtramp_info.
2871 * m68klinux-nat.c (fetch_register): Use register_size instead of
2872 REGISTER_RAW_SIZE. Don't put assignment in if.
2873 (store_register): Likewise.
2874 (fetch_inferior_registers): Likewise.
2875 (store_inferior_registers): Likewise.
2876 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2877 (m68k_linux_frame_saved_pc): Delete.
2878 (m68k_linux_sigcontext_reg_offset,
2879 m68k_linux_ucontext_reg_offset): Define.
2880 (m68k_linux_get_sigtramp_info): New function.
2881 (m68k_linux_extract_return_value): Rewrite using regcache.
2882 (m68k_linux_store_return_value): Likewise.
2883 (m68k_linux_extract_struct_value_address): Likewise.
2884 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2885 Don't set deprecated_frame_saved_pc,
2886 deprecated_extract_return_value, deprecated_store_return_value,
2887 deprecated_extract_struct_value_address. Set
2888 extract_return_value, store_return_value,
2889 extract_struct_value_address.
2890
eb8bc282
AC
28912003-07-07 Andrew Cagney <cagney@redhat.com>
2892
2893 * expprint.c: Include "user-regs.h" instead of "frame.h".
2894 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2895 frame_map_regnum_to_name.
2896 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2897 (frame_map_name_to_regnum): Simplify, call
2898 user_reg_map_name_to_regnum.
2899 (frame_map_regnum_to_name): Simplify, call
2900 user_reg_map_regnum_to_name.
2901 (frame_register_unwind): Update.
2902 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2903 (_initialize_frame_reg): Call user_reg_add_builtin.
2904 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2905 (value_of_register): Use value_of_user_reg.
2906 * eval.c (evaluate_subexp_standard): Update.
2907 * parse.c (write_dollar_variable): Update.
2908 * d10v-tdep.c (d10v_print_registers_info): Update.
2909 * infcmd.c (registers_info): Update.
2910 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2911 (builtin_regs_h): Delete macro.
2912 (user_regs_h): Define.
2913 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2914 (builtin-regs.o): Delete target.
2915 (user-regs.o): Specify dependencies.
2916 (expprint.o): Update dependencies.
2917 (findvar.o): Update dependencies.
2918 (frame.o): Update dependencies.
2919 (std-regs.o): Update dependencies.
2920
9f476a01
CF
29212003-07-06 Christopher Faylor <cgf@redhat.com>
2922
2923 * win32-nat.c (solib_symbols_add): Use one variable for all section
2924 address stuff. Pass variable rather than address of variable to
2925 safe_symbol_file_add.
2926
a731b831
AS
29272003-07-06 Andreas Schwab <schwab@suse.de>
2928
2929 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2930
9f83329d
JB
29312003-07-04 Joel Brobecker <brobecker@gnat.com>
2932
2933 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2934
27e28cc5
KW
29352003-07-04 Kris Warkentin <kewarken@qnx.com>
2936
2937 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2938
29392003-07-04 Kris Warkentin <kewarken@qnx.com>
2940
2941 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2942 * config/i386/nto.mh: New file.
2943 * config/i386/nm-nto.h: New file.
2944 * configure.host: Add i[3456]86-*-nto*.
2945
100f2e98
JB
29462003-07-03 Joel Brobecker <brobecker@gnat.com>
2947
2948 * remote-vx.c (vx_add_symbols): Fix compilation error.
2949
e23457df
AC
29502003-07-03 Andrew Cagney <cagney@redhat.com>
2951
2952 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2953 * gdbarch.h, gdbarch.c: Re-generate.
2954 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2955 (legacy_register_name): Declare.
2956 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2957 (REGISTER_NAME): Define.
2958 * sparc-tdep.c (legacy_register_name): New function.
2959 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2960 (REGISTER_NAME): Define.
2961 (hppa64_register_name): Declare.
2962 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2963 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2964 (hppa64_register_name): New function.
2965 (hppa_register_name): New function.
2966 * arch-utils.c (legacy_register_name): Delete.
2967 * arch-utils.h (legacy_register_name): Delete.
2968
38caaeec
DJ
29692003-07-03 Daniel Jacobowitz <drow@mvista.com>
2970
2971 * cli/cli-interp.c (cli_interpreter_resume): Update the
2972 cli_uiout's stream to gdb_stdout.
2973
dadd712e
AC
29742003-07-03 Andrew Cagney <cagney@redhat.com>
2975
2976 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2977 predicate.
2978 * gdbarch.h, gdbarch.c: Re-generate.
2979 * regcache.c (init_regcache_descr): Use legacy code when either
2980 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2981
c7f1390e
DJ
29822003-07-02 Daniel Jacobowitz <drow@mvista.com>
2983
2984 * NEWS: Move "set logging" entry into GDB 6.0 section.
2985
4bc8c588
JB
29862003-07-02 Jim Blandy <jimb@redhat.com>
2987
a9dd42f1
JB
2988 * s390-tdep.c (struct frame_extra_info): new member:
2989 'stack_bought_valid'.
2990 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2991 initialize fextra_info->stack_bought.
2992 (s390_frameless_function_invocation): Don't trust the value of
2993 fextra_info_ptr->stack_bought unless
2994 fextra_info->stack_bought_valid is set.
2995
4bc8c588
JB
2996 New S390 prologue analyzer.
2997 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2998 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2999 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3000 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3001 compute_x_addr, s390_on_stack, s390_store,
3002 s390_get_signal_frame_info): New functions.
3003 (S390_NUM_SPILL_SLOTS): New macro.
3004 (s390_get_frame_info): Rewritten.
3005 (is_arg_reg): Deleted.
3006
3007 Break out the decoding of S/390 instructions into separate
3008 functions, to make it more legible, and easier to check
3009 against the spec.
3010 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3011 is_rx, is_rxe): New functions.
3012 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3013 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3014 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3015 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3016 enums for opcode values. (Is this an improvement?)
3017
fd13a04a
AC
30182003-07-02 Andrew Cagney <cagney@redhat.com>
3019
3020 * i386-tdep.c: Revert change committed as part of trad-frame code
3021 below.
3022
3f8091c1
DJ
30232003-07-02 Daniel Jacobowitz <drow@mvista.com>
3024
3025 * breakpoint.c (insert_catchpoint): Make static.
3026
8dd5115e
AS
30272003-07-02 Andreas Schwab <schwab@suse.de>
3028
3029 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3030 former ia64_push_arguments and ia64_push_return_address, and use
3031 regcache functions instead of read/write_register.
3032 (ia64_gdbarch_init): Set push_dummy_call instead of
3033 deprecated_push_arguments and deprecated_push_return_address.
3034
a2229c23
AJ
30352003-07-01 Andreas Jaeger <aj@suse.de>
3036
3037 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3038 before the call.
3039 Set %rax only to number of SSE registers used.
3040
3b3850e8
AC
30412003-07-01 Andrew Cagney <cagney@redhat.com>
3042
3043 * trad-frame.h: Update comments, a -1 .addr is reserved.
3044 (trad_frame_value_p, trad_frame_addr_p): Declare.
3045 (trad_frame_reg_p): Declare.
3046 (trad_frame_set_value): Rename trad_frame_register_value.
3047 (trad_frame_set_unknown): Declare.
3048 * trad-frame.c (trad_frame_realreg_p): New function.
3049 (trad_frame_addr_p, trad_frame_value_p): New function.
3050 (trad_frame_set_unknown): New function.
3051 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3052 (trad_frame_prev_register): Use trad_frame_realreg_p,
3053 trad_frame_addr_p and trad_frame_value_p.
3054 (trad_frame_set_value): Rename trad_frame_register_value.
3055 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3056 and trad_frame_set_value.
a2229c23 3057
4d819d0e
JB
30582003-06-30 Jim Blandy <jimb@redhat.com>
3059
3060 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3061 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3062 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3063 for 16 registers, and then 32 more bytes.
3064 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3065 New macros.
3066 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3067 Move up in the file, since it's now used by is_simple_arg.
3068 (is_simple_arg): Don't assume registers are four bytes long.
3069 Exclude all double arguments. Extended floats are not simple
3070 args.
3071 (is_power_of_two): New function.
3072 (pass_by_copy_ref): Call is_power_of_two, and check that the
3073 length fits in a register, rather than listing all the acceptable
3074 sizes. Extended floats are not passed by reference.
3075 (s390_push_arguments): Don't assume registers are four bytes long.
3076 Reserve an argument register to point to the buffer for structures
3077 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3078 S390_STACK_FRAME_OVERHEAD.
3079
1ad828f1
AS
30802003-06-30 Andreas Schwab <schwab@suse.de>
3081
3082 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3083 format error message.
3084
39b00981
JB
30852003-06-30 Joel Brobecker <brobecker@gnat.com>
3086
3087 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3088
b2a7f303
DC
30892003-06-30 David Carlton <carlton@kealia.com>
3090
3091 Band-aid for PR c++/1245.
3092 * Makefile.in (cp-support.o): Depend on complaints_h.
3093 * cp-support.c: Include complaints.h. Add declaration for
3094 find_last_component.
3095 (cp_find_first_component): Separate code into
3096 cp_find_first_component_aux.
3097 (cp_find_first_component_aux): Call demangled_name_complaint.
3098 (demangled_name_complaint): New.
3099
a257b5bb
AC
31002003-06-30 Andrew Cagney <cagney@redhat.com>
3101
3102 * remote.c (remote_write_bytes): Explicitly compute and then use
3103 the payload size. Update comments to reflect. Fixes problem of
3104 GDB not sending small packets as found by Fred Fish.
3105
0a2cfde4
AC
31062003-06-30 Andrew Cagney <cagney@redhat.com>
3107
3108 * remote.c (remote_async_wait): Fix -Wformat problem.
3109
3fcb8548
AC
31102003-06-29 Andrew Cagney <cagney@redhat.com>
3111
3112 * remote.c (remote_wait): Call error, and not warning, when the
3113 packet is corrupt.
3114 (remote_async_wait): Ditto.
3115
9f9970a3
DJ
31162003-06-29 Daniel Jacobowitz <drow@mvista.com>
3117
3118 * sparc-tdep.c (sparc_y_regnum): Make external again.
3119
83a8ccca
DJ
31202003-06-29 Daniel Jacobowitz <drow@mvista.com>
3121
3122 * cli/cli-logging.c (pop_output_files): Add void to function
3123 definition.
3124
d2cf594a
AC
31252003-06-29 Andrew Cagney <cagney@redhat.com>
3126
3127 * frame.c (frame_register_unwind): Use unsigned char when dumping
3128 the buffer contents.
3129
0fac0b41
DJ
31302003-06-28 Daniel Jacobowitz <drow@mvista.com>
3131
3132 * cli/cli-logging.c: New file.
3133 * cli-out.c (struct ui_out_data): Add original_stream.
3134 (cli_redirect): New function.
3135 (cli_ui_out_impl): Add cli_redirect.
3136 (cli_out_new): Initialize original_stream.
3137 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3138 (uo_redirect, ui_out_redirect): New.
3139 * ui-out.h (struct ui_out_impl): Add redirect member.
3140 (redirect_ftype): New.
3141 (ui_out_redirect): Add prototype.
3142 * Makefile.in: Add rules for cli-logging.c.
3143 * NEWS: Mention "set logging".
3144
88a07d7c
EZ
31452003-06-27 Elena Zannoni <ezannoni@redhat.com>
3146
3147 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3148
4eb58876
AC
31492003-06-27 Andrew Cagney <cagney@redhat.com>
3150
3151 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3152 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3153 * avr-tdep.c (avr_call_dummy_address): Delete function.
3154 (avr_gdbarch_init): Do not set call_dummy_address.
3155
1549f619
EZ
31562003-06-27 Elena Zannoni <ezannoni@redhat.com>
3157
3158 * symfile.c (syms_from_objfile): Move variables to inner block.
3159 Move the checks for the non-mainline case a bit earlier to avoid
3160 doing some useless computations.
3161
3cb3398d
EZ
31622003-06-27 Elena Zannoni <ezannoni@redhat.com>
3163
3164 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3165
3799ccc6
EZ
31662003-06-26 Elena Zannoni <ezannoni@redhat.com>
3167
3168 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3169 sections.
3170
ce1f6491
MC
31712003-06-26 Michael Chastain <mec@shout.net>
3172
3173 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3174 gdb/testsuite/gdb.c++/pr-1210.exp.
3175
d958dfd0
AC
31762003-06-26 Andrew Cagney <cagney@redhat.com>
3177
3178 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3179 altivec_expression.h and altivec_registers.h.
3180
d31431ed
AC
31812003-06-26 Andrew Cagney <cagney@redhat.com>
3182
3183 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3184 info->mach when MIPS16. Patch suggested by Fred Fish.
3185
714b1282
AC
31862003-06-26 Andrew Cagney <cagney@redhat.com>
3187
3188 * utils.c (internal_vproblem): Print the problem to a reason
3189 buffer and then pass to query. Make the msg variable more local.
3190
42efa47a
AC
31912003-06-26 Andrew Cagney <cagney@redhat.com>
3192
3193 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3194 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3195 * gdbarch.h, gdbarch.c: Re-generate.
3196 * frame-base.c (default_frame_args_address): Update. Use
3197 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3198 not available.
3199 (default_frame_locals_address): Ditto for
3200 DEPRECATED_FRAME_LOCALS_ADDRESS.
3201 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3202 (vax_frame_num_args): Update.
3203 (vax_gdbarch_init): Update.
3204 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3205 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3206 * mcore-tdep.c (mcore_gdbarch_init): Update.
3207 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3208 * ia64-tdep.c (ia64_gdbarch_init): Update.
3209 * symtab.h (address_class): Update comments.
3210 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3211 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3212 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3213 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3214 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3215 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3216 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3217 * alpha-mdebug-tdep.c: Update.
3218 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3219
8ffd9b1b
AJ
32202003-06-26 Andreas Jaeger <aj@suse.de>
3221
3222 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3223 of SSE registers so that varargs functions work. Rework handling
3224 of passing arguments on the stack.
3225 (x86_64_store_return_value): Return double and float values in SSE
3226 register.
3227
e8ac10a6
MC
32282003-06-24 Michael Chastain <mec@shout.net>
3229
3230 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3231 the "constructor breakpoints ignored" bug.
3232
986af8e6
DC
32332003-06-25 David Carlton <carlton@kealia.com>
3234
3235 * MAINTAINERS: Update e-mail address.
3236
d64558a5
JB
32372003-06-24 Jim Blandy <jimb@redhat.com>
3238
e538d2d7
JB
3239 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3240
02631ec0
JB
3241 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3242 function.
3243 (ppc_linux_init_abi): Register it as the
3244 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3245
e716d87a
JB
3246 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3247 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3248 method.
3249
d64558a5
JB
3250 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3251 (ppc64_standard_linkage_target): Use it.
3252
449a5da4
AC
32532003-06-23 Andrew Cagney <cagney@redhat.com>
3254
3255 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3256 for 0 "int0" and 4 "int32" sized registers.
3257 * gdbtypes.c (builtin_type_int0): Define.
3258 (build_gdbtypes): Initialize builtin_type_int0.
3259 * gdbtypes.h (builtin_type_int0): Declare.
3260
b2a02dda
SC
32612003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3262
3263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3264 as characters are unsigned.
3265
fba3138e
DJ
32662003-06-22 Daniel Jacobowitz <drow@mvista.com>
3267
3268 PR gdb/1179
3269 * dwarfread.c (struct_type): Skip static fields without crashing.
3270
f6c8180b
AC
32712003-06-22 Andrew Cagney <cagney@redhat.com>
3272
3273 GDB 6.0 branch created.
f2c06f52
AC
3274 * README: Update.
3275 * PROBLEMS: Update. Empty.
3276 * NEWS: Update.
f6c8180b 3277
ae822768
DJ
32782003-06-22 Daniel Jacobowitz <drow@mvista.com>
3279
3280 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3281 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3282
261de166
AC
32832003-06-22 Andrew Cagney <cagney@redhat.com>
3284
3285 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3286 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3287 Velikov.
3288
30e94205
DJ
32892003-06-22 Daniel Jacobowitz <drow@mvista.com>
3290
3291 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3292 compilers.
3293
9e14d721
DJ
32942003-06-21 Daniel Jacobowitz <drow@mvista.com>
3295
3296 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3297 argument of val_print.
3298 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3299 to the address argument of baseclass_offset or target_read_memory.
3300 Do add it to the argument of cp_print_value_fields.
3301
a4b8ebc8
AC
33022003-06-21 Andrew Cagney <cagney@redhat.com>
3303
3304 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3305 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3306 instead of 0..NUM_REGS.
3307 (mips_register_reggroup_p): New function.
3308 (mips_pseudo_register_write): New function.
3309 (mips_pseudo_register_read): New function.
3310 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3311 based on the register's type.
3312 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3313 cooked.
3314 (mips_get_saved_register): Simplify. Assert that REGNO is a
3315 pseudo / cooked.
3316 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3317 (mips_register_type): Replace mips_register_virtual_type. Map
3318 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3319 when available.
3320 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3321 that the register is cooked / virtual.
3322 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3323 Only get the extra info when needed.
3324 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3325 (mips32_heuristic_proc_desc): Fetch the cooked register.
3326 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3327 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3328 (mips_print_register): Use gdbarch_register_type, instead of
3329 REGISTER_VIRTUAL_TYPE.
3330 (print_gp_register_row): Use gdbarch_register_type, instead of
3331 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3332 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3333 Print the pseudo / cooked registers.
3334 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3335 Print the pseudo / cooked registers.
3336 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3337 REG_NUM is pseudo / cooked.
3338 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3339 (mips_n32n64_xfer_return_value): Ditto.
3340 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3341 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3342 (mips_register_sim_regno): New function.
3343 (mips_gdbarch_init): Set deprecated_register_byte,
3344 register_group_p, pseudo_register_write, pseudo_register_read,
3345 register_sim_regno, and num_pseudo_regs. Set register_type,
3346 instead of register_virtual_type.
3347 * Makefile.in (mips-tdep.o): Update dependencies.
3348 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3349 REGISTER_VIRTUAL_TYPE.
3350 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3351 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3352 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3353 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3354 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3355
325ed089
DJ
33562003-06-21 Daniel Jacobowitz <drow@mvista.com>
3357
3358 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3359 * cli/cli-cmds.c: Include "gdb_vfork.h".
3360 (shell_escape): Use vfork.
3361
f0e7d0e8
AC
33622003-06-21 Andrew Cagney <cagney@redhat.com>
3363
c57bb9fa
AC
3364 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3365 32 bit floating-point register saves.
3366
6e51443a
AC
3367 * frame.h (deprecated_unwind_get_saved_register): Delete.
3368 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3369 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3370 and deprecated_get_next_frame_hack instead of
3371 deprecated_unwind_get_saved_register.
3372
ed183c7c
AC
3373 * mips-tdep.c (mips_dump_tdep): Do not print
3374 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3375
f0e7d0e8
AC
3376 * frame.c (get_frame_register): New function.
3377 (frame_unwind_register_signed): New function.
3378 (get_frame_register_signed): New function.
3379 (frame_unwind_register_unsigned): New function.
3380 (get_frame_register_unsigned): New function.
3381 * frame.h: Add comments on naming schema.
3382 (get_frame_register, frame_unwind_register_signed): Declare.
3383 (get_frame_register_signed, get_frame_register_signed): Declare.
3384 (frame_unwind_register_unsigned): Declare.
3385 (get_frame_register_unsigned): Declare.
3386
2224d941
TR
33872003-06-20 Theodore A. Roth <troth@openavr.org>
3388
3389 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3390
8619218d
TR
33912003-06-20 Theodore A. Roth <troth@openavr.org>
3392
3393 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3394 (avr_read_sp): Ditto.
3395
0b1b50c0
DJ
33962003-06-20 Daniel Jacobowitz <drow@mvista.com>
3397
3398 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3399 * config/arm/nm-linux.h: Likewise.
3400 * config/arm/tm-linux.h: Likewise.
3401 * config/ia64/nm-linux.h: Likewise.
3402 * config/ia64/tm-ia64.h: Likewise.
3403 * config/s390/tm-linux.h: Likewise.
3404 * config/s390/tm-s390.h: Likewise.
3405 * s390-nat.c: Likewise.
3406 * s390-tdep.c: Likewise.
3407
3408 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3409 * config/ia64/linux.mt: Likewise.
3410 * config/m68k/linux.mh: Likewise.
3411 * config/mips/linux.mt: Likewise.
3412 * config/powerpc/linux.mh: Likewise.
3413 * config/sh/linux.mt: Likewise.
3414
c8c18e65
KW
34152003-06-19 Kris Warkentin <kewarken@qnx.com>
3416
3417 * solib.c (solib_open): Change tests for whether to search
3418 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3419 comments.
3420
dcccef2e
TR
34212003-06-19 Theodore A. Roth <troth@openavr.org>
3422
3423 * avr-tdep.c (avr_frame_address): Delete function.
3424 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3425 set_gdbarch_frame_args_address.
3426
5861a190
AC
34272003-06-19 Andrew Cagney <cagney@redhat.com>
3428
3429 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3430 (REGISTER_CONVERT_FROM_TYPE): Delete.
3431 (mips_register_convert_to_type): Delete declaration.
3432 (mips_register_convert_from_type): Delete declaration.
3433 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3434 kernel/.
3435
0274a8ce
MS
34362003-06-19 Michael Snyder <msnyder@redhat.com>
3437
3438 * linux-nat.h: New file.
3439 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3440 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3441 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3442 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3443 (linux_make_note_section): Iterate over lwps instead of threads.
3444 (linux_do_thread_registers): Use lwp instead of merged pid.
3445 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3446 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3447 Add dependency on linux_nat_h.
3448
adf5f719
TR
34492003-06-19 Theodore A. Roth <troth@openavr.org>
3450
3451 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3452
6766a268
DJ
34532003-06-19 Daniel Jacobowitz <drow@mvista.com>
3454
3455 * varobj.c (get_type, get_target_type): Use check_typedef.
3456
1171114a
DJ
34572003-06-19 Daniel Jacobowitz <drow@mvista.com>
3458
3459 * breakpoint.c (insert_catchpoint): Call internal_error.
3460
adcf68a2
TR
34612003-06-19 Theodore A. Roth <troth@openavr.org>
3462
3463 * avr-tdep.c (avr_push_dummy_code): Delete function.
3464 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3465
ea67f13b
DJ
34662003-06-19 Daniel Jacobowitz <drow@mvista.com>
3467
3468 * arch-utils.c (default_prepare_to_proceed): Remove.
3469 (generic_prepare_to_proceed): Remove.
3470 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3471 (generic_prepare_to_proceed): Remove prototype.
3472 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3473 * gdbarch.c: Regenerate.
3474 * gdbarch.h: Regenerate.
3475 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3476 * hppah-nat.c (hppa_switched_threads): Remove.
3477 * infrun.c (prepare_to_proceed): New static function, copied from
3478 generic_prepare_to_proceed. Remove select_it argument.
3479 (proceed): Call prepare_to_proceed.
3480 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3481 variables.
3482 (ptrace_wait): Don't set the removed variables.
3483 (hppa_switched_threads): Remove.
3484 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3485 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3486 (lin_lwp_prepare_to_proceed): Remove prototype.
3487 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3488 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3489
4add8633
TR
34902003-06-18 Theodore A. Roth <troth@openavr.org>
3491
3492 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3493 trad-frame.h.
3494 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3495 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3496 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3497 (AVR_PROLOGUE_*): Enumerate prologue types.
3498 (struct frame_extra_info): Remove.
3499 (struct avr_unwind_cache): Define.
3500 (avr_write_sp): Delete function.
3501 (avr_read_fp): Ditto.
3502 (avr_init_extra_frame_info): Ditto.
3503 (avr_pop_frame): Ditto.
3504 (avr_frame_saved_pc): Ditto.
3505 (avr_saved_pc_after_call): Ditto.
3506 (avr_push_return_address): Ditto.
3507 (avr_frame_chain): Ditto.
3508 (avr_store_struct_return): Ditto.
3509 (avr_push_arguments): Ditto.
3510 (avr_scan_prologue): Update comments. Changed to set up the info for
3511 cache unwinding. Now returns end of prologue PC.
3512 (avr_skip_prologue): Better handling of functions lacking a prologue
3513 by using avr_scan_prologue.
3514 (avr_scan_arg_moves): New function.
3515 (avr_saved_regs_unwinder): Ditto.
3516 (avr_frame_unwind_cache): Ditto.
3517 (avr_unwind_pc): Ditto.
3518 (avr_frame_this_id): Ditto.
3519 (avr_frame_prev_register): Ditto.
3520 (avr_frame_p): Ditto.
3521 (avr_frame_base_address ): Ditto.
3522 (avr_unwind_dummy_id): Ditto.
3523 (avr_push_dummy_code): Ditto.
3524 (push_stack_item): Ditto.
3525 (pop_stack_item): Ditto.
3526 (avr_push_dummy_call): Ditto.
3527 (struct stack_item): Define.
3528 (avr_frame_unwind): Declare structure.
3529 (avr_frame_base): Ditto.
3530 (avr_gdbarch_init): Remove calls to
3531 set_gdbarch_deprecated_init_frame_pc,
3532 set_gdbarch_deprecated_target_read_fp,
3533 set_gdbarch_deprecated_dummy_write_sp,
3534 set_gdbarch_deprecated_fp_regnum,
3535 set_gdbarch_deprecated_push_arguments,
3536 set_gdbarch_deprecated_push_return_address,
3537 set_gdbarch_deprecated_pop_frame,
3538 set_gdbarch_deprecated_store_struct_return,
3539 set_gdbarch_deprecated_frame_init_saved_regs,
3540 set_gdbarch_deprecated_init_extra_frame_info,
3541 set_gdbarch_deprecated_frame_chain,
3542 set_gdbarch_deprecated_frame_saved_pc,
3543 set_gdbarch_deprecated_saved_pc_after_call.
3544 Add calls to set_gdbarch_push_dummy_call,
3545 set_gdbarch_push_dummy_code,
3546 frame_unwind_append_predicate,
3547 frame_base_set_default,
3548 set_gdbarch_unwind_dummy_id,
3549 set_gdbarch_unwind_pc.
3550 Wrap a long line.
3551
7be04a68
MS
35522003-06-18 Corinna Vinschen <vinschen@redhat.com>
3553
3554 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3555 registers for H8/300S.
3556 (h8300_print_registers_info): Ditto.
8ffd9b1b 3557 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3558
ae087d01
DJ
35592003-06-18 Daniel Jacobowitz <drow@mvista.com>
3560
3561 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3562 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3563 (lin_lwp_wait): Likewise. Update comments.
3564 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3565 (pull_pid_from_list, linux_record_stopped_pid): New.
3566
07d8f827
SC
35672003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3568
3569 * ada-lang.c (scan_discrim_bound): Name first argument.
3570 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3571 declared by ALL_BLOCK_SYMBOLS.
3572
7cb47b14
SC
35732003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3574
3575 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3576 ("regcache.h"): Include it.
3577 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3578
6ad8ae5c
DJ
35792003-06-17 Daniel Jacobowitz <drow@mvista.com>
3580
3581 * NEWS: Mention gdbserver detach change and "disconnect" command.
3582 * infcmd.c (disconnect_command): New function.
3583 (_initialize_infcmd): Add ``disconnect'' command.
3584 * remote.c (remote_async_detach): Delete.
3585 (remote_detach): Merge remote_async_detach.
3586 (remote_disconnect): New.
3587 (init_remote_ops): Set to_disconnect.
3588 (init_remote_cisco_ops): Likewise.
3589 (init_remote_async_ops): Likewise. Use remote_detach.
3590 * target.c (cleanup_target): Default to_disconnect.
3591 (update_current_target): Inherit to_disconnect.
3592 (target_disconnect, debug_to_disconnect): New functions.
3593 (setup_target_debug): Set to_disconnect.
3594 * target.h (struct target_ops): Add to_disconnect.
3595 (target_disconnect): Add prototype.
3596
687595f9
DJ
35972003-06-17 Daniel Jacobowitz <drow@mvista.com>
3598
3599 * breakpoint.c (insert_catchpoint): New function.
3600 (insert_breakpoints): Use catch_exceptions to call
3601 insert_catchpoint. Disable catchpoints if they fail to insert.
3602
29239a8f
DJ
36032003-06-17 Daniel Jacobowitz <drow@mvista.com>
3604
3605 * symfile.c (reread_symbols): Clear sym_private.
3606
2cdf3c63
AC
36072003-06-17 Andrew Cagney <cagney@redhat.com>
3608
3609 * trad-frame.h (struct frame_info): Add opaque declaration.
3610 * remote-fileio.h (struct cmd_list_element): Add opaque
3611 declaration.
3612 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3613 comments.
3614
cf0e1e0d
DJ
36152003-06-17 Daniel Jacobowitz <drow@mvista.com>
3616
3617 * remote.c (remote_prepare_to_store): Replace call to
3618 deprecated_read_register_bytes with multiple regcache_raw_read
3619 calls.
3620
192cdb19
KW
36212003-06-17 Kris Warkentin <kewarken@qnx.com>
3622
3623 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3624 (nto_find_and_open_solib): Likewise.
3625 (nto_init_solib_absolute_prefix): Likewise.
3626 (_initialize_nto_tdep): Fix indentation.
3627
89929b45
KW
36282003-06-17 Kris Warkentin <kewarken@qnx.com>
3629
3630 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3631
46019f27
KW
36322003-06-17 Kris Warkentin <kewarken@qnx.com>
3633
3634 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3635
1a38736e
JB
36362003-06-17 Jim Blandy <jimb@redhat.com>
3637
3638 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3639
3605c34a
TR
36402003-06-16 Theodore A. Roth <troth@openavr.org>
3641
3642 * avr-tdep.c (avr_extract_return_value): New function.
3643 (avr_gdbarch_init): Set extract_return_value method.
3644
870b3035
AC
36452003-06-16 Andrew Cagney <cagney@redhat.com>
3646
3647 * frame.h (deprecated_get_next_frame_hack): Declare.
3648 * frame.c (legacy_saved_regs_prev_register): Only require
3649 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3650 there are always saved regs.
3651 (deprecated_generic_get_saved_register): Do not require
3652 DEPRECATED_FRAME_INIT_SAVED_REGS.
3653 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3654 use frame ID unwind instead.
3655 (deprecated_get_next_frame_hack): New function.
3656
63d47a7d
CV
36572003-06-16 Corinna Vinschen <vinschen@redhat.com>
3658
3659 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3660 (h8300_push_dummy_call): ...this function. Some minor optimization.
3661 (h8300_push_return_address): Remove.
3662 (h8300_gdbarch_init): Remove calls to
3663 set_gdbarch_deprecated_dummy_write_sp,
3664 set_gdbarch_deprecated_push_arguments and
3665 set_gdbarch_deprecated_push_return_address.
3666 Add call to set_gdbarch_push_dummy_call.
3667
4bb1dc5e
CV
36682003-06-16 Corinna Vinschen <vinschen@redhat.com>
3669
3670 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3671 (E_PSEUDO_EXR_REGNUM): Ditto.
3672 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3673 registers into safe registers.
4bb1dc5e
CV
3674 (h8300_skip_prologue): Check for stm instruction to push registers
3675 used for register variables onto stack.
3676 (gdb_print_insn_h8300): Remove.
3677 (h8300_examine_prologue): Add a comment.
3678 (h8300_register_name): Take pseudo registers into account.
3679 (h8300s_register_name): Ditto.
3680 (h8300sx_register_name): Ditto.
3681 (h8300_print_register): Ditto.
3682 (h8300_print_registers_info): Define "nice" printing order.
3683 (h8300_saved_pc_after_call): Take pseudo registers into account.
3684 (h8300_register_type): Ditto. Return type used for remote connection
3685 when requesting real CCR or EXR register, return actual type when
3686 requesting pseudo CCR or EXR.
3687 (h8300_pseudo_register_read): New function.
3688 (h8300_pseudo_register_write): Ditto.
3689 (h8300_dbg_reg_to_regnum): Ditto.
3690 (h8300s_dbg_reg_to_regnum): Ditto.
3691 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3692 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3693 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3694 set_gdbarch_print_insn architecture dependent.
3695 Call set_gdbarch_pseudo_register_read and
3696 set_gdbarch_pseudo_register_write.
3697 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3698
a59fe496
AC
36992003-06-16 Andrew Cagney <cagney@redhat.com>
3700
3701 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3702 * gdbarch.h, gdbarch.c: Re-generate.
3703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3704 * s390-tdep.c (s390_gdbarch_init): Update.
3705 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3706 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3707 * mips-tdep.c (mips_gdbarch_init): Update.
3708 * mcore-tdep.c (mcore_gdbarch_init): Update.
3709 * cris-tdep.c (cris_gdbarch_init): Update.
3710 * infcall.c (call_function_by_hand): Update.
3711 * ia64-tdep.c (ia64_push_arguments): Update comment.
3712 * frame.c (legacy_get_prev_frame): Do not assume
3713 SAVE_DUMMY_FRAME_TOS_P.
3714 * dummy-frame.c (find_dummy_frame): Update comment.
3715
6f4e5a41
AC
37162003-06-16 Andrew Cagney <cagney@redhat.com>
3717
3718 * regcache.c (do_cooked_read): Do not use register_valid_p.
3719
72fab697
TR
37202003-06-15 Theodore A. Roth <troth@openavr.org>
3721
3722 * avr-tdep.c (avr_register_type): Remove a blank line.
3723 (avr_scan_prologue): Correct some comments.
3724
e3d8b004
TR
37252003-06-15 Theodore A. Roth <troth@openavr.org>
3726
3727 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3728 prologue types.
8ffd9b1b 3729 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3730 option.
3731 Add code to scan -mcall-prologues for mega devices.
3732
866b76ea
TR
37332003-06-15 Theodore A. Roth <troth@openavr.org>
3734
3735 * avr-tdep.c (avr_register_byte): Delete function.
3736 (avr_register_raw_size): Delete function.
3737 (avr_register_virtual_size): Delete function.
3738 (avr_register_virtual_type): Delete function.
3739 (avr_register_type): New function.
3740 (avr_address_to_pointer): Remove unused code.
3741 (avr_read_fp): Need to read FP as two separate bytes due to change to
3742 avr_register_type() usage.
3743 (avr_gdbarch_init): Don't set deprecated_register_size.
3744 Don't set deprecated_register_bytes.
3745 Don't set deprecated_register_byte.
3746 Don't set deprecated_register_raw_size.
3747 Don't set deprecated_max_register_raw_size.
3748 Don't set deprecated_register_virtual_size.
3749 Don't set deprecated_max_register_virtual_size.
3750 Don't set deprecated_register_virtual_type.
3751 Set register_type method.
3752
3993f6b1
DJ
37532003-06-15 Daniel Jacobowitz <drow@mvista.com>
3754
3755 * Makefile.in (linux-nat.o): Add rule.
3756 * linux-nat.c: New file.
3757 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3758 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3759 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3760 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3761 * config/arm/linux.mh (NATDEPFILES): Likewise.
3762 * config/i386/linux.mh (NATDEPFILES): Likewise.
3763 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3764 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3765 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3766 * config/mips/linux.mh (NATDEPFILES): Likewise.
3767 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3768 * config/s390/s390.mh (NATDEPFILES): Likewise.
3769 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3770
786a90bb
MK
37712003-06-15 Mark Kettenis <kettenis@gnu.org>
3772
3773 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3774 replace out-of-date comment.
3775
3bd3f01e
AC
37762003-06-15 Andrew Cagney <cagney@redhat.com>
3777
3778 * rdi-share/host.h (Fail): Change to a varargs function.
3779 * remote-rdi.c (Fail): Update.
8ffd9b1b 3780
de5b9bb9
MK
37812003-06-15 Mark Kettenis <kettenis@gnu.org>
3782
3783 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3784 (i386_convert_register_p, i386_register_to_value,
3785 i386_register_from_value): Handle types longer than 8 bytes.
3786
d532c08f
MK
37872003-06-15 Mark Kettenis <kettenis@gnu.org>
3788
3789 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3790 Move floating-point code to new function in i387-tdep.c.
3791 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3792 New functions containing code moved here from i386-tdep.c.
3793 * i387-tdep.h: Add opaque declaration for `struct type'.
3794 (i387_register_to_value, i387_value_to_register): New prototypes.
3795 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3796 (x86_64_init_abi): Set convert_register_p, register_to_value and
3797 value_to_register here.
8ffd9b1b 3798
42c466d7
AC
37992003-06-14 Andrew Cagney <cagney@redhat.com>
3800
3801 * mips-tdep.c (mips_register_to_value): Make static.
3802 (mips_value_to_register): Make static.
3803 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3804 * ia64-tdep.c (ia64_register_raw_size): Make static.
3805 (ia64_register_virtual_size): Make static.
3806 (ia64_register_byte): Make static.
3807 * i387-tdep.c: Include "i387-tdep.h".
3808 (print_387_control_word): Delete function.
3809 (print_387_status_word): Delete function.
3810 (print_387_status_bits): Delete function.
3811 (print_387_control_bits): Delete function.
3812 * Makefile.in (i387-tdep.o): Update dependencies.
3813 * rdi-share/host.h (Fail): Declare.
3814 * remote-rdi.c (Fail): Update to match declaration.
3815
2a9cda49
AC
38162003-06-14 Andrew Cagney <cagney@redhat.com>
3817
3818 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3819 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3820 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3821 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3822 * README: Delete reference to remote-array.
3823 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3824 (remote-array.o): Delete target.
3825 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3826 * remote-array.c: Delete file.
3827
ff2e87ac
AC
38282003-06-14 Andrew Cagney <cagney@redhat.com>
3829 Mark Kettenis <kettenis@gnu.org>
3830
3831 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3832 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3833 parameter with "frame".
3834 * gdbarch.h, gdbarch.c: Re-generate.
3835 * frame.h (put_frame_register): Declare.
3836 * frame.c (put_frame_register): New function.
3837 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3838 (legacy_register_to_value): Rewrite, use "frame" to get the
3839 register value.
3840 (legacy_value_to_register): Rewrite, use "frame" to find the
3841 register's location before storing.
3842 * arch-utils.h (legacy_convert_register_p): Update.
3843 (legacy_register_to_value, legacy_value_to_register): Update.
3844 * findvar.c (value_from_register): Rewrite, eliminate use of
3845 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3846 "frame" to REGISTER_TO_VALUE.
3847 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3848 lval_reg_frame_relative + lval_register branch of the switch. Do
3849 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3850 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3851 I386_EDI_REGNUM): New defines.
3852 (i386_next_regnum, i386_convert_register_p,
3853 i386_register_to_value, i386_value_to_register): New functions.
3854 (i386_register_convertible, i386_register_convert_to_virtual,
3855 i386_convert_to_raw): Remove functions.
3856 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3857 value_to_register instead of register_convertible,
3858 register_convert_to_virtual and register_convert_to_raw.
3859 * mips-tdep.c (mips_convert_register_p): New function.
3860 (mips_value_to_register): Replace mips_register_convert_from_type.
3861 (mips_register_to_value): Replace mips_register_convert_to_type.
3862 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3863 register_to_value.
3864 * alpha-tdep.c (alpha_convert_register_p): Update.
3865 (alpha_value_to_register): Update, store the register.
3866 (alpha_register_to_value): Update, fetch the register.
3867
98be1e77
TR
38682003-06-14 Theodore A. Roth <troth@openavr.org>
3869
3870 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3871 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3872 Don't set deprecated_call_dummy_words.
3873 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3874 Don't set remote_translate_xfer_address.
3875 (avr_io_reg_read_command): Remove commented out debug printf.
3876 Wrap a long line.
3877
57bc6122
TR
38782003-06-14 Theodore A. Roth <troth@openavr.org>
3879
3880 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3881 causes gdb to seg fault.
3882
eb01fc62
DJ
38832003-06-14 Daniel Jacobowitz <drow@mvista.com>
3884
3885 * sparc-nat.c (fetch_inferior_registers): Correct
3886 a reference to "registers".
3887
3b3e6bee
DJ
38882003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3889
3890 * Makefile.in (exc_request_U_h): Define
3891 (exc_request_S_h): Likewise.
3892 (msg_reply_S_h): Likewise.
3893 (msg_U_h): Likewise.
3894 (notify_S_h): Likewise.
3895 (process_reply_S_h): Likewise.
3896 (gnu-nat.o): Depend on gdb_obstack_h
3897 * gnu-nat.c: Include "gdb_obstack.h".
3898
b8de8283
AC
38992003-06-13 Andrew Cagney <cagney@redhat.com>
3900
3901 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3902 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3903
f3be58bc
AC
39042003-06-13 Andrew Cagney <cagney@redhat.com>
3905
3906 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3907 when deprecated REGISTER macros can be deleted.
3908 * gdbarch.h, gdbarch.c: Re-generate.
3909
4c0122c8
JB
39102003-06-13 Jim Blandy <jimb@redhat.com>
3911
3912 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3913 Linux entry point symbols for _dl_debug_state, too.
3914
3e210248
AC
39152003-06-13 Andrew Cagney <cagney@redhat.com>
3916
3917 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3918 available, do not use the FP register, and always save the TOS.
3919 * dummy-frame.c (dummy_frame_this_id): Do not assert
3920 SAVE_DUMMY_FRAME_TOS.
3921 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3922 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3923 (i386_push_dummy_call): Add 8 to the returned SP.
3924 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3925 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3926 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3927 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3928 (x86_64_push_dummy_call): Return "sp + 16".
3929 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3930 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3931 save_dummy_frame_tos.
3932
0b65af49
JB
39332003-06-13 Jim Blandy <jimb@redhat.com>
3934
3935 * frv-tdep.c (frv_use_struct_convention): Delete static
3936 declaration for function deleted in my change of 2003-06-12.
3937
4ea2465e
TR
39382003-06-13 Theodore A. Roth <troth@openavr.org>
3939
3940 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3941 (avr_pointer_to_address): Shift code addrs left 1 bit.
3942 (avr_convert_from_func_ptr_addr): Delete function since operation is
3943 better handled by avr_address_to_pointer and avr_pointer_to_address.
3944 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3945
1581182a
MK
39462003-06-13 Mark Kettenis <kettenis@gnu.org>
3947
3948 From Kelley Cook <kelleycook@wideopenwest.com>:
3949 * configure.host: Accept i[34567]86 variants.
3950 * configure.tgt: Likewise.
3951 * nlm/configure.in: Likewise.
3952 * nlm/configure: Regenerated.
3953
7aa1783e
RE
39542003-06-13 Richard Earnshaw <rearnsha@arm.com>
3955
3956 * arm-tdep.c (solib-svr4.h): Dont' include it.
3957 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3958 * arm-linux-tdep.c: ... here. Make static.
3959 (arm_linux_init_abi): Register it.
3960 (solib-svr4.h): Include it.
3961 * Makefile.in: Update dependencies.
3962 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3963 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3964
0261a0d0
CV
39652003-06-13 Corinna Vinschen <vinschen@redhat.com>
3966
3967 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3968 indicate registers used for return values.
3969 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3970 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3971 members.
3972 (h8300_init_extra_frame_info): Ditto.
3973 (h8300_frame_locals_address): Removed.
3974 (h8300_frame_args_address): Removed.
3975 (h8300_extract_return_value): Use new regcache structure. Only care
3976 for 16 bit CPUs.
3977 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3978 (h8300_store_return_value): Use new regcache structure. Only care
3979 for 16 bit CPUs.
3980 (h8300h_store_return_value): Same function for 32 bit CPUs.
3981 (h8300_store_struct_return): Removed.
3982 (h8300_extract_struct_value_address): Use new regcache structure.
3983 (h8300h_extract_struct_value_address): Removed.
3984 (h8300_push_dummy_code): New function.
3985 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3986 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3987 set_gdbarch_store_return_value architecture dependent.
3988 Call set_gdbarch_push_dummy_code and
3989 set_gdbarch_extract_struct_value_address.
3990 Remove calls to set_gdbarch_frame_args_address,
3991 set_gdbarch_frame_locals_address,
3992 set_gdbarch_deprecated_store_struct_return,
3993 set_gdbarch_deprecated_extract_return_value,
3994 set_gdbarch_deprecated_extract_struct_value_address,
3995 set_gdbarch_deprecated_call_dummy_words and
3996 set_gdbarch_deprecated_sizeof_call_dummy_words.
3997
055c394a
CV
39982003-06-13 Corinna Vinschen <vinschen@redhat.com>
3999
4000 * h8300-tdep.c (h8300_register_byte): Remove.
4001 (h8300h_register_byte): Remove.
4002 (h8300_register_virtual_type): Remove. Substitute by...
4003 (h8300_register_type): New function.
4004 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4005 (h8300h_extract_struct_value_address): Ditto.
4006 (h8300_gdbarch_init): Drop calls to
4007 set_gdbarch_deprecated_register_byte and
4008 set_gdbarch_deprecated_register_virtual_type.
4009 Add call to set_gdbarch_register_type.
4010
9c04cab7
AC
40112003-06-13 Andrew Cagney <cagney@redhat.com>
4012
4013 * gdbarch.sh: Update comments on registers.
4014 (deprecated_register_byte): Rename register_byte.
4015 (deprecated_register_raw_size): Rename register_raw_size.
4016 (deprecated_register_virtual_size): Rename register_virtual_size.
4017 (deprecated_register_virtual_type): Rename register_virtual_type.
4018 * gdbarch.h, gdbarch.c: Re-generate.
4019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4020 * vax-tdep.c (vax_gdbarch_init): Update.
4021 * v850-tdep.c (v850_gdbarch_init): Update.
4022 * sparc-tdep.c (sparc_gdbarch_init): Update.
4023 * sh-tdep.c (sh_gdbarch_init): Update.
4024 * s390-tdep.c (s390_gdbarch_init): Update.
4025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4026 * ns32k-tdep.c: Update.
4027 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4028 * mips-tdep.c (mips_gdbarch_init): Update.
4029 * mcore-tdep.c (mcore_gdbarch_init): Update.
4030 * m68k-tdep.c (m68k_gdbarch_init): Update.
4031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4032 * ia64-tdep.c (ia64_gdbarch_init): Update.
4033 * hppa-tdep.c (hppa_gdbarch_init): Update.
4034 * h8300-tdep.c (h8300_gdbarch_init): Update.
4035 * frv-tdep.c (frv_gdbarch_init): Update.
4036 * cris-tdep.c (cris_gdbarch_init): Update.
4037 * avr-tdep.c (avr_gdbarch_init): Update.
4038 * alpha-tdep.c (alpha_gdbarch_init): Update.
4039 * arm-tdep.c (arm_gdbarch_init): Update.
4040
b060cbea
AC
40412003-06-13 Andrew Cagney <cagney@redhat.com>
4042
4043 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4044 mips_o32_use_struct_convention with always_use_struct_convention.
4045
0fc9922a
DC
40462003-06-12 David Carlton <carlton@kealia.com>
4047
4048 * cp-namespace.c (cp_set_block_scope): Comment out
4049 processing_has_namespace_info branch.
4050
1fd35568
JB
40512003-06-12 Jim Blandy <jimb@redhat.com>
4052
f470a70a
JB
4053 Recognize and skip 64-bit PowerPC Linux linkage functions.
4054 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4055 insn_pattern, insns_match_pattern, d_field, ds_field): New
4056 functions, macros, and types for working with PPC instructions.
4057 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4058 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4059 ppc64_skip_trampoline_code): New functions, variables, and macros
4060 for recognizing and skipping linkage functions.
4061 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4062 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4063
49ff75ad
JB
4064 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4065 register offsets for both the 32- and 64-bit interfaces.
4066
bd918c83
JB
4067 Actually finish the job started by my change of 2003-05-29.
4068 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4069 other #definition of this.
4070 (ppc_linux_skip_trampoline_code): Remove declaration.
4071 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4072 static.
4073 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4074 method for GDBARCH.
4075
4076 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4077 'long' on ppc64-*-linux*.
4078
f8c59253
JB
4079 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4080 isn't #defined, assume the register doesn't exist: act as if
4081 tdep->ppc_mq_regnum were -1.
4082
8fbb30b1
JB
4083 * configure.host, configure.tgt: Add entries for
4084 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4085 powerpc/linux.mt.
4086 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4087 New files.
4088
1fd35568
JB
4089 * arch-utils.c (always_use_struct_convention): New function.
4090 * arch-utils.h (always_use_struct_convention): New prototype.
4091 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4092 (alpha_gdbarch_init): Register always_use_struct_convention,
4093 instead of alpha_use_struct_convention.
4094 * cris-tdep.c (cris_use_struct_convention): Delete.
4095 (cris_gdbarch_init): Register always_use_struct_convention,
4096 instead of cris_use_struct_convention.
4097 * frv-tdep.c (frv_use_struct_convention): Delete.
4098 (frv_gdbarch_init): Register always_use_struct_convention,
4099 instead of frv_use_struct_convention.
4100 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4101 (h8300_gdbarch_init): Register always_use_struct_convention,
4102 instead of h8300_use_struct_convention.
e3305dd9 4103 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4104 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4105 instead of mips_o32_use_struct_convention.
4106
e14e6e9c
AC
41072003-06-12 Andrew Cagney <cagney@redhat.com>
4108
4109 * wince.c: Include "mips-tdep.h".
4110 * mips-tdep.h (mips_next_pc): Declare.
4111 * mcore-tdep.c: Make more local functions static.
4112 * Makefile.in (wince.o): Update dependencies.
4113
2335f48e
DC
41142003-06-12 David Carlton <carlton@kealia.com>
4115
4116 * symtab.c (lookup_symbol_aux_minsyms): Replace
4117 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4118 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4119 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4120 SYMBOL_NATURAL_NAME.
4121
f70a7d61
AS
41222003-06-12 Andreas Schwab <schwab@suse.de>
4123
4124 * Makefile.in (tuiDisassem.o): Update dependencies.
4125
b6429628
DC
41262003-06-12 David Carlton <carlton@bactrian.org>
4127
4128 * symtab.h: Delete declaration of make_symbol_overload_list.
4129 Add declaration of lookup_partial_symbol.
4130 * symtab.c (remove_params): Move to cp-support.c.
4131 (overload_list_add_symbol, make_symbol_overload_list)
4132 (sym_return_val_size, sym_return_val_index): Ditto.
4133 (lookup_partial_symbol): Make extern.
4134 * cp-support.h: Add declaration of make_symbol_overload_list.
4135 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4136 symtab.h, and block.h.
4137 (remove_params): Move here from symtab.c.
4138 (overload_list_add_symbol, make_symbol_overload_list)
4139 (sym_return_val_size, sym_return_val_index): Ditto.
4140 * valops.c: Include cp-support.h.
4141 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4142 frame_h, and block_h.
4143 (valops.o): Depend on cp_support_h.
4144
084edea5
CV
41452003-06-12 Corinna Vinschen <vinschen@redhat.com>
4146
4147 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4148 substitute by NUM_REGS throughout.
4149 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4150 (h8300s_register_name): New function for H8S registers.
4151 (h8300sx_register_name): Ditto for H8SX registers.
4152 (h8300_print_register): Revise register printing, avoid depending
4153 on 32 bit long.
0261a0d0 4154 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4155 (h8300h_register_byte): New function for any other architecture.
4156 (h8300_register_raw_size): Remove.
4157 (h8300_register_virtual_type): Revise to return actually useful
4158 type.
4159 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4160 (h8300h_extract_struct_value_address): New function for any other
4161 architecture.
4162 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4163 set_gdbarch_register_name, set_gdbarch_register_byte,
4164 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4165 Remove calls to set_gdbarch_deprecated_register_size,
4166 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4167 set_gdbarch_deprecated_max_register_raw_size,
4168 set_gdbarch_register_virtual_size and
4169 set_gdbarch_deprecated_max_register_virtual_size entirely.
4170 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4171 set_gdbarch_long_double_bit.
4172
06194148
JJ
41732003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4174
8ffd9b1b
AJ
4175 * doublest.c (convert_doublest_to_floatformat): When dealing
4176 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4177 processing a full 32 bits of mantissa.
4178
de4f826b
DC
41792003-06-11 David Carlton <carlton@bactrian.org>
4180
4181 * dictionary.h: New.
4182 * dictionary.c: New.
4183 * block.h: Add opaque declaration for struct dictionary.
4184 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4185 'sym' members.
4186 (BLOCK_DICT): New macro.
4187 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4188 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4189 BLOCK_SHOULD_SORT.
4190 (ALL_BLOCK_SYMBOLS): Update definition.
4191 * Makefile.in (SFILES): Add dictionary.c.
4192 (dictionary_h): New.
4193 (COMMON_OBS): Add dictionary.o.
4194 (dictionary.o): New.
4195 (ada-lang.o): Depend on dictionary_h.
4196 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4197 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4198 (mi-cmd-stack.o): Ditto.
4199 (gdbtk-cmds.o): Update dependencies.
4200 (gdbtk-stack.o): Ditto.
4201 * ada-lang.c: Include dictionary.h.
4202 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4203 (fill_in_ada_prototype, debug_print_block): Ditto.
4204 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4205 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4206 'is_sorted'.
4207 * mdebugread.c: Include dictionary.h.
4208 (struct parse_stack): Delete 'maxsyms' member.
4209 (parse_symbol): Update calls to new_block. Delete calls to
4210 shrink_block. Use dictionary methods.
4211 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4212 Update calls to new_symtab. Don't maintain maxsyms data.
4213 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4214 (add_symbol): Just call dict_add_symbol.
4215 (new_symtab): Delete 'maxsyms' argument.
4216 (new_symtab): Update calls to new_block.
4217 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4218 (shrink_block): Delete function.
4219 (fixup_sigtramp): Update call to new_block. Add symbol via
4220 dict_add_symbol.
4221 * jv-lang.c: Include dictionary.h.
4222 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4223 appropriately. Set class_symtab->free_func. Make sure the
4224 blockvector is big enough to hold two blocks.
4225 (add_class_symtab_symbol): Use dictionary methods.
4226 (free_class_block): New function.
4227 (type_from_class): Replace explicit iteration by
4228 ALL_BLOCK_SYMBOLS.
4229 * symtab.h (struct symtab): Replace 'free_ptr' method by
4230 'free_func'.
4231 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4232 sort_symtab_syms.
4233 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4234 sort_symtab_syms.
4235 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4236 Include dictionary.h.
4237 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4238 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4239 sort_symtab_syms.
4240 * objfiles.c: Include dictionary.h.
4241 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4242 * buildsym.c: Include dictionary.h.
4243 (finish_block): Use dictionary methods.
4244 (end_symtab): Set free_func to NULL, not free_ptr.
4245 * tracepoint.c: Include dictionary.h.
4246 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4247 (scope_info): Ditto.
4248 * stack.c: Include dictionary.h.
4249 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4250 (print_block_frame_labels, print_frame_arg_vars)
4251 (print_frame_args): Ditto.
4252 * symmisc.c (free_symtab_block): Use dictionary methods.
4253 (dump_symtab): Ditto.
4254 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4255 Include dictionary.h.
4256 * symfile.h: Delete declarations of sort_block_syms,
4257 sort_symtab_syms.
4258 * symfile.c (sort_block_syms): Delete.
4259 (sort_symtab_syms): Delete.
4260 * symtab.c: Include dictionary.h.
4261 (lookup_block_symbol): Use dictionary iterators.
4262 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4263 (search_symbols, make_symbol_completion_list): Ditto.
4264 (make_symbol_overload_list): Ditto.
4265 * valops.c (value_of_local): Use dict_empty.
4266 Include dictionary.h.
4267
a31f978c
JB
42682003-06-11 J. Brobecker <brobecker@gnat.com>
4269
4270 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4271
526e70c0
DC
42722003-06-11 David Carlton <carlton@bactrian.org>
4273
4274 * block.h (BLOCK_SHOULD_SORT): Delete.
4275 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4276 blocks.
4277 * ada-lang.c (ada_add_block_symbols): Ditto.
4278 * symfile.c (sort_block_syms): Delete.
4279 (sort_symtab_syms): Ditto.
4280 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4281 declarations.
4282 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4283 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4284 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4285 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4286 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4287 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4288 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4289
33c08150
JJ
42902003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4291
8ffd9b1b 4292 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4293 bits to 128.
4294
781a750d
AC
42952003-06-11 Andrew Cagney <cagney@redhat.com>
4296
4297 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4298 REGISTER_CONVERTIBLE.
4299 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4300 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4301 * gdbarch.h, gdbarch.c: Re-generate.
4302 * arch-utils.h (deprecated_register_convertible_not): Rename
4303 generic_register_convertible_not.
4304 * arch-utils.c (deprecated_register_convertible_not): Rename
4305 generic_register_convertible.
4306 (legacy_convert_register_p, legacy_register_to_value): Update.
4307 * sh-tdep.c (sh64_push_arguments): Update.
4308 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4309 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4310 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4311 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4312 * arch-utils.c (legacy_value_to_register): Update.
4313 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4314 (rs6000_register_convert_to_raw): Make parameter "from" const.
4315 * mips-tdep.c (mips_gdbarch_init): Update.
4316 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4317 * infcmd.c (default_print_registers_info): Update.
4318 * ia64-tdep.c (ia64_gdbarch_init): Update.
4319 (ia64_register_convert_to_raw): Make parameter "from" const.
4320 * i386-tdep.c (i386_gdbarch_init): Update.
4321 (i386_register_convert_to_raw): Update.
4322
cd90e54f
AC
43232003-06-11 Andrew Cagney <cagney@redhat.com>
4324
4325 * remote-fileio.c: Include "remote-fileio.h".
4326 * Makefile.in (remote-fileio.o): Update dependencies.
4327 (remote_fileio_h): Fix typo.
4328
a78f21af
AC
43292003-06-11 Andrew Cagney <cagney@redhat.com>
4330
4331 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4332 (xstormy16_save_dummy_frame_tos): Make static.
4333 (_initialize_xstormy16_tdep): Add declaration.
4334 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4335 * v850-tdep.c: Make local functions static.
4336 (_initialize_v850_tdep): Add declaration.
4337 * sparc-tdep.c: Make local functions static.
4338 (_initialize_sparc_tdep): Add declaration.
4339 * sh-tdep.c: Make local functions static.
4340 (_initialize_sh_tdep): Add declaration.
4341 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4342 * s390-tdep.c: Make local functions static.
4343 (_initialize_s390_tdep): Add declaration.
4344 * dbxread.c (find_stab_function_addr): Make static.
4345 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4346 * ocd.c (_initialize_remote_ocd): Add declaration.
4347 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4348 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4349 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4350 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4351 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4352 * remote-array.c (_initialize_array): Add declaration.
4353 (_initialize_remote_monitors): Add declaration.
4354 * remote-mips.c: Make local functions static.
4355 (_initialize_remote_mips): Add declaration.
4356 * mcore-tdep.c: Make all local functions static.
4357 (_initialize_mcore_tdep): Add declaration.
4358 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4359 * abug-rom.c (_initialize_abug_rom): Add declaration.
4360 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4361 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4362 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4363 * remote-est.c (_initialize_est): Add declaration.
4364 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4365 (m68hc11_call_dummy_address): Make static.
4366 * ia64-tdep.c: Make local functions static.
4367 (_initialize_ia64_tdep): Add declaration.
4368 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4369 * monitor.c (monitor_wait_filter): Make static.
4370 (_initialize_remote_monitors): Add declaration.
4371 * remote-hms.c (_initialize_remote_hms): Add declaration.
4372 * remote-e7000.c (fetch_regs_from_dump): Make static.
4373 (expect_n): Make static.
4374 (_initialize_remote_e7000): Add declaration.
4375 * ser-e7kpc.c: Always include "defs.h".
4376 (_initialize_ser_e7000pc): Add declaration.
4377 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4378 * cris-tdep.c: Make all but one function static.
4379 (_initialize_cris_tdep): Add declaration.
4380 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4381 * solib.c (update_solib_list): Make static.
4382 (_initialize_solib): Add declaration.
4383 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4384 (_initialize_avr_tdep): Add declaration.
4385 * remote-rdi.c (voiddummy): Make static.
4386 (_initialize_remote_rdi): Add declaration.
4387 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4388 * remote-rdp.c (send_rdp): Make static.
4389 (_initialize_remote_rdp): Add declaration.
4390 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4391
cbcdb1f5
CV
43922003-06-11 Corinna Vinschen <vinschen@redhat.com>
4393
4394 * remote-fileio.c: Make ari happy.
4395
a191ea8d
JB
43962003-06-10 J. Brobecker <brobecker@gnat.com>
4397
4398 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4399 fetching the trailing bytes of the buffer we are about to write.
4400
0ef75e11
AC
44012003-06-10 Andrew Cagney <cagney@redhat.com>
4402
4403 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4404 * Makefile.in (remote-fileio.o): Update dependencies.
4405 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4406 include <setjmp.h>, or <sys/types.h> conditional on USG.
4407 (remote_fio_jmp_buf): Delete global variable.
4408
449092f6 44092003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4410 Martin M. Hunt <hunt@redhat.com>
449092f6 4411
559fa028
AC
4412 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4413 (SFILES): Add remote-fileio.c.
4414 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4415 dependencies for building remote.o.
449092f6
CV
4416 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4417 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4418 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4419 static storage class.
4420 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4421 'F' packet.
4422 (_initialize_remote): Call initialize_remote_fileio().
4423 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4424 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4425 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4426 (captured_main): Initialize new ui_files.
4427 * ui-file.c: Add read and fgets input functions.
4428 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4429 (null_file_read): New function.
4430 (ui_file_read): New function.
4431 (set_ui_file_read): New function.
4432 (stdio_file_read): New function.
4433 * ui-file.h: New type ui_file_read_ftype.
4434 (set_ui_file_read): Declare.
4435 (ui_file_read): Declare.
4436
248de703
AC
44372003-06-09 Andrew Cagney <cagney@redhat.com>
4438
4439 * frame.h (deprecated_unwind_get_saved_register): Rename
4440 generic_unwind_get_saved_register, update comments.
4441 * mips-tdep.c (mips_get_saved_register): Update.
4442 * frame.c (deprecated_unwind_get_saved_register): Update.
4443
0ed8aa57
AC
44442003-06-09 Andrew Cagney <cagney@redhat.com>
4445
4446 * vax-tdep.c (vax_frame_locals_address): Delete function.
4447 (vax_gdbarch_init): Do not set frame_locals_address.
4448 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4449 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4450 * s390-tdep.c (s390_frame_args_address): Delete function.
4451 (s390_gdbarch_init): Do not set frame_args_address or
4452 frame_locals_address.
4453 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4454 (ns32k_gdbarch_init): Do not set frame_locals_address.
4455 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4456 (hppa_frame_locals_address): Delete function.
4457 (hppa_gdbarch_init): Do not set frame_args_address, or
4458 frame_locals_address.
4459 * arm-tdep.c (arm_frame_args_address): Delete.
4460 (arm_frame_locals_address): Delete.
4461 (arm_gdbarch_init): Do not set frame_args_address, or
4462 frame_locals_address.
4463
983a287a
AC
44642003-06-09 Andrew Cagney <cagney@redhat.com>
4465
4466 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4467 * gdbarch.h, gdbarch.c: Re-generate.
4468 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4469 * arch-utils.c (frame_num_args_unknown): Delete function.
4470 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4471 (frame_info): Use FRAME_NUM_ARGS_P.
4472 * arm-tdep.c (arm_frame_num_args): Delete function.
4473 (arm_gdbarch_init): Do not set frame_num_args.
4474 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4475 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4476 (hppa_gdbarch_init): Do not set frame_num_args.
4477 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4479 frame_num_args to default frame_num_args_unknown.
4480 * v850-tdep.c (v850_gdbarch_init): Ditto.
4481 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4482 * sh-tdep.c (sh_gdbarch_init): Ditto.
4483 * s390-tdep.c (s390_gdbarch_init): Ditto.
4484 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4485 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4486 * mips-tdep.c (mips_gdbarch_init): Ditto.
4487 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4488 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4490 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4491 * i386-tdep.c (i386_gdbarch_init): Ditto.
4492 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4493 * frv-tdep.c (frv_gdbarch_init): Ditto.
4494 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4495 * cris-tdep.c (cris_gdbarch_init): Ditto.
4496 * avr-tdep.c (avr_gdbarch_init): Ditto.
4497 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4498
8d3b0994
AC
44992003-06-09 Andrew Cagney <cagney@redhat.com>
4500
4501 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4502 (print_frame_args): Moved to "stack.c".
4503 * stack.c: Include "gdb_assert.h".
4504 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4505 (print_frame_args): Moved from "printcmd.c".
4506 * frame.h (print_frame_args): Delete declaration.
4507 * Makefile.in (stack.o): Update dependencies.
4508
25e3a86b
AC
45092003-06-08 Andrew Cagney <cagney@redhat.com>
4510
4511 * frame.c (get_prev_frame): Remove reference to
4512 frame_args_address_correct in comments.
4513 * frame-base.c (default_frame_args_address): Delete code
4514 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4515 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4516 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4517 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4518 (vax_frame_args_address_correct): Delete declaration.
4519
a9e5fdc2
AC
45202003-06-08 Andrew Cagney <cagney@redhat.com>
4521
4522 * gdbarch.sh (UNWIND_SP): Add.
4523 * gdbarch.h, gdbarch.c: Re-generate.
4524 * frame.c (frame_sp_unwind): New function.
4525 (get_frame_sp): New function.
4526 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4527 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4528 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4529 value.
4530 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4531 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4532
8983bd83
AC
45332003-06-08 Andrew Cagney <cagney@redhat.com>
4534
7fec2c59
AC
4535 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4536 REMOTE_BREAKPOINT.
4537 * remote.c: Update.
4538 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4539 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4540 * config/m68k/tm-sun3.h: Update.
4541 * config/m68k/tm-m68klynx.h: Update.
4542 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4543
8983bd83
AC
4544 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4545 trad_frame". Update comments.
4546 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4547 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4548 (trad_frame_register_value, trad_frame_prev_register): Update.
4549
b9362cc7
AC
45502003-06-08 Andrew Cagney <cagney@redhat.com>
4551
4552 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4553 from GCC's acinclude.m4.
4554 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4555 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4556 * main.c (error_init): Delete declaration.
4557 * defs.h (error_init): Declare.
4558 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4559 (rs6000_convert_from_func_ptr_addr): Make static.
4560 (_initialize_rs6000_tdep): Add declaration.
4561 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4562 (show_commands, set_verbose, show_history): Delete declaration.
4563 * top.h (set_verbose): Add declaration.
4564 (show_history, set_history, show_commands): Add declaration.
4565 (do_restore_instream_cleanup): Add declaration.
4566 * objc-lang.c (specialcmp): Make static.
4567 (print_object_command): Make static.
4568 (find_objc_msgsend): Make static.
4569 (find_objc_msgcall_submethod_helper): Make static.
4570 (find_objc_msgcall_submethod): Make static.
4571 (_initialize_objc_language): Add declaration.
4572 (find_implementation_from_class): Make static.
4573 (find_implementation): Make static.
4574 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4575 * objc-lang.h (lookup_struct_typedef): Add declaration.
4576 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4577 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4578 (do_restore_user_call_depth): Make static.
4579 (do_restore_instream_cleanup): Delete declaration.
4580 (dont_repeat): Delete declaration.
4581 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4582 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4583 * reggroups.c (_initialize_reggroup): Add declaration.
4584 * cp-support.c (_initialize_cp_support): Add declaration.
4585 * cp-abi.c (_initialize_cp_abi): Add declaration.
4586 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4587 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4588 (_initialize_gnu_v3_abi): Add declaration.
4589 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4590 (_initialize_gnu_v2_abi): Add declaration.
4591 * frame-base.c (_initialize_frame_base): Add declaration.
4592 * doublest.c (floatformat_from_length): Make static.
4593 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4594 * frame.c (create_sentinel_frame): Make static.
4595 (_initialize_frame): Add declaration.
4596 * top.c (do_catch_errors): Make static.
4597 (gdb_rl_operate_and_get_next_completion): Make static.
4598 * typeprint.c: Include "typeprint.h".
4599 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4600 (sentinel_frame_this_id): Make static.
4601 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4602 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4603 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4604 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4605 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4606 * maint.c (maintenance_print_architecture): Make static.
4607 * signals/signals.c (_initialize_signals): Add declaration.
4608 * std-regs.c (_initialize_frame_reg): Add declaration.
4609 * jv-exp.y (push_variable): ISO C definition.
4610 (push_qualified_expression_name): Ditto.
4611 * memattr.c (_initialize_mem): Add declaration.
4612 * remote.c (remote_check_watch_resources): Make static.
4613 (remote_stopped_by_watchpoint): Make static.
4614 (remote_stopped_data_address): Make static.
4615 * d10v-tdep.c (nr_dmap_regs): Make static.
4616 (a0_regnum): Make static.
4617 (d10v_frame_unwind_cache): Make static.
4618 (d10v_frame_p): Make static.
4619 * osabi.c (show_osabi): Make static.
4620 (_initialize_gdb_osabi): Add extern declaration.
4621 * gdbtypes.c (make_qualified_type): Make static.
4622 (safe_parse_type): Make static.
4623 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4624 * macrotab.c (macro_bcache_free): Make static.
4625 * interps.c (interp_set_quiet): Make static.
4626 (interpreter_exec_cmd): Make static.
4627 * stack.h (select_frame_command): New file.
4628 * stack.c: Include "stack.h".
4629 (select_frame_command_wrapper): Delete function.
4630 (select_frame_command): Make global.
4631 * infcall.c: Include "infcall.h".
4632 * linespec.c: Include "linespec.h".
4633 * symfile.c (sections_overlap): Make static.
4634 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4635 * charset.c (_initialize_charset): Add missing prototype.
4636 * regcache.c (init_legacy_regcache_descr): Make static.
4637 (do_regcache_xfree): Make static.
4638 (regcache_xfer_part): Make static.
4639 (_initialize_regcache): Add missing prototype.
4640 * breakpoint.c (parse_breakpoint_sals): Make static.
4641 (breakpoint_sals_to_pc): Make static.
4642 * interps.h (clear_interpreter_hooks): ISO C declaration.
4643 * Makefile.in (stack_h): Define.
4644 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4645 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4646
a0f267c7
AC
46472003-06-08 Andrew Cagney <cagney@redhat.com>
4648
4649 * Makefile.in (d10v-tdep.o): Update dependencies.
4650 (SFILES): Add trad-frame.c.
4651 (trad_frame_h): Define.
4652 (COMMON_OBS): Add trad-frame.o.
4653 (trad-frame.o): Specify dependencies.
4654 * d10v-tdep.c: Include "trad-frame.h".
4655 (saved_regs_unwinder): Delete function.
4656 (d10v_frame_prev_register): Use trad_frame_prev_register.
4657 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4658 trad_frame", delete "regs" and "prev_sp".
4659 (prologue_find_regs): Use trad-frame.
4660 * trad-frame.h, trad-frame.c: New files.
4661
4538b4f4
MK
46622003-06-08 Mark Kettenis <kettenis@gnu.org>
4663
4664 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4665
a0273b2f
AF
46662003-06-07 Adam Fedor <fedor@gnu.org>
4667
4668 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4669 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4670 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4671 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4672 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4673 Use it.
4674
3a6c3343
AC
46752003-06-07 Andrew Cagney <cagney@redhat.com>
4676
4677 * symfile.h: Re-indent, clean up comments.
4678
b46e02f6
AC
46792003-06-07 Andrew Cagney <cagney@redhat.com>
4680
4681 * inferior.h (deprecated_write_sp): Replace
4682 generic_target_write_sp.
4683 * regcache.c (deprecated_write_sp): Replace
4684 generic_target_write_sp.
4685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4686 * vax-tdep.c (vax_gdbarch_init): Update.
4687 * v850-tdep.c (v850_gdbarch_init): Update.
4688 * sparc-tdep.c (sparc_gdbarch_init): Update.
4689 * sh-tdep.c (sh_gdbarch_init): Update.
4690 * s390-tdep.c (s390_gdbarch_init): Update.
4691 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4692 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4693 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4694 * mcore-tdep.c (mcore_gdbarch_init): Update.
4695 * m68k-tdep.c (m68k_gdbarch_init): Update.
4696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4697 * ia64-tdep.c (ia64_gdbarch_init): Update.
4698 * h8300-tdep.c (h8300_gdbarch_init): Update.
4699 * frv-tdep.c (frv_gdbarch_init): Update.
4700 * cris-tdep.c (cris_gdbarch_init): Update.
4701 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4702
a42e117c
AC
47032003-06-07 Andrew Cagney <cagney@redhat.com>
4704
4705 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4706 Assert that PC_REGNUM is valid.
4707 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4708
bd1ce8ba
AC
47092003-06-07 Andrew Cagney <cagney@redhat.com>
4710
4711 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4712 * gdbarch.h, gdbarch.c: Regenerate.
4713 * mn10300-tdep.c: Include "gdb_assert.h".
4714 (mn10300_read_fp): New function.
4715 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4716 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4717 * ia64-tdep.c: Include "gdb_assert.h".
4718 (ia64_read_fp): New function.
4719 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4720 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4721 * regcache.c (generic_target_read_sp): Delete function.
4722 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4723 * inferior.h (generic_target_read_sp): Delete declaration.
4724 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4725 generic_target_read_sp.
4726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4727 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4728 * sh-tdep.c (sh_gdbarch_init): Ditto.
4729 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4730 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4731
ec5cbaec
AC
47322003-06-07 Andrew Cagney <cagney@redhat.com>
4733
4734 * gdbarch.sh: Comment each field of startup_gdbarch.
4735 * gdbarch.h, gdbarch.c: Re-generate.
4736
cde9ea48
AC
47372003-06-07 Andrew Cagney <cagney@redhat.com>
4738
4739 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4740 * gdbarch.h, gdbarch.c: Re-generate.
4741 * regcache.c: Update comments on read_pc et.al.
4742 (generic_target_read_pc): Delete function.
4743 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4744 * inferior.h (generic_target_read_pc): Delete declaration.
4745 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4746 generic_target_read_pc.
4747 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4748 * sh-tdep.c (sh_gdbarch_init): Ditto.
4749 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4751
9a90a780
AC
47522003-06-07 Andrew Cagney <cagney@redhat.com>
4753
4754 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4755 "index" with "special_local_sect". Use strcmp instead of STREQ.
4756 Append period to coments.
4757
a39a16c4
MM
47582003-06-06 Mark Mitchell <mark@codesourcery.com>
4759
4760 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4761 (elfstab_offset_sections): Likewise.
4762 * gdb-stabs.h (stab_section_info): Likewise.
4763 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4764 * objfiles.c (objfile_relocate): Likewise.
4765 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4766 * remote.c (get_offsets): Likewise.
4767 (remote_cisco_objfile_relocate): Likewise.
4768 * somread.c (som_symfile_offsets): Likewise.
4769 * symfile.c (alloc_section_addr_info): New function.
4770 (build_section_addr_info_from_section_tab): Use it.
4771 (free_section_addr_info): Adjust.
4772 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4773 (syms_from_objfile): Allocate local_addr dynamically.
4774 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4775 dynamically.
4776 (add_symbol_file_command): Allocate sect_opts dynamically.
4777 (reread_symbols): Avoid use of SECT_OFF_MAX.
4778 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4779 (alloc_section_addr_info): Declare it.
4780 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4781 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4782 dynamically.
4783 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4784
20c6c2f8
AC
47852003-06-06 Andrew Cagney <cagney@redhat.com>
4786
4787 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4788 (d10v_frame_unwind_cache): Do not set "return_pc".
4789
884a26c8
MS
47902003-06-06 Michael Snyder <msnyder@redhat.com>
4791
4792 * h8300-tdep.c: Make tidy (long lines).
4793
088ce440
ML
47942003-06-06 Michal Ludvig <mludvig@suse.cz>
4795
8ffd9b1b 4796 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4797 to regcache_collect().
4798
7d773d96
JB
47992003-06-05 J. Brobecker <brobecker@gnat.com>
4800
4801 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4802 pc_in_sigtramp multiarch method.
4803 (hppa_hpux_som_init_abi): Use it.
4804 (hppa_hpux_elf_init_abi): Likewise.
4805 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4806 macro has been multiarched.
4807 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4808 macro here, as hppa64 isn't multiarched yet.
4809
1df6926e
AC
48102003-06-05 Andrew Cagney <cagney@redhat.com>
4811
4812 * Makefile.in (value_h): Add $(frame_h).
4813 * value.h: Include "frame.h".
4814 (struct value): Replace "frame_addr" with "frame_id".
4815 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4816 * values.c (allocate_value): Use VALUE_FRAME_ID.
4817 (value_copy): Use VALUE_FRAME_ID.
4818 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4819 * valops.c (value_assign): Update. Use frame_find_by_id.
4820
6b53acc6
ML
48212003-06-05 Michal Ludvig <mludvig@suse.cz>
4822
4823 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4824 in each pass.
4825
4d9850d3
JJ
48262003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4827
4828 * thread-db.c (check_event): For create/death event breakpoints,
4829 loop through all messages to ensure that we read the message
4830 corresponding to the breakpoint we are at.
4831
8efca6ba
MS
48322003-06-04 Michael Snyder <msnyder@redhat.com>
4833
4834 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4835
0912c7f2
MK
48362003-06-04 Mark Kettenis <kettenis@gnu.org>
4837
4838 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4839 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4840 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4841 when handling .eh_frame sections.
4842
4e370325
JB
48432003-06-04 J. Brobecker <brobecker@gnat.com>
4844
4845 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4846 prepare_to_proceed procedure instead of the hppa-specific one.
4847 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4848
b757528f 48492003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4850
b757528f
JJ
4851 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4852 * config.in: Regenerated.
4853 * configure.in: Add test for syscall function and check for
4854 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4855 * configure: Regenerated.
4856 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4857 <sys/syscall.h>.
4858 (kill_lwp): New function that uses tkill syscall or
4859 uses kill, depending on whether threading model is nptl or not.
4860 All callers of kill() changed to use kill_lwp().
4861 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4862 see if all threads have already exited in the nptl model.
4863 (stop_and_resume_callback): New callback function used by the
4864 lin_lwp_wait thread exit handling code.
4865 (stop_wait_callback): Check for threads already having exited and
4866 delete such threads fromt the lwp list when discovered.
4867 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4868
b757528f
JJ
4869 Roland McGrath <roland@redhat.com>
4870 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4871 nptl libthread_db.
4872
087779b1
RH
48732003-06-03 Richard Henderson <rth@redhat.com>
4874
b21fd293
RH
4875 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4876 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4877 (alpha_sigtramp_frame_prev_register): Likewise.
4878 (alpha_heuristic_frame_prev_register): Likewise.
4879 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4880
8ffd9b1b 4881 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4882 alpha-specific register id names.
4883 (alpha_mdebug_frame_unwind_cache): Likewise.
4884 (alpha_mdebug_frame_prev_register): Likewise.
4885
baa490c4
RH
48862003-06-03 Richard Henderson <rth@redhat.com>
4887
4888 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4889 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4890 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4891 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4892 unwind routines.
4893 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4894 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4895 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4896
4897 * alpha-linux-tdep.c: Remove unnecessary includes.
4898 * Makefile.in (alpha-linux-tdep.o): Update.
4899
49002003-06-03 Richard Henderson <rth@redhat.com>
4901
4902 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4903 (alphabsd_fill_fpreg): Likewise.
4904
f534e522
JB
49052003-06-03 J. Brobecker <brobecker@gnat.com>
4906
4907 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4908 references to struct frame_info fields by calls to the equivalent
4909 accessors. Necessary now that frame_info is opaque.
4910
4035536b
JB
49112003-06-03 J. Brobecker <brobecker@gnat.com>
4912
4913 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4914 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4915 structure, field no longer exists.
4916
0bd79c5c
JB
49172003-06-03 J. Brobecker <brobecker@gnat.com>
4918
4919 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4920 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4921
37bb6d9f
JB
49222003-06-03 J. Brobecker <brobecker@gnat.com>
4923
4924 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4925 references to struct frame_info fields by calls to the equivalent
4926 accessors. Necessary now that frame_info is opaque.
4927
852ee05c
JB
49282003-06-03 J. Brobecker <brobecker@gnat.com>
4929
4930 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4931 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4932 structure, field no longer exists.
4933
7d58c67d
TR
49342003-06-03 Theodore A. Roth <troth@openavr.org>
4935
8ffd9b1b 4936 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4937 accumulation of the size of all registers instead of blindly using
4938 DEPRECATED_REGISTER_BYTES.
4939
0a48e7e8
MS
49402003-06-03 Michael Snyder <msnyder@redhat.com>
4941
4942 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4943 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4944 for h8300sx.
4945
9798ab0d
JB
49462003-06-03 J. Brobecker <brobecker@gnat.com>
4947
4948 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4949 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4950
00b037e2
AC
49512003-06-03 Andrew Cagney <cagney@redhat.com>
4952
4953 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4954 (sparc_convert_to_raw): Delete function.
4955 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4956 register_convert_to_virtual.
4957
043b2f77
JJ
49582003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4959
4960 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4961 layer if not dealing with a statically-linked threaded program.
4962
f43caff8
KW
49632003-06-03 Kris Warkentin <kewarken@qnx.com>
4964
4965 * solib.c (solib_open): Update comment to reflect actual search order.
4966
ae1e7417
AC
49672003-06-03 Andrew Cagney <cagney@redhat.com>
4968
4969 * frame.c (get_frame_memory_signed): New function.
4970 (get_frame_memory, get_frame_memory_unsigned): New function.
4971 (get_frame_arch): New function.
4972 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4973 (get_frame_memory, get_frame_unsigned_memory): Declare.
4974 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4975 get_frame_memory_unsigned and get_frame_arch.
4976 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4977
cb123844
RG
49782003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4979
4980 * MAINTAINERS (write after approval): Add myself.
4981
1bb792e9
JB
49822003-06-03 Jim Blandy <jimb@redhat.com>
4983
4984 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4985 elements of gregset_t are 64 bits each, but access registers
4986 are still 32 bits, so they're packed two per gregset_t
4987 element. Unpack/pack them properly.
4988
aee8d8ba
DC
49892003-06-02 David Carlton <carlton@bactrian.org>
4990
4991 * linespec.c (find_methods): Break out code into
4992 add_matching_methods and add_constructors.
4993 (add_matching_methods): New.
4994 (add_constructors): Ditto.
4995
bf7488d2
AC
49962003-06-02 Andrew Cagney <cagney@redhat.com>
4997
bf7488d2
AC
4998 * sparc-tdep.c (sparc_print_registers): Delete call to
4999 REGISTER_CONVERTIBLE.
5000 (sparc_gdbarch_init): Do not set register_convertible.
5001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5002 * frv-tdep.c (frv_gdbarch_init): Ditto.
5003 * cris-tdep.c (cris_gdbarch_init): Ditto.
5004
adedef68
EZ
50052003-06-02 Elena Zannoni <ezannoni@redhat.com>
5006
8ffd9b1b 5007 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5008 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5009 (syms_from_objfile): Ditto.
5010
650fcc91
AS
50112003-06-03 Andreas Schwab <schwab@suse.de>
5012
5013 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5014 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5015
df4a182b
RH
50162003-06-02 Richard Henderson <rth@redhat.com>
5017
5018 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5019 a member of all_reggroup.
5020
c483c494
RH
50212003-06-02 Richard Henderson <rth@redhat.com>
5022
5023 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5024 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5025 (alpha_lds, alpha_sts): New.
5026 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5027 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5028 restructure and fail for type sizes other than 4 or 8.
5029 (alpha_value_to_register): Similarly.
5030 (alpha_extract_return_value): Use alpha_sts.
5031 (alpha_store_return_value): Use alpha_lds.
5032 (alpha_gdbarch_init): Update hooks.
5033
b38b6be2
RH
50342003-06-02 Richard Henderson <rth@redhat.com>
5035
5036 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5037 regnum identifiers.
5038 (alpha_sigtramp_register_address): Likewise.
5039
98a8e1e5
RH
50402003-06-02 Richard Henderson <rth@redhat.com>
5041
5042 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5043 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5044 * alpha-tdep.h: Declare them.
5045
5046 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5047 Remove zerobuf. Don't error on UNIQUE.
5048 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5049 (ALPHA_REGSET_UNIQUE): Provide default.
5050 (supply_gregset): Use alpha_supply_int_regs.
5051 (fill_gregset): Use alpha_fill_int_regs.
5052 (supply_fpregset): Use alpha_supply_fp_regs.
5053 (fill_fpregset): Use alpha_fill_fp_regs.
5054 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5055 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5056 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5057 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5058 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5059 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5060
67dfac52
RH
50612003-06-02 Richard Henderson <rth@redhat.com>
5062
f75d70cc
RH
5063 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5064
67dfac52
RH
5065 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5066 (alpha_store_return_value): Likewise.
5067
0cf566ec
DC
50682003-06-02 David Carlton <carlton@math.stanford.edu>
5069
5070 * block.c (contained_in): Add 'const' to arguments.
5071 (block_function): Ditto.
5072 * block.h: Update declarations for block_function and
5073 contained_in.
5074
cdef89d0
DC
50752003-06-02 David Carlton <carlton@math.stanford.edu>
5076
5077 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5078 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5079 * p-valprint.c (pascal_val_print): Ditto.
5080 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5081
72667056
RH
50822003-06-02 Richard Henderson <rth@redhat.com>
5083
98a8e1e5
RH
5084 * alpha-tdep.c (alpha_push_dummy_call): Use
5085 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5086
8ffd9b1b 5087 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5088 sign-extension of 32-bit values.
5089 (alpha_store_return_value): Similarly.
0ede8eca 5090
98a8e1e5
RH
5091 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5092 (alpha_extract_return_value): Likewise.
5093 (alpha_store_return_value): Likewise.
7b5e1cb3 5094
98a8e1e5
RH
5095 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5096 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5097
98a8e1e5
RH
5098 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5099 (alpha_extract_struct_value_address): Likewise.
5100 (alpha_store_return_value): Likewise.
5101 (alpha_store_struct_return): Remove.
5102 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5103
98a8e1e5
RH
5104 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5105 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5106 macros where appropriate.
5107 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5108 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5109
98a8e1e5
RH
5110 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5111 for SP, GP; void_func_ptr for PC; non-language-specific types
5112 for all others.
5113 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5114
6dd77b81
RH
51152003-06-02 Richard Henderson <rth@redhat.com>
5116
5117 * top.h (lim_at_start): Declare.
5118 * main.c (captured_main): Set it.
5119 * top.c (lim_at_start): Define.
5120 (command_loop): Use it instead of &environ.
5121 * event-top.c (command_handler): Likewise.
5122
f4dbdb54
JT
51232003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5124
5125 * mipsnbsd-tdep.c: Update copyright years.
5126 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5127
8f285956
RH
51282003-06-01 Richard Henderson <rth@redhat.com>
5129
98a8e1e5
RH
5130 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5131 (alpha-linux-tdep.o): Update dependencies.
5132 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5133 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5134
615967cb
RH
51352003-06-01 Richard Henderson <rth@redhat.com>
5136
98a8e1e5
RH
5137 * alpha-tdep.c (alpha_register_reggroup_p): New.
5138 (alpha_gdbarch_init): Register it.
615967cb 5139
b59661bd
AC
51402003-06-02 Andrew Cagney <cagney@redhat.com>
5141
5142 * dwarfread.c: Eliminate "register"
5143 (decode_die_type): Eliminate assignment within "if".
5144 (struct_type, decode_array_element_type): Ditto.
5145 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5146 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5147 (decode_modified_type, completedieinfo): Ditto.
5148 * block.c: Eliminate "register".
5149 (blockvector_for_pc_sect): Eliminate assignment within "if".
5150 * cp-support.h (struct symbol): Opaque declaration.
5151 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5152
5ef165c2
RH
51532003-06-01 Richard Henderson <rth@redhat.com>
5154
98a8e1e5
RH
5155 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5156 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5157
143985b7
AF
51582003-06-01 Adam Fedor <fedor@gnu.org>
5159
5160 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5161 * gdbarch.[ch]: Regenerate.
5162 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5163 (hppa_gdbarch_init): Set it in the gdbarch vector.
5164 * i386-tdep.c (i386_fetch_pointer_argument): New
5165 (i386_gdbarch_init): Set it into gdbarch.
5166 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5167 (rs6000_gdbarch_init): Set it in gdbarch.
5168 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5169 (sparc_gdbarch_init): Set it in gdbarch.
5170
ae0167b9
AC
51712003-06-01 Andrew Cagney <cagney@redhat.com>
5172
7c0b4a20
AC
5173 * defs.h (extract_address): Delete declaration.
5174 * findvar.c (extract_address): Delete function.
5175 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5176 extract_address with the inline equivalent,
5177 extract_unsigned_integer.
5178 (xstormy16_extract_struct_value_address): Ditto.
5179 (xstormy16_pointer_to_address): Ditto.
5180 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5181 * v850-tdep.c (v850_push_arguments): Ditto.
5182 (v850_extract_return_value): Ditto.
5183 (v850_extract_struct_value_address): Ditto.
5184 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5185 (sparcnbsd_get_longjmp_target_64): Ditto.
5186 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5187 (get_longjmp_target): Ditto.
5188 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5189 (sh64_extract_struct_value_address): Ditto.
5190 (sh_push_arguments): Ditto.
5191 (sh64_push_arguments): Ditto.
5192 * remote-vxsparc.c (vx_read_register): Ditto.
5193 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5194 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5195 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5196 * mipsv4-nat.c (get_longjmp_target): Ditto.
5197 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5198 * mips-nat.c (get_longjmp_target): Ditto.
5199 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5200 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5201 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5202 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5203 * irix5-nat.c (get_longjmp_target): Ditto.
5204 * irix4-nat.c (get_longjmp_target): Ditto.
5205 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5206 (ia64_push_arguments): Ditto.
5207 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5208 * h8300-tdep.c (h8300_push_arguments): Ditto.
5209 (h8300_store_return_value): Ditto.
5210 (h8300_extract_struct_value_address): Ditto.
5211 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5212 (frv_push_arguments): Ditto.
5213 * avr-tdep.c (avr_pointer_to_address): Ditto.
5214 (avr_push_arguments): Ditto.
5215 * arm-tdep.c (arm_push_dummy_call): Ditto.
5216 (arm_get_longjmp_target): Ditto.
5217 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5218 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5219 (alpha_get_longjmp_target): Ditto.
5220
ae0167b9
AC
5221 * solib-irix.c (extract_mips_address): Inline extract_address,
5222 replacing it with extract_signed_integer.
5223 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5224 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5225 (first_link_map_member, open_symbol_file_object): Ditto.
5226 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5227 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5228 (LM_NEXT, LM_NAME): Ditto.
5229
44d88583
RH
52302003-06-01 Richard Henderson <rth@redhat.com>
5231
98a8e1e5
RH
5232 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5233 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5234 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5235 (alpha_cannot_store_register): Likewise.
5236 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5237 * alpha-nat.c (supply_gregset): Likewise.
5238 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5239
310e9b6a
AC
52402003-06-01 Andrew Cagney <cagney@redhat.com>
5241
5242 * infcall.c (call_function_by_hand): Update comment on
5243 DEPRECATED_DUMMY_WRITE_SP.
5244
5245 * mips-tdep.c (mips_gdbarch_init): Do not set
5246 deprecated_dummy_write_sp.
5247 (mips_eabi_push_dummy_call): Set the SP register.
5248 (mips_o64_push_dummy_call): Set the SP register.
5249 (mips_o32_push_dummy_call): Set the SP register.
5250 (mips_n32n64_push_dummy_call): Set the SP register.
5251
5ab84872
RH
52522003-06-01 Richard Henderson <rth@redhat.com>
5253
98a8e1e5
RH
5254 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5255 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5256 (supply_gregset): Likewise.
5257 * alpha-tdep.c (alpha_store_return_value): Likewise.
5258 (alpha_get_longjmp_target): Likewise.
5259 (alpha_register_name): Constify array.
5260 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5261 deprecated_register_size, deprecated_register_bytes,
5262 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5263 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5264 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5265
09cc52fd
RH
52662003-06-01 Richard Henderson <rth@redhat.com>
5267
5268 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5269 from arg_reg_buffer to regcache to avoid double conversion.
5270
c7f16359
MK
52712003-06-01 Mark Kettenis <kettenis@gnu.org>
5272
5273 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5274 SP_REGNUM.
5275 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5276 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5277
7131cb6e
RH
52782003-06-01 Richard Henderson <rth@redhat.com>
5279
98a8e1e5
RH
5280 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5281 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5282
f3e0f90b
RH
52832003-06-01 Richard Henderson <rth@redhat.com>
5284
98a8e1e5
RH
5285 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5286 not overlapping PC_REGNUM.
f3e0f90b 5287
c88e30c0
RH
52882003-06-01 Richard Henderson <rth@redhat.com>
5289
98a8e1e5
RH
5290 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5291 alpha_push_arguments. Don't dump argument register data to
5292 the target stack. Fix float and 128-bit long double semantics.
5293 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5294 (alpha_fix_call_dummy): Remove.
5295 (alpha_call_dummy_words): Remove.
5296 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5297
f1a559ae
RH
52982003-06-01 Richard Henderson <rth@redhat.com>
5299
5300 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5301
5e045346
AC
53022003-06-01 Andrew Cagney <cagney@redhat.com>
5303
95404a3e
AC
5304 * mips-tdep.c (is_mips16_addr): New function.
5305 (make_mips16_addr, unmake_mips16_addr): New functions.
5306 (pc_is_mips16, mips_fetch_instruction): Use.
5307 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5308 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5309 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5310 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5311 TARGET_MIPS.
5312 * config/mips/tm-mips.h: Update copyright.
5313 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5314 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5315 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5316 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5317 (TM_PRINT_INSN_MACH): Delete.
5318 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5319
5e045346
AC
5320 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5321 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5322 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5323 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5324 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5325 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5326 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5327 mips*-*-riscos* and mips*-*-sysv* onto mips.
5328 * config/mips/mips64.mt: New file.
5329 * config/mips/mips.mt: New file.
5330 * config/mips/littlemips.mt: Delete file.
5331 * config/mips/decstation.mt: Delete file.
5332 * config/mips/vr4300el.mt: Delete file.
5333 * config/mips/vr5000el.mt: Delete file.
5334 * config/mips/vr5000.mt: Delete file.
5335 * config/mips/vr4100.mt: Delete file.
5336 * config/mips/vr4xxxel.mt: Delete file.
5337 * config/mips/vr4300.mt: Delete file.
5338 * config/mips/vr4xxx.mt: Delete file.
5339 * config/mips/bigmips.mt: Delete file.
5340 * config/mips/bigmips64.mt: Delete file.
5341 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5342 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5343 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5344 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5345 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5346 "tm-bigmips.h".
5347 * config/mips/tm-irix3.h: Ditto.
5348 * config/mips/tm-mipsv4.h: Ditto.
5349 * config/mips/tm-embed.h: Ditto.
5350 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5351 "tm-bigmips64.h".
5352 * config/mips/tm-vr5000el.h: Delete file.
5353 * config/mips/tm-tx39l.h: Delete file.
5354 * config/mips/tm-vr4300el.h: Delete file.
5355 * config/mips/tm-vr4xxxel.h: Delete file.
5356 * config/mips/tm-vr4300.h: Delete file.
5357 * config/mips/tm-vr4100.h: Delete file.
5358 * config/mips/tm-vr4xxx.h: Delete file.
5359 * config/mips/tm-vr5000.h: Delete file.
5360 * config/mips/tm-embedl64.h: Delete file.
5361 * config/mips/tm-embedl.h: Delete file.
5362 * config/mips/tm-embed64.h: Delete file.
5363 * config/mips/tm-bigmips64.h: Delete file.
5364 * config/mips/tm-bigmips.h: Delete file.
5365
2473a4a9
MK
53662003-06-01 Mark Kettenis <kettenis@gnu.org>
5367
97a5b208
MK
5368 Fix gdb/1216.
5369 * shnbsd-nat.c: Include "sh-tdep.h".
5370
2473a4a9
MK
5371 From Richard Henderson <rth@redhat.com>:
5372 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5373
e0f7ec59
AC
53742003-05-31 Andrew Cagney <cagney@redhat.com>
5375
5376 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5377 forward declaration.
5378 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5379 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5380 (mips_find_saved_regs): Use set_reg_offset.
5381 (mips_frame_init_saved_regs): Delete function.
5382 (mips_pop_frame): Call mips_find_saved_regs instead of
5383 DEPRECATED_FRAME_INIT_SAVED_REGS.
5384
68dcc709
AC
53852003-05-31 Andrew Cagney <cagney@redhat.com>
5386
5387 * mips-tdep.c (mips_gdbarch_init): Do not set
5388 deprecated_max_register_raw_size, register_virtual_size, and
5389 deprecated_max_register_virtual_size.
5390
cfc14b3a
MK
53912003-05-31 Mark Kettenis <kettenis@gnu.org>
5392
6405b0a6
MK
5393 * i386-tdep.c: Include "dwarf2-frame.h".
5394 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5395 * Makefile.in (i386-tdep.o): Update dependencies.
5396
cfc14b3a
MK
5397 * dwarf2-frame.c, dwarf2-frame.h: New files.
5398 * Makefile.in (SFILES): Add dwarf2-frame.c.
5399 (dwarf2_frame_h): Define.
5400 (COMMON_OBS): Add dwarf2-frame.o.
5401 (dwarf2-frame.o): Add dependencies.
5402
6a2751d2
AJ
54032003-05-31 Andreas Jaeger <aj@suse.de>
5404
5405 * x86-64-linux-nat.c: Fix comment.
5406
1c3545ae
MK
54072003-05-31 Mark Kettenis <kettenis@gnu.org>
5408
10f93086
MK
5409 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5410 function signature.
5411
1c3545ae
MK
5412 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5413 have a sigcontext_addr handler.
5414 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5415 sigcontext_addr handler.
5416
e11c53d2
AC
54172003-05-31 Andrew Cagney <cagney@redhat.com>
5418
5419 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5420 (print_fp_register_row): Replace do_fp_register_row.
5421 (mips_print_fp_register): Add "file" and "frame" parameters.
5422 (mips_print_register): Add "file" and "frame" parameters.
5423 (mips_print_registers_info): Replace mips_do_registers_info.
5424 (mips_gdbarch_init): Set print_registers_info instead of
5425 deprecated_do_registers_info.
5426 (mips_read_fp_register_single): Add "frame" parameter.
5427 (mips_read_fp_register_double): Add "frame" parameter.
5428
a3386186
MK
54292003-05-31 Mark Kettenis <kettenis@gnu.org>
5430
70913449
MK
5431 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5432 Fixes a bug where GDB would print the wrong register names for
5433 targets without SSE.
5434
2b5e0749
MK
5435 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5436 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5437 registers.
5438
5439 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5440 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5441 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5442 TDEP->sc_sp_offset.
5443
a3386186
MK
5444 From Michal Ludvig <mludvig@suse.cz>:
5445 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5446 and `sc_num_regs'.
5447 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5448 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5449 I386_ST0_REGNUM): Move here from...
5450 * i386-tdep.c: ... here.
5451 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5452 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5453 registers if possible.
5454 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5455 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5456 Remove variables.
5457 (i386bsd_sc_reg_offset): New variable.
5458 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5459 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5460 TDEP->sc_sp_offset.
5461 (i386fbsd_sc_reg_offset): New variable.
5462 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5463 TDEP->sc_num_regs.
5464 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5465 variables.
5466 (i386fbsd4_sc_reg_offset): New variable.
5467 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5468 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5469 TDEP->sc_sp_offset.
5470 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5471 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5472 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5473 Remove variables.
5474 (i386nbsd_sc_reg_offset): New variable.
5475 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5476 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5477 TDEP->sc_sp_offset.
5478 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5479 Remove variables.
5480 (i386obsd_sc_reg_offset): New variable.
5481 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5482 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5483 TDEP->sc_sp_offset.
5484 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5485 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5486 for frame pointer offset in `struct sigcontext'.
5487
25ab4790
AC
54882003-05-31 Andrew Cagney <cagney@redhat.com>
5489
5490 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5491 architecture methods call_dummy_words, sizeof_call_dummy_words,
5492 push_return_address, store_struct_return, and fix_call_dummy. Set
5493 push_dummy_call instead of deprecated_push_arguments.
5494 (mips_store_struct_return): Delete function.
5495 (mips_fix_call_dummy): Delete function.
5496 (mips_push_return_address): Delete function.
5497 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5498 RA_REGNUM and T9_REGNUM.
5499 (mips_n32n64_push_dummy_call): Ditto for
5500 mips_n32n64_push_arguments.
5501 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5502 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5503
6a65450a
AC
55042003-05-31 Andrew Cagney <cagney@redhat.com>
5505
5506 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5507 "dummy_addr" to "bp_addr".
5508 * infcall.c (call_function_by_hand): Pass "funaddr" to
5509 gdbarch_push_dummy_call.
5510 * gdbarch.h, gdbarch.c: Re-generate.
5511 * i386-tdep.c (i386_push_dummy_call): Update.
5512 * arm-tdep.c (arm_push_dummy_call): Update.
5513 * d10v-tdep.c (d10v_push_dummy_call): Update.
5514
c4f35dd8
MK
55152003-05-31 Mark Kettenis <kettenis@gnu.org>
5516
5517 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5518 variable declarations.
5519 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5520 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5521 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5522 x86_64_init_frame_pc, x86_64_init_frame_pc,
5523 x86_64_function_has_prologue): Remove prototypes.
5524 (X86_64_NUM_GREGS): New define.
5525 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5526 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5527 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5528 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5529 XMM1_REGNUM): Remove defines.
5530 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5531 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5532 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5533 X86_64_XMM1_REGNUM): New defines.
5534 (struct x86_64_register_info): Renamed from `struct
5535 register_info'. Remove `size' member.
5536 (x86_64_register_info_table): Remove variable.
5537 (x86_64_register_info): New variable.
5538 (X86_64_NUM_REGS): New define.
5539 (X86_64_NUM_GREGS): Remove define.
5540 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5541 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5542 Remove variables.
5543 (x86_54_dwarf2_reg_to_regnum): Remove function.
5544 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5545 (x86_64_dwarf_reg_to_regnum): New function.
5546 (x86_64_register_name): Rewrite.
5547 (x86_64_register_raw_size): Remove function.
5548 (x86_64_register_byte_table): Remove variable.
5549 (x86_64_register_byte): Remove function.
5550 (x86_64_register_virtual_type): Remove function.
5551 (x86_64_register_type): New function.
5552 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5553 x86_64_register_convert_to_raw): Remove functions.
5554 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5555 (x86_64_use_struct_convention): Make static. Adjust for renamed
5556 defines.
5557 (x86_64_frame_init_saved_regs): Remove function.
5558 (x86_64_push_arguments): Make static. Change to accept a regcache
5559 as argument.
5560 (x86_64_store_return_value, x86_64_extract_return_value): Make
5561 static. Rewrite based on i386 counterparts.
5562 (x86_64_push_dummy_call): New function.
5563 (X86_64_NUM_SAVED_REGS): New define.
5564 (x86_64_register_number): Remove function.
5565 (x86_64_store_struct_return): Remove function.
5566 (x86_64_frameless_function_invocation,
5567 x86_64_function_has_prologue): Remove functions.
5568 (PROLOG_BUFSIZE): Remove define.
5569 (struct x86_64_frame_cache): New structure.
5570 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5571 x86_64_frame_cache, x86_64_frame_this_id,
5572 x86_64_frame_prev_register, x86_64_frame_p,
5573 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5574 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5575 functions.
5576 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5577 variables.
5578 (x86_64_skip_prologue): Rewrite in terms of
5579 x86_64_analyze_prologue.
5580 (x86_64_frame_base_address): New function.
5581 (x86_64_frame_base): New variable.
5582 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5583 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5584 set deprecated_fp_regnum, deprecated_register_size,
5585 deprecated_register_bytes, register_raw_size, register_byte,
5586 register_virtual_type, register_convertiable,
5587 register_convert_to_virtual, convert_to_raw,
5588 deprecated_get_saved_register, deprecated_target_read_fp,
5589 deprecated_push_arguments, deprecated_push_return_address,
5590 deprecated_pop_frame, deprecated_store_struct_return,
5591 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5592 frameless_function_invocation, deprecated_frame_saved_pc,
5593 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5594 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5595 deprecated_init_frame_pc and virtual_frame_pointer. Call
5596 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5597 and x86_64_frame_p. Call frame_base_set_default to register
5598 x86_64_frame_base.
5599 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5600 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5601 (_initialize_x86_64_tdep): Remove function.
5602 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5603 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5604 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5605 define.
5606 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5607 (x86_64_linux_sigcontext_addr): Rewrite.
5608 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5609 x86_64_linux_frame_saved_pc): Remove functions.
5610 (x86_64_linux_pc_in_sigtramp): Renamed from
5611 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5612 trampoline.
5613 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5614 Remove_functions.
5615 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5616 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5617 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5618 (x86_64_regmap): Rename to regmap.
5619 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5620 x86_64_num_gregs.
5621 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5622 x86_64_regmap.
5623 (x86_64_fxsave_offset): Remove function.
5624 (supply_fpregset): Simply call x86_64_supply_fxsave.
5625 (fill_fpregset): Simply call x86_64_fill_fxsave.
5626 (fetch_inferior_registers, store_inferior_registers): Avoid
5627 asignment in if-statement.
5628 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5629 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5630 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5631 (fetch_core_registers): Remove function.
5632 (linux_elf_core_fns): Remove.
5633 (offsetoff): Don't define.
5634 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5635 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5636 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5637 add core-regset.o.
5638 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5639 protection against multiple includes instead of NM_X86_64_h. Add
5640 various comments. Include "config/nm-linux.h". Don't include
5641 <signal.h>.
5642 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5643 GET_THREAD_SIGNALS): Remove defines.
5644 (x86_64_register_u_addr, kernel_u_size,
5645 lin_thread_get_thread_signals): Remove prototypes.
5646 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5647 [HAVE_LINK_H]: Don't include "solib.h".
5648 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5649 * config/i386/tm-x86-64linux.h: Fix comments.
5650 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5651 x86-64-tdep.o): Update dependencies.
5652
c25083af
AC
56532003-05-30 Andrew Cagney <cagney@redhat.com>
5654
c8f55a7b
AC
5655 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5656 Change parameter type to a "struct regcache *".
5657
c25083af
AC
5658 * gdbarch.sh: Regardless of the multi-arch level, always define
5659 the macro when not already defined.
5660 * gdbarch.h, gdbarch.c: Re-generate.
5661
fbe586ae
RH
56622003-05-30 Richard Henderson <rth@redhat.com>
5663
5664 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5665 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5666 (alpha_mdebug_frame_this_id): Likewise.
5667 (alpha_mdebug_frame_prev_register): Likewise.
5668 (alpha_mdebug_frame_base_address): Likewise.
5669 (alpha_mdebug_frame_locals_address): Likewise.
5670 (alpha_mdebug_frame_args_address): Likewise.
5671 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5672 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5673 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5674 loop increment.
5675 (alpha_heuristic_frame_this_id): Make static.
5676 (alpha_heuristic_frame_prev_register): Likewise.
5677 (alpha_heuristic_frame_base_address): Likewise.
5678 * alpha-tdep.h: Update.
5679
acd5c798
MK
56802003-05-30 Mark Kettenis <kettenis@gnu.org>
5681
5682 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5683 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5684 defenitions.
5685 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5686 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5687 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5688 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5689 I386_ST0_REGNUM): New defines.
5690 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5691 codestream_get): Remove define.
5692 (codestream_next_addr, condestream_addr, condestream_buf,
5693 codestream_off, codestream_cnt): Remove variables.
5694 (codestream_fill, codestream_seek, codestream_read): Remove
5695 functions.
5696 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5697 functionality.
5698 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5699 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5700 i386_frame_saved_pc, i386_saved_pc_after_call,
5701 i386_frame_num_args, i386_frame_init_saved_regs,
5702 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5703 i386_push_arguments): Remove functions.
5704 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5705 functionality. Use i386_analyze_prologue instead of
5706 i386_get_frame_setup.
5707 (I386_NUM_SAVED_REGS): New define.
5708 (struct i386_frame_cache): New structure.
5709 (i386_alloc_frame_cache, i386_analyze_struct_return,
5710 i386_skip_probe, i386_analyze_frame_setup,
5711 i386_analyze_register_saves, i386_analyze_prologue,
5712 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5713 i386_frame_prev_register, i386_sigtramp_frame_cache,
5714 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5715 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5716 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5717 New functions.
5718 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5719 New variables.
5720 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5721 I386_EAX_REGNUM and I386_EDX_REGNUM.
5722 (i386_extract_return_value, i386_store_return_value): Use
5723 I386_ST0_REGNUM where appropriate.
5724 (i386_extract_struct_value_address): Rewrite to use extract_address.
5725 (i386_svr4_pc_in_sigtramp): Add comment.
5726 (i386_svr4_sigcontext_addr): Rewrite.
5727 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5728 TDEP->sc_sp_offset.
5729 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5730 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5731 of new defines. Set push_dummy_call, don't set
5732 deprecated_push_arguments, deprecated_push_return_address,
5733 deprecated_pop_frame. Don't set parm_boundary. Don't set
5734 deprecated_frame_chain, deprecated_frame_saved_pc,
5735 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5736 save_dummy_frame_tos, unwind_pc. Call
5737 frame_unwind_append_predicate and frame_base_set_default. Don't
5738 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5739 Don't set frameless_function_invocation. Don't set
5740 deprecated_register_bytes, deprecated_register_size,
5741 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5742 * i386-linux-tdep.c: Fix formatting in some comments.
5743 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5744 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5745 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5746 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5747 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5748 redundant parentheses.
5749 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5750 (i386_linux_sigcontext_addr): Use it. Rewrite.
5751 (find_minsym_and_objfile): Change name of second argument.
5752 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5753 changed. Use frame_pc_unwind instead of
5754 DEPRECATED_SAVED_PC_AFTER_CALL.
5755 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5756 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5757 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5758 unwinder.
5759 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5760 "dummy-frame.h".
5761 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5762 (_initialize_i386_cygwin_tdep): New prototype.
5763 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5764 deprecated_frame_chain_valid.
5765 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5766 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5767 Rely on the SVR4 defaults.
5768 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5769 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5770
c89b70f1
AC
57712003-05-30 Andrew Cagney <cagney@redhat.com>
5772
5773 * infcall.c (call_function_by_hand): Always call
5774 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5775
85b32d22
RH
57762003-05-30 Richard Henderson <rth@redhat.com>
5777
c89b70f1
AC
5778 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5779 increment.
85b32d22 5780
bfe51b1e
JB
57812003-05-29 Jim Blandy <jimb@redhat.com>
5782
5783 Use gdbarch methods for solib stuff on PowerPC Linux.
5784 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5785 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5786 show through.
5787 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5788 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5789 giving the same effect as the #definitions above.
5790
1abf022c
AF
57912003-05-29 Adam Fedor <fedor@gnu.org>
5792
5793 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5794 (find_implementation_from_class): Replace it with the standard
5795 case i.e. do nothing.
5796
d2427a71
RH
57972003-05-29 Richard Henderson <rth@redhat.com>
5798
5799 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5800 (alpha_linux_sigtramp_offset): Use it. Make static.
5801 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5802 update for new frame model.
5803 * alpha-mdebug-tdep.c: New file.
5804 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5805 (alpha_osf1_init_abi): Install it.
5806 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5807 (linked_proc_desc_table): Remove.
5808 (alpha_frame_past_sigtramp_frame): Remove.
5809 (alpha_dynamic_sigtramp_offset): Remove.
5810 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5811 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5812 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5813 (push_sigtramp_desc): Remove.
5814 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5815 (alpha_cannot_store_register): Likewise.
5816 (alpha_sigcontext_addr): Remove.
5817 (alpha_find_saved_regs): Remove.
5818 (alpha_frame_init_saved_regs): Remove.
5819 (alpha_init_frame_pc_first): Remove.
5820 (read_next_frame_reg): Remove.
5821 (alpha_frame_saved_pc): Remove.
5822 (alpha_saved_pc_after_call): Remove.
5823 (temp_proc_desc, temp_saved_regs): Remove.
5824 (alpha_about_to_return): Remove.
5825 (cached_proc_desc): Remove.
5826 (alpha_frame_chain): Remove.
5827 (alpha_print_extra_frame_info): Remove.
5828 (alpha_init_extra_frame_info): Remove.
5829 (alpha_frame_locals_address): Remove.
5830 (alpha_frame_args_address): Remove.
5831 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5832 (alpha_push_dummy_frame): Remove.
5833 (alpha_pop_frame): Remove.
5834 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5835 (alpha_read_insn): New.
5836 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5837 for different insn encodings.
5838 (alpha_in_lenient_prologue): Remove.
5839 (struct alpha_sigtramp_unwind_cache): New.
5840 (alpha_sigtramp_frame_unwind_cache): New.
5841 (alpha_sigtramp_register_address): New.
5842 (alpha_sigtramp_frame_this_id): New.
5843 (alpha_sigtramp_frame_prev_register): New.
5844 (alpha_sigtramp_frame_unwind): New.
5845 (alpha_sigtramp_frame_p): New.
5846 (struct alpha_heuristic_unwind_cache): New.
5847 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5848 don't count nop insns that occur between functions.
5849 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5850 heuristic_proc_desc, but without the mdebug wrapping.
5851 (alpha_heuristic_frame_this_id): New.
5852 (alpha_heuristic_frame_prev_register): New.
5853 (alpha_heuristic_frame_unwind): New.
5854 (alpha_heuristic_frame_p): New.
5855 (alpha_heuristic_frame_base_address): New.
5856 (alpha_heuristic_frame_base): New.
5857 (alpha_unwind_dummy_id): New.
5858 (alpha_unwind_pc): New.
5859 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5860 frame related deprecated initializations; install replacements.
5861 (alpha_dump_tdep): Remove.
5862 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5863 (alpha_read_insn, alpha_after_prologue,
5864 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5865 alpha_heuristic_frame_prev_register,
5866 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5867 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5868 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5869 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5870
93ec1121
AC
58712003-05-29 Andrew Cagney <cagney@redhat.com>
5872
5873 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5874 dependant on the availability of ASSERT_FUNCTION.
5875 (ASSERT_FUNCTION): Do not define when there is no function name.
5876
98f08d3d
KB
58772003-05-29 Kevin Buettner <kevinb@redhat.com>
5878
5879 From Jimi X <jimix@watson.ibm.com>:
5880 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5881
0897f59b
JB
58822003-05-28 Jim Blandy <jimb@redhat.com>
5883
5884 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5885 argument to ptrace to int; the system headers should give it the
5886 right type, and pointers don't fit in ints on powerpc64-*-*.
5887
14898363
L
58882003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5889
5890 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5891 DW_TAG_catch_block.
5892
a7a48797
EZ
58932003-05-26 Elena Zannoni <ezannoni@redhat.com>
5894
5895 * stabsread.c (dbx_lookup_type): Make static.
5896 (read_type): Ditto.
5897 (add_undefined_type): Ditto.
5898 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5899 not export.
5900
f5479e9c
EZ
59012003-05-26 Elena Zannoni <ezannoni@redhat.com>
5902
5903 * hpread.c (hpread_has_name): Make static.
5904 (hpread_psymtab_to_symtab): Ditto.
5905 (file_exists): Ditto.
5906 (hpread_call_pxdb): Ditto.
5907 (hpread_pxdb_needed): Ditto.
5908 (hpread_quick_traverse): Ditto.
5909 (hpread_get_header): Ditto.
5910 (hpread_get_lntt): Ditto.
5911 (hpread_get_slt): Ditto.
5912 (class_of): Ditto.
5913
eb2e12d7
AS
59142003-05-25 Andreas Schwab <schwab@suse.de>
5915
78bf922a
AS
5916 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5917 stack_align and deprecated_extra_stack_alignment_needed.
5918 (m68k_stack_align): Delete.
5919
eb2e12d7
AS
5920 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5921 (m68k_register_virtual_size): Likewise.
5922 (altos_skip_prologue): Remove obsolete function.
5923 (isi_frame_num_args): Likewise.
5924 (news_frame_num_args): Likewise.
5925 (m68k_fix_call_dummy): Make static.
5926 (m68k_push_dummy_frame): Likewise.
5927 (m68k_pop_frame): Likewise.
5928 (m68k_skip_prologue): Likewise.
5929 (m68k_frame_init_saved_regs): Likewise.
5930 (m68k_saved_pc_after_call): Likewise.
5931 (m68k_get_longjmp_target): Make multi-arch.
5932 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5933 structure. Register m68k_get_longjmp_target if enabled.
5934 * m68k-tdep.h (struct gdbarch_tdep): Define.
5935 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5936
5937 * Makefile.in (config.status): Also depend on configure.tgt
5938 and configure.host.
5939 (m68klinux-tdep.o): Update dependencies.
5940 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5941 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5942 (M68K_LINUX_JB_PC): Define.
5943 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5944 and take additional parameter.
5945 (m68k_linux_sigtramp_saved_pc): Update.
5946 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5947 m68k_linux_pc_in_sigtramp, in_plt_section,
5948 find_solib_trampoline_target.
5949 * config/m68k/tm-linux.h: Don't include any tm headers.
5950 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5951 (JB_ELEMENT_SIZE): Likewise.
5952 (JB_PC): Likewise.
5953 (GET_LONGJMP_TARGET): Likewise.
5954 (IN_SIGTRAMP): Likewise.
5955 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5956
eb2c22dc
MK
59572003-05-25 Mark Kettenis <kettenis@gnu.org>
5958
5959 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5960 (sparc32_push_arguments): Re-implement by calling
5961 sparc32_do_push_arguments.
5962
44b7b84e
MK
59632003-05-25 Mark Kettenis <kettenis@gnu.org>
5964
5965 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5966 SPARC_O1_REGNUM): New defines.
5967 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5968 (sparc32_store_return_value): New function.
5969 (sparc_extract_struct_value_address): Rewrite to operate on a
5970 regcache.
5971 (sparc_gdbarch_init): Don't set
5972 deprecated_extract_struct_value_address. Set
5973 extract_struct_value_address instead. Don't set
5974 deprecated_extract_return_value and deprecated_store_return_value
5975 for 32-bit targets. Set extract_return_value and
5976 store_return_value instead.
5977 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5978 DEPRECTAED_EXTRACT_RETURN_VALUE,
5979 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5980 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5981 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5982 (sparc_store_return_value): Remove prototype.
5983 (sparc32_store_return_value): New prototype.
5984 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5985 Adjust prototypes.
5986
f6ad61e3
MK
59872003-05-24 Mark Kettenis <kettenis@gnu.org>
5988
5989 * sparcnbsd-tdep.c: Include "gdb_string.h".
5990
b276f1bb
AC
59912003-05-23 Andrew Cagney <cagney@redhat.com>
5992
5993 * p-valprint.c (pascal_val_print): Replace extract_address with
5994 the inline equivalent extract_unsigned_integer.
5995 * jv-valprint.c (java_value_print): Ditto.
5996 * ada-valprint.c (ada_val_print_1): Ditto.
5997 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5998
e76c5fcc
TR
59992003-05-23 Theodore A. Roth <troth@openavr.org>
6000
6001 * blockframe.c (frameless_look_for_prologue): Remove unused
6002 after_prologue variable.
6003
2cdd89cb
MK
60042003-05-23 Mark Kettenis <kettenis@gnu.org>
6005
6006 * blockframe.c (get_pc_function_start): Rewrite to avoid
6007 asignments in if-statements.
6008
182d43bc
EZ
60092003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6010
6011 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6012 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6013 files, don't relocate absolute symbols (and do use mst_abs).
6014
e8f3fcdd
AC
60152003-05-23 Andrew Cagney <cagney@redhat.com>
6016
6017 * objc-lang.c: Include "gdb_assert.h".
6018 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6019 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6020 (gdb_check, gdb_check_fatal): Delete functions.
6021 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6022 gdb_assert.
6023 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6024 * Makefile.in (objc-lang.o): Update dependencies.
6025
3c23e6fb
ILT
60262003-05-22 Ian Lance Taylor <ian@airs.com>
6027
6028 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6029 with fprintf_filtered, not fprintf_unfiltered.
6030
af1342ab
AC
60312003-05-22 Andrew Cagney <cagney@redhat.com>
6032
6033 * stack.c (frame_info): Inline extract_address, replacing it with
6034 extract_unsigned_integer.
6035 * findvar.c (unsigned_pointer_to_address): Ditto.
6036 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6037 * dwarf2expr.c (dwarf2_read_address): Ditto.
6038 * frame.c (frame_pc_unwind): Update comment.
6039 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6040
47e242ec
JJ
60412003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6042
6043 * infptrace.c (detach): Call print_sys_errmsg rather than
6044 perror_with_name to issue warning message when errno is non-zero
6045 after calling ptrace detach.
6046
e2ac8128
JB
60472003-05-21 J. Brobecker <brobecker@gnat.com>
6048
6049 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6050 macro definitions from here...
6051 * hppa-tdep.c: ...to there.
6052
92b3541e
KB
60532003-05-20 Kevin Buettner <kevinb@redhat.com>
6054
6055 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6056 register_ptrace_addr(). Fix all callers.
6057
55809acb
AS
60582003-05-21 Andreas Schwab <schwab@suse.de>
6059
6060 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6061 dependencies.
6062 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6063 end.
6064 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6065 (_initialize_m68k_linux_tdep): New function.
6066 (m68k_linux_frame_saved_pc): Make static.
6067 (m68k_linux_extract_return_value): Likewise.
6068 (m68k_linux_store_return_value): Likewise.
6069 (m68k_linux_extract_struct_value_address): Likewise.
6070 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6071 Remove.
6072 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6073 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6074 (DEPRECATED_FRAME_SAVED_PC): Remove.
6075
0fbc10f7
KW
60762003-05-20 Kris Warkentin <kewarken@qnx.com>
6077
6078 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6079 regset numbering rather than our own.
6080
58da2eb2
DC
60812003-05-19 David Carlton <carlton@bactrian.org>
6082
6083 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6084
1fcb5155
DC
60852003-05-19 David Carlton <carlton@bactrian.org>
6086
6087 Partial fix for PR c++/827.
6088 * cp-support.h: Include symtab.h.
6089 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6090 * cp-namespace.c: Update contributors.
6091 (cp_lookup_symbol_nonlocal): New.
6092 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6093 (lookup_symbol_file): Ditto.
6094 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6095 * block.h: Declare block_scope, block_using, block_global_block.
6096 * block.c (block_scope): New.
6097 (block_using, block_global_block): Ditto.
6098 * Makefile.in (cp_support_h): Depend on symtab_h.
6099 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6100
5f9a71c3
DC
61012003-05-19 David Carlton <carlton@bactrian.org>
6102
6103 * language.h (struct language_defn): Add 'la_value_of_this'
6104 and 'la_lookup_symbol_nonlocal' members.
6105 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6106 lookup_symbol_static, lookup_symbol_global,
6107 lookup_symbol_aux_block.
6108 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6109 if we should search fields of this and how to do static/global
6110 lookup.
6111 (lookup_symbol_aux_block): Make extern.
6112 (basic_lookup_symbol_nonlocal): New.
6113 (lookup_symbol_static, lookup_symbol_global): Ditto.
6114 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6115 'la_lookup_symbol_nonlocal' members.
6116 * c-lang.c (c_language_defn, cplus_language_defn)
6117 (asm_language_defn, minimal_language_defn): Ditto.
6118 * jv-lang.c (java_language_defn): Ditto.
6119 * language.c (unknown_language_defn, auto_language_defn)
6120 (local_language_defn): Ditto.
6121 * m2-lang.c (m2_language_defn): Ditto.
6122 * objc-lang.c (objc_language_defn): Ditto.
6123 * scm-lang.c (scm_language_defn): Ditto.
6124 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6125 * p-lang.c (pascal_language_defn): Ditto for both.
6126 * Makefile.in (f-lang.o): Depend on value_h.
6127 (p-lang.o): Ditto.
6128
89a9d1b1
DC
61292003-05-19 David Carlton <carlton@bactrian.org>
6130
6131 * block.h: Declare block_static_block.
6132 * block.c (block_static_block): New.
6133 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6134 lookup_symbol_aux_local, calling block_static_block instead.
6135 (lookup_symbol_aux_local): Delete 'static_block' argument.
6136
eed3f8ab
DC
61372003-05-19 David Carlton <carlton@bactrian.org>
6138
6139 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6140
a09d8bda
ML
61412003-05-19 Michal Ludvig <mludvig@suse.cz>
6142
6143 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6144 register numbers mapping.
6145
69636828
AF
61462003-05-18 Adam Fedor <fedor@gnu.org>
6147
6148 * symtab.c (completion_list_objc_symbol): New function.
6149 (make_symbol_completion_list): Use it to add ObjC symbols
6150 when looking though the list.
6151 (language_search_unquoted_string): New function.
6152 (make_file_symbol_completion_list): Use it.
6153
55baeb84
AS
61542003-05-18 Andreas Schwab <schwab@suse.de>
6155
d0b45d99
AS
6156 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6157 dependencies.
6158 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6159 as m68k_linux_extract_return_value.
6160 (DEPRECATED_STORE_RETURN_VALUE): Define as
6161 m68k_linux_store_return_value.
6162 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6163 m68k_linux_extract_struct_value_address.
6164 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6165 get_next_frame, get_frame_base, get_frame_pc.
6166 (m68k_linux_frame_saved_pc): Use get_frame_base.
6167 (m68k_linux_extract_return_value): New function.
6168 (m68k_linux_store_return_value): New function.
6169 (m68k_linux_extract_struct_value_address): New function.
6170 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6171
55baeb84
AS
6172 * c-exp.y (typebase): Remove duplicate occurence of
6173 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6174 of lookup_signed_typename.
55baeb84 6175
b6b08ebf
MK
61762003-05-18 Mark Kettenis <kettenis@gnu.org>
6177
6178 * dwarf2loc.c (find_location_expression): Change type of second
6179 argument to `size_t *'.
6180 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6181 for size variable.
6182
5ad1c190
DC
61832003-05-18 David Carlton <carlton@bactrian.org>
6184
6185 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6186 'linkage_name'. Add comment.
6187 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6188 'linkage_name'.
6189 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6190 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6191 (lookup_block_symbol): Ditto.
6192
b8b527c5
AC
61932003-05-16 Andrew Cagney <cagney@redhat.com>
6194
6195 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6196 * gdbarch.h, gdbarch.c: Re-generate.
6197 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6198 * TODO (REGISTER_BYTES): Delete reference.
6199 * alpha-tdep.c (alpha_gdbarch_init): Update.
6200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6201 * x86-64-tdep.c (x86_64_init_abi): Update.
6202 * vax-tdep.c (vax_gdbarch_init): Update.
6203 * v850-tdep.c (v850_gdbarch_init): Update.
6204 * sparc-tdep.c (sparc_gdbarch_init): Update.
6205 * sh-tdep.c (sh_gdbarch_init): Update.
6206 * s390-tdep.c (s390_gdbarch_init): Update.
6207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6208 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6209 (ns32k_gdbarch_init_32382): Update.
6210 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6211 * mcore-tdep.c (mcore_gdbarch_init): Update.
6212 * m68k-tdep.c (m68k_gdbarch_init): Update.
6213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6214 * ia64-tdep.c (ia64_gdbarch_init): Update.
6215 * i386-tdep.c (i386_gdbarch_init): Update.
6216 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6217 * hppa-tdep.c (hppa_gdbarch_init): Update.
6218 * h8300-tdep.c (h8300_gdbarch_init): Update.
6219 * frv-tdep.c (frv_gdbarch_init): Update.
6220 * cris-tdep.c (cris_gdbarch_init): Update.
6221 * avr-tdep.c (avr_gdbarch_init): Update.
6222 * arm-tdep.c (arm_gdbarch_init): Update.
6223 * sparc-tdep.c (sparc_pop_frame): Update.
6224 * rs6000-tdep.c (rs6000_pop_frame): Update.
6225 * remote.c (init_remote_state): Update.
6226 (remote_prepare_to_store): Update.
6227 * remote-vx.c (vx_prepare_to_store): Update.
6228 * remote-sds.c (sds_fetch_registers): Update.
6229 (sds_prepare_to_store): Update.
6230 * remote-array.c: Update.
6231 * regcache.c (init_legacy_regcache_descr): Update.
6232 (init_regcache_descr): Update.
6233 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6234 (mips_o64_extract_return_value): Update.
6235 * irix5-nat.c (fetch_core_registers): Update.
6236 * irix4-nat.c (fetch_core_registers): Update.
6237 * i386-tdep.h: Update.
6238 * hppa-tdep.c (pa_do_registers_info): Update.
6239 (pa_do_strcat_registers_info): Update.
6240 * cris-tdep.c (cris_register_bytes_ok): Update.
6241 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6242 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6243 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6244 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6245 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6246 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6247 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6248 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6249 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6250 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6251 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6252 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6253 (REGISTER_BYTES_OK): Update.
6254 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6255 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6256
ee2842e2
ILT
62572003-05-16 Ian Lance Taylor <ian@airs.com>
6258
6259 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6260 (vax_print_insn, print_insn_arg): Remove static functions.
6261 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6262 print_insn_vax from opcodes library.
6263 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6264
973177d3
AC
62652003-05-15 Andrew Cagney <cagney@redhat.com>
6266
aaab4dba
AC
6267 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6268 * target.h (memory_breakpoint_from_pc): Delete declaration.
6269 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6270 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6271 * monitor.c (monitor_insert_breakpoint): Use
6272 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6273 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6274 * gdbarch.h, gdbarch.c: Re-generate.
6275 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6276 (sparc_gdbarch_init): Set breakpoint_from_pc to
6277 sparc_breakpoint_from_pc.
6278 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6279 (BREAKPOINT_FROM_PC): Define.
6280 (sparc_breakpoint_from_pc): Declare.
6281 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6282 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6283 (BREAKPOINT_FROM_PC): Define.
6284 (BREAKPOINT): Delete macro.
6285 * target.h: Update comment.
6286 * s390-tdep.c (s390_gdbarch_init): Update comments.
6287 * remote.c: Update comments.
6288 * remote-mips.c: Update comments.
6289 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6290 * mem-break.c: Update comment.
6291 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6292 (ia64_memory_insert_breakpoint): Update.
6293 * config/sparc/tm-sparc.h: Update comment.
6294 * config/pa/tm-hppa64.h: Update comment.
6295 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6296 (rs6000_breakpoint_from_pc): Update.
6297 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6298 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6299 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6300 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6301 (mips_breakpoint_from_pc): Update.
6302 (mips_dump_tdep): Update.
6303
e06963ff
AC
6304 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6305 * minsyms.c (lookup_minimal_symbol): Inline
6306 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6307
973177d3
AC
6308 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6309 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6310 * p-lang.c (pascal_printstr): Ditto.
6311 * objc-lang.c (objc_printstr): Ditto.
6312 * m2-lang.c (m2_printstr): Ditto.
6313 * jv-valprint.c (java_print_value_fields): Ditto.
6314 * f-lang.c (f_printstr): Ditto.
6315 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6316 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6317 for repeat_count_threshold.
6318 * Makefile.in (cp-valprint.o): Update dependencies.
6319
5ea2bd7f 63202003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6321
5ea2bd7f
JJ
6322 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6323 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6324 they start with mov r2,r12. Support skipping over indirect stores
6325 of the input registers. Upon hitting a non-nop branch instruction
6326 or predicated instruction, bail out by setting lim_pc to the current
6327 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6328 beyond our calculated value and we have trust_limit set,
6329 use the lim_pc value.
6330
cc8c88f3
AC
63312003-05-15 Andrew Cagney <cagney@redhat.com>
6332
6333 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6334 generic_find_dummy_frame.
6335 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6336 (deprecated_generic_find_dummy_frame): Update.
6337 (deprecated_read_register_dummy): Update.
6338 * frame.c (deprecated_generic_get_saved_register): Update.
6339
909cd28e
TR
63402003-05-15 Theodore A. Roth <troth@openavr.org>
6341
6342 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6343 (avr_gdbarch_init): Set breakpoint_from_pc method.
6344
b923b08d
AC
63452003-05-15 Andrew Cagney <cagney@redhat.com>
6346
6347 * regcache.c (build_regcache): Set deprecated_register_valid
6348 directly.
6349 (deprecated_grub_regcache_for_register_valid): Delete function.
6350 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6351 declaration.
6352
ae2f03ac 63532003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6354
6355 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6356 * symtab.c (lookup_symbol_aux): Delete calls to
6357 lookup_symbol_aux_minsyms.
6358 (lookup_symbol_aux_minsyms): Comment out function and
6359 prototype. Delete lookup by mangled name.
ae2f03ac 6360
18ec9831
KB
63612003-05-14 Kevin Buettner <kevinb@redhat.com>
6362
6363 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6364 correctly indicate an empty stack and ``stack_allocated'' to the
6365 indicate the number of elements initially allocated.
6366 (dwarf_expr_grow_stack): Simplify method for computing new
6367 stack size. Don't loop infinitely if ``stack_len'' is zero.
6368 (execute_stack_op): Move ``ctx->in_reg'' initialization
6369 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6370 be used in conjuction with DW_OP_piece. Revise error message
6371 accordingly.
6372
de18ac1f
TR
63732003-05-14 Theodore A. Roth <troth@openavr.org>
6374
6375 * MAINTAINERS: Update my email address.
6376 * avr-tdep.c: Ditto.
6377
176620f1
EZ
63782003-05-14 Elena Zannoni <ezannoni@redhat.com>
6379
6380 * symtab.h (enum domain_enum): Rename from namespace_enum.
6381 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6382 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6383 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6384 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6385 TYPES_NAMESPACE, METHODS_NAMESPACE.
6386 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6387 (struct symbol, struct partial_symbol): Rename field
6388 'namespace_enum namespace' to 'domain_enum domain'.
6389 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6390 Delete old define kludge for namespace.
6391
6392 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6393 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6394 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6395 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6396 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6397 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6398 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6399 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6400 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6401 occurrences of the above.
6402
b7f31508
ILT
64032003-05-14 Ian Lance Taylor <ian@airs.com>
6404
6405 * Makefile.in (install-only): Use $(SHELL) when running
6406 mkinstalldirs.
6407
2fdbdd39
ILT
64082003-05-13 Ian Lance Taylor <ian@airs.com>
6409
a208d82c
ILT
6410 * MAINTAINERS (write after approval): Add myself.
6411
2fdbdd39
ILT
6412 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6413 second and third arguments.
6414 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6415 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6416
fbd9dcd3
AC
64172003-05-13 Andrew Cagney <cagney@redhat.com>
6418
6419 * defs.h (store_address): Delete declaration.
6420 findvar.c (store_address): Delete function.
6421 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6422 store_unsigned_integer.
6423 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6424 * v850-tdep.c (v850_push_arguments): Ditto.
6425 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6426 * sh-tdep.c (sh64_get_saved_register): Ditto.
6427 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6428 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6429 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6430 (mips_get_saved_register): Ditto.
6431 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6432 (find_func_descr, ia64_push_arguments): Ditto.
6433 * i386-tdep.c (i386_push_arguments): Ditto.
6434 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6435 * frv-tdep.c (frv_push_arguments): Ditto.
6436 * frame.c (legacy_saved_regs_prev_register): Ditto.
6437 (deprecated_generic_get_saved_register): Ditto.
6438 * findvar.c (unsigned_address_to_pointer): Ditto.
6439 * dwarf2read.c (dwarf2_const_value): Ditto.
6440 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6441 * alpha-tdep.c (alpha_push_arguments): Ditto.
6442
6760f9e6
JB
64432003-05-12 J. Brobecker <brobecker@gnat.com>
6444
6445 * NEWS: Mention that the hppa-hpux port has been partially
6446 multiarched (32bit ABIT only, so far).
6447
30e221b4
AC
64482003-05-11 Andrew Cagney <cagney@redhat.com>
6449
6450 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6451 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6452 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6453 sim/testsuite/sim/arm/misaligned2.ms, and
6454 sim/testsuite/sim/arm/misaligned3.ms.
6455 * disasm.h (struct ui_file): Add opaque struct declaration.
6456 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6457 * frame.h (struct ui_file): Ditto.
6458
dea7f9ba
MK
64592003-05-11 Mark Kettenis <kettenis@gnu.org>
6460
6461 * value.h: Pretty print.
6462
01986c48
MK
64632003-05-10 Mark Kettenis <kettenis@gnu.org>
6464
6465 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6466
123a958e
AC
64672003-05-08 Andrew Cagney <cagney@redhat.com>
6468
6469 * regcache.h (max_register_size): Delete declaration.
6470 * regcache.c (max_register_size): Delete function.
6471 (struct regcache_descr): Delete field "max_register_size".
6472 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6473 registers fit in MAX_REGISTER_SIZE.
6474 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6475 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6476 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6477 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6478 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6479 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6480 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6481 * dve3900-rom.c, hppa-tdep.c: Ditto.
6482
eb294659
DC
64832003-05-08 David Carlton <carlton@math.stanford.edu>
6484
6485 * valops.c (push_word): Fix typo.
6486
d9d9c31f
AC
64872003-05-08 Andrew Cagney <cagney@redhat.com>
6488
6489 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6490 * gdbarch.h: Re-generate.
6491 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6492 (legacy_max_register_raw_size): Delete declaration.
6493 * regcache.c (legacy_max_register_raw_size): Delete function.
6494 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6495 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6496 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6497 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6498 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6499 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6500 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6501 * findvar.c, dwarf2cfi.c: Ditto.
6502
22540ece
AC
65032003-05-08 Andrew Cagney <cagney@redhat.com>
6504
6505 * mips-tdep.c (read_signed_register): New function, moved to here
6506 from "regcache.c".
6507 (read_signed_register_pid): Ditto.
6508 * regcache.c (read_signed_register_pid): Delete function, moved to
6509 "mips-tdep.c".
6510 (read_signed_register): Ditto.
6511 * regcache.h (read_signed_register): Delete declaration.
6512 (read_signed_register_pid): Delete declaration.
6513
0c92afe8
AC
65142003-05-08 Andrew Cagney <cagney@redhat.com>
6515
6516 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6517 * gdbarch.h: Re-generate.
6518 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6519 (legacy_max_register_virtual_size): Delete declaration.
6520 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6521 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6522 * tracepoint.c (memrange_sortmerge): Ditto.
6523 * sparc-tdep.c (sparc_print_registers): Ditto.
6524 * regcache.c (legacy_max_register_virtual_size): Delete function.
6525
6037b830
JB
65262002-05-08 J. Brobecker <brobecker@gnat.com>
6527
6528 * fork-child.c (escape_bang_in_quoted_argument): New function.
6529 (fork_inferior): Escape '!' characters in quoted arguments
6530 only when needed.
6531
5d62c8b1
JB
65322003-05-08 J. Brobecker <brobecker@gnat.com>
6533
6534 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6535 the language of the CU is not currently supported by GDB.
6536
20a0e81d
JB
65372003-05-08 J. Brobecker <brobecker@gnat.com>
6538
6539 * defs.h (language): Add language_minimal enum value.
6540 * c-lang.c (minimal_language_defn): New language definition.
6541 (_initialize_c_language): Add the new minimal language to the list
6542 of languages known to GDB.
6543
710ee10a
KB
65442003-05-08 Kevin Buettner <kevinb@redhat.com>
6545
6546 * frame.c (get_frame_type): Don't attempt to lazily initialize
6547 frame's unwinder for legacy frames.
6548
1750fa04
AC
65492003-05-07 Andrew Cagney <cagney@redhat.com>
6550
6551 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6552 and "regcache" parameters.
6553 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6554
ddf9f258 65552003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6556
6557 * dwarf2read.c (dwarf_decode_lines): Only use output of
6558 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6559 the current address.
6560
87767c29
AC
65612003-05-07 Andrew Cagney <cagney@redhat.com>
6562
6563 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6564 code.
6565
5e7b2f39
JB
65662003-05-07 Jim Blandy <jimb@redhat.com>
6567
6568 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6569 'maint info symtabs' and 'maint info psymtabs'.
6570 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6571 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6572 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6573 Declarations updated.
6574 * maint.c (maintenance_list_command): Delete.
6575 (_initialize_maint_cmds): Update calls to add_cmd.
6576 * gdbcmd.h (maintenancelistlist): Delete declaration.
6577 * cli/cli-cmds.c (maintenancelistlist): Delete.
6578 (init_cmd_lists): Don't initialize it.
6579 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6580
f6684c31
AC
65812003-05-07 Andrew Cagney <cagney@redhat.com>
6582
6583 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6584 "regcache".
6585 (d10v_print_registers_info): Update.
6586 (d10v_dmap_register, d10v_imap_register): Delete functions.
6587 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6588 and "imap_register".
6589 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6590 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6591 * arch-utils.c (generic_remote_translate_xfer_address): Add
6592 "regcache" and "gdbarch" parameters.
6593 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6594 parameter. Change class to multi-arch.
6595 * gdbarch.h, gdbarch.c: Re-generate.
6596 * remote.c (remote_xfer_memory): Use
6597 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6598
e4846b08
JJ
65992003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6600
6601 * infrun.c (prev_pc): Move declaration ahead of proceed().
6602 (proceed): Refresh prev_pc value before resuming.
6603 (stop_stepping): Remove code to refresh prev_pc.
6604
6b71b8ac
KW
66052003-05-06 Kris Warkentin <kewarken@qnx.com>
6606
6607 * nto-tdep.c: Removed stray comment.
6608
47979a4b
KW
66092003-05-06 Kris Warkentin <kewarken@qnx.com>
6610
6611 * i386-nto-tdep.c: Fix old K&R function definitions.
6612 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6613 Also change add_show_from_set() call to add_setshow_cmd().
6614 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6615
00905d52
AC
66162003-05-05 Andrew Cagney <cagney@redhat.com>
6617
6618 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6619 (fprint_dummy_frames): New function.
6620 (maintenance_print_dummy_frames): New function.
6621 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6622 * frame.c (fprint_frame_id): Make global.
6623 * frame.h (fprint_frame_id): Declare.
6624 * Makefile.in (dummy-frame.o): Update dependencies.
6625
b1e29e33
AC
66262003-05-05 Andrew Cagney <cagney@redhat.com>
6627
6628 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6629 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6630 SIZEOF_CALL_DUMMY_WORDS.
6631 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6632 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6633 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6634 CALL_DUMMY_BREAKPOINT_OFFSET.
6635 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6636 CALL_DUMMY_START_OFFSET.
6637 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6638 * gdbarch.h, gdbarch.c: Re-generate.
6639 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6640 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6641 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6642 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6643 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6644 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6645 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6646 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6647 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6648 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6649 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6650 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6651 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6652 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6653 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6654
66552003-05-05 Kris Warkentin <kewarken@qnx.com>
6656
6657 * configure.tgt: Add i[3456]86-*-nto*.
6658 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6659 * nto-tdep.c: New file. Neutrino target support routines.
6660 * nto-tdep.h: New file. Neutrino target header.
6661 * config/tm-qnxnto.h: New file.
6662 * config/i386/i386nto.mt: New file.
6663 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6664
0ce3d317
AC
66652003-05-04 Andrew Cagney <cagney@redhat.com>
6666
6667 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6668 (load_infrun_state): Ditto.
6669 (struct thread_info): Drop "prev_func_name" field.
6670 * thread.c (load_infrun_state): Update.
6671 (save_infrun_state): Update.
6672 * infrun.c (prev_func_name): Delete variable.
6673 (init_wait_for_inferior): Do not clear prev_func_name.
6674 (stop_stepping, keep_going, context_switch): Do not swap
6675 prev_func_name.
6676 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6677 instead of PC_IN_SIGTRAMP.
6678
46654a5b
AC
66792003-05-04 Andrew Cagney <cagney@redhat.com>
6680
6681 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6682 REGISTER_BYTE with register_offset_hack.
6683 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6684 that REGISTER_BYTE is consistent with the regcache.
6685 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6686 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6687
14b08c1b
MK
66882003-05-04 Mark Kettenis <kettenis@gnu.org>
6689
04c8243f
MK
6690 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6691 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6692
14b08c1b
MK
6693 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6694
c7a11e01
JB
66952003-05-03 J. Brobecker <brobecker@gnat.com>
6696
6697 From Thierry Schneider <tpschneider1@yahoo.com>
6698 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6699 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6700 (mi-cmd-symbol.o): Add rule.
6701
7043d8dc
AC
67022003-05-03 Andrew Cagney <cagney@redhat.com>
6703
6704 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6705 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6706 * gdbarch.h, gdbarch.c: Re-generate.
6707 * d10v-tdep.c (d10v_push_dummy_code): New function.
6708 (d10v_gdbarch_init): Set push_dummy_code.
6709 * infcall.c (legacy_push_dummy_code): New function.
6710 (generic_push_dummy_code): New function.
6711 (push_dummy_code): New function.
6712 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6713 instead of dummy_addr, to push_dummy_call. Move call to
6714 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6715 switch.
6716 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6717
92bf2b80
AC
67182003-05-03 Andrew Cagney <cagney@redhat.com>
6719
6720 * disasm.h (print_insn): Declare.
6721 * disasm.c (init_gdb_disassemble_info): New function.
6722 (gdb_disassembly): Call init_gdb_disassemble_info.
6723 (gdb_print_insn): New function.
6724 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6725 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6726 * mcore-tdep.c: Include "disasm.h"
6727 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6728 * d10v-tdep.c: Include "disasm.h".
6729 (display_trace): Call gdb_print_insn, instead of print_insn.
6730 (print_insn): Delete function.
6731 * printcmd.c: Include "disasm.h".
6732 (print_insn): Delete function.
6733 (print_formatted): Call gdb_print_insn, instead of print_insn.
6734 * Makefile.in (printcmd.o): Update dependencies.
6735 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6736
27d94c49
AC
67372003-05-02 Andrew Cagney <cagney@redhat.com>
6738
82de1e5b
AC
6739 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6740 PC_REGNUM, re-indent.
6741 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6742 PC_REGNUM isn't set.
6743
27d94c49
AC
6744 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6745 * gdbarch.h, gdbarch.c: Re-generate.
6746 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6747 register_virtual_size, pc_regnum, or register_bytes.
6748 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6749 (d10v_register_type): Use D10V_PC_REGNUM.
6750 (d10v_print_registers_info, d10v_read_pc): Ditto.
6751 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6752 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6753
a9c0dc7f
DC
67542003-05-02 David Carlton <carlton@bactrian.org>
6755
6756 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6757 the name with mstrsave.
6758
e33d66ec
EZ
67592003-05-02 Elena Zannoni <ezannoni@redhat.com>
6760
6761 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6762 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6763 (host_charset_name, target_charset_name): New vars for use by
6764 set/show commands.
6765 (host_charset_enum, target_charset_enum): New enums for set/show
6766 commands.
6767 (set_charset_sfunc, set_host_charset_sfunc,
6768 set_target_charset_sfunc): New functions.
6769 (set_host_charset, set_target_charset): Make static.
6770 (list_charsets, set_host_charset_command,
6771 set_target_charset_command): Delete functions.
6772 (show_charset_command): Rewrite as....
6773 (show_charset): Hook this up with the set/show command mechanism.
6774 (_initialize_charset): Change names of charsets to match the
6775 set/show enums. Use host_charset_name and target_charset_name.
6776 Use set/show mechanism for charset, host-charset, target-charset
6777 commands. Do not make 'show host-charset' and 'show
6778 target-charset' be aliases of 'show charset'.
6779
6780 * charset.h (set_host_charset, set_target_charset): Don't export,
6781 they are not used outside the file.
6782
2b6fd0d8
AC
67832003-05-01 Andrew Cagney <cagney@redhat.com>
6784
6785 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6786 (gdb_disassembly): Make "di" non static, always initialize and
6787 cleanup. Always use dis_asm_read_memory.
6788 (gdb_dis_asm_read_memory): Delete function.
6789
6ae2f580
AC
67902003-05-01 Andrew Cagney <cagney@redhat.com>
6791
6792 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6793 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6794
810ecf9f
AC
67952003-04-30 Andrew Cagney <cagney@redhat.com>
6796
6797 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6798 "tm_print_insn_info".
6799 (TARGET_PRINT_INSN_INFO): Delete macro.
6800 (dis_asm_read_memory): Delete function declaration.
6801 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6802 (tm_print_insn_info): Delete variable definition.
6803 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6804 * gdbarch.h, gdbarch.c: Re-generate.
6805 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6806 "deprecated_tm_print_insn_info".
6807 * mcore-tdep.c (mcore_dump_insn): Ditto.
6808 * mips-tdep.c (mips_gdbarch_init): Ditto.
6809 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6810 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6811 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6812 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6813 instead of TARGET_PRINT_INSN_INFO, add comment.
6814 * s390-tdep.c (s390_get_frame_info): Instead of
6815 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6816 (s390_check_function_end, s390_is_sigreturn): Ditto.
6817 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6818 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6819 * disasm.c: Include "gdbcore.h".
6820 (_initialize_disasm): New function, initialize
6821 "deprecated_tm_print_insn_info".
6822 (deprecated_tm_print_insn_info): New variable.
6823 (dis_asm_read_memory): Moved from "corefile.c", made static.
6824 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6825 * Makefile.in (disasm.o): Update dependencies.
6826
07020390
AC
68272003-04-30 Andrew Cagney <cagney@redhat.com>
6828
6829 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6830
a9fa03de
AF
68312003-04-29 Adam Fedor <fedor@gnu.org>
6832
6833 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6834 * infcall.c (find_function_addr): Make non-static.
6835 * infcall.h (find_function_addr): Declare.
6836 * Makefile.in (eval.o): Update dependencies.
6837
1bae87b9
AF
68382003-04-28 Adam Fedor <fedor@gnu.org>
6839
6840 * symtab.c (symbol_find_demangled_name): Check for and demangle
6841 ObjC symbols.
6842 (symbol_init_demangled_name): Init for language_objc as well.
6843
0ba6dca9
AC
68442003-04-28 Andrew Cagney <cagney@redhat.com>
6845
6846 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6847 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6848 * gdbarch.h, gdbarch.c: Re-generate.
6849 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6850 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6851 * inferior.h (deprecated_read_fp): Rename read_fp.
6852 (generic_target_read_fp): Delete declaration.
6853 * regcache.c (generic_target_read_fp): Delete function.
6854 (deprecated_read_fp): Replace read_fp, use
6855 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6856 * d10v-tdep.c (d10v_read_fp): Delete function.
6857 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6858
6859 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6860 deprecated_target_read_fp to generic_target_read_fp.
6861 * sh-tdep.c (sh_gdbarch_init): Ditto.
6862 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6863 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6864 * frv-tdep.c (frv_gdbarch_init): Ditto.
6865
6866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6867 deprecated_fp_regnum.
6868 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6869 * vax-tdep.c (vax_gdbarch_init): Ditto.
6870 * v850-tdep.c (v850_gdbarch_init): Ditto.
6871 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6872 * sh-tdep.c (sh_gdbarch_init): Ditto.
6873 * s390-tdep.c (s390_gdbarch_init): Ditto.
6874 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6875 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6876 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6877 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6879 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6880 * i386-tdep.c (i386_gdbarch_init): Ditto.
6881 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6882 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6883 * frv-tdep.c (frv_gdbarch_init): Ditto.
6884 * cris-tdep.c (cris_gdbarch_init): Ditto.
6885 * avr-tdep.c (avr_gdbarch_init): Ditto.
6886 * arm-tdep.c (arm_gdbarch_init): Ditto.
6887 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6888
6889 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6890 * v850-tdep.c (v850_gdbarch_init): Ditto.
6891 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6892 * sh-tdep.c (sh_gdbarch_init): Ditto.
6893 * s390-tdep.c (s390_gdbarch_init): Ditto.
6894 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6895 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6896 * mips-tdep.c (mips_gdbarch_init): Ditto.
6897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6898 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6899 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6900 * frv-tdep.c (frv_gdbarch_init): Ditto.
6901 * avr-tdep.c (avr_gdbarch_init): Ditto.
6902 * arm-tdep.c (arm_gdbarch_init): Ditto.
6903
6904 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6905 DEPRECATED_FP_REGNUM.
6906 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6907 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6908 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6909 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6910 (sparc32_register_virtual_type): Ditto.
6911 * sh-tdep.c (sh64_frame_chain): Ditto.
6912 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6913 (sh_nofp_frame_init_saved_regs): Ditto.
6914 (sh64_nofp_frame_init_saved_regs): Ditto.
6915 (sh_fp_frame_init_saved_regs): Ditto.
6916 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6917 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6918 * procfs.c (procfs_fetch_registers): Ditto.
6919 (procfs_store_registers): Ditto.
6920 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6921 (store_inferior_registers, fetch_core_registers): Ditto.
6922 (fetch_kcore_registers, clear_regs): Ditto.
6923 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6924 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6925 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6926 * nlm/i386.c (do_status): Ditto.
6927 * mipsv4-nat.c (supply_gregset): Ditto.
6928 * mips-tdep.c: Ditto for comments.
6929 * mips-nat.c (fetch_inferior_registers): Ditto.
6930 (store_inferior_registers, fetch_core_registers): Ditto.
6931 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6932 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6933 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6934 (i386_do_pop_frame, i386_register_type): Ditto.
6935 * hppa-tdep.c (hppa_frame_chain): Ditto.
6936 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6937 (hppa_pop_frame, hppa_read_fp): Ditto.
6938 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6939 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6940 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6941 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6942 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6943 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6944 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6945 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6946 * blockframe.c: Ditto for comments.
6947 * arch-utils.h: Ditto for comments.
6948 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6949 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6950 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6951 * alpha-tdep.h: Ditto for comments.
6952 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6953 (alpha_cannot_store_register): Ditto.
6954 (alpha_push_dummy_frame): Ditto.
6955 * alpha-nat.c (supply_gregset): Ditto.
6956
6957 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6958 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6959 * config/sparc/tm-sparc.h: Update comment.
6960
6961 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6962 deprecated_read_fp instead of TARGET_READ_FP.
6963 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6964 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6965 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6966 deprecated_read_fp instead of read_fp.
6967 * s390-tdep.c (s390_push_arguments): Ditto.
6968 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6969 * frame.h: Ditto in comments.
6970 * frame.c (legacy_get_prev_frame): Ditto.
6971 * dummy-frame.c (dummy_frame_this_id): Ditto.
6972 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6973
d7a27068
AC
69742003-04-28 Andrew Cagney <cagney@redhat.com>
6975
6976 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6977 * gdbarch.h, gdbarch.c: Re-generate.
6978 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6979 * vax-tdep.c (_initialize_vax_tdep): Update.
6980 * v850-tdep.c (_initialize_v850_tdep): Update.
6981 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6982 * s390-tdep.c (_initialize_s390_tdep): Update.
6983 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6984 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6985 * mips-tdep.c (_initialize_mips_tdep): Update.
6986 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6987 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6988 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6989 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6990 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6991 * frv-tdep.c (_initialize_frv_tdep): Update.
6992 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6993 (_initialize_cris_tdep): Update.
6994 * arch-utils.c (legacy_print_insn): Update.
6995 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6996
d2630e69
AF
69972003-04-26 Adam Fedor <fedor@gnu.org>
6998
6999 * linespec.c (decode_objc): New function to decode ObjC calls
7000 (decode_line_1): Check for ObjC calls (using decode_objc)
7001 * Makefile (linespec.o): Update dependencies.
7002
3086aeae
DJ
70032003-04-26 Daniel Jacobowitz <drow@mvista.com>
7004
7005 * breakpoint.h (struct breakpoint_ops): New.
7006 (struct breakpoint): Add ops member.
7007
7008 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7009 (mention): Use new breakpoint ops member.
7010 (set_raw_breakpoint): Initialize ops field to NULL.
7011 (print_exception_catchpoint, print_one_exception_catchpoint)
7012 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7013 (gnu_v3_exception_catchpoint_ops): New.
7014 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7015
1fbec6c3
AF
70162003-04-25 Adam Fedor <fedor@gnu.org>
7017
7018 * Makefile.in (COMMON_OBS): Add objc-lang.o
7019
0ef21242
AC
70202003-04-25 Andrew Cagney <cagney@redhat.com>
7021
7022 * d10v-tdep.c (print_insn): Delete function.
7023 (display_trace): Use TARGET_PRINT_INSN.
7024 (_initialize_d10v_tdep): Do not set tm_print_insn.
7025 (d10v_gdbarch_init): Set print_insn.
7026
f75493ed
AC
70272003-04-25 Andrew Cagney <cagney@redhat.com>
7028
7029 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7030 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7031 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7032 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7033 (nr_dmap_regs, a0_regnum): ... new functions.
7034 (d10v_print_registers_info): Use a0_regnum, use register_size.
7035 (d10v_register_byte): Delete function.
7036 (d10v_register_raw_size): Delete function.
7037 (d10v_register_type): Use a0_regnum.
7038 (d10v_print_registers_info): Use a0_regnum.
7039 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7040 (d10v_gdbarch_init): Do not set register_byte or
7041 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7042 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7043 extract_address.
7044 (trace_command): Use XCALLOC.
7045 (print_insn): Delete reference to tm_print_insn.
7046 (saved_regs_unwinder): Use store_unsigned_integer instead of
7047 store_address.
7048 * frame.h (FRAME_OBSTACK_CALLOC): Define
7049
2202b100
DC
70502003-04-25 David Carlton <carlton@bactrian.org>
7051
7052 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7053
4e45ca2e
AF
70542003-04-24 Adam Fedor <fedor@gnu.org>
7055
7056 * objc-lang.c: Include "valprint.h"
7057 * Makefile.in (objc-lang.o): Update dependencies.
7058
93de3e7f
AF
70592003-04-24 Adam Fedor <fedor@gnu.org>
7060
8ffd9b1b 7061 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7062 architecture dependant compilation and mark as unimplemented
7063 (until they get put in the gdbarch vector).
7064
0f20eeea
DC
70652003-04-23 David Carlton <carlton@bactrian.org>
7066
7067 * cp-support.c (cp_find_first_component): Accept 'operator' in
7068 more locations.
7069
74cfe982
AC
70702003-04-23 Andrew Cagney <cagney@redhat.com>
7071
7072 * infcall.c (call_function_by_hand): Eliminate redundant
7073 indentation. Move "saved_async" and "old_cleanups" to where they
7074 are needed.
8ffd9b1b 7075
52557533
AC
70762003-04-23 Andrew Cagney <cagney@redhat.com>
7077
7078 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7079 and "buffer". Move the "name" code to where it is needed.
7080
158775de
AC
70812003-04-23 Andrew Cagney <cagney@redhat.com>
7082
7083 * infcall.c (call_function_by_hand): Move variables "start_sp",
7084 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7085 code to ON_STACK switch branch.
8ffd9b1b 7086
ebc7896c
AC
70872003-04-23 Andrew Cagney <cagney@redhat.com>
7088
7089 * infcall.c (call_function_by_hand): Make declaration of "i",
7090 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7091 lint.
7092
d727590f
AC
70932003-04-23 Andrew Cagney <cagney@redhat.com>
7094
7095 * infcall.c (call_function_by_hand): Delete variable
7096 "n_method_args". Localize "param_type"'s declaration to the loop
7097 that it is used. Reinstate code assigning to said variable -
7098 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7099 Rationalize code using "param_type".
7100
d585e13a
AC
71012003-04-22 Andrew Cagney <cagney@redhat.com>
7102
7103 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7104 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7105 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7106 to DEPRECATED_PUSH_RETURN_ADDRESS.
7107
051caad9
KB
71082003-04-22 Kevin Buettner <kevinb@redhat.com>
7109
7110 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7111 on the DWARF2 register number prior to fetching a register.
7112
77296879
JB
71132003-04-22 J. Brobecker <brobecker@gnat.com>
7114
7115 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7116 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7117 this macro was always set to 0.
77296879
JB
7118 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7119 considering the fact that this macro was always set to 0.
7120 * hppa-tdep.h (hppa_store_return_value): Likewise.
7121 (hppa_extract_return_value): Likewise.
7122
4252f1df
JB
71232003-04-22 J. Brobecker <brobecker@gnat.com>
7124
7125 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7126 the hppa-pro target only.
7127
14604c6b
JB
71282003-04-21 J. Brobecker <brobecker@gnat.com>
7129
7130 Ongoing multi-arch conversion effort for HP/UX:
7131 * config/pa/tm-hppa.h: Move all macro that are no longer
7132 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7133 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7134
77eb01d1
JB
71352003-04-21 J. Brobecker <brobecker@gnat.com>
7136
7137 * config/pa/tm-hppa.h: Obsolete a section that was only used
7138 for hppa-pro.
7139
61995b3b
JB
71402003-04-21 J. Brobecker <brobecker@gnat.com>
7141
7142 Ongoing multi-arch conversion for HP/UX.
7143 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7144 if already defined (allows hppa64 to stay non-multiarched for now).
7145 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7146
4aa79dcc
AC
71472003-04-21 Andrew Cagney <cagney@redhat.com>
7148
7149 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7150
0f751ff2
AC
71512003-04-21 Andrew Cagney <cagney@redhat.com>
7152
7153 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7154 "i386_num_mmx_regs".
7155
04714b91
AC
71562003-04-21 Andrew Cagney <cagney@redhat.com>
7157
7158 * infcall.c: New file.
7159 * infcall.h: New file.
7160 * valarith.c: Include "infcall.h".
7161 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7162 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7163 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7164 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7165 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7166 (SFILES): Add "infcall.c"
7167 (COMMON_OBS): Add "infcall.o".
7168 (infcall.o): Specify dependencies.
7169 * value.h (call_function_by_hand): Delete declaration.
7170 * inferior.h (run_stack_dummy): Delete declaration.
7171 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7172 (run_stack_dummy): Move to "infcall.c", merged into
7173 call_function_by_hand.
7174 * valops.c (call_function_by_hand): Moved to "infcall.c".
7175 (find_function_addr, value_arg_coerce): Ditto.
7176 (unwindonsignal_p, coerce_float_to_double): Ditto.
7177 (_initialize_valops): Move "set/show coerce-float-to-double", and
7178 "set/show unwindonsignal" commands to "infcall.c".
7179 * v850-tdep.c, target.h: Update comments.
7180 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7181 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7182 (sh64_init_extra_frame_info): Update comments.
7183 * mn10300-tdep.c: Update comments.
7184 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7185 * config/sparc/tm-sparc.h: Update comments.
7186 * breakpoint.h: Update comments.
7187 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7188 * arm-tdep.c: Update comment.
7189
f9d3c2a8
MK
71902003-04-19 Mark Kettenis <kettenis@gnu.org>
7191
c40e1eab
MK
7192 * i386-tdep.c (i386_num_register_names): New variable.
7193 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7194 (MM0_REGNUM): Remove redundant parentheses in define.
7195 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7196 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7197 i386_mxcsr_regnum_p): Remove redundant parentheses.
7198 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7199
94ea66b3
MK
7200 * i386-tdep.c (i386_extract_return_value,
7201 i386_store_return_value): Correct check for availability of
7202 floating-point registers.
7203
54299a1d
MK
7204 * i386-tdep.c (i386_frame_num_args): Remove function.
7205 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7206
c86c27af
MK
7207 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7208 mmx_regnum_to_fp_regnum. Adjust all callers.
7209
f9d3c2a8
MK
7210 * i386-tdep.c (i386_get_longjmp_target): Use
7211 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7212 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7213 extract_address.
7214
94ba74a9
MK
72152003-04-19 Mark Kettenis <kettenis@gnu.org>
7216
7217 * core-regset.c: Update comments to reflect reality. Re-order
7218 includes.
7219 (fetch_core_registers): Use switch instead of if. Remove
7220 redundant prototype.
7221
4074e13c
JB
72222003-04-18 Jim Blandy <jimb@redhat.com>
7223
7224 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7225 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7226
e3ab4aba
RH
72272003-04-17 Richard Henderson <rth@redhat.com>
7228
7229 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7230
627bf7c1
EZ
72312003-04-17 Michael Snyder <msnyder@redhat.com>
7232 Karen Bennet <bennet@redhat.com>
7233
7234 Committed by Elena Zannoni <ezannoni@redhat.com>
7235 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7236
514621a9
EZ
72372003-04-17 Elena Zannoni <ezannoni@redhat.com>
7238
7239 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7240 value if the return type is void.
514621a9 7241
b4acd559
JJ
72422003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7243
7244 * thread-db.c: Reindented.
8ffd9b1b 7245
530b167e 72462003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7247
7248 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7249 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7250 as types.
7251
0a48e7e8
MS
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
8ffd9b1b 7275
ab9fe00e
KB
72762003-04-16 Kevin Buettner <kevinb@redhat.com>
7277
610a3745 7278 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7279 the size of ``long double'' to 16, instead of 8.
7280
e64a344c
MK
72812003-04-16 Mark Kettenis <kettenis@gnu.org>
7282
7283 * i386-linux-nat.c: Add some whitespace to make things more
7284 readable.
7285 (fetch_register, store_register, fetch_inferior_registers,
7286 store_inferior_registers): Get rid of assignment in if-statement.
7287 (store_register): Fix typo in error message.
7288
25d41031
AC
72892003-04-16 Andrew Cagney <cagney@redhat.com>
7290
7291 * utils.c (xmmalloc): Always allocate something, matches
7292 libiberty/xmalloc's semantics.
7293 (xmrealloc, xmcalloc): Ditto.
7294
c50901fd
AC
72952003-04-16 Andrew Cagney <cagney@redhat.com>
7296
7297 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7298 update comments.
7299 (get_frame_type): Initialize unwind and type when needed.
7300 (get_frame_id, frame_register_unwind): Ditto.
7301
f81824a9
AC
73022003-04-16 Andrew Cagney <cagney@redhat.com>
7303
7304 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7305 obsolete.
7306 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7307 * sparcl-stub.c: Obsolete file.
7308 * config/sparc/tm-sparclet.h: Obsolete file.
7309 * sparclet-stub.c: Obsolete file.
7310 * sparclet-rom.c: Obsolete file.
7311 * sparcl-tdep.c: Obsolete file.
7312 * config/sparc/tm-sparclite.h: Obsolete file.
7313 * config/sparc/sparclite.mt: Obsolete file.
7314 * config/sparc/sparclet.mt: Obsolete file.
7315 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7316 sparc86x-*-* obsolete.
7317
9219021c
DC
73182003-04-15 David Carlton <carlton@math.stanford.edu>
7319
7320 * Makefile.in (SFILES): Add cp-namespace.c.
7321 (COMMON_OBS): Add cp-namespace.o.
7322 (block.o): Depend on gdb_obstack_h and cp_support_h.
7323 (buildsym.o): Depend on cp_support_h.
7324 (cp-namespace.o): New.
7325 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7326 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7327 (dwarf2read.o): Depend on cp_support_h.
7328 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7329 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7330 processing_current_namespace.
7331 (read_namespace): Update processing_current_namespace; check for
7332 anonymous namespaces.
7333 (dwarf2_name): New function.
7334 (dwarf2_extension): Ditto.
7335 * cp-support.h: Update copyright, contributors.
7336 Add inclusion guards.
7337 Add opaque declaration for structs obstack, block, symbol.
7338 (struct using_direct): New struct.
7339 Add declarations for cp_find_first_component,
7340 cp_entire_prefix_len, processing_has_namespace_info,
7341 processing_current_namespace, cp_is_anonymous,
7342 cp_add_using_directive, cp_initialize_namespace,
7343 cp_finalize_namespace, cp_set_block_scope,
7344 cp_scan_for_anonymous_namespaces.
7345 * cp-namespace.c: New file.
7346 * cp-support.c: Update copyright.
7347 Include ctype.h, gdb_assert.h, gdbcmd.h.
7348 New variable maint_cplus_cmd_list.
7349 (cp_find_first_component): New function.
7350 (cp_entire_prefix_len, maint_cplus_command)
7351 (first_component_command, _initialize_cp_support): Ditto.
7352 * buildsym.c: Include cp-support.h.
7353 New variable using_list.
7354 (add_symbol_to_list): Check for anonymous namespaces.
7355 (finish_block): Set block's scope.
7356 (start_symtab): Initialize C++ namespace support.
7357 (end_symtab): Finalize C++ namespace support.
7358 * block.h: Add opaque declarations for structs
7359 block_namespace_info, using_direct, and obstack.
7360 Add declarations for block_set_scope and block_set_using.
7361 (struct block): Add 'language_specific' member.
7362 (BLOCK_NAMESPACE): New macro.
7363 * block.c: Include gdb_obstack.h and cp-support.h.
7364 (struct block_namespace_info): New struct.
7365 (block_set_scope): New function.
7366 (block_set_using, block_initialize_namespace): Ditto.
7367
d5a921c9
KB
73682003-04-14 Kevin Buettner <kevinb@redhat.com>
7369
7370 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7371 (locate_base): Return early if there aren't any link map offsets.
7372 (svr4_solib_create_inferior_hook): Warn if shared library support
7373 is unavailable.
7374
d2a52b27
DC
73752003-04-14 David Carlton <carlton@math.stanford.edu>
7376
7377 * symtab.c (symbol_set_names): Add prefix when storing Java names
7378 in hash table. Fix for PR java/1039.
7379
980cae7a
DC
73802003-04-14 David Carlton <carlton@math.stanford.edu>
7381
7382 * symtab.c (symbol_set_names): Rename 'name' arg to
7383 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7384 * symtab.h: Change 'name' argument in declaration of
7385 symbol_set_names to 'linkage_name'.
7386 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7387
e227b13c
AC
73882003-04-14 Andrew Cagney <cagney@redhat.com>
7389
7390 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7391 return the fully sign-extended register value.
7392 (get_frame_pointer): Ditto.
7393 (mips_pop_frame): Initialize "proc_desc" after checking for a
7394 dummy frame.
7395
36712a20
AC
73962003-04-14 Andrew Cagney <cagney@redhat.com>
7397
7398 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7399 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7400 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7401 (mips_push_register): Delete function.
7402 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7403 PUSH_FP_REGNUM.
7404
44ea7b70
JB
74052003-04-14 Jim Blandy <jimb@redhat.com>
7406
7407 * symmisc.c: #include "gdb_regex.h".
7408 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7409 functions.
7410 * maint.c (maintenance_list_command): New function.
7411 (_initialize_maint_cmds): Register the above as commands.
7412 * symtab.h (maintenance_list_symtabs,
7413 maintenance_list_psymtabs): New declarations.
7414 * cli/cli-cmds.c (maintenancelistlist): New variable.
7415 (init_cmd_lists): Initialize it.
7416 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7417 * gdbcmd.h (maintenancelistlist): New declaration.
7418 * Makefile.in (symmisc.o): Update dependencies.
7419
2d0c7962
EZ
74202003-04-14 Elena Zannoni <ezannoni@redhat.com>
7421
7422 * s390-nat.c: Include asm/types.h for addr_t.
7423
1947a811
CV
74242003-04-14 Corinna Vinschen <vinschen@redhat.com>
7425
7426 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7427 actually incoming type.
7428
adb616d7
AC
74292003-04-13 Andrew Cagney <cagney@redhat.com>
7430
7431 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7432 get_next_frame and get_frame_saved_regs.
7433
9b5e151c
AC
74342003-04-13 Andrew Cagney <cagney@redhat.com>
7435
7436 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7437 of gdbarch_num_regs.
7438
ef6e7e13
AC
74392003-04-13 Andrew Cagney <cagney@redhat.com>
7440
7441 * frame.h: Mention what replaced what in "struct frame_info".
7442 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7443 deprecated_update_frame_base_hack and
7444 deprecated_update_frame_pc_hack.
7445 * hppa-tdep.c: Ditto.
7446
61fbb938
DJ
74472003-04-13 Daniel Jacobowitz <drow@mvista.com>
7448
7449 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7450 to read_reg and update its comment. Remove regnum member.
7451 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7452 Don't call read_reg when setting in_reg. Call read_reg to get
7453 the frame base if it's in a register. Return the register number
7454 on the stack instead of in the context. Remove extra arguments
7455 to read_reg.
7456 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7457 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7458 the register number on the expression stack.
7459 (needs_frame_read_reg): Remove extra arguments.
7460
0d53c4c4
DJ
74612003-04-13 Daniel Jacobowitz <drow@mvista.com>
7462
7463 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7464 made non-static.
7465 (execute_stack_op): All callers updated.
7466 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7467 * dwarf2loc.c (find_location_expression): New function.
7468 (dwarf_expr_frame_base): Call it.
7469 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7470 (dwarf2_tracepoint_var_ref): New function, broken out from
7471 locexpr_tracepoint_var_ref.
7472 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7473 Make static.
7474 (loclist_read_variable, loclist_read_needs_frame): New functions.
7475 (loclist_describe_location, loclist_tracepoint_var_ref): New
7476 functions.
7477 (dwarf2_loclist_funcs): New struct location_funcs.
7478 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7479 (struct dwarf2_locexpr_baton): Add comments.
7480 (dwarf2_loclist_funcs): New extern.
7481 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7482 base_address and base_known.
7483 (dwarf_loc_buffer): New variable.
7484 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7485 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7486 (dwarf2_has_info): Initialize dwarf_loc_offset.
7487 (dwarf2_build_psymtabs): Read in .debug_loc.
7488 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7489 DWARF_LOC_SIZE.
7490 (psymtab_to_symtab_1): Likewise. Move base address calculation
7491 here, from...
7492 (dwarf2_get_pc_bounds): ... here. Use the base address from
7493 cu_header.
7494 (dwarf2_symbol_mark_computed): Handle location lists.
7495
6aca59a3
DJ
74962003-04-13 Daniel Jacobowitz <drow@mvista.com>
7497
7498 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7499 if the linkage name demangled successfully.
7500
aca1fcd0
MK
75012003-04-13 Mark Kettenis <kettenis@gnu.org>
7502
97095916
MK
7503 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7504 disassmbly_flavour): Removed.
7505
aca1fcd0
MK
7506 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7507
562a961f
MK
75082003-04-13 Mark Kettenis <kettenis@gnu.org>
7509
7510 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7511
bd013d54
AC
75122003-04-12 Andrew Cagney <cagney@redhat.com>
7513
7514 * frame.h (struct frame_info): Move definition from here ...
7515 * frame.c (struct frame_info): ... to here.
7516
167ef8b1
AC
75172003-04-12 Andrew Cagney <cagney@redhat.com>
7518
7519 * gdbthread.h (save_infrun_state): Delete parameter
7520 "prev_func_start".
7521 (struct thread_info): Delete field "prev_func_start".
7522 (load_infrun_state): Ditto.
7523 * thread.c (load_infrun_state, save_infrun_state): Update.
7524 * infrun.c (prev_func_start): Delete variable.
7525 (context_switch, init_wait_for_inferior): Update.
7526 (stop_stepping, keep_going): Update.
7527
da3331ec
AC
75282003-04-12 Andrew Cagney <cagney@redhat.com>
7529
7530 * gdbarch.sh: Add missing opaque declarations.
7531 * gdbarch.h: Regnerate.
7532 * symtab.h: Add missing opaque declarations.
7533 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7534 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7535 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7536 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7537 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7538 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7539 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7540 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7541 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7542 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7543 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7544 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7545 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7546
18adea3f
AC
75472003-04-11 Andrew Cagney <cagney@redhat.com>
7548
7549 * frame.c (get_frame_id): Return this frame's "id".
7550 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7551 function start.
7552 (legacy_saved_regs_this_id): Replace function body with
7553 internal-error.
7554 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7555 FRAME_OBSTACK_ZALLOC.
7556 (create_new_frame): Mark the frame ID as valid.
7557
2252e863
AO
75582003-04-11 Alexandre Oliva <aoliva@redhat.com>
7559
7560 * Makefile.in (libbfd_h): Added missing setting.
7561 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7562 according to the selected ABI.
7563
a8245ab8
JJ
75642003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7565
7566 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7567
6913c89a
AC
75682003-04-11 Andrew Cagney <cagney@redhat.com>
7569
7570 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7571 SAVED_PC_AFTER_CALL.
7572 * gdbarch.h, gdbarch.c: Regenerate.
7573 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7574 * x86-64-tdep.c (x86_64_init_abi): Update.
7575 * vax-tdep.c (vax_gdbarch_init): Update.
7576 * v850-tdep.c (v850_gdbarch_init): Update.
7577 * sparc-tdep.c (sparc_gdbarch_init): Update.
7578 * sh-tdep.c (sh_gdbarch_init): Update.
7579 * s390-tdep.c (s390_gdbarch_init): Update.
7580 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7581 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7582 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7583 * mips-tdep.c (mips_gdbarch_init): Update.
7584 * mcore-tdep.c (mcore_gdbarch_init): Update.
7585 * m68k-tdep.c (m68k_gdbarch_init): Update.
7586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7587 * ia64-tdep.c (ia64_gdbarch_init): Update.
7588 (ia64_saved_pc_after_call): Update declaration.
7589 * i386ly-tdep.c (i386lynx_init_abi): Update.
7590 * i386-tdep.c (i386_gdbarch_init): Update.
7591 * hppa-tdep.c (hppa_gdbarch_init): Update.
7592 * h8300-tdep.c (h8300_gdbarch_init): Update.
7593 * frv-tdep.c (frv_gdbarch_init): Update.
7594 * cris-tdep.c (cris_gdbarch_init): Update.
7595 * avr-tdep.c (avr_gdbarch_init): Update.
7596 * arm-tdep.c (arm_gdbarch_init): Update.
7597 * alpha-tdep.c (alpha_gdbarch_init): Update.
7598 * ns32knbsd-nat.c (frame_num_args): Update.
7599 * ns32k-tdep.c (umax_frame_num_args): Update.
7600 * mips-tdep.c (mips_init_frame_pc_first): Update.
7601 * infrun.c (step_over_function): Update.
7602 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7603 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7604 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7605 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7606 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7607 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7608 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7609 * arch-utils.c (init_frame_pc_default): Update.
7610 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7611 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7612 declaration.
8ffd9b1b 7613
38edeab8
AC
76142003-04-11 Andrew Cagney <cagney@redhat.com>
7615
7616 * i387-tdep.c: Update copyright.
7617 (i387_to_double): Delete function.
7618 (double_to_i387): Delete function.
7619
81f8a206
AC
76202003-04-10 Andrew Cagney <cagney@redhat.com>
7621
7622 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7623 frame's function's address. Simplify.
7624 (d10v_frame_unwind_cache): Check that the frame's function is
7625 non-zero.
7626
6e691f7a
JB
76272003-04-10 Jim Blandy <jimb@redhat.com>
7628
7629 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7630 call to set_gdbarch_deprecated_push_arguments.
7631
7f78e237
AC
76322003-04-10 Andrew Cagney <cagney@redhat.com>
7633
7634 * frame.c (fprint_frame_id): New function.
7635 (fprint_frame_type, fprint_frame): New function.
7636 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7637 (create_sentinel_frame, get_frame_id): Ditto.
7638 (frame_id_p, frame_id_eq): Ditto.
7639 (frame_id_inner, create_new_frame): Ditto.
7640 (legacy_get_prev_frame, get_prev_frame): Ditto.
7641 (deprecated_update_frame_pc_hack): Ditto.
7642 (frame_register_unwind): Ditto.
7643 (deprecated_update_frame_base_hack): Ditto.
7644
f870b49b
CV
76452003-04-10 Corinna Vinschen <vinschen@redhat.com>
7646
7647 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7648 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7649 frame_chain function.
7650 * Makefile.in: Add dependencies due to above change.
7651
7c86889b
CV
76522003-04-10 Corinna Vinschen <vinschen@redhat.com>
7653
7654 * blockframe.c (legacy_frame_chain_valid): Move call to
7655 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7656 inside_entry_file.
7657
d0a55772
AC
76582003-04-09 Andrew Cagney <cagney@redhat.com>
7659
7660 * frame.h (struct frame_id): Replace "pc" and "base" with
7661 "stack_addr" and "code_addr". Update comments.
7662 (frame_id_build): Update parameter names and comment.
7663 (struct frame_info): Replace "id_p" and "id" with "this_id".
7664 * dummy-frame.c (dummy_frame_this_id): Update.
7665 * breakpoint.c (print_one_breakpoint): Update.
7666 * frame.c (get_frame_id): Update.
7667 (get_frame_base, frame_id_build): Update.
7668 (create_sentinel_frame, legacy_get_prev_frame): Update.
7669 (deprecated_update_frame_base_hack): Update.
7670 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7671 (frame_id_inner): Ditto.
7672
ac16bf07
AC
76732003-04-09 Andrew Cagney <cagney@redhat.com>
7674
7675 * defs.h (gdb_print_host_address): Make "addr" parameter a
7676 pointer constant.
7677 * utils.c (gdb_print_host_address): Update.
7678
366cfc9e
KB
76792003-04-09 Kevin Buettner <kevinb@redhat.com>
7680
7681 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7682 register number for R0 is 0.
7683
cd983b5c
JB
76842003-04-09 J. Brobecker <brobecker@gnat.com>
7685
7686 * frame.h (struct gdbarch): Add opaque structure definition
7687 to avoid a compilation warning on LynxOS 4.0.
7688
d1340264
AC
76892003-04-09 Andrew Cagney <cagney@redhat.com>
7690
7691 * frame.h (struct frame_info): Delete field "pc". Replace
7692 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7693 structure.
7694 * frame.c (frame_pc_unwind): Update.
7695 (create_sentinel_frame): Do not set "pc".
7696 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7697 (get_frame_pc): Call frame_pc_unwind.
7698 (deprecated_update_frame_pc_hack): Update.
7699 (create_new_frame): Use "pc" not "->pc".
7700
90a6fffb
AC
77012003-04-09 Andrew Cagney <cagney@redhat.com>
7702
7703 * frame.c (get_frame_id): Eliminate code updating "frame".
7704 (legacy_get_prev_frame): Ditto.
7705 (get_frame_base): Return id.base directly.
7706 (deprecated_update_frame_base_hack): Update "id.base".
7707 * frame.h (struct frame_info): Delete field "frame".
7708
2fbce691
AC
77092003-04-09 Andrew Cagney <cagney@redhat.com>
7710
7711 * NEWS: Mention that the "Sequent family" is obsolete.
7712 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7713 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7714 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7715 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7716 * config/i386/tm-ptx4.h: Obsolete file.
7717 * config/i386/tm-ptx.h: Obsolete file.
7718 * symm-tdep.c: Obsolete file.
7719 * config/i386/symmetry.mt: Obsolete file.
7720 * config/i386/tm-symmetry.h: Obsolete file.
7721 * symm-nat.c: Obsolete file.
7722 * config/i386/nm-symmetry.h: Obsolete file.
7723 * config/i386/xm-symmetry.h: Obsolete file.
7724 * config/i386/symmetry.mh: Obsolete file.
7725 * config/i386/nm-ptx4.h: Obsolete file.
7726 * config/i386/ptx4.mh: Obsolete file.
7727 * config/i386/ptx.mt: Obsolete file.
7728 * config/i386/ptx.mh: Obsolete file.
7729 * config/i386/xm-ptx4.h: Obsolete file.
7730 * config/i386/xm-ptx.h: Obsolete file.
7731
78c43945
AC
77322003-04-09 Andrew Cagney <cagney@redhat.com>
7733
7734 Obsolete mips*-*-mach3*.
7735 * NEWS: Mention that mips*-*-mach3* is obsolete.
7736 * m3-nat.c: Obsolete file.
7737 * config/nm-m3.h: Obsolete file.
7738 * config/mips/tm-mipsm3.h: Obsolete file.
7739 * config/mips/mipsm3.mt: Obsolete file.
7740 * config/mips/mipsm3.mh: Obsolete file.
7741 * config/mips/xm-mipsm3.h: Obsolete file.
7742 * mipsm3-nat.c: Obsolete file.
7743 * configure.host: Obsolete mips-dec-mach3*.
7744 * configure.tgt: Obsolete mips*-*-mach3*.
7745
f1908289
AC
77462003-04-09 Andrew Cagney <cagney@redhat.com>
7747
7748 * doublest.h: Update copyright.
7749 (deprecated_store_floating, deprecated_extract_floating): Rename
7750 store_floating and extract_floating. Update comments.
7751 * doublest.c: Update copyright.
7752 (extract_floating_by_length): Replace extract_floating.
7753 (store_floating_by_length): Replace store_floating.
7754 (deprecated_extract_floating): New function.
7755 (deprecated_store_floating): New function.
7756 (extract_typed_floating): Call extract_floating_by_length.
7757 (store_typed_floating): Call store_floating_by_length.
7758 * x86-64-tdep.c (x86_64_store_return_value): Update.
7759 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7760 (sh64_extract_return_value): Update.
7761 (sh_sh4_register_convert_to_virtual): Update.
7762 (sh_sh64_register_convert_to_virtual): Update.
7763 (sh_sh4_register_convert_to_raw): Update.
7764 (sh_sh64_register_convert_to_raw): Update.
7765 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7766 (rs6000_register_convert_to_raw): Update.
7767 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7768 (ia64_register_convert_to_raw): Update.
7769 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7770 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7771 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7772 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7773 (alpha_register_convert_to_raw): Update.
7774
4443bd83
AC
77752003-04-08 Andrew Cagney <cagney@redhat.com>
7776
7777 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7778 * gdbarch.h, gdbarch.c: Re-generate.
7779 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7780 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7781 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7782 conditionally, use frame_pc_unwind as an alternative. Add
7783 comments.
7784 * arch-utils.c (init_frame_pc_default): Only call
7785 SAVED_PC_AFTER_CALL when available.
7786
c0236d92
EZ
77872003-04-08 Elena Zannoni <ezannoni@redhat.com>
7788
fbe586ae 7789 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7790 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7791 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7792 (start_remote): Ditto.
7793 (handle_inferior_event): Ditto.
7794 (save_inferior_status): Ditto.
7795 (restore_inferior_status): Ditto.
7796 * infcmd.c (attach_command): Ditto.
7797 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7798 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7799 * alpha-tdep.c (heuristic_proc_start): Ditto.
7800 * mips-tdep.c (heuristic_proc_start): Ditto.
7801 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7802 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7803 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7804 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7805 * remote-vx.c (vx_create_inferior): Ditto.
7806
78072003-04-08 Elena Zannoni <ezannoni@redhat.com>
7808
7809 * infrun.c (stop_soon_quietly): Make it an enum, to better
7810 override the default behavior of handle_inferior_event.
7811 (clear_proceed_status): Update uses of stop_soon_quietly to
7812 reflect that it is now an enum.
7813 (start_remote): Ditto.
7814 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7815 is set to handle the new GNU/Linux kernel behavior for
7816 attach/sigstop. Update uses of stop_soon_quietly.
7817 * inferior.h (enum stop_kind): New enum.
7818 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7819 Reset normal handle_inferior_event behavior, afterwards.
7820 * fork-child.c (startup_inferior): Update.
7821 * alpha-tdep.c (heuristic_proc_start): Update.
7822 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7823 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7824 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7825 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7826 * remote-vx.c (vx_create_inferior): Update.
7827 * mips-tdep.c (heuristic_proc_start): Update.
7828
1211bce3
EZ
78292003-04-07 Elena Zannoni <ezannoni@redhat.com>
7830
7831 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7832 be freed more than once, causing wild memory corruptions.
1211bce3 7833 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7834 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7835 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7836 with the "core" target.
1211bce3 7837
f0ef6b29
KB
78382003-04-07 Kevin Buettner <kevinb@redhat.com>
7839
7840 * mips-tdep.c (mips_print_fp_register): New function, created from
7841 do_fp_register_row(). Registers are now (also) printed as hex.
7842 Only one register is printed per row.
7843 (mips_print_register, do_fp_register_row): Print floating point
7844 registers with mips_print_fp_register().
7845
8cf71652
AC
78462003-04-06 Andrew Cagney <cagney@redhat.com>
7847
5e488a7b
AC
7848 * valprint.h (inspect_it): Add extern declaration.
7849 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7850 (selectors_info, classes_info): Ditto.
7851 (find_objc_msgcall): Fix indentation.
7852 (objc_printstr): Delete extern declarations.
7853
8cf71652
AC
7854 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7855
e6ba3bc9
AC
78562003-04-06 Andrew Cagney <cagney@redhat.com>
7857
7858 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7859 Update comment.
7860 * frame.c (legacy_saved_regs_this_id): Update.
7861 (legacy_get_prev_frame): Update.
7862 * xstormy16-tdep.c: Update comment.
7863 * sparc-tdep.c (sparc_frame_chain): Update comment.
7864 * blockframe.c (legacy_frame_chain_valid): Update.
7865
55e1d7e7
AC
78662003-04-06 Andrew Cagney <cagney@redhat.com>
7867
996179ee
AC
7868 * valprint.c (val_print_type_code_int): Delete #ifdef
7869 PRINT_TYPELESS_INTEGER code.
7870
55e1d7e7
AC
7871 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7872 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7873 multi-arch definition.
7874 * gdbarch.h: Re-generate.
7875
43bd9a9e
AC
78762003-04-05 Andrew Cagney <cagney@redhat.com>
7877
7878 Eliminate FRAME_FIND_SAVED_REGS.
7879 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7880 Change FSR parameter to a pointer.
7881 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7882 Assume FSR parameter is a pointer.
7883 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7884 Make fsr a pointer.
7885 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7886 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7887 saved_regs a pointer.
7888 (hppa_frame_saved_pc): Ditto.
7889 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7890 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7891 pointer.
7892 (restore_pc_queue): Make fsr a pointer.
7893 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7894 (hppa_frame_chain): Make saved_regs a pointer, call
7895 hppa_frame_init_saved_regs.
7896 * sparc-tdep.c: Include "gdb_assert.h".
7897 (sparc_frame_find_saved_regs): Replace internal_error with
7898 gdb_assert.
7899 * remote-vxsparc.c (vx_read_register): Delete reference to
7900 FRAME_FIND_SAVED_REGS.
7901 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7902 * gdbarch.h: Regenerate.
7903 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7904 (deprecated_get_frame_saved_regs): Delete declaration.
7905 (struct frame_saved_regs): Delete definition.
7906 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7907 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7908 (hppa_frame_find_saved_regs): Delete declaration.
7909 (FRAME_FIND_SAVED_REGS): Delete macro.
7910 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7911 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7912 FRAME_FIND_SAVED_REGS in comment.
7913
be41e9f4
AC
79142003-04-05 Andrew Cagney <cagney@redhat.com>
7915
7916 * frame.c (frame_func_unwind, get_frame_func): New functions.
7917 * frame.h (get_frame_func, frame_func_unwind): Declare.
7918 (struct frame_info): Add field "prev_func" for caching the
7919 previous frame's function address.
7920 * arm-tdep.c (arm_frameless_function_invocation): Combine
7921 get_pc_function_start and get_frame_pc into get_frame_func.
7922 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7923 (sh64_nofp_frame_init_saved_regs): Ditto.
7924 * s390-tdep.c (s390_function_start): Ditto.
7925 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7926 (rs6000_frameless_function_invocation): Ditto.
7927 (rs6000_frame_saved_pc): Ditto.
7928 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7929 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7930 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7931 (i386_frame_init_saved_regs): Ditto.
7932 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7933 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7934 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7935 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7936 * blockframe.c (frameless_look_for_prologue): Ditto.
7937
a01dd7cc
AC
79382003-04-05 Andrew Cagney <cagney@redhat.com>
7939
7940 * frame.c (legacy_get_prev_frame): Link prev to next at the
7941 function start. Update comments.
7942
5e5592e6
AC
79432003-04-05 Andrew Cagney <cagney@redhat.com>
7944
7945 * frame.c (get_frame_id): Update comment.
7946 (legacy_get_prev_frame): Update comment.
7947 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7948 * gdbarch.h: Regenerate.
7949 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7950 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7951
6fba5002
AC
79522003-04-05 Andrew Cagney <cagney@redhat.com>
7953
7954 * stack.c (print_frame_info): Use get_frame_pc.
7955
7df05f2b
AC
79562003-04-04 Andrew Cagney <cagney@redhat.com>
7957
7958 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7959 the frame's type from the unwinder.
7960 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7961 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7962 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7963 (get_frame_base_address): Use get_frame_type.
7964 (get_frame_locals_address, get_frame_args_address): Ditto.
7965 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7966 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7967 (struct frame_info): Add comment explaining why the frame contains
7968 a "type" field.
7969 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7970 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7971 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7972 NORMAL_FRAME.
7973 * frame-unwind.h: Include "frame.h".
7974 (struct frame_unwind): Add "type" field.
7975 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7976
11889732
AC
79772003-04-04 Andrew Cagney <cagney@redhat.com>
7978
7979 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7980 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7981 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7982 get_frame_base.
7983 (d10v_unwind_dummy_id): Use frame_id_build.
7984 * frame.c (find_frame_sal): Use get_frame_pc.
7985 (create_new_frame): Use deprecated_update_frame_pc_hack and
7986 deprecated_update_frame_base_hack.
7987 (create_sentinel_frame): Add comment about ->pc going away.
7988 (get_prev_frame): Add comment about ->pc going away.
7989 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7990 frame_id_build, deprecated_update_frame_pc_hack and
7991 deprecated_update_frame_base_hack.
7992 (select_frame): Use get_frame_pc.
7993 (legacy_saved_regs_this_id): Use frame_id_build.
7994
50c46a0d
EZ
79952003-04-04 Elena Zannoni <ezannoni@redhat.com>
7996
fbe586ae
RH
7997 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7998 signed integer case.
7999 (classify_argument): Handle enumerations and references.
50c46a0d 8000
50bbdbd9
AC
80012003-04-04 Andrew Cagney <cagney@redhat.com>
8002
8003 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8004 ID to NULL.
8005
36018d2e
AF
80062003-04-01 Adam Fedor <fedor@gnu.org>
8007
8008 * gdb/objc-lang.c (selectors_info): Replace calls to
8009 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8010 SYMBOL_NATURAL_NAME.
8011 (classes_info, find_methods): Likewise.
8012
35cec841
KB
80132003-04-03 Kevin Buettner <kevinb@redhat.com>
8014
8015 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8016 ``mach'' to the value determined by bfd_default_set_arch_mach().
8017
43136899
BR
80182003-04-02 Bob Rossi <bob_rossi@cox.net>
8019
8020 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8021 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8022 (mi-cmd-file.o): Update dependencies.
8023
040b99fd
KB
80242003-04-01 Kevin Buettner <kevinb@redhat.com>
8025
8026 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8027 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8028
9a3d7dfd
AF
80292003-04-01 Adam Fedor <fedor@gnu.org>
8030
8031 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8032 * language.h (struct language_defn): Add la_demangle.
8033 (language_demangle): Declare.
8034 * language.c (language_demangle): New function.
8035 (unk_lang_demangle): Likewise.
8036 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8037 Add ukn_lang_demangle.
9a3d7dfd 8038 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8039 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8040 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8041 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8042 * jv-lang.c (java_demangle): New function
8043 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8044 * objc-lang.c (objc_demangle): Add options argument
8045 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8046 * maint.c (maintenance_demangle): Replace switch with
8047 call to language_demangle.
8048 * utils.c (fprintf_symbol_filtered): Likewise.
8049
5e074003
AC
80502003-04-01 Andrew Cagney <cagney@redhat.com>
8051
8052 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8053 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8054 PRINT_TYPELESS_INTEGER.
8055 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8056 PUSH_RETURN_ADDRESS.
8057
270cb5d6
AC
80582003-04-01 Andrew Cagney <cagney@redhat.com>
8059
8060 * Makefile.in (d10v-tdep.o): Update dependencies.
8061 * d10v-tdep.c: Include "frame-base.h".
8062 (d10v_frame_unwind): Make constant.
8063 (d10v_frame_base_address): New function.
8064 (d10v_frame_base): New variable.
8065 (d10v_gdbarch_init): Set frame_base default.
8066 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8067 comment for base.
8068 (d10v_frame_unwind_cache): Set and use "prev_sp".
8069 (d10v_frame_this_id): Use the previous frame's inner most stack
8070 address and this frame's func address for the frame ID. Use
8071 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8072
6bfb3e36
AC
80732003-04-01 Andrew Cagney <cagney@redhat.com>
8074
8075 * frame.h (get_frame_locals_address, get_frame_args_address):
8076 Refer to the base address, instead of the address of the first
8077 local or parameter.
8ffd9b1b 8078
da62e633
AC
80792003-04-01 Andrew Cagney <cagney@redhat.com>
8080
8081 Add frame debug info addresses:
8082 * frame-base.c: New file.
8083 * frame-base.h: New file.
8084 * frame.h (struct frame_base): Add opaque declaration.
8085 (get_frame_base): Update comment.
8086 (get_frame_base_address): Declare.
8087 (get_frame_locals_address): Declare.
8088 (get_frame_args_address): Declare.
8089 (struct frame_info): Add "base" and "base_cache". Update
8090 comments on the unwinder.
8091 * frame.c: Include "frame-base.h".
8092 (get_frame_locals_address): New function.
8093 (get_frame_base_address): New function.
8094 (get_frame_args_address): New function.
8095 * findvar.c (read_var_value): Use get_frame_locals_address and
8096 get_frame_args_address.
8097 * stack.c (frame_info): Use get_frame_locals_address and
8098 get_frame_args_address.
8099 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8100 moved to "frame-base.c".
8101 * printcmd.c (print_frame_nameless_args): Ditto.
8102 * symtab.h (address_class): Update comments.
8103 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8104 get_frame_base_address.
8105 * dwarf2expr.c (execute_stack_op): Ditto.
8106 * Makefile.in (frame_base_h): Define.
8107 (frame.o): Update dependencies.
8108 (frame-base.o): Add dependencies.
8109 (SFILES): Add frame-base.c.
8110 (COMMON_OBS): Add frame-base.o.
8111
3d30e9c2
AC
81122003-04-01 Andrew Cagney <cagney@redhat.com>
8113
8114 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8115 CALL_DUMMY_LENGTH): Ditto.
8116 * gdbarch.c: Re-generate.
8117 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8118 (CALL_DUMMY_LENGTH): Delete macro.
8119 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8120 * arm-tdep.c (arm_gdbarch_init): Ditto.
8121 * avr-tdep.c (avr_gdbarch_init): Ditto.
8122 * cris-tdep.c (cris_gdbarch_init): Ditto.
8123 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8124 * frv-tdep.c (frv_gdbarch_init): Ditto.
8125 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8126 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8127 * i386-tdep.c (i386_gdbarch_init): Ditto.
8128 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8130 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8131 * mips-tdep.c (mips_gdbarch_init): Ditto.
8132 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8133 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8134 * s390-tdep.c (s390_gdbarch_init): Ditto.
8135 * sh-tdep.c (sh_gdbarch_init): Ditto.
8136 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8137 * v850-tdep.c (v850_gdbarch_init): Ditto.
8138 * vax-tdep.c (vax_gdbarch_init): Ditto.
8139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8140
ce0c7262
CV
81412003-04-01 Corinna Vinschen <vinschen@redhat.com>
8142
8143 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8144
73dd234f
AC
81452003-04-01 Andrew Cagney <cagney@redhat.com>
8146
8147 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8148 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8149 * gdbarch.h, gdbarch.c: Re-generate.
8150 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8151 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8152 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8153 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8154 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8155 * infcmd.c (run_stack_dummy): Simplify assuming
8156 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8157 * infrun.c (handle_inferior_event): Ditto.
8158 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8159 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8160 * arm-tdep.c (arm_gdbarch_init): Ditto.
8161 * avr-tdep.c (avr_gdbarch_init): Ditto.
8162 * cris-tdep.c (cris_gdbarch_init): Ditto.
8163 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8164 * frv-tdep.c (frv_gdbarch_init): Ditto.
8165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8166 * i386-tdep.c (i386_gdbarch_init): Ditto.
8167 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8169 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8170 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8171 * mips-tdep.c (mips_gdbarch_init): Ditto.
8172 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8173 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8174 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8175 * s390-tdep.c (s390_gdbarch_init): Ditto.
8176 * sh-tdep.c (sh_gdbarch_init): Ditto.
8177 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8178 * v850-tdep.c (v850_gdbarch_init): Ditto.
8179 * vax-tdep.c (vax_gdbarch_init): Ditto.
8180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8181
97606a13
DJ
81822003-04-01 Daniel Jacobowitz <drow@mvista.com>
8183
8184 * symfile.c (symfile_relocate_debug_section): Update call to
8185 bfd_simple_get_relocated_section_contents.
8186
e8ab51f7
AC
81872003-03-31 Andrew Cagney <cagney@redhat.com>
8188
8189 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8190 * gdbarch.h, gdbarch.c: Regenerate.
8191 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8192 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8193 available.
8194 * frame.h (generic_fix_call_dummy): Delete declaration.
8195 * dummy-frame.h: Update comment.
8196 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8198 fix_call_dummy.
8199 * sh-tdep.c (sh_gdbarch_init): Ditto.
8200 * s390-tdep.c (s390_gdbarch_init): Ditto.
8201 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8202 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8203 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8204 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8205 * i386-tdep.c (i386_gdbarch_init): Ditto.
8206 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8207 * frv-tdep.c (frv_gdbarch_init): Ditto.
8208 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8209 * cris-tdep.c (cris_gdbarch_init): Ditto.
8210 * avr-tdep.c (avr_gdbarch_init): Ditto.
8211 * arm-tdep.c (arm_gdbarch_init): Ditto.
8212
018d1b48
JB
82132003-03-31 J. Brobecker <brobecker@gnat.com>
8214
8215 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8216 (INIT_FRAME_AP): Likewise.
8217 (EXTRA_FRAME_INFO): Likewise.
8218
e9a2674e
AC
82192003-03-31 Andrew Cagney <cagney@redhat.com>
8220
8221 * gdbarch.sh: Include "symfile.h".
8222 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8223 * gdbarch.h, gdbarch.c: Re-generate.
8224 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8226 call_dummy_address, the default is at entry_point_address.
8227 * v850-tdep.c (v850_gdbarch_init): Ditto.
8228 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8229 * sh-tdep.c (sh_gdbarch_init): Ditto.
8230 * s390-tdep.c (s390_gdbarch_init): Ditto.
8231 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8232 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8233 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8234 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8235 * i386-tdep.c (i386_gdbarch_init): Ditto.
8236 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8237 * frv-tdep.c (frv_gdbarch_init): Ditto.
8238 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8239 * cris-tdep.c (cris_gdbarch_init): Ditto.
8240 * arm-tdep.c (arm_gdbarch_init): Ditto.
8241
e8a8712a
AC
82422003-03-31 Andrew Cagney <cagney@redhat.com>
8243
8244 * gdbarch.sh (CALL_DUMMY_P): Delete.
8245 * gdbarch.h, gdbarch.c: Re-generate.
8246 * inferior.h (CALL_DUMMY_P): Delete macro.
8247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8248 * vax-tdep.c (vax_gdbarch_init): Update.
8249 * v850-tdep.c (v850_gdbarch_init): Update.
8250 * sparc-tdep.c (sparc_gdbarch_init): Update.
8251 * sh-tdep.c (sh_gdbarch_init): Update.
8252 * s390-tdep.c (s390_gdbarch_init): Update.
8253 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8254 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8255 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8256 * mips-tdep.c (mips_gdbarch_init): Update.
8257 * mcore-tdep.c (mcore_gdbarch_init): Update.
8258 * m68k-tdep.c (m68k_gdbarch_init): Update.
8259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8260 * ia64-tdep.c (ia64_gdbarch_init): Update.
8261 * i386-tdep.c (i386_gdbarch_init): Update.
8262 * h8300-tdep.c (h8300_gdbarch_init): Update.
8263 * frv-tdep.c (frv_gdbarch_init): Update.
8264 * d10v-tdep.c (d10v_gdbarch_init): Update.
8265 * cris-tdep.c (cris_gdbarch_init): Update.
8266 * breakpoint.c (deprecated_frame_in_dummy): Update.
8267 * avr-tdep.c (avr_gdbarch_init): Update.
8268 * alpha-tdep.c (alpha_gdbarch_init): Update.
8269 * arm-tdep.c (arm_gdbarch_init): Update.
8270 * dummy-frame.c (dummy_frame_this_id): Update comments.
8271 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8272 * frame.c (legacy_get_prev_frame): Ditto.
8273 * valops.c (call_function_by_hand): Delete function.
8274 (hand_function_call): Rename to call_function_by_hand
8275
ed234cf8
AC
82762003-03-30 Andrew Cagney <cagney@redhat.com>
8277
8278 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8279 * value.h (struct value): Update comment.
ed234cf8 8280
06c77151
AC
82812003-03-30 Andrew Cagney <cagney@redhat.com>
8282
6c2b5168
AC
8283 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8284 D10V_FP_REGNUM.
8285 (d10v_gdbarch_init): Do not set fp_regnum.
8286
06c77151
AC
8287 * frame.c (get_frame_base): Force ID initialization.
8288 (get_prev_frame): Move computation of the frame ID from here ...
8289 (get_frame_id): ... to here.
8290 (legacy_get_prev_frame): Mark the frame ID as valid.
8291 * frame.h (struct frame_info): Add field "id_p".
8292
97a1a11c
MK
82932003-03-30 Mark Kettenis <kettenis@gnu.org>
8294
8295 * i386-tdep.c (i386_store_struct_return): Removed.
8296 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8297
6c0e89ed
AC
82982003-03-30 Andrew Cagney <cagney@redhat.com>
8299
8300 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8301 * gdbarch.h, gdbarch.c: Regenerate.
8302 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8304 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8305 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8306 * i386-tdep.c (i386_gdbarch_init): Ditto.
8307 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8308 * cris-tdep.c (cris_gdbarch_init): Ditto.
8309 * vax-tdep.c (vax_gdbarch_init): Ditto.
8310 * s390-tdep.c (s390_gdbarch_init): Ditto.
8311 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8312 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8313 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8314 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8315 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8316 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8317 * sparc-tdep.c (sparc_gdbarch_init): Update.
8318 * sh-tdep.c (sh_gdbarch_init): Update.
8319 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8320 * mips-tdep.c (mips_gdbarch_init): Update.
8321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8322 * ia64-tdep.c (ia64_gdbarch_init): Update.
8323 * frv-tdep.c (frv_gdbarch_init): Update.
8324 * avr-tdep.c (avr_gdbarch_init): Update.
8325 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8326 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8327 instead of when push_dummy_call is not available.
8ffd9b1b 8328
f7dd6af2
AC
83292003-03-30 Andrew Cagney <cagney@redhat.com>
8330
8331 * infttrace.c: Include "gdbthread.h".
8332 (parent_attach_all): Fix function signature.
8333 (call_ptrace): Update call.
8334 * Makefile.in (infttrace.o): Update dependencies.
8335
28f617b3
AC
83362003-03-30 Andrew Cagney <cagney@redhat.com>
8337
8338 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8339 PUSH_RETURN_ADDRESS.
8340 * gdbarch.h, gdbarch.c: Regenerate.
8341 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8342 * x86-64-tdep.c (x86_64_init_abi): Update.
8343 * v850-tdep.c (v850_gdbarch_init): Update.
8344 * sparc-tdep.c (sparc_gdbarch_init): Update.
8345 * sh-tdep.c (sh_gdbarch_init): Update.
8346 * s390-tdep.c (s390_gdbarch_init): Update.
8347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8348 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8349 * mips-tdep.c (mips_gdbarch_init): Update.
8350 * mcore-tdep.c (mcore_gdbarch_init): Update.
8351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8352 * ia64-tdep.c (ia64_gdbarch_init): Update.
8353 * i386-tdep.c (i386_gdbarch_init): Update.
8354 * h8300-tdep.c (h8300_gdbarch_init): Update.
8355 * frv-tdep.c (frv_gdbarch_init): Update.
8356 * cris-tdep.c (cris_gdbarch_init): Update.
8357 * avr-tdep.c (avr_gdbarch_init): Update.
8358 * arm-tdep.c (arm_gdbarch_init): Update.
8359 * valops.c (hand_function_call): Update.
8360
4d628cd7
AC
83612003-03-29 Andrew Cagney <cagney@redhat.com>
8362
8363 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8364 sizeof_call_dummy_words.
8365 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8366 define.
8367 * gdbarch.h: Regenerate.
8ffd9b1b 8368
65e82032
AC
83692003-03-29 Andrew Cagney <cagney@redhat.com>
8370
8371 * infttrace.h: New file.
8372 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8373 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8374 (hpread_read_doc_function_type): Detect an initialized type1.
8375 (hpread_quick_traverse): Initialize mod_name_string.
8376 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8377 (som_solib_get_solib_by_pc): Declare.
8378 (so_lib_thread_start_addr): Declare.
8379 (no_shared_libraries): Declare.
8380 * somread.c (init_import_symbols): Make static. Add forward
8381 declaration.
8382 * config/pa/nm-hppah.h: Include "infttrace.h" for
8383 parent_attach_all.
8384 (hppa_insert_hw_watchpoint): Declare.
8385 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8386 * hppah-nat.c: Include "gdb_string.h".
8387 (parent_attach_all): Delete extern declaration, moved to
8388 "infttrace.h".
8389 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8390 int.
8391 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8392 * Makefile.in (infttrace_h): Define.
8393 (hpread.o): Update dependencies.
8394 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8395 * hppa-hpux-tdep.c: Include "gdb_string.h".
8396 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8397 * infrun.c (handle_inferior_event): Always initialize
8398 stepped_after_stopped_by_watchpoint. Add default and remove
8399 fallthrough in switch statement.
8400 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8401 parameter to int.
8402 (hppa_remove_hw_watchpoint): Ditto.
8403
2c3bbe77
AC
84042003-03-29 Andrew Cagney <cagney@redhat.com>
8405
8406 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8407 offset.
8408
2dd604e7
RE
84092003-03-29 Richard Earnshaw <rearnsha@arm.com>
8410
8411 * arm-tdep.c (arm_push_arguments): Delete.
8412 (struct stack_item): New type.
8413 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8414 (arm_store_struct_return): Delte.
8415 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8416 arm_push_arguments or arm_store_struct_return.
8417
e8933a55
AC
84182003-03-28 Andrew Cagney <cagney@redhat.com>
8419
8420 * Makefile.in (d10v-tdep.o): Update dependencies.
8421 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8422 * d10v-tdep.c: Include "remote.h".
8423 (target_resume_hook): Delete extern declaration.
8424 (target_wait_loop_hook): Ditto.
8425 (tdisassemble_command): Eliminate assignment in "if" conditional.
8426 (d10v_ts2_register_sim_regno): Eliminate call to
8427 legacy_register_sim_regno.
8428 (d10v_ts3_register_sim_regno): Ditto.
8429
6949171e
JJ
84302003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8431
8432 * thread.c: Reindented.
8433 * lin-lwp.c: Ditto.
8434 * linux-proc.c: Ditto.
8435
98c7071f
BR
84362003-03-28 Bob Rossi <bob_rossi@cox.net>
8437
fbe586ae 8438 * MAINTAINERS (write after approval): Add myself.
98c7071f 8439
5edc9ca6
TR
84402003-03-27 Theodore A. Roth <troth@openavr.org>
8441
8442 * objc-exp.y: Add missing semi-colons.
8443
378bfd1b
AC
84442003-03-27 Andrew Cagney <cagney@redhat.com>
8445
8446 * regcache.c (write_sp): Delete function and references.
8447 * inferior.h (write_sp): Delete declaration.
8448 * valops.c (hand_function_call): Replace write_sp with
8449 TARGET_WRITE_SP.
8450 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8451 (sparc_pop_frame): Ditto.
8ffd9b1b 8452
56056df7
AC
84532003-03-27 Andrew Cagney <cagney@redhat.com>
8454
8455 * NEWS: Mention removal of support for hppa*-*-bsd* and
8456 hppa*-*-osf* natives, and hppa*-*-pro* target.
8457 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8458 * config/pa/xm-pa.h: Obsolete file.
8459 * config/pa/xm-hppab.h: Obsolete file.
8460 * config/pa/nm-hppab.h: Obsolete file.
8461 * config/pa/tm-hppab.h: Obsolete file.
8462 * config/pa/tm-hppao.h: Obsolete file.
8463 * config/pa/nm-hppao.h: Obsolete file.
8464 * config/pa/tm-pro.h: Obsolete file.
8465 * config/pa/hppaosf.mt: Obsolete file.
8466 * config/pa/hppaosf.mh: Obsolete file.
8467 * config/pa/hppapro.mt: Obsolete file.
8468 * config/pa/hppabsd.mt: Obsolete file.
8469 * config/pa/hppabsd.mh: Obsolete file.
8470 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8471 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8472 hppa*-*-osf*.
8473
5873a88d
AC
84742003-03-27 Andrew Cagney <cagney@redhat.com>
8475
8476 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8477 push_arguments. Don't set push_return_address or write_sp.
8478 (d10v_push_dummy_call): Replace d10v_push_arguments.
8479 (d10v_push_return_address, d10v_write_sp): Delete function,
8480 handled by push_dummy_call.
8481
b81774d8
AC
84822003-03-26 Andrew Cagney <cagney@redhat.com>
8483
8484 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8485 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8486 regcache and dummy_addr parameters.
8487 * gdbarch.h, gdbarch.c: Re-generate.
8488 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8489 available; assume it will handle stack alignment and return
8490 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8491 legacy_push_arguments.
8492 (legacy_push_arguments): Rename default_push_arguments.
8493 * value.h (legacy_push_arguments): Rename default_push_arguments.
8494 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8495 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8496 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8497 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8498 * config/i386/tm-symmetry.h: Update.
8499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8500 * x86-64-tdep.c (x86_64_init_abi): Update.
8501 * v850-tdep.c (v850_gdbarch_init): Update.
8502 * sparc-tdep.c (sparc_gdbarch_init): Update.
8503 * sh-tdep.c (sh_gdbarch_init): Update.
8504 * s390-tdep.c (s390_gdbarch_init): Update.
8505 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8506 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8507 * mips-tdep.c (mips_gdbarch_init): Update.
8508 * mcore-tdep.c (mcore_gdbarch_init): Update.
8509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8510 * ia64-tdep.c (ia64_gdbarch_init): Update.
8511 * i386-tdep.c (i386_gdbarch_init): Update.
8512 * hppa-tdep.c (hppa_gdbarch_init): Update.
8513 * h8300-tdep.c (h8300_gdbarch_init): Update.
8514 * frv-tdep.c (frv_gdbarch_init): Update.
8515 * d10v-tdep.c (d10v_gdbarch_init): Update.
8516 * cris-tdep.c (cris_gdbarch_init): Update.
8517 * avr-tdep.c (avr_gdbarch_init): Update.
8518 * arm-tdep.c (arm_gdbarch_init): Update.
8519 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8520 * alpha-tdep.c (alpha_gdbarch_init): Update.
8521
f541410f
DJ
85222003-03-26 Daniel Jacobowitz <drow@mvista.com>
8523
8524 * signals/signals.c (do_target_signal_to_host): Correct realtime
8525 signal range test.
8526
69f567ae
DJ
85272003-03-26 Daniel Jacobowitz <drow@mvista.com>
8528
8529 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8530 (struct sal_chain, map_catch_names): Remove.
8531 (catch_exception_command_1): Don't call
8532 handle_gnu_4_16_catch_command.
8533
d5d14a5a
DJ
85342003-03-26 Daniel Jacobowitz <drow@mvista.com>
8535
8536 From Mark Dettinger <dettinge@de.ibm.com>:
8537 * dwarf2cfi.c (read_2u): Increment pointer by two.
8538
bdd73e22
DJ
85392003-03-26 Daniel Jacobowitz <drow@mvista.com>
8540
8541 * signals/signals.c: Fix typos in last change.
8542
960cb555
DJ
85432003-03-26 Daniel Jacobowitz <drow@mvista.com>
8544
8545 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8546 not already defined. Use __SIGRTMIN if available.
8547 (target_signal_from_host): Remove SIGRTMIN block.
8548 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8549 the signal is within the realtime range.
8550
f636b87d
AF
85512003-03-25 Adam Fedor <fedor@gnu.org>
8552
8553 * Makefile.in (infrun.o): Add $(language_h)
8554 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8555 for language specific trampolines.
8556 * language.h (struct language_defn): Add skip_trampoline.
8557 (skip_language_trampoline): Declare.
8558 * language.c (unk_lang_trampoline, skip_language_trampoline):
8559 New functions.
8560 (unknown_language_defn, auto_language_defn, local_language_defn):
8561 Add ukn_lang_trampoline.
8562 * ada-lang.c (ada_language_defn): Add NULL for language
8563 specific skip_trampoline.
8564 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8565 scm-lang.c: Likewise.
8566 * objc-lang.c (objc_skip_trampoline): New function.
8567 (objc_language_defn): Add objc_skip_trampoline.
8568
28f617b3 85692003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8570
8571 * frame.c (get_prev_frame): Delay validating a frame's ID -
8572 non-NULL, didn't go backwards - until an attempt to unwind it to
8573 the previous frame.
8574
f933a9c5
AC
85752003-03-25 Andrew Cagney <cagney@redhat.com>
8576
8577 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8578 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8579 * gdbarch.h, gdbarch.c: Re-generate.
8580 * config/sparc/tm-sparc.h
8581 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8582 * sparc-tdep.c (sparc_gdbarch_init): Set
8583 deprecated_extra_stack_alignment_needed.
8584 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8586 extra_stack_alignment_needed.
8587 * v850-tdep.c (v850_gdbarch_init): Ditto.
8588 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8589 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8590 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8591 * cris-tdep.c (cris_gdbarch_init): Ditto.
8592 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8594
4183d812
AC
85952003-03-25 Andrew Cagney <cagney@redhat.com>
8596
8597 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8598 STORE_STRUCT_RETURN.
8599 * gdbarch.h, gdbarch.c: Regenerate.
8600 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8601 (d10v_push_arguments): Set the struct return register.
8602 (d10v_gdbarch_init): Update.
8603 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8604 * x86-64-tdep.c (x86_64_init_abi): Update.
8605 * vax-tdep.c (vax_gdbarch_init): Update.
8606 * v850-tdep.c (v850_gdbarch_init): Update.
8607 * sparc-tdep.c (sparc_gdbarch_init): Update.
8608 * sh-tdep.c (sh_gdbarch_init): Update.
8609 * s390-tdep.c (s390_gdbarch_init): Update.
8610 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8611 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8612 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8613 * mips-tdep.c (mips_gdbarch_init): Update.
8614 * mcore-tdep.c (mcore_gdbarch_init): Update.
8615 * m68k-tdep.c (m68k_gdbarch_init): Update.
8616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8617 * ia64-tdep.c (ia64_gdbarch_init): Update.
8618 * i386-tdep.c (i386_gdbarch_init): Update.
8619 * hppa-tdep.c (hppa_gdbarch_init): Update.
8620 * h8300-tdep.c (h8300_gdbarch_init): Update.
8621 * frv-tdep.c (frv_gdbarch_init): Update.
8622 * cris-tdep.c (cris_gdbarch_init): Update.
8623 * avr-tdep.c (avr_gdbarch_init): Update.
8624 * arm-tdep.c (arm_gdbarch_init): Update.
8625 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8626
1bf6d5cc
AC
86272003-03-25 Andrew Cagney <cagney@redhat.com>
8628
8629 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8630 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8631 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8632 * gdbarch.h, gdbarch.c: Regenerate.
8633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8634 call_dummy_stack_adjust_p.
8635 * vax-tdep.c (vax_gdbarch_init): Ditto.
8636 * v850-tdep.c (v850_gdbarch_init): Ditto.
8637 * sh-tdep.c (sh_gdbarch_init): Ditto.
8638 * s390-tdep.c (s390_gdbarch_init): Ditto.
8639 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8640 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8641 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8642 * mips-tdep.c (mips_gdbarch_init): Ditto.
8643 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8644 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8646 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8647 * i386-tdep.c (i386_gdbarch_init): Ditto.
8648 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8649 * frv-tdep.c (frv_gdbarch_init): Ditto.
8650 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8651 * cris-tdep.c (cris_gdbarch_init): Ditto.
8652 * avr-tdep.c (avr_gdbarch_init): Ditto.
8653 * arm-tdep.c (arm_gdbarch_init): Ditto.
8654 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8655 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8656 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8657 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8658 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8659 call_dummy_stack_adjust_p.
8660 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8661 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8662 * sparc-tdep.c (sparc32_push_arguments): Update.
8663 * valops.c (hand_function_call): Update.
8664
71c08af0
CV
86652003-03-25 Corinna Vinschen <vinschen@redhat.com>
8666
8667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8668 set_gdbarch_char_signed.
8669
30757f90
RE
86702003-03-25 Richard Earnshaw <rearnsha@arm.com>
8671
8672 PR cli/548
8673 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8674
03d48a7d
RE
86752003-03-25 Richard Earnshaw <rearnsha@arm.com>
8676
8677 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8678 (_initialize_arm_tdep): Don't set tm_print_insn.
8679
2cf6873c
AF
86802003-03-24 Adam Fedor <fedor@gnu.org>
8681
8682 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8683 * objc-lang.h: Add multiple inclusion protection.
8684 (start_msglist, add_msglist, end_msglist): Additional declarations.
8685
17c0759e
RE
86862003-03-24 Richard Earnshaw <rearnsha@arm.com>
8687
8688 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8689 value was renamed to ARM_FLOAT_SOFT_FPA.
8690
618ce49f
AC
86912003-03-23 Andrew Cagney <cagney@redhat.com>
8692
8693 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8694 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8695 * gdbarch.h, gdbarch.c: Regenerate.
8696 * valops.c (hand_function_call): Update.
8697 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8698 * frame.c (legacy_saved_regs_this_id): Update.
8699 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8700 * dummy-frame.h: Update.
8701 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8702 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8703 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8704 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8705 * config/m68k/tm-sun3.h: Update.
8706 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8708 * x86-64-tdep.c (x86_64_init_abi): Update.
8709 * vax-tdep.c (vax_gdbarch_init): Update.
8710 * v850-tdep.c (v850_gdbarch_init): Update.
8711 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8712 * sh-tdep.c (sh_gdbarch_init): Update.
8713 * s390-tdep.c (s390_gdbarch_init): Update.
8714 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8715 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8716 (frame_get_saved_regs): Update.
8717 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8718 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8719 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8720 * mips-tdep.c (mips_gdbarch_init): Update.
8721 * mcore-tdep.c (mcore_gdbarch_init): Update.
8722 * m68k-tdep.c (m68k_gdbarch_init): Update.
8723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8724 * ia64-tdep.c (ia64_gdbarch_init): Update.
8725 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8726 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8727 (i386_interix_back_one_frame): Update.
8728 * hppa-tdep.c (hppa_gdbarch_init): Update.
8729 (hppa_init_extra_frame_info): Update.
8730 * h8300-tdep.c (h8300_gdbarch_init): Update.
8731 * frv-tdep.c (frv_gdbarch_init): Update.
8732 * cris-tdep.c (cris_gdbarch_init): Update.
8733 * avr-tdep.c (avr_gdbarch_init): Update.
8734 * arm-tdep.c (arm_gdbarch_init): Update.
8735 * alpha-tdep.c (alpha_gdbarch_init): Update.
8736
fd50bc42
RE
87372003-03-22 Richard Earnshaw <rearnsha@arm.com>
8738
8739 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8740 (arm_get_fp_model): Declare.
8741 * arm-tdep.c (fp_model_strings): New string array.
8742 (arm_fp_model, current_fp_model): New variables.
8743 (arm_get_fp_model): New function.
8744 (arm_set_fp): New function.
8745 (set_fp_model_sfunc): New function.
8746 (show_fp_model): New function.
8747 (_initialize_arm_tdep): Add new command to set/show the FPU.
8748 (arm_extract_return_value): Use arm_get_fp_model.
8749 (arm_store_return_value): Likewise.
8750 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8751 to initialize the floating-point data types.
8752 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8753 model is FPA.
8754
26304000
RE
87552003-03-22 Richard Earnshaw <rearnsha@arm.com>
8756
8757 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8758 the current setting of each value.
8759 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8760 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8761 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8762 commands and add new version as subcommands of "set/show arm".
8763
afd7eef0
RE
87642003-03-22 Richard Earnshaw <rearnsha@arm.com>
8765
8766 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8767 (set_arm_command, show_arm_command): New functions.
8768 (_initialize_arm_tdep): Add them.
8769 (num_disassembly_options): Renamed from num_flavor_options.
8770 (valid_disassembly_styles): Renamed from valid_flavors.
8771 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8772 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8773 set_disassembly_flavor_sfunc.
8774 (set_disassembly_style): Renamed from set_disassembly_flavor.
8775 (arm_othernames): Updated.
8776 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8777 command. Add "set/show arm disassembly" commands. Deprecate
8778 "othernames" command.
8779
299a7944
RE
87802003-03-22 Richard Earnshaw <rearnsha@arm.com>
8781
8782 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8783 (arm-tdep.o): Depend on elf_arm_h.
8784
c1dac9e6
RE
87852003-03-22 Richard Earnshaw <rearnsha@arm.com>
8786
8787 * Makefile.in (coff_internal_h): Define.
8788 (arm-tdep.o): Update dependencies.
8789
2702d96c
RE
87902003-03-22 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * arm-tdep.c (prologue_cache): Delete.
8793 (check_prologue_cache, save_prologue_cache): Delete.
8794 (arm_scan_prologue): Don't check or update the prologue_cache.
8795 (arm_gdb_arch_init): Don't initialize it.
8796 (_initialize_arm_tdep): Likewise.
8797
27d5d74b
SC
87982003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8799
8800 * MAINTAINERS (tui): Maintainer of tui code.
8801
1762d96d
CV
88022003-03-21 Corinna Vinschen <vinschen@redhat.com>
8803
8804 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8805 (i386-cygwin-tdep.o): Add dependencies.
8806 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8807 * i386-cygwin-tdep.c: New file.
8808 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8809 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8810
4c2e2391
AC
88112003-03-20 Andrew Cagney <cagney@redhat.com>
8812
f20d38b7
AC
8813 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8814 (handle_inferior_event): Remove code calling
8815 DYNAMIC_TRAMPOLINE_NEXTPC.
8816
0022b738
AC
8817 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8818 already has a full path.
8819
864dbc90
AC
8820 * main.c (gdb_main): Return 1.
8821 (captured_main): Call error to report an invalid interpreter.
8822
4c2e2391
AC
8823 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8824 * alpha-osf1-tdep.c: Include "gdb_string.h".
8825
5ef7553b
JB
88262003-03-19 J. Brobecker <brobecker@gnat.com>
8827
8828 Continuing work to convert the hppa targets to multiarch partial.
8829
8830 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8831 method, now that hppa_push_dummy_frame has a conformant prototype.
8832 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8833 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8834 for the switch to multiarch partial.
8835
7bde8967
KB
88362003-03-19 Kevin Buettner <kevinb@redhat.com>
8837
8838 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8839 when iss is issNull.
8840
b006a9e9
KB
88412003-03-18 Kevin Buettner <kevinb@redhat.com>
8842
8843 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8844 NUM_REGS bounds check.
8845
5e2e9765
KB
88462003-03-18 Kevin Buettner <kevinb@redhat.com>
8847
8848 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8849 * mips-tdep.c (gdb_assert.h): Include.
8850 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8851 (mips_register_name): Handle integer registers explicitly. Add
8852 bounds checking.
8853 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8854 (mips_lsi33k_reg_names): Don't list integer registers; they're
8855 handled by mips_register_name() now.
8856 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8857 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8858 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8859 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8860 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8861
a2867626
AC
88622003-03-18 Andrew Cagney <cagney@redhat.com>
8863
8864 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8865 a void pointer.
8866 * gdbtypes.h (print_scalar_formatted): Update declaration.
8867 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8868
06600e06
JB
88692003-03-18 J. Brobecker <brobecker@gnat.com>
8870
8871 * infrun.c (observer.h): Add #include.
8872 (normal_stop): Add call to observer_notify_normal_stop.
8873 * Makefile.in (infrun.o): Add dependency on observer.h.
8874
7daf4f5b
JB
88752003-03-18 J. Brobecker <brobecker@gnat.com>
8876
8877 Continuing work to convert the hppa targets to multiarch partial.
8878 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8879 parameter. Reformat comment.
8880 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8881 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8882 to match new profile.
8883
3371ccc0
JB
88842003-03-18 J. Brobecker <brobecker@gnat.com>
8885
8886 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8887 appear to be working in any case.
8888
4fbe891e
JB
88892003-03-18 J. Brobecker <brobecker@gnat.com>
8890
8891 * observer.c (observer_test_first_observer): New static variable.
8892 (observer_test_second_observer): Likewise.
8893 (observer_test_third_observer): Likewise.
8894 (observer_test_first_notification_function): New static function.
8895 (observer_test_second_notification_function): Likewise.
8896 (observer_test_third_notification_function): Likewise.
8897
a7ff40e7
JB
88982003-03-17 J. Brobecker <brobecker@gnat.com>
8899
8900 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8901 * somsolib.c (gdb_assert.h): Likewise.
8902 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8903 (somsolib.o): Likewise.
8904
26ca4152
AC
89052003-03-17 Andrew Cagney <cagney@redhat.com>
8906
8907 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8908 BFD. Simplify setting of di.endian.
8909
0a613259
AC
89102003-03-17 Andrew Cagney <cagney@redhat.com>
8911
8912 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8913 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8914
8915 From Elena Zannoni <ezannoni@redhat.com>
8916 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8917 vector and floating-point parameters.
8918 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8919 convention.
8920 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8921
1132738f
FN
89222003-03-17 Fernando Nasser <fnasser@redhat.com>
8923
8924 * MAINTAINERS: Remove my name from several maintainership roles.
8925
6dc42492
AC
89262003-03-17 Andrew Cagney <cagney@redhat.com>
8927
8928 Fix frame off-by-one bug.
8929 * frame-unwind.h (frame_this_id_ftype): Replace
8930 frame_unwind_id_ftype.
8931 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8932 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8933 with "prev_register".
8934 * frame-unwind.c (frame_unwind_find_by_pc): Return
8935 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8936 comment.
8937 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8938 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8939 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8940 (dummy_frame_unwind): Update.
8941 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8942 sentinel_frame_register_unwind.
8943 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8944 (sentinel_frame_unwinder): Update.
8945 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8946 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8947 * frame.c (create_sentinel_frame): Update. Initialize
8948 "prologue_cache" instead of "unwind_cache".
8949 (frame_register_unwind): Call this frame's prev_register with the
8950 next frame and this frame's prologue cache.
8951 (get_prev_frame): Simplify. Always call prev frame's this_id with
8952 this frame and prev frame's prologue cache. Document that this
8953 call is shifted one to the left when compared to the
8954 frame_register_unwind call.
8955 (legacy_saved_regs_prev_register): Replace
8956 frame_saved_regs_register_unwind.
8957 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8958 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8959 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8960 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8961 (d10v_frame_unwind): Update.
8962 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8963 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8964 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8965 "saved_regs" with "this_saved_regs".
8966
efd710d6
AC
89672003-03-16 Andrew Cagney <cagney@redhat.com>
8968
8969 * frame.c (frame_pop): Don't call target_store_registers. Fix
8970 problem reported by Mark Kettenis.
8971
4e259f09
MK
89722003-03-16 Mark Kettenis <kettenis@gnu.org>
8973
8974 * i386-tdep.c (i386_register_type): Renamed from
8975 i386_register_virtual_type. Adjust function signature.
8976 (i386_gdbarch_init): Set register_type instead of
8977 deprecated_max_register_raw_size,
8978 deprecated_max_register_virtual_size and register_virtual_type.
8979
055bb976
AC
89802003-03-14 Andrew Cagney <cagney@redhat.com>
8981
8982 * frame.c (get_prev_frame): When a legacy frame, always call
8983 legacy_get_prev_frame. Simplify unwind code using assumption that
8984 the unwinder is new.
8985 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8986 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8987 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8988
ac2adee5
AC
89892003-03-14 Andrew Cagney <cagney@redhat.com>
8990
8991 * frame.c (get_saved_register): Delete function.
8992 * frame.h (get_saved_register): Delete declaration.
8993 * xstormy16-tdep.c: Update comment.
8994 * regcache.h: Update comments.
8995 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8996 get_saved_register and extract_address, use
8997 frame_read_unsigned_register.
8998 (sparc_frame_saved_pc): Ditto.
8999 (sparc_get_saved_register): Instead of get_saved_register, use
9000 frame_register.
9001 (sparc_pop_frame): Ditto.
9002 * findvar.c: Update comments.
9003 (value_of_register): Call frame_register instead of
9004 get_saved_register.
9005 (value_from_register): Ditto.
9006 * config/sparc/tm-sparc.h: Update comment.
9007 * breakpoint.c: Update comment.
9008
129c1cd6
AC
90092003-03-14 Andrew Cagney <cagney@redhat.com>
9010
9011 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9012 GET_SAVED_REGISTER.
9013 * gdbarch.h, gdbarch.c: Re-generate.
9014 * frame.h: Update comments.
9015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9016 * x86-64-tdep.c (x86_64_init_abi): Update.
9017 * sparc-tdep.c (sparc_gdbarch_init): Update.
9018 * sh-tdep.c (sh_gdbarch_init): Update.
9019 * mips-tdep.c (mips_gdbarch_init): Update.
9020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9021 * cris-tdep.c (cris_gdbarch_init): Update.
9022 * ia64-tdep.c (ia64_gdbarch_init): Update.
9023 * frame.c (frame_register): Update.
9024 (get_saved_register): Update.
9025 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9026
749b82f6
AC
90272003-03-13 Andrew Cagney <cagney@redhat.com>
9028
9029 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9030 * gdbarch.h, gdbarch.c: Regenerate.
9031 * valops.c (hand_function_call): Update comment.
9032 * stack.c (return_command): Update comment.
9033 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9034 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9036 * x86-64-tdep.c (x86_64_init_abi): Update.
9037 * vax-tdep.c (vax_gdbarch_init): Update.
9038 * v850-tdep.c (v850_gdbarch_init): Update.
9039 * sparc-tdep.c (sparc_gdbarch_init): Update.
9040 * sh-tdep.c (sh_gdbarch_init): Update.
9041 * s390-tdep.c (s390_gdbarch_init): Update.
9042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9045 * mips-tdep.c (mips_gdbarch_init): Update.
9046 * mcore-tdep.c (mcore_gdbarch_init): Update.
9047 * m68k-tdep.c (m68k_gdbarch_init): Update.
9048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9049 * ia64-tdep.c (ia64_gdbarch_init): Update.
9050 * i386-tdep.c (i386_gdbarch_init): Update.
9051 * hppa-tdep.c (hppa_gdbarch_init): Update.
9052 * h8300-tdep.c (h8300_gdbarch_init): Update.
9053 * frv-tdep.c (frv_gdbarch_init): Update.
9054 * cris-tdep.c (cris_gdbarch_init): Update.
9055 * avr-tdep.c (avr_gdbarch_init): Update.
9056 * arm-tdep.c (arm_gdbarch_init): Update.
9057 * alpha-tdep.c (alpha_gdbarch_init): Update.
9058
1594fa56
AC
90592003-03-13 Andrew Cagney <cagney@redhat.com>
9060
9061 * frame.c (legacy_frame_p): New function.
9062 (get_prev_frame): Use legacy_frame_p.
9063 * frame.h (legacy_frame_p): Declare.
9064
7717fda3
V
90652003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9066
fbe586ae 9067 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9068 listing corrected.
9069
0c67cbe9
V
90702003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9071
fbe586ae 9072 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9073
03febf99
AC
90742003-03-12 Andrew Cagney <cagney@redhat.com>
9075
9076 * frame.c (get_prev_frame): Rename the frame parameter to
9077 "this_frame".
9078 (get_next_frame, legacy_get_prev_frame): Ditto.
9079
0a1e1ca1
AC
90802003-03-12 Andrew Cagney <cagney@redhat.com>
9081
9082 * frame.c (get_current_frame): Check target_has_registers before
9083 checking target_has_stack.
9084 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9085 instead of deprecated_selected_frame.
9086 * findvar.c (value_of_register): Pass "frame", not
9087 deprecated_selected_frame, to value_of_builtin_reg.
9088
a66a9c23
AC
90892003-03-12 Andrew Cagney <cagney@redhat.com>
9090
9091 * regcache.c (regcache_cooked_write_signed): New function.
9092 (regcache_cooked_write_unsigned): New function.
9093 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9094 (regcache_cooked_read_signed): Fix regnum in range assertion.
9095 * regcache.h (regcache_cooked_write_signed): Declare.
9096 (regcache_cooked_write_unsigned): Declare.
9097
8bedc050
AC
90982003-03-12 Andrew Cagney <cagney@redhat.com>
9099
9100 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9101 * gdbarch.h, gdbarch.c: Re-generate.
9102 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9103 * x86-64-tdep.h: Update.
9104 * x86-64-tdep.c (x86_64_init_abi): Update.
9105 * v850-tdep.c (v850_gdbarch_init): Update.
9106 * sparc-tdep.c (sparc_gdbarch_init): Update.
9107 * sh-tdep.c (sh_gdbarch_init): Update.
9108 * s390-tdep.c (s390_gdbarch_init): Update.
9109 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9110 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9111 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9112 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9113 * mips-tdep.c (mips_gdbarch_init): Update.
9114 * mcore-tdep.c (mcore_gdbarch_init): Update.
9115 * m68k-tdep.c (m68k_gdbarch_init): Update.
9116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9117 * ia64-tdep.c (ia64_gdbarch_init): Update.
9118 * i386-tdep.c (i386_gdbarch_init): Update.
9119 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9120 * hppa-tdep.c (hppa_gdbarch_init): Update.
9121 * h8300-tdep.c (h8300_gdbarch_init): Update.
9122 * frv-tdep.c (frv_gdbarch_init): Update.
9123 * cris-tdep.c (cris_gdbarch_init): Update.
9124 * avr-tdep.c (avr_gdbarch_init): Update.
9125 * arm-tdep.c (arm_gdbarch_init): Update.
9126 * alpha-tdep.c (alpha_gdbarch_init): Update.
9127 * sh-tdep.c (sh_init_extra_frame_info): Update.
9128 (sh64_init_extra_frame_info): Update.
9129 * ns32knbsd-nat.c (frame_num_args): Update.
9130 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9131 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9132 (xstormy16_frame_chain_valid): Update.
9133 * vax-tdep.c (vax_saved_pc_after_call): Update.
9134 * v850-tdep.c (v850_frame_chain): Update.
9135 (v850_pop_frame): Update.
9136 (v850_init_extra_frame_info): Update.
9137 * sparc-tdep.c (setup_arbitrary_frame): Update.
9138 * ns32k-tdep.c (umax_frame_num_args): Update.
9139 * s390-tdep.c (s390_pop_frame_regular): Update.
9140 * mn10300-tdep.c (mn10300_frame_chain): Update.
9141 (mn10300_pop_frame_regular): Update.
9142 (mn10300_init_extra_frame_info): Update.
9143 * mips-tdep.c (mips_init_frame_pc_first): Update.
9144 (mips_frame_chain): Update.
9145 (mips_pop_frame): Update.
9146 * mcore-tdep.c (mcore_frame_chain): Update.
9147 (mcore_pop_frame): Update.
9148 (mcore_init_extra_frame_info): Update.
9149 * arch-utils.c (init_frame_pc_default): Update.
9150 * m68k-tdep.c (isi_frame_num_args): Update.
9151 (delta68_frame_num_args): Update.
9152 (news_frame_num_args): Update.
9153 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9154 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9155 (alpha_frame_chain): Update.
9156 (alpha_pop_frame): Update.
9157 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9158 (hppa_init_extra_frame_info): Update.
9159 (hppa_frame_chain): Update.
9160 (hppa_frame_chain_valid): Update.
9161 * cris-tdep.c (cris_init_extra_frame_info): Update.
9162 * avr-tdep.c (avr_init_extra_frame_info): Update.
9163 * arm-tdep.c (arm_frame_chain_valid): Update.
9164 (arm_init_extra_frame_info): Update.
9165 (arm_pop_frame): Update.
9166 * frame.c (frame_pc_unwind): Update.
9167 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9168 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9169 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9170 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9171 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9172 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9173
7a25a7c1
AC
91742003-03-12 Andrew Cagney <cagney@redhat.com>
9175
9176 Eliminate the need for POP_FRAME.
9177 * frame.c (do_frame_unwind_register): New function.
9178 (frame_pop): When no POP_FRAME, pop the frame using register
9179 unwind and a scratch regcache.
9180 (frame_saved_regs_pop): Delete function.
9181 (trad_frame_unwinder): Update.
9182 * d10v-tdep.c (d10v_frame_pop): Delete function.
9183 (d10v_frame_unwind): Update.
9184 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9185 (sentinel_frame_unwinder): Update.
9186 * dummy-frame.c (dummy_frame_pop): Delete function.
9187 (dummy_frame_unwind): Update.
9188 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9189 (struct frame_unwind): Update.
9190
2f38ef89
KB
91912003-03-11 Kevin Buettner <kevinb@redhat.com>
9192
9193 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9194 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9195 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9196 Do range checks on register number obtained from debugging info.
9197 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9198 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9199 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9200 mapping function.
9201 (do_fp_register_row): Fix typo which caused double type to be
9202 used when attempting to unpack a float.
9203
552f4abf
JB
92042003-03-11 J. Brobecker <brobecker@gnat.com>
9205
9206 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9207
e0d2ae16
AC
92082003-03-11 Andrew Cagney <cagney@redhat.com>
9209
9210 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9211 frame. Problem found by Corinna Vinschen.
9212
ddbfdd06
PM
92132003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9214
9215 * doublest.c (floatformat_from_length): Accept also
9216 the real size of 'long double' type.
9217
088b2ddc 92182003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9219
088b2ddc 9220 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9221 * breakpoint.c (bpstat_copy): Copy the command lines as well
9222 as the old value, to match what is freed in bpstat_clear.
9223
f56f77c1
DC
92242003-03-10 David Carlton <carlton@math.stanford.edu>
9225
9226 * minsyms.c (add_minsym_to_hash_table): Replace
9227 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9228 (compare_minimal_symbols, compact_minimal_symbols)
9229 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9230 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9231 of DEPRECATED_SYMBOL_MATCHES_NAME.
9232 (lookup_minimal_symbol_solib_trampoline): Ditto.
9233
5602984a
AC
92342003-03-10 Andrew Cagney <cagney@redhat.com>
9235
9236 * regcache.h (regcache_cooked_read_ftype): Define.
9237 (regcache_save, regcache_restore): Add a cooked_read parameter.
9238 * regcache.c (regcache_save, regcache_restore): Update.
9239 (do_cooked_read): New function.
9240 (regcache_cpy): Pass do_cooked_read to regcache_save and
9241 regcache_restore.
9242
8bedc050
AC
92432003-03-10 Andrew Cagney <cagney@redhat.com>
9244
9245 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9246 * gdbarch.h, gdbarch.c: Re-generate.
9247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9248 * x86-64-tdep.h: Update.
9249 * x86-64-tdep.c (x86_64_init_abi): Update.
9250 * v850-tdep.c (v850_gdbarch_init): Update.
9251 * sparc-tdep.c (sparc_gdbarch_init): Update.
9252 * sh-tdep.c (sh_gdbarch_init): Update.
9253 * s390-tdep.c (s390_gdbarch_init): Update.
9254 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9255 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9256 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9257 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9258 * mips-tdep.c (mips_gdbarch_init): Update.
9259 * mcore-tdep.c (mcore_gdbarch_init): Update.
9260 * m68k-tdep.c (m68k_gdbarch_init): Update.
9261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9262 * ia64-tdep.c (ia64_gdbarch_init): Update.
9263 * i386-tdep.c (i386_gdbarch_init): Update.
9264 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9265 * hppa-tdep.c (hppa_gdbarch_init): Update.
9266 * h8300-tdep.c (h8300_gdbarch_init): Update.
9267 * frv-tdep.c (frv_gdbarch_init): Update.
9268 * cris-tdep.c (cris_gdbarch_init): Update.
9269 * avr-tdep.c (avr_gdbarch_init): Update.
9270 * arm-tdep.c (arm_gdbarch_init): Update.
9271 * alpha-tdep.c (alpha_gdbarch_init): Update.
9272 * sh-tdep.c (sh_init_extra_frame_info): Update.
9273 (sh64_init_extra_frame_info): Update.
9274 * ns32knbsd-nat.c (frame_num_args): Update.
9275 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9276 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9277 (xstormy16_frame_chain_valid): Update.
9278 * vax-tdep.c (vax_saved_pc_after_call): Update.
9279 * v850-tdep.c (v850_frame_chain): Update.
9280 (v850_pop_frame): Update.
9281 (v850_init_extra_frame_info): Update.
9282 * sparc-tdep.c (setup_arbitrary_frame): Update.
9283 * ns32k-tdep.c (umax_frame_num_args): Update.
9284 * s390-tdep.c (s390_pop_frame_regular): Update.
9285 * mn10300-tdep.c (mn10300_frame_chain): Update.
9286 (mn10300_pop_frame_regular): Update.
9287 (mn10300_init_extra_frame_info): Update.
9288 * mips-tdep.c (mips_init_frame_pc_first): Update.
9289 (mips_frame_chain): Update.
9290 (mips_pop_frame): Update.
9291 * mcore-tdep.c (mcore_frame_chain): Update.
9292 (mcore_pop_frame): Update.
9293 (mcore_init_extra_frame_info): Update.
9294 * arch-utils.c (init_frame_pc_default): Update.
9295 * m68k-tdep.c (isi_frame_num_args): Update.
9296 (delta68_frame_num_args): Update.
9297 (news_frame_num_args): Update.
9298 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9299 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9300 (alpha_frame_chain): Update.
9301 (alpha_pop_frame): Update.
9302 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9303 (hppa_init_extra_frame_info): Update.
9304 (hppa_frame_chain): Update.
9305 (hppa_frame_chain_valid): Update.
9306 * cris-tdep.c (cris_init_extra_frame_info): Update.
9307 * avr-tdep.c (avr_init_extra_frame_info): Update.
9308 * arm-tdep.c (arm_frame_chain_valid): Update.
9309 (arm_init_extra_frame_info): Update.
9310 (arm_pop_frame): Update.
9311 * frame.c (frame_pc_unwind): Update.
9312 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9313 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9314 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9315 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9316 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9317 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9318
12cc2063
AC
93192003-03-10 Andrew Cagney <cagney@redhat.com>
9320
9321 * gdbarch.sh (gdbarch_unwind_pc): New method.
9322 * gdbarch.h, gdbarch.c: Regenerate.
9323 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9324 but use read_pc and FRAME_SAVED_PC as fall backs.
9325 (frame_saved_regs_pc_unwind): Delete function.
9326 (trad_frame_unwinder): Update.
9327 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9328 (struct frame_unwind): Update.
9329 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9330 (dummy_frame_unwind): Update.
9331 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9332 (sentinel_frame_unwinder): Update.
9333 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9334 (d10v_frame_unwind): Update.
9335 (d10v_unwind_pc): New function.
9336 (d10v_gdbarch_init): Set unwind_pc.
9337
ef840a37
AC
93382003-03-10 Andrew Cagney <cagney@redhat.com>
9339
a2ce2e56
AC
9340 * gdbarch.h: Re-generate.
9341
ef840a37
AC
9342 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9343 PC.
9344 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9345 the PC register.
9346
08f3424b
MK
93472003-03-08 Mark Kettenis <kettenis@gnu.org>
9348
9349 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9350
1248ede2
AC
93512003-03-08 Andrew Cagney <cagney@redhat.com>
9352
9353 * cli-out.c: Update copyright.
9354 (cli_out_data): Define typedef. Use instead of ui_out_data.
9355
f49bacc8
AC
93562003-03-08 Andrew Cagney <cagney@redhat.com>
9357
9358 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9359 the result.
9360
9b05f993
AC
93612003-03-07 Andrew Cagney <cagney@redhat.com>
9362
9363 * gdbarch.sh: Don't generate two macro definitions when an
9364 undefined macro taking no arguments.
9365 * gdbarch.h: Regenerate.
8ffd9b1b 9366
166f4c7b
ML
93672002-03-07 Michal Ludvig <mludvig@suse.cz>
9368
9369 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9370 (x86_64_unwind_dummy_id): New functions.
9371 (x86_64_init_abi): Register these two new functions.
9372
6d686a84
ML
93732003-03-07 Michal Ludvig <mludvig@suse.cz>
9374
9375 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9376 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9377 separate function.
9378 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9379
6314f104
AC
93802003-03-05 Andrew Cagney <cagney@redhat.com>
9381
9382 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9383 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9384 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9385 to use unwind_dummy_id when a dummy frame.
9386 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9387 predicate.
9388 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9389
ceea5145
AC
93902003-03-05 Andrew Cagney <cagney@redhat.com>
9391
9392 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9393 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9394 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9395 values.
9396
0d843116
AC
93972003-03-05 Andrew Cagney <cagney@redhat.com>
9398
9399 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9400 (struct d10v_unwind_cache): Delete field "frameless". Replace
9401 "next_addr" with "sp_offset". Add "r11_offset".
9402 (d10v_frame_unwind_cache): Update.
9403 (prologue_find_regs): Update. When "mv r11, sp", save the
9404 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9405 RN was saved in r11_offset.
9406
b2579786
AC
94072003-03-05 Andrew Cagney <cagney@redhat.com>
9408
9409 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9410 cached PC value in the next frame.
9411
218e5956
AC
94122003-03-05 Andrew Cagney <cagney@redhat.com>
9413
9414 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9415 "id_unwind_cache" with "id".
9416 (frame_id_unwind): Delete declaration.
9417 * frame.c (frame_id_unwind): Delete function.
9418 (get_prev_frame): Call the frame id unwind method directly. Store
9419 the returned next frame's ID value in NEXT_FRAME. Note that there
9420 is a problem with the wrong unwind ID being called with the wrong
9421 unwind cache.
9422
ed363b1b
DJ
94232003-03-05 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9426
fe1f4a5e
DJ
94272003-03-05 James Ingham <jingham@apple.com>
9428 Daniel Jacobowitz <drow@mvista.com>
9429
9430 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9431 (auto_cp_abi): New variable.
9432 (current_cp_abi, num_cp_abis): Make static.
9433 (CP_ABI_MAX): Define.
9434 (cp_abis): Turn into an array.
9435 (value_virtual_fn_field): Fix formatting.
9436 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9437 takes a pointer.
9438 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9439 (list_cp_abis, _initialize_cp_abi): New functions.
9440 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9441 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9442 switch_to_cp_abi. Update prototype for register_cp_abi.
9443 * Makefile.in (cp-abi.o): Update dependencies.
9444 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9445 instead of switch_to_cp_abi.
9446 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9447 register_cp_abi.
9448 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9449 register_cp_abi.
9450 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9451
e4adbba9
DJ
94522003-03-05 Daniel Jacobowitz <drow@mvista.com>
9453
9454 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9455 * dwarf2loc.c: Include "regcache.h".
9456 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9457 register_size.
9458 * Makefile.in (dwarf2loc.o): Update dependencies.
9459
91ccbfc1
TR
94602003-03-04 Theodore A. Roth <troth@openavr.org>
9461
9462 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9463 number of io registers reported by remote target is not a multiple of
9464 step.
9465
3d4e8fd2
DC
94662003-03-04 David Carlton <carlton@math.stanford.edu>
9467
9468 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9469 (lookup_symbol_aux_psymtabs): Update call to
9470 lookup_partial_symbol.
9471 (lookup_transparent_type, find_main_psymtab)
9472 (make_symbol_overload_list): Ditto.
9473
ed42d87b
KH
94742003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9475
9476 * MAINTAINERS (Write after approval): Update my email address.
9477
a0ed5532
AC
94782003-03-03 Andrew Cagney <cagney@redhat.com>
9479
9480 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9481 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9482 predicate. Replace MAX_REGISTER_RAW_SIZE.
9483 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9484 MAX_REGISTER_VIRTUAL_SIZE.
9485 * regcache.c (legacy_max_register_raw_size): New function.
9486 (legacy_max_register_virtual_size): New function.
9487 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9488 (MAX_REGISTER_RAW_SIZE): Define.
9489 (legacy_max_register_raw_size): Declare.
9490 (legacy_max_register_virtual_size): Declare.
9491 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9492 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9493 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9494 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9495 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9496 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9497 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9498 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9499 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9501 * vax-tdep.c (vax_gdbarch_init): Update.
9502 * v850-tdep.c (v850_gdbarch_init): Update.
9503 * sparc-tdep.c (sparc_gdbarch_init): Update.
9504 * sh-tdep.c (sh_gdbarch_init): Update.
9505 * s390-tdep.c (s390_gdbarch_init): Update.
9506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9507 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9508 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9509 * mips-tdep.c (mips_gdbarch_init): Update.
9510 * mcore-tdep.c (mcore_gdbarch_init): Update.
9511 * m68k-tdep.c (m68k_gdbarch_init): Update.
9512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9513 * ia64-tdep.c (ia64_gdbarch_init): Update.
9514 * i386-tdep.c (i386_gdbarch_init): Update.
9515 * hppa-tdep.c (hppa_gdbarch_init): Update.
9516 * h8300-tdep.c (h8300_gdbarch_init): Update.
9517 * frv-tdep.c (frv_gdbarch_init): Update.
9518 * cris-tdep.c (cris_gdbarch_init): Update.
9519 * avr-tdep.c (avr_gdbarch_init): Update.
9520 * arm-tdep.c (arm_gdbarch_init): Update.
9521 * alpha-tdep.c (alpha_gdbarch_init): Update.
9522 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9523 max_register_raw_size or max_register_virtual_size.
9524
8e437497
DC
95252003-03-03 David Carlton <carlton@math.stanford.edu>
9526
9527 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9528 SYMBOL_MATCHES_NAME, add comment.
9529 (SYMBOL_MATCHES_NATURAL_NAME): New.
9530 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9531 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9532 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9533 * symtab.c (lookup_partial_symbol): Use
9534 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9535 unhelpful comment.
9536 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9537 SYMBOL_MATCHES_NAME.
9538 Fix for PR c++/33.
9539
25120b0d
DC
95402003-03-03 David Carlton <carlton@math.stanford.edu>
9541
9542 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9543 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9544 by regexp matching against SYMBOL_NATURAL_NAME.
9545
78a11fb4
DC
95462003-03-03 David Carlton <carlton@math.stanford.edu>
9547
9548 * linespec.c (find_method): Extract code into collect_methods.
9549 (collect_methods): New.
9550
645dd519
MK
95512003-03-02 Mark Kettenis <kettenis@gnu.org>
9552
b4700d91
MK
9553 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9554 get_frame_base.
9555
645dd519
MK
9556 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9557 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9558
0aa7e1aa
SC
95592003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9560
8ffd9b1b 9561 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9562 and not regnum when summing the size of all registers up to regnum.
9563
f30ee0bc
AC
95642003-03-01 Andrew Cagney <cagney@redhat.com>
9565
9566 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9567 FRAME_INIT_SAVED_REGS.
9568 * gdbarch.h, gdbarch.c: Regenerate.
9569 * stack.c (frame_info): Update.
9570 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9571 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9572 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9573 * ns32k-tdep.c (ns32k_pop_frame): Update.
9574 * mips-tdep.c (mips_pop_frame): Update.
9575 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9576 * ia64-tdep.c (ia64_frame_chain): Update.
9577 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9578 (ia64_frameless_function_invocation): Update.
9579 (ia64_init_extra_frame_info): Update.
9580 (ia64_pop_frame_regular): Update.
9581 * frame.h (struct frame_info): Update comment.
9582 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9583 * frame.c (frame_saved_regs_register_unwind): Update.
9584 (frame_saved_regs_register_unwind): Update.
9585 (deprecated_generic_get_saved_register): Update.
9586 * cris-tdep.c: Update comment.
9587 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9588 Rename macro.
9589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9590 * x86-64-tdep.c (x86_64_init_abi): Update.
9591 * vax-tdep.c (vax_gdbarch_init): Update.
9592 * v850-tdep.c (v850_gdbarch_init): Update.
9593 * sparc-tdep.c (sparc_gdbarch_init): Update.
9594 * sh-tdep.c (sh_gdbarch_init): Update.
9595 * s390-tdep.c (s390_gdbarch_init): Update.
9596 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9597 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9598 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9599 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9600 * mips-tdep.c (mips_gdbarch_init): Update.
9601 * mcore-tdep.c (mcore_gdbarch_init): Update.
9602 * m68k-tdep.c (m68k_gdbarch_init): Update.
9603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9604 * ia64-tdep.c (ia64_gdbarch_init): Update.
9605 * i386-tdep.c (i386_gdbarch_init): Update.
9606 * frv-tdep.c (frv_gdbarch_init): Update.
9607 * avr-tdep.c (avr_gdbarch_init): Update.
9608 * arm-tdep.c (arm_gdbarch_init): Update.
9609 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9610
42fa7c0f
AC
96112003-03-01 Andrew Cagney <cagney@redhat.com>
9612
9613 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9614 option enum and switch. When no windows, set the interpreter to
9615 INTERP_CONSOLE.
8ffd9b1b 9616
49c7e338
AC
96172003-03-01 Andrew Cagney <cagney@redhat.com>
9618
9619 * main.c (captured_main): Replace magic option characters with an
9620 enum.
9621
e9582e71
AC
96222003-03-01 Andrew Cagney <cagney@redhat.com>
9623
9624 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9625 INIT_EXTRA_FRAME_INFO.
9626 * gdbarch.h, gdbarch.c: Regenerate.
9627 * arm-tdep.c: Update comments.
9628 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9629 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9630 * frame.h, avr-tdep.c: Ditto.
9631 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9632 (create_new_frame, legacy_get_prev_frame): Ditto.
9633 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9634 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9636 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9637 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9638 * v850-tdep.c (v850_gdbarch_init): Ditto.
9639 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9640 * sh-tdep.c (sh_gdbarch_init): Ditto.
9641 * s390-tdep.c (s390_gdbarch_init): Ditto.
9642 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9643 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9644 * mips-tdep.c (mips_gdbarch_init): Ditto.
9645 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9647 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9648 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9649 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9650 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9651 * frv-tdep.c (frv_gdbarch_init): Ditto.
9652 * cris-tdep.c (cris_gdbarch_init): Ditto.
9653 * avr-tdep.c (avr_gdbarch_init): Ditto.
9654 * arm-tdep.c (arm_gdbarch_init): Ditto.
9655 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9656 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9657
35cac7cf
AC
96582003-03-01 Andrew Cagney <cagney@redhat.com>
9659
9660 * gdbarch.sh (register_type): New function with predicate.
9661 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9662 * gdbarch.h, gdbarch.c: Re-generate.
9663 * arch-utils.c (generic_register_byte): Use generic_register_size.
9664 (generic_register_size): When available, use
9665 gdbarch_register_type.
9666 * regcache.c (init_regcache_descr): When available, initialize the
9667 register type array using gdbarch_register_type. If the
9668 architecture supplies gdbarch_register_type, do not use the legacy
9669 regcache layout.
9670 * d10v-tdep.c (d10v_register_type): Replace
9671 d10v_register_virtual_type.
9672 (d10v_gdbarch_init): Set register_type instead of
9673 register_virtual_type.
9674
7b83296f
AC
96752003-03-01 Andrew Cagney <cagney@redhat.com>
9676
9677 * Makefile.in (ax-gdb.o): Update dependencies.
9678 * ax-gdb.c: Include "regcache.h".
9679 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9680 * findvar.c (value_of_register): Ditto.
9681 * infcmd.c (default_print_registers_info): Ditto.
9682
eadc1c87
MK
96832003-03-01 Mark Kettenis <kettenis@gnu.org>
9684
9685 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9686 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9687
14143612
MK
96882003-03-01 Mark Kettenis <kettenis@gnu.org>
9689
9690 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9691 of STREQ.
9692
a55cc764
DJ
96932003-02-28 Daniel Jacobowitz <drow@mvista.com>
9694
9695 * Makefile.in (dwarf2loc.o): Update dependencies.
9696 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9697 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9698 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9699 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9700 (locexpr_tracepoint_var_ref): New function.
9701 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9702
08a617da
AC
97032003-02-28 Andrew Cagney <cagney@redhat.com>
9704
9705 * regcache.c (register_size): New function.
9706 * regcache.h (register_size): Declare
9707 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9708 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9709
4224873a
DC
97102003-02-28 David Carlton <carlton@math.stanford.edu>
9711
9712 * linespec.c (decode_compound): Extract code into find_method.
9713 (find_method): New.
9714
ccdc5d7f
JB
97152003-02-28 J. Brobecker <brobecker@gnat.com>
9716
9717 * Makefile.in: Add rules to build and link in observer.o.
9718
974e8ced
JB
97192003-02-27 J. Brobecker <brobecker@gnat.com>
9720
9721 * observer.c: Minor comments edits.
9722
7a28f973
JB
97232003-02-27 J. Brobecker <brobecker@gnat.com>
9724
9725 * observer.h, observer.c: New file.
9726
27cddce2
AC
97272003-02-27 Andrew Cagney <cagney@redhat.com>
9728
9729 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9730
b94a41a1
SC
97312003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9732
9733 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9734 (M6812_OP_STS_EXT): Likewise.
9735 (m6811_prologue): Use the above to recognize prologue.
9736 (m6812_prologue): Likewise.
9737
c8be8951
DC
97382003-02-27 David Carlton <carlton@math.stanford.edu>
9739
9740 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9741 SYMBOL_PRINT_NAME.
9742 (compare_psymbols): Ditto.
9743 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9744
d05bb1fc
MS
97452003-02-27 Michael Snyder <msnyder@redhat.com>
9746
4e845cd3
MS
9747 * f-lang.c (build_fortran_types): New function.
9748 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9749 * doublest.c (extract_floating): Fix warning text.
9750
f3824013
AC
97512003-02-27 Andrew Cagney <cagney@redhat.com>
9752
9753 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9754 predicate. Replaces PUSH_DUMMY_FRAME.
9755 * gdbarch.h, gdbarch.c: Regnerate.
9756 * valops.c (hand_function_call): Update. Call
9757 generic_push_dummy_frame directly.
9758 * vax-tdep.c (vax_gdbarch_init): Update.
9759 * sparc-tdep.c (sparc_gdbarch_init): Update.
9760 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9761 * m68k-tdep.c (m68k_gdbarch_init): Update.
9762 * hppa-tdep.c (hppa_gdbarch_init): Update.
9763 * alpha-tdep.c (alpha_gdbarch_init): Update.
9764 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9765 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9766 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9767 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9768 push_dummy_frame to generic_push_dummy_frame.
9769 * v850-tdep.c (v850_gdbarch_init): Ditto.
9770 * sh-tdep.c (sh_gdbarch_init): Ditto.
9771 * s390-tdep.c (s390_gdbarch_init): Ditto.
9772 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9774 * mips-tdep.c (mips_gdbarch_init): Ditto.
9775 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9777 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9778 * i386-tdep.c (i386_gdbarch_init): Ditto.
9779 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9780 * frv-tdep.c (frv_gdbarch_init): Ditto.
9781 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9782 * cris-tdep.c (cris_gdbarch_init): Ditto.
9783 * avr-tdep.c (avr_gdbarch_init): Ditto.
9784 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9785
ad188201
KB
97862003-02-26 Kevin Buettner <kevinb@redhat.com>
9787
9788 * mips-tdep.c (show_mips_abi): New function.
9789 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9790 command ``show mips abi''.
9791
6b37567a 97922003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9793
6b37567a 9794 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9795 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9796 more sline entries have been seen for the function.
9797
d3e0a5bf
MC
97982003-02-26 Michael Chastain <mec@shout.net>
9799
9800 * configure: Regenerate with autoconf 000227.
9801
18972eea
MC
98022003-02-26 Michael Chastain <mec@shout.net>
9803
9804 Close PR build/660.
9805 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9806 for old libc5/glibc.
9807 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9808
0bbde931
KW
98092003-02-26 Kris Warkentin <kewarken@qnx.com>
9810
9811 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9812 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9813
27ca5dad
MC
98142003-02-26 Michael Chastain <mec@shout.net>
9815
9816 * configure.in: New variable HAVE_UINTPTR_T.
9817 * configure, config.in: Regenerated.
9818
6f88d630
DJ
98192003-02-26 Daniel Jacobowitz <drow@mvista.com>
9820
9821 Fix PR build/1097.
9822 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9823
b14185ce
AC
98242003-02-25 Andrew Cagney <cagney@redhat.com>
9825
9826 * frame.c (get_prev_frame): Add comment on check for
9827 inside_entry_func. Only check for inside_entry_file when not a
9828 dummy and not a sentinel. Check that the new frame is not inner
9829 to the old frame.
9830
ac2bd0a9
AC
98312003-02-25 Andrew Cagney <cagney@redhat.com>
9832
9833 * frame.c (frame_debug): New variable.
9834 (_initialize_frame): Add "set/show debug frame" command.
9835 (get_prev_frame): When frame_debug, print reason why unwind
9836 failed.
9837
b18a0fd2
MC
98382003-02-25 Michael Chastain <mec@shout.net>
9839
9840 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9841 to avoid uintptr_t definition problems.
9842
22abf04a
DC
98432003-02-25 David Carlton <carlton@math.stanford.edu>
9844
9845 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9846 (SYMBOL_LINKAGE_NAME): Ditto.
9847 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9848 SYMBOL_LINKAGE_NAME.
9849 (struct general_symbol_info): Expand comment.
9850 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9851 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9852 (SYMBOL_MATCHES_REGEXP): Ditto.
9853 * symtab.c (symbol_natural_name): New function.
9854 * objfiles.h: Replace all uses of SYMBOL_NAME by
9855 DEPRECATED_SYMBOL_NAME.
9856 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9857 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9858 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9859 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9860 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9861 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9862 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9863 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9864 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9865 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9866 * ada-exp.y: Ditto.
9867 * ada-exp.y: Update copyright.
9868 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9869 * cp-valprint.c: Ditto.
9870
1a5848f6
JJ
98712003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9872
9873 * infptrace.c (detach): Do not flag error if ptrace detach fails
9874 and errno is set to ESRCH.
9875
7343d46a
AC
98762003-02-24 Andrew Cagney <cagney@redhat.com>
9877
9878 * infptrace.c (udot_info): Change type of udot_off to long. Use
9879 paddr when printing udot_off's value.
9880
49fa1dc2
DC
98812003-02-24 David Carlton <carlton@math.stanford.edu>
9882
9883 * symtab.c (make_symbol_overload_list): Only read in partial
9884 symtabs containing a matching partial symbol.
9885
0fe19209
DC
98862003-02-24 David Carlton <carlton@math.stanford.edu>
9887
9888 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9889 do the comparison, not strcmp.
9890 * symfile.c (compare_psymbols): Ditto.
9891 * defs.h: Declare strcmp_iw_ordered.
9892 * utils.c (strcmp_iw_ordered): New function.
9893
8e3ee7b5
JB
98942003-02-24 Jim Blandy <jimb@redhat.com>
9895
9896 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9897 support, shared libs): Remove my name from here, to better reflect
9898 reality.
9899
7df1a324
KW
99002003-02-24 Kris Warkentin <kewarken@qnx.com>
9901
9902 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9903 (target_ops): Add to_have_continuable_watchpoint.
9904 * target.c (update_current_target): Add INHERIT line for
9905 to_have_continuable_watchpoint.
9906 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9907 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9908 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9909 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9910
d1c76907
EZ
99112003-02-24 Elena Zannoni <ezannoni@redhat.com>
9912
9913 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9914 maintainership.
9915
2610b0bf
KW
99162003-02-24 Kris Warkentin <kewarken@qnx.com>
9917
f46169db
KW
9918 * solib.c (solib_open): Call target defined search function after
9919 failing with solib-search-path.
9920 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9921 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9922
9a3c34fe
KW
99232003-02-24 Kris Warkentin <kewarken@qnx.com>
9924
f46169db 9925 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9926
2417dd25
SC
99272003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9928
9929 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9930
b631436b
SC
99312003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9932
9933 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9934 (m68hc11_add_reggroups): New function.
9935 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9936 (m68hc11_gdbarch_init): Install the reggroups.
9937 (_initialize_m68hc11_tdep): Initialize them.
9938
0aa8c1e4
JW
99392003-02-21 James E Wilson <wilson@tuliptree.org>
9940
9941 * MAINTAINERS: Update my email address.
9942
50ceaba5
DC
99432003-02-21 David Carlton <carlton@math.stanford.edu>
9944
9945 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9946
4c2df51b
DJ
99472003-02-21 Daniel Jacobowitz <drow@mvista.com>
9948
9949 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9950 * symtab.h: Add opaque declarations of struct axs_value and
9951 struct agent_expr.
9952 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9953 (struct location_funcs): New type.
9954 (struct symbol): Add "loc" to aux_value.
9955 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9956 * dwarf2read.c: Include "dwarf2expr.h".
9957 (dwarf2_symbol_mark_computed): New function.
9958 (read_func_scope): Use it.
9959 (var_decode_location): New function.
9960 (new_symbol): Use it.
9961 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9962
9963 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9964 (dwarf2expr_h, dwarf2loc_h): New variables.
9965 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9966 (dwarf2expr.o, dwarf2loc.o): New rules.
9967 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9968 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9969 LOC_COMPUTED_ARG.
9970 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9971 * m2-exp.y (yylex): Likewise.
9972 * printcmd.c (address_info, print_frame_args): Likewise.
9973 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9974 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9975 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9976 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9977 * symtab.c (lookup_block_symbol): Likewise.
9978
5784d15e
AF
99792003-02-20 Adam Fedor <fedor@gnu.org>
9980
9981 * symtab.h: Remove objc_specific struct
9982 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9983 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9984 Have language_objc use cplus_specific struct.
9985
d4cad8db
TT
99862003-02-20 Tom Tromey <tromey@redhat.com>
9987
9988 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9989 TYPE_NAME, when printing a String value. PR java/1075.
9990
2f9a90b4
AF
99912003-02-20 Adam Fedor <fedor@gnu.org>
9992
d38074a8 9993 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9994 * objc-lang.c (find_methods): Make static.
2f9a90b4 9995
6f17862b
CF
99962003-02-20 Christopher Faylor <cgf@redhat.com>
9997
9998 * win32-nat.c (get_image_name): Check return value from
9999 ReadProcessMemory.
10000 (child_xfer_memory): Ditto.
10001
715d1656
AO
100022003-02-20 Alexandre Oliva <aoliva@redhat.com>
10003
10004 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10005 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10006 '${exec_prefix}' (in addition to the expansion thereof) as
10007 relocatable.
10008 * configure: Rebuilt.
10009
b1262a02
DC
100102003-02-20 David Carlton <carlton@math.stanford.edu>
10011
10012 * symtab.c (search_symbols): Revert the search_symbols part of my
10013 2002-12-23 patch. Add comment.
10014
7134143f
DJ
100152002-02-20 Daniel Jacobowitz <drow@mvista.com>
10016
10017 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10018 * dbxread.c (elfstab_build_psymtabs): Don't call
10019 install_minimal_symbols.
10020 (stabsect_build_psymtabs): Likewise.
10021 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10022 earlier.
10023 * somread.c (som_symfile_read): Call install_minimal_symbols
10024 and do_cleanups earlier.
10025 * nlmread.c (nlm_symfile_read): Likewise.
10026 * mdebugread.c (elfmdebug_build_psymtabs): Call
10027 install_minimal_symbols and make appropriate cleanups.
10028
cf466558
KB
100292003-02-20 Kevin Buettner <kevinb@redhat.com>
10030
10031 * solib.c (reload_shared_libraries): New function.
10032 (_initialize_solib): Add callbacks for ``set solib-search-path''
10033 and ``set solib-absolute-prefix''.
10034
de5ad195
DC
100352003-02-20 David Carlton <carlton@math.stanford.edu>
10036
10037 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10038 expand comment.
10039 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10040 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10041 * ada-typeprint.c (ada_typedef_print): Ditto.
10042 * ax-gdb.c (gen_var_ref): Ditto.
10043 * breakpoint.c (print_one_breakpoint): Ditto.
10044 * buildsym.c (finish_block): Ditto.
10045 * c-valprint.c (c_val_print): Ditto.
10046 * expprint.c (print_subexp): Ditto.
10047 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10048 * infcmd.c (jump_command): Ditto.
10049 * linespec.c (decode_line_2, decode_compound): Ditto.
10050 * maint.c (maintenance_translate_address): Ditto.
10051 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10052 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10053 Ditto.
8ffd9b1b
AJ
10054 * p-valprint.c (pascal_val_print): Ditto.
10055 * stabsread.c (define_symbol): Ditto.
de5ad195 10056 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10057 (print_frame_arg_vars, return_command): Ditto.
10058 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10059 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10060 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10061 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10062 (rbreak_command): Ditto.
10063 * tracepoint.c (tracepoints_info): Ditto.
10064 * typeprint.c (typedef_print): Ditto.
10065 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10066 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10067 * ada-typeprint.c: Update Copyright.
10068 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10069 * tracepoint.c, cli/cli-cmds.c: Ditto.
10070
f796e4be
KB
100712003-02-20 Kevin Buettner <kevinb@redhat.com>
10072
10073 * frame.c (generic_unwind_get_saved_register): Make non-static.
10074 * frame.h (generic_unwind_get_saved_register): Declare.
10075 * mips-tdep.c (read_next_frame_reg): Fetch register from
10076 current regcache when frame is NULL.
10077 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10078 that must be NULL.
10079 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10080 instead of frame_register_unwind().
10081
836cc9f4
AC
100822003-02-20 Andrew Cagney <ac131313@redhat.com>
10083
10084 * remote-sim.c (gdbsim_insert_breakpoint)
10085 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10086 code.
10087
501eef12
AC
100882003-02-20 Andrew Cagney <ac131313@redhat.com>
10089
10090 * remote.c (_initialize_remote): Add commands "set/show remote
10091 hardware-watchpoint-limit" and "set/show remote
10092 hardware-breakpoint-limit".
10093 (remote_hw_watchpoint_limit): Initialize to -1.
10094 (remote_hw_breakpoint_limit): Ditto.
10095 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10096
1b6bc7e0
CF
100972003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10098
10099 * coff-pe-read.c: New file - support reading of minimal symbols from a
10100 portable executable using the export table.
10101 * coff-pe-read.h: New file.
10102 * coffread.c: Include coff-pe-read.h.
10103 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10104 debugging symbols found.
10105 * Makefile.in (SFILES): Add coff-pe-read.o.
10106 (coff_pe_read_h): Define.
10107 (COMMON_OBS): Add coff-pe-read.o.
10108 (coffread.o): Add coff_pe_read_h dependency.
10109 (coff-pe-read.o): New target.
10110
fe898f56
DC
101112003-02-19 David Carlton <carlton@math.stanford.edu>
10112
10113 * Makefile.in (SFILES): Add block.c.
10114 (block_h): New.
10115 (COMMON_OBS): Add block.o.
10116 (block.o): New.
10117 (x86-64-tdep.o): Add $(block_h).
10118 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10119 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10120 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10121 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10122 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10123 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10124 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10125 * value.h: Add opaque declaration for struct block.
10126 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10127 * ada-lang.h: Ditto.
10128 * x86-64-tdep.c: #include "block.h"
10129 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10130 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10131 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10132 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10133 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10134 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10135 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10136 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10137 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10138 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10139 * symtab.c (block_function): Ditto.
10140 (contained_in): Ditto.
10141 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10142 block.h. Add opaque declaration for struct block.
10143 * symtab.h: Move block_function and contained_in declarations to
10144 block.h. Add opaque declarations for struct block, struct
10145 blockvector.
10146 (struct block): Move to block.h.
10147 (struct blockvector): Ditto.
10148 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10149 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10150 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10151 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10152 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10153 Ditto.
10154 * block.c: New file.
10155 * block.h: New file.
10156
173345b5
TR
101572003-02-19 Theodore A. Roth <troth@openavr.org>
10158
10159 * avr-tdep.c (avr_extract_return_value): Remove function.
10160 (avr_store_return_value): Remove function.
10161 (avr_extract_struct_value_address): Remove function.
10162 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10163
338ef23d
AC
101642003-02-19 Andrew Cagney <ac131313@redhat.com>
10165
10166 * rs6000-tdep.c: Include "gdb_assert.h".
10167 (registers_e500): Add "acc" and "spefscr".
10168 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10169 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10170 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10171 really is "r0".
10172 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10173
5412f5f3
KS
101742003-02-18 Keith Seitz <keiths@redhat.com>
10175
10176 * Makefile.in: Add gdbtk-interps.c.
10177
881324eb
KB
101782003-02-18 Kevin Buettner <kevinb@redhat.com>
10179
10180 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10181 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10182
6a2f5abf
AC
101832003-02-18 Andrew Cagney <cagney@redhat.com>
10184
10185 * symtab.h (struct objfile): Add opaque declaration.
10186
54c7009d
EZ
101872003-02-18 Elena Zannoni <ezannoni@redhat.com>
10188
10189 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10190 * dbxread.c (process_one_symbol): Use last_function_start rather
10191 than function_start_offset to find the real beginning of the
10192 current function. The latter is just the text section offset on
10193 some systems, the former is always the real function start.
54c7009d 10194
7ee6d7eb
AC
101952003-02-17 Andrew Cagney <cagney@redhat.com>
10196
10197 * configure.in: Revert ${target} != ${host}.
10198
2846da9b
AC
101992003-02-17 Andrew Cagney <ac131313@redhat.com>
10200
10201 * configure.in (Makefile): Use the test ${target} != ${host},
10202 instead of the absence of the "nm.h" file, to determine of the
10203 configuration non-native.
10204 * configure: Regenerate.
8ffd9b1b 10205
3b27aeea
EZ
102062003-02-14 Elena Zannoni <ezannoni@redhat.com>
10207
fbe586ae 10208 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10209
10210 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10211 conditionalize tui_active test.
10212 (lookup_cmd_1): Ditto.
10213
b0b1c2c0
MK
102142003-02-14 Mark Kettenis <kettenis@gnu.org>
10215
10216 * configure.in: Add check for _etext.
10217 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10218 available.
10219 * config.in, configure: regenerated.
10220
8f05cde5
DJ
102212003-02-14 Daniel Jacobowitz <drow@mvista.com>
10222
10223 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10224
021e7609
AC
102252003-02-14 Andrew Cagney <ac131313@redhat.com>
10226
10227 * main.c (tui_version): Delete variable.
10228 (captured_main): When --tui, set interpreter_p to "tui" instead of
10229 enabling tui_version.
10230 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10231 tui_version.
10232 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10233 * cli/cli-cmds.c (disassemble_command): Ditto.
10234 * defs.h (tui_version): Delete declaration.
10235 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10236 (tui-interp.o): Add rules.
10237 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10238
e325dcec
CF
102392003-02-14 Christopher Faylor <cgf@redhat.com>
10240
36ffb041 10241 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10242 just-loaded dll.
10243
c4f90d87
JM
102442003-02-12 Jason Molenda (jmolenda@apple.com)
10245
fbe586ae
RH
10246 * symmisc.c (print_objfile_statistics): Include information about
10247 the number of psymtabs and symtabs in each object file.
c4f90d87 10248
e46e5ccd
KS
102492003-02-13 Keith R Seitz <keiths@redhat.com>
10250
10251 * main.h (struct captured_main_args): Add interpreter_p.
10252 * main.c (captured_main): Initialize interpreter_p from context.
10253 * gdb.c (main): Set interpreter_p argument.
10254 * Makefile.in (gdb.o): Add dependency for interps.h.
10255
fe97fe9c
AC
102562003-02-12 Andrew Cagney <ac131313@redhat.com>
10257
10258 * event-top.c (cli_command_loop): Delete declaration.
10259 (_initialize_event_loop): Delete function setting event_loop_hook.
10260 * event-top.h (cli_command_loop): Declare. Update copyright.
10261 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10262 * interps.c (current_interp_command_loop): When event_loop_p, call
10263 cli_command_loop.
10264
1cdac4ef
AC
102652003-02-12 Andrew Cagney <ac131313@redhat.com>
10266
10267 * interps.h (interp_command_loop_ftype): Change return type to
10268 void.
10269
48037ead
ML
102702003-02-12 Michal Ludvig <mludvig@suse.cz>
10271
10272 * x86-64-tdep.c (x86_64_extract_return_value)
10273 (x86_64_store_return_value): Use regcache instead of regbuf.
10274 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10275 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10276
033afc63
AC
102772003-02-11 Andrew Cagney <ac131313@redhat.com>
10278
10279 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10280 * aclocal.m4: Regenerate.
10281 * configure: Regenerate.
10282
10283 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10284 TCL_LD_SEARCH_FLAGS.
10285
40d02bca
ML
102862003-02-10 Michal Ludvig <mludvig@suse.cz>
10287
10288 * dwarf2cfi.c: Reindented.
10289
11308a41
AC
102902003-02-09 Andrew Cagney <ac131313@redhat.com>
10291
10292 * interps.c (clear_interpreter_hooks): Convert function definition
10293 to ISO C.
10294
e1c1c0f6
DC
102952003-02-07 David Carlton <carlton@math.stanford.edu>
10296
10297 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10298
ab5d3da6
KB
102992003-02-07 Kevin Buettner <kevinb@redhat.com>
10300
10301 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10302 (struct type): ...to here.
10303 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10304 field.
10305 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10306 (replace_type): Set length on all type variants for a given type.
10307
b8a92b82
AC
103082003-02-07 Andrew Cagney <ac131313@redhat.com>
10309
10310 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10311 <sys/stat.h>.
10312 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10313
5cb316ef
AC
103142003-02-06 Andrew Cagney <ac131313@redhat.com>
10315
2555fe1a
AC
10316 * Makefile.in (symm-nat.o): Update dependencies.
10317 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10318 (lynx-nat.o, ia64-linux-nat.): Ditto.
10319 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10320 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10321 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10322
44270758
AC
10323 * Makefile.in (inflow_h): Define.
10324 (procfs.o, inflow.o, procfs.o): Update dependencies.
10325 * inftarg.c (child_stop): Delete extern declaration of
10326 inferior_process_group. Include "inflow.h".
10327 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10328 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10329 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10330 (our_process_group, inferior_process_group): Extern declarations.
10331
df8f7274
AC
10332 * procfs.c: Include "gdb_assert.h".
10333
5cb316ef
AC
10334 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10335 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10336 * jv-typeprint.c (java_type_print_base): Ditto.
10337 * typeprint.c (typedef_print): Eliminate STREQ.
10338 * cli/cli-script.c (define_command, define_command): Ditto.
10339 * main.c (captured_main): Ditto.
10340 * values.c (lookup_internalvar): Ditto.
10341 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10342 within `if' conditional.
10343 * linespec.c (decode_line_2): Ditto.
10344 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10345 (bfd_openw_with_cleanup): Ditto.
10346
2a28ccea
MK
103472003-02-07 Mark Kettenis <kettenis@gnu.org>
10348
10349 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10350 legacy_extract_return_value and store_return_value to
10351 legacy_return_value.
10352
786b8124
CF
103532003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10354
10355 * win32-nat.c (get_relocated_section_addrs): New function. Find
10356 section load addresses for symbol handling in relocated DLLs.
10357 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10358
b871e4ec
FF
103592003-02-05 Fred Fish <fnf@intrinsity.com>
10360
10361 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10362 '=' and '!='.
10363 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10364 with '&' and '=='.
10365 (angel_RDI_info): Ditto.
10366 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10367 with '&' and '!='.
10368 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10369
4389a95a 103702003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10371 Keith Seitz <keiths@redhat.com>
10372 Elena Zannoni <ezannoni@redhat.com>
10373 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10374
10375 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10376 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10377 (SUBDIR_MI_OBS): Add "mi-interp.o".
10378 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10379 (SFILES): Add "interps.c".
10380 (COMMON_OBS): Add "interps.o".
10381 (interps_h, mi_main_h): Define.
10382 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10383 (mi-main.o, main.o, event-top.o): Update dependencies.
10384 * cli/cli-interp.c: New file.
10385 * interps.h, interps.c: New files.
10386 * top.c: (gdb_init): Don't install the default interpreter, handed
10387 by captured_main.
10388 * main.c: Include "interps.h".
10389 (interpreter_p): Note that it should malloc'ed.
10390 (captured_command_loop): Call current_interp_command_loop.
10391 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10392 xfree and xstrdup when updating interpreter_p. Install the
10393 default interpreter. Add hack to stop mi1's copyright notice
10394 being encoded.
10395 * event-top.h (gdb_setup_readline): Declare.
10396 (gdb_disable_readline): Declare.
10397 * event-top.c: Include "interps.h".
10398 (display_gdb_prompt): Call current_interp_display_prompt_p.
10399 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10400 gdb_stdlog, and gdb_stdtarg.
10401 (_initialize_event_loop): Don't call gdb_setup_readline.
10402 * cli-out.c (cli_out_set_stream): New function.
10403 * cli-out.h (cli_out_set_stream): Declare.
10404
ff3b5810
MK
104052003-02-06 Mark Kettenis <kettenis@gnu.org>
10406
10407 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10408 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10409 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10410 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10411 config/i386/i386v42mp.mt: Removed.
10412
5b729aa5
MK
104132003-02-05 Mark Kettenis <kettenis@gnu.org>
10414
10415 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10416 GDB_OSABI_SOLARIS.
10417
8cc15142
MC
104182003-02-05 Michael Chastain <mec@shout.net>
10419
10420 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10421 2.12.1 and earlier versions.
10422
5aa5d4b9
AC
104232003-02-05 Andrew Cagney <ac131313@redhat.com>
10424
10425 Remove orphaned hosts, targets and files.
10426 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10427 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10428 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10429 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10430 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10431 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10432 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10433 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10434 * config/sparc/tm-sp64sim.h: Delete.
10435 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10436 hosts.
10437 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10438 mips*-dec-mach3* targets.
10439
b68767c1
MC
104402003-02-04 Michael Chastain <mec@shout.net>
10441
10442 * NEWS: Fix typo: sepcifying -> specifying.
10443
5ae7ca1d
MC
104442003-02-04 Michael Chastain <mec@shout.net>
10445
10446 * dwarfread.c: Add documentation on the state of dwarf-1,
10447 looking towards obsoletion.
10448
d08a4280
MC
104492003-02-03 Michael Chastain <mec@shout.net>
10450
10451 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10452 gdb/testsuite/gdb.c++/pr-1023.exp.
10453
e9be73e4
AC
104542003-02-04 Andrew Cagney <ac131313@redhat.com>
10455
10456 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10457 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10458
10459 * utils.c (init_page_info): Delete reference to MPW in comments.
10460 * main.c (captured_main): Delete #ifdef MPW.
10461
05d57f6f
AC
104622003-02-04 Andrew Cagney <ac131313@redhat.com>
10463
8ffd9b1b 10464 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10465 * monitor.c (monitor_expect): Obsolete reference to m32r.
10466 * configure.tgt: Mark m32r-*-elf* as obsolete.
10467 * MAINTAINERS: Mark m32k as obsolete.
10468 * m32r-rom.c: Obsolete file.
10469 * config/m32r/m32r.mt: Obsolete file.
10470 * config/m32r/tm-m32r.h: Obsolete file.
10471 * m32r-stub.c: Obsolete file.
10472 * m32r-tdep.c: Obsolete file.
10473
8b0e5691
AC
104742003-02-04 Andrew Cagney <ac131313@redhat.com>
10475
10476 * NEWS: Mention that the z8k-zilog-none is obsolete.
10477 * MAINTAINERS: Mark z8k as obsolete.
10478 * configure.tgt: Obsolete the z8k-*-coff* target.
10479 * config/z8k/z8k.mt: Obsolete file.
10480 * config/z8k/tm-z8k.h: Obsolete file.
10481 * z8k-tdep.c: Obsolete file.
10482
67f16606
AC
104832003-02-04 Andrew Cagney <ac131313@redhat.com>
10484
10485 * NEWS: Mention that the mn10200-elf is obsolete.
10486 * configure.tgt: Obsolete mn10200-*-* target.
10487 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10488 mention that the mn10200 is obsolete.
10489 * breakpoint.h: Ditto.
10490 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10491 * config/mn10200/mn10200.mt: Obsolete file.
10492 * config/mn10200/tm-mn10200.h: Obsolete file.
10493 * mn10200-tdep.c: Obsolete file.
10494
fd2299bd
AC
104952003-02-04 Andrew Cagney <ac131313@redhat.com>
10496
10497 * MAINTAINERS: Mark h8500 as obsolete.
10498 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10499 * findvar.c (value_from_register): Ditto.
10500 * h8500-tdep.c: Mark file as obsolete.
10501 * config/h8500/h8500.mt: Ditto.
10502 * config/h8500/tm-h8500.h: Ditto.
10503 * NEWS: Mention that h8500 is obsolete.
10504
eb9a305d
DC
105052003-02-04 David Carlton <carlton@math.stanford.edu>
10506
10507 * objfiles.c (allocate_objfile): Always set name. Add comment at
10508 start of function.
10509 * jv-lang.c (get_dynamics_objfile): Add comment.
10510
406fc7fb
DC
105112003-02-04 David Carlton <carlton@math.stanford.edu>
10512
10513 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10514 * printcmd.c (build_address_symbolic): Replace uses of
10515 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10516 SYMBOL_NAME, and asm_demangle.
10517 Update copyright.
10518
93d91629
DC
105192003-02-04 David Carlton <carlton@math.stanford.edu>
10520
10521 * linespec.c (decode_compound): Extract code into
10522 lookup_prefix_sym.
10523 (lookup_prefix_sym): New function.
10524
1c5cb38e
DC
105252003-02-04 David Carlton <carlton@math.stanford.edu>
10526
10527 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10528 FLOAT_COERCION_BADNESS.
10529 * gdbtypes.c (rank_one_type): Replace all uses of
10530 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10531
0cf824c9
JB
105322003-02-04 Jim Blandy <jimb@redhat.com>
10533
10534 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10535 section, let dwarf_macinfo_section point to it, not
10536 dwarf_loc_section.
10537
a2d356b0
DJ
105382003-02-04 Daniel Jacobowitz <drow@mvista.com>
10539
10540 Pointed out by Anton Blanchard <anton@samba.org>.
10541 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10542 (ppc_linux_at_sigtramp_return_path): Use it.
10543
2de7ced7
DJ
105442003-02-04 Daniel Jacobowitz <drow@mvista.com>
10545
10546 * defs.h (streq): Add prototype.
10547 * utils.c (streq): New function.
10548
10549 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10550 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10551 * mdebugread.c (new_symbol): Likewise.
10552 * stabsread.c (define_symbol): Likewise.
10553 * coffread.c (process_coff_symbol): Likewise.
10554 * dwarfread.c (new_symbol): Likewise.
10555
10556 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10557 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10558 here.
10559 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10560 SYMBOL_INIT_DEMANGLED_NAME.
10561 * objfiles.c: Include "hashtab.h".
10562 (allocate_objfile): Call htab_set_functions_ex for the
10563 demangled_names_hash.
10564 (free_objfile): Call htab_delete for the demangled_names_hash.
10565 * objfiles.h (struct htab): Add declaration.
10566 (struct objfile): Add demangled_names_hash.
10567 * symfile.c: Include "hashtab.h".
10568 (reread_symbols): Call htab_delete for the demangled_names_hash.
10569 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10570 SYMBOL_NAME in the bcache.
10571 * symtab.c: Include "hashtab.h". Update comments.
10572 (create_demangled_names_hash, symbol_set_names): New functions.
10573 (symbol_find_demangled_name): New function, broken out from
10574 symbol_init_demangled_names.
10575 (symbol_init_demangled_names): Use it.
10576 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10577 (SYMBOL_SET_NAMES): New macro.
10578 (symbol_set_names): Add prototype.
10579
15831452
JB
105802003-02-03 Jim Blandy <jimb@redhat.com>
10581
10582 Use a single, consistent representation for an empty minimal
10583 symbol table in an objfile.
10584 * objfiles.c (terminate_minimal_symbol_table): New function.
10585 (allocate_objfile): Call it.
10586 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10587 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10588 non-NULL.
15831452
JB
10589 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10590 objfile has minimal symbols, compare minimal_symbol_count to zero,
10591 instead of comparing msymbols with NULL.
10592 * objfiles.c (have_minimal_symbols): Same.
10593 * solib-sunos.c (solib_add_common_symbols): Call
10594 terminate_minimal_symbol_table.
10595 * symfile.c (reread_symbols): Same.
8ffd9b1b 10596
ffc65945
KB
105972003-02-03 Kevin Buettner <kevinb@redhat.com>
10598
10599 * s390-tdep.c (s390_address_class_type_flags)
10600 (s390_address_class_type_flags_to_name)
10601 (s390_address_class_name_to_type_flags): New functions.
10602 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10603 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10604
f211c6d4
MS
106052003-02-03 Michael Snyder <msnyder@redhat.com>
10606
10607 * arm-tdep.c: Fix spell-o in comment.
10608
659b0389
ML
106092003-02-03 Michal Ludvig <mludvig@suse.cz>
10610
10611 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10612 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10613 error messages to contain BFD filename.
659b0389 10614
3b31d625
EZ
106152003-02-02 Elena Zannoni <ezannoni@redhat.com>
10616
997b089a 10617 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10618 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10619 (do_mixed_source_and_assembly): Use
10620 make_cleanup_ui_out_tuple_begin_end and
10621 make_cleanup_ui_out_tuple_begin_end.
10622 (do_mixed_source_and_assembly): Ditto.
10623 * thread.c (do_captured_list_thread_ids): Ditto.
10624 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10625 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10626 ui_out_tuple_end): Delete prototypes.
10627 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10628 ui_out_list_end, ui_out_tuple_end): Delete.
10629
10630 From Kevin Buettner <kevinb@redhat.com>:
10631 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10632 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10633 (do_cleanup_table_end): New functions.
10634 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10635 Use cleanups to invoke_ui_out_tuple_end().
10636 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10637 * cli/cli-setshow.c (cmd_show_list): Use
10638 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10639
5b181d62
AC
106402003-02-02 Andrew Cagney <ac131313@redhat.com>
10641
10642 * frame.c (frame_unwind_register): New function.
10643 (frame_unwind_unsigned_register): Use.
10644 (frame_unwind_signed_register): Use.
10645 (frame_read_register): New function.
10646 * frame.h (frame_unwind_register): Declare.
10647 (frame_read_register): Declare.
10648
10649 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10650 and frame_unwind_register instead of read_memory, write_register
10651 and deprecated_write_register_bytes.
10652
5f601589
AC
106532003-02-02 Andrew Cagney <ac131313@redhat.com>
10654
10655 * frame.h: Note that namelen can be negative.
10656 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10657 NAME's length.
10658
10659 * NEWS: Mention that the d10v's `regs' command is deprecated.
10660 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10661 (d10v_print_registers_info): New function.
10662 (show_regs): Call d10v_print_registers_info.
10663 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10664
6a3fe0a4
MK
106652003-02-02 Mark Kettenis <kettenis@gnu.org>
10666
10667 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10668 lost in the previous patch.
10669
075559bc
AC
106702003-02-01 Andrew Cagney <ac131313@redhat.com>
10671
10672 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10673 * stack.c (print_frame_info_base): Output complete FRAME tuple
10674 for synthesized frames.
075559bc 10675
6789195b
AC
106762003-02-02 Andrew Cagney <ac131313@redhat.com>
10677
10678 * mips-nat.c (zerobuf): Delete.
10679 (fetch_inferior_registers): Alloc local zerobuf.
10680 (fetch_core_registers): Alloc local zerobuf.
10681 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10682 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10683 * thread-db.c (thread_db_store_registers): Ditto.
10684 * sh-tdep.c (sh_do_register): Ditto.
10685 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10686 * remote-sim.c (gdbsim_store_register): Ditto.
10687 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10688 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10689 * monitor.c (monitor_supply_register): Ditto.
10690 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10691 * mips-nat.c (fetch_inferior_registers): Ditto.
10692 * m68klinux-nat.c (fetch_register): Ditto.
10693 * lynx-nat.c (fetch_inferior_registers): Ditto.
10694 (fetch_inferior_registers): Ditto.
10695 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10696 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10697 (hpux_thread_store_registers): Ditto.
10698 * hppah-nat.c (fetch_register): Ditto.
10699 * hppab-nat.c (fetch_register): Ditto.
10700 * hppa-tdep.c (pa_register_look_aside): Ditto.
10701 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10702 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10703
e669114a
AC
107042003-02-01 Andrew Cagney <ac131313@redhat.com>
10705
10706 * gdbarch.sh: Explictly specify all method levels. When a
10707 variable with an empty level, provide a non-multi-arch default.
10708 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10709 * gdbarch.h: Re-generate.
10710 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10711 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10712
9a043c1d
AC
107132003-02-01 Andrew Cagney <ac131313@redhat.com>
10714
10715 * defs.h (host_pointer_to_address): Delete declaration.
10716 (address_to_host_pointer): Delete declaration.
10717 * utils.c (host_pointer_to_address): Delete function.
10718 (address_to_host_pointer): Delete function.
10719 * procfs.c (procfs_address_to_host_pointer): New function.
10720 * procfs.c (proc_set_watchpoint): Use.
10721 (procfs_can_use_hw_breakpoint): Update comments.
10722 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10723 (som_solib_add): Use.
10724 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10725 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10726
7ca9f392
AC
107272003-02-01 Andrew Cagney <ac131313@redhat.com>
10728
94bbfd30
AC
10729 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10730 strlen d_name.
10731
7ca9f392
AC
10732 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10733 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10734 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10735 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10736 (define_symbol): Update.
10737 * symfile.c (generic_load): Remove references to nindy.
10738 * symtab.c: Remove references to nindy.
10739
31a85ea2
AC
107402003-02-01 Andrew Cagney <ac131313@redhat.com>
10741
10742 * infcmd.c (print_float_info): Delete code conditional on
10743 FLOAT_INFO.
10744 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10745 * config/m68k/nm-apollo68b.h: Ditto.
10746 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10747 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10748 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10749
f6e85fc8
MK
107502003-02-01 Mark Kettenis <kettenis@gnu.org>
10751
6015b6a0
MK
10752 * config/i386/tm-i386os9k.h: Removed.
10753
f7a30bdf
MK
10754 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10755 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10756 they're identical to i[3456]86-*-sysv* now.
10757 * config/i386/i386v32.mh: Removed.
10758 * config/i386/xm-i386v32.h: Removed.
10759 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10760
28d52111
MK
10761 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10762
4d3f6bce
MK
10763 * config/i386/i386dgux.mh: Removed.
10764 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10765
f6e85fc8
MK
10766 * configure.in: Fix typo.
10767 * configure: Regenerated.
10768
53955967
DC
107692003-01-31 David Carlton <carlton@math.stanford.edu>
10770
10771 * dwarf2read.c (dwarf2_locate_sections): Set
10772 dwarf_ranges_section.
10773
b1364885
AC
107742003-01-31 Andrew Cagney <ac131313@redhat.com>
10775
8dbb1c65
AC
10776 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10777 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10778
8731e58e
AC
10779 * utils.c: Re-indent.
10780
b1364885
AC
10781 * config/djgpp/fnchange.lst: Delete nindy files.
10782 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10783 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10784 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10785 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10786 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10787 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10788 * Makefile.in (init.c): Remove nindy references.
10789 (saber_gdb): Delete rule.
10790 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10791 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10792 and a68v-nat.c.
10793 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10794 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10795 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10796 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10797 nindy-share/stop.h.
10798 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10799 * saber.suppress: Delete file.
10800
086df311
DJ
108012003-01-31 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * dbxread.c (stabs_data): New static variable.
10804 (fill_symbuf): Support an in-memory buffer for stabs data.
10805 (stabs_seek): New function.
10806 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10807 (read_ofile_symtab): Use stabs_seek.
10808 (elfstab_build_psymtabs): Take an asection* instead of
10809 an offset and size. Relocate the stabs data if necessary.
10810 Save the section* for dbx_psymtab_to_symtab.
10811 * dwarf2read.c: Add section variables for each debug section.
10812 (dwarf2_locate_sections): Fill them in.
10813 (dwarf2_read_section): Take an asection* argument.
10814 Relocate the section contents if necessary.
10815 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10816 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10817 it to dwarf2_read_section.
10818 (dwarf2_build_frame_info): Update callers.
10819 * elfread.c (elf_symfile_read): Update call to
10820 elfstab_build_psymtabs.
10821 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10822 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10823 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10824 * symfile.c (symfile_dummy_outputs): New function.
10825 (symfile_relocate_debug_section): New function.
10826 * symfile.h (symfile_relocate_debug_section): Add prototype.
10827
87d1b352
RH
108282003-01-31 Richard Henderson <rth@redhat.com>
10829
10830 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10831 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10832 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10833 * alpha-tdep.c (alpha_register_name): Add "unique".
10834 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10835 (ALPHA_UNIQUE_REGNUM): New.
10836 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10837
c48861fb
AC
108382003-01-31 Andrew Cagney <ac131313@redhat.com>
10839
10840 * README: Remove reference to Ericsson 1800 monitor.
10841 * Makefile.in (remote-es.o): Delete rule.
10842 (ALLDEPFILES): Delete remote-es.c.
10843 * remote-es.c: Delete file.
10844 * config/m68k/es1800.mt: Delete file.
10845 * config/djgpp/fnchange.lst: Update.
10846 * configure.tgt: Delete m68*-ericsson-* target.
10847
d764a824
AF
108482003-01-31 Adam Fedor <fedor@gnu.org>
10849
10850 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10851 Remove duplicate/shadowing variable of same name.
10852
fe36c4f4
JB
108532003-01-30 Jim Blandy <jimb@redhat.com>
10854
10855 * symfile.c (find_separate_debug_file): Assert that the objfile's
10856 directory name we compute ends with a slash, and then assume that
10857 that's so everywhere we use it.
10858
cb741690
DJ
108592003-01-30 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * valops.c (value_assign): Flush frame cache after stores to memory
10862 also.
10863
96ee5227
AC
108642003-01-30 Andrew Cagney <ac131313@redhat.com>
10865
10866 * Makefile.in (mon960-rom.o): Delete rule.
10867 * mon960-rom.c: Delete file.
10868
7f6104a9
AC
108692003-01-30 Andrew Cagney <ac131313@redhat.com>
10870
10871 * d10v-tdep.c: Include "frame-unwind.h".
10872 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10873 list.
10874 (next_addr, uses_frame): Delete.
10875 (struct d10v_unwind_cache): Define.
10876 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10877 Use info instead of next_addr and uses_frame globals.
10878 (d10v_frame_init_saved_regs): Delete function.
10879 (d10v_init_extra_frame_info): Delete function.
10880 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10881 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10882 init_frame_pc or frame_saved_pc.
10883 (d10v_pop_frame): Delete function.
10884 (do_d10v_pop_frame): Delete function.
10885 (d10v_frame_chain): Delete function.
10886 (d10v_frame_chain_valid): Delete function.
10887 (d10v_frame_pc_unwind): New function.
10888 (d10v_frame_id_unwind): New function.
10889 (saved_regs_unwinder): New function.
10890 (d10v_frame_register_unwind): New function.
10891 (d10v_frame_pop): New function.
10892 (d10v_frame_unwind): New variable.
10893 (d10v_frame_p): New function.
10894 (d10v_frame_saved_pc): Delete function.
10895 * Makefile.in (d10v-tdep.o): Update dependencies.
10896
cad2e848
JB
108972003-01-30 J. Brobecker <brobecker@gnat.com>
10898
10899 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10900 causing some regressions due to a change in the default value
10901 for this macro.
10902
af34e669
DJ
109032003-01-29 Richard Henderson <rth@redhat.com>
10904 Elena Zannoni <ezannoni@redhat.com>
10905 Daniel Jacobowitz <drow@mvista.com>
10906
10907 Fix PR gdb/961.
8ffd9b1b 10908 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10909 variables.
10910 (RANGES_SECTION): New.
10911 (dwarf_ranges_buffer): New variable.
10912 (struct comp_unit_head): Add member "die".
10913 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10914 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10915 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10916 (dwarf2_locate_sections): Likewise.
10917 (dwarf2_build_psymtabs): Read .debug_ranges.
10918 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10919 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10920 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10921 Look for DW_AT_ranges and return the bounding box.
10922
baa93fa6
CF
109232003-01-29 Brian Ford <ford@vss.fsi.com>
10924
10925 * win32-nat.c (cygwin_pid): Removed as unused.
10926 (child_attach): Try fall back to Cygwin pid.
10927
c63f977f
JB
109282003-01-29 Jim Blandy <jimb@redhat.com>
10929
10930 * objfiles.h (struct objfile): Doc fix.
10931
d62d1979
AC
109322003-01-29 Andrew Cagney <ac131313@redhat.com>
10933
10934 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10935 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10936 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10937 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10938 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10939 (FRAME_SAVED_PC): Change to a function with predicate.
10940 * gdbarch.h, gdbarch.c: Re-generate.
10941
1ae18a04
AC
109422003-01-28 Andrew Cagney <ac131313@redhat.com>
10943
52287340
AC
10944 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10945
1ae18a04
AC
10946 * complaints.c (complain): Delete function.
10947 * complaints.h (struct deprecated_complaint): Delete definition.
10948 (complain): Delete declaration.
10949
f2c16bd6
KB
109502003-01-28 Kevin Buettner <kevinb@redhat.com>
10951
10952 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10953 dummy frames.
10954
a94dd1fd
AC
109552003-01-27 Andrew Cagney <ac131313@redhat.com>
10956
10957 * sentinel-frame.h, sentinel-frame.c: New files.
10958 * Makefile.in (frame.o): Update dependencies.
10959 (SFILES): Add sentinel-frame.c.
10960 (sentinel_frame_h): Define.
10961 (COMMON_OBS): Add sentinel-frame.o.
10962 (sentinel-frame.o): Specify dependencies.
10963 * frame.c: Include "sentinel-frame.h".
10964 (frame_register_unwind): Rewrite assuming that there is always a a
10965 ->next frame.
10966 (frame_register, generic_unwind_get_saved_register): Ditto.
10967 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10968 (create_sentinel_frame, unwind_to_current_frame): New functions.
10969 (get_current_frame): Rewrite using create_sentinel_frame and
10970 unwind_to_current_frame. When possible, always create a frame.
10971 (create_new_frame): Set next to the sentinel frame.
10972 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10973 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10974 ID cache when necessary.
10975 (frame_saved_regs_id_unwind): Use frame_relative_level.
10976 (deprecated_generic_get_saved_register): Use frame_relative_level,
10977 get_frame_saved_regs, get_frame_pc, get_frame_base and
10978 get_next_frame.
10979 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10980 frame_register.
10981
5378adc4
DJ
109822003-01-27 Daniel Jacobowitz <drow@mvista.com>
10983
10984 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10985
51ee2ddc
DJ
109862003-01-27 Daniel Jacobowitz <drow@mvista.com>
10987
10988 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10989 (maintenance_set_profile_cmd): Use error () instead of warning ().
10990
d9feb4e7
DJ
109912003-01-27 Daniel Jacobowitz <drow@mvista.com>
10992
10993 * configure.in: Check that -pg works if using --enable-profiling.
10994 Check for monstartup and _mcleanup regardless of --enable-profiling.
10995 * maint.c: Check for monstartup and _mcleanup before using them.
10996 * config.in: Regenerated.
10997 * configure: Regenerated.
10998
2d188dd3
NC
109992003-01-24 Nick Clifton <nickc@redhat.com>
11000
11001 * Add sh2e support:
11002
11003 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11004
11005 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11006 (sh2e_show_regs): New.
11007 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11008 * config/sh/tm-sh.h: Added sh2e to comments.
11009
cb3c37b2
JB
110102003-01-23 Jim Blandy <jimb@redhat.com>
11011
11012 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11013 symbols found)" message here; we haven't checked for a separate
11014 debug info file yet, so we don't know yet.
11015 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11016 we've looked everywhere. Also, there's no need to print a special
11017 message when we're loading the separate debug info file: the one
11018 symbol_file_add prints is fine.
11019
5b5d99cf
JB
110202003-01-23 Alexander Larsson <alexl@redhat.com>
11021 Jim Blandy <jimb@redhat.com>
11022
11023 Add support for executables whose debug info has been separated
11024 out into a separate file, leaving only a link behind.
11025 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11026 and separate_debug_objfile_backlink.
11027 (put_objfile_before): New declaration.
11028 * symfile.c: #include "filenames.h".
11029 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11030 debug info in a separate file, read that, too. Save the addrs
11031 argument, so we can use it again to read the separated debug info;
11032 syms_from_objfile modifies the table we pass it.
11033 (reread_symbols): After re-reading an objfile, call
11034 reread_separate_symbols to refresh its separate debug info
11035 objfile, if it has one.
11036 (reread_separate_symbols, find_separate_debug_file,
11037 get_debug_link_info, separate_debug_file_exists): New functions.
11038 (debug_file_directory): New global var.
11039 (_initialize_symfile): Initialize debug_file_directory, and
11040 provide the new `set debug-file-directory' command to let the user
11041 change it.
11042 * objfiles.c (free_objfile): If this objfile has its debug info in
11043 a separate objfile, free that one too. If this is itself a
11044 separate debug info objfile, clear our parent's backlink.
11045 (put_objfile_before): New function.
11046 * utils.c (gnu_debuglink_crc32): New function.
11047 * defs.h (gnu_debuglink_crc32): New declaration.
11048 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11049 * configure.in: Handle --with-separate-debug-dir config option.
11050 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11051 * acconfig.h (DEBUGDIR): New macro.
11052 * configure, aclocal.m4, config.in: Regenerated.
11053
7e8580c1
JB
110542003-01-22 Jim Blandy <jimb@redhat.com>
11055
7904e09f
JB
11056 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11057 like the old symbol_file_add, but taking new arguments: you can
11058 now pass in either a `struct section_addr_info' list to say where
11059 each section is loaded, or a `struct section_offsets' table. Pass
11060 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11061 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11062 with the appropriate quiescent values for the new arguments.
11063
7e8580c1
JB
11064 * symfile.c: #include "gdb_assert.h".
11065 (syms_from_objfile): Add the ability to pass in a section offset
11066 table directly, as an alternative to the section_addr_info table.
11067 Document arguments better.
11068 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11069 * symfile.h (syms_from_objfile): Update declaration.
11070 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11071 syms_from_objfile.
11072 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11073
d28f9cdf
DJ
110742003-01-22 Daniel Jacobowitz <drow@mvista.com>
11075
11076 Original patch by Tom Tromey <tromey@cygnus.com> and
11077 Jason Molenda <jmolenda@apple.com>.
11078 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11079 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11080 * NEWS: Mention profiling.
11081 * configure.in (--enable-gdbtk): Fix typo.
11082 (--enable-profiling): New. Set PROFILE_CFLAGS.
11083 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11084 Fill in function.
11085 (profiling_state): New variable.
11086 (mcleanup_wrapper): New function.
11087 (_initialize_maint): Remove NOTYET, fix call to
11088 add_setshow_boolean_cmd for "maint set profile".
11089 * configure: Regenerated.
11090
df21e465
MH
110912003-01-21 Martin M. Hunt <hunt@redhat.com>
11092
11093 * Makefile.in (install-gdbtk): Install PNG images too.
11094
73c1f219
AC
110952003-01-21 Andrew Cagney <ac131313@redhat.com>
11096
11097 * exec.c (text_start): Delete global variable.
11098 (exec_file_attach): Make text_start local to the function.
11099 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11100 * valops.c (hand_function_call): Delete code that handles
11101 BEFORE_TEXT_END and AFTER_TEXT_END.
11102 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11103 of CALL_DUMMY_LOCATION.
11104 * gdbarch.c: Regenerate.
11105 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11106 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11107 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11108 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11109 (text_end): Delete extern declaration.
11110
eb4f72c5
AC
111112003-01-21 Andrew Cagney <ac131313@redhat.com>
11112
11113 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11114 * blockframe.c (backtrace_below_main): Move to "frame.c".
11115 (frame_chain_valid): Delete check for backtrace_below_main.
11116 (_initialize_blockframe): Delete initialization, move ``set
11117 backtrace-below-main'' command to "frame.c".
11118 (do_flush_frames_sfunc): Delete function.
11119 * frame.c: Include "command.h" and "gdbcmd.h".
11120 (frame_type_from_pc): New function.
11121 (create_new_frame): Use frame_type_from_pc.
11122 (legacy_get_prev_frame): New function.
11123 (get_prev_frame): Rewrite. When an old style frame, call
11124 legacy_get_prev_frame. Otherwize, unwind the PC first.
11125 (_initialize_frame): Add ``set backtrace-below-main'' command.
11126 * Makefile.in (frame.o): Update dependencies.
11127
778ce8cc
AC
111282003-01-19 Andrew Cagney <ac131313@redhat.com>
11129
11130 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11131 DEPRECATED_REGISTERS_INFO.
11132
01c193c8
AC
111332003-01-19 Andrew Cagney <ac131313@redhat.com>
11134
11135 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11136 Maintainers'. Update `Various Maintainers'.
11137
dedc2a2b
AC
111382003-01-19 Andrew Cagney <ac131313@redhat.com>
11139
11140 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11141 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11142 Suppress actual parameters when `-'.
11143 * gdbarch.h, gdbarch.c: Regenerate.
11144
b7261c70
AC
111452003-01-19 Andrew Cagney <ac131313@redhat.com>
11146
11147 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11148 code handling dummy frames.
11149
dbe9fe58
AC
111502003-01-19 Andrew Cagney <ac131313@redhat.com>
11151
11152 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11153 (struct frame_unwind): Add field pop.
11154 * frame.h (frame_pop): Declare.
11155 * frame.c (frame_saved_regs_pop): New function.
11156 (trad_frame_unwinder): Add frame_saved_regs_pop.
11157 (frame_pop): New function.
11158 * dummy-frame.c (dummy_frame_pop): New function.
11159 (discard_innermost_dummy): New function.
11160 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11161 (dummy_frame_unwind): Add dummy_frame_pop.
11162 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11163 * valops.c (hand_function_call): Ditto.
11164 * stack.c (return_command): Ditto.
11165
570b8f7c
AC
111662003-01-18 Andrew Cagney <ac131313@redhat.com>
11167
11168 * cris-tdep.c: Fix function declaration indentation.
11169 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11170 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11171 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11172 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11173 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11174 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11175
111762003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11177
11178 * README (Unpacking and Installation -- quick overview):
11179 Warn against ".../gdb-5.3/gdb/configure".
11180
494cca16
AC
111812003-01-18 Andrew Cagney <ac131313@redhat.com>
11182
11183 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11184 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11185 (struct frame_unwind): Declare opaque.
11186 (dummy_frame_p): Declare function.
11187 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11188 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11189 * dummy-frame.c: Include "frame-unwind.h".
11190 (dummy_frame_p): New function.
11191 (dummy_frame_unwind): New variable.
11192 * frame.c: Include "frame-unwind.h".
11193 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11194 to use the new unwind field.
11195 (set_unwind_by_pc): Delete function.
11196 (create_new_frame, get_prev_frame): Set unwind field using
11197 frame_unwind_find_by_pc.
11198 (trad_frame_unwind, trad_frame_unwinder): New variables.
11199 * frame.h (trad_frame_unwind): Declare variable.
11200 (frame_id_unwind_ftype): Delete declaration.
11201 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11202 (struct frame_unwind): Declare opaque.
11203 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11204 register_unwind with a single unwind pointer.
11205 * frame-unwind.h, frame-unwind.c: New files.
11206 * Makefile.in (SFILES): Add frame-unwind.c.
11207 (frame_unwind_h): Define.
11208 (COMMON_OBS): Add frame-unwind.o.
11209 (frame-unwind.o): Specify dependencies.
11210 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11211
4efb68b1
AC
112122003-01-18 Andrew Cagney <ac131313@redhat.com>
11213
11214 * ada-valprint.c: Eliminate PTR.
11215 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11216 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11217 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11218 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11219 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11220 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11221 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11222
a84d24ee
AC
112232003-01-17 Andrew Cagney <ac131313@redhat.com>
11224
762f08a3
AC
11225 * main.c (captured_main): Don't use PTR.
11226 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11227 * gdbtypes.c (lookup_primitive_typename): Ditto.
11228 (lookup_struct_elt_type): Ditto.
11229 * f-valprint.c (info_common_command): Ditto.
11230 (list_all_visible_commons): Ditto.
11231 * jv-typeprint.c (java_type_print_base): Ditto.
11232
a84d24ee
AC
11233 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11234 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11235 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11236 i386-interix-nat.c and i386-interix-tdep.c. Rename
11237 m68klinux-nat.c and m68klinux-tdep.c. Rename
11238 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11239 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11240 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11241 * main.c (captured_main): Use xfree, not free.
11242
c170fb60
AC
112432003-01-16 Andrew Cagney <ac131313@redhat.com>
11244
11245 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11246 ID back using a parameter.
11247 * frame.c (frame_id_unwind): Update call.
11248 (frame_saved_regs_id_unwind): Update.
11249 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11250 * dummy-frame.h (struct frame_id): Add opaque declaration.
11251 (dummy_frame_id_unwind): Update declaration.
11252
867f3898
AC
112532003-01-15 Andrew Cagney <ac131313@redhat.com>
11254
11255 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11256
40622be8 112572003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11258
40622be8 11259 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11260
ae66c1fc
EZ
112612003-01-14 Elena Zannoni <ezannoni@redhat.com>
11262
997b089a 11263 Fix PR gdb/898
ae66c1fc
EZ
11264 * breakpoint.c (until_break_command): Add new argument. Use it to
11265 decide whether to stop only at the current frame or not.
11266 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11267 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11268 call.
11269 (advance_command): New function.
11270 (_initialize_infcmd): Update help string for 'until' command.
11271 Add new 'advance' command.
11272
a04257e6
DC
112732003-01-14 David Carlton <carlton@math.stanford.edu>
11274
11275 * linespec.c (decode_line_1): Normalize comments.
11276 (set_flags): Ditto.
11277 (locate_first_half): Ditto.
11278 (decode_compound): Ditto.
11279 (symtab_from_filename): Ditto.
11280 (decode_all_digits): Ditto.
11281 (decode_dollar): Ditto.
11282 (find_methods): Ditto.
11283 (find_toplevel_char): Ditto.
11284
1bac305b
AC
112852003-01-13 Andrew Cagney <ac131313@redhat.com>
11286
11287 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11288 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11289 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11290 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11291 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11292 * language.c, language.h, m32r-tdep.c: Update copyright.
11293 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11294 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11295 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11296 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11297 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11298 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11299
25caa7a8
EZ
113002003-01-13 Elena Zannoni <ezannoni@redhat.com>
11301
11302 * stabsread.h (process_later, resolve_cfront_continuation):
11303 Obsolete.
11304 Update copyright years.
11305 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11306 Update copyright year.
11307 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11308 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11309 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11310 Update copyright year.
11311 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11312 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11313 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11314 (parse_partial_symbols): Obsolete cfront support.
11315 * stabsread.c
11316 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11317 macros.
11318 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11319 read_cfront_baseclasses, read_cfront_member_functions,
11320 resolve_cfront_continuation,read_cfront_static_fields,
11321 copy_cfront_struct_fields): Obsolete functions.
11322 (define_symbol, read_one_struct_field): Obsolete cfront support.
11323 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11324 Update Copyright year.
11325
7789c6f5
EZ
113262003-01-13 Elena Zannoni <ezannoni@redhat.com>
11327
11328 * stack.c (print_frame_info, print_stack_frame_base_stub,
11329 print_stack_frame_base, show_and_print_stack_frame_stub,
11330 show_and_print_stack_frame, print_only_stack_frame_stub,
11331 print_only_stack_frame): Delete functions.
11332 (print_stack_frame_stub): Call print_frame_info instead of
11333 print_frame_info_base.
11334 (print_frame_info_base): Rename to print_frame_info.
11335 (backtrace_command_1): Call print_frame_info, instead of
11336 print_frame_info_base.
11337 (current_frame_command): Call print_stack_frame, instead of
11338 print_only_stack_frame.
11339 (frame_command): Call print_stack_frame, instead of
11340 show_and_print_stack_frame.
11341 (up_command): Ditto.
11342 (down_command): Ditto.
11343 * frame.h (print_only_stack_frame): Delete prototype.
11344 * infrun.c (normal_stop): Call print_stack_frame, instead of
11345 show_and_print_stack_frame.
11346 * thread.c (info_threads_command): Call print_stack_frame, instead
11347 of print_only_stack_frame.
11348
3f5a3016
AC
113492003-01-13 Andrew Cagney <ac131313@redhat.com>
11350
d99ba314
AC
11351 * README (Graphical interface to GDB): Update URL. Point at
11352 gdb/links/.
11353
3f5a3016
AC
11354 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11355 version match.
11356
083ae935
DJ
113572003-01-13 Daniel Jacobowitz <drow@mvista.com>
11358
11359 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11360 lines.
11361
5365276c
DJ
113622003-01-13 Daniel Jacobowitz <drow@mvista.com>
11363
11364 * thread-db.c (attach_thread): Prototype.
11365 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11366 thread information (ti), and valid flags (th_valid, ti_valid).
11367 (attach_thread): Move target_pid_to_str call to after the thread
11368 is added to GDB's list. Initialize the cache.
11369 (thread_get_info_callback, thread_db_map_id2thr)
11370 (thread_db_get_info): New functions.
11371 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11372 (thread_db_store_registers, thread_db_thread_alive)
11373 (thread_db_get_thread_local_address): Use them.
11374 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11375 of calling error() for threads in unknown state.
11376
11377 (clear_lwpid_callback): New function.
11378 (thread_db_resume): Use it to clear the cache.
11379
9fc30b6b
DJ
113802003-01-13 Daniel Jacobowitz <drow@mvista.com>
11381
11382 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11383 (resume_callback): Remove dead code.
11384
8f871025
AC
113852003-01-13 Andrew Cagney <ac131313@redhat.com>
11386
11387 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11388 predicate.
11389 * gdbarch.h, gdbarch.c: Regenerate.
11390 * stack.c (frame_info): Only initialize the saved registers when
11391 FRAME_INIT_SAVED_REGS_P.
11392 * frame.c (frame_saved_regs_register_unwind): Assert
11393 FRAME_INIT_SAVED_REGS_P.
11394 (deprecated_generic_get_saved_register): Ditto.
11395
3f565f1e
DJ
113962003-01-13 Daniel Jacobowitz <drow@mvista.com>
11397
11398 * source.c (openp): Squelch warning about "filename".
11399
072b1022
DJ
114002003-01-13 Daniel Jacobowitz <drow@mvista.com>
11401
11402 * source.c (openp): If the file does not exist don't necessarily
11403 search the path.
11404
973ccf8b
DJ
114052003-01-13 Daniel Jacobowitz <drow@mvista.com>
11406
11407 Fix PR gdb/872.
11408 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11409 (integer_types_same_name_p): New function.
11410 (rank_one_type): Use it.
11411 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11412
030292b7
DJ
114132003-01-13 Daniel Jacobowitz <drow@mvista.com>
11414
11415 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11416 variables.
11417 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11418 * configure.in: Add --with-sysroot.
11419 * configure: Regenerated.
11420 * main.c (gdb_sysroot): New variable.
11421 (captured_main): Initialize gdb_sysroot.
11422 * defs.h (gdb_sysroot): New extern declaration.
11423 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11424
afb5d334
MC
114252003-01-12 Michael Chastain <mec@shout.net>
11426
11427 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11428
751ceeb4
MC
114292003-01-12 Michael Chastain <mec@shout.net>
11430
11431 * top.c (print_gdb_version): Bump copyright year to 2003.
11432
94cd26f8
DC
114332003-01-12 David Carlton <carlton@bactrian.org>
11434
11435 * linespec.c (symtab_from_filename): Rename variable 's' to
11436 'file_symtab'.
11437
1ce79225
AC
114382003-01-12 Andrew Cagney <ac131313@redhat.com>
11439
11440 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11441 dummy frame.
11442 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11443
fa1fd571
AC
114442003-01-12 Andrew Cagney <ac131313@redhat.com>
11445
11446 * d10v-tdep.c: Include "gdb_assert.h".
11447 (d10v_store_return_value): Rewrite to match current interface.
11448 (d10v_extract_struct_value_address): Ditto.
11449 (d10v_extract_return_value): Ditto.
11450 (d10v_gdbarch_init): Set store_restore_value,
11451 extract_struct_value_address and extract_return_value.
11452
68b8d23e
JB
114532003-01-12 J. Brobecker <brobecker@gnat.com>
11454
11455 * hpread.c (set_namestring): New procedure replacing the
11456 SET_NAMESTRING macro.
11457 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11458 by calls to set_namestring.
11459
114602003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11461
11462 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11463 a compilation warning.
11464 (hpread_process_one_debug_symbol): Likewise.
11465
88d262ca
DC
114662003-01-10 David Carlton <carlton@math.stanford.edu>
11467
11468 * linespec.c (decode_line_1): Rename variable 's' to
11469 'file_symtab'.
11470 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11471 (decode_dollar): Ditto.
11472 (decode_variable): Ditto.
11473 (symbol_found): Ditto.
11474
86669319
MC
114752003-01-09 Michael Chastain <mec@shout.net>
11476
11477 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11478
616a9dc4
CV
114792003-01-07 Corinna Vinschen <vinschen@redhat.com>
11480
11481 * win32-nat.c (set_process_privilege): New function.
11482 (child_attach): Call set_process_privilege() to enable the
11483 SE_DEBUG_NAME user privilege if available in process token.
11484
3269bcfa
JB
114852003-01-10 J. Brobecker <brobecker@gnat.com>
11486
11487 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11488 compilation error in the previous revision.
11489
2b0ee454
DC
114902003-01-09 David Carlton <carlton@math.stanford.edu>
11491
11492 * linespec.c: Update copyright.
11493
b3ba1b44
DJ
114942003-01-09 Daniel Jacobowitz <drow@mvista.com>
11495
11496 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11497 than inferior_ptid.
11498 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11499
4ef3f3be
AC
115002003-01-09 Andrew Cagney <ac131313@redhat.com>
11501
479ab5a0
AC
11502 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11503 Update comments.
11504 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11505 (frame_saved_regs_zalloc): Update.
11506 (frame_saved_regs_register_unwind): Update.
11507 (create_new_frame): Update.
11508 (get_prev_frame): Update.
11509 (frame_extra_info_zalloc): Update.
11510 (deprecated_get_frame_saved_regs): Update.
11511 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11512 * cris-tdep.c: Update comment.
11513
bde58177
AC
11514 * somsolib.h: Fix function indentation.
11515 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11516 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11517 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11518 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11519 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11520
4ef3f3be
AC
11521 * infrun.c (follow_fork): Use ISO C definition.
11522 * expprint.c (print_subexp): Use xfree instead of free.
11523 * charset.c: Include "gdb_string.h" instead of <string.h>.
11524 (register_iconv_charsets): Use ISO C definition.
11525 (host_charset, target_charset): Ditto.
11526 * Makefile.in (charset.o): Update dependencies.
11527 (mi-cmd-env.o): Update dependencies.
11528
1c615f7a
AC
115292003-01-08 Andrew Cagney <cagney@redhat.com>
11530
11531 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11532 get_frame_base.
11533
c9a1dc08
AC
115342003-01-08 Andrew Cagney <ac131313@redhat.com>
11535
11536 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11537 build directories. Save edited gdb output in Mbuild.log. If a
11538 build fails, remove any final GDB executable.
11539
dbad9d94
AC
115402003-01-08 Andrew Cagney <ac131313@redhat.com>
11541
11542 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11543 replacing hex constants with function names and stripping leading
11544 file name directory prefixes.
11545
8d357cca
AC
115462003-01-08 Andrew Cagney <cagney@redhat.com>
11547
11548 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11549 get_frame_base.
11550
bca02a8a
DC
115512003-01-08 David Carlton <carlton@math.stanford.edu>
11552
11553 * linespec.c (decode_line_1): Move code into decode_variable.
11554 (decode_variable): New function.
11555
7f8ab3a0
AC
115562003-01-08 Andrew Cagney <ac131313@redhat.com>
11557
11558 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11559
7b5849cc
AC
115602003-01-08 Andrew Cagney <cagney@redhat.com>
11561
11562 * cris-tdep.c (cris_frame_init_saved_regs): Use
11563 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11564 saved_regs buffer.
11565 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11566 (sh64_nofp_frame_init_saved_regs): Ditto.
11567 (sh_fp_frame_init_saved_regs): Ditto.
11568 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11569 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11570 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11571 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11572
72a5efb3
DJ
115732003-01-08 Daniel Jacobowitz <drow@mvista.com>
11574
11575 * minsyms.c (lookup_minimal_symbol): Update comment.
11576 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11577 (lookup_minimal_symbol_solib_trampoline): Likewise.
11578
11c02a10
AC
115792003-01-08 Andrew Cagney <cagney@redhat.com>
11580
aab3ea25
AC
11581 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11582 frame_relative_level.
11583
da50a4b7
AC
11584 * alpha-tdep.c: Use get_frame_extra_info.
11585 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11586 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11587 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11588 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11589
11c02a10
AC
11590 * alpha-tdep.c: Use get_next_frame.
11591 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11592 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11593 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11594 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11595 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11596 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11597 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11598
1e2330ba
AC
115992003-01-07 Andrew Cagney <cagney@redhat.com>
11600
11601 * alpha-tdep.c: Use get_frame_base.
11602 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11603 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11604 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11605 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11606 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11607 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11608 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11609 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11610
2d75187b
AC
116112003-01-07 Andrew Cagney <cagney@redhat.com>
11612
11613 * frame.c (deprecated_get_frame_context): New function.
11614 (deprecated_set_frame_context): New function.
11615 * frame.h (deprecated_get_frame_context): Declare.
11616 (deprecated_set_frame_context): Declare.
11617 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11618 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11619
483d36b2
AC
116202003-01-07 Andrew Cagney <cagney@redhat.com>
11621
11622 * frame.c (deprecated_set_frame_next_hack): New function.
11623 (deprecated_set_frame_prev_hack): New function.
11624 * frame.h (deprecated_set_frame_next_hack): Declare.
11625 (deprecated_set_frame_prev_hack): Declare.
11626 * mcore-tdep.c (analyze_dummy_frame): Use
11627 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11628 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11629
14e91ac5
DC
116302003-01-07 David Carlton <carlton@math.stanford.edu>
11631
11632 * linespec.c (decode_line_1): Move code into decode_dollar.
11633 (decode_dollar): New function.
11634
b0c6b05c
AC
116352003-01-07 Andrew Cagney <cagney@redhat.com>
11636
11637 * arm-tdep.c (arm_init_extra_frame_info): Use
11638 deprecated_update_frame_base_hack.
11639 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11640 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11641 (fix_frame_pointer): Ditto.
11642 (mn10300_analyze_prologue): Ditto.
11643
a00a19e9
AC
116442003-01-07 Andrew Cagney <cagney@redhat.com>
11645
11646 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11647 extra_info using frame_extra_info_zalloc.
11648 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11649 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11650 (sh64_init_extra_frame_info): Ditto.
11651 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11652 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11653 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11654 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11655 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11656 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11657 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11658 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11659 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11660 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11661 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11662 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11663
11664 * mn10300-tdep.c (analyze_dummy_frame): Use
11665 deprecated_set_frame_extra_info_hack.
11666 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11667
1fb4c65b
JB
116682003-01-07 J. Brobecker <brobecker@gnat.com>
11669
11670 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11671 class is not scText. These do not define "real" procedures.
11672 (parse_partial_symbols): Likewise.
11673
9fe7d6bf
MS
116742003-01-06 Michael Snyder <msnyder@redhat.com>
11675
11676 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11677
f6c609c4
AC
116782003-01-06 Andrew Cagney <ac131313@redhat.com>
11679
11680 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11681 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11682 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11683 deprecated_frame_xmalloc_with_cleanup.
11684 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11685 deprecated_frame_xmalloc.
11686 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11687 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11688
d995ff4b
AC
116892003-01-06 Andrew Cagney <cagney@redhat.com>
11690
84dc46cb
AC
11691 * x86-64-linux-tdep.c: Include "osabi.h".
11692 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11693
d995ff4b
AC
11694 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11695
66140c26
AC
116962003-01-06 Andrew Cagney <cagney@redhat.com>
11697
11698 * MAINTAINERS (Target Instruction Set Architectures): Update
11699 arm-elf. Can be built with -Werror, has been multiarched.
11700
11701 * value.h (unpack_long): Make buffer parameter constant.
11702 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11703 * scm-lang.h (scm_parse): Ditto.
11704 * defs.h (extract_typed_address, extract_address): Ditto.
11705 (extract_long_unsigned_integer): Ditto.
11706 * inferior.h (unsigned_pointer_to_address): Ditto.
11707 (signed_pointer_to_address): Ditto.
11708 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11709 * gdbarch.h, gdbarch.c: Regenerate.
11710 * findvar.c (extract_long_unsigned_integer): Update.
11711 (extract_address): Update.
11712 (extract_typed_address): Update.
11713 (unsigned_pointer_to_address): Update.
11714 * values.c (unpack_long): Update.
11715 (unpack_double): Update.
11716 (unpack_pointer): Update.
11717 (unpack_field_as_long): Update.
11718 * d10v-tdep.c (d10v_pointer_to_address): Update.
11719 * avr-tdep.c (avr_pointer_to_address): Update.
11720 * scm-lang.c (scm_unpack): Update.
11721 * findvar.c (signed_pointer_to_address): Update.
11722
b089b3da
ML
117232003-01-06 Michal Ludvig <mludvig@suse.cz>
11724
8ffd9b1b 11725 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11726 since it is in i386-tdep.c.
11727
aff87235
JB
117282003-01-06 J. Brobecker <brobecker@gnat.com>
11729
11730 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11731 failure introduced in the previous change.
11732
34f5e845
MC
117332003-01-05 Michael Chastain <mec@shout.net>
11734
11735 * README: Remove references to deleted remote-*.c files:
11736 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11737 remote-nrom.c, remote-os9k.c, remote-udi.c.
11738
28bcfd30
MK
117392003-01-05 Mark Kettenis <kettenis@gnu.org>
11740
11741 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11742 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11743 i386_get_longjmp_target.
11744
15a5b3ee
AC
117452003-01-05 Andrew Cagney <ac131313@redhat.com>
11746
11747 * arm-tdep.c (prologue_cache): Change to a pointer.
11748 (_initialize_arm_tdep): Allocate prologue_cache.
11749 (check_prologue_cache): Update.
11750 (save_prologue_cache): Update.
11751 (arm_gdbarch_init): Update.
11752
c263362b
DJ
117532003-01-04 Daniel Jacobowitz <drow@mvista.com>
11754
11755 * stabsread.c (update_method_name_from_physname): Call complaint()
11756 instead of error.
11757
51603483
DJ
117582003-01-04 Daniel Jacobowitz <drow@mvista.com>
11759
11760 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11761 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11762 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11763
11764 * blockframe.c: Include "gdbcmd.h" and "command.h".
11765 (backtrace_below_main): New variable.
11766 (file_frame_chain_valid, func_frame_chain_valid)
11767 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11768 (generic_func_frame_chain_valid): Remove functions.
11769 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11770 (_initialize_blockframe): New function.
11771 * Makefile.in (blockframe.o): Update dependencies.
11772 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11773 comment. Call frame_chain_valid ().
11774 * frame.h: Remove old prototypes. Add prototype for
11775 frame_chain_valid and update comments to match.
11776 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11777 Remove old comment.
11778 * gdbarch.h: Regenerated.
11779 * gdbarch.c: Regenerated.
11780
11781 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11782 set_gdbarch_frame_chain_valid.
11783 * avr-tdep.c (avr_gdbarch_init): Likewise.
11784 * cris-tdep.c (cris_gdbarch_init): Likewise.
11785 * frv-tdep.c (frv_gdbarch_init): Likewise.
11786 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11787 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11788 (i386_nw_init_abi): Likewise.
11789 (i386_gdbarch_init): Likewise.
11790 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11792 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11793 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11794 * mips-tdep.c (mips_gdbarch_init): Likewise.
11795 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11796 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11797 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11798 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11799 * s390-tdep.c (s390_gdbarch_init): Likewise.
11800 * sh-tdep.c (sh_gdbarch_init): Likewise.
11801 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11802 * v850-tdep.c (v850_gdbarch_init): Likewise.
11803 * vax-tdep.c (vax_gdbarch_init): Likewise.
11804 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11805
11806 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11807 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11808 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11809 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11810 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11811 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11812 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11813 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11814
b00a8037
DJ
118152002-01-04 Daniel Jacobowitz <drow@mvista.com>
11816
11817 * Makefile.in (acconfig_h): Remove incorrect macro.
11818 (config_h): Define.
11819 (osabi.o): Update dependencies.
11820 * configure.tgt: Set gdb_osabi based on target triplet.
11821 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11822 * configure: Regenerated.
11823 * config.in: Regenerated.
11824 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11825 (GDB_OSABI_DEFAULT): Define if not already defined.
11826 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11827 (set_osabi_string): New variables.
11828 (gdbarch_register_osabi): Add new OS ABI to
11829 gdb_osabi_available_names.
11830 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11831 (set_osabi, show_osabi): New functions.
11832 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11833
4be87837
DJ
118342003-01-04 Daniel Jacobowitz <drow@mvista.com>
11835
11836 * arch-utils.c (gdbarch_info_init): Set osabi to
11837 GDB_OSABI_UNINITIALIZED.
11838 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11839 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11840 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11841 * gdbarch.c: Regenerated.
11842 * gdbarch.h: Regenerated.
11843 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11844 there's no BFD.
11845 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11846 * osabi.h (enum gdb_osabi): Move to defs.h.
11847 (gdbarch_init_osabi): Update prototype.
11848 * defs.h (enum gdb_osabi): Moved here.
11849 * Makefile.in: Update dependencies.
11850
11851 * alpha-tdep.h: Don't include "osabi.h".
11852 (struct gdbarch_tdep): Remove osabi member.
11853 * alpha-tdep.c: Include "osabi.h".
11854 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11855 iterate over arches. Update call to gdbarch_init_osabi.
11856 (alpha_dump_tdep): Don't dump osabi.
11857 * alpha-linux-tdep.c: Include "osabi.h".
11858 * alpha-osf1-tdep.c: Include "osabi.h".
11859 * alphafbsd-tdep.c: Include "osabi.h".
11860 * alphanbsd-tdep.c: Include "osabi.h".
11861
11862 * arm-tdep.h: Don't include "osabi.h".
11863 (struct gdbarch_tdep): Remove osabi member.
11864 * arm-tdep.c: Include "osabi.h".
11865 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11866 iterate over arches. Update call to gdbarch_init_osabi.
11867 (arm_dump_tdep): Don't dump osabi.
11868 * arm-linux-tdep.c: Include "osabi.h".
11869 * armnbsd-tdep.c: Include "osabi.h".
11870
11871 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11872 Update call to gdbarch_init_osabi.
11873
11874 * i386-tdep.h: Don't include "osabi.h".
11875 (struct gdbarch_tdep): Remove osabi member.
11876 * i386-tdep.c: Include "osabi.h".
11877 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11878 iterate over arches. Update call to gdbarch_init_osabi.
11879 (i386_dump_tdep): Don't dump osabi.
11880 * i386-linux-tdep.c: Include "osabi.h".
11881 * i386-sol2-tdep.c: Include "osabi.h".
11882 * i386bsd-tdep.c: Include "osabi.h".
11883 * i386gnu-tdep.c: Include "osabi.h".
11884 * i386ly-tdep.c: Include "osabi.h".
11885 * i386nbsd-tdep.c: Include "osabi.h".
11886 * i386obsd-tdep.c: Include "osabi.h".
11887
11888 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11889 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11890 check osabi when iterating over arches. Update call to
11891 gdbarch_init_osabi.
11892 (mips_dump_tdep): Don't dump osabi.
11893
11894 * ns32k-tdep.h: Don't include "osabi.h".
11895 (struct gdbarch_tdep): Remove.
11896 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11897 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11898 allocate tdep. Update call to gdbarch_init_osabi.
11899 (ns32k_dump_tdep): Remove.
11900 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11901 * ns32knbsd-tdep.c: Include "osabi.h".
11902
11903 * ppc-tdep.h: Don't include "osabi.h".
11904 (struct gdbarch_tdep): Remove osabi member.
11905 * rs6000-tdep.c: Include "osabi.h".
11906 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11907 osabi when iterating over arches. Update call to
11908 gdbarch_init_osabi.
11909 (rs6000_dump_tdep): Don't dump osabi.
11910 * ppc-linux-tdep.c: Include "osabi.h".
11911 * ppcnbsd-tdep.c: Include "osabi.h".
11912
11913 * sh-tdep.h: Don't include "osabi.h".
11914 (struct gdbarch_tdep): Remove osabi member.
11915 * sh-tdep.c: Include "osabi.h".
11916 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11917 iterate over arches. Update call to gdbarch_init_osabi.
11918 (sh_dump_tdep): Don't dump osabi.
11919 * shnbsd-tdep.c: Include "osabi.h".
11920
11921 * sparc-tdep.c: Include "osabi.h".
11922 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11923 iterate over arches. Update call to gdbarch_init_osabi.
11924 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11925 tdep structure.
11926
11927 * vax-tdep.h: Don't include "osabi.h".
11928 (struct gdbarch_tdep): Remove.
11929 * vax-tdep.c: Include "osabi.h".
11930 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11931 iterate over arches. Don't allocate tdep. Update call
11932 to gdbarch_init_osabi.
11933 (vax_dump_tdep): Remove.
11934 (_initialize_vax_tdep): Update call to gdbarch_register.
11935
a881cf8e
DJ
119362003-01-04 Daniel Jacobowitz <drow@mvista.com>
11937
11938 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11939 entirely.
11940 (breakpoint_re_set_one): Don't fetch the value for a disabled
11941 watchpoint.
11942
1e698235
DJ
119432003-01-04 Daniel Jacobowitz <drow@mvista.com>
11944
11945 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11946 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11947 (COERCE_FLOAT_TO_DOUBLE): Remove.
11948 * gdbarch.c: Regenerate.
11949 * gdbarch.h: Regenerate.
11950 * Makefile.in: Remove value_h from gdbarch_h.
11951 * valops.c (coerce_float_to_double): New variable.
11952 (default_coerce_float_to_double): Remove.
11953 (standard_coerce_float_to_double): Remove.
11954 (value_arg_coerce): Use coerce_float_to_double.
11955 (_initialize_valops): Add "set coerce-float-to-double".
11956 * value.h (default_coerce_float_to_double): Remove prototype.
11957 (standard_coerce_float_to_double): Remove prototype.
11958
11959 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11960 prototyped.
11961 * mdebugread.c (parse_symbol): Likewise.
11962 * stabsread.c (define_symbol): Mark all functions as prototyped.
11963
11964 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11965 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11966 set_gdbarch_coerce_float_to_double.
11967 * arm-tdep.c (arm_gdbarch_init): Likewise.
11968 * frv-tdep.c (frv_gdbarch_init): Likewise.
11969 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11970 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11971 * mips-tdep.c (mips_gdbarch_init): Likewise.
11972 (mips_coerce_float_to_double): Remove.
11973 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11974 (rs6000_coerce_float_to_double): Remove.
11975 * s390-tdep.c (s390_gdbarch_init): Likewise.
11976 * sh-tdep.c (sh_gdbarch_init): Likewise.
11977 (sh_coerce_float_to_double): Remove.
11978 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11979 (sparc_coerce_float_to_double): Remove.
11980 * v850-tdep.c (v850_gdbarch_init): Likewise.
11981 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11982 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11983 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11984 (hppa_coerce_float_to_double): Remove prototype.
11985 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11986
f436a26a
DJ
119872003-01-04 Daniel Jacobowitz <drow@mvista.com>
11988
11989 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11990
248f8055
DJ
119912003-01-04 Daniel Jacobowitz <drow@mvista.com>
11992
11993 Suggested by Stewart Brown <sb24@avaya.com>:
11994 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11995 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11996 (c_type_print_varspec_suffix): Likewise.
11997
72cfdc76
MK
119982003-01-04 Mark Kettenis <kettenis@gnu.org>
11999
bfd260bb
MK
12000 * configure.in: Don't set and AC_SUBST SUBDIRS.
12001 * configure: Regenerated.
12002
72cfdc76
MK
12003 * configure.in: Remove code dealing with shared libraries.
12004 * Makefile.in: Remove HLDFLAGS and HLDENV.
12005 * configure: Regenerated.
12006
c8b8a898
AC
120072003-01-04 Andrew Cagney <ac131313@redhat.com>
12008
12009 * frame.c (deprecated_frame_xmalloc): New function.
12010 (deprecated_set_frame_saved_regs_hack): New function.
12011 (deprecated_set_frame_extra_info_hack): New function.
12012 * frame.h (deprecated_frame_xmalloc): Declare.
12013 (deprecated_set_frame_saved_regs_hack): Declare.
12014 (deprecated_set_frame_extra_info_hack): Declare.
12015
14abd0fb
MK
120162003-01-04 Mark Kettenis <kettenis@gnu.org>
12017
8ee53726
MK
12018 * configure.in: Move code that provides the --enable-gdbtk option
12019 right after the code that handles the --enable-tui option, and
12020 polish it somewhat.
12021 * configure: Regenerated.
12022
14abd0fb
MK
12023 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12024 AC_CHECK_FUNCS and remove the old check for pread64.
12025 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12026 * acconfig.h (_GNU_SOURCE): Add.
12027 (HAVE_PREAD64): Remove.
12028 * configure, aclocal.m4, config.in: Regenerated.
12029
b2fb4676
AC
120302003-01-03 Andrew Cagney <ac131313@redhat.com>
12031
12032 * alpha-tdep.c: Use get_frame_saved_regs.
12033 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12034 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12035 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12036 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12037 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12038
8dcde887
MK
120392003-01-03 Mark Kettenis <kettenis@gnu.org>
12040
12041 * configure.in: Remove all use of the SUBDIRS variable; add
12042 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12043 code providing the --enable-multi-ice option, and move it right in
12044 front of the code that checks whether gdbserver is supported.
12045 Polish that too.
12046 * configure: Regenerated.
12047 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12048 @SUBDIRS@.
12049
8ccd593b
AC
120502003-01-03 Andrew Cagney <cagney@redhat.com>
12051
12052 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12053 * avr-tdep.c, cris-tdep.c: Ditto.
12054 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12055 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12056
91151a06
MK
120572003-01-03 Mark Kettenis <kettenis@gnu.org>
12058
12059 * configure.in: Remove --enable-netrom option.
12060 * configure: Regenerated.
12061
8fe84d01
MK
120622003-01-03 Mark Kettenis <kettenis@gnu.org>
12063
12064 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12065 declaration for `struct re_pattern_buffer' instead.
12066 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12067
f0394be6
JB
120682003-01-03 J. Brobecker <brobecker@gnat.com>
12069
12070 * mdebugread.c (parse_symbol): Count until the stEnd matching
12071 the structure name.
12072
27e9bf90
MK
120732003-01-02 Mark Kettenis <kettenis@gnu.org>
12074
93d331ba
MK
12075 * configure.in: Remove --with-cpu option.
12076 subscripts. Remove evil changequotes here.
12077 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12078 * config.in, configure: Regenerated.
8ffd9b1b 12079
27e9bf90
MK
12080 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12081 * configure.in: Cleanup section that sources GDB and BFD configure
12082 subscripts. Remove evil changequotes here.
12083 * config.in, configure: Regenerated.
12084
50abf9e5
AC
120852003-01-02 Andrew Cagney <ac131313@redhat.com>
12086
12087 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12088 frame accessor methods.
12089 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12090 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12091 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12092 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12093 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12094 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12095 * z8k-tdep.c: Ditto.
8ffd9b1b 12096
287c1a40
MK
120972003-01-02 Mark Kettenis <kettenis@gnu.org>
12098
f5dbc56d
MK
12099 * configure.in: Remove UI_OUT configuration code.
12100 * ada-lang.c: Update assuming UI_OUT is always true.
12101 * Makefile.in (UIOUT_CFLAGS): Remove.
12102 * configure: Regenerated.
12103 * TODO: Remove blurb about elimination of -DUI_OUT.
12104
627af7ea
MK
12105 * configure.in: Move code that provides the --enable-gdbcli,
12106 --enable-gdbmi options right before the code that handles the
12107 --enable-tui option. Polish a bit.
12108 * configure: Regenerated.
12109
06825bd1
MK
12110 * configure.in: Rewrite check for GNU regex and the
12111 --without-included regex option, and move it into the "Checks for
12112 library functions" section. This makes us use the system regex
12113 again by default on systems with version 2 of the GNU C library.
12114 This was apparently broken.
12115 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12116 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12117 * config.in, configure: Regenerated.
12118
287c1a40
MK
12119 * configure.in: Move code that provides the --enable-tui option
12120 before the "Checks for libraries" section. Polish the code
12121 somewhat and set need_curses to yes if we build the TUI. Rewrite
12122 code that looks for a library providing termcap functionality to
12123 match more closely what's done in the Readline library, and move
12124 it into to the "Checks for libraries" section.
12125 * configure: Regenerated.
12126 * Makefile.in (TERMCAP): Remove variable.
12127 * config/i386/go32.mh (TERMCAP): Remove variable.
12128
684e56bf
AC
121292003-01-02 Andrew Cagney <ac131313@redhat.com>
12130
12131 * MAINTAINERS: Mention gdb_mbuild.sh.
12132 * gdb_mbuild.sh: Rewrite.
12133
e1ea1d75
MK
121342003-01-02 Mark Kettenis <kettenis@gnu.org>
12135
12136 * configure.in: Fix typo in last change.
12137 * config.in, configure: Regenerated.
12138
1b831c93
AC
121392003-01-02 Andrew Cagney <ac131313@redhat.com>
12140
12141 * valarith.c (value_binop): Delete obsolete code and comments.
12142 * configure.host: Ditto.
12143 * buildsym.h (make_blockvector): Ditto.
12144 * buildsym.c (make_blockvector): Ditto.
12145 * defs.h (enum language): Ditto.
12146 (chill_demangle): Ditto.
12147 * elfread.c (elf_symtab_read): Ditto.
12148 * dwarfread.c (CHILL_PRODUCER): Ditto.
12149 (set_cu_language): Ditto.
12150 (handle_producer): Ditto.
12151 * expprint.c (print_subexp): Ditto.
12152 * gdbtypes.c (chill_varying_type): Ditto.
12153 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12154 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12155 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12156 (chill_varying_type): Ditto.
12157 * language.h (_LANG_chill): Ditto.
12158 * language.c (binop_result_type, integral_type): Ditto.
12159 (character_type, string_type, structured_type): Ditto.
12160 (lang_bool_type, binop_type_check): Ditto.
12161 * stabsread.h (os9k_stabs): Ditto.
12162 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12163 (define_symbol, read_type, read_struct_fields): Ditto.
12164 (read_array_type, read_enum_type, read_huge_number): Ditto.
12165 (read_range_type, start_stabs): Ditto.
12166 * symfile.c (init_filename_language_table): Ditto.
12167 (add_psymbol_with_dem_name_to_list): Ditto.
12168 * symtab.c (symbol_init_language_specific): Ditto.
12169 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12170 * symtab.h (struct general_symbol_info): Ditto.
12171 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12172 * typeprint.c (typedef_print): Ditto.
12173 * utils.c (fprintf_symbol_filtered): Ditto.
12174 * valops.c (value_cast, search_struct_field, value_slice): Delete
12175 obsolete code.
12176 (varying_to_slice): Delete function.
12177 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12178 (varying_to_slice): Delete declaration.
12179 * MAINTAINERS: Update.
12180
8bb2c122
MK
121812003-01-02 Mark Kettenis <kettenis@gnu.org>
12182
97bf5e38
MK
12183 * configure.in: Reorganize "Checks for library functions section"
12184 a bit. Remove check for `btowc' and `isascii' functions.
12185 * configure: Regenerated.
12186
5ee754fc
MK
12187 * acconfig.h (_MSE_INT_H): Remove.
12188 * configure.in: Create "Checks for header files" section, and move
12189 appropriate tests there. Don't check for objlist.h, wchar.h,
12190 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12191 misdetection fix. Also add "Checks for types", "Checks for
12192 compiler characteristics" and "Checks for library functions"
12193 sections.
12194 * config.in, configure: Regenerated.
12195
8bb2c122
MK
12196 * configure.in: Create "Checks for programs" section, and move
12197 appropriate tests there.
12198
9a156167
MK
121992003-01-01 Mark Kettenis <kettenis@gnu.org>
12200
12201 * configure.in: Create "Checks for libraries" section, and move
12202 appropriate tests there. Cleanup check for wctype in libw. Use
12203 AC_SEARCH_LIBS to see whether we need libsocket.
12204 * configure: Regenerated.
12205
a80e2bcb 12206For older changes see ChangeLog-2002
c906108c
SS
12207\f
12208Local Variables:
12209mode: change-log
12210left-margin: 8
12211fill-column: 74
12212version-control: never
12213End:
This page took 1.091915 seconds and 4 git commands to generate.