* osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6cfae0bc
JB
12003-10-23 Jim Blandy <jimb@redhat.com>
2
3 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
4 architecture the current arch can run code for --- but not if it's
5 a superset.
6 (can_run_code_for): New function.
7
fcd182f9
JW
82003-10-22 James E Wilson <wilson@specifixinc.com>
9
10 * MAINTAINERS: Move myself from paper trail section back to write
11 after approval section.
12
4646aa9d
AC
132003-10-22 Andrew Cagney <cagney@redhat.com>
14
15 * exec.h: New file.
16 * win32-nat.c: Include "exec.h".
17 * solib.c: Include "exec.h".
18 * target.h (build_section_table): Delete declaration.
19 * somsolib.c: Include "exec.h".
20 (exec_ops): Delete extern declaration.
21 * rs6000-nat.c: Update copyright. Include "exec.h".
22 (exec_ops): Delete extern declaration.
23 * pa64solib.c: Update copyright. Include "exec.h".
24 (exec_ops): Delete extern declaration.
25 * exec.c: Update copyright. Include "exec.h".
26 * corelow.c: Update dependencies. Include "exec.h".
27 * Makefile.in (exec_h): Define.
28 (exec.o, somsolib.o): Update dependencies.
29 (pa64solib.o, corelow.o): Update dependencies.
30
0088c768
AC
312003-10-22 Andrew Cagney <cagney@redhat.com>
32
33 * target.c: Include "gdb_assert.h" (target_read): Call
34 "target_read_partial", not "target_write_partial".
35 (default_read_partial, default_write_partial): New function.
36 (target_read_partial, target_write_partial): Simplify, assume that
37 there is always a read/write method.
38 (update_current_target, add_target): Always set "to_read_partial"
39 and "to_write_partial".
40 (target_write, target_read): Fail on a zero byte transfer.
41 * Makefile.in (target.o): Update dependencies.
42 * target.h: Update copyright date.
43 (target_object): Fix typo.
44
e2d0e7eb
AC
452003-10-22 Andrew Cagney <cagney@redhat.com>
46
47 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
48 multi-arch method, add "targ" parameter.
49 (struct target_ops): Declare.
50 * gdbarch.h, gdbarch.c: Re-generate.
51 * Makefile.in (c-valprint.o): Update dependencies.
52 * arch-utils.h: Update copyright.
53 (convert_from_func_ptr_addr_identity): Declare.
54 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
55 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
56 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
57 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
58 * infcall.c (find_function_addr, call_function_by_hand): Update.
59 * c-valprint.c: Include "target.h".
60 (print_function_pointer_address): Update.
61
f1c07ab0
AC
622003-10-22 Andrew Cagney <cagney@redhat.com>
63
64 * target.c (target_close): New function.
65 (debug_to_close): Use "target_close".
66 (push_target): Use "target_close".
67 (unpush_target): Use "target_close".
68 (pop_target): Use "target_close".
69 * target.h (struct target_ops): Add "to_xclose".
70 (target_open): Delete macro. Move comment to "to_open".
71 (target_close): Replace macro with function that takes a target.
72 * top.c (quit_target): Pass "current_target" to "target_close".
73
5520a790
EZ
742003-10-21 Elena Zannoni <ezannoni@redhat.com>
75
76 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
77 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
78 * symtab.h (lookup_minimal_symbol_text): Update.
79 * breakpoint.c (create_overlay_event_breakpoint,
80 create_longjmp_breakpoint): Update callers.
81 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
82 * symtab.c (find_pc_sect_line): Ditto.
83
caa92b73
AC
842003-10-21 Andrew Cagney <cagney@redhat.com>
85
86 * target.c (errno): Delete extern declaration.
87
aa2a9a3c
JJ
882003-10-20 Jeff Johnston <jjohnstn@redhat.com>
89
90 * ia64-tdep.c: Change all occurrences of
91 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
92 (ia64_frame_prev_register): Minor whitespace change.
93
4beec2b7
MC
942003-10-20 Michael Chastain <mec@shout.net>
95
96 * config/djgpp/fnchange.lst: Add lines for:
97 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
98 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
99 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
100 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
101 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
102 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
103 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
104
92ad9cd9
AC
1052003-10-20 Andrew Cagney <cagney@redhat.com>
106
107 * values.c (register_value_being_returned): Update comments. Use
108 "gdbarch_return_value" when available.
109 (using_struct_return): Ditto.
110 (set_return_value): Ditto. Use "gdbarch_return_value" when
111 available.. Print a warning, and not an error, when an unhandled
112 return type is encountered.
113 * infcmd.c: Include "gdb_assert.h".
114 (print_return_value): When gdbarch_return_value_p, and using
115 struct return, assume that the value is not available.
116 * defs.h (return_value_convention): Define.
117 * gdbarch.sh (gdbarch_return_value): New predicate method.
118 * gdbarch.h, gdbarch.c: Re-generate
119 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
120
198beae2
AC
1212003-10-20 Andrew Cagney <cagney@redhat.com>
122
123 * symtab.c: Replace "struct sec" with "struct bfd_section".
124 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
125
24d693a6 1262003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
127
128 * config/djgpp/fnchange.lst: Add lines for:
129 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
130 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
131 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
132
21ad8dc3
MK
1332003-10-19 Mark Kettenis <kettenis@gnu.org>
134
135 * amd64fbsd-nat.c (fetch_inferior_registers,
136 store_inferior_registers): Remove functions.
137 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
138
cced5e27
MK
1392003-10-18 Mark Kettenis <kettenis@gnu.org>
140
141 Add NetBSD/amd64 native configuration:
142 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
143 * amd64nbsd-tdep.c: New file.
144 * amd64nbsd-nat.c: New file.
145 * amd64bsd-nat.c: New file.
146 * config/i386/nbsd64.mh: New file.
147 * config/i386/nbsd64.mt: New file.
148 * configure.host: Add x86_64-*-netbsd*.
149 * configure.tgt: Add x86_64-*-netbsd*.
150 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
151 New targets.
152 * NEWS (New native configurations): Mention NetBSD/amd64.
153
666de3fd
MC
1542003-10-17 Michael Chastain <mec@shout.net>
155
156 * config/djgpp/fnchange.lst: Remove dead lines for:
157 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
158 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
159 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
160 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
161 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
162 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
163 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
164 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
165 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
166 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
167 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
168 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
169 gdb/config/sparc/tm-sparclite.h,
170 gdb/gdbtk/generic/ChangeLog-2001,
171 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
172 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
173 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
174 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
175 gdb/testsuite/gdb.mi/mi0-var-block.exp,
176 gdb/testsuite/gdb.mi/mi0-var-child.exp,
177 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
178 gdb/testsuite/gdb.mi/mi0-var-display.exp,
179 itcl/iwidgets3.0.0/demos/extfileselectionbox,
180 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
181 itcl/iwidgets3.0.0/demos/fileselectionbox,
182 itcl/iwidgets3.0.0/demos/fileselectiondialog,
183 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
184 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
185 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
186 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
187 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
188 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
189 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
190 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
191 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
192 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
193 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
194 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
195 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
196 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
197 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
198 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
199 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
200 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
201 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
202 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
203 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
204 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
205 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
206 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
207 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
208 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
209 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
210 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
211 itcl/iwidgets3.0.0/demos/html/shell.n.html,
212 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
213 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
214 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
215 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
216 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
217 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
218 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
219 itcl/iwidgets3.0.0/demos/scrolledcanvas,
220 itcl/iwidgets3.0.0/demos/scrolledframe,
221 itcl/iwidgets3.0.0/demos/scrolledhtml,
222 itcl/iwidgets3.0.0/demos/scrolledlistbox,
223 itcl/iwidgets3.0.0/demos/scrolledtext,
224 itcl/iwidgets3.0.0/demos/selectionbox,
225 itcl/iwidgets3.0.0/demos/selectiondialog,
226 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
227 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
228 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
229 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
230 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
231 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
232 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
233 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
234 itcl/iwidgets3.0.0/doc/scrolledframe.n,
235 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
236 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
237 itcl/iwidgets3.0.0/doc/scrolledtext.n,
238 itcl/iwidgets3.0.0/doc/selectionbox.n,
239 itcl/iwidgets3.0.0/doc/selectiondialog.n,
240 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
241 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
242 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
243 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
244 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
245 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
246 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
247 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
248 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
249 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
250 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
251 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
252 itcl/iwidgets3.0.0/generic/selectionbox.itk,
253 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
254 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
255 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
256 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
257 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
258 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
259 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
260 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
261 itcl/iwidgets3.0.0/tests/scrolledframe.test,
262 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
263 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
264 itcl/iwidgets3.0.0/tests/scrolledtext.test,
265 itcl/iwidgets3.0.0/tests/selectionbox.test,
266 itcl/iwidgets3.0.0/tests/selectiondialog.test,
267 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
268 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
269 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
270 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
271 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
272 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
273 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
274 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
275 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
276 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
277 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
278 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
279 tk/mac/tkMacProjects.sit.hqx.
280
1e3ff5ad
AC
2812003-10-17 Andrew Cagney <cagney@redhat.com>
282
8db32d44
AC
283 * target.c (target_section_by_addr): New function.
284 (do_xfer_memory): Use "target_section_by_addr".
285 * target.h (target_section_by_addr): Declare.
286
1e3ff5ad
AC
287 * target.h (struct target_ops): Add "to_read_partial" and
288 "to_write_partial", delete "to_query".
289 (target_read_partial, target_write_partial): Declare.
290 (target_read, target_write): Declare.
291 (target_query): Delete macro.
292 * target.c (target_read_partial): New function.
293 (target_write_partial, target_read, target_write): New function.
294 (update_current_target): Delete inheritance of "to_query". Add
295 comments about "to_read_partial" and "to_write_partial".
296 (debug_to_partial_read, debug_to_partial_write): New functions.
297 (debug_to_query): Delete function.
298 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
299 instead of "to_query".
300 * remote.c (remote_read_partial): Replace "remote_query".
301 (init_remote_ops): Set "to_read_partial" instead of "to_query".
302 (init_remote_async_ops): Ditto.
303 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
304 "target_read_partial" instead of "target_query".
305 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
306 Use "target_read_partial" instead of "target_query".
307
48c66725
JJ
3082003-10-17 Jeff Johnston <jjohnstn@redhat.com>
309
310 * frame.h (struct frame_id): Add new field: special_addr.
311 (frame_id_build_special): New prototype.
312 * frame.c (frame_id_build_special): New function.
313 (frame_id_build): Change to call frame_id_build_special().
314 (frame_id_eq): Change to also test special_addr field.
315 (frame_id_inner): Update comment.
316
7998dfc3
AC
3172003-10-17 Andrew Cagney <cagney@redhat.com>
318
319 * target.c (update_current_target): Perform the target cleanup.
320 Put the target stack beneath the squashed "current_target".
321 (add_target): Delete disabled call to "cleanup_target".
322 (cleanup_target): Delete function.
323 (push_target, unpush_target): Do not call "cleanup_target".
324
9c04404e 3252003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
326
327 * target.c (target_stack): Change to a static target_ops.
328 (update_current_target): Walk the "struct target_ops" stack.
329 (pop_target, do_xfer_memory, target_info): Ditto.
330 (find_target_beneath): Ditto.
331 (push_target): Rewrite to use the "struct target_ops" stack.
332 (unpush_target): Ditto.
333 * target.h (struct target_stack_item): Delete definition.
334 (target_stack): Delete declaration.
335 (struct target_ops): Add field "beneath".
336
c98a2b49 3372003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
338
339 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
340 declaration.
341 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
342 (h8300_examine_prologue): Use h8300_normal_mode flag
343 (h8300_gdbarch_init): Set architecture info for normal mode
344
506fb367
DJ
3452003-10-16 Daniel Jacobowitz <drow@mvista.com>
346
347 * remote.c (remote_protocol_vcont): New variable.
348 (set_remote_protocol_vcont_packet_cmd): New function.
349 (show_remote_protocol_vcont_packet_cmd): New function.
350 (init_all_packet_configs): Handle remote_protocol_vcont.
351 (remote_vcont_probe): New function.
352 (remote_vcont_resume): New function.
353 (remote_resume): Use it.
354 (remote_async_resume): Call remote_resume.
355 (_initialize_remote): Add verbose-resume packet commands.
356
65815ea1
AC
3572003-10-16 Andrew Cagney <cagney@redhat.com>
358
359 * infrun.c (handle_inferior_event): Add comment about
360 "frame_id_inner" being too weak.
361
40324f1b
EZ
3622003-10-16 Elena Zannoni <ezannoni@redhat.com>
363
364 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
365 second parameter, which is always null. Remove
366 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
367 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
368 accordingly.
369 * somsolib.c (som_solib_create_inferior_hook,
370 som_solib_desire_dynamic_linker_symbols): Update callers.
371 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
372
3732003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
374
375 * remote-m32r-sdi.c : New file, interface to m32r on-chip
376 debug interface, SDI (Scalable Debug Interface).
377 * NEWS: Mention m32r SDI protocol was supported.
378 * Makefile.in (remote-m32r-sdi.o): Add build rule.
379 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
380
51931cbb
JJ
3812003-10-15 Jeff Johnston <jjohnstn@redhat.com>
382
383 * ia64-linux-tdep.c: Include gdbcore.h.
384 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
385 (ia64_linux_sigcontext_register_addr): Find the address of the
386 sigcontext area stored in the sigframe instead of using
387 a magic offset constant.
388
84e7fd53
AC
3892003-10-15 Andrew Cagney <cagney@redhat.com>
390
391 * remote.c (remote_search): Delete function.
392 * target.h (target_search): Delete disabled macro.
393 (struct target_ops): Delete disabled field "to_search".
394
0f4d7c52
KB
3952003-10-14 Kevin Buettner <kevinb@redhat.com>
396
397 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
398 instead of deprecated_inside_entry_file().
399
2e952408
CV
4002003-10-14 Corinna Vinschen <vinschen@redhat.com>
401
402 * sh-tdep.c: Fix copy/paste hangover in comment.
403 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
404 mode.
405 (sh3e_sh4_extract_return_value): Ditto.
406
7e86466e
RH
4072003-10-13 Richard Henderson <rth@redhat.com>
408
409 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
410 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
411 match c_val_print a bit closer.
412
46a16dba
KB
4132003-10-13 Kevin Buettner <kevinb@redhat.com>
414
415 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
416 (frv_gdbarch_adjust_breakpoint_address): New function.
417 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
418 method.
419
76897487
KB
4202003-10-13 Kevin Buettner <kevinb@redhat.com>
421
422 * breakpoint.h (struct breakpoint): Add new member
423 ``requested_address''.
424 * breakpoint.c (breakpoint_adjustment_warning)
425 (adjust_breakpoint_address): New static functions.
426 (print_it_typical): Issue warning if breakpoint's address is different
427 from its requested address.
428 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
429 (breakpoint_re_set_one): Set breakpoint's
430 ``requested_address'' field. Set ``address'' field to the
431 result of calling adjust_breakpoint_address() on the requested
432 address.
433
a1131521
KB
4342003-10-13 Kevin Buettner <kevinb@redhat.com>
435
436 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
437 * gdbarch.h, gdbarch.c: Regenerate.
438
6ce6d90f
MK
4392003-10-11 Mark Kettenis <kettenis@gnu.org>
440
155c1d33
MK
441 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
442 TDEP->sc_num_regs.
443
8a96bc77
MK
444 * i386fbsd-tdep.c: New file.
445 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
446 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
447 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
448 i386bsd-tdep.c.
449 (_initialize_i386fbsd_tdep): New function.
450 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
451 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
452 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
453 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
454 TDEP->sc_num_regs.
455 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
456 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
457 to initialize TDEP->sc_num_regs.
458 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
459 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
460 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
461 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
462 FreeBSD ELF OS/ABI's here.
463 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
464 (i386fbsd-tdep.o): New target.
465 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
466 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
467
477f40d1
MK
468 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
469 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
470 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
471 in initialization of TDEP->sc_num_regs.
472
c6b33596
MK
473 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
474 (x86_64_init_abi): Initialize regset_from_core_section if
475 appropriate.
476
8446b36a
MK
477 * i386-tdep.c (i386_regset_from_core_section): New function.
478 (i386_gdbarch_init): Initialize regset_from_core_section if
479 appropriate.
480 * i386-tdep.h (i386_regset_from_core_section): New declaration.
481
c783cbd6
MK
482 * i386-tdep.h (struct regset): Declare opaque.
483
6ce6d90f
MK
484 * gdbarch.sh (regset_from_core_section): New method.
485 (struct regset): Declare opaque.
486 * gdbarch.c, gdbarch.h: Regenerated.
487
b98ed7be
AM
4882003-10-11 Alan Modra <amodra@bigpond.net.au>
489
490 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
491 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
492 Correct test for pc within section.
493
f6214256
MK
4942003-10-11 Mark Kettenis <kettenis@gnu.org>
495
496 * gdbarch.sh: Remove trailing whitepsace from comments.
497
a8f4cde1
RM
4982003-10-08 Roland McGrath <roland@redhat.com>
499
500 * gcore.c (make_mem_sec): Function removed, folded into ...
501 (gcore_create_callback): ... here. To omit a section, clear its
502 SEC_LOAD bit rather than zeroing its size.
503 Omit read-only sections only if they correspond to a known disk file.
504 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
505
74276724
MS
5062003-10-10 Michael Snyder <msnyder@redhat.com>
507
508 * d10v-tdep.c: Fix typo in comment.
509
e754ae69
AC
5102003-10-10 Andrew Cagney <cagney@redhat.com>
511
512 * rs6000-tdep.c (e500_store_return_value): Delete function.
513 (e500_extract_return_value): Delete function.
514 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
515 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
516 "ppc_sysv_abi_restore_return_value" where applicable.
517 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
518 (ppc_sysv_abi_extract_return_value): Declare.
519 (ppc_sysv_abi_broken_store_return_value): Declare.
520 (ppc_sysv_abi_broken_extract_return_value): Declare.
521 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
522 * ppc-sysv-tdep.c (return_value_convention): Move definition to
523 start of file.
524 (do_ppc_sysv_return_value): New function.
525 (ppc_sysv_abi_extract_return_value): New function.
526 (ppc_sysv_abi_store_return_value): New function.
527 (ppc_sysv_abi_broken_extract_return_value): New function.
528 (ppc_sysv_abi_broken_store_return_value): New function.
529 (ppc_sysv_abi_use_struct_convention): Call
530 do_ppc_sysv_return_value.
531
8d4ce20a
JB
5322003-10-10 J. Brobecker <brobecker@gnat.com>
533
534 * blockframe.c (inside_main_func): No longer use symbol_lookup()
535 to lookup the main function symbol.
536
afce3d2a
CV
5372003-10-10 Corinna Vinschen <vinschen@redhat.com>
538
539 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
540 types correctly.
541 (sh_push_dummy_call_fpu): Fix argument passing rules.
542 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
543 float types.
544 (sh3e_sh4_store_return_value): Ditto.
545
7fe958be
EZ
5462003-10-10 Elena Zannoni <ezannoni@redhat.com>
547
548 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
549 comment.
550
3f997a97
CV
5512003-10-10 Corinna Vinschen <vinschen@redhat.com>
552
553 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
554 more readable code. Accomodate passing of bitfields.
555
8be9034a
AC
5562003-10-10 Andrew Cagney <cagney@redhat.com>
557
558 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
559 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
560 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
561 * ppc-sysv-tdep.c: Include "gdb_assert.h".
562 (ppc64_sysv_abi_push_dummy_call): New function.
563 (ppc64_sysv_abi_broken_push_dummy_call): New function.
564 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
565 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
566
85a453d5
KI
5672003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
568
569 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
570 * README: Ditto.
571 * d10v-tdep.c: Ditto.
572 * h8300-tdep.c: Ditto.
573 * remote-e7000.c: Ditto.
574 * remote-hms.c: Ditto.
575 * ser-e7kpc.c: Ditto.
576 * sh-stub.c: Ditto.
577 * sh-tdep.c: Ditto.
578 * sh-tdep.h: Ditto.
579 * sh3-rom.c: Ditto.
580 * sh64-tdep.c: Ditto.
581 * top.c: Ditto.
582 * wince.c: Ditto.
583 * config/d10v/d10v.mt: Ditto.
584 * config/sh/embed.mt: Ditto.
585 * config/sh/linux.mt: Ditto.
586 * config/sh/tm-linux.h: Ditto.
587 * config/sh/tm-sh.h: Ditto.
588 * config/sh/wince.mt: Ditto.
589
221c12ff
AC
5902003-10-09 Andrew Cagney <cagney@redhat.com>
591
592 * ppc-tdep.h (struct type): Declare opaque.
593 * x86-64-tdep.h (struct regcache): Declare opaque.
594 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
595 coding style.
596
ef5200c1
AC
5972003-10-09 Andrew Cagney <cagney@redhat.com>
598
599 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
600 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
601 (SOFTWARE_SINGLE_STEP_P): Ditto.
602 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
603 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
604 (SOFTWARE_SINGLE_STEP_P): Ditto.
605 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
606 software_single_step to rs6000_software_single_step.
a8f4cde1 607
9644bbdd
AC
6082003-10-09 Andrew Cagney <cagney@redhat.com>
609
610 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
611
db72fa6b
MS
6122003-10-09 Michael Snyder <msnyder@redhat.com>
613
f3efb16c
MS
614 * frame.h: Fix typo in comment.
615 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
616 * d10v-tdep.c: Random whitespace/comment tweaks.
617
9a5cef92
EZ
6182003-10-09 Elena Zannoni <ezannoni@redhat.com>
619
620 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 621 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 622 on stack.
a8f4cde1 623
9a5cef92
EZ
624 Based on input by Stephen Clarke (stephen.clarke@superh.com):
625 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
626 in detail.
a8f4cde1 627
0f317a0c
DJ
6282003-10-09 Daniel Jacobowitz <drow@mvista.com>
629
630 * remote-mips.c (mips_initialize): Remove unneeded call to
631 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
632
bbab2f46
DJ
6332003-10-09 Daniel Jacobowitz <drow@mvista.com>
634
635 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
636 a memory pointer.
637
550950b8
JJ
6382003-10-08 Jeff Johnston <jjohnstn@redhat.com>
639
640 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
641 for any lwp we resume.
642 (running_callback): Add lwps that have pending status events
643 against them to be considered running.
644
15c69bc7
KI
6452003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
646
647 * m32r-tdep.c : Include "dis-asm.h".
648 * Makefile.in (m32r-tdep.o): Update dependencies.
649
51065942
JB
6502003-10-06 J. Brobecker <brobecker@gnat.com>
651
652 * completer.h (get_gdb_completer_word_break_characters): Delete.
653 * completer.c: include language.h.
654 (gdb_completer_word_break_characters): Delete.
655 (get_gdb_completer_word_break_characters): Delete.
656 (location_completer): Use the word break characters of the current
657 language.
658 (complete_line): Likewise.
659 (line_completion_function): Likewise.
660 (skip_quoted_chars): Likewise.
661 * Makefile.in (completer.o): Add dependency on language.h.
662 * top.c (init_main): Set the readline word break characters
663 to GDB's default word break characters.
664
6084f43a
JB
6652003-10-06 J. Brobecker <brobecker@gnat.com>
666
667 * language.h (language_defn): new field, la_word_break_characters.
668 * language.c (unknown_language_defn): Set new field to
669 default_word_break_characters.
670 (auto_language_defn): Likewise.
671 (local_language_defn): Likewise.
672 * ada-lang.c (ada_language_defn): Likewise.
673 * c-lang.c (c_language_defn): Likewise.
674 (cplus_language_defn): Likewise.
675 (asm_language_defn): Likewise.
676 (minimal_language_defn): Likewise.
677 * f-lang.c (f_language_defn): Likewise.
678 * jv-lang.c (java_language_defn): Likewise.
679 * m2-lang.c (m2_language_defn): Likewise.
680 * objc-lang.c (objc_language_defn): Likewise.
681 * p-lang.c (pascal_language_defn): Likewise.
682 * scm-lang.c (scm_language_defn): Likewise.
683
944fcfab
AC
6842003-10-06 Andrew Cagney <cagney@redhat.com>
685
686 * ppc-sysv-tdep.c: Re-indent.
687
9f0a5303
JB
6882003-10-06 J. Brobecker <brobecker@gnat.com>
689
690 * language.h (default_word_break_characters): Add prototype.
691 * language.c (default_word_break_characters): New function.
692
7270b6ed
AS
6932003-10-06 Andreas Schwab <schwab@suse.de>
694
695 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
696 with %eax.
697
a5d61f66
AC
6982003-10-06 Andrew Cagney <cagney@redhat.com>
699
700 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
701 "h8500-tdep.c".
702 (z8k-tdep.o): Delete custom build rule.
703
28a86f5c
AC
7042003-10-06 Andrew Cagney <cagney@redhat.com>
705
1bfd8a83
AC
706 * Makefile.in: Update all dependencies.
707
17144ef8
AC
708 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
709 No longer list PA as as obsolete candidate. List m32r as
710 broken instead of obsolete.
a8f4cde1 711
a5679ae5
AC
712 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
713 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
714 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
715 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
716 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
717 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
718 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
719 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
720 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
721 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
722 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
723 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
724 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
725 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
726 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
727 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
728 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
729 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
730 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
731 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
732 * config/z8k/z8k.mt: Ditto.
733
4a8269c0
AC
734 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
735 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
736 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
737 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
738 sparclite were removed.
739 * configure.host, configure.tgt: Remove corresponding tuples.
740
41989fcd
AC
741 * breakpoint.c, breakpoint.h: Remove obsolete code.
742 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
743 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
744 * stabsread.h, xcoffread.c: Ditto.
745
28a86f5c
AC
746 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
747 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
748 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
749 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
750
4efdaa0d
DL
7512003-10-06 David Lecomber <dsl@sources.redhat.com>
752
753 * f-valprint.c: Reformatting
754
ae53de43
MK
7552003-10-06 Mark Kettenis <kettenis@gnu.org>
756
a8bb57e7
MK
757 * x86-64-tdep.c: Remove duplicate comment.
758
ae53de43
MK
759 * x86-64-tdep.c (x86_64_store_return_value): Don't use
760 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
761 names for return values. This fixes a bug since we looked at %rbx
762 instead of %rdx.
763
473f17b0
MK
7642003-10-05 Mark Kettenis <kettenis@gnu.org>
765
2c261fae
MK
766 * x86-64-tdep.c: Include "regset.h".
767
473f17b0
MK
768 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
769 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
770 sizeof_fpregset.
771 * i386-tdep.c: Include "regset.h".
772 (i386_supply_gregset): New function.
773 (i386_supply_fpregset): New function.
774 (i386_gdbarch_init): Initialze register set-related members of
775 TDEP.
776 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
777 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
778
afd48b75
AC
7792003-10-03 Andrew Cagney <cagney@redhat.com>
780
781 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
782 set extract_return_value, store_return_value and
783 use_struct_convention to ppc64_sysv_abi_extract_return_value,
784 ppc64_sysv_abi_store_return_value and
785 ppc64_sysv_abi_use_struct_convention.
786 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
787 (ppc64_sysv_abi_store_return_value): Declare.
788 (ppc64_sysv_abi_use_struct_convention): Declare.
789 * ppc-sysv-tdep.c (enum return_value_convention): Define.
790 (ppc64_sysv_abi_extract_return_value): New function.
791 (ppc64_sysv_abi_store_return_value): New function.
792 (ppc64_sysv_abi_use_struct_convention): New function.
793 (ppc64_sysv_abi_return_value): New function.
794
9b540880
AC
7952003-10-03 Andrew Cagney <cagney@redhat.com>
796
797 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
798 convert a descriptor to a function when it's in the ".opd"
799 section.
800
8748518b
CV
8012003-10-03 Corinna Vinschen <vinschen@redhat.com>
802
803 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
804 reg_size to keep GCC silent.
805
0fd85043
CV
8062003-10-03 Corinna Vinschen <vinschen@redhat.com>
807
808 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
809 base for DW_EH_PE_textrel encodings.
810 (read_encoded_value): Add a DW_EH_PE_textrel case.
811 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
812 section.
813
37b517aa
MK
8142003-10-03 Mark Kettenis <kettenis@gnu.org>
815
816 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
817
12c266ea
AC
8182003-10-02 Andrew Cagney <cagney@redhat.com>
819
820 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
821 REGISTER_RAW_SIZE.
822 * gdbarch.h, gdbarch.c: Re-generate.
823 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
824 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
825 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
826 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
827 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
828 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
829 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
830 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
831 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
832 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
833 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
834 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
835 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
836 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
837 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
838 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 839
78ba4af6
JB
8402003-10-02 Jim Blandy <jimb@redhat.com>
841
842 * dwarf2read.c (struct die_info): Doc fix.
843
617daa0e
CV
8442003-10-02 Corinna Vinschen <vinschen@redhat.com>
845
846 * sh-tdep.c: Running thru gdb_indent.sh.
847
e5e33cd9
CV
8482003-10-02 Corinna Vinschen <vinschen@redhat.com>
849
850 * sh-tdep.c (sh_justify_value_in_reg): New function.
851 (sh_stack_allocsize): Ditto.
852 (flt_argreg_array): New array used for floating point argument
853 passing.
854 (sh_init_flt_argreg): New function.
a8f4cde1 855 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
856 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
857 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
858 Fix argument passing strategy.
859 (sh_push_dummy_call_nofpu): Ditto.
860
5fe830e4
AC
8612003-10-01 Andrew Cagney <cagney@redhat.com>
862
863 * value.h (register_value_being_returned): Declare. Replace
864 "value_being_returned".
865 * infcall.c (call_function_by_hand): Use
866 register_value_being_returned.
867 * infcmd.c (print_return_value): Call
868 "register_value_being_returned", handle struct return locally.
869 * values.c (register_value_being_returned): New function. Replace
870 "value_being_returned".
a8f4cde1 871
5fe830e4 8722003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
873
874 * linux-proc.c (linux_do_registers): New function.
875 (linux_make_note_section): Use linux_do_registers in case of
876 single threaded inferior programs.
877
64f395bf
AC
8782003-10-01 Andrew Cagney <cagney@redhat.com>
879
880 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
881 use STRUCT_ADDR. When not using "struct return convention", pass
882 "0" to "value_being_returned". Add FIXMEs.
883 * infcmd.c (print_return_value): Pass an explicit 0/1 to
884 value_being_returned. Add comments.
885 * values.c (value_being_returned): Add fixme.
886 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
887 (hppa_value_returned_from_stack): Add FIXME.
888
639d11d3
DC
8892003-09-30 David Carlton <carlton@kealia.com>
890
891 * dwarf2read.c (struct die_info): Add 'parent' field; replace
892 'has_children' and 'next' by 'child' and 'sibling'.
893 (read_comp_unit): Rework algorithm, breaking body into
894 read_die_and_children and read_die_and_siblings.
895 (read_die_and_children, read_die_and_siblings): New.
896 (read_full_die): Add 'has_children' argument; set it instead of
897 the die's 'has_children' field. Minor formatting cleanup.
898 (free_die_list): Use die->child and die->sibling instead of
899 die->next.
900 (dump_die_list): Ditto.
901 (sibling_die): Use die->sibling.
902 (psymtab_to_symtab_1): Use die's 'child' field in place of its
903 'has_children' and 'next' fields.
a8f4cde1
RM
904 (process_die, read_file_scope, read_func_scope)
905 (read_lexical_block_scope, read_structure_scope)
906 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
907 (read_namespace, read_subroutine_type, dump_die): Ditto.
908
5bffac25
AC
9092003-09-30 Andrew Cagney <cagney@redhat.com>
910
911 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
912 to 224, not 220.
913
f30992d4
AC
9142003-09-30 Andrew Cagney <cagney@redhat.com>
915
916 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
917 REGISTER_VIRTUAL_SIZE.
918 * gdbarch.h, gdbarch.c: Regenerate.
919 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
920 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
921 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
922
2e092625
AC
9232003-09-29 Andrew Cagney <cagney@redhat.com>
924
925 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
926 DEPRECATED_REGISTER_VIRTUAL_TYPE.
927 * gdbarch.h, gdbarch.c: Regenerate.
928 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
929 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
930
931 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
932 * remote-vxmips.c (vx_read_register): Ditto.
933 * remote-vx68.c (vx_read_register): Ditto.
934 * gnu-nat.c (inf_validate_procs): Ditto.
935
7a5dd6ee
JB
9362003-09-29 J. Brobecker <brobecker@gnat.com>
937
938 * infcall.c (call_function_by_hand): Fix build failure
939 introduced in the previous change to this file.
940
1fe43d45
AC
9412003-09-29 Andrew Cagney <cagney@redhat.com>
942
943 * NEWS: Mention Objective-C.
944
e28a332c
JG
9452003-09-29 Jerome Guitton <guitton@act-europe.fr>
946
947 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
948 test if the register has been saved on the stack.
949 (arm_scan_prologue_cache): When analysing the instruction
950 "str lr, [sp, #-4]", save the address where lr has been stored.
951
9ff63c35
AC
9522003-09-28 Andrew Cagney <cagney@redhat.com>
953
7f5f525d
AC
954 * frame.c (frame_read_unsigned_register): Delete function.
955 * frame.h (frame_read_unsigned_register): Delete declaration.
956 * sparc-tdep.c (sparc_init_extra_frame_info): Use
957 get_frame_register_unsigned.
958 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
959 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
960 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 961
7f5f525d
AC
962 * frame.h (frame_read_register): Delete declaration.
963 * frame.c (frame_read_register): Delete function.
964 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
965 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
966 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
967 * mips-tdep.c (mips_register_to_value): Ditto.
968 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
969 * d10v-tdep.c (d10v_print_registers_info): Ditto.
970
971 * frame.c (frame_read_signed_register): Delete function.
972 (frame_read_unsigned_register): Update comments.
973 * frame.h (frame_read_signed_register): Delete declaration.
974 * h8300-tdep.c (h8300_print_register): Use
975 get_frame_register_signed.
976 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
977
9ff63c35
AC
978 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
979 Rename VALUE_RETURNED_FROM_STACK.
980 * infcmd.c (print_return_value): Update.
981 * infcall.c (call_function_by_hand): Update.
982
41d041d6
MK
9832003-09-28 Mark Kettenis <kettenis@gnu.org>
984
985 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
986 regcache argument and reverse the order of the other two
987 arguments. Remove local regcache variable. Determine
988 architecture from REGCACHE. Update comments.
989 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
990 reverse the order of the other two arguments. Remove local
991 regcache variable. Determine architecture from REGCACHE. Update
992 comments.
993 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
994 prototypes. Update comments.
995 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
996 comment.
997 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
998 Update.
999 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1000 * i386-interix-nat.c (supply_fpregset): Update.
1001 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1002 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1003 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1004 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1005 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1006 Update.
1007 * i386obsd-tdep.c (fetch_core_registers): Update.
1008 * i386v4-nat.c (supply_fpregset): Update.
1009 * x86-64-linux-nat.c (supply_fpregset): Update.
1010 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1011
1cb97e17
MK
10122003-09-27 Mark Kettenis <kettenis@gnu.org>
1013
5716833c
MK
1014 * i386-tdep.h: Put opaque declarations in alphabetical
1015 order. Remove spurious whitespace.
1016 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1017 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1018 * i386-tdep.c (MM0_REGNUM): Remove define.
1019 (i386_mmx_regnum_p): Add gdbarch argument.
1020 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1021 Rewrite using new macro definitions for FPU/SSE registers.
1022 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1023 definitions from i387-tdep.h.
1024 (i386_register_name): Update.
1025 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1026 new macro definitions for FPU/SSE registers.
1027 (i386_extract_return_value): Determine whether floating-point
1028 registers are present by examining REGCACHE's architecture.
1029 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1030 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1031 FPU/SSE registers.
1032 (i386_register_type): Update.
1033 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1034 definitions for FPU registers. Use REGCACHE's architecture to
1035 determine the appropriate register numbers.
1036 (i386_pseudo_register_read, i386_pseudo_register_write,
1037 i386_register_reggroup_p): Update.
1038 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1039 TDEP->mm0_regnum.
1040 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1041 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1042 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1043 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1044 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1045 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1046 *' to `void *'.
1047 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1048 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1049 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1050 definitions for FPU/SSE registers.
1051 (FXSAVE_MXCSR_ADDR): New define.
1052 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1053 TDEP->mm0_regnum.
1054 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1055 (I387_ST0_REGNUM): Define.
1056
41d35cb0
MK
1057 * regcache.h (get_regcache_arch): New prototype.
1058 * regcache.c (get_regcache_arch): New function.
1059
54e74f72
MK
1060 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1061 whitespace.
1062
1cb97e17
MK
1063 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1064 Initialize using ARRAY_SIZE.
1065
0968aa8c
AC
10662003-09-27 Andrew Cagney <cagney@redhat.com>
1067
1068 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1069 "init_frame_pc_default".
1070 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1072 * vax-tdep.c (vax_gdbarch_init): Update.
1073 * v850-tdep.c (v850_gdbarch_init): Update.
1074 * sh64-tdep.c (sh64_gdbarch_init): Update.
1075 * s390-tdep.c (s390_gdbarch_init): Update.
1076 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1077 * mcore-tdep.c (mcore_gdbarch_init): Update.
1078 * h8300-tdep.c (h8300_gdbarch_init): Update.
1079 * cris-tdep.c (cris_gdbarch_init): Update.
1080 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1081
54c84734
MK
10822003-09-26 Mark Kettenis <kettenis@gnu.org>
1083
1084 * regset.h: New file.
1085 * Makefile.in (regset_h): Add.
1086
1b1d3794
AC
10872003-09-25 Andrew Cagney <cagney@redhat.com>
1088
1089 * frame.h (deprecated_frame_saved_regs): Rename
1090 get_frame_saved_regs.
1091 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1092 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1093 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1094 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1095 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1096
e6beb428
AC
10972003-09-25 Andrew Cagney <cagney@redhat.com>
1098
1099 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1100 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1101 and Java.
1102 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1103 arm*-*-* do not use the new frame code.
1104
710122da
DC
11052003-09-25 David Carlton <carlton@kealia.com>
1106
1107 * c-exp.y: Remove 'register' declarations.
1108 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1109
79c2c32d
DC
11102003-09-25 David Carlton <carlton@kealia.com>
1111
1112 * c-exp.y: Include cp-support.h. Add qualified_type.
1113 (yylex): Delete nested type hack; add comments.
1114 * cp-namespace.c (cp_lookup_nested_type): New function.
1115 * cp-support.h: Declare cp_lookup_nested_type.
1116 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1117 instead of value_struct_elt_for_reference.
1118 * valops.c: Include cp-support.h.
1119 (value_aggregate_elt): New function.
1120 (value_namespace_elt): Ditto.
1121 (value_struct_elt_for_reference): Make static.
1122 * value.h: Delete declaration of value_struct_elt_for_reference;
1123 add declaration for value_aggregate_elt.
1124 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1125 (valops.o): Ditto.
1126
898c62f5
DJ
11272003-09-25 Daniel Jacobowitz <drow@mvista.com>
1128
1129 * stack.c: Include "reggroups.h".
1130 (frame_info): Only display registers in all_reggroup.
1131 * Makefile.in (stack.o): Update dependencies.
1132
28cd8767
JG
11332003-09-25 Jerome Guitton <guitton@act-europe.fr>
1134
1135 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1136 "add ip, sp #n" in the prologue.
1137 (arm_scan_prologue): Ditto.
1138
a4ab2b5d
JG
11392003-09-25 Jerome Guitton <guitton@act-europe.fr>
1140
1141 * MAINTAINERS (write after approval): Add myself.
1142
3f244638
AS
11432003-09-25 Andreas Schwab <schwab@suse.de>
1144
1145 * m68k-tdep.c: Include "dwarf2-frame.h".
1146 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1147 * Makefile.in (m68k-tdep.o): Update dependencies.
1148
1c0159e0
CV
11492003-09-25 Corinna Vinschen <vinschen@redhat.com>
1150
1151 * sh-tdep.c (struct frame_extra_info): Remove.
1152 (struct sh_frame_cache): New structure.
1153 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1154 (GET_TARGET_REG): Ditto but target register.
1155 (GET_PUSHED_REG): Remove.
1156 (IS_MOV_ARG_TO_REG): New macro.
1157 (IS_MOV_ARG_TO_IND_R14): New macro.
1158 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1159 (IS_MOVW_PCREL_TO_REG): New macro.
1160 (IS_MOVL_PCREL_TO_REG): New macro.
1161 (IS_SUB_REG_FROM_SP): New macro.
1162 (IS_ARG_MOV): Remove.
1163 (IS_MOV_TO_R14): Remove.
1164 (IS_RESTORE_FP): New macro.
1165 (IS_RTS): New macro.
1166 (IS_LDS): New macro.
1167 (IS_MOV_FP_SP): New macro.
1168 (IS_ADD_REG_TO_FP): New macro.
1169 (IS_ADD_IMM_FP): New macro.
1170 (sh_skip_prologue_hard_way): Remove.
1171 (sh_saved_pc_after_call): Remove.
1172 (sh_frame_chain): Remove.
1173 (sh_find_callers_reg): Remove.
a8f4cde1 1174 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1175 (sh_fp_frame_init_saved_regs): Remove.
1176 (sh_init_extra_frame_info): Remove.
1177 (sh_analyze_prologue): New function.
1178 (sh_skip_prologue): Remove deprecated code. Rely on new function
1179 sh_analyze_prologue when after_prologue fails.
1180 (sh_frame_saved_pc): Remove.
1181 (sh_alloc_frame_cache): New function.
1182 (sh_frame_cache): Ditto.
1183 (sh_frame_prev_register): Ditto.
1184 (sh_frame_this_id): Ditto.
1185 (sh_frame_unwind): New structure defining the heuristic frame
1186 sniffer interface.
1187 (sh_frame_sniffer): New function.
1188 (sh_unwind_sp): Ditto.
1189 (sh_unwind_pc): Ditto.
1190 (sh_unwind_dummy_id): Ditto.
1191 (sh_frame_base_address): Ditto.
1192 (sh_frame_base): New structure defining new frame base code.
1193 (sh_in_function_epilogue_p): New function.
1194 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1195 code and to call all new code instead. Initialize dwarf2 and
1196 heuristic frame sniffer.
1197
5f9769d1
PH
11982003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1199
a8f4cde1
RM
1200 * parser-defs.h (struct exp_descriptor): New definition, containing
1201 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1202 evaluating expressions.
1203 (exp_descriptor_standard): Declare new variable.
1204 (print_subexp): Make global and declare here (from expprint.c).
1205 (dump_subexp): Ditto.
1206 (dump_subexp_body_standard): Declare.
1207 (operator_length_standard): Declare.
1208 (op_name_standard): Declare.
1209 (print_subexp): Declare.
1210 (print_subexp_standard): Declare.
1211
1212 * language.h (struct language_defn): Add la_exp_desc field to hold
1213 pointer to table for language-specific operators.
1214 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1215
1216 * parse.c (operator_length): Move most code to new
5f9769d1 1217 operator_length_standard function. Use language-specific information.
a8f4cde1 1218 (operator_length_standard): New function taking most code from
5f9769d1
PH
1219 operator_length.
1220 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1221
1222 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1223 and OP_EXTENDED_LAST.
a8f4cde1
RM
1224
1225 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1226 Make global; remove static declaration.
1227 Move most code to print_subexp_standard.
a8f4cde1 1228 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1229 print_subexp.
1230 (op_name): Add expression to argument signature.
a8f4cde1 1231 Use langauge-specific op_name.
5f9769d1
PH
1232 Move most code to op_name_standard.
1233 (op_name_standard): New function, containing code formerly in op_name.
1234 (dump_subexp): Use new version of op_name function.
1235 Use language-specific dump_subexp_body, and move most existing code to
1236 dump_subexp_body_standard.
1237 (dump_raw_expression): Use new op_name interface.
1238 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1239 (dump_subexp_body_standard): New function, containing code formerly
1240 in dump_subexp_body.
a8f4cde1 1241
5f9769d1
PH
1242 * language.c (unknown_language): Add default la_exp_desc field and
1243 remove evaluate_exp field.
1244 (auto_language): Ditto.
1245 (local_language): Ditto.
1246 * f-lang.c (f_language_defn): Ditto.
1247 * c-lang.c (c_language_defn): Ditto.
1248 (cplus_language_defn): Ditto.
1249 (asm_language_defn): Ditto.
1250 (minimal_language_defn): Ditto.
1251 * p-lang.c (pascal_language_defn): Ditto.
1252 * m2-lang.c (m2_language_defn): Ditto.
1253 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1254
1255 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1256 Java-specific expression evaluator.
1257 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1258 field.
a8f4cde1 1259 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1260 Scheme-specific expression evaluator.
1261 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1262 field.
1263 * objc-lang.c (print_object_command): Take evaluate_exp from the
1264 la_exp_desc field.
a8f4cde1 1265
5f9769d1 1266 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1267
1268 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1269 la_exp_desc's type.
1270 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1271
24daaebc
PH
12722003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1273
1274 * parser-defs.h (operator_length): Declare.
a8f4cde1 1275
24daaebc
PH
1276 * parse.c (length_of_subexp): Use operator_length to get operator
1277 lengths and arities for operators.
1278 Move most code to new operator_length function.
a8f4cde1 1279 (operator_length): New function absorbing most code from
24daaebc
PH
1280 length_of_subexp.
1281 (prefixify_subexp): Remove large case and use operator_length instead.
1282 (parse_exp_1): Use renamings:
a8f4cde1 1283 dump_prefix_expression => dump_raw_expression and
24daaebc 1284 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1285
24daaebc
PH
1286 * expression.h (dump_prefix_expression): Rename to ...
1287 (dump_raw_expression): New name.
1288 (dump_postfix_expression): Rename to ...
1289 (dump_prefix_expression): New name.
a8f4cde1 1290
24daaebc
PH
1291 * expprint.c (dump_subexp): Make global. Add comment.
1292 Move most existing code to dump_subexp_body.
1293 (dump_subexp_body): New function.
1294 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1295 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1296 work before the expression is prefixified.
1297 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1298 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1299 that's what it does.
a8f4cde1 1300 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1301 prefixified expression.
1302 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1303
8c2957c4
JB
13042003-09-22 Jim Blandy <jimb@redhat.com>
1305
1306 * dwarf2read.c (read_array_type): When building the type for an
1307 array of unspecified length, make sure to choose the upper bound
1308 so that the array's total length comes out to be zero --- that's
1309 how we represent such arrays.
1310
592e3010
MC
13112003-09-22 Michael Chastain <mec@shout.net>
1312
1313 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1314
365c70b1
JJ
13152003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1316
1317 * top.c (quit_force): Fix indirect call to quit_target so
1318 a struct qt_args pointer is passed.
1319
5d6eb653
AC
13202003-09-22 Andrew Cagney <cagney@redhat.com>
1321
1322 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1323 * arch-utils.c (init_frame_pc_noop): Delete function.
1324 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1325 "init_frame_pc".
1326 * mips-tdep.c (mips_gdbarch_init): Ditto.
1327 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1328 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1329 declaration.
1330 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1331 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1332 declaration.
1333 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1334
b222a67f
AG
13352003-09-22 Anthony Green <green@redhat.com>
1336
1337 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1338 declaration.
1339
d5b5ac79
AC
13402003-09-20 Andrew Cagney <cagney@redhat.com>
1341
deafb061
AC
1342 * breakpoint.c: Eliminate ARGSUSED.
1343 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1344 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1345 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1346 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1347 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1348 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1349 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1350 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1351 * wince.c, remote-vx.c: Ditto.
1352
d5b5ac79
AC
1353 * cli/cli-script.c: Remove "register" attributes.
1354 * config/pa/tm-hppa.h: Ditto.
1355 * cli/cli-decode.c: Ditto.
1356 * cli/cli-cmds.c: Ditto.
1357
c6316faa
AC
13582003-09-19 Andrew Cagney <cagney@redhat.com>
1359
1360 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1361 DEPRECATED_NPC_REGNUM.
1362 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1363
f4f99b11
CF
13642003-09-19 Christopher Faylor <cgf@redhat.com>
1365
1366 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1367
1708f284
JB
13682003-09-19 Jim Blandy <jimb@redhat.com>
1369
1370 * macrotab.c (macro_include): Use the correct comparison to find
1371 the appropriate place for this inclusion in the list.
1372
b9fbf434
AC
13732003-09-19 Andrew Cagney <cagney@redhat.com>
1374
1375 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1376 (DEPRECATED_HPUX_TEXT_END): Define.
1377 (deprecated_hpux_text_end): Declare.
1378 (struct target_ops): Declare opaque.
1379 * hppah-nat.c (text_end): Make static.
1380 (deprecated_hpux_text_end): New function.
1381 * exec.c (text_end): Delete global variable.
1382 (NEED_TEXT_START_END): Do not define.
1383 (exec_file_attach): Replace code computing "text_end" code with
1384 call to DEPRECATED_HPUX_TEXT_END.
1385
5b03f266
AC
13862003-09-19 Andrew Cagney <cagney@redhat.com>
1387
1388 * utils.c (align_up, align_down): New functions.
1389 * defs.h (align_up, align_down): Declare.
1390 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1391 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1392 and "align_down".
1393 (round_up, round_down): Delete functions.
1394 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1395 "align_down".
1396 (ROUND_DOWN, ROUND_UP): Delete macros.
1397 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1398 * h8300-tdep.c: Replace "round_up" and "round_down" with
1399 "align_up" and "align_down".
1400 (round_up, round_down): Delete macros.
1401 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1402 "align_down".
1403 (ROUND_UP, ROUND_DOWN): Delete macros.
1404
51db5742
JB
14052003-09-18 J. Brobecker <brobecker@gnat.com>
1406
1407 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1408 hard-coded constant. Use the proper machine name instead.
1409
77949794
AC
14102003-09-17 Andrew Cagney <cagney@redhat.com>
1411
1412 * sparc-tdep.c (legacy_register_name): Delete function.
1413 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1414 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1415 * infcmd.c (gdb_register_name): Delete variable.
1416 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1417 REGISTER_NAME and "tm.h".
1418 * gdbarch.h, gdbarch.c: Regenerate.
1419 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1420 REGISTER_NAMES in comments.
1421 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1422 * m68klinux-nat.c (regmap): Ditto.
1423
b55c33cc
JB
14242003-09-17 Jim Blandy <jimb@redhat.com>
1425
1426 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1427
957e27ac
AC
14282003-09-17 Andrew Cagney <cagney@redhat.com>
1429
1430 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1431 (ppcnbsd_init_abi): Set "use_struct_convention" to
1432 "ppcnbsd_use_struct_convention".
1433
192cb3d4
MK
14342003-09-17 Mark Kettenis <kettenis@gnu.org>
1435
1436 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1437 * gdbarch.h, gdbarch.c: Regenerate.
1438 (stabs_argument_has_addr): New architecture method.
1439 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1440 * arch-utils.c: Include "buildsym.h".
1441 (default_stabs_argument_has_addr): New function.
1442 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1443 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1444
efe59759
AC
14452003-09-17 Andrew Cagney <cagney@redhat.com>
1446
1447 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1448 * gdbarch.h, gdbarch.c: Regenerate.
1449 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1450 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1451 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1452 * sparcnbsd-tdep.c: Update.
a8f4cde1 1453
62700349
AC
14542003-09-17 Andrew Cagney <cagney@redhat.com>
1455
1456 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1457 * gdbarch.h, gdbarch.c: Regenerate.
1458 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1459 * d10v-tdep.c, frame.c: Update.
1460 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1461 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1462 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1463 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1464 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1465 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1466 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1467 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1468 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1469 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1470 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1471 * config/pa/nm-hppah.h: Update.
1472
b9ff3018
AC
14732003-09-16 Andrew Cagney <cagney@redhat.com>
1474
1475 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1476 "use_struct_convention" to "ppc_linux_use_struct_convention".
1477 (ppc_linux_use_struct_convention): New function.
1478 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1479 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1480 "rs6000_use_struct_convention".
1481 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1482 declaration.
1483 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1484 Delete function.
1485
aa1ee363
AC
14862003-09-16 Andrew Cagney <cagney@redhat.com>
1487
1488 * buildsym.c: Remove more occurances of "register".
1489 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1490 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1491 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1492 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1493 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1494 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1495 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1496 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1497
f2ea0907
CV
14982003-09-16 Corinna Vinschen <vinschen@redhat.com>
1499
1500 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1501 numbers to enumeration values.
1502 * sh-tdep.c: Accomodate above change.
1503 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1504 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1505 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1506 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1507 (IS_FPUSH): Rename from IS_FMOV.
1508 (sh_extract_struct_value_address): Remove useless comment.
1509 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1510 instead of own local values.
1511 (sh_dump_tdep): Remove.
1512 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1513 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1514
1c704f11
AC
15152003-09-15 Andrew Cagney <cagney@redhat.com>
1516
1517 * doublest.c (convert_floatformat_to_doublest): No longer need to
1518 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1519
ac79b88b
DJ
15202003-09-15 Daniel Jacobowitz <drow@mvista.com>
1521
1522 * values.c (unpack_double): Call floatformat_is_valid.
1523
1c671366
MK
15242003-09-15 Mark Kettenis <kettenis@gnu.org>
1525
de5227fb
MK
1526 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1527 ps_strings into a long.
1528
1c671366
MK
1529 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1530 _initialize_am64fbsd_nat.
1531
a604369a
KB
15322003-09-15 Kevin Buettner <kevinb@redhat.com>
1533
1534 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1535 associated with DW_AT_ranges attribute is out of bounds.
1536
b3cacbee
DL
15372003-09-15 David Lecomber <dsl@sources.redhat.com>
1538
1539 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1540
d0f37bb2
MC
15412003-09-14 Michael Chastain <mec@shout.net>
1542
1543 * config/m68k/nm-apollo68v.h: Delete.
1544 * config/m68k/xm-apollo68v.h: Delete.
1545
69517000
AC
15462003-09-14 Andrew Cagney <cagney@redhat.com>
1547
1548 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1549 * dcache.c: Update copyrights and descriptions.
1550 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1551
ef8b349d
AC
15522003-09-14 Andrew Cagney <cagney@redhat.com>
1553
1554 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1555 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1556
52f0bd74
AC
15572003-09-14 Andrew Cagney <cagney@redhat.com>
1558
1559 * alpha-nat.c: Remove some occurances of "register".
1560 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1561 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1562 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1563 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1564 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1565 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1566 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1567 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1568 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1569 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1570 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1571 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1572 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1573 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1574 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1575 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1576 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1577 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1578 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1579 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1580 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1581 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1582
4a4b3fed
AC
15832003-09-13 Andrew Cagney <cagney@redhat.com>
1584
1585 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1586 * ppc-tdep.h (struct regcache): Declare opaque.
1587 * objfiles.h (struct objfile_data): Declare opaque.
1588 * cp-support.h (struct objfile): Declare opaque.
1589 * linux-nat.h (target_waitstatus): Declare opaque.
1590
2110b94f
MK
15912003-09-14 Mark Kettenis <kettenis@gnu.org>
1592
1c671366
MK
1593 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1594 (stabs_argument_has_addr): New architecture method.
1595 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1596 * arch-utils.c: Include "buildsym.h".
1597 (default_stabs_argument_has_addr): New function.
1598 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1599 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1600
2110b94f
MK
1601 * cris-tdep.c (cris_gdbarch_init): Set
1602 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1603 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1604 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1605 * mips-tdep.c (mips_gdbarch_init): Likewise.
1606 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1607 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1608
48436ce6
AC
16092003-09-13 Andrew Cagney <cagney@redhat.com>
1610
1611 * values.c (using_struct_return): Delete "function" and "funcaddr"
1612 parameters.
1613 * value.h (using_struct_return): Update declaration.
1614 * infcmd.c (finish_command_continuation): Update.
1615 (finish_command): Update.
1616 * infcall.c (call_function_by_hand): Update.
1617 * eval.c (evaluate_subexp_standard): Update.
1618
403d9909
CF
16192003-09-13 Christopher Faylor <cgf@redhat.com>
1620
1621 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1622 SSE registers since gdb will not operate correctly without this.
1623 Restore include file ordering munged in previous change.
1624 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1625
ebf7d56b
MK
16262003-09-13 Mark Kettenis <kettenis@gnu.org>
1627
8e823e25
MK
1628 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1629 REG_STRUCT_HAS_ADDR.
1630 * gdbarch.c, gdbarch.h: Updated.
1631 * infcall.c (call_function_by_hand): Update.
1632 * stabsread.c (define_symbol): Updated.
a8f4cde1 1633
ebf7d56b
MK
1634 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1635
d3f13f72
CF
16362003-09-12 Christopher Faylor <cgf@redhat.com>
1637
1638 * win32-nat.c: Reorganize so that defines used by target headers are
1639 actually defined by the system headers.
1640 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1641 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1642
14f75137
JB
16432003-09-12 Jim Blandy <jimb@redhat.com>
1644
d646061f
JB
1645 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1646 the file has no .data, .bss, or .rodata sections. Instead wait
1647 until we see a variable alleged to live in one of those sections.
1648
2a13f9bc
JB
1649 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1650 .bss section, presume that any variables we find live in the
1651 .rodata section.
1652
4f49b26b
JB
1653 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1654 offsets for global and static variables.
1655
14f75137
JB
1656 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1657 symbol types are, by definition, in the .data section, so it is
1658 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1659 If there is no .data section, there should be no N_DATA or N_DATA
1660 | N_EXT symbols.
1661
212c460c
MK
16622003-09-12 Mark Kettenis <kettenis@gnu.org>
1663
1664 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1665 (amd64fbsd_sigcontext_addr): Rewrite.
1666 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1667 with correct values.
1668 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1669 (amd64fbsd_init_abi): Fix typo.
1670
68856ea3
AC
16712003-09-12 Andrew Cagney <cagney@redhat.com>
1672
1673 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1674 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1675
627b3ba2
AC
16762003-09-12 Andrew Cagney <cagney@redhat.com>
1677
1678 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1679 "entry_file_highpc". Update comments.
1680 * defs.h (deprecated_inside_entry_file): Rename
1681 "inside_entry_file".
1682 * blockframe.c (deprecated_inside_entry_file): Rename
1683 "inside_entry_file".
1684 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1685 * vax-tdep.c (vax_frame_chain): Update.
1686 * sh64-tdep.c (sh64_frame_chain): Update.
1687 * sh-tdep.c (sh_frame_chain): Update.
1688 * rs6000-tdep.c (rs6000_frame_chain): Update.
1689 * ns32k-tdep.c (ns32k_frame_chain): Update.
1690 * mips-tdep.c (mips_frame_chain): Update.
1691 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1692 * m32r-tdep.c (m32r_frame_this_id): Update.
1693 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1694 * frv-tdep.c (frv_frame_this_id): Update.
1695 * d10v-tdep.c (d10v_frame_this_id): Update.
1696 * cris-tdep.c (cris_frame_chain): Update.
1697 * blockframe.c (legacy_frame_chain_valid): Update.
1698 * avr-tdep.c (avr_frame_this_id): Update.
1699 * arm-tdep.c (arm_prologue_this_id): Update.
1700 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1701 * objfiles.c (objfile_relocate): Update.
1702 * mipsread.c (mipscoff_symfile_read): Update.
1703 (mipscoff_symfile_read): Update.
1704 * mdebugread.c (parse_partial_symbols): Update.
1705 * dwarfread.c (read_file_scope): Update.
1706 * dwarf2read.c (read_file_scope): Update.
1707 * dbxread.c (read_dbx_symtab): Update.
1708 (read_dbx_symtab): Update.
1709 * coffread.c (complete_symtab): Update.
1710
b0abbc58
JJ
17112003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1712
1713 * top.c (quit_target): New static helper function.
1714 (quit_force): Moved code to quit_target(). Call quit_target()
1715 via catch_errors() to catch errors during quit.
1716
a1632d59
DC
17172003-09-11 David Carlton <carlton@kealia.com>
1718
1719 * buildsym.c (finish_block): Use allocate_block to allocate the
1720 block.
1721 * mdebugread.c (new_block): Add FIXME.
1722
5c4e30ca
DC
17232003-09-11 David Carlton <carlton@kealia.com>
1724
1725 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1726 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1727 (recursive_dump_type): Ditto.
1728 * printcmd.c (print_formatted): Ditto.
1729 * typeprint.c (print_type_scalar): Ditto.
1730 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1731 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1732 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1733 maint_cplus_cmd_list.
1734 * cp-support.c: Make maint_cplus_cmd_list extern.
1735 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1736 command.h.
1737 (lookup_symbol_file): Look in possible namespace blocks when
1738 appropriate.
1739 (initialize_namespace_symtab): New.
1740 (get_possible_namespace_block, free_namespace_block)
1741 (check_possible_namespace_symbols)
1742 (check_possible_namespace_symbols_loop)
1743 (check_one_possible_namespace_symbol)
1744 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1745 (_initialize_cp_namespace): Ditto.
1746 * block.h: Declare allocate_block.
1747 * block.c (allocate_block): New.
1748 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1749 allocate_block.
1750 * symfile.h: Update declaration of add_psymbol_to_list.
1751 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1752 question.
1753 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1754 scan_partial_symbols_call.
1755 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1756 helper functions.
1757 (add_partial_symbol): If necessary, scan mangled names for names
1758 of namespaces.
1759 (add_partial_namespace): Add NAMESPACE argument; generate partial
1760 symbols associated to namespaces.
1761 (add_partial_enumeration): Add NAMESPACE argument.
1762 (new_symbol): Allow namespace syms.
1763 (read_namespace): Generate namespace syms.
1764 * objfiles.h: Add opaque declaration of struct symtab.
1765 (struct objfile): Add cp_namespace_symtab member.
1766 * objfiles.c (allocate_objfile): Set
1767 objfile->cp_namespace_symtab.
1768 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1769 dictionary_h, command_h.
1770
33a7c2fc
AC
17712003-09-11 Andrew Cagney <cagney@redhat.com>
1772
1773 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1774 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1775 near the function's end.
1776 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1777 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1778 regcache_raw_write_signed to set SP_REGNUM.
1779
63cd24fe
EZ
17802003-09-11 Elena Zannoni <ezannoni@redhat.com>
1781
1782 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1783 orig_addrs is set up properly.
1784
f27dd7fd
AC
17852003-09-11 Andrew Cagney <cagney@redhat.com>
1786
1787 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1788 * gdbarch.h, gdbarch.c: Re-generate.
1789 * infcall.c (call_function_by_hand): Update.
1790 * hppa-tdep.c (hppa_push_arguments): Update.
1791 * ada-lang.c (place_on_stack): Update.
1792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1793 * sparc-tdep.c (sparc_gdbarch_init): Update.
1794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1795 * hppa-tdep.c (hppa_gdbarch_init): Update.
1796 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1797 stack_align.
1798
f630a401
DJ
17992003-09-11 Daniel Jacobowitz <drow@mvista.com>
1800
1801 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1802 register do need a frame.
1803
0ddabb4c
AC
18042003-09-11 Andrew Cagney <cagney@redhat.com>
1805
1806 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1807 buildable since GDB 5.0.
1808 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1809 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1810 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1811 * irix4-nat.c: Delete file.
1812 * config/mips/irix4.mh: Delete file.
1813 * config/mips/irix3.mh: Delete file.
1814 * config/mips/irix3.mt: Delete file.
1815 * config/mips/tm-irix3.h: Delete file.
1816 * config/mips/nm-irix3.h: Delete file.
1817 * config/mips/xm-irix3.h: Delete file.
1818 * config/mips/nm-irix4.h: Delete file.
1819 * config/mips/xm-irix4.h: Delete file.
1820 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1821
fde2cceb
JB
18222003-09-10 J. Brobecker <brobecker@gnat.com>
1823
1824 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1825 * Makefile.in (hppa-tdep.o): Update dependencies.
1826
66f667f5
JW
18272003-09-10 James E Wilson <wilson@specifixinc.com>
1828
ef5fd69f
JW
1829 * MAINTAINERS: Change my e-mail address. Move to paper trail
1830 section.
66f667f5 1831
53e8aaea
KB
18322003-09-10 Kevin Buettner <kevinb@redhat.com>
1833
1834 * MAINTAINERS (frv): New ISA entry.
1835
dcc6aaff
KB
18362003-09-10 Kevin Buettner <kevinb@redhat.com>
1837
1838 * frv-tdep.c (dis-asm.h): Include.
1839 * Makefile.in (frv-tdep.o): Update dependencies.
1840
932644f0
JJ
18412003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1842
1843 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1844 Fix typo for high range of floating registers.
1845
91c24f0a
DC
18462003-09-09 David Carlton <carlton@kealia.com>
1847
1848 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1849 highpc initialization here out of scan_partial_symbols.
1850 (scan_partial_symbols): Restructure into a recursive version,
1851 calling add_partial_namespace and add_partial_enumeration when
1852 appropriate.
1853 (add_partial_namespace): New.
1854 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1855
c9263853
AC
18562003-09-09 Andrew Cagney <cagney@redhat.com>
1857
e56a0ecc
AC
1858 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1859 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1860 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1861 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1862
794a477a
AC
1863 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1864 (rs6000_push_dummy_call): Set the "TOC" register.
1865
c9263853
AC
1866 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1867 methods "max_register_raw_size", "max_register_virtual_size" or
1868 "register_virtual_size".
1869
afa7d0b2
ILT
18702003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1871
1872 * MAINTAINERS: Update my e-mail address.
1873
7a41266b
AC
18742003-09-09 Andrew Cagney <cagney@redhat.com>
1875
1876 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1877 (rs6000_push_dummy_call): Store the struct return address.
1878 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1879
77b2b6d4
AC
18802003-09-09 Andrew Cagney <cagney@redhat.com>
1881
1882 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1883 "ppc_sysv_abi_push_arguments".
1884 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1885 "ppc_sysv_abi_push_arguments".
1886 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1887 instead of "push_arguments".
1888 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1889
e8a7b686
AC
18902003-09-09 Andrew Cagney <cagney@redhat.com>
1891
1892 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1893 instead of CALL_DUMMY_ADDRESS.
1894
f86f5ca3
PH
18952003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1896
1897 * p-lang.c: Eliminate "register".
1898 * c-lang.c: Ditto.
1899 * expprint.c: Ditto.
1900 * f-lang.c: Ditto.
1901 * jv-lang.c: Ditto.
1902 * language.c: Ditto.
1903 * m2-lang.c: Ditto.
1904 * parse.c: Ditto.
1905 * scm-lang.c: Ditto.
1906 * objc-lang.c: Ditto.
1907
83ee270e
NC
19082003-09-09 Nick Clifton <nickc@redhat.com>
1909
1910 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1911
a89aa300
AC
19122003-09-04 Andrew Cagney <cagney@redhat.com>
1913
1914 * avr-tdep.c: Include "dis-asm.h".
1915 * cris-tdep.c: Include "dis-asm.h".
1916 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1917 instead of corresponding typedef.
1918 * h8300-tdep.c: Include "dis-asm.h".
1919 * ia64-tdep.c: Include "dis-asm.h".
1920 * i386-tdep.c: Include "dis-asm.h".
1921 (i386_print_insn): Use "struct disassemble_info" instead of
1922 corresponding typedef.
1923 * m68k-tdep.c: Include "dis-asm.h".
1924 * mcore-tdep.c: Include "dis-asm.h".
1925 * mips-tdep.c: Include "dis-asm.h".
1926 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1927 instead of corresponding typedef.
1928 * ns32k-tdep.c: Include "dis-asm.h".
1929 * s390-tdep.c: Include "dis-asm.h".
1930 * sparc-tdep.c: Include "dis-asm.h".
1931 * vax-tdep.c: Include "dis-asm.h".
1932 * v850-tdep.c: Include "dis-asm.h".
1933 * mn10300-tdep.c: Include "dis-asm.h".
1934 * rs6000-tdep.c: Include "dis-asm.h".
1935 * xstormy16-tdep.c: Include "dis-asm.h".
1936 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1937 print_insn_xstormy16.
1938 * Makefile.in (v850-tdep.o): Update dependencies.
1939 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1940 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1941 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1942 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1943 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1944 (gdbarch_h): Remove $(dis_asm_h).
1945 * disasm.c: Include "dis-asm.h".
1946 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1947 corresponding typedef.
1948 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1949 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1950 * gdbarch.sh: Do not include "dis-asm.h".
1951 (struct disassemble_info): Declare opaque.
1952 (TARGET_PRINT_INSN): Update declaration.
1953 * gdbarch.h, gdbarch.c: Re-generate.
1954
88a82a65
AC
19552003-09-08 Andrew Cagney <cagney@redhat.com>
1956
1957 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1958 CALL_DUMMY_ADDRESS, change to a predicate.
1959 * gdbarch.h, gdbarch.c: Re-generate.
1960 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1961 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1962 * infcall.c (call_function_by_hand): Ditto.
1963 * sparc-tdep.c (sparc_push_return_address): Ditto.
1964 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1965 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1966 CALL_DUMMY_ADDRESS with entry_point_address.
1967 * v850-tdep.c (v850_push_return_address): Ditto.
1968 * s390-tdep.c (s390_push_return_address): Ditto.
1969 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1970 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1971 * mcore-tdep.c (mcore_push_return_address): Ditto.
1972 * cris-tdep.c (cris_push_return_address): Ditto.
1973 * arm-tdep.c (arm_push_return_address): Ditto.
1974
3e2c4033
AC
19752003-09-08 Andrew Cagney <cagney@redhat.com>
1976
1977 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1978 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1979 and REG_UNMODIFIED to REG_SAME_VALUE.
1980 (execute_cfa_program): Update.
1981 (dwarf2_frame_cache): Update. Initialize table to
1982 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1983 location.
1984 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1985
39efb398
AC
19862003-09-08 Andrew Cagney <cagney@redhat.com>
1987
1988 * gnu-nat.c: Remove "inline" function attribute.
1989 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1990
f5cb5aca
KB
19912003-09-08 Kevin Buettner <kevinb@redhat.com>
1992
1993 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1994 target.
1995
1cb761c7
KB
19962003-09-08 Kevin Buettner <kevinb@redhat.com>
1997
1998 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1999 (frame_extra_info): Rename this struct to frv_unwind_cache.
2000 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2001 Add fields ``prev_sp'' and ``base''.
2002 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2003 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2004 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2005 Delete.
2006 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2007 Revise all callers. Fill in the unwind cache argument and make
2008 other adjustments to account for new frame mechanisms.
2009 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2010 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2011 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2012 (frv_frame_unwind, frv_frame_base): New structs.
2013 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2014 additional arguments expected by this method and adjust function
2015 body accordingly.
2016 (frv_gdbarch_init): Remove calls to the following functions:
2017 set_gdbarch_deprecated_init_frame_pc(),
2018 set_gdbarch_deprecated_saved_pc_after_call(),
2019 set_gdbarch_deprecated_frame_chain(),
2020 set_gdbarch_deprecated_frame_saved_pc(),
2021 set_gdbarch_deprecated_frame_init_saved_regs(),
2022 set_gdbarch_deprecated_push_arguments(),
2023 set_gdbarch_deprecated_push_return_address(),
2024 set_gdbarch_deprecated_pop_frame(),
2025 set_gdbarch_deprecated_call_dummy_words(),
2026 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2027 set_gdbarch_deprecated_init_extra_frame_info(),
2028 set_gdbarch_deprecated_dummy_write_sp(), and
2029 set_gdbarch_deprecated_pc_in_call_dummy().
2030 Add calls to the following functions:
2031 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2032 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2033 frame_base_set_default().
2034 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2035
68f6cf99
MK
20362003-09-09 Mark Kettenis <kettenis@gnu.org>
2037
2038 * dwarf2-frame.c (read_encoded_value): Add support for
2039 DW_EH_PE_aligned encoding.
2040
73b65bb0
DJ
20412003-09-08 Daniel Jacobowitz <drow@mvista.com>
2042
2043 * infrun.c (normal_stop): Don't print a message if the inferior
2044 has exited.
2045
7c8a5605
JB
20462003-09-08 Jim Blandy <jimb@redhat.com>
2047
2048 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2049 * dbxread.c: #include "gdb_assert.h".
2050 (read_dbx_symtab): If the objfile has no .data section, use the
2051 section index for the .bss section instead.
2052
7dd88986
DJ
20532003-09-08 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * frame.c (deprecated_safe_get_selected_frame): New function.
2056 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2057 * findvar.c (read_var_value): Call it.
2058
55ff77ac
CV
20592003-09-08 Corinna Vinschen <vinschen@redhat.com>
2060
2061 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2062 (sh64-tdep.o): Add dependencies.
2063 * configure.tgt: Add FIXME to sh-*-linux*.
2064 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2065 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2066 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2067 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2068 * sh64-tdep.c: New file, containing all sh64 related code from
2069 sh-tdep.c.
2070 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2071 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2072 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2073 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2074 * config/sh/wince.mt (TDEPFILES): Ditto.
2075
bfb39158
DJ
20762003-09-07 Daniel Jacobowitz <drow@mvista.com>
2077
2078 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2079 (stop_wait_callback): Handle !lp->signalled also.
2080 (lin_lwp_has_pending, flush_callback): New functions.
2081 (lin_lwp_wait): Call flush_callback.
2082 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2083 (linux_proc_pending_signals): New function.
2084 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2085
9407de8e
DJ
20862003-09-07 Daniel Jacobowitz <drow@mvista.com>
2087
2088 From Nick Kelsey <nickk@ubicom.com>:
2089 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2090 when the stop PC is at the beginning of a function also.
2091
2ef47cd0
DJ
20922003-09-06 Daniel Jacobowitz <drow@mvista.com>
2093
2094 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2095 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2096
6f4492c8
MK
20972003-09-06 Mark Kettenis <kettenis@gnu.org>
2098
2099 * sol-thread.c: Include "gdb_string.h".
2100
d3420b2f
MK
21012003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2102
2103 * gcore.c: Reorder include files in alphabetical order. Include
2104 "gdb_assert.h". Various coding style fixes.
2105 (derive_stack_segment, derive_heap_segment): Replace check for
2106 non-null BOTTOM and TOP with gdb_assert.
2107 (derive_heap_segment): Replace check for successful creation of
2108 ZERO with gdb_assert.
2109 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2110
5220ea4c
AC
21112003-09-04 Andrew Cagney <cagney@redhat.com>
2112
2113 * thread-db.c (verbose_dlsym): New function.
2114 (thread_db_load): Use verbose_dlsym
2115 (thread_db_new_objfile): Print that libthread_db was loaded, and
2116 that thread debugging was enabled.
2117
6e8c2c06
AC
21182003-09-04 Andrew Cagney <cagney@redhat.com>
2119
2120 * configure.tgt: Add "mips64*-*-*" target. Delete
2121 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2122 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2123 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2124 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2125 mips*-sony-*, and mips64*-*-elf* targets.
2126 * config/mips/embedl.mt: Delete file.
2127 * config/mips/embedl64.mt: Delete file.
2128 * config/mips/mips.mt: Delete file.
2129 * config/mips/mips64.mt: Delete file.
2130 * config/mips/tm-embed.h: Delete file.
2131 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2132 * config/mips/embed64.mt: Delete out-of-date comment.
2133
3a3bc038
AC
21342003-09-04 Andrew Cagney <cagney@redhat.com>
2135
2136 * hppa-tdep.c (hppa_gdbarch_init): Set
2137 "have_nonsteppable_watchpoint".
2138 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2139 * mips-tdep.c (mips_dump_tdep): Do not print
2140 HAVE_NONSTEPPABLE_WATCHPOINT.
2141 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2142 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2143 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2144 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2145
a957e642
CV
21462003-09-04 Corinna Vinschen <vinschen@redhat.com>
2147
2148 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2149 unused code. Add comment.
2150
a6fbcf2f
CV
21512003-09-04 Corinna Vinschen <vinschen@redhat.com>
2152
2153 * breakpoint.c (watchpoint_check): Check for pc being in an
2154 epilogue if watchpoint frame couldn't be found.
2155
c14a44d5
AC
21562003-09-04 Andrew Cagney <cagney@redhat.com>
2157
2158 * Makefile.in: Re-generate all dependencies.
2159
f6c40618
AC
21602003-09-03 Andrew Cagney <cagney@redhat.com>
2161
2162 * arch-utils.h (legacy_print_insn): Delete declaration.
2163 * arch-utils.c (legacy_print_insn): Delete function.
2164 * disasm.c (deprecated_tm_print_insn_info): Delete.
2165 (_initialize_disasm): Delete function, contained code initializing
2166 deprecated_tm_print_insn_info.
2167 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2168 (deprecated_tm_print_insn_info): Delete.
2169 (TARGET_PRINT_INSN): Do not provide a default.
2170 * gdbarch.h, gdbarch.c: Re-generate.
2171
242e8be5
AC
21722003-09-03 Andrew Cagney <cagney@redhat.com>
2173
2174 * disasm.c (fprintf_disasm): New function.
2175 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2176 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2177 reverts 2003-08-14 change.
2178 (_initialize_disasm): Call "init_disassemble_info", instead of
2179 INIT_DISASSEMBLE_INFO_NO_ARCH.
2180
3ffc3dda
MS
21812003-09-03 Michael Snyder <msnyder@redhat.com>
2182
2183 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2184
52d16ba8
AC
21852003-09-03 Andrew Cagney <cagney@redhat.com>
2186
2187 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2188 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2189 * symfile.c (syms_from_objfile): Update.
2190 (reread_symbols): `Update
2191 * exec.c (exec_file_attach): Update.
2192 (exec_file_attach): Update.
2193 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2194 2003-08-29 change.
2195 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2196
eb5492fa
DJ
21972003-09-03 Daniel Jacobowitz <drow@mvista.com>
2198
2199 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2200 trad-frame.h.
2201 (arm_get_cache): Delete macro.
2202 (struct arm_prologue_cache): Update comments. Make saved_regs into
2203 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2204 to prev_sp.
2205 (thumb_scan_prologue): Update for cache changes. Don't call
2206 DEPRECATED_PC_IN_CALL_DUMMY.
2207 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2208 argument and use it in desperation search for our prologue. Do not
2209 search past the specified PC.
2210 (arm_make_prologue_cache): Simplify.
2211
2212 (arm_prologue_this_id, arm_prologue_prev_register)
2213 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2214 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2215 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2216 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2217 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2218
2219 (arm_frame_chain_valid, arm_find_callers_reg)
2220 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2221 (arm_pop_frame): Delete obsolete methods.
2222 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2223
2224 (arm_gdbarch_init): Update for new frame methods. Register prologue
2225 and sigtramp unwinders. Set the default frame base method.
2226
2227 * Makefile.in (arm-tdep.o): Update dependencies.
2228 * varobj.c (find_frame_addr_in_frame_chain): Call
2229 get_frame_base_address.
2230 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2231
24de872b
DJ
22322003-09-03 Daniel Jacobowitz <drow@mvista.com>
2233
2234 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2235 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2236 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2237 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2238 Take NEXT_FRAME and CACHE arguments. Call
2239 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2240 Set unwound_pc in CACHE instead of modifying the frame argument.
2241 Don't bother checking the frame type when looking for sigtramp
2242 frames.
2243 (arm_make_prologue_cache, arm_frame_chain)
2244 (arm_init_extra_frame_info): New functions.
2245
9b8d791a
DJ
22462003-09-03 Daniel Jacobowitz <drow@mvista.com>
2247
2248 * arm-tdep.c (arm_get_cache): Define.
2249 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2250 unwound_sp, unwound_pc, and saved_regs.
2251 (thumb_scan_prologue): Take a cache instead of the frame.
2252 (arm_scan_prologue): Likewise.
2253 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2254 instead of a temporary frame.
2255 (arm_init_extra_frame_info): Allocate and use a cache.
2256 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2257
7ee3275f
AC
22582003-09-03 Andrew Cagney <cagney@redhat.com>
2259
2260 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2261 * config/mips/wince.mt (TM_CLIBS): Ditto.
2262 * config/sh/wince.mt (TM_CLIBS): Ditto.
2263 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2264 * config/sparc/sp64.mt (CC): Delete.
2265
57b29be7
AC
22662003-09-03 Andrew Cagney <cagney@redhat.com>
2267
2268 * defs.h: Do not include "arch-utils.h".
2269 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2270 GDB_MULTI_ARCH_PURE.
2271 * configure.in (GDB_MULTI_ARCH): Do not define.
2272 * configure, config.in: Regenerate.
2273 * configure.tgt: Do not set variable "gdb_multi_arch".
2274 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2275 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2276 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2277 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2278 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2279 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2280 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2281 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2282 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2283 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2284 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2285 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2286 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2287 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2288 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2289 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2290 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2291 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2292
12e035e2
MC
22932003-08-30 Michael Chastain <mec@shout.net>
2294
2295 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2296 * config/m68k/nm-hp300hpux.h: Delete.
2297 * config/m68k/tm-hp300hpux.h: Delete.
2298 * config/m68k/xm-hp300hpux.h: Delete.
2299 * config/m68k/xm-hp300bsd.h: Delete.
2300 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2301 tm-hp300hpux.h, xm-hp300hpux.h.
2302 * somsolib.c: Remove comment about hp300 shared libraries.
2303
bda34dc2
MK
23042003-08-31 Mark Kettenis <kettenis@gnu.org>
2305
5bca7895
MK
2306 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2307 Only define PTRACE_GET_THREAD_AREA is not already defined.
2308 Various style fixes in code and comments and some additional
2309 spelling fixes in comments. Move after functions dealing with
2310 debug registers.
2311 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2312 Fix coding-style.
2313
bda34dc2
MK
2314 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2315 frame_unwind_register_unsigned instead of
2316 frame_unwind_unsigned_register.
2317
c890192f
MK
23182003-08-30 Mark Kettenis <kettenis@gnu.org>
2319
2320 * configure.in: Search for gethostbyname in libnsl.
2321 * configure: Regenerated.
2322
60fac5b8
MK
23232003-08-29 Mark Kettenis <kettenis@gnu.org>
2324
e294916c
MK
2325 * configure.in: Remove redundant AC_MSG_RESULT in check for
2326 uintptr_t in stdint.h.
2327 * configure: Regenerated.
2328
c40d267a
MK
2329 * amd64-nat.h (struct regcache): Add opaque declaration.
2330
60fac5b8
MK
2331 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2332 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2333 Change "register array" to "register cache" in comments.
2334 (x86_64_linux_gregset64_reg_offset): New variable.
2335 (GETREGS_SUPPLIES): Remove macro.
2336 (supply_gregset): Call amd64_supply_native_gregset instead of
2337 x86_64_linux_supply_gregset.
2338 (fill_gregset): Rename `regno' to `regnum'. Call
2339 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2340 (store_regs): Rename `regno' to `regnum'.
2341 (store_fpregs): Rename `regno' to `regnum'.
2342 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2343 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2344 Reorganize function a bit.
2345 (store_inferior_registers): Rename `regno' to `regnum'. Use
2346 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2347 Reorganize function a bit.
2348 (_initialize_x86_64_linux_nat): New function.
2349 * config/i386/x86-64linux.mh.
2350
546143b6
AC
23512003-08-29 Andrew Cagney <cagney@redhat.com>
2352
2353 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2354 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2355 (target_remove_watchpoint): Delete macro.
2356 (target_insert_watchpoint): Delete macro.
2357 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2358 (remote_mips_stopped_by_watchpoint): Delete declaration.
2359 (remote_mips_remove_watchpoint): Delete declaration.
2360 (remote_mips_set_watchpoint): Delete declaration.
2361 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2362 * remote-mips.c (_initialize_remote_mips): Set
2363 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2364 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2365 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2366 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2367 (mips_stopped_by_watchpoint): Rename
2368 remote_mips_stopped_by_watchpoint.
2369 (mips_can_hardware_watchpoint): Rename
2370 remote_mips_can_use_hardware_watchpoint, update function
2371 signature.
2372
7bace51b
MK
23732003-08-29 Mark Kettenis <kettenis@gnu.org>
2374
b0f5c6f2
MK
2375 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2376 USER_DS. We haven't given them a register number yet.
2377
2a6d284d
MK
2378 * amd64-nat.h: New file.
2379 * amd64-nat.c: New file.
2380 * amd64fbsd-nat.c: Include "amd64-nat.h".
2381 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2382 (amd64fbsd32_r_reg_offset): New variable.
2383 (supply_gregset): Simply call amd64_supply_native_gregset.
2384 (fill_gregset): Rename `regno' to `regnum'. Simply call
2385 amd64_collect_native_gregset.
2386 (fill_fpregset): Rename `regno' to `regnum'.
2387 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2388 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2389 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2390 `fpregset_t'. Call amd64_supply_native_gregset instead of
2391 supply_gregset. Call x86_64_supply_fxsave instead of
2392 supply_fpregset.
2393 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2394 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2395 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2396 `fpregset_t'. Call amd64_collect_native_gregset instead of
2397 fill_gregset. Call x86_64_collect_fxsave instead of
2398 fill_fpregset.
2399 (_initialize_am64fbsd_nat): Initialize
2400 amd64_native_gregset32_reg_offset and
2401 amd64_native_gregset64_reg_offset.
2402 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2403
a16d75cc
MK
2404 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2405 null pointer. Fix typo in comment.
2406
7bace51b
MK
2407 * regcache.c (supply_register): Reimplement to call
2408 regcache_raw_supply.
2409 (regcache_collect): Reimplement by calling regcache_raw_collect.
2410
9a661b68
MK
24112003-08-28 Mark Kettenis <kettenis@gnu.org>
2412
2413 * regcache.c (register_buffer): Consitify first argument.
2414 (regcache_raw_supply, regcache_raw_collect): New
2415 functions.
2416
e94cc8fa
DJ
24172003-08-28 Daniel Jacobowitz <drow@mvista.com>
2418
2419 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2420 by Nathan J. Williams.
2421
c64bd0ce
DJ
24222003-08-28 Daniel Jacobowitz <drow@mvista.com>
2423
2424 * lin-lwp.c (wait_lwp): New function, copied from
2425 stop_wait_callback. Clean up.
2426 (stop_wait_callback): Use wait_lwp.
2427
e5ab0dce
AC
24282003-08-28 Andrew Cagney <cagney@redhat.com>
2429
2430 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2431 flavour and disassembler options.
2432 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2433 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2434 deprecated_tm_print_insn_info.
a8f4cde1 2435
a788de9b
AC
24362003-08-27 Andrew Cagney <cagney@redhat.com>
2437
2438 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2439 Use target_read_memory.
2440 (s390_get_frame_info): Update. Do not reference
2441 deprecated_tm_print_insn_info.
2442 (s390_check_function_end, s390_is_sigreturn): Ditto.
2443
36482093
AC
24442003-08-27 Andrew Cagney <cagney@redhat.com>
2445
2446 * Makefile.in (cris-tdep.o): Update dependencies.
2447 * cris-tdep.c: Include "gdb_assert.h".
2448 (cris_gdbarch_init): Set print_insn.
2449 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2450 (cris_delayed_get_disassembler): Simplify, directly call the
2451 disassembler returned by cris_get_disassembler.
2452 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2453 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2454 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2455 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2456 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2457 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2458 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2459 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2460 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2461 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2462 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2463 (gdb_print_insn_sparc): Delete function.
2464 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2465 deprecated_tm_print_insn_info.
2466 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2467 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2468 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2470 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2471 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2472 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2473 (s390_gdbarch_init): Set print_insn.
2474
0285512f
AC
24752003-08-27 Andrew Cagney <cagney@redhat.com>
2476
2477 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2478 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2479 * infcall.c (call_function_by_hand): Convert the entry point
2480 address into a code address.
2481
cdcd5552
AC
24822003-08-27 Andrew Cagney <cagney@redhat.com>
2483
2484 * dsrec.c: Include "gdb_string.h".
2485 * Makefile.in (dsrec.o): Update dependencies.
2486
e85cddad
MC
24872003-08-27 Michael Chastain <mec@shout.net>
2488
2489 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2490
8bbfbb23
AC
24912003-08-27 Andrew Cagney <cagney@redhat.com>
2492
2493 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2494 (alpha_osf1_init_abi): Do not set call_dummy_address.
2495
ba058b66
DC
24962003-08-27 David Carlton <carlton@kealia.com>
2497
2498 From Randolph Chung <tausq@debian.org>:
2499 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2500 compiles with -Wformat-nonliteral -Werror.
2501
87f84c9d
JB
25022003-08-26 Jim Blandy <jimb@redhat.com>
2503
2504 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2505 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2506 bfd_lookup_symbol, since we only want symbols in code sections.
2507 (look_for_base): Pass zero as the SECT_FLAGS argument to
2508 bfd_lookup_symbol, since we're not concerned about which section
2509 the symbol is in.
2510
102d615a
JJ
25112003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2512
2513 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2514 we are frameless or the return address register is already known.
102d615a 2515
cc7ad3ea
AC
25162003-08-26 Andrew Cagney <cagney@redhat.com>
2517
2518 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2519 in size. Add comments.
2520
af8b88dd
JJ
25212003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2522
2523 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2524 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2525
e0a4f5a1
JM
25262003-08-26 Jason Merrill <jason@redhat.com>
2527
2528 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2529 case out of #ifdef MIPS block.
2530
4ae9ee8e
DJ
25312003-08-25 Daniel Jacobowitz <drow@mvista.com>
2532
2533 PR java/1322
2534 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2535 available before calling SECT_OFF_TEXT.
3c164570 2536 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2537
004d836a
JJ
25382003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2539
a8f4cde1 2540 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2541 bof, and nat0-nat127 as pseudo-registers.
2542 (ia64_frame_cache): New struct used to cache frame info.
2543 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2544 register grouping so registers without names are still saved and
004d836a 2545 restored.
a8f4cde1 2546 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2547 pseudo values.
2548 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2549 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2550 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2551 ia64_frame_cache.
2552 (examine_prologue): Change prototype to add next_frame pointer.
2553 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2554 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2555 alloc insn and if equal, mark as not frameless. At end of routine,
2556 if not frameless, calculate registers for the previous frame and store
2557 in the cache, if a cache is provided.
2558 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2559 and pass 0 for next_frame.
2560 (ia64_store_return_value): Change to use convert_typed_floating()
2561 instead of calling ia64_convert_to_raw().
2562 (ia64_extract_return_value): Change to use convert_typed_floating()
2563 instead of calling ia64_convert_to_virtual().
2564 (ia64_frame_cache): New routine to support new frame model.
2565 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2566 (ia64_frame_sniffer): Ditto.
2567 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2568 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2569 (ia64_sigtramp_frame_prev_register): Ditto.
2570 (ia64_sigtramp_frame_sniffer): Ditto.
2571 (ia64_frame_base_address): Ditto.
2572 (ia64_extract_struct_value_address): Change to issue error message.
2573 (ia64_frame_align): New routine to align sp.
2574 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2575 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2576 ia64_push_dummy_call().
2577 (ia64_push_return_address): Ditto.
2578 (ia64_unwind_dummy_id): New function.
2579 (ia64_unwind_pc): Ditto.
2580 (ia64_convert_register_p): Ditto.
2581 (ia64_register_to_value): Ditto.
2582 (ia64_value_to_register): Ditto.
2583 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2584 (ia64_register_byte, ia64_register_raw_size): Ditto.
2585 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2586 (ia64_saved_pc_after_call): Ditto.
2587 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2588 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2589 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2590 (ia64_register_convert_to_raw): Ditto.
2591 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2592 (ia64_init_extra_frame_info): Ditto.
2593 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2594 (ia64_gdbarch_init): Remove registering of deprecated functions that
2595 are no longer used. Add registration of new gdbarch functions.
2596 Remove registering deprecated_write_sp. Replace
2597 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2598 Delete set_gdbarch_deprecated_register_convertible(),
2599 set_gdbarch_deprecated_register_convert_to_virtual(), and
2600 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2601 set_gdbarch_deprecated_register_size(),
2602 set_gdbarch_deprecated_register_bytes(),
2603 set_gdbarch_pcregnum(),
2604 set_gdbarch_deprecated_register_byte(),
2605 set_gdbarch_deprecated_register_raw_size(),
2606 set_gdbarch_deprecated_max_register_raw_size(),
2607 set_gdbarch_deprecated_register_virtual_size(),
2608 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2609 Replace set_gdbarch_deprecated_extract_return_value() with
2610 set_gdbarch_extract_return_value(). Remove calls to:
2611 set_gdbarch_deprecated_saved_pc_after_call();
2612 set_gdbarch_deprecated_frame_chain(),
2613 set_gdbarch_deprecated_frame_saved_pc(),
2614 set_gdbarch_deprecated_frame_init_saved_regs(),
2615 set_gdbarch_deprecated_get_saved_register(),
2616 set_gdbarch_deprecated_call_dummy_words(),
2617 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2618 set_gdbarch_deprecated_init_extra_frame_info(),
2619 set_gdbarch_deprecated_frame_args_address(),
2620 set_gdbarch_deprecated_frame_locals_address(),
2621 and set_gdbarch_deprecated_dummy_write_sp().
2622 Add set_gdbarch_convert_register_p(),
2623 set_gdbarch_register_to_value(),
2624 set_gdbarch_value_to_register(),
2625 set_gdbarch_push_dummy_call(),
2626 set_gdbarch_frame_align(),
2627 set_gdbarch_unwind_dummy_id(),
2628 set_gdbarch_unwind_pc(),
2629 frame_unwind_append_sniffer(),
2630 frame_unwind_append_sniffer(),
2631 and frame_base_set_default().
2632
aede7613
CD
26332003-08-25 Chris Demetriou <cgd@broadcom.com>
2634
2635 * configure.tgt: Document need for special "mipsisa64" handling.
2636 (mipsisa64*-*-linux64): Handle as target linux64.
2637 (mipsisa64*-*-*): Handle as target embed64.
2638
43c3a82e
MC
26392003-08-18 Michael Chastain <mec@shout.net>
2640
2641 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2642 objfile bug.
2643
6564f77d
MK
26442003-08-24 Mark Kettenis <kettenis@gnu.org>
2645
2de139ba
MK
2646 * i387-tdep.h: Update copyright date.
2647 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2648
6564f77d
MK
2649 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2650 CFLAGS games to reflect reality.
2651
42cf1509
AC
26522003-08-24 Andrew Cagney <cagney@redhat.com>
2653
2654 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2655 GDB_MULTI_ARCH is always non-zero.
2656 * osabi.c (_initialize_gdb_osabi): Ditto.
2657 (gdbarch_init_osabi): Ditto.
2658 * sparc-tdep.c: Ditto for #if code.
2659
0485f6ad
MK
26602003-08-23 Mark Kettenis <kettenis@gnu.org>
2661
2662 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2663 Update comments.
2664 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2665 comments.
2666 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2667 x86_64_supply_fxsave.
2668 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2669 x86_64_supply_fxsave.
2670 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2671 x86_64_supply_fxsave.
2672
c7716133
AJ
26732003-08-23 Andreas Jaeger <aj@suse.de>
2674
2675 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2676 i387_supply_fxsave.
2677
ed504bdf
MK
26782003-08-23 Mark Kettenis <kettenis@gnu.org>
2679
2680 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2681 i387_supply_register.
2682 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2683 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2684 i387_supply_fsave.
2685 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2686 i387_supply_fxsave.
2687 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2688 i387_supply_fsave.
2689 * i386bsd-nat.c (supply_fpregset): Adjust call to
2690 i387_supply_fsave.
2691 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2692 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2693 supply_fpregset.
2694 (store_inferior_registers): Remove extraneous whitespace. Call
2695 i387_fill_fsave instead of fill_fpregset.
2696 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2697 (supply_fpregset): Likewise.
2698 * i386v4-nat.c (supply_fpregset): Adjust call to
2699 i387_supply_fsave.
2700 * i386-interix-nat.c (supply_fpregset): Adjust call to
2701 i387_supply_fsave.
2702 * i386-linux-nat.c (supply_fpregset): Adjust call to
2703 i387_supply_fsave.
2704 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2705 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2706 i387supply_fsave and i387_supply_fxsave.
2707 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2708 Incorporate code from `i387_supply_register.
2709 (i387_supply_register): Remove.
2710 (i387_supply_fxsave): Add `regnum' argument.
2711 Update comments.
2712 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2713 prototype.
2714 (i387_supply_register): remove prototype.
2715 Update comments.
a8f4cde1 2716
4be5d520
MC
27172003-08-22 Michael Chastain <mec@shout.net>
2718
2719 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2720 Add lines for files in gdb/testsuite/gdb.cp/* that are
2721 still not 8.3 unique.
2722
7ed85d26
DJ
27232003-08-22 Daniel Jacobowitz <drow@mvista.com>
2724
2725 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2726 TYPE_VPTR_FIELDNO is valid.
2727
eb0d3137
MK
27282003-08-19 Mark Kettenis <kettenis@gnu.org>
2729
2730 * utils.c (set_width_command): Remove prototypes.
2731 (set_screen_size): New prototype.
2732 (init_page_info): Simplify by fetching the screen size from
2733 Readline. Call set_screen_size.
2734 (set_screen_size): New function.
2735 (set_width): Add missing whitespace in comment.
2736 (set_width_command): Call set_screen_size.
2737 (set_height_command): New function.
2738 (initialize_utils): Fix formatting. Make "set height" command
2739 call set_height_command. Remove redundant code that turns off
2740 pagination if output isn't a terminal. Remove redundant call to
2741 set_width_command.
a8f4cde1 2742
7e6d0ac8
MK
27432003-08-22 Mark Kettenis <kettenis@gnu.org>
2744
3567a8ea
MK
2745 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2746 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2747 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2748 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2749 `case' keyword.
2750 (sparc64_register_info): Give the reister with number
2751 SPARC64_STATE_REGNUM a name.
2752 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2753 %asi and %ccr.
2754 (sparc64_push_dummy_call): Take BIAS into account when checking
2755 stcak alignment.
2756 (sparc_software_single_step): Remove assertions that check whether
2757 NPC and NNPC were zero.
2758 (sparc_supply_rwindow): Make public. Merge functionality with
2759 sparc64_supply_rwindow.
2760 (sparc_fill_rwindow): Make public. Merge functionality with
2761 sparc64_fill_rwindow.
2762 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2763 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2764 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2765 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2766 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2767
7e6d0ac8
MK
2768 * reggroups.c: Add whitespace after declarations of local
2769 variables in functions.
2770
72e5f484
MC
27712003-08-21 Michael Chastain <mec@shout.net>
2772
2773 * gdbtypes.h: Change array bound type from an int to enum.
2774
435ac228
AC
27752003-08-21 Andrew Cagney <cagney@redhat.com>
2776
2777 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2778 * config/sparc/tm-sparc.h: Ditto.
2779 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2780 unconditionally.
2781 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2782
0d0e1a63
MK
27832003-07-13 Mark Kettenis <kettenis@gnu.org>
2784
2785 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2786 (register_objfile_data, set_objfile_data, objfile_data): New
2787 prototypes.
2788 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2789 prototypes.
2790 (allocate_objfile): Call objfile_alloc_data.
2791 (free_objfile): Call objfile_free_data.
2792 (struct objfile_data): New.
2793 (struct objfile_data_registration): New.
2794 (struct objfile_data_registry): New.
2795 (objfile_data_registry): New variable.
2796 (register_objfile_data): New function.
2797 (objfile_alloc_data, objfile_free_data): New functions.
2798 (set_objfile_data, objfile_data): New functions.
2799 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2800 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2801 (_initialize_dwarf2_frame): New function and prototype.
2802
d90cf509
AC
28032003-08-21 Andrew Cagney <cagney@redhat.com>
2804
2805 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2806 a specific architecture.
2807 * arch-utils.h (set_architecture_from_arch_mach): Delete
2808 declaration.
2809 (target_architecture_hook): Delete declaration.
2810 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2811 (default_float_format): Assume GDB_MULTI_ARCH.
2812 (default_double_format): Assume GDB_MULTI_ARCH.
2813 (set_endian_from_file): Delete function.
2814 (arch_ok): Delete function.
2815 (set_arch): Delete function.
2816 (set_architecture_from_arch_mach): Delete function.
2817 (set_architecture_from_file): Delete function.
2818 (set_architecture): Assume GDB_MULTI_ARCH.
2819 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2820
8b39fe56
MK
28212003-08-21 Mark Kettenis <kettenis@gnu.org>
2822
2823 Rewrite FreeBSD/sparc64 native configuration.
2824 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2825 * sparc64fbsd-nat.c: New file.
2826 * sparc64fbsd-tdep.c: New file.
2827 * sparc64-tdep.c sparc64-tdep.h: New files.
2828 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2829 sparc64fbsd-tdep.o): New dependencies.
2830 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2831 and sparc64fbsd-tdep.c.
2832 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2833 * config/sparc/fbsd.mh: Remove copyright notice.
2834 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2835 sparcbsd-nat.o.
2836 * config/sparc/fbsd.mt: Remove copyright notice.
2837 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2838 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2839 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2840 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2841 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2842 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2843 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2844 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2845 "sparc/tm-sp64.h".
2846 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2847 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2848
a7f19c79
MC
28492003-08-21 Michael Chastain <mec@shout.net>
2850
2851 * symtab.h: Add doco on the space critical structures and
2852 some measurements of space usage.
2853
da08ea5b
MS
28542003-08-21 Michael Snyder <msnyder@redhat.com>
2855
2856 * tracepoint.c (trace_dump_command): Trace break address
2857 is subject to DECR_PC_AFTER_BREAK.
2858 (set_traceframe_context): Make "trace_line" an int.
2859 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2860
6df2bf50
MS
28612003-08-20 Michael Snyder <msnyder@redhat.com>
2862
2863 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2864 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2865 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2866 argument passing.
a8f4cde1 2867 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2868 functions, replace sh_push_dummy_call.
2869 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2870
0955bbf0
MC
28712003-08-20 Michael Chastain <mec@shout.net>
2872
2873 * gdbtypes.h (struct main_type): Rearrange to save space.
2874
260a4188
MS
28752003-08-20 Michael Snyder <msnyder@redhat.com>
2876
2877 * trad-frame.c: Comment typo fix.
2878
8baa6f92
KB
28792003-08-20 Michael Snyder <msnyder@redhat.com>
2880 Kevin Buettner <kevinb@redhat.com>
2881
2882 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2883 (frv_frame_init_saved_regs): Add declaration.
2884 (frame_extra_info): Add new field ``saved_regs''.
2885 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2886 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2887 Update frame related code.
2888 (frv_extract_struct_value_address): Adjust formatting.
2889 * Makefile.in (frv-tdep.o): Update dependencies.
2890 * config/frv/tm-frv.h (target_insert_watchpoint)
2891 (target_remove_watchpoint, target_insert_hw_breakpoint)
2892 (target_remove_hw_breakpoint): Delete these macros.
2893 (remote_insert_watchpoint, remote_remove_watchpoint)
2894 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2895 these declarations.
2896
87193939
MC
28972003-08-20 Michael Chastain <mec@shout.net>
2898
2899 * defs.h (ENUM_BITFIELD): New macro.
2900 * symtab.h (ENUM_BITFIELD): Use it.
2901 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2902
062103ba
SA
29032003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2904
2905 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2906
8b148df9
AC
29072003-08-18 Andrew Cagney <cagney@redhat.com>
2908
2909 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2910 * gdbarch.h, gdbarch.c: Re-generate.
2911 * infcall.c (call_function_by_hand): Adjust the SP by
2912 frame_red_zone_size before allocating any stack space.
2913 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2914 * x86-64-tdep.c (x86_64_frame_align): New function.
2915 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2916
2917 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2918 Remove code adjusting SP so that it skips over the Red Zone.
2919
954a4db8
MK
29202003-08-18 Mark Kettenis <kettenis@gnu.org>
2921
2922 * NEWS (New native configurations): Mention FreeBSD/amd64.
2923
1a241548
AC
29242003-08-18 Andrew Cagney <cagney@redhat.com>
2925
2926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2927 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2928 "m68k_frame_p".
2929 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2930
f82b2acd
MK
29312003-08-18 Mark Kettenis <kettenis@gnu.org>
2932
2933 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2934
4056d258
ML
29352003-08-18 Michal Ludvig <mludvig@suse.cz>
2936
2937 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2938 Define.
2939 * i386-linux-nat.c: Include "linux-nat.h".
2940 (child_post_startup_inferior): New function.
a8f4cde1 2941
99ab4326
MK
29422003-08-18 Mark Kettenis <kettenis@gnu.org>
2943
2944 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2945 at the start of a frameless function. This probably fixes PR
2946 backtrace/1338.
2947
c8d5f0d6
MC
29482003-08-17 Michael Chastain <mec@shout.net>
2949
2950 * symfile.c (find_sym_fns): Remove special case for apollo target.
2951
9016a515
DJ
29522003-08-17 Daniel Jacobowitz <drow@mvista.com>
2953
2954 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2955 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2956 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2957 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2958 (linux_supports_tracevforkdone): New function.
2959 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2960 TRACEVFORKDONE.
2961 (child_follow_fork): Handle vfork.
2962 (linux_handle_extended_wait): Likewise. Also handle exec.
2963 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2964 * NEWS: Mention fork tracing.
2965
c538c11c
DJ
29662003-08-17 Daniel Jacobowitz <drow@mvista.com>
2967
2968 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2969
4de4c07c
DJ
29702003-08-17 Daniel Jacobowitz <drow@mvista.com>
2971
2972 * Makefile.in (i386-linux-nat.o): Update dependencies.
2973 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2974 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2975 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2976 * i386-linux-nat.c: Include "linux-nat.h".
2977 (child_post_startup_inferior): New function.
2978 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2979 * infptrace.c (kill_inferior): Wrap in #ifdef.
2980 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2981 attaching to each LWP.
2982 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2983 (init_lin_lwp_ops): Fill in some more operations.
2984 * linux-nat.h (linux_enable_event_reporting)
2985 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2986 prototypes.
2987 * linux-nat.c (linux_enable_event_reporting): New function.
2988 (child_post_attach, linux_child_post_startup_inferior)
2989 (child_post_startup_inferior, child_follow_fork)
2990 (linux_handle_extended_wait, kill_inferior): New functions.
2991
7996bcec
AC
29922003-08-16 Andrew Cagney <cagney@redhat.com>
2993
2994 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2995 * gdbarch.h, gdbarch.c: Re-generate.
2996
3d48a7a0
MK
29972003-08-16 Mark Kettenis <kettenis@gnu.org>
2998
2999 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3000
7989c619
AC
30012003-08-16 Andrew Cagney <cagney@redhat.com>
3002
3003 * NEWS: Mention that "set prompt-escape-char" was deleted.
3004 * top.c (get_prompt_1): Delete function.
3005 (gdb_prompt_escape):
3006 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3007 prompt-escape-char" command.
3008 (MAX_PROMPT_SIZE): Delete macro.
3009 (get_prompt): Simplify, do not call get_prompt_1.
3010
07978cd8
AC
30112003-08-16 Andrew Cagney <cagney@redhat.com>
3012
3013 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3014 -Werror. -Wformat-nonliteral problems.
3015
3ff7cf9e
JB
30162003-08-15 J. Brobecker <brobecker@gnat.com>
3017
3018 Further multiarching work mostly for hppa64-*-hpux11:
3019 * hppa-tdep.h: New file.
3020 * hppa-tdep.c: #include hppa-tdep.c.
3021 (hppa32_num_regs): Renamed from hppa_num_regs.
3022 (hppa64_num_regs): New constant.
3023 (hppa64_call_dummy_breakpoint_offset): New constant.
3024 (hppa32_call_dummy_length): New constant.
3025 (hppa64_call_dummy_length): New constant.
3026 (hppa32_stack_align): Make name 32bit explicit.
3027 (hppa32_register_virtual_type): Likewise.
3028 (hppa32_extract_return_value): Likewise.
3029 (hppa32_use_struct_convention): Likewise.
3030 (hppa32_store_return_value): Likewise.
3031 (hppa64_register_virtual_type): New function.
3032 (hppa64_extract_return_value): New function.
3033 (hppa64_use_struct_convention): New function.
3034 (hppa64_store_return_value): New function.
3035 (hppa_frame_locals_address): Remove declaration, function does
3036 not exist anymore.
3037 (hppa_register_byte): Add support for PA64 ABI.
3038 (hppa_gdbarch_init): Add support for PA64 ABI.
3039 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3040 Make name 32bit explicit.
3041 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3042 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3043 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3044 (hppa64_hpux_frame_base_before_sigtramp): New function.
3045 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3046 * config/pa/tm-hppa64.h: Remove macros that are no longer
3047 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3048 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3049 * config/pa/tm-hppah.h: Update function calls in macros
3050 following the function renaming in hppa-hpux-tdep.c.
3051 * Makefile.in (hppa_tdep_h): New variable.
3052 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3053
5d05ca6d
MS
30542003-08-14 Michael Snyder <msnyder@redhat.com>
3055
3056 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3057
37ba2569
JB
30582003-08-13 J. Brobecker <brobecker@gnat.com>
3059
3060 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3061 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3062 routine.
3063
aed7f26a
MS
30642003-08-13 Michael Snyder <msnyder@redhat.com>
3065
3066 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3067 (frv_saved_pc_after_call): Use deprecated ftype.
3068 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3069 (frv_remote_translate_xfer_address): Remove.
3070 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3071
752d4ac1
JB
30722003-08-13 J. Brobecker <brobecker@gnat.com>
3073
3074 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3075 initialization after the common gdbarch initialization, not before.
3076
1426ac1d
JB
30772003-08-13 J. Brobecker <brobecker@gnat.com>
3078
3079 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3080 (ADDR_BITS_REMOVE): Remove, redundant.
3081
b6fbdd1d
JB
30822003-08-13 J. Brobecker <brobecker@gnat.com>
3083
3084 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3085 gdbarch method to clear the 2 low bits of text addresses.
3086
44160db3
AC
30872003-08-12 Andrew Cagney <cagney@redhat.com>
3088
3089 * Makefile.in (dsrec.o): Update dependencies.
3090 * dsrec.c: Include "gdb_assert.h".
3091 (make_srec): Use snprintf instead of sprintf, use a literal format
3092 string.
3093
bcf7d3ca
AC
30942003-08-12 Andrew Cagney <cagney@redhat.com>
3095
3096 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3097 FRAME_OBSTACK_ZALLOC.
3098
49ed40de
KB
30992003-08-12 Kevin Buettner <kevinb@redhat.com>
3100
3101 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3102 SSE registers.
3103
b246147c
MK
31042003-08-10 Mark Kettenis <kettenis@gnu.org>
3105
3106 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3107 amd64fbsd_sc_reg_offset): Add extern declarations.
3108 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3109 declarations.
3110
d95fdc0d
BE
31112003-08-11 Ben Elliston <bje@wasabisystems.com>
3112
3113 * MAINTAINERS (write after approval): Update my mail address.
3114
cf6a0e73
AC
31152003-08-10 Andrew Cagney <cagney@redhat.com>
3116
3117 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3118
f837910f
MK
31192003-08-10 Mark Kettenis <kettenis@gnu.org>
3120
e2dbbd2d
MK
3121 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3122 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3123 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3124 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3125 i386bsd_sc_reg_offset): Add extern declarations.
3126 * i386obsd-nat.c: Include "i386-tdep.h"
3127 (_initialize_i386obsd_nat): Remove extern declarations.
3128 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3129 declarations.
3130 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3131 declarations.
3132
f837910f
MK
3133 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3134 instead of frame_read_register.
3135 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3136 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3137 SP_REGNUM.
3138 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3139 instead of frame_unwind_unsigned_register. Use
3140 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3141 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3142 instead of read_register. Use builtin_type_void_data_ptr instead
3143 of builtin_type_void_func_ptr when extracting the address of the
3144 jmp_buf.
3145 (i386_extract_return_value, i386_store_return_value,
3146 i386_pseudo_register_read, i386_pseudo_register_write): Use
3147 register_size instead REGISTER_RAW_SIZE.
3148
edcf254d
AC
31492003-08-10 Andrew Cagney <cagney@redhat.com>
3150
3151 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3152 sprintf. Make "name" constant.
3153
26604a34
MK
31542003-08-10 Mark Kettenis <kettenis@gnu.org>
3155
192285c6
MK
3156 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3157 instead of frame_read_register.
f837910f
MK
3158 (i387_print_float_info): Use get_frame_register and
3159 get_frame_register_unsigned instead of frame_register_read.
192285c6 3160
f0925262
MK
3161 * i386fbsd-nat.c: Include "i386-tdep.h".
3162 (child_resume): Make `eflags' an ULONGEST. Use
3163 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3164 instead of register_read and register_write.
3165
a144416f
MK
3166 * i386bsd-nat.c (fetch_inferior_registers,
3167 store_inferior_registers): Don't use && at the end of a line.
3168 (_initialize_i386bsd_nat): Fix typo.
3169
fec74868
MK
3170 * frame.c (_initialize_frame): Add missing backslash.
3171
87232496
MK
3172 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3173 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3174 and supply_register instead of manipulating the register buffer
3175 directly.
3176
c9b9de0b
MK
3177 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3178 * config/i386/nm-i386sol2.h
3179 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3180
26604a34
MK
3181 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3182 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3183 instructions that GCC likes to mingle into the prologue. Fixes
3184 gdb/1253 and gdb/1255.
3185
25d29d70
AC
31862003-08-09 Andrew Cagney <cagney@redhat.com>
3187
3188 Fix GDB PR cli/926.
3189 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3190 * command.h (add_setshow_uinteger_cmd): Declare.
3191 * frame.c (set_backtrace_cmd): New function.
3192 (show_backtrace_cmd): New function.
3193 * frame.c (_initialize_frame): Replace "set/show
3194 backtrace-below-main" with "set/show backtrace past-main". Add
3195 command "set/show backtrace limit".
3196 (backtrace_past_main): Rename "backtrace_below_main".
3197 (backtrace_limit): New variable.
3198 (get_prev_frame): Update. Check the backtrace_limit.
3199
9ebf4acf
AC
32002003-08-09 Andrew Cagney <cagney@redhat.com>
3201
3202 * defs.h (xstrprintf): Declare.
3203 * utils.c (xstrprintf): New function.
3204 * breakpoint.c (insert_breakpoints): Replace sprintf and
3205 non-literal format strings, with xstrprintf and cleanups.
3206 (delete_breakpoint,breakpoint_re_set): Ditto.
3207 (commands_command, insert_breakpoints): Ditto.
3208 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3209 (break_at_finish_command_1): Ditto.
3210
3771659b
AC
32112003-08-09 Andrew Cagney <cagney@redhat.com>
3212
3213 * MAINTAINERS (language support): List Adam Fedor as Objective C
3214 maintainer.
3215
b4263afa
JB
32162003-08-08 J. Brobecker <brobecker@gnat.com>
3217
3218 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3219 are now multiarched.
3220
d84defb1
JB
32212003-08-08 J. Brobecker <brobecker@gnat.com>
3222
3223 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3224 longer necessary now that hppa64 is partially multiarch'ed.
3225
f786f615
AC
32262003-08-08 Andrew Cagney <cagney@redhat.com>
3227
3228 * interps.c (interp_set): Check for a NULL "old_interp".
3229
c938e9b0
L
32302003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3231
3232 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3233 (install-only): Support DESTDIR.
3234 (uninstall): Likewise.
3235 (install-gdbtk): Likewise.
3236
9a146a11
EZ
32372003-08-08 Elena Zannoni <ezannoni@redhat.com>
3238
3239 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3240 contains something meaningful at all times.
3241
3242Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3243
62599e99 3244 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3245
56296155
BC
3246Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3247
62599e99 3248 * MAINTAINERS (write after approval): Added self.
56296155 3249
9710e734
AC
32502003-08-07 Andrew Cagney <cagney@redhat.com>
3251
3252 * inferior.h (AT_SYMBOL): Define.
3253 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3254 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3255 * mips-tdep.c (mips_call_dummy_address): Delete function.
3256 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3257 set call_dummy_address.
3258
98b3ab73
AC
32592003-08-07 Andrew Cagney <cagney@redhat.com>
3260
3261 * language.c (op_error): Delete function.
3262 (binop_type_check): Delete function.
3263 * language.h (type_op_error, range_op_error): Delete macros.
3264 (op_error): Delete declaration.
3265
2fcf52f0
AC
32662003-08-07 Andrew Cagney <cagney@redhat.com>
3267
3268 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3269
abd4220e 32702003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3271
abd4220e 3272 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3273 (x86_64_push_arguments): Skip the red zone.
abd4220e 3274
9dd5f34f
AC
32752003-08-05 Andrew Cagney <cagney@redhat.com>
3276
3277 * reggroups.c (reggroup_next): Check for the final entry.
3278
e5e78edc
AC
32792003-08-04 Andrew Cagney <cagney@redhat.com>
3280
ab4e3d93
AC
3281 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3282 * cli/cli-script.c (define_command): Call query directly, instead
3283 of passing it a buffer.
3284 * ocd.c (ocd_error): Pass error a constant format string.
3285 * remote-mips.c (mips_error): Use fputs_filtered.
3286
1062ca82
AC
3287 * solib-svr4.c (_initialize_svr4_solib): Update
3288 register_gdbarch_data call.
3289 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3290
fcc1c85c
AC
3291 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3292 (register_gdbarch_data): Delete "free" parameter. Update
3293 comments.
3294 * gdbarch.h, gdbarch.c: Re-generate.
3295 * reggroups.c (_initialize_reggroup): Update.
3296 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3297 * frame-base.c (_initialize_frame_base): Update.
3298 * frame-unwind.c (_initialize_frame_unwind): Update.
3299 * user-regs.c (_initialize_user_regs): Update.
3300 * remote.c (_initialize_remote): Update.
3301 * regcache.c (_initialize_regcache): Update.
3302
116f06ea
AC
3303 * regcache.c (xfree_regcache_descr): Delete function.
3304 (_initialize_regcache): Update call to register_gdbarch_data.
3305 (init_regcache_descr, init_legacy_regcache_descr): Use
3306 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3307
e5e78edc
AC
3308 * remote.c (free_remote_state): Delete function.
3309 (_initialize_remote): Update register_gdbarch_data.
3310 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3311 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3312
6c7d17ba
AC
33132003-08-04 Andrew Cagney <cagney@redhat.com>
3314
3315 * reggroups.c (struct reggroup_el): Define.
3316 (struct reggroups): Delete field "nr_group". Replace array
3317 "group" with a "first" to "last" linked list.
3318 (reggroups_init): Update. Allocate using gdbarch's obstack.
3319 (reggroups_free): Delete function.
3320 (add_group): Update. Add "el" parameter.
3321 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3322 (default_groups): Update.
3323 (reggroup_next): Replace reggroups.
3324 (reggroups_dump): Update.
3325 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3326 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3327 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3328
89b7795b
DJ
33292003-08-04 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * Makefile.in (tui-interp.o): Update dependencies.
3332
306d9ac5
DC
33332003-08-04 David Carlton <carlton@kealia.com>
3334
3335 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3336 to internal_error call.
3337 * source.c (forward_search_command): Add "%s" format argument.
3338 (reverse_search_command): Ditto.
3339 * top.c (quit_confirm): Ditto.
3340 * cli/cli-setshow.c (do_setshow_command): Ditto.
3341 * cp-valprint.c (cp_print_class_method): Replace
3342 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3343 (cp_print_class_member): Ditto.
3344 * event-top.c (command_line_handler): Ditto.
3345 * linux-proc.c (linux_info_proc_cmd): Ditto.
3346 * p-typeprint.c (pascal_type_print_base): Ditto.
3347 * p-valprint.c (pascal_object_print_class_method): Ditto.
3348 (pascal_object_print_class_member): Ditto.
3349 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3350 * remote.c (remote_cisco_section_offsets): Ditto.
3351 * top.c (command_line_input): Ditto.
3352 * utils.c (vwarning,error_stream,quit): Ditto.
3353 * valprint.c (print_floating,print_binary_chars)
3354 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3355
57bfe177
AC
33562003-08-04 Andrew Cagney <cagney@redhat.com>
3357
3358 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3359
e546b999
AC
33602003-08-02 Andrew Cagney <cagney@redhat.com>
3361
3362 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3363 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3364 amd64fbsd-nat.c.
3365
91092ee5
AC
33662003-08-02 Andrew Cagney <cagney@redhat.com>
3367
3368 * Makefile.in: Update all dependencies and definitions.
3369
889f28e2
AF
33702003-08-02 Adam Fedor <fedor@gnu.org>
3371
3372 * linespec.c (is_objc_method_format): New function
3373 (decode_line_1, locate_first_half): Use it.
3374 Fixes PR objc/1298
3375
880bc914
AC
33762003-08-01 Andrew Cagney <cagney@redhat.com>
3377
3378 * NEWS: Mention that m32r is multi-arch.
3379 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3380 * configure.tgt: Recognize m32r-*-*.
3381 * config/m32r/tm-m32r.h: Delete file.
3382 * config/m32r/m32r.mt: New file.
a8f4cde1 3383 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3384 gethostname succeeds, in order to avoid a compilation
3385 warning.
3386 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3387 compiler warning.
3388
19f59343
MS
33892003-08-01 Michael Snyder <msnyder@redhat.com>
3390
3391 * sh-tdep.c (sh_frame_align): New gdbarch method.
3392 (sh_gdbarch_init): Set up frame_align method.
3393
4e7d7511
MS
33942003-07-31 Michael Snyder <msnyder@redhat.com>
3395
3396 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3397 which is already covered by the new frames infrastructure.
3398
63022984
AC
33992003-07-31 Andrew Cagney <cagney@redhat.com>
3400
3401 * user-regs.c (struct user_reg): Add "next" link.
3402 (struct user_regs): Replace "user" with "first" and "last" links.
3403 (append_user_reg): Add pre-allocated "reg" parameter.
3404 (builtin_user_regs): Provide initial value for "last".
3405 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3406 (user_regs_init): Allocate memory from the gdbarch obstack.
3407 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3408 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3409 linked list.
3410 (usernum_to_user_reg): New function.
3411 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3412 (value_of_user_reg): Use usernum_to_user_reg.
3413 (user_regs_free): Delete function.
3414 (_initialize_user_regs): Update register_gdbarch_data call.
3415
7cf6e574
DJ
34162003-07-31 Daniel Jacobowitz <drow@mvista.com>
3417
3418 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3419
c48a845b
MS
34202003-07-30 Michael Snyder <msnyder@redhat.com>
3421
4e7d7511 3422 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3423 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3424 value_being_returned.
3425 * infcmd.c (print_return_value): Pass zero as struct_addr.
3426 * values.c (value_being_returned): If struct_addr is passed,
3427 use it instead of trying to recover it from the inferior.
3428
f0d8db19
KB
34292003-07-30 Kevin Buettner <kevinb@redhat.com>
3430
3431 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3432 the prologue analyzer won't need to attempt to extract the pc
3433 value from the woefully incomplete dummy frame.
3434 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3435 possible. Disable code which modifies the frame.
3436
e5c113a1
AC
34372003-07-28 Andrew Cagney <cagney@redhat.com>
3438
3439 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3440 to level 2.
3441 (annotate_breakpoints_table, annotate_record): Ditto.
3442 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3443 (annotate_field_name_end, annotate_field_value): Ditto.
3444 (annotate_field_end, annotate_frame_source_begin): Ditto.
3445 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3446 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3447 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3448 (annotate_frame_address_end, annotate_frame_address): Ditto.
3449 (annotate_frame_args, annotate_frame_end): Ditto.
3450 (annotate_frame_where, annotate_arg_begin): Ditto.
3451 (annotate_arg_name_end, annotate_arg_value): Ditto.
3452 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3453 (annotate_function_call, annotate_signal_name): Ditto.
3454 (annotate_signal_string, annotate_signal_name_end): Ditto.
3455 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3456 (annotate_value_begin, annotate_value_history_value): Ditto.
3457 (annotate_value_history_end, annotate_value_end): Ditto.
3458 (annotate_display_begin, annotate_display_number_end): Ditto.
3459 (annotate_display_format, annotate_display_expression): Ditto.
3460 (annotate_display_expression_end, annotate_display_value): Ditto.
3461 (annotate_display_end, annotate_array_section_begin): Ditto.
3462 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3463 (annotate_elt, annotate_array_section_end): Ditto.
3464
bb1db049
AC
34652003-07-28 Andrew Cagney <cagney@redhat.com>
3466
3467 * regcache.c (struct regcache_descr): Update comments on
3468 nr_raw_registers.
3469 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3470 sizeof_raw_register_valid_p.
3471 (init_regcache_descr): Set nr_raw_registers and
3472 sizeof_raw_register_valid_p before calling
3473 init_legacy_regcache_descr.
3474
20e6603c
AC
34752003-07-28 Andrew Cagney <cagney@redhat.com>
3476
3477 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3478 MOD NUM_REGS.
3479
db742940
DJ
34802003-07-28 Daniel Jacobowitz <drow@mvista.com>
3481
3482 * thread.c (info_threads_command): Use get_selected_frame ().
3483 Check that there is at least one non-sentinel frame.
3484
ce7f4371
SC
34852003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3486
3487 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3488 (m68hc11_pop_frame): Remove.
3489 (m68hc11_frame_saved_pc): Remove.
3490 (m68hc11_frame_chain): Remove.
3491 (m68hc11_frame_init_saved_regs): Remove.
3492 (m68hc11_init_extra_frame_info): Remove.
3493 (m68hc11_store_struct_return): Remove.
3494 (m68hc11_saved_pc_after_call): Remove.
3495
1ea653ae
SC
34962003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3497
3498 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3499 frame unwind information.
3500 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3501 and adapted for frame unwinding.
3502 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3503 (m68hc11_unwind_pc): New function.
3504 (m68hc11_frame_unwind_cache): New function to analyze frames.
3505 (m68hc11_frame_this_id): New function to create new frame struct.
3506 (m68hc11_frame_prev_register): New function to unwind a register from
3507 the frame.
3508 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3509 (m68hc11_frame_p): New function for the above.
3510 (m68hc11_frame_base_address): New function to return fp of frame.
3511 (m68hc11_frame_args_address): Update for frame.
3512 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3513 (m68hc11_unwind_sp): New function.
3514 (m68hc11_unwind_dummy_id): New function.
3515 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3516 calls.
3517
c8a7f6ac
SC
35182003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3519
3520 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3521 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3522 when we are beyond the current pc.
3523
3dc990bf
SC
35242003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3525
3526 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3527 from m68hc11_push_arguments.
3528 (m68hc11_push_arguments): Remove.
3529 (m68hc11_push_return_address): Remove.
3530 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3531 handlers; remove deprecated_extra_stack_alignment_needed.
3532
222e5d1d
AC
35332003-07-27 Andrew Cagney <cagney@redhat.com>
3534
3535 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3536 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3537 REAL_PC and not the pointer.
3538 * hppa-hpux-tdep.c: Include frame.h
3539
a7e9a47e
AC
35402003-07-27 Andrew Cagney <cagney@redhat.com>
3541
3542 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3543 GDB_MULTI_ACH_PARTIAL.
3544
7e3dd49e
AC
35452003-07-27 Andrew Cagney <cagney@redhat.com>
3546
3547 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3548 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3549 operator at start and not end of line.
3550 (decode_prologue): Ditto.
3551 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3552 frame_unwind_register_unsigned instead of
3553 frame_unwind_unsigned_register.
3554 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3555 read_register.
3556 (m32r_push_dummy_call): Use register_size instead of
3557 REGISTER_RAW_SIZE.
3558 (m32r_frame_sniffer): Replace m32r_frame_p.
3559 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3560 * m32r-rom.c (report_transfer_performance): Delete extern
3561 declaration.
3562 (m32r_load, m32r_upload_command): Use print_transfer_performance
3563 instead of report_transfer_performance.
3564 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3565 / add_show_from_set.
3566
0880807f
AC
35672003-07-26 Andrew Cagney <cagney@redhat.com>
3568
3569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3570 store_return_value and extract_struct_value_address.
3571
64ae9269
DJ
35722003-07-26 Daniel Jacobowitz <drow@mvista.com>
3573
3574 PR c++/1267
3575 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3576 NULL, default to the section containing PC.
3577
e286caf2
SC
35782003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3579
3580 * NEWS: Mention "regs" deprecated for m68hc11 too.
3581
3582 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3583 (m68hc11_print_register): New function to print out one register.
3584 (m68hc11_print_registers_info): New function to print registers.
3585 (show_regs): Deprecate and use the above.
3586 (m68hc11_gdbarch_init): Install the print_registers_info.
3587
705b278b
JJ
35882003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3589
3590 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3591 that we have a SIGTRAP before returning non-zero.
3592
63cd4198
EZ
35932003-07-23 Michal Ludvig <mludvig@suse.cz>
3594 Elena Zannoni <ezannoni@redhat.com>
3595
a8f4cde1 3596 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3597 find_function_start_sal() returns empty record.
3598
6926787d
AS
35992003-07-23 Andreas Schwab <schwab@suse.de>
3600
3601 * ia64-tdep.c (ia64_print_insn): New function.
3602 (ia64_gdbarch_init): Set print_insn to it.
3603 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3604 deprecated_tm_print_insn_info.
3605
708cc1b6
MS
36062003-07-22 Michael Snyder <msnyder@redhat.com>
3607
3608 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3609 handle 8-bit returns (long long).
3610 (h8300h_extract_return_value): Ditto.
3611 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3612
aebd7893
AC
36132003-07-22 Andrew Cagney <cagney@redhat.com>
3614
3615 * gdbarch.c Include "gdb_obstack.h".
3616 (struct gdbarch): Add an "obstack".
3617 (alloc_gdbarch_data): Allocate the gdbarch data using
3618 GDBARCH_OBSTACK_CALLOC.
3619 (free_gdbarch_data): Delete function.
3620 (gdbarch_obstack_zalloc): New function.
3621 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3622 Assert that the architecture is not initialized.
3623 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3624 vector from the obstack.
3625 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3626 architecture obstack.
3627 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3628 (set_gdbarch_data): Assert that the data is not initialized.
3629 (struct gdbarch_data): Delete member "free".
3630 (register_gdbarch_data): Do not initialize "free".
3631 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3632
153721e6
AC
36332003-07-22 Andrew Cagney <cagney@redhat.com>
3634
3635 * configure.in (build_warnings): Add -Wformat-nonliteral.
3636 * configure: Re-generate.
3637
c193f044 36382003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3639
3640 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3641
c3228f12
EZ
36422003-07-22 Elena Zannoni <ezannoni@redhat.com>
3643
3644 * findvar.c (read_var_value): Remove case for thread local storage
3645 variables. It is now entirely handled by the dwarf2 location
3646 expression code.
3647 * printcmd.c (address_info): Ditto.
3648 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3649 enumeration value.
3650 (struct symbol): Remove objfile field, which was used by
3651 LOC_THREAD_LOCAL_STATIC only.
3652 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3653 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3654 usage of objfile pointer.
3655 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3656 thread local variables.
3657 Add include of objfiles.h.
3658 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3659 storage variables.
3660 * Makefile.in (dwarf2loc.o): Update dependencies.
3661
aef9bcd2
AC
36622003-07-22 Andrew Cagney <cagney@redhat.com>
3663
3664 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3665 get_frame_base.
3666 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3667 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3668 (struct value): Add opaque declaration.
3669 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3670
d95a8903
AC
36712003-07-21 Andrew Cagney <cagney@redhat.com>
3672
3673 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3674 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3675
4db73d49
SC
36762003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3677
a8f4cde1 3678 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3679 regcache_cooked_read_unsigned instead of read_register.
3680 (m68hc11_saved_pc_after_call): Likewise.
3681 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3682 instead of write_register.
3683 (m68hc11_register_type): New function.
3684 (m68hc11_register_virtual_type): Remove.
3685 (m68hc11_store_return_value): Convert to use the regcache.
3686 (m68hc11_extract_struct_value_address): Likewise.
3687 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3688 m68hc11_register_type; undeprecate store_return_value and
3689 extract_struct_value_address.
3690
ef2b8fcd
SC
36912003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3692
3693 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3694 and translate to use regcache.
3695 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3696
625b0b97
AC
36972003-07-18 Andrew Cagney <cagney@redhat.com>
3698
3699 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3700 * gdbarch.h, gdbarch.c: Re-generate.
3701 * i386-tdep.c (i386_gdbarch_init): Do not set
3702 DWARF2_BUILD_FRAME_INFO.
3703 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3704 unconditionally.
3705 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3706 DWARF2_BUILD_FRAME_INFO.
3707
22b0d388
AC
37082003-07-18 Andrew Cagney <cagney@redhat.com>
3709
3710 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3711 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3712
1ce5d6dd
AC
37132003-07-18 Andrew Cagney <cagney@redhat.com>
3714
3715 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3716 frame_unwind_address_in_block, instead of frame_pc_unwind.
3717 (dwarf2_frame_cache): Ditto.
3718
e6e5e94c
AC
37192003-07-18 Andrew Cagney <cagney@redhat.com>
3720
3721 * user-regs.h (struct gdbarch): Declare opaque.
3722 * ui-out.h (struct ui_file): Declare opaque.
3723 * dwarf2-frame.h (struct frame_info): Declare opaque.
3724
5483d879
KW
37252003-07-18 Kris Warkentin <kewarken@qnx.com>
3726
3727 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3728 #include "...".
3729 (procfs_meminfo): Change strerror to safe_strerror.
3730 (procfs_can_run): Remove K&R badness.
3731
278a7cf7
MS
37322003-07-17 Michael Snyder <msnyder@redhat.com>
3733
3734 * remote-sim.c: Comment typo fix.
3735
606e3b82
AC
37362003-07-17 Andrew Cagney <cagney@redhat.com>
3737
3738 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3739 configure.
3740 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3741 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3742 GDB_MULTI_ARCH_PARTIAL.
3743
c43af07c
EZ
37442003-07-17 Elena Zannoni <ezannoni@redhat.com>
3745
3746 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3747 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3748 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3749
3b85b0f1
TR
37502003-07-16 Theodore A. Roth <troth@openavr.org>
3751
3752 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3753 found.
3754 (avr_frame_unwind_cache): Don't unwind FP for main.
3755 Update a comment.
3756 Save the computed prev_sp.
3757 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3758 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3759 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3760
336d1bba
AC
37612003-07-16 Andrew Cagney <cagney@redhat.com>
3762
3763 * frame-base.h (frame_base_p_ftype): Delete definition.
3764 (frame_base_append_predicate): Delete declaration.
3765 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3766 (frame_unwind_append_predicate): Delete declaration.
3767 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3768 (append_predicate): Delete parameter "p".
3769 (frame_unwind_append_predicate): Delete function.
3770 (frame_unwind_append_sniffer): Update call to append_predicate.
3771 (frame_unwind_free): Delete function.
3772 (_initialize_frame_unwind): Pass NULL as "free" to
3773 register_gdbarch_data.
3774 (frame_unwind_init): Append the dummy_frame_sniffer.
3775 (frame_unwind_find_by_frame): Simplify.
3776 * frame-base.c (struct frame_base_table): Delete field "p".
3777 (append_predicate): Delete parameter "p".
3778 (frame_base_append_predicate): Delete function.
3779 (frame_base_append_sniffer): Update call to append_predicate.
3780 (frame_base_free): Delete function.
3781 (frame_base_find_by_frame): Simplify.
3782 (_initialize_frame_base): Pass NULL as "free" to
3783 register_gdbarch_data.
3784 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3785 (x86_64_sigtramp_frame_sniffer): Replace
3786 "x86_64_sigtramp_frame_p".
3787 (x86_64_init_abi): Set the frame unwind sniffers.
3788 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3789 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3790 (m68k_gdbarch_init): Set the frame unwind sniffers.
3791 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3792 "i386_sigtramp_frame_p".
3793 (i386_frame_sniffer): Replace "i386_frame_p".
3794 (i386_gdbarch_init): Set the frame unwind sniffers.
3795 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3796 (avr_gdbarch_init): Set the frame unwind sniffers.
3797 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3798 "alpha_sigtramp_frame_p"
3799 (alpha_heuristic_frame_sniffer): Replace
3800 "alpha_heuristic_frame_p".
3801 (alpha_gdbarch_init): Set the frame unwind sniffers.
3802 (alpha_dwarf2_init_abi): Ditto.
3803 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3804 "alpha_debug_frame_p".
3805 (alpha_mdebug_frame_base_sniffer): Replace
3806 "alpha_mdebug_frame_base_p".
3807 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3808 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3809 (d10v_gdbarch_init): Set the frame unwind sniffer.
3810 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3811 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3812 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3813 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3814 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3815 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3816
48db5a3c
CV
38172003-07-16 Michael Snyder <msnyder@redhat.com>
3818
3819 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3820 should go thru sh_dsp_register_sim_regno, else the dsp regs
3821 will not get the right values.
3822
38232003-07-16 Corinna Vinschen <vinschen@redhat.com>
3824
3825 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3826 deprecated_store_floating by call to store_typed_floating.
3827 (sh_sh4_register_convert_to_raw): Substitute call to
3828 deprecated_extract_floating by call to extract_typed_floating.
3829
38302003-07-16 Corinna Vinschen <vinschen@redhat.com>
3831
3832 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3833
38342003-07-16 Corinna Vinschen <vinschen@redhat.com>
3835
3836 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3837 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3838 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3839 as possible.
3840 (do_pseudo_register): Remove.
3841 (sh_push_dummy_code): New function.
3842 (sh64_store_struct_return): Rename from sh_store_struct_return.
3843 Only called for sh64 now.
3844 (sh_extract_struct_value_address): Regcache'ify.
3845 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3846 and accomodate new tasks.
3847 (sh64_push_return_address): Rename from sh_push_return_address.
3848 Only called for sh64 now.
3849 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3850 Regcache'ify.
3851 (sh3e_sh4_extract_return_value): Regcache'ify.
3852 (sh_default_store_return_value): Ditto.
3853 (sh3e_sh4_store_return_value): Ditto.
3854 (sh_default_register_byte): Remove.
3855 (sh_sh4_register_byte): Remove.
3856 (sh_default_register_raw_size): Remove.
3857 (sh_sh4_register_raw_size): Remove.
3858 (sh_register_virtual_size): Remove.
3859 (sh_sh3e_register_virtual_type): Remove.
3860 (sh_sh3e_register_type): New function.
3861 (sh_sh4_register_virtual_type): Remove.
3862 (sh_sh4_register_type): New function.
3863 (sh_default_register_virtual_type): Remove.
3864 (sh_default_register_type): New function.
3865 (do_fv_register_info): Add parameters to accomodate call from
3866 sh_print_registers_info.
3867 (do_dr_register_info): Ditto.
3868 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3869 Add parameters to accomodate call from sh_print_registers_info.
3870 (sh_do_fp_register): Ditto.
3871 (sh64_do_pseudo_register): Call do_dr_register_info,
3872 do_fv_register_info and sh_do_fp_register with default parameters.
3873 (sh_do_register): Add parameters to accomodate call from
3874 sh_print_registers_info.
3875 (sh_print_register): Ditto.
3876 (sh_print_registers_info): Rename from sh_do_registers_info.
3877 Add parameters to be used as gdbarch_print_registers_info
3878 implementation. Accomodate removed do_pseudo_register function
3879 pointer.
3880 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3881 function pointer. Call sh_print_register with default parameters.
3882 (sh64_do_registers_info): Call sh_print_registers_info instead of
3883 sh_do_registers_info.
3884 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3885 detection of deprecated vs. non-deprecated functionality.
3886 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3887 function pointer assignments by direct function calls.
3888
e8a89fe2
AC
38892003-07-15 Andrew Cagney <cagney@redhat.com>
3890
3891 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3892 (frame_register_unwind, create_new_frame): Ditto.
3893 (legacy_get_prev_frame, get_frame_type): Ditto.
3894 (get_frame_base_address): Use frame_base_find_by_frame.
3895 (get_frame_locals_address): Use frame_base_find_by_frame.
3896 (get_frame_args_address): Use frame_base_find_by_frame.
3897 * frame-base.h (frame_base_sniffer_ftype): Declare.
3898 (frame_base_append_sniffer): Declare.
3899 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3900 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3901 (frame_base_append_sniffer): New function.
3902 (frame_base_append_predicate): Add a NULL sniffer.
3903 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3904 (struct frame_base_table): Add "sniffer".
3905 (frame_base_free): Free the "sniffer" table.
3906 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3907 (frame_unwind_append_sniffer): Declare.
3908 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3909 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3910 (struct frame_unwind_table): Add "sniffer", delete "middle".
3911 (append_predicate): Add "sniffer" parameter, append the sniffer.
3912 (frame_unwind_init): Update append_predicate call.
3913 (frame_unwind_append_sniffer): New function.
3914 (frame_unwind_append_predicate): Update append_predicate call.
3915 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3916
0714963c
AC
39172003-07-15 Andrew Cagney <cagney@redhat.com>
3918
3919 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3920 before code inhibiting repeated unwind attempts. Add to
3921 commentary on that test's problems.
3922 * blockframe.c (inside_main_func): Look for "main" in the minimal
3923 symbol table.
3924 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3925 identical.
3926
d9170e22
AC
39272003-07-15 Andrew Cagney <cagney@redhat.com>
3928
3929 * complaints.c (struct explanation): Define.
3930 (struct complaints): Change type of "explanation" to "struct
3931 explanation".
3932 (symfile_explanations): Convert to a "struct explanation" table.
3933 (vcomplaint): Update.
3934
eba29c8c
ML
39352003-07-15 Michal Ludvig <mludvig@suse.cz>
3936
3937 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3938 (supply_gregset, fill_gregset): Call
eba29c8c
ML
3939 x86_64_linux_(fill,supply)_gregset functions.
3940 * x86-64-linux-tdep.c (USER_*): New defines.
3941 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3942 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3943 New functions.
3944 (fetch_core_registers): Ditto.
3945 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3946 * x86-64-linux-tdep.h: New file.
3947 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3948 and core-regset.o.
3949 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3950
68cc0bfb
MK
39512003-07-13 Mark Kettenis <kettenis@gnu.org>
3952
88a115f7
MK
3953 * x86-64-tdep.c (x86_64_store_return_value): Use
3954 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3955
68cc0bfb
MK
3956 * configure.host: Add x86_64-*-freebsd*.
3957 * configure.tgt: Add x86_64-*-freebsd*.
3958 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3959 * amd64fbsd-nat.c: New file.
3960 * amd64fbsd-tdep.c: New file.
3961 * config/i386/nm-fbsd64.h: New file.
3962 * config/i386/fbsd64.mh: New file.
3963 * config/i386/fbsd64.mt: New file.
3964
138e7be5
MK
39652003-07-11 Mark Kettenis <kettenis@gnu.org>
3966
3967 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3968 `sc_regs_offset' and `sc_fpregs_offset'.
3969 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3970 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3971 (alpha_sigtramp_register_address): Rewrite to use new members of
3972 `struct gdbarch_tdep'.
3973 (alpha_gdbarch_init): Initialize new members of struct
3974 gdbarch_tdep'.
3975 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3976 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3977 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3978 (alphafbsd_pc_in_sigtramp): Implement.
3979 (alphafbsd_sigtramp_offset): New function.
3980 (alphafbsd_sigcontext_addr): New function.
3981 (alphafbsd_init_abi): Initialize signal trampoline related members
3982 of `struct gdbarch_tdep'.
3983 (_initialize_alphafbsd_tdep): Add prototype.
3984
95303a68
TR
39852003-07-11 Theodore A. Roth <troth@openavr.org>
3986
ba292e4c
TR
3987 * Makefile.in (install-only): Quote sed expression when generating
3988 transformed_name.
95303a68 3989
6896c0c7
RH
39902003-07-11 Richard Henderson <rth@redhat.com>
3991
3992 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3993 * dwarf2-frame.c: Include complaints.h.
3994 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3995 variable initialization; return NULL on error.
3996 (decode_frame_entry): New.
3997
8edd5d01
AC
39982003-07-11 Andrew Cagney <cagney@redhat.com>
3999
c4a09524
AC
4000 * frame.h (frame_address_in_block): Delete declaration.
4001 * blockframe.c (frame_address_in_block): Delete function.
4002 (get_frame_block): Use get_frame_address_in_block.
4003 (block_innermost_frame): Ditto.
4004 * stack.c (print_frame, backtrace_command_1): Ditto.
4005
8edd5d01
AC
4006 * frame.h (get_frame_address_in_block): Declare.
4007 (frame_unwind_address_in_block): Declare.
4008 * frame.c (frame_unwind_address_in_block): New function.
4009 (get_frame_address_in_block): New function.
4010
f7968451
AC
40112003-07-10 Andrew Cagney <cagney@redhat.com>
4012
4013 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4014 pre-default. Note: re-generate has no effect.
a8f4cde1 4015
ae99b398
AC
40162003-07-10 Andrew Cagney <cagney@redhat.com>
4017
4018 * gdbarch.sh: When a variable, but not a function, compare against
4019 0. Fix problem in previous patch.
4020 * gdbarch.c: Re-generate.
a8f4cde1 4021
956ac328
AC
40222003-07-10 Andrew Cagney <cagney@redhat.com>
4023
4024 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4025 functions against NULL, not 0.
4026 * gdbarch.c: Re-generate.
a8f4cde1 4027
287c3240
FF
40282003-07-10 Fred Fish <fnf@ninemoons.com>
4029
4030 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4031 null string instead of a null pointer.
4032 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4033
32f63c4b
MS
40342003-07-09 Michael Snyder <msnyder@redhat.com>
4035
4036 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4037
402ecd56
MK
40382003-07-09 Mark Kettenis <kettenis@gnu.org>
4039
4040 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4041 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4042 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4043 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4044 * x86-64-tdep.c: ... from here.
4045
c481dac7
AS
40462003-07-09 Andreas Schwab <schwab@suse.de>
4047
4048 * m68k-tdep.h (enum struct_return): Define.
4049 (struct gdbarch_tdep): Add struct_return.
4050 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4051 bytes are padded to the right, not to the left. Pass struct value
4052 address in register %a1, not on stack.
4053 (m68k_use_struct_convention): New function.
4054 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4055 struct_return in tdep to pcc_struct_return.
4056 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4057 reg_struct_return.
4058
a8f4cde1 40592003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4060
a8f4cde1 4061 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4062
96a4ee76
AC
40632003-07-09 Andrew Cagney <cagney@redhat.com>
4064
4065 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4066 Add comments about the checks.
4067
1517c6d1
AC
40682003-07-08 Andrew Cagney <cagney@redhat.com>
4069
4070 * Makefile.in: Make dependency section headers consistent.
4071 (config_h): Move to $BUILD headers section.
4072 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4073 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4074 (ada-exp.tab.c): Move to YACC/LEX section.
4075 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4076 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4077
dc5dd1eb
KW
40782003-07-08 Kris Warkentin <kewarken@qnx.com>
4079
4080 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4081 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4082 of strerror with safe_strerror, use ISO C function definitions,
4083 and replace instances of sprintf with snprintf.
dc5dd1eb 4084
612dde91
AC
40852003-07-07 Andrew Cagney <cagney@redhat.com>
4086
4087 * frame.c (get_prev_frame): Enable check for identical frames.
4088 Update comments. Update error messages.
4089
492c11d3
JB
40902003-07-07 Joel Brobecker <brobecker@gnat.com>
4091
4092 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4093
376a5a49
JB
40942003-07-07 Joel Brobecker <brobecker@gnat.com>
4095
4096 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4097 sort_symtab_syms, no longer necessary.
4098
22b4a9ad
JB
40992003-07-07 Joel Brobecker <brobecker@gnat.com>
4100
4101 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4102
5bbcb741
JB
41032003-07-07 Joel Brobecker <brobecker@gnat.com>
4104
4105 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4106 (mips_register_byte): Likewise.
4107
c139e7d9
DJ
41082003-07-07 Daniel Jacobowitz <drow@mvista.com>
4109
4110 * Makefile.in (sparc_tdep_h): New.
4111 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4112 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4113 * sparc-linux-nat.c: Include "sparc-tdep.h".
4114 * sparc-nat.c: Likewise.
4115 * sparc-tdep.c: Likewise.
4116 * sparc64nbsd-nat.c: Likewise.
4117 * sparcnbsd-nat.c: Likewise.
4118 * sparcnbsd-tdep.c: Likewise.
4119 * sparc-tdep.h: New file.
4120 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4121 and sparc_npc_regnum.
4122
fd8f87c5
DJ
41232003-07-07 Daniel Jacobowitz <drow@mvista.com>
4124
4125 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4126 (mips_linux_cannot_store_register): List supported instead of
4127 unsupported registers.
4128
13adf674
DJ
41292003-07-07 Daniel Jacobowitz <drow@mvista.com>
4130
4131 * disasm.c (dump_insns): Separate instructions from addresses.
4132
8de307e0
AS
41332003-07-07 Andreas Schwab <schwab@suse.de>
4134
4135 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4136 dependencies.
4137 * m68k-tdep.c (NUM_FREGS): Delete.
4138 (SIG_PC_FP_OFFSET): Delete.
4139 (TARGET_M68K): Delete.
4140 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4141 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4142 P_MOVEL_SP, P_MOVEML_SP): Define.
4143 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4144 P_TRAP): Delete.
4145 (m68k_register_raw_size): Delete.
4146 (m68k_register_virtual_size): Delete.
4147 (m68k_register_type): Renamed from m68k_register_virtual_type and
4148 add gdbarch argument.
4149 (m68k_store_struct_return): Delete.
4150 (m68k_deprecated_extract_return_value): Delete.
4151 (m68k_deprecated_extract_struct_value_address): Delete.
4152 (m68k_frame_chain): Delete.
4153 (m68k_frame_saved_pc): Delete.
4154 (m68k_fix_call_dummy): Delete.
4155 (m68k_push_dummy_frame): Delete.
4156 (m68k_pop_frame): Delete.
4157 (m68k_extract_return_value): New function.
4158 (m68k_store_return_value): Rewrite using regcache.
4159 (m68k_extract_struct_value_address): Rewrite using regcache.
4160 (m68k_push_dummy_call): New function.
4161 (struct m68k_frame_cache): Define.
4162 (m68k_alloc_frame_cache): New function.
4163 (m68k_analyze_frame_setup): New function.
4164 (m68k_analyze_register_saves): New function.
4165 (m68k_analyze_prologue): New function.
4166 (m68k_skip_prologue): Rewrite using above functions.
4167 (m68k_unwind_pc): New function.
4168 (m68k_frame_cache): New function.
4169 (m68k_frame_this_id): New function.
4170 (m68k_frame_prev_register): New function.
4171 (m68k_frame_unwind): New variable.
4172 (m68k_frame_p): New function.
4173 (m68k_sigtramp_frame_cache): New function.
4174 (m68k_sigtramp_frame_this_id): New function.
4175 (m68k_sigtramp_frame_prev_register): New function.
4176 (m68k_sigtramp_frame_unwind): New variable.
4177 (m68k_sigtramp_frame_p): New function.
4178 (m68k_frame_base_address): New function.
4179 (m68k_frame_base): New function.
4180 (m68k_unwind_dummy_id): New function.
4181 (fill_gregset): Use regcache_collect.
4182 (fill_fpregset): Likewise.
4183 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4184 defined.
4185 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4186 deprecated_init_frame_pc, deprecated_store_struct_return,
4187 deprecated_extract_return_value, deprecated_store_return_value,
4188 deprecated_frame_chain, deprecated_frame_saved_pc,
4189 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4190 deprecated_register_virtual_size,
4191 deprecated_max_register_raw_size,
4192 deprecated_max_register_virtual_size,
4193 deprecated_register_virtual_type, deprecated_register_size,
4194 deprecated_register_byte, deprecated_register_bytes,
4195 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4196 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4197 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4198 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4199 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4200 deprecated_push_dummy_frame, deprecated_pop_frame,
4201 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4202 only if SYSCALL_TRAP is defined. Set extract_return_value,
4203 store_return_value, extract_struct_value_address, register_type,
4204 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4205 predicates.
4206 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4207 M68K_MAX_REGISTER_SIZE): Define.
4208 (struct m68k_sigtramp_info): Define.
4209 (struct gdbarch_tdep): Add get_sigtramp_info.
4210 * m68klinux-nat.c (fetch_register): Use register_size instead of
4211 REGISTER_RAW_SIZE. Don't put assignment in if.
4212 (store_register): Likewise.
4213 (fetch_inferior_registers): Likewise.
4214 (store_inferior_registers): Likewise.
4215 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4216 (m68k_linux_frame_saved_pc): Delete.
4217 (m68k_linux_sigcontext_reg_offset,
4218 m68k_linux_ucontext_reg_offset): Define.
4219 (m68k_linux_get_sigtramp_info): New function.
4220 (m68k_linux_extract_return_value): Rewrite using regcache.
4221 (m68k_linux_store_return_value): Likewise.
4222 (m68k_linux_extract_struct_value_address): Likewise.
4223 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4224 Don't set deprecated_frame_saved_pc,
4225 deprecated_extract_return_value, deprecated_store_return_value,
4226 deprecated_extract_struct_value_address. Set
4227 extract_return_value, store_return_value,
4228 extract_struct_value_address.
4229
eb8bc282
AC
42302003-07-07 Andrew Cagney <cagney@redhat.com>
4231
4232 * expprint.c: Include "user-regs.h" instead of "frame.h".
4233 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4234 frame_map_regnum_to_name.
4235 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4236 (frame_map_name_to_regnum): Simplify, call
4237 user_reg_map_name_to_regnum.
4238 (frame_map_regnum_to_name): Simplify, call
4239 user_reg_map_regnum_to_name.
4240 (frame_register_unwind): Update.
4241 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4242 (_initialize_frame_reg): Call user_reg_add_builtin.
4243 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4244 (value_of_register): Use value_of_user_reg.
4245 * eval.c (evaluate_subexp_standard): Update.
4246 * parse.c (write_dollar_variable): Update.
4247 * d10v-tdep.c (d10v_print_registers_info): Update.
4248 * infcmd.c (registers_info): Update.
4249 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4250 (builtin_regs_h): Delete macro.
4251 (user_regs_h): Define.
4252 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4253 (builtin-regs.o): Delete target.
4254 (user-regs.o): Specify dependencies.
4255 (expprint.o): Update dependencies.
4256 (findvar.o): Update dependencies.
4257 (frame.o): Update dependencies.
4258 (std-regs.o): Update dependencies.
4259
9f476a01
CF
42602003-07-06 Christopher Faylor <cgf@redhat.com>
4261
4262 * win32-nat.c (solib_symbols_add): Use one variable for all section
4263 address stuff. Pass variable rather than address of variable to
4264 safe_symbol_file_add.
4265
a731b831
AS
42662003-07-06 Andreas Schwab <schwab@suse.de>
4267
4268 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4269
9f83329d
JB
42702003-07-04 Joel Brobecker <brobecker@gnat.com>
4271
4272 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4273
27e28cc5
KW
42742003-07-04 Kris Warkentin <kewarken@qnx.com>
4275
4276 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4277
42782003-07-04 Kris Warkentin <kewarken@qnx.com>
4279
4280 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4281 * config/i386/nto.mh: New file.
4282 * config/i386/nm-nto.h: New file.
4283 * configure.host: Add i[3456]86-*-nto*.
4284
100f2e98
JB
42852003-07-03 Joel Brobecker <brobecker@gnat.com>
4286
4287 * remote-vx.c (vx_add_symbols): Fix compilation error.
4288
e23457df
AC
42892003-07-03 Andrew Cagney <cagney@redhat.com>
4290
4291 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4292 * gdbarch.h, gdbarch.c: Re-generate.
4293 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4294 (legacy_register_name): Declare.
4295 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4296 (REGISTER_NAME): Define.
4297 * sparc-tdep.c (legacy_register_name): New function.
4298 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4299 (REGISTER_NAME): Define.
4300 (hppa64_register_name): Declare.
4301 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4302 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4303 (hppa64_register_name): New function.
4304 (hppa_register_name): New function.
4305 * arch-utils.c (legacy_register_name): Delete.
4306 * arch-utils.h (legacy_register_name): Delete.
4307
38caaeec
DJ
43082003-07-03 Daniel Jacobowitz <drow@mvista.com>
4309
4310 * cli/cli-interp.c (cli_interpreter_resume): Update the
4311 cli_uiout's stream to gdb_stdout.
4312
dadd712e
AC
43132003-07-03 Andrew Cagney <cagney@redhat.com>
4314
4315 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4316 predicate.
4317 * gdbarch.h, gdbarch.c: Re-generate.
4318 * regcache.c (init_regcache_descr): Use legacy code when either
4319 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4320
c7f1390e
DJ
43212003-07-02 Daniel Jacobowitz <drow@mvista.com>
4322
4323 * NEWS: Move "set logging" entry into GDB 6.0 section.
4324
4bc8c588
JB
43252003-07-02 Jim Blandy <jimb@redhat.com>
4326
a9dd42f1
JB
4327 * s390-tdep.c (struct frame_extra_info): new member:
4328 'stack_bought_valid'.
4329 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4330 initialize fextra_info->stack_bought.
4331 (s390_frameless_function_invocation): Don't trust the value of
4332 fextra_info_ptr->stack_bought unless
4333 fextra_info->stack_bought_valid is set.
4334
4bc8c588
JB
4335 New S390 prologue analyzer.
4336 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4337 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4338 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4339 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4340 compute_x_addr, s390_on_stack, s390_store,
4341 s390_get_signal_frame_info): New functions.
4342 (S390_NUM_SPILL_SLOTS): New macro.
4343 (s390_get_frame_info): Rewritten.
4344 (is_arg_reg): Deleted.
4345
4346 Break out the decoding of S/390 instructions into separate
4347 functions, to make it more legible, and easier to check
4348 against the spec.
4349 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4350 is_rx, is_rxe): New functions.
4351 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4352 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4353 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4354 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4355 enums for opcode values. (Is this an improvement?)
4356
fd13a04a
AC
43572003-07-02 Andrew Cagney <cagney@redhat.com>
4358
4359 * i386-tdep.c: Revert change committed as part of trad-frame code
4360 below.
4361
3f8091c1
DJ
43622003-07-02 Daniel Jacobowitz <drow@mvista.com>
4363
4364 * breakpoint.c (insert_catchpoint): Make static.
4365
8dd5115e
AS
43662003-07-02 Andreas Schwab <schwab@suse.de>
4367
4368 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4369 former ia64_push_arguments and ia64_push_return_address, and use
4370 regcache functions instead of read/write_register.
4371 (ia64_gdbarch_init): Set push_dummy_call instead of
4372 deprecated_push_arguments and deprecated_push_return_address.
4373
a2229c23
AJ
43742003-07-01 Andreas Jaeger <aj@suse.de>
4375
4376 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4377 before the call.
4378 Set %rax only to number of SSE registers used.
4379
3b3850e8
AC
43802003-07-01 Andrew Cagney <cagney@redhat.com>
4381
4382 * trad-frame.h: Update comments, a -1 .addr is reserved.
4383 (trad_frame_value_p, trad_frame_addr_p): Declare.
4384 (trad_frame_reg_p): Declare.
4385 (trad_frame_set_value): Rename trad_frame_register_value.
4386 (trad_frame_set_unknown): Declare.
4387 * trad-frame.c (trad_frame_realreg_p): New function.
4388 (trad_frame_addr_p, trad_frame_value_p): New function.
4389 (trad_frame_set_unknown): New function.
4390 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4391 (trad_frame_prev_register): Use trad_frame_realreg_p,
4392 trad_frame_addr_p and trad_frame_value_p.
4393 (trad_frame_set_value): Rename trad_frame_register_value.
4394 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4395 and trad_frame_set_value.
a2229c23 4396
4d819d0e
JB
43972003-06-30 Jim Blandy <jimb@redhat.com>
4398
4399 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4400 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4401 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4402 for 16 registers, and then 32 more bytes.
4403 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4404 New macros.
4405 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4406 Move up in the file, since it's now used by is_simple_arg.
4407 (is_simple_arg): Don't assume registers are four bytes long.
4408 Exclude all double arguments. Extended floats are not simple
4409 args.
4410 (is_power_of_two): New function.
4411 (pass_by_copy_ref): Call is_power_of_two, and check that the
4412 length fits in a register, rather than listing all the acceptable
4413 sizes. Extended floats are not passed by reference.
4414 (s390_push_arguments): Don't assume registers are four bytes long.
4415 Reserve an argument register to point to the buffer for structures
4416 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4417 S390_STACK_FRAME_OVERHEAD.
4418
1ad828f1
AS
44192003-06-30 Andreas Schwab <schwab@suse.de>
4420
4421 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4422 format error message.
4423
39b00981
JB
44242003-06-30 Joel Brobecker <brobecker@gnat.com>
4425
4426 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4427
b2a7f303
DC
44282003-06-30 David Carlton <carlton@kealia.com>
4429
4430 Band-aid for PR c++/1245.
4431 * Makefile.in (cp-support.o): Depend on complaints_h.
4432 * cp-support.c: Include complaints.h. Add declaration for
4433 find_last_component.
4434 (cp_find_first_component): Separate code into
4435 cp_find_first_component_aux.
4436 (cp_find_first_component_aux): Call demangled_name_complaint.
4437 (demangled_name_complaint): New.
4438
a257b5bb
AC
44392003-06-30 Andrew Cagney <cagney@redhat.com>
4440
4441 * remote.c (remote_write_bytes): Explicitly compute and then use
4442 the payload size. Update comments to reflect. Fixes problem of
4443 GDB not sending small packets as found by Fred Fish.
4444
0a2cfde4
AC
44452003-06-30 Andrew Cagney <cagney@redhat.com>
4446
4447 * remote.c (remote_async_wait): Fix -Wformat problem.
4448
3fcb8548
AC
44492003-06-29 Andrew Cagney <cagney@redhat.com>
4450
4451 * remote.c (remote_wait): Call error, and not warning, when the
4452 packet is corrupt.
4453 (remote_async_wait): Ditto.
4454
9f9970a3
DJ
44552003-06-29 Daniel Jacobowitz <drow@mvista.com>
4456
4457 * sparc-tdep.c (sparc_y_regnum): Make external again.
4458
83a8ccca
DJ
44592003-06-29 Daniel Jacobowitz <drow@mvista.com>
4460
4461 * cli/cli-logging.c (pop_output_files): Add void to function
4462 definition.
4463
d2cf594a
AC
44642003-06-29 Andrew Cagney <cagney@redhat.com>
4465
4466 * frame.c (frame_register_unwind): Use unsigned char when dumping
4467 the buffer contents.
4468
0fac0b41
DJ
44692003-06-28 Daniel Jacobowitz <drow@mvista.com>
4470
4471 * cli/cli-logging.c: New file.
4472 * cli-out.c (struct ui_out_data): Add original_stream.
4473 (cli_redirect): New function.
4474 (cli_ui_out_impl): Add cli_redirect.
4475 (cli_out_new): Initialize original_stream.
4476 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4477 (uo_redirect, ui_out_redirect): New.
4478 * ui-out.h (struct ui_out_impl): Add redirect member.
4479 (redirect_ftype): New.
4480 (ui_out_redirect): Add prototype.
4481 * Makefile.in: Add rules for cli-logging.c.
4482 * NEWS: Mention "set logging".
4483
88a07d7c
EZ
44842003-06-27 Elena Zannoni <ezannoni@redhat.com>
4485
4486 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4487
4eb58876
AC
44882003-06-27 Andrew Cagney <cagney@redhat.com>
4489
4490 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4491 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4492 * avr-tdep.c (avr_call_dummy_address): Delete function.
4493 (avr_gdbarch_init): Do not set call_dummy_address.
4494
1549f619
EZ
44952003-06-27 Elena Zannoni <ezannoni@redhat.com>
4496
4497 * symfile.c (syms_from_objfile): Move variables to inner block.
4498 Move the checks for the non-mainline case a bit earlier to avoid
4499 doing some useless computations.
4500
3cb3398d
EZ
45012003-06-27 Elena Zannoni <ezannoni@redhat.com>
4502
4503 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4504
3799ccc6
EZ
45052003-06-26 Elena Zannoni <ezannoni@redhat.com>
4506
4507 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4508 sections.
4509
ce1f6491
MC
45102003-06-26 Michael Chastain <mec@shout.net>
4511
4512 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4513 gdb/testsuite/gdb.c++/pr-1210.exp.
4514
d958dfd0
AC
45152003-06-26 Andrew Cagney <cagney@redhat.com>
4516
4517 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4518 altivec_expression.h and altivec_registers.h.
4519
d31431ed
AC
45202003-06-26 Andrew Cagney <cagney@redhat.com>
4521
4522 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4523 info->mach when MIPS16. Patch suggested by Fred Fish.
4524
714b1282
AC
45252003-06-26 Andrew Cagney <cagney@redhat.com>
4526
4527 * utils.c (internal_vproblem): Print the problem to a reason
4528 buffer and then pass to query. Make the msg variable more local.
4529
42efa47a
AC
45302003-06-26 Andrew Cagney <cagney@redhat.com>
4531
4532 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4533 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4534 * gdbarch.h, gdbarch.c: Re-generate.
4535 * frame-base.c (default_frame_args_address): Update. Use
4536 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4537 not available.
4538 (default_frame_locals_address): Ditto for
4539 DEPRECATED_FRAME_LOCALS_ADDRESS.
4540 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4541 (vax_frame_num_args): Update.
4542 (vax_gdbarch_init): Update.
4543 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4544 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4545 * mcore-tdep.c (mcore_gdbarch_init): Update.
4546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4547 * ia64-tdep.c (ia64_gdbarch_init): Update.
4548 * symtab.h (address_class): Update comments.
4549 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4550 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4551 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4552 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4553 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4554 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4555 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4556 * alpha-mdebug-tdep.c: Update.
4557 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4558
8ffd9b1b
AJ
45592003-06-26 Andreas Jaeger <aj@suse.de>
4560
4561 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4562 of SSE registers so that varargs functions work. Rework handling
4563 of passing arguments on the stack.
4564 (x86_64_store_return_value): Return double and float values in SSE
4565 register.
4566
e8ac10a6
MC
45672003-06-24 Michael Chastain <mec@shout.net>
4568
4569 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4570 the "constructor breakpoints ignored" bug.
4571
986af8e6
DC
45722003-06-25 David Carlton <carlton@kealia.com>
4573
4574 * MAINTAINERS: Update e-mail address.
4575
d64558a5
JB
45762003-06-24 Jim Blandy <jimb@redhat.com>
4577
e538d2d7
JB
4578 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4579
02631ec0
JB
4580 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4581 function.
4582 (ppc_linux_init_abi): Register it as the
4583 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4584
e716d87a
JB
4585 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4586 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4587 method.
4588
d64558a5
JB
4589 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4590 (ppc64_standard_linkage_target): Use it.
4591
449a5da4
AC
45922003-06-23 Andrew Cagney <cagney@redhat.com>
4593
4594 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4595 for 0 "int0" and 4 "int32" sized registers.
4596 * gdbtypes.c (builtin_type_int0): Define.
4597 (build_gdbtypes): Initialize builtin_type_int0.
4598 * gdbtypes.h (builtin_type_int0): Declare.
4599
b2a02dda
SC
46002003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4601
4602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4603 as characters are unsigned.
4604
fba3138e
DJ
46052003-06-22 Daniel Jacobowitz <drow@mvista.com>
4606
4607 PR gdb/1179
4608 * dwarfread.c (struct_type): Skip static fields without crashing.
4609
f6c8180b
AC
46102003-06-22 Andrew Cagney <cagney@redhat.com>
4611
4612 GDB 6.0 branch created.
f2c06f52
AC
4613 * README: Update.
4614 * PROBLEMS: Update. Empty.
4615 * NEWS: Update.
f6c8180b 4616
ae822768
DJ
46172003-06-22 Daniel Jacobowitz <drow@mvista.com>
4618
4619 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4620 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4621
261de166
AC
46222003-06-22 Andrew Cagney <cagney@redhat.com>
4623
4624 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4625 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4626 Velikov.
4627
30e94205
DJ
46282003-06-22 Daniel Jacobowitz <drow@mvista.com>
4629
4630 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4631 compilers.
4632
9e14d721
DJ
46332003-06-21 Daniel Jacobowitz <drow@mvista.com>
4634
4635 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4636 argument of val_print.
4637 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4638 to the address argument of baseclass_offset or target_read_memory.
4639 Do add it to the argument of cp_print_value_fields.
4640
a4b8ebc8
AC
46412003-06-21 Andrew Cagney <cagney@redhat.com>
4642
4643 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4644 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4645 instead of 0..NUM_REGS.
4646 (mips_register_reggroup_p): New function.
4647 (mips_pseudo_register_write): New function.
4648 (mips_pseudo_register_read): New function.
4649 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4650 based on the register's type.
4651 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4652 cooked.
4653 (mips_get_saved_register): Simplify. Assert that REGNO is a
4654 pseudo / cooked.
4655 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4656 (mips_register_type): Replace mips_register_virtual_type. Map
4657 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4658 when available.
4659 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4660 that the register is cooked / virtual.
4661 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4662 Only get the extra info when needed.
4663 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4664 (mips32_heuristic_proc_desc): Fetch the cooked register.
4665 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4666 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4667 (mips_print_register): Use gdbarch_register_type, instead of
4668 REGISTER_VIRTUAL_TYPE.
4669 (print_gp_register_row): Use gdbarch_register_type, instead of
4670 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4671 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4672 Print the pseudo / cooked registers.
4673 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4674 Print the pseudo / cooked registers.
4675 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4676 REG_NUM is pseudo / cooked.
4677 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4678 (mips_n32n64_xfer_return_value): Ditto.
4679 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4680 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4681 (mips_register_sim_regno): New function.
4682 (mips_gdbarch_init): Set deprecated_register_byte,
4683 register_group_p, pseudo_register_write, pseudo_register_read,
4684 register_sim_regno, and num_pseudo_regs. Set register_type,
4685 instead of register_virtual_type.
4686 * Makefile.in (mips-tdep.o): Update dependencies.
4687 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4688 REGISTER_VIRTUAL_TYPE.
4689 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4690 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4691 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4692 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4693 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4694
325ed089
DJ
46952003-06-21 Daniel Jacobowitz <drow@mvista.com>
4696
4697 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4698 * cli/cli-cmds.c: Include "gdb_vfork.h".
4699 (shell_escape): Use vfork.
4700
f0e7d0e8
AC
47012003-06-21 Andrew Cagney <cagney@redhat.com>
4702
c57bb9fa
AC
4703 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4704 32 bit floating-point register saves.
4705
6e51443a
AC
4706 * frame.h (deprecated_unwind_get_saved_register): Delete.
4707 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4708 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4709 and deprecated_get_next_frame_hack instead of
4710 deprecated_unwind_get_saved_register.
4711
ed183c7c
AC
4712 * mips-tdep.c (mips_dump_tdep): Do not print
4713 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4714
f0e7d0e8
AC
4715 * frame.c (get_frame_register): New function.
4716 (frame_unwind_register_signed): New function.
4717 (get_frame_register_signed): New function.
4718 (frame_unwind_register_unsigned): New function.
4719 (get_frame_register_unsigned): New function.
4720 * frame.h: Add comments on naming schema.
4721 (get_frame_register, frame_unwind_register_signed): Declare.
4722 (get_frame_register_signed, get_frame_register_signed): Declare.
4723 (frame_unwind_register_unsigned): Declare.
4724 (get_frame_register_unsigned): Declare.
4725
2224d941
TR
47262003-06-20 Theodore A. Roth <troth@openavr.org>
4727
4728 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4729
8619218d
TR
47302003-06-20 Theodore A. Roth <troth@openavr.org>
4731
4732 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4733 (avr_read_sp): Ditto.
4734
0b1b50c0
DJ
47352003-06-20 Daniel Jacobowitz <drow@mvista.com>
4736
4737 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4738 * config/arm/nm-linux.h: Likewise.
4739 * config/arm/tm-linux.h: Likewise.
4740 * config/ia64/nm-linux.h: Likewise.
4741 * config/ia64/tm-ia64.h: Likewise.
4742 * config/s390/tm-linux.h: Likewise.
4743 * config/s390/tm-s390.h: Likewise.
4744 * s390-nat.c: Likewise.
4745 * s390-tdep.c: Likewise.
4746
4747 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4748 * config/ia64/linux.mt: Likewise.
4749 * config/m68k/linux.mh: Likewise.
4750 * config/mips/linux.mt: Likewise.
4751 * config/powerpc/linux.mh: Likewise.
4752 * config/sh/linux.mt: Likewise.
4753
c8c18e65
KW
47542003-06-19 Kris Warkentin <kewarken@qnx.com>
4755
4756 * solib.c (solib_open): Change tests for whether to search
4757 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4758 comments.
4759
dcccef2e
TR
47602003-06-19 Theodore A. Roth <troth@openavr.org>
4761
4762 * avr-tdep.c (avr_frame_address): Delete function.
4763 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4764 set_gdbarch_frame_args_address.
4765
5861a190
AC
47662003-06-19 Andrew Cagney <cagney@redhat.com>
4767
4768 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4769 (REGISTER_CONVERT_FROM_TYPE): Delete.
4770 (mips_register_convert_to_type): Delete declaration.
4771 (mips_register_convert_from_type): Delete declaration.
4772 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4773 kernel/.
4774
0274a8ce
MS
47752003-06-19 Michael Snyder <msnyder@redhat.com>
4776
4777 * linux-nat.h: New file.
4778 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4779 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4780 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4781 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4782 (linux_make_note_section): Iterate over lwps instead of threads.
4783 (linux_do_thread_registers): Use lwp instead of merged pid.
4784 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4785 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4786 Add dependency on linux_nat_h.
4787
adf5f719
TR
47882003-06-19 Theodore A. Roth <troth@openavr.org>
4789
4790 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4791
6766a268
DJ
47922003-06-19 Daniel Jacobowitz <drow@mvista.com>
4793
4794 * varobj.c (get_type, get_target_type): Use check_typedef.
4795
1171114a
DJ
47962003-06-19 Daniel Jacobowitz <drow@mvista.com>
4797
4798 * breakpoint.c (insert_catchpoint): Call internal_error.
4799
adcf68a2
TR
48002003-06-19 Theodore A. Roth <troth@openavr.org>
4801
4802 * avr-tdep.c (avr_push_dummy_code): Delete function.
4803 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4804
ea67f13b
DJ
48052003-06-19 Daniel Jacobowitz <drow@mvista.com>
4806
4807 * arch-utils.c (default_prepare_to_proceed): Remove.
4808 (generic_prepare_to_proceed): Remove.
4809 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4810 (generic_prepare_to_proceed): Remove prototype.
4811 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4812 * gdbarch.c: Regenerate.
4813 * gdbarch.h: Regenerate.
4814 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4815 * hppah-nat.c (hppa_switched_threads): Remove.
4816 * infrun.c (prepare_to_proceed): New static function, copied from
4817 generic_prepare_to_proceed. Remove select_it argument.
4818 (proceed): Call prepare_to_proceed.
4819 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4820 variables.
4821 (ptrace_wait): Don't set the removed variables.
4822 (hppa_switched_threads): Remove.
4823 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4824 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4825 (lin_lwp_prepare_to_proceed): Remove prototype.
4826 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4827 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4828
4add8633
TR
48292003-06-18 Theodore A. Roth <troth@openavr.org>
4830
4831 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4832 trad-frame.h.
4833 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4834 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4835 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4836 (AVR_PROLOGUE_*): Enumerate prologue types.
4837 (struct frame_extra_info): Remove.
4838 (struct avr_unwind_cache): Define.
4839 (avr_write_sp): Delete function.
4840 (avr_read_fp): Ditto.
4841 (avr_init_extra_frame_info): Ditto.
4842 (avr_pop_frame): Ditto.
4843 (avr_frame_saved_pc): Ditto.
4844 (avr_saved_pc_after_call): Ditto.
4845 (avr_push_return_address): Ditto.
4846 (avr_frame_chain): Ditto.
4847 (avr_store_struct_return): Ditto.
4848 (avr_push_arguments): Ditto.
4849 (avr_scan_prologue): Update comments. Changed to set up the info for
4850 cache unwinding. Now returns end of prologue PC.
4851 (avr_skip_prologue): Better handling of functions lacking a prologue
4852 by using avr_scan_prologue.
4853 (avr_scan_arg_moves): New function.
4854 (avr_saved_regs_unwinder): Ditto.
4855 (avr_frame_unwind_cache): Ditto.
4856 (avr_unwind_pc): Ditto.
4857 (avr_frame_this_id): Ditto.
4858 (avr_frame_prev_register): Ditto.
4859 (avr_frame_p): Ditto.
4860 (avr_frame_base_address ): Ditto.
4861 (avr_unwind_dummy_id): Ditto.
4862 (avr_push_dummy_code): Ditto.
4863 (push_stack_item): Ditto.
4864 (pop_stack_item): Ditto.
4865 (avr_push_dummy_call): Ditto.
4866 (struct stack_item): Define.
4867 (avr_frame_unwind): Declare structure.
4868 (avr_frame_base): Ditto.
4869 (avr_gdbarch_init): Remove calls to
4870 set_gdbarch_deprecated_init_frame_pc,
4871 set_gdbarch_deprecated_target_read_fp,
4872 set_gdbarch_deprecated_dummy_write_sp,
4873 set_gdbarch_deprecated_fp_regnum,
4874 set_gdbarch_deprecated_push_arguments,
4875 set_gdbarch_deprecated_push_return_address,
4876 set_gdbarch_deprecated_pop_frame,
4877 set_gdbarch_deprecated_store_struct_return,
4878 set_gdbarch_deprecated_frame_init_saved_regs,
4879 set_gdbarch_deprecated_init_extra_frame_info,
4880 set_gdbarch_deprecated_frame_chain,
4881 set_gdbarch_deprecated_frame_saved_pc,
4882 set_gdbarch_deprecated_saved_pc_after_call.
4883 Add calls to set_gdbarch_push_dummy_call,
4884 set_gdbarch_push_dummy_code,
4885 frame_unwind_append_predicate,
4886 frame_base_set_default,
4887 set_gdbarch_unwind_dummy_id,
4888 set_gdbarch_unwind_pc.
4889 Wrap a long line.
4890
7be04a68
MS
48912003-06-18 Corinna Vinschen <vinschen@redhat.com>
4892
4893 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4894 registers for H8/300S.
4895 (h8300_print_registers_info): Ditto.
8ffd9b1b 4896 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4897
ae087d01
DJ
48982003-06-18 Daniel Jacobowitz <drow@mvista.com>
4899
4900 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4901 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4902 (lin_lwp_wait): Likewise. Update comments.
4903 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4904 (pull_pid_from_list, linux_record_stopped_pid): New.
4905
07d8f827
SC
49062003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4907
4908 * ada-lang.c (scan_discrim_bound): Name first argument.
4909 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4910 declared by ALL_BLOCK_SYMBOLS.
4911
7cb47b14
SC
49122003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4913
4914 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4915 ("regcache.h"): Include it.
4916 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4917
6ad8ae5c
DJ
49182003-06-17 Daniel Jacobowitz <drow@mvista.com>
4919
4920 * NEWS: Mention gdbserver detach change and "disconnect" command.
4921 * infcmd.c (disconnect_command): New function.
4922 (_initialize_infcmd): Add ``disconnect'' command.
4923 * remote.c (remote_async_detach): Delete.
4924 (remote_detach): Merge remote_async_detach.
4925 (remote_disconnect): New.
4926 (init_remote_ops): Set to_disconnect.
4927 (init_remote_cisco_ops): Likewise.
4928 (init_remote_async_ops): Likewise. Use remote_detach.
4929 * target.c (cleanup_target): Default to_disconnect.
4930 (update_current_target): Inherit to_disconnect.
4931 (target_disconnect, debug_to_disconnect): New functions.
4932 (setup_target_debug): Set to_disconnect.
4933 * target.h (struct target_ops): Add to_disconnect.
4934 (target_disconnect): Add prototype.
4935
687595f9
DJ
49362003-06-17 Daniel Jacobowitz <drow@mvista.com>
4937
4938 * breakpoint.c (insert_catchpoint): New function.
4939 (insert_breakpoints): Use catch_exceptions to call
4940 insert_catchpoint. Disable catchpoints if they fail to insert.
4941
29239a8f
DJ
49422003-06-17 Daniel Jacobowitz <drow@mvista.com>
4943
4944 * symfile.c (reread_symbols): Clear sym_private.
4945
2cdf3c63
AC
49462003-06-17 Andrew Cagney <cagney@redhat.com>
4947
4948 * trad-frame.h (struct frame_info): Add opaque declaration.
4949 * remote-fileio.h (struct cmd_list_element): Add opaque
4950 declaration.
4951 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4952 comments.
4953
cf0e1e0d
DJ
49542003-06-17 Daniel Jacobowitz <drow@mvista.com>
4955
4956 * remote.c (remote_prepare_to_store): Replace call to
4957 deprecated_read_register_bytes with multiple regcache_raw_read
4958 calls.
4959
192cdb19
KW
49602003-06-17 Kris Warkentin <kewarken@qnx.com>
4961
4962 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4963 (nto_find_and_open_solib): Likewise.
4964 (nto_init_solib_absolute_prefix): Likewise.
4965 (_initialize_nto_tdep): Fix indentation.
4966
89929b45
KW
49672003-06-17 Kris Warkentin <kewarken@qnx.com>
4968
4969 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4970
46019f27
KW
49712003-06-17 Kris Warkentin <kewarken@qnx.com>
4972
4973 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4974
1a38736e
JB
49752003-06-17 Jim Blandy <jimb@redhat.com>
4976
4977 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4978
3605c34a
TR
49792003-06-16 Theodore A. Roth <troth@openavr.org>
4980
4981 * avr-tdep.c (avr_extract_return_value): New function.
4982 (avr_gdbarch_init): Set extract_return_value method.
4983
870b3035
AC
49842003-06-16 Andrew Cagney <cagney@redhat.com>
4985
4986 * frame.h (deprecated_get_next_frame_hack): Declare.
4987 * frame.c (legacy_saved_regs_prev_register): Only require
4988 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4989 there are always saved regs.
4990 (deprecated_generic_get_saved_register): Do not require
4991 DEPRECATED_FRAME_INIT_SAVED_REGS.
4992 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4993 use frame ID unwind instead.
4994 (deprecated_get_next_frame_hack): New function.
4995
63d47a7d
CV
49962003-06-16 Corinna Vinschen <vinschen@redhat.com>
4997
4998 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4999 (h8300_push_dummy_call): ...this function. Some minor optimization.
5000 (h8300_push_return_address): Remove.
5001 (h8300_gdbarch_init): Remove calls to
5002 set_gdbarch_deprecated_dummy_write_sp,
5003 set_gdbarch_deprecated_push_arguments and
5004 set_gdbarch_deprecated_push_return_address.
5005 Add call to set_gdbarch_push_dummy_call.
5006
4bb1dc5e
CV
50072003-06-16 Corinna Vinschen <vinschen@redhat.com>
5008
5009 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5010 (E_PSEUDO_EXR_REGNUM): Ditto.
5011 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5012 registers into safe registers.
4bb1dc5e
CV
5013 (h8300_skip_prologue): Check for stm instruction to push registers
5014 used for register variables onto stack.
5015 (gdb_print_insn_h8300): Remove.
5016 (h8300_examine_prologue): Add a comment.
5017 (h8300_register_name): Take pseudo registers into account.
5018 (h8300s_register_name): Ditto.
5019 (h8300sx_register_name): Ditto.
5020 (h8300_print_register): Ditto.
5021 (h8300_print_registers_info): Define "nice" printing order.
5022 (h8300_saved_pc_after_call): Take pseudo registers into account.
5023 (h8300_register_type): Ditto. Return type used for remote connection
5024 when requesting real CCR or EXR register, return actual type when
5025 requesting pseudo CCR or EXR.
5026 (h8300_pseudo_register_read): New function.
5027 (h8300_pseudo_register_write): Ditto.
5028 (h8300_dbg_reg_to_regnum): Ditto.
5029 (h8300s_dbg_reg_to_regnum): Ditto.
5030 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5031 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5032 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5033 set_gdbarch_print_insn architecture dependent.
5034 Call set_gdbarch_pseudo_register_read and
5035 set_gdbarch_pseudo_register_write.
5036 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5037
a59fe496
AC
50382003-06-16 Andrew Cagney <cagney@redhat.com>
5039
5040 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5041 * gdbarch.h, gdbarch.c: Re-generate.
5042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5043 * s390-tdep.c (s390_gdbarch_init): Update.
5044 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5045 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5046 * mips-tdep.c (mips_gdbarch_init): Update.
5047 * mcore-tdep.c (mcore_gdbarch_init): Update.
5048 * cris-tdep.c (cris_gdbarch_init): Update.
5049 * infcall.c (call_function_by_hand): Update.
5050 * ia64-tdep.c (ia64_push_arguments): Update comment.
5051 * frame.c (legacy_get_prev_frame): Do not assume
5052 SAVE_DUMMY_FRAME_TOS_P.
5053 * dummy-frame.c (find_dummy_frame): Update comment.
5054
6f4e5a41
AC
50552003-06-16 Andrew Cagney <cagney@redhat.com>
5056
5057 * regcache.c (do_cooked_read): Do not use register_valid_p.
5058
72fab697
TR
50592003-06-15 Theodore A. Roth <troth@openavr.org>
5060
5061 * avr-tdep.c (avr_register_type): Remove a blank line.
5062 (avr_scan_prologue): Correct some comments.
5063
e3d8b004
TR
50642003-06-15 Theodore A. Roth <troth@openavr.org>
5065
5066 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5067 prologue types.
8ffd9b1b 5068 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5069 option.
5070 Add code to scan -mcall-prologues for mega devices.
5071
866b76ea
TR
50722003-06-15 Theodore A. Roth <troth@openavr.org>
5073
5074 * avr-tdep.c (avr_register_byte): Delete function.
5075 (avr_register_raw_size): Delete function.
5076 (avr_register_virtual_size): Delete function.
5077 (avr_register_virtual_type): Delete function.
5078 (avr_register_type): New function.
5079 (avr_address_to_pointer): Remove unused code.
5080 (avr_read_fp): Need to read FP as two separate bytes due to change to
5081 avr_register_type() usage.
5082 (avr_gdbarch_init): Don't set deprecated_register_size.
5083 Don't set deprecated_register_bytes.
5084 Don't set deprecated_register_byte.
5085 Don't set deprecated_register_raw_size.
5086 Don't set deprecated_max_register_raw_size.
5087 Don't set deprecated_register_virtual_size.
5088 Don't set deprecated_max_register_virtual_size.
5089 Don't set deprecated_register_virtual_type.
5090 Set register_type method.
5091
3993f6b1
DJ
50922003-06-15 Daniel Jacobowitz <drow@mvista.com>
5093
5094 * Makefile.in (linux-nat.o): Add rule.
5095 * linux-nat.c: New file.
5096 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5097 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5098 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5099 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5100 * config/arm/linux.mh (NATDEPFILES): Likewise.
5101 * config/i386/linux.mh (NATDEPFILES): Likewise.
5102 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5103 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5104 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5105 * config/mips/linux.mh (NATDEPFILES): Likewise.
5106 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5107 * config/s390/s390.mh (NATDEPFILES): Likewise.
5108 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5109
786a90bb
MK
51102003-06-15 Mark Kettenis <kettenis@gnu.org>
5111
5112 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5113 replace out-of-date comment.
5114
3bd3f01e
AC
51152003-06-15 Andrew Cagney <cagney@redhat.com>
5116
5117 * rdi-share/host.h (Fail): Change to a varargs function.
5118 * remote-rdi.c (Fail): Update.
8ffd9b1b 5119
de5b9bb9
MK
51202003-06-15 Mark Kettenis <kettenis@gnu.org>
5121
5122 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5123 (i386_convert_register_p, i386_register_to_value,
5124 i386_register_from_value): Handle types longer than 8 bytes.
5125
d532c08f
MK
51262003-06-15 Mark Kettenis <kettenis@gnu.org>
5127
5128 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5129 Move floating-point code to new function in i387-tdep.c.
5130 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5131 New functions containing code moved here from i386-tdep.c.
5132 * i387-tdep.h: Add opaque declaration for `struct type'.
5133 (i387_register_to_value, i387_value_to_register): New prototypes.
5134 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5135 (x86_64_init_abi): Set convert_register_p, register_to_value and
5136 value_to_register here.
8ffd9b1b 5137
42c466d7
AC
51382003-06-14 Andrew Cagney <cagney@redhat.com>
5139
5140 * mips-tdep.c (mips_register_to_value): Make static.
5141 (mips_value_to_register): Make static.
5142 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5143 * ia64-tdep.c (ia64_register_raw_size): Make static.
5144 (ia64_register_virtual_size): Make static.
5145 (ia64_register_byte): Make static.
5146 * i387-tdep.c: Include "i387-tdep.h".
5147 (print_387_control_word): Delete function.
5148 (print_387_status_word): Delete function.
5149 (print_387_status_bits): Delete function.
5150 (print_387_control_bits): Delete function.
5151 * Makefile.in (i387-tdep.o): Update dependencies.
5152 * rdi-share/host.h (Fail): Declare.
5153 * remote-rdi.c (Fail): Update to match declaration.
5154
2a9cda49
AC
51552003-06-14 Andrew Cagney <cagney@redhat.com>
5156
5157 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5158 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5159 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5160 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5161 * README: Delete reference to remote-array.
5162 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5163 (remote-array.o): Delete target.
5164 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5165 * remote-array.c: Delete file.
5166
ff2e87ac
AC
51672003-06-14 Andrew Cagney <cagney@redhat.com>
5168 Mark Kettenis <kettenis@gnu.org>
5169
5170 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5171 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5172 parameter with "frame".
5173 * gdbarch.h, gdbarch.c: Re-generate.
5174 * frame.h (put_frame_register): Declare.
5175 * frame.c (put_frame_register): New function.
5176 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5177 (legacy_register_to_value): Rewrite, use "frame" to get the
5178 register value.
5179 (legacy_value_to_register): Rewrite, use "frame" to find the
5180 register's location before storing.
5181 * arch-utils.h (legacy_convert_register_p): Update.
5182 (legacy_register_to_value, legacy_value_to_register): Update.
5183 * findvar.c (value_from_register): Rewrite, eliminate use of
5184 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5185 "frame" to REGISTER_TO_VALUE.
5186 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5187 lval_reg_frame_relative + lval_register branch of the switch. Do
5188 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5189 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5190 I386_EDI_REGNUM): New defines.
5191 (i386_next_regnum, i386_convert_register_p,
5192 i386_register_to_value, i386_value_to_register): New functions.
5193 (i386_register_convertible, i386_register_convert_to_virtual,
5194 i386_convert_to_raw): Remove functions.
5195 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5196 value_to_register instead of register_convertible,
5197 register_convert_to_virtual and register_convert_to_raw.
5198 * mips-tdep.c (mips_convert_register_p): New function.
5199 (mips_value_to_register): Replace mips_register_convert_from_type.
5200 (mips_register_to_value): Replace mips_register_convert_to_type.
5201 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5202 register_to_value.
5203 * alpha-tdep.c (alpha_convert_register_p): Update.
5204 (alpha_value_to_register): Update, store the register.
5205 (alpha_register_to_value): Update, fetch the register.
5206
98be1e77
TR
52072003-06-14 Theodore A. Roth <troth@openavr.org>
5208
5209 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5210 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5211 Don't set deprecated_call_dummy_words.
5212 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5213 Don't set remote_translate_xfer_address.
5214 (avr_io_reg_read_command): Remove commented out debug printf.
5215 Wrap a long line.
5216
57bc6122
TR
52172003-06-14 Theodore A. Roth <troth@openavr.org>
5218
5219 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5220 causes gdb to seg fault.
5221
eb01fc62
DJ
52222003-06-14 Daniel Jacobowitz <drow@mvista.com>
5223
5224 * sparc-nat.c (fetch_inferior_registers): Correct
5225 a reference to "registers".
5226
3b3e6bee
DJ
52272003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5228
5229 * Makefile.in (exc_request_U_h): Define
5230 (exc_request_S_h): Likewise.
5231 (msg_reply_S_h): Likewise.
5232 (msg_U_h): Likewise.
5233 (notify_S_h): Likewise.
5234 (process_reply_S_h): Likewise.
5235 (gnu-nat.o): Depend on gdb_obstack_h
5236 * gnu-nat.c: Include "gdb_obstack.h".
5237
b8de8283
AC
52382003-06-13 Andrew Cagney <cagney@redhat.com>
5239
5240 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5241 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5242
f3be58bc
AC
52432003-06-13 Andrew Cagney <cagney@redhat.com>
5244
5245 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5246 when deprecated REGISTER macros can be deleted.
5247 * gdbarch.h, gdbarch.c: Re-generate.
5248
4c0122c8
JB
52492003-06-13 Jim Blandy <jimb@redhat.com>
5250
5251 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5252 Linux entry point symbols for _dl_debug_state, too.
5253
3e210248
AC
52542003-06-13 Andrew Cagney <cagney@redhat.com>
5255
5256 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5257 available, do not use the FP register, and always save the TOS.
5258 * dummy-frame.c (dummy_frame_this_id): Do not assert
5259 SAVE_DUMMY_FRAME_TOS.
5260 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5261 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5262 (i386_push_dummy_call): Add 8 to the returned SP.
5263 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5264 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5265 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5266 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5267 (x86_64_push_dummy_call): Return "sp + 16".
5268 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5269 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5270 save_dummy_frame_tos.
5271
0b65af49
JB
52722003-06-13 Jim Blandy <jimb@redhat.com>
5273
5274 * frv-tdep.c (frv_use_struct_convention): Delete static
5275 declaration for function deleted in my change of 2003-06-12.
5276
4ea2465e
TR
52772003-06-13 Theodore A. Roth <troth@openavr.org>
5278
5279 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5280 (avr_pointer_to_address): Shift code addrs left 1 bit.
5281 (avr_convert_from_func_ptr_addr): Delete function since operation is
5282 better handled by avr_address_to_pointer and avr_pointer_to_address.
5283 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5284
1581182a
MK
52852003-06-13 Mark Kettenis <kettenis@gnu.org>
5286
5287 From Kelley Cook <kelleycook@wideopenwest.com>:
5288 * configure.host: Accept i[34567]86 variants.
5289 * configure.tgt: Likewise.
5290 * nlm/configure.in: Likewise.
5291 * nlm/configure: Regenerated.
5292
7aa1783e
RE
52932003-06-13 Richard Earnshaw <rearnsha@arm.com>
5294
5295 * arm-tdep.c (solib-svr4.h): Dont' include it.
5296 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5297 * arm-linux-tdep.c: ... here. Make static.
5298 (arm_linux_init_abi): Register it.
5299 (solib-svr4.h): Include it.
5300 * Makefile.in: Update dependencies.
5301 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5302 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5303
0261a0d0
CV
53042003-06-13 Corinna Vinschen <vinschen@redhat.com>
5305
5306 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5307 indicate registers used for return values.
5308 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5309 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5310 members.
5311 (h8300_init_extra_frame_info): Ditto.
5312 (h8300_frame_locals_address): Removed.
5313 (h8300_frame_args_address): Removed.
5314 (h8300_extract_return_value): Use new regcache structure. Only care
5315 for 16 bit CPUs.
5316 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5317 (h8300_store_return_value): Use new regcache structure. Only care
5318 for 16 bit CPUs.
5319 (h8300h_store_return_value): Same function for 32 bit CPUs.
5320 (h8300_store_struct_return): Removed.
5321 (h8300_extract_struct_value_address): Use new regcache structure.
5322 (h8300h_extract_struct_value_address): Removed.
5323 (h8300_push_dummy_code): New function.
5324 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5325 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5326 set_gdbarch_store_return_value architecture dependent.
5327 Call set_gdbarch_push_dummy_code and
5328 set_gdbarch_extract_struct_value_address.
5329 Remove calls to set_gdbarch_frame_args_address,
5330 set_gdbarch_frame_locals_address,
5331 set_gdbarch_deprecated_store_struct_return,
5332 set_gdbarch_deprecated_extract_return_value,
5333 set_gdbarch_deprecated_extract_struct_value_address,
5334 set_gdbarch_deprecated_call_dummy_words and
5335 set_gdbarch_deprecated_sizeof_call_dummy_words.
5336
055c394a
CV
53372003-06-13 Corinna Vinschen <vinschen@redhat.com>
5338
5339 * h8300-tdep.c (h8300_register_byte): Remove.
5340 (h8300h_register_byte): Remove.
5341 (h8300_register_virtual_type): Remove. Substitute by...
5342 (h8300_register_type): New function.
5343 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5344 (h8300h_extract_struct_value_address): Ditto.
5345 (h8300_gdbarch_init): Drop calls to
5346 set_gdbarch_deprecated_register_byte and
5347 set_gdbarch_deprecated_register_virtual_type.
5348 Add call to set_gdbarch_register_type.
5349
9c04cab7
AC
53502003-06-13 Andrew Cagney <cagney@redhat.com>
5351
5352 * gdbarch.sh: Update comments on registers.
5353 (deprecated_register_byte): Rename register_byte.
5354 (deprecated_register_raw_size): Rename register_raw_size.
5355 (deprecated_register_virtual_size): Rename register_virtual_size.
5356 (deprecated_register_virtual_type): Rename register_virtual_type.
5357 * gdbarch.h, gdbarch.c: Re-generate.
5358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5359 * vax-tdep.c (vax_gdbarch_init): Update.
5360 * v850-tdep.c (v850_gdbarch_init): Update.
5361 * sparc-tdep.c (sparc_gdbarch_init): Update.
5362 * sh-tdep.c (sh_gdbarch_init): Update.
5363 * s390-tdep.c (s390_gdbarch_init): Update.
5364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5365 * ns32k-tdep.c: Update.
5366 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5367 * mips-tdep.c (mips_gdbarch_init): Update.
5368 * mcore-tdep.c (mcore_gdbarch_init): Update.
5369 * m68k-tdep.c (m68k_gdbarch_init): Update.
5370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5371 * ia64-tdep.c (ia64_gdbarch_init): Update.
5372 * hppa-tdep.c (hppa_gdbarch_init): Update.
5373 * h8300-tdep.c (h8300_gdbarch_init): Update.
5374 * frv-tdep.c (frv_gdbarch_init): Update.
5375 * cris-tdep.c (cris_gdbarch_init): Update.
5376 * avr-tdep.c (avr_gdbarch_init): Update.
5377 * alpha-tdep.c (alpha_gdbarch_init): Update.
5378 * arm-tdep.c (arm_gdbarch_init): Update.
5379
b060cbea
AC
53802003-06-13 Andrew Cagney <cagney@redhat.com>
5381
5382 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5383 mips_o32_use_struct_convention with always_use_struct_convention.
5384
0fc9922a
DC
53852003-06-12 David Carlton <carlton@kealia.com>
5386
5387 * cp-namespace.c (cp_set_block_scope): Comment out
5388 processing_has_namespace_info branch.
5389
1fd35568
JB
53902003-06-12 Jim Blandy <jimb@redhat.com>
5391
f470a70a
JB
5392 Recognize and skip 64-bit PowerPC Linux linkage functions.
5393 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5394 insn_pattern, insns_match_pattern, d_field, ds_field): New
5395 functions, macros, and types for working with PPC instructions.
5396 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5397 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5398 ppc64_skip_trampoline_code): New functions, variables, and macros
5399 for recognizing and skipping linkage functions.
5400 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5401 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5402
49ff75ad
JB
5403 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5404 register offsets for both the 32- and 64-bit interfaces.
5405
bd918c83
JB
5406 Actually finish the job started by my change of 2003-05-29.
5407 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5408 other #definition of this.
5409 (ppc_linux_skip_trampoline_code): Remove declaration.
5410 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5411 static.
5412 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5413 method for GDBARCH.
5414
5415 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5416 'long' on ppc64-*-linux*.
5417
f8c59253
JB
5418 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5419 isn't #defined, assume the register doesn't exist: act as if
5420 tdep->ppc_mq_regnum were -1.
5421
8fbb30b1
JB
5422 * configure.host, configure.tgt: Add entries for
5423 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5424 powerpc/linux.mt.
5425 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5426 New files.
5427
1fd35568
JB
5428 * arch-utils.c (always_use_struct_convention): New function.
5429 * arch-utils.h (always_use_struct_convention): New prototype.
5430 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5431 (alpha_gdbarch_init): Register always_use_struct_convention,
5432 instead of alpha_use_struct_convention.
5433 * cris-tdep.c (cris_use_struct_convention): Delete.
5434 (cris_gdbarch_init): Register always_use_struct_convention,
5435 instead of cris_use_struct_convention.
5436 * frv-tdep.c (frv_use_struct_convention): Delete.
5437 (frv_gdbarch_init): Register always_use_struct_convention,
5438 instead of frv_use_struct_convention.
5439 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5440 (h8300_gdbarch_init): Register always_use_struct_convention,
5441 instead of h8300_use_struct_convention.
e3305dd9 5442 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5443 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5444 instead of mips_o32_use_struct_convention.
5445
e14e6e9c
AC
54462003-06-12 Andrew Cagney <cagney@redhat.com>
5447
5448 * wince.c: Include "mips-tdep.h".
5449 * mips-tdep.h (mips_next_pc): Declare.
5450 * mcore-tdep.c: Make more local functions static.
5451 * Makefile.in (wince.o): Update dependencies.
5452
2335f48e
DC
54532003-06-12 David Carlton <carlton@kealia.com>
5454
5455 * symtab.c (lookup_symbol_aux_minsyms): Replace
5456 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5457 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5458 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5459 SYMBOL_NATURAL_NAME.
5460
f70a7d61
AS
54612003-06-12 Andreas Schwab <schwab@suse.de>
5462
5463 * Makefile.in (tuiDisassem.o): Update dependencies.
5464
b6429628
DC
54652003-06-12 David Carlton <carlton@bactrian.org>
5466
5467 * symtab.h: Delete declaration of make_symbol_overload_list.
5468 Add declaration of lookup_partial_symbol.
5469 * symtab.c (remove_params): Move to cp-support.c.
5470 (overload_list_add_symbol, make_symbol_overload_list)
5471 (sym_return_val_size, sym_return_val_index): Ditto.
5472 (lookup_partial_symbol): Make extern.
5473 * cp-support.h: Add declaration of make_symbol_overload_list.
5474 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5475 symtab.h, and block.h.
5476 (remove_params): Move here from symtab.c.
5477 (overload_list_add_symbol, make_symbol_overload_list)
5478 (sym_return_val_size, sym_return_val_index): Ditto.
5479 * valops.c: Include cp-support.h.
5480 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5481 frame_h, and block_h.
5482 (valops.o): Depend on cp_support_h.
5483
084edea5
CV
54842003-06-12 Corinna Vinschen <vinschen@redhat.com>
5485
5486 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5487 substitute by NUM_REGS throughout.
5488 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5489 (h8300s_register_name): New function for H8S registers.
5490 (h8300sx_register_name): Ditto for H8SX registers.
5491 (h8300_print_register): Revise register printing, avoid depending
5492 on 32 bit long.
0261a0d0 5493 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5494 (h8300h_register_byte): New function for any other architecture.
5495 (h8300_register_raw_size): Remove.
5496 (h8300_register_virtual_type): Revise to return actually useful
5497 type.
5498 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5499 (h8300h_extract_struct_value_address): New function for any other
5500 architecture.
5501 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5502 set_gdbarch_register_name, set_gdbarch_register_byte,
5503 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5504 Remove calls to set_gdbarch_deprecated_register_size,
5505 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5506 set_gdbarch_deprecated_max_register_raw_size,
5507 set_gdbarch_register_virtual_size and
5508 set_gdbarch_deprecated_max_register_virtual_size entirely.
5509 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5510 set_gdbarch_long_double_bit.
5511
06194148
JJ
55122003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5513
8ffd9b1b
AJ
5514 * doublest.c (convert_doublest_to_floatformat): When dealing
5515 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5516 processing a full 32 bits of mantissa.
5517
de4f826b
DC
55182003-06-11 David Carlton <carlton@bactrian.org>
5519
5520 * dictionary.h: New.
5521 * dictionary.c: New.
5522 * block.h: Add opaque declaration for struct dictionary.
5523 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5524 'sym' members.
5525 (BLOCK_DICT): New macro.
5526 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5527 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5528 BLOCK_SHOULD_SORT.
5529 (ALL_BLOCK_SYMBOLS): Update definition.
5530 * Makefile.in (SFILES): Add dictionary.c.
5531 (dictionary_h): New.
5532 (COMMON_OBS): Add dictionary.o.
5533 (dictionary.o): New.
5534 (ada-lang.o): Depend on dictionary_h.
5535 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5536 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5537 (mi-cmd-stack.o): Ditto.
5538 (gdbtk-cmds.o): Update dependencies.
5539 (gdbtk-stack.o): Ditto.
5540 * ada-lang.c: Include dictionary.h.
5541 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5542 (fill_in_ada_prototype, debug_print_block): Ditto.
5543 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5544 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5545 'is_sorted'.
5546 * mdebugread.c: Include dictionary.h.
5547 (struct parse_stack): Delete 'maxsyms' member.
5548 (parse_symbol): Update calls to new_block. Delete calls to
5549 shrink_block. Use dictionary methods.
5550 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5551 Update calls to new_symtab. Don't maintain maxsyms data.
5552 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5553 (add_symbol): Just call dict_add_symbol.
5554 (new_symtab): Delete 'maxsyms' argument.
5555 (new_symtab): Update calls to new_block.
5556 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5557 (shrink_block): Delete function.
5558 (fixup_sigtramp): Update call to new_block. Add symbol via
5559 dict_add_symbol.
5560 * jv-lang.c: Include dictionary.h.
5561 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5562 appropriately. Set class_symtab->free_func. Make sure the
5563 blockvector is big enough to hold two blocks.
5564 (add_class_symtab_symbol): Use dictionary methods.
5565 (free_class_block): New function.
5566 (type_from_class): Replace explicit iteration by
5567 ALL_BLOCK_SYMBOLS.
5568 * symtab.h (struct symtab): Replace 'free_ptr' method by
5569 'free_func'.
5570 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5571 sort_symtab_syms.
5572 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5573 sort_symtab_syms.
5574 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5575 Include dictionary.h.
5576 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5577 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5578 sort_symtab_syms.
5579 * objfiles.c: Include dictionary.h.
5580 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5581 * buildsym.c: Include dictionary.h.
5582 (finish_block): Use dictionary methods.
5583 (end_symtab): Set free_func to NULL, not free_ptr.
5584 * tracepoint.c: Include dictionary.h.
5585 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5586 (scope_info): Ditto.
5587 * stack.c: Include dictionary.h.
5588 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5589 (print_block_frame_labels, print_frame_arg_vars)
5590 (print_frame_args): Ditto.
5591 * symmisc.c (free_symtab_block): Use dictionary methods.
5592 (dump_symtab): Ditto.
5593 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5594 Include dictionary.h.
5595 * symfile.h: Delete declarations of sort_block_syms,
5596 sort_symtab_syms.
5597 * symfile.c (sort_block_syms): Delete.
5598 (sort_symtab_syms): Delete.
5599 * symtab.c: Include dictionary.h.
5600 (lookup_block_symbol): Use dictionary iterators.
5601 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5602 (search_symbols, make_symbol_completion_list): Ditto.
5603 (make_symbol_overload_list): Ditto.
5604 * valops.c (value_of_local): Use dict_empty.
5605 Include dictionary.h.
5606
a31f978c
JB
56072003-06-11 J. Brobecker <brobecker@gnat.com>
5608
5609 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5610
526e70c0
DC
56112003-06-11 David Carlton <carlton@bactrian.org>
5612
5613 * block.h (BLOCK_SHOULD_SORT): Delete.
5614 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5615 blocks.
5616 * ada-lang.c (ada_add_block_symbols): Ditto.
5617 * symfile.c (sort_block_syms): Delete.
5618 (sort_symtab_syms): Ditto.
5619 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5620 declarations.
5621 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5622 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5623 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5624 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5625 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5626 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5627 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5628
33c08150
JJ
56292003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5630
8ffd9b1b 5631 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5632 bits to 128.
5633
781a750d
AC
56342003-06-11 Andrew Cagney <cagney@redhat.com>
5635
5636 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5637 REGISTER_CONVERTIBLE.
5638 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5639 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5640 * gdbarch.h, gdbarch.c: Re-generate.
5641 * arch-utils.h (deprecated_register_convertible_not): Rename
5642 generic_register_convertible_not.
5643 * arch-utils.c (deprecated_register_convertible_not): Rename
5644 generic_register_convertible.
5645 (legacy_convert_register_p, legacy_register_to_value): Update.
5646 * sh-tdep.c (sh64_push_arguments): Update.
5647 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5648 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5649 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5650 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5651 * arch-utils.c (legacy_value_to_register): Update.
5652 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5653 (rs6000_register_convert_to_raw): Make parameter "from" const.
5654 * mips-tdep.c (mips_gdbarch_init): Update.
5655 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5656 * infcmd.c (default_print_registers_info): Update.
5657 * ia64-tdep.c (ia64_gdbarch_init): Update.
5658 (ia64_register_convert_to_raw): Make parameter "from" const.
5659 * i386-tdep.c (i386_gdbarch_init): Update.
5660 (i386_register_convert_to_raw): Update.
5661
cd90e54f
AC
56622003-06-11 Andrew Cagney <cagney@redhat.com>
5663
5664 * remote-fileio.c: Include "remote-fileio.h".
5665 * Makefile.in (remote-fileio.o): Update dependencies.
5666 (remote_fileio_h): Fix typo.
5667
a78f21af
AC
56682003-06-11 Andrew Cagney <cagney@redhat.com>
5669
5670 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5671 (xstormy16_save_dummy_frame_tos): Make static.
5672 (_initialize_xstormy16_tdep): Add declaration.
5673 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5674 * v850-tdep.c: Make local functions static.
5675 (_initialize_v850_tdep): Add declaration.
5676 * sparc-tdep.c: Make local functions static.
5677 (_initialize_sparc_tdep): Add declaration.
5678 * sh-tdep.c: Make local functions static.
5679 (_initialize_sh_tdep): Add declaration.
5680 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5681 * s390-tdep.c: Make local functions static.
5682 (_initialize_s390_tdep): Add declaration.
5683 * dbxread.c (find_stab_function_addr): Make static.
5684 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5685 * ocd.c (_initialize_remote_ocd): Add declaration.
5686 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5687 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5688 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5689 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5690 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5691 * remote-array.c (_initialize_array): Add declaration.
5692 (_initialize_remote_monitors): Add declaration.
5693 * remote-mips.c: Make local functions static.
5694 (_initialize_remote_mips): Add declaration.
5695 * mcore-tdep.c: Make all local functions static.
5696 (_initialize_mcore_tdep): Add declaration.
5697 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5698 * abug-rom.c (_initialize_abug_rom): Add declaration.
5699 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5700 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5701 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5702 * remote-est.c (_initialize_est): Add declaration.
5703 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5704 (m68hc11_call_dummy_address): Make static.
5705 * ia64-tdep.c: Make local functions static.
5706 (_initialize_ia64_tdep): Add declaration.
5707 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5708 * monitor.c (monitor_wait_filter): Make static.
5709 (_initialize_remote_monitors): Add declaration.
5710 * remote-hms.c (_initialize_remote_hms): Add declaration.
5711 * remote-e7000.c (fetch_regs_from_dump): Make static.
5712 (expect_n): Make static.
5713 (_initialize_remote_e7000): Add declaration.
5714 * ser-e7kpc.c: Always include "defs.h".
5715 (_initialize_ser_e7000pc): Add declaration.
5716 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5717 * cris-tdep.c: Make all but one function static.
5718 (_initialize_cris_tdep): Add declaration.
5719 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5720 * solib.c (update_solib_list): Make static.
5721 (_initialize_solib): Add declaration.
5722 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5723 (_initialize_avr_tdep): Add declaration.
5724 * remote-rdi.c (voiddummy): Make static.
5725 (_initialize_remote_rdi): Add declaration.
5726 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5727 * remote-rdp.c (send_rdp): Make static.
5728 (_initialize_remote_rdp): Add declaration.
5729 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5730
cbcdb1f5
CV
57312003-06-11 Corinna Vinschen <vinschen@redhat.com>
5732
5733 * remote-fileio.c: Make ari happy.
5734
a191ea8d
JB
57352003-06-10 J. Brobecker <brobecker@gnat.com>
5736
5737 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5738 fetching the trailing bytes of the buffer we are about to write.
5739
0ef75e11
AC
57402003-06-10 Andrew Cagney <cagney@redhat.com>
5741
5742 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5743 * Makefile.in (remote-fileio.o): Update dependencies.
5744 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5745 include <setjmp.h>, or <sys/types.h> conditional on USG.
5746 (remote_fio_jmp_buf): Delete global variable.
5747
449092f6 57482003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5749 Martin M. Hunt <hunt@redhat.com>
449092f6 5750
559fa028
AC
5751 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5752 (SFILES): Add remote-fileio.c.
5753 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5754 dependencies for building remote.o.
449092f6
CV
5755 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5756 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5757 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5758 static storage class.
5759 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5760 'F' packet.
5761 (_initialize_remote): Call initialize_remote_fileio().
5762 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5763 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5764 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5765 (captured_main): Initialize new ui_files.
5766 * ui-file.c: Add read and fgets input functions.
5767 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5768 (null_file_read): New function.
5769 (ui_file_read): New function.
5770 (set_ui_file_read): New function.
5771 (stdio_file_read): New function.
5772 * ui-file.h: New type ui_file_read_ftype.
5773 (set_ui_file_read): Declare.
5774 (ui_file_read): Declare.
5775
248de703
AC
57762003-06-09 Andrew Cagney <cagney@redhat.com>
5777
5778 * frame.h (deprecated_unwind_get_saved_register): Rename
5779 generic_unwind_get_saved_register, update comments.
5780 * mips-tdep.c (mips_get_saved_register): Update.
5781 * frame.c (deprecated_unwind_get_saved_register): Update.
5782
0ed8aa57
AC
57832003-06-09 Andrew Cagney <cagney@redhat.com>
5784
5785 * vax-tdep.c (vax_frame_locals_address): Delete function.
5786 (vax_gdbarch_init): Do not set frame_locals_address.
5787 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5788 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5789 * s390-tdep.c (s390_frame_args_address): Delete function.
5790 (s390_gdbarch_init): Do not set frame_args_address or
5791 frame_locals_address.
5792 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5793 (ns32k_gdbarch_init): Do not set frame_locals_address.
5794 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5795 (hppa_frame_locals_address): Delete function.
5796 (hppa_gdbarch_init): Do not set frame_args_address, or
5797 frame_locals_address.
5798 * arm-tdep.c (arm_frame_args_address): Delete.
5799 (arm_frame_locals_address): Delete.
5800 (arm_gdbarch_init): Do not set frame_args_address, or
5801 frame_locals_address.
5802
983a287a
AC
58032003-06-09 Andrew Cagney <cagney@redhat.com>
5804
5805 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5806 * gdbarch.h, gdbarch.c: Re-generate.
5807 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5808 * arch-utils.c (frame_num_args_unknown): Delete function.
5809 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5810 (frame_info): Use FRAME_NUM_ARGS_P.
5811 * arm-tdep.c (arm_frame_num_args): Delete function.
5812 (arm_gdbarch_init): Do not set frame_num_args.
5813 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5814 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5815 (hppa_gdbarch_init): Do not set frame_num_args.
5816 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5818 frame_num_args to default frame_num_args_unknown.
5819 * v850-tdep.c (v850_gdbarch_init): Ditto.
5820 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5821 * sh-tdep.c (sh_gdbarch_init): Ditto.
5822 * s390-tdep.c (s390_gdbarch_init): Ditto.
5823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5825 * mips-tdep.c (mips_gdbarch_init): Ditto.
5826 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5827 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5829 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5830 * i386-tdep.c (i386_gdbarch_init): Ditto.
5831 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5832 * frv-tdep.c (frv_gdbarch_init): Ditto.
5833 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5834 * cris-tdep.c (cris_gdbarch_init): Ditto.
5835 * avr-tdep.c (avr_gdbarch_init): Ditto.
5836 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5837
8d3b0994
AC
58382003-06-09 Andrew Cagney <cagney@redhat.com>
5839
5840 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5841 (print_frame_args): Moved to "stack.c".
5842 * stack.c: Include "gdb_assert.h".
5843 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5844 (print_frame_args): Moved from "printcmd.c".
5845 * frame.h (print_frame_args): Delete declaration.
5846 * Makefile.in (stack.o): Update dependencies.
5847
25e3a86b
AC
58482003-06-08 Andrew Cagney <cagney@redhat.com>
5849
5850 * frame.c (get_prev_frame): Remove reference to
5851 frame_args_address_correct in comments.
5852 * frame-base.c (default_frame_args_address): Delete code
5853 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5854 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5855 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5856 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5857 (vax_frame_args_address_correct): Delete declaration.
5858
a9e5fdc2
AC
58592003-06-08 Andrew Cagney <cagney@redhat.com>
5860
5861 * gdbarch.sh (UNWIND_SP): Add.
5862 * gdbarch.h, gdbarch.c: Re-generate.
5863 * frame.c (frame_sp_unwind): New function.
5864 (get_frame_sp): New function.
5865 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5866 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5867 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5868 value.
5869 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5870 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5871
8983bd83
AC
58722003-06-08 Andrew Cagney <cagney@redhat.com>
5873
7fec2c59
AC
5874 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5875 REMOTE_BREAKPOINT.
5876 * remote.c: Update.
5877 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5878 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5879 * config/m68k/tm-sun3.h: Update.
5880 * config/m68k/tm-m68klynx.h: Update.
5881 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5882
8983bd83
AC
5883 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5884 trad_frame". Update comments.
5885 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5886 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5887 (trad_frame_register_value, trad_frame_prev_register): Update.
5888
b9362cc7
AC
58892003-06-08 Andrew Cagney <cagney@redhat.com>
5890
5891 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5892 from GCC's acinclude.m4.
5893 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5894 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5895 * main.c (error_init): Delete declaration.
5896 * defs.h (error_init): Declare.
5897 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5898 (rs6000_convert_from_func_ptr_addr): Make static.
5899 (_initialize_rs6000_tdep): Add declaration.
5900 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5901 (show_commands, set_verbose, show_history): Delete declaration.
5902 * top.h (set_verbose): Add declaration.
5903 (show_history, set_history, show_commands): Add declaration.
5904 (do_restore_instream_cleanup): Add declaration.
5905 * objc-lang.c (specialcmp): Make static.
5906 (print_object_command): Make static.
5907 (find_objc_msgsend): Make static.
5908 (find_objc_msgcall_submethod_helper): Make static.
5909 (find_objc_msgcall_submethod): Make static.
5910 (_initialize_objc_language): Add declaration.
5911 (find_implementation_from_class): Make static.
5912 (find_implementation): Make static.
5913 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5914 * objc-lang.h (lookup_struct_typedef): Add declaration.
5915 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5916 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5917 (do_restore_user_call_depth): Make static.
5918 (do_restore_instream_cleanup): Delete declaration.
5919 (dont_repeat): Delete declaration.
5920 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5921 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5922 * reggroups.c (_initialize_reggroup): Add declaration.
5923 * cp-support.c (_initialize_cp_support): Add declaration.
5924 * cp-abi.c (_initialize_cp_abi): Add declaration.
5925 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5926 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5927 (_initialize_gnu_v3_abi): Add declaration.
5928 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5929 (_initialize_gnu_v2_abi): Add declaration.
5930 * frame-base.c (_initialize_frame_base): Add declaration.
5931 * doublest.c (floatformat_from_length): Make static.
5932 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5933 * frame.c (create_sentinel_frame): Make static.
5934 (_initialize_frame): Add declaration.
5935 * top.c (do_catch_errors): Make static.
5936 (gdb_rl_operate_and_get_next_completion): Make static.
5937 * typeprint.c: Include "typeprint.h".
5938 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5939 (sentinel_frame_this_id): Make static.
5940 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5941 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5942 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5943 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5944 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5945 * maint.c (maintenance_print_architecture): Make static.
5946 * signals/signals.c (_initialize_signals): Add declaration.
5947 * std-regs.c (_initialize_frame_reg): Add declaration.
5948 * jv-exp.y (push_variable): ISO C definition.
5949 (push_qualified_expression_name): Ditto.
5950 * memattr.c (_initialize_mem): Add declaration.
5951 * remote.c (remote_check_watch_resources): Make static.
5952 (remote_stopped_by_watchpoint): Make static.
5953 (remote_stopped_data_address): Make static.
5954 * d10v-tdep.c (nr_dmap_regs): Make static.
5955 (a0_regnum): Make static.
5956 (d10v_frame_unwind_cache): Make static.
5957 (d10v_frame_p): Make static.
5958 * osabi.c (show_osabi): Make static.
5959 (_initialize_gdb_osabi): Add extern declaration.
5960 * gdbtypes.c (make_qualified_type): Make static.
5961 (safe_parse_type): Make static.
5962 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5963 * macrotab.c (macro_bcache_free): Make static.
5964 * interps.c (interp_set_quiet): Make static.
5965 (interpreter_exec_cmd): Make static.
5966 * stack.h (select_frame_command): New file.
5967 * stack.c: Include "stack.h".
5968 (select_frame_command_wrapper): Delete function.
5969 (select_frame_command): Make global.
5970 * infcall.c: Include "infcall.h".
5971 * linespec.c: Include "linespec.h".
5972 * symfile.c (sections_overlap): Make static.
5973 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5974 * charset.c (_initialize_charset): Add missing prototype.
5975 * regcache.c (init_legacy_regcache_descr): Make static.
5976 (do_regcache_xfree): Make static.
5977 (regcache_xfer_part): Make static.
5978 (_initialize_regcache): Add missing prototype.
5979 * breakpoint.c (parse_breakpoint_sals): Make static.
5980 (breakpoint_sals_to_pc): Make static.
5981 * interps.h (clear_interpreter_hooks): ISO C declaration.
5982 * Makefile.in (stack_h): Define.
5983 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5984 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5985
a0f267c7
AC
59862003-06-08 Andrew Cagney <cagney@redhat.com>
5987
5988 * Makefile.in (d10v-tdep.o): Update dependencies.
5989 (SFILES): Add trad-frame.c.
5990 (trad_frame_h): Define.
5991 (COMMON_OBS): Add trad-frame.o.
5992 (trad-frame.o): Specify dependencies.
5993 * d10v-tdep.c: Include "trad-frame.h".
5994 (saved_regs_unwinder): Delete function.
5995 (d10v_frame_prev_register): Use trad_frame_prev_register.
5996 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5997 trad_frame", delete "regs" and "prev_sp".
5998 (prologue_find_regs): Use trad-frame.
5999 * trad-frame.h, trad-frame.c: New files.
6000
4538b4f4
MK
60012003-06-08 Mark Kettenis <kettenis@gnu.org>
6002
6003 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6004
a0273b2f
AF
60052003-06-07 Adam Fedor <fedor@gnu.org>
6006
6007 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6008 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6009 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6010 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6011 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6012 Use it.
6013
3a6c3343
AC
60142003-06-07 Andrew Cagney <cagney@redhat.com>
6015
6016 * symfile.h: Re-indent, clean up comments.
6017
b46e02f6
AC
60182003-06-07 Andrew Cagney <cagney@redhat.com>
6019
6020 * inferior.h (deprecated_write_sp): Replace
6021 generic_target_write_sp.
6022 * regcache.c (deprecated_write_sp): Replace
6023 generic_target_write_sp.
6024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6025 * vax-tdep.c (vax_gdbarch_init): Update.
6026 * v850-tdep.c (v850_gdbarch_init): Update.
6027 * sparc-tdep.c (sparc_gdbarch_init): Update.
6028 * sh-tdep.c (sh_gdbarch_init): Update.
6029 * s390-tdep.c (s390_gdbarch_init): Update.
6030 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6031 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6032 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6033 * mcore-tdep.c (mcore_gdbarch_init): Update.
6034 * m68k-tdep.c (m68k_gdbarch_init): Update.
6035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6036 * ia64-tdep.c (ia64_gdbarch_init): Update.
6037 * h8300-tdep.c (h8300_gdbarch_init): Update.
6038 * frv-tdep.c (frv_gdbarch_init): Update.
6039 * cris-tdep.c (cris_gdbarch_init): Update.
6040 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6041
a42e117c
AC
60422003-06-07 Andrew Cagney <cagney@redhat.com>
6043
6044 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6045 Assert that PC_REGNUM is valid.
6046 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6047
bd1ce8ba
AC
60482003-06-07 Andrew Cagney <cagney@redhat.com>
6049
6050 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6051 * gdbarch.h, gdbarch.c: Regenerate.
6052 * mn10300-tdep.c: Include "gdb_assert.h".
6053 (mn10300_read_fp): New function.
6054 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6055 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6056 * ia64-tdep.c: Include "gdb_assert.h".
6057 (ia64_read_fp): New function.
6058 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6059 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6060 * regcache.c (generic_target_read_sp): Delete function.
6061 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6062 * inferior.h (generic_target_read_sp): Delete declaration.
6063 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6064 generic_target_read_sp.
6065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6066 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6067 * sh-tdep.c (sh_gdbarch_init): Ditto.
6068 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6069 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6070
ec5cbaec
AC
60712003-06-07 Andrew Cagney <cagney@redhat.com>
6072
6073 * gdbarch.sh: Comment each field of startup_gdbarch.
6074 * gdbarch.h, gdbarch.c: Re-generate.
6075
cde9ea48
AC
60762003-06-07 Andrew Cagney <cagney@redhat.com>
6077
6078 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6079 * gdbarch.h, gdbarch.c: Re-generate.
6080 * regcache.c: Update comments on read_pc et.al.
6081 (generic_target_read_pc): Delete function.
6082 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6083 * inferior.h (generic_target_read_pc): Delete declaration.
6084 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6085 generic_target_read_pc.
6086 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6087 * sh-tdep.c (sh_gdbarch_init): Ditto.
6088 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6090
9a90a780
AC
60912003-06-07 Andrew Cagney <cagney@redhat.com>
6092
6093 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6094 "index" with "special_local_sect". Use strcmp instead of STREQ.
6095 Append period to coments.
6096
a39a16c4
MM
60972003-06-06 Mark Mitchell <mark@codesourcery.com>
6098
6099 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6100 (elfstab_offset_sections): Likewise.
6101 * gdb-stabs.h (stab_section_info): Likewise.
6102 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6103 * objfiles.c (objfile_relocate): Likewise.
6104 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6105 * remote.c (get_offsets): Likewise.
6106 (remote_cisco_objfile_relocate): Likewise.
6107 * somread.c (som_symfile_offsets): Likewise.
6108 * symfile.c (alloc_section_addr_info): New function.
6109 (build_section_addr_info_from_section_tab): Use it.
6110 (free_section_addr_info): Adjust.
6111 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6112 (syms_from_objfile): Allocate local_addr dynamically.
6113 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6114 dynamically.
6115 (add_symbol_file_command): Allocate sect_opts dynamically.
6116 (reread_symbols): Avoid use of SECT_OFF_MAX.
6117 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6118 (alloc_section_addr_info): Declare it.
6119 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6120 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6121 dynamically.
6122 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6123
20c6c2f8
AC
61242003-06-06 Andrew Cagney <cagney@redhat.com>
6125
6126 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6127 (d10v_frame_unwind_cache): Do not set "return_pc".
6128
884a26c8
MS
61292003-06-06 Michael Snyder <msnyder@redhat.com>
6130
6131 * h8300-tdep.c: Make tidy (long lines).
6132
088ce440
ML
61332003-06-06 Michal Ludvig <mludvig@suse.cz>
6134
8ffd9b1b 6135 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6136 to regcache_collect().
6137
7d773d96
JB
61382003-06-05 J. Brobecker <brobecker@gnat.com>
6139
6140 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6141 pc_in_sigtramp multiarch method.
6142 (hppa_hpux_som_init_abi): Use it.
6143 (hppa_hpux_elf_init_abi): Likewise.
6144 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6145 macro has been multiarched.
6146 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6147 macro here, as hppa64 isn't multiarched yet.
6148
1df6926e
AC
61492003-06-05 Andrew Cagney <cagney@redhat.com>
6150
6151 * Makefile.in (value_h): Add $(frame_h).
6152 * value.h: Include "frame.h".
6153 (struct value): Replace "frame_addr" with "frame_id".
6154 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6155 * values.c (allocate_value): Use VALUE_FRAME_ID.
6156 (value_copy): Use VALUE_FRAME_ID.
6157 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6158 * valops.c (value_assign): Update. Use frame_find_by_id.
6159
6b53acc6
ML
61602003-06-05 Michal Ludvig <mludvig@suse.cz>
6161
6162 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6163 in each pass.
6164
4d9850d3
JJ
61652003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6166
6167 * thread-db.c (check_event): For create/death event breakpoints,
6168 loop through all messages to ensure that we read the message
6169 corresponding to the breakpoint we are at.
6170
8efca6ba
MS
61712003-06-04 Michael Snyder <msnyder@redhat.com>
6172
6173 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6174
0912c7f2
MK
61752003-06-04 Mark Kettenis <kettenis@gnu.org>
6176
6177 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6178 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6179 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6180 when handling .eh_frame sections.
6181
4e370325
JB
61822003-06-04 J. Brobecker <brobecker@gnat.com>
6183
6184 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6185 prepare_to_proceed procedure instead of the hppa-specific one.
6186 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6187
b757528f 61882003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6189
b757528f
JJ
6190 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6191 * config.in: Regenerated.
6192 * configure.in: Add test for syscall function and check for
6193 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6194 * configure: Regenerated.
6195 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6196 <sys/syscall.h>.
6197 (kill_lwp): New function that uses tkill syscall or
6198 uses kill, depending on whether threading model is nptl or not.
6199 All callers of kill() changed to use kill_lwp().
6200 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6201 see if all threads have already exited in the nptl model.
6202 (stop_and_resume_callback): New callback function used by the
6203 lin_lwp_wait thread exit handling code.
6204 (stop_wait_callback): Check for threads already having exited and
6205 delete such threads fromt the lwp list when discovered.
6206 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6207
b757528f
JJ
6208 Roland McGrath <roland@redhat.com>
6209 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6210 nptl libthread_db.
6211
087779b1
RH
62122003-06-03 Richard Henderson <rth@redhat.com>
6213
b21fd293
RH
6214 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6215 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6216 (alpha_sigtramp_frame_prev_register): Likewise.
6217 (alpha_heuristic_frame_prev_register): Likewise.
6218 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6219
8ffd9b1b 6220 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6221 alpha-specific register id names.
6222 (alpha_mdebug_frame_unwind_cache): Likewise.
6223 (alpha_mdebug_frame_prev_register): Likewise.
6224
baa490c4
RH
62252003-06-03 Richard Henderson <rth@redhat.com>
6226
6227 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6228 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6229 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6230 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6231 unwind routines.
6232 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6233 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6234 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6235
6236 * alpha-linux-tdep.c: Remove unnecessary includes.
6237 * Makefile.in (alpha-linux-tdep.o): Update.
6238
62392003-06-03 Richard Henderson <rth@redhat.com>
6240
6241 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6242 (alphabsd_fill_fpreg): Likewise.
6243
f534e522
JB
62442003-06-03 J. Brobecker <brobecker@gnat.com>
6245
6246 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6247 references to struct frame_info fields by calls to the equivalent
6248 accessors. Necessary now that frame_info is opaque.
6249
4035536b
JB
62502003-06-03 J. Brobecker <brobecker@gnat.com>
6251
6252 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6253 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6254 structure, field no longer exists.
6255
0bd79c5c
JB
62562003-06-03 J. Brobecker <brobecker@gnat.com>
6257
6258 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6259 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6260
37bb6d9f
JB
62612003-06-03 J. Brobecker <brobecker@gnat.com>
6262
6263 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6264 references to struct frame_info fields by calls to the equivalent
6265 accessors. Necessary now that frame_info is opaque.
6266
852ee05c
JB
62672003-06-03 J. Brobecker <brobecker@gnat.com>
6268
6269 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6270 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6271 structure, field no longer exists.
6272
7d58c67d
TR
62732003-06-03 Theodore A. Roth <troth@openavr.org>
6274
8ffd9b1b 6275 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6276 accumulation of the size of all registers instead of blindly using
6277 DEPRECATED_REGISTER_BYTES.
6278
0a48e7e8
MS
62792003-06-03 Michael Snyder <msnyder@redhat.com>
6280
6281 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6282 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6283 for h8300sx.
6284
9798ab0d
JB
62852003-06-03 J. Brobecker <brobecker@gnat.com>
6286
6287 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6288 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6289
00b037e2
AC
62902003-06-03 Andrew Cagney <cagney@redhat.com>
6291
6292 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6293 (sparc_convert_to_raw): Delete function.
6294 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6295 register_convert_to_virtual.
6296
043b2f77
JJ
62972003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6298
6299 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6300 layer if not dealing with a statically-linked threaded program.
6301
f43caff8
KW
63022003-06-03 Kris Warkentin <kewarken@qnx.com>
6303
6304 * solib.c (solib_open): Update comment to reflect actual search order.
6305
ae1e7417
AC
63062003-06-03 Andrew Cagney <cagney@redhat.com>
6307
6308 * frame.c (get_frame_memory_signed): New function.
6309 (get_frame_memory, get_frame_memory_unsigned): New function.
6310 (get_frame_arch): New function.
6311 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6312 (get_frame_memory, get_frame_unsigned_memory): Declare.
6313 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6314 get_frame_memory_unsigned and get_frame_arch.
6315 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6316
cb123844
RG
63172003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6318
6319 * MAINTAINERS (write after approval): Add myself.
6320
1bb792e9
JB
63212003-06-03 Jim Blandy <jimb@redhat.com>
6322
6323 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6324 elements of gregset_t are 64 bits each, but access registers
6325 are still 32 bits, so they're packed two per gregset_t
6326 element. Unpack/pack them properly.
6327
aee8d8ba
DC
63282003-06-02 David Carlton <carlton@bactrian.org>
6329
6330 * linespec.c (find_methods): Break out code into
6331 add_matching_methods and add_constructors.
6332 (add_matching_methods): New.
6333 (add_constructors): Ditto.
6334
bf7488d2
AC
63352003-06-02 Andrew Cagney <cagney@redhat.com>
6336
bf7488d2
AC
6337 * sparc-tdep.c (sparc_print_registers): Delete call to
6338 REGISTER_CONVERTIBLE.
6339 (sparc_gdbarch_init): Do not set register_convertible.
6340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6341 * frv-tdep.c (frv_gdbarch_init): Ditto.
6342 * cris-tdep.c (cris_gdbarch_init): Ditto.
6343
adedef68
EZ
63442003-06-02 Elena Zannoni <ezannoni@redhat.com>
6345
8ffd9b1b 6346 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6347 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6348 (syms_from_objfile): Ditto.
6349
650fcc91
AS
63502003-06-03 Andreas Schwab <schwab@suse.de>
6351
6352 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6353 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6354
df4a182b
RH
63552003-06-02 Richard Henderson <rth@redhat.com>
6356
6357 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6358 a member of all_reggroup.
6359
c483c494
RH
63602003-06-02 Richard Henderson <rth@redhat.com>
6361
6362 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6363 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6364 (alpha_lds, alpha_sts): New.
6365 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6366 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6367 restructure and fail for type sizes other than 4 or 8.
6368 (alpha_value_to_register): Similarly.
6369 (alpha_extract_return_value): Use alpha_sts.
6370 (alpha_store_return_value): Use alpha_lds.
6371 (alpha_gdbarch_init): Update hooks.
6372
b38b6be2
RH
63732003-06-02 Richard Henderson <rth@redhat.com>
6374
6375 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6376 regnum identifiers.
6377 (alpha_sigtramp_register_address): Likewise.
6378
98a8e1e5
RH
63792003-06-02 Richard Henderson <rth@redhat.com>
6380
6381 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6382 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6383 * alpha-tdep.h: Declare them.
6384
6385 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6386 Remove zerobuf. Don't error on UNIQUE.
6387 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6388 (ALPHA_REGSET_UNIQUE): Provide default.
6389 (supply_gregset): Use alpha_supply_int_regs.
6390 (fill_gregset): Use alpha_fill_int_regs.
6391 (supply_fpregset): Use alpha_supply_fp_regs.
6392 (fill_fpregset): Use alpha_fill_fp_regs.
6393 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6394 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6395 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6396 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6397 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6398 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6399
67dfac52
RH
64002003-06-02 Richard Henderson <rth@redhat.com>
6401
f75d70cc
RH
6402 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6403
67dfac52
RH
6404 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6405 (alpha_store_return_value): Likewise.
6406
0cf566ec
DC
64072003-06-02 David Carlton <carlton@math.stanford.edu>
6408
6409 * block.c (contained_in): Add 'const' to arguments.
6410 (block_function): Ditto.
6411 * block.h: Update declarations for block_function and
6412 contained_in.
6413
cdef89d0
DC
64142003-06-02 David Carlton <carlton@math.stanford.edu>
6415
6416 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6417 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6418 * p-valprint.c (pascal_val_print): Ditto.
6419 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6420
72667056
RH
64212003-06-02 Richard Henderson <rth@redhat.com>
6422
98a8e1e5
RH
6423 * alpha-tdep.c (alpha_push_dummy_call): Use
6424 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6425
8ffd9b1b 6426 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6427 sign-extension of 32-bit values.
6428 (alpha_store_return_value): Similarly.
0ede8eca 6429
98a8e1e5
RH
6430 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6431 (alpha_extract_return_value): Likewise.
6432 (alpha_store_return_value): Likewise.
7b5e1cb3 6433
98a8e1e5
RH
6434 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6435 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6436
98a8e1e5
RH
6437 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6438 (alpha_extract_struct_value_address): Likewise.
6439 (alpha_store_return_value): Likewise.
6440 (alpha_store_struct_return): Remove.
6441 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6442
98a8e1e5
RH
6443 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6444 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6445 macros where appropriate.
6446 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6447 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6448
98a8e1e5
RH
6449 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6450 for SP, GP; void_func_ptr for PC; non-language-specific types
6451 for all others.
6452 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6453
6dd77b81
RH
64542003-06-02 Richard Henderson <rth@redhat.com>
6455
6456 * top.h (lim_at_start): Declare.
6457 * main.c (captured_main): Set it.
6458 * top.c (lim_at_start): Define.
6459 (command_loop): Use it instead of &environ.
6460 * event-top.c (command_handler): Likewise.
6461
f4dbdb54
JT
64622003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6463
6464 * mipsnbsd-tdep.c: Update copyright years.
6465 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6466
8f285956
RH
64672003-06-01 Richard Henderson <rth@redhat.com>
6468
98a8e1e5
RH
6469 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6470 (alpha-linux-tdep.o): Update dependencies.
6471 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6472 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6473
615967cb
RH
64742003-06-01 Richard Henderson <rth@redhat.com>
6475
98a8e1e5
RH
6476 * alpha-tdep.c (alpha_register_reggroup_p): New.
6477 (alpha_gdbarch_init): Register it.
615967cb 6478
b59661bd
AC
64792003-06-02 Andrew Cagney <cagney@redhat.com>
6480
6481 * dwarfread.c: Eliminate "register"
6482 (decode_die_type): Eliminate assignment within "if".
6483 (struct_type, decode_array_element_type): Ditto.
6484 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6485 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6486 (decode_modified_type, completedieinfo): Ditto.
6487 * block.c: Eliminate "register".
6488 (blockvector_for_pc_sect): Eliminate assignment within "if".
6489 * cp-support.h (struct symbol): Opaque declaration.
6490 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6491
5ef165c2
RH
64922003-06-01 Richard Henderson <rth@redhat.com>
6493
98a8e1e5
RH
6494 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6495 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6496
143985b7
AF
64972003-06-01 Adam Fedor <fedor@gnu.org>
6498
6499 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6500 * gdbarch.[ch]: Regenerate.
6501 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6502 (hppa_gdbarch_init): Set it in the gdbarch vector.
6503 * i386-tdep.c (i386_fetch_pointer_argument): New
6504 (i386_gdbarch_init): Set it into gdbarch.
6505 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6506 (rs6000_gdbarch_init): Set it in gdbarch.
6507 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6508 (sparc_gdbarch_init): Set it in gdbarch.
6509
ae0167b9
AC
65102003-06-01 Andrew Cagney <cagney@redhat.com>
6511
7c0b4a20
AC
6512 * defs.h (extract_address): Delete declaration.
6513 * findvar.c (extract_address): Delete function.
6514 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6515 extract_address with the inline equivalent,
6516 extract_unsigned_integer.
6517 (xstormy16_extract_struct_value_address): Ditto.
6518 (xstormy16_pointer_to_address): Ditto.
6519 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6520 * v850-tdep.c (v850_push_arguments): Ditto.
6521 (v850_extract_return_value): Ditto.
6522 (v850_extract_struct_value_address): Ditto.
6523 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6524 (sparcnbsd_get_longjmp_target_64): Ditto.
6525 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6526 (get_longjmp_target): Ditto.
6527 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6528 (sh64_extract_struct_value_address): Ditto.
6529 (sh_push_arguments): Ditto.
6530 (sh64_push_arguments): Ditto.
6531 * remote-vxsparc.c (vx_read_register): Ditto.
6532 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6533 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6534 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6535 * mipsv4-nat.c (get_longjmp_target): Ditto.
6536 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6537 * mips-nat.c (get_longjmp_target): Ditto.
6538 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6539 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6540 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6541 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6542 * irix5-nat.c (get_longjmp_target): Ditto.
6543 * irix4-nat.c (get_longjmp_target): Ditto.
6544 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6545 (ia64_push_arguments): Ditto.
6546 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6547 * h8300-tdep.c (h8300_push_arguments): Ditto.
6548 (h8300_store_return_value): Ditto.
6549 (h8300_extract_struct_value_address): Ditto.
6550 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6551 (frv_push_arguments): Ditto.
6552 * avr-tdep.c (avr_pointer_to_address): Ditto.
6553 (avr_push_arguments): Ditto.
6554 * arm-tdep.c (arm_push_dummy_call): Ditto.
6555 (arm_get_longjmp_target): Ditto.
6556 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6557 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6558 (alpha_get_longjmp_target): Ditto.
6559
ae0167b9
AC
6560 * solib-irix.c (extract_mips_address): Inline extract_address,
6561 replacing it with extract_signed_integer.
6562 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6563 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6564 (first_link_map_member, open_symbol_file_object): Ditto.
6565 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6566 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6567 (LM_NEXT, LM_NAME): Ditto.
6568
44d88583
RH
65692003-06-01 Richard Henderson <rth@redhat.com>
6570
98a8e1e5
RH
6571 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6572 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6573 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6574 (alpha_cannot_store_register): Likewise.
6575 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6576 * alpha-nat.c (supply_gregset): Likewise.
6577 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6578
310e9b6a
AC
65792003-06-01 Andrew Cagney <cagney@redhat.com>
6580
6581 * infcall.c (call_function_by_hand): Update comment on
6582 DEPRECATED_DUMMY_WRITE_SP.
6583
6584 * mips-tdep.c (mips_gdbarch_init): Do not set
6585 deprecated_dummy_write_sp.
6586 (mips_eabi_push_dummy_call): Set the SP register.
6587 (mips_o64_push_dummy_call): Set the SP register.
6588 (mips_o32_push_dummy_call): Set the SP register.
6589 (mips_n32n64_push_dummy_call): Set the SP register.
6590
5ab84872
RH
65912003-06-01 Richard Henderson <rth@redhat.com>
6592
98a8e1e5
RH
6593 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6594 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6595 (supply_gregset): Likewise.
6596 * alpha-tdep.c (alpha_store_return_value): Likewise.
6597 (alpha_get_longjmp_target): Likewise.
6598 (alpha_register_name): Constify array.
6599 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6600 deprecated_register_size, deprecated_register_bytes,
6601 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6602 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6603 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6604
09cc52fd
RH
66052003-06-01 Richard Henderson <rth@redhat.com>
6606
6607 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6608 from arg_reg_buffer to regcache to avoid double conversion.
6609
c7f16359
MK
66102003-06-01 Mark Kettenis <kettenis@gnu.org>
6611
6612 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6613 SP_REGNUM.
6614 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6615 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6616
7131cb6e
RH
66172003-06-01 Richard Henderson <rth@redhat.com>
6618
98a8e1e5
RH
6619 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6620 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6621
f3e0f90b
RH
66222003-06-01 Richard Henderson <rth@redhat.com>
6623
98a8e1e5
RH
6624 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6625 not overlapping PC_REGNUM.
f3e0f90b 6626
c88e30c0
RH
66272003-06-01 Richard Henderson <rth@redhat.com>
6628
98a8e1e5
RH
6629 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6630 alpha_push_arguments. Don't dump argument register data to
6631 the target stack. Fix float and 128-bit long double semantics.
6632 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6633 (alpha_fix_call_dummy): Remove.
6634 (alpha_call_dummy_words): Remove.
6635 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6636
f1a559ae
RH
66372003-06-01 Richard Henderson <rth@redhat.com>
6638
6639 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6640
5e045346
AC
66412003-06-01 Andrew Cagney <cagney@redhat.com>
6642
95404a3e
AC
6643 * mips-tdep.c (is_mips16_addr): New function.
6644 (make_mips16_addr, unmake_mips16_addr): New functions.
6645 (pc_is_mips16, mips_fetch_instruction): Use.
6646 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6647 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6648 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6649 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6650 TARGET_MIPS.
6651 * config/mips/tm-mips.h: Update copyright.
6652 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6653 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6654 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6655 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6656 (TM_PRINT_INSN_MACH): Delete.
6657 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6658
5e045346
AC
6659 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6660 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6661 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6662 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6663 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6664 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6665 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6666 mips*-*-riscos* and mips*-*-sysv* onto mips.
6667 * config/mips/mips64.mt: New file.
6668 * config/mips/mips.mt: New file.
6669 * config/mips/littlemips.mt: Delete file.
6670 * config/mips/decstation.mt: Delete file.
6671 * config/mips/vr4300el.mt: Delete file.
6672 * config/mips/vr5000el.mt: Delete file.
6673 * config/mips/vr5000.mt: Delete file.
6674 * config/mips/vr4100.mt: Delete file.
6675 * config/mips/vr4xxxel.mt: Delete file.
6676 * config/mips/vr4300.mt: Delete file.
6677 * config/mips/vr4xxx.mt: Delete file.
6678 * config/mips/bigmips.mt: Delete file.
6679 * config/mips/bigmips64.mt: Delete file.
6680 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6681 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6682 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6683 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6684 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6685 "tm-bigmips.h".
6686 * config/mips/tm-irix3.h: Ditto.
6687 * config/mips/tm-mipsv4.h: Ditto.
6688 * config/mips/tm-embed.h: Ditto.
6689 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6690 "tm-bigmips64.h".
6691 * config/mips/tm-vr5000el.h: Delete file.
6692 * config/mips/tm-tx39l.h: Delete file.
6693 * config/mips/tm-vr4300el.h: Delete file.
6694 * config/mips/tm-vr4xxxel.h: Delete file.
6695 * config/mips/tm-vr4300.h: Delete file.
6696 * config/mips/tm-vr4100.h: Delete file.
6697 * config/mips/tm-vr4xxx.h: Delete file.
6698 * config/mips/tm-vr5000.h: Delete file.
6699 * config/mips/tm-embedl64.h: Delete file.
6700 * config/mips/tm-embedl.h: Delete file.
6701 * config/mips/tm-embed64.h: Delete file.
6702 * config/mips/tm-bigmips64.h: Delete file.
6703 * config/mips/tm-bigmips.h: Delete file.
6704
2473a4a9
MK
67052003-06-01 Mark Kettenis <kettenis@gnu.org>
6706
97a5b208
MK
6707 Fix gdb/1216.
6708 * shnbsd-nat.c: Include "sh-tdep.h".
6709
2473a4a9
MK
6710 From Richard Henderson <rth@redhat.com>:
6711 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6712
e0f7ec59
AC
67132003-05-31 Andrew Cagney <cagney@redhat.com>
6714
6715 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6716 forward declaration.
6717 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6718 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6719 (mips_find_saved_regs): Use set_reg_offset.
6720 (mips_frame_init_saved_regs): Delete function.
6721 (mips_pop_frame): Call mips_find_saved_regs instead of
6722 DEPRECATED_FRAME_INIT_SAVED_REGS.
6723
68dcc709
AC
67242003-05-31 Andrew Cagney <cagney@redhat.com>
6725
6726 * mips-tdep.c (mips_gdbarch_init): Do not set
6727 deprecated_max_register_raw_size, register_virtual_size, and
6728 deprecated_max_register_virtual_size.
6729
cfc14b3a
MK
67302003-05-31 Mark Kettenis <kettenis@gnu.org>
6731
6405b0a6
MK
6732 * i386-tdep.c: Include "dwarf2-frame.h".
6733 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6734 * Makefile.in (i386-tdep.o): Update dependencies.
6735
cfc14b3a
MK
6736 * dwarf2-frame.c, dwarf2-frame.h: New files.
6737 * Makefile.in (SFILES): Add dwarf2-frame.c.
6738 (dwarf2_frame_h): Define.
6739 (COMMON_OBS): Add dwarf2-frame.o.
6740 (dwarf2-frame.o): Add dependencies.
6741
6a2751d2
AJ
67422003-05-31 Andreas Jaeger <aj@suse.de>
6743
6744 * x86-64-linux-nat.c: Fix comment.
6745
1c3545ae
MK
67462003-05-31 Mark Kettenis <kettenis@gnu.org>
6747
10f93086
MK
6748 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6749 function signature.
6750
1c3545ae
MK
6751 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6752 have a sigcontext_addr handler.
6753 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6754 sigcontext_addr handler.
6755
e11c53d2
AC
67562003-05-31 Andrew Cagney <cagney@redhat.com>
6757
6758 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6759 (print_fp_register_row): Replace do_fp_register_row.
6760 (mips_print_fp_register): Add "file" and "frame" parameters.
6761 (mips_print_register): Add "file" and "frame" parameters.
6762 (mips_print_registers_info): Replace mips_do_registers_info.
6763 (mips_gdbarch_init): Set print_registers_info instead of
6764 deprecated_do_registers_info.
6765 (mips_read_fp_register_single): Add "frame" parameter.
6766 (mips_read_fp_register_double): Add "frame" parameter.
6767
a3386186
MK
67682003-05-31 Mark Kettenis <kettenis@gnu.org>
6769
70913449
MK
6770 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6771 Fixes a bug where GDB would print the wrong register names for
6772 targets without SSE.
6773
2b5e0749
MK
6774 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6775 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6776 registers.
6777
6778 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6779 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6780 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6781 TDEP->sc_sp_offset.
6782
a3386186
MK
6783 From Michal Ludvig <mludvig@suse.cz>:
6784 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6785 and `sc_num_regs'.
6786 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6787 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6788 I386_ST0_REGNUM): Move here from...
6789 * i386-tdep.c: ... here.
6790 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6791 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6792 registers if possible.
6793 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6794 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6795 Remove variables.
6796 (i386bsd_sc_reg_offset): New variable.
6797 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6798 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6799 TDEP->sc_sp_offset.
6800 (i386fbsd_sc_reg_offset): New variable.
6801 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6802 TDEP->sc_num_regs.
6803 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6804 variables.
6805 (i386fbsd4_sc_reg_offset): New variable.
6806 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6807 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6808 TDEP->sc_sp_offset.
6809 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6810 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6811 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6812 Remove variables.
6813 (i386nbsd_sc_reg_offset): New variable.
6814 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6815 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6816 TDEP->sc_sp_offset.
6817 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6818 Remove variables.
6819 (i386obsd_sc_reg_offset): New variable.
6820 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6821 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6822 TDEP->sc_sp_offset.
6823 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6824 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6825 for frame pointer offset in `struct sigcontext'.
6826
25ab4790
AC
68272003-05-31 Andrew Cagney <cagney@redhat.com>
6828
6829 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6830 architecture methods call_dummy_words, sizeof_call_dummy_words,
6831 push_return_address, store_struct_return, and fix_call_dummy. Set
6832 push_dummy_call instead of deprecated_push_arguments.
6833 (mips_store_struct_return): Delete function.
6834 (mips_fix_call_dummy): Delete function.
6835 (mips_push_return_address): Delete function.
6836 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6837 RA_REGNUM and T9_REGNUM.
6838 (mips_n32n64_push_dummy_call): Ditto for
6839 mips_n32n64_push_arguments.
6840 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6841 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6842
6a65450a
AC
68432003-05-31 Andrew Cagney <cagney@redhat.com>
6844
6845 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6846 "dummy_addr" to "bp_addr".
6847 * infcall.c (call_function_by_hand): Pass "funaddr" to
6848 gdbarch_push_dummy_call.
6849 * gdbarch.h, gdbarch.c: Re-generate.
6850 * i386-tdep.c (i386_push_dummy_call): Update.
6851 * arm-tdep.c (arm_push_dummy_call): Update.
6852 * d10v-tdep.c (d10v_push_dummy_call): Update.
6853
c4f35dd8
MK
68542003-05-31 Mark Kettenis <kettenis@gnu.org>
6855
6856 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6857 variable declarations.
6858 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6859 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6860 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6861 x86_64_init_frame_pc, x86_64_init_frame_pc,
6862 x86_64_function_has_prologue): Remove prototypes.
6863 (X86_64_NUM_GREGS): New define.
6864 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6865 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6866 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6867 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6868 XMM1_REGNUM): Remove defines.
6869 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6870 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6871 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6872 X86_64_XMM1_REGNUM): New defines.
6873 (struct x86_64_register_info): Renamed from `struct
6874 register_info'. Remove `size' member.
6875 (x86_64_register_info_table): Remove variable.
6876 (x86_64_register_info): New variable.
6877 (X86_64_NUM_REGS): New define.
6878 (X86_64_NUM_GREGS): Remove define.
6879 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6880 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6881 Remove variables.
6882 (x86_54_dwarf2_reg_to_regnum): Remove function.
6883 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6884 (x86_64_dwarf_reg_to_regnum): New function.
6885 (x86_64_register_name): Rewrite.
6886 (x86_64_register_raw_size): Remove function.
6887 (x86_64_register_byte_table): Remove variable.
6888 (x86_64_register_byte): Remove function.
6889 (x86_64_register_virtual_type): Remove function.
6890 (x86_64_register_type): New function.
6891 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6892 x86_64_register_convert_to_raw): Remove functions.
6893 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6894 (x86_64_use_struct_convention): Make static. Adjust for renamed
6895 defines.
6896 (x86_64_frame_init_saved_regs): Remove function.
6897 (x86_64_push_arguments): Make static. Change to accept a regcache
6898 as argument.
6899 (x86_64_store_return_value, x86_64_extract_return_value): Make
6900 static. Rewrite based on i386 counterparts.
6901 (x86_64_push_dummy_call): New function.
6902 (X86_64_NUM_SAVED_REGS): New define.
6903 (x86_64_register_number): Remove function.
6904 (x86_64_store_struct_return): Remove function.
6905 (x86_64_frameless_function_invocation,
6906 x86_64_function_has_prologue): Remove functions.
6907 (PROLOG_BUFSIZE): Remove define.
6908 (struct x86_64_frame_cache): New structure.
6909 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6910 x86_64_frame_cache, x86_64_frame_this_id,
6911 x86_64_frame_prev_register, x86_64_frame_p,
6912 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6913 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6914 functions.
6915 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6916 variables.
6917 (x86_64_skip_prologue): Rewrite in terms of
6918 x86_64_analyze_prologue.
6919 (x86_64_frame_base_address): New function.
6920 (x86_64_frame_base): New variable.
6921 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6922 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6923 set deprecated_fp_regnum, deprecated_register_size,
6924 deprecated_register_bytes, register_raw_size, register_byte,
6925 register_virtual_type, register_convertiable,
6926 register_convert_to_virtual, convert_to_raw,
6927 deprecated_get_saved_register, deprecated_target_read_fp,
6928 deprecated_push_arguments, deprecated_push_return_address,
6929 deprecated_pop_frame, deprecated_store_struct_return,
6930 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6931 frameless_function_invocation, deprecated_frame_saved_pc,
6932 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6933 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6934 deprecated_init_frame_pc and virtual_frame_pointer. Call
6935 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6936 and x86_64_frame_p. Call frame_base_set_default to register
6937 x86_64_frame_base.
6938 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6939 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6940 (_initialize_x86_64_tdep): Remove function.
6941 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6942 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6943 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6944 define.
6945 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6946 (x86_64_linux_sigcontext_addr): Rewrite.
6947 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6948 x86_64_linux_frame_saved_pc): Remove functions.
6949 (x86_64_linux_pc_in_sigtramp): Renamed from
6950 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6951 trampoline.
6952 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6953 Remove_functions.
6954 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6955 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6956 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6957 (x86_64_regmap): Rename to regmap.
6958 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6959 x86_64_num_gregs.
6960 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6961 x86_64_regmap.
6962 (x86_64_fxsave_offset): Remove function.
6963 (supply_fpregset): Simply call x86_64_supply_fxsave.
6964 (fill_fpregset): Simply call x86_64_fill_fxsave.
6965 (fetch_inferior_registers, store_inferior_registers): Avoid
6966 asignment in if-statement.
6967 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6968 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6969 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6970 (fetch_core_registers): Remove function.
6971 (linux_elf_core_fns): Remove.
6972 (offsetoff): Don't define.
6973 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6974 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6975 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6976 add core-regset.o.
6977 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6978 protection against multiple includes instead of NM_X86_64_h. Add
6979 various comments. Include "config/nm-linux.h". Don't include
6980 <signal.h>.
6981 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6982 GET_THREAD_SIGNALS): Remove defines.
6983 (x86_64_register_u_addr, kernel_u_size,
6984 lin_thread_get_thread_signals): Remove prototypes.
6985 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6986 [HAVE_LINK_H]: Don't include "solib.h".
6987 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6988 * config/i386/tm-x86-64linux.h: Fix comments.
6989 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6990 x86-64-tdep.o): Update dependencies.
6991
c25083af
AC
69922003-05-30 Andrew Cagney <cagney@redhat.com>
6993
c8f55a7b
AC
6994 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6995 Change parameter type to a "struct regcache *".
6996
c25083af
AC
6997 * gdbarch.sh: Regardless of the multi-arch level, always define
6998 the macro when not already defined.
6999 * gdbarch.h, gdbarch.c: Re-generate.
7000
fbe586ae
RH
70012003-05-30 Richard Henderson <rth@redhat.com>
7002
7003 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7004 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7005 (alpha_mdebug_frame_this_id): Likewise.
7006 (alpha_mdebug_frame_prev_register): Likewise.
7007 (alpha_mdebug_frame_base_address): Likewise.
7008 (alpha_mdebug_frame_locals_address): Likewise.
7009 (alpha_mdebug_frame_args_address): Likewise.
7010 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7011 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7012 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7013 loop increment.
7014 (alpha_heuristic_frame_this_id): Make static.
7015 (alpha_heuristic_frame_prev_register): Likewise.
7016 (alpha_heuristic_frame_base_address): Likewise.
7017 * alpha-tdep.h: Update.
7018
acd5c798
MK
70192003-05-30 Mark Kettenis <kettenis@gnu.org>
7020
7021 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7022 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7023 defenitions.
7024 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7025 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7026 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7027 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7028 I386_ST0_REGNUM): New defines.
7029 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7030 codestream_get): Remove define.
7031 (codestream_next_addr, condestream_addr, condestream_buf,
7032 codestream_off, codestream_cnt): Remove variables.
7033 (codestream_fill, codestream_seek, codestream_read): Remove
7034 functions.
7035 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7036 functionality.
7037 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7038 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7039 i386_frame_saved_pc, i386_saved_pc_after_call,
7040 i386_frame_num_args, i386_frame_init_saved_regs,
7041 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7042 i386_push_arguments): Remove functions.
7043 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7044 functionality. Use i386_analyze_prologue instead of
7045 i386_get_frame_setup.
7046 (I386_NUM_SAVED_REGS): New define.
7047 (struct i386_frame_cache): New structure.
7048 (i386_alloc_frame_cache, i386_analyze_struct_return,
7049 i386_skip_probe, i386_analyze_frame_setup,
7050 i386_analyze_register_saves, i386_analyze_prologue,
7051 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7052 i386_frame_prev_register, i386_sigtramp_frame_cache,
7053 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7054 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7055 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7056 New functions.
7057 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7058 New variables.
7059 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7060 I386_EAX_REGNUM and I386_EDX_REGNUM.
7061 (i386_extract_return_value, i386_store_return_value): Use
7062 I386_ST0_REGNUM where appropriate.
7063 (i386_extract_struct_value_address): Rewrite to use extract_address.
7064 (i386_svr4_pc_in_sigtramp): Add comment.
7065 (i386_svr4_sigcontext_addr): Rewrite.
7066 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7067 TDEP->sc_sp_offset.
7068 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7069 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7070 of new defines. Set push_dummy_call, don't set
7071 deprecated_push_arguments, deprecated_push_return_address,
7072 deprecated_pop_frame. Don't set parm_boundary. Don't set
7073 deprecated_frame_chain, deprecated_frame_saved_pc,
7074 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7075 save_dummy_frame_tos, unwind_pc. Call
7076 frame_unwind_append_predicate and frame_base_set_default. Don't
7077 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7078 Don't set frameless_function_invocation. Don't set
7079 deprecated_register_bytes, deprecated_register_size,
7080 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7081 * i386-linux-tdep.c: Fix formatting in some comments.
7082 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7083 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7084 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7085 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7086 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7087 redundant parentheses.
7088 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7089 (i386_linux_sigcontext_addr): Use it. Rewrite.
7090 (find_minsym_and_objfile): Change name of second argument.
7091 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7092 changed. Use frame_pc_unwind instead of
7093 DEPRECATED_SAVED_PC_AFTER_CALL.
7094 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7095 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7096 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7097 unwinder.
7098 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7099 "dummy-frame.h".
7100 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7101 (_initialize_i386_cygwin_tdep): New prototype.
7102 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7103 deprecated_frame_chain_valid.
7104 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7105 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7106 Rely on the SVR4 defaults.
7107 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7108 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7109
c89b70f1
AC
71102003-05-30 Andrew Cagney <cagney@redhat.com>
7111
7112 * infcall.c (call_function_by_hand): Always call
7113 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7114
85b32d22
RH
71152003-05-30 Richard Henderson <rth@redhat.com>
7116
c89b70f1
AC
7117 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7118 increment.
85b32d22 7119
bfe51b1e
JB
71202003-05-29 Jim Blandy <jimb@redhat.com>
7121
7122 Use gdbarch methods for solib stuff on PowerPC Linux.
7123 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7124 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7125 show through.
7126 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7127 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7128 giving the same effect as the #definitions above.
7129
1abf022c
AF
71302003-05-29 Adam Fedor <fedor@gnu.org>
7131
7132 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7133 (find_implementation_from_class): Replace it with the standard
7134 case i.e. do nothing.
7135
d2427a71
RH
71362003-05-29 Richard Henderson <rth@redhat.com>
7137
7138 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7139 (alpha_linux_sigtramp_offset): Use it. Make static.
7140 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7141 update for new frame model.
7142 * alpha-mdebug-tdep.c: New file.
7143 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7144 (alpha_osf1_init_abi): Install it.
7145 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7146 (linked_proc_desc_table): Remove.
7147 (alpha_frame_past_sigtramp_frame): Remove.
7148 (alpha_dynamic_sigtramp_offset): Remove.
7149 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7150 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7151 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7152 (push_sigtramp_desc): Remove.
7153 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7154 (alpha_cannot_store_register): Likewise.
7155 (alpha_sigcontext_addr): Remove.
7156 (alpha_find_saved_regs): Remove.
7157 (alpha_frame_init_saved_regs): Remove.
7158 (alpha_init_frame_pc_first): Remove.
7159 (read_next_frame_reg): Remove.
7160 (alpha_frame_saved_pc): Remove.
7161 (alpha_saved_pc_after_call): Remove.
7162 (temp_proc_desc, temp_saved_regs): Remove.
7163 (alpha_about_to_return): Remove.
7164 (cached_proc_desc): Remove.
7165 (alpha_frame_chain): Remove.
7166 (alpha_print_extra_frame_info): Remove.
7167 (alpha_init_extra_frame_info): Remove.
7168 (alpha_frame_locals_address): Remove.
7169 (alpha_frame_args_address): Remove.
7170 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7171 (alpha_push_dummy_frame): Remove.
7172 (alpha_pop_frame): Remove.
7173 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7174 (alpha_read_insn): New.
7175 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7176 for different insn encodings.
7177 (alpha_in_lenient_prologue): Remove.
7178 (struct alpha_sigtramp_unwind_cache): New.
7179 (alpha_sigtramp_frame_unwind_cache): New.
7180 (alpha_sigtramp_register_address): New.
7181 (alpha_sigtramp_frame_this_id): New.
7182 (alpha_sigtramp_frame_prev_register): New.
7183 (alpha_sigtramp_frame_unwind): New.
7184 (alpha_sigtramp_frame_p): New.
7185 (struct alpha_heuristic_unwind_cache): New.
7186 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7187 don't count nop insns that occur between functions.
7188 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7189 heuristic_proc_desc, but without the mdebug wrapping.
7190 (alpha_heuristic_frame_this_id): New.
7191 (alpha_heuristic_frame_prev_register): New.
7192 (alpha_heuristic_frame_unwind): New.
7193 (alpha_heuristic_frame_p): New.
7194 (alpha_heuristic_frame_base_address): New.
7195 (alpha_heuristic_frame_base): New.
7196 (alpha_unwind_dummy_id): New.
7197 (alpha_unwind_pc): New.
7198 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7199 frame related deprecated initializations; install replacements.
7200 (alpha_dump_tdep): Remove.
7201 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7202 (alpha_read_insn, alpha_after_prologue,
7203 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7204 alpha_heuristic_frame_prev_register,
7205 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7206 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7207 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7208 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7209
93ec1121
AC
72102003-05-29 Andrew Cagney <cagney@redhat.com>
7211
7212 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7213 dependant on the availability of ASSERT_FUNCTION.
7214 (ASSERT_FUNCTION): Do not define when there is no function name.
7215
98f08d3d
KB
72162003-05-29 Kevin Buettner <kevinb@redhat.com>
7217
7218 From Jimi X <jimix@watson.ibm.com>:
7219 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7220
0897f59b
JB
72212003-05-28 Jim Blandy <jimb@redhat.com>
7222
7223 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7224 argument to ptrace to int; the system headers should give it the
7225 right type, and pointers don't fit in ints on powerpc64-*-*.
7226
14898363
L
72272003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7228
7229 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7230 DW_TAG_catch_block.
7231
a7a48797
EZ
72322003-05-26 Elena Zannoni <ezannoni@redhat.com>
7233
7234 * stabsread.c (dbx_lookup_type): Make static.
7235 (read_type): Ditto.
7236 (add_undefined_type): Ditto.
7237 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7238 not export.
7239
f5479e9c
EZ
72402003-05-26 Elena Zannoni <ezannoni@redhat.com>
7241
7242 * hpread.c (hpread_has_name): Make static.
7243 (hpread_psymtab_to_symtab): Ditto.
7244 (file_exists): Ditto.
7245 (hpread_call_pxdb): Ditto.
7246 (hpread_pxdb_needed): Ditto.
7247 (hpread_quick_traverse): Ditto.
7248 (hpread_get_header): Ditto.
7249 (hpread_get_lntt): Ditto.
7250 (hpread_get_slt): Ditto.
7251 (class_of): Ditto.
7252
eb2e12d7
AS
72532003-05-25 Andreas Schwab <schwab@suse.de>
7254
78bf922a
AS
7255 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7256 stack_align and deprecated_extra_stack_alignment_needed.
7257 (m68k_stack_align): Delete.
7258
eb2e12d7
AS
7259 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7260 (m68k_register_virtual_size): Likewise.
7261 (altos_skip_prologue): Remove obsolete function.
7262 (isi_frame_num_args): Likewise.
7263 (news_frame_num_args): Likewise.
7264 (m68k_fix_call_dummy): Make static.
7265 (m68k_push_dummy_frame): Likewise.
7266 (m68k_pop_frame): Likewise.
7267 (m68k_skip_prologue): Likewise.
7268 (m68k_frame_init_saved_regs): Likewise.
7269 (m68k_saved_pc_after_call): Likewise.
7270 (m68k_get_longjmp_target): Make multi-arch.
7271 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7272 structure. Register m68k_get_longjmp_target if enabled.
7273 * m68k-tdep.h (struct gdbarch_tdep): Define.
7274 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7275
7276 * Makefile.in (config.status): Also depend on configure.tgt
7277 and configure.host.
7278 (m68klinux-tdep.o): Update dependencies.
7279 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7280 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7281 (M68K_LINUX_JB_PC): Define.
7282 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7283 and take additional parameter.
7284 (m68k_linux_sigtramp_saved_pc): Update.
7285 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7286 m68k_linux_pc_in_sigtramp, in_plt_section,
7287 find_solib_trampoline_target.
7288 * config/m68k/tm-linux.h: Don't include any tm headers.
7289 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7290 (JB_ELEMENT_SIZE): Likewise.
7291 (JB_PC): Likewise.
7292 (GET_LONGJMP_TARGET): Likewise.
7293 (IN_SIGTRAMP): Likewise.
7294 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7295
eb2c22dc
MK
72962003-05-25 Mark Kettenis <kettenis@gnu.org>
7297
7298 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7299 (sparc32_push_arguments): Re-implement by calling
7300 sparc32_do_push_arguments.
7301
44b7b84e
MK
73022003-05-25 Mark Kettenis <kettenis@gnu.org>
7303
7304 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7305 SPARC_O1_REGNUM): New defines.
7306 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7307 (sparc32_store_return_value): New function.
7308 (sparc_extract_struct_value_address): Rewrite to operate on a
7309 regcache.
7310 (sparc_gdbarch_init): Don't set
7311 deprecated_extract_struct_value_address. Set
7312 extract_struct_value_address instead. Don't set
7313 deprecated_extract_return_value and deprecated_store_return_value
7314 for 32-bit targets. Set extract_return_value and
7315 store_return_value instead.
7316 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7317 DEPRECTAED_EXTRACT_RETURN_VALUE,
7318 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7319 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7320 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7321 (sparc_store_return_value): Remove prototype.
7322 (sparc32_store_return_value): New prototype.
7323 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7324 Adjust prototypes.
7325
f6ad61e3
MK
73262003-05-24 Mark Kettenis <kettenis@gnu.org>
7327
7328 * sparcnbsd-tdep.c: Include "gdb_string.h".
7329
b276f1bb
AC
73302003-05-23 Andrew Cagney <cagney@redhat.com>
7331
7332 * p-valprint.c (pascal_val_print): Replace extract_address with
7333 the inline equivalent extract_unsigned_integer.
7334 * jv-valprint.c (java_value_print): Ditto.
7335 * ada-valprint.c (ada_val_print_1): Ditto.
7336 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7337
e76c5fcc
TR
73382003-05-23 Theodore A. Roth <troth@openavr.org>
7339
7340 * blockframe.c (frameless_look_for_prologue): Remove unused
7341 after_prologue variable.
7342
2cdd89cb
MK
73432003-05-23 Mark Kettenis <kettenis@gnu.org>
7344
7345 * blockframe.c (get_pc_function_start): Rewrite to avoid
7346 asignments in if-statements.
7347
182d43bc
EZ
73482003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7349
7350 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7351 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7352 files, don't relocate absolute symbols (and do use mst_abs).
7353
e8f3fcdd
AC
73542003-05-23 Andrew Cagney <cagney@redhat.com>
7355
7356 * objc-lang.c: Include "gdb_assert.h".
7357 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7358 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7359 (gdb_check, gdb_check_fatal): Delete functions.
7360 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7361 gdb_assert.
7362 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7363 * Makefile.in (objc-lang.o): Update dependencies.
7364
3c23e6fb
ILT
73652003-05-22 Ian Lance Taylor <ian@airs.com>
7366
7367 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7368 with fprintf_filtered, not fprintf_unfiltered.
7369
af1342ab
AC
73702003-05-22 Andrew Cagney <cagney@redhat.com>
7371
7372 * stack.c (frame_info): Inline extract_address, replacing it with
7373 extract_unsigned_integer.
7374 * findvar.c (unsigned_pointer_to_address): Ditto.
7375 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7376 * dwarf2expr.c (dwarf2_read_address): Ditto.
7377 * frame.c (frame_pc_unwind): Update comment.
7378 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7379
47e242ec
JJ
73802003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7381
7382 * infptrace.c (detach): Call print_sys_errmsg rather than
7383 perror_with_name to issue warning message when errno is non-zero
7384 after calling ptrace detach.
7385
e2ac8128
JB
73862003-05-21 J. Brobecker <brobecker@gnat.com>
7387
7388 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7389 macro definitions from here...
7390 * hppa-tdep.c: ...to there.
7391
92b3541e
KB
73922003-05-20 Kevin Buettner <kevinb@redhat.com>
7393
7394 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7395 register_ptrace_addr(). Fix all callers.
7396
55809acb
AS
73972003-05-21 Andreas Schwab <schwab@suse.de>
7398
7399 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7400 dependencies.
7401 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7402 end.
7403 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7404 (_initialize_m68k_linux_tdep): New function.
7405 (m68k_linux_frame_saved_pc): Make static.
7406 (m68k_linux_extract_return_value): Likewise.
7407 (m68k_linux_store_return_value): Likewise.
7408 (m68k_linux_extract_struct_value_address): Likewise.
7409 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7410 Remove.
7411 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7412 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7413 (DEPRECATED_FRAME_SAVED_PC): Remove.
7414
0fbc10f7
KW
74152003-05-20 Kris Warkentin <kewarken@qnx.com>
7416
7417 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7418 regset numbering rather than our own.
7419
58da2eb2
DC
74202003-05-19 David Carlton <carlton@bactrian.org>
7421
7422 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7423
1fcb5155
DC
74242003-05-19 David Carlton <carlton@bactrian.org>
7425
7426 Partial fix for PR c++/827.
7427 * cp-support.h: Include symtab.h.
7428 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7429 * cp-namespace.c: Update contributors.
7430 (cp_lookup_symbol_nonlocal): New.
7431 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7432 (lookup_symbol_file): Ditto.
7433 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7434 * block.h: Declare block_scope, block_using, block_global_block.
7435 * block.c (block_scope): New.
7436 (block_using, block_global_block): Ditto.
7437 * Makefile.in (cp_support_h): Depend on symtab_h.
7438 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7439
5f9a71c3
DC
74402003-05-19 David Carlton <carlton@bactrian.org>
7441
7442 * language.h (struct language_defn): Add 'la_value_of_this'
7443 and 'la_lookup_symbol_nonlocal' members.
7444 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7445 lookup_symbol_static, lookup_symbol_global,
7446 lookup_symbol_aux_block.
7447 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7448 if we should search fields of this and how to do static/global
7449 lookup.
7450 (lookup_symbol_aux_block): Make extern.
7451 (basic_lookup_symbol_nonlocal): New.
7452 (lookup_symbol_static, lookup_symbol_global): Ditto.
7453 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7454 'la_lookup_symbol_nonlocal' members.
7455 * c-lang.c (c_language_defn, cplus_language_defn)
7456 (asm_language_defn, minimal_language_defn): Ditto.
7457 * jv-lang.c (java_language_defn): Ditto.
7458 * language.c (unknown_language_defn, auto_language_defn)
7459 (local_language_defn): Ditto.
7460 * m2-lang.c (m2_language_defn): Ditto.
7461 * objc-lang.c (objc_language_defn): Ditto.
7462 * scm-lang.c (scm_language_defn): Ditto.
7463 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7464 * p-lang.c (pascal_language_defn): Ditto for both.
7465 * Makefile.in (f-lang.o): Depend on value_h.
7466 (p-lang.o): Ditto.
7467
89a9d1b1
DC
74682003-05-19 David Carlton <carlton@bactrian.org>
7469
7470 * block.h: Declare block_static_block.
7471 * block.c (block_static_block): New.
7472 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7473 lookup_symbol_aux_local, calling block_static_block instead.
7474 (lookup_symbol_aux_local): Delete 'static_block' argument.
7475
eed3f8ab
DC
74762003-05-19 David Carlton <carlton@bactrian.org>
7477
7478 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7479
a09d8bda
ML
74802003-05-19 Michal Ludvig <mludvig@suse.cz>
7481
7482 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7483 register numbers mapping.
7484
69636828
AF
74852003-05-18 Adam Fedor <fedor@gnu.org>
7486
7487 * symtab.c (completion_list_objc_symbol): New function.
7488 (make_symbol_completion_list): Use it to add ObjC symbols
7489 when looking though the list.
7490 (language_search_unquoted_string): New function.
7491 (make_file_symbol_completion_list): Use it.
7492
55baeb84
AS
74932003-05-18 Andreas Schwab <schwab@suse.de>
7494
d0b45d99
AS
7495 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7496 dependencies.
7497 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7498 as m68k_linux_extract_return_value.
7499 (DEPRECATED_STORE_RETURN_VALUE): Define as
7500 m68k_linux_store_return_value.
7501 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7502 m68k_linux_extract_struct_value_address.
7503 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7504 get_next_frame, get_frame_base, get_frame_pc.
7505 (m68k_linux_frame_saved_pc): Use get_frame_base.
7506 (m68k_linux_extract_return_value): New function.
7507 (m68k_linux_store_return_value): New function.
7508 (m68k_linux_extract_struct_value_address): New function.
7509 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7510
55baeb84
AS
7511 * c-exp.y (typebase): Remove duplicate occurence of
7512 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7513 of lookup_signed_typename.
55baeb84 7514
b6b08ebf
MK
75152003-05-18 Mark Kettenis <kettenis@gnu.org>
7516
7517 * dwarf2loc.c (find_location_expression): Change type of second
7518 argument to `size_t *'.
7519 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7520 for size variable.
7521
5ad1c190
DC
75222003-05-18 David Carlton <carlton@bactrian.org>
7523
7524 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7525 'linkage_name'. Add comment.
7526 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7527 'linkage_name'.
7528 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7529 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7530 (lookup_block_symbol): Ditto.
7531
b8b527c5
AC
75322003-05-16 Andrew Cagney <cagney@redhat.com>
7533
7534 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7535 * gdbarch.h, gdbarch.c: Re-generate.
7536 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7537 * TODO (REGISTER_BYTES): Delete reference.
7538 * alpha-tdep.c (alpha_gdbarch_init): Update.
7539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7540 * x86-64-tdep.c (x86_64_init_abi): Update.
7541 * vax-tdep.c (vax_gdbarch_init): Update.
7542 * v850-tdep.c (v850_gdbarch_init): Update.
7543 * sparc-tdep.c (sparc_gdbarch_init): Update.
7544 * sh-tdep.c (sh_gdbarch_init): Update.
7545 * s390-tdep.c (s390_gdbarch_init): Update.
7546 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7547 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7548 (ns32k_gdbarch_init_32382): Update.
7549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7550 * mcore-tdep.c (mcore_gdbarch_init): Update.
7551 * m68k-tdep.c (m68k_gdbarch_init): Update.
7552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7553 * ia64-tdep.c (ia64_gdbarch_init): Update.
7554 * i386-tdep.c (i386_gdbarch_init): Update.
7555 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7556 * hppa-tdep.c (hppa_gdbarch_init): Update.
7557 * h8300-tdep.c (h8300_gdbarch_init): Update.
7558 * frv-tdep.c (frv_gdbarch_init): Update.
7559 * cris-tdep.c (cris_gdbarch_init): Update.
7560 * avr-tdep.c (avr_gdbarch_init): Update.
7561 * arm-tdep.c (arm_gdbarch_init): Update.
7562 * sparc-tdep.c (sparc_pop_frame): Update.
7563 * rs6000-tdep.c (rs6000_pop_frame): Update.
7564 * remote.c (init_remote_state): Update.
7565 (remote_prepare_to_store): Update.
7566 * remote-vx.c (vx_prepare_to_store): Update.
7567 * remote-sds.c (sds_fetch_registers): Update.
7568 (sds_prepare_to_store): Update.
7569 * remote-array.c: Update.
7570 * regcache.c (init_legacy_regcache_descr): Update.
7571 (init_regcache_descr): Update.
7572 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7573 (mips_o64_extract_return_value): Update.
7574 * irix5-nat.c (fetch_core_registers): Update.
7575 * irix4-nat.c (fetch_core_registers): Update.
7576 * i386-tdep.h: Update.
7577 * hppa-tdep.c (pa_do_registers_info): Update.
7578 (pa_do_strcat_registers_info): Update.
7579 * cris-tdep.c (cris_register_bytes_ok): Update.
7580 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7581 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7582 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7583 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7584 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7585 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7586 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7587 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7588 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7589 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7590 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7591 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7592 (REGISTER_BYTES_OK): Update.
7593 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7594 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7595
ee2842e2
ILT
75962003-05-16 Ian Lance Taylor <ian@airs.com>
7597
7598 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7599 (vax_print_insn, print_insn_arg): Remove static functions.
7600 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7601 print_insn_vax from opcodes library.
7602 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7603
973177d3
AC
76042003-05-15 Andrew Cagney <cagney@redhat.com>
7605
aaab4dba
AC
7606 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7607 * target.h (memory_breakpoint_from_pc): Delete declaration.
7608 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7609 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7610 * monitor.c (monitor_insert_breakpoint): Use
7611 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7612 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7613 * gdbarch.h, gdbarch.c: Re-generate.
7614 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7615 (sparc_gdbarch_init): Set breakpoint_from_pc to
7616 sparc_breakpoint_from_pc.
7617 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7618 (BREAKPOINT_FROM_PC): Define.
7619 (sparc_breakpoint_from_pc): Declare.
7620 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7621 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7622 (BREAKPOINT_FROM_PC): Define.
7623 (BREAKPOINT): Delete macro.
7624 * target.h: Update comment.
7625 * s390-tdep.c (s390_gdbarch_init): Update comments.
7626 * remote.c: Update comments.
7627 * remote-mips.c: Update comments.
7628 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7629 * mem-break.c: Update comment.
7630 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7631 (ia64_memory_insert_breakpoint): Update.
7632 * config/sparc/tm-sparc.h: Update comment.
7633 * config/pa/tm-hppa64.h: Update comment.
7634 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7635 (rs6000_breakpoint_from_pc): Update.
7636 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7637 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7638 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7639 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7640 (mips_breakpoint_from_pc): Update.
7641 (mips_dump_tdep): Update.
7642
e06963ff
AC
7643 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7644 * minsyms.c (lookup_minimal_symbol): Inline
7645 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7646
973177d3
AC
7647 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7648 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7649 * p-lang.c (pascal_printstr): Ditto.
7650 * objc-lang.c (objc_printstr): Ditto.
7651 * m2-lang.c (m2_printstr): Ditto.
7652 * jv-valprint.c (java_print_value_fields): Ditto.
7653 * f-lang.c (f_printstr): Ditto.
7654 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7655 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7656 for repeat_count_threshold.
7657 * Makefile.in (cp-valprint.o): Update dependencies.
7658
5ea2bd7f 76592003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7660
5ea2bd7f
JJ
7661 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7662 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7663 they start with mov r2,r12. Support skipping over indirect stores
7664 of the input registers. Upon hitting a non-nop branch instruction
7665 or predicated instruction, bail out by setting lim_pc to the current
7666 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7667 beyond our calculated value and we have trust_limit set,
7668 use the lim_pc value.
7669
cc8c88f3
AC
76702003-05-15 Andrew Cagney <cagney@redhat.com>
7671
7672 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7673 generic_find_dummy_frame.
7674 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7675 (deprecated_generic_find_dummy_frame): Update.
7676 (deprecated_read_register_dummy): Update.
7677 * frame.c (deprecated_generic_get_saved_register): Update.
7678
909cd28e
TR
76792003-05-15 Theodore A. Roth <troth@openavr.org>
7680
7681 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7682 (avr_gdbarch_init): Set breakpoint_from_pc method.
7683
b923b08d
AC
76842003-05-15 Andrew Cagney <cagney@redhat.com>
7685
7686 * regcache.c (build_regcache): Set deprecated_register_valid
7687 directly.
7688 (deprecated_grub_regcache_for_register_valid): Delete function.
7689 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7690 declaration.
7691
ae2f03ac 76922003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7693
7694 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7695 * symtab.c (lookup_symbol_aux): Delete calls to
7696 lookup_symbol_aux_minsyms.
7697 (lookup_symbol_aux_minsyms): Comment out function and
7698 prototype. Delete lookup by mangled name.
ae2f03ac 7699
18ec9831
KB
77002003-05-14 Kevin Buettner <kevinb@redhat.com>
7701
7702 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7703 correctly indicate an empty stack and ``stack_allocated'' to the
7704 indicate the number of elements initially allocated.
7705 (dwarf_expr_grow_stack): Simplify method for computing new
7706 stack size. Don't loop infinitely if ``stack_len'' is zero.
7707 (execute_stack_op): Move ``ctx->in_reg'' initialization
7708 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7709 be used in conjuction with DW_OP_piece. Revise error message
7710 accordingly.
7711
de18ac1f
TR
77122003-05-14 Theodore A. Roth <troth@openavr.org>
7713
7714 * MAINTAINERS: Update my email address.
7715 * avr-tdep.c: Ditto.
7716
176620f1
EZ
77172003-05-14 Elena Zannoni <ezannoni@redhat.com>
7718
7719 * symtab.h (enum domain_enum): Rename from namespace_enum.
7720 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7721 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7722 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7723 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7724 TYPES_NAMESPACE, METHODS_NAMESPACE.
7725 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7726 (struct symbol, struct partial_symbol): Rename field
7727 'namespace_enum namespace' to 'domain_enum domain'.
7728 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7729 Delete old define kludge for namespace.
7730
7731 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7732 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7733 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7734 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7735 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7736 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7737 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7738 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7739 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7740 occurrences of the above.
7741
b7f31508
ILT
77422003-05-14 Ian Lance Taylor <ian@airs.com>
7743
7744 * Makefile.in (install-only): Use $(SHELL) when running
7745 mkinstalldirs.
7746
2fdbdd39
ILT
77472003-05-13 Ian Lance Taylor <ian@airs.com>
7748
a208d82c
ILT
7749 * MAINTAINERS (write after approval): Add myself.
7750
2fdbdd39
ILT
7751 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7752 second and third arguments.
7753 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7754 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7755
fbd9dcd3
AC
77562003-05-13 Andrew Cagney <cagney@redhat.com>
7757
7758 * defs.h (store_address): Delete declaration.
7759 findvar.c (store_address): Delete function.
7760 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7761 store_unsigned_integer.
7762 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7763 * v850-tdep.c (v850_push_arguments): Ditto.
7764 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7765 * sh-tdep.c (sh64_get_saved_register): Ditto.
7766 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7767 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7768 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7769 (mips_get_saved_register): Ditto.
7770 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7771 (find_func_descr, ia64_push_arguments): Ditto.
7772 * i386-tdep.c (i386_push_arguments): Ditto.
7773 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7774 * frv-tdep.c (frv_push_arguments): Ditto.
7775 * frame.c (legacy_saved_regs_prev_register): Ditto.
7776 (deprecated_generic_get_saved_register): Ditto.
7777 * findvar.c (unsigned_address_to_pointer): Ditto.
7778 * dwarf2read.c (dwarf2_const_value): Ditto.
7779 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7780 * alpha-tdep.c (alpha_push_arguments): Ditto.
7781
6760f9e6
JB
77822003-05-12 J. Brobecker <brobecker@gnat.com>
7783
7784 * NEWS: Mention that the hppa-hpux port has been partially
7785 multiarched (32bit ABIT only, so far).
7786
30e221b4
AC
77872003-05-11 Andrew Cagney <cagney@redhat.com>
7788
7789 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7790 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7791 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7792 sim/testsuite/sim/arm/misaligned2.ms, and
7793 sim/testsuite/sim/arm/misaligned3.ms.
7794 * disasm.h (struct ui_file): Add opaque struct declaration.
7795 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7796 * frame.h (struct ui_file): Ditto.
7797
dea7f9ba
MK
77982003-05-11 Mark Kettenis <kettenis@gnu.org>
7799
7800 * value.h: Pretty print.
7801
01986c48
MK
78022003-05-10 Mark Kettenis <kettenis@gnu.org>
7803
7804 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7805
123a958e
AC
78062003-05-08 Andrew Cagney <cagney@redhat.com>
7807
7808 * regcache.h (max_register_size): Delete declaration.
7809 * regcache.c (max_register_size): Delete function.
7810 (struct regcache_descr): Delete field "max_register_size".
7811 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7812 registers fit in MAX_REGISTER_SIZE.
7813 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7814 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7815 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7816 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7817 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7818 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7819 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7820 * dve3900-rom.c, hppa-tdep.c: Ditto.
7821
eb294659
DC
78222003-05-08 David Carlton <carlton@math.stanford.edu>
7823
7824 * valops.c (push_word): Fix typo.
7825
d9d9c31f
AC
78262003-05-08 Andrew Cagney <cagney@redhat.com>
7827
7828 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7829 * gdbarch.h: Re-generate.
7830 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7831 (legacy_max_register_raw_size): Delete declaration.
7832 * regcache.c (legacy_max_register_raw_size): Delete function.
7833 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7834 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7835 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7836 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7837 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7838 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7839 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7840 * findvar.c, dwarf2cfi.c: Ditto.
7841
22540ece
AC
78422003-05-08 Andrew Cagney <cagney@redhat.com>
7843
7844 * mips-tdep.c (read_signed_register): New function, moved to here
7845 from "regcache.c".
7846 (read_signed_register_pid): Ditto.
7847 * regcache.c (read_signed_register_pid): Delete function, moved to
7848 "mips-tdep.c".
7849 (read_signed_register): Ditto.
7850 * regcache.h (read_signed_register): Delete declaration.
7851 (read_signed_register_pid): Delete declaration.
7852
0c92afe8
AC
78532003-05-08 Andrew Cagney <cagney@redhat.com>
7854
7855 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7856 * gdbarch.h: Re-generate.
7857 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7858 (legacy_max_register_virtual_size): Delete declaration.
7859 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7860 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7861 * tracepoint.c (memrange_sortmerge): Ditto.
7862 * sparc-tdep.c (sparc_print_registers): Ditto.
7863 * regcache.c (legacy_max_register_virtual_size): Delete function.
7864
6037b830
JB
78652002-05-08 J. Brobecker <brobecker@gnat.com>
7866
7867 * fork-child.c (escape_bang_in_quoted_argument): New function.
7868 (fork_inferior): Escape '!' characters in quoted arguments
7869 only when needed.
7870
5d62c8b1
JB
78712003-05-08 J. Brobecker <brobecker@gnat.com>
7872
7873 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7874 the language of the CU is not currently supported by GDB.
7875
20a0e81d
JB
78762003-05-08 J. Brobecker <brobecker@gnat.com>
7877
7878 * defs.h (language): Add language_minimal enum value.
7879 * c-lang.c (minimal_language_defn): New language definition.
7880 (_initialize_c_language): Add the new minimal language to the list
7881 of languages known to GDB.
7882
710ee10a
KB
78832003-05-08 Kevin Buettner <kevinb@redhat.com>
7884
7885 * frame.c (get_frame_type): Don't attempt to lazily initialize
7886 frame's unwinder for legacy frames.
7887
1750fa04
AC
78882003-05-07 Andrew Cagney <cagney@redhat.com>
7889
7890 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7891 and "regcache" parameters.
7892 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7893
ddf9f258 78942003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7895
7896 * dwarf2read.c (dwarf_decode_lines): Only use output of
7897 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7898 the current address.
7899
87767c29
AC
79002003-05-07 Andrew Cagney <cagney@redhat.com>
7901
7902 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7903 code.
7904
5e7b2f39
JB
79052003-05-07 Jim Blandy <jimb@redhat.com>
7906
7907 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7908 'maint info symtabs' and 'maint info psymtabs'.
7909 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7910 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7911 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7912 Declarations updated.
7913 * maint.c (maintenance_list_command): Delete.
7914 (_initialize_maint_cmds): Update calls to add_cmd.
7915 * gdbcmd.h (maintenancelistlist): Delete declaration.
7916 * cli/cli-cmds.c (maintenancelistlist): Delete.
7917 (init_cmd_lists): Don't initialize it.
7918 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7919
f6684c31
AC
79202003-05-07 Andrew Cagney <cagney@redhat.com>
7921
7922 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7923 "regcache".
7924 (d10v_print_registers_info): Update.
7925 (d10v_dmap_register, d10v_imap_register): Delete functions.
7926 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7927 and "imap_register".
7928 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7929 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7930 * arch-utils.c (generic_remote_translate_xfer_address): Add
7931 "regcache" and "gdbarch" parameters.
7932 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7933 parameter. Change class to multi-arch.
7934 * gdbarch.h, gdbarch.c: Re-generate.
7935 * remote.c (remote_xfer_memory): Use
7936 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7937
e4846b08
JJ
79382003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7939
7940 * infrun.c (prev_pc): Move declaration ahead of proceed().
7941 (proceed): Refresh prev_pc value before resuming.
7942 (stop_stepping): Remove code to refresh prev_pc.
7943
6b71b8ac
KW
79442003-05-06 Kris Warkentin <kewarken@qnx.com>
7945
7946 * nto-tdep.c: Removed stray comment.
7947
47979a4b
KW
79482003-05-06 Kris Warkentin <kewarken@qnx.com>
7949
7950 * i386-nto-tdep.c: Fix old K&R function definitions.
7951 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7952 Also change add_show_from_set() call to add_setshow_cmd().
7953 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7954
00905d52
AC
79552003-05-05 Andrew Cagney <cagney@redhat.com>
7956
7957 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7958 (fprint_dummy_frames): New function.
7959 (maintenance_print_dummy_frames): New function.
7960 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7961 * frame.c (fprint_frame_id): Make global.
7962 * frame.h (fprint_frame_id): Declare.
7963 * Makefile.in (dummy-frame.o): Update dependencies.
7964
b1e29e33
AC
79652003-05-05 Andrew Cagney <cagney@redhat.com>
7966
7967 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7968 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7969 SIZEOF_CALL_DUMMY_WORDS.
7970 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7971 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7972 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7973 CALL_DUMMY_BREAKPOINT_OFFSET.
7974 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7975 CALL_DUMMY_START_OFFSET.
7976 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7977 * gdbarch.h, gdbarch.c: Re-generate.
7978 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7979 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7980 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7981 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7982 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7983 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7984 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7985 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7986 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7987 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7988 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7989 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7990 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7991 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7992 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7993
79942003-05-05 Kris Warkentin <kewarken@qnx.com>
7995
7996 * configure.tgt: Add i[3456]86-*-nto*.
7997 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7998 * nto-tdep.c: New file. Neutrino target support routines.
7999 * nto-tdep.h: New file. Neutrino target header.
8000 * config/tm-qnxnto.h: New file.
8001 * config/i386/i386nto.mt: New file.
8002 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8003
0ce3d317
AC
80042003-05-04 Andrew Cagney <cagney@redhat.com>
8005
8006 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8007 (load_infrun_state): Ditto.
8008 (struct thread_info): Drop "prev_func_name" field.
8009 * thread.c (load_infrun_state): Update.
8010 (save_infrun_state): Update.
8011 * infrun.c (prev_func_name): Delete variable.
8012 (init_wait_for_inferior): Do not clear prev_func_name.
8013 (stop_stepping, keep_going, context_switch): Do not swap
8014 prev_func_name.
8015 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8016 instead of PC_IN_SIGTRAMP.
8017
46654a5b
AC
80182003-05-04 Andrew Cagney <cagney@redhat.com>
8019
8020 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8021 REGISTER_BYTE with register_offset_hack.
8022 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8023 that REGISTER_BYTE is consistent with the regcache.
8024 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8025 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8026
14b08c1b
MK
80272003-05-04 Mark Kettenis <kettenis@gnu.org>
8028
04c8243f
MK
8029 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8030 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8031
14b08c1b
MK
8032 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8033
c7a11e01
JB
80342003-05-03 J. Brobecker <brobecker@gnat.com>
8035
8036 From Thierry Schneider <tpschneider1@yahoo.com>
8037 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8038 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8039 (mi-cmd-symbol.o): Add rule.
8040
7043d8dc
AC
80412003-05-03 Andrew Cagney <cagney@redhat.com>
8042
8043 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8044 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8045 * gdbarch.h, gdbarch.c: Re-generate.
8046 * d10v-tdep.c (d10v_push_dummy_code): New function.
8047 (d10v_gdbarch_init): Set push_dummy_code.
8048 * infcall.c (legacy_push_dummy_code): New function.
8049 (generic_push_dummy_code): New function.
8050 (push_dummy_code): New function.
8051 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8052 instead of dummy_addr, to push_dummy_call. Move call to
8053 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8054 switch.
8055 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8056
92bf2b80
AC
80572003-05-03 Andrew Cagney <cagney@redhat.com>
8058
8059 * disasm.h (print_insn): Declare.
8060 * disasm.c (init_gdb_disassemble_info): New function.
8061 (gdb_disassembly): Call init_gdb_disassemble_info.
8062 (gdb_print_insn): New function.
8063 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8064 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8065 * mcore-tdep.c: Include "disasm.h"
8066 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8067 * d10v-tdep.c: Include "disasm.h".
8068 (display_trace): Call gdb_print_insn, instead of print_insn.
8069 (print_insn): Delete function.
8070 * printcmd.c: Include "disasm.h".
8071 (print_insn): Delete function.
8072 (print_formatted): Call gdb_print_insn, instead of print_insn.
8073 * Makefile.in (printcmd.o): Update dependencies.
8074 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8075
27d94c49
AC
80762003-05-02 Andrew Cagney <cagney@redhat.com>
8077
82de1e5b
AC
8078 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8079 PC_REGNUM, re-indent.
8080 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8081 PC_REGNUM isn't set.
8082
27d94c49
AC
8083 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8084 * gdbarch.h, gdbarch.c: Re-generate.
8085 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8086 register_virtual_size, pc_regnum, or register_bytes.
8087 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8088 (d10v_register_type): Use D10V_PC_REGNUM.
8089 (d10v_print_registers_info, d10v_read_pc): Ditto.
8090 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8091 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8092
a9c0dc7f
DC
80932003-05-02 David Carlton <carlton@bactrian.org>
8094
8095 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8096 the name with mstrsave.
8097
e33d66ec
EZ
80982003-05-02 Elena Zannoni <ezannoni@redhat.com>
8099
8100 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8101 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8102 (host_charset_name, target_charset_name): New vars for use by
8103 set/show commands.
8104 (host_charset_enum, target_charset_enum): New enums for set/show
8105 commands.
8106 (set_charset_sfunc, set_host_charset_sfunc,
8107 set_target_charset_sfunc): New functions.
8108 (set_host_charset, set_target_charset): Make static.
8109 (list_charsets, set_host_charset_command,
8110 set_target_charset_command): Delete functions.
8111 (show_charset_command): Rewrite as....
8112 (show_charset): Hook this up with the set/show command mechanism.
8113 (_initialize_charset): Change names of charsets to match the
8114 set/show enums. Use host_charset_name and target_charset_name.
8115 Use set/show mechanism for charset, host-charset, target-charset
8116 commands. Do not make 'show host-charset' and 'show
8117 target-charset' be aliases of 'show charset'.
8118
8119 * charset.h (set_host_charset, set_target_charset): Don't export,
8120 they are not used outside the file.
8121
2b6fd0d8
AC
81222003-05-01 Andrew Cagney <cagney@redhat.com>
8123
8124 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8125 (gdb_disassembly): Make "di" non static, always initialize and
8126 cleanup. Always use dis_asm_read_memory.
8127 (gdb_dis_asm_read_memory): Delete function.
8128
6ae2f580
AC
81292003-05-01 Andrew Cagney <cagney@redhat.com>
8130
8131 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8132 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8133
810ecf9f
AC
81342003-04-30 Andrew Cagney <cagney@redhat.com>
8135
8136 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8137 "tm_print_insn_info".
8138 (TARGET_PRINT_INSN_INFO): Delete macro.
8139 (dis_asm_read_memory): Delete function declaration.
8140 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8141 (tm_print_insn_info): Delete variable definition.
8142 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8143 * gdbarch.h, gdbarch.c: Re-generate.
8144 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8145 "deprecated_tm_print_insn_info".
8146 * mcore-tdep.c (mcore_dump_insn): Ditto.
8147 * mips-tdep.c (mips_gdbarch_init): Ditto.
8148 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8149 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8150 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8151 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8152 instead of TARGET_PRINT_INSN_INFO, add comment.
8153 * s390-tdep.c (s390_get_frame_info): Instead of
8154 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8155 (s390_check_function_end, s390_is_sigreturn): Ditto.
8156 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8157 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8158 * disasm.c: Include "gdbcore.h".
8159 (_initialize_disasm): New function, initialize
8160 "deprecated_tm_print_insn_info".
8161 (deprecated_tm_print_insn_info): New variable.
8162 (dis_asm_read_memory): Moved from "corefile.c", made static.
8163 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8164 * Makefile.in (disasm.o): Update dependencies.
8165
07020390
AC
81662003-04-30 Andrew Cagney <cagney@redhat.com>
8167
8168 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8169
a9fa03de
AF
81702003-04-29 Adam Fedor <fedor@gnu.org>
8171
8172 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8173 * infcall.c (find_function_addr): Make non-static.
8174 * infcall.h (find_function_addr): Declare.
8175 * Makefile.in (eval.o): Update dependencies.
8176
1bae87b9
AF
81772003-04-28 Adam Fedor <fedor@gnu.org>
8178
8179 * symtab.c (symbol_find_demangled_name): Check for and demangle
8180 ObjC symbols.
8181 (symbol_init_demangled_name): Init for language_objc as well.
8182
0ba6dca9
AC
81832003-04-28 Andrew Cagney <cagney@redhat.com>
8184
8185 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8186 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8187 * gdbarch.h, gdbarch.c: Re-generate.
8188 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8189 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8190 * inferior.h (deprecated_read_fp): Rename read_fp.
8191 (generic_target_read_fp): Delete declaration.
8192 * regcache.c (generic_target_read_fp): Delete function.
8193 (deprecated_read_fp): Replace read_fp, use
8194 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8195 * d10v-tdep.c (d10v_read_fp): Delete function.
8196 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8197
8198 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8199 deprecated_target_read_fp to generic_target_read_fp.
8200 * sh-tdep.c (sh_gdbarch_init): Ditto.
8201 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8203 * frv-tdep.c (frv_gdbarch_init): Ditto.
8204
8205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8206 deprecated_fp_regnum.
8207 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8208 * vax-tdep.c (vax_gdbarch_init): Ditto.
8209 * v850-tdep.c (v850_gdbarch_init): Ditto.
8210 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8211 * sh-tdep.c (sh_gdbarch_init): Ditto.
8212 * s390-tdep.c (s390_gdbarch_init): Ditto.
8213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8214 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8216 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8219 * i386-tdep.c (i386_gdbarch_init): Ditto.
8220 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8221 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8222 * frv-tdep.c (frv_gdbarch_init): Ditto.
8223 * cris-tdep.c (cris_gdbarch_init): Ditto.
8224 * avr-tdep.c (avr_gdbarch_init): Ditto.
8225 * arm-tdep.c (arm_gdbarch_init): Ditto.
8226 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8227
8228 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8229 * v850-tdep.c (v850_gdbarch_init): Ditto.
8230 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8231 * sh-tdep.c (sh_gdbarch_init): Ditto.
8232 * s390-tdep.c (s390_gdbarch_init): Ditto.
8233 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8234 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8235 * mips-tdep.c (mips_gdbarch_init): Ditto.
8236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8237 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8238 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8239 * frv-tdep.c (frv_gdbarch_init): Ditto.
8240 * avr-tdep.c (avr_gdbarch_init): Ditto.
8241 * arm-tdep.c (arm_gdbarch_init): Ditto.
8242
8243 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8244 DEPRECATED_FP_REGNUM.
8245 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8246 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8247 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8248 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8249 (sparc32_register_virtual_type): Ditto.
8250 * sh-tdep.c (sh64_frame_chain): Ditto.
8251 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8252 (sh_nofp_frame_init_saved_regs): Ditto.
8253 (sh64_nofp_frame_init_saved_regs): Ditto.
8254 (sh_fp_frame_init_saved_regs): Ditto.
8255 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8256 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8257 * procfs.c (procfs_fetch_registers): Ditto.
8258 (procfs_store_registers): Ditto.
8259 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8260 (store_inferior_registers, fetch_core_registers): Ditto.
8261 (fetch_kcore_registers, clear_regs): Ditto.
8262 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8263 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8264 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8265 * nlm/i386.c (do_status): Ditto.
8266 * mipsv4-nat.c (supply_gregset): Ditto.
8267 * mips-tdep.c: Ditto for comments.
8268 * mips-nat.c (fetch_inferior_registers): Ditto.
8269 (store_inferior_registers, fetch_core_registers): Ditto.
8270 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8271 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8272 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8273 (i386_do_pop_frame, i386_register_type): Ditto.
8274 * hppa-tdep.c (hppa_frame_chain): Ditto.
8275 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8276 (hppa_pop_frame, hppa_read_fp): Ditto.
8277 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8278 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8279 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8280 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8281 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8282 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8283 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8284 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8285 * blockframe.c: Ditto for comments.
8286 * arch-utils.h: Ditto for comments.
8287 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8288 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8289 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8290 * alpha-tdep.h: Ditto for comments.
8291 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8292 (alpha_cannot_store_register): Ditto.
8293 (alpha_push_dummy_frame): Ditto.
8294 * alpha-nat.c (supply_gregset): Ditto.
8295
8296 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8297 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8298 * config/sparc/tm-sparc.h: Update comment.
8299
8300 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8301 deprecated_read_fp instead of TARGET_READ_FP.
8302 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8303 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8304 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8305 deprecated_read_fp instead of read_fp.
8306 * s390-tdep.c (s390_push_arguments): Ditto.
8307 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8308 * frame.h: Ditto in comments.
8309 * frame.c (legacy_get_prev_frame): Ditto.
8310 * dummy-frame.c (dummy_frame_this_id): Ditto.
8311 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8312
d7a27068
AC
83132003-04-28 Andrew Cagney <cagney@redhat.com>
8314
8315 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8316 * gdbarch.h, gdbarch.c: Re-generate.
8317 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8318 * vax-tdep.c (_initialize_vax_tdep): Update.
8319 * v850-tdep.c (_initialize_v850_tdep): Update.
8320 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8321 * s390-tdep.c (_initialize_s390_tdep): Update.
8322 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8323 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8324 * mips-tdep.c (_initialize_mips_tdep): Update.
8325 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8326 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8327 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8328 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8329 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8330 * frv-tdep.c (_initialize_frv_tdep): Update.
8331 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8332 (_initialize_cris_tdep): Update.
8333 * arch-utils.c (legacy_print_insn): Update.
8334 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8335
d2630e69
AF
83362003-04-26 Adam Fedor <fedor@gnu.org>
8337
8338 * linespec.c (decode_objc): New function to decode ObjC calls
8339 (decode_line_1): Check for ObjC calls (using decode_objc)
8340 * Makefile (linespec.o): Update dependencies.
8341
3086aeae
DJ
83422003-04-26 Daniel Jacobowitz <drow@mvista.com>
8343
8344 * breakpoint.h (struct breakpoint_ops): New.
8345 (struct breakpoint): Add ops member.
8346
8347 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8348 (mention): Use new breakpoint ops member.
8349 (set_raw_breakpoint): Initialize ops field to NULL.
8350 (print_exception_catchpoint, print_one_exception_catchpoint)
8351 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8352 (gnu_v3_exception_catchpoint_ops): New.
8353 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8354
1fbec6c3
AF
83552003-04-25 Adam Fedor <fedor@gnu.org>
8356
8357 * Makefile.in (COMMON_OBS): Add objc-lang.o
8358
0ef21242
AC
83592003-04-25 Andrew Cagney <cagney@redhat.com>
8360
8361 * d10v-tdep.c (print_insn): Delete function.
8362 (display_trace): Use TARGET_PRINT_INSN.
8363 (_initialize_d10v_tdep): Do not set tm_print_insn.
8364 (d10v_gdbarch_init): Set print_insn.
8365
f75493ed
AC
83662003-04-25 Andrew Cagney <cagney@redhat.com>
8367
8368 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8369 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8370 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8371 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8372 (nr_dmap_regs, a0_regnum): ... new functions.
8373 (d10v_print_registers_info): Use a0_regnum, use register_size.
8374 (d10v_register_byte): Delete function.
8375 (d10v_register_raw_size): Delete function.
8376 (d10v_register_type): Use a0_regnum.
8377 (d10v_print_registers_info): Use a0_regnum.
8378 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8379 (d10v_gdbarch_init): Do not set register_byte or
8380 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8381 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8382 extract_address.
8383 (trace_command): Use XCALLOC.
8384 (print_insn): Delete reference to tm_print_insn.
8385 (saved_regs_unwinder): Use store_unsigned_integer instead of
8386 store_address.
8387 * frame.h (FRAME_OBSTACK_CALLOC): Define
8388
2202b100
DC
83892003-04-25 David Carlton <carlton@bactrian.org>
8390
8391 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8392
4e45ca2e
AF
83932003-04-24 Adam Fedor <fedor@gnu.org>
8394
8395 * objc-lang.c: Include "valprint.h"
8396 * Makefile.in (objc-lang.o): Update dependencies.
8397
93de3e7f
AF
83982003-04-24 Adam Fedor <fedor@gnu.org>
8399
8ffd9b1b 8400 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8401 architecture dependant compilation and mark as unimplemented
8402 (until they get put in the gdbarch vector).
8403
0f20eeea
DC
84042003-04-23 David Carlton <carlton@bactrian.org>
8405
8406 * cp-support.c (cp_find_first_component): Accept 'operator' in
8407 more locations.
8408
74cfe982
AC
84092003-04-23 Andrew Cagney <cagney@redhat.com>
8410
8411 * infcall.c (call_function_by_hand): Eliminate redundant
8412 indentation. Move "saved_async" and "old_cleanups" to where they
8413 are needed.
8ffd9b1b 8414
52557533
AC
84152003-04-23 Andrew Cagney <cagney@redhat.com>
8416
8417 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8418 and "buffer". Move the "name" code to where it is needed.
8419
158775de
AC
84202003-04-23 Andrew Cagney <cagney@redhat.com>
8421
8422 * infcall.c (call_function_by_hand): Move variables "start_sp",
8423 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8424 code to ON_STACK switch branch.
8ffd9b1b 8425
ebc7896c
AC
84262003-04-23 Andrew Cagney <cagney@redhat.com>
8427
8428 * infcall.c (call_function_by_hand): Make declaration of "i",
8429 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8430 lint.
8431
d727590f
AC
84322003-04-23 Andrew Cagney <cagney@redhat.com>
8433
8434 * infcall.c (call_function_by_hand): Delete variable
8435 "n_method_args". Localize "param_type"'s declaration to the loop
8436 that it is used. Reinstate code assigning to said variable -
8437 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8438 Rationalize code using "param_type".
8439
d585e13a
AC
84402003-04-22 Andrew Cagney <cagney@redhat.com>
8441
8442 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8443 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8444 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8445 to DEPRECATED_PUSH_RETURN_ADDRESS.
8446
051caad9
KB
84472003-04-22 Kevin Buettner <kevinb@redhat.com>
8448
8449 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8450 on the DWARF2 register number prior to fetching a register.
8451
77296879
JB
84522003-04-22 J. Brobecker <brobecker@gnat.com>
8453
8454 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8455 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8456 this macro was always set to 0.
77296879
JB
8457 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8458 considering the fact that this macro was always set to 0.
8459 * hppa-tdep.h (hppa_store_return_value): Likewise.
8460 (hppa_extract_return_value): Likewise.
8461
4252f1df
JB
84622003-04-22 J. Brobecker <brobecker@gnat.com>
8463
8464 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8465 the hppa-pro target only.
8466
14604c6b
JB
84672003-04-21 J. Brobecker <brobecker@gnat.com>
8468
8469 Ongoing multi-arch conversion effort for HP/UX:
8470 * config/pa/tm-hppa.h: Move all macro that are no longer
8471 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8472 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8473
77eb01d1
JB
84742003-04-21 J. Brobecker <brobecker@gnat.com>
8475
8476 * config/pa/tm-hppa.h: Obsolete a section that was only used
8477 for hppa-pro.
8478
61995b3b
JB
84792003-04-21 J. Brobecker <brobecker@gnat.com>
8480
8481 Ongoing multi-arch conversion for HP/UX.
8482 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8483 if already defined (allows hppa64 to stay non-multiarched for now).
8484 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8485
4aa79dcc
AC
84862003-04-21 Andrew Cagney <cagney@redhat.com>
8487
8488 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8489
0f751ff2
AC
84902003-04-21 Andrew Cagney <cagney@redhat.com>
8491
8492 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8493 "i386_num_mmx_regs".
8494
04714b91
AC
84952003-04-21 Andrew Cagney <cagney@redhat.com>
8496
8497 * infcall.c: New file.
8498 * infcall.h: New file.
8499 * valarith.c: Include "infcall.h".
8500 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8501 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8502 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8503 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8504 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8505 (SFILES): Add "infcall.c"
8506 (COMMON_OBS): Add "infcall.o".
8507 (infcall.o): Specify dependencies.
8508 * value.h (call_function_by_hand): Delete declaration.
8509 * inferior.h (run_stack_dummy): Delete declaration.
8510 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8511 (run_stack_dummy): Move to "infcall.c", merged into
8512 call_function_by_hand.
8513 * valops.c (call_function_by_hand): Moved to "infcall.c".
8514 (find_function_addr, value_arg_coerce): Ditto.
8515 (unwindonsignal_p, coerce_float_to_double): Ditto.
8516 (_initialize_valops): Move "set/show coerce-float-to-double", and
8517 "set/show unwindonsignal" commands to "infcall.c".
8518 * v850-tdep.c, target.h: Update comments.
8519 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8520 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8521 (sh64_init_extra_frame_info): Update comments.
8522 * mn10300-tdep.c: Update comments.
8523 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8524 * config/sparc/tm-sparc.h: Update comments.
8525 * breakpoint.h: Update comments.
8526 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8527 * arm-tdep.c: Update comment.
8528
f9d3c2a8
MK
85292003-04-19 Mark Kettenis <kettenis@gnu.org>
8530
c40e1eab
MK
8531 * i386-tdep.c (i386_num_register_names): New variable.
8532 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8533 (MM0_REGNUM): Remove redundant parentheses in define.
8534 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8535 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8536 i386_mxcsr_regnum_p): Remove redundant parentheses.
8537 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8538
94ea66b3
MK
8539 * i386-tdep.c (i386_extract_return_value,
8540 i386_store_return_value): Correct check for availability of
8541 floating-point registers.
8542
54299a1d
MK
8543 * i386-tdep.c (i386_frame_num_args): Remove function.
8544 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8545
c86c27af
MK
8546 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8547 mmx_regnum_to_fp_regnum. Adjust all callers.
8548
f9d3c2a8
MK
8549 * i386-tdep.c (i386_get_longjmp_target): Use
8550 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8551 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8552 extract_address.
8553
94ba74a9
MK
85542003-04-19 Mark Kettenis <kettenis@gnu.org>
8555
8556 * core-regset.c: Update comments to reflect reality. Re-order
8557 includes.
8558 (fetch_core_registers): Use switch instead of if. Remove
8559 redundant prototype.
8560
4074e13c
JB
85612003-04-18 Jim Blandy <jimb@redhat.com>
8562
8563 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8564 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8565
e3ab4aba
RH
85662003-04-17 Richard Henderson <rth@redhat.com>
8567
8568 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8569
627bf7c1
EZ
85702003-04-17 Michael Snyder <msnyder@redhat.com>
8571 Karen Bennet <bennet@redhat.com>
8572
8573 Committed by Elena Zannoni <ezannoni@redhat.com>
8574 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8575
514621a9
EZ
85762003-04-17 Elena Zannoni <ezannoni@redhat.com>
8577
8578 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8579 value if the return type is void.
514621a9 8580
b4acd559
JJ
85812003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8582
8583 * thread-db.c: Reindented.
8ffd9b1b 8584
530b167e 85852003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8586
8587 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8588 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8589 as types.
8590
0a48e7e8
MS
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8ffd9b1b 8614
ab9fe00e
KB
86152003-04-16 Kevin Buettner <kevinb@redhat.com>
8616
610a3745 8617 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8618 the size of ``long double'' to 16, instead of 8.
8619
e64a344c
MK
86202003-04-16 Mark Kettenis <kettenis@gnu.org>
8621
8622 * i386-linux-nat.c: Add some whitespace to make things more
8623 readable.
8624 (fetch_register, store_register, fetch_inferior_registers,
8625 store_inferior_registers): Get rid of assignment in if-statement.
8626 (store_register): Fix typo in error message.
8627
25d41031
AC
86282003-04-16 Andrew Cagney <cagney@redhat.com>
8629
8630 * utils.c (xmmalloc): Always allocate something, matches
8631 libiberty/xmalloc's semantics.
8632 (xmrealloc, xmcalloc): Ditto.
8633
c50901fd
AC
86342003-04-16 Andrew Cagney <cagney@redhat.com>
8635
8636 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8637 update comments.
8638 (get_frame_type): Initialize unwind and type when needed.
8639 (get_frame_id, frame_register_unwind): Ditto.
8640
f81824a9
AC
86412003-04-16 Andrew Cagney <cagney@redhat.com>
8642
8643 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8644 obsolete.
8645 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8646 * sparcl-stub.c: Obsolete file.
8647 * config/sparc/tm-sparclet.h: Obsolete file.
8648 * sparclet-stub.c: Obsolete file.
8649 * sparclet-rom.c: Obsolete file.
8650 * sparcl-tdep.c: Obsolete file.
8651 * config/sparc/tm-sparclite.h: Obsolete file.
8652 * config/sparc/sparclite.mt: Obsolete file.
8653 * config/sparc/sparclet.mt: Obsolete file.
8654 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8655 sparc86x-*-* obsolete.
8656
9219021c
DC
86572003-04-15 David Carlton <carlton@math.stanford.edu>
8658
8659 * Makefile.in (SFILES): Add cp-namespace.c.
8660 (COMMON_OBS): Add cp-namespace.o.
8661 (block.o): Depend on gdb_obstack_h and cp_support_h.
8662 (buildsym.o): Depend on cp_support_h.
8663 (cp-namespace.o): New.
8664 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8665 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8666 (dwarf2read.o): Depend on cp_support_h.
8667 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8668 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8669 processing_current_namespace.
8670 (read_namespace): Update processing_current_namespace; check for
8671 anonymous namespaces.
8672 (dwarf2_name): New function.
8673 (dwarf2_extension): Ditto.
8674 * cp-support.h: Update copyright, contributors.
8675 Add inclusion guards.
8676 Add opaque declaration for structs obstack, block, symbol.
8677 (struct using_direct): New struct.
8678 Add declarations for cp_find_first_component,
8679 cp_entire_prefix_len, processing_has_namespace_info,
8680 processing_current_namespace, cp_is_anonymous,
8681 cp_add_using_directive, cp_initialize_namespace,
8682 cp_finalize_namespace, cp_set_block_scope,
8683 cp_scan_for_anonymous_namespaces.
8684 * cp-namespace.c: New file.
8685 * cp-support.c: Update copyright.
8686 Include ctype.h, gdb_assert.h, gdbcmd.h.
8687 New variable maint_cplus_cmd_list.
8688 (cp_find_first_component): New function.
8689 (cp_entire_prefix_len, maint_cplus_command)
8690 (first_component_command, _initialize_cp_support): Ditto.
8691 * buildsym.c: Include cp-support.h.
8692 New variable using_list.
8693 (add_symbol_to_list): Check for anonymous namespaces.
8694 (finish_block): Set block's scope.
8695 (start_symtab): Initialize C++ namespace support.
8696 (end_symtab): Finalize C++ namespace support.
8697 * block.h: Add opaque declarations for structs
8698 block_namespace_info, using_direct, and obstack.
8699 Add declarations for block_set_scope and block_set_using.
8700 (struct block): Add 'language_specific' member.
8701 (BLOCK_NAMESPACE): New macro.
8702 * block.c: Include gdb_obstack.h and cp-support.h.
8703 (struct block_namespace_info): New struct.
8704 (block_set_scope): New function.
8705 (block_set_using, block_initialize_namespace): Ditto.
8706
d5a921c9
KB
87072003-04-14 Kevin Buettner <kevinb@redhat.com>
8708
8709 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8710 (locate_base): Return early if there aren't any link map offsets.
8711 (svr4_solib_create_inferior_hook): Warn if shared library support
8712 is unavailable.
8713
d2a52b27
DC
87142003-04-14 David Carlton <carlton@math.stanford.edu>
8715
8716 * symtab.c (symbol_set_names): Add prefix when storing Java names
8717 in hash table. Fix for PR java/1039.
8718
980cae7a
DC
87192003-04-14 David Carlton <carlton@math.stanford.edu>
8720
8721 * symtab.c (symbol_set_names): Rename 'name' arg to
8722 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8723 * symtab.h: Change 'name' argument in declaration of
8724 symbol_set_names to 'linkage_name'.
8725 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8726
e227b13c
AC
87272003-04-14 Andrew Cagney <cagney@redhat.com>
8728
8729 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8730 return the fully sign-extended register value.
8731 (get_frame_pointer): Ditto.
8732 (mips_pop_frame): Initialize "proc_desc" after checking for a
8733 dummy frame.
8734
36712a20
AC
87352003-04-14 Andrew Cagney <cagney@redhat.com>
8736
8737 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8738 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8739 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8740 (mips_push_register): Delete function.
8741 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8742 PUSH_FP_REGNUM.
8743
44ea7b70
JB
87442003-04-14 Jim Blandy <jimb@redhat.com>
8745
8746 * symmisc.c: #include "gdb_regex.h".
8747 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8748 functions.
8749 * maint.c (maintenance_list_command): New function.
8750 (_initialize_maint_cmds): Register the above as commands.
8751 * symtab.h (maintenance_list_symtabs,
8752 maintenance_list_psymtabs): New declarations.
8753 * cli/cli-cmds.c (maintenancelistlist): New variable.
8754 (init_cmd_lists): Initialize it.
8755 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8756 * gdbcmd.h (maintenancelistlist): New declaration.
8757 * Makefile.in (symmisc.o): Update dependencies.
8758
2d0c7962
EZ
87592003-04-14 Elena Zannoni <ezannoni@redhat.com>
8760
8761 * s390-nat.c: Include asm/types.h for addr_t.
8762
1947a811
CV
87632003-04-14 Corinna Vinschen <vinschen@redhat.com>
8764
8765 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8766 actually incoming type.
8767
adb616d7
AC
87682003-04-13 Andrew Cagney <cagney@redhat.com>
8769
8770 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8771 get_next_frame and get_frame_saved_regs.
8772
9b5e151c
AC
87732003-04-13 Andrew Cagney <cagney@redhat.com>
8774
8775 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8776 of gdbarch_num_regs.
8777
ef6e7e13
AC
87782003-04-13 Andrew Cagney <cagney@redhat.com>
8779
8780 * frame.h: Mention what replaced what in "struct frame_info".
8781 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8782 deprecated_update_frame_base_hack and
8783 deprecated_update_frame_pc_hack.
8784 * hppa-tdep.c: Ditto.
8785
61fbb938
DJ
87862003-04-13 Daniel Jacobowitz <drow@mvista.com>
8787
8788 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8789 to read_reg and update its comment. Remove regnum member.
8790 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8791 Don't call read_reg when setting in_reg. Call read_reg to get
8792 the frame base if it's in a register. Return the register number
8793 on the stack instead of in the context. Remove extra arguments
8794 to read_reg.
8795 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8796 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8797 the register number on the expression stack.
8798 (needs_frame_read_reg): Remove extra arguments.
8799
0d53c4c4
DJ
88002003-04-13 Daniel Jacobowitz <drow@mvista.com>
8801
8802 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8803 made non-static.
8804 (execute_stack_op): All callers updated.
8805 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8806 * dwarf2loc.c (find_location_expression): New function.
8807 (dwarf_expr_frame_base): Call it.
8808 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8809 (dwarf2_tracepoint_var_ref): New function, broken out from
8810 locexpr_tracepoint_var_ref.
8811 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8812 Make static.
8813 (loclist_read_variable, loclist_read_needs_frame): New functions.
8814 (loclist_describe_location, loclist_tracepoint_var_ref): New
8815 functions.
8816 (dwarf2_loclist_funcs): New struct location_funcs.
8817 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8818 (struct dwarf2_locexpr_baton): Add comments.
8819 (dwarf2_loclist_funcs): New extern.
8820 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8821 base_address and base_known.
8822 (dwarf_loc_buffer): New variable.
8823 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8824 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8825 (dwarf2_has_info): Initialize dwarf_loc_offset.
8826 (dwarf2_build_psymtabs): Read in .debug_loc.
8827 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8828 DWARF_LOC_SIZE.
8829 (psymtab_to_symtab_1): Likewise. Move base address calculation
8830 here, from...
8831 (dwarf2_get_pc_bounds): ... here. Use the base address from
8832 cu_header.
8833 (dwarf2_symbol_mark_computed): Handle location lists.
8834
6aca59a3
DJ
88352003-04-13 Daniel Jacobowitz <drow@mvista.com>
8836
8837 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8838 if the linkage name demangled successfully.
8839
aca1fcd0
MK
88402003-04-13 Mark Kettenis <kettenis@gnu.org>
8841
97095916
MK
8842 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8843 disassmbly_flavour): Removed.
8844
aca1fcd0
MK
8845 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8846
562a961f
MK
88472003-04-13 Mark Kettenis <kettenis@gnu.org>
8848
8849 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8850
bd013d54
AC
88512003-04-12 Andrew Cagney <cagney@redhat.com>
8852
8853 * frame.h (struct frame_info): Move definition from here ...
8854 * frame.c (struct frame_info): ... to here.
8855
167ef8b1
AC
88562003-04-12 Andrew Cagney <cagney@redhat.com>
8857
8858 * gdbthread.h (save_infrun_state): Delete parameter
8859 "prev_func_start".
8860 (struct thread_info): Delete field "prev_func_start".
8861 (load_infrun_state): Ditto.
8862 * thread.c (load_infrun_state, save_infrun_state): Update.
8863 * infrun.c (prev_func_start): Delete variable.
8864 (context_switch, init_wait_for_inferior): Update.
8865 (stop_stepping, keep_going): Update.
8866
da3331ec
AC
88672003-04-12 Andrew Cagney <cagney@redhat.com>
8868
8869 * gdbarch.sh: Add missing opaque declarations.
8870 * gdbarch.h: Regnerate.
8871 * symtab.h: Add missing opaque declarations.
8872 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8873 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8874 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8875 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8876 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8877 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8878 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8879 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8880 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8881 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8882 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8883 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8884 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8885
18adea3f
AC
88862003-04-11 Andrew Cagney <cagney@redhat.com>
8887
8888 * frame.c (get_frame_id): Return this frame's "id".
8889 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8890 function start.
8891 (legacy_saved_regs_this_id): Replace function body with
8892 internal-error.
8893 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8894 FRAME_OBSTACK_ZALLOC.
8895 (create_new_frame): Mark the frame ID as valid.
8896
2252e863
AO
88972003-04-11 Alexandre Oliva <aoliva@redhat.com>
8898
8899 * Makefile.in (libbfd_h): Added missing setting.
8900 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8901 according to the selected ABI.
8902
a8245ab8
JJ
89032003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8904
8905 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8906
6913c89a
AC
89072003-04-11 Andrew Cagney <cagney@redhat.com>
8908
8909 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8910 SAVED_PC_AFTER_CALL.
8911 * gdbarch.h, gdbarch.c: Regenerate.
8912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8913 * x86-64-tdep.c (x86_64_init_abi): Update.
8914 * vax-tdep.c (vax_gdbarch_init): Update.
8915 * v850-tdep.c (v850_gdbarch_init): Update.
8916 * sparc-tdep.c (sparc_gdbarch_init): Update.
8917 * sh-tdep.c (sh_gdbarch_init): Update.
8918 * s390-tdep.c (s390_gdbarch_init): Update.
8919 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8920 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8921 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8922 * mips-tdep.c (mips_gdbarch_init): Update.
8923 * mcore-tdep.c (mcore_gdbarch_init): Update.
8924 * m68k-tdep.c (m68k_gdbarch_init): Update.
8925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8926 * ia64-tdep.c (ia64_gdbarch_init): Update.
8927 (ia64_saved_pc_after_call): Update declaration.
8928 * i386ly-tdep.c (i386lynx_init_abi): Update.
8929 * i386-tdep.c (i386_gdbarch_init): Update.
8930 * hppa-tdep.c (hppa_gdbarch_init): Update.
8931 * h8300-tdep.c (h8300_gdbarch_init): Update.
8932 * frv-tdep.c (frv_gdbarch_init): Update.
8933 * cris-tdep.c (cris_gdbarch_init): Update.
8934 * avr-tdep.c (avr_gdbarch_init): Update.
8935 * arm-tdep.c (arm_gdbarch_init): Update.
8936 * alpha-tdep.c (alpha_gdbarch_init): Update.
8937 * ns32knbsd-nat.c (frame_num_args): Update.
8938 * ns32k-tdep.c (umax_frame_num_args): Update.
8939 * mips-tdep.c (mips_init_frame_pc_first): Update.
8940 * infrun.c (step_over_function): Update.
8941 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8942 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8943 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8944 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8945 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8946 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8947 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8948 * arch-utils.c (init_frame_pc_default): Update.
8949 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8950 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8951 declaration.
8ffd9b1b 8952
38edeab8
AC
89532003-04-11 Andrew Cagney <cagney@redhat.com>
8954
8955 * i387-tdep.c: Update copyright.
8956 (i387_to_double): Delete function.
8957 (double_to_i387): Delete function.
8958
81f8a206
AC
89592003-04-10 Andrew Cagney <cagney@redhat.com>
8960
8961 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8962 frame's function's address. Simplify.
8963 (d10v_frame_unwind_cache): Check that the frame's function is
8964 non-zero.
8965
6e691f7a
JB
89662003-04-10 Jim Blandy <jimb@redhat.com>
8967
8968 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8969 call to set_gdbarch_deprecated_push_arguments.
8970
7f78e237
AC
89712003-04-10 Andrew Cagney <cagney@redhat.com>
8972
8973 * frame.c (fprint_frame_id): New function.
8974 (fprint_frame_type, fprint_frame): New function.
8975 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8976 (create_sentinel_frame, get_frame_id): Ditto.
8977 (frame_id_p, frame_id_eq): Ditto.
8978 (frame_id_inner, create_new_frame): Ditto.
8979 (legacy_get_prev_frame, get_prev_frame): Ditto.
8980 (deprecated_update_frame_pc_hack): Ditto.
8981 (frame_register_unwind): Ditto.
8982 (deprecated_update_frame_base_hack): Ditto.
8983
f870b49b
CV
89842003-04-10 Corinna Vinschen <vinschen@redhat.com>
8985
8986 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8987 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8988 frame_chain function.
8989 * Makefile.in: Add dependencies due to above change.
8990
7c86889b
CV
89912003-04-10 Corinna Vinschen <vinschen@redhat.com>
8992
8993 * blockframe.c (legacy_frame_chain_valid): Move call to
8994 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8995 inside_entry_file.
8996
d0a55772
AC
89972003-04-09 Andrew Cagney <cagney@redhat.com>
8998
8999 * frame.h (struct frame_id): Replace "pc" and "base" with
9000 "stack_addr" and "code_addr". Update comments.
9001 (frame_id_build): Update parameter names and comment.
9002 (struct frame_info): Replace "id_p" and "id" with "this_id".
9003 * dummy-frame.c (dummy_frame_this_id): Update.
9004 * breakpoint.c (print_one_breakpoint): Update.
9005 * frame.c (get_frame_id): Update.
9006 (get_frame_base, frame_id_build): Update.
9007 (create_sentinel_frame, legacy_get_prev_frame): Update.
9008 (deprecated_update_frame_base_hack): Update.
9009 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9010 (frame_id_inner): Ditto.
9011
ac16bf07
AC
90122003-04-09 Andrew Cagney <cagney@redhat.com>
9013
9014 * defs.h (gdb_print_host_address): Make "addr" parameter a
9015 pointer constant.
9016 * utils.c (gdb_print_host_address): Update.
9017
366cfc9e
KB
90182003-04-09 Kevin Buettner <kevinb@redhat.com>
9019
9020 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9021 register number for R0 is 0.
9022
cd983b5c
JB
90232003-04-09 J. Brobecker <brobecker@gnat.com>
9024
9025 * frame.h (struct gdbarch): Add opaque structure definition
9026 to avoid a compilation warning on LynxOS 4.0.
9027
d1340264
AC
90282003-04-09 Andrew Cagney <cagney@redhat.com>
9029
9030 * frame.h (struct frame_info): Delete field "pc". Replace
9031 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9032 structure.
9033 * frame.c (frame_pc_unwind): Update.
9034 (create_sentinel_frame): Do not set "pc".
9035 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9036 (get_frame_pc): Call frame_pc_unwind.
9037 (deprecated_update_frame_pc_hack): Update.
9038 (create_new_frame): Use "pc" not "->pc".
9039
90a6fffb
AC
90402003-04-09 Andrew Cagney <cagney@redhat.com>
9041
9042 * frame.c (get_frame_id): Eliminate code updating "frame".
9043 (legacy_get_prev_frame): Ditto.
9044 (get_frame_base): Return id.base directly.
9045 (deprecated_update_frame_base_hack): Update "id.base".
9046 * frame.h (struct frame_info): Delete field "frame".
9047
2fbce691
AC
90482003-04-09 Andrew Cagney <cagney@redhat.com>
9049
9050 * NEWS: Mention that the "Sequent family" is obsolete.
9051 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9052 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9053 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9054 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9055 * config/i386/tm-ptx4.h: Obsolete file.
9056 * config/i386/tm-ptx.h: Obsolete file.
9057 * symm-tdep.c: Obsolete file.
9058 * config/i386/symmetry.mt: Obsolete file.
9059 * config/i386/tm-symmetry.h: Obsolete file.
9060 * symm-nat.c: Obsolete file.
9061 * config/i386/nm-symmetry.h: Obsolete file.
9062 * config/i386/xm-symmetry.h: Obsolete file.
9063 * config/i386/symmetry.mh: Obsolete file.
9064 * config/i386/nm-ptx4.h: Obsolete file.
9065 * config/i386/ptx4.mh: Obsolete file.
9066 * config/i386/ptx.mt: Obsolete file.
9067 * config/i386/ptx.mh: Obsolete file.
9068 * config/i386/xm-ptx4.h: Obsolete file.
9069 * config/i386/xm-ptx.h: Obsolete file.
9070
78c43945
AC
90712003-04-09 Andrew Cagney <cagney@redhat.com>
9072
9073 Obsolete mips*-*-mach3*.
9074 * NEWS: Mention that mips*-*-mach3* is obsolete.
9075 * m3-nat.c: Obsolete file.
9076 * config/nm-m3.h: Obsolete file.
9077 * config/mips/tm-mipsm3.h: Obsolete file.
9078 * config/mips/mipsm3.mt: Obsolete file.
9079 * config/mips/mipsm3.mh: Obsolete file.
9080 * config/mips/xm-mipsm3.h: Obsolete file.
9081 * mipsm3-nat.c: Obsolete file.
9082 * configure.host: Obsolete mips-dec-mach3*.
9083 * configure.tgt: Obsolete mips*-*-mach3*.
9084
f1908289
AC
90852003-04-09 Andrew Cagney <cagney@redhat.com>
9086
9087 * doublest.h: Update copyright.
9088 (deprecated_store_floating, deprecated_extract_floating): Rename
9089 store_floating and extract_floating. Update comments.
9090 * doublest.c: Update copyright.
9091 (extract_floating_by_length): Replace extract_floating.
9092 (store_floating_by_length): Replace store_floating.
9093 (deprecated_extract_floating): New function.
9094 (deprecated_store_floating): New function.
9095 (extract_typed_floating): Call extract_floating_by_length.
9096 (store_typed_floating): Call store_floating_by_length.
9097 * x86-64-tdep.c (x86_64_store_return_value): Update.
9098 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9099 (sh64_extract_return_value): Update.
9100 (sh_sh4_register_convert_to_virtual): Update.
9101 (sh_sh64_register_convert_to_virtual): Update.
9102 (sh_sh4_register_convert_to_raw): Update.
9103 (sh_sh64_register_convert_to_raw): Update.
9104 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9105 (rs6000_register_convert_to_raw): Update.
9106 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9107 (ia64_register_convert_to_raw): Update.
9108 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9109 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9110 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9111 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9112 (alpha_register_convert_to_raw): Update.
9113
4443bd83
AC
91142003-04-08 Andrew Cagney <cagney@redhat.com>
9115
9116 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9117 * gdbarch.h, gdbarch.c: Re-generate.
9118 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9119 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9120 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9121 conditionally, use frame_pc_unwind as an alternative. Add
9122 comments.
9123 * arch-utils.c (init_frame_pc_default): Only call
9124 SAVED_PC_AFTER_CALL when available.
9125
c0236d92
EZ
91262003-04-08 Elena Zannoni <ezannoni@redhat.com>
9127
fbe586ae 9128 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9129 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9130 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9131 (start_remote): Ditto.
9132 (handle_inferior_event): Ditto.
9133 (save_inferior_status): Ditto.
9134 (restore_inferior_status): Ditto.
9135 * infcmd.c (attach_command): Ditto.
9136 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9137 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9138 * alpha-tdep.c (heuristic_proc_start): Ditto.
9139 * mips-tdep.c (heuristic_proc_start): Ditto.
9140 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9141 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9142 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9143 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9144 * remote-vx.c (vx_create_inferior): Ditto.
9145
91462003-04-08 Elena Zannoni <ezannoni@redhat.com>
9147
9148 * infrun.c (stop_soon_quietly): Make it an enum, to better
9149 override the default behavior of handle_inferior_event.
9150 (clear_proceed_status): Update uses of stop_soon_quietly to
9151 reflect that it is now an enum.
9152 (start_remote): Ditto.
9153 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9154 is set to handle the new GNU/Linux kernel behavior for
9155 attach/sigstop. Update uses of stop_soon_quietly.
9156 * inferior.h (enum stop_kind): New enum.
9157 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9158 Reset normal handle_inferior_event behavior, afterwards.
9159 * fork-child.c (startup_inferior): Update.
9160 * alpha-tdep.c (heuristic_proc_start): Update.
9161 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9162 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9163 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9164 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9165 * remote-vx.c (vx_create_inferior): Update.
9166 * mips-tdep.c (heuristic_proc_start): Update.
9167
1211bce3
EZ
91682003-04-07 Elena Zannoni <ezannoni@redhat.com>
9169
9170 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9171 be freed more than once, causing wild memory corruptions.
1211bce3 9172 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9173 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9174 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9175 with the "core" target.
1211bce3 9176
f0ef6b29
KB
91772003-04-07 Kevin Buettner <kevinb@redhat.com>
9178
9179 * mips-tdep.c (mips_print_fp_register): New function, created from
9180 do_fp_register_row(). Registers are now (also) printed as hex.
9181 Only one register is printed per row.
9182 (mips_print_register, do_fp_register_row): Print floating point
9183 registers with mips_print_fp_register().
9184
8cf71652
AC
91852003-04-06 Andrew Cagney <cagney@redhat.com>
9186
5e488a7b
AC
9187 * valprint.h (inspect_it): Add extern declaration.
9188 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9189 (selectors_info, classes_info): Ditto.
9190 (find_objc_msgcall): Fix indentation.
9191 (objc_printstr): Delete extern declarations.
9192
8cf71652
AC
9193 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9194
e6ba3bc9
AC
91952003-04-06 Andrew Cagney <cagney@redhat.com>
9196
9197 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9198 Update comment.
9199 * frame.c (legacy_saved_regs_this_id): Update.
9200 (legacy_get_prev_frame): Update.
9201 * xstormy16-tdep.c: Update comment.
9202 * sparc-tdep.c (sparc_frame_chain): Update comment.
9203 * blockframe.c (legacy_frame_chain_valid): Update.
9204
55e1d7e7
AC
92052003-04-06 Andrew Cagney <cagney@redhat.com>
9206
996179ee
AC
9207 * valprint.c (val_print_type_code_int): Delete #ifdef
9208 PRINT_TYPELESS_INTEGER code.
9209
55e1d7e7
AC
9210 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9211 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9212 multi-arch definition.
9213 * gdbarch.h: Re-generate.
9214
43bd9a9e
AC
92152003-04-05 Andrew Cagney <cagney@redhat.com>
9216
9217 Eliminate FRAME_FIND_SAVED_REGS.
9218 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9219 Change FSR parameter to a pointer.
9220 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9221 Assume FSR parameter is a pointer.
9222 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9223 Make fsr a pointer.
9224 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9225 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9226 saved_regs a pointer.
9227 (hppa_frame_saved_pc): Ditto.
9228 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9229 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9230 pointer.
9231 (restore_pc_queue): Make fsr a pointer.
9232 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9233 (hppa_frame_chain): Make saved_regs a pointer, call
9234 hppa_frame_init_saved_regs.
9235 * sparc-tdep.c: Include "gdb_assert.h".
9236 (sparc_frame_find_saved_regs): Replace internal_error with
9237 gdb_assert.
9238 * remote-vxsparc.c (vx_read_register): Delete reference to
9239 FRAME_FIND_SAVED_REGS.
9240 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9241 * gdbarch.h: Regenerate.
9242 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9243 (deprecated_get_frame_saved_regs): Delete declaration.
9244 (struct frame_saved_regs): Delete definition.
9245 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9246 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9247 (hppa_frame_find_saved_regs): Delete declaration.
9248 (FRAME_FIND_SAVED_REGS): Delete macro.
9249 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9250 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9251 FRAME_FIND_SAVED_REGS in comment.
9252
be41e9f4
AC
92532003-04-05 Andrew Cagney <cagney@redhat.com>
9254
9255 * frame.c (frame_func_unwind, get_frame_func): New functions.
9256 * frame.h (get_frame_func, frame_func_unwind): Declare.
9257 (struct frame_info): Add field "prev_func" for caching the
9258 previous frame's function address.
9259 * arm-tdep.c (arm_frameless_function_invocation): Combine
9260 get_pc_function_start and get_frame_pc into get_frame_func.
9261 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9262 (sh64_nofp_frame_init_saved_regs): Ditto.
9263 * s390-tdep.c (s390_function_start): Ditto.
9264 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9265 (rs6000_frameless_function_invocation): Ditto.
9266 (rs6000_frame_saved_pc): Ditto.
9267 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9268 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9269 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9270 (i386_frame_init_saved_regs): Ditto.
9271 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9272 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9273 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9274 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9275 * blockframe.c (frameless_look_for_prologue): Ditto.
9276
a01dd7cc
AC
92772003-04-05 Andrew Cagney <cagney@redhat.com>
9278
9279 * frame.c (legacy_get_prev_frame): Link prev to next at the
9280 function start. Update comments.
9281
5e5592e6
AC
92822003-04-05 Andrew Cagney <cagney@redhat.com>
9283
9284 * frame.c (get_frame_id): Update comment.
9285 (legacy_get_prev_frame): Update comment.
9286 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9287 * gdbarch.h: Regenerate.
9288 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9289 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9290
6fba5002
AC
92912003-04-05 Andrew Cagney <cagney@redhat.com>
9292
9293 * stack.c (print_frame_info): Use get_frame_pc.
9294
7df05f2b
AC
92952003-04-04 Andrew Cagney <cagney@redhat.com>
9296
9297 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9298 the frame's type from the unwinder.
9299 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9300 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9301 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9302 (get_frame_base_address): Use get_frame_type.
9303 (get_frame_locals_address, get_frame_args_address): Ditto.
9304 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9305 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9306 (struct frame_info): Add comment explaining why the frame contains
9307 a "type" field.
9308 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9309 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9310 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9311 NORMAL_FRAME.
9312 * frame-unwind.h: Include "frame.h".
9313 (struct frame_unwind): Add "type" field.
9314 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9315
11889732
AC
93162003-04-04 Andrew Cagney <cagney@redhat.com>
9317
9318 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9319 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9320 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9321 get_frame_base.
9322 (d10v_unwind_dummy_id): Use frame_id_build.
9323 * frame.c (find_frame_sal): Use get_frame_pc.
9324 (create_new_frame): Use deprecated_update_frame_pc_hack and
9325 deprecated_update_frame_base_hack.
9326 (create_sentinel_frame): Add comment about ->pc going away.
9327 (get_prev_frame): Add comment about ->pc going away.
9328 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9329 frame_id_build, deprecated_update_frame_pc_hack and
9330 deprecated_update_frame_base_hack.
9331 (select_frame): Use get_frame_pc.
9332 (legacy_saved_regs_this_id): Use frame_id_build.
9333
50c46a0d
EZ
93342003-04-04 Elena Zannoni <ezannoni@redhat.com>
9335
fbe586ae
RH
9336 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9337 signed integer case.
9338 (classify_argument): Handle enumerations and references.
50c46a0d 9339
50bbdbd9
AC
93402003-04-04 Andrew Cagney <cagney@redhat.com>
9341
9342 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9343 ID to NULL.
9344
36018d2e
AF
93452003-04-01 Adam Fedor <fedor@gnu.org>
9346
9347 * gdb/objc-lang.c (selectors_info): Replace calls to
9348 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9349 SYMBOL_NATURAL_NAME.
9350 (classes_info, find_methods): Likewise.
9351
35cec841
KB
93522003-04-03 Kevin Buettner <kevinb@redhat.com>
9353
9354 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9355 ``mach'' to the value determined by bfd_default_set_arch_mach().
9356
43136899
BR
93572003-04-02 Bob Rossi <bob_rossi@cox.net>
9358
9359 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9360 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9361 (mi-cmd-file.o): Update dependencies.
9362
040b99fd
KB
93632003-04-01 Kevin Buettner <kevinb@redhat.com>
9364
9365 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9366 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9367
9a3d7dfd
AF
93682003-04-01 Adam Fedor <fedor@gnu.org>
9369
9370 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9371 * language.h (struct language_defn): Add la_demangle.
9372 (language_demangle): Declare.
9373 * language.c (language_demangle): New function.
9374 (unk_lang_demangle): Likewise.
9375 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9376 Add ukn_lang_demangle.
9a3d7dfd 9377 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9378 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9379 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9380 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9381 * jv-lang.c (java_demangle): New function
9382 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9383 * objc-lang.c (objc_demangle): Add options argument
9384 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9385 * maint.c (maintenance_demangle): Replace switch with
9386 call to language_demangle.
9387 * utils.c (fprintf_symbol_filtered): Likewise.
9388
5e074003
AC
93892003-04-01 Andrew Cagney <cagney@redhat.com>
9390
9391 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9392 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9393 PRINT_TYPELESS_INTEGER.
9394 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9395 PUSH_RETURN_ADDRESS.
9396
270cb5d6
AC
93972003-04-01 Andrew Cagney <cagney@redhat.com>
9398
9399 * Makefile.in (d10v-tdep.o): Update dependencies.
9400 * d10v-tdep.c: Include "frame-base.h".
9401 (d10v_frame_unwind): Make constant.
9402 (d10v_frame_base_address): New function.
9403 (d10v_frame_base): New variable.
9404 (d10v_gdbarch_init): Set frame_base default.
9405 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9406 comment for base.
9407 (d10v_frame_unwind_cache): Set and use "prev_sp".
9408 (d10v_frame_this_id): Use the previous frame's inner most stack
9409 address and this frame's func address for the frame ID. Use
9410 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9411
6bfb3e36
AC
94122003-04-01 Andrew Cagney <cagney@redhat.com>
9413
9414 * frame.h (get_frame_locals_address, get_frame_args_address):
9415 Refer to the base address, instead of the address of the first
9416 local or parameter.
8ffd9b1b 9417
da62e633
AC
94182003-04-01 Andrew Cagney <cagney@redhat.com>
9419
9420 Add frame debug info addresses:
9421 * frame-base.c: New file.
9422 * frame-base.h: New file.
9423 * frame.h (struct frame_base): Add opaque declaration.
9424 (get_frame_base): Update comment.
9425 (get_frame_base_address): Declare.
9426 (get_frame_locals_address): Declare.
9427 (get_frame_args_address): Declare.
9428 (struct frame_info): Add "base" and "base_cache". Update
9429 comments on the unwinder.
9430 * frame.c: Include "frame-base.h".
9431 (get_frame_locals_address): New function.
9432 (get_frame_base_address): New function.
9433 (get_frame_args_address): New function.
9434 * findvar.c (read_var_value): Use get_frame_locals_address and
9435 get_frame_args_address.
9436 * stack.c (frame_info): Use get_frame_locals_address and
9437 get_frame_args_address.
9438 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9439 moved to "frame-base.c".
9440 * printcmd.c (print_frame_nameless_args): Ditto.
9441 * symtab.h (address_class): Update comments.
9442 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9443 get_frame_base_address.
9444 * dwarf2expr.c (execute_stack_op): Ditto.
9445 * Makefile.in (frame_base_h): Define.
9446 (frame.o): Update dependencies.
9447 (frame-base.o): Add dependencies.
9448 (SFILES): Add frame-base.c.
9449 (COMMON_OBS): Add frame-base.o.
9450
3d30e9c2
AC
94512003-04-01 Andrew Cagney <cagney@redhat.com>
9452
9453 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9454 CALL_DUMMY_LENGTH): Ditto.
9455 * gdbarch.c: Re-generate.
9456 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9457 (CALL_DUMMY_LENGTH): Delete macro.
9458 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9459 * arm-tdep.c (arm_gdbarch_init): Ditto.
9460 * avr-tdep.c (avr_gdbarch_init): Ditto.
9461 * cris-tdep.c (cris_gdbarch_init): Ditto.
9462 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9463 * frv-tdep.c (frv_gdbarch_init): Ditto.
9464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9465 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9466 * i386-tdep.c (i386_gdbarch_init): Ditto.
9467 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9469 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9470 * mips-tdep.c (mips_gdbarch_init): Ditto.
9471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9472 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9473 * s390-tdep.c (s390_gdbarch_init): Ditto.
9474 * sh-tdep.c (sh_gdbarch_init): Ditto.
9475 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9476 * v850-tdep.c (v850_gdbarch_init): Ditto.
9477 * vax-tdep.c (vax_gdbarch_init): Ditto.
9478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9479
ce0c7262
CV
94802003-04-01 Corinna Vinschen <vinschen@redhat.com>
9481
9482 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9483
73dd234f
AC
94842003-04-01 Andrew Cagney <cagney@redhat.com>
9485
9486 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9487 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9488 * gdbarch.h, gdbarch.c: Re-generate.
9489 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9490 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9491 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9492 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9493 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9494 * infcmd.c (run_stack_dummy): Simplify assuming
9495 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9496 * infrun.c (handle_inferior_event): Ditto.
9497 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9498 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9499 * arm-tdep.c (arm_gdbarch_init): Ditto.
9500 * avr-tdep.c (avr_gdbarch_init): Ditto.
9501 * cris-tdep.c (cris_gdbarch_init): Ditto.
9502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9503 * frv-tdep.c (frv_gdbarch_init): Ditto.
9504 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9505 * i386-tdep.c (i386_gdbarch_init): Ditto.
9506 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9508 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9509 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9510 * mips-tdep.c (mips_gdbarch_init): Ditto.
9511 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9512 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9514 * s390-tdep.c (s390_gdbarch_init): Ditto.
9515 * sh-tdep.c (sh_gdbarch_init): Ditto.
9516 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9517 * v850-tdep.c (v850_gdbarch_init): Ditto.
9518 * vax-tdep.c (vax_gdbarch_init): Ditto.
9519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9520
97606a13
DJ
95212003-04-01 Daniel Jacobowitz <drow@mvista.com>
9522
9523 * symfile.c (symfile_relocate_debug_section): Update call to
9524 bfd_simple_get_relocated_section_contents.
9525
e8ab51f7
AC
95262003-03-31 Andrew Cagney <cagney@redhat.com>
9527
9528 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9529 * gdbarch.h, gdbarch.c: Regenerate.
9530 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9531 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9532 available.
9533 * frame.h (generic_fix_call_dummy): Delete declaration.
9534 * dummy-frame.h: Update comment.
9535 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9537 fix_call_dummy.
9538 * sh-tdep.c (sh_gdbarch_init): Ditto.
9539 * s390-tdep.c (s390_gdbarch_init): Ditto.
9540 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9541 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9543 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9544 * i386-tdep.c (i386_gdbarch_init): Ditto.
9545 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9546 * frv-tdep.c (frv_gdbarch_init): Ditto.
9547 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9548 * cris-tdep.c (cris_gdbarch_init): Ditto.
9549 * avr-tdep.c (avr_gdbarch_init): Ditto.
9550 * arm-tdep.c (arm_gdbarch_init): Ditto.
9551
018d1b48
JB
95522003-03-31 J. Brobecker <brobecker@gnat.com>
9553
9554 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9555 (INIT_FRAME_AP): Likewise.
9556 (EXTRA_FRAME_INFO): Likewise.
9557
e9a2674e
AC
95582003-03-31 Andrew Cagney <cagney@redhat.com>
9559
9560 * gdbarch.sh: Include "symfile.h".
9561 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9562 * gdbarch.h, gdbarch.c: Re-generate.
9563 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9565 call_dummy_address, the default is at entry_point_address.
9566 * v850-tdep.c (v850_gdbarch_init): Ditto.
9567 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9568 * sh-tdep.c (sh_gdbarch_init): Ditto.
9569 * s390-tdep.c (s390_gdbarch_init): Ditto.
9570 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9571 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9574 * i386-tdep.c (i386_gdbarch_init): Ditto.
9575 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9576 * frv-tdep.c (frv_gdbarch_init): Ditto.
9577 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9578 * cris-tdep.c (cris_gdbarch_init): Ditto.
9579 * arm-tdep.c (arm_gdbarch_init): Ditto.
9580
e8a8712a
AC
95812003-03-31 Andrew Cagney <cagney@redhat.com>
9582
9583 * gdbarch.sh (CALL_DUMMY_P): Delete.
9584 * gdbarch.h, gdbarch.c: Re-generate.
9585 * inferior.h (CALL_DUMMY_P): Delete macro.
9586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9587 * vax-tdep.c (vax_gdbarch_init): Update.
9588 * v850-tdep.c (v850_gdbarch_init): Update.
9589 * sparc-tdep.c (sparc_gdbarch_init): Update.
9590 * sh-tdep.c (sh_gdbarch_init): Update.
9591 * s390-tdep.c (s390_gdbarch_init): Update.
9592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9593 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9595 * mips-tdep.c (mips_gdbarch_init): Update.
9596 * mcore-tdep.c (mcore_gdbarch_init): Update.
9597 * m68k-tdep.c (m68k_gdbarch_init): Update.
9598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9599 * ia64-tdep.c (ia64_gdbarch_init): Update.
9600 * i386-tdep.c (i386_gdbarch_init): Update.
9601 * h8300-tdep.c (h8300_gdbarch_init): Update.
9602 * frv-tdep.c (frv_gdbarch_init): Update.
9603 * d10v-tdep.c (d10v_gdbarch_init): Update.
9604 * cris-tdep.c (cris_gdbarch_init): Update.
9605 * breakpoint.c (deprecated_frame_in_dummy): Update.
9606 * avr-tdep.c (avr_gdbarch_init): Update.
9607 * alpha-tdep.c (alpha_gdbarch_init): Update.
9608 * arm-tdep.c (arm_gdbarch_init): Update.
9609 * dummy-frame.c (dummy_frame_this_id): Update comments.
9610 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9611 * frame.c (legacy_get_prev_frame): Ditto.
9612 * valops.c (call_function_by_hand): Delete function.
9613 (hand_function_call): Rename to call_function_by_hand
9614
ed234cf8
AC
96152003-03-30 Andrew Cagney <cagney@redhat.com>
9616
9617 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9618 * value.h (struct value): Update comment.
ed234cf8 9619
06c77151
AC
96202003-03-30 Andrew Cagney <cagney@redhat.com>
9621
6c2b5168
AC
9622 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9623 D10V_FP_REGNUM.
9624 (d10v_gdbarch_init): Do not set fp_regnum.
9625
06c77151
AC
9626 * frame.c (get_frame_base): Force ID initialization.
9627 (get_prev_frame): Move computation of the frame ID from here ...
9628 (get_frame_id): ... to here.
9629 (legacy_get_prev_frame): Mark the frame ID as valid.
9630 * frame.h (struct frame_info): Add field "id_p".
9631
97a1a11c
MK
96322003-03-30 Mark Kettenis <kettenis@gnu.org>
9633
9634 * i386-tdep.c (i386_store_struct_return): Removed.
9635 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9636
6c0e89ed
AC
96372003-03-30 Andrew Cagney <cagney@redhat.com>
9638
9639 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9640 * gdbarch.h, gdbarch.c: Regenerate.
9641 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9643 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9644 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9645 * i386-tdep.c (i386_gdbarch_init): Ditto.
9646 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9647 * cris-tdep.c (cris_gdbarch_init): Ditto.
9648 * vax-tdep.c (vax_gdbarch_init): Ditto.
9649 * s390-tdep.c (s390_gdbarch_init): Ditto.
9650 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9651 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9652 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9653 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9654 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9655 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9656 * sparc-tdep.c (sparc_gdbarch_init): Update.
9657 * sh-tdep.c (sh_gdbarch_init): Update.
9658 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9659 * mips-tdep.c (mips_gdbarch_init): Update.
9660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9661 * ia64-tdep.c (ia64_gdbarch_init): Update.
9662 * frv-tdep.c (frv_gdbarch_init): Update.
9663 * avr-tdep.c (avr_gdbarch_init): Update.
9664 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9665 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9666 instead of when push_dummy_call is not available.
8ffd9b1b 9667
f7dd6af2
AC
96682003-03-30 Andrew Cagney <cagney@redhat.com>
9669
9670 * infttrace.c: Include "gdbthread.h".
9671 (parent_attach_all): Fix function signature.
9672 (call_ptrace): Update call.
9673 * Makefile.in (infttrace.o): Update dependencies.
9674
28f617b3
AC
96752003-03-30 Andrew Cagney <cagney@redhat.com>
9676
9677 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9678 PUSH_RETURN_ADDRESS.
9679 * gdbarch.h, gdbarch.c: Regenerate.
9680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9681 * x86-64-tdep.c (x86_64_init_abi): Update.
9682 * v850-tdep.c (v850_gdbarch_init): Update.
9683 * sparc-tdep.c (sparc_gdbarch_init): Update.
9684 * sh-tdep.c (sh_gdbarch_init): Update.
9685 * s390-tdep.c (s390_gdbarch_init): Update.
9686 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9687 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9688 * mips-tdep.c (mips_gdbarch_init): Update.
9689 * mcore-tdep.c (mcore_gdbarch_init): Update.
9690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9691 * ia64-tdep.c (ia64_gdbarch_init): Update.
9692 * i386-tdep.c (i386_gdbarch_init): Update.
9693 * h8300-tdep.c (h8300_gdbarch_init): Update.
9694 * frv-tdep.c (frv_gdbarch_init): Update.
9695 * cris-tdep.c (cris_gdbarch_init): Update.
9696 * avr-tdep.c (avr_gdbarch_init): Update.
9697 * arm-tdep.c (arm_gdbarch_init): Update.
9698 * valops.c (hand_function_call): Update.
9699
4d628cd7
AC
97002003-03-29 Andrew Cagney <cagney@redhat.com>
9701
9702 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9703 sizeof_call_dummy_words.
9704 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9705 define.
9706 * gdbarch.h: Regenerate.
8ffd9b1b 9707
65e82032
AC
97082003-03-29 Andrew Cagney <cagney@redhat.com>
9709
9710 * infttrace.h: New file.
9711 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9712 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9713 (hpread_read_doc_function_type): Detect an initialized type1.
9714 (hpread_quick_traverse): Initialize mod_name_string.
9715 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9716 (som_solib_get_solib_by_pc): Declare.
9717 (so_lib_thread_start_addr): Declare.
9718 (no_shared_libraries): Declare.
9719 * somread.c (init_import_symbols): Make static. Add forward
9720 declaration.
9721 * config/pa/nm-hppah.h: Include "infttrace.h" for
9722 parent_attach_all.
9723 (hppa_insert_hw_watchpoint): Declare.
9724 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9725 * hppah-nat.c: Include "gdb_string.h".
9726 (parent_attach_all): Delete extern declaration, moved to
9727 "infttrace.h".
9728 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9729 int.
9730 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9731 * Makefile.in (infttrace_h): Define.
9732 (hpread.o): Update dependencies.
9733 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9734 * hppa-hpux-tdep.c: Include "gdb_string.h".
9735 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9736 * infrun.c (handle_inferior_event): Always initialize
9737 stepped_after_stopped_by_watchpoint. Add default and remove
9738 fallthrough in switch statement.
9739 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9740 parameter to int.
9741 (hppa_remove_hw_watchpoint): Ditto.
9742
2c3bbe77
AC
97432003-03-29 Andrew Cagney <cagney@redhat.com>
9744
9745 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9746 offset.
9747
2dd604e7
RE
97482003-03-29 Richard Earnshaw <rearnsha@arm.com>
9749
9750 * arm-tdep.c (arm_push_arguments): Delete.
9751 (struct stack_item): New type.
9752 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9753 (arm_store_struct_return): Delte.
9754 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9755 arm_push_arguments or arm_store_struct_return.
9756
e8933a55
AC
97572003-03-28 Andrew Cagney <cagney@redhat.com>
9758
9759 * Makefile.in (d10v-tdep.o): Update dependencies.
9760 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9761 * d10v-tdep.c: Include "remote.h".
9762 (target_resume_hook): Delete extern declaration.
9763 (target_wait_loop_hook): Ditto.
9764 (tdisassemble_command): Eliminate assignment in "if" conditional.
9765 (d10v_ts2_register_sim_regno): Eliminate call to
9766 legacy_register_sim_regno.
9767 (d10v_ts3_register_sim_regno): Ditto.
9768
6949171e
JJ
97692003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9770
9771 * thread.c: Reindented.
9772 * lin-lwp.c: Ditto.
9773 * linux-proc.c: Ditto.
9774
98c7071f
BR
97752003-03-28 Bob Rossi <bob_rossi@cox.net>
9776
fbe586ae 9777 * MAINTAINERS (write after approval): Add myself.
98c7071f 9778
5edc9ca6
TR
97792003-03-27 Theodore A. Roth <troth@openavr.org>
9780
9781 * objc-exp.y: Add missing semi-colons.
9782
378bfd1b
AC
97832003-03-27 Andrew Cagney <cagney@redhat.com>
9784
9785 * regcache.c (write_sp): Delete function and references.
9786 * inferior.h (write_sp): Delete declaration.
9787 * valops.c (hand_function_call): Replace write_sp with
9788 TARGET_WRITE_SP.
9789 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9790 (sparc_pop_frame): Ditto.
8ffd9b1b 9791
56056df7
AC
97922003-03-27 Andrew Cagney <cagney@redhat.com>
9793
9794 * NEWS: Mention removal of support for hppa*-*-bsd* and
9795 hppa*-*-osf* natives, and hppa*-*-pro* target.
9796 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9797 * config/pa/xm-pa.h: Obsolete file.
9798 * config/pa/xm-hppab.h: Obsolete file.
9799 * config/pa/nm-hppab.h: Obsolete file.
9800 * config/pa/tm-hppab.h: Obsolete file.
9801 * config/pa/tm-hppao.h: Obsolete file.
9802 * config/pa/nm-hppao.h: Obsolete file.
9803 * config/pa/tm-pro.h: Obsolete file.
9804 * config/pa/hppaosf.mt: Obsolete file.
9805 * config/pa/hppaosf.mh: Obsolete file.
9806 * config/pa/hppapro.mt: Obsolete file.
9807 * config/pa/hppabsd.mt: Obsolete file.
9808 * config/pa/hppabsd.mh: Obsolete file.
9809 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9810 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9811 hppa*-*-osf*.
9812
5873a88d
AC
98132003-03-27 Andrew Cagney <cagney@redhat.com>
9814
9815 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9816 push_arguments. Don't set push_return_address or write_sp.
9817 (d10v_push_dummy_call): Replace d10v_push_arguments.
9818 (d10v_push_return_address, d10v_write_sp): Delete function,
9819 handled by push_dummy_call.
9820
b81774d8
AC
98212003-03-26 Andrew Cagney <cagney@redhat.com>
9822
9823 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9824 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9825 regcache and dummy_addr parameters.
9826 * gdbarch.h, gdbarch.c: Re-generate.
9827 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9828 available; assume it will handle stack alignment and return
9829 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9830 legacy_push_arguments.
9831 (legacy_push_arguments): Rename default_push_arguments.
9832 * value.h (legacy_push_arguments): Rename default_push_arguments.
9833 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9834 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9835 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9836 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9837 * config/i386/tm-symmetry.h: Update.
9838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9839 * x86-64-tdep.c (x86_64_init_abi): Update.
9840 * v850-tdep.c (v850_gdbarch_init): Update.
9841 * sparc-tdep.c (sparc_gdbarch_init): Update.
9842 * sh-tdep.c (sh_gdbarch_init): Update.
9843 * s390-tdep.c (s390_gdbarch_init): Update.
9844 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9845 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9846 * mips-tdep.c (mips_gdbarch_init): Update.
9847 * mcore-tdep.c (mcore_gdbarch_init): Update.
9848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9849 * ia64-tdep.c (ia64_gdbarch_init): Update.
9850 * i386-tdep.c (i386_gdbarch_init): Update.
9851 * hppa-tdep.c (hppa_gdbarch_init): Update.
9852 * h8300-tdep.c (h8300_gdbarch_init): Update.
9853 * frv-tdep.c (frv_gdbarch_init): Update.
9854 * d10v-tdep.c (d10v_gdbarch_init): Update.
9855 * cris-tdep.c (cris_gdbarch_init): Update.
9856 * avr-tdep.c (avr_gdbarch_init): Update.
9857 * arm-tdep.c (arm_gdbarch_init): Update.
9858 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9859 * alpha-tdep.c (alpha_gdbarch_init): Update.
9860
f541410f
DJ
98612003-03-26 Daniel Jacobowitz <drow@mvista.com>
9862
9863 * signals/signals.c (do_target_signal_to_host): Correct realtime
9864 signal range test.
9865
69f567ae
DJ
98662003-03-26 Daniel Jacobowitz <drow@mvista.com>
9867
9868 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9869 (struct sal_chain, map_catch_names): Remove.
9870 (catch_exception_command_1): Don't call
9871 handle_gnu_4_16_catch_command.
9872
d5d14a5a
DJ
98732003-03-26 Daniel Jacobowitz <drow@mvista.com>
9874
9875 From Mark Dettinger <dettinge@de.ibm.com>:
9876 * dwarf2cfi.c (read_2u): Increment pointer by two.
9877
bdd73e22
DJ
98782003-03-26 Daniel Jacobowitz <drow@mvista.com>
9879
9880 * signals/signals.c: Fix typos in last change.
9881
960cb555
DJ
98822003-03-26 Daniel Jacobowitz <drow@mvista.com>
9883
9884 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9885 not already defined. Use __SIGRTMIN if available.
9886 (target_signal_from_host): Remove SIGRTMIN block.
9887 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9888 the signal is within the realtime range.
9889
f636b87d
AF
98902003-03-25 Adam Fedor <fedor@gnu.org>
9891
9892 * Makefile.in (infrun.o): Add $(language_h)
9893 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9894 for language specific trampolines.
9895 * language.h (struct language_defn): Add skip_trampoline.
9896 (skip_language_trampoline): Declare.
9897 * language.c (unk_lang_trampoline, skip_language_trampoline):
9898 New functions.
9899 (unknown_language_defn, auto_language_defn, local_language_defn):
9900 Add ukn_lang_trampoline.
9901 * ada-lang.c (ada_language_defn): Add NULL for language
9902 specific skip_trampoline.
9903 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9904 scm-lang.c: Likewise.
9905 * objc-lang.c (objc_skip_trampoline): New function.
9906 (objc_language_defn): Add objc_skip_trampoline.
9907
28f617b3 99082003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9909
9910 * frame.c (get_prev_frame): Delay validating a frame's ID -
9911 non-NULL, didn't go backwards - until an attempt to unwind it to
9912 the previous frame.
9913
f933a9c5
AC
99142003-03-25 Andrew Cagney <cagney@redhat.com>
9915
9916 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9917 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9918 * gdbarch.h, gdbarch.c: Re-generate.
9919 * config/sparc/tm-sparc.h
9920 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9921 * sparc-tdep.c (sparc_gdbarch_init): Set
9922 deprecated_extra_stack_alignment_needed.
9923 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9924 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9925 extra_stack_alignment_needed.
9926 * v850-tdep.c (v850_gdbarch_init): Ditto.
9927 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9928 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9929 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9930 * cris-tdep.c (cris_gdbarch_init): Ditto.
9931 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9933
4183d812
AC
99342003-03-25 Andrew Cagney <cagney@redhat.com>
9935
9936 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9937 STORE_STRUCT_RETURN.
9938 * gdbarch.h, gdbarch.c: Regenerate.
9939 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9940 (d10v_push_arguments): Set the struct return register.
9941 (d10v_gdbarch_init): Update.
9942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9943 * x86-64-tdep.c (x86_64_init_abi): Update.
9944 * vax-tdep.c (vax_gdbarch_init): Update.
9945 * v850-tdep.c (v850_gdbarch_init): Update.
9946 * sparc-tdep.c (sparc_gdbarch_init): Update.
9947 * sh-tdep.c (sh_gdbarch_init): Update.
9948 * s390-tdep.c (s390_gdbarch_init): Update.
9949 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9950 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9952 * mips-tdep.c (mips_gdbarch_init): Update.
9953 * mcore-tdep.c (mcore_gdbarch_init): Update.
9954 * m68k-tdep.c (m68k_gdbarch_init): Update.
9955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9956 * ia64-tdep.c (ia64_gdbarch_init): Update.
9957 * i386-tdep.c (i386_gdbarch_init): Update.
9958 * hppa-tdep.c (hppa_gdbarch_init): Update.
9959 * h8300-tdep.c (h8300_gdbarch_init): Update.
9960 * frv-tdep.c (frv_gdbarch_init): Update.
9961 * cris-tdep.c (cris_gdbarch_init): Update.
9962 * avr-tdep.c (avr_gdbarch_init): Update.
9963 * arm-tdep.c (arm_gdbarch_init): Update.
9964 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9965
1bf6d5cc
AC
99662003-03-25 Andrew Cagney <cagney@redhat.com>
9967
9968 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9969 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9970 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9971 * gdbarch.h, gdbarch.c: Regenerate.
9972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9973 call_dummy_stack_adjust_p.
9974 * vax-tdep.c (vax_gdbarch_init): Ditto.
9975 * v850-tdep.c (v850_gdbarch_init): Ditto.
9976 * sh-tdep.c (sh_gdbarch_init): Ditto.
9977 * s390-tdep.c (s390_gdbarch_init): Ditto.
9978 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9979 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9980 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9981 * mips-tdep.c (mips_gdbarch_init): Ditto.
9982 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9983 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9985 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9986 * i386-tdep.c (i386_gdbarch_init): Ditto.
9987 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9988 * frv-tdep.c (frv_gdbarch_init): Ditto.
9989 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9990 * cris-tdep.c (cris_gdbarch_init): Ditto.
9991 * avr-tdep.c (avr_gdbarch_init): Ditto.
9992 * arm-tdep.c (arm_gdbarch_init): Ditto.
9993 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9994 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9995 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9996 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9997 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9998 call_dummy_stack_adjust_p.
9999 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10000 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10001 * sparc-tdep.c (sparc32_push_arguments): Update.
10002 * valops.c (hand_function_call): Update.
10003
71c08af0
CV
100042003-03-25 Corinna Vinschen <vinschen@redhat.com>
10005
10006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10007 set_gdbarch_char_signed.
10008
30757f90
RE
100092003-03-25 Richard Earnshaw <rearnsha@arm.com>
10010
10011 PR cli/548
10012 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10013
03d48a7d
RE
100142003-03-25 Richard Earnshaw <rearnsha@arm.com>
10015
10016 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10017 (_initialize_arm_tdep): Don't set tm_print_insn.
10018
2cf6873c
AF
100192003-03-24 Adam Fedor <fedor@gnu.org>
10020
10021 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10022 * objc-lang.h: Add multiple inclusion protection.
10023 (start_msglist, add_msglist, end_msglist): Additional declarations.
10024
17c0759e
RE
100252003-03-24 Richard Earnshaw <rearnsha@arm.com>
10026
10027 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10028 value was renamed to ARM_FLOAT_SOFT_FPA.
10029
618ce49f
AC
100302003-03-23 Andrew Cagney <cagney@redhat.com>
10031
10032 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10033 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10034 * gdbarch.h, gdbarch.c: Regenerate.
10035 * valops.c (hand_function_call): Update.
10036 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10037 * frame.c (legacy_saved_regs_this_id): Update.
10038 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10039 * dummy-frame.h: Update.
10040 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10041 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10042 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10043 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10044 * config/m68k/tm-sun3.h: Update.
10045 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10047 * x86-64-tdep.c (x86_64_init_abi): Update.
10048 * vax-tdep.c (vax_gdbarch_init): Update.
10049 * v850-tdep.c (v850_gdbarch_init): Update.
10050 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10051 * sh-tdep.c (sh_gdbarch_init): Update.
10052 * s390-tdep.c (s390_gdbarch_init): Update.
10053 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10054 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10055 (frame_get_saved_regs): Update.
10056 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10057 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10058 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10059 * mips-tdep.c (mips_gdbarch_init): Update.
10060 * mcore-tdep.c (mcore_gdbarch_init): Update.
10061 * m68k-tdep.c (m68k_gdbarch_init): Update.
10062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10063 * ia64-tdep.c (ia64_gdbarch_init): Update.
10064 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10065 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10066 (i386_interix_back_one_frame): Update.
10067 * hppa-tdep.c (hppa_gdbarch_init): Update.
10068 (hppa_init_extra_frame_info): Update.
10069 * h8300-tdep.c (h8300_gdbarch_init): Update.
10070 * frv-tdep.c (frv_gdbarch_init): Update.
10071 * cris-tdep.c (cris_gdbarch_init): Update.
10072 * avr-tdep.c (avr_gdbarch_init): Update.
10073 * arm-tdep.c (arm_gdbarch_init): Update.
10074 * alpha-tdep.c (alpha_gdbarch_init): Update.
10075
fd50bc42
RE
100762003-03-22 Richard Earnshaw <rearnsha@arm.com>
10077
10078 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10079 (arm_get_fp_model): Declare.
10080 * arm-tdep.c (fp_model_strings): New string array.
10081 (arm_fp_model, current_fp_model): New variables.
10082 (arm_get_fp_model): New function.
10083 (arm_set_fp): New function.
10084 (set_fp_model_sfunc): New function.
10085 (show_fp_model): New function.
10086 (_initialize_arm_tdep): Add new command to set/show the FPU.
10087 (arm_extract_return_value): Use arm_get_fp_model.
10088 (arm_store_return_value): Likewise.
10089 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10090 to initialize the floating-point data types.
10091 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10092 model is FPA.
10093
26304000
RE
100942003-03-22 Richard Earnshaw <rearnsha@arm.com>
10095
10096 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10097 the current setting of each value.
10098 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10099 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10100 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10101 commands and add new version as subcommands of "set/show arm".
10102
afd7eef0
RE
101032003-03-22 Richard Earnshaw <rearnsha@arm.com>
10104
10105 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10106 (set_arm_command, show_arm_command): New functions.
10107 (_initialize_arm_tdep): Add them.
10108 (num_disassembly_options): Renamed from num_flavor_options.
10109 (valid_disassembly_styles): Renamed from valid_flavors.
10110 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10111 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10112 set_disassembly_flavor_sfunc.
10113 (set_disassembly_style): Renamed from set_disassembly_flavor.
10114 (arm_othernames): Updated.
10115 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10116 command. Add "set/show arm disassembly" commands. Deprecate
10117 "othernames" command.
10118
299a7944
RE
101192003-03-22 Richard Earnshaw <rearnsha@arm.com>
10120
10121 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10122 (arm-tdep.o): Depend on elf_arm_h.
10123
c1dac9e6
RE
101242003-03-22 Richard Earnshaw <rearnsha@arm.com>
10125
10126 * Makefile.in (coff_internal_h): Define.
10127 (arm-tdep.o): Update dependencies.
10128
2702d96c
RE
101292003-03-22 Richard Earnshaw <rearnsha@arm.com>
10130
10131 * arm-tdep.c (prologue_cache): Delete.
10132 (check_prologue_cache, save_prologue_cache): Delete.
10133 (arm_scan_prologue): Don't check or update the prologue_cache.
10134 (arm_gdb_arch_init): Don't initialize it.
10135 (_initialize_arm_tdep): Likewise.
10136
27d5d74b
SC
101372003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10138
10139 * MAINTAINERS (tui): Maintainer of tui code.
10140
1762d96d
CV
101412003-03-21 Corinna Vinschen <vinschen@redhat.com>
10142
10143 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10144 (i386-cygwin-tdep.o): Add dependencies.
10145 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10146 * i386-cygwin-tdep.c: New file.
10147 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10148 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10149
4c2e2391
AC
101502003-03-20 Andrew Cagney <cagney@redhat.com>
10151
f20d38b7
AC
10152 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10153 (handle_inferior_event): Remove code calling
10154 DYNAMIC_TRAMPOLINE_NEXTPC.
10155
0022b738
AC
10156 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10157 already has a full path.
10158
864dbc90
AC
10159 * main.c (gdb_main): Return 1.
10160 (captured_main): Call error to report an invalid interpreter.
10161
4c2e2391
AC
10162 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10163 * alpha-osf1-tdep.c: Include "gdb_string.h".
10164
5ef7553b
JB
101652003-03-19 J. Brobecker <brobecker@gnat.com>
10166
10167 Continuing work to convert the hppa targets to multiarch partial.
10168
10169 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10170 method, now that hppa_push_dummy_frame has a conformant prototype.
10171 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10172 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10173 for the switch to multiarch partial.
10174
7bde8967
KB
101752003-03-19 Kevin Buettner <kevinb@redhat.com>
10176
10177 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10178 when iss is issNull.
10179
b006a9e9
KB
101802003-03-18 Kevin Buettner <kevinb@redhat.com>
10181
10182 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10183 NUM_REGS bounds check.
10184
5e2e9765
KB
101852003-03-18 Kevin Buettner <kevinb@redhat.com>
10186
10187 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10188 * mips-tdep.c (gdb_assert.h): Include.
10189 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10190 (mips_register_name): Handle integer registers explicitly. Add
10191 bounds checking.
10192 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10193 (mips_lsi33k_reg_names): Don't list integer registers; they're
10194 handled by mips_register_name() now.
10195 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10196 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10197 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10198 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10199 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10200
a2867626
AC
102012003-03-18 Andrew Cagney <cagney@redhat.com>
10202
10203 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10204 a void pointer.
10205 * gdbtypes.h (print_scalar_formatted): Update declaration.
10206 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10207
06600e06
JB
102082003-03-18 J. Brobecker <brobecker@gnat.com>
10209
10210 * infrun.c (observer.h): Add #include.
10211 (normal_stop): Add call to observer_notify_normal_stop.
10212 * Makefile.in (infrun.o): Add dependency on observer.h.
10213
7daf4f5b
JB
102142003-03-18 J. Brobecker <brobecker@gnat.com>
10215
10216 Continuing work to convert the hppa targets to multiarch partial.
10217 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10218 parameter. Reformat comment.
10219 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10220 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10221 to match new profile.
10222
3371ccc0
JB
102232003-03-18 J. Brobecker <brobecker@gnat.com>
10224
10225 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10226 appear to be working in any case.
10227
4fbe891e
JB
102282003-03-18 J. Brobecker <brobecker@gnat.com>
10229
10230 * observer.c (observer_test_first_observer): New static variable.
10231 (observer_test_second_observer): Likewise.
10232 (observer_test_third_observer): Likewise.
10233 (observer_test_first_notification_function): New static function.
10234 (observer_test_second_notification_function): Likewise.
10235 (observer_test_third_notification_function): Likewise.
10236
a7ff40e7
JB
102372003-03-17 J. Brobecker <brobecker@gnat.com>
10238
10239 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10240 * somsolib.c (gdb_assert.h): Likewise.
10241 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10242 (somsolib.o): Likewise.
10243
26ca4152
AC
102442003-03-17 Andrew Cagney <cagney@redhat.com>
10245
10246 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10247 BFD. Simplify setting of di.endian.
10248
0a613259
AC
102492003-03-17 Andrew Cagney <cagney@redhat.com>
10250
10251 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10252 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10253
10254 From Elena Zannoni <ezannoni@redhat.com>
10255 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10256 vector and floating-point parameters.
10257 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10258 convention.
10259 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10260
1132738f
FN
102612003-03-17 Fernando Nasser <fnasser@redhat.com>
10262
10263 * MAINTAINERS: Remove my name from several maintainership roles.
10264
6dc42492
AC
102652003-03-17 Andrew Cagney <cagney@redhat.com>
10266
10267 Fix frame off-by-one bug.
10268 * frame-unwind.h (frame_this_id_ftype): Replace
10269 frame_unwind_id_ftype.
10270 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10271 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10272 with "prev_register".
10273 * frame-unwind.c (frame_unwind_find_by_pc): Return
10274 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10275 comment.
10276 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10277 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10278 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10279 (dummy_frame_unwind): Update.
10280 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10281 sentinel_frame_register_unwind.
10282 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10283 (sentinel_frame_unwinder): Update.
10284 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10285 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10286 * frame.c (create_sentinel_frame): Update. Initialize
10287 "prologue_cache" instead of "unwind_cache".
10288 (frame_register_unwind): Call this frame's prev_register with the
10289 next frame and this frame's prologue cache.
10290 (get_prev_frame): Simplify. Always call prev frame's this_id with
10291 this frame and prev frame's prologue cache. Document that this
10292 call is shifted one to the left when compared to the
10293 frame_register_unwind call.
10294 (legacy_saved_regs_prev_register): Replace
10295 frame_saved_regs_register_unwind.
10296 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10297 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10298 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10299 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10300 (d10v_frame_unwind): Update.
10301 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10302 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10303 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10304 "saved_regs" with "this_saved_regs".
10305
efd710d6
AC
103062003-03-16 Andrew Cagney <cagney@redhat.com>
10307
10308 * frame.c (frame_pop): Don't call target_store_registers. Fix
10309 problem reported by Mark Kettenis.
10310
4e259f09
MK
103112003-03-16 Mark Kettenis <kettenis@gnu.org>
10312
10313 * i386-tdep.c (i386_register_type): Renamed from
10314 i386_register_virtual_type. Adjust function signature.
10315 (i386_gdbarch_init): Set register_type instead of
10316 deprecated_max_register_raw_size,
10317 deprecated_max_register_virtual_size and register_virtual_type.
10318
055bb976
AC
103192003-03-14 Andrew Cagney <cagney@redhat.com>
10320
10321 * frame.c (get_prev_frame): When a legacy frame, always call
10322 legacy_get_prev_frame. Simplify unwind code using assumption that
10323 the unwinder is new.
10324 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10325 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10326 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10327
ac2adee5
AC
103282003-03-14 Andrew Cagney <cagney@redhat.com>
10329
10330 * frame.c (get_saved_register): Delete function.
10331 * frame.h (get_saved_register): Delete declaration.
10332 * xstormy16-tdep.c: Update comment.
10333 * regcache.h: Update comments.
10334 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10335 get_saved_register and extract_address, use
10336 frame_read_unsigned_register.
10337 (sparc_frame_saved_pc): Ditto.
10338 (sparc_get_saved_register): Instead of get_saved_register, use
10339 frame_register.
10340 (sparc_pop_frame): Ditto.
10341 * findvar.c: Update comments.
10342 (value_of_register): Call frame_register instead of
10343 get_saved_register.
10344 (value_from_register): Ditto.
10345 * config/sparc/tm-sparc.h: Update comment.
10346 * breakpoint.c: Update comment.
10347
129c1cd6
AC
103482003-03-14 Andrew Cagney <cagney@redhat.com>
10349
10350 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10351 GET_SAVED_REGISTER.
10352 * gdbarch.h, gdbarch.c: Re-generate.
10353 * frame.h: Update comments.
10354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10355 * x86-64-tdep.c (x86_64_init_abi): Update.
10356 * sparc-tdep.c (sparc_gdbarch_init): Update.
10357 * sh-tdep.c (sh_gdbarch_init): Update.
10358 * mips-tdep.c (mips_gdbarch_init): Update.
10359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10360 * cris-tdep.c (cris_gdbarch_init): Update.
10361 * ia64-tdep.c (ia64_gdbarch_init): Update.
10362 * frame.c (frame_register): Update.
10363 (get_saved_register): Update.
10364 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10365
749b82f6
AC
103662003-03-13 Andrew Cagney <cagney@redhat.com>
10367
10368 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10369 * gdbarch.h, gdbarch.c: Regenerate.
10370 * valops.c (hand_function_call): Update comment.
10371 * stack.c (return_command): Update comment.
10372 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10373 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10375 * x86-64-tdep.c (x86_64_init_abi): Update.
10376 * vax-tdep.c (vax_gdbarch_init): Update.
10377 * v850-tdep.c (v850_gdbarch_init): Update.
10378 * sparc-tdep.c (sparc_gdbarch_init): Update.
10379 * sh-tdep.c (sh_gdbarch_init): Update.
10380 * s390-tdep.c (s390_gdbarch_init): Update.
10381 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10382 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10383 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10384 * mips-tdep.c (mips_gdbarch_init): Update.
10385 * mcore-tdep.c (mcore_gdbarch_init): Update.
10386 * m68k-tdep.c (m68k_gdbarch_init): Update.
10387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10388 * ia64-tdep.c (ia64_gdbarch_init): Update.
10389 * i386-tdep.c (i386_gdbarch_init): Update.
10390 * hppa-tdep.c (hppa_gdbarch_init): Update.
10391 * h8300-tdep.c (h8300_gdbarch_init): Update.
10392 * frv-tdep.c (frv_gdbarch_init): Update.
10393 * cris-tdep.c (cris_gdbarch_init): Update.
10394 * avr-tdep.c (avr_gdbarch_init): Update.
10395 * arm-tdep.c (arm_gdbarch_init): Update.
10396 * alpha-tdep.c (alpha_gdbarch_init): Update.
10397
1594fa56
AC
103982003-03-13 Andrew Cagney <cagney@redhat.com>
10399
10400 * frame.c (legacy_frame_p): New function.
10401 (get_prev_frame): Use legacy_frame_p.
10402 * frame.h (legacy_frame_p): Declare.
10403
7717fda3
V
104042003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10405
fbe586ae 10406 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10407 listing corrected.
10408
0c67cbe9
V
104092003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10410
fbe586ae 10411 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10412
03febf99
AC
104132003-03-12 Andrew Cagney <cagney@redhat.com>
10414
10415 * frame.c (get_prev_frame): Rename the frame parameter to
10416 "this_frame".
10417 (get_next_frame, legacy_get_prev_frame): Ditto.
10418
0a1e1ca1
AC
104192003-03-12 Andrew Cagney <cagney@redhat.com>
10420
10421 * frame.c (get_current_frame): Check target_has_registers before
10422 checking target_has_stack.
10423 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10424 instead of deprecated_selected_frame.
10425 * findvar.c (value_of_register): Pass "frame", not
10426 deprecated_selected_frame, to value_of_builtin_reg.
10427
a66a9c23
AC
104282003-03-12 Andrew Cagney <cagney@redhat.com>
10429
10430 * regcache.c (regcache_cooked_write_signed): New function.
10431 (regcache_cooked_write_unsigned): New function.
10432 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10433 (regcache_cooked_read_signed): Fix regnum in range assertion.
10434 * regcache.h (regcache_cooked_write_signed): Declare.
10435 (regcache_cooked_write_unsigned): Declare.
10436
8bedc050
AC
104372003-03-12 Andrew Cagney <cagney@redhat.com>
10438
10439 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10440 * gdbarch.h, gdbarch.c: Re-generate.
10441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10442 * x86-64-tdep.h: Update.
10443 * x86-64-tdep.c (x86_64_init_abi): Update.
10444 * v850-tdep.c (v850_gdbarch_init): Update.
10445 * sparc-tdep.c (sparc_gdbarch_init): Update.
10446 * sh-tdep.c (sh_gdbarch_init): Update.
10447 * s390-tdep.c (s390_gdbarch_init): Update.
10448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10449 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10450 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10451 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10452 * mips-tdep.c (mips_gdbarch_init): Update.
10453 * mcore-tdep.c (mcore_gdbarch_init): Update.
10454 * m68k-tdep.c (m68k_gdbarch_init): Update.
10455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10456 * ia64-tdep.c (ia64_gdbarch_init): Update.
10457 * i386-tdep.c (i386_gdbarch_init): Update.
10458 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10459 * hppa-tdep.c (hppa_gdbarch_init): Update.
10460 * h8300-tdep.c (h8300_gdbarch_init): Update.
10461 * frv-tdep.c (frv_gdbarch_init): Update.
10462 * cris-tdep.c (cris_gdbarch_init): Update.
10463 * avr-tdep.c (avr_gdbarch_init): Update.
10464 * arm-tdep.c (arm_gdbarch_init): Update.
10465 * alpha-tdep.c (alpha_gdbarch_init): Update.
10466 * sh-tdep.c (sh_init_extra_frame_info): Update.
10467 (sh64_init_extra_frame_info): Update.
10468 * ns32knbsd-nat.c (frame_num_args): Update.
10469 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10470 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10471 (xstormy16_frame_chain_valid): Update.
10472 * vax-tdep.c (vax_saved_pc_after_call): Update.
10473 * v850-tdep.c (v850_frame_chain): Update.
10474 (v850_pop_frame): Update.
10475 (v850_init_extra_frame_info): Update.
10476 * sparc-tdep.c (setup_arbitrary_frame): Update.
10477 * ns32k-tdep.c (umax_frame_num_args): Update.
10478 * s390-tdep.c (s390_pop_frame_regular): Update.
10479 * mn10300-tdep.c (mn10300_frame_chain): Update.
10480 (mn10300_pop_frame_regular): Update.
10481 (mn10300_init_extra_frame_info): Update.
10482 * mips-tdep.c (mips_init_frame_pc_first): Update.
10483 (mips_frame_chain): Update.
10484 (mips_pop_frame): Update.
10485 * mcore-tdep.c (mcore_frame_chain): Update.
10486 (mcore_pop_frame): Update.
10487 (mcore_init_extra_frame_info): Update.
10488 * arch-utils.c (init_frame_pc_default): Update.
10489 * m68k-tdep.c (isi_frame_num_args): Update.
10490 (delta68_frame_num_args): Update.
10491 (news_frame_num_args): Update.
10492 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10493 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10494 (alpha_frame_chain): Update.
10495 (alpha_pop_frame): Update.
10496 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10497 (hppa_init_extra_frame_info): Update.
10498 (hppa_frame_chain): Update.
10499 (hppa_frame_chain_valid): Update.
10500 * cris-tdep.c (cris_init_extra_frame_info): Update.
10501 * avr-tdep.c (avr_init_extra_frame_info): Update.
10502 * arm-tdep.c (arm_frame_chain_valid): Update.
10503 (arm_init_extra_frame_info): Update.
10504 (arm_pop_frame): Update.
10505 * frame.c (frame_pc_unwind): Update.
10506 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10507 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10508 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10509 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10510 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10511 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10512
7a25a7c1
AC
105132003-03-12 Andrew Cagney <cagney@redhat.com>
10514
10515 Eliminate the need for POP_FRAME.
10516 * frame.c (do_frame_unwind_register): New function.
10517 (frame_pop): When no POP_FRAME, pop the frame using register
10518 unwind and a scratch regcache.
10519 (frame_saved_regs_pop): Delete function.
10520 (trad_frame_unwinder): Update.
10521 * d10v-tdep.c (d10v_frame_pop): Delete function.
10522 (d10v_frame_unwind): Update.
10523 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10524 (sentinel_frame_unwinder): Update.
10525 * dummy-frame.c (dummy_frame_pop): Delete function.
10526 (dummy_frame_unwind): Update.
10527 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10528 (struct frame_unwind): Update.
10529
2f38ef89
KB
105302003-03-11 Kevin Buettner <kevinb@redhat.com>
10531
10532 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10533 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10534 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10535 Do range checks on register number obtained from debugging info.
10536 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10537 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10538 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10539 mapping function.
10540 (do_fp_register_row): Fix typo which caused double type to be
10541 used when attempting to unpack a float.
10542
552f4abf
JB
105432003-03-11 J. Brobecker <brobecker@gnat.com>
10544
10545 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10546
e0d2ae16
AC
105472003-03-11 Andrew Cagney <cagney@redhat.com>
10548
10549 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10550 frame. Problem found by Corinna Vinschen.
10551
ddbfdd06
PM
105522003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10553
10554 * doublest.c (floatformat_from_length): Accept also
10555 the real size of 'long double' type.
10556
088b2ddc 105572003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10558
088b2ddc 10559 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10560 * breakpoint.c (bpstat_copy): Copy the command lines as well
10561 as the old value, to match what is freed in bpstat_clear.
10562
f56f77c1
DC
105632003-03-10 David Carlton <carlton@math.stanford.edu>
10564
10565 * minsyms.c (add_minsym_to_hash_table): Replace
10566 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10567 (compare_minimal_symbols, compact_minimal_symbols)
10568 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10569 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10570 of DEPRECATED_SYMBOL_MATCHES_NAME.
10571 (lookup_minimal_symbol_solib_trampoline): Ditto.
10572
5602984a
AC
105732003-03-10 Andrew Cagney <cagney@redhat.com>
10574
10575 * regcache.h (regcache_cooked_read_ftype): Define.
10576 (regcache_save, regcache_restore): Add a cooked_read parameter.
10577 * regcache.c (regcache_save, regcache_restore): Update.
10578 (do_cooked_read): New function.
10579 (regcache_cpy): Pass do_cooked_read to regcache_save and
10580 regcache_restore.
10581
8bedc050
AC
105822003-03-10 Andrew Cagney <cagney@redhat.com>
10583
10584 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10585 * gdbarch.h, gdbarch.c: Re-generate.
10586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10587 * x86-64-tdep.h: Update.
10588 * x86-64-tdep.c (x86_64_init_abi): Update.
10589 * v850-tdep.c (v850_gdbarch_init): Update.
10590 * sparc-tdep.c (sparc_gdbarch_init): Update.
10591 * sh-tdep.c (sh_gdbarch_init): Update.
10592 * s390-tdep.c (s390_gdbarch_init): Update.
10593 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10594 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10595 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10596 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10597 * mips-tdep.c (mips_gdbarch_init): Update.
10598 * mcore-tdep.c (mcore_gdbarch_init): Update.
10599 * m68k-tdep.c (m68k_gdbarch_init): Update.
10600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10601 * ia64-tdep.c (ia64_gdbarch_init): Update.
10602 * i386-tdep.c (i386_gdbarch_init): Update.
10603 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10604 * hppa-tdep.c (hppa_gdbarch_init): Update.
10605 * h8300-tdep.c (h8300_gdbarch_init): Update.
10606 * frv-tdep.c (frv_gdbarch_init): Update.
10607 * cris-tdep.c (cris_gdbarch_init): Update.
10608 * avr-tdep.c (avr_gdbarch_init): Update.
10609 * arm-tdep.c (arm_gdbarch_init): Update.
10610 * alpha-tdep.c (alpha_gdbarch_init): Update.
10611 * sh-tdep.c (sh_init_extra_frame_info): Update.
10612 (sh64_init_extra_frame_info): Update.
10613 * ns32knbsd-nat.c (frame_num_args): Update.
10614 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10615 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10616 (xstormy16_frame_chain_valid): Update.
10617 * vax-tdep.c (vax_saved_pc_after_call): Update.
10618 * v850-tdep.c (v850_frame_chain): Update.
10619 (v850_pop_frame): Update.
10620 (v850_init_extra_frame_info): Update.
10621 * sparc-tdep.c (setup_arbitrary_frame): Update.
10622 * ns32k-tdep.c (umax_frame_num_args): Update.
10623 * s390-tdep.c (s390_pop_frame_regular): Update.
10624 * mn10300-tdep.c (mn10300_frame_chain): Update.
10625 (mn10300_pop_frame_regular): Update.
10626 (mn10300_init_extra_frame_info): Update.
10627 * mips-tdep.c (mips_init_frame_pc_first): Update.
10628 (mips_frame_chain): Update.
10629 (mips_pop_frame): Update.
10630 * mcore-tdep.c (mcore_frame_chain): Update.
10631 (mcore_pop_frame): Update.
10632 (mcore_init_extra_frame_info): Update.
10633 * arch-utils.c (init_frame_pc_default): Update.
10634 * m68k-tdep.c (isi_frame_num_args): Update.
10635 (delta68_frame_num_args): Update.
10636 (news_frame_num_args): Update.
10637 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10638 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10639 (alpha_frame_chain): Update.
10640 (alpha_pop_frame): Update.
10641 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10642 (hppa_init_extra_frame_info): Update.
10643 (hppa_frame_chain): Update.
10644 (hppa_frame_chain_valid): Update.
10645 * cris-tdep.c (cris_init_extra_frame_info): Update.
10646 * avr-tdep.c (avr_init_extra_frame_info): Update.
10647 * arm-tdep.c (arm_frame_chain_valid): Update.
10648 (arm_init_extra_frame_info): Update.
10649 (arm_pop_frame): Update.
10650 * frame.c (frame_pc_unwind): Update.
10651 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10652 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10653 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10654 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10655 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10656 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10657
12cc2063
AC
106582003-03-10 Andrew Cagney <cagney@redhat.com>
10659
10660 * gdbarch.sh (gdbarch_unwind_pc): New method.
10661 * gdbarch.h, gdbarch.c: Regenerate.
10662 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10663 but use read_pc and FRAME_SAVED_PC as fall backs.
10664 (frame_saved_regs_pc_unwind): Delete function.
10665 (trad_frame_unwinder): Update.
10666 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10667 (struct frame_unwind): Update.
10668 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10669 (dummy_frame_unwind): Update.
10670 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10671 (sentinel_frame_unwinder): Update.
10672 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10673 (d10v_frame_unwind): Update.
10674 (d10v_unwind_pc): New function.
10675 (d10v_gdbarch_init): Set unwind_pc.
10676
ef840a37
AC
106772003-03-10 Andrew Cagney <cagney@redhat.com>
10678
a2ce2e56
AC
10679 * gdbarch.h: Re-generate.
10680
ef840a37
AC
10681 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10682 PC.
10683 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10684 the PC register.
10685
08f3424b
MK
106862003-03-08 Mark Kettenis <kettenis@gnu.org>
10687
10688 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10689
1248ede2
AC
106902003-03-08 Andrew Cagney <cagney@redhat.com>
10691
10692 * cli-out.c: Update copyright.
10693 (cli_out_data): Define typedef. Use instead of ui_out_data.
10694
f49bacc8
AC
106952003-03-08 Andrew Cagney <cagney@redhat.com>
10696
10697 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10698 the result.
10699
9b05f993
AC
107002003-03-07 Andrew Cagney <cagney@redhat.com>
10701
10702 * gdbarch.sh: Don't generate two macro definitions when an
10703 undefined macro taking no arguments.
10704 * gdbarch.h: Regenerate.
8ffd9b1b 10705
166f4c7b
ML
107062002-03-07 Michal Ludvig <mludvig@suse.cz>
10707
10708 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10709 (x86_64_unwind_dummy_id): New functions.
10710 (x86_64_init_abi): Register these two new functions.
10711
6d686a84
ML
107122003-03-07 Michal Ludvig <mludvig@suse.cz>
10713
10714 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10715 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10716 separate function.
10717 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10718
6314f104
AC
107192003-03-05 Andrew Cagney <cagney@redhat.com>
10720
10721 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10722 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10723 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10724 to use unwind_dummy_id when a dummy frame.
10725 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10726 predicate.
10727 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10728
ceea5145
AC
107292003-03-05 Andrew Cagney <cagney@redhat.com>
10730
10731 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10732 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10733 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10734 values.
10735
0d843116
AC
107362003-03-05 Andrew Cagney <cagney@redhat.com>
10737
10738 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10739 (struct d10v_unwind_cache): Delete field "frameless". Replace
10740 "next_addr" with "sp_offset". Add "r11_offset".
10741 (d10v_frame_unwind_cache): Update.
10742 (prologue_find_regs): Update. When "mv r11, sp", save the
10743 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10744 RN was saved in r11_offset.
10745
b2579786
AC
107462003-03-05 Andrew Cagney <cagney@redhat.com>
10747
10748 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10749 cached PC value in the next frame.
10750
218e5956
AC
107512003-03-05 Andrew Cagney <cagney@redhat.com>
10752
10753 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10754 "id_unwind_cache" with "id".
10755 (frame_id_unwind): Delete declaration.
10756 * frame.c (frame_id_unwind): Delete function.
10757 (get_prev_frame): Call the frame id unwind method directly. Store
10758 the returned next frame's ID value in NEXT_FRAME. Note that there
10759 is a problem with the wrong unwind ID being called with the wrong
10760 unwind cache.
10761
ed363b1b
DJ
107622003-03-05 Daniel Jacobowitz <drow@mvista.com>
10763
10764 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10765
fe1f4a5e
DJ
107662003-03-05 James Ingham <jingham@apple.com>
10767 Daniel Jacobowitz <drow@mvista.com>
10768
10769 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10770 (auto_cp_abi): New variable.
10771 (current_cp_abi, num_cp_abis): Make static.
10772 (CP_ABI_MAX): Define.
10773 (cp_abis): Turn into an array.
10774 (value_virtual_fn_field): Fix formatting.
10775 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10776 takes a pointer.
10777 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10778 (list_cp_abis, _initialize_cp_abi): New functions.
10779 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10780 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10781 switch_to_cp_abi. Update prototype for register_cp_abi.
10782 * Makefile.in (cp-abi.o): Update dependencies.
10783 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10784 instead of switch_to_cp_abi.
10785 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10786 register_cp_abi.
10787 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10788 register_cp_abi.
10789 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10790
e4adbba9
DJ
107912003-03-05 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10794 * dwarf2loc.c: Include "regcache.h".
10795 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10796 register_size.
10797 * Makefile.in (dwarf2loc.o): Update dependencies.
10798
91ccbfc1
TR
107992003-03-04 Theodore A. Roth <troth@openavr.org>
10800
10801 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10802 number of io registers reported by remote target is not a multiple of
10803 step.
10804
3d4e8fd2
DC
108052003-03-04 David Carlton <carlton@math.stanford.edu>
10806
10807 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10808 (lookup_symbol_aux_psymtabs): Update call to
10809 lookup_partial_symbol.
10810 (lookup_transparent_type, find_main_psymtab)
10811 (make_symbol_overload_list): Ditto.
10812
ed42d87b
KH
108132003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10814
10815 * MAINTAINERS (Write after approval): Update my email address.
10816
a0ed5532
AC
108172003-03-03 Andrew Cagney <cagney@redhat.com>
10818
10819 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10820 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10821 predicate. Replace MAX_REGISTER_RAW_SIZE.
10822 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10823 MAX_REGISTER_VIRTUAL_SIZE.
10824 * regcache.c (legacy_max_register_raw_size): New function.
10825 (legacy_max_register_virtual_size): New function.
10826 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10827 (MAX_REGISTER_RAW_SIZE): Define.
10828 (legacy_max_register_raw_size): Declare.
10829 (legacy_max_register_virtual_size): Declare.
10830 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10831 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10832 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10833 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10834 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10835 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10836 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10837 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10838 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10840 * vax-tdep.c (vax_gdbarch_init): Update.
10841 * v850-tdep.c (v850_gdbarch_init): Update.
10842 * sparc-tdep.c (sparc_gdbarch_init): Update.
10843 * sh-tdep.c (sh_gdbarch_init): Update.
10844 * s390-tdep.c (s390_gdbarch_init): Update.
10845 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10846 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10848 * mips-tdep.c (mips_gdbarch_init): Update.
10849 * mcore-tdep.c (mcore_gdbarch_init): Update.
10850 * m68k-tdep.c (m68k_gdbarch_init): Update.
10851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10852 * ia64-tdep.c (ia64_gdbarch_init): Update.
10853 * i386-tdep.c (i386_gdbarch_init): Update.
10854 * hppa-tdep.c (hppa_gdbarch_init): Update.
10855 * h8300-tdep.c (h8300_gdbarch_init): Update.
10856 * frv-tdep.c (frv_gdbarch_init): Update.
10857 * cris-tdep.c (cris_gdbarch_init): Update.
10858 * avr-tdep.c (avr_gdbarch_init): Update.
10859 * arm-tdep.c (arm_gdbarch_init): Update.
10860 * alpha-tdep.c (alpha_gdbarch_init): Update.
10861 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10862 max_register_raw_size or max_register_virtual_size.
10863
8e437497
DC
108642003-03-03 David Carlton <carlton@math.stanford.edu>
10865
10866 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10867 SYMBOL_MATCHES_NAME, add comment.
10868 (SYMBOL_MATCHES_NATURAL_NAME): New.
10869 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10870 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10871 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10872 * symtab.c (lookup_partial_symbol): Use
10873 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10874 unhelpful comment.
10875 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10876 SYMBOL_MATCHES_NAME.
10877 Fix for PR c++/33.
10878
25120b0d
DC
108792003-03-03 David Carlton <carlton@math.stanford.edu>
10880
10881 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10882 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10883 by regexp matching against SYMBOL_NATURAL_NAME.
10884
78a11fb4
DC
108852003-03-03 David Carlton <carlton@math.stanford.edu>
10886
10887 * linespec.c (find_method): Extract code into collect_methods.
10888 (collect_methods): New.
10889
645dd519
MK
108902003-03-02 Mark Kettenis <kettenis@gnu.org>
10891
b4700d91
MK
10892 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10893 get_frame_base.
10894
645dd519
MK
10895 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10896 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10897
0aa7e1aa
SC
108982003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10899
8ffd9b1b 10900 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10901 and not regnum when summing the size of all registers up to regnum.
10902
f30ee0bc
AC
109032003-03-01 Andrew Cagney <cagney@redhat.com>
10904
10905 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10906 FRAME_INIT_SAVED_REGS.
10907 * gdbarch.h, gdbarch.c: Regenerate.
10908 * stack.c (frame_info): Update.
10909 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10910 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10911 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10912 * ns32k-tdep.c (ns32k_pop_frame): Update.
10913 * mips-tdep.c (mips_pop_frame): Update.
10914 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10915 * ia64-tdep.c (ia64_frame_chain): Update.
10916 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10917 (ia64_frameless_function_invocation): Update.
10918 (ia64_init_extra_frame_info): Update.
10919 (ia64_pop_frame_regular): Update.
10920 * frame.h (struct frame_info): Update comment.
10921 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10922 * frame.c (frame_saved_regs_register_unwind): Update.
10923 (frame_saved_regs_register_unwind): Update.
10924 (deprecated_generic_get_saved_register): Update.
10925 * cris-tdep.c: Update comment.
10926 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10927 Rename macro.
10928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10929 * x86-64-tdep.c (x86_64_init_abi): Update.
10930 * vax-tdep.c (vax_gdbarch_init): Update.
10931 * v850-tdep.c (v850_gdbarch_init): Update.
10932 * sparc-tdep.c (sparc_gdbarch_init): Update.
10933 * sh-tdep.c (sh_gdbarch_init): Update.
10934 * s390-tdep.c (s390_gdbarch_init): Update.
10935 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10936 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10937 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10938 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10939 * mips-tdep.c (mips_gdbarch_init): Update.
10940 * mcore-tdep.c (mcore_gdbarch_init): Update.
10941 * m68k-tdep.c (m68k_gdbarch_init): Update.
10942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10943 * ia64-tdep.c (ia64_gdbarch_init): Update.
10944 * i386-tdep.c (i386_gdbarch_init): Update.
10945 * frv-tdep.c (frv_gdbarch_init): Update.
10946 * avr-tdep.c (avr_gdbarch_init): Update.
10947 * arm-tdep.c (arm_gdbarch_init): Update.
10948 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10949
42fa7c0f
AC
109502003-03-01 Andrew Cagney <cagney@redhat.com>
10951
10952 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10953 option enum and switch. When no windows, set the interpreter to
10954 INTERP_CONSOLE.
8ffd9b1b 10955
49c7e338
AC
109562003-03-01 Andrew Cagney <cagney@redhat.com>
10957
10958 * main.c (captured_main): Replace magic option characters with an
10959 enum.
10960
e9582e71
AC
109612003-03-01 Andrew Cagney <cagney@redhat.com>
10962
10963 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10964 INIT_EXTRA_FRAME_INFO.
10965 * gdbarch.h, gdbarch.c: Regenerate.
10966 * arm-tdep.c: Update comments.
10967 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10968 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10969 * frame.h, avr-tdep.c: Ditto.
10970 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10971 (create_new_frame, legacy_get_prev_frame): Ditto.
10972 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10973 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10975 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10976 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10977 * v850-tdep.c (v850_gdbarch_init): Ditto.
10978 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10979 * sh-tdep.c (sh_gdbarch_init): Ditto.
10980 * s390-tdep.c (s390_gdbarch_init): Ditto.
10981 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10982 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10983 * mips-tdep.c (mips_gdbarch_init): Ditto.
10984 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10986 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10987 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10988 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10989 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10990 * frv-tdep.c (frv_gdbarch_init): Ditto.
10991 * cris-tdep.c (cris_gdbarch_init): Ditto.
10992 * avr-tdep.c (avr_gdbarch_init): Ditto.
10993 * arm-tdep.c (arm_gdbarch_init): Ditto.
10994 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10995 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10996
35cac7cf
AC
109972003-03-01 Andrew Cagney <cagney@redhat.com>
10998
10999 * gdbarch.sh (register_type): New function with predicate.
11000 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11001 * gdbarch.h, gdbarch.c: Re-generate.
11002 * arch-utils.c (generic_register_byte): Use generic_register_size.
11003 (generic_register_size): When available, use
11004 gdbarch_register_type.
11005 * regcache.c (init_regcache_descr): When available, initialize the
11006 register type array using gdbarch_register_type. If the
11007 architecture supplies gdbarch_register_type, do not use the legacy
11008 regcache layout.
11009 * d10v-tdep.c (d10v_register_type): Replace
11010 d10v_register_virtual_type.
11011 (d10v_gdbarch_init): Set register_type instead of
11012 register_virtual_type.
11013
7b83296f
AC
110142003-03-01 Andrew Cagney <cagney@redhat.com>
11015
11016 * Makefile.in (ax-gdb.o): Update dependencies.
11017 * ax-gdb.c: Include "regcache.h".
11018 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11019 * findvar.c (value_of_register): Ditto.
11020 * infcmd.c (default_print_registers_info): Ditto.
11021
eadc1c87
MK
110222003-03-01 Mark Kettenis <kettenis@gnu.org>
11023
11024 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11025 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11026
14143612
MK
110272003-03-01 Mark Kettenis <kettenis@gnu.org>
11028
11029 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11030 of STREQ.
11031
a55cc764
DJ
110322003-02-28 Daniel Jacobowitz <drow@mvista.com>
11033
11034 * Makefile.in (dwarf2loc.o): Update dependencies.
11035 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11036 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11037 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11038 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11039 (locexpr_tracepoint_var_ref): New function.
11040 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11041
08a617da
AC
110422003-02-28 Andrew Cagney <cagney@redhat.com>
11043
11044 * regcache.c (register_size): New function.
11045 * regcache.h (register_size): Declare
11046 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11047 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11048
4224873a
DC
110492003-02-28 David Carlton <carlton@math.stanford.edu>
11050
11051 * linespec.c (decode_compound): Extract code into find_method.
11052 (find_method): New.
11053
ccdc5d7f
JB
110542003-02-28 J. Brobecker <brobecker@gnat.com>
11055
11056 * Makefile.in: Add rules to build and link in observer.o.
11057
974e8ced
JB
110582003-02-27 J. Brobecker <brobecker@gnat.com>
11059
11060 * observer.c: Minor comments edits.
11061
7a28f973
JB
110622003-02-27 J. Brobecker <brobecker@gnat.com>
11063
11064 * observer.h, observer.c: New file.
11065
27cddce2
AC
110662003-02-27 Andrew Cagney <cagney@redhat.com>
11067
11068 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11069
b94a41a1
SC
110702003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11071
11072 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11073 (M6812_OP_STS_EXT): Likewise.
11074 (m6811_prologue): Use the above to recognize prologue.
11075 (m6812_prologue): Likewise.
11076
c8be8951
DC
110772003-02-27 David Carlton <carlton@math.stanford.edu>
11078
11079 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11080 SYMBOL_PRINT_NAME.
11081 (compare_psymbols): Ditto.
11082 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11083
d05bb1fc
MS
110842003-02-27 Michael Snyder <msnyder@redhat.com>
11085
4e845cd3
MS
11086 * f-lang.c (build_fortran_types): New function.
11087 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11088 * doublest.c (extract_floating): Fix warning text.
11089
f3824013
AC
110902003-02-27 Andrew Cagney <cagney@redhat.com>
11091
11092 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11093 predicate. Replaces PUSH_DUMMY_FRAME.
11094 * gdbarch.h, gdbarch.c: Regnerate.
11095 * valops.c (hand_function_call): Update. Call
11096 generic_push_dummy_frame directly.
11097 * vax-tdep.c (vax_gdbarch_init): Update.
11098 * sparc-tdep.c (sparc_gdbarch_init): Update.
11099 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11100 * m68k-tdep.c (m68k_gdbarch_init): Update.
11101 * hppa-tdep.c (hppa_gdbarch_init): Update.
11102 * alpha-tdep.c (alpha_gdbarch_init): Update.
11103 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11104 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11105 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11107 push_dummy_frame to generic_push_dummy_frame.
11108 * v850-tdep.c (v850_gdbarch_init): Ditto.
11109 * sh-tdep.c (sh_gdbarch_init): Ditto.
11110 * s390-tdep.c (s390_gdbarch_init): Ditto.
11111 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11112 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11113 * mips-tdep.c (mips_gdbarch_init): Ditto.
11114 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11116 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11117 * i386-tdep.c (i386_gdbarch_init): Ditto.
11118 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11119 * frv-tdep.c (frv_gdbarch_init): Ditto.
11120 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11121 * cris-tdep.c (cris_gdbarch_init): Ditto.
11122 * avr-tdep.c (avr_gdbarch_init): Ditto.
11123 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11124
ad188201
KB
111252003-02-26 Kevin Buettner <kevinb@redhat.com>
11126
11127 * mips-tdep.c (show_mips_abi): New function.
11128 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11129 command ``show mips abi''.
11130
6b37567a 111312003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11132
6b37567a 11133 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11134 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11135 more sline entries have been seen for the function.
11136
d3e0a5bf
MC
111372003-02-26 Michael Chastain <mec@shout.net>
11138
11139 * configure: Regenerate with autoconf 000227.
11140
18972eea
MC
111412003-02-26 Michael Chastain <mec@shout.net>
11142
11143 Close PR build/660.
11144 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11145 for old libc5/glibc.
11146 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11147
0bbde931
KW
111482003-02-26 Kris Warkentin <kewarken@qnx.com>
11149
11150 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11151 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11152
27ca5dad
MC
111532003-02-26 Michael Chastain <mec@shout.net>
11154
11155 * configure.in: New variable HAVE_UINTPTR_T.
11156 * configure, config.in: Regenerated.
11157
6f88d630
DJ
111582003-02-26 Daniel Jacobowitz <drow@mvista.com>
11159
11160 Fix PR build/1097.
11161 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11162
b14185ce
AC
111632003-02-25 Andrew Cagney <cagney@redhat.com>
11164
11165 * frame.c (get_prev_frame): Add comment on check for
11166 inside_entry_func. Only check for inside_entry_file when not a
11167 dummy and not a sentinel. Check that the new frame is not inner
11168 to the old frame.
11169
ac2bd0a9
AC
111702003-02-25 Andrew Cagney <cagney@redhat.com>
11171
11172 * frame.c (frame_debug): New variable.
11173 (_initialize_frame): Add "set/show debug frame" command.
11174 (get_prev_frame): When frame_debug, print reason why unwind
11175 failed.
11176
b18a0fd2
MC
111772003-02-25 Michael Chastain <mec@shout.net>
11178
11179 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11180 to avoid uintptr_t definition problems.
11181
22abf04a
DC
111822003-02-25 David Carlton <carlton@math.stanford.edu>
11183
11184 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11185 (SYMBOL_LINKAGE_NAME): Ditto.
11186 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11187 SYMBOL_LINKAGE_NAME.
11188 (struct general_symbol_info): Expand comment.
11189 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11190 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11191 (SYMBOL_MATCHES_REGEXP): Ditto.
11192 * symtab.c (symbol_natural_name): New function.
11193 * objfiles.h: Replace all uses of SYMBOL_NAME by
11194 DEPRECATED_SYMBOL_NAME.
11195 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11196 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11197 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11198 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11199 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11200 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11201 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11202 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11203 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11204 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11205 * ada-exp.y: Ditto.
11206 * ada-exp.y: Update copyright.
11207 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11208 * cp-valprint.c: Ditto.
11209
1a5848f6
JJ
112102003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11211
11212 * infptrace.c (detach): Do not flag error if ptrace detach fails
11213 and errno is set to ESRCH.
11214
7343d46a
AC
112152003-02-24 Andrew Cagney <cagney@redhat.com>
11216
11217 * infptrace.c (udot_info): Change type of udot_off to long. Use
11218 paddr when printing udot_off's value.
11219
49fa1dc2
DC
112202003-02-24 David Carlton <carlton@math.stanford.edu>
11221
11222 * symtab.c (make_symbol_overload_list): Only read in partial
11223 symtabs containing a matching partial symbol.
11224
0fe19209
DC
112252003-02-24 David Carlton <carlton@math.stanford.edu>
11226
11227 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11228 do the comparison, not strcmp.
11229 * symfile.c (compare_psymbols): Ditto.
11230 * defs.h: Declare strcmp_iw_ordered.
11231 * utils.c (strcmp_iw_ordered): New function.
11232
8e3ee7b5
JB
112332003-02-24 Jim Blandy <jimb@redhat.com>
11234
11235 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11236 support, shared libs): Remove my name from here, to better reflect
11237 reality.
11238
7df1a324
KW
112392003-02-24 Kris Warkentin <kewarken@qnx.com>
11240
11241 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11242 (target_ops): Add to_have_continuable_watchpoint.
11243 * target.c (update_current_target): Add INHERIT line for
11244 to_have_continuable_watchpoint.
11245 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11246 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11247 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11248 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11249
d1c76907
EZ
112502003-02-24 Elena Zannoni <ezannoni@redhat.com>
11251
11252 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11253 maintainership.
11254
2610b0bf
KW
112552003-02-24 Kris Warkentin <kewarken@qnx.com>
11256
f46169db
KW
11257 * solib.c (solib_open): Call target defined search function after
11258 failing with solib-search-path.
11259 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11260 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11261
9a3c34fe
KW
112622003-02-24 Kris Warkentin <kewarken@qnx.com>
11263
f46169db 11264 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11265
2417dd25
SC
112662003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11267
11268 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11269
b631436b
SC
112702003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11271
11272 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11273 (m68hc11_add_reggroups): New function.
11274 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11275 (m68hc11_gdbarch_init): Install the reggroups.
11276 (_initialize_m68hc11_tdep): Initialize them.
11277
0aa8c1e4
JW
112782003-02-21 James E Wilson <wilson@tuliptree.org>
11279
11280 * MAINTAINERS: Update my email address.
11281
50ceaba5
DC
112822003-02-21 David Carlton <carlton@math.stanford.edu>
11283
11284 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11285
4c2df51b
DJ
112862003-02-21 Daniel Jacobowitz <drow@mvista.com>
11287
11288 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11289 * symtab.h: Add opaque declarations of struct axs_value and
11290 struct agent_expr.
11291 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11292 (struct location_funcs): New type.
11293 (struct symbol): Add "loc" to aux_value.
11294 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11295 * dwarf2read.c: Include "dwarf2expr.h".
11296 (dwarf2_symbol_mark_computed): New function.
11297 (read_func_scope): Use it.
11298 (var_decode_location): New function.
11299 (new_symbol): Use it.
11300 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11301
11302 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11303 (dwarf2expr_h, dwarf2loc_h): New variables.
11304 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11305 (dwarf2expr.o, dwarf2loc.o): New rules.
11306 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11307 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11308 LOC_COMPUTED_ARG.
11309 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11310 * m2-exp.y (yylex): Likewise.
11311 * printcmd.c (address_info, print_frame_args): Likewise.
11312 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11313 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11314 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11315 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11316 * symtab.c (lookup_block_symbol): Likewise.
11317
5784d15e
AF
113182003-02-20 Adam Fedor <fedor@gnu.org>
11319
11320 * symtab.h: Remove objc_specific struct
11321 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11322 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11323 Have language_objc use cplus_specific struct.
11324
d4cad8db
TT
113252003-02-20 Tom Tromey <tromey@redhat.com>
11326
11327 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11328 TYPE_NAME, when printing a String value. PR java/1075.
11329
2f9a90b4
AF
113302003-02-20 Adam Fedor <fedor@gnu.org>
11331
d38074a8 11332 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11333 * objc-lang.c (find_methods): Make static.
2f9a90b4 11334
6f17862b
CF
113352003-02-20 Christopher Faylor <cgf@redhat.com>
11336
11337 * win32-nat.c (get_image_name): Check return value from
11338 ReadProcessMemory.
11339 (child_xfer_memory): Ditto.
11340
715d1656
AO
113412003-02-20 Alexandre Oliva <aoliva@redhat.com>
11342
11343 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11344 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11345 '${exec_prefix}' (in addition to the expansion thereof) as
11346 relocatable.
11347 * configure: Rebuilt.
11348
b1262a02
DC
113492003-02-20 David Carlton <carlton@math.stanford.edu>
11350
11351 * symtab.c (search_symbols): Revert the search_symbols part of my
11352 2002-12-23 patch. Add comment.
11353
7134143f
DJ
113542002-02-20 Daniel Jacobowitz <drow@mvista.com>
11355
11356 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11357 * dbxread.c (elfstab_build_psymtabs): Don't call
11358 install_minimal_symbols.
11359 (stabsect_build_psymtabs): Likewise.
11360 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11361 earlier.
11362 * somread.c (som_symfile_read): Call install_minimal_symbols
11363 and do_cleanups earlier.
11364 * nlmread.c (nlm_symfile_read): Likewise.
11365 * mdebugread.c (elfmdebug_build_psymtabs): Call
11366 install_minimal_symbols and make appropriate cleanups.
11367
cf466558
KB
113682003-02-20 Kevin Buettner <kevinb@redhat.com>
11369
11370 * solib.c (reload_shared_libraries): New function.
11371 (_initialize_solib): Add callbacks for ``set solib-search-path''
11372 and ``set solib-absolute-prefix''.
11373
de5ad195
DC
113742003-02-20 David Carlton <carlton@math.stanford.edu>
11375
11376 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11377 expand comment.
11378 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11379 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11380 * ada-typeprint.c (ada_typedef_print): Ditto.
11381 * ax-gdb.c (gen_var_ref): Ditto.
11382 * breakpoint.c (print_one_breakpoint): Ditto.
11383 * buildsym.c (finish_block): Ditto.
11384 * c-valprint.c (c_val_print): Ditto.
11385 * expprint.c (print_subexp): Ditto.
11386 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11387 * infcmd.c (jump_command): Ditto.
11388 * linespec.c (decode_line_2, decode_compound): Ditto.
11389 * maint.c (maintenance_translate_address): Ditto.
11390 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11391 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11392 Ditto.
8ffd9b1b
AJ
11393 * p-valprint.c (pascal_val_print): Ditto.
11394 * stabsread.c (define_symbol): Ditto.
de5ad195 11395 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11396 (print_frame_arg_vars, return_command): Ditto.
11397 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11398 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11399 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11400 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11401 (rbreak_command): Ditto.
11402 * tracepoint.c (tracepoints_info): Ditto.
11403 * typeprint.c (typedef_print): Ditto.
11404 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11405 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11406 * ada-typeprint.c: Update Copyright.
11407 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11408 * tracepoint.c, cli/cli-cmds.c: Ditto.
11409
f796e4be
KB
114102003-02-20 Kevin Buettner <kevinb@redhat.com>
11411
11412 * frame.c (generic_unwind_get_saved_register): Make non-static.
11413 * frame.h (generic_unwind_get_saved_register): Declare.
11414 * mips-tdep.c (read_next_frame_reg): Fetch register from
11415 current regcache when frame is NULL.
11416 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11417 that must be NULL.
11418 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11419 instead of frame_register_unwind().
11420
836cc9f4
AC
114212003-02-20 Andrew Cagney <ac131313@redhat.com>
11422
11423 * remote-sim.c (gdbsim_insert_breakpoint)
11424 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11425 code.
11426
501eef12
AC
114272003-02-20 Andrew Cagney <ac131313@redhat.com>
11428
11429 * remote.c (_initialize_remote): Add commands "set/show remote
11430 hardware-watchpoint-limit" and "set/show remote
11431 hardware-breakpoint-limit".
11432 (remote_hw_watchpoint_limit): Initialize to -1.
11433 (remote_hw_breakpoint_limit): Ditto.
11434 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11435
1b6bc7e0
CF
114362003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11437
11438 * coff-pe-read.c: New file - support reading of minimal symbols from a
11439 portable executable using the export table.
11440 * coff-pe-read.h: New file.
11441 * coffread.c: Include coff-pe-read.h.
11442 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11443 debugging symbols found.
11444 * Makefile.in (SFILES): Add coff-pe-read.o.
11445 (coff_pe_read_h): Define.
11446 (COMMON_OBS): Add coff-pe-read.o.
11447 (coffread.o): Add coff_pe_read_h dependency.
11448 (coff-pe-read.o): New target.
11449
fe898f56
DC
114502003-02-19 David Carlton <carlton@math.stanford.edu>
11451
11452 * Makefile.in (SFILES): Add block.c.
11453 (block_h): New.
11454 (COMMON_OBS): Add block.o.
11455 (block.o): New.
11456 (x86-64-tdep.o): Add $(block_h).
11457 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11458 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11459 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11460 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11461 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11462 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11463 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11464 * value.h: Add opaque declaration for struct block.
11465 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11466 * ada-lang.h: Ditto.
11467 * x86-64-tdep.c: #include "block.h"
11468 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11469 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11470 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11471 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11472 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11473 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11474 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11475 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11476 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11477 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11478 * symtab.c (block_function): Ditto.
11479 (contained_in): Ditto.
11480 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11481 block.h. Add opaque declaration for struct block.
11482 * symtab.h: Move block_function and contained_in declarations to
11483 block.h. Add opaque declarations for struct block, struct
11484 blockvector.
11485 (struct block): Move to block.h.
11486 (struct blockvector): Ditto.
11487 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11488 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11489 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11490 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11491 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11492 Ditto.
11493 * block.c: New file.
11494 * block.h: New file.
11495
173345b5
TR
114962003-02-19 Theodore A. Roth <troth@openavr.org>
11497
11498 * avr-tdep.c (avr_extract_return_value): Remove function.
11499 (avr_store_return_value): Remove function.
11500 (avr_extract_struct_value_address): Remove function.
11501 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11502
338ef23d
AC
115032003-02-19 Andrew Cagney <ac131313@redhat.com>
11504
11505 * rs6000-tdep.c: Include "gdb_assert.h".
11506 (registers_e500): Add "acc" and "spefscr".
11507 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11508 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11509 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11510 really is "r0".
11511 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11512
5412f5f3
KS
115132003-02-18 Keith Seitz <keiths@redhat.com>
11514
11515 * Makefile.in: Add gdbtk-interps.c.
11516
881324eb
KB
115172003-02-18 Kevin Buettner <kevinb@redhat.com>
11518
11519 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11520 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11521
6a2f5abf
AC
115222003-02-18 Andrew Cagney <cagney@redhat.com>
11523
11524 * symtab.h (struct objfile): Add opaque declaration.
11525
54c7009d
EZ
115262003-02-18 Elena Zannoni <ezannoni@redhat.com>
11527
11528 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11529 * dbxread.c (process_one_symbol): Use last_function_start rather
11530 than function_start_offset to find the real beginning of the
11531 current function. The latter is just the text section offset on
11532 some systems, the former is always the real function start.
54c7009d 11533
7ee6d7eb
AC
115342003-02-17 Andrew Cagney <cagney@redhat.com>
11535
11536 * configure.in: Revert ${target} != ${host}.
11537
2846da9b
AC
115382003-02-17 Andrew Cagney <ac131313@redhat.com>
11539
11540 * configure.in (Makefile): Use the test ${target} != ${host},
11541 instead of the absence of the "nm.h" file, to determine of the
11542 configuration non-native.
11543 * configure: Regenerate.
8ffd9b1b 11544
3b27aeea
EZ
115452003-02-14 Elena Zannoni <ezannoni@redhat.com>
11546
fbe586ae 11547 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11548
11549 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11550 conditionalize tui_active test.
11551 (lookup_cmd_1): Ditto.
11552
b0b1c2c0
MK
115532003-02-14 Mark Kettenis <kettenis@gnu.org>
11554
11555 * configure.in: Add check for _etext.
11556 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11557 available.
11558 * config.in, configure: regenerated.
11559
8f05cde5
DJ
115602003-02-14 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11563
021e7609
AC
115642003-02-14 Andrew Cagney <ac131313@redhat.com>
11565
11566 * main.c (tui_version): Delete variable.
11567 (captured_main): When --tui, set interpreter_p to "tui" instead of
11568 enabling tui_version.
11569 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11570 tui_version.
11571 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11572 * cli/cli-cmds.c (disassemble_command): Ditto.
11573 * defs.h (tui_version): Delete declaration.
11574 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11575 (tui-interp.o): Add rules.
11576 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11577
e325dcec
CF
115782003-02-14 Christopher Faylor <cgf@redhat.com>
11579
36ffb041 11580 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11581 just-loaded dll.
11582
c4f90d87
JM
115832003-02-12 Jason Molenda (jmolenda@apple.com)
11584
fbe586ae
RH
11585 * symmisc.c (print_objfile_statistics): Include information about
11586 the number of psymtabs and symtabs in each object file.
c4f90d87 11587
e46e5ccd
KS
115882003-02-13 Keith R Seitz <keiths@redhat.com>
11589
11590 * main.h (struct captured_main_args): Add interpreter_p.
11591 * main.c (captured_main): Initialize interpreter_p from context.
11592 * gdb.c (main): Set interpreter_p argument.
11593 * Makefile.in (gdb.o): Add dependency for interps.h.
11594
fe97fe9c
AC
115952003-02-12 Andrew Cagney <ac131313@redhat.com>
11596
11597 * event-top.c (cli_command_loop): Delete declaration.
11598 (_initialize_event_loop): Delete function setting event_loop_hook.
11599 * event-top.h (cli_command_loop): Declare. Update copyright.
11600 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11601 * interps.c (current_interp_command_loop): When event_loop_p, call
11602 cli_command_loop.
11603
1cdac4ef
AC
116042003-02-12 Andrew Cagney <ac131313@redhat.com>
11605
11606 * interps.h (interp_command_loop_ftype): Change return type to
11607 void.
11608
48037ead
ML
116092003-02-12 Michal Ludvig <mludvig@suse.cz>
11610
11611 * x86-64-tdep.c (x86_64_extract_return_value)
11612 (x86_64_store_return_value): Use regcache instead of regbuf.
11613 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11614 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11615
033afc63
AC
116162003-02-11 Andrew Cagney <ac131313@redhat.com>
11617
11618 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11619 * aclocal.m4: Regenerate.
11620 * configure: Regenerate.
11621
11622 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11623 TCL_LD_SEARCH_FLAGS.
11624
40d02bca
ML
116252003-02-10 Michal Ludvig <mludvig@suse.cz>
11626
11627 * dwarf2cfi.c: Reindented.
11628
11308a41
AC
116292003-02-09 Andrew Cagney <ac131313@redhat.com>
11630
11631 * interps.c (clear_interpreter_hooks): Convert function definition
11632 to ISO C.
11633
e1c1c0f6
DC
116342003-02-07 David Carlton <carlton@math.stanford.edu>
11635
11636 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11637
ab5d3da6
KB
116382003-02-07 Kevin Buettner <kevinb@redhat.com>
11639
11640 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11641 (struct type): ...to here.
11642 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11643 field.
11644 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11645 (replace_type): Set length on all type variants for a given type.
11646
b8a92b82
AC
116472003-02-07 Andrew Cagney <ac131313@redhat.com>
11648
11649 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11650 <sys/stat.h>.
11651 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11652
5cb316ef
AC
116532003-02-06 Andrew Cagney <ac131313@redhat.com>
11654
2555fe1a
AC
11655 * Makefile.in (symm-nat.o): Update dependencies.
11656 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11657 (lynx-nat.o, ia64-linux-nat.): Ditto.
11658 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11659 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11660 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11661
44270758
AC
11662 * Makefile.in (inflow_h): Define.
11663 (procfs.o, inflow.o, procfs.o): Update dependencies.
11664 * inftarg.c (child_stop): Delete extern declaration of
11665 inferior_process_group. Include "inflow.h".
11666 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11667 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11668 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11669 (our_process_group, inferior_process_group): Extern declarations.
11670
df8f7274
AC
11671 * procfs.c: Include "gdb_assert.h".
11672
5cb316ef
AC
11673 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11674 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11675 * jv-typeprint.c (java_type_print_base): Ditto.
11676 * typeprint.c (typedef_print): Eliminate STREQ.
11677 * cli/cli-script.c (define_command, define_command): Ditto.
11678 * main.c (captured_main): Ditto.
11679 * values.c (lookup_internalvar): Ditto.
11680 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11681 within `if' conditional.
11682 * linespec.c (decode_line_2): Ditto.
11683 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11684 (bfd_openw_with_cleanup): Ditto.
11685
2a28ccea
MK
116862003-02-07 Mark Kettenis <kettenis@gnu.org>
11687
11688 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11689 legacy_extract_return_value and store_return_value to
11690 legacy_return_value.
11691
786b8124
CF
116922003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11693
11694 * win32-nat.c (get_relocated_section_addrs): New function. Find
11695 section load addresses for symbol handling in relocated DLLs.
11696 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11697
b871e4ec
FF
116982003-02-05 Fred Fish <fnf@intrinsity.com>
11699
11700 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11701 '=' and '!='.
11702 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11703 with '&' and '=='.
11704 (angel_RDI_info): Ditto.
11705 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11706 with '&' and '!='.
11707 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11708
4389a95a 117092003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11710 Keith Seitz <keiths@redhat.com>
11711 Elena Zannoni <ezannoni@redhat.com>
11712 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11713
11714 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11715 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11716 (SUBDIR_MI_OBS): Add "mi-interp.o".
11717 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11718 (SFILES): Add "interps.c".
11719 (COMMON_OBS): Add "interps.o".
11720 (interps_h, mi_main_h): Define.
11721 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11722 (mi-main.o, main.o, event-top.o): Update dependencies.
11723 * cli/cli-interp.c: New file.
11724 * interps.h, interps.c: New files.
11725 * top.c: (gdb_init): Don't install the default interpreter, handed
11726 by captured_main.
11727 * main.c: Include "interps.h".
11728 (interpreter_p): Note that it should malloc'ed.
11729 (captured_command_loop): Call current_interp_command_loop.
11730 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11731 xfree and xstrdup when updating interpreter_p. Install the
11732 default interpreter. Add hack to stop mi1's copyright notice
11733 being encoded.
11734 * event-top.h (gdb_setup_readline): Declare.
11735 (gdb_disable_readline): Declare.
11736 * event-top.c: Include "interps.h".
11737 (display_gdb_prompt): Call current_interp_display_prompt_p.
11738 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11739 gdb_stdlog, and gdb_stdtarg.
11740 (_initialize_event_loop): Don't call gdb_setup_readline.
11741 * cli-out.c (cli_out_set_stream): New function.
11742 * cli-out.h (cli_out_set_stream): Declare.
11743
ff3b5810
MK
117442003-02-06 Mark Kettenis <kettenis@gnu.org>
11745
11746 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11747 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11748 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11749 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11750 config/i386/i386v42mp.mt: Removed.
11751
5b729aa5
MK
117522003-02-05 Mark Kettenis <kettenis@gnu.org>
11753
11754 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11755 GDB_OSABI_SOLARIS.
11756
8cc15142
MC
117572003-02-05 Michael Chastain <mec@shout.net>
11758
11759 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11760 2.12.1 and earlier versions.
11761
5aa5d4b9
AC
117622003-02-05 Andrew Cagney <ac131313@redhat.com>
11763
11764 Remove orphaned hosts, targets and files.
11765 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11766 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11767 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11768 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11769 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11770 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11771 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11772 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11773 * config/sparc/tm-sp64sim.h: Delete.
11774 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11775 hosts.
11776 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11777 mips*-dec-mach3* targets.
11778
b68767c1
MC
117792003-02-04 Michael Chastain <mec@shout.net>
11780
11781 * NEWS: Fix typo: sepcifying -> specifying.
11782
5ae7ca1d
MC
117832003-02-04 Michael Chastain <mec@shout.net>
11784
11785 * dwarfread.c: Add documentation on the state of dwarf-1,
11786 looking towards obsoletion.
11787
d08a4280
MC
117882003-02-03 Michael Chastain <mec@shout.net>
11789
11790 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11791 gdb/testsuite/gdb.c++/pr-1023.exp.
11792
e9be73e4
AC
117932003-02-04 Andrew Cagney <ac131313@redhat.com>
11794
11795 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11796 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11797
11798 * utils.c (init_page_info): Delete reference to MPW in comments.
11799 * main.c (captured_main): Delete #ifdef MPW.
11800
05d57f6f
AC
118012003-02-04 Andrew Cagney <ac131313@redhat.com>
11802
8ffd9b1b 11803 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11804 * monitor.c (monitor_expect): Obsolete reference to m32r.
11805 * configure.tgt: Mark m32r-*-elf* as obsolete.
11806 * MAINTAINERS: Mark m32k as obsolete.
11807 * m32r-rom.c: Obsolete file.
11808 * config/m32r/m32r.mt: Obsolete file.
11809 * config/m32r/tm-m32r.h: Obsolete file.
11810 * m32r-stub.c: Obsolete file.
11811 * m32r-tdep.c: Obsolete file.
11812
8b0e5691
AC
118132003-02-04 Andrew Cagney <ac131313@redhat.com>
11814
11815 * NEWS: Mention that the z8k-zilog-none is obsolete.
11816 * MAINTAINERS: Mark z8k as obsolete.
11817 * configure.tgt: Obsolete the z8k-*-coff* target.
11818 * config/z8k/z8k.mt: Obsolete file.
11819 * config/z8k/tm-z8k.h: Obsolete file.
11820 * z8k-tdep.c: Obsolete file.
11821
67f16606
AC
118222003-02-04 Andrew Cagney <ac131313@redhat.com>
11823
11824 * NEWS: Mention that the mn10200-elf is obsolete.
11825 * configure.tgt: Obsolete mn10200-*-* target.
11826 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11827 mention that the mn10200 is obsolete.
11828 * breakpoint.h: Ditto.
11829 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11830 * config/mn10200/mn10200.mt: Obsolete file.
11831 * config/mn10200/tm-mn10200.h: Obsolete file.
11832 * mn10200-tdep.c: Obsolete file.
11833
fd2299bd
AC
118342003-02-04 Andrew Cagney <ac131313@redhat.com>
11835
11836 * MAINTAINERS: Mark h8500 as obsolete.
11837 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11838 * findvar.c (value_from_register): Ditto.
11839 * h8500-tdep.c: Mark file as obsolete.
11840 * config/h8500/h8500.mt: Ditto.
11841 * config/h8500/tm-h8500.h: Ditto.
11842 * NEWS: Mention that h8500 is obsolete.
11843
eb9a305d
DC
118442003-02-04 David Carlton <carlton@math.stanford.edu>
11845
11846 * objfiles.c (allocate_objfile): Always set name. Add comment at
11847 start of function.
11848 * jv-lang.c (get_dynamics_objfile): Add comment.
11849
406fc7fb
DC
118502003-02-04 David Carlton <carlton@math.stanford.edu>
11851
11852 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11853 * printcmd.c (build_address_symbolic): Replace uses of
11854 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11855 SYMBOL_NAME, and asm_demangle.
11856 Update copyright.
11857
93d91629
DC
118582003-02-04 David Carlton <carlton@math.stanford.edu>
11859
11860 * linespec.c (decode_compound): Extract code into
11861 lookup_prefix_sym.
11862 (lookup_prefix_sym): New function.
11863
1c5cb38e
DC
118642003-02-04 David Carlton <carlton@math.stanford.edu>
11865
11866 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11867 FLOAT_COERCION_BADNESS.
11868 * gdbtypes.c (rank_one_type): Replace all uses of
11869 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11870
0cf824c9
JB
118712003-02-04 Jim Blandy <jimb@redhat.com>
11872
11873 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11874 section, let dwarf_macinfo_section point to it, not
11875 dwarf_loc_section.
11876
a2d356b0
DJ
118772003-02-04 Daniel Jacobowitz <drow@mvista.com>
11878
11879 Pointed out by Anton Blanchard <anton@samba.org>.
11880 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11881 (ppc_linux_at_sigtramp_return_path): Use it.
11882
2de7ced7
DJ
118832003-02-04 Daniel Jacobowitz <drow@mvista.com>
11884
11885 * defs.h (streq): Add prototype.
11886 * utils.c (streq): New function.
11887
11888 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11889 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11890 * mdebugread.c (new_symbol): Likewise.
11891 * stabsread.c (define_symbol): Likewise.
11892 * coffread.c (process_coff_symbol): Likewise.
11893 * dwarfread.c (new_symbol): Likewise.
11894
11895 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11896 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11897 here.
11898 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11899 SYMBOL_INIT_DEMANGLED_NAME.
11900 * objfiles.c: Include "hashtab.h".
11901 (allocate_objfile): Call htab_set_functions_ex for the
11902 demangled_names_hash.
11903 (free_objfile): Call htab_delete for the demangled_names_hash.
11904 * objfiles.h (struct htab): Add declaration.
11905 (struct objfile): Add demangled_names_hash.
11906 * symfile.c: Include "hashtab.h".
11907 (reread_symbols): Call htab_delete for the demangled_names_hash.
11908 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11909 SYMBOL_NAME in the bcache.
11910 * symtab.c: Include "hashtab.h". Update comments.
11911 (create_demangled_names_hash, symbol_set_names): New functions.
11912 (symbol_find_demangled_name): New function, broken out from
11913 symbol_init_demangled_names.
11914 (symbol_init_demangled_names): Use it.
11915 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11916 (SYMBOL_SET_NAMES): New macro.
11917 (symbol_set_names): Add prototype.
11918
15831452
JB
119192003-02-03 Jim Blandy <jimb@redhat.com>
11920
11921 Use a single, consistent representation for an empty minimal
11922 symbol table in an objfile.
11923 * objfiles.c (terminate_minimal_symbol_table): New function.
11924 (allocate_objfile): Call it.
11925 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11926 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11927 non-NULL.
15831452
JB
11928 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11929 objfile has minimal symbols, compare minimal_symbol_count to zero,
11930 instead of comparing msymbols with NULL.
11931 * objfiles.c (have_minimal_symbols): Same.
11932 * solib-sunos.c (solib_add_common_symbols): Call
11933 terminate_minimal_symbol_table.
11934 * symfile.c (reread_symbols): Same.
8ffd9b1b 11935
ffc65945
KB
119362003-02-03 Kevin Buettner <kevinb@redhat.com>
11937
11938 * s390-tdep.c (s390_address_class_type_flags)
11939 (s390_address_class_type_flags_to_name)
11940 (s390_address_class_name_to_type_flags): New functions.
11941 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11942 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11943
f211c6d4
MS
119442003-02-03 Michael Snyder <msnyder@redhat.com>
11945
11946 * arm-tdep.c: Fix spell-o in comment.
11947
659b0389
ML
119482003-02-03 Michal Ludvig <mludvig@suse.cz>
11949
11950 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11951 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11952 error messages to contain BFD filename.
659b0389 11953
3b31d625
EZ
119542003-02-02 Elena Zannoni <ezannoni@redhat.com>
11955
997b089a 11956 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11957 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11958 (do_mixed_source_and_assembly): Use
11959 make_cleanup_ui_out_tuple_begin_end and
11960 make_cleanup_ui_out_tuple_begin_end.
11961 (do_mixed_source_and_assembly): Ditto.
11962 * thread.c (do_captured_list_thread_ids): Ditto.
11963 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11964 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11965 ui_out_tuple_end): Delete prototypes.
11966 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11967 ui_out_list_end, ui_out_tuple_end): Delete.
11968
11969 From Kevin Buettner <kevinb@redhat.com>:
11970 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11971 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11972 (do_cleanup_table_end): New functions.
11973 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11974 Use cleanups to invoke_ui_out_tuple_end().
11975 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11976 * cli/cli-setshow.c (cmd_show_list): Use
11977 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11978
5b181d62
AC
119792003-02-02 Andrew Cagney <ac131313@redhat.com>
11980
11981 * frame.c (frame_unwind_register): New function.
11982 (frame_unwind_unsigned_register): Use.
11983 (frame_unwind_signed_register): Use.
11984 (frame_read_register): New function.
11985 * frame.h (frame_unwind_register): Declare.
11986 (frame_read_register): Declare.
11987
11988 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11989 and frame_unwind_register instead of read_memory, write_register
11990 and deprecated_write_register_bytes.
11991
5f601589
AC
119922003-02-02 Andrew Cagney <ac131313@redhat.com>
11993
11994 * frame.h: Note that namelen can be negative.
11995 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11996 NAME's length.
11997
11998 * NEWS: Mention that the d10v's `regs' command is deprecated.
11999 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12000 (d10v_print_registers_info): New function.
12001 (show_regs): Call d10v_print_registers_info.
12002 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12003
6a3fe0a4
MK
120042003-02-02 Mark Kettenis <kettenis@gnu.org>
12005
12006 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12007 lost in the previous patch.
12008
075559bc
AC
120092003-02-01 Andrew Cagney <ac131313@redhat.com>
12010
12011 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12012 * stack.c (print_frame_info_base): Output complete FRAME tuple
12013 for synthesized frames.
075559bc 12014
6789195b
AC
120152003-02-02 Andrew Cagney <ac131313@redhat.com>
12016
12017 * mips-nat.c (zerobuf): Delete.
12018 (fetch_inferior_registers): Alloc local zerobuf.
12019 (fetch_core_registers): Alloc local zerobuf.
12020 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12021 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12022 * thread-db.c (thread_db_store_registers): Ditto.
12023 * sh-tdep.c (sh_do_register): Ditto.
12024 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12025 * remote-sim.c (gdbsim_store_register): Ditto.
12026 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12027 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12028 * monitor.c (monitor_supply_register): Ditto.
12029 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12030 * mips-nat.c (fetch_inferior_registers): Ditto.
12031 * m68klinux-nat.c (fetch_register): Ditto.
12032 * lynx-nat.c (fetch_inferior_registers): Ditto.
12033 (fetch_inferior_registers): Ditto.
12034 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12035 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12036 (hpux_thread_store_registers): Ditto.
12037 * hppah-nat.c (fetch_register): Ditto.
12038 * hppab-nat.c (fetch_register): Ditto.
12039 * hppa-tdep.c (pa_register_look_aside): Ditto.
12040 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12041 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12042
e669114a
AC
120432003-02-01 Andrew Cagney <ac131313@redhat.com>
12044
12045 * gdbarch.sh: Explictly specify all method levels. When a
12046 variable with an empty level, provide a non-multi-arch default.
12047 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12048 * gdbarch.h: Re-generate.
12049 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12050 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12051
9a043c1d
AC
120522003-02-01 Andrew Cagney <ac131313@redhat.com>
12053
12054 * defs.h (host_pointer_to_address): Delete declaration.
12055 (address_to_host_pointer): Delete declaration.
12056 * utils.c (host_pointer_to_address): Delete function.
12057 (address_to_host_pointer): Delete function.
12058 * procfs.c (procfs_address_to_host_pointer): New function.
12059 * procfs.c (proc_set_watchpoint): Use.
12060 (procfs_can_use_hw_breakpoint): Update comments.
12061 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12062 (som_solib_add): Use.
12063 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12064 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12065
7ca9f392
AC
120662003-02-01 Andrew Cagney <ac131313@redhat.com>
12067
94bbfd30
AC
12068 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12069 strlen d_name.
12070
7ca9f392
AC
12071 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12072 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12073 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12074 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12075 (define_symbol): Update.
12076 * symfile.c (generic_load): Remove references to nindy.
12077 * symtab.c: Remove references to nindy.
12078
31a85ea2
AC
120792003-02-01 Andrew Cagney <ac131313@redhat.com>
12080
12081 * infcmd.c (print_float_info): Delete code conditional on
12082 FLOAT_INFO.
12083 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12084 * config/m68k/nm-apollo68b.h: Ditto.
12085 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12086 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12087 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12088
f6e85fc8
MK
120892003-02-01 Mark Kettenis <kettenis@gnu.org>
12090
6015b6a0
MK
12091 * config/i386/tm-i386os9k.h: Removed.
12092
f7a30bdf
MK
12093 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12094 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12095 they're identical to i[3456]86-*-sysv* now.
12096 * config/i386/i386v32.mh: Removed.
12097 * config/i386/xm-i386v32.h: Removed.
12098 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12099
28d52111
MK
12100 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12101
4d3f6bce
MK
12102 * config/i386/i386dgux.mh: Removed.
12103 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12104
f6e85fc8
MK
12105 * configure.in: Fix typo.
12106 * configure: Regenerated.
12107
53955967
DC
121082003-01-31 David Carlton <carlton@math.stanford.edu>
12109
12110 * dwarf2read.c (dwarf2_locate_sections): Set
12111 dwarf_ranges_section.
12112
b1364885
AC
121132003-01-31 Andrew Cagney <ac131313@redhat.com>
12114
8dbb1c65
AC
12115 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12116 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12117
8731e58e
AC
12118 * utils.c: Re-indent.
12119
b1364885
AC
12120 * config/djgpp/fnchange.lst: Delete nindy files.
12121 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12122 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12123 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12124 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12125 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12126 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12127 * Makefile.in (init.c): Remove nindy references.
12128 (saber_gdb): Delete rule.
12129 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12130 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12131 and a68v-nat.c.
12132 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12133 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12134 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12135 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12136 nindy-share/stop.h.
12137 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12138 * saber.suppress: Delete file.
12139
086df311
DJ
121402003-01-31 Daniel Jacobowitz <drow@mvista.com>
12141
12142 * dbxread.c (stabs_data): New static variable.
12143 (fill_symbuf): Support an in-memory buffer for stabs data.
12144 (stabs_seek): New function.
12145 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12146 (read_ofile_symtab): Use stabs_seek.
12147 (elfstab_build_psymtabs): Take an asection* instead of
12148 an offset and size. Relocate the stabs data if necessary.
12149 Save the section* for dbx_psymtab_to_symtab.
12150 * dwarf2read.c: Add section variables for each debug section.
12151 (dwarf2_locate_sections): Fill them in.
12152 (dwarf2_read_section): Take an asection* argument.
12153 Relocate the section contents if necessary.
12154 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12155 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12156 it to dwarf2_read_section.
12157 (dwarf2_build_frame_info): Update callers.
12158 * elfread.c (elf_symfile_read): Update call to
12159 elfstab_build_psymtabs.
12160 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12161 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12162 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12163 * symfile.c (symfile_dummy_outputs): New function.
12164 (symfile_relocate_debug_section): New function.
12165 * symfile.h (symfile_relocate_debug_section): Add prototype.
12166
87d1b352
RH
121672003-01-31 Richard Henderson <rth@redhat.com>
12168
12169 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12170 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12171 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12172 * alpha-tdep.c (alpha_register_name): Add "unique".
12173 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12174 (ALPHA_UNIQUE_REGNUM): New.
12175 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12176
c48861fb
AC
121772003-01-31 Andrew Cagney <ac131313@redhat.com>
12178
12179 * README: Remove reference to Ericsson 1800 monitor.
12180 * Makefile.in (remote-es.o): Delete rule.
12181 (ALLDEPFILES): Delete remote-es.c.
12182 * remote-es.c: Delete file.
12183 * config/m68k/es1800.mt: Delete file.
12184 * config/djgpp/fnchange.lst: Update.
12185 * configure.tgt: Delete m68*-ericsson-* target.
12186
d764a824
AF
121872003-01-31 Adam Fedor <fedor@gnu.org>
12188
12189 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12190 Remove duplicate/shadowing variable of same name.
12191
fe36c4f4
JB
121922003-01-30 Jim Blandy <jimb@redhat.com>
12193
12194 * symfile.c (find_separate_debug_file): Assert that the objfile's
12195 directory name we compute ends with a slash, and then assume that
12196 that's so everywhere we use it.
12197
cb741690
DJ
121982003-01-30 Daniel Jacobowitz <drow@mvista.com>
12199
12200 * valops.c (value_assign): Flush frame cache after stores to memory
12201 also.
12202
96ee5227
AC
122032003-01-30 Andrew Cagney <ac131313@redhat.com>
12204
12205 * Makefile.in (mon960-rom.o): Delete rule.
12206 * mon960-rom.c: Delete file.
12207
7f6104a9
AC
122082003-01-30 Andrew Cagney <ac131313@redhat.com>
12209
12210 * d10v-tdep.c: Include "frame-unwind.h".
12211 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12212 list.
12213 (next_addr, uses_frame): Delete.
12214 (struct d10v_unwind_cache): Define.
12215 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12216 Use info instead of next_addr and uses_frame globals.
12217 (d10v_frame_init_saved_regs): Delete function.
12218 (d10v_init_extra_frame_info): Delete function.
12219 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12220 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12221 init_frame_pc or frame_saved_pc.
12222 (d10v_pop_frame): Delete function.
12223 (do_d10v_pop_frame): Delete function.
12224 (d10v_frame_chain): Delete function.
12225 (d10v_frame_chain_valid): Delete function.
12226 (d10v_frame_pc_unwind): New function.
12227 (d10v_frame_id_unwind): New function.
12228 (saved_regs_unwinder): New function.
12229 (d10v_frame_register_unwind): New function.
12230 (d10v_frame_pop): New function.
12231 (d10v_frame_unwind): New variable.
12232 (d10v_frame_p): New function.
12233 (d10v_frame_saved_pc): Delete function.
12234 * Makefile.in (d10v-tdep.o): Update dependencies.
12235
cad2e848
JB
122362003-01-30 J. Brobecker <brobecker@gnat.com>
12237
12238 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12239 causing some regressions due to a change in the default value
12240 for this macro.
12241
af34e669
DJ
122422003-01-29 Richard Henderson <rth@redhat.com>
12243 Elena Zannoni <ezannoni@redhat.com>
12244 Daniel Jacobowitz <drow@mvista.com>
12245
12246 Fix PR gdb/961.
8ffd9b1b 12247 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12248 variables.
12249 (RANGES_SECTION): New.
12250 (dwarf_ranges_buffer): New variable.
12251 (struct comp_unit_head): Add member "die".
12252 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12253 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12254 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12255 (dwarf2_locate_sections): Likewise.
12256 (dwarf2_build_psymtabs): Read .debug_ranges.
12257 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12258 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12259 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12260 Look for DW_AT_ranges and return the bounding box.
12261
baa93fa6
CF
122622003-01-29 Brian Ford <ford@vss.fsi.com>
12263
12264 * win32-nat.c (cygwin_pid): Removed as unused.
12265 (child_attach): Try fall back to Cygwin pid.
12266
c63f977f
JB
122672003-01-29 Jim Blandy <jimb@redhat.com>
12268
12269 * objfiles.h (struct objfile): Doc fix.
12270
d62d1979
AC
122712003-01-29 Andrew Cagney <ac131313@redhat.com>
12272
12273 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12274 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12275 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12276 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12277 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12278 (FRAME_SAVED_PC): Change to a function with predicate.
12279 * gdbarch.h, gdbarch.c: Re-generate.
12280
1ae18a04
AC
122812003-01-28 Andrew Cagney <ac131313@redhat.com>
12282
52287340
AC
12283 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12284
1ae18a04
AC
12285 * complaints.c (complain): Delete function.
12286 * complaints.h (struct deprecated_complaint): Delete definition.
12287 (complain): Delete declaration.
12288
f2c16bd6
KB
122892003-01-28 Kevin Buettner <kevinb@redhat.com>
12290
12291 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12292 dummy frames.
12293
a94dd1fd
AC
122942003-01-27 Andrew Cagney <ac131313@redhat.com>
12295
12296 * sentinel-frame.h, sentinel-frame.c: New files.
12297 * Makefile.in (frame.o): Update dependencies.
12298 (SFILES): Add sentinel-frame.c.
12299 (sentinel_frame_h): Define.
12300 (COMMON_OBS): Add sentinel-frame.o.
12301 (sentinel-frame.o): Specify dependencies.
12302 * frame.c: Include "sentinel-frame.h".
12303 (frame_register_unwind): Rewrite assuming that there is always a a
12304 ->next frame.
12305 (frame_register, generic_unwind_get_saved_register): Ditto.
12306 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12307 (create_sentinel_frame, unwind_to_current_frame): New functions.
12308 (get_current_frame): Rewrite using create_sentinel_frame and
12309 unwind_to_current_frame. When possible, always create a frame.
12310 (create_new_frame): Set next to the sentinel frame.
12311 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12312 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12313 ID cache when necessary.
12314 (frame_saved_regs_id_unwind): Use frame_relative_level.
12315 (deprecated_generic_get_saved_register): Use frame_relative_level,
12316 get_frame_saved_regs, get_frame_pc, get_frame_base and
12317 get_next_frame.
12318 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12319 frame_register.
12320
5378adc4
DJ
123212003-01-27 Daniel Jacobowitz <drow@mvista.com>
12322
12323 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12324
51ee2ddc
DJ
123252003-01-27 Daniel Jacobowitz <drow@mvista.com>
12326
12327 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12328 (maintenance_set_profile_cmd): Use error () instead of warning ().
12329
d9feb4e7
DJ
123302003-01-27 Daniel Jacobowitz <drow@mvista.com>
12331
12332 * configure.in: Check that -pg works if using --enable-profiling.
12333 Check for monstartup and _mcleanup regardless of --enable-profiling.
12334 * maint.c: Check for monstartup and _mcleanup before using them.
12335 * config.in: Regenerated.
12336 * configure: Regenerated.
12337
2d188dd3
NC
123382003-01-24 Nick Clifton <nickc@redhat.com>
12339
12340 * Add sh2e support:
12341
12342 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12343
12344 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12345 (sh2e_show_regs): New.
12346 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12347 * config/sh/tm-sh.h: Added sh2e to comments.
12348
cb3c37b2
JB
123492003-01-23 Jim Blandy <jimb@redhat.com>
12350
12351 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12352 symbols found)" message here; we haven't checked for a separate
12353 debug info file yet, so we don't know yet.
12354 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12355 we've looked everywhere. Also, there's no need to print a special
12356 message when we're loading the separate debug info file: the one
12357 symbol_file_add prints is fine.
12358
5b5d99cf
JB
123592003-01-23 Alexander Larsson <alexl@redhat.com>
12360 Jim Blandy <jimb@redhat.com>
12361
12362 Add support for executables whose debug info has been separated
12363 out into a separate file, leaving only a link behind.
12364 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12365 and separate_debug_objfile_backlink.
12366 (put_objfile_before): New declaration.
12367 * symfile.c: #include "filenames.h".
12368 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12369 debug info in a separate file, read that, too. Save the addrs
12370 argument, so we can use it again to read the separated debug info;
12371 syms_from_objfile modifies the table we pass it.
12372 (reread_symbols): After re-reading an objfile, call
12373 reread_separate_symbols to refresh its separate debug info
12374 objfile, if it has one.
12375 (reread_separate_symbols, find_separate_debug_file,
12376 get_debug_link_info, separate_debug_file_exists): New functions.
12377 (debug_file_directory): New global var.
12378 (_initialize_symfile): Initialize debug_file_directory, and
12379 provide the new `set debug-file-directory' command to let the user
12380 change it.
12381 * objfiles.c (free_objfile): If this objfile has its debug info in
12382 a separate objfile, free that one too. If this is itself a
12383 separate debug info objfile, clear our parent's backlink.
12384 (put_objfile_before): New function.
12385 * utils.c (gnu_debuglink_crc32): New function.
12386 * defs.h (gnu_debuglink_crc32): New declaration.
12387 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12388 * configure.in: Handle --with-separate-debug-dir config option.
12389 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12390 * acconfig.h (DEBUGDIR): New macro.
12391 * configure, aclocal.m4, config.in: Regenerated.
12392
7e8580c1
JB
123932003-01-22 Jim Blandy <jimb@redhat.com>
12394
7904e09f
JB
12395 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12396 like the old symbol_file_add, but taking new arguments: you can
12397 now pass in either a `struct section_addr_info' list to say where
12398 each section is loaded, or a `struct section_offsets' table. Pass
12399 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12400 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12401 with the appropriate quiescent values for the new arguments.
12402
7e8580c1
JB
12403 * symfile.c: #include "gdb_assert.h".
12404 (syms_from_objfile): Add the ability to pass in a section offset
12405 table directly, as an alternative to the section_addr_info table.
12406 Document arguments better.
12407 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12408 * symfile.h (syms_from_objfile): Update declaration.
12409 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12410 syms_from_objfile.
12411 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12412
d28f9cdf
DJ
124132003-01-22 Daniel Jacobowitz <drow@mvista.com>
12414
12415 Original patch by Tom Tromey <tromey@cygnus.com> and
12416 Jason Molenda <jmolenda@apple.com>.
12417 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12418 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12419 * NEWS: Mention profiling.
12420 * configure.in (--enable-gdbtk): Fix typo.
12421 (--enable-profiling): New. Set PROFILE_CFLAGS.
12422 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12423 Fill in function.
12424 (profiling_state): New variable.
12425 (mcleanup_wrapper): New function.
12426 (_initialize_maint): Remove NOTYET, fix call to
12427 add_setshow_boolean_cmd for "maint set profile".
12428 * configure: Regenerated.
12429
df21e465
MH
124302003-01-21 Martin M. Hunt <hunt@redhat.com>
12431
12432 * Makefile.in (install-gdbtk): Install PNG images too.
12433
73c1f219
AC
124342003-01-21 Andrew Cagney <ac131313@redhat.com>
12435
12436 * exec.c (text_start): Delete global variable.
12437 (exec_file_attach): Make text_start local to the function.
12438 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12439 * valops.c (hand_function_call): Delete code that handles
12440 BEFORE_TEXT_END and AFTER_TEXT_END.
12441 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12442 of CALL_DUMMY_LOCATION.
12443 * gdbarch.c: Regenerate.
12444 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12445 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12446 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12447 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12448 (text_end): Delete extern declaration.
12449
eb4f72c5
AC
124502003-01-21 Andrew Cagney <ac131313@redhat.com>
12451
12452 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12453 * blockframe.c (backtrace_below_main): Move to "frame.c".
12454 (frame_chain_valid): Delete check for backtrace_below_main.
12455 (_initialize_blockframe): Delete initialization, move ``set
12456 backtrace-below-main'' command to "frame.c".
12457 (do_flush_frames_sfunc): Delete function.
12458 * frame.c: Include "command.h" and "gdbcmd.h".
12459 (frame_type_from_pc): New function.
12460 (create_new_frame): Use frame_type_from_pc.
12461 (legacy_get_prev_frame): New function.
12462 (get_prev_frame): Rewrite. When an old style frame, call
12463 legacy_get_prev_frame. Otherwize, unwind the PC first.
12464 (_initialize_frame): Add ``set backtrace-below-main'' command.
12465 * Makefile.in (frame.o): Update dependencies.
12466
778ce8cc
AC
124672003-01-19 Andrew Cagney <ac131313@redhat.com>
12468
12469 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12470 DEPRECATED_REGISTERS_INFO.
12471
01c193c8
AC
124722003-01-19 Andrew Cagney <ac131313@redhat.com>
12473
12474 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12475 Maintainers'. Update `Various Maintainers'.
12476
dedc2a2b
AC
124772003-01-19 Andrew Cagney <ac131313@redhat.com>
12478
12479 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12480 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12481 Suppress actual parameters when `-'.
12482 * gdbarch.h, gdbarch.c: Regenerate.
12483
b7261c70
AC
124842003-01-19 Andrew Cagney <ac131313@redhat.com>
12485
12486 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12487 code handling dummy frames.
12488
dbe9fe58
AC
124892003-01-19 Andrew Cagney <ac131313@redhat.com>
12490
12491 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12492 (struct frame_unwind): Add field pop.
12493 * frame.h (frame_pop): Declare.
12494 * frame.c (frame_saved_regs_pop): New function.
12495 (trad_frame_unwinder): Add frame_saved_regs_pop.
12496 (frame_pop): New function.
12497 * dummy-frame.c (dummy_frame_pop): New function.
12498 (discard_innermost_dummy): New function.
12499 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12500 (dummy_frame_unwind): Add dummy_frame_pop.
12501 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12502 * valops.c (hand_function_call): Ditto.
12503 * stack.c (return_command): Ditto.
12504
570b8f7c
AC
125052003-01-18 Andrew Cagney <ac131313@redhat.com>
12506
12507 * cris-tdep.c: Fix function declaration indentation.
12508 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12509 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12510 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12511 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12512 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12513 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12514
125152003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12516
12517 * README (Unpacking and Installation -- quick overview):
12518 Warn against ".../gdb-5.3/gdb/configure".
12519
494cca16
AC
125202003-01-18 Andrew Cagney <ac131313@redhat.com>
12521
12522 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12523 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12524 (struct frame_unwind): Declare opaque.
12525 (dummy_frame_p): Declare function.
12526 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12527 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12528 * dummy-frame.c: Include "frame-unwind.h".
12529 (dummy_frame_p): New function.
12530 (dummy_frame_unwind): New variable.
12531 * frame.c: Include "frame-unwind.h".
12532 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12533 to use the new unwind field.
12534 (set_unwind_by_pc): Delete function.
12535 (create_new_frame, get_prev_frame): Set unwind field using
12536 frame_unwind_find_by_pc.
12537 (trad_frame_unwind, trad_frame_unwinder): New variables.
12538 * frame.h (trad_frame_unwind): Declare variable.
12539 (frame_id_unwind_ftype): Delete declaration.
12540 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12541 (struct frame_unwind): Declare opaque.
12542 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12543 register_unwind with a single unwind pointer.
12544 * frame-unwind.h, frame-unwind.c: New files.
12545 * Makefile.in (SFILES): Add frame-unwind.c.
12546 (frame_unwind_h): Define.
12547 (COMMON_OBS): Add frame-unwind.o.
12548 (frame-unwind.o): Specify dependencies.
12549 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12550
4efb68b1
AC
125512003-01-18 Andrew Cagney <ac131313@redhat.com>
12552
12553 * ada-valprint.c: Eliminate PTR.
12554 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12555 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12556 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12557 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12558 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12559 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12560 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12561
a84d24ee
AC
125622003-01-17 Andrew Cagney <ac131313@redhat.com>
12563
762f08a3
AC
12564 * main.c (captured_main): Don't use PTR.
12565 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12566 * gdbtypes.c (lookup_primitive_typename): Ditto.
12567 (lookup_struct_elt_type): Ditto.
12568 * f-valprint.c (info_common_command): Ditto.
12569 (list_all_visible_commons): Ditto.
12570 * jv-typeprint.c (java_type_print_base): Ditto.
12571
a84d24ee
AC
12572 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12573 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12574 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12575 i386-interix-nat.c and i386-interix-tdep.c. Rename
12576 m68klinux-nat.c and m68klinux-tdep.c. Rename
12577 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12578 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12579 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12580 * main.c (captured_main): Use xfree, not free.
12581
c170fb60
AC
125822003-01-16 Andrew Cagney <ac131313@redhat.com>
12583
12584 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12585 ID back using a parameter.
12586 * frame.c (frame_id_unwind): Update call.
12587 (frame_saved_regs_id_unwind): Update.
12588 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12589 * dummy-frame.h (struct frame_id): Add opaque declaration.
12590 (dummy_frame_id_unwind): Update declaration.
12591
867f3898
AC
125922003-01-15 Andrew Cagney <ac131313@redhat.com>
12593
12594 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12595
40622be8 125962003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12597
40622be8 12598 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12599
ae66c1fc
EZ
126002003-01-14 Elena Zannoni <ezannoni@redhat.com>
12601
997b089a 12602 Fix PR gdb/898
ae66c1fc
EZ
12603 * breakpoint.c (until_break_command): Add new argument. Use it to
12604 decide whether to stop only at the current frame or not.
12605 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12606 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12607 call.
12608 (advance_command): New function.
12609 (_initialize_infcmd): Update help string for 'until' command.
12610 Add new 'advance' command.
12611
a04257e6
DC
126122003-01-14 David Carlton <carlton@math.stanford.edu>
12613
12614 * linespec.c (decode_line_1): Normalize comments.
12615 (set_flags): Ditto.
12616 (locate_first_half): Ditto.
12617 (decode_compound): Ditto.
12618 (symtab_from_filename): Ditto.
12619 (decode_all_digits): Ditto.
12620 (decode_dollar): Ditto.
12621 (find_methods): Ditto.
12622 (find_toplevel_char): Ditto.
12623
1bac305b
AC
126242003-01-13 Andrew Cagney <ac131313@redhat.com>
12625
12626 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12627 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12628 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12629 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12630 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12631 * language.c, language.h, m32r-tdep.c: Update copyright.
12632 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12633 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12634 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12635 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12636 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12637 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12638
25caa7a8
EZ
126392003-01-13 Elena Zannoni <ezannoni@redhat.com>
12640
12641 * stabsread.h (process_later, resolve_cfront_continuation):
12642 Obsolete.
12643 Update copyright years.
12644 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12645 Update copyright year.
12646 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12647 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12648 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12649 Update copyright year.
12650 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12651 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12652 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12653 (parse_partial_symbols): Obsolete cfront support.
12654 * stabsread.c
12655 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12656 macros.
12657 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12658 read_cfront_baseclasses, read_cfront_member_functions,
12659 resolve_cfront_continuation,read_cfront_static_fields,
12660 copy_cfront_struct_fields): Obsolete functions.
12661 (define_symbol, read_one_struct_field): Obsolete cfront support.
12662 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12663 Update Copyright year.
12664
7789c6f5
EZ
126652003-01-13 Elena Zannoni <ezannoni@redhat.com>
12666
12667 * stack.c (print_frame_info, print_stack_frame_base_stub,
12668 print_stack_frame_base, show_and_print_stack_frame_stub,
12669 show_and_print_stack_frame, print_only_stack_frame_stub,
12670 print_only_stack_frame): Delete functions.
12671 (print_stack_frame_stub): Call print_frame_info instead of
12672 print_frame_info_base.
12673 (print_frame_info_base): Rename to print_frame_info.
12674 (backtrace_command_1): Call print_frame_info, instead of
12675 print_frame_info_base.
12676 (current_frame_command): Call print_stack_frame, instead of
12677 print_only_stack_frame.
12678 (frame_command): Call print_stack_frame, instead of
12679 show_and_print_stack_frame.
12680 (up_command): Ditto.
12681 (down_command): Ditto.
12682 * frame.h (print_only_stack_frame): Delete prototype.
12683 * infrun.c (normal_stop): Call print_stack_frame, instead of
12684 show_and_print_stack_frame.
12685 * thread.c (info_threads_command): Call print_stack_frame, instead
12686 of print_only_stack_frame.
12687
3f5a3016
AC
126882003-01-13 Andrew Cagney <ac131313@redhat.com>
12689
d99ba314
AC
12690 * README (Graphical interface to GDB): Update URL. Point at
12691 gdb/links/.
12692
3f5a3016
AC
12693 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12694 version match.
12695
083ae935
DJ
126962003-01-13 Daniel Jacobowitz <drow@mvista.com>
12697
12698 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12699 lines.
12700
5365276c
DJ
127012003-01-13 Daniel Jacobowitz <drow@mvista.com>
12702
12703 * thread-db.c (attach_thread): Prototype.
12704 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12705 thread information (ti), and valid flags (th_valid, ti_valid).
12706 (attach_thread): Move target_pid_to_str call to after the thread
12707 is added to GDB's list. Initialize the cache.
12708 (thread_get_info_callback, thread_db_map_id2thr)
12709 (thread_db_get_info): New functions.
12710 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12711 (thread_db_store_registers, thread_db_thread_alive)
12712 (thread_db_get_thread_local_address): Use them.
12713 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12714 of calling error() for threads in unknown state.
12715
12716 (clear_lwpid_callback): New function.
12717 (thread_db_resume): Use it to clear the cache.
12718
9fc30b6b
DJ
127192003-01-13 Daniel Jacobowitz <drow@mvista.com>
12720
12721 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12722 (resume_callback): Remove dead code.
12723
8f871025
AC
127242003-01-13 Andrew Cagney <ac131313@redhat.com>
12725
12726 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12727 predicate.
12728 * gdbarch.h, gdbarch.c: Regenerate.
12729 * stack.c (frame_info): Only initialize the saved registers when
12730 FRAME_INIT_SAVED_REGS_P.
12731 * frame.c (frame_saved_regs_register_unwind): Assert
12732 FRAME_INIT_SAVED_REGS_P.
12733 (deprecated_generic_get_saved_register): Ditto.
12734
3f565f1e
DJ
127352003-01-13 Daniel Jacobowitz <drow@mvista.com>
12736
12737 * source.c (openp): Squelch warning about "filename".
12738
072b1022
DJ
127392003-01-13 Daniel Jacobowitz <drow@mvista.com>
12740
12741 * source.c (openp): If the file does not exist don't necessarily
12742 search the path.
12743
973ccf8b
DJ
127442003-01-13 Daniel Jacobowitz <drow@mvista.com>
12745
12746 Fix PR gdb/872.
12747 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12748 (integer_types_same_name_p): New function.
12749 (rank_one_type): Use it.
12750 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12751
030292b7
DJ
127522003-01-13 Daniel Jacobowitz <drow@mvista.com>
12753
12754 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12755 variables.
12756 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12757 * configure.in: Add --with-sysroot.
12758 * configure: Regenerated.
12759 * main.c (gdb_sysroot): New variable.
12760 (captured_main): Initialize gdb_sysroot.
12761 * defs.h (gdb_sysroot): New extern declaration.
12762 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12763
afb5d334
MC
127642003-01-12 Michael Chastain <mec@shout.net>
12765
12766 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12767
751ceeb4
MC
127682003-01-12 Michael Chastain <mec@shout.net>
12769
12770 * top.c (print_gdb_version): Bump copyright year to 2003.
12771
94cd26f8
DC
127722003-01-12 David Carlton <carlton@bactrian.org>
12773
12774 * linespec.c (symtab_from_filename): Rename variable 's' to
12775 'file_symtab'.
12776
1ce79225
AC
127772003-01-12 Andrew Cagney <ac131313@redhat.com>
12778
12779 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12780 dummy frame.
12781 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12782
fa1fd571
AC
127832003-01-12 Andrew Cagney <ac131313@redhat.com>
12784
12785 * d10v-tdep.c: Include "gdb_assert.h".
12786 (d10v_store_return_value): Rewrite to match current interface.
12787 (d10v_extract_struct_value_address): Ditto.
12788 (d10v_extract_return_value): Ditto.
12789 (d10v_gdbarch_init): Set store_restore_value,
12790 extract_struct_value_address and extract_return_value.
12791
68b8d23e
JB
127922003-01-12 J. Brobecker <brobecker@gnat.com>
12793
12794 * hpread.c (set_namestring): New procedure replacing the
12795 SET_NAMESTRING macro.
12796 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12797 by calls to set_namestring.
12798
127992003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12800
12801 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12802 a compilation warning.
12803 (hpread_process_one_debug_symbol): Likewise.
12804
88d262ca
DC
128052003-01-10 David Carlton <carlton@math.stanford.edu>
12806
12807 * linespec.c (decode_line_1): Rename variable 's' to
12808 'file_symtab'.
12809 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12810 (decode_dollar): Ditto.
12811 (decode_variable): Ditto.
12812 (symbol_found): Ditto.
12813
86669319
MC
128142003-01-09 Michael Chastain <mec@shout.net>
12815
12816 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12817
616a9dc4
CV
128182003-01-07 Corinna Vinschen <vinschen@redhat.com>
12819
12820 * win32-nat.c (set_process_privilege): New function.
12821 (child_attach): Call set_process_privilege() to enable the
12822 SE_DEBUG_NAME user privilege if available in process token.
12823
3269bcfa
JB
128242003-01-10 J. Brobecker <brobecker@gnat.com>
12825
12826 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12827 compilation error in the previous revision.
12828
2b0ee454
DC
128292003-01-09 David Carlton <carlton@math.stanford.edu>
12830
12831 * linespec.c: Update copyright.
12832
b3ba1b44
DJ
128332003-01-09 Daniel Jacobowitz <drow@mvista.com>
12834
12835 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12836 than inferior_ptid.
12837 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12838
4ef3f3be
AC
128392003-01-09 Andrew Cagney <ac131313@redhat.com>
12840
479ab5a0
AC
12841 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12842 Update comments.
12843 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12844 (frame_saved_regs_zalloc): Update.
12845 (frame_saved_regs_register_unwind): Update.
12846 (create_new_frame): Update.
12847 (get_prev_frame): Update.
12848 (frame_extra_info_zalloc): Update.
12849 (deprecated_get_frame_saved_regs): Update.
12850 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12851 * cris-tdep.c: Update comment.
12852
bde58177
AC
12853 * somsolib.h: Fix function indentation.
12854 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12855 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12856 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12857 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12858 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12859
4ef3f3be
AC
12860 * infrun.c (follow_fork): Use ISO C definition.
12861 * expprint.c (print_subexp): Use xfree instead of free.
12862 * charset.c: Include "gdb_string.h" instead of <string.h>.
12863 (register_iconv_charsets): Use ISO C definition.
12864 (host_charset, target_charset): Ditto.
12865 * Makefile.in (charset.o): Update dependencies.
12866 (mi-cmd-env.o): Update dependencies.
12867
1c615f7a
AC
128682003-01-08 Andrew Cagney <cagney@redhat.com>
12869
12870 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12871 get_frame_base.
12872
c9a1dc08
AC
128732003-01-08 Andrew Cagney <ac131313@redhat.com>
12874
12875 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12876 build directories. Save edited gdb output in Mbuild.log. If a
12877 build fails, remove any final GDB executable.
12878
dbad9d94
AC
128792003-01-08 Andrew Cagney <ac131313@redhat.com>
12880
12881 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12882 replacing hex constants with function names and stripping leading
12883 file name directory prefixes.
12884
8d357cca
AC
128852003-01-08 Andrew Cagney <cagney@redhat.com>
12886
12887 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12888 get_frame_base.
12889
bca02a8a
DC
128902003-01-08 David Carlton <carlton@math.stanford.edu>
12891
12892 * linespec.c (decode_line_1): Move code into decode_variable.
12893 (decode_variable): New function.
12894
7f8ab3a0
AC
128952003-01-08 Andrew Cagney <ac131313@redhat.com>
12896
12897 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12898
7b5849cc
AC
128992003-01-08 Andrew Cagney <cagney@redhat.com>
12900
12901 * cris-tdep.c (cris_frame_init_saved_regs): Use
12902 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12903 saved_regs buffer.
12904 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12905 (sh64_nofp_frame_init_saved_regs): Ditto.
12906 (sh_fp_frame_init_saved_regs): Ditto.
12907 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12908 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12909 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12910 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12911
72a5efb3
DJ
129122003-01-08 Daniel Jacobowitz <drow@mvista.com>
12913
12914 * minsyms.c (lookup_minimal_symbol): Update comment.
12915 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12916 (lookup_minimal_symbol_solib_trampoline): Likewise.
12917
11c02a10
AC
129182003-01-08 Andrew Cagney <cagney@redhat.com>
12919
aab3ea25
AC
12920 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12921 frame_relative_level.
12922
da50a4b7
AC
12923 * alpha-tdep.c: Use get_frame_extra_info.
12924 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12925 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12926 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12927 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12928
11c02a10
AC
12929 * alpha-tdep.c: Use get_next_frame.
12930 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12931 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12932 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12933 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12934 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12935 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12936 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12937
1e2330ba
AC
129382003-01-07 Andrew Cagney <cagney@redhat.com>
12939
12940 * alpha-tdep.c: Use get_frame_base.
12941 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12942 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12943 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12944 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12945 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12946 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12947 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12948 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12949
2d75187b
AC
129502003-01-07 Andrew Cagney <cagney@redhat.com>
12951
12952 * frame.c (deprecated_get_frame_context): New function.
12953 (deprecated_set_frame_context): New function.
12954 * frame.h (deprecated_get_frame_context): Declare.
12955 (deprecated_set_frame_context): Declare.
12956 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12957 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12958
483d36b2
AC
129592003-01-07 Andrew Cagney <cagney@redhat.com>
12960
12961 * frame.c (deprecated_set_frame_next_hack): New function.
12962 (deprecated_set_frame_prev_hack): New function.
12963 * frame.h (deprecated_set_frame_next_hack): Declare.
12964 (deprecated_set_frame_prev_hack): Declare.
12965 * mcore-tdep.c (analyze_dummy_frame): Use
12966 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12967 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12968
14e91ac5
DC
129692003-01-07 David Carlton <carlton@math.stanford.edu>
12970
12971 * linespec.c (decode_line_1): Move code into decode_dollar.
12972 (decode_dollar): New function.
12973
b0c6b05c
AC
129742003-01-07 Andrew Cagney <cagney@redhat.com>
12975
12976 * arm-tdep.c (arm_init_extra_frame_info): Use
12977 deprecated_update_frame_base_hack.
12978 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12979 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12980 (fix_frame_pointer): Ditto.
12981 (mn10300_analyze_prologue): Ditto.
12982
a00a19e9
AC
129832003-01-07 Andrew Cagney <cagney@redhat.com>
12984
12985 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12986 extra_info using frame_extra_info_zalloc.
12987 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12988 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12989 (sh64_init_extra_frame_info): Ditto.
12990 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12991 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12992 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12993 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12994 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12995 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12996 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12997 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12998 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12999 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13000 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13001 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13002
13003 * mn10300-tdep.c (analyze_dummy_frame): Use
13004 deprecated_set_frame_extra_info_hack.
13005 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13006
1fb4c65b
JB
130072003-01-07 J. Brobecker <brobecker@gnat.com>
13008
13009 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13010 class is not scText. These do not define "real" procedures.
13011 (parse_partial_symbols): Likewise.
13012
9fe7d6bf
MS
130132003-01-06 Michael Snyder <msnyder@redhat.com>
13014
13015 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13016
f6c609c4
AC
130172003-01-06 Andrew Cagney <ac131313@redhat.com>
13018
13019 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13020 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13021 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13022 deprecated_frame_xmalloc_with_cleanup.
13023 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13024 deprecated_frame_xmalloc.
13025 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13026 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13027
d995ff4b
AC
130282003-01-06 Andrew Cagney <cagney@redhat.com>
13029
84dc46cb
AC
13030 * x86-64-linux-tdep.c: Include "osabi.h".
13031 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13032
d995ff4b
AC
13033 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13034
66140c26
AC
130352003-01-06 Andrew Cagney <cagney@redhat.com>
13036
13037 * MAINTAINERS (Target Instruction Set Architectures): Update
13038 arm-elf. Can be built with -Werror, has been multiarched.
13039
13040 * value.h (unpack_long): Make buffer parameter constant.
13041 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13042 * scm-lang.h (scm_parse): Ditto.
13043 * defs.h (extract_typed_address, extract_address): Ditto.
13044 (extract_long_unsigned_integer): Ditto.
13045 * inferior.h (unsigned_pointer_to_address): Ditto.
13046 (signed_pointer_to_address): Ditto.
13047 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13048 * gdbarch.h, gdbarch.c: Regenerate.
13049 * findvar.c (extract_long_unsigned_integer): Update.
13050 (extract_address): Update.
13051 (extract_typed_address): Update.
13052 (unsigned_pointer_to_address): Update.
13053 * values.c (unpack_long): Update.
13054 (unpack_double): Update.
13055 (unpack_pointer): Update.
13056 (unpack_field_as_long): Update.
13057 * d10v-tdep.c (d10v_pointer_to_address): Update.
13058 * avr-tdep.c (avr_pointer_to_address): Update.
13059 * scm-lang.c (scm_unpack): Update.
13060 * findvar.c (signed_pointer_to_address): Update.
13061
b089b3da
ML
130622003-01-06 Michal Ludvig <mludvig@suse.cz>
13063
8ffd9b1b 13064 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13065 since it is in i386-tdep.c.
13066
aff87235
JB
130672003-01-06 J. Brobecker <brobecker@gnat.com>
13068
13069 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13070 failure introduced in the previous change.
13071
34f5e845
MC
130722003-01-05 Michael Chastain <mec@shout.net>
13073
13074 * README: Remove references to deleted remote-*.c files:
13075 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13076 remote-nrom.c, remote-os9k.c, remote-udi.c.
13077
28bcfd30
MK
130782003-01-05 Mark Kettenis <kettenis@gnu.org>
13079
13080 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13081 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13082 i386_get_longjmp_target.
13083
15a5b3ee
AC
130842003-01-05 Andrew Cagney <ac131313@redhat.com>
13085
13086 * arm-tdep.c (prologue_cache): Change to a pointer.
13087 (_initialize_arm_tdep): Allocate prologue_cache.
13088 (check_prologue_cache): Update.
13089 (save_prologue_cache): Update.
13090 (arm_gdbarch_init): Update.
13091
c263362b
DJ
130922003-01-04 Daniel Jacobowitz <drow@mvista.com>
13093
13094 * stabsread.c (update_method_name_from_physname): Call complaint()
13095 instead of error.
13096
51603483
DJ
130972003-01-04 Daniel Jacobowitz <drow@mvista.com>
13098
13099 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13100 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13101 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13102
13103 * blockframe.c: Include "gdbcmd.h" and "command.h".
13104 (backtrace_below_main): New variable.
13105 (file_frame_chain_valid, func_frame_chain_valid)
13106 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13107 (generic_func_frame_chain_valid): Remove functions.
13108 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13109 (_initialize_blockframe): New function.
13110 * Makefile.in (blockframe.o): Update dependencies.
13111 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13112 comment. Call frame_chain_valid ().
13113 * frame.h: Remove old prototypes. Add prototype for
13114 frame_chain_valid and update comments to match.
13115 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13116 Remove old comment.
13117 * gdbarch.h: Regenerated.
13118 * gdbarch.c: Regenerated.
13119
13120 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13121 set_gdbarch_frame_chain_valid.
13122 * avr-tdep.c (avr_gdbarch_init): Likewise.
13123 * cris-tdep.c (cris_gdbarch_init): Likewise.
13124 * frv-tdep.c (frv_gdbarch_init): Likewise.
13125 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13126 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13127 (i386_nw_init_abi): Likewise.
13128 (i386_gdbarch_init): Likewise.
13129 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13131 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13132 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13133 * mips-tdep.c (mips_gdbarch_init): Likewise.
13134 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13135 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13136 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13137 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13138 * s390-tdep.c (s390_gdbarch_init): Likewise.
13139 * sh-tdep.c (sh_gdbarch_init): Likewise.
13140 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13141 * v850-tdep.c (v850_gdbarch_init): Likewise.
13142 * vax-tdep.c (vax_gdbarch_init): Likewise.
13143 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13144
13145 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13146 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13147 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13148 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13149 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13150 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13151 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13152 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13153
b00a8037
DJ
131542002-01-04 Daniel Jacobowitz <drow@mvista.com>
13155
13156 * Makefile.in (acconfig_h): Remove incorrect macro.
13157 (config_h): Define.
13158 (osabi.o): Update dependencies.
13159 * configure.tgt: Set gdb_osabi based on target triplet.
13160 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13161 * configure: Regenerated.
13162 * config.in: Regenerated.
13163 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13164 (GDB_OSABI_DEFAULT): Define if not already defined.
13165 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13166 (set_osabi_string): New variables.
13167 (gdbarch_register_osabi): Add new OS ABI to
13168 gdb_osabi_available_names.
13169 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13170 (set_osabi, show_osabi): New functions.
13171 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13172
4be87837
DJ
131732003-01-04 Daniel Jacobowitz <drow@mvista.com>
13174
13175 * arch-utils.c (gdbarch_info_init): Set osabi to
13176 GDB_OSABI_UNINITIALIZED.
13177 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13178 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13179 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13180 * gdbarch.c: Regenerated.
13181 * gdbarch.h: Regenerated.
13182 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13183 there's no BFD.
13184 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13185 * osabi.h (enum gdb_osabi): Move to defs.h.
13186 (gdbarch_init_osabi): Update prototype.
13187 * defs.h (enum gdb_osabi): Moved here.
13188 * Makefile.in: Update dependencies.
13189
13190 * alpha-tdep.h: Don't include "osabi.h".
13191 (struct gdbarch_tdep): Remove osabi member.
13192 * alpha-tdep.c: Include "osabi.h".
13193 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13194 iterate over arches. Update call to gdbarch_init_osabi.
13195 (alpha_dump_tdep): Don't dump osabi.
13196 * alpha-linux-tdep.c: Include "osabi.h".
13197 * alpha-osf1-tdep.c: Include "osabi.h".
13198 * alphafbsd-tdep.c: Include "osabi.h".
13199 * alphanbsd-tdep.c: Include "osabi.h".
13200
13201 * arm-tdep.h: Don't include "osabi.h".
13202 (struct gdbarch_tdep): Remove osabi member.
13203 * arm-tdep.c: Include "osabi.h".
13204 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13205 iterate over arches. Update call to gdbarch_init_osabi.
13206 (arm_dump_tdep): Don't dump osabi.
13207 * arm-linux-tdep.c: Include "osabi.h".
13208 * armnbsd-tdep.c: Include "osabi.h".
13209
13210 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13211 Update call to gdbarch_init_osabi.
13212
13213 * i386-tdep.h: Don't include "osabi.h".
13214 (struct gdbarch_tdep): Remove osabi member.
13215 * i386-tdep.c: Include "osabi.h".
13216 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13217 iterate over arches. Update call to gdbarch_init_osabi.
13218 (i386_dump_tdep): Don't dump osabi.
13219 * i386-linux-tdep.c: Include "osabi.h".
13220 * i386-sol2-tdep.c: Include "osabi.h".
13221 * i386bsd-tdep.c: Include "osabi.h".
13222 * i386gnu-tdep.c: Include "osabi.h".
13223 * i386ly-tdep.c: Include "osabi.h".
13224 * i386nbsd-tdep.c: Include "osabi.h".
13225 * i386obsd-tdep.c: Include "osabi.h".
13226
13227 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13228 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13229 check osabi when iterating over arches. Update call to
13230 gdbarch_init_osabi.
13231 (mips_dump_tdep): Don't dump osabi.
13232
13233 * ns32k-tdep.h: Don't include "osabi.h".
13234 (struct gdbarch_tdep): Remove.
13235 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13236 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13237 allocate tdep. Update call to gdbarch_init_osabi.
13238 (ns32k_dump_tdep): Remove.
13239 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13240 * ns32knbsd-tdep.c: Include "osabi.h".
13241
13242 * ppc-tdep.h: Don't include "osabi.h".
13243 (struct gdbarch_tdep): Remove osabi member.
13244 * rs6000-tdep.c: Include "osabi.h".
13245 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13246 osabi when iterating over arches. Update call to
13247 gdbarch_init_osabi.
13248 (rs6000_dump_tdep): Don't dump osabi.
13249 * ppc-linux-tdep.c: Include "osabi.h".
13250 * ppcnbsd-tdep.c: Include "osabi.h".
13251
13252 * sh-tdep.h: Don't include "osabi.h".
13253 (struct gdbarch_tdep): Remove osabi member.
13254 * sh-tdep.c: Include "osabi.h".
13255 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13256 iterate over arches. Update call to gdbarch_init_osabi.
13257 (sh_dump_tdep): Don't dump osabi.
13258 * shnbsd-tdep.c: Include "osabi.h".
13259
13260 * sparc-tdep.c: Include "osabi.h".
13261 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13262 iterate over arches. Update call to gdbarch_init_osabi.
13263 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13264 tdep structure.
13265
13266 * vax-tdep.h: Don't include "osabi.h".
13267 (struct gdbarch_tdep): Remove.
13268 * vax-tdep.c: Include "osabi.h".
13269 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13270 iterate over arches. Don't allocate tdep. Update call
13271 to gdbarch_init_osabi.
13272 (vax_dump_tdep): Remove.
13273 (_initialize_vax_tdep): Update call to gdbarch_register.
13274
a881cf8e
DJ
132752003-01-04 Daniel Jacobowitz <drow@mvista.com>
13276
13277 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13278 entirely.
13279 (breakpoint_re_set_one): Don't fetch the value for a disabled
13280 watchpoint.
13281
1e698235
DJ
132822003-01-04 Daniel Jacobowitz <drow@mvista.com>
13283
13284 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13285 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13286 (COERCE_FLOAT_TO_DOUBLE): Remove.
13287 * gdbarch.c: Regenerate.
13288 * gdbarch.h: Regenerate.
13289 * Makefile.in: Remove value_h from gdbarch_h.
13290 * valops.c (coerce_float_to_double): New variable.
13291 (default_coerce_float_to_double): Remove.
13292 (standard_coerce_float_to_double): Remove.
13293 (value_arg_coerce): Use coerce_float_to_double.
13294 (_initialize_valops): Add "set coerce-float-to-double".
13295 * value.h (default_coerce_float_to_double): Remove prototype.
13296 (standard_coerce_float_to_double): Remove prototype.
13297
13298 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13299 prototyped.
13300 * mdebugread.c (parse_symbol): Likewise.
13301 * stabsread.c (define_symbol): Mark all functions as prototyped.
13302
13303 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13304 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13305 set_gdbarch_coerce_float_to_double.
13306 * arm-tdep.c (arm_gdbarch_init): Likewise.
13307 * frv-tdep.c (frv_gdbarch_init): Likewise.
13308 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13309 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13310 * mips-tdep.c (mips_gdbarch_init): Likewise.
13311 (mips_coerce_float_to_double): Remove.
13312 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13313 (rs6000_coerce_float_to_double): Remove.
13314 * s390-tdep.c (s390_gdbarch_init): Likewise.
13315 * sh-tdep.c (sh_gdbarch_init): Likewise.
13316 (sh_coerce_float_to_double): Remove.
13317 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13318 (sparc_coerce_float_to_double): Remove.
13319 * v850-tdep.c (v850_gdbarch_init): Likewise.
13320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13321 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13322 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13323 (hppa_coerce_float_to_double): Remove prototype.
13324 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13325
f436a26a
DJ
133262003-01-04 Daniel Jacobowitz <drow@mvista.com>
13327
13328 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13329
248f8055
DJ
133302003-01-04 Daniel Jacobowitz <drow@mvista.com>
13331
13332 Suggested by Stewart Brown <sb24@avaya.com>:
13333 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13334 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13335 (c_type_print_varspec_suffix): Likewise.
13336
72cfdc76
MK
133372003-01-04 Mark Kettenis <kettenis@gnu.org>
13338
bfd260bb
MK
13339 * configure.in: Don't set and AC_SUBST SUBDIRS.
13340 * configure: Regenerated.
13341
72cfdc76
MK
13342 * configure.in: Remove code dealing with shared libraries.
13343 * Makefile.in: Remove HLDFLAGS and HLDENV.
13344 * configure: Regenerated.
13345
c8b8a898
AC
133462003-01-04 Andrew Cagney <ac131313@redhat.com>
13347
13348 * frame.c (deprecated_frame_xmalloc): New function.
13349 (deprecated_set_frame_saved_regs_hack): New function.
13350 (deprecated_set_frame_extra_info_hack): New function.
13351 * frame.h (deprecated_frame_xmalloc): Declare.
13352 (deprecated_set_frame_saved_regs_hack): Declare.
13353 (deprecated_set_frame_extra_info_hack): Declare.
13354
14abd0fb
MK
133552003-01-04 Mark Kettenis <kettenis@gnu.org>
13356
8ee53726
MK
13357 * configure.in: Move code that provides the --enable-gdbtk option
13358 right after the code that handles the --enable-tui option, and
13359 polish it somewhat.
13360 * configure: Regenerated.
13361
14abd0fb
MK
13362 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13363 AC_CHECK_FUNCS and remove the old check for pread64.
13364 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13365 * acconfig.h (_GNU_SOURCE): Add.
13366 (HAVE_PREAD64): Remove.
13367 * configure, aclocal.m4, config.in: Regenerated.
13368
b2fb4676
AC
133692003-01-03 Andrew Cagney <ac131313@redhat.com>
13370
13371 * alpha-tdep.c: Use get_frame_saved_regs.
13372 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13373 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13374 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13375 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13376 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13377
8dcde887
MK
133782003-01-03 Mark Kettenis <kettenis@gnu.org>
13379
13380 * configure.in: Remove all use of the SUBDIRS variable; add
13381 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13382 code providing the --enable-multi-ice option, and move it right in
13383 front of the code that checks whether gdbserver is supported.
13384 Polish that too.
13385 * configure: Regenerated.
13386 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13387 @SUBDIRS@.
13388
8ccd593b
AC
133892003-01-03 Andrew Cagney <cagney@redhat.com>
13390
13391 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13392 * avr-tdep.c, cris-tdep.c: Ditto.
13393 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13394 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13395
91151a06
MK
133962003-01-03 Mark Kettenis <kettenis@gnu.org>
13397
13398 * configure.in: Remove --enable-netrom option.
13399 * configure: Regenerated.
13400
8fe84d01
MK
134012003-01-03 Mark Kettenis <kettenis@gnu.org>
13402
13403 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13404 declaration for `struct re_pattern_buffer' instead.
13405 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13406
f0394be6
JB
134072003-01-03 J. Brobecker <brobecker@gnat.com>
13408
13409 * mdebugread.c (parse_symbol): Count until the stEnd matching
13410 the structure name.
13411
27e9bf90
MK
134122003-01-02 Mark Kettenis <kettenis@gnu.org>
13413
93d331ba
MK
13414 * configure.in: Remove --with-cpu option.
13415 subscripts. Remove evil changequotes here.
13416 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13417 * config.in, configure: Regenerated.
8ffd9b1b 13418
27e9bf90
MK
13419 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13420 * configure.in: Cleanup section that sources GDB and BFD configure
13421 subscripts. Remove evil changequotes here.
13422 * config.in, configure: Regenerated.
13423
50abf9e5
AC
134242003-01-02 Andrew Cagney <ac131313@redhat.com>
13425
13426 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13427 frame accessor methods.
13428 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13429 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13430 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13431 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13432 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13433 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13434 * z8k-tdep.c: Ditto.
8ffd9b1b 13435
287c1a40
MK
134362003-01-02 Mark Kettenis <kettenis@gnu.org>
13437
f5dbc56d
MK
13438 * configure.in: Remove UI_OUT configuration code.
13439 * ada-lang.c: Update assuming UI_OUT is always true.
13440 * Makefile.in (UIOUT_CFLAGS): Remove.
13441 * configure: Regenerated.
13442 * TODO: Remove blurb about elimination of -DUI_OUT.
13443
627af7ea
MK
13444 * configure.in: Move code that provides the --enable-gdbcli,
13445 --enable-gdbmi options right before the code that handles the
13446 --enable-tui option. Polish a bit.
13447 * configure: Regenerated.
13448
06825bd1
MK
13449 * configure.in: Rewrite check for GNU regex and the
13450 --without-included regex option, and move it into the "Checks for
13451 library functions" section. This makes us use the system regex
13452 again by default on systems with version 2 of the GNU C library.
13453 This was apparently broken.
13454 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13455 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13456 * config.in, configure: Regenerated.
13457
287c1a40
MK
13458 * configure.in: Move code that provides the --enable-tui option
13459 before the "Checks for libraries" section. Polish the code
13460 somewhat and set need_curses to yes if we build the TUI. Rewrite
13461 code that looks for a library providing termcap functionality to
13462 match more closely what's done in the Readline library, and move
13463 it into to the "Checks for libraries" section.
13464 * configure: Regenerated.
13465 * Makefile.in (TERMCAP): Remove variable.
13466 * config/i386/go32.mh (TERMCAP): Remove variable.
13467
684e56bf
AC
134682003-01-02 Andrew Cagney <ac131313@redhat.com>
13469
13470 * MAINTAINERS: Mention gdb_mbuild.sh.
13471 * gdb_mbuild.sh: Rewrite.
13472
e1ea1d75
MK
134732003-01-02 Mark Kettenis <kettenis@gnu.org>
13474
13475 * configure.in: Fix typo in last change.
13476 * config.in, configure: Regenerated.
13477
1b831c93
AC
134782003-01-02 Andrew Cagney <ac131313@redhat.com>
13479
13480 * valarith.c (value_binop): Delete obsolete code and comments.
13481 * configure.host: Ditto.
13482 * buildsym.h (make_blockvector): Ditto.
13483 * buildsym.c (make_blockvector): Ditto.
13484 * defs.h (enum language): Ditto.
13485 (chill_demangle): Ditto.
13486 * elfread.c (elf_symtab_read): Ditto.
13487 * dwarfread.c (CHILL_PRODUCER): Ditto.
13488 (set_cu_language): Ditto.
13489 (handle_producer): Ditto.
13490 * expprint.c (print_subexp): Ditto.
13491 * gdbtypes.c (chill_varying_type): Ditto.
13492 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13493 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13494 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13495 (chill_varying_type): Ditto.
13496 * language.h (_LANG_chill): Ditto.
13497 * language.c (binop_result_type, integral_type): Ditto.
13498 (character_type, string_type, structured_type): Ditto.
13499 (lang_bool_type, binop_type_check): Ditto.
13500 * stabsread.h (os9k_stabs): Ditto.
13501 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13502 (define_symbol, read_type, read_struct_fields): Ditto.
13503 (read_array_type, read_enum_type, read_huge_number): Ditto.
13504 (read_range_type, start_stabs): Ditto.
13505 * symfile.c (init_filename_language_table): Ditto.
13506 (add_psymbol_with_dem_name_to_list): Ditto.
13507 * symtab.c (symbol_init_language_specific): Ditto.
13508 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13509 * symtab.h (struct general_symbol_info): Ditto.
13510 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13511 * typeprint.c (typedef_print): Ditto.
13512 * utils.c (fprintf_symbol_filtered): Ditto.
13513 * valops.c (value_cast, search_struct_field, value_slice): Delete
13514 obsolete code.
13515 (varying_to_slice): Delete function.
13516 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13517 (varying_to_slice): Delete declaration.
13518 * MAINTAINERS: Update.
13519
8bb2c122
MK
135202003-01-02 Mark Kettenis <kettenis@gnu.org>
13521
97bf5e38
MK
13522 * configure.in: Reorganize "Checks for library functions section"
13523 a bit. Remove check for `btowc' and `isascii' functions.
13524 * configure: Regenerated.
13525
5ee754fc
MK
13526 * acconfig.h (_MSE_INT_H): Remove.
13527 * configure.in: Create "Checks for header files" section, and move
13528 appropriate tests there. Don't check for objlist.h, wchar.h,
13529 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13530 misdetection fix. Also add "Checks for types", "Checks for
13531 compiler characteristics" and "Checks for library functions"
13532 sections.
13533 * config.in, configure: Regenerated.
13534
8bb2c122
MK
13535 * configure.in: Create "Checks for programs" section, and move
13536 appropriate tests there.
13537
9a156167
MK
135382003-01-01 Mark Kettenis <kettenis@gnu.org>
13539
13540 * configure.in: Create "Checks for libraries" section, and move
13541 appropriate tests there. Cleanup check for wctype in libw. Use
13542 AC_SEARCH_LIBS to see whether we need libsocket.
13543 * configure: Regenerated.
13544
a80e2bcb 13545For older changes see ChangeLog-2002
c906108c
SS
13546\f
13547Local Variables:
13548mode: change-log
13549left-margin: 8
13550fill-column: 74
13551version-control: never
13552End:
This page took 1.044077 seconds and 4 git commands to generate.