Fix targ_ops declaration problem.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b222a67f
AG
12003-09-22 Anthony Green <green@redhat.com>
2
3 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
4 declaration.
5
d5b5ac79
AC
62003-09-20 Andrew Cagney <cagney@redhat.com>
7
deafb061
AC
8 * breakpoint.c: Eliminate ARGSUSED.
9 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
10 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
11 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
12 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
13 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
14 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
15 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
16 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
17 * wince.c, remote-vx.c: Ditto.
18
d5b5ac79
AC
19 * cli/cli-script.c: Remove "register" attributes.
20 * config/pa/tm-hppa.h: Ditto.
21 * cli/cli-decode.c: Ditto.
22 * cli/cli-cmds.c: Ditto.
23
c6316faa
AC
242003-09-19 Andrew Cagney <cagney@redhat.com>
25
26 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
27 DEPRECATED_NPC_REGNUM.
28 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
29
f4f99b11
CF
302003-09-19 Christopher Faylor <cgf@redhat.com>
31
32 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
33
1708f284
JB
342003-09-19 Jim Blandy <jimb@redhat.com>
35
36 * macrotab.c (macro_include): Use the correct comparison to find
37 the appropriate place for this inclusion in the list.
38
b9fbf434
AC
392003-09-19 Andrew Cagney <cagney@redhat.com>
40
41 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
42 (DEPRECATED_HPUX_TEXT_END): Define.
43 (deprecated_hpux_text_end): Declare.
44 (struct target_ops): Declare opaque.
45 * hppah-nat.c (text_end): Make static.
46 (deprecated_hpux_text_end): New function.
47 * exec.c (text_end): Delete global variable.
48 (NEED_TEXT_START_END): Do not define.
49 (exec_file_attach): Replace code computing "text_end" code with
50 call to DEPRECATED_HPUX_TEXT_END.
51
5b03f266
AC
522003-09-19 Andrew Cagney <cagney@redhat.com>
53
54 * utils.c (align_up, align_down): New functions.
55 * defs.h (align_up, align_down): Declare.
56 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
57 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
58 and "align_down".
59 (round_up, round_down): Delete functions.
60 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
61 "align_down".
62 (ROUND_DOWN, ROUND_UP): Delete macros.
63 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
64 * h8300-tdep.c: Replace "round_up" and "round_down" with
65 "align_up" and "align_down".
66 (round_up, round_down): Delete macros.
67 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
68 "align_down".
69 (ROUND_UP, ROUND_DOWN): Delete macros.
70
51db5742
JB
712003-09-18 J. Brobecker <brobecker@gnat.com>
72
73 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
74 hard-coded constant. Use the proper machine name instead.
75
77949794
AC
762003-09-17 Andrew Cagney <cagney@redhat.com>
77
78 * sparc-tdep.c (legacy_register_name): Delete function.
79 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
80 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
81 * infcmd.c (gdb_register_name): Delete variable.
82 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
83 REGISTER_NAME and "tm.h".
84 * gdbarch.h, gdbarch.c: Regenerate.
85 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
86 REGISTER_NAMES in comments.
87 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
88 * m68klinux-nat.c (regmap): Ditto.
89
b55c33cc
JB
902003-09-17 Jim Blandy <jimb@redhat.com>
91
92 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
93
957e27ac
AC
942003-09-17 Andrew Cagney <cagney@redhat.com>
95
96 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
97 (ppcnbsd_init_abi): Set "use_struct_convention" to
98 "ppcnbsd_use_struct_convention".
99
192cb3d4
MK
1002003-09-17 Mark Kettenis <kettenis@gnu.org>
101
102 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
103 * gdbarch.h, gdbarch.c: Regenerate.
104 (stabs_argument_has_addr): New architecture method.
105 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
106 * arch-utils.c: Include "buildsym.h".
107 (default_stabs_argument_has_addr): New function.
108 * stabsread.c (define_symbol): Use stabs_argument_has_addr
109 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
110
efe59759
AC
1112003-09-17 Andrew Cagney <cagney@redhat.com>
112
113 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
114 * gdbarch.h, gdbarch.c: Regenerate.
115 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
116 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
117 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
118 * sparcnbsd-tdep.c: Update.
119
62700349
AC
1202003-09-17 Andrew Cagney <cagney@redhat.com>
121
122 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
123 * gdbarch.h, gdbarch.c: Regenerate.
124 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
125 * d10v-tdep.c, frame.c: Update.
126 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
127 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
128 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
129 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
130 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
131 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
132 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
133 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
134 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
135 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
136 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
137 * config/pa/nm-hppah.h: Update.
138
b9ff3018
AC
1392003-09-16 Andrew Cagney <cagney@redhat.com>
140
141 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
142 "use_struct_convention" to "ppc_linux_use_struct_convention".
143 (ppc_linux_use_struct_convention): New function.
144 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
145 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
146 "rs6000_use_struct_convention".
147 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
148 declaration.
149 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
150 Delete function.
151
aa1ee363
AC
1522003-09-16 Andrew Cagney <cagney@redhat.com>
153
154 * buildsym.c: Remove more occurances of "register".
155 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
156 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
157 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
158 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
159 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
160 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
161 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
162 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
163
f2ea0907
CV
1642003-09-16 Corinna Vinschen <vinschen@redhat.com>
165
166 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
167 numbers to enumeration values.
168 * sh-tdep.c: Accomodate above change.
169 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
170 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
171 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
172 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
173 (IS_FPUSH): Rename from IS_FMOV.
174 (sh_extract_struct_value_address): Remove useless comment.
175 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
176 instead of own local values.
177 (sh_dump_tdep): Remove.
178 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
179 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
180
1c704f11
AC
1812003-09-15 Andrew Cagney <cagney@redhat.com>
182
183 * doublest.c (convert_floatformat_to_doublest): No longer need to
184 cast "exp_bias" to an int. Reverts 2002-12-04 change.
185
ac79b88b
DJ
1862003-09-15 Daniel Jacobowitz <drow@mvista.com>
187
188 * values.c (unpack_double): Call floatformat_is_valid.
189
1c671366
MK
1902003-09-15 Mark Kettenis <kettenis@gnu.org>
191
de5227fb
MK
192 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
193 ps_strings into a long.
194
1c671366
MK
195 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
196 _initialize_am64fbsd_nat.
197
a604369a
KB
1982003-09-15 Kevin Buettner <kevinb@redhat.com>
199
200 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
201 associated with DW_AT_ranges attribute is out of bounds.
202
b3cacbee
DL
2032003-09-15 David Lecomber <dsl@sources.redhat.com>
204
205 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
206
d0f37bb2
MC
2072003-09-14 Michael Chastain <mec@shout.net>
208
209 * config/m68k/nm-apollo68v.h: Delete.
210 * config/m68k/xm-apollo68v.h: Delete.
211
69517000
AC
2122003-09-14 Andrew Cagney <cagney@redhat.com>
213
214 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
215 * dcache.c: Update copyrights and descriptions.
216 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
217
ef8b349d
AC
2182003-09-14 Andrew Cagney <cagney@redhat.com>
219
220 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
221 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
222
52f0bd74
AC
2232003-09-14 Andrew Cagney <cagney@redhat.com>
224
225 * alpha-nat.c: Remove some occurances of "register".
226 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
227 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
228 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
229 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
230 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
231 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
232 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
233 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
234 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
235 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
236 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
237 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
238 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
239 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
240 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
241 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
242 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
243 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
244 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
245 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
246 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
247 * values.c, vax-tdep.c, xcoffread.c: Ditto.
248
4a4b3fed
AC
2492003-09-13 Andrew Cagney <cagney@redhat.com>
250
251 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
252 * ppc-tdep.h (struct regcache): Declare opaque.
253 * objfiles.h (struct objfile_data): Declare opaque.
254 * cp-support.h (struct objfile): Declare opaque.
255 * linux-nat.h (target_waitstatus): Declare opaque.
256
2110b94f
MK
2572003-09-14 Mark Kettenis <kettenis@gnu.org>
258
1c671366
MK
259 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
260 (stabs_argument_has_addr): New architecture method.
261 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
262 * arch-utils.c: Include "buildsym.h".
263 (default_stabs_argument_has_addr): New function.
264 * stabsread.c (define_symbol): Use stabs_argument_has_addr
265 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
266
2110b94f
MK
267 * cris-tdep.c (cris_gdbarch_init): Set
268 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
269 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
270 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
271 * mips-tdep.c (mips_gdbarch_init): Likewise.
272 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
273 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
274
48436ce6
AC
2752003-09-13 Andrew Cagney <cagney@redhat.com>
276
277 * values.c (using_struct_return): Delete "function" and "funcaddr"
278 parameters.
279 * value.h (using_struct_return): Update declaration.
280 * infcmd.c (finish_command_continuation): Update.
281 (finish_command): Update.
282 * infcall.c (call_function_by_hand): Update.
283 * eval.c (evaluate_subexp_standard): Update.
284
403d9909
CF
2852003-09-13 Christopher Faylor <cgf@redhat.com>
286
287 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
288 SSE registers since gdb will not operate correctly without this.
289 Restore include file ordering munged in previous change.
290 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
291
ebf7d56b
MK
2922003-09-13 Mark Kettenis <kettenis@gnu.org>
293
8e823e25
MK
294 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
295 REG_STRUCT_HAS_ADDR.
296 * gdbarch.c, gdbarch.h: Updated.
297 * infcall.c (call_function_by_hand): Update.
298 * stabsread.c (define_symbol): Updated.
299
ebf7d56b
MK
300 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
301
d3f13f72
CF
3022003-09-12 Christopher Faylor <cgf@redhat.com>
303
304 * win32-nat.c: Reorganize so that defines used by target headers are
305 actually defined by the system headers.
306 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
307 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
308
14f75137
JB
3092003-09-12 Jim Blandy <jimb@redhat.com>
310
d646061f
JB
311 * dbxread.c (read_dbx_symtab): Don't report an internal error if
312 the file has no .data, .bss, or .rodata sections. Instead wait
313 until we see a variable alleged to live in one of those sections.
314
2a13f9bc
JB
315 * dbxread.c (read_dbx_symtab): If we have no .data section and no
316 .bss section, presume that any variables we find live in the
317 .rodata section.
318
4f49b26b
JB
319 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
320 offsets for global and static variables.
321
14f75137
JB
322 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
323 symbol types are, by definition, in the .data section, so it is
324 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
325 If there is no .data section, there should be no N_DATA or N_DATA
326 | N_EXT symbols.
327
212c460c
MK
3282003-09-12 Mark Kettenis <kettenis@gnu.org>
329
330 * amd64fbsd-tdep.c: Fix sigtramp recognition.
331 (amd64fbsd_sigcontext_addr): Rewrite.
332 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
333 with correct values.
334 (amd64fbsd_sc_reg_offset): Initialize with correct values.
335 (amd64fbsd_init_abi): Fix typo.
336
68856ea3
AC
3372003-09-12 Andrew Cagney <cagney@redhat.com>
338
339 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
340 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
341
627b3ba2
AC
3422003-09-12 Andrew Cagney <cagney@redhat.com>
343
344 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
345 "entry_file_highpc". Update comments.
346 * defs.h (deprecated_inside_entry_file): Rename
347 "inside_entry_file".
348 * blockframe.c (deprecated_inside_entry_file): Rename
349 "inside_entry_file".
350 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
351 * vax-tdep.c (vax_frame_chain): Update.
352 * sh64-tdep.c (sh64_frame_chain): Update.
353 * sh-tdep.c (sh_frame_chain): Update.
354 * rs6000-tdep.c (rs6000_frame_chain): Update.
355 * ns32k-tdep.c (ns32k_frame_chain): Update.
356 * mips-tdep.c (mips_frame_chain): Update.
357 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
358 * m32r-tdep.c (m32r_frame_this_id): Update.
359 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
360 * frv-tdep.c (frv_frame_this_id): Update.
361 * d10v-tdep.c (d10v_frame_this_id): Update.
362 * cris-tdep.c (cris_frame_chain): Update.
363 * blockframe.c (legacy_frame_chain_valid): Update.
364 * avr-tdep.c (avr_frame_this_id): Update.
365 * arm-tdep.c (arm_prologue_this_id): Update.
366 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
367 * objfiles.c (objfile_relocate): Update.
368 * mipsread.c (mipscoff_symfile_read): Update.
369 (mipscoff_symfile_read): Update.
370 * mdebugread.c (parse_partial_symbols): Update.
371 * dwarfread.c (read_file_scope): Update.
372 * dwarf2read.c (read_file_scope): Update.
373 * dbxread.c (read_dbx_symtab): Update.
374 (read_dbx_symtab): Update.
375 * coffread.c (complete_symtab): Update.
376
b0abbc58
JJ
3772003-09-12 Jeff Johnston <jjohnstn@redhat.com>
378
379 * top.c (quit_target): New static helper function.
380 (quit_force): Moved code to quit_target(). Call quit_target()
381 via catch_errors() to catch errors during quit.
382
a1632d59
DC
3832003-09-11 David Carlton <carlton@kealia.com>
384
385 * buildsym.c (finish_block): Use allocate_block to allocate the
386 block.
387 * mdebugread.c (new_block): Add FIXME.
388
5c4e30ca
DC
3892003-09-11 David Carlton <carlton@kealia.com>
390
391 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
392 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
393 (recursive_dump_type): Ditto.
394 * printcmd.c (print_formatted): Ditto.
395 * typeprint.c (print_type_scalar): Ditto.
396 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
397 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
398 * cp-support.h: Declare cp_check_possible_namespace_symbols,
399 maint_cplus_cmd_list.
400 * cp-support.c: Make maint_cplus_cmd_list extern.
401 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
402 command.h.
403 (lookup_symbol_file): Look in possible namespace blocks when
404 appropriate.
405 (initialize_namespace_symtab): New.
406 (get_possible_namespace_block, free_namespace_block)
407 (check_possible_namespace_symbols)
408 (check_possible_namespace_symbols_loop)
409 (check_one_possible_namespace_symbol)
410 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
411 (_initialize_cp_namespace): Ditto.
412 * block.h: Declare allocate_block.
413 * block.c (allocate_block): New.
414 * jv-lang.c (get_java_class_symtab): Allocate blocks via
415 allocate_block.
416 * symfile.h: Update declaration of add_psymbol_to_list.
417 * symfile.c (add_psymbol_to_list): Return the partial symbol in
418 question.
419 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
420 scan_partial_symbols_call.
421 (scan_partial_symbols): Add NAMESPACE argument; update calls to
422 helper functions.
423 (add_partial_symbol): If necessary, scan mangled names for names
424 of namespaces.
425 (add_partial_namespace): Add NAMESPACE argument; generate partial
426 symbols associated to namespaces.
427 (add_partial_enumeration): Add NAMESPACE argument.
428 (new_symbol): Allow namespace syms.
429 (read_namespace): Generate namespace syms.
430 * objfiles.h: Add opaque declaration of struct symtab.
431 (struct objfile): Add cp_namespace_symtab member.
432 * objfiles.c (allocate_objfile): Set
433 objfile->cp_namespace_symtab.
434 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
435 dictionary_h, command_h.
436
33a7c2fc
AC
4372003-09-11 Andrew Cagney <cagney@redhat.com>
438
439 * rs6000-tdep.c (rs6000_push_dummy_call): Use
440 regcache_raw_write_signed to set SP_REGNUM, move the operation to
441 near the function's end.
442 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
443 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
444 regcache_raw_write_signed to set SP_REGNUM.
445
63cd24fe
EZ
4462003-09-11 Elena Zannoni <ezannoni@redhat.com>
447
448 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
449 orig_addrs is set up properly.
450
f27dd7fd
AC
4512003-09-11 Andrew Cagney <cagney@redhat.com>
452
453 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
454 * gdbarch.h, gdbarch.c: Re-generate.
455 * infcall.c (call_function_by_hand): Update.
456 * hppa-tdep.c (hppa_push_arguments): Update.
457 * ada-lang.c (place_on_stack): Update.
458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
459 * sparc-tdep.c (sparc_gdbarch_init): Update.
460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
461 * hppa-tdep.c (hppa_gdbarch_init): Update.
462 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
463 stack_align.
464
f630a401
DJ
4652003-09-11 Daniel Jacobowitz <drow@mvista.com>
466
467 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
468 register do need a frame.
469
0ddabb4c
AC
4702003-09-11 Andrew Cagney <cagney@redhat.com>
471
472 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
473 buildable since GDB 5.0.
474 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
475 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
476 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
477 * irix4-nat.c: Delete file.
478 * config/mips/irix4.mh: Delete file.
479 * config/mips/irix3.mh: Delete file.
480 * config/mips/irix3.mt: Delete file.
481 * config/mips/tm-irix3.h: Delete file.
482 * config/mips/nm-irix3.h: Delete file.
483 * config/mips/xm-irix3.h: Delete file.
484 * config/mips/nm-irix4.h: Delete file.
485 * config/mips/xm-irix4.h: Delete file.
486 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
487
fde2cceb
JB
4882003-09-10 J. Brobecker <brobecker@gnat.com>
489
490 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
491 * Makefile.in (hppa-tdep.o): Update dependencies.
492
66f667f5
JW
4932003-09-10 James E Wilson <wilson@specifixinc.com>
494
ef5fd69f
JW
495 * MAINTAINERS: Change my e-mail address. Move to paper trail
496 section.
66f667f5 497
53e8aaea
KB
4982003-09-10 Kevin Buettner <kevinb@redhat.com>
499
500 * MAINTAINERS (frv): New ISA entry.
501
dcc6aaff
KB
5022003-09-10 Kevin Buettner <kevinb@redhat.com>
503
504 * frv-tdep.c (dis-asm.h): Include.
505 * Makefile.in (frv-tdep.o): Update dependencies.
506
932644f0
JJ
5072003-09-09 Jeff Johnston <jjohnstn@redhat.com>
508
509 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
510 Fix typo for high range of floating registers.
511
91c24f0a
DC
5122003-09-09 David Carlton <carlton@kealia.com>
513
514 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
515 highpc initialization here out of scan_partial_symbols.
516 (scan_partial_symbols): Restructure into a recursive version,
517 calling add_partial_namespace and add_partial_enumeration when
518 appropriate.
519 (add_partial_namespace): New.
520 (add_partial_enumeration, locate_pdi_sibling): Ditto.
521
c9263853
AC
5222003-09-09 Andrew Cagney <cagney@redhat.com>
523
e56a0ecc
AC
524 * rs6000-tdep.c (ppc_push_return_address): Delete function.
525 (rs6000_push_dummy_call): Set LR to BP_ADDR.
526 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
527 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
528
794a477a
AC
529 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
530 (rs6000_push_dummy_call): Set the "TOC" register.
531
c9263853
AC
532 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
533 methods "max_register_raw_size", "max_register_virtual_size" or
534 "register_virtual_size".
535
afa7d0b2
ILT
5362003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
537
538 * MAINTAINERS: Update my e-mail address.
539
7a41266b
AC
5402003-09-09 Andrew Cagney <cagney@redhat.com>
541
542 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
543 (rs6000_push_dummy_call): Store the struct return address.
544 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
545
77b2b6d4
AC
5462003-09-09 Andrew Cagney <cagney@redhat.com>
547
548 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
549 "ppc_sysv_abi_push_arguments".
550 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
551 "ppc_sysv_abi_push_arguments".
552 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
553 instead of "push_arguments".
554 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
555
e8a7b686
AC
5562003-09-09 Andrew Cagney <cagney@redhat.com>
557
558 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
559 instead of CALL_DUMMY_ADDRESS.
560
f86f5ca3
PH
5612003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
562
563 * p-lang.c: Eliminate "register".
564 * c-lang.c: Ditto.
565 * expprint.c: Ditto.
566 * f-lang.c: Ditto.
567 * jv-lang.c: Ditto.
568 * language.c: Ditto.
569 * m2-lang.c: Ditto.
570 * parse.c: Ditto.
571 * scm-lang.c: Ditto.
572 * objc-lang.c: Ditto.
573
83ee270e
NC
5742003-09-09 Nick Clifton <nickc@redhat.com>
575
576 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
577
a89aa300
AC
5782003-09-04 Andrew Cagney <cagney@redhat.com>
579
580 * avr-tdep.c: Include "dis-asm.h".
581 * cris-tdep.c: Include "dis-asm.h".
582 (cris_delayed_get_disassembler): Use "struct disassemble_info"
583 instead of corresponding typedef.
584 * h8300-tdep.c: Include "dis-asm.h".
585 * ia64-tdep.c: Include "dis-asm.h".
586 * i386-tdep.c: Include "dis-asm.h".
587 (i386_print_insn): Use "struct disassemble_info" instead of
588 corresponding typedef.
589 * m68k-tdep.c: Include "dis-asm.h".
590 * mcore-tdep.c: Include "dis-asm.h".
591 * mips-tdep.c: Include "dis-asm.h".
592 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
593 instead of corresponding typedef.
594 * ns32k-tdep.c: Include "dis-asm.h".
595 * s390-tdep.c: Include "dis-asm.h".
596 * sparc-tdep.c: Include "dis-asm.h".
597 * vax-tdep.c: Include "dis-asm.h".
598 * v850-tdep.c: Include "dis-asm.h".
599 * mn10300-tdep.c: Include "dis-asm.h".
600 * rs6000-tdep.c: Include "dis-asm.h".
601 * xstormy16-tdep.c: Include "dis-asm.h".
602 (_initialize_xstormy16_tdep): Delete "extern" declaration of
603 print_insn_xstormy16.
604 * Makefile.in (v850-tdep.o): Update dependencies.
605 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
606 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
607 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
608 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
609 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
610 (gdbarch_h): Remove $(dis_asm_h).
611 * disasm.c: Include "dis-asm.h".
612 (dis_asm_read_memory): Use "struct disassemble_info" instead of
613 corresponding typedef.
614 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
615 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
616 * gdbarch.sh: Do not include "dis-asm.h".
617 (struct disassemble_info): Declare opaque.
618 (TARGET_PRINT_INSN): Update declaration.
619 * gdbarch.h, gdbarch.c: Re-generate.
620
88a82a65
AC
6212003-09-08 Andrew Cagney <cagney@redhat.com>
622
623 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
624 CALL_DUMMY_ADDRESS, change to a predicate.
625 * gdbarch.h, gdbarch.c: Re-generate.
626 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
627 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
628 * infcall.c (call_function_by_hand): Ditto.
629 * sparc-tdep.c (sparc_push_return_address): Ditto.
630 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
631 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
632 CALL_DUMMY_ADDRESS with entry_point_address.
633 * v850-tdep.c (v850_push_return_address): Ditto.
634 * s390-tdep.c (s390_push_return_address): Ditto.
635 * rs6000-tdep.c (ppc_push_return_address): Ditto.
636 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
637 * mcore-tdep.c (mcore_push_return_address): Ditto.
638 * cris-tdep.c (cris_push_return_address): Ditto.
639 * arm-tdep.c (arm_push_return_address): Ditto.
640
3e2c4033
AC
6412003-09-08 Andrew Cagney <cagney@redhat.com>
642
643 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
644 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
645 and REG_UNMODIFIED to REG_SAME_VALUE.
646 (execute_cfa_program): Update.
647 (dwarf2_frame_cache): Update. Initialize table to
648 REG_UNSPECIFIED, complain if CFI fails to specify a register's
649 location.
650 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
651
39efb398
AC
6522003-09-08 Andrew Cagney <cagney@redhat.com>
653
654 * gnu-nat.c: Remove "inline" function attribute.
655 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
656
f5cb5aca
KB
6572003-09-08 Kevin Buettner <kevinb@redhat.com>
658
659 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
660 target.
661
1cb761c7
KB
6622003-09-08 Kevin Buettner <kevinb@redhat.com>
663
664 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
665 (frame_extra_info): Rename this struct to frv_unwind_cache.
666 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
667 Add fields ``prev_sp'' and ``base''.
668 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
669 (frv_saved_pc_after_call, frv_init_extra_frame_info)
670 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
671 Delete.
672 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
673 Revise all callers. Fill in the unwind cache argument and make
674 other adjustments to account for new frame mechanisms.
675 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
676 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
677 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
678 (frv_frame_unwind, frv_frame_base): New structs.
679 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
680 additional arguments expected by this method and adjust function
681 body accordingly.
682 (frv_gdbarch_init): Remove calls to the following functions:
683 set_gdbarch_deprecated_init_frame_pc(),
684 set_gdbarch_deprecated_saved_pc_after_call(),
685 set_gdbarch_deprecated_frame_chain(),
686 set_gdbarch_deprecated_frame_saved_pc(),
687 set_gdbarch_deprecated_frame_init_saved_regs(),
688 set_gdbarch_deprecated_push_arguments(),
689 set_gdbarch_deprecated_push_return_address(),
690 set_gdbarch_deprecated_pop_frame(),
691 set_gdbarch_deprecated_call_dummy_words(),
692 set_gdbarch_deprecated_sizeof_call_dummy_words(),
693 set_gdbarch_deprecated_init_extra_frame_info(),
694 set_gdbarch_deprecated_dummy_write_sp(), and
695 set_gdbarch_deprecated_pc_in_call_dummy().
696 Add calls to the following functions:
697 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
698 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
699 frame_base_set_default().
700 * Makefile.in (frv-tdep.o): Update dependencies.
701
68f6cf99
MK
7022003-09-09 Mark Kettenis <kettenis@gnu.org>
703
704 * dwarf2-frame.c (read_encoded_value): Add support for
705 DW_EH_PE_aligned encoding.
706
73b65bb0
DJ
7072003-09-08 Daniel Jacobowitz <drow@mvista.com>
708
709 * infrun.c (normal_stop): Don't print a message if the inferior
710 has exited.
711
7c8a5605
JB
7122003-09-08 Jim Blandy <jimb@redhat.com>
713
714 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
715 * dbxread.c: #include "gdb_assert.h".
716 (read_dbx_symtab): If the objfile has no .data section, use the
717 section index for the .bss section instead.
718
7dd88986
DJ
7192003-09-08 Daniel Jacobowitz <drow@mvista.com>
720
721 * frame.c (deprecated_safe_get_selected_frame): New function.
722 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
723 * findvar.c (read_var_value): Call it.
724
55ff77ac
CV
7252003-09-08 Corinna Vinschen <vinschen@redhat.com>
726
727 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
728 (sh64-tdep.o): Add dependencies.
729 * configure.tgt: Add FIXME to sh-*-linux*.
730 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
731 (sh_gdbarch_init): Always set correct sh_show_regs function
732 pointer. Call sh64_gdbarch_init() if machine type is sh5.
733 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
734 * sh64-tdep.c: New file, containing all sh64 related code from
735 sh-tdep.c.
736 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
737 * config/sh/linux.mt (TDEPFILES): Ditto.
738 * config/sh/nbsd.mt (TDEPFILES): Ditto.
739 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
740 * config/sh/wince.mt (TDEPFILES): Ditto.
741
bfb39158
DJ
7422003-09-07 Daniel Jacobowitz <drow@mvista.com>
743
744 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
745 (stop_wait_callback): Handle !lp->signalled also.
746 (lin_lwp_has_pending, flush_callback): New functions.
747 (lin_lwp_wait): Call flush_callback.
748 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
749 (linux_proc_pending_signals): New function.
750 * linux-nat.h (linux_proc_pending_signals): Add prototype.
751
9407de8e
DJ
7522003-09-07 Daniel Jacobowitz <drow@mvista.com>
753
754 From Nick Kelsey <nickk@ubicom.com>:
755 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
756 when the stop PC is at the beginning of a function also.
757
2ef47cd0
DJ
7582003-09-06 Daniel Jacobowitz <drow@mvista.com>
759
760 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
761 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
762
6f4492c8
MK
7632003-09-06 Mark Kettenis <kettenis@gnu.org>
764
765 * sol-thread.c: Include "gdb_string.h".
766
d3420b2f
MK
7672003-09-03 Mark Kettenis <m.kettenis@osp.nl>
768
769 * gcore.c: Reorder include files in alphabetical order. Include
770 "gdb_assert.h". Various coding style fixes.
771 (derive_stack_segment, derive_heap_segment): Replace check for
772 non-null BOTTOM and TOP with gdb_assert.
773 (derive_heap_segment): Replace check for successful creation of
774 ZERO with gdb_assert.
775 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
776
5220ea4c
AC
7772003-09-04 Andrew Cagney <cagney@redhat.com>
778
779 * thread-db.c (verbose_dlsym): New function.
780 (thread_db_load): Use verbose_dlsym
781 (thread_db_new_objfile): Print that libthread_db was loaded, and
782 that thread debugging was enabled.
783
6e8c2c06
AC
7842003-09-04 Andrew Cagney <cagney@redhat.com>
785
786 * configure.tgt: Add "mips64*-*-*" target. Delete
787 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
788 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
789 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
790 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
791 mips*-sony-*, and mips64*-*-elf* targets.
792 * config/mips/embedl.mt: Delete file.
793 * config/mips/embedl64.mt: Delete file.
794 * config/mips/mips.mt: Delete file.
795 * config/mips/mips64.mt: Delete file.
796 * config/mips/tm-embed.h: Delete file.
797 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
798 * config/mips/embed64.mt: Delete out-of-date comment.
799
3a3bc038
AC
8002003-09-04 Andrew Cagney <cagney@redhat.com>
801
802 * hppa-tdep.c (hppa_gdbarch_init): Set
803 "have_nonsteppable_watchpoint".
804 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
805 * mips-tdep.c (mips_dump_tdep): Do not print
806 HAVE_NONSTEPPABLE_WATCHPOINT.
807 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
808 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
809 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
810 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
811
a957e642
CV
8122003-09-04 Corinna Vinschen <vinschen@redhat.com>
813
814 * breakpoint.c (watchpoint_check): Remove accidentally checked in
815 unused code. Add comment.
816
a6fbcf2f
CV
8172003-09-04 Corinna Vinschen <vinschen@redhat.com>
818
819 * breakpoint.c (watchpoint_check): Check for pc being in an
820 epilogue if watchpoint frame couldn't be found.
821
c14a44d5
AC
8222003-09-04 Andrew Cagney <cagney@redhat.com>
823
824 * Makefile.in: Re-generate all dependencies.
825
f6c40618
AC
8262003-09-03 Andrew Cagney <cagney@redhat.com>
827
828 * arch-utils.h (legacy_print_insn): Delete declaration.
829 * arch-utils.c (legacy_print_insn): Delete function.
830 * disasm.c (deprecated_tm_print_insn_info): Delete.
831 (_initialize_disasm): Delete function, contained code initializing
832 deprecated_tm_print_insn_info.
833 * gdbarch.sh (deprecated_tm_print_insn): Delete.
834 (deprecated_tm_print_insn_info): Delete.
835 (TARGET_PRINT_INSN): Do not provide a default.
836 * gdbarch.h, gdbarch.c: Re-generate.
837
242e8be5
AC
8382003-09-03 Andrew Cagney <cagney@redhat.com>
839
840 * disasm.c (fprintf_disasm): New function.
841 (gdb_disassemble_info): Call "init_disassemble_info", instead of
842 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
843 reverts 2003-08-14 change.
844 (_initialize_disasm): Call "init_disassemble_info", instead of
845 INIT_DISASSEMBLE_INFO_NO_ARCH.
846
3ffc3dda
MS
8472003-09-03 Michael Snyder <msnyder@redhat.com>
848
849 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
850
52d16ba8
AC
8512003-09-03 Andrew Cagney <cagney@redhat.com>
852
853 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
854 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
855 * symfile.c (syms_from_objfile): Update.
856 (reread_symbols): `Update
857 * exec.c (exec_file_attach): Update.
858 (exec_file_attach): Update.
859 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
860 2003-08-29 change.
861 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
862
eb5492fa
DJ
8632003-09-03 Daniel Jacobowitz <drow@mvista.com>
864
865 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
866 trad-frame.h.
867 (arm_get_cache): Delete macro.
868 (struct arm_prologue_cache): Update comments. Make saved_regs into
869 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
870 to prev_sp.
871 (thumb_scan_prologue): Update for cache changes. Don't call
872 DEPRECATED_PC_IN_CALL_DUMMY.
873 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
874 argument and use it in desperation search for our prologue. Do not
875 search past the specified PC.
876 (arm_make_prologue_cache): Simplify.
877
878 (arm_prologue_this_id, arm_prologue_prev_register)
879 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
880 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
881 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
882 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
883 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
884
885 (arm_frame_chain_valid, arm_find_callers_reg)
886 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
887 (arm_pop_frame): Delete obsolete methods.
888 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
889
890 (arm_gdbarch_init): Update for new frame methods. Register prologue
891 and sigtramp unwinders. Set the default frame base method.
892
893 * Makefile.in (arm-tdep.o): Update dependencies.
894 * varobj.c (find_frame_addr_in_frame_chain): Call
895 get_frame_base_address.
896 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
897
24de872b
DJ
8982003-09-03 Daniel Jacobowitz <drow@mvista.com>
899
900 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
901 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
902 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
903 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
904 Take NEXT_FRAME and CACHE arguments. Call
905 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
906 Set unwound_pc in CACHE instead of modifying the frame argument.
907 Don't bother checking the frame type when looking for sigtramp
908 frames.
909 (arm_make_prologue_cache, arm_frame_chain)
910 (arm_init_extra_frame_info): New functions.
911
9b8d791a
DJ
9122003-09-03 Daniel Jacobowitz <drow@mvista.com>
913
914 * arm-tdep.c (arm_get_cache): Define.
915 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
916 unwound_sp, unwound_pc, and saved_regs.
917 (thumb_scan_prologue): Take a cache instead of the frame.
918 (arm_scan_prologue): Likewise.
919 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
920 instead of a temporary frame.
921 (arm_init_extra_frame_info): Allocate and use a cache.
922 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
923
7ee3275f
AC
9242003-09-03 Andrew Cagney <cagney@redhat.com>
925
926 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
927 * config/mips/wince.mt (TM_CLIBS): Ditto.
928 * config/sh/wince.mt (TM_CLIBS): Ditto.
929 * config/pa/hppa64.mt (TM_CLIBS): Delete.
930 * config/sparc/sp64.mt (CC): Delete.
931
57b29be7
AC
9322003-09-03 Andrew Cagney <cagney@redhat.com>
933
934 * defs.h: Do not include "arch-utils.h".
935 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
936 GDB_MULTI_ARCH_PURE.
937 * configure.in (GDB_MULTI_ARCH): Do not define.
938 * configure, config.in: Regenerate.
939 * configure.tgt: Do not set variable "gdb_multi_arch".
940 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
941 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
942 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
943 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
944 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
945 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
946 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
947 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
948 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
949 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
950 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
951 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
952 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
953 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
954 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
955 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
956 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
957 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
958
12e035e2
MC
9592003-08-30 Michael Chastain <mec@shout.net>
960
961 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
962 * config/m68k/nm-hp300hpux.h: Delete.
963 * config/m68k/tm-hp300hpux.h: Delete.
964 * config/m68k/xm-hp300hpux.h: Delete.
965 * config/m68k/xm-hp300bsd.h: Delete.
966 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
967 tm-hp300hpux.h, xm-hp300hpux.h.
968 * somsolib.c: Remove comment about hp300 shared libraries.
969
bda34dc2
MK
9702003-08-31 Mark Kettenis <kettenis@gnu.org>
971
5bca7895
MK
972 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
973 Only define PTRACE_GET_THREAD_AREA is not already defined.
974 Various style fixes in code and comments and some additional
975 spelling fixes in comments. Move after functions dealing with
976 debug registers.
977 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
978 Fix coding-style.
979
bda34dc2
MK
980 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
981 frame_unwind_register_unsigned instead of
982 frame_unwind_unsigned_register.
983
c890192f
MK
9842003-08-30 Mark Kettenis <kettenis@gnu.org>
985
986 * configure.in: Search for gethostbyname in libnsl.
987 * configure: Regenerated.
988
60fac5b8
MK
9892003-08-29 Mark Kettenis <kettenis@gnu.org>
990
e294916c
MK
991 * configure.in: Remove redundant AC_MSG_RESULT in check for
992 uintptr_t in stdint.h.
993 * configure: Regenerated.
994
c40d267a
MK
995 * amd64-nat.h (struct regcache): Add opaque declaration.
996
60fac5b8
MK
997 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
998 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
999 Change "register array" to "register cache" in comments.
1000 (x86_64_linux_gregset64_reg_offset): New variable.
1001 (GETREGS_SUPPLIES): Remove macro.
1002 (supply_gregset): Call amd64_supply_native_gregset instead of
1003 x86_64_linux_supply_gregset.
1004 (fill_gregset): Rename `regno' to `regnum'. Call
1005 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1006 (store_regs): Rename `regno' to `regnum'.
1007 (store_fpregs): Rename `regno' to `regnum'.
1008 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1009 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1010 Reorganize function a bit.
1011 (store_inferior_registers): Rename `regno' to `regnum'. Use
1012 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1013 Reorganize function a bit.
1014 (_initialize_x86_64_linux_nat): New function.
1015 * config/i386/x86-64linux.mh.
1016
546143b6
AC
10172003-08-29 Andrew Cagney <cagney@redhat.com>
1018
1019 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1020 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1021 (target_remove_watchpoint): Delete macro.
1022 (target_insert_watchpoint): Delete macro.
1023 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1024 (remote_mips_stopped_by_watchpoint): Delete declaration.
1025 (remote_mips_remove_watchpoint): Delete declaration.
1026 (remote_mips_set_watchpoint): Delete declaration.
1027 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1028 * remote-mips.c (_initialize_remote_mips): Set
1029 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1030 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1031 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1032 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1033 (mips_stopped_by_watchpoint): Rename
1034 remote_mips_stopped_by_watchpoint.
1035 (mips_can_hardware_watchpoint): Rename
1036 remote_mips_can_use_hardware_watchpoint, update function
1037 signature.
1038
7bace51b
MK
10392003-08-29 Mark Kettenis <kettenis@gnu.org>
1040
b0f5c6f2
MK
1041 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1042 USER_DS. We haven't given them a register number yet.
1043
2a6d284d
MK
1044 * amd64-nat.h: New file.
1045 * amd64-nat.c: New file.
1046 * amd64fbsd-nat.c: Include "amd64-nat.h".
1047 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1048 (amd64fbsd32_r_reg_offset): New variable.
1049 (supply_gregset): Simply call amd64_supply_native_gregset.
1050 (fill_gregset): Rename `regno' to `regnum'. Simply call
1051 amd64_collect_native_gregset.
1052 (fill_fpregset): Rename `regno' to `regnum'.
1053 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1054 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1055 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1056 `fpregset_t'. Call amd64_supply_native_gregset instead of
1057 supply_gregset. Call x86_64_supply_fxsave instead of
1058 supply_fpregset.
1059 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1060 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1061 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1062 `fpregset_t'. Call amd64_collect_native_gregset instead of
1063 fill_gregset. Call x86_64_collect_fxsave instead of
1064 fill_fpregset.
1065 (_initialize_am64fbsd_nat): Initialize
1066 amd64_native_gregset32_reg_offset and
1067 amd64_native_gregset64_reg_offset.
1068 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1069
a16d75cc
MK
1070 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1071 null pointer. Fix typo in comment.
1072
7bace51b
MK
1073 * regcache.c (supply_register): Reimplement to call
1074 regcache_raw_supply.
1075 (regcache_collect): Reimplement by calling regcache_raw_collect.
1076
9a661b68
MK
10772003-08-28 Mark Kettenis <kettenis@gnu.org>
1078
1079 * regcache.c (register_buffer): Consitify first argument.
1080 (regcache_raw_supply, regcache_raw_collect): New
1081 functions.
1082
e94cc8fa
DJ
10832003-08-28 Daniel Jacobowitz <drow@mvista.com>
1084
1085 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1086 by Nathan J. Williams.
1087
c64bd0ce
DJ
10882003-08-28 Daniel Jacobowitz <drow@mvista.com>
1089
1090 * lin-lwp.c (wait_lwp): New function, copied from
1091 stop_wait_callback. Clean up.
1092 (stop_wait_callback): Use wait_lwp.
1093
e5ab0dce
AC
10942003-08-28 Andrew Cagney <cagney@redhat.com>
1095
1096 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1097 flavour and disassembler options.
1098 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1099 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1100 deprecated_tm_print_insn_info.
1101
a788de9b
AC
11022003-08-27 Andrew Cagney <cagney@redhat.com>
1103
1104 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1105 Use target_read_memory.
1106 (s390_get_frame_info): Update. Do not reference
1107 deprecated_tm_print_insn_info.
1108 (s390_check_function_end, s390_is_sigreturn): Ditto.
1109
36482093
AC
11102003-08-27 Andrew Cagney <cagney@redhat.com>
1111
1112 * Makefile.in (cris-tdep.o): Update dependencies.
1113 * cris-tdep.c: Include "gdb_assert.h".
1114 (cris_gdbarch_init): Set print_insn.
1115 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1116 (cris_delayed_get_disassembler): Simplify, directly call the
1117 disassembler returned by cris_get_disassembler.
1118 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1119 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1120 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1121 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1122 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1123 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1124 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1125 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1126 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1127 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1128 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1129 (gdb_print_insn_sparc): Delete function.
1130 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1131 deprecated_tm_print_insn_info.
1132 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1133 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1134 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1136 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1137 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1138 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1139 (s390_gdbarch_init): Set print_insn.
1140
0285512f
AC
11412003-08-27 Andrew Cagney <cagney@redhat.com>
1142
1143 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1144 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1145 * infcall.c (call_function_by_hand): Convert the entry point
1146 address into a code address.
1147
cdcd5552
AC
11482003-08-27 Andrew Cagney <cagney@redhat.com>
1149
1150 * dsrec.c: Include "gdb_string.h".
1151 * Makefile.in (dsrec.o): Update dependencies.
1152
e85cddad
MC
11532003-08-27 Michael Chastain <mec@shout.net>
1154
1155 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1156
8bbfbb23
AC
11572003-08-27 Andrew Cagney <cagney@redhat.com>
1158
1159 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1160 (alpha_osf1_init_abi): Do not set call_dummy_address.
1161
ba058b66
DC
11622003-08-27 David Carlton <carlton@kealia.com>
1163
1164 From Randolph Chung <tausq@debian.org>:
1165 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1166 compiles with -Wformat-nonliteral -Werror.
1167
87f84c9d
JB
11682003-08-26 Jim Blandy <jimb@redhat.com>
1169
1170 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1171 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1172 bfd_lookup_symbol, since we only want symbols in code sections.
1173 (look_for_base): Pass zero as the SECT_FLAGS argument to
1174 bfd_lookup_symbol, since we're not concerned about which section
1175 the symbol is in.
1176
102d615a
JJ
11772003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1178
1179 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1180 we are frameless or the return address register is already known.
1181
cc7ad3ea
AC
11822003-08-26 Andrew Cagney <cagney@redhat.com>
1183
1184 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1185 in size. Add comments.
1186
af8b88dd
JJ
11872003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1188
1189 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1190 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1191
e0a4f5a1
JM
11922003-08-26 Jason Merrill <jason@redhat.com>
1193
1194 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1195 case out of #ifdef MIPS block.
1196
4ae9ee8e
DJ
11972003-08-25 Daniel Jacobowitz <drow@mvista.com>
1198
1199 PR java/1322
1200 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1201 available before calling SECT_OFF_TEXT.
3c164570 1202 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1203
004d836a
JJ
12042003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1205
1206 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1207 bof, and nat0-nat127 as pseudo-registers.
1208 (ia64_frame_cache): New struct used to cache frame info.
1209 (ia64_register_reggroup_p): New routine used to override default
1210 register grouping so registers without names are still saved and
1211 restored.
1212 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1213 pseudo values.
1214 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1215 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1216 (ia64_alloc_frame_cache): New routine to create a new
1217 ia64_frame_cache.
1218 (examine_prologue): Change prototype to add next_frame pointer.
1219 Assume frameless until otherwise proven. Verify that the cfm for
1220 current frame matches the cfm that should occur for the prologues
1221 alloc insn and if equal, mark as not frameless. At end of routine,
1222 if not frameless, calculate registers for the previous frame and store
1223 in the cache, if a cache is provided.
1224 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1225 and pass 0 for next_frame.
1226 (ia64_store_return_value): Change to use convert_typed_floating()
1227 instead of calling ia64_convert_to_raw().
1228 (ia64_extract_return_value): Change to use convert_typed_floating()
1229 instead of calling ia64_convert_to_virtual().
1230 (ia64_frame_cache): New routine to support new frame model.
1231 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1232 (ia64_frame_sniffer): Ditto.
1233 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1234 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1235 (ia64_sigtramp_frame_prev_register): Ditto.
1236 (ia64_sigtramp_frame_sniffer): Ditto.
1237 (ia64_frame_base_address): Ditto.
1238 (ia64_extract_struct_value_address): Change to issue error message.
1239 (ia64_frame_align): New routine to align sp.
1240 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1241 (ia64_push_arguments): Removed. Logic moved to
1242 ia64_push_dummy_call().
1243 (ia64_push_return_address): Ditto.
1244 (ia64_unwind_dummy_id): New function.
1245 (ia64_unwind_pc): Ditto.
1246 (ia64_convert_register_p): Ditto.
1247 (ia64_register_to_value): Ditto.
1248 (ia64_value_to_register): Ditto.
1249 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1250 (ia64_register_byte, ia64_register_raw_size): Ditto.
1251 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1252 (ia64_saved_pc_after_call): Ditto.
1253 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1254 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1255 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1256 (ia64_register_convert_to_raw): Ditto.
1257 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1258 (ia64_init_extra_frame_info): Ditto.
1259 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1260 (ia64_gdbarch_init): Remove registering of deprecated functions that
1261 are no longer used. Add registration of new gdbarch functions.
1262 Remove registering deprecated_write_sp. Replace
1263 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1264 Delete set_gdbarch_deprecated_register_convertible(),
1265 set_gdbarch_deprecated_register_convert_to_virtual(), and
1266 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1267 set_gdbarch_deprecated_register_size(),
1268 set_gdbarch_deprecated_register_bytes(),
1269 set_gdbarch_pcregnum(),
1270 set_gdbarch_deprecated_register_byte(),
1271 set_gdbarch_deprecated_register_raw_size(),
1272 set_gdbarch_deprecated_max_register_raw_size(),
1273 set_gdbarch_deprecated_register_virtual_size(),
1274 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1275 Replace set_gdbarch_deprecated_extract_return_value() with
1276 set_gdbarch_extract_return_value(). Remove calls to:
1277 set_gdbarch_deprecated_saved_pc_after_call();
1278 set_gdbarch_deprecated_frame_chain(),
1279 set_gdbarch_deprecated_frame_saved_pc(),
1280 set_gdbarch_deprecated_frame_init_saved_regs(),
1281 set_gdbarch_deprecated_get_saved_register(),
1282 set_gdbarch_deprecated_call_dummy_words(),
1283 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1284 set_gdbarch_deprecated_init_extra_frame_info(),
1285 set_gdbarch_deprecated_frame_args_address(),
1286 set_gdbarch_deprecated_frame_locals_address(),
1287 and set_gdbarch_deprecated_dummy_write_sp().
1288 Add set_gdbarch_convert_register_p(),
1289 set_gdbarch_register_to_value(),
1290 set_gdbarch_value_to_register(),
1291 set_gdbarch_push_dummy_call(),
1292 set_gdbarch_frame_align(),
1293 set_gdbarch_unwind_dummy_id(),
1294 set_gdbarch_unwind_pc(),
1295 frame_unwind_append_sniffer(),
1296 frame_unwind_append_sniffer(),
1297 and frame_base_set_default().
1298
aede7613
CD
12992003-08-25 Chris Demetriou <cgd@broadcom.com>
1300
1301 * configure.tgt: Document need for special "mipsisa64" handling.
1302 (mipsisa64*-*-linux64): Handle as target linux64.
1303 (mipsisa64*-*-*): Handle as target embed64.
1304
43c3a82e
MC
13052003-08-18 Michael Chastain <mec@shout.net>
1306
1307 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1308 objfile bug.
1309
6564f77d
MK
13102003-08-24 Mark Kettenis <kettenis@gnu.org>
1311
2de139ba
MK
1312 * i387-tdep.h: Update copyright date.
1313 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1314
6564f77d
MK
1315 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1316 CFLAGS games to reflect reality.
1317
42cf1509
AC
13182003-08-24 Andrew Cagney <cagney@redhat.com>
1319
1320 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1321 GDB_MULTI_ARCH is always non-zero.
1322 * osabi.c (_initialize_gdb_osabi): Ditto.
1323 (gdbarch_init_osabi): Ditto.
1324 * sparc-tdep.c: Ditto for #if code.
1325
0485f6ad
MK
13262003-08-23 Mark Kettenis <kettenis@gnu.org>
1327
1328 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1329 Update comments.
1330 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1331 comments.
1332 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1333 x86_64_supply_fxsave.
1334 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1335 x86_64_supply_fxsave.
1336 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1337 x86_64_supply_fxsave.
1338
c7716133
AJ
13392003-08-23 Andreas Jaeger <aj@suse.de>
1340
1341 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1342 i387_supply_fxsave.
1343
ed504bdf
MK
13442003-08-23 Mark Kettenis <kettenis@gnu.org>
1345
1346 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1347 i387_supply_register.
1348 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1349 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1350 i387_supply_fsave.
1351 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1352 i387_supply_fxsave.
1353 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1354 i387_supply_fsave.
1355 * i386bsd-nat.c (supply_fpregset): Adjust call to
1356 i387_supply_fsave.
1357 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1358 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1359 supply_fpregset.
1360 (store_inferior_registers): Remove extraneous whitespace. Call
1361 i387_fill_fsave instead of fill_fpregset.
1362 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1363 (supply_fpregset): Likewise.
1364 * i386v4-nat.c (supply_fpregset): Adjust call to
1365 i387_supply_fsave.
1366 * i386-interix-nat.c (supply_fpregset): Adjust call to
1367 i387_supply_fsave.
1368 * i386-linux-nat.c (supply_fpregset): Adjust call to
1369 i387_supply_fsave.
1370 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1371 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1372 i387supply_fsave and i387_supply_fxsave.
1373 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1374 Incorporate code from `i387_supply_register.
1375 (i387_supply_register): Remove.
1376 (i387_supply_fxsave): Add `regnum' argument.
1377 Update comments.
1378 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1379 prototype.
1380 (i387_supply_register): remove prototype.
1381 Update comments.
1382
4be5d520
MC
13832003-08-22 Michael Chastain <mec@shout.net>
1384
1385 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1386 Add lines for files in gdb/testsuite/gdb.cp/* that are
1387 still not 8.3 unique.
1388
7ed85d26
DJ
13892003-08-22 Daniel Jacobowitz <drow@mvista.com>
1390
1391 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1392 TYPE_VPTR_FIELDNO is valid.
1393
eb0d3137
MK
13942003-08-19 Mark Kettenis <kettenis@gnu.org>
1395
1396 * utils.c (set_width_command): Remove prototypes.
1397 (set_screen_size): New prototype.
1398 (init_page_info): Simplify by fetching the screen size from
1399 Readline. Call set_screen_size.
1400 (set_screen_size): New function.
1401 (set_width): Add missing whitespace in comment.
1402 (set_width_command): Call set_screen_size.
1403 (set_height_command): New function.
1404 (initialize_utils): Fix formatting. Make "set height" command
1405 call set_height_command. Remove redundant code that turns off
1406 pagination if output isn't a terminal. Remove redundant call to
1407 set_width_command.
1408
7e6d0ac8
MK
14092003-08-22 Mark Kettenis <kettenis@gnu.org>
1410
3567a8ea
MK
1411 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1412 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1413 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1414 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1415 `case' keyword.
1416 (sparc64_register_info): Give the reister with number
1417 SPARC64_STATE_REGNUM a name.
1418 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1419 %asi and %ccr.
1420 (sparc64_push_dummy_call): Take BIAS into account when checking
1421 stcak alignment.
1422 (sparc_software_single_step): Remove assertions that check whether
1423 NPC and NNPC were zero.
1424 (sparc_supply_rwindow): Make public. Merge functionality with
1425 sparc64_supply_rwindow.
1426 (sparc_fill_rwindow): Make public. Merge functionality with
1427 sparc64_fill_rwindow.
1428 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1429 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1430 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1431 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1432 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1433
7e6d0ac8
MK
1434 * reggroups.c: Add whitespace after declarations of local
1435 variables in functions.
1436
72e5f484
MC
14372003-08-21 Michael Chastain <mec@shout.net>
1438
1439 * gdbtypes.h: Change array bound type from an int to enum.
1440
435ac228
AC
14412003-08-21 Andrew Cagney <cagney@redhat.com>
1442
1443 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1444 * config/sparc/tm-sparc.h: Ditto.
1445 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1446 unconditionally.
1447 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1448
0d0e1a63
MK
14492003-07-13 Mark Kettenis <kettenis@gnu.org>
1450
1451 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1452 (register_objfile_data, set_objfile_data, objfile_data): New
1453 prototypes.
1454 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1455 prototypes.
1456 (allocate_objfile): Call objfile_alloc_data.
1457 (free_objfile): Call objfile_free_data.
1458 (struct objfile_data): New.
1459 (struct objfile_data_registration): New.
1460 (struct objfile_data_registry): New.
1461 (objfile_data_registry): New variable.
1462 (register_objfile_data): New function.
1463 (objfile_alloc_data, objfile_free_data): New functions.
1464 (set_objfile_data, objfile_data): New functions.
1465 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1466 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1467 (_initialize_dwarf2_frame): New function and prototype.
1468
d90cf509
AC
14692003-08-21 Andrew Cagney <cagney@redhat.com>
1470
1471 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1472 a specific architecture.
1473 * arch-utils.h (set_architecture_from_arch_mach): Delete
1474 declaration.
1475 (target_architecture_hook): Delete declaration.
1476 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1477 (default_float_format): Assume GDB_MULTI_ARCH.
1478 (default_double_format): Assume GDB_MULTI_ARCH.
1479 (set_endian_from_file): Delete function.
1480 (arch_ok): Delete function.
1481 (set_arch): Delete function.
1482 (set_architecture_from_arch_mach): Delete function.
1483 (set_architecture_from_file): Delete function.
1484 (set_architecture): Assume GDB_MULTI_ARCH.
1485 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1486
8b39fe56
MK
14872003-08-21 Mark Kettenis <kettenis@gnu.org>
1488
1489 Rewrite FreeBSD/sparc64 native configuration.
1490 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1491 * sparc64fbsd-nat.c: New file.
1492 * sparc64fbsd-tdep.c: New file.
1493 * sparc64-tdep.c sparc64-tdep.h: New files.
1494 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1495 sparc64fbsd-tdep.o): New dependencies.
1496 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1497 and sparc64fbsd-tdep.c.
1498 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1499 * config/sparc/fbsd.mh: Remove copyright notice.
1500 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1501 sparcbsd-nat.o.
1502 * config/sparc/fbsd.mt: Remove copyright notice.
1503 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1504 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1505 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1506 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1507 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1508 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1509 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1510 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1511 "sparc/tm-sp64.h".
1512 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1513 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1514
a7f19c79
MC
15152003-08-21 Michael Chastain <mec@shout.net>
1516
1517 * symtab.h: Add doco on the space critical structures and
1518 some measurements of space usage.
1519
da08ea5b
MS
15202003-08-21 Michael Snyder <msnyder@redhat.com>
1521
1522 * tracepoint.c (trace_dump_command): Trace break address
1523 is subject to DECR_PC_AFTER_BREAK.
1524 (set_traceframe_context): Make "trace_line" an int.
1525 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1526
6df2bf50
MS
15272003-08-20 Michael Snyder <msnyder@redhat.com>
1528
1529 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1530 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1531 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1532 argument passing.
1533 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1534 functions, replace sh_push_dummy_call.
1535 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1536
0955bbf0
MC
15372003-08-20 Michael Chastain <mec@shout.net>
1538
1539 * gdbtypes.h (struct main_type): Rearrange to save space.
1540
260a4188
MS
15412003-08-20 Michael Snyder <msnyder@redhat.com>
1542
1543 * trad-frame.c: Comment typo fix.
1544
8baa6f92
KB
15452003-08-20 Michael Snyder <msnyder@redhat.com>
1546 Kevin Buettner <kevinb@redhat.com>
1547
1548 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1549 (frv_frame_init_saved_regs): Add declaration.
1550 (frame_extra_info): Add new field ``saved_regs''.
1551 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1552 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1553 Update frame related code.
1554 (frv_extract_struct_value_address): Adjust formatting.
1555 * Makefile.in (frv-tdep.o): Update dependencies.
1556 * config/frv/tm-frv.h (target_insert_watchpoint)
1557 (target_remove_watchpoint, target_insert_hw_breakpoint)
1558 (target_remove_hw_breakpoint): Delete these macros.
1559 (remote_insert_watchpoint, remote_remove_watchpoint)
1560 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1561 these declarations.
1562
87193939
MC
15632003-08-20 Michael Chastain <mec@shout.net>
1564
1565 * defs.h (ENUM_BITFIELD): New macro.
1566 * symtab.h (ENUM_BITFIELD): Use it.
1567 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1568
062103ba
SA
15692003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1570
1571 * MAINTAINERS (write after approval): Add myself.
1572
8b148df9
AC
15732003-08-18 Andrew Cagney <cagney@redhat.com>
1574
1575 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1576 * gdbarch.h, gdbarch.c: Re-generate.
1577 * infcall.c (call_function_by_hand): Adjust the SP by
1578 frame_red_zone_size before allocating any stack space.
1579 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1580 * x86-64-tdep.c (x86_64_frame_align): New function.
1581 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1582
1583 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1584 Remove code adjusting SP so that it skips over the Red Zone.
1585
954a4db8
MK
15862003-08-18 Mark Kettenis <kettenis@gnu.org>
1587
1588 * NEWS (New native configurations): Mention FreeBSD/amd64.
1589
1a241548
AC
15902003-08-18 Andrew Cagney <cagney@redhat.com>
1591
1592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1593 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1594 "m68k_frame_p".
1595 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1596
f82b2acd
MK
15972003-08-18 Mark Kettenis <kettenis@gnu.org>
1598
1599 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1600
4056d258
ML
16012003-08-18 Michal Ludvig <mludvig@suse.cz>
1602
1603 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1604 Define.
1605 * i386-linux-nat.c: Include "linux-nat.h".
1606 (child_post_startup_inferior): New function.
1607
99ab4326
MK
16082003-08-18 Mark Kettenis <kettenis@gnu.org>
1609
1610 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1611 at the start of a frameless function. This probably fixes PR
1612 backtrace/1338.
1613
c8d5f0d6
MC
16142003-08-17 Michael Chastain <mec@shout.net>
1615
1616 * symfile.c (find_sym_fns): Remove special case for apollo target.
1617
9016a515
DJ
16182003-08-17 Daniel Jacobowitz <drow@mvista.com>
1619
1620 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1621 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1622 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1623 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1624 (linux_supports_tracevforkdone): New function.
1625 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1626 TRACEVFORKDONE.
1627 (child_follow_fork): Handle vfork.
1628 (linux_handle_extended_wait): Likewise. Also handle exec.
1629 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1630 * NEWS: Mention fork tracing.
1631
c538c11c
DJ
16322003-08-17 Daniel Jacobowitz <drow@mvista.com>
1633
1634 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1635
4de4c07c
DJ
16362003-08-17 Daniel Jacobowitz <drow@mvista.com>
1637
1638 * Makefile.in (i386-linux-nat.o): Update dependencies.
1639 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1640 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1641 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1642 * i386-linux-nat.c: Include "linux-nat.h".
1643 (child_post_startup_inferior): New function.
1644 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1645 * infptrace.c (kill_inferior): Wrap in #ifdef.
1646 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1647 attaching to each LWP.
1648 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1649 (init_lin_lwp_ops): Fill in some more operations.
1650 * linux-nat.h (linux_enable_event_reporting)
1651 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1652 prototypes.
1653 * linux-nat.c (linux_enable_event_reporting): New function.
1654 (child_post_attach, linux_child_post_startup_inferior)
1655 (child_post_startup_inferior, child_follow_fork)
1656 (linux_handle_extended_wait, kill_inferior): New functions.
1657
7996bcec
AC
16582003-08-16 Andrew Cagney <cagney@redhat.com>
1659
1660 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1661 * gdbarch.h, gdbarch.c: Re-generate.
1662
3d48a7a0
MK
16632003-08-16 Mark Kettenis <kettenis@gnu.org>
1664
1665 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1666
7989c619
AC
16672003-08-16 Andrew Cagney <cagney@redhat.com>
1668
1669 * NEWS: Mention that "set prompt-escape-char" was deleted.
1670 * top.c (get_prompt_1): Delete function.
1671 (gdb_prompt_escape):
1672 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1673 prompt-escape-char" command.
1674 (MAX_PROMPT_SIZE): Delete macro.
1675 (get_prompt): Simplify, do not call get_prompt_1.
1676
07978cd8
AC
16772003-08-16 Andrew Cagney <cagney@redhat.com>
1678
1679 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1680 -Werror. -Wformat-nonliteral problems.
1681
3ff7cf9e
JB
16822003-08-15 J. Brobecker <brobecker@gnat.com>
1683
1684 Further multiarching work mostly for hppa64-*-hpux11:
1685 * hppa-tdep.h: New file.
1686 * hppa-tdep.c: #include hppa-tdep.c.
1687 (hppa32_num_regs): Renamed from hppa_num_regs.
1688 (hppa64_num_regs): New constant.
1689 (hppa64_call_dummy_breakpoint_offset): New constant.
1690 (hppa32_call_dummy_length): New constant.
1691 (hppa64_call_dummy_length): New constant.
1692 (hppa32_stack_align): Make name 32bit explicit.
1693 (hppa32_register_virtual_type): Likewise.
1694 (hppa32_extract_return_value): Likewise.
1695 (hppa32_use_struct_convention): Likewise.
1696 (hppa32_store_return_value): Likewise.
1697 (hppa64_register_virtual_type): New function.
1698 (hppa64_extract_return_value): New function.
1699 (hppa64_use_struct_convention): New function.
1700 (hppa64_store_return_value): New function.
1701 (hppa_frame_locals_address): Remove declaration, function does
1702 not exist anymore.
1703 (hppa_register_byte): Add support for PA64 ABI.
1704 (hppa_gdbarch_init): Add support for PA64 ABI.
1705 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1706 Make name 32bit explicit.
1707 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1708 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1709 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1710 (hppa64_hpux_frame_base_before_sigtramp): New function.
1711 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1712 * config/pa/tm-hppa64.h: Remove macros that are no longer
1713 necessary now that the gdbarch vector is properly setup.
1714 Transform some macros into function calls. Some minor cleanup.
1715 * config/pa/tm-hppah.h: Update function calls in macros
1716 following the function renaming in hppa-hpux-tdep.c.
1717 * Makefile.in (hppa_tdep_h): New variable.
1718 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1719
5d05ca6d
MS
17202003-08-14 Michael Snyder <msnyder@redhat.com>
1721
1722 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1723
37ba2569
JB
17242003-08-13 J. Brobecker <brobecker@gnat.com>
1725
1726 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1727 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1728 routine.
1729
aed7f26a
MS
17302003-08-13 Michael Snyder <msnyder@redhat.com>
1731
1732 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1733 (frv_saved_pc_after_call): Use deprecated ftype.
1734 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1735 (frv_remote_translate_xfer_address): Remove.
1736 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1737
752d4ac1
JB
17382003-08-13 J. Brobecker <brobecker@gnat.com>
1739
1740 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1741 initialization after the common gdbarch initialization, not before.
1742
1426ac1d
JB
17432003-08-13 J. Brobecker <brobecker@gnat.com>
1744
1745 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1746 (ADDR_BITS_REMOVE): Remove, redundant.
1747
b6fbdd1d
JB
17482003-08-13 J. Brobecker <brobecker@gnat.com>
1749
1750 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1751 gdbarch method to clear the 2 low bits of text addresses.
1752
44160db3
AC
17532003-08-12 Andrew Cagney <cagney@redhat.com>
1754
1755 * Makefile.in (dsrec.o): Update dependencies.
1756 * dsrec.c: Include "gdb_assert.h".
1757 (make_srec): Use snprintf instead of sprintf, use a literal format
1758 string.
1759
bcf7d3ca
AC
17602003-08-12 Andrew Cagney <cagney@redhat.com>
1761
1762 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1763 FRAME_OBSTACK_ZALLOC.
1764
49ed40de
KB
17652003-08-12 Kevin Buettner <kevinb@redhat.com>
1766
1767 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1768 SSE registers.
1769
b246147c
MK
17702003-08-10 Mark Kettenis <kettenis@gnu.org>
1771
1772 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1773 amd64fbsd_sc_reg_offset): Add extern declarations.
1774 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1775 declarations.
1776
d95fdc0d
BE
17772003-08-11 Ben Elliston <bje@wasabisystems.com>
1778
1779 * MAINTAINERS (write after approval): Update my mail address.
1780
cf6a0e73
AC
17812003-08-10 Andrew Cagney <cagney@redhat.com>
1782
1783 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1784
f837910f
MK
17852003-08-10 Mark Kettenis <kettenis@gnu.org>
1786
e2dbbd2d
MK
1787 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1788 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1789 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1790 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1791 i386bsd_sc_reg_offset): Add extern declarations.
1792 * i386obsd-nat.c: Include "i386-tdep.h"
1793 (_initialize_i386obsd_nat): Remove extern declarations.
1794 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1795 declarations.
1796 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1797 declarations.
1798
f837910f
MK
1799 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1800 instead of frame_read_register.
1801 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1802 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1803 SP_REGNUM.
1804 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1805 instead of frame_unwind_unsigned_register. Use
1806 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1807 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1808 instead of read_register. Use builtin_type_void_data_ptr instead
1809 of builtin_type_void_func_ptr when extracting the address of the
1810 jmp_buf.
1811 (i386_extract_return_value, i386_store_return_value,
1812 i386_pseudo_register_read, i386_pseudo_register_write): Use
1813 register_size instead REGISTER_RAW_SIZE.
1814
edcf254d
AC
18152003-08-10 Andrew Cagney <cagney@redhat.com>
1816
1817 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1818 sprintf. Make "name" constant.
1819
26604a34
MK
18202003-08-10 Mark Kettenis <kettenis@gnu.org>
1821
192285c6
MK
1822 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1823 instead of frame_read_register.
f837910f
MK
1824 (i387_print_float_info): Use get_frame_register and
1825 get_frame_register_unsigned instead of frame_register_read.
192285c6 1826
f0925262
MK
1827 * i386fbsd-nat.c: Include "i386-tdep.h".
1828 (child_resume): Make `eflags' an ULONGEST. Use
1829 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1830 instead of register_read and register_write.
1831
a144416f
MK
1832 * i386bsd-nat.c (fetch_inferior_registers,
1833 store_inferior_registers): Don't use && at the end of a line.
1834 (_initialize_i386bsd_nat): Fix typo.
1835
fec74868
MK
1836 * frame.c (_initialize_frame): Add missing backslash.
1837
87232496
MK
1838 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1839 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1840 and supply_register instead of manipulating the register buffer
1841 directly.
1842
c9b9de0b
MK
1843 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1844 * config/i386/nm-i386sol2.h
1845 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1846
26604a34
MK
1847 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1848 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1849 instructions that GCC likes to mingle into the prologue. Fixes
1850 gdb/1253 and gdb/1255.
1851
25d29d70
AC
18522003-08-09 Andrew Cagney <cagney@redhat.com>
1853
1854 Fix GDB PR cli/926.
1855 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1856 * command.h (add_setshow_uinteger_cmd): Declare.
1857 * frame.c (set_backtrace_cmd): New function.
1858 (show_backtrace_cmd): New function.
1859 * frame.c (_initialize_frame): Replace "set/show
1860 backtrace-below-main" with "set/show backtrace past-main". Add
1861 command "set/show backtrace limit".
1862 (backtrace_past_main): Rename "backtrace_below_main".
1863 (backtrace_limit): New variable.
1864 (get_prev_frame): Update. Check the backtrace_limit.
1865
9ebf4acf
AC
18662003-08-09 Andrew Cagney <cagney@redhat.com>
1867
1868 * defs.h (xstrprintf): Declare.
1869 * utils.c (xstrprintf): New function.
1870 * breakpoint.c (insert_breakpoints): Replace sprintf and
1871 non-literal format strings, with xstrprintf and cleanups.
1872 (delete_breakpoint,breakpoint_re_set): Ditto.
1873 (commands_command, insert_breakpoints): Ditto.
1874 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1875 (break_at_finish_command_1): Ditto.
1876
3771659b
AC
18772003-08-09 Andrew Cagney <cagney@redhat.com>
1878
1879 * MAINTAINERS (language support): List Adam Fedor as Objective C
1880 maintainer.
1881
b4263afa
JB
18822003-08-08 J. Brobecker <brobecker@gnat.com>
1883
1884 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1885 are now multiarched.
1886
d84defb1
JB
18872003-08-08 J. Brobecker <brobecker@gnat.com>
1888
1889 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1890 longer necessary now that hppa64 is partially multiarch'ed.
1891
f786f615
AC
18922003-08-08 Andrew Cagney <cagney@redhat.com>
1893
1894 * interps.c (interp_set): Check for a NULL "old_interp".
1895
c938e9b0
L
18962003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1897
1898 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1899 (install-only): Support DESTDIR.
1900 (uninstall): Likewise.
1901 (install-gdbtk): Likewise.
1902
9a146a11
EZ
19032003-08-08 Elena Zannoni <ezannoni@redhat.com>
1904
1905 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1906 contains something meaningful at all times.
1907
1908Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1909
62599e99 1910 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1911
56296155
BC
1912Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1913
62599e99 1914 * MAINTAINERS (write after approval): Added self.
56296155 1915
9710e734
AC
19162003-08-07 Andrew Cagney <cagney@redhat.com>
1917
1918 * inferior.h (AT_SYMBOL): Define.
1919 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1920 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1921 * mips-tdep.c (mips_call_dummy_address): Delete function.
1922 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1923 set call_dummy_address.
1924
98b3ab73
AC
19252003-08-07 Andrew Cagney <cagney@redhat.com>
1926
1927 * language.c (op_error): Delete function.
1928 (binop_type_check): Delete function.
1929 * language.h (type_op_error, range_op_error): Delete macros.
1930 (op_error): Delete declaration.
1931
2fcf52f0
AC
19322003-08-07 Andrew Cagney <cagney@redhat.com>
1933
1934 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1935
abd4220e 19362003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1937
abd4220e 1938 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1939 (x86_64_push_arguments): Skip the red zone.
abd4220e 1940
9dd5f34f
AC
19412003-08-05 Andrew Cagney <cagney@redhat.com>
1942
1943 * reggroups.c (reggroup_next): Check for the final entry.
1944
e5e78edc
AC
19452003-08-04 Andrew Cagney <cagney@redhat.com>
1946
ab4e3d93
AC
1947 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1948 * cli/cli-script.c (define_command): Call query directly, instead
1949 of passing it a buffer.
1950 * ocd.c (ocd_error): Pass error a constant format string.
1951 * remote-mips.c (mips_error): Use fputs_filtered.
1952
1062ca82
AC
1953 * solib-svr4.c (_initialize_svr4_solib): Update
1954 register_gdbarch_data call.
1955 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1956
fcc1c85c
AC
1957 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1958 (register_gdbarch_data): Delete "free" parameter. Update
1959 comments.
1960 * gdbarch.h, gdbarch.c: Re-generate.
1961 * reggroups.c (_initialize_reggroup): Update.
1962 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1963 * frame-base.c (_initialize_frame_base): Update.
1964 * frame-unwind.c (_initialize_frame_unwind): Update.
1965 * user-regs.c (_initialize_user_regs): Update.
1966 * remote.c (_initialize_remote): Update.
1967 * regcache.c (_initialize_regcache): Update.
1968
116f06ea
AC
1969 * regcache.c (xfree_regcache_descr): Delete function.
1970 (_initialize_regcache): Update call to register_gdbarch_data.
1971 (init_regcache_descr, init_legacy_regcache_descr): Use
1972 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1973
e5e78edc
AC
1974 * remote.c (free_remote_state): Delete function.
1975 (_initialize_remote): Update register_gdbarch_data.
1976 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1977 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1978
6c7d17ba
AC
19792003-08-04 Andrew Cagney <cagney@redhat.com>
1980
1981 * reggroups.c (struct reggroup_el): Define.
1982 (struct reggroups): Delete field "nr_group". Replace array
1983 "group" with a "first" to "last" linked list.
1984 (reggroups_init): Update. Allocate using gdbarch's obstack.
1985 (reggroups_free): Delete function.
1986 (add_group): Update. Add "el" parameter.
1987 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1988 (default_groups): Update.
1989 (reggroup_next): Replace reggroups.
1990 (reggroups_dump): Update.
1991 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1992 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1993 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1994
89b7795b
DJ
19952003-08-04 Daniel Jacobowitz <drow@mvista.com>
1996
1997 * Makefile.in (tui-interp.o): Update dependencies.
1998
306d9ac5
DC
19992003-08-04 David Carlton <carlton@kealia.com>
2000
2001 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2002 to internal_error call.
2003 * source.c (forward_search_command): Add "%s" format argument.
2004 (reverse_search_command): Ditto.
2005 * top.c (quit_confirm): Ditto.
2006 * cli/cli-setshow.c (do_setshow_command): Ditto.
2007 * cp-valprint.c (cp_print_class_method): Replace
2008 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2009 (cp_print_class_member): Ditto.
2010 * event-top.c (command_line_handler): Ditto.
2011 * linux-proc.c (linux_info_proc_cmd): Ditto.
2012 * p-typeprint.c (pascal_type_print_base): Ditto.
2013 * p-valprint.c (pascal_object_print_class_method): Ditto.
2014 (pascal_object_print_class_member): Ditto.
2015 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2016 * remote.c (remote_cisco_section_offsets): Ditto.
2017 * top.c (command_line_input): Ditto.
2018 * utils.c (vwarning,error_stream,quit): Ditto.
2019 * valprint.c (print_floating,print_binary_chars)
2020 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2021
57bfe177
AC
20222003-08-04 Andrew Cagney <cagney@redhat.com>
2023
2024 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2025
e546b999
AC
20262003-08-02 Andrew Cagney <cagney@redhat.com>
2027
2028 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2029 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2030 amd64fbsd-nat.c.
2031
91092ee5
AC
20322003-08-02 Andrew Cagney <cagney@redhat.com>
2033
2034 * Makefile.in: Update all dependencies and definitions.
2035
889f28e2
AF
20362003-08-02 Adam Fedor <fedor@gnu.org>
2037
2038 * linespec.c (is_objc_method_format): New function
2039 (decode_line_1, locate_first_half): Use it.
2040 Fixes PR objc/1298
2041
880bc914
AC
20422003-08-01 Andrew Cagney <cagney@redhat.com>
2043
2044 * NEWS: Mention that m32r is multi-arch.
2045 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2046 * configure.tgt: Recognize m32r-*-*.
2047 * config/m32r/tm-m32r.h: Delete file.
2048 * config/m32r/m32r.mt: New file.
2049 * m32r-rom.c (m32r_upload_command): Use hostent only when
2050 gethostname succeeds, in order to avoid a compilation
2051 warning.
2052 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2053 compiler warning.
2054
19f59343
MS
20552003-08-01 Michael Snyder <msnyder@redhat.com>
2056
2057 * sh-tdep.c (sh_frame_align): New gdbarch method.
2058 (sh_gdbarch_init): Set up frame_align method.
2059
4e7d7511
MS
20602003-07-31 Michael Snyder <msnyder@redhat.com>
2061
2062 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2063 which is already covered by the new frames infrastructure.
2064
63022984
AC
20652003-07-31 Andrew Cagney <cagney@redhat.com>
2066
2067 * user-regs.c (struct user_reg): Add "next" link.
2068 (struct user_regs): Replace "user" with "first" and "last" links.
2069 (append_user_reg): Add pre-allocated "reg" parameter.
2070 (builtin_user_regs): Provide initial value for "last".
2071 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2072 (user_regs_init): Allocate memory from the gdbarch obstack.
2073 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2074 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2075 linked list.
2076 (usernum_to_user_reg): New function.
2077 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2078 (value_of_user_reg): Use usernum_to_user_reg.
2079 (user_regs_free): Delete function.
2080 (_initialize_user_regs): Update register_gdbarch_data call.
2081
7cf6e574
DJ
20822003-07-31 Daniel Jacobowitz <drow@mvista.com>
2083
2084 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2085
c48a845b
MS
20862003-07-30 Michael Snyder <msnyder@redhat.com>
2087
4e7d7511 2088 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2089 * infcall.c (call_function_by_hand): Pass struct_addr to
2090 value_being_returned.
2091 * infcmd.c (print_return_value): Pass zero as struct_addr.
2092 * values.c (value_being_returned): If struct_addr is passed,
2093 use it instead of trying to recover it from the inferior.
2094
f0d8db19
KB
20952003-07-30 Kevin Buettner <kevinb@redhat.com>
2096
2097 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2098 the prologue analyzer won't need to attempt to extract the pc
2099 value from the woefully incomplete dummy frame.
2100 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2101 possible. Disable code which modifies the frame.
2102
e5c113a1
AC
21032003-07-28 Andrew Cagney <cagney@redhat.com>
2104
2105 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2106 to level 2.
2107 (annotate_breakpoints_table, annotate_record): Ditto.
2108 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2109 (annotate_field_name_end, annotate_field_value): Ditto.
2110 (annotate_field_end, annotate_frame_source_begin): Ditto.
2111 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2112 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2113 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2114 (annotate_frame_address_end, annotate_frame_address): Ditto.
2115 (annotate_frame_args, annotate_frame_end): Ditto.
2116 (annotate_frame_where, annotate_arg_begin): Ditto.
2117 (annotate_arg_name_end, annotate_arg_value): Ditto.
2118 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2119 (annotate_function_call, annotate_signal_name): Ditto.
2120 (annotate_signal_string, annotate_signal_name_end): Ditto.
2121 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2122 (annotate_value_begin, annotate_value_history_value): Ditto.
2123 (annotate_value_history_end, annotate_value_end): Ditto.
2124 (annotate_display_begin, annotate_display_number_end): Ditto.
2125 (annotate_display_format, annotate_display_expression): Ditto.
2126 (annotate_display_expression_end, annotate_display_value): Ditto.
2127 (annotate_display_end, annotate_array_section_begin): Ditto.
2128 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2129 (annotate_elt, annotate_array_section_end): Ditto.
2130
bb1db049
AC
21312003-07-28 Andrew Cagney <cagney@redhat.com>
2132
2133 * regcache.c (struct regcache_descr): Update comments on
2134 nr_raw_registers.
2135 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2136 sizeof_raw_register_valid_p.
2137 (init_regcache_descr): Set nr_raw_registers and
2138 sizeof_raw_register_valid_p before calling
2139 init_legacy_regcache_descr.
2140
20e6603c
AC
21412003-07-28 Andrew Cagney <cagney@redhat.com>
2142
2143 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2144 MOD NUM_REGS.
2145
db742940
DJ
21462003-07-28 Daniel Jacobowitz <drow@mvista.com>
2147
2148 * thread.c (info_threads_command): Use get_selected_frame ().
2149 Check that there is at least one non-sentinel frame.
2150
ce7f4371
SC
21512003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2152
2153 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2154 (m68hc11_pop_frame): Remove.
2155 (m68hc11_frame_saved_pc): Remove.
2156 (m68hc11_frame_chain): Remove.
2157 (m68hc11_frame_init_saved_regs): Remove.
2158 (m68hc11_init_extra_frame_info): Remove.
2159 (m68hc11_store_struct_return): Remove.
2160 (m68hc11_saved_pc_after_call): Remove.
2161
1ea653ae
SC
21622003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2163
2164 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2165 frame unwind information.
2166 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2167 and adapted for frame unwinding.
2168 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2169 (m68hc11_unwind_pc): New function.
2170 (m68hc11_frame_unwind_cache): New function to analyze frames.
2171 (m68hc11_frame_this_id): New function to create new frame struct.
2172 (m68hc11_frame_prev_register): New function to unwind a register from
2173 the frame.
2174 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2175 (m68hc11_frame_p): New function for the above.
2176 (m68hc11_frame_base_address): New function to return fp of frame.
2177 (m68hc11_frame_args_address): Update for frame.
2178 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2179 (m68hc11_unwind_sp): New function.
2180 (m68hc11_unwind_dummy_id): New function.
2181 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2182 calls.
2183
c8a7f6ac
SC
21842003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2185
2186 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2187 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2188 when we are beyond the current pc.
2189
3dc990bf
SC
21902003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2191
2192 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2193 from m68hc11_push_arguments.
2194 (m68hc11_push_arguments): Remove.
2195 (m68hc11_push_return_address): Remove.
2196 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2197 handlers; remove deprecated_extra_stack_alignment_needed.
2198
222e5d1d
AC
21992003-07-27 Andrew Cagney <cagney@redhat.com>
2200
2201 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2202 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2203 REAL_PC and not the pointer.
2204 * hppa-hpux-tdep.c: Include frame.h
2205
a7e9a47e
AC
22062003-07-27 Andrew Cagney <cagney@redhat.com>
2207
2208 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2209 GDB_MULTI_ACH_PARTIAL.
2210
7e3dd49e
AC
22112003-07-27 Andrew Cagney <cagney@redhat.com>
2212
2213 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2214 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2215 operator at start and not end of line.
2216 (decode_prologue): Ditto.
2217 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2218 frame_unwind_register_unsigned instead of
2219 frame_unwind_unsigned_register.
2220 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2221 read_register.
2222 (m32r_push_dummy_call): Use register_size instead of
2223 REGISTER_RAW_SIZE.
2224 (m32r_frame_sniffer): Replace m32r_frame_p.
2225 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2226 * m32r-rom.c (report_transfer_performance): Delete extern
2227 declaration.
2228 (m32r_load, m32r_upload_command): Use print_transfer_performance
2229 instead of report_transfer_performance.
2230 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2231 / add_show_from_set.
2232
0880807f
AC
22332003-07-26 Andrew Cagney <cagney@redhat.com>
2234
2235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2236 store_return_value and extract_struct_value_address.
2237
64ae9269
DJ
22382003-07-26 Daniel Jacobowitz <drow@mvista.com>
2239
2240 PR c++/1267
2241 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2242 NULL, default to the section containing PC.
2243
e286caf2
SC
22442003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2245
2246 * NEWS: Mention "regs" deprecated for m68hc11 too.
2247
2248 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2249 (m68hc11_print_register): New function to print out one register.
2250 (m68hc11_print_registers_info): New function to print registers.
2251 (show_regs): Deprecate and use the above.
2252 (m68hc11_gdbarch_init): Install the print_registers_info.
2253
705b278b
JJ
22542003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2255
2256 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2257 that we have a SIGTRAP before returning non-zero.
2258
63cd4198
EZ
22592003-07-23 Michal Ludvig <mludvig@suse.cz>
2260 Elena Zannoni <ezannoni@redhat.com>
2261
2262 * linespec.c (decode_line_2): Avoid crash if
2263 find_function_start_sal() returns empty record.
2264
6926787d
AS
22652003-07-23 Andreas Schwab <schwab@suse.de>
2266
2267 * ia64-tdep.c (ia64_print_insn): New function.
2268 (ia64_gdbarch_init): Set print_insn to it.
2269 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2270 deprecated_tm_print_insn_info.
2271
708cc1b6
MS
22722003-07-22 Michael Snyder <msnyder@redhat.com>
2273
2274 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2275 handle 8-bit returns (long long).
2276 (h8300h_extract_return_value): Ditto.
2277 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2278
aebd7893
AC
22792003-07-22 Andrew Cagney <cagney@redhat.com>
2280
2281 * gdbarch.c Include "gdb_obstack.h".
2282 (struct gdbarch): Add an "obstack".
2283 (alloc_gdbarch_data): Allocate the gdbarch data using
2284 GDBARCH_OBSTACK_CALLOC.
2285 (free_gdbarch_data): Delete function.
2286 (gdbarch_obstack_zalloc): New function.
2287 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2288 Assert that the architecture is not initialized.
2289 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2290 vector from the obstack.
2291 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2292 architecture obstack.
2293 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2294 (set_gdbarch_data): Assert that the data is not initialized.
2295 (struct gdbarch_data): Delete member "free".
2296 (register_gdbarch_data): Do not initialize "free".
2297 * gdbarch.h, gdbarch.c: Re-generate.
2298
153721e6
AC
22992003-07-22 Andrew Cagney <cagney@redhat.com>
2300
2301 * configure.in (build_warnings): Add -Wformat-nonliteral.
2302 * configure: Re-generate.
2303
c193f044 23042003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2305
2306 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2307
c3228f12
EZ
23082003-07-22 Elena Zannoni <ezannoni@redhat.com>
2309
2310 * findvar.c (read_var_value): Remove case for thread local storage
2311 variables. It is now entirely handled by the dwarf2 location
2312 expression code.
2313 * printcmd.c (address_info): Ditto.
2314 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2315 enumeration value.
2316 (struct symbol): Remove objfile field, which was used by
2317 LOC_THREAD_LOCAL_STATIC only.
2318 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2319 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2320 usage of objfile pointer.
2321 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2322 thread local variables.
2323 Add include of objfiles.h.
2324 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2325 storage variables.
2326 * Makefile.in (dwarf2loc.o): Update dependencies.
2327
aef9bcd2
AC
23282003-07-22 Andrew Cagney <cagney@redhat.com>
2329
2330 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2331 get_frame_base.
2332 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2333 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2334 (struct value): Add opaque declaration.
2335 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2336
d95a8903
AC
23372003-07-21 Andrew Cagney <cagney@redhat.com>
2338
2339 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2340 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2341
4db73d49
SC
23422003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2343
2344 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2345 regcache_cooked_read_unsigned instead of read_register.
2346 (m68hc11_saved_pc_after_call): Likewise.
2347 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2348 instead of write_register.
2349 (m68hc11_register_type): New function.
2350 (m68hc11_register_virtual_type): Remove.
2351 (m68hc11_store_return_value): Convert to use the regcache.
2352 (m68hc11_extract_struct_value_address): Likewise.
2353 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2354 m68hc11_register_type; undeprecate store_return_value and
2355 extract_struct_value_address.
2356
ef2b8fcd
SC
23572003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2358
2359 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2360 and translate to use regcache.
2361 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2362
625b0b97
AC
23632003-07-18 Andrew Cagney <cagney@redhat.com>
2364
2365 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2366 * gdbarch.h, gdbarch.c: Re-generate.
2367 * i386-tdep.c (i386_gdbarch_init): Do not set
2368 DWARF2_BUILD_FRAME_INFO.
2369 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2370 unconditionally.
2371 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2372 DWARF2_BUILD_FRAME_INFO.
2373
22b0d388
AC
23742003-07-18 Andrew Cagney <cagney@redhat.com>
2375
2376 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2377 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2378
1ce5d6dd
AC
23792003-07-18 Andrew Cagney <cagney@redhat.com>
2380
2381 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2382 frame_unwind_address_in_block, instead of frame_pc_unwind.
2383 (dwarf2_frame_cache): Ditto.
2384
e6e5e94c
AC
23852003-07-18 Andrew Cagney <cagney@redhat.com>
2386
2387 * user-regs.h (struct gdbarch): Declare opaque.
2388 * ui-out.h (struct ui_file): Declare opaque.
2389 * dwarf2-frame.h (struct frame_info): Declare opaque.
2390
5483d879
KW
23912003-07-18 Kris Warkentin <kewarken@qnx.com>
2392
2393 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2394 #include "...".
2395 (procfs_meminfo): Change strerror to safe_strerror.
2396 (procfs_can_run): Remove K&R badness.
2397
278a7cf7
MS
23982003-07-17 Michael Snyder <msnyder@redhat.com>
2399
2400 * remote-sim.c: Comment typo fix.
2401
606e3b82
AC
24022003-07-17 Andrew Cagney <cagney@redhat.com>
2403
2404 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2405 configure.
2406 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2407 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2408 GDB_MULTI_ARCH_PARTIAL.
2409
c43af07c
EZ
24102003-07-17 Elena Zannoni <ezannoni@redhat.com>
2411
2412 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2413 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2414 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2415
3b85b0f1
TR
24162003-07-16 Theodore A. Roth <troth@openavr.org>
2417
2418 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2419 found.
2420 (avr_frame_unwind_cache): Don't unwind FP for main.
2421 Update a comment.
2422 Save the computed prev_sp.
2423 (avr_saved_regs_unwinder): Remove function.
2424 (avr_frame_prev_register): Use PC unwind logic from
2425 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2426
336d1bba
AC
24272003-07-16 Andrew Cagney <cagney@redhat.com>
2428
2429 * frame-base.h (frame_base_p_ftype): Delete definition.
2430 (frame_base_append_predicate): Delete declaration.
2431 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2432 (frame_unwind_append_predicate): Delete declaration.
2433 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2434 (append_predicate): Delete parameter "p".
2435 (frame_unwind_append_predicate): Delete function.
2436 (frame_unwind_append_sniffer): Update call to append_predicate.
2437 (frame_unwind_free): Delete function.
2438 (_initialize_frame_unwind): Pass NULL as "free" to
2439 register_gdbarch_data.
2440 (frame_unwind_init): Append the dummy_frame_sniffer.
2441 (frame_unwind_find_by_frame): Simplify.
2442 * frame-base.c (struct frame_base_table): Delete field "p".
2443 (append_predicate): Delete parameter "p".
2444 (frame_base_append_predicate): Delete function.
2445 (frame_base_append_sniffer): Update call to append_predicate.
2446 (frame_base_free): Delete function.
2447 (frame_base_find_by_frame): Simplify.
2448 (_initialize_frame_base): Pass NULL as "free" to
2449 register_gdbarch_data.
2450 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2451 (x86_64_sigtramp_frame_sniffer): Replace
2452 "x86_64_sigtramp_frame_p".
2453 (x86_64_init_abi): Set the frame unwind sniffers.
2454 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2455 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2456 (m68k_gdbarch_init): Set the frame unwind sniffers.
2457 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2458 "i386_sigtramp_frame_p".
2459 (i386_frame_sniffer): Replace "i386_frame_p".
2460 (i386_gdbarch_init): Set the frame unwind sniffers.
2461 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2462 (avr_gdbarch_init): Set the frame unwind sniffers.
2463 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2464 "alpha_sigtramp_frame_p"
2465 (alpha_heuristic_frame_sniffer): Replace
2466 "alpha_heuristic_frame_p".
2467 (alpha_gdbarch_init): Set the frame unwind sniffers.
2468 (alpha_dwarf2_init_abi): Ditto.
2469 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2470 "alpha_debug_frame_p".
2471 (alpha_mdebug_frame_base_sniffer): Replace
2472 "alpha_mdebug_frame_base_p".
2473 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2474 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2475 (d10v_gdbarch_init): Set the frame unwind sniffer.
2476 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2477 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2478 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2479 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2480 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2481 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2482
48db5a3c
CV
24832003-07-16 Michael Snyder <msnyder@redhat.com>
2484
2485 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2486 should go thru sh_dsp_register_sim_regno, else the dsp regs
2487 will not get the right values.
2488
24892003-07-16 Corinna Vinschen <vinschen@redhat.com>
2490
2491 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2492 deprecated_store_floating by call to store_typed_floating.
2493 (sh_sh4_register_convert_to_raw): Substitute call to
2494 deprecated_extract_floating by call to extract_typed_floating.
2495
24962003-07-16 Corinna Vinschen <vinschen@redhat.com>
2497
2498 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2499
25002003-07-16 Corinna Vinschen <vinschen@redhat.com>
2501
2502 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2503 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2504 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2505 as possible.
2506 (do_pseudo_register): Remove.
2507 (sh_push_dummy_code): New function.
2508 (sh64_store_struct_return): Rename from sh_store_struct_return.
2509 Only called for sh64 now.
2510 (sh_extract_struct_value_address): Regcache'ify.
2511 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2512 and accomodate new tasks.
2513 (sh64_push_return_address): Rename from sh_push_return_address.
2514 Only called for sh64 now.
2515 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2516 Regcache'ify.
2517 (sh3e_sh4_extract_return_value): Regcache'ify.
2518 (sh_default_store_return_value): Ditto.
2519 (sh3e_sh4_store_return_value): Ditto.
2520 (sh_default_register_byte): Remove.
2521 (sh_sh4_register_byte): Remove.
2522 (sh_default_register_raw_size): Remove.
2523 (sh_sh4_register_raw_size): Remove.
2524 (sh_register_virtual_size): Remove.
2525 (sh_sh3e_register_virtual_type): Remove.
2526 (sh_sh3e_register_type): New function.
2527 (sh_sh4_register_virtual_type): Remove.
2528 (sh_sh4_register_type): New function.
2529 (sh_default_register_virtual_type): Remove.
2530 (sh_default_register_type): New function.
2531 (do_fv_register_info): Add parameters to accomodate call from
2532 sh_print_registers_info.
2533 (do_dr_register_info): Ditto.
2534 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2535 Add parameters to accomodate call from sh_print_registers_info.
2536 (sh_do_fp_register): Ditto.
2537 (sh64_do_pseudo_register): Call do_dr_register_info,
2538 do_fv_register_info and sh_do_fp_register with default parameters.
2539 (sh_do_register): Add parameters to accomodate call from
2540 sh_print_registers_info.
2541 (sh_print_register): Ditto.
2542 (sh_print_registers_info): Rename from sh_do_registers_info.
2543 Add parameters to be used as gdbarch_print_registers_info
2544 implementation. Accomodate removed do_pseudo_register function
2545 pointer.
2546 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2547 function pointer. Call sh_print_register with default parameters.
2548 (sh64_do_registers_info): Call sh_print_registers_info instead of
2549 sh_do_registers_info.
2550 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2551 detection of deprecated vs. non-deprecated functionality.
2552 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2553 function pointer assignments by direct function calls.
2554
e8a89fe2
AC
25552003-07-15 Andrew Cagney <cagney@redhat.com>
2556
2557 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2558 (frame_register_unwind, create_new_frame): Ditto.
2559 (legacy_get_prev_frame, get_frame_type): Ditto.
2560 (get_frame_base_address): Use frame_base_find_by_frame.
2561 (get_frame_locals_address): Use frame_base_find_by_frame.
2562 (get_frame_args_address): Use frame_base_find_by_frame.
2563 * frame-base.h (frame_base_sniffer_ftype): Declare.
2564 (frame_base_append_sniffer): Declare.
2565 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2566 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2567 (frame_base_append_sniffer): New function.
2568 (frame_base_append_predicate): Add a NULL sniffer.
2569 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2570 (struct frame_base_table): Add "sniffer".
2571 (frame_base_free): Free the "sniffer" table.
2572 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2573 (frame_unwind_append_sniffer): Declare.
2574 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2575 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2576 (struct frame_unwind_table): Add "sniffer", delete "middle".
2577 (append_predicate): Add "sniffer" parameter, append the sniffer.
2578 (frame_unwind_init): Update append_predicate call.
2579 (frame_unwind_append_sniffer): New function.
2580 (frame_unwind_append_predicate): Update append_predicate call.
2581 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2582
0714963c
AC
25832003-07-15 Andrew Cagney <cagney@redhat.com>
2584
2585 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2586 before code inhibiting repeated unwind attempts. Add to
2587 commentary on that test's problems.
2588 * blockframe.c (inside_main_func): Look for "main" in the minimal
2589 symbol table.
2590 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2591 identical.
2592
d9170e22
AC
25932003-07-15 Andrew Cagney <cagney@redhat.com>
2594
2595 * complaints.c (struct explanation): Define.
2596 (struct complaints): Change type of "explanation" to "struct
2597 explanation".
2598 (symfile_explanations): Convert to a "struct explanation" table.
2599 (vcomplaint): Update.
2600
eba29c8c
ML
26012003-07-15 Michal Ludvig <mludvig@suse.cz>
2602
2603 * x86-64-linux-nat.c (regmap): Removed.
2604 (supply_gregset, fill_gregset): Call
2605 x86_64_linux_(fill,supply)_gregset functions.
2606 * x86-64-linux-tdep.c (USER_*): New defines.
2607 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2608 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2609 New functions.
2610 (fetch_core_registers): Ditto.
2611 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2612 * x86-64-linux-tdep.h: New file.
2613 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2614 and core-regset.o.
2615 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2616
68cc0bfb
MK
26172003-07-13 Mark Kettenis <kettenis@gnu.org>
2618
88a115f7
MK
2619 * x86-64-tdep.c (x86_64_store_return_value): Use
2620 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2621
68cc0bfb
MK
2622 * configure.host: Add x86_64-*-freebsd*.
2623 * configure.tgt: Add x86_64-*-freebsd*.
2624 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2625 * amd64fbsd-nat.c: New file.
2626 * amd64fbsd-tdep.c: New file.
2627 * config/i386/nm-fbsd64.h: New file.
2628 * config/i386/fbsd64.mh: New file.
2629 * config/i386/fbsd64.mt: New file.
2630
138e7be5
MK
26312003-07-11 Mark Kettenis <kettenis@gnu.org>
2632
2633 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2634 `sc_regs_offset' and `sc_fpregs_offset'.
2635 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2636 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2637 (alpha_sigtramp_register_address): Rewrite to use new members of
2638 `struct gdbarch_tdep'.
2639 (alpha_gdbarch_init): Initialize new members of struct
2640 gdbarch_tdep'.
2641 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2642 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2643 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2644 (alphafbsd_pc_in_sigtramp): Implement.
2645 (alphafbsd_sigtramp_offset): New function.
2646 (alphafbsd_sigcontext_addr): New function.
2647 (alphafbsd_init_abi): Initialize signal trampoline related members
2648 of `struct gdbarch_tdep'.
2649 (_initialize_alphafbsd_tdep): Add prototype.
2650
95303a68
TR
26512003-07-11 Theodore A. Roth <troth@openavr.org>
2652
ba292e4c
TR
2653 * Makefile.in (install-only): Quote sed expression when generating
2654 transformed_name.
95303a68 2655
6896c0c7
RH
26562003-07-11 Richard Henderson <rth@redhat.com>
2657
2658 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2659 * dwarf2-frame.c: Include complaints.h.
2660 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2661 variable initialization; return NULL on error.
2662 (decode_frame_entry): New.
2663
8edd5d01
AC
26642003-07-11 Andrew Cagney <cagney@redhat.com>
2665
c4a09524
AC
2666 * frame.h (frame_address_in_block): Delete declaration.
2667 * blockframe.c (frame_address_in_block): Delete function.
2668 (get_frame_block): Use get_frame_address_in_block.
2669 (block_innermost_frame): Ditto.
2670 * stack.c (print_frame, backtrace_command_1): Ditto.
2671
8edd5d01
AC
2672 * frame.h (get_frame_address_in_block): Declare.
2673 (frame_unwind_address_in_block): Declare.
2674 * frame.c (frame_unwind_address_in_block): New function.
2675 (get_frame_address_in_block): New function.
2676
f7968451
AC
26772003-07-10 Andrew Cagney <cagney@redhat.com>
2678
2679 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2680 pre-default. Note: re-generate has no effect.
2681
ae99b398
AC
26822003-07-10 Andrew Cagney <cagney@redhat.com>
2683
2684 * gdbarch.sh: When a variable, but not a function, compare against
2685 0. Fix problem in previous patch.
2686 * gdbarch.c: Re-generate.
2687
956ac328
AC
26882003-07-10 Andrew Cagney <cagney@redhat.com>
2689
2690 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2691 functions against NULL, not 0.
2692 * gdbarch.c: Re-generate.
2693
287c3240
FF
26942003-07-10 Fred Fish <fnf@ninemoons.com>
2695
2696 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2697 null string instead of a null pointer.
2698 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2699
32f63c4b
MS
27002003-07-09 Michael Snyder <msnyder@redhat.com>
2701
2702 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2703
402ecd56
MK
27042003-07-09 Mark Kettenis <kettenis@gnu.org>
2705
2706 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2707 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2708 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2709 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2710 * x86-64-tdep.c: ... from here.
2711
c481dac7
AS
27122003-07-09 Andreas Schwab <schwab@suse.de>
2713
2714 * m68k-tdep.h (enum struct_return): Define.
2715 (struct gdbarch_tdep): Add struct_return.
2716 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2717 bytes are padded to the right, not to the left. Pass struct value
2718 address in register %a1, not on stack.
2719 (m68k_use_struct_convention): New function.
2720 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2721 struct_return in tdep to pcc_struct_return.
2722 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2723 reg_struct_return.
2724
64176fa3
JB
27252003-07-09 Joel Brobecker <brobecker@gnat.com>
2726
2727 * somread.c (som_symfile_offsets): Fix compilation error.
2728
96a4ee76
AC
27292003-07-09 Andrew Cagney <cagney@redhat.com>
2730
2731 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2732 Add comments about the checks.
2733
1517c6d1
AC
27342003-07-08 Andrew Cagney <cagney@redhat.com>
2735
2736 * Makefile.in: Make dependency section headers consistent.
2737 (config_h): Move to $BUILD headers section.
2738 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2739 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2740 (ada-exp.tab.c): Move to YACC/LEX section.
2741 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2742 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2743
dc5dd1eb
KW
27442003-07-08 Kris Warkentin <kewarken@qnx.com>
2745
2746 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2747 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2748 of strerror with safe_strerror, use ISO C function definitions,
2749 and replace instances of sprintf with snprintf.
dc5dd1eb 2750
612dde91
AC
27512003-07-07 Andrew Cagney <cagney@redhat.com>
2752
2753 * frame.c (get_prev_frame): Enable check for identical frames.
2754 Update comments. Update error messages.
2755
492c11d3
JB
27562003-07-07 Joel Brobecker <brobecker@gnat.com>
2757
2758 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2759
376a5a49
JB
27602003-07-07 Joel Brobecker <brobecker@gnat.com>
2761
2762 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2763 sort_symtab_syms, no longer necessary.
2764
22b4a9ad
JB
27652003-07-07 Joel Brobecker <brobecker@gnat.com>
2766
2767 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2768
5bbcb741
JB
27692003-07-07 Joel Brobecker <brobecker@gnat.com>
2770
2771 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2772 (mips_register_byte): Likewise.
2773
c139e7d9
DJ
27742003-07-07 Daniel Jacobowitz <drow@mvista.com>
2775
2776 * Makefile.in (sparc_tdep_h): New.
2777 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2778 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2779 * sparc-linux-nat.c: Include "sparc-tdep.h".
2780 * sparc-nat.c: Likewise.
2781 * sparc-tdep.c: Likewise.
2782 * sparc64nbsd-nat.c: Likewise.
2783 * sparcnbsd-nat.c: Likewise.
2784 * sparcnbsd-tdep.c: Likewise.
2785 * sparc-tdep.h: New file.
2786 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2787 and sparc_npc_regnum.
2788
fd8f87c5
DJ
27892003-07-07 Daniel Jacobowitz <drow@mvista.com>
2790
2791 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2792 (mips_linux_cannot_store_register): List supported instead of
2793 unsupported registers.
2794
13adf674
DJ
27952003-07-07 Daniel Jacobowitz <drow@mvista.com>
2796
2797 * disasm.c (dump_insns): Separate instructions from addresses.
2798
8de307e0
AS
27992003-07-07 Andreas Schwab <schwab@suse.de>
2800
2801 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2802 dependencies.
2803 * m68k-tdep.c (NUM_FREGS): Delete.
2804 (SIG_PC_FP_OFFSET): Delete.
2805 (TARGET_M68K): Delete.
2806 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2807 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2808 P_MOVEL_SP, P_MOVEML_SP): Define.
2809 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2810 P_TRAP): Delete.
2811 (m68k_register_raw_size): Delete.
2812 (m68k_register_virtual_size): Delete.
2813 (m68k_register_type): Renamed from m68k_register_virtual_type and
2814 add gdbarch argument.
2815 (m68k_store_struct_return): Delete.
2816 (m68k_deprecated_extract_return_value): Delete.
2817 (m68k_deprecated_extract_struct_value_address): Delete.
2818 (m68k_frame_chain): Delete.
2819 (m68k_frame_saved_pc): Delete.
2820 (m68k_fix_call_dummy): Delete.
2821 (m68k_push_dummy_frame): Delete.
2822 (m68k_pop_frame): Delete.
2823 (m68k_extract_return_value): New function.
2824 (m68k_store_return_value): Rewrite using regcache.
2825 (m68k_extract_struct_value_address): Rewrite using regcache.
2826 (m68k_push_dummy_call): New function.
2827 (struct m68k_frame_cache): Define.
2828 (m68k_alloc_frame_cache): New function.
2829 (m68k_analyze_frame_setup): New function.
2830 (m68k_analyze_register_saves): New function.
2831 (m68k_analyze_prologue): New function.
2832 (m68k_skip_prologue): Rewrite using above functions.
2833 (m68k_unwind_pc): New function.
2834 (m68k_frame_cache): New function.
2835 (m68k_frame_this_id): New function.
2836 (m68k_frame_prev_register): New function.
2837 (m68k_frame_unwind): New variable.
2838 (m68k_frame_p): New function.
2839 (m68k_sigtramp_frame_cache): New function.
2840 (m68k_sigtramp_frame_this_id): New function.
2841 (m68k_sigtramp_frame_prev_register): New function.
2842 (m68k_sigtramp_frame_unwind): New variable.
2843 (m68k_sigtramp_frame_p): New function.
2844 (m68k_frame_base_address): New function.
2845 (m68k_frame_base): New function.
2846 (m68k_unwind_dummy_id): New function.
2847 (fill_gregset): Use regcache_collect.
2848 (fill_fpregset): Likewise.
2849 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2850 defined.
2851 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2852 deprecated_init_frame_pc, deprecated_store_struct_return,
2853 deprecated_extract_return_value, deprecated_store_return_value,
2854 deprecated_frame_chain, deprecated_frame_saved_pc,
2855 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2856 deprecated_register_virtual_size,
2857 deprecated_max_register_raw_size,
2858 deprecated_max_register_virtual_size,
2859 deprecated_register_virtual_type, deprecated_register_size,
2860 deprecated_register_byte, deprecated_register_bytes,
2861 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2862 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2863 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2864 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2865 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2866 deprecated_push_dummy_frame, deprecated_pop_frame,
2867 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2868 only if SYSCALL_TRAP is defined. Set extract_return_value,
2869 store_return_value, extract_struct_value_address, register_type,
2870 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2871 predicates.
2872 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2873 M68K_MAX_REGISTER_SIZE): Define.
2874 (struct m68k_sigtramp_info): Define.
2875 (struct gdbarch_tdep): Add get_sigtramp_info.
2876 * m68klinux-nat.c (fetch_register): Use register_size instead of
2877 REGISTER_RAW_SIZE. Don't put assignment in if.
2878 (store_register): Likewise.
2879 (fetch_inferior_registers): Likewise.
2880 (store_inferior_registers): Likewise.
2881 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2882 (m68k_linux_frame_saved_pc): Delete.
2883 (m68k_linux_sigcontext_reg_offset,
2884 m68k_linux_ucontext_reg_offset): Define.
2885 (m68k_linux_get_sigtramp_info): New function.
2886 (m68k_linux_extract_return_value): Rewrite using regcache.
2887 (m68k_linux_store_return_value): Likewise.
2888 (m68k_linux_extract_struct_value_address): Likewise.
2889 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2890 Don't set deprecated_frame_saved_pc,
2891 deprecated_extract_return_value, deprecated_store_return_value,
2892 deprecated_extract_struct_value_address. Set
2893 extract_return_value, store_return_value,
2894 extract_struct_value_address.
2895
eb8bc282
AC
28962003-07-07 Andrew Cagney <cagney@redhat.com>
2897
2898 * expprint.c: Include "user-regs.h" instead of "frame.h".
2899 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2900 frame_map_regnum_to_name.
2901 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2902 (frame_map_name_to_regnum): Simplify, call
2903 user_reg_map_name_to_regnum.
2904 (frame_map_regnum_to_name): Simplify, call
2905 user_reg_map_regnum_to_name.
2906 (frame_register_unwind): Update.
2907 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2908 (_initialize_frame_reg): Call user_reg_add_builtin.
2909 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2910 (value_of_register): Use value_of_user_reg.
2911 * eval.c (evaluate_subexp_standard): Update.
2912 * parse.c (write_dollar_variable): Update.
2913 * d10v-tdep.c (d10v_print_registers_info): Update.
2914 * infcmd.c (registers_info): Update.
2915 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2916 (builtin_regs_h): Delete macro.
2917 (user_regs_h): Define.
2918 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2919 (builtin-regs.o): Delete target.
2920 (user-regs.o): Specify dependencies.
2921 (expprint.o): Update dependencies.
2922 (findvar.o): Update dependencies.
2923 (frame.o): Update dependencies.
2924 (std-regs.o): Update dependencies.
2925
9f476a01
CF
29262003-07-06 Christopher Faylor <cgf@redhat.com>
2927
2928 * win32-nat.c (solib_symbols_add): Use one variable for all section
2929 address stuff. Pass variable rather than address of variable to
2930 safe_symbol_file_add.
2931
a731b831
AS
29322003-07-06 Andreas Schwab <schwab@suse.de>
2933
2934 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2935
9f83329d
JB
29362003-07-04 Joel Brobecker <brobecker@gnat.com>
2937
2938 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2939
27e28cc5
KW
29402003-07-04 Kris Warkentin <kewarken@qnx.com>
2941
2942 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2943
29442003-07-04 Kris Warkentin <kewarken@qnx.com>
2945
2946 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2947 * config/i386/nto.mh: New file.
2948 * config/i386/nm-nto.h: New file.
2949 * configure.host: Add i[3456]86-*-nto*.
2950
100f2e98
JB
29512003-07-03 Joel Brobecker <brobecker@gnat.com>
2952
2953 * remote-vx.c (vx_add_symbols): Fix compilation error.
2954
e23457df
AC
29552003-07-03 Andrew Cagney <cagney@redhat.com>
2956
2957 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2958 * gdbarch.h, gdbarch.c: Re-generate.
2959 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2960 (legacy_register_name): Declare.
2961 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2962 (REGISTER_NAME): Define.
2963 * sparc-tdep.c (legacy_register_name): New function.
2964 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2965 (REGISTER_NAME): Define.
2966 (hppa64_register_name): Declare.
2967 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2968 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2969 (hppa64_register_name): New function.
2970 (hppa_register_name): New function.
2971 * arch-utils.c (legacy_register_name): Delete.
2972 * arch-utils.h (legacy_register_name): Delete.
2973
38caaeec
DJ
29742003-07-03 Daniel Jacobowitz <drow@mvista.com>
2975
2976 * cli/cli-interp.c (cli_interpreter_resume): Update the
2977 cli_uiout's stream to gdb_stdout.
2978
dadd712e
AC
29792003-07-03 Andrew Cagney <cagney@redhat.com>
2980
2981 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2982 predicate.
2983 * gdbarch.h, gdbarch.c: Re-generate.
2984 * regcache.c (init_regcache_descr): Use legacy code when either
2985 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2986
c7f1390e
DJ
29872003-07-02 Daniel Jacobowitz <drow@mvista.com>
2988
2989 * NEWS: Move "set logging" entry into GDB 6.0 section.
2990
4bc8c588
JB
29912003-07-02 Jim Blandy <jimb@redhat.com>
2992
a9dd42f1
JB
2993 * s390-tdep.c (struct frame_extra_info): new member:
2994 'stack_bought_valid'.
2995 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2996 initialize fextra_info->stack_bought.
2997 (s390_frameless_function_invocation): Don't trust the value of
2998 fextra_info_ptr->stack_bought unless
2999 fextra_info->stack_bought_valid is set.
3000
4bc8c588
JB
3001 New S390 prologue analyzer.
3002 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3003 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3004 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3005 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3006 compute_x_addr, s390_on_stack, s390_store,
3007 s390_get_signal_frame_info): New functions.
3008 (S390_NUM_SPILL_SLOTS): New macro.
3009 (s390_get_frame_info): Rewritten.
3010 (is_arg_reg): Deleted.
3011
3012 Break out the decoding of S/390 instructions into separate
3013 functions, to make it more legible, and easier to check
3014 against the spec.
3015 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3016 is_rx, is_rxe): New functions.
3017 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3018 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3019 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3020 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3021 enums for opcode values. (Is this an improvement?)
3022
fd13a04a
AC
30232003-07-02 Andrew Cagney <cagney@redhat.com>
3024
3025 * i386-tdep.c: Revert change committed as part of trad-frame code
3026 below.
3027
3f8091c1
DJ
30282003-07-02 Daniel Jacobowitz <drow@mvista.com>
3029
3030 * breakpoint.c (insert_catchpoint): Make static.
3031
8dd5115e
AS
30322003-07-02 Andreas Schwab <schwab@suse.de>
3033
3034 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3035 former ia64_push_arguments and ia64_push_return_address, and use
3036 regcache functions instead of read/write_register.
3037 (ia64_gdbarch_init): Set push_dummy_call instead of
3038 deprecated_push_arguments and deprecated_push_return_address.
3039
a2229c23
AJ
30402003-07-01 Andreas Jaeger <aj@suse.de>
3041
3042 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3043 before the call.
3044 Set %rax only to number of SSE registers used.
3045
3b3850e8
AC
30462003-07-01 Andrew Cagney <cagney@redhat.com>
3047
3048 * trad-frame.h: Update comments, a -1 .addr is reserved.
3049 (trad_frame_value_p, trad_frame_addr_p): Declare.
3050 (trad_frame_reg_p): Declare.
3051 (trad_frame_set_value): Rename trad_frame_register_value.
3052 (trad_frame_set_unknown): Declare.
3053 * trad-frame.c (trad_frame_realreg_p): New function.
3054 (trad_frame_addr_p, trad_frame_value_p): New function.
3055 (trad_frame_set_unknown): New function.
3056 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3057 (trad_frame_prev_register): Use trad_frame_realreg_p,
3058 trad_frame_addr_p and trad_frame_value_p.
3059 (trad_frame_set_value): Rename trad_frame_register_value.
3060 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3061 and trad_frame_set_value.
a2229c23 3062
4d819d0e
JB
30632003-06-30 Jim Blandy <jimb@redhat.com>
3064
3065 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3066 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3067 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3068 for 16 registers, and then 32 more bytes.
3069 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3070 New macros.
3071 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3072 Move up in the file, since it's now used by is_simple_arg.
3073 (is_simple_arg): Don't assume registers are four bytes long.
3074 Exclude all double arguments. Extended floats are not simple
3075 args.
3076 (is_power_of_two): New function.
3077 (pass_by_copy_ref): Call is_power_of_two, and check that the
3078 length fits in a register, rather than listing all the acceptable
3079 sizes. Extended floats are not passed by reference.
3080 (s390_push_arguments): Don't assume registers are four bytes long.
3081 Reserve an argument register to point to the buffer for structures
3082 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3083 S390_STACK_FRAME_OVERHEAD.
3084
1ad828f1
AS
30852003-06-30 Andreas Schwab <schwab@suse.de>
3086
3087 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3088 format error message.
3089
39b00981
JB
30902003-06-30 Joel Brobecker <brobecker@gnat.com>
3091
3092 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3093
b2a7f303
DC
30942003-06-30 David Carlton <carlton@kealia.com>
3095
3096 Band-aid for PR c++/1245.
3097 * Makefile.in (cp-support.o): Depend on complaints_h.
3098 * cp-support.c: Include complaints.h. Add declaration for
3099 find_last_component.
3100 (cp_find_first_component): Separate code into
3101 cp_find_first_component_aux.
3102 (cp_find_first_component_aux): Call demangled_name_complaint.
3103 (demangled_name_complaint): New.
3104
a257b5bb
AC
31052003-06-30 Andrew Cagney <cagney@redhat.com>
3106
3107 * remote.c (remote_write_bytes): Explicitly compute and then use
3108 the payload size. Update comments to reflect. Fixes problem of
3109 GDB not sending small packets as found by Fred Fish.
3110
0a2cfde4
AC
31112003-06-30 Andrew Cagney <cagney@redhat.com>
3112
3113 * remote.c (remote_async_wait): Fix -Wformat problem.
3114
3fcb8548
AC
31152003-06-29 Andrew Cagney <cagney@redhat.com>
3116
3117 * remote.c (remote_wait): Call error, and not warning, when the
3118 packet is corrupt.
3119 (remote_async_wait): Ditto.
3120
9f9970a3
DJ
31212003-06-29 Daniel Jacobowitz <drow@mvista.com>
3122
3123 * sparc-tdep.c (sparc_y_regnum): Make external again.
3124
83a8ccca
DJ
31252003-06-29 Daniel Jacobowitz <drow@mvista.com>
3126
3127 * cli/cli-logging.c (pop_output_files): Add void to function
3128 definition.
3129
d2cf594a
AC
31302003-06-29 Andrew Cagney <cagney@redhat.com>
3131
3132 * frame.c (frame_register_unwind): Use unsigned char when dumping
3133 the buffer contents.
3134
0fac0b41
DJ
31352003-06-28 Daniel Jacobowitz <drow@mvista.com>
3136
3137 * cli/cli-logging.c: New file.
3138 * cli-out.c (struct ui_out_data): Add original_stream.
3139 (cli_redirect): New function.
3140 (cli_ui_out_impl): Add cli_redirect.
3141 (cli_out_new): Initialize original_stream.
3142 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3143 (uo_redirect, ui_out_redirect): New.
3144 * ui-out.h (struct ui_out_impl): Add redirect member.
3145 (redirect_ftype): New.
3146 (ui_out_redirect): Add prototype.
3147 * Makefile.in: Add rules for cli-logging.c.
3148 * NEWS: Mention "set logging".
3149
88a07d7c
EZ
31502003-06-27 Elena Zannoni <ezannoni@redhat.com>
3151
3152 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3153
4eb58876
AC
31542003-06-27 Andrew Cagney <cagney@redhat.com>
3155
3156 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3157 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3158 * avr-tdep.c (avr_call_dummy_address): Delete function.
3159 (avr_gdbarch_init): Do not set call_dummy_address.
3160
1549f619
EZ
31612003-06-27 Elena Zannoni <ezannoni@redhat.com>
3162
3163 * symfile.c (syms_from_objfile): Move variables to inner block.
3164 Move the checks for the non-mainline case a bit earlier to avoid
3165 doing some useless computations.
3166
3cb3398d
EZ
31672003-06-27 Elena Zannoni <ezannoni@redhat.com>
3168
3169 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3170
3799ccc6
EZ
31712003-06-26 Elena Zannoni <ezannoni@redhat.com>
3172
3173 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3174 sections.
3175
ce1f6491
MC
31762003-06-26 Michael Chastain <mec@shout.net>
3177
3178 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3179 gdb/testsuite/gdb.c++/pr-1210.exp.
3180
d958dfd0
AC
31812003-06-26 Andrew Cagney <cagney@redhat.com>
3182
3183 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3184 altivec_expression.h and altivec_registers.h.
3185
d31431ed
AC
31862003-06-26 Andrew Cagney <cagney@redhat.com>
3187
3188 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3189 info->mach when MIPS16. Patch suggested by Fred Fish.
3190
714b1282
AC
31912003-06-26 Andrew Cagney <cagney@redhat.com>
3192
3193 * utils.c (internal_vproblem): Print the problem to a reason
3194 buffer and then pass to query. Make the msg variable more local.
3195
42efa47a
AC
31962003-06-26 Andrew Cagney <cagney@redhat.com>
3197
3198 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3199 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3200 * gdbarch.h, gdbarch.c: Re-generate.
3201 * frame-base.c (default_frame_args_address): Update. Use
3202 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3203 not available.
3204 (default_frame_locals_address): Ditto for
3205 DEPRECATED_FRAME_LOCALS_ADDRESS.
3206 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3207 (vax_frame_num_args): Update.
3208 (vax_gdbarch_init): Update.
3209 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3211 * mcore-tdep.c (mcore_gdbarch_init): Update.
3212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3213 * ia64-tdep.c (ia64_gdbarch_init): Update.
3214 * symtab.h (address_class): Update comments.
3215 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3216 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3217 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3218 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3219 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3220 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3221 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3222 * alpha-mdebug-tdep.c: Update.
3223 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3224
8ffd9b1b
AJ
32252003-06-26 Andreas Jaeger <aj@suse.de>
3226
3227 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3228 of SSE registers so that varargs functions work. Rework handling
3229 of passing arguments on the stack.
3230 (x86_64_store_return_value): Return double and float values in SSE
3231 register.
3232
e8ac10a6
MC
32332003-06-24 Michael Chastain <mec@shout.net>
3234
3235 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3236 the "constructor breakpoints ignored" bug.
3237
986af8e6
DC
32382003-06-25 David Carlton <carlton@kealia.com>
3239
3240 * MAINTAINERS: Update e-mail address.
3241
d64558a5
JB
32422003-06-24 Jim Blandy <jimb@redhat.com>
3243
e538d2d7
JB
3244 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3245
02631ec0
JB
3246 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3247 function.
3248 (ppc_linux_init_abi): Register it as the
3249 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3250
e716d87a
JB
3251 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3252 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3253 method.
3254
d64558a5
JB
3255 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3256 (ppc64_standard_linkage_target): Use it.
3257
449a5da4
AC
32582003-06-23 Andrew Cagney <cagney@redhat.com>
3259
3260 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3261 for 0 "int0" and 4 "int32" sized registers.
3262 * gdbtypes.c (builtin_type_int0): Define.
3263 (build_gdbtypes): Initialize builtin_type_int0.
3264 * gdbtypes.h (builtin_type_int0): Declare.
3265
b2a02dda
SC
32662003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3267
3268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3269 as characters are unsigned.
3270
fba3138e
DJ
32712003-06-22 Daniel Jacobowitz <drow@mvista.com>
3272
3273 PR gdb/1179
3274 * dwarfread.c (struct_type): Skip static fields without crashing.
3275
f6c8180b
AC
32762003-06-22 Andrew Cagney <cagney@redhat.com>
3277
3278 GDB 6.0 branch created.
f2c06f52
AC
3279 * README: Update.
3280 * PROBLEMS: Update. Empty.
3281 * NEWS: Update.
f6c8180b 3282
ae822768
DJ
32832003-06-22 Daniel Jacobowitz <drow@mvista.com>
3284
3285 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3286 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3287
261de166
AC
32882003-06-22 Andrew Cagney <cagney@redhat.com>
3289
3290 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3291 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3292 Velikov.
3293
30e94205
DJ
32942003-06-22 Daniel Jacobowitz <drow@mvista.com>
3295
3296 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3297 compilers.
3298
9e14d721
DJ
32992003-06-21 Daniel Jacobowitz <drow@mvista.com>
3300
3301 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3302 argument of val_print.
3303 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3304 to the address argument of baseclass_offset or target_read_memory.
3305 Do add it to the argument of cp_print_value_fields.
3306
a4b8ebc8
AC
33072003-06-21 Andrew Cagney <cagney@redhat.com>
3308
3309 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3310 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3311 instead of 0..NUM_REGS.
3312 (mips_register_reggroup_p): New function.
3313 (mips_pseudo_register_write): New function.
3314 (mips_pseudo_register_read): New function.
3315 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3316 based on the register's type.
3317 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3318 cooked.
3319 (mips_get_saved_register): Simplify. Assert that REGNO is a
3320 pseudo / cooked.
3321 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3322 (mips_register_type): Replace mips_register_virtual_type. Map
3323 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3324 when available.
3325 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3326 that the register is cooked / virtual.
3327 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3328 Only get the extra info when needed.
3329 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3330 (mips32_heuristic_proc_desc): Fetch the cooked register.
3331 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3332 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3333 (mips_print_register): Use gdbarch_register_type, instead of
3334 REGISTER_VIRTUAL_TYPE.
3335 (print_gp_register_row): Use gdbarch_register_type, instead of
3336 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3337 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3338 Print the pseudo / cooked registers.
3339 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3340 Print the pseudo / cooked registers.
3341 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3342 REG_NUM is pseudo / cooked.
3343 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3344 (mips_n32n64_xfer_return_value): Ditto.
3345 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3346 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3347 (mips_register_sim_regno): New function.
3348 (mips_gdbarch_init): Set deprecated_register_byte,
3349 register_group_p, pseudo_register_write, pseudo_register_read,
3350 register_sim_regno, and num_pseudo_regs. Set register_type,
3351 instead of register_virtual_type.
3352 * Makefile.in (mips-tdep.o): Update dependencies.
3353 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3354 REGISTER_VIRTUAL_TYPE.
3355 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3356 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3357 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3358 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3359 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3360
325ed089
DJ
33612003-06-21 Daniel Jacobowitz <drow@mvista.com>
3362
3363 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3364 * cli/cli-cmds.c: Include "gdb_vfork.h".
3365 (shell_escape): Use vfork.
3366
f0e7d0e8
AC
33672003-06-21 Andrew Cagney <cagney@redhat.com>
3368
c57bb9fa
AC
3369 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3370 32 bit floating-point register saves.
3371
6e51443a
AC
3372 * frame.h (deprecated_unwind_get_saved_register): Delete.
3373 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3374 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3375 and deprecated_get_next_frame_hack instead of
3376 deprecated_unwind_get_saved_register.
3377
ed183c7c
AC
3378 * mips-tdep.c (mips_dump_tdep): Do not print
3379 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3380
f0e7d0e8
AC
3381 * frame.c (get_frame_register): New function.
3382 (frame_unwind_register_signed): New function.
3383 (get_frame_register_signed): New function.
3384 (frame_unwind_register_unsigned): New function.
3385 (get_frame_register_unsigned): New function.
3386 * frame.h: Add comments on naming schema.
3387 (get_frame_register, frame_unwind_register_signed): Declare.
3388 (get_frame_register_signed, get_frame_register_signed): Declare.
3389 (frame_unwind_register_unsigned): Declare.
3390 (get_frame_register_unsigned): Declare.
3391
2224d941
TR
33922003-06-20 Theodore A. Roth <troth@openavr.org>
3393
3394 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3395
8619218d
TR
33962003-06-20 Theodore A. Roth <troth@openavr.org>
3397
3398 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3399 (avr_read_sp): Ditto.
3400
0b1b50c0
DJ
34012003-06-20 Daniel Jacobowitz <drow@mvista.com>
3402
3403 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3404 * config/arm/nm-linux.h: Likewise.
3405 * config/arm/tm-linux.h: Likewise.
3406 * config/ia64/nm-linux.h: Likewise.
3407 * config/ia64/tm-ia64.h: Likewise.
3408 * config/s390/tm-linux.h: Likewise.
3409 * config/s390/tm-s390.h: Likewise.
3410 * s390-nat.c: Likewise.
3411 * s390-tdep.c: Likewise.
3412
3413 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3414 * config/ia64/linux.mt: Likewise.
3415 * config/m68k/linux.mh: Likewise.
3416 * config/mips/linux.mt: Likewise.
3417 * config/powerpc/linux.mh: Likewise.
3418 * config/sh/linux.mt: Likewise.
3419
c8c18e65
KW
34202003-06-19 Kris Warkentin <kewarken@qnx.com>
3421
3422 * solib.c (solib_open): Change tests for whether to search
3423 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3424 comments.
3425
dcccef2e
TR
34262003-06-19 Theodore A. Roth <troth@openavr.org>
3427
3428 * avr-tdep.c (avr_frame_address): Delete function.
3429 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3430 set_gdbarch_frame_args_address.
3431
5861a190
AC
34322003-06-19 Andrew Cagney <cagney@redhat.com>
3433
3434 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3435 (REGISTER_CONVERT_FROM_TYPE): Delete.
3436 (mips_register_convert_to_type): Delete declaration.
3437 (mips_register_convert_from_type): Delete declaration.
3438 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3439 kernel/.
3440
0274a8ce
MS
34412003-06-19 Michael Snyder <msnyder@redhat.com>
3442
3443 * linux-nat.h: New file.
3444 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3445 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3446 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3447 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3448 (linux_make_note_section): Iterate over lwps instead of threads.
3449 (linux_do_thread_registers): Use lwp instead of merged pid.
3450 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3451 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3452 Add dependency on linux_nat_h.
3453
adf5f719
TR
34542003-06-19 Theodore A. Roth <troth@openavr.org>
3455
3456 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3457
6766a268
DJ
34582003-06-19 Daniel Jacobowitz <drow@mvista.com>
3459
3460 * varobj.c (get_type, get_target_type): Use check_typedef.
3461
1171114a
DJ
34622003-06-19 Daniel Jacobowitz <drow@mvista.com>
3463
3464 * breakpoint.c (insert_catchpoint): Call internal_error.
3465
adcf68a2
TR
34662003-06-19 Theodore A. Roth <troth@openavr.org>
3467
3468 * avr-tdep.c (avr_push_dummy_code): Delete function.
3469 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3470
ea67f13b
DJ
34712003-06-19 Daniel Jacobowitz <drow@mvista.com>
3472
3473 * arch-utils.c (default_prepare_to_proceed): Remove.
3474 (generic_prepare_to_proceed): Remove.
3475 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3476 (generic_prepare_to_proceed): Remove prototype.
3477 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3478 * gdbarch.c: Regenerate.
3479 * gdbarch.h: Regenerate.
3480 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3481 * hppah-nat.c (hppa_switched_threads): Remove.
3482 * infrun.c (prepare_to_proceed): New static function, copied from
3483 generic_prepare_to_proceed. Remove select_it argument.
3484 (proceed): Call prepare_to_proceed.
3485 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3486 variables.
3487 (ptrace_wait): Don't set the removed variables.
3488 (hppa_switched_threads): Remove.
3489 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3490 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3491 (lin_lwp_prepare_to_proceed): Remove prototype.
3492 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3493 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3494
4add8633
TR
34952003-06-18 Theodore A. Roth <troth@openavr.org>
3496
3497 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3498 trad-frame.h.
3499 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3500 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3501 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3502 (AVR_PROLOGUE_*): Enumerate prologue types.
3503 (struct frame_extra_info): Remove.
3504 (struct avr_unwind_cache): Define.
3505 (avr_write_sp): Delete function.
3506 (avr_read_fp): Ditto.
3507 (avr_init_extra_frame_info): Ditto.
3508 (avr_pop_frame): Ditto.
3509 (avr_frame_saved_pc): Ditto.
3510 (avr_saved_pc_after_call): Ditto.
3511 (avr_push_return_address): Ditto.
3512 (avr_frame_chain): Ditto.
3513 (avr_store_struct_return): Ditto.
3514 (avr_push_arguments): Ditto.
3515 (avr_scan_prologue): Update comments. Changed to set up the info for
3516 cache unwinding. Now returns end of prologue PC.
3517 (avr_skip_prologue): Better handling of functions lacking a prologue
3518 by using avr_scan_prologue.
3519 (avr_scan_arg_moves): New function.
3520 (avr_saved_regs_unwinder): Ditto.
3521 (avr_frame_unwind_cache): Ditto.
3522 (avr_unwind_pc): Ditto.
3523 (avr_frame_this_id): Ditto.
3524 (avr_frame_prev_register): Ditto.
3525 (avr_frame_p): Ditto.
3526 (avr_frame_base_address ): Ditto.
3527 (avr_unwind_dummy_id): Ditto.
3528 (avr_push_dummy_code): Ditto.
3529 (push_stack_item): Ditto.
3530 (pop_stack_item): Ditto.
3531 (avr_push_dummy_call): Ditto.
3532 (struct stack_item): Define.
3533 (avr_frame_unwind): Declare structure.
3534 (avr_frame_base): Ditto.
3535 (avr_gdbarch_init): Remove calls to
3536 set_gdbarch_deprecated_init_frame_pc,
3537 set_gdbarch_deprecated_target_read_fp,
3538 set_gdbarch_deprecated_dummy_write_sp,
3539 set_gdbarch_deprecated_fp_regnum,
3540 set_gdbarch_deprecated_push_arguments,
3541 set_gdbarch_deprecated_push_return_address,
3542 set_gdbarch_deprecated_pop_frame,
3543 set_gdbarch_deprecated_store_struct_return,
3544 set_gdbarch_deprecated_frame_init_saved_regs,
3545 set_gdbarch_deprecated_init_extra_frame_info,
3546 set_gdbarch_deprecated_frame_chain,
3547 set_gdbarch_deprecated_frame_saved_pc,
3548 set_gdbarch_deprecated_saved_pc_after_call.
3549 Add calls to set_gdbarch_push_dummy_call,
3550 set_gdbarch_push_dummy_code,
3551 frame_unwind_append_predicate,
3552 frame_base_set_default,
3553 set_gdbarch_unwind_dummy_id,
3554 set_gdbarch_unwind_pc.
3555 Wrap a long line.
3556
7be04a68
MS
35572003-06-18 Corinna Vinschen <vinschen@redhat.com>
3558
3559 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3560 registers for H8/300S.
3561 (h8300_print_registers_info): Ditto.
8ffd9b1b 3562 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3563
ae087d01
DJ
35642003-06-18 Daniel Jacobowitz <drow@mvista.com>
3565
3566 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3567 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3568 (lin_lwp_wait): Likewise. Update comments.
3569 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3570 (pull_pid_from_list, linux_record_stopped_pid): New.
3571
07d8f827
SC
35722003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3573
3574 * ada-lang.c (scan_discrim_bound): Name first argument.
3575 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3576 declared by ALL_BLOCK_SYMBOLS.
3577
7cb47b14
SC
35782003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3579
3580 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3581 ("regcache.h"): Include it.
3582 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3583
6ad8ae5c
DJ
35842003-06-17 Daniel Jacobowitz <drow@mvista.com>
3585
3586 * NEWS: Mention gdbserver detach change and "disconnect" command.
3587 * infcmd.c (disconnect_command): New function.
3588 (_initialize_infcmd): Add ``disconnect'' command.
3589 * remote.c (remote_async_detach): Delete.
3590 (remote_detach): Merge remote_async_detach.
3591 (remote_disconnect): New.
3592 (init_remote_ops): Set to_disconnect.
3593 (init_remote_cisco_ops): Likewise.
3594 (init_remote_async_ops): Likewise. Use remote_detach.
3595 * target.c (cleanup_target): Default to_disconnect.
3596 (update_current_target): Inherit to_disconnect.
3597 (target_disconnect, debug_to_disconnect): New functions.
3598 (setup_target_debug): Set to_disconnect.
3599 * target.h (struct target_ops): Add to_disconnect.
3600 (target_disconnect): Add prototype.
3601
687595f9
DJ
36022003-06-17 Daniel Jacobowitz <drow@mvista.com>
3603
3604 * breakpoint.c (insert_catchpoint): New function.
3605 (insert_breakpoints): Use catch_exceptions to call
3606 insert_catchpoint. Disable catchpoints if they fail to insert.
3607
29239a8f
DJ
36082003-06-17 Daniel Jacobowitz <drow@mvista.com>
3609
3610 * symfile.c (reread_symbols): Clear sym_private.
3611
2cdf3c63
AC
36122003-06-17 Andrew Cagney <cagney@redhat.com>
3613
3614 * trad-frame.h (struct frame_info): Add opaque declaration.
3615 * remote-fileio.h (struct cmd_list_element): Add opaque
3616 declaration.
3617 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3618 comments.
3619
cf0e1e0d
DJ
36202003-06-17 Daniel Jacobowitz <drow@mvista.com>
3621
3622 * remote.c (remote_prepare_to_store): Replace call to
3623 deprecated_read_register_bytes with multiple regcache_raw_read
3624 calls.
3625
192cdb19
KW
36262003-06-17 Kris Warkentin <kewarken@qnx.com>
3627
3628 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3629 (nto_find_and_open_solib): Likewise.
3630 (nto_init_solib_absolute_prefix): Likewise.
3631 (_initialize_nto_tdep): Fix indentation.
3632
89929b45
KW
36332003-06-17 Kris Warkentin <kewarken@qnx.com>
3634
3635 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3636
46019f27
KW
36372003-06-17 Kris Warkentin <kewarken@qnx.com>
3638
3639 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3640
1a38736e
JB
36412003-06-17 Jim Blandy <jimb@redhat.com>
3642
3643 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3644
3605c34a
TR
36452003-06-16 Theodore A. Roth <troth@openavr.org>
3646
3647 * avr-tdep.c (avr_extract_return_value): New function.
3648 (avr_gdbarch_init): Set extract_return_value method.
3649
870b3035
AC
36502003-06-16 Andrew Cagney <cagney@redhat.com>
3651
3652 * frame.h (deprecated_get_next_frame_hack): Declare.
3653 * frame.c (legacy_saved_regs_prev_register): Only require
3654 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3655 there are always saved regs.
3656 (deprecated_generic_get_saved_register): Do not require
3657 DEPRECATED_FRAME_INIT_SAVED_REGS.
3658 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3659 use frame ID unwind instead.
3660 (deprecated_get_next_frame_hack): New function.
3661
63d47a7d
CV
36622003-06-16 Corinna Vinschen <vinschen@redhat.com>
3663
3664 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3665 (h8300_push_dummy_call): ...this function. Some minor optimization.
3666 (h8300_push_return_address): Remove.
3667 (h8300_gdbarch_init): Remove calls to
3668 set_gdbarch_deprecated_dummy_write_sp,
3669 set_gdbarch_deprecated_push_arguments and
3670 set_gdbarch_deprecated_push_return_address.
3671 Add call to set_gdbarch_push_dummy_call.
3672
4bb1dc5e
CV
36732003-06-16 Corinna Vinschen <vinschen@redhat.com>
3674
3675 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3676 (E_PSEUDO_EXR_REGNUM): Ditto.
3677 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3678 registers into safe registers.
4bb1dc5e
CV
3679 (h8300_skip_prologue): Check for stm instruction to push registers
3680 used for register variables onto stack.
3681 (gdb_print_insn_h8300): Remove.
3682 (h8300_examine_prologue): Add a comment.
3683 (h8300_register_name): Take pseudo registers into account.
3684 (h8300s_register_name): Ditto.
3685 (h8300sx_register_name): Ditto.
3686 (h8300_print_register): Ditto.
3687 (h8300_print_registers_info): Define "nice" printing order.
3688 (h8300_saved_pc_after_call): Take pseudo registers into account.
3689 (h8300_register_type): Ditto. Return type used for remote connection
3690 when requesting real CCR or EXR register, return actual type when
3691 requesting pseudo CCR or EXR.
3692 (h8300_pseudo_register_read): New function.
3693 (h8300_pseudo_register_write): Ditto.
3694 (h8300_dbg_reg_to_regnum): Ditto.
3695 (h8300s_dbg_reg_to_regnum): Ditto.
3696 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3697 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3698 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3699 set_gdbarch_print_insn architecture dependent.
3700 Call set_gdbarch_pseudo_register_read and
3701 set_gdbarch_pseudo_register_write.
3702 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3703
a59fe496
AC
37042003-06-16 Andrew Cagney <cagney@redhat.com>
3705
3706 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3707 * gdbarch.h, gdbarch.c: Re-generate.
3708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3709 * s390-tdep.c (s390_gdbarch_init): Update.
3710 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3711 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3712 * mips-tdep.c (mips_gdbarch_init): Update.
3713 * mcore-tdep.c (mcore_gdbarch_init): Update.
3714 * cris-tdep.c (cris_gdbarch_init): Update.
3715 * infcall.c (call_function_by_hand): Update.
3716 * ia64-tdep.c (ia64_push_arguments): Update comment.
3717 * frame.c (legacy_get_prev_frame): Do not assume
3718 SAVE_DUMMY_FRAME_TOS_P.
3719 * dummy-frame.c (find_dummy_frame): Update comment.
3720
6f4e5a41
AC
37212003-06-16 Andrew Cagney <cagney@redhat.com>
3722
3723 * regcache.c (do_cooked_read): Do not use register_valid_p.
3724
72fab697
TR
37252003-06-15 Theodore A. Roth <troth@openavr.org>
3726
3727 * avr-tdep.c (avr_register_type): Remove a blank line.
3728 (avr_scan_prologue): Correct some comments.
3729
e3d8b004
TR
37302003-06-15 Theodore A. Roth <troth@openavr.org>
3731
3732 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3733 prologue types.
8ffd9b1b 3734 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3735 option.
3736 Add code to scan -mcall-prologues for mega devices.
3737
866b76ea
TR
37382003-06-15 Theodore A. Roth <troth@openavr.org>
3739
3740 * avr-tdep.c (avr_register_byte): Delete function.
3741 (avr_register_raw_size): Delete function.
3742 (avr_register_virtual_size): Delete function.
3743 (avr_register_virtual_type): Delete function.
3744 (avr_register_type): New function.
3745 (avr_address_to_pointer): Remove unused code.
3746 (avr_read_fp): Need to read FP as two separate bytes due to change to
3747 avr_register_type() usage.
3748 (avr_gdbarch_init): Don't set deprecated_register_size.
3749 Don't set deprecated_register_bytes.
3750 Don't set deprecated_register_byte.
3751 Don't set deprecated_register_raw_size.
3752 Don't set deprecated_max_register_raw_size.
3753 Don't set deprecated_register_virtual_size.
3754 Don't set deprecated_max_register_virtual_size.
3755 Don't set deprecated_register_virtual_type.
3756 Set register_type method.
3757
3993f6b1
DJ
37582003-06-15 Daniel Jacobowitz <drow@mvista.com>
3759
3760 * Makefile.in (linux-nat.o): Add rule.
3761 * linux-nat.c: New file.
3762 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3763 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3764 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3765 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3766 * config/arm/linux.mh (NATDEPFILES): Likewise.
3767 * config/i386/linux.mh (NATDEPFILES): Likewise.
3768 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3769 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3770 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3771 * config/mips/linux.mh (NATDEPFILES): Likewise.
3772 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3773 * config/s390/s390.mh (NATDEPFILES): Likewise.
3774 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3775
786a90bb
MK
37762003-06-15 Mark Kettenis <kettenis@gnu.org>
3777
3778 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3779 replace out-of-date comment.
3780
3bd3f01e
AC
37812003-06-15 Andrew Cagney <cagney@redhat.com>
3782
3783 * rdi-share/host.h (Fail): Change to a varargs function.
3784 * remote-rdi.c (Fail): Update.
8ffd9b1b 3785
de5b9bb9
MK
37862003-06-15 Mark Kettenis <kettenis@gnu.org>
3787
3788 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3789 (i386_convert_register_p, i386_register_to_value,
3790 i386_register_from_value): Handle types longer than 8 bytes.
3791
d532c08f
MK
37922003-06-15 Mark Kettenis <kettenis@gnu.org>
3793
3794 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3795 Move floating-point code to new function in i387-tdep.c.
3796 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3797 New functions containing code moved here from i386-tdep.c.
3798 * i387-tdep.h: Add opaque declaration for `struct type'.
3799 (i387_register_to_value, i387_value_to_register): New prototypes.
3800 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3801 (x86_64_init_abi): Set convert_register_p, register_to_value and
3802 value_to_register here.
8ffd9b1b 3803
42c466d7
AC
38042003-06-14 Andrew Cagney <cagney@redhat.com>
3805
3806 * mips-tdep.c (mips_register_to_value): Make static.
3807 (mips_value_to_register): Make static.
3808 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3809 * ia64-tdep.c (ia64_register_raw_size): Make static.
3810 (ia64_register_virtual_size): Make static.
3811 (ia64_register_byte): Make static.
3812 * i387-tdep.c: Include "i387-tdep.h".
3813 (print_387_control_word): Delete function.
3814 (print_387_status_word): Delete function.
3815 (print_387_status_bits): Delete function.
3816 (print_387_control_bits): Delete function.
3817 * Makefile.in (i387-tdep.o): Update dependencies.
3818 * rdi-share/host.h (Fail): Declare.
3819 * remote-rdi.c (Fail): Update to match declaration.
3820
2a9cda49
AC
38212003-06-14 Andrew Cagney <cagney@redhat.com>
3822
3823 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3824 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3825 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3826 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3827 * README: Delete reference to remote-array.
3828 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3829 (remote-array.o): Delete target.
3830 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3831 * remote-array.c: Delete file.
3832
ff2e87ac
AC
38332003-06-14 Andrew Cagney <cagney@redhat.com>
3834 Mark Kettenis <kettenis@gnu.org>
3835
3836 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3837 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3838 parameter with "frame".
3839 * gdbarch.h, gdbarch.c: Re-generate.
3840 * frame.h (put_frame_register): Declare.
3841 * frame.c (put_frame_register): New function.
3842 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3843 (legacy_register_to_value): Rewrite, use "frame" to get the
3844 register value.
3845 (legacy_value_to_register): Rewrite, use "frame" to find the
3846 register's location before storing.
3847 * arch-utils.h (legacy_convert_register_p): Update.
3848 (legacy_register_to_value, legacy_value_to_register): Update.
3849 * findvar.c (value_from_register): Rewrite, eliminate use of
3850 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3851 "frame" to REGISTER_TO_VALUE.
3852 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3853 lval_reg_frame_relative + lval_register branch of the switch. Do
3854 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3855 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3856 I386_EDI_REGNUM): New defines.
3857 (i386_next_regnum, i386_convert_register_p,
3858 i386_register_to_value, i386_value_to_register): New functions.
3859 (i386_register_convertible, i386_register_convert_to_virtual,
3860 i386_convert_to_raw): Remove functions.
3861 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3862 value_to_register instead of register_convertible,
3863 register_convert_to_virtual and register_convert_to_raw.
3864 * mips-tdep.c (mips_convert_register_p): New function.
3865 (mips_value_to_register): Replace mips_register_convert_from_type.
3866 (mips_register_to_value): Replace mips_register_convert_to_type.
3867 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3868 register_to_value.
3869 * alpha-tdep.c (alpha_convert_register_p): Update.
3870 (alpha_value_to_register): Update, store the register.
3871 (alpha_register_to_value): Update, fetch the register.
3872
98be1e77
TR
38732003-06-14 Theodore A. Roth <troth@openavr.org>
3874
3875 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3876 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3877 Don't set deprecated_call_dummy_words.
3878 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3879 Don't set remote_translate_xfer_address.
3880 (avr_io_reg_read_command): Remove commented out debug printf.
3881 Wrap a long line.
3882
57bc6122
TR
38832003-06-14 Theodore A. Roth <troth@openavr.org>
3884
3885 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3886 causes gdb to seg fault.
3887
eb01fc62
DJ
38882003-06-14 Daniel Jacobowitz <drow@mvista.com>
3889
3890 * sparc-nat.c (fetch_inferior_registers): Correct
3891 a reference to "registers".
3892
3b3e6bee
DJ
38932003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3894
3895 * Makefile.in (exc_request_U_h): Define
3896 (exc_request_S_h): Likewise.
3897 (msg_reply_S_h): Likewise.
3898 (msg_U_h): Likewise.
3899 (notify_S_h): Likewise.
3900 (process_reply_S_h): Likewise.
3901 (gnu-nat.o): Depend on gdb_obstack_h
3902 * gnu-nat.c: Include "gdb_obstack.h".
3903
b8de8283
AC
39042003-06-13 Andrew Cagney <cagney@redhat.com>
3905
3906 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3907 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3908
f3be58bc
AC
39092003-06-13 Andrew Cagney <cagney@redhat.com>
3910
3911 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3912 when deprecated REGISTER macros can be deleted.
3913 * gdbarch.h, gdbarch.c: Re-generate.
3914
4c0122c8
JB
39152003-06-13 Jim Blandy <jimb@redhat.com>
3916
3917 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3918 Linux entry point symbols for _dl_debug_state, too.
3919
3e210248
AC
39202003-06-13 Andrew Cagney <cagney@redhat.com>
3921
3922 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3923 available, do not use the FP register, and always save the TOS.
3924 * dummy-frame.c (dummy_frame_this_id): Do not assert
3925 SAVE_DUMMY_FRAME_TOS.
3926 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3927 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3928 (i386_push_dummy_call): Add 8 to the returned SP.
3929 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3930 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3931 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3932 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3933 (x86_64_push_dummy_call): Return "sp + 16".
3934 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3935 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3936 save_dummy_frame_tos.
3937
0b65af49
JB
39382003-06-13 Jim Blandy <jimb@redhat.com>
3939
3940 * frv-tdep.c (frv_use_struct_convention): Delete static
3941 declaration for function deleted in my change of 2003-06-12.
3942
4ea2465e
TR
39432003-06-13 Theodore A. Roth <troth@openavr.org>
3944
3945 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3946 (avr_pointer_to_address): Shift code addrs left 1 bit.
3947 (avr_convert_from_func_ptr_addr): Delete function since operation is
3948 better handled by avr_address_to_pointer and avr_pointer_to_address.
3949 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3950
1581182a
MK
39512003-06-13 Mark Kettenis <kettenis@gnu.org>
3952
3953 From Kelley Cook <kelleycook@wideopenwest.com>:
3954 * configure.host: Accept i[34567]86 variants.
3955 * configure.tgt: Likewise.
3956 * nlm/configure.in: Likewise.
3957 * nlm/configure: Regenerated.
3958
7aa1783e
RE
39592003-06-13 Richard Earnshaw <rearnsha@arm.com>
3960
3961 * arm-tdep.c (solib-svr4.h): Dont' include it.
3962 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3963 * arm-linux-tdep.c: ... here. Make static.
3964 (arm_linux_init_abi): Register it.
3965 (solib-svr4.h): Include it.
3966 * Makefile.in: Update dependencies.
3967 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3968 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3969
0261a0d0
CV
39702003-06-13 Corinna Vinschen <vinschen@redhat.com>
3971
3972 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3973 indicate registers used for return values.
3974 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3975 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3976 members.
3977 (h8300_init_extra_frame_info): Ditto.
3978 (h8300_frame_locals_address): Removed.
3979 (h8300_frame_args_address): Removed.
3980 (h8300_extract_return_value): Use new regcache structure. Only care
3981 for 16 bit CPUs.
3982 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3983 (h8300_store_return_value): Use new regcache structure. Only care
3984 for 16 bit CPUs.
3985 (h8300h_store_return_value): Same function for 32 bit CPUs.
3986 (h8300_store_struct_return): Removed.
3987 (h8300_extract_struct_value_address): Use new regcache structure.
3988 (h8300h_extract_struct_value_address): Removed.
3989 (h8300_push_dummy_code): New function.
3990 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3991 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3992 set_gdbarch_store_return_value architecture dependent.
3993 Call set_gdbarch_push_dummy_code and
3994 set_gdbarch_extract_struct_value_address.
3995 Remove calls to set_gdbarch_frame_args_address,
3996 set_gdbarch_frame_locals_address,
3997 set_gdbarch_deprecated_store_struct_return,
3998 set_gdbarch_deprecated_extract_return_value,
3999 set_gdbarch_deprecated_extract_struct_value_address,
4000 set_gdbarch_deprecated_call_dummy_words and
4001 set_gdbarch_deprecated_sizeof_call_dummy_words.
4002
055c394a
CV
40032003-06-13 Corinna Vinschen <vinschen@redhat.com>
4004
4005 * h8300-tdep.c (h8300_register_byte): Remove.
4006 (h8300h_register_byte): Remove.
4007 (h8300_register_virtual_type): Remove. Substitute by...
4008 (h8300_register_type): New function.
4009 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4010 (h8300h_extract_struct_value_address): Ditto.
4011 (h8300_gdbarch_init): Drop calls to
4012 set_gdbarch_deprecated_register_byte and
4013 set_gdbarch_deprecated_register_virtual_type.
4014 Add call to set_gdbarch_register_type.
4015
9c04cab7
AC
40162003-06-13 Andrew Cagney <cagney@redhat.com>
4017
4018 * gdbarch.sh: Update comments on registers.
4019 (deprecated_register_byte): Rename register_byte.
4020 (deprecated_register_raw_size): Rename register_raw_size.
4021 (deprecated_register_virtual_size): Rename register_virtual_size.
4022 (deprecated_register_virtual_type): Rename register_virtual_type.
4023 * gdbarch.h, gdbarch.c: Re-generate.
4024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4025 * vax-tdep.c (vax_gdbarch_init): Update.
4026 * v850-tdep.c (v850_gdbarch_init): Update.
4027 * sparc-tdep.c (sparc_gdbarch_init): Update.
4028 * sh-tdep.c (sh_gdbarch_init): Update.
4029 * s390-tdep.c (s390_gdbarch_init): Update.
4030 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4031 * ns32k-tdep.c: Update.
4032 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4033 * mips-tdep.c (mips_gdbarch_init): Update.
4034 * mcore-tdep.c (mcore_gdbarch_init): Update.
4035 * m68k-tdep.c (m68k_gdbarch_init): Update.
4036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4037 * ia64-tdep.c (ia64_gdbarch_init): Update.
4038 * hppa-tdep.c (hppa_gdbarch_init): Update.
4039 * h8300-tdep.c (h8300_gdbarch_init): Update.
4040 * frv-tdep.c (frv_gdbarch_init): Update.
4041 * cris-tdep.c (cris_gdbarch_init): Update.
4042 * avr-tdep.c (avr_gdbarch_init): Update.
4043 * alpha-tdep.c (alpha_gdbarch_init): Update.
4044 * arm-tdep.c (arm_gdbarch_init): Update.
4045
b060cbea
AC
40462003-06-13 Andrew Cagney <cagney@redhat.com>
4047
4048 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4049 mips_o32_use_struct_convention with always_use_struct_convention.
4050
0fc9922a
DC
40512003-06-12 David Carlton <carlton@kealia.com>
4052
4053 * cp-namespace.c (cp_set_block_scope): Comment out
4054 processing_has_namespace_info branch.
4055
1fd35568
JB
40562003-06-12 Jim Blandy <jimb@redhat.com>
4057
f470a70a
JB
4058 Recognize and skip 64-bit PowerPC Linux linkage functions.
4059 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4060 insn_pattern, insns_match_pattern, d_field, ds_field): New
4061 functions, macros, and types for working with PPC instructions.
4062 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4063 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4064 ppc64_skip_trampoline_code): New functions, variables, and macros
4065 for recognizing and skipping linkage functions.
4066 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4067 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4068
49ff75ad
JB
4069 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4070 register offsets for both the 32- and 64-bit interfaces.
4071
bd918c83
JB
4072 Actually finish the job started by my change of 2003-05-29.
4073 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4074 other #definition of this.
4075 (ppc_linux_skip_trampoline_code): Remove declaration.
4076 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4077 static.
4078 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4079 method for GDBARCH.
4080
4081 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4082 'long' on ppc64-*-linux*.
4083
f8c59253
JB
4084 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4085 isn't #defined, assume the register doesn't exist: act as if
4086 tdep->ppc_mq_regnum were -1.
4087
8fbb30b1
JB
4088 * configure.host, configure.tgt: Add entries for
4089 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4090 powerpc/linux.mt.
4091 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4092 New files.
4093
1fd35568
JB
4094 * arch-utils.c (always_use_struct_convention): New function.
4095 * arch-utils.h (always_use_struct_convention): New prototype.
4096 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4097 (alpha_gdbarch_init): Register always_use_struct_convention,
4098 instead of alpha_use_struct_convention.
4099 * cris-tdep.c (cris_use_struct_convention): Delete.
4100 (cris_gdbarch_init): Register always_use_struct_convention,
4101 instead of cris_use_struct_convention.
4102 * frv-tdep.c (frv_use_struct_convention): Delete.
4103 (frv_gdbarch_init): Register always_use_struct_convention,
4104 instead of frv_use_struct_convention.
4105 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4106 (h8300_gdbarch_init): Register always_use_struct_convention,
4107 instead of h8300_use_struct_convention.
e3305dd9 4108 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4109 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4110 instead of mips_o32_use_struct_convention.
4111
e14e6e9c
AC
41122003-06-12 Andrew Cagney <cagney@redhat.com>
4113
4114 * wince.c: Include "mips-tdep.h".
4115 * mips-tdep.h (mips_next_pc): Declare.
4116 * mcore-tdep.c: Make more local functions static.
4117 * Makefile.in (wince.o): Update dependencies.
4118
2335f48e
DC
41192003-06-12 David Carlton <carlton@kealia.com>
4120
4121 * symtab.c (lookup_symbol_aux_minsyms): Replace
4122 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4123 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4124 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4125 SYMBOL_NATURAL_NAME.
4126
f70a7d61
AS
41272003-06-12 Andreas Schwab <schwab@suse.de>
4128
4129 * Makefile.in (tuiDisassem.o): Update dependencies.
4130
b6429628
DC
41312003-06-12 David Carlton <carlton@bactrian.org>
4132
4133 * symtab.h: Delete declaration of make_symbol_overload_list.
4134 Add declaration of lookup_partial_symbol.
4135 * symtab.c (remove_params): Move to cp-support.c.
4136 (overload_list_add_symbol, make_symbol_overload_list)
4137 (sym_return_val_size, sym_return_val_index): Ditto.
4138 (lookup_partial_symbol): Make extern.
4139 * cp-support.h: Add declaration of make_symbol_overload_list.
4140 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4141 symtab.h, and block.h.
4142 (remove_params): Move here from symtab.c.
4143 (overload_list_add_symbol, make_symbol_overload_list)
4144 (sym_return_val_size, sym_return_val_index): Ditto.
4145 * valops.c: Include cp-support.h.
4146 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4147 frame_h, and block_h.
4148 (valops.o): Depend on cp_support_h.
4149
084edea5
CV
41502003-06-12 Corinna Vinschen <vinschen@redhat.com>
4151
4152 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4153 substitute by NUM_REGS throughout.
4154 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4155 (h8300s_register_name): New function for H8S registers.
4156 (h8300sx_register_name): Ditto for H8SX registers.
4157 (h8300_print_register): Revise register printing, avoid depending
4158 on 32 bit long.
0261a0d0 4159 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4160 (h8300h_register_byte): New function for any other architecture.
4161 (h8300_register_raw_size): Remove.
4162 (h8300_register_virtual_type): Revise to return actually useful
4163 type.
4164 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4165 (h8300h_extract_struct_value_address): New function for any other
4166 architecture.
4167 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4168 set_gdbarch_register_name, set_gdbarch_register_byte,
4169 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4170 Remove calls to set_gdbarch_deprecated_register_size,
4171 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4172 set_gdbarch_deprecated_max_register_raw_size,
4173 set_gdbarch_register_virtual_size and
4174 set_gdbarch_deprecated_max_register_virtual_size entirely.
4175 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4176 set_gdbarch_long_double_bit.
4177
06194148
JJ
41782003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4179
8ffd9b1b
AJ
4180 * doublest.c (convert_doublest_to_floatformat): When dealing
4181 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4182 processing a full 32 bits of mantissa.
4183
de4f826b
DC
41842003-06-11 David Carlton <carlton@bactrian.org>
4185
4186 * dictionary.h: New.
4187 * dictionary.c: New.
4188 * block.h: Add opaque declaration for struct dictionary.
4189 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4190 'sym' members.
4191 (BLOCK_DICT): New macro.
4192 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4193 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4194 BLOCK_SHOULD_SORT.
4195 (ALL_BLOCK_SYMBOLS): Update definition.
4196 * Makefile.in (SFILES): Add dictionary.c.
4197 (dictionary_h): New.
4198 (COMMON_OBS): Add dictionary.o.
4199 (dictionary.o): New.
4200 (ada-lang.o): Depend on dictionary_h.
4201 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4202 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4203 (mi-cmd-stack.o): Ditto.
4204 (gdbtk-cmds.o): Update dependencies.
4205 (gdbtk-stack.o): Ditto.
4206 * ada-lang.c: Include dictionary.h.
4207 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4208 (fill_in_ada_prototype, debug_print_block): Ditto.
4209 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4210 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4211 'is_sorted'.
4212 * mdebugread.c: Include dictionary.h.
4213 (struct parse_stack): Delete 'maxsyms' member.
4214 (parse_symbol): Update calls to new_block. Delete calls to
4215 shrink_block. Use dictionary methods.
4216 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4217 Update calls to new_symtab. Don't maintain maxsyms data.
4218 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4219 (add_symbol): Just call dict_add_symbol.
4220 (new_symtab): Delete 'maxsyms' argument.
4221 (new_symtab): Update calls to new_block.
4222 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4223 (shrink_block): Delete function.
4224 (fixup_sigtramp): Update call to new_block. Add symbol via
4225 dict_add_symbol.
4226 * jv-lang.c: Include dictionary.h.
4227 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4228 appropriately. Set class_symtab->free_func. Make sure the
4229 blockvector is big enough to hold two blocks.
4230 (add_class_symtab_symbol): Use dictionary methods.
4231 (free_class_block): New function.
4232 (type_from_class): Replace explicit iteration by
4233 ALL_BLOCK_SYMBOLS.
4234 * symtab.h (struct symtab): Replace 'free_ptr' method by
4235 'free_func'.
4236 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4237 sort_symtab_syms.
4238 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4239 sort_symtab_syms.
4240 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4241 Include dictionary.h.
4242 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4243 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4244 sort_symtab_syms.
4245 * objfiles.c: Include dictionary.h.
4246 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4247 * buildsym.c: Include dictionary.h.
4248 (finish_block): Use dictionary methods.
4249 (end_symtab): Set free_func to NULL, not free_ptr.
4250 * tracepoint.c: Include dictionary.h.
4251 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4252 (scope_info): Ditto.
4253 * stack.c: Include dictionary.h.
4254 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4255 (print_block_frame_labels, print_frame_arg_vars)
4256 (print_frame_args): Ditto.
4257 * symmisc.c (free_symtab_block): Use dictionary methods.
4258 (dump_symtab): Ditto.
4259 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4260 Include dictionary.h.
4261 * symfile.h: Delete declarations of sort_block_syms,
4262 sort_symtab_syms.
4263 * symfile.c (sort_block_syms): Delete.
4264 (sort_symtab_syms): Delete.
4265 * symtab.c: Include dictionary.h.
4266 (lookup_block_symbol): Use dictionary iterators.
4267 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4268 (search_symbols, make_symbol_completion_list): Ditto.
4269 (make_symbol_overload_list): Ditto.
4270 * valops.c (value_of_local): Use dict_empty.
4271 Include dictionary.h.
4272
a31f978c
JB
42732003-06-11 J. Brobecker <brobecker@gnat.com>
4274
4275 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4276
526e70c0
DC
42772003-06-11 David Carlton <carlton@bactrian.org>
4278
4279 * block.h (BLOCK_SHOULD_SORT): Delete.
4280 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4281 blocks.
4282 * ada-lang.c (ada_add_block_symbols): Ditto.
4283 * symfile.c (sort_block_syms): Delete.
4284 (sort_symtab_syms): Ditto.
4285 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4286 declarations.
4287 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4288 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4289 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4290 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4291 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4292 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4293 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4294
33c08150
JJ
42952003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4296
8ffd9b1b 4297 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4298 bits to 128.
4299
781a750d
AC
43002003-06-11 Andrew Cagney <cagney@redhat.com>
4301
4302 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4303 REGISTER_CONVERTIBLE.
4304 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4305 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4306 * gdbarch.h, gdbarch.c: Re-generate.
4307 * arch-utils.h (deprecated_register_convertible_not): Rename
4308 generic_register_convertible_not.
4309 * arch-utils.c (deprecated_register_convertible_not): Rename
4310 generic_register_convertible.
4311 (legacy_convert_register_p, legacy_register_to_value): Update.
4312 * sh-tdep.c (sh64_push_arguments): Update.
4313 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4314 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4315 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4316 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4317 * arch-utils.c (legacy_value_to_register): Update.
4318 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4319 (rs6000_register_convert_to_raw): Make parameter "from" const.
4320 * mips-tdep.c (mips_gdbarch_init): Update.
4321 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4322 * infcmd.c (default_print_registers_info): Update.
4323 * ia64-tdep.c (ia64_gdbarch_init): Update.
4324 (ia64_register_convert_to_raw): Make parameter "from" const.
4325 * i386-tdep.c (i386_gdbarch_init): Update.
4326 (i386_register_convert_to_raw): Update.
4327
cd90e54f
AC
43282003-06-11 Andrew Cagney <cagney@redhat.com>
4329
4330 * remote-fileio.c: Include "remote-fileio.h".
4331 * Makefile.in (remote-fileio.o): Update dependencies.
4332 (remote_fileio_h): Fix typo.
4333
a78f21af
AC
43342003-06-11 Andrew Cagney <cagney@redhat.com>
4335
4336 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4337 (xstormy16_save_dummy_frame_tos): Make static.
4338 (_initialize_xstormy16_tdep): Add declaration.
4339 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4340 * v850-tdep.c: Make local functions static.
4341 (_initialize_v850_tdep): Add declaration.
4342 * sparc-tdep.c: Make local functions static.
4343 (_initialize_sparc_tdep): Add declaration.
4344 * sh-tdep.c: Make local functions static.
4345 (_initialize_sh_tdep): Add declaration.
4346 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4347 * s390-tdep.c: Make local functions static.
4348 (_initialize_s390_tdep): Add declaration.
4349 * dbxread.c (find_stab_function_addr): Make static.
4350 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4351 * ocd.c (_initialize_remote_ocd): Add declaration.
4352 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4353 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4354 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4355 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4356 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4357 * remote-array.c (_initialize_array): Add declaration.
4358 (_initialize_remote_monitors): Add declaration.
4359 * remote-mips.c: Make local functions static.
4360 (_initialize_remote_mips): Add declaration.
4361 * mcore-tdep.c: Make all local functions static.
4362 (_initialize_mcore_tdep): Add declaration.
4363 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4364 * abug-rom.c (_initialize_abug_rom): Add declaration.
4365 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4366 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4367 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4368 * remote-est.c (_initialize_est): Add declaration.
4369 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4370 (m68hc11_call_dummy_address): Make static.
4371 * ia64-tdep.c: Make local functions static.
4372 (_initialize_ia64_tdep): Add declaration.
4373 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4374 * monitor.c (monitor_wait_filter): Make static.
4375 (_initialize_remote_monitors): Add declaration.
4376 * remote-hms.c (_initialize_remote_hms): Add declaration.
4377 * remote-e7000.c (fetch_regs_from_dump): Make static.
4378 (expect_n): Make static.
4379 (_initialize_remote_e7000): Add declaration.
4380 * ser-e7kpc.c: Always include "defs.h".
4381 (_initialize_ser_e7000pc): Add declaration.
4382 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4383 * cris-tdep.c: Make all but one function static.
4384 (_initialize_cris_tdep): Add declaration.
4385 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4386 * solib.c (update_solib_list): Make static.
4387 (_initialize_solib): Add declaration.
4388 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4389 (_initialize_avr_tdep): Add declaration.
4390 * remote-rdi.c (voiddummy): Make static.
4391 (_initialize_remote_rdi): Add declaration.
4392 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4393 * remote-rdp.c (send_rdp): Make static.
4394 (_initialize_remote_rdp): Add declaration.
4395 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4396
cbcdb1f5
CV
43972003-06-11 Corinna Vinschen <vinschen@redhat.com>
4398
4399 * remote-fileio.c: Make ari happy.
4400
a191ea8d
JB
44012003-06-10 J. Brobecker <brobecker@gnat.com>
4402
4403 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4404 fetching the trailing bytes of the buffer we are about to write.
4405
0ef75e11
AC
44062003-06-10 Andrew Cagney <cagney@redhat.com>
4407
4408 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4409 * Makefile.in (remote-fileio.o): Update dependencies.
4410 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4411 include <setjmp.h>, or <sys/types.h> conditional on USG.
4412 (remote_fio_jmp_buf): Delete global variable.
4413
449092f6 44142003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4415 Martin M. Hunt <hunt@redhat.com>
449092f6 4416
559fa028
AC
4417 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4418 (SFILES): Add remote-fileio.c.
4419 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4420 dependencies for building remote.o.
449092f6
CV
4421 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4422 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4423 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4424 static storage class.
4425 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4426 'F' packet.
4427 (_initialize_remote): Call initialize_remote_fileio().
4428 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4429 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4430 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4431 (captured_main): Initialize new ui_files.
4432 * ui-file.c: Add read and fgets input functions.
4433 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4434 (null_file_read): New function.
4435 (ui_file_read): New function.
4436 (set_ui_file_read): New function.
4437 (stdio_file_read): New function.
4438 * ui-file.h: New type ui_file_read_ftype.
4439 (set_ui_file_read): Declare.
4440 (ui_file_read): Declare.
4441
248de703
AC
44422003-06-09 Andrew Cagney <cagney@redhat.com>
4443
4444 * frame.h (deprecated_unwind_get_saved_register): Rename
4445 generic_unwind_get_saved_register, update comments.
4446 * mips-tdep.c (mips_get_saved_register): Update.
4447 * frame.c (deprecated_unwind_get_saved_register): Update.
4448
0ed8aa57
AC
44492003-06-09 Andrew Cagney <cagney@redhat.com>
4450
4451 * vax-tdep.c (vax_frame_locals_address): Delete function.
4452 (vax_gdbarch_init): Do not set frame_locals_address.
4453 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4454 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4455 * s390-tdep.c (s390_frame_args_address): Delete function.
4456 (s390_gdbarch_init): Do not set frame_args_address or
4457 frame_locals_address.
4458 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4459 (ns32k_gdbarch_init): Do not set frame_locals_address.
4460 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4461 (hppa_frame_locals_address): Delete function.
4462 (hppa_gdbarch_init): Do not set frame_args_address, or
4463 frame_locals_address.
4464 * arm-tdep.c (arm_frame_args_address): Delete.
4465 (arm_frame_locals_address): Delete.
4466 (arm_gdbarch_init): Do not set frame_args_address, or
4467 frame_locals_address.
4468
983a287a
AC
44692003-06-09 Andrew Cagney <cagney@redhat.com>
4470
4471 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4472 * gdbarch.h, gdbarch.c: Re-generate.
4473 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4474 * arch-utils.c (frame_num_args_unknown): Delete function.
4475 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4476 (frame_info): Use FRAME_NUM_ARGS_P.
4477 * arm-tdep.c (arm_frame_num_args): Delete function.
4478 (arm_gdbarch_init): Do not set frame_num_args.
4479 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4480 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4481 (hppa_gdbarch_init): Do not set frame_num_args.
4482 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4484 frame_num_args to default frame_num_args_unknown.
4485 * v850-tdep.c (v850_gdbarch_init): Ditto.
4486 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4487 * sh-tdep.c (sh_gdbarch_init): Ditto.
4488 * s390-tdep.c (s390_gdbarch_init): Ditto.
4489 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4490 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4491 * mips-tdep.c (mips_gdbarch_init): Ditto.
4492 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4493 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4495 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4496 * i386-tdep.c (i386_gdbarch_init): Ditto.
4497 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4498 * frv-tdep.c (frv_gdbarch_init): Ditto.
4499 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4500 * cris-tdep.c (cris_gdbarch_init): Ditto.
4501 * avr-tdep.c (avr_gdbarch_init): Ditto.
4502 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4503
8d3b0994
AC
45042003-06-09 Andrew Cagney <cagney@redhat.com>
4505
4506 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4507 (print_frame_args): Moved to "stack.c".
4508 * stack.c: Include "gdb_assert.h".
4509 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4510 (print_frame_args): Moved from "printcmd.c".
4511 * frame.h (print_frame_args): Delete declaration.
4512 * Makefile.in (stack.o): Update dependencies.
4513
25e3a86b
AC
45142003-06-08 Andrew Cagney <cagney@redhat.com>
4515
4516 * frame.c (get_prev_frame): Remove reference to
4517 frame_args_address_correct in comments.
4518 * frame-base.c (default_frame_args_address): Delete code
4519 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4520 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4521 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4522 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4523 (vax_frame_args_address_correct): Delete declaration.
4524
a9e5fdc2
AC
45252003-06-08 Andrew Cagney <cagney@redhat.com>
4526
4527 * gdbarch.sh (UNWIND_SP): Add.
4528 * gdbarch.h, gdbarch.c: Re-generate.
4529 * frame.c (frame_sp_unwind): New function.
4530 (get_frame_sp): New function.
4531 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4532 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4533 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4534 value.
4535 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4536 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4537
8983bd83
AC
45382003-06-08 Andrew Cagney <cagney@redhat.com>
4539
7fec2c59
AC
4540 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4541 REMOTE_BREAKPOINT.
4542 * remote.c: Update.
4543 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4544 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4545 * config/m68k/tm-sun3.h: Update.
4546 * config/m68k/tm-m68klynx.h: Update.
4547 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4548
8983bd83
AC
4549 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4550 trad_frame". Update comments.
4551 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4552 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4553 (trad_frame_register_value, trad_frame_prev_register): Update.
4554
b9362cc7
AC
45552003-06-08 Andrew Cagney <cagney@redhat.com>
4556
4557 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4558 from GCC's acinclude.m4.
4559 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4560 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4561 * main.c (error_init): Delete declaration.
4562 * defs.h (error_init): Declare.
4563 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4564 (rs6000_convert_from_func_ptr_addr): Make static.
4565 (_initialize_rs6000_tdep): Add declaration.
4566 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4567 (show_commands, set_verbose, show_history): Delete declaration.
4568 * top.h (set_verbose): Add declaration.
4569 (show_history, set_history, show_commands): Add declaration.
4570 (do_restore_instream_cleanup): Add declaration.
4571 * objc-lang.c (specialcmp): Make static.
4572 (print_object_command): Make static.
4573 (find_objc_msgsend): Make static.
4574 (find_objc_msgcall_submethod_helper): Make static.
4575 (find_objc_msgcall_submethod): Make static.
4576 (_initialize_objc_language): Add declaration.
4577 (find_implementation_from_class): Make static.
4578 (find_implementation): Make static.
4579 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4580 * objc-lang.h (lookup_struct_typedef): Add declaration.
4581 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4582 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4583 (do_restore_user_call_depth): Make static.
4584 (do_restore_instream_cleanup): Delete declaration.
4585 (dont_repeat): Delete declaration.
4586 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4587 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4588 * reggroups.c (_initialize_reggroup): Add declaration.
4589 * cp-support.c (_initialize_cp_support): Add declaration.
4590 * cp-abi.c (_initialize_cp_abi): Add declaration.
4591 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4592 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4593 (_initialize_gnu_v3_abi): Add declaration.
4594 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4595 (_initialize_gnu_v2_abi): Add declaration.
4596 * frame-base.c (_initialize_frame_base): Add declaration.
4597 * doublest.c (floatformat_from_length): Make static.
4598 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4599 * frame.c (create_sentinel_frame): Make static.
4600 (_initialize_frame): Add declaration.
4601 * top.c (do_catch_errors): Make static.
4602 (gdb_rl_operate_and_get_next_completion): Make static.
4603 * typeprint.c: Include "typeprint.h".
4604 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4605 (sentinel_frame_this_id): Make static.
4606 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4607 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4608 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4609 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4610 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4611 * maint.c (maintenance_print_architecture): Make static.
4612 * signals/signals.c (_initialize_signals): Add declaration.
4613 * std-regs.c (_initialize_frame_reg): Add declaration.
4614 * jv-exp.y (push_variable): ISO C definition.
4615 (push_qualified_expression_name): Ditto.
4616 * memattr.c (_initialize_mem): Add declaration.
4617 * remote.c (remote_check_watch_resources): Make static.
4618 (remote_stopped_by_watchpoint): Make static.
4619 (remote_stopped_data_address): Make static.
4620 * d10v-tdep.c (nr_dmap_regs): Make static.
4621 (a0_regnum): Make static.
4622 (d10v_frame_unwind_cache): Make static.
4623 (d10v_frame_p): Make static.
4624 * osabi.c (show_osabi): Make static.
4625 (_initialize_gdb_osabi): Add extern declaration.
4626 * gdbtypes.c (make_qualified_type): Make static.
4627 (safe_parse_type): Make static.
4628 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4629 * macrotab.c (macro_bcache_free): Make static.
4630 * interps.c (interp_set_quiet): Make static.
4631 (interpreter_exec_cmd): Make static.
4632 * stack.h (select_frame_command): New file.
4633 * stack.c: Include "stack.h".
4634 (select_frame_command_wrapper): Delete function.
4635 (select_frame_command): Make global.
4636 * infcall.c: Include "infcall.h".
4637 * linespec.c: Include "linespec.h".
4638 * symfile.c (sections_overlap): Make static.
4639 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4640 * charset.c (_initialize_charset): Add missing prototype.
4641 * regcache.c (init_legacy_regcache_descr): Make static.
4642 (do_regcache_xfree): Make static.
4643 (regcache_xfer_part): Make static.
4644 (_initialize_regcache): Add missing prototype.
4645 * breakpoint.c (parse_breakpoint_sals): Make static.
4646 (breakpoint_sals_to_pc): Make static.
4647 * interps.h (clear_interpreter_hooks): ISO C declaration.
4648 * Makefile.in (stack_h): Define.
4649 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4650 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4651
a0f267c7
AC
46522003-06-08 Andrew Cagney <cagney@redhat.com>
4653
4654 * Makefile.in (d10v-tdep.o): Update dependencies.
4655 (SFILES): Add trad-frame.c.
4656 (trad_frame_h): Define.
4657 (COMMON_OBS): Add trad-frame.o.
4658 (trad-frame.o): Specify dependencies.
4659 * d10v-tdep.c: Include "trad-frame.h".
4660 (saved_regs_unwinder): Delete function.
4661 (d10v_frame_prev_register): Use trad_frame_prev_register.
4662 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4663 trad_frame", delete "regs" and "prev_sp".
4664 (prologue_find_regs): Use trad-frame.
4665 * trad-frame.h, trad-frame.c: New files.
4666
4538b4f4
MK
46672003-06-08 Mark Kettenis <kettenis@gnu.org>
4668
4669 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4670
a0273b2f
AF
46712003-06-07 Adam Fedor <fedor@gnu.org>
4672
4673 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4674 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4675 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4676 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4677 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4678 Use it.
4679
3a6c3343
AC
46802003-06-07 Andrew Cagney <cagney@redhat.com>
4681
4682 * symfile.h: Re-indent, clean up comments.
4683
b46e02f6
AC
46842003-06-07 Andrew Cagney <cagney@redhat.com>
4685
4686 * inferior.h (deprecated_write_sp): Replace
4687 generic_target_write_sp.
4688 * regcache.c (deprecated_write_sp): Replace
4689 generic_target_write_sp.
4690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4691 * vax-tdep.c (vax_gdbarch_init): Update.
4692 * v850-tdep.c (v850_gdbarch_init): Update.
4693 * sparc-tdep.c (sparc_gdbarch_init): Update.
4694 * sh-tdep.c (sh_gdbarch_init): Update.
4695 * s390-tdep.c (s390_gdbarch_init): Update.
4696 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4697 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4698 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4699 * mcore-tdep.c (mcore_gdbarch_init): Update.
4700 * m68k-tdep.c (m68k_gdbarch_init): Update.
4701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4702 * ia64-tdep.c (ia64_gdbarch_init): Update.
4703 * h8300-tdep.c (h8300_gdbarch_init): Update.
4704 * frv-tdep.c (frv_gdbarch_init): Update.
4705 * cris-tdep.c (cris_gdbarch_init): Update.
4706 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4707
a42e117c
AC
47082003-06-07 Andrew Cagney <cagney@redhat.com>
4709
4710 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4711 Assert that PC_REGNUM is valid.
4712 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4713
bd1ce8ba
AC
47142003-06-07 Andrew Cagney <cagney@redhat.com>
4715
4716 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4717 * gdbarch.h, gdbarch.c: Regenerate.
4718 * mn10300-tdep.c: Include "gdb_assert.h".
4719 (mn10300_read_fp): New function.
4720 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4721 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4722 * ia64-tdep.c: Include "gdb_assert.h".
4723 (ia64_read_fp): New function.
4724 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4725 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4726 * regcache.c (generic_target_read_sp): Delete function.
4727 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4728 * inferior.h (generic_target_read_sp): Delete declaration.
4729 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4730 generic_target_read_sp.
4731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4732 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4733 * sh-tdep.c (sh_gdbarch_init): Ditto.
4734 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4735 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4736
ec5cbaec
AC
47372003-06-07 Andrew Cagney <cagney@redhat.com>
4738
4739 * gdbarch.sh: Comment each field of startup_gdbarch.
4740 * gdbarch.h, gdbarch.c: Re-generate.
4741
cde9ea48
AC
47422003-06-07 Andrew Cagney <cagney@redhat.com>
4743
4744 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4745 * gdbarch.h, gdbarch.c: Re-generate.
4746 * regcache.c: Update comments on read_pc et.al.
4747 (generic_target_read_pc): Delete function.
4748 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4749 * inferior.h (generic_target_read_pc): Delete declaration.
4750 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4751 generic_target_read_pc.
4752 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4753 * sh-tdep.c (sh_gdbarch_init): Ditto.
4754 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4756
9a90a780
AC
47572003-06-07 Andrew Cagney <cagney@redhat.com>
4758
4759 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4760 "index" with "special_local_sect". Use strcmp instead of STREQ.
4761 Append period to coments.
4762
a39a16c4
MM
47632003-06-06 Mark Mitchell <mark@codesourcery.com>
4764
4765 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4766 (elfstab_offset_sections): Likewise.
4767 * gdb-stabs.h (stab_section_info): Likewise.
4768 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4769 * objfiles.c (objfile_relocate): Likewise.
4770 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4771 * remote.c (get_offsets): Likewise.
4772 (remote_cisco_objfile_relocate): Likewise.
4773 * somread.c (som_symfile_offsets): Likewise.
4774 * symfile.c (alloc_section_addr_info): New function.
4775 (build_section_addr_info_from_section_tab): Use it.
4776 (free_section_addr_info): Adjust.
4777 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4778 (syms_from_objfile): Allocate local_addr dynamically.
4779 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4780 dynamically.
4781 (add_symbol_file_command): Allocate sect_opts dynamically.
4782 (reread_symbols): Avoid use of SECT_OFF_MAX.
4783 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4784 (alloc_section_addr_info): Declare it.
4785 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4786 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4787 dynamically.
4788 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4789
20c6c2f8
AC
47902003-06-06 Andrew Cagney <cagney@redhat.com>
4791
4792 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4793 (d10v_frame_unwind_cache): Do not set "return_pc".
4794
884a26c8
MS
47952003-06-06 Michael Snyder <msnyder@redhat.com>
4796
4797 * h8300-tdep.c: Make tidy (long lines).
4798
088ce440
ML
47992003-06-06 Michal Ludvig <mludvig@suse.cz>
4800
8ffd9b1b 4801 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4802 to regcache_collect().
4803
7d773d96
JB
48042003-06-05 J. Brobecker <brobecker@gnat.com>
4805
4806 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4807 pc_in_sigtramp multiarch method.
4808 (hppa_hpux_som_init_abi): Use it.
4809 (hppa_hpux_elf_init_abi): Likewise.
4810 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4811 macro has been multiarched.
4812 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4813 macro here, as hppa64 isn't multiarched yet.
4814
1df6926e
AC
48152003-06-05 Andrew Cagney <cagney@redhat.com>
4816
4817 * Makefile.in (value_h): Add $(frame_h).
4818 * value.h: Include "frame.h".
4819 (struct value): Replace "frame_addr" with "frame_id".
4820 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4821 * values.c (allocate_value): Use VALUE_FRAME_ID.
4822 (value_copy): Use VALUE_FRAME_ID.
4823 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4824 * valops.c (value_assign): Update. Use frame_find_by_id.
4825
6b53acc6
ML
48262003-06-05 Michal Ludvig <mludvig@suse.cz>
4827
4828 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4829 in each pass.
4830
4d9850d3
JJ
48312003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4832
4833 * thread-db.c (check_event): For create/death event breakpoints,
4834 loop through all messages to ensure that we read the message
4835 corresponding to the breakpoint we are at.
4836
8efca6ba
MS
48372003-06-04 Michael Snyder <msnyder@redhat.com>
4838
4839 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4840
0912c7f2
MK
48412003-06-04 Mark Kettenis <kettenis@gnu.org>
4842
4843 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4844 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4845 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4846 when handling .eh_frame sections.
4847
4e370325
JB
48482003-06-04 J. Brobecker <brobecker@gnat.com>
4849
4850 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4851 prepare_to_proceed procedure instead of the hppa-specific one.
4852 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4853
b757528f 48542003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4855
b757528f
JJ
4856 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4857 * config.in: Regenerated.
4858 * configure.in: Add test for syscall function and check for
4859 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4860 * configure: Regenerated.
4861 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4862 <sys/syscall.h>.
4863 (kill_lwp): New function that uses tkill syscall or
4864 uses kill, depending on whether threading model is nptl or not.
4865 All callers of kill() changed to use kill_lwp().
4866 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4867 see if all threads have already exited in the nptl model.
4868 (stop_and_resume_callback): New callback function used by the
4869 lin_lwp_wait thread exit handling code.
4870 (stop_wait_callback): Check for threads already having exited and
4871 delete such threads fromt the lwp list when discovered.
4872 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4873
b757528f
JJ
4874 Roland McGrath <roland@redhat.com>
4875 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4876 nptl libthread_db.
4877
087779b1
RH
48782003-06-03 Richard Henderson <rth@redhat.com>
4879
b21fd293
RH
4880 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4881 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4882 (alpha_sigtramp_frame_prev_register): Likewise.
4883 (alpha_heuristic_frame_prev_register): Likewise.
4884 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4885
8ffd9b1b 4886 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4887 alpha-specific register id names.
4888 (alpha_mdebug_frame_unwind_cache): Likewise.
4889 (alpha_mdebug_frame_prev_register): Likewise.
4890
baa490c4
RH
48912003-06-03 Richard Henderson <rth@redhat.com>
4892
4893 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4894 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4895 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4896 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4897 unwind routines.
4898 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4899 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4900 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4901
4902 * alpha-linux-tdep.c: Remove unnecessary includes.
4903 * Makefile.in (alpha-linux-tdep.o): Update.
4904
49052003-06-03 Richard Henderson <rth@redhat.com>
4906
4907 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4908 (alphabsd_fill_fpreg): Likewise.
4909
f534e522
JB
49102003-06-03 J. Brobecker <brobecker@gnat.com>
4911
4912 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4913 references to struct frame_info fields by calls to the equivalent
4914 accessors. Necessary now that frame_info is opaque.
4915
4035536b
JB
49162003-06-03 J. Brobecker <brobecker@gnat.com>
4917
4918 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4919 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4920 structure, field no longer exists.
4921
0bd79c5c
JB
49222003-06-03 J. Brobecker <brobecker@gnat.com>
4923
4924 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4925 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4926
37bb6d9f
JB
49272003-06-03 J. Brobecker <brobecker@gnat.com>
4928
4929 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4930 references to struct frame_info fields by calls to the equivalent
4931 accessors. Necessary now that frame_info is opaque.
4932
852ee05c
JB
49332003-06-03 J. Brobecker <brobecker@gnat.com>
4934
4935 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4936 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4937 structure, field no longer exists.
4938
7d58c67d
TR
49392003-06-03 Theodore A. Roth <troth@openavr.org>
4940
8ffd9b1b 4941 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4942 accumulation of the size of all registers instead of blindly using
4943 DEPRECATED_REGISTER_BYTES.
4944
0a48e7e8
MS
49452003-06-03 Michael Snyder <msnyder@redhat.com>
4946
4947 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4948 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4949 for h8300sx.
4950
9798ab0d
JB
49512003-06-03 J. Brobecker <brobecker@gnat.com>
4952
4953 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4954 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4955
00b037e2
AC
49562003-06-03 Andrew Cagney <cagney@redhat.com>
4957
4958 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4959 (sparc_convert_to_raw): Delete function.
4960 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4961 register_convert_to_virtual.
4962
043b2f77
JJ
49632003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4964
4965 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4966 layer if not dealing with a statically-linked threaded program.
4967
f43caff8
KW
49682003-06-03 Kris Warkentin <kewarken@qnx.com>
4969
4970 * solib.c (solib_open): Update comment to reflect actual search order.
4971
ae1e7417
AC
49722003-06-03 Andrew Cagney <cagney@redhat.com>
4973
4974 * frame.c (get_frame_memory_signed): New function.
4975 (get_frame_memory, get_frame_memory_unsigned): New function.
4976 (get_frame_arch): New function.
4977 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4978 (get_frame_memory, get_frame_unsigned_memory): Declare.
4979 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4980 get_frame_memory_unsigned and get_frame_arch.
4981 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4982
cb123844
RG
49832003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4984
4985 * MAINTAINERS (write after approval): Add myself.
4986
1bb792e9
JB
49872003-06-03 Jim Blandy <jimb@redhat.com>
4988
4989 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4990 elements of gregset_t are 64 bits each, but access registers
4991 are still 32 bits, so they're packed two per gregset_t
4992 element. Unpack/pack them properly.
4993
aee8d8ba
DC
49942003-06-02 David Carlton <carlton@bactrian.org>
4995
4996 * linespec.c (find_methods): Break out code into
4997 add_matching_methods and add_constructors.
4998 (add_matching_methods): New.
4999 (add_constructors): Ditto.
5000
bf7488d2
AC
50012003-06-02 Andrew Cagney <cagney@redhat.com>
5002
bf7488d2
AC
5003 * sparc-tdep.c (sparc_print_registers): Delete call to
5004 REGISTER_CONVERTIBLE.
5005 (sparc_gdbarch_init): Do not set register_convertible.
5006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5007 * frv-tdep.c (frv_gdbarch_init): Ditto.
5008 * cris-tdep.c (cris_gdbarch_init): Ditto.
5009
adedef68
EZ
50102003-06-02 Elena Zannoni <ezannoni@redhat.com>
5011
8ffd9b1b 5012 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5013 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5014 (syms_from_objfile): Ditto.
5015
650fcc91
AS
50162003-06-03 Andreas Schwab <schwab@suse.de>
5017
5018 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5019 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5020
df4a182b
RH
50212003-06-02 Richard Henderson <rth@redhat.com>
5022
5023 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5024 a member of all_reggroup.
5025
c483c494
RH
50262003-06-02 Richard Henderson <rth@redhat.com>
5027
5028 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5029 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5030 (alpha_lds, alpha_sts): New.
5031 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5032 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5033 restructure and fail for type sizes other than 4 or 8.
5034 (alpha_value_to_register): Similarly.
5035 (alpha_extract_return_value): Use alpha_sts.
5036 (alpha_store_return_value): Use alpha_lds.
5037 (alpha_gdbarch_init): Update hooks.
5038
b38b6be2
RH
50392003-06-02 Richard Henderson <rth@redhat.com>
5040
5041 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5042 regnum identifiers.
5043 (alpha_sigtramp_register_address): Likewise.
5044
98a8e1e5
RH
50452003-06-02 Richard Henderson <rth@redhat.com>
5046
5047 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5048 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5049 * alpha-tdep.h: Declare them.
5050
5051 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5052 Remove zerobuf. Don't error on UNIQUE.
5053 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5054 (ALPHA_REGSET_UNIQUE): Provide default.
5055 (supply_gregset): Use alpha_supply_int_regs.
5056 (fill_gregset): Use alpha_fill_int_regs.
5057 (supply_fpregset): Use alpha_supply_fp_regs.
5058 (fill_fpregset): Use alpha_fill_fp_regs.
5059 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5060 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5061 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5062 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5063 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5064 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5065
67dfac52
RH
50662003-06-02 Richard Henderson <rth@redhat.com>
5067
f75d70cc
RH
5068 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5069
67dfac52
RH
5070 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5071 (alpha_store_return_value): Likewise.
5072
0cf566ec
DC
50732003-06-02 David Carlton <carlton@math.stanford.edu>
5074
5075 * block.c (contained_in): Add 'const' to arguments.
5076 (block_function): Ditto.
5077 * block.h: Update declarations for block_function and
5078 contained_in.
5079
cdef89d0
DC
50802003-06-02 David Carlton <carlton@math.stanford.edu>
5081
5082 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5083 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5084 * p-valprint.c (pascal_val_print): Ditto.
5085 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5086
72667056
RH
50872003-06-02 Richard Henderson <rth@redhat.com>
5088
98a8e1e5
RH
5089 * alpha-tdep.c (alpha_push_dummy_call): Use
5090 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5091
8ffd9b1b 5092 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5093 sign-extension of 32-bit values.
5094 (alpha_store_return_value): Similarly.
0ede8eca 5095
98a8e1e5
RH
5096 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5097 (alpha_extract_return_value): Likewise.
5098 (alpha_store_return_value): Likewise.
7b5e1cb3 5099
98a8e1e5
RH
5100 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5101 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5102
98a8e1e5
RH
5103 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5104 (alpha_extract_struct_value_address): Likewise.
5105 (alpha_store_return_value): Likewise.
5106 (alpha_store_struct_return): Remove.
5107 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5108
98a8e1e5
RH
5109 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5110 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5111 macros where appropriate.
5112 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5113 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5114
98a8e1e5
RH
5115 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5116 for SP, GP; void_func_ptr for PC; non-language-specific types
5117 for all others.
5118 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5119
6dd77b81
RH
51202003-06-02 Richard Henderson <rth@redhat.com>
5121
5122 * top.h (lim_at_start): Declare.
5123 * main.c (captured_main): Set it.
5124 * top.c (lim_at_start): Define.
5125 (command_loop): Use it instead of &environ.
5126 * event-top.c (command_handler): Likewise.
5127
f4dbdb54
JT
51282003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5129
5130 * mipsnbsd-tdep.c: Update copyright years.
5131 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5132
8f285956
RH
51332003-06-01 Richard Henderson <rth@redhat.com>
5134
98a8e1e5
RH
5135 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5136 (alpha-linux-tdep.o): Update dependencies.
5137 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5138 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5139
615967cb
RH
51402003-06-01 Richard Henderson <rth@redhat.com>
5141
98a8e1e5
RH
5142 * alpha-tdep.c (alpha_register_reggroup_p): New.
5143 (alpha_gdbarch_init): Register it.
615967cb 5144
b59661bd
AC
51452003-06-02 Andrew Cagney <cagney@redhat.com>
5146
5147 * dwarfread.c: Eliminate "register"
5148 (decode_die_type): Eliminate assignment within "if".
5149 (struct_type, decode_array_element_type): Ditto.
5150 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5151 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5152 (decode_modified_type, completedieinfo): Ditto.
5153 * block.c: Eliminate "register".
5154 (blockvector_for_pc_sect): Eliminate assignment within "if".
5155 * cp-support.h (struct symbol): Opaque declaration.
5156 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5157
5ef165c2
RH
51582003-06-01 Richard Henderson <rth@redhat.com>
5159
98a8e1e5
RH
5160 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5161 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5162
143985b7
AF
51632003-06-01 Adam Fedor <fedor@gnu.org>
5164
5165 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5166 * gdbarch.[ch]: Regenerate.
5167 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5168 (hppa_gdbarch_init): Set it in the gdbarch vector.
5169 * i386-tdep.c (i386_fetch_pointer_argument): New
5170 (i386_gdbarch_init): Set it into gdbarch.
5171 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5172 (rs6000_gdbarch_init): Set it in gdbarch.
5173 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5174 (sparc_gdbarch_init): Set it in gdbarch.
5175
ae0167b9
AC
51762003-06-01 Andrew Cagney <cagney@redhat.com>
5177
7c0b4a20
AC
5178 * defs.h (extract_address): Delete declaration.
5179 * findvar.c (extract_address): Delete function.
5180 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5181 extract_address with the inline equivalent,
5182 extract_unsigned_integer.
5183 (xstormy16_extract_struct_value_address): Ditto.
5184 (xstormy16_pointer_to_address): Ditto.
5185 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5186 * v850-tdep.c (v850_push_arguments): Ditto.
5187 (v850_extract_return_value): Ditto.
5188 (v850_extract_struct_value_address): Ditto.
5189 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5190 (sparcnbsd_get_longjmp_target_64): Ditto.
5191 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5192 (get_longjmp_target): Ditto.
5193 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5194 (sh64_extract_struct_value_address): Ditto.
5195 (sh_push_arguments): Ditto.
5196 (sh64_push_arguments): Ditto.
5197 * remote-vxsparc.c (vx_read_register): Ditto.
5198 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5199 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5200 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5201 * mipsv4-nat.c (get_longjmp_target): Ditto.
5202 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5203 * mips-nat.c (get_longjmp_target): Ditto.
5204 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5205 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5206 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5207 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5208 * irix5-nat.c (get_longjmp_target): Ditto.
5209 * irix4-nat.c (get_longjmp_target): Ditto.
5210 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5211 (ia64_push_arguments): Ditto.
5212 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5213 * h8300-tdep.c (h8300_push_arguments): Ditto.
5214 (h8300_store_return_value): Ditto.
5215 (h8300_extract_struct_value_address): Ditto.
5216 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5217 (frv_push_arguments): Ditto.
5218 * avr-tdep.c (avr_pointer_to_address): Ditto.
5219 (avr_push_arguments): Ditto.
5220 * arm-tdep.c (arm_push_dummy_call): Ditto.
5221 (arm_get_longjmp_target): Ditto.
5222 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5223 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5224 (alpha_get_longjmp_target): Ditto.
5225
ae0167b9
AC
5226 * solib-irix.c (extract_mips_address): Inline extract_address,
5227 replacing it with extract_signed_integer.
5228 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5229 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5230 (first_link_map_member, open_symbol_file_object): Ditto.
5231 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5232 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5233 (LM_NEXT, LM_NAME): Ditto.
5234
44d88583
RH
52352003-06-01 Richard Henderson <rth@redhat.com>
5236
98a8e1e5
RH
5237 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5238 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5239 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5240 (alpha_cannot_store_register): Likewise.
5241 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5242 * alpha-nat.c (supply_gregset): Likewise.
5243 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5244
310e9b6a
AC
52452003-06-01 Andrew Cagney <cagney@redhat.com>
5246
5247 * infcall.c (call_function_by_hand): Update comment on
5248 DEPRECATED_DUMMY_WRITE_SP.
5249
5250 * mips-tdep.c (mips_gdbarch_init): Do not set
5251 deprecated_dummy_write_sp.
5252 (mips_eabi_push_dummy_call): Set the SP register.
5253 (mips_o64_push_dummy_call): Set the SP register.
5254 (mips_o32_push_dummy_call): Set the SP register.
5255 (mips_n32n64_push_dummy_call): Set the SP register.
5256
5ab84872
RH
52572003-06-01 Richard Henderson <rth@redhat.com>
5258
98a8e1e5
RH
5259 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5260 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5261 (supply_gregset): Likewise.
5262 * alpha-tdep.c (alpha_store_return_value): Likewise.
5263 (alpha_get_longjmp_target): Likewise.
5264 (alpha_register_name): Constify array.
5265 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5266 deprecated_register_size, deprecated_register_bytes,
5267 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5268 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5269 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5270
09cc52fd
RH
52712003-06-01 Richard Henderson <rth@redhat.com>
5272
5273 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5274 from arg_reg_buffer to regcache to avoid double conversion.
5275
c7f16359
MK
52762003-06-01 Mark Kettenis <kettenis@gnu.org>
5277
5278 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5279 SP_REGNUM.
5280 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5281 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5282
7131cb6e
RH
52832003-06-01 Richard Henderson <rth@redhat.com>
5284
98a8e1e5
RH
5285 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5286 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5287
f3e0f90b
RH
52882003-06-01 Richard Henderson <rth@redhat.com>
5289
98a8e1e5
RH
5290 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5291 not overlapping PC_REGNUM.
f3e0f90b 5292
c88e30c0
RH
52932003-06-01 Richard Henderson <rth@redhat.com>
5294
98a8e1e5
RH
5295 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5296 alpha_push_arguments. Don't dump argument register data to
5297 the target stack. Fix float and 128-bit long double semantics.
5298 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5299 (alpha_fix_call_dummy): Remove.
5300 (alpha_call_dummy_words): Remove.
5301 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5302
f1a559ae
RH
53032003-06-01 Richard Henderson <rth@redhat.com>
5304
5305 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5306
5e045346
AC
53072003-06-01 Andrew Cagney <cagney@redhat.com>
5308
95404a3e
AC
5309 * mips-tdep.c (is_mips16_addr): New function.
5310 (make_mips16_addr, unmake_mips16_addr): New functions.
5311 (pc_is_mips16, mips_fetch_instruction): Use.
5312 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5313 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5314 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5315 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5316 TARGET_MIPS.
5317 * config/mips/tm-mips.h: Update copyright.
5318 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5319 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5320 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5321 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5322 (TM_PRINT_INSN_MACH): Delete.
5323 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5324
5e045346
AC
5325 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5326 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5327 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5328 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5329 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5330 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5331 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5332 mips*-*-riscos* and mips*-*-sysv* onto mips.
5333 * config/mips/mips64.mt: New file.
5334 * config/mips/mips.mt: New file.
5335 * config/mips/littlemips.mt: Delete file.
5336 * config/mips/decstation.mt: Delete file.
5337 * config/mips/vr4300el.mt: Delete file.
5338 * config/mips/vr5000el.mt: Delete file.
5339 * config/mips/vr5000.mt: Delete file.
5340 * config/mips/vr4100.mt: Delete file.
5341 * config/mips/vr4xxxel.mt: Delete file.
5342 * config/mips/vr4300.mt: Delete file.
5343 * config/mips/vr4xxx.mt: Delete file.
5344 * config/mips/bigmips.mt: Delete file.
5345 * config/mips/bigmips64.mt: Delete file.
5346 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5347 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5348 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5349 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5350 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5351 "tm-bigmips.h".
5352 * config/mips/tm-irix3.h: Ditto.
5353 * config/mips/tm-mipsv4.h: Ditto.
5354 * config/mips/tm-embed.h: Ditto.
5355 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5356 "tm-bigmips64.h".
5357 * config/mips/tm-vr5000el.h: Delete file.
5358 * config/mips/tm-tx39l.h: Delete file.
5359 * config/mips/tm-vr4300el.h: Delete file.
5360 * config/mips/tm-vr4xxxel.h: Delete file.
5361 * config/mips/tm-vr4300.h: Delete file.
5362 * config/mips/tm-vr4100.h: Delete file.
5363 * config/mips/tm-vr4xxx.h: Delete file.
5364 * config/mips/tm-vr5000.h: Delete file.
5365 * config/mips/tm-embedl64.h: Delete file.
5366 * config/mips/tm-embedl.h: Delete file.
5367 * config/mips/tm-embed64.h: Delete file.
5368 * config/mips/tm-bigmips64.h: Delete file.
5369 * config/mips/tm-bigmips.h: Delete file.
5370
2473a4a9
MK
53712003-06-01 Mark Kettenis <kettenis@gnu.org>
5372
97a5b208
MK
5373 Fix gdb/1216.
5374 * shnbsd-nat.c: Include "sh-tdep.h".
5375
2473a4a9
MK
5376 From Richard Henderson <rth@redhat.com>:
5377 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5378
e0f7ec59
AC
53792003-05-31 Andrew Cagney <cagney@redhat.com>
5380
5381 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5382 forward declaration.
5383 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5384 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5385 (mips_find_saved_regs): Use set_reg_offset.
5386 (mips_frame_init_saved_regs): Delete function.
5387 (mips_pop_frame): Call mips_find_saved_regs instead of
5388 DEPRECATED_FRAME_INIT_SAVED_REGS.
5389
68dcc709
AC
53902003-05-31 Andrew Cagney <cagney@redhat.com>
5391
5392 * mips-tdep.c (mips_gdbarch_init): Do not set
5393 deprecated_max_register_raw_size, register_virtual_size, and
5394 deprecated_max_register_virtual_size.
5395
cfc14b3a
MK
53962003-05-31 Mark Kettenis <kettenis@gnu.org>
5397
6405b0a6
MK
5398 * i386-tdep.c: Include "dwarf2-frame.h".
5399 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5400 * Makefile.in (i386-tdep.o): Update dependencies.
5401
cfc14b3a
MK
5402 * dwarf2-frame.c, dwarf2-frame.h: New files.
5403 * Makefile.in (SFILES): Add dwarf2-frame.c.
5404 (dwarf2_frame_h): Define.
5405 (COMMON_OBS): Add dwarf2-frame.o.
5406 (dwarf2-frame.o): Add dependencies.
5407
6a2751d2
AJ
54082003-05-31 Andreas Jaeger <aj@suse.de>
5409
5410 * x86-64-linux-nat.c: Fix comment.
5411
1c3545ae
MK
54122003-05-31 Mark Kettenis <kettenis@gnu.org>
5413
10f93086
MK
5414 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5415 function signature.
5416
1c3545ae
MK
5417 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5418 have a sigcontext_addr handler.
5419 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5420 sigcontext_addr handler.
5421
e11c53d2
AC
54222003-05-31 Andrew Cagney <cagney@redhat.com>
5423
5424 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5425 (print_fp_register_row): Replace do_fp_register_row.
5426 (mips_print_fp_register): Add "file" and "frame" parameters.
5427 (mips_print_register): Add "file" and "frame" parameters.
5428 (mips_print_registers_info): Replace mips_do_registers_info.
5429 (mips_gdbarch_init): Set print_registers_info instead of
5430 deprecated_do_registers_info.
5431 (mips_read_fp_register_single): Add "frame" parameter.
5432 (mips_read_fp_register_double): Add "frame" parameter.
5433
a3386186
MK
54342003-05-31 Mark Kettenis <kettenis@gnu.org>
5435
70913449
MK
5436 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5437 Fixes a bug where GDB would print the wrong register names for
5438 targets without SSE.
5439
2b5e0749
MK
5440 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5441 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5442 registers.
5443
5444 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5445 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5446 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5447 TDEP->sc_sp_offset.
5448
a3386186
MK
5449 From Michal Ludvig <mludvig@suse.cz>:
5450 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5451 and `sc_num_regs'.
5452 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5453 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5454 I386_ST0_REGNUM): Move here from...
5455 * i386-tdep.c: ... here.
5456 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5457 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5458 registers if possible.
5459 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5460 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5461 Remove variables.
5462 (i386bsd_sc_reg_offset): New variable.
5463 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5464 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5465 TDEP->sc_sp_offset.
5466 (i386fbsd_sc_reg_offset): New variable.
5467 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5468 TDEP->sc_num_regs.
5469 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5470 variables.
5471 (i386fbsd4_sc_reg_offset): New variable.
5472 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5473 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5474 TDEP->sc_sp_offset.
5475 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5476 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5477 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5478 Remove variables.
5479 (i386nbsd_sc_reg_offset): New variable.
5480 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5481 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5482 TDEP->sc_sp_offset.
5483 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5484 Remove variables.
5485 (i386obsd_sc_reg_offset): New variable.
5486 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5487 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5488 TDEP->sc_sp_offset.
5489 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5490 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5491 for frame pointer offset in `struct sigcontext'.
5492
25ab4790
AC
54932003-05-31 Andrew Cagney <cagney@redhat.com>
5494
5495 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5496 architecture methods call_dummy_words, sizeof_call_dummy_words,
5497 push_return_address, store_struct_return, and fix_call_dummy. Set
5498 push_dummy_call instead of deprecated_push_arguments.
5499 (mips_store_struct_return): Delete function.
5500 (mips_fix_call_dummy): Delete function.
5501 (mips_push_return_address): Delete function.
5502 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5503 RA_REGNUM and T9_REGNUM.
5504 (mips_n32n64_push_dummy_call): Ditto for
5505 mips_n32n64_push_arguments.
5506 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5507 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5508
6a65450a
AC
55092003-05-31 Andrew Cagney <cagney@redhat.com>
5510
5511 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5512 "dummy_addr" to "bp_addr".
5513 * infcall.c (call_function_by_hand): Pass "funaddr" to
5514 gdbarch_push_dummy_call.
5515 * gdbarch.h, gdbarch.c: Re-generate.
5516 * i386-tdep.c (i386_push_dummy_call): Update.
5517 * arm-tdep.c (arm_push_dummy_call): Update.
5518 * d10v-tdep.c (d10v_push_dummy_call): Update.
5519
c4f35dd8
MK
55202003-05-31 Mark Kettenis <kettenis@gnu.org>
5521
5522 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5523 variable declarations.
5524 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5525 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5526 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5527 x86_64_init_frame_pc, x86_64_init_frame_pc,
5528 x86_64_function_has_prologue): Remove prototypes.
5529 (X86_64_NUM_GREGS): New define.
5530 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5531 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5532 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5533 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5534 XMM1_REGNUM): Remove defines.
5535 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5536 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5537 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5538 X86_64_XMM1_REGNUM): New defines.
5539 (struct x86_64_register_info): Renamed from `struct
5540 register_info'. Remove `size' member.
5541 (x86_64_register_info_table): Remove variable.
5542 (x86_64_register_info): New variable.
5543 (X86_64_NUM_REGS): New define.
5544 (X86_64_NUM_GREGS): Remove define.
5545 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5546 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5547 Remove variables.
5548 (x86_54_dwarf2_reg_to_regnum): Remove function.
5549 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5550 (x86_64_dwarf_reg_to_regnum): New function.
5551 (x86_64_register_name): Rewrite.
5552 (x86_64_register_raw_size): Remove function.
5553 (x86_64_register_byte_table): Remove variable.
5554 (x86_64_register_byte): Remove function.
5555 (x86_64_register_virtual_type): Remove function.
5556 (x86_64_register_type): New function.
5557 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5558 x86_64_register_convert_to_raw): Remove functions.
5559 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5560 (x86_64_use_struct_convention): Make static. Adjust for renamed
5561 defines.
5562 (x86_64_frame_init_saved_regs): Remove function.
5563 (x86_64_push_arguments): Make static. Change to accept a regcache
5564 as argument.
5565 (x86_64_store_return_value, x86_64_extract_return_value): Make
5566 static. Rewrite based on i386 counterparts.
5567 (x86_64_push_dummy_call): New function.
5568 (X86_64_NUM_SAVED_REGS): New define.
5569 (x86_64_register_number): Remove function.
5570 (x86_64_store_struct_return): Remove function.
5571 (x86_64_frameless_function_invocation,
5572 x86_64_function_has_prologue): Remove functions.
5573 (PROLOG_BUFSIZE): Remove define.
5574 (struct x86_64_frame_cache): New structure.
5575 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5576 x86_64_frame_cache, x86_64_frame_this_id,
5577 x86_64_frame_prev_register, x86_64_frame_p,
5578 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5579 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5580 functions.
5581 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5582 variables.
5583 (x86_64_skip_prologue): Rewrite in terms of
5584 x86_64_analyze_prologue.
5585 (x86_64_frame_base_address): New function.
5586 (x86_64_frame_base): New variable.
5587 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5588 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5589 set deprecated_fp_regnum, deprecated_register_size,
5590 deprecated_register_bytes, register_raw_size, register_byte,
5591 register_virtual_type, register_convertiable,
5592 register_convert_to_virtual, convert_to_raw,
5593 deprecated_get_saved_register, deprecated_target_read_fp,
5594 deprecated_push_arguments, deprecated_push_return_address,
5595 deprecated_pop_frame, deprecated_store_struct_return,
5596 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5597 frameless_function_invocation, deprecated_frame_saved_pc,
5598 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5599 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5600 deprecated_init_frame_pc and virtual_frame_pointer. Call
5601 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5602 and x86_64_frame_p. Call frame_base_set_default to register
5603 x86_64_frame_base.
5604 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5605 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5606 (_initialize_x86_64_tdep): Remove function.
5607 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5608 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5609 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5610 define.
5611 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5612 (x86_64_linux_sigcontext_addr): Rewrite.
5613 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5614 x86_64_linux_frame_saved_pc): Remove functions.
5615 (x86_64_linux_pc_in_sigtramp): Renamed from
5616 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5617 trampoline.
5618 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5619 Remove_functions.
5620 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5621 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5622 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5623 (x86_64_regmap): Rename to regmap.
5624 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5625 x86_64_num_gregs.
5626 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5627 x86_64_regmap.
5628 (x86_64_fxsave_offset): Remove function.
5629 (supply_fpregset): Simply call x86_64_supply_fxsave.
5630 (fill_fpregset): Simply call x86_64_fill_fxsave.
5631 (fetch_inferior_registers, store_inferior_registers): Avoid
5632 asignment in if-statement.
5633 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5634 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5635 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5636 (fetch_core_registers): Remove function.
5637 (linux_elf_core_fns): Remove.
5638 (offsetoff): Don't define.
5639 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5640 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5641 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5642 add core-regset.o.
5643 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5644 protection against multiple includes instead of NM_X86_64_h. Add
5645 various comments. Include "config/nm-linux.h". Don't include
5646 <signal.h>.
5647 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5648 GET_THREAD_SIGNALS): Remove defines.
5649 (x86_64_register_u_addr, kernel_u_size,
5650 lin_thread_get_thread_signals): Remove prototypes.
5651 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5652 [HAVE_LINK_H]: Don't include "solib.h".
5653 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5654 * config/i386/tm-x86-64linux.h: Fix comments.
5655 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5656 x86-64-tdep.o): Update dependencies.
5657
c25083af
AC
56582003-05-30 Andrew Cagney <cagney@redhat.com>
5659
c8f55a7b
AC
5660 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5661 Change parameter type to a "struct regcache *".
5662
c25083af
AC
5663 * gdbarch.sh: Regardless of the multi-arch level, always define
5664 the macro when not already defined.
5665 * gdbarch.h, gdbarch.c: Re-generate.
5666
fbe586ae
RH
56672003-05-30 Richard Henderson <rth@redhat.com>
5668
5669 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5670 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5671 (alpha_mdebug_frame_this_id): Likewise.
5672 (alpha_mdebug_frame_prev_register): Likewise.
5673 (alpha_mdebug_frame_base_address): Likewise.
5674 (alpha_mdebug_frame_locals_address): Likewise.
5675 (alpha_mdebug_frame_args_address): Likewise.
5676 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5677 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5678 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5679 loop increment.
5680 (alpha_heuristic_frame_this_id): Make static.
5681 (alpha_heuristic_frame_prev_register): Likewise.
5682 (alpha_heuristic_frame_base_address): Likewise.
5683 * alpha-tdep.h: Update.
5684
acd5c798
MK
56852003-05-30 Mark Kettenis <kettenis@gnu.org>
5686
5687 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5688 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5689 defenitions.
5690 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5691 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5692 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5693 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5694 I386_ST0_REGNUM): New defines.
5695 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5696 codestream_get): Remove define.
5697 (codestream_next_addr, condestream_addr, condestream_buf,
5698 codestream_off, codestream_cnt): Remove variables.
5699 (codestream_fill, codestream_seek, codestream_read): Remove
5700 functions.
5701 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5702 functionality.
5703 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5704 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5705 i386_frame_saved_pc, i386_saved_pc_after_call,
5706 i386_frame_num_args, i386_frame_init_saved_regs,
5707 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5708 i386_push_arguments): Remove functions.
5709 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5710 functionality. Use i386_analyze_prologue instead of
5711 i386_get_frame_setup.
5712 (I386_NUM_SAVED_REGS): New define.
5713 (struct i386_frame_cache): New structure.
5714 (i386_alloc_frame_cache, i386_analyze_struct_return,
5715 i386_skip_probe, i386_analyze_frame_setup,
5716 i386_analyze_register_saves, i386_analyze_prologue,
5717 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5718 i386_frame_prev_register, i386_sigtramp_frame_cache,
5719 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5720 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5721 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5722 New functions.
5723 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5724 New variables.
5725 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5726 I386_EAX_REGNUM and I386_EDX_REGNUM.
5727 (i386_extract_return_value, i386_store_return_value): Use
5728 I386_ST0_REGNUM where appropriate.
5729 (i386_extract_struct_value_address): Rewrite to use extract_address.
5730 (i386_svr4_pc_in_sigtramp): Add comment.
5731 (i386_svr4_sigcontext_addr): Rewrite.
5732 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5733 TDEP->sc_sp_offset.
5734 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5735 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5736 of new defines. Set push_dummy_call, don't set
5737 deprecated_push_arguments, deprecated_push_return_address,
5738 deprecated_pop_frame. Don't set parm_boundary. Don't set
5739 deprecated_frame_chain, deprecated_frame_saved_pc,
5740 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5741 save_dummy_frame_tos, unwind_pc. Call
5742 frame_unwind_append_predicate and frame_base_set_default. Don't
5743 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5744 Don't set frameless_function_invocation. Don't set
5745 deprecated_register_bytes, deprecated_register_size,
5746 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5747 * i386-linux-tdep.c: Fix formatting in some comments.
5748 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5749 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5750 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5751 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5752 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5753 redundant parentheses.
5754 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5755 (i386_linux_sigcontext_addr): Use it. Rewrite.
5756 (find_minsym_and_objfile): Change name of second argument.
5757 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5758 changed. Use frame_pc_unwind instead of
5759 DEPRECATED_SAVED_PC_AFTER_CALL.
5760 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5761 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5762 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5763 unwinder.
5764 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5765 "dummy-frame.h".
5766 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5767 (_initialize_i386_cygwin_tdep): New prototype.
5768 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5769 deprecated_frame_chain_valid.
5770 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5771 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5772 Rely on the SVR4 defaults.
5773 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5774 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5775
c89b70f1
AC
57762003-05-30 Andrew Cagney <cagney@redhat.com>
5777
5778 * infcall.c (call_function_by_hand): Always call
5779 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5780
85b32d22
RH
57812003-05-30 Richard Henderson <rth@redhat.com>
5782
c89b70f1
AC
5783 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5784 increment.
85b32d22 5785
bfe51b1e
JB
57862003-05-29 Jim Blandy <jimb@redhat.com>
5787
5788 Use gdbarch methods for solib stuff on PowerPC Linux.
5789 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5790 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5791 show through.
5792 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5793 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5794 giving the same effect as the #definitions above.
5795
1abf022c
AF
57962003-05-29 Adam Fedor <fedor@gnu.org>
5797
5798 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5799 (find_implementation_from_class): Replace it with the standard
5800 case i.e. do nothing.
5801
d2427a71
RH
58022003-05-29 Richard Henderson <rth@redhat.com>
5803
5804 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5805 (alpha_linux_sigtramp_offset): Use it. Make static.
5806 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5807 update for new frame model.
5808 * alpha-mdebug-tdep.c: New file.
5809 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5810 (alpha_osf1_init_abi): Install it.
5811 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5812 (linked_proc_desc_table): Remove.
5813 (alpha_frame_past_sigtramp_frame): Remove.
5814 (alpha_dynamic_sigtramp_offset): Remove.
5815 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5816 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5817 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5818 (push_sigtramp_desc): Remove.
5819 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5820 (alpha_cannot_store_register): Likewise.
5821 (alpha_sigcontext_addr): Remove.
5822 (alpha_find_saved_regs): Remove.
5823 (alpha_frame_init_saved_regs): Remove.
5824 (alpha_init_frame_pc_first): Remove.
5825 (read_next_frame_reg): Remove.
5826 (alpha_frame_saved_pc): Remove.
5827 (alpha_saved_pc_after_call): Remove.
5828 (temp_proc_desc, temp_saved_regs): Remove.
5829 (alpha_about_to_return): Remove.
5830 (cached_proc_desc): Remove.
5831 (alpha_frame_chain): Remove.
5832 (alpha_print_extra_frame_info): Remove.
5833 (alpha_init_extra_frame_info): Remove.
5834 (alpha_frame_locals_address): Remove.
5835 (alpha_frame_args_address): Remove.
5836 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5837 (alpha_push_dummy_frame): Remove.
5838 (alpha_pop_frame): Remove.
5839 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5840 (alpha_read_insn): New.
5841 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5842 for different insn encodings.
5843 (alpha_in_lenient_prologue): Remove.
5844 (struct alpha_sigtramp_unwind_cache): New.
5845 (alpha_sigtramp_frame_unwind_cache): New.
5846 (alpha_sigtramp_register_address): New.
5847 (alpha_sigtramp_frame_this_id): New.
5848 (alpha_sigtramp_frame_prev_register): New.
5849 (alpha_sigtramp_frame_unwind): New.
5850 (alpha_sigtramp_frame_p): New.
5851 (struct alpha_heuristic_unwind_cache): New.
5852 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5853 don't count nop insns that occur between functions.
5854 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5855 heuristic_proc_desc, but without the mdebug wrapping.
5856 (alpha_heuristic_frame_this_id): New.
5857 (alpha_heuristic_frame_prev_register): New.
5858 (alpha_heuristic_frame_unwind): New.
5859 (alpha_heuristic_frame_p): New.
5860 (alpha_heuristic_frame_base_address): New.
5861 (alpha_heuristic_frame_base): New.
5862 (alpha_unwind_dummy_id): New.
5863 (alpha_unwind_pc): New.
5864 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5865 frame related deprecated initializations; install replacements.
5866 (alpha_dump_tdep): Remove.
5867 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5868 (alpha_read_insn, alpha_after_prologue,
5869 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5870 alpha_heuristic_frame_prev_register,
5871 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5872 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5873 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5874 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5875
93ec1121
AC
58762003-05-29 Andrew Cagney <cagney@redhat.com>
5877
5878 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5879 dependant on the availability of ASSERT_FUNCTION.
5880 (ASSERT_FUNCTION): Do not define when there is no function name.
5881
98f08d3d
KB
58822003-05-29 Kevin Buettner <kevinb@redhat.com>
5883
5884 From Jimi X <jimix@watson.ibm.com>:
5885 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5886
0897f59b
JB
58872003-05-28 Jim Blandy <jimb@redhat.com>
5888
5889 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5890 argument to ptrace to int; the system headers should give it the
5891 right type, and pointers don't fit in ints on powerpc64-*-*.
5892
14898363
L
58932003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5894
5895 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5896 DW_TAG_catch_block.
5897
a7a48797
EZ
58982003-05-26 Elena Zannoni <ezannoni@redhat.com>
5899
5900 * stabsread.c (dbx_lookup_type): Make static.
5901 (read_type): Ditto.
5902 (add_undefined_type): Ditto.
5903 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5904 not export.
5905
f5479e9c
EZ
59062003-05-26 Elena Zannoni <ezannoni@redhat.com>
5907
5908 * hpread.c (hpread_has_name): Make static.
5909 (hpread_psymtab_to_symtab): Ditto.
5910 (file_exists): Ditto.
5911 (hpread_call_pxdb): Ditto.
5912 (hpread_pxdb_needed): Ditto.
5913 (hpread_quick_traverse): Ditto.
5914 (hpread_get_header): Ditto.
5915 (hpread_get_lntt): Ditto.
5916 (hpread_get_slt): Ditto.
5917 (class_of): Ditto.
5918
eb2e12d7
AS
59192003-05-25 Andreas Schwab <schwab@suse.de>
5920
78bf922a
AS
5921 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5922 stack_align and deprecated_extra_stack_alignment_needed.
5923 (m68k_stack_align): Delete.
5924
eb2e12d7
AS
5925 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5926 (m68k_register_virtual_size): Likewise.
5927 (altos_skip_prologue): Remove obsolete function.
5928 (isi_frame_num_args): Likewise.
5929 (news_frame_num_args): Likewise.
5930 (m68k_fix_call_dummy): Make static.
5931 (m68k_push_dummy_frame): Likewise.
5932 (m68k_pop_frame): Likewise.
5933 (m68k_skip_prologue): Likewise.
5934 (m68k_frame_init_saved_regs): Likewise.
5935 (m68k_saved_pc_after_call): Likewise.
5936 (m68k_get_longjmp_target): Make multi-arch.
5937 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5938 structure. Register m68k_get_longjmp_target if enabled.
5939 * m68k-tdep.h (struct gdbarch_tdep): Define.
5940 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5941
5942 * Makefile.in (config.status): Also depend on configure.tgt
5943 and configure.host.
5944 (m68klinux-tdep.o): Update dependencies.
5945 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5946 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5947 (M68K_LINUX_JB_PC): Define.
5948 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5949 and take additional parameter.
5950 (m68k_linux_sigtramp_saved_pc): Update.
5951 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5952 m68k_linux_pc_in_sigtramp, in_plt_section,
5953 find_solib_trampoline_target.
5954 * config/m68k/tm-linux.h: Don't include any tm headers.
5955 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5956 (JB_ELEMENT_SIZE): Likewise.
5957 (JB_PC): Likewise.
5958 (GET_LONGJMP_TARGET): Likewise.
5959 (IN_SIGTRAMP): Likewise.
5960 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5961
eb2c22dc
MK
59622003-05-25 Mark Kettenis <kettenis@gnu.org>
5963
5964 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5965 (sparc32_push_arguments): Re-implement by calling
5966 sparc32_do_push_arguments.
5967
44b7b84e
MK
59682003-05-25 Mark Kettenis <kettenis@gnu.org>
5969
5970 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5971 SPARC_O1_REGNUM): New defines.
5972 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5973 (sparc32_store_return_value): New function.
5974 (sparc_extract_struct_value_address): Rewrite to operate on a
5975 regcache.
5976 (sparc_gdbarch_init): Don't set
5977 deprecated_extract_struct_value_address. Set
5978 extract_struct_value_address instead. Don't set
5979 deprecated_extract_return_value and deprecated_store_return_value
5980 for 32-bit targets. Set extract_return_value and
5981 store_return_value instead.
5982 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5983 DEPRECTAED_EXTRACT_RETURN_VALUE,
5984 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5985 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5986 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5987 (sparc_store_return_value): Remove prototype.
5988 (sparc32_store_return_value): New prototype.
5989 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5990 Adjust prototypes.
5991
f6ad61e3
MK
59922003-05-24 Mark Kettenis <kettenis@gnu.org>
5993
5994 * sparcnbsd-tdep.c: Include "gdb_string.h".
5995
b276f1bb
AC
59962003-05-23 Andrew Cagney <cagney@redhat.com>
5997
5998 * p-valprint.c (pascal_val_print): Replace extract_address with
5999 the inline equivalent extract_unsigned_integer.
6000 * jv-valprint.c (java_value_print): Ditto.
6001 * ada-valprint.c (ada_val_print_1): Ditto.
6002 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6003
e76c5fcc
TR
60042003-05-23 Theodore A. Roth <troth@openavr.org>
6005
6006 * blockframe.c (frameless_look_for_prologue): Remove unused
6007 after_prologue variable.
6008
2cdd89cb
MK
60092003-05-23 Mark Kettenis <kettenis@gnu.org>
6010
6011 * blockframe.c (get_pc_function_start): Rewrite to avoid
6012 asignments in if-statements.
6013
182d43bc
EZ
60142003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6015
6016 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6017 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6018 files, don't relocate absolute symbols (and do use mst_abs).
6019
e8f3fcdd
AC
60202003-05-23 Andrew Cagney <cagney@redhat.com>
6021
6022 * objc-lang.c: Include "gdb_assert.h".
6023 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6024 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6025 (gdb_check, gdb_check_fatal): Delete functions.
6026 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6027 gdb_assert.
6028 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6029 * Makefile.in (objc-lang.o): Update dependencies.
6030
3c23e6fb
ILT
60312003-05-22 Ian Lance Taylor <ian@airs.com>
6032
6033 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6034 with fprintf_filtered, not fprintf_unfiltered.
6035
af1342ab
AC
60362003-05-22 Andrew Cagney <cagney@redhat.com>
6037
6038 * stack.c (frame_info): Inline extract_address, replacing it with
6039 extract_unsigned_integer.
6040 * findvar.c (unsigned_pointer_to_address): Ditto.
6041 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6042 * dwarf2expr.c (dwarf2_read_address): Ditto.
6043 * frame.c (frame_pc_unwind): Update comment.
6044 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6045
47e242ec
JJ
60462003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6047
6048 * infptrace.c (detach): Call print_sys_errmsg rather than
6049 perror_with_name to issue warning message when errno is non-zero
6050 after calling ptrace detach.
6051
e2ac8128
JB
60522003-05-21 J. Brobecker <brobecker@gnat.com>
6053
6054 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6055 macro definitions from here...
6056 * hppa-tdep.c: ...to there.
6057
92b3541e
KB
60582003-05-20 Kevin Buettner <kevinb@redhat.com>
6059
6060 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6061 register_ptrace_addr(). Fix all callers.
6062
55809acb
AS
60632003-05-21 Andreas Schwab <schwab@suse.de>
6064
6065 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6066 dependencies.
6067 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6068 end.
6069 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6070 (_initialize_m68k_linux_tdep): New function.
6071 (m68k_linux_frame_saved_pc): Make static.
6072 (m68k_linux_extract_return_value): Likewise.
6073 (m68k_linux_store_return_value): Likewise.
6074 (m68k_linux_extract_struct_value_address): Likewise.
6075 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6076 Remove.
6077 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6078 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6079 (DEPRECATED_FRAME_SAVED_PC): Remove.
6080
0fbc10f7
KW
60812003-05-20 Kris Warkentin <kewarken@qnx.com>
6082
6083 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6084 regset numbering rather than our own.
6085
58da2eb2
DC
60862003-05-19 David Carlton <carlton@bactrian.org>
6087
6088 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6089
1fcb5155
DC
60902003-05-19 David Carlton <carlton@bactrian.org>
6091
6092 Partial fix for PR c++/827.
6093 * cp-support.h: Include symtab.h.
6094 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6095 * cp-namespace.c: Update contributors.
6096 (cp_lookup_symbol_nonlocal): New.
6097 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6098 (lookup_symbol_file): Ditto.
6099 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6100 * block.h: Declare block_scope, block_using, block_global_block.
6101 * block.c (block_scope): New.
6102 (block_using, block_global_block): Ditto.
6103 * Makefile.in (cp_support_h): Depend on symtab_h.
6104 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6105
5f9a71c3
DC
61062003-05-19 David Carlton <carlton@bactrian.org>
6107
6108 * language.h (struct language_defn): Add 'la_value_of_this'
6109 and 'la_lookup_symbol_nonlocal' members.
6110 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6111 lookup_symbol_static, lookup_symbol_global,
6112 lookup_symbol_aux_block.
6113 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6114 if we should search fields of this and how to do static/global
6115 lookup.
6116 (lookup_symbol_aux_block): Make extern.
6117 (basic_lookup_symbol_nonlocal): New.
6118 (lookup_symbol_static, lookup_symbol_global): Ditto.
6119 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6120 'la_lookup_symbol_nonlocal' members.
6121 * c-lang.c (c_language_defn, cplus_language_defn)
6122 (asm_language_defn, minimal_language_defn): Ditto.
6123 * jv-lang.c (java_language_defn): Ditto.
6124 * language.c (unknown_language_defn, auto_language_defn)
6125 (local_language_defn): Ditto.
6126 * m2-lang.c (m2_language_defn): Ditto.
6127 * objc-lang.c (objc_language_defn): Ditto.
6128 * scm-lang.c (scm_language_defn): Ditto.
6129 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6130 * p-lang.c (pascal_language_defn): Ditto for both.
6131 * Makefile.in (f-lang.o): Depend on value_h.
6132 (p-lang.o): Ditto.
6133
89a9d1b1
DC
61342003-05-19 David Carlton <carlton@bactrian.org>
6135
6136 * block.h: Declare block_static_block.
6137 * block.c (block_static_block): New.
6138 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6139 lookup_symbol_aux_local, calling block_static_block instead.
6140 (lookup_symbol_aux_local): Delete 'static_block' argument.
6141
eed3f8ab
DC
61422003-05-19 David Carlton <carlton@bactrian.org>
6143
6144 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6145
a09d8bda
ML
61462003-05-19 Michal Ludvig <mludvig@suse.cz>
6147
6148 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6149 register numbers mapping.
6150
69636828
AF
61512003-05-18 Adam Fedor <fedor@gnu.org>
6152
6153 * symtab.c (completion_list_objc_symbol): New function.
6154 (make_symbol_completion_list): Use it to add ObjC symbols
6155 when looking though the list.
6156 (language_search_unquoted_string): New function.
6157 (make_file_symbol_completion_list): Use it.
6158
55baeb84
AS
61592003-05-18 Andreas Schwab <schwab@suse.de>
6160
d0b45d99
AS
6161 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6162 dependencies.
6163 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6164 as m68k_linux_extract_return_value.
6165 (DEPRECATED_STORE_RETURN_VALUE): Define as
6166 m68k_linux_store_return_value.
6167 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6168 m68k_linux_extract_struct_value_address.
6169 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6170 get_next_frame, get_frame_base, get_frame_pc.
6171 (m68k_linux_frame_saved_pc): Use get_frame_base.
6172 (m68k_linux_extract_return_value): New function.
6173 (m68k_linux_store_return_value): New function.
6174 (m68k_linux_extract_struct_value_address): New function.
6175 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6176
55baeb84
AS
6177 * c-exp.y (typebase): Remove duplicate occurence of
6178 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6179 of lookup_signed_typename.
55baeb84 6180
b6b08ebf
MK
61812003-05-18 Mark Kettenis <kettenis@gnu.org>
6182
6183 * dwarf2loc.c (find_location_expression): Change type of second
6184 argument to `size_t *'.
6185 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6186 for size variable.
6187
5ad1c190
DC
61882003-05-18 David Carlton <carlton@bactrian.org>
6189
6190 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6191 'linkage_name'. Add comment.
6192 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6193 'linkage_name'.
6194 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6195 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6196 (lookup_block_symbol): Ditto.
6197
b8b527c5
AC
61982003-05-16 Andrew Cagney <cagney@redhat.com>
6199
6200 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6201 * gdbarch.h, gdbarch.c: Re-generate.
6202 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6203 * TODO (REGISTER_BYTES): Delete reference.
6204 * alpha-tdep.c (alpha_gdbarch_init): Update.
6205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6206 * x86-64-tdep.c (x86_64_init_abi): Update.
6207 * vax-tdep.c (vax_gdbarch_init): Update.
6208 * v850-tdep.c (v850_gdbarch_init): Update.
6209 * sparc-tdep.c (sparc_gdbarch_init): Update.
6210 * sh-tdep.c (sh_gdbarch_init): Update.
6211 * s390-tdep.c (s390_gdbarch_init): Update.
6212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6213 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6214 (ns32k_gdbarch_init_32382): Update.
6215 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6216 * mcore-tdep.c (mcore_gdbarch_init): Update.
6217 * m68k-tdep.c (m68k_gdbarch_init): Update.
6218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6219 * ia64-tdep.c (ia64_gdbarch_init): Update.
6220 * i386-tdep.c (i386_gdbarch_init): Update.
6221 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6222 * hppa-tdep.c (hppa_gdbarch_init): Update.
6223 * h8300-tdep.c (h8300_gdbarch_init): Update.
6224 * frv-tdep.c (frv_gdbarch_init): Update.
6225 * cris-tdep.c (cris_gdbarch_init): Update.
6226 * avr-tdep.c (avr_gdbarch_init): Update.
6227 * arm-tdep.c (arm_gdbarch_init): Update.
6228 * sparc-tdep.c (sparc_pop_frame): Update.
6229 * rs6000-tdep.c (rs6000_pop_frame): Update.
6230 * remote.c (init_remote_state): Update.
6231 (remote_prepare_to_store): Update.
6232 * remote-vx.c (vx_prepare_to_store): Update.
6233 * remote-sds.c (sds_fetch_registers): Update.
6234 (sds_prepare_to_store): Update.
6235 * remote-array.c: Update.
6236 * regcache.c (init_legacy_regcache_descr): Update.
6237 (init_regcache_descr): Update.
6238 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6239 (mips_o64_extract_return_value): Update.
6240 * irix5-nat.c (fetch_core_registers): Update.
6241 * irix4-nat.c (fetch_core_registers): Update.
6242 * i386-tdep.h: Update.
6243 * hppa-tdep.c (pa_do_registers_info): Update.
6244 (pa_do_strcat_registers_info): Update.
6245 * cris-tdep.c (cris_register_bytes_ok): Update.
6246 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6247 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6248 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6249 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6250 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6251 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6252 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6253 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6254 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6255 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6256 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6257 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6258 (REGISTER_BYTES_OK): Update.
6259 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6260 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6261
ee2842e2
ILT
62622003-05-16 Ian Lance Taylor <ian@airs.com>
6263
6264 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6265 (vax_print_insn, print_insn_arg): Remove static functions.
6266 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6267 print_insn_vax from opcodes library.
6268 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6269
973177d3
AC
62702003-05-15 Andrew Cagney <cagney@redhat.com>
6271
aaab4dba
AC
6272 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6273 * target.h (memory_breakpoint_from_pc): Delete declaration.
6274 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6275 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6276 * monitor.c (monitor_insert_breakpoint): Use
6277 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6278 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6279 * gdbarch.h, gdbarch.c: Re-generate.
6280 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6281 (sparc_gdbarch_init): Set breakpoint_from_pc to
6282 sparc_breakpoint_from_pc.
6283 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6284 (BREAKPOINT_FROM_PC): Define.
6285 (sparc_breakpoint_from_pc): Declare.
6286 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6287 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6288 (BREAKPOINT_FROM_PC): Define.
6289 (BREAKPOINT): Delete macro.
6290 * target.h: Update comment.
6291 * s390-tdep.c (s390_gdbarch_init): Update comments.
6292 * remote.c: Update comments.
6293 * remote-mips.c: Update comments.
6294 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6295 * mem-break.c: Update comment.
6296 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6297 (ia64_memory_insert_breakpoint): Update.
6298 * config/sparc/tm-sparc.h: Update comment.
6299 * config/pa/tm-hppa64.h: Update comment.
6300 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6301 (rs6000_breakpoint_from_pc): Update.
6302 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6303 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6304 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6305 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6306 (mips_breakpoint_from_pc): Update.
6307 (mips_dump_tdep): Update.
6308
e06963ff
AC
6309 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6310 * minsyms.c (lookup_minimal_symbol): Inline
6311 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6312
973177d3
AC
6313 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6314 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6315 * p-lang.c (pascal_printstr): Ditto.
6316 * objc-lang.c (objc_printstr): Ditto.
6317 * m2-lang.c (m2_printstr): Ditto.
6318 * jv-valprint.c (java_print_value_fields): Ditto.
6319 * f-lang.c (f_printstr): Ditto.
6320 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6321 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6322 for repeat_count_threshold.
6323 * Makefile.in (cp-valprint.o): Update dependencies.
6324
5ea2bd7f 63252003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6326
5ea2bd7f
JJ
6327 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6328 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6329 they start with mov r2,r12. Support skipping over indirect stores
6330 of the input registers. Upon hitting a non-nop branch instruction
6331 or predicated instruction, bail out by setting lim_pc to the current
6332 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6333 beyond our calculated value and we have trust_limit set,
6334 use the lim_pc value.
6335
cc8c88f3
AC
63362003-05-15 Andrew Cagney <cagney@redhat.com>
6337
6338 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6339 generic_find_dummy_frame.
6340 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6341 (deprecated_generic_find_dummy_frame): Update.
6342 (deprecated_read_register_dummy): Update.
6343 * frame.c (deprecated_generic_get_saved_register): Update.
6344
909cd28e
TR
63452003-05-15 Theodore A. Roth <troth@openavr.org>
6346
6347 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6348 (avr_gdbarch_init): Set breakpoint_from_pc method.
6349
b923b08d
AC
63502003-05-15 Andrew Cagney <cagney@redhat.com>
6351
6352 * regcache.c (build_regcache): Set deprecated_register_valid
6353 directly.
6354 (deprecated_grub_regcache_for_register_valid): Delete function.
6355 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6356 declaration.
6357
ae2f03ac 63582003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6359
6360 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6361 * symtab.c (lookup_symbol_aux): Delete calls to
6362 lookup_symbol_aux_minsyms.
6363 (lookup_symbol_aux_minsyms): Comment out function and
6364 prototype. Delete lookup by mangled name.
ae2f03ac 6365
18ec9831
KB
63662003-05-14 Kevin Buettner <kevinb@redhat.com>
6367
6368 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6369 correctly indicate an empty stack and ``stack_allocated'' to the
6370 indicate the number of elements initially allocated.
6371 (dwarf_expr_grow_stack): Simplify method for computing new
6372 stack size. Don't loop infinitely if ``stack_len'' is zero.
6373 (execute_stack_op): Move ``ctx->in_reg'' initialization
6374 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6375 be used in conjuction with DW_OP_piece. Revise error message
6376 accordingly.
6377
de18ac1f
TR
63782003-05-14 Theodore A. Roth <troth@openavr.org>
6379
6380 * MAINTAINERS: Update my email address.
6381 * avr-tdep.c: Ditto.
6382
176620f1
EZ
63832003-05-14 Elena Zannoni <ezannoni@redhat.com>
6384
6385 * symtab.h (enum domain_enum): Rename from namespace_enum.
6386 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6387 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6388 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6389 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6390 TYPES_NAMESPACE, METHODS_NAMESPACE.
6391 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6392 (struct symbol, struct partial_symbol): Rename field
6393 'namespace_enum namespace' to 'domain_enum domain'.
6394 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6395 Delete old define kludge for namespace.
6396
6397 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6398 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6399 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6400 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6401 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6402 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6403 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6404 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6405 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6406 occurrences of the above.
6407
b7f31508
ILT
64082003-05-14 Ian Lance Taylor <ian@airs.com>
6409
6410 * Makefile.in (install-only): Use $(SHELL) when running
6411 mkinstalldirs.
6412
2fdbdd39
ILT
64132003-05-13 Ian Lance Taylor <ian@airs.com>
6414
a208d82c
ILT
6415 * MAINTAINERS (write after approval): Add myself.
6416
2fdbdd39
ILT
6417 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6418 second and third arguments.
6419 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6420 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6421
fbd9dcd3
AC
64222003-05-13 Andrew Cagney <cagney@redhat.com>
6423
6424 * defs.h (store_address): Delete declaration.
6425 findvar.c (store_address): Delete function.
6426 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6427 store_unsigned_integer.
6428 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6429 * v850-tdep.c (v850_push_arguments): Ditto.
6430 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6431 * sh-tdep.c (sh64_get_saved_register): Ditto.
6432 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6433 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6434 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6435 (mips_get_saved_register): Ditto.
6436 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6437 (find_func_descr, ia64_push_arguments): Ditto.
6438 * i386-tdep.c (i386_push_arguments): Ditto.
6439 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6440 * frv-tdep.c (frv_push_arguments): Ditto.
6441 * frame.c (legacy_saved_regs_prev_register): Ditto.
6442 (deprecated_generic_get_saved_register): Ditto.
6443 * findvar.c (unsigned_address_to_pointer): Ditto.
6444 * dwarf2read.c (dwarf2_const_value): Ditto.
6445 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6446 * alpha-tdep.c (alpha_push_arguments): Ditto.
6447
6760f9e6
JB
64482003-05-12 J. Brobecker <brobecker@gnat.com>
6449
6450 * NEWS: Mention that the hppa-hpux port has been partially
6451 multiarched (32bit ABIT only, so far).
6452
30e221b4
AC
64532003-05-11 Andrew Cagney <cagney@redhat.com>
6454
6455 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6456 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6457 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6458 sim/testsuite/sim/arm/misaligned2.ms, and
6459 sim/testsuite/sim/arm/misaligned3.ms.
6460 * disasm.h (struct ui_file): Add opaque struct declaration.
6461 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6462 * frame.h (struct ui_file): Ditto.
6463
dea7f9ba
MK
64642003-05-11 Mark Kettenis <kettenis@gnu.org>
6465
6466 * value.h: Pretty print.
6467
01986c48
MK
64682003-05-10 Mark Kettenis <kettenis@gnu.org>
6469
6470 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6471
123a958e
AC
64722003-05-08 Andrew Cagney <cagney@redhat.com>
6473
6474 * regcache.h (max_register_size): Delete declaration.
6475 * regcache.c (max_register_size): Delete function.
6476 (struct regcache_descr): Delete field "max_register_size".
6477 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6478 registers fit in MAX_REGISTER_SIZE.
6479 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6480 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6481 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6482 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6483 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6484 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6485 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6486 * dve3900-rom.c, hppa-tdep.c: Ditto.
6487
eb294659
DC
64882003-05-08 David Carlton <carlton@math.stanford.edu>
6489
6490 * valops.c (push_word): Fix typo.
6491
d9d9c31f
AC
64922003-05-08 Andrew Cagney <cagney@redhat.com>
6493
6494 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6495 * gdbarch.h: Re-generate.
6496 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6497 (legacy_max_register_raw_size): Delete declaration.
6498 * regcache.c (legacy_max_register_raw_size): Delete function.
6499 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6500 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6501 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6502 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6503 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6504 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6505 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6506 * findvar.c, dwarf2cfi.c: Ditto.
6507
22540ece
AC
65082003-05-08 Andrew Cagney <cagney@redhat.com>
6509
6510 * mips-tdep.c (read_signed_register): New function, moved to here
6511 from "regcache.c".
6512 (read_signed_register_pid): Ditto.
6513 * regcache.c (read_signed_register_pid): Delete function, moved to
6514 "mips-tdep.c".
6515 (read_signed_register): Ditto.
6516 * regcache.h (read_signed_register): Delete declaration.
6517 (read_signed_register_pid): Delete declaration.
6518
0c92afe8
AC
65192003-05-08 Andrew Cagney <cagney@redhat.com>
6520
6521 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6522 * gdbarch.h: Re-generate.
6523 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6524 (legacy_max_register_virtual_size): Delete declaration.
6525 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6526 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6527 * tracepoint.c (memrange_sortmerge): Ditto.
6528 * sparc-tdep.c (sparc_print_registers): Ditto.
6529 * regcache.c (legacy_max_register_virtual_size): Delete function.
6530
6037b830
JB
65312002-05-08 J. Brobecker <brobecker@gnat.com>
6532
6533 * fork-child.c (escape_bang_in_quoted_argument): New function.
6534 (fork_inferior): Escape '!' characters in quoted arguments
6535 only when needed.
6536
5d62c8b1
JB
65372003-05-08 J. Brobecker <brobecker@gnat.com>
6538
6539 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6540 the language of the CU is not currently supported by GDB.
6541
20a0e81d
JB
65422003-05-08 J. Brobecker <brobecker@gnat.com>
6543
6544 * defs.h (language): Add language_minimal enum value.
6545 * c-lang.c (minimal_language_defn): New language definition.
6546 (_initialize_c_language): Add the new minimal language to the list
6547 of languages known to GDB.
6548
710ee10a
KB
65492003-05-08 Kevin Buettner <kevinb@redhat.com>
6550
6551 * frame.c (get_frame_type): Don't attempt to lazily initialize
6552 frame's unwinder for legacy frames.
6553
1750fa04
AC
65542003-05-07 Andrew Cagney <cagney@redhat.com>
6555
6556 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6557 and "regcache" parameters.
6558 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6559
ddf9f258 65602003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6561
6562 * dwarf2read.c (dwarf_decode_lines): Only use output of
6563 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6564 the current address.
6565
87767c29
AC
65662003-05-07 Andrew Cagney <cagney@redhat.com>
6567
6568 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6569 code.
6570
5e7b2f39
JB
65712003-05-07 Jim Blandy <jimb@redhat.com>
6572
6573 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6574 'maint info symtabs' and 'maint info psymtabs'.
6575 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6576 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6577 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6578 Declarations updated.
6579 * maint.c (maintenance_list_command): Delete.
6580 (_initialize_maint_cmds): Update calls to add_cmd.
6581 * gdbcmd.h (maintenancelistlist): Delete declaration.
6582 * cli/cli-cmds.c (maintenancelistlist): Delete.
6583 (init_cmd_lists): Don't initialize it.
6584 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6585
f6684c31
AC
65862003-05-07 Andrew Cagney <cagney@redhat.com>
6587
6588 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6589 "regcache".
6590 (d10v_print_registers_info): Update.
6591 (d10v_dmap_register, d10v_imap_register): Delete functions.
6592 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6593 and "imap_register".
6594 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6595 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6596 * arch-utils.c (generic_remote_translate_xfer_address): Add
6597 "regcache" and "gdbarch" parameters.
6598 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6599 parameter. Change class to multi-arch.
6600 * gdbarch.h, gdbarch.c: Re-generate.
6601 * remote.c (remote_xfer_memory): Use
6602 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6603
e4846b08
JJ
66042003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6605
6606 * infrun.c (prev_pc): Move declaration ahead of proceed().
6607 (proceed): Refresh prev_pc value before resuming.
6608 (stop_stepping): Remove code to refresh prev_pc.
6609
6b71b8ac
KW
66102003-05-06 Kris Warkentin <kewarken@qnx.com>
6611
6612 * nto-tdep.c: Removed stray comment.
6613
47979a4b
KW
66142003-05-06 Kris Warkentin <kewarken@qnx.com>
6615
6616 * i386-nto-tdep.c: Fix old K&R function definitions.
6617 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6618 Also change add_show_from_set() call to add_setshow_cmd().
6619 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6620
00905d52
AC
66212003-05-05 Andrew Cagney <cagney@redhat.com>
6622
6623 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6624 (fprint_dummy_frames): New function.
6625 (maintenance_print_dummy_frames): New function.
6626 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6627 * frame.c (fprint_frame_id): Make global.
6628 * frame.h (fprint_frame_id): Declare.
6629 * Makefile.in (dummy-frame.o): Update dependencies.
6630
b1e29e33
AC
66312003-05-05 Andrew Cagney <cagney@redhat.com>
6632
6633 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6634 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6635 SIZEOF_CALL_DUMMY_WORDS.
6636 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6637 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6638 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6639 CALL_DUMMY_BREAKPOINT_OFFSET.
6640 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6641 CALL_DUMMY_START_OFFSET.
6642 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6643 * gdbarch.h, gdbarch.c: Re-generate.
6644 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6645 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6646 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6647 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6648 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6649 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6650 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6651 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6652 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6653 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6654 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6655 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6656 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6657 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6658 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6659
66602003-05-05 Kris Warkentin <kewarken@qnx.com>
6661
6662 * configure.tgt: Add i[3456]86-*-nto*.
6663 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6664 * nto-tdep.c: New file. Neutrino target support routines.
6665 * nto-tdep.h: New file. Neutrino target header.
6666 * config/tm-qnxnto.h: New file.
6667 * config/i386/i386nto.mt: New file.
6668 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6669
0ce3d317
AC
66702003-05-04 Andrew Cagney <cagney@redhat.com>
6671
6672 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6673 (load_infrun_state): Ditto.
6674 (struct thread_info): Drop "prev_func_name" field.
6675 * thread.c (load_infrun_state): Update.
6676 (save_infrun_state): Update.
6677 * infrun.c (prev_func_name): Delete variable.
6678 (init_wait_for_inferior): Do not clear prev_func_name.
6679 (stop_stepping, keep_going, context_switch): Do not swap
6680 prev_func_name.
6681 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6682 instead of PC_IN_SIGTRAMP.
6683
46654a5b
AC
66842003-05-04 Andrew Cagney <cagney@redhat.com>
6685
6686 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6687 REGISTER_BYTE with register_offset_hack.
6688 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6689 that REGISTER_BYTE is consistent with the regcache.
6690 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6691 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6692
14b08c1b
MK
66932003-05-04 Mark Kettenis <kettenis@gnu.org>
6694
04c8243f
MK
6695 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6696 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6697
14b08c1b
MK
6698 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6699
c7a11e01
JB
67002003-05-03 J. Brobecker <brobecker@gnat.com>
6701
6702 From Thierry Schneider <tpschneider1@yahoo.com>
6703 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6704 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6705 (mi-cmd-symbol.o): Add rule.
6706
7043d8dc
AC
67072003-05-03 Andrew Cagney <cagney@redhat.com>
6708
6709 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6710 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6711 * gdbarch.h, gdbarch.c: Re-generate.
6712 * d10v-tdep.c (d10v_push_dummy_code): New function.
6713 (d10v_gdbarch_init): Set push_dummy_code.
6714 * infcall.c (legacy_push_dummy_code): New function.
6715 (generic_push_dummy_code): New function.
6716 (push_dummy_code): New function.
6717 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6718 instead of dummy_addr, to push_dummy_call. Move call to
6719 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6720 switch.
6721 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6722
92bf2b80
AC
67232003-05-03 Andrew Cagney <cagney@redhat.com>
6724
6725 * disasm.h (print_insn): Declare.
6726 * disasm.c (init_gdb_disassemble_info): New function.
6727 (gdb_disassembly): Call init_gdb_disassemble_info.
6728 (gdb_print_insn): New function.
6729 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6730 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6731 * mcore-tdep.c: Include "disasm.h"
6732 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6733 * d10v-tdep.c: Include "disasm.h".
6734 (display_trace): Call gdb_print_insn, instead of print_insn.
6735 (print_insn): Delete function.
6736 * printcmd.c: Include "disasm.h".
6737 (print_insn): Delete function.
6738 (print_formatted): Call gdb_print_insn, instead of print_insn.
6739 * Makefile.in (printcmd.o): Update dependencies.
6740 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6741
27d94c49
AC
67422003-05-02 Andrew Cagney <cagney@redhat.com>
6743
82de1e5b
AC
6744 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6745 PC_REGNUM, re-indent.
6746 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6747 PC_REGNUM isn't set.
6748
27d94c49
AC
6749 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6750 * gdbarch.h, gdbarch.c: Re-generate.
6751 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6752 register_virtual_size, pc_regnum, or register_bytes.
6753 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6754 (d10v_register_type): Use D10V_PC_REGNUM.
6755 (d10v_print_registers_info, d10v_read_pc): Ditto.
6756 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6757 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6758
a9c0dc7f
DC
67592003-05-02 David Carlton <carlton@bactrian.org>
6760
6761 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6762 the name with mstrsave.
6763
e33d66ec
EZ
67642003-05-02 Elena Zannoni <ezannoni@redhat.com>
6765
6766 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6767 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6768 (host_charset_name, target_charset_name): New vars for use by
6769 set/show commands.
6770 (host_charset_enum, target_charset_enum): New enums for set/show
6771 commands.
6772 (set_charset_sfunc, set_host_charset_sfunc,
6773 set_target_charset_sfunc): New functions.
6774 (set_host_charset, set_target_charset): Make static.
6775 (list_charsets, set_host_charset_command,
6776 set_target_charset_command): Delete functions.
6777 (show_charset_command): Rewrite as....
6778 (show_charset): Hook this up with the set/show command mechanism.
6779 (_initialize_charset): Change names of charsets to match the
6780 set/show enums. Use host_charset_name and target_charset_name.
6781 Use set/show mechanism for charset, host-charset, target-charset
6782 commands. Do not make 'show host-charset' and 'show
6783 target-charset' be aliases of 'show charset'.
6784
6785 * charset.h (set_host_charset, set_target_charset): Don't export,
6786 they are not used outside the file.
6787
2b6fd0d8
AC
67882003-05-01 Andrew Cagney <cagney@redhat.com>
6789
6790 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6791 (gdb_disassembly): Make "di" non static, always initialize and
6792 cleanup. Always use dis_asm_read_memory.
6793 (gdb_dis_asm_read_memory): Delete function.
6794
6ae2f580
AC
67952003-05-01 Andrew Cagney <cagney@redhat.com>
6796
6797 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6798 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6799
810ecf9f
AC
68002003-04-30 Andrew Cagney <cagney@redhat.com>
6801
6802 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6803 "tm_print_insn_info".
6804 (TARGET_PRINT_INSN_INFO): Delete macro.
6805 (dis_asm_read_memory): Delete function declaration.
6806 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6807 (tm_print_insn_info): Delete variable definition.
6808 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6809 * gdbarch.h, gdbarch.c: Re-generate.
6810 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6811 "deprecated_tm_print_insn_info".
6812 * mcore-tdep.c (mcore_dump_insn): Ditto.
6813 * mips-tdep.c (mips_gdbarch_init): Ditto.
6814 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6815 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6816 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6817 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6818 instead of TARGET_PRINT_INSN_INFO, add comment.
6819 * s390-tdep.c (s390_get_frame_info): Instead of
6820 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6821 (s390_check_function_end, s390_is_sigreturn): Ditto.
6822 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6823 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6824 * disasm.c: Include "gdbcore.h".
6825 (_initialize_disasm): New function, initialize
6826 "deprecated_tm_print_insn_info".
6827 (deprecated_tm_print_insn_info): New variable.
6828 (dis_asm_read_memory): Moved from "corefile.c", made static.
6829 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6830 * Makefile.in (disasm.o): Update dependencies.
6831
07020390
AC
68322003-04-30 Andrew Cagney <cagney@redhat.com>
6833
6834 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6835
a9fa03de
AF
68362003-04-29 Adam Fedor <fedor@gnu.org>
6837
6838 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6839 * infcall.c (find_function_addr): Make non-static.
6840 * infcall.h (find_function_addr): Declare.
6841 * Makefile.in (eval.o): Update dependencies.
6842
1bae87b9
AF
68432003-04-28 Adam Fedor <fedor@gnu.org>
6844
6845 * symtab.c (symbol_find_demangled_name): Check for and demangle
6846 ObjC symbols.
6847 (symbol_init_demangled_name): Init for language_objc as well.
6848
0ba6dca9
AC
68492003-04-28 Andrew Cagney <cagney@redhat.com>
6850
6851 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6852 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6853 * gdbarch.h, gdbarch.c: Re-generate.
6854 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6855 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6856 * inferior.h (deprecated_read_fp): Rename read_fp.
6857 (generic_target_read_fp): Delete declaration.
6858 * regcache.c (generic_target_read_fp): Delete function.
6859 (deprecated_read_fp): Replace read_fp, use
6860 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6861 * d10v-tdep.c (d10v_read_fp): Delete function.
6862 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6863
6864 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6865 deprecated_target_read_fp to generic_target_read_fp.
6866 * sh-tdep.c (sh_gdbarch_init): Ditto.
6867 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6869 * frv-tdep.c (frv_gdbarch_init): Ditto.
6870
6871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6872 deprecated_fp_regnum.
6873 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6874 * vax-tdep.c (vax_gdbarch_init): Ditto.
6875 * v850-tdep.c (v850_gdbarch_init): Ditto.
6876 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6877 * sh-tdep.c (sh_gdbarch_init): Ditto.
6878 * s390-tdep.c (s390_gdbarch_init): Ditto.
6879 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6880 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6881 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6882 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6883 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6884 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6885 * i386-tdep.c (i386_gdbarch_init): Ditto.
6886 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6887 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6888 * frv-tdep.c (frv_gdbarch_init): Ditto.
6889 * cris-tdep.c (cris_gdbarch_init): Ditto.
6890 * avr-tdep.c (avr_gdbarch_init): Ditto.
6891 * arm-tdep.c (arm_gdbarch_init): Ditto.
6892 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6893
6894 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6895 * v850-tdep.c (v850_gdbarch_init): Ditto.
6896 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6897 * sh-tdep.c (sh_gdbarch_init): Ditto.
6898 * s390-tdep.c (s390_gdbarch_init): Ditto.
6899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6900 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6901 * mips-tdep.c (mips_gdbarch_init): Ditto.
6902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6903 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6904 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6905 * frv-tdep.c (frv_gdbarch_init): Ditto.
6906 * avr-tdep.c (avr_gdbarch_init): Ditto.
6907 * arm-tdep.c (arm_gdbarch_init): Ditto.
6908
6909 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6910 DEPRECATED_FP_REGNUM.
6911 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6912 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6913 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6914 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6915 (sparc32_register_virtual_type): Ditto.
6916 * sh-tdep.c (sh64_frame_chain): Ditto.
6917 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6918 (sh_nofp_frame_init_saved_regs): Ditto.
6919 (sh64_nofp_frame_init_saved_regs): Ditto.
6920 (sh_fp_frame_init_saved_regs): Ditto.
6921 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6922 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6923 * procfs.c (procfs_fetch_registers): Ditto.
6924 (procfs_store_registers): Ditto.
6925 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6926 (store_inferior_registers, fetch_core_registers): Ditto.
6927 (fetch_kcore_registers, clear_regs): Ditto.
6928 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6929 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6930 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6931 * nlm/i386.c (do_status): Ditto.
6932 * mipsv4-nat.c (supply_gregset): Ditto.
6933 * mips-tdep.c: Ditto for comments.
6934 * mips-nat.c (fetch_inferior_registers): Ditto.
6935 (store_inferior_registers, fetch_core_registers): Ditto.
6936 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6937 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6938 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6939 (i386_do_pop_frame, i386_register_type): Ditto.
6940 * hppa-tdep.c (hppa_frame_chain): Ditto.
6941 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6942 (hppa_pop_frame, hppa_read_fp): Ditto.
6943 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6944 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6945 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6946 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6947 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6948 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6949 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6950 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6951 * blockframe.c: Ditto for comments.
6952 * arch-utils.h: Ditto for comments.
6953 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6954 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6955 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6956 * alpha-tdep.h: Ditto for comments.
6957 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6958 (alpha_cannot_store_register): Ditto.
6959 (alpha_push_dummy_frame): Ditto.
6960 * alpha-nat.c (supply_gregset): Ditto.
6961
6962 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6963 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6964 * config/sparc/tm-sparc.h: Update comment.
6965
6966 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6967 deprecated_read_fp instead of TARGET_READ_FP.
6968 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6969 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6970 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6971 deprecated_read_fp instead of read_fp.
6972 * s390-tdep.c (s390_push_arguments): Ditto.
6973 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6974 * frame.h: Ditto in comments.
6975 * frame.c (legacy_get_prev_frame): Ditto.
6976 * dummy-frame.c (dummy_frame_this_id): Ditto.
6977 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6978
d7a27068
AC
69792003-04-28 Andrew Cagney <cagney@redhat.com>
6980
6981 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6982 * gdbarch.h, gdbarch.c: Re-generate.
6983 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6984 * vax-tdep.c (_initialize_vax_tdep): Update.
6985 * v850-tdep.c (_initialize_v850_tdep): Update.
6986 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6987 * s390-tdep.c (_initialize_s390_tdep): Update.
6988 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6989 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6990 * mips-tdep.c (_initialize_mips_tdep): Update.
6991 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6992 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6993 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6994 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6995 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6996 * frv-tdep.c (_initialize_frv_tdep): Update.
6997 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6998 (_initialize_cris_tdep): Update.
6999 * arch-utils.c (legacy_print_insn): Update.
7000 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7001
d2630e69
AF
70022003-04-26 Adam Fedor <fedor@gnu.org>
7003
7004 * linespec.c (decode_objc): New function to decode ObjC calls
7005 (decode_line_1): Check for ObjC calls (using decode_objc)
7006 * Makefile (linespec.o): Update dependencies.
7007
3086aeae
DJ
70082003-04-26 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * breakpoint.h (struct breakpoint_ops): New.
7011 (struct breakpoint): Add ops member.
7012
7013 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7014 (mention): Use new breakpoint ops member.
7015 (set_raw_breakpoint): Initialize ops field to NULL.
7016 (print_exception_catchpoint, print_one_exception_catchpoint)
7017 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7018 (gnu_v3_exception_catchpoint_ops): New.
7019 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7020
1fbec6c3
AF
70212003-04-25 Adam Fedor <fedor@gnu.org>
7022
7023 * Makefile.in (COMMON_OBS): Add objc-lang.o
7024
0ef21242
AC
70252003-04-25 Andrew Cagney <cagney@redhat.com>
7026
7027 * d10v-tdep.c (print_insn): Delete function.
7028 (display_trace): Use TARGET_PRINT_INSN.
7029 (_initialize_d10v_tdep): Do not set tm_print_insn.
7030 (d10v_gdbarch_init): Set print_insn.
7031
f75493ed
AC
70322003-04-25 Andrew Cagney <cagney@redhat.com>
7033
7034 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7035 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7036 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7037 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7038 (nr_dmap_regs, a0_regnum): ... new functions.
7039 (d10v_print_registers_info): Use a0_regnum, use register_size.
7040 (d10v_register_byte): Delete function.
7041 (d10v_register_raw_size): Delete function.
7042 (d10v_register_type): Use a0_regnum.
7043 (d10v_print_registers_info): Use a0_regnum.
7044 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7045 (d10v_gdbarch_init): Do not set register_byte or
7046 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7047 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7048 extract_address.
7049 (trace_command): Use XCALLOC.
7050 (print_insn): Delete reference to tm_print_insn.
7051 (saved_regs_unwinder): Use store_unsigned_integer instead of
7052 store_address.
7053 * frame.h (FRAME_OBSTACK_CALLOC): Define
7054
2202b100
DC
70552003-04-25 David Carlton <carlton@bactrian.org>
7056
7057 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7058
4e45ca2e
AF
70592003-04-24 Adam Fedor <fedor@gnu.org>
7060
7061 * objc-lang.c: Include "valprint.h"
7062 * Makefile.in (objc-lang.o): Update dependencies.
7063
93de3e7f
AF
70642003-04-24 Adam Fedor <fedor@gnu.org>
7065
8ffd9b1b 7066 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7067 architecture dependant compilation and mark as unimplemented
7068 (until they get put in the gdbarch vector).
7069
0f20eeea
DC
70702003-04-23 David Carlton <carlton@bactrian.org>
7071
7072 * cp-support.c (cp_find_first_component): Accept 'operator' in
7073 more locations.
7074
74cfe982
AC
70752003-04-23 Andrew Cagney <cagney@redhat.com>
7076
7077 * infcall.c (call_function_by_hand): Eliminate redundant
7078 indentation. Move "saved_async" and "old_cleanups" to where they
7079 are needed.
8ffd9b1b 7080
52557533
AC
70812003-04-23 Andrew Cagney <cagney@redhat.com>
7082
7083 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7084 and "buffer". Move the "name" code to where it is needed.
7085
158775de
AC
70862003-04-23 Andrew Cagney <cagney@redhat.com>
7087
7088 * infcall.c (call_function_by_hand): Move variables "start_sp",
7089 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7090 code to ON_STACK switch branch.
8ffd9b1b 7091
ebc7896c
AC
70922003-04-23 Andrew Cagney <cagney@redhat.com>
7093
7094 * infcall.c (call_function_by_hand): Make declaration of "i",
7095 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7096 lint.
7097
d727590f
AC
70982003-04-23 Andrew Cagney <cagney@redhat.com>
7099
7100 * infcall.c (call_function_by_hand): Delete variable
7101 "n_method_args". Localize "param_type"'s declaration to the loop
7102 that it is used. Reinstate code assigning to said variable -
7103 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7104 Rationalize code using "param_type".
7105
d585e13a
AC
71062003-04-22 Andrew Cagney <cagney@redhat.com>
7107
7108 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7109 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7110 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7111 to DEPRECATED_PUSH_RETURN_ADDRESS.
7112
051caad9
KB
71132003-04-22 Kevin Buettner <kevinb@redhat.com>
7114
7115 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7116 on the DWARF2 register number prior to fetching a register.
7117
77296879
JB
71182003-04-22 J. Brobecker <brobecker@gnat.com>
7119
7120 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7121 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7122 this macro was always set to 0.
77296879
JB
7123 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7124 considering the fact that this macro was always set to 0.
7125 * hppa-tdep.h (hppa_store_return_value): Likewise.
7126 (hppa_extract_return_value): Likewise.
7127
4252f1df
JB
71282003-04-22 J. Brobecker <brobecker@gnat.com>
7129
7130 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7131 the hppa-pro target only.
7132
14604c6b
JB
71332003-04-21 J. Brobecker <brobecker@gnat.com>
7134
7135 Ongoing multi-arch conversion effort for HP/UX:
7136 * config/pa/tm-hppa.h: Move all macro that are no longer
7137 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7138 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7139
77eb01d1
JB
71402003-04-21 J. Brobecker <brobecker@gnat.com>
7141
7142 * config/pa/tm-hppa.h: Obsolete a section that was only used
7143 for hppa-pro.
7144
61995b3b
JB
71452003-04-21 J. Brobecker <brobecker@gnat.com>
7146
7147 Ongoing multi-arch conversion for HP/UX.
7148 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7149 if already defined (allows hppa64 to stay non-multiarched for now).
7150 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7151
4aa79dcc
AC
71522003-04-21 Andrew Cagney <cagney@redhat.com>
7153
7154 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7155
0f751ff2
AC
71562003-04-21 Andrew Cagney <cagney@redhat.com>
7157
7158 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7159 "i386_num_mmx_regs".
7160
04714b91
AC
71612003-04-21 Andrew Cagney <cagney@redhat.com>
7162
7163 * infcall.c: New file.
7164 * infcall.h: New file.
7165 * valarith.c: Include "infcall.h".
7166 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7167 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7168 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7169 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7170 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7171 (SFILES): Add "infcall.c"
7172 (COMMON_OBS): Add "infcall.o".
7173 (infcall.o): Specify dependencies.
7174 * value.h (call_function_by_hand): Delete declaration.
7175 * inferior.h (run_stack_dummy): Delete declaration.
7176 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7177 (run_stack_dummy): Move to "infcall.c", merged into
7178 call_function_by_hand.
7179 * valops.c (call_function_by_hand): Moved to "infcall.c".
7180 (find_function_addr, value_arg_coerce): Ditto.
7181 (unwindonsignal_p, coerce_float_to_double): Ditto.
7182 (_initialize_valops): Move "set/show coerce-float-to-double", and
7183 "set/show unwindonsignal" commands to "infcall.c".
7184 * v850-tdep.c, target.h: Update comments.
7185 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7186 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7187 (sh64_init_extra_frame_info): Update comments.
7188 * mn10300-tdep.c: Update comments.
7189 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7190 * config/sparc/tm-sparc.h: Update comments.
7191 * breakpoint.h: Update comments.
7192 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7193 * arm-tdep.c: Update comment.
7194
f9d3c2a8
MK
71952003-04-19 Mark Kettenis <kettenis@gnu.org>
7196
c40e1eab
MK
7197 * i386-tdep.c (i386_num_register_names): New variable.
7198 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7199 (MM0_REGNUM): Remove redundant parentheses in define.
7200 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7201 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7202 i386_mxcsr_regnum_p): Remove redundant parentheses.
7203 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7204
94ea66b3
MK
7205 * i386-tdep.c (i386_extract_return_value,
7206 i386_store_return_value): Correct check for availability of
7207 floating-point registers.
7208
54299a1d
MK
7209 * i386-tdep.c (i386_frame_num_args): Remove function.
7210 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7211
c86c27af
MK
7212 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7213 mmx_regnum_to_fp_regnum. Adjust all callers.
7214
f9d3c2a8
MK
7215 * i386-tdep.c (i386_get_longjmp_target): Use
7216 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7217 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7218 extract_address.
7219
94ba74a9
MK
72202003-04-19 Mark Kettenis <kettenis@gnu.org>
7221
7222 * core-regset.c: Update comments to reflect reality. Re-order
7223 includes.
7224 (fetch_core_registers): Use switch instead of if. Remove
7225 redundant prototype.
7226
4074e13c
JB
72272003-04-18 Jim Blandy <jimb@redhat.com>
7228
7229 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7230 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7231
e3ab4aba
RH
72322003-04-17 Richard Henderson <rth@redhat.com>
7233
7234 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7235
627bf7c1
EZ
72362003-04-17 Michael Snyder <msnyder@redhat.com>
7237 Karen Bennet <bennet@redhat.com>
7238
7239 Committed by Elena Zannoni <ezannoni@redhat.com>
7240 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7241
514621a9
EZ
72422003-04-17 Elena Zannoni <ezannoni@redhat.com>
7243
7244 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7245 value if the return type is void.
514621a9 7246
b4acd559
JJ
72472003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7248
7249 * thread-db.c: Reindented.
8ffd9b1b 7250
530b167e 72512003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7252
7253 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7254 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7255 as types.
7256
0a48e7e8
MS
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
8ffd9b1b 7280
ab9fe00e
KB
72812003-04-16 Kevin Buettner <kevinb@redhat.com>
7282
610a3745 7283 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7284 the size of ``long double'' to 16, instead of 8.
7285
e64a344c
MK
72862003-04-16 Mark Kettenis <kettenis@gnu.org>
7287
7288 * i386-linux-nat.c: Add some whitespace to make things more
7289 readable.
7290 (fetch_register, store_register, fetch_inferior_registers,
7291 store_inferior_registers): Get rid of assignment in if-statement.
7292 (store_register): Fix typo in error message.
7293
25d41031
AC
72942003-04-16 Andrew Cagney <cagney@redhat.com>
7295
7296 * utils.c (xmmalloc): Always allocate something, matches
7297 libiberty/xmalloc's semantics.
7298 (xmrealloc, xmcalloc): Ditto.
7299
c50901fd
AC
73002003-04-16 Andrew Cagney <cagney@redhat.com>
7301
7302 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7303 update comments.
7304 (get_frame_type): Initialize unwind and type when needed.
7305 (get_frame_id, frame_register_unwind): Ditto.
7306
f81824a9
AC
73072003-04-16 Andrew Cagney <cagney@redhat.com>
7308
7309 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7310 obsolete.
7311 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7312 * sparcl-stub.c: Obsolete file.
7313 * config/sparc/tm-sparclet.h: Obsolete file.
7314 * sparclet-stub.c: Obsolete file.
7315 * sparclet-rom.c: Obsolete file.
7316 * sparcl-tdep.c: Obsolete file.
7317 * config/sparc/tm-sparclite.h: Obsolete file.
7318 * config/sparc/sparclite.mt: Obsolete file.
7319 * config/sparc/sparclet.mt: Obsolete file.
7320 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7321 sparc86x-*-* obsolete.
7322
9219021c
DC
73232003-04-15 David Carlton <carlton@math.stanford.edu>
7324
7325 * Makefile.in (SFILES): Add cp-namespace.c.
7326 (COMMON_OBS): Add cp-namespace.o.
7327 (block.o): Depend on gdb_obstack_h and cp_support_h.
7328 (buildsym.o): Depend on cp_support_h.
7329 (cp-namespace.o): New.
7330 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7331 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7332 (dwarf2read.o): Depend on cp_support_h.
7333 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7334 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7335 processing_current_namespace.
7336 (read_namespace): Update processing_current_namespace; check for
7337 anonymous namespaces.
7338 (dwarf2_name): New function.
7339 (dwarf2_extension): Ditto.
7340 * cp-support.h: Update copyright, contributors.
7341 Add inclusion guards.
7342 Add opaque declaration for structs obstack, block, symbol.
7343 (struct using_direct): New struct.
7344 Add declarations for cp_find_first_component,
7345 cp_entire_prefix_len, processing_has_namespace_info,
7346 processing_current_namespace, cp_is_anonymous,
7347 cp_add_using_directive, cp_initialize_namespace,
7348 cp_finalize_namespace, cp_set_block_scope,
7349 cp_scan_for_anonymous_namespaces.
7350 * cp-namespace.c: New file.
7351 * cp-support.c: Update copyright.
7352 Include ctype.h, gdb_assert.h, gdbcmd.h.
7353 New variable maint_cplus_cmd_list.
7354 (cp_find_first_component): New function.
7355 (cp_entire_prefix_len, maint_cplus_command)
7356 (first_component_command, _initialize_cp_support): Ditto.
7357 * buildsym.c: Include cp-support.h.
7358 New variable using_list.
7359 (add_symbol_to_list): Check for anonymous namespaces.
7360 (finish_block): Set block's scope.
7361 (start_symtab): Initialize C++ namespace support.
7362 (end_symtab): Finalize C++ namespace support.
7363 * block.h: Add opaque declarations for structs
7364 block_namespace_info, using_direct, and obstack.
7365 Add declarations for block_set_scope and block_set_using.
7366 (struct block): Add 'language_specific' member.
7367 (BLOCK_NAMESPACE): New macro.
7368 * block.c: Include gdb_obstack.h and cp-support.h.
7369 (struct block_namespace_info): New struct.
7370 (block_set_scope): New function.
7371 (block_set_using, block_initialize_namespace): Ditto.
7372
d5a921c9
KB
73732003-04-14 Kevin Buettner <kevinb@redhat.com>
7374
7375 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7376 (locate_base): Return early if there aren't any link map offsets.
7377 (svr4_solib_create_inferior_hook): Warn if shared library support
7378 is unavailable.
7379
d2a52b27
DC
73802003-04-14 David Carlton <carlton@math.stanford.edu>
7381
7382 * symtab.c (symbol_set_names): Add prefix when storing Java names
7383 in hash table. Fix for PR java/1039.
7384
980cae7a
DC
73852003-04-14 David Carlton <carlton@math.stanford.edu>
7386
7387 * symtab.c (symbol_set_names): Rename 'name' arg to
7388 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7389 * symtab.h: Change 'name' argument in declaration of
7390 symbol_set_names to 'linkage_name'.
7391 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7392
e227b13c
AC
73932003-04-14 Andrew Cagney <cagney@redhat.com>
7394
7395 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7396 return the fully sign-extended register value.
7397 (get_frame_pointer): Ditto.
7398 (mips_pop_frame): Initialize "proc_desc" after checking for a
7399 dummy frame.
7400
36712a20
AC
74012003-04-14 Andrew Cagney <cagney@redhat.com>
7402
7403 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7404 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7405 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7406 (mips_push_register): Delete function.
7407 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7408 PUSH_FP_REGNUM.
7409
44ea7b70
JB
74102003-04-14 Jim Blandy <jimb@redhat.com>
7411
7412 * symmisc.c: #include "gdb_regex.h".
7413 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7414 functions.
7415 * maint.c (maintenance_list_command): New function.
7416 (_initialize_maint_cmds): Register the above as commands.
7417 * symtab.h (maintenance_list_symtabs,
7418 maintenance_list_psymtabs): New declarations.
7419 * cli/cli-cmds.c (maintenancelistlist): New variable.
7420 (init_cmd_lists): Initialize it.
7421 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7422 * gdbcmd.h (maintenancelistlist): New declaration.
7423 * Makefile.in (symmisc.o): Update dependencies.
7424
2d0c7962
EZ
74252003-04-14 Elena Zannoni <ezannoni@redhat.com>
7426
7427 * s390-nat.c: Include asm/types.h for addr_t.
7428
1947a811
CV
74292003-04-14 Corinna Vinschen <vinschen@redhat.com>
7430
7431 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7432 actually incoming type.
7433
adb616d7
AC
74342003-04-13 Andrew Cagney <cagney@redhat.com>
7435
7436 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7437 get_next_frame and get_frame_saved_regs.
7438
9b5e151c
AC
74392003-04-13 Andrew Cagney <cagney@redhat.com>
7440
7441 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7442 of gdbarch_num_regs.
7443
ef6e7e13
AC
74442003-04-13 Andrew Cagney <cagney@redhat.com>
7445
7446 * frame.h: Mention what replaced what in "struct frame_info".
7447 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7448 deprecated_update_frame_base_hack and
7449 deprecated_update_frame_pc_hack.
7450 * hppa-tdep.c: Ditto.
7451
61fbb938
DJ
74522003-04-13 Daniel Jacobowitz <drow@mvista.com>
7453
7454 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7455 to read_reg and update its comment. Remove regnum member.
7456 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7457 Don't call read_reg when setting in_reg. Call read_reg to get
7458 the frame base if it's in a register. Return the register number
7459 on the stack instead of in the context. Remove extra arguments
7460 to read_reg.
7461 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7462 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7463 the register number on the expression stack.
7464 (needs_frame_read_reg): Remove extra arguments.
7465
0d53c4c4
DJ
74662003-04-13 Daniel Jacobowitz <drow@mvista.com>
7467
7468 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7469 made non-static.
7470 (execute_stack_op): All callers updated.
7471 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7472 * dwarf2loc.c (find_location_expression): New function.
7473 (dwarf_expr_frame_base): Call it.
7474 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7475 (dwarf2_tracepoint_var_ref): New function, broken out from
7476 locexpr_tracepoint_var_ref.
7477 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7478 Make static.
7479 (loclist_read_variable, loclist_read_needs_frame): New functions.
7480 (loclist_describe_location, loclist_tracepoint_var_ref): New
7481 functions.
7482 (dwarf2_loclist_funcs): New struct location_funcs.
7483 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7484 (struct dwarf2_locexpr_baton): Add comments.
7485 (dwarf2_loclist_funcs): New extern.
7486 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7487 base_address and base_known.
7488 (dwarf_loc_buffer): New variable.
7489 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7490 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7491 (dwarf2_has_info): Initialize dwarf_loc_offset.
7492 (dwarf2_build_psymtabs): Read in .debug_loc.
7493 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7494 DWARF_LOC_SIZE.
7495 (psymtab_to_symtab_1): Likewise. Move base address calculation
7496 here, from...
7497 (dwarf2_get_pc_bounds): ... here. Use the base address from
7498 cu_header.
7499 (dwarf2_symbol_mark_computed): Handle location lists.
7500
6aca59a3
DJ
75012003-04-13 Daniel Jacobowitz <drow@mvista.com>
7502
7503 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7504 if the linkage name demangled successfully.
7505
aca1fcd0
MK
75062003-04-13 Mark Kettenis <kettenis@gnu.org>
7507
97095916
MK
7508 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7509 disassmbly_flavour): Removed.
7510
aca1fcd0
MK
7511 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7512
562a961f
MK
75132003-04-13 Mark Kettenis <kettenis@gnu.org>
7514
7515 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7516
bd013d54
AC
75172003-04-12 Andrew Cagney <cagney@redhat.com>
7518
7519 * frame.h (struct frame_info): Move definition from here ...
7520 * frame.c (struct frame_info): ... to here.
7521
167ef8b1
AC
75222003-04-12 Andrew Cagney <cagney@redhat.com>
7523
7524 * gdbthread.h (save_infrun_state): Delete parameter
7525 "prev_func_start".
7526 (struct thread_info): Delete field "prev_func_start".
7527 (load_infrun_state): Ditto.
7528 * thread.c (load_infrun_state, save_infrun_state): Update.
7529 * infrun.c (prev_func_start): Delete variable.
7530 (context_switch, init_wait_for_inferior): Update.
7531 (stop_stepping, keep_going): Update.
7532
da3331ec
AC
75332003-04-12 Andrew Cagney <cagney@redhat.com>
7534
7535 * gdbarch.sh: Add missing opaque declarations.
7536 * gdbarch.h: Regnerate.
7537 * symtab.h: Add missing opaque declarations.
7538 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7539 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7540 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7541 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7542 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7543 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7544 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7545 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7546 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7547 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7548 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7549 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7550 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7551
18adea3f
AC
75522003-04-11 Andrew Cagney <cagney@redhat.com>
7553
7554 * frame.c (get_frame_id): Return this frame's "id".
7555 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7556 function start.
7557 (legacy_saved_regs_this_id): Replace function body with
7558 internal-error.
7559 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7560 FRAME_OBSTACK_ZALLOC.
7561 (create_new_frame): Mark the frame ID as valid.
7562
2252e863
AO
75632003-04-11 Alexandre Oliva <aoliva@redhat.com>
7564
7565 * Makefile.in (libbfd_h): Added missing setting.
7566 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7567 according to the selected ABI.
7568
a8245ab8
JJ
75692003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7570
7571 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7572
6913c89a
AC
75732003-04-11 Andrew Cagney <cagney@redhat.com>
7574
7575 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7576 SAVED_PC_AFTER_CALL.
7577 * gdbarch.h, gdbarch.c: Regenerate.
7578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7579 * x86-64-tdep.c (x86_64_init_abi): Update.
7580 * vax-tdep.c (vax_gdbarch_init): Update.
7581 * v850-tdep.c (v850_gdbarch_init): Update.
7582 * sparc-tdep.c (sparc_gdbarch_init): Update.
7583 * sh-tdep.c (sh_gdbarch_init): Update.
7584 * s390-tdep.c (s390_gdbarch_init): Update.
7585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7586 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7587 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7588 * mips-tdep.c (mips_gdbarch_init): Update.
7589 * mcore-tdep.c (mcore_gdbarch_init): Update.
7590 * m68k-tdep.c (m68k_gdbarch_init): Update.
7591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7592 * ia64-tdep.c (ia64_gdbarch_init): Update.
7593 (ia64_saved_pc_after_call): Update declaration.
7594 * i386ly-tdep.c (i386lynx_init_abi): Update.
7595 * i386-tdep.c (i386_gdbarch_init): Update.
7596 * hppa-tdep.c (hppa_gdbarch_init): Update.
7597 * h8300-tdep.c (h8300_gdbarch_init): Update.
7598 * frv-tdep.c (frv_gdbarch_init): Update.
7599 * cris-tdep.c (cris_gdbarch_init): Update.
7600 * avr-tdep.c (avr_gdbarch_init): Update.
7601 * arm-tdep.c (arm_gdbarch_init): Update.
7602 * alpha-tdep.c (alpha_gdbarch_init): Update.
7603 * ns32knbsd-nat.c (frame_num_args): Update.
7604 * ns32k-tdep.c (umax_frame_num_args): Update.
7605 * mips-tdep.c (mips_init_frame_pc_first): Update.
7606 * infrun.c (step_over_function): Update.
7607 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7608 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7609 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7610 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7611 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7612 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7613 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7614 * arch-utils.c (init_frame_pc_default): Update.
7615 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7616 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7617 declaration.
8ffd9b1b 7618
38edeab8
AC
76192003-04-11 Andrew Cagney <cagney@redhat.com>
7620
7621 * i387-tdep.c: Update copyright.
7622 (i387_to_double): Delete function.
7623 (double_to_i387): Delete function.
7624
81f8a206
AC
76252003-04-10 Andrew Cagney <cagney@redhat.com>
7626
7627 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7628 frame's function's address. Simplify.
7629 (d10v_frame_unwind_cache): Check that the frame's function is
7630 non-zero.
7631
6e691f7a
JB
76322003-04-10 Jim Blandy <jimb@redhat.com>
7633
7634 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7635 call to set_gdbarch_deprecated_push_arguments.
7636
7f78e237
AC
76372003-04-10 Andrew Cagney <cagney@redhat.com>
7638
7639 * frame.c (fprint_frame_id): New function.
7640 (fprint_frame_type, fprint_frame): New function.
7641 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7642 (create_sentinel_frame, get_frame_id): Ditto.
7643 (frame_id_p, frame_id_eq): Ditto.
7644 (frame_id_inner, create_new_frame): Ditto.
7645 (legacy_get_prev_frame, get_prev_frame): Ditto.
7646 (deprecated_update_frame_pc_hack): Ditto.
7647 (frame_register_unwind): Ditto.
7648 (deprecated_update_frame_base_hack): Ditto.
7649
f870b49b
CV
76502003-04-10 Corinna Vinschen <vinschen@redhat.com>
7651
7652 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7653 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7654 frame_chain function.
7655 * Makefile.in: Add dependencies due to above change.
7656
7c86889b
CV
76572003-04-10 Corinna Vinschen <vinschen@redhat.com>
7658
7659 * blockframe.c (legacy_frame_chain_valid): Move call to
7660 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7661 inside_entry_file.
7662
d0a55772
AC
76632003-04-09 Andrew Cagney <cagney@redhat.com>
7664
7665 * frame.h (struct frame_id): Replace "pc" and "base" with
7666 "stack_addr" and "code_addr". Update comments.
7667 (frame_id_build): Update parameter names and comment.
7668 (struct frame_info): Replace "id_p" and "id" with "this_id".
7669 * dummy-frame.c (dummy_frame_this_id): Update.
7670 * breakpoint.c (print_one_breakpoint): Update.
7671 * frame.c (get_frame_id): Update.
7672 (get_frame_base, frame_id_build): Update.
7673 (create_sentinel_frame, legacy_get_prev_frame): Update.
7674 (deprecated_update_frame_base_hack): Update.
7675 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7676 (frame_id_inner): Ditto.
7677
ac16bf07
AC
76782003-04-09 Andrew Cagney <cagney@redhat.com>
7679
7680 * defs.h (gdb_print_host_address): Make "addr" parameter a
7681 pointer constant.
7682 * utils.c (gdb_print_host_address): Update.
7683
366cfc9e
KB
76842003-04-09 Kevin Buettner <kevinb@redhat.com>
7685
7686 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7687 register number for R0 is 0.
7688
cd983b5c
JB
76892003-04-09 J. Brobecker <brobecker@gnat.com>
7690
7691 * frame.h (struct gdbarch): Add opaque structure definition
7692 to avoid a compilation warning on LynxOS 4.0.
7693
d1340264
AC
76942003-04-09 Andrew Cagney <cagney@redhat.com>
7695
7696 * frame.h (struct frame_info): Delete field "pc". Replace
7697 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7698 structure.
7699 * frame.c (frame_pc_unwind): Update.
7700 (create_sentinel_frame): Do not set "pc".
7701 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7702 (get_frame_pc): Call frame_pc_unwind.
7703 (deprecated_update_frame_pc_hack): Update.
7704 (create_new_frame): Use "pc" not "->pc".
7705
90a6fffb
AC
77062003-04-09 Andrew Cagney <cagney@redhat.com>
7707
7708 * frame.c (get_frame_id): Eliminate code updating "frame".
7709 (legacy_get_prev_frame): Ditto.
7710 (get_frame_base): Return id.base directly.
7711 (deprecated_update_frame_base_hack): Update "id.base".
7712 * frame.h (struct frame_info): Delete field "frame".
7713
2fbce691
AC
77142003-04-09 Andrew Cagney <cagney@redhat.com>
7715
7716 * NEWS: Mention that the "Sequent family" is obsolete.
7717 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7718 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7719 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7720 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7721 * config/i386/tm-ptx4.h: Obsolete file.
7722 * config/i386/tm-ptx.h: Obsolete file.
7723 * symm-tdep.c: Obsolete file.
7724 * config/i386/symmetry.mt: Obsolete file.
7725 * config/i386/tm-symmetry.h: Obsolete file.
7726 * symm-nat.c: Obsolete file.
7727 * config/i386/nm-symmetry.h: Obsolete file.
7728 * config/i386/xm-symmetry.h: Obsolete file.
7729 * config/i386/symmetry.mh: Obsolete file.
7730 * config/i386/nm-ptx4.h: Obsolete file.
7731 * config/i386/ptx4.mh: Obsolete file.
7732 * config/i386/ptx.mt: Obsolete file.
7733 * config/i386/ptx.mh: Obsolete file.
7734 * config/i386/xm-ptx4.h: Obsolete file.
7735 * config/i386/xm-ptx.h: Obsolete file.
7736
78c43945
AC
77372003-04-09 Andrew Cagney <cagney@redhat.com>
7738
7739 Obsolete mips*-*-mach3*.
7740 * NEWS: Mention that mips*-*-mach3* is obsolete.
7741 * m3-nat.c: Obsolete file.
7742 * config/nm-m3.h: Obsolete file.
7743 * config/mips/tm-mipsm3.h: Obsolete file.
7744 * config/mips/mipsm3.mt: Obsolete file.
7745 * config/mips/mipsm3.mh: Obsolete file.
7746 * config/mips/xm-mipsm3.h: Obsolete file.
7747 * mipsm3-nat.c: Obsolete file.
7748 * configure.host: Obsolete mips-dec-mach3*.
7749 * configure.tgt: Obsolete mips*-*-mach3*.
7750
f1908289
AC
77512003-04-09 Andrew Cagney <cagney@redhat.com>
7752
7753 * doublest.h: Update copyright.
7754 (deprecated_store_floating, deprecated_extract_floating): Rename
7755 store_floating and extract_floating. Update comments.
7756 * doublest.c: Update copyright.
7757 (extract_floating_by_length): Replace extract_floating.
7758 (store_floating_by_length): Replace store_floating.
7759 (deprecated_extract_floating): New function.
7760 (deprecated_store_floating): New function.
7761 (extract_typed_floating): Call extract_floating_by_length.
7762 (store_typed_floating): Call store_floating_by_length.
7763 * x86-64-tdep.c (x86_64_store_return_value): Update.
7764 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7765 (sh64_extract_return_value): Update.
7766 (sh_sh4_register_convert_to_virtual): Update.
7767 (sh_sh64_register_convert_to_virtual): Update.
7768 (sh_sh4_register_convert_to_raw): Update.
7769 (sh_sh64_register_convert_to_raw): Update.
7770 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7771 (rs6000_register_convert_to_raw): Update.
7772 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7773 (ia64_register_convert_to_raw): Update.
7774 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7775 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7776 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7777 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7778 (alpha_register_convert_to_raw): Update.
7779
4443bd83
AC
77802003-04-08 Andrew Cagney <cagney@redhat.com>
7781
7782 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7783 * gdbarch.h, gdbarch.c: Re-generate.
7784 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7785 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7786 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7787 conditionally, use frame_pc_unwind as an alternative. Add
7788 comments.
7789 * arch-utils.c (init_frame_pc_default): Only call
7790 SAVED_PC_AFTER_CALL when available.
7791
c0236d92
EZ
77922003-04-08 Elena Zannoni <ezannoni@redhat.com>
7793
fbe586ae 7794 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7795 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7796 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7797 (start_remote): Ditto.
7798 (handle_inferior_event): Ditto.
7799 (save_inferior_status): Ditto.
7800 (restore_inferior_status): Ditto.
7801 * infcmd.c (attach_command): Ditto.
7802 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7803 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7804 * alpha-tdep.c (heuristic_proc_start): Ditto.
7805 * mips-tdep.c (heuristic_proc_start): Ditto.
7806 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7807 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7808 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7809 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7810 * remote-vx.c (vx_create_inferior): Ditto.
7811
78122003-04-08 Elena Zannoni <ezannoni@redhat.com>
7813
7814 * infrun.c (stop_soon_quietly): Make it an enum, to better
7815 override the default behavior of handle_inferior_event.
7816 (clear_proceed_status): Update uses of stop_soon_quietly to
7817 reflect that it is now an enum.
7818 (start_remote): Ditto.
7819 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7820 is set to handle the new GNU/Linux kernel behavior for
7821 attach/sigstop. Update uses of stop_soon_quietly.
7822 * inferior.h (enum stop_kind): New enum.
7823 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7824 Reset normal handle_inferior_event behavior, afterwards.
7825 * fork-child.c (startup_inferior): Update.
7826 * alpha-tdep.c (heuristic_proc_start): Update.
7827 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7828 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7829 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7830 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7831 * remote-vx.c (vx_create_inferior): Update.
7832 * mips-tdep.c (heuristic_proc_start): Update.
7833
1211bce3
EZ
78342003-04-07 Elena Zannoni <ezannoni@redhat.com>
7835
7836 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7837 be freed more than once, causing wild memory corruptions.
1211bce3 7838 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7839 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7840 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7841 with the "core" target.
1211bce3 7842
f0ef6b29
KB
78432003-04-07 Kevin Buettner <kevinb@redhat.com>
7844
7845 * mips-tdep.c (mips_print_fp_register): New function, created from
7846 do_fp_register_row(). Registers are now (also) printed as hex.
7847 Only one register is printed per row.
7848 (mips_print_register, do_fp_register_row): Print floating point
7849 registers with mips_print_fp_register().
7850
8cf71652
AC
78512003-04-06 Andrew Cagney <cagney@redhat.com>
7852
5e488a7b
AC
7853 * valprint.h (inspect_it): Add extern declaration.
7854 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7855 (selectors_info, classes_info): Ditto.
7856 (find_objc_msgcall): Fix indentation.
7857 (objc_printstr): Delete extern declarations.
7858
8cf71652
AC
7859 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7860
e6ba3bc9
AC
78612003-04-06 Andrew Cagney <cagney@redhat.com>
7862
7863 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7864 Update comment.
7865 * frame.c (legacy_saved_regs_this_id): Update.
7866 (legacy_get_prev_frame): Update.
7867 * xstormy16-tdep.c: Update comment.
7868 * sparc-tdep.c (sparc_frame_chain): Update comment.
7869 * blockframe.c (legacy_frame_chain_valid): Update.
7870
55e1d7e7
AC
78712003-04-06 Andrew Cagney <cagney@redhat.com>
7872
996179ee
AC
7873 * valprint.c (val_print_type_code_int): Delete #ifdef
7874 PRINT_TYPELESS_INTEGER code.
7875
55e1d7e7
AC
7876 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7877 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7878 multi-arch definition.
7879 * gdbarch.h: Re-generate.
7880
43bd9a9e
AC
78812003-04-05 Andrew Cagney <cagney@redhat.com>
7882
7883 Eliminate FRAME_FIND_SAVED_REGS.
7884 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7885 Change FSR parameter to a pointer.
7886 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7887 Assume FSR parameter is a pointer.
7888 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7889 Make fsr a pointer.
7890 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7891 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7892 saved_regs a pointer.
7893 (hppa_frame_saved_pc): Ditto.
7894 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7895 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7896 pointer.
7897 (restore_pc_queue): Make fsr a pointer.
7898 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7899 (hppa_frame_chain): Make saved_regs a pointer, call
7900 hppa_frame_init_saved_regs.
7901 * sparc-tdep.c: Include "gdb_assert.h".
7902 (sparc_frame_find_saved_regs): Replace internal_error with
7903 gdb_assert.
7904 * remote-vxsparc.c (vx_read_register): Delete reference to
7905 FRAME_FIND_SAVED_REGS.
7906 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7907 * gdbarch.h: Regenerate.
7908 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7909 (deprecated_get_frame_saved_regs): Delete declaration.
7910 (struct frame_saved_regs): Delete definition.
7911 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7912 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7913 (hppa_frame_find_saved_regs): Delete declaration.
7914 (FRAME_FIND_SAVED_REGS): Delete macro.
7915 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7916 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7917 FRAME_FIND_SAVED_REGS in comment.
7918
be41e9f4
AC
79192003-04-05 Andrew Cagney <cagney@redhat.com>
7920
7921 * frame.c (frame_func_unwind, get_frame_func): New functions.
7922 * frame.h (get_frame_func, frame_func_unwind): Declare.
7923 (struct frame_info): Add field "prev_func" for caching the
7924 previous frame's function address.
7925 * arm-tdep.c (arm_frameless_function_invocation): Combine
7926 get_pc_function_start and get_frame_pc into get_frame_func.
7927 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7928 (sh64_nofp_frame_init_saved_regs): Ditto.
7929 * s390-tdep.c (s390_function_start): Ditto.
7930 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7931 (rs6000_frameless_function_invocation): Ditto.
7932 (rs6000_frame_saved_pc): Ditto.
7933 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7934 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7935 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7936 (i386_frame_init_saved_regs): Ditto.
7937 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7938 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7939 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7940 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7941 * blockframe.c (frameless_look_for_prologue): Ditto.
7942
a01dd7cc
AC
79432003-04-05 Andrew Cagney <cagney@redhat.com>
7944
7945 * frame.c (legacy_get_prev_frame): Link prev to next at the
7946 function start. Update comments.
7947
5e5592e6
AC
79482003-04-05 Andrew Cagney <cagney@redhat.com>
7949
7950 * frame.c (get_frame_id): Update comment.
7951 (legacy_get_prev_frame): Update comment.
7952 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7953 * gdbarch.h: Regenerate.
7954 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7955 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7956
6fba5002
AC
79572003-04-05 Andrew Cagney <cagney@redhat.com>
7958
7959 * stack.c (print_frame_info): Use get_frame_pc.
7960
7df05f2b
AC
79612003-04-04 Andrew Cagney <cagney@redhat.com>
7962
7963 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7964 the frame's type from the unwinder.
7965 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7966 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7967 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7968 (get_frame_base_address): Use get_frame_type.
7969 (get_frame_locals_address, get_frame_args_address): Ditto.
7970 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7971 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7972 (struct frame_info): Add comment explaining why the frame contains
7973 a "type" field.
7974 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7975 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7976 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7977 NORMAL_FRAME.
7978 * frame-unwind.h: Include "frame.h".
7979 (struct frame_unwind): Add "type" field.
7980 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7981
11889732
AC
79822003-04-04 Andrew Cagney <cagney@redhat.com>
7983
7984 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7985 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7986 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7987 get_frame_base.
7988 (d10v_unwind_dummy_id): Use frame_id_build.
7989 * frame.c (find_frame_sal): Use get_frame_pc.
7990 (create_new_frame): Use deprecated_update_frame_pc_hack and
7991 deprecated_update_frame_base_hack.
7992 (create_sentinel_frame): Add comment about ->pc going away.
7993 (get_prev_frame): Add comment about ->pc going away.
7994 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7995 frame_id_build, deprecated_update_frame_pc_hack and
7996 deprecated_update_frame_base_hack.
7997 (select_frame): Use get_frame_pc.
7998 (legacy_saved_regs_this_id): Use frame_id_build.
7999
50c46a0d
EZ
80002003-04-04 Elena Zannoni <ezannoni@redhat.com>
8001
fbe586ae
RH
8002 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8003 signed integer case.
8004 (classify_argument): Handle enumerations and references.
50c46a0d 8005
50bbdbd9
AC
80062003-04-04 Andrew Cagney <cagney@redhat.com>
8007
8008 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8009 ID to NULL.
8010
36018d2e
AF
80112003-04-01 Adam Fedor <fedor@gnu.org>
8012
8013 * gdb/objc-lang.c (selectors_info): Replace calls to
8014 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8015 SYMBOL_NATURAL_NAME.
8016 (classes_info, find_methods): Likewise.
8017
35cec841
KB
80182003-04-03 Kevin Buettner <kevinb@redhat.com>
8019
8020 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8021 ``mach'' to the value determined by bfd_default_set_arch_mach().
8022
43136899
BR
80232003-04-02 Bob Rossi <bob_rossi@cox.net>
8024
8025 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8026 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8027 (mi-cmd-file.o): Update dependencies.
8028
040b99fd
KB
80292003-04-01 Kevin Buettner <kevinb@redhat.com>
8030
8031 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8032 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8033
9a3d7dfd
AF
80342003-04-01 Adam Fedor <fedor@gnu.org>
8035
8036 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8037 * language.h (struct language_defn): Add la_demangle.
8038 (language_demangle): Declare.
8039 * language.c (language_demangle): New function.
8040 (unk_lang_demangle): Likewise.
8041 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8042 Add ukn_lang_demangle.
9a3d7dfd 8043 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8044 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8045 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8046 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8047 * jv-lang.c (java_demangle): New function
8048 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8049 * objc-lang.c (objc_demangle): Add options argument
8050 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8051 * maint.c (maintenance_demangle): Replace switch with
8052 call to language_demangle.
8053 * utils.c (fprintf_symbol_filtered): Likewise.
8054
5e074003
AC
80552003-04-01 Andrew Cagney <cagney@redhat.com>
8056
8057 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8058 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8059 PRINT_TYPELESS_INTEGER.
8060 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8061 PUSH_RETURN_ADDRESS.
8062
270cb5d6
AC
80632003-04-01 Andrew Cagney <cagney@redhat.com>
8064
8065 * Makefile.in (d10v-tdep.o): Update dependencies.
8066 * d10v-tdep.c: Include "frame-base.h".
8067 (d10v_frame_unwind): Make constant.
8068 (d10v_frame_base_address): New function.
8069 (d10v_frame_base): New variable.
8070 (d10v_gdbarch_init): Set frame_base default.
8071 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8072 comment for base.
8073 (d10v_frame_unwind_cache): Set and use "prev_sp".
8074 (d10v_frame_this_id): Use the previous frame's inner most stack
8075 address and this frame's func address for the frame ID. Use
8076 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8077
6bfb3e36
AC
80782003-04-01 Andrew Cagney <cagney@redhat.com>
8079
8080 * frame.h (get_frame_locals_address, get_frame_args_address):
8081 Refer to the base address, instead of the address of the first
8082 local or parameter.
8ffd9b1b 8083
da62e633
AC
80842003-04-01 Andrew Cagney <cagney@redhat.com>
8085
8086 Add frame debug info addresses:
8087 * frame-base.c: New file.
8088 * frame-base.h: New file.
8089 * frame.h (struct frame_base): Add opaque declaration.
8090 (get_frame_base): Update comment.
8091 (get_frame_base_address): Declare.
8092 (get_frame_locals_address): Declare.
8093 (get_frame_args_address): Declare.
8094 (struct frame_info): Add "base" and "base_cache". Update
8095 comments on the unwinder.
8096 * frame.c: Include "frame-base.h".
8097 (get_frame_locals_address): New function.
8098 (get_frame_base_address): New function.
8099 (get_frame_args_address): New function.
8100 * findvar.c (read_var_value): Use get_frame_locals_address and
8101 get_frame_args_address.
8102 * stack.c (frame_info): Use get_frame_locals_address and
8103 get_frame_args_address.
8104 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8105 moved to "frame-base.c".
8106 * printcmd.c (print_frame_nameless_args): Ditto.
8107 * symtab.h (address_class): Update comments.
8108 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8109 get_frame_base_address.
8110 * dwarf2expr.c (execute_stack_op): Ditto.
8111 * Makefile.in (frame_base_h): Define.
8112 (frame.o): Update dependencies.
8113 (frame-base.o): Add dependencies.
8114 (SFILES): Add frame-base.c.
8115 (COMMON_OBS): Add frame-base.o.
8116
3d30e9c2
AC
81172003-04-01 Andrew Cagney <cagney@redhat.com>
8118
8119 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8120 CALL_DUMMY_LENGTH): Ditto.
8121 * gdbarch.c: Re-generate.
8122 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8123 (CALL_DUMMY_LENGTH): Delete macro.
8124 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8125 * arm-tdep.c (arm_gdbarch_init): Ditto.
8126 * avr-tdep.c (avr_gdbarch_init): Ditto.
8127 * cris-tdep.c (cris_gdbarch_init): Ditto.
8128 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8129 * frv-tdep.c (frv_gdbarch_init): Ditto.
8130 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8131 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8132 * i386-tdep.c (i386_gdbarch_init): Ditto.
8133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8135 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8136 * mips-tdep.c (mips_gdbarch_init): Ditto.
8137 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8138 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8139 * s390-tdep.c (s390_gdbarch_init): Ditto.
8140 * sh-tdep.c (sh_gdbarch_init): Ditto.
8141 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8142 * v850-tdep.c (v850_gdbarch_init): Ditto.
8143 * vax-tdep.c (vax_gdbarch_init): Ditto.
8144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8145
ce0c7262
CV
81462003-04-01 Corinna Vinschen <vinschen@redhat.com>
8147
8148 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8149
73dd234f
AC
81502003-04-01 Andrew Cagney <cagney@redhat.com>
8151
8152 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8153 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8154 * gdbarch.h, gdbarch.c: Re-generate.
8155 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8156 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8157 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8158 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8159 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8160 * infcmd.c (run_stack_dummy): Simplify assuming
8161 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8162 * infrun.c (handle_inferior_event): Ditto.
8163 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8164 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8165 * arm-tdep.c (arm_gdbarch_init): Ditto.
8166 * avr-tdep.c (avr_gdbarch_init): Ditto.
8167 * cris-tdep.c (cris_gdbarch_init): Ditto.
8168 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8169 * frv-tdep.c (frv_gdbarch_init): Ditto.
8170 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8171 * i386-tdep.c (i386_gdbarch_init): Ditto.
8172 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8174 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8175 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8176 * mips-tdep.c (mips_gdbarch_init): Ditto.
8177 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8178 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8179 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8180 * s390-tdep.c (s390_gdbarch_init): Ditto.
8181 * sh-tdep.c (sh_gdbarch_init): Ditto.
8182 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8183 * v850-tdep.c (v850_gdbarch_init): Ditto.
8184 * vax-tdep.c (vax_gdbarch_init): Ditto.
8185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8186
97606a13
DJ
81872003-04-01 Daniel Jacobowitz <drow@mvista.com>
8188
8189 * symfile.c (symfile_relocate_debug_section): Update call to
8190 bfd_simple_get_relocated_section_contents.
8191
e8ab51f7
AC
81922003-03-31 Andrew Cagney <cagney@redhat.com>
8193
8194 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8195 * gdbarch.h, gdbarch.c: Regenerate.
8196 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8197 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8198 available.
8199 * frame.h (generic_fix_call_dummy): Delete declaration.
8200 * dummy-frame.h: Update comment.
8201 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8203 fix_call_dummy.
8204 * sh-tdep.c (sh_gdbarch_init): Ditto.
8205 * s390-tdep.c (s390_gdbarch_init): Ditto.
8206 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8207 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8209 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8210 * i386-tdep.c (i386_gdbarch_init): Ditto.
8211 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8212 * frv-tdep.c (frv_gdbarch_init): Ditto.
8213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8214 * cris-tdep.c (cris_gdbarch_init): Ditto.
8215 * avr-tdep.c (avr_gdbarch_init): Ditto.
8216 * arm-tdep.c (arm_gdbarch_init): Ditto.
8217
018d1b48
JB
82182003-03-31 J. Brobecker <brobecker@gnat.com>
8219
8220 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8221 (INIT_FRAME_AP): Likewise.
8222 (EXTRA_FRAME_INFO): Likewise.
8223
e9a2674e
AC
82242003-03-31 Andrew Cagney <cagney@redhat.com>
8225
8226 * gdbarch.sh: Include "symfile.h".
8227 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8228 * gdbarch.h, gdbarch.c: Re-generate.
8229 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8231 call_dummy_address, the default is at entry_point_address.
8232 * v850-tdep.c (v850_gdbarch_init): Ditto.
8233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8234 * sh-tdep.c (sh_gdbarch_init): Ditto.
8235 * s390-tdep.c (s390_gdbarch_init): Ditto.
8236 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8238 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8239 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8240 * i386-tdep.c (i386_gdbarch_init): Ditto.
8241 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8242 * frv-tdep.c (frv_gdbarch_init): Ditto.
8243 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8244 * cris-tdep.c (cris_gdbarch_init): Ditto.
8245 * arm-tdep.c (arm_gdbarch_init): Ditto.
8246
e8a8712a
AC
82472003-03-31 Andrew Cagney <cagney@redhat.com>
8248
8249 * gdbarch.sh (CALL_DUMMY_P): Delete.
8250 * gdbarch.h, gdbarch.c: Re-generate.
8251 * inferior.h (CALL_DUMMY_P): Delete macro.
8252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8253 * vax-tdep.c (vax_gdbarch_init): Update.
8254 * v850-tdep.c (v850_gdbarch_init): Update.
8255 * sparc-tdep.c (sparc_gdbarch_init): Update.
8256 * sh-tdep.c (sh_gdbarch_init): Update.
8257 * s390-tdep.c (s390_gdbarch_init): Update.
8258 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8259 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8260 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8261 * mips-tdep.c (mips_gdbarch_init): Update.
8262 * mcore-tdep.c (mcore_gdbarch_init): Update.
8263 * m68k-tdep.c (m68k_gdbarch_init): Update.
8264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8265 * ia64-tdep.c (ia64_gdbarch_init): Update.
8266 * i386-tdep.c (i386_gdbarch_init): Update.
8267 * h8300-tdep.c (h8300_gdbarch_init): Update.
8268 * frv-tdep.c (frv_gdbarch_init): Update.
8269 * d10v-tdep.c (d10v_gdbarch_init): Update.
8270 * cris-tdep.c (cris_gdbarch_init): Update.
8271 * breakpoint.c (deprecated_frame_in_dummy): Update.
8272 * avr-tdep.c (avr_gdbarch_init): Update.
8273 * alpha-tdep.c (alpha_gdbarch_init): Update.
8274 * arm-tdep.c (arm_gdbarch_init): Update.
8275 * dummy-frame.c (dummy_frame_this_id): Update comments.
8276 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8277 * frame.c (legacy_get_prev_frame): Ditto.
8278 * valops.c (call_function_by_hand): Delete function.
8279 (hand_function_call): Rename to call_function_by_hand
8280
ed234cf8
AC
82812003-03-30 Andrew Cagney <cagney@redhat.com>
8282
8283 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8284 * value.h (struct value): Update comment.
ed234cf8 8285
06c77151
AC
82862003-03-30 Andrew Cagney <cagney@redhat.com>
8287
6c2b5168
AC
8288 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8289 D10V_FP_REGNUM.
8290 (d10v_gdbarch_init): Do not set fp_regnum.
8291
06c77151
AC
8292 * frame.c (get_frame_base): Force ID initialization.
8293 (get_prev_frame): Move computation of the frame ID from here ...
8294 (get_frame_id): ... to here.
8295 (legacy_get_prev_frame): Mark the frame ID as valid.
8296 * frame.h (struct frame_info): Add field "id_p".
8297
97a1a11c
MK
82982003-03-30 Mark Kettenis <kettenis@gnu.org>
8299
8300 * i386-tdep.c (i386_store_struct_return): Removed.
8301 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8302
6c0e89ed
AC
83032003-03-30 Andrew Cagney <cagney@redhat.com>
8304
8305 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8306 * gdbarch.h, gdbarch.c: Regenerate.
8307 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8309 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8310 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8311 * i386-tdep.c (i386_gdbarch_init): Ditto.
8312 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8313 * cris-tdep.c (cris_gdbarch_init): Ditto.
8314 * vax-tdep.c (vax_gdbarch_init): Ditto.
8315 * s390-tdep.c (s390_gdbarch_init): Ditto.
8316 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8317 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8318 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8319 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8320 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8321 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8322 * sparc-tdep.c (sparc_gdbarch_init): Update.
8323 * sh-tdep.c (sh_gdbarch_init): Update.
8324 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8325 * mips-tdep.c (mips_gdbarch_init): Update.
8326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8327 * ia64-tdep.c (ia64_gdbarch_init): Update.
8328 * frv-tdep.c (frv_gdbarch_init): Update.
8329 * avr-tdep.c (avr_gdbarch_init): Update.
8330 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8331 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8332 instead of when push_dummy_call is not available.
8ffd9b1b 8333
f7dd6af2
AC
83342003-03-30 Andrew Cagney <cagney@redhat.com>
8335
8336 * infttrace.c: Include "gdbthread.h".
8337 (parent_attach_all): Fix function signature.
8338 (call_ptrace): Update call.
8339 * Makefile.in (infttrace.o): Update dependencies.
8340
28f617b3
AC
83412003-03-30 Andrew Cagney <cagney@redhat.com>
8342
8343 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8344 PUSH_RETURN_ADDRESS.
8345 * gdbarch.h, gdbarch.c: Regenerate.
8346 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8347 * x86-64-tdep.c (x86_64_init_abi): Update.
8348 * v850-tdep.c (v850_gdbarch_init): Update.
8349 * sparc-tdep.c (sparc_gdbarch_init): Update.
8350 * sh-tdep.c (sh_gdbarch_init): Update.
8351 * s390-tdep.c (s390_gdbarch_init): Update.
8352 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8353 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8354 * mips-tdep.c (mips_gdbarch_init): Update.
8355 * mcore-tdep.c (mcore_gdbarch_init): Update.
8356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8357 * ia64-tdep.c (ia64_gdbarch_init): Update.
8358 * i386-tdep.c (i386_gdbarch_init): Update.
8359 * h8300-tdep.c (h8300_gdbarch_init): Update.
8360 * frv-tdep.c (frv_gdbarch_init): Update.
8361 * cris-tdep.c (cris_gdbarch_init): Update.
8362 * avr-tdep.c (avr_gdbarch_init): Update.
8363 * arm-tdep.c (arm_gdbarch_init): Update.
8364 * valops.c (hand_function_call): Update.
8365
4d628cd7
AC
83662003-03-29 Andrew Cagney <cagney@redhat.com>
8367
8368 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8369 sizeof_call_dummy_words.
8370 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8371 define.
8372 * gdbarch.h: Regenerate.
8ffd9b1b 8373
65e82032
AC
83742003-03-29 Andrew Cagney <cagney@redhat.com>
8375
8376 * infttrace.h: New file.
8377 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8378 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8379 (hpread_read_doc_function_type): Detect an initialized type1.
8380 (hpread_quick_traverse): Initialize mod_name_string.
8381 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8382 (som_solib_get_solib_by_pc): Declare.
8383 (so_lib_thread_start_addr): Declare.
8384 (no_shared_libraries): Declare.
8385 * somread.c (init_import_symbols): Make static. Add forward
8386 declaration.
8387 * config/pa/nm-hppah.h: Include "infttrace.h" for
8388 parent_attach_all.
8389 (hppa_insert_hw_watchpoint): Declare.
8390 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8391 * hppah-nat.c: Include "gdb_string.h".
8392 (parent_attach_all): Delete extern declaration, moved to
8393 "infttrace.h".
8394 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8395 int.
8396 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8397 * Makefile.in (infttrace_h): Define.
8398 (hpread.o): Update dependencies.
8399 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8400 * hppa-hpux-tdep.c: Include "gdb_string.h".
8401 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8402 * infrun.c (handle_inferior_event): Always initialize
8403 stepped_after_stopped_by_watchpoint. Add default and remove
8404 fallthrough in switch statement.
8405 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8406 parameter to int.
8407 (hppa_remove_hw_watchpoint): Ditto.
8408
2c3bbe77
AC
84092003-03-29 Andrew Cagney <cagney@redhat.com>
8410
8411 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8412 offset.
8413
2dd604e7
RE
84142003-03-29 Richard Earnshaw <rearnsha@arm.com>
8415
8416 * arm-tdep.c (arm_push_arguments): Delete.
8417 (struct stack_item): New type.
8418 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8419 (arm_store_struct_return): Delte.
8420 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8421 arm_push_arguments or arm_store_struct_return.
8422
e8933a55
AC
84232003-03-28 Andrew Cagney <cagney@redhat.com>
8424
8425 * Makefile.in (d10v-tdep.o): Update dependencies.
8426 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8427 * d10v-tdep.c: Include "remote.h".
8428 (target_resume_hook): Delete extern declaration.
8429 (target_wait_loop_hook): Ditto.
8430 (tdisassemble_command): Eliminate assignment in "if" conditional.
8431 (d10v_ts2_register_sim_regno): Eliminate call to
8432 legacy_register_sim_regno.
8433 (d10v_ts3_register_sim_regno): Ditto.
8434
6949171e
JJ
84352003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8436
8437 * thread.c: Reindented.
8438 * lin-lwp.c: Ditto.
8439 * linux-proc.c: Ditto.
8440
98c7071f
BR
84412003-03-28 Bob Rossi <bob_rossi@cox.net>
8442
fbe586ae 8443 * MAINTAINERS (write after approval): Add myself.
98c7071f 8444
5edc9ca6
TR
84452003-03-27 Theodore A. Roth <troth@openavr.org>
8446
8447 * objc-exp.y: Add missing semi-colons.
8448
378bfd1b
AC
84492003-03-27 Andrew Cagney <cagney@redhat.com>
8450
8451 * regcache.c (write_sp): Delete function and references.
8452 * inferior.h (write_sp): Delete declaration.
8453 * valops.c (hand_function_call): Replace write_sp with
8454 TARGET_WRITE_SP.
8455 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8456 (sparc_pop_frame): Ditto.
8ffd9b1b 8457
56056df7
AC
84582003-03-27 Andrew Cagney <cagney@redhat.com>
8459
8460 * NEWS: Mention removal of support for hppa*-*-bsd* and
8461 hppa*-*-osf* natives, and hppa*-*-pro* target.
8462 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8463 * config/pa/xm-pa.h: Obsolete file.
8464 * config/pa/xm-hppab.h: Obsolete file.
8465 * config/pa/nm-hppab.h: Obsolete file.
8466 * config/pa/tm-hppab.h: Obsolete file.
8467 * config/pa/tm-hppao.h: Obsolete file.
8468 * config/pa/nm-hppao.h: Obsolete file.
8469 * config/pa/tm-pro.h: Obsolete file.
8470 * config/pa/hppaosf.mt: Obsolete file.
8471 * config/pa/hppaosf.mh: Obsolete file.
8472 * config/pa/hppapro.mt: Obsolete file.
8473 * config/pa/hppabsd.mt: Obsolete file.
8474 * config/pa/hppabsd.mh: Obsolete file.
8475 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8476 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8477 hppa*-*-osf*.
8478
5873a88d
AC
84792003-03-27 Andrew Cagney <cagney@redhat.com>
8480
8481 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8482 push_arguments. Don't set push_return_address or write_sp.
8483 (d10v_push_dummy_call): Replace d10v_push_arguments.
8484 (d10v_push_return_address, d10v_write_sp): Delete function,
8485 handled by push_dummy_call.
8486
b81774d8
AC
84872003-03-26 Andrew Cagney <cagney@redhat.com>
8488
8489 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8490 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8491 regcache and dummy_addr parameters.
8492 * gdbarch.h, gdbarch.c: Re-generate.
8493 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8494 available; assume it will handle stack alignment and return
8495 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8496 legacy_push_arguments.
8497 (legacy_push_arguments): Rename default_push_arguments.
8498 * value.h (legacy_push_arguments): Rename default_push_arguments.
8499 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8500 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8501 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8502 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8503 * config/i386/tm-symmetry.h: Update.
8504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8505 * x86-64-tdep.c (x86_64_init_abi): Update.
8506 * v850-tdep.c (v850_gdbarch_init): Update.
8507 * sparc-tdep.c (sparc_gdbarch_init): Update.
8508 * sh-tdep.c (sh_gdbarch_init): Update.
8509 * s390-tdep.c (s390_gdbarch_init): Update.
8510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8512 * mips-tdep.c (mips_gdbarch_init): Update.
8513 * mcore-tdep.c (mcore_gdbarch_init): Update.
8514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8515 * ia64-tdep.c (ia64_gdbarch_init): Update.
8516 * i386-tdep.c (i386_gdbarch_init): Update.
8517 * hppa-tdep.c (hppa_gdbarch_init): Update.
8518 * h8300-tdep.c (h8300_gdbarch_init): Update.
8519 * frv-tdep.c (frv_gdbarch_init): Update.
8520 * d10v-tdep.c (d10v_gdbarch_init): Update.
8521 * cris-tdep.c (cris_gdbarch_init): Update.
8522 * avr-tdep.c (avr_gdbarch_init): Update.
8523 * arm-tdep.c (arm_gdbarch_init): Update.
8524 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8525 * alpha-tdep.c (alpha_gdbarch_init): Update.
8526
f541410f
DJ
85272003-03-26 Daniel Jacobowitz <drow@mvista.com>
8528
8529 * signals/signals.c (do_target_signal_to_host): Correct realtime
8530 signal range test.
8531
69f567ae
DJ
85322003-03-26 Daniel Jacobowitz <drow@mvista.com>
8533
8534 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8535 (struct sal_chain, map_catch_names): Remove.
8536 (catch_exception_command_1): Don't call
8537 handle_gnu_4_16_catch_command.
8538
d5d14a5a
DJ
85392003-03-26 Daniel Jacobowitz <drow@mvista.com>
8540
8541 From Mark Dettinger <dettinge@de.ibm.com>:
8542 * dwarf2cfi.c (read_2u): Increment pointer by two.
8543
bdd73e22
DJ
85442003-03-26 Daniel Jacobowitz <drow@mvista.com>
8545
8546 * signals/signals.c: Fix typos in last change.
8547
960cb555
DJ
85482003-03-26 Daniel Jacobowitz <drow@mvista.com>
8549
8550 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8551 not already defined. Use __SIGRTMIN if available.
8552 (target_signal_from_host): Remove SIGRTMIN block.
8553 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8554 the signal is within the realtime range.
8555
f636b87d
AF
85562003-03-25 Adam Fedor <fedor@gnu.org>
8557
8558 * Makefile.in (infrun.o): Add $(language_h)
8559 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8560 for language specific trampolines.
8561 * language.h (struct language_defn): Add skip_trampoline.
8562 (skip_language_trampoline): Declare.
8563 * language.c (unk_lang_trampoline, skip_language_trampoline):
8564 New functions.
8565 (unknown_language_defn, auto_language_defn, local_language_defn):
8566 Add ukn_lang_trampoline.
8567 * ada-lang.c (ada_language_defn): Add NULL for language
8568 specific skip_trampoline.
8569 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8570 scm-lang.c: Likewise.
8571 * objc-lang.c (objc_skip_trampoline): New function.
8572 (objc_language_defn): Add objc_skip_trampoline.
8573
28f617b3 85742003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8575
8576 * frame.c (get_prev_frame): Delay validating a frame's ID -
8577 non-NULL, didn't go backwards - until an attempt to unwind it to
8578 the previous frame.
8579
f933a9c5
AC
85802003-03-25 Andrew Cagney <cagney@redhat.com>
8581
8582 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8583 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8584 * gdbarch.h, gdbarch.c: Re-generate.
8585 * config/sparc/tm-sparc.h
8586 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8587 * sparc-tdep.c (sparc_gdbarch_init): Set
8588 deprecated_extra_stack_alignment_needed.
8589 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8591 extra_stack_alignment_needed.
8592 * v850-tdep.c (v850_gdbarch_init): Ditto.
8593 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8594 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8595 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8596 * cris-tdep.c (cris_gdbarch_init): Ditto.
8597 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8599
4183d812
AC
86002003-03-25 Andrew Cagney <cagney@redhat.com>
8601
8602 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8603 STORE_STRUCT_RETURN.
8604 * gdbarch.h, gdbarch.c: Regenerate.
8605 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8606 (d10v_push_arguments): Set the struct return register.
8607 (d10v_gdbarch_init): Update.
8608 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8609 * x86-64-tdep.c (x86_64_init_abi): Update.
8610 * vax-tdep.c (vax_gdbarch_init): Update.
8611 * v850-tdep.c (v850_gdbarch_init): Update.
8612 * sparc-tdep.c (sparc_gdbarch_init): Update.
8613 * sh-tdep.c (sh_gdbarch_init): Update.
8614 * s390-tdep.c (s390_gdbarch_init): Update.
8615 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8616 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8617 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8618 * mips-tdep.c (mips_gdbarch_init): Update.
8619 * mcore-tdep.c (mcore_gdbarch_init): Update.
8620 * m68k-tdep.c (m68k_gdbarch_init): Update.
8621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8622 * ia64-tdep.c (ia64_gdbarch_init): Update.
8623 * i386-tdep.c (i386_gdbarch_init): Update.
8624 * hppa-tdep.c (hppa_gdbarch_init): Update.
8625 * h8300-tdep.c (h8300_gdbarch_init): Update.
8626 * frv-tdep.c (frv_gdbarch_init): Update.
8627 * cris-tdep.c (cris_gdbarch_init): Update.
8628 * avr-tdep.c (avr_gdbarch_init): Update.
8629 * arm-tdep.c (arm_gdbarch_init): Update.
8630 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8631
1bf6d5cc
AC
86322003-03-25 Andrew Cagney <cagney@redhat.com>
8633
8634 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8635 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8636 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8637 * gdbarch.h, gdbarch.c: Regenerate.
8638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8639 call_dummy_stack_adjust_p.
8640 * vax-tdep.c (vax_gdbarch_init): Ditto.
8641 * v850-tdep.c (v850_gdbarch_init): Ditto.
8642 * sh-tdep.c (sh_gdbarch_init): Ditto.
8643 * s390-tdep.c (s390_gdbarch_init): Ditto.
8644 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8645 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8646 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8647 * mips-tdep.c (mips_gdbarch_init): Ditto.
8648 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8649 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8651 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8652 * i386-tdep.c (i386_gdbarch_init): Ditto.
8653 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8654 * frv-tdep.c (frv_gdbarch_init): Ditto.
8655 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8656 * cris-tdep.c (cris_gdbarch_init): Ditto.
8657 * avr-tdep.c (avr_gdbarch_init): Ditto.
8658 * arm-tdep.c (arm_gdbarch_init): Ditto.
8659 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8660 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8661 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8662 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8663 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8664 call_dummy_stack_adjust_p.
8665 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8666 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8667 * sparc-tdep.c (sparc32_push_arguments): Update.
8668 * valops.c (hand_function_call): Update.
8669
71c08af0
CV
86702003-03-25 Corinna Vinschen <vinschen@redhat.com>
8671
8672 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8673 set_gdbarch_char_signed.
8674
30757f90
RE
86752003-03-25 Richard Earnshaw <rearnsha@arm.com>
8676
8677 PR cli/548
8678 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8679
03d48a7d
RE
86802003-03-25 Richard Earnshaw <rearnsha@arm.com>
8681
8682 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8683 (_initialize_arm_tdep): Don't set tm_print_insn.
8684
2cf6873c
AF
86852003-03-24 Adam Fedor <fedor@gnu.org>
8686
8687 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8688 * objc-lang.h: Add multiple inclusion protection.
8689 (start_msglist, add_msglist, end_msglist): Additional declarations.
8690
17c0759e
RE
86912003-03-24 Richard Earnshaw <rearnsha@arm.com>
8692
8693 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8694 value was renamed to ARM_FLOAT_SOFT_FPA.
8695
618ce49f
AC
86962003-03-23 Andrew Cagney <cagney@redhat.com>
8697
8698 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8699 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8700 * gdbarch.h, gdbarch.c: Regenerate.
8701 * valops.c (hand_function_call): Update.
8702 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8703 * frame.c (legacy_saved_regs_this_id): Update.
8704 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8705 * dummy-frame.h: Update.
8706 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8707 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8708 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8709 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8710 * config/m68k/tm-sun3.h: Update.
8711 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8713 * x86-64-tdep.c (x86_64_init_abi): Update.
8714 * vax-tdep.c (vax_gdbarch_init): Update.
8715 * v850-tdep.c (v850_gdbarch_init): Update.
8716 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8717 * sh-tdep.c (sh_gdbarch_init): Update.
8718 * s390-tdep.c (s390_gdbarch_init): Update.
8719 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8720 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8721 (frame_get_saved_regs): Update.
8722 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8723 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8724 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8725 * mips-tdep.c (mips_gdbarch_init): Update.
8726 * mcore-tdep.c (mcore_gdbarch_init): Update.
8727 * m68k-tdep.c (m68k_gdbarch_init): Update.
8728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8729 * ia64-tdep.c (ia64_gdbarch_init): Update.
8730 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8731 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8732 (i386_interix_back_one_frame): Update.
8733 * hppa-tdep.c (hppa_gdbarch_init): Update.
8734 (hppa_init_extra_frame_info): Update.
8735 * h8300-tdep.c (h8300_gdbarch_init): Update.
8736 * frv-tdep.c (frv_gdbarch_init): Update.
8737 * cris-tdep.c (cris_gdbarch_init): Update.
8738 * avr-tdep.c (avr_gdbarch_init): Update.
8739 * arm-tdep.c (arm_gdbarch_init): Update.
8740 * alpha-tdep.c (alpha_gdbarch_init): Update.
8741
fd50bc42
RE
87422003-03-22 Richard Earnshaw <rearnsha@arm.com>
8743
8744 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8745 (arm_get_fp_model): Declare.
8746 * arm-tdep.c (fp_model_strings): New string array.
8747 (arm_fp_model, current_fp_model): New variables.
8748 (arm_get_fp_model): New function.
8749 (arm_set_fp): New function.
8750 (set_fp_model_sfunc): New function.
8751 (show_fp_model): New function.
8752 (_initialize_arm_tdep): Add new command to set/show the FPU.
8753 (arm_extract_return_value): Use arm_get_fp_model.
8754 (arm_store_return_value): Likewise.
8755 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8756 to initialize the floating-point data types.
8757 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8758 model is FPA.
8759
26304000
RE
87602003-03-22 Richard Earnshaw <rearnsha@arm.com>
8761
8762 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8763 the current setting of each value.
8764 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8765 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8766 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8767 commands and add new version as subcommands of "set/show arm".
8768
afd7eef0
RE
87692003-03-22 Richard Earnshaw <rearnsha@arm.com>
8770
8771 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8772 (set_arm_command, show_arm_command): New functions.
8773 (_initialize_arm_tdep): Add them.
8774 (num_disassembly_options): Renamed from num_flavor_options.
8775 (valid_disassembly_styles): Renamed from valid_flavors.
8776 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8777 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8778 set_disassembly_flavor_sfunc.
8779 (set_disassembly_style): Renamed from set_disassembly_flavor.
8780 (arm_othernames): Updated.
8781 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8782 command. Add "set/show arm disassembly" commands. Deprecate
8783 "othernames" command.
8784
299a7944
RE
87852003-03-22 Richard Earnshaw <rearnsha@arm.com>
8786
8787 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8788 (arm-tdep.o): Depend on elf_arm_h.
8789
c1dac9e6
RE
87902003-03-22 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * Makefile.in (coff_internal_h): Define.
8793 (arm-tdep.o): Update dependencies.
8794
2702d96c
RE
87952003-03-22 Richard Earnshaw <rearnsha@arm.com>
8796
8797 * arm-tdep.c (prologue_cache): Delete.
8798 (check_prologue_cache, save_prologue_cache): Delete.
8799 (arm_scan_prologue): Don't check or update the prologue_cache.
8800 (arm_gdb_arch_init): Don't initialize it.
8801 (_initialize_arm_tdep): Likewise.
8802
27d5d74b
SC
88032003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8804
8805 * MAINTAINERS (tui): Maintainer of tui code.
8806
1762d96d
CV
88072003-03-21 Corinna Vinschen <vinschen@redhat.com>
8808
8809 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8810 (i386-cygwin-tdep.o): Add dependencies.
8811 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8812 * i386-cygwin-tdep.c: New file.
8813 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8814 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8815
4c2e2391
AC
88162003-03-20 Andrew Cagney <cagney@redhat.com>
8817
f20d38b7
AC
8818 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8819 (handle_inferior_event): Remove code calling
8820 DYNAMIC_TRAMPOLINE_NEXTPC.
8821
0022b738
AC
8822 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8823 already has a full path.
8824
864dbc90
AC
8825 * main.c (gdb_main): Return 1.
8826 (captured_main): Call error to report an invalid interpreter.
8827
4c2e2391
AC
8828 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8829 * alpha-osf1-tdep.c: Include "gdb_string.h".
8830
5ef7553b
JB
88312003-03-19 J. Brobecker <brobecker@gnat.com>
8832
8833 Continuing work to convert the hppa targets to multiarch partial.
8834
8835 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8836 method, now that hppa_push_dummy_frame has a conformant prototype.
8837 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8838 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8839 for the switch to multiarch partial.
8840
7bde8967
KB
88412003-03-19 Kevin Buettner <kevinb@redhat.com>
8842
8843 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8844 when iss is issNull.
8845
b006a9e9
KB
88462003-03-18 Kevin Buettner <kevinb@redhat.com>
8847
8848 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8849 NUM_REGS bounds check.
8850
5e2e9765
KB
88512003-03-18 Kevin Buettner <kevinb@redhat.com>
8852
8853 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8854 * mips-tdep.c (gdb_assert.h): Include.
8855 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8856 (mips_register_name): Handle integer registers explicitly. Add
8857 bounds checking.
8858 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8859 (mips_lsi33k_reg_names): Don't list integer registers; they're
8860 handled by mips_register_name() now.
8861 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8862 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8863 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8864 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8865 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8866
a2867626
AC
88672003-03-18 Andrew Cagney <cagney@redhat.com>
8868
8869 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8870 a void pointer.
8871 * gdbtypes.h (print_scalar_formatted): Update declaration.
8872 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8873
06600e06
JB
88742003-03-18 J. Brobecker <brobecker@gnat.com>
8875
8876 * infrun.c (observer.h): Add #include.
8877 (normal_stop): Add call to observer_notify_normal_stop.
8878 * Makefile.in (infrun.o): Add dependency on observer.h.
8879
7daf4f5b
JB
88802003-03-18 J. Brobecker <brobecker@gnat.com>
8881
8882 Continuing work to convert the hppa targets to multiarch partial.
8883 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8884 parameter. Reformat comment.
8885 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8886 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8887 to match new profile.
8888
3371ccc0
JB
88892003-03-18 J. Brobecker <brobecker@gnat.com>
8890
8891 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8892 appear to be working in any case.
8893
4fbe891e
JB
88942003-03-18 J. Brobecker <brobecker@gnat.com>
8895
8896 * observer.c (observer_test_first_observer): New static variable.
8897 (observer_test_second_observer): Likewise.
8898 (observer_test_third_observer): Likewise.
8899 (observer_test_first_notification_function): New static function.
8900 (observer_test_second_notification_function): Likewise.
8901 (observer_test_third_notification_function): Likewise.
8902
a7ff40e7
JB
89032003-03-17 J. Brobecker <brobecker@gnat.com>
8904
8905 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8906 * somsolib.c (gdb_assert.h): Likewise.
8907 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8908 (somsolib.o): Likewise.
8909
26ca4152
AC
89102003-03-17 Andrew Cagney <cagney@redhat.com>
8911
8912 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8913 BFD. Simplify setting of di.endian.
8914
0a613259
AC
89152003-03-17 Andrew Cagney <cagney@redhat.com>
8916
8917 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8918 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8919
8920 From Elena Zannoni <ezannoni@redhat.com>
8921 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8922 vector and floating-point parameters.
8923 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8924 convention.
8925 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8926
1132738f
FN
89272003-03-17 Fernando Nasser <fnasser@redhat.com>
8928
8929 * MAINTAINERS: Remove my name from several maintainership roles.
8930
6dc42492
AC
89312003-03-17 Andrew Cagney <cagney@redhat.com>
8932
8933 Fix frame off-by-one bug.
8934 * frame-unwind.h (frame_this_id_ftype): Replace
8935 frame_unwind_id_ftype.
8936 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8937 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8938 with "prev_register".
8939 * frame-unwind.c (frame_unwind_find_by_pc): Return
8940 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8941 comment.
8942 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8943 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8944 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8945 (dummy_frame_unwind): Update.
8946 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8947 sentinel_frame_register_unwind.
8948 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8949 (sentinel_frame_unwinder): Update.
8950 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8951 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8952 * frame.c (create_sentinel_frame): Update. Initialize
8953 "prologue_cache" instead of "unwind_cache".
8954 (frame_register_unwind): Call this frame's prev_register with the
8955 next frame and this frame's prologue cache.
8956 (get_prev_frame): Simplify. Always call prev frame's this_id with
8957 this frame and prev frame's prologue cache. Document that this
8958 call is shifted one to the left when compared to the
8959 frame_register_unwind call.
8960 (legacy_saved_regs_prev_register): Replace
8961 frame_saved_regs_register_unwind.
8962 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8963 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8964 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8965 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8966 (d10v_frame_unwind): Update.
8967 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8968 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8969 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8970 "saved_regs" with "this_saved_regs".
8971
efd710d6
AC
89722003-03-16 Andrew Cagney <cagney@redhat.com>
8973
8974 * frame.c (frame_pop): Don't call target_store_registers. Fix
8975 problem reported by Mark Kettenis.
8976
4e259f09
MK
89772003-03-16 Mark Kettenis <kettenis@gnu.org>
8978
8979 * i386-tdep.c (i386_register_type): Renamed from
8980 i386_register_virtual_type. Adjust function signature.
8981 (i386_gdbarch_init): Set register_type instead of
8982 deprecated_max_register_raw_size,
8983 deprecated_max_register_virtual_size and register_virtual_type.
8984
055bb976
AC
89852003-03-14 Andrew Cagney <cagney@redhat.com>
8986
8987 * frame.c (get_prev_frame): When a legacy frame, always call
8988 legacy_get_prev_frame. Simplify unwind code using assumption that
8989 the unwinder is new.
8990 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8991 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8992 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8993
ac2adee5
AC
89942003-03-14 Andrew Cagney <cagney@redhat.com>
8995
8996 * frame.c (get_saved_register): Delete function.
8997 * frame.h (get_saved_register): Delete declaration.
8998 * xstormy16-tdep.c: Update comment.
8999 * regcache.h: Update comments.
9000 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9001 get_saved_register and extract_address, use
9002 frame_read_unsigned_register.
9003 (sparc_frame_saved_pc): Ditto.
9004 (sparc_get_saved_register): Instead of get_saved_register, use
9005 frame_register.
9006 (sparc_pop_frame): Ditto.
9007 * findvar.c: Update comments.
9008 (value_of_register): Call frame_register instead of
9009 get_saved_register.
9010 (value_from_register): Ditto.
9011 * config/sparc/tm-sparc.h: Update comment.
9012 * breakpoint.c: Update comment.
9013
129c1cd6
AC
90142003-03-14 Andrew Cagney <cagney@redhat.com>
9015
9016 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9017 GET_SAVED_REGISTER.
9018 * gdbarch.h, gdbarch.c: Re-generate.
9019 * frame.h: Update comments.
9020 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9021 * x86-64-tdep.c (x86_64_init_abi): Update.
9022 * sparc-tdep.c (sparc_gdbarch_init): Update.
9023 * sh-tdep.c (sh_gdbarch_init): Update.
9024 * mips-tdep.c (mips_gdbarch_init): Update.
9025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9026 * cris-tdep.c (cris_gdbarch_init): Update.
9027 * ia64-tdep.c (ia64_gdbarch_init): Update.
9028 * frame.c (frame_register): Update.
9029 (get_saved_register): Update.
9030 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9031
749b82f6
AC
90322003-03-13 Andrew Cagney <cagney@redhat.com>
9033
9034 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9035 * gdbarch.h, gdbarch.c: Regenerate.
9036 * valops.c (hand_function_call): Update comment.
9037 * stack.c (return_command): Update comment.
9038 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9039 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9040 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9041 * x86-64-tdep.c (x86_64_init_abi): Update.
9042 * vax-tdep.c (vax_gdbarch_init): Update.
9043 * v850-tdep.c (v850_gdbarch_init): Update.
9044 * sparc-tdep.c (sparc_gdbarch_init): Update.
9045 * sh-tdep.c (sh_gdbarch_init): Update.
9046 * s390-tdep.c (s390_gdbarch_init): Update.
9047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9048 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9049 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9050 * mips-tdep.c (mips_gdbarch_init): Update.
9051 * mcore-tdep.c (mcore_gdbarch_init): Update.
9052 * m68k-tdep.c (m68k_gdbarch_init): Update.
9053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9054 * ia64-tdep.c (ia64_gdbarch_init): Update.
9055 * i386-tdep.c (i386_gdbarch_init): Update.
9056 * hppa-tdep.c (hppa_gdbarch_init): Update.
9057 * h8300-tdep.c (h8300_gdbarch_init): Update.
9058 * frv-tdep.c (frv_gdbarch_init): Update.
9059 * cris-tdep.c (cris_gdbarch_init): Update.
9060 * avr-tdep.c (avr_gdbarch_init): Update.
9061 * arm-tdep.c (arm_gdbarch_init): Update.
9062 * alpha-tdep.c (alpha_gdbarch_init): Update.
9063
1594fa56
AC
90642003-03-13 Andrew Cagney <cagney@redhat.com>
9065
9066 * frame.c (legacy_frame_p): New function.
9067 (get_prev_frame): Use legacy_frame_p.
9068 * frame.h (legacy_frame_p): Declare.
9069
7717fda3
V
90702003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9071
fbe586ae 9072 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9073 listing corrected.
9074
0c67cbe9
V
90752003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9076
fbe586ae 9077 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9078
03febf99
AC
90792003-03-12 Andrew Cagney <cagney@redhat.com>
9080
9081 * frame.c (get_prev_frame): Rename the frame parameter to
9082 "this_frame".
9083 (get_next_frame, legacy_get_prev_frame): Ditto.
9084
0a1e1ca1
AC
90852003-03-12 Andrew Cagney <cagney@redhat.com>
9086
9087 * frame.c (get_current_frame): Check target_has_registers before
9088 checking target_has_stack.
9089 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9090 instead of deprecated_selected_frame.
9091 * findvar.c (value_of_register): Pass "frame", not
9092 deprecated_selected_frame, to value_of_builtin_reg.
9093
a66a9c23
AC
90942003-03-12 Andrew Cagney <cagney@redhat.com>
9095
9096 * regcache.c (regcache_cooked_write_signed): New function.
9097 (regcache_cooked_write_unsigned): New function.
9098 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9099 (regcache_cooked_read_signed): Fix regnum in range assertion.
9100 * regcache.h (regcache_cooked_write_signed): Declare.
9101 (regcache_cooked_write_unsigned): Declare.
9102
8bedc050
AC
91032003-03-12 Andrew Cagney <cagney@redhat.com>
9104
9105 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9106 * gdbarch.h, gdbarch.c: Re-generate.
9107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9108 * x86-64-tdep.h: Update.
9109 * x86-64-tdep.c (x86_64_init_abi): Update.
9110 * v850-tdep.c (v850_gdbarch_init): Update.
9111 * sparc-tdep.c (sparc_gdbarch_init): Update.
9112 * sh-tdep.c (sh_gdbarch_init): Update.
9113 * s390-tdep.c (s390_gdbarch_init): Update.
9114 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9115 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9116 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9117 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9118 * mips-tdep.c (mips_gdbarch_init): Update.
9119 * mcore-tdep.c (mcore_gdbarch_init): Update.
9120 * m68k-tdep.c (m68k_gdbarch_init): Update.
9121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9122 * ia64-tdep.c (ia64_gdbarch_init): Update.
9123 * i386-tdep.c (i386_gdbarch_init): Update.
9124 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9125 * hppa-tdep.c (hppa_gdbarch_init): Update.
9126 * h8300-tdep.c (h8300_gdbarch_init): Update.
9127 * frv-tdep.c (frv_gdbarch_init): Update.
9128 * cris-tdep.c (cris_gdbarch_init): Update.
9129 * avr-tdep.c (avr_gdbarch_init): Update.
9130 * arm-tdep.c (arm_gdbarch_init): Update.
9131 * alpha-tdep.c (alpha_gdbarch_init): Update.
9132 * sh-tdep.c (sh_init_extra_frame_info): Update.
9133 (sh64_init_extra_frame_info): Update.
9134 * ns32knbsd-nat.c (frame_num_args): Update.
9135 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9136 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9137 (xstormy16_frame_chain_valid): Update.
9138 * vax-tdep.c (vax_saved_pc_after_call): Update.
9139 * v850-tdep.c (v850_frame_chain): Update.
9140 (v850_pop_frame): Update.
9141 (v850_init_extra_frame_info): Update.
9142 * sparc-tdep.c (setup_arbitrary_frame): Update.
9143 * ns32k-tdep.c (umax_frame_num_args): Update.
9144 * s390-tdep.c (s390_pop_frame_regular): Update.
9145 * mn10300-tdep.c (mn10300_frame_chain): Update.
9146 (mn10300_pop_frame_regular): Update.
9147 (mn10300_init_extra_frame_info): Update.
9148 * mips-tdep.c (mips_init_frame_pc_first): Update.
9149 (mips_frame_chain): Update.
9150 (mips_pop_frame): Update.
9151 * mcore-tdep.c (mcore_frame_chain): Update.
9152 (mcore_pop_frame): Update.
9153 (mcore_init_extra_frame_info): Update.
9154 * arch-utils.c (init_frame_pc_default): Update.
9155 * m68k-tdep.c (isi_frame_num_args): Update.
9156 (delta68_frame_num_args): Update.
9157 (news_frame_num_args): Update.
9158 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9159 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9160 (alpha_frame_chain): Update.
9161 (alpha_pop_frame): Update.
9162 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9163 (hppa_init_extra_frame_info): Update.
9164 (hppa_frame_chain): Update.
9165 (hppa_frame_chain_valid): Update.
9166 * cris-tdep.c (cris_init_extra_frame_info): Update.
9167 * avr-tdep.c (avr_init_extra_frame_info): Update.
9168 * arm-tdep.c (arm_frame_chain_valid): Update.
9169 (arm_init_extra_frame_info): Update.
9170 (arm_pop_frame): Update.
9171 * frame.c (frame_pc_unwind): Update.
9172 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9173 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9174 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9175 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9176 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9177 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9178
7a25a7c1
AC
91792003-03-12 Andrew Cagney <cagney@redhat.com>
9180
9181 Eliminate the need for POP_FRAME.
9182 * frame.c (do_frame_unwind_register): New function.
9183 (frame_pop): When no POP_FRAME, pop the frame using register
9184 unwind and a scratch regcache.
9185 (frame_saved_regs_pop): Delete function.
9186 (trad_frame_unwinder): Update.
9187 * d10v-tdep.c (d10v_frame_pop): Delete function.
9188 (d10v_frame_unwind): Update.
9189 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9190 (sentinel_frame_unwinder): Update.
9191 * dummy-frame.c (dummy_frame_pop): Delete function.
9192 (dummy_frame_unwind): Update.
9193 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9194 (struct frame_unwind): Update.
9195
2f38ef89
KB
91962003-03-11 Kevin Buettner <kevinb@redhat.com>
9197
9198 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9199 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9200 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9201 Do range checks on register number obtained from debugging info.
9202 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9203 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9204 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9205 mapping function.
9206 (do_fp_register_row): Fix typo which caused double type to be
9207 used when attempting to unpack a float.
9208
552f4abf
JB
92092003-03-11 J. Brobecker <brobecker@gnat.com>
9210
9211 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9212
e0d2ae16
AC
92132003-03-11 Andrew Cagney <cagney@redhat.com>
9214
9215 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9216 frame. Problem found by Corinna Vinschen.
9217
ddbfdd06
PM
92182003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9219
9220 * doublest.c (floatformat_from_length): Accept also
9221 the real size of 'long double' type.
9222
088b2ddc 92232003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9224
088b2ddc 9225 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9226 * breakpoint.c (bpstat_copy): Copy the command lines as well
9227 as the old value, to match what is freed in bpstat_clear.
9228
f56f77c1
DC
92292003-03-10 David Carlton <carlton@math.stanford.edu>
9230
9231 * minsyms.c (add_minsym_to_hash_table): Replace
9232 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9233 (compare_minimal_symbols, compact_minimal_symbols)
9234 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9235 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9236 of DEPRECATED_SYMBOL_MATCHES_NAME.
9237 (lookup_minimal_symbol_solib_trampoline): Ditto.
9238
5602984a
AC
92392003-03-10 Andrew Cagney <cagney@redhat.com>
9240
9241 * regcache.h (regcache_cooked_read_ftype): Define.
9242 (regcache_save, regcache_restore): Add a cooked_read parameter.
9243 * regcache.c (regcache_save, regcache_restore): Update.
9244 (do_cooked_read): New function.
9245 (regcache_cpy): Pass do_cooked_read to regcache_save and
9246 regcache_restore.
9247
8bedc050
AC
92482003-03-10 Andrew Cagney <cagney@redhat.com>
9249
9250 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9251 * gdbarch.h, gdbarch.c: Re-generate.
9252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9253 * x86-64-tdep.h: Update.
9254 * x86-64-tdep.c (x86_64_init_abi): Update.
9255 * v850-tdep.c (v850_gdbarch_init): Update.
9256 * sparc-tdep.c (sparc_gdbarch_init): Update.
9257 * sh-tdep.c (sh_gdbarch_init): Update.
9258 * s390-tdep.c (s390_gdbarch_init): Update.
9259 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9260 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9261 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9262 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9263 * mips-tdep.c (mips_gdbarch_init): Update.
9264 * mcore-tdep.c (mcore_gdbarch_init): Update.
9265 * m68k-tdep.c (m68k_gdbarch_init): Update.
9266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9267 * ia64-tdep.c (ia64_gdbarch_init): Update.
9268 * i386-tdep.c (i386_gdbarch_init): Update.
9269 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9270 * hppa-tdep.c (hppa_gdbarch_init): Update.
9271 * h8300-tdep.c (h8300_gdbarch_init): Update.
9272 * frv-tdep.c (frv_gdbarch_init): Update.
9273 * cris-tdep.c (cris_gdbarch_init): Update.
9274 * avr-tdep.c (avr_gdbarch_init): Update.
9275 * arm-tdep.c (arm_gdbarch_init): Update.
9276 * alpha-tdep.c (alpha_gdbarch_init): Update.
9277 * sh-tdep.c (sh_init_extra_frame_info): Update.
9278 (sh64_init_extra_frame_info): Update.
9279 * ns32knbsd-nat.c (frame_num_args): Update.
9280 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9281 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9282 (xstormy16_frame_chain_valid): Update.
9283 * vax-tdep.c (vax_saved_pc_after_call): Update.
9284 * v850-tdep.c (v850_frame_chain): Update.
9285 (v850_pop_frame): Update.
9286 (v850_init_extra_frame_info): Update.
9287 * sparc-tdep.c (setup_arbitrary_frame): Update.
9288 * ns32k-tdep.c (umax_frame_num_args): Update.
9289 * s390-tdep.c (s390_pop_frame_regular): Update.
9290 * mn10300-tdep.c (mn10300_frame_chain): Update.
9291 (mn10300_pop_frame_regular): Update.
9292 (mn10300_init_extra_frame_info): Update.
9293 * mips-tdep.c (mips_init_frame_pc_first): Update.
9294 (mips_frame_chain): Update.
9295 (mips_pop_frame): Update.
9296 * mcore-tdep.c (mcore_frame_chain): Update.
9297 (mcore_pop_frame): Update.
9298 (mcore_init_extra_frame_info): Update.
9299 * arch-utils.c (init_frame_pc_default): Update.
9300 * m68k-tdep.c (isi_frame_num_args): Update.
9301 (delta68_frame_num_args): Update.
9302 (news_frame_num_args): Update.
9303 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9304 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9305 (alpha_frame_chain): Update.
9306 (alpha_pop_frame): Update.
9307 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9308 (hppa_init_extra_frame_info): Update.
9309 (hppa_frame_chain): Update.
9310 (hppa_frame_chain_valid): Update.
9311 * cris-tdep.c (cris_init_extra_frame_info): Update.
9312 * avr-tdep.c (avr_init_extra_frame_info): Update.
9313 * arm-tdep.c (arm_frame_chain_valid): Update.
9314 (arm_init_extra_frame_info): Update.
9315 (arm_pop_frame): Update.
9316 * frame.c (frame_pc_unwind): Update.
9317 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9318 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9319 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9320 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9321 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9322 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9323
12cc2063
AC
93242003-03-10 Andrew Cagney <cagney@redhat.com>
9325
9326 * gdbarch.sh (gdbarch_unwind_pc): New method.
9327 * gdbarch.h, gdbarch.c: Regenerate.
9328 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9329 but use read_pc and FRAME_SAVED_PC as fall backs.
9330 (frame_saved_regs_pc_unwind): Delete function.
9331 (trad_frame_unwinder): Update.
9332 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9333 (struct frame_unwind): Update.
9334 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9335 (dummy_frame_unwind): Update.
9336 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9337 (sentinel_frame_unwinder): Update.
9338 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9339 (d10v_frame_unwind): Update.
9340 (d10v_unwind_pc): New function.
9341 (d10v_gdbarch_init): Set unwind_pc.
9342
ef840a37
AC
93432003-03-10 Andrew Cagney <cagney@redhat.com>
9344
a2ce2e56
AC
9345 * gdbarch.h: Re-generate.
9346
ef840a37
AC
9347 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9348 PC.
9349 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9350 the PC register.
9351
08f3424b
MK
93522003-03-08 Mark Kettenis <kettenis@gnu.org>
9353
9354 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9355
1248ede2
AC
93562003-03-08 Andrew Cagney <cagney@redhat.com>
9357
9358 * cli-out.c: Update copyright.
9359 (cli_out_data): Define typedef. Use instead of ui_out_data.
9360
f49bacc8
AC
93612003-03-08 Andrew Cagney <cagney@redhat.com>
9362
9363 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9364 the result.
9365
9b05f993
AC
93662003-03-07 Andrew Cagney <cagney@redhat.com>
9367
9368 * gdbarch.sh: Don't generate two macro definitions when an
9369 undefined macro taking no arguments.
9370 * gdbarch.h: Regenerate.
8ffd9b1b 9371
166f4c7b
ML
93722002-03-07 Michal Ludvig <mludvig@suse.cz>
9373
9374 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9375 (x86_64_unwind_dummy_id): New functions.
9376 (x86_64_init_abi): Register these two new functions.
9377
6d686a84
ML
93782003-03-07 Michal Ludvig <mludvig@suse.cz>
9379
9380 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9381 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9382 separate function.
9383 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9384
6314f104
AC
93852003-03-05 Andrew Cagney <cagney@redhat.com>
9386
9387 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9388 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9389 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9390 to use unwind_dummy_id when a dummy frame.
9391 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9392 predicate.
9393 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9394
ceea5145
AC
93952003-03-05 Andrew Cagney <cagney@redhat.com>
9396
9397 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9398 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9399 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9400 values.
9401
0d843116
AC
94022003-03-05 Andrew Cagney <cagney@redhat.com>
9403
9404 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9405 (struct d10v_unwind_cache): Delete field "frameless". Replace
9406 "next_addr" with "sp_offset". Add "r11_offset".
9407 (d10v_frame_unwind_cache): Update.
9408 (prologue_find_regs): Update. When "mv r11, sp", save the
9409 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9410 RN was saved in r11_offset.
9411
b2579786
AC
94122003-03-05 Andrew Cagney <cagney@redhat.com>
9413
9414 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9415 cached PC value in the next frame.
9416
218e5956
AC
94172003-03-05 Andrew Cagney <cagney@redhat.com>
9418
9419 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9420 "id_unwind_cache" with "id".
9421 (frame_id_unwind): Delete declaration.
9422 * frame.c (frame_id_unwind): Delete function.
9423 (get_prev_frame): Call the frame id unwind method directly. Store
9424 the returned next frame's ID value in NEXT_FRAME. Note that there
9425 is a problem with the wrong unwind ID being called with the wrong
9426 unwind cache.
9427
ed363b1b
DJ
94282003-03-05 Daniel Jacobowitz <drow@mvista.com>
9429
9430 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9431
fe1f4a5e
DJ
94322003-03-05 James Ingham <jingham@apple.com>
9433 Daniel Jacobowitz <drow@mvista.com>
9434
9435 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9436 (auto_cp_abi): New variable.
9437 (current_cp_abi, num_cp_abis): Make static.
9438 (CP_ABI_MAX): Define.
9439 (cp_abis): Turn into an array.
9440 (value_virtual_fn_field): Fix formatting.
9441 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9442 takes a pointer.
9443 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9444 (list_cp_abis, _initialize_cp_abi): New functions.
9445 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9446 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9447 switch_to_cp_abi. Update prototype for register_cp_abi.
9448 * Makefile.in (cp-abi.o): Update dependencies.
9449 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9450 instead of switch_to_cp_abi.
9451 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9452 register_cp_abi.
9453 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9454 register_cp_abi.
9455 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9456
e4adbba9
DJ
94572003-03-05 Daniel Jacobowitz <drow@mvista.com>
9458
9459 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9460 * dwarf2loc.c: Include "regcache.h".
9461 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9462 register_size.
9463 * Makefile.in (dwarf2loc.o): Update dependencies.
9464
91ccbfc1
TR
94652003-03-04 Theodore A. Roth <troth@openavr.org>
9466
9467 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9468 number of io registers reported by remote target is not a multiple of
9469 step.
9470
3d4e8fd2
DC
94712003-03-04 David Carlton <carlton@math.stanford.edu>
9472
9473 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9474 (lookup_symbol_aux_psymtabs): Update call to
9475 lookup_partial_symbol.
9476 (lookup_transparent_type, find_main_psymtab)
9477 (make_symbol_overload_list): Ditto.
9478
ed42d87b
KH
94792003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9480
9481 * MAINTAINERS (Write after approval): Update my email address.
9482
a0ed5532
AC
94832003-03-03 Andrew Cagney <cagney@redhat.com>
9484
9485 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9486 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9487 predicate. Replace MAX_REGISTER_RAW_SIZE.
9488 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9489 MAX_REGISTER_VIRTUAL_SIZE.
9490 * regcache.c (legacy_max_register_raw_size): New function.
9491 (legacy_max_register_virtual_size): New function.
9492 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9493 (MAX_REGISTER_RAW_SIZE): Define.
9494 (legacy_max_register_raw_size): Declare.
9495 (legacy_max_register_virtual_size): Declare.
9496 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9497 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9498 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9499 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9500 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9501 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9502 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9503 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9504 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9506 * vax-tdep.c (vax_gdbarch_init): Update.
9507 * v850-tdep.c (v850_gdbarch_init): Update.
9508 * sparc-tdep.c (sparc_gdbarch_init): Update.
9509 * sh-tdep.c (sh_gdbarch_init): Update.
9510 * s390-tdep.c (s390_gdbarch_init): Update.
9511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9512 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9513 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9514 * mips-tdep.c (mips_gdbarch_init): Update.
9515 * mcore-tdep.c (mcore_gdbarch_init): Update.
9516 * m68k-tdep.c (m68k_gdbarch_init): Update.
9517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9518 * ia64-tdep.c (ia64_gdbarch_init): Update.
9519 * i386-tdep.c (i386_gdbarch_init): Update.
9520 * hppa-tdep.c (hppa_gdbarch_init): Update.
9521 * h8300-tdep.c (h8300_gdbarch_init): Update.
9522 * frv-tdep.c (frv_gdbarch_init): Update.
9523 * cris-tdep.c (cris_gdbarch_init): Update.
9524 * avr-tdep.c (avr_gdbarch_init): Update.
9525 * arm-tdep.c (arm_gdbarch_init): Update.
9526 * alpha-tdep.c (alpha_gdbarch_init): Update.
9527 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9528 max_register_raw_size or max_register_virtual_size.
9529
8e437497
DC
95302003-03-03 David Carlton <carlton@math.stanford.edu>
9531
9532 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9533 SYMBOL_MATCHES_NAME, add comment.
9534 (SYMBOL_MATCHES_NATURAL_NAME): New.
9535 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9536 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9537 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9538 * symtab.c (lookup_partial_symbol): Use
9539 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9540 unhelpful comment.
9541 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9542 SYMBOL_MATCHES_NAME.
9543 Fix for PR c++/33.
9544
25120b0d
DC
95452003-03-03 David Carlton <carlton@math.stanford.edu>
9546
9547 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9548 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9549 by regexp matching against SYMBOL_NATURAL_NAME.
9550
78a11fb4
DC
95512003-03-03 David Carlton <carlton@math.stanford.edu>
9552
9553 * linespec.c (find_method): Extract code into collect_methods.
9554 (collect_methods): New.
9555
645dd519
MK
95562003-03-02 Mark Kettenis <kettenis@gnu.org>
9557
b4700d91
MK
9558 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9559 get_frame_base.
9560
645dd519
MK
9561 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9562 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9563
0aa7e1aa
SC
95642003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9565
8ffd9b1b 9566 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9567 and not regnum when summing the size of all registers up to regnum.
9568
f30ee0bc
AC
95692003-03-01 Andrew Cagney <cagney@redhat.com>
9570
9571 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9572 FRAME_INIT_SAVED_REGS.
9573 * gdbarch.h, gdbarch.c: Regenerate.
9574 * stack.c (frame_info): Update.
9575 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9576 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9577 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9578 * ns32k-tdep.c (ns32k_pop_frame): Update.
9579 * mips-tdep.c (mips_pop_frame): Update.
9580 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9581 * ia64-tdep.c (ia64_frame_chain): Update.
9582 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9583 (ia64_frameless_function_invocation): Update.
9584 (ia64_init_extra_frame_info): Update.
9585 (ia64_pop_frame_regular): Update.
9586 * frame.h (struct frame_info): Update comment.
9587 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9588 * frame.c (frame_saved_regs_register_unwind): Update.
9589 (frame_saved_regs_register_unwind): Update.
9590 (deprecated_generic_get_saved_register): Update.
9591 * cris-tdep.c: Update comment.
9592 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9593 Rename macro.
9594 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9595 * x86-64-tdep.c (x86_64_init_abi): Update.
9596 * vax-tdep.c (vax_gdbarch_init): Update.
9597 * v850-tdep.c (v850_gdbarch_init): Update.
9598 * sparc-tdep.c (sparc_gdbarch_init): Update.
9599 * sh-tdep.c (sh_gdbarch_init): Update.
9600 * s390-tdep.c (s390_gdbarch_init): Update.
9601 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9602 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9603 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9604 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9605 * mips-tdep.c (mips_gdbarch_init): Update.
9606 * mcore-tdep.c (mcore_gdbarch_init): Update.
9607 * m68k-tdep.c (m68k_gdbarch_init): Update.
9608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9609 * ia64-tdep.c (ia64_gdbarch_init): Update.
9610 * i386-tdep.c (i386_gdbarch_init): Update.
9611 * frv-tdep.c (frv_gdbarch_init): Update.
9612 * avr-tdep.c (avr_gdbarch_init): Update.
9613 * arm-tdep.c (arm_gdbarch_init): Update.
9614 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9615
42fa7c0f
AC
96162003-03-01 Andrew Cagney <cagney@redhat.com>
9617
9618 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9619 option enum and switch. When no windows, set the interpreter to
9620 INTERP_CONSOLE.
8ffd9b1b 9621
49c7e338
AC
96222003-03-01 Andrew Cagney <cagney@redhat.com>
9623
9624 * main.c (captured_main): Replace magic option characters with an
9625 enum.
9626
e9582e71
AC
96272003-03-01 Andrew Cagney <cagney@redhat.com>
9628
9629 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9630 INIT_EXTRA_FRAME_INFO.
9631 * gdbarch.h, gdbarch.c: Regenerate.
9632 * arm-tdep.c: Update comments.
9633 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9634 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9635 * frame.h, avr-tdep.c: Ditto.
9636 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9637 (create_new_frame, legacy_get_prev_frame): Ditto.
9638 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9639 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9641 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9642 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9643 * v850-tdep.c (v850_gdbarch_init): Ditto.
9644 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9645 * sh-tdep.c (sh_gdbarch_init): Ditto.
9646 * s390-tdep.c (s390_gdbarch_init): Ditto.
9647 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9648 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9649 * mips-tdep.c (mips_gdbarch_init): Ditto.
9650 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9652 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9653 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9654 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9655 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9656 * frv-tdep.c (frv_gdbarch_init): Ditto.
9657 * cris-tdep.c (cris_gdbarch_init): Ditto.
9658 * avr-tdep.c (avr_gdbarch_init): Ditto.
9659 * arm-tdep.c (arm_gdbarch_init): Ditto.
9660 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9661 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9662
35cac7cf
AC
96632003-03-01 Andrew Cagney <cagney@redhat.com>
9664
9665 * gdbarch.sh (register_type): New function with predicate.
9666 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9667 * gdbarch.h, gdbarch.c: Re-generate.
9668 * arch-utils.c (generic_register_byte): Use generic_register_size.
9669 (generic_register_size): When available, use
9670 gdbarch_register_type.
9671 * regcache.c (init_regcache_descr): When available, initialize the
9672 register type array using gdbarch_register_type. If the
9673 architecture supplies gdbarch_register_type, do not use the legacy
9674 regcache layout.
9675 * d10v-tdep.c (d10v_register_type): Replace
9676 d10v_register_virtual_type.
9677 (d10v_gdbarch_init): Set register_type instead of
9678 register_virtual_type.
9679
7b83296f
AC
96802003-03-01 Andrew Cagney <cagney@redhat.com>
9681
9682 * Makefile.in (ax-gdb.o): Update dependencies.
9683 * ax-gdb.c: Include "regcache.h".
9684 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9685 * findvar.c (value_of_register): Ditto.
9686 * infcmd.c (default_print_registers_info): Ditto.
9687
eadc1c87
MK
96882003-03-01 Mark Kettenis <kettenis@gnu.org>
9689
9690 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9691 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9692
14143612
MK
96932003-03-01 Mark Kettenis <kettenis@gnu.org>
9694
9695 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9696 of STREQ.
9697
a55cc764
DJ
96982003-02-28 Daniel Jacobowitz <drow@mvista.com>
9699
9700 * Makefile.in (dwarf2loc.o): Update dependencies.
9701 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9702 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9703 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9704 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9705 (locexpr_tracepoint_var_ref): New function.
9706 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9707
08a617da
AC
97082003-02-28 Andrew Cagney <cagney@redhat.com>
9709
9710 * regcache.c (register_size): New function.
9711 * regcache.h (register_size): Declare
9712 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9713 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9714
4224873a
DC
97152003-02-28 David Carlton <carlton@math.stanford.edu>
9716
9717 * linespec.c (decode_compound): Extract code into find_method.
9718 (find_method): New.
9719
ccdc5d7f
JB
97202003-02-28 J. Brobecker <brobecker@gnat.com>
9721
9722 * Makefile.in: Add rules to build and link in observer.o.
9723
974e8ced
JB
97242003-02-27 J. Brobecker <brobecker@gnat.com>
9725
9726 * observer.c: Minor comments edits.
9727
7a28f973
JB
97282003-02-27 J. Brobecker <brobecker@gnat.com>
9729
9730 * observer.h, observer.c: New file.
9731
27cddce2
AC
97322003-02-27 Andrew Cagney <cagney@redhat.com>
9733
9734 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9735
b94a41a1
SC
97362003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9737
9738 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9739 (M6812_OP_STS_EXT): Likewise.
9740 (m6811_prologue): Use the above to recognize prologue.
9741 (m6812_prologue): Likewise.
9742
c8be8951
DC
97432003-02-27 David Carlton <carlton@math.stanford.edu>
9744
9745 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9746 SYMBOL_PRINT_NAME.
9747 (compare_psymbols): Ditto.
9748 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9749
d05bb1fc
MS
97502003-02-27 Michael Snyder <msnyder@redhat.com>
9751
4e845cd3
MS
9752 * f-lang.c (build_fortran_types): New function.
9753 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9754 * doublest.c (extract_floating): Fix warning text.
9755
f3824013
AC
97562003-02-27 Andrew Cagney <cagney@redhat.com>
9757
9758 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9759 predicate. Replaces PUSH_DUMMY_FRAME.
9760 * gdbarch.h, gdbarch.c: Regnerate.
9761 * valops.c (hand_function_call): Update. Call
9762 generic_push_dummy_frame directly.
9763 * vax-tdep.c (vax_gdbarch_init): Update.
9764 * sparc-tdep.c (sparc_gdbarch_init): Update.
9765 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9766 * m68k-tdep.c (m68k_gdbarch_init): Update.
9767 * hppa-tdep.c (hppa_gdbarch_init): Update.
9768 * alpha-tdep.c (alpha_gdbarch_init): Update.
9769 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9770 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9771 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9773 push_dummy_frame to generic_push_dummy_frame.
9774 * v850-tdep.c (v850_gdbarch_init): Ditto.
9775 * sh-tdep.c (sh_gdbarch_init): Ditto.
9776 * s390-tdep.c (s390_gdbarch_init): Ditto.
9777 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9778 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9779 * mips-tdep.c (mips_gdbarch_init): Ditto.
9780 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9782 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9783 * i386-tdep.c (i386_gdbarch_init): Ditto.
9784 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9785 * frv-tdep.c (frv_gdbarch_init): Ditto.
9786 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9787 * cris-tdep.c (cris_gdbarch_init): Ditto.
9788 * avr-tdep.c (avr_gdbarch_init): Ditto.
9789 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9790
ad188201
KB
97912003-02-26 Kevin Buettner <kevinb@redhat.com>
9792
9793 * mips-tdep.c (show_mips_abi): New function.
9794 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9795 command ``show mips abi''.
9796
6b37567a 97972003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9798
6b37567a 9799 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9800 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9801 more sline entries have been seen for the function.
9802
d3e0a5bf
MC
98032003-02-26 Michael Chastain <mec@shout.net>
9804
9805 * configure: Regenerate with autoconf 000227.
9806
18972eea
MC
98072003-02-26 Michael Chastain <mec@shout.net>
9808
9809 Close PR build/660.
9810 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9811 for old libc5/glibc.
9812 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9813
0bbde931
KW
98142003-02-26 Kris Warkentin <kewarken@qnx.com>
9815
9816 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9817 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9818
27ca5dad
MC
98192003-02-26 Michael Chastain <mec@shout.net>
9820
9821 * configure.in: New variable HAVE_UINTPTR_T.
9822 * configure, config.in: Regenerated.
9823
6f88d630
DJ
98242003-02-26 Daniel Jacobowitz <drow@mvista.com>
9825
9826 Fix PR build/1097.
9827 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9828
b14185ce
AC
98292003-02-25 Andrew Cagney <cagney@redhat.com>
9830
9831 * frame.c (get_prev_frame): Add comment on check for
9832 inside_entry_func. Only check for inside_entry_file when not a
9833 dummy and not a sentinel. Check that the new frame is not inner
9834 to the old frame.
9835
ac2bd0a9
AC
98362003-02-25 Andrew Cagney <cagney@redhat.com>
9837
9838 * frame.c (frame_debug): New variable.
9839 (_initialize_frame): Add "set/show debug frame" command.
9840 (get_prev_frame): When frame_debug, print reason why unwind
9841 failed.
9842
b18a0fd2
MC
98432003-02-25 Michael Chastain <mec@shout.net>
9844
9845 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9846 to avoid uintptr_t definition problems.
9847
22abf04a
DC
98482003-02-25 David Carlton <carlton@math.stanford.edu>
9849
9850 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9851 (SYMBOL_LINKAGE_NAME): Ditto.
9852 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9853 SYMBOL_LINKAGE_NAME.
9854 (struct general_symbol_info): Expand comment.
9855 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9856 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9857 (SYMBOL_MATCHES_REGEXP): Ditto.
9858 * symtab.c (symbol_natural_name): New function.
9859 * objfiles.h: Replace all uses of SYMBOL_NAME by
9860 DEPRECATED_SYMBOL_NAME.
9861 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9862 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9863 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9864 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9865 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9866 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9867 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9868 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9869 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9870 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9871 * ada-exp.y: Ditto.
9872 * ada-exp.y: Update copyright.
9873 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9874 * cp-valprint.c: Ditto.
9875
1a5848f6
JJ
98762003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9877
9878 * infptrace.c (detach): Do not flag error if ptrace detach fails
9879 and errno is set to ESRCH.
9880
7343d46a
AC
98812003-02-24 Andrew Cagney <cagney@redhat.com>
9882
9883 * infptrace.c (udot_info): Change type of udot_off to long. Use
9884 paddr when printing udot_off's value.
9885
49fa1dc2
DC
98862003-02-24 David Carlton <carlton@math.stanford.edu>
9887
9888 * symtab.c (make_symbol_overload_list): Only read in partial
9889 symtabs containing a matching partial symbol.
9890
0fe19209
DC
98912003-02-24 David Carlton <carlton@math.stanford.edu>
9892
9893 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9894 do the comparison, not strcmp.
9895 * symfile.c (compare_psymbols): Ditto.
9896 * defs.h: Declare strcmp_iw_ordered.
9897 * utils.c (strcmp_iw_ordered): New function.
9898
8e3ee7b5
JB
98992003-02-24 Jim Blandy <jimb@redhat.com>
9900
9901 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9902 support, shared libs): Remove my name from here, to better reflect
9903 reality.
9904
7df1a324
KW
99052003-02-24 Kris Warkentin <kewarken@qnx.com>
9906
9907 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9908 (target_ops): Add to_have_continuable_watchpoint.
9909 * target.c (update_current_target): Add INHERIT line for
9910 to_have_continuable_watchpoint.
9911 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9912 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9913 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9914 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9915
d1c76907
EZ
99162003-02-24 Elena Zannoni <ezannoni@redhat.com>
9917
9918 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9919 maintainership.
9920
2610b0bf
KW
99212003-02-24 Kris Warkentin <kewarken@qnx.com>
9922
f46169db
KW
9923 * solib.c (solib_open): Call target defined search function after
9924 failing with solib-search-path.
9925 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9926 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9927
9a3c34fe
KW
99282003-02-24 Kris Warkentin <kewarken@qnx.com>
9929
f46169db 9930 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9931
2417dd25
SC
99322003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9933
9934 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9935
b631436b
SC
99362003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9937
9938 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9939 (m68hc11_add_reggroups): New function.
9940 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9941 (m68hc11_gdbarch_init): Install the reggroups.
9942 (_initialize_m68hc11_tdep): Initialize them.
9943
0aa8c1e4
JW
99442003-02-21 James E Wilson <wilson@tuliptree.org>
9945
9946 * MAINTAINERS: Update my email address.
9947
50ceaba5
DC
99482003-02-21 David Carlton <carlton@math.stanford.edu>
9949
9950 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9951
4c2df51b
DJ
99522003-02-21 Daniel Jacobowitz <drow@mvista.com>
9953
9954 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9955 * symtab.h: Add opaque declarations of struct axs_value and
9956 struct agent_expr.
9957 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9958 (struct location_funcs): New type.
9959 (struct symbol): Add "loc" to aux_value.
9960 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9961 * dwarf2read.c: Include "dwarf2expr.h".
9962 (dwarf2_symbol_mark_computed): New function.
9963 (read_func_scope): Use it.
9964 (var_decode_location): New function.
9965 (new_symbol): Use it.
9966 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9967
9968 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9969 (dwarf2expr_h, dwarf2loc_h): New variables.
9970 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9971 (dwarf2expr.o, dwarf2loc.o): New rules.
9972 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9973 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9974 LOC_COMPUTED_ARG.
9975 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9976 * m2-exp.y (yylex): Likewise.
9977 * printcmd.c (address_info, print_frame_args): Likewise.
9978 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9979 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9980 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9981 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9982 * symtab.c (lookup_block_symbol): Likewise.
9983
5784d15e
AF
99842003-02-20 Adam Fedor <fedor@gnu.org>
9985
9986 * symtab.h: Remove objc_specific struct
9987 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9988 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9989 Have language_objc use cplus_specific struct.
9990
d4cad8db
TT
99912003-02-20 Tom Tromey <tromey@redhat.com>
9992
9993 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9994 TYPE_NAME, when printing a String value. PR java/1075.
9995
2f9a90b4
AF
99962003-02-20 Adam Fedor <fedor@gnu.org>
9997
d38074a8 9998 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9999 * objc-lang.c (find_methods): Make static.
2f9a90b4 10000
6f17862b
CF
100012003-02-20 Christopher Faylor <cgf@redhat.com>
10002
10003 * win32-nat.c (get_image_name): Check return value from
10004 ReadProcessMemory.
10005 (child_xfer_memory): Ditto.
10006
715d1656
AO
100072003-02-20 Alexandre Oliva <aoliva@redhat.com>
10008
10009 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10010 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10011 '${exec_prefix}' (in addition to the expansion thereof) as
10012 relocatable.
10013 * configure: Rebuilt.
10014
b1262a02
DC
100152003-02-20 David Carlton <carlton@math.stanford.edu>
10016
10017 * symtab.c (search_symbols): Revert the search_symbols part of my
10018 2002-12-23 patch. Add comment.
10019
7134143f
DJ
100202002-02-20 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10023 * dbxread.c (elfstab_build_psymtabs): Don't call
10024 install_minimal_symbols.
10025 (stabsect_build_psymtabs): Likewise.
10026 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10027 earlier.
10028 * somread.c (som_symfile_read): Call install_minimal_symbols
10029 and do_cleanups earlier.
10030 * nlmread.c (nlm_symfile_read): Likewise.
10031 * mdebugread.c (elfmdebug_build_psymtabs): Call
10032 install_minimal_symbols and make appropriate cleanups.
10033
cf466558
KB
100342003-02-20 Kevin Buettner <kevinb@redhat.com>
10035
10036 * solib.c (reload_shared_libraries): New function.
10037 (_initialize_solib): Add callbacks for ``set solib-search-path''
10038 and ``set solib-absolute-prefix''.
10039
de5ad195
DC
100402003-02-20 David Carlton <carlton@math.stanford.edu>
10041
10042 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10043 expand comment.
10044 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10045 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10046 * ada-typeprint.c (ada_typedef_print): Ditto.
10047 * ax-gdb.c (gen_var_ref): Ditto.
10048 * breakpoint.c (print_one_breakpoint): Ditto.
10049 * buildsym.c (finish_block): Ditto.
10050 * c-valprint.c (c_val_print): Ditto.
10051 * expprint.c (print_subexp): Ditto.
10052 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10053 * infcmd.c (jump_command): Ditto.
10054 * linespec.c (decode_line_2, decode_compound): Ditto.
10055 * maint.c (maintenance_translate_address): Ditto.
10056 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10057 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10058 Ditto.
8ffd9b1b
AJ
10059 * p-valprint.c (pascal_val_print): Ditto.
10060 * stabsread.c (define_symbol): Ditto.
de5ad195 10061 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10062 (print_frame_arg_vars, return_command): Ditto.
10063 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10064 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10065 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10066 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10067 (rbreak_command): Ditto.
10068 * tracepoint.c (tracepoints_info): Ditto.
10069 * typeprint.c (typedef_print): Ditto.
10070 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10071 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10072 * ada-typeprint.c: Update Copyright.
10073 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10074 * tracepoint.c, cli/cli-cmds.c: Ditto.
10075
f796e4be
KB
100762003-02-20 Kevin Buettner <kevinb@redhat.com>
10077
10078 * frame.c (generic_unwind_get_saved_register): Make non-static.
10079 * frame.h (generic_unwind_get_saved_register): Declare.
10080 * mips-tdep.c (read_next_frame_reg): Fetch register from
10081 current regcache when frame is NULL.
10082 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10083 that must be NULL.
10084 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10085 instead of frame_register_unwind().
10086
836cc9f4
AC
100872003-02-20 Andrew Cagney <ac131313@redhat.com>
10088
10089 * remote-sim.c (gdbsim_insert_breakpoint)
10090 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10091 code.
10092
501eef12
AC
100932003-02-20 Andrew Cagney <ac131313@redhat.com>
10094
10095 * remote.c (_initialize_remote): Add commands "set/show remote
10096 hardware-watchpoint-limit" and "set/show remote
10097 hardware-breakpoint-limit".
10098 (remote_hw_watchpoint_limit): Initialize to -1.
10099 (remote_hw_breakpoint_limit): Ditto.
10100 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10101
1b6bc7e0
CF
101022003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10103
10104 * coff-pe-read.c: New file - support reading of minimal symbols from a
10105 portable executable using the export table.
10106 * coff-pe-read.h: New file.
10107 * coffread.c: Include coff-pe-read.h.
10108 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10109 debugging symbols found.
10110 * Makefile.in (SFILES): Add coff-pe-read.o.
10111 (coff_pe_read_h): Define.
10112 (COMMON_OBS): Add coff-pe-read.o.
10113 (coffread.o): Add coff_pe_read_h dependency.
10114 (coff-pe-read.o): New target.
10115
fe898f56
DC
101162003-02-19 David Carlton <carlton@math.stanford.edu>
10117
10118 * Makefile.in (SFILES): Add block.c.
10119 (block_h): New.
10120 (COMMON_OBS): Add block.o.
10121 (block.o): New.
10122 (x86-64-tdep.o): Add $(block_h).
10123 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10124 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10125 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10126 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10127 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10128 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10129 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10130 * value.h: Add opaque declaration for struct block.
10131 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10132 * ada-lang.h: Ditto.
10133 * x86-64-tdep.c: #include "block.h"
10134 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10135 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10136 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10137 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10138 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10139 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10140 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10141 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10142 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10143 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10144 * symtab.c (block_function): Ditto.
10145 (contained_in): Ditto.
10146 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10147 block.h. Add opaque declaration for struct block.
10148 * symtab.h: Move block_function and contained_in declarations to
10149 block.h. Add opaque declarations for struct block, struct
10150 blockvector.
10151 (struct block): Move to block.h.
10152 (struct blockvector): Ditto.
10153 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10154 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10155 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10156 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10157 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10158 Ditto.
10159 * block.c: New file.
10160 * block.h: New file.
10161
173345b5
TR
101622003-02-19 Theodore A. Roth <troth@openavr.org>
10163
10164 * avr-tdep.c (avr_extract_return_value): Remove function.
10165 (avr_store_return_value): Remove function.
10166 (avr_extract_struct_value_address): Remove function.
10167 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10168
338ef23d
AC
101692003-02-19 Andrew Cagney <ac131313@redhat.com>
10170
10171 * rs6000-tdep.c: Include "gdb_assert.h".
10172 (registers_e500): Add "acc" and "spefscr".
10173 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10174 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10175 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10176 really is "r0".
10177 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10178
5412f5f3
KS
101792003-02-18 Keith Seitz <keiths@redhat.com>
10180
10181 * Makefile.in: Add gdbtk-interps.c.
10182
881324eb
KB
101832003-02-18 Kevin Buettner <kevinb@redhat.com>
10184
10185 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10186 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10187
6a2f5abf
AC
101882003-02-18 Andrew Cagney <cagney@redhat.com>
10189
10190 * symtab.h (struct objfile): Add opaque declaration.
10191
54c7009d
EZ
101922003-02-18 Elena Zannoni <ezannoni@redhat.com>
10193
10194 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10195 * dbxread.c (process_one_symbol): Use last_function_start rather
10196 than function_start_offset to find the real beginning of the
10197 current function. The latter is just the text section offset on
10198 some systems, the former is always the real function start.
54c7009d 10199
7ee6d7eb
AC
102002003-02-17 Andrew Cagney <cagney@redhat.com>
10201
10202 * configure.in: Revert ${target} != ${host}.
10203
2846da9b
AC
102042003-02-17 Andrew Cagney <ac131313@redhat.com>
10205
10206 * configure.in (Makefile): Use the test ${target} != ${host},
10207 instead of the absence of the "nm.h" file, to determine of the
10208 configuration non-native.
10209 * configure: Regenerate.
8ffd9b1b 10210
3b27aeea
EZ
102112003-02-14 Elena Zannoni <ezannoni@redhat.com>
10212
fbe586ae 10213 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10214
10215 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10216 conditionalize tui_active test.
10217 (lookup_cmd_1): Ditto.
10218
b0b1c2c0
MK
102192003-02-14 Mark Kettenis <kettenis@gnu.org>
10220
10221 * configure.in: Add check for _etext.
10222 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10223 available.
10224 * config.in, configure: regenerated.
10225
8f05cde5
DJ
102262003-02-14 Daniel Jacobowitz <drow@mvista.com>
10227
10228 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10229
021e7609
AC
102302003-02-14 Andrew Cagney <ac131313@redhat.com>
10231
10232 * main.c (tui_version): Delete variable.
10233 (captured_main): When --tui, set interpreter_p to "tui" instead of
10234 enabling tui_version.
10235 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10236 tui_version.
10237 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10238 * cli/cli-cmds.c (disassemble_command): Ditto.
10239 * defs.h (tui_version): Delete declaration.
10240 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10241 (tui-interp.o): Add rules.
10242 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10243
e325dcec
CF
102442003-02-14 Christopher Faylor <cgf@redhat.com>
10245
36ffb041 10246 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10247 just-loaded dll.
10248
c4f90d87
JM
102492003-02-12 Jason Molenda (jmolenda@apple.com)
10250
fbe586ae
RH
10251 * symmisc.c (print_objfile_statistics): Include information about
10252 the number of psymtabs and symtabs in each object file.
c4f90d87 10253
e46e5ccd
KS
102542003-02-13 Keith R Seitz <keiths@redhat.com>
10255
10256 * main.h (struct captured_main_args): Add interpreter_p.
10257 * main.c (captured_main): Initialize interpreter_p from context.
10258 * gdb.c (main): Set interpreter_p argument.
10259 * Makefile.in (gdb.o): Add dependency for interps.h.
10260
fe97fe9c
AC
102612003-02-12 Andrew Cagney <ac131313@redhat.com>
10262
10263 * event-top.c (cli_command_loop): Delete declaration.
10264 (_initialize_event_loop): Delete function setting event_loop_hook.
10265 * event-top.h (cli_command_loop): Declare. Update copyright.
10266 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10267 * interps.c (current_interp_command_loop): When event_loop_p, call
10268 cli_command_loop.
10269
1cdac4ef
AC
102702003-02-12 Andrew Cagney <ac131313@redhat.com>
10271
10272 * interps.h (interp_command_loop_ftype): Change return type to
10273 void.
10274
48037ead
ML
102752003-02-12 Michal Ludvig <mludvig@suse.cz>
10276
10277 * x86-64-tdep.c (x86_64_extract_return_value)
10278 (x86_64_store_return_value): Use regcache instead of regbuf.
10279 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10280 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10281
033afc63
AC
102822003-02-11 Andrew Cagney <ac131313@redhat.com>
10283
10284 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10285 * aclocal.m4: Regenerate.
10286 * configure: Regenerate.
10287
10288 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10289 TCL_LD_SEARCH_FLAGS.
10290
40d02bca
ML
102912003-02-10 Michal Ludvig <mludvig@suse.cz>
10292
10293 * dwarf2cfi.c: Reindented.
10294
11308a41
AC
102952003-02-09 Andrew Cagney <ac131313@redhat.com>
10296
10297 * interps.c (clear_interpreter_hooks): Convert function definition
10298 to ISO C.
10299
e1c1c0f6
DC
103002003-02-07 David Carlton <carlton@math.stanford.edu>
10301
10302 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10303
ab5d3da6
KB
103042003-02-07 Kevin Buettner <kevinb@redhat.com>
10305
10306 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10307 (struct type): ...to here.
10308 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10309 field.
10310 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10311 (replace_type): Set length on all type variants for a given type.
10312
b8a92b82
AC
103132003-02-07 Andrew Cagney <ac131313@redhat.com>
10314
10315 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10316 <sys/stat.h>.
10317 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10318
5cb316ef
AC
103192003-02-06 Andrew Cagney <ac131313@redhat.com>
10320
2555fe1a
AC
10321 * Makefile.in (symm-nat.o): Update dependencies.
10322 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10323 (lynx-nat.o, ia64-linux-nat.): Ditto.
10324 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10325 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10326 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10327
44270758
AC
10328 * Makefile.in (inflow_h): Define.
10329 (procfs.o, inflow.o, procfs.o): Update dependencies.
10330 * inftarg.c (child_stop): Delete extern declaration of
10331 inferior_process_group. Include "inflow.h".
10332 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10333 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10334 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10335 (our_process_group, inferior_process_group): Extern declarations.
10336
df8f7274
AC
10337 * procfs.c: Include "gdb_assert.h".
10338
5cb316ef
AC
10339 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10340 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10341 * jv-typeprint.c (java_type_print_base): Ditto.
10342 * typeprint.c (typedef_print): Eliminate STREQ.
10343 * cli/cli-script.c (define_command, define_command): Ditto.
10344 * main.c (captured_main): Ditto.
10345 * values.c (lookup_internalvar): Ditto.
10346 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10347 within `if' conditional.
10348 * linespec.c (decode_line_2): Ditto.
10349 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10350 (bfd_openw_with_cleanup): Ditto.
10351
2a28ccea
MK
103522003-02-07 Mark Kettenis <kettenis@gnu.org>
10353
10354 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10355 legacy_extract_return_value and store_return_value to
10356 legacy_return_value.
10357
786b8124
CF
103582003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10359
10360 * win32-nat.c (get_relocated_section_addrs): New function. Find
10361 section load addresses for symbol handling in relocated DLLs.
10362 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10363
b871e4ec
FF
103642003-02-05 Fred Fish <fnf@intrinsity.com>
10365
10366 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10367 '=' and '!='.
10368 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10369 with '&' and '=='.
10370 (angel_RDI_info): Ditto.
10371 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10372 with '&' and '!='.
10373 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10374
4389a95a 103752003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10376 Keith Seitz <keiths@redhat.com>
10377 Elena Zannoni <ezannoni@redhat.com>
10378 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10379
10380 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10381 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10382 (SUBDIR_MI_OBS): Add "mi-interp.o".
10383 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10384 (SFILES): Add "interps.c".
10385 (COMMON_OBS): Add "interps.o".
10386 (interps_h, mi_main_h): Define.
10387 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10388 (mi-main.o, main.o, event-top.o): Update dependencies.
10389 * cli/cli-interp.c: New file.
10390 * interps.h, interps.c: New files.
10391 * top.c: (gdb_init): Don't install the default interpreter, handed
10392 by captured_main.
10393 * main.c: Include "interps.h".
10394 (interpreter_p): Note that it should malloc'ed.
10395 (captured_command_loop): Call current_interp_command_loop.
10396 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10397 xfree and xstrdup when updating interpreter_p. Install the
10398 default interpreter. Add hack to stop mi1's copyright notice
10399 being encoded.
10400 * event-top.h (gdb_setup_readline): Declare.
10401 (gdb_disable_readline): Declare.
10402 * event-top.c: Include "interps.h".
10403 (display_gdb_prompt): Call current_interp_display_prompt_p.
10404 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10405 gdb_stdlog, and gdb_stdtarg.
10406 (_initialize_event_loop): Don't call gdb_setup_readline.
10407 * cli-out.c (cli_out_set_stream): New function.
10408 * cli-out.h (cli_out_set_stream): Declare.
10409
ff3b5810
MK
104102003-02-06 Mark Kettenis <kettenis@gnu.org>
10411
10412 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10413 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10414 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10415 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10416 config/i386/i386v42mp.mt: Removed.
10417
5b729aa5
MK
104182003-02-05 Mark Kettenis <kettenis@gnu.org>
10419
10420 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10421 GDB_OSABI_SOLARIS.
10422
8cc15142
MC
104232003-02-05 Michael Chastain <mec@shout.net>
10424
10425 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10426 2.12.1 and earlier versions.
10427
5aa5d4b9
AC
104282003-02-05 Andrew Cagney <ac131313@redhat.com>
10429
10430 Remove orphaned hosts, targets and files.
10431 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10432 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10433 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10434 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10435 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10436 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10437 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10438 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10439 * config/sparc/tm-sp64sim.h: Delete.
10440 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10441 hosts.
10442 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10443 mips*-dec-mach3* targets.
10444
b68767c1
MC
104452003-02-04 Michael Chastain <mec@shout.net>
10446
10447 * NEWS: Fix typo: sepcifying -> specifying.
10448
5ae7ca1d
MC
104492003-02-04 Michael Chastain <mec@shout.net>
10450
10451 * dwarfread.c: Add documentation on the state of dwarf-1,
10452 looking towards obsoletion.
10453
d08a4280
MC
104542003-02-03 Michael Chastain <mec@shout.net>
10455
10456 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10457 gdb/testsuite/gdb.c++/pr-1023.exp.
10458
e9be73e4
AC
104592003-02-04 Andrew Cagney <ac131313@redhat.com>
10460
10461 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10462 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10463
10464 * utils.c (init_page_info): Delete reference to MPW in comments.
10465 * main.c (captured_main): Delete #ifdef MPW.
10466
05d57f6f
AC
104672003-02-04 Andrew Cagney <ac131313@redhat.com>
10468
8ffd9b1b 10469 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10470 * monitor.c (monitor_expect): Obsolete reference to m32r.
10471 * configure.tgt: Mark m32r-*-elf* as obsolete.
10472 * MAINTAINERS: Mark m32k as obsolete.
10473 * m32r-rom.c: Obsolete file.
10474 * config/m32r/m32r.mt: Obsolete file.
10475 * config/m32r/tm-m32r.h: Obsolete file.
10476 * m32r-stub.c: Obsolete file.
10477 * m32r-tdep.c: Obsolete file.
10478
8b0e5691
AC
104792003-02-04 Andrew Cagney <ac131313@redhat.com>
10480
10481 * NEWS: Mention that the z8k-zilog-none is obsolete.
10482 * MAINTAINERS: Mark z8k as obsolete.
10483 * configure.tgt: Obsolete the z8k-*-coff* target.
10484 * config/z8k/z8k.mt: Obsolete file.
10485 * config/z8k/tm-z8k.h: Obsolete file.
10486 * z8k-tdep.c: Obsolete file.
10487
67f16606
AC
104882003-02-04 Andrew Cagney <ac131313@redhat.com>
10489
10490 * NEWS: Mention that the mn10200-elf is obsolete.
10491 * configure.tgt: Obsolete mn10200-*-* target.
10492 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10493 mention that the mn10200 is obsolete.
10494 * breakpoint.h: Ditto.
10495 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10496 * config/mn10200/mn10200.mt: Obsolete file.
10497 * config/mn10200/tm-mn10200.h: Obsolete file.
10498 * mn10200-tdep.c: Obsolete file.
10499
fd2299bd
AC
105002003-02-04 Andrew Cagney <ac131313@redhat.com>
10501
10502 * MAINTAINERS: Mark h8500 as obsolete.
10503 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10504 * findvar.c (value_from_register): Ditto.
10505 * h8500-tdep.c: Mark file as obsolete.
10506 * config/h8500/h8500.mt: Ditto.
10507 * config/h8500/tm-h8500.h: Ditto.
10508 * NEWS: Mention that h8500 is obsolete.
10509
eb9a305d
DC
105102003-02-04 David Carlton <carlton@math.stanford.edu>
10511
10512 * objfiles.c (allocate_objfile): Always set name. Add comment at
10513 start of function.
10514 * jv-lang.c (get_dynamics_objfile): Add comment.
10515
406fc7fb
DC
105162003-02-04 David Carlton <carlton@math.stanford.edu>
10517
10518 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10519 * printcmd.c (build_address_symbolic): Replace uses of
10520 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10521 SYMBOL_NAME, and asm_demangle.
10522 Update copyright.
10523
93d91629
DC
105242003-02-04 David Carlton <carlton@math.stanford.edu>
10525
10526 * linespec.c (decode_compound): Extract code into
10527 lookup_prefix_sym.
10528 (lookup_prefix_sym): New function.
10529
1c5cb38e
DC
105302003-02-04 David Carlton <carlton@math.stanford.edu>
10531
10532 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10533 FLOAT_COERCION_BADNESS.
10534 * gdbtypes.c (rank_one_type): Replace all uses of
10535 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10536
0cf824c9
JB
105372003-02-04 Jim Blandy <jimb@redhat.com>
10538
10539 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10540 section, let dwarf_macinfo_section point to it, not
10541 dwarf_loc_section.
10542
a2d356b0
DJ
105432003-02-04 Daniel Jacobowitz <drow@mvista.com>
10544
10545 Pointed out by Anton Blanchard <anton@samba.org>.
10546 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10547 (ppc_linux_at_sigtramp_return_path): Use it.
10548
2de7ced7
DJ
105492003-02-04 Daniel Jacobowitz <drow@mvista.com>
10550
10551 * defs.h (streq): Add prototype.
10552 * utils.c (streq): New function.
10553
10554 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10555 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10556 * mdebugread.c (new_symbol): Likewise.
10557 * stabsread.c (define_symbol): Likewise.
10558 * coffread.c (process_coff_symbol): Likewise.
10559 * dwarfread.c (new_symbol): Likewise.
10560
10561 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10562 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10563 here.
10564 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10565 SYMBOL_INIT_DEMANGLED_NAME.
10566 * objfiles.c: Include "hashtab.h".
10567 (allocate_objfile): Call htab_set_functions_ex for the
10568 demangled_names_hash.
10569 (free_objfile): Call htab_delete for the demangled_names_hash.
10570 * objfiles.h (struct htab): Add declaration.
10571 (struct objfile): Add demangled_names_hash.
10572 * symfile.c: Include "hashtab.h".
10573 (reread_symbols): Call htab_delete for the demangled_names_hash.
10574 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10575 SYMBOL_NAME in the bcache.
10576 * symtab.c: Include "hashtab.h". Update comments.
10577 (create_demangled_names_hash, symbol_set_names): New functions.
10578 (symbol_find_demangled_name): New function, broken out from
10579 symbol_init_demangled_names.
10580 (symbol_init_demangled_names): Use it.
10581 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10582 (SYMBOL_SET_NAMES): New macro.
10583 (symbol_set_names): Add prototype.
10584
15831452
JB
105852003-02-03 Jim Blandy <jimb@redhat.com>
10586
10587 Use a single, consistent representation for an empty minimal
10588 symbol table in an objfile.
10589 * objfiles.c (terminate_minimal_symbol_table): New function.
10590 (allocate_objfile): Call it.
10591 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10592 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10593 non-NULL.
15831452
JB
10594 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10595 objfile has minimal symbols, compare minimal_symbol_count to zero,
10596 instead of comparing msymbols with NULL.
10597 * objfiles.c (have_minimal_symbols): Same.
10598 * solib-sunos.c (solib_add_common_symbols): Call
10599 terminate_minimal_symbol_table.
10600 * symfile.c (reread_symbols): Same.
8ffd9b1b 10601
ffc65945
KB
106022003-02-03 Kevin Buettner <kevinb@redhat.com>
10603
10604 * s390-tdep.c (s390_address_class_type_flags)
10605 (s390_address_class_type_flags_to_name)
10606 (s390_address_class_name_to_type_flags): New functions.
10607 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10608 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10609
f211c6d4
MS
106102003-02-03 Michael Snyder <msnyder@redhat.com>
10611
10612 * arm-tdep.c: Fix spell-o in comment.
10613
659b0389
ML
106142003-02-03 Michal Ludvig <mludvig@suse.cz>
10615
10616 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10617 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10618 error messages to contain BFD filename.
659b0389 10619
3b31d625
EZ
106202003-02-02 Elena Zannoni <ezannoni@redhat.com>
10621
997b089a 10622 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10623 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10624 (do_mixed_source_and_assembly): Use
10625 make_cleanup_ui_out_tuple_begin_end and
10626 make_cleanup_ui_out_tuple_begin_end.
10627 (do_mixed_source_and_assembly): Ditto.
10628 * thread.c (do_captured_list_thread_ids): Ditto.
10629 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10630 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10631 ui_out_tuple_end): Delete prototypes.
10632 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10633 ui_out_list_end, ui_out_tuple_end): Delete.
10634
10635 From Kevin Buettner <kevinb@redhat.com>:
10636 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10637 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10638 (do_cleanup_table_end): New functions.
10639 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10640 Use cleanups to invoke_ui_out_tuple_end().
10641 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10642 * cli/cli-setshow.c (cmd_show_list): Use
10643 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10644
5b181d62
AC
106452003-02-02 Andrew Cagney <ac131313@redhat.com>
10646
10647 * frame.c (frame_unwind_register): New function.
10648 (frame_unwind_unsigned_register): Use.
10649 (frame_unwind_signed_register): Use.
10650 (frame_read_register): New function.
10651 * frame.h (frame_unwind_register): Declare.
10652 (frame_read_register): Declare.
10653
10654 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10655 and frame_unwind_register instead of read_memory, write_register
10656 and deprecated_write_register_bytes.
10657
5f601589
AC
106582003-02-02 Andrew Cagney <ac131313@redhat.com>
10659
10660 * frame.h: Note that namelen can be negative.
10661 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10662 NAME's length.
10663
10664 * NEWS: Mention that the d10v's `regs' command is deprecated.
10665 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10666 (d10v_print_registers_info): New function.
10667 (show_regs): Call d10v_print_registers_info.
10668 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10669
6a3fe0a4
MK
106702003-02-02 Mark Kettenis <kettenis@gnu.org>
10671
10672 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10673 lost in the previous patch.
10674
075559bc
AC
106752003-02-01 Andrew Cagney <ac131313@redhat.com>
10676
10677 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10678 * stack.c (print_frame_info_base): Output complete FRAME tuple
10679 for synthesized frames.
075559bc 10680
6789195b
AC
106812003-02-02 Andrew Cagney <ac131313@redhat.com>
10682
10683 * mips-nat.c (zerobuf): Delete.
10684 (fetch_inferior_registers): Alloc local zerobuf.
10685 (fetch_core_registers): Alloc local zerobuf.
10686 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10687 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10688 * thread-db.c (thread_db_store_registers): Ditto.
10689 * sh-tdep.c (sh_do_register): Ditto.
10690 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10691 * remote-sim.c (gdbsim_store_register): Ditto.
10692 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10693 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10694 * monitor.c (monitor_supply_register): Ditto.
10695 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10696 * mips-nat.c (fetch_inferior_registers): Ditto.
10697 * m68klinux-nat.c (fetch_register): Ditto.
10698 * lynx-nat.c (fetch_inferior_registers): Ditto.
10699 (fetch_inferior_registers): Ditto.
10700 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10701 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10702 (hpux_thread_store_registers): Ditto.
10703 * hppah-nat.c (fetch_register): Ditto.
10704 * hppab-nat.c (fetch_register): Ditto.
10705 * hppa-tdep.c (pa_register_look_aside): Ditto.
10706 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10707 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10708
e669114a
AC
107092003-02-01 Andrew Cagney <ac131313@redhat.com>
10710
10711 * gdbarch.sh: Explictly specify all method levels. When a
10712 variable with an empty level, provide a non-multi-arch default.
10713 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10714 * gdbarch.h: Re-generate.
10715 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10716 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10717
9a043c1d
AC
107182003-02-01 Andrew Cagney <ac131313@redhat.com>
10719
10720 * defs.h (host_pointer_to_address): Delete declaration.
10721 (address_to_host_pointer): Delete declaration.
10722 * utils.c (host_pointer_to_address): Delete function.
10723 (address_to_host_pointer): Delete function.
10724 * procfs.c (procfs_address_to_host_pointer): New function.
10725 * procfs.c (proc_set_watchpoint): Use.
10726 (procfs_can_use_hw_breakpoint): Update comments.
10727 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10728 (som_solib_add): Use.
10729 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10730 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10731
7ca9f392
AC
107322003-02-01 Andrew Cagney <ac131313@redhat.com>
10733
94bbfd30
AC
10734 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10735 strlen d_name.
10736
7ca9f392
AC
10737 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10738 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10739 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10740 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10741 (define_symbol): Update.
10742 * symfile.c (generic_load): Remove references to nindy.
10743 * symtab.c: Remove references to nindy.
10744
31a85ea2
AC
107452003-02-01 Andrew Cagney <ac131313@redhat.com>
10746
10747 * infcmd.c (print_float_info): Delete code conditional on
10748 FLOAT_INFO.
10749 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10750 * config/m68k/nm-apollo68b.h: Ditto.
10751 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10752 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10753 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10754
f6e85fc8
MK
107552003-02-01 Mark Kettenis <kettenis@gnu.org>
10756
6015b6a0
MK
10757 * config/i386/tm-i386os9k.h: Removed.
10758
f7a30bdf
MK
10759 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10760 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10761 they're identical to i[3456]86-*-sysv* now.
10762 * config/i386/i386v32.mh: Removed.
10763 * config/i386/xm-i386v32.h: Removed.
10764 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10765
28d52111
MK
10766 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10767
4d3f6bce
MK
10768 * config/i386/i386dgux.mh: Removed.
10769 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10770
f6e85fc8
MK
10771 * configure.in: Fix typo.
10772 * configure: Regenerated.
10773
53955967
DC
107742003-01-31 David Carlton <carlton@math.stanford.edu>
10775
10776 * dwarf2read.c (dwarf2_locate_sections): Set
10777 dwarf_ranges_section.
10778
b1364885
AC
107792003-01-31 Andrew Cagney <ac131313@redhat.com>
10780
8dbb1c65
AC
10781 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10782 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10783
8731e58e
AC
10784 * utils.c: Re-indent.
10785
b1364885
AC
10786 * config/djgpp/fnchange.lst: Delete nindy files.
10787 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10788 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10789 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10790 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10791 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10792 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10793 * Makefile.in (init.c): Remove nindy references.
10794 (saber_gdb): Delete rule.
10795 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10796 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10797 and a68v-nat.c.
10798 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10799 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10800 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10801 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10802 nindy-share/stop.h.
10803 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10804 * saber.suppress: Delete file.
10805
086df311
DJ
108062003-01-31 Daniel Jacobowitz <drow@mvista.com>
10807
10808 * dbxread.c (stabs_data): New static variable.
10809 (fill_symbuf): Support an in-memory buffer for stabs data.
10810 (stabs_seek): New function.
10811 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10812 (read_ofile_symtab): Use stabs_seek.
10813 (elfstab_build_psymtabs): Take an asection* instead of
10814 an offset and size. Relocate the stabs data if necessary.
10815 Save the section* for dbx_psymtab_to_symtab.
10816 * dwarf2read.c: Add section variables for each debug section.
10817 (dwarf2_locate_sections): Fill them in.
10818 (dwarf2_read_section): Take an asection* argument.
10819 Relocate the section contents if necessary.
10820 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10821 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10822 it to dwarf2_read_section.
10823 (dwarf2_build_frame_info): Update callers.
10824 * elfread.c (elf_symfile_read): Update call to
10825 elfstab_build_psymtabs.
10826 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10827 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10828 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10829 * symfile.c (symfile_dummy_outputs): New function.
10830 (symfile_relocate_debug_section): New function.
10831 * symfile.h (symfile_relocate_debug_section): Add prototype.
10832
87d1b352
RH
108332003-01-31 Richard Henderson <rth@redhat.com>
10834
10835 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10836 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10837 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10838 * alpha-tdep.c (alpha_register_name): Add "unique".
10839 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10840 (ALPHA_UNIQUE_REGNUM): New.
10841 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10842
c48861fb
AC
108432003-01-31 Andrew Cagney <ac131313@redhat.com>
10844
10845 * README: Remove reference to Ericsson 1800 monitor.
10846 * Makefile.in (remote-es.o): Delete rule.
10847 (ALLDEPFILES): Delete remote-es.c.
10848 * remote-es.c: Delete file.
10849 * config/m68k/es1800.mt: Delete file.
10850 * config/djgpp/fnchange.lst: Update.
10851 * configure.tgt: Delete m68*-ericsson-* target.
10852
d764a824
AF
108532003-01-31 Adam Fedor <fedor@gnu.org>
10854
10855 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10856 Remove duplicate/shadowing variable of same name.
10857
fe36c4f4
JB
108582003-01-30 Jim Blandy <jimb@redhat.com>
10859
10860 * symfile.c (find_separate_debug_file): Assert that the objfile's
10861 directory name we compute ends with a slash, and then assume that
10862 that's so everywhere we use it.
10863
cb741690
DJ
108642003-01-30 Daniel Jacobowitz <drow@mvista.com>
10865
10866 * valops.c (value_assign): Flush frame cache after stores to memory
10867 also.
10868
96ee5227
AC
108692003-01-30 Andrew Cagney <ac131313@redhat.com>
10870
10871 * Makefile.in (mon960-rom.o): Delete rule.
10872 * mon960-rom.c: Delete file.
10873
7f6104a9
AC
108742003-01-30 Andrew Cagney <ac131313@redhat.com>
10875
10876 * d10v-tdep.c: Include "frame-unwind.h".
10877 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10878 list.
10879 (next_addr, uses_frame): Delete.
10880 (struct d10v_unwind_cache): Define.
10881 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10882 Use info instead of next_addr and uses_frame globals.
10883 (d10v_frame_init_saved_regs): Delete function.
10884 (d10v_init_extra_frame_info): Delete function.
10885 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10886 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10887 init_frame_pc or frame_saved_pc.
10888 (d10v_pop_frame): Delete function.
10889 (do_d10v_pop_frame): Delete function.
10890 (d10v_frame_chain): Delete function.
10891 (d10v_frame_chain_valid): Delete function.
10892 (d10v_frame_pc_unwind): New function.
10893 (d10v_frame_id_unwind): New function.
10894 (saved_regs_unwinder): New function.
10895 (d10v_frame_register_unwind): New function.
10896 (d10v_frame_pop): New function.
10897 (d10v_frame_unwind): New variable.
10898 (d10v_frame_p): New function.
10899 (d10v_frame_saved_pc): Delete function.
10900 * Makefile.in (d10v-tdep.o): Update dependencies.
10901
cad2e848
JB
109022003-01-30 J. Brobecker <brobecker@gnat.com>
10903
10904 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10905 causing some regressions due to a change in the default value
10906 for this macro.
10907
af34e669
DJ
109082003-01-29 Richard Henderson <rth@redhat.com>
10909 Elena Zannoni <ezannoni@redhat.com>
10910 Daniel Jacobowitz <drow@mvista.com>
10911
10912 Fix PR gdb/961.
8ffd9b1b 10913 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10914 variables.
10915 (RANGES_SECTION): New.
10916 (dwarf_ranges_buffer): New variable.
10917 (struct comp_unit_head): Add member "die".
10918 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10919 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10920 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10921 (dwarf2_locate_sections): Likewise.
10922 (dwarf2_build_psymtabs): Read .debug_ranges.
10923 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10924 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10925 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10926 Look for DW_AT_ranges and return the bounding box.
10927
baa93fa6
CF
109282003-01-29 Brian Ford <ford@vss.fsi.com>
10929
10930 * win32-nat.c (cygwin_pid): Removed as unused.
10931 (child_attach): Try fall back to Cygwin pid.
10932
c63f977f
JB
109332003-01-29 Jim Blandy <jimb@redhat.com>
10934
10935 * objfiles.h (struct objfile): Doc fix.
10936
d62d1979
AC
109372003-01-29 Andrew Cagney <ac131313@redhat.com>
10938
10939 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10940 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10941 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10942 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10943 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10944 (FRAME_SAVED_PC): Change to a function with predicate.
10945 * gdbarch.h, gdbarch.c: Re-generate.
10946
1ae18a04
AC
109472003-01-28 Andrew Cagney <ac131313@redhat.com>
10948
52287340
AC
10949 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10950
1ae18a04
AC
10951 * complaints.c (complain): Delete function.
10952 * complaints.h (struct deprecated_complaint): Delete definition.
10953 (complain): Delete declaration.
10954
f2c16bd6
KB
109552003-01-28 Kevin Buettner <kevinb@redhat.com>
10956
10957 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10958 dummy frames.
10959
a94dd1fd
AC
109602003-01-27 Andrew Cagney <ac131313@redhat.com>
10961
10962 * sentinel-frame.h, sentinel-frame.c: New files.
10963 * Makefile.in (frame.o): Update dependencies.
10964 (SFILES): Add sentinel-frame.c.
10965 (sentinel_frame_h): Define.
10966 (COMMON_OBS): Add sentinel-frame.o.
10967 (sentinel-frame.o): Specify dependencies.
10968 * frame.c: Include "sentinel-frame.h".
10969 (frame_register_unwind): Rewrite assuming that there is always a a
10970 ->next frame.
10971 (frame_register, generic_unwind_get_saved_register): Ditto.
10972 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10973 (create_sentinel_frame, unwind_to_current_frame): New functions.
10974 (get_current_frame): Rewrite using create_sentinel_frame and
10975 unwind_to_current_frame. When possible, always create a frame.
10976 (create_new_frame): Set next to the sentinel frame.
10977 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10978 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10979 ID cache when necessary.
10980 (frame_saved_regs_id_unwind): Use frame_relative_level.
10981 (deprecated_generic_get_saved_register): Use frame_relative_level,
10982 get_frame_saved_regs, get_frame_pc, get_frame_base and
10983 get_next_frame.
10984 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10985 frame_register.
10986
5378adc4
DJ
109872003-01-27 Daniel Jacobowitz <drow@mvista.com>
10988
10989 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10990
51ee2ddc
DJ
109912003-01-27 Daniel Jacobowitz <drow@mvista.com>
10992
10993 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10994 (maintenance_set_profile_cmd): Use error () instead of warning ().
10995
d9feb4e7
DJ
109962003-01-27 Daniel Jacobowitz <drow@mvista.com>
10997
10998 * configure.in: Check that -pg works if using --enable-profiling.
10999 Check for monstartup and _mcleanup regardless of --enable-profiling.
11000 * maint.c: Check for monstartup and _mcleanup before using them.
11001 * config.in: Regenerated.
11002 * configure: Regenerated.
11003
2d188dd3
NC
110042003-01-24 Nick Clifton <nickc@redhat.com>
11005
11006 * Add sh2e support:
11007
11008 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11009
11010 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11011 (sh2e_show_regs): New.
11012 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11013 * config/sh/tm-sh.h: Added sh2e to comments.
11014
cb3c37b2
JB
110152003-01-23 Jim Blandy <jimb@redhat.com>
11016
11017 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11018 symbols found)" message here; we haven't checked for a separate
11019 debug info file yet, so we don't know yet.
11020 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11021 we've looked everywhere. Also, there's no need to print a special
11022 message when we're loading the separate debug info file: the one
11023 symbol_file_add prints is fine.
11024
5b5d99cf
JB
110252003-01-23 Alexander Larsson <alexl@redhat.com>
11026 Jim Blandy <jimb@redhat.com>
11027
11028 Add support for executables whose debug info has been separated
11029 out into a separate file, leaving only a link behind.
11030 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11031 and separate_debug_objfile_backlink.
11032 (put_objfile_before): New declaration.
11033 * symfile.c: #include "filenames.h".
11034 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11035 debug info in a separate file, read that, too. Save the addrs
11036 argument, so we can use it again to read the separated debug info;
11037 syms_from_objfile modifies the table we pass it.
11038 (reread_symbols): After re-reading an objfile, call
11039 reread_separate_symbols to refresh its separate debug info
11040 objfile, if it has one.
11041 (reread_separate_symbols, find_separate_debug_file,
11042 get_debug_link_info, separate_debug_file_exists): New functions.
11043 (debug_file_directory): New global var.
11044 (_initialize_symfile): Initialize debug_file_directory, and
11045 provide the new `set debug-file-directory' command to let the user
11046 change it.
11047 * objfiles.c (free_objfile): If this objfile has its debug info in
11048 a separate objfile, free that one too. If this is itself a
11049 separate debug info objfile, clear our parent's backlink.
11050 (put_objfile_before): New function.
11051 * utils.c (gnu_debuglink_crc32): New function.
11052 * defs.h (gnu_debuglink_crc32): New declaration.
11053 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11054 * configure.in: Handle --with-separate-debug-dir config option.
11055 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11056 * acconfig.h (DEBUGDIR): New macro.
11057 * configure, aclocal.m4, config.in: Regenerated.
11058
7e8580c1
JB
110592003-01-22 Jim Blandy <jimb@redhat.com>
11060
7904e09f
JB
11061 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11062 like the old symbol_file_add, but taking new arguments: you can
11063 now pass in either a `struct section_addr_info' list to say where
11064 each section is loaded, or a `struct section_offsets' table. Pass
11065 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11066 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11067 with the appropriate quiescent values for the new arguments.
11068
7e8580c1
JB
11069 * symfile.c: #include "gdb_assert.h".
11070 (syms_from_objfile): Add the ability to pass in a section offset
11071 table directly, as an alternative to the section_addr_info table.
11072 Document arguments better.
11073 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11074 * symfile.h (syms_from_objfile): Update declaration.
11075 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11076 syms_from_objfile.
11077 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11078
d28f9cdf
DJ
110792003-01-22 Daniel Jacobowitz <drow@mvista.com>
11080
11081 Original patch by Tom Tromey <tromey@cygnus.com> and
11082 Jason Molenda <jmolenda@apple.com>.
11083 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11084 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11085 * NEWS: Mention profiling.
11086 * configure.in (--enable-gdbtk): Fix typo.
11087 (--enable-profiling): New. Set PROFILE_CFLAGS.
11088 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11089 Fill in function.
11090 (profiling_state): New variable.
11091 (mcleanup_wrapper): New function.
11092 (_initialize_maint): Remove NOTYET, fix call to
11093 add_setshow_boolean_cmd for "maint set profile".
11094 * configure: Regenerated.
11095
df21e465
MH
110962003-01-21 Martin M. Hunt <hunt@redhat.com>
11097
11098 * Makefile.in (install-gdbtk): Install PNG images too.
11099
73c1f219
AC
111002003-01-21 Andrew Cagney <ac131313@redhat.com>
11101
11102 * exec.c (text_start): Delete global variable.
11103 (exec_file_attach): Make text_start local to the function.
11104 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11105 * valops.c (hand_function_call): Delete code that handles
11106 BEFORE_TEXT_END and AFTER_TEXT_END.
11107 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11108 of CALL_DUMMY_LOCATION.
11109 * gdbarch.c: Regenerate.
11110 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11111 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11112 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11113 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11114 (text_end): Delete extern declaration.
11115
eb4f72c5
AC
111162003-01-21 Andrew Cagney <ac131313@redhat.com>
11117
11118 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11119 * blockframe.c (backtrace_below_main): Move to "frame.c".
11120 (frame_chain_valid): Delete check for backtrace_below_main.
11121 (_initialize_blockframe): Delete initialization, move ``set
11122 backtrace-below-main'' command to "frame.c".
11123 (do_flush_frames_sfunc): Delete function.
11124 * frame.c: Include "command.h" and "gdbcmd.h".
11125 (frame_type_from_pc): New function.
11126 (create_new_frame): Use frame_type_from_pc.
11127 (legacy_get_prev_frame): New function.
11128 (get_prev_frame): Rewrite. When an old style frame, call
11129 legacy_get_prev_frame. Otherwize, unwind the PC first.
11130 (_initialize_frame): Add ``set backtrace-below-main'' command.
11131 * Makefile.in (frame.o): Update dependencies.
11132
778ce8cc
AC
111332003-01-19 Andrew Cagney <ac131313@redhat.com>
11134
11135 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11136 DEPRECATED_REGISTERS_INFO.
11137
01c193c8
AC
111382003-01-19 Andrew Cagney <ac131313@redhat.com>
11139
11140 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11141 Maintainers'. Update `Various Maintainers'.
11142
dedc2a2b
AC
111432003-01-19 Andrew Cagney <ac131313@redhat.com>
11144
11145 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11146 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11147 Suppress actual parameters when `-'.
11148 * gdbarch.h, gdbarch.c: Regenerate.
11149
b7261c70
AC
111502003-01-19 Andrew Cagney <ac131313@redhat.com>
11151
11152 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11153 code handling dummy frames.
11154
dbe9fe58
AC
111552003-01-19 Andrew Cagney <ac131313@redhat.com>
11156
11157 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11158 (struct frame_unwind): Add field pop.
11159 * frame.h (frame_pop): Declare.
11160 * frame.c (frame_saved_regs_pop): New function.
11161 (trad_frame_unwinder): Add frame_saved_regs_pop.
11162 (frame_pop): New function.
11163 * dummy-frame.c (dummy_frame_pop): New function.
11164 (discard_innermost_dummy): New function.
11165 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11166 (dummy_frame_unwind): Add dummy_frame_pop.
11167 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11168 * valops.c (hand_function_call): Ditto.
11169 * stack.c (return_command): Ditto.
11170
570b8f7c
AC
111712003-01-18 Andrew Cagney <ac131313@redhat.com>
11172
11173 * cris-tdep.c: Fix function declaration indentation.
11174 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11175 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11176 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11177 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11178 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11179 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11180
111812003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11182
11183 * README (Unpacking and Installation -- quick overview):
11184 Warn against ".../gdb-5.3/gdb/configure".
11185
494cca16
AC
111862003-01-18 Andrew Cagney <ac131313@redhat.com>
11187
11188 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11189 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11190 (struct frame_unwind): Declare opaque.
11191 (dummy_frame_p): Declare function.
11192 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11193 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11194 * dummy-frame.c: Include "frame-unwind.h".
11195 (dummy_frame_p): New function.
11196 (dummy_frame_unwind): New variable.
11197 * frame.c: Include "frame-unwind.h".
11198 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11199 to use the new unwind field.
11200 (set_unwind_by_pc): Delete function.
11201 (create_new_frame, get_prev_frame): Set unwind field using
11202 frame_unwind_find_by_pc.
11203 (trad_frame_unwind, trad_frame_unwinder): New variables.
11204 * frame.h (trad_frame_unwind): Declare variable.
11205 (frame_id_unwind_ftype): Delete declaration.
11206 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11207 (struct frame_unwind): Declare opaque.
11208 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11209 register_unwind with a single unwind pointer.
11210 * frame-unwind.h, frame-unwind.c: New files.
11211 * Makefile.in (SFILES): Add frame-unwind.c.
11212 (frame_unwind_h): Define.
11213 (COMMON_OBS): Add frame-unwind.o.
11214 (frame-unwind.o): Specify dependencies.
11215 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11216
4efb68b1
AC
112172003-01-18 Andrew Cagney <ac131313@redhat.com>
11218
11219 * ada-valprint.c: Eliminate PTR.
11220 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11221 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11222 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11223 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11224 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11225 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11226 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11227
a84d24ee
AC
112282003-01-17 Andrew Cagney <ac131313@redhat.com>
11229
762f08a3
AC
11230 * main.c (captured_main): Don't use PTR.
11231 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11232 * gdbtypes.c (lookup_primitive_typename): Ditto.
11233 (lookup_struct_elt_type): Ditto.
11234 * f-valprint.c (info_common_command): Ditto.
11235 (list_all_visible_commons): Ditto.
11236 * jv-typeprint.c (java_type_print_base): Ditto.
11237
a84d24ee
AC
11238 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11239 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11240 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11241 i386-interix-nat.c and i386-interix-tdep.c. Rename
11242 m68klinux-nat.c and m68klinux-tdep.c. Rename
11243 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11244 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11245 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11246 * main.c (captured_main): Use xfree, not free.
11247
c170fb60
AC
112482003-01-16 Andrew Cagney <ac131313@redhat.com>
11249
11250 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11251 ID back using a parameter.
11252 * frame.c (frame_id_unwind): Update call.
11253 (frame_saved_regs_id_unwind): Update.
11254 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11255 * dummy-frame.h (struct frame_id): Add opaque declaration.
11256 (dummy_frame_id_unwind): Update declaration.
11257
867f3898
AC
112582003-01-15 Andrew Cagney <ac131313@redhat.com>
11259
11260 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11261
40622be8 112622003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11263
40622be8 11264 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11265
ae66c1fc
EZ
112662003-01-14 Elena Zannoni <ezannoni@redhat.com>
11267
997b089a 11268 Fix PR gdb/898
ae66c1fc
EZ
11269 * breakpoint.c (until_break_command): Add new argument. Use it to
11270 decide whether to stop only at the current frame or not.
11271 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11272 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11273 call.
11274 (advance_command): New function.
11275 (_initialize_infcmd): Update help string for 'until' command.
11276 Add new 'advance' command.
11277
a04257e6
DC
112782003-01-14 David Carlton <carlton@math.stanford.edu>
11279
11280 * linespec.c (decode_line_1): Normalize comments.
11281 (set_flags): Ditto.
11282 (locate_first_half): Ditto.
11283 (decode_compound): Ditto.
11284 (symtab_from_filename): Ditto.
11285 (decode_all_digits): Ditto.
11286 (decode_dollar): Ditto.
11287 (find_methods): Ditto.
11288 (find_toplevel_char): Ditto.
11289
1bac305b
AC
112902003-01-13 Andrew Cagney <ac131313@redhat.com>
11291
11292 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11293 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11294 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11295 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11296 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11297 * language.c, language.h, m32r-tdep.c: Update copyright.
11298 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11299 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11300 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11301 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11302 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11303 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11304
25caa7a8
EZ
113052003-01-13 Elena Zannoni <ezannoni@redhat.com>
11306
11307 * stabsread.h (process_later, resolve_cfront_continuation):
11308 Obsolete.
11309 Update copyright years.
11310 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11311 Update copyright year.
11312 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11313 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11314 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11315 Update copyright year.
11316 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11317 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11318 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11319 (parse_partial_symbols): Obsolete cfront support.
11320 * stabsread.c
11321 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11322 macros.
11323 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11324 read_cfront_baseclasses, read_cfront_member_functions,
11325 resolve_cfront_continuation,read_cfront_static_fields,
11326 copy_cfront_struct_fields): Obsolete functions.
11327 (define_symbol, read_one_struct_field): Obsolete cfront support.
11328 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11329 Update Copyright year.
11330
7789c6f5
EZ
113312003-01-13 Elena Zannoni <ezannoni@redhat.com>
11332
11333 * stack.c (print_frame_info, print_stack_frame_base_stub,
11334 print_stack_frame_base, show_and_print_stack_frame_stub,
11335 show_and_print_stack_frame, print_only_stack_frame_stub,
11336 print_only_stack_frame): Delete functions.
11337 (print_stack_frame_stub): Call print_frame_info instead of
11338 print_frame_info_base.
11339 (print_frame_info_base): Rename to print_frame_info.
11340 (backtrace_command_1): Call print_frame_info, instead of
11341 print_frame_info_base.
11342 (current_frame_command): Call print_stack_frame, instead of
11343 print_only_stack_frame.
11344 (frame_command): Call print_stack_frame, instead of
11345 show_and_print_stack_frame.
11346 (up_command): Ditto.
11347 (down_command): Ditto.
11348 * frame.h (print_only_stack_frame): Delete prototype.
11349 * infrun.c (normal_stop): Call print_stack_frame, instead of
11350 show_and_print_stack_frame.
11351 * thread.c (info_threads_command): Call print_stack_frame, instead
11352 of print_only_stack_frame.
11353
3f5a3016
AC
113542003-01-13 Andrew Cagney <ac131313@redhat.com>
11355
d99ba314
AC
11356 * README (Graphical interface to GDB): Update URL. Point at
11357 gdb/links/.
11358
3f5a3016
AC
11359 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11360 version match.
11361
083ae935
DJ
113622003-01-13 Daniel Jacobowitz <drow@mvista.com>
11363
11364 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11365 lines.
11366
5365276c
DJ
113672003-01-13 Daniel Jacobowitz <drow@mvista.com>
11368
11369 * thread-db.c (attach_thread): Prototype.
11370 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11371 thread information (ti), and valid flags (th_valid, ti_valid).
11372 (attach_thread): Move target_pid_to_str call to after the thread
11373 is added to GDB's list. Initialize the cache.
11374 (thread_get_info_callback, thread_db_map_id2thr)
11375 (thread_db_get_info): New functions.
11376 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11377 (thread_db_store_registers, thread_db_thread_alive)
11378 (thread_db_get_thread_local_address): Use them.
11379 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11380 of calling error() for threads in unknown state.
11381
11382 (clear_lwpid_callback): New function.
11383 (thread_db_resume): Use it to clear the cache.
11384
9fc30b6b
DJ
113852003-01-13 Daniel Jacobowitz <drow@mvista.com>
11386
11387 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11388 (resume_callback): Remove dead code.
11389
8f871025
AC
113902003-01-13 Andrew Cagney <ac131313@redhat.com>
11391
11392 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11393 predicate.
11394 * gdbarch.h, gdbarch.c: Regenerate.
11395 * stack.c (frame_info): Only initialize the saved registers when
11396 FRAME_INIT_SAVED_REGS_P.
11397 * frame.c (frame_saved_regs_register_unwind): Assert
11398 FRAME_INIT_SAVED_REGS_P.
11399 (deprecated_generic_get_saved_register): Ditto.
11400
3f565f1e
DJ
114012003-01-13 Daniel Jacobowitz <drow@mvista.com>
11402
11403 * source.c (openp): Squelch warning about "filename".
11404
072b1022
DJ
114052003-01-13 Daniel Jacobowitz <drow@mvista.com>
11406
11407 * source.c (openp): If the file does not exist don't necessarily
11408 search the path.
11409
973ccf8b
DJ
114102003-01-13 Daniel Jacobowitz <drow@mvista.com>
11411
11412 Fix PR gdb/872.
11413 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11414 (integer_types_same_name_p): New function.
11415 (rank_one_type): Use it.
11416 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11417
030292b7
DJ
114182003-01-13 Daniel Jacobowitz <drow@mvista.com>
11419
11420 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11421 variables.
11422 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11423 * configure.in: Add --with-sysroot.
11424 * configure: Regenerated.
11425 * main.c (gdb_sysroot): New variable.
11426 (captured_main): Initialize gdb_sysroot.
11427 * defs.h (gdb_sysroot): New extern declaration.
11428 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11429
afb5d334
MC
114302003-01-12 Michael Chastain <mec@shout.net>
11431
11432 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11433
751ceeb4
MC
114342003-01-12 Michael Chastain <mec@shout.net>
11435
11436 * top.c (print_gdb_version): Bump copyright year to 2003.
11437
94cd26f8
DC
114382003-01-12 David Carlton <carlton@bactrian.org>
11439
11440 * linespec.c (symtab_from_filename): Rename variable 's' to
11441 'file_symtab'.
11442
1ce79225
AC
114432003-01-12 Andrew Cagney <ac131313@redhat.com>
11444
11445 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11446 dummy frame.
11447 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11448
fa1fd571
AC
114492003-01-12 Andrew Cagney <ac131313@redhat.com>
11450
11451 * d10v-tdep.c: Include "gdb_assert.h".
11452 (d10v_store_return_value): Rewrite to match current interface.
11453 (d10v_extract_struct_value_address): Ditto.
11454 (d10v_extract_return_value): Ditto.
11455 (d10v_gdbarch_init): Set store_restore_value,
11456 extract_struct_value_address and extract_return_value.
11457
68b8d23e
JB
114582003-01-12 J. Brobecker <brobecker@gnat.com>
11459
11460 * hpread.c (set_namestring): New procedure replacing the
11461 SET_NAMESTRING macro.
11462 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11463 by calls to set_namestring.
11464
114652003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11466
11467 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11468 a compilation warning.
11469 (hpread_process_one_debug_symbol): Likewise.
11470
88d262ca
DC
114712003-01-10 David Carlton <carlton@math.stanford.edu>
11472
11473 * linespec.c (decode_line_1): Rename variable 's' to
11474 'file_symtab'.
11475 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11476 (decode_dollar): Ditto.
11477 (decode_variable): Ditto.
11478 (symbol_found): Ditto.
11479
86669319
MC
114802003-01-09 Michael Chastain <mec@shout.net>
11481
11482 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11483
616a9dc4
CV
114842003-01-07 Corinna Vinschen <vinschen@redhat.com>
11485
11486 * win32-nat.c (set_process_privilege): New function.
11487 (child_attach): Call set_process_privilege() to enable the
11488 SE_DEBUG_NAME user privilege if available in process token.
11489
3269bcfa
JB
114902003-01-10 J. Brobecker <brobecker@gnat.com>
11491
11492 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11493 compilation error in the previous revision.
11494
2b0ee454
DC
114952003-01-09 David Carlton <carlton@math.stanford.edu>
11496
11497 * linespec.c: Update copyright.
11498
b3ba1b44
DJ
114992003-01-09 Daniel Jacobowitz <drow@mvista.com>
11500
11501 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11502 than inferior_ptid.
11503 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11504
4ef3f3be
AC
115052003-01-09 Andrew Cagney <ac131313@redhat.com>
11506
479ab5a0
AC
11507 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11508 Update comments.
11509 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11510 (frame_saved_regs_zalloc): Update.
11511 (frame_saved_regs_register_unwind): Update.
11512 (create_new_frame): Update.
11513 (get_prev_frame): Update.
11514 (frame_extra_info_zalloc): Update.
11515 (deprecated_get_frame_saved_regs): Update.
11516 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11517 * cris-tdep.c: Update comment.
11518
bde58177
AC
11519 * somsolib.h: Fix function indentation.
11520 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11521 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11522 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11523 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11524 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11525
4ef3f3be
AC
11526 * infrun.c (follow_fork): Use ISO C definition.
11527 * expprint.c (print_subexp): Use xfree instead of free.
11528 * charset.c: Include "gdb_string.h" instead of <string.h>.
11529 (register_iconv_charsets): Use ISO C definition.
11530 (host_charset, target_charset): Ditto.
11531 * Makefile.in (charset.o): Update dependencies.
11532 (mi-cmd-env.o): Update dependencies.
11533
1c615f7a
AC
115342003-01-08 Andrew Cagney <cagney@redhat.com>
11535
11536 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11537 get_frame_base.
11538
c9a1dc08
AC
115392003-01-08 Andrew Cagney <ac131313@redhat.com>
11540
11541 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11542 build directories. Save edited gdb output in Mbuild.log. If a
11543 build fails, remove any final GDB executable.
11544
dbad9d94
AC
115452003-01-08 Andrew Cagney <ac131313@redhat.com>
11546
11547 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11548 replacing hex constants with function names and stripping leading
11549 file name directory prefixes.
11550
8d357cca
AC
115512003-01-08 Andrew Cagney <cagney@redhat.com>
11552
11553 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11554 get_frame_base.
11555
bca02a8a
DC
115562003-01-08 David Carlton <carlton@math.stanford.edu>
11557
11558 * linespec.c (decode_line_1): Move code into decode_variable.
11559 (decode_variable): New function.
11560
7f8ab3a0
AC
115612003-01-08 Andrew Cagney <ac131313@redhat.com>
11562
11563 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11564
7b5849cc
AC
115652003-01-08 Andrew Cagney <cagney@redhat.com>
11566
11567 * cris-tdep.c (cris_frame_init_saved_regs): Use
11568 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11569 saved_regs buffer.
11570 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11571 (sh64_nofp_frame_init_saved_regs): Ditto.
11572 (sh_fp_frame_init_saved_regs): Ditto.
11573 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11574 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11575 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11576 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11577
72a5efb3
DJ
115782003-01-08 Daniel Jacobowitz <drow@mvista.com>
11579
11580 * minsyms.c (lookup_minimal_symbol): Update comment.
11581 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11582 (lookup_minimal_symbol_solib_trampoline): Likewise.
11583
11c02a10
AC
115842003-01-08 Andrew Cagney <cagney@redhat.com>
11585
aab3ea25
AC
11586 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11587 frame_relative_level.
11588
da50a4b7
AC
11589 * alpha-tdep.c: Use get_frame_extra_info.
11590 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11591 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11592 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11593 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11594
11c02a10
AC
11595 * alpha-tdep.c: Use get_next_frame.
11596 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11597 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11598 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11599 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11600 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11601 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11602 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11603
1e2330ba
AC
116042003-01-07 Andrew Cagney <cagney@redhat.com>
11605
11606 * alpha-tdep.c: Use get_frame_base.
11607 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11608 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11609 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11610 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11611 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11612 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11613 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11614 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11615
2d75187b
AC
116162003-01-07 Andrew Cagney <cagney@redhat.com>
11617
11618 * frame.c (deprecated_get_frame_context): New function.
11619 (deprecated_set_frame_context): New function.
11620 * frame.h (deprecated_get_frame_context): Declare.
11621 (deprecated_set_frame_context): Declare.
11622 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11623 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11624
483d36b2
AC
116252003-01-07 Andrew Cagney <cagney@redhat.com>
11626
11627 * frame.c (deprecated_set_frame_next_hack): New function.
11628 (deprecated_set_frame_prev_hack): New function.
11629 * frame.h (deprecated_set_frame_next_hack): Declare.
11630 (deprecated_set_frame_prev_hack): Declare.
11631 * mcore-tdep.c (analyze_dummy_frame): Use
11632 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11633 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11634
14e91ac5
DC
116352003-01-07 David Carlton <carlton@math.stanford.edu>
11636
11637 * linespec.c (decode_line_1): Move code into decode_dollar.
11638 (decode_dollar): New function.
11639
b0c6b05c
AC
116402003-01-07 Andrew Cagney <cagney@redhat.com>
11641
11642 * arm-tdep.c (arm_init_extra_frame_info): Use
11643 deprecated_update_frame_base_hack.
11644 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11645 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11646 (fix_frame_pointer): Ditto.
11647 (mn10300_analyze_prologue): Ditto.
11648
a00a19e9
AC
116492003-01-07 Andrew Cagney <cagney@redhat.com>
11650
11651 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11652 extra_info using frame_extra_info_zalloc.
11653 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11654 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11655 (sh64_init_extra_frame_info): Ditto.
11656 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11657 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11658 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11659 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11660 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11661 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11662 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11663 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11664 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11665 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11666 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11667 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11668
11669 * mn10300-tdep.c (analyze_dummy_frame): Use
11670 deprecated_set_frame_extra_info_hack.
11671 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11672
1fb4c65b
JB
116732003-01-07 J. Brobecker <brobecker@gnat.com>
11674
11675 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11676 class is not scText. These do not define "real" procedures.
11677 (parse_partial_symbols): Likewise.
11678
9fe7d6bf
MS
116792003-01-06 Michael Snyder <msnyder@redhat.com>
11680
11681 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11682
f6c609c4
AC
116832003-01-06 Andrew Cagney <ac131313@redhat.com>
11684
11685 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11686 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11687 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11688 deprecated_frame_xmalloc_with_cleanup.
11689 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11690 deprecated_frame_xmalloc.
11691 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11692 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11693
d995ff4b
AC
116942003-01-06 Andrew Cagney <cagney@redhat.com>
11695
84dc46cb
AC
11696 * x86-64-linux-tdep.c: Include "osabi.h".
11697 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11698
d995ff4b
AC
11699 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11700
66140c26
AC
117012003-01-06 Andrew Cagney <cagney@redhat.com>
11702
11703 * MAINTAINERS (Target Instruction Set Architectures): Update
11704 arm-elf. Can be built with -Werror, has been multiarched.
11705
11706 * value.h (unpack_long): Make buffer parameter constant.
11707 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11708 * scm-lang.h (scm_parse): Ditto.
11709 * defs.h (extract_typed_address, extract_address): Ditto.
11710 (extract_long_unsigned_integer): Ditto.
11711 * inferior.h (unsigned_pointer_to_address): Ditto.
11712 (signed_pointer_to_address): Ditto.
11713 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11714 * gdbarch.h, gdbarch.c: Regenerate.
11715 * findvar.c (extract_long_unsigned_integer): Update.
11716 (extract_address): Update.
11717 (extract_typed_address): Update.
11718 (unsigned_pointer_to_address): Update.
11719 * values.c (unpack_long): Update.
11720 (unpack_double): Update.
11721 (unpack_pointer): Update.
11722 (unpack_field_as_long): Update.
11723 * d10v-tdep.c (d10v_pointer_to_address): Update.
11724 * avr-tdep.c (avr_pointer_to_address): Update.
11725 * scm-lang.c (scm_unpack): Update.
11726 * findvar.c (signed_pointer_to_address): Update.
11727
b089b3da
ML
117282003-01-06 Michal Ludvig <mludvig@suse.cz>
11729
8ffd9b1b 11730 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11731 since it is in i386-tdep.c.
11732
aff87235
JB
117332003-01-06 J. Brobecker <brobecker@gnat.com>
11734
11735 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11736 failure introduced in the previous change.
11737
34f5e845
MC
117382003-01-05 Michael Chastain <mec@shout.net>
11739
11740 * README: Remove references to deleted remote-*.c files:
11741 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11742 remote-nrom.c, remote-os9k.c, remote-udi.c.
11743
28bcfd30
MK
117442003-01-05 Mark Kettenis <kettenis@gnu.org>
11745
11746 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11747 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11748 i386_get_longjmp_target.
11749
15a5b3ee
AC
117502003-01-05 Andrew Cagney <ac131313@redhat.com>
11751
11752 * arm-tdep.c (prologue_cache): Change to a pointer.
11753 (_initialize_arm_tdep): Allocate prologue_cache.
11754 (check_prologue_cache): Update.
11755 (save_prologue_cache): Update.
11756 (arm_gdbarch_init): Update.
11757
c263362b
DJ
117582003-01-04 Daniel Jacobowitz <drow@mvista.com>
11759
11760 * stabsread.c (update_method_name_from_physname): Call complaint()
11761 instead of error.
11762
51603483
DJ
117632003-01-04 Daniel Jacobowitz <drow@mvista.com>
11764
11765 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11766 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11767 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11768
11769 * blockframe.c: Include "gdbcmd.h" and "command.h".
11770 (backtrace_below_main): New variable.
11771 (file_frame_chain_valid, func_frame_chain_valid)
11772 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11773 (generic_func_frame_chain_valid): Remove functions.
11774 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11775 (_initialize_blockframe): New function.
11776 * Makefile.in (blockframe.o): Update dependencies.
11777 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11778 comment. Call frame_chain_valid ().
11779 * frame.h: Remove old prototypes. Add prototype for
11780 frame_chain_valid and update comments to match.
11781 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11782 Remove old comment.
11783 * gdbarch.h: Regenerated.
11784 * gdbarch.c: Regenerated.
11785
11786 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11787 set_gdbarch_frame_chain_valid.
11788 * avr-tdep.c (avr_gdbarch_init): Likewise.
11789 * cris-tdep.c (cris_gdbarch_init): Likewise.
11790 * frv-tdep.c (frv_gdbarch_init): Likewise.
11791 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11792 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11793 (i386_nw_init_abi): Likewise.
11794 (i386_gdbarch_init): Likewise.
11795 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11797 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11798 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11799 * mips-tdep.c (mips_gdbarch_init): Likewise.
11800 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11801 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11802 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11803 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11804 * s390-tdep.c (s390_gdbarch_init): Likewise.
11805 * sh-tdep.c (sh_gdbarch_init): Likewise.
11806 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11807 * v850-tdep.c (v850_gdbarch_init): Likewise.
11808 * vax-tdep.c (vax_gdbarch_init): Likewise.
11809 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11810
11811 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11812 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11813 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11814 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11815 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11816 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11817 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11818 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11819
b00a8037
DJ
118202002-01-04 Daniel Jacobowitz <drow@mvista.com>
11821
11822 * Makefile.in (acconfig_h): Remove incorrect macro.
11823 (config_h): Define.
11824 (osabi.o): Update dependencies.
11825 * configure.tgt: Set gdb_osabi based on target triplet.
11826 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11827 * configure: Regenerated.
11828 * config.in: Regenerated.
11829 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11830 (GDB_OSABI_DEFAULT): Define if not already defined.
11831 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11832 (set_osabi_string): New variables.
11833 (gdbarch_register_osabi): Add new OS ABI to
11834 gdb_osabi_available_names.
11835 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11836 (set_osabi, show_osabi): New functions.
11837 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11838
4be87837
DJ
118392003-01-04 Daniel Jacobowitz <drow@mvista.com>
11840
11841 * arch-utils.c (gdbarch_info_init): Set osabi to
11842 GDB_OSABI_UNINITIALIZED.
11843 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11844 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11845 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11846 * gdbarch.c: Regenerated.
11847 * gdbarch.h: Regenerated.
11848 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11849 there's no BFD.
11850 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11851 * osabi.h (enum gdb_osabi): Move to defs.h.
11852 (gdbarch_init_osabi): Update prototype.
11853 * defs.h (enum gdb_osabi): Moved here.
11854 * Makefile.in: Update dependencies.
11855
11856 * alpha-tdep.h: Don't include "osabi.h".
11857 (struct gdbarch_tdep): Remove osabi member.
11858 * alpha-tdep.c: Include "osabi.h".
11859 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11860 iterate over arches. Update call to gdbarch_init_osabi.
11861 (alpha_dump_tdep): Don't dump osabi.
11862 * alpha-linux-tdep.c: Include "osabi.h".
11863 * alpha-osf1-tdep.c: Include "osabi.h".
11864 * alphafbsd-tdep.c: Include "osabi.h".
11865 * alphanbsd-tdep.c: Include "osabi.h".
11866
11867 * arm-tdep.h: Don't include "osabi.h".
11868 (struct gdbarch_tdep): Remove osabi member.
11869 * arm-tdep.c: Include "osabi.h".
11870 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11871 iterate over arches. Update call to gdbarch_init_osabi.
11872 (arm_dump_tdep): Don't dump osabi.
11873 * arm-linux-tdep.c: Include "osabi.h".
11874 * armnbsd-tdep.c: Include "osabi.h".
11875
11876 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11877 Update call to gdbarch_init_osabi.
11878
11879 * i386-tdep.h: Don't include "osabi.h".
11880 (struct gdbarch_tdep): Remove osabi member.
11881 * i386-tdep.c: Include "osabi.h".
11882 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11883 iterate over arches. Update call to gdbarch_init_osabi.
11884 (i386_dump_tdep): Don't dump osabi.
11885 * i386-linux-tdep.c: Include "osabi.h".
11886 * i386-sol2-tdep.c: Include "osabi.h".
11887 * i386bsd-tdep.c: Include "osabi.h".
11888 * i386gnu-tdep.c: Include "osabi.h".
11889 * i386ly-tdep.c: Include "osabi.h".
11890 * i386nbsd-tdep.c: Include "osabi.h".
11891 * i386obsd-tdep.c: Include "osabi.h".
11892
11893 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11894 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11895 check osabi when iterating over arches. Update call to
11896 gdbarch_init_osabi.
11897 (mips_dump_tdep): Don't dump osabi.
11898
11899 * ns32k-tdep.h: Don't include "osabi.h".
11900 (struct gdbarch_tdep): Remove.
11901 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11902 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11903 allocate tdep. Update call to gdbarch_init_osabi.
11904 (ns32k_dump_tdep): Remove.
11905 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11906 * ns32knbsd-tdep.c: Include "osabi.h".
11907
11908 * ppc-tdep.h: Don't include "osabi.h".
11909 (struct gdbarch_tdep): Remove osabi member.
11910 * rs6000-tdep.c: Include "osabi.h".
11911 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11912 osabi when iterating over arches. Update call to
11913 gdbarch_init_osabi.
11914 (rs6000_dump_tdep): Don't dump osabi.
11915 * ppc-linux-tdep.c: Include "osabi.h".
11916 * ppcnbsd-tdep.c: Include "osabi.h".
11917
11918 * sh-tdep.h: Don't include "osabi.h".
11919 (struct gdbarch_tdep): Remove osabi member.
11920 * sh-tdep.c: Include "osabi.h".
11921 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11922 iterate over arches. Update call to gdbarch_init_osabi.
11923 (sh_dump_tdep): Don't dump osabi.
11924 * shnbsd-tdep.c: Include "osabi.h".
11925
11926 * sparc-tdep.c: Include "osabi.h".
11927 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11928 iterate over arches. Update call to gdbarch_init_osabi.
11929 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11930 tdep structure.
11931
11932 * vax-tdep.h: Don't include "osabi.h".
11933 (struct gdbarch_tdep): Remove.
11934 * vax-tdep.c: Include "osabi.h".
11935 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11936 iterate over arches. Don't allocate tdep. Update call
11937 to gdbarch_init_osabi.
11938 (vax_dump_tdep): Remove.
11939 (_initialize_vax_tdep): Update call to gdbarch_register.
11940
a881cf8e
DJ
119412003-01-04 Daniel Jacobowitz <drow@mvista.com>
11942
11943 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11944 entirely.
11945 (breakpoint_re_set_one): Don't fetch the value for a disabled
11946 watchpoint.
11947
1e698235
DJ
119482003-01-04 Daniel Jacobowitz <drow@mvista.com>
11949
11950 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11951 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11952 (COERCE_FLOAT_TO_DOUBLE): Remove.
11953 * gdbarch.c: Regenerate.
11954 * gdbarch.h: Regenerate.
11955 * Makefile.in: Remove value_h from gdbarch_h.
11956 * valops.c (coerce_float_to_double): New variable.
11957 (default_coerce_float_to_double): Remove.
11958 (standard_coerce_float_to_double): Remove.
11959 (value_arg_coerce): Use coerce_float_to_double.
11960 (_initialize_valops): Add "set coerce-float-to-double".
11961 * value.h (default_coerce_float_to_double): Remove prototype.
11962 (standard_coerce_float_to_double): Remove prototype.
11963
11964 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11965 prototyped.
11966 * mdebugread.c (parse_symbol): Likewise.
11967 * stabsread.c (define_symbol): Mark all functions as prototyped.
11968
11969 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11970 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11971 set_gdbarch_coerce_float_to_double.
11972 * arm-tdep.c (arm_gdbarch_init): Likewise.
11973 * frv-tdep.c (frv_gdbarch_init): Likewise.
11974 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11975 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11976 * mips-tdep.c (mips_gdbarch_init): Likewise.
11977 (mips_coerce_float_to_double): Remove.
11978 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11979 (rs6000_coerce_float_to_double): Remove.
11980 * s390-tdep.c (s390_gdbarch_init): Likewise.
11981 * sh-tdep.c (sh_gdbarch_init): Likewise.
11982 (sh_coerce_float_to_double): Remove.
11983 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11984 (sparc_coerce_float_to_double): Remove.
11985 * v850-tdep.c (v850_gdbarch_init): Likewise.
11986 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11987 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11988 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11989 (hppa_coerce_float_to_double): Remove prototype.
11990 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11991
f436a26a
DJ
119922003-01-04 Daniel Jacobowitz <drow@mvista.com>
11993
11994 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11995
248f8055
DJ
119962003-01-04 Daniel Jacobowitz <drow@mvista.com>
11997
11998 Suggested by Stewart Brown <sb24@avaya.com>:
11999 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12000 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12001 (c_type_print_varspec_suffix): Likewise.
12002
72cfdc76
MK
120032003-01-04 Mark Kettenis <kettenis@gnu.org>
12004
bfd260bb
MK
12005 * configure.in: Don't set and AC_SUBST SUBDIRS.
12006 * configure: Regenerated.
12007
72cfdc76
MK
12008 * configure.in: Remove code dealing with shared libraries.
12009 * Makefile.in: Remove HLDFLAGS and HLDENV.
12010 * configure: Regenerated.
12011
c8b8a898
AC
120122003-01-04 Andrew Cagney <ac131313@redhat.com>
12013
12014 * frame.c (deprecated_frame_xmalloc): New function.
12015 (deprecated_set_frame_saved_regs_hack): New function.
12016 (deprecated_set_frame_extra_info_hack): New function.
12017 * frame.h (deprecated_frame_xmalloc): Declare.
12018 (deprecated_set_frame_saved_regs_hack): Declare.
12019 (deprecated_set_frame_extra_info_hack): Declare.
12020
14abd0fb
MK
120212003-01-04 Mark Kettenis <kettenis@gnu.org>
12022
8ee53726
MK
12023 * configure.in: Move code that provides the --enable-gdbtk option
12024 right after the code that handles the --enable-tui option, and
12025 polish it somewhat.
12026 * configure: Regenerated.
12027
14abd0fb
MK
12028 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12029 AC_CHECK_FUNCS and remove the old check for pread64.
12030 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12031 * acconfig.h (_GNU_SOURCE): Add.
12032 (HAVE_PREAD64): Remove.
12033 * configure, aclocal.m4, config.in: Regenerated.
12034
b2fb4676
AC
120352003-01-03 Andrew Cagney <ac131313@redhat.com>
12036
12037 * alpha-tdep.c: Use get_frame_saved_regs.
12038 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12039 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12040 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12041 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12042 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12043
8dcde887
MK
120442003-01-03 Mark Kettenis <kettenis@gnu.org>
12045
12046 * configure.in: Remove all use of the SUBDIRS variable; add
12047 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12048 code providing the --enable-multi-ice option, and move it right in
12049 front of the code that checks whether gdbserver is supported.
12050 Polish that too.
12051 * configure: Regenerated.
12052 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12053 @SUBDIRS@.
12054
8ccd593b
AC
120552003-01-03 Andrew Cagney <cagney@redhat.com>
12056
12057 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12058 * avr-tdep.c, cris-tdep.c: Ditto.
12059 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12060 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12061
91151a06
MK
120622003-01-03 Mark Kettenis <kettenis@gnu.org>
12063
12064 * configure.in: Remove --enable-netrom option.
12065 * configure: Regenerated.
12066
8fe84d01
MK
120672003-01-03 Mark Kettenis <kettenis@gnu.org>
12068
12069 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12070 declaration for `struct re_pattern_buffer' instead.
12071 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12072
f0394be6
JB
120732003-01-03 J. Brobecker <brobecker@gnat.com>
12074
12075 * mdebugread.c (parse_symbol): Count until the stEnd matching
12076 the structure name.
12077
27e9bf90
MK
120782003-01-02 Mark Kettenis <kettenis@gnu.org>
12079
93d331ba
MK
12080 * configure.in: Remove --with-cpu option.
12081 subscripts. Remove evil changequotes here.
12082 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12083 * config.in, configure: Regenerated.
8ffd9b1b 12084
27e9bf90
MK
12085 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12086 * configure.in: Cleanup section that sources GDB and BFD configure
12087 subscripts. Remove evil changequotes here.
12088 * config.in, configure: Regenerated.
12089
50abf9e5
AC
120902003-01-02 Andrew Cagney <ac131313@redhat.com>
12091
12092 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12093 frame accessor methods.
12094 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12095 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12096 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12097 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12098 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12099 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12100 * z8k-tdep.c: Ditto.
8ffd9b1b 12101
287c1a40
MK
121022003-01-02 Mark Kettenis <kettenis@gnu.org>
12103
f5dbc56d
MK
12104 * configure.in: Remove UI_OUT configuration code.
12105 * ada-lang.c: Update assuming UI_OUT is always true.
12106 * Makefile.in (UIOUT_CFLAGS): Remove.
12107 * configure: Regenerated.
12108 * TODO: Remove blurb about elimination of -DUI_OUT.
12109
627af7ea
MK
12110 * configure.in: Move code that provides the --enable-gdbcli,
12111 --enable-gdbmi options right before the code that handles the
12112 --enable-tui option. Polish a bit.
12113 * configure: Regenerated.
12114
06825bd1
MK
12115 * configure.in: Rewrite check for GNU regex and the
12116 --without-included regex option, and move it into the "Checks for
12117 library functions" section. This makes us use the system regex
12118 again by default on systems with version 2 of the GNU C library.
12119 This was apparently broken.
12120 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12121 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12122 * config.in, configure: Regenerated.
12123
287c1a40
MK
12124 * configure.in: Move code that provides the --enable-tui option
12125 before the "Checks for libraries" section. Polish the code
12126 somewhat and set need_curses to yes if we build the TUI. Rewrite
12127 code that looks for a library providing termcap functionality to
12128 match more closely what's done in the Readline library, and move
12129 it into to the "Checks for libraries" section.
12130 * configure: Regenerated.
12131 * Makefile.in (TERMCAP): Remove variable.
12132 * config/i386/go32.mh (TERMCAP): Remove variable.
12133
684e56bf
AC
121342003-01-02 Andrew Cagney <ac131313@redhat.com>
12135
12136 * MAINTAINERS: Mention gdb_mbuild.sh.
12137 * gdb_mbuild.sh: Rewrite.
12138
e1ea1d75
MK
121392003-01-02 Mark Kettenis <kettenis@gnu.org>
12140
12141 * configure.in: Fix typo in last change.
12142 * config.in, configure: Regenerated.
12143
1b831c93
AC
121442003-01-02 Andrew Cagney <ac131313@redhat.com>
12145
12146 * valarith.c (value_binop): Delete obsolete code and comments.
12147 * configure.host: Ditto.
12148 * buildsym.h (make_blockvector): Ditto.
12149 * buildsym.c (make_blockvector): Ditto.
12150 * defs.h (enum language): Ditto.
12151 (chill_demangle): Ditto.
12152 * elfread.c (elf_symtab_read): Ditto.
12153 * dwarfread.c (CHILL_PRODUCER): Ditto.
12154 (set_cu_language): Ditto.
12155 (handle_producer): Ditto.
12156 * expprint.c (print_subexp): Ditto.
12157 * gdbtypes.c (chill_varying_type): Ditto.
12158 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12159 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12160 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12161 (chill_varying_type): Ditto.
12162 * language.h (_LANG_chill): Ditto.
12163 * language.c (binop_result_type, integral_type): Ditto.
12164 (character_type, string_type, structured_type): Ditto.
12165 (lang_bool_type, binop_type_check): Ditto.
12166 * stabsread.h (os9k_stabs): Ditto.
12167 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12168 (define_symbol, read_type, read_struct_fields): Ditto.
12169 (read_array_type, read_enum_type, read_huge_number): Ditto.
12170 (read_range_type, start_stabs): Ditto.
12171 * symfile.c (init_filename_language_table): Ditto.
12172 (add_psymbol_with_dem_name_to_list): Ditto.
12173 * symtab.c (symbol_init_language_specific): Ditto.
12174 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12175 * symtab.h (struct general_symbol_info): Ditto.
12176 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12177 * typeprint.c (typedef_print): Ditto.
12178 * utils.c (fprintf_symbol_filtered): Ditto.
12179 * valops.c (value_cast, search_struct_field, value_slice): Delete
12180 obsolete code.
12181 (varying_to_slice): Delete function.
12182 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12183 (varying_to_slice): Delete declaration.
12184 * MAINTAINERS: Update.
12185
8bb2c122
MK
121862003-01-02 Mark Kettenis <kettenis@gnu.org>
12187
97bf5e38
MK
12188 * configure.in: Reorganize "Checks for library functions section"
12189 a bit. Remove check for `btowc' and `isascii' functions.
12190 * configure: Regenerated.
12191
5ee754fc
MK
12192 * acconfig.h (_MSE_INT_H): Remove.
12193 * configure.in: Create "Checks for header files" section, and move
12194 appropriate tests there. Don't check for objlist.h, wchar.h,
12195 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12196 misdetection fix. Also add "Checks for types", "Checks for
12197 compiler characteristics" and "Checks for library functions"
12198 sections.
12199 * config.in, configure: Regenerated.
12200
8bb2c122
MK
12201 * configure.in: Create "Checks for programs" section, and move
12202 appropriate tests there.
12203
9a156167
MK
122042003-01-01 Mark Kettenis <kettenis@gnu.org>
12205
12206 * configure.in: Create "Checks for libraries" section, and move
12207 appropriate tests there. Cleanup check for wctype in libw. Use
12208 AC_SEARCH_LIBS to see whether we need libsocket.
12209 * configure: Regenerated.
12210
a80e2bcb 12211For older changes see ChangeLog-2002
c906108c
SS
12212\f
12213Local Variables:
12214mode: change-log
12215left-margin: 8
12216fill-column: 74
12217version-control: never
12218End:
This page took 1.083598 seconds and 4 git commands to generate.