2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4afcc598
JJ
12003-10-23 Jeff Johnston <jjohnstn@redhat.com>
2
3 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
4 (pseudo_regs): Add comment regarding register stack registers.
5 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
6 (floatformat_valid): New static routine.
7 (floatformat_ia64_ext): Add name field and set up is_valid routine
8 to floatformat_valid().
9 (examine_prologue): For the previous cfm, use
10 frame_unwind_register()
11 if the cfm is not stored in a register-stack register. Save the
12 previous cfm value in the prev_cfm field. Add debug output.
13 (ia64_frame_this_id): Use frame_id_build_special() to also register
14 the bsp. Add debug output.
15 (ia64_sigtramp_frame_this_id): Ditto.
16 (ia64_frame_prev_register): Look at cache saved_regs for a few more
17 registers and also add some checks for framelessness before accepting
18 current register values for fields such as return address. For cfm,
19 use the cached prev_cfm field if available. Add comment to explain
20 PSR logic. Add debug output.
21 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
22 as part of initialization.
23 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
24 calculated. Cache the bsp and cfm values.
25 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
26 instead of using ia64_frame_prev_register() which doesn't expect most
27 registers to be saved. The saved values for bsp and sp
28 can be taken from the cache. Add debug output.
29 (ia64_push_dummy_call): Use frame_id_build_special() to also register
30 the bsp.
31
6cfae0bc
JB
322003-10-23 Jim Blandy <jimb@redhat.com>
33
34 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
35 architecture the current arch can run code for --- but not if it's
36 a superset.
37 (can_run_code_for): New function.
38
fcd182f9
JW
392003-10-22 James E Wilson <wilson@specifixinc.com>
40
41 * MAINTAINERS: Move myself from paper trail section back to write
42 after approval section.
43
4646aa9d
AC
442003-10-22 Andrew Cagney <cagney@redhat.com>
45
46 * exec.h: New file.
47 * win32-nat.c: Include "exec.h".
48 * solib.c: Include "exec.h".
49 * target.h (build_section_table): Delete declaration.
50 * somsolib.c: Include "exec.h".
51 (exec_ops): Delete extern declaration.
52 * rs6000-nat.c: Update copyright. Include "exec.h".
53 (exec_ops): Delete extern declaration.
54 * pa64solib.c: Update copyright. Include "exec.h".
55 (exec_ops): Delete extern declaration.
56 * exec.c: Update copyright. Include "exec.h".
57 * corelow.c: Update dependencies. Include "exec.h".
58 * Makefile.in (exec_h): Define.
59 (exec.o, somsolib.o): Update dependencies.
60 (pa64solib.o, corelow.o): Update dependencies.
61
0088c768
AC
622003-10-22 Andrew Cagney <cagney@redhat.com>
63
64 * target.c: Include "gdb_assert.h" (target_read): Call
65 "target_read_partial", not "target_write_partial".
66 (default_read_partial, default_write_partial): New function.
67 (target_read_partial, target_write_partial): Simplify, assume that
68 there is always a read/write method.
69 (update_current_target, add_target): Always set "to_read_partial"
70 and "to_write_partial".
71 (target_write, target_read): Fail on a zero byte transfer.
72 * Makefile.in (target.o): Update dependencies.
73 * target.h: Update copyright date.
74 (target_object): Fix typo.
75
e2d0e7eb
AC
762003-10-22 Andrew Cagney <cagney@redhat.com>
77
78 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
79 multi-arch method, add "targ" parameter.
80 (struct target_ops): Declare.
81 * gdbarch.h, gdbarch.c: Re-generate.
82 * Makefile.in (c-valprint.o): Update dependencies.
83 * arch-utils.h: Update copyright.
84 (convert_from_func_ptr_addr_identity): Declare.
85 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
86 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
87 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
88 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
89 * infcall.c (find_function_addr, call_function_by_hand): Update.
90 * c-valprint.c: Include "target.h".
91 (print_function_pointer_address): Update.
92
f1c07ab0
AC
932003-10-22 Andrew Cagney <cagney@redhat.com>
94
95 * target.c (target_close): New function.
96 (debug_to_close): Use "target_close".
97 (push_target): Use "target_close".
98 (unpush_target): Use "target_close".
99 (pop_target): Use "target_close".
100 * target.h (struct target_ops): Add "to_xclose".
101 (target_open): Delete macro. Move comment to "to_open".
102 (target_close): Replace macro with function that takes a target.
103 * top.c (quit_target): Pass "current_target" to "target_close".
104
5520a790
EZ
1052003-10-21 Elena Zannoni <ezannoni@redhat.com>
106
107 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
108 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
109 * symtab.h (lookup_minimal_symbol_text): Update.
110 * breakpoint.c (create_overlay_event_breakpoint,
111 create_longjmp_breakpoint): Update callers.
112 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
113 * symtab.c (find_pc_sect_line): Ditto.
114
caa92b73
AC
1152003-10-21 Andrew Cagney <cagney@redhat.com>
116
117 * target.c (errno): Delete extern declaration.
118
aa2a9a3c
JJ
1192003-10-20 Jeff Johnston <jjohnstn@redhat.com>
120
121 * ia64-tdep.c: Change all occurrences of
122 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
123 (ia64_frame_prev_register): Minor whitespace change.
124
4beec2b7
MC
1252003-10-20 Michael Chastain <mec@shout.net>
126
127 * config/djgpp/fnchange.lst: Add lines for:
128 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
129 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
130 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
131 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
132 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
133 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
134 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
135
92ad9cd9
AC
1362003-10-20 Andrew Cagney <cagney@redhat.com>
137
138 * values.c (register_value_being_returned): Update comments. Use
139 "gdbarch_return_value" when available.
140 (using_struct_return): Ditto.
141 (set_return_value): Ditto. Use "gdbarch_return_value" when
142 available.. Print a warning, and not an error, when an unhandled
143 return type is encountered.
144 * infcmd.c: Include "gdb_assert.h".
145 (print_return_value): When gdbarch_return_value_p, and using
146 struct return, assume that the value is not available.
147 * defs.h (return_value_convention): Define.
148 * gdbarch.sh (gdbarch_return_value): New predicate method.
149 * gdbarch.h, gdbarch.c: Re-generate
150 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
151
198beae2
AC
1522003-10-20 Andrew Cagney <cagney@redhat.com>
153
154 * symtab.c: Replace "struct sec" with "struct bfd_section".
155 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
156
24d693a6 1572003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
158
159 * config/djgpp/fnchange.lst: Add lines for:
160 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
161 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
162 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
163
21ad8dc3
MK
1642003-10-19 Mark Kettenis <kettenis@gnu.org>
165
166 * amd64fbsd-nat.c (fetch_inferior_registers,
167 store_inferior_registers): Remove functions.
168 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
169
cced5e27
MK
1702003-10-18 Mark Kettenis <kettenis@gnu.org>
171
172 Add NetBSD/amd64 native configuration:
173 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
174 * amd64nbsd-tdep.c: New file.
175 * amd64nbsd-nat.c: New file.
176 * amd64bsd-nat.c: New file.
177 * config/i386/nbsd64.mh: New file.
178 * config/i386/nbsd64.mt: New file.
179 * configure.host: Add x86_64-*-netbsd*.
180 * configure.tgt: Add x86_64-*-netbsd*.
181 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
182 New targets.
183 * NEWS (New native configurations): Mention NetBSD/amd64.
184
666de3fd
MC
1852003-10-17 Michael Chastain <mec@shout.net>
186
187 * config/djgpp/fnchange.lst: Remove dead lines for:
188 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
189 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
190 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
191 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
192 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
193 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
194 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
195 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
196 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
197 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
198 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
199 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
200 gdb/config/sparc/tm-sparclite.h,
201 gdb/gdbtk/generic/ChangeLog-2001,
202 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
203 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
204 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
205 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
206 gdb/testsuite/gdb.mi/mi0-var-block.exp,
207 gdb/testsuite/gdb.mi/mi0-var-child.exp,
208 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
209 gdb/testsuite/gdb.mi/mi0-var-display.exp,
210 itcl/iwidgets3.0.0/demos/extfileselectionbox,
211 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
212 itcl/iwidgets3.0.0/demos/fileselectionbox,
213 itcl/iwidgets3.0.0/demos/fileselectiondialog,
214 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
215 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
216 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
217 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
218 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
219 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
220 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
221 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
222 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
223 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
224 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
225 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
226 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
227 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
228 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
229 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
230 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
231 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
232 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
233 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
234 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
235 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
236 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
237 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
238 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
239 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
240 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
241 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
242 itcl/iwidgets3.0.0/demos/html/shell.n.html,
243 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
244 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
245 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
246 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
247 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
248 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
249 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
250 itcl/iwidgets3.0.0/demos/scrolledcanvas,
251 itcl/iwidgets3.0.0/demos/scrolledframe,
252 itcl/iwidgets3.0.0/demos/scrolledhtml,
253 itcl/iwidgets3.0.0/demos/scrolledlistbox,
254 itcl/iwidgets3.0.0/demos/scrolledtext,
255 itcl/iwidgets3.0.0/demos/selectionbox,
256 itcl/iwidgets3.0.0/demos/selectiondialog,
257 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
258 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
259 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
260 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
261 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
262 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
263 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
264 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
265 itcl/iwidgets3.0.0/doc/scrolledframe.n,
266 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
267 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
268 itcl/iwidgets3.0.0/doc/scrolledtext.n,
269 itcl/iwidgets3.0.0/doc/selectionbox.n,
270 itcl/iwidgets3.0.0/doc/selectiondialog.n,
271 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
272 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
273 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
274 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
275 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
276 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
277 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
278 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
279 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
280 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
281 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
282 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
283 itcl/iwidgets3.0.0/generic/selectionbox.itk,
284 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
285 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
286 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
287 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
288 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
289 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
290 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
291 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
292 itcl/iwidgets3.0.0/tests/scrolledframe.test,
293 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
294 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
295 itcl/iwidgets3.0.0/tests/scrolledtext.test,
296 itcl/iwidgets3.0.0/tests/selectionbox.test,
297 itcl/iwidgets3.0.0/tests/selectiondialog.test,
298 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
299 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
300 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
301 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
302 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
303 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
304 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
305 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
306 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
307 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
308 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
309 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
310 tk/mac/tkMacProjects.sit.hqx.
311
1e3ff5ad
AC
3122003-10-17 Andrew Cagney <cagney@redhat.com>
313
8db32d44
AC
314 * target.c (target_section_by_addr): New function.
315 (do_xfer_memory): Use "target_section_by_addr".
316 * target.h (target_section_by_addr): Declare.
317
1e3ff5ad
AC
318 * target.h (struct target_ops): Add "to_read_partial" and
319 "to_write_partial", delete "to_query".
320 (target_read_partial, target_write_partial): Declare.
321 (target_read, target_write): Declare.
322 (target_query): Delete macro.
323 * target.c (target_read_partial): New function.
324 (target_write_partial, target_read, target_write): New function.
325 (update_current_target): Delete inheritance of "to_query". Add
326 comments about "to_read_partial" and "to_write_partial".
327 (debug_to_partial_read, debug_to_partial_write): New functions.
328 (debug_to_query): Delete function.
329 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
330 instead of "to_query".
331 * remote.c (remote_read_partial): Replace "remote_query".
332 (init_remote_ops): Set "to_read_partial" instead of "to_query".
333 (init_remote_async_ops): Ditto.
334 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
335 "target_read_partial" instead of "target_query".
336 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
337 Use "target_read_partial" instead of "target_query".
338
48c66725
JJ
3392003-10-17 Jeff Johnston <jjohnstn@redhat.com>
340
341 * frame.h (struct frame_id): Add new field: special_addr.
342 (frame_id_build_special): New prototype.
343 * frame.c (frame_id_build_special): New function.
344 (frame_id_build): Change to call frame_id_build_special().
345 (frame_id_eq): Change to also test special_addr field.
346 (frame_id_inner): Update comment.
347
7998dfc3
AC
3482003-10-17 Andrew Cagney <cagney@redhat.com>
349
350 * target.c (update_current_target): Perform the target cleanup.
351 Put the target stack beneath the squashed "current_target".
352 (add_target): Delete disabled call to "cleanup_target".
353 (cleanup_target): Delete function.
354 (push_target, unpush_target): Do not call "cleanup_target".
355
9c04404e 3562003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
357
358 * target.c (target_stack): Change to a static target_ops.
359 (update_current_target): Walk the "struct target_ops" stack.
360 (pop_target, do_xfer_memory, target_info): Ditto.
361 (find_target_beneath): Ditto.
362 (push_target): Rewrite to use the "struct target_ops" stack.
363 (unpush_target): Ditto.
364 * target.h (struct target_stack_item): Delete definition.
365 (target_stack): Delete declaration.
366 (struct target_ops): Add field "beneath".
367
c98a2b49 3682003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
369
370 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
371 declaration.
372 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
373 (h8300_examine_prologue): Use h8300_normal_mode flag
374 (h8300_gdbarch_init): Set architecture info for normal mode
375
506fb367
DJ
3762003-10-16 Daniel Jacobowitz <drow@mvista.com>
377
378 * remote.c (remote_protocol_vcont): New variable.
379 (set_remote_protocol_vcont_packet_cmd): New function.
380 (show_remote_protocol_vcont_packet_cmd): New function.
381 (init_all_packet_configs): Handle remote_protocol_vcont.
382 (remote_vcont_probe): New function.
383 (remote_vcont_resume): New function.
384 (remote_resume): Use it.
385 (remote_async_resume): Call remote_resume.
386 (_initialize_remote): Add verbose-resume packet commands.
387
65815ea1
AC
3882003-10-16 Andrew Cagney <cagney@redhat.com>
389
390 * infrun.c (handle_inferior_event): Add comment about
391 "frame_id_inner" being too weak.
392
40324f1b
EZ
3932003-10-16 Elena Zannoni <ezannoni@redhat.com>
394
395 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
396 second parameter, which is always null. Remove
397 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
398 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
399 accordingly.
400 * somsolib.c (som_solib_create_inferior_hook,
401 som_solib_desire_dynamic_linker_symbols): Update callers.
402 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
403
4042003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
405
406 * remote-m32r-sdi.c : New file, interface to m32r on-chip
407 debug interface, SDI (Scalable Debug Interface).
408 * NEWS: Mention m32r SDI protocol was supported.
409 * Makefile.in (remote-m32r-sdi.o): Add build rule.
410 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
411
51931cbb
JJ
4122003-10-15 Jeff Johnston <jjohnstn@redhat.com>
413
414 * ia64-linux-tdep.c: Include gdbcore.h.
415 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
416 (ia64_linux_sigcontext_register_addr): Find the address of the
417 sigcontext area stored in the sigframe instead of using
418 a magic offset constant.
419
84e7fd53
AC
4202003-10-15 Andrew Cagney <cagney@redhat.com>
421
422 * remote.c (remote_search): Delete function.
423 * target.h (target_search): Delete disabled macro.
424 (struct target_ops): Delete disabled field "to_search".
425
0f4d7c52
KB
4262003-10-14 Kevin Buettner <kevinb@redhat.com>
427
428 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
429 instead of deprecated_inside_entry_file().
430
2e952408
CV
4312003-10-14 Corinna Vinschen <vinschen@redhat.com>
432
433 * sh-tdep.c: Fix copy/paste hangover in comment.
434 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
435 mode.
436 (sh3e_sh4_extract_return_value): Ditto.
437
7e86466e
RH
4382003-10-13 Richard Henderson <rth@redhat.com>
439
440 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
441 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
442 match c_val_print a bit closer.
443
46a16dba
KB
4442003-10-13 Kevin Buettner <kevinb@redhat.com>
445
446 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
447 (frv_gdbarch_adjust_breakpoint_address): New function.
448 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
449 method.
450
76897487
KB
4512003-10-13 Kevin Buettner <kevinb@redhat.com>
452
453 * breakpoint.h (struct breakpoint): Add new member
454 ``requested_address''.
455 * breakpoint.c (breakpoint_adjustment_warning)
456 (adjust_breakpoint_address): New static functions.
457 (print_it_typical): Issue warning if breakpoint's address is different
458 from its requested address.
459 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
460 (breakpoint_re_set_one): Set breakpoint's
461 ``requested_address'' field. Set ``address'' field to the
462 result of calling adjust_breakpoint_address() on the requested
463 address.
464
a1131521
KB
4652003-10-13 Kevin Buettner <kevinb@redhat.com>
466
467 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
468 * gdbarch.h, gdbarch.c: Regenerate.
469
6ce6d90f
MK
4702003-10-11 Mark Kettenis <kettenis@gnu.org>
471
155c1d33
MK
472 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
473 TDEP->sc_num_regs.
474
8a96bc77
MK
475 * i386fbsd-tdep.c: New file.
476 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
477 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
478 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
479 i386bsd-tdep.c.
480 (_initialize_i386fbsd_tdep): New function.
481 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
482 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
483 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
484 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
485 TDEP->sc_num_regs.
486 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
487 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
488 to initialize TDEP->sc_num_regs.
489 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
490 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
491 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
492 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
493 FreeBSD ELF OS/ABI's here.
494 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
495 (i386fbsd-tdep.o): New target.
496 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
497 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
498
477f40d1
MK
499 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
500 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
501 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
502 in initialization of TDEP->sc_num_regs.
503
c6b33596
MK
504 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
505 (x86_64_init_abi): Initialize regset_from_core_section if
506 appropriate.
507
8446b36a
MK
508 * i386-tdep.c (i386_regset_from_core_section): New function.
509 (i386_gdbarch_init): Initialize regset_from_core_section if
510 appropriate.
511 * i386-tdep.h (i386_regset_from_core_section): New declaration.
512
c783cbd6
MK
513 * i386-tdep.h (struct regset): Declare opaque.
514
6ce6d90f
MK
515 * gdbarch.sh (regset_from_core_section): New method.
516 (struct regset): Declare opaque.
517 * gdbarch.c, gdbarch.h: Regenerated.
518
b98ed7be
AM
5192003-10-11 Alan Modra <amodra@bigpond.net.au>
520
521 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
522 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
523 Correct test for pc within section.
524
f6214256
MK
5252003-10-11 Mark Kettenis <kettenis@gnu.org>
526
527 * gdbarch.sh: Remove trailing whitepsace from comments.
528
a8f4cde1
RM
5292003-10-08 Roland McGrath <roland@redhat.com>
530
531 * gcore.c (make_mem_sec): Function removed, folded into ...
532 (gcore_create_callback): ... here. To omit a section, clear its
533 SEC_LOAD bit rather than zeroing its size.
534 Omit read-only sections only if they correspond to a known disk file.
535 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
536
74276724
MS
5372003-10-10 Michael Snyder <msnyder@redhat.com>
538
539 * d10v-tdep.c: Fix typo in comment.
540
e754ae69
AC
5412003-10-10 Andrew Cagney <cagney@redhat.com>
542
543 * rs6000-tdep.c (e500_store_return_value): Delete function.
544 (e500_extract_return_value): Delete function.
545 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
546 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
547 "ppc_sysv_abi_restore_return_value" where applicable.
548 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
549 (ppc_sysv_abi_extract_return_value): Declare.
550 (ppc_sysv_abi_broken_store_return_value): Declare.
551 (ppc_sysv_abi_broken_extract_return_value): Declare.
552 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
553 * ppc-sysv-tdep.c (return_value_convention): Move definition to
554 start of file.
555 (do_ppc_sysv_return_value): New function.
556 (ppc_sysv_abi_extract_return_value): New function.
557 (ppc_sysv_abi_store_return_value): New function.
558 (ppc_sysv_abi_broken_extract_return_value): New function.
559 (ppc_sysv_abi_broken_store_return_value): New function.
560 (ppc_sysv_abi_use_struct_convention): Call
561 do_ppc_sysv_return_value.
562
8d4ce20a
JB
5632003-10-10 J. Brobecker <brobecker@gnat.com>
564
565 * blockframe.c (inside_main_func): No longer use symbol_lookup()
566 to lookup the main function symbol.
567
afce3d2a
CV
5682003-10-10 Corinna Vinschen <vinschen@redhat.com>
569
570 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
571 types correctly.
572 (sh_push_dummy_call_fpu): Fix argument passing rules.
573 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
574 float types.
575 (sh3e_sh4_store_return_value): Ditto.
576
7fe958be
EZ
5772003-10-10 Elena Zannoni <ezannoni@redhat.com>
578
579 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
580 comment.
581
3f997a97
CV
5822003-10-10 Corinna Vinschen <vinschen@redhat.com>
583
584 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
585 more readable code. Accomodate passing of bitfields.
586
8be9034a
AC
5872003-10-10 Andrew Cagney <cagney@redhat.com>
588
589 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
590 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
591 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
592 * ppc-sysv-tdep.c: Include "gdb_assert.h".
593 (ppc64_sysv_abi_push_dummy_call): New function.
594 (ppc64_sysv_abi_broken_push_dummy_call): New function.
595 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
596 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
597
85a453d5
KI
5982003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
599
600 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
601 * README: Ditto.
602 * d10v-tdep.c: Ditto.
603 * h8300-tdep.c: Ditto.
604 * remote-e7000.c: Ditto.
605 * remote-hms.c: Ditto.
606 * ser-e7kpc.c: Ditto.
607 * sh-stub.c: Ditto.
608 * sh-tdep.c: Ditto.
609 * sh-tdep.h: Ditto.
610 * sh3-rom.c: Ditto.
611 * sh64-tdep.c: Ditto.
612 * top.c: Ditto.
613 * wince.c: Ditto.
614 * config/d10v/d10v.mt: Ditto.
615 * config/sh/embed.mt: Ditto.
616 * config/sh/linux.mt: Ditto.
617 * config/sh/tm-linux.h: Ditto.
618 * config/sh/tm-sh.h: Ditto.
619 * config/sh/wince.mt: Ditto.
620
221c12ff
AC
6212003-10-09 Andrew Cagney <cagney@redhat.com>
622
623 * ppc-tdep.h (struct type): Declare opaque.
624 * x86-64-tdep.h (struct regcache): Declare opaque.
625 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
626 coding style.
627
ef5200c1
AC
6282003-10-09 Andrew Cagney <cagney@redhat.com>
629
630 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
631 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
632 (SOFTWARE_SINGLE_STEP_P): Ditto.
633 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
634 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
635 (SOFTWARE_SINGLE_STEP_P): Ditto.
636 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
637 software_single_step to rs6000_software_single_step.
a8f4cde1 638
9644bbdd
AC
6392003-10-09 Andrew Cagney <cagney@redhat.com>
640
641 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
642
db72fa6b
MS
6432003-10-09 Michael Snyder <msnyder@redhat.com>
644
f3efb16c
MS
645 * frame.h: Fix typo in comment.
646 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
647 * d10v-tdep.c: Random whitespace/comment tweaks.
648
9a5cef92
EZ
6492003-10-09 Elena Zannoni <ezannoni@redhat.com>
650
651 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 652 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 653 on stack.
a8f4cde1 654
9a5cef92
EZ
655 Based on input by Stephen Clarke (stephen.clarke@superh.com):
656 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
657 in detail.
a8f4cde1 658
0f317a0c
DJ
6592003-10-09 Daniel Jacobowitz <drow@mvista.com>
660
661 * remote-mips.c (mips_initialize): Remove unneeded call to
662 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
663
bbab2f46
DJ
6642003-10-09 Daniel Jacobowitz <drow@mvista.com>
665
666 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
667 a memory pointer.
668
550950b8
JJ
6692003-10-08 Jeff Johnston <jjohnstn@redhat.com>
670
671 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
672 for any lwp we resume.
673 (running_callback): Add lwps that have pending status events
674 against them to be considered running.
675
15c69bc7
KI
6762003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
677
678 * m32r-tdep.c : Include "dis-asm.h".
679 * Makefile.in (m32r-tdep.o): Update dependencies.
680
51065942
JB
6812003-10-06 J. Brobecker <brobecker@gnat.com>
682
683 * completer.h (get_gdb_completer_word_break_characters): Delete.
684 * completer.c: include language.h.
685 (gdb_completer_word_break_characters): Delete.
686 (get_gdb_completer_word_break_characters): Delete.
687 (location_completer): Use the word break characters of the current
688 language.
689 (complete_line): Likewise.
690 (line_completion_function): Likewise.
691 (skip_quoted_chars): Likewise.
692 * Makefile.in (completer.o): Add dependency on language.h.
693 * top.c (init_main): Set the readline word break characters
694 to GDB's default word break characters.
695
6084f43a
JB
6962003-10-06 J. Brobecker <brobecker@gnat.com>
697
698 * language.h (language_defn): new field, la_word_break_characters.
699 * language.c (unknown_language_defn): Set new field to
700 default_word_break_characters.
701 (auto_language_defn): Likewise.
702 (local_language_defn): Likewise.
703 * ada-lang.c (ada_language_defn): Likewise.
704 * c-lang.c (c_language_defn): Likewise.
705 (cplus_language_defn): Likewise.
706 (asm_language_defn): Likewise.
707 (minimal_language_defn): Likewise.
708 * f-lang.c (f_language_defn): Likewise.
709 * jv-lang.c (java_language_defn): Likewise.
710 * m2-lang.c (m2_language_defn): Likewise.
711 * objc-lang.c (objc_language_defn): Likewise.
712 * p-lang.c (pascal_language_defn): Likewise.
713 * scm-lang.c (scm_language_defn): Likewise.
714
944fcfab
AC
7152003-10-06 Andrew Cagney <cagney@redhat.com>
716
717 * ppc-sysv-tdep.c: Re-indent.
718
9f0a5303
JB
7192003-10-06 J. Brobecker <brobecker@gnat.com>
720
721 * language.h (default_word_break_characters): Add prototype.
722 * language.c (default_word_break_characters): New function.
723
7270b6ed
AS
7242003-10-06 Andreas Schwab <schwab@suse.de>
725
726 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
727 with %eax.
728
a5d61f66
AC
7292003-10-06 Andrew Cagney <cagney@redhat.com>
730
731 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
732 "h8500-tdep.c".
733 (z8k-tdep.o): Delete custom build rule.
734
28a86f5c
AC
7352003-10-06 Andrew Cagney <cagney@redhat.com>
736
1bfd8a83
AC
737 * Makefile.in: Update all dependencies.
738
17144ef8
AC
739 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
740 No longer list PA as as obsolete candidate. List m32r as
741 broken instead of obsolete.
a8f4cde1 742
a5679ae5
AC
743 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
744 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
745 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
746 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
747 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
748 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
749 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
750 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
751 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
752 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
753 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
754 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
755 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
756 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
757 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
758 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
759 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
760 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
761 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
762 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
763 * config/z8k/z8k.mt: Ditto.
764
4a8269c0
AC
765 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
766 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
767 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
768 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
769 sparclite were removed.
770 * configure.host, configure.tgt: Remove corresponding tuples.
771
41989fcd
AC
772 * breakpoint.c, breakpoint.h: Remove obsolete code.
773 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
774 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
775 * stabsread.h, xcoffread.c: Ditto.
776
28a86f5c
AC
777 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
778 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
779 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
780 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
781
4efdaa0d
DL
7822003-10-06 David Lecomber <dsl@sources.redhat.com>
783
784 * f-valprint.c: Reformatting
785
ae53de43
MK
7862003-10-06 Mark Kettenis <kettenis@gnu.org>
787
a8bb57e7
MK
788 * x86-64-tdep.c: Remove duplicate comment.
789
ae53de43
MK
790 * x86-64-tdep.c (x86_64_store_return_value): Don't use
791 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
792 names for return values. This fixes a bug since we looked at %rbx
793 instead of %rdx.
794
473f17b0
MK
7952003-10-05 Mark Kettenis <kettenis@gnu.org>
796
2c261fae
MK
797 * x86-64-tdep.c: Include "regset.h".
798
473f17b0
MK
799 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
800 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
801 sizeof_fpregset.
802 * i386-tdep.c: Include "regset.h".
803 (i386_supply_gregset): New function.
804 (i386_supply_fpregset): New function.
805 (i386_gdbarch_init): Initialze register set-related members of
806 TDEP.
807 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
808 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
809
afd48b75
AC
8102003-10-03 Andrew Cagney <cagney@redhat.com>
811
812 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
813 set extract_return_value, store_return_value and
814 use_struct_convention to ppc64_sysv_abi_extract_return_value,
815 ppc64_sysv_abi_store_return_value and
816 ppc64_sysv_abi_use_struct_convention.
817 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
818 (ppc64_sysv_abi_store_return_value): Declare.
819 (ppc64_sysv_abi_use_struct_convention): Declare.
820 * ppc-sysv-tdep.c (enum return_value_convention): Define.
821 (ppc64_sysv_abi_extract_return_value): New function.
822 (ppc64_sysv_abi_store_return_value): New function.
823 (ppc64_sysv_abi_use_struct_convention): New function.
824 (ppc64_sysv_abi_return_value): New function.
825
9b540880
AC
8262003-10-03 Andrew Cagney <cagney@redhat.com>
827
828 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
829 convert a descriptor to a function when it's in the ".opd"
830 section.
831
8748518b
CV
8322003-10-03 Corinna Vinschen <vinschen@redhat.com>
833
834 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
835 reg_size to keep GCC silent.
836
0fd85043
CV
8372003-10-03 Corinna Vinschen <vinschen@redhat.com>
838
839 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
840 base for DW_EH_PE_textrel encodings.
841 (read_encoded_value): Add a DW_EH_PE_textrel case.
842 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
843 section.
844
37b517aa
MK
8452003-10-03 Mark Kettenis <kettenis@gnu.org>
846
847 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
848
12c266ea
AC
8492003-10-02 Andrew Cagney <cagney@redhat.com>
850
851 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
852 REGISTER_RAW_SIZE.
853 * gdbarch.h, gdbarch.c: Re-generate.
854 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
855 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
856 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
857 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
858 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
859 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
860 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
861 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
862 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
863 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
864 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
865 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
866 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
867 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
868 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
869 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 870
78ba4af6
JB
8712003-10-02 Jim Blandy <jimb@redhat.com>
872
873 * dwarf2read.c (struct die_info): Doc fix.
874
617daa0e
CV
8752003-10-02 Corinna Vinschen <vinschen@redhat.com>
876
877 * sh-tdep.c: Running thru gdb_indent.sh.
878
e5e33cd9
CV
8792003-10-02 Corinna Vinschen <vinschen@redhat.com>
880
881 * sh-tdep.c (sh_justify_value_in_reg): New function.
882 (sh_stack_allocsize): Ditto.
883 (flt_argreg_array): New array used for floating point argument
884 passing.
885 (sh_init_flt_argreg): New function.
a8f4cde1 886 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
887 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
888 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
889 Fix argument passing strategy.
890 (sh_push_dummy_call_nofpu): Ditto.
891
5fe830e4
AC
8922003-10-01 Andrew Cagney <cagney@redhat.com>
893
894 * value.h (register_value_being_returned): Declare. Replace
895 "value_being_returned".
896 * infcall.c (call_function_by_hand): Use
897 register_value_being_returned.
898 * infcmd.c (print_return_value): Call
899 "register_value_being_returned", handle struct return locally.
900 * values.c (register_value_being_returned): New function. Replace
901 "value_being_returned".
a8f4cde1 902
5fe830e4 9032003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
904
905 * linux-proc.c (linux_do_registers): New function.
906 (linux_make_note_section): Use linux_do_registers in case of
907 single threaded inferior programs.
908
64f395bf
AC
9092003-10-01 Andrew Cagney <cagney@redhat.com>
910
911 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
912 use STRUCT_ADDR. When not using "struct return convention", pass
913 "0" to "value_being_returned". Add FIXMEs.
914 * infcmd.c (print_return_value): Pass an explicit 0/1 to
915 value_being_returned. Add comments.
916 * values.c (value_being_returned): Add fixme.
917 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
918 (hppa_value_returned_from_stack): Add FIXME.
919
639d11d3
DC
9202003-09-30 David Carlton <carlton@kealia.com>
921
922 * dwarf2read.c (struct die_info): Add 'parent' field; replace
923 'has_children' and 'next' by 'child' and 'sibling'.
924 (read_comp_unit): Rework algorithm, breaking body into
925 read_die_and_children and read_die_and_siblings.
926 (read_die_and_children, read_die_and_siblings): New.
927 (read_full_die): Add 'has_children' argument; set it instead of
928 the die's 'has_children' field. Minor formatting cleanup.
929 (free_die_list): Use die->child and die->sibling instead of
930 die->next.
931 (dump_die_list): Ditto.
932 (sibling_die): Use die->sibling.
933 (psymtab_to_symtab_1): Use die's 'child' field in place of its
934 'has_children' and 'next' fields.
a8f4cde1
RM
935 (process_die, read_file_scope, read_func_scope)
936 (read_lexical_block_scope, read_structure_scope)
937 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
938 (read_namespace, read_subroutine_type, dump_die): Ditto.
939
5bffac25
AC
9402003-09-30 Andrew Cagney <cagney@redhat.com>
941
942 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
943 to 224, not 220.
944
f30992d4
AC
9452003-09-30 Andrew Cagney <cagney@redhat.com>
946
947 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
948 REGISTER_VIRTUAL_SIZE.
949 * gdbarch.h, gdbarch.c: Regenerate.
950 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
951 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
952 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
953
2e092625
AC
9542003-09-29 Andrew Cagney <cagney@redhat.com>
955
956 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
957 DEPRECATED_REGISTER_VIRTUAL_TYPE.
958 * gdbarch.h, gdbarch.c: Regenerate.
959 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
960 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
961
962 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
963 * remote-vxmips.c (vx_read_register): Ditto.
964 * remote-vx68.c (vx_read_register): Ditto.
965 * gnu-nat.c (inf_validate_procs): Ditto.
966
7a5dd6ee
JB
9672003-09-29 J. Brobecker <brobecker@gnat.com>
968
969 * infcall.c (call_function_by_hand): Fix build failure
970 introduced in the previous change to this file.
971
1fe43d45
AC
9722003-09-29 Andrew Cagney <cagney@redhat.com>
973
974 * NEWS: Mention Objective-C.
975
e28a332c
JG
9762003-09-29 Jerome Guitton <guitton@act-europe.fr>
977
978 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
979 test if the register has been saved on the stack.
980 (arm_scan_prologue_cache): When analysing the instruction
981 "str lr, [sp, #-4]", save the address where lr has been stored.
982
9ff63c35
AC
9832003-09-28 Andrew Cagney <cagney@redhat.com>
984
7f5f525d
AC
985 * frame.c (frame_read_unsigned_register): Delete function.
986 * frame.h (frame_read_unsigned_register): Delete declaration.
987 * sparc-tdep.c (sparc_init_extra_frame_info): Use
988 get_frame_register_unsigned.
989 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
990 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
991 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 992
7f5f525d
AC
993 * frame.h (frame_read_register): Delete declaration.
994 * frame.c (frame_read_register): Delete function.
995 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
996 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
997 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
998 * mips-tdep.c (mips_register_to_value): Ditto.
999 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1000 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1001
1002 * frame.c (frame_read_signed_register): Delete function.
1003 (frame_read_unsigned_register): Update comments.
1004 * frame.h (frame_read_signed_register): Delete declaration.
1005 * h8300-tdep.c (h8300_print_register): Use
1006 get_frame_register_signed.
1007 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1008
9ff63c35
AC
1009 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1010 Rename VALUE_RETURNED_FROM_STACK.
1011 * infcmd.c (print_return_value): Update.
1012 * infcall.c (call_function_by_hand): Update.
1013
41d041d6
MK
10142003-09-28 Mark Kettenis <kettenis@gnu.org>
1015
1016 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1017 regcache argument and reverse the order of the other two
1018 arguments. Remove local regcache variable. Determine
1019 architecture from REGCACHE. Update comments.
1020 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1021 reverse the order of the other two arguments. Remove local
1022 regcache variable. Determine architecture from REGCACHE. Update
1023 comments.
1024 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1025 prototypes. Update comments.
1026 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1027 comment.
1028 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1029 Update.
1030 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1031 * i386-interix-nat.c (supply_fpregset): Update.
1032 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1033 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1034 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1035 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1036 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1037 Update.
1038 * i386obsd-tdep.c (fetch_core_registers): Update.
1039 * i386v4-nat.c (supply_fpregset): Update.
1040 * x86-64-linux-nat.c (supply_fpregset): Update.
1041 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1042
1cb97e17
MK
10432003-09-27 Mark Kettenis <kettenis@gnu.org>
1044
5716833c
MK
1045 * i386-tdep.h: Put opaque declarations in alphabetical
1046 order. Remove spurious whitespace.
1047 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1048 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1049 * i386-tdep.c (MM0_REGNUM): Remove define.
1050 (i386_mmx_regnum_p): Add gdbarch argument.
1051 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1052 Rewrite using new macro definitions for FPU/SSE registers.
1053 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1054 definitions from i387-tdep.h.
1055 (i386_register_name): Update.
1056 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1057 new macro definitions for FPU/SSE registers.
1058 (i386_extract_return_value): Determine whether floating-point
1059 registers are present by examining REGCACHE's architecture.
1060 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1061 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1062 FPU/SSE registers.
1063 (i386_register_type): Update.
1064 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1065 definitions for FPU registers. Use REGCACHE's architecture to
1066 determine the appropriate register numbers.
1067 (i386_pseudo_register_read, i386_pseudo_register_write,
1068 i386_register_reggroup_p): Update.
1069 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1070 TDEP->mm0_regnum.
1071 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1072 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1073 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1074 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1075 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1076 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1077 *' to `void *'.
1078 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1079 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1080 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1081 definitions for FPU/SSE registers.
1082 (FXSAVE_MXCSR_ADDR): New define.
1083 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1084 TDEP->mm0_regnum.
1085 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1086 (I387_ST0_REGNUM): Define.
1087
41d35cb0
MK
1088 * regcache.h (get_regcache_arch): New prototype.
1089 * regcache.c (get_regcache_arch): New function.
1090
54e74f72
MK
1091 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1092 whitespace.
1093
1cb97e17
MK
1094 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1095 Initialize using ARRAY_SIZE.
1096
0968aa8c
AC
10972003-09-27 Andrew Cagney <cagney@redhat.com>
1098
1099 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1100 "init_frame_pc_default".
1101 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1102 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1103 * vax-tdep.c (vax_gdbarch_init): Update.
1104 * v850-tdep.c (v850_gdbarch_init): Update.
1105 * sh64-tdep.c (sh64_gdbarch_init): Update.
1106 * s390-tdep.c (s390_gdbarch_init): Update.
1107 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1108 * mcore-tdep.c (mcore_gdbarch_init): Update.
1109 * h8300-tdep.c (h8300_gdbarch_init): Update.
1110 * cris-tdep.c (cris_gdbarch_init): Update.
1111 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1112
54c84734
MK
11132003-09-26 Mark Kettenis <kettenis@gnu.org>
1114
1115 * regset.h: New file.
1116 * Makefile.in (regset_h): Add.
1117
1b1d3794
AC
11182003-09-25 Andrew Cagney <cagney@redhat.com>
1119
1120 * frame.h (deprecated_frame_saved_regs): Rename
1121 get_frame_saved_regs.
1122 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1123 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1124 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1125 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1126 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1127
e6beb428
AC
11282003-09-25 Andrew Cagney <cagney@redhat.com>
1129
1130 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1131 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1132 and Java.
1133 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1134 arm*-*-* do not use the new frame code.
1135
710122da
DC
11362003-09-25 David Carlton <carlton@kealia.com>
1137
1138 * c-exp.y: Remove 'register' declarations.
1139 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1140
79c2c32d
DC
11412003-09-25 David Carlton <carlton@kealia.com>
1142
1143 * c-exp.y: Include cp-support.h. Add qualified_type.
1144 (yylex): Delete nested type hack; add comments.
1145 * cp-namespace.c (cp_lookup_nested_type): New function.
1146 * cp-support.h: Declare cp_lookup_nested_type.
1147 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1148 instead of value_struct_elt_for_reference.
1149 * valops.c: Include cp-support.h.
1150 (value_aggregate_elt): New function.
1151 (value_namespace_elt): Ditto.
1152 (value_struct_elt_for_reference): Make static.
1153 * value.h: Delete declaration of value_struct_elt_for_reference;
1154 add declaration for value_aggregate_elt.
1155 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1156 (valops.o): Ditto.
1157
898c62f5
DJ
11582003-09-25 Daniel Jacobowitz <drow@mvista.com>
1159
1160 * stack.c: Include "reggroups.h".
1161 (frame_info): Only display registers in all_reggroup.
1162 * Makefile.in (stack.o): Update dependencies.
1163
28cd8767
JG
11642003-09-25 Jerome Guitton <guitton@act-europe.fr>
1165
1166 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1167 "add ip, sp #n" in the prologue.
1168 (arm_scan_prologue): Ditto.
1169
a4ab2b5d
JG
11702003-09-25 Jerome Guitton <guitton@act-europe.fr>
1171
1172 * MAINTAINERS (write after approval): Add myself.
1173
3f244638
AS
11742003-09-25 Andreas Schwab <schwab@suse.de>
1175
1176 * m68k-tdep.c: Include "dwarf2-frame.h".
1177 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1178 * Makefile.in (m68k-tdep.o): Update dependencies.
1179
1c0159e0
CV
11802003-09-25 Corinna Vinschen <vinschen@redhat.com>
1181
1182 * sh-tdep.c (struct frame_extra_info): Remove.
1183 (struct sh_frame_cache): New structure.
1184 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1185 (GET_TARGET_REG): Ditto but target register.
1186 (GET_PUSHED_REG): Remove.
1187 (IS_MOV_ARG_TO_REG): New macro.
1188 (IS_MOV_ARG_TO_IND_R14): New macro.
1189 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1190 (IS_MOVW_PCREL_TO_REG): New macro.
1191 (IS_MOVL_PCREL_TO_REG): New macro.
1192 (IS_SUB_REG_FROM_SP): New macro.
1193 (IS_ARG_MOV): Remove.
1194 (IS_MOV_TO_R14): Remove.
1195 (IS_RESTORE_FP): New macro.
1196 (IS_RTS): New macro.
1197 (IS_LDS): New macro.
1198 (IS_MOV_FP_SP): New macro.
1199 (IS_ADD_REG_TO_FP): New macro.
1200 (IS_ADD_IMM_FP): New macro.
1201 (sh_skip_prologue_hard_way): Remove.
1202 (sh_saved_pc_after_call): Remove.
1203 (sh_frame_chain): Remove.
1204 (sh_find_callers_reg): Remove.
a8f4cde1 1205 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1206 (sh_fp_frame_init_saved_regs): Remove.
1207 (sh_init_extra_frame_info): Remove.
1208 (sh_analyze_prologue): New function.
1209 (sh_skip_prologue): Remove deprecated code. Rely on new function
1210 sh_analyze_prologue when after_prologue fails.
1211 (sh_frame_saved_pc): Remove.
1212 (sh_alloc_frame_cache): New function.
1213 (sh_frame_cache): Ditto.
1214 (sh_frame_prev_register): Ditto.
1215 (sh_frame_this_id): Ditto.
1216 (sh_frame_unwind): New structure defining the heuristic frame
1217 sniffer interface.
1218 (sh_frame_sniffer): New function.
1219 (sh_unwind_sp): Ditto.
1220 (sh_unwind_pc): Ditto.
1221 (sh_unwind_dummy_id): Ditto.
1222 (sh_frame_base_address): Ditto.
1223 (sh_frame_base): New structure defining new frame base code.
1224 (sh_in_function_epilogue_p): New function.
1225 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1226 code and to call all new code instead. Initialize dwarf2 and
1227 heuristic frame sniffer.
1228
5f9769d1
PH
12292003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1230
a8f4cde1
RM
1231 * parser-defs.h (struct exp_descriptor): New definition, containing
1232 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1233 evaluating expressions.
1234 (exp_descriptor_standard): Declare new variable.
1235 (print_subexp): Make global and declare here (from expprint.c).
1236 (dump_subexp): Ditto.
1237 (dump_subexp_body_standard): Declare.
1238 (operator_length_standard): Declare.
1239 (op_name_standard): Declare.
1240 (print_subexp): Declare.
1241 (print_subexp_standard): Declare.
1242
1243 * language.h (struct language_defn): Add la_exp_desc field to hold
1244 pointer to table for language-specific operators.
1245 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1246
1247 * parse.c (operator_length): Move most code to new
5f9769d1 1248 operator_length_standard function. Use language-specific information.
a8f4cde1 1249 (operator_length_standard): New function taking most code from
5f9769d1
PH
1250 operator_length.
1251 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1252
1253 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1254 and OP_EXTENDED_LAST.
a8f4cde1
RM
1255
1256 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1257 Make global; remove static declaration.
1258 Move most code to print_subexp_standard.
a8f4cde1 1259 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1260 print_subexp.
1261 (op_name): Add expression to argument signature.
a8f4cde1 1262 Use langauge-specific op_name.
5f9769d1
PH
1263 Move most code to op_name_standard.
1264 (op_name_standard): New function, containing code formerly in op_name.
1265 (dump_subexp): Use new version of op_name function.
1266 Use language-specific dump_subexp_body, and move most existing code to
1267 dump_subexp_body_standard.
1268 (dump_raw_expression): Use new op_name interface.
1269 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1270 (dump_subexp_body_standard): New function, containing code formerly
1271 in dump_subexp_body.
a8f4cde1 1272
5f9769d1
PH
1273 * language.c (unknown_language): Add default la_exp_desc field and
1274 remove evaluate_exp field.
1275 (auto_language): Ditto.
1276 (local_language): Ditto.
1277 * f-lang.c (f_language_defn): Ditto.
1278 * c-lang.c (c_language_defn): Ditto.
1279 (cplus_language_defn): Ditto.
1280 (asm_language_defn): Ditto.
1281 (minimal_language_defn): Ditto.
1282 * p-lang.c (pascal_language_defn): Ditto.
1283 * m2-lang.c (m2_language_defn): Ditto.
1284 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1285
1286 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1287 Java-specific expression evaluator.
1288 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1289 field.
a8f4cde1 1290 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1291 Scheme-specific expression evaluator.
1292 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1293 field.
1294 * objc-lang.c (print_object_command): Take evaluate_exp from the
1295 la_exp_desc field.
a8f4cde1 1296
5f9769d1 1297 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1298
1299 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1300 la_exp_desc's type.
1301 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1302
24daaebc
PH
13032003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1304
1305 * parser-defs.h (operator_length): Declare.
a8f4cde1 1306
24daaebc
PH
1307 * parse.c (length_of_subexp): Use operator_length to get operator
1308 lengths and arities for operators.
1309 Move most code to new operator_length function.
a8f4cde1 1310 (operator_length): New function absorbing most code from
24daaebc
PH
1311 length_of_subexp.
1312 (prefixify_subexp): Remove large case and use operator_length instead.
1313 (parse_exp_1): Use renamings:
a8f4cde1 1314 dump_prefix_expression => dump_raw_expression and
24daaebc 1315 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1316
24daaebc
PH
1317 * expression.h (dump_prefix_expression): Rename to ...
1318 (dump_raw_expression): New name.
1319 (dump_postfix_expression): Rename to ...
1320 (dump_prefix_expression): New name.
a8f4cde1 1321
24daaebc
PH
1322 * expprint.c (dump_subexp): Make global. Add comment.
1323 Move most existing code to dump_subexp_body.
1324 (dump_subexp_body): New function.
1325 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1326 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1327 work before the expression is prefixified.
1328 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1329 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1330 that's what it does.
a8f4cde1 1331 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1332 prefixified expression.
1333 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1334
8c2957c4
JB
13352003-09-22 Jim Blandy <jimb@redhat.com>
1336
1337 * dwarf2read.c (read_array_type): When building the type for an
1338 array of unspecified length, make sure to choose the upper bound
1339 so that the array's total length comes out to be zero --- that's
1340 how we represent such arrays.
1341
592e3010
MC
13422003-09-22 Michael Chastain <mec@shout.net>
1343
1344 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1345
365c70b1
JJ
13462003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1347
1348 * top.c (quit_force): Fix indirect call to quit_target so
1349 a struct qt_args pointer is passed.
1350
5d6eb653
AC
13512003-09-22 Andrew Cagney <cagney@redhat.com>
1352
1353 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1354 * arch-utils.c (init_frame_pc_noop): Delete function.
1355 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1356 "init_frame_pc".
1357 * mips-tdep.c (mips_gdbarch_init): Ditto.
1358 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1359 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1360 declaration.
1361 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1362 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1363 declaration.
1364 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1365
b222a67f
AG
13662003-09-22 Anthony Green <green@redhat.com>
1367
1368 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1369 declaration.
1370
d5b5ac79
AC
13712003-09-20 Andrew Cagney <cagney@redhat.com>
1372
deafb061
AC
1373 * breakpoint.c: Eliminate ARGSUSED.
1374 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1375 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1376 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1377 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1378 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1379 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1380 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1381 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1382 * wince.c, remote-vx.c: Ditto.
1383
d5b5ac79
AC
1384 * cli/cli-script.c: Remove "register" attributes.
1385 * config/pa/tm-hppa.h: Ditto.
1386 * cli/cli-decode.c: Ditto.
1387 * cli/cli-cmds.c: Ditto.
1388
c6316faa
AC
13892003-09-19 Andrew Cagney <cagney@redhat.com>
1390
1391 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1392 DEPRECATED_NPC_REGNUM.
1393 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1394
f4f99b11
CF
13952003-09-19 Christopher Faylor <cgf@redhat.com>
1396
1397 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1398
1708f284
JB
13992003-09-19 Jim Blandy <jimb@redhat.com>
1400
1401 * macrotab.c (macro_include): Use the correct comparison to find
1402 the appropriate place for this inclusion in the list.
1403
b9fbf434
AC
14042003-09-19 Andrew Cagney <cagney@redhat.com>
1405
1406 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1407 (DEPRECATED_HPUX_TEXT_END): Define.
1408 (deprecated_hpux_text_end): Declare.
1409 (struct target_ops): Declare opaque.
1410 * hppah-nat.c (text_end): Make static.
1411 (deprecated_hpux_text_end): New function.
1412 * exec.c (text_end): Delete global variable.
1413 (NEED_TEXT_START_END): Do not define.
1414 (exec_file_attach): Replace code computing "text_end" code with
1415 call to DEPRECATED_HPUX_TEXT_END.
1416
5b03f266
AC
14172003-09-19 Andrew Cagney <cagney@redhat.com>
1418
1419 * utils.c (align_up, align_down): New functions.
1420 * defs.h (align_up, align_down): Declare.
1421 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1422 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1423 and "align_down".
1424 (round_up, round_down): Delete functions.
1425 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1426 "align_down".
1427 (ROUND_DOWN, ROUND_UP): Delete macros.
1428 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1429 * h8300-tdep.c: Replace "round_up" and "round_down" with
1430 "align_up" and "align_down".
1431 (round_up, round_down): Delete macros.
1432 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1433 "align_down".
1434 (ROUND_UP, ROUND_DOWN): Delete macros.
1435
51db5742
JB
14362003-09-18 J. Brobecker <brobecker@gnat.com>
1437
1438 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1439 hard-coded constant. Use the proper machine name instead.
1440
77949794
AC
14412003-09-17 Andrew Cagney <cagney@redhat.com>
1442
1443 * sparc-tdep.c (legacy_register_name): Delete function.
1444 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1445 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1446 * infcmd.c (gdb_register_name): Delete variable.
1447 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1448 REGISTER_NAME and "tm.h".
1449 * gdbarch.h, gdbarch.c: Regenerate.
1450 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1451 REGISTER_NAMES in comments.
1452 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1453 * m68klinux-nat.c (regmap): Ditto.
1454
b55c33cc
JB
14552003-09-17 Jim Blandy <jimb@redhat.com>
1456
1457 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1458
957e27ac
AC
14592003-09-17 Andrew Cagney <cagney@redhat.com>
1460
1461 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1462 (ppcnbsd_init_abi): Set "use_struct_convention" to
1463 "ppcnbsd_use_struct_convention".
1464
192cb3d4
MK
14652003-09-17 Mark Kettenis <kettenis@gnu.org>
1466
1467 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1468 * gdbarch.h, gdbarch.c: Regenerate.
1469 (stabs_argument_has_addr): New architecture method.
1470 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1471 * arch-utils.c: Include "buildsym.h".
1472 (default_stabs_argument_has_addr): New function.
1473 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1474 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1475
efe59759
AC
14762003-09-17 Andrew Cagney <cagney@redhat.com>
1477
1478 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1479 * gdbarch.h, gdbarch.c: Regenerate.
1480 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1481 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1482 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1483 * sparcnbsd-tdep.c: Update.
a8f4cde1 1484
62700349
AC
14852003-09-17 Andrew Cagney <cagney@redhat.com>
1486
1487 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1488 * gdbarch.h, gdbarch.c: Regenerate.
1489 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1490 * d10v-tdep.c, frame.c: Update.
1491 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1492 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1493 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1494 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1495 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1496 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1497 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1498 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1499 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1500 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1501 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1502 * config/pa/nm-hppah.h: Update.
1503
b9ff3018
AC
15042003-09-16 Andrew Cagney <cagney@redhat.com>
1505
1506 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1507 "use_struct_convention" to "ppc_linux_use_struct_convention".
1508 (ppc_linux_use_struct_convention): New function.
1509 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1510 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1511 "rs6000_use_struct_convention".
1512 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1513 declaration.
1514 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1515 Delete function.
1516
aa1ee363
AC
15172003-09-16 Andrew Cagney <cagney@redhat.com>
1518
1519 * buildsym.c: Remove more occurances of "register".
1520 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1521 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1522 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1523 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1524 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1525 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1526 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1527 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1528
f2ea0907
CV
15292003-09-16 Corinna Vinschen <vinschen@redhat.com>
1530
1531 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1532 numbers to enumeration values.
1533 * sh-tdep.c: Accomodate above change.
1534 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1535 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1536 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1537 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1538 (IS_FPUSH): Rename from IS_FMOV.
1539 (sh_extract_struct_value_address): Remove useless comment.
1540 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1541 instead of own local values.
1542 (sh_dump_tdep): Remove.
1543 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1544 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1545
1c704f11
AC
15462003-09-15 Andrew Cagney <cagney@redhat.com>
1547
1548 * doublest.c (convert_floatformat_to_doublest): No longer need to
1549 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1550
ac79b88b
DJ
15512003-09-15 Daniel Jacobowitz <drow@mvista.com>
1552
1553 * values.c (unpack_double): Call floatformat_is_valid.
1554
1c671366
MK
15552003-09-15 Mark Kettenis <kettenis@gnu.org>
1556
de5227fb
MK
1557 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1558 ps_strings into a long.
1559
1c671366
MK
1560 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1561 _initialize_am64fbsd_nat.
1562
a604369a
KB
15632003-09-15 Kevin Buettner <kevinb@redhat.com>
1564
1565 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1566 associated with DW_AT_ranges attribute is out of bounds.
1567
b3cacbee
DL
15682003-09-15 David Lecomber <dsl@sources.redhat.com>
1569
1570 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1571
d0f37bb2
MC
15722003-09-14 Michael Chastain <mec@shout.net>
1573
1574 * config/m68k/nm-apollo68v.h: Delete.
1575 * config/m68k/xm-apollo68v.h: Delete.
1576
69517000
AC
15772003-09-14 Andrew Cagney <cagney@redhat.com>
1578
1579 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1580 * dcache.c: Update copyrights and descriptions.
1581 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1582
ef8b349d
AC
15832003-09-14 Andrew Cagney <cagney@redhat.com>
1584
1585 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1586 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1587
52f0bd74
AC
15882003-09-14 Andrew Cagney <cagney@redhat.com>
1589
1590 * alpha-nat.c: Remove some occurances of "register".
1591 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1592 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1593 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1594 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1595 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1596 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1597 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1598 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1599 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1600 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1601 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1602 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1603 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1604 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1605 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1606 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1607 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1608 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1609 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1610 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1611 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1612 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1613
4a4b3fed
AC
16142003-09-13 Andrew Cagney <cagney@redhat.com>
1615
1616 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1617 * ppc-tdep.h (struct regcache): Declare opaque.
1618 * objfiles.h (struct objfile_data): Declare opaque.
1619 * cp-support.h (struct objfile): Declare opaque.
1620 * linux-nat.h (target_waitstatus): Declare opaque.
1621
2110b94f
MK
16222003-09-14 Mark Kettenis <kettenis@gnu.org>
1623
1c671366
MK
1624 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1625 (stabs_argument_has_addr): New architecture method.
1626 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1627 * arch-utils.c: Include "buildsym.h".
1628 (default_stabs_argument_has_addr): New function.
1629 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1630 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1631
2110b94f
MK
1632 * cris-tdep.c (cris_gdbarch_init): Set
1633 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1634 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1635 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1636 * mips-tdep.c (mips_gdbarch_init): Likewise.
1637 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1638 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1639
48436ce6
AC
16402003-09-13 Andrew Cagney <cagney@redhat.com>
1641
1642 * values.c (using_struct_return): Delete "function" and "funcaddr"
1643 parameters.
1644 * value.h (using_struct_return): Update declaration.
1645 * infcmd.c (finish_command_continuation): Update.
1646 (finish_command): Update.
1647 * infcall.c (call_function_by_hand): Update.
1648 * eval.c (evaluate_subexp_standard): Update.
1649
403d9909
CF
16502003-09-13 Christopher Faylor <cgf@redhat.com>
1651
1652 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1653 SSE registers since gdb will not operate correctly without this.
1654 Restore include file ordering munged in previous change.
1655 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1656
ebf7d56b
MK
16572003-09-13 Mark Kettenis <kettenis@gnu.org>
1658
8e823e25
MK
1659 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1660 REG_STRUCT_HAS_ADDR.
1661 * gdbarch.c, gdbarch.h: Updated.
1662 * infcall.c (call_function_by_hand): Update.
1663 * stabsread.c (define_symbol): Updated.
a8f4cde1 1664
ebf7d56b
MK
1665 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1666
d3f13f72
CF
16672003-09-12 Christopher Faylor <cgf@redhat.com>
1668
1669 * win32-nat.c: Reorganize so that defines used by target headers are
1670 actually defined by the system headers.
1671 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1672 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1673
14f75137
JB
16742003-09-12 Jim Blandy <jimb@redhat.com>
1675
d646061f
JB
1676 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1677 the file has no .data, .bss, or .rodata sections. Instead wait
1678 until we see a variable alleged to live in one of those sections.
1679
2a13f9bc
JB
1680 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1681 .bss section, presume that any variables we find live in the
1682 .rodata section.
1683
4f49b26b
JB
1684 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1685 offsets for global and static variables.
1686
14f75137
JB
1687 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1688 symbol types are, by definition, in the .data section, so it is
1689 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1690 If there is no .data section, there should be no N_DATA or N_DATA
1691 | N_EXT symbols.
1692
212c460c
MK
16932003-09-12 Mark Kettenis <kettenis@gnu.org>
1694
1695 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1696 (amd64fbsd_sigcontext_addr): Rewrite.
1697 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1698 with correct values.
1699 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1700 (amd64fbsd_init_abi): Fix typo.
1701
68856ea3
AC
17022003-09-12 Andrew Cagney <cagney@redhat.com>
1703
1704 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1705 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1706
627b3ba2
AC
17072003-09-12 Andrew Cagney <cagney@redhat.com>
1708
1709 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1710 "entry_file_highpc". Update comments.
1711 * defs.h (deprecated_inside_entry_file): Rename
1712 "inside_entry_file".
1713 * blockframe.c (deprecated_inside_entry_file): Rename
1714 "inside_entry_file".
1715 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1716 * vax-tdep.c (vax_frame_chain): Update.
1717 * sh64-tdep.c (sh64_frame_chain): Update.
1718 * sh-tdep.c (sh_frame_chain): Update.
1719 * rs6000-tdep.c (rs6000_frame_chain): Update.
1720 * ns32k-tdep.c (ns32k_frame_chain): Update.
1721 * mips-tdep.c (mips_frame_chain): Update.
1722 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1723 * m32r-tdep.c (m32r_frame_this_id): Update.
1724 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1725 * frv-tdep.c (frv_frame_this_id): Update.
1726 * d10v-tdep.c (d10v_frame_this_id): Update.
1727 * cris-tdep.c (cris_frame_chain): Update.
1728 * blockframe.c (legacy_frame_chain_valid): Update.
1729 * avr-tdep.c (avr_frame_this_id): Update.
1730 * arm-tdep.c (arm_prologue_this_id): Update.
1731 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1732 * objfiles.c (objfile_relocate): Update.
1733 * mipsread.c (mipscoff_symfile_read): Update.
1734 (mipscoff_symfile_read): Update.
1735 * mdebugread.c (parse_partial_symbols): Update.
1736 * dwarfread.c (read_file_scope): Update.
1737 * dwarf2read.c (read_file_scope): Update.
1738 * dbxread.c (read_dbx_symtab): Update.
1739 (read_dbx_symtab): Update.
1740 * coffread.c (complete_symtab): Update.
1741
b0abbc58
JJ
17422003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1743
1744 * top.c (quit_target): New static helper function.
1745 (quit_force): Moved code to quit_target(). Call quit_target()
1746 via catch_errors() to catch errors during quit.
1747
a1632d59
DC
17482003-09-11 David Carlton <carlton@kealia.com>
1749
1750 * buildsym.c (finish_block): Use allocate_block to allocate the
1751 block.
1752 * mdebugread.c (new_block): Add FIXME.
1753
5c4e30ca
DC
17542003-09-11 David Carlton <carlton@kealia.com>
1755
1756 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1757 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1758 (recursive_dump_type): Ditto.
1759 * printcmd.c (print_formatted): Ditto.
1760 * typeprint.c (print_type_scalar): Ditto.
1761 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1762 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1763 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1764 maint_cplus_cmd_list.
1765 * cp-support.c: Make maint_cplus_cmd_list extern.
1766 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1767 command.h.
1768 (lookup_symbol_file): Look in possible namespace blocks when
1769 appropriate.
1770 (initialize_namespace_symtab): New.
1771 (get_possible_namespace_block, free_namespace_block)
1772 (check_possible_namespace_symbols)
1773 (check_possible_namespace_symbols_loop)
1774 (check_one_possible_namespace_symbol)
1775 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1776 (_initialize_cp_namespace): Ditto.
1777 * block.h: Declare allocate_block.
1778 * block.c (allocate_block): New.
1779 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1780 allocate_block.
1781 * symfile.h: Update declaration of add_psymbol_to_list.
1782 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1783 question.
1784 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1785 scan_partial_symbols_call.
1786 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1787 helper functions.
1788 (add_partial_symbol): If necessary, scan mangled names for names
1789 of namespaces.
1790 (add_partial_namespace): Add NAMESPACE argument; generate partial
1791 symbols associated to namespaces.
1792 (add_partial_enumeration): Add NAMESPACE argument.
1793 (new_symbol): Allow namespace syms.
1794 (read_namespace): Generate namespace syms.
1795 * objfiles.h: Add opaque declaration of struct symtab.
1796 (struct objfile): Add cp_namespace_symtab member.
1797 * objfiles.c (allocate_objfile): Set
1798 objfile->cp_namespace_symtab.
1799 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1800 dictionary_h, command_h.
1801
33a7c2fc
AC
18022003-09-11 Andrew Cagney <cagney@redhat.com>
1803
1804 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1805 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1806 near the function's end.
1807 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1808 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1809 regcache_raw_write_signed to set SP_REGNUM.
1810
63cd24fe
EZ
18112003-09-11 Elena Zannoni <ezannoni@redhat.com>
1812
1813 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1814 orig_addrs is set up properly.
1815
f27dd7fd
AC
18162003-09-11 Andrew Cagney <cagney@redhat.com>
1817
1818 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1819 * gdbarch.h, gdbarch.c: Re-generate.
1820 * infcall.c (call_function_by_hand): Update.
1821 * hppa-tdep.c (hppa_push_arguments): Update.
1822 * ada-lang.c (place_on_stack): Update.
1823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1824 * sparc-tdep.c (sparc_gdbarch_init): Update.
1825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1826 * hppa-tdep.c (hppa_gdbarch_init): Update.
1827 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1828 stack_align.
1829
f630a401
DJ
18302003-09-11 Daniel Jacobowitz <drow@mvista.com>
1831
1832 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1833 register do need a frame.
1834
0ddabb4c
AC
18352003-09-11 Andrew Cagney <cagney@redhat.com>
1836
1837 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1838 buildable since GDB 5.0.
1839 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1840 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1841 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1842 * irix4-nat.c: Delete file.
1843 * config/mips/irix4.mh: Delete file.
1844 * config/mips/irix3.mh: Delete file.
1845 * config/mips/irix3.mt: Delete file.
1846 * config/mips/tm-irix3.h: Delete file.
1847 * config/mips/nm-irix3.h: Delete file.
1848 * config/mips/xm-irix3.h: Delete file.
1849 * config/mips/nm-irix4.h: Delete file.
1850 * config/mips/xm-irix4.h: Delete file.
1851 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1852
fde2cceb
JB
18532003-09-10 J. Brobecker <brobecker@gnat.com>
1854
1855 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1856 * Makefile.in (hppa-tdep.o): Update dependencies.
1857
66f667f5
JW
18582003-09-10 James E Wilson <wilson@specifixinc.com>
1859
ef5fd69f
JW
1860 * MAINTAINERS: Change my e-mail address. Move to paper trail
1861 section.
66f667f5 1862
53e8aaea
KB
18632003-09-10 Kevin Buettner <kevinb@redhat.com>
1864
1865 * MAINTAINERS (frv): New ISA entry.
1866
dcc6aaff
KB
18672003-09-10 Kevin Buettner <kevinb@redhat.com>
1868
1869 * frv-tdep.c (dis-asm.h): Include.
1870 * Makefile.in (frv-tdep.o): Update dependencies.
1871
932644f0
JJ
18722003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1873
1874 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1875 Fix typo for high range of floating registers.
1876
91c24f0a
DC
18772003-09-09 David Carlton <carlton@kealia.com>
1878
1879 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1880 highpc initialization here out of scan_partial_symbols.
1881 (scan_partial_symbols): Restructure into a recursive version,
1882 calling add_partial_namespace and add_partial_enumeration when
1883 appropriate.
1884 (add_partial_namespace): New.
1885 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1886
c9263853
AC
18872003-09-09 Andrew Cagney <cagney@redhat.com>
1888
e56a0ecc
AC
1889 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1890 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1891 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1892 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1893
794a477a
AC
1894 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1895 (rs6000_push_dummy_call): Set the "TOC" register.
1896
c9263853
AC
1897 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1898 methods "max_register_raw_size", "max_register_virtual_size" or
1899 "register_virtual_size".
1900
afa7d0b2
ILT
19012003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1902
1903 * MAINTAINERS: Update my e-mail address.
1904
7a41266b
AC
19052003-09-09 Andrew Cagney <cagney@redhat.com>
1906
1907 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1908 (rs6000_push_dummy_call): Store the struct return address.
1909 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1910
77b2b6d4
AC
19112003-09-09 Andrew Cagney <cagney@redhat.com>
1912
1913 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1914 "ppc_sysv_abi_push_arguments".
1915 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1916 "ppc_sysv_abi_push_arguments".
1917 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1918 instead of "push_arguments".
1919 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1920
e8a7b686
AC
19212003-09-09 Andrew Cagney <cagney@redhat.com>
1922
1923 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1924 instead of CALL_DUMMY_ADDRESS.
1925
f86f5ca3
PH
19262003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1927
1928 * p-lang.c: Eliminate "register".
1929 * c-lang.c: Ditto.
1930 * expprint.c: Ditto.
1931 * f-lang.c: Ditto.
1932 * jv-lang.c: Ditto.
1933 * language.c: Ditto.
1934 * m2-lang.c: Ditto.
1935 * parse.c: Ditto.
1936 * scm-lang.c: Ditto.
1937 * objc-lang.c: Ditto.
1938
83ee270e
NC
19392003-09-09 Nick Clifton <nickc@redhat.com>
1940
1941 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1942
a89aa300
AC
19432003-09-04 Andrew Cagney <cagney@redhat.com>
1944
1945 * avr-tdep.c: Include "dis-asm.h".
1946 * cris-tdep.c: Include "dis-asm.h".
1947 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1948 instead of corresponding typedef.
1949 * h8300-tdep.c: Include "dis-asm.h".
1950 * ia64-tdep.c: Include "dis-asm.h".
1951 * i386-tdep.c: Include "dis-asm.h".
1952 (i386_print_insn): Use "struct disassemble_info" instead of
1953 corresponding typedef.
1954 * m68k-tdep.c: Include "dis-asm.h".
1955 * mcore-tdep.c: Include "dis-asm.h".
1956 * mips-tdep.c: Include "dis-asm.h".
1957 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1958 instead of corresponding typedef.
1959 * ns32k-tdep.c: Include "dis-asm.h".
1960 * s390-tdep.c: Include "dis-asm.h".
1961 * sparc-tdep.c: Include "dis-asm.h".
1962 * vax-tdep.c: Include "dis-asm.h".
1963 * v850-tdep.c: Include "dis-asm.h".
1964 * mn10300-tdep.c: Include "dis-asm.h".
1965 * rs6000-tdep.c: Include "dis-asm.h".
1966 * xstormy16-tdep.c: Include "dis-asm.h".
1967 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1968 print_insn_xstormy16.
1969 * Makefile.in (v850-tdep.o): Update dependencies.
1970 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1971 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1972 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1973 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1974 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1975 (gdbarch_h): Remove $(dis_asm_h).
1976 * disasm.c: Include "dis-asm.h".
1977 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1978 corresponding typedef.
1979 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1980 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1981 * gdbarch.sh: Do not include "dis-asm.h".
1982 (struct disassemble_info): Declare opaque.
1983 (TARGET_PRINT_INSN): Update declaration.
1984 * gdbarch.h, gdbarch.c: Re-generate.
1985
88a82a65
AC
19862003-09-08 Andrew Cagney <cagney@redhat.com>
1987
1988 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1989 CALL_DUMMY_ADDRESS, change to a predicate.
1990 * gdbarch.h, gdbarch.c: Re-generate.
1991 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1992 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1993 * infcall.c (call_function_by_hand): Ditto.
1994 * sparc-tdep.c (sparc_push_return_address): Ditto.
1995 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1996 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1997 CALL_DUMMY_ADDRESS with entry_point_address.
1998 * v850-tdep.c (v850_push_return_address): Ditto.
1999 * s390-tdep.c (s390_push_return_address): Ditto.
2000 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2001 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2002 * mcore-tdep.c (mcore_push_return_address): Ditto.
2003 * cris-tdep.c (cris_push_return_address): Ditto.
2004 * arm-tdep.c (arm_push_return_address): Ditto.
2005
3e2c4033
AC
20062003-09-08 Andrew Cagney <cagney@redhat.com>
2007
2008 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2009 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2010 and REG_UNMODIFIED to REG_SAME_VALUE.
2011 (execute_cfa_program): Update.
2012 (dwarf2_frame_cache): Update. Initialize table to
2013 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2014 location.
2015 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2016
39efb398
AC
20172003-09-08 Andrew Cagney <cagney@redhat.com>
2018
2019 * gnu-nat.c: Remove "inline" function attribute.
2020 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2021
f5cb5aca
KB
20222003-09-08 Kevin Buettner <kevinb@redhat.com>
2023
2024 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2025 target.
2026
1cb761c7
KB
20272003-09-08 Kevin Buettner <kevinb@redhat.com>
2028
2029 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2030 (frame_extra_info): Rename this struct to frv_unwind_cache.
2031 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2032 Add fields ``prev_sp'' and ``base''.
2033 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2034 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2035 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2036 Delete.
2037 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2038 Revise all callers. Fill in the unwind cache argument and make
2039 other adjustments to account for new frame mechanisms.
2040 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2041 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2042 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2043 (frv_frame_unwind, frv_frame_base): New structs.
2044 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2045 additional arguments expected by this method and adjust function
2046 body accordingly.
2047 (frv_gdbarch_init): Remove calls to the following functions:
2048 set_gdbarch_deprecated_init_frame_pc(),
2049 set_gdbarch_deprecated_saved_pc_after_call(),
2050 set_gdbarch_deprecated_frame_chain(),
2051 set_gdbarch_deprecated_frame_saved_pc(),
2052 set_gdbarch_deprecated_frame_init_saved_regs(),
2053 set_gdbarch_deprecated_push_arguments(),
2054 set_gdbarch_deprecated_push_return_address(),
2055 set_gdbarch_deprecated_pop_frame(),
2056 set_gdbarch_deprecated_call_dummy_words(),
2057 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2058 set_gdbarch_deprecated_init_extra_frame_info(),
2059 set_gdbarch_deprecated_dummy_write_sp(), and
2060 set_gdbarch_deprecated_pc_in_call_dummy().
2061 Add calls to the following functions:
2062 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2063 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2064 frame_base_set_default().
2065 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2066
68f6cf99
MK
20672003-09-09 Mark Kettenis <kettenis@gnu.org>
2068
2069 * dwarf2-frame.c (read_encoded_value): Add support for
2070 DW_EH_PE_aligned encoding.
2071
73b65bb0
DJ
20722003-09-08 Daniel Jacobowitz <drow@mvista.com>
2073
2074 * infrun.c (normal_stop): Don't print a message if the inferior
2075 has exited.
2076
7c8a5605
JB
20772003-09-08 Jim Blandy <jimb@redhat.com>
2078
2079 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2080 * dbxread.c: #include "gdb_assert.h".
2081 (read_dbx_symtab): If the objfile has no .data section, use the
2082 section index for the .bss section instead.
2083
7dd88986
DJ
20842003-09-08 Daniel Jacobowitz <drow@mvista.com>
2085
2086 * frame.c (deprecated_safe_get_selected_frame): New function.
2087 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2088 * findvar.c (read_var_value): Call it.
2089
55ff77ac
CV
20902003-09-08 Corinna Vinschen <vinschen@redhat.com>
2091
2092 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2093 (sh64-tdep.o): Add dependencies.
2094 * configure.tgt: Add FIXME to sh-*-linux*.
2095 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2096 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2097 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2098 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2099 * sh64-tdep.c: New file, containing all sh64 related code from
2100 sh-tdep.c.
2101 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2102 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2103 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2104 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2105 * config/sh/wince.mt (TDEPFILES): Ditto.
2106
bfb39158
DJ
21072003-09-07 Daniel Jacobowitz <drow@mvista.com>
2108
2109 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2110 (stop_wait_callback): Handle !lp->signalled also.
2111 (lin_lwp_has_pending, flush_callback): New functions.
2112 (lin_lwp_wait): Call flush_callback.
2113 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2114 (linux_proc_pending_signals): New function.
2115 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2116
9407de8e
DJ
21172003-09-07 Daniel Jacobowitz <drow@mvista.com>
2118
2119 From Nick Kelsey <nickk@ubicom.com>:
2120 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2121 when the stop PC is at the beginning of a function also.
2122
2ef47cd0
DJ
21232003-09-06 Daniel Jacobowitz <drow@mvista.com>
2124
2125 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2126 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2127
6f4492c8
MK
21282003-09-06 Mark Kettenis <kettenis@gnu.org>
2129
2130 * sol-thread.c: Include "gdb_string.h".
2131
d3420b2f
MK
21322003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2133
2134 * gcore.c: Reorder include files in alphabetical order. Include
2135 "gdb_assert.h". Various coding style fixes.
2136 (derive_stack_segment, derive_heap_segment): Replace check for
2137 non-null BOTTOM and TOP with gdb_assert.
2138 (derive_heap_segment): Replace check for successful creation of
2139 ZERO with gdb_assert.
2140 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2141
5220ea4c
AC
21422003-09-04 Andrew Cagney <cagney@redhat.com>
2143
2144 * thread-db.c (verbose_dlsym): New function.
2145 (thread_db_load): Use verbose_dlsym
2146 (thread_db_new_objfile): Print that libthread_db was loaded, and
2147 that thread debugging was enabled.
2148
6e8c2c06
AC
21492003-09-04 Andrew Cagney <cagney@redhat.com>
2150
2151 * configure.tgt: Add "mips64*-*-*" target. Delete
2152 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2153 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2154 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2155 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2156 mips*-sony-*, and mips64*-*-elf* targets.
2157 * config/mips/embedl.mt: Delete file.
2158 * config/mips/embedl64.mt: Delete file.
2159 * config/mips/mips.mt: Delete file.
2160 * config/mips/mips64.mt: Delete file.
2161 * config/mips/tm-embed.h: Delete file.
2162 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2163 * config/mips/embed64.mt: Delete out-of-date comment.
2164
3a3bc038
AC
21652003-09-04 Andrew Cagney <cagney@redhat.com>
2166
2167 * hppa-tdep.c (hppa_gdbarch_init): Set
2168 "have_nonsteppable_watchpoint".
2169 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2170 * mips-tdep.c (mips_dump_tdep): Do not print
2171 HAVE_NONSTEPPABLE_WATCHPOINT.
2172 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2173 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2174 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2175 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2176
a957e642
CV
21772003-09-04 Corinna Vinschen <vinschen@redhat.com>
2178
2179 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2180 unused code. Add comment.
2181
a6fbcf2f
CV
21822003-09-04 Corinna Vinschen <vinschen@redhat.com>
2183
2184 * breakpoint.c (watchpoint_check): Check for pc being in an
2185 epilogue if watchpoint frame couldn't be found.
2186
c14a44d5
AC
21872003-09-04 Andrew Cagney <cagney@redhat.com>
2188
2189 * Makefile.in: Re-generate all dependencies.
2190
f6c40618
AC
21912003-09-03 Andrew Cagney <cagney@redhat.com>
2192
2193 * arch-utils.h (legacy_print_insn): Delete declaration.
2194 * arch-utils.c (legacy_print_insn): Delete function.
2195 * disasm.c (deprecated_tm_print_insn_info): Delete.
2196 (_initialize_disasm): Delete function, contained code initializing
2197 deprecated_tm_print_insn_info.
2198 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2199 (deprecated_tm_print_insn_info): Delete.
2200 (TARGET_PRINT_INSN): Do not provide a default.
2201 * gdbarch.h, gdbarch.c: Re-generate.
2202
242e8be5
AC
22032003-09-03 Andrew Cagney <cagney@redhat.com>
2204
2205 * disasm.c (fprintf_disasm): New function.
2206 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2207 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2208 reverts 2003-08-14 change.
2209 (_initialize_disasm): Call "init_disassemble_info", instead of
2210 INIT_DISASSEMBLE_INFO_NO_ARCH.
2211
3ffc3dda
MS
22122003-09-03 Michael Snyder <msnyder@redhat.com>
2213
2214 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2215
52d16ba8
AC
22162003-09-03 Andrew Cagney <cagney@redhat.com>
2217
2218 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2219 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2220 * symfile.c (syms_from_objfile): Update.
2221 (reread_symbols): `Update
2222 * exec.c (exec_file_attach): Update.
2223 (exec_file_attach): Update.
2224 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2225 2003-08-29 change.
2226 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2227
eb5492fa
DJ
22282003-09-03 Daniel Jacobowitz <drow@mvista.com>
2229
2230 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2231 trad-frame.h.
2232 (arm_get_cache): Delete macro.
2233 (struct arm_prologue_cache): Update comments. Make saved_regs into
2234 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2235 to prev_sp.
2236 (thumb_scan_prologue): Update for cache changes. Don't call
2237 DEPRECATED_PC_IN_CALL_DUMMY.
2238 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2239 argument and use it in desperation search for our prologue. Do not
2240 search past the specified PC.
2241 (arm_make_prologue_cache): Simplify.
2242
2243 (arm_prologue_this_id, arm_prologue_prev_register)
2244 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2245 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2246 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2247 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2248 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2249
2250 (arm_frame_chain_valid, arm_find_callers_reg)
2251 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2252 (arm_pop_frame): Delete obsolete methods.
2253 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2254
2255 (arm_gdbarch_init): Update for new frame methods. Register prologue
2256 and sigtramp unwinders. Set the default frame base method.
2257
2258 * Makefile.in (arm-tdep.o): Update dependencies.
2259 * varobj.c (find_frame_addr_in_frame_chain): Call
2260 get_frame_base_address.
2261 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2262
24de872b
DJ
22632003-09-03 Daniel Jacobowitz <drow@mvista.com>
2264
2265 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2266 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2267 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2268 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2269 Take NEXT_FRAME and CACHE arguments. Call
2270 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2271 Set unwound_pc in CACHE instead of modifying the frame argument.
2272 Don't bother checking the frame type when looking for sigtramp
2273 frames.
2274 (arm_make_prologue_cache, arm_frame_chain)
2275 (arm_init_extra_frame_info): New functions.
2276
9b8d791a
DJ
22772003-09-03 Daniel Jacobowitz <drow@mvista.com>
2278
2279 * arm-tdep.c (arm_get_cache): Define.
2280 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2281 unwound_sp, unwound_pc, and saved_regs.
2282 (thumb_scan_prologue): Take a cache instead of the frame.
2283 (arm_scan_prologue): Likewise.
2284 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2285 instead of a temporary frame.
2286 (arm_init_extra_frame_info): Allocate and use a cache.
2287 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2288
7ee3275f
AC
22892003-09-03 Andrew Cagney <cagney@redhat.com>
2290
2291 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2292 * config/mips/wince.mt (TM_CLIBS): Ditto.
2293 * config/sh/wince.mt (TM_CLIBS): Ditto.
2294 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2295 * config/sparc/sp64.mt (CC): Delete.
2296
57b29be7
AC
22972003-09-03 Andrew Cagney <cagney@redhat.com>
2298
2299 * defs.h: Do not include "arch-utils.h".
2300 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2301 GDB_MULTI_ARCH_PURE.
2302 * configure.in (GDB_MULTI_ARCH): Do not define.
2303 * configure, config.in: Regenerate.
2304 * configure.tgt: Do not set variable "gdb_multi_arch".
2305 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2306 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2307 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2308 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2309 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2310 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2311 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2312 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2313 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2314 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2315 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2316 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2317 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2318 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2319 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2320 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2321 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2322 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2323
12e035e2
MC
23242003-08-30 Michael Chastain <mec@shout.net>
2325
2326 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2327 * config/m68k/nm-hp300hpux.h: Delete.
2328 * config/m68k/tm-hp300hpux.h: Delete.
2329 * config/m68k/xm-hp300hpux.h: Delete.
2330 * config/m68k/xm-hp300bsd.h: Delete.
2331 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2332 tm-hp300hpux.h, xm-hp300hpux.h.
2333 * somsolib.c: Remove comment about hp300 shared libraries.
2334
bda34dc2
MK
23352003-08-31 Mark Kettenis <kettenis@gnu.org>
2336
5bca7895
MK
2337 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2338 Only define PTRACE_GET_THREAD_AREA is not already defined.
2339 Various style fixes in code and comments and some additional
2340 spelling fixes in comments. Move after functions dealing with
2341 debug registers.
2342 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2343 Fix coding-style.
2344
bda34dc2
MK
2345 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2346 frame_unwind_register_unsigned instead of
2347 frame_unwind_unsigned_register.
2348
c890192f
MK
23492003-08-30 Mark Kettenis <kettenis@gnu.org>
2350
2351 * configure.in: Search for gethostbyname in libnsl.
2352 * configure: Regenerated.
2353
60fac5b8
MK
23542003-08-29 Mark Kettenis <kettenis@gnu.org>
2355
e294916c
MK
2356 * configure.in: Remove redundant AC_MSG_RESULT in check for
2357 uintptr_t in stdint.h.
2358 * configure: Regenerated.
2359
c40d267a
MK
2360 * amd64-nat.h (struct regcache): Add opaque declaration.
2361
60fac5b8
MK
2362 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2363 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2364 Change "register array" to "register cache" in comments.
2365 (x86_64_linux_gregset64_reg_offset): New variable.
2366 (GETREGS_SUPPLIES): Remove macro.
2367 (supply_gregset): Call amd64_supply_native_gregset instead of
2368 x86_64_linux_supply_gregset.
2369 (fill_gregset): Rename `regno' to `regnum'. Call
2370 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2371 (store_regs): Rename `regno' to `regnum'.
2372 (store_fpregs): Rename `regno' to `regnum'.
2373 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2374 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2375 Reorganize function a bit.
2376 (store_inferior_registers): Rename `regno' to `regnum'. Use
2377 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2378 Reorganize function a bit.
2379 (_initialize_x86_64_linux_nat): New function.
2380 * config/i386/x86-64linux.mh.
2381
546143b6
AC
23822003-08-29 Andrew Cagney <cagney@redhat.com>
2383
2384 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2385 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2386 (target_remove_watchpoint): Delete macro.
2387 (target_insert_watchpoint): Delete macro.
2388 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2389 (remote_mips_stopped_by_watchpoint): Delete declaration.
2390 (remote_mips_remove_watchpoint): Delete declaration.
2391 (remote_mips_set_watchpoint): Delete declaration.
2392 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2393 * remote-mips.c (_initialize_remote_mips): Set
2394 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2395 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2396 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2397 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2398 (mips_stopped_by_watchpoint): Rename
2399 remote_mips_stopped_by_watchpoint.
2400 (mips_can_hardware_watchpoint): Rename
2401 remote_mips_can_use_hardware_watchpoint, update function
2402 signature.
2403
7bace51b
MK
24042003-08-29 Mark Kettenis <kettenis@gnu.org>
2405
b0f5c6f2
MK
2406 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2407 USER_DS. We haven't given them a register number yet.
2408
2a6d284d
MK
2409 * amd64-nat.h: New file.
2410 * amd64-nat.c: New file.
2411 * amd64fbsd-nat.c: Include "amd64-nat.h".
2412 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2413 (amd64fbsd32_r_reg_offset): New variable.
2414 (supply_gregset): Simply call amd64_supply_native_gregset.
2415 (fill_gregset): Rename `regno' to `regnum'. Simply call
2416 amd64_collect_native_gregset.
2417 (fill_fpregset): Rename `regno' to `regnum'.
2418 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2419 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2420 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2421 `fpregset_t'. Call amd64_supply_native_gregset instead of
2422 supply_gregset. Call x86_64_supply_fxsave instead of
2423 supply_fpregset.
2424 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2425 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2426 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2427 `fpregset_t'. Call amd64_collect_native_gregset instead of
2428 fill_gregset. Call x86_64_collect_fxsave instead of
2429 fill_fpregset.
2430 (_initialize_am64fbsd_nat): Initialize
2431 amd64_native_gregset32_reg_offset and
2432 amd64_native_gregset64_reg_offset.
2433 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2434
a16d75cc
MK
2435 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2436 null pointer. Fix typo in comment.
2437
7bace51b
MK
2438 * regcache.c (supply_register): Reimplement to call
2439 regcache_raw_supply.
2440 (regcache_collect): Reimplement by calling regcache_raw_collect.
2441
9a661b68
MK
24422003-08-28 Mark Kettenis <kettenis@gnu.org>
2443
2444 * regcache.c (register_buffer): Consitify first argument.
2445 (regcache_raw_supply, regcache_raw_collect): New
2446 functions.
2447
e94cc8fa
DJ
24482003-08-28 Daniel Jacobowitz <drow@mvista.com>
2449
2450 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2451 by Nathan J. Williams.
2452
c64bd0ce
DJ
24532003-08-28 Daniel Jacobowitz <drow@mvista.com>
2454
2455 * lin-lwp.c (wait_lwp): New function, copied from
2456 stop_wait_callback. Clean up.
2457 (stop_wait_callback): Use wait_lwp.
2458
e5ab0dce
AC
24592003-08-28 Andrew Cagney <cagney@redhat.com>
2460
2461 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2462 flavour and disassembler options.
2463 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2464 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2465 deprecated_tm_print_insn_info.
a8f4cde1 2466
a788de9b
AC
24672003-08-27 Andrew Cagney <cagney@redhat.com>
2468
2469 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2470 Use target_read_memory.
2471 (s390_get_frame_info): Update. Do not reference
2472 deprecated_tm_print_insn_info.
2473 (s390_check_function_end, s390_is_sigreturn): Ditto.
2474
36482093
AC
24752003-08-27 Andrew Cagney <cagney@redhat.com>
2476
2477 * Makefile.in (cris-tdep.o): Update dependencies.
2478 * cris-tdep.c: Include "gdb_assert.h".
2479 (cris_gdbarch_init): Set print_insn.
2480 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2481 (cris_delayed_get_disassembler): Simplify, directly call the
2482 disassembler returned by cris_get_disassembler.
2483 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2484 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2485 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2486 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2487 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2488 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2489 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2490 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2491 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2492 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2493 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2494 (gdb_print_insn_sparc): Delete function.
2495 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2496 deprecated_tm_print_insn_info.
2497 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2498 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2499 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2501 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2502 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2503 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2504 (s390_gdbarch_init): Set print_insn.
2505
0285512f
AC
25062003-08-27 Andrew Cagney <cagney@redhat.com>
2507
2508 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2509 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2510 * infcall.c (call_function_by_hand): Convert the entry point
2511 address into a code address.
2512
cdcd5552
AC
25132003-08-27 Andrew Cagney <cagney@redhat.com>
2514
2515 * dsrec.c: Include "gdb_string.h".
2516 * Makefile.in (dsrec.o): Update dependencies.
2517
e85cddad
MC
25182003-08-27 Michael Chastain <mec@shout.net>
2519
2520 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2521
8bbfbb23
AC
25222003-08-27 Andrew Cagney <cagney@redhat.com>
2523
2524 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2525 (alpha_osf1_init_abi): Do not set call_dummy_address.
2526
ba058b66
DC
25272003-08-27 David Carlton <carlton@kealia.com>
2528
2529 From Randolph Chung <tausq@debian.org>:
2530 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2531 compiles with -Wformat-nonliteral -Werror.
2532
87f84c9d
JB
25332003-08-26 Jim Blandy <jimb@redhat.com>
2534
2535 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2536 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2537 bfd_lookup_symbol, since we only want symbols in code sections.
2538 (look_for_base): Pass zero as the SECT_FLAGS argument to
2539 bfd_lookup_symbol, since we're not concerned about which section
2540 the symbol is in.
2541
102d615a
JJ
25422003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2543
2544 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2545 we are frameless or the return address register is already known.
102d615a 2546
cc7ad3ea
AC
25472003-08-26 Andrew Cagney <cagney@redhat.com>
2548
2549 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2550 in size. Add comments.
2551
af8b88dd
JJ
25522003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2553
2554 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2555 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2556
e0a4f5a1
JM
25572003-08-26 Jason Merrill <jason@redhat.com>
2558
2559 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2560 case out of #ifdef MIPS block.
2561
4ae9ee8e
DJ
25622003-08-25 Daniel Jacobowitz <drow@mvista.com>
2563
2564 PR java/1322
2565 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2566 available before calling SECT_OFF_TEXT.
3c164570 2567 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2568
004d836a
JJ
25692003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2570
a8f4cde1 2571 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2572 bof, and nat0-nat127 as pseudo-registers.
2573 (ia64_frame_cache): New struct used to cache frame info.
2574 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2575 register grouping so registers without names are still saved and
004d836a 2576 restored.
a8f4cde1 2577 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2578 pseudo values.
2579 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2580 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2581 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2582 ia64_frame_cache.
2583 (examine_prologue): Change prototype to add next_frame pointer.
2584 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2585 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2586 alloc insn and if equal, mark as not frameless. At end of routine,
2587 if not frameless, calculate registers for the previous frame and store
2588 in the cache, if a cache is provided.
2589 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2590 and pass 0 for next_frame.
2591 (ia64_store_return_value): Change to use convert_typed_floating()
2592 instead of calling ia64_convert_to_raw().
2593 (ia64_extract_return_value): Change to use convert_typed_floating()
2594 instead of calling ia64_convert_to_virtual().
2595 (ia64_frame_cache): New routine to support new frame model.
2596 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2597 (ia64_frame_sniffer): Ditto.
2598 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2599 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2600 (ia64_sigtramp_frame_prev_register): Ditto.
2601 (ia64_sigtramp_frame_sniffer): Ditto.
2602 (ia64_frame_base_address): Ditto.
2603 (ia64_extract_struct_value_address): Change to issue error message.
2604 (ia64_frame_align): New routine to align sp.
2605 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2606 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2607 ia64_push_dummy_call().
2608 (ia64_push_return_address): Ditto.
2609 (ia64_unwind_dummy_id): New function.
2610 (ia64_unwind_pc): Ditto.
2611 (ia64_convert_register_p): Ditto.
2612 (ia64_register_to_value): Ditto.
2613 (ia64_value_to_register): Ditto.
2614 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2615 (ia64_register_byte, ia64_register_raw_size): Ditto.
2616 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2617 (ia64_saved_pc_after_call): Ditto.
2618 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2619 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2620 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2621 (ia64_register_convert_to_raw): Ditto.
2622 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2623 (ia64_init_extra_frame_info): Ditto.
2624 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2625 (ia64_gdbarch_init): Remove registering of deprecated functions that
2626 are no longer used. Add registration of new gdbarch functions.
2627 Remove registering deprecated_write_sp. Replace
2628 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2629 Delete set_gdbarch_deprecated_register_convertible(),
2630 set_gdbarch_deprecated_register_convert_to_virtual(), and
2631 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2632 set_gdbarch_deprecated_register_size(),
2633 set_gdbarch_deprecated_register_bytes(),
2634 set_gdbarch_pcregnum(),
2635 set_gdbarch_deprecated_register_byte(),
2636 set_gdbarch_deprecated_register_raw_size(),
2637 set_gdbarch_deprecated_max_register_raw_size(),
2638 set_gdbarch_deprecated_register_virtual_size(),
2639 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2640 Replace set_gdbarch_deprecated_extract_return_value() with
2641 set_gdbarch_extract_return_value(). Remove calls to:
2642 set_gdbarch_deprecated_saved_pc_after_call();
2643 set_gdbarch_deprecated_frame_chain(),
2644 set_gdbarch_deprecated_frame_saved_pc(),
2645 set_gdbarch_deprecated_frame_init_saved_regs(),
2646 set_gdbarch_deprecated_get_saved_register(),
2647 set_gdbarch_deprecated_call_dummy_words(),
2648 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2649 set_gdbarch_deprecated_init_extra_frame_info(),
2650 set_gdbarch_deprecated_frame_args_address(),
2651 set_gdbarch_deprecated_frame_locals_address(),
2652 and set_gdbarch_deprecated_dummy_write_sp().
2653 Add set_gdbarch_convert_register_p(),
2654 set_gdbarch_register_to_value(),
2655 set_gdbarch_value_to_register(),
2656 set_gdbarch_push_dummy_call(),
2657 set_gdbarch_frame_align(),
2658 set_gdbarch_unwind_dummy_id(),
2659 set_gdbarch_unwind_pc(),
2660 frame_unwind_append_sniffer(),
2661 frame_unwind_append_sniffer(),
2662 and frame_base_set_default().
2663
aede7613
CD
26642003-08-25 Chris Demetriou <cgd@broadcom.com>
2665
2666 * configure.tgt: Document need for special "mipsisa64" handling.
2667 (mipsisa64*-*-linux64): Handle as target linux64.
2668 (mipsisa64*-*-*): Handle as target embed64.
2669
43c3a82e
MC
26702003-08-18 Michael Chastain <mec@shout.net>
2671
2672 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2673 objfile bug.
2674
6564f77d
MK
26752003-08-24 Mark Kettenis <kettenis@gnu.org>
2676
2de139ba
MK
2677 * i387-tdep.h: Update copyright date.
2678 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2679
6564f77d
MK
2680 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2681 CFLAGS games to reflect reality.
2682
42cf1509
AC
26832003-08-24 Andrew Cagney <cagney@redhat.com>
2684
2685 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2686 GDB_MULTI_ARCH is always non-zero.
2687 * osabi.c (_initialize_gdb_osabi): Ditto.
2688 (gdbarch_init_osabi): Ditto.
2689 * sparc-tdep.c: Ditto for #if code.
2690
0485f6ad
MK
26912003-08-23 Mark Kettenis <kettenis@gnu.org>
2692
2693 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2694 Update comments.
2695 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2696 comments.
2697 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2698 x86_64_supply_fxsave.
2699 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2700 x86_64_supply_fxsave.
2701 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2702 x86_64_supply_fxsave.
2703
c7716133
AJ
27042003-08-23 Andreas Jaeger <aj@suse.de>
2705
2706 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2707 i387_supply_fxsave.
2708
ed504bdf
MK
27092003-08-23 Mark Kettenis <kettenis@gnu.org>
2710
2711 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2712 i387_supply_register.
2713 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2714 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2715 i387_supply_fsave.
2716 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2717 i387_supply_fxsave.
2718 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2719 i387_supply_fsave.
2720 * i386bsd-nat.c (supply_fpregset): Adjust call to
2721 i387_supply_fsave.
2722 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2723 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2724 supply_fpregset.
2725 (store_inferior_registers): Remove extraneous whitespace. Call
2726 i387_fill_fsave instead of fill_fpregset.
2727 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2728 (supply_fpregset): Likewise.
2729 * i386v4-nat.c (supply_fpregset): Adjust call to
2730 i387_supply_fsave.
2731 * i386-interix-nat.c (supply_fpregset): Adjust call to
2732 i387_supply_fsave.
2733 * i386-linux-nat.c (supply_fpregset): Adjust call to
2734 i387_supply_fsave.
2735 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2736 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2737 i387supply_fsave and i387_supply_fxsave.
2738 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2739 Incorporate code from `i387_supply_register.
2740 (i387_supply_register): Remove.
2741 (i387_supply_fxsave): Add `regnum' argument.
2742 Update comments.
2743 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2744 prototype.
2745 (i387_supply_register): remove prototype.
2746 Update comments.
a8f4cde1 2747
4be5d520
MC
27482003-08-22 Michael Chastain <mec@shout.net>
2749
2750 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2751 Add lines for files in gdb/testsuite/gdb.cp/* that are
2752 still not 8.3 unique.
2753
7ed85d26
DJ
27542003-08-22 Daniel Jacobowitz <drow@mvista.com>
2755
2756 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2757 TYPE_VPTR_FIELDNO is valid.
2758
eb0d3137
MK
27592003-08-19 Mark Kettenis <kettenis@gnu.org>
2760
2761 * utils.c (set_width_command): Remove prototypes.
2762 (set_screen_size): New prototype.
2763 (init_page_info): Simplify by fetching the screen size from
2764 Readline. Call set_screen_size.
2765 (set_screen_size): New function.
2766 (set_width): Add missing whitespace in comment.
2767 (set_width_command): Call set_screen_size.
2768 (set_height_command): New function.
2769 (initialize_utils): Fix formatting. Make "set height" command
2770 call set_height_command. Remove redundant code that turns off
2771 pagination if output isn't a terminal. Remove redundant call to
2772 set_width_command.
a8f4cde1 2773
7e6d0ac8
MK
27742003-08-22 Mark Kettenis <kettenis@gnu.org>
2775
3567a8ea
MK
2776 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2777 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2778 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2779 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2780 `case' keyword.
2781 (sparc64_register_info): Give the reister with number
2782 SPARC64_STATE_REGNUM a name.
2783 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2784 %asi and %ccr.
2785 (sparc64_push_dummy_call): Take BIAS into account when checking
2786 stcak alignment.
2787 (sparc_software_single_step): Remove assertions that check whether
2788 NPC and NNPC were zero.
2789 (sparc_supply_rwindow): Make public. Merge functionality with
2790 sparc64_supply_rwindow.
2791 (sparc_fill_rwindow): Make public. Merge functionality with
2792 sparc64_fill_rwindow.
2793 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2794 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2795 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2796 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2797 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2798
7e6d0ac8
MK
2799 * reggroups.c: Add whitespace after declarations of local
2800 variables in functions.
2801
72e5f484
MC
28022003-08-21 Michael Chastain <mec@shout.net>
2803
2804 * gdbtypes.h: Change array bound type from an int to enum.
2805
435ac228
AC
28062003-08-21 Andrew Cagney <cagney@redhat.com>
2807
2808 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2809 * config/sparc/tm-sparc.h: Ditto.
2810 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2811 unconditionally.
2812 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2813
0d0e1a63
MK
28142003-07-13 Mark Kettenis <kettenis@gnu.org>
2815
2816 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2817 (register_objfile_data, set_objfile_data, objfile_data): New
2818 prototypes.
2819 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2820 prototypes.
2821 (allocate_objfile): Call objfile_alloc_data.
2822 (free_objfile): Call objfile_free_data.
2823 (struct objfile_data): New.
2824 (struct objfile_data_registration): New.
2825 (struct objfile_data_registry): New.
2826 (objfile_data_registry): New variable.
2827 (register_objfile_data): New function.
2828 (objfile_alloc_data, objfile_free_data): New functions.
2829 (set_objfile_data, objfile_data): New functions.
2830 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2831 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2832 (_initialize_dwarf2_frame): New function and prototype.
2833
d90cf509
AC
28342003-08-21 Andrew Cagney <cagney@redhat.com>
2835
2836 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2837 a specific architecture.
2838 * arch-utils.h (set_architecture_from_arch_mach): Delete
2839 declaration.
2840 (target_architecture_hook): Delete declaration.
2841 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2842 (default_float_format): Assume GDB_MULTI_ARCH.
2843 (default_double_format): Assume GDB_MULTI_ARCH.
2844 (set_endian_from_file): Delete function.
2845 (arch_ok): Delete function.
2846 (set_arch): Delete function.
2847 (set_architecture_from_arch_mach): Delete function.
2848 (set_architecture_from_file): Delete function.
2849 (set_architecture): Assume GDB_MULTI_ARCH.
2850 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2851
8b39fe56
MK
28522003-08-21 Mark Kettenis <kettenis@gnu.org>
2853
2854 Rewrite FreeBSD/sparc64 native configuration.
2855 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2856 * sparc64fbsd-nat.c: New file.
2857 * sparc64fbsd-tdep.c: New file.
2858 * sparc64-tdep.c sparc64-tdep.h: New files.
2859 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2860 sparc64fbsd-tdep.o): New dependencies.
2861 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2862 and sparc64fbsd-tdep.c.
2863 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2864 * config/sparc/fbsd.mh: Remove copyright notice.
2865 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2866 sparcbsd-nat.o.
2867 * config/sparc/fbsd.mt: Remove copyright notice.
2868 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2869 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2870 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2871 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2872 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2873 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2874 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2875 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2876 "sparc/tm-sp64.h".
2877 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2878 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2879
a7f19c79
MC
28802003-08-21 Michael Chastain <mec@shout.net>
2881
2882 * symtab.h: Add doco on the space critical structures and
2883 some measurements of space usage.
2884
da08ea5b
MS
28852003-08-21 Michael Snyder <msnyder@redhat.com>
2886
2887 * tracepoint.c (trace_dump_command): Trace break address
2888 is subject to DECR_PC_AFTER_BREAK.
2889 (set_traceframe_context): Make "trace_line" an int.
2890 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2891
6df2bf50
MS
28922003-08-20 Michael Snyder <msnyder@redhat.com>
2893
2894 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2895 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2896 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2897 argument passing.
a8f4cde1 2898 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2899 functions, replace sh_push_dummy_call.
2900 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2901
0955bbf0
MC
29022003-08-20 Michael Chastain <mec@shout.net>
2903
2904 * gdbtypes.h (struct main_type): Rearrange to save space.
2905
260a4188
MS
29062003-08-20 Michael Snyder <msnyder@redhat.com>
2907
2908 * trad-frame.c: Comment typo fix.
2909
8baa6f92
KB
29102003-08-20 Michael Snyder <msnyder@redhat.com>
2911 Kevin Buettner <kevinb@redhat.com>
2912
2913 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2914 (frv_frame_init_saved_regs): Add declaration.
2915 (frame_extra_info): Add new field ``saved_regs''.
2916 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2917 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2918 Update frame related code.
2919 (frv_extract_struct_value_address): Adjust formatting.
2920 * Makefile.in (frv-tdep.o): Update dependencies.
2921 * config/frv/tm-frv.h (target_insert_watchpoint)
2922 (target_remove_watchpoint, target_insert_hw_breakpoint)
2923 (target_remove_hw_breakpoint): Delete these macros.
2924 (remote_insert_watchpoint, remote_remove_watchpoint)
2925 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2926 these declarations.
2927
87193939
MC
29282003-08-20 Michael Chastain <mec@shout.net>
2929
2930 * defs.h (ENUM_BITFIELD): New macro.
2931 * symtab.h (ENUM_BITFIELD): Use it.
2932 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2933
062103ba
SA
29342003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2935
2936 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2937
8b148df9
AC
29382003-08-18 Andrew Cagney <cagney@redhat.com>
2939
2940 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2941 * gdbarch.h, gdbarch.c: Re-generate.
2942 * infcall.c (call_function_by_hand): Adjust the SP by
2943 frame_red_zone_size before allocating any stack space.
2944 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2945 * x86-64-tdep.c (x86_64_frame_align): New function.
2946 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2947
2948 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2949 Remove code adjusting SP so that it skips over the Red Zone.
2950
954a4db8
MK
29512003-08-18 Mark Kettenis <kettenis@gnu.org>
2952
2953 * NEWS (New native configurations): Mention FreeBSD/amd64.
2954
1a241548
AC
29552003-08-18 Andrew Cagney <cagney@redhat.com>
2956
2957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2958 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2959 "m68k_frame_p".
2960 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2961
f82b2acd
MK
29622003-08-18 Mark Kettenis <kettenis@gnu.org>
2963
2964 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2965
4056d258
ML
29662003-08-18 Michal Ludvig <mludvig@suse.cz>
2967
2968 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2969 Define.
2970 * i386-linux-nat.c: Include "linux-nat.h".
2971 (child_post_startup_inferior): New function.
a8f4cde1 2972
99ab4326
MK
29732003-08-18 Mark Kettenis <kettenis@gnu.org>
2974
2975 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2976 at the start of a frameless function. This probably fixes PR
2977 backtrace/1338.
2978
c8d5f0d6
MC
29792003-08-17 Michael Chastain <mec@shout.net>
2980
2981 * symfile.c (find_sym_fns): Remove special case for apollo target.
2982
9016a515
DJ
29832003-08-17 Daniel Jacobowitz <drow@mvista.com>
2984
2985 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2986 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2987 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2988 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2989 (linux_supports_tracevforkdone): New function.
2990 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2991 TRACEVFORKDONE.
2992 (child_follow_fork): Handle vfork.
2993 (linux_handle_extended_wait): Likewise. Also handle exec.
2994 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2995 * NEWS: Mention fork tracing.
2996
c538c11c
DJ
29972003-08-17 Daniel Jacobowitz <drow@mvista.com>
2998
2999 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3000
4de4c07c
DJ
30012003-08-17 Daniel Jacobowitz <drow@mvista.com>
3002
3003 * Makefile.in (i386-linux-nat.o): Update dependencies.
3004 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3005 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3006 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3007 * i386-linux-nat.c: Include "linux-nat.h".
3008 (child_post_startup_inferior): New function.
3009 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3010 * infptrace.c (kill_inferior): Wrap in #ifdef.
3011 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3012 attaching to each LWP.
3013 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3014 (init_lin_lwp_ops): Fill in some more operations.
3015 * linux-nat.h (linux_enable_event_reporting)
3016 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3017 prototypes.
3018 * linux-nat.c (linux_enable_event_reporting): New function.
3019 (child_post_attach, linux_child_post_startup_inferior)
3020 (child_post_startup_inferior, child_follow_fork)
3021 (linux_handle_extended_wait, kill_inferior): New functions.
3022
7996bcec
AC
30232003-08-16 Andrew Cagney <cagney@redhat.com>
3024
3025 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3026 * gdbarch.h, gdbarch.c: Re-generate.
3027
3d48a7a0
MK
30282003-08-16 Mark Kettenis <kettenis@gnu.org>
3029
3030 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3031
7989c619
AC
30322003-08-16 Andrew Cagney <cagney@redhat.com>
3033
3034 * NEWS: Mention that "set prompt-escape-char" was deleted.
3035 * top.c (get_prompt_1): Delete function.
3036 (gdb_prompt_escape):
3037 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3038 prompt-escape-char" command.
3039 (MAX_PROMPT_SIZE): Delete macro.
3040 (get_prompt): Simplify, do not call get_prompt_1.
3041
07978cd8
AC
30422003-08-16 Andrew Cagney <cagney@redhat.com>
3043
3044 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3045 -Werror. -Wformat-nonliteral problems.
3046
3ff7cf9e
JB
30472003-08-15 J. Brobecker <brobecker@gnat.com>
3048
3049 Further multiarching work mostly for hppa64-*-hpux11:
3050 * hppa-tdep.h: New file.
3051 * hppa-tdep.c: #include hppa-tdep.c.
3052 (hppa32_num_regs): Renamed from hppa_num_regs.
3053 (hppa64_num_regs): New constant.
3054 (hppa64_call_dummy_breakpoint_offset): New constant.
3055 (hppa32_call_dummy_length): New constant.
3056 (hppa64_call_dummy_length): New constant.
3057 (hppa32_stack_align): Make name 32bit explicit.
3058 (hppa32_register_virtual_type): Likewise.
3059 (hppa32_extract_return_value): Likewise.
3060 (hppa32_use_struct_convention): Likewise.
3061 (hppa32_store_return_value): Likewise.
3062 (hppa64_register_virtual_type): New function.
3063 (hppa64_extract_return_value): New function.
3064 (hppa64_use_struct_convention): New function.
3065 (hppa64_store_return_value): New function.
3066 (hppa_frame_locals_address): Remove declaration, function does
3067 not exist anymore.
3068 (hppa_register_byte): Add support for PA64 ABI.
3069 (hppa_gdbarch_init): Add support for PA64 ABI.
3070 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3071 Make name 32bit explicit.
3072 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3073 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3074 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3075 (hppa64_hpux_frame_base_before_sigtramp): New function.
3076 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3077 * config/pa/tm-hppa64.h: Remove macros that are no longer
3078 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3079 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3080 * config/pa/tm-hppah.h: Update function calls in macros
3081 following the function renaming in hppa-hpux-tdep.c.
3082 * Makefile.in (hppa_tdep_h): New variable.
3083 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3084
5d05ca6d
MS
30852003-08-14 Michael Snyder <msnyder@redhat.com>
3086
3087 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3088
37ba2569
JB
30892003-08-13 J. Brobecker <brobecker@gnat.com>
3090
3091 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3092 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3093 routine.
3094
aed7f26a
MS
30952003-08-13 Michael Snyder <msnyder@redhat.com>
3096
3097 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3098 (frv_saved_pc_after_call): Use deprecated ftype.
3099 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3100 (frv_remote_translate_xfer_address): Remove.
3101 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3102
752d4ac1
JB
31032003-08-13 J. Brobecker <brobecker@gnat.com>
3104
3105 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3106 initialization after the common gdbarch initialization, not before.
3107
1426ac1d
JB
31082003-08-13 J. Brobecker <brobecker@gnat.com>
3109
3110 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3111 (ADDR_BITS_REMOVE): Remove, redundant.
3112
b6fbdd1d
JB
31132003-08-13 J. Brobecker <brobecker@gnat.com>
3114
3115 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3116 gdbarch method to clear the 2 low bits of text addresses.
3117
44160db3
AC
31182003-08-12 Andrew Cagney <cagney@redhat.com>
3119
3120 * Makefile.in (dsrec.o): Update dependencies.
3121 * dsrec.c: Include "gdb_assert.h".
3122 (make_srec): Use snprintf instead of sprintf, use a literal format
3123 string.
3124
bcf7d3ca
AC
31252003-08-12 Andrew Cagney <cagney@redhat.com>
3126
3127 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3128 FRAME_OBSTACK_ZALLOC.
3129
49ed40de
KB
31302003-08-12 Kevin Buettner <kevinb@redhat.com>
3131
3132 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3133 SSE registers.
3134
b246147c
MK
31352003-08-10 Mark Kettenis <kettenis@gnu.org>
3136
3137 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3138 amd64fbsd_sc_reg_offset): Add extern declarations.
3139 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3140 declarations.
3141
d95fdc0d
BE
31422003-08-11 Ben Elliston <bje@wasabisystems.com>
3143
3144 * MAINTAINERS (write after approval): Update my mail address.
3145
cf6a0e73
AC
31462003-08-10 Andrew Cagney <cagney@redhat.com>
3147
3148 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3149
f837910f
MK
31502003-08-10 Mark Kettenis <kettenis@gnu.org>
3151
e2dbbd2d
MK
3152 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3153 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3154 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3155 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3156 i386bsd_sc_reg_offset): Add extern declarations.
3157 * i386obsd-nat.c: Include "i386-tdep.h"
3158 (_initialize_i386obsd_nat): Remove extern declarations.
3159 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3160 declarations.
3161 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3162 declarations.
3163
f837910f
MK
3164 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3165 instead of frame_read_register.
3166 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3167 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3168 SP_REGNUM.
3169 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3170 instead of frame_unwind_unsigned_register. Use
3171 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3172 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3173 instead of read_register. Use builtin_type_void_data_ptr instead
3174 of builtin_type_void_func_ptr when extracting the address of the
3175 jmp_buf.
3176 (i386_extract_return_value, i386_store_return_value,
3177 i386_pseudo_register_read, i386_pseudo_register_write): Use
3178 register_size instead REGISTER_RAW_SIZE.
3179
edcf254d
AC
31802003-08-10 Andrew Cagney <cagney@redhat.com>
3181
3182 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3183 sprintf. Make "name" constant.
3184
26604a34
MK
31852003-08-10 Mark Kettenis <kettenis@gnu.org>
3186
192285c6
MK
3187 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3188 instead of frame_read_register.
f837910f
MK
3189 (i387_print_float_info): Use get_frame_register and
3190 get_frame_register_unsigned instead of frame_register_read.
192285c6 3191
f0925262
MK
3192 * i386fbsd-nat.c: Include "i386-tdep.h".
3193 (child_resume): Make `eflags' an ULONGEST. Use
3194 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3195 instead of register_read and register_write.
3196
a144416f
MK
3197 * i386bsd-nat.c (fetch_inferior_registers,
3198 store_inferior_registers): Don't use && at the end of a line.
3199 (_initialize_i386bsd_nat): Fix typo.
3200
fec74868
MK
3201 * frame.c (_initialize_frame): Add missing backslash.
3202
87232496
MK
3203 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3204 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3205 and supply_register instead of manipulating the register buffer
3206 directly.
3207
c9b9de0b
MK
3208 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3209 * config/i386/nm-i386sol2.h
3210 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3211
26604a34
MK
3212 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3213 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3214 instructions that GCC likes to mingle into the prologue. Fixes
3215 gdb/1253 and gdb/1255.
3216
25d29d70
AC
32172003-08-09 Andrew Cagney <cagney@redhat.com>
3218
3219 Fix GDB PR cli/926.
3220 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3221 * command.h (add_setshow_uinteger_cmd): Declare.
3222 * frame.c (set_backtrace_cmd): New function.
3223 (show_backtrace_cmd): New function.
3224 * frame.c (_initialize_frame): Replace "set/show
3225 backtrace-below-main" with "set/show backtrace past-main". Add
3226 command "set/show backtrace limit".
3227 (backtrace_past_main): Rename "backtrace_below_main".
3228 (backtrace_limit): New variable.
3229 (get_prev_frame): Update. Check the backtrace_limit.
3230
9ebf4acf
AC
32312003-08-09 Andrew Cagney <cagney@redhat.com>
3232
3233 * defs.h (xstrprintf): Declare.
3234 * utils.c (xstrprintf): New function.
3235 * breakpoint.c (insert_breakpoints): Replace sprintf and
3236 non-literal format strings, with xstrprintf and cleanups.
3237 (delete_breakpoint,breakpoint_re_set): Ditto.
3238 (commands_command, insert_breakpoints): Ditto.
3239 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3240 (break_at_finish_command_1): Ditto.
3241
3771659b
AC
32422003-08-09 Andrew Cagney <cagney@redhat.com>
3243
3244 * MAINTAINERS (language support): List Adam Fedor as Objective C
3245 maintainer.
3246
b4263afa
JB
32472003-08-08 J. Brobecker <brobecker@gnat.com>
3248
3249 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3250 are now multiarched.
3251
d84defb1
JB
32522003-08-08 J. Brobecker <brobecker@gnat.com>
3253
3254 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3255 longer necessary now that hppa64 is partially multiarch'ed.
3256
f786f615
AC
32572003-08-08 Andrew Cagney <cagney@redhat.com>
3258
3259 * interps.c (interp_set): Check for a NULL "old_interp".
3260
c938e9b0
L
32612003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3262
3263 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3264 (install-only): Support DESTDIR.
3265 (uninstall): Likewise.
3266 (install-gdbtk): Likewise.
3267
9a146a11
EZ
32682003-08-08 Elena Zannoni <ezannoni@redhat.com>
3269
3270 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3271 contains something meaningful at all times.
3272
3273Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3274
62599e99 3275 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3276
56296155
BC
3277Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3278
62599e99 3279 * MAINTAINERS (write after approval): Added self.
56296155 3280
9710e734
AC
32812003-08-07 Andrew Cagney <cagney@redhat.com>
3282
3283 * inferior.h (AT_SYMBOL): Define.
3284 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3285 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3286 * mips-tdep.c (mips_call_dummy_address): Delete function.
3287 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3288 set call_dummy_address.
3289
98b3ab73
AC
32902003-08-07 Andrew Cagney <cagney@redhat.com>
3291
3292 * language.c (op_error): Delete function.
3293 (binop_type_check): Delete function.
3294 * language.h (type_op_error, range_op_error): Delete macros.
3295 (op_error): Delete declaration.
3296
2fcf52f0
AC
32972003-08-07 Andrew Cagney <cagney@redhat.com>
3298
3299 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3300
abd4220e 33012003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3302
abd4220e 3303 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3304 (x86_64_push_arguments): Skip the red zone.
abd4220e 3305
9dd5f34f
AC
33062003-08-05 Andrew Cagney <cagney@redhat.com>
3307
3308 * reggroups.c (reggroup_next): Check for the final entry.
3309
e5e78edc
AC
33102003-08-04 Andrew Cagney <cagney@redhat.com>
3311
ab4e3d93
AC
3312 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3313 * cli/cli-script.c (define_command): Call query directly, instead
3314 of passing it a buffer.
3315 * ocd.c (ocd_error): Pass error a constant format string.
3316 * remote-mips.c (mips_error): Use fputs_filtered.
3317
1062ca82
AC
3318 * solib-svr4.c (_initialize_svr4_solib): Update
3319 register_gdbarch_data call.
3320 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3321
fcc1c85c
AC
3322 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3323 (register_gdbarch_data): Delete "free" parameter. Update
3324 comments.
3325 * gdbarch.h, gdbarch.c: Re-generate.
3326 * reggroups.c (_initialize_reggroup): Update.
3327 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3328 * frame-base.c (_initialize_frame_base): Update.
3329 * frame-unwind.c (_initialize_frame_unwind): Update.
3330 * user-regs.c (_initialize_user_regs): Update.
3331 * remote.c (_initialize_remote): Update.
3332 * regcache.c (_initialize_regcache): Update.
3333
116f06ea
AC
3334 * regcache.c (xfree_regcache_descr): Delete function.
3335 (_initialize_regcache): Update call to register_gdbarch_data.
3336 (init_regcache_descr, init_legacy_regcache_descr): Use
3337 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3338
e5e78edc
AC
3339 * remote.c (free_remote_state): Delete function.
3340 (_initialize_remote): Update register_gdbarch_data.
3341 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3342 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3343
6c7d17ba
AC
33442003-08-04 Andrew Cagney <cagney@redhat.com>
3345
3346 * reggroups.c (struct reggroup_el): Define.
3347 (struct reggroups): Delete field "nr_group". Replace array
3348 "group" with a "first" to "last" linked list.
3349 (reggroups_init): Update. Allocate using gdbarch's obstack.
3350 (reggroups_free): Delete function.
3351 (add_group): Update. Add "el" parameter.
3352 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3353 (default_groups): Update.
3354 (reggroup_next): Replace reggroups.
3355 (reggroups_dump): Update.
3356 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3357 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3358 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3359
89b7795b
DJ
33602003-08-04 Daniel Jacobowitz <drow@mvista.com>
3361
3362 * Makefile.in (tui-interp.o): Update dependencies.
3363
306d9ac5
DC
33642003-08-04 David Carlton <carlton@kealia.com>
3365
3366 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3367 to internal_error call.
3368 * source.c (forward_search_command): Add "%s" format argument.
3369 (reverse_search_command): Ditto.
3370 * top.c (quit_confirm): Ditto.
3371 * cli/cli-setshow.c (do_setshow_command): Ditto.
3372 * cp-valprint.c (cp_print_class_method): Replace
3373 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3374 (cp_print_class_member): Ditto.
3375 * event-top.c (command_line_handler): Ditto.
3376 * linux-proc.c (linux_info_proc_cmd): Ditto.
3377 * p-typeprint.c (pascal_type_print_base): Ditto.
3378 * p-valprint.c (pascal_object_print_class_method): Ditto.
3379 (pascal_object_print_class_member): Ditto.
3380 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3381 * remote.c (remote_cisco_section_offsets): Ditto.
3382 * top.c (command_line_input): Ditto.
3383 * utils.c (vwarning,error_stream,quit): Ditto.
3384 * valprint.c (print_floating,print_binary_chars)
3385 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3386
57bfe177
AC
33872003-08-04 Andrew Cagney <cagney@redhat.com>
3388
3389 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3390
e546b999
AC
33912003-08-02 Andrew Cagney <cagney@redhat.com>
3392
3393 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3394 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3395 amd64fbsd-nat.c.
3396
91092ee5
AC
33972003-08-02 Andrew Cagney <cagney@redhat.com>
3398
3399 * Makefile.in: Update all dependencies and definitions.
3400
889f28e2
AF
34012003-08-02 Adam Fedor <fedor@gnu.org>
3402
3403 * linespec.c (is_objc_method_format): New function
3404 (decode_line_1, locate_first_half): Use it.
3405 Fixes PR objc/1298
3406
880bc914
AC
34072003-08-01 Andrew Cagney <cagney@redhat.com>
3408
3409 * NEWS: Mention that m32r is multi-arch.
3410 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3411 * configure.tgt: Recognize m32r-*-*.
3412 * config/m32r/tm-m32r.h: Delete file.
3413 * config/m32r/m32r.mt: New file.
a8f4cde1 3414 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3415 gethostname succeeds, in order to avoid a compilation
3416 warning.
3417 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3418 compiler warning.
3419
19f59343
MS
34202003-08-01 Michael Snyder <msnyder@redhat.com>
3421
3422 * sh-tdep.c (sh_frame_align): New gdbarch method.
3423 (sh_gdbarch_init): Set up frame_align method.
3424
4e7d7511
MS
34252003-07-31 Michael Snyder <msnyder@redhat.com>
3426
3427 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3428 which is already covered by the new frames infrastructure.
3429
63022984
AC
34302003-07-31 Andrew Cagney <cagney@redhat.com>
3431
3432 * user-regs.c (struct user_reg): Add "next" link.
3433 (struct user_regs): Replace "user" with "first" and "last" links.
3434 (append_user_reg): Add pre-allocated "reg" parameter.
3435 (builtin_user_regs): Provide initial value for "last".
3436 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3437 (user_regs_init): Allocate memory from the gdbarch obstack.
3438 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3439 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3440 linked list.
3441 (usernum_to_user_reg): New function.
3442 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3443 (value_of_user_reg): Use usernum_to_user_reg.
3444 (user_regs_free): Delete function.
3445 (_initialize_user_regs): Update register_gdbarch_data call.
3446
7cf6e574
DJ
34472003-07-31 Daniel Jacobowitz <drow@mvista.com>
3448
3449 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3450
c48a845b
MS
34512003-07-30 Michael Snyder <msnyder@redhat.com>
3452
4e7d7511 3453 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3454 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3455 value_being_returned.
3456 * infcmd.c (print_return_value): Pass zero as struct_addr.
3457 * values.c (value_being_returned): If struct_addr is passed,
3458 use it instead of trying to recover it from the inferior.
3459
f0d8db19
KB
34602003-07-30 Kevin Buettner <kevinb@redhat.com>
3461
3462 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3463 the prologue analyzer won't need to attempt to extract the pc
3464 value from the woefully incomplete dummy frame.
3465 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3466 possible. Disable code which modifies the frame.
3467
e5c113a1
AC
34682003-07-28 Andrew Cagney <cagney@redhat.com>
3469
3470 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3471 to level 2.
3472 (annotate_breakpoints_table, annotate_record): Ditto.
3473 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3474 (annotate_field_name_end, annotate_field_value): Ditto.
3475 (annotate_field_end, annotate_frame_source_begin): Ditto.
3476 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3477 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3478 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3479 (annotate_frame_address_end, annotate_frame_address): Ditto.
3480 (annotate_frame_args, annotate_frame_end): Ditto.
3481 (annotate_frame_where, annotate_arg_begin): Ditto.
3482 (annotate_arg_name_end, annotate_arg_value): Ditto.
3483 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3484 (annotate_function_call, annotate_signal_name): Ditto.
3485 (annotate_signal_string, annotate_signal_name_end): Ditto.
3486 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3487 (annotate_value_begin, annotate_value_history_value): Ditto.
3488 (annotate_value_history_end, annotate_value_end): Ditto.
3489 (annotate_display_begin, annotate_display_number_end): Ditto.
3490 (annotate_display_format, annotate_display_expression): Ditto.
3491 (annotate_display_expression_end, annotate_display_value): Ditto.
3492 (annotate_display_end, annotate_array_section_begin): Ditto.
3493 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3494 (annotate_elt, annotate_array_section_end): Ditto.
3495
bb1db049
AC
34962003-07-28 Andrew Cagney <cagney@redhat.com>
3497
3498 * regcache.c (struct regcache_descr): Update comments on
3499 nr_raw_registers.
3500 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3501 sizeof_raw_register_valid_p.
3502 (init_regcache_descr): Set nr_raw_registers and
3503 sizeof_raw_register_valid_p before calling
3504 init_legacy_regcache_descr.
3505
20e6603c
AC
35062003-07-28 Andrew Cagney <cagney@redhat.com>
3507
3508 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3509 MOD NUM_REGS.
3510
db742940
DJ
35112003-07-28 Daniel Jacobowitz <drow@mvista.com>
3512
3513 * thread.c (info_threads_command): Use get_selected_frame ().
3514 Check that there is at least one non-sentinel frame.
3515
ce7f4371
SC
35162003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3517
3518 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3519 (m68hc11_pop_frame): Remove.
3520 (m68hc11_frame_saved_pc): Remove.
3521 (m68hc11_frame_chain): Remove.
3522 (m68hc11_frame_init_saved_regs): Remove.
3523 (m68hc11_init_extra_frame_info): Remove.
3524 (m68hc11_store_struct_return): Remove.
3525 (m68hc11_saved_pc_after_call): Remove.
3526
1ea653ae
SC
35272003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3528
3529 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3530 frame unwind information.
3531 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3532 and adapted for frame unwinding.
3533 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3534 (m68hc11_unwind_pc): New function.
3535 (m68hc11_frame_unwind_cache): New function to analyze frames.
3536 (m68hc11_frame_this_id): New function to create new frame struct.
3537 (m68hc11_frame_prev_register): New function to unwind a register from
3538 the frame.
3539 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3540 (m68hc11_frame_p): New function for the above.
3541 (m68hc11_frame_base_address): New function to return fp of frame.
3542 (m68hc11_frame_args_address): Update for frame.
3543 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3544 (m68hc11_unwind_sp): New function.
3545 (m68hc11_unwind_dummy_id): New function.
3546 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3547 calls.
3548
c8a7f6ac
SC
35492003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3550
3551 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3552 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3553 when we are beyond the current pc.
3554
3dc990bf
SC
35552003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3556
3557 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3558 from m68hc11_push_arguments.
3559 (m68hc11_push_arguments): Remove.
3560 (m68hc11_push_return_address): Remove.
3561 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3562 handlers; remove deprecated_extra_stack_alignment_needed.
3563
222e5d1d
AC
35642003-07-27 Andrew Cagney <cagney@redhat.com>
3565
3566 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3567 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3568 REAL_PC and not the pointer.
3569 * hppa-hpux-tdep.c: Include frame.h
3570
a7e9a47e
AC
35712003-07-27 Andrew Cagney <cagney@redhat.com>
3572
3573 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3574 GDB_MULTI_ACH_PARTIAL.
3575
7e3dd49e
AC
35762003-07-27 Andrew Cagney <cagney@redhat.com>
3577
3578 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3579 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3580 operator at start and not end of line.
3581 (decode_prologue): Ditto.
3582 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3583 frame_unwind_register_unsigned instead of
3584 frame_unwind_unsigned_register.
3585 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3586 read_register.
3587 (m32r_push_dummy_call): Use register_size instead of
3588 REGISTER_RAW_SIZE.
3589 (m32r_frame_sniffer): Replace m32r_frame_p.
3590 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3591 * m32r-rom.c (report_transfer_performance): Delete extern
3592 declaration.
3593 (m32r_load, m32r_upload_command): Use print_transfer_performance
3594 instead of report_transfer_performance.
3595 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3596 / add_show_from_set.
3597
0880807f
AC
35982003-07-26 Andrew Cagney <cagney@redhat.com>
3599
3600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3601 store_return_value and extract_struct_value_address.
3602
64ae9269
DJ
36032003-07-26 Daniel Jacobowitz <drow@mvista.com>
3604
3605 PR c++/1267
3606 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3607 NULL, default to the section containing PC.
3608
e286caf2
SC
36092003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3610
3611 * NEWS: Mention "regs" deprecated for m68hc11 too.
3612
3613 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3614 (m68hc11_print_register): New function to print out one register.
3615 (m68hc11_print_registers_info): New function to print registers.
3616 (show_regs): Deprecate and use the above.
3617 (m68hc11_gdbarch_init): Install the print_registers_info.
3618
705b278b
JJ
36192003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3620
3621 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3622 that we have a SIGTRAP before returning non-zero.
3623
63cd4198
EZ
36242003-07-23 Michal Ludvig <mludvig@suse.cz>
3625 Elena Zannoni <ezannoni@redhat.com>
3626
a8f4cde1 3627 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3628 find_function_start_sal() returns empty record.
3629
6926787d
AS
36302003-07-23 Andreas Schwab <schwab@suse.de>
3631
3632 * ia64-tdep.c (ia64_print_insn): New function.
3633 (ia64_gdbarch_init): Set print_insn to it.
3634 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3635 deprecated_tm_print_insn_info.
3636
708cc1b6
MS
36372003-07-22 Michael Snyder <msnyder@redhat.com>
3638
3639 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3640 handle 8-bit returns (long long).
3641 (h8300h_extract_return_value): Ditto.
3642 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3643
aebd7893
AC
36442003-07-22 Andrew Cagney <cagney@redhat.com>
3645
3646 * gdbarch.c Include "gdb_obstack.h".
3647 (struct gdbarch): Add an "obstack".
3648 (alloc_gdbarch_data): Allocate the gdbarch data using
3649 GDBARCH_OBSTACK_CALLOC.
3650 (free_gdbarch_data): Delete function.
3651 (gdbarch_obstack_zalloc): New function.
3652 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3653 Assert that the architecture is not initialized.
3654 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3655 vector from the obstack.
3656 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3657 architecture obstack.
3658 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3659 (set_gdbarch_data): Assert that the data is not initialized.
3660 (struct gdbarch_data): Delete member "free".
3661 (register_gdbarch_data): Do not initialize "free".
3662 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3663
153721e6
AC
36642003-07-22 Andrew Cagney <cagney@redhat.com>
3665
3666 * configure.in (build_warnings): Add -Wformat-nonliteral.
3667 * configure: Re-generate.
3668
c193f044 36692003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3670
3671 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3672
c3228f12
EZ
36732003-07-22 Elena Zannoni <ezannoni@redhat.com>
3674
3675 * findvar.c (read_var_value): Remove case for thread local storage
3676 variables. It is now entirely handled by the dwarf2 location
3677 expression code.
3678 * printcmd.c (address_info): Ditto.
3679 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3680 enumeration value.
3681 (struct symbol): Remove objfile field, which was used by
3682 LOC_THREAD_LOCAL_STATIC only.
3683 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3684 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3685 usage of objfile pointer.
3686 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3687 thread local variables.
3688 Add include of objfiles.h.
3689 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3690 storage variables.
3691 * Makefile.in (dwarf2loc.o): Update dependencies.
3692
aef9bcd2
AC
36932003-07-22 Andrew Cagney <cagney@redhat.com>
3694
3695 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3696 get_frame_base.
3697 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3698 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3699 (struct value): Add opaque declaration.
3700 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3701
d95a8903
AC
37022003-07-21 Andrew Cagney <cagney@redhat.com>
3703
3704 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3705 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3706
4db73d49
SC
37072003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3708
a8f4cde1 3709 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3710 regcache_cooked_read_unsigned instead of read_register.
3711 (m68hc11_saved_pc_after_call): Likewise.
3712 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3713 instead of write_register.
3714 (m68hc11_register_type): New function.
3715 (m68hc11_register_virtual_type): Remove.
3716 (m68hc11_store_return_value): Convert to use the regcache.
3717 (m68hc11_extract_struct_value_address): Likewise.
3718 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3719 m68hc11_register_type; undeprecate store_return_value and
3720 extract_struct_value_address.
3721
ef2b8fcd
SC
37222003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3723
3724 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3725 and translate to use regcache.
3726 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3727
625b0b97
AC
37282003-07-18 Andrew Cagney <cagney@redhat.com>
3729
3730 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3731 * gdbarch.h, gdbarch.c: Re-generate.
3732 * i386-tdep.c (i386_gdbarch_init): Do not set
3733 DWARF2_BUILD_FRAME_INFO.
3734 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3735 unconditionally.
3736 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3737 DWARF2_BUILD_FRAME_INFO.
3738
22b0d388
AC
37392003-07-18 Andrew Cagney <cagney@redhat.com>
3740
3741 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3742 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3743
1ce5d6dd
AC
37442003-07-18 Andrew Cagney <cagney@redhat.com>
3745
3746 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3747 frame_unwind_address_in_block, instead of frame_pc_unwind.
3748 (dwarf2_frame_cache): Ditto.
3749
e6e5e94c
AC
37502003-07-18 Andrew Cagney <cagney@redhat.com>
3751
3752 * user-regs.h (struct gdbarch): Declare opaque.
3753 * ui-out.h (struct ui_file): Declare opaque.
3754 * dwarf2-frame.h (struct frame_info): Declare opaque.
3755
5483d879
KW
37562003-07-18 Kris Warkentin <kewarken@qnx.com>
3757
3758 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3759 #include "...".
3760 (procfs_meminfo): Change strerror to safe_strerror.
3761 (procfs_can_run): Remove K&R badness.
3762
278a7cf7
MS
37632003-07-17 Michael Snyder <msnyder@redhat.com>
3764
3765 * remote-sim.c: Comment typo fix.
3766
606e3b82
AC
37672003-07-17 Andrew Cagney <cagney@redhat.com>
3768
3769 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3770 configure.
3771 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3772 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3773 GDB_MULTI_ARCH_PARTIAL.
3774
c43af07c
EZ
37752003-07-17 Elena Zannoni <ezannoni@redhat.com>
3776
3777 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3778 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3779 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3780
3b85b0f1
TR
37812003-07-16 Theodore A. Roth <troth@openavr.org>
3782
3783 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3784 found.
3785 (avr_frame_unwind_cache): Don't unwind FP for main.
3786 Update a comment.
3787 Save the computed prev_sp.
3788 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3789 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3790 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3791
336d1bba
AC
37922003-07-16 Andrew Cagney <cagney@redhat.com>
3793
3794 * frame-base.h (frame_base_p_ftype): Delete definition.
3795 (frame_base_append_predicate): Delete declaration.
3796 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3797 (frame_unwind_append_predicate): Delete declaration.
3798 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3799 (append_predicate): Delete parameter "p".
3800 (frame_unwind_append_predicate): Delete function.
3801 (frame_unwind_append_sniffer): Update call to append_predicate.
3802 (frame_unwind_free): Delete function.
3803 (_initialize_frame_unwind): Pass NULL as "free" to
3804 register_gdbarch_data.
3805 (frame_unwind_init): Append the dummy_frame_sniffer.
3806 (frame_unwind_find_by_frame): Simplify.
3807 * frame-base.c (struct frame_base_table): Delete field "p".
3808 (append_predicate): Delete parameter "p".
3809 (frame_base_append_predicate): Delete function.
3810 (frame_base_append_sniffer): Update call to append_predicate.
3811 (frame_base_free): Delete function.
3812 (frame_base_find_by_frame): Simplify.
3813 (_initialize_frame_base): Pass NULL as "free" to
3814 register_gdbarch_data.
3815 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3816 (x86_64_sigtramp_frame_sniffer): Replace
3817 "x86_64_sigtramp_frame_p".
3818 (x86_64_init_abi): Set the frame unwind sniffers.
3819 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3820 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3821 (m68k_gdbarch_init): Set the frame unwind sniffers.
3822 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3823 "i386_sigtramp_frame_p".
3824 (i386_frame_sniffer): Replace "i386_frame_p".
3825 (i386_gdbarch_init): Set the frame unwind sniffers.
3826 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3827 (avr_gdbarch_init): Set the frame unwind sniffers.
3828 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3829 "alpha_sigtramp_frame_p"
3830 (alpha_heuristic_frame_sniffer): Replace
3831 "alpha_heuristic_frame_p".
3832 (alpha_gdbarch_init): Set the frame unwind sniffers.
3833 (alpha_dwarf2_init_abi): Ditto.
3834 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3835 "alpha_debug_frame_p".
3836 (alpha_mdebug_frame_base_sniffer): Replace
3837 "alpha_mdebug_frame_base_p".
3838 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3839 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3840 (d10v_gdbarch_init): Set the frame unwind sniffer.
3841 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3842 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3843 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3844 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3845 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3846 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3847
48db5a3c
CV
38482003-07-16 Michael Snyder <msnyder@redhat.com>
3849
3850 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3851 should go thru sh_dsp_register_sim_regno, else the dsp regs
3852 will not get the right values.
3853
38542003-07-16 Corinna Vinschen <vinschen@redhat.com>
3855
3856 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3857 deprecated_store_floating by call to store_typed_floating.
3858 (sh_sh4_register_convert_to_raw): Substitute call to
3859 deprecated_extract_floating by call to extract_typed_floating.
3860
38612003-07-16 Corinna Vinschen <vinschen@redhat.com>
3862
3863 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3864
38652003-07-16 Corinna Vinschen <vinschen@redhat.com>
3866
3867 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3868 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3869 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3870 as possible.
3871 (do_pseudo_register): Remove.
3872 (sh_push_dummy_code): New function.
3873 (sh64_store_struct_return): Rename from sh_store_struct_return.
3874 Only called for sh64 now.
3875 (sh_extract_struct_value_address): Regcache'ify.
3876 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3877 and accomodate new tasks.
3878 (sh64_push_return_address): Rename from sh_push_return_address.
3879 Only called for sh64 now.
3880 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3881 Regcache'ify.
3882 (sh3e_sh4_extract_return_value): Regcache'ify.
3883 (sh_default_store_return_value): Ditto.
3884 (sh3e_sh4_store_return_value): Ditto.
3885 (sh_default_register_byte): Remove.
3886 (sh_sh4_register_byte): Remove.
3887 (sh_default_register_raw_size): Remove.
3888 (sh_sh4_register_raw_size): Remove.
3889 (sh_register_virtual_size): Remove.
3890 (sh_sh3e_register_virtual_type): Remove.
3891 (sh_sh3e_register_type): New function.
3892 (sh_sh4_register_virtual_type): Remove.
3893 (sh_sh4_register_type): New function.
3894 (sh_default_register_virtual_type): Remove.
3895 (sh_default_register_type): New function.
3896 (do_fv_register_info): Add parameters to accomodate call from
3897 sh_print_registers_info.
3898 (do_dr_register_info): Ditto.
3899 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3900 Add parameters to accomodate call from sh_print_registers_info.
3901 (sh_do_fp_register): Ditto.
3902 (sh64_do_pseudo_register): Call do_dr_register_info,
3903 do_fv_register_info and sh_do_fp_register with default parameters.
3904 (sh_do_register): Add parameters to accomodate call from
3905 sh_print_registers_info.
3906 (sh_print_register): Ditto.
3907 (sh_print_registers_info): Rename from sh_do_registers_info.
3908 Add parameters to be used as gdbarch_print_registers_info
3909 implementation. Accomodate removed do_pseudo_register function
3910 pointer.
3911 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3912 function pointer. Call sh_print_register with default parameters.
3913 (sh64_do_registers_info): Call sh_print_registers_info instead of
3914 sh_do_registers_info.
3915 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3916 detection of deprecated vs. non-deprecated functionality.
3917 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3918 function pointer assignments by direct function calls.
3919
e8a89fe2
AC
39202003-07-15 Andrew Cagney <cagney@redhat.com>
3921
3922 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3923 (frame_register_unwind, create_new_frame): Ditto.
3924 (legacy_get_prev_frame, get_frame_type): Ditto.
3925 (get_frame_base_address): Use frame_base_find_by_frame.
3926 (get_frame_locals_address): Use frame_base_find_by_frame.
3927 (get_frame_args_address): Use frame_base_find_by_frame.
3928 * frame-base.h (frame_base_sniffer_ftype): Declare.
3929 (frame_base_append_sniffer): Declare.
3930 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3931 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3932 (frame_base_append_sniffer): New function.
3933 (frame_base_append_predicate): Add a NULL sniffer.
3934 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3935 (struct frame_base_table): Add "sniffer".
3936 (frame_base_free): Free the "sniffer" table.
3937 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3938 (frame_unwind_append_sniffer): Declare.
3939 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3940 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3941 (struct frame_unwind_table): Add "sniffer", delete "middle".
3942 (append_predicate): Add "sniffer" parameter, append the sniffer.
3943 (frame_unwind_init): Update append_predicate call.
3944 (frame_unwind_append_sniffer): New function.
3945 (frame_unwind_append_predicate): Update append_predicate call.
3946 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3947
0714963c
AC
39482003-07-15 Andrew Cagney <cagney@redhat.com>
3949
3950 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3951 before code inhibiting repeated unwind attempts. Add to
3952 commentary on that test's problems.
3953 * blockframe.c (inside_main_func): Look for "main" in the minimal
3954 symbol table.
3955 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3956 identical.
3957
d9170e22
AC
39582003-07-15 Andrew Cagney <cagney@redhat.com>
3959
3960 * complaints.c (struct explanation): Define.
3961 (struct complaints): Change type of "explanation" to "struct
3962 explanation".
3963 (symfile_explanations): Convert to a "struct explanation" table.
3964 (vcomplaint): Update.
3965
eba29c8c
ML
39662003-07-15 Michal Ludvig <mludvig@suse.cz>
3967
3968 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3969 (supply_gregset, fill_gregset): Call
eba29c8c
ML
3970 x86_64_linux_(fill,supply)_gregset functions.
3971 * x86-64-linux-tdep.c (USER_*): New defines.
3972 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3973 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3974 New functions.
3975 (fetch_core_registers): Ditto.
3976 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3977 * x86-64-linux-tdep.h: New file.
3978 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3979 and core-regset.o.
3980 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3981
68cc0bfb
MK
39822003-07-13 Mark Kettenis <kettenis@gnu.org>
3983
88a115f7
MK
3984 * x86-64-tdep.c (x86_64_store_return_value): Use
3985 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3986
68cc0bfb
MK
3987 * configure.host: Add x86_64-*-freebsd*.
3988 * configure.tgt: Add x86_64-*-freebsd*.
3989 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3990 * amd64fbsd-nat.c: New file.
3991 * amd64fbsd-tdep.c: New file.
3992 * config/i386/nm-fbsd64.h: New file.
3993 * config/i386/fbsd64.mh: New file.
3994 * config/i386/fbsd64.mt: New file.
3995
138e7be5
MK
39962003-07-11 Mark Kettenis <kettenis@gnu.org>
3997
3998 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3999 `sc_regs_offset' and `sc_fpregs_offset'.
4000 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4001 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4002 (alpha_sigtramp_register_address): Rewrite to use new members of
4003 `struct gdbarch_tdep'.
4004 (alpha_gdbarch_init): Initialize new members of struct
4005 gdbarch_tdep'.
4006 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4007 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4008 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4009 (alphafbsd_pc_in_sigtramp): Implement.
4010 (alphafbsd_sigtramp_offset): New function.
4011 (alphafbsd_sigcontext_addr): New function.
4012 (alphafbsd_init_abi): Initialize signal trampoline related members
4013 of `struct gdbarch_tdep'.
4014 (_initialize_alphafbsd_tdep): Add prototype.
4015
95303a68
TR
40162003-07-11 Theodore A. Roth <troth@openavr.org>
4017
ba292e4c
TR
4018 * Makefile.in (install-only): Quote sed expression when generating
4019 transformed_name.
95303a68 4020
6896c0c7
RH
40212003-07-11 Richard Henderson <rth@redhat.com>
4022
4023 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4024 * dwarf2-frame.c: Include complaints.h.
4025 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4026 variable initialization; return NULL on error.
4027 (decode_frame_entry): New.
4028
8edd5d01
AC
40292003-07-11 Andrew Cagney <cagney@redhat.com>
4030
c4a09524
AC
4031 * frame.h (frame_address_in_block): Delete declaration.
4032 * blockframe.c (frame_address_in_block): Delete function.
4033 (get_frame_block): Use get_frame_address_in_block.
4034 (block_innermost_frame): Ditto.
4035 * stack.c (print_frame, backtrace_command_1): Ditto.
4036
8edd5d01
AC
4037 * frame.h (get_frame_address_in_block): Declare.
4038 (frame_unwind_address_in_block): Declare.
4039 * frame.c (frame_unwind_address_in_block): New function.
4040 (get_frame_address_in_block): New function.
4041
f7968451
AC
40422003-07-10 Andrew Cagney <cagney@redhat.com>
4043
4044 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4045 pre-default. Note: re-generate has no effect.
a8f4cde1 4046
ae99b398
AC
40472003-07-10 Andrew Cagney <cagney@redhat.com>
4048
4049 * gdbarch.sh: When a variable, but not a function, compare against
4050 0. Fix problem in previous patch.
4051 * gdbarch.c: Re-generate.
a8f4cde1 4052
956ac328
AC
40532003-07-10 Andrew Cagney <cagney@redhat.com>
4054
4055 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4056 functions against NULL, not 0.
4057 * gdbarch.c: Re-generate.
a8f4cde1 4058
287c3240
FF
40592003-07-10 Fred Fish <fnf@ninemoons.com>
4060
4061 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4062 null string instead of a null pointer.
4063 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4064
32f63c4b
MS
40652003-07-09 Michael Snyder <msnyder@redhat.com>
4066
4067 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4068
402ecd56
MK
40692003-07-09 Mark Kettenis <kettenis@gnu.org>
4070
4071 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4072 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4073 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4074 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4075 * x86-64-tdep.c: ... from here.
4076
c481dac7
AS
40772003-07-09 Andreas Schwab <schwab@suse.de>
4078
4079 * m68k-tdep.h (enum struct_return): Define.
4080 (struct gdbarch_tdep): Add struct_return.
4081 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4082 bytes are padded to the right, not to the left. Pass struct value
4083 address in register %a1, not on stack.
4084 (m68k_use_struct_convention): New function.
4085 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4086 struct_return in tdep to pcc_struct_return.
4087 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4088 reg_struct_return.
4089
a8f4cde1 40902003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4091
a8f4cde1 4092 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4093
96a4ee76
AC
40942003-07-09 Andrew Cagney <cagney@redhat.com>
4095
4096 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4097 Add comments about the checks.
4098
1517c6d1
AC
40992003-07-08 Andrew Cagney <cagney@redhat.com>
4100
4101 * Makefile.in: Make dependency section headers consistent.
4102 (config_h): Move to $BUILD headers section.
4103 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4104 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4105 (ada-exp.tab.c): Move to YACC/LEX section.
4106 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4107 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4108
dc5dd1eb
KW
41092003-07-08 Kris Warkentin <kewarken@qnx.com>
4110
4111 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4112 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4113 of strerror with safe_strerror, use ISO C function definitions,
4114 and replace instances of sprintf with snprintf.
dc5dd1eb 4115
612dde91
AC
41162003-07-07 Andrew Cagney <cagney@redhat.com>
4117
4118 * frame.c (get_prev_frame): Enable check for identical frames.
4119 Update comments. Update error messages.
4120
492c11d3
JB
41212003-07-07 Joel Brobecker <brobecker@gnat.com>
4122
4123 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4124
376a5a49
JB
41252003-07-07 Joel Brobecker <brobecker@gnat.com>
4126
4127 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4128 sort_symtab_syms, no longer necessary.
4129
22b4a9ad
JB
41302003-07-07 Joel Brobecker <brobecker@gnat.com>
4131
4132 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4133
5bbcb741
JB
41342003-07-07 Joel Brobecker <brobecker@gnat.com>
4135
4136 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4137 (mips_register_byte): Likewise.
4138
c139e7d9
DJ
41392003-07-07 Daniel Jacobowitz <drow@mvista.com>
4140
4141 * Makefile.in (sparc_tdep_h): New.
4142 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4143 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4144 * sparc-linux-nat.c: Include "sparc-tdep.h".
4145 * sparc-nat.c: Likewise.
4146 * sparc-tdep.c: Likewise.
4147 * sparc64nbsd-nat.c: Likewise.
4148 * sparcnbsd-nat.c: Likewise.
4149 * sparcnbsd-tdep.c: Likewise.
4150 * sparc-tdep.h: New file.
4151 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4152 and sparc_npc_regnum.
4153
fd8f87c5
DJ
41542003-07-07 Daniel Jacobowitz <drow@mvista.com>
4155
4156 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4157 (mips_linux_cannot_store_register): List supported instead of
4158 unsupported registers.
4159
13adf674
DJ
41602003-07-07 Daniel Jacobowitz <drow@mvista.com>
4161
4162 * disasm.c (dump_insns): Separate instructions from addresses.
4163
8de307e0
AS
41642003-07-07 Andreas Schwab <schwab@suse.de>
4165
4166 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4167 dependencies.
4168 * m68k-tdep.c (NUM_FREGS): Delete.
4169 (SIG_PC_FP_OFFSET): Delete.
4170 (TARGET_M68K): Delete.
4171 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4172 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4173 P_MOVEL_SP, P_MOVEML_SP): Define.
4174 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4175 P_TRAP): Delete.
4176 (m68k_register_raw_size): Delete.
4177 (m68k_register_virtual_size): Delete.
4178 (m68k_register_type): Renamed from m68k_register_virtual_type and
4179 add gdbarch argument.
4180 (m68k_store_struct_return): Delete.
4181 (m68k_deprecated_extract_return_value): Delete.
4182 (m68k_deprecated_extract_struct_value_address): Delete.
4183 (m68k_frame_chain): Delete.
4184 (m68k_frame_saved_pc): Delete.
4185 (m68k_fix_call_dummy): Delete.
4186 (m68k_push_dummy_frame): Delete.
4187 (m68k_pop_frame): Delete.
4188 (m68k_extract_return_value): New function.
4189 (m68k_store_return_value): Rewrite using regcache.
4190 (m68k_extract_struct_value_address): Rewrite using regcache.
4191 (m68k_push_dummy_call): New function.
4192 (struct m68k_frame_cache): Define.
4193 (m68k_alloc_frame_cache): New function.
4194 (m68k_analyze_frame_setup): New function.
4195 (m68k_analyze_register_saves): New function.
4196 (m68k_analyze_prologue): New function.
4197 (m68k_skip_prologue): Rewrite using above functions.
4198 (m68k_unwind_pc): New function.
4199 (m68k_frame_cache): New function.
4200 (m68k_frame_this_id): New function.
4201 (m68k_frame_prev_register): New function.
4202 (m68k_frame_unwind): New variable.
4203 (m68k_frame_p): New function.
4204 (m68k_sigtramp_frame_cache): New function.
4205 (m68k_sigtramp_frame_this_id): New function.
4206 (m68k_sigtramp_frame_prev_register): New function.
4207 (m68k_sigtramp_frame_unwind): New variable.
4208 (m68k_sigtramp_frame_p): New function.
4209 (m68k_frame_base_address): New function.
4210 (m68k_frame_base): New function.
4211 (m68k_unwind_dummy_id): New function.
4212 (fill_gregset): Use regcache_collect.
4213 (fill_fpregset): Likewise.
4214 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4215 defined.
4216 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4217 deprecated_init_frame_pc, deprecated_store_struct_return,
4218 deprecated_extract_return_value, deprecated_store_return_value,
4219 deprecated_frame_chain, deprecated_frame_saved_pc,
4220 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4221 deprecated_register_virtual_size,
4222 deprecated_max_register_raw_size,
4223 deprecated_max_register_virtual_size,
4224 deprecated_register_virtual_type, deprecated_register_size,
4225 deprecated_register_byte, deprecated_register_bytes,
4226 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4227 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4228 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4229 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4230 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4231 deprecated_push_dummy_frame, deprecated_pop_frame,
4232 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4233 only if SYSCALL_TRAP is defined. Set extract_return_value,
4234 store_return_value, extract_struct_value_address, register_type,
4235 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4236 predicates.
4237 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4238 M68K_MAX_REGISTER_SIZE): Define.
4239 (struct m68k_sigtramp_info): Define.
4240 (struct gdbarch_tdep): Add get_sigtramp_info.
4241 * m68klinux-nat.c (fetch_register): Use register_size instead of
4242 REGISTER_RAW_SIZE. Don't put assignment in if.
4243 (store_register): Likewise.
4244 (fetch_inferior_registers): Likewise.
4245 (store_inferior_registers): Likewise.
4246 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4247 (m68k_linux_frame_saved_pc): Delete.
4248 (m68k_linux_sigcontext_reg_offset,
4249 m68k_linux_ucontext_reg_offset): Define.
4250 (m68k_linux_get_sigtramp_info): New function.
4251 (m68k_linux_extract_return_value): Rewrite using regcache.
4252 (m68k_linux_store_return_value): Likewise.
4253 (m68k_linux_extract_struct_value_address): Likewise.
4254 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4255 Don't set deprecated_frame_saved_pc,
4256 deprecated_extract_return_value, deprecated_store_return_value,
4257 deprecated_extract_struct_value_address. Set
4258 extract_return_value, store_return_value,
4259 extract_struct_value_address.
4260
eb8bc282
AC
42612003-07-07 Andrew Cagney <cagney@redhat.com>
4262
4263 * expprint.c: Include "user-regs.h" instead of "frame.h".
4264 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4265 frame_map_regnum_to_name.
4266 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4267 (frame_map_name_to_regnum): Simplify, call
4268 user_reg_map_name_to_regnum.
4269 (frame_map_regnum_to_name): Simplify, call
4270 user_reg_map_regnum_to_name.
4271 (frame_register_unwind): Update.
4272 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4273 (_initialize_frame_reg): Call user_reg_add_builtin.
4274 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4275 (value_of_register): Use value_of_user_reg.
4276 * eval.c (evaluate_subexp_standard): Update.
4277 * parse.c (write_dollar_variable): Update.
4278 * d10v-tdep.c (d10v_print_registers_info): Update.
4279 * infcmd.c (registers_info): Update.
4280 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4281 (builtin_regs_h): Delete macro.
4282 (user_regs_h): Define.
4283 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4284 (builtin-regs.o): Delete target.
4285 (user-regs.o): Specify dependencies.
4286 (expprint.o): Update dependencies.
4287 (findvar.o): Update dependencies.
4288 (frame.o): Update dependencies.
4289 (std-regs.o): Update dependencies.
4290
9f476a01
CF
42912003-07-06 Christopher Faylor <cgf@redhat.com>
4292
4293 * win32-nat.c (solib_symbols_add): Use one variable for all section
4294 address stuff. Pass variable rather than address of variable to
4295 safe_symbol_file_add.
4296
a731b831
AS
42972003-07-06 Andreas Schwab <schwab@suse.de>
4298
4299 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4300
9f83329d
JB
43012003-07-04 Joel Brobecker <brobecker@gnat.com>
4302
4303 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4304
27e28cc5
KW
43052003-07-04 Kris Warkentin <kewarken@qnx.com>
4306
4307 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4308
43092003-07-04 Kris Warkentin <kewarken@qnx.com>
4310
4311 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4312 * config/i386/nto.mh: New file.
4313 * config/i386/nm-nto.h: New file.
4314 * configure.host: Add i[3456]86-*-nto*.
4315
100f2e98
JB
43162003-07-03 Joel Brobecker <brobecker@gnat.com>
4317
4318 * remote-vx.c (vx_add_symbols): Fix compilation error.
4319
e23457df
AC
43202003-07-03 Andrew Cagney <cagney@redhat.com>
4321
4322 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4323 * gdbarch.h, gdbarch.c: Re-generate.
4324 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4325 (legacy_register_name): Declare.
4326 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4327 (REGISTER_NAME): Define.
4328 * sparc-tdep.c (legacy_register_name): New function.
4329 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4330 (REGISTER_NAME): Define.
4331 (hppa64_register_name): Declare.
4332 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4333 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4334 (hppa64_register_name): New function.
4335 (hppa_register_name): New function.
4336 * arch-utils.c (legacy_register_name): Delete.
4337 * arch-utils.h (legacy_register_name): Delete.
4338
38caaeec
DJ
43392003-07-03 Daniel Jacobowitz <drow@mvista.com>
4340
4341 * cli/cli-interp.c (cli_interpreter_resume): Update the
4342 cli_uiout's stream to gdb_stdout.
4343
dadd712e
AC
43442003-07-03 Andrew Cagney <cagney@redhat.com>
4345
4346 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4347 predicate.
4348 * gdbarch.h, gdbarch.c: Re-generate.
4349 * regcache.c (init_regcache_descr): Use legacy code when either
4350 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4351
c7f1390e
DJ
43522003-07-02 Daniel Jacobowitz <drow@mvista.com>
4353
4354 * NEWS: Move "set logging" entry into GDB 6.0 section.
4355
4bc8c588
JB
43562003-07-02 Jim Blandy <jimb@redhat.com>
4357
a9dd42f1
JB
4358 * s390-tdep.c (struct frame_extra_info): new member:
4359 'stack_bought_valid'.
4360 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4361 initialize fextra_info->stack_bought.
4362 (s390_frameless_function_invocation): Don't trust the value of
4363 fextra_info_ptr->stack_bought unless
4364 fextra_info->stack_bought_valid is set.
4365
4bc8c588
JB
4366 New S390 prologue analyzer.
4367 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4368 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4369 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4370 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4371 compute_x_addr, s390_on_stack, s390_store,
4372 s390_get_signal_frame_info): New functions.
4373 (S390_NUM_SPILL_SLOTS): New macro.
4374 (s390_get_frame_info): Rewritten.
4375 (is_arg_reg): Deleted.
4376
4377 Break out the decoding of S/390 instructions into separate
4378 functions, to make it more legible, and easier to check
4379 against the spec.
4380 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4381 is_rx, is_rxe): New functions.
4382 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4383 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4384 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4385 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4386 enums for opcode values. (Is this an improvement?)
4387
fd13a04a
AC
43882003-07-02 Andrew Cagney <cagney@redhat.com>
4389
4390 * i386-tdep.c: Revert change committed as part of trad-frame code
4391 below.
4392
3f8091c1
DJ
43932003-07-02 Daniel Jacobowitz <drow@mvista.com>
4394
4395 * breakpoint.c (insert_catchpoint): Make static.
4396
8dd5115e
AS
43972003-07-02 Andreas Schwab <schwab@suse.de>
4398
4399 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4400 former ia64_push_arguments and ia64_push_return_address, and use
4401 regcache functions instead of read/write_register.
4402 (ia64_gdbarch_init): Set push_dummy_call instead of
4403 deprecated_push_arguments and deprecated_push_return_address.
4404
a2229c23
AJ
44052003-07-01 Andreas Jaeger <aj@suse.de>
4406
4407 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4408 before the call.
4409 Set %rax only to number of SSE registers used.
4410
3b3850e8
AC
44112003-07-01 Andrew Cagney <cagney@redhat.com>
4412
4413 * trad-frame.h: Update comments, a -1 .addr is reserved.
4414 (trad_frame_value_p, trad_frame_addr_p): Declare.
4415 (trad_frame_reg_p): Declare.
4416 (trad_frame_set_value): Rename trad_frame_register_value.
4417 (trad_frame_set_unknown): Declare.
4418 * trad-frame.c (trad_frame_realreg_p): New function.
4419 (trad_frame_addr_p, trad_frame_value_p): New function.
4420 (trad_frame_set_unknown): New function.
4421 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4422 (trad_frame_prev_register): Use trad_frame_realreg_p,
4423 trad_frame_addr_p and trad_frame_value_p.
4424 (trad_frame_set_value): Rename trad_frame_register_value.
4425 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4426 and trad_frame_set_value.
a2229c23 4427
4d819d0e
JB
44282003-06-30 Jim Blandy <jimb@redhat.com>
4429
4430 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4431 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4432 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4433 for 16 registers, and then 32 more bytes.
4434 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4435 New macros.
4436 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4437 Move up in the file, since it's now used by is_simple_arg.
4438 (is_simple_arg): Don't assume registers are four bytes long.
4439 Exclude all double arguments. Extended floats are not simple
4440 args.
4441 (is_power_of_two): New function.
4442 (pass_by_copy_ref): Call is_power_of_two, and check that the
4443 length fits in a register, rather than listing all the acceptable
4444 sizes. Extended floats are not passed by reference.
4445 (s390_push_arguments): Don't assume registers are four bytes long.
4446 Reserve an argument register to point to the buffer for structures
4447 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4448 S390_STACK_FRAME_OVERHEAD.
4449
1ad828f1
AS
44502003-06-30 Andreas Schwab <schwab@suse.de>
4451
4452 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4453 format error message.
4454
39b00981
JB
44552003-06-30 Joel Brobecker <brobecker@gnat.com>
4456
4457 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4458
b2a7f303
DC
44592003-06-30 David Carlton <carlton@kealia.com>
4460
4461 Band-aid for PR c++/1245.
4462 * Makefile.in (cp-support.o): Depend on complaints_h.
4463 * cp-support.c: Include complaints.h. Add declaration for
4464 find_last_component.
4465 (cp_find_first_component): Separate code into
4466 cp_find_first_component_aux.
4467 (cp_find_first_component_aux): Call demangled_name_complaint.
4468 (demangled_name_complaint): New.
4469
a257b5bb
AC
44702003-06-30 Andrew Cagney <cagney@redhat.com>
4471
4472 * remote.c (remote_write_bytes): Explicitly compute and then use
4473 the payload size. Update comments to reflect. Fixes problem of
4474 GDB not sending small packets as found by Fred Fish.
4475
0a2cfde4
AC
44762003-06-30 Andrew Cagney <cagney@redhat.com>
4477
4478 * remote.c (remote_async_wait): Fix -Wformat problem.
4479
3fcb8548
AC
44802003-06-29 Andrew Cagney <cagney@redhat.com>
4481
4482 * remote.c (remote_wait): Call error, and not warning, when the
4483 packet is corrupt.
4484 (remote_async_wait): Ditto.
4485
9f9970a3
DJ
44862003-06-29 Daniel Jacobowitz <drow@mvista.com>
4487
4488 * sparc-tdep.c (sparc_y_regnum): Make external again.
4489
83a8ccca
DJ
44902003-06-29 Daniel Jacobowitz <drow@mvista.com>
4491
4492 * cli/cli-logging.c (pop_output_files): Add void to function
4493 definition.
4494
d2cf594a
AC
44952003-06-29 Andrew Cagney <cagney@redhat.com>
4496
4497 * frame.c (frame_register_unwind): Use unsigned char when dumping
4498 the buffer contents.
4499
0fac0b41
DJ
45002003-06-28 Daniel Jacobowitz <drow@mvista.com>
4501
4502 * cli/cli-logging.c: New file.
4503 * cli-out.c (struct ui_out_data): Add original_stream.
4504 (cli_redirect): New function.
4505 (cli_ui_out_impl): Add cli_redirect.
4506 (cli_out_new): Initialize original_stream.
4507 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4508 (uo_redirect, ui_out_redirect): New.
4509 * ui-out.h (struct ui_out_impl): Add redirect member.
4510 (redirect_ftype): New.
4511 (ui_out_redirect): Add prototype.
4512 * Makefile.in: Add rules for cli-logging.c.
4513 * NEWS: Mention "set logging".
4514
88a07d7c
EZ
45152003-06-27 Elena Zannoni <ezannoni@redhat.com>
4516
4517 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4518
4eb58876
AC
45192003-06-27 Andrew Cagney <cagney@redhat.com>
4520
4521 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4522 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4523 * avr-tdep.c (avr_call_dummy_address): Delete function.
4524 (avr_gdbarch_init): Do not set call_dummy_address.
4525
1549f619
EZ
45262003-06-27 Elena Zannoni <ezannoni@redhat.com>
4527
4528 * symfile.c (syms_from_objfile): Move variables to inner block.
4529 Move the checks for the non-mainline case a bit earlier to avoid
4530 doing some useless computations.
4531
3cb3398d
EZ
45322003-06-27 Elena Zannoni <ezannoni@redhat.com>
4533
4534 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4535
3799ccc6
EZ
45362003-06-26 Elena Zannoni <ezannoni@redhat.com>
4537
4538 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4539 sections.
4540
ce1f6491
MC
45412003-06-26 Michael Chastain <mec@shout.net>
4542
4543 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4544 gdb/testsuite/gdb.c++/pr-1210.exp.
4545
d958dfd0
AC
45462003-06-26 Andrew Cagney <cagney@redhat.com>
4547
4548 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4549 altivec_expression.h and altivec_registers.h.
4550
d31431ed
AC
45512003-06-26 Andrew Cagney <cagney@redhat.com>
4552
4553 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4554 info->mach when MIPS16. Patch suggested by Fred Fish.
4555
714b1282
AC
45562003-06-26 Andrew Cagney <cagney@redhat.com>
4557
4558 * utils.c (internal_vproblem): Print the problem to a reason
4559 buffer and then pass to query. Make the msg variable more local.
4560
42efa47a
AC
45612003-06-26 Andrew Cagney <cagney@redhat.com>
4562
4563 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4564 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4565 * gdbarch.h, gdbarch.c: Re-generate.
4566 * frame-base.c (default_frame_args_address): Update. Use
4567 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4568 not available.
4569 (default_frame_locals_address): Ditto for
4570 DEPRECATED_FRAME_LOCALS_ADDRESS.
4571 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4572 (vax_frame_num_args): Update.
4573 (vax_gdbarch_init): Update.
4574 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4575 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4576 * mcore-tdep.c (mcore_gdbarch_init): Update.
4577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4578 * ia64-tdep.c (ia64_gdbarch_init): Update.
4579 * symtab.h (address_class): Update comments.
4580 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4581 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4582 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4583 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4584 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4585 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4586 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4587 * alpha-mdebug-tdep.c: Update.
4588 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4589
8ffd9b1b
AJ
45902003-06-26 Andreas Jaeger <aj@suse.de>
4591
4592 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4593 of SSE registers so that varargs functions work. Rework handling
4594 of passing arguments on the stack.
4595 (x86_64_store_return_value): Return double and float values in SSE
4596 register.
4597
e8ac10a6
MC
45982003-06-24 Michael Chastain <mec@shout.net>
4599
4600 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4601 the "constructor breakpoints ignored" bug.
4602
986af8e6
DC
46032003-06-25 David Carlton <carlton@kealia.com>
4604
4605 * MAINTAINERS: Update e-mail address.
4606
d64558a5
JB
46072003-06-24 Jim Blandy <jimb@redhat.com>
4608
e538d2d7
JB
4609 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4610
02631ec0
JB
4611 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4612 function.
4613 (ppc_linux_init_abi): Register it as the
4614 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4615
e716d87a
JB
4616 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4617 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4618 method.
4619
d64558a5
JB
4620 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4621 (ppc64_standard_linkage_target): Use it.
4622
449a5da4
AC
46232003-06-23 Andrew Cagney <cagney@redhat.com>
4624
4625 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4626 for 0 "int0" and 4 "int32" sized registers.
4627 * gdbtypes.c (builtin_type_int0): Define.
4628 (build_gdbtypes): Initialize builtin_type_int0.
4629 * gdbtypes.h (builtin_type_int0): Declare.
4630
b2a02dda
SC
46312003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4632
4633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4634 as characters are unsigned.
4635
fba3138e
DJ
46362003-06-22 Daniel Jacobowitz <drow@mvista.com>
4637
4638 PR gdb/1179
4639 * dwarfread.c (struct_type): Skip static fields without crashing.
4640
f6c8180b
AC
46412003-06-22 Andrew Cagney <cagney@redhat.com>
4642
4643 GDB 6.0 branch created.
f2c06f52
AC
4644 * README: Update.
4645 * PROBLEMS: Update. Empty.
4646 * NEWS: Update.
f6c8180b 4647
ae822768
DJ
46482003-06-22 Daniel Jacobowitz <drow@mvista.com>
4649
4650 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4651 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4652
261de166
AC
46532003-06-22 Andrew Cagney <cagney@redhat.com>
4654
4655 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4656 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4657 Velikov.
4658
30e94205
DJ
46592003-06-22 Daniel Jacobowitz <drow@mvista.com>
4660
4661 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4662 compilers.
4663
9e14d721
DJ
46642003-06-21 Daniel Jacobowitz <drow@mvista.com>
4665
4666 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4667 argument of val_print.
4668 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4669 to the address argument of baseclass_offset or target_read_memory.
4670 Do add it to the argument of cp_print_value_fields.
4671
a4b8ebc8
AC
46722003-06-21 Andrew Cagney <cagney@redhat.com>
4673
4674 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4675 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4676 instead of 0..NUM_REGS.
4677 (mips_register_reggroup_p): New function.
4678 (mips_pseudo_register_write): New function.
4679 (mips_pseudo_register_read): New function.
4680 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4681 based on the register's type.
4682 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4683 cooked.
4684 (mips_get_saved_register): Simplify. Assert that REGNO is a
4685 pseudo / cooked.
4686 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4687 (mips_register_type): Replace mips_register_virtual_type. Map
4688 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4689 when available.
4690 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4691 that the register is cooked / virtual.
4692 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4693 Only get the extra info when needed.
4694 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4695 (mips32_heuristic_proc_desc): Fetch the cooked register.
4696 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4697 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4698 (mips_print_register): Use gdbarch_register_type, instead of
4699 REGISTER_VIRTUAL_TYPE.
4700 (print_gp_register_row): Use gdbarch_register_type, instead of
4701 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4702 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4703 Print the pseudo / cooked registers.
4704 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4705 Print the pseudo / cooked registers.
4706 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4707 REG_NUM is pseudo / cooked.
4708 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4709 (mips_n32n64_xfer_return_value): Ditto.
4710 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4711 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4712 (mips_register_sim_regno): New function.
4713 (mips_gdbarch_init): Set deprecated_register_byte,
4714 register_group_p, pseudo_register_write, pseudo_register_read,
4715 register_sim_regno, and num_pseudo_regs. Set register_type,
4716 instead of register_virtual_type.
4717 * Makefile.in (mips-tdep.o): Update dependencies.
4718 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4719 REGISTER_VIRTUAL_TYPE.
4720 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4721 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4722 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4723 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4724 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4725
325ed089
DJ
47262003-06-21 Daniel Jacobowitz <drow@mvista.com>
4727
4728 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4729 * cli/cli-cmds.c: Include "gdb_vfork.h".
4730 (shell_escape): Use vfork.
4731
f0e7d0e8
AC
47322003-06-21 Andrew Cagney <cagney@redhat.com>
4733
c57bb9fa
AC
4734 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4735 32 bit floating-point register saves.
4736
6e51443a
AC
4737 * frame.h (deprecated_unwind_get_saved_register): Delete.
4738 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4739 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4740 and deprecated_get_next_frame_hack instead of
4741 deprecated_unwind_get_saved_register.
4742
ed183c7c
AC
4743 * mips-tdep.c (mips_dump_tdep): Do not print
4744 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4745
f0e7d0e8
AC
4746 * frame.c (get_frame_register): New function.
4747 (frame_unwind_register_signed): New function.
4748 (get_frame_register_signed): New function.
4749 (frame_unwind_register_unsigned): New function.
4750 (get_frame_register_unsigned): New function.
4751 * frame.h: Add comments on naming schema.
4752 (get_frame_register, frame_unwind_register_signed): Declare.
4753 (get_frame_register_signed, get_frame_register_signed): Declare.
4754 (frame_unwind_register_unsigned): Declare.
4755 (get_frame_register_unsigned): Declare.
4756
2224d941
TR
47572003-06-20 Theodore A. Roth <troth@openavr.org>
4758
4759 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4760
8619218d
TR
47612003-06-20 Theodore A. Roth <troth@openavr.org>
4762
4763 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4764 (avr_read_sp): Ditto.
4765
0b1b50c0
DJ
47662003-06-20 Daniel Jacobowitz <drow@mvista.com>
4767
4768 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4769 * config/arm/nm-linux.h: Likewise.
4770 * config/arm/tm-linux.h: Likewise.
4771 * config/ia64/nm-linux.h: Likewise.
4772 * config/ia64/tm-ia64.h: Likewise.
4773 * config/s390/tm-linux.h: Likewise.
4774 * config/s390/tm-s390.h: Likewise.
4775 * s390-nat.c: Likewise.
4776 * s390-tdep.c: Likewise.
4777
4778 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4779 * config/ia64/linux.mt: Likewise.
4780 * config/m68k/linux.mh: Likewise.
4781 * config/mips/linux.mt: Likewise.
4782 * config/powerpc/linux.mh: Likewise.
4783 * config/sh/linux.mt: Likewise.
4784
c8c18e65
KW
47852003-06-19 Kris Warkentin <kewarken@qnx.com>
4786
4787 * solib.c (solib_open): Change tests for whether to search
4788 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4789 comments.
4790
dcccef2e
TR
47912003-06-19 Theodore A. Roth <troth@openavr.org>
4792
4793 * avr-tdep.c (avr_frame_address): Delete function.
4794 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4795 set_gdbarch_frame_args_address.
4796
5861a190
AC
47972003-06-19 Andrew Cagney <cagney@redhat.com>
4798
4799 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4800 (REGISTER_CONVERT_FROM_TYPE): Delete.
4801 (mips_register_convert_to_type): Delete declaration.
4802 (mips_register_convert_from_type): Delete declaration.
4803 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4804 kernel/.
4805
0274a8ce
MS
48062003-06-19 Michael Snyder <msnyder@redhat.com>
4807
4808 * linux-nat.h: New file.
4809 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4810 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4811 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4812 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4813 (linux_make_note_section): Iterate over lwps instead of threads.
4814 (linux_do_thread_registers): Use lwp instead of merged pid.
4815 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4816 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4817 Add dependency on linux_nat_h.
4818
adf5f719
TR
48192003-06-19 Theodore A. Roth <troth@openavr.org>
4820
4821 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4822
6766a268
DJ
48232003-06-19 Daniel Jacobowitz <drow@mvista.com>
4824
4825 * varobj.c (get_type, get_target_type): Use check_typedef.
4826
1171114a
DJ
48272003-06-19 Daniel Jacobowitz <drow@mvista.com>
4828
4829 * breakpoint.c (insert_catchpoint): Call internal_error.
4830
adcf68a2
TR
48312003-06-19 Theodore A. Roth <troth@openavr.org>
4832
4833 * avr-tdep.c (avr_push_dummy_code): Delete function.
4834 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4835
ea67f13b
DJ
48362003-06-19 Daniel Jacobowitz <drow@mvista.com>
4837
4838 * arch-utils.c (default_prepare_to_proceed): Remove.
4839 (generic_prepare_to_proceed): Remove.
4840 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4841 (generic_prepare_to_proceed): Remove prototype.
4842 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4843 * gdbarch.c: Regenerate.
4844 * gdbarch.h: Regenerate.
4845 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4846 * hppah-nat.c (hppa_switched_threads): Remove.
4847 * infrun.c (prepare_to_proceed): New static function, copied from
4848 generic_prepare_to_proceed. Remove select_it argument.
4849 (proceed): Call prepare_to_proceed.
4850 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4851 variables.
4852 (ptrace_wait): Don't set the removed variables.
4853 (hppa_switched_threads): Remove.
4854 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4855 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4856 (lin_lwp_prepare_to_proceed): Remove prototype.
4857 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4858 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4859
4add8633
TR
48602003-06-18 Theodore A. Roth <troth@openavr.org>
4861
4862 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4863 trad-frame.h.
4864 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4865 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4866 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4867 (AVR_PROLOGUE_*): Enumerate prologue types.
4868 (struct frame_extra_info): Remove.
4869 (struct avr_unwind_cache): Define.
4870 (avr_write_sp): Delete function.
4871 (avr_read_fp): Ditto.
4872 (avr_init_extra_frame_info): Ditto.
4873 (avr_pop_frame): Ditto.
4874 (avr_frame_saved_pc): Ditto.
4875 (avr_saved_pc_after_call): Ditto.
4876 (avr_push_return_address): Ditto.
4877 (avr_frame_chain): Ditto.
4878 (avr_store_struct_return): Ditto.
4879 (avr_push_arguments): Ditto.
4880 (avr_scan_prologue): Update comments. Changed to set up the info for
4881 cache unwinding. Now returns end of prologue PC.
4882 (avr_skip_prologue): Better handling of functions lacking a prologue
4883 by using avr_scan_prologue.
4884 (avr_scan_arg_moves): New function.
4885 (avr_saved_regs_unwinder): Ditto.
4886 (avr_frame_unwind_cache): Ditto.
4887 (avr_unwind_pc): Ditto.
4888 (avr_frame_this_id): Ditto.
4889 (avr_frame_prev_register): Ditto.
4890 (avr_frame_p): Ditto.
4891 (avr_frame_base_address ): Ditto.
4892 (avr_unwind_dummy_id): Ditto.
4893 (avr_push_dummy_code): Ditto.
4894 (push_stack_item): Ditto.
4895 (pop_stack_item): Ditto.
4896 (avr_push_dummy_call): Ditto.
4897 (struct stack_item): Define.
4898 (avr_frame_unwind): Declare structure.
4899 (avr_frame_base): Ditto.
4900 (avr_gdbarch_init): Remove calls to
4901 set_gdbarch_deprecated_init_frame_pc,
4902 set_gdbarch_deprecated_target_read_fp,
4903 set_gdbarch_deprecated_dummy_write_sp,
4904 set_gdbarch_deprecated_fp_regnum,
4905 set_gdbarch_deprecated_push_arguments,
4906 set_gdbarch_deprecated_push_return_address,
4907 set_gdbarch_deprecated_pop_frame,
4908 set_gdbarch_deprecated_store_struct_return,
4909 set_gdbarch_deprecated_frame_init_saved_regs,
4910 set_gdbarch_deprecated_init_extra_frame_info,
4911 set_gdbarch_deprecated_frame_chain,
4912 set_gdbarch_deprecated_frame_saved_pc,
4913 set_gdbarch_deprecated_saved_pc_after_call.
4914 Add calls to set_gdbarch_push_dummy_call,
4915 set_gdbarch_push_dummy_code,
4916 frame_unwind_append_predicate,
4917 frame_base_set_default,
4918 set_gdbarch_unwind_dummy_id,
4919 set_gdbarch_unwind_pc.
4920 Wrap a long line.
4921
7be04a68
MS
49222003-06-18 Corinna Vinschen <vinschen@redhat.com>
4923
4924 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4925 registers for H8/300S.
4926 (h8300_print_registers_info): Ditto.
8ffd9b1b 4927 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4928
ae087d01
DJ
49292003-06-18 Daniel Jacobowitz <drow@mvista.com>
4930
4931 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4932 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4933 (lin_lwp_wait): Likewise. Update comments.
4934 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4935 (pull_pid_from_list, linux_record_stopped_pid): New.
4936
07d8f827
SC
49372003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4938
4939 * ada-lang.c (scan_discrim_bound): Name first argument.
4940 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4941 declared by ALL_BLOCK_SYMBOLS.
4942
7cb47b14
SC
49432003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4944
4945 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4946 ("regcache.h"): Include it.
4947 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4948
6ad8ae5c
DJ
49492003-06-17 Daniel Jacobowitz <drow@mvista.com>
4950
4951 * NEWS: Mention gdbserver detach change and "disconnect" command.
4952 * infcmd.c (disconnect_command): New function.
4953 (_initialize_infcmd): Add ``disconnect'' command.
4954 * remote.c (remote_async_detach): Delete.
4955 (remote_detach): Merge remote_async_detach.
4956 (remote_disconnect): New.
4957 (init_remote_ops): Set to_disconnect.
4958 (init_remote_cisco_ops): Likewise.
4959 (init_remote_async_ops): Likewise. Use remote_detach.
4960 * target.c (cleanup_target): Default to_disconnect.
4961 (update_current_target): Inherit to_disconnect.
4962 (target_disconnect, debug_to_disconnect): New functions.
4963 (setup_target_debug): Set to_disconnect.
4964 * target.h (struct target_ops): Add to_disconnect.
4965 (target_disconnect): Add prototype.
4966
687595f9
DJ
49672003-06-17 Daniel Jacobowitz <drow@mvista.com>
4968
4969 * breakpoint.c (insert_catchpoint): New function.
4970 (insert_breakpoints): Use catch_exceptions to call
4971 insert_catchpoint. Disable catchpoints if they fail to insert.
4972
29239a8f
DJ
49732003-06-17 Daniel Jacobowitz <drow@mvista.com>
4974
4975 * symfile.c (reread_symbols): Clear sym_private.
4976
2cdf3c63
AC
49772003-06-17 Andrew Cagney <cagney@redhat.com>
4978
4979 * trad-frame.h (struct frame_info): Add opaque declaration.
4980 * remote-fileio.h (struct cmd_list_element): Add opaque
4981 declaration.
4982 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4983 comments.
4984
cf0e1e0d
DJ
49852003-06-17 Daniel Jacobowitz <drow@mvista.com>
4986
4987 * remote.c (remote_prepare_to_store): Replace call to
4988 deprecated_read_register_bytes with multiple regcache_raw_read
4989 calls.
4990
192cdb19
KW
49912003-06-17 Kris Warkentin <kewarken@qnx.com>
4992
4993 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4994 (nto_find_and_open_solib): Likewise.
4995 (nto_init_solib_absolute_prefix): Likewise.
4996 (_initialize_nto_tdep): Fix indentation.
4997
89929b45
KW
49982003-06-17 Kris Warkentin <kewarken@qnx.com>
4999
5000 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5001
46019f27
KW
50022003-06-17 Kris Warkentin <kewarken@qnx.com>
5003
5004 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5005
1a38736e
JB
50062003-06-17 Jim Blandy <jimb@redhat.com>
5007
5008 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5009
3605c34a
TR
50102003-06-16 Theodore A. Roth <troth@openavr.org>
5011
5012 * avr-tdep.c (avr_extract_return_value): New function.
5013 (avr_gdbarch_init): Set extract_return_value method.
5014
870b3035
AC
50152003-06-16 Andrew Cagney <cagney@redhat.com>
5016
5017 * frame.h (deprecated_get_next_frame_hack): Declare.
5018 * frame.c (legacy_saved_regs_prev_register): Only require
5019 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5020 there are always saved regs.
5021 (deprecated_generic_get_saved_register): Do not require
5022 DEPRECATED_FRAME_INIT_SAVED_REGS.
5023 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5024 use frame ID unwind instead.
5025 (deprecated_get_next_frame_hack): New function.
5026
63d47a7d
CV
50272003-06-16 Corinna Vinschen <vinschen@redhat.com>
5028
5029 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5030 (h8300_push_dummy_call): ...this function. Some minor optimization.
5031 (h8300_push_return_address): Remove.
5032 (h8300_gdbarch_init): Remove calls to
5033 set_gdbarch_deprecated_dummy_write_sp,
5034 set_gdbarch_deprecated_push_arguments and
5035 set_gdbarch_deprecated_push_return_address.
5036 Add call to set_gdbarch_push_dummy_call.
5037
4bb1dc5e
CV
50382003-06-16 Corinna Vinschen <vinschen@redhat.com>
5039
5040 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5041 (E_PSEUDO_EXR_REGNUM): Ditto.
5042 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5043 registers into safe registers.
4bb1dc5e
CV
5044 (h8300_skip_prologue): Check for stm instruction to push registers
5045 used for register variables onto stack.
5046 (gdb_print_insn_h8300): Remove.
5047 (h8300_examine_prologue): Add a comment.
5048 (h8300_register_name): Take pseudo registers into account.
5049 (h8300s_register_name): Ditto.
5050 (h8300sx_register_name): Ditto.
5051 (h8300_print_register): Ditto.
5052 (h8300_print_registers_info): Define "nice" printing order.
5053 (h8300_saved_pc_after_call): Take pseudo registers into account.
5054 (h8300_register_type): Ditto. Return type used for remote connection
5055 when requesting real CCR or EXR register, return actual type when
5056 requesting pseudo CCR or EXR.
5057 (h8300_pseudo_register_read): New function.
5058 (h8300_pseudo_register_write): Ditto.
5059 (h8300_dbg_reg_to_regnum): Ditto.
5060 (h8300s_dbg_reg_to_regnum): Ditto.
5061 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5062 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5063 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5064 set_gdbarch_print_insn architecture dependent.
5065 Call set_gdbarch_pseudo_register_read and
5066 set_gdbarch_pseudo_register_write.
5067 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5068
a59fe496
AC
50692003-06-16 Andrew Cagney <cagney@redhat.com>
5070
5071 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5072 * gdbarch.h, gdbarch.c: Re-generate.
5073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5074 * s390-tdep.c (s390_gdbarch_init): Update.
5075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5076 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5077 * mips-tdep.c (mips_gdbarch_init): Update.
5078 * mcore-tdep.c (mcore_gdbarch_init): Update.
5079 * cris-tdep.c (cris_gdbarch_init): Update.
5080 * infcall.c (call_function_by_hand): Update.
5081 * ia64-tdep.c (ia64_push_arguments): Update comment.
5082 * frame.c (legacy_get_prev_frame): Do not assume
5083 SAVE_DUMMY_FRAME_TOS_P.
5084 * dummy-frame.c (find_dummy_frame): Update comment.
5085
6f4e5a41
AC
50862003-06-16 Andrew Cagney <cagney@redhat.com>
5087
5088 * regcache.c (do_cooked_read): Do not use register_valid_p.
5089
72fab697
TR
50902003-06-15 Theodore A. Roth <troth@openavr.org>
5091
5092 * avr-tdep.c (avr_register_type): Remove a blank line.
5093 (avr_scan_prologue): Correct some comments.
5094
e3d8b004
TR
50952003-06-15 Theodore A. Roth <troth@openavr.org>
5096
5097 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5098 prologue types.
8ffd9b1b 5099 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5100 option.
5101 Add code to scan -mcall-prologues for mega devices.
5102
866b76ea
TR
51032003-06-15 Theodore A. Roth <troth@openavr.org>
5104
5105 * avr-tdep.c (avr_register_byte): Delete function.
5106 (avr_register_raw_size): Delete function.
5107 (avr_register_virtual_size): Delete function.
5108 (avr_register_virtual_type): Delete function.
5109 (avr_register_type): New function.
5110 (avr_address_to_pointer): Remove unused code.
5111 (avr_read_fp): Need to read FP as two separate bytes due to change to
5112 avr_register_type() usage.
5113 (avr_gdbarch_init): Don't set deprecated_register_size.
5114 Don't set deprecated_register_bytes.
5115 Don't set deprecated_register_byte.
5116 Don't set deprecated_register_raw_size.
5117 Don't set deprecated_max_register_raw_size.
5118 Don't set deprecated_register_virtual_size.
5119 Don't set deprecated_max_register_virtual_size.
5120 Don't set deprecated_register_virtual_type.
5121 Set register_type method.
5122
3993f6b1
DJ
51232003-06-15 Daniel Jacobowitz <drow@mvista.com>
5124
5125 * Makefile.in (linux-nat.o): Add rule.
5126 * linux-nat.c: New file.
5127 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5128 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5129 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5130 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5131 * config/arm/linux.mh (NATDEPFILES): Likewise.
5132 * config/i386/linux.mh (NATDEPFILES): Likewise.
5133 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5134 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5135 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5136 * config/mips/linux.mh (NATDEPFILES): Likewise.
5137 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5138 * config/s390/s390.mh (NATDEPFILES): Likewise.
5139 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5140
786a90bb
MK
51412003-06-15 Mark Kettenis <kettenis@gnu.org>
5142
5143 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5144 replace out-of-date comment.
5145
3bd3f01e
AC
51462003-06-15 Andrew Cagney <cagney@redhat.com>
5147
5148 * rdi-share/host.h (Fail): Change to a varargs function.
5149 * remote-rdi.c (Fail): Update.
8ffd9b1b 5150
de5b9bb9
MK
51512003-06-15 Mark Kettenis <kettenis@gnu.org>
5152
5153 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5154 (i386_convert_register_p, i386_register_to_value,
5155 i386_register_from_value): Handle types longer than 8 bytes.
5156
d532c08f
MK
51572003-06-15 Mark Kettenis <kettenis@gnu.org>
5158
5159 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5160 Move floating-point code to new function in i387-tdep.c.
5161 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5162 New functions containing code moved here from i386-tdep.c.
5163 * i387-tdep.h: Add opaque declaration for `struct type'.
5164 (i387_register_to_value, i387_value_to_register): New prototypes.
5165 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5166 (x86_64_init_abi): Set convert_register_p, register_to_value and
5167 value_to_register here.
8ffd9b1b 5168
42c466d7
AC
51692003-06-14 Andrew Cagney <cagney@redhat.com>
5170
5171 * mips-tdep.c (mips_register_to_value): Make static.
5172 (mips_value_to_register): Make static.
5173 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5174 * ia64-tdep.c (ia64_register_raw_size): Make static.
5175 (ia64_register_virtual_size): Make static.
5176 (ia64_register_byte): Make static.
5177 * i387-tdep.c: Include "i387-tdep.h".
5178 (print_387_control_word): Delete function.
5179 (print_387_status_word): Delete function.
5180 (print_387_status_bits): Delete function.
5181 (print_387_control_bits): Delete function.
5182 * Makefile.in (i387-tdep.o): Update dependencies.
5183 * rdi-share/host.h (Fail): Declare.
5184 * remote-rdi.c (Fail): Update to match declaration.
5185
2a9cda49
AC
51862003-06-14 Andrew Cagney <cagney@redhat.com>
5187
5188 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5189 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5190 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5191 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5192 * README: Delete reference to remote-array.
5193 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5194 (remote-array.o): Delete target.
5195 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5196 * remote-array.c: Delete file.
5197
ff2e87ac
AC
51982003-06-14 Andrew Cagney <cagney@redhat.com>
5199 Mark Kettenis <kettenis@gnu.org>
5200
5201 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5202 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5203 parameter with "frame".
5204 * gdbarch.h, gdbarch.c: Re-generate.
5205 * frame.h (put_frame_register): Declare.
5206 * frame.c (put_frame_register): New function.
5207 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5208 (legacy_register_to_value): Rewrite, use "frame" to get the
5209 register value.
5210 (legacy_value_to_register): Rewrite, use "frame" to find the
5211 register's location before storing.
5212 * arch-utils.h (legacy_convert_register_p): Update.
5213 (legacy_register_to_value, legacy_value_to_register): Update.
5214 * findvar.c (value_from_register): Rewrite, eliminate use of
5215 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5216 "frame" to REGISTER_TO_VALUE.
5217 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5218 lval_reg_frame_relative + lval_register branch of the switch. Do
5219 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5220 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5221 I386_EDI_REGNUM): New defines.
5222 (i386_next_regnum, i386_convert_register_p,
5223 i386_register_to_value, i386_value_to_register): New functions.
5224 (i386_register_convertible, i386_register_convert_to_virtual,
5225 i386_convert_to_raw): Remove functions.
5226 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5227 value_to_register instead of register_convertible,
5228 register_convert_to_virtual and register_convert_to_raw.
5229 * mips-tdep.c (mips_convert_register_p): New function.
5230 (mips_value_to_register): Replace mips_register_convert_from_type.
5231 (mips_register_to_value): Replace mips_register_convert_to_type.
5232 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5233 register_to_value.
5234 * alpha-tdep.c (alpha_convert_register_p): Update.
5235 (alpha_value_to_register): Update, store the register.
5236 (alpha_register_to_value): Update, fetch the register.
5237
98be1e77
TR
52382003-06-14 Theodore A. Roth <troth@openavr.org>
5239
5240 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5241 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5242 Don't set deprecated_call_dummy_words.
5243 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5244 Don't set remote_translate_xfer_address.
5245 (avr_io_reg_read_command): Remove commented out debug printf.
5246 Wrap a long line.
5247
57bc6122
TR
52482003-06-14 Theodore A. Roth <troth@openavr.org>
5249
5250 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5251 causes gdb to seg fault.
5252
eb01fc62
DJ
52532003-06-14 Daniel Jacobowitz <drow@mvista.com>
5254
5255 * sparc-nat.c (fetch_inferior_registers): Correct
5256 a reference to "registers".
5257
3b3e6bee
DJ
52582003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5259
5260 * Makefile.in (exc_request_U_h): Define
5261 (exc_request_S_h): Likewise.
5262 (msg_reply_S_h): Likewise.
5263 (msg_U_h): Likewise.
5264 (notify_S_h): Likewise.
5265 (process_reply_S_h): Likewise.
5266 (gnu-nat.o): Depend on gdb_obstack_h
5267 * gnu-nat.c: Include "gdb_obstack.h".
5268
b8de8283
AC
52692003-06-13 Andrew Cagney <cagney@redhat.com>
5270
5271 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5272 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5273
f3be58bc
AC
52742003-06-13 Andrew Cagney <cagney@redhat.com>
5275
5276 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5277 when deprecated REGISTER macros can be deleted.
5278 * gdbarch.h, gdbarch.c: Re-generate.
5279
4c0122c8
JB
52802003-06-13 Jim Blandy <jimb@redhat.com>
5281
5282 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5283 Linux entry point symbols for _dl_debug_state, too.
5284
3e210248
AC
52852003-06-13 Andrew Cagney <cagney@redhat.com>
5286
5287 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5288 available, do not use the FP register, and always save the TOS.
5289 * dummy-frame.c (dummy_frame_this_id): Do not assert
5290 SAVE_DUMMY_FRAME_TOS.
5291 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5292 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5293 (i386_push_dummy_call): Add 8 to the returned SP.
5294 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5295 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5296 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5297 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5298 (x86_64_push_dummy_call): Return "sp + 16".
5299 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5300 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5301 save_dummy_frame_tos.
5302
0b65af49
JB
53032003-06-13 Jim Blandy <jimb@redhat.com>
5304
5305 * frv-tdep.c (frv_use_struct_convention): Delete static
5306 declaration for function deleted in my change of 2003-06-12.
5307
4ea2465e
TR
53082003-06-13 Theodore A. Roth <troth@openavr.org>
5309
5310 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5311 (avr_pointer_to_address): Shift code addrs left 1 bit.
5312 (avr_convert_from_func_ptr_addr): Delete function since operation is
5313 better handled by avr_address_to_pointer and avr_pointer_to_address.
5314 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5315
1581182a
MK
53162003-06-13 Mark Kettenis <kettenis@gnu.org>
5317
5318 From Kelley Cook <kelleycook@wideopenwest.com>:
5319 * configure.host: Accept i[34567]86 variants.
5320 * configure.tgt: Likewise.
5321 * nlm/configure.in: Likewise.
5322 * nlm/configure: Regenerated.
5323
7aa1783e
RE
53242003-06-13 Richard Earnshaw <rearnsha@arm.com>
5325
5326 * arm-tdep.c (solib-svr4.h): Dont' include it.
5327 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5328 * arm-linux-tdep.c: ... here. Make static.
5329 (arm_linux_init_abi): Register it.
5330 (solib-svr4.h): Include it.
5331 * Makefile.in: Update dependencies.
5332 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5333 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5334
0261a0d0
CV
53352003-06-13 Corinna Vinschen <vinschen@redhat.com>
5336
5337 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5338 indicate registers used for return values.
5339 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5340 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5341 members.
5342 (h8300_init_extra_frame_info): Ditto.
5343 (h8300_frame_locals_address): Removed.
5344 (h8300_frame_args_address): Removed.
5345 (h8300_extract_return_value): Use new regcache structure. Only care
5346 for 16 bit CPUs.
5347 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5348 (h8300_store_return_value): Use new regcache structure. Only care
5349 for 16 bit CPUs.
5350 (h8300h_store_return_value): Same function for 32 bit CPUs.
5351 (h8300_store_struct_return): Removed.
5352 (h8300_extract_struct_value_address): Use new regcache structure.
5353 (h8300h_extract_struct_value_address): Removed.
5354 (h8300_push_dummy_code): New function.
5355 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5356 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5357 set_gdbarch_store_return_value architecture dependent.
5358 Call set_gdbarch_push_dummy_code and
5359 set_gdbarch_extract_struct_value_address.
5360 Remove calls to set_gdbarch_frame_args_address,
5361 set_gdbarch_frame_locals_address,
5362 set_gdbarch_deprecated_store_struct_return,
5363 set_gdbarch_deprecated_extract_return_value,
5364 set_gdbarch_deprecated_extract_struct_value_address,
5365 set_gdbarch_deprecated_call_dummy_words and
5366 set_gdbarch_deprecated_sizeof_call_dummy_words.
5367
055c394a
CV
53682003-06-13 Corinna Vinschen <vinschen@redhat.com>
5369
5370 * h8300-tdep.c (h8300_register_byte): Remove.
5371 (h8300h_register_byte): Remove.
5372 (h8300_register_virtual_type): Remove. Substitute by...
5373 (h8300_register_type): New function.
5374 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5375 (h8300h_extract_struct_value_address): Ditto.
5376 (h8300_gdbarch_init): Drop calls to
5377 set_gdbarch_deprecated_register_byte and
5378 set_gdbarch_deprecated_register_virtual_type.
5379 Add call to set_gdbarch_register_type.
5380
9c04cab7
AC
53812003-06-13 Andrew Cagney <cagney@redhat.com>
5382
5383 * gdbarch.sh: Update comments on registers.
5384 (deprecated_register_byte): Rename register_byte.
5385 (deprecated_register_raw_size): Rename register_raw_size.
5386 (deprecated_register_virtual_size): Rename register_virtual_size.
5387 (deprecated_register_virtual_type): Rename register_virtual_type.
5388 * gdbarch.h, gdbarch.c: Re-generate.
5389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5390 * vax-tdep.c (vax_gdbarch_init): Update.
5391 * v850-tdep.c (v850_gdbarch_init): Update.
5392 * sparc-tdep.c (sparc_gdbarch_init): Update.
5393 * sh-tdep.c (sh_gdbarch_init): Update.
5394 * s390-tdep.c (s390_gdbarch_init): Update.
5395 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5396 * ns32k-tdep.c: Update.
5397 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5398 * mips-tdep.c (mips_gdbarch_init): Update.
5399 * mcore-tdep.c (mcore_gdbarch_init): Update.
5400 * m68k-tdep.c (m68k_gdbarch_init): Update.
5401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5402 * ia64-tdep.c (ia64_gdbarch_init): Update.
5403 * hppa-tdep.c (hppa_gdbarch_init): Update.
5404 * h8300-tdep.c (h8300_gdbarch_init): Update.
5405 * frv-tdep.c (frv_gdbarch_init): Update.
5406 * cris-tdep.c (cris_gdbarch_init): Update.
5407 * avr-tdep.c (avr_gdbarch_init): Update.
5408 * alpha-tdep.c (alpha_gdbarch_init): Update.
5409 * arm-tdep.c (arm_gdbarch_init): Update.
5410
b060cbea
AC
54112003-06-13 Andrew Cagney <cagney@redhat.com>
5412
5413 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5414 mips_o32_use_struct_convention with always_use_struct_convention.
5415
0fc9922a
DC
54162003-06-12 David Carlton <carlton@kealia.com>
5417
5418 * cp-namespace.c (cp_set_block_scope): Comment out
5419 processing_has_namespace_info branch.
5420
1fd35568
JB
54212003-06-12 Jim Blandy <jimb@redhat.com>
5422
f470a70a
JB
5423 Recognize and skip 64-bit PowerPC Linux linkage functions.
5424 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5425 insn_pattern, insns_match_pattern, d_field, ds_field): New
5426 functions, macros, and types for working with PPC instructions.
5427 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5428 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5429 ppc64_skip_trampoline_code): New functions, variables, and macros
5430 for recognizing and skipping linkage functions.
5431 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5432 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5433
49ff75ad
JB
5434 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5435 register offsets for both the 32- and 64-bit interfaces.
5436
bd918c83
JB
5437 Actually finish the job started by my change of 2003-05-29.
5438 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5439 other #definition of this.
5440 (ppc_linux_skip_trampoline_code): Remove declaration.
5441 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5442 static.
5443 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5444 method for GDBARCH.
5445
5446 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5447 'long' on ppc64-*-linux*.
5448
f8c59253
JB
5449 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5450 isn't #defined, assume the register doesn't exist: act as if
5451 tdep->ppc_mq_regnum were -1.
5452
8fbb30b1
JB
5453 * configure.host, configure.tgt: Add entries for
5454 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5455 powerpc/linux.mt.
5456 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5457 New files.
5458
1fd35568
JB
5459 * arch-utils.c (always_use_struct_convention): New function.
5460 * arch-utils.h (always_use_struct_convention): New prototype.
5461 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5462 (alpha_gdbarch_init): Register always_use_struct_convention,
5463 instead of alpha_use_struct_convention.
5464 * cris-tdep.c (cris_use_struct_convention): Delete.
5465 (cris_gdbarch_init): Register always_use_struct_convention,
5466 instead of cris_use_struct_convention.
5467 * frv-tdep.c (frv_use_struct_convention): Delete.
5468 (frv_gdbarch_init): Register always_use_struct_convention,
5469 instead of frv_use_struct_convention.
5470 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5471 (h8300_gdbarch_init): Register always_use_struct_convention,
5472 instead of h8300_use_struct_convention.
e3305dd9 5473 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5474 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5475 instead of mips_o32_use_struct_convention.
5476
e14e6e9c
AC
54772003-06-12 Andrew Cagney <cagney@redhat.com>
5478
5479 * wince.c: Include "mips-tdep.h".
5480 * mips-tdep.h (mips_next_pc): Declare.
5481 * mcore-tdep.c: Make more local functions static.
5482 * Makefile.in (wince.o): Update dependencies.
5483
2335f48e
DC
54842003-06-12 David Carlton <carlton@kealia.com>
5485
5486 * symtab.c (lookup_symbol_aux_minsyms): Replace
5487 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5488 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5489 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5490 SYMBOL_NATURAL_NAME.
5491
f70a7d61
AS
54922003-06-12 Andreas Schwab <schwab@suse.de>
5493
5494 * Makefile.in (tuiDisassem.o): Update dependencies.
5495
b6429628
DC
54962003-06-12 David Carlton <carlton@bactrian.org>
5497
5498 * symtab.h: Delete declaration of make_symbol_overload_list.
5499 Add declaration of lookup_partial_symbol.
5500 * symtab.c (remove_params): Move to cp-support.c.
5501 (overload_list_add_symbol, make_symbol_overload_list)
5502 (sym_return_val_size, sym_return_val_index): Ditto.
5503 (lookup_partial_symbol): Make extern.
5504 * cp-support.h: Add declaration of make_symbol_overload_list.
5505 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5506 symtab.h, and block.h.
5507 (remove_params): Move here from symtab.c.
5508 (overload_list_add_symbol, make_symbol_overload_list)
5509 (sym_return_val_size, sym_return_val_index): Ditto.
5510 * valops.c: Include cp-support.h.
5511 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5512 frame_h, and block_h.
5513 (valops.o): Depend on cp_support_h.
5514
084edea5
CV
55152003-06-12 Corinna Vinschen <vinschen@redhat.com>
5516
5517 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5518 substitute by NUM_REGS throughout.
5519 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5520 (h8300s_register_name): New function for H8S registers.
5521 (h8300sx_register_name): Ditto for H8SX registers.
5522 (h8300_print_register): Revise register printing, avoid depending
5523 on 32 bit long.
0261a0d0 5524 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5525 (h8300h_register_byte): New function for any other architecture.
5526 (h8300_register_raw_size): Remove.
5527 (h8300_register_virtual_type): Revise to return actually useful
5528 type.
5529 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5530 (h8300h_extract_struct_value_address): New function for any other
5531 architecture.
5532 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5533 set_gdbarch_register_name, set_gdbarch_register_byte,
5534 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5535 Remove calls to set_gdbarch_deprecated_register_size,
5536 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5537 set_gdbarch_deprecated_max_register_raw_size,
5538 set_gdbarch_register_virtual_size and
5539 set_gdbarch_deprecated_max_register_virtual_size entirely.
5540 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5541 set_gdbarch_long_double_bit.
5542
06194148
JJ
55432003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5544
8ffd9b1b
AJ
5545 * doublest.c (convert_doublest_to_floatformat): When dealing
5546 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5547 processing a full 32 bits of mantissa.
5548
de4f826b
DC
55492003-06-11 David Carlton <carlton@bactrian.org>
5550
5551 * dictionary.h: New.
5552 * dictionary.c: New.
5553 * block.h: Add opaque declaration for struct dictionary.
5554 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5555 'sym' members.
5556 (BLOCK_DICT): New macro.
5557 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5558 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5559 BLOCK_SHOULD_SORT.
5560 (ALL_BLOCK_SYMBOLS): Update definition.
5561 * Makefile.in (SFILES): Add dictionary.c.
5562 (dictionary_h): New.
5563 (COMMON_OBS): Add dictionary.o.
5564 (dictionary.o): New.
5565 (ada-lang.o): Depend on dictionary_h.
5566 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5567 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5568 (mi-cmd-stack.o): Ditto.
5569 (gdbtk-cmds.o): Update dependencies.
5570 (gdbtk-stack.o): Ditto.
5571 * ada-lang.c: Include dictionary.h.
5572 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5573 (fill_in_ada_prototype, debug_print_block): Ditto.
5574 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5575 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5576 'is_sorted'.
5577 * mdebugread.c: Include dictionary.h.
5578 (struct parse_stack): Delete 'maxsyms' member.
5579 (parse_symbol): Update calls to new_block. Delete calls to
5580 shrink_block. Use dictionary methods.
5581 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5582 Update calls to new_symtab. Don't maintain maxsyms data.
5583 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5584 (add_symbol): Just call dict_add_symbol.
5585 (new_symtab): Delete 'maxsyms' argument.
5586 (new_symtab): Update calls to new_block.
5587 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5588 (shrink_block): Delete function.
5589 (fixup_sigtramp): Update call to new_block. Add symbol via
5590 dict_add_symbol.
5591 * jv-lang.c: Include dictionary.h.
5592 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5593 appropriately. Set class_symtab->free_func. Make sure the
5594 blockvector is big enough to hold two blocks.
5595 (add_class_symtab_symbol): Use dictionary methods.
5596 (free_class_block): New function.
5597 (type_from_class): Replace explicit iteration by
5598 ALL_BLOCK_SYMBOLS.
5599 * symtab.h (struct symtab): Replace 'free_ptr' method by
5600 'free_func'.
5601 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5602 sort_symtab_syms.
5603 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5604 sort_symtab_syms.
5605 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5606 Include dictionary.h.
5607 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5608 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5609 sort_symtab_syms.
5610 * objfiles.c: Include dictionary.h.
5611 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5612 * buildsym.c: Include dictionary.h.
5613 (finish_block): Use dictionary methods.
5614 (end_symtab): Set free_func to NULL, not free_ptr.
5615 * tracepoint.c: Include dictionary.h.
5616 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5617 (scope_info): Ditto.
5618 * stack.c: Include dictionary.h.
5619 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5620 (print_block_frame_labels, print_frame_arg_vars)
5621 (print_frame_args): Ditto.
5622 * symmisc.c (free_symtab_block): Use dictionary methods.
5623 (dump_symtab): Ditto.
5624 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5625 Include dictionary.h.
5626 * symfile.h: Delete declarations of sort_block_syms,
5627 sort_symtab_syms.
5628 * symfile.c (sort_block_syms): Delete.
5629 (sort_symtab_syms): Delete.
5630 * symtab.c: Include dictionary.h.
5631 (lookup_block_symbol): Use dictionary iterators.
5632 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5633 (search_symbols, make_symbol_completion_list): Ditto.
5634 (make_symbol_overload_list): Ditto.
5635 * valops.c (value_of_local): Use dict_empty.
5636 Include dictionary.h.
5637
a31f978c
JB
56382003-06-11 J. Brobecker <brobecker@gnat.com>
5639
5640 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5641
526e70c0
DC
56422003-06-11 David Carlton <carlton@bactrian.org>
5643
5644 * block.h (BLOCK_SHOULD_SORT): Delete.
5645 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5646 blocks.
5647 * ada-lang.c (ada_add_block_symbols): Ditto.
5648 * symfile.c (sort_block_syms): Delete.
5649 (sort_symtab_syms): Ditto.
5650 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5651 declarations.
5652 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5653 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5654 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5655 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5656 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5657 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5658 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5659
33c08150
JJ
56602003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5661
8ffd9b1b 5662 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5663 bits to 128.
5664
781a750d
AC
56652003-06-11 Andrew Cagney <cagney@redhat.com>
5666
5667 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5668 REGISTER_CONVERTIBLE.
5669 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5670 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5671 * gdbarch.h, gdbarch.c: Re-generate.
5672 * arch-utils.h (deprecated_register_convertible_not): Rename
5673 generic_register_convertible_not.
5674 * arch-utils.c (deprecated_register_convertible_not): Rename
5675 generic_register_convertible.
5676 (legacy_convert_register_p, legacy_register_to_value): Update.
5677 * sh-tdep.c (sh64_push_arguments): Update.
5678 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5679 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5680 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5681 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5682 * arch-utils.c (legacy_value_to_register): Update.
5683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5684 (rs6000_register_convert_to_raw): Make parameter "from" const.
5685 * mips-tdep.c (mips_gdbarch_init): Update.
5686 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5687 * infcmd.c (default_print_registers_info): Update.
5688 * ia64-tdep.c (ia64_gdbarch_init): Update.
5689 (ia64_register_convert_to_raw): Make parameter "from" const.
5690 * i386-tdep.c (i386_gdbarch_init): Update.
5691 (i386_register_convert_to_raw): Update.
5692
cd90e54f
AC
56932003-06-11 Andrew Cagney <cagney@redhat.com>
5694
5695 * remote-fileio.c: Include "remote-fileio.h".
5696 * Makefile.in (remote-fileio.o): Update dependencies.
5697 (remote_fileio_h): Fix typo.
5698
a78f21af
AC
56992003-06-11 Andrew Cagney <cagney@redhat.com>
5700
5701 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5702 (xstormy16_save_dummy_frame_tos): Make static.
5703 (_initialize_xstormy16_tdep): Add declaration.
5704 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5705 * v850-tdep.c: Make local functions static.
5706 (_initialize_v850_tdep): Add declaration.
5707 * sparc-tdep.c: Make local functions static.
5708 (_initialize_sparc_tdep): Add declaration.
5709 * sh-tdep.c: Make local functions static.
5710 (_initialize_sh_tdep): Add declaration.
5711 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5712 * s390-tdep.c: Make local functions static.
5713 (_initialize_s390_tdep): Add declaration.
5714 * dbxread.c (find_stab_function_addr): Make static.
5715 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5716 * ocd.c (_initialize_remote_ocd): Add declaration.
5717 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5718 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5719 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5720 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5721 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5722 * remote-array.c (_initialize_array): Add declaration.
5723 (_initialize_remote_monitors): Add declaration.
5724 * remote-mips.c: Make local functions static.
5725 (_initialize_remote_mips): Add declaration.
5726 * mcore-tdep.c: Make all local functions static.
5727 (_initialize_mcore_tdep): Add declaration.
5728 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5729 * abug-rom.c (_initialize_abug_rom): Add declaration.
5730 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5731 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5732 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5733 * remote-est.c (_initialize_est): Add declaration.
5734 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5735 (m68hc11_call_dummy_address): Make static.
5736 * ia64-tdep.c: Make local functions static.
5737 (_initialize_ia64_tdep): Add declaration.
5738 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5739 * monitor.c (monitor_wait_filter): Make static.
5740 (_initialize_remote_monitors): Add declaration.
5741 * remote-hms.c (_initialize_remote_hms): Add declaration.
5742 * remote-e7000.c (fetch_regs_from_dump): Make static.
5743 (expect_n): Make static.
5744 (_initialize_remote_e7000): Add declaration.
5745 * ser-e7kpc.c: Always include "defs.h".
5746 (_initialize_ser_e7000pc): Add declaration.
5747 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5748 * cris-tdep.c: Make all but one function static.
5749 (_initialize_cris_tdep): Add declaration.
5750 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5751 * solib.c (update_solib_list): Make static.
5752 (_initialize_solib): Add declaration.
5753 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5754 (_initialize_avr_tdep): Add declaration.
5755 * remote-rdi.c (voiddummy): Make static.
5756 (_initialize_remote_rdi): Add declaration.
5757 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5758 * remote-rdp.c (send_rdp): Make static.
5759 (_initialize_remote_rdp): Add declaration.
5760 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5761
cbcdb1f5
CV
57622003-06-11 Corinna Vinschen <vinschen@redhat.com>
5763
5764 * remote-fileio.c: Make ari happy.
5765
a191ea8d
JB
57662003-06-10 J. Brobecker <brobecker@gnat.com>
5767
5768 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5769 fetching the trailing bytes of the buffer we are about to write.
5770
0ef75e11
AC
57712003-06-10 Andrew Cagney <cagney@redhat.com>
5772
5773 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5774 * Makefile.in (remote-fileio.o): Update dependencies.
5775 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5776 include <setjmp.h>, or <sys/types.h> conditional on USG.
5777 (remote_fio_jmp_buf): Delete global variable.
5778
449092f6 57792003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5780 Martin M. Hunt <hunt@redhat.com>
449092f6 5781
559fa028
AC
5782 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5783 (SFILES): Add remote-fileio.c.
5784 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5785 dependencies for building remote.o.
449092f6
CV
5786 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5787 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5788 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5789 static storage class.
5790 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5791 'F' packet.
5792 (_initialize_remote): Call initialize_remote_fileio().
5793 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5794 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5795 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5796 (captured_main): Initialize new ui_files.
5797 * ui-file.c: Add read and fgets input functions.
5798 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5799 (null_file_read): New function.
5800 (ui_file_read): New function.
5801 (set_ui_file_read): New function.
5802 (stdio_file_read): New function.
5803 * ui-file.h: New type ui_file_read_ftype.
5804 (set_ui_file_read): Declare.
5805 (ui_file_read): Declare.
5806
248de703
AC
58072003-06-09 Andrew Cagney <cagney@redhat.com>
5808
5809 * frame.h (deprecated_unwind_get_saved_register): Rename
5810 generic_unwind_get_saved_register, update comments.
5811 * mips-tdep.c (mips_get_saved_register): Update.
5812 * frame.c (deprecated_unwind_get_saved_register): Update.
5813
0ed8aa57
AC
58142003-06-09 Andrew Cagney <cagney@redhat.com>
5815
5816 * vax-tdep.c (vax_frame_locals_address): Delete function.
5817 (vax_gdbarch_init): Do not set frame_locals_address.
5818 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5819 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5820 * s390-tdep.c (s390_frame_args_address): Delete function.
5821 (s390_gdbarch_init): Do not set frame_args_address or
5822 frame_locals_address.
5823 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5824 (ns32k_gdbarch_init): Do not set frame_locals_address.
5825 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5826 (hppa_frame_locals_address): Delete function.
5827 (hppa_gdbarch_init): Do not set frame_args_address, or
5828 frame_locals_address.
5829 * arm-tdep.c (arm_frame_args_address): Delete.
5830 (arm_frame_locals_address): Delete.
5831 (arm_gdbarch_init): Do not set frame_args_address, or
5832 frame_locals_address.
5833
983a287a
AC
58342003-06-09 Andrew Cagney <cagney@redhat.com>
5835
5836 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5837 * gdbarch.h, gdbarch.c: Re-generate.
5838 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5839 * arch-utils.c (frame_num_args_unknown): Delete function.
5840 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5841 (frame_info): Use FRAME_NUM_ARGS_P.
5842 * arm-tdep.c (arm_frame_num_args): Delete function.
5843 (arm_gdbarch_init): Do not set frame_num_args.
5844 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5845 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5846 (hppa_gdbarch_init): Do not set frame_num_args.
5847 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5849 frame_num_args to default frame_num_args_unknown.
5850 * v850-tdep.c (v850_gdbarch_init): Ditto.
5851 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5852 * sh-tdep.c (sh_gdbarch_init): Ditto.
5853 * s390-tdep.c (s390_gdbarch_init): Ditto.
5854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5855 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5856 * mips-tdep.c (mips_gdbarch_init): Ditto.
5857 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5858 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5860 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5861 * i386-tdep.c (i386_gdbarch_init): Ditto.
5862 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5863 * frv-tdep.c (frv_gdbarch_init): Ditto.
5864 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5865 * cris-tdep.c (cris_gdbarch_init): Ditto.
5866 * avr-tdep.c (avr_gdbarch_init): Ditto.
5867 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5868
8d3b0994
AC
58692003-06-09 Andrew Cagney <cagney@redhat.com>
5870
5871 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5872 (print_frame_args): Moved to "stack.c".
5873 * stack.c: Include "gdb_assert.h".
5874 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5875 (print_frame_args): Moved from "printcmd.c".
5876 * frame.h (print_frame_args): Delete declaration.
5877 * Makefile.in (stack.o): Update dependencies.
5878
25e3a86b
AC
58792003-06-08 Andrew Cagney <cagney@redhat.com>
5880
5881 * frame.c (get_prev_frame): Remove reference to
5882 frame_args_address_correct in comments.
5883 * frame-base.c (default_frame_args_address): Delete code
5884 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5885 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5886 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5887 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5888 (vax_frame_args_address_correct): Delete declaration.
5889
a9e5fdc2
AC
58902003-06-08 Andrew Cagney <cagney@redhat.com>
5891
5892 * gdbarch.sh (UNWIND_SP): Add.
5893 * gdbarch.h, gdbarch.c: Re-generate.
5894 * frame.c (frame_sp_unwind): New function.
5895 (get_frame_sp): New function.
5896 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5897 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5898 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5899 value.
5900 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5901 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5902
8983bd83
AC
59032003-06-08 Andrew Cagney <cagney@redhat.com>
5904
7fec2c59
AC
5905 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5906 REMOTE_BREAKPOINT.
5907 * remote.c: Update.
5908 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5909 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5910 * config/m68k/tm-sun3.h: Update.
5911 * config/m68k/tm-m68klynx.h: Update.
5912 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5913
8983bd83
AC
5914 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5915 trad_frame". Update comments.
5916 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5917 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5918 (trad_frame_register_value, trad_frame_prev_register): Update.
5919
b9362cc7
AC
59202003-06-08 Andrew Cagney <cagney@redhat.com>
5921
5922 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5923 from GCC's acinclude.m4.
5924 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5925 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5926 * main.c (error_init): Delete declaration.
5927 * defs.h (error_init): Declare.
5928 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5929 (rs6000_convert_from_func_ptr_addr): Make static.
5930 (_initialize_rs6000_tdep): Add declaration.
5931 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5932 (show_commands, set_verbose, show_history): Delete declaration.
5933 * top.h (set_verbose): Add declaration.
5934 (show_history, set_history, show_commands): Add declaration.
5935 (do_restore_instream_cleanup): Add declaration.
5936 * objc-lang.c (specialcmp): Make static.
5937 (print_object_command): Make static.
5938 (find_objc_msgsend): Make static.
5939 (find_objc_msgcall_submethod_helper): Make static.
5940 (find_objc_msgcall_submethod): Make static.
5941 (_initialize_objc_language): Add declaration.
5942 (find_implementation_from_class): Make static.
5943 (find_implementation): Make static.
5944 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5945 * objc-lang.h (lookup_struct_typedef): Add declaration.
5946 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5947 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5948 (do_restore_user_call_depth): Make static.
5949 (do_restore_instream_cleanup): Delete declaration.
5950 (dont_repeat): Delete declaration.
5951 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5952 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5953 * reggroups.c (_initialize_reggroup): Add declaration.
5954 * cp-support.c (_initialize_cp_support): Add declaration.
5955 * cp-abi.c (_initialize_cp_abi): Add declaration.
5956 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5957 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5958 (_initialize_gnu_v3_abi): Add declaration.
5959 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5960 (_initialize_gnu_v2_abi): Add declaration.
5961 * frame-base.c (_initialize_frame_base): Add declaration.
5962 * doublest.c (floatformat_from_length): Make static.
5963 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5964 * frame.c (create_sentinel_frame): Make static.
5965 (_initialize_frame): Add declaration.
5966 * top.c (do_catch_errors): Make static.
5967 (gdb_rl_operate_and_get_next_completion): Make static.
5968 * typeprint.c: Include "typeprint.h".
5969 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5970 (sentinel_frame_this_id): Make static.
5971 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5972 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5973 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5974 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5975 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5976 * maint.c (maintenance_print_architecture): Make static.
5977 * signals/signals.c (_initialize_signals): Add declaration.
5978 * std-regs.c (_initialize_frame_reg): Add declaration.
5979 * jv-exp.y (push_variable): ISO C definition.
5980 (push_qualified_expression_name): Ditto.
5981 * memattr.c (_initialize_mem): Add declaration.
5982 * remote.c (remote_check_watch_resources): Make static.
5983 (remote_stopped_by_watchpoint): Make static.
5984 (remote_stopped_data_address): Make static.
5985 * d10v-tdep.c (nr_dmap_regs): Make static.
5986 (a0_regnum): Make static.
5987 (d10v_frame_unwind_cache): Make static.
5988 (d10v_frame_p): Make static.
5989 * osabi.c (show_osabi): Make static.
5990 (_initialize_gdb_osabi): Add extern declaration.
5991 * gdbtypes.c (make_qualified_type): Make static.
5992 (safe_parse_type): Make static.
5993 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5994 * macrotab.c (macro_bcache_free): Make static.
5995 * interps.c (interp_set_quiet): Make static.
5996 (interpreter_exec_cmd): Make static.
5997 * stack.h (select_frame_command): New file.
5998 * stack.c: Include "stack.h".
5999 (select_frame_command_wrapper): Delete function.
6000 (select_frame_command): Make global.
6001 * infcall.c: Include "infcall.h".
6002 * linespec.c: Include "linespec.h".
6003 * symfile.c (sections_overlap): Make static.
6004 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6005 * charset.c (_initialize_charset): Add missing prototype.
6006 * regcache.c (init_legacy_regcache_descr): Make static.
6007 (do_regcache_xfree): Make static.
6008 (regcache_xfer_part): Make static.
6009 (_initialize_regcache): Add missing prototype.
6010 * breakpoint.c (parse_breakpoint_sals): Make static.
6011 (breakpoint_sals_to_pc): Make static.
6012 * interps.h (clear_interpreter_hooks): ISO C declaration.
6013 * Makefile.in (stack_h): Define.
6014 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6015 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6016
a0f267c7
AC
60172003-06-08 Andrew Cagney <cagney@redhat.com>
6018
6019 * Makefile.in (d10v-tdep.o): Update dependencies.
6020 (SFILES): Add trad-frame.c.
6021 (trad_frame_h): Define.
6022 (COMMON_OBS): Add trad-frame.o.
6023 (trad-frame.o): Specify dependencies.
6024 * d10v-tdep.c: Include "trad-frame.h".
6025 (saved_regs_unwinder): Delete function.
6026 (d10v_frame_prev_register): Use trad_frame_prev_register.
6027 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6028 trad_frame", delete "regs" and "prev_sp".
6029 (prologue_find_regs): Use trad-frame.
6030 * trad-frame.h, trad-frame.c: New files.
6031
4538b4f4
MK
60322003-06-08 Mark Kettenis <kettenis@gnu.org>
6033
6034 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6035
a0273b2f
AF
60362003-06-07 Adam Fedor <fedor@gnu.org>
6037
6038 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6039 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6040 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6041 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6042 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6043 Use it.
6044
3a6c3343
AC
60452003-06-07 Andrew Cagney <cagney@redhat.com>
6046
6047 * symfile.h: Re-indent, clean up comments.
6048
b46e02f6
AC
60492003-06-07 Andrew Cagney <cagney@redhat.com>
6050
6051 * inferior.h (deprecated_write_sp): Replace
6052 generic_target_write_sp.
6053 * regcache.c (deprecated_write_sp): Replace
6054 generic_target_write_sp.
6055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6056 * vax-tdep.c (vax_gdbarch_init): Update.
6057 * v850-tdep.c (v850_gdbarch_init): Update.
6058 * sparc-tdep.c (sparc_gdbarch_init): Update.
6059 * sh-tdep.c (sh_gdbarch_init): Update.
6060 * s390-tdep.c (s390_gdbarch_init): Update.
6061 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6062 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6063 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6064 * mcore-tdep.c (mcore_gdbarch_init): Update.
6065 * m68k-tdep.c (m68k_gdbarch_init): Update.
6066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6067 * ia64-tdep.c (ia64_gdbarch_init): Update.
6068 * h8300-tdep.c (h8300_gdbarch_init): Update.
6069 * frv-tdep.c (frv_gdbarch_init): Update.
6070 * cris-tdep.c (cris_gdbarch_init): Update.
6071 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6072
a42e117c
AC
60732003-06-07 Andrew Cagney <cagney@redhat.com>
6074
6075 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6076 Assert that PC_REGNUM is valid.
6077 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6078
bd1ce8ba
AC
60792003-06-07 Andrew Cagney <cagney@redhat.com>
6080
6081 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6082 * gdbarch.h, gdbarch.c: Regenerate.
6083 * mn10300-tdep.c: Include "gdb_assert.h".
6084 (mn10300_read_fp): New function.
6085 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6086 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6087 * ia64-tdep.c: Include "gdb_assert.h".
6088 (ia64_read_fp): New function.
6089 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6090 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6091 * regcache.c (generic_target_read_sp): Delete function.
6092 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6093 * inferior.h (generic_target_read_sp): Delete declaration.
6094 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6095 generic_target_read_sp.
6096 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6097 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6098 * sh-tdep.c (sh_gdbarch_init): Ditto.
6099 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6100 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6101
ec5cbaec
AC
61022003-06-07 Andrew Cagney <cagney@redhat.com>
6103
6104 * gdbarch.sh: Comment each field of startup_gdbarch.
6105 * gdbarch.h, gdbarch.c: Re-generate.
6106
cde9ea48
AC
61072003-06-07 Andrew Cagney <cagney@redhat.com>
6108
6109 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6110 * gdbarch.h, gdbarch.c: Re-generate.
6111 * regcache.c: Update comments on read_pc et.al.
6112 (generic_target_read_pc): Delete function.
6113 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6114 * inferior.h (generic_target_read_pc): Delete declaration.
6115 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6116 generic_target_read_pc.
6117 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6118 * sh-tdep.c (sh_gdbarch_init): Ditto.
6119 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6120 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6121
9a90a780
AC
61222003-06-07 Andrew Cagney <cagney@redhat.com>
6123
6124 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6125 "index" with "special_local_sect". Use strcmp instead of STREQ.
6126 Append period to coments.
6127
a39a16c4
MM
61282003-06-06 Mark Mitchell <mark@codesourcery.com>
6129
6130 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6131 (elfstab_offset_sections): Likewise.
6132 * gdb-stabs.h (stab_section_info): Likewise.
6133 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6134 * objfiles.c (objfile_relocate): Likewise.
6135 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6136 * remote.c (get_offsets): Likewise.
6137 (remote_cisco_objfile_relocate): Likewise.
6138 * somread.c (som_symfile_offsets): Likewise.
6139 * symfile.c (alloc_section_addr_info): New function.
6140 (build_section_addr_info_from_section_tab): Use it.
6141 (free_section_addr_info): Adjust.
6142 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6143 (syms_from_objfile): Allocate local_addr dynamically.
6144 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6145 dynamically.
6146 (add_symbol_file_command): Allocate sect_opts dynamically.
6147 (reread_symbols): Avoid use of SECT_OFF_MAX.
6148 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6149 (alloc_section_addr_info): Declare it.
6150 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6151 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6152 dynamically.
6153 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6154
20c6c2f8
AC
61552003-06-06 Andrew Cagney <cagney@redhat.com>
6156
6157 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6158 (d10v_frame_unwind_cache): Do not set "return_pc".
6159
884a26c8
MS
61602003-06-06 Michael Snyder <msnyder@redhat.com>
6161
6162 * h8300-tdep.c: Make tidy (long lines).
6163
088ce440
ML
61642003-06-06 Michal Ludvig <mludvig@suse.cz>
6165
8ffd9b1b 6166 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6167 to regcache_collect().
6168
7d773d96
JB
61692003-06-05 J. Brobecker <brobecker@gnat.com>
6170
6171 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6172 pc_in_sigtramp multiarch method.
6173 (hppa_hpux_som_init_abi): Use it.
6174 (hppa_hpux_elf_init_abi): Likewise.
6175 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6176 macro has been multiarched.
6177 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6178 macro here, as hppa64 isn't multiarched yet.
6179
1df6926e
AC
61802003-06-05 Andrew Cagney <cagney@redhat.com>
6181
6182 * Makefile.in (value_h): Add $(frame_h).
6183 * value.h: Include "frame.h".
6184 (struct value): Replace "frame_addr" with "frame_id".
6185 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6186 * values.c (allocate_value): Use VALUE_FRAME_ID.
6187 (value_copy): Use VALUE_FRAME_ID.
6188 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6189 * valops.c (value_assign): Update. Use frame_find_by_id.
6190
6b53acc6
ML
61912003-06-05 Michal Ludvig <mludvig@suse.cz>
6192
6193 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6194 in each pass.
6195
4d9850d3
JJ
61962003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6197
6198 * thread-db.c (check_event): For create/death event breakpoints,
6199 loop through all messages to ensure that we read the message
6200 corresponding to the breakpoint we are at.
6201
8efca6ba
MS
62022003-06-04 Michael Snyder <msnyder@redhat.com>
6203
6204 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6205
0912c7f2
MK
62062003-06-04 Mark Kettenis <kettenis@gnu.org>
6207
6208 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6209 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6210 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6211 when handling .eh_frame sections.
6212
4e370325
JB
62132003-06-04 J. Brobecker <brobecker@gnat.com>
6214
6215 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6216 prepare_to_proceed procedure instead of the hppa-specific one.
6217 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6218
b757528f 62192003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6220
b757528f
JJ
6221 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6222 * config.in: Regenerated.
6223 * configure.in: Add test for syscall function and check for
6224 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6225 * configure: Regenerated.
6226 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6227 <sys/syscall.h>.
6228 (kill_lwp): New function that uses tkill syscall or
6229 uses kill, depending on whether threading model is nptl or not.
6230 All callers of kill() changed to use kill_lwp().
6231 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6232 see if all threads have already exited in the nptl model.
6233 (stop_and_resume_callback): New callback function used by the
6234 lin_lwp_wait thread exit handling code.
6235 (stop_wait_callback): Check for threads already having exited and
6236 delete such threads fromt the lwp list when discovered.
6237 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6238
b757528f
JJ
6239 Roland McGrath <roland@redhat.com>
6240 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6241 nptl libthread_db.
6242
087779b1
RH
62432003-06-03 Richard Henderson <rth@redhat.com>
6244
b21fd293
RH
6245 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6246 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6247 (alpha_sigtramp_frame_prev_register): Likewise.
6248 (alpha_heuristic_frame_prev_register): Likewise.
6249 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6250
8ffd9b1b 6251 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6252 alpha-specific register id names.
6253 (alpha_mdebug_frame_unwind_cache): Likewise.
6254 (alpha_mdebug_frame_prev_register): Likewise.
6255
baa490c4
RH
62562003-06-03 Richard Henderson <rth@redhat.com>
6257
6258 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6259 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6260 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6261 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6262 unwind routines.
6263 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6264 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6265 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6266
6267 * alpha-linux-tdep.c: Remove unnecessary includes.
6268 * Makefile.in (alpha-linux-tdep.o): Update.
6269
62702003-06-03 Richard Henderson <rth@redhat.com>
6271
6272 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6273 (alphabsd_fill_fpreg): Likewise.
6274
f534e522
JB
62752003-06-03 J. Brobecker <brobecker@gnat.com>
6276
6277 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6278 references to struct frame_info fields by calls to the equivalent
6279 accessors. Necessary now that frame_info is opaque.
6280
4035536b
JB
62812003-06-03 J. Brobecker <brobecker@gnat.com>
6282
6283 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6284 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6285 structure, field no longer exists.
6286
0bd79c5c
JB
62872003-06-03 J. Brobecker <brobecker@gnat.com>
6288
6289 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6290 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6291
37bb6d9f
JB
62922003-06-03 J. Brobecker <brobecker@gnat.com>
6293
6294 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6295 references to struct frame_info fields by calls to the equivalent
6296 accessors. Necessary now that frame_info is opaque.
6297
852ee05c
JB
62982003-06-03 J. Brobecker <brobecker@gnat.com>
6299
6300 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6301 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6302 structure, field no longer exists.
6303
7d58c67d
TR
63042003-06-03 Theodore A. Roth <troth@openavr.org>
6305
8ffd9b1b 6306 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6307 accumulation of the size of all registers instead of blindly using
6308 DEPRECATED_REGISTER_BYTES.
6309
0a48e7e8
MS
63102003-06-03 Michael Snyder <msnyder@redhat.com>
6311
6312 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6313 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6314 for h8300sx.
6315
9798ab0d
JB
63162003-06-03 J. Brobecker <brobecker@gnat.com>
6317
6318 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6319 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6320
00b037e2
AC
63212003-06-03 Andrew Cagney <cagney@redhat.com>
6322
6323 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6324 (sparc_convert_to_raw): Delete function.
6325 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6326 register_convert_to_virtual.
6327
043b2f77
JJ
63282003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6329
6330 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6331 layer if not dealing with a statically-linked threaded program.
6332
f43caff8
KW
63332003-06-03 Kris Warkentin <kewarken@qnx.com>
6334
6335 * solib.c (solib_open): Update comment to reflect actual search order.
6336
ae1e7417
AC
63372003-06-03 Andrew Cagney <cagney@redhat.com>
6338
6339 * frame.c (get_frame_memory_signed): New function.
6340 (get_frame_memory, get_frame_memory_unsigned): New function.
6341 (get_frame_arch): New function.
6342 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6343 (get_frame_memory, get_frame_unsigned_memory): Declare.
6344 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6345 get_frame_memory_unsigned and get_frame_arch.
6346 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6347
cb123844
RG
63482003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6349
6350 * MAINTAINERS (write after approval): Add myself.
6351
1bb792e9
JB
63522003-06-03 Jim Blandy <jimb@redhat.com>
6353
6354 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6355 elements of gregset_t are 64 bits each, but access registers
6356 are still 32 bits, so they're packed two per gregset_t
6357 element. Unpack/pack them properly.
6358
aee8d8ba
DC
63592003-06-02 David Carlton <carlton@bactrian.org>
6360
6361 * linespec.c (find_methods): Break out code into
6362 add_matching_methods and add_constructors.
6363 (add_matching_methods): New.
6364 (add_constructors): Ditto.
6365
bf7488d2
AC
63662003-06-02 Andrew Cagney <cagney@redhat.com>
6367
bf7488d2
AC
6368 * sparc-tdep.c (sparc_print_registers): Delete call to
6369 REGISTER_CONVERTIBLE.
6370 (sparc_gdbarch_init): Do not set register_convertible.
6371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6372 * frv-tdep.c (frv_gdbarch_init): Ditto.
6373 * cris-tdep.c (cris_gdbarch_init): Ditto.
6374
adedef68
EZ
63752003-06-02 Elena Zannoni <ezannoni@redhat.com>
6376
8ffd9b1b 6377 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6378 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6379 (syms_from_objfile): Ditto.
6380
650fcc91
AS
63812003-06-03 Andreas Schwab <schwab@suse.de>
6382
6383 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6384 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6385
df4a182b
RH
63862003-06-02 Richard Henderson <rth@redhat.com>
6387
6388 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6389 a member of all_reggroup.
6390
c483c494
RH
63912003-06-02 Richard Henderson <rth@redhat.com>
6392
6393 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6394 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6395 (alpha_lds, alpha_sts): New.
6396 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6397 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6398 restructure and fail for type sizes other than 4 or 8.
6399 (alpha_value_to_register): Similarly.
6400 (alpha_extract_return_value): Use alpha_sts.
6401 (alpha_store_return_value): Use alpha_lds.
6402 (alpha_gdbarch_init): Update hooks.
6403
b38b6be2
RH
64042003-06-02 Richard Henderson <rth@redhat.com>
6405
6406 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6407 regnum identifiers.
6408 (alpha_sigtramp_register_address): Likewise.
6409
98a8e1e5
RH
64102003-06-02 Richard Henderson <rth@redhat.com>
6411
6412 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6413 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6414 * alpha-tdep.h: Declare them.
6415
6416 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6417 Remove zerobuf. Don't error on UNIQUE.
6418 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6419 (ALPHA_REGSET_UNIQUE): Provide default.
6420 (supply_gregset): Use alpha_supply_int_regs.
6421 (fill_gregset): Use alpha_fill_int_regs.
6422 (supply_fpregset): Use alpha_supply_fp_regs.
6423 (fill_fpregset): Use alpha_fill_fp_regs.
6424 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6425 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6426 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6427 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6428 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6429 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6430
67dfac52
RH
64312003-06-02 Richard Henderson <rth@redhat.com>
6432
f75d70cc
RH
6433 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6434
67dfac52
RH
6435 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6436 (alpha_store_return_value): Likewise.
6437
0cf566ec
DC
64382003-06-02 David Carlton <carlton@math.stanford.edu>
6439
6440 * block.c (contained_in): Add 'const' to arguments.
6441 (block_function): Ditto.
6442 * block.h: Update declarations for block_function and
6443 contained_in.
6444
cdef89d0
DC
64452003-06-02 David Carlton <carlton@math.stanford.edu>
6446
6447 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6448 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6449 * p-valprint.c (pascal_val_print): Ditto.
6450 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6451
72667056
RH
64522003-06-02 Richard Henderson <rth@redhat.com>
6453
98a8e1e5
RH
6454 * alpha-tdep.c (alpha_push_dummy_call): Use
6455 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6456
8ffd9b1b 6457 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6458 sign-extension of 32-bit values.
6459 (alpha_store_return_value): Similarly.
0ede8eca 6460
98a8e1e5
RH
6461 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6462 (alpha_extract_return_value): Likewise.
6463 (alpha_store_return_value): Likewise.
7b5e1cb3 6464
98a8e1e5
RH
6465 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6466 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6467
98a8e1e5
RH
6468 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6469 (alpha_extract_struct_value_address): Likewise.
6470 (alpha_store_return_value): Likewise.
6471 (alpha_store_struct_return): Remove.
6472 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6473
98a8e1e5
RH
6474 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6475 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6476 macros where appropriate.
6477 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6478 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6479
98a8e1e5
RH
6480 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6481 for SP, GP; void_func_ptr for PC; non-language-specific types
6482 for all others.
6483 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6484
6dd77b81
RH
64852003-06-02 Richard Henderson <rth@redhat.com>
6486
6487 * top.h (lim_at_start): Declare.
6488 * main.c (captured_main): Set it.
6489 * top.c (lim_at_start): Define.
6490 (command_loop): Use it instead of &environ.
6491 * event-top.c (command_handler): Likewise.
6492
f4dbdb54
JT
64932003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6494
6495 * mipsnbsd-tdep.c: Update copyright years.
6496 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6497
8f285956
RH
64982003-06-01 Richard Henderson <rth@redhat.com>
6499
98a8e1e5
RH
6500 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6501 (alpha-linux-tdep.o): Update dependencies.
6502 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6503 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6504
615967cb
RH
65052003-06-01 Richard Henderson <rth@redhat.com>
6506
98a8e1e5
RH
6507 * alpha-tdep.c (alpha_register_reggroup_p): New.
6508 (alpha_gdbarch_init): Register it.
615967cb 6509
b59661bd
AC
65102003-06-02 Andrew Cagney <cagney@redhat.com>
6511
6512 * dwarfread.c: Eliminate "register"
6513 (decode_die_type): Eliminate assignment within "if".
6514 (struct_type, decode_array_element_type): Ditto.
6515 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6516 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6517 (decode_modified_type, completedieinfo): Ditto.
6518 * block.c: Eliminate "register".
6519 (blockvector_for_pc_sect): Eliminate assignment within "if".
6520 * cp-support.h (struct symbol): Opaque declaration.
6521 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6522
5ef165c2
RH
65232003-06-01 Richard Henderson <rth@redhat.com>
6524
98a8e1e5
RH
6525 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6526 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6527
143985b7
AF
65282003-06-01 Adam Fedor <fedor@gnu.org>
6529
6530 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6531 * gdbarch.[ch]: Regenerate.
6532 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6533 (hppa_gdbarch_init): Set it in the gdbarch vector.
6534 * i386-tdep.c (i386_fetch_pointer_argument): New
6535 (i386_gdbarch_init): Set it into gdbarch.
6536 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6537 (rs6000_gdbarch_init): Set it in gdbarch.
6538 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6539 (sparc_gdbarch_init): Set it in gdbarch.
6540
ae0167b9
AC
65412003-06-01 Andrew Cagney <cagney@redhat.com>
6542
7c0b4a20
AC
6543 * defs.h (extract_address): Delete declaration.
6544 * findvar.c (extract_address): Delete function.
6545 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6546 extract_address with the inline equivalent,
6547 extract_unsigned_integer.
6548 (xstormy16_extract_struct_value_address): Ditto.
6549 (xstormy16_pointer_to_address): Ditto.
6550 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6551 * v850-tdep.c (v850_push_arguments): Ditto.
6552 (v850_extract_return_value): Ditto.
6553 (v850_extract_struct_value_address): Ditto.
6554 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6555 (sparcnbsd_get_longjmp_target_64): Ditto.
6556 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6557 (get_longjmp_target): Ditto.
6558 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6559 (sh64_extract_struct_value_address): Ditto.
6560 (sh_push_arguments): Ditto.
6561 (sh64_push_arguments): Ditto.
6562 * remote-vxsparc.c (vx_read_register): Ditto.
6563 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6564 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6565 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6566 * mipsv4-nat.c (get_longjmp_target): Ditto.
6567 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6568 * mips-nat.c (get_longjmp_target): Ditto.
6569 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6570 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6571 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6572 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6573 * irix5-nat.c (get_longjmp_target): Ditto.
6574 * irix4-nat.c (get_longjmp_target): Ditto.
6575 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6576 (ia64_push_arguments): Ditto.
6577 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6578 * h8300-tdep.c (h8300_push_arguments): Ditto.
6579 (h8300_store_return_value): Ditto.
6580 (h8300_extract_struct_value_address): Ditto.
6581 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6582 (frv_push_arguments): Ditto.
6583 * avr-tdep.c (avr_pointer_to_address): Ditto.
6584 (avr_push_arguments): Ditto.
6585 * arm-tdep.c (arm_push_dummy_call): Ditto.
6586 (arm_get_longjmp_target): Ditto.
6587 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6588 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6589 (alpha_get_longjmp_target): Ditto.
6590
ae0167b9
AC
6591 * solib-irix.c (extract_mips_address): Inline extract_address,
6592 replacing it with extract_signed_integer.
6593 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6594 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6595 (first_link_map_member, open_symbol_file_object): Ditto.
6596 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6597 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6598 (LM_NEXT, LM_NAME): Ditto.
6599
44d88583
RH
66002003-06-01 Richard Henderson <rth@redhat.com>
6601
98a8e1e5
RH
6602 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6603 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6604 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6605 (alpha_cannot_store_register): Likewise.
6606 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6607 * alpha-nat.c (supply_gregset): Likewise.
6608 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6609
310e9b6a
AC
66102003-06-01 Andrew Cagney <cagney@redhat.com>
6611
6612 * infcall.c (call_function_by_hand): Update comment on
6613 DEPRECATED_DUMMY_WRITE_SP.
6614
6615 * mips-tdep.c (mips_gdbarch_init): Do not set
6616 deprecated_dummy_write_sp.
6617 (mips_eabi_push_dummy_call): Set the SP register.
6618 (mips_o64_push_dummy_call): Set the SP register.
6619 (mips_o32_push_dummy_call): Set the SP register.
6620 (mips_n32n64_push_dummy_call): Set the SP register.
6621
5ab84872
RH
66222003-06-01 Richard Henderson <rth@redhat.com>
6623
98a8e1e5
RH
6624 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6625 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6626 (supply_gregset): Likewise.
6627 * alpha-tdep.c (alpha_store_return_value): Likewise.
6628 (alpha_get_longjmp_target): Likewise.
6629 (alpha_register_name): Constify array.
6630 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6631 deprecated_register_size, deprecated_register_bytes,
6632 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6633 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6634 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6635
09cc52fd
RH
66362003-06-01 Richard Henderson <rth@redhat.com>
6637
6638 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6639 from arg_reg_buffer to regcache to avoid double conversion.
6640
c7f16359
MK
66412003-06-01 Mark Kettenis <kettenis@gnu.org>
6642
6643 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6644 SP_REGNUM.
6645 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6646 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6647
7131cb6e
RH
66482003-06-01 Richard Henderson <rth@redhat.com>
6649
98a8e1e5
RH
6650 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6651 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6652
f3e0f90b
RH
66532003-06-01 Richard Henderson <rth@redhat.com>
6654
98a8e1e5
RH
6655 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6656 not overlapping PC_REGNUM.
f3e0f90b 6657
c88e30c0
RH
66582003-06-01 Richard Henderson <rth@redhat.com>
6659
98a8e1e5
RH
6660 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6661 alpha_push_arguments. Don't dump argument register data to
6662 the target stack. Fix float and 128-bit long double semantics.
6663 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6664 (alpha_fix_call_dummy): Remove.
6665 (alpha_call_dummy_words): Remove.
6666 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6667
f1a559ae
RH
66682003-06-01 Richard Henderson <rth@redhat.com>
6669
6670 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6671
5e045346
AC
66722003-06-01 Andrew Cagney <cagney@redhat.com>
6673
95404a3e
AC
6674 * mips-tdep.c (is_mips16_addr): New function.
6675 (make_mips16_addr, unmake_mips16_addr): New functions.
6676 (pc_is_mips16, mips_fetch_instruction): Use.
6677 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6678 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6679 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6680 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6681 TARGET_MIPS.
6682 * config/mips/tm-mips.h: Update copyright.
6683 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6684 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6685 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6686 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6687 (TM_PRINT_INSN_MACH): Delete.
6688 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6689
5e045346
AC
6690 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6691 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6692 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6693 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6694 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6695 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6696 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6697 mips*-*-riscos* and mips*-*-sysv* onto mips.
6698 * config/mips/mips64.mt: New file.
6699 * config/mips/mips.mt: New file.
6700 * config/mips/littlemips.mt: Delete file.
6701 * config/mips/decstation.mt: Delete file.
6702 * config/mips/vr4300el.mt: Delete file.
6703 * config/mips/vr5000el.mt: Delete file.
6704 * config/mips/vr5000.mt: Delete file.
6705 * config/mips/vr4100.mt: Delete file.
6706 * config/mips/vr4xxxel.mt: Delete file.
6707 * config/mips/vr4300.mt: Delete file.
6708 * config/mips/vr4xxx.mt: Delete file.
6709 * config/mips/bigmips.mt: Delete file.
6710 * config/mips/bigmips64.mt: Delete file.
6711 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6712 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6713 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6714 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6715 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6716 "tm-bigmips.h".
6717 * config/mips/tm-irix3.h: Ditto.
6718 * config/mips/tm-mipsv4.h: Ditto.
6719 * config/mips/tm-embed.h: Ditto.
6720 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6721 "tm-bigmips64.h".
6722 * config/mips/tm-vr5000el.h: Delete file.
6723 * config/mips/tm-tx39l.h: Delete file.
6724 * config/mips/tm-vr4300el.h: Delete file.
6725 * config/mips/tm-vr4xxxel.h: Delete file.
6726 * config/mips/tm-vr4300.h: Delete file.
6727 * config/mips/tm-vr4100.h: Delete file.
6728 * config/mips/tm-vr4xxx.h: Delete file.
6729 * config/mips/tm-vr5000.h: Delete file.
6730 * config/mips/tm-embedl64.h: Delete file.
6731 * config/mips/tm-embedl.h: Delete file.
6732 * config/mips/tm-embed64.h: Delete file.
6733 * config/mips/tm-bigmips64.h: Delete file.
6734 * config/mips/tm-bigmips.h: Delete file.
6735
2473a4a9
MK
67362003-06-01 Mark Kettenis <kettenis@gnu.org>
6737
97a5b208
MK
6738 Fix gdb/1216.
6739 * shnbsd-nat.c: Include "sh-tdep.h".
6740
2473a4a9
MK
6741 From Richard Henderson <rth@redhat.com>:
6742 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6743
e0f7ec59
AC
67442003-05-31 Andrew Cagney <cagney@redhat.com>
6745
6746 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6747 forward declaration.
6748 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6749 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6750 (mips_find_saved_regs): Use set_reg_offset.
6751 (mips_frame_init_saved_regs): Delete function.
6752 (mips_pop_frame): Call mips_find_saved_regs instead of
6753 DEPRECATED_FRAME_INIT_SAVED_REGS.
6754
68dcc709
AC
67552003-05-31 Andrew Cagney <cagney@redhat.com>
6756
6757 * mips-tdep.c (mips_gdbarch_init): Do not set
6758 deprecated_max_register_raw_size, register_virtual_size, and
6759 deprecated_max_register_virtual_size.
6760
cfc14b3a
MK
67612003-05-31 Mark Kettenis <kettenis@gnu.org>
6762
6405b0a6
MK
6763 * i386-tdep.c: Include "dwarf2-frame.h".
6764 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6765 * Makefile.in (i386-tdep.o): Update dependencies.
6766
cfc14b3a
MK
6767 * dwarf2-frame.c, dwarf2-frame.h: New files.
6768 * Makefile.in (SFILES): Add dwarf2-frame.c.
6769 (dwarf2_frame_h): Define.
6770 (COMMON_OBS): Add dwarf2-frame.o.
6771 (dwarf2-frame.o): Add dependencies.
6772
6a2751d2
AJ
67732003-05-31 Andreas Jaeger <aj@suse.de>
6774
6775 * x86-64-linux-nat.c: Fix comment.
6776
1c3545ae
MK
67772003-05-31 Mark Kettenis <kettenis@gnu.org>
6778
10f93086
MK
6779 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6780 function signature.
6781
1c3545ae
MK
6782 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6783 have a sigcontext_addr handler.
6784 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6785 sigcontext_addr handler.
6786
e11c53d2
AC
67872003-05-31 Andrew Cagney <cagney@redhat.com>
6788
6789 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6790 (print_fp_register_row): Replace do_fp_register_row.
6791 (mips_print_fp_register): Add "file" and "frame" parameters.
6792 (mips_print_register): Add "file" and "frame" parameters.
6793 (mips_print_registers_info): Replace mips_do_registers_info.
6794 (mips_gdbarch_init): Set print_registers_info instead of
6795 deprecated_do_registers_info.
6796 (mips_read_fp_register_single): Add "frame" parameter.
6797 (mips_read_fp_register_double): Add "frame" parameter.
6798
a3386186
MK
67992003-05-31 Mark Kettenis <kettenis@gnu.org>
6800
70913449
MK
6801 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6802 Fixes a bug where GDB would print the wrong register names for
6803 targets without SSE.
6804
2b5e0749
MK
6805 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6806 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6807 registers.
6808
6809 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6810 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6811 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6812 TDEP->sc_sp_offset.
6813
a3386186
MK
6814 From Michal Ludvig <mludvig@suse.cz>:
6815 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6816 and `sc_num_regs'.
6817 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6818 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6819 I386_ST0_REGNUM): Move here from...
6820 * i386-tdep.c: ... here.
6821 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6822 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6823 registers if possible.
6824 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6825 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6826 Remove variables.
6827 (i386bsd_sc_reg_offset): New variable.
6828 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6829 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6830 TDEP->sc_sp_offset.
6831 (i386fbsd_sc_reg_offset): New variable.
6832 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6833 TDEP->sc_num_regs.
6834 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6835 variables.
6836 (i386fbsd4_sc_reg_offset): New variable.
6837 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6838 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6839 TDEP->sc_sp_offset.
6840 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6841 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6842 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6843 Remove variables.
6844 (i386nbsd_sc_reg_offset): New variable.
6845 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6846 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6847 TDEP->sc_sp_offset.
6848 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6849 Remove variables.
6850 (i386obsd_sc_reg_offset): New variable.
6851 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6852 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6853 TDEP->sc_sp_offset.
6854 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6855 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6856 for frame pointer offset in `struct sigcontext'.
6857
25ab4790
AC
68582003-05-31 Andrew Cagney <cagney@redhat.com>
6859
6860 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6861 architecture methods call_dummy_words, sizeof_call_dummy_words,
6862 push_return_address, store_struct_return, and fix_call_dummy. Set
6863 push_dummy_call instead of deprecated_push_arguments.
6864 (mips_store_struct_return): Delete function.
6865 (mips_fix_call_dummy): Delete function.
6866 (mips_push_return_address): Delete function.
6867 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6868 RA_REGNUM and T9_REGNUM.
6869 (mips_n32n64_push_dummy_call): Ditto for
6870 mips_n32n64_push_arguments.
6871 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6872 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6873
6a65450a
AC
68742003-05-31 Andrew Cagney <cagney@redhat.com>
6875
6876 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6877 "dummy_addr" to "bp_addr".
6878 * infcall.c (call_function_by_hand): Pass "funaddr" to
6879 gdbarch_push_dummy_call.
6880 * gdbarch.h, gdbarch.c: Re-generate.
6881 * i386-tdep.c (i386_push_dummy_call): Update.
6882 * arm-tdep.c (arm_push_dummy_call): Update.
6883 * d10v-tdep.c (d10v_push_dummy_call): Update.
6884
c4f35dd8
MK
68852003-05-31 Mark Kettenis <kettenis@gnu.org>
6886
6887 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6888 variable declarations.
6889 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6890 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6891 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6892 x86_64_init_frame_pc, x86_64_init_frame_pc,
6893 x86_64_function_has_prologue): Remove prototypes.
6894 (X86_64_NUM_GREGS): New define.
6895 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6896 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6897 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6898 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6899 XMM1_REGNUM): Remove defines.
6900 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6901 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6902 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6903 X86_64_XMM1_REGNUM): New defines.
6904 (struct x86_64_register_info): Renamed from `struct
6905 register_info'. Remove `size' member.
6906 (x86_64_register_info_table): Remove variable.
6907 (x86_64_register_info): New variable.
6908 (X86_64_NUM_REGS): New define.
6909 (X86_64_NUM_GREGS): Remove define.
6910 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6911 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6912 Remove variables.
6913 (x86_54_dwarf2_reg_to_regnum): Remove function.
6914 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6915 (x86_64_dwarf_reg_to_regnum): New function.
6916 (x86_64_register_name): Rewrite.
6917 (x86_64_register_raw_size): Remove function.
6918 (x86_64_register_byte_table): Remove variable.
6919 (x86_64_register_byte): Remove function.
6920 (x86_64_register_virtual_type): Remove function.
6921 (x86_64_register_type): New function.
6922 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6923 x86_64_register_convert_to_raw): Remove functions.
6924 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6925 (x86_64_use_struct_convention): Make static. Adjust for renamed
6926 defines.
6927 (x86_64_frame_init_saved_regs): Remove function.
6928 (x86_64_push_arguments): Make static. Change to accept a regcache
6929 as argument.
6930 (x86_64_store_return_value, x86_64_extract_return_value): Make
6931 static. Rewrite based on i386 counterparts.
6932 (x86_64_push_dummy_call): New function.
6933 (X86_64_NUM_SAVED_REGS): New define.
6934 (x86_64_register_number): Remove function.
6935 (x86_64_store_struct_return): Remove function.
6936 (x86_64_frameless_function_invocation,
6937 x86_64_function_has_prologue): Remove functions.
6938 (PROLOG_BUFSIZE): Remove define.
6939 (struct x86_64_frame_cache): New structure.
6940 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6941 x86_64_frame_cache, x86_64_frame_this_id,
6942 x86_64_frame_prev_register, x86_64_frame_p,
6943 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6944 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6945 functions.
6946 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6947 variables.
6948 (x86_64_skip_prologue): Rewrite in terms of
6949 x86_64_analyze_prologue.
6950 (x86_64_frame_base_address): New function.
6951 (x86_64_frame_base): New variable.
6952 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6953 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6954 set deprecated_fp_regnum, deprecated_register_size,
6955 deprecated_register_bytes, register_raw_size, register_byte,
6956 register_virtual_type, register_convertiable,
6957 register_convert_to_virtual, convert_to_raw,
6958 deprecated_get_saved_register, deprecated_target_read_fp,
6959 deprecated_push_arguments, deprecated_push_return_address,
6960 deprecated_pop_frame, deprecated_store_struct_return,
6961 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6962 frameless_function_invocation, deprecated_frame_saved_pc,
6963 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6964 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6965 deprecated_init_frame_pc and virtual_frame_pointer. Call
6966 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6967 and x86_64_frame_p. Call frame_base_set_default to register
6968 x86_64_frame_base.
6969 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6970 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6971 (_initialize_x86_64_tdep): Remove function.
6972 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6973 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6974 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6975 define.
6976 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6977 (x86_64_linux_sigcontext_addr): Rewrite.
6978 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6979 x86_64_linux_frame_saved_pc): Remove functions.
6980 (x86_64_linux_pc_in_sigtramp): Renamed from
6981 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6982 trampoline.
6983 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6984 Remove_functions.
6985 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6986 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6987 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6988 (x86_64_regmap): Rename to regmap.
6989 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6990 x86_64_num_gregs.
6991 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6992 x86_64_regmap.
6993 (x86_64_fxsave_offset): Remove function.
6994 (supply_fpregset): Simply call x86_64_supply_fxsave.
6995 (fill_fpregset): Simply call x86_64_fill_fxsave.
6996 (fetch_inferior_registers, store_inferior_registers): Avoid
6997 asignment in if-statement.
6998 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6999 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7000 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7001 (fetch_core_registers): Remove function.
7002 (linux_elf_core_fns): Remove.
7003 (offsetoff): Don't define.
7004 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7005 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7006 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7007 add core-regset.o.
7008 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7009 protection against multiple includes instead of NM_X86_64_h. Add
7010 various comments. Include "config/nm-linux.h". Don't include
7011 <signal.h>.
7012 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7013 GET_THREAD_SIGNALS): Remove defines.
7014 (x86_64_register_u_addr, kernel_u_size,
7015 lin_thread_get_thread_signals): Remove prototypes.
7016 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7017 [HAVE_LINK_H]: Don't include "solib.h".
7018 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7019 * config/i386/tm-x86-64linux.h: Fix comments.
7020 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7021 x86-64-tdep.o): Update dependencies.
7022
c25083af
AC
70232003-05-30 Andrew Cagney <cagney@redhat.com>
7024
c8f55a7b
AC
7025 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7026 Change parameter type to a "struct regcache *".
7027
c25083af
AC
7028 * gdbarch.sh: Regardless of the multi-arch level, always define
7029 the macro when not already defined.
7030 * gdbarch.h, gdbarch.c: Re-generate.
7031
fbe586ae
RH
70322003-05-30 Richard Henderson <rth@redhat.com>
7033
7034 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7035 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7036 (alpha_mdebug_frame_this_id): Likewise.
7037 (alpha_mdebug_frame_prev_register): Likewise.
7038 (alpha_mdebug_frame_base_address): Likewise.
7039 (alpha_mdebug_frame_locals_address): Likewise.
7040 (alpha_mdebug_frame_args_address): Likewise.
7041 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7042 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7043 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7044 loop increment.
7045 (alpha_heuristic_frame_this_id): Make static.
7046 (alpha_heuristic_frame_prev_register): Likewise.
7047 (alpha_heuristic_frame_base_address): Likewise.
7048 * alpha-tdep.h: Update.
7049
acd5c798
MK
70502003-05-30 Mark Kettenis <kettenis@gnu.org>
7051
7052 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7053 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7054 defenitions.
7055 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7056 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7057 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7058 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7059 I386_ST0_REGNUM): New defines.
7060 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7061 codestream_get): Remove define.
7062 (codestream_next_addr, condestream_addr, condestream_buf,
7063 codestream_off, codestream_cnt): Remove variables.
7064 (codestream_fill, codestream_seek, codestream_read): Remove
7065 functions.
7066 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7067 functionality.
7068 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7069 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7070 i386_frame_saved_pc, i386_saved_pc_after_call,
7071 i386_frame_num_args, i386_frame_init_saved_regs,
7072 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7073 i386_push_arguments): Remove functions.
7074 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7075 functionality. Use i386_analyze_prologue instead of
7076 i386_get_frame_setup.
7077 (I386_NUM_SAVED_REGS): New define.
7078 (struct i386_frame_cache): New structure.
7079 (i386_alloc_frame_cache, i386_analyze_struct_return,
7080 i386_skip_probe, i386_analyze_frame_setup,
7081 i386_analyze_register_saves, i386_analyze_prologue,
7082 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7083 i386_frame_prev_register, i386_sigtramp_frame_cache,
7084 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7085 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7086 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7087 New functions.
7088 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7089 New variables.
7090 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7091 I386_EAX_REGNUM and I386_EDX_REGNUM.
7092 (i386_extract_return_value, i386_store_return_value): Use
7093 I386_ST0_REGNUM where appropriate.
7094 (i386_extract_struct_value_address): Rewrite to use extract_address.
7095 (i386_svr4_pc_in_sigtramp): Add comment.
7096 (i386_svr4_sigcontext_addr): Rewrite.
7097 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7098 TDEP->sc_sp_offset.
7099 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7100 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7101 of new defines. Set push_dummy_call, don't set
7102 deprecated_push_arguments, deprecated_push_return_address,
7103 deprecated_pop_frame. Don't set parm_boundary. Don't set
7104 deprecated_frame_chain, deprecated_frame_saved_pc,
7105 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7106 save_dummy_frame_tos, unwind_pc. Call
7107 frame_unwind_append_predicate and frame_base_set_default. Don't
7108 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7109 Don't set frameless_function_invocation. Don't set
7110 deprecated_register_bytes, deprecated_register_size,
7111 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7112 * i386-linux-tdep.c: Fix formatting in some comments.
7113 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7114 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7115 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7116 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7117 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7118 redundant parentheses.
7119 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7120 (i386_linux_sigcontext_addr): Use it. Rewrite.
7121 (find_minsym_and_objfile): Change name of second argument.
7122 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7123 changed. Use frame_pc_unwind instead of
7124 DEPRECATED_SAVED_PC_AFTER_CALL.
7125 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7126 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7127 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7128 unwinder.
7129 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7130 "dummy-frame.h".
7131 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7132 (_initialize_i386_cygwin_tdep): New prototype.
7133 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7134 deprecated_frame_chain_valid.
7135 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7136 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7137 Rely on the SVR4 defaults.
7138 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7139 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7140
c89b70f1
AC
71412003-05-30 Andrew Cagney <cagney@redhat.com>
7142
7143 * infcall.c (call_function_by_hand): Always call
7144 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7145
85b32d22
RH
71462003-05-30 Richard Henderson <rth@redhat.com>
7147
c89b70f1
AC
7148 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7149 increment.
85b32d22 7150
bfe51b1e
JB
71512003-05-29 Jim Blandy <jimb@redhat.com>
7152
7153 Use gdbarch methods for solib stuff on PowerPC Linux.
7154 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7155 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7156 show through.
7157 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7158 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7159 giving the same effect as the #definitions above.
7160
1abf022c
AF
71612003-05-29 Adam Fedor <fedor@gnu.org>
7162
7163 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7164 (find_implementation_from_class): Replace it with the standard
7165 case i.e. do nothing.
7166
d2427a71
RH
71672003-05-29 Richard Henderson <rth@redhat.com>
7168
7169 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7170 (alpha_linux_sigtramp_offset): Use it. Make static.
7171 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7172 update for new frame model.
7173 * alpha-mdebug-tdep.c: New file.
7174 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7175 (alpha_osf1_init_abi): Install it.
7176 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7177 (linked_proc_desc_table): Remove.
7178 (alpha_frame_past_sigtramp_frame): Remove.
7179 (alpha_dynamic_sigtramp_offset): Remove.
7180 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7181 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7182 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7183 (push_sigtramp_desc): Remove.
7184 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7185 (alpha_cannot_store_register): Likewise.
7186 (alpha_sigcontext_addr): Remove.
7187 (alpha_find_saved_regs): Remove.
7188 (alpha_frame_init_saved_regs): Remove.
7189 (alpha_init_frame_pc_first): Remove.
7190 (read_next_frame_reg): Remove.
7191 (alpha_frame_saved_pc): Remove.
7192 (alpha_saved_pc_after_call): Remove.
7193 (temp_proc_desc, temp_saved_regs): Remove.
7194 (alpha_about_to_return): Remove.
7195 (cached_proc_desc): Remove.
7196 (alpha_frame_chain): Remove.
7197 (alpha_print_extra_frame_info): Remove.
7198 (alpha_init_extra_frame_info): Remove.
7199 (alpha_frame_locals_address): Remove.
7200 (alpha_frame_args_address): Remove.
7201 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7202 (alpha_push_dummy_frame): Remove.
7203 (alpha_pop_frame): Remove.
7204 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7205 (alpha_read_insn): New.
7206 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7207 for different insn encodings.
7208 (alpha_in_lenient_prologue): Remove.
7209 (struct alpha_sigtramp_unwind_cache): New.
7210 (alpha_sigtramp_frame_unwind_cache): New.
7211 (alpha_sigtramp_register_address): New.
7212 (alpha_sigtramp_frame_this_id): New.
7213 (alpha_sigtramp_frame_prev_register): New.
7214 (alpha_sigtramp_frame_unwind): New.
7215 (alpha_sigtramp_frame_p): New.
7216 (struct alpha_heuristic_unwind_cache): New.
7217 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7218 don't count nop insns that occur between functions.
7219 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7220 heuristic_proc_desc, but without the mdebug wrapping.
7221 (alpha_heuristic_frame_this_id): New.
7222 (alpha_heuristic_frame_prev_register): New.
7223 (alpha_heuristic_frame_unwind): New.
7224 (alpha_heuristic_frame_p): New.
7225 (alpha_heuristic_frame_base_address): New.
7226 (alpha_heuristic_frame_base): New.
7227 (alpha_unwind_dummy_id): New.
7228 (alpha_unwind_pc): New.
7229 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7230 frame related deprecated initializations; install replacements.
7231 (alpha_dump_tdep): Remove.
7232 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7233 (alpha_read_insn, alpha_after_prologue,
7234 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7235 alpha_heuristic_frame_prev_register,
7236 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7237 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7238 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7239 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7240
93ec1121
AC
72412003-05-29 Andrew Cagney <cagney@redhat.com>
7242
7243 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7244 dependant on the availability of ASSERT_FUNCTION.
7245 (ASSERT_FUNCTION): Do not define when there is no function name.
7246
98f08d3d
KB
72472003-05-29 Kevin Buettner <kevinb@redhat.com>
7248
7249 From Jimi X <jimix@watson.ibm.com>:
7250 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7251
0897f59b
JB
72522003-05-28 Jim Blandy <jimb@redhat.com>
7253
7254 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7255 argument to ptrace to int; the system headers should give it the
7256 right type, and pointers don't fit in ints on powerpc64-*-*.
7257
14898363
L
72582003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7259
7260 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7261 DW_TAG_catch_block.
7262
a7a48797
EZ
72632003-05-26 Elena Zannoni <ezannoni@redhat.com>
7264
7265 * stabsread.c (dbx_lookup_type): Make static.
7266 (read_type): Ditto.
7267 (add_undefined_type): Ditto.
7268 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7269 not export.
7270
f5479e9c
EZ
72712003-05-26 Elena Zannoni <ezannoni@redhat.com>
7272
7273 * hpread.c (hpread_has_name): Make static.
7274 (hpread_psymtab_to_symtab): Ditto.
7275 (file_exists): Ditto.
7276 (hpread_call_pxdb): Ditto.
7277 (hpread_pxdb_needed): Ditto.
7278 (hpread_quick_traverse): Ditto.
7279 (hpread_get_header): Ditto.
7280 (hpread_get_lntt): Ditto.
7281 (hpread_get_slt): Ditto.
7282 (class_of): Ditto.
7283
eb2e12d7
AS
72842003-05-25 Andreas Schwab <schwab@suse.de>
7285
78bf922a
AS
7286 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7287 stack_align and deprecated_extra_stack_alignment_needed.
7288 (m68k_stack_align): Delete.
7289
eb2e12d7
AS
7290 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7291 (m68k_register_virtual_size): Likewise.
7292 (altos_skip_prologue): Remove obsolete function.
7293 (isi_frame_num_args): Likewise.
7294 (news_frame_num_args): Likewise.
7295 (m68k_fix_call_dummy): Make static.
7296 (m68k_push_dummy_frame): Likewise.
7297 (m68k_pop_frame): Likewise.
7298 (m68k_skip_prologue): Likewise.
7299 (m68k_frame_init_saved_regs): Likewise.
7300 (m68k_saved_pc_after_call): Likewise.
7301 (m68k_get_longjmp_target): Make multi-arch.
7302 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7303 structure. Register m68k_get_longjmp_target if enabled.
7304 * m68k-tdep.h (struct gdbarch_tdep): Define.
7305 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7306
7307 * Makefile.in (config.status): Also depend on configure.tgt
7308 and configure.host.
7309 (m68klinux-tdep.o): Update dependencies.
7310 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7311 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7312 (M68K_LINUX_JB_PC): Define.
7313 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7314 and take additional parameter.
7315 (m68k_linux_sigtramp_saved_pc): Update.
7316 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7317 m68k_linux_pc_in_sigtramp, in_plt_section,
7318 find_solib_trampoline_target.
7319 * config/m68k/tm-linux.h: Don't include any tm headers.
7320 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7321 (JB_ELEMENT_SIZE): Likewise.
7322 (JB_PC): Likewise.
7323 (GET_LONGJMP_TARGET): Likewise.
7324 (IN_SIGTRAMP): Likewise.
7325 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7326
eb2c22dc
MK
73272003-05-25 Mark Kettenis <kettenis@gnu.org>
7328
7329 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7330 (sparc32_push_arguments): Re-implement by calling
7331 sparc32_do_push_arguments.
7332
44b7b84e
MK
73332003-05-25 Mark Kettenis <kettenis@gnu.org>
7334
7335 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7336 SPARC_O1_REGNUM): New defines.
7337 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7338 (sparc32_store_return_value): New function.
7339 (sparc_extract_struct_value_address): Rewrite to operate on a
7340 regcache.
7341 (sparc_gdbarch_init): Don't set
7342 deprecated_extract_struct_value_address. Set
7343 extract_struct_value_address instead. Don't set
7344 deprecated_extract_return_value and deprecated_store_return_value
7345 for 32-bit targets. Set extract_return_value and
7346 store_return_value instead.
7347 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7348 DEPRECTAED_EXTRACT_RETURN_VALUE,
7349 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7350 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7351 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7352 (sparc_store_return_value): Remove prototype.
7353 (sparc32_store_return_value): New prototype.
7354 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7355 Adjust prototypes.
7356
f6ad61e3
MK
73572003-05-24 Mark Kettenis <kettenis@gnu.org>
7358
7359 * sparcnbsd-tdep.c: Include "gdb_string.h".
7360
b276f1bb
AC
73612003-05-23 Andrew Cagney <cagney@redhat.com>
7362
7363 * p-valprint.c (pascal_val_print): Replace extract_address with
7364 the inline equivalent extract_unsigned_integer.
7365 * jv-valprint.c (java_value_print): Ditto.
7366 * ada-valprint.c (ada_val_print_1): Ditto.
7367 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7368
e76c5fcc
TR
73692003-05-23 Theodore A. Roth <troth@openavr.org>
7370
7371 * blockframe.c (frameless_look_for_prologue): Remove unused
7372 after_prologue variable.
7373
2cdd89cb
MK
73742003-05-23 Mark Kettenis <kettenis@gnu.org>
7375
7376 * blockframe.c (get_pc_function_start): Rewrite to avoid
7377 asignments in if-statements.
7378
182d43bc
EZ
73792003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7380
7381 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7382 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7383 files, don't relocate absolute symbols (and do use mst_abs).
7384
e8f3fcdd
AC
73852003-05-23 Andrew Cagney <cagney@redhat.com>
7386
7387 * objc-lang.c: Include "gdb_assert.h".
7388 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7389 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7390 (gdb_check, gdb_check_fatal): Delete functions.
7391 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7392 gdb_assert.
7393 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7394 * Makefile.in (objc-lang.o): Update dependencies.
7395
3c23e6fb
ILT
73962003-05-22 Ian Lance Taylor <ian@airs.com>
7397
7398 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7399 with fprintf_filtered, not fprintf_unfiltered.
7400
af1342ab
AC
74012003-05-22 Andrew Cagney <cagney@redhat.com>
7402
7403 * stack.c (frame_info): Inline extract_address, replacing it with
7404 extract_unsigned_integer.
7405 * findvar.c (unsigned_pointer_to_address): Ditto.
7406 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7407 * dwarf2expr.c (dwarf2_read_address): Ditto.
7408 * frame.c (frame_pc_unwind): Update comment.
7409 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7410
47e242ec
JJ
74112003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7412
7413 * infptrace.c (detach): Call print_sys_errmsg rather than
7414 perror_with_name to issue warning message when errno is non-zero
7415 after calling ptrace detach.
7416
e2ac8128
JB
74172003-05-21 J. Brobecker <brobecker@gnat.com>
7418
7419 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7420 macro definitions from here...
7421 * hppa-tdep.c: ...to there.
7422
92b3541e
KB
74232003-05-20 Kevin Buettner <kevinb@redhat.com>
7424
7425 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7426 register_ptrace_addr(). Fix all callers.
7427
55809acb
AS
74282003-05-21 Andreas Schwab <schwab@suse.de>
7429
7430 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7431 dependencies.
7432 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7433 end.
7434 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7435 (_initialize_m68k_linux_tdep): New function.
7436 (m68k_linux_frame_saved_pc): Make static.
7437 (m68k_linux_extract_return_value): Likewise.
7438 (m68k_linux_store_return_value): Likewise.
7439 (m68k_linux_extract_struct_value_address): Likewise.
7440 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7441 Remove.
7442 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7443 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7444 (DEPRECATED_FRAME_SAVED_PC): Remove.
7445
0fbc10f7
KW
74462003-05-20 Kris Warkentin <kewarken@qnx.com>
7447
7448 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7449 regset numbering rather than our own.
7450
58da2eb2
DC
74512003-05-19 David Carlton <carlton@bactrian.org>
7452
7453 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7454
1fcb5155
DC
74552003-05-19 David Carlton <carlton@bactrian.org>
7456
7457 Partial fix for PR c++/827.
7458 * cp-support.h: Include symtab.h.
7459 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7460 * cp-namespace.c: Update contributors.
7461 (cp_lookup_symbol_nonlocal): New.
7462 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7463 (lookup_symbol_file): Ditto.
7464 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7465 * block.h: Declare block_scope, block_using, block_global_block.
7466 * block.c (block_scope): New.
7467 (block_using, block_global_block): Ditto.
7468 * Makefile.in (cp_support_h): Depend on symtab_h.
7469 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7470
5f9a71c3
DC
74712003-05-19 David Carlton <carlton@bactrian.org>
7472
7473 * language.h (struct language_defn): Add 'la_value_of_this'
7474 and 'la_lookup_symbol_nonlocal' members.
7475 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7476 lookup_symbol_static, lookup_symbol_global,
7477 lookup_symbol_aux_block.
7478 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7479 if we should search fields of this and how to do static/global
7480 lookup.
7481 (lookup_symbol_aux_block): Make extern.
7482 (basic_lookup_symbol_nonlocal): New.
7483 (lookup_symbol_static, lookup_symbol_global): Ditto.
7484 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7485 'la_lookup_symbol_nonlocal' members.
7486 * c-lang.c (c_language_defn, cplus_language_defn)
7487 (asm_language_defn, minimal_language_defn): Ditto.
7488 * jv-lang.c (java_language_defn): Ditto.
7489 * language.c (unknown_language_defn, auto_language_defn)
7490 (local_language_defn): Ditto.
7491 * m2-lang.c (m2_language_defn): Ditto.
7492 * objc-lang.c (objc_language_defn): Ditto.
7493 * scm-lang.c (scm_language_defn): Ditto.
7494 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7495 * p-lang.c (pascal_language_defn): Ditto for both.
7496 * Makefile.in (f-lang.o): Depend on value_h.
7497 (p-lang.o): Ditto.
7498
89a9d1b1
DC
74992003-05-19 David Carlton <carlton@bactrian.org>
7500
7501 * block.h: Declare block_static_block.
7502 * block.c (block_static_block): New.
7503 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7504 lookup_symbol_aux_local, calling block_static_block instead.
7505 (lookup_symbol_aux_local): Delete 'static_block' argument.
7506
eed3f8ab
DC
75072003-05-19 David Carlton <carlton@bactrian.org>
7508
7509 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7510
a09d8bda
ML
75112003-05-19 Michal Ludvig <mludvig@suse.cz>
7512
7513 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7514 register numbers mapping.
7515
69636828
AF
75162003-05-18 Adam Fedor <fedor@gnu.org>
7517
7518 * symtab.c (completion_list_objc_symbol): New function.
7519 (make_symbol_completion_list): Use it to add ObjC symbols
7520 when looking though the list.
7521 (language_search_unquoted_string): New function.
7522 (make_file_symbol_completion_list): Use it.
7523
55baeb84
AS
75242003-05-18 Andreas Schwab <schwab@suse.de>
7525
d0b45d99
AS
7526 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7527 dependencies.
7528 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7529 as m68k_linux_extract_return_value.
7530 (DEPRECATED_STORE_RETURN_VALUE): Define as
7531 m68k_linux_store_return_value.
7532 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7533 m68k_linux_extract_struct_value_address.
7534 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7535 get_next_frame, get_frame_base, get_frame_pc.
7536 (m68k_linux_frame_saved_pc): Use get_frame_base.
7537 (m68k_linux_extract_return_value): New function.
7538 (m68k_linux_store_return_value): New function.
7539 (m68k_linux_extract_struct_value_address): New function.
7540 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7541
55baeb84
AS
7542 * c-exp.y (typebase): Remove duplicate occurence of
7543 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7544 of lookup_signed_typename.
55baeb84 7545
b6b08ebf
MK
75462003-05-18 Mark Kettenis <kettenis@gnu.org>
7547
7548 * dwarf2loc.c (find_location_expression): Change type of second
7549 argument to `size_t *'.
7550 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7551 for size variable.
7552
5ad1c190
DC
75532003-05-18 David Carlton <carlton@bactrian.org>
7554
7555 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7556 'linkage_name'. Add comment.
7557 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7558 'linkage_name'.
7559 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7560 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7561 (lookup_block_symbol): Ditto.
7562
b8b527c5
AC
75632003-05-16 Andrew Cagney <cagney@redhat.com>
7564
7565 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7566 * gdbarch.h, gdbarch.c: Re-generate.
7567 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7568 * TODO (REGISTER_BYTES): Delete reference.
7569 * alpha-tdep.c (alpha_gdbarch_init): Update.
7570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7571 * x86-64-tdep.c (x86_64_init_abi): Update.
7572 * vax-tdep.c (vax_gdbarch_init): Update.
7573 * v850-tdep.c (v850_gdbarch_init): Update.
7574 * sparc-tdep.c (sparc_gdbarch_init): Update.
7575 * sh-tdep.c (sh_gdbarch_init): Update.
7576 * s390-tdep.c (s390_gdbarch_init): Update.
7577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7578 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7579 (ns32k_gdbarch_init_32382): Update.
7580 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7581 * mcore-tdep.c (mcore_gdbarch_init): Update.
7582 * m68k-tdep.c (m68k_gdbarch_init): Update.
7583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7584 * ia64-tdep.c (ia64_gdbarch_init): Update.
7585 * i386-tdep.c (i386_gdbarch_init): Update.
7586 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7587 * hppa-tdep.c (hppa_gdbarch_init): Update.
7588 * h8300-tdep.c (h8300_gdbarch_init): Update.
7589 * frv-tdep.c (frv_gdbarch_init): Update.
7590 * cris-tdep.c (cris_gdbarch_init): Update.
7591 * avr-tdep.c (avr_gdbarch_init): Update.
7592 * arm-tdep.c (arm_gdbarch_init): Update.
7593 * sparc-tdep.c (sparc_pop_frame): Update.
7594 * rs6000-tdep.c (rs6000_pop_frame): Update.
7595 * remote.c (init_remote_state): Update.
7596 (remote_prepare_to_store): Update.
7597 * remote-vx.c (vx_prepare_to_store): Update.
7598 * remote-sds.c (sds_fetch_registers): Update.
7599 (sds_prepare_to_store): Update.
7600 * remote-array.c: Update.
7601 * regcache.c (init_legacy_regcache_descr): Update.
7602 (init_regcache_descr): Update.
7603 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7604 (mips_o64_extract_return_value): Update.
7605 * irix5-nat.c (fetch_core_registers): Update.
7606 * irix4-nat.c (fetch_core_registers): Update.
7607 * i386-tdep.h: Update.
7608 * hppa-tdep.c (pa_do_registers_info): Update.
7609 (pa_do_strcat_registers_info): Update.
7610 * cris-tdep.c (cris_register_bytes_ok): Update.
7611 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7612 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7613 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7614 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7615 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7616 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7617 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7618 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7619 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7620 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7621 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7622 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7623 (REGISTER_BYTES_OK): Update.
7624 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7625 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7626
ee2842e2
ILT
76272003-05-16 Ian Lance Taylor <ian@airs.com>
7628
7629 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7630 (vax_print_insn, print_insn_arg): Remove static functions.
7631 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7632 print_insn_vax from opcodes library.
7633 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7634
973177d3
AC
76352003-05-15 Andrew Cagney <cagney@redhat.com>
7636
aaab4dba
AC
7637 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7638 * target.h (memory_breakpoint_from_pc): Delete declaration.
7639 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7640 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7641 * monitor.c (monitor_insert_breakpoint): Use
7642 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7643 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7644 * gdbarch.h, gdbarch.c: Re-generate.
7645 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7646 (sparc_gdbarch_init): Set breakpoint_from_pc to
7647 sparc_breakpoint_from_pc.
7648 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7649 (BREAKPOINT_FROM_PC): Define.
7650 (sparc_breakpoint_from_pc): Declare.
7651 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7652 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7653 (BREAKPOINT_FROM_PC): Define.
7654 (BREAKPOINT): Delete macro.
7655 * target.h: Update comment.
7656 * s390-tdep.c (s390_gdbarch_init): Update comments.
7657 * remote.c: Update comments.
7658 * remote-mips.c: Update comments.
7659 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7660 * mem-break.c: Update comment.
7661 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7662 (ia64_memory_insert_breakpoint): Update.
7663 * config/sparc/tm-sparc.h: Update comment.
7664 * config/pa/tm-hppa64.h: Update comment.
7665 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7666 (rs6000_breakpoint_from_pc): Update.
7667 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7668 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7669 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7670 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7671 (mips_breakpoint_from_pc): Update.
7672 (mips_dump_tdep): Update.
7673
e06963ff
AC
7674 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7675 * minsyms.c (lookup_minimal_symbol): Inline
7676 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7677
973177d3
AC
7678 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7679 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7680 * p-lang.c (pascal_printstr): Ditto.
7681 * objc-lang.c (objc_printstr): Ditto.
7682 * m2-lang.c (m2_printstr): Ditto.
7683 * jv-valprint.c (java_print_value_fields): Ditto.
7684 * f-lang.c (f_printstr): Ditto.
7685 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7686 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7687 for repeat_count_threshold.
7688 * Makefile.in (cp-valprint.o): Update dependencies.
7689
5ea2bd7f 76902003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7691
5ea2bd7f
JJ
7692 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7693 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7694 they start with mov r2,r12. Support skipping over indirect stores
7695 of the input registers. Upon hitting a non-nop branch instruction
7696 or predicated instruction, bail out by setting lim_pc to the current
7697 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7698 beyond our calculated value and we have trust_limit set,
7699 use the lim_pc value.
7700
cc8c88f3
AC
77012003-05-15 Andrew Cagney <cagney@redhat.com>
7702
7703 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7704 generic_find_dummy_frame.
7705 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7706 (deprecated_generic_find_dummy_frame): Update.
7707 (deprecated_read_register_dummy): Update.
7708 * frame.c (deprecated_generic_get_saved_register): Update.
7709
909cd28e
TR
77102003-05-15 Theodore A. Roth <troth@openavr.org>
7711
7712 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7713 (avr_gdbarch_init): Set breakpoint_from_pc method.
7714
b923b08d
AC
77152003-05-15 Andrew Cagney <cagney@redhat.com>
7716
7717 * regcache.c (build_regcache): Set deprecated_register_valid
7718 directly.
7719 (deprecated_grub_regcache_for_register_valid): Delete function.
7720 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7721 declaration.
7722
ae2f03ac 77232003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7724
7725 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7726 * symtab.c (lookup_symbol_aux): Delete calls to
7727 lookup_symbol_aux_minsyms.
7728 (lookup_symbol_aux_minsyms): Comment out function and
7729 prototype. Delete lookup by mangled name.
ae2f03ac 7730
18ec9831
KB
77312003-05-14 Kevin Buettner <kevinb@redhat.com>
7732
7733 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7734 correctly indicate an empty stack and ``stack_allocated'' to the
7735 indicate the number of elements initially allocated.
7736 (dwarf_expr_grow_stack): Simplify method for computing new
7737 stack size. Don't loop infinitely if ``stack_len'' is zero.
7738 (execute_stack_op): Move ``ctx->in_reg'' initialization
7739 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7740 be used in conjuction with DW_OP_piece. Revise error message
7741 accordingly.
7742
de18ac1f
TR
77432003-05-14 Theodore A. Roth <troth@openavr.org>
7744
7745 * MAINTAINERS: Update my email address.
7746 * avr-tdep.c: Ditto.
7747
176620f1
EZ
77482003-05-14 Elena Zannoni <ezannoni@redhat.com>
7749
7750 * symtab.h (enum domain_enum): Rename from namespace_enum.
7751 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7752 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7753 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7754 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7755 TYPES_NAMESPACE, METHODS_NAMESPACE.
7756 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7757 (struct symbol, struct partial_symbol): Rename field
7758 'namespace_enum namespace' to 'domain_enum domain'.
7759 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7760 Delete old define kludge for namespace.
7761
7762 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7763 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7764 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7765 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7766 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7767 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7768 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7769 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7770 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7771 occurrences of the above.
7772
b7f31508
ILT
77732003-05-14 Ian Lance Taylor <ian@airs.com>
7774
7775 * Makefile.in (install-only): Use $(SHELL) when running
7776 mkinstalldirs.
7777
2fdbdd39
ILT
77782003-05-13 Ian Lance Taylor <ian@airs.com>
7779
a208d82c
ILT
7780 * MAINTAINERS (write after approval): Add myself.
7781
2fdbdd39
ILT
7782 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7783 second and third arguments.
7784 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7785 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7786
fbd9dcd3
AC
77872003-05-13 Andrew Cagney <cagney@redhat.com>
7788
7789 * defs.h (store_address): Delete declaration.
7790 findvar.c (store_address): Delete function.
7791 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7792 store_unsigned_integer.
7793 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7794 * v850-tdep.c (v850_push_arguments): Ditto.
7795 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7796 * sh-tdep.c (sh64_get_saved_register): Ditto.
7797 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7798 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7799 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7800 (mips_get_saved_register): Ditto.
7801 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7802 (find_func_descr, ia64_push_arguments): Ditto.
7803 * i386-tdep.c (i386_push_arguments): Ditto.
7804 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7805 * frv-tdep.c (frv_push_arguments): Ditto.
7806 * frame.c (legacy_saved_regs_prev_register): Ditto.
7807 (deprecated_generic_get_saved_register): Ditto.
7808 * findvar.c (unsigned_address_to_pointer): Ditto.
7809 * dwarf2read.c (dwarf2_const_value): Ditto.
7810 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7811 * alpha-tdep.c (alpha_push_arguments): Ditto.
7812
6760f9e6
JB
78132003-05-12 J. Brobecker <brobecker@gnat.com>
7814
7815 * NEWS: Mention that the hppa-hpux port has been partially
7816 multiarched (32bit ABIT only, so far).
7817
30e221b4
AC
78182003-05-11 Andrew Cagney <cagney@redhat.com>
7819
7820 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7821 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7822 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7823 sim/testsuite/sim/arm/misaligned2.ms, and
7824 sim/testsuite/sim/arm/misaligned3.ms.
7825 * disasm.h (struct ui_file): Add opaque struct declaration.
7826 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7827 * frame.h (struct ui_file): Ditto.
7828
dea7f9ba
MK
78292003-05-11 Mark Kettenis <kettenis@gnu.org>
7830
7831 * value.h: Pretty print.
7832
01986c48
MK
78332003-05-10 Mark Kettenis <kettenis@gnu.org>
7834
7835 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7836
123a958e
AC
78372003-05-08 Andrew Cagney <cagney@redhat.com>
7838
7839 * regcache.h (max_register_size): Delete declaration.
7840 * regcache.c (max_register_size): Delete function.
7841 (struct regcache_descr): Delete field "max_register_size".
7842 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7843 registers fit in MAX_REGISTER_SIZE.
7844 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7845 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7846 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7847 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7848 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7849 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7850 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7851 * dve3900-rom.c, hppa-tdep.c: Ditto.
7852
eb294659
DC
78532003-05-08 David Carlton <carlton@math.stanford.edu>
7854
7855 * valops.c (push_word): Fix typo.
7856
d9d9c31f
AC
78572003-05-08 Andrew Cagney <cagney@redhat.com>
7858
7859 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7860 * gdbarch.h: Re-generate.
7861 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7862 (legacy_max_register_raw_size): Delete declaration.
7863 * regcache.c (legacy_max_register_raw_size): Delete function.
7864 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7865 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7866 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7867 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7868 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7869 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7870 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7871 * findvar.c, dwarf2cfi.c: Ditto.
7872
22540ece
AC
78732003-05-08 Andrew Cagney <cagney@redhat.com>
7874
7875 * mips-tdep.c (read_signed_register): New function, moved to here
7876 from "regcache.c".
7877 (read_signed_register_pid): Ditto.
7878 * regcache.c (read_signed_register_pid): Delete function, moved to
7879 "mips-tdep.c".
7880 (read_signed_register): Ditto.
7881 * regcache.h (read_signed_register): Delete declaration.
7882 (read_signed_register_pid): Delete declaration.
7883
0c92afe8
AC
78842003-05-08 Andrew Cagney <cagney@redhat.com>
7885
7886 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7887 * gdbarch.h: Re-generate.
7888 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7889 (legacy_max_register_virtual_size): Delete declaration.
7890 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7891 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7892 * tracepoint.c (memrange_sortmerge): Ditto.
7893 * sparc-tdep.c (sparc_print_registers): Ditto.
7894 * regcache.c (legacy_max_register_virtual_size): Delete function.
7895
6037b830
JB
78962002-05-08 J. Brobecker <brobecker@gnat.com>
7897
7898 * fork-child.c (escape_bang_in_quoted_argument): New function.
7899 (fork_inferior): Escape '!' characters in quoted arguments
7900 only when needed.
7901
5d62c8b1
JB
79022003-05-08 J. Brobecker <brobecker@gnat.com>
7903
7904 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7905 the language of the CU is not currently supported by GDB.
7906
20a0e81d
JB
79072003-05-08 J. Brobecker <brobecker@gnat.com>
7908
7909 * defs.h (language): Add language_minimal enum value.
7910 * c-lang.c (minimal_language_defn): New language definition.
7911 (_initialize_c_language): Add the new minimal language to the list
7912 of languages known to GDB.
7913
710ee10a
KB
79142003-05-08 Kevin Buettner <kevinb@redhat.com>
7915
7916 * frame.c (get_frame_type): Don't attempt to lazily initialize
7917 frame's unwinder for legacy frames.
7918
1750fa04
AC
79192003-05-07 Andrew Cagney <cagney@redhat.com>
7920
7921 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7922 and "regcache" parameters.
7923 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7924
ddf9f258 79252003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7926
7927 * dwarf2read.c (dwarf_decode_lines): Only use output of
7928 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7929 the current address.
7930
87767c29
AC
79312003-05-07 Andrew Cagney <cagney@redhat.com>
7932
7933 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7934 code.
7935
5e7b2f39
JB
79362003-05-07 Jim Blandy <jimb@redhat.com>
7937
7938 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7939 'maint info symtabs' and 'maint info psymtabs'.
7940 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7941 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7942 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7943 Declarations updated.
7944 * maint.c (maintenance_list_command): Delete.
7945 (_initialize_maint_cmds): Update calls to add_cmd.
7946 * gdbcmd.h (maintenancelistlist): Delete declaration.
7947 * cli/cli-cmds.c (maintenancelistlist): Delete.
7948 (init_cmd_lists): Don't initialize it.
7949 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7950
f6684c31
AC
79512003-05-07 Andrew Cagney <cagney@redhat.com>
7952
7953 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7954 "regcache".
7955 (d10v_print_registers_info): Update.
7956 (d10v_dmap_register, d10v_imap_register): Delete functions.
7957 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7958 and "imap_register".
7959 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7960 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7961 * arch-utils.c (generic_remote_translate_xfer_address): Add
7962 "regcache" and "gdbarch" parameters.
7963 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7964 parameter. Change class to multi-arch.
7965 * gdbarch.h, gdbarch.c: Re-generate.
7966 * remote.c (remote_xfer_memory): Use
7967 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7968
e4846b08
JJ
79692003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7970
7971 * infrun.c (prev_pc): Move declaration ahead of proceed().
7972 (proceed): Refresh prev_pc value before resuming.
7973 (stop_stepping): Remove code to refresh prev_pc.
7974
6b71b8ac
KW
79752003-05-06 Kris Warkentin <kewarken@qnx.com>
7976
7977 * nto-tdep.c: Removed stray comment.
7978
47979a4b
KW
79792003-05-06 Kris Warkentin <kewarken@qnx.com>
7980
7981 * i386-nto-tdep.c: Fix old K&R function definitions.
7982 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7983 Also change add_show_from_set() call to add_setshow_cmd().
7984 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7985
00905d52
AC
79862003-05-05 Andrew Cagney <cagney@redhat.com>
7987
7988 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7989 (fprint_dummy_frames): New function.
7990 (maintenance_print_dummy_frames): New function.
7991 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7992 * frame.c (fprint_frame_id): Make global.
7993 * frame.h (fprint_frame_id): Declare.
7994 * Makefile.in (dummy-frame.o): Update dependencies.
7995
b1e29e33
AC
79962003-05-05 Andrew Cagney <cagney@redhat.com>
7997
7998 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7999 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8000 SIZEOF_CALL_DUMMY_WORDS.
8001 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8002 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8003 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8004 CALL_DUMMY_BREAKPOINT_OFFSET.
8005 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8006 CALL_DUMMY_START_OFFSET.
8007 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8008 * gdbarch.h, gdbarch.c: Re-generate.
8009 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8010 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8011 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8012 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8013 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8014 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8015 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8016 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8017 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8018 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8019 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8020 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8021 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8022 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8023 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8024
80252003-05-05 Kris Warkentin <kewarken@qnx.com>
8026
8027 * configure.tgt: Add i[3456]86-*-nto*.
8028 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8029 * nto-tdep.c: New file. Neutrino target support routines.
8030 * nto-tdep.h: New file. Neutrino target header.
8031 * config/tm-qnxnto.h: New file.
8032 * config/i386/i386nto.mt: New file.
8033 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8034
0ce3d317
AC
80352003-05-04 Andrew Cagney <cagney@redhat.com>
8036
8037 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8038 (load_infrun_state): Ditto.
8039 (struct thread_info): Drop "prev_func_name" field.
8040 * thread.c (load_infrun_state): Update.
8041 (save_infrun_state): Update.
8042 * infrun.c (prev_func_name): Delete variable.
8043 (init_wait_for_inferior): Do not clear prev_func_name.
8044 (stop_stepping, keep_going, context_switch): Do not swap
8045 prev_func_name.
8046 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8047 instead of PC_IN_SIGTRAMP.
8048
46654a5b
AC
80492003-05-04 Andrew Cagney <cagney@redhat.com>
8050
8051 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8052 REGISTER_BYTE with register_offset_hack.
8053 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8054 that REGISTER_BYTE is consistent with the regcache.
8055 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8056 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8057
14b08c1b
MK
80582003-05-04 Mark Kettenis <kettenis@gnu.org>
8059
04c8243f
MK
8060 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8061 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8062
14b08c1b
MK
8063 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8064
c7a11e01
JB
80652003-05-03 J. Brobecker <brobecker@gnat.com>
8066
8067 From Thierry Schneider <tpschneider1@yahoo.com>
8068 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8069 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8070 (mi-cmd-symbol.o): Add rule.
8071
7043d8dc
AC
80722003-05-03 Andrew Cagney <cagney@redhat.com>
8073
8074 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8075 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8076 * gdbarch.h, gdbarch.c: Re-generate.
8077 * d10v-tdep.c (d10v_push_dummy_code): New function.
8078 (d10v_gdbarch_init): Set push_dummy_code.
8079 * infcall.c (legacy_push_dummy_code): New function.
8080 (generic_push_dummy_code): New function.
8081 (push_dummy_code): New function.
8082 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8083 instead of dummy_addr, to push_dummy_call. Move call to
8084 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8085 switch.
8086 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8087
92bf2b80
AC
80882003-05-03 Andrew Cagney <cagney@redhat.com>
8089
8090 * disasm.h (print_insn): Declare.
8091 * disasm.c (init_gdb_disassemble_info): New function.
8092 (gdb_disassembly): Call init_gdb_disassemble_info.
8093 (gdb_print_insn): New function.
8094 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8095 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8096 * mcore-tdep.c: Include "disasm.h"
8097 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8098 * d10v-tdep.c: Include "disasm.h".
8099 (display_trace): Call gdb_print_insn, instead of print_insn.
8100 (print_insn): Delete function.
8101 * printcmd.c: Include "disasm.h".
8102 (print_insn): Delete function.
8103 (print_formatted): Call gdb_print_insn, instead of print_insn.
8104 * Makefile.in (printcmd.o): Update dependencies.
8105 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8106
27d94c49
AC
81072003-05-02 Andrew Cagney <cagney@redhat.com>
8108
82de1e5b
AC
8109 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8110 PC_REGNUM, re-indent.
8111 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8112 PC_REGNUM isn't set.
8113
27d94c49
AC
8114 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8115 * gdbarch.h, gdbarch.c: Re-generate.
8116 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8117 register_virtual_size, pc_regnum, or register_bytes.
8118 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8119 (d10v_register_type): Use D10V_PC_REGNUM.
8120 (d10v_print_registers_info, d10v_read_pc): Ditto.
8121 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8122 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8123
a9c0dc7f
DC
81242003-05-02 David Carlton <carlton@bactrian.org>
8125
8126 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8127 the name with mstrsave.
8128
e33d66ec
EZ
81292003-05-02 Elena Zannoni <ezannoni@redhat.com>
8130
8131 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8132 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8133 (host_charset_name, target_charset_name): New vars for use by
8134 set/show commands.
8135 (host_charset_enum, target_charset_enum): New enums for set/show
8136 commands.
8137 (set_charset_sfunc, set_host_charset_sfunc,
8138 set_target_charset_sfunc): New functions.
8139 (set_host_charset, set_target_charset): Make static.
8140 (list_charsets, set_host_charset_command,
8141 set_target_charset_command): Delete functions.
8142 (show_charset_command): Rewrite as....
8143 (show_charset): Hook this up with the set/show command mechanism.
8144 (_initialize_charset): Change names of charsets to match the
8145 set/show enums. Use host_charset_name and target_charset_name.
8146 Use set/show mechanism for charset, host-charset, target-charset
8147 commands. Do not make 'show host-charset' and 'show
8148 target-charset' be aliases of 'show charset'.
8149
8150 * charset.h (set_host_charset, set_target_charset): Don't export,
8151 they are not used outside the file.
8152
2b6fd0d8
AC
81532003-05-01 Andrew Cagney <cagney@redhat.com>
8154
8155 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8156 (gdb_disassembly): Make "di" non static, always initialize and
8157 cleanup. Always use dis_asm_read_memory.
8158 (gdb_dis_asm_read_memory): Delete function.
8159
6ae2f580
AC
81602003-05-01 Andrew Cagney <cagney@redhat.com>
8161
8162 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8163 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8164
810ecf9f
AC
81652003-04-30 Andrew Cagney <cagney@redhat.com>
8166
8167 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8168 "tm_print_insn_info".
8169 (TARGET_PRINT_INSN_INFO): Delete macro.
8170 (dis_asm_read_memory): Delete function declaration.
8171 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8172 (tm_print_insn_info): Delete variable definition.
8173 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8174 * gdbarch.h, gdbarch.c: Re-generate.
8175 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8176 "deprecated_tm_print_insn_info".
8177 * mcore-tdep.c (mcore_dump_insn): Ditto.
8178 * mips-tdep.c (mips_gdbarch_init): Ditto.
8179 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8180 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8181 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8182 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8183 instead of TARGET_PRINT_INSN_INFO, add comment.
8184 * s390-tdep.c (s390_get_frame_info): Instead of
8185 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8186 (s390_check_function_end, s390_is_sigreturn): Ditto.
8187 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8188 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8189 * disasm.c: Include "gdbcore.h".
8190 (_initialize_disasm): New function, initialize
8191 "deprecated_tm_print_insn_info".
8192 (deprecated_tm_print_insn_info): New variable.
8193 (dis_asm_read_memory): Moved from "corefile.c", made static.
8194 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8195 * Makefile.in (disasm.o): Update dependencies.
8196
07020390
AC
81972003-04-30 Andrew Cagney <cagney@redhat.com>
8198
8199 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8200
a9fa03de
AF
82012003-04-29 Adam Fedor <fedor@gnu.org>
8202
8203 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8204 * infcall.c (find_function_addr): Make non-static.
8205 * infcall.h (find_function_addr): Declare.
8206 * Makefile.in (eval.o): Update dependencies.
8207
1bae87b9
AF
82082003-04-28 Adam Fedor <fedor@gnu.org>
8209
8210 * symtab.c (symbol_find_demangled_name): Check for and demangle
8211 ObjC symbols.
8212 (symbol_init_demangled_name): Init for language_objc as well.
8213
0ba6dca9
AC
82142003-04-28 Andrew Cagney <cagney@redhat.com>
8215
8216 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8217 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8218 * gdbarch.h, gdbarch.c: Re-generate.
8219 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8220 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8221 * inferior.h (deprecated_read_fp): Rename read_fp.
8222 (generic_target_read_fp): Delete declaration.
8223 * regcache.c (generic_target_read_fp): Delete function.
8224 (deprecated_read_fp): Replace read_fp, use
8225 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8226 * d10v-tdep.c (d10v_read_fp): Delete function.
8227 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8228
8229 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8230 deprecated_target_read_fp to generic_target_read_fp.
8231 * sh-tdep.c (sh_gdbarch_init): Ditto.
8232 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8234 * frv-tdep.c (frv_gdbarch_init): Ditto.
8235
8236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8237 deprecated_fp_regnum.
8238 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8239 * vax-tdep.c (vax_gdbarch_init): Ditto.
8240 * v850-tdep.c (v850_gdbarch_init): Ditto.
8241 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8242 * sh-tdep.c (sh_gdbarch_init): Ditto.
8243 * s390-tdep.c (s390_gdbarch_init): Ditto.
8244 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8245 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8246 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8247 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8249 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8250 * i386-tdep.c (i386_gdbarch_init): Ditto.
8251 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8252 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8253 * frv-tdep.c (frv_gdbarch_init): Ditto.
8254 * cris-tdep.c (cris_gdbarch_init): Ditto.
8255 * avr-tdep.c (avr_gdbarch_init): Ditto.
8256 * arm-tdep.c (arm_gdbarch_init): Ditto.
8257 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8258
8259 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8260 * v850-tdep.c (v850_gdbarch_init): Ditto.
8261 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8262 * sh-tdep.c (sh_gdbarch_init): Ditto.
8263 * s390-tdep.c (s390_gdbarch_init): Ditto.
8264 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8265 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8266 * mips-tdep.c (mips_gdbarch_init): Ditto.
8267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8268 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8269 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8270 * frv-tdep.c (frv_gdbarch_init): Ditto.
8271 * avr-tdep.c (avr_gdbarch_init): Ditto.
8272 * arm-tdep.c (arm_gdbarch_init): Ditto.
8273
8274 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8275 DEPRECATED_FP_REGNUM.
8276 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8277 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8278 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8279 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8280 (sparc32_register_virtual_type): Ditto.
8281 * sh-tdep.c (sh64_frame_chain): Ditto.
8282 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8283 (sh_nofp_frame_init_saved_regs): Ditto.
8284 (sh64_nofp_frame_init_saved_regs): Ditto.
8285 (sh_fp_frame_init_saved_regs): Ditto.
8286 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8287 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8288 * procfs.c (procfs_fetch_registers): Ditto.
8289 (procfs_store_registers): Ditto.
8290 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8291 (store_inferior_registers, fetch_core_registers): Ditto.
8292 (fetch_kcore_registers, clear_regs): Ditto.
8293 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8294 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8295 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8296 * nlm/i386.c (do_status): Ditto.
8297 * mipsv4-nat.c (supply_gregset): Ditto.
8298 * mips-tdep.c: Ditto for comments.
8299 * mips-nat.c (fetch_inferior_registers): Ditto.
8300 (store_inferior_registers, fetch_core_registers): Ditto.
8301 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8302 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8303 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8304 (i386_do_pop_frame, i386_register_type): Ditto.
8305 * hppa-tdep.c (hppa_frame_chain): Ditto.
8306 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8307 (hppa_pop_frame, hppa_read_fp): Ditto.
8308 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8309 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8310 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8311 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8312 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8313 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8314 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8315 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8316 * blockframe.c: Ditto for comments.
8317 * arch-utils.h: Ditto for comments.
8318 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8319 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8320 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8321 * alpha-tdep.h: Ditto for comments.
8322 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8323 (alpha_cannot_store_register): Ditto.
8324 (alpha_push_dummy_frame): Ditto.
8325 * alpha-nat.c (supply_gregset): Ditto.
8326
8327 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8328 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8329 * config/sparc/tm-sparc.h: Update comment.
8330
8331 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8332 deprecated_read_fp instead of TARGET_READ_FP.
8333 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8334 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8335 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8336 deprecated_read_fp instead of read_fp.
8337 * s390-tdep.c (s390_push_arguments): Ditto.
8338 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8339 * frame.h: Ditto in comments.
8340 * frame.c (legacy_get_prev_frame): Ditto.
8341 * dummy-frame.c (dummy_frame_this_id): Ditto.
8342 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8343
d7a27068
AC
83442003-04-28 Andrew Cagney <cagney@redhat.com>
8345
8346 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8347 * gdbarch.h, gdbarch.c: Re-generate.
8348 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8349 * vax-tdep.c (_initialize_vax_tdep): Update.
8350 * v850-tdep.c (_initialize_v850_tdep): Update.
8351 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8352 * s390-tdep.c (_initialize_s390_tdep): Update.
8353 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8354 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8355 * mips-tdep.c (_initialize_mips_tdep): Update.
8356 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8357 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8358 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8359 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8360 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8361 * frv-tdep.c (_initialize_frv_tdep): Update.
8362 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8363 (_initialize_cris_tdep): Update.
8364 * arch-utils.c (legacy_print_insn): Update.
8365 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8366
d2630e69
AF
83672003-04-26 Adam Fedor <fedor@gnu.org>
8368
8369 * linespec.c (decode_objc): New function to decode ObjC calls
8370 (decode_line_1): Check for ObjC calls (using decode_objc)
8371 * Makefile (linespec.o): Update dependencies.
8372
3086aeae
DJ
83732003-04-26 Daniel Jacobowitz <drow@mvista.com>
8374
8375 * breakpoint.h (struct breakpoint_ops): New.
8376 (struct breakpoint): Add ops member.
8377
8378 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8379 (mention): Use new breakpoint ops member.
8380 (set_raw_breakpoint): Initialize ops field to NULL.
8381 (print_exception_catchpoint, print_one_exception_catchpoint)
8382 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8383 (gnu_v3_exception_catchpoint_ops): New.
8384 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8385
1fbec6c3
AF
83862003-04-25 Adam Fedor <fedor@gnu.org>
8387
8388 * Makefile.in (COMMON_OBS): Add objc-lang.o
8389
0ef21242
AC
83902003-04-25 Andrew Cagney <cagney@redhat.com>
8391
8392 * d10v-tdep.c (print_insn): Delete function.
8393 (display_trace): Use TARGET_PRINT_INSN.
8394 (_initialize_d10v_tdep): Do not set tm_print_insn.
8395 (d10v_gdbarch_init): Set print_insn.
8396
f75493ed
AC
83972003-04-25 Andrew Cagney <cagney@redhat.com>
8398
8399 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8400 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8401 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8402 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8403 (nr_dmap_regs, a0_regnum): ... new functions.
8404 (d10v_print_registers_info): Use a0_regnum, use register_size.
8405 (d10v_register_byte): Delete function.
8406 (d10v_register_raw_size): Delete function.
8407 (d10v_register_type): Use a0_regnum.
8408 (d10v_print_registers_info): Use a0_regnum.
8409 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8410 (d10v_gdbarch_init): Do not set register_byte or
8411 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8412 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8413 extract_address.
8414 (trace_command): Use XCALLOC.
8415 (print_insn): Delete reference to tm_print_insn.
8416 (saved_regs_unwinder): Use store_unsigned_integer instead of
8417 store_address.
8418 * frame.h (FRAME_OBSTACK_CALLOC): Define
8419
2202b100
DC
84202003-04-25 David Carlton <carlton@bactrian.org>
8421
8422 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8423
4e45ca2e
AF
84242003-04-24 Adam Fedor <fedor@gnu.org>
8425
8426 * objc-lang.c: Include "valprint.h"
8427 * Makefile.in (objc-lang.o): Update dependencies.
8428
93de3e7f
AF
84292003-04-24 Adam Fedor <fedor@gnu.org>
8430
8ffd9b1b 8431 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8432 architecture dependant compilation and mark as unimplemented
8433 (until they get put in the gdbarch vector).
8434
0f20eeea
DC
84352003-04-23 David Carlton <carlton@bactrian.org>
8436
8437 * cp-support.c (cp_find_first_component): Accept 'operator' in
8438 more locations.
8439
74cfe982
AC
84402003-04-23 Andrew Cagney <cagney@redhat.com>
8441
8442 * infcall.c (call_function_by_hand): Eliminate redundant
8443 indentation. Move "saved_async" and "old_cleanups" to where they
8444 are needed.
8ffd9b1b 8445
52557533
AC
84462003-04-23 Andrew Cagney <cagney@redhat.com>
8447
8448 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8449 and "buffer". Move the "name" code to where it is needed.
8450
158775de
AC
84512003-04-23 Andrew Cagney <cagney@redhat.com>
8452
8453 * infcall.c (call_function_by_hand): Move variables "start_sp",
8454 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8455 code to ON_STACK switch branch.
8ffd9b1b 8456
ebc7896c
AC
84572003-04-23 Andrew Cagney <cagney@redhat.com>
8458
8459 * infcall.c (call_function_by_hand): Make declaration of "i",
8460 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8461 lint.
8462
d727590f
AC
84632003-04-23 Andrew Cagney <cagney@redhat.com>
8464
8465 * infcall.c (call_function_by_hand): Delete variable
8466 "n_method_args". Localize "param_type"'s declaration to the loop
8467 that it is used. Reinstate code assigning to said variable -
8468 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8469 Rationalize code using "param_type".
8470
d585e13a
AC
84712003-04-22 Andrew Cagney <cagney@redhat.com>
8472
8473 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8474 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8475 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8476 to DEPRECATED_PUSH_RETURN_ADDRESS.
8477
051caad9
KB
84782003-04-22 Kevin Buettner <kevinb@redhat.com>
8479
8480 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8481 on the DWARF2 register number prior to fetching a register.
8482
77296879
JB
84832003-04-22 J. Brobecker <brobecker@gnat.com>
8484
8485 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8486 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8487 this macro was always set to 0.
77296879
JB
8488 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8489 considering the fact that this macro was always set to 0.
8490 * hppa-tdep.h (hppa_store_return_value): Likewise.
8491 (hppa_extract_return_value): Likewise.
8492
4252f1df
JB
84932003-04-22 J. Brobecker <brobecker@gnat.com>
8494
8495 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8496 the hppa-pro target only.
8497
14604c6b
JB
84982003-04-21 J. Brobecker <brobecker@gnat.com>
8499
8500 Ongoing multi-arch conversion effort for HP/UX:
8501 * config/pa/tm-hppa.h: Move all macro that are no longer
8502 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8503 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8504
77eb01d1
JB
85052003-04-21 J. Brobecker <brobecker@gnat.com>
8506
8507 * config/pa/tm-hppa.h: Obsolete a section that was only used
8508 for hppa-pro.
8509
61995b3b
JB
85102003-04-21 J. Brobecker <brobecker@gnat.com>
8511
8512 Ongoing multi-arch conversion for HP/UX.
8513 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8514 if already defined (allows hppa64 to stay non-multiarched for now).
8515 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8516
4aa79dcc
AC
85172003-04-21 Andrew Cagney <cagney@redhat.com>
8518
8519 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8520
0f751ff2
AC
85212003-04-21 Andrew Cagney <cagney@redhat.com>
8522
8523 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8524 "i386_num_mmx_regs".
8525
04714b91
AC
85262003-04-21 Andrew Cagney <cagney@redhat.com>
8527
8528 * infcall.c: New file.
8529 * infcall.h: New file.
8530 * valarith.c: Include "infcall.h".
8531 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8532 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8533 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8534 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8535 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8536 (SFILES): Add "infcall.c"
8537 (COMMON_OBS): Add "infcall.o".
8538 (infcall.o): Specify dependencies.
8539 * value.h (call_function_by_hand): Delete declaration.
8540 * inferior.h (run_stack_dummy): Delete declaration.
8541 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8542 (run_stack_dummy): Move to "infcall.c", merged into
8543 call_function_by_hand.
8544 * valops.c (call_function_by_hand): Moved to "infcall.c".
8545 (find_function_addr, value_arg_coerce): Ditto.
8546 (unwindonsignal_p, coerce_float_to_double): Ditto.
8547 (_initialize_valops): Move "set/show coerce-float-to-double", and
8548 "set/show unwindonsignal" commands to "infcall.c".
8549 * v850-tdep.c, target.h: Update comments.
8550 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8551 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8552 (sh64_init_extra_frame_info): Update comments.
8553 * mn10300-tdep.c: Update comments.
8554 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8555 * config/sparc/tm-sparc.h: Update comments.
8556 * breakpoint.h: Update comments.
8557 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8558 * arm-tdep.c: Update comment.
8559
f9d3c2a8
MK
85602003-04-19 Mark Kettenis <kettenis@gnu.org>
8561
c40e1eab
MK
8562 * i386-tdep.c (i386_num_register_names): New variable.
8563 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8564 (MM0_REGNUM): Remove redundant parentheses in define.
8565 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8566 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8567 i386_mxcsr_regnum_p): Remove redundant parentheses.
8568 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8569
94ea66b3
MK
8570 * i386-tdep.c (i386_extract_return_value,
8571 i386_store_return_value): Correct check for availability of
8572 floating-point registers.
8573
54299a1d
MK
8574 * i386-tdep.c (i386_frame_num_args): Remove function.
8575 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8576
c86c27af
MK
8577 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8578 mmx_regnum_to_fp_regnum. Adjust all callers.
8579
f9d3c2a8
MK
8580 * i386-tdep.c (i386_get_longjmp_target): Use
8581 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8582 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8583 extract_address.
8584
94ba74a9
MK
85852003-04-19 Mark Kettenis <kettenis@gnu.org>
8586
8587 * core-regset.c: Update comments to reflect reality. Re-order
8588 includes.
8589 (fetch_core_registers): Use switch instead of if. Remove
8590 redundant prototype.
8591
4074e13c
JB
85922003-04-18 Jim Blandy <jimb@redhat.com>
8593
8594 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8595 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8596
e3ab4aba
RH
85972003-04-17 Richard Henderson <rth@redhat.com>
8598
8599 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8600
627bf7c1
EZ
86012003-04-17 Michael Snyder <msnyder@redhat.com>
8602 Karen Bennet <bennet@redhat.com>
8603
8604 Committed by Elena Zannoni <ezannoni@redhat.com>
8605 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8606
514621a9
EZ
86072003-04-17 Elena Zannoni <ezannoni@redhat.com>
8608
8609 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8610 value if the return type is void.
514621a9 8611
b4acd559
JJ
86122003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8613
8614 * thread-db.c: Reindented.
8ffd9b1b 8615
530b167e 86162003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8617
8618 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8619 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8620 as types.
8621
0a48e7e8
MS
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8ffd9b1b 8645
ab9fe00e
KB
86462003-04-16 Kevin Buettner <kevinb@redhat.com>
8647
610a3745 8648 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8649 the size of ``long double'' to 16, instead of 8.
8650
e64a344c
MK
86512003-04-16 Mark Kettenis <kettenis@gnu.org>
8652
8653 * i386-linux-nat.c: Add some whitespace to make things more
8654 readable.
8655 (fetch_register, store_register, fetch_inferior_registers,
8656 store_inferior_registers): Get rid of assignment in if-statement.
8657 (store_register): Fix typo in error message.
8658
25d41031
AC
86592003-04-16 Andrew Cagney <cagney@redhat.com>
8660
8661 * utils.c (xmmalloc): Always allocate something, matches
8662 libiberty/xmalloc's semantics.
8663 (xmrealloc, xmcalloc): Ditto.
8664
c50901fd
AC
86652003-04-16 Andrew Cagney <cagney@redhat.com>
8666
8667 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8668 update comments.
8669 (get_frame_type): Initialize unwind and type when needed.
8670 (get_frame_id, frame_register_unwind): Ditto.
8671
f81824a9
AC
86722003-04-16 Andrew Cagney <cagney@redhat.com>
8673
8674 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8675 obsolete.
8676 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8677 * sparcl-stub.c: Obsolete file.
8678 * config/sparc/tm-sparclet.h: Obsolete file.
8679 * sparclet-stub.c: Obsolete file.
8680 * sparclet-rom.c: Obsolete file.
8681 * sparcl-tdep.c: Obsolete file.
8682 * config/sparc/tm-sparclite.h: Obsolete file.
8683 * config/sparc/sparclite.mt: Obsolete file.
8684 * config/sparc/sparclet.mt: Obsolete file.
8685 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8686 sparc86x-*-* obsolete.
8687
9219021c
DC
86882003-04-15 David Carlton <carlton@math.stanford.edu>
8689
8690 * Makefile.in (SFILES): Add cp-namespace.c.
8691 (COMMON_OBS): Add cp-namespace.o.
8692 (block.o): Depend on gdb_obstack_h and cp_support_h.
8693 (buildsym.o): Depend on cp_support_h.
8694 (cp-namespace.o): New.
8695 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8696 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8697 (dwarf2read.o): Depend on cp_support_h.
8698 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8699 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8700 processing_current_namespace.
8701 (read_namespace): Update processing_current_namespace; check for
8702 anonymous namespaces.
8703 (dwarf2_name): New function.
8704 (dwarf2_extension): Ditto.
8705 * cp-support.h: Update copyright, contributors.
8706 Add inclusion guards.
8707 Add opaque declaration for structs obstack, block, symbol.
8708 (struct using_direct): New struct.
8709 Add declarations for cp_find_first_component,
8710 cp_entire_prefix_len, processing_has_namespace_info,
8711 processing_current_namespace, cp_is_anonymous,
8712 cp_add_using_directive, cp_initialize_namespace,
8713 cp_finalize_namespace, cp_set_block_scope,
8714 cp_scan_for_anonymous_namespaces.
8715 * cp-namespace.c: New file.
8716 * cp-support.c: Update copyright.
8717 Include ctype.h, gdb_assert.h, gdbcmd.h.
8718 New variable maint_cplus_cmd_list.
8719 (cp_find_first_component): New function.
8720 (cp_entire_prefix_len, maint_cplus_command)
8721 (first_component_command, _initialize_cp_support): Ditto.
8722 * buildsym.c: Include cp-support.h.
8723 New variable using_list.
8724 (add_symbol_to_list): Check for anonymous namespaces.
8725 (finish_block): Set block's scope.
8726 (start_symtab): Initialize C++ namespace support.
8727 (end_symtab): Finalize C++ namespace support.
8728 * block.h: Add opaque declarations for structs
8729 block_namespace_info, using_direct, and obstack.
8730 Add declarations for block_set_scope and block_set_using.
8731 (struct block): Add 'language_specific' member.
8732 (BLOCK_NAMESPACE): New macro.
8733 * block.c: Include gdb_obstack.h and cp-support.h.
8734 (struct block_namespace_info): New struct.
8735 (block_set_scope): New function.
8736 (block_set_using, block_initialize_namespace): Ditto.
8737
d5a921c9
KB
87382003-04-14 Kevin Buettner <kevinb@redhat.com>
8739
8740 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8741 (locate_base): Return early if there aren't any link map offsets.
8742 (svr4_solib_create_inferior_hook): Warn if shared library support
8743 is unavailable.
8744
d2a52b27
DC
87452003-04-14 David Carlton <carlton@math.stanford.edu>
8746
8747 * symtab.c (symbol_set_names): Add prefix when storing Java names
8748 in hash table. Fix for PR java/1039.
8749
980cae7a
DC
87502003-04-14 David Carlton <carlton@math.stanford.edu>
8751
8752 * symtab.c (symbol_set_names): Rename 'name' arg to
8753 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8754 * symtab.h: Change 'name' argument in declaration of
8755 symbol_set_names to 'linkage_name'.
8756 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8757
e227b13c
AC
87582003-04-14 Andrew Cagney <cagney@redhat.com>
8759
8760 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8761 return the fully sign-extended register value.
8762 (get_frame_pointer): Ditto.
8763 (mips_pop_frame): Initialize "proc_desc" after checking for a
8764 dummy frame.
8765
36712a20
AC
87662003-04-14 Andrew Cagney <cagney@redhat.com>
8767
8768 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8769 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8770 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8771 (mips_push_register): Delete function.
8772 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8773 PUSH_FP_REGNUM.
8774
44ea7b70
JB
87752003-04-14 Jim Blandy <jimb@redhat.com>
8776
8777 * symmisc.c: #include "gdb_regex.h".
8778 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8779 functions.
8780 * maint.c (maintenance_list_command): New function.
8781 (_initialize_maint_cmds): Register the above as commands.
8782 * symtab.h (maintenance_list_symtabs,
8783 maintenance_list_psymtabs): New declarations.
8784 * cli/cli-cmds.c (maintenancelistlist): New variable.
8785 (init_cmd_lists): Initialize it.
8786 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8787 * gdbcmd.h (maintenancelistlist): New declaration.
8788 * Makefile.in (symmisc.o): Update dependencies.
8789
2d0c7962
EZ
87902003-04-14 Elena Zannoni <ezannoni@redhat.com>
8791
8792 * s390-nat.c: Include asm/types.h for addr_t.
8793
1947a811
CV
87942003-04-14 Corinna Vinschen <vinschen@redhat.com>
8795
8796 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8797 actually incoming type.
8798
adb616d7
AC
87992003-04-13 Andrew Cagney <cagney@redhat.com>
8800
8801 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8802 get_next_frame and get_frame_saved_regs.
8803
9b5e151c
AC
88042003-04-13 Andrew Cagney <cagney@redhat.com>
8805
8806 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8807 of gdbarch_num_regs.
8808
ef6e7e13
AC
88092003-04-13 Andrew Cagney <cagney@redhat.com>
8810
8811 * frame.h: Mention what replaced what in "struct frame_info".
8812 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8813 deprecated_update_frame_base_hack and
8814 deprecated_update_frame_pc_hack.
8815 * hppa-tdep.c: Ditto.
8816
61fbb938
DJ
88172003-04-13 Daniel Jacobowitz <drow@mvista.com>
8818
8819 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8820 to read_reg and update its comment. Remove regnum member.
8821 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8822 Don't call read_reg when setting in_reg. Call read_reg to get
8823 the frame base if it's in a register. Return the register number
8824 on the stack instead of in the context. Remove extra arguments
8825 to read_reg.
8826 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8827 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8828 the register number on the expression stack.
8829 (needs_frame_read_reg): Remove extra arguments.
8830
0d53c4c4
DJ
88312003-04-13 Daniel Jacobowitz <drow@mvista.com>
8832
8833 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8834 made non-static.
8835 (execute_stack_op): All callers updated.
8836 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8837 * dwarf2loc.c (find_location_expression): New function.
8838 (dwarf_expr_frame_base): Call it.
8839 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8840 (dwarf2_tracepoint_var_ref): New function, broken out from
8841 locexpr_tracepoint_var_ref.
8842 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8843 Make static.
8844 (loclist_read_variable, loclist_read_needs_frame): New functions.
8845 (loclist_describe_location, loclist_tracepoint_var_ref): New
8846 functions.
8847 (dwarf2_loclist_funcs): New struct location_funcs.
8848 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8849 (struct dwarf2_locexpr_baton): Add comments.
8850 (dwarf2_loclist_funcs): New extern.
8851 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8852 base_address and base_known.
8853 (dwarf_loc_buffer): New variable.
8854 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8855 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8856 (dwarf2_has_info): Initialize dwarf_loc_offset.
8857 (dwarf2_build_psymtabs): Read in .debug_loc.
8858 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8859 DWARF_LOC_SIZE.
8860 (psymtab_to_symtab_1): Likewise. Move base address calculation
8861 here, from...
8862 (dwarf2_get_pc_bounds): ... here. Use the base address from
8863 cu_header.
8864 (dwarf2_symbol_mark_computed): Handle location lists.
8865
6aca59a3
DJ
88662003-04-13 Daniel Jacobowitz <drow@mvista.com>
8867
8868 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8869 if the linkage name demangled successfully.
8870
aca1fcd0
MK
88712003-04-13 Mark Kettenis <kettenis@gnu.org>
8872
97095916
MK
8873 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8874 disassmbly_flavour): Removed.
8875
aca1fcd0
MK
8876 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8877
562a961f
MK
88782003-04-13 Mark Kettenis <kettenis@gnu.org>
8879
8880 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8881
bd013d54
AC
88822003-04-12 Andrew Cagney <cagney@redhat.com>
8883
8884 * frame.h (struct frame_info): Move definition from here ...
8885 * frame.c (struct frame_info): ... to here.
8886
167ef8b1
AC
88872003-04-12 Andrew Cagney <cagney@redhat.com>
8888
8889 * gdbthread.h (save_infrun_state): Delete parameter
8890 "prev_func_start".
8891 (struct thread_info): Delete field "prev_func_start".
8892 (load_infrun_state): Ditto.
8893 * thread.c (load_infrun_state, save_infrun_state): Update.
8894 * infrun.c (prev_func_start): Delete variable.
8895 (context_switch, init_wait_for_inferior): Update.
8896 (stop_stepping, keep_going): Update.
8897
da3331ec
AC
88982003-04-12 Andrew Cagney <cagney@redhat.com>
8899
8900 * gdbarch.sh: Add missing opaque declarations.
8901 * gdbarch.h: Regnerate.
8902 * symtab.h: Add missing opaque declarations.
8903 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8904 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8905 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8906 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8907 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8908 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8909 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8910 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8911 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8912 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8913 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8914 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8915 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8916
18adea3f
AC
89172003-04-11 Andrew Cagney <cagney@redhat.com>
8918
8919 * frame.c (get_frame_id): Return this frame's "id".
8920 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8921 function start.
8922 (legacy_saved_regs_this_id): Replace function body with
8923 internal-error.
8924 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8925 FRAME_OBSTACK_ZALLOC.
8926 (create_new_frame): Mark the frame ID as valid.
8927
2252e863
AO
89282003-04-11 Alexandre Oliva <aoliva@redhat.com>
8929
8930 * Makefile.in (libbfd_h): Added missing setting.
8931 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8932 according to the selected ABI.
8933
a8245ab8
JJ
89342003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8935
8936 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8937
6913c89a
AC
89382003-04-11 Andrew Cagney <cagney@redhat.com>
8939
8940 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8941 SAVED_PC_AFTER_CALL.
8942 * gdbarch.h, gdbarch.c: Regenerate.
8943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8944 * x86-64-tdep.c (x86_64_init_abi): Update.
8945 * vax-tdep.c (vax_gdbarch_init): Update.
8946 * v850-tdep.c (v850_gdbarch_init): Update.
8947 * sparc-tdep.c (sparc_gdbarch_init): Update.
8948 * sh-tdep.c (sh_gdbarch_init): Update.
8949 * s390-tdep.c (s390_gdbarch_init): Update.
8950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8951 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8952 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8953 * mips-tdep.c (mips_gdbarch_init): Update.
8954 * mcore-tdep.c (mcore_gdbarch_init): Update.
8955 * m68k-tdep.c (m68k_gdbarch_init): Update.
8956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8957 * ia64-tdep.c (ia64_gdbarch_init): Update.
8958 (ia64_saved_pc_after_call): Update declaration.
8959 * i386ly-tdep.c (i386lynx_init_abi): Update.
8960 * i386-tdep.c (i386_gdbarch_init): Update.
8961 * hppa-tdep.c (hppa_gdbarch_init): Update.
8962 * h8300-tdep.c (h8300_gdbarch_init): Update.
8963 * frv-tdep.c (frv_gdbarch_init): Update.
8964 * cris-tdep.c (cris_gdbarch_init): Update.
8965 * avr-tdep.c (avr_gdbarch_init): Update.
8966 * arm-tdep.c (arm_gdbarch_init): Update.
8967 * alpha-tdep.c (alpha_gdbarch_init): Update.
8968 * ns32knbsd-nat.c (frame_num_args): Update.
8969 * ns32k-tdep.c (umax_frame_num_args): Update.
8970 * mips-tdep.c (mips_init_frame_pc_first): Update.
8971 * infrun.c (step_over_function): Update.
8972 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8973 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8974 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8975 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8976 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8977 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8978 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8979 * arch-utils.c (init_frame_pc_default): Update.
8980 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8981 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8982 declaration.
8ffd9b1b 8983
38edeab8
AC
89842003-04-11 Andrew Cagney <cagney@redhat.com>
8985
8986 * i387-tdep.c: Update copyright.
8987 (i387_to_double): Delete function.
8988 (double_to_i387): Delete function.
8989
81f8a206
AC
89902003-04-10 Andrew Cagney <cagney@redhat.com>
8991
8992 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8993 frame's function's address. Simplify.
8994 (d10v_frame_unwind_cache): Check that the frame's function is
8995 non-zero.
8996
6e691f7a
JB
89972003-04-10 Jim Blandy <jimb@redhat.com>
8998
8999 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9000 call to set_gdbarch_deprecated_push_arguments.
9001
7f78e237
AC
90022003-04-10 Andrew Cagney <cagney@redhat.com>
9003
9004 * frame.c (fprint_frame_id): New function.
9005 (fprint_frame_type, fprint_frame): New function.
9006 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9007 (create_sentinel_frame, get_frame_id): Ditto.
9008 (frame_id_p, frame_id_eq): Ditto.
9009 (frame_id_inner, create_new_frame): Ditto.
9010 (legacy_get_prev_frame, get_prev_frame): Ditto.
9011 (deprecated_update_frame_pc_hack): Ditto.
9012 (frame_register_unwind): Ditto.
9013 (deprecated_update_frame_base_hack): Ditto.
9014
f870b49b
CV
90152003-04-10 Corinna Vinschen <vinschen@redhat.com>
9016
9017 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9018 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9019 frame_chain function.
9020 * Makefile.in: Add dependencies due to above change.
9021
7c86889b
CV
90222003-04-10 Corinna Vinschen <vinschen@redhat.com>
9023
9024 * blockframe.c (legacy_frame_chain_valid): Move call to
9025 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9026 inside_entry_file.
9027
d0a55772
AC
90282003-04-09 Andrew Cagney <cagney@redhat.com>
9029
9030 * frame.h (struct frame_id): Replace "pc" and "base" with
9031 "stack_addr" and "code_addr". Update comments.
9032 (frame_id_build): Update parameter names and comment.
9033 (struct frame_info): Replace "id_p" and "id" with "this_id".
9034 * dummy-frame.c (dummy_frame_this_id): Update.
9035 * breakpoint.c (print_one_breakpoint): Update.
9036 * frame.c (get_frame_id): Update.
9037 (get_frame_base, frame_id_build): Update.
9038 (create_sentinel_frame, legacy_get_prev_frame): Update.
9039 (deprecated_update_frame_base_hack): Update.
9040 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9041 (frame_id_inner): Ditto.
9042
ac16bf07
AC
90432003-04-09 Andrew Cagney <cagney@redhat.com>
9044
9045 * defs.h (gdb_print_host_address): Make "addr" parameter a
9046 pointer constant.
9047 * utils.c (gdb_print_host_address): Update.
9048
366cfc9e
KB
90492003-04-09 Kevin Buettner <kevinb@redhat.com>
9050
9051 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9052 register number for R0 is 0.
9053
cd983b5c
JB
90542003-04-09 J. Brobecker <brobecker@gnat.com>
9055
9056 * frame.h (struct gdbarch): Add opaque structure definition
9057 to avoid a compilation warning on LynxOS 4.0.
9058
d1340264
AC
90592003-04-09 Andrew Cagney <cagney@redhat.com>
9060
9061 * frame.h (struct frame_info): Delete field "pc". Replace
9062 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9063 structure.
9064 * frame.c (frame_pc_unwind): Update.
9065 (create_sentinel_frame): Do not set "pc".
9066 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9067 (get_frame_pc): Call frame_pc_unwind.
9068 (deprecated_update_frame_pc_hack): Update.
9069 (create_new_frame): Use "pc" not "->pc".
9070
90a6fffb
AC
90712003-04-09 Andrew Cagney <cagney@redhat.com>
9072
9073 * frame.c (get_frame_id): Eliminate code updating "frame".
9074 (legacy_get_prev_frame): Ditto.
9075 (get_frame_base): Return id.base directly.
9076 (deprecated_update_frame_base_hack): Update "id.base".
9077 * frame.h (struct frame_info): Delete field "frame".
9078
2fbce691
AC
90792003-04-09 Andrew Cagney <cagney@redhat.com>
9080
9081 * NEWS: Mention that the "Sequent family" is obsolete.
9082 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9083 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9084 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9085 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9086 * config/i386/tm-ptx4.h: Obsolete file.
9087 * config/i386/tm-ptx.h: Obsolete file.
9088 * symm-tdep.c: Obsolete file.
9089 * config/i386/symmetry.mt: Obsolete file.
9090 * config/i386/tm-symmetry.h: Obsolete file.
9091 * symm-nat.c: Obsolete file.
9092 * config/i386/nm-symmetry.h: Obsolete file.
9093 * config/i386/xm-symmetry.h: Obsolete file.
9094 * config/i386/symmetry.mh: Obsolete file.
9095 * config/i386/nm-ptx4.h: Obsolete file.
9096 * config/i386/ptx4.mh: Obsolete file.
9097 * config/i386/ptx.mt: Obsolete file.
9098 * config/i386/ptx.mh: Obsolete file.
9099 * config/i386/xm-ptx4.h: Obsolete file.
9100 * config/i386/xm-ptx.h: Obsolete file.
9101
78c43945
AC
91022003-04-09 Andrew Cagney <cagney@redhat.com>
9103
9104 Obsolete mips*-*-mach3*.
9105 * NEWS: Mention that mips*-*-mach3* is obsolete.
9106 * m3-nat.c: Obsolete file.
9107 * config/nm-m3.h: Obsolete file.
9108 * config/mips/tm-mipsm3.h: Obsolete file.
9109 * config/mips/mipsm3.mt: Obsolete file.
9110 * config/mips/mipsm3.mh: Obsolete file.
9111 * config/mips/xm-mipsm3.h: Obsolete file.
9112 * mipsm3-nat.c: Obsolete file.
9113 * configure.host: Obsolete mips-dec-mach3*.
9114 * configure.tgt: Obsolete mips*-*-mach3*.
9115
f1908289
AC
91162003-04-09 Andrew Cagney <cagney@redhat.com>
9117
9118 * doublest.h: Update copyright.
9119 (deprecated_store_floating, deprecated_extract_floating): Rename
9120 store_floating and extract_floating. Update comments.
9121 * doublest.c: Update copyright.
9122 (extract_floating_by_length): Replace extract_floating.
9123 (store_floating_by_length): Replace store_floating.
9124 (deprecated_extract_floating): New function.
9125 (deprecated_store_floating): New function.
9126 (extract_typed_floating): Call extract_floating_by_length.
9127 (store_typed_floating): Call store_floating_by_length.
9128 * x86-64-tdep.c (x86_64_store_return_value): Update.
9129 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9130 (sh64_extract_return_value): Update.
9131 (sh_sh4_register_convert_to_virtual): Update.
9132 (sh_sh64_register_convert_to_virtual): Update.
9133 (sh_sh4_register_convert_to_raw): Update.
9134 (sh_sh64_register_convert_to_raw): Update.
9135 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9136 (rs6000_register_convert_to_raw): Update.
9137 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9138 (ia64_register_convert_to_raw): Update.
9139 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9140 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9141 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9142 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9143 (alpha_register_convert_to_raw): Update.
9144
4443bd83
AC
91452003-04-08 Andrew Cagney <cagney@redhat.com>
9146
9147 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9148 * gdbarch.h, gdbarch.c: Re-generate.
9149 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9150 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9151 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9152 conditionally, use frame_pc_unwind as an alternative. Add
9153 comments.
9154 * arch-utils.c (init_frame_pc_default): Only call
9155 SAVED_PC_AFTER_CALL when available.
9156
c0236d92
EZ
91572003-04-08 Elena Zannoni <ezannoni@redhat.com>
9158
fbe586ae 9159 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9160 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9161 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9162 (start_remote): Ditto.
9163 (handle_inferior_event): Ditto.
9164 (save_inferior_status): Ditto.
9165 (restore_inferior_status): Ditto.
9166 * infcmd.c (attach_command): Ditto.
9167 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9168 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9169 * alpha-tdep.c (heuristic_proc_start): Ditto.
9170 * mips-tdep.c (heuristic_proc_start): Ditto.
9171 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9172 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9173 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9174 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9175 * remote-vx.c (vx_create_inferior): Ditto.
9176
91772003-04-08 Elena Zannoni <ezannoni@redhat.com>
9178
9179 * infrun.c (stop_soon_quietly): Make it an enum, to better
9180 override the default behavior of handle_inferior_event.
9181 (clear_proceed_status): Update uses of stop_soon_quietly to
9182 reflect that it is now an enum.
9183 (start_remote): Ditto.
9184 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9185 is set to handle the new GNU/Linux kernel behavior for
9186 attach/sigstop. Update uses of stop_soon_quietly.
9187 * inferior.h (enum stop_kind): New enum.
9188 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9189 Reset normal handle_inferior_event behavior, afterwards.
9190 * fork-child.c (startup_inferior): Update.
9191 * alpha-tdep.c (heuristic_proc_start): Update.
9192 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9193 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9194 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9195 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9196 * remote-vx.c (vx_create_inferior): Update.
9197 * mips-tdep.c (heuristic_proc_start): Update.
9198
1211bce3
EZ
91992003-04-07 Elena Zannoni <ezannoni@redhat.com>
9200
9201 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9202 be freed more than once, causing wild memory corruptions.
1211bce3 9203 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9204 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9205 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9206 with the "core" target.
1211bce3 9207
f0ef6b29
KB
92082003-04-07 Kevin Buettner <kevinb@redhat.com>
9209
9210 * mips-tdep.c (mips_print_fp_register): New function, created from
9211 do_fp_register_row(). Registers are now (also) printed as hex.
9212 Only one register is printed per row.
9213 (mips_print_register, do_fp_register_row): Print floating point
9214 registers with mips_print_fp_register().
9215
8cf71652
AC
92162003-04-06 Andrew Cagney <cagney@redhat.com>
9217
5e488a7b
AC
9218 * valprint.h (inspect_it): Add extern declaration.
9219 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9220 (selectors_info, classes_info): Ditto.
9221 (find_objc_msgcall): Fix indentation.
9222 (objc_printstr): Delete extern declarations.
9223
8cf71652
AC
9224 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9225
e6ba3bc9
AC
92262003-04-06 Andrew Cagney <cagney@redhat.com>
9227
9228 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9229 Update comment.
9230 * frame.c (legacy_saved_regs_this_id): Update.
9231 (legacy_get_prev_frame): Update.
9232 * xstormy16-tdep.c: Update comment.
9233 * sparc-tdep.c (sparc_frame_chain): Update comment.
9234 * blockframe.c (legacy_frame_chain_valid): Update.
9235
55e1d7e7
AC
92362003-04-06 Andrew Cagney <cagney@redhat.com>
9237
996179ee
AC
9238 * valprint.c (val_print_type_code_int): Delete #ifdef
9239 PRINT_TYPELESS_INTEGER code.
9240
55e1d7e7
AC
9241 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9242 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9243 multi-arch definition.
9244 * gdbarch.h: Re-generate.
9245
43bd9a9e
AC
92462003-04-05 Andrew Cagney <cagney@redhat.com>
9247
9248 Eliminate FRAME_FIND_SAVED_REGS.
9249 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9250 Change FSR parameter to a pointer.
9251 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9252 Assume FSR parameter is a pointer.
9253 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9254 Make fsr a pointer.
9255 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9256 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9257 saved_regs a pointer.
9258 (hppa_frame_saved_pc): Ditto.
9259 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9260 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9261 pointer.
9262 (restore_pc_queue): Make fsr a pointer.
9263 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9264 (hppa_frame_chain): Make saved_regs a pointer, call
9265 hppa_frame_init_saved_regs.
9266 * sparc-tdep.c: Include "gdb_assert.h".
9267 (sparc_frame_find_saved_regs): Replace internal_error with
9268 gdb_assert.
9269 * remote-vxsparc.c (vx_read_register): Delete reference to
9270 FRAME_FIND_SAVED_REGS.
9271 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9272 * gdbarch.h: Regenerate.
9273 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9274 (deprecated_get_frame_saved_regs): Delete declaration.
9275 (struct frame_saved_regs): Delete definition.
9276 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9277 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9278 (hppa_frame_find_saved_regs): Delete declaration.
9279 (FRAME_FIND_SAVED_REGS): Delete macro.
9280 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9281 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9282 FRAME_FIND_SAVED_REGS in comment.
9283
be41e9f4
AC
92842003-04-05 Andrew Cagney <cagney@redhat.com>
9285
9286 * frame.c (frame_func_unwind, get_frame_func): New functions.
9287 * frame.h (get_frame_func, frame_func_unwind): Declare.
9288 (struct frame_info): Add field "prev_func" for caching the
9289 previous frame's function address.
9290 * arm-tdep.c (arm_frameless_function_invocation): Combine
9291 get_pc_function_start and get_frame_pc into get_frame_func.
9292 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9293 (sh64_nofp_frame_init_saved_regs): Ditto.
9294 * s390-tdep.c (s390_function_start): Ditto.
9295 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9296 (rs6000_frameless_function_invocation): Ditto.
9297 (rs6000_frame_saved_pc): Ditto.
9298 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9299 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9300 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9301 (i386_frame_init_saved_regs): Ditto.
9302 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9303 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9304 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9305 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9306 * blockframe.c (frameless_look_for_prologue): Ditto.
9307
a01dd7cc
AC
93082003-04-05 Andrew Cagney <cagney@redhat.com>
9309
9310 * frame.c (legacy_get_prev_frame): Link prev to next at the
9311 function start. Update comments.
9312
5e5592e6
AC
93132003-04-05 Andrew Cagney <cagney@redhat.com>
9314
9315 * frame.c (get_frame_id): Update comment.
9316 (legacy_get_prev_frame): Update comment.
9317 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9318 * gdbarch.h: Regenerate.
9319 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9320 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9321
6fba5002
AC
93222003-04-05 Andrew Cagney <cagney@redhat.com>
9323
9324 * stack.c (print_frame_info): Use get_frame_pc.
9325
7df05f2b
AC
93262003-04-04 Andrew Cagney <cagney@redhat.com>
9327
9328 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9329 the frame's type from the unwinder.
9330 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9331 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9332 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9333 (get_frame_base_address): Use get_frame_type.
9334 (get_frame_locals_address, get_frame_args_address): Ditto.
9335 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9336 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9337 (struct frame_info): Add comment explaining why the frame contains
9338 a "type" field.
9339 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9340 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9341 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9342 NORMAL_FRAME.
9343 * frame-unwind.h: Include "frame.h".
9344 (struct frame_unwind): Add "type" field.
9345 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9346
11889732
AC
93472003-04-04 Andrew Cagney <cagney@redhat.com>
9348
9349 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9350 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9351 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9352 get_frame_base.
9353 (d10v_unwind_dummy_id): Use frame_id_build.
9354 * frame.c (find_frame_sal): Use get_frame_pc.
9355 (create_new_frame): Use deprecated_update_frame_pc_hack and
9356 deprecated_update_frame_base_hack.
9357 (create_sentinel_frame): Add comment about ->pc going away.
9358 (get_prev_frame): Add comment about ->pc going away.
9359 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9360 frame_id_build, deprecated_update_frame_pc_hack and
9361 deprecated_update_frame_base_hack.
9362 (select_frame): Use get_frame_pc.
9363 (legacy_saved_regs_this_id): Use frame_id_build.
9364
50c46a0d
EZ
93652003-04-04 Elena Zannoni <ezannoni@redhat.com>
9366
fbe586ae
RH
9367 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9368 signed integer case.
9369 (classify_argument): Handle enumerations and references.
50c46a0d 9370
50bbdbd9
AC
93712003-04-04 Andrew Cagney <cagney@redhat.com>
9372
9373 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9374 ID to NULL.
9375
36018d2e
AF
93762003-04-01 Adam Fedor <fedor@gnu.org>
9377
9378 * gdb/objc-lang.c (selectors_info): Replace calls to
9379 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9380 SYMBOL_NATURAL_NAME.
9381 (classes_info, find_methods): Likewise.
9382
35cec841
KB
93832003-04-03 Kevin Buettner <kevinb@redhat.com>
9384
9385 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9386 ``mach'' to the value determined by bfd_default_set_arch_mach().
9387
43136899
BR
93882003-04-02 Bob Rossi <bob_rossi@cox.net>
9389
9390 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9391 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9392 (mi-cmd-file.o): Update dependencies.
9393
040b99fd
KB
93942003-04-01 Kevin Buettner <kevinb@redhat.com>
9395
9396 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9397 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9398
9a3d7dfd
AF
93992003-04-01 Adam Fedor <fedor@gnu.org>
9400
9401 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9402 * language.h (struct language_defn): Add la_demangle.
9403 (language_demangle): Declare.
9404 * language.c (language_demangle): New function.
9405 (unk_lang_demangle): Likewise.
9406 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9407 Add ukn_lang_demangle.
9a3d7dfd 9408 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9409 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9410 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9411 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9412 * jv-lang.c (java_demangle): New function
9413 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9414 * objc-lang.c (objc_demangle): Add options argument
9415 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9416 * maint.c (maintenance_demangle): Replace switch with
9417 call to language_demangle.
9418 * utils.c (fprintf_symbol_filtered): Likewise.
9419
5e074003
AC
94202003-04-01 Andrew Cagney <cagney@redhat.com>
9421
9422 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9423 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9424 PRINT_TYPELESS_INTEGER.
9425 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9426 PUSH_RETURN_ADDRESS.
9427
270cb5d6
AC
94282003-04-01 Andrew Cagney <cagney@redhat.com>
9429
9430 * Makefile.in (d10v-tdep.o): Update dependencies.
9431 * d10v-tdep.c: Include "frame-base.h".
9432 (d10v_frame_unwind): Make constant.
9433 (d10v_frame_base_address): New function.
9434 (d10v_frame_base): New variable.
9435 (d10v_gdbarch_init): Set frame_base default.
9436 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9437 comment for base.
9438 (d10v_frame_unwind_cache): Set and use "prev_sp".
9439 (d10v_frame_this_id): Use the previous frame's inner most stack
9440 address and this frame's func address for the frame ID. Use
9441 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9442
6bfb3e36
AC
94432003-04-01 Andrew Cagney <cagney@redhat.com>
9444
9445 * frame.h (get_frame_locals_address, get_frame_args_address):
9446 Refer to the base address, instead of the address of the first
9447 local or parameter.
8ffd9b1b 9448
da62e633
AC
94492003-04-01 Andrew Cagney <cagney@redhat.com>
9450
9451 Add frame debug info addresses:
9452 * frame-base.c: New file.
9453 * frame-base.h: New file.
9454 * frame.h (struct frame_base): Add opaque declaration.
9455 (get_frame_base): Update comment.
9456 (get_frame_base_address): Declare.
9457 (get_frame_locals_address): Declare.
9458 (get_frame_args_address): Declare.
9459 (struct frame_info): Add "base" and "base_cache". Update
9460 comments on the unwinder.
9461 * frame.c: Include "frame-base.h".
9462 (get_frame_locals_address): New function.
9463 (get_frame_base_address): New function.
9464 (get_frame_args_address): New function.
9465 * findvar.c (read_var_value): Use get_frame_locals_address and
9466 get_frame_args_address.
9467 * stack.c (frame_info): Use get_frame_locals_address and
9468 get_frame_args_address.
9469 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9470 moved to "frame-base.c".
9471 * printcmd.c (print_frame_nameless_args): Ditto.
9472 * symtab.h (address_class): Update comments.
9473 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9474 get_frame_base_address.
9475 * dwarf2expr.c (execute_stack_op): Ditto.
9476 * Makefile.in (frame_base_h): Define.
9477 (frame.o): Update dependencies.
9478 (frame-base.o): Add dependencies.
9479 (SFILES): Add frame-base.c.
9480 (COMMON_OBS): Add frame-base.o.
9481
3d30e9c2
AC
94822003-04-01 Andrew Cagney <cagney@redhat.com>
9483
9484 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9485 CALL_DUMMY_LENGTH): Ditto.
9486 * gdbarch.c: Re-generate.
9487 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9488 (CALL_DUMMY_LENGTH): Delete macro.
9489 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9490 * arm-tdep.c (arm_gdbarch_init): Ditto.
9491 * avr-tdep.c (avr_gdbarch_init): Ditto.
9492 * cris-tdep.c (cris_gdbarch_init): Ditto.
9493 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9494 * frv-tdep.c (frv_gdbarch_init): Ditto.
9495 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9496 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9497 * i386-tdep.c (i386_gdbarch_init): Ditto.
9498 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9500 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9501 * mips-tdep.c (mips_gdbarch_init): Ditto.
9502 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9503 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9504 * s390-tdep.c (s390_gdbarch_init): Ditto.
9505 * sh-tdep.c (sh_gdbarch_init): Ditto.
9506 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9507 * v850-tdep.c (v850_gdbarch_init): Ditto.
9508 * vax-tdep.c (vax_gdbarch_init): Ditto.
9509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9510
ce0c7262
CV
95112003-04-01 Corinna Vinschen <vinschen@redhat.com>
9512
9513 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9514
73dd234f
AC
95152003-04-01 Andrew Cagney <cagney@redhat.com>
9516
9517 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9518 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9519 * gdbarch.h, gdbarch.c: Re-generate.
9520 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9521 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9522 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9523 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9524 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9525 * infcmd.c (run_stack_dummy): Simplify assuming
9526 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9527 * infrun.c (handle_inferior_event): Ditto.
9528 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9529 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9530 * arm-tdep.c (arm_gdbarch_init): Ditto.
9531 * avr-tdep.c (avr_gdbarch_init): Ditto.
9532 * cris-tdep.c (cris_gdbarch_init): Ditto.
9533 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9534 * frv-tdep.c (frv_gdbarch_init): Ditto.
9535 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9536 * i386-tdep.c (i386_gdbarch_init): Ditto.
9537 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9539 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9540 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9541 * mips-tdep.c (mips_gdbarch_init): Ditto.
9542 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9543 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9544 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9545 * s390-tdep.c (s390_gdbarch_init): Ditto.
9546 * sh-tdep.c (sh_gdbarch_init): Ditto.
9547 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9548 * v850-tdep.c (v850_gdbarch_init): Ditto.
9549 * vax-tdep.c (vax_gdbarch_init): Ditto.
9550 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9551
97606a13
DJ
95522003-04-01 Daniel Jacobowitz <drow@mvista.com>
9553
9554 * symfile.c (symfile_relocate_debug_section): Update call to
9555 bfd_simple_get_relocated_section_contents.
9556
e8ab51f7
AC
95572003-03-31 Andrew Cagney <cagney@redhat.com>
9558
9559 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9560 * gdbarch.h, gdbarch.c: Regenerate.
9561 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9562 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9563 available.
9564 * frame.h (generic_fix_call_dummy): Delete declaration.
9565 * dummy-frame.h: Update comment.
9566 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9568 fix_call_dummy.
9569 * sh-tdep.c (sh_gdbarch_init): Ditto.
9570 * s390-tdep.c (s390_gdbarch_init): Ditto.
9571 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9574 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9575 * i386-tdep.c (i386_gdbarch_init): Ditto.
9576 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9577 * frv-tdep.c (frv_gdbarch_init): Ditto.
9578 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9579 * cris-tdep.c (cris_gdbarch_init): Ditto.
9580 * avr-tdep.c (avr_gdbarch_init): Ditto.
9581 * arm-tdep.c (arm_gdbarch_init): Ditto.
9582
018d1b48
JB
95832003-03-31 J. Brobecker <brobecker@gnat.com>
9584
9585 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9586 (INIT_FRAME_AP): Likewise.
9587 (EXTRA_FRAME_INFO): Likewise.
9588
e9a2674e
AC
95892003-03-31 Andrew Cagney <cagney@redhat.com>
9590
9591 * gdbarch.sh: Include "symfile.h".
9592 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9593 * gdbarch.h, gdbarch.c: Re-generate.
9594 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9596 call_dummy_address, the default is at entry_point_address.
9597 * v850-tdep.c (v850_gdbarch_init): Ditto.
9598 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9599 * sh-tdep.c (sh_gdbarch_init): Ditto.
9600 * s390-tdep.c (s390_gdbarch_init): Ditto.
9601 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9602 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9603 * mcore-tdep.c (mcore_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 * arm-tdep.c (arm_gdbarch_init): Ditto.
9611
e8a8712a
AC
96122003-03-31 Andrew Cagney <cagney@redhat.com>
9613
9614 * gdbarch.sh (CALL_DUMMY_P): Delete.
9615 * gdbarch.h, gdbarch.c: Re-generate.
9616 * inferior.h (CALL_DUMMY_P): Delete macro.
9617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9618 * vax-tdep.c (vax_gdbarch_init): Update.
9619 * v850-tdep.c (v850_gdbarch_init): Update.
9620 * sparc-tdep.c (sparc_gdbarch_init): Update.
9621 * sh-tdep.c (sh_gdbarch_init): Update.
9622 * s390-tdep.c (s390_gdbarch_init): Update.
9623 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9624 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9625 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9626 * mips-tdep.c (mips_gdbarch_init): Update.
9627 * mcore-tdep.c (mcore_gdbarch_init): Update.
9628 * m68k-tdep.c (m68k_gdbarch_init): Update.
9629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9630 * ia64-tdep.c (ia64_gdbarch_init): Update.
9631 * i386-tdep.c (i386_gdbarch_init): Update.
9632 * h8300-tdep.c (h8300_gdbarch_init): Update.
9633 * frv-tdep.c (frv_gdbarch_init): Update.
9634 * d10v-tdep.c (d10v_gdbarch_init): Update.
9635 * cris-tdep.c (cris_gdbarch_init): Update.
9636 * breakpoint.c (deprecated_frame_in_dummy): Update.
9637 * avr-tdep.c (avr_gdbarch_init): Update.
9638 * alpha-tdep.c (alpha_gdbarch_init): Update.
9639 * arm-tdep.c (arm_gdbarch_init): Update.
9640 * dummy-frame.c (dummy_frame_this_id): Update comments.
9641 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9642 * frame.c (legacy_get_prev_frame): Ditto.
9643 * valops.c (call_function_by_hand): Delete function.
9644 (hand_function_call): Rename to call_function_by_hand
9645
ed234cf8
AC
96462003-03-30 Andrew Cagney <cagney@redhat.com>
9647
9648 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9649 * value.h (struct value): Update comment.
ed234cf8 9650
06c77151
AC
96512003-03-30 Andrew Cagney <cagney@redhat.com>
9652
6c2b5168
AC
9653 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9654 D10V_FP_REGNUM.
9655 (d10v_gdbarch_init): Do not set fp_regnum.
9656
06c77151
AC
9657 * frame.c (get_frame_base): Force ID initialization.
9658 (get_prev_frame): Move computation of the frame ID from here ...
9659 (get_frame_id): ... to here.
9660 (legacy_get_prev_frame): Mark the frame ID as valid.
9661 * frame.h (struct frame_info): Add field "id_p".
9662
97a1a11c
MK
96632003-03-30 Mark Kettenis <kettenis@gnu.org>
9664
9665 * i386-tdep.c (i386_store_struct_return): Removed.
9666 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9667
6c0e89ed
AC
96682003-03-30 Andrew Cagney <cagney@redhat.com>
9669
9670 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9671 * gdbarch.h, gdbarch.c: Regenerate.
9672 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9673 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9674 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9675 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9676 * i386-tdep.c (i386_gdbarch_init): Ditto.
9677 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9678 * cris-tdep.c (cris_gdbarch_init): Ditto.
9679 * vax-tdep.c (vax_gdbarch_init): Ditto.
9680 * s390-tdep.c (s390_gdbarch_init): Ditto.
9681 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9682 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9683 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9684 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9685 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9686 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9687 * sparc-tdep.c (sparc_gdbarch_init): Update.
9688 * sh-tdep.c (sh_gdbarch_init): Update.
9689 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9690 * mips-tdep.c (mips_gdbarch_init): Update.
9691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9692 * ia64-tdep.c (ia64_gdbarch_init): Update.
9693 * frv-tdep.c (frv_gdbarch_init): Update.
9694 * avr-tdep.c (avr_gdbarch_init): Update.
9695 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9696 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9697 instead of when push_dummy_call is not available.
8ffd9b1b 9698
f7dd6af2
AC
96992003-03-30 Andrew Cagney <cagney@redhat.com>
9700
9701 * infttrace.c: Include "gdbthread.h".
9702 (parent_attach_all): Fix function signature.
9703 (call_ptrace): Update call.
9704 * Makefile.in (infttrace.o): Update dependencies.
9705
28f617b3
AC
97062003-03-30 Andrew Cagney <cagney@redhat.com>
9707
9708 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9709 PUSH_RETURN_ADDRESS.
9710 * gdbarch.h, gdbarch.c: Regenerate.
9711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9712 * x86-64-tdep.c (x86_64_init_abi): Update.
9713 * v850-tdep.c (v850_gdbarch_init): Update.
9714 * sparc-tdep.c (sparc_gdbarch_init): Update.
9715 * sh-tdep.c (sh_gdbarch_init): Update.
9716 * s390-tdep.c (s390_gdbarch_init): Update.
9717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9718 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9719 * mips-tdep.c (mips_gdbarch_init): Update.
9720 * mcore-tdep.c (mcore_gdbarch_init): Update.
9721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9722 * ia64-tdep.c (ia64_gdbarch_init): Update.
9723 * i386-tdep.c (i386_gdbarch_init): Update.
9724 * h8300-tdep.c (h8300_gdbarch_init): Update.
9725 * frv-tdep.c (frv_gdbarch_init): Update.
9726 * cris-tdep.c (cris_gdbarch_init): Update.
9727 * avr-tdep.c (avr_gdbarch_init): Update.
9728 * arm-tdep.c (arm_gdbarch_init): Update.
9729 * valops.c (hand_function_call): Update.
9730
4d628cd7
AC
97312003-03-29 Andrew Cagney <cagney@redhat.com>
9732
9733 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9734 sizeof_call_dummy_words.
9735 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9736 define.
9737 * gdbarch.h: Regenerate.
8ffd9b1b 9738
65e82032
AC
97392003-03-29 Andrew Cagney <cagney@redhat.com>
9740
9741 * infttrace.h: New file.
9742 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9743 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9744 (hpread_read_doc_function_type): Detect an initialized type1.
9745 (hpread_quick_traverse): Initialize mod_name_string.
9746 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9747 (som_solib_get_solib_by_pc): Declare.
9748 (so_lib_thread_start_addr): Declare.
9749 (no_shared_libraries): Declare.
9750 * somread.c (init_import_symbols): Make static. Add forward
9751 declaration.
9752 * config/pa/nm-hppah.h: Include "infttrace.h" for
9753 parent_attach_all.
9754 (hppa_insert_hw_watchpoint): Declare.
9755 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9756 * hppah-nat.c: Include "gdb_string.h".
9757 (parent_attach_all): Delete extern declaration, moved to
9758 "infttrace.h".
9759 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9760 int.
9761 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9762 * Makefile.in (infttrace_h): Define.
9763 (hpread.o): Update dependencies.
9764 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9765 * hppa-hpux-tdep.c: Include "gdb_string.h".
9766 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9767 * infrun.c (handle_inferior_event): Always initialize
9768 stepped_after_stopped_by_watchpoint. Add default and remove
9769 fallthrough in switch statement.
9770 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9771 parameter to int.
9772 (hppa_remove_hw_watchpoint): Ditto.
9773
2c3bbe77
AC
97742003-03-29 Andrew Cagney <cagney@redhat.com>
9775
9776 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9777 offset.
9778
2dd604e7
RE
97792003-03-29 Richard Earnshaw <rearnsha@arm.com>
9780
9781 * arm-tdep.c (arm_push_arguments): Delete.
9782 (struct stack_item): New type.
9783 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9784 (arm_store_struct_return): Delte.
9785 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9786 arm_push_arguments or arm_store_struct_return.
9787
e8933a55
AC
97882003-03-28 Andrew Cagney <cagney@redhat.com>
9789
9790 * Makefile.in (d10v-tdep.o): Update dependencies.
9791 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9792 * d10v-tdep.c: Include "remote.h".
9793 (target_resume_hook): Delete extern declaration.
9794 (target_wait_loop_hook): Ditto.
9795 (tdisassemble_command): Eliminate assignment in "if" conditional.
9796 (d10v_ts2_register_sim_regno): Eliminate call to
9797 legacy_register_sim_regno.
9798 (d10v_ts3_register_sim_regno): Ditto.
9799
6949171e
JJ
98002003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9801
9802 * thread.c: Reindented.
9803 * lin-lwp.c: Ditto.
9804 * linux-proc.c: Ditto.
9805
98c7071f
BR
98062003-03-28 Bob Rossi <bob_rossi@cox.net>
9807
fbe586ae 9808 * MAINTAINERS (write after approval): Add myself.
98c7071f 9809
5edc9ca6
TR
98102003-03-27 Theodore A. Roth <troth@openavr.org>
9811
9812 * objc-exp.y: Add missing semi-colons.
9813
378bfd1b
AC
98142003-03-27 Andrew Cagney <cagney@redhat.com>
9815
9816 * regcache.c (write_sp): Delete function and references.
9817 * inferior.h (write_sp): Delete declaration.
9818 * valops.c (hand_function_call): Replace write_sp with
9819 TARGET_WRITE_SP.
9820 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9821 (sparc_pop_frame): Ditto.
8ffd9b1b 9822
56056df7
AC
98232003-03-27 Andrew Cagney <cagney@redhat.com>
9824
9825 * NEWS: Mention removal of support for hppa*-*-bsd* and
9826 hppa*-*-osf* natives, and hppa*-*-pro* target.
9827 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9828 * config/pa/xm-pa.h: Obsolete file.
9829 * config/pa/xm-hppab.h: Obsolete file.
9830 * config/pa/nm-hppab.h: Obsolete file.
9831 * config/pa/tm-hppab.h: Obsolete file.
9832 * config/pa/tm-hppao.h: Obsolete file.
9833 * config/pa/nm-hppao.h: Obsolete file.
9834 * config/pa/tm-pro.h: Obsolete file.
9835 * config/pa/hppaosf.mt: Obsolete file.
9836 * config/pa/hppaosf.mh: Obsolete file.
9837 * config/pa/hppapro.mt: Obsolete file.
9838 * config/pa/hppabsd.mt: Obsolete file.
9839 * config/pa/hppabsd.mh: Obsolete file.
9840 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9841 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9842 hppa*-*-osf*.
9843
5873a88d
AC
98442003-03-27 Andrew Cagney <cagney@redhat.com>
9845
9846 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9847 push_arguments. Don't set push_return_address or write_sp.
9848 (d10v_push_dummy_call): Replace d10v_push_arguments.
9849 (d10v_push_return_address, d10v_write_sp): Delete function,
9850 handled by push_dummy_call.
9851
b81774d8
AC
98522003-03-26 Andrew Cagney <cagney@redhat.com>
9853
9854 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9855 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9856 regcache and dummy_addr parameters.
9857 * gdbarch.h, gdbarch.c: Re-generate.
9858 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9859 available; assume it will handle stack alignment and return
9860 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9861 legacy_push_arguments.
9862 (legacy_push_arguments): Rename default_push_arguments.
9863 * value.h (legacy_push_arguments): Rename default_push_arguments.
9864 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9865 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9866 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9867 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9868 * config/i386/tm-symmetry.h: Update.
9869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9870 * x86-64-tdep.c (x86_64_init_abi): Update.
9871 * v850-tdep.c (v850_gdbarch_init): Update.
9872 * sparc-tdep.c (sparc_gdbarch_init): Update.
9873 * sh-tdep.c (sh_gdbarch_init): Update.
9874 * s390-tdep.c (s390_gdbarch_init): Update.
9875 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9876 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9877 * mips-tdep.c (mips_gdbarch_init): Update.
9878 * mcore-tdep.c (mcore_gdbarch_init): Update.
9879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9880 * ia64-tdep.c (ia64_gdbarch_init): Update.
9881 * i386-tdep.c (i386_gdbarch_init): Update.
9882 * hppa-tdep.c (hppa_gdbarch_init): Update.
9883 * h8300-tdep.c (h8300_gdbarch_init): Update.
9884 * frv-tdep.c (frv_gdbarch_init): Update.
9885 * d10v-tdep.c (d10v_gdbarch_init): Update.
9886 * cris-tdep.c (cris_gdbarch_init): Update.
9887 * avr-tdep.c (avr_gdbarch_init): Update.
9888 * arm-tdep.c (arm_gdbarch_init): Update.
9889 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9890 * alpha-tdep.c (alpha_gdbarch_init): Update.
9891
f541410f
DJ
98922003-03-26 Daniel Jacobowitz <drow@mvista.com>
9893
9894 * signals/signals.c (do_target_signal_to_host): Correct realtime
9895 signal range test.
9896
69f567ae
DJ
98972003-03-26 Daniel Jacobowitz <drow@mvista.com>
9898
9899 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9900 (struct sal_chain, map_catch_names): Remove.
9901 (catch_exception_command_1): Don't call
9902 handle_gnu_4_16_catch_command.
9903
d5d14a5a
DJ
99042003-03-26 Daniel Jacobowitz <drow@mvista.com>
9905
9906 From Mark Dettinger <dettinge@de.ibm.com>:
9907 * dwarf2cfi.c (read_2u): Increment pointer by two.
9908
bdd73e22
DJ
99092003-03-26 Daniel Jacobowitz <drow@mvista.com>
9910
9911 * signals/signals.c: Fix typos in last change.
9912
960cb555
DJ
99132003-03-26 Daniel Jacobowitz <drow@mvista.com>
9914
9915 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9916 not already defined. Use __SIGRTMIN if available.
9917 (target_signal_from_host): Remove SIGRTMIN block.
9918 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9919 the signal is within the realtime range.
9920
f636b87d
AF
99212003-03-25 Adam Fedor <fedor@gnu.org>
9922
9923 * Makefile.in (infrun.o): Add $(language_h)
9924 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9925 for language specific trampolines.
9926 * language.h (struct language_defn): Add skip_trampoline.
9927 (skip_language_trampoline): Declare.
9928 * language.c (unk_lang_trampoline, skip_language_trampoline):
9929 New functions.
9930 (unknown_language_defn, auto_language_defn, local_language_defn):
9931 Add ukn_lang_trampoline.
9932 * ada-lang.c (ada_language_defn): Add NULL for language
9933 specific skip_trampoline.
9934 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9935 scm-lang.c: Likewise.
9936 * objc-lang.c (objc_skip_trampoline): New function.
9937 (objc_language_defn): Add objc_skip_trampoline.
9938
28f617b3 99392003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9940
9941 * frame.c (get_prev_frame): Delay validating a frame's ID -
9942 non-NULL, didn't go backwards - until an attempt to unwind it to
9943 the previous frame.
9944
f933a9c5
AC
99452003-03-25 Andrew Cagney <cagney@redhat.com>
9946
9947 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9948 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9949 * gdbarch.h, gdbarch.c: Re-generate.
9950 * config/sparc/tm-sparc.h
9951 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9952 * sparc-tdep.c (sparc_gdbarch_init): Set
9953 deprecated_extra_stack_alignment_needed.
9954 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9956 extra_stack_alignment_needed.
9957 * v850-tdep.c (v850_gdbarch_init): Ditto.
9958 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9959 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9960 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9961 * cris-tdep.c (cris_gdbarch_init): Ditto.
9962 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9964
4183d812
AC
99652003-03-25 Andrew Cagney <cagney@redhat.com>
9966
9967 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9968 STORE_STRUCT_RETURN.
9969 * gdbarch.h, gdbarch.c: Regenerate.
9970 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9971 (d10v_push_arguments): Set the struct return register.
9972 (d10v_gdbarch_init): Update.
9973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9974 * x86-64-tdep.c (x86_64_init_abi): Update.
9975 * vax-tdep.c (vax_gdbarch_init): Update.
9976 * v850-tdep.c (v850_gdbarch_init): Update.
9977 * sparc-tdep.c (sparc_gdbarch_init): Update.
9978 * sh-tdep.c (sh_gdbarch_init): Update.
9979 * s390-tdep.c (s390_gdbarch_init): Update.
9980 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9981 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9982 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9983 * mips-tdep.c (mips_gdbarch_init): Update.
9984 * mcore-tdep.c (mcore_gdbarch_init): Update.
9985 * m68k-tdep.c (m68k_gdbarch_init): Update.
9986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9987 * ia64-tdep.c (ia64_gdbarch_init): Update.
9988 * i386-tdep.c (i386_gdbarch_init): Update.
9989 * hppa-tdep.c (hppa_gdbarch_init): Update.
9990 * h8300-tdep.c (h8300_gdbarch_init): Update.
9991 * frv-tdep.c (frv_gdbarch_init): Update.
9992 * cris-tdep.c (cris_gdbarch_init): Update.
9993 * avr-tdep.c (avr_gdbarch_init): Update.
9994 * arm-tdep.c (arm_gdbarch_init): Update.
9995 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9996
1bf6d5cc
AC
99972003-03-25 Andrew Cagney <cagney@redhat.com>
9998
9999 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10000 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10001 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10002 * gdbarch.h, gdbarch.c: Regenerate.
10003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10004 call_dummy_stack_adjust_p.
10005 * vax-tdep.c (vax_gdbarch_init): Ditto.
10006 * v850-tdep.c (v850_gdbarch_init): Ditto.
10007 * sh-tdep.c (sh_gdbarch_init): Ditto.
10008 * s390-tdep.c (s390_gdbarch_init): Ditto.
10009 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10010 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10011 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10012 * mips-tdep.c (mips_gdbarch_init): Ditto.
10013 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10014 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10016 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10017 * i386-tdep.c (i386_gdbarch_init): Ditto.
10018 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10019 * frv-tdep.c (frv_gdbarch_init): Ditto.
10020 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10021 * cris-tdep.c (cris_gdbarch_init): Ditto.
10022 * avr-tdep.c (avr_gdbarch_init): Ditto.
10023 * arm-tdep.c (arm_gdbarch_init): Ditto.
10024 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10025 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10026 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10027 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10028 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10029 call_dummy_stack_adjust_p.
10030 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10031 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10032 * sparc-tdep.c (sparc32_push_arguments): Update.
10033 * valops.c (hand_function_call): Update.
10034
71c08af0
CV
100352003-03-25 Corinna Vinschen <vinschen@redhat.com>
10036
10037 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10038 set_gdbarch_char_signed.
10039
30757f90
RE
100402003-03-25 Richard Earnshaw <rearnsha@arm.com>
10041
10042 PR cli/548
10043 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10044
03d48a7d
RE
100452003-03-25 Richard Earnshaw <rearnsha@arm.com>
10046
10047 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10048 (_initialize_arm_tdep): Don't set tm_print_insn.
10049
2cf6873c
AF
100502003-03-24 Adam Fedor <fedor@gnu.org>
10051
10052 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10053 * objc-lang.h: Add multiple inclusion protection.
10054 (start_msglist, add_msglist, end_msglist): Additional declarations.
10055
17c0759e
RE
100562003-03-24 Richard Earnshaw <rearnsha@arm.com>
10057
10058 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10059 value was renamed to ARM_FLOAT_SOFT_FPA.
10060
618ce49f
AC
100612003-03-23 Andrew Cagney <cagney@redhat.com>
10062
10063 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10064 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10065 * gdbarch.h, gdbarch.c: Regenerate.
10066 * valops.c (hand_function_call): Update.
10067 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10068 * frame.c (legacy_saved_regs_this_id): Update.
10069 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10070 * dummy-frame.h: Update.
10071 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10072 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10073 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10074 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10075 * config/m68k/tm-sun3.h: Update.
10076 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10078 * x86-64-tdep.c (x86_64_init_abi): Update.
10079 * vax-tdep.c (vax_gdbarch_init): Update.
10080 * v850-tdep.c (v850_gdbarch_init): Update.
10081 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10082 * sh-tdep.c (sh_gdbarch_init): Update.
10083 * s390-tdep.c (s390_gdbarch_init): Update.
10084 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10085 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10086 (frame_get_saved_regs): Update.
10087 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10088 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10089 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10090 * mips-tdep.c (mips_gdbarch_init): Update.
10091 * mcore-tdep.c (mcore_gdbarch_init): Update.
10092 * m68k-tdep.c (m68k_gdbarch_init): Update.
10093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10094 * ia64-tdep.c (ia64_gdbarch_init): Update.
10095 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10096 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10097 (i386_interix_back_one_frame): Update.
10098 * hppa-tdep.c (hppa_gdbarch_init): Update.
10099 (hppa_init_extra_frame_info): Update.
10100 * h8300-tdep.c (h8300_gdbarch_init): Update.
10101 * frv-tdep.c (frv_gdbarch_init): Update.
10102 * cris-tdep.c (cris_gdbarch_init): Update.
10103 * avr-tdep.c (avr_gdbarch_init): Update.
10104 * arm-tdep.c (arm_gdbarch_init): Update.
10105 * alpha-tdep.c (alpha_gdbarch_init): Update.
10106
fd50bc42
RE
101072003-03-22 Richard Earnshaw <rearnsha@arm.com>
10108
10109 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10110 (arm_get_fp_model): Declare.
10111 * arm-tdep.c (fp_model_strings): New string array.
10112 (arm_fp_model, current_fp_model): New variables.
10113 (arm_get_fp_model): New function.
10114 (arm_set_fp): New function.
10115 (set_fp_model_sfunc): New function.
10116 (show_fp_model): New function.
10117 (_initialize_arm_tdep): Add new command to set/show the FPU.
10118 (arm_extract_return_value): Use arm_get_fp_model.
10119 (arm_store_return_value): Likewise.
10120 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10121 to initialize the floating-point data types.
10122 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10123 model is FPA.
10124
26304000
RE
101252003-03-22 Richard Earnshaw <rearnsha@arm.com>
10126
10127 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10128 the current setting of each value.
10129 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10130 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10131 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10132 commands and add new version as subcommands of "set/show arm".
10133
afd7eef0
RE
101342003-03-22 Richard Earnshaw <rearnsha@arm.com>
10135
10136 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10137 (set_arm_command, show_arm_command): New functions.
10138 (_initialize_arm_tdep): Add them.
10139 (num_disassembly_options): Renamed from num_flavor_options.
10140 (valid_disassembly_styles): Renamed from valid_flavors.
10141 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10142 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10143 set_disassembly_flavor_sfunc.
10144 (set_disassembly_style): Renamed from set_disassembly_flavor.
10145 (arm_othernames): Updated.
10146 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10147 command. Add "set/show arm disassembly" commands. Deprecate
10148 "othernames" command.
10149
299a7944
RE
101502003-03-22 Richard Earnshaw <rearnsha@arm.com>
10151
10152 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10153 (arm-tdep.o): Depend on elf_arm_h.
10154
c1dac9e6
RE
101552003-03-22 Richard Earnshaw <rearnsha@arm.com>
10156
10157 * Makefile.in (coff_internal_h): Define.
10158 (arm-tdep.o): Update dependencies.
10159
2702d96c
RE
101602003-03-22 Richard Earnshaw <rearnsha@arm.com>
10161
10162 * arm-tdep.c (prologue_cache): Delete.
10163 (check_prologue_cache, save_prologue_cache): Delete.
10164 (arm_scan_prologue): Don't check or update the prologue_cache.
10165 (arm_gdb_arch_init): Don't initialize it.
10166 (_initialize_arm_tdep): Likewise.
10167
27d5d74b
SC
101682003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10169
10170 * MAINTAINERS (tui): Maintainer of tui code.
10171
1762d96d
CV
101722003-03-21 Corinna Vinschen <vinschen@redhat.com>
10173
10174 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10175 (i386-cygwin-tdep.o): Add dependencies.
10176 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10177 * i386-cygwin-tdep.c: New file.
10178 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10179 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10180
4c2e2391
AC
101812003-03-20 Andrew Cagney <cagney@redhat.com>
10182
f20d38b7
AC
10183 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10184 (handle_inferior_event): Remove code calling
10185 DYNAMIC_TRAMPOLINE_NEXTPC.
10186
0022b738
AC
10187 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10188 already has a full path.
10189
864dbc90
AC
10190 * main.c (gdb_main): Return 1.
10191 (captured_main): Call error to report an invalid interpreter.
10192
4c2e2391
AC
10193 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10194 * alpha-osf1-tdep.c: Include "gdb_string.h".
10195
5ef7553b
JB
101962003-03-19 J. Brobecker <brobecker@gnat.com>
10197
10198 Continuing work to convert the hppa targets to multiarch partial.
10199
10200 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10201 method, now that hppa_push_dummy_frame has a conformant prototype.
10202 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10203 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10204 for the switch to multiarch partial.
10205
7bde8967
KB
102062003-03-19 Kevin Buettner <kevinb@redhat.com>
10207
10208 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10209 when iss is issNull.
10210
b006a9e9
KB
102112003-03-18 Kevin Buettner <kevinb@redhat.com>
10212
10213 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10214 NUM_REGS bounds check.
10215
5e2e9765
KB
102162003-03-18 Kevin Buettner <kevinb@redhat.com>
10217
10218 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10219 * mips-tdep.c (gdb_assert.h): Include.
10220 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10221 (mips_register_name): Handle integer registers explicitly. Add
10222 bounds checking.
10223 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10224 (mips_lsi33k_reg_names): Don't list integer registers; they're
10225 handled by mips_register_name() now.
10226 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10227 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10228 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10229 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10230 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10231
a2867626
AC
102322003-03-18 Andrew Cagney <cagney@redhat.com>
10233
10234 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10235 a void pointer.
10236 * gdbtypes.h (print_scalar_formatted): Update declaration.
10237 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10238
06600e06
JB
102392003-03-18 J. Brobecker <brobecker@gnat.com>
10240
10241 * infrun.c (observer.h): Add #include.
10242 (normal_stop): Add call to observer_notify_normal_stop.
10243 * Makefile.in (infrun.o): Add dependency on observer.h.
10244
7daf4f5b
JB
102452003-03-18 J. Brobecker <brobecker@gnat.com>
10246
10247 Continuing work to convert the hppa targets to multiarch partial.
10248 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10249 parameter. Reformat comment.
10250 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10251 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10252 to match new profile.
10253
3371ccc0
JB
102542003-03-18 J. Brobecker <brobecker@gnat.com>
10255
10256 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10257 appear to be working in any case.
10258
4fbe891e
JB
102592003-03-18 J. Brobecker <brobecker@gnat.com>
10260
10261 * observer.c (observer_test_first_observer): New static variable.
10262 (observer_test_second_observer): Likewise.
10263 (observer_test_third_observer): Likewise.
10264 (observer_test_first_notification_function): New static function.
10265 (observer_test_second_notification_function): Likewise.
10266 (observer_test_third_notification_function): Likewise.
10267
a7ff40e7
JB
102682003-03-17 J. Brobecker <brobecker@gnat.com>
10269
10270 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10271 * somsolib.c (gdb_assert.h): Likewise.
10272 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10273 (somsolib.o): Likewise.
10274
26ca4152
AC
102752003-03-17 Andrew Cagney <cagney@redhat.com>
10276
10277 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10278 BFD. Simplify setting of di.endian.
10279
0a613259
AC
102802003-03-17 Andrew Cagney <cagney@redhat.com>
10281
10282 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10283 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10284
10285 From Elena Zannoni <ezannoni@redhat.com>
10286 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10287 vector and floating-point parameters.
10288 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10289 convention.
10290 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10291
1132738f
FN
102922003-03-17 Fernando Nasser <fnasser@redhat.com>
10293
10294 * MAINTAINERS: Remove my name from several maintainership roles.
10295
6dc42492
AC
102962003-03-17 Andrew Cagney <cagney@redhat.com>
10297
10298 Fix frame off-by-one bug.
10299 * frame-unwind.h (frame_this_id_ftype): Replace
10300 frame_unwind_id_ftype.
10301 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10302 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10303 with "prev_register".
10304 * frame-unwind.c (frame_unwind_find_by_pc): Return
10305 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10306 comment.
10307 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10308 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10309 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10310 (dummy_frame_unwind): Update.
10311 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10312 sentinel_frame_register_unwind.
10313 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10314 (sentinel_frame_unwinder): Update.
10315 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10316 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10317 * frame.c (create_sentinel_frame): Update. Initialize
10318 "prologue_cache" instead of "unwind_cache".
10319 (frame_register_unwind): Call this frame's prev_register with the
10320 next frame and this frame's prologue cache.
10321 (get_prev_frame): Simplify. Always call prev frame's this_id with
10322 this frame and prev frame's prologue cache. Document that this
10323 call is shifted one to the left when compared to the
10324 frame_register_unwind call.
10325 (legacy_saved_regs_prev_register): Replace
10326 frame_saved_regs_register_unwind.
10327 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10328 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10329 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10330 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10331 (d10v_frame_unwind): Update.
10332 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10333 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10334 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10335 "saved_regs" with "this_saved_regs".
10336
efd710d6
AC
103372003-03-16 Andrew Cagney <cagney@redhat.com>
10338
10339 * frame.c (frame_pop): Don't call target_store_registers. Fix
10340 problem reported by Mark Kettenis.
10341
4e259f09
MK
103422003-03-16 Mark Kettenis <kettenis@gnu.org>
10343
10344 * i386-tdep.c (i386_register_type): Renamed from
10345 i386_register_virtual_type. Adjust function signature.
10346 (i386_gdbarch_init): Set register_type instead of
10347 deprecated_max_register_raw_size,
10348 deprecated_max_register_virtual_size and register_virtual_type.
10349
055bb976
AC
103502003-03-14 Andrew Cagney <cagney@redhat.com>
10351
10352 * frame.c (get_prev_frame): When a legacy frame, always call
10353 legacy_get_prev_frame. Simplify unwind code using assumption that
10354 the unwinder is new.
10355 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10356 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10357 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10358
ac2adee5
AC
103592003-03-14 Andrew Cagney <cagney@redhat.com>
10360
10361 * frame.c (get_saved_register): Delete function.
10362 * frame.h (get_saved_register): Delete declaration.
10363 * xstormy16-tdep.c: Update comment.
10364 * regcache.h: Update comments.
10365 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10366 get_saved_register and extract_address, use
10367 frame_read_unsigned_register.
10368 (sparc_frame_saved_pc): Ditto.
10369 (sparc_get_saved_register): Instead of get_saved_register, use
10370 frame_register.
10371 (sparc_pop_frame): Ditto.
10372 * findvar.c: Update comments.
10373 (value_of_register): Call frame_register instead of
10374 get_saved_register.
10375 (value_from_register): Ditto.
10376 * config/sparc/tm-sparc.h: Update comment.
10377 * breakpoint.c: Update comment.
10378
129c1cd6
AC
103792003-03-14 Andrew Cagney <cagney@redhat.com>
10380
10381 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10382 GET_SAVED_REGISTER.
10383 * gdbarch.h, gdbarch.c: Re-generate.
10384 * frame.h: Update comments.
10385 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10386 * x86-64-tdep.c (x86_64_init_abi): Update.
10387 * sparc-tdep.c (sparc_gdbarch_init): Update.
10388 * sh-tdep.c (sh_gdbarch_init): Update.
10389 * mips-tdep.c (mips_gdbarch_init): Update.
10390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10391 * cris-tdep.c (cris_gdbarch_init): Update.
10392 * ia64-tdep.c (ia64_gdbarch_init): Update.
10393 * frame.c (frame_register): Update.
10394 (get_saved_register): Update.
10395 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10396
749b82f6
AC
103972003-03-13 Andrew Cagney <cagney@redhat.com>
10398
10399 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10400 * gdbarch.h, gdbarch.c: Regenerate.
10401 * valops.c (hand_function_call): Update comment.
10402 * stack.c (return_command): Update comment.
10403 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10404 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10406 * x86-64-tdep.c (x86_64_init_abi): Update.
10407 * vax-tdep.c (vax_gdbarch_init): Update.
10408 * v850-tdep.c (v850_gdbarch_init): Update.
10409 * sparc-tdep.c (sparc_gdbarch_init): Update.
10410 * sh-tdep.c (sh_gdbarch_init): Update.
10411 * s390-tdep.c (s390_gdbarch_init): Update.
10412 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10413 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10414 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10415 * mips-tdep.c (mips_gdbarch_init): Update.
10416 * mcore-tdep.c (mcore_gdbarch_init): Update.
10417 * m68k-tdep.c (m68k_gdbarch_init): Update.
10418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10419 * ia64-tdep.c (ia64_gdbarch_init): Update.
10420 * i386-tdep.c (i386_gdbarch_init): Update.
10421 * hppa-tdep.c (hppa_gdbarch_init): Update.
10422 * h8300-tdep.c (h8300_gdbarch_init): Update.
10423 * frv-tdep.c (frv_gdbarch_init): Update.
10424 * cris-tdep.c (cris_gdbarch_init): Update.
10425 * avr-tdep.c (avr_gdbarch_init): Update.
10426 * arm-tdep.c (arm_gdbarch_init): Update.
10427 * alpha-tdep.c (alpha_gdbarch_init): Update.
10428
1594fa56
AC
104292003-03-13 Andrew Cagney <cagney@redhat.com>
10430
10431 * frame.c (legacy_frame_p): New function.
10432 (get_prev_frame): Use legacy_frame_p.
10433 * frame.h (legacy_frame_p): Declare.
10434
7717fda3
V
104352003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10436
fbe586ae 10437 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10438 listing corrected.
10439
0c67cbe9
V
104402003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10441
fbe586ae 10442 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10443
03febf99
AC
104442003-03-12 Andrew Cagney <cagney@redhat.com>
10445
10446 * frame.c (get_prev_frame): Rename the frame parameter to
10447 "this_frame".
10448 (get_next_frame, legacy_get_prev_frame): Ditto.
10449
0a1e1ca1
AC
104502003-03-12 Andrew Cagney <cagney@redhat.com>
10451
10452 * frame.c (get_current_frame): Check target_has_registers before
10453 checking target_has_stack.
10454 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10455 instead of deprecated_selected_frame.
10456 * findvar.c (value_of_register): Pass "frame", not
10457 deprecated_selected_frame, to value_of_builtin_reg.
10458
a66a9c23
AC
104592003-03-12 Andrew Cagney <cagney@redhat.com>
10460
10461 * regcache.c (regcache_cooked_write_signed): New function.
10462 (regcache_cooked_write_unsigned): New function.
10463 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10464 (regcache_cooked_read_signed): Fix regnum in range assertion.
10465 * regcache.h (regcache_cooked_write_signed): Declare.
10466 (regcache_cooked_write_unsigned): Declare.
10467
8bedc050
AC
104682003-03-12 Andrew Cagney <cagney@redhat.com>
10469
10470 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10471 * gdbarch.h, gdbarch.c: Re-generate.
10472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10473 * x86-64-tdep.h: Update.
10474 * x86-64-tdep.c (x86_64_init_abi): Update.
10475 * v850-tdep.c (v850_gdbarch_init): Update.
10476 * sparc-tdep.c (sparc_gdbarch_init): Update.
10477 * sh-tdep.c (sh_gdbarch_init): Update.
10478 * s390-tdep.c (s390_gdbarch_init): Update.
10479 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10480 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10481 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10482 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10483 * mips-tdep.c (mips_gdbarch_init): Update.
10484 * mcore-tdep.c (mcore_gdbarch_init): Update.
10485 * m68k-tdep.c (m68k_gdbarch_init): Update.
10486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10487 * ia64-tdep.c (ia64_gdbarch_init): Update.
10488 * i386-tdep.c (i386_gdbarch_init): Update.
10489 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10490 * hppa-tdep.c (hppa_gdbarch_init): Update.
10491 * h8300-tdep.c (h8300_gdbarch_init): Update.
10492 * frv-tdep.c (frv_gdbarch_init): Update.
10493 * cris-tdep.c (cris_gdbarch_init): Update.
10494 * avr-tdep.c (avr_gdbarch_init): Update.
10495 * arm-tdep.c (arm_gdbarch_init): Update.
10496 * alpha-tdep.c (alpha_gdbarch_init): Update.
10497 * sh-tdep.c (sh_init_extra_frame_info): Update.
10498 (sh64_init_extra_frame_info): Update.
10499 * ns32knbsd-nat.c (frame_num_args): Update.
10500 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10501 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10502 (xstormy16_frame_chain_valid): Update.
10503 * vax-tdep.c (vax_saved_pc_after_call): Update.
10504 * v850-tdep.c (v850_frame_chain): Update.
10505 (v850_pop_frame): Update.
10506 (v850_init_extra_frame_info): Update.
10507 * sparc-tdep.c (setup_arbitrary_frame): Update.
10508 * ns32k-tdep.c (umax_frame_num_args): Update.
10509 * s390-tdep.c (s390_pop_frame_regular): Update.
10510 * mn10300-tdep.c (mn10300_frame_chain): Update.
10511 (mn10300_pop_frame_regular): Update.
10512 (mn10300_init_extra_frame_info): Update.
10513 * mips-tdep.c (mips_init_frame_pc_first): Update.
10514 (mips_frame_chain): Update.
10515 (mips_pop_frame): Update.
10516 * mcore-tdep.c (mcore_frame_chain): Update.
10517 (mcore_pop_frame): Update.
10518 (mcore_init_extra_frame_info): Update.
10519 * arch-utils.c (init_frame_pc_default): Update.
10520 * m68k-tdep.c (isi_frame_num_args): Update.
10521 (delta68_frame_num_args): Update.
10522 (news_frame_num_args): Update.
10523 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10524 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10525 (alpha_frame_chain): Update.
10526 (alpha_pop_frame): Update.
10527 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10528 (hppa_init_extra_frame_info): Update.
10529 (hppa_frame_chain): Update.
10530 (hppa_frame_chain_valid): Update.
10531 * cris-tdep.c (cris_init_extra_frame_info): Update.
10532 * avr-tdep.c (avr_init_extra_frame_info): Update.
10533 * arm-tdep.c (arm_frame_chain_valid): Update.
10534 (arm_init_extra_frame_info): Update.
10535 (arm_pop_frame): Update.
10536 * frame.c (frame_pc_unwind): Update.
10537 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10538 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10539 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10540 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10541 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10542 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10543
7a25a7c1
AC
105442003-03-12 Andrew Cagney <cagney@redhat.com>
10545
10546 Eliminate the need for POP_FRAME.
10547 * frame.c (do_frame_unwind_register): New function.
10548 (frame_pop): When no POP_FRAME, pop the frame using register
10549 unwind and a scratch regcache.
10550 (frame_saved_regs_pop): Delete function.
10551 (trad_frame_unwinder): Update.
10552 * d10v-tdep.c (d10v_frame_pop): Delete function.
10553 (d10v_frame_unwind): Update.
10554 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10555 (sentinel_frame_unwinder): Update.
10556 * dummy-frame.c (dummy_frame_pop): Delete function.
10557 (dummy_frame_unwind): Update.
10558 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10559 (struct frame_unwind): Update.
10560
2f38ef89
KB
105612003-03-11 Kevin Buettner <kevinb@redhat.com>
10562
10563 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10564 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10565 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10566 Do range checks on register number obtained from debugging info.
10567 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10568 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10569 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10570 mapping function.
10571 (do_fp_register_row): Fix typo which caused double type to be
10572 used when attempting to unpack a float.
10573
552f4abf
JB
105742003-03-11 J. Brobecker <brobecker@gnat.com>
10575
10576 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10577
e0d2ae16
AC
105782003-03-11 Andrew Cagney <cagney@redhat.com>
10579
10580 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10581 frame. Problem found by Corinna Vinschen.
10582
ddbfdd06
PM
105832003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10584
10585 * doublest.c (floatformat_from_length): Accept also
10586 the real size of 'long double' type.
10587
088b2ddc 105882003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10589
088b2ddc 10590 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10591 * breakpoint.c (bpstat_copy): Copy the command lines as well
10592 as the old value, to match what is freed in bpstat_clear.
10593
f56f77c1
DC
105942003-03-10 David Carlton <carlton@math.stanford.edu>
10595
10596 * minsyms.c (add_minsym_to_hash_table): Replace
10597 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10598 (compare_minimal_symbols, compact_minimal_symbols)
10599 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10600 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10601 of DEPRECATED_SYMBOL_MATCHES_NAME.
10602 (lookup_minimal_symbol_solib_trampoline): Ditto.
10603
5602984a
AC
106042003-03-10 Andrew Cagney <cagney@redhat.com>
10605
10606 * regcache.h (regcache_cooked_read_ftype): Define.
10607 (regcache_save, regcache_restore): Add a cooked_read parameter.
10608 * regcache.c (regcache_save, regcache_restore): Update.
10609 (do_cooked_read): New function.
10610 (regcache_cpy): Pass do_cooked_read to regcache_save and
10611 regcache_restore.
10612
8bedc050
AC
106132003-03-10 Andrew Cagney <cagney@redhat.com>
10614
10615 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10616 * gdbarch.h, gdbarch.c: Re-generate.
10617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10618 * x86-64-tdep.h: Update.
10619 * x86-64-tdep.c (x86_64_init_abi): Update.
10620 * v850-tdep.c (v850_gdbarch_init): Update.
10621 * sparc-tdep.c (sparc_gdbarch_init): Update.
10622 * sh-tdep.c (sh_gdbarch_init): Update.
10623 * s390-tdep.c (s390_gdbarch_init): Update.
10624 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10625 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10626 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10627 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10628 * mips-tdep.c (mips_gdbarch_init): Update.
10629 * mcore-tdep.c (mcore_gdbarch_init): Update.
10630 * m68k-tdep.c (m68k_gdbarch_init): Update.
10631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10632 * ia64-tdep.c (ia64_gdbarch_init): Update.
10633 * i386-tdep.c (i386_gdbarch_init): Update.
10634 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10635 * hppa-tdep.c (hppa_gdbarch_init): Update.
10636 * h8300-tdep.c (h8300_gdbarch_init): Update.
10637 * frv-tdep.c (frv_gdbarch_init): Update.
10638 * cris-tdep.c (cris_gdbarch_init): Update.
10639 * avr-tdep.c (avr_gdbarch_init): Update.
10640 * arm-tdep.c (arm_gdbarch_init): Update.
10641 * alpha-tdep.c (alpha_gdbarch_init): Update.
10642 * sh-tdep.c (sh_init_extra_frame_info): Update.
10643 (sh64_init_extra_frame_info): Update.
10644 * ns32knbsd-nat.c (frame_num_args): Update.
10645 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10646 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10647 (xstormy16_frame_chain_valid): Update.
10648 * vax-tdep.c (vax_saved_pc_after_call): Update.
10649 * v850-tdep.c (v850_frame_chain): Update.
10650 (v850_pop_frame): Update.
10651 (v850_init_extra_frame_info): Update.
10652 * sparc-tdep.c (setup_arbitrary_frame): Update.
10653 * ns32k-tdep.c (umax_frame_num_args): Update.
10654 * s390-tdep.c (s390_pop_frame_regular): Update.
10655 * mn10300-tdep.c (mn10300_frame_chain): Update.
10656 (mn10300_pop_frame_regular): Update.
10657 (mn10300_init_extra_frame_info): Update.
10658 * mips-tdep.c (mips_init_frame_pc_first): Update.
10659 (mips_frame_chain): Update.
10660 (mips_pop_frame): Update.
10661 * mcore-tdep.c (mcore_frame_chain): Update.
10662 (mcore_pop_frame): Update.
10663 (mcore_init_extra_frame_info): Update.
10664 * arch-utils.c (init_frame_pc_default): Update.
10665 * m68k-tdep.c (isi_frame_num_args): Update.
10666 (delta68_frame_num_args): Update.
10667 (news_frame_num_args): Update.
10668 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10669 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10670 (alpha_frame_chain): Update.
10671 (alpha_pop_frame): Update.
10672 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10673 (hppa_init_extra_frame_info): Update.
10674 (hppa_frame_chain): Update.
10675 (hppa_frame_chain_valid): Update.
10676 * cris-tdep.c (cris_init_extra_frame_info): Update.
10677 * avr-tdep.c (avr_init_extra_frame_info): Update.
10678 * arm-tdep.c (arm_frame_chain_valid): Update.
10679 (arm_init_extra_frame_info): Update.
10680 (arm_pop_frame): Update.
10681 * frame.c (frame_pc_unwind): Update.
10682 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10683 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10684 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10685 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10686 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10687 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10688
12cc2063
AC
106892003-03-10 Andrew Cagney <cagney@redhat.com>
10690
10691 * gdbarch.sh (gdbarch_unwind_pc): New method.
10692 * gdbarch.h, gdbarch.c: Regenerate.
10693 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10694 but use read_pc and FRAME_SAVED_PC as fall backs.
10695 (frame_saved_regs_pc_unwind): Delete function.
10696 (trad_frame_unwinder): Update.
10697 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10698 (struct frame_unwind): Update.
10699 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10700 (dummy_frame_unwind): Update.
10701 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10702 (sentinel_frame_unwinder): Update.
10703 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10704 (d10v_frame_unwind): Update.
10705 (d10v_unwind_pc): New function.
10706 (d10v_gdbarch_init): Set unwind_pc.
10707
ef840a37
AC
107082003-03-10 Andrew Cagney <cagney@redhat.com>
10709
a2ce2e56
AC
10710 * gdbarch.h: Re-generate.
10711
ef840a37
AC
10712 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10713 PC.
10714 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10715 the PC register.
10716
08f3424b
MK
107172003-03-08 Mark Kettenis <kettenis@gnu.org>
10718
10719 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10720
1248ede2
AC
107212003-03-08 Andrew Cagney <cagney@redhat.com>
10722
10723 * cli-out.c: Update copyright.
10724 (cli_out_data): Define typedef. Use instead of ui_out_data.
10725
f49bacc8
AC
107262003-03-08 Andrew Cagney <cagney@redhat.com>
10727
10728 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10729 the result.
10730
9b05f993
AC
107312003-03-07 Andrew Cagney <cagney@redhat.com>
10732
10733 * gdbarch.sh: Don't generate two macro definitions when an
10734 undefined macro taking no arguments.
10735 * gdbarch.h: Regenerate.
8ffd9b1b 10736
166f4c7b
ML
107372002-03-07 Michal Ludvig <mludvig@suse.cz>
10738
10739 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10740 (x86_64_unwind_dummy_id): New functions.
10741 (x86_64_init_abi): Register these two new functions.
10742
6d686a84
ML
107432003-03-07 Michal Ludvig <mludvig@suse.cz>
10744
10745 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10746 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10747 separate function.
10748 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10749
6314f104
AC
107502003-03-05 Andrew Cagney <cagney@redhat.com>
10751
10752 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10753 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10754 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10755 to use unwind_dummy_id when a dummy frame.
10756 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10757 predicate.
10758 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10759
ceea5145
AC
107602003-03-05 Andrew Cagney <cagney@redhat.com>
10761
10762 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10763 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10764 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10765 values.
10766
0d843116
AC
107672003-03-05 Andrew Cagney <cagney@redhat.com>
10768
10769 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10770 (struct d10v_unwind_cache): Delete field "frameless". Replace
10771 "next_addr" with "sp_offset". Add "r11_offset".
10772 (d10v_frame_unwind_cache): Update.
10773 (prologue_find_regs): Update. When "mv r11, sp", save the
10774 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10775 RN was saved in r11_offset.
10776
b2579786
AC
107772003-03-05 Andrew Cagney <cagney@redhat.com>
10778
10779 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10780 cached PC value in the next frame.
10781
218e5956
AC
107822003-03-05 Andrew Cagney <cagney@redhat.com>
10783
10784 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10785 "id_unwind_cache" with "id".
10786 (frame_id_unwind): Delete declaration.
10787 * frame.c (frame_id_unwind): Delete function.
10788 (get_prev_frame): Call the frame id unwind method directly. Store
10789 the returned next frame's ID value in NEXT_FRAME. Note that there
10790 is a problem with the wrong unwind ID being called with the wrong
10791 unwind cache.
10792
ed363b1b
DJ
107932003-03-05 Daniel Jacobowitz <drow@mvista.com>
10794
10795 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10796
fe1f4a5e
DJ
107972003-03-05 James Ingham <jingham@apple.com>
10798 Daniel Jacobowitz <drow@mvista.com>
10799
10800 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10801 (auto_cp_abi): New variable.
10802 (current_cp_abi, num_cp_abis): Make static.
10803 (CP_ABI_MAX): Define.
10804 (cp_abis): Turn into an array.
10805 (value_virtual_fn_field): Fix formatting.
10806 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10807 takes a pointer.
10808 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10809 (list_cp_abis, _initialize_cp_abi): New functions.
10810 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10811 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10812 switch_to_cp_abi. Update prototype for register_cp_abi.
10813 * Makefile.in (cp-abi.o): Update dependencies.
10814 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10815 instead of switch_to_cp_abi.
10816 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10817 register_cp_abi.
10818 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10819 register_cp_abi.
10820 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10821
e4adbba9
DJ
108222003-03-05 Daniel Jacobowitz <drow@mvista.com>
10823
10824 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10825 * dwarf2loc.c: Include "regcache.h".
10826 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10827 register_size.
10828 * Makefile.in (dwarf2loc.o): Update dependencies.
10829
91ccbfc1
TR
108302003-03-04 Theodore A. Roth <troth@openavr.org>
10831
10832 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10833 number of io registers reported by remote target is not a multiple of
10834 step.
10835
3d4e8fd2
DC
108362003-03-04 David Carlton <carlton@math.stanford.edu>
10837
10838 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10839 (lookup_symbol_aux_psymtabs): Update call to
10840 lookup_partial_symbol.
10841 (lookup_transparent_type, find_main_psymtab)
10842 (make_symbol_overload_list): Ditto.
10843
ed42d87b
KH
108442003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10845
10846 * MAINTAINERS (Write after approval): Update my email address.
10847
a0ed5532
AC
108482003-03-03 Andrew Cagney <cagney@redhat.com>
10849
10850 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10851 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10852 predicate. Replace MAX_REGISTER_RAW_SIZE.
10853 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10854 MAX_REGISTER_VIRTUAL_SIZE.
10855 * regcache.c (legacy_max_register_raw_size): New function.
10856 (legacy_max_register_virtual_size): New function.
10857 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10858 (MAX_REGISTER_RAW_SIZE): Define.
10859 (legacy_max_register_raw_size): Declare.
10860 (legacy_max_register_virtual_size): Declare.
10861 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10862 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10863 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10864 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10865 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10866 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10867 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10868 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10869 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10871 * vax-tdep.c (vax_gdbarch_init): Update.
10872 * v850-tdep.c (v850_gdbarch_init): Update.
10873 * sparc-tdep.c (sparc_gdbarch_init): Update.
10874 * sh-tdep.c (sh_gdbarch_init): Update.
10875 * s390-tdep.c (s390_gdbarch_init): Update.
10876 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10878 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10879 * mips-tdep.c (mips_gdbarch_init): Update.
10880 * mcore-tdep.c (mcore_gdbarch_init): Update.
10881 * m68k-tdep.c (m68k_gdbarch_init): Update.
10882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10883 * ia64-tdep.c (ia64_gdbarch_init): Update.
10884 * i386-tdep.c (i386_gdbarch_init): Update.
10885 * hppa-tdep.c (hppa_gdbarch_init): Update.
10886 * h8300-tdep.c (h8300_gdbarch_init): Update.
10887 * frv-tdep.c (frv_gdbarch_init): Update.
10888 * cris-tdep.c (cris_gdbarch_init): Update.
10889 * avr-tdep.c (avr_gdbarch_init): Update.
10890 * arm-tdep.c (arm_gdbarch_init): Update.
10891 * alpha-tdep.c (alpha_gdbarch_init): Update.
10892 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10893 max_register_raw_size or max_register_virtual_size.
10894
8e437497
DC
108952003-03-03 David Carlton <carlton@math.stanford.edu>
10896
10897 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10898 SYMBOL_MATCHES_NAME, add comment.
10899 (SYMBOL_MATCHES_NATURAL_NAME): New.
10900 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10901 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10902 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10903 * symtab.c (lookup_partial_symbol): Use
10904 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10905 unhelpful comment.
10906 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10907 SYMBOL_MATCHES_NAME.
10908 Fix for PR c++/33.
10909
25120b0d
DC
109102003-03-03 David Carlton <carlton@math.stanford.edu>
10911
10912 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10913 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10914 by regexp matching against SYMBOL_NATURAL_NAME.
10915
78a11fb4
DC
109162003-03-03 David Carlton <carlton@math.stanford.edu>
10917
10918 * linespec.c (find_method): Extract code into collect_methods.
10919 (collect_methods): New.
10920
645dd519
MK
109212003-03-02 Mark Kettenis <kettenis@gnu.org>
10922
b4700d91
MK
10923 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10924 get_frame_base.
10925
645dd519
MK
10926 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10927 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10928
0aa7e1aa
SC
109292003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10930
8ffd9b1b 10931 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10932 and not regnum when summing the size of all registers up to regnum.
10933
f30ee0bc
AC
109342003-03-01 Andrew Cagney <cagney@redhat.com>
10935
10936 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10937 FRAME_INIT_SAVED_REGS.
10938 * gdbarch.h, gdbarch.c: Regenerate.
10939 * stack.c (frame_info): Update.
10940 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10941 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10942 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10943 * ns32k-tdep.c (ns32k_pop_frame): Update.
10944 * mips-tdep.c (mips_pop_frame): Update.
10945 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10946 * ia64-tdep.c (ia64_frame_chain): Update.
10947 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10948 (ia64_frameless_function_invocation): Update.
10949 (ia64_init_extra_frame_info): Update.
10950 (ia64_pop_frame_regular): Update.
10951 * frame.h (struct frame_info): Update comment.
10952 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10953 * frame.c (frame_saved_regs_register_unwind): Update.
10954 (frame_saved_regs_register_unwind): Update.
10955 (deprecated_generic_get_saved_register): Update.
10956 * cris-tdep.c: Update comment.
10957 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10958 Rename macro.
10959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10960 * x86-64-tdep.c (x86_64_init_abi): Update.
10961 * vax-tdep.c (vax_gdbarch_init): Update.
10962 * v850-tdep.c (v850_gdbarch_init): Update.
10963 * sparc-tdep.c (sparc_gdbarch_init): Update.
10964 * sh-tdep.c (sh_gdbarch_init): Update.
10965 * s390-tdep.c (s390_gdbarch_init): Update.
10966 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10967 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10968 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10969 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10970 * mips-tdep.c (mips_gdbarch_init): Update.
10971 * mcore-tdep.c (mcore_gdbarch_init): Update.
10972 * m68k-tdep.c (m68k_gdbarch_init): Update.
10973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10974 * ia64-tdep.c (ia64_gdbarch_init): Update.
10975 * i386-tdep.c (i386_gdbarch_init): Update.
10976 * frv-tdep.c (frv_gdbarch_init): Update.
10977 * avr-tdep.c (avr_gdbarch_init): Update.
10978 * arm-tdep.c (arm_gdbarch_init): Update.
10979 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10980
42fa7c0f
AC
109812003-03-01 Andrew Cagney <cagney@redhat.com>
10982
10983 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10984 option enum and switch. When no windows, set the interpreter to
10985 INTERP_CONSOLE.
8ffd9b1b 10986
49c7e338
AC
109872003-03-01 Andrew Cagney <cagney@redhat.com>
10988
10989 * main.c (captured_main): Replace magic option characters with an
10990 enum.
10991
e9582e71
AC
109922003-03-01 Andrew Cagney <cagney@redhat.com>
10993
10994 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10995 INIT_EXTRA_FRAME_INFO.
10996 * gdbarch.h, gdbarch.c: Regenerate.
10997 * arm-tdep.c: Update comments.
10998 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10999 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11000 * frame.h, avr-tdep.c: Ditto.
11001 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11002 (create_new_frame, legacy_get_prev_frame): Ditto.
11003 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11004 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11006 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11007 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11008 * v850-tdep.c (v850_gdbarch_init): Ditto.
11009 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11010 * sh-tdep.c (sh_gdbarch_init): Ditto.
11011 * s390-tdep.c (s390_gdbarch_init): Ditto.
11012 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11013 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11014 * mips-tdep.c (mips_gdbarch_init): Ditto.
11015 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11017 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11018 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11019 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11020 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11021 * frv-tdep.c (frv_gdbarch_init): Ditto.
11022 * cris-tdep.c (cris_gdbarch_init): Ditto.
11023 * avr-tdep.c (avr_gdbarch_init): Ditto.
11024 * arm-tdep.c (arm_gdbarch_init): Ditto.
11025 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11026 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11027
35cac7cf
AC
110282003-03-01 Andrew Cagney <cagney@redhat.com>
11029
11030 * gdbarch.sh (register_type): New function with predicate.
11031 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11032 * gdbarch.h, gdbarch.c: Re-generate.
11033 * arch-utils.c (generic_register_byte): Use generic_register_size.
11034 (generic_register_size): When available, use
11035 gdbarch_register_type.
11036 * regcache.c (init_regcache_descr): When available, initialize the
11037 register type array using gdbarch_register_type. If the
11038 architecture supplies gdbarch_register_type, do not use the legacy
11039 regcache layout.
11040 * d10v-tdep.c (d10v_register_type): Replace
11041 d10v_register_virtual_type.
11042 (d10v_gdbarch_init): Set register_type instead of
11043 register_virtual_type.
11044
7b83296f
AC
110452003-03-01 Andrew Cagney <cagney@redhat.com>
11046
11047 * Makefile.in (ax-gdb.o): Update dependencies.
11048 * ax-gdb.c: Include "regcache.h".
11049 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11050 * findvar.c (value_of_register): Ditto.
11051 * infcmd.c (default_print_registers_info): Ditto.
11052
eadc1c87
MK
110532003-03-01 Mark Kettenis <kettenis@gnu.org>
11054
11055 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11056 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11057
14143612
MK
110582003-03-01 Mark Kettenis <kettenis@gnu.org>
11059
11060 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11061 of STREQ.
11062
a55cc764
DJ
110632003-02-28 Daniel Jacobowitz <drow@mvista.com>
11064
11065 * Makefile.in (dwarf2loc.o): Update dependencies.
11066 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11067 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11068 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11069 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11070 (locexpr_tracepoint_var_ref): New function.
11071 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11072
08a617da
AC
110732003-02-28 Andrew Cagney <cagney@redhat.com>
11074
11075 * regcache.c (register_size): New function.
11076 * regcache.h (register_size): Declare
11077 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11078 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11079
4224873a
DC
110802003-02-28 David Carlton <carlton@math.stanford.edu>
11081
11082 * linespec.c (decode_compound): Extract code into find_method.
11083 (find_method): New.
11084
ccdc5d7f
JB
110852003-02-28 J. Brobecker <brobecker@gnat.com>
11086
11087 * Makefile.in: Add rules to build and link in observer.o.
11088
974e8ced
JB
110892003-02-27 J. Brobecker <brobecker@gnat.com>
11090
11091 * observer.c: Minor comments edits.
11092
7a28f973
JB
110932003-02-27 J. Brobecker <brobecker@gnat.com>
11094
11095 * observer.h, observer.c: New file.
11096
27cddce2
AC
110972003-02-27 Andrew Cagney <cagney@redhat.com>
11098
11099 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11100
b94a41a1
SC
111012003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11102
11103 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11104 (M6812_OP_STS_EXT): Likewise.
11105 (m6811_prologue): Use the above to recognize prologue.
11106 (m6812_prologue): Likewise.
11107
c8be8951
DC
111082003-02-27 David Carlton <carlton@math.stanford.edu>
11109
11110 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11111 SYMBOL_PRINT_NAME.
11112 (compare_psymbols): Ditto.
11113 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11114
d05bb1fc
MS
111152003-02-27 Michael Snyder <msnyder@redhat.com>
11116
4e845cd3
MS
11117 * f-lang.c (build_fortran_types): New function.
11118 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11119 * doublest.c (extract_floating): Fix warning text.
11120
f3824013
AC
111212003-02-27 Andrew Cagney <cagney@redhat.com>
11122
11123 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11124 predicate. Replaces PUSH_DUMMY_FRAME.
11125 * gdbarch.h, gdbarch.c: Regnerate.
11126 * valops.c (hand_function_call): Update. Call
11127 generic_push_dummy_frame directly.
11128 * vax-tdep.c (vax_gdbarch_init): Update.
11129 * sparc-tdep.c (sparc_gdbarch_init): Update.
11130 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11131 * m68k-tdep.c (m68k_gdbarch_init): Update.
11132 * hppa-tdep.c (hppa_gdbarch_init): Update.
11133 * alpha-tdep.c (alpha_gdbarch_init): Update.
11134 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11135 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11136 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11137 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11138 push_dummy_frame to generic_push_dummy_frame.
11139 * v850-tdep.c (v850_gdbarch_init): Ditto.
11140 * sh-tdep.c (sh_gdbarch_init): Ditto.
11141 * s390-tdep.c (s390_gdbarch_init): Ditto.
11142 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11143 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11144 * mips-tdep.c (mips_gdbarch_init): Ditto.
11145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11147 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11148 * i386-tdep.c (i386_gdbarch_init): Ditto.
11149 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11150 * frv-tdep.c (frv_gdbarch_init): Ditto.
11151 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11152 * cris-tdep.c (cris_gdbarch_init): Ditto.
11153 * avr-tdep.c (avr_gdbarch_init): Ditto.
11154 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11155
ad188201
KB
111562003-02-26 Kevin Buettner <kevinb@redhat.com>
11157
11158 * mips-tdep.c (show_mips_abi): New function.
11159 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11160 command ``show mips abi''.
11161
6b37567a 111622003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11163
6b37567a 11164 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11165 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11166 more sline entries have been seen for the function.
11167
d3e0a5bf
MC
111682003-02-26 Michael Chastain <mec@shout.net>
11169
11170 * configure: Regenerate with autoconf 000227.
11171
18972eea
MC
111722003-02-26 Michael Chastain <mec@shout.net>
11173
11174 Close PR build/660.
11175 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11176 for old libc5/glibc.
11177 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11178
0bbde931
KW
111792003-02-26 Kris Warkentin <kewarken@qnx.com>
11180
11181 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11182 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11183
27ca5dad
MC
111842003-02-26 Michael Chastain <mec@shout.net>
11185
11186 * configure.in: New variable HAVE_UINTPTR_T.
11187 * configure, config.in: Regenerated.
11188
6f88d630
DJ
111892003-02-26 Daniel Jacobowitz <drow@mvista.com>
11190
11191 Fix PR build/1097.
11192 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11193
b14185ce
AC
111942003-02-25 Andrew Cagney <cagney@redhat.com>
11195
11196 * frame.c (get_prev_frame): Add comment on check for
11197 inside_entry_func. Only check for inside_entry_file when not a
11198 dummy and not a sentinel. Check that the new frame is not inner
11199 to the old frame.
11200
ac2bd0a9
AC
112012003-02-25 Andrew Cagney <cagney@redhat.com>
11202
11203 * frame.c (frame_debug): New variable.
11204 (_initialize_frame): Add "set/show debug frame" command.
11205 (get_prev_frame): When frame_debug, print reason why unwind
11206 failed.
11207
b18a0fd2
MC
112082003-02-25 Michael Chastain <mec@shout.net>
11209
11210 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11211 to avoid uintptr_t definition problems.
11212
22abf04a
DC
112132003-02-25 David Carlton <carlton@math.stanford.edu>
11214
11215 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11216 (SYMBOL_LINKAGE_NAME): Ditto.
11217 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11218 SYMBOL_LINKAGE_NAME.
11219 (struct general_symbol_info): Expand comment.
11220 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11221 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11222 (SYMBOL_MATCHES_REGEXP): Ditto.
11223 * symtab.c (symbol_natural_name): New function.
11224 * objfiles.h: Replace all uses of SYMBOL_NAME by
11225 DEPRECATED_SYMBOL_NAME.
11226 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11227 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11228 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11229 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11230 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11231 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11232 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11233 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11234 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11235 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11236 * ada-exp.y: Ditto.
11237 * ada-exp.y: Update copyright.
11238 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11239 * cp-valprint.c: Ditto.
11240
1a5848f6
JJ
112412003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11242
11243 * infptrace.c (detach): Do not flag error if ptrace detach fails
11244 and errno is set to ESRCH.
11245
7343d46a
AC
112462003-02-24 Andrew Cagney <cagney@redhat.com>
11247
11248 * infptrace.c (udot_info): Change type of udot_off to long. Use
11249 paddr when printing udot_off's value.
11250
49fa1dc2
DC
112512003-02-24 David Carlton <carlton@math.stanford.edu>
11252
11253 * symtab.c (make_symbol_overload_list): Only read in partial
11254 symtabs containing a matching partial symbol.
11255
0fe19209
DC
112562003-02-24 David Carlton <carlton@math.stanford.edu>
11257
11258 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11259 do the comparison, not strcmp.
11260 * symfile.c (compare_psymbols): Ditto.
11261 * defs.h: Declare strcmp_iw_ordered.
11262 * utils.c (strcmp_iw_ordered): New function.
11263
8e3ee7b5
JB
112642003-02-24 Jim Blandy <jimb@redhat.com>
11265
11266 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11267 support, shared libs): Remove my name from here, to better reflect
11268 reality.
11269
7df1a324
KW
112702003-02-24 Kris Warkentin <kewarken@qnx.com>
11271
11272 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11273 (target_ops): Add to_have_continuable_watchpoint.
11274 * target.c (update_current_target): Add INHERIT line for
11275 to_have_continuable_watchpoint.
11276 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11277 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11278 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11279 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11280
d1c76907
EZ
112812003-02-24 Elena Zannoni <ezannoni@redhat.com>
11282
11283 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11284 maintainership.
11285
2610b0bf
KW
112862003-02-24 Kris Warkentin <kewarken@qnx.com>
11287
f46169db
KW
11288 * solib.c (solib_open): Call target defined search function after
11289 failing with solib-search-path.
11290 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11291 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11292
9a3c34fe
KW
112932003-02-24 Kris Warkentin <kewarken@qnx.com>
11294
f46169db 11295 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11296
2417dd25
SC
112972003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11298
11299 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11300
b631436b
SC
113012003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11302
11303 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11304 (m68hc11_add_reggroups): New function.
11305 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11306 (m68hc11_gdbarch_init): Install the reggroups.
11307 (_initialize_m68hc11_tdep): Initialize them.
11308
0aa8c1e4
JW
113092003-02-21 James E Wilson <wilson@tuliptree.org>
11310
11311 * MAINTAINERS: Update my email address.
11312
50ceaba5
DC
113132003-02-21 David Carlton <carlton@math.stanford.edu>
11314
11315 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11316
4c2df51b
DJ
113172003-02-21 Daniel Jacobowitz <drow@mvista.com>
11318
11319 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11320 * symtab.h: Add opaque declarations of struct axs_value and
11321 struct agent_expr.
11322 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11323 (struct location_funcs): New type.
11324 (struct symbol): Add "loc" to aux_value.
11325 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11326 * dwarf2read.c: Include "dwarf2expr.h".
11327 (dwarf2_symbol_mark_computed): New function.
11328 (read_func_scope): Use it.
11329 (var_decode_location): New function.
11330 (new_symbol): Use it.
11331 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11332
11333 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11334 (dwarf2expr_h, dwarf2loc_h): New variables.
11335 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11336 (dwarf2expr.o, dwarf2loc.o): New rules.
11337 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11338 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11339 LOC_COMPUTED_ARG.
11340 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11341 * m2-exp.y (yylex): Likewise.
11342 * printcmd.c (address_info, print_frame_args): Likewise.
11343 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11344 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11345 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11346 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11347 * symtab.c (lookup_block_symbol): Likewise.
11348
5784d15e
AF
113492003-02-20 Adam Fedor <fedor@gnu.org>
11350
11351 * symtab.h: Remove objc_specific struct
11352 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11353 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11354 Have language_objc use cplus_specific struct.
11355
d4cad8db
TT
113562003-02-20 Tom Tromey <tromey@redhat.com>
11357
11358 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11359 TYPE_NAME, when printing a String value. PR java/1075.
11360
2f9a90b4
AF
113612003-02-20 Adam Fedor <fedor@gnu.org>
11362
d38074a8 11363 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11364 * objc-lang.c (find_methods): Make static.
2f9a90b4 11365
6f17862b
CF
113662003-02-20 Christopher Faylor <cgf@redhat.com>
11367
11368 * win32-nat.c (get_image_name): Check return value from
11369 ReadProcessMemory.
11370 (child_xfer_memory): Ditto.
11371
715d1656
AO
113722003-02-20 Alexandre Oliva <aoliva@redhat.com>
11373
11374 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11375 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11376 '${exec_prefix}' (in addition to the expansion thereof) as
11377 relocatable.
11378 * configure: Rebuilt.
11379
b1262a02
DC
113802003-02-20 David Carlton <carlton@math.stanford.edu>
11381
11382 * symtab.c (search_symbols): Revert the search_symbols part of my
11383 2002-12-23 patch. Add comment.
11384
7134143f
DJ
113852002-02-20 Daniel Jacobowitz <drow@mvista.com>
11386
11387 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11388 * dbxread.c (elfstab_build_psymtabs): Don't call
11389 install_minimal_symbols.
11390 (stabsect_build_psymtabs): Likewise.
11391 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11392 earlier.
11393 * somread.c (som_symfile_read): Call install_minimal_symbols
11394 and do_cleanups earlier.
11395 * nlmread.c (nlm_symfile_read): Likewise.
11396 * mdebugread.c (elfmdebug_build_psymtabs): Call
11397 install_minimal_symbols and make appropriate cleanups.
11398
cf466558
KB
113992003-02-20 Kevin Buettner <kevinb@redhat.com>
11400
11401 * solib.c (reload_shared_libraries): New function.
11402 (_initialize_solib): Add callbacks for ``set solib-search-path''
11403 and ``set solib-absolute-prefix''.
11404
de5ad195
DC
114052003-02-20 David Carlton <carlton@math.stanford.edu>
11406
11407 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11408 expand comment.
11409 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11410 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11411 * ada-typeprint.c (ada_typedef_print): Ditto.
11412 * ax-gdb.c (gen_var_ref): Ditto.
11413 * breakpoint.c (print_one_breakpoint): Ditto.
11414 * buildsym.c (finish_block): Ditto.
11415 * c-valprint.c (c_val_print): Ditto.
11416 * expprint.c (print_subexp): Ditto.
11417 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11418 * infcmd.c (jump_command): Ditto.
11419 * linespec.c (decode_line_2, decode_compound): Ditto.
11420 * maint.c (maintenance_translate_address): Ditto.
11421 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11422 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11423 Ditto.
8ffd9b1b
AJ
11424 * p-valprint.c (pascal_val_print): Ditto.
11425 * stabsread.c (define_symbol): Ditto.
de5ad195 11426 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11427 (print_frame_arg_vars, return_command): Ditto.
11428 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11429 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11430 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11431 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11432 (rbreak_command): Ditto.
11433 * tracepoint.c (tracepoints_info): Ditto.
11434 * typeprint.c (typedef_print): Ditto.
11435 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11436 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11437 * ada-typeprint.c: Update Copyright.
11438 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11439 * tracepoint.c, cli/cli-cmds.c: Ditto.
11440
f796e4be
KB
114412003-02-20 Kevin Buettner <kevinb@redhat.com>
11442
11443 * frame.c (generic_unwind_get_saved_register): Make non-static.
11444 * frame.h (generic_unwind_get_saved_register): Declare.
11445 * mips-tdep.c (read_next_frame_reg): Fetch register from
11446 current regcache when frame is NULL.
11447 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11448 that must be NULL.
11449 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11450 instead of frame_register_unwind().
11451
836cc9f4
AC
114522003-02-20 Andrew Cagney <ac131313@redhat.com>
11453
11454 * remote-sim.c (gdbsim_insert_breakpoint)
11455 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11456 code.
11457
501eef12
AC
114582003-02-20 Andrew Cagney <ac131313@redhat.com>
11459
11460 * remote.c (_initialize_remote): Add commands "set/show remote
11461 hardware-watchpoint-limit" and "set/show remote
11462 hardware-breakpoint-limit".
11463 (remote_hw_watchpoint_limit): Initialize to -1.
11464 (remote_hw_breakpoint_limit): Ditto.
11465 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11466
1b6bc7e0
CF
114672003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11468
11469 * coff-pe-read.c: New file - support reading of minimal symbols from a
11470 portable executable using the export table.
11471 * coff-pe-read.h: New file.
11472 * coffread.c: Include coff-pe-read.h.
11473 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11474 debugging symbols found.
11475 * Makefile.in (SFILES): Add coff-pe-read.o.
11476 (coff_pe_read_h): Define.
11477 (COMMON_OBS): Add coff-pe-read.o.
11478 (coffread.o): Add coff_pe_read_h dependency.
11479 (coff-pe-read.o): New target.
11480
fe898f56
DC
114812003-02-19 David Carlton <carlton@math.stanford.edu>
11482
11483 * Makefile.in (SFILES): Add block.c.
11484 (block_h): New.
11485 (COMMON_OBS): Add block.o.
11486 (block.o): New.
11487 (x86-64-tdep.o): Add $(block_h).
11488 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11489 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11490 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11491 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11492 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11493 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11494 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11495 * value.h: Add opaque declaration for struct block.
11496 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11497 * ada-lang.h: Ditto.
11498 * x86-64-tdep.c: #include "block.h"
11499 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11500 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11501 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11502 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11503 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11504 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11505 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11506 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11507 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11508 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11509 * symtab.c (block_function): Ditto.
11510 (contained_in): Ditto.
11511 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11512 block.h. Add opaque declaration for struct block.
11513 * symtab.h: Move block_function and contained_in declarations to
11514 block.h. Add opaque declarations for struct block, struct
11515 blockvector.
11516 (struct block): Move to block.h.
11517 (struct blockvector): Ditto.
11518 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11519 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11520 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11521 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11522 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11523 Ditto.
11524 * block.c: New file.
11525 * block.h: New file.
11526
173345b5
TR
115272003-02-19 Theodore A. Roth <troth@openavr.org>
11528
11529 * avr-tdep.c (avr_extract_return_value): Remove function.
11530 (avr_store_return_value): Remove function.
11531 (avr_extract_struct_value_address): Remove function.
11532 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11533
338ef23d
AC
115342003-02-19 Andrew Cagney <ac131313@redhat.com>
11535
11536 * rs6000-tdep.c: Include "gdb_assert.h".
11537 (registers_e500): Add "acc" and "spefscr".
11538 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11539 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11540 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11541 really is "r0".
11542 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11543
5412f5f3
KS
115442003-02-18 Keith Seitz <keiths@redhat.com>
11545
11546 * Makefile.in: Add gdbtk-interps.c.
11547
881324eb
KB
115482003-02-18 Kevin Buettner <kevinb@redhat.com>
11549
11550 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11551 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11552
6a2f5abf
AC
115532003-02-18 Andrew Cagney <cagney@redhat.com>
11554
11555 * symtab.h (struct objfile): Add opaque declaration.
11556
54c7009d
EZ
115572003-02-18 Elena Zannoni <ezannoni@redhat.com>
11558
11559 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11560 * dbxread.c (process_one_symbol): Use last_function_start rather
11561 than function_start_offset to find the real beginning of the
11562 current function. The latter is just the text section offset on
11563 some systems, the former is always the real function start.
54c7009d 11564
7ee6d7eb
AC
115652003-02-17 Andrew Cagney <cagney@redhat.com>
11566
11567 * configure.in: Revert ${target} != ${host}.
11568
2846da9b
AC
115692003-02-17 Andrew Cagney <ac131313@redhat.com>
11570
11571 * configure.in (Makefile): Use the test ${target} != ${host},
11572 instead of the absence of the "nm.h" file, to determine of the
11573 configuration non-native.
11574 * configure: Regenerate.
8ffd9b1b 11575
3b27aeea
EZ
115762003-02-14 Elena Zannoni <ezannoni@redhat.com>
11577
fbe586ae 11578 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11579
11580 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11581 conditionalize tui_active test.
11582 (lookup_cmd_1): Ditto.
11583
b0b1c2c0
MK
115842003-02-14 Mark Kettenis <kettenis@gnu.org>
11585
11586 * configure.in: Add check for _etext.
11587 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11588 available.
11589 * config.in, configure: regenerated.
11590
8f05cde5
DJ
115912003-02-14 Daniel Jacobowitz <drow@mvista.com>
11592
11593 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11594
021e7609
AC
115952003-02-14 Andrew Cagney <ac131313@redhat.com>
11596
11597 * main.c (tui_version): Delete variable.
11598 (captured_main): When --tui, set interpreter_p to "tui" instead of
11599 enabling tui_version.
11600 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11601 tui_version.
11602 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11603 * cli/cli-cmds.c (disassemble_command): Ditto.
11604 * defs.h (tui_version): Delete declaration.
11605 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11606 (tui-interp.o): Add rules.
11607 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11608
e325dcec
CF
116092003-02-14 Christopher Faylor <cgf@redhat.com>
11610
36ffb041 11611 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11612 just-loaded dll.
11613
c4f90d87
JM
116142003-02-12 Jason Molenda (jmolenda@apple.com)
11615
fbe586ae
RH
11616 * symmisc.c (print_objfile_statistics): Include information about
11617 the number of psymtabs and symtabs in each object file.
c4f90d87 11618
e46e5ccd
KS
116192003-02-13 Keith R Seitz <keiths@redhat.com>
11620
11621 * main.h (struct captured_main_args): Add interpreter_p.
11622 * main.c (captured_main): Initialize interpreter_p from context.
11623 * gdb.c (main): Set interpreter_p argument.
11624 * Makefile.in (gdb.o): Add dependency for interps.h.
11625
fe97fe9c
AC
116262003-02-12 Andrew Cagney <ac131313@redhat.com>
11627
11628 * event-top.c (cli_command_loop): Delete declaration.
11629 (_initialize_event_loop): Delete function setting event_loop_hook.
11630 * event-top.h (cli_command_loop): Declare. Update copyright.
11631 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11632 * interps.c (current_interp_command_loop): When event_loop_p, call
11633 cli_command_loop.
11634
1cdac4ef
AC
116352003-02-12 Andrew Cagney <ac131313@redhat.com>
11636
11637 * interps.h (interp_command_loop_ftype): Change return type to
11638 void.
11639
48037ead
ML
116402003-02-12 Michal Ludvig <mludvig@suse.cz>
11641
11642 * x86-64-tdep.c (x86_64_extract_return_value)
11643 (x86_64_store_return_value): Use regcache instead of regbuf.
11644 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11645 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11646
033afc63
AC
116472003-02-11 Andrew Cagney <ac131313@redhat.com>
11648
11649 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11650 * aclocal.m4: Regenerate.
11651 * configure: Regenerate.
11652
11653 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11654 TCL_LD_SEARCH_FLAGS.
11655
40d02bca
ML
116562003-02-10 Michal Ludvig <mludvig@suse.cz>
11657
11658 * dwarf2cfi.c: Reindented.
11659
11308a41
AC
116602003-02-09 Andrew Cagney <ac131313@redhat.com>
11661
11662 * interps.c (clear_interpreter_hooks): Convert function definition
11663 to ISO C.
11664
e1c1c0f6
DC
116652003-02-07 David Carlton <carlton@math.stanford.edu>
11666
11667 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11668
ab5d3da6
KB
116692003-02-07 Kevin Buettner <kevinb@redhat.com>
11670
11671 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11672 (struct type): ...to here.
11673 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11674 field.
11675 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11676 (replace_type): Set length on all type variants for a given type.
11677
b8a92b82
AC
116782003-02-07 Andrew Cagney <ac131313@redhat.com>
11679
11680 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11681 <sys/stat.h>.
11682 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11683
5cb316ef
AC
116842003-02-06 Andrew Cagney <ac131313@redhat.com>
11685
2555fe1a
AC
11686 * Makefile.in (symm-nat.o): Update dependencies.
11687 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11688 (lynx-nat.o, ia64-linux-nat.): Ditto.
11689 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11690 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11691 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11692
44270758
AC
11693 * Makefile.in (inflow_h): Define.
11694 (procfs.o, inflow.o, procfs.o): Update dependencies.
11695 * inftarg.c (child_stop): Delete extern declaration of
11696 inferior_process_group. Include "inflow.h".
11697 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11698 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11699 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11700 (our_process_group, inferior_process_group): Extern declarations.
11701
df8f7274
AC
11702 * procfs.c: Include "gdb_assert.h".
11703
5cb316ef
AC
11704 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11705 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11706 * jv-typeprint.c (java_type_print_base): Ditto.
11707 * typeprint.c (typedef_print): Eliminate STREQ.
11708 * cli/cli-script.c (define_command, define_command): Ditto.
11709 * main.c (captured_main): Ditto.
11710 * values.c (lookup_internalvar): Ditto.
11711 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11712 within `if' conditional.
11713 * linespec.c (decode_line_2): Ditto.
11714 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11715 (bfd_openw_with_cleanup): Ditto.
11716
2a28ccea
MK
117172003-02-07 Mark Kettenis <kettenis@gnu.org>
11718
11719 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11720 legacy_extract_return_value and store_return_value to
11721 legacy_return_value.
11722
786b8124
CF
117232003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11724
11725 * win32-nat.c (get_relocated_section_addrs): New function. Find
11726 section load addresses for symbol handling in relocated DLLs.
11727 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11728
b871e4ec
FF
117292003-02-05 Fred Fish <fnf@intrinsity.com>
11730
11731 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11732 '=' and '!='.
11733 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11734 with '&' and '=='.
11735 (angel_RDI_info): Ditto.
11736 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11737 with '&' and '!='.
11738 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11739
4389a95a 117402003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11741 Keith Seitz <keiths@redhat.com>
11742 Elena Zannoni <ezannoni@redhat.com>
11743 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11744
11745 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11746 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11747 (SUBDIR_MI_OBS): Add "mi-interp.o".
11748 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11749 (SFILES): Add "interps.c".
11750 (COMMON_OBS): Add "interps.o".
11751 (interps_h, mi_main_h): Define.
11752 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11753 (mi-main.o, main.o, event-top.o): Update dependencies.
11754 * cli/cli-interp.c: New file.
11755 * interps.h, interps.c: New files.
11756 * top.c: (gdb_init): Don't install the default interpreter, handed
11757 by captured_main.
11758 * main.c: Include "interps.h".
11759 (interpreter_p): Note that it should malloc'ed.
11760 (captured_command_loop): Call current_interp_command_loop.
11761 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11762 xfree and xstrdup when updating interpreter_p. Install the
11763 default interpreter. Add hack to stop mi1's copyright notice
11764 being encoded.
11765 * event-top.h (gdb_setup_readline): Declare.
11766 (gdb_disable_readline): Declare.
11767 * event-top.c: Include "interps.h".
11768 (display_gdb_prompt): Call current_interp_display_prompt_p.
11769 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11770 gdb_stdlog, and gdb_stdtarg.
11771 (_initialize_event_loop): Don't call gdb_setup_readline.
11772 * cli-out.c (cli_out_set_stream): New function.
11773 * cli-out.h (cli_out_set_stream): Declare.
11774
ff3b5810
MK
117752003-02-06 Mark Kettenis <kettenis@gnu.org>
11776
11777 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11778 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11779 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11780 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11781 config/i386/i386v42mp.mt: Removed.
11782
5b729aa5
MK
117832003-02-05 Mark Kettenis <kettenis@gnu.org>
11784
11785 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11786 GDB_OSABI_SOLARIS.
11787
8cc15142
MC
117882003-02-05 Michael Chastain <mec@shout.net>
11789
11790 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11791 2.12.1 and earlier versions.
11792
5aa5d4b9
AC
117932003-02-05 Andrew Cagney <ac131313@redhat.com>
11794
11795 Remove orphaned hosts, targets and files.
11796 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11797 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11798 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11799 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11800 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11801 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11802 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11803 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11804 * config/sparc/tm-sp64sim.h: Delete.
11805 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11806 hosts.
11807 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11808 mips*-dec-mach3* targets.
11809
b68767c1
MC
118102003-02-04 Michael Chastain <mec@shout.net>
11811
11812 * NEWS: Fix typo: sepcifying -> specifying.
11813
5ae7ca1d
MC
118142003-02-04 Michael Chastain <mec@shout.net>
11815
11816 * dwarfread.c: Add documentation on the state of dwarf-1,
11817 looking towards obsoletion.
11818
d08a4280
MC
118192003-02-03 Michael Chastain <mec@shout.net>
11820
11821 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11822 gdb/testsuite/gdb.c++/pr-1023.exp.
11823
e9be73e4
AC
118242003-02-04 Andrew Cagney <ac131313@redhat.com>
11825
11826 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11827 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11828
11829 * utils.c (init_page_info): Delete reference to MPW in comments.
11830 * main.c (captured_main): Delete #ifdef MPW.
11831
05d57f6f
AC
118322003-02-04 Andrew Cagney <ac131313@redhat.com>
11833
8ffd9b1b 11834 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11835 * monitor.c (monitor_expect): Obsolete reference to m32r.
11836 * configure.tgt: Mark m32r-*-elf* as obsolete.
11837 * MAINTAINERS: Mark m32k as obsolete.
11838 * m32r-rom.c: Obsolete file.
11839 * config/m32r/m32r.mt: Obsolete file.
11840 * config/m32r/tm-m32r.h: Obsolete file.
11841 * m32r-stub.c: Obsolete file.
11842 * m32r-tdep.c: Obsolete file.
11843
8b0e5691
AC
118442003-02-04 Andrew Cagney <ac131313@redhat.com>
11845
11846 * NEWS: Mention that the z8k-zilog-none is obsolete.
11847 * MAINTAINERS: Mark z8k as obsolete.
11848 * configure.tgt: Obsolete the z8k-*-coff* target.
11849 * config/z8k/z8k.mt: Obsolete file.
11850 * config/z8k/tm-z8k.h: Obsolete file.
11851 * z8k-tdep.c: Obsolete file.
11852
67f16606
AC
118532003-02-04 Andrew Cagney <ac131313@redhat.com>
11854
11855 * NEWS: Mention that the mn10200-elf is obsolete.
11856 * configure.tgt: Obsolete mn10200-*-* target.
11857 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11858 mention that the mn10200 is obsolete.
11859 * breakpoint.h: Ditto.
11860 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11861 * config/mn10200/mn10200.mt: Obsolete file.
11862 * config/mn10200/tm-mn10200.h: Obsolete file.
11863 * mn10200-tdep.c: Obsolete file.
11864
fd2299bd
AC
118652003-02-04 Andrew Cagney <ac131313@redhat.com>
11866
11867 * MAINTAINERS: Mark h8500 as obsolete.
11868 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11869 * findvar.c (value_from_register): Ditto.
11870 * h8500-tdep.c: Mark file as obsolete.
11871 * config/h8500/h8500.mt: Ditto.
11872 * config/h8500/tm-h8500.h: Ditto.
11873 * NEWS: Mention that h8500 is obsolete.
11874
eb9a305d
DC
118752003-02-04 David Carlton <carlton@math.stanford.edu>
11876
11877 * objfiles.c (allocate_objfile): Always set name. Add comment at
11878 start of function.
11879 * jv-lang.c (get_dynamics_objfile): Add comment.
11880
406fc7fb
DC
118812003-02-04 David Carlton <carlton@math.stanford.edu>
11882
11883 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11884 * printcmd.c (build_address_symbolic): Replace uses of
11885 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11886 SYMBOL_NAME, and asm_demangle.
11887 Update copyright.
11888
93d91629
DC
118892003-02-04 David Carlton <carlton@math.stanford.edu>
11890
11891 * linespec.c (decode_compound): Extract code into
11892 lookup_prefix_sym.
11893 (lookup_prefix_sym): New function.
11894
1c5cb38e
DC
118952003-02-04 David Carlton <carlton@math.stanford.edu>
11896
11897 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11898 FLOAT_COERCION_BADNESS.
11899 * gdbtypes.c (rank_one_type): Replace all uses of
11900 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11901
0cf824c9
JB
119022003-02-04 Jim Blandy <jimb@redhat.com>
11903
11904 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11905 section, let dwarf_macinfo_section point to it, not
11906 dwarf_loc_section.
11907
a2d356b0
DJ
119082003-02-04 Daniel Jacobowitz <drow@mvista.com>
11909
11910 Pointed out by Anton Blanchard <anton@samba.org>.
11911 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11912 (ppc_linux_at_sigtramp_return_path): Use it.
11913
2de7ced7
DJ
119142003-02-04 Daniel Jacobowitz <drow@mvista.com>
11915
11916 * defs.h (streq): Add prototype.
11917 * utils.c (streq): New function.
11918
11919 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11920 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11921 * mdebugread.c (new_symbol): Likewise.
11922 * stabsread.c (define_symbol): Likewise.
11923 * coffread.c (process_coff_symbol): Likewise.
11924 * dwarfread.c (new_symbol): Likewise.
11925
11926 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11927 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11928 here.
11929 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11930 SYMBOL_INIT_DEMANGLED_NAME.
11931 * objfiles.c: Include "hashtab.h".
11932 (allocate_objfile): Call htab_set_functions_ex for the
11933 demangled_names_hash.
11934 (free_objfile): Call htab_delete for the demangled_names_hash.
11935 * objfiles.h (struct htab): Add declaration.
11936 (struct objfile): Add demangled_names_hash.
11937 * symfile.c: Include "hashtab.h".
11938 (reread_symbols): Call htab_delete for the demangled_names_hash.
11939 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11940 SYMBOL_NAME in the bcache.
11941 * symtab.c: Include "hashtab.h". Update comments.
11942 (create_demangled_names_hash, symbol_set_names): New functions.
11943 (symbol_find_demangled_name): New function, broken out from
11944 symbol_init_demangled_names.
11945 (symbol_init_demangled_names): Use it.
11946 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11947 (SYMBOL_SET_NAMES): New macro.
11948 (symbol_set_names): Add prototype.
11949
15831452
JB
119502003-02-03 Jim Blandy <jimb@redhat.com>
11951
11952 Use a single, consistent representation for an empty minimal
11953 symbol table in an objfile.
11954 * objfiles.c (terminate_minimal_symbol_table): New function.
11955 (allocate_objfile): Call it.
11956 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11957 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11958 non-NULL.
15831452
JB
11959 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11960 objfile has minimal symbols, compare minimal_symbol_count to zero,
11961 instead of comparing msymbols with NULL.
11962 * objfiles.c (have_minimal_symbols): Same.
11963 * solib-sunos.c (solib_add_common_symbols): Call
11964 terminate_minimal_symbol_table.
11965 * symfile.c (reread_symbols): Same.
8ffd9b1b 11966
ffc65945
KB
119672003-02-03 Kevin Buettner <kevinb@redhat.com>
11968
11969 * s390-tdep.c (s390_address_class_type_flags)
11970 (s390_address_class_type_flags_to_name)
11971 (s390_address_class_name_to_type_flags): New functions.
11972 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11973 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11974
f211c6d4
MS
119752003-02-03 Michael Snyder <msnyder@redhat.com>
11976
11977 * arm-tdep.c: Fix spell-o in comment.
11978
659b0389
ML
119792003-02-03 Michal Ludvig <mludvig@suse.cz>
11980
11981 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11982 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11983 error messages to contain BFD filename.
659b0389 11984
3b31d625
EZ
119852003-02-02 Elena Zannoni <ezannoni@redhat.com>
11986
997b089a 11987 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11988 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11989 (do_mixed_source_and_assembly): Use
11990 make_cleanup_ui_out_tuple_begin_end and
11991 make_cleanup_ui_out_tuple_begin_end.
11992 (do_mixed_source_and_assembly): Ditto.
11993 * thread.c (do_captured_list_thread_ids): Ditto.
11994 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11995 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11996 ui_out_tuple_end): Delete prototypes.
11997 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11998 ui_out_list_end, ui_out_tuple_end): Delete.
11999
12000 From Kevin Buettner <kevinb@redhat.com>:
12001 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12002 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12003 (do_cleanup_table_end): New functions.
12004 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12005 Use cleanups to invoke_ui_out_tuple_end().
12006 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12007 * cli/cli-setshow.c (cmd_show_list): Use
12008 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12009
5b181d62
AC
120102003-02-02 Andrew Cagney <ac131313@redhat.com>
12011
12012 * frame.c (frame_unwind_register): New function.
12013 (frame_unwind_unsigned_register): Use.
12014 (frame_unwind_signed_register): Use.
12015 (frame_read_register): New function.
12016 * frame.h (frame_unwind_register): Declare.
12017 (frame_read_register): Declare.
12018
12019 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12020 and frame_unwind_register instead of read_memory, write_register
12021 and deprecated_write_register_bytes.
12022
5f601589
AC
120232003-02-02 Andrew Cagney <ac131313@redhat.com>
12024
12025 * frame.h: Note that namelen can be negative.
12026 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12027 NAME's length.
12028
12029 * NEWS: Mention that the d10v's `regs' command is deprecated.
12030 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12031 (d10v_print_registers_info): New function.
12032 (show_regs): Call d10v_print_registers_info.
12033 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12034
6a3fe0a4
MK
120352003-02-02 Mark Kettenis <kettenis@gnu.org>
12036
12037 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12038 lost in the previous patch.
12039
075559bc
AC
120402003-02-01 Andrew Cagney <ac131313@redhat.com>
12041
12042 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12043 * stack.c (print_frame_info_base): Output complete FRAME tuple
12044 for synthesized frames.
075559bc 12045
6789195b
AC
120462003-02-02 Andrew Cagney <ac131313@redhat.com>
12047
12048 * mips-nat.c (zerobuf): Delete.
12049 (fetch_inferior_registers): Alloc local zerobuf.
12050 (fetch_core_registers): Alloc local zerobuf.
12051 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12052 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12053 * thread-db.c (thread_db_store_registers): Ditto.
12054 * sh-tdep.c (sh_do_register): Ditto.
12055 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12056 * remote-sim.c (gdbsim_store_register): Ditto.
12057 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12058 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12059 * monitor.c (monitor_supply_register): Ditto.
12060 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12061 * mips-nat.c (fetch_inferior_registers): Ditto.
12062 * m68klinux-nat.c (fetch_register): Ditto.
12063 * lynx-nat.c (fetch_inferior_registers): Ditto.
12064 (fetch_inferior_registers): Ditto.
12065 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12066 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12067 (hpux_thread_store_registers): Ditto.
12068 * hppah-nat.c (fetch_register): Ditto.
12069 * hppab-nat.c (fetch_register): Ditto.
12070 * hppa-tdep.c (pa_register_look_aside): Ditto.
12071 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12072 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12073
e669114a
AC
120742003-02-01 Andrew Cagney <ac131313@redhat.com>
12075
12076 * gdbarch.sh: Explictly specify all method levels. When a
12077 variable with an empty level, provide a non-multi-arch default.
12078 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12079 * gdbarch.h: Re-generate.
12080 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12081 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12082
9a043c1d
AC
120832003-02-01 Andrew Cagney <ac131313@redhat.com>
12084
12085 * defs.h (host_pointer_to_address): Delete declaration.
12086 (address_to_host_pointer): Delete declaration.
12087 * utils.c (host_pointer_to_address): Delete function.
12088 (address_to_host_pointer): Delete function.
12089 * procfs.c (procfs_address_to_host_pointer): New function.
12090 * procfs.c (proc_set_watchpoint): Use.
12091 (procfs_can_use_hw_breakpoint): Update comments.
12092 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12093 (som_solib_add): Use.
12094 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12095 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12096
7ca9f392
AC
120972003-02-01 Andrew Cagney <ac131313@redhat.com>
12098
94bbfd30
AC
12099 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12100 strlen d_name.
12101
7ca9f392
AC
12102 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12103 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12104 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12105 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12106 (define_symbol): Update.
12107 * symfile.c (generic_load): Remove references to nindy.
12108 * symtab.c: Remove references to nindy.
12109
31a85ea2
AC
121102003-02-01 Andrew Cagney <ac131313@redhat.com>
12111
12112 * infcmd.c (print_float_info): Delete code conditional on
12113 FLOAT_INFO.
12114 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12115 * config/m68k/nm-apollo68b.h: Ditto.
12116 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12117 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12118 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12119
f6e85fc8
MK
121202003-02-01 Mark Kettenis <kettenis@gnu.org>
12121
6015b6a0
MK
12122 * config/i386/tm-i386os9k.h: Removed.
12123
f7a30bdf
MK
12124 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12125 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12126 they're identical to i[3456]86-*-sysv* now.
12127 * config/i386/i386v32.mh: Removed.
12128 * config/i386/xm-i386v32.h: Removed.
12129 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12130
28d52111
MK
12131 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12132
4d3f6bce
MK
12133 * config/i386/i386dgux.mh: Removed.
12134 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12135
f6e85fc8
MK
12136 * configure.in: Fix typo.
12137 * configure: Regenerated.
12138
53955967
DC
121392003-01-31 David Carlton <carlton@math.stanford.edu>
12140
12141 * dwarf2read.c (dwarf2_locate_sections): Set
12142 dwarf_ranges_section.
12143
b1364885
AC
121442003-01-31 Andrew Cagney <ac131313@redhat.com>
12145
8dbb1c65
AC
12146 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12147 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12148
8731e58e
AC
12149 * utils.c: Re-indent.
12150
b1364885
AC
12151 * config/djgpp/fnchange.lst: Delete nindy files.
12152 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12153 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12154 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12155 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12156 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12157 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12158 * Makefile.in (init.c): Remove nindy references.
12159 (saber_gdb): Delete rule.
12160 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12161 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12162 and a68v-nat.c.
12163 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12164 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12165 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12166 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12167 nindy-share/stop.h.
12168 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12169 * saber.suppress: Delete file.
12170
086df311
DJ
121712003-01-31 Daniel Jacobowitz <drow@mvista.com>
12172
12173 * dbxread.c (stabs_data): New static variable.
12174 (fill_symbuf): Support an in-memory buffer for stabs data.
12175 (stabs_seek): New function.
12176 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12177 (read_ofile_symtab): Use stabs_seek.
12178 (elfstab_build_psymtabs): Take an asection* instead of
12179 an offset and size. Relocate the stabs data if necessary.
12180 Save the section* for dbx_psymtab_to_symtab.
12181 * dwarf2read.c: Add section variables for each debug section.
12182 (dwarf2_locate_sections): Fill them in.
12183 (dwarf2_read_section): Take an asection* argument.
12184 Relocate the section contents if necessary.
12185 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12186 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12187 it to dwarf2_read_section.
12188 (dwarf2_build_frame_info): Update callers.
12189 * elfread.c (elf_symfile_read): Update call to
12190 elfstab_build_psymtabs.
12191 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12192 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12193 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12194 * symfile.c (symfile_dummy_outputs): New function.
12195 (symfile_relocate_debug_section): New function.
12196 * symfile.h (symfile_relocate_debug_section): Add prototype.
12197
87d1b352
RH
121982003-01-31 Richard Henderson <rth@redhat.com>
12199
12200 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12201 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12202 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12203 * alpha-tdep.c (alpha_register_name): Add "unique".
12204 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12205 (ALPHA_UNIQUE_REGNUM): New.
12206 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12207
c48861fb
AC
122082003-01-31 Andrew Cagney <ac131313@redhat.com>
12209
12210 * README: Remove reference to Ericsson 1800 monitor.
12211 * Makefile.in (remote-es.o): Delete rule.
12212 (ALLDEPFILES): Delete remote-es.c.
12213 * remote-es.c: Delete file.
12214 * config/m68k/es1800.mt: Delete file.
12215 * config/djgpp/fnchange.lst: Update.
12216 * configure.tgt: Delete m68*-ericsson-* target.
12217
d764a824
AF
122182003-01-31 Adam Fedor <fedor@gnu.org>
12219
12220 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12221 Remove duplicate/shadowing variable of same name.
12222
fe36c4f4
JB
122232003-01-30 Jim Blandy <jimb@redhat.com>
12224
12225 * symfile.c (find_separate_debug_file): Assert that the objfile's
12226 directory name we compute ends with a slash, and then assume that
12227 that's so everywhere we use it.
12228
cb741690
DJ
122292003-01-30 Daniel Jacobowitz <drow@mvista.com>
12230
12231 * valops.c (value_assign): Flush frame cache after stores to memory
12232 also.
12233
96ee5227
AC
122342003-01-30 Andrew Cagney <ac131313@redhat.com>
12235
12236 * Makefile.in (mon960-rom.o): Delete rule.
12237 * mon960-rom.c: Delete file.
12238
7f6104a9
AC
122392003-01-30 Andrew Cagney <ac131313@redhat.com>
12240
12241 * d10v-tdep.c: Include "frame-unwind.h".
12242 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12243 list.
12244 (next_addr, uses_frame): Delete.
12245 (struct d10v_unwind_cache): Define.
12246 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12247 Use info instead of next_addr and uses_frame globals.
12248 (d10v_frame_init_saved_regs): Delete function.
12249 (d10v_init_extra_frame_info): Delete function.
12250 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12251 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12252 init_frame_pc or frame_saved_pc.
12253 (d10v_pop_frame): Delete function.
12254 (do_d10v_pop_frame): Delete function.
12255 (d10v_frame_chain): Delete function.
12256 (d10v_frame_chain_valid): Delete function.
12257 (d10v_frame_pc_unwind): New function.
12258 (d10v_frame_id_unwind): New function.
12259 (saved_regs_unwinder): New function.
12260 (d10v_frame_register_unwind): New function.
12261 (d10v_frame_pop): New function.
12262 (d10v_frame_unwind): New variable.
12263 (d10v_frame_p): New function.
12264 (d10v_frame_saved_pc): Delete function.
12265 * Makefile.in (d10v-tdep.o): Update dependencies.
12266
cad2e848
JB
122672003-01-30 J. Brobecker <brobecker@gnat.com>
12268
12269 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12270 causing some regressions due to a change in the default value
12271 for this macro.
12272
af34e669
DJ
122732003-01-29 Richard Henderson <rth@redhat.com>
12274 Elena Zannoni <ezannoni@redhat.com>
12275 Daniel Jacobowitz <drow@mvista.com>
12276
12277 Fix PR gdb/961.
8ffd9b1b 12278 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12279 variables.
12280 (RANGES_SECTION): New.
12281 (dwarf_ranges_buffer): New variable.
12282 (struct comp_unit_head): Add member "die".
12283 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12284 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12285 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12286 (dwarf2_locate_sections): Likewise.
12287 (dwarf2_build_psymtabs): Read .debug_ranges.
12288 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12289 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12290 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12291 Look for DW_AT_ranges and return the bounding box.
12292
baa93fa6
CF
122932003-01-29 Brian Ford <ford@vss.fsi.com>
12294
12295 * win32-nat.c (cygwin_pid): Removed as unused.
12296 (child_attach): Try fall back to Cygwin pid.
12297
c63f977f
JB
122982003-01-29 Jim Blandy <jimb@redhat.com>
12299
12300 * objfiles.h (struct objfile): Doc fix.
12301
d62d1979
AC
123022003-01-29 Andrew Cagney <ac131313@redhat.com>
12303
12304 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12305 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12306 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12307 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12308 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12309 (FRAME_SAVED_PC): Change to a function with predicate.
12310 * gdbarch.h, gdbarch.c: Re-generate.
12311
1ae18a04
AC
123122003-01-28 Andrew Cagney <ac131313@redhat.com>
12313
52287340
AC
12314 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12315
1ae18a04
AC
12316 * complaints.c (complain): Delete function.
12317 * complaints.h (struct deprecated_complaint): Delete definition.
12318 (complain): Delete declaration.
12319
f2c16bd6
KB
123202003-01-28 Kevin Buettner <kevinb@redhat.com>
12321
12322 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12323 dummy frames.
12324
a94dd1fd
AC
123252003-01-27 Andrew Cagney <ac131313@redhat.com>
12326
12327 * sentinel-frame.h, sentinel-frame.c: New files.
12328 * Makefile.in (frame.o): Update dependencies.
12329 (SFILES): Add sentinel-frame.c.
12330 (sentinel_frame_h): Define.
12331 (COMMON_OBS): Add sentinel-frame.o.
12332 (sentinel-frame.o): Specify dependencies.
12333 * frame.c: Include "sentinel-frame.h".
12334 (frame_register_unwind): Rewrite assuming that there is always a a
12335 ->next frame.
12336 (frame_register, generic_unwind_get_saved_register): Ditto.
12337 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12338 (create_sentinel_frame, unwind_to_current_frame): New functions.
12339 (get_current_frame): Rewrite using create_sentinel_frame and
12340 unwind_to_current_frame. When possible, always create a frame.
12341 (create_new_frame): Set next to the sentinel frame.
12342 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12343 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12344 ID cache when necessary.
12345 (frame_saved_regs_id_unwind): Use frame_relative_level.
12346 (deprecated_generic_get_saved_register): Use frame_relative_level,
12347 get_frame_saved_regs, get_frame_pc, get_frame_base and
12348 get_next_frame.
12349 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12350 frame_register.
12351
5378adc4
DJ
123522003-01-27 Daniel Jacobowitz <drow@mvista.com>
12353
12354 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12355
51ee2ddc
DJ
123562003-01-27 Daniel Jacobowitz <drow@mvista.com>
12357
12358 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12359 (maintenance_set_profile_cmd): Use error () instead of warning ().
12360
d9feb4e7
DJ
123612003-01-27 Daniel Jacobowitz <drow@mvista.com>
12362
12363 * configure.in: Check that -pg works if using --enable-profiling.
12364 Check for monstartup and _mcleanup regardless of --enable-profiling.
12365 * maint.c: Check for monstartup and _mcleanup before using them.
12366 * config.in: Regenerated.
12367 * configure: Regenerated.
12368
2d188dd3
NC
123692003-01-24 Nick Clifton <nickc@redhat.com>
12370
12371 * Add sh2e support:
12372
12373 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12374
12375 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12376 (sh2e_show_regs): New.
12377 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12378 * config/sh/tm-sh.h: Added sh2e to comments.
12379
cb3c37b2
JB
123802003-01-23 Jim Blandy <jimb@redhat.com>
12381
12382 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12383 symbols found)" message here; we haven't checked for a separate
12384 debug info file yet, so we don't know yet.
12385 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12386 we've looked everywhere. Also, there's no need to print a special
12387 message when we're loading the separate debug info file: the one
12388 symbol_file_add prints is fine.
12389
5b5d99cf
JB
123902003-01-23 Alexander Larsson <alexl@redhat.com>
12391 Jim Blandy <jimb@redhat.com>
12392
12393 Add support for executables whose debug info has been separated
12394 out into a separate file, leaving only a link behind.
12395 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12396 and separate_debug_objfile_backlink.
12397 (put_objfile_before): New declaration.
12398 * symfile.c: #include "filenames.h".
12399 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12400 debug info in a separate file, read that, too. Save the addrs
12401 argument, so we can use it again to read the separated debug info;
12402 syms_from_objfile modifies the table we pass it.
12403 (reread_symbols): After re-reading an objfile, call
12404 reread_separate_symbols to refresh its separate debug info
12405 objfile, if it has one.
12406 (reread_separate_symbols, find_separate_debug_file,
12407 get_debug_link_info, separate_debug_file_exists): New functions.
12408 (debug_file_directory): New global var.
12409 (_initialize_symfile): Initialize debug_file_directory, and
12410 provide the new `set debug-file-directory' command to let the user
12411 change it.
12412 * objfiles.c (free_objfile): If this objfile has its debug info in
12413 a separate objfile, free that one too. If this is itself a
12414 separate debug info objfile, clear our parent's backlink.
12415 (put_objfile_before): New function.
12416 * utils.c (gnu_debuglink_crc32): New function.
12417 * defs.h (gnu_debuglink_crc32): New declaration.
12418 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12419 * configure.in: Handle --with-separate-debug-dir config option.
12420 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12421 * acconfig.h (DEBUGDIR): New macro.
12422 * configure, aclocal.m4, config.in: Regenerated.
12423
7e8580c1
JB
124242003-01-22 Jim Blandy <jimb@redhat.com>
12425
7904e09f
JB
12426 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12427 like the old symbol_file_add, but taking new arguments: you can
12428 now pass in either a `struct section_addr_info' list to say where
12429 each section is loaded, or a `struct section_offsets' table. Pass
12430 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12431 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12432 with the appropriate quiescent values for the new arguments.
12433
7e8580c1
JB
12434 * symfile.c: #include "gdb_assert.h".
12435 (syms_from_objfile): Add the ability to pass in a section offset
12436 table directly, as an alternative to the section_addr_info table.
12437 Document arguments better.
12438 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12439 * symfile.h (syms_from_objfile): Update declaration.
12440 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12441 syms_from_objfile.
12442 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12443
d28f9cdf
DJ
124442003-01-22 Daniel Jacobowitz <drow@mvista.com>
12445
12446 Original patch by Tom Tromey <tromey@cygnus.com> and
12447 Jason Molenda <jmolenda@apple.com>.
12448 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12449 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12450 * NEWS: Mention profiling.
12451 * configure.in (--enable-gdbtk): Fix typo.
12452 (--enable-profiling): New. Set PROFILE_CFLAGS.
12453 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12454 Fill in function.
12455 (profiling_state): New variable.
12456 (mcleanup_wrapper): New function.
12457 (_initialize_maint): Remove NOTYET, fix call to
12458 add_setshow_boolean_cmd for "maint set profile".
12459 * configure: Regenerated.
12460
df21e465
MH
124612003-01-21 Martin M. Hunt <hunt@redhat.com>
12462
12463 * Makefile.in (install-gdbtk): Install PNG images too.
12464
73c1f219
AC
124652003-01-21 Andrew Cagney <ac131313@redhat.com>
12466
12467 * exec.c (text_start): Delete global variable.
12468 (exec_file_attach): Make text_start local to the function.
12469 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12470 * valops.c (hand_function_call): Delete code that handles
12471 BEFORE_TEXT_END and AFTER_TEXT_END.
12472 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12473 of CALL_DUMMY_LOCATION.
12474 * gdbarch.c: Regenerate.
12475 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12476 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12477 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12478 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12479 (text_end): Delete extern declaration.
12480
eb4f72c5
AC
124812003-01-21 Andrew Cagney <ac131313@redhat.com>
12482
12483 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12484 * blockframe.c (backtrace_below_main): Move to "frame.c".
12485 (frame_chain_valid): Delete check for backtrace_below_main.
12486 (_initialize_blockframe): Delete initialization, move ``set
12487 backtrace-below-main'' command to "frame.c".
12488 (do_flush_frames_sfunc): Delete function.
12489 * frame.c: Include "command.h" and "gdbcmd.h".
12490 (frame_type_from_pc): New function.
12491 (create_new_frame): Use frame_type_from_pc.
12492 (legacy_get_prev_frame): New function.
12493 (get_prev_frame): Rewrite. When an old style frame, call
12494 legacy_get_prev_frame. Otherwize, unwind the PC first.
12495 (_initialize_frame): Add ``set backtrace-below-main'' command.
12496 * Makefile.in (frame.o): Update dependencies.
12497
778ce8cc
AC
124982003-01-19 Andrew Cagney <ac131313@redhat.com>
12499
12500 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12501 DEPRECATED_REGISTERS_INFO.
12502
01c193c8
AC
125032003-01-19 Andrew Cagney <ac131313@redhat.com>
12504
12505 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12506 Maintainers'. Update `Various Maintainers'.
12507
dedc2a2b
AC
125082003-01-19 Andrew Cagney <ac131313@redhat.com>
12509
12510 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12511 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12512 Suppress actual parameters when `-'.
12513 * gdbarch.h, gdbarch.c: Regenerate.
12514
b7261c70
AC
125152003-01-19 Andrew Cagney <ac131313@redhat.com>
12516
12517 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12518 code handling dummy frames.
12519
dbe9fe58
AC
125202003-01-19 Andrew Cagney <ac131313@redhat.com>
12521
12522 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12523 (struct frame_unwind): Add field pop.
12524 * frame.h (frame_pop): Declare.
12525 * frame.c (frame_saved_regs_pop): New function.
12526 (trad_frame_unwinder): Add frame_saved_regs_pop.
12527 (frame_pop): New function.
12528 * dummy-frame.c (dummy_frame_pop): New function.
12529 (discard_innermost_dummy): New function.
12530 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12531 (dummy_frame_unwind): Add dummy_frame_pop.
12532 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12533 * valops.c (hand_function_call): Ditto.
12534 * stack.c (return_command): Ditto.
12535
570b8f7c
AC
125362003-01-18 Andrew Cagney <ac131313@redhat.com>
12537
12538 * cris-tdep.c: Fix function declaration indentation.
12539 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12540 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12541 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12542 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12543 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12544 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12545
125462003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12547
12548 * README (Unpacking and Installation -- quick overview):
12549 Warn against ".../gdb-5.3/gdb/configure".
12550
494cca16
AC
125512003-01-18 Andrew Cagney <ac131313@redhat.com>
12552
12553 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12554 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12555 (struct frame_unwind): Declare opaque.
12556 (dummy_frame_p): Declare function.
12557 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12558 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12559 * dummy-frame.c: Include "frame-unwind.h".
12560 (dummy_frame_p): New function.
12561 (dummy_frame_unwind): New variable.
12562 * frame.c: Include "frame-unwind.h".
12563 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12564 to use the new unwind field.
12565 (set_unwind_by_pc): Delete function.
12566 (create_new_frame, get_prev_frame): Set unwind field using
12567 frame_unwind_find_by_pc.
12568 (trad_frame_unwind, trad_frame_unwinder): New variables.
12569 * frame.h (trad_frame_unwind): Declare variable.
12570 (frame_id_unwind_ftype): Delete declaration.
12571 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12572 (struct frame_unwind): Declare opaque.
12573 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12574 register_unwind with a single unwind pointer.
12575 * frame-unwind.h, frame-unwind.c: New files.
12576 * Makefile.in (SFILES): Add frame-unwind.c.
12577 (frame_unwind_h): Define.
12578 (COMMON_OBS): Add frame-unwind.o.
12579 (frame-unwind.o): Specify dependencies.
12580 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12581
4efb68b1
AC
125822003-01-18 Andrew Cagney <ac131313@redhat.com>
12583
12584 * ada-valprint.c: Eliminate PTR.
12585 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12586 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12587 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12588 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12589 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12590 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12591 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12592
a84d24ee
AC
125932003-01-17 Andrew Cagney <ac131313@redhat.com>
12594
762f08a3
AC
12595 * main.c (captured_main): Don't use PTR.
12596 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12597 * gdbtypes.c (lookup_primitive_typename): Ditto.
12598 (lookup_struct_elt_type): Ditto.
12599 * f-valprint.c (info_common_command): Ditto.
12600 (list_all_visible_commons): Ditto.
12601 * jv-typeprint.c (java_type_print_base): Ditto.
12602
a84d24ee
AC
12603 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12604 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12605 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12606 i386-interix-nat.c and i386-interix-tdep.c. Rename
12607 m68klinux-nat.c and m68klinux-tdep.c. Rename
12608 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12609 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12610 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12611 * main.c (captured_main): Use xfree, not free.
12612
c170fb60
AC
126132003-01-16 Andrew Cagney <ac131313@redhat.com>
12614
12615 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12616 ID back using a parameter.
12617 * frame.c (frame_id_unwind): Update call.
12618 (frame_saved_regs_id_unwind): Update.
12619 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12620 * dummy-frame.h (struct frame_id): Add opaque declaration.
12621 (dummy_frame_id_unwind): Update declaration.
12622
867f3898
AC
126232003-01-15 Andrew Cagney <ac131313@redhat.com>
12624
12625 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12626
40622be8 126272003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12628
40622be8 12629 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12630
ae66c1fc
EZ
126312003-01-14 Elena Zannoni <ezannoni@redhat.com>
12632
997b089a 12633 Fix PR gdb/898
ae66c1fc
EZ
12634 * breakpoint.c (until_break_command): Add new argument. Use it to
12635 decide whether to stop only at the current frame or not.
12636 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12637 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12638 call.
12639 (advance_command): New function.
12640 (_initialize_infcmd): Update help string for 'until' command.
12641 Add new 'advance' command.
12642
a04257e6
DC
126432003-01-14 David Carlton <carlton@math.stanford.edu>
12644
12645 * linespec.c (decode_line_1): Normalize comments.
12646 (set_flags): Ditto.
12647 (locate_first_half): Ditto.
12648 (decode_compound): Ditto.
12649 (symtab_from_filename): Ditto.
12650 (decode_all_digits): Ditto.
12651 (decode_dollar): Ditto.
12652 (find_methods): Ditto.
12653 (find_toplevel_char): Ditto.
12654
1bac305b
AC
126552003-01-13 Andrew Cagney <ac131313@redhat.com>
12656
12657 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12658 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12659 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12660 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12661 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12662 * language.c, language.h, m32r-tdep.c: Update copyright.
12663 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12664 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12665 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12666 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12667 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12668 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12669
25caa7a8
EZ
126702003-01-13 Elena Zannoni <ezannoni@redhat.com>
12671
12672 * stabsread.h (process_later, resolve_cfront_continuation):
12673 Obsolete.
12674 Update copyright years.
12675 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12676 Update copyright year.
12677 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12678 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12679 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12680 Update copyright year.
12681 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12682 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12683 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12684 (parse_partial_symbols): Obsolete cfront support.
12685 * stabsread.c
12686 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12687 macros.
12688 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12689 read_cfront_baseclasses, read_cfront_member_functions,
12690 resolve_cfront_continuation,read_cfront_static_fields,
12691 copy_cfront_struct_fields): Obsolete functions.
12692 (define_symbol, read_one_struct_field): Obsolete cfront support.
12693 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12694 Update Copyright year.
12695
7789c6f5
EZ
126962003-01-13 Elena Zannoni <ezannoni@redhat.com>
12697
12698 * stack.c (print_frame_info, print_stack_frame_base_stub,
12699 print_stack_frame_base, show_and_print_stack_frame_stub,
12700 show_and_print_stack_frame, print_only_stack_frame_stub,
12701 print_only_stack_frame): Delete functions.
12702 (print_stack_frame_stub): Call print_frame_info instead of
12703 print_frame_info_base.
12704 (print_frame_info_base): Rename to print_frame_info.
12705 (backtrace_command_1): Call print_frame_info, instead of
12706 print_frame_info_base.
12707 (current_frame_command): Call print_stack_frame, instead of
12708 print_only_stack_frame.
12709 (frame_command): Call print_stack_frame, instead of
12710 show_and_print_stack_frame.
12711 (up_command): Ditto.
12712 (down_command): Ditto.
12713 * frame.h (print_only_stack_frame): Delete prototype.
12714 * infrun.c (normal_stop): Call print_stack_frame, instead of
12715 show_and_print_stack_frame.
12716 * thread.c (info_threads_command): Call print_stack_frame, instead
12717 of print_only_stack_frame.
12718
3f5a3016
AC
127192003-01-13 Andrew Cagney <ac131313@redhat.com>
12720
d99ba314
AC
12721 * README (Graphical interface to GDB): Update URL. Point at
12722 gdb/links/.
12723
3f5a3016
AC
12724 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12725 version match.
12726
083ae935
DJ
127272003-01-13 Daniel Jacobowitz <drow@mvista.com>
12728
12729 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12730 lines.
12731
5365276c
DJ
127322003-01-13 Daniel Jacobowitz <drow@mvista.com>
12733
12734 * thread-db.c (attach_thread): Prototype.
12735 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12736 thread information (ti), and valid flags (th_valid, ti_valid).
12737 (attach_thread): Move target_pid_to_str call to after the thread
12738 is added to GDB's list. Initialize the cache.
12739 (thread_get_info_callback, thread_db_map_id2thr)
12740 (thread_db_get_info): New functions.
12741 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12742 (thread_db_store_registers, thread_db_thread_alive)
12743 (thread_db_get_thread_local_address): Use them.
12744 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12745 of calling error() for threads in unknown state.
12746
12747 (clear_lwpid_callback): New function.
12748 (thread_db_resume): Use it to clear the cache.
12749
9fc30b6b
DJ
127502003-01-13 Daniel Jacobowitz <drow@mvista.com>
12751
12752 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12753 (resume_callback): Remove dead code.
12754
8f871025
AC
127552003-01-13 Andrew Cagney <ac131313@redhat.com>
12756
12757 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12758 predicate.
12759 * gdbarch.h, gdbarch.c: Regenerate.
12760 * stack.c (frame_info): Only initialize the saved registers when
12761 FRAME_INIT_SAVED_REGS_P.
12762 * frame.c (frame_saved_regs_register_unwind): Assert
12763 FRAME_INIT_SAVED_REGS_P.
12764 (deprecated_generic_get_saved_register): Ditto.
12765
3f565f1e
DJ
127662003-01-13 Daniel Jacobowitz <drow@mvista.com>
12767
12768 * source.c (openp): Squelch warning about "filename".
12769
072b1022
DJ
127702003-01-13 Daniel Jacobowitz <drow@mvista.com>
12771
12772 * source.c (openp): If the file does not exist don't necessarily
12773 search the path.
12774
973ccf8b
DJ
127752003-01-13 Daniel Jacobowitz <drow@mvista.com>
12776
12777 Fix PR gdb/872.
12778 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12779 (integer_types_same_name_p): New function.
12780 (rank_one_type): Use it.
12781 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12782
030292b7
DJ
127832003-01-13 Daniel Jacobowitz <drow@mvista.com>
12784
12785 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12786 variables.
12787 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12788 * configure.in: Add --with-sysroot.
12789 * configure: Regenerated.
12790 * main.c (gdb_sysroot): New variable.
12791 (captured_main): Initialize gdb_sysroot.
12792 * defs.h (gdb_sysroot): New extern declaration.
12793 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12794
afb5d334
MC
127952003-01-12 Michael Chastain <mec@shout.net>
12796
12797 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12798
751ceeb4
MC
127992003-01-12 Michael Chastain <mec@shout.net>
12800
12801 * top.c (print_gdb_version): Bump copyright year to 2003.
12802
94cd26f8
DC
128032003-01-12 David Carlton <carlton@bactrian.org>
12804
12805 * linespec.c (symtab_from_filename): Rename variable 's' to
12806 'file_symtab'.
12807
1ce79225
AC
128082003-01-12 Andrew Cagney <ac131313@redhat.com>
12809
12810 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12811 dummy frame.
12812 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12813
fa1fd571
AC
128142003-01-12 Andrew Cagney <ac131313@redhat.com>
12815
12816 * d10v-tdep.c: Include "gdb_assert.h".
12817 (d10v_store_return_value): Rewrite to match current interface.
12818 (d10v_extract_struct_value_address): Ditto.
12819 (d10v_extract_return_value): Ditto.
12820 (d10v_gdbarch_init): Set store_restore_value,
12821 extract_struct_value_address and extract_return_value.
12822
68b8d23e
JB
128232003-01-12 J. Brobecker <brobecker@gnat.com>
12824
12825 * hpread.c (set_namestring): New procedure replacing the
12826 SET_NAMESTRING macro.
12827 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12828 by calls to set_namestring.
12829
128302003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12831
12832 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12833 a compilation warning.
12834 (hpread_process_one_debug_symbol): Likewise.
12835
88d262ca
DC
128362003-01-10 David Carlton <carlton@math.stanford.edu>
12837
12838 * linespec.c (decode_line_1): Rename variable 's' to
12839 'file_symtab'.
12840 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12841 (decode_dollar): Ditto.
12842 (decode_variable): Ditto.
12843 (symbol_found): Ditto.
12844
86669319
MC
128452003-01-09 Michael Chastain <mec@shout.net>
12846
12847 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12848
616a9dc4
CV
128492003-01-07 Corinna Vinschen <vinschen@redhat.com>
12850
12851 * win32-nat.c (set_process_privilege): New function.
12852 (child_attach): Call set_process_privilege() to enable the
12853 SE_DEBUG_NAME user privilege if available in process token.
12854
3269bcfa
JB
128552003-01-10 J. Brobecker <brobecker@gnat.com>
12856
12857 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12858 compilation error in the previous revision.
12859
2b0ee454
DC
128602003-01-09 David Carlton <carlton@math.stanford.edu>
12861
12862 * linespec.c: Update copyright.
12863
b3ba1b44
DJ
128642003-01-09 Daniel Jacobowitz <drow@mvista.com>
12865
12866 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12867 than inferior_ptid.
12868 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12869
4ef3f3be
AC
128702003-01-09 Andrew Cagney <ac131313@redhat.com>
12871
479ab5a0
AC
12872 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12873 Update comments.
12874 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12875 (frame_saved_regs_zalloc): Update.
12876 (frame_saved_regs_register_unwind): Update.
12877 (create_new_frame): Update.
12878 (get_prev_frame): Update.
12879 (frame_extra_info_zalloc): Update.
12880 (deprecated_get_frame_saved_regs): Update.
12881 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12882 * cris-tdep.c: Update comment.
12883
bde58177
AC
12884 * somsolib.h: Fix function indentation.
12885 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12886 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12887 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12888 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12889 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12890
4ef3f3be
AC
12891 * infrun.c (follow_fork): Use ISO C definition.
12892 * expprint.c (print_subexp): Use xfree instead of free.
12893 * charset.c: Include "gdb_string.h" instead of <string.h>.
12894 (register_iconv_charsets): Use ISO C definition.
12895 (host_charset, target_charset): Ditto.
12896 * Makefile.in (charset.o): Update dependencies.
12897 (mi-cmd-env.o): Update dependencies.
12898
1c615f7a
AC
128992003-01-08 Andrew Cagney <cagney@redhat.com>
12900
12901 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12902 get_frame_base.
12903
c9a1dc08
AC
129042003-01-08 Andrew Cagney <ac131313@redhat.com>
12905
12906 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12907 build directories. Save edited gdb output in Mbuild.log. If a
12908 build fails, remove any final GDB executable.
12909
dbad9d94
AC
129102003-01-08 Andrew Cagney <ac131313@redhat.com>
12911
12912 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12913 replacing hex constants with function names and stripping leading
12914 file name directory prefixes.
12915
8d357cca
AC
129162003-01-08 Andrew Cagney <cagney@redhat.com>
12917
12918 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12919 get_frame_base.
12920
bca02a8a
DC
129212003-01-08 David Carlton <carlton@math.stanford.edu>
12922
12923 * linespec.c (decode_line_1): Move code into decode_variable.
12924 (decode_variable): New function.
12925
7f8ab3a0
AC
129262003-01-08 Andrew Cagney <ac131313@redhat.com>
12927
12928 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12929
7b5849cc
AC
129302003-01-08 Andrew Cagney <cagney@redhat.com>
12931
12932 * cris-tdep.c (cris_frame_init_saved_regs): Use
12933 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12934 saved_regs buffer.
12935 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12936 (sh64_nofp_frame_init_saved_regs): Ditto.
12937 (sh_fp_frame_init_saved_regs): Ditto.
12938 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12939 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12940 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12941 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12942
72a5efb3
DJ
129432003-01-08 Daniel Jacobowitz <drow@mvista.com>
12944
12945 * minsyms.c (lookup_minimal_symbol): Update comment.
12946 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12947 (lookup_minimal_symbol_solib_trampoline): Likewise.
12948
11c02a10
AC
129492003-01-08 Andrew Cagney <cagney@redhat.com>
12950
aab3ea25
AC
12951 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12952 frame_relative_level.
12953
da50a4b7
AC
12954 * alpha-tdep.c: Use get_frame_extra_info.
12955 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12956 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12957 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12958 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12959
11c02a10
AC
12960 * alpha-tdep.c: Use get_next_frame.
12961 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12962 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12963 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12964 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12965 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12966 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12967 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12968
1e2330ba
AC
129692003-01-07 Andrew Cagney <cagney@redhat.com>
12970
12971 * alpha-tdep.c: Use get_frame_base.
12972 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12973 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12974 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12975 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12976 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12977 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12978 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12979 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12980
2d75187b
AC
129812003-01-07 Andrew Cagney <cagney@redhat.com>
12982
12983 * frame.c (deprecated_get_frame_context): New function.
12984 (deprecated_set_frame_context): New function.
12985 * frame.h (deprecated_get_frame_context): Declare.
12986 (deprecated_set_frame_context): Declare.
12987 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12988 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12989
483d36b2
AC
129902003-01-07 Andrew Cagney <cagney@redhat.com>
12991
12992 * frame.c (deprecated_set_frame_next_hack): New function.
12993 (deprecated_set_frame_prev_hack): New function.
12994 * frame.h (deprecated_set_frame_next_hack): Declare.
12995 (deprecated_set_frame_prev_hack): Declare.
12996 * mcore-tdep.c (analyze_dummy_frame): Use
12997 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12998 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12999
14e91ac5
DC
130002003-01-07 David Carlton <carlton@math.stanford.edu>
13001
13002 * linespec.c (decode_line_1): Move code into decode_dollar.
13003 (decode_dollar): New function.
13004
b0c6b05c
AC
130052003-01-07 Andrew Cagney <cagney@redhat.com>
13006
13007 * arm-tdep.c (arm_init_extra_frame_info): Use
13008 deprecated_update_frame_base_hack.
13009 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13010 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13011 (fix_frame_pointer): Ditto.
13012 (mn10300_analyze_prologue): Ditto.
13013
a00a19e9
AC
130142003-01-07 Andrew Cagney <cagney@redhat.com>
13015
13016 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13017 extra_info using frame_extra_info_zalloc.
13018 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13019 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13020 (sh64_init_extra_frame_info): Ditto.
13021 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13022 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13023 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13024 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13025 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13026 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13027 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13028 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13029 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13030 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13031 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13032 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13033
13034 * mn10300-tdep.c (analyze_dummy_frame): Use
13035 deprecated_set_frame_extra_info_hack.
13036 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13037
1fb4c65b
JB
130382003-01-07 J. Brobecker <brobecker@gnat.com>
13039
13040 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13041 class is not scText. These do not define "real" procedures.
13042 (parse_partial_symbols): Likewise.
13043
9fe7d6bf
MS
130442003-01-06 Michael Snyder <msnyder@redhat.com>
13045
13046 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13047
f6c609c4
AC
130482003-01-06 Andrew Cagney <ac131313@redhat.com>
13049
13050 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13051 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13052 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13053 deprecated_frame_xmalloc_with_cleanup.
13054 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13055 deprecated_frame_xmalloc.
13056 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13057 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13058
d995ff4b
AC
130592003-01-06 Andrew Cagney <cagney@redhat.com>
13060
84dc46cb
AC
13061 * x86-64-linux-tdep.c: Include "osabi.h".
13062 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13063
d995ff4b
AC
13064 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13065
66140c26
AC
130662003-01-06 Andrew Cagney <cagney@redhat.com>
13067
13068 * MAINTAINERS (Target Instruction Set Architectures): Update
13069 arm-elf. Can be built with -Werror, has been multiarched.
13070
13071 * value.h (unpack_long): Make buffer parameter constant.
13072 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13073 * scm-lang.h (scm_parse): Ditto.
13074 * defs.h (extract_typed_address, extract_address): Ditto.
13075 (extract_long_unsigned_integer): Ditto.
13076 * inferior.h (unsigned_pointer_to_address): Ditto.
13077 (signed_pointer_to_address): Ditto.
13078 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13079 * gdbarch.h, gdbarch.c: Regenerate.
13080 * findvar.c (extract_long_unsigned_integer): Update.
13081 (extract_address): Update.
13082 (extract_typed_address): Update.
13083 (unsigned_pointer_to_address): Update.
13084 * values.c (unpack_long): Update.
13085 (unpack_double): Update.
13086 (unpack_pointer): Update.
13087 (unpack_field_as_long): Update.
13088 * d10v-tdep.c (d10v_pointer_to_address): Update.
13089 * avr-tdep.c (avr_pointer_to_address): Update.
13090 * scm-lang.c (scm_unpack): Update.
13091 * findvar.c (signed_pointer_to_address): Update.
13092
b089b3da
ML
130932003-01-06 Michal Ludvig <mludvig@suse.cz>
13094
8ffd9b1b 13095 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13096 since it is in i386-tdep.c.
13097
aff87235
JB
130982003-01-06 J. Brobecker <brobecker@gnat.com>
13099
13100 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13101 failure introduced in the previous change.
13102
34f5e845
MC
131032003-01-05 Michael Chastain <mec@shout.net>
13104
13105 * README: Remove references to deleted remote-*.c files:
13106 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13107 remote-nrom.c, remote-os9k.c, remote-udi.c.
13108
28bcfd30
MK
131092003-01-05 Mark Kettenis <kettenis@gnu.org>
13110
13111 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13112 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13113 i386_get_longjmp_target.
13114
15a5b3ee
AC
131152003-01-05 Andrew Cagney <ac131313@redhat.com>
13116
13117 * arm-tdep.c (prologue_cache): Change to a pointer.
13118 (_initialize_arm_tdep): Allocate prologue_cache.
13119 (check_prologue_cache): Update.
13120 (save_prologue_cache): Update.
13121 (arm_gdbarch_init): Update.
13122
c263362b
DJ
131232003-01-04 Daniel Jacobowitz <drow@mvista.com>
13124
13125 * stabsread.c (update_method_name_from_physname): Call complaint()
13126 instead of error.
13127
51603483
DJ
131282003-01-04 Daniel Jacobowitz <drow@mvista.com>
13129
13130 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13131 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13132 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13133
13134 * blockframe.c: Include "gdbcmd.h" and "command.h".
13135 (backtrace_below_main): New variable.
13136 (file_frame_chain_valid, func_frame_chain_valid)
13137 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13138 (generic_func_frame_chain_valid): Remove functions.
13139 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13140 (_initialize_blockframe): New function.
13141 * Makefile.in (blockframe.o): Update dependencies.
13142 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13143 comment. Call frame_chain_valid ().
13144 * frame.h: Remove old prototypes. Add prototype for
13145 frame_chain_valid and update comments to match.
13146 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13147 Remove old comment.
13148 * gdbarch.h: Regenerated.
13149 * gdbarch.c: Regenerated.
13150
13151 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13152 set_gdbarch_frame_chain_valid.
13153 * avr-tdep.c (avr_gdbarch_init): Likewise.
13154 * cris-tdep.c (cris_gdbarch_init): Likewise.
13155 * frv-tdep.c (frv_gdbarch_init): Likewise.
13156 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13157 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13158 (i386_nw_init_abi): Likewise.
13159 (i386_gdbarch_init): Likewise.
13160 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13162 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13163 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13164 * mips-tdep.c (mips_gdbarch_init): Likewise.
13165 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13166 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13167 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13168 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13169 * s390-tdep.c (s390_gdbarch_init): Likewise.
13170 * sh-tdep.c (sh_gdbarch_init): Likewise.
13171 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13172 * v850-tdep.c (v850_gdbarch_init): Likewise.
13173 * vax-tdep.c (vax_gdbarch_init): Likewise.
13174 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13175
13176 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13177 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13178 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13179 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13180 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13181 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13182 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13183 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13184
b00a8037
DJ
131852002-01-04 Daniel Jacobowitz <drow@mvista.com>
13186
13187 * Makefile.in (acconfig_h): Remove incorrect macro.
13188 (config_h): Define.
13189 (osabi.o): Update dependencies.
13190 * configure.tgt: Set gdb_osabi based on target triplet.
13191 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13192 * configure: Regenerated.
13193 * config.in: Regenerated.
13194 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13195 (GDB_OSABI_DEFAULT): Define if not already defined.
13196 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13197 (set_osabi_string): New variables.
13198 (gdbarch_register_osabi): Add new OS ABI to
13199 gdb_osabi_available_names.
13200 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13201 (set_osabi, show_osabi): New functions.
13202 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13203
4be87837
DJ
132042003-01-04 Daniel Jacobowitz <drow@mvista.com>
13205
13206 * arch-utils.c (gdbarch_info_init): Set osabi to
13207 GDB_OSABI_UNINITIALIZED.
13208 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13209 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13210 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13211 * gdbarch.c: Regenerated.
13212 * gdbarch.h: Regenerated.
13213 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13214 there's no BFD.
13215 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13216 * osabi.h (enum gdb_osabi): Move to defs.h.
13217 (gdbarch_init_osabi): Update prototype.
13218 * defs.h (enum gdb_osabi): Moved here.
13219 * Makefile.in: Update dependencies.
13220
13221 * alpha-tdep.h: Don't include "osabi.h".
13222 (struct gdbarch_tdep): Remove osabi member.
13223 * alpha-tdep.c: Include "osabi.h".
13224 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13225 iterate over arches. Update call to gdbarch_init_osabi.
13226 (alpha_dump_tdep): Don't dump osabi.
13227 * alpha-linux-tdep.c: Include "osabi.h".
13228 * alpha-osf1-tdep.c: Include "osabi.h".
13229 * alphafbsd-tdep.c: Include "osabi.h".
13230 * alphanbsd-tdep.c: Include "osabi.h".
13231
13232 * arm-tdep.h: Don't include "osabi.h".
13233 (struct gdbarch_tdep): Remove osabi member.
13234 * arm-tdep.c: Include "osabi.h".
13235 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13236 iterate over arches. Update call to gdbarch_init_osabi.
13237 (arm_dump_tdep): Don't dump osabi.
13238 * arm-linux-tdep.c: Include "osabi.h".
13239 * armnbsd-tdep.c: Include "osabi.h".
13240
13241 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13242 Update call to gdbarch_init_osabi.
13243
13244 * i386-tdep.h: Don't include "osabi.h".
13245 (struct gdbarch_tdep): Remove osabi member.
13246 * i386-tdep.c: Include "osabi.h".
13247 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13248 iterate over arches. Update call to gdbarch_init_osabi.
13249 (i386_dump_tdep): Don't dump osabi.
13250 * i386-linux-tdep.c: Include "osabi.h".
13251 * i386-sol2-tdep.c: Include "osabi.h".
13252 * i386bsd-tdep.c: Include "osabi.h".
13253 * i386gnu-tdep.c: Include "osabi.h".
13254 * i386ly-tdep.c: Include "osabi.h".
13255 * i386nbsd-tdep.c: Include "osabi.h".
13256 * i386obsd-tdep.c: Include "osabi.h".
13257
13258 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13259 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13260 check osabi when iterating over arches. Update call to
13261 gdbarch_init_osabi.
13262 (mips_dump_tdep): Don't dump osabi.
13263
13264 * ns32k-tdep.h: Don't include "osabi.h".
13265 (struct gdbarch_tdep): Remove.
13266 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13267 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13268 allocate tdep. Update call to gdbarch_init_osabi.
13269 (ns32k_dump_tdep): Remove.
13270 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13271 * ns32knbsd-tdep.c: Include "osabi.h".
13272
13273 * ppc-tdep.h: Don't include "osabi.h".
13274 (struct gdbarch_tdep): Remove osabi member.
13275 * rs6000-tdep.c: Include "osabi.h".
13276 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13277 osabi when iterating over arches. Update call to
13278 gdbarch_init_osabi.
13279 (rs6000_dump_tdep): Don't dump osabi.
13280 * ppc-linux-tdep.c: Include "osabi.h".
13281 * ppcnbsd-tdep.c: Include "osabi.h".
13282
13283 * sh-tdep.h: Don't include "osabi.h".
13284 (struct gdbarch_tdep): Remove osabi member.
13285 * sh-tdep.c: Include "osabi.h".
13286 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13287 iterate over arches. Update call to gdbarch_init_osabi.
13288 (sh_dump_tdep): Don't dump osabi.
13289 * shnbsd-tdep.c: Include "osabi.h".
13290
13291 * sparc-tdep.c: Include "osabi.h".
13292 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13293 iterate over arches. Update call to gdbarch_init_osabi.
13294 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13295 tdep structure.
13296
13297 * vax-tdep.h: Don't include "osabi.h".
13298 (struct gdbarch_tdep): Remove.
13299 * vax-tdep.c: Include "osabi.h".
13300 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13301 iterate over arches. Don't allocate tdep. Update call
13302 to gdbarch_init_osabi.
13303 (vax_dump_tdep): Remove.
13304 (_initialize_vax_tdep): Update call to gdbarch_register.
13305
a881cf8e
DJ
133062003-01-04 Daniel Jacobowitz <drow@mvista.com>
13307
13308 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13309 entirely.
13310 (breakpoint_re_set_one): Don't fetch the value for a disabled
13311 watchpoint.
13312
1e698235
DJ
133132003-01-04 Daniel Jacobowitz <drow@mvista.com>
13314
13315 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13316 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13317 (COERCE_FLOAT_TO_DOUBLE): Remove.
13318 * gdbarch.c: Regenerate.
13319 * gdbarch.h: Regenerate.
13320 * Makefile.in: Remove value_h from gdbarch_h.
13321 * valops.c (coerce_float_to_double): New variable.
13322 (default_coerce_float_to_double): Remove.
13323 (standard_coerce_float_to_double): Remove.
13324 (value_arg_coerce): Use coerce_float_to_double.
13325 (_initialize_valops): Add "set coerce-float-to-double".
13326 * value.h (default_coerce_float_to_double): Remove prototype.
13327 (standard_coerce_float_to_double): Remove prototype.
13328
13329 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13330 prototyped.
13331 * mdebugread.c (parse_symbol): Likewise.
13332 * stabsread.c (define_symbol): Mark all functions as prototyped.
13333
13334 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13335 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13336 set_gdbarch_coerce_float_to_double.
13337 * arm-tdep.c (arm_gdbarch_init): Likewise.
13338 * frv-tdep.c (frv_gdbarch_init): Likewise.
13339 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13340 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13341 * mips-tdep.c (mips_gdbarch_init): Likewise.
13342 (mips_coerce_float_to_double): Remove.
13343 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13344 (rs6000_coerce_float_to_double): Remove.
13345 * s390-tdep.c (s390_gdbarch_init): Likewise.
13346 * sh-tdep.c (sh_gdbarch_init): Likewise.
13347 (sh_coerce_float_to_double): Remove.
13348 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13349 (sparc_coerce_float_to_double): Remove.
13350 * v850-tdep.c (v850_gdbarch_init): Likewise.
13351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13352 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13353 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13354 (hppa_coerce_float_to_double): Remove prototype.
13355 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13356
f436a26a
DJ
133572003-01-04 Daniel Jacobowitz <drow@mvista.com>
13358
13359 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13360
248f8055
DJ
133612003-01-04 Daniel Jacobowitz <drow@mvista.com>
13362
13363 Suggested by Stewart Brown <sb24@avaya.com>:
13364 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13365 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13366 (c_type_print_varspec_suffix): Likewise.
13367
72cfdc76
MK
133682003-01-04 Mark Kettenis <kettenis@gnu.org>
13369
bfd260bb
MK
13370 * configure.in: Don't set and AC_SUBST SUBDIRS.
13371 * configure: Regenerated.
13372
72cfdc76
MK
13373 * configure.in: Remove code dealing with shared libraries.
13374 * Makefile.in: Remove HLDFLAGS and HLDENV.
13375 * configure: Regenerated.
13376
c8b8a898
AC
133772003-01-04 Andrew Cagney <ac131313@redhat.com>
13378
13379 * frame.c (deprecated_frame_xmalloc): New function.
13380 (deprecated_set_frame_saved_regs_hack): New function.
13381 (deprecated_set_frame_extra_info_hack): New function.
13382 * frame.h (deprecated_frame_xmalloc): Declare.
13383 (deprecated_set_frame_saved_regs_hack): Declare.
13384 (deprecated_set_frame_extra_info_hack): Declare.
13385
14abd0fb
MK
133862003-01-04 Mark Kettenis <kettenis@gnu.org>
13387
8ee53726
MK
13388 * configure.in: Move code that provides the --enable-gdbtk option
13389 right after the code that handles the --enable-tui option, and
13390 polish it somewhat.
13391 * configure: Regenerated.
13392
14abd0fb
MK
13393 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13394 AC_CHECK_FUNCS and remove the old check for pread64.
13395 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13396 * acconfig.h (_GNU_SOURCE): Add.
13397 (HAVE_PREAD64): Remove.
13398 * configure, aclocal.m4, config.in: Regenerated.
13399
b2fb4676
AC
134002003-01-03 Andrew Cagney <ac131313@redhat.com>
13401
13402 * alpha-tdep.c: Use get_frame_saved_regs.
13403 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13404 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13405 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13406 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13407 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13408
8dcde887
MK
134092003-01-03 Mark Kettenis <kettenis@gnu.org>
13410
13411 * configure.in: Remove all use of the SUBDIRS variable; add
13412 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13413 code providing the --enable-multi-ice option, and move it right in
13414 front of the code that checks whether gdbserver is supported.
13415 Polish that too.
13416 * configure: Regenerated.
13417 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13418 @SUBDIRS@.
13419
8ccd593b
AC
134202003-01-03 Andrew Cagney <cagney@redhat.com>
13421
13422 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13423 * avr-tdep.c, cris-tdep.c: Ditto.
13424 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13425 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13426
91151a06
MK
134272003-01-03 Mark Kettenis <kettenis@gnu.org>
13428
13429 * configure.in: Remove --enable-netrom option.
13430 * configure: Regenerated.
13431
8fe84d01
MK
134322003-01-03 Mark Kettenis <kettenis@gnu.org>
13433
13434 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13435 declaration for `struct re_pattern_buffer' instead.
13436 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13437
f0394be6
JB
134382003-01-03 J. Brobecker <brobecker@gnat.com>
13439
13440 * mdebugread.c (parse_symbol): Count until the stEnd matching
13441 the structure name.
13442
27e9bf90
MK
134432003-01-02 Mark Kettenis <kettenis@gnu.org>
13444
93d331ba
MK
13445 * configure.in: Remove --with-cpu option.
13446 subscripts. Remove evil changequotes here.
13447 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13448 * config.in, configure: Regenerated.
8ffd9b1b 13449
27e9bf90
MK
13450 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13451 * configure.in: Cleanup section that sources GDB and BFD configure
13452 subscripts. Remove evil changequotes here.
13453 * config.in, configure: Regenerated.
13454
50abf9e5
AC
134552003-01-02 Andrew Cagney <ac131313@redhat.com>
13456
13457 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13458 frame accessor methods.
13459 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13460 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13461 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13462 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13463 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13464 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13465 * z8k-tdep.c: Ditto.
8ffd9b1b 13466
287c1a40
MK
134672003-01-02 Mark Kettenis <kettenis@gnu.org>
13468
f5dbc56d
MK
13469 * configure.in: Remove UI_OUT configuration code.
13470 * ada-lang.c: Update assuming UI_OUT is always true.
13471 * Makefile.in (UIOUT_CFLAGS): Remove.
13472 * configure: Regenerated.
13473 * TODO: Remove blurb about elimination of -DUI_OUT.
13474
627af7ea
MK
13475 * configure.in: Move code that provides the --enable-gdbcli,
13476 --enable-gdbmi options right before the code that handles the
13477 --enable-tui option. Polish a bit.
13478 * configure: Regenerated.
13479
06825bd1
MK
13480 * configure.in: Rewrite check for GNU regex and the
13481 --without-included regex option, and move it into the "Checks for
13482 library functions" section. This makes us use the system regex
13483 again by default on systems with version 2 of the GNU C library.
13484 This was apparently broken.
13485 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13486 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13487 * config.in, configure: Regenerated.
13488
287c1a40
MK
13489 * configure.in: Move code that provides the --enable-tui option
13490 before the "Checks for libraries" section. Polish the code
13491 somewhat and set need_curses to yes if we build the TUI. Rewrite
13492 code that looks for a library providing termcap functionality to
13493 match more closely what's done in the Readline library, and move
13494 it into to the "Checks for libraries" section.
13495 * configure: Regenerated.
13496 * Makefile.in (TERMCAP): Remove variable.
13497 * config/i386/go32.mh (TERMCAP): Remove variable.
13498
684e56bf
AC
134992003-01-02 Andrew Cagney <ac131313@redhat.com>
13500
13501 * MAINTAINERS: Mention gdb_mbuild.sh.
13502 * gdb_mbuild.sh: Rewrite.
13503
e1ea1d75
MK
135042003-01-02 Mark Kettenis <kettenis@gnu.org>
13505
13506 * configure.in: Fix typo in last change.
13507 * config.in, configure: Regenerated.
13508
1b831c93
AC
135092003-01-02 Andrew Cagney <ac131313@redhat.com>
13510
13511 * valarith.c (value_binop): Delete obsolete code and comments.
13512 * configure.host: Ditto.
13513 * buildsym.h (make_blockvector): Ditto.
13514 * buildsym.c (make_blockvector): Ditto.
13515 * defs.h (enum language): Ditto.
13516 (chill_demangle): Ditto.
13517 * elfread.c (elf_symtab_read): Ditto.
13518 * dwarfread.c (CHILL_PRODUCER): Ditto.
13519 (set_cu_language): Ditto.
13520 (handle_producer): Ditto.
13521 * expprint.c (print_subexp): Ditto.
13522 * gdbtypes.c (chill_varying_type): Ditto.
13523 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13524 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13525 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13526 (chill_varying_type): Ditto.
13527 * language.h (_LANG_chill): Ditto.
13528 * language.c (binop_result_type, integral_type): Ditto.
13529 (character_type, string_type, structured_type): Ditto.
13530 (lang_bool_type, binop_type_check): Ditto.
13531 * stabsread.h (os9k_stabs): Ditto.
13532 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13533 (define_symbol, read_type, read_struct_fields): Ditto.
13534 (read_array_type, read_enum_type, read_huge_number): Ditto.
13535 (read_range_type, start_stabs): Ditto.
13536 * symfile.c (init_filename_language_table): Ditto.
13537 (add_psymbol_with_dem_name_to_list): Ditto.
13538 * symtab.c (symbol_init_language_specific): Ditto.
13539 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13540 * symtab.h (struct general_symbol_info): Ditto.
13541 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13542 * typeprint.c (typedef_print): Ditto.
13543 * utils.c (fprintf_symbol_filtered): Ditto.
13544 * valops.c (value_cast, search_struct_field, value_slice): Delete
13545 obsolete code.
13546 (varying_to_slice): Delete function.
13547 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13548 (varying_to_slice): Delete declaration.
13549 * MAINTAINERS: Update.
13550
8bb2c122
MK
135512003-01-02 Mark Kettenis <kettenis@gnu.org>
13552
97bf5e38
MK
13553 * configure.in: Reorganize "Checks for library functions section"
13554 a bit. Remove check for `btowc' and `isascii' functions.
13555 * configure: Regenerated.
13556
5ee754fc
MK
13557 * acconfig.h (_MSE_INT_H): Remove.
13558 * configure.in: Create "Checks for header files" section, and move
13559 appropriate tests there. Don't check for objlist.h, wchar.h,
13560 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13561 misdetection fix. Also add "Checks for types", "Checks for
13562 compiler characteristics" and "Checks for library functions"
13563 sections.
13564 * config.in, configure: Regenerated.
13565
8bb2c122
MK
13566 * configure.in: Create "Checks for programs" section, and move
13567 appropriate tests there.
13568
9a156167
MK
135692003-01-01 Mark Kettenis <kettenis@gnu.org>
13570
13571 * configure.in: Create "Checks for libraries" section, and move
13572 appropriate tests there. Cleanup check for wctype in libw. Use
13573 AC_SEARCH_LIBS to see whether we need libsocket.
13574 * configure: Regenerated.
13575
a80e2bcb 13576For older changes see ChangeLog-2002
c906108c
SS
13577\f
13578Local Variables:
13579mode: change-log
13580left-margin: 8
13581fill-column: 74
13582version-control: never
13583End:
This page took 1.198156 seconds and 4 git commands to generate.