2003-10-24 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b6591e8b
AC
12003-10-24 Andrew Cagney <cagney@redhat.com>
2
3 * target.c: Include "gdbcore.h".
4 (get_target_memory, get_target_memory_unsigned): New functions.
5 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
6 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
7 Use get_target_memory_unsigned.
8 * Makefile.in (target.o): Update dependencies.
9
5f724446
AC
102003-10-24 Andrew Cagney <cagney@redhat.com>
11
ce2826aa
AC
12 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
13 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
14 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
15 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
16 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
17
5f724446
AC
18 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
19 (can_run_code_for): Use the OO term "singleton".
20
fc70c2a0
AC
212003-10-23 Andrew Cagney <cagney@redhat.com>
22
23 * Makefile.in (stack.o): Add $(regcache_h).
24 * stack.c: Include "regcache.h"
25 (return_command): Rewrite. Use get_frame_id and
26 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
27 about unhandled return-values.
28 * value.h (set_return_value): Delete declaration.
29 * values.c (set_return_value): Delete function.
30
4afcc598
JJ
312003-10-23 Jeff Johnston <jjohnstn@redhat.com>
32
33 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
34 (pseudo_regs): Add comment regarding register stack registers.
35 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
36 (floatformat_valid): New static routine.
37 (floatformat_ia64_ext): Add name field and set up is_valid routine
38 to floatformat_valid().
39 (examine_prologue): For the previous cfm, use
40 frame_unwind_register()
41 if the cfm is not stored in a register-stack register. Save the
42 previous cfm value in the prev_cfm field. Add debug output.
43 (ia64_frame_this_id): Use frame_id_build_special() to also register
44 the bsp. Add debug output.
45 (ia64_sigtramp_frame_this_id): Ditto.
46 (ia64_frame_prev_register): Look at cache saved_regs for a few more
47 registers and also add some checks for framelessness before accepting
48 current register values for fields such as return address. For cfm,
49 use the cached prev_cfm field if available. Add comment to explain
50 PSR logic. Add debug output.
51 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
52 as part of initialization.
53 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
54 calculated. Cache the bsp and cfm values.
55 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
56 instead of using ia64_frame_prev_register() which doesn't expect most
57 registers to be saved. The saved values for bsp and sp
58 can be taken from the cache. Add debug output.
59 (ia64_push_dummy_call): Use frame_id_build_special() to also register
60 the bsp.
61
6cfae0bc
JB
622003-10-23 Jim Blandy <jimb@redhat.com>
63
64 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
65 architecture the current arch can run code for --- but not if it's
66 a superset.
67 (can_run_code_for): New function.
68
fcd182f9
JW
692003-10-22 James E Wilson <wilson@specifixinc.com>
70
71 * MAINTAINERS: Move myself from paper trail section back to write
72 after approval section.
73
4646aa9d
AC
742003-10-22 Andrew Cagney <cagney@redhat.com>
75
76 * exec.h: New file.
77 * win32-nat.c: Include "exec.h".
78 * solib.c: Include "exec.h".
79 * target.h (build_section_table): Delete declaration.
80 * somsolib.c: Include "exec.h".
81 (exec_ops): Delete extern declaration.
82 * rs6000-nat.c: Update copyright. Include "exec.h".
83 (exec_ops): Delete extern declaration.
84 * pa64solib.c: Update copyright. Include "exec.h".
85 (exec_ops): Delete extern declaration.
86 * exec.c: Update copyright. Include "exec.h".
87 * corelow.c: Update dependencies. Include "exec.h".
88 * Makefile.in (exec_h): Define.
89 (exec.o, somsolib.o): Update dependencies.
90 (pa64solib.o, corelow.o): Update dependencies.
91
0088c768
AC
922003-10-22 Andrew Cagney <cagney@redhat.com>
93
94 * target.c: Include "gdb_assert.h" (target_read): Call
95 "target_read_partial", not "target_write_partial".
96 (default_read_partial, default_write_partial): New function.
97 (target_read_partial, target_write_partial): Simplify, assume that
98 there is always a read/write method.
99 (update_current_target, add_target): Always set "to_read_partial"
100 and "to_write_partial".
101 (target_write, target_read): Fail on a zero byte transfer.
102 * Makefile.in (target.o): Update dependencies.
103 * target.h: Update copyright date.
104 (target_object): Fix typo.
105
e2d0e7eb
AC
1062003-10-22 Andrew Cagney <cagney@redhat.com>
107
108 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
109 multi-arch method, add "targ" parameter.
110 (struct target_ops): Declare.
111 * gdbarch.h, gdbarch.c: Re-generate.
112 * Makefile.in (c-valprint.o): Update dependencies.
113 * arch-utils.h: Update copyright.
114 (convert_from_func_ptr_addr_identity): Declare.
115 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
116 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
117 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
118 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
119 * infcall.c (find_function_addr, call_function_by_hand): Update.
120 * c-valprint.c: Include "target.h".
121 (print_function_pointer_address): Update.
122
f1c07ab0
AC
1232003-10-22 Andrew Cagney <cagney@redhat.com>
124
125 * target.c (target_close): New function.
126 (debug_to_close): Use "target_close".
127 (push_target): Use "target_close".
128 (unpush_target): Use "target_close".
129 (pop_target): Use "target_close".
130 * target.h (struct target_ops): Add "to_xclose".
131 (target_open): Delete macro. Move comment to "to_open".
132 (target_close): Replace macro with function that takes a target.
133 * top.c (quit_target): Pass "current_target" to "target_close".
134
5520a790
EZ
1352003-10-21 Elena Zannoni <ezannoni@redhat.com>
136
137 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
138 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
139 * symtab.h (lookup_minimal_symbol_text): Update.
140 * breakpoint.c (create_overlay_event_breakpoint,
141 create_longjmp_breakpoint): Update callers.
142 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
143 * symtab.c (find_pc_sect_line): Ditto.
144
caa92b73
AC
1452003-10-21 Andrew Cagney <cagney@redhat.com>
146
147 * target.c (errno): Delete extern declaration.
148
aa2a9a3c
JJ
1492003-10-20 Jeff Johnston <jjohnstn@redhat.com>
150
151 * ia64-tdep.c: Change all occurrences of
152 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
153 (ia64_frame_prev_register): Minor whitespace change.
154
4beec2b7
MC
1552003-10-20 Michael Chastain <mec@shout.net>
156
157 * config/djgpp/fnchange.lst: Add lines for:
158 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
159 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
160 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
161 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
162 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
163 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
164 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
165
92ad9cd9
AC
1662003-10-20 Andrew Cagney <cagney@redhat.com>
167
168 * values.c (register_value_being_returned): Update comments. Use
169 "gdbarch_return_value" when available.
170 (using_struct_return): Ditto.
171 (set_return_value): Ditto. Use "gdbarch_return_value" when
172 available.. Print a warning, and not an error, when an unhandled
173 return type is encountered.
174 * infcmd.c: Include "gdb_assert.h".
175 (print_return_value): When gdbarch_return_value_p, and using
176 struct return, assume that the value is not available.
177 * defs.h (return_value_convention): Define.
178 * gdbarch.sh (gdbarch_return_value): New predicate method.
179 * gdbarch.h, gdbarch.c: Re-generate
180 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
181
198beae2
AC
1822003-10-20 Andrew Cagney <cagney@redhat.com>
183
184 * symtab.c: Replace "struct sec" with "struct bfd_section".
185 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
186
24d693a6 1872003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
188
189 * config/djgpp/fnchange.lst: Add lines for:
190 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
191 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
192 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
193
21ad8dc3
MK
1942003-10-19 Mark Kettenis <kettenis@gnu.org>
195
196 * amd64fbsd-nat.c (fetch_inferior_registers,
197 store_inferior_registers): Remove functions.
198 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
199
cced5e27
MK
2002003-10-18 Mark Kettenis <kettenis@gnu.org>
201
202 Add NetBSD/amd64 native configuration:
203 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
204 * amd64nbsd-tdep.c: New file.
205 * amd64nbsd-nat.c: New file.
206 * amd64bsd-nat.c: New file.
207 * config/i386/nbsd64.mh: New file.
208 * config/i386/nbsd64.mt: New file.
209 * configure.host: Add x86_64-*-netbsd*.
210 * configure.tgt: Add x86_64-*-netbsd*.
211 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
212 New targets.
213 * NEWS (New native configurations): Mention NetBSD/amd64.
214
666de3fd
MC
2152003-10-17 Michael Chastain <mec@shout.net>
216
217 * config/djgpp/fnchange.lst: Remove dead lines for:
218 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
219 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
220 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
221 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
222 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
223 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
224 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
225 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
226 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
227 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
228 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
229 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
230 gdb/config/sparc/tm-sparclite.h,
231 gdb/gdbtk/generic/ChangeLog-2001,
232 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
233 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
234 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
235 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
236 gdb/testsuite/gdb.mi/mi0-var-block.exp,
237 gdb/testsuite/gdb.mi/mi0-var-child.exp,
238 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
239 gdb/testsuite/gdb.mi/mi0-var-display.exp,
240 itcl/iwidgets3.0.0/demos/extfileselectionbox,
241 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
242 itcl/iwidgets3.0.0/demos/fileselectionbox,
243 itcl/iwidgets3.0.0/demos/fileselectiondialog,
244 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
245 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
246 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
247 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
248 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
249 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
250 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
251 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
252 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
253 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
254 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
255 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
256 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
257 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
258 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
259 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
260 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
261 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
262 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
263 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
264 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
265 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
266 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
267 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
268 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
269 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
270 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
271 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
272 itcl/iwidgets3.0.0/demos/html/shell.n.html,
273 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
274 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
275 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
276 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
277 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
278 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
279 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
280 itcl/iwidgets3.0.0/demos/scrolledcanvas,
281 itcl/iwidgets3.0.0/demos/scrolledframe,
282 itcl/iwidgets3.0.0/demos/scrolledhtml,
283 itcl/iwidgets3.0.0/demos/scrolledlistbox,
284 itcl/iwidgets3.0.0/demos/scrolledtext,
285 itcl/iwidgets3.0.0/demos/selectionbox,
286 itcl/iwidgets3.0.0/demos/selectiondialog,
287 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
288 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
289 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
290 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
291 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
292 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
293 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
294 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
295 itcl/iwidgets3.0.0/doc/scrolledframe.n,
296 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
297 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
298 itcl/iwidgets3.0.0/doc/scrolledtext.n,
299 itcl/iwidgets3.0.0/doc/selectionbox.n,
300 itcl/iwidgets3.0.0/doc/selectiondialog.n,
301 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
302 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
303 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
304 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
305 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
306 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
307 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
308 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
309 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
310 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
311 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
312 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
313 itcl/iwidgets3.0.0/generic/selectionbox.itk,
314 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
315 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
316 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
317 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
318 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
319 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
320 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
321 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
322 itcl/iwidgets3.0.0/tests/scrolledframe.test,
323 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
324 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
325 itcl/iwidgets3.0.0/tests/scrolledtext.test,
326 itcl/iwidgets3.0.0/tests/selectionbox.test,
327 itcl/iwidgets3.0.0/tests/selectiondialog.test,
328 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
329 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
330 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
331 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
332 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
333 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
334 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
335 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
336 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
337 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
338 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
339 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
340 tk/mac/tkMacProjects.sit.hqx.
341
1e3ff5ad
AC
3422003-10-17 Andrew Cagney <cagney@redhat.com>
343
8db32d44
AC
344 * target.c (target_section_by_addr): New function.
345 (do_xfer_memory): Use "target_section_by_addr".
346 * target.h (target_section_by_addr): Declare.
347
1e3ff5ad
AC
348 * target.h (struct target_ops): Add "to_read_partial" and
349 "to_write_partial", delete "to_query".
350 (target_read_partial, target_write_partial): Declare.
351 (target_read, target_write): Declare.
352 (target_query): Delete macro.
353 * target.c (target_read_partial): New function.
354 (target_write_partial, target_read, target_write): New function.
355 (update_current_target): Delete inheritance of "to_query". Add
356 comments about "to_read_partial" and "to_write_partial".
357 (debug_to_partial_read, debug_to_partial_write): New functions.
358 (debug_to_query): Delete function.
359 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
360 instead of "to_query".
361 * remote.c (remote_read_partial): Replace "remote_query".
362 (init_remote_ops): Set "to_read_partial" instead of "to_query".
363 (init_remote_async_ops): Ditto.
364 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
365 "target_read_partial" instead of "target_query".
366 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
367 Use "target_read_partial" instead of "target_query".
368
48c66725
JJ
3692003-10-17 Jeff Johnston <jjohnstn@redhat.com>
370
371 * frame.h (struct frame_id): Add new field: special_addr.
372 (frame_id_build_special): New prototype.
373 * frame.c (frame_id_build_special): New function.
374 (frame_id_build): Change to call frame_id_build_special().
375 (frame_id_eq): Change to also test special_addr field.
376 (frame_id_inner): Update comment.
377
7998dfc3
AC
3782003-10-17 Andrew Cagney <cagney@redhat.com>
379
380 * target.c (update_current_target): Perform the target cleanup.
381 Put the target stack beneath the squashed "current_target".
382 (add_target): Delete disabled call to "cleanup_target".
383 (cleanup_target): Delete function.
384 (push_target, unpush_target): Do not call "cleanup_target".
385
9c04404e 3862003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
387
388 * target.c (target_stack): Change to a static target_ops.
389 (update_current_target): Walk the "struct target_ops" stack.
390 (pop_target, do_xfer_memory, target_info): Ditto.
391 (find_target_beneath): Ditto.
392 (push_target): Rewrite to use the "struct target_ops" stack.
393 (unpush_target): Ditto.
394 * target.h (struct target_stack_item): Delete definition.
395 (target_stack): Delete declaration.
396 (struct target_ops): Add field "beneath".
397
c98a2b49 3982003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
399
400 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
401 declaration.
402 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
403 (h8300_examine_prologue): Use h8300_normal_mode flag
404 (h8300_gdbarch_init): Set architecture info for normal mode
405
506fb367
DJ
4062003-10-16 Daniel Jacobowitz <drow@mvista.com>
407
408 * remote.c (remote_protocol_vcont): New variable.
409 (set_remote_protocol_vcont_packet_cmd): New function.
410 (show_remote_protocol_vcont_packet_cmd): New function.
411 (init_all_packet_configs): Handle remote_protocol_vcont.
412 (remote_vcont_probe): New function.
413 (remote_vcont_resume): New function.
414 (remote_resume): Use it.
415 (remote_async_resume): Call remote_resume.
416 (_initialize_remote): Add verbose-resume packet commands.
417
65815ea1
AC
4182003-10-16 Andrew Cagney <cagney@redhat.com>
419
420 * infrun.c (handle_inferior_event): Add comment about
421 "frame_id_inner" being too weak.
422
40324f1b
EZ
4232003-10-16 Elena Zannoni <ezannoni@redhat.com>
424
425 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
426 second parameter, which is always null. Remove
427 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
428 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
429 accordingly.
430 * somsolib.c (som_solib_create_inferior_hook,
431 som_solib_desire_dynamic_linker_symbols): Update callers.
432 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
433
4342003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
435
436 * remote-m32r-sdi.c : New file, interface to m32r on-chip
437 debug interface, SDI (Scalable Debug Interface).
438 * NEWS: Mention m32r SDI protocol was supported.
439 * Makefile.in (remote-m32r-sdi.o): Add build rule.
440 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
441
51931cbb
JJ
4422003-10-15 Jeff Johnston <jjohnstn@redhat.com>
443
444 * ia64-linux-tdep.c: Include gdbcore.h.
445 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
446 (ia64_linux_sigcontext_register_addr): Find the address of the
447 sigcontext area stored in the sigframe instead of using
448 a magic offset constant.
449
84e7fd53
AC
4502003-10-15 Andrew Cagney <cagney@redhat.com>
451
452 * remote.c (remote_search): Delete function.
453 * target.h (target_search): Delete disabled macro.
454 (struct target_ops): Delete disabled field "to_search".
455
0f4d7c52
KB
4562003-10-14 Kevin Buettner <kevinb@redhat.com>
457
458 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
459 instead of deprecated_inside_entry_file().
460
2e952408
CV
4612003-10-14 Corinna Vinschen <vinschen@redhat.com>
462
463 * sh-tdep.c: Fix copy/paste hangover in comment.
464 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
465 mode.
466 (sh3e_sh4_extract_return_value): Ditto.
467
7e86466e
RH
4682003-10-13 Richard Henderson <rth@redhat.com>
469
470 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
471 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
472 match c_val_print a bit closer.
473
46a16dba
KB
4742003-10-13 Kevin Buettner <kevinb@redhat.com>
475
476 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
477 (frv_gdbarch_adjust_breakpoint_address): New function.
478 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
479 method.
480
76897487
KB
4812003-10-13 Kevin Buettner <kevinb@redhat.com>
482
483 * breakpoint.h (struct breakpoint): Add new member
484 ``requested_address''.
485 * breakpoint.c (breakpoint_adjustment_warning)
486 (adjust_breakpoint_address): New static functions.
487 (print_it_typical): Issue warning if breakpoint's address is different
488 from its requested address.
489 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
490 (breakpoint_re_set_one): Set breakpoint's
491 ``requested_address'' field. Set ``address'' field to the
492 result of calling adjust_breakpoint_address() on the requested
493 address.
494
a1131521
KB
4952003-10-13 Kevin Buettner <kevinb@redhat.com>
496
497 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
498 * gdbarch.h, gdbarch.c: Regenerate.
499
6ce6d90f
MK
5002003-10-11 Mark Kettenis <kettenis@gnu.org>
501
155c1d33
MK
502 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
503 TDEP->sc_num_regs.
504
8a96bc77
MK
505 * i386fbsd-tdep.c: New file.
506 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
507 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
508 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
509 i386bsd-tdep.c.
510 (_initialize_i386fbsd_tdep): New function.
511 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
512 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
513 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
514 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
515 TDEP->sc_num_regs.
516 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
517 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
518 to initialize TDEP->sc_num_regs.
519 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
520 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
521 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
522 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
523 FreeBSD ELF OS/ABI's here.
524 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
525 (i386fbsd-tdep.o): New target.
526 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
527 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
528
477f40d1
MK
529 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
530 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
531 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
532 in initialization of TDEP->sc_num_regs.
533
c6b33596
MK
534 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
535 (x86_64_init_abi): Initialize regset_from_core_section if
536 appropriate.
537
8446b36a
MK
538 * i386-tdep.c (i386_regset_from_core_section): New function.
539 (i386_gdbarch_init): Initialize regset_from_core_section if
540 appropriate.
541 * i386-tdep.h (i386_regset_from_core_section): New declaration.
542
c783cbd6
MK
543 * i386-tdep.h (struct regset): Declare opaque.
544
6ce6d90f
MK
545 * gdbarch.sh (regset_from_core_section): New method.
546 (struct regset): Declare opaque.
547 * gdbarch.c, gdbarch.h: Regenerated.
548
b98ed7be
AM
5492003-10-11 Alan Modra <amodra@bigpond.net.au>
550
551 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
552 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
553 Correct test for pc within section.
554
f6214256
MK
5552003-10-11 Mark Kettenis <kettenis@gnu.org>
556
557 * gdbarch.sh: Remove trailing whitepsace from comments.
558
a8f4cde1
RM
5592003-10-08 Roland McGrath <roland@redhat.com>
560
561 * gcore.c (make_mem_sec): Function removed, folded into ...
562 (gcore_create_callback): ... here. To omit a section, clear its
563 SEC_LOAD bit rather than zeroing its size.
564 Omit read-only sections only if they correspond to a known disk file.
565 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
566
74276724
MS
5672003-10-10 Michael Snyder <msnyder@redhat.com>
568
569 * d10v-tdep.c: Fix typo in comment.
570
e754ae69
AC
5712003-10-10 Andrew Cagney <cagney@redhat.com>
572
573 * rs6000-tdep.c (e500_store_return_value): Delete function.
574 (e500_extract_return_value): Delete function.
575 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
576 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
577 "ppc_sysv_abi_restore_return_value" where applicable.
578 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
579 (ppc_sysv_abi_extract_return_value): Declare.
580 (ppc_sysv_abi_broken_store_return_value): Declare.
581 (ppc_sysv_abi_broken_extract_return_value): Declare.
582 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
583 * ppc-sysv-tdep.c (return_value_convention): Move definition to
584 start of file.
585 (do_ppc_sysv_return_value): New function.
586 (ppc_sysv_abi_extract_return_value): New function.
587 (ppc_sysv_abi_store_return_value): New function.
588 (ppc_sysv_abi_broken_extract_return_value): New function.
589 (ppc_sysv_abi_broken_store_return_value): New function.
590 (ppc_sysv_abi_use_struct_convention): Call
591 do_ppc_sysv_return_value.
592
8d4ce20a
JB
5932003-10-10 J. Brobecker <brobecker@gnat.com>
594
595 * blockframe.c (inside_main_func): No longer use symbol_lookup()
596 to lookup the main function symbol.
597
afce3d2a
CV
5982003-10-10 Corinna Vinschen <vinschen@redhat.com>
599
600 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
601 types correctly.
602 (sh_push_dummy_call_fpu): Fix argument passing rules.
603 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
604 float types.
605 (sh3e_sh4_store_return_value): Ditto.
606
7fe958be
EZ
6072003-10-10 Elena Zannoni <ezannoni@redhat.com>
608
609 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
610 comment.
611
3f997a97
CV
6122003-10-10 Corinna Vinschen <vinschen@redhat.com>
613
614 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
615 more readable code. Accomodate passing of bitfields.
616
8be9034a
AC
6172003-10-10 Andrew Cagney <cagney@redhat.com>
618
619 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
620 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
621 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
622 * ppc-sysv-tdep.c: Include "gdb_assert.h".
623 (ppc64_sysv_abi_push_dummy_call): New function.
624 (ppc64_sysv_abi_broken_push_dummy_call): New function.
625 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
626 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
627
85a453d5
KI
6282003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
629
630 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
631 * README: Ditto.
632 * d10v-tdep.c: Ditto.
633 * h8300-tdep.c: Ditto.
634 * remote-e7000.c: Ditto.
635 * remote-hms.c: Ditto.
636 * ser-e7kpc.c: Ditto.
637 * sh-stub.c: Ditto.
638 * sh-tdep.c: Ditto.
639 * sh-tdep.h: Ditto.
640 * sh3-rom.c: Ditto.
641 * sh64-tdep.c: Ditto.
642 * top.c: Ditto.
643 * wince.c: Ditto.
644 * config/d10v/d10v.mt: Ditto.
645 * config/sh/embed.mt: Ditto.
646 * config/sh/linux.mt: Ditto.
647 * config/sh/tm-linux.h: Ditto.
648 * config/sh/tm-sh.h: Ditto.
649 * config/sh/wince.mt: Ditto.
650
221c12ff
AC
6512003-10-09 Andrew Cagney <cagney@redhat.com>
652
653 * ppc-tdep.h (struct type): Declare opaque.
654 * x86-64-tdep.h (struct regcache): Declare opaque.
655 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
656 coding style.
657
ef5200c1
AC
6582003-10-09 Andrew Cagney <cagney@redhat.com>
659
660 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
661 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
662 (SOFTWARE_SINGLE_STEP_P): Ditto.
663 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
664 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
665 (SOFTWARE_SINGLE_STEP_P): Ditto.
666 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
667 software_single_step to rs6000_software_single_step.
a8f4cde1 668
9644bbdd
AC
6692003-10-09 Andrew Cagney <cagney@redhat.com>
670
671 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
672
db72fa6b
MS
6732003-10-09 Michael Snyder <msnyder@redhat.com>
674
f3efb16c
MS
675 * frame.h: Fix typo in comment.
676 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
677 * d10v-tdep.c: Random whitespace/comment tweaks.
678
9a5cef92
EZ
6792003-10-09 Elena Zannoni <ezannoni@redhat.com>
680
681 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 682 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 683 on stack.
a8f4cde1 684
9a5cef92
EZ
685 Based on input by Stephen Clarke (stephen.clarke@superh.com):
686 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
687 in detail.
a8f4cde1 688
0f317a0c
DJ
6892003-10-09 Daniel Jacobowitz <drow@mvista.com>
690
691 * remote-mips.c (mips_initialize): Remove unneeded call to
692 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
693
bbab2f46
DJ
6942003-10-09 Daniel Jacobowitz <drow@mvista.com>
695
696 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
697 a memory pointer.
698
550950b8
JJ
6992003-10-08 Jeff Johnston <jjohnstn@redhat.com>
700
701 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
702 for any lwp we resume.
703 (running_callback): Add lwps that have pending status events
704 against them to be considered running.
705
15c69bc7
KI
7062003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
707
708 * m32r-tdep.c : Include "dis-asm.h".
709 * Makefile.in (m32r-tdep.o): Update dependencies.
710
51065942
JB
7112003-10-06 J. Brobecker <brobecker@gnat.com>
712
713 * completer.h (get_gdb_completer_word_break_characters): Delete.
714 * completer.c: include language.h.
715 (gdb_completer_word_break_characters): Delete.
716 (get_gdb_completer_word_break_characters): Delete.
717 (location_completer): Use the word break characters of the current
718 language.
719 (complete_line): Likewise.
720 (line_completion_function): Likewise.
721 (skip_quoted_chars): Likewise.
722 * Makefile.in (completer.o): Add dependency on language.h.
723 * top.c (init_main): Set the readline word break characters
724 to GDB's default word break characters.
725
6084f43a
JB
7262003-10-06 J. Brobecker <brobecker@gnat.com>
727
728 * language.h (language_defn): new field, la_word_break_characters.
729 * language.c (unknown_language_defn): Set new field to
730 default_word_break_characters.
731 (auto_language_defn): Likewise.
732 (local_language_defn): Likewise.
733 * ada-lang.c (ada_language_defn): Likewise.
734 * c-lang.c (c_language_defn): Likewise.
735 (cplus_language_defn): Likewise.
736 (asm_language_defn): Likewise.
737 (minimal_language_defn): Likewise.
738 * f-lang.c (f_language_defn): Likewise.
739 * jv-lang.c (java_language_defn): Likewise.
740 * m2-lang.c (m2_language_defn): Likewise.
741 * objc-lang.c (objc_language_defn): Likewise.
742 * p-lang.c (pascal_language_defn): Likewise.
743 * scm-lang.c (scm_language_defn): Likewise.
744
944fcfab
AC
7452003-10-06 Andrew Cagney <cagney@redhat.com>
746
747 * ppc-sysv-tdep.c: Re-indent.
748
9f0a5303
JB
7492003-10-06 J. Brobecker <brobecker@gnat.com>
750
751 * language.h (default_word_break_characters): Add prototype.
752 * language.c (default_word_break_characters): New function.
753
7270b6ed
AS
7542003-10-06 Andreas Schwab <schwab@suse.de>
755
756 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
757 with %eax.
758
a5d61f66
AC
7592003-10-06 Andrew Cagney <cagney@redhat.com>
760
761 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
762 "h8500-tdep.c".
763 (z8k-tdep.o): Delete custom build rule.
764
28a86f5c
AC
7652003-10-06 Andrew Cagney <cagney@redhat.com>
766
1bfd8a83
AC
767 * Makefile.in: Update all dependencies.
768
17144ef8
AC
769 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
770 No longer list PA as as obsolete candidate. List m32r as
771 broken instead of obsolete.
a8f4cde1 772
a5679ae5
AC
773 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
774 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
775 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
776 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
777 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
778 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
779 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
780 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
781 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
782 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
783 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
784 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
785 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
786 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
787 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
788 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
789 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
790 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
791 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
792 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
793 * config/z8k/z8k.mt: Ditto.
794
4a8269c0
AC
795 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
796 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
797 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
798 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
799 sparclite were removed.
800 * configure.host, configure.tgt: Remove corresponding tuples.
801
41989fcd
AC
802 * breakpoint.c, breakpoint.h: Remove obsolete code.
803 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
804 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
805 * stabsread.h, xcoffread.c: Ditto.
806
28a86f5c
AC
807 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
808 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
809 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
810 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
811
4efdaa0d
DL
8122003-10-06 David Lecomber <dsl@sources.redhat.com>
813
814 * f-valprint.c: Reformatting
815
ae53de43
MK
8162003-10-06 Mark Kettenis <kettenis@gnu.org>
817
a8bb57e7
MK
818 * x86-64-tdep.c: Remove duplicate comment.
819
ae53de43
MK
820 * x86-64-tdep.c (x86_64_store_return_value): Don't use
821 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
822 names for return values. This fixes a bug since we looked at %rbx
823 instead of %rdx.
824
473f17b0
MK
8252003-10-05 Mark Kettenis <kettenis@gnu.org>
826
2c261fae
MK
827 * x86-64-tdep.c: Include "regset.h".
828
473f17b0
MK
829 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
830 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
831 sizeof_fpregset.
832 * i386-tdep.c: Include "regset.h".
833 (i386_supply_gregset): New function.
834 (i386_supply_fpregset): New function.
835 (i386_gdbarch_init): Initialze register set-related members of
836 TDEP.
837 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
838 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
839
afd48b75
AC
8402003-10-03 Andrew Cagney <cagney@redhat.com>
841
842 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
843 set extract_return_value, store_return_value and
844 use_struct_convention to ppc64_sysv_abi_extract_return_value,
845 ppc64_sysv_abi_store_return_value and
846 ppc64_sysv_abi_use_struct_convention.
847 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
848 (ppc64_sysv_abi_store_return_value): Declare.
849 (ppc64_sysv_abi_use_struct_convention): Declare.
850 * ppc-sysv-tdep.c (enum return_value_convention): Define.
851 (ppc64_sysv_abi_extract_return_value): New function.
852 (ppc64_sysv_abi_store_return_value): New function.
853 (ppc64_sysv_abi_use_struct_convention): New function.
854 (ppc64_sysv_abi_return_value): New function.
855
9b540880
AC
8562003-10-03 Andrew Cagney <cagney@redhat.com>
857
858 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
859 convert a descriptor to a function when it's in the ".opd"
860 section.
861
8748518b
CV
8622003-10-03 Corinna Vinschen <vinschen@redhat.com>
863
864 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
865 reg_size to keep GCC silent.
866
0fd85043
CV
8672003-10-03 Corinna Vinschen <vinschen@redhat.com>
868
869 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
870 base for DW_EH_PE_textrel encodings.
871 (read_encoded_value): Add a DW_EH_PE_textrel case.
872 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
873 section.
874
37b517aa
MK
8752003-10-03 Mark Kettenis <kettenis@gnu.org>
876
877 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
878
12c266ea
AC
8792003-10-02 Andrew Cagney <cagney@redhat.com>
880
881 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
882 REGISTER_RAW_SIZE.
883 * gdbarch.h, gdbarch.c: Re-generate.
884 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
885 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
886 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
887 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
888 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
889 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
890 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
891 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
892 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
893 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
894 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
895 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
896 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
897 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
898 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
899 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 900
78ba4af6
JB
9012003-10-02 Jim Blandy <jimb@redhat.com>
902
903 * dwarf2read.c (struct die_info): Doc fix.
904
617daa0e
CV
9052003-10-02 Corinna Vinschen <vinschen@redhat.com>
906
907 * sh-tdep.c: Running thru gdb_indent.sh.
908
e5e33cd9
CV
9092003-10-02 Corinna Vinschen <vinschen@redhat.com>
910
911 * sh-tdep.c (sh_justify_value_in_reg): New function.
912 (sh_stack_allocsize): Ditto.
913 (flt_argreg_array): New array used for floating point argument
914 passing.
915 (sh_init_flt_argreg): New function.
a8f4cde1 916 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
917 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
918 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
919 Fix argument passing strategy.
920 (sh_push_dummy_call_nofpu): Ditto.
921
5fe830e4
AC
9222003-10-01 Andrew Cagney <cagney@redhat.com>
923
924 * value.h (register_value_being_returned): Declare. Replace
925 "value_being_returned".
926 * infcall.c (call_function_by_hand): Use
927 register_value_being_returned.
928 * infcmd.c (print_return_value): Call
929 "register_value_being_returned", handle struct return locally.
930 * values.c (register_value_being_returned): New function. Replace
931 "value_being_returned".
a8f4cde1 932
5fe830e4 9332003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
934
935 * linux-proc.c (linux_do_registers): New function.
936 (linux_make_note_section): Use linux_do_registers in case of
937 single threaded inferior programs.
938
64f395bf
AC
9392003-10-01 Andrew Cagney <cagney@redhat.com>
940
941 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
942 use STRUCT_ADDR. When not using "struct return convention", pass
943 "0" to "value_being_returned". Add FIXMEs.
944 * infcmd.c (print_return_value): Pass an explicit 0/1 to
945 value_being_returned. Add comments.
946 * values.c (value_being_returned): Add fixme.
947 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
948 (hppa_value_returned_from_stack): Add FIXME.
949
639d11d3
DC
9502003-09-30 David Carlton <carlton@kealia.com>
951
952 * dwarf2read.c (struct die_info): Add 'parent' field; replace
953 'has_children' and 'next' by 'child' and 'sibling'.
954 (read_comp_unit): Rework algorithm, breaking body into
955 read_die_and_children and read_die_and_siblings.
956 (read_die_and_children, read_die_and_siblings): New.
957 (read_full_die): Add 'has_children' argument; set it instead of
958 the die's 'has_children' field. Minor formatting cleanup.
959 (free_die_list): Use die->child and die->sibling instead of
960 die->next.
961 (dump_die_list): Ditto.
962 (sibling_die): Use die->sibling.
963 (psymtab_to_symtab_1): Use die's 'child' field in place of its
964 'has_children' and 'next' fields.
a8f4cde1
RM
965 (process_die, read_file_scope, read_func_scope)
966 (read_lexical_block_scope, read_structure_scope)
967 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
968 (read_namespace, read_subroutine_type, dump_die): Ditto.
969
5bffac25
AC
9702003-09-30 Andrew Cagney <cagney@redhat.com>
971
972 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
973 to 224, not 220.
974
f30992d4
AC
9752003-09-30 Andrew Cagney <cagney@redhat.com>
976
977 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
978 REGISTER_VIRTUAL_SIZE.
979 * gdbarch.h, gdbarch.c: Regenerate.
980 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
981 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
982 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
983
2e092625
AC
9842003-09-29 Andrew Cagney <cagney@redhat.com>
985
986 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
987 DEPRECATED_REGISTER_VIRTUAL_TYPE.
988 * gdbarch.h, gdbarch.c: Regenerate.
989 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
990 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
991
992 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
993 * remote-vxmips.c (vx_read_register): Ditto.
994 * remote-vx68.c (vx_read_register): Ditto.
995 * gnu-nat.c (inf_validate_procs): Ditto.
996
7a5dd6ee
JB
9972003-09-29 J. Brobecker <brobecker@gnat.com>
998
999 * infcall.c (call_function_by_hand): Fix build failure
1000 introduced in the previous change to this file.
1001
1fe43d45
AC
10022003-09-29 Andrew Cagney <cagney@redhat.com>
1003
1004 * NEWS: Mention Objective-C.
1005
e28a332c
JG
10062003-09-29 Jerome Guitton <guitton@act-europe.fr>
1007
1008 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1009 test if the register has been saved on the stack.
1010 (arm_scan_prologue_cache): When analysing the instruction
1011 "str lr, [sp, #-4]", save the address where lr has been stored.
1012
9ff63c35
AC
10132003-09-28 Andrew Cagney <cagney@redhat.com>
1014
7f5f525d
AC
1015 * frame.c (frame_read_unsigned_register): Delete function.
1016 * frame.h (frame_read_unsigned_register): Delete declaration.
1017 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1018 get_frame_register_unsigned.
1019 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1020 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1021 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1022
7f5f525d
AC
1023 * frame.h (frame_read_register): Delete declaration.
1024 * frame.c (frame_read_register): Delete function.
1025 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1026 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1027 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1028 * mips-tdep.c (mips_register_to_value): Ditto.
1029 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1030 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1031
1032 * frame.c (frame_read_signed_register): Delete function.
1033 (frame_read_unsigned_register): Update comments.
1034 * frame.h (frame_read_signed_register): Delete declaration.
1035 * h8300-tdep.c (h8300_print_register): Use
1036 get_frame_register_signed.
1037 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1038
9ff63c35
AC
1039 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1040 Rename VALUE_RETURNED_FROM_STACK.
1041 * infcmd.c (print_return_value): Update.
1042 * infcall.c (call_function_by_hand): Update.
1043
41d041d6
MK
10442003-09-28 Mark Kettenis <kettenis@gnu.org>
1045
1046 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1047 regcache argument and reverse the order of the other two
1048 arguments. Remove local regcache variable. Determine
1049 architecture from REGCACHE. Update comments.
1050 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1051 reverse the order of the other two arguments. Remove local
1052 regcache variable. Determine architecture from REGCACHE. Update
1053 comments.
1054 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1055 prototypes. Update comments.
1056 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1057 comment.
1058 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1059 Update.
1060 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1061 * i386-interix-nat.c (supply_fpregset): Update.
1062 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1063 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1064 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1065 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1066 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1067 Update.
1068 * i386obsd-tdep.c (fetch_core_registers): Update.
1069 * i386v4-nat.c (supply_fpregset): Update.
1070 * x86-64-linux-nat.c (supply_fpregset): Update.
1071 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1072
1cb97e17
MK
10732003-09-27 Mark Kettenis <kettenis@gnu.org>
1074
5716833c
MK
1075 * i386-tdep.h: Put opaque declarations in alphabetical
1076 order. Remove spurious whitespace.
1077 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1078 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1079 * i386-tdep.c (MM0_REGNUM): Remove define.
1080 (i386_mmx_regnum_p): Add gdbarch argument.
1081 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1082 Rewrite using new macro definitions for FPU/SSE registers.
1083 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1084 definitions from i387-tdep.h.
1085 (i386_register_name): Update.
1086 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1087 new macro definitions for FPU/SSE registers.
1088 (i386_extract_return_value): Determine whether floating-point
1089 registers are present by examining REGCACHE's architecture.
1090 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1091 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1092 FPU/SSE registers.
1093 (i386_register_type): Update.
1094 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1095 definitions for FPU registers. Use REGCACHE's architecture to
1096 determine the appropriate register numbers.
1097 (i386_pseudo_register_read, i386_pseudo_register_write,
1098 i386_register_reggroup_p): Update.
1099 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1100 TDEP->mm0_regnum.
1101 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1102 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1103 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1104 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1105 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1106 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1107 *' to `void *'.
1108 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1109 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1110 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1111 definitions for FPU/SSE registers.
1112 (FXSAVE_MXCSR_ADDR): New define.
1113 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1114 TDEP->mm0_regnum.
1115 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1116 (I387_ST0_REGNUM): Define.
1117
41d35cb0
MK
1118 * regcache.h (get_regcache_arch): New prototype.
1119 * regcache.c (get_regcache_arch): New function.
1120
54e74f72
MK
1121 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1122 whitespace.
1123
1cb97e17
MK
1124 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1125 Initialize using ARRAY_SIZE.
1126
0968aa8c
AC
11272003-09-27 Andrew Cagney <cagney@redhat.com>
1128
1129 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1130 "init_frame_pc_default".
1131 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1133 * vax-tdep.c (vax_gdbarch_init): Update.
1134 * v850-tdep.c (v850_gdbarch_init): Update.
1135 * sh64-tdep.c (sh64_gdbarch_init): Update.
1136 * s390-tdep.c (s390_gdbarch_init): Update.
1137 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1138 * mcore-tdep.c (mcore_gdbarch_init): Update.
1139 * h8300-tdep.c (h8300_gdbarch_init): Update.
1140 * cris-tdep.c (cris_gdbarch_init): Update.
1141 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1142
54c84734
MK
11432003-09-26 Mark Kettenis <kettenis@gnu.org>
1144
1145 * regset.h: New file.
1146 * Makefile.in (regset_h): Add.
1147
1b1d3794
AC
11482003-09-25 Andrew Cagney <cagney@redhat.com>
1149
1150 * frame.h (deprecated_frame_saved_regs): Rename
1151 get_frame_saved_regs.
1152 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1153 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1154 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1155 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1156 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1157
e6beb428
AC
11582003-09-25 Andrew Cagney <cagney@redhat.com>
1159
1160 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1161 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1162 and Java.
1163 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1164 arm*-*-* do not use the new frame code.
1165
710122da
DC
11662003-09-25 David Carlton <carlton@kealia.com>
1167
1168 * c-exp.y: Remove 'register' declarations.
1169 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1170
79c2c32d
DC
11712003-09-25 David Carlton <carlton@kealia.com>
1172
1173 * c-exp.y: Include cp-support.h. Add qualified_type.
1174 (yylex): Delete nested type hack; add comments.
1175 * cp-namespace.c (cp_lookup_nested_type): New function.
1176 * cp-support.h: Declare cp_lookup_nested_type.
1177 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1178 instead of value_struct_elt_for_reference.
1179 * valops.c: Include cp-support.h.
1180 (value_aggregate_elt): New function.
1181 (value_namespace_elt): Ditto.
1182 (value_struct_elt_for_reference): Make static.
1183 * value.h: Delete declaration of value_struct_elt_for_reference;
1184 add declaration for value_aggregate_elt.
1185 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1186 (valops.o): Ditto.
1187
898c62f5
DJ
11882003-09-25 Daniel Jacobowitz <drow@mvista.com>
1189
1190 * stack.c: Include "reggroups.h".
1191 (frame_info): Only display registers in all_reggroup.
1192 * Makefile.in (stack.o): Update dependencies.
1193
28cd8767
JG
11942003-09-25 Jerome Guitton <guitton@act-europe.fr>
1195
1196 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1197 "add ip, sp #n" in the prologue.
1198 (arm_scan_prologue): Ditto.
1199
a4ab2b5d
JG
12002003-09-25 Jerome Guitton <guitton@act-europe.fr>
1201
1202 * MAINTAINERS (write after approval): Add myself.
1203
3f244638
AS
12042003-09-25 Andreas Schwab <schwab@suse.de>
1205
1206 * m68k-tdep.c: Include "dwarf2-frame.h".
1207 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1208 * Makefile.in (m68k-tdep.o): Update dependencies.
1209
1c0159e0
CV
12102003-09-25 Corinna Vinschen <vinschen@redhat.com>
1211
1212 * sh-tdep.c (struct frame_extra_info): Remove.
1213 (struct sh_frame_cache): New structure.
1214 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1215 (GET_TARGET_REG): Ditto but target register.
1216 (GET_PUSHED_REG): Remove.
1217 (IS_MOV_ARG_TO_REG): New macro.
1218 (IS_MOV_ARG_TO_IND_R14): New macro.
1219 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1220 (IS_MOVW_PCREL_TO_REG): New macro.
1221 (IS_MOVL_PCREL_TO_REG): New macro.
1222 (IS_SUB_REG_FROM_SP): New macro.
1223 (IS_ARG_MOV): Remove.
1224 (IS_MOV_TO_R14): Remove.
1225 (IS_RESTORE_FP): New macro.
1226 (IS_RTS): New macro.
1227 (IS_LDS): New macro.
1228 (IS_MOV_FP_SP): New macro.
1229 (IS_ADD_REG_TO_FP): New macro.
1230 (IS_ADD_IMM_FP): New macro.
1231 (sh_skip_prologue_hard_way): Remove.
1232 (sh_saved_pc_after_call): Remove.
1233 (sh_frame_chain): Remove.
1234 (sh_find_callers_reg): Remove.
a8f4cde1 1235 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1236 (sh_fp_frame_init_saved_regs): Remove.
1237 (sh_init_extra_frame_info): Remove.
1238 (sh_analyze_prologue): New function.
1239 (sh_skip_prologue): Remove deprecated code. Rely on new function
1240 sh_analyze_prologue when after_prologue fails.
1241 (sh_frame_saved_pc): Remove.
1242 (sh_alloc_frame_cache): New function.
1243 (sh_frame_cache): Ditto.
1244 (sh_frame_prev_register): Ditto.
1245 (sh_frame_this_id): Ditto.
1246 (sh_frame_unwind): New structure defining the heuristic frame
1247 sniffer interface.
1248 (sh_frame_sniffer): New function.
1249 (sh_unwind_sp): Ditto.
1250 (sh_unwind_pc): Ditto.
1251 (sh_unwind_dummy_id): Ditto.
1252 (sh_frame_base_address): Ditto.
1253 (sh_frame_base): New structure defining new frame base code.
1254 (sh_in_function_epilogue_p): New function.
1255 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1256 code and to call all new code instead. Initialize dwarf2 and
1257 heuristic frame sniffer.
1258
5f9769d1
PH
12592003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1260
a8f4cde1
RM
1261 * parser-defs.h (struct exp_descriptor): New definition, containing
1262 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1263 evaluating expressions.
1264 (exp_descriptor_standard): Declare new variable.
1265 (print_subexp): Make global and declare here (from expprint.c).
1266 (dump_subexp): Ditto.
1267 (dump_subexp_body_standard): Declare.
1268 (operator_length_standard): Declare.
1269 (op_name_standard): Declare.
1270 (print_subexp): Declare.
1271 (print_subexp_standard): Declare.
1272
1273 * language.h (struct language_defn): Add la_exp_desc field to hold
1274 pointer to table for language-specific operators.
1275 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1276
1277 * parse.c (operator_length): Move most code to new
5f9769d1 1278 operator_length_standard function. Use language-specific information.
a8f4cde1 1279 (operator_length_standard): New function taking most code from
5f9769d1
PH
1280 operator_length.
1281 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1282
1283 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1284 and OP_EXTENDED_LAST.
a8f4cde1
RM
1285
1286 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1287 Make global; remove static declaration.
1288 Move most code to print_subexp_standard.
a8f4cde1 1289 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1290 print_subexp.
1291 (op_name): Add expression to argument signature.
a8f4cde1 1292 Use langauge-specific op_name.
5f9769d1
PH
1293 Move most code to op_name_standard.
1294 (op_name_standard): New function, containing code formerly in op_name.
1295 (dump_subexp): Use new version of op_name function.
1296 Use language-specific dump_subexp_body, and move most existing code to
1297 dump_subexp_body_standard.
1298 (dump_raw_expression): Use new op_name interface.
1299 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1300 (dump_subexp_body_standard): New function, containing code formerly
1301 in dump_subexp_body.
a8f4cde1 1302
5f9769d1
PH
1303 * language.c (unknown_language): Add default la_exp_desc field and
1304 remove evaluate_exp field.
1305 (auto_language): Ditto.
1306 (local_language): Ditto.
1307 * f-lang.c (f_language_defn): Ditto.
1308 * c-lang.c (c_language_defn): Ditto.
1309 (cplus_language_defn): Ditto.
1310 (asm_language_defn): Ditto.
1311 (minimal_language_defn): Ditto.
1312 * p-lang.c (pascal_language_defn): Ditto.
1313 * m2-lang.c (m2_language_defn): Ditto.
1314 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1315
1316 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1317 Java-specific expression evaluator.
1318 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1319 field.
a8f4cde1 1320 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1321 Scheme-specific expression evaluator.
1322 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1323 field.
1324 * objc-lang.c (print_object_command): Take evaluate_exp from the
1325 la_exp_desc field.
a8f4cde1 1326
5f9769d1 1327 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1328
1329 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1330 la_exp_desc's type.
1331 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1332
24daaebc
PH
13332003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1334
1335 * parser-defs.h (operator_length): Declare.
a8f4cde1 1336
24daaebc
PH
1337 * parse.c (length_of_subexp): Use operator_length to get operator
1338 lengths and arities for operators.
1339 Move most code to new operator_length function.
a8f4cde1 1340 (operator_length): New function absorbing most code from
24daaebc
PH
1341 length_of_subexp.
1342 (prefixify_subexp): Remove large case and use operator_length instead.
1343 (parse_exp_1): Use renamings:
a8f4cde1 1344 dump_prefix_expression => dump_raw_expression and
24daaebc 1345 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1346
24daaebc
PH
1347 * expression.h (dump_prefix_expression): Rename to ...
1348 (dump_raw_expression): New name.
1349 (dump_postfix_expression): Rename to ...
1350 (dump_prefix_expression): New name.
a8f4cde1 1351
24daaebc
PH
1352 * expprint.c (dump_subexp): Make global. Add comment.
1353 Move most existing code to dump_subexp_body.
1354 (dump_subexp_body): New function.
1355 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1356 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1357 work before the expression is prefixified.
1358 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1359 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1360 that's what it does.
a8f4cde1 1361 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1362 prefixified expression.
1363 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1364
8c2957c4
JB
13652003-09-22 Jim Blandy <jimb@redhat.com>
1366
1367 * dwarf2read.c (read_array_type): When building the type for an
1368 array of unspecified length, make sure to choose the upper bound
1369 so that the array's total length comes out to be zero --- that's
1370 how we represent such arrays.
1371
592e3010
MC
13722003-09-22 Michael Chastain <mec@shout.net>
1373
1374 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1375
365c70b1
JJ
13762003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1377
1378 * top.c (quit_force): Fix indirect call to quit_target so
1379 a struct qt_args pointer is passed.
1380
5d6eb653
AC
13812003-09-22 Andrew Cagney <cagney@redhat.com>
1382
1383 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1384 * arch-utils.c (init_frame_pc_noop): Delete function.
1385 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1386 "init_frame_pc".
1387 * mips-tdep.c (mips_gdbarch_init): Ditto.
1388 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1389 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1390 declaration.
1391 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1392 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1393 declaration.
1394 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1395
b222a67f
AG
13962003-09-22 Anthony Green <green@redhat.com>
1397
1398 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1399 declaration.
1400
d5b5ac79
AC
14012003-09-20 Andrew Cagney <cagney@redhat.com>
1402
deafb061
AC
1403 * breakpoint.c: Eliminate ARGSUSED.
1404 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1405 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1406 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1407 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1408 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1409 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1410 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1411 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1412 * wince.c, remote-vx.c: Ditto.
1413
d5b5ac79
AC
1414 * cli/cli-script.c: Remove "register" attributes.
1415 * config/pa/tm-hppa.h: Ditto.
1416 * cli/cli-decode.c: Ditto.
1417 * cli/cli-cmds.c: Ditto.
1418
c6316faa
AC
14192003-09-19 Andrew Cagney <cagney@redhat.com>
1420
1421 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1422 DEPRECATED_NPC_REGNUM.
1423 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1424
f4f99b11
CF
14252003-09-19 Christopher Faylor <cgf@redhat.com>
1426
1427 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1428
1708f284
JB
14292003-09-19 Jim Blandy <jimb@redhat.com>
1430
1431 * macrotab.c (macro_include): Use the correct comparison to find
1432 the appropriate place for this inclusion in the list.
1433
b9fbf434
AC
14342003-09-19 Andrew Cagney <cagney@redhat.com>
1435
1436 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1437 (DEPRECATED_HPUX_TEXT_END): Define.
1438 (deprecated_hpux_text_end): Declare.
1439 (struct target_ops): Declare opaque.
1440 * hppah-nat.c (text_end): Make static.
1441 (deprecated_hpux_text_end): New function.
1442 * exec.c (text_end): Delete global variable.
1443 (NEED_TEXT_START_END): Do not define.
1444 (exec_file_attach): Replace code computing "text_end" code with
1445 call to DEPRECATED_HPUX_TEXT_END.
1446
5b03f266
AC
14472003-09-19 Andrew Cagney <cagney@redhat.com>
1448
1449 * utils.c (align_up, align_down): New functions.
1450 * defs.h (align_up, align_down): Declare.
1451 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1452 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1453 and "align_down".
1454 (round_up, round_down): Delete functions.
1455 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1456 "align_down".
1457 (ROUND_DOWN, ROUND_UP): Delete macros.
1458 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1459 * h8300-tdep.c: Replace "round_up" and "round_down" with
1460 "align_up" and "align_down".
1461 (round_up, round_down): Delete macros.
1462 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1463 "align_down".
1464 (ROUND_UP, ROUND_DOWN): Delete macros.
1465
51db5742
JB
14662003-09-18 J. Brobecker <brobecker@gnat.com>
1467
1468 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1469 hard-coded constant. Use the proper machine name instead.
1470
77949794
AC
14712003-09-17 Andrew Cagney <cagney@redhat.com>
1472
1473 * sparc-tdep.c (legacy_register_name): Delete function.
1474 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1475 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1476 * infcmd.c (gdb_register_name): Delete variable.
1477 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1478 REGISTER_NAME and "tm.h".
1479 * gdbarch.h, gdbarch.c: Regenerate.
1480 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1481 REGISTER_NAMES in comments.
1482 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1483 * m68klinux-nat.c (regmap): Ditto.
1484
b55c33cc
JB
14852003-09-17 Jim Blandy <jimb@redhat.com>
1486
1487 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1488
957e27ac
AC
14892003-09-17 Andrew Cagney <cagney@redhat.com>
1490
1491 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1492 (ppcnbsd_init_abi): Set "use_struct_convention" to
1493 "ppcnbsd_use_struct_convention".
1494
192cb3d4
MK
14952003-09-17 Mark Kettenis <kettenis@gnu.org>
1496
1497 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1498 * gdbarch.h, gdbarch.c: Regenerate.
1499 (stabs_argument_has_addr): New architecture method.
1500 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1501 * arch-utils.c: Include "buildsym.h".
1502 (default_stabs_argument_has_addr): New function.
1503 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1504 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1505
efe59759
AC
15062003-09-17 Andrew Cagney <cagney@redhat.com>
1507
1508 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1509 * gdbarch.h, gdbarch.c: Regenerate.
1510 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1511 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1512 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1513 * sparcnbsd-tdep.c: Update.
a8f4cde1 1514
62700349
AC
15152003-09-17 Andrew Cagney <cagney@redhat.com>
1516
1517 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1518 * gdbarch.h, gdbarch.c: Regenerate.
1519 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1520 * d10v-tdep.c, frame.c: Update.
1521 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1522 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1523 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1524 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1525 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1526 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1527 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1528 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1529 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1530 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1531 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1532 * config/pa/nm-hppah.h: Update.
1533
b9ff3018
AC
15342003-09-16 Andrew Cagney <cagney@redhat.com>
1535
1536 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1537 "use_struct_convention" to "ppc_linux_use_struct_convention".
1538 (ppc_linux_use_struct_convention): New function.
1539 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1540 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1541 "rs6000_use_struct_convention".
1542 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1543 declaration.
1544 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1545 Delete function.
1546
aa1ee363
AC
15472003-09-16 Andrew Cagney <cagney@redhat.com>
1548
1549 * buildsym.c: Remove more occurances of "register".
1550 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1551 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1552 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1553 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1554 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1555 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1556 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1557 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1558
f2ea0907
CV
15592003-09-16 Corinna Vinschen <vinschen@redhat.com>
1560
1561 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1562 numbers to enumeration values.
1563 * sh-tdep.c: Accomodate above change.
1564 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1565 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1566 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1567 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1568 (IS_FPUSH): Rename from IS_FMOV.
1569 (sh_extract_struct_value_address): Remove useless comment.
1570 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1571 instead of own local values.
1572 (sh_dump_tdep): Remove.
1573 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1574 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1575
1c704f11
AC
15762003-09-15 Andrew Cagney <cagney@redhat.com>
1577
1578 * doublest.c (convert_floatformat_to_doublest): No longer need to
1579 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1580
ac79b88b
DJ
15812003-09-15 Daniel Jacobowitz <drow@mvista.com>
1582
1583 * values.c (unpack_double): Call floatformat_is_valid.
1584
1c671366
MK
15852003-09-15 Mark Kettenis <kettenis@gnu.org>
1586
de5227fb
MK
1587 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1588 ps_strings into a long.
1589
1c671366
MK
1590 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1591 _initialize_am64fbsd_nat.
1592
a604369a
KB
15932003-09-15 Kevin Buettner <kevinb@redhat.com>
1594
1595 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1596 associated with DW_AT_ranges attribute is out of bounds.
1597
b3cacbee
DL
15982003-09-15 David Lecomber <dsl@sources.redhat.com>
1599
1600 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1601
d0f37bb2
MC
16022003-09-14 Michael Chastain <mec@shout.net>
1603
1604 * config/m68k/nm-apollo68v.h: Delete.
1605 * config/m68k/xm-apollo68v.h: Delete.
1606
69517000
AC
16072003-09-14 Andrew Cagney <cagney@redhat.com>
1608
1609 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1610 * dcache.c: Update copyrights and descriptions.
1611 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1612
ef8b349d
AC
16132003-09-14 Andrew Cagney <cagney@redhat.com>
1614
1615 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1616 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1617
52f0bd74
AC
16182003-09-14 Andrew Cagney <cagney@redhat.com>
1619
1620 * alpha-nat.c: Remove some occurances of "register".
1621 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1622 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1623 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1624 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1625 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1626 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1627 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1628 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1629 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1630 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1631 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1632 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1633 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1634 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1635 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1636 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1637 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1638 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1639 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1640 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1641 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1642 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1643
4a4b3fed
AC
16442003-09-13 Andrew Cagney <cagney@redhat.com>
1645
1646 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1647 * ppc-tdep.h (struct regcache): Declare opaque.
1648 * objfiles.h (struct objfile_data): Declare opaque.
1649 * cp-support.h (struct objfile): Declare opaque.
1650 * linux-nat.h (target_waitstatus): Declare opaque.
1651
2110b94f
MK
16522003-09-14 Mark Kettenis <kettenis@gnu.org>
1653
1c671366
MK
1654 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1655 (stabs_argument_has_addr): New architecture method.
1656 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1657 * arch-utils.c: Include "buildsym.h".
1658 (default_stabs_argument_has_addr): New function.
1659 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1660 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1661
2110b94f
MK
1662 * cris-tdep.c (cris_gdbarch_init): Set
1663 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1664 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1665 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1666 * mips-tdep.c (mips_gdbarch_init): Likewise.
1667 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1668 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1669
48436ce6
AC
16702003-09-13 Andrew Cagney <cagney@redhat.com>
1671
1672 * values.c (using_struct_return): Delete "function" and "funcaddr"
1673 parameters.
1674 * value.h (using_struct_return): Update declaration.
1675 * infcmd.c (finish_command_continuation): Update.
1676 (finish_command): Update.
1677 * infcall.c (call_function_by_hand): Update.
1678 * eval.c (evaluate_subexp_standard): Update.
1679
403d9909
CF
16802003-09-13 Christopher Faylor <cgf@redhat.com>
1681
1682 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1683 SSE registers since gdb will not operate correctly without this.
1684 Restore include file ordering munged in previous change.
1685 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1686
ebf7d56b
MK
16872003-09-13 Mark Kettenis <kettenis@gnu.org>
1688
8e823e25
MK
1689 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1690 REG_STRUCT_HAS_ADDR.
1691 * gdbarch.c, gdbarch.h: Updated.
1692 * infcall.c (call_function_by_hand): Update.
1693 * stabsread.c (define_symbol): Updated.
a8f4cde1 1694
ebf7d56b
MK
1695 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1696
d3f13f72
CF
16972003-09-12 Christopher Faylor <cgf@redhat.com>
1698
1699 * win32-nat.c: Reorganize so that defines used by target headers are
1700 actually defined by the system headers.
1701 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1702 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1703
14f75137
JB
17042003-09-12 Jim Blandy <jimb@redhat.com>
1705
d646061f
JB
1706 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1707 the file has no .data, .bss, or .rodata sections. Instead wait
1708 until we see a variable alleged to live in one of those sections.
1709
2a13f9bc
JB
1710 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1711 .bss section, presume that any variables we find live in the
1712 .rodata section.
1713
4f49b26b
JB
1714 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1715 offsets for global and static variables.
1716
14f75137
JB
1717 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1718 symbol types are, by definition, in the .data section, so it is
1719 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1720 If there is no .data section, there should be no N_DATA or N_DATA
1721 | N_EXT symbols.
1722
212c460c
MK
17232003-09-12 Mark Kettenis <kettenis@gnu.org>
1724
1725 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1726 (amd64fbsd_sigcontext_addr): Rewrite.
1727 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1728 with correct values.
1729 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1730 (amd64fbsd_init_abi): Fix typo.
1731
68856ea3
AC
17322003-09-12 Andrew Cagney <cagney@redhat.com>
1733
1734 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1735 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1736
627b3ba2
AC
17372003-09-12 Andrew Cagney <cagney@redhat.com>
1738
1739 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1740 "entry_file_highpc". Update comments.
1741 * defs.h (deprecated_inside_entry_file): Rename
1742 "inside_entry_file".
1743 * blockframe.c (deprecated_inside_entry_file): Rename
1744 "inside_entry_file".
1745 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1746 * vax-tdep.c (vax_frame_chain): Update.
1747 * sh64-tdep.c (sh64_frame_chain): Update.
1748 * sh-tdep.c (sh_frame_chain): Update.
1749 * rs6000-tdep.c (rs6000_frame_chain): Update.
1750 * ns32k-tdep.c (ns32k_frame_chain): Update.
1751 * mips-tdep.c (mips_frame_chain): Update.
1752 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1753 * m32r-tdep.c (m32r_frame_this_id): Update.
1754 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1755 * frv-tdep.c (frv_frame_this_id): Update.
1756 * d10v-tdep.c (d10v_frame_this_id): Update.
1757 * cris-tdep.c (cris_frame_chain): Update.
1758 * blockframe.c (legacy_frame_chain_valid): Update.
1759 * avr-tdep.c (avr_frame_this_id): Update.
1760 * arm-tdep.c (arm_prologue_this_id): Update.
1761 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1762 * objfiles.c (objfile_relocate): Update.
1763 * mipsread.c (mipscoff_symfile_read): Update.
1764 (mipscoff_symfile_read): Update.
1765 * mdebugread.c (parse_partial_symbols): Update.
1766 * dwarfread.c (read_file_scope): Update.
1767 * dwarf2read.c (read_file_scope): Update.
1768 * dbxread.c (read_dbx_symtab): Update.
1769 (read_dbx_symtab): Update.
1770 * coffread.c (complete_symtab): Update.
1771
b0abbc58
JJ
17722003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1773
1774 * top.c (quit_target): New static helper function.
1775 (quit_force): Moved code to quit_target(). Call quit_target()
1776 via catch_errors() to catch errors during quit.
1777
a1632d59
DC
17782003-09-11 David Carlton <carlton@kealia.com>
1779
1780 * buildsym.c (finish_block): Use allocate_block to allocate the
1781 block.
1782 * mdebugread.c (new_block): Add FIXME.
1783
5c4e30ca
DC
17842003-09-11 David Carlton <carlton@kealia.com>
1785
1786 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1787 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1788 (recursive_dump_type): Ditto.
1789 * printcmd.c (print_formatted): Ditto.
1790 * typeprint.c (print_type_scalar): Ditto.
1791 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1792 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1793 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1794 maint_cplus_cmd_list.
1795 * cp-support.c: Make maint_cplus_cmd_list extern.
1796 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1797 command.h.
1798 (lookup_symbol_file): Look in possible namespace blocks when
1799 appropriate.
1800 (initialize_namespace_symtab): New.
1801 (get_possible_namespace_block, free_namespace_block)
1802 (check_possible_namespace_symbols)
1803 (check_possible_namespace_symbols_loop)
1804 (check_one_possible_namespace_symbol)
1805 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1806 (_initialize_cp_namespace): Ditto.
1807 * block.h: Declare allocate_block.
1808 * block.c (allocate_block): New.
1809 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1810 allocate_block.
1811 * symfile.h: Update declaration of add_psymbol_to_list.
1812 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1813 question.
1814 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1815 scan_partial_symbols_call.
1816 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1817 helper functions.
1818 (add_partial_symbol): If necessary, scan mangled names for names
1819 of namespaces.
1820 (add_partial_namespace): Add NAMESPACE argument; generate partial
1821 symbols associated to namespaces.
1822 (add_partial_enumeration): Add NAMESPACE argument.
1823 (new_symbol): Allow namespace syms.
1824 (read_namespace): Generate namespace syms.
1825 * objfiles.h: Add opaque declaration of struct symtab.
1826 (struct objfile): Add cp_namespace_symtab member.
1827 * objfiles.c (allocate_objfile): Set
1828 objfile->cp_namespace_symtab.
1829 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1830 dictionary_h, command_h.
1831
33a7c2fc
AC
18322003-09-11 Andrew Cagney <cagney@redhat.com>
1833
1834 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1835 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1836 near the function's end.
1837 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1838 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1839 regcache_raw_write_signed to set SP_REGNUM.
1840
63cd24fe
EZ
18412003-09-11 Elena Zannoni <ezannoni@redhat.com>
1842
1843 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1844 orig_addrs is set up properly.
1845
f27dd7fd
AC
18462003-09-11 Andrew Cagney <cagney@redhat.com>
1847
1848 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1849 * gdbarch.h, gdbarch.c: Re-generate.
1850 * infcall.c (call_function_by_hand): Update.
1851 * hppa-tdep.c (hppa_push_arguments): Update.
1852 * ada-lang.c (place_on_stack): Update.
1853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1854 * sparc-tdep.c (sparc_gdbarch_init): Update.
1855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1856 * hppa-tdep.c (hppa_gdbarch_init): Update.
1857 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1858 stack_align.
1859
f630a401
DJ
18602003-09-11 Daniel Jacobowitz <drow@mvista.com>
1861
1862 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1863 register do need a frame.
1864
0ddabb4c
AC
18652003-09-11 Andrew Cagney <cagney@redhat.com>
1866
1867 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1868 buildable since GDB 5.0.
1869 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1870 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1871 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1872 * irix4-nat.c: Delete file.
1873 * config/mips/irix4.mh: Delete file.
1874 * config/mips/irix3.mh: Delete file.
1875 * config/mips/irix3.mt: Delete file.
1876 * config/mips/tm-irix3.h: Delete file.
1877 * config/mips/nm-irix3.h: Delete file.
1878 * config/mips/xm-irix3.h: Delete file.
1879 * config/mips/nm-irix4.h: Delete file.
1880 * config/mips/xm-irix4.h: Delete file.
1881 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1882
fde2cceb
JB
18832003-09-10 J. Brobecker <brobecker@gnat.com>
1884
1885 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1886 * Makefile.in (hppa-tdep.o): Update dependencies.
1887
66f667f5
JW
18882003-09-10 James E Wilson <wilson@specifixinc.com>
1889
ef5fd69f
JW
1890 * MAINTAINERS: Change my e-mail address. Move to paper trail
1891 section.
66f667f5 1892
53e8aaea
KB
18932003-09-10 Kevin Buettner <kevinb@redhat.com>
1894
1895 * MAINTAINERS (frv): New ISA entry.
1896
dcc6aaff
KB
18972003-09-10 Kevin Buettner <kevinb@redhat.com>
1898
1899 * frv-tdep.c (dis-asm.h): Include.
1900 * Makefile.in (frv-tdep.o): Update dependencies.
1901
932644f0
JJ
19022003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1903
1904 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1905 Fix typo for high range of floating registers.
1906
91c24f0a
DC
19072003-09-09 David Carlton <carlton@kealia.com>
1908
1909 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1910 highpc initialization here out of scan_partial_symbols.
1911 (scan_partial_symbols): Restructure into a recursive version,
1912 calling add_partial_namespace and add_partial_enumeration when
1913 appropriate.
1914 (add_partial_namespace): New.
1915 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1916
c9263853
AC
19172003-09-09 Andrew Cagney <cagney@redhat.com>
1918
e56a0ecc
AC
1919 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1920 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1921 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1922 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1923
794a477a
AC
1924 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1925 (rs6000_push_dummy_call): Set the "TOC" register.
1926
c9263853
AC
1927 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1928 methods "max_register_raw_size", "max_register_virtual_size" or
1929 "register_virtual_size".
1930
afa7d0b2
ILT
19312003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1932
1933 * MAINTAINERS: Update my e-mail address.
1934
7a41266b
AC
19352003-09-09 Andrew Cagney <cagney@redhat.com>
1936
1937 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1938 (rs6000_push_dummy_call): Store the struct return address.
1939 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1940
77b2b6d4
AC
19412003-09-09 Andrew Cagney <cagney@redhat.com>
1942
1943 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1944 "ppc_sysv_abi_push_arguments".
1945 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1946 "ppc_sysv_abi_push_arguments".
1947 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1948 instead of "push_arguments".
1949 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1950
e8a7b686
AC
19512003-09-09 Andrew Cagney <cagney@redhat.com>
1952
1953 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1954 instead of CALL_DUMMY_ADDRESS.
1955
f86f5ca3
PH
19562003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1957
1958 * p-lang.c: Eliminate "register".
1959 * c-lang.c: Ditto.
1960 * expprint.c: Ditto.
1961 * f-lang.c: Ditto.
1962 * jv-lang.c: Ditto.
1963 * language.c: Ditto.
1964 * m2-lang.c: Ditto.
1965 * parse.c: Ditto.
1966 * scm-lang.c: Ditto.
1967 * objc-lang.c: Ditto.
1968
83ee270e
NC
19692003-09-09 Nick Clifton <nickc@redhat.com>
1970
1971 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1972
a89aa300
AC
19732003-09-04 Andrew Cagney <cagney@redhat.com>
1974
1975 * avr-tdep.c: Include "dis-asm.h".
1976 * cris-tdep.c: Include "dis-asm.h".
1977 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1978 instead of corresponding typedef.
1979 * h8300-tdep.c: Include "dis-asm.h".
1980 * ia64-tdep.c: Include "dis-asm.h".
1981 * i386-tdep.c: Include "dis-asm.h".
1982 (i386_print_insn): Use "struct disassemble_info" instead of
1983 corresponding typedef.
1984 * m68k-tdep.c: Include "dis-asm.h".
1985 * mcore-tdep.c: Include "dis-asm.h".
1986 * mips-tdep.c: Include "dis-asm.h".
1987 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1988 instead of corresponding typedef.
1989 * ns32k-tdep.c: Include "dis-asm.h".
1990 * s390-tdep.c: Include "dis-asm.h".
1991 * sparc-tdep.c: Include "dis-asm.h".
1992 * vax-tdep.c: Include "dis-asm.h".
1993 * v850-tdep.c: Include "dis-asm.h".
1994 * mn10300-tdep.c: Include "dis-asm.h".
1995 * rs6000-tdep.c: Include "dis-asm.h".
1996 * xstormy16-tdep.c: Include "dis-asm.h".
1997 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1998 print_insn_xstormy16.
1999 * Makefile.in (v850-tdep.o): Update dependencies.
2000 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2001 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2002 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2003 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2004 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2005 (gdbarch_h): Remove $(dis_asm_h).
2006 * disasm.c: Include "dis-asm.h".
2007 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2008 corresponding typedef.
2009 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2010 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2011 * gdbarch.sh: Do not include "dis-asm.h".
2012 (struct disassemble_info): Declare opaque.
2013 (TARGET_PRINT_INSN): Update declaration.
2014 * gdbarch.h, gdbarch.c: Re-generate.
2015
88a82a65
AC
20162003-09-08 Andrew Cagney <cagney@redhat.com>
2017
2018 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2019 CALL_DUMMY_ADDRESS, change to a predicate.
2020 * gdbarch.h, gdbarch.c: Re-generate.
2021 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2022 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2023 * infcall.c (call_function_by_hand): Ditto.
2024 * sparc-tdep.c (sparc_push_return_address): Ditto.
2025 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2026 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2027 CALL_DUMMY_ADDRESS with entry_point_address.
2028 * v850-tdep.c (v850_push_return_address): Ditto.
2029 * s390-tdep.c (s390_push_return_address): Ditto.
2030 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2031 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2032 * mcore-tdep.c (mcore_push_return_address): Ditto.
2033 * cris-tdep.c (cris_push_return_address): Ditto.
2034 * arm-tdep.c (arm_push_return_address): Ditto.
2035
3e2c4033
AC
20362003-09-08 Andrew Cagney <cagney@redhat.com>
2037
2038 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2039 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2040 and REG_UNMODIFIED to REG_SAME_VALUE.
2041 (execute_cfa_program): Update.
2042 (dwarf2_frame_cache): Update. Initialize table to
2043 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2044 location.
2045 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2046
39efb398
AC
20472003-09-08 Andrew Cagney <cagney@redhat.com>
2048
2049 * gnu-nat.c: Remove "inline" function attribute.
2050 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2051
f5cb5aca
KB
20522003-09-08 Kevin Buettner <kevinb@redhat.com>
2053
2054 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2055 target.
2056
1cb761c7
KB
20572003-09-08 Kevin Buettner <kevinb@redhat.com>
2058
2059 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2060 (frame_extra_info): Rename this struct to frv_unwind_cache.
2061 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2062 Add fields ``prev_sp'' and ``base''.
2063 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2064 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2065 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2066 Delete.
2067 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2068 Revise all callers. Fill in the unwind cache argument and make
2069 other adjustments to account for new frame mechanisms.
2070 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2071 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2072 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2073 (frv_frame_unwind, frv_frame_base): New structs.
2074 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2075 additional arguments expected by this method and adjust function
2076 body accordingly.
2077 (frv_gdbarch_init): Remove calls to the following functions:
2078 set_gdbarch_deprecated_init_frame_pc(),
2079 set_gdbarch_deprecated_saved_pc_after_call(),
2080 set_gdbarch_deprecated_frame_chain(),
2081 set_gdbarch_deprecated_frame_saved_pc(),
2082 set_gdbarch_deprecated_frame_init_saved_regs(),
2083 set_gdbarch_deprecated_push_arguments(),
2084 set_gdbarch_deprecated_push_return_address(),
2085 set_gdbarch_deprecated_pop_frame(),
2086 set_gdbarch_deprecated_call_dummy_words(),
2087 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2088 set_gdbarch_deprecated_init_extra_frame_info(),
2089 set_gdbarch_deprecated_dummy_write_sp(), and
2090 set_gdbarch_deprecated_pc_in_call_dummy().
2091 Add calls to the following functions:
2092 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2093 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2094 frame_base_set_default().
2095 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2096
68f6cf99
MK
20972003-09-09 Mark Kettenis <kettenis@gnu.org>
2098
2099 * dwarf2-frame.c (read_encoded_value): Add support for
2100 DW_EH_PE_aligned encoding.
2101
73b65bb0
DJ
21022003-09-08 Daniel Jacobowitz <drow@mvista.com>
2103
2104 * infrun.c (normal_stop): Don't print a message if the inferior
2105 has exited.
2106
7c8a5605
JB
21072003-09-08 Jim Blandy <jimb@redhat.com>
2108
2109 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2110 * dbxread.c: #include "gdb_assert.h".
2111 (read_dbx_symtab): If the objfile has no .data section, use the
2112 section index for the .bss section instead.
2113
7dd88986
DJ
21142003-09-08 Daniel Jacobowitz <drow@mvista.com>
2115
2116 * frame.c (deprecated_safe_get_selected_frame): New function.
2117 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2118 * findvar.c (read_var_value): Call it.
2119
55ff77ac
CV
21202003-09-08 Corinna Vinschen <vinschen@redhat.com>
2121
2122 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2123 (sh64-tdep.o): Add dependencies.
2124 * configure.tgt: Add FIXME to sh-*-linux*.
2125 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2126 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2127 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2128 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2129 * sh64-tdep.c: New file, containing all sh64 related code from
2130 sh-tdep.c.
2131 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2132 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2133 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2134 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2135 * config/sh/wince.mt (TDEPFILES): Ditto.
2136
bfb39158
DJ
21372003-09-07 Daniel Jacobowitz <drow@mvista.com>
2138
2139 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2140 (stop_wait_callback): Handle !lp->signalled also.
2141 (lin_lwp_has_pending, flush_callback): New functions.
2142 (lin_lwp_wait): Call flush_callback.
2143 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2144 (linux_proc_pending_signals): New function.
2145 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2146
9407de8e
DJ
21472003-09-07 Daniel Jacobowitz <drow@mvista.com>
2148
2149 From Nick Kelsey <nickk@ubicom.com>:
2150 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2151 when the stop PC is at the beginning of a function also.
2152
2ef47cd0
DJ
21532003-09-06 Daniel Jacobowitz <drow@mvista.com>
2154
2155 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2156 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2157
6f4492c8
MK
21582003-09-06 Mark Kettenis <kettenis@gnu.org>
2159
2160 * sol-thread.c: Include "gdb_string.h".
2161
d3420b2f
MK
21622003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2163
2164 * gcore.c: Reorder include files in alphabetical order. Include
2165 "gdb_assert.h". Various coding style fixes.
2166 (derive_stack_segment, derive_heap_segment): Replace check for
2167 non-null BOTTOM and TOP with gdb_assert.
2168 (derive_heap_segment): Replace check for successful creation of
2169 ZERO with gdb_assert.
2170 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2171
5220ea4c
AC
21722003-09-04 Andrew Cagney <cagney@redhat.com>
2173
2174 * thread-db.c (verbose_dlsym): New function.
2175 (thread_db_load): Use verbose_dlsym
2176 (thread_db_new_objfile): Print that libthread_db was loaded, and
2177 that thread debugging was enabled.
2178
6e8c2c06
AC
21792003-09-04 Andrew Cagney <cagney@redhat.com>
2180
2181 * configure.tgt: Add "mips64*-*-*" target. Delete
2182 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2183 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2184 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2185 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2186 mips*-sony-*, and mips64*-*-elf* targets.
2187 * config/mips/embedl.mt: Delete file.
2188 * config/mips/embedl64.mt: Delete file.
2189 * config/mips/mips.mt: Delete file.
2190 * config/mips/mips64.mt: Delete file.
2191 * config/mips/tm-embed.h: Delete file.
2192 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2193 * config/mips/embed64.mt: Delete out-of-date comment.
2194
3a3bc038
AC
21952003-09-04 Andrew Cagney <cagney@redhat.com>
2196
2197 * hppa-tdep.c (hppa_gdbarch_init): Set
2198 "have_nonsteppable_watchpoint".
2199 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2200 * mips-tdep.c (mips_dump_tdep): Do not print
2201 HAVE_NONSTEPPABLE_WATCHPOINT.
2202 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2203 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2204 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2205 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2206
a957e642
CV
22072003-09-04 Corinna Vinschen <vinschen@redhat.com>
2208
2209 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2210 unused code. Add comment.
2211
a6fbcf2f
CV
22122003-09-04 Corinna Vinschen <vinschen@redhat.com>
2213
2214 * breakpoint.c (watchpoint_check): Check for pc being in an
2215 epilogue if watchpoint frame couldn't be found.
2216
c14a44d5
AC
22172003-09-04 Andrew Cagney <cagney@redhat.com>
2218
2219 * Makefile.in: Re-generate all dependencies.
2220
f6c40618
AC
22212003-09-03 Andrew Cagney <cagney@redhat.com>
2222
2223 * arch-utils.h (legacy_print_insn): Delete declaration.
2224 * arch-utils.c (legacy_print_insn): Delete function.
2225 * disasm.c (deprecated_tm_print_insn_info): Delete.
2226 (_initialize_disasm): Delete function, contained code initializing
2227 deprecated_tm_print_insn_info.
2228 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2229 (deprecated_tm_print_insn_info): Delete.
2230 (TARGET_PRINT_INSN): Do not provide a default.
2231 * gdbarch.h, gdbarch.c: Re-generate.
2232
242e8be5
AC
22332003-09-03 Andrew Cagney <cagney@redhat.com>
2234
2235 * disasm.c (fprintf_disasm): New function.
2236 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2237 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2238 reverts 2003-08-14 change.
2239 (_initialize_disasm): Call "init_disassemble_info", instead of
2240 INIT_DISASSEMBLE_INFO_NO_ARCH.
2241
3ffc3dda
MS
22422003-09-03 Michael Snyder <msnyder@redhat.com>
2243
2244 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2245
52d16ba8
AC
22462003-09-03 Andrew Cagney <cagney@redhat.com>
2247
2248 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2249 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2250 * symfile.c (syms_from_objfile): Update.
2251 (reread_symbols): `Update
2252 * exec.c (exec_file_attach): Update.
2253 (exec_file_attach): Update.
2254 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2255 2003-08-29 change.
2256 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2257
eb5492fa
DJ
22582003-09-03 Daniel Jacobowitz <drow@mvista.com>
2259
2260 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2261 trad-frame.h.
2262 (arm_get_cache): Delete macro.
2263 (struct arm_prologue_cache): Update comments. Make saved_regs into
2264 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2265 to prev_sp.
2266 (thumb_scan_prologue): Update for cache changes. Don't call
2267 DEPRECATED_PC_IN_CALL_DUMMY.
2268 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2269 argument and use it in desperation search for our prologue. Do not
2270 search past the specified PC.
2271 (arm_make_prologue_cache): Simplify.
2272
2273 (arm_prologue_this_id, arm_prologue_prev_register)
2274 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2275 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2276 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2277 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2278 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2279
2280 (arm_frame_chain_valid, arm_find_callers_reg)
2281 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2282 (arm_pop_frame): Delete obsolete methods.
2283 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2284
2285 (arm_gdbarch_init): Update for new frame methods. Register prologue
2286 and sigtramp unwinders. Set the default frame base method.
2287
2288 * Makefile.in (arm-tdep.o): Update dependencies.
2289 * varobj.c (find_frame_addr_in_frame_chain): Call
2290 get_frame_base_address.
2291 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2292
24de872b
DJ
22932003-09-03 Daniel Jacobowitz <drow@mvista.com>
2294
2295 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2296 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2297 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2298 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2299 Take NEXT_FRAME and CACHE arguments. Call
2300 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2301 Set unwound_pc in CACHE instead of modifying the frame argument.
2302 Don't bother checking the frame type when looking for sigtramp
2303 frames.
2304 (arm_make_prologue_cache, arm_frame_chain)
2305 (arm_init_extra_frame_info): New functions.
2306
9b8d791a
DJ
23072003-09-03 Daniel Jacobowitz <drow@mvista.com>
2308
2309 * arm-tdep.c (arm_get_cache): Define.
2310 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2311 unwound_sp, unwound_pc, and saved_regs.
2312 (thumb_scan_prologue): Take a cache instead of the frame.
2313 (arm_scan_prologue): Likewise.
2314 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2315 instead of a temporary frame.
2316 (arm_init_extra_frame_info): Allocate and use a cache.
2317 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2318
7ee3275f
AC
23192003-09-03 Andrew Cagney <cagney@redhat.com>
2320
2321 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2322 * config/mips/wince.mt (TM_CLIBS): Ditto.
2323 * config/sh/wince.mt (TM_CLIBS): Ditto.
2324 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2325 * config/sparc/sp64.mt (CC): Delete.
2326
57b29be7
AC
23272003-09-03 Andrew Cagney <cagney@redhat.com>
2328
2329 * defs.h: Do not include "arch-utils.h".
2330 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2331 GDB_MULTI_ARCH_PURE.
2332 * configure.in (GDB_MULTI_ARCH): Do not define.
2333 * configure, config.in: Regenerate.
2334 * configure.tgt: Do not set variable "gdb_multi_arch".
2335 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2336 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2337 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2338 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2339 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2340 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2341 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2342 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2343 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2344 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2345 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2346 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2347 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2348 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2349 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2350 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2351 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2352 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2353
12e035e2
MC
23542003-08-30 Michael Chastain <mec@shout.net>
2355
2356 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2357 * config/m68k/nm-hp300hpux.h: Delete.
2358 * config/m68k/tm-hp300hpux.h: Delete.
2359 * config/m68k/xm-hp300hpux.h: Delete.
2360 * config/m68k/xm-hp300bsd.h: Delete.
2361 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2362 tm-hp300hpux.h, xm-hp300hpux.h.
2363 * somsolib.c: Remove comment about hp300 shared libraries.
2364
bda34dc2
MK
23652003-08-31 Mark Kettenis <kettenis@gnu.org>
2366
5bca7895
MK
2367 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2368 Only define PTRACE_GET_THREAD_AREA is not already defined.
2369 Various style fixes in code and comments and some additional
2370 spelling fixes in comments. Move after functions dealing with
2371 debug registers.
2372 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2373 Fix coding-style.
2374
bda34dc2
MK
2375 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2376 frame_unwind_register_unsigned instead of
2377 frame_unwind_unsigned_register.
2378
c890192f
MK
23792003-08-30 Mark Kettenis <kettenis@gnu.org>
2380
2381 * configure.in: Search for gethostbyname in libnsl.
2382 * configure: Regenerated.
2383
60fac5b8
MK
23842003-08-29 Mark Kettenis <kettenis@gnu.org>
2385
e294916c
MK
2386 * configure.in: Remove redundant AC_MSG_RESULT in check for
2387 uintptr_t in stdint.h.
2388 * configure: Regenerated.
2389
c40d267a
MK
2390 * amd64-nat.h (struct regcache): Add opaque declaration.
2391
60fac5b8
MK
2392 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2393 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2394 Change "register array" to "register cache" in comments.
2395 (x86_64_linux_gregset64_reg_offset): New variable.
2396 (GETREGS_SUPPLIES): Remove macro.
2397 (supply_gregset): Call amd64_supply_native_gregset instead of
2398 x86_64_linux_supply_gregset.
2399 (fill_gregset): Rename `regno' to `regnum'. Call
2400 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2401 (store_regs): Rename `regno' to `regnum'.
2402 (store_fpregs): Rename `regno' to `regnum'.
2403 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2404 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2405 Reorganize function a bit.
2406 (store_inferior_registers): Rename `regno' to `regnum'. Use
2407 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2408 Reorganize function a bit.
2409 (_initialize_x86_64_linux_nat): New function.
2410 * config/i386/x86-64linux.mh.
2411
546143b6
AC
24122003-08-29 Andrew Cagney <cagney@redhat.com>
2413
2414 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2415 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2416 (target_remove_watchpoint): Delete macro.
2417 (target_insert_watchpoint): Delete macro.
2418 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2419 (remote_mips_stopped_by_watchpoint): Delete declaration.
2420 (remote_mips_remove_watchpoint): Delete declaration.
2421 (remote_mips_set_watchpoint): Delete declaration.
2422 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2423 * remote-mips.c (_initialize_remote_mips): Set
2424 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2425 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2426 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2427 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2428 (mips_stopped_by_watchpoint): Rename
2429 remote_mips_stopped_by_watchpoint.
2430 (mips_can_hardware_watchpoint): Rename
2431 remote_mips_can_use_hardware_watchpoint, update function
2432 signature.
2433
7bace51b
MK
24342003-08-29 Mark Kettenis <kettenis@gnu.org>
2435
b0f5c6f2
MK
2436 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2437 USER_DS. We haven't given them a register number yet.
2438
2a6d284d
MK
2439 * amd64-nat.h: New file.
2440 * amd64-nat.c: New file.
2441 * amd64fbsd-nat.c: Include "amd64-nat.h".
2442 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2443 (amd64fbsd32_r_reg_offset): New variable.
2444 (supply_gregset): Simply call amd64_supply_native_gregset.
2445 (fill_gregset): Rename `regno' to `regnum'. Simply call
2446 amd64_collect_native_gregset.
2447 (fill_fpregset): Rename `regno' to `regnum'.
2448 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2449 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2450 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2451 `fpregset_t'. Call amd64_supply_native_gregset instead of
2452 supply_gregset. Call x86_64_supply_fxsave instead of
2453 supply_fpregset.
2454 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2455 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2456 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2457 `fpregset_t'. Call amd64_collect_native_gregset instead of
2458 fill_gregset. Call x86_64_collect_fxsave instead of
2459 fill_fpregset.
2460 (_initialize_am64fbsd_nat): Initialize
2461 amd64_native_gregset32_reg_offset and
2462 amd64_native_gregset64_reg_offset.
2463 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2464
a16d75cc
MK
2465 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2466 null pointer. Fix typo in comment.
2467
7bace51b
MK
2468 * regcache.c (supply_register): Reimplement to call
2469 regcache_raw_supply.
2470 (regcache_collect): Reimplement by calling regcache_raw_collect.
2471
9a661b68
MK
24722003-08-28 Mark Kettenis <kettenis@gnu.org>
2473
2474 * regcache.c (register_buffer): Consitify first argument.
2475 (regcache_raw_supply, regcache_raw_collect): New
2476 functions.
2477
e94cc8fa
DJ
24782003-08-28 Daniel Jacobowitz <drow@mvista.com>
2479
2480 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2481 by Nathan J. Williams.
2482
c64bd0ce
DJ
24832003-08-28 Daniel Jacobowitz <drow@mvista.com>
2484
2485 * lin-lwp.c (wait_lwp): New function, copied from
2486 stop_wait_callback. Clean up.
2487 (stop_wait_callback): Use wait_lwp.
2488
e5ab0dce
AC
24892003-08-28 Andrew Cagney <cagney@redhat.com>
2490
2491 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2492 flavour and disassembler options.
2493 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2494 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2495 deprecated_tm_print_insn_info.
a8f4cde1 2496
a788de9b
AC
24972003-08-27 Andrew Cagney <cagney@redhat.com>
2498
2499 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2500 Use target_read_memory.
2501 (s390_get_frame_info): Update. Do not reference
2502 deprecated_tm_print_insn_info.
2503 (s390_check_function_end, s390_is_sigreturn): Ditto.
2504
36482093
AC
25052003-08-27 Andrew Cagney <cagney@redhat.com>
2506
2507 * Makefile.in (cris-tdep.o): Update dependencies.
2508 * cris-tdep.c: Include "gdb_assert.h".
2509 (cris_gdbarch_init): Set print_insn.
2510 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2511 (cris_delayed_get_disassembler): Simplify, directly call the
2512 disassembler returned by cris_get_disassembler.
2513 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2514 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2515 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2516 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2517 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2518 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2519 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2520 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2521 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2522 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2523 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2524 (gdb_print_insn_sparc): Delete function.
2525 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2526 deprecated_tm_print_insn_info.
2527 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2528 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2529 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2530 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2531 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2532 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2533 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2534 (s390_gdbarch_init): Set print_insn.
2535
0285512f
AC
25362003-08-27 Andrew Cagney <cagney@redhat.com>
2537
2538 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2539 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2540 * infcall.c (call_function_by_hand): Convert the entry point
2541 address into a code address.
2542
cdcd5552
AC
25432003-08-27 Andrew Cagney <cagney@redhat.com>
2544
2545 * dsrec.c: Include "gdb_string.h".
2546 * Makefile.in (dsrec.o): Update dependencies.
2547
e85cddad
MC
25482003-08-27 Michael Chastain <mec@shout.net>
2549
2550 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2551
8bbfbb23
AC
25522003-08-27 Andrew Cagney <cagney@redhat.com>
2553
2554 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2555 (alpha_osf1_init_abi): Do not set call_dummy_address.
2556
ba058b66
DC
25572003-08-27 David Carlton <carlton@kealia.com>
2558
2559 From Randolph Chung <tausq@debian.org>:
2560 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2561 compiles with -Wformat-nonliteral -Werror.
2562
87f84c9d
JB
25632003-08-26 Jim Blandy <jimb@redhat.com>
2564
2565 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2566 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2567 bfd_lookup_symbol, since we only want symbols in code sections.
2568 (look_for_base): Pass zero as the SECT_FLAGS argument to
2569 bfd_lookup_symbol, since we're not concerned about which section
2570 the symbol is in.
2571
102d615a
JJ
25722003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2573
2574 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2575 we are frameless or the return address register is already known.
102d615a 2576
cc7ad3ea
AC
25772003-08-26 Andrew Cagney <cagney@redhat.com>
2578
2579 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2580 in size. Add comments.
2581
af8b88dd
JJ
25822003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2583
2584 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2585 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2586
e0a4f5a1
JM
25872003-08-26 Jason Merrill <jason@redhat.com>
2588
2589 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2590 case out of #ifdef MIPS block.
2591
4ae9ee8e
DJ
25922003-08-25 Daniel Jacobowitz <drow@mvista.com>
2593
2594 PR java/1322
2595 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2596 available before calling SECT_OFF_TEXT.
3c164570 2597 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2598
004d836a
JJ
25992003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2600
a8f4cde1 2601 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2602 bof, and nat0-nat127 as pseudo-registers.
2603 (ia64_frame_cache): New struct used to cache frame info.
2604 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2605 register grouping so registers without names are still saved and
004d836a 2606 restored.
a8f4cde1 2607 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2608 pseudo values.
2609 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2610 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2611 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2612 ia64_frame_cache.
2613 (examine_prologue): Change prototype to add next_frame pointer.
2614 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2615 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2616 alloc insn and if equal, mark as not frameless. At end of routine,
2617 if not frameless, calculate registers for the previous frame and store
2618 in the cache, if a cache is provided.
2619 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2620 and pass 0 for next_frame.
2621 (ia64_store_return_value): Change to use convert_typed_floating()
2622 instead of calling ia64_convert_to_raw().
2623 (ia64_extract_return_value): Change to use convert_typed_floating()
2624 instead of calling ia64_convert_to_virtual().
2625 (ia64_frame_cache): New routine to support new frame model.
2626 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2627 (ia64_frame_sniffer): Ditto.
2628 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2629 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2630 (ia64_sigtramp_frame_prev_register): Ditto.
2631 (ia64_sigtramp_frame_sniffer): Ditto.
2632 (ia64_frame_base_address): Ditto.
2633 (ia64_extract_struct_value_address): Change to issue error message.
2634 (ia64_frame_align): New routine to align sp.
2635 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2636 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2637 ia64_push_dummy_call().
2638 (ia64_push_return_address): Ditto.
2639 (ia64_unwind_dummy_id): New function.
2640 (ia64_unwind_pc): Ditto.
2641 (ia64_convert_register_p): Ditto.
2642 (ia64_register_to_value): Ditto.
2643 (ia64_value_to_register): Ditto.
2644 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2645 (ia64_register_byte, ia64_register_raw_size): Ditto.
2646 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2647 (ia64_saved_pc_after_call): Ditto.
2648 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2649 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2650 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2651 (ia64_register_convert_to_raw): Ditto.
2652 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2653 (ia64_init_extra_frame_info): Ditto.
2654 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2655 (ia64_gdbarch_init): Remove registering of deprecated functions that
2656 are no longer used. Add registration of new gdbarch functions.
2657 Remove registering deprecated_write_sp. Replace
2658 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2659 Delete set_gdbarch_deprecated_register_convertible(),
2660 set_gdbarch_deprecated_register_convert_to_virtual(), and
2661 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2662 set_gdbarch_deprecated_register_size(),
2663 set_gdbarch_deprecated_register_bytes(),
2664 set_gdbarch_pcregnum(),
2665 set_gdbarch_deprecated_register_byte(),
2666 set_gdbarch_deprecated_register_raw_size(),
2667 set_gdbarch_deprecated_max_register_raw_size(),
2668 set_gdbarch_deprecated_register_virtual_size(),
2669 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2670 Replace set_gdbarch_deprecated_extract_return_value() with
2671 set_gdbarch_extract_return_value(). Remove calls to:
2672 set_gdbarch_deprecated_saved_pc_after_call();
2673 set_gdbarch_deprecated_frame_chain(),
2674 set_gdbarch_deprecated_frame_saved_pc(),
2675 set_gdbarch_deprecated_frame_init_saved_regs(),
2676 set_gdbarch_deprecated_get_saved_register(),
2677 set_gdbarch_deprecated_call_dummy_words(),
2678 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2679 set_gdbarch_deprecated_init_extra_frame_info(),
2680 set_gdbarch_deprecated_frame_args_address(),
2681 set_gdbarch_deprecated_frame_locals_address(),
2682 and set_gdbarch_deprecated_dummy_write_sp().
2683 Add set_gdbarch_convert_register_p(),
2684 set_gdbarch_register_to_value(),
2685 set_gdbarch_value_to_register(),
2686 set_gdbarch_push_dummy_call(),
2687 set_gdbarch_frame_align(),
2688 set_gdbarch_unwind_dummy_id(),
2689 set_gdbarch_unwind_pc(),
2690 frame_unwind_append_sniffer(),
2691 frame_unwind_append_sniffer(),
2692 and frame_base_set_default().
2693
aede7613
CD
26942003-08-25 Chris Demetriou <cgd@broadcom.com>
2695
2696 * configure.tgt: Document need for special "mipsisa64" handling.
2697 (mipsisa64*-*-linux64): Handle as target linux64.
2698 (mipsisa64*-*-*): Handle as target embed64.
2699
43c3a82e
MC
27002003-08-18 Michael Chastain <mec@shout.net>
2701
2702 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2703 objfile bug.
2704
6564f77d
MK
27052003-08-24 Mark Kettenis <kettenis@gnu.org>
2706
2de139ba
MK
2707 * i387-tdep.h: Update copyright date.
2708 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2709
6564f77d
MK
2710 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2711 CFLAGS games to reflect reality.
2712
42cf1509
AC
27132003-08-24 Andrew Cagney <cagney@redhat.com>
2714
2715 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2716 GDB_MULTI_ARCH is always non-zero.
2717 * osabi.c (_initialize_gdb_osabi): Ditto.
2718 (gdbarch_init_osabi): Ditto.
2719 * sparc-tdep.c: Ditto for #if code.
2720
0485f6ad
MK
27212003-08-23 Mark Kettenis <kettenis@gnu.org>
2722
2723 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2724 Update comments.
2725 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2726 comments.
2727 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2728 x86_64_supply_fxsave.
2729 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2730 x86_64_supply_fxsave.
2731 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2732 x86_64_supply_fxsave.
2733
c7716133
AJ
27342003-08-23 Andreas Jaeger <aj@suse.de>
2735
2736 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2737 i387_supply_fxsave.
2738
ed504bdf
MK
27392003-08-23 Mark Kettenis <kettenis@gnu.org>
2740
2741 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2742 i387_supply_register.
2743 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2744 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2745 i387_supply_fsave.
2746 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2747 i387_supply_fxsave.
2748 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2749 i387_supply_fsave.
2750 * i386bsd-nat.c (supply_fpregset): Adjust call to
2751 i387_supply_fsave.
2752 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2753 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2754 supply_fpregset.
2755 (store_inferior_registers): Remove extraneous whitespace. Call
2756 i387_fill_fsave instead of fill_fpregset.
2757 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2758 (supply_fpregset): Likewise.
2759 * i386v4-nat.c (supply_fpregset): Adjust call to
2760 i387_supply_fsave.
2761 * i386-interix-nat.c (supply_fpregset): Adjust call to
2762 i387_supply_fsave.
2763 * i386-linux-nat.c (supply_fpregset): Adjust call to
2764 i387_supply_fsave.
2765 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2766 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2767 i387supply_fsave and i387_supply_fxsave.
2768 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2769 Incorporate code from `i387_supply_register.
2770 (i387_supply_register): Remove.
2771 (i387_supply_fxsave): Add `regnum' argument.
2772 Update comments.
2773 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2774 prototype.
2775 (i387_supply_register): remove prototype.
2776 Update comments.
a8f4cde1 2777
4be5d520
MC
27782003-08-22 Michael Chastain <mec@shout.net>
2779
2780 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2781 Add lines for files in gdb/testsuite/gdb.cp/* that are
2782 still not 8.3 unique.
2783
7ed85d26
DJ
27842003-08-22 Daniel Jacobowitz <drow@mvista.com>
2785
2786 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2787 TYPE_VPTR_FIELDNO is valid.
2788
eb0d3137
MK
27892003-08-19 Mark Kettenis <kettenis@gnu.org>
2790
2791 * utils.c (set_width_command): Remove prototypes.
2792 (set_screen_size): New prototype.
2793 (init_page_info): Simplify by fetching the screen size from
2794 Readline. Call set_screen_size.
2795 (set_screen_size): New function.
2796 (set_width): Add missing whitespace in comment.
2797 (set_width_command): Call set_screen_size.
2798 (set_height_command): New function.
2799 (initialize_utils): Fix formatting. Make "set height" command
2800 call set_height_command. Remove redundant code that turns off
2801 pagination if output isn't a terminal. Remove redundant call to
2802 set_width_command.
a8f4cde1 2803
7e6d0ac8
MK
28042003-08-22 Mark Kettenis <kettenis@gnu.org>
2805
3567a8ea
MK
2806 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2807 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2808 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2809 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2810 `case' keyword.
2811 (sparc64_register_info): Give the reister with number
2812 SPARC64_STATE_REGNUM a name.
2813 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2814 %asi and %ccr.
2815 (sparc64_push_dummy_call): Take BIAS into account when checking
2816 stcak alignment.
2817 (sparc_software_single_step): Remove assertions that check whether
2818 NPC and NNPC were zero.
2819 (sparc_supply_rwindow): Make public. Merge functionality with
2820 sparc64_supply_rwindow.
2821 (sparc_fill_rwindow): Make public. Merge functionality with
2822 sparc64_fill_rwindow.
2823 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2824 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2825 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2826 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2827 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2828
7e6d0ac8
MK
2829 * reggroups.c: Add whitespace after declarations of local
2830 variables in functions.
2831
72e5f484
MC
28322003-08-21 Michael Chastain <mec@shout.net>
2833
2834 * gdbtypes.h: Change array bound type from an int to enum.
2835
435ac228
AC
28362003-08-21 Andrew Cagney <cagney@redhat.com>
2837
2838 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2839 * config/sparc/tm-sparc.h: Ditto.
2840 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2841 unconditionally.
2842 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2843
0d0e1a63
MK
28442003-07-13 Mark Kettenis <kettenis@gnu.org>
2845
2846 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2847 (register_objfile_data, set_objfile_data, objfile_data): New
2848 prototypes.
2849 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2850 prototypes.
2851 (allocate_objfile): Call objfile_alloc_data.
2852 (free_objfile): Call objfile_free_data.
2853 (struct objfile_data): New.
2854 (struct objfile_data_registration): New.
2855 (struct objfile_data_registry): New.
2856 (objfile_data_registry): New variable.
2857 (register_objfile_data): New function.
2858 (objfile_alloc_data, objfile_free_data): New functions.
2859 (set_objfile_data, objfile_data): New functions.
2860 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2861 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2862 (_initialize_dwarf2_frame): New function and prototype.
2863
d90cf509
AC
28642003-08-21 Andrew Cagney <cagney@redhat.com>
2865
2866 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2867 a specific architecture.
2868 * arch-utils.h (set_architecture_from_arch_mach): Delete
2869 declaration.
2870 (target_architecture_hook): Delete declaration.
2871 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2872 (default_float_format): Assume GDB_MULTI_ARCH.
2873 (default_double_format): Assume GDB_MULTI_ARCH.
2874 (set_endian_from_file): Delete function.
2875 (arch_ok): Delete function.
2876 (set_arch): Delete function.
2877 (set_architecture_from_arch_mach): Delete function.
2878 (set_architecture_from_file): Delete function.
2879 (set_architecture): Assume GDB_MULTI_ARCH.
2880 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2881
8b39fe56
MK
28822003-08-21 Mark Kettenis <kettenis@gnu.org>
2883
2884 Rewrite FreeBSD/sparc64 native configuration.
2885 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2886 * sparc64fbsd-nat.c: New file.
2887 * sparc64fbsd-tdep.c: New file.
2888 * sparc64-tdep.c sparc64-tdep.h: New files.
2889 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2890 sparc64fbsd-tdep.o): New dependencies.
2891 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2892 and sparc64fbsd-tdep.c.
2893 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2894 * config/sparc/fbsd.mh: Remove copyright notice.
2895 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2896 sparcbsd-nat.o.
2897 * config/sparc/fbsd.mt: Remove copyright notice.
2898 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2899 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2900 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2901 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2902 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2903 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2904 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2905 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2906 "sparc/tm-sp64.h".
2907 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2908 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2909
a7f19c79
MC
29102003-08-21 Michael Chastain <mec@shout.net>
2911
2912 * symtab.h: Add doco on the space critical structures and
2913 some measurements of space usage.
2914
da08ea5b
MS
29152003-08-21 Michael Snyder <msnyder@redhat.com>
2916
2917 * tracepoint.c (trace_dump_command): Trace break address
2918 is subject to DECR_PC_AFTER_BREAK.
2919 (set_traceframe_context): Make "trace_line" an int.
2920 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2921
6df2bf50
MS
29222003-08-20 Michael Snyder <msnyder@redhat.com>
2923
2924 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2925 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2926 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2927 argument passing.
a8f4cde1 2928 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2929 functions, replace sh_push_dummy_call.
2930 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2931
0955bbf0
MC
29322003-08-20 Michael Chastain <mec@shout.net>
2933
2934 * gdbtypes.h (struct main_type): Rearrange to save space.
2935
260a4188
MS
29362003-08-20 Michael Snyder <msnyder@redhat.com>
2937
2938 * trad-frame.c: Comment typo fix.
2939
8baa6f92
KB
29402003-08-20 Michael Snyder <msnyder@redhat.com>
2941 Kevin Buettner <kevinb@redhat.com>
2942
2943 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2944 (frv_frame_init_saved_regs): Add declaration.
2945 (frame_extra_info): Add new field ``saved_regs''.
2946 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2947 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2948 Update frame related code.
2949 (frv_extract_struct_value_address): Adjust formatting.
2950 * Makefile.in (frv-tdep.o): Update dependencies.
2951 * config/frv/tm-frv.h (target_insert_watchpoint)
2952 (target_remove_watchpoint, target_insert_hw_breakpoint)
2953 (target_remove_hw_breakpoint): Delete these macros.
2954 (remote_insert_watchpoint, remote_remove_watchpoint)
2955 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2956 these declarations.
2957
87193939
MC
29582003-08-20 Michael Chastain <mec@shout.net>
2959
2960 * defs.h (ENUM_BITFIELD): New macro.
2961 * symtab.h (ENUM_BITFIELD): Use it.
2962 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2963
062103ba
SA
29642003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2965
2966 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2967
8b148df9
AC
29682003-08-18 Andrew Cagney <cagney@redhat.com>
2969
2970 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2971 * gdbarch.h, gdbarch.c: Re-generate.
2972 * infcall.c (call_function_by_hand): Adjust the SP by
2973 frame_red_zone_size before allocating any stack space.
2974 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2975 * x86-64-tdep.c (x86_64_frame_align): New function.
2976 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2977
2978 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2979 Remove code adjusting SP so that it skips over the Red Zone.
2980
954a4db8
MK
29812003-08-18 Mark Kettenis <kettenis@gnu.org>
2982
2983 * NEWS (New native configurations): Mention FreeBSD/amd64.
2984
1a241548
AC
29852003-08-18 Andrew Cagney <cagney@redhat.com>
2986
2987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2988 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2989 "m68k_frame_p".
2990 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2991
f82b2acd
MK
29922003-08-18 Mark Kettenis <kettenis@gnu.org>
2993
2994 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2995
4056d258
ML
29962003-08-18 Michal Ludvig <mludvig@suse.cz>
2997
2998 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2999 Define.
3000 * i386-linux-nat.c: Include "linux-nat.h".
3001 (child_post_startup_inferior): New function.
a8f4cde1 3002
99ab4326
MK
30032003-08-18 Mark Kettenis <kettenis@gnu.org>
3004
3005 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3006 at the start of a frameless function. This probably fixes PR
3007 backtrace/1338.
3008
c8d5f0d6
MC
30092003-08-17 Michael Chastain <mec@shout.net>
3010
3011 * symfile.c (find_sym_fns): Remove special case for apollo target.
3012
9016a515
DJ
30132003-08-17 Daniel Jacobowitz <drow@mvista.com>
3014
3015 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3016 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3017 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3018 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3019 (linux_supports_tracevforkdone): New function.
3020 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3021 TRACEVFORKDONE.
3022 (child_follow_fork): Handle vfork.
3023 (linux_handle_extended_wait): Likewise. Also handle exec.
3024 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3025 * NEWS: Mention fork tracing.
3026
c538c11c
DJ
30272003-08-17 Daniel Jacobowitz <drow@mvista.com>
3028
3029 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3030
4de4c07c
DJ
30312003-08-17 Daniel Jacobowitz <drow@mvista.com>
3032
3033 * Makefile.in (i386-linux-nat.o): Update dependencies.
3034 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3035 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3036 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3037 * i386-linux-nat.c: Include "linux-nat.h".
3038 (child_post_startup_inferior): New function.
3039 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3040 * infptrace.c (kill_inferior): Wrap in #ifdef.
3041 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3042 attaching to each LWP.
3043 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3044 (init_lin_lwp_ops): Fill in some more operations.
3045 * linux-nat.h (linux_enable_event_reporting)
3046 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3047 prototypes.
3048 * linux-nat.c (linux_enable_event_reporting): New function.
3049 (child_post_attach, linux_child_post_startup_inferior)
3050 (child_post_startup_inferior, child_follow_fork)
3051 (linux_handle_extended_wait, kill_inferior): New functions.
3052
7996bcec
AC
30532003-08-16 Andrew Cagney <cagney@redhat.com>
3054
3055 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3056 * gdbarch.h, gdbarch.c: Re-generate.
3057
3d48a7a0
MK
30582003-08-16 Mark Kettenis <kettenis@gnu.org>
3059
3060 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3061
7989c619
AC
30622003-08-16 Andrew Cagney <cagney@redhat.com>
3063
3064 * NEWS: Mention that "set prompt-escape-char" was deleted.
3065 * top.c (get_prompt_1): Delete function.
3066 (gdb_prompt_escape):
3067 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3068 prompt-escape-char" command.
3069 (MAX_PROMPT_SIZE): Delete macro.
3070 (get_prompt): Simplify, do not call get_prompt_1.
3071
07978cd8
AC
30722003-08-16 Andrew Cagney <cagney@redhat.com>
3073
3074 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3075 -Werror. -Wformat-nonliteral problems.
3076
3ff7cf9e
JB
30772003-08-15 J. Brobecker <brobecker@gnat.com>
3078
3079 Further multiarching work mostly for hppa64-*-hpux11:
3080 * hppa-tdep.h: New file.
3081 * hppa-tdep.c: #include hppa-tdep.c.
3082 (hppa32_num_regs): Renamed from hppa_num_regs.
3083 (hppa64_num_regs): New constant.
3084 (hppa64_call_dummy_breakpoint_offset): New constant.
3085 (hppa32_call_dummy_length): New constant.
3086 (hppa64_call_dummy_length): New constant.
3087 (hppa32_stack_align): Make name 32bit explicit.
3088 (hppa32_register_virtual_type): Likewise.
3089 (hppa32_extract_return_value): Likewise.
3090 (hppa32_use_struct_convention): Likewise.
3091 (hppa32_store_return_value): Likewise.
3092 (hppa64_register_virtual_type): New function.
3093 (hppa64_extract_return_value): New function.
3094 (hppa64_use_struct_convention): New function.
3095 (hppa64_store_return_value): New function.
3096 (hppa_frame_locals_address): Remove declaration, function does
3097 not exist anymore.
3098 (hppa_register_byte): Add support for PA64 ABI.
3099 (hppa_gdbarch_init): Add support for PA64 ABI.
3100 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3101 Make name 32bit explicit.
3102 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3103 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3104 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3105 (hppa64_hpux_frame_base_before_sigtramp): New function.
3106 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3107 * config/pa/tm-hppa64.h: Remove macros that are no longer
3108 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3109 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3110 * config/pa/tm-hppah.h: Update function calls in macros
3111 following the function renaming in hppa-hpux-tdep.c.
3112 * Makefile.in (hppa_tdep_h): New variable.
3113 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3114
5d05ca6d
MS
31152003-08-14 Michael Snyder <msnyder@redhat.com>
3116
3117 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3118
37ba2569
JB
31192003-08-13 J. Brobecker <brobecker@gnat.com>
3120
3121 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3122 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3123 routine.
3124
aed7f26a
MS
31252003-08-13 Michael Snyder <msnyder@redhat.com>
3126
3127 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3128 (frv_saved_pc_after_call): Use deprecated ftype.
3129 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3130 (frv_remote_translate_xfer_address): Remove.
3131 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3132
752d4ac1
JB
31332003-08-13 J. Brobecker <brobecker@gnat.com>
3134
3135 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3136 initialization after the common gdbarch initialization, not before.
3137
1426ac1d
JB
31382003-08-13 J. Brobecker <brobecker@gnat.com>
3139
3140 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3141 (ADDR_BITS_REMOVE): Remove, redundant.
3142
b6fbdd1d
JB
31432003-08-13 J. Brobecker <brobecker@gnat.com>
3144
3145 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3146 gdbarch method to clear the 2 low bits of text addresses.
3147
44160db3
AC
31482003-08-12 Andrew Cagney <cagney@redhat.com>
3149
3150 * Makefile.in (dsrec.o): Update dependencies.
3151 * dsrec.c: Include "gdb_assert.h".
3152 (make_srec): Use snprintf instead of sprintf, use a literal format
3153 string.
3154
bcf7d3ca
AC
31552003-08-12 Andrew Cagney <cagney@redhat.com>
3156
3157 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3158 FRAME_OBSTACK_ZALLOC.
3159
49ed40de
KB
31602003-08-12 Kevin Buettner <kevinb@redhat.com>
3161
3162 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3163 SSE registers.
3164
b246147c
MK
31652003-08-10 Mark Kettenis <kettenis@gnu.org>
3166
3167 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3168 amd64fbsd_sc_reg_offset): Add extern declarations.
3169 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3170 declarations.
3171
d95fdc0d
BE
31722003-08-11 Ben Elliston <bje@wasabisystems.com>
3173
3174 * MAINTAINERS (write after approval): Update my mail address.
3175
cf6a0e73
AC
31762003-08-10 Andrew Cagney <cagney@redhat.com>
3177
3178 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3179
f837910f
MK
31802003-08-10 Mark Kettenis <kettenis@gnu.org>
3181
e2dbbd2d
MK
3182 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3183 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3184 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3185 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3186 i386bsd_sc_reg_offset): Add extern declarations.
3187 * i386obsd-nat.c: Include "i386-tdep.h"
3188 (_initialize_i386obsd_nat): Remove extern declarations.
3189 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3190 declarations.
3191 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3192 declarations.
3193
f837910f
MK
3194 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3195 instead of frame_read_register.
3196 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3197 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3198 SP_REGNUM.
3199 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3200 instead of frame_unwind_unsigned_register. Use
3201 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3202 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3203 instead of read_register. Use builtin_type_void_data_ptr instead
3204 of builtin_type_void_func_ptr when extracting the address of the
3205 jmp_buf.
3206 (i386_extract_return_value, i386_store_return_value,
3207 i386_pseudo_register_read, i386_pseudo_register_write): Use
3208 register_size instead REGISTER_RAW_SIZE.
3209
edcf254d
AC
32102003-08-10 Andrew Cagney <cagney@redhat.com>
3211
3212 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3213 sprintf. Make "name" constant.
3214
26604a34
MK
32152003-08-10 Mark Kettenis <kettenis@gnu.org>
3216
192285c6
MK
3217 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3218 instead of frame_read_register.
f837910f
MK
3219 (i387_print_float_info): Use get_frame_register and
3220 get_frame_register_unsigned instead of frame_register_read.
192285c6 3221
f0925262
MK
3222 * i386fbsd-nat.c: Include "i386-tdep.h".
3223 (child_resume): Make `eflags' an ULONGEST. Use
3224 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3225 instead of register_read and register_write.
3226
a144416f
MK
3227 * i386bsd-nat.c (fetch_inferior_registers,
3228 store_inferior_registers): Don't use && at the end of a line.
3229 (_initialize_i386bsd_nat): Fix typo.
3230
fec74868
MK
3231 * frame.c (_initialize_frame): Add missing backslash.
3232
87232496
MK
3233 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3234 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3235 and supply_register instead of manipulating the register buffer
3236 directly.
3237
c9b9de0b
MK
3238 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3239 * config/i386/nm-i386sol2.h
3240 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3241
26604a34
MK
3242 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3243 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3244 instructions that GCC likes to mingle into the prologue. Fixes
3245 gdb/1253 and gdb/1255.
3246
25d29d70
AC
32472003-08-09 Andrew Cagney <cagney@redhat.com>
3248
3249 Fix GDB PR cli/926.
3250 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3251 * command.h (add_setshow_uinteger_cmd): Declare.
3252 * frame.c (set_backtrace_cmd): New function.
3253 (show_backtrace_cmd): New function.
3254 * frame.c (_initialize_frame): Replace "set/show
3255 backtrace-below-main" with "set/show backtrace past-main". Add
3256 command "set/show backtrace limit".
3257 (backtrace_past_main): Rename "backtrace_below_main".
3258 (backtrace_limit): New variable.
3259 (get_prev_frame): Update. Check the backtrace_limit.
3260
9ebf4acf
AC
32612003-08-09 Andrew Cagney <cagney@redhat.com>
3262
3263 * defs.h (xstrprintf): Declare.
3264 * utils.c (xstrprintf): New function.
3265 * breakpoint.c (insert_breakpoints): Replace sprintf and
3266 non-literal format strings, with xstrprintf and cleanups.
3267 (delete_breakpoint,breakpoint_re_set): Ditto.
3268 (commands_command, insert_breakpoints): Ditto.
3269 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3270 (break_at_finish_command_1): Ditto.
3271
3771659b
AC
32722003-08-09 Andrew Cagney <cagney@redhat.com>
3273
3274 * MAINTAINERS (language support): List Adam Fedor as Objective C
3275 maintainer.
3276
b4263afa
JB
32772003-08-08 J. Brobecker <brobecker@gnat.com>
3278
3279 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3280 are now multiarched.
3281
d84defb1
JB
32822003-08-08 J. Brobecker <brobecker@gnat.com>
3283
3284 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3285 longer necessary now that hppa64 is partially multiarch'ed.
3286
f786f615
AC
32872003-08-08 Andrew Cagney <cagney@redhat.com>
3288
3289 * interps.c (interp_set): Check for a NULL "old_interp".
3290
c938e9b0
L
32912003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3292
3293 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3294 (install-only): Support DESTDIR.
3295 (uninstall): Likewise.
3296 (install-gdbtk): Likewise.
3297
9a146a11
EZ
32982003-08-08 Elena Zannoni <ezannoni@redhat.com>
3299
3300 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3301 contains something meaningful at all times.
3302
3303Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3304
62599e99 3305 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3306
56296155
BC
3307Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3308
62599e99 3309 * MAINTAINERS (write after approval): Added self.
56296155 3310
9710e734
AC
33112003-08-07 Andrew Cagney <cagney@redhat.com>
3312
3313 * inferior.h (AT_SYMBOL): Define.
3314 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3315 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3316 * mips-tdep.c (mips_call_dummy_address): Delete function.
3317 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3318 set call_dummy_address.
3319
98b3ab73
AC
33202003-08-07 Andrew Cagney <cagney@redhat.com>
3321
3322 * language.c (op_error): Delete function.
3323 (binop_type_check): Delete function.
3324 * language.h (type_op_error, range_op_error): Delete macros.
3325 (op_error): Delete declaration.
3326
2fcf52f0
AC
33272003-08-07 Andrew Cagney <cagney@redhat.com>
3328
3329 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3330
abd4220e 33312003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3332
abd4220e 3333 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3334 (x86_64_push_arguments): Skip the red zone.
abd4220e 3335
9dd5f34f
AC
33362003-08-05 Andrew Cagney <cagney@redhat.com>
3337
3338 * reggroups.c (reggroup_next): Check for the final entry.
3339
e5e78edc
AC
33402003-08-04 Andrew Cagney <cagney@redhat.com>
3341
ab4e3d93
AC
3342 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3343 * cli/cli-script.c (define_command): Call query directly, instead
3344 of passing it a buffer.
3345 * ocd.c (ocd_error): Pass error a constant format string.
3346 * remote-mips.c (mips_error): Use fputs_filtered.
3347
1062ca82
AC
3348 * solib-svr4.c (_initialize_svr4_solib): Update
3349 register_gdbarch_data call.
3350 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3351
fcc1c85c
AC
3352 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3353 (register_gdbarch_data): Delete "free" parameter. Update
3354 comments.
3355 * gdbarch.h, gdbarch.c: Re-generate.
3356 * reggroups.c (_initialize_reggroup): Update.
3357 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3358 * frame-base.c (_initialize_frame_base): Update.
3359 * frame-unwind.c (_initialize_frame_unwind): Update.
3360 * user-regs.c (_initialize_user_regs): Update.
3361 * remote.c (_initialize_remote): Update.
3362 * regcache.c (_initialize_regcache): Update.
3363
116f06ea
AC
3364 * regcache.c (xfree_regcache_descr): Delete function.
3365 (_initialize_regcache): Update call to register_gdbarch_data.
3366 (init_regcache_descr, init_legacy_regcache_descr): Use
3367 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3368
e5e78edc
AC
3369 * remote.c (free_remote_state): Delete function.
3370 (_initialize_remote): Update register_gdbarch_data.
3371 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3372 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3373
6c7d17ba
AC
33742003-08-04 Andrew Cagney <cagney@redhat.com>
3375
3376 * reggroups.c (struct reggroup_el): Define.
3377 (struct reggroups): Delete field "nr_group". Replace array
3378 "group" with a "first" to "last" linked list.
3379 (reggroups_init): Update. Allocate using gdbarch's obstack.
3380 (reggroups_free): Delete function.
3381 (add_group): Update. Add "el" parameter.
3382 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3383 (default_groups): Update.
3384 (reggroup_next): Replace reggroups.
3385 (reggroups_dump): Update.
3386 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3387 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3388 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3389
89b7795b
DJ
33902003-08-04 Daniel Jacobowitz <drow@mvista.com>
3391
3392 * Makefile.in (tui-interp.o): Update dependencies.
3393
306d9ac5
DC
33942003-08-04 David Carlton <carlton@kealia.com>
3395
3396 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3397 to internal_error call.
3398 * source.c (forward_search_command): Add "%s" format argument.
3399 (reverse_search_command): Ditto.
3400 * top.c (quit_confirm): Ditto.
3401 * cli/cli-setshow.c (do_setshow_command): Ditto.
3402 * cp-valprint.c (cp_print_class_method): Replace
3403 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3404 (cp_print_class_member): Ditto.
3405 * event-top.c (command_line_handler): Ditto.
3406 * linux-proc.c (linux_info_proc_cmd): Ditto.
3407 * p-typeprint.c (pascal_type_print_base): Ditto.
3408 * p-valprint.c (pascal_object_print_class_method): Ditto.
3409 (pascal_object_print_class_member): Ditto.
3410 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3411 * remote.c (remote_cisco_section_offsets): Ditto.
3412 * top.c (command_line_input): Ditto.
3413 * utils.c (vwarning,error_stream,quit): Ditto.
3414 * valprint.c (print_floating,print_binary_chars)
3415 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3416
57bfe177
AC
34172003-08-04 Andrew Cagney <cagney@redhat.com>
3418
3419 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3420
e546b999
AC
34212003-08-02 Andrew Cagney <cagney@redhat.com>
3422
3423 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3424 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3425 amd64fbsd-nat.c.
3426
91092ee5
AC
34272003-08-02 Andrew Cagney <cagney@redhat.com>
3428
3429 * Makefile.in: Update all dependencies and definitions.
3430
889f28e2
AF
34312003-08-02 Adam Fedor <fedor@gnu.org>
3432
3433 * linespec.c (is_objc_method_format): New function
3434 (decode_line_1, locate_first_half): Use it.
3435 Fixes PR objc/1298
3436
880bc914
AC
34372003-08-01 Andrew Cagney <cagney@redhat.com>
3438
3439 * NEWS: Mention that m32r is multi-arch.
3440 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3441 * configure.tgt: Recognize m32r-*-*.
3442 * config/m32r/tm-m32r.h: Delete file.
3443 * config/m32r/m32r.mt: New file.
a8f4cde1 3444 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3445 gethostname succeeds, in order to avoid a compilation
3446 warning.
3447 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3448 compiler warning.
3449
19f59343
MS
34502003-08-01 Michael Snyder <msnyder@redhat.com>
3451
3452 * sh-tdep.c (sh_frame_align): New gdbarch method.
3453 (sh_gdbarch_init): Set up frame_align method.
3454
4e7d7511
MS
34552003-07-31 Michael Snyder <msnyder@redhat.com>
3456
3457 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3458 which is already covered by the new frames infrastructure.
3459
63022984
AC
34602003-07-31 Andrew Cagney <cagney@redhat.com>
3461
3462 * user-regs.c (struct user_reg): Add "next" link.
3463 (struct user_regs): Replace "user" with "first" and "last" links.
3464 (append_user_reg): Add pre-allocated "reg" parameter.
3465 (builtin_user_regs): Provide initial value for "last".
3466 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3467 (user_regs_init): Allocate memory from the gdbarch obstack.
3468 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3469 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3470 linked list.
3471 (usernum_to_user_reg): New function.
3472 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3473 (value_of_user_reg): Use usernum_to_user_reg.
3474 (user_regs_free): Delete function.
3475 (_initialize_user_regs): Update register_gdbarch_data call.
3476
7cf6e574
DJ
34772003-07-31 Daniel Jacobowitz <drow@mvista.com>
3478
3479 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3480
c48a845b
MS
34812003-07-30 Michael Snyder <msnyder@redhat.com>
3482
4e7d7511 3483 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3484 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3485 value_being_returned.
3486 * infcmd.c (print_return_value): Pass zero as struct_addr.
3487 * values.c (value_being_returned): If struct_addr is passed,
3488 use it instead of trying to recover it from the inferior.
3489
f0d8db19
KB
34902003-07-30 Kevin Buettner <kevinb@redhat.com>
3491
3492 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3493 the prologue analyzer won't need to attempt to extract the pc
3494 value from the woefully incomplete dummy frame.
3495 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3496 possible. Disable code which modifies the frame.
3497
e5c113a1
AC
34982003-07-28 Andrew Cagney <cagney@redhat.com>
3499
3500 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3501 to level 2.
3502 (annotate_breakpoints_table, annotate_record): Ditto.
3503 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3504 (annotate_field_name_end, annotate_field_value): Ditto.
3505 (annotate_field_end, annotate_frame_source_begin): Ditto.
3506 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3507 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3508 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3509 (annotate_frame_address_end, annotate_frame_address): Ditto.
3510 (annotate_frame_args, annotate_frame_end): Ditto.
3511 (annotate_frame_where, annotate_arg_begin): Ditto.
3512 (annotate_arg_name_end, annotate_arg_value): Ditto.
3513 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3514 (annotate_function_call, annotate_signal_name): Ditto.
3515 (annotate_signal_string, annotate_signal_name_end): Ditto.
3516 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3517 (annotate_value_begin, annotate_value_history_value): Ditto.
3518 (annotate_value_history_end, annotate_value_end): Ditto.
3519 (annotate_display_begin, annotate_display_number_end): Ditto.
3520 (annotate_display_format, annotate_display_expression): Ditto.
3521 (annotate_display_expression_end, annotate_display_value): Ditto.
3522 (annotate_display_end, annotate_array_section_begin): Ditto.
3523 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3524 (annotate_elt, annotate_array_section_end): Ditto.
3525
bb1db049
AC
35262003-07-28 Andrew Cagney <cagney@redhat.com>
3527
3528 * regcache.c (struct regcache_descr): Update comments on
3529 nr_raw_registers.
3530 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3531 sizeof_raw_register_valid_p.
3532 (init_regcache_descr): Set nr_raw_registers and
3533 sizeof_raw_register_valid_p before calling
3534 init_legacy_regcache_descr.
3535
20e6603c
AC
35362003-07-28 Andrew Cagney <cagney@redhat.com>
3537
3538 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3539 MOD NUM_REGS.
3540
db742940
DJ
35412003-07-28 Daniel Jacobowitz <drow@mvista.com>
3542
3543 * thread.c (info_threads_command): Use get_selected_frame ().
3544 Check that there is at least one non-sentinel frame.
3545
ce7f4371
SC
35462003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3547
3548 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3549 (m68hc11_pop_frame): Remove.
3550 (m68hc11_frame_saved_pc): Remove.
3551 (m68hc11_frame_chain): Remove.
3552 (m68hc11_frame_init_saved_regs): Remove.
3553 (m68hc11_init_extra_frame_info): Remove.
3554 (m68hc11_store_struct_return): Remove.
3555 (m68hc11_saved_pc_after_call): Remove.
3556
1ea653ae
SC
35572003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3558
3559 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3560 frame unwind information.
3561 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3562 and adapted for frame unwinding.
3563 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3564 (m68hc11_unwind_pc): New function.
3565 (m68hc11_frame_unwind_cache): New function to analyze frames.
3566 (m68hc11_frame_this_id): New function to create new frame struct.
3567 (m68hc11_frame_prev_register): New function to unwind a register from
3568 the frame.
3569 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3570 (m68hc11_frame_p): New function for the above.
3571 (m68hc11_frame_base_address): New function to return fp of frame.
3572 (m68hc11_frame_args_address): Update for frame.
3573 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3574 (m68hc11_unwind_sp): New function.
3575 (m68hc11_unwind_dummy_id): New function.
3576 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3577 calls.
3578
c8a7f6ac
SC
35792003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3580
3581 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3582 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3583 when we are beyond the current pc.
3584
3dc990bf
SC
35852003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3586
3587 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3588 from m68hc11_push_arguments.
3589 (m68hc11_push_arguments): Remove.
3590 (m68hc11_push_return_address): Remove.
3591 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3592 handlers; remove deprecated_extra_stack_alignment_needed.
3593
222e5d1d
AC
35942003-07-27 Andrew Cagney <cagney@redhat.com>
3595
3596 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3597 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3598 REAL_PC and not the pointer.
3599 * hppa-hpux-tdep.c: Include frame.h
3600
a7e9a47e
AC
36012003-07-27 Andrew Cagney <cagney@redhat.com>
3602
3603 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3604 GDB_MULTI_ACH_PARTIAL.
3605
7e3dd49e
AC
36062003-07-27 Andrew Cagney <cagney@redhat.com>
3607
3608 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3609 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3610 operator at start and not end of line.
3611 (decode_prologue): Ditto.
3612 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3613 frame_unwind_register_unsigned instead of
3614 frame_unwind_unsigned_register.
3615 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3616 read_register.
3617 (m32r_push_dummy_call): Use register_size instead of
3618 REGISTER_RAW_SIZE.
3619 (m32r_frame_sniffer): Replace m32r_frame_p.
3620 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3621 * m32r-rom.c (report_transfer_performance): Delete extern
3622 declaration.
3623 (m32r_load, m32r_upload_command): Use print_transfer_performance
3624 instead of report_transfer_performance.
3625 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3626 / add_show_from_set.
3627
0880807f
AC
36282003-07-26 Andrew Cagney <cagney@redhat.com>
3629
3630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3631 store_return_value and extract_struct_value_address.
3632
64ae9269
DJ
36332003-07-26 Daniel Jacobowitz <drow@mvista.com>
3634
3635 PR c++/1267
3636 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3637 NULL, default to the section containing PC.
3638
e286caf2
SC
36392003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3640
3641 * NEWS: Mention "regs" deprecated for m68hc11 too.
3642
3643 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3644 (m68hc11_print_register): New function to print out one register.
3645 (m68hc11_print_registers_info): New function to print registers.
3646 (show_regs): Deprecate and use the above.
3647 (m68hc11_gdbarch_init): Install the print_registers_info.
3648
705b278b
JJ
36492003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3650
3651 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3652 that we have a SIGTRAP before returning non-zero.
3653
63cd4198
EZ
36542003-07-23 Michal Ludvig <mludvig@suse.cz>
3655 Elena Zannoni <ezannoni@redhat.com>
3656
a8f4cde1 3657 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3658 find_function_start_sal() returns empty record.
3659
6926787d
AS
36602003-07-23 Andreas Schwab <schwab@suse.de>
3661
3662 * ia64-tdep.c (ia64_print_insn): New function.
3663 (ia64_gdbarch_init): Set print_insn to it.
3664 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3665 deprecated_tm_print_insn_info.
3666
708cc1b6
MS
36672003-07-22 Michael Snyder <msnyder@redhat.com>
3668
3669 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3670 handle 8-bit returns (long long).
3671 (h8300h_extract_return_value): Ditto.
3672 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3673
aebd7893
AC
36742003-07-22 Andrew Cagney <cagney@redhat.com>
3675
3676 * gdbarch.c Include "gdb_obstack.h".
3677 (struct gdbarch): Add an "obstack".
3678 (alloc_gdbarch_data): Allocate the gdbarch data using
3679 GDBARCH_OBSTACK_CALLOC.
3680 (free_gdbarch_data): Delete function.
3681 (gdbarch_obstack_zalloc): New function.
3682 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3683 Assert that the architecture is not initialized.
3684 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3685 vector from the obstack.
3686 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3687 architecture obstack.
3688 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3689 (set_gdbarch_data): Assert that the data is not initialized.
3690 (struct gdbarch_data): Delete member "free".
3691 (register_gdbarch_data): Do not initialize "free".
3692 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3693
153721e6
AC
36942003-07-22 Andrew Cagney <cagney@redhat.com>
3695
3696 * configure.in (build_warnings): Add -Wformat-nonliteral.
3697 * configure: Re-generate.
3698
c193f044 36992003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3700
3701 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3702
c3228f12
EZ
37032003-07-22 Elena Zannoni <ezannoni@redhat.com>
3704
3705 * findvar.c (read_var_value): Remove case for thread local storage
3706 variables. It is now entirely handled by the dwarf2 location
3707 expression code.
3708 * printcmd.c (address_info): Ditto.
3709 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3710 enumeration value.
3711 (struct symbol): Remove objfile field, which was used by
3712 LOC_THREAD_LOCAL_STATIC only.
3713 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3714 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3715 usage of objfile pointer.
3716 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3717 thread local variables.
3718 Add include of objfiles.h.
3719 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3720 storage variables.
3721 * Makefile.in (dwarf2loc.o): Update dependencies.
3722
aef9bcd2
AC
37232003-07-22 Andrew Cagney <cagney@redhat.com>
3724
3725 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3726 get_frame_base.
3727 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3728 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3729 (struct value): Add opaque declaration.
3730 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3731
d95a8903
AC
37322003-07-21 Andrew Cagney <cagney@redhat.com>
3733
3734 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3735 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3736
4db73d49
SC
37372003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3738
a8f4cde1 3739 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3740 regcache_cooked_read_unsigned instead of read_register.
3741 (m68hc11_saved_pc_after_call): Likewise.
3742 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3743 instead of write_register.
3744 (m68hc11_register_type): New function.
3745 (m68hc11_register_virtual_type): Remove.
3746 (m68hc11_store_return_value): Convert to use the regcache.
3747 (m68hc11_extract_struct_value_address): Likewise.
3748 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3749 m68hc11_register_type; undeprecate store_return_value and
3750 extract_struct_value_address.
3751
ef2b8fcd
SC
37522003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3753
3754 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3755 and translate to use regcache.
3756 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3757
625b0b97
AC
37582003-07-18 Andrew Cagney <cagney@redhat.com>
3759
3760 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3761 * gdbarch.h, gdbarch.c: Re-generate.
3762 * i386-tdep.c (i386_gdbarch_init): Do not set
3763 DWARF2_BUILD_FRAME_INFO.
3764 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3765 unconditionally.
3766 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3767 DWARF2_BUILD_FRAME_INFO.
3768
22b0d388
AC
37692003-07-18 Andrew Cagney <cagney@redhat.com>
3770
3771 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3772 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3773
1ce5d6dd
AC
37742003-07-18 Andrew Cagney <cagney@redhat.com>
3775
3776 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3777 frame_unwind_address_in_block, instead of frame_pc_unwind.
3778 (dwarf2_frame_cache): Ditto.
3779
e6e5e94c
AC
37802003-07-18 Andrew Cagney <cagney@redhat.com>
3781
3782 * user-regs.h (struct gdbarch): Declare opaque.
3783 * ui-out.h (struct ui_file): Declare opaque.
3784 * dwarf2-frame.h (struct frame_info): Declare opaque.
3785
5483d879
KW
37862003-07-18 Kris Warkentin <kewarken@qnx.com>
3787
3788 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3789 #include "...".
3790 (procfs_meminfo): Change strerror to safe_strerror.
3791 (procfs_can_run): Remove K&R badness.
3792
278a7cf7
MS
37932003-07-17 Michael Snyder <msnyder@redhat.com>
3794
3795 * remote-sim.c: Comment typo fix.
3796
606e3b82
AC
37972003-07-17 Andrew Cagney <cagney@redhat.com>
3798
3799 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3800 configure.
3801 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3802 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3803 GDB_MULTI_ARCH_PARTIAL.
3804
c43af07c
EZ
38052003-07-17 Elena Zannoni <ezannoni@redhat.com>
3806
3807 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3808 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3809 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3810
3b85b0f1
TR
38112003-07-16 Theodore A. Roth <troth@openavr.org>
3812
3813 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3814 found.
3815 (avr_frame_unwind_cache): Don't unwind FP for main.
3816 Update a comment.
3817 Save the computed prev_sp.
3818 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3819 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3820 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3821
336d1bba
AC
38222003-07-16 Andrew Cagney <cagney@redhat.com>
3823
3824 * frame-base.h (frame_base_p_ftype): Delete definition.
3825 (frame_base_append_predicate): Delete declaration.
3826 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3827 (frame_unwind_append_predicate): Delete declaration.
3828 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3829 (append_predicate): Delete parameter "p".
3830 (frame_unwind_append_predicate): Delete function.
3831 (frame_unwind_append_sniffer): Update call to append_predicate.
3832 (frame_unwind_free): Delete function.
3833 (_initialize_frame_unwind): Pass NULL as "free" to
3834 register_gdbarch_data.
3835 (frame_unwind_init): Append the dummy_frame_sniffer.
3836 (frame_unwind_find_by_frame): Simplify.
3837 * frame-base.c (struct frame_base_table): Delete field "p".
3838 (append_predicate): Delete parameter "p".
3839 (frame_base_append_predicate): Delete function.
3840 (frame_base_append_sniffer): Update call to append_predicate.
3841 (frame_base_free): Delete function.
3842 (frame_base_find_by_frame): Simplify.
3843 (_initialize_frame_base): Pass NULL as "free" to
3844 register_gdbarch_data.
3845 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3846 (x86_64_sigtramp_frame_sniffer): Replace
3847 "x86_64_sigtramp_frame_p".
3848 (x86_64_init_abi): Set the frame unwind sniffers.
3849 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3850 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3851 (m68k_gdbarch_init): Set the frame unwind sniffers.
3852 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3853 "i386_sigtramp_frame_p".
3854 (i386_frame_sniffer): Replace "i386_frame_p".
3855 (i386_gdbarch_init): Set the frame unwind sniffers.
3856 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3857 (avr_gdbarch_init): Set the frame unwind sniffers.
3858 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3859 "alpha_sigtramp_frame_p"
3860 (alpha_heuristic_frame_sniffer): Replace
3861 "alpha_heuristic_frame_p".
3862 (alpha_gdbarch_init): Set the frame unwind sniffers.
3863 (alpha_dwarf2_init_abi): Ditto.
3864 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3865 "alpha_debug_frame_p".
3866 (alpha_mdebug_frame_base_sniffer): Replace
3867 "alpha_mdebug_frame_base_p".
3868 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3869 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3870 (d10v_gdbarch_init): Set the frame unwind sniffer.
3871 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3872 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3873 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3874 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3875 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3876 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3877
48db5a3c
CV
38782003-07-16 Michael Snyder <msnyder@redhat.com>
3879
3880 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3881 should go thru sh_dsp_register_sim_regno, else the dsp regs
3882 will not get the right values.
3883
38842003-07-16 Corinna Vinschen <vinschen@redhat.com>
3885
3886 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3887 deprecated_store_floating by call to store_typed_floating.
3888 (sh_sh4_register_convert_to_raw): Substitute call to
3889 deprecated_extract_floating by call to extract_typed_floating.
3890
38912003-07-16 Corinna Vinschen <vinschen@redhat.com>
3892
3893 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3894
38952003-07-16 Corinna Vinschen <vinschen@redhat.com>
3896
3897 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3898 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3899 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3900 as possible.
3901 (do_pseudo_register): Remove.
3902 (sh_push_dummy_code): New function.
3903 (sh64_store_struct_return): Rename from sh_store_struct_return.
3904 Only called for sh64 now.
3905 (sh_extract_struct_value_address): Regcache'ify.
3906 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3907 and accomodate new tasks.
3908 (sh64_push_return_address): Rename from sh_push_return_address.
3909 Only called for sh64 now.
3910 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3911 Regcache'ify.
3912 (sh3e_sh4_extract_return_value): Regcache'ify.
3913 (sh_default_store_return_value): Ditto.
3914 (sh3e_sh4_store_return_value): Ditto.
3915 (sh_default_register_byte): Remove.
3916 (sh_sh4_register_byte): Remove.
3917 (sh_default_register_raw_size): Remove.
3918 (sh_sh4_register_raw_size): Remove.
3919 (sh_register_virtual_size): Remove.
3920 (sh_sh3e_register_virtual_type): Remove.
3921 (sh_sh3e_register_type): New function.
3922 (sh_sh4_register_virtual_type): Remove.
3923 (sh_sh4_register_type): New function.
3924 (sh_default_register_virtual_type): Remove.
3925 (sh_default_register_type): New function.
3926 (do_fv_register_info): Add parameters to accomodate call from
3927 sh_print_registers_info.
3928 (do_dr_register_info): Ditto.
3929 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3930 Add parameters to accomodate call from sh_print_registers_info.
3931 (sh_do_fp_register): Ditto.
3932 (sh64_do_pseudo_register): Call do_dr_register_info,
3933 do_fv_register_info and sh_do_fp_register with default parameters.
3934 (sh_do_register): Add parameters to accomodate call from
3935 sh_print_registers_info.
3936 (sh_print_register): Ditto.
3937 (sh_print_registers_info): Rename from sh_do_registers_info.
3938 Add parameters to be used as gdbarch_print_registers_info
3939 implementation. Accomodate removed do_pseudo_register function
3940 pointer.
3941 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3942 function pointer. Call sh_print_register with default parameters.
3943 (sh64_do_registers_info): Call sh_print_registers_info instead of
3944 sh_do_registers_info.
3945 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3946 detection of deprecated vs. non-deprecated functionality.
3947 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3948 function pointer assignments by direct function calls.
3949
e8a89fe2
AC
39502003-07-15 Andrew Cagney <cagney@redhat.com>
3951
3952 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3953 (frame_register_unwind, create_new_frame): Ditto.
3954 (legacy_get_prev_frame, get_frame_type): Ditto.
3955 (get_frame_base_address): Use frame_base_find_by_frame.
3956 (get_frame_locals_address): Use frame_base_find_by_frame.
3957 (get_frame_args_address): Use frame_base_find_by_frame.
3958 * frame-base.h (frame_base_sniffer_ftype): Declare.
3959 (frame_base_append_sniffer): Declare.
3960 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3961 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3962 (frame_base_append_sniffer): New function.
3963 (frame_base_append_predicate): Add a NULL sniffer.
3964 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3965 (struct frame_base_table): Add "sniffer".
3966 (frame_base_free): Free the "sniffer" table.
3967 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3968 (frame_unwind_append_sniffer): Declare.
3969 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3970 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3971 (struct frame_unwind_table): Add "sniffer", delete "middle".
3972 (append_predicate): Add "sniffer" parameter, append the sniffer.
3973 (frame_unwind_init): Update append_predicate call.
3974 (frame_unwind_append_sniffer): New function.
3975 (frame_unwind_append_predicate): Update append_predicate call.
3976 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3977
0714963c
AC
39782003-07-15 Andrew Cagney <cagney@redhat.com>
3979
3980 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3981 before code inhibiting repeated unwind attempts. Add to
3982 commentary on that test's problems.
3983 * blockframe.c (inside_main_func): Look for "main" in the minimal
3984 symbol table.
3985 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3986 identical.
3987
d9170e22
AC
39882003-07-15 Andrew Cagney <cagney@redhat.com>
3989
3990 * complaints.c (struct explanation): Define.
3991 (struct complaints): Change type of "explanation" to "struct
3992 explanation".
3993 (symfile_explanations): Convert to a "struct explanation" table.
3994 (vcomplaint): Update.
3995
eba29c8c
ML
39962003-07-15 Michal Ludvig <mludvig@suse.cz>
3997
3998 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3999 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4000 x86_64_linux_(fill,supply)_gregset functions.
4001 * x86-64-linux-tdep.c (USER_*): New defines.
4002 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4003 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4004 New functions.
4005 (fetch_core_registers): Ditto.
4006 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4007 * x86-64-linux-tdep.h: New file.
4008 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4009 and core-regset.o.
4010 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4011
68cc0bfb
MK
40122003-07-13 Mark Kettenis <kettenis@gnu.org>
4013
88a115f7
MK
4014 * x86-64-tdep.c (x86_64_store_return_value): Use
4015 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4016
68cc0bfb
MK
4017 * configure.host: Add x86_64-*-freebsd*.
4018 * configure.tgt: Add x86_64-*-freebsd*.
4019 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4020 * amd64fbsd-nat.c: New file.
4021 * amd64fbsd-tdep.c: New file.
4022 * config/i386/nm-fbsd64.h: New file.
4023 * config/i386/fbsd64.mh: New file.
4024 * config/i386/fbsd64.mt: New file.
4025
138e7be5
MK
40262003-07-11 Mark Kettenis <kettenis@gnu.org>
4027
4028 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4029 `sc_regs_offset' and `sc_fpregs_offset'.
4030 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4031 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4032 (alpha_sigtramp_register_address): Rewrite to use new members of
4033 `struct gdbarch_tdep'.
4034 (alpha_gdbarch_init): Initialize new members of struct
4035 gdbarch_tdep'.
4036 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4037 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4038 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4039 (alphafbsd_pc_in_sigtramp): Implement.
4040 (alphafbsd_sigtramp_offset): New function.
4041 (alphafbsd_sigcontext_addr): New function.
4042 (alphafbsd_init_abi): Initialize signal trampoline related members
4043 of `struct gdbarch_tdep'.
4044 (_initialize_alphafbsd_tdep): Add prototype.
4045
95303a68
TR
40462003-07-11 Theodore A. Roth <troth@openavr.org>
4047
ba292e4c
TR
4048 * Makefile.in (install-only): Quote sed expression when generating
4049 transformed_name.
95303a68 4050
6896c0c7
RH
40512003-07-11 Richard Henderson <rth@redhat.com>
4052
4053 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4054 * dwarf2-frame.c: Include complaints.h.
4055 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4056 variable initialization; return NULL on error.
4057 (decode_frame_entry): New.
4058
8edd5d01
AC
40592003-07-11 Andrew Cagney <cagney@redhat.com>
4060
c4a09524
AC
4061 * frame.h (frame_address_in_block): Delete declaration.
4062 * blockframe.c (frame_address_in_block): Delete function.
4063 (get_frame_block): Use get_frame_address_in_block.
4064 (block_innermost_frame): Ditto.
4065 * stack.c (print_frame, backtrace_command_1): Ditto.
4066
8edd5d01
AC
4067 * frame.h (get_frame_address_in_block): Declare.
4068 (frame_unwind_address_in_block): Declare.
4069 * frame.c (frame_unwind_address_in_block): New function.
4070 (get_frame_address_in_block): New function.
4071
f7968451
AC
40722003-07-10 Andrew Cagney <cagney@redhat.com>
4073
4074 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4075 pre-default. Note: re-generate has no effect.
a8f4cde1 4076
ae99b398
AC
40772003-07-10 Andrew Cagney <cagney@redhat.com>
4078
4079 * gdbarch.sh: When a variable, but not a function, compare against
4080 0. Fix problem in previous patch.
4081 * gdbarch.c: Re-generate.
a8f4cde1 4082
956ac328
AC
40832003-07-10 Andrew Cagney <cagney@redhat.com>
4084
4085 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4086 functions against NULL, not 0.
4087 * gdbarch.c: Re-generate.
a8f4cde1 4088
287c3240
FF
40892003-07-10 Fred Fish <fnf@ninemoons.com>
4090
4091 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4092 null string instead of a null pointer.
4093 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4094
32f63c4b
MS
40952003-07-09 Michael Snyder <msnyder@redhat.com>
4096
4097 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4098
402ecd56
MK
40992003-07-09 Mark Kettenis <kettenis@gnu.org>
4100
4101 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4102 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4103 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4104 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4105 * x86-64-tdep.c: ... from here.
4106
c481dac7
AS
41072003-07-09 Andreas Schwab <schwab@suse.de>
4108
4109 * m68k-tdep.h (enum struct_return): Define.
4110 (struct gdbarch_tdep): Add struct_return.
4111 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4112 bytes are padded to the right, not to the left. Pass struct value
4113 address in register %a1, not on stack.
4114 (m68k_use_struct_convention): New function.
4115 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4116 struct_return in tdep to pcc_struct_return.
4117 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4118 reg_struct_return.
4119
a8f4cde1 41202003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4121
a8f4cde1 4122 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4123
96a4ee76
AC
41242003-07-09 Andrew Cagney <cagney@redhat.com>
4125
4126 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4127 Add comments about the checks.
4128
1517c6d1
AC
41292003-07-08 Andrew Cagney <cagney@redhat.com>
4130
4131 * Makefile.in: Make dependency section headers consistent.
4132 (config_h): Move to $BUILD headers section.
4133 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4134 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4135 (ada-exp.tab.c): Move to YACC/LEX section.
4136 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4137 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4138
dc5dd1eb
KW
41392003-07-08 Kris Warkentin <kewarken@qnx.com>
4140
4141 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4142 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4143 of strerror with safe_strerror, use ISO C function definitions,
4144 and replace instances of sprintf with snprintf.
dc5dd1eb 4145
612dde91
AC
41462003-07-07 Andrew Cagney <cagney@redhat.com>
4147
4148 * frame.c (get_prev_frame): Enable check for identical frames.
4149 Update comments. Update error messages.
4150
492c11d3
JB
41512003-07-07 Joel Brobecker <brobecker@gnat.com>
4152
4153 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4154
376a5a49
JB
41552003-07-07 Joel Brobecker <brobecker@gnat.com>
4156
4157 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4158 sort_symtab_syms, no longer necessary.
4159
22b4a9ad
JB
41602003-07-07 Joel Brobecker <brobecker@gnat.com>
4161
4162 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4163
5bbcb741
JB
41642003-07-07 Joel Brobecker <brobecker@gnat.com>
4165
4166 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4167 (mips_register_byte): Likewise.
4168
c139e7d9
DJ
41692003-07-07 Daniel Jacobowitz <drow@mvista.com>
4170
4171 * Makefile.in (sparc_tdep_h): New.
4172 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4173 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4174 * sparc-linux-nat.c: Include "sparc-tdep.h".
4175 * sparc-nat.c: Likewise.
4176 * sparc-tdep.c: Likewise.
4177 * sparc64nbsd-nat.c: Likewise.
4178 * sparcnbsd-nat.c: Likewise.
4179 * sparcnbsd-tdep.c: Likewise.
4180 * sparc-tdep.h: New file.
4181 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4182 and sparc_npc_regnum.
4183
fd8f87c5
DJ
41842003-07-07 Daniel Jacobowitz <drow@mvista.com>
4185
4186 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4187 (mips_linux_cannot_store_register): List supported instead of
4188 unsupported registers.
4189
13adf674
DJ
41902003-07-07 Daniel Jacobowitz <drow@mvista.com>
4191
4192 * disasm.c (dump_insns): Separate instructions from addresses.
4193
8de307e0
AS
41942003-07-07 Andreas Schwab <schwab@suse.de>
4195
4196 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4197 dependencies.
4198 * m68k-tdep.c (NUM_FREGS): Delete.
4199 (SIG_PC_FP_OFFSET): Delete.
4200 (TARGET_M68K): Delete.
4201 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4202 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4203 P_MOVEL_SP, P_MOVEML_SP): Define.
4204 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4205 P_TRAP): Delete.
4206 (m68k_register_raw_size): Delete.
4207 (m68k_register_virtual_size): Delete.
4208 (m68k_register_type): Renamed from m68k_register_virtual_type and
4209 add gdbarch argument.
4210 (m68k_store_struct_return): Delete.
4211 (m68k_deprecated_extract_return_value): Delete.
4212 (m68k_deprecated_extract_struct_value_address): Delete.
4213 (m68k_frame_chain): Delete.
4214 (m68k_frame_saved_pc): Delete.
4215 (m68k_fix_call_dummy): Delete.
4216 (m68k_push_dummy_frame): Delete.
4217 (m68k_pop_frame): Delete.
4218 (m68k_extract_return_value): New function.
4219 (m68k_store_return_value): Rewrite using regcache.
4220 (m68k_extract_struct_value_address): Rewrite using regcache.
4221 (m68k_push_dummy_call): New function.
4222 (struct m68k_frame_cache): Define.
4223 (m68k_alloc_frame_cache): New function.
4224 (m68k_analyze_frame_setup): New function.
4225 (m68k_analyze_register_saves): New function.
4226 (m68k_analyze_prologue): New function.
4227 (m68k_skip_prologue): Rewrite using above functions.
4228 (m68k_unwind_pc): New function.
4229 (m68k_frame_cache): New function.
4230 (m68k_frame_this_id): New function.
4231 (m68k_frame_prev_register): New function.
4232 (m68k_frame_unwind): New variable.
4233 (m68k_frame_p): New function.
4234 (m68k_sigtramp_frame_cache): New function.
4235 (m68k_sigtramp_frame_this_id): New function.
4236 (m68k_sigtramp_frame_prev_register): New function.
4237 (m68k_sigtramp_frame_unwind): New variable.
4238 (m68k_sigtramp_frame_p): New function.
4239 (m68k_frame_base_address): New function.
4240 (m68k_frame_base): New function.
4241 (m68k_unwind_dummy_id): New function.
4242 (fill_gregset): Use regcache_collect.
4243 (fill_fpregset): Likewise.
4244 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4245 defined.
4246 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4247 deprecated_init_frame_pc, deprecated_store_struct_return,
4248 deprecated_extract_return_value, deprecated_store_return_value,
4249 deprecated_frame_chain, deprecated_frame_saved_pc,
4250 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4251 deprecated_register_virtual_size,
4252 deprecated_max_register_raw_size,
4253 deprecated_max_register_virtual_size,
4254 deprecated_register_virtual_type, deprecated_register_size,
4255 deprecated_register_byte, deprecated_register_bytes,
4256 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4257 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4258 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4259 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4260 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4261 deprecated_push_dummy_frame, deprecated_pop_frame,
4262 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4263 only if SYSCALL_TRAP is defined. Set extract_return_value,
4264 store_return_value, extract_struct_value_address, register_type,
4265 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4266 predicates.
4267 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4268 M68K_MAX_REGISTER_SIZE): Define.
4269 (struct m68k_sigtramp_info): Define.
4270 (struct gdbarch_tdep): Add get_sigtramp_info.
4271 * m68klinux-nat.c (fetch_register): Use register_size instead of
4272 REGISTER_RAW_SIZE. Don't put assignment in if.
4273 (store_register): Likewise.
4274 (fetch_inferior_registers): Likewise.
4275 (store_inferior_registers): Likewise.
4276 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4277 (m68k_linux_frame_saved_pc): Delete.
4278 (m68k_linux_sigcontext_reg_offset,
4279 m68k_linux_ucontext_reg_offset): Define.
4280 (m68k_linux_get_sigtramp_info): New function.
4281 (m68k_linux_extract_return_value): Rewrite using regcache.
4282 (m68k_linux_store_return_value): Likewise.
4283 (m68k_linux_extract_struct_value_address): Likewise.
4284 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4285 Don't set deprecated_frame_saved_pc,
4286 deprecated_extract_return_value, deprecated_store_return_value,
4287 deprecated_extract_struct_value_address. Set
4288 extract_return_value, store_return_value,
4289 extract_struct_value_address.
4290
eb8bc282
AC
42912003-07-07 Andrew Cagney <cagney@redhat.com>
4292
4293 * expprint.c: Include "user-regs.h" instead of "frame.h".
4294 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4295 frame_map_regnum_to_name.
4296 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4297 (frame_map_name_to_regnum): Simplify, call
4298 user_reg_map_name_to_regnum.
4299 (frame_map_regnum_to_name): Simplify, call
4300 user_reg_map_regnum_to_name.
4301 (frame_register_unwind): Update.
4302 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4303 (_initialize_frame_reg): Call user_reg_add_builtin.
4304 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4305 (value_of_register): Use value_of_user_reg.
4306 * eval.c (evaluate_subexp_standard): Update.
4307 * parse.c (write_dollar_variable): Update.
4308 * d10v-tdep.c (d10v_print_registers_info): Update.
4309 * infcmd.c (registers_info): Update.
4310 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4311 (builtin_regs_h): Delete macro.
4312 (user_regs_h): Define.
4313 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4314 (builtin-regs.o): Delete target.
4315 (user-regs.o): Specify dependencies.
4316 (expprint.o): Update dependencies.
4317 (findvar.o): Update dependencies.
4318 (frame.o): Update dependencies.
4319 (std-regs.o): Update dependencies.
4320
9f476a01
CF
43212003-07-06 Christopher Faylor <cgf@redhat.com>
4322
4323 * win32-nat.c (solib_symbols_add): Use one variable for all section
4324 address stuff. Pass variable rather than address of variable to
4325 safe_symbol_file_add.
4326
a731b831
AS
43272003-07-06 Andreas Schwab <schwab@suse.de>
4328
4329 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4330
9f83329d
JB
43312003-07-04 Joel Brobecker <brobecker@gnat.com>
4332
4333 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4334
27e28cc5
KW
43352003-07-04 Kris Warkentin <kewarken@qnx.com>
4336
4337 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4338
43392003-07-04 Kris Warkentin <kewarken@qnx.com>
4340
4341 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4342 * config/i386/nto.mh: New file.
4343 * config/i386/nm-nto.h: New file.
4344 * configure.host: Add i[3456]86-*-nto*.
4345
100f2e98
JB
43462003-07-03 Joel Brobecker <brobecker@gnat.com>
4347
4348 * remote-vx.c (vx_add_symbols): Fix compilation error.
4349
e23457df
AC
43502003-07-03 Andrew Cagney <cagney@redhat.com>
4351
4352 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4353 * gdbarch.h, gdbarch.c: Re-generate.
4354 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4355 (legacy_register_name): Declare.
4356 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4357 (REGISTER_NAME): Define.
4358 * sparc-tdep.c (legacy_register_name): New function.
4359 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4360 (REGISTER_NAME): Define.
4361 (hppa64_register_name): Declare.
4362 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4363 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4364 (hppa64_register_name): New function.
4365 (hppa_register_name): New function.
4366 * arch-utils.c (legacy_register_name): Delete.
4367 * arch-utils.h (legacy_register_name): Delete.
4368
38caaeec
DJ
43692003-07-03 Daniel Jacobowitz <drow@mvista.com>
4370
4371 * cli/cli-interp.c (cli_interpreter_resume): Update the
4372 cli_uiout's stream to gdb_stdout.
4373
dadd712e
AC
43742003-07-03 Andrew Cagney <cagney@redhat.com>
4375
4376 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4377 predicate.
4378 * gdbarch.h, gdbarch.c: Re-generate.
4379 * regcache.c (init_regcache_descr): Use legacy code when either
4380 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4381
c7f1390e
DJ
43822003-07-02 Daniel Jacobowitz <drow@mvista.com>
4383
4384 * NEWS: Move "set logging" entry into GDB 6.0 section.
4385
4bc8c588
JB
43862003-07-02 Jim Blandy <jimb@redhat.com>
4387
a9dd42f1
JB
4388 * s390-tdep.c (struct frame_extra_info): new member:
4389 'stack_bought_valid'.
4390 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4391 initialize fextra_info->stack_bought.
4392 (s390_frameless_function_invocation): Don't trust the value of
4393 fextra_info_ptr->stack_bought unless
4394 fextra_info->stack_bought_valid is set.
4395
4bc8c588
JB
4396 New S390 prologue analyzer.
4397 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4398 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4399 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4400 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4401 compute_x_addr, s390_on_stack, s390_store,
4402 s390_get_signal_frame_info): New functions.
4403 (S390_NUM_SPILL_SLOTS): New macro.
4404 (s390_get_frame_info): Rewritten.
4405 (is_arg_reg): Deleted.
4406
4407 Break out the decoding of S/390 instructions into separate
4408 functions, to make it more legible, and easier to check
4409 against the spec.
4410 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4411 is_rx, is_rxe): New functions.
4412 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4413 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4414 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4415 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4416 enums for opcode values. (Is this an improvement?)
4417
fd13a04a
AC
44182003-07-02 Andrew Cagney <cagney@redhat.com>
4419
4420 * i386-tdep.c: Revert change committed as part of trad-frame code
4421 below.
4422
3f8091c1
DJ
44232003-07-02 Daniel Jacobowitz <drow@mvista.com>
4424
4425 * breakpoint.c (insert_catchpoint): Make static.
4426
8dd5115e
AS
44272003-07-02 Andreas Schwab <schwab@suse.de>
4428
4429 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4430 former ia64_push_arguments and ia64_push_return_address, and use
4431 regcache functions instead of read/write_register.
4432 (ia64_gdbarch_init): Set push_dummy_call instead of
4433 deprecated_push_arguments and deprecated_push_return_address.
4434
a2229c23
AJ
44352003-07-01 Andreas Jaeger <aj@suse.de>
4436
4437 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4438 before the call.
4439 Set %rax only to number of SSE registers used.
4440
3b3850e8
AC
44412003-07-01 Andrew Cagney <cagney@redhat.com>
4442
4443 * trad-frame.h: Update comments, a -1 .addr is reserved.
4444 (trad_frame_value_p, trad_frame_addr_p): Declare.
4445 (trad_frame_reg_p): Declare.
4446 (trad_frame_set_value): Rename trad_frame_register_value.
4447 (trad_frame_set_unknown): Declare.
4448 * trad-frame.c (trad_frame_realreg_p): New function.
4449 (trad_frame_addr_p, trad_frame_value_p): New function.
4450 (trad_frame_set_unknown): New function.
4451 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4452 (trad_frame_prev_register): Use trad_frame_realreg_p,
4453 trad_frame_addr_p and trad_frame_value_p.
4454 (trad_frame_set_value): Rename trad_frame_register_value.
4455 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4456 and trad_frame_set_value.
a2229c23 4457
4d819d0e
JB
44582003-06-30 Jim Blandy <jimb@redhat.com>
4459
4460 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4461 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4462 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4463 for 16 registers, and then 32 more bytes.
4464 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4465 New macros.
4466 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4467 Move up in the file, since it's now used by is_simple_arg.
4468 (is_simple_arg): Don't assume registers are four bytes long.
4469 Exclude all double arguments. Extended floats are not simple
4470 args.
4471 (is_power_of_two): New function.
4472 (pass_by_copy_ref): Call is_power_of_two, and check that the
4473 length fits in a register, rather than listing all the acceptable
4474 sizes. Extended floats are not passed by reference.
4475 (s390_push_arguments): Don't assume registers are four bytes long.
4476 Reserve an argument register to point to the buffer for structures
4477 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4478 S390_STACK_FRAME_OVERHEAD.
4479
1ad828f1
AS
44802003-06-30 Andreas Schwab <schwab@suse.de>
4481
4482 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4483 format error message.
4484
39b00981
JB
44852003-06-30 Joel Brobecker <brobecker@gnat.com>
4486
4487 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4488
b2a7f303
DC
44892003-06-30 David Carlton <carlton@kealia.com>
4490
4491 Band-aid for PR c++/1245.
4492 * Makefile.in (cp-support.o): Depend on complaints_h.
4493 * cp-support.c: Include complaints.h. Add declaration for
4494 find_last_component.
4495 (cp_find_first_component): Separate code into
4496 cp_find_first_component_aux.
4497 (cp_find_first_component_aux): Call demangled_name_complaint.
4498 (demangled_name_complaint): New.
4499
a257b5bb
AC
45002003-06-30 Andrew Cagney <cagney@redhat.com>
4501
4502 * remote.c (remote_write_bytes): Explicitly compute and then use
4503 the payload size. Update comments to reflect. Fixes problem of
4504 GDB not sending small packets as found by Fred Fish.
4505
0a2cfde4
AC
45062003-06-30 Andrew Cagney <cagney@redhat.com>
4507
4508 * remote.c (remote_async_wait): Fix -Wformat problem.
4509
3fcb8548
AC
45102003-06-29 Andrew Cagney <cagney@redhat.com>
4511
4512 * remote.c (remote_wait): Call error, and not warning, when the
4513 packet is corrupt.
4514 (remote_async_wait): Ditto.
4515
9f9970a3
DJ
45162003-06-29 Daniel Jacobowitz <drow@mvista.com>
4517
4518 * sparc-tdep.c (sparc_y_regnum): Make external again.
4519
83a8ccca
DJ
45202003-06-29 Daniel Jacobowitz <drow@mvista.com>
4521
4522 * cli/cli-logging.c (pop_output_files): Add void to function
4523 definition.
4524
d2cf594a
AC
45252003-06-29 Andrew Cagney <cagney@redhat.com>
4526
4527 * frame.c (frame_register_unwind): Use unsigned char when dumping
4528 the buffer contents.
4529
0fac0b41
DJ
45302003-06-28 Daniel Jacobowitz <drow@mvista.com>
4531
4532 * cli/cli-logging.c: New file.
4533 * cli-out.c (struct ui_out_data): Add original_stream.
4534 (cli_redirect): New function.
4535 (cli_ui_out_impl): Add cli_redirect.
4536 (cli_out_new): Initialize original_stream.
4537 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4538 (uo_redirect, ui_out_redirect): New.
4539 * ui-out.h (struct ui_out_impl): Add redirect member.
4540 (redirect_ftype): New.
4541 (ui_out_redirect): Add prototype.
4542 * Makefile.in: Add rules for cli-logging.c.
4543 * NEWS: Mention "set logging".
4544
88a07d7c
EZ
45452003-06-27 Elena Zannoni <ezannoni@redhat.com>
4546
4547 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4548
4eb58876
AC
45492003-06-27 Andrew Cagney <cagney@redhat.com>
4550
4551 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4552 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4553 * avr-tdep.c (avr_call_dummy_address): Delete function.
4554 (avr_gdbarch_init): Do not set call_dummy_address.
4555
1549f619
EZ
45562003-06-27 Elena Zannoni <ezannoni@redhat.com>
4557
4558 * symfile.c (syms_from_objfile): Move variables to inner block.
4559 Move the checks for the non-mainline case a bit earlier to avoid
4560 doing some useless computations.
4561
3cb3398d
EZ
45622003-06-27 Elena Zannoni <ezannoni@redhat.com>
4563
4564 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4565
3799ccc6
EZ
45662003-06-26 Elena Zannoni <ezannoni@redhat.com>
4567
4568 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4569 sections.
4570
ce1f6491
MC
45712003-06-26 Michael Chastain <mec@shout.net>
4572
4573 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4574 gdb/testsuite/gdb.c++/pr-1210.exp.
4575
d958dfd0
AC
45762003-06-26 Andrew Cagney <cagney@redhat.com>
4577
4578 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4579 altivec_expression.h and altivec_registers.h.
4580
d31431ed
AC
45812003-06-26 Andrew Cagney <cagney@redhat.com>
4582
4583 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4584 info->mach when MIPS16. Patch suggested by Fred Fish.
4585
714b1282
AC
45862003-06-26 Andrew Cagney <cagney@redhat.com>
4587
4588 * utils.c (internal_vproblem): Print the problem to a reason
4589 buffer and then pass to query. Make the msg variable more local.
4590
42efa47a
AC
45912003-06-26 Andrew Cagney <cagney@redhat.com>
4592
4593 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4594 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4595 * gdbarch.h, gdbarch.c: Re-generate.
4596 * frame-base.c (default_frame_args_address): Update. Use
4597 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4598 not available.
4599 (default_frame_locals_address): Ditto for
4600 DEPRECATED_FRAME_LOCALS_ADDRESS.
4601 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4602 (vax_frame_num_args): Update.
4603 (vax_gdbarch_init): Update.
4604 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4605 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4606 * mcore-tdep.c (mcore_gdbarch_init): Update.
4607 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4608 * ia64-tdep.c (ia64_gdbarch_init): Update.
4609 * symtab.h (address_class): Update comments.
4610 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4611 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4612 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4613 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4614 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4615 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4616 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4617 * alpha-mdebug-tdep.c: Update.
4618 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4619
8ffd9b1b
AJ
46202003-06-26 Andreas Jaeger <aj@suse.de>
4621
4622 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4623 of SSE registers so that varargs functions work. Rework handling
4624 of passing arguments on the stack.
4625 (x86_64_store_return_value): Return double and float values in SSE
4626 register.
4627
e8ac10a6
MC
46282003-06-24 Michael Chastain <mec@shout.net>
4629
4630 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4631 the "constructor breakpoints ignored" bug.
4632
986af8e6
DC
46332003-06-25 David Carlton <carlton@kealia.com>
4634
4635 * MAINTAINERS: Update e-mail address.
4636
d64558a5
JB
46372003-06-24 Jim Blandy <jimb@redhat.com>
4638
e538d2d7
JB
4639 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4640
02631ec0
JB
4641 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4642 function.
4643 (ppc_linux_init_abi): Register it as the
4644 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4645
e716d87a
JB
4646 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4647 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4648 method.
4649
d64558a5
JB
4650 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4651 (ppc64_standard_linkage_target): Use it.
4652
449a5da4
AC
46532003-06-23 Andrew Cagney <cagney@redhat.com>
4654
4655 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4656 for 0 "int0" and 4 "int32" sized registers.
4657 * gdbtypes.c (builtin_type_int0): Define.
4658 (build_gdbtypes): Initialize builtin_type_int0.
4659 * gdbtypes.h (builtin_type_int0): Declare.
4660
b2a02dda
SC
46612003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4662
4663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4664 as characters are unsigned.
4665
fba3138e
DJ
46662003-06-22 Daniel Jacobowitz <drow@mvista.com>
4667
4668 PR gdb/1179
4669 * dwarfread.c (struct_type): Skip static fields without crashing.
4670
f6c8180b
AC
46712003-06-22 Andrew Cagney <cagney@redhat.com>
4672
4673 GDB 6.0 branch created.
f2c06f52
AC
4674 * README: Update.
4675 * PROBLEMS: Update. Empty.
4676 * NEWS: Update.
f6c8180b 4677
ae822768
DJ
46782003-06-22 Daniel Jacobowitz <drow@mvista.com>
4679
4680 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4681 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4682
261de166
AC
46832003-06-22 Andrew Cagney <cagney@redhat.com>
4684
4685 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4686 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4687 Velikov.
4688
30e94205
DJ
46892003-06-22 Daniel Jacobowitz <drow@mvista.com>
4690
4691 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4692 compilers.
4693
9e14d721
DJ
46942003-06-21 Daniel Jacobowitz <drow@mvista.com>
4695
4696 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4697 argument of val_print.
4698 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4699 to the address argument of baseclass_offset or target_read_memory.
4700 Do add it to the argument of cp_print_value_fields.
4701
a4b8ebc8
AC
47022003-06-21 Andrew Cagney <cagney@redhat.com>
4703
4704 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4705 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4706 instead of 0..NUM_REGS.
4707 (mips_register_reggroup_p): New function.
4708 (mips_pseudo_register_write): New function.
4709 (mips_pseudo_register_read): New function.
4710 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4711 based on the register's type.
4712 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4713 cooked.
4714 (mips_get_saved_register): Simplify. Assert that REGNO is a
4715 pseudo / cooked.
4716 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4717 (mips_register_type): Replace mips_register_virtual_type. Map
4718 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4719 when available.
4720 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4721 that the register is cooked / virtual.
4722 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4723 Only get the extra info when needed.
4724 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4725 (mips32_heuristic_proc_desc): Fetch the cooked register.
4726 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4727 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4728 (mips_print_register): Use gdbarch_register_type, instead of
4729 REGISTER_VIRTUAL_TYPE.
4730 (print_gp_register_row): Use gdbarch_register_type, instead of
4731 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4732 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4733 Print the pseudo / cooked registers.
4734 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4735 Print the pseudo / cooked registers.
4736 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4737 REG_NUM is pseudo / cooked.
4738 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4739 (mips_n32n64_xfer_return_value): Ditto.
4740 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4741 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4742 (mips_register_sim_regno): New function.
4743 (mips_gdbarch_init): Set deprecated_register_byte,
4744 register_group_p, pseudo_register_write, pseudo_register_read,
4745 register_sim_regno, and num_pseudo_regs. Set register_type,
4746 instead of register_virtual_type.
4747 * Makefile.in (mips-tdep.o): Update dependencies.
4748 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4749 REGISTER_VIRTUAL_TYPE.
4750 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4751 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4752 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4753 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4754 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4755
325ed089
DJ
47562003-06-21 Daniel Jacobowitz <drow@mvista.com>
4757
4758 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4759 * cli/cli-cmds.c: Include "gdb_vfork.h".
4760 (shell_escape): Use vfork.
4761
f0e7d0e8
AC
47622003-06-21 Andrew Cagney <cagney@redhat.com>
4763
c57bb9fa
AC
4764 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4765 32 bit floating-point register saves.
4766
6e51443a
AC
4767 * frame.h (deprecated_unwind_get_saved_register): Delete.
4768 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4769 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4770 and deprecated_get_next_frame_hack instead of
4771 deprecated_unwind_get_saved_register.
4772
ed183c7c
AC
4773 * mips-tdep.c (mips_dump_tdep): Do not print
4774 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4775
f0e7d0e8
AC
4776 * frame.c (get_frame_register): New function.
4777 (frame_unwind_register_signed): New function.
4778 (get_frame_register_signed): New function.
4779 (frame_unwind_register_unsigned): New function.
4780 (get_frame_register_unsigned): New function.
4781 * frame.h: Add comments on naming schema.
4782 (get_frame_register, frame_unwind_register_signed): Declare.
4783 (get_frame_register_signed, get_frame_register_signed): Declare.
4784 (frame_unwind_register_unsigned): Declare.
4785 (get_frame_register_unsigned): Declare.
4786
2224d941
TR
47872003-06-20 Theodore A. Roth <troth@openavr.org>
4788
4789 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4790
8619218d
TR
47912003-06-20 Theodore A. Roth <troth@openavr.org>
4792
4793 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4794 (avr_read_sp): Ditto.
4795
0b1b50c0
DJ
47962003-06-20 Daniel Jacobowitz <drow@mvista.com>
4797
4798 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4799 * config/arm/nm-linux.h: Likewise.
4800 * config/arm/tm-linux.h: Likewise.
4801 * config/ia64/nm-linux.h: Likewise.
4802 * config/ia64/tm-ia64.h: Likewise.
4803 * config/s390/tm-linux.h: Likewise.
4804 * config/s390/tm-s390.h: Likewise.
4805 * s390-nat.c: Likewise.
4806 * s390-tdep.c: Likewise.
4807
4808 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4809 * config/ia64/linux.mt: Likewise.
4810 * config/m68k/linux.mh: Likewise.
4811 * config/mips/linux.mt: Likewise.
4812 * config/powerpc/linux.mh: Likewise.
4813 * config/sh/linux.mt: Likewise.
4814
c8c18e65
KW
48152003-06-19 Kris Warkentin <kewarken@qnx.com>
4816
4817 * solib.c (solib_open): Change tests for whether to search
4818 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4819 comments.
4820
dcccef2e
TR
48212003-06-19 Theodore A. Roth <troth@openavr.org>
4822
4823 * avr-tdep.c (avr_frame_address): Delete function.
4824 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4825 set_gdbarch_frame_args_address.
4826
5861a190
AC
48272003-06-19 Andrew Cagney <cagney@redhat.com>
4828
4829 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4830 (REGISTER_CONVERT_FROM_TYPE): Delete.
4831 (mips_register_convert_to_type): Delete declaration.
4832 (mips_register_convert_from_type): Delete declaration.
4833 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4834 kernel/.
4835
0274a8ce
MS
48362003-06-19 Michael Snyder <msnyder@redhat.com>
4837
4838 * linux-nat.h: New file.
4839 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4840 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4841 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4842 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4843 (linux_make_note_section): Iterate over lwps instead of threads.
4844 (linux_do_thread_registers): Use lwp instead of merged pid.
4845 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4846 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4847 Add dependency on linux_nat_h.
4848
adf5f719
TR
48492003-06-19 Theodore A. Roth <troth@openavr.org>
4850
4851 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4852
6766a268
DJ
48532003-06-19 Daniel Jacobowitz <drow@mvista.com>
4854
4855 * varobj.c (get_type, get_target_type): Use check_typedef.
4856
1171114a
DJ
48572003-06-19 Daniel Jacobowitz <drow@mvista.com>
4858
4859 * breakpoint.c (insert_catchpoint): Call internal_error.
4860
adcf68a2
TR
48612003-06-19 Theodore A. Roth <troth@openavr.org>
4862
4863 * avr-tdep.c (avr_push_dummy_code): Delete function.
4864 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4865
ea67f13b
DJ
48662003-06-19 Daniel Jacobowitz <drow@mvista.com>
4867
4868 * arch-utils.c (default_prepare_to_proceed): Remove.
4869 (generic_prepare_to_proceed): Remove.
4870 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4871 (generic_prepare_to_proceed): Remove prototype.
4872 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4873 * gdbarch.c: Regenerate.
4874 * gdbarch.h: Regenerate.
4875 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4876 * hppah-nat.c (hppa_switched_threads): Remove.
4877 * infrun.c (prepare_to_proceed): New static function, copied from
4878 generic_prepare_to_proceed. Remove select_it argument.
4879 (proceed): Call prepare_to_proceed.
4880 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4881 variables.
4882 (ptrace_wait): Don't set the removed variables.
4883 (hppa_switched_threads): Remove.
4884 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4885 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4886 (lin_lwp_prepare_to_proceed): Remove prototype.
4887 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4888 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4889
4add8633
TR
48902003-06-18 Theodore A. Roth <troth@openavr.org>
4891
4892 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4893 trad-frame.h.
4894 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4895 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4896 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4897 (AVR_PROLOGUE_*): Enumerate prologue types.
4898 (struct frame_extra_info): Remove.
4899 (struct avr_unwind_cache): Define.
4900 (avr_write_sp): Delete function.
4901 (avr_read_fp): Ditto.
4902 (avr_init_extra_frame_info): Ditto.
4903 (avr_pop_frame): Ditto.
4904 (avr_frame_saved_pc): Ditto.
4905 (avr_saved_pc_after_call): Ditto.
4906 (avr_push_return_address): Ditto.
4907 (avr_frame_chain): Ditto.
4908 (avr_store_struct_return): Ditto.
4909 (avr_push_arguments): Ditto.
4910 (avr_scan_prologue): Update comments. Changed to set up the info for
4911 cache unwinding. Now returns end of prologue PC.
4912 (avr_skip_prologue): Better handling of functions lacking a prologue
4913 by using avr_scan_prologue.
4914 (avr_scan_arg_moves): New function.
4915 (avr_saved_regs_unwinder): Ditto.
4916 (avr_frame_unwind_cache): Ditto.
4917 (avr_unwind_pc): Ditto.
4918 (avr_frame_this_id): Ditto.
4919 (avr_frame_prev_register): Ditto.
4920 (avr_frame_p): Ditto.
4921 (avr_frame_base_address ): Ditto.
4922 (avr_unwind_dummy_id): Ditto.
4923 (avr_push_dummy_code): Ditto.
4924 (push_stack_item): Ditto.
4925 (pop_stack_item): Ditto.
4926 (avr_push_dummy_call): Ditto.
4927 (struct stack_item): Define.
4928 (avr_frame_unwind): Declare structure.
4929 (avr_frame_base): Ditto.
4930 (avr_gdbarch_init): Remove calls to
4931 set_gdbarch_deprecated_init_frame_pc,
4932 set_gdbarch_deprecated_target_read_fp,
4933 set_gdbarch_deprecated_dummy_write_sp,
4934 set_gdbarch_deprecated_fp_regnum,
4935 set_gdbarch_deprecated_push_arguments,
4936 set_gdbarch_deprecated_push_return_address,
4937 set_gdbarch_deprecated_pop_frame,
4938 set_gdbarch_deprecated_store_struct_return,
4939 set_gdbarch_deprecated_frame_init_saved_regs,
4940 set_gdbarch_deprecated_init_extra_frame_info,
4941 set_gdbarch_deprecated_frame_chain,
4942 set_gdbarch_deprecated_frame_saved_pc,
4943 set_gdbarch_deprecated_saved_pc_after_call.
4944 Add calls to set_gdbarch_push_dummy_call,
4945 set_gdbarch_push_dummy_code,
4946 frame_unwind_append_predicate,
4947 frame_base_set_default,
4948 set_gdbarch_unwind_dummy_id,
4949 set_gdbarch_unwind_pc.
4950 Wrap a long line.
4951
7be04a68
MS
49522003-06-18 Corinna Vinschen <vinschen@redhat.com>
4953
4954 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4955 registers for H8/300S.
4956 (h8300_print_registers_info): Ditto.
8ffd9b1b 4957 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4958
ae087d01
DJ
49592003-06-18 Daniel Jacobowitz <drow@mvista.com>
4960
4961 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4962 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4963 (lin_lwp_wait): Likewise. Update comments.
4964 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4965 (pull_pid_from_list, linux_record_stopped_pid): New.
4966
07d8f827
SC
49672003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4968
4969 * ada-lang.c (scan_discrim_bound): Name first argument.
4970 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4971 declared by ALL_BLOCK_SYMBOLS.
4972
7cb47b14
SC
49732003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4974
4975 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4976 ("regcache.h"): Include it.
4977 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4978
6ad8ae5c
DJ
49792003-06-17 Daniel Jacobowitz <drow@mvista.com>
4980
4981 * NEWS: Mention gdbserver detach change and "disconnect" command.
4982 * infcmd.c (disconnect_command): New function.
4983 (_initialize_infcmd): Add ``disconnect'' command.
4984 * remote.c (remote_async_detach): Delete.
4985 (remote_detach): Merge remote_async_detach.
4986 (remote_disconnect): New.
4987 (init_remote_ops): Set to_disconnect.
4988 (init_remote_cisco_ops): Likewise.
4989 (init_remote_async_ops): Likewise. Use remote_detach.
4990 * target.c (cleanup_target): Default to_disconnect.
4991 (update_current_target): Inherit to_disconnect.
4992 (target_disconnect, debug_to_disconnect): New functions.
4993 (setup_target_debug): Set to_disconnect.
4994 * target.h (struct target_ops): Add to_disconnect.
4995 (target_disconnect): Add prototype.
4996
687595f9
DJ
49972003-06-17 Daniel Jacobowitz <drow@mvista.com>
4998
4999 * breakpoint.c (insert_catchpoint): New function.
5000 (insert_breakpoints): Use catch_exceptions to call
5001 insert_catchpoint. Disable catchpoints if they fail to insert.
5002
29239a8f
DJ
50032003-06-17 Daniel Jacobowitz <drow@mvista.com>
5004
5005 * symfile.c (reread_symbols): Clear sym_private.
5006
2cdf3c63
AC
50072003-06-17 Andrew Cagney <cagney@redhat.com>
5008
5009 * trad-frame.h (struct frame_info): Add opaque declaration.
5010 * remote-fileio.h (struct cmd_list_element): Add opaque
5011 declaration.
5012 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5013 comments.
5014
cf0e1e0d
DJ
50152003-06-17 Daniel Jacobowitz <drow@mvista.com>
5016
5017 * remote.c (remote_prepare_to_store): Replace call to
5018 deprecated_read_register_bytes with multiple regcache_raw_read
5019 calls.
5020
192cdb19
KW
50212003-06-17 Kris Warkentin <kewarken@qnx.com>
5022
5023 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5024 (nto_find_and_open_solib): Likewise.
5025 (nto_init_solib_absolute_prefix): Likewise.
5026 (_initialize_nto_tdep): Fix indentation.
5027
89929b45
KW
50282003-06-17 Kris Warkentin <kewarken@qnx.com>
5029
5030 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5031
46019f27
KW
50322003-06-17 Kris Warkentin <kewarken@qnx.com>
5033
5034 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5035
1a38736e
JB
50362003-06-17 Jim Blandy <jimb@redhat.com>
5037
5038 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5039
3605c34a
TR
50402003-06-16 Theodore A. Roth <troth@openavr.org>
5041
5042 * avr-tdep.c (avr_extract_return_value): New function.
5043 (avr_gdbarch_init): Set extract_return_value method.
5044
870b3035
AC
50452003-06-16 Andrew Cagney <cagney@redhat.com>
5046
5047 * frame.h (deprecated_get_next_frame_hack): Declare.
5048 * frame.c (legacy_saved_regs_prev_register): Only require
5049 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5050 there are always saved regs.
5051 (deprecated_generic_get_saved_register): Do not require
5052 DEPRECATED_FRAME_INIT_SAVED_REGS.
5053 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5054 use frame ID unwind instead.
5055 (deprecated_get_next_frame_hack): New function.
5056
63d47a7d
CV
50572003-06-16 Corinna Vinschen <vinschen@redhat.com>
5058
5059 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5060 (h8300_push_dummy_call): ...this function. Some minor optimization.
5061 (h8300_push_return_address): Remove.
5062 (h8300_gdbarch_init): Remove calls to
5063 set_gdbarch_deprecated_dummy_write_sp,
5064 set_gdbarch_deprecated_push_arguments and
5065 set_gdbarch_deprecated_push_return_address.
5066 Add call to set_gdbarch_push_dummy_call.
5067
4bb1dc5e
CV
50682003-06-16 Corinna Vinschen <vinschen@redhat.com>
5069
5070 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5071 (E_PSEUDO_EXR_REGNUM): Ditto.
5072 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5073 registers into safe registers.
4bb1dc5e
CV
5074 (h8300_skip_prologue): Check for stm instruction to push registers
5075 used for register variables onto stack.
5076 (gdb_print_insn_h8300): Remove.
5077 (h8300_examine_prologue): Add a comment.
5078 (h8300_register_name): Take pseudo registers into account.
5079 (h8300s_register_name): Ditto.
5080 (h8300sx_register_name): Ditto.
5081 (h8300_print_register): Ditto.
5082 (h8300_print_registers_info): Define "nice" printing order.
5083 (h8300_saved_pc_after_call): Take pseudo registers into account.
5084 (h8300_register_type): Ditto. Return type used for remote connection
5085 when requesting real CCR or EXR register, return actual type when
5086 requesting pseudo CCR or EXR.
5087 (h8300_pseudo_register_read): New function.
5088 (h8300_pseudo_register_write): Ditto.
5089 (h8300_dbg_reg_to_regnum): Ditto.
5090 (h8300s_dbg_reg_to_regnum): Ditto.
5091 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5092 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5093 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5094 set_gdbarch_print_insn architecture dependent.
5095 Call set_gdbarch_pseudo_register_read and
5096 set_gdbarch_pseudo_register_write.
5097 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5098
a59fe496
AC
50992003-06-16 Andrew Cagney <cagney@redhat.com>
5100
5101 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5102 * gdbarch.h, gdbarch.c: Re-generate.
5103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5104 * s390-tdep.c (s390_gdbarch_init): Update.
5105 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5106 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5107 * mips-tdep.c (mips_gdbarch_init): Update.
5108 * mcore-tdep.c (mcore_gdbarch_init): Update.
5109 * cris-tdep.c (cris_gdbarch_init): Update.
5110 * infcall.c (call_function_by_hand): Update.
5111 * ia64-tdep.c (ia64_push_arguments): Update comment.
5112 * frame.c (legacy_get_prev_frame): Do not assume
5113 SAVE_DUMMY_FRAME_TOS_P.
5114 * dummy-frame.c (find_dummy_frame): Update comment.
5115
6f4e5a41
AC
51162003-06-16 Andrew Cagney <cagney@redhat.com>
5117
5118 * regcache.c (do_cooked_read): Do not use register_valid_p.
5119
72fab697
TR
51202003-06-15 Theodore A. Roth <troth@openavr.org>
5121
5122 * avr-tdep.c (avr_register_type): Remove a blank line.
5123 (avr_scan_prologue): Correct some comments.
5124
e3d8b004
TR
51252003-06-15 Theodore A. Roth <troth@openavr.org>
5126
5127 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5128 prologue types.
8ffd9b1b 5129 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5130 option.
5131 Add code to scan -mcall-prologues for mega devices.
5132
866b76ea
TR
51332003-06-15 Theodore A. Roth <troth@openavr.org>
5134
5135 * avr-tdep.c (avr_register_byte): Delete function.
5136 (avr_register_raw_size): Delete function.
5137 (avr_register_virtual_size): Delete function.
5138 (avr_register_virtual_type): Delete function.
5139 (avr_register_type): New function.
5140 (avr_address_to_pointer): Remove unused code.
5141 (avr_read_fp): Need to read FP as two separate bytes due to change to
5142 avr_register_type() usage.
5143 (avr_gdbarch_init): Don't set deprecated_register_size.
5144 Don't set deprecated_register_bytes.
5145 Don't set deprecated_register_byte.
5146 Don't set deprecated_register_raw_size.
5147 Don't set deprecated_max_register_raw_size.
5148 Don't set deprecated_register_virtual_size.
5149 Don't set deprecated_max_register_virtual_size.
5150 Don't set deprecated_register_virtual_type.
5151 Set register_type method.
5152
3993f6b1
DJ
51532003-06-15 Daniel Jacobowitz <drow@mvista.com>
5154
5155 * Makefile.in (linux-nat.o): Add rule.
5156 * linux-nat.c: New file.
5157 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5158 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5159 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5160 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5161 * config/arm/linux.mh (NATDEPFILES): Likewise.
5162 * config/i386/linux.mh (NATDEPFILES): Likewise.
5163 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5164 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5165 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5166 * config/mips/linux.mh (NATDEPFILES): Likewise.
5167 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5168 * config/s390/s390.mh (NATDEPFILES): Likewise.
5169 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5170
786a90bb
MK
51712003-06-15 Mark Kettenis <kettenis@gnu.org>
5172
5173 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5174 replace out-of-date comment.
5175
3bd3f01e
AC
51762003-06-15 Andrew Cagney <cagney@redhat.com>
5177
5178 * rdi-share/host.h (Fail): Change to a varargs function.
5179 * remote-rdi.c (Fail): Update.
8ffd9b1b 5180
de5b9bb9
MK
51812003-06-15 Mark Kettenis <kettenis@gnu.org>
5182
5183 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5184 (i386_convert_register_p, i386_register_to_value,
5185 i386_register_from_value): Handle types longer than 8 bytes.
5186
d532c08f
MK
51872003-06-15 Mark Kettenis <kettenis@gnu.org>
5188
5189 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5190 Move floating-point code to new function in i387-tdep.c.
5191 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5192 New functions containing code moved here from i386-tdep.c.
5193 * i387-tdep.h: Add opaque declaration for `struct type'.
5194 (i387_register_to_value, i387_value_to_register): New prototypes.
5195 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5196 (x86_64_init_abi): Set convert_register_p, register_to_value and
5197 value_to_register here.
8ffd9b1b 5198
42c466d7
AC
51992003-06-14 Andrew Cagney <cagney@redhat.com>
5200
5201 * mips-tdep.c (mips_register_to_value): Make static.
5202 (mips_value_to_register): Make static.
5203 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5204 * ia64-tdep.c (ia64_register_raw_size): Make static.
5205 (ia64_register_virtual_size): Make static.
5206 (ia64_register_byte): Make static.
5207 * i387-tdep.c: Include "i387-tdep.h".
5208 (print_387_control_word): Delete function.
5209 (print_387_status_word): Delete function.
5210 (print_387_status_bits): Delete function.
5211 (print_387_control_bits): Delete function.
5212 * Makefile.in (i387-tdep.o): Update dependencies.
5213 * rdi-share/host.h (Fail): Declare.
5214 * remote-rdi.c (Fail): Update to match declaration.
5215
2a9cda49
AC
52162003-06-14 Andrew Cagney <cagney@redhat.com>
5217
5218 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5219 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5220 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5221 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5222 * README: Delete reference to remote-array.
5223 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5224 (remote-array.o): Delete target.
5225 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5226 * remote-array.c: Delete file.
5227
ff2e87ac
AC
52282003-06-14 Andrew Cagney <cagney@redhat.com>
5229 Mark Kettenis <kettenis@gnu.org>
5230
5231 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5232 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5233 parameter with "frame".
5234 * gdbarch.h, gdbarch.c: Re-generate.
5235 * frame.h (put_frame_register): Declare.
5236 * frame.c (put_frame_register): New function.
5237 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5238 (legacy_register_to_value): Rewrite, use "frame" to get the
5239 register value.
5240 (legacy_value_to_register): Rewrite, use "frame" to find the
5241 register's location before storing.
5242 * arch-utils.h (legacy_convert_register_p): Update.
5243 (legacy_register_to_value, legacy_value_to_register): Update.
5244 * findvar.c (value_from_register): Rewrite, eliminate use of
5245 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5246 "frame" to REGISTER_TO_VALUE.
5247 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5248 lval_reg_frame_relative + lval_register branch of the switch. Do
5249 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5250 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5251 I386_EDI_REGNUM): New defines.
5252 (i386_next_regnum, i386_convert_register_p,
5253 i386_register_to_value, i386_value_to_register): New functions.
5254 (i386_register_convertible, i386_register_convert_to_virtual,
5255 i386_convert_to_raw): Remove functions.
5256 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5257 value_to_register instead of register_convertible,
5258 register_convert_to_virtual and register_convert_to_raw.
5259 * mips-tdep.c (mips_convert_register_p): New function.
5260 (mips_value_to_register): Replace mips_register_convert_from_type.
5261 (mips_register_to_value): Replace mips_register_convert_to_type.
5262 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5263 register_to_value.
5264 * alpha-tdep.c (alpha_convert_register_p): Update.
5265 (alpha_value_to_register): Update, store the register.
5266 (alpha_register_to_value): Update, fetch the register.
5267
98be1e77
TR
52682003-06-14 Theodore A. Roth <troth@openavr.org>
5269
5270 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5271 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5272 Don't set deprecated_call_dummy_words.
5273 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5274 Don't set remote_translate_xfer_address.
5275 (avr_io_reg_read_command): Remove commented out debug printf.
5276 Wrap a long line.
5277
57bc6122
TR
52782003-06-14 Theodore A. Roth <troth@openavr.org>
5279
5280 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5281 causes gdb to seg fault.
5282
eb01fc62
DJ
52832003-06-14 Daniel Jacobowitz <drow@mvista.com>
5284
5285 * sparc-nat.c (fetch_inferior_registers): Correct
5286 a reference to "registers".
5287
3b3e6bee
DJ
52882003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5289
5290 * Makefile.in (exc_request_U_h): Define
5291 (exc_request_S_h): Likewise.
5292 (msg_reply_S_h): Likewise.
5293 (msg_U_h): Likewise.
5294 (notify_S_h): Likewise.
5295 (process_reply_S_h): Likewise.
5296 (gnu-nat.o): Depend on gdb_obstack_h
5297 * gnu-nat.c: Include "gdb_obstack.h".
5298
b8de8283
AC
52992003-06-13 Andrew Cagney <cagney@redhat.com>
5300
5301 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5302 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5303
f3be58bc
AC
53042003-06-13 Andrew Cagney <cagney@redhat.com>
5305
5306 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5307 when deprecated REGISTER macros can be deleted.
5308 * gdbarch.h, gdbarch.c: Re-generate.
5309
4c0122c8
JB
53102003-06-13 Jim Blandy <jimb@redhat.com>
5311
5312 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5313 Linux entry point symbols for _dl_debug_state, too.
5314
3e210248
AC
53152003-06-13 Andrew Cagney <cagney@redhat.com>
5316
5317 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5318 available, do not use the FP register, and always save the TOS.
5319 * dummy-frame.c (dummy_frame_this_id): Do not assert
5320 SAVE_DUMMY_FRAME_TOS.
5321 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5322 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5323 (i386_push_dummy_call): Add 8 to the returned SP.
5324 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5325 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5326 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5327 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5328 (x86_64_push_dummy_call): Return "sp + 16".
5329 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5330 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5331 save_dummy_frame_tos.
5332
0b65af49
JB
53332003-06-13 Jim Blandy <jimb@redhat.com>
5334
5335 * frv-tdep.c (frv_use_struct_convention): Delete static
5336 declaration for function deleted in my change of 2003-06-12.
5337
4ea2465e
TR
53382003-06-13 Theodore A. Roth <troth@openavr.org>
5339
5340 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5341 (avr_pointer_to_address): Shift code addrs left 1 bit.
5342 (avr_convert_from_func_ptr_addr): Delete function since operation is
5343 better handled by avr_address_to_pointer and avr_pointer_to_address.
5344 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5345
1581182a
MK
53462003-06-13 Mark Kettenis <kettenis@gnu.org>
5347
5348 From Kelley Cook <kelleycook@wideopenwest.com>:
5349 * configure.host: Accept i[34567]86 variants.
5350 * configure.tgt: Likewise.
5351 * nlm/configure.in: Likewise.
5352 * nlm/configure: Regenerated.
5353
7aa1783e
RE
53542003-06-13 Richard Earnshaw <rearnsha@arm.com>
5355
5356 * arm-tdep.c (solib-svr4.h): Dont' include it.
5357 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5358 * arm-linux-tdep.c: ... here. Make static.
5359 (arm_linux_init_abi): Register it.
5360 (solib-svr4.h): Include it.
5361 * Makefile.in: Update dependencies.
5362 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5363 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5364
0261a0d0
CV
53652003-06-13 Corinna Vinschen <vinschen@redhat.com>
5366
5367 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5368 indicate registers used for return values.
5369 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5370 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5371 members.
5372 (h8300_init_extra_frame_info): Ditto.
5373 (h8300_frame_locals_address): Removed.
5374 (h8300_frame_args_address): Removed.
5375 (h8300_extract_return_value): Use new regcache structure. Only care
5376 for 16 bit CPUs.
5377 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5378 (h8300_store_return_value): Use new regcache structure. Only care
5379 for 16 bit CPUs.
5380 (h8300h_store_return_value): Same function for 32 bit CPUs.
5381 (h8300_store_struct_return): Removed.
5382 (h8300_extract_struct_value_address): Use new regcache structure.
5383 (h8300h_extract_struct_value_address): Removed.
5384 (h8300_push_dummy_code): New function.
5385 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5386 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5387 set_gdbarch_store_return_value architecture dependent.
5388 Call set_gdbarch_push_dummy_code and
5389 set_gdbarch_extract_struct_value_address.
5390 Remove calls to set_gdbarch_frame_args_address,
5391 set_gdbarch_frame_locals_address,
5392 set_gdbarch_deprecated_store_struct_return,
5393 set_gdbarch_deprecated_extract_return_value,
5394 set_gdbarch_deprecated_extract_struct_value_address,
5395 set_gdbarch_deprecated_call_dummy_words and
5396 set_gdbarch_deprecated_sizeof_call_dummy_words.
5397
055c394a
CV
53982003-06-13 Corinna Vinschen <vinschen@redhat.com>
5399
5400 * h8300-tdep.c (h8300_register_byte): Remove.
5401 (h8300h_register_byte): Remove.
5402 (h8300_register_virtual_type): Remove. Substitute by...
5403 (h8300_register_type): New function.
5404 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5405 (h8300h_extract_struct_value_address): Ditto.
5406 (h8300_gdbarch_init): Drop calls to
5407 set_gdbarch_deprecated_register_byte and
5408 set_gdbarch_deprecated_register_virtual_type.
5409 Add call to set_gdbarch_register_type.
5410
9c04cab7
AC
54112003-06-13 Andrew Cagney <cagney@redhat.com>
5412
5413 * gdbarch.sh: Update comments on registers.
5414 (deprecated_register_byte): Rename register_byte.
5415 (deprecated_register_raw_size): Rename register_raw_size.
5416 (deprecated_register_virtual_size): Rename register_virtual_size.
5417 (deprecated_register_virtual_type): Rename register_virtual_type.
5418 * gdbarch.h, gdbarch.c: Re-generate.
5419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5420 * vax-tdep.c (vax_gdbarch_init): Update.
5421 * v850-tdep.c (v850_gdbarch_init): Update.
5422 * sparc-tdep.c (sparc_gdbarch_init): Update.
5423 * sh-tdep.c (sh_gdbarch_init): Update.
5424 * s390-tdep.c (s390_gdbarch_init): Update.
5425 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5426 * ns32k-tdep.c: Update.
5427 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5428 * mips-tdep.c (mips_gdbarch_init): Update.
5429 * mcore-tdep.c (mcore_gdbarch_init): Update.
5430 * m68k-tdep.c (m68k_gdbarch_init): Update.
5431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5432 * ia64-tdep.c (ia64_gdbarch_init): Update.
5433 * hppa-tdep.c (hppa_gdbarch_init): Update.
5434 * h8300-tdep.c (h8300_gdbarch_init): Update.
5435 * frv-tdep.c (frv_gdbarch_init): Update.
5436 * cris-tdep.c (cris_gdbarch_init): Update.
5437 * avr-tdep.c (avr_gdbarch_init): Update.
5438 * alpha-tdep.c (alpha_gdbarch_init): Update.
5439 * arm-tdep.c (arm_gdbarch_init): Update.
5440
b060cbea
AC
54412003-06-13 Andrew Cagney <cagney@redhat.com>
5442
5443 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5444 mips_o32_use_struct_convention with always_use_struct_convention.
5445
0fc9922a
DC
54462003-06-12 David Carlton <carlton@kealia.com>
5447
5448 * cp-namespace.c (cp_set_block_scope): Comment out
5449 processing_has_namespace_info branch.
5450
1fd35568
JB
54512003-06-12 Jim Blandy <jimb@redhat.com>
5452
f470a70a
JB
5453 Recognize and skip 64-bit PowerPC Linux linkage functions.
5454 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5455 insn_pattern, insns_match_pattern, d_field, ds_field): New
5456 functions, macros, and types for working with PPC instructions.
5457 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5458 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5459 ppc64_skip_trampoline_code): New functions, variables, and macros
5460 for recognizing and skipping linkage functions.
5461 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5462 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5463
49ff75ad
JB
5464 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5465 register offsets for both the 32- and 64-bit interfaces.
5466
bd918c83
JB
5467 Actually finish the job started by my change of 2003-05-29.
5468 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5469 other #definition of this.
5470 (ppc_linux_skip_trampoline_code): Remove declaration.
5471 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5472 static.
5473 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5474 method for GDBARCH.
5475
5476 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5477 'long' on ppc64-*-linux*.
5478
f8c59253
JB
5479 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5480 isn't #defined, assume the register doesn't exist: act as if
5481 tdep->ppc_mq_regnum were -1.
5482
8fbb30b1
JB
5483 * configure.host, configure.tgt: Add entries for
5484 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5485 powerpc/linux.mt.
5486 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5487 New files.
5488
1fd35568
JB
5489 * arch-utils.c (always_use_struct_convention): New function.
5490 * arch-utils.h (always_use_struct_convention): New prototype.
5491 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5492 (alpha_gdbarch_init): Register always_use_struct_convention,
5493 instead of alpha_use_struct_convention.
5494 * cris-tdep.c (cris_use_struct_convention): Delete.
5495 (cris_gdbarch_init): Register always_use_struct_convention,
5496 instead of cris_use_struct_convention.
5497 * frv-tdep.c (frv_use_struct_convention): Delete.
5498 (frv_gdbarch_init): Register always_use_struct_convention,
5499 instead of frv_use_struct_convention.
5500 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5501 (h8300_gdbarch_init): Register always_use_struct_convention,
5502 instead of h8300_use_struct_convention.
e3305dd9 5503 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5504 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5505 instead of mips_o32_use_struct_convention.
5506
e14e6e9c
AC
55072003-06-12 Andrew Cagney <cagney@redhat.com>
5508
5509 * wince.c: Include "mips-tdep.h".
5510 * mips-tdep.h (mips_next_pc): Declare.
5511 * mcore-tdep.c: Make more local functions static.
5512 * Makefile.in (wince.o): Update dependencies.
5513
2335f48e
DC
55142003-06-12 David Carlton <carlton@kealia.com>
5515
5516 * symtab.c (lookup_symbol_aux_minsyms): Replace
5517 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5518 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5519 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5520 SYMBOL_NATURAL_NAME.
5521
f70a7d61
AS
55222003-06-12 Andreas Schwab <schwab@suse.de>
5523
5524 * Makefile.in (tuiDisassem.o): Update dependencies.
5525
b6429628
DC
55262003-06-12 David Carlton <carlton@bactrian.org>
5527
5528 * symtab.h: Delete declaration of make_symbol_overload_list.
5529 Add declaration of lookup_partial_symbol.
5530 * symtab.c (remove_params): Move to cp-support.c.
5531 (overload_list_add_symbol, make_symbol_overload_list)
5532 (sym_return_val_size, sym_return_val_index): Ditto.
5533 (lookup_partial_symbol): Make extern.
5534 * cp-support.h: Add declaration of make_symbol_overload_list.
5535 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5536 symtab.h, and block.h.
5537 (remove_params): Move here from symtab.c.
5538 (overload_list_add_symbol, make_symbol_overload_list)
5539 (sym_return_val_size, sym_return_val_index): Ditto.
5540 * valops.c: Include cp-support.h.
5541 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5542 frame_h, and block_h.
5543 (valops.o): Depend on cp_support_h.
5544
084edea5
CV
55452003-06-12 Corinna Vinschen <vinschen@redhat.com>
5546
5547 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5548 substitute by NUM_REGS throughout.
5549 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5550 (h8300s_register_name): New function for H8S registers.
5551 (h8300sx_register_name): Ditto for H8SX registers.
5552 (h8300_print_register): Revise register printing, avoid depending
5553 on 32 bit long.
0261a0d0 5554 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5555 (h8300h_register_byte): New function for any other architecture.
5556 (h8300_register_raw_size): Remove.
5557 (h8300_register_virtual_type): Revise to return actually useful
5558 type.
5559 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5560 (h8300h_extract_struct_value_address): New function for any other
5561 architecture.
5562 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5563 set_gdbarch_register_name, set_gdbarch_register_byte,
5564 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5565 Remove calls to set_gdbarch_deprecated_register_size,
5566 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5567 set_gdbarch_deprecated_max_register_raw_size,
5568 set_gdbarch_register_virtual_size and
5569 set_gdbarch_deprecated_max_register_virtual_size entirely.
5570 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5571 set_gdbarch_long_double_bit.
5572
06194148
JJ
55732003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5574
8ffd9b1b
AJ
5575 * doublest.c (convert_doublest_to_floatformat): When dealing
5576 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5577 processing a full 32 bits of mantissa.
5578
de4f826b
DC
55792003-06-11 David Carlton <carlton@bactrian.org>
5580
5581 * dictionary.h: New.
5582 * dictionary.c: New.
5583 * block.h: Add opaque declaration for struct dictionary.
5584 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5585 'sym' members.
5586 (BLOCK_DICT): New macro.
5587 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5588 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5589 BLOCK_SHOULD_SORT.
5590 (ALL_BLOCK_SYMBOLS): Update definition.
5591 * Makefile.in (SFILES): Add dictionary.c.
5592 (dictionary_h): New.
5593 (COMMON_OBS): Add dictionary.o.
5594 (dictionary.o): New.
5595 (ada-lang.o): Depend on dictionary_h.
5596 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5597 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5598 (mi-cmd-stack.o): Ditto.
5599 (gdbtk-cmds.o): Update dependencies.
5600 (gdbtk-stack.o): Ditto.
5601 * ada-lang.c: Include dictionary.h.
5602 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5603 (fill_in_ada_prototype, debug_print_block): Ditto.
5604 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5605 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5606 'is_sorted'.
5607 * mdebugread.c: Include dictionary.h.
5608 (struct parse_stack): Delete 'maxsyms' member.
5609 (parse_symbol): Update calls to new_block. Delete calls to
5610 shrink_block. Use dictionary methods.
5611 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5612 Update calls to new_symtab. Don't maintain maxsyms data.
5613 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5614 (add_symbol): Just call dict_add_symbol.
5615 (new_symtab): Delete 'maxsyms' argument.
5616 (new_symtab): Update calls to new_block.
5617 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5618 (shrink_block): Delete function.
5619 (fixup_sigtramp): Update call to new_block. Add symbol via
5620 dict_add_symbol.
5621 * jv-lang.c: Include dictionary.h.
5622 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5623 appropriately. Set class_symtab->free_func. Make sure the
5624 blockvector is big enough to hold two blocks.
5625 (add_class_symtab_symbol): Use dictionary methods.
5626 (free_class_block): New function.
5627 (type_from_class): Replace explicit iteration by
5628 ALL_BLOCK_SYMBOLS.
5629 * symtab.h (struct symtab): Replace 'free_ptr' method by
5630 'free_func'.
5631 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5632 sort_symtab_syms.
5633 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5634 sort_symtab_syms.
5635 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5636 Include dictionary.h.
5637 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5638 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5639 sort_symtab_syms.
5640 * objfiles.c: Include dictionary.h.
5641 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5642 * buildsym.c: Include dictionary.h.
5643 (finish_block): Use dictionary methods.
5644 (end_symtab): Set free_func to NULL, not free_ptr.
5645 * tracepoint.c: Include dictionary.h.
5646 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5647 (scope_info): Ditto.
5648 * stack.c: Include dictionary.h.
5649 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5650 (print_block_frame_labels, print_frame_arg_vars)
5651 (print_frame_args): Ditto.
5652 * symmisc.c (free_symtab_block): Use dictionary methods.
5653 (dump_symtab): Ditto.
5654 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5655 Include dictionary.h.
5656 * symfile.h: Delete declarations of sort_block_syms,
5657 sort_symtab_syms.
5658 * symfile.c (sort_block_syms): Delete.
5659 (sort_symtab_syms): Delete.
5660 * symtab.c: Include dictionary.h.
5661 (lookup_block_symbol): Use dictionary iterators.
5662 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5663 (search_symbols, make_symbol_completion_list): Ditto.
5664 (make_symbol_overload_list): Ditto.
5665 * valops.c (value_of_local): Use dict_empty.
5666 Include dictionary.h.
5667
a31f978c
JB
56682003-06-11 J. Brobecker <brobecker@gnat.com>
5669
5670 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5671
526e70c0
DC
56722003-06-11 David Carlton <carlton@bactrian.org>
5673
5674 * block.h (BLOCK_SHOULD_SORT): Delete.
5675 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5676 blocks.
5677 * ada-lang.c (ada_add_block_symbols): Ditto.
5678 * symfile.c (sort_block_syms): Delete.
5679 (sort_symtab_syms): Ditto.
5680 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5681 declarations.
5682 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5683 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5684 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5685 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5686 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5687 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5688 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5689
33c08150
JJ
56902003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5691
8ffd9b1b 5692 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5693 bits to 128.
5694
781a750d
AC
56952003-06-11 Andrew Cagney <cagney@redhat.com>
5696
5697 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5698 REGISTER_CONVERTIBLE.
5699 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5700 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5701 * gdbarch.h, gdbarch.c: Re-generate.
5702 * arch-utils.h (deprecated_register_convertible_not): Rename
5703 generic_register_convertible_not.
5704 * arch-utils.c (deprecated_register_convertible_not): Rename
5705 generic_register_convertible.
5706 (legacy_convert_register_p, legacy_register_to_value): Update.
5707 * sh-tdep.c (sh64_push_arguments): Update.
5708 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5709 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5710 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5711 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5712 * arch-utils.c (legacy_value_to_register): Update.
5713 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5714 (rs6000_register_convert_to_raw): Make parameter "from" const.
5715 * mips-tdep.c (mips_gdbarch_init): Update.
5716 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5717 * infcmd.c (default_print_registers_info): Update.
5718 * ia64-tdep.c (ia64_gdbarch_init): Update.
5719 (ia64_register_convert_to_raw): Make parameter "from" const.
5720 * i386-tdep.c (i386_gdbarch_init): Update.
5721 (i386_register_convert_to_raw): Update.
5722
cd90e54f
AC
57232003-06-11 Andrew Cagney <cagney@redhat.com>
5724
5725 * remote-fileio.c: Include "remote-fileio.h".
5726 * Makefile.in (remote-fileio.o): Update dependencies.
5727 (remote_fileio_h): Fix typo.
5728
a78f21af
AC
57292003-06-11 Andrew Cagney <cagney@redhat.com>
5730
5731 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5732 (xstormy16_save_dummy_frame_tos): Make static.
5733 (_initialize_xstormy16_tdep): Add declaration.
5734 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5735 * v850-tdep.c: Make local functions static.
5736 (_initialize_v850_tdep): Add declaration.
5737 * sparc-tdep.c: Make local functions static.
5738 (_initialize_sparc_tdep): Add declaration.
5739 * sh-tdep.c: Make local functions static.
5740 (_initialize_sh_tdep): Add declaration.
5741 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5742 * s390-tdep.c: Make local functions static.
5743 (_initialize_s390_tdep): Add declaration.
5744 * dbxread.c (find_stab_function_addr): Make static.
5745 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5746 * ocd.c (_initialize_remote_ocd): Add declaration.
5747 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5748 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5749 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5750 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5751 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5752 * remote-array.c (_initialize_array): Add declaration.
5753 (_initialize_remote_monitors): Add declaration.
5754 * remote-mips.c: Make local functions static.
5755 (_initialize_remote_mips): Add declaration.
5756 * mcore-tdep.c: Make all local functions static.
5757 (_initialize_mcore_tdep): Add declaration.
5758 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5759 * abug-rom.c (_initialize_abug_rom): Add declaration.
5760 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5761 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5762 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5763 * remote-est.c (_initialize_est): Add declaration.
5764 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5765 (m68hc11_call_dummy_address): Make static.
5766 * ia64-tdep.c: Make local functions static.
5767 (_initialize_ia64_tdep): Add declaration.
5768 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5769 * monitor.c (monitor_wait_filter): Make static.
5770 (_initialize_remote_monitors): Add declaration.
5771 * remote-hms.c (_initialize_remote_hms): Add declaration.
5772 * remote-e7000.c (fetch_regs_from_dump): Make static.
5773 (expect_n): Make static.
5774 (_initialize_remote_e7000): Add declaration.
5775 * ser-e7kpc.c: Always include "defs.h".
5776 (_initialize_ser_e7000pc): Add declaration.
5777 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5778 * cris-tdep.c: Make all but one function static.
5779 (_initialize_cris_tdep): Add declaration.
5780 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5781 * solib.c (update_solib_list): Make static.
5782 (_initialize_solib): Add declaration.
5783 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5784 (_initialize_avr_tdep): Add declaration.
5785 * remote-rdi.c (voiddummy): Make static.
5786 (_initialize_remote_rdi): Add declaration.
5787 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5788 * remote-rdp.c (send_rdp): Make static.
5789 (_initialize_remote_rdp): Add declaration.
5790 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5791
cbcdb1f5
CV
57922003-06-11 Corinna Vinschen <vinschen@redhat.com>
5793
5794 * remote-fileio.c: Make ari happy.
5795
a191ea8d
JB
57962003-06-10 J. Brobecker <brobecker@gnat.com>
5797
5798 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5799 fetching the trailing bytes of the buffer we are about to write.
5800
0ef75e11
AC
58012003-06-10 Andrew Cagney <cagney@redhat.com>
5802
5803 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5804 * Makefile.in (remote-fileio.o): Update dependencies.
5805 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5806 include <setjmp.h>, or <sys/types.h> conditional on USG.
5807 (remote_fio_jmp_buf): Delete global variable.
5808
449092f6 58092003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5810 Martin M. Hunt <hunt@redhat.com>
449092f6 5811
559fa028
AC
5812 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5813 (SFILES): Add remote-fileio.c.
5814 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5815 dependencies for building remote.o.
449092f6
CV
5816 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5817 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5818 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5819 static storage class.
5820 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5821 'F' packet.
5822 (_initialize_remote): Call initialize_remote_fileio().
5823 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5824 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5825 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5826 (captured_main): Initialize new ui_files.
5827 * ui-file.c: Add read and fgets input functions.
5828 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5829 (null_file_read): New function.
5830 (ui_file_read): New function.
5831 (set_ui_file_read): New function.
5832 (stdio_file_read): New function.
5833 * ui-file.h: New type ui_file_read_ftype.
5834 (set_ui_file_read): Declare.
5835 (ui_file_read): Declare.
5836
248de703
AC
58372003-06-09 Andrew Cagney <cagney@redhat.com>
5838
5839 * frame.h (deprecated_unwind_get_saved_register): Rename
5840 generic_unwind_get_saved_register, update comments.
5841 * mips-tdep.c (mips_get_saved_register): Update.
5842 * frame.c (deprecated_unwind_get_saved_register): Update.
5843
0ed8aa57
AC
58442003-06-09 Andrew Cagney <cagney@redhat.com>
5845
5846 * vax-tdep.c (vax_frame_locals_address): Delete function.
5847 (vax_gdbarch_init): Do not set frame_locals_address.
5848 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5849 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5850 * s390-tdep.c (s390_frame_args_address): Delete function.
5851 (s390_gdbarch_init): Do not set frame_args_address or
5852 frame_locals_address.
5853 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5854 (ns32k_gdbarch_init): Do not set frame_locals_address.
5855 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5856 (hppa_frame_locals_address): Delete function.
5857 (hppa_gdbarch_init): Do not set frame_args_address, or
5858 frame_locals_address.
5859 * arm-tdep.c (arm_frame_args_address): Delete.
5860 (arm_frame_locals_address): Delete.
5861 (arm_gdbarch_init): Do not set frame_args_address, or
5862 frame_locals_address.
5863
983a287a
AC
58642003-06-09 Andrew Cagney <cagney@redhat.com>
5865
5866 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5867 * gdbarch.h, gdbarch.c: Re-generate.
5868 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5869 * arch-utils.c (frame_num_args_unknown): Delete function.
5870 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5871 (frame_info): Use FRAME_NUM_ARGS_P.
5872 * arm-tdep.c (arm_frame_num_args): Delete function.
5873 (arm_gdbarch_init): Do not set frame_num_args.
5874 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5875 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5876 (hppa_gdbarch_init): Do not set frame_num_args.
5877 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5878 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5879 frame_num_args to default frame_num_args_unknown.
5880 * v850-tdep.c (v850_gdbarch_init): Ditto.
5881 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5882 * sh-tdep.c (sh_gdbarch_init): Ditto.
5883 * s390-tdep.c (s390_gdbarch_init): Ditto.
5884 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5885 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5886 * mips-tdep.c (mips_gdbarch_init): Ditto.
5887 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5888 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5891 * i386-tdep.c (i386_gdbarch_init): Ditto.
5892 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5893 * frv-tdep.c (frv_gdbarch_init): Ditto.
5894 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5895 * cris-tdep.c (cris_gdbarch_init): Ditto.
5896 * avr-tdep.c (avr_gdbarch_init): Ditto.
5897 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5898
8d3b0994
AC
58992003-06-09 Andrew Cagney <cagney@redhat.com>
5900
5901 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5902 (print_frame_args): Moved to "stack.c".
5903 * stack.c: Include "gdb_assert.h".
5904 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5905 (print_frame_args): Moved from "printcmd.c".
5906 * frame.h (print_frame_args): Delete declaration.
5907 * Makefile.in (stack.o): Update dependencies.
5908
25e3a86b
AC
59092003-06-08 Andrew Cagney <cagney@redhat.com>
5910
5911 * frame.c (get_prev_frame): Remove reference to
5912 frame_args_address_correct in comments.
5913 * frame-base.c (default_frame_args_address): Delete code
5914 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5915 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5916 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5917 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5918 (vax_frame_args_address_correct): Delete declaration.
5919
a9e5fdc2
AC
59202003-06-08 Andrew Cagney <cagney@redhat.com>
5921
5922 * gdbarch.sh (UNWIND_SP): Add.
5923 * gdbarch.h, gdbarch.c: Re-generate.
5924 * frame.c (frame_sp_unwind): New function.
5925 (get_frame_sp): New function.
5926 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5927 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5928 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5929 value.
5930 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5931 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5932
8983bd83
AC
59332003-06-08 Andrew Cagney <cagney@redhat.com>
5934
7fec2c59
AC
5935 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5936 REMOTE_BREAKPOINT.
5937 * remote.c: Update.
5938 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5939 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5940 * config/m68k/tm-sun3.h: Update.
5941 * config/m68k/tm-m68klynx.h: Update.
5942 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5943
8983bd83
AC
5944 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5945 trad_frame". Update comments.
5946 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5947 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5948 (trad_frame_register_value, trad_frame_prev_register): Update.
5949
b9362cc7
AC
59502003-06-08 Andrew Cagney <cagney@redhat.com>
5951
5952 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5953 from GCC's acinclude.m4.
5954 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5955 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5956 * main.c (error_init): Delete declaration.
5957 * defs.h (error_init): Declare.
5958 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5959 (rs6000_convert_from_func_ptr_addr): Make static.
5960 (_initialize_rs6000_tdep): Add declaration.
5961 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5962 (show_commands, set_verbose, show_history): Delete declaration.
5963 * top.h (set_verbose): Add declaration.
5964 (show_history, set_history, show_commands): Add declaration.
5965 (do_restore_instream_cleanup): Add declaration.
5966 * objc-lang.c (specialcmp): Make static.
5967 (print_object_command): Make static.
5968 (find_objc_msgsend): Make static.
5969 (find_objc_msgcall_submethod_helper): Make static.
5970 (find_objc_msgcall_submethod): Make static.
5971 (_initialize_objc_language): Add declaration.
5972 (find_implementation_from_class): Make static.
5973 (find_implementation): Make static.
5974 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5975 * objc-lang.h (lookup_struct_typedef): Add declaration.
5976 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5977 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5978 (do_restore_user_call_depth): Make static.
5979 (do_restore_instream_cleanup): Delete declaration.
5980 (dont_repeat): Delete declaration.
5981 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5982 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5983 * reggroups.c (_initialize_reggroup): Add declaration.
5984 * cp-support.c (_initialize_cp_support): Add declaration.
5985 * cp-abi.c (_initialize_cp_abi): Add declaration.
5986 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5987 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5988 (_initialize_gnu_v3_abi): Add declaration.
5989 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5990 (_initialize_gnu_v2_abi): Add declaration.
5991 * frame-base.c (_initialize_frame_base): Add declaration.
5992 * doublest.c (floatformat_from_length): Make static.
5993 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5994 * frame.c (create_sentinel_frame): Make static.
5995 (_initialize_frame): Add declaration.
5996 * top.c (do_catch_errors): Make static.
5997 (gdb_rl_operate_and_get_next_completion): Make static.
5998 * typeprint.c: Include "typeprint.h".
5999 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6000 (sentinel_frame_this_id): Make static.
6001 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6002 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6003 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6004 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6005 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6006 * maint.c (maintenance_print_architecture): Make static.
6007 * signals/signals.c (_initialize_signals): Add declaration.
6008 * std-regs.c (_initialize_frame_reg): Add declaration.
6009 * jv-exp.y (push_variable): ISO C definition.
6010 (push_qualified_expression_name): Ditto.
6011 * memattr.c (_initialize_mem): Add declaration.
6012 * remote.c (remote_check_watch_resources): Make static.
6013 (remote_stopped_by_watchpoint): Make static.
6014 (remote_stopped_data_address): Make static.
6015 * d10v-tdep.c (nr_dmap_regs): Make static.
6016 (a0_regnum): Make static.
6017 (d10v_frame_unwind_cache): Make static.
6018 (d10v_frame_p): Make static.
6019 * osabi.c (show_osabi): Make static.
6020 (_initialize_gdb_osabi): Add extern declaration.
6021 * gdbtypes.c (make_qualified_type): Make static.
6022 (safe_parse_type): Make static.
6023 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6024 * macrotab.c (macro_bcache_free): Make static.
6025 * interps.c (interp_set_quiet): Make static.
6026 (interpreter_exec_cmd): Make static.
6027 * stack.h (select_frame_command): New file.
6028 * stack.c: Include "stack.h".
6029 (select_frame_command_wrapper): Delete function.
6030 (select_frame_command): Make global.
6031 * infcall.c: Include "infcall.h".
6032 * linespec.c: Include "linespec.h".
6033 * symfile.c (sections_overlap): Make static.
6034 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6035 * charset.c (_initialize_charset): Add missing prototype.
6036 * regcache.c (init_legacy_regcache_descr): Make static.
6037 (do_regcache_xfree): Make static.
6038 (regcache_xfer_part): Make static.
6039 (_initialize_regcache): Add missing prototype.
6040 * breakpoint.c (parse_breakpoint_sals): Make static.
6041 (breakpoint_sals_to_pc): Make static.
6042 * interps.h (clear_interpreter_hooks): ISO C declaration.
6043 * Makefile.in (stack_h): Define.
6044 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6045 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6046
a0f267c7
AC
60472003-06-08 Andrew Cagney <cagney@redhat.com>
6048
6049 * Makefile.in (d10v-tdep.o): Update dependencies.
6050 (SFILES): Add trad-frame.c.
6051 (trad_frame_h): Define.
6052 (COMMON_OBS): Add trad-frame.o.
6053 (trad-frame.o): Specify dependencies.
6054 * d10v-tdep.c: Include "trad-frame.h".
6055 (saved_regs_unwinder): Delete function.
6056 (d10v_frame_prev_register): Use trad_frame_prev_register.
6057 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6058 trad_frame", delete "regs" and "prev_sp".
6059 (prologue_find_regs): Use trad-frame.
6060 * trad-frame.h, trad-frame.c: New files.
6061
4538b4f4
MK
60622003-06-08 Mark Kettenis <kettenis@gnu.org>
6063
6064 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6065
a0273b2f
AF
60662003-06-07 Adam Fedor <fedor@gnu.org>
6067
6068 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6069 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6070 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6071 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6072 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6073 Use it.
6074
3a6c3343
AC
60752003-06-07 Andrew Cagney <cagney@redhat.com>
6076
6077 * symfile.h: Re-indent, clean up comments.
6078
b46e02f6
AC
60792003-06-07 Andrew Cagney <cagney@redhat.com>
6080
6081 * inferior.h (deprecated_write_sp): Replace
6082 generic_target_write_sp.
6083 * regcache.c (deprecated_write_sp): Replace
6084 generic_target_write_sp.
6085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6086 * vax-tdep.c (vax_gdbarch_init): Update.
6087 * v850-tdep.c (v850_gdbarch_init): Update.
6088 * sparc-tdep.c (sparc_gdbarch_init): Update.
6089 * sh-tdep.c (sh_gdbarch_init): Update.
6090 * s390-tdep.c (s390_gdbarch_init): Update.
6091 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6092 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6093 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6094 * mcore-tdep.c (mcore_gdbarch_init): Update.
6095 * m68k-tdep.c (m68k_gdbarch_init): Update.
6096 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6097 * ia64-tdep.c (ia64_gdbarch_init): Update.
6098 * h8300-tdep.c (h8300_gdbarch_init): Update.
6099 * frv-tdep.c (frv_gdbarch_init): Update.
6100 * cris-tdep.c (cris_gdbarch_init): Update.
6101 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6102
a42e117c
AC
61032003-06-07 Andrew Cagney <cagney@redhat.com>
6104
6105 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6106 Assert that PC_REGNUM is valid.
6107 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6108
bd1ce8ba
AC
61092003-06-07 Andrew Cagney <cagney@redhat.com>
6110
6111 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6112 * gdbarch.h, gdbarch.c: Regenerate.
6113 * mn10300-tdep.c: Include "gdb_assert.h".
6114 (mn10300_read_fp): New function.
6115 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6116 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6117 * ia64-tdep.c: Include "gdb_assert.h".
6118 (ia64_read_fp): New function.
6119 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6120 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6121 * regcache.c (generic_target_read_sp): Delete function.
6122 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6123 * inferior.h (generic_target_read_sp): Delete declaration.
6124 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6125 generic_target_read_sp.
6126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6127 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6128 * sh-tdep.c (sh_gdbarch_init): Ditto.
6129 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6130 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6131
ec5cbaec
AC
61322003-06-07 Andrew Cagney <cagney@redhat.com>
6133
6134 * gdbarch.sh: Comment each field of startup_gdbarch.
6135 * gdbarch.h, gdbarch.c: Re-generate.
6136
cde9ea48
AC
61372003-06-07 Andrew Cagney <cagney@redhat.com>
6138
6139 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6140 * gdbarch.h, gdbarch.c: Re-generate.
6141 * regcache.c: Update comments on read_pc et.al.
6142 (generic_target_read_pc): Delete function.
6143 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6144 * inferior.h (generic_target_read_pc): Delete declaration.
6145 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6146 generic_target_read_pc.
6147 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6148 * sh-tdep.c (sh_gdbarch_init): Ditto.
6149 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6151
9a90a780
AC
61522003-06-07 Andrew Cagney <cagney@redhat.com>
6153
6154 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6155 "index" with "special_local_sect". Use strcmp instead of STREQ.
6156 Append period to coments.
6157
a39a16c4
MM
61582003-06-06 Mark Mitchell <mark@codesourcery.com>
6159
6160 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6161 (elfstab_offset_sections): Likewise.
6162 * gdb-stabs.h (stab_section_info): Likewise.
6163 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6164 * objfiles.c (objfile_relocate): Likewise.
6165 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6166 * remote.c (get_offsets): Likewise.
6167 (remote_cisco_objfile_relocate): Likewise.
6168 * somread.c (som_symfile_offsets): Likewise.
6169 * symfile.c (alloc_section_addr_info): New function.
6170 (build_section_addr_info_from_section_tab): Use it.
6171 (free_section_addr_info): Adjust.
6172 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6173 (syms_from_objfile): Allocate local_addr dynamically.
6174 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6175 dynamically.
6176 (add_symbol_file_command): Allocate sect_opts dynamically.
6177 (reread_symbols): Avoid use of SECT_OFF_MAX.
6178 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6179 (alloc_section_addr_info): Declare it.
6180 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6181 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6182 dynamically.
6183 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6184
20c6c2f8
AC
61852003-06-06 Andrew Cagney <cagney@redhat.com>
6186
6187 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6188 (d10v_frame_unwind_cache): Do not set "return_pc".
6189
884a26c8
MS
61902003-06-06 Michael Snyder <msnyder@redhat.com>
6191
6192 * h8300-tdep.c: Make tidy (long lines).
6193
088ce440
ML
61942003-06-06 Michal Ludvig <mludvig@suse.cz>
6195
8ffd9b1b 6196 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6197 to regcache_collect().
6198
7d773d96
JB
61992003-06-05 J. Brobecker <brobecker@gnat.com>
6200
6201 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6202 pc_in_sigtramp multiarch method.
6203 (hppa_hpux_som_init_abi): Use it.
6204 (hppa_hpux_elf_init_abi): Likewise.
6205 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6206 macro has been multiarched.
6207 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6208 macro here, as hppa64 isn't multiarched yet.
6209
1df6926e
AC
62102003-06-05 Andrew Cagney <cagney@redhat.com>
6211
6212 * Makefile.in (value_h): Add $(frame_h).
6213 * value.h: Include "frame.h".
6214 (struct value): Replace "frame_addr" with "frame_id".
6215 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6216 * values.c (allocate_value): Use VALUE_FRAME_ID.
6217 (value_copy): Use VALUE_FRAME_ID.
6218 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6219 * valops.c (value_assign): Update. Use frame_find_by_id.
6220
6b53acc6
ML
62212003-06-05 Michal Ludvig <mludvig@suse.cz>
6222
6223 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6224 in each pass.
6225
4d9850d3
JJ
62262003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6227
6228 * thread-db.c (check_event): For create/death event breakpoints,
6229 loop through all messages to ensure that we read the message
6230 corresponding to the breakpoint we are at.
6231
8efca6ba
MS
62322003-06-04 Michael Snyder <msnyder@redhat.com>
6233
6234 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6235
0912c7f2
MK
62362003-06-04 Mark Kettenis <kettenis@gnu.org>
6237
6238 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6239 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6240 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6241 when handling .eh_frame sections.
6242
4e370325
JB
62432003-06-04 J. Brobecker <brobecker@gnat.com>
6244
6245 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6246 prepare_to_proceed procedure instead of the hppa-specific one.
6247 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6248
b757528f 62492003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6250
b757528f
JJ
6251 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6252 * config.in: Regenerated.
6253 * configure.in: Add test for syscall function and check for
6254 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6255 * configure: Regenerated.
6256 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6257 <sys/syscall.h>.
6258 (kill_lwp): New function that uses tkill syscall or
6259 uses kill, depending on whether threading model is nptl or not.
6260 All callers of kill() changed to use kill_lwp().
6261 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6262 see if all threads have already exited in the nptl model.
6263 (stop_and_resume_callback): New callback function used by the
6264 lin_lwp_wait thread exit handling code.
6265 (stop_wait_callback): Check for threads already having exited and
6266 delete such threads fromt the lwp list when discovered.
6267 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6268
b757528f
JJ
6269 Roland McGrath <roland@redhat.com>
6270 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6271 nptl libthread_db.
6272
087779b1
RH
62732003-06-03 Richard Henderson <rth@redhat.com>
6274
b21fd293
RH
6275 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6276 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6277 (alpha_sigtramp_frame_prev_register): Likewise.
6278 (alpha_heuristic_frame_prev_register): Likewise.
6279 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6280
8ffd9b1b 6281 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6282 alpha-specific register id names.
6283 (alpha_mdebug_frame_unwind_cache): Likewise.
6284 (alpha_mdebug_frame_prev_register): Likewise.
6285
baa490c4
RH
62862003-06-03 Richard Henderson <rth@redhat.com>
6287
6288 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6289 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6290 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6291 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6292 unwind routines.
6293 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6294 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6295 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6296
6297 * alpha-linux-tdep.c: Remove unnecessary includes.
6298 * Makefile.in (alpha-linux-tdep.o): Update.
6299
63002003-06-03 Richard Henderson <rth@redhat.com>
6301
6302 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6303 (alphabsd_fill_fpreg): Likewise.
6304
f534e522
JB
63052003-06-03 J. Brobecker <brobecker@gnat.com>
6306
6307 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6308 references to struct frame_info fields by calls to the equivalent
6309 accessors. Necessary now that frame_info is opaque.
6310
4035536b
JB
63112003-06-03 J. Brobecker <brobecker@gnat.com>
6312
6313 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6314 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6315 structure, field no longer exists.
6316
0bd79c5c
JB
63172003-06-03 J. Brobecker <brobecker@gnat.com>
6318
6319 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6320 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6321
37bb6d9f
JB
63222003-06-03 J. Brobecker <brobecker@gnat.com>
6323
6324 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6325 references to struct frame_info fields by calls to the equivalent
6326 accessors. Necessary now that frame_info is opaque.
6327
852ee05c
JB
63282003-06-03 J. Brobecker <brobecker@gnat.com>
6329
6330 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6331 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6332 structure, field no longer exists.
6333
7d58c67d
TR
63342003-06-03 Theodore A. Roth <troth@openavr.org>
6335
8ffd9b1b 6336 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6337 accumulation of the size of all registers instead of blindly using
6338 DEPRECATED_REGISTER_BYTES.
6339
0a48e7e8
MS
63402003-06-03 Michael Snyder <msnyder@redhat.com>
6341
6342 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6343 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6344 for h8300sx.
6345
9798ab0d
JB
63462003-06-03 J. Brobecker <brobecker@gnat.com>
6347
6348 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6349 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6350
00b037e2
AC
63512003-06-03 Andrew Cagney <cagney@redhat.com>
6352
6353 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6354 (sparc_convert_to_raw): Delete function.
6355 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6356 register_convert_to_virtual.
6357
043b2f77
JJ
63582003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6359
6360 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6361 layer if not dealing with a statically-linked threaded program.
6362
f43caff8
KW
63632003-06-03 Kris Warkentin <kewarken@qnx.com>
6364
6365 * solib.c (solib_open): Update comment to reflect actual search order.
6366
ae1e7417
AC
63672003-06-03 Andrew Cagney <cagney@redhat.com>
6368
6369 * frame.c (get_frame_memory_signed): New function.
6370 (get_frame_memory, get_frame_memory_unsigned): New function.
6371 (get_frame_arch): New function.
6372 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6373 (get_frame_memory, get_frame_unsigned_memory): Declare.
6374 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6375 get_frame_memory_unsigned and get_frame_arch.
6376 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6377
cb123844
RG
63782003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6379
6380 * MAINTAINERS (write after approval): Add myself.
6381
1bb792e9
JB
63822003-06-03 Jim Blandy <jimb@redhat.com>
6383
6384 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6385 elements of gregset_t are 64 bits each, but access registers
6386 are still 32 bits, so they're packed two per gregset_t
6387 element. Unpack/pack them properly.
6388
aee8d8ba
DC
63892003-06-02 David Carlton <carlton@bactrian.org>
6390
6391 * linespec.c (find_methods): Break out code into
6392 add_matching_methods and add_constructors.
6393 (add_matching_methods): New.
6394 (add_constructors): Ditto.
6395
bf7488d2
AC
63962003-06-02 Andrew Cagney <cagney@redhat.com>
6397
bf7488d2
AC
6398 * sparc-tdep.c (sparc_print_registers): Delete call to
6399 REGISTER_CONVERTIBLE.
6400 (sparc_gdbarch_init): Do not set register_convertible.
6401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6402 * frv-tdep.c (frv_gdbarch_init): Ditto.
6403 * cris-tdep.c (cris_gdbarch_init): Ditto.
6404
adedef68
EZ
64052003-06-02 Elena Zannoni <ezannoni@redhat.com>
6406
8ffd9b1b 6407 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6408 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6409 (syms_from_objfile): Ditto.
6410
650fcc91
AS
64112003-06-03 Andreas Schwab <schwab@suse.de>
6412
6413 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6414 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6415
df4a182b
RH
64162003-06-02 Richard Henderson <rth@redhat.com>
6417
6418 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6419 a member of all_reggroup.
6420
c483c494
RH
64212003-06-02 Richard Henderson <rth@redhat.com>
6422
6423 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6424 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6425 (alpha_lds, alpha_sts): New.
6426 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6427 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6428 restructure and fail for type sizes other than 4 or 8.
6429 (alpha_value_to_register): Similarly.
6430 (alpha_extract_return_value): Use alpha_sts.
6431 (alpha_store_return_value): Use alpha_lds.
6432 (alpha_gdbarch_init): Update hooks.
6433
b38b6be2
RH
64342003-06-02 Richard Henderson <rth@redhat.com>
6435
6436 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6437 regnum identifiers.
6438 (alpha_sigtramp_register_address): Likewise.
6439
98a8e1e5
RH
64402003-06-02 Richard Henderson <rth@redhat.com>
6441
6442 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6443 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6444 * alpha-tdep.h: Declare them.
6445
6446 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6447 Remove zerobuf. Don't error on UNIQUE.
6448 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6449 (ALPHA_REGSET_UNIQUE): Provide default.
6450 (supply_gregset): Use alpha_supply_int_regs.
6451 (fill_gregset): Use alpha_fill_int_regs.
6452 (supply_fpregset): Use alpha_supply_fp_regs.
6453 (fill_fpregset): Use alpha_fill_fp_regs.
6454 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6455 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6456 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6457 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6458 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6459 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6460
67dfac52
RH
64612003-06-02 Richard Henderson <rth@redhat.com>
6462
f75d70cc
RH
6463 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6464
67dfac52
RH
6465 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6466 (alpha_store_return_value): Likewise.
6467
0cf566ec
DC
64682003-06-02 David Carlton <carlton@math.stanford.edu>
6469
6470 * block.c (contained_in): Add 'const' to arguments.
6471 (block_function): Ditto.
6472 * block.h: Update declarations for block_function and
6473 contained_in.
6474
cdef89d0
DC
64752003-06-02 David Carlton <carlton@math.stanford.edu>
6476
6477 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6478 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6479 * p-valprint.c (pascal_val_print): Ditto.
6480 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6481
72667056
RH
64822003-06-02 Richard Henderson <rth@redhat.com>
6483
98a8e1e5
RH
6484 * alpha-tdep.c (alpha_push_dummy_call): Use
6485 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6486
8ffd9b1b 6487 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6488 sign-extension of 32-bit values.
6489 (alpha_store_return_value): Similarly.
0ede8eca 6490
98a8e1e5
RH
6491 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6492 (alpha_extract_return_value): Likewise.
6493 (alpha_store_return_value): Likewise.
7b5e1cb3 6494
98a8e1e5
RH
6495 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6496 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6497
98a8e1e5
RH
6498 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6499 (alpha_extract_struct_value_address): Likewise.
6500 (alpha_store_return_value): Likewise.
6501 (alpha_store_struct_return): Remove.
6502 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6503
98a8e1e5
RH
6504 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6505 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6506 macros where appropriate.
6507 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6508 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6509
98a8e1e5
RH
6510 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6511 for SP, GP; void_func_ptr for PC; non-language-specific types
6512 for all others.
6513 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6514
6dd77b81
RH
65152003-06-02 Richard Henderson <rth@redhat.com>
6516
6517 * top.h (lim_at_start): Declare.
6518 * main.c (captured_main): Set it.
6519 * top.c (lim_at_start): Define.
6520 (command_loop): Use it instead of &environ.
6521 * event-top.c (command_handler): Likewise.
6522
f4dbdb54
JT
65232003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6524
6525 * mipsnbsd-tdep.c: Update copyright years.
6526 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6527
8f285956
RH
65282003-06-01 Richard Henderson <rth@redhat.com>
6529
98a8e1e5
RH
6530 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6531 (alpha-linux-tdep.o): Update dependencies.
6532 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6533 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6534
615967cb
RH
65352003-06-01 Richard Henderson <rth@redhat.com>
6536
98a8e1e5
RH
6537 * alpha-tdep.c (alpha_register_reggroup_p): New.
6538 (alpha_gdbarch_init): Register it.
615967cb 6539
b59661bd
AC
65402003-06-02 Andrew Cagney <cagney@redhat.com>
6541
6542 * dwarfread.c: Eliminate "register"
6543 (decode_die_type): Eliminate assignment within "if".
6544 (struct_type, decode_array_element_type): Ditto.
6545 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6546 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6547 (decode_modified_type, completedieinfo): Ditto.
6548 * block.c: Eliminate "register".
6549 (blockvector_for_pc_sect): Eliminate assignment within "if".
6550 * cp-support.h (struct symbol): Opaque declaration.
6551 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6552
5ef165c2
RH
65532003-06-01 Richard Henderson <rth@redhat.com>
6554
98a8e1e5
RH
6555 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6556 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6557
143985b7
AF
65582003-06-01 Adam Fedor <fedor@gnu.org>
6559
6560 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6561 * gdbarch.[ch]: Regenerate.
6562 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6563 (hppa_gdbarch_init): Set it in the gdbarch vector.
6564 * i386-tdep.c (i386_fetch_pointer_argument): New
6565 (i386_gdbarch_init): Set it into gdbarch.
6566 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6567 (rs6000_gdbarch_init): Set it in gdbarch.
6568 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6569 (sparc_gdbarch_init): Set it in gdbarch.
6570
ae0167b9
AC
65712003-06-01 Andrew Cagney <cagney@redhat.com>
6572
7c0b4a20
AC
6573 * defs.h (extract_address): Delete declaration.
6574 * findvar.c (extract_address): Delete function.
6575 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6576 extract_address with the inline equivalent,
6577 extract_unsigned_integer.
6578 (xstormy16_extract_struct_value_address): Ditto.
6579 (xstormy16_pointer_to_address): Ditto.
6580 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6581 * v850-tdep.c (v850_push_arguments): Ditto.
6582 (v850_extract_return_value): Ditto.
6583 (v850_extract_struct_value_address): Ditto.
6584 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6585 (sparcnbsd_get_longjmp_target_64): Ditto.
6586 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6587 (get_longjmp_target): Ditto.
6588 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6589 (sh64_extract_struct_value_address): Ditto.
6590 (sh_push_arguments): Ditto.
6591 (sh64_push_arguments): Ditto.
6592 * remote-vxsparc.c (vx_read_register): Ditto.
6593 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6594 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6595 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6596 * mipsv4-nat.c (get_longjmp_target): Ditto.
6597 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6598 * mips-nat.c (get_longjmp_target): Ditto.
6599 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6600 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6601 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6602 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6603 * irix5-nat.c (get_longjmp_target): Ditto.
6604 * irix4-nat.c (get_longjmp_target): Ditto.
6605 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6606 (ia64_push_arguments): Ditto.
6607 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6608 * h8300-tdep.c (h8300_push_arguments): Ditto.
6609 (h8300_store_return_value): Ditto.
6610 (h8300_extract_struct_value_address): Ditto.
6611 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6612 (frv_push_arguments): Ditto.
6613 * avr-tdep.c (avr_pointer_to_address): Ditto.
6614 (avr_push_arguments): Ditto.
6615 * arm-tdep.c (arm_push_dummy_call): Ditto.
6616 (arm_get_longjmp_target): Ditto.
6617 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6618 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6619 (alpha_get_longjmp_target): Ditto.
6620
ae0167b9
AC
6621 * solib-irix.c (extract_mips_address): Inline extract_address,
6622 replacing it with extract_signed_integer.
6623 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6624 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6625 (first_link_map_member, open_symbol_file_object): Ditto.
6626 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6627 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6628 (LM_NEXT, LM_NAME): Ditto.
6629
44d88583
RH
66302003-06-01 Richard Henderson <rth@redhat.com>
6631
98a8e1e5
RH
6632 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6633 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6634 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6635 (alpha_cannot_store_register): Likewise.
6636 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6637 * alpha-nat.c (supply_gregset): Likewise.
6638 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6639
310e9b6a
AC
66402003-06-01 Andrew Cagney <cagney@redhat.com>
6641
6642 * infcall.c (call_function_by_hand): Update comment on
6643 DEPRECATED_DUMMY_WRITE_SP.
6644
6645 * mips-tdep.c (mips_gdbarch_init): Do not set
6646 deprecated_dummy_write_sp.
6647 (mips_eabi_push_dummy_call): Set the SP register.
6648 (mips_o64_push_dummy_call): Set the SP register.
6649 (mips_o32_push_dummy_call): Set the SP register.
6650 (mips_n32n64_push_dummy_call): Set the SP register.
6651
5ab84872
RH
66522003-06-01 Richard Henderson <rth@redhat.com>
6653
98a8e1e5
RH
6654 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6655 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6656 (supply_gregset): Likewise.
6657 * alpha-tdep.c (alpha_store_return_value): Likewise.
6658 (alpha_get_longjmp_target): Likewise.
6659 (alpha_register_name): Constify array.
6660 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6661 deprecated_register_size, deprecated_register_bytes,
6662 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6663 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6664 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6665
09cc52fd
RH
66662003-06-01 Richard Henderson <rth@redhat.com>
6667
6668 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6669 from arg_reg_buffer to regcache to avoid double conversion.
6670
c7f16359
MK
66712003-06-01 Mark Kettenis <kettenis@gnu.org>
6672
6673 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6674 SP_REGNUM.
6675 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6676 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6677
7131cb6e
RH
66782003-06-01 Richard Henderson <rth@redhat.com>
6679
98a8e1e5
RH
6680 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6681 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6682
f3e0f90b
RH
66832003-06-01 Richard Henderson <rth@redhat.com>
6684
98a8e1e5
RH
6685 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6686 not overlapping PC_REGNUM.
f3e0f90b 6687
c88e30c0
RH
66882003-06-01 Richard Henderson <rth@redhat.com>
6689
98a8e1e5
RH
6690 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6691 alpha_push_arguments. Don't dump argument register data to
6692 the target stack. Fix float and 128-bit long double semantics.
6693 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6694 (alpha_fix_call_dummy): Remove.
6695 (alpha_call_dummy_words): Remove.
6696 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6697
f1a559ae
RH
66982003-06-01 Richard Henderson <rth@redhat.com>
6699
6700 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6701
5e045346
AC
67022003-06-01 Andrew Cagney <cagney@redhat.com>
6703
95404a3e
AC
6704 * mips-tdep.c (is_mips16_addr): New function.
6705 (make_mips16_addr, unmake_mips16_addr): New functions.
6706 (pc_is_mips16, mips_fetch_instruction): Use.
6707 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6708 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6709 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6710 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6711 TARGET_MIPS.
6712 * config/mips/tm-mips.h: Update copyright.
6713 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6714 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6715 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6716 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6717 (TM_PRINT_INSN_MACH): Delete.
6718 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6719
5e045346
AC
6720 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6721 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6722 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6723 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6724 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6725 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6726 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6727 mips*-*-riscos* and mips*-*-sysv* onto mips.
6728 * config/mips/mips64.mt: New file.
6729 * config/mips/mips.mt: New file.
6730 * config/mips/littlemips.mt: Delete file.
6731 * config/mips/decstation.mt: Delete file.
6732 * config/mips/vr4300el.mt: Delete file.
6733 * config/mips/vr5000el.mt: Delete file.
6734 * config/mips/vr5000.mt: Delete file.
6735 * config/mips/vr4100.mt: Delete file.
6736 * config/mips/vr4xxxel.mt: Delete file.
6737 * config/mips/vr4300.mt: Delete file.
6738 * config/mips/vr4xxx.mt: Delete file.
6739 * config/mips/bigmips.mt: Delete file.
6740 * config/mips/bigmips64.mt: Delete file.
6741 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6742 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6743 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6744 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6745 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6746 "tm-bigmips.h".
6747 * config/mips/tm-irix3.h: Ditto.
6748 * config/mips/tm-mipsv4.h: Ditto.
6749 * config/mips/tm-embed.h: Ditto.
6750 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6751 "tm-bigmips64.h".
6752 * config/mips/tm-vr5000el.h: Delete file.
6753 * config/mips/tm-tx39l.h: Delete file.
6754 * config/mips/tm-vr4300el.h: Delete file.
6755 * config/mips/tm-vr4xxxel.h: Delete file.
6756 * config/mips/tm-vr4300.h: Delete file.
6757 * config/mips/tm-vr4100.h: Delete file.
6758 * config/mips/tm-vr4xxx.h: Delete file.
6759 * config/mips/tm-vr5000.h: Delete file.
6760 * config/mips/tm-embedl64.h: Delete file.
6761 * config/mips/tm-embedl.h: Delete file.
6762 * config/mips/tm-embed64.h: Delete file.
6763 * config/mips/tm-bigmips64.h: Delete file.
6764 * config/mips/tm-bigmips.h: Delete file.
6765
2473a4a9
MK
67662003-06-01 Mark Kettenis <kettenis@gnu.org>
6767
97a5b208
MK
6768 Fix gdb/1216.
6769 * shnbsd-nat.c: Include "sh-tdep.h".
6770
2473a4a9
MK
6771 From Richard Henderson <rth@redhat.com>:
6772 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6773
e0f7ec59
AC
67742003-05-31 Andrew Cagney <cagney@redhat.com>
6775
6776 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6777 forward declaration.
6778 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6779 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6780 (mips_find_saved_regs): Use set_reg_offset.
6781 (mips_frame_init_saved_regs): Delete function.
6782 (mips_pop_frame): Call mips_find_saved_regs instead of
6783 DEPRECATED_FRAME_INIT_SAVED_REGS.
6784
68dcc709
AC
67852003-05-31 Andrew Cagney <cagney@redhat.com>
6786
6787 * mips-tdep.c (mips_gdbarch_init): Do not set
6788 deprecated_max_register_raw_size, register_virtual_size, and
6789 deprecated_max_register_virtual_size.
6790
cfc14b3a
MK
67912003-05-31 Mark Kettenis <kettenis@gnu.org>
6792
6405b0a6
MK
6793 * i386-tdep.c: Include "dwarf2-frame.h".
6794 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6795 * Makefile.in (i386-tdep.o): Update dependencies.
6796
cfc14b3a
MK
6797 * dwarf2-frame.c, dwarf2-frame.h: New files.
6798 * Makefile.in (SFILES): Add dwarf2-frame.c.
6799 (dwarf2_frame_h): Define.
6800 (COMMON_OBS): Add dwarf2-frame.o.
6801 (dwarf2-frame.o): Add dependencies.
6802
6a2751d2
AJ
68032003-05-31 Andreas Jaeger <aj@suse.de>
6804
6805 * x86-64-linux-nat.c: Fix comment.
6806
1c3545ae
MK
68072003-05-31 Mark Kettenis <kettenis@gnu.org>
6808
10f93086
MK
6809 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6810 function signature.
6811
1c3545ae
MK
6812 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6813 have a sigcontext_addr handler.
6814 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6815 sigcontext_addr handler.
6816
e11c53d2
AC
68172003-05-31 Andrew Cagney <cagney@redhat.com>
6818
6819 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6820 (print_fp_register_row): Replace do_fp_register_row.
6821 (mips_print_fp_register): Add "file" and "frame" parameters.
6822 (mips_print_register): Add "file" and "frame" parameters.
6823 (mips_print_registers_info): Replace mips_do_registers_info.
6824 (mips_gdbarch_init): Set print_registers_info instead of
6825 deprecated_do_registers_info.
6826 (mips_read_fp_register_single): Add "frame" parameter.
6827 (mips_read_fp_register_double): Add "frame" parameter.
6828
a3386186
MK
68292003-05-31 Mark Kettenis <kettenis@gnu.org>
6830
70913449
MK
6831 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6832 Fixes a bug where GDB would print the wrong register names for
6833 targets without SSE.
6834
2b5e0749
MK
6835 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6836 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6837 registers.
6838
6839 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6840 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6841 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6842 TDEP->sc_sp_offset.
6843
a3386186
MK
6844 From Michal Ludvig <mludvig@suse.cz>:
6845 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6846 and `sc_num_regs'.
6847 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6848 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6849 I386_ST0_REGNUM): Move here from...
6850 * i386-tdep.c: ... here.
6851 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6852 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6853 registers if possible.
6854 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6855 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6856 Remove variables.
6857 (i386bsd_sc_reg_offset): New variable.
6858 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6859 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6860 TDEP->sc_sp_offset.
6861 (i386fbsd_sc_reg_offset): New variable.
6862 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6863 TDEP->sc_num_regs.
6864 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6865 variables.
6866 (i386fbsd4_sc_reg_offset): New variable.
6867 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6868 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6869 TDEP->sc_sp_offset.
6870 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6871 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6872 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6873 Remove variables.
6874 (i386nbsd_sc_reg_offset): New variable.
6875 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6876 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6877 TDEP->sc_sp_offset.
6878 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6879 Remove variables.
6880 (i386obsd_sc_reg_offset): New variable.
6881 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6882 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6883 TDEP->sc_sp_offset.
6884 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6885 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6886 for frame pointer offset in `struct sigcontext'.
6887
25ab4790
AC
68882003-05-31 Andrew Cagney <cagney@redhat.com>
6889
6890 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6891 architecture methods call_dummy_words, sizeof_call_dummy_words,
6892 push_return_address, store_struct_return, and fix_call_dummy. Set
6893 push_dummy_call instead of deprecated_push_arguments.
6894 (mips_store_struct_return): Delete function.
6895 (mips_fix_call_dummy): Delete function.
6896 (mips_push_return_address): Delete function.
6897 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6898 RA_REGNUM and T9_REGNUM.
6899 (mips_n32n64_push_dummy_call): Ditto for
6900 mips_n32n64_push_arguments.
6901 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6902 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6903
6a65450a
AC
69042003-05-31 Andrew Cagney <cagney@redhat.com>
6905
6906 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6907 "dummy_addr" to "bp_addr".
6908 * infcall.c (call_function_by_hand): Pass "funaddr" to
6909 gdbarch_push_dummy_call.
6910 * gdbarch.h, gdbarch.c: Re-generate.
6911 * i386-tdep.c (i386_push_dummy_call): Update.
6912 * arm-tdep.c (arm_push_dummy_call): Update.
6913 * d10v-tdep.c (d10v_push_dummy_call): Update.
6914
c4f35dd8
MK
69152003-05-31 Mark Kettenis <kettenis@gnu.org>
6916
6917 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6918 variable declarations.
6919 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6920 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6921 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6922 x86_64_init_frame_pc, x86_64_init_frame_pc,
6923 x86_64_function_has_prologue): Remove prototypes.
6924 (X86_64_NUM_GREGS): New define.
6925 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6926 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6927 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6928 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6929 XMM1_REGNUM): Remove defines.
6930 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6931 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6932 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6933 X86_64_XMM1_REGNUM): New defines.
6934 (struct x86_64_register_info): Renamed from `struct
6935 register_info'. Remove `size' member.
6936 (x86_64_register_info_table): Remove variable.
6937 (x86_64_register_info): New variable.
6938 (X86_64_NUM_REGS): New define.
6939 (X86_64_NUM_GREGS): Remove define.
6940 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6941 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6942 Remove variables.
6943 (x86_54_dwarf2_reg_to_regnum): Remove function.
6944 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6945 (x86_64_dwarf_reg_to_regnum): New function.
6946 (x86_64_register_name): Rewrite.
6947 (x86_64_register_raw_size): Remove function.
6948 (x86_64_register_byte_table): Remove variable.
6949 (x86_64_register_byte): Remove function.
6950 (x86_64_register_virtual_type): Remove function.
6951 (x86_64_register_type): New function.
6952 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6953 x86_64_register_convert_to_raw): Remove functions.
6954 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6955 (x86_64_use_struct_convention): Make static. Adjust for renamed
6956 defines.
6957 (x86_64_frame_init_saved_regs): Remove function.
6958 (x86_64_push_arguments): Make static. Change to accept a regcache
6959 as argument.
6960 (x86_64_store_return_value, x86_64_extract_return_value): Make
6961 static. Rewrite based on i386 counterparts.
6962 (x86_64_push_dummy_call): New function.
6963 (X86_64_NUM_SAVED_REGS): New define.
6964 (x86_64_register_number): Remove function.
6965 (x86_64_store_struct_return): Remove function.
6966 (x86_64_frameless_function_invocation,
6967 x86_64_function_has_prologue): Remove functions.
6968 (PROLOG_BUFSIZE): Remove define.
6969 (struct x86_64_frame_cache): New structure.
6970 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6971 x86_64_frame_cache, x86_64_frame_this_id,
6972 x86_64_frame_prev_register, x86_64_frame_p,
6973 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6974 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6975 functions.
6976 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6977 variables.
6978 (x86_64_skip_prologue): Rewrite in terms of
6979 x86_64_analyze_prologue.
6980 (x86_64_frame_base_address): New function.
6981 (x86_64_frame_base): New variable.
6982 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6983 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6984 set deprecated_fp_regnum, deprecated_register_size,
6985 deprecated_register_bytes, register_raw_size, register_byte,
6986 register_virtual_type, register_convertiable,
6987 register_convert_to_virtual, convert_to_raw,
6988 deprecated_get_saved_register, deprecated_target_read_fp,
6989 deprecated_push_arguments, deprecated_push_return_address,
6990 deprecated_pop_frame, deprecated_store_struct_return,
6991 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6992 frameless_function_invocation, deprecated_frame_saved_pc,
6993 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6994 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6995 deprecated_init_frame_pc and virtual_frame_pointer. Call
6996 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6997 and x86_64_frame_p. Call frame_base_set_default to register
6998 x86_64_frame_base.
6999 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7000 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7001 (_initialize_x86_64_tdep): Remove function.
7002 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7003 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7004 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7005 define.
7006 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7007 (x86_64_linux_sigcontext_addr): Rewrite.
7008 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7009 x86_64_linux_frame_saved_pc): Remove functions.
7010 (x86_64_linux_pc_in_sigtramp): Renamed from
7011 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7012 trampoline.
7013 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7014 Remove_functions.
7015 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7016 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7017 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7018 (x86_64_regmap): Rename to regmap.
7019 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7020 x86_64_num_gregs.
7021 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7022 x86_64_regmap.
7023 (x86_64_fxsave_offset): Remove function.
7024 (supply_fpregset): Simply call x86_64_supply_fxsave.
7025 (fill_fpregset): Simply call x86_64_fill_fxsave.
7026 (fetch_inferior_registers, store_inferior_registers): Avoid
7027 asignment in if-statement.
7028 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7029 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7030 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7031 (fetch_core_registers): Remove function.
7032 (linux_elf_core_fns): Remove.
7033 (offsetoff): Don't define.
7034 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7035 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7036 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7037 add core-regset.o.
7038 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7039 protection against multiple includes instead of NM_X86_64_h. Add
7040 various comments. Include "config/nm-linux.h". Don't include
7041 <signal.h>.
7042 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7043 GET_THREAD_SIGNALS): Remove defines.
7044 (x86_64_register_u_addr, kernel_u_size,
7045 lin_thread_get_thread_signals): Remove prototypes.
7046 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7047 [HAVE_LINK_H]: Don't include "solib.h".
7048 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7049 * config/i386/tm-x86-64linux.h: Fix comments.
7050 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7051 x86-64-tdep.o): Update dependencies.
7052
c25083af
AC
70532003-05-30 Andrew Cagney <cagney@redhat.com>
7054
c8f55a7b
AC
7055 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7056 Change parameter type to a "struct regcache *".
7057
c25083af
AC
7058 * gdbarch.sh: Regardless of the multi-arch level, always define
7059 the macro when not already defined.
7060 * gdbarch.h, gdbarch.c: Re-generate.
7061
fbe586ae
RH
70622003-05-30 Richard Henderson <rth@redhat.com>
7063
7064 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7065 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7066 (alpha_mdebug_frame_this_id): Likewise.
7067 (alpha_mdebug_frame_prev_register): Likewise.
7068 (alpha_mdebug_frame_base_address): Likewise.
7069 (alpha_mdebug_frame_locals_address): Likewise.
7070 (alpha_mdebug_frame_args_address): Likewise.
7071 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7072 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7073 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7074 loop increment.
7075 (alpha_heuristic_frame_this_id): Make static.
7076 (alpha_heuristic_frame_prev_register): Likewise.
7077 (alpha_heuristic_frame_base_address): Likewise.
7078 * alpha-tdep.h: Update.
7079
acd5c798
MK
70802003-05-30 Mark Kettenis <kettenis@gnu.org>
7081
7082 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7083 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7084 defenitions.
7085 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7086 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7087 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7088 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7089 I386_ST0_REGNUM): New defines.
7090 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7091 codestream_get): Remove define.
7092 (codestream_next_addr, condestream_addr, condestream_buf,
7093 codestream_off, codestream_cnt): Remove variables.
7094 (codestream_fill, codestream_seek, codestream_read): Remove
7095 functions.
7096 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7097 functionality.
7098 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7099 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7100 i386_frame_saved_pc, i386_saved_pc_after_call,
7101 i386_frame_num_args, i386_frame_init_saved_regs,
7102 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7103 i386_push_arguments): Remove functions.
7104 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7105 functionality. Use i386_analyze_prologue instead of
7106 i386_get_frame_setup.
7107 (I386_NUM_SAVED_REGS): New define.
7108 (struct i386_frame_cache): New structure.
7109 (i386_alloc_frame_cache, i386_analyze_struct_return,
7110 i386_skip_probe, i386_analyze_frame_setup,
7111 i386_analyze_register_saves, i386_analyze_prologue,
7112 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7113 i386_frame_prev_register, i386_sigtramp_frame_cache,
7114 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7115 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7116 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7117 New functions.
7118 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7119 New variables.
7120 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7121 I386_EAX_REGNUM and I386_EDX_REGNUM.
7122 (i386_extract_return_value, i386_store_return_value): Use
7123 I386_ST0_REGNUM where appropriate.
7124 (i386_extract_struct_value_address): Rewrite to use extract_address.
7125 (i386_svr4_pc_in_sigtramp): Add comment.
7126 (i386_svr4_sigcontext_addr): Rewrite.
7127 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7128 TDEP->sc_sp_offset.
7129 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7130 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7131 of new defines. Set push_dummy_call, don't set
7132 deprecated_push_arguments, deprecated_push_return_address,
7133 deprecated_pop_frame. Don't set parm_boundary. Don't set
7134 deprecated_frame_chain, deprecated_frame_saved_pc,
7135 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7136 save_dummy_frame_tos, unwind_pc. Call
7137 frame_unwind_append_predicate and frame_base_set_default. Don't
7138 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7139 Don't set frameless_function_invocation. Don't set
7140 deprecated_register_bytes, deprecated_register_size,
7141 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7142 * i386-linux-tdep.c: Fix formatting in some comments.
7143 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7144 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7145 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7146 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7147 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7148 redundant parentheses.
7149 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7150 (i386_linux_sigcontext_addr): Use it. Rewrite.
7151 (find_minsym_and_objfile): Change name of second argument.
7152 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7153 changed. Use frame_pc_unwind instead of
7154 DEPRECATED_SAVED_PC_AFTER_CALL.
7155 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7156 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7157 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7158 unwinder.
7159 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7160 "dummy-frame.h".
7161 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7162 (_initialize_i386_cygwin_tdep): New prototype.
7163 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7164 deprecated_frame_chain_valid.
7165 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7166 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7167 Rely on the SVR4 defaults.
7168 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7169 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7170
c89b70f1
AC
71712003-05-30 Andrew Cagney <cagney@redhat.com>
7172
7173 * infcall.c (call_function_by_hand): Always call
7174 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7175
85b32d22
RH
71762003-05-30 Richard Henderson <rth@redhat.com>
7177
c89b70f1
AC
7178 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7179 increment.
85b32d22 7180
bfe51b1e
JB
71812003-05-29 Jim Blandy <jimb@redhat.com>
7182
7183 Use gdbarch methods for solib stuff on PowerPC Linux.
7184 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7185 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7186 show through.
7187 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7188 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7189 giving the same effect as the #definitions above.
7190
1abf022c
AF
71912003-05-29 Adam Fedor <fedor@gnu.org>
7192
7193 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7194 (find_implementation_from_class): Replace it with the standard
7195 case i.e. do nothing.
7196
d2427a71
RH
71972003-05-29 Richard Henderson <rth@redhat.com>
7198
7199 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7200 (alpha_linux_sigtramp_offset): Use it. Make static.
7201 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7202 update for new frame model.
7203 * alpha-mdebug-tdep.c: New file.
7204 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7205 (alpha_osf1_init_abi): Install it.
7206 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7207 (linked_proc_desc_table): Remove.
7208 (alpha_frame_past_sigtramp_frame): Remove.
7209 (alpha_dynamic_sigtramp_offset): Remove.
7210 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7211 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7212 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7213 (push_sigtramp_desc): Remove.
7214 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7215 (alpha_cannot_store_register): Likewise.
7216 (alpha_sigcontext_addr): Remove.
7217 (alpha_find_saved_regs): Remove.
7218 (alpha_frame_init_saved_regs): Remove.
7219 (alpha_init_frame_pc_first): Remove.
7220 (read_next_frame_reg): Remove.
7221 (alpha_frame_saved_pc): Remove.
7222 (alpha_saved_pc_after_call): Remove.
7223 (temp_proc_desc, temp_saved_regs): Remove.
7224 (alpha_about_to_return): Remove.
7225 (cached_proc_desc): Remove.
7226 (alpha_frame_chain): Remove.
7227 (alpha_print_extra_frame_info): Remove.
7228 (alpha_init_extra_frame_info): Remove.
7229 (alpha_frame_locals_address): Remove.
7230 (alpha_frame_args_address): Remove.
7231 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7232 (alpha_push_dummy_frame): Remove.
7233 (alpha_pop_frame): Remove.
7234 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7235 (alpha_read_insn): New.
7236 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7237 for different insn encodings.
7238 (alpha_in_lenient_prologue): Remove.
7239 (struct alpha_sigtramp_unwind_cache): New.
7240 (alpha_sigtramp_frame_unwind_cache): New.
7241 (alpha_sigtramp_register_address): New.
7242 (alpha_sigtramp_frame_this_id): New.
7243 (alpha_sigtramp_frame_prev_register): New.
7244 (alpha_sigtramp_frame_unwind): New.
7245 (alpha_sigtramp_frame_p): New.
7246 (struct alpha_heuristic_unwind_cache): New.
7247 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7248 don't count nop insns that occur between functions.
7249 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7250 heuristic_proc_desc, but without the mdebug wrapping.
7251 (alpha_heuristic_frame_this_id): New.
7252 (alpha_heuristic_frame_prev_register): New.
7253 (alpha_heuristic_frame_unwind): New.
7254 (alpha_heuristic_frame_p): New.
7255 (alpha_heuristic_frame_base_address): New.
7256 (alpha_heuristic_frame_base): New.
7257 (alpha_unwind_dummy_id): New.
7258 (alpha_unwind_pc): New.
7259 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7260 frame related deprecated initializations; install replacements.
7261 (alpha_dump_tdep): Remove.
7262 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7263 (alpha_read_insn, alpha_after_prologue,
7264 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7265 alpha_heuristic_frame_prev_register,
7266 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7267 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7268 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7269 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7270
93ec1121
AC
72712003-05-29 Andrew Cagney <cagney@redhat.com>
7272
7273 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7274 dependant on the availability of ASSERT_FUNCTION.
7275 (ASSERT_FUNCTION): Do not define when there is no function name.
7276
98f08d3d
KB
72772003-05-29 Kevin Buettner <kevinb@redhat.com>
7278
7279 From Jimi X <jimix@watson.ibm.com>:
7280 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7281
0897f59b
JB
72822003-05-28 Jim Blandy <jimb@redhat.com>
7283
7284 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7285 argument to ptrace to int; the system headers should give it the
7286 right type, and pointers don't fit in ints on powerpc64-*-*.
7287
14898363
L
72882003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7289
7290 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7291 DW_TAG_catch_block.
7292
a7a48797
EZ
72932003-05-26 Elena Zannoni <ezannoni@redhat.com>
7294
7295 * stabsread.c (dbx_lookup_type): Make static.
7296 (read_type): Ditto.
7297 (add_undefined_type): Ditto.
7298 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7299 not export.
7300
f5479e9c
EZ
73012003-05-26 Elena Zannoni <ezannoni@redhat.com>
7302
7303 * hpread.c (hpread_has_name): Make static.
7304 (hpread_psymtab_to_symtab): Ditto.
7305 (file_exists): Ditto.
7306 (hpread_call_pxdb): Ditto.
7307 (hpread_pxdb_needed): Ditto.
7308 (hpread_quick_traverse): Ditto.
7309 (hpread_get_header): Ditto.
7310 (hpread_get_lntt): Ditto.
7311 (hpread_get_slt): Ditto.
7312 (class_of): Ditto.
7313
eb2e12d7
AS
73142003-05-25 Andreas Schwab <schwab@suse.de>
7315
78bf922a
AS
7316 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7317 stack_align and deprecated_extra_stack_alignment_needed.
7318 (m68k_stack_align): Delete.
7319
eb2e12d7
AS
7320 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7321 (m68k_register_virtual_size): Likewise.
7322 (altos_skip_prologue): Remove obsolete function.
7323 (isi_frame_num_args): Likewise.
7324 (news_frame_num_args): Likewise.
7325 (m68k_fix_call_dummy): Make static.
7326 (m68k_push_dummy_frame): Likewise.
7327 (m68k_pop_frame): Likewise.
7328 (m68k_skip_prologue): Likewise.
7329 (m68k_frame_init_saved_regs): Likewise.
7330 (m68k_saved_pc_after_call): Likewise.
7331 (m68k_get_longjmp_target): Make multi-arch.
7332 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7333 structure. Register m68k_get_longjmp_target if enabled.
7334 * m68k-tdep.h (struct gdbarch_tdep): Define.
7335 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7336
7337 * Makefile.in (config.status): Also depend on configure.tgt
7338 and configure.host.
7339 (m68klinux-tdep.o): Update dependencies.
7340 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7341 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7342 (M68K_LINUX_JB_PC): Define.
7343 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7344 and take additional parameter.
7345 (m68k_linux_sigtramp_saved_pc): Update.
7346 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7347 m68k_linux_pc_in_sigtramp, in_plt_section,
7348 find_solib_trampoline_target.
7349 * config/m68k/tm-linux.h: Don't include any tm headers.
7350 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7351 (JB_ELEMENT_SIZE): Likewise.
7352 (JB_PC): Likewise.
7353 (GET_LONGJMP_TARGET): Likewise.
7354 (IN_SIGTRAMP): Likewise.
7355 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7356
eb2c22dc
MK
73572003-05-25 Mark Kettenis <kettenis@gnu.org>
7358
7359 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7360 (sparc32_push_arguments): Re-implement by calling
7361 sparc32_do_push_arguments.
7362
44b7b84e
MK
73632003-05-25 Mark Kettenis <kettenis@gnu.org>
7364
7365 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7366 SPARC_O1_REGNUM): New defines.
7367 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7368 (sparc32_store_return_value): New function.
7369 (sparc_extract_struct_value_address): Rewrite to operate on a
7370 regcache.
7371 (sparc_gdbarch_init): Don't set
7372 deprecated_extract_struct_value_address. Set
7373 extract_struct_value_address instead. Don't set
7374 deprecated_extract_return_value and deprecated_store_return_value
7375 for 32-bit targets. Set extract_return_value and
7376 store_return_value instead.
7377 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7378 DEPRECTAED_EXTRACT_RETURN_VALUE,
7379 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7380 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7381 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7382 (sparc_store_return_value): Remove prototype.
7383 (sparc32_store_return_value): New prototype.
7384 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7385 Adjust prototypes.
7386
f6ad61e3
MK
73872003-05-24 Mark Kettenis <kettenis@gnu.org>
7388
7389 * sparcnbsd-tdep.c: Include "gdb_string.h".
7390
b276f1bb
AC
73912003-05-23 Andrew Cagney <cagney@redhat.com>
7392
7393 * p-valprint.c (pascal_val_print): Replace extract_address with
7394 the inline equivalent extract_unsigned_integer.
7395 * jv-valprint.c (java_value_print): Ditto.
7396 * ada-valprint.c (ada_val_print_1): Ditto.
7397 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7398
e76c5fcc
TR
73992003-05-23 Theodore A. Roth <troth@openavr.org>
7400
7401 * blockframe.c (frameless_look_for_prologue): Remove unused
7402 after_prologue variable.
7403
2cdd89cb
MK
74042003-05-23 Mark Kettenis <kettenis@gnu.org>
7405
7406 * blockframe.c (get_pc_function_start): Rewrite to avoid
7407 asignments in if-statements.
7408
182d43bc
EZ
74092003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7410
7411 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7412 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7413 files, don't relocate absolute symbols (and do use mst_abs).
7414
e8f3fcdd
AC
74152003-05-23 Andrew Cagney <cagney@redhat.com>
7416
7417 * objc-lang.c: Include "gdb_assert.h".
7418 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7419 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7420 (gdb_check, gdb_check_fatal): Delete functions.
7421 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7422 gdb_assert.
7423 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7424 * Makefile.in (objc-lang.o): Update dependencies.
7425
3c23e6fb
ILT
74262003-05-22 Ian Lance Taylor <ian@airs.com>
7427
7428 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7429 with fprintf_filtered, not fprintf_unfiltered.
7430
af1342ab
AC
74312003-05-22 Andrew Cagney <cagney@redhat.com>
7432
7433 * stack.c (frame_info): Inline extract_address, replacing it with
7434 extract_unsigned_integer.
7435 * findvar.c (unsigned_pointer_to_address): Ditto.
7436 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7437 * dwarf2expr.c (dwarf2_read_address): Ditto.
7438 * frame.c (frame_pc_unwind): Update comment.
7439 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7440
47e242ec
JJ
74412003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7442
7443 * infptrace.c (detach): Call print_sys_errmsg rather than
7444 perror_with_name to issue warning message when errno is non-zero
7445 after calling ptrace detach.
7446
e2ac8128
JB
74472003-05-21 J. Brobecker <brobecker@gnat.com>
7448
7449 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7450 macro definitions from here...
7451 * hppa-tdep.c: ...to there.
7452
92b3541e
KB
74532003-05-20 Kevin Buettner <kevinb@redhat.com>
7454
7455 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7456 register_ptrace_addr(). Fix all callers.
7457
55809acb
AS
74582003-05-21 Andreas Schwab <schwab@suse.de>
7459
7460 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7461 dependencies.
7462 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7463 end.
7464 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7465 (_initialize_m68k_linux_tdep): New function.
7466 (m68k_linux_frame_saved_pc): Make static.
7467 (m68k_linux_extract_return_value): Likewise.
7468 (m68k_linux_store_return_value): Likewise.
7469 (m68k_linux_extract_struct_value_address): Likewise.
7470 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7471 Remove.
7472 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7473 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7474 (DEPRECATED_FRAME_SAVED_PC): Remove.
7475
0fbc10f7
KW
74762003-05-20 Kris Warkentin <kewarken@qnx.com>
7477
7478 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7479 regset numbering rather than our own.
7480
58da2eb2
DC
74812003-05-19 David Carlton <carlton@bactrian.org>
7482
7483 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7484
1fcb5155
DC
74852003-05-19 David Carlton <carlton@bactrian.org>
7486
7487 Partial fix for PR c++/827.
7488 * cp-support.h: Include symtab.h.
7489 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7490 * cp-namespace.c: Update contributors.
7491 (cp_lookup_symbol_nonlocal): New.
7492 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7493 (lookup_symbol_file): Ditto.
7494 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7495 * block.h: Declare block_scope, block_using, block_global_block.
7496 * block.c (block_scope): New.
7497 (block_using, block_global_block): Ditto.
7498 * Makefile.in (cp_support_h): Depend on symtab_h.
7499 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7500
5f9a71c3
DC
75012003-05-19 David Carlton <carlton@bactrian.org>
7502
7503 * language.h (struct language_defn): Add 'la_value_of_this'
7504 and 'la_lookup_symbol_nonlocal' members.
7505 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7506 lookup_symbol_static, lookup_symbol_global,
7507 lookup_symbol_aux_block.
7508 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7509 if we should search fields of this and how to do static/global
7510 lookup.
7511 (lookup_symbol_aux_block): Make extern.
7512 (basic_lookup_symbol_nonlocal): New.
7513 (lookup_symbol_static, lookup_symbol_global): Ditto.
7514 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7515 'la_lookup_symbol_nonlocal' members.
7516 * c-lang.c (c_language_defn, cplus_language_defn)
7517 (asm_language_defn, minimal_language_defn): Ditto.
7518 * jv-lang.c (java_language_defn): Ditto.
7519 * language.c (unknown_language_defn, auto_language_defn)
7520 (local_language_defn): Ditto.
7521 * m2-lang.c (m2_language_defn): Ditto.
7522 * objc-lang.c (objc_language_defn): Ditto.
7523 * scm-lang.c (scm_language_defn): Ditto.
7524 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7525 * p-lang.c (pascal_language_defn): Ditto for both.
7526 * Makefile.in (f-lang.o): Depend on value_h.
7527 (p-lang.o): Ditto.
7528
89a9d1b1
DC
75292003-05-19 David Carlton <carlton@bactrian.org>
7530
7531 * block.h: Declare block_static_block.
7532 * block.c (block_static_block): New.
7533 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7534 lookup_symbol_aux_local, calling block_static_block instead.
7535 (lookup_symbol_aux_local): Delete 'static_block' argument.
7536
eed3f8ab
DC
75372003-05-19 David Carlton <carlton@bactrian.org>
7538
7539 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7540
a09d8bda
ML
75412003-05-19 Michal Ludvig <mludvig@suse.cz>
7542
7543 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7544 register numbers mapping.
7545
69636828
AF
75462003-05-18 Adam Fedor <fedor@gnu.org>
7547
7548 * symtab.c (completion_list_objc_symbol): New function.
7549 (make_symbol_completion_list): Use it to add ObjC symbols
7550 when looking though the list.
7551 (language_search_unquoted_string): New function.
7552 (make_file_symbol_completion_list): Use it.
7553
55baeb84
AS
75542003-05-18 Andreas Schwab <schwab@suse.de>
7555
d0b45d99
AS
7556 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7557 dependencies.
7558 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7559 as m68k_linux_extract_return_value.
7560 (DEPRECATED_STORE_RETURN_VALUE): Define as
7561 m68k_linux_store_return_value.
7562 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7563 m68k_linux_extract_struct_value_address.
7564 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7565 get_next_frame, get_frame_base, get_frame_pc.
7566 (m68k_linux_frame_saved_pc): Use get_frame_base.
7567 (m68k_linux_extract_return_value): New function.
7568 (m68k_linux_store_return_value): New function.
7569 (m68k_linux_extract_struct_value_address): New function.
7570 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7571
55baeb84
AS
7572 * c-exp.y (typebase): Remove duplicate occurence of
7573 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7574 of lookup_signed_typename.
55baeb84 7575
b6b08ebf
MK
75762003-05-18 Mark Kettenis <kettenis@gnu.org>
7577
7578 * dwarf2loc.c (find_location_expression): Change type of second
7579 argument to `size_t *'.
7580 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7581 for size variable.
7582
5ad1c190
DC
75832003-05-18 David Carlton <carlton@bactrian.org>
7584
7585 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7586 'linkage_name'. Add comment.
7587 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7588 'linkage_name'.
7589 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7590 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7591 (lookup_block_symbol): Ditto.
7592
b8b527c5
AC
75932003-05-16 Andrew Cagney <cagney@redhat.com>
7594
7595 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7596 * gdbarch.h, gdbarch.c: Re-generate.
7597 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7598 * TODO (REGISTER_BYTES): Delete reference.
7599 * alpha-tdep.c (alpha_gdbarch_init): Update.
7600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7601 * x86-64-tdep.c (x86_64_init_abi): Update.
7602 * vax-tdep.c (vax_gdbarch_init): Update.
7603 * v850-tdep.c (v850_gdbarch_init): Update.
7604 * sparc-tdep.c (sparc_gdbarch_init): Update.
7605 * sh-tdep.c (sh_gdbarch_init): Update.
7606 * s390-tdep.c (s390_gdbarch_init): Update.
7607 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7608 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7609 (ns32k_gdbarch_init_32382): Update.
7610 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7611 * mcore-tdep.c (mcore_gdbarch_init): Update.
7612 * m68k-tdep.c (m68k_gdbarch_init): Update.
7613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7614 * ia64-tdep.c (ia64_gdbarch_init): Update.
7615 * i386-tdep.c (i386_gdbarch_init): Update.
7616 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7617 * hppa-tdep.c (hppa_gdbarch_init): Update.
7618 * h8300-tdep.c (h8300_gdbarch_init): Update.
7619 * frv-tdep.c (frv_gdbarch_init): Update.
7620 * cris-tdep.c (cris_gdbarch_init): Update.
7621 * avr-tdep.c (avr_gdbarch_init): Update.
7622 * arm-tdep.c (arm_gdbarch_init): Update.
7623 * sparc-tdep.c (sparc_pop_frame): Update.
7624 * rs6000-tdep.c (rs6000_pop_frame): Update.
7625 * remote.c (init_remote_state): Update.
7626 (remote_prepare_to_store): Update.
7627 * remote-vx.c (vx_prepare_to_store): Update.
7628 * remote-sds.c (sds_fetch_registers): Update.
7629 (sds_prepare_to_store): Update.
7630 * remote-array.c: Update.
7631 * regcache.c (init_legacy_regcache_descr): Update.
7632 (init_regcache_descr): Update.
7633 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7634 (mips_o64_extract_return_value): Update.
7635 * irix5-nat.c (fetch_core_registers): Update.
7636 * irix4-nat.c (fetch_core_registers): Update.
7637 * i386-tdep.h: Update.
7638 * hppa-tdep.c (pa_do_registers_info): Update.
7639 (pa_do_strcat_registers_info): Update.
7640 * cris-tdep.c (cris_register_bytes_ok): Update.
7641 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7642 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7643 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7644 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7645 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7646 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7647 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7648 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7649 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7650 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7651 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7652 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7653 (REGISTER_BYTES_OK): Update.
7654 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7655 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7656
ee2842e2
ILT
76572003-05-16 Ian Lance Taylor <ian@airs.com>
7658
7659 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7660 (vax_print_insn, print_insn_arg): Remove static functions.
7661 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7662 print_insn_vax from opcodes library.
7663 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7664
973177d3
AC
76652003-05-15 Andrew Cagney <cagney@redhat.com>
7666
aaab4dba
AC
7667 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7668 * target.h (memory_breakpoint_from_pc): Delete declaration.
7669 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7670 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7671 * monitor.c (monitor_insert_breakpoint): Use
7672 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7673 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7674 * gdbarch.h, gdbarch.c: Re-generate.
7675 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7676 (sparc_gdbarch_init): Set breakpoint_from_pc to
7677 sparc_breakpoint_from_pc.
7678 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7679 (BREAKPOINT_FROM_PC): Define.
7680 (sparc_breakpoint_from_pc): Declare.
7681 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7682 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7683 (BREAKPOINT_FROM_PC): Define.
7684 (BREAKPOINT): Delete macro.
7685 * target.h: Update comment.
7686 * s390-tdep.c (s390_gdbarch_init): Update comments.
7687 * remote.c: Update comments.
7688 * remote-mips.c: Update comments.
7689 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7690 * mem-break.c: Update comment.
7691 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7692 (ia64_memory_insert_breakpoint): Update.
7693 * config/sparc/tm-sparc.h: Update comment.
7694 * config/pa/tm-hppa64.h: Update comment.
7695 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7696 (rs6000_breakpoint_from_pc): Update.
7697 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7698 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7699 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7700 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7701 (mips_breakpoint_from_pc): Update.
7702 (mips_dump_tdep): Update.
7703
e06963ff
AC
7704 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7705 * minsyms.c (lookup_minimal_symbol): Inline
7706 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7707
973177d3
AC
7708 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7709 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7710 * p-lang.c (pascal_printstr): Ditto.
7711 * objc-lang.c (objc_printstr): Ditto.
7712 * m2-lang.c (m2_printstr): Ditto.
7713 * jv-valprint.c (java_print_value_fields): Ditto.
7714 * f-lang.c (f_printstr): Ditto.
7715 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7716 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7717 for repeat_count_threshold.
7718 * Makefile.in (cp-valprint.o): Update dependencies.
7719
5ea2bd7f 77202003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7721
5ea2bd7f
JJ
7722 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7723 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7724 they start with mov r2,r12. Support skipping over indirect stores
7725 of the input registers. Upon hitting a non-nop branch instruction
7726 or predicated instruction, bail out by setting lim_pc to the current
7727 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7728 beyond our calculated value and we have trust_limit set,
7729 use the lim_pc value.
7730
cc8c88f3
AC
77312003-05-15 Andrew Cagney <cagney@redhat.com>
7732
7733 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7734 generic_find_dummy_frame.
7735 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7736 (deprecated_generic_find_dummy_frame): Update.
7737 (deprecated_read_register_dummy): Update.
7738 * frame.c (deprecated_generic_get_saved_register): Update.
7739
909cd28e
TR
77402003-05-15 Theodore A. Roth <troth@openavr.org>
7741
7742 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7743 (avr_gdbarch_init): Set breakpoint_from_pc method.
7744
b923b08d
AC
77452003-05-15 Andrew Cagney <cagney@redhat.com>
7746
7747 * regcache.c (build_regcache): Set deprecated_register_valid
7748 directly.
7749 (deprecated_grub_regcache_for_register_valid): Delete function.
7750 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7751 declaration.
7752
ae2f03ac 77532003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7754
7755 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7756 * symtab.c (lookup_symbol_aux): Delete calls to
7757 lookup_symbol_aux_minsyms.
7758 (lookup_symbol_aux_minsyms): Comment out function and
7759 prototype. Delete lookup by mangled name.
ae2f03ac 7760
18ec9831
KB
77612003-05-14 Kevin Buettner <kevinb@redhat.com>
7762
7763 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7764 correctly indicate an empty stack and ``stack_allocated'' to the
7765 indicate the number of elements initially allocated.
7766 (dwarf_expr_grow_stack): Simplify method for computing new
7767 stack size. Don't loop infinitely if ``stack_len'' is zero.
7768 (execute_stack_op): Move ``ctx->in_reg'' initialization
7769 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7770 be used in conjuction with DW_OP_piece. Revise error message
7771 accordingly.
7772
de18ac1f
TR
77732003-05-14 Theodore A. Roth <troth@openavr.org>
7774
7775 * MAINTAINERS: Update my email address.
7776 * avr-tdep.c: Ditto.
7777
176620f1
EZ
77782003-05-14 Elena Zannoni <ezannoni@redhat.com>
7779
7780 * symtab.h (enum domain_enum): Rename from namespace_enum.
7781 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7782 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7783 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7784 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7785 TYPES_NAMESPACE, METHODS_NAMESPACE.
7786 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7787 (struct symbol, struct partial_symbol): Rename field
7788 'namespace_enum namespace' to 'domain_enum domain'.
7789 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7790 Delete old define kludge for namespace.
7791
7792 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7793 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7794 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7795 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7796 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7797 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7798 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7799 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7800 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7801 occurrences of the above.
7802
b7f31508
ILT
78032003-05-14 Ian Lance Taylor <ian@airs.com>
7804
7805 * Makefile.in (install-only): Use $(SHELL) when running
7806 mkinstalldirs.
7807
2fdbdd39
ILT
78082003-05-13 Ian Lance Taylor <ian@airs.com>
7809
a208d82c
ILT
7810 * MAINTAINERS (write after approval): Add myself.
7811
2fdbdd39
ILT
7812 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7813 second and third arguments.
7814 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7815 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7816
fbd9dcd3
AC
78172003-05-13 Andrew Cagney <cagney@redhat.com>
7818
7819 * defs.h (store_address): Delete declaration.
7820 findvar.c (store_address): Delete function.
7821 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7822 store_unsigned_integer.
7823 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7824 * v850-tdep.c (v850_push_arguments): Ditto.
7825 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7826 * sh-tdep.c (sh64_get_saved_register): Ditto.
7827 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7828 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7829 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7830 (mips_get_saved_register): Ditto.
7831 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7832 (find_func_descr, ia64_push_arguments): Ditto.
7833 * i386-tdep.c (i386_push_arguments): Ditto.
7834 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7835 * frv-tdep.c (frv_push_arguments): Ditto.
7836 * frame.c (legacy_saved_regs_prev_register): Ditto.
7837 (deprecated_generic_get_saved_register): Ditto.
7838 * findvar.c (unsigned_address_to_pointer): Ditto.
7839 * dwarf2read.c (dwarf2_const_value): Ditto.
7840 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7841 * alpha-tdep.c (alpha_push_arguments): Ditto.
7842
6760f9e6
JB
78432003-05-12 J. Brobecker <brobecker@gnat.com>
7844
7845 * NEWS: Mention that the hppa-hpux port has been partially
7846 multiarched (32bit ABIT only, so far).
7847
30e221b4
AC
78482003-05-11 Andrew Cagney <cagney@redhat.com>
7849
7850 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7851 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7852 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7853 sim/testsuite/sim/arm/misaligned2.ms, and
7854 sim/testsuite/sim/arm/misaligned3.ms.
7855 * disasm.h (struct ui_file): Add opaque struct declaration.
7856 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7857 * frame.h (struct ui_file): Ditto.
7858
dea7f9ba
MK
78592003-05-11 Mark Kettenis <kettenis@gnu.org>
7860
7861 * value.h: Pretty print.
7862
01986c48
MK
78632003-05-10 Mark Kettenis <kettenis@gnu.org>
7864
7865 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7866
123a958e
AC
78672003-05-08 Andrew Cagney <cagney@redhat.com>
7868
7869 * regcache.h (max_register_size): Delete declaration.
7870 * regcache.c (max_register_size): Delete function.
7871 (struct regcache_descr): Delete field "max_register_size".
7872 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7873 registers fit in MAX_REGISTER_SIZE.
7874 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7875 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7876 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7877 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7878 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7879 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7880 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7881 * dve3900-rom.c, hppa-tdep.c: Ditto.
7882
eb294659
DC
78832003-05-08 David Carlton <carlton@math.stanford.edu>
7884
7885 * valops.c (push_word): Fix typo.
7886
d9d9c31f
AC
78872003-05-08 Andrew Cagney <cagney@redhat.com>
7888
7889 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7890 * gdbarch.h: Re-generate.
7891 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7892 (legacy_max_register_raw_size): Delete declaration.
7893 * regcache.c (legacy_max_register_raw_size): Delete function.
7894 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7895 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7896 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7897 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7898 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7899 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7900 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7901 * findvar.c, dwarf2cfi.c: Ditto.
7902
22540ece
AC
79032003-05-08 Andrew Cagney <cagney@redhat.com>
7904
7905 * mips-tdep.c (read_signed_register): New function, moved to here
7906 from "regcache.c".
7907 (read_signed_register_pid): Ditto.
7908 * regcache.c (read_signed_register_pid): Delete function, moved to
7909 "mips-tdep.c".
7910 (read_signed_register): Ditto.
7911 * regcache.h (read_signed_register): Delete declaration.
7912 (read_signed_register_pid): Delete declaration.
7913
0c92afe8
AC
79142003-05-08 Andrew Cagney <cagney@redhat.com>
7915
7916 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7917 * gdbarch.h: Re-generate.
7918 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7919 (legacy_max_register_virtual_size): Delete declaration.
7920 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7921 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7922 * tracepoint.c (memrange_sortmerge): Ditto.
7923 * sparc-tdep.c (sparc_print_registers): Ditto.
7924 * regcache.c (legacy_max_register_virtual_size): Delete function.
7925
6037b830
JB
79262002-05-08 J. Brobecker <brobecker@gnat.com>
7927
7928 * fork-child.c (escape_bang_in_quoted_argument): New function.
7929 (fork_inferior): Escape '!' characters in quoted arguments
7930 only when needed.
7931
5d62c8b1
JB
79322003-05-08 J. Brobecker <brobecker@gnat.com>
7933
7934 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7935 the language of the CU is not currently supported by GDB.
7936
20a0e81d
JB
79372003-05-08 J. Brobecker <brobecker@gnat.com>
7938
7939 * defs.h (language): Add language_minimal enum value.
7940 * c-lang.c (minimal_language_defn): New language definition.
7941 (_initialize_c_language): Add the new minimal language to the list
7942 of languages known to GDB.
7943
710ee10a
KB
79442003-05-08 Kevin Buettner <kevinb@redhat.com>
7945
7946 * frame.c (get_frame_type): Don't attempt to lazily initialize
7947 frame's unwinder for legacy frames.
7948
1750fa04
AC
79492003-05-07 Andrew Cagney <cagney@redhat.com>
7950
7951 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7952 and "regcache" parameters.
7953 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7954
ddf9f258 79552003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7956
7957 * dwarf2read.c (dwarf_decode_lines): Only use output of
7958 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7959 the current address.
7960
87767c29
AC
79612003-05-07 Andrew Cagney <cagney@redhat.com>
7962
7963 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7964 code.
7965
5e7b2f39
JB
79662003-05-07 Jim Blandy <jimb@redhat.com>
7967
7968 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7969 'maint info symtabs' and 'maint info psymtabs'.
7970 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7971 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7972 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7973 Declarations updated.
7974 * maint.c (maintenance_list_command): Delete.
7975 (_initialize_maint_cmds): Update calls to add_cmd.
7976 * gdbcmd.h (maintenancelistlist): Delete declaration.
7977 * cli/cli-cmds.c (maintenancelistlist): Delete.
7978 (init_cmd_lists): Don't initialize it.
7979 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7980
f6684c31
AC
79812003-05-07 Andrew Cagney <cagney@redhat.com>
7982
7983 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7984 "regcache".
7985 (d10v_print_registers_info): Update.
7986 (d10v_dmap_register, d10v_imap_register): Delete functions.
7987 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7988 and "imap_register".
7989 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7990 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7991 * arch-utils.c (generic_remote_translate_xfer_address): Add
7992 "regcache" and "gdbarch" parameters.
7993 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7994 parameter. Change class to multi-arch.
7995 * gdbarch.h, gdbarch.c: Re-generate.
7996 * remote.c (remote_xfer_memory): Use
7997 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7998
e4846b08
JJ
79992003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8000
8001 * infrun.c (prev_pc): Move declaration ahead of proceed().
8002 (proceed): Refresh prev_pc value before resuming.
8003 (stop_stepping): Remove code to refresh prev_pc.
8004
6b71b8ac
KW
80052003-05-06 Kris Warkentin <kewarken@qnx.com>
8006
8007 * nto-tdep.c: Removed stray comment.
8008
47979a4b
KW
80092003-05-06 Kris Warkentin <kewarken@qnx.com>
8010
8011 * i386-nto-tdep.c: Fix old K&R function definitions.
8012 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8013 Also change add_show_from_set() call to add_setshow_cmd().
8014 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8015
00905d52
AC
80162003-05-05 Andrew Cagney <cagney@redhat.com>
8017
8018 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8019 (fprint_dummy_frames): New function.
8020 (maintenance_print_dummy_frames): New function.
8021 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8022 * frame.c (fprint_frame_id): Make global.
8023 * frame.h (fprint_frame_id): Declare.
8024 * Makefile.in (dummy-frame.o): Update dependencies.
8025
b1e29e33
AC
80262003-05-05 Andrew Cagney <cagney@redhat.com>
8027
8028 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8029 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8030 SIZEOF_CALL_DUMMY_WORDS.
8031 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8032 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8033 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8034 CALL_DUMMY_BREAKPOINT_OFFSET.
8035 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8036 CALL_DUMMY_START_OFFSET.
8037 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8038 * gdbarch.h, gdbarch.c: Re-generate.
8039 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8040 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8041 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8042 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8043 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8044 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8045 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8046 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8047 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8048 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8049 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8050 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8051 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8052 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8053 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8054
80552003-05-05 Kris Warkentin <kewarken@qnx.com>
8056
8057 * configure.tgt: Add i[3456]86-*-nto*.
8058 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8059 * nto-tdep.c: New file. Neutrino target support routines.
8060 * nto-tdep.h: New file. Neutrino target header.
8061 * config/tm-qnxnto.h: New file.
8062 * config/i386/i386nto.mt: New file.
8063 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8064
0ce3d317
AC
80652003-05-04 Andrew Cagney <cagney@redhat.com>
8066
8067 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8068 (load_infrun_state): Ditto.
8069 (struct thread_info): Drop "prev_func_name" field.
8070 * thread.c (load_infrun_state): Update.
8071 (save_infrun_state): Update.
8072 * infrun.c (prev_func_name): Delete variable.
8073 (init_wait_for_inferior): Do not clear prev_func_name.
8074 (stop_stepping, keep_going, context_switch): Do not swap
8075 prev_func_name.
8076 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8077 instead of PC_IN_SIGTRAMP.
8078
46654a5b
AC
80792003-05-04 Andrew Cagney <cagney@redhat.com>
8080
8081 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8082 REGISTER_BYTE with register_offset_hack.
8083 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8084 that REGISTER_BYTE is consistent with the regcache.
8085 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8086 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8087
14b08c1b
MK
80882003-05-04 Mark Kettenis <kettenis@gnu.org>
8089
04c8243f
MK
8090 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8091 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8092
14b08c1b
MK
8093 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8094
c7a11e01
JB
80952003-05-03 J. Brobecker <brobecker@gnat.com>
8096
8097 From Thierry Schneider <tpschneider1@yahoo.com>
8098 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8099 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8100 (mi-cmd-symbol.o): Add rule.
8101
7043d8dc
AC
81022003-05-03 Andrew Cagney <cagney@redhat.com>
8103
8104 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8105 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8106 * gdbarch.h, gdbarch.c: Re-generate.
8107 * d10v-tdep.c (d10v_push_dummy_code): New function.
8108 (d10v_gdbarch_init): Set push_dummy_code.
8109 * infcall.c (legacy_push_dummy_code): New function.
8110 (generic_push_dummy_code): New function.
8111 (push_dummy_code): New function.
8112 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8113 instead of dummy_addr, to push_dummy_call. Move call to
8114 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8115 switch.
8116 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8117
92bf2b80
AC
81182003-05-03 Andrew Cagney <cagney@redhat.com>
8119
8120 * disasm.h (print_insn): Declare.
8121 * disasm.c (init_gdb_disassemble_info): New function.
8122 (gdb_disassembly): Call init_gdb_disassemble_info.
8123 (gdb_print_insn): New function.
8124 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8125 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8126 * mcore-tdep.c: Include "disasm.h"
8127 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8128 * d10v-tdep.c: Include "disasm.h".
8129 (display_trace): Call gdb_print_insn, instead of print_insn.
8130 (print_insn): Delete function.
8131 * printcmd.c: Include "disasm.h".
8132 (print_insn): Delete function.
8133 (print_formatted): Call gdb_print_insn, instead of print_insn.
8134 * Makefile.in (printcmd.o): Update dependencies.
8135 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8136
27d94c49
AC
81372003-05-02 Andrew Cagney <cagney@redhat.com>
8138
82de1e5b
AC
8139 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8140 PC_REGNUM, re-indent.
8141 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8142 PC_REGNUM isn't set.
8143
27d94c49
AC
8144 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8145 * gdbarch.h, gdbarch.c: Re-generate.
8146 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8147 register_virtual_size, pc_regnum, or register_bytes.
8148 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8149 (d10v_register_type): Use D10V_PC_REGNUM.
8150 (d10v_print_registers_info, d10v_read_pc): Ditto.
8151 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8152 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8153
a9c0dc7f
DC
81542003-05-02 David Carlton <carlton@bactrian.org>
8155
8156 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8157 the name with mstrsave.
8158
e33d66ec
EZ
81592003-05-02 Elena Zannoni <ezannoni@redhat.com>
8160
8161 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8162 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8163 (host_charset_name, target_charset_name): New vars for use by
8164 set/show commands.
8165 (host_charset_enum, target_charset_enum): New enums for set/show
8166 commands.
8167 (set_charset_sfunc, set_host_charset_sfunc,
8168 set_target_charset_sfunc): New functions.
8169 (set_host_charset, set_target_charset): Make static.
8170 (list_charsets, set_host_charset_command,
8171 set_target_charset_command): Delete functions.
8172 (show_charset_command): Rewrite as....
8173 (show_charset): Hook this up with the set/show command mechanism.
8174 (_initialize_charset): Change names of charsets to match the
8175 set/show enums. Use host_charset_name and target_charset_name.
8176 Use set/show mechanism for charset, host-charset, target-charset
8177 commands. Do not make 'show host-charset' and 'show
8178 target-charset' be aliases of 'show charset'.
8179
8180 * charset.h (set_host_charset, set_target_charset): Don't export,
8181 they are not used outside the file.
8182
2b6fd0d8
AC
81832003-05-01 Andrew Cagney <cagney@redhat.com>
8184
8185 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8186 (gdb_disassembly): Make "di" non static, always initialize and
8187 cleanup. Always use dis_asm_read_memory.
8188 (gdb_dis_asm_read_memory): Delete function.
8189
6ae2f580
AC
81902003-05-01 Andrew Cagney <cagney@redhat.com>
8191
8192 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8193 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8194
810ecf9f
AC
81952003-04-30 Andrew Cagney <cagney@redhat.com>
8196
8197 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8198 "tm_print_insn_info".
8199 (TARGET_PRINT_INSN_INFO): Delete macro.
8200 (dis_asm_read_memory): Delete function declaration.
8201 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8202 (tm_print_insn_info): Delete variable definition.
8203 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8204 * gdbarch.h, gdbarch.c: Re-generate.
8205 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8206 "deprecated_tm_print_insn_info".
8207 * mcore-tdep.c (mcore_dump_insn): Ditto.
8208 * mips-tdep.c (mips_gdbarch_init): Ditto.
8209 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8210 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8211 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8212 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8213 instead of TARGET_PRINT_INSN_INFO, add comment.
8214 * s390-tdep.c (s390_get_frame_info): Instead of
8215 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8216 (s390_check_function_end, s390_is_sigreturn): Ditto.
8217 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8218 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8219 * disasm.c: Include "gdbcore.h".
8220 (_initialize_disasm): New function, initialize
8221 "deprecated_tm_print_insn_info".
8222 (deprecated_tm_print_insn_info): New variable.
8223 (dis_asm_read_memory): Moved from "corefile.c", made static.
8224 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8225 * Makefile.in (disasm.o): Update dependencies.
8226
07020390
AC
82272003-04-30 Andrew Cagney <cagney@redhat.com>
8228
8229 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8230
a9fa03de
AF
82312003-04-29 Adam Fedor <fedor@gnu.org>
8232
8233 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8234 * infcall.c (find_function_addr): Make non-static.
8235 * infcall.h (find_function_addr): Declare.
8236 * Makefile.in (eval.o): Update dependencies.
8237
1bae87b9
AF
82382003-04-28 Adam Fedor <fedor@gnu.org>
8239
8240 * symtab.c (symbol_find_demangled_name): Check for and demangle
8241 ObjC symbols.
8242 (symbol_init_demangled_name): Init for language_objc as well.
8243
0ba6dca9
AC
82442003-04-28 Andrew Cagney <cagney@redhat.com>
8245
8246 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8247 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8248 * gdbarch.h, gdbarch.c: Re-generate.
8249 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8250 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8251 * inferior.h (deprecated_read_fp): Rename read_fp.
8252 (generic_target_read_fp): Delete declaration.
8253 * regcache.c (generic_target_read_fp): Delete function.
8254 (deprecated_read_fp): Replace read_fp, use
8255 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8256 * d10v-tdep.c (d10v_read_fp): Delete function.
8257 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8258
8259 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8260 deprecated_target_read_fp to generic_target_read_fp.
8261 * sh-tdep.c (sh_gdbarch_init): Ditto.
8262 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8264 * frv-tdep.c (frv_gdbarch_init): Ditto.
8265
8266 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8267 deprecated_fp_regnum.
8268 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8269 * vax-tdep.c (vax_gdbarch_init): Ditto.
8270 * v850-tdep.c (v850_gdbarch_init): Ditto.
8271 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8272 * sh-tdep.c (sh_gdbarch_init): Ditto.
8273 * s390-tdep.c (s390_gdbarch_init): Ditto.
8274 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8275 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8276 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8277 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8279 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8280 * i386-tdep.c (i386_gdbarch_init): Ditto.
8281 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8282 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8283 * frv-tdep.c (frv_gdbarch_init): Ditto.
8284 * cris-tdep.c (cris_gdbarch_init): Ditto.
8285 * avr-tdep.c (avr_gdbarch_init): Ditto.
8286 * arm-tdep.c (arm_gdbarch_init): Ditto.
8287 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8288
8289 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8290 * v850-tdep.c (v850_gdbarch_init): Ditto.
8291 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8292 * sh-tdep.c (sh_gdbarch_init): Ditto.
8293 * s390-tdep.c (s390_gdbarch_init): Ditto.
8294 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8295 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8296 * mips-tdep.c (mips_gdbarch_init): Ditto.
8297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8298 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8299 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8300 * frv-tdep.c (frv_gdbarch_init): Ditto.
8301 * avr-tdep.c (avr_gdbarch_init): Ditto.
8302 * arm-tdep.c (arm_gdbarch_init): Ditto.
8303
8304 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8305 DEPRECATED_FP_REGNUM.
8306 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8307 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8308 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8309 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8310 (sparc32_register_virtual_type): Ditto.
8311 * sh-tdep.c (sh64_frame_chain): Ditto.
8312 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8313 (sh_nofp_frame_init_saved_regs): Ditto.
8314 (sh64_nofp_frame_init_saved_regs): Ditto.
8315 (sh_fp_frame_init_saved_regs): Ditto.
8316 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8317 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8318 * procfs.c (procfs_fetch_registers): Ditto.
8319 (procfs_store_registers): Ditto.
8320 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8321 (store_inferior_registers, fetch_core_registers): Ditto.
8322 (fetch_kcore_registers, clear_regs): Ditto.
8323 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8324 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8325 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8326 * nlm/i386.c (do_status): Ditto.
8327 * mipsv4-nat.c (supply_gregset): Ditto.
8328 * mips-tdep.c: Ditto for comments.
8329 * mips-nat.c (fetch_inferior_registers): Ditto.
8330 (store_inferior_registers, fetch_core_registers): Ditto.
8331 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8332 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8333 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8334 (i386_do_pop_frame, i386_register_type): Ditto.
8335 * hppa-tdep.c (hppa_frame_chain): Ditto.
8336 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8337 (hppa_pop_frame, hppa_read_fp): Ditto.
8338 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8339 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8340 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8341 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8342 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8343 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8344 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8345 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8346 * blockframe.c: Ditto for comments.
8347 * arch-utils.h: Ditto for comments.
8348 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8349 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8350 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8351 * alpha-tdep.h: Ditto for comments.
8352 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8353 (alpha_cannot_store_register): Ditto.
8354 (alpha_push_dummy_frame): Ditto.
8355 * alpha-nat.c (supply_gregset): Ditto.
8356
8357 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8358 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8359 * config/sparc/tm-sparc.h: Update comment.
8360
8361 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8362 deprecated_read_fp instead of TARGET_READ_FP.
8363 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8364 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8365 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8366 deprecated_read_fp instead of read_fp.
8367 * s390-tdep.c (s390_push_arguments): Ditto.
8368 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8369 * frame.h: Ditto in comments.
8370 * frame.c (legacy_get_prev_frame): Ditto.
8371 * dummy-frame.c (dummy_frame_this_id): Ditto.
8372 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8373
d7a27068
AC
83742003-04-28 Andrew Cagney <cagney@redhat.com>
8375
8376 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8377 * gdbarch.h, gdbarch.c: Re-generate.
8378 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8379 * vax-tdep.c (_initialize_vax_tdep): Update.
8380 * v850-tdep.c (_initialize_v850_tdep): Update.
8381 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8382 * s390-tdep.c (_initialize_s390_tdep): Update.
8383 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8384 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8385 * mips-tdep.c (_initialize_mips_tdep): Update.
8386 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8387 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8388 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8389 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8390 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8391 * frv-tdep.c (_initialize_frv_tdep): Update.
8392 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8393 (_initialize_cris_tdep): Update.
8394 * arch-utils.c (legacy_print_insn): Update.
8395 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8396
d2630e69
AF
83972003-04-26 Adam Fedor <fedor@gnu.org>
8398
8399 * linespec.c (decode_objc): New function to decode ObjC calls
8400 (decode_line_1): Check for ObjC calls (using decode_objc)
8401 * Makefile (linespec.o): Update dependencies.
8402
3086aeae
DJ
84032003-04-26 Daniel Jacobowitz <drow@mvista.com>
8404
8405 * breakpoint.h (struct breakpoint_ops): New.
8406 (struct breakpoint): Add ops member.
8407
8408 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8409 (mention): Use new breakpoint ops member.
8410 (set_raw_breakpoint): Initialize ops field to NULL.
8411 (print_exception_catchpoint, print_one_exception_catchpoint)
8412 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8413 (gnu_v3_exception_catchpoint_ops): New.
8414 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8415
1fbec6c3
AF
84162003-04-25 Adam Fedor <fedor@gnu.org>
8417
8418 * Makefile.in (COMMON_OBS): Add objc-lang.o
8419
0ef21242
AC
84202003-04-25 Andrew Cagney <cagney@redhat.com>
8421
8422 * d10v-tdep.c (print_insn): Delete function.
8423 (display_trace): Use TARGET_PRINT_INSN.
8424 (_initialize_d10v_tdep): Do not set tm_print_insn.
8425 (d10v_gdbarch_init): Set print_insn.
8426
f75493ed
AC
84272003-04-25 Andrew Cagney <cagney@redhat.com>
8428
8429 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8430 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8431 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8432 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8433 (nr_dmap_regs, a0_regnum): ... new functions.
8434 (d10v_print_registers_info): Use a0_regnum, use register_size.
8435 (d10v_register_byte): Delete function.
8436 (d10v_register_raw_size): Delete function.
8437 (d10v_register_type): Use a0_regnum.
8438 (d10v_print_registers_info): Use a0_regnum.
8439 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8440 (d10v_gdbarch_init): Do not set register_byte or
8441 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8442 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8443 extract_address.
8444 (trace_command): Use XCALLOC.
8445 (print_insn): Delete reference to tm_print_insn.
8446 (saved_regs_unwinder): Use store_unsigned_integer instead of
8447 store_address.
8448 * frame.h (FRAME_OBSTACK_CALLOC): Define
8449
2202b100
DC
84502003-04-25 David Carlton <carlton@bactrian.org>
8451
8452 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8453
4e45ca2e
AF
84542003-04-24 Adam Fedor <fedor@gnu.org>
8455
8456 * objc-lang.c: Include "valprint.h"
8457 * Makefile.in (objc-lang.o): Update dependencies.
8458
93de3e7f
AF
84592003-04-24 Adam Fedor <fedor@gnu.org>
8460
8ffd9b1b 8461 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8462 architecture dependant compilation and mark as unimplemented
8463 (until they get put in the gdbarch vector).
8464
0f20eeea
DC
84652003-04-23 David Carlton <carlton@bactrian.org>
8466
8467 * cp-support.c (cp_find_first_component): Accept 'operator' in
8468 more locations.
8469
74cfe982
AC
84702003-04-23 Andrew Cagney <cagney@redhat.com>
8471
8472 * infcall.c (call_function_by_hand): Eliminate redundant
8473 indentation. Move "saved_async" and "old_cleanups" to where they
8474 are needed.
8ffd9b1b 8475
52557533
AC
84762003-04-23 Andrew Cagney <cagney@redhat.com>
8477
8478 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8479 and "buffer". Move the "name" code to where it is needed.
8480
158775de
AC
84812003-04-23 Andrew Cagney <cagney@redhat.com>
8482
8483 * infcall.c (call_function_by_hand): Move variables "start_sp",
8484 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8485 code to ON_STACK switch branch.
8ffd9b1b 8486
ebc7896c
AC
84872003-04-23 Andrew Cagney <cagney@redhat.com>
8488
8489 * infcall.c (call_function_by_hand): Make declaration of "i",
8490 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8491 lint.
8492
d727590f
AC
84932003-04-23 Andrew Cagney <cagney@redhat.com>
8494
8495 * infcall.c (call_function_by_hand): Delete variable
8496 "n_method_args". Localize "param_type"'s declaration to the loop
8497 that it is used. Reinstate code assigning to said variable -
8498 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8499 Rationalize code using "param_type".
8500
d585e13a
AC
85012003-04-22 Andrew Cagney <cagney@redhat.com>
8502
8503 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8504 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8505 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8506 to DEPRECATED_PUSH_RETURN_ADDRESS.
8507
051caad9
KB
85082003-04-22 Kevin Buettner <kevinb@redhat.com>
8509
8510 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8511 on the DWARF2 register number prior to fetching a register.
8512
77296879
JB
85132003-04-22 J. Brobecker <brobecker@gnat.com>
8514
8515 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8516 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8517 this macro was always set to 0.
77296879
JB
8518 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8519 considering the fact that this macro was always set to 0.
8520 * hppa-tdep.h (hppa_store_return_value): Likewise.
8521 (hppa_extract_return_value): Likewise.
8522
4252f1df
JB
85232003-04-22 J. Brobecker <brobecker@gnat.com>
8524
8525 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8526 the hppa-pro target only.
8527
14604c6b
JB
85282003-04-21 J. Brobecker <brobecker@gnat.com>
8529
8530 Ongoing multi-arch conversion effort for HP/UX:
8531 * config/pa/tm-hppa.h: Move all macro that are no longer
8532 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8533 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8534
77eb01d1
JB
85352003-04-21 J. Brobecker <brobecker@gnat.com>
8536
8537 * config/pa/tm-hppa.h: Obsolete a section that was only used
8538 for hppa-pro.
8539
61995b3b
JB
85402003-04-21 J. Brobecker <brobecker@gnat.com>
8541
8542 Ongoing multi-arch conversion for HP/UX.
8543 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8544 if already defined (allows hppa64 to stay non-multiarched for now).
8545 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8546
4aa79dcc
AC
85472003-04-21 Andrew Cagney <cagney@redhat.com>
8548
8549 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8550
0f751ff2
AC
85512003-04-21 Andrew Cagney <cagney@redhat.com>
8552
8553 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8554 "i386_num_mmx_regs".
8555
04714b91
AC
85562003-04-21 Andrew Cagney <cagney@redhat.com>
8557
8558 * infcall.c: New file.
8559 * infcall.h: New file.
8560 * valarith.c: Include "infcall.h".
8561 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8562 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8563 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8564 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8565 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8566 (SFILES): Add "infcall.c"
8567 (COMMON_OBS): Add "infcall.o".
8568 (infcall.o): Specify dependencies.
8569 * value.h (call_function_by_hand): Delete declaration.
8570 * inferior.h (run_stack_dummy): Delete declaration.
8571 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8572 (run_stack_dummy): Move to "infcall.c", merged into
8573 call_function_by_hand.
8574 * valops.c (call_function_by_hand): Moved to "infcall.c".
8575 (find_function_addr, value_arg_coerce): Ditto.
8576 (unwindonsignal_p, coerce_float_to_double): Ditto.
8577 (_initialize_valops): Move "set/show coerce-float-to-double", and
8578 "set/show unwindonsignal" commands to "infcall.c".
8579 * v850-tdep.c, target.h: Update comments.
8580 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8581 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8582 (sh64_init_extra_frame_info): Update comments.
8583 * mn10300-tdep.c: Update comments.
8584 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8585 * config/sparc/tm-sparc.h: Update comments.
8586 * breakpoint.h: Update comments.
8587 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8588 * arm-tdep.c: Update comment.
8589
f9d3c2a8
MK
85902003-04-19 Mark Kettenis <kettenis@gnu.org>
8591
c40e1eab
MK
8592 * i386-tdep.c (i386_num_register_names): New variable.
8593 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8594 (MM0_REGNUM): Remove redundant parentheses in define.
8595 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8596 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8597 i386_mxcsr_regnum_p): Remove redundant parentheses.
8598 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8599
94ea66b3
MK
8600 * i386-tdep.c (i386_extract_return_value,
8601 i386_store_return_value): Correct check for availability of
8602 floating-point registers.
8603
54299a1d
MK
8604 * i386-tdep.c (i386_frame_num_args): Remove function.
8605 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8606
c86c27af
MK
8607 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8608 mmx_regnum_to_fp_regnum. Adjust all callers.
8609
f9d3c2a8
MK
8610 * i386-tdep.c (i386_get_longjmp_target): Use
8611 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8612 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8613 extract_address.
8614
94ba74a9
MK
86152003-04-19 Mark Kettenis <kettenis@gnu.org>
8616
8617 * core-regset.c: Update comments to reflect reality. Re-order
8618 includes.
8619 (fetch_core_registers): Use switch instead of if. Remove
8620 redundant prototype.
8621
4074e13c
JB
86222003-04-18 Jim Blandy <jimb@redhat.com>
8623
8624 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8625 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8626
e3ab4aba
RH
86272003-04-17 Richard Henderson <rth@redhat.com>
8628
8629 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8630
627bf7c1
EZ
86312003-04-17 Michael Snyder <msnyder@redhat.com>
8632 Karen Bennet <bennet@redhat.com>
8633
8634 Committed by Elena Zannoni <ezannoni@redhat.com>
8635 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8636
514621a9
EZ
86372003-04-17 Elena Zannoni <ezannoni@redhat.com>
8638
8639 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8640 value if the return type is void.
514621a9 8641
b4acd559
JJ
86422003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8643
8644 * thread-db.c: Reindented.
8ffd9b1b 8645
530b167e 86462003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8647
8648 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8649 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8650 as types.
8651
0a48e7e8
MS
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8ffd9b1b 8675
ab9fe00e
KB
86762003-04-16 Kevin Buettner <kevinb@redhat.com>
8677
610a3745 8678 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8679 the size of ``long double'' to 16, instead of 8.
8680
e64a344c
MK
86812003-04-16 Mark Kettenis <kettenis@gnu.org>
8682
8683 * i386-linux-nat.c: Add some whitespace to make things more
8684 readable.
8685 (fetch_register, store_register, fetch_inferior_registers,
8686 store_inferior_registers): Get rid of assignment in if-statement.
8687 (store_register): Fix typo in error message.
8688
25d41031
AC
86892003-04-16 Andrew Cagney <cagney@redhat.com>
8690
8691 * utils.c (xmmalloc): Always allocate something, matches
8692 libiberty/xmalloc's semantics.
8693 (xmrealloc, xmcalloc): Ditto.
8694
c50901fd
AC
86952003-04-16 Andrew Cagney <cagney@redhat.com>
8696
8697 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8698 update comments.
8699 (get_frame_type): Initialize unwind and type when needed.
8700 (get_frame_id, frame_register_unwind): Ditto.
8701
f81824a9
AC
87022003-04-16 Andrew Cagney <cagney@redhat.com>
8703
8704 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8705 obsolete.
8706 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8707 * sparcl-stub.c: Obsolete file.
8708 * config/sparc/tm-sparclet.h: Obsolete file.
8709 * sparclet-stub.c: Obsolete file.
8710 * sparclet-rom.c: Obsolete file.
8711 * sparcl-tdep.c: Obsolete file.
8712 * config/sparc/tm-sparclite.h: Obsolete file.
8713 * config/sparc/sparclite.mt: Obsolete file.
8714 * config/sparc/sparclet.mt: Obsolete file.
8715 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8716 sparc86x-*-* obsolete.
8717
9219021c
DC
87182003-04-15 David Carlton <carlton@math.stanford.edu>
8719
8720 * Makefile.in (SFILES): Add cp-namespace.c.
8721 (COMMON_OBS): Add cp-namespace.o.
8722 (block.o): Depend on gdb_obstack_h and cp_support_h.
8723 (buildsym.o): Depend on cp_support_h.
8724 (cp-namespace.o): New.
8725 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8726 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8727 (dwarf2read.o): Depend on cp_support_h.
8728 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8729 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8730 processing_current_namespace.
8731 (read_namespace): Update processing_current_namespace; check for
8732 anonymous namespaces.
8733 (dwarf2_name): New function.
8734 (dwarf2_extension): Ditto.
8735 * cp-support.h: Update copyright, contributors.
8736 Add inclusion guards.
8737 Add opaque declaration for structs obstack, block, symbol.
8738 (struct using_direct): New struct.
8739 Add declarations for cp_find_first_component,
8740 cp_entire_prefix_len, processing_has_namespace_info,
8741 processing_current_namespace, cp_is_anonymous,
8742 cp_add_using_directive, cp_initialize_namespace,
8743 cp_finalize_namespace, cp_set_block_scope,
8744 cp_scan_for_anonymous_namespaces.
8745 * cp-namespace.c: New file.
8746 * cp-support.c: Update copyright.
8747 Include ctype.h, gdb_assert.h, gdbcmd.h.
8748 New variable maint_cplus_cmd_list.
8749 (cp_find_first_component): New function.
8750 (cp_entire_prefix_len, maint_cplus_command)
8751 (first_component_command, _initialize_cp_support): Ditto.
8752 * buildsym.c: Include cp-support.h.
8753 New variable using_list.
8754 (add_symbol_to_list): Check for anonymous namespaces.
8755 (finish_block): Set block's scope.
8756 (start_symtab): Initialize C++ namespace support.
8757 (end_symtab): Finalize C++ namespace support.
8758 * block.h: Add opaque declarations for structs
8759 block_namespace_info, using_direct, and obstack.
8760 Add declarations for block_set_scope and block_set_using.
8761 (struct block): Add 'language_specific' member.
8762 (BLOCK_NAMESPACE): New macro.
8763 * block.c: Include gdb_obstack.h and cp-support.h.
8764 (struct block_namespace_info): New struct.
8765 (block_set_scope): New function.
8766 (block_set_using, block_initialize_namespace): Ditto.
8767
d5a921c9
KB
87682003-04-14 Kevin Buettner <kevinb@redhat.com>
8769
8770 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8771 (locate_base): Return early if there aren't any link map offsets.
8772 (svr4_solib_create_inferior_hook): Warn if shared library support
8773 is unavailable.
8774
d2a52b27
DC
87752003-04-14 David Carlton <carlton@math.stanford.edu>
8776
8777 * symtab.c (symbol_set_names): Add prefix when storing Java names
8778 in hash table. Fix for PR java/1039.
8779
980cae7a
DC
87802003-04-14 David Carlton <carlton@math.stanford.edu>
8781
8782 * symtab.c (symbol_set_names): Rename 'name' arg to
8783 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8784 * symtab.h: Change 'name' argument in declaration of
8785 symbol_set_names to 'linkage_name'.
8786 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8787
e227b13c
AC
87882003-04-14 Andrew Cagney <cagney@redhat.com>
8789
8790 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8791 return the fully sign-extended register value.
8792 (get_frame_pointer): Ditto.
8793 (mips_pop_frame): Initialize "proc_desc" after checking for a
8794 dummy frame.
8795
36712a20
AC
87962003-04-14 Andrew Cagney <cagney@redhat.com>
8797
8798 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8799 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8800 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8801 (mips_push_register): Delete function.
8802 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8803 PUSH_FP_REGNUM.
8804
44ea7b70
JB
88052003-04-14 Jim Blandy <jimb@redhat.com>
8806
8807 * symmisc.c: #include "gdb_regex.h".
8808 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8809 functions.
8810 * maint.c (maintenance_list_command): New function.
8811 (_initialize_maint_cmds): Register the above as commands.
8812 * symtab.h (maintenance_list_symtabs,
8813 maintenance_list_psymtabs): New declarations.
8814 * cli/cli-cmds.c (maintenancelistlist): New variable.
8815 (init_cmd_lists): Initialize it.
8816 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8817 * gdbcmd.h (maintenancelistlist): New declaration.
8818 * Makefile.in (symmisc.o): Update dependencies.
8819
2d0c7962
EZ
88202003-04-14 Elena Zannoni <ezannoni@redhat.com>
8821
8822 * s390-nat.c: Include asm/types.h for addr_t.
8823
1947a811
CV
88242003-04-14 Corinna Vinschen <vinschen@redhat.com>
8825
8826 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8827 actually incoming type.
8828
adb616d7
AC
88292003-04-13 Andrew Cagney <cagney@redhat.com>
8830
8831 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8832 get_next_frame and get_frame_saved_regs.
8833
9b5e151c
AC
88342003-04-13 Andrew Cagney <cagney@redhat.com>
8835
8836 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8837 of gdbarch_num_regs.
8838
ef6e7e13
AC
88392003-04-13 Andrew Cagney <cagney@redhat.com>
8840
8841 * frame.h: Mention what replaced what in "struct frame_info".
8842 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8843 deprecated_update_frame_base_hack and
8844 deprecated_update_frame_pc_hack.
8845 * hppa-tdep.c: Ditto.
8846
61fbb938
DJ
88472003-04-13 Daniel Jacobowitz <drow@mvista.com>
8848
8849 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8850 to read_reg and update its comment. Remove regnum member.
8851 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8852 Don't call read_reg when setting in_reg. Call read_reg to get
8853 the frame base if it's in a register. Return the register number
8854 on the stack instead of in the context. Remove extra arguments
8855 to read_reg.
8856 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8857 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8858 the register number on the expression stack.
8859 (needs_frame_read_reg): Remove extra arguments.
8860
0d53c4c4
DJ
88612003-04-13 Daniel Jacobowitz <drow@mvista.com>
8862
8863 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8864 made non-static.
8865 (execute_stack_op): All callers updated.
8866 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8867 * dwarf2loc.c (find_location_expression): New function.
8868 (dwarf_expr_frame_base): Call it.
8869 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8870 (dwarf2_tracepoint_var_ref): New function, broken out from
8871 locexpr_tracepoint_var_ref.
8872 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8873 Make static.
8874 (loclist_read_variable, loclist_read_needs_frame): New functions.
8875 (loclist_describe_location, loclist_tracepoint_var_ref): New
8876 functions.
8877 (dwarf2_loclist_funcs): New struct location_funcs.
8878 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8879 (struct dwarf2_locexpr_baton): Add comments.
8880 (dwarf2_loclist_funcs): New extern.
8881 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8882 base_address and base_known.
8883 (dwarf_loc_buffer): New variable.
8884 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8885 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8886 (dwarf2_has_info): Initialize dwarf_loc_offset.
8887 (dwarf2_build_psymtabs): Read in .debug_loc.
8888 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8889 DWARF_LOC_SIZE.
8890 (psymtab_to_symtab_1): Likewise. Move base address calculation
8891 here, from...
8892 (dwarf2_get_pc_bounds): ... here. Use the base address from
8893 cu_header.
8894 (dwarf2_symbol_mark_computed): Handle location lists.
8895
6aca59a3
DJ
88962003-04-13 Daniel Jacobowitz <drow@mvista.com>
8897
8898 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8899 if the linkage name demangled successfully.
8900
aca1fcd0
MK
89012003-04-13 Mark Kettenis <kettenis@gnu.org>
8902
97095916
MK
8903 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8904 disassmbly_flavour): Removed.
8905
aca1fcd0
MK
8906 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8907
562a961f
MK
89082003-04-13 Mark Kettenis <kettenis@gnu.org>
8909
8910 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8911
bd013d54
AC
89122003-04-12 Andrew Cagney <cagney@redhat.com>
8913
8914 * frame.h (struct frame_info): Move definition from here ...
8915 * frame.c (struct frame_info): ... to here.
8916
167ef8b1
AC
89172003-04-12 Andrew Cagney <cagney@redhat.com>
8918
8919 * gdbthread.h (save_infrun_state): Delete parameter
8920 "prev_func_start".
8921 (struct thread_info): Delete field "prev_func_start".
8922 (load_infrun_state): Ditto.
8923 * thread.c (load_infrun_state, save_infrun_state): Update.
8924 * infrun.c (prev_func_start): Delete variable.
8925 (context_switch, init_wait_for_inferior): Update.
8926 (stop_stepping, keep_going): Update.
8927
da3331ec
AC
89282003-04-12 Andrew Cagney <cagney@redhat.com>
8929
8930 * gdbarch.sh: Add missing opaque declarations.
8931 * gdbarch.h: Regnerate.
8932 * symtab.h: Add missing opaque declarations.
8933 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8934 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8935 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8936 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8937 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8938 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8939 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8940 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8941 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8942 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8943 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8944 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8945 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8946
18adea3f
AC
89472003-04-11 Andrew Cagney <cagney@redhat.com>
8948
8949 * frame.c (get_frame_id): Return this frame's "id".
8950 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8951 function start.
8952 (legacy_saved_regs_this_id): Replace function body with
8953 internal-error.
8954 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8955 FRAME_OBSTACK_ZALLOC.
8956 (create_new_frame): Mark the frame ID as valid.
8957
2252e863
AO
89582003-04-11 Alexandre Oliva <aoliva@redhat.com>
8959
8960 * Makefile.in (libbfd_h): Added missing setting.
8961 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8962 according to the selected ABI.
8963
a8245ab8
JJ
89642003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8965
8966 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8967
6913c89a
AC
89682003-04-11 Andrew Cagney <cagney@redhat.com>
8969
8970 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8971 SAVED_PC_AFTER_CALL.
8972 * gdbarch.h, gdbarch.c: Regenerate.
8973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8974 * x86-64-tdep.c (x86_64_init_abi): Update.
8975 * vax-tdep.c (vax_gdbarch_init): Update.
8976 * v850-tdep.c (v850_gdbarch_init): Update.
8977 * sparc-tdep.c (sparc_gdbarch_init): Update.
8978 * sh-tdep.c (sh_gdbarch_init): Update.
8979 * s390-tdep.c (s390_gdbarch_init): Update.
8980 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8981 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8982 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8983 * mips-tdep.c (mips_gdbarch_init): Update.
8984 * mcore-tdep.c (mcore_gdbarch_init): Update.
8985 * m68k-tdep.c (m68k_gdbarch_init): Update.
8986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8987 * ia64-tdep.c (ia64_gdbarch_init): Update.
8988 (ia64_saved_pc_after_call): Update declaration.
8989 * i386ly-tdep.c (i386lynx_init_abi): Update.
8990 * i386-tdep.c (i386_gdbarch_init): Update.
8991 * hppa-tdep.c (hppa_gdbarch_init): Update.
8992 * h8300-tdep.c (h8300_gdbarch_init): Update.
8993 * frv-tdep.c (frv_gdbarch_init): Update.
8994 * cris-tdep.c (cris_gdbarch_init): Update.
8995 * avr-tdep.c (avr_gdbarch_init): Update.
8996 * arm-tdep.c (arm_gdbarch_init): Update.
8997 * alpha-tdep.c (alpha_gdbarch_init): Update.
8998 * ns32knbsd-nat.c (frame_num_args): Update.
8999 * ns32k-tdep.c (umax_frame_num_args): Update.
9000 * mips-tdep.c (mips_init_frame_pc_first): Update.
9001 * infrun.c (step_over_function): Update.
9002 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9003 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9004 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9005 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9006 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9007 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9008 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9009 * arch-utils.c (init_frame_pc_default): Update.
9010 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9011 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9012 declaration.
8ffd9b1b 9013
38edeab8
AC
90142003-04-11 Andrew Cagney <cagney@redhat.com>
9015
9016 * i387-tdep.c: Update copyright.
9017 (i387_to_double): Delete function.
9018 (double_to_i387): Delete function.
9019
81f8a206
AC
90202003-04-10 Andrew Cagney <cagney@redhat.com>
9021
9022 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9023 frame's function's address. Simplify.
9024 (d10v_frame_unwind_cache): Check that the frame's function is
9025 non-zero.
9026
6e691f7a
JB
90272003-04-10 Jim Blandy <jimb@redhat.com>
9028
9029 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9030 call to set_gdbarch_deprecated_push_arguments.
9031
7f78e237
AC
90322003-04-10 Andrew Cagney <cagney@redhat.com>
9033
9034 * frame.c (fprint_frame_id): New function.
9035 (fprint_frame_type, fprint_frame): New function.
9036 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9037 (create_sentinel_frame, get_frame_id): Ditto.
9038 (frame_id_p, frame_id_eq): Ditto.
9039 (frame_id_inner, create_new_frame): Ditto.
9040 (legacy_get_prev_frame, get_prev_frame): Ditto.
9041 (deprecated_update_frame_pc_hack): Ditto.
9042 (frame_register_unwind): Ditto.
9043 (deprecated_update_frame_base_hack): Ditto.
9044
f870b49b
CV
90452003-04-10 Corinna Vinschen <vinschen@redhat.com>
9046
9047 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9048 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9049 frame_chain function.
9050 * Makefile.in: Add dependencies due to above change.
9051
7c86889b
CV
90522003-04-10 Corinna Vinschen <vinschen@redhat.com>
9053
9054 * blockframe.c (legacy_frame_chain_valid): Move call to
9055 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9056 inside_entry_file.
9057
d0a55772
AC
90582003-04-09 Andrew Cagney <cagney@redhat.com>
9059
9060 * frame.h (struct frame_id): Replace "pc" and "base" with
9061 "stack_addr" and "code_addr". Update comments.
9062 (frame_id_build): Update parameter names and comment.
9063 (struct frame_info): Replace "id_p" and "id" with "this_id".
9064 * dummy-frame.c (dummy_frame_this_id): Update.
9065 * breakpoint.c (print_one_breakpoint): Update.
9066 * frame.c (get_frame_id): Update.
9067 (get_frame_base, frame_id_build): Update.
9068 (create_sentinel_frame, legacy_get_prev_frame): Update.
9069 (deprecated_update_frame_base_hack): Update.
9070 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9071 (frame_id_inner): Ditto.
9072
ac16bf07
AC
90732003-04-09 Andrew Cagney <cagney@redhat.com>
9074
9075 * defs.h (gdb_print_host_address): Make "addr" parameter a
9076 pointer constant.
9077 * utils.c (gdb_print_host_address): Update.
9078
366cfc9e
KB
90792003-04-09 Kevin Buettner <kevinb@redhat.com>
9080
9081 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9082 register number for R0 is 0.
9083
cd983b5c
JB
90842003-04-09 J. Brobecker <brobecker@gnat.com>
9085
9086 * frame.h (struct gdbarch): Add opaque structure definition
9087 to avoid a compilation warning on LynxOS 4.0.
9088
d1340264
AC
90892003-04-09 Andrew Cagney <cagney@redhat.com>
9090
9091 * frame.h (struct frame_info): Delete field "pc". Replace
9092 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9093 structure.
9094 * frame.c (frame_pc_unwind): Update.
9095 (create_sentinel_frame): Do not set "pc".
9096 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9097 (get_frame_pc): Call frame_pc_unwind.
9098 (deprecated_update_frame_pc_hack): Update.
9099 (create_new_frame): Use "pc" not "->pc".
9100
90a6fffb
AC
91012003-04-09 Andrew Cagney <cagney@redhat.com>
9102
9103 * frame.c (get_frame_id): Eliminate code updating "frame".
9104 (legacy_get_prev_frame): Ditto.
9105 (get_frame_base): Return id.base directly.
9106 (deprecated_update_frame_base_hack): Update "id.base".
9107 * frame.h (struct frame_info): Delete field "frame".
9108
2fbce691
AC
91092003-04-09 Andrew Cagney <cagney@redhat.com>
9110
9111 * NEWS: Mention that the "Sequent family" is obsolete.
9112 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9113 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9114 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9115 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9116 * config/i386/tm-ptx4.h: Obsolete file.
9117 * config/i386/tm-ptx.h: Obsolete file.
9118 * symm-tdep.c: Obsolete file.
9119 * config/i386/symmetry.mt: Obsolete file.
9120 * config/i386/tm-symmetry.h: Obsolete file.
9121 * symm-nat.c: Obsolete file.
9122 * config/i386/nm-symmetry.h: Obsolete file.
9123 * config/i386/xm-symmetry.h: Obsolete file.
9124 * config/i386/symmetry.mh: Obsolete file.
9125 * config/i386/nm-ptx4.h: Obsolete file.
9126 * config/i386/ptx4.mh: Obsolete file.
9127 * config/i386/ptx.mt: Obsolete file.
9128 * config/i386/ptx.mh: Obsolete file.
9129 * config/i386/xm-ptx4.h: Obsolete file.
9130 * config/i386/xm-ptx.h: Obsolete file.
9131
78c43945
AC
91322003-04-09 Andrew Cagney <cagney@redhat.com>
9133
9134 Obsolete mips*-*-mach3*.
9135 * NEWS: Mention that mips*-*-mach3* is obsolete.
9136 * m3-nat.c: Obsolete file.
9137 * config/nm-m3.h: Obsolete file.
9138 * config/mips/tm-mipsm3.h: Obsolete file.
9139 * config/mips/mipsm3.mt: Obsolete file.
9140 * config/mips/mipsm3.mh: Obsolete file.
9141 * config/mips/xm-mipsm3.h: Obsolete file.
9142 * mipsm3-nat.c: Obsolete file.
9143 * configure.host: Obsolete mips-dec-mach3*.
9144 * configure.tgt: Obsolete mips*-*-mach3*.
9145
f1908289
AC
91462003-04-09 Andrew Cagney <cagney@redhat.com>
9147
9148 * doublest.h: Update copyright.
9149 (deprecated_store_floating, deprecated_extract_floating): Rename
9150 store_floating and extract_floating. Update comments.
9151 * doublest.c: Update copyright.
9152 (extract_floating_by_length): Replace extract_floating.
9153 (store_floating_by_length): Replace store_floating.
9154 (deprecated_extract_floating): New function.
9155 (deprecated_store_floating): New function.
9156 (extract_typed_floating): Call extract_floating_by_length.
9157 (store_typed_floating): Call store_floating_by_length.
9158 * x86-64-tdep.c (x86_64_store_return_value): Update.
9159 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9160 (sh64_extract_return_value): Update.
9161 (sh_sh4_register_convert_to_virtual): Update.
9162 (sh_sh64_register_convert_to_virtual): Update.
9163 (sh_sh4_register_convert_to_raw): Update.
9164 (sh_sh64_register_convert_to_raw): Update.
9165 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9166 (rs6000_register_convert_to_raw): Update.
9167 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9168 (ia64_register_convert_to_raw): Update.
9169 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9170 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9171 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9172 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9173 (alpha_register_convert_to_raw): Update.
9174
4443bd83
AC
91752003-04-08 Andrew Cagney <cagney@redhat.com>
9176
9177 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9178 * gdbarch.h, gdbarch.c: Re-generate.
9179 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9180 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9181 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9182 conditionally, use frame_pc_unwind as an alternative. Add
9183 comments.
9184 * arch-utils.c (init_frame_pc_default): Only call
9185 SAVED_PC_AFTER_CALL when available.
9186
c0236d92
EZ
91872003-04-08 Elena Zannoni <ezannoni@redhat.com>
9188
fbe586ae 9189 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9190 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9191 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9192 (start_remote): Ditto.
9193 (handle_inferior_event): Ditto.
9194 (save_inferior_status): Ditto.
9195 (restore_inferior_status): Ditto.
9196 * infcmd.c (attach_command): Ditto.
9197 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9198 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9199 * alpha-tdep.c (heuristic_proc_start): Ditto.
9200 * mips-tdep.c (heuristic_proc_start): Ditto.
9201 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9202 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9203 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9204 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9205 * remote-vx.c (vx_create_inferior): Ditto.
9206
92072003-04-08 Elena Zannoni <ezannoni@redhat.com>
9208
9209 * infrun.c (stop_soon_quietly): Make it an enum, to better
9210 override the default behavior of handle_inferior_event.
9211 (clear_proceed_status): Update uses of stop_soon_quietly to
9212 reflect that it is now an enum.
9213 (start_remote): Ditto.
9214 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9215 is set to handle the new GNU/Linux kernel behavior for
9216 attach/sigstop. Update uses of stop_soon_quietly.
9217 * inferior.h (enum stop_kind): New enum.
9218 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9219 Reset normal handle_inferior_event behavior, afterwards.
9220 * fork-child.c (startup_inferior): Update.
9221 * alpha-tdep.c (heuristic_proc_start): Update.
9222 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9223 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9224 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9225 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9226 * remote-vx.c (vx_create_inferior): Update.
9227 * mips-tdep.c (heuristic_proc_start): Update.
9228
1211bce3
EZ
92292003-04-07 Elena Zannoni <ezannoni@redhat.com>
9230
9231 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9232 be freed more than once, causing wild memory corruptions.
1211bce3 9233 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9234 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9235 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9236 with the "core" target.
1211bce3 9237
f0ef6b29
KB
92382003-04-07 Kevin Buettner <kevinb@redhat.com>
9239
9240 * mips-tdep.c (mips_print_fp_register): New function, created from
9241 do_fp_register_row(). Registers are now (also) printed as hex.
9242 Only one register is printed per row.
9243 (mips_print_register, do_fp_register_row): Print floating point
9244 registers with mips_print_fp_register().
9245
8cf71652
AC
92462003-04-06 Andrew Cagney <cagney@redhat.com>
9247
5e488a7b
AC
9248 * valprint.h (inspect_it): Add extern declaration.
9249 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9250 (selectors_info, classes_info): Ditto.
9251 (find_objc_msgcall): Fix indentation.
9252 (objc_printstr): Delete extern declarations.
9253
8cf71652
AC
9254 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9255
e6ba3bc9
AC
92562003-04-06 Andrew Cagney <cagney@redhat.com>
9257
9258 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9259 Update comment.
9260 * frame.c (legacy_saved_regs_this_id): Update.
9261 (legacy_get_prev_frame): Update.
9262 * xstormy16-tdep.c: Update comment.
9263 * sparc-tdep.c (sparc_frame_chain): Update comment.
9264 * blockframe.c (legacy_frame_chain_valid): Update.
9265
55e1d7e7
AC
92662003-04-06 Andrew Cagney <cagney@redhat.com>
9267
996179ee
AC
9268 * valprint.c (val_print_type_code_int): Delete #ifdef
9269 PRINT_TYPELESS_INTEGER code.
9270
55e1d7e7
AC
9271 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9272 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9273 multi-arch definition.
9274 * gdbarch.h: Re-generate.
9275
43bd9a9e
AC
92762003-04-05 Andrew Cagney <cagney@redhat.com>
9277
9278 Eliminate FRAME_FIND_SAVED_REGS.
9279 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9280 Change FSR parameter to a pointer.
9281 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9282 Assume FSR parameter is a pointer.
9283 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9284 Make fsr a pointer.
9285 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9286 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9287 saved_regs a pointer.
9288 (hppa_frame_saved_pc): Ditto.
9289 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9290 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9291 pointer.
9292 (restore_pc_queue): Make fsr a pointer.
9293 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9294 (hppa_frame_chain): Make saved_regs a pointer, call
9295 hppa_frame_init_saved_regs.
9296 * sparc-tdep.c: Include "gdb_assert.h".
9297 (sparc_frame_find_saved_regs): Replace internal_error with
9298 gdb_assert.
9299 * remote-vxsparc.c (vx_read_register): Delete reference to
9300 FRAME_FIND_SAVED_REGS.
9301 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9302 * gdbarch.h: Regenerate.
9303 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9304 (deprecated_get_frame_saved_regs): Delete declaration.
9305 (struct frame_saved_regs): Delete definition.
9306 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9307 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9308 (hppa_frame_find_saved_regs): Delete declaration.
9309 (FRAME_FIND_SAVED_REGS): Delete macro.
9310 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9311 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9312 FRAME_FIND_SAVED_REGS in comment.
9313
be41e9f4
AC
93142003-04-05 Andrew Cagney <cagney@redhat.com>
9315
9316 * frame.c (frame_func_unwind, get_frame_func): New functions.
9317 * frame.h (get_frame_func, frame_func_unwind): Declare.
9318 (struct frame_info): Add field "prev_func" for caching the
9319 previous frame's function address.
9320 * arm-tdep.c (arm_frameless_function_invocation): Combine
9321 get_pc_function_start and get_frame_pc into get_frame_func.
9322 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9323 (sh64_nofp_frame_init_saved_regs): Ditto.
9324 * s390-tdep.c (s390_function_start): Ditto.
9325 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9326 (rs6000_frameless_function_invocation): Ditto.
9327 (rs6000_frame_saved_pc): Ditto.
9328 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9329 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9330 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9331 (i386_frame_init_saved_regs): Ditto.
9332 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9333 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9334 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9335 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9336 * blockframe.c (frameless_look_for_prologue): Ditto.
9337
a01dd7cc
AC
93382003-04-05 Andrew Cagney <cagney@redhat.com>
9339
9340 * frame.c (legacy_get_prev_frame): Link prev to next at the
9341 function start. Update comments.
9342
5e5592e6
AC
93432003-04-05 Andrew Cagney <cagney@redhat.com>
9344
9345 * frame.c (get_frame_id): Update comment.
9346 (legacy_get_prev_frame): Update comment.
9347 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9348 * gdbarch.h: Regenerate.
9349 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9350 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9351
6fba5002
AC
93522003-04-05 Andrew Cagney <cagney@redhat.com>
9353
9354 * stack.c (print_frame_info): Use get_frame_pc.
9355
7df05f2b
AC
93562003-04-04 Andrew Cagney <cagney@redhat.com>
9357
9358 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9359 the frame's type from the unwinder.
9360 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9361 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9362 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9363 (get_frame_base_address): Use get_frame_type.
9364 (get_frame_locals_address, get_frame_args_address): Ditto.
9365 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9366 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9367 (struct frame_info): Add comment explaining why the frame contains
9368 a "type" field.
9369 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9370 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9371 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9372 NORMAL_FRAME.
9373 * frame-unwind.h: Include "frame.h".
9374 (struct frame_unwind): Add "type" field.
9375 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9376
11889732
AC
93772003-04-04 Andrew Cagney <cagney@redhat.com>
9378
9379 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9380 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9381 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9382 get_frame_base.
9383 (d10v_unwind_dummy_id): Use frame_id_build.
9384 * frame.c (find_frame_sal): Use get_frame_pc.
9385 (create_new_frame): Use deprecated_update_frame_pc_hack and
9386 deprecated_update_frame_base_hack.
9387 (create_sentinel_frame): Add comment about ->pc going away.
9388 (get_prev_frame): Add comment about ->pc going away.
9389 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9390 frame_id_build, deprecated_update_frame_pc_hack and
9391 deprecated_update_frame_base_hack.
9392 (select_frame): Use get_frame_pc.
9393 (legacy_saved_regs_this_id): Use frame_id_build.
9394
50c46a0d
EZ
93952003-04-04 Elena Zannoni <ezannoni@redhat.com>
9396
fbe586ae
RH
9397 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9398 signed integer case.
9399 (classify_argument): Handle enumerations and references.
50c46a0d 9400
50bbdbd9
AC
94012003-04-04 Andrew Cagney <cagney@redhat.com>
9402
9403 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9404 ID to NULL.
9405
36018d2e
AF
94062003-04-01 Adam Fedor <fedor@gnu.org>
9407
9408 * gdb/objc-lang.c (selectors_info): Replace calls to
9409 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9410 SYMBOL_NATURAL_NAME.
9411 (classes_info, find_methods): Likewise.
9412
35cec841
KB
94132003-04-03 Kevin Buettner <kevinb@redhat.com>
9414
9415 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9416 ``mach'' to the value determined by bfd_default_set_arch_mach().
9417
43136899
BR
94182003-04-02 Bob Rossi <bob_rossi@cox.net>
9419
9420 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9421 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9422 (mi-cmd-file.o): Update dependencies.
9423
040b99fd
KB
94242003-04-01 Kevin Buettner <kevinb@redhat.com>
9425
9426 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9427 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9428
9a3d7dfd
AF
94292003-04-01 Adam Fedor <fedor@gnu.org>
9430
9431 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9432 * language.h (struct language_defn): Add la_demangle.
9433 (language_demangle): Declare.
9434 * language.c (language_demangle): New function.
9435 (unk_lang_demangle): Likewise.
9436 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9437 Add ukn_lang_demangle.
9a3d7dfd 9438 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9439 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9440 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9441 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9442 * jv-lang.c (java_demangle): New function
9443 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9444 * objc-lang.c (objc_demangle): Add options argument
9445 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9446 * maint.c (maintenance_demangle): Replace switch with
9447 call to language_demangle.
9448 * utils.c (fprintf_symbol_filtered): Likewise.
9449
5e074003
AC
94502003-04-01 Andrew Cagney <cagney@redhat.com>
9451
9452 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9453 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9454 PRINT_TYPELESS_INTEGER.
9455 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9456 PUSH_RETURN_ADDRESS.
9457
270cb5d6
AC
94582003-04-01 Andrew Cagney <cagney@redhat.com>
9459
9460 * Makefile.in (d10v-tdep.o): Update dependencies.
9461 * d10v-tdep.c: Include "frame-base.h".
9462 (d10v_frame_unwind): Make constant.
9463 (d10v_frame_base_address): New function.
9464 (d10v_frame_base): New variable.
9465 (d10v_gdbarch_init): Set frame_base default.
9466 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9467 comment for base.
9468 (d10v_frame_unwind_cache): Set and use "prev_sp".
9469 (d10v_frame_this_id): Use the previous frame's inner most stack
9470 address and this frame's func address for the frame ID. Use
9471 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9472
6bfb3e36
AC
94732003-04-01 Andrew Cagney <cagney@redhat.com>
9474
9475 * frame.h (get_frame_locals_address, get_frame_args_address):
9476 Refer to the base address, instead of the address of the first
9477 local or parameter.
8ffd9b1b 9478
da62e633
AC
94792003-04-01 Andrew Cagney <cagney@redhat.com>
9480
9481 Add frame debug info addresses:
9482 * frame-base.c: New file.
9483 * frame-base.h: New file.
9484 * frame.h (struct frame_base): Add opaque declaration.
9485 (get_frame_base): Update comment.
9486 (get_frame_base_address): Declare.
9487 (get_frame_locals_address): Declare.
9488 (get_frame_args_address): Declare.
9489 (struct frame_info): Add "base" and "base_cache". Update
9490 comments on the unwinder.
9491 * frame.c: Include "frame-base.h".
9492 (get_frame_locals_address): New function.
9493 (get_frame_base_address): New function.
9494 (get_frame_args_address): New function.
9495 * findvar.c (read_var_value): Use get_frame_locals_address and
9496 get_frame_args_address.
9497 * stack.c (frame_info): Use get_frame_locals_address and
9498 get_frame_args_address.
9499 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9500 moved to "frame-base.c".
9501 * printcmd.c (print_frame_nameless_args): Ditto.
9502 * symtab.h (address_class): Update comments.
9503 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9504 get_frame_base_address.
9505 * dwarf2expr.c (execute_stack_op): Ditto.
9506 * Makefile.in (frame_base_h): Define.
9507 (frame.o): Update dependencies.
9508 (frame-base.o): Add dependencies.
9509 (SFILES): Add frame-base.c.
9510 (COMMON_OBS): Add frame-base.o.
9511
3d30e9c2
AC
95122003-04-01 Andrew Cagney <cagney@redhat.com>
9513
9514 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9515 CALL_DUMMY_LENGTH): Ditto.
9516 * gdbarch.c: Re-generate.
9517 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9518 (CALL_DUMMY_LENGTH): Delete macro.
9519 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9520 * arm-tdep.c (arm_gdbarch_init): Ditto.
9521 * avr-tdep.c (avr_gdbarch_init): Ditto.
9522 * cris-tdep.c (cris_gdbarch_init): Ditto.
9523 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9524 * frv-tdep.c (frv_gdbarch_init): Ditto.
9525 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9526 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9527 * i386-tdep.c (i386_gdbarch_init): Ditto.
9528 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9530 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9531 * mips-tdep.c (mips_gdbarch_init): Ditto.
9532 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9533 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9534 * s390-tdep.c (s390_gdbarch_init): Ditto.
9535 * sh-tdep.c (sh_gdbarch_init): Ditto.
9536 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9537 * v850-tdep.c (v850_gdbarch_init): Ditto.
9538 * vax-tdep.c (vax_gdbarch_init): Ditto.
9539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9540
ce0c7262
CV
95412003-04-01 Corinna Vinschen <vinschen@redhat.com>
9542
9543 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9544
73dd234f
AC
95452003-04-01 Andrew Cagney <cagney@redhat.com>
9546
9547 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9548 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9549 * gdbarch.h, gdbarch.c: Re-generate.
9550 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9551 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9552 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9553 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9554 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9555 * infcmd.c (run_stack_dummy): Simplify assuming
9556 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9557 * infrun.c (handle_inferior_event): Ditto.
9558 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9559 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9560 * arm-tdep.c (arm_gdbarch_init): Ditto.
9561 * avr-tdep.c (avr_gdbarch_init): Ditto.
9562 * cris-tdep.c (cris_gdbarch_init): Ditto.
9563 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9564 * frv-tdep.c (frv_gdbarch_init): Ditto.
9565 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9566 * i386-tdep.c (i386_gdbarch_init): Ditto.
9567 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9569 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9570 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9571 * mips-tdep.c (mips_gdbarch_init): Ditto.
9572 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9573 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9574 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9575 * s390-tdep.c (s390_gdbarch_init): Ditto.
9576 * sh-tdep.c (sh_gdbarch_init): Ditto.
9577 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9578 * v850-tdep.c (v850_gdbarch_init): Ditto.
9579 * vax-tdep.c (vax_gdbarch_init): Ditto.
9580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9581
97606a13
DJ
95822003-04-01 Daniel Jacobowitz <drow@mvista.com>
9583
9584 * symfile.c (symfile_relocate_debug_section): Update call to
9585 bfd_simple_get_relocated_section_contents.
9586
e8ab51f7
AC
95872003-03-31 Andrew Cagney <cagney@redhat.com>
9588
9589 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9590 * gdbarch.h, gdbarch.c: Regenerate.
9591 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9592 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9593 available.
9594 * frame.h (generic_fix_call_dummy): Delete declaration.
9595 * dummy-frame.h: Update comment.
9596 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9598 fix_call_dummy.
9599 * sh-tdep.c (sh_gdbarch_init): Ditto.
9600 * s390-tdep.c (s390_gdbarch_init): Ditto.
9601 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9602 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9604 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9605 * i386-tdep.c (i386_gdbarch_init): Ditto.
9606 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9607 * frv-tdep.c (frv_gdbarch_init): Ditto.
9608 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9609 * cris-tdep.c (cris_gdbarch_init): Ditto.
9610 * avr-tdep.c (avr_gdbarch_init): Ditto.
9611 * arm-tdep.c (arm_gdbarch_init): Ditto.
9612
018d1b48
JB
96132003-03-31 J. Brobecker <brobecker@gnat.com>
9614
9615 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9616 (INIT_FRAME_AP): Likewise.
9617 (EXTRA_FRAME_INFO): Likewise.
9618
e9a2674e
AC
96192003-03-31 Andrew Cagney <cagney@redhat.com>
9620
9621 * gdbarch.sh: Include "symfile.h".
9622 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9623 * gdbarch.h, gdbarch.c: Re-generate.
9624 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9626 call_dummy_address, the default is at entry_point_address.
9627 * v850-tdep.c (v850_gdbarch_init): Ditto.
9628 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9629 * sh-tdep.c (sh_gdbarch_init): Ditto.
9630 * s390-tdep.c (s390_gdbarch_init): Ditto.
9631 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9632 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9633 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9634 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9635 * i386-tdep.c (i386_gdbarch_init): Ditto.
9636 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9637 * frv-tdep.c (frv_gdbarch_init): Ditto.
9638 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9639 * cris-tdep.c (cris_gdbarch_init): Ditto.
9640 * arm-tdep.c (arm_gdbarch_init): Ditto.
9641
e8a8712a
AC
96422003-03-31 Andrew Cagney <cagney@redhat.com>
9643
9644 * gdbarch.sh (CALL_DUMMY_P): Delete.
9645 * gdbarch.h, gdbarch.c: Re-generate.
9646 * inferior.h (CALL_DUMMY_P): Delete macro.
9647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9648 * vax-tdep.c (vax_gdbarch_init): Update.
9649 * v850-tdep.c (v850_gdbarch_init): Update.
9650 * sparc-tdep.c (sparc_gdbarch_init): Update.
9651 * sh-tdep.c (sh_gdbarch_init): Update.
9652 * s390-tdep.c (s390_gdbarch_init): Update.
9653 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9654 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9655 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9656 * mips-tdep.c (mips_gdbarch_init): Update.
9657 * mcore-tdep.c (mcore_gdbarch_init): Update.
9658 * m68k-tdep.c (m68k_gdbarch_init): Update.
9659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9660 * ia64-tdep.c (ia64_gdbarch_init): Update.
9661 * i386-tdep.c (i386_gdbarch_init): Update.
9662 * h8300-tdep.c (h8300_gdbarch_init): Update.
9663 * frv-tdep.c (frv_gdbarch_init): Update.
9664 * d10v-tdep.c (d10v_gdbarch_init): Update.
9665 * cris-tdep.c (cris_gdbarch_init): Update.
9666 * breakpoint.c (deprecated_frame_in_dummy): Update.
9667 * avr-tdep.c (avr_gdbarch_init): Update.
9668 * alpha-tdep.c (alpha_gdbarch_init): Update.
9669 * arm-tdep.c (arm_gdbarch_init): Update.
9670 * dummy-frame.c (dummy_frame_this_id): Update comments.
9671 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9672 * frame.c (legacy_get_prev_frame): Ditto.
9673 * valops.c (call_function_by_hand): Delete function.
9674 (hand_function_call): Rename to call_function_by_hand
9675
ed234cf8
AC
96762003-03-30 Andrew Cagney <cagney@redhat.com>
9677
9678 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9679 * value.h (struct value): Update comment.
ed234cf8 9680
06c77151
AC
96812003-03-30 Andrew Cagney <cagney@redhat.com>
9682
6c2b5168
AC
9683 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9684 D10V_FP_REGNUM.
9685 (d10v_gdbarch_init): Do not set fp_regnum.
9686
06c77151
AC
9687 * frame.c (get_frame_base): Force ID initialization.
9688 (get_prev_frame): Move computation of the frame ID from here ...
9689 (get_frame_id): ... to here.
9690 (legacy_get_prev_frame): Mark the frame ID as valid.
9691 * frame.h (struct frame_info): Add field "id_p".
9692
97a1a11c
MK
96932003-03-30 Mark Kettenis <kettenis@gnu.org>
9694
9695 * i386-tdep.c (i386_store_struct_return): Removed.
9696 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9697
6c0e89ed
AC
96982003-03-30 Andrew Cagney <cagney@redhat.com>
9699
9700 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9701 * gdbarch.h, gdbarch.c: Regenerate.
9702 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9704 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9705 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9706 * i386-tdep.c (i386_gdbarch_init): Ditto.
9707 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9708 * cris-tdep.c (cris_gdbarch_init): Ditto.
9709 * vax-tdep.c (vax_gdbarch_init): Ditto.
9710 * s390-tdep.c (s390_gdbarch_init): Ditto.
9711 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9712 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9713 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9714 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9715 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9716 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9717 * sparc-tdep.c (sparc_gdbarch_init): Update.
9718 * sh-tdep.c (sh_gdbarch_init): Update.
9719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9720 * mips-tdep.c (mips_gdbarch_init): Update.
9721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9722 * ia64-tdep.c (ia64_gdbarch_init): Update.
9723 * frv-tdep.c (frv_gdbarch_init): Update.
9724 * avr-tdep.c (avr_gdbarch_init): Update.
9725 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9726 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9727 instead of when push_dummy_call is not available.
8ffd9b1b 9728
f7dd6af2
AC
97292003-03-30 Andrew Cagney <cagney@redhat.com>
9730
9731 * infttrace.c: Include "gdbthread.h".
9732 (parent_attach_all): Fix function signature.
9733 (call_ptrace): Update call.
9734 * Makefile.in (infttrace.o): Update dependencies.
9735
28f617b3
AC
97362003-03-30 Andrew Cagney <cagney@redhat.com>
9737
9738 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9739 PUSH_RETURN_ADDRESS.
9740 * gdbarch.h, gdbarch.c: Regenerate.
9741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9742 * x86-64-tdep.c (x86_64_init_abi): Update.
9743 * v850-tdep.c (v850_gdbarch_init): Update.
9744 * sparc-tdep.c (sparc_gdbarch_init): Update.
9745 * sh-tdep.c (sh_gdbarch_init): Update.
9746 * s390-tdep.c (s390_gdbarch_init): Update.
9747 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9748 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9749 * mips-tdep.c (mips_gdbarch_init): Update.
9750 * mcore-tdep.c (mcore_gdbarch_init): Update.
9751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9752 * ia64-tdep.c (ia64_gdbarch_init): Update.
9753 * i386-tdep.c (i386_gdbarch_init): Update.
9754 * h8300-tdep.c (h8300_gdbarch_init): Update.
9755 * frv-tdep.c (frv_gdbarch_init): Update.
9756 * cris-tdep.c (cris_gdbarch_init): Update.
9757 * avr-tdep.c (avr_gdbarch_init): Update.
9758 * arm-tdep.c (arm_gdbarch_init): Update.
9759 * valops.c (hand_function_call): Update.
9760
4d628cd7
AC
97612003-03-29 Andrew Cagney <cagney@redhat.com>
9762
9763 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9764 sizeof_call_dummy_words.
9765 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9766 define.
9767 * gdbarch.h: Regenerate.
8ffd9b1b 9768
65e82032
AC
97692003-03-29 Andrew Cagney <cagney@redhat.com>
9770
9771 * infttrace.h: New file.
9772 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9773 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9774 (hpread_read_doc_function_type): Detect an initialized type1.
9775 (hpread_quick_traverse): Initialize mod_name_string.
9776 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9777 (som_solib_get_solib_by_pc): Declare.
9778 (so_lib_thread_start_addr): Declare.
9779 (no_shared_libraries): Declare.
9780 * somread.c (init_import_symbols): Make static. Add forward
9781 declaration.
9782 * config/pa/nm-hppah.h: Include "infttrace.h" for
9783 parent_attach_all.
9784 (hppa_insert_hw_watchpoint): Declare.
9785 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9786 * hppah-nat.c: Include "gdb_string.h".
9787 (parent_attach_all): Delete extern declaration, moved to
9788 "infttrace.h".
9789 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9790 int.
9791 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9792 * Makefile.in (infttrace_h): Define.
9793 (hpread.o): Update dependencies.
9794 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9795 * hppa-hpux-tdep.c: Include "gdb_string.h".
9796 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9797 * infrun.c (handle_inferior_event): Always initialize
9798 stepped_after_stopped_by_watchpoint. Add default and remove
9799 fallthrough in switch statement.
9800 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9801 parameter to int.
9802 (hppa_remove_hw_watchpoint): Ditto.
9803
2c3bbe77
AC
98042003-03-29 Andrew Cagney <cagney@redhat.com>
9805
9806 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9807 offset.
9808
2dd604e7
RE
98092003-03-29 Richard Earnshaw <rearnsha@arm.com>
9810
9811 * arm-tdep.c (arm_push_arguments): Delete.
9812 (struct stack_item): New type.
9813 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9814 (arm_store_struct_return): Delte.
9815 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9816 arm_push_arguments or arm_store_struct_return.
9817
e8933a55
AC
98182003-03-28 Andrew Cagney <cagney@redhat.com>
9819
9820 * Makefile.in (d10v-tdep.o): Update dependencies.
9821 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9822 * d10v-tdep.c: Include "remote.h".
9823 (target_resume_hook): Delete extern declaration.
9824 (target_wait_loop_hook): Ditto.
9825 (tdisassemble_command): Eliminate assignment in "if" conditional.
9826 (d10v_ts2_register_sim_regno): Eliminate call to
9827 legacy_register_sim_regno.
9828 (d10v_ts3_register_sim_regno): Ditto.
9829
6949171e
JJ
98302003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9831
9832 * thread.c: Reindented.
9833 * lin-lwp.c: Ditto.
9834 * linux-proc.c: Ditto.
9835
98c7071f
BR
98362003-03-28 Bob Rossi <bob_rossi@cox.net>
9837
fbe586ae 9838 * MAINTAINERS (write after approval): Add myself.
98c7071f 9839
5edc9ca6
TR
98402003-03-27 Theodore A. Roth <troth@openavr.org>
9841
9842 * objc-exp.y: Add missing semi-colons.
9843
378bfd1b
AC
98442003-03-27 Andrew Cagney <cagney@redhat.com>
9845
9846 * regcache.c (write_sp): Delete function and references.
9847 * inferior.h (write_sp): Delete declaration.
9848 * valops.c (hand_function_call): Replace write_sp with
9849 TARGET_WRITE_SP.
9850 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9851 (sparc_pop_frame): Ditto.
8ffd9b1b 9852
56056df7
AC
98532003-03-27 Andrew Cagney <cagney@redhat.com>
9854
9855 * NEWS: Mention removal of support for hppa*-*-bsd* and
9856 hppa*-*-osf* natives, and hppa*-*-pro* target.
9857 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9858 * config/pa/xm-pa.h: Obsolete file.
9859 * config/pa/xm-hppab.h: Obsolete file.
9860 * config/pa/nm-hppab.h: Obsolete file.
9861 * config/pa/tm-hppab.h: Obsolete file.
9862 * config/pa/tm-hppao.h: Obsolete file.
9863 * config/pa/nm-hppao.h: Obsolete file.
9864 * config/pa/tm-pro.h: Obsolete file.
9865 * config/pa/hppaosf.mt: Obsolete file.
9866 * config/pa/hppaosf.mh: Obsolete file.
9867 * config/pa/hppapro.mt: Obsolete file.
9868 * config/pa/hppabsd.mt: Obsolete file.
9869 * config/pa/hppabsd.mh: Obsolete file.
9870 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9871 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9872 hppa*-*-osf*.
9873
5873a88d
AC
98742003-03-27 Andrew Cagney <cagney@redhat.com>
9875
9876 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9877 push_arguments. Don't set push_return_address or write_sp.
9878 (d10v_push_dummy_call): Replace d10v_push_arguments.
9879 (d10v_push_return_address, d10v_write_sp): Delete function,
9880 handled by push_dummy_call.
9881
b81774d8
AC
98822003-03-26 Andrew Cagney <cagney@redhat.com>
9883
9884 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9885 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9886 regcache and dummy_addr parameters.
9887 * gdbarch.h, gdbarch.c: Re-generate.
9888 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9889 available; assume it will handle stack alignment and return
9890 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9891 legacy_push_arguments.
9892 (legacy_push_arguments): Rename default_push_arguments.
9893 * value.h (legacy_push_arguments): Rename default_push_arguments.
9894 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9895 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9896 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9897 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9898 * config/i386/tm-symmetry.h: Update.
9899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9900 * x86-64-tdep.c (x86_64_init_abi): Update.
9901 * v850-tdep.c (v850_gdbarch_init): Update.
9902 * sparc-tdep.c (sparc_gdbarch_init): Update.
9903 * sh-tdep.c (sh_gdbarch_init): Update.
9904 * s390-tdep.c (s390_gdbarch_init): Update.
9905 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9906 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9907 * mips-tdep.c (mips_gdbarch_init): Update.
9908 * mcore-tdep.c (mcore_gdbarch_init): Update.
9909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9910 * ia64-tdep.c (ia64_gdbarch_init): Update.
9911 * i386-tdep.c (i386_gdbarch_init): Update.
9912 * hppa-tdep.c (hppa_gdbarch_init): Update.
9913 * h8300-tdep.c (h8300_gdbarch_init): Update.
9914 * frv-tdep.c (frv_gdbarch_init): Update.
9915 * d10v-tdep.c (d10v_gdbarch_init): Update.
9916 * cris-tdep.c (cris_gdbarch_init): Update.
9917 * avr-tdep.c (avr_gdbarch_init): Update.
9918 * arm-tdep.c (arm_gdbarch_init): Update.
9919 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9920 * alpha-tdep.c (alpha_gdbarch_init): Update.
9921
f541410f
DJ
99222003-03-26 Daniel Jacobowitz <drow@mvista.com>
9923
9924 * signals/signals.c (do_target_signal_to_host): Correct realtime
9925 signal range test.
9926
69f567ae
DJ
99272003-03-26 Daniel Jacobowitz <drow@mvista.com>
9928
9929 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9930 (struct sal_chain, map_catch_names): Remove.
9931 (catch_exception_command_1): Don't call
9932 handle_gnu_4_16_catch_command.
9933
d5d14a5a
DJ
99342003-03-26 Daniel Jacobowitz <drow@mvista.com>
9935
9936 From Mark Dettinger <dettinge@de.ibm.com>:
9937 * dwarf2cfi.c (read_2u): Increment pointer by two.
9938
bdd73e22
DJ
99392003-03-26 Daniel Jacobowitz <drow@mvista.com>
9940
9941 * signals/signals.c: Fix typos in last change.
9942
960cb555
DJ
99432003-03-26 Daniel Jacobowitz <drow@mvista.com>
9944
9945 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9946 not already defined. Use __SIGRTMIN if available.
9947 (target_signal_from_host): Remove SIGRTMIN block.
9948 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9949 the signal is within the realtime range.
9950
f636b87d
AF
99512003-03-25 Adam Fedor <fedor@gnu.org>
9952
9953 * Makefile.in (infrun.o): Add $(language_h)
9954 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9955 for language specific trampolines.
9956 * language.h (struct language_defn): Add skip_trampoline.
9957 (skip_language_trampoline): Declare.
9958 * language.c (unk_lang_trampoline, skip_language_trampoline):
9959 New functions.
9960 (unknown_language_defn, auto_language_defn, local_language_defn):
9961 Add ukn_lang_trampoline.
9962 * ada-lang.c (ada_language_defn): Add NULL for language
9963 specific skip_trampoline.
9964 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9965 scm-lang.c: Likewise.
9966 * objc-lang.c (objc_skip_trampoline): New function.
9967 (objc_language_defn): Add objc_skip_trampoline.
9968
28f617b3 99692003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9970
9971 * frame.c (get_prev_frame): Delay validating a frame's ID -
9972 non-NULL, didn't go backwards - until an attempt to unwind it to
9973 the previous frame.
9974
f933a9c5
AC
99752003-03-25 Andrew Cagney <cagney@redhat.com>
9976
9977 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9978 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9979 * gdbarch.h, gdbarch.c: Re-generate.
9980 * config/sparc/tm-sparc.h
9981 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9982 * sparc-tdep.c (sparc_gdbarch_init): Set
9983 deprecated_extra_stack_alignment_needed.
9984 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9985 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9986 extra_stack_alignment_needed.
9987 * v850-tdep.c (v850_gdbarch_init): Ditto.
9988 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9989 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9990 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9991 * cris-tdep.c (cris_gdbarch_init): Ditto.
9992 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9993 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9994
4183d812
AC
99952003-03-25 Andrew Cagney <cagney@redhat.com>
9996
9997 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9998 STORE_STRUCT_RETURN.
9999 * gdbarch.h, gdbarch.c: Regenerate.
10000 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10001 (d10v_push_arguments): Set the struct return register.
10002 (d10v_gdbarch_init): Update.
10003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10004 * x86-64-tdep.c (x86_64_init_abi): Update.
10005 * vax-tdep.c (vax_gdbarch_init): Update.
10006 * v850-tdep.c (v850_gdbarch_init): Update.
10007 * sparc-tdep.c (sparc_gdbarch_init): Update.
10008 * sh-tdep.c (sh_gdbarch_init): Update.
10009 * s390-tdep.c (s390_gdbarch_init): Update.
10010 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10011 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10012 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10013 * mips-tdep.c (mips_gdbarch_init): Update.
10014 * mcore-tdep.c (mcore_gdbarch_init): Update.
10015 * m68k-tdep.c (m68k_gdbarch_init): Update.
10016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10017 * ia64-tdep.c (ia64_gdbarch_init): Update.
10018 * i386-tdep.c (i386_gdbarch_init): Update.
10019 * hppa-tdep.c (hppa_gdbarch_init): Update.
10020 * h8300-tdep.c (h8300_gdbarch_init): Update.
10021 * frv-tdep.c (frv_gdbarch_init): Update.
10022 * cris-tdep.c (cris_gdbarch_init): Update.
10023 * avr-tdep.c (avr_gdbarch_init): Update.
10024 * arm-tdep.c (arm_gdbarch_init): Update.
10025 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10026
1bf6d5cc
AC
100272003-03-25 Andrew Cagney <cagney@redhat.com>
10028
10029 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10030 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10031 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10032 * gdbarch.h, gdbarch.c: Regenerate.
10033 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10034 call_dummy_stack_adjust_p.
10035 * vax-tdep.c (vax_gdbarch_init): Ditto.
10036 * v850-tdep.c (v850_gdbarch_init): Ditto.
10037 * sh-tdep.c (sh_gdbarch_init): Ditto.
10038 * s390-tdep.c (s390_gdbarch_init): Ditto.
10039 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10040 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10041 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10042 * mips-tdep.c (mips_gdbarch_init): Ditto.
10043 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10044 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10046 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10047 * i386-tdep.c (i386_gdbarch_init): Ditto.
10048 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10049 * frv-tdep.c (frv_gdbarch_init): Ditto.
10050 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10051 * cris-tdep.c (cris_gdbarch_init): Ditto.
10052 * avr-tdep.c (avr_gdbarch_init): Ditto.
10053 * arm-tdep.c (arm_gdbarch_init): Ditto.
10054 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10055 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10056 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10057 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10058 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10059 call_dummy_stack_adjust_p.
10060 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10061 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10062 * sparc-tdep.c (sparc32_push_arguments): Update.
10063 * valops.c (hand_function_call): Update.
10064
71c08af0
CV
100652003-03-25 Corinna Vinschen <vinschen@redhat.com>
10066
10067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10068 set_gdbarch_char_signed.
10069
30757f90
RE
100702003-03-25 Richard Earnshaw <rearnsha@arm.com>
10071
10072 PR cli/548
10073 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10074
03d48a7d
RE
100752003-03-25 Richard Earnshaw <rearnsha@arm.com>
10076
10077 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10078 (_initialize_arm_tdep): Don't set tm_print_insn.
10079
2cf6873c
AF
100802003-03-24 Adam Fedor <fedor@gnu.org>
10081
10082 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10083 * objc-lang.h: Add multiple inclusion protection.
10084 (start_msglist, add_msglist, end_msglist): Additional declarations.
10085
17c0759e
RE
100862003-03-24 Richard Earnshaw <rearnsha@arm.com>
10087
10088 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10089 value was renamed to ARM_FLOAT_SOFT_FPA.
10090
618ce49f
AC
100912003-03-23 Andrew Cagney <cagney@redhat.com>
10092
10093 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10094 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10095 * gdbarch.h, gdbarch.c: Regenerate.
10096 * valops.c (hand_function_call): Update.
10097 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10098 * frame.c (legacy_saved_regs_this_id): Update.
10099 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10100 * dummy-frame.h: Update.
10101 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10102 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10103 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10104 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10105 * config/m68k/tm-sun3.h: Update.
10106 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10108 * x86-64-tdep.c (x86_64_init_abi): Update.
10109 * vax-tdep.c (vax_gdbarch_init): Update.
10110 * v850-tdep.c (v850_gdbarch_init): Update.
10111 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10112 * sh-tdep.c (sh_gdbarch_init): Update.
10113 * s390-tdep.c (s390_gdbarch_init): Update.
10114 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10115 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10116 (frame_get_saved_regs): Update.
10117 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10118 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10119 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10120 * mips-tdep.c (mips_gdbarch_init): Update.
10121 * mcore-tdep.c (mcore_gdbarch_init): Update.
10122 * m68k-tdep.c (m68k_gdbarch_init): Update.
10123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10124 * ia64-tdep.c (ia64_gdbarch_init): Update.
10125 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10126 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10127 (i386_interix_back_one_frame): Update.
10128 * hppa-tdep.c (hppa_gdbarch_init): Update.
10129 (hppa_init_extra_frame_info): Update.
10130 * h8300-tdep.c (h8300_gdbarch_init): Update.
10131 * frv-tdep.c (frv_gdbarch_init): Update.
10132 * cris-tdep.c (cris_gdbarch_init): Update.
10133 * avr-tdep.c (avr_gdbarch_init): Update.
10134 * arm-tdep.c (arm_gdbarch_init): Update.
10135 * alpha-tdep.c (alpha_gdbarch_init): Update.
10136
fd50bc42
RE
101372003-03-22 Richard Earnshaw <rearnsha@arm.com>
10138
10139 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10140 (arm_get_fp_model): Declare.
10141 * arm-tdep.c (fp_model_strings): New string array.
10142 (arm_fp_model, current_fp_model): New variables.
10143 (arm_get_fp_model): New function.
10144 (arm_set_fp): New function.
10145 (set_fp_model_sfunc): New function.
10146 (show_fp_model): New function.
10147 (_initialize_arm_tdep): Add new command to set/show the FPU.
10148 (arm_extract_return_value): Use arm_get_fp_model.
10149 (arm_store_return_value): Likewise.
10150 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10151 to initialize the floating-point data types.
10152 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10153 model is FPA.
10154
26304000
RE
101552003-03-22 Richard Earnshaw <rearnsha@arm.com>
10156
10157 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10158 the current setting of each value.
10159 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10160 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10161 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10162 commands and add new version as subcommands of "set/show arm".
10163
afd7eef0
RE
101642003-03-22 Richard Earnshaw <rearnsha@arm.com>
10165
10166 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10167 (set_arm_command, show_arm_command): New functions.
10168 (_initialize_arm_tdep): Add them.
10169 (num_disassembly_options): Renamed from num_flavor_options.
10170 (valid_disassembly_styles): Renamed from valid_flavors.
10171 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10172 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10173 set_disassembly_flavor_sfunc.
10174 (set_disassembly_style): Renamed from set_disassembly_flavor.
10175 (arm_othernames): Updated.
10176 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10177 command. Add "set/show arm disassembly" commands. Deprecate
10178 "othernames" command.
10179
299a7944
RE
101802003-03-22 Richard Earnshaw <rearnsha@arm.com>
10181
10182 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10183 (arm-tdep.o): Depend on elf_arm_h.
10184
c1dac9e6
RE
101852003-03-22 Richard Earnshaw <rearnsha@arm.com>
10186
10187 * Makefile.in (coff_internal_h): Define.
10188 (arm-tdep.o): Update dependencies.
10189
2702d96c
RE
101902003-03-22 Richard Earnshaw <rearnsha@arm.com>
10191
10192 * arm-tdep.c (prologue_cache): Delete.
10193 (check_prologue_cache, save_prologue_cache): Delete.
10194 (arm_scan_prologue): Don't check or update the prologue_cache.
10195 (arm_gdb_arch_init): Don't initialize it.
10196 (_initialize_arm_tdep): Likewise.
10197
27d5d74b
SC
101982003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10199
10200 * MAINTAINERS (tui): Maintainer of tui code.
10201
1762d96d
CV
102022003-03-21 Corinna Vinschen <vinschen@redhat.com>
10203
10204 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10205 (i386-cygwin-tdep.o): Add dependencies.
10206 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10207 * i386-cygwin-tdep.c: New file.
10208 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10209 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10210
4c2e2391
AC
102112003-03-20 Andrew Cagney <cagney@redhat.com>
10212
f20d38b7
AC
10213 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10214 (handle_inferior_event): Remove code calling
10215 DYNAMIC_TRAMPOLINE_NEXTPC.
10216
0022b738
AC
10217 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10218 already has a full path.
10219
864dbc90
AC
10220 * main.c (gdb_main): Return 1.
10221 (captured_main): Call error to report an invalid interpreter.
10222
4c2e2391
AC
10223 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10224 * alpha-osf1-tdep.c: Include "gdb_string.h".
10225
5ef7553b
JB
102262003-03-19 J. Brobecker <brobecker@gnat.com>
10227
10228 Continuing work to convert the hppa targets to multiarch partial.
10229
10230 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10231 method, now that hppa_push_dummy_frame has a conformant prototype.
10232 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10233 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10234 for the switch to multiarch partial.
10235
7bde8967
KB
102362003-03-19 Kevin Buettner <kevinb@redhat.com>
10237
10238 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10239 when iss is issNull.
10240
b006a9e9
KB
102412003-03-18 Kevin Buettner <kevinb@redhat.com>
10242
10243 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10244 NUM_REGS bounds check.
10245
5e2e9765
KB
102462003-03-18 Kevin Buettner <kevinb@redhat.com>
10247
10248 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10249 * mips-tdep.c (gdb_assert.h): Include.
10250 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10251 (mips_register_name): Handle integer registers explicitly. Add
10252 bounds checking.
10253 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10254 (mips_lsi33k_reg_names): Don't list integer registers; they're
10255 handled by mips_register_name() now.
10256 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10257 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10258 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10259 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10260 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10261
a2867626
AC
102622003-03-18 Andrew Cagney <cagney@redhat.com>
10263
10264 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10265 a void pointer.
10266 * gdbtypes.h (print_scalar_formatted): Update declaration.
10267 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10268
06600e06
JB
102692003-03-18 J. Brobecker <brobecker@gnat.com>
10270
10271 * infrun.c (observer.h): Add #include.
10272 (normal_stop): Add call to observer_notify_normal_stop.
10273 * Makefile.in (infrun.o): Add dependency on observer.h.
10274
7daf4f5b
JB
102752003-03-18 J. Brobecker <brobecker@gnat.com>
10276
10277 Continuing work to convert the hppa targets to multiarch partial.
10278 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10279 parameter. Reformat comment.
10280 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10281 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10282 to match new profile.
10283
3371ccc0
JB
102842003-03-18 J. Brobecker <brobecker@gnat.com>
10285
10286 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10287 appear to be working in any case.
10288
4fbe891e
JB
102892003-03-18 J. Brobecker <brobecker@gnat.com>
10290
10291 * observer.c (observer_test_first_observer): New static variable.
10292 (observer_test_second_observer): Likewise.
10293 (observer_test_third_observer): Likewise.
10294 (observer_test_first_notification_function): New static function.
10295 (observer_test_second_notification_function): Likewise.
10296 (observer_test_third_notification_function): Likewise.
10297
a7ff40e7
JB
102982003-03-17 J. Brobecker <brobecker@gnat.com>
10299
10300 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10301 * somsolib.c (gdb_assert.h): Likewise.
10302 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10303 (somsolib.o): Likewise.
10304
26ca4152
AC
103052003-03-17 Andrew Cagney <cagney@redhat.com>
10306
10307 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10308 BFD. Simplify setting of di.endian.
10309
0a613259
AC
103102003-03-17 Andrew Cagney <cagney@redhat.com>
10311
10312 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10313 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10314
10315 From Elena Zannoni <ezannoni@redhat.com>
10316 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10317 vector and floating-point parameters.
10318 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10319 convention.
10320 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10321
1132738f
FN
103222003-03-17 Fernando Nasser <fnasser@redhat.com>
10323
10324 * MAINTAINERS: Remove my name from several maintainership roles.
10325
6dc42492
AC
103262003-03-17 Andrew Cagney <cagney@redhat.com>
10327
10328 Fix frame off-by-one bug.
10329 * frame-unwind.h (frame_this_id_ftype): Replace
10330 frame_unwind_id_ftype.
10331 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10332 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10333 with "prev_register".
10334 * frame-unwind.c (frame_unwind_find_by_pc): Return
10335 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10336 comment.
10337 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10338 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10339 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10340 (dummy_frame_unwind): Update.
10341 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10342 sentinel_frame_register_unwind.
10343 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10344 (sentinel_frame_unwinder): Update.
10345 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10346 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10347 * frame.c (create_sentinel_frame): Update. Initialize
10348 "prologue_cache" instead of "unwind_cache".
10349 (frame_register_unwind): Call this frame's prev_register with the
10350 next frame and this frame's prologue cache.
10351 (get_prev_frame): Simplify. Always call prev frame's this_id with
10352 this frame and prev frame's prologue cache. Document that this
10353 call is shifted one to the left when compared to the
10354 frame_register_unwind call.
10355 (legacy_saved_regs_prev_register): Replace
10356 frame_saved_regs_register_unwind.
10357 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10358 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10359 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10360 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10361 (d10v_frame_unwind): Update.
10362 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10363 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10364 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10365 "saved_regs" with "this_saved_regs".
10366
efd710d6
AC
103672003-03-16 Andrew Cagney <cagney@redhat.com>
10368
10369 * frame.c (frame_pop): Don't call target_store_registers. Fix
10370 problem reported by Mark Kettenis.
10371
4e259f09
MK
103722003-03-16 Mark Kettenis <kettenis@gnu.org>
10373
10374 * i386-tdep.c (i386_register_type): Renamed from
10375 i386_register_virtual_type. Adjust function signature.
10376 (i386_gdbarch_init): Set register_type instead of
10377 deprecated_max_register_raw_size,
10378 deprecated_max_register_virtual_size and register_virtual_type.
10379
055bb976
AC
103802003-03-14 Andrew Cagney <cagney@redhat.com>
10381
10382 * frame.c (get_prev_frame): When a legacy frame, always call
10383 legacy_get_prev_frame. Simplify unwind code using assumption that
10384 the unwinder is new.
10385 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10386 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10387 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10388
ac2adee5
AC
103892003-03-14 Andrew Cagney <cagney@redhat.com>
10390
10391 * frame.c (get_saved_register): Delete function.
10392 * frame.h (get_saved_register): Delete declaration.
10393 * xstormy16-tdep.c: Update comment.
10394 * regcache.h: Update comments.
10395 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10396 get_saved_register and extract_address, use
10397 frame_read_unsigned_register.
10398 (sparc_frame_saved_pc): Ditto.
10399 (sparc_get_saved_register): Instead of get_saved_register, use
10400 frame_register.
10401 (sparc_pop_frame): Ditto.
10402 * findvar.c: Update comments.
10403 (value_of_register): Call frame_register instead of
10404 get_saved_register.
10405 (value_from_register): Ditto.
10406 * config/sparc/tm-sparc.h: Update comment.
10407 * breakpoint.c: Update comment.
10408
129c1cd6
AC
104092003-03-14 Andrew Cagney <cagney@redhat.com>
10410
10411 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10412 GET_SAVED_REGISTER.
10413 * gdbarch.h, gdbarch.c: Re-generate.
10414 * frame.h: Update comments.
10415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10416 * x86-64-tdep.c (x86_64_init_abi): Update.
10417 * sparc-tdep.c (sparc_gdbarch_init): Update.
10418 * sh-tdep.c (sh_gdbarch_init): Update.
10419 * mips-tdep.c (mips_gdbarch_init): Update.
10420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10421 * cris-tdep.c (cris_gdbarch_init): Update.
10422 * ia64-tdep.c (ia64_gdbarch_init): Update.
10423 * frame.c (frame_register): Update.
10424 (get_saved_register): Update.
10425 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10426
749b82f6
AC
104272003-03-13 Andrew Cagney <cagney@redhat.com>
10428
10429 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10430 * gdbarch.h, gdbarch.c: Regenerate.
10431 * valops.c (hand_function_call): Update comment.
10432 * stack.c (return_command): Update comment.
10433 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10434 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10436 * x86-64-tdep.c (x86_64_init_abi): Update.
10437 * vax-tdep.c (vax_gdbarch_init): Update.
10438 * v850-tdep.c (v850_gdbarch_init): Update.
10439 * sparc-tdep.c (sparc_gdbarch_init): Update.
10440 * sh-tdep.c (sh_gdbarch_init): Update.
10441 * s390-tdep.c (s390_gdbarch_init): Update.
10442 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10443 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10444 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10445 * mips-tdep.c (mips_gdbarch_init): Update.
10446 * mcore-tdep.c (mcore_gdbarch_init): Update.
10447 * m68k-tdep.c (m68k_gdbarch_init): Update.
10448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10449 * ia64-tdep.c (ia64_gdbarch_init): Update.
10450 * i386-tdep.c (i386_gdbarch_init): Update.
10451 * hppa-tdep.c (hppa_gdbarch_init): Update.
10452 * h8300-tdep.c (h8300_gdbarch_init): Update.
10453 * frv-tdep.c (frv_gdbarch_init): Update.
10454 * cris-tdep.c (cris_gdbarch_init): Update.
10455 * avr-tdep.c (avr_gdbarch_init): Update.
10456 * arm-tdep.c (arm_gdbarch_init): Update.
10457 * alpha-tdep.c (alpha_gdbarch_init): Update.
10458
1594fa56
AC
104592003-03-13 Andrew Cagney <cagney@redhat.com>
10460
10461 * frame.c (legacy_frame_p): New function.
10462 (get_prev_frame): Use legacy_frame_p.
10463 * frame.h (legacy_frame_p): Declare.
10464
7717fda3
V
104652003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10466
fbe586ae 10467 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10468 listing corrected.
10469
0c67cbe9
V
104702003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10471
fbe586ae 10472 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10473
03febf99
AC
104742003-03-12 Andrew Cagney <cagney@redhat.com>
10475
10476 * frame.c (get_prev_frame): Rename the frame parameter to
10477 "this_frame".
10478 (get_next_frame, legacy_get_prev_frame): Ditto.
10479
0a1e1ca1
AC
104802003-03-12 Andrew Cagney <cagney@redhat.com>
10481
10482 * frame.c (get_current_frame): Check target_has_registers before
10483 checking target_has_stack.
10484 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10485 instead of deprecated_selected_frame.
10486 * findvar.c (value_of_register): Pass "frame", not
10487 deprecated_selected_frame, to value_of_builtin_reg.
10488
a66a9c23
AC
104892003-03-12 Andrew Cagney <cagney@redhat.com>
10490
10491 * regcache.c (regcache_cooked_write_signed): New function.
10492 (regcache_cooked_write_unsigned): New function.
10493 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10494 (regcache_cooked_read_signed): Fix regnum in range assertion.
10495 * regcache.h (regcache_cooked_write_signed): Declare.
10496 (regcache_cooked_write_unsigned): Declare.
10497
8bedc050
AC
104982003-03-12 Andrew Cagney <cagney@redhat.com>
10499
10500 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10501 * gdbarch.h, gdbarch.c: Re-generate.
10502 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10503 * x86-64-tdep.h: Update.
10504 * x86-64-tdep.c (x86_64_init_abi): Update.
10505 * v850-tdep.c (v850_gdbarch_init): Update.
10506 * sparc-tdep.c (sparc_gdbarch_init): Update.
10507 * sh-tdep.c (sh_gdbarch_init): Update.
10508 * s390-tdep.c (s390_gdbarch_init): Update.
10509 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10510 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10511 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10512 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10513 * mips-tdep.c (mips_gdbarch_init): Update.
10514 * mcore-tdep.c (mcore_gdbarch_init): Update.
10515 * m68k-tdep.c (m68k_gdbarch_init): Update.
10516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10517 * ia64-tdep.c (ia64_gdbarch_init): Update.
10518 * i386-tdep.c (i386_gdbarch_init): Update.
10519 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10520 * hppa-tdep.c (hppa_gdbarch_init): Update.
10521 * h8300-tdep.c (h8300_gdbarch_init): Update.
10522 * frv-tdep.c (frv_gdbarch_init): Update.
10523 * cris-tdep.c (cris_gdbarch_init): Update.
10524 * avr-tdep.c (avr_gdbarch_init): Update.
10525 * arm-tdep.c (arm_gdbarch_init): Update.
10526 * alpha-tdep.c (alpha_gdbarch_init): Update.
10527 * sh-tdep.c (sh_init_extra_frame_info): Update.
10528 (sh64_init_extra_frame_info): Update.
10529 * ns32knbsd-nat.c (frame_num_args): Update.
10530 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10531 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10532 (xstormy16_frame_chain_valid): Update.
10533 * vax-tdep.c (vax_saved_pc_after_call): Update.
10534 * v850-tdep.c (v850_frame_chain): Update.
10535 (v850_pop_frame): Update.
10536 (v850_init_extra_frame_info): Update.
10537 * sparc-tdep.c (setup_arbitrary_frame): Update.
10538 * ns32k-tdep.c (umax_frame_num_args): Update.
10539 * s390-tdep.c (s390_pop_frame_regular): Update.
10540 * mn10300-tdep.c (mn10300_frame_chain): Update.
10541 (mn10300_pop_frame_regular): Update.
10542 (mn10300_init_extra_frame_info): Update.
10543 * mips-tdep.c (mips_init_frame_pc_first): Update.
10544 (mips_frame_chain): Update.
10545 (mips_pop_frame): Update.
10546 * mcore-tdep.c (mcore_frame_chain): Update.
10547 (mcore_pop_frame): Update.
10548 (mcore_init_extra_frame_info): Update.
10549 * arch-utils.c (init_frame_pc_default): Update.
10550 * m68k-tdep.c (isi_frame_num_args): Update.
10551 (delta68_frame_num_args): Update.
10552 (news_frame_num_args): Update.
10553 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10554 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10555 (alpha_frame_chain): Update.
10556 (alpha_pop_frame): Update.
10557 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10558 (hppa_init_extra_frame_info): Update.
10559 (hppa_frame_chain): Update.
10560 (hppa_frame_chain_valid): Update.
10561 * cris-tdep.c (cris_init_extra_frame_info): Update.
10562 * avr-tdep.c (avr_init_extra_frame_info): Update.
10563 * arm-tdep.c (arm_frame_chain_valid): Update.
10564 (arm_init_extra_frame_info): Update.
10565 (arm_pop_frame): Update.
10566 * frame.c (frame_pc_unwind): Update.
10567 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10568 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10569 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10570 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10571 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10572 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10573
7a25a7c1
AC
105742003-03-12 Andrew Cagney <cagney@redhat.com>
10575
10576 Eliminate the need for POP_FRAME.
10577 * frame.c (do_frame_unwind_register): New function.
10578 (frame_pop): When no POP_FRAME, pop the frame using register
10579 unwind and a scratch regcache.
10580 (frame_saved_regs_pop): Delete function.
10581 (trad_frame_unwinder): Update.
10582 * d10v-tdep.c (d10v_frame_pop): Delete function.
10583 (d10v_frame_unwind): Update.
10584 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10585 (sentinel_frame_unwinder): Update.
10586 * dummy-frame.c (dummy_frame_pop): Delete function.
10587 (dummy_frame_unwind): Update.
10588 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10589 (struct frame_unwind): Update.
10590
2f38ef89
KB
105912003-03-11 Kevin Buettner <kevinb@redhat.com>
10592
10593 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10594 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10595 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10596 Do range checks on register number obtained from debugging info.
10597 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10598 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10599 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10600 mapping function.
10601 (do_fp_register_row): Fix typo which caused double type to be
10602 used when attempting to unpack a float.
10603
552f4abf
JB
106042003-03-11 J. Brobecker <brobecker@gnat.com>
10605
10606 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10607
e0d2ae16
AC
106082003-03-11 Andrew Cagney <cagney@redhat.com>
10609
10610 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10611 frame. Problem found by Corinna Vinschen.
10612
ddbfdd06
PM
106132003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10614
10615 * doublest.c (floatformat_from_length): Accept also
10616 the real size of 'long double' type.
10617
088b2ddc 106182003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10619
088b2ddc 10620 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10621 * breakpoint.c (bpstat_copy): Copy the command lines as well
10622 as the old value, to match what is freed in bpstat_clear.
10623
f56f77c1
DC
106242003-03-10 David Carlton <carlton@math.stanford.edu>
10625
10626 * minsyms.c (add_minsym_to_hash_table): Replace
10627 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10628 (compare_minimal_symbols, compact_minimal_symbols)
10629 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10630 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10631 of DEPRECATED_SYMBOL_MATCHES_NAME.
10632 (lookup_minimal_symbol_solib_trampoline): Ditto.
10633
5602984a
AC
106342003-03-10 Andrew Cagney <cagney@redhat.com>
10635
10636 * regcache.h (regcache_cooked_read_ftype): Define.
10637 (regcache_save, regcache_restore): Add a cooked_read parameter.
10638 * regcache.c (regcache_save, regcache_restore): Update.
10639 (do_cooked_read): New function.
10640 (regcache_cpy): Pass do_cooked_read to regcache_save and
10641 regcache_restore.
10642
8bedc050
AC
106432003-03-10 Andrew Cagney <cagney@redhat.com>
10644
10645 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10646 * gdbarch.h, gdbarch.c: Re-generate.
10647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10648 * x86-64-tdep.h: Update.
10649 * x86-64-tdep.c (x86_64_init_abi): Update.
10650 * v850-tdep.c (v850_gdbarch_init): Update.
10651 * sparc-tdep.c (sparc_gdbarch_init): Update.
10652 * sh-tdep.c (sh_gdbarch_init): Update.
10653 * s390-tdep.c (s390_gdbarch_init): Update.
10654 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10655 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10656 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10657 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10658 * mips-tdep.c (mips_gdbarch_init): Update.
10659 * mcore-tdep.c (mcore_gdbarch_init): Update.
10660 * m68k-tdep.c (m68k_gdbarch_init): Update.
10661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10662 * ia64-tdep.c (ia64_gdbarch_init): Update.
10663 * i386-tdep.c (i386_gdbarch_init): Update.
10664 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10665 * hppa-tdep.c (hppa_gdbarch_init): Update.
10666 * h8300-tdep.c (h8300_gdbarch_init): Update.
10667 * frv-tdep.c (frv_gdbarch_init): Update.
10668 * cris-tdep.c (cris_gdbarch_init): Update.
10669 * avr-tdep.c (avr_gdbarch_init): Update.
10670 * arm-tdep.c (arm_gdbarch_init): Update.
10671 * alpha-tdep.c (alpha_gdbarch_init): Update.
10672 * sh-tdep.c (sh_init_extra_frame_info): Update.
10673 (sh64_init_extra_frame_info): Update.
10674 * ns32knbsd-nat.c (frame_num_args): Update.
10675 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10676 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10677 (xstormy16_frame_chain_valid): Update.
10678 * vax-tdep.c (vax_saved_pc_after_call): Update.
10679 * v850-tdep.c (v850_frame_chain): Update.
10680 (v850_pop_frame): Update.
10681 (v850_init_extra_frame_info): Update.
10682 * sparc-tdep.c (setup_arbitrary_frame): Update.
10683 * ns32k-tdep.c (umax_frame_num_args): Update.
10684 * s390-tdep.c (s390_pop_frame_regular): Update.
10685 * mn10300-tdep.c (mn10300_frame_chain): Update.
10686 (mn10300_pop_frame_regular): Update.
10687 (mn10300_init_extra_frame_info): Update.
10688 * mips-tdep.c (mips_init_frame_pc_first): Update.
10689 (mips_frame_chain): Update.
10690 (mips_pop_frame): Update.
10691 * mcore-tdep.c (mcore_frame_chain): Update.
10692 (mcore_pop_frame): Update.
10693 (mcore_init_extra_frame_info): Update.
10694 * arch-utils.c (init_frame_pc_default): Update.
10695 * m68k-tdep.c (isi_frame_num_args): Update.
10696 (delta68_frame_num_args): Update.
10697 (news_frame_num_args): Update.
10698 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10699 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10700 (alpha_frame_chain): Update.
10701 (alpha_pop_frame): Update.
10702 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10703 (hppa_init_extra_frame_info): Update.
10704 (hppa_frame_chain): Update.
10705 (hppa_frame_chain_valid): Update.
10706 * cris-tdep.c (cris_init_extra_frame_info): Update.
10707 * avr-tdep.c (avr_init_extra_frame_info): Update.
10708 * arm-tdep.c (arm_frame_chain_valid): Update.
10709 (arm_init_extra_frame_info): Update.
10710 (arm_pop_frame): Update.
10711 * frame.c (frame_pc_unwind): Update.
10712 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10713 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10714 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10715 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10716 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10717 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10718
12cc2063
AC
107192003-03-10 Andrew Cagney <cagney@redhat.com>
10720
10721 * gdbarch.sh (gdbarch_unwind_pc): New method.
10722 * gdbarch.h, gdbarch.c: Regenerate.
10723 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10724 but use read_pc and FRAME_SAVED_PC as fall backs.
10725 (frame_saved_regs_pc_unwind): Delete function.
10726 (trad_frame_unwinder): Update.
10727 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10728 (struct frame_unwind): Update.
10729 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10730 (dummy_frame_unwind): Update.
10731 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10732 (sentinel_frame_unwinder): Update.
10733 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10734 (d10v_frame_unwind): Update.
10735 (d10v_unwind_pc): New function.
10736 (d10v_gdbarch_init): Set unwind_pc.
10737
ef840a37
AC
107382003-03-10 Andrew Cagney <cagney@redhat.com>
10739
a2ce2e56
AC
10740 * gdbarch.h: Re-generate.
10741
ef840a37
AC
10742 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10743 PC.
10744 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10745 the PC register.
10746
08f3424b
MK
107472003-03-08 Mark Kettenis <kettenis@gnu.org>
10748
10749 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10750
1248ede2
AC
107512003-03-08 Andrew Cagney <cagney@redhat.com>
10752
10753 * cli-out.c: Update copyright.
10754 (cli_out_data): Define typedef. Use instead of ui_out_data.
10755
f49bacc8
AC
107562003-03-08 Andrew Cagney <cagney@redhat.com>
10757
10758 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10759 the result.
10760
9b05f993
AC
107612003-03-07 Andrew Cagney <cagney@redhat.com>
10762
10763 * gdbarch.sh: Don't generate two macro definitions when an
10764 undefined macro taking no arguments.
10765 * gdbarch.h: Regenerate.
8ffd9b1b 10766
166f4c7b
ML
107672002-03-07 Michal Ludvig <mludvig@suse.cz>
10768
10769 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10770 (x86_64_unwind_dummy_id): New functions.
10771 (x86_64_init_abi): Register these two new functions.
10772
6d686a84
ML
107732003-03-07 Michal Ludvig <mludvig@suse.cz>
10774
10775 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10776 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10777 separate function.
10778 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10779
6314f104
AC
107802003-03-05 Andrew Cagney <cagney@redhat.com>
10781
10782 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10783 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10784 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10785 to use unwind_dummy_id when a dummy frame.
10786 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10787 predicate.
10788 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10789
ceea5145
AC
107902003-03-05 Andrew Cagney <cagney@redhat.com>
10791
10792 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10793 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10794 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10795 values.
10796
0d843116
AC
107972003-03-05 Andrew Cagney <cagney@redhat.com>
10798
10799 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10800 (struct d10v_unwind_cache): Delete field "frameless". Replace
10801 "next_addr" with "sp_offset". Add "r11_offset".
10802 (d10v_frame_unwind_cache): Update.
10803 (prologue_find_regs): Update. When "mv r11, sp", save the
10804 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10805 RN was saved in r11_offset.
10806
b2579786
AC
108072003-03-05 Andrew Cagney <cagney@redhat.com>
10808
10809 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10810 cached PC value in the next frame.
10811
218e5956
AC
108122003-03-05 Andrew Cagney <cagney@redhat.com>
10813
10814 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10815 "id_unwind_cache" with "id".
10816 (frame_id_unwind): Delete declaration.
10817 * frame.c (frame_id_unwind): Delete function.
10818 (get_prev_frame): Call the frame id unwind method directly. Store
10819 the returned next frame's ID value in NEXT_FRAME. Note that there
10820 is a problem with the wrong unwind ID being called with the wrong
10821 unwind cache.
10822
ed363b1b
DJ
108232003-03-05 Daniel Jacobowitz <drow@mvista.com>
10824
10825 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10826
fe1f4a5e
DJ
108272003-03-05 James Ingham <jingham@apple.com>
10828 Daniel Jacobowitz <drow@mvista.com>
10829
10830 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10831 (auto_cp_abi): New variable.
10832 (current_cp_abi, num_cp_abis): Make static.
10833 (CP_ABI_MAX): Define.
10834 (cp_abis): Turn into an array.
10835 (value_virtual_fn_field): Fix formatting.
10836 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10837 takes a pointer.
10838 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10839 (list_cp_abis, _initialize_cp_abi): New functions.
10840 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10841 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10842 switch_to_cp_abi. Update prototype for register_cp_abi.
10843 * Makefile.in (cp-abi.o): Update dependencies.
10844 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10845 instead of switch_to_cp_abi.
10846 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10847 register_cp_abi.
10848 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10849 register_cp_abi.
10850 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10851
e4adbba9
DJ
108522003-03-05 Daniel Jacobowitz <drow@mvista.com>
10853
10854 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10855 * dwarf2loc.c: Include "regcache.h".
10856 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10857 register_size.
10858 * Makefile.in (dwarf2loc.o): Update dependencies.
10859
91ccbfc1
TR
108602003-03-04 Theodore A. Roth <troth@openavr.org>
10861
10862 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10863 number of io registers reported by remote target is not a multiple of
10864 step.
10865
3d4e8fd2
DC
108662003-03-04 David Carlton <carlton@math.stanford.edu>
10867
10868 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10869 (lookup_symbol_aux_psymtabs): Update call to
10870 lookup_partial_symbol.
10871 (lookup_transparent_type, find_main_psymtab)
10872 (make_symbol_overload_list): Ditto.
10873
ed42d87b
KH
108742003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10875
10876 * MAINTAINERS (Write after approval): Update my email address.
10877
a0ed5532
AC
108782003-03-03 Andrew Cagney <cagney@redhat.com>
10879
10880 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10881 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10882 predicate. Replace MAX_REGISTER_RAW_SIZE.
10883 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10884 MAX_REGISTER_VIRTUAL_SIZE.
10885 * regcache.c (legacy_max_register_raw_size): New function.
10886 (legacy_max_register_virtual_size): New function.
10887 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10888 (MAX_REGISTER_RAW_SIZE): Define.
10889 (legacy_max_register_raw_size): Declare.
10890 (legacy_max_register_virtual_size): Declare.
10891 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10892 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10893 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10894 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10895 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10896 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10897 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10898 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10899 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10901 * vax-tdep.c (vax_gdbarch_init): Update.
10902 * v850-tdep.c (v850_gdbarch_init): Update.
10903 * sparc-tdep.c (sparc_gdbarch_init): Update.
10904 * sh-tdep.c (sh_gdbarch_init): Update.
10905 * s390-tdep.c (s390_gdbarch_init): Update.
10906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10907 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10908 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10909 * mips-tdep.c (mips_gdbarch_init): Update.
10910 * mcore-tdep.c (mcore_gdbarch_init): Update.
10911 * m68k-tdep.c (m68k_gdbarch_init): Update.
10912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10913 * ia64-tdep.c (ia64_gdbarch_init): Update.
10914 * i386-tdep.c (i386_gdbarch_init): Update.
10915 * hppa-tdep.c (hppa_gdbarch_init): Update.
10916 * h8300-tdep.c (h8300_gdbarch_init): Update.
10917 * frv-tdep.c (frv_gdbarch_init): Update.
10918 * cris-tdep.c (cris_gdbarch_init): Update.
10919 * avr-tdep.c (avr_gdbarch_init): Update.
10920 * arm-tdep.c (arm_gdbarch_init): Update.
10921 * alpha-tdep.c (alpha_gdbarch_init): Update.
10922 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10923 max_register_raw_size or max_register_virtual_size.
10924
8e437497
DC
109252003-03-03 David Carlton <carlton@math.stanford.edu>
10926
10927 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10928 SYMBOL_MATCHES_NAME, add comment.
10929 (SYMBOL_MATCHES_NATURAL_NAME): New.
10930 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10931 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10932 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10933 * symtab.c (lookup_partial_symbol): Use
10934 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10935 unhelpful comment.
10936 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10937 SYMBOL_MATCHES_NAME.
10938 Fix for PR c++/33.
10939
25120b0d
DC
109402003-03-03 David Carlton <carlton@math.stanford.edu>
10941
10942 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10943 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10944 by regexp matching against SYMBOL_NATURAL_NAME.
10945
78a11fb4
DC
109462003-03-03 David Carlton <carlton@math.stanford.edu>
10947
10948 * linespec.c (find_method): Extract code into collect_methods.
10949 (collect_methods): New.
10950
645dd519
MK
109512003-03-02 Mark Kettenis <kettenis@gnu.org>
10952
b4700d91
MK
10953 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10954 get_frame_base.
10955
645dd519
MK
10956 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10957 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10958
0aa7e1aa
SC
109592003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10960
8ffd9b1b 10961 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10962 and not regnum when summing the size of all registers up to regnum.
10963
f30ee0bc
AC
109642003-03-01 Andrew Cagney <cagney@redhat.com>
10965
10966 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10967 FRAME_INIT_SAVED_REGS.
10968 * gdbarch.h, gdbarch.c: Regenerate.
10969 * stack.c (frame_info): Update.
10970 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10971 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10972 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10973 * ns32k-tdep.c (ns32k_pop_frame): Update.
10974 * mips-tdep.c (mips_pop_frame): Update.
10975 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10976 * ia64-tdep.c (ia64_frame_chain): Update.
10977 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10978 (ia64_frameless_function_invocation): Update.
10979 (ia64_init_extra_frame_info): Update.
10980 (ia64_pop_frame_regular): Update.
10981 * frame.h (struct frame_info): Update comment.
10982 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10983 * frame.c (frame_saved_regs_register_unwind): Update.
10984 (frame_saved_regs_register_unwind): Update.
10985 (deprecated_generic_get_saved_register): Update.
10986 * cris-tdep.c: Update comment.
10987 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10988 Rename macro.
10989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10990 * x86-64-tdep.c (x86_64_init_abi): Update.
10991 * vax-tdep.c (vax_gdbarch_init): Update.
10992 * v850-tdep.c (v850_gdbarch_init): Update.
10993 * sparc-tdep.c (sparc_gdbarch_init): Update.
10994 * sh-tdep.c (sh_gdbarch_init): Update.
10995 * s390-tdep.c (s390_gdbarch_init): Update.
10996 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10997 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10998 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10999 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11000 * mips-tdep.c (mips_gdbarch_init): Update.
11001 * mcore-tdep.c (mcore_gdbarch_init): Update.
11002 * m68k-tdep.c (m68k_gdbarch_init): Update.
11003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11004 * ia64-tdep.c (ia64_gdbarch_init): Update.
11005 * i386-tdep.c (i386_gdbarch_init): Update.
11006 * frv-tdep.c (frv_gdbarch_init): Update.
11007 * avr-tdep.c (avr_gdbarch_init): Update.
11008 * arm-tdep.c (arm_gdbarch_init): Update.
11009 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11010
42fa7c0f
AC
110112003-03-01 Andrew Cagney <cagney@redhat.com>
11012
11013 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11014 option enum and switch. When no windows, set the interpreter to
11015 INTERP_CONSOLE.
8ffd9b1b 11016
49c7e338
AC
110172003-03-01 Andrew Cagney <cagney@redhat.com>
11018
11019 * main.c (captured_main): Replace magic option characters with an
11020 enum.
11021
e9582e71
AC
110222003-03-01 Andrew Cagney <cagney@redhat.com>
11023
11024 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11025 INIT_EXTRA_FRAME_INFO.
11026 * gdbarch.h, gdbarch.c: Regenerate.
11027 * arm-tdep.c: Update comments.
11028 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11029 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11030 * frame.h, avr-tdep.c: Ditto.
11031 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11032 (create_new_frame, legacy_get_prev_frame): Ditto.
11033 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11034 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11036 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11037 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11038 * v850-tdep.c (v850_gdbarch_init): Ditto.
11039 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11040 * sh-tdep.c (sh_gdbarch_init): Ditto.
11041 * s390-tdep.c (s390_gdbarch_init): Ditto.
11042 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11043 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11044 * mips-tdep.c (mips_gdbarch_init): Ditto.
11045 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11047 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11048 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11049 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11051 * frv-tdep.c (frv_gdbarch_init): Ditto.
11052 * cris-tdep.c (cris_gdbarch_init): Ditto.
11053 * avr-tdep.c (avr_gdbarch_init): Ditto.
11054 * arm-tdep.c (arm_gdbarch_init): Ditto.
11055 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11056 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11057
35cac7cf
AC
110582003-03-01 Andrew Cagney <cagney@redhat.com>
11059
11060 * gdbarch.sh (register_type): New function with predicate.
11061 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11062 * gdbarch.h, gdbarch.c: Re-generate.
11063 * arch-utils.c (generic_register_byte): Use generic_register_size.
11064 (generic_register_size): When available, use
11065 gdbarch_register_type.
11066 * regcache.c (init_regcache_descr): When available, initialize the
11067 register type array using gdbarch_register_type. If the
11068 architecture supplies gdbarch_register_type, do not use the legacy
11069 regcache layout.
11070 * d10v-tdep.c (d10v_register_type): Replace
11071 d10v_register_virtual_type.
11072 (d10v_gdbarch_init): Set register_type instead of
11073 register_virtual_type.
11074
7b83296f
AC
110752003-03-01 Andrew Cagney <cagney@redhat.com>
11076
11077 * Makefile.in (ax-gdb.o): Update dependencies.
11078 * ax-gdb.c: Include "regcache.h".
11079 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11080 * findvar.c (value_of_register): Ditto.
11081 * infcmd.c (default_print_registers_info): Ditto.
11082
eadc1c87
MK
110832003-03-01 Mark Kettenis <kettenis@gnu.org>
11084
11085 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11086 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11087
14143612
MK
110882003-03-01 Mark Kettenis <kettenis@gnu.org>
11089
11090 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11091 of STREQ.
11092
a55cc764
DJ
110932003-02-28 Daniel Jacobowitz <drow@mvista.com>
11094
11095 * Makefile.in (dwarf2loc.o): Update dependencies.
11096 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11097 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11098 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11099 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11100 (locexpr_tracepoint_var_ref): New function.
11101 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11102
08a617da
AC
111032003-02-28 Andrew Cagney <cagney@redhat.com>
11104
11105 * regcache.c (register_size): New function.
11106 * regcache.h (register_size): Declare
11107 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11108 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11109
4224873a
DC
111102003-02-28 David Carlton <carlton@math.stanford.edu>
11111
11112 * linespec.c (decode_compound): Extract code into find_method.
11113 (find_method): New.
11114
ccdc5d7f
JB
111152003-02-28 J. Brobecker <brobecker@gnat.com>
11116
11117 * Makefile.in: Add rules to build and link in observer.o.
11118
974e8ced
JB
111192003-02-27 J. Brobecker <brobecker@gnat.com>
11120
11121 * observer.c: Minor comments edits.
11122
7a28f973
JB
111232003-02-27 J. Brobecker <brobecker@gnat.com>
11124
11125 * observer.h, observer.c: New file.
11126
27cddce2
AC
111272003-02-27 Andrew Cagney <cagney@redhat.com>
11128
11129 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11130
b94a41a1
SC
111312003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11132
11133 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11134 (M6812_OP_STS_EXT): Likewise.
11135 (m6811_prologue): Use the above to recognize prologue.
11136 (m6812_prologue): Likewise.
11137
c8be8951
DC
111382003-02-27 David Carlton <carlton@math.stanford.edu>
11139
11140 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11141 SYMBOL_PRINT_NAME.
11142 (compare_psymbols): Ditto.
11143 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11144
d05bb1fc
MS
111452003-02-27 Michael Snyder <msnyder@redhat.com>
11146
4e845cd3
MS
11147 * f-lang.c (build_fortran_types): New function.
11148 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11149 * doublest.c (extract_floating): Fix warning text.
11150
f3824013
AC
111512003-02-27 Andrew Cagney <cagney@redhat.com>
11152
11153 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11154 predicate. Replaces PUSH_DUMMY_FRAME.
11155 * gdbarch.h, gdbarch.c: Regnerate.
11156 * valops.c (hand_function_call): Update. Call
11157 generic_push_dummy_frame directly.
11158 * vax-tdep.c (vax_gdbarch_init): Update.
11159 * sparc-tdep.c (sparc_gdbarch_init): Update.
11160 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11161 * m68k-tdep.c (m68k_gdbarch_init): Update.
11162 * hppa-tdep.c (hppa_gdbarch_init): Update.
11163 * alpha-tdep.c (alpha_gdbarch_init): Update.
11164 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11165 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11166 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11168 push_dummy_frame to generic_push_dummy_frame.
11169 * v850-tdep.c (v850_gdbarch_init): Ditto.
11170 * sh-tdep.c (sh_gdbarch_init): Ditto.
11171 * s390-tdep.c (s390_gdbarch_init): Ditto.
11172 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11173 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11174 * mips-tdep.c (mips_gdbarch_init): Ditto.
11175 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11177 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11178 * i386-tdep.c (i386_gdbarch_init): Ditto.
11179 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11180 * frv-tdep.c (frv_gdbarch_init): Ditto.
11181 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11182 * cris-tdep.c (cris_gdbarch_init): Ditto.
11183 * avr-tdep.c (avr_gdbarch_init): Ditto.
11184 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11185
ad188201
KB
111862003-02-26 Kevin Buettner <kevinb@redhat.com>
11187
11188 * mips-tdep.c (show_mips_abi): New function.
11189 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11190 command ``show mips abi''.
11191
6b37567a 111922003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11193
6b37567a 11194 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11195 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11196 more sline entries have been seen for the function.
11197
d3e0a5bf
MC
111982003-02-26 Michael Chastain <mec@shout.net>
11199
11200 * configure: Regenerate with autoconf 000227.
11201
18972eea
MC
112022003-02-26 Michael Chastain <mec@shout.net>
11203
11204 Close PR build/660.
11205 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11206 for old libc5/glibc.
11207 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11208
0bbde931
KW
112092003-02-26 Kris Warkentin <kewarken@qnx.com>
11210
11211 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11212 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11213
27ca5dad
MC
112142003-02-26 Michael Chastain <mec@shout.net>
11215
11216 * configure.in: New variable HAVE_UINTPTR_T.
11217 * configure, config.in: Regenerated.
11218
6f88d630
DJ
112192003-02-26 Daniel Jacobowitz <drow@mvista.com>
11220
11221 Fix PR build/1097.
11222 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11223
b14185ce
AC
112242003-02-25 Andrew Cagney <cagney@redhat.com>
11225
11226 * frame.c (get_prev_frame): Add comment on check for
11227 inside_entry_func. Only check for inside_entry_file when not a
11228 dummy and not a sentinel. Check that the new frame is not inner
11229 to the old frame.
11230
ac2bd0a9
AC
112312003-02-25 Andrew Cagney <cagney@redhat.com>
11232
11233 * frame.c (frame_debug): New variable.
11234 (_initialize_frame): Add "set/show debug frame" command.
11235 (get_prev_frame): When frame_debug, print reason why unwind
11236 failed.
11237
b18a0fd2
MC
112382003-02-25 Michael Chastain <mec@shout.net>
11239
11240 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11241 to avoid uintptr_t definition problems.
11242
22abf04a
DC
112432003-02-25 David Carlton <carlton@math.stanford.edu>
11244
11245 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11246 (SYMBOL_LINKAGE_NAME): Ditto.
11247 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11248 SYMBOL_LINKAGE_NAME.
11249 (struct general_symbol_info): Expand comment.
11250 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11251 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11252 (SYMBOL_MATCHES_REGEXP): Ditto.
11253 * symtab.c (symbol_natural_name): New function.
11254 * objfiles.h: Replace all uses of SYMBOL_NAME by
11255 DEPRECATED_SYMBOL_NAME.
11256 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11257 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11258 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11259 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11260 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11261 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11262 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11263 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11264 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11265 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11266 * ada-exp.y: Ditto.
11267 * ada-exp.y: Update copyright.
11268 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11269 * cp-valprint.c: Ditto.
11270
1a5848f6
JJ
112712003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11272
11273 * infptrace.c (detach): Do not flag error if ptrace detach fails
11274 and errno is set to ESRCH.
11275
7343d46a
AC
112762003-02-24 Andrew Cagney <cagney@redhat.com>
11277
11278 * infptrace.c (udot_info): Change type of udot_off to long. Use
11279 paddr when printing udot_off's value.
11280
49fa1dc2
DC
112812003-02-24 David Carlton <carlton@math.stanford.edu>
11282
11283 * symtab.c (make_symbol_overload_list): Only read in partial
11284 symtabs containing a matching partial symbol.
11285
0fe19209
DC
112862003-02-24 David Carlton <carlton@math.stanford.edu>
11287
11288 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11289 do the comparison, not strcmp.
11290 * symfile.c (compare_psymbols): Ditto.
11291 * defs.h: Declare strcmp_iw_ordered.
11292 * utils.c (strcmp_iw_ordered): New function.
11293
8e3ee7b5
JB
112942003-02-24 Jim Blandy <jimb@redhat.com>
11295
11296 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11297 support, shared libs): Remove my name from here, to better reflect
11298 reality.
11299
7df1a324
KW
113002003-02-24 Kris Warkentin <kewarken@qnx.com>
11301
11302 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11303 (target_ops): Add to_have_continuable_watchpoint.
11304 * target.c (update_current_target): Add INHERIT line for
11305 to_have_continuable_watchpoint.
11306 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11307 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11308 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11309 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11310
d1c76907
EZ
113112003-02-24 Elena Zannoni <ezannoni@redhat.com>
11312
11313 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11314 maintainership.
11315
2610b0bf
KW
113162003-02-24 Kris Warkentin <kewarken@qnx.com>
11317
f46169db
KW
11318 * solib.c (solib_open): Call target defined search function after
11319 failing with solib-search-path.
11320 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11321 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11322
9a3c34fe
KW
113232003-02-24 Kris Warkentin <kewarken@qnx.com>
11324
f46169db 11325 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11326
2417dd25
SC
113272003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11328
11329 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11330
b631436b
SC
113312003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11332
11333 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11334 (m68hc11_add_reggroups): New function.
11335 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11336 (m68hc11_gdbarch_init): Install the reggroups.
11337 (_initialize_m68hc11_tdep): Initialize them.
11338
0aa8c1e4
JW
113392003-02-21 James E Wilson <wilson@tuliptree.org>
11340
11341 * MAINTAINERS: Update my email address.
11342
50ceaba5
DC
113432003-02-21 David Carlton <carlton@math.stanford.edu>
11344
11345 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11346
4c2df51b
DJ
113472003-02-21 Daniel Jacobowitz <drow@mvista.com>
11348
11349 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11350 * symtab.h: Add opaque declarations of struct axs_value and
11351 struct agent_expr.
11352 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11353 (struct location_funcs): New type.
11354 (struct symbol): Add "loc" to aux_value.
11355 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11356 * dwarf2read.c: Include "dwarf2expr.h".
11357 (dwarf2_symbol_mark_computed): New function.
11358 (read_func_scope): Use it.
11359 (var_decode_location): New function.
11360 (new_symbol): Use it.
11361 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11362
11363 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11364 (dwarf2expr_h, dwarf2loc_h): New variables.
11365 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11366 (dwarf2expr.o, dwarf2loc.o): New rules.
11367 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11368 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11369 LOC_COMPUTED_ARG.
11370 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11371 * m2-exp.y (yylex): Likewise.
11372 * printcmd.c (address_info, print_frame_args): Likewise.
11373 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11374 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11375 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11376 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11377 * symtab.c (lookup_block_symbol): Likewise.
11378
5784d15e
AF
113792003-02-20 Adam Fedor <fedor@gnu.org>
11380
11381 * symtab.h: Remove objc_specific struct
11382 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11383 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11384 Have language_objc use cplus_specific struct.
11385
d4cad8db
TT
113862003-02-20 Tom Tromey <tromey@redhat.com>
11387
11388 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11389 TYPE_NAME, when printing a String value. PR java/1075.
11390
2f9a90b4
AF
113912003-02-20 Adam Fedor <fedor@gnu.org>
11392
d38074a8 11393 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11394 * objc-lang.c (find_methods): Make static.
2f9a90b4 11395
6f17862b
CF
113962003-02-20 Christopher Faylor <cgf@redhat.com>
11397
11398 * win32-nat.c (get_image_name): Check return value from
11399 ReadProcessMemory.
11400 (child_xfer_memory): Ditto.
11401
715d1656
AO
114022003-02-20 Alexandre Oliva <aoliva@redhat.com>
11403
11404 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11405 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11406 '${exec_prefix}' (in addition to the expansion thereof) as
11407 relocatable.
11408 * configure: Rebuilt.
11409
b1262a02
DC
114102003-02-20 David Carlton <carlton@math.stanford.edu>
11411
11412 * symtab.c (search_symbols): Revert the search_symbols part of my
11413 2002-12-23 patch. Add comment.
11414
7134143f
DJ
114152002-02-20 Daniel Jacobowitz <drow@mvista.com>
11416
11417 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11418 * dbxread.c (elfstab_build_psymtabs): Don't call
11419 install_minimal_symbols.
11420 (stabsect_build_psymtabs): Likewise.
11421 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11422 earlier.
11423 * somread.c (som_symfile_read): Call install_minimal_symbols
11424 and do_cleanups earlier.
11425 * nlmread.c (nlm_symfile_read): Likewise.
11426 * mdebugread.c (elfmdebug_build_psymtabs): Call
11427 install_minimal_symbols and make appropriate cleanups.
11428
cf466558
KB
114292003-02-20 Kevin Buettner <kevinb@redhat.com>
11430
11431 * solib.c (reload_shared_libraries): New function.
11432 (_initialize_solib): Add callbacks for ``set solib-search-path''
11433 and ``set solib-absolute-prefix''.
11434
de5ad195
DC
114352003-02-20 David Carlton <carlton@math.stanford.edu>
11436
11437 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11438 expand comment.
11439 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11440 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11441 * ada-typeprint.c (ada_typedef_print): Ditto.
11442 * ax-gdb.c (gen_var_ref): Ditto.
11443 * breakpoint.c (print_one_breakpoint): Ditto.
11444 * buildsym.c (finish_block): Ditto.
11445 * c-valprint.c (c_val_print): Ditto.
11446 * expprint.c (print_subexp): Ditto.
11447 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11448 * infcmd.c (jump_command): Ditto.
11449 * linespec.c (decode_line_2, decode_compound): Ditto.
11450 * maint.c (maintenance_translate_address): Ditto.
11451 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11452 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11453 Ditto.
8ffd9b1b
AJ
11454 * p-valprint.c (pascal_val_print): Ditto.
11455 * stabsread.c (define_symbol): Ditto.
de5ad195 11456 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11457 (print_frame_arg_vars, return_command): Ditto.
11458 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11459 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11460 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11461 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11462 (rbreak_command): Ditto.
11463 * tracepoint.c (tracepoints_info): Ditto.
11464 * typeprint.c (typedef_print): Ditto.
11465 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11466 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11467 * ada-typeprint.c: Update Copyright.
11468 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11469 * tracepoint.c, cli/cli-cmds.c: Ditto.
11470
f796e4be
KB
114712003-02-20 Kevin Buettner <kevinb@redhat.com>
11472
11473 * frame.c (generic_unwind_get_saved_register): Make non-static.
11474 * frame.h (generic_unwind_get_saved_register): Declare.
11475 * mips-tdep.c (read_next_frame_reg): Fetch register from
11476 current regcache when frame is NULL.
11477 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11478 that must be NULL.
11479 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11480 instead of frame_register_unwind().
11481
836cc9f4
AC
114822003-02-20 Andrew Cagney <ac131313@redhat.com>
11483
11484 * remote-sim.c (gdbsim_insert_breakpoint)
11485 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11486 code.
11487
501eef12
AC
114882003-02-20 Andrew Cagney <ac131313@redhat.com>
11489
11490 * remote.c (_initialize_remote): Add commands "set/show remote
11491 hardware-watchpoint-limit" and "set/show remote
11492 hardware-breakpoint-limit".
11493 (remote_hw_watchpoint_limit): Initialize to -1.
11494 (remote_hw_breakpoint_limit): Ditto.
11495 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11496
1b6bc7e0
CF
114972003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11498
11499 * coff-pe-read.c: New file - support reading of minimal symbols from a
11500 portable executable using the export table.
11501 * coff-pe-read.h: New file.
11502 * coffread.c: Include coff-pe-read.h.
11503 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11504 debugging symbols found.
11505 * Makefile.in (SFILES): Add coff-pe-read.o.
11506 (coff_pe_read_h): Define.
11507 (COMMON_OBS): Add coff-pe-read.o.
11508 (coffread.o): Add coff_pe_read_h dependency.
11509 (coff-pe-read.o): New target.
11510
fe898f56
DC
115112003-02-19 David Carlton <carlton@math.stanford.edu>
11512
11513 * Makefile.in (SFILES): Add block.c.
11514 (block_h): New.
11515 (COMMON_OBS): Add block.o.
11516 (block.o): New.
11517 (x86-64-tdep.o): Add $(block_h).
11518 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11519 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11520 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11521 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11522 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11523 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11524 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11525 * value.h: Add opaque declaration for struct block.
11526 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11527 * ada-lang.h: Ditto.
11528 * x86-64-tdep.c: #include "block.h"
11529 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11530 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11531 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11532 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11533 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11534 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11535 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11536 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11537 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11538 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11539 * symtab.c (block_function): Ditto.
11540 (contained_in): Ditto.
11541 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11542 block.h. Add opaque declaration for struct block.
11543 * symtab.h: Move block_function and contained_in declarations to
11544 block.h. Add opaque declarations for struct block, struct
11545 blockvector.
11546 (struct block): Move to block.h.
11547 (struct blockvector): Ditto.
11548 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11549 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11550 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11551 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11552 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11553 Ditto.
11554 * block.c: New file.
11555 * block.h: New file.
11556
173345b5
TR
115572003-02-19 Theodore A. Roth <troth@openavr.org>
11558
11559 * avr-tdep.c (avr_extract_return_value): Remove function.
11560 (avr_store_return_value): Remove function.
11561 (avr_extract_struct_value_address): Remove function.
11562 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11563
338ef23d
AC
115642003-02-19 Andrew Cagney <ac131313@redhat.com>
11565
11566 * rs6000-tdep.c: Include "gdb_assert.h".
11567 (registers_e500): Add "acc" and "spefscr".
11568 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11569 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11570 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11571 really is "r0".
11572 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11573
5412f5f3
KS
115742003-02-18 Keith Seitz <keiths@redhat.com>
11575
11576 * Makefile.in: Add gdbtk-interps.c.
11577
881324eb
KB
115782003-02-18 Kevin Buettner <kevinb@redhat.com>
11579
11580 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11581 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11582
6a2f5abf
AC
115832003-02-18 Andrew Cagney <cagney@redhat.com>
11584
11585 * symtab.h (struct objfile): Add opaque declaration.
11586
54c7009d
EZ
115872003-02-18 Elena Zannoni <ezannoni@redhat.com>
11588
11589 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11590 * dbxread.c (process_one_symbol): Use last_function_start rather
11591 than function_start_offset to find the real beginning of the
11592 current function. The latter is just the text section offset on
11593 some systems, the former is always the real function start.
54c7009d 11594
7ee6d7eb
AC
115952003-02-17 Andrew Cagney <cagney@redhat.com>
11596
11597 * configure.in: Revert ${target} != ${host}.
11598
2846da9b
AC
115992003-02-17 Andrew Cagney <ac131313@redhat.com>
11600
11601 * configure.in (Makefile): Use the test ${target} != ${host},
11602 instead of the absence of the "nm.h" file, to determine of the
11603 configuration non-native.
11604 * configure: Regenerate.
8ffd9b1b 11605
3b27aeea
EZ
116062003-02-14 Elena Zannoni <ezannoni@redhat.com>
11607
fbe586ae 11608 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11609
11610 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11611 conditionalize tui_active test.
11612 (lookup_cmd_1): Ditto.
11613
b0b1c2c0
MK
116142003-02-14 Mark Kettenis <kettenis@gnu.org>
11615
11616 * configure.in: Add check for _etext.
11617 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11618 available.
11619 * config.in, configure: regenerated.
11620
8f05cde5
DJ
116212003-02-14 Daniel Jacobowitz <drow@mvista.com>
11622
11623 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11624
021e7609
AC
116252003-02-14 Andrew Cagney <ac131313@redhat.com>
11626
11627 * main.c (tui_version): Delete variable.
11628 (captured_main): When --tui, set interpreter_p to "tui" instead of
11629 enabling tui_version.
11630 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11631 tui_version.
11632 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11633 * cli/cli-cmds.c (disassemble_command): Ditto.
11634 * defs.h (tui_version): Delete declaration.
11635 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11636 (tui-interp.o): Add rules.
11637 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11638
e325dcec
CF
116392003-02-14 Christopher Faylor <cgf@redhat.com>
11640
36ffb041 11641 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11642 just-loaded dll.
11643
c4f90d87
JM
116442003-02-12 Jason Molenda (jmolenda@apple.com)
11645
fbe586ae
RH
11646 * symmisc.c (print_objfile_statistics): Include information about
11647 the number of psymtabs and symtabs in each object file.
c4f90d87 11648
e46e5ccd
KS
116492003-02-13 Keith R Seitz <keiths@redhat.com>
11650
11651 * main.h (struct captured_main_args): Add interpreter_p.
11652 * main.c (captured_main): Initialize interpreter_p from context.
11653 * gdb.c (main): Set interpreter_p argument.
11654 * Makefile.in (gdb.o): Add dependency for interps.h.
11655
fe97fe9c
AC
116562003-02-12 Andrew Cagney <ac131313@redhat.com>
11657
11658 * event-top.c (cli_command_loop): Delete declaration.
11659 (_initialize_event_loop): Delete function setting event_loop_hook.
11660 * event-top.h (cli_command_loop): Declare. Update copyright.
11661 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11662 * interps.c (current_interp_command_loop): When event_loop_p, call
11663 cli_command_loop.
11664
1cdac4ef
AC
116652003-02-12 Andrew Cagney <ac131313@redhat.com>
11666
11667 * interps.h (interp_command_loop_ftype): Change return type to
11668 void.
11669
48037ead
ML
116702003-02-12 Michal Ludvig <mludvig@suse.cz>
11671
11672 * x86-64-tdep.c (x86_64_extract_return_value)
11673 (x86_64_store_return_value): Use regcache instead of regbuf.
11674 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11675 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11676
033afc63
AC
116772003-02-11 Andrew Cagney <ac131313@redhat.com>
11678
11679 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11680 * aclocal.m4: Regenerate.
11681 * configure: Regenerate.
11682
11683 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11684 TCL_LD_SEARCH_FLAGS.
11685
40d02bca
ML
116862003-02-10 Michal Ludvig <mludvig@suse.cz>
11687
11688 * dwarf2cfi.c: Reindented.
11689
11308a41
AC
116902003-02-09 Andrew Cagney <ac131313@redhat.com>
11691
11692 * interps.c (clear_interpreter_hooks): Convert function definition
11693 to ISO C.
11694
e1c1c0f6
DC
116952003-02-07 David Carlton <carlton@math.stanford.edu>
11696
11697 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11698
ab5d3da6
KB
116992003-02-07 Kevin Buettner <kevinb@redhat.com>
11700
11701 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11702 (struct type): ...to here.
11703 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11704 field.
11705 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11706 (replace_type): Set length on all type variants for a given type.
11707
b8a92b82
AC
117082003-02-07 Andrew Cagney <ac131313@redhat.com>
11709
11710 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11711 <sys/stat.h>.
11712 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11713
5cb316ef
AC
117142003-02-06 Andrew Cagney <ac131313@redhat.com>
11715
2555fe1a
AC
11716 * Makefile.in (symm-nat.o): Update dependencies.
11717 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11718 (lynx-nat.o, ia64-linux-nat.): Ditto.
11719 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11720 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11721 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11722
44270758
AC
11723 * Makefile.in (inflow_h): Define.
11724 (procfs.o, inflow.o, procfs.o): Update dependencies.
11725 * inftarg.c (child_stop): Delete extern declaration of
11726 inferior_process_group. Include "inflow.h".
11727 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11728 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11729 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11730 (our_process_group, inferior_process_group): Extern declarations.
11731
df8f7274
AC
11732 * procfs.c: Include "gdb_assert.h".
11733
5cb316ef
AC
11734 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11735 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11736 * jv-typeprint.c (java_type_print_base): Ditto.
11737 * typeprint.c (typedef_print): Eliminate STREQ.
11738 * cli/cli-script.c (define_command, define_command): Ditto.
11739 * main.c (captured_main): Ditto.
11740 * values.c (lookup_internalvar): Ditto.
11741 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11742 within `if' conditional.
11743 * linespec.c (decode_line_2): Ditto.
11744 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11745 (bfd_openw_with_cleanup): Ditto.
11746
2a28ccea
MK
117472003-02-07 Mark Kettenis <kettenis@gnu.org>
11748
11749 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11750 legacy_extract_return_value and store_return_value to
11751 legacy_return_value.
11752
786b8124
CF
117532003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11754
11755 * win32-nat.c (get_relocated_section_addrs): New function. Find
11756 section load addresses for symbol handling in relocated DLLs.
11757 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11758
b871e4ec
FF
117592003-02-05 Fred Fish <fnf@intrinsity.com>
11760
11761 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11762 '=' and '!='.
11763 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11764 with '&' and '=='.
11765 (angel_RDI_info): Ditto.
11766 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11767 with '&' and '!='.
11768 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11769
4389a95a 117702003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11771 Keith Seitz <keiths@redhat.com>
11772 Elena Zannoni <ezannoni@redhat.com>
11773 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11774
11775 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11776 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11777 (SUBDIR_MI_OBS): Add "mi-interp.o".
11778 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11779 (SFILES): Add "interps.c".
11780 (COMMON_OBS): Add "interps.o".
11781 (interps_h, mi_main_h): Define.
11782 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11783 (mi-main.o, main.o, event-top.o): Update dependencies.
11784 * cli/cli-interp.c: New file.
11785 * interps.h, interps.c: New files.
11786 * top.c: (gdb_init): Don't install the default interpreter, handed
11787 by captured_main.
11788 * main.c: Include "interps.h".
11789 (interpreter_p): Note that it should malloc'ed.
11790 (captured_command_loop): Call current_interp_command_loop.
11791 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11792 xfree and xstrdup when updating interpreter_p. Install the
11793 default interpreter. Add hack to stop mi1's copyright notice
11794 being encoded.
11795 * event-top.h (gdb_setup_readline): Declare.
11796 (gdb_disable_readline): Declare.
11797 * event-top.c: Include "interps.h".
11798 (display_gdb_prompt): Call current_interp_display_prompt_p.
11799 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11800 gdb_stdlog, and gdb_stdtarg.
11801 (_initialize_event_loop): Don't call gdb_setup_readline.
11802 * cli-out.c (cli_out_set_stream): New function.
11803 * cli-out.h (cli_out_set_stream): Declare.
11804
ff3b5810
MK
118052003-02-06 Mark Kettenis <kettenis@gnu.org>
11806
11807 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11808 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11809 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11810 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11811 config/i386/i386v42mp.mt: Removed.
11812
5b729aa5
MK
118132003-02-05 Mark Kettenis <kettenis@gnu.org>
11814
11815 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11816 GDB_OSABI_SOLARIS.
11817
8cc15142
MC
118182003-02-05 Michael Chastain <mec@shout.net>
11819
11820 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11821 2.12.1 and earlier versions.
11822
5aa5d4b9
AC
118232003-02-05 Andrew Cagney <ac131313@redhat.com>
11824
11825 Remove orphaned hosts, targets and files.
11826 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11827 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11828 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11829 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11830 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11831 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11832 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11833 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11834 * config/sparc/tm-sp64sim.h: Delete.
11835 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11836 hosts.
11837 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11838 mips*-dec-mach3* targets.
11839
b68767c1
MC
118402003-02-04 Michael Chastain <mec@shout.net>
11841
11842 * NEWS: Fix typo: sepcifying -> specifying.
11843
5ae7ca1d
MC
118442003-02-04 Michael Chastain <mec@shout.net>
11845
11846 * dwarfread.c: Add documentation on the state of dwarf-1,
11847 looking towards obsoletion.
11848
d08a4280
MC
118492003-02-03 Michael Chastain <mec@shout.net>
11850
11851 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11852 gdb/testsuite/gdb.c++/pr-1023.exp.
11853
e9be73e4
AC
118542003-02-04 Andrew Cagney <ac131313@redhat.com>
11855
11856 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11857 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11858
11859 * utils.c (init_page_info): Delete reference to MPW in comments.
11860 * main.c (captured_main): Delete #ifdef MPW.
11861
05d57f6f
AC
118622003-02-04 Andrew Cagney <ac131313@redhat.com>
11863
8ffd9b1b 11864 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11865 * monitor.c (monitor_expect): Obsolete reference to m32r.
11866 * configure.tgt: Mark m32r-*-elf* as obsolete.
11867 * MAINTAINERS: Mark m32k as obsolete.
11868 * m32r-rom.c: Obsolete file.
11869 * config/m32r/m32r.mt: Obsolete file.
11870 * config/m32r/tm-m32r.h: Obsolete file.
11871 * m32r-stub.c: Obsolete file.
11872 * m32r-tdep.c: Obsolete file.
11873
8b0e5691
AC
118742003-02-04 Andrew Cagney <ac131313@redhat.com>
11875
11876 * NEWS: Mention that the z8k-zilog-none is obsolete.
11877 * MAINTAINERS: Mark z8k as obsolete.
11878 * configure.tgt: Obsolete the z8k-*-coff* target.
11879 * config/z8k/z8k.mt: Obsolete file.
11880 * config/z8k/tm-z8k.h: Obsolete file.
11881 * z8k-tdep.c: Obsolete file.
11882
67f16606
AC
118832003-02-04 Andrew Cagney <ac131313@redhat.com>
11884
11885 * NEWS: Mention that the mn10200-elf is obsolete.
11886 * configure.tgt: Obsolete mn10200-*-* target.
11887 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11888 mention that the mn10200 is obsolete.
11889 * breakpoint.h: Ditto.
11890 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11891 * config/mn10200/mn10200.mt: Obsolete file.
11892 * config/mn10200/tm-mn10200.h: Obsolete file.
11893 * mn10200-tdep.c: Obsolete file.
11894
fd2299bd
AC
118952003-02-04 Andrew Cagney <ac131313@redhat.com>
11896
11897 * MAINTAINERS: Mark h8500 as obsolete.
11898 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11899 * findvar.c (value_from_register): Ditto.
11900 * h8500-tdep.c: Mark file as obsolete.
11901 * config/h8500/h8500.mt: Ditto.
11902 * config/h8500/tm-h8500.h: Ditto.
11903 * NEWS: Mention that h8500 is obsolete.
11904
eb9a305d
DC
119052003-02-04 David Carlton <carlton@math.stanford.edu>
11906
11907 * objfiles.c (allocate_objfile): Always set name. Add comment at
11908 start of function.
11909 * jv-lang.c (get_dynamics_objfile): Add comment.
11910
406fc7fb
DC
119112003-02-04 David Carlton <carlton@math.stanford.edu>
11912
11913 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11914 * printcmd.c (build_address_symbolic): Replace uses of
11915 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11916 SYMBOL_NAME, and asm_demangle.
11917 Update copyright.
11918
93d91629
DC
119192003-02-04 David Carlton <carlton@math.stanford.edu>
11920
11921 * linespec.c (decode_compound): Extract code into
11922 lookup_prefix_sym.
11923 (lookup_prefix_sym): New function.
11924
1c5cb38e
DC
119252003-02-04 David Carlton <carlton@math.stanford.edu>
11926
11927 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11928 FLOAT_COERCION_BADNESS.
11929 * gdbtypes.c (rank_one_type): Replace all uses of
11930 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11931
0cf824c9
JB
119322003-02-04 Jim Blandy <jimb@redhat.com>
11933
11934 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11935 section, let dwarf_macinfo_section point to it, not
11936 dwarf_loc_section.
11937
a2d356b0
DJ
119382003-02-04 Daniel Jacobowitz <drow@mvista.com>
11939
11940 Pointed out by Anton Blanchard <anton@samba.org>.
11941 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11942 (ppc_linux_at_sigtramp_return_path): Use it.
11943
2de7ced7
DJ
119442003-02-04 Daniel Jacobowitz <drow@mvista.com>
11945
11946 * defs.h (streq): Add prototype.
11947 * utils.c (streq): New function.
11948
11949 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11950 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11951 * mdebugread.c (new_symbol): Likewise.
11952 * stabsread.c (define_symbol): Likewise.
11953 * coffread.c (process_coff_symbol): Likewise.
11954 * dwarfread.c (new_symbol): Likewise.
11955
11956 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11957 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11958 here.
11959 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11960 SYMBOL_INIT_DEMANGLED_NAME.
11961 * objfiles.c: Include "hashtab.h".
11962 (allocate_objfile): Call htab_set_functions_ex for the
11963 demangled_names_hash.
11964 (free_objfile): Call htab_delete for the demangled_names_hash.
11965 * objfiles.h (struct htab): Add declaration.
11966 (struct objfile): Add demangled_names_hash.
11967 * symfile.c: Include "hashtab.h".
11968 (reread_symbols): Call htab_delete for the demangled_names_hash.
11969 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11970 SYMBOL_NAME in the bcache.
11971 * symtab.c: Include "hashtab.h". Update comments.
11972 (create_demangled_names_hash, symbol_set_names): New functions.
11973 (symbol_find_demangled_name): New function, broken out from
11974 symbol_init_demangled_names.
11975 (symbol_init_demangled_names): Use it.
11976 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11977 (SYMBOL_SET_NAMES): New macro.
11978 (symbol_set_names): Add prototype.
11979
15831452
JB
119802003-02-03 Jim Blandy <jimb@redhat.com>
11981
11982 Use a single, consistent representation for an empty minimal
11983 symbol table in an objfile.
11984 * objfiles.c (terminate_minimal_symbol_table): New function.
11985 (allocate_objfile): Call it.
11986 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11987 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11988 non-NULL.
15831452
JB
11989 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11990 objfile has minimal symbols, compare minimal_symbol_count to zero,
11991 instead of comparing msymbols with NULL.
11992 * objfiles.c (have_minimal_symbols): Same.
11993 * solib-sunos.c (solib_add_common_symbols): Call
11994 terminate_minimal_symbol_table.
11995 * symfile.c (reread_symbols): Same.
8ffd9b1b 11996
ffc65945
KB
119972003-02-03 Kevin Buettner <kevinb@redhat.com>
11998
11999 * s390-tdep.c (s390_address_class_type_flags)
12000 (s390_address_class_type_flags_to_name)
12001 (s390_address_class_name_to_type_flags): New functions.
12002 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12003 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12004
f211c6d4
MS
120052003-02-03 Michael Snyder <msnyder@redhat.com>
12006
12007 * arm-tdep.c: Fix spell-o in comment.
12008
659b0389
ML
120092003-02-03 Michal Ludvig <mludvig@suse.cz>
12010
12011 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12012 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12013 error messages to contain BFD filename.
659b0389 12014
3b31d625
EZ
120152003-02-02 Elena Zannoni <ezannoni@redhat.com>
12016
997b089a 12017 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12018 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12019 (do_mixed_source_and_assembly): Use
12020 make_cleanup_ui_out_tuple_begin_end and
12021 make_cleanup_ui_out_tuple_begin_end.
12022 (do_mixed_source_and_assembly): Ditto.
12023 * thread.c (do_captured_list_thread_ids): Ditto.
12024 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12025 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12026 ui_out_tuple_end): Delete prototypes.
12027 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12028 ui_out_list_end, ui_out_tuple_end): Delete.
12029
12030 From Kevin Buettner <kevinb@redhat.com>:
12031 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12032 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12033 (do_cleanup_table_end): New functions.
12034 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12035 Use cleanups to invoke_ui_out_tuple_end().
12036 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12037 * cli/cli-setshow.c (cmd_show_list): Use
12038 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12039
5b181d62
AC
120402003-02-02 Andrew Cagney <ac131313@redhat.com>
12041
12042 * frame.c (frame_unwind_register): New function.
12043 (frame_unwind_unsigned_register): Use.
12044 (frame_unwind_signed_register): Use.
12045 (frame_read_register): New function.
12046 * frame.h (frame_unwind_register): Declare.
12047 (frame_read_register): Declare.
12048
12049 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12050 and frame_unwind_register instead of read_memory, write_register
12051 and deprecated_write_register_bytes.
12052
5f601589
AC
120532003-02-02 Andrew Cagney <ac131313@redhat.com>
12054
12055 * frame.h: Note that namelen can be negative.
12056 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12057 NAME's length.
12058
12059 * NEWS: Mention that the d10v's `regs' command is deprecated.
12060 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12061 (d10v_print_registers_info): New function.
12062 (show_regs): Call d10v_print_registers_info.
12063 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12064
6a3fe0a4
MK
120652003-02-02 Mark Kettenis <kettenis@gnu.org>
12066
12067 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12068 lost in the previous patch.
12069
075559bc
AC
120702003-02-01 Andrew Cagney <ac131313@redhat.com>
12071
12072 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12073 * stack.c (print_frame_info_base): Output complete FRAME tuple
12074 for synthesized frames.
075559bc 12075
6789195b
AC
120762003-02-02 Andrew Cagney <ac131313@redhat.com>
12077
12078 * mips-nat.c (zerobuf): Delete.
12079 (fetch_inferior_registers): Alloc local zerobuf.
12080 (fetch_core_registers): Alloc local zerobuf.
12081 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12082 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12083 * thread-db.c (thread_db_store_registers): Ditto.
12084 * sh-tdep.c (sh_do_register): Ditto.
12085 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12086 * remote-sim.c (gdbsim_store_register): Ditto.
12087 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12088 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12089 * monitor.c (monitor_supply_register): Ditto.
12090 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12091 * mips-nat.c (fetch_inferior_registers): Ditto.
12092 * m68klinux-nat.c (fetch_register): Ditto.
12093 * lynx-nat.c (fetch_inferior_registers): Ditto.
12094 (fetch_inferior_registers): Ditto.
12095 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12096 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12097 (hpux_thread_store_registers): Ditto.
12098 * hppah-nat.c (fetch_register): Ditto.
12099 * hppab-nat.c (fetch_register): Ditto.
12100 * hppa-tdep.c (pa_register_look_aside): Ditto.
12101 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12102 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12103
e669114a
AC
121042003-02-01 Andrew Cagney <ac131313@redhat.com>
12105
12106 * gdbarch.sh: Explictly specify all method levels. When a
12107 variable with an empty level, provide a non-multi-arch default.
12108 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12109 * gdbarch.h: Re-generate.
12110 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12111 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12112
9a043c1d
AC
121132003-02-01 Andrew Cagney <ac131313@redhat.com>
12114
12115 * defs.h (host_pointer_to_address): Delete declaration.
12116 (address_to_host_pointer): Delete declaration.
12117 * utils.c (host_pointer_to_address): Delete function.
12118 (address_to_host_pointer): Delete function.
12119 * procfs.c (procfs_address_to_host_pointer): New function.
12120 * procfs.c (proc_set_watchpoint): Use.
12121 (procfs_can_use_hw_breakpoint): Update comments.
12122 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12123 (som_solib_add): Use.
12124 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12125 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12126
7ca9f392
AC
121272003-02-01 Andrew Cagney <ac131313@redhat.com>
12128
94bbfd30
AC
12129 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12130 strlen d_name.
12131
7ca9f392
AC
12132 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12133 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12134 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12135 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12136 (define_symbol): Update.
12137 * symfile.c (generic_load): Remove references to nindy.
12138 * symtab.c: Remove references to nindy.
12139
31a85ea2
AC
121402003-02-01 Andrew Cagney <ac131313@redhat.com>
12141
12142 * infcmd.c (print_float_info): Delete code conditional on
12143 FLOAT_INFO.
12144 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12145 * config/m68k/nm-apollo68b.h: Ditto.
12146 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12147 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12148 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12149
f6e85fc8
MK
121502003-02-01 Mark Kettenis <kettenis@gnu.org>
12151
6015b6a0
MK
12152 * config/i386/tm-i386os9k.h: Removed.
12153
f7a30bdf
MK
12154 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12155 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12156 they're identical to i[3456]86-*-sysv* now.
12157 * config/i386/i386v32.mh: Removed.
12158 * config/i386/xm-i386v32.h: Removed.
12159 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12160
28d52111
MK
12161 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12162
4d3f6bce
MK
12163 * config/i386/i386dgux.mh: Removed.
12164 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12165
f6e85fc8
MK
12166 * configure.in: Fix typo.
12167 * configure: Regenerated.
12168
53955967
DC
121692003-01-31 David Carlton <carlton@math.stanford.edu>
12170
12171 * dwarf2read.c (dwarf2_locate_sections): Set
12172 dwarf_ranges_section.
12173
b1364885
AC
121742003-01-31 Andrew Cagney <ac131313@redhat.com>
12175
8dbb1c65
AC
12176 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12177 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12178
8731e58e
AC
12179 * utils.c: Re-indent.
12180
b1364885
AC
12181 * config/djgpp/fnchange.lst: Delete nindy files.
12182 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12183 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12184 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12185 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12186 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12187 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12188 * Makefile.in (init.c): Remove nindy references.
12189 (saber_gdb): Delete rule.
12190 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12191 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12192 and a68v-nat.c.
12193 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12194 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12195 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12196 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12197 nindy-share/stop.h.
12198 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12199 * saber.suppress: Delete file.
12200
086df311
DJ
122012003-01-31 Daniel Jacobowitz <drow@mvista.com>
12202
12203 * dbxread.c (stabs_data): New static variable.
12204 (fill_symbuf): Support an in-memory buffer for stabs data.
12205 (stabs_seek): New function.
12206 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12207 (read_ofile_symtab): Use stabs_seek.
12208 (elfstab_build_psymtabs): Take an asection* instead of
12209 an offset and size. Relocate the stabs data if necessary.
12210 Save the section* for dbx_psymtab_to_symtab.
12211 * dwarf2read.c: Add section variables for each debug section.
12212 (dwarf2_locate_sections): Fill them in.
12213 (dwarf2_read_section): Take an asection* argument.
12214 Relocate the section contents if necessary.
12215 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12216 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12217 it to dwarf2_read_section.
12218 (dwarf2_build_frame_info): Update callers.
12219 * elfread.c (elf_symfile_read): Update call to
12220 elfstab_build_psymtabs.
12221 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12222 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12223 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12224 * symfile.c (symfile_dummy_outputs): New function.
12225 (symfile_relocate_debug_section): New function.
12226 * symfile.h (symfile_relocate_debug_section): Add prototype.
12227
87d1b352
RH
122282003-01-31 Richard Henderson <rth@redhat.com>
12229
12230 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12231 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12232 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12233 * alpha-tdep.c (alpha_register_name): Add "unique".
12234 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12235 (ALPHA_UNIQUE_REGNUM): New.
12236 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12237
c48861fb
AC
122382003-01-31 Andrew Cagney <ac131313@redhat.com>
12239
12240 * README: Remove reference to Ericsson 1800 monitor.
12241 * Makefile.in (remote-es.o): Delete rule.
12242 (ALLDEPFILES): Delete remote-es.c.
12243 * remote-es.c: Delete file.
12244 * config/m68k/es1800.mt: Delete file.
12245 * config/djgpp/fnchange.lst: Update.
12246 * configure.tgt: Delete m68*-ericsson-* target.
12247
d764a824
AF
122482003-01-31 Adam Fedor <fedor@gnu.org>
12249
12250 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12251 Remove duplicate/shadowing variable of same name.
12252
fe36c4f4
JB
122532003-01-30 Jim Blandy <jimb@redhat.com>
12254
12255 * symfile.c (find_separate_debug_file): Assert that the objfile's
12256 directory name we compute ends with a slash, and then assume that
12257 that's so everywhere we use it.
12258
cb741690
DJ
122592003-01-30 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * valops.c (value_assign): Flush frame cache after stores to memory
12262 also.
12263
96ee5227
AC
122642003-01-30 Andrew Cagney <ac131313@redhat.com>
12265
12266 * Makefile.in (mon960-rom.o): Delete rule.
12267 * mon960-rom.c: Delete file.
12268
7f6104a9
AC
122692003-01-30 Andrew Cagney <ac131313@redhat.com>
12270
12271 * d10v-tdep.c: Include "frame-unwind.h".
12272 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12273 list.
12274 (next_addr, uses_frame): Delete.
12275 (struct d10v_unwind_cache): Define.
12276 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12277 Use info instead of next_addr and uses_frame globals.
12278 (d10v_frame_init_saved_regs): Delete function.
12279 (d10v_init_extra_frame_info): Delete function.
12280 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12281 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12282 init_frame_pc or frame_saved_pc.
12283 (d10v_pop_frame): Delete function.
12284 (do_d10v_pop_frame): Delete function.
12285 (d10v_frame_chain): Delete function.
12286 (d10v_frame_chain_valid): Delete function.
12287 (d10v_frame_pc_unwind): New function.
12288 (d10v_frame_id_unwind): New function.
12289 (saved_regs_unwinder): New function.
12290 (d10v_frame_register_unwind): New function.
12291 (d10v_frame_pop): New function.
12292 (d10v_frame_unwind): New variable.
12293 (d10v_frame_p): New function.
12294 (d10v_frame_saved_pc): Delete function.
12295 * Makefile.in (d10v-tdep.o): Update dependencies.
12296
cad2e848
JB
122972003-01-30 J. Brobecker <brobecker@gnat.com>
12298
12299 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12300 causing some regressions due to a change in the default value
12301 for this macro.
12302
af34e669
DJ
123032003-01-29 Richard Henderson <rth@redhat.com>
12304 Elena Zannoni <ezannoni@redhat.com>
12305 Daniel Jacobowitz <drow@mvista.com>
12306
12307 Fix PR gdb/961.
8ffd9b1b 12308 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12309 variables.
12310 (RANGES_SECTION): New.
12311 (dwarf_ranges_buffer): New variable.
12312 (struct comp_unit_head): Add member "die".
12313 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12314 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12315 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12316 (dwarf2_locate_sections): Likewise.
12317 (dwarf2_build_psymtabs): Read .debug_ranges.
12318 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12319 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12320 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12321 Look for DW_AT_ranges and return the bounding box.
12322
baa93fa6
CF
123232003-01-29 Brian Ford <ford@vss.fsi.com>
12324
12325 * win32-nat.c (cygwin_pid): Removed as unused.
12326 (child_attach): Try fall back to Cygwin pid.
12327
c63f977f
JB
123282003-01-29 Jim Blandy <jimb@redhat.com>
12329
12330 * objfiles.h (struct objfile): Doc fix.
12331
d62d1979
AC
123322003-01-29 Andrew Cagney <ac131313@redhat.com>
12333
12334 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12335 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12336 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12337 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12338 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12339 (FRAME_SAVED_PC): Change to a function with predicate.
12340 * gdbarch.h, gdbarch.c: Re-generate.
12341
1ae18a04
AC
123422003-01-28 Andrew Cagney <ac131313@redhat.com>
12343
52287340
AC
12344 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12345
1ae18a04
AC
12346 * complaints.c (complain): Delete function.
12347 * complaints.h (struct deprecated_complaint): Delete definition.
12348 (complain): Delete declaration.
12349
f2c16bd6
KB
123502003-01-28 Kevin Buettner <kevinb@redhat.com>
12351
12352 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12353 dummy frames.
12354
a94dd1fd
AC
123552003-01-27 Andrew Cagney <ac131313@redhat.com>
12356
12357 * sentinel-frame.h, sentinel-frame.c: New files.
12358 * Makefile.in (frame.o): Update dependencies.
12359 (SFILES): Add sentinel-frame.c.
12360 (sentinel_frame_h): Define.
12361 (COMMON_OBS): Add sentinel-frame.o.
12362 (sentinel-frame.o): Specify dependencies.
12363 * frame.c: Include "sentinel-frame.h".
12364 (frame_register_unwind): Rewrite assuming that there is always a a
12365 ->next frame.
12366 (frame_register, generic_unwind_get_saved_register): Ditto.
12367 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12368 (create_sentinel_frame, unwind_to_current_frame): New functions.
12369 (get_current_frame): Rewrite using create_sentinel_frame and
12370 unwind_to_current_frame. When possible, always create a frame.
12371 (create_new_frame): Set next to the sentinel frame.
12372 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12373 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12374 ID cache when necessary.
12375 (frame_saved_regs_id_unwind): Use frame_relative_level.
12376 (deprecated_generic_get_saved_register): Use frame_relative_level,
12377 get_frame_saved_regs, get_frame_pc, get_frame_base and
12378 get_next_frame.
12379 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12380 frame_register.
12381
5378adc4
DJ
123822003-01-27 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12385
51ee2ddc
DJ
123862003-01-27 Daniel Jacobowitz <drow@mvista.com>
12387
12388 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12389 (maintenance_set_profile_cmd): Use error () instead of warning ().
12390
d9feb4e7
DJ
123912003-01-27 Daniel Jacobowitz <drow@mvista.com>
12392
12393 * configure.in: Check that -pg works if using --enable-profiling.
12394 Check for monstartup and _mcleanup regardless of --enable-profiling.
12395 * maint.c: Check for monstartup and _mcleanup before using them.
12396 * config.in: Regenerated.
12397 * configure: Regenerated.
12398
2d188dd3
NC
123992003-01-24 Nick Clifton <nickc@redhat.com>
12400
12401 * Add sh2e support:
12402
12403 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12404
12405 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12406 (sh2e_show_regs): New.
12407 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12408 * config/sh/tm-sh.h: Added sh2e to comments.
12409
cb3c37b2
JB
124102003-01-23 Jim Blandy <jimb@redhat.com>
12411
12412 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12413 symbols found)" message here; we haven't checked for a separate
12414 debug info file yet, so we don't know yet.
12415 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12416 we've looked everywhere. Also, there's no need to print a special
12417 message when we're loading the separate debug info file: the one
12418 symbol_file_add prints is fine.
12419
5b5d99cf
JB
124202003-01-23 Alexander Larsson <alexl@redhat.com>
12421 Jim Blandy <jimb@redhat.com>
12422
12423 Add support for executables whose debug info has been separated
12424 out into a separate file, leaving only a link behind.
12425 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12426 and separate_debug_objfile_backlink.
12427 (put_objfile_before): New declaration.
12428 * symfile.c: #include "filenames.h".
12429 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12430 debug info in a separate file, read that, too. Save the addrs
12431 argument, so we can use it again to read the separated debug info;
12432 syms_from_objfile modifies the table we pass it.
12433 (reread_symbols): After re-reading an objfile, call
12434 reread_separate_symbols to refresh its separate debug info
12435 objfile, if it has one.
12436 (reread_separate_symbols, find_separate_debug_file,
12437 get_debug_link_info, separate_debug_file_exists): New functions.
12438 (debug_file_directory): New global var.
12439 (_initialize_symfile): Initialize debug_file_directory, and
12440 provide the new `set debug-file-directory' command to let the user
12441 change it.
12442 * objfiles.c (free_objfile): If this objfile has its debug info in
12443 a separate objfile, free that one too. If this is itself a
12444 separate debug info objfile, clear our parent's backlink.
12445 (put_objfile_before): New function.
12446 * utils.c (gnu_debuglink_crc32): New function.
12447 * defs.h (gnu_debuglink_crc32): New declaration.
12448 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12449 * configure.in: Handle --with-separate-debug-dir config option.
12450 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12451 * acconfig.h (DEBUGDIR): New macro.
12452 * configure, aclocal.m4, config.in: Regenerated.
12453
7e8580c1
JB
124542003-01-22 Jim Blandy <jimb@redhat.com>
12455
7904e09f
JB
12456 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12457 like the old symbol_file_add, but taking new arguments: you can
12458 now pass in either a `struct section_addr_info' list to say where
12459 each section is loaded, or a `struct section_offsets' table. Pass
12460 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12461 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12462 with the appropriate quiescent values for the new arguments.
12463
7e8580c1
JB
12464 * symfile.c: #include "gdb_assert.h".
12465 (syms_from_objfile): Add the ability to pass in a section offset
12466 table directly, as an alternative to the section_addr_info table.
12467 Document arguments better.
12468 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12469 * symfile.h (syms_from_objfile): Update declaration.
12470 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12471 syms_from_objfile.
12472 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12473
d28f9cdf
DJ
124742003-01-22 Daniel Jacobowitz <drow@mvista.com>
12475
12476 Original patch by Tom Tromey <tromey@cygnus.com> and
12477 Jason Molenda <jmolenda@apple.com>.
12478 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12479 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12480 * NEWS: Mention profiling.
12481 * configure.in (--enable-gdbtk): Fix typo.
12482 (--enable-profiling): New. Set PROFILE_CFLAGS.
12483 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12484 Fill in function.
12485 (profiling_state): New variable.
12486 (mcleanup_wrapper): New function.
12487 (_initialize_maint): Remove NOTYET, fix call to
12488 add_setshow_boolean_cmd for "maint set profile".
12489 * configure: Regenerated.
12490
df21e465
MH
124912003-01-21 Martin M. Hunt <hunt@redhat.com>
12492
12493 * Makefile.in (install-gdbtk): Install PNG images too.
12494
73c1f219
AC
124952003-01-21 Andrew Cagney <ac131313@redhat.com>
12496
12497 * exec.c (text_start): Delete global variable.
12498 (exec_file_attach): Make text_start local to the function.
12499 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12500 * valops.c (hand_function_call): Delete code that handles
12501 BEFORE_TEXT_END and AFTER_TEXT_END.
12502 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12503 of CALL_DUMMY_LOCATION.
12504 * gdbarch.c: Regenerate.
12505 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12506 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12507 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12508 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12509 (text_end): Delete extern declaration.
12510
eb4f72c5
AC
125112003-01-21 Andrew Cagney <ac131313@redhat.com>
12512
12513 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12514 * blockframe.c (backtrace_below_main): Move to "frame.c".
12515 (frame_chain_valid): Delete check for backtrace_below_main.
12516 (_initialize_blockframe): Delete initialization, move ``set
12517 backtrace-below-main'' command to "frame.c".
12518 (do_flush_frames_sfunc): Delete function.
12519 * frame.c: Include "command.h" and "gdbcmd.h".
12520 (frame_type_from_pc): New function.
12521 (create_new_frame): Use frame_type_from_pc.
12522 (legacy_get_prev_frame): New function.
12523 (get_prev_frame): Rewrite. When an old style frame, call
12524 legacy_get_prev_frame. Otherwize, unwind the PC first.
12525 (_initialize_frame): Add ``set backtrace-below-main'' command.
12526 * Makefile.in (frame.o): Update dependencies.
12527
778ce8cc
AC
125282003-01-19 Andrew Cagney <ac131313@redhat.com>
12529
12530 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12531 DEPRECATED_REGISTERS_INFO.
12532
01c193c8
AC
125332003-01-19 Andrew Cagney <ac131313@redhat.com>
12534
12535 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12536 Maintainers'. Update `Various Maintainers'.
12537
dedc2a2b
AC
125382003-01-19 Andrew Cagney <ac131313@redhat.com>
12539
12540 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12541 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12542 Suppress actual parameters when `-'.
12543 * gdbarch.h, gdbarch.c: Regenerate.
12544
b7261c70
AC
125452003-01-19 Andrew Cagney <ac131313@redhat.com>
12546
12547 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12548 code handling dummy frames.
12549
dbe9fe58
AC
125502003-01-19 Andrew Cagney <ac131313@redhat.com>
12551
12552 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12553 (struct frame_unwind): Add field pop.
12554 * frame.h (frame_pop): Declare.
12555 * frame.c (frame_saved_regs_pop): New function.
12556 (trad_frame_unwinder): Add frame_saved_regs_pop.
12557 (frame_pop): New function.
12558 * dummy-frame.c (dummy_frame_pop): New function.
12559 (discard_innermost_dummy): New function.
12560 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12561 (dummy_frame_unwind): Add dummy_frame_pop.
12562 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12563 * valops.c (hand_function_call): Ditto.
12564 * stack.c (return_command): Ditto.
12565
570b8f7c
AC
125662003-01-18 Andrew Cagney <ac131313@redhat.com>
12567
12568 * cris-tdep.c: Fix function declaration indentation.
12569 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12570 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12571 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12572 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12573 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12574 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12575
125762003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12577
12578 * README (Unpacking and Installation -- quick overview):
12579 Warn against ".../gdb-5.3/gdb/configure".
12580
494cca16
AC
125812003-01-18 Andrew Cagney <ac131313@redhat.com>
12582
12583 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12584 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12585 (struct frame_unwind): Declare opaque.
12586 (dummy_frame_p): Declare function.
12587 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12588 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12589 * dummy-frame.c: Include "frame-unwind.h".
12590 (dummy_frame_p): New function.
12591 (dummy_frame_unwind): New variable.
12592 * frame.c: Include "frame-unwind.h".
12593 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12594 to use the new unwind field.
12595 (set_unwind_by_pc): Delete function.
12596 (create_new_frame, get_prev_frame): Set unwind field using
12597 frame_unwind_find_by_pc.
12598 (trad_frame_unwind, trad_frame_unwinder): New variables.
12599 * frame.h (trad_frame_unwind): Declare variable.
12600 (frame_id_unwind_ftype): Delete declaration.
12601 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12602 (struct frame_unwind): Declare opaque.
12603 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12604 register_unwind with a single unwind pointer.
12605 * frame-unwind.h, frame-unwind.c: New files.
12606 * Makefile.in (SFILES): Add frame-unwind.c.
12607 (frame_unwind_h): Define.
12608 (COMMON_OBS): Add frame-unwind.o.
12609 (frame-unwind.o): Specify dependencies.
12610 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12611
4efb68b1
AC
126122003-01-18 Andrew Cagney <ac131313@redhat.com>
12613
12614 * ada-valprint.c: Eliminate PTR.
12615 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12616 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12617 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12618 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12619 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12620 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12621 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12622
a84d24ee
AC
126232003-01-17 Andrew Cagney <ac131313@redhat.com>
12624
762f08a3
AC
12625 * main.c (captured_main): Don't use PTR.
12626 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12627 * gdbtypes.c (lookup_primitive_typename): Ditto.
12628 (lookup_struct_elt_type): Ditto.
12629 * f-valprint.c (info_common_command): Ditto.
12630 (list_all_visible_commons): Ditto.
12631 * jv-typeprint.c (java_type_print_base): Ditto.
12632
a84d24ee
AC
12633 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12634 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12635 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12636 i386-interix-nat.c and i386-interix-tdep.c. Rename
12637 m68klinux-nat.c and m68klinux-tdep.c. Rename
12638 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12639 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12640 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12641 * main.c (captured_main): Use xfree, not free.
12642
c170fb60
AC
126432003-01-16 Andrew Cagney <ac131313@redhat.com>
12644
12645 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12646 ID back using a parameter.
12647 * frame.c (frame_id_unwind): Update call.
12648 (frame_saved_regs_id_unwind): Update.
12649 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12650 * dummy-frame.h (struct frame_id): Add opaque declaration.
12651 (dummy_frame_id_unwind): Update declaration.
12652
867f3898
AC
126532003-01-15 Andrew Cagney <ac131313@redhat.com>
12654
12655 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12656
40622be8 126572003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12658
40622be8 12659 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12660
ae66c1fc
EZ
126612003-01-14 Elena Zannoni <ezannoni@redhat.com>
12662
997b089a 12663 Fix PR gdb/898
ae66c1fc
EZ
12664 * breakpoint.c (until_break_command): Add new argument. Use it to
12665 decide whether to stop only at the current frame or not.
12666 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12667 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12668 call.
12669 (advance_command): New function.
12670 (_initialize_infcmd): Update help string for 'until' command.
12671 Add new 'advance' command.
12672
a04257e6
DC
126732003-01-14 David Carlton <carlton@math.stanford.edu>
12674
12675 * linespec.c (decode_line_1): Normalize comments.
12676 (set_flags): Ditto.
12677 (locate_first_half): Ditto.
12678 (decode_compound): Ditto.
12679 (symtab_from_filename): Ditto.
12680 (decode_all_digits): Ditto.
12681 (decode_dollar): Ditto.
12682 (find_methods): Ditto.
12683 (find_toplevel_char): Ditto.
12684
1bac305b
AC
126852003-01-13 Andrew Cagney <ac131313@redhat.com>
12686
12687 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12688 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12689 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12690 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12691 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12692 * language.c, language.h, m32r-tdep.c: Update copyright.
12693 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12694 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12695 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12696 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12697 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12698 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12699
25caa7a8
EZ
127002003-01-13 Elena Zannoni <ezannoni@redhat.com>
12701
12702 * stabsread.h (process_later, resolve_cfront_continuation):
12703 Obsolete.
12704 Update copyright years.
12705 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12706 Update copyright year.
12707 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12708 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12709 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12710 Update copyright year.
12711 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12712 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12713 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12714 (parse_partial_symbols): Obsolete cfront support.
12715 * stabsread.c
12716 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12717 macros.
12718 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12719 read_cfront_baseclasses, read_cfront_member_functions,
12720 resolve_cfront_continuation,read_cfront_static_fields,
12721 copy_cfront_struct_fields): Obsolete functions.
12722 (define_symbol, read_one_struct_field): Obsolete cfront support.
12723 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12724 Update Copyright year.
12725
7789c6f5
EZ
127262003-01-13 Elena Zannoni <ezannoni@redhat.com>
12727
12728 * stack.c (print_frame_info, print_stack_frame_base_stub,
12729 print_stack_frame_base, show_and_print_stack_frame_stub,
12730 show_and_print_stack_frame, print_only_stack_frame_stub,
12731 print_only_stack_frame): Delete functions.
12732 (print_stack_frame_stub): Call print_frame_info instead of
12733 print_frame_info_base.
12734 (print_frame_info_base): Rename to print_frame_info.
12735 (backtrace_command_1): Call print_frame_info, instead of
12736 print_frame_info_base.
12737 (current_frame_command): Call print_stack_frame, instead of
12738 print_only_stack_frame.
12739 (frame_command): Call print_stack_frame, instead of
12740 show_and_print_stack_frame.
12741 (up_command): Ditto.
12742 (down_command): Ditto.
12743 * frame.h (print_only_stack_frame): Delete prototype.
12744 * infrun.c (normal_stop): Call print_stack_frame, instead of
12745 show_and_print_stack_frame.
12746 * thread.c (info_threads_command): Call print_stack_frame, instead
12747 of print_only_stack_frame.
12748
3f5a3016
AC
127492003-01-13 Andrew Cagney <ac131313@redhat.com>
12750
d99ba314
AC
12751 * README (Graphical interface to GDB): Update URL. Point at
12752 gdb/links/.
12753
3f5a3016
AC
12754 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12755 version match.
12756
083ae935
DJ
127572003-01-13 Daniel Jacobowitz <drow@mvista.com>
12758
12759 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12760 lines.
12761
5365276c
DJ
127622003-01-13 Daniel Jacobowitz <drow@mvista.com>
12763
12764 * thread-db.c (attach_thread): Prototype.
12765 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12766 thread information (ti), and valid flags (th_valid, ti_valid).
12767 (attach_thread): Move target_pid_to_str call to after the thread
12768 is added to GDB's list. Initialize the cache.
12769 (thread_get_info_callback, thread_db_map_id2thr)
12770 (thread_db_get_info): New functions.
12771 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12772 (thread_db_store_registers, thread_db_thread_alive)
12773 (thread_db_get_thread_local_address): Use them.
12774 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12775 of calling error() for threads in unknown state.
12776
12777 (clear_lwpid_callback): New function.
12778 (thread_db_resume): Use it to clear the cache.
12779
9fc30b6b
DJ
127802003-01-13 Daniel Jacobowitz <drow@mvista.com>
12781
12782 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12783 (resume_callback): Remove dead code.
12784
8f871025
AC
127852003-01-13 Andrew Cagney <ac131313@redhat.com>
12786
12787 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12788 predicate.
12789 * gdbarch.h, gdbarch.c: Regenerate.
12790 * stack.c (frame_info): Only initialize the saved registers when
12791 FRAME_INIT_SAVED_REGS_P.
12792 * frame.c (frame_saved_regs_register_unwind): Assert
12793 FRAME_INIT_SAVED_REGS_P.
12794 (deprecated_generic_get_saved_register): Ditto.
12795
3f565f1e
DJ
127962003-01-13 Daniel Jacobowitz <drow@mvista.com>
12797
12798 * source.c (openp): Squelch warning about "filename".
12799
072b1022
DJ
128002003-01-13 Daniel Jacobowitz <drow@mvista.com>
12801
12802 * source.c (openp): If the file does not exist don't necessarily
12803 search the path.
12804
973ccf8b
DJ
128052003-01-13 Daniel Jacobowitz <drow@mvista.com>
12806
12807 Fix PR gdb/872.
12808 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12809 (integer_types_same_name_p): New function.
12810 (rank_one_type): Use it.
12811 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12812
030292b7
DJ
128132003-01-13 Daniel Jacobowitz <drow@mvista.com>
12814
12815 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12816 variables.
12817 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12818 * configure.in: Add --with-sysroot.
12819 * configure: Regenerated.
12820 * main.c (gdb_sysroot): New variable.
12821 (captured_main): Initialize gdb_sysroot.
12822 * defs.h (gdb_sysroot): New extern declaration.
12823 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12824
afb5d334
MC
128252003-01-12 Michael Chastain <mec@shout.net>
12826
12827 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12828
751ceeb4
MC
128292003-01-12 Michael Chastain <mec@shout.net>
12830
12831 * top.c (print_gdb_version): Bump copyright year to 2003.
12832
94cd26f8
DC
128332003-01-12 David Carlton <carlton@bactrian.org>
12834
12835 * linespec.c (symtab_from_filename): Rename variable 's' to
12836 'file_symtab'.
12837
1ce79225
AC
128382003-01-12 Andrew Cagney <ac131313@redhat.com>
12839
12840 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12841 dummy frame.
12842 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12843
fa1fd571
AC
128442003-01-12 Andrew Cagney <ac131313@redhat.com>
12845
12846 * d10v-tdep.c: Include "gdb_assert.h".
12847 (d10v_store_return_value): Rewrite to match current interface.
12848 (d10v_extract_struct_value_address): Ditto.
12849 (d10v_extract_return_value): Ditto.
12850 (d10v_gdbarch_init): Set store_restore_value,
12851 extract_struct_value_address and extract_return_value.
12852
68b8d23e
JB
128532003-01-12 J. Brobecker <brobecker@gnat.com>
12854
12855 * hpread.c (set_namestring): New procedure replacing the
12856 SET_NAMESTRING macro.
12857 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12858 by calls to set_namestring.
12859
128602003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12861
12862 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12863 a compilation warning.
12864 (hpread_process_one_debug_symbol): Likewise.
12865
88d262ca
DC
128662003-01-10 David Carlton <carlton@math.stanford.edu>
12867
12868 * linespec.c (decode_line_1): Rename variable 's' to
12869 'file_symtab'.
12870 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12871 (decode_dollar): Ditto.
12872 (decode_variable): Ditto.
12873 (symbol_found): Ditto.
12874
86669319
MC
128752003-01-09 Michael Chastain <mec@shout.net>
12876
12877 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12878
616a9dc4
CV
128792003-01-07 Corinna Vinschen <vinschen@redhat.com>
12880
12881 * win32-nat.c (set_process_privilege): New function.
12882 (child_attach): Call set_process_privilege() to enable the
12883 SE_DEBUG_NAME user privilege if available in process token.
12884
3269bcfa
JB
128852003-01-10 J. Brobecker <brobecker@gnat.com>
12886
12887 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12888 compilation error in the previous revision.
12889
2b0ee454
DC
128902003-01-09 David Carlton <carlton@math.stanford.edu>
12891
12892 * linespec.c: Update copyright.
12893
b3ba1b44
DJ
128942003-01-09 Daniel Jacobowitz <drow@mvista.com>
12895
12896 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12897 than inferior_ptid.
12898 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12899
4ef3f3be
AC
129002003-01-09 Andrew Cagney <ac131313@redhat.com>
12901
479ab5a0
AC
12902 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12903 Update comments.
12904 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12905 (frame_saved_regs_zalloc): Update.
12906 (frame_saved_regs_register_unwind): Update.
12907 (create_new_frame): Update.
12908 (get_prev_frame): Update.
12909 (frame_extra_info_zalloc): Update.
12910 (deprecated_get_frame_saved_regs): Update.
12911 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12912 * cris-tdep.c: Update comment.
12913
bde58177
AC
12914 * somsolib.h: Fix function indentation.
12915 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12916 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12917 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12918 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12919 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12920
4ef3f3be
AC
12921 * infrun.c (follow_fork): Use ISO C definition.
12922 * expprint.c (print_subexp): Use xfree instead of free.
12923 * charset.c: Include "gdb_string.h" instead of <string.h>.
12924 (register_iconv_charsets): Use ISO C definition.
12925 (host_charset, target_charset): Ditto.
12926 * Makefile.in (charset.o): Update dependencies.
12927 (mi-cmd-env.o): Update dependencies.
12928
1c615f7a
AC
129292003-01-08 Andrew Cagney <cagney@redhat.com>
12930
12931 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12932 get_frame_base.
12933
c9a1dc08
AC
129342003-01-08 Andrew Cagney <ac131313@redhat.com>
12935
12936 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12937 build directories. Save edited gdb output in Mbuild.log. If a
12938 build fails, remove any final GDB executable.
12939
dbad9d94
AC
129402003-01-08 Andrew Cagney <ac131313@redhat.com>
12941
12942 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12943 replacing hex constants with function names and stripping leading
12944 file name directory prefixes.
12945
8d357cca
AC
129462003-01-08 Andrew Cagney <cagney@redhat.com>
12947
12948 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12949 get_frame_base.
12950
bca02a8a
DC
129512003-01-08 David Carlton <carlton@math.stanford.edu>
12952
12953 * linespec.c (decode_line_1): Move code into decode_variable.
12954 (decode_variable): New function.
12955
7f8ab3a0
AC
129562003-01-08 Andrew Cagney <ac131313@redhat.com>
12957
12958 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12959
7b5849cc
AC
129602003-01-08 Andrew Cagney <cagney@redhat.com>
12961
12962 * cris-tdep.c (cris_frame_init_saved_regs): Use
12963 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12964 saved_regs buffer.
12965 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12966 (sh64_nofp_frame_init_saved_regs): Ditto.
12967 (sh_fp_frame_init_saved_regs): Ditto.
12968 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12969 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12970 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12971 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12972
72a5efb3
DJ
129732003-01-08 Daniel Jacobowitz <drow@mvista.com>
12974
12975 * minsyms.c (lookup_minimal_symbol): Update comment.
12976 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12977 (lookup_minimal_symbol_solib_trampoline): Likewise.
12978
11c02a10
AC
129792003-01-08 Andrew Cagney <cagney@redhat.com>
12980
aab3ea25
AC
12981 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12982 frame_relative_level.
12983
da50a4b7
AC
12984 * alpha-tdep.c: Use get_frame_extra_info.
12985 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12986 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12987 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12988 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12989
11c02a10
AC
12990 * alpha-tdep.c: Use get_next_frame.
12991 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12992 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12993 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12994 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12995 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12996 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12997 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12998
1e2330ba
AC
129992003-01-07 Andrew Cagney <cagney@redhat.com>
13000
13001 * alpha-tdep.c: Use get_frame_base.
13002 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13003 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13004 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13005 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13006 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13007 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13008 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13009 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13010
2d75187b
AC
130112003-01-07 Andrew Cagney <cagney@redhat.com>
13012
13013 * frame.c (deprecated_get_frame_context): New function.
13014 (deprecated_set_frame_context): New function.
13015 * frame.h (deprecated_get_frame_context): Declare.
13016 (deprecated_set_frame_context): Declare.
13017 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13018 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13019
483d36b2
AC
130202003-01-07 Andrew Cagney <cagney@redhat.com>
13021
13022 * frame.c (deprecated_set_frame_next_hack): New function.
13023 (deprecated_set_frame_prev_hack): New function.
13024 * frame.h (deprecated_set_frame_next_hack): Declare.
13025 (deprecated_set_frame_prev_hack): Declare.
13026 * mcore-tdep.c (analyze_dummy_frame): Use
13027 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13028 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13029
14e91ac5
DC
130302003-01-07 David Carlton <carlton@math.stanford.edu>
13031
13032 * linespec.c (decode_line_1): Move code into decode_dollar.
13033 (decode_dollar): New function.
13034
b0c6b05c
AC
130352003-01-07 Andrew Cagney <cagney@redhat.com>
13036
13037 * arm-tdep.c (arm_init_extra_frame_info): Use
13038 deprecated_update_frame_base_hack.
13039 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13040 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13041 (fix_frame_pointer): Ditto.
13042 (mn10300_analyze_prologue): Ditto.
13043
a00a19e9
AC
130442003-01-07 Andrew Cagney <cagney@redhat.com>
13045
13046 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13047 extra_info using frame_extra_info_zalloc.
13048 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13049 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13050 (sh64_init_extra_frame_info): Ditto.
13051 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13052 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13053 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13054 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13055 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13056 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13057 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13058 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13059 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13060 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13061 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13062 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13063
13064 * mn10300-tdep.c (analyze_dummy_frame): Use
13065 deprecated_set_frame_extra_info_hack.
13066 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13067
1fb4c65b
JB
130682003-01-07 J. Brobecker <brobecker@gnat.com>
13069
13070 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13071 class is not scText. These do not define "real" procedures.
13072 (parse_partial_symbols): Likewise.
13073
9fe7d6bf
MS
130742003-01-06 Michael Snyder <msnyder@redhat.com>
13075
13076 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13077
f6c609c4
AC
130782003-01-06 Andrew Cagney <ac131313@redhat.com>
13079
13080 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13081 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13082 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13083 deprecated_frame_xmalloc_with_cleanup.
13084 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13085 deprecated_frame_xmalloc.
13086 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13087 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13088
d995ff4b
AC
130892003-01-06 Andrew Cagney <cagney@redhat.com>
13090
84dc46cb
AC
13091 * x86-64-linux-tdep.c: Include "osabi.h".
13092 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13093
d995ff4b
AC
13094 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13095
66140c26
AC
130962003-01-06 Andrew Cagney <cagney@redhat.com>
13097
13098 * MAINTAINERS (Target Instruction Set Architectures): Update
13099 arm-elf. Can be built with -Werror, has been multiarched.
13100
13101 * value.h (unpack_long): Make buffer parameter constant.
13102 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13103 * scm-lang.h (scm_parse): Ditto.
13104 * defs.h (extract_typed_address, extract_address): Ditto.
13105 (extract_long_unsigned_integer): Ditto.
13106 * inferior.h (unsigned_pointer_to_address): Ditto.
13107 (signed_pointer_to_address): Ditto.
13108 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13109 * gdbarch.h, gdbarch.c: Regenerate.
13110 * findvar.c (extract_long_unsigned_integer): Update.
13111 (extract_address): Update.
13112 (extract_typed_address): Update.
13113 (unsigned_pointer_to_address): Update.
13114 * values.c (unpack_long): Update.
13115 (unpack_double): Update.
13116 (unpack_pointer): Update.
13117 (unpack_field_as_long): Update.
13118 * d10v-tdep.c (d10v_pointer_to_address): Update.
13119 * avr-tdep.c (avr_pointer_to_address): Update.
13120 * scm-lang.c (scm_unpack): Update.
13121 * findvar.c (signed_pointer_to_address): Update.
13122
b089b3da
ML
131232003-01-06 Michal Ludvig <mludvig@suse.cz>
13124
8ffd9b1b 13125 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13126 since it is in i386-tdep.c.
13127
aff87235
JB
131282003-01-06 J. Brobecker <brobecker@gnat.com>
13129
13130 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13131 failure introduced in the previous change.
13132
34f5e845
MC
131332003-01-05 Michael Chastain <mec@shout.net>
13134
13135 * README: Remove references to deleted remote-*.c files:
13136 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13137 remote-nrom.c, remote-os9k.c, remote-udi.c.
13138
28bcfd30
MK
131392003-01-05 Mark Kettenis <kettenis@gnu.org>
13140
13141 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13142 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13143 i386_get_longjmp_target.
13144
15a5b3ee
AC
131452003-01-05 Andrew Cagney <ac131313@redhat.com>
13146
13147 * arm-tdep.c (prologue_cache): Change to a pointer.
13148 (_initialize_arm_tdep): Allocate prologue_cache.
13149 (check_prologue_cache): Update.
13150 (save_prologue_cache): Update.
13151 (arm_gdbarch_init): Update.
13152
c263362b
DJ
131532003-01-04 Daniel Jacobowitz <drow@mvista.com>
13154
13155 * stabsread.c (update_method_name_from_physname): Call complaint()
13156 instead of error.
13157
51603483
DJ
131582003-01-04 Daniel Jacobowitz <drow@mvista.com>
13159
13160 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13161 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13162 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13163
13164 * blockframe.c: Include "gdbcmd.h" and "command.h".
13165 (backtrace_below_main): New variable.
13166 (file_frame_chain_valid, func_frame_chain_valid)
13167 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13168 (generic_func_frame_chain_valid): Remove functions.
13169 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13170 (_initialize_blockframe): New function.
13171 * Makefile.in (blockframe.o): Update dependencies.
13172 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13173 comment. Call frame_chain_valid ().
13174 * frame.h: Remove old prototypes. Add prototype for
13175 frame_chain_valid and update comments to match.
13176 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13177 Remove old comment.
13178 * gdbarch.h: Regenerated.
13179 * gdbarch.c: Regenerated.
13180
13181 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13182 set_gdbarch_frame_chain_valid.
13183 * avr-tdep.c (avr_gdbarch_init): Likewise.
13184 * cris-tdep.c (cris_gdbarch_init): Likewise.
13185 * frv-tdep.c (frv_gdbarch_init): Likewise.
13186 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13187 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13188 (i386_nw_init_abi): Likewise.
13189 (i386_gdbarch_init): Likewise.
13190 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13192 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13193 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13194 * mips-tdep.c (mips_gdbarch_init): Likewise.
13195 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13196 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13197 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13198 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13199 * s390-tdep.c (s390_gdbarch_init): Likewise.
13200 * sh-tdep.c (sh_gdbarch_init): Likewise.
13201 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13202 * v850-tdep.c (v850_gdbarch_init): Likewise.
13203 * vax-tdep.c (vax_gdbarch_init): Likewise.
13204 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13205
13206 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13207 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13208 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13209 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13210 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13211 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13212 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13213 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13214
b00a8037
DJ
132152002-01-04 Daniel Jacobowitz <drow@mvista.com>
13216
13217 * Makefile.in (acconfig_h): Remove incorrect macro.
13218 (config_h): Define.
13219 (osabi.o): Update dependencies.
13220 * configure.tgt: Set gdb_osabi based on target triplet.
13221 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13222 * configure: Regenerated.
13223 * config.in: Regenerated.
13224 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13225 (GDB_OSABI_DEFAULT): Define if not already defined.
13226 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13227 (set_osabi_string): New variables.
13228 (gdbarch_register_osabi): Add new OS ABI to
13229 gdb_osabi_available_names.
13230 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13231 (set_osabi, show_osabi): New functions.
13232 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13233
4be87837
DJ
132342003-01-04 Daniel Jacobowitz <drow@mvista.com>
13235
13236 * arch-utils.c (gdbarch_info_init): Set osabi to
13237 GDB_OSABI_UNINITIALIZED.
13238 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13239 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13240 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13241 * gdbarch.c: Regenerated.
13242 * gdbarch.h: Regenerated.
13243 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13244 there's no BFD.
13245 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13246 * osabi.h (enum gdb_osabi): Move to defs.h.
13247 (gdbarch_init_osabi): Update prototype.
13248 * defs.h (enum gdb_osabi): Moved here.
13249 * Makefile.in: Update dependencies.
13250
13251 * alpha-tdep.h: Don't include "osabi.h".
13252 (struct gdbarch_tdep): Remove osabi member.
13253 * alpha-tdep.c: Include "osabi.h".
13254 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13255 iterate over arches. Update call to gdbarch_init_osabi.
13256 (alpha_dump_tdep): Don't dump osabi.
13257 * alpha-linux-tdep.c: Include "osabi.h".
13258 * alpha-osf1-tdep.c: Include "osabi.h".
13259 * alphafbsd-tdep.c: Include "osabi.h".
13260 * alphanbsd-tdep.c: Include "osabi.h".
13261
13262 * arm-tdep.h: Don't include "osabi.h".
13263 (struct gdbarch_tdep): Remove osabi member.
13264 * arm-tdep.c: Include "osabi.h".
13265 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13266 iterate over arches. Update call to gdbarch_init_osabi.
13267 (arm_dump_tdep): Don't dump osabi.
13268 * arm-linux-tdep.c: Include "osabi.h".
13269 * armnbsd-tdep.c: Include "osabi.h".
13270
13271 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13272 Update call to gdbarch_init_osabi.
13273
13274 * i386-tdep.h: Don't include "osabi.h".
13275 (struct gdbarch_tdep): Remove osabi member.
13276 * i386-tdep.c: Include "osabi.h".
13277 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13278 iterate over arches. Update call to gdbarch_init_osabi.
13279 (i386_dump_tdep): Don't dump osabi.
13280 * i386-linux-tdep.c: Include "osabi.h".
13281 * i386-sol2-tdep.c: Include "osabi.h".
13282 * i386bsd-tdep.c: Include "osabi.h".
13283 * i386gnu-tdep.c: Include "osabi.h".
13284 * i386ly-tdep.c: Include "osabi.h".
13285 * i386nbsd-tdep.c: Include "osabi.h".
13286 * i386obsd-tdep.c: Include "osabi.h".
13287
13288 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13289 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13290 check osabi when iterating over arches. Update call to
13291 gdbarch_init_osabi.
13292 (mips_dump_tdep): Don't dump osabi.
13293
13294 * ns32k-tdep.h: Don't include "osabi.h".
13295 (struct gdbarch_tdep): Remove.
13296 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13297 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13298 allocate tdep. Update call to gdbarch_init_osabi.
13299 (ns32k_dump_tdep): Remove.
13300 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13301 * ns32knbsd-tdep.c: Include "osabi.h".
13302
13303 * ppc-tdep.h: Don't include "osabi.h".
13304 (struct gdbarch_tdep): Remove osabi member.
13305 * rs6000-tdep.c: Include "osabi.h".
13306 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13307 osabi when iterating over arches. Update call to
13308 gdbarch_init_osabi.
13309 (rs6000_dump_tdep): Don't dump osabi.
13310 * ppc-linux-tdep.c: Include "osabi.h".
13311 * ppcnbsd-tdep.c: Include "osabi.h".
13312
13313 * sh-tdep.h: Don't include "osabi.h".
13314 (struct gdbarch_tdep): Remove osabi member.
13315 * sh-tdep.c: Include "osabi.h".
13316 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13317 iterate over arches. Update call to gdbarch_init_osabi.
13318 (sh_dump_tdep): Don't dump osabi.
13319 * shnbsd-tdep.c: Include "osabi.h".
13320
13321 * sparc-tdep.c: Include "osabi.h".
13322 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13323 iterate over arches. Update call to gdbarch_init_osabi.
13324 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13325 tdep structure.
13326
13327 * vax-tdep.h: Don't include "osabi.h".
13328 (struct gdbarch_tdep): Remove.
13329 * vax-tdep.c: Include "osabi.h".
13330 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13331 iterate over arches. Don't allocate tdep. Update call
13332 to gdbarch_init_osabi.
13333 (vax_dump_tdep): Remove.
13334 (_initialize_vax_tdep): Update call to gdbarch_register.
13335
a881cf8e
DJ
133362003-01-04 Daniel Jacobowitz <drow@mvista.com>
13337
13338 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13339 entirely.
13340 (breakpoint_re_set_one): Don't fetch the value for a disabled
13341 watchpoint.
13342
1e698235
DJ
133432003-01-04 Daniel Jacobowitz <drow@mvista.com>
13344
13345 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13346 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13347 (COERCE_FLOAT_TO_DOUBLE): Remove.
13348 * gdbarch.c: Regenerate.
13349 * gdbarch.h: Regenerate.
13350 * Makefile.in: Remove value_h from gdbarch_h.
13351 * valops.c (coerce_float_to_double): New variable.
13352 (default_coerce_float_to_double): Remove.
13353 (standard_coerce_float_to_double): Remove.
13354 (value_arg_coerce): Use coerce_float_to_double.
13355 (_initialize_valops): Add "set coerce-float-to-double".
13356 * value.h (default_coerce_float_to_double): Remove prototype.
13357 (standard_coerce_float_to_double): Remove prototype.
13358
13359 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13360 prototyped.
13361 * mdebugread.c (parse_symbol): Likewise.
13362 * stabsread.c (define_symbol): Mark all functions as prototyped.
13363
13364 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13365 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13366 set_gdbarch_coerce_float_to_double.
13367 * arm-tdep.c (arm_gdbarch_init): Likewise.
13368 * frv-tdep.c (frv_gdbarch_init): Likewise.
13369 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13370 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13371 * mips-tdep.c (mips_gdbarch_init): Likewise.
13372 (mips_coerce_float_to_double): Remove.
13373 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13374 (rs6000_coerce_float_to_double): Remove.
13375 * s390-tdep.c (s390_gdbarch_init): Likewise.
13376 * sh-tdep.c (sh_gdbarch_init): Likewise.
13377 (sh_coerce_float_to_double): Remove.
13378 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13379 (sparc_coerce_float_to_double): Remove.
13380 * v850-tdep.c (v850_gdbarch_init): Likewise.
13381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13382 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13383 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13384 (hppa_coerce_float_to_double): Remove prototype.
13385 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13386
f436a26a
DJ
133872003-01-04 Daniel Jacobowitz <drow@mvista.com>
13388
13389 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13390
248f8055
DJ
133912003-01-04 Daniel Jacobowitz <drow@mvista.com>
13392
13393 Suggested by Stewart Brown <sb24@avaya.com>:
13394 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13395 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13396 (c_type_print_varspec_suffix): Likewise.
13397
72cfdc76
MK
133982003-01-04 Mark Kettenis <kettenis@gnu.org>
13399
bfd260bb
MK
13400 * configure.in: Don't set and AC_SUBST SUBDIRS.
13401 * configure: Regenerated.
13402
72cfdc76
MK
13403 * configure.in: Remove code dealing with shared libraries.
13404 * Makefile.in: Remove HLDFLAGS and HLDENV.
13405 * configure: Regenerated.
13406
c8b8a898
AC
134072003-01-04 Andrew Cagney <ac131313@redhat.com>
13408
13409 * frame.c (deprecated_frame_xmalloc): New function.
13410 (deprecated_set_frame_saved_regs_hack): New function.
13411 (deprecated_set_frame_extra_info_hack): New function.
13412 * frame.h (deprecated_frame_xmalloc): Declare.
13413 (deprecated_set_frame_saved_regs_hack): Declare.
13414 (deprecated_set_frame_extra_info_hack): Declare.
13415
14abd0fb
MK
134162003-01-04 Mark Kettenis <kettenis@gnu.org>
13417
8ee53726
MK
13418 * configure.in: Move code that provides the --enable-gdbtk option
13419 right after the code that handles the --enable-tui option, and
13420 polish it somewhat.
13421 * configure: Regenerated.
13422
14abd0fb
MK
13423 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13424 AC_CHECK_FUNCS and remove the old check for pread64.
13425 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13426 * acconfig.h (_GNU_SOURCE): Add.
13427 (HAVE_PREAD64): Remove.
13428 * configure, aclocal.m4, config.in: Regenerated.
13429
b2fb4676
AC
134302003-01-03 Andrew Cagney <ac131313@redhat.com>
13431
13432 * alpha-tdep.c: Use get_frame_saved_regs.
13433 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13434 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13435 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13436 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13437 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13438
8dcde887
MK
134392003-01-03 Mark Kettenis <kettenis@gnu.org>
13440
13441 * configure.in: Remove all use of the SUBDIRS variable; add
13442 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13443 code providing the --enable-multi-ice option, and move it right in
13444 front of the code that checks whether gdbserver is supported.
13445 Polish that too.
13446 * configure: Regenerated.
13447 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13448 @SUBDIRS@.
13449
8ccd593b
AC
134502003-01-03 Andrew Cagney <cagney@redhat.com>
13451
13452 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13453 * avr-tdep.c, cris-tdep.c: Ditto.
13454 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13455 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13456
91151a06
MK
134572003-01-03 Mark Kettenis <kettenis@gnu.org>
13458
13459 * configure.in: Remove --enable-netrom option.
13460 * configure: Regenerated.
13461
8fe84d01
MK
134622003-01-03 Mark Kettenis <kettenis@gnu.org>
13463
13464 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13465 declaration for `struct re_pattern_buffer' instead.
13466 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13467
f0394be6
JB
134682003-01-03 J. Brobecker <brobecker@gnat.com>
13469
13470 * mdebugread.c (parse_symbol): Count until the stEnd matching
13471 the structure name.
13472
27e9bf90
MK
134732003-01-02 Mark Kettenis <kettenis@gnu.org>
13474
93d331ba
MK
13475 * configure.in: Remove --with-cpu option.
13476 subscripts. Remove evil changequotes here.
13477 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13478 * config.in, configure: Regenerated.
8ffd9b1b 13479
27e9bf90
MK
13480 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13481 * configure.in: Cleanup section that sources GDB and BFD configure
13482 subscripts. Remove evil changequotes here.
13483 * config.in, configure: Regenerated.
13484
50abf9e5
AC
134852003-01-02 Andrew Cagney <ac131313@redhat.com>
13486
13487 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13488 frame accessor methods.
13489 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13490 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13491 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13492 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13493 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13494 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13495 * z8k-tdep.c: Ditto.
8ffd9b1b 13496
287c1a40
MK
134972003-01-02 Mark Kettenis <kettenis@gnu.org>
13498
f5dbc56d
MK
13499 * configure.in: Remove UI_OUT configuration code.
13500 * ada-lang.c: Update assuming UI_OUT is always true.
13501 * Makefile.in (UIOUT_CFLAGS): Remove.
13502 * configure: Regenerated.
13503 * TODO: Remove blurb about elimination of -DUI_OUT.
13504
627af7ea
MK
13505 * configure.in: Move code that provides the --enable-gdbcli,
13506 --enable-gdbmi options right before the code that handles the
13507 --enable-tui option. Polish a bit.
13508 * configure: Regenerated.
13509
06825bd1
MK
13510 * configure.in: Rewrite check for GNU regex and the
13511 --without-included regex option, and move it into the "Checks for
13512 library functions" section. This makes us use the system regex
13513 again by default on systems with version 2 of the GNU C library.
13514 This was apparently broken.
13515 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13516 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13517 * config.in, configure: Regenerated.
13518
287c1a40
MK
13519 * configure.in: Move code that provides the --enable-tui option
13520 before the "Checks for libraries" section. Polish the code
13521 somewhat and set need_curses to yes if we build the TUI. Rewrite
13522 code that looks for a library providing termcap functionality to
13523 match more closely what's done in the Readline library, and move
13524 it into to the "Checks for libraries" section.
13525 * configure: Regenerated.
13526 * Makefile.in (TERMCAP): Remove variable.
13527 * config/i386/go32.mh (TERMCAP): Remove variable.
13528
684e56bf
AC
135292003-01-02 Andrew Cagney <ac131313@redhat.com>
13530
13531 * MAINTAINERS: Mention gdb_mbuild.sh.
13532 * gdb_mbuild.sh: Rewrite.
13533
e1ea1d75
MK
135342003-01-02 Mark Kettenis <kettenis@gnu.org>
13535
13536 * configure.in: Fix typo in last change.
13537 * config.in, configure: Regenerated.
13538
1b831c93
AC
135392003-01-02 Andrew Cagney <ac131313@redhat.com>
13540
13541 * valarith.c (value_binop): Delete obsolete code and comments.
13542 * configure.host: Ditto.
13543 * buildsym.h (make_blockvector): Ditto.
13544 * buildsym.c (make_blockvector): Ditto.
13545 * defs.h (enum language): Ditto.
13546 (chill_demangle): Ditto.
13547 * elfread.c (elf_symtab_read): Ditto.
13548 * dwarfread.c (CHILL_PRODUCER): Ditto.
13549 (set_cu_language): Ditto.
13550 (handle_producer): Ditto.
13551 * expprint.c (print_subexp): Ditto.
13552 * gdbtypes.c (chill_varying_type): Ditto.
13553 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13554 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13555 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13556 (chill_varying_type): Ditto.
13557 * language.h (_LANG_chill): Ditto.
13558 * language.c (binop_result_type, integral_type): Ditto.
13559 (character_type, string_type, structured_type): Ditto.
13560 (lang_bool_type, binop_type_check): Ditto.
13561 * stabsread.h (os9k_stabs): Ditto.
13562 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13563 (define_symbol, read_type, read_struct_fields): Ditto.
13564 (read_array_type, read_enum_type, read_huge_number): Ditto.
13565 (read_range_type, start_stabs): Ditto.
13566 * symfile.c (init_filename_language_table): Ditto.
13567 (add_psymbol_with_dem_name_to_list): Ditto.
13568 * symtab.c (symbol_init_language_specific): Ditto.
13569 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13570 * symtab.h (struct general_symbol_info): Ditto.
13571 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13572 * typeprint.c (typedef_print): Ditto.
13573 * utils.c (fprintf_symbol_filtered): Ditto.
13574 * valops.c (value_cast, search_struct_field, value_slice): Delete
13575 obsolete code.
13576 (varying_to_slice): Delete function.
13577 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13578 (varying_to_slice): Delete declaration.
13579 * MAINTAINERS: Update.
13580
8bb2c122
MK
135812003-01-02 Mark Kettenis <kettenis@gnu.org>
13582
97bf5e38
MK
13583 * configure.in: Reorganize "Checks for library functions section"
13584 a bit. Remove check for `btowc' and `isascii' functions.
13585 * configure: Regenerated.
13586
5ee754fc
MK
13587 * acconfig.h (_MSE_INT_H): Remove.
13588 * configure.in: Create "Checks for header files" section, and move
13589 appropriate tests there. Don't check for objlist.h, wchar.h,
13590 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13591 misdetection fix. Also add "Checks for types", "Checks for
13592 compiler characteristics" and "Checks for library functions"
13593 sections.
13594 * config.in, configure: Regenerated.
13595
8bb2c122
MK
13596 * configure.in: Create "Checks for programs" section, and move
13597 appropriate tests there.
13598
9a156167
MK
135992003-01-01 Mark Kettenis <kettenis@gnu.org>
13600
13601 * configure.in: Create "Checks for libraries" section, and move
13602 appropriate tests there. Cleanup check for wctype in libw. Use
13603 AC_SEARCH_LIBS to see whether we need libsocket.
13604 * configure: Regenerated.
13605
a80e2bcb 13606For older changes see ChangeLog-2002
c906108c
SS
13607\f
13608Local Variables:
13609mode: change-log
13610left-margin: 8
13611fill-column: 74
13612version-control: never
13613End:
This page took 1.088223 seconds and 4 git commands to generate.