2003-10-21 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aa2a9a3c
JJ
12003-10-20 Jeff Johnston <jjohnstn@redhat.com>
2
3 * ia64-tdep.c: Change all occurrences of
4 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
5 (ia64_frame_prev_register): Minor whitespace change.
6
4beec2b7
MC
72003-10-20 Michael Chastain <mec@shout.net>
8
9 * config/djgpp/fnchange.lst: Add lines for:
10 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
11 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
12 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
13 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
14 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
15 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
16 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
17
92ad9cd9
AC
182003-10-20 Andrew Cagney <cagney@redhat.com>
19
20 * values.c (register_value_being_returned): Update comments. Use
21 "gdbarch_return_value" when available.
22 (using_struct_return): Ditto.
23 (set_return_value): Ditto. Use "gdbarch_return_value" when
24 available.. Print a warning, and not an error, when an unhandled
25 return type is encountered.
26 * infcmd.c: Include "gdb_assert.h".
27 (print_return_value): When gdbarch_return_value_p, and using
28 struct return, assume that the value is not available.
29 * defs.h (return_value_convention): Define.
30 * gdbarch.sh (gdbarch_return_value): New predicate method.
31 * gdbarch.h, gdbarch.c: Re-generate
32 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
33
198beae2
AC
342003-10-20 Andrew Cagney <cagney@redhat.com>
35
36 * symtab.c: Replace "struct sec" with "struct bfd_section".
37 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
38
24d693a6 392003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
40
41 * config/djgpp/fnchange.lst: Add lines for:
42 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
43 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
44 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
45
21ad8dc3
MK
462003-10-19 Mark Kettenis <kettenis@gnu.org>
47
48 * amd64fbsd-nat.c (fetch_inferior_registers,
49 store_inferior_registers): Remove functions.
50 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
51
cced5e27
MK
522003-10-18 Mark Kettenis <kettenis@gnu.org>
53
54 Add NetBSD/amd64 native configuration:
55 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
56 * amd64nbsd-tdep.c: New file.
57 * amd64nbsd-nat.c: New file.
58 * amd64bsd-nat.c: New file.
59 * config/i386/nbsd64.mh: New file.
60 * config/i386/nbsd64.mt: New file.
61 * configure.host: Add x86_64-*-netbsd*.
62 * configure.tgt: Add x86_64-*-netbsd*.
63 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
64 New targets.
65 * NEWS (New native configurations): Mention NetBSD/amd64.
66
666de3fd
MC
672003-10-17 Michael Chastain <mec@shout.net>
68
69 * config/djgpp/fnchange.lst: Remove dead lines for:
70 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
71 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
72 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
73 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
74 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
75 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
76 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
77 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
78 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
79 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
80 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
81 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
82 gdb/config/sparc/tm-sparclite.h,
83 gdb/gdbtk/generic/ChangeLog-2001,
84 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
85 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
86 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
87 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
88 gdb/testsuite/gdb.mi/mi0-var-block.exp,
89 gdb/testsuite/gdb.mi/mi0-var-child.exp,
90 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
91 gdb/testsuite/gdb.mi/mi0-var-display.exp,
92 itcl/iwidgets3.0.0/demos/extfileselectionbox,
93 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
94 itcl/iwidgets3.0.0/demos/fileselectionbox,
95 itcl/iwidgets3.0.0/demos/fileselectiondialog,
96 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
97 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
98 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
99 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
100 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
101 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
102 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
103 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
104 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
105 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
106 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
107 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
108 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
109 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
110 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
111 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
112 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
113 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
114 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
115 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
116 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
117 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
118 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
119 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
120 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
121 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
122 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
123 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
124 itcl/iwidgets3.0.0/demos/html/shell.n.html,
125 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
126 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
127 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
128 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
129 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
130 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
131 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
132 itcl/iwidgets3.0.0/demos/scrolledcanvas,
133 itcl/iwidgets3.0.0/demos/scrolledframe,
134 itcl/iwidgets3.0.0/demos/scrolledhtml,
135 itcl/iwidgets3.0.0/demos/scrolledlistbox,
136 itcl/iwidgets3.0.0/demos/scrolledtext,
137 itcl/iwidgets3.0.0/demos/selectionbox,
138 itcl/iwidgets3.0.0/demos/selectiondialog,
139 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
140 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
141 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
142 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
143 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
144 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
145 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
146 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
147 itcl/iwidgets3.0.0/doc/scrolledframe.n,
148 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
149 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
150 itcl/iwidgets3.0.0/doc/scrolledtext.n,
151 itcl/iwidgets3.0.0/doc/selectionbox.n,
152 itcl/iwidgets3.0.0/doc/selectiondialog.n,
153 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
154 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
155 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
156 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
157 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
158 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
159 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
160 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
161 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
162 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
163 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
164 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
165 itcl/iwidgets3.0.0/generic/selectionbox.itk,
166 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
167 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
168 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
169 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
170 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
171 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
172 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
173 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
174 itcl/iwidgets3.0.0/tests/scrolledframe.test,
175 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
176 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
177 itcl/iwidgets3.0.0/tests/scrolledtext.test,
178 itcl/iwidgets3.0.0/tests/selectionbox.test,
179 itcl/iwidgets3.0.0/tests/selectiondialog.test,
180 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
181 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
182 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
183 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
184 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
185 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
186 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
187 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
188 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
189 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
190 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
191 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
192 tk/mac/tkMacProjects.sit.hqx.
193
1e3ff5ad
AC
1942003-10-17 Andrew Cagney <cagney@redhat.com>
195
8db32d44
AC
196 * target.c (target_section_by_addr): New function.
197 (do_xfer_memory): Use "target_section_by_addr".
198 * target.h (target_section_by_addr): Declare.
199
1e3ff5ad
AC
200 * target.h (struct target_ops): Add "to_read_partial" and
201 "to_write_partial", delete "to_query".
202 (target_read_partial, target_write_partial): Declare.
203 (target_read, target_write): Declare.
204 (target_query): Delete macro.
205 * target.c (target_read_partial): New function.
206 (target_write_partial, target_read, target_write): New function.
207 (update_current_target): Delete inheritance of "to_query". Add
208 comments about "to_read_partial" and "to_write_partial".
209 (debug_to_partial_read, debug_to_partial_write): New functions.
210 (debug_to_query): Delete function.
211 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
212 instead of "to_query".
213 * remote.c (remote_read_partial): Replace "remote_query".
214 (init_remote_ops): Set "to_read_partial" instead of "to_query".
215 (init_remote_async_ops): Ditto.
216 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
217 "target_read_partial" instead of "target_query".
218 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
219 Use "target_read_partial" instead of "target_query".
220
48c66725
JJ
2212003-10-17 Jeff Johnston <jjohnstn@redhat.com>
222
223 * frame.h (struct frame_id): Add new field: special_addr.
224 (frame_id_build_special): New prototype.
225 * frame.c (frame_id_build_special): New function.
226 (frame_id_build): Change to call frame_id_build_special().
227 (frame_id_eq): Change to also test special_addr field.
228 (frame_id_inner): Update comment.
229
7998dfc3
AC
2302003-10-17 Andrew Cagney <cagney@redhat.com>
231
232 * target.c (update_current_target): Perform the target cleanup.
233 Put the target stack beneath the squashed "current_target".
234 (add_target): Delete disabled call to "cleanup_target".
235 (cleanup_target): Delete function.
236 (push_target, unpush_target): Do not call "cleanup_target".
237
9c04404e 2382003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
239
240 * target.c (target_stack): Change to a static target_ops.
241 (update_current_target): Walk the "struct target_ops" stack.
242 (pop_target, do_xfer_memory, target_info): Ditto.
243 (find_target_beneath): Ditto.
244 (push_target): Rewrite to use the "struct target_ops" stack.
245 (unpush_target): Ditto.
246 * target.h (struct target_stack_item): Delete definition.
247 (target_stack): Delete declaration.
248 (struct target_ops): Add field "beneath".
249
c98a2b49 2502003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
251
252 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
253 declaration.
254 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
255 (h8300_examine_prologue): Use h8300_normal_mode flag
256 (h8300_gdbarch_init): Set architecture info for normal mode
257
506fb367
DJ
2582003-10-16 Daniel Jacobowitz <drow@mvista.com>
259
260 * remote.c (remote_protocol_vcont): New variable.
261 (set_remote_protocol_vcont_packet_cmd): New function.
262 (show_remote_protocol_vcont_packet_cmd): New function.
263 (init_all_packet_configs): Handle remote_protocol_vcont.
264 (remote_vcont_probe): New function.
265 (remote_vcont_resume): New function.
266 (remote_resume): Use it.
267 (remote_async_resume): Call remote_resume.
268 (_initialize_remote): Add verbose-resume packet commands.
269
65815ea1
AC
2702003-10-16 Andrew Cagney <cagney@redhat.com>
271
272 * infrun.c (handle_inferior_event): Add comment about
273 "frame_id_inner" being too weak.
274
40324f1b
EZ
2752003-10-16 Elena Zannoni <ezannoni@redhat.com>
276
277 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
278 second parameter, which is always null. Remove
279 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
280 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
281 accordingly.
282 * somsolib.c (som_solib_create_inferior_hook,
283 som_solib_desire_dynamic_linker_symbols): Update callers.
284 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
285
2862003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
287
288 * remote-m32r-sdi.c : New file, interface to m32r on-chip
289 debug interface, SDI (Scalable Debug Interface).
290 * NEWS: Mention m32r SDI protocol was supported.
291 * Makefile.in (remote-m32r-sdi.o): Add build rule.
292 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
293
51931cbb
JJ
2942003-10-15 Jeff Johnston <jjohnstn@redhat.com>
295
296 * ia64-linux-tdep.c: Include gdbcore.h.
297 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
298 (ia64_linux_sigcontext_register_addr): Find the address of the
299 sigcontext area stored in the sigframe instead of using
300 a magic offset constant.
301
84e7fd53
AC
3022003-10-15 Andrew Cagney <cagney@redhat.com>
303
304 * remote.c (remote_search): Delete function.
305 * target.h (target_search): Delete disabled macro.
306 (struct target_ops): Delete disabled field "to_search".
307
0f4d7c52
KB
3082003-10-14 Kevin Buettner <kevinb@redhat.com>
309
310 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
311 instead of deprecated_inside_entry_file().
312
2e952408
CV
3132003-10-14 Corinna Vinschen <vinschen@redhat.com>
314
315 * sh-tdep.c: Fix copy/paste hangover in comment.
316 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
317 mode.
318 (sh3e_sh4_extract_return_value): Ditto.
319
7e86466e
RH
3202003-10-13 Richard Henderson <rth@redhat.com>
321
322 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
323 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
324 match c_val_print a bit closer.
325
46a16dba
KB
3262003-10-13 Kevin Buettner <kevinb@redhat.com>
327
328 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
329 (frv_gdbarch_adjust_breakpoint_address): New function.
330 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
331 method.
332
76897487
KB
3332003-10-13 Kevin Buettner <kevinb@redhat.com>
334
335 * breakpoint.h (struct breakpoint): Add new member
336 ``requested_address''.
337 * breakpoint.c (breakpoint_adjustment_warning)
338 (adjust_breakpoint_address): New static functions.
339 (print_it_typical): Issue warning if breakpoint's address is different
340 from its requested address.
341 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
342 (breakpoint_re_set_one): Set breakpoint's
343 ``requested_address'' field. Set ``address'' field to the
344 result of calling adjust_breakpoint_address() on the requested
345 address.
346
a1131521
KB
3472003-10-13 Kevin Buettner <kevinb@redhat.com>
348
349 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
350 * gdbarch.h, gdbarch.c: Regenerate.
351
6ce6d90f
MK
3522003-10-11 Mark Kettenis <kettenis@gnu.org>
353
155c1d33
MK
354 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
355 TDEP->sc_num_regs.
356
8a96bc77
MK
357 * i386fbsd-tdep.c: New file.
358 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
359 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
360 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
361 i386bsd-tdep.c.
362 (_initialize_i386fbsd_tdep): New function.
363 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
364 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
365 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
366 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
367 TDEP->sc_num_regs.
368 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
369 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
370 to initialize TDEP->sc_num_regs.
371 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
372 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
373 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
374 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
375 FreeBSD ELF OS/ABI's here.
376 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
377 (i386fbsd-tdep.o): New target.
378 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
379 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
380
477f40d1
MK
381 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
382 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
383 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
384 in initialization of TDEP->sc_num_regs.
385
c6b33596
MK
386 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
387 (x86_64_init_abi): Initialize regset_from_core_section if
388 appropriate.
389
8446b36a
MK
390 * i386-tdep.c (i386_regset_from_core_section): New function.
391 (i386_gdbarch_init): Initialize regset_from_core_section if
392 appropriate.
393 * i386-tdep.h (i386_regset_from_core_section): New declaration.
394
c783cbd6
MK
395 * i386-tdep.h (struct regset): Declare opaque.
396
6ce6d90f
MK
397 * gdbarch.sh (regset_from_core_section): New method.
398 (struct regset): Declare opaque.
399 * gdbarch.c, gdbarch.h: Regenerated.
400
b98ed7be
AM
4012003-10-11 Alan Modra <amodra@bigpond.net.au>
402
403 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
404 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
405 Correct test for pc within section.
406
f6214256
MK
4072003-10-11 Mark Kettenis <kettenis@gnu.org>
408
409 * gdbarch.sh: Remove trailing whitepsace from comments.
410
a8f4cde1
RM
4112003-10-08 Roland McGrath <roland@redhat.com>
412
413 * gcore.c (make_mem_sec): Function removed, folded into ...
414 (gcore_create_callback): ... here. To omit a section, clear its
415 SEC_LOAD bit rather than zeroing its size.
416 Omit read-only sections only if they correspond to a known disk file.
417 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
418
74276724
MS
4192003-10-10 Michael Snyder <msnyder@redhat.com>
420
421 * d10v-tdep.c: Fix typo in comment.
422
e754ae69
AC
4232003-10-10 Andrew Cagney <cagney@redhat.com>
424
425 * rs6000-tdep.c (e500_store_return_value): Delete function.
426 (e500_extract_return_value): Delete function.
427 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
428 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
429 "ppc_sysv_abi_restore_return_value" where applicable.
430 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
431 (ppc_sysv_abi_extract_return_value): Declare.
432 (ppc_sysv_abi_broken_store_return_value): Declare.
433 (ppc_sysv_abi_broken_extract_return_value): Declare.
434 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
435 * ppc-sysv-tdep.c (return_value_convention): Move definition to
436 start of file.
437 (do_ppc_sysv_return_value): New function.
438 (ppc_sysv_abi_extract_return_value): New function.
439 (ppc_sysv_abi_store_return_value): New function.
440 (ppc_sysv_abi_broken_extract_return_value): New function.
441 (ppc_sysv_abi_broken_store_return_value): New function.
442 (ppc_sysv_abi_use_struct_convention): Call
443 do_ppc_sysv_return_value.
444
8d4ce20a
JB
4452003-10-10 J. Brobecker <brobecker@gnat.com>
446
447 * blockframe.c (inside_main_func): No longer use symbol_lookup()
448 to lookup the main function symbol.
449
afce3d2a
CV
4502003-10-10 Corinna Vinschen <vinschen@redhat.com>
451
452 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
453 types correctly.
454 (sh_push_dummy_call_fpu): Fix argument passing rules.
455 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
456 float types.
457 (sh3e_sh4_store_return_value): Ditto.
458
7fe958be
EZ
4592003-10-10 Elena Zannoni <ezannoni@redhat.com>
460
461 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
462 comment.
463
3f997a97
CV
4642003-10-10 Corinna Vinschen <vinschen@redhat.com>
465
466 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
467 more readable code. Accomodate passing of bitfields.
468
8be9034a
AC
4692003-10-10 Andrew Cagney <cagney@redhat.com>
470
471 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
472 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
473 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
474 * ppc-sysv-tdep.c: Include "gdb_assert.h".
475 (ppc64_sysv_abi_push_dummy_call): New function.
476 (ppc64_sysv_abi_broken_push_dummy_call): New function.
477 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
478 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
479
85a453d5
KI
4802003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
481
482 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
483 * README: Ditto.
484 * d10v-tdep.c: Ditto.
485 * h8300-tdep.c: Ditto.
486 * remote-e7000.c: Ditto.
487 * remote-hms.c: Ditto.
488 * ser-e7kpc.c: Ditto.
489 * sh-stub.c: Ditto.
490 * sh-tdep.c: Ditto.
491 * sh-tdep.h: Ditto.
492 * sh3-rom.c: Ditto.
493 * sh64-tdep.c: Ditto.
494 * top.c: Ditto.
495 * wince.c: Ditto.
496 * config/d10v/d10v.mt: Ditto.
497 * config/sh/embed.mt: Ditto.
498 * config/sh/linux.mt: Ditto.
499 * config/sh/tm-linux.h: Ditto.
500 * config/sh/tm-sh.h: Ditto.
501 * config/sh/wince.mt: Ditto.
502
221c12ff
AC
5032003-10-09 Andrew Cagney <cagney@redhat.com>
504
505 * ppc-tdep.h (struct type): Declare opaque.
506 * x86-64-tdep.h (struct regcache): Declare opaque.
507 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
508 coding style.
509
ef5200c1
AC
5102003-10-09 Andrew Cagney <cagney@redhat.com>
511
512 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
513 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
514 (SOFTWARE_SINGLE_STEP_P): Ditto.
515 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
516 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
517 (SOFTWARE_SINGLE_STEP_P): Ditto.
518 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
519 software_single_step to rs6000_software_single_step.
a8f4cde1 520
9644bbdd
AC
5212003-10-09 Andrew Cagney <cagney@redhat.com>
522
523 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
524
db72fa6b
MS
5252003-10-09 Michael Snyder <msnyder@redhat.com>
526
f3efb16c
MS
527 * frame.h: Fix typo in comment.
528 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
529 * d10v-tdep.c: Random whitespace/comment tweaks.
530
9a5cef92
EZ
5312003-10-09 Elena Zannoni <ezannoni@redhat.com>
532
533 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 534 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 535 on stack.
a8f4cde1 536
9a5cef92
EZ
537 Based on input by Stephen Clarke (stephen.clarke@superh.com):
538 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
539 in detail.
a8f4cde1 540
0f317a0c
DJ
5412003-10-09 Daniel Jacobowitz <drow@mvista.com>
542
543 * remote-mips.c (mips_initialize): Remove unneeded call to
544 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
545
bbab2f46
DJ
5462003-10-09 Daniel Jacobowitz <drow@mvista.com>
547
548 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
549 a memory pointer.
550
550950b8
JJ
5512003-10-08 Jeff Johnston <jjohnstn@redhat.com>
552
553 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
554 for any lwp we resume.
555 (running_callback): Add lwps that have pending status events
556 against them to be considered running.
557
15c69bc7
KI
5582003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
559
560 * m32r-tdep.c : Include "dis-asm.h".
561 * Makefile.in (m32r-tdep.o): Update dependencies.
562
51065942
JB
5632003-10-06 J. Brobecker <brobecker@gnat.com>
564
565 * completer.h (get_gdb_completer_word_break_characters): Delete.
566 * completer.c: include language.h.
567 (gdb_completer_word_break_characters): Delete.
568 (get_gdb_completer_word_break_characters): Delete.
569 (location_completer): Use the word break characters of the current
570 language.
571 (complete_line): Likewise.
572 (line_completion_function): Likewise.
573 (skip_quoted_chars): Likewise.
574 * Makefile.in (completer.o): Add dependency on language.h.
575 * top.c (init_main): Set the readline word break characters
576 to GDB's default word break characters.
577
6084f43a
JB
5782003-10-06 J. Brobecker <brobecker@gnat.com>
579
580 * language.h (language_defn): new field, la_word_break_characters.
581 * language.c (unknown_language_defn): Set new field to
582 default_word_break_characters.
583 (auto_language_defn): Likewise.
584 (local_language_defn): Likewise.
585 * ada-lang.c (ada_language_defn): Likewise.
586 * c-lang.c (c_language_defn): Likewise.
587 (cplus_language_defn): Likewise.
588 (asm_language_defn): Likewise.
589 (minimal_language_defn): Likewise.
590 * f-lang.c (f_language_defn): Likewise.
591 * jv-lang.c (java_language_defn): Likewise.
592 * m2-lang.c (m2_language_defn): Likewise.
593 * objc-lang.c (objc_language_defn): Likewise.
594 * p-lang.c (pascal_language_defn): Likewise.
595 * scm-lang.c (scm_language_defn): Likewise.
596
944fcfab
AC
5972003-10-06 Andrew Cagney <cagney@redhat.com>
598
599 * ppc-sysv-tdep.c: Re-indent.
600
9f0a5303
JB
6012003-10-06 J. Brobecker <brobecker@gnat.com>
602
603 * language.h (default_word_break_characters): Add prototype.
604 * language.c (default_word_break_characters): New function.
605
7270b6ed
AS
6062003-10-06 Andreas Schwab <schwab@suse.de>
607
608 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
609 with %eax.
610
a5d61f66
AC
6112003-10-06 Andrew Cagney <cagney@redhat.com>
612
613 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
614 "h8500-tdep.c".
615 (z8k-tdep.o): Delete custom build rule.
616
28a86f5c
AC
6172003-10-06 Andrew Cagney <cagney@redhat.com>
618
1bfd8a83
AC
619 * Makefile.in: Update all dependencies.
620
17144ef8
AC
621 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
622 No longer list PA as as obsolete candidate. List m32r as
623 broken instead of obsolete.
a8f4cde1 624
a5679ae5
AC
625 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
626 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
627 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
628 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
629 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
630 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
631 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
632 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
633 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
634 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
635 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
636 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
637 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
638 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
639 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
640 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
641 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
642 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
643 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
644 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
645 * config/z8k/z8k.mt: Ditto.
646
4a8269c0
AC
647 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
648 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
649 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
650 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
651 sparclite were removed.
652 * configure.host, configure.tgt: Remove corresponding tuples.
653
41989fcd
AC
654 * breakpoint.c, breakpoint.h: Remove obsolete code.
655 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
656 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
657 * stabsread.h, xcoffread.c: Ditto.
658
28a86f5c
AC
659 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
660 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
661 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
662 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
663
4efdaa0d
DL
6642003-10-06 David Lecomber <dsl@sources.redhat.com>
665
666 * f-valprint.c: Reformatting
667
ae53de43
MK
6682003-10-06 Mark Kettenis <kettenis@gnu.org>
669
a8bb57e7
MK
670 * x86-64-tdep.c: Remove duplicate comment.
671
ae53de43
MK
672 * x86-64-tdep.c (x86_64_store_return_value): Don't use
673 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
674 names for return values. This fixes a bug since we looked at %rbx
675 instead of %rdx.
676
473f17b0
MK
6772003-10-05 Mark Kettenis <kettenis@gnu.org>
678
2c261fae
MK
679 * x86-64-tdep.c: Include "regset.h".
680
473f17b0
MK
681 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
682 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
683 sizeof_fpregset.
684 * i386-tdep.c: Include "regset.h".
685 (i386_supply_gregset): New function.
686 (i386_supply_fpregset): New function.
687 (i386_gdbarch_init): Initialze register set-related members of
688 TDEP.
689 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
690 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
691
afd48b75
AC
6922003-10-03 Andrew Cagney <cagney@redhat.com>
693
694 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
695 set extract_return_value, store_return_value and
696 use_struct_convention to ppc64_sysv_abi_extract_return_value,
697 ppc64_sysv_abi_store_return_value and
698 ppc64_sysv_abi_use_struct_convention.
699 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
700 (ppc64_sysv_abi_store_return_value): Declare.
701 (ppc64_sysv_abi_use_struct_convention): Declare.
702 * ppc-sysv-tdep.c (enum return_value_convention): Define.
703 (ppc64_sysv_abi_extract_return_value): New function.
704 (ppc64_sysv_abi_store_return_value): New function.
705 (ppc64_sysv_abi_use_struct_convention): New function.
706 (ppc64_sysv_abi_return_value): New function.
707
9b540880
AC
7082003-10-03 Andrew Cagney <cagney@redhat.com>
709
710 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
711 convert a descriptor to a function when it's in the ".opd"
712 section.
713
8748518b
CV
7142003-10-03 Corinna Vinschen <vinschen@redhat.com>
715
716 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
717 reg_size to keep GCC silent.
718
0fd85043
CV
7192003-10-03 Corinna Vinschen <vinschen@redhat.com>
720
721 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
722 base for DW_EH_PE_textrel encodings.
723 (read_encoded_value): Add a DW_EH_PE_textrel case.
724 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
725 section.
726
37b517aa
MK
7272003-10-03 Mark Kettenis <kettenis@gnu.org>
728
729 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
730
12c266ea
AC
7312003-10-02 Andrew Cagney <cagney@redhat.com>
732
733 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
734 REGISTER_RAW_SIZE.
735 * gdbarch.h, gdbarch.c: Re-generate.
736 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
737 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
738 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
739 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
740 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
741 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
742 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
743 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
744 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
745 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
746 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
747 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
748 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
749 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
750 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
751 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 752
78ba4af6
JB
7532003-10-02 Jim Blandy <jimb@redhat.com>
754
755 * dwarf2read.c (struct die_info): Doc fix.
756
617daa0e
CV
7572003-10-02 Corinna Vinschen <vinschen@redhat.com>
758
759 * sh-tdep.c: Running thru gdb_indent.sh.
760
e5e33cd9
CV
7612003-10-02 Corinna Vinschen <vinschen@redhat.com>
762
763 * sh-tdep.c (sh_justify_value_in_reg): New function.
764 (sh_stack_allocsize): Ditto.
765 (flt_argreg_array): New array used for floating point argument
766 passing.
767 (sh_init_flt_argreg): New function.
a8f4cde1 768 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
769 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
770 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
771 Fix argument passing strategy.
772 (sh_push_dummy_call_nofpu): Ditto.
773
5fe830e4
AC
7742003-10-01 Andrew Cagney <cagney@redhat.com>
775
776 * value.h (register_value_being_returned): Declare. Replace
777 "value_being_returned".
778 * infcall.c (call_function_by_hand): Use
779 register_value_being_returned.
780 * infcmd.c (print_return_value): Call
781 "register_value_being_returned", handle struct return locally.
782 * values.c (register_value_being_returned): New function. Replace
783 "value_being_returned".
a8f4cde1 784
5fe830e4 7852003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
786
787 * linux-proc.c (linux_do_registers): New function.
788 (linux_make_note_section): Use linux_do_registers in case of
789 single threaded inferior programs.
790
64f395bf
AC
7912003-10-01 Andrew Cagney <cagney@redhat.com>
792
793 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
794 use STRUCT_ADDR. When not using "struct return convention", pass
795 "0" to "value_being_returned". Add FIXMEs.
796 * infcmd.c (print_return_value): Pass an explicit 0/1 to
797 value_being_returned. Add comments.
798 * values.c (value_being_returned): Add fixme.
799 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
800 (hppa_value_returned_from_stack): Add FIXME.
801
639d11d3
DC
8022003-09-30 David Carlton <carlton@kealia.com>
803
804 * dwarf2read.c (struct die_info): Add 'parent' field; replace
805 'has_children' and 'next' by 'child' and 'sibling'.
806 (read_comp_unit): Rework algorithm, breaking body into
807 read_die_and_children and read_die_and_siblings.
808 (read_die_and_children, read_die_and_siblings): New.
809 (read_full_die): Add 'has_children' argument; set it instead of
810 the die's 'has_children' field. Minor formatting cleanup.
811 (free_die_list): Use die->child and die->sibling instead of
812 die->next.
813 (dump_die_list): Ditto.
814 (sibling_die): Use die->sibling.
815 (psymtab_to_symtab_1): Use die's 'child' field in place of its
816 'has_children' and 'next' fields.
a8f4cde1
RM
817 (process_die, read_file_scope, read_func_scope)
818 (read_lexical_block_scope, read_structure_scope)
819 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
820 (read_namespace, read_subroutine_type, dump_die): Ditto.
821
5bffac25
AC
8222003-09-30 Andrew Cagney <cagney@redhat.com>
823
824 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
825 to 224, not 220.
826
f30992d4
AC
8272003-09-30 Andrew Cagney <cagney@redhat.com>
828
829 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
830 REGISTER_VIRTUAL_SIZE.
831 * gdbarch.h, gdbarch.c: Regenerate.
832 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
833 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
834 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
835
2e092625
AC
8362003-09-29 Andrew Cagney <cagney@redhat.com>
837
838 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
839 DEPRECATED_REGISTER_VIRTUAL_TYPE.
840 * gdbarch.h, gdbarch.c: Regenerate.
841 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
842 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
843
844 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
845 * remote-vxmips.c (vx_read_register): Ditto.
846 * remote-vx68.c (vx_read_register): Ditto.
847 * gnu-nat.c (inf_validate_procs): Ditto.
848
7a5dd6ee
JB
8492003-09-29 J. Brobecker <brobecker@gnat.com>
850
851 * infcall.c (call_function_by_hand): Fix build failure
852 introduced in the previous change to this file.
853
1fe43d45
AC
8542003-09-29 Andrew Cagney <cagney@redhat.com>
855
856 * NEWS: Mention Objective-C.
857
e28a332c
JG
8582003-09-29 Jerome Guitton <guitton@act-europe.fr>
859
860 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
861 test if the register has been saved on the stack.
862 (arm_scan_prologue_cache): When analysing the instruction
863 "str lr, [sp, #-4]", save the address where lr has been stored.
864
9ff63c35
AC
8652003-09-28 Andrew Cagney <cagney@redhat.com>
866
7f5f525d
AC
867 * frame.c (frame_read_unsigned_register): Delete function.
868 * frame.h (frame_read_unsigned_register): Delete declaration.
869 * sparc-tdep.c (sparc_init_extra_frame_info): Use
870 get_frame_register_unsigned.
871 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
872 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
873 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 874
7f5f525d
AC
875 * frame.h (frame_read_register): Delete declaration.
876 * frame.c (frame_read_register): Delete function.
877 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
878 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
879 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
880 * mips-tdep.c (mips_register_to_value): Ditto.
881 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
882 * d10v-tdep.c (d10v_print_registers_info): Ditto.
883
884 * frame.c (frame_read_signed_register): Delete function.
885 (frame_read_unsigned_register): Update comments.
886 * frame.h (frame_read_signed_register): Delete declaration.
887 * h8300-tdep.c (h8300_print_register): Use
888 get_frame_register_signed.
889 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
890
9ff63c35
AC
891 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
892 Rename VALUE_RETURNED_FROM_STACK.
893 * infcmd.c (print_return_value): Update.
894 * infcall.c (call_function_by_hand): Update.
895
41d041d6
MK
8962003-09-28 Mark Kettenis <kettenis@gnu.org>
897
898 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
899 regcache argument and reverse the order of the other two
900 arguments. Remove local regcache variable. Determine
901 architecture from REGCACHE. Update comments.
902 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
903 reverse the order of the other two arguments. Remove local
904 regcache variable. Determine architecture from REGCACHE. Update
905 comments.
906 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
907 prototypes. Update comments.
908 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
909 comment.
910 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
911 Update.
912 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
913 * i386-interix-nat.c (supply_fpregset): Update.
914 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
915 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
916 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
917 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
918 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
919 Update.
920 * i386obsd-tdep.c (fetch_core_registers): Update.
921 * i386v4-nat.c (supply_fpregset): Update.
922 * x86-64-linux-nat.c (supply_fpregset): Update.
923 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 924
1cb97e17
MK
9252003-09-27 Mark Kettenis <kettenis@gnu.org>
926
5716833c
MK
927 * i386-tdep.h: Put opaque declarations in alphabetical
928 order. Remove spurious whitespace.
929 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
930 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
931 * i386-tdep.c (MM0_REGNUM): Remove define.
932 (i386_mmx_regnum_p): Add gdbarch argument.
933 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
934 Rewrite using new macro definitions for FPU/SSE registers.
935 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
936 definitions from i387-tdep.h.
937 (i386_register_name): Update.
938 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
939 new macro definitions for FPU/SSE registers.
940 (i386_extract_return_value): Determine whether floating-point
941 registers are present by examining REGCACHE's architecture.
942 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
943 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
944 FPU/SSE registers.
945 (i386_register_type): Update.
946 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
947 definitions for FPU registers. Use REGCACHE's architecture to
948 determine the appropriate register numbers.
949 (i386_pseudo_register_read, i386_pseudo_register_write,
950 i386_register_reggroup_p): Update.
951 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
952 TDEP->mm0_regnum.
953 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
954 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
955 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
956 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
957 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
958 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
959 *' to `void *'.
960 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
961 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
962 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
963 definitions for FPU/SSE registers.
964 (FXSAVE_MXCSR_ADDR): New define.
965 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
966 TDEP->mm0_regnum.
967 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
968 (I387_ST0_REGNUM): Define.
969
41d35cb0
MK
970 * regcache.h (get_regcache_arch): New prototype.
971 * regcache.c (get_regcache_arch): New function.
972
54e74f72
MK
973 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
974 whitespace.
975
1cb97e17
MK
976 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
977 Initialize using ARRAY_SIZE.
978
0968aa8c
AC
9792003-09-27 Andrew Cagney <cagney@redhat.com>
980
981 * arch-utils.c (deprecated_init_frame_pc_default): Rename
982 "init_frame_pc_default".
983 * arch-utils.h (deprecated_init_frame_pc_default): Update.
984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
985 * vax-tdep.c (vax_gdbarch_init): Update.
986 * v850-tdep.c (v850_gdbarch_init): Update.
987 * sh64-tdep.c (sh64_gdbarch_init): Update.
988 * s390-tdep.c (s390_gdbarch_init): Update.
989 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
990 * mcore-tdep.c (mcore_gdbarch_init): Update.
991 * h8300-tdep.c (h8300_gdbarch_init): Update.
992 * cris-tdep.c (cris_gdbarch_init): Update.
993 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
994
54c84734
MK
9952003-09-26 Mark Kettenis <kettenis@gnu.org>
996
997 * regset.h: New file.
998 * Makefile.in (regset_h): Add.
999
1b1d3794
AC
10002003-09-25 Andrew Cagney <cagney@redhat.com>
1001
1002 * frame.h (deprecated_frame_saved_regs): Rename
1003 get_frame_saved_regs.
1004 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1005 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1006 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1007 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1008 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1009
e6beb428
AC
10102003-09-25 Andrew Cagney <cagney@redhat.com>
1011
1012 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1013 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1014 and Java.
1015 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1016 arm*-*-* do not use the new frame code.
1017
710122da
DC
10182003-09-25 David Carlton <carlton@kealia.com>
1019
1020 * c-exp.y: Remove 'register' declarations.
1021 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1022
79c2c32d
DC
10232003-09-25 David Carlton <carlton@kealia.com>
1024
1025 * c-exp.y: Include cp-support.h. Add qualified_type.
1026 (yylex): Delete nested type hack; add comments.
1027 * cp-namespace.c (cp_lookup_nested_type): New function.
1028 * cp-support.h: Declare cp_lookup_nested_type.
1029 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1030 instead of value_struct_elt_for_reference.
1031 * valops.c: Include cp-support.h.
1032 (value_aggregate_elt): New function.
1033 (value_namespace_elt): Ditto.
1034 (value_struct_elt_for_reference): Make static.
1035 * value.h: Delete declaration of value_struct_elt_for_reference;
1036 add declaration for value_aggregate_elt.
1037 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1038 (valops.o): Ditto.
1039
898c62f5
DJ
10402003-09-25 Daniel Jacobowitz <drow@mvista.com>
1041
1042 * stack.c: Include "reggroups.h".
1043 (frame_info): Only display registers in all_reggroup.
1044 * Makefile.in (stack.o): Update dependencies.
1045
28cd8767
JG
10462003-09-25 Jerome Guitton <guitton@act-europe.fr>
1047
1048 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1049 "add ip, sp #n" in the prologue.
1050 (arm_scan_prologue): Ditto.
1051
a4ab2b5d
JG
10522003-09-25 Jerome Guitton <guitton@act-europe.fr>
1053
1054 * MAINTAINERS (write after approval): Add myself.
1055
3f244638
AS
10562003-09-25 Andreas Schwab <schwab@suse.de>
1057
1058 * m68k-tdep.c: Include "dwarf2-frame.h".
1059 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1060 * Makefile.in (m68k-tdep.o): Update dependencies.
1061
1c0159e0
CV
10622003-09-25 Corinna Vinschen <vinschen@redhat.com>
1063
1064 * sh-tdep.c (struct frame_extra_info): Remove.
1065 (struct sh_frame_cache): New structure.
1066 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1067 (GET_TARGET_REG): Ditto but target register.
1068 (GET_PUSHED_REG): Remove.
1069 (IS_MOV_ARG_TO_REG): New macro.
1070 (IS_MOV_ARG_TO_IND_R14): New macro.
1071 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1072 (IS_MOVW_PCREL_TO_REG): New macro.
1073 (IS_MOVL_PCREL_TO_REG): New macro.
1074 (IS_SUB_REG_FROM_SP): New macro.
1075 (IS_ARG_MOV): Remove.
1076 (IS_MOV_TO_R14): Remove.
1077 (IS_RESTORE_FP): New macro.
1078 (IS_RTS): New macro.
1079 (IS_LDS): New macro.
1080 (IS_MOV_FP_SP): New macro.
1081 (IS_ADD_REG_TO_FP): New macro.
1082 (IS_ADD_IMM_FP): New macro.
1083 (sh_skip_prologue_hard_way): Remove.
1084 (sh_saved_pc_after_call): Remove.
1085 (sh_frame_chain): Remove.
1086 (sh_find_callers_reg): Remove.
a8f4cde1 1087 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1088 (sh_fp_frame_init_saved_regs): Remove.
1089 (sh_init_extra_frame_info): Remove.
1090 (sh_analyze_prologue): New function.
1091 (sh_skip_prologue): Remove deprecated code. Rely on new function
1092 sh_analyze_prologue when after_prologue fails.
1093 (sh_frame_saved_pc): Remove.
1094 (sh_alloc_frame_cache): New function.
1095 (sh_frame_cache): Ditto.
1096 (sh_frame_prev_register): Ditto.
1097 (sh_frame_this_id): Ditto.
1098 (sh_frame_unwind): New structure defining the heuristic frame
1099 sniffer interface.
1100 (sh_frame_sniffer): New function.
1101 (sh_unwind_sp): Ditto.
1102 (sh_unwind_pc): Ditto.
1103 (sh_unwind_dummy_id): Ditto.
1104 (sh_frame_base_address): Ditto.
1105 (sh_frame_base): New structure defining new frame base code.
1106 (sh_in_function_epilogue_p): New function.
1107 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1108 code and to call all new code instead. Initialize dwarf2 and
1109 heuristic frame sniffer.
1110
5f9769d1
PH
11112003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1112
a8f4cde1
RM
1113 * parser-defs.h (struct exp_descriptor): New definition, containing
1114 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1115 evaluating expressions.
1116 (exp_descriptor_standard): Declare new variable.
1117 (print_subexp): Make global and declare here (from expprint.c).
1118 (dump_subexp): Ditto.
1119 (dump_subexp_body_standard): Declare.
1120 (operator_length_standard): Declare.
1121 (op_name_standard): Declare.
1122 (print_subexp): Declare.
1123 (print_subexp_standard): Declare.
1124
1125 * language.h (struct language_defn): Add la_exp_desc field to hold
1126 pointer to table for language-specific operators.
1127 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1128
1129 * parse.c (operator_length): Move most code to new
5f9769d1 1130 operator_length_standard function. Use language-specific information.
a8f4cde1 1131 (operator_length_standard): New function taking most code from
5f9769d1
PH
1132 operator_length.
1133 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1134
1135 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1136 and OP_EXTENDED_LAST.
a8f4cde1
RM
1137
1138 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1139 Make global; remove static declaration.
1140 Move most code to print_subexp_standard.
a8f4cde1 1141 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1142 print_subexp.
1143 (op_name): Add expression to argument signature.
a8f4cde1 1144 Use langauge-specific op_name.
5f9769d1
PH
1145 Move most code to op_name_standard.
1146 (op_name_standard): New function, containing code formerly in op_name.
1147 (dump_subexp): Use new version of op_name function.
1148 Use language-specific dump_subexp_body, and move most existing code to
1149 dump_subexp_body_standard.
1150 (dump_raw_expression): Use new op_name interface.
1151 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1152 (dump_subexp_body_standard): New function, containing code formerly
1153 in dump_subexp_body.
a8f4cde1 1154
5f9769d1
PH
1155 * language.c (unknown_language): Add default la_exp_desc field and
1156 remove evaluate_exp field.
1157 (auto_language): Ditto.
1158 (local_language): Ditto.
1159 * f-lang.c (f_language_defn): Ditto.
1160 * c-lang.c (c_language_defn): Ditto.
1161 (cplus_language_defn): Ditto.
1162 (asm_language_defn): Ditto.
1163 (minimal_language_defn): Ditto.
1164 * p-lang.c (pascal_language_defn): Ditto.
1165 * m2-lang.c (m2_language_defn): Ditto.
1166 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1167
1168 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1169 Java-specific expression evaluator.
1170 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1171 field.
a8f4cde1 1172 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1173 Scheme-specific expression evaluator.
1174 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1175 field.
1176 * objc-lang.c (print_object_command): Take evaluate_exp from the
1177 la_exp_desc field.
a8f4cde1 1178
5f9769d1 1179 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1180
1181 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1182 la_exp_desc's type.
1183 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1184
24daaebc
PH
11852003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1186
1187 * parser-defs.h (operator_length): Declare.
a8f4cde1 1188
24daaebc
PH
1189 * parse.c (length_of_subexp): Use operator_length to get operator
1190 lengths and arities for operators.
1191 Move most code to new operator_length function.
a8f4cde1 1192 (operator_length): New function absorbing most code from
24daaebc
PH
1193 length_of_subexp.
1194 (prefixify_subexp): Remove large case and use operator_length instead.
1195 (parse_exp_1): Use renamings:
a8f4cde1 1196 dump_prefix_expression => dump_raw_expression and
24daaebc 1197 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1198
24daaebc
PH
1199 * expression.h (dump_prefix_expression): Rename to ...
1200 (dump_raw_expression): New name.
1201 (dump_postfix_expression): Rename to ...
1202 (dump_prefix_expression): New name.
a8f4cde1 1203
24daaebc
PH
1204 * expprint.c (dump_subexp): Make global. Add comment.
1205 Move most existing code to dump_subexp_body.
1206 (dump_subexp_body): New function.
1207 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1208 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1209 work before the expression is prefixified.
1210 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1211 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1212 that's what it does.
a8f4cde1 1213 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1214 prefixified expression.
1215 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1216
8c2957c4
JB
12172003-09-22 Jim Blandy <jimb@redhat.com>
1218
1219 * dwarf2read.c (read_array_type): When building the type for an
1220 array of unspecified length, make sure to choose the upper bound
1221 so that the array's total length comes out to be zero --- that's
1222 how we represent such arrays.
1223
592e3010
MC
12242003-09-22 Michael Chastain <mec@shout.net>
1225
1226 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1227
365c70b1
JJ
12282003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1229
1230 * top.c (quit_force): Fix indirect call to quit_target so
1231 a struct qt_args pointer is passed.
1232
5d6eb653
AC
12332003-09-22 Andrew Cagney <cagney@redhat.com>
1234
1235 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1236 * arch-utils.c (init_frame_pc_noop): Delete function.
1237 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1238 "init_frame_pc".
1239 * mips-tdep.c (mips_gdbarch_init): Ditto.
1240 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1241 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1242 declaration.
1243 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1244 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1245 declaration.
1246 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1247
b222a67f
AG
12482003-09-22 Anthony Green <green@redhat.com>
1249
1250 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1251 declaration.
1252
d5b5ac79
AC
12532003-09-20 Andrew Cagney <cagney@redhat.com>
1254
deafb061
AC
1255 * breakpoint.c: Eliminate ARGSUSED.
1256 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1257 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1258 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1259 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1260 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1261 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1262 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1263 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1264 * wince.c, remote-vx.c: Ditto.
1265
d5b5ac79
AC
1266 * cli/cli-script.c: Remove "register" attributes.
1267 * config/pa/tm-hppa.h: Ditto.
1268 * cli/cli-decode.c: Ditto.
1269 * cli/cli-cmds.c: Ditto.
1270
c6316faa
AC
12712003-09-19 Andrew Cagney <cagney@redhat.com>
1272
1273 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1274 DEPRECATED_NPC_REGNUM.
1275 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1276
f4f99b11
CF
12772003-09-19 Christopher Faylor <cgf@redhat.com>
1278
1279 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1280
1708f284
JB
12812003-09-19 Jim Blandy <jimb@redhat.com>
1282
1283 * macrotab.c (macro_include): Use the correct comparison to find
1284 the appropriate place for this inclusion in the list.
1285
b9fbf434
AC
12862003-09-19 Andrew Cagney <cagney@redhat.com>
1287
1288 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1289 (DEPRECATED_HPUX_TEXT_END): Define.
1290 (deprecated_hpux_text_end): Declare.
1291 (struct target_ops): Declare opaque.
1292 * hppah-nat.c (text_end): Make static.
1293 (deprecated_hpux_text_end): New function.
1294 * exec.c (text_end): Delete global variable.
1295 (NEED_TEXT_START_END): Do not define.
1296 (exec_file_attach): Replace code computing "text_end" code with
1297 call to DEPRECATED_HPUX_TEXT_END.
1298
5b03f266
AC
12992003-09-19 Andrew Cagney <cagney@redhat.com>
1300
1301 * utils.c (align_up, align_down): New functions.
1302 * defs.h (align_up, align_down): Declare.
1303 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1304 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1305 and "align_down".
1306 (round_up, round_down): Delete functions.
1307 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1308 "align_down".
1309 (ROUND_DOWN, ROUND_UP): Delete macros.
1310 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1311 * h8300-tdep.c: Replace "round_up" and "round_down" with
1312 "align_up" and "align_down".
1313 (round_up, round_down): Delete macros.
1314 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1315 "align_down".
1316 (ROUND_UP, ROUND_DOWN): Delete macros.
1317
51db5742
JB
13182003-09-18 J. Brobecker <brobecker@gnat.com>
1319
1320 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1321 hard-coded constant. Use the proper machine name instead.
1322
77949794
AC
13232003-09-17 Andrew Cagney <cagney@redhat.com>
1324
1325 * sparc-tdep.c (legacy_register_name): Delete function.
1326 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1327 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1328 * infcmd.c (gdb_register_name): Delete variable.
1329 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1330 REGISTER_NAME and "tm.h".
1331 * gdbarch.h, gdbarch.c: Regenerate.
1332 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1333 REGISTER_NAMES in comments.
1334 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1335 * m68klinux-nat.c (regmap): Ditto.
1336
b55c33cc
JB
13372003-09-17 Jim Blandy <jimb@redhat.com>
1338
1339 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1340
957e27ac
AC
13412003-09-17 Andrew Cagney <cagney@redhat.com>
1342
1343 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1344 (ppcnbsd_init_abi): Set "use_struct_convention" to
1345 "ppcnbsd_use_struct_convention".
1346
192cb3d4
MK
13472003-09-17 Mark Kettenis <kettenis@gnu.org>
1348
1349 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1350 * gdbarch.h, gdbarch.c: Regenerate.
1351 (stabs_argument_has_addr): New architecture method.
1352 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1353 * arch-utils.c: Include "buildsym.h".
1354 (default_stabs_argument_has_addr): New function.
1355 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1356 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1357
efe59759
AC
13582003-09-17 Andrew Cagney <cagney@redhat.com>
1359
1360 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1361 * gdbarch.h, gdbarch.c: Regenerate.
1362 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1363 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1364 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1365 * sparcnbsd-tdep.c: Update.
a8f4cde1 1366
62700349
AC
13672003-09-17 Andrew Cagney <cagney@redhat.com>
1368
1369 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1370 * gdbarch.h, gdbarch.c: Regenerate.
1371 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1372 * d10v-tdep.c, frame.c: Update.
1373 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1374 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1375 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1376 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1377 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1378 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1379 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1380 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1381 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1382 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1383 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1384 * config/pa/nm-hppah.h: Update.
1385
b9ff3018
AC
13862003-09-16 Andrew Cagney <cagney@redhat.com>
1387
1388 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1389 "use_struct_convention" to "ppc_linux_use_struct_convention".
1390 (ppc_linux_use_struct_convention): New function.
1391 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1392 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1393 "rs6000_use_struct_convention".
1394 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1395 declaration.
1396 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1397 Delete function.
1398
aa1ee363
AC
13992003-09-16 Andrew Cagney <cagney@redhat.com>
1400
1401 * buildsym.c: Remove more occurances of "register".
1402 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1403 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1404 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1405 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1406 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1407 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1408 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1409 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1410
f2ea0907
CV
14112003-09-16 Corinna Vinschen <vinschen@redhat.com>
1412
1413 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1414 numbers to enumeration values.
1415 * sh-tdep.c: Accomodate above change.
1416 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1417 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1418 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1419 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1420 (IS_FPUSH): Rename from IS_FMOV.
1421 (sh_extract_struct_value_address): Remove useless comment.
1422 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1423 instead of own local values.
1424 (sh_dump_tdep): Remove.
1425 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1426 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1427
1c704f11
AC
14282003-09-15 Andrew Cagney <cagney@redhat.com>
1429
1430 * doublest.c (convert_floatformat_to_doublest): No longer need to
1431 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1432
ac79b88b
DJ
14332003-09-15 Daniel Jacobowitz <drow@mvista.com>
1434
1435 * values.c (unpack_double): Call floatformat_is_valid.
1436
1c671366
MK
14372003-09-15 Mark Kettenis <kettenis@gnu.org>
1438
de5227fb
MK
1439 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1440 ps_strings into a long.
1441
1c671366
MK
1442 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1443 _initialize_am64fbsd_nat.
1444
a604369a
KB
14452003-09-15 Kevin Buettner <kevinb@redhat.com>
1446
1447 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1448 associated with DW_AT_ranges attribute is out of bounds.
1449
b3cacbee
DL
14502003-09-15 David Lecomber <dsl@sources.redhat.com>
1451
1452 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1453
d0f37bb2
MC
14542003-09-14 Michael Chastain <mec@shout.net>
1455
1456 * config/m68k/nm-apollo68v.h: Delete.
1457 * config/m68k/xm-apollo68v.h: Delete.
1458
69517000
AC
14592003-09-14 Andrew Cagney <cagney@redhat.com>
1460
1461 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1462 * dcache.c: Update copyrights and descriptions.
1463 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1464
ef8b349d
AC
14652003-09-14 Andrew Cagney <cagney@redhat.com>
1466
1467 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1468 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1469
52f0bd74
AC
14702003-09-14 Andrew Cagney <cagney@redhat.com>
1471
1472 * alpha-nat.c: Remove some occurances of "register".
1473 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1474 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1475 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1476 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1477 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1478 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1479 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1480 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1481 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1482 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1483 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1484 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1485 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1486 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1487 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1488 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1489 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1490 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1491 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1492 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1493 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1494 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1495
4a4b3fed
AC
14962003-09-13 Andrew Cagney <cagney@redhat.com>
1497
1498 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1499 * ppc-tdep.h (struct regcache): Declare opaque.
1500 * objfiles.h (struct objfile_data): Declare opaque.
1501 * cp-support.h (struct objfile): Declare opaque.
1502 * linux-nat.h (target_waitstatus): Declare opaque.
1503
2110b94f
MK
15042003-09-14 Mark Kettenis <kettenis@gnu.org>
1505
1c671366
MK
1506 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1507 (stabs_argument_has_addr): New architecture method.
1508 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1509 * arch-utils.c: Include "buildsym.h".
1510 (default_stabs_argument_has_addr): New function.
1511 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1512 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1513
2110b94f
MK
1514 * cris-tdep.c (cris_gdbarch_init): Set
1515 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1516 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1517 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1518 * mips-tdep.c (mips_gdbarch_init): Likewise.
1519 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1520 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1521
48436ce6
AC
15222003-09-13 Andrew Cagney <cagney@redhat.com>
1523
1524 * values.c (using_struct_return): Delete "function" and "funcaddr"
1525 parameters.
1526 * value.h (using_struct_return): Update declaration.
1527 * infcmd.c (finish_command_continuation): Update.
1528 (finish_command): Update.
1529 * infcall.c (call_function_by_hand): Update.
1530 * eval.c (evaluate_subexp_standard): Update.
1531
403d9909
CF
15322003-09-13 Christopher Faylor <cgf@redhat.com>
1533
1534 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1535 SSE registers since gdb will not operate correctly without this.
1536 Restore include file ordering munged in previous change.
1537 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1538
ebf7d56b
MK
15392003-09-13 Mark Kettenis <kettenis@gnu.org>
1540
8e823e25
MK
1541 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1542 REG_STRUCT_HAS_ADDR.
1543 * gdbarch.c, gdbarch.h: Updated.
1544 * infcall.c (call_function_by_hand): Update.
1545 * stabsread.c (define_symbol): Updated.
a8f4cde1 1546
ebf7d56b
MK
1547 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1548
d3f13f72
CF
15492003-09-12 Christopher Faylor <cgf@redhat.com>
1550
1551 * win32-nat.c: Reorganize so that defines used by target headers are
1552 actually defined by the system headers.
1553 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1554 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1555
14f75137
JB
15562003-09-12 Jim Blandy <jimb@redhat.com>
1557
d646061f
JB
1558 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1559 the file has no .data, .bss, or .rodata sections. Instead wait
1560 until we see a variable alleged to live in one of those sections.
1561
2a13f9bc
JB
1562 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1563 .bss section, presume that any variables we find live in the
1564 .rodata section.
1565
4f49b26b
JB
1566 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1567 offsets for global and static variables.
1568
14f75137
JB
1569 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1570 symbol types are, by definition, in the .data section, so it is
1571 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1572 If there is no .data section, there should be no N_DATA or N_DATA
1573 | N_EXT symbols.
1574
212c460c
MK
15752003-09-12 Mark Kettenis <kettenis@gnu.org>
1576
1577 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1578 (amd64fbsd_sigcontext_addr): Rewrite.
1579 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1580 with correct values.
1581 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1582 (amd64fbsd_init_abi): Fix typo.
1583
68856ea3
AC
15842003-09-12 Andrew Cagney <cagney@redhat.com>
1585
1586 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1587 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1588
627b3ba2
AC
15892003-09-12 Andrew Cagney <cagney@redhat.com>
1590
1591 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1592 "entry_file_highpc". Update comments.
1593 * defs.h (deprecated_inside_entry_file): Rename
1594 "inside_entry_file".
1595 * blockframe.c (deprecated_inside_entry_file): Rename
1596 "inside_entry_file".
1597 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1598 * vax-tdep.c (vax_frame_chain): Update.
1599 * sh64-tdep.c (sh64_frame_chain): Update.
1600 * sh-tdep.c (sh_frame_chain): Update.
1601 * rs6000-tdep.c (rs6000_frame_chain): Update.
1602 * ns32k-tdep.c (ns32k_frame_chain): Update.
1603 * mips-tdep.c (mips_frame_chain): Update.
1604 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1605 * m32r-tdep.c (m32r_frame_this_id): Update.
1606 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1607 * frv-tdep.c (frv_frame_this_id): Update.
1608 * d10v-tdep.c (d10v_frame_this_id): Update.
1609 * cris-tdep.c (cris_frame_chain): Update.
1610 * blockframe.c (legacy_frame_chain_valid): Update.
1611 * avr-tdep.c (avr_frame_this_id): Update.
1612 * arm-tdep.c (arm_prologue_this_id): Update.
1613 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1614 * objfiles.c (objfile_relocate): Update.
1615 * mipsread.c (mipscoff_symfile_read): Update.
1616 (mipscoff_symfile_read): Update.
1617 * mdebugread.c (parse_partial_symbols): Update.
1618 * dwarfread.c (read_file_scope): Update.
1619 * dwarf2read.c (read_file_scope): Update.
1620 * dbxread.c (read_dbx_symtab): Update.
1621 (read_dbx_symtab): Update.
1622 * coffread.c (complete_symtab): Update.
1623
b0abbc58
JJ
16242003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1625
1626 * top.c (quit_target): New static helper function.
1627 (quit_force): Moved code to quit_target(). Call quit_target()
1628 via catch_errors() to catch errors during quit.
1629
a1632d59
DC
16302003-09-11 David Carlton <carlton@kealia.com>
1631
1632 * buildsym.c (finish_block): Use allocate_block to allocate the
1633 block.
1634 * mdebugread.c (new_block): Add FIXME.
1635
5c4e30ca
DC
16362003-09-11 David Carlton <carlton@kealia.com>
1637
1638 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1639 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1640 (recursive_dump_type): Ditto.
1641 * printcmd.c (print_formatted): Ditto.
1642 * typeprint.c (print_type_scalar): Ditto.
1643 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1644 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1645 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1646 maint_cplus_cmd_list.
1647 * cp-support.c: Make maint_cplus_cmd_list extern.
1648 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1649 command.h.
1650 (lookup_symbol_file): Look in possible namespace blocks when
1651 appropriate.
1652 (initialize_namespace_symtab): New.
1653 (get_possible_namespace_block, free_namespace_block)
1654 (check_possible_namespace_symbols)
1655 (check_possible_namespace_symbols_loop)
1656 (check_one_possible_namespace_symbol)
1657 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1658 (_initialize_cp_namespace): Ditto.
1659 * block.h: Declare allocate_block.
1660 * block.c (allocate_block): New.
1661 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1662 allocate_block.
1663 * symfile.h: Update declaration of add_psymbol_to_list.
1664 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1665 question.
1666 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1667 scan_partial_symbols_call.
1668 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1669 helper functions.
1670 (add_partial_symbol): If necessary, scan mangled names for names
1671 of namespaces.
1672 (add_partial_namespace): Add NAMESPACE argument; generate partial
1673 symbols associated to namespaces.
1674 (add_partial_enumeration): Add NAMESPACE argument.
1675 (new_symbol): Allow namespace syms.
1676 (read_namespace): Generate namespace syms.
1677 * objfiles.h: Add opaque declaration of struct symtab.
1678 (struct objfile): Add cp_namespace_symtab member.
1679 * objfiles.c (allocate_objfile): Set
1680 objfile->cp_namespace_symtab.
1681 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1682 dictionary_h, command_h.
1683
33a7c2fc
AC
16842003-09-11 Andrew Cagney <cagney@redhat.com>
1685
1686 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1687 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1688 near the function's end.
1689 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1690 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1691 regcache_raw_write_signed to set SP_REGNUM.
1692
63cd24fe
EZ
16932003-09-11 Elena Zannoni <ezannoni@redhat.com>
1694
1695 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1696 orig_addrs is set up properly.
1697
f27dd7fd
AC
16982003-09-11 Andrew Cagney <cagney@redhat.com>
1699
1700 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1701 * gdbarch.h, gdbarch.c: Re-generate.
1702 * infcall.c (call_function_by_hand): Update.
1703 * hppa-tdep.c (hppa_push_arguments): Update.
1704 * ada-lang.c (place_on_stack): Update.
1705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1706 * sparc-tdep.c (sparc_gdbarch_init): Update.
1707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1708 * hppa-tdep.c (hppa_gdbarch_init): Update.
1709 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1710 stack_align.
1711
f630a401
DJ
17122003-09-11 Daniel Jacobowitz <drow@mvista.com>
1713
1714 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1715 register do need a frame.
1716
0ddabb4c
AC
17172003-09-11 Andrew Cagney <cagney@redhat.com>
1718
1719 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1720 buildable since GDB 5.0.
1721 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1722 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1723 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1724 * irix4-nat.c: Delete file.
1725 * config/mips/irix4.mh: Delete file.
1726 * config/mips/irix3.mh: Delete file.
1727 * config/mips/irix3.mt: Delete file.
1728 * config/mips/tm-irix3.h: Delete file.
1729 * config/mips/nm-irix3.h: Delete file.
1730 * config/mips/xm-irix3.h: Delete file.
1731 * config/mips/nm-irix4.h: Delete file.
1732 * config/mips/xm-irix4.h: Delete file.
1733 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1734
fde2cceb
JB
17352003-09-10 J. Brobecker <brobecker@gnat.com>
1736
1737 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1738 * Makefile.in (hppa-tdep.o): Update dependencies.
1739
66f667f5
JW
17402003-09-10 James E Wilson <wilson@specifixinc.com>
1741
ef5fd69f
JW
1742 * MAINTAINERS: Change my e-mail address. Move to paper trail
1743 section.
66f667f5 1744
53e8aaea
KB
17452003-09-10 Kevin Buettner <kevinb@redhat.com>
1746
1747 * MAINTAINERS (frv): New ISA entry.
1748
dcc6aaff
KB
17492003-09-10 Kevin Buettner <kevinb@redhat.com>
1750
1751 * frv-tdep.c (dis-asm.h): Include.
1752 * Makefile.in (frv-tdep.o): Update dependencies.
1753
932644f0
JJ
17542003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1755
1756 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1757 Fix typo for high range of floating registers.
1758
91c24f0a
DC
17592003-09-09 David Carlton <carlton@kealia.com>
1760
1761 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1762 highpc initialization here out of scan_partial_symbols.
1763 (scan_partial_symbols): Restructure into a recursive version,
1764 calling add_partial_namespace and add_partial_enumeration when
1765 appropriate.
1766 (add_partial_namespace): New.
1767 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1768
c9263853
AC
17692003-09-09 Andrew Cagney <cagney@redhat.com>
1770
e56a0ecc
AC
1771 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1772 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1773 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1774 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1775
794a477a
AC
1776 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1777 (rs6000_push_dummy_call): Set the "TOC" register.
1778
c9263853
AC
1779 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1780 methods "max_register_raw_size", "max_register_virtual_size" or
1781 "register_virtual_size".
1782
afa7d0b2
ILT
17832003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1784
1785 * MAINTAINERS: Update my e-mail address.
1786
7a41266b
AC
17872003-09-09 Andrew Cagney <cagney@redhat.com>
1788
1789 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1790 (rs6000_push_dummy_call): Store the struct return address.
1791 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1792
77b2b6d4
AC
17932003-09-09 Andrew Cagney <cagney@redhat.com>
1794
1795 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1796 "ppc_sysv_abi_push_arguments".
1797 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1798 "ppc_sysv_abi_push_arguments".
1799 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1800 instead of "push_arguments".
1801 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1802
e8a7b686
AC
18032003-09-09 Andrew Cagney <cagney@redhat.com>
1804
1805 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1806 instead of CALL_DUMMY_ADDRESS.
1807
f86f5ca3
PH
18082003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1809
1810 * p-lang.c: Eliminate "register".
1811 * c-lang.c: Ditto.
1812 * expprint.c: Ditto.
1813 * f-lang.c: Ditto.
1814 * jv-lang.c: Ditto.
1815 * language.c: Ditto.
1816 * m2-lang.c: Ditto.
1817 * parse.c: Ditto.
1818 * scm-lang.c: Ditto.
1819 * objc-lang.c: Ditto.
1820
83ee270e
NC
18212003-09-09 Nick Clifton <nickc@redhat.com>
1822
1823 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1824
a89aa300
AC
18252003-09-04 Andrew Cagney <cagney@redhat.com>
1826
1827 * avr-tdep.c: Include "dis-asm.h".
1828 * cris-tdep.c: Include "dis-asm.h".
1829 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1830 instead of corresponding typedef.
1831 * h8300-tdep.c: Include "dis-asm.h".
1832 * ia64-tdep.c: Include "dis-asm.h".
1833 * i386-tdep.c: Include "dis-asm.h".
1834 (i386_print_insn): Use "struct disassemble_info" instead of
1835 corresponding typedef.
1836 * m68k-tdep.c: Include "dis-asm.h".
1837 * mcore-tdep.c: Include "dis-asm.h".
1838 * mips-tdep.c: Include "dis-asm.h".
1839 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1840 instead of corresponding typedef.
1841 * ns32k-tdep.c: Include "dis-asm.h".
1842 * s390-tdep.c: Include "dis-asm.h".
1843 * sparc-tdep.c: Include "dis-asm.h".
1844 * vax-tdep.c: Include "dis-asm.h".
1845 * v850-tdep.c: Include "dis-asm.h".
1846 * mn10300-tdep.c: Include "dis-asm.h".
1847 * rs6000-tdep.c: Include "dis-asm.h".
1848 * xstormy16-tdep.c: Include "dis-asm.h".
1849 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1850 print_insn_xstormy16.
1851 * Makefile.in (v850-tdep.o): Update dependencies.
1852 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1853 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1854 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1855 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1856 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1857 (gdbarch_h): Remove $(dis_asm_h).
1858 * disasm.c: Include "dis-asm.h".
1859 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1860 corresponding typedef.
1861 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1862 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1863 * gdbarch.sh: Do not include "dis-asm.h".
1864 (struct disassemble_info): Declare opaque.
1865 (TARGET_PRINT_INSN): Update declaration.
1866 * gdbarch.h, gdbarch.c: Re-generate.
1867
88a82a65
AC
18682003-09-08 Andrew Cagney <cagney@redhat.com>
1869
1870 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1871 CALL_DUMMY_ADDRESS, change to a predicate.
1872 * gdbarch.h, gdbarch.c: Re-generate.
1873 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1874 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1875 * infcall.c (call_function_by_hand): Ditto.
1876 * sparc-tdep.c (sparc_push_return_address): Ditto.
1877 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1878 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1879 CALL_DUMMY_ADDRESS with entry_point_address.
1880 * v850-tdep.c (v850_push_return_address): Ditto.
1881 * s390-tdep.c (s390_push_return_address): Ditto.
1882 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1883 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1884 * mcore-tdep.c (mcore_push_return_address): Ditto.
1885 * cris-tdep.c (cris_push_return_address): Ditto.
1886 * arm-tdep.c (arm_push_return_address): Ditto.
1887
3e2c4033
AC
18882003-09-08 Andrew Cagney <cagney@redhat.com>
1889
1890 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1891 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1892 and REG_UNMODIFIED to REG_SAME_VALUE.
1893 (execute_cfa_program): Update.
1894 (dwarf2_frame_cache): Update. Initialize table to
1895 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1896 location.
1897 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1898
39efb398
AC
18992003-09-08 Andrew Cagney <cagney@redhat.com>
1900
1901 * gnu-nat.c: Remove "inline" function attribute.
1902 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1903
f5cb5aca
KB
19042003-09-08 Kevin Buettner <kevinb@redhat.com>
1905
1906 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1907 target.
1908
1cb761c7
KB
19092003-09-08 Kevin Buettner <kevinb@redhat.com>
1910
1911 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1912 (frame_extra_info): Rename this struct to frv_unwind_cache.
1913 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1914 Add fields ``prev_sp'' and ``base''.
1915 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1916 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1917 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1918 Delete.
1919 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1920 Revise all callers. Fill in the unwind cache argument and make
1921 other adjustments to account for new frame mechanisms.
1922 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1923 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1924 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1925 (frv_frame_unwind, frv_frame_base): New structs.
1926 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1927 additional arguments expected by this method and adjust function
1928 body accordingly.
1929 (frv_gdbarch_init): Remove calls to the following functions:
1930 set_gdbarch_deprecated_init_frame_pc(),
1931 set_gdbarch_deprecated_saved_pc_after_call(),
1932 set_gdbarch_deprecated_frame_chain(),
1933 set_gdbarch_deprecated_frame_saved_pc(),
1934 set_gdbarch_deprecated_frame_init_saved_regs(),
1935 set_gdbarch_deprecated_push_arguments(),
1936 set_gdbarch_deprecated_push_return_address(),
1937 set_gdbarch_deprecated_pop_frame(),
1938 set_gdbarch_deprecated_call_dummy_words(),
1939 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1940 set_gdbarch_deprecated_init_extra_frame_info(),
1941 set_gdbarch_deprecated_dummy_write_sp(), and
1942 set_gdbarch_deprecated_pc_in_call_dummy().
1943 Add calls to the following functions:
1944 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1945 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1946 frame_base_set_default().
1947 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 1948
68f6cf99
MK
19492003-09-09 Mark Kettenis <kettenis@gnu.org>
1950
1951 * dwarf2-frame.c (read_encoded_value): Add support for
1952 DW_EH_PE_aligned encoding.
1953
73b65bb0
DJ
19542003-09-08 Daniel Jacobowitz <drow@mvista.com>
1955
1956 * infrun.c (normal_stop): Don't print a message if the inferior
1957 has exited.
1958
7c8a5605
JB
19592003-09-08 Jim Blandy <jimb@redhat.com>
1960
1961 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1962 * dbxread.c: #include "gdb_assert.h".
1963 (read_dbx_symtab): If the objfile has no .data section, use the
1964 section index for the .bss section instead.
1965
7dd88986
DJ
19662003-09-08 Daniel Jacobowitz <drow@mvista.com>
1967
1968 * frame.c (deprecated_safe_get_selected_frame): New function.
1969 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1970 * findvar.c (read_var_value): Call it.
1971
55ff77ac
CV
19722003-09-08 Corinna Vinschen <vinschen@redhat.com>
1973
1974 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1975 (sh64-tdep.o): Add dependencies.
1976 * configure.tgt: Add FIXME to sh-*-linux*.
1977 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1978 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 1979 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
1980 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1981 * sh64-tdep.c: New file, containing all sh64 related code from
1982 sh-tdep.c.
1983 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1984 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 1985 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
1986 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1987 * config/sh/wince.mt (TDEPFILES): Ditto.
1988
bfb39158
DJ
19892003-09-07 Daniel Jacobowitz <drow@mvista.com>
1990
1991 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1992 (stop_wait_callback): Handle !lp->signalled also.
1993 (lin_lwp_has_pending, flush_callback): New functions.
1994 (lin_lwp_wait): Call flush_callback.
1995 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1996 (linux_proc_pending_signals): New function.
1997 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1998
9407de8e
DJ
19992003-09-07 Daniel Jacobowitz <drow@mvista.com>
2000
2001 From Nick Kelsey <nickk@ubicom.com>:
2002 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2003 when the stop PC is at the beginning of a function also.
2004
2ef47cd0
DJ
20052003-09-06 Daniel Jacobowitz <drow@mvista.com>
2006
2007 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2008 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2009
6f4492c8
MK
20102003-09-06 Mark Kettenis <kettenis@gnu.org>
2011
2012 * sol-thread.c: Include "gdb_string.h".
2013
d3420b2f
MK
20142003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2015
2016 * gcore.c: Reorder include files in alphabetical order. Include
2017 "gdb_assert.h". Various coding style fixes.
2018 (derive_stack_segment, derive_heap_segment): Replace check for
2019 non-null BOTTOM and TOP with gdb_assert.
2020 (derive_heap_segment): Replace check for successful creation of
2021 ZERO with gdb_assert.
2022 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2023
5220ea4c
AC
20242003-09-04 Andrew Cagney <cagney@redhat.com>
2025
2026 * thread-db.c (verbose_dlsym): New function.
2027 (thread_db_load): Use verbose_dlsym
2028 (thread_db_new_objfile): Print that libthread_db was loaded, and
2029 that thread debugging was enabled.
2030
6e8c2c06
AC
20312003-09-04 Andrew Cagney <cagney@redhat.com>
2032
2033 * configure.tgt: Add "mips64*-*-*" target. Delete
2034 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2035 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2036 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2037 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2038 mips*-sony-*, and mips64*-*-elf* targets.
2039 * config/mips/embedl.mt: Delete file.
2040 * config/mips/embedl64.mt: Delete file.
2041 * config/mips/mips.mt: Delete file.
2042 * config/mips/mips64.mt: Delete file.
2043 * config/mips/tm-embed.h: Delete file.
2044 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2045 * config/mips/embed64.mt: Delete out-of-date comment.
2046
3a3bc038
AC
20472003-09-04 Andrew Cagney <cagney@redhat.com>
2048
2049 * hppa-tdep.c (hppa_gdbarch_init): Set
2050 "have_nonsteppable_watchpoint".
2051 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2052 * mips-tdep.c (mips_dump_tdep): Do not print
2053 HAVE_NONSTEPPABLE_WATCHPOINT.
2054 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2055 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2056 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2057 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2058
a957e642
CV
20592003-09-04 Corinna Vinschen <vinschen@redhat.com>
2060
2061 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2062 unused code. Add comment.
2063
a6fbcf2f
CV
20642003-09-04 Corinna Vinschen <vinschen@redhat.com>
2065
2066 * breakpoint.c (watchpoint_check): Check for pc being in an
2067 epilogue if watchpoint frame couldn't be found.
2068
c14a44d5
AC
20692003-09-04 Andrew Cagney <cagney@redhat.com>
2070
2071 * Makefile.in: Re-generate all dependencies.
2072
f6c40618
AC
20732003-09-03 Andrew Cagney <cagney@redhat.com>
2074
2075 * arch-utils.h (legacy_print_insn): Delete declaration.
2076 * arch-utils.c (legacy_print_insn): Delete function.
2077 * disasm.c (deprecated_tm_print_insn_info): Delete.
2078 (_initialize_disasm): Delete function, contained code initializing
2079 deprecated_tm_print_insn_info.
2080 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2081 (deprecated_tm_print_insn_info): Delete.
2082 (TARGET_PRINT_INSN): Do not provide a default.
2083 * gdbarch.h, gdbarch.c: Re-generate.
2084
242e8be5
AC
20852003-09-03 Andrew Cagney <cagney@redhat.com>
2086
2087 * disasm.c (fprintf_disasm): New function.
2088 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2089 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2090 reverts 2003-08-14 change.
2091 (_initialize_disasm): Call "init_disassemble_info", instead of
2092 INIT_DISASSEMBLE_INFO_NO_ARCH.
2093
3ffc3dda
MS
20942003-09-03 Michael Snyder <msnyder@redhat.com>
2095
2096 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2097
52d16ba8
AC
20982003-09-03 Andrew Cagney <cagney@redhat.com>
2099
2100 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2101 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2102 * symfile.c (syms_from_objfile): Update.
2103 (reread_symbols): `Update
2104 * exec.c (exec_file_attach): Update.
2105 (exec_file_attach): Update.
2106 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2107 2003-08-29 change.
2108 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2109
eb5492fa
DJ
21102003-09-03 Daniel Jacobowitz <drow@mvista.com>
2111
2112 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2113 trad-frame.h.
2114 (arm_get_cache): Delete macro.
2115 (struct arm_prologue_cache): Update comments. Make saved_regs into
2116 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2117 to prev_sp.
2118 (thumb_scan_prologue): Update for cache changes. Don't call
2119 DEPRECATED_PC_IN_CALL_DUMMY.
2120 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2121 argument and use it in desperation search for our prologue. Do not
2122 search past the specified PC.
2123 (arm_make_prologue_cache): Simplify.
2124
2125 (arm_prologue_this_id, arm_prologue_prev_register)
2126 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2127 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2128 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2129 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2130 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2131
2132 (arm_frame_chain_valid, arm_find_callers_reg)
2133 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2134 (arm_pop_frame): Delete obsolete methods.
2135 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2136
2137 (arm_gdbarch_init): Update for new frame methods. Register prologue
2138 and sigtramp unwinders. Set the default frame base method.
2139
2140 * Makefile.in (arm-tdep.o): Update dependencies.
2141 * varobj.c (find_frame_addr_in_frame_chain): Call
2142 get_frame_base_address.
2143 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2144
24de872b
DJ
21452003-09-03 Daniel Jacobowitz <drow@mvista.com>
2146
2147 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2148 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2149 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2150 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2151 Take NEXT_FRAME and CACHE arguments. Call
2152 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2153 Set unwound_pc in CACHE instead of modifying the frame argument.
2154 Don't bother checking the frame type when looking for sigtramp
2155 frames.
2156 (arm_make_prologue_cache, arm_frame_chain)
2157 (arm_init_extra_frame_info): New functions.
2158
9b8d791a
DJ
21592003-09-03 Daniel Jacobowitz <drow@mvista.com>
2160
2161 * arm-tdep.c (arm_get_cache): Define.
2162 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2163 unwound_sp, unwound_pc, and saved_regs.
2164 (thumb_scan_prologue): Take a cache instead of the frame.
2165 (arm_scan_prologue): Likewise.
2166 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2167 instead of a temporary frame.
2168 (arm_init_extra_frame_info): Allocate and use a cache.
2169 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2170
7ee3275f
AC
21712003-09-03 Andrew Cagney <cagney@redhat.com>
2172
2173 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2174 * config/mips/wince.mt (TM_CLIBS): Ditto.
2175 * config/sh/wince.mt (TM_CLIBS): Ditto.
2176 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2177 * config/sparc/sp64.mt (CC): Delete.
2178
57b29be7
AC
21792003-09-03 Andrew Cagney <cagney@redhat.com>
2180
2181 * defs.h: Do not include "arch-utils.h".
2182 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2183 GDB_MULTI_ARCH_PURE.
2184 * configure.in (GDB_MULTI_ARCH): Do not define.
2185 * configure, config.in: Regenerate.
2186 * configure.tgt: Do not set variable "gdb_multi_arch".
2187 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2188 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2189 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2190 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2191 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2192 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2193 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2194 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2195 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2196 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2197 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2198 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2199 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2200 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2201 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2202 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2203 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2204 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2205
12e035e2
MC
22062003-08-30 Michael Chastain <mec@shout.net>
2207
2208 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2209 * config/m68k/nm-hp300hpux.h: Delete.
2210 * config/m68k/tm-hp300hpux.h: Delete.
2211 * config/m68k/xm-hp300hpux.h: Delete.
2212 * config/m68k/xm-hp300bsd.h: Delete.
2213 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2214 tm-hp300hpux.h, xm-hp300hpux.h.
2215 * somsolib.c: Remove comment about hp300 shared libraries.
2216
bda34dc2
MK
22172003-08-31 Mark Kettenis <kettenis@gnu.org>
2218
5bca7895
MK
2219 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2220 Only define PTRACE_GET_THREAD_AREA is not already defined.
2221 Various style fixes in code and comments and some additional
2222 spelling fixes in comments. Move after functions dealing with
2223 debug registers.
2224 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2225 Fix coding-style.
2226
bda34dc2
MK
2227 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2228 frame_unwind_register_unsigned instead of
2229 frame_unwind_unsigned_register.
2230
c890192f
MK
22312003-08-30 Mark Kettenis <kettenis@gnu.org>
2232
2233 * configure.in: Search for gethostbyname in libnsl.
2234 * configure: Regenerated.
2235
60fac5b8
MK
22362003-08-29 Mark Kettenis <kettenis@gnu.org>
2237
e294916c
MK
2238 * configure.in: Remove redundant AC_MSG_RESULT in check for
2239 uintptr_t in stdint.h.
2240 * configure: Regenerated.
2241
c40d267a
MK
2242 * amd64-nat.h (struct regcache): Add opaque declaration.
2243
60fac5b8
MK
2244 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2245 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2246 Change "register array" to "register cache" in comments.
2247 (x86_64_linux_gregset64_reg_offset): New variable.
2248 (GETREGS_SUPPLIES): Remove macro.
2249 (supply_gregset): Call amd64_supply_native_gregset instead of
2250 x86_64_linux_supply_gregset.
2251 (fill_gregset): Rename `regno' to `regnum'. Call
2252 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2253 (store_regs): Rename `regno' to `regnum'.
2254 (store_fpregs): Rename `regno' to `regnum'.
2255 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2256 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2257 Reorganize function a bit.
2258 (store_inferior_registers): Rename `regno' to `regnum'. Use
2259 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2260 Reorganize function a bit.
2261 (_initialize_x86_64_linux_nat): New function.
2262 * config/i386/x86-64linux.mh.
2263
546143b6
AC
22642003-08-29 Andrew Cagney <cagney@redhat.com>
2265
2266 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2267 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2268 (target_remove_watchpoint): Delete macro.
2269 (target_insert_watchpoint): Delete macro.
2270 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2271 (remote_mips_stopped_by_watchpoint): Delete declaration.
2272 (remote_mips_remove_watchpoint): Delete declaration.
2273 (remote_mips_set_watchpoint): Delete declaration.
2274 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2275 * remote-mips.c (_initialize_remote_mips): Set
2276 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2277 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2278 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2279 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2280 (mips_stopped_by_watchpoint): Rename
2281 remote_mips_stopped_by_watchpoint.
2282 (mips_can_hardware_watchpoint): Rename
2283 remote_mips_can_use_hardware_watchpoint, update function
2284 signature.
2285
7bace51b
MK
22862003-08-29 Mark Kettenis <kettenis@gnu.org>
2287
b0f5c6f2
MK
2288 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2289 USER_DS. We haven't given them a register number yet.
2290
2a6d284d
MK
2291 * amd64-nat.h: New file.
2292 * amd64-nat.c: New file.
2293 * amd64fbsd-nat.c: Include "amd64-nat.h".
2294 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2295 (amd64fbsd32_r_reg_offset): New variable.
2296 (supply_gregset): Simply call amd64_supply_native_gregset.
2297 (fill_gregset): Rename `regno' to `regnum'. Simply call
2298 amd64_collect_native_gregset.
2299 (fill_fpregset): Rename `regno' to `regnum'.
2300 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2301 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2302 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2303 `fpregset_t'. Call amd64_supply_native_gregset instead of
2304 supply_gregset. Call x86_64_supply_fxsave instead of
2305 supply_fpregset.
2306 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2307 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2308 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2309 `fpregset_t'. Call amd64_collect_native_gregset instead of
2310 fill_gregset. Call x86_64_collect_fxsave instead of
2311 fill_fpregset.
2312 (_initialize_am64fbsd_nat): Initialize
2313 amd64_native_gregset32_reg_offset and
2314 amd64_native_gregset64_reg_offset.
2315 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2316
a16d75cc
MK
2317 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2318 null pointer. Fix typo in comment.
2319
7bace51b
MK
2320 * regcache.c (supply_register): Reimplement to call
2321 regcache_raw_supply.
2322 (regcache_collect): Reimplement by calling regcache_raw_collect.
2323
9a661b68
MK
23242003-08-28 Mark Kettenis <kettenis@gnu.org>
2325
2326 * regcache.c (register_buffer): Consitify first argument.
2327 (regcache_raw_supply, regcache_raw_collect): New
2328 functions.
2329
e94cc8fa
DJ
23302003-08-28 Daniel Jacobowitz <drow@mvista.com>
2331
2332 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2333 by Nathan J. Williams.
2334
c64bd0ce
DJ
23352003-08-28 Daniel Jacobowitz <drow@mvista.com>
2336
2337 * lin-lwp.c (wait_lwp): New function, copied from
2338 stop_wait_callback. Clean up.
2339 (stop_wait_callback): Use wait_lwp.
2340
e5ab0dce
AC
23412003-08-28 Andrew Cagney <cagney@redhat.com>
2342
2343 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2344 flavour and disassembler options.
2345 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2346 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2347 deprecated_tm_print_insn_info.
a8f4cde1 2348
a788de9b
AC
23492003-08-27 Andrew Cagney <cagney@redhat.com>
2350
2351 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2352 Use target_read_memory.
2353 (s390_get_frame_info): Update. Do not reference
2354 deprecated_tm_print_insn_info.
2355 (s390_check_function_end, s390_is_sigreturn): Ditto.
2356
36482093
AC
23572003-08-27 Andrew Cagney <cagney@redhat.com>
2358
2359 * Makefile.in (cris-tdep.o): Update dependencies.
2360 * cris-tdep.c: Include "gdb_assert.h".
2361 (cris_gdbarch_init): Set print_insn.
2362 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2363 (cris_delayed_get_disassembler): Simplify, directly call the
2364 disassembler returned by cris_get_disassembler.
2365 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2366 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2367 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2368 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2369 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2370 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2371 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2372 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2373 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2374 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2375 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2376 (gdb_print_insn_sparc): Delete function.
2377 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2378 deprecated_tm_print_insn_info.
2379 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2380 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2381 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2383 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2384 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2385 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2386 (s390_gdbarch_init): Set print_insn.
2387
0285512f
AC
23882003-08-27 Andrew Cagney <cagney@redhat.com>
2389
2390 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2391 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2392 * infcall.c (call_function_by_hand): Convert the entry point
2393 address into a code address.
2394
cdcd5552
AC
23952003-08-27 Andrew Cagney <cagney@redhat.com>
2396
2397 * dsrec.c: Include "gdb_string.h".
2398 * Makefile.in (dsrec.o): Update dependencies.
2399
e85cddad
MC
24002003-08-27 Michael Chastain <mec@shout.net>
2401
2402 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2403
8bbfbb23
AC
24042003-08-27 Andrew Cagney <cagney@redhat.com>
2405
2406 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2407 (alpha_osf1_init_abi): Do not set call_dummy_address.
2408
ba058b66
DC
24092003-08-27 David Carlton <carlton@kealia.com>
2410
2411 From Randolph Chung <tausq@debian.org>:
2412 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2413 compiles with -Wformat-nonliteral -Werror.
2414
87f84c9d
JB
24152003-08-26 Jim Blandy <jimb@redhat.com>
2416
2417 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2418 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2419 bfd_lookup_symbol, since we only want symbols in code sections.
2420 (look_for_base): Pass zero as the SECT_FLAGS argument to
2421 bfd_lookup_symbol, since we're not concerned about which section
2422 the symbol is in.
2423
102d615a
JJ
24242003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2425
2426 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2427 we are frameless or the return address register is already known.
102d615a 2428
cc7ad3ea
AC
24292003-08-26 Andrew Cagney <cagney@redhat.com>
2430
2431 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2432 in size. Add comments.
2433
af8b88dd
JJ
24342003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2435
2436 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2437 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2438
e0a4f5a1
JM
24392003-08-26 Jason Merrill <jason@redhat.com>
2440
2441 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2442 case out of #ifdef MIPS block.
2443
4ae9ee8e
DJ
24442003-08-25 Daniel Jacobowitz <drow@mvista.com>
2445
2446 PR java/1322
2447 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2448 available before calling SECT_OFF_TEXT.
3c164570 2449 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2450
004d836a
JJ
24512003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2452
a8f4cde1 2453 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2454 bof, and nat0-nat127 as pseudo-registers.
2455 (ia64_frame_cache): New struct used to cache frame info.
2456 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2457 register grouping so registers without names are still saved and
004d836a 2458 restored.
a8f4cde1 2459 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2460 pseudo values.
2461 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2462 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2463 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2464 ia64_frame_cache.
2465 (examine_prologue): Change prototype to add next_frame pointer.
2466 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2467 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2468 alloc insn and if equal, mark as not frameless. At end of routine,
2469 if not frameless, calculate registers for the previous frame and store
2470 in the cache, if a cache is provided.
2471 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2472 and pass 0 for next_frame.
2473 (ia64_store_return_value): Change to use convert_typed_floating()
2474 instead of calling ia64_convert_to_raw().
2475 (ia64_extract_return_value): Change to use convert_typed_floating()
2476 instead of calling ia64_convert_to_virtual().
2477 (ia64_frame_cache): New routine to support new frame model.
2478 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2479 (ia64_frame_sniffer): Ditto.
2480 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2481 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2482 (ia64_sigtramp_frame_prev_register): Ditto.
2483 (ia64_sigtramp_frame_sniffer): Ditto.
2484 (ia64_frame_base_address): Ditto.
2485 (ia64_extract_struct_value_address): Change to issue error message.
2486 (ia64_frame_align): New routine to align sp.
2487 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2488 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2489 ia64_push_dummy_call().
2490 (ia64_push_return_address): Ditto.
2491 (ia64_unwind_dummy_id): New function.
2492 (ia64_unwind_pc): Ditto.
2493 (ia64_convert_register_p): Ditto.
2494 (ia64_register_to_value): Ditto.
2495 (ia64_value_to_register): Ditto.
2496 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2497 (ia64_register_byte, ia64_register_raw_size): Ditto.
2498 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2499 (ia64_saved_pc_after_call): Ditto.
2500 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2501 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2502 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2503 (ia64_register_convert_to_raw): Ditto.
2504 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2505 (ia64_init_extra_frame_info): Ditto.
2506 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2507 (ia64_gdbarch_init): Remove registering of deprecated functions that
2508 are no longer used. Add registration of new gdbarch functions.
2509 Remove registering deprecated_write_sp. Replace
2510 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2511 Delete set_gdbarch_deprecated_register_convertible(),
2512 set_gdbarch_deprecated_register_convert_to_virtual(), and
2513 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2514 set_gdbarch_deprecated_register_size(),
2515 set_gdbarch_deprecated_register_bytes(),
2516 set_gdbarch_pcregnum(),
2517 set_gdbarch_deprecated_register_byte(),
2518 set_gdbarch_deprecated_register_raw_size(),
2519 set_gdbarch_deprecated_max_register_raw_size(),
2520 set_gdbarch_deprecated_register_virtual_size(),
2521 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2522 Replace set_gdbarch_deprecated_extract_return_value() with
2523 set_gdbarch_extract_return_value(). Remove calls to:
2524 set_gdbarch_deprecated_saved_pc_after_call();
2525 set_gdbarch_deprecated_frame_chain(),
2526 set_gdbarch_deprecated_frame_saved_pc(),
2527 set_gdbarch_deprecated_frame_init_saved_regs(),
2528 set_gdbarch_deprecated_get_saved_register(),
2529 set_gdbarch_deprecated_call_dummy_words(),
2530 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2531 set_gdbarch_deprecated_init_extra_frame_info(),
2532 set_gdbarch_deprecated_frame_args_address(),
2533 set_gdbarch_deprecated_frame_locals_address(),
2534 and set_gdbarch_deprecated_dummy_write_sp().
2535 Add set_gdbarch_convert_register_p(),
2536 set_gdbarch_register_to_value(),
2537 set_gdbarch_value_to_register(),
2538 set_gdbarch_push_dummy_call(),
2539 set_gdbarch_frame_align(),
2540 set_gdbarch_unwind_dummy_id(),
2541 set_gdbarch_unwind_pc(),
2542 frame_unwind_append_sniffer(),
2543 frame_unwind_append_sniffer(),
2544 and frame_base_set_default().
2545
aede7613
CD
25462003-08-25 Chris Demetriou <cgd@broadcom.com>
2547
2548 * configure.tgt: Document need for special "mipsisa64" handling.
2549 (mipsisa64*-*-linux64): Handle as target linux64.
2550 (mipsisa64*-*-*): Handle as target embed64.
2551
43c3a82e
MC
25522003-08-18 Michael Chastain <mec@shout.net>
2553
2554 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2555 objfile bug.
2556
6564f77d
MK
25572003-08-24 Mark Kettenis <kettenis@gnu.org>
2558
2de139ba
MK
2559 * i387-tdep.h: Update copyright date.
2560 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2561
6564f77d
MK
2562 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2563 CFLAGS games to reflect reality.
2564
42cf1509
AC
25652003-08-24 Andrew Cagney <cagney@redhat.com>
2566
2567 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2568 GDB_MULTI_ARCH is always non-zero.
2569 * osabi.c (_initialize_gdb_osabi): Ditto.
2570 (gdbarch_init_osabi): Ditto.
2571 * sparc-tdep.c: Ditto for #if code.
2572
0485f6ad
MK
25732003-08-23 Mark Kettenis <kettenis@gnu.org>
2574
2575 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2576 Update comments.
2577 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2578 comments.
2579 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2580 x86_64_supply_fxsave.
2581 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2582 x86_64_supply_fxsave.
2583 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2584 x86_64_supply_fxsave.
2585
c7716133
AJ
25862003-08-23 Andreas Jaeger <aj@suse.de>
2587
2588 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2589 i387_supply_fxsave.
2590
ed504bdf
MK
25912003-08-23 Mark Kettenis <kettenis@gnu.org>
2592
2593 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2594 i387_supply_register.
2595 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2596 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2597 i387_supply_fsave.
2598 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2599 i387_supply_fxsave.
2600 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2601 i387_supply_fsave.
2602 * i386bsd-nat.c (supply_fpregset): Adjust call to
2603 i387_supply_fsave.
2604 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2605 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2606 supply_fpregset.
2607 (store_inferior_registers): Remove extraneous whitespace. Call
2608 i387_fill_fsave instead of fill_fpregset.
2609 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2610 (supply_fpregset): Likewise.
2611 * i386v4-nat.c (supply_fpregset): Adjust call to
2612 i387_supply_fsave.
2613 * i386-interix-nat.c (supply_fpregset): Adjust call to
2614 i387_supply_fsave.
2615 * i386-linux-nat.c (supply_fpregset): Adjust call to
2616 i387_supply_fsave.
2617 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2618 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2619 i387supply_fsave and i387_supply_fxsave.
2620 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2621 Incorporate code from `i387_supply_register.
2622 (i387_supply_register): Remove.
2623 (i387_supply_fxsave): Add `regnum' argument.
2624 Update comments.
2625 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2626 prototype.
2627 (i387_supply_register): remove prototype.
2628 Update comments.
a8f4cde1 2629
4be5d520
MC
26302003-08-22 Michael Chastain <mec@shout.net>
2631
2632 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2633 Add lines for files in gdb/testsuite/gdb.cp/* that are
2634 still not 8.3 unique.
2635
7ed85d26
DJ
26362003-08-22 Daniel Jacobowitz <drow@mvista.com>
2637
2638 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2639 TYPE_VPTR_FIELDNO is valid.
2640
eb0d3137
MK
26412003-08-19 Mark Kettenis <kettenis@gnu.org>
2642
2643 * utils.c (set_width_command): Remove prototypes.
2644 (set_screen_size): New prototype.
2645 (init_page_info): Simplify by fetching the screen size from
2646 Readline. Call set_screen_size.
2647 (set_screen_size): New function.
2648 (set_width): Add missing whitespace in comment.
2649 (set_width_command): Call set_screen_size.
2650 (set_height_command): New function.
2651 (initialize_utils): Fix formatting. Make "set height" command
2652 call set_height_command. Remove redundant code that turns off
2653 pagination if output isn't a terminal. Remove redundant call to
2654 set_width_command.
a8f4cde1 2655
7e6d0ac8
MK
26562003-08-22 Mark Kettenis <kettenis@gnu.org>
2657
3567a8ea
MK
2658 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2659 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2660 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2661 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2662 `case' keyword.
2663 (sparc64_register_info): Give the reister with number
2664 SPARC64_STATE_REGNUM a name.
2665 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2666 %asi and %ccr.
2667 (sparc64_push_dummy_call): Take BIAS into account when checking
2668 stcak alignment.
2669 (sparc_software_single_step): Remove assertions that check whether
2670 NPC and NNPC were zero.
2671 (sparc_supply_rwindow): Make public. Merge functionality with
2672 sparc64_supply_rwindow.
2673 (sparc_fill_rwindow): Make public. Merge functionality with
2674 sparc64_fill_rwindow.
2675 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2676 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2677 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2678 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2679 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2680
7e6d0ac8
MK
2681 * reggroups.c: Add whitespace after declarations of local
2682 variables in functions.
2683
72e5f484
MC
26842003-08-21 Michael Chastain <mec@shout.net>
2685
2686 * gdbtypes.h: Change array bound type from an int to enum.
2687
435ac228
AC
26882003-08-21 Andrew Cagney <cagney@redhat.com>
2689
2690 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2691 * config/sparc/tm-sparc.h: Ditto.
2692 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2693 unconditionally.
2694 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2695
0d0e1a63
MK
26962003-07-13 Mark Kettenis <kettenis@gnu.org>
2697
2698 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2699 (register_objfile_data, set_objfile_data, objfile_data): New
2700 prototypes.
2701 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2702 prototypes.
2703 (allocate_objfile): Call objfile_alloc_data.
2704 (free_objfile): Call objfile_free_data.
2705 (struct objfile_data): New.
2706 (struct objfile_data_registration): New.
2707 (struct objfile_data_registry): New.
2708 (objfile_data_registry): New variable.
2709 (register_objfile_data): New function.
2710 (objfile_alloc_data, objfile_free_data): New functions.
2711 (set_objfile_data, objfile_data): New functions.
2712 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2713 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2714 (_initialize_dwarf2_frame): New function and prototype.
2715
d90cf509
AC
27162003-08-21 Andrew Cagney <cagney@redhat.com>
2717
2718 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2719 a specific architecture.
2720 * arch-utils.h (set_architecture_from_arch_mach): Delete
2721 declaration.
2722 (target_architecture_hook): Delete declaration.
2723 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2724 (default_float_format): Assume GDB_MULTI_ARCH.
2725 (default_double_format): Assume GDB_MULTI_ARCH.
2726 (set_endian_from_file): Delete function.
2727 (arch_ok): Delete function.
2728 (set_arch): Delete function.
2729 (set_architecture_from_arch_mach): Delete function.
2730 (set_architecture_from_file): Delete function.
2731 (set_architecture): Assume GDB_MULTI_ARCH.
2732 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2733
8b39fe56
MK
27342003-08-21 Mark Kettenis <kettenis@gnu.org>
2735
2736 Rewrite FreeBSD/sparc64 native configuration.
2737 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2738 * sparc64fbsd-nat.c: New file.
2739 * sparc64fbsd-tdep.c: New file.
2740 * sparc64-tdep.c sparc64-tdep.h: New files.
2741 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2742 sparc64fbsd-tdep.o): New dependencies.
2743 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2744 and sparc64fbsd-tdep.c.
2745 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2746 * config/sparc/fbsd.mh: Remove copyright notice.
2747 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2748 sparcbsd-nat.o.
2749 * config/sparc/fbsd.mt: Remove copyright notice.
2750 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2751 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2752 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2753 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2754 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2755 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2756 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2757 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2758 "sparc/tm-sp64.h".
2759 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2760 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2761
a7f19c79
MC
27622003-08-21 Michael Chastain <mec@shout.net>
2763
2764 * symtab.h: Add doco on the space critical structures and
2765 some measurements of space usage.
2766
da08ea5b
MS
27672003-08-21 Michael Snyder <msnyder@redhat.com>
2768
2769 * tracepoint.c (trace_dump_command): Trace break address
2770 is subject to DECR_PC_AFTER_BREAK.
2771 (set_traceframe_context): Make "trace_line" an int.
2772 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2773
6df2bf50
MS
27742003-08-20 Michael Snyder <msnyder@redhat.com>
2775
2776 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2777 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2778 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2779 argument passing.
a8f4cde1 2780 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2781 functions, replace sh_push_dummy_call.
2782 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2783
0955bbf0
MC
27842003-08-20 Michael Chastain <mec@shout.net>
2785
2786 * gdbtypes.h (struct main_type): Rearrange to save space.
2787
260a4188
MS
27882003-08-20 Michael Snyder <msnyder@redhat.com>
2789
2790 * trad-frame.c: Comment typo fix.
2791
8baa6f92
KB
27922003-08-20 Michael Snyder <msnyder@redhat.com>
2793 Kevin Buettner <kevinb@redhat.com>
2794
2795 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2796 (frv_frame_init_saved_regs): Add declaration.
2797 (frame_extra_info): Add new field ``saved_regs''.
2798 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2799 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2800 Update frame related code.
2801 (frv_extract_struct_value_address): Adjust formatting.
2802 * Makefile.in (frv-tdep.o): Update dependencies.
2803 * config/frv/tm-frv.h (target_insert_watchpoint)
2804 (target_remove_watchpoint, target_insert_hw_breakpoint)
2805 (target_remove_hw_breakpoint): Delete these macros.
2806 (remote_insert_watchpoint, remote_remove_watchpoint)
2807 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2808 these declarations.
2809
87193939
MC
28102003-08-20 Michael Chastain <mec@shout.net>
2811
2812 * defs.h (ENUM_BITFIELD): New macro.
2813 * symtab.h (ENUM_BITFIELD): Use it.
2814 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2815
062103ba
SA
28162003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2817
2818 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2819
8b148df9
AC
28202003-08-18 Andrew Cagney <cagney@redhat.com>
2821
2822 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2823 * gdbarch.h, gdbarch.c: Re-generate.
2824 * infcall.c (call_function_by_hand): Adjust the SP by
2825 frame_red_zone_size before allocating any stack space.
2826 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2827 * x86-64-tdep.c (x86_64_frame_align): New function.
2828 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2829
2830 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2831 Remove code adjusting SP so that it skips over the Red Zone.
2832
954a4db8
MK
28332003-08-18 Mark Kettenis <kettenis@gnu.org>
2834
2835 * NEWS (New native configurations): Mention FreeBSD/amd64.
2836
1a241548
AC
28372003-08-18 Andrew Cagney <cagney@redhat.com>
2838
2839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2840 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2841 "m68k_frame_p".
2842 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2843
f82b2acd
MK
28442003-08-18 Mark Kettenis <kettenis@gnu.org>
2845
2846 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2847
4056d258
ML
28482003-08-18 Michal Ludvig <mludvig@suse.cz>
2849
2850 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2851 Define.
2852 * i386-linux-nat.c: Include "linux-nat.h".
2853 (child_post_startup_inferior): New function.
a8f4cde1 2854
99ab4326
MK
28552003-08-18 Mark Kettenis <kettenis@gnu.org>
2856
2857 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2858 at the start of a frameless function. This probably fixes PR
2859 backtrace/1338.
2860
c8d5f0d6
MC
28612003-08-17 Michael Chastain <mec@shout.net>
2862
2863 * symfile.c (find_sym_fns): Remove special case for apollo target.
2864
9016a515
DJ
28652003-08-17 Daniel Jacobowitz <drow@mvista.com>
2866
2867 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2868 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2869 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2870 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2871 (linux_supports_tracevforkdone): New function.
2872 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2873 TRACEVFORKDONE.
2874 (child_follow_fork): Handle vfork.
2875 (linux_handle_extended_wait): Likewise. Also handle exec.
2876 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2877 * NEWS: Mention fork tracing.
2878
c538c11c
DJ
28792003-08-17 Daniel Jacobowitz <drow@mvista.com>
2880
2881 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2882
4de4c07c
DJ
28832003-08-17 Daniel Jacobowitz <drow@mvista.com>
2884
2885 * Makefile.in (i386-linux-nat.o): Update dependencies.
2886 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2887 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2888 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2889 * i386-linux-nat.c: Include "linux-nat.h".
2890 (child_post_startup_inferior): New function.
2891 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2892 * infptrace.c (kill_inferior): Wrap in #ifdef.
2893 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2894 attaching to each LWP.
2895 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2896 (init_lin_lwp_ops): Fill in some more operations.
2897 * linux-nat.h (linux_enable_event_reporting)
2898 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2899 prototypes.
2900 * linux-nat.c (linux_enable_event_reporting): New function.
2901 (child_post_attach, linux_child_post_startup_inferior)
2902 (child_post_startup_inferior, child_follow_fork)
2903 (linux_handle_extended_wait, kill_inferior): New functions.
2904
7996bcec
AC
29052003-08-16 Andrew Cagney <cagney@redhat.com>
2906
2907 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2908 * gdbarch.h, gdbarch.c: Re-generate.
2909
3d48a7a0
MK
29102003-08-16 Mark Kettenis <kettenis@gnu.org>
2911
2912 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2913
7989c619
AC
29142003-08-16 Andrew Cagney <cagney@redhat.com>
2915
2916 * NEWS: Mention that "set prompt-escape-char" was deleted.
2917 * top.c (get_prompt_1): Delete function.
2918 (gdb_prompt_escape):
2919 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2920 prompt-escape-char" command.
2921 (MAX_PROMPT_SIZE): Delete macro.
2922 (get_prompt): Simplify, do not call get_prompt_1.
2923
07978cd8
AC
29242003-08-16 Andrew Cagney <cagney@redhat.com>
2925
2926 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2927 -Werror. -Wformat-nonliteral problems.
2928
3ff7cf9e
JB
29292003-08-15 J. Brobecker <brobecker@gnat.com>
2930
2931 Further multiarching work mostly for hppa64-*-hpux11:
2932 * hppa-tdep.h: New file.
2933 * hppa-tdep.c: #include hppa-tdep.c.
2934 (hppa32_num_regs): Renamed from hppa_num_regs.
2935 (hppa64_num_regs): New constant.
2936 (hppa64_call_dummy_breakpoint_offset): New constant.
2937 (hppa32_call_dummy_length): New constant.
2938 (hppa64_call_dummy_length): New constant.
2939 (hppa32_stack_align): Make name 32bit explicit.
2940 (hppa32_register_virtual_type): Likewise.
2941 (hppa32_extract_return_value): Likewise.
2942 (hppa32_use_struct_convention): Likewise.
2943 (hppa32_store_return_value): Likewise.
2944 (hppa64_register_virtual_type): New function.
2945 (hppa64_extract_return_value): New function.
2946 (hppa64_use_struct_convention): New function.
2947 (hppa64_store_return_value): New function.
2948 (hppa_frame_locals_address): Remove declaration, function does
2949 not exist anymore.
2950 (hppa_register_byte): Add support for PA64 ABI.
2951 (hppa_gdbarch_init): Add support for PA64 ABI.
2952 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2953 Make name 32bit explicit.
2954 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2955 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2956 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2957 (hppa64_hpux_frame_base_before_sigtramp): New function.
2958 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2959 * config/pa/tm-hppa64.h: Remove macros that are no longer
2960 necessary now that the gdbarch vector is properly setup.
a8f4cde1 2961 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
2962 * config/pa/tm-hppah.h: Update function calls in macros
2963 following the function renaming in hppa-hpux-tdep.c.
2964 * Makefile.in (hppa_tdep_h): New variable.
2965 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2966
5d05ca6d
MS
29672003-08-14 Michael Snyder <msnyder@redhat.com>
2968
2969 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2970
37ba2569
JB
29712003-08-13 J. Brobecker <brobecker@gnat.com>
2972
2973 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2974 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2975 routine.
2976
aed7f26a
MS
29772003-08-13 Michael Snyder <msnyder@redhat.com>
2978
2979 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2980 (frv_saved_pc_after_call): Use deprecated ftype.
2981 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2982 (frv_remote_translate_xfer_address): Remove.
2983 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2984
752d4ac1
JB
29852003-08-13 J. Brobecker <brobecker@gnat.com>
2986
2987 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2988 initialization after the common gdbarch initialization, not before.
2989
1426ac1d
JB
29902003-08-13 J. Brobecker <brobecker@gnat.com>
2991
2992 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2993 (ADDR_BITS_REMOVE): Remove, redundant.
2994
b6fbdd1d
JB
29952003-08-13 J. Brobecker <brobecker@gnat.com>
2996
2997 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2998 gdbarch method to clear the 2 low bits of text addresses.
2999
44160db3
AC
30002003-08-12 Andrew Cagney <cagney@redhat.com>
3001
3002 * Makefile.in (dsrec.o): Update dependencies.
3003 * dsrec.c: Include "gdb_assert.h".
3004 (make_srec): Use snprintf instead of sprintf, use a literal format
3005 string.
3006
bcf7d3ca
AC
30072003-08-12 Andrew Cagney <cagney@redhat.com>
3008
3009 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3010 FRAME_OBSTACK_ZALLOC.
3011
49ed40de
KB
30122003-08-12 Kevin Buettner <kevinb@redhat.com>
3013
3014 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3015 SSE registers.
3016
b246147c
MK
30172003-08-10 Mark Kettenis <kettenis@gnu.org>
3018
3019 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3020 amd64fbsd_sc_reg_offset): Add extern declarations.
3021 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3022 declarations.
3023
d95fdc0d
BE
30242003-08-11 Ben Elliston <bje@wasabisystems.com>
3025
3026 * MAINTAINERS (write after approval): Update my mail address.
3027
cf6a0e73
AC
30282003-08-10 Andrew Cagney <cagney@redhat.com>
3029
3030 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3031
f837910f
MK
30322003-08-10 Mark Kettenis <kettenis@gnu.org>
3033
e2dbbd2d
MK
3034 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3035 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3036 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3037 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3038 i386bsd_sc_reg_offset): Add extern declarations.
3039 * i386obsd-nat.c: Include "i386-tdep.h"
3040 (_initialize_i386obsd_nat): Remove extern declarations.
3041 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3042 declarations.
3043 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3044 declarations.
3045
f837910f
MK
3046 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3047 instead of frame_read_register.
3048 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3049 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3050 SP_REGNUM.
3051 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3052 instead of frame_unwind_unsigned_register. Use
3053 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3054 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3055 instead of read_register. Use builtin_type_void_data_ptr instead
3056 of builtin_type_void_func_ptr when extracting the address of the
3057 jmp_buf.
3058 (i386_extract_return_value, i386_store_return_value,
3059 i386_pseudo_register_read, i386_pseudo_register_write): Use
3060 register_size instead REGISTER_RAW_SIZE.
3061
edcf254d
AC
30622003-08-10 Andrew Cagney <cagney@redhat.com>
3063
3064 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3065 sprintf. Make "name" constant.
3066
26604a34
MK
30672003-08-10 Mark Kettenis <kettenis@gnu.org>
3068
192285c6
MK
3069 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3070 instead of frame_read_register.
f837910f
MK
3071 (i387_print_float_info): Use get_frame_register and
3072 get_frame_register_unsigned instead of frame_register_read.
192285c6 3073
f0925262
MK
3074 * i386fbsd-nat.c: Include "i386-tdep.h".
3075 (child_resume): Make `eflags' an ULONGEST. Use
3076 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3077 instead of register_read and register_write.
3078
a144416f
MK
3079 * i386bsd-nat.c (fetch_inferior_registers,
3080 store_inferior_registers): Don't use && at the end of a line.
3081 (_initialize_i386bsd_nat): Fix typo.
3082
fec74868
MK
3083 * frame.c (_initialize_frame): Add missing backslash.
3084
87232496
MK
3085 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3086 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3087 and supply_register instead of manipulating the register buffer
3088 directly.
3089
c9b9de0b
MK
3090 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3091 * config/i386/nm-i386sol2.h
3092 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3093
26604a34
MK
3094 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3095 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3096 instructions that GCC likes to mingle into the prologue. Fixes
3097 gdb/1253 and gdb/1255.
3098
25d29d70
AC
30992003-08-09 Andrew Cagney <cagney@redhat.com>
3100
3101 Fix GDB PR cli/926.
3102 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3103 * command.h (add_setshow_uinteger_cmd): Declare.
3104 * frame.c (set_backtrace_cmd): New function.
3105 (show_backtrace_cmd): New function.
3106 * frame.c (_initialize_frame): Replace "set/show
3107 backtrace-below-main" with "set/show backtrace past-main". Add
3108 command "set/show backtrace limit".
3109 (backtrace_past_main): Rename "backtrace_below_main".
3110 (backtrace_limit): New variable.
3111 (get_prev_frame): Update. Check the backtrace_limit.
3112
9ebf4acf
AC
31132003-08-09 Andrew Cagney <cagney@redhat.com>
3114
3115 * defs.h (xstrprintf): Declare.
3116 * utils.c (xstrprintf): New function.
3117 * breakpoint.c (insert_breakpoints): Replace sprintf and
3118 non-literal format strings, with xstrprintf and cleanups.
3119 (delete_breakpoint,breakpoint_re_set): Ditto.
3120 (commands_command, insert_breakpoints): Ditto.
3121 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3122 (break_at_finish_command_1): Ditto.
3123
3771659b
AC
31242003-08-09 Andrew Cagney <cagney@redhat.com>
3125
3126 * MAINTAINERS (language support): List Adam Fedor as Objective C
3127 maintainer.
3128
b4263afa
JB
31292003-08-08 J. Brobecker <brobecker@gnat.com>
3130
3131 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3132 are now multiarched.
3133
d84defb1
JB
31342003-08-08 J. Brobecker <brobecker@gnat.com>
3135
3136 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3137 longer necessary now that hppa64 is partially multiarch'ed.
3138
f786f615
AC
31392003-08-08 Andrew Cagney <cagney@redhat.com>
3140
3141 * interps.c (interp_set): Check for a NULL "old_interp".
3142
c938e9b0
L
31432003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3144
3145 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3146 (install-only): Support DESTDIR.
3147 (uninstall): Likewise.
3148 (install-gdbtk): Likewise.
3149
9a146a11
EZ
31502003-08-08 Elena Zannoni <ezannoni@redhat.com>
3151
3152 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3153 contains something meaningful at all times.
3154
3155Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3156
62599e99 3157 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3158
56296155
BC
3159Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3160
62599e99 3161 * MAINTAINERS (write after approval): Added self.
56296155 3162
9710e734
AC
31632003-08-07 Andrew Cagney <cagney@redhat.com>
3164
3165 * inferior.h (AT_SYMBOL): Define.
3166 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3167 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3168 * mips-tdep.c (mips_call_dummy_address): Delete function.
3169 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3170 set call_dummy_address.
3171
98b3ab73
AC
31722003-08-07 Andrew Cagney <cagney@redhat.com>
3173
3174 * language.c (op_error): Delete function.
3175 (binop_type_check): Delete function.
3176 * language.h (type_op_error, range_op_error): Delete macros.
3177 (op_error): Delete declaration.
3178
2fcf52f0
AC
31792003-08-07 Andrew Cagney <cagney@redhat.com>
3180
3181 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3182
abd4220e 31832003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3184
abd4220e 3185 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3186 (x86_64_push_arguments): Skip the red zone.
abd4220e 3187
9dd5f34f
AC
31882003-08-05 Andrew Cagney <cagney@redhat.com>
3189
3190 * reggroups.c (reggroup_next): Check for the final entry.
3191
e5e78edc
AC
31922003-08-04 Andrew Cagney <cagney@redhat.com>
3193
ab4e3d93
AC
3194 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3195 * cli/cli-script.c (define_command): Call query directly, instead
3196 of passing it a buffer.
3197 * ocd.c (ocd_error): Pass error a constant format string.
3198 * remote-mips.c (mips_error): Use fputs_filtered.
3199
1062ca82
AC
3200 * solib-svr4.c (_initialize_svr4_solib): Update
3201 register_gdbarch_data call.
3202 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3203
fcc1c85c
AC
3204 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3205 (register_gdbarch_data): Delete "free" parameter. Update
3206 comments.
3207 * gdbarch.h, gdbarch.c: Re-generate.
3208 * reggroups.c (_initialize_reggroup): Update.
3209 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3210 * frame-base.c (_initialize_frame_base): Update.
3211 * frame-unwind.c (_initialize_frame_unwind): Update.
3212 * user-regs.c (_initialize_user_regs): Update.
3213 * remote.c (_initialize_remote): Update.
3214 * regcache.c (_initialize_regcache): Update.
3215
116f06ea
AC
3216 * regcache.c (xfree_regcache_descr): Delete function.
3217 (_initialize_regcache): Update call to register_gdbarch_data.
3218 (init_regcache_descr, init_legacy_regcache_descr): Use
3219 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3220
e5e78edc
AC
3221 * remote.c (free_remote_state): Delete function.
3222 (_initialize_remote): Update register_gdbarch_data.
3223 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3224 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3225
6c7d17ba
AC
32262003-08-04 Andrew Cagney <cagney@redhat.com>
3227
3228 * reggroups.c (struct reggroup_el): Define.
3229 (struct reggroups): Delete field "nr_group". Replace array
3230 "group" with a "first" to "last" linked list.
3231 (reggroups_init): Update. Allocate using gdbarch's obstack.
3232 (reggroups_free): Delete function.
3233 (add_group): Update. Add "el" parameter.
3234 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3235 (default_groups): Update.
3236 (reggroup_next): Replace reggroups.
3237 (reggroups_dump): Update.
3238 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3239 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3240 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3241
89b7795b
DJ
32422003-08-04 Daniel Jacobowitz <drow@mvista.com>
3243
3244 * Makefile.in (tui-interp.o): Update dependencies.
3245
306d9ac5
DC
32462003-08-04 David Carlton <carlton@kealia.com>
3247
3248 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3249 to internal_error call.
3250 * source.c (forward_search_command): Add "%s" format argument.
3251 (reverse_search_command): Ditto.
3252 * top.c (quit_confirm): Ditto.
3253 * cli/cli-setshow.c (do_setshow_command): Ditto.
3254 * cp-valprint.c (cp_print_class_method): Replace
3255 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3256 (cp_print_class_member): Ditto.
3257 * event-top.c (command_line_handler): Ditto.
3258 * linux-proc.c (linux_info_proc_cmd): Ditto.
3259 * p-typeprint.c (pascal_type_print_base): Ditto.
3260 * p-valprint.c (pascal_object_print_class_method): Ditto.
3261 (pascal_object_print_class_member): Ditto.
3262 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3263 * remote.c (remote_cisco_section_offsets): Ditto.
3264 * top.c (command_line_input): Ditto.
3265 * utils.c (vwarning,error_stream,quit): Ditto.
3266 * valprint.c (print_floating,print_binary_chars)
3267 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3268
57bfe177
AC
32692003-08-04 Andrew Cagney <cagney@redhat.com>
3270
3271 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3272
e546b999
AC
32732003-08-02 Andrew Cagney <cagney@redhat.com>
3274
3275 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3276 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3277 amd64fbsd-nat.c.
3278
91092ee5
AC
32792003-08-02 Andrew Cagney <cagney@redhat.com>
3280
3281 * Makefile.in: Update all dependencies and definitions.
3282
889f28e2
AF
32832003-08-02 Adam Fedor <fedor@gnu.org>
3284
3285 * linespec.c (is_objc_method_format): New function
3286 (decode_line_1, locate_first_half): Use it.
3287 Fixes PR objc/1298
3288
880bc914
AC
32892003-08-01 Andrew Cagney <cagney@redhat.com>
3290
3291 * NEWS: Mention that m32r is multi-arch.
3292 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3293 * configure.tgt: Recognize m32r-*-*.
3294 * config/m32r/tm-m32r.h: Delete file.
3295 * config/m32r/m32r.mt: New file.
a8f4cde1 3296 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3297 gethostname succeeds, in order to avoid a compilation
3298 warning.
3299 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3300 compiler warning.
3301
19f59343
MS
33022003-08-01 Michael Snyder <msnyder@redhat.com>
3303
3304 * sh-tdep.c (sh_frame_align): New gdbarch method.
3305 (sh_gdbarch_init): Set up frame_align method.
3306
4e7d7511
MS
33072003-07-31 Michael Snyder <msnyder@redhat.com>
3308
3309 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3310 which is already covered by the new frames infrastructure.
3311
63022984
AC
33122003-07-31 Andrew Cagney <cagney@redhat.com>
3313
3314 * user-regs.c (struct user_reg): Add "next" link.
3315 (struct user_regs): Replace "user" with "first" and "last" links.
3316 (append_user_reg): Add pre-allocated "reg" parameter.
3317 (builtin_user_regs): Provide initial value for "last".
3318 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3319 (user_regs_init): Allocate memory from the gdbarch obstack.
3320 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3321 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3322 linked list.
3323 (usernum_to_user_reg): New function.
3324 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3325 (value_of_user_reg): Use usernum_to_user_reg.
3326 (user_regs_free): Delete function.
3327 (_initialize_user_regs): Update register_gdbarch_data call.
3328
7cf6e574
DJ
33292003-07-31 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3332
c48a845b
MS
33332003-07-30 Michael Snyder <msnyder@redhat.com>
3334
4e7d7511 3335 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3336 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3337 value_being_returned.
3338 * infcmd.c (print_return_value): Pass zero as struct_addr.
3339 * values.c (value_being_returned): If struct_addr is passed,
3340 use it instead of trying to recover it from the inferior.
3341
f0d8db19
KB
33422003-07-30 Kevin Buettner <kevinb@redhat.com>
3343
3344 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3345 the prologue analyzer won't need to attempt to extract the pc
3346 value from the woefully incomplete dummy frame.
3347 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3348 possible. Disable code which modifies the frame.
3349
e5c113a1
AC
33502003-07-28 Andrew Cagney <cagney@redhat.com>
3351
3352 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3353 to level 2.
3354 (annotate_breakpoints_table, annotate_record): Ditto.
3355 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3356 (annotate_field_name_end, annotate_field_value): Ditto.
3357 (annotate_field_end, annotate_frame_source_begin): Ditto.
3358 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3359 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3360 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3361 (annotate_frame_address_end, annotate_frame_address): Ditto.
3362 (annotate_frame_args, annotate_frame_end): Ditto.
3363 (annotate_frame_where, annotate_arg_begin): Ditto.
3364 (annotate_arg_name_end, annotate_arg_value): Ditto.
3365 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3366 (annotate_function_call, annotate_signal_name): Ditto.
3367 (annotate_signal_string, annotate_signal_name_end): Ditto.
3368 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3369 (annotate_value_begin, annotate_value_history_value): Ditto.
3370 (annotate_value_history_end, annotate_value_end): Ditto.
3371 (annotate_display_begin, annotate_display_number_end): Ditto.
3372 (annotate_display_format, annotate_display_expression): Ditto.
3373 (annotate_display_expression_end, annotate_display_value): Ditto.
3374 (annotate_display_end, annotate_array_section_begin): Ditto.
3375 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3376 (annotate_elt, annotate_array_section_end): Ditto.
3377
bb1db049
AC
33782003-07-28 Andrew Cagney <cagney@redhat.com>
3379
3380 * regcache.c (struct regcache_descr): Update comments on
3381 nr_raw_registers.
3382 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3383 sizeof_raw_register_valid_p.
3384 (init_regcache_descr): Set nr_raw_registers and
3385 sizeof_raw_register_valid_p before calling
3386 init_legacy_regcache_descr.
3387
20e6603c
AC
33882003-07-28 Andrew Cagney <cagney@redhat.com>
3389
3390 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3391 MOD NUM_REGS.
3392
db742940
DJ
33932003-07-28 Daniel Jacobowitz <drow@mvista.com>
3394
3395 * thread.c (info_threads_command): Use get_selected_frame ().
3396 Check that there is at least one non-sentinel frame.
3397
ce7f4371
SC
33982003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3399
3400 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3401 (m68hc11_pop_frame): Remove.
3402 (m68hc11_frame_saved_pc): Remove.
3403 (m68hc11_frame_chain): Remove.
3404 (m68hc11_frame_init_saved_regs): Remove.
3405 (m68hc11_init_extra_frame_info): Remove.
3406 (m68hc11_store_struct_return): Remove.
3407 (m68hc11_saved_pc_after_call): Remove.
3408
1ea653ae
SC
34092003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3410
3411 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3412 frame unwind information.
3413 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3414 and adapted for frame unwinding.
3415 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3416 (m68hc11_unwind_pc): New function.
3417 (m68hc11_frame_unwind_cache): New function to analyze frames.
3418 (m68hc11_frame_this_id): New function to create new frame struct.
3419 (m68hc11_frame_prev_register): New function to unwind a register from
3420 the frame.
3421 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3422 (m68hc11_frame_p): New function for the above.
3423 (m68hc11_frame_base_address): New function to return fp of frame.
3424 (m68hc11_frame_args_address): Update for frame.
3425 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3426 (m68hc11_unwind_sp): New function.
3427 (m68hc11_unwind_dummy_id): New function.
3428 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3429 calls.
3430
c8a7f6ac
SC
34312003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3432
3433 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3434 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3435 when we are beyond the current pc.
3436
3dc990bf
SC
34372003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3438
3439 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3440 from m68hc11_push_arguments.
3441 (m68hc11_push_arguments): Remove.
3442 (m68hc11_push_return_address): Remove.
3443 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3444 handlers; remove deprecated_extra_stack_alignment_needed.
3445
222e5d1d
AC
34462003-07-27 Andrew Cagney <cagney@redhat.com>
3447
3448 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3449 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3450 REAL_PC and not the pointer.
3451 * hppa-hpux-tdep.c: Include frame.h
3452
a7e9a47e
AC
34532003-07-27 Andrew Cagney <cagney@redhat.com>
3454
3455 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3456 GDB_MULTI_ACH_PARTIAL.
3457
7e3dd49e
AC
34582003-07-27 Andrew Cagney <cagney@redhat.com>
3459
3460 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3461 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3462 operator at start and not end of line.
3463 (decode_prologue): Ditto.
3464 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3465 frame_unwind_register_unsigned instead of
3466 frame_unwind_unsigned_register.
3467 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3468 read_register.
3469 (m32r_push_dummy_call): Use register_size instead of
3470 REGISTER_RAW_SIZE.
3471 (m32r_frame_sniffer): Replace m32r_frame_p.
3472 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3473 * m32r-rom.c (report_transfer_performance): Delete extern
3474 declaration.
3475 (m32r_load, m32r_upload_command): Use print_transfer_performance
3476 instead of report_transfer_performance.
3477 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3478 / add_show_from_set.
3479
0880807f
AC
34802003-07-26 Andrew Cagney <cagney@redhat.com>
3481
3482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3483 store_return_value and extract_struct_value_address.
3484
64ae9269
DJ
34852003-07-26 Daniel Jacobowitz <drow@mvista.com>
3486
3487 PR c++/1267
3488 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3489 NULL, default to the section containing PC.
3490
e286caf2
SC
34912003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3492
3493 * NEWS: Mention "regs" deprecated for m68hc11 too.
3494
3495 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3496 (m68hc11_print_register): New function to print out one register.
3497 (m68hc11_print_registers_info): New function to print registers.
3498 (show_regs): Deprecate and use the above.
3499 (m68hc11_gdbarch_init): Install the print_registers_info.
3500
705b278b
JJ
35012003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3502
3503 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3504 that we have a SIGTRAP before returning non-zero.
3505
63cd4198
EZ
35062003-07-23 Michal Ludvig <mludvig@suse.cz>
3507 Elena Zannoni <ezannoni@redhat.com>
3508
a8f4cde1 3509 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3510 find_function_start_sal() returns empty record.
3511
6926787d
AS
35122003-07-23 Andreas Schwab <schwab@suse.de>
3513
3514 * ia64-tdep.c (ia64_print_insn): New function.
3515 (ia64_gdbarch_init): Set print_insn to it.
3516 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3517 deprecated_tm_print_insn_info.
3518
708cc1b6
MS
35192003-07-22 Michael Snyder <msnyder@redhat.com>
3520
3521 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3522 handle 8-bit returns (long long).
3523 (h8300h_extract_return_value): Ditto.
3524 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3525
aebd7893
AC
35262003-07-22 Andrew Cagney <cagney@redhat.com>
3527
3528 * gdbarch.c Include "gdb_obstack.h".
3529 (struct gdbarch): Add an "obstack".
3530 (alloc_gdbarch_data): Allocate the gdbarch data using
3531 GDBARCH_OBSTACK_CALLOC.
3532 (free_gdbarch_data): Delete function.
3533 (gdbarch_obstack_zalloc): New function.
3534 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3535 Assert that the architecture is not initialized.
3536 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3537 vector from the obstack.
3538 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3539 architecture obstack.
3540 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3541 (set_gdbarch_data): Assert that the data is not initialized.
3542 (struct gdbarch_data): Delete member "free".
3543 (register_gdbarch_data): Do not initialize "free".
3544 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3545
153721e6
AC
35462003-07-22 Andrew Cagney <cagney@redhat.com>
3547
3548 * configure.in (build_warnings): Add -Wformat-nonliteral.
3549 * configure: Re-generate.
3550
c193f044 35512003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3552
3553 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3554
c3228f12
EZ
35552003-07-22 Elena Zannoni <ezannoni@redhat.com>
3556
3557 * findvar.c (read_var_value): Remove case for thread local storage
3558 variables. It is now entirely handled by the dwarf2 location
3559 expression code.
3560 * printcmd.c (address_info): Ditto.
3561 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3562 enumeration value.
3563 (struct symbol): Remove objfile field, which was used by
3564 LOC_THREAD_LOCAL_STATIC only.
3565 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3566 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3567 usage of objfile pointer.
3568 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3569 thread local variables.
3570 Add include of objfiles.h.
3571 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3572 storage variables.
3573 * Makefile.in (dwarf2loc.o): Update dependencies.
3574
aef9bcd2
AC
35752003-07-22 Andrew Cagney <cagney@redhat.com>
3576
3577 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3578 get_frame_base.
3579 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3580 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3581 (struct value): Add opaque declaration.
3582 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3583
d95a8903
AC
35842003-07-21 Andrew Cagney <cagney@redhat.com>
3585
3586 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3587 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3588
4db73d49
SC
35892003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3590
a8f4cde1 3591 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3592 regcache_cooked_read_unsigned instead of read_register.
3593 (m68hc11_saved_pc_after_call): Likewise.
3594 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3595 instead of write_register.
3596 (m68hc11_register_type): New function.
3597 (m68hc11_register_virtual_type): Remove.
3598 (m68hc11_store_return_value): Convert to use the regcache.
3599 (m68hc11_extract_struct_value_address): Likewise.
3600 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3601 m68hc11_register_type; undeprecate store_return_value and
3602 extract_struct_value_address.
3603
ef2b8fcd
SC
36042003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3605
3606 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3607 and translate to use regcache.
3608 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3609
625b0b97
AC
36102003-07-18 Andrew Cagney <cagney@redhat.com>
3611
3612 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3613 * gdbarch.h, gdbarch.c: Re-generate.
3614 * i386-tdep.c (i386_gdbarch_init): Do not set
3615 DWARF2_BUILD_FRAME_INFO.
3616 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3617 unconditionally.
3618 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3619 DWARF2_BUILD_FRAME_INFO.
3620
22b0d388
AC
36212003-07-18 Andrew Cagney <cagney@redhat.com>
3622
3623 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3624 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3625
1ce5d6dd
AC
36262003-07-18 Andrew Cagney <cagney@redhat.com>
3627
3628 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3629 frame_unwind_address_in_block, instead of frame_pc_unwind.
3630 (dwarf2_frame_cache): Ditto.
3631
e6e5e94c
AC
36322003-07-18 Andrew Cagney <cagney@redhat.com>
3633
3634 * user-regs.h (struct gdbarch): Declare opaque.
3635 * ui-out.h (struct ui_file): Declare opaque.
3636 * dwarf2-frame.h (struct frame_info): Declare opaque.
3637
5483d879
KW
36382003-07-18 Kris Warkentin <kewarken@qnx.com>
3639
3640 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3641 #include "...".
3642 (procfs_meminfo): Change strerror to safe_strerror.
3643 (procfs_can_run): Remove K&R badness.
3644
278a7cf7
MS
36452003-07-17 Michael Snyder <msnyder@redhat.com>
3646
3647 * remote-sim.c: Comment typo fix.
3648
606e3b82
AC
36492003-07-17 Andrew Cagney <cagney@redhat.com>
3650
3651 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3652 configure.
3653 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3654 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3655 GDB_MULTI_ARCH_PARTIAL.
3656
c43af07c
EZ
36572003-07-17 Elena Zannoni <ezannoni@redhat.com>
3658
3659 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3660 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3661 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3662
3b85b0f1
TR
36632003-07-16 Theodore A. Roth <troth@openavr.org>
3664
3665 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3666 found.
3667 (avr_frame_unwind_cache): Don't unwind FP for main.
3668 Update a comment.
3669 Save the computed prev_sp.
3670 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3671 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3672 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3673
336d1bba
AC
36742003-07-16 Andrew Cagney <cagney@redhat.com>
3675
3676 * frame-base.h (frame_base_p_ftype): Delete definition.
3677 (frame_base_append_predicate): Delete declaration.
3678 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3679 (frame_unwind_append_predicate): Delete declaration.
3680 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3681 (append_predicate): Delete parameter "p".
3682 (frame_unwind_append_predicate): Delete function.
3683 (frame_unwind_append_sniffer): Update call to append_predicate.
3684 (frame_unwind_free): Delete function.
3685 (_initialize_frame_unwind): Pass NULL as "free" to
3686 register_gdbarch_data.
3687 (frame_unwind_init): Append the dummy_frame_sniffer.
3688 (frame_unwind_find_by_frame): Simplify.
3689 * frame-base.c (struct frame_base_table): Delete field "p".
3690 (append_predicate): Delete parameter "p".
3691 (frame_base_append_predicate): Delete function.
3692 (frame_base_append_sniffer): Update call to append_predicate.
3693 (frame_base_free): Delete function.
3694 (frame_base_find_by_frame): Simplify.
3695 (_initialize_frame_base): Pass NULL as "free" to
3696 register_gdbarch_data.
3697 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3698 (x86_64_sigtramp_frame_sniffer): Replace
3699 "x86_64_sigtramp_frame_p".
3700 (x86_64_init_abi): Set the frame unwind sniffers.
3701 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3702 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3703 (m68k_gdbarch_init): Set the frame unwind sniffers.
3704 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3705 "i386_sigtramp_frame_p".
3706 (i386_frame_sniffer): Replace "i386_frame_p".
3707 (i386_gdbarch_init): Set the frame unwind sniffers.
3708 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3709 (avr_gdbarch_init): Set the frame unwind sniffers.
3710 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3711 "alpha_sigtramp_frame_p"
3712 (alpha_heuristic_frame_sniffer): Replace
3713 "alpha_heuristic_frame_p".
3714 (alpha_gdbarch_init): Set the frame unwind sniffers.
3715 (alpha_dwarf2_init_abi): Ditto.
3716 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3717 "alpha_debug_frame_p".
3718 (alpha_mdebug_frame_base_sniffer): Replace
3719 "alpha_mdebug_frame_base_p".
3720 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3721 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3722 (d10v_gdbarch_init): Set the frame unwind sniffer.
3723 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3724 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3725 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3726 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3727 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3728 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3729
48db5a3c
CV
37302003-07-16 Michael Snyder <msnyder@redhat.com>
3731
3732 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3733 should go thru sh_dsp_register_sim_regno, else the dsp regs
3734 will not get the right values.
3735
37362003-07-16 Corinna Vinschen <vinschen@redhat.com>
3737
3738 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3739 deprecated_store_floating by call to store_typed_floating.
3740 (sh_sh4_register_convert_to_raw): Substitute call to
3741 deprecated_extract_floating by call to extract_typed_floating.
3742
37432003-07-16 Corinna Vinschen <vinschen@redhat.com>
3744
3745 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3746
37472003-07-16 Corinna Vinschen <vinschen@redhat.com>
3748
3749 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3750 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3751 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3752 as possible.
3753 (do_pseudo_register): Remove.
3754 (sh_push_dummy_code): New function.
3755 (sh64_store_struct_return): Rename from sh_store_struct_return.
3756 Only called for sh64 now.
3757 (sh_extract_struct_value_address): Regcache'ify.
3758 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3759 and accomodate new tasks.
3760 (sh64_push_return_address): Rename from sh_push_return_address.
3761 Only called for sh64 now.
3762 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3763 Regcache'ify.
3764 (sh3e_sh4_extract_return_value): Regcache'ify.
3765 (sh_default_store_return_value): Ditto.
3766 (sh3e_sh4_store_return_value): Ditto.
3767 (sh_default_register_byte): Remove.
3768 (sh_sh4_register_byte): Remove.
3769 (sh_default_register_raw_size): Remove.
3770 (sh_sh4_register_raw_size): Remove.
3771 (sh_register_virtual_size): Remove.
3772 (sh_sh3e_register_virtual_type): Remove.
3773 (sh_sh3e_register_type): New function.
3774 (sh_sh4_register_virtual_type): Remove.
3775 (sh_sh4_register_type): New function.
3776 (sh_default_register_virtual_type): Remove.
3777 (sh_default_register_type): New function.
3778 (do_fv_register_info): Add parameters to accomodate call from
3779 sh_print_registers_info.
3780 (do_dr_register_info): Ditto.
3781 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3782 Add parameters to accomodate call from sh_print_registers_info.
3783 (sh_do_fp_register): Ditto.
3784 (sh64_do_pseudo_register): Call do_dr_register_info,
3785 do_fv_register_info and sh_do_fp_register with default parameters.
3786 (sh_do_register): Add parameters to accomodate call from
3787 sh_print_registers_info.
3788 (sh_print_register): Ditto.
3789 (sh_print_registers_info): Rename from sh_do_registers_info.
3790 Add parameters to be used as gdbarch_print_registers_info
3791 implementation. Accomodate removed do_pseudo_register function
3792 pointer.
3793 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3794 function pointer. Call sh_print_register with default parameters.
3795 (sh64_do_registers_info): Call sh_print_registers_info instead of
3796 sh_do_registers_info.
3797 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3798 detection of deprecated vs. non-deprecated functionality.
3799 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3800 function pointer assignments by direct function calls.
3801
e8a89fe2
AC
38022003-07-15 Andrew Cagney <cagney@redhat.com>
3803
3804 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3805 (frame_register_unwind, create_new_frame): Ditto.
3806 (legacy_get_prev_frame, get_frame_type): Ditto.
3807 (get_frame_base_address): Use frame_base_find_by_frame.
3808 (get_frame_locals_address): Use frame_base_find_by_frame.
3809 (get_frame_args_address): Use frame_base_find_by_frame.
3810 * frame-base.h (frame_base_sniffer_ftype): Declare.
3811 (frame_base_append_sniffer): Declare.
3812 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3813 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3814 (frame_base_append_sniffer): New function.
3815 (frame_base_append_predicate): Add a NULL sniffer.
3816 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3817 (struct frame_base_table): Add "sniffer".
3818 (frame_base_free): Free the "sniffer" table.
3819 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3820 (frame_unwind_append_sniffer): Declare.
3821 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3822 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3823 (struct frame_unwind_table): Add "sniffer", delete "middle".
3824 (append_predicate): Add "sniffer" parameter, append the sniffer.
3825 (frame_unwind_init): Update append_predicate call.
3826 (frame_unwind_append_sniffer): New function.
3827 (frame_unwind_append_predicate): Update append_predicate call.
3828 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3829
0714963c
AC
38302003-07-15 Andrew Cagney <cagney@redhat.com>
3831
3832 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3833 before code inhibiting repeated unwind attempts. Add to
3834 commentary on that test's problems.
3835 * blockframe.c (inside_main_func): Look for "main" in the minimal
3836 symbol table.
3837 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3838 identical.
3839
d9170e22
AC
38402003-07-15 Andrew Cagney <cagney@redhat.com>
3841
3842 * complaints.c (struct explanation): Define.
3843 (struct complaints): Change type of "explanation" to "struct
3844 explanation".
3845 (symfile_explanations): Convert to a "struct explanation" table.
3846 (vcomplaint): Update.
3847
eba29c8c
ML
38482003-07-15 Michal Ludvig <mludvig@suse.cz>
3849
3850 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3851 (supply_gregset, fill_gregset): Call
eba29c8c
ML
3852 x86_64_linux_(fill,supply)_gregset functions.
3853 * x86-64-linux-tdep.c (USER_*): New defines.
3854 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3855 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3856 New functions.
3857 (fetch_core_registers): Ditto.
3858 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3859 * x86-64-linux-tdep.h: New file.
3860 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3861 and core-regset.o.
3862 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3863
68cc0bfb
MK
38642003-07-13 Mark Kettenis <kettenis@gnu.org>
3865
88a115f7
MK
3866 * x86-64-tdep.c (x86_64_store_return_value): Use
3867 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3868
68cc0bfb
MK
3869 * configure.host: Add x86_64-*-freebsd*.
3870 * configure.tgt: Add x86_64-*-freebsd*.
3871 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3872 * amd64fbsd-nat.c: New file.
3873 * amd64fbsd-tdep.c: New file.
3874 * config/i386/nm-fbsd64.h: New file.
3875 * config/i386/fbsd64.mh: New file.
3876 * config/i386/fbsd64.mt: New file.
3877
138e7be5
MK
38782003-07-11 Mark Kettenis <kettenis@gnu.org>
3879
3880 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3881 `sc_regs_offset' and `sc_fpregs_offset'.
3882 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3883 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3884 (alpha_sigtramp_register_address): Rewrite to use new members of
3885 `struct gdbarch_tdep'.
3886 (alpha_gdbarch_init): Initialize new members of struct
3887 gdbarch_tdep'.
3888 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3889 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3890 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3891 (alphafbsd_pc_in_sigtramp): Implement.
3892 (alphafbsd_sigtramp_offset): New function.
3893 (alphafbsd_sigcontext_addr): New function.
3894 (alphafbsd_init_abi): Initialize signal trampoline related members
3895 of `struct gdbarch_tdep'.
3896 (_initialize_alphafbsd_tdep): Add prototype.
3897
95303a68
TR
38982003-07-11 Theodore A. Roth <troth@openavr.org>
3899
ba292e4c
TR
3900 * Makefile.in (install-only): Quote sed expression when generating
3901 transformed_name.
95303a68 3902
6896c0c7
RH
39032003-07-11 Richard Henderson <rth@redhat.com>
3904
3905 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3906 * dwarf2-frame.c: Include complaints.h.
3907 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3908 variable initialization; return NULL on error.
3909 (decode_frame_entry): New.
3910
8edd5d01
AC
39112003-07-11 Andrew Cagney <cagney@redhat.com>
3912
c4a09524
AC
3913 * frame.h (frame_address_in_block): Delete declaration.
3914 * blockframe.c (frame_address_in_block): Delete function.
3915 (get_frame_block): Use get_frame_address_in_block.
3916 (block_innermost_frame): Ditto.
3917 * stack.c (print_frame, backtrace_command_1): Ditto.
3918
8edd5d01
AC
3919 * frame.h (get_frame_address_in_block): Declare.
3920 (frame_unwind_address_in_block): Declare.
3921 * frame.c (frame_unwind_address_in_block): New function.
3922 (get_frame_address_in_block): New function.
3923
f7968451
AC
39242003-07-10 Andrew Cagney <cagney@redhat.com>
3925
3926 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3927 pre-default. Note: re-generate has no effect.
a8f4cde1 3928
ae99b398
AC
39292003-07-10 Andrew Cagney <cagney@redhat.com>
3930
3931 * gdbarch.sh: When a variable, but not a function, compare against
3932 0. Fix problem in previous patch.
3933 * gdbarch.c: Re-generate.
a8f4cde1 3934
956ac328
AC
39352003-07-10 Andrew Cagney <cagney@redhat.com>
3936
3937 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3938 functions against NULL, not 0.
3939 * gdbarch.c: Re-generate.
a8f4cde1 3940
287c3240
FF
39412003-07-10 Fred Fish <fnf@ninemoons.com>
3942
3943 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3944 null string instead of a null pointer.
3945 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3946
32f63c4b
MS
39472003-07-09 Michael Snyder <msnyder@redhat.com>
3948
3949 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3950
402ecd56
MK
39512003-07-09 Mark Kettenis <kettenis@gnu.org>
3952
3953 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3954 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3955 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3956 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3957 * x86-64-tdep.c: ... from here.
3958
c481dac7
AS
39592003-07-09 Andreas Schwab <schwab@suse.de>
3960
3961 * m68k-tdep.h (enum struct_return): Define.
3962 (struct gdbarch_tdep): Add struct_return.
3963 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3964 bytes are padded to the right, not to the left. Pass struct value
3965 address in register %a1, not on stack.
3966 (m68k_use_struct_convention): New function.
3967 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3968 struct_return in tdep to pcc_struct_return.
3969 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3970 reg_struct_return.
3971
a8f4cde1 39722003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 3973
a8f4cde1 3974 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 3975
96a4ee76
AC
39762003-07-09 Andrew Cagney <cagney@redhat.com>
3977
3978 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3979 Add comments about the checks.
3980
1517c6d1
AC
39812003-07-08 Andrew Cagney <cagney@redhat.com>
3982
3983 * Makefile.in: Make dependency section headers consistent.
3984 (config_h): Move to $BUILD headers section.
3985 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3986 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3987 (ada-exp.tab.c): Move to YACC/LEX section.
3988 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3989 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3990
dc5dd1eb
KW
39912003-07-08 Kris Warkentin <kewarken@qnx.com>
3992
3993 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3994 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3995 of strerror with safe_strerror, use ISO C function definitions,
3996 and replace instances of sprintf with snprintf.
dc5dd1eb 3997
612dde91
AC
39982003-07-07 Andrew Cagney <cagney@redhat.com>
3999
4000 * frame.c (get_prev_frame): Enable check for identical frames.
4001 Update comments. Update error messages.
4002
492c11d3
JB
40032003-07-07 Joel Brobecker <brobecker@gnat.com>
4004
4005 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4006
376a5a49
JB
40072003-07-07 Joel Brobecker <brobecker@gnat.com>
4008
4009 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4010 sort_symtab_syms, no longer necessary.
4011
22b4a9ad
JB
40122003-07-07 Joel Brobecker <brobecker@gnat.com>
4013
4014 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4015
5bbcb741
JB
40162003-07-07 Joel Brobecker <brobecker@gnat.com>
4017
4018 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4019 (mips_register_byte): Likewise.
4020
c139e7d9
DJ
40212003-07-07 Daniel Jacobowitz <drow@mvista.com>
4022
4023 * Makefile.in (sparc_tdep_h): New.
4024 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4025 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4026 * sparc-linux-nat.c: Include "sparc-tdep.h".
4027 * sparc-nat.c: Likewise.
4028 * sparc-tdep.c: Likewise.
4029 * sparc64nbsd-nat.c: Likewise.
4030 * sparcnbsd-nat.c: Likewise.
4031 * sparcnbsd-tdep.c: Likewise.
4032 * sparc-tdep.h: New file.
4033 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4034 and sparc_npc_regnum.
4035
fd8f87c5
DJ
40362003-07-07 Daniel Jacobowitz <drow@mvista.com>
4037
4038 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4039 (mips_linux_cannot_store_register): List supported instead of
4040 unsupported registers.
4041
13adf674
DJ
40422003-07-07 Daniel Jacobowitz <drow@mvista.com>
4043
4044 * disasm.c (dump_insns): Separate instructions from addresses.
4045
8de307e0
AS
40462003-07-07 Andreas Schwab <schwab@suse.de>
4047
4048 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4049 dependencies.
4050 * m68k-tdep.c (NUM_FREGS): Delete.
4051 (SIG_PC_FP_OFFSET): Delete.
4052 (TARGET_M68K): Delete.
4053 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4054 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4055 P_MOVEL_SP, P_MOVEML_SP): Define.
4056 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4057 P_TRAP): Delete.
4058 (m68k_register_raw_size): Delete.
4059 (m68k_register_virtual_size): Delete.
4060 (m68k_register_type): Renamed from m68k_register_virtual_type and
4061 add gdbarch argument.
4062 (m68k_store_struct_return): Delete.
4063 (m68k_deprecated_extract_return_value): Delete.
4064 (m68k_deprecated_extract_struct_value_address): Delete.
4065 (m68k_frame_chain): Delete.
4066 (m68k_frame_saved_pc): Delete.
4067 (m68k_fix_call_dummy): Delete.
4068 (m68k_push_dummy_frame): Delete.
4069 (m68k_pop_frame): Delete.
4070 (m68k_extract_return_value): New function.
4071 (m68k_store_return_value): Rewrite using regcache.
4072 (m68k_extract_struct_value_address): Rewrite using regcache.
4073 (m68k_push_dummy_call): New function.
4074 (struct m68k_frame_cache): Define.
4075 (m68k_alloc_frame_cache): New function.
4076 (m68k_analyze_frame_setup): New function.
4077 (m68k_analyze_register_saves): New function.
4078 (m68k_analyze_prologue): New function.
4079 (m68k_skip_prologue): Rewrite using above functions.
4080 (m68k_unwind_pc): New function.
4081 (m68k_frame_cache): New function.
4082 (m68k_frame_this_id): New function.
4083 (m68k_frame_prev_register): New function.
4084 (m68k_frame_unwind): New variable.
4085 (m68k_frame_p): New function.
4086 (m68k_sigtramp_frame_cache): New function.
4087 (m68k_sigtramp_frame_this_id): New function.
4088 (m68k_sigtramp_frame_prev_register): New function.
4089 (m68k_sigtramp_frame_unwind): New variable.
4090 (m68k_sigtramp_frame_p): New function.
4091 (m68k_frame_base_address): New function.
4092 (m68k_frame_base): New function.
4093 (m68k_unwind_dummy_id): New function.
4094 (fill_gregset): Use regcache_collect.
4095 (fill_fpregset): Likewise.
4096 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4097 defined.
4098 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4099 deprecated_init_frame_pc, deprecated_store_struct_return,
4100 deprecated_extract_return_value, deprecated_store_return_value,
4101 deprecated_frame_chain, deprecated_frame_saved_pc,
4102 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4103 deprecated_register_virtual_size,
4104 deprecated_max_register_raw_size,
4105 deprecated_max_register_virtual_size,
4106 deprecated_register_virtual_type, deprecated_register_size,
4107 deprecated_register_byte, deprecated_register_bytes,
4108 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4109 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4110 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4111 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4112 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4113 deprecated_push_dummy_frame, deprecated_pop_frame,
4114 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4115 only if SYSCALL_TRAP is defined. Set extract_return_value,
4116 store_return_value, extract_struct_value_address, register_type,
4117 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4118 predicates.
4119 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4120 M68K_MAX_REGISTER_SIZE): Define.
4121 (struct m68k_sigtramp_info): Define.
4122 (struct gdbarch_tdep): Add get_sigtramp_info.
4123 * m68klinux-nat.c (fetch_register): Use register_size instead of
4124 REGISTER_RAW_SIZE. Don't put assignment in if.
4125 (store_register): Likewise.
4126 (fetch_inferior_registers): Likewise.
4127 (store_inferior_registers): Likewise.
4128 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4129 (m68k_linux_frame_saved_pc): Delete.
4130 (m68k_linux_sigcontext_reg_offset,
4131 m68k_linux_ucontext_reg_offset): Define.
4132 (m68k_linux_get_sigtramp_info): New function.
4133 (m68k_linux_extract_return_value): Rewrite using regcache.
4134 (m68k_linux_store_return_value): Likewise.
4135 (m68k_linux_extract_struct_value_address): Likewise.
4136 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4137 Don't set deprecated_frame_saved_pc,
4138 deprecated_extract_return_value, deprecated_store_return_value,
4139 deprecated_extract_struct_value_address. Set
4140 extract_return_value, store_return_value,
4141 extract_struct_value_address.
4142
eb8bc282
AC
41432003-07-07 Andrew Cagney <cagney@redhat.com>
4144
4145 * expprint.c: Include "user-regs.h" instead of "frame.h".
4146 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4147 frame_map_regnum_to_name.
4148 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4149 (frame_map_name_to_regnum): Simplify, call
4150 user_reg_map_name_to_regnum.
4151 (frame_map_regnum_to_name): Simplify, call
4152 user_reg_map_regnum_to_name.
4153 (frame_register_unwind): Update.
4154 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4155 (_initialize_frame_reg): Call user_reg_add_builtin.
4156 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4157 (value_of_register): Use value_of_user_reg.
4158 * eval.c (evaluate_subexp_standard): Update.
4159 * parse.c (write_dollar_variable): Update.
4160 * d10v-tdep.c (d10v_print_registers_info): Update.
4161 * infcmd.c (registers_info): Update.
4162 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4163 (builtin_regs_h): Delete macro.
4164 (user_regs_h): Define.
4165 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4166 (builtin-regs.o): Delete target.
4167 (user-regs.o): Specify dependencies.
4168 (expprint.o): Update dependencies.
4169 (findvar.o): Update dependencies.
4170 (frame.o): Update dependencies.
4171 (std-regs.o): Update dependencies.
4172
9f476a01
CF
41732003-07-06 Christopher Faylor <cgf@redhat.com>
4174
4175 * win32-nat.c (solib_symbols_add): Use one variable for all section
4176 address stuff. Pass variable rather than address of variable to
4177 safe_symbol_file_add.
4178
a731b831
AS
41792003-07-06 Andreas Schwab <schwab@suse.de>
4180
4181 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4182
9f83329d
JB
41832003-07-04 Joel Brobecker <brobecker@gnat.com>
4184
4185 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4186
27e28cc5
KW
41872003-07-04 Kris Warkentin <kewarken@qnx.com>
4188
4189 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4190
41912003-07-04 Kris Warkentin <kewarken@qnx.com>
4192
4193 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4194 * config/i386/nto.mh: New file.
4195 * config/i386/nm-nto.h: New file.
4196 * configure.host: Add i[3456]86-*-nto*.
4197
100f2e98
JB
41982003-07-03 Joel Brobecker <brobecker@gnat.com>
4199
4200 * remote-vx.c (vx_add_symbols): Fix compilation error.
4201
e23457df
AC
42022003-07-03 Andrew Cagney <cagney@redhat.com>
4203
4204 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4205 * gdbarch.h, gdbarch.c: Re-generate.
4206 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4207 (legacy_register_name): Declare.
4208 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4209 (REGISTER_NAME): Define.
4210 * sparc-tdep.c (legacy_register_name): New function.
4211 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4212 (REGISTER_NAME): Define.
4213 (hppa64_register_name): Declare.
4214 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4215 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4216 (hppa64_register_name): New function.
4217 (hppa_register_name): New function.
4218 * arch-utils.c (legacy_register_name): Delete.
4219 * arch-utils.h (legacy_register_name): Delete.
4220
38caaeec
DJ
42212003-07-03 Daniel Jacobowitz <drow@mvista.com>
4222
4223 * cli/cli-interp.c (cli_interpreter_resume): Update the
4224 cli_uiout's stream to gdb_stdout.
4225
dadd712e
AC
42262003-07-03 Andrew Cagney <cagney@redhat.com>
4227
4228 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4229 predicate.
4230 * gdbarch.h, gdbarch.c: Re-generate.
4231 * regcache.c (init_regcache_descr): Use legacy code when either
4232 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4233
c7f1390e
DJ
42342003-07-02 Daniel Jacobowitz <drow@mvista.com>
4235
4236 * NEWS: Move "set logging" entry into GDB 6.0 section.
4237
4bc8c588
JB
42382003-07-02 Jim Blandy <jimb@redhat.com>
4239
a9dd42f1
JB
4240 * s390-tdep.c (struct frame_extra_info): new member:
4241 'stack_bought_valid'.
4242 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4243 initialize fextra_info->stack_bought.
4244 (s390_frameless_function_invocation): Don't trust the value of
4245 fextra_info_ptr->stack_bought unless
4246 fextra_info->stack_bought_valid is set.
4247
4bc8c588
JB
4248 New S390 prologue analyzer.
4249 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4250 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4251 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4252 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4253 compute_x_addr, s390_on_stack, s390_store,
4254 s390_get_signal_frame_info): New functions.
4255 (S390_NUM_SPILL_SLOTS): New macro.
4256 (s390_get_frame_info): Rewritten.
4257 (is_arg_reg): Deleted.
4258
4259 Break out the decoding of S/390 instructions into separate
4260 functions, to make it more legible, and easier to check
4261 against the spec.
4262 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4263 is_rx, is_rxe): New functions.
4264 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4265 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4266 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4267 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4268 enums for opcode values. (Is this an improvement?)
4269
fd13a04a
AC
42702003-07-02 Andrew Cagney <cagney@redhat.com>
4271
4272 * i386-tdep.c: Revert change committed as part of trad-frame code
4273 below.
4274
3f8091c1
DJ
42752003-07-02 Daniel Jacobowitz <drow@mvista.com>
4276
4277 * breakpoint.c (insert_catchpoint): Make static.
4278
8dd5115e
AS
42792003-07-02 Andreas Schwab <schwab@suse.de>
4280
4281 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4282 former ia64_push_arguments and ia64_push_return_address, and use
4283 regcache functions instead of read/write_register.
4284 (ia64_gdbarch_init): Set push_dummy_call instead of
4285 deprecated_push_arguments and deprecated_push_return_address.
4286
a2229c23
AJ
42872003-07-01 Andreas Jaeger <aj@suse.de>
4288
4289 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4290 before the call.
4291 Set %rax only to number of SSE registers used.
4292
3b3850e8
AC
42932003-07-01 Andrew Cagney <cagney@redhat.com>
4294
4295 * trad-frame.h: Update comments, a -1 .addr is reserved.
4296 (trad_frame_value_p, trad_frame_addr_p): Declare.
4297 (trad_frame_reg_p): Declare.
4298 (trad_frame_set_value): Rename trad_frame_register_value.
4299 (trad_frame_set_unknown): Declare.
4300 * trad-frame.c (trad_frame_realreg_p): New function.
4301 (trad_frame_addr_p, trad_frame_value_p): New function.
4302 (trad_frame_set_unknown): New function.
4303 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4304 (trad_frame_prev_register): Use trad_frame_realreg_p,
4305 trad_frame_addr_p and trad_frame_value_p.
4306 (trad_frame_set_value): Rename trad_frame_register_value.
4307 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4308 and trad_frame_set_value.
a2229c23 4309
4d819d0e
JB
43102003-06-30 Jim Blandy <jimb@redhat.com>
4311
4312 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4313 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4314 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4315 for 16 registers, and then 32 more bytes.
4316 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4317 New macros.
4318 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4319 Move up in the file, since it's now used by is_simple_arg.
4320 (is_simple_arg): Don't assume registers are four bytes long.
4321 Exclude all double arguments. Extended floats are not simple
4322 args.
4323 (is_power_of_two): New function.
4324 (pass_by_copy_ref): Call is_power_of_two, and check that the
4325 length fits in a register, rather than listing all the acceptable
4326 sizes. Extended floats are not passed by reference.
4327 (s390_push_arguments): Don't assume registers are four bytes long.
4328 Reserve an argument register to point to the buffer for structures
4329 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4330 S390_STACK_FRAME_OVERHEAD.
4331
1ad828f1
AS
43322003-06-30 Andreas Schwab <schwab@suse.de>
4333
4334 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4335 format error message.
4336
39b00981
JB
43372003-06-30 Joel Brobecker <brobecker@gnat.com>
4338
4339 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4340
b2a7f303
DC
43412003-06-30 David Carlton <carlton@kealia.com>
4342
4343 Band-aid for PR c++/1245.
4344 * Makefile.in (cp-support.o): Depend on complaints_h.
4345 * cp-support.c: Include complaints.h. Add declaration for
4346 find_last_component.
4347 (cp_find_first_component): Separate code into
4348 cp_find_first_component_aux.
4349 (cp_find_first_component_aux): Call demangled_name_complaint.
4350 (demangled_name_complaint): New.
4351
a257b5bb
AC
43522003-06-30 Andrew Cagney <cagney@redhat.com>
4353
4354 * remote.c (remote_write_bytes): Explicitly compute and then use
4355 the payload size. Update comments to reflect. Fixes problem of
4356 GDB not sending small packets as found by Fred Fish.
4357
0a2cfde4
AC
43582003-06-30 Andrew Cagney <cagney@redhat.com>
4359
4360 * remote.c (remote_async_wait): Fix -Wformat problem.
4361
3fcb8548
AC
43622003-06-29 Andrew Cagney <cagney@redhat.com>
4363
4364 * remote.c (remote_wait): Call error, and not warning, when the
4365 packet is corrupt.
4366 (remote_async_wait): Ditto.
4367
9f9970a3
DJ
43682003-06-29 Daniel Jacobowitz <drow@mvista.com>
4369
4370 * sparc-tdep.c (sparc_y_regnum): Make external again.
4371
83a8ccca
DJ
43722003-06-29 Daniel Jacobowitz <drow@mvista.com>
4373
4374 * cli/cli-logging.c (pop_output_files): Add void to function
4375 definition.
4376
d2cf594a
AC
43772003-06-29 Andrew Cagney <cagney@redhat.com>
4378
4379 * frame.c (frame_register_unwind): Use unsigned char when dumping
4380 the buffer contents.
4381
0fac0b41
DJ
43822003-06-28 Daniel Jacobowitz <drow@mvista.com>
4383
4384 * cli/cli-logging.c: New file.
4385 * cli-out.c (struct ui_out_data): Add original_stream.
4386 (cli_redirect): New function.
4387 (cli_ui_out_impl): Add cli_redirect.
4388 (cli_out_new): Initialize original_stream.
4389 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4390 (uo_redirect, ui_out_redirect): New.
4391 * ui-out.h (struct ui_out_impl): Add redirect member.
4392 (redirect_ftype): New.
4393 (ui_out_redirect): Add prototype.
4394 * Makefile.in: Add rules for cli-logging.c.
4395 * NEWS: Mention "set logging".
4396
88a07d7c
EZ
43972003-06-27 Elena Zannoni <ezannoni@redhat.com>
4398
4399 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4400
4eb58876
AC
44012003-06-27 Andrew Cagney <cagney@redhat.com>
4402
4403 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4404 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4405 * avr-tdep.c (avr_call_dummy_address): Delete function.
4406 (avr_gdbarch_init): Do not set call_dummy_address.
4407
1549f619
EZ
44082003-06-27 Elena Zannoni <ezannoni@redhat.com>
4409
4410 * symfile.c (syms_from_objfile): Move variables to inner block.
4411 Move the checks for the non-mainline case a bit earlier to avoid
4412 doing some useless computations.
4413
3cb3398d
EZ
44142003-06-27 Elena Zannoni <ezannoni@redhat.com>
4415
4416 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4417
3799ccc6
EZ
44182003-06-26 Elena Zannoni <ezannoni@redhat.com>
4419
4420 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4421 sections.
4422
ce1f6491
MC
44232003-06-26 Michael Chastain <mec@shout.net>
4424
4425 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4426 gdb/testsuite/gdb.c++/pr-1210.exp.
4427
d958dfd0
AC
44282003-06-26 Andrew Cagney <cagney@redhat.com>
4429
4430 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4431 altivec_expression.h and altivec_registers.h.
4432
d31431ed
AC
44332003-06-26 Andrew Cagney <cagney@redhat.com>
4434
4435 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4436 info->mach when MIPS16. Patch suggested by Fred Fish.
4437
714b1282
AC
44382003-06-26 Andrew Cagney <cagney@redhat.com>
4439
4440 * utils.c (internal_vproblem): Print the problem to a reason
4441 buffer and then pass to query. Make the msg variable more local.
4442
42efa47a
AC
44432003-06-26 Andrew Cagney <cagney@redhat.com>
4444
4445 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4446 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4447 * gdbarch.h, gdbarch.c: Re-generate.
4448 * frame-base.c (default_frame_args_address): Update. Use
4449 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4450 not available.
4451 (default_frame_locals_address): Ditto for
4452 DEPRECATED_FRAME_LOCALS_ADDRESS.
4453 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4454 (vax_frame_num_args): Update.
4455 (vax_gdbarch_init): Update.
4456 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4457 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4458 * mcore-tdep.c (mcore_gdbarch_init): Update.
4459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4460 * ia64-tdep.c (ia64_gdbarch_init): Update.
4461 * symtab.h (address_class): Update comments.
4462 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4463 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4464 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4465 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4466 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4467 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4468 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4469 * alpha-mdebug-tdep.c: Update.
4470 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4471
8ffd9b1b
AJ
44722003-06-26 Andreas Jaeger <aj@suse.de>
4473
4474 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4475 of SSE registers so that varargs functions work. Rework handling
4476 of passing arguments on the stack.
4477 (x86_64_store_return_value): Return double and float values in SSE
4478 register.
4479
e8ac10a6
MC
44802003-06-24 Michael Chastain <mec@shout.net>
4481
4482 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4483 the "constructor breakpoints ignored" bug.
4484
986af8e6
DC
44852003-06-25 David Carlton <carlton@kealia.com>
4486
4487 * MAINTAINERS: Update e-mail address.
4488
d64558a5
JB
44892003-06-24 Jim Blandy <jimb@redhat.com>
4490
e538d2d7
JB
4491 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4492
02631ec0
JB
4493 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4494 function.
4495 (ppc_linux_init_abi): Register it as the
4496 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4497
e716d87a
JB
4498 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4499 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4500 method.
4501
d64558a5
JB
4502 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4503 (ppc64_standard_linkage_target): Use it.
4504
449a5da4
AC
45052003-06-23 Andrew Cagney <cagney@redhat.com>
4506
4507 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4508 for 0 "int0" and 4 "int32" sized registers.
4509 * gdbtypes.c (builtin_type_int0): Define.
4510 (build_gdbtypes): Initialize builtin_type_int0.
4511 * gdbtypes.h (builtin_type_int0): Declare.
4512
b2a02dda
SC
45132003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4514
4515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4516 as characters are unsigned.
4517
fba3138e
DJ
45182003-06-22 Daniel Jacobowitz <drow@mvista.com>
4519
4520 PR gdb/1179
4521 * dwarfread.c (struct_type): Skip static fields without crashing.
4522
f6c8180b
AC
45232003-06-22 Andrew Cagney <cagney@redhat.com>
4524
4525 GDB 6.0 branch created.
f2c06f52
AC
4526 * README: Update.
4527 * PROBLEMS: Update. Empty.
4528 * NEWS: Update.
f6c8180b 4529
ae822768
DJ
45302003-06-22 Daniel Jacobowitz <drow@mvista.com>
4531
4532 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4533 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4534
261de166
AC
45352003-06-22 Andrew Cagney <cagney@redhat.com>
4536
4537 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4538 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4539 Velikov.
4540
30e94205
DJ
45412003-06-22 Daniel Jacobowitz <drow@mvista.com>
4542
4543 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4544 compilers.
4545
9e14d721
DJ
45462003-06-21 Daniel Jacobowitz <drow@mvista.com>
4547
4548 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4549 argument of val_print.
4550 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4551 to the address argument of baseclass_offset or target_read_memory.
4552 Do add it to the argument of cp_print_value_fields.
4553
a4b8ebc8
AC
45542003-06-21 Andrew Cagney <cagney@redhat.com>
4555
4556 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4557 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4558 instead of 0..NUM_REGS.
4559 (mips_register_reggroup_p): New function.
4560 (mips_pseudo_register_write): New function.
4561 (mips_pseudo_register_read): New function.
4562 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4563 based on the register's type.
4564 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4565 cooked.
4566 (mips_get_saved_register): Simplify. Assert that REGNO is a
4567 pseudo / cooked.
4568 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4569 (mips_register_type): Replace mips_register_virtual_type. Map
4570 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4571 when available.
4572 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4573 that the register is cooked / virtual.
4574 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4575 Only get the extra info when needed.
4576 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4577 (mips32_heuristic_proc_desc): Fetch the cooked register.
4578 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4579 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4580 (mips_print_register): Use gdbarch_register_type, instead of
4581 REGISTER_VIRTUAL_TYPE.
4582 (print_gp_register_row): Use gdbarch_register_type, instead of
4583 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4584 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4585 Print the pseudo / cooked registers.
4586 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4587 Print the pseudo / cooked registers.
4588 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4589 REG_NUM is pseudo / cooked.
4590 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4591 (mips_n32n64_xfer_return_value): Ditto.
4592 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4593 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4594 (mips_register_sim_regno): New function.
4595 (mips_gdbarch_init): Set deprecated_register_byte,
4596 register_group_p, pseudo_register_write, pseudo_register_read,
4597 register_sim_regno, and num_pseudo_regs. Set register_type,
4598 instead of register_virtual_type.
4599 * Makefile.in (mips-tdep.o): Update dependencies.
4600 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4601 REGISTER_VIRTUAL_TYPE.
4602 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4603 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4604 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4605 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4606 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4607
325ed089
DJ
46082003-06-21 Daniel Jacobowitz <drow@mvista.com>
4609
4610 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4611 * cli/cli-cmds.c: Include "gdb_vfork.h".
4612 (shell_escape): Use vfork.
4613
f0e7d0e8
AC
46142003-06-21 Andrew Cagney <cagney@redhat.com>
4615
c57bb9fa
AC
4616 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4617 32 bit floating-point register saves.
4618
6e51443a
AC
4619 * frame.h (deprecated_unwind_get_saved_register): Delete.
4620 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4621 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4622 and deprecated_get_next_frame_hack instead of
4623 deprecated_unwind_get_saved_register.
4624
ed183c7c
AC
4625 * mips-tdep.c (mips_dump_tdep): Do not print
4626 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4627
f0e7d0e8
AC
4628 * frame.c (get_frame_register): New function.
4629 (frame_unwind_register_signed): New function.
4630 (get_frame_register_signed): New function.
4631 (frame_unwind_register_unsigned): New function.
4632 (get_frame_register_unsigned): New function.
4633 * frame.h: Add comments on naming schema.
4634 (get_frame_register, frame_unwind_register_signed): Declare.
4635 (get_frame_register_signed, get_frame_register_signed): Declare.
4636 (frame_unwind_register_unsigned): Declare.
4637 (get_frame_register_unsigned): Declare.
4638
2224d941
TR
46392003-06-20 Theodore A. Roth <troth@openavr.org>
4640
4641 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4642
8619218d
TR
46432003-06-20 Theodore A. Roth <troth@openavr.org>
4644
4645 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4646 (avr_read_sp): Ditto.
4647
0b1b50c0
DJ
46482003-06-20 Daniel Jacobowitz <drow@mvista.com>
4649
4650 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4651 * config/arm/nm-linux.h: Likewise.
4652 * config/arm/tm-linux.h: Likewise.
4653 * config/ia64/nm-linux.h: Likewise.
4654 * config/ia64/tm-ia64.h: Likewise.
4655 * config/s390/tm-linux.h: Likewise.
4656 * config/s390/tm-s390.h: Likewise.
4657 * s390-nat.c: Likewise.
4658 * s390-tdep.c: Likewise.
4659
4660 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4661 * config/ia64/linux.mt: Likewise.
4662 * config/m68k/linux.mh: Likewise.
4663 * config/mips/linux.mt: Likewise.
4664 * config/powerpc/linux.mh: Likewise.
4665 * config/sh/linux.mt: Likewise.
4666
c8c18e65
KW
46672003-06-19 Kris Warkentin <kewarken@qnx.com>
4668
4669 * solib.c (solib_open): Change tests for whether to search
4670 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4671 comments.
4672
dcccef2e
TR
46732003-06-19 Theodore A. Roth <troth@openavr.org>
4674
4675 * avr-tdep.c (avr_frame_address): Delete function.
4676 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4677 set_gdbarch_frame_args_address.
4678
5861a190
AC
46792003-06-19 Andrew Cagney <cagney@redhat.com>
4680
4681 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4682 (REGISTER_CONVERT_FROM_TYPE): Delete.
4683 (mips_register_convert_to_type): Delete declaration.
4684 (mips_register_convert_from_type): Delete declaration.
4685 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4686 kernel/.
4687
0274a8ce
MS
46882003-06-19 Michael Snyder <msnyder@redhat.com>
4689
4690 * linux-nat.h: New file.
4691 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4692 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4693 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4694 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4695 (linux_make_note_section): Iterate over lwps instead of threads.
4696 (linux_do_thread_registers): Use lwp instead of merged pid.
4697 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4698 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4699 Add dependency on linux_nat_h.
4700
adf5f719
TR
47012003-06-19 Theodore A. Roth <troth@openavr.org>
4702
4703 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4704
6766a268
DJ
47052003-06-19 Daniel Jacobowitz <drow@mvista.com>
4706
4707 * varobj.c (get_type, get_target_type): Use check_typedef.
4708
1171114a
DJ
47092003-06-19 Daniel Jacobowitz <drow@mvista.com>
4710
4711 * breakpoint.c (insert_catchpoint): Call internal_error.
4712
adcf68a2
TR
47132003-06-19 Theodore A. Roth <troth@openavr.org>
4714
4715 * avr-tdep.c (avr_push_dummy_code): Delete function.
4716 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4717
ea67f13b
DJ
47182003-06-19 Daniel Jacobowitz <drow@mvista.com>
4719
4720 * arch-utils.c (default_prepare_to_proceed): Remove.
4721 (generic_prepare_to_proceed): Remove.
4722 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4723 (generic_prepare_to_proceed): Remove prototype.
4724 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4725 * gdbarch.c: Regenerate.
4726 * gdbarch.h: Regenerate.
4727 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4728 * hppah-nat.c (hppa_switched_threads): Remove.
4729 * infrun.c (prepare_to_proceed): New static function, copied from
4730 generic_prepare_to_proceed. Remove select_it argument.
4731 (proceed): Call prepare_to_proceed.
4732 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4733 variables.
4734 (ptrace_wait): Don't set the removed variables.
4735 (hppa_switched_threads): Remove.
4736 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4737 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4738 (lin_lwp_prepare_to_proceed): Remove prototype.
4739 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4740 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4741
4add8633
TR
47422003-06-18 Theodore A. Roth <troth@openavr.org>
4743
4744 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4745 trad-frame.h.
4746 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4747 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4748 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4749 (AVR_PROLOGUE_*): Enumerate prologue types.
4750 (struct frame_extra_info): Remove.
4751 (struct avr_unwind_cache): Define.
4752 (avr_write_sp): Delete function.
4753 (avr_read_fp): Ditto.
4754 (avr_init_extra_frame_info): Ditto.
4755 (avr_pop_frame): Ditto.
4756 (avr_frame_saved_pc): Ditto.
4757 (avr_saved_pc_after_call): Ditto.
4758 (avr_push_return_address): Ditto.
4759 (avr_frame_chain): Ditto.
4760 (avr_store_struct_return): Ditto.
4761 (avr_push_arguments): Ditto.
4762 (avr_scan_prologue): Update comments. Changed to set up the info for
4763 cache unwinding. Now returns end of prologue PC.
4764 (avr_skip_prologue): Better handling of functions lacking a prologue
4765 by using avr_scan_prologue.
4766 (avr_scan_arg_moves): New function.
4767 (avr_saved_regs_unwinder): Ditto.
4768 (avr_frame_unwind_cache): Ditto.
4769 (avr_unwind_pc): Ditto.
4770 (avr_frame_this_id): Ditto.
4771 (avr_frame_prev_register): Ditto.
4772 (avr_frame_p): Ditto.
4773 (avr_frame_base_address ): Ditto.
4774 (avr_unwind_dummy_id): Ditto.
4775 (avr_push_dummy_code): Ditto.
4776 (push_stack_item): Ditto.
4777 (pop_stack_item): Ditto.
4778 (avr_push_dummy_call): Ditto.
4779 (struct stack_item): Define.
4780 (avr_frame_unwind): Declare structure.
4781 (avr_frame_base): Ditto.
4782 (avr_gdbarch_init): Remove calls to
4783 set_gdbarch_deprecated_init_frame_pc,
4784 set_gdbarch_deprecated_target_read_fp,
4785 set_gdbarch_deprecated_dummy_write_sp,
4786 set_gdbarch_deprecated_fp_regnum,
4787 set_gdbarch_deprecated_push_arguments,
4788 set_gdbarch_deprecated_push_return_address,
4789 set_gdbarch_deprecated_pop_frame,
4790 set_gdbarch_deprecated_store_struct_return,
4791 set_gdbarch_deprecated_frame_init_saved_regs,
4792 set_gdbarch_deprecated_init_extra_frame_info,
4793 set_gdbarch_deprecated_frame_chain,
4794 set_gdbarch_deprecated_frame_saved_pc,
4795 set_gdbarch_deprecated_saved_pc_after_call.
4796 Add calls to set_gdbarch_push_dummy_call,
4797 set_gdbarch_push_dummy_code,
4798 frame_unwind_append_predicate,
4799 frame_base_set_default,
4800 set_gdbarch_unwind_dummy_id,
4801 set_gdbarch_unwind_pc.
4802 Wrap a long line.
4803
7be04a68
MS
48042003-06-18 Corinna Vinschen <vinschen@redhat.com>
4805
4806 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4807 registers for H8/300S.
4808 (h8300_print_registers_info): Ditto.
8ffd9b1b 4809 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4810
ae087d01
DJ
48112003-06-18 Daniel Jacobowitz <drow@mvista.com>
4812
4813 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4814 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4815 (lin_lwp_wait): Likewise. Update comments.
4816 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4817 (pull_pid_from_list, linux_record_stopped_pid): New.
4818
07d8f827
SC
48192003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4820
4821 * ada-lang.c (scan_discrim_bound): Name first argument.
4822 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4823 declared by ALL_BLOCK_SYMBOLS.
4824
7cb47b14
SC
48252003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4826
4827 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4828 ("regcache.h"): Include it.
4829 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4830
6ad8ae5c
DJ
48312003-06-17 Daniel Jacobowitz <drow@mvista.com>
4832
4833 * NEWS: Mention gdbserver detach change and "disconnect" command.
4834 * infcmd.c (disconnect_command): New function.
4835 (_initialize_infcmd): Add ``disconnect'' command.
4836 * remote.c (remote_async_detach): Delete.
4837 (remote_detach): Merge remote_async_detach.
4838 (remote_disconnect): New.
4839 (init_remote_ops): Set to_disconnect.
4840 (init_remote_cisco_ops): Likewise.
4841 (init_remote_async_ops): Likewise. Use remote_detach.
4842 * target.c (cleanup_target): Default to_disconnect.
4843 (update_current_target): Inherit to_disconnect.
4844 (target_disconnect, debug_to_disconnect): New functions.
4845 (setup_target_debug): Set to_disconnect.
4846 * target.h (struct target_ops): Add to_disconnect.
4847 (target_disconnect): Add prototype.
4848
687595f9
DJ
48492003-06-17 Daniel Jacobowitz <drow@mvista.com>
4850
4851 * breakpoint.c (insert_catchpoint): New function.
4852 (insert_breakpoints): Use catch_exceptions to call
4853 insert_catchpoint. Disable catchpoints if they fail to insert.
4854
29239a8f
DJ
48552003-06-17 Daniel Jacobowitz <drow@mvista.com>
4856
4857 * symfile.c (reread_symbols): Clear sym_private.
4858
2cdf3c63
AC
48592003-06-17 Andrew Cagney <cagney@redhat.com>
4860
4861 * trad-frame.h (struct frame_info): Add opaque declaration.
4862 * remote-fileio.h (struct cmd_list_element): Add opaque
4863 declaration.
4864 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4865 comments.
4866
cf0e1e0d
DJ
48672003-06-17 Daniel Jacobowitz <drow@mvista.com>
4868
4869 * remote.c (remote_prepare_to_store): Replace call to
4870 deprecated_read_register_bytes with multiple regcache_raw_read
4871 calls.
4872
192cdb19
KW
48732003-06-17 Kris Warkentin <kewarken@qnx.com>
4874
4875 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4876 (nto_find_and_open_solib): Likewise.
4877 (nto_init_solib_absolute_prefix): Likewise.
4878 (_initialize_nto_tdep): Fix indentation.
4879
89929b45
KW
48802003-06-17 Kris Warkentin <kewarken@qnx.com>
4881
4882 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4883
46019f27
KW
48842003-06-17 Kris Warkentin <kewarken@qnx.com>
4885
4886 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4887
1a38736e
JB
48882003-06-17 Jim Blandy <jimb@redhat.com>
4889
4890 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4891
3605c34a
TR
48922003-06-16 Theodore A. Roth <troth@openavr.org>
4893
4894 * avr-tdep.c (avr_extract_return_value): New function.
4895 (avr_gdbarch_init): Set extract_return_value method.
4896
870b3035
AC
48972003-06-16 Andrew Cagney <cagney@redhat.com>
4898
4899 * frame.h (deprecated_get_next_frame_hack): Declare.
4900 * frame.c (legacy_saved_regs_prev_register): Only require
4901 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4902 there are always saved regs.
4903 (deprecated_generic_get_saved_register): Do not require
4904 DEPRECATED_FRAME_INIT_SAVED_REGS.
4905 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4906 use frame ID unwind instead.
4907 (deprecated_get_next_frame_hack): New function.
4908
63d47a7d
CV
49092003-06-16 Corinna Vinschen <vinschen@redhat.com>
4910
4911 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4912 (h8300_push_dummy_call): ...this function. Some minor optimization.
4913 (h8300_push_return_address): Remove.
4914 (h8300_gdbarch_init): Remove calls to
4915 set_gdbarch_deprecated_dummy_write_sp,
4916 set_gdbarch_deprecated_push_arguments and
4917 set_gdbarch_deprecated_push_return_address.
4918 Add call to set_gdbarch_push_dummy_call.
4919
4bb1dc5e
CV
49202003-06-16 Corinna Vinschen <vinschen@redhat.com>
4921
4922 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4923 (E_PSEUDO_EXR_REGNUM): Ditto.
4924 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4925 registers into safe registers.
4bb1dc5e
CV
4926 (h8300_skip_prologue): Check for stm instruction to push registers
4927 used for register variables onto stack.
4928 (gdb_print_insn_h8300): Remove.
4929 (h8300_examine_prologue): Add a comment.
4930 (h8300_register_name): Take pseudo registers into account.
4931 (h8300s_register_name): Ditto.
4932 (h8300sx_register_name): Ditto.
4933 (h8300_print_register): Ditto.
4934 (h8300_print_registers_info): Define "nice" printing order.
4935 (h8300_saved_pc_after_call): Take pseudo registers into account.
4936 (h8300_register_type): Ditto. Return type used for remote connection
4937 when requesting real CCR or EXR register, return actual type when
4938 requesting pseudo CCR or EXR.
4939 (h8300_pseudo_register_read): New function.
4940 (h8300_pseudo_register_write): Ditto.
4941 (h8300_dbg_reg_to_regnum): Ditto.
4942 (h8300s_dbg_reg_to_regnum): Ditto.
4943 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4944 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4945 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4946 set_gdbarch_print_insn architecture dependent.
4947 Call set_gdbarch_pseudo_register_read and
4948 set_gdbarch_pseudo_register_write.
4949 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4950
a59fe496
AC
49512003-06-16 Andrew Cagney <cagney@redhat.com>
4952
4953 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4954 * gdbarch.h, gdbarch.c: Re-generate.
4955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4956 * s390-tdep.c (s390_gdbarch_init): Update.
4957 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4958 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4959 * mips-tdep.c (mips_gdbarch_init): Update.
4960 * mcore-tdep.c (mcore_gdbarch_init): Update.
4961 * cris-tdep.c (cris_gdbarch_init): Update.
4962 * infcall.c (call_function_by_hand): Update.
4963 * ia64-tdep.c (ia64_push_arguments): Update comment.
4964 * frame.c (legacy_get_prev_frame): Do not assume
4965 SAVE_DUMMY_FRAME_TOS_P.
4966 * dummy-frame.c (find_dummy_frame): Update comment.
4967
6f4e5a41
AC
49682003-06-16 Andrew Cagney <cagney@redhat.com>
4969
4970 * regcache.c (do_cooked_read): Do not use register_valid_p.
4971
72fab697
TR
49722003-06-15 Theodore A. Roth <troth@openavr.org>
4973
4974 * avr-tdep.c (avr_register_type): Remove a blank line.
4975 (avr_scan_prologue): Correct some comments.
4976
e3d8b004
TR
49772003-06-15 Theodore A. Roth <troth@openavr.org>
4978
4979 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4980 prologue types.
8ffd9b1b 4981 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4982 option.
4983 Add code to scan -mcall-prologues for mega devices.
4984
866b76ea
TR
49852003-06-15 Theodore A. Roth <troth@openavr.org>
4986
4987 * avr-tdep.c (avr_register_byte): Delete function.
4988 (avr_register_raw_size): Delete function.
4989 (avr_register_virtual_size): Delete function.
4990 (avr_register_virtual_type): Delete function.
4991 (avr_register_type): New function.
4992 (avr_address_to_pointer): Remove unused code.
4993 (avr_read_fp): Need to read FP as two separate bytes due to change to
4994 avr_register_type() usage.
4995 (avr_gdbarch_init): Don't set deprecated_register_size.
4996 Don't set deprecated_register_bytes.
4997 Don't set deprecated_register_byte.
4998 Don't set deprecated_register_raw_size.
4999 Don't set deprecated_max_register_raw_size.
5000 Don't set deprecated_register_virtual_size.
5001 Don't set deprecated_max_register_virtual_size.
5002 Don't set deprecated_register_virtual_type.
5003 Set register_type method.
5004
3993f6b1
DJ
50052003-06-15 Daniel Jacobowitz <drow@mvista.com>
5006
5007 * Makefile.in (linux-nat.o): Add rule.
5008 * linux-nat.c: New file.
5009 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5010 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5011 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5012 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5013 * config/arm/linux.mh (NATDEPFILES): Likewise.
5014 * config/i386/linux.mh (NATDEPFILES): Likewise.
5015 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5016 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5017 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5018 * config/mips/linux.mh (NATDEPFILES): Likewise.
5019 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5020 * config/s390/s390.mh (NATDEPFILES): Likewise.
5021 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5022
786a90bb
MK
50232003-06-15 Mark Kettenis <kettenis@gnu.org>
5024
5025 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5026 replace out-of-date comment.
5027
3bd3f01e
AC
50282003-06-15 Andrew Cagney <cagney@redhat.com>
5029
5030 * rdi-share/host.h (Fail): Change to a varargs function.
5031 * remote-rdi.c (Fail): Update.
8ffd9b1b 5032
de5b9bb9
MK
50332003-06-15 Mark Kettenis <kettenis@gnu.org>
5034
5035 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5036 (i386_convert_register_p, i386_register_to_value,
5037 i386_register_from_value): Handle types longer than 8 bytes.
5038
d532c08f
MK
50392003-06-15 Mark Kettenis <kettenis@gnu.org>
5040
5041 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5042 Move floating-point code to new function in i387-tdep.c.
5043 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5044 New functions containing code moved here from i386-tdep.c.
5045 * i387-tdep.h: Add opaque declaration for `struct type'.
5046 (i387_register_to_value, i387_value_to_register): New prototypes.
5047 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5048 (x86_64_init_abi): Set convert_register_p, register_to_value and
5049 value_to_register here.
8ffd9b1b 5050
42c466d7
AC
50512003-06-14 Andrew Cagney <cagney@redhat.com>
5052
5053 * mips-tdep.c (mips_register_to_value): Make static.
5054 (mips_value_to_register): Make static.
5055 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5056 * ia64-tdep.c (ia64_register_raw_size): Make static.
5057 (ia64_register_virtual_size): Make static.
5058 (ia64_register_byte): Make static.
5059 * i387-tdep.c: Include "i387-tdep.h".
5060 (print_387_control_word): Delete function.
5061 (print_387_status_word): Delete function.
5062 (print_387_status_bits): Delete function.
5063 (print_387_control_bits): Delete function.
5064 * Makefile.in (i387-tdep.o): Update dependencies.
5065 * rdi-share/host.h (Fail): Declare.
5066 * remote-rdi.c (Fail): Update to match declaration.
5067
2a9cda49
AC
50682003-06-14 Andrew Cagney <cagney@redhat.com>
5069
5070 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5071 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5072 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5073 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5074 * README: Delete reference to remote-array.
5075 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5076 (remote-array.o): Delete target.
5077 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5078 * remote-array.c: Delete file.
5079
ff2e87ac
AC
50802003-06-14 Andrew Cagney <cagney@redhat.com>
5081 Mark Kettenis <kettenis@gnu.org>
5082
5083 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5084 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5085 parameter with "frame".
5086 * gdbarch.h, gdbarch.c: Re-generate.
5087 * frame.h (put_frame_register): Declare.
5088 * frame.c (put_frame_register): New function.
5089 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5090 (legacy_register_to_value): Rewrite, use "frame" to get the
5091 register value.
5092 (legacy_value_to_register): Rewrite, use "frame" to find the
5093 register's location before storing.
5094 * arch-utils.h (legacy_convert_register_p): Update.
5095 (legacy_register_to_value, legacy_value_to_register): Update.
5096 * findvar.c (value_from_register): Rewrite, eliminate use of
5097 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5098 "frame" to REGISTER_TO_VALUE.
5099 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5100 lval_reg_frame_relative + lval_register branch of the switch. Do
5101 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5102 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5103 I386_EDI_REGNUM): New defines.
5104 (i386_next_regnum, i386_convert_register_p,
5105 i386_register_to_value, i386_value_to_register): New functions.
5106 (i386_register_convertible, i386_register_convert_to_virtual,
5107 i386_convert_to_raw): Remove functions.
5108 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5109 value_to_register instead of register_convertible,
5110 register_convert_to_virtual and register_convert_to_raw.
5111 * mips-tdep.c (mips_convert_register_p): New function.
5112 (mips_value_to_register): Replace mips_register_convert_from_type.
5113 (mips_register_to_value): Replace mips_register_convert_to_type.
5114 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5115 register_to_value.
5116 * alpha-tdep.c (alpha_convert_register_p): Update.
5117 (alpha_value_to_register): Update, store the register.
5118 (alpha_register_to_value): Update, fetch the register.
5119
98be1e77
TR
51202003-06-14 Theodore A. Roth <troth@openavr.org>
5121
5122 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5123 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5124 Don't set deprecated_call_dummy_words.
5125 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5126 Don't set remote_translate_xfer_address.
5127 (avr_io_reg_read_command): Remove commented out debug printf.
5128 Wrap a long line.
5129
57bc6122
TR
51302003-06-14 Theodore A. Roth <troth@openavr.org>
5131
5132 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5133 causes gdb to seg fault.
5134
eb01fc62
DJ
51352003-06-14 Daniel Jacobowitz <drow@mvista.com>
5136
5137 * sparc-nat.c (fetch_inferior_registers): Correct
5138 a reference to "registers".
5139
3b3e6bee
DJ
51402003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5141
5142 * Makefile.in (exc_request_U_h): Define
5143 (exc_request_S_h): Likewise.
5144 (msg_reply_S_h): Likewise.
5145 (msg_U_h): Likewise.
5146 (notify_S_h): Likewise.
5147 (process_reply_S_h): Likewise.
5148 (gnu-nat.o): Depend on gdb_obstack_h
5149 * gnu-nat.c: Include "gdb_obstack.h".
5150
b8de8283
AC
51512003-06-13 Andrew Cagney <cagney@redhat.com>
5152
5153 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5154 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5155
f3be58bc
AC
51562003-06-13 Andrew Cagney <cagney@redhat.com>
5157
5158 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5159 when deprecated REGISTER macros can be deleted.
5160 * gdbarch.h, gdbarch.c: Re-generate.
5161
4c0122c8
JB
51622003-06-13 Jim Blandy <jimb@redhat.com>
5163
5164 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5165 Linux entry point symbols for _dl_debug_state, too.
5166
3e210248
AC
51672003-06-13 Andrew Cagney <cagney@redhat.com>
5168
5169 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5170 available, do not use the FP register, and always save the TOS.
5171 * dummy-frame.c (dummy_frame_this_id): Do not assert
5172 SAVE_DUMMY_FRAME_TOS.
5173 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5174 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5175 (i386_push_dummy_call): Add 8 to the returned SP.
5176 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5177 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5178 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5179 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5180 (x86_64_push_dummy_call): Return "sp + 16".
5181 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5182 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5183 save_dummy_frame_tos.
5184
0b65af49
JB
51852003-06-13 Jim Blandy <jimb@redhat.com>
5186
5187 * frv-tdep.c (frv_use_struct_convention): Delete static
5188 declaration for function deleted in my change of 2003-06-12.
5189
4ea2465e
TR
51902003-06-13 Theodore A. Roth <troth@openavr.org>
5191
5192 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5193 (avr_pointer_to_address): Shift code addrs left 1 bit.
5194 (avr_convert_from_func_ptr_addr): Delete function since operation is
5195 better handled by avr_address_to_pointer and avr_pointer_to_address.
5196 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5197
1581182a
MK
51982003-06-13 Mark Kettenis <kettenis@gnu.org>
5199
5200 From Kelley Cook <kelleycook@wideopenwest.com>:
5201 * configure.host: Accept i[34567]86 variants.
5202 * configure.tgt: Likewise.
5203 * nlm/configure.in: Likewise.
5204 * nlm/configure: Regenerated.
5205
7aa1783e
RE
52062003-06-13 Richard Earnshaw <rearnsha@arm.com>
5207
5208 * arm-tdep.c (solib-svr4.h): Dont' include it.
5209 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5210 * arm-linux-tdep.c: ... here. Make static.
5211 (arm_linux_init_abi): Register it.
5212 (solib-svr4.h): Include it.
5213 * Makefile.in: Update dependencies.
5214 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5215 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5216
0261a0d0
CV
52172003-06-13 Corinna Vinschen <vinschen@redhat.com>
5218
5219 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5220 indicate registers used for return values.
5221 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5222 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5223 members.
5224 (h8300_init_extra_frame_info): Ditto.
5225 (h8300_frame_locals_address): Removed.
5226 (h8300_frame_args_address): Removed.
5227 (h8300_extract_return_value): Use new regcache structure. Only care
5228 for 16 bit CPUs.
5229 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5230 (h8300_store_return_value): Use new regcache structure. Only care
5231 for 16 bit CPUs.
5232 (h8300h_store_return_value): Same function for 32 bit CPUs.
5233 (h8300_store_struct_return): Removed.
5234 (h8300_extract_struct_value_address): Use new regcache structure.
5235 (h8300h_extract_struct_value_address): Removed.
5236 (h8300_push_dummy_code): New function.
5237 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5238 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5239 set_gdbarch_store_return_value architecture dependent.
5240 Call set_gdbarch_push_dummy_code and
5241 set_gdbarch_extract_struct_value_address.
5242 Remove calls to set_gdbarch_frame_args_address,
5243 set_gdbarch_frame_locals_address,
5244 set_gdbarch_deprecated_store_struct_return,
5245 set_gdbarch_deprecated_extract_return_value,
5246 set_gdbarch_deprecated_extract_struct_value_address,
5247 set_gdbarch_deprecated_call_dummy_words and
5248 set_gdbarch_deprecated_sizeof_call_dummy_words.
5249
055c394a
CV
52502003-06-13 Corinna Vinschen <vinschen@redhat.com>
5251
5252 * h8300-tdep.c (h8300_register_byte): Remove.
5253 (h8300h_register_byte): Remove.
5254 (h8300_register_virtual_type): Remove. Substitute by...
5255 (h8300_register_type): New function.
5256 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5257 (h8300h_extract_struct_value_address): Ditto.
5258 (h8300_gdbarch_init): Drop calls to
5259 set_gdbarch_deprecated_register_byte and
5260 set_gdbarch_deprecated_register_virtual_type.
5261 Add call to set_gdbarch_register_type.
5262
9c04cab7
AC
52632003-06-13 Andrew Cagney <cagney@redhat.com>
5264
5265 * gdbarch.sh: Update comments on registers.
5266 (deprecated_register_byte): Rename register_byte.
5267 (deprecated_register_raw_size): Rename register_raw_size.
5268 (deprecated_register_virtual_size): Rename register_virtual_size.
5269 (deprecated_register_virtual_type): Rename register_virtual_type.
5270 * gdbarch.h, gdbarch.c: Re-generate.
5271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5272 * vax-tdep.c (vax_gdbarch_init): Update.
5273 * v850-tdep.c (v850_gdbarch_init): Update.
5274 * sparc-tdep.c (sparc_gdbarch_init): Update.
5275 * sh-tdep.c (sh_gdbarch_init): Update.
5276 * s390-tdep.c (s390_gdbarch_init): Update.
5277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5278 * ns32k-tdep.c: Update.
5279 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5280 * mips-tdep.c (mips_gdbarch_init): Update.
5281 * mcore-tdep.c (mcore_gdbarch_init): Update.
5282 * m68k-tdep.c (m68k_gdbarch_init): Update.
5283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5284 * ia64-tdep.c (ia64_gdbarch_init): Update.
5285 * hppa-tdep.c (hppa_gdbarch_init): Update.
5286 * h8300-tdep.c (h8300_gdbarch_init): Update.
5287 * frv-tdep.c (frv_gdbarch_init): Update.
5288 * cris-tdep.c (cris_gdbarch_init): Update.
5289 * avr-tdep.c (avr_gdbarch_init): Update.
5290 * alpha-tdep.c (alpha_gdbarch_init): Update.
5291 * arm-tdep.c (arm_gdbarch_init): Update.
5292
b060cbea
AC
52932003-06-13 Andrew Cagney <cagney@redhat.com>
5294
5295 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5296 mips_o32_use_struct_convention with always_use_struct_convention.
5297
0fc9922a
DC
52982003-06-12 David Carlton <carlton@kealia.com>
5299
5300 * cp-namespace.c (cp_set_block_scope): Comment out
5301 processing_has_namespace_info branch.
5302
1fd35568
JB
53032003-06-12 Jim Blandy <jimb@redhat.com>
5304
f470a70a
JB
5305 Recognize and skip 64-bit PowerPC Linux linkage functions.
5306 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5307 insn_pattern, insns_match_pattern, d_field, ds_field): New
5308 functions, macros, and types for working with PPC instructions.
5309 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5310 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5311 ppc64_skip_trampoline_code): New functions, variables, and macros
5312 for recognizing and skipping linkage functions.
5313 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5314 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5315
49ff75ad
JB
5316 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5317 register offsets for both the 32- and 64-bit interfaces.
5318
bd918c83
JB
5319 Actually finish the job started by my change of 2003-05-29.
5320 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5321 other #definition of this.
5322 (ppc_linux_skip_trampoline_code): Remove declaration.
5323 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5324 static.
5325 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5326 method for GDBARCH.
5327
5328 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5329 'long' on ppc64-*-linux*.
5330
f8c59253
JB
5331 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5332 isn't #defined, assume the register doesn't exist: act as if
5333 tdep->ppc_mq_regnum were -1.
5334
8fbb30b1
JB
5335 * configure.host, configure.tgt: Add entries for
5336 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5337 powerpc/linux.mt.
5338 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5339 New files.
5340
1fd35568
JB
5341 * arch-utils.c (always_use_struct_convention): New function.
5342 * arch-utils.h (always_use_struct_convention): New prototype.
5343 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5344 (alpha_gdbarch_init): Register always_use_struct_convention,
5345 instead of alpha_use_struct_convention.
5346 * cris-tdep.c (cris_use_struct_convention): Delete.
5347 (cris_gdbarch_init): Register always_use_struct_convention,
5348 instead of cris_use_struct_convention.
5349 * frv-tdep.c (frv_use_struct_convention): Delete.
5350 (frv_gdbarch_init): Register always_use_struct_convention,
5351 instead of frv_use_struct_convention.
5352 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5353 (h8300_gdbarch_init): Register always_use_struct_convention,
5354 instead of h8300_use_struct_convention.
e3305dd9 5355 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5356 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5357 instead of mips_o32_use_struct_convention.
5358
e14e6e9c
AC
53592003-06-12 Andrew Cagney <cagney@redhat.com>
5360
5361 * wince.c: Include "mips-tdep.h".
5362 * mips-tdep.h (mips_next_pc): Declare.
5363 * mcore-tdep.c: Make more local functions static.
5364 * Makefile.in (wince.o): Update dependencies.
5365
2335f48e
DC
53662003-06-12 David Carlton <carlton@kealia.com>
5367
5368 * symtab.c (lookup_symbol_aux_minsyms): Replace
5369 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5370 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5371 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5372 SYMBOL_NATURAL_NAME.
5373
f70a7d61
AS
53742003-06-12 Andreas Schwab <schwab@suse.de>
5375
5376 * Makefile.in (tuiDisassem.o): Update dependencies.
5377
b6429628
DC
53782003-06-12 David Carlton <carlton@bactrian.org>
5379
5380 * symtab.h: Delete declaration of make_symbol_overload_list.
5381 Add declaration of lookup_partial_symbol.
5382 * symtab.c (remove_params): Move to cp-support.c.
5383 (overload_list_add_symbol, make_symbol_overload_list)
5384 (sym_return_val_size, sym_return_val_index): Ditto.
5385 (lookup_partial_symbol): Make extern.
5386 * cp-support.h: Add declaration of make_symbol_overload_list.
5387 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5388 symtab.h, and block.h.
5389 (remove_params): Move here from symtab.c.
5390 (overload_list_add_symbol, make_symbol_overload_list)
5391 (sym_return_val_size, sym_return_val_index): Ditto.
5392 * valops.c: Include cp-support.h.
5393 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5394 frame_h, and block_h.
5395 (valops.o): Depend on cp_support_h.
5396
084edea5
CV
53972003-06-12 Corinna Vinschen <vinschen@redhat.com>
5398
5399 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5400 substitute by NUM_REGS throughout.
5401 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5402 (h8300s_register_name): New function for H8S registers.
5403 (h8300sx_register_name): Ditto for H8SX registers.
5404 (h8300_print_register): Revise register printing, avoid depending
5405 on 32 bit long.
0261a0d0 5406 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5407 (h8300h_register_byte): New function for any other architecture.
5408 (h8300_register_raw_size): Remove.
5409 (h8300_register_virtual_type): Revise to return actually useful
5410 type.
5411 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5412 (h8300h_extract_struct_value_address): New function for any other
5413 architecture.
5414 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5415 set_gdbarch_register_name, set_gdbarch_register_byte,
5416 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5417 Remove calls to set_gdbarch_deprecated_register_size,
5418 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5419 set_gdbarch_deprecated_max_register_raw_size,
5420 set_gdbarch_register_virtual_size and
5421 set_gdbarch_deprecated_max_register_virtual_size entirely.
5422 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5423 set_gdbarch_long_double_bit.
5424
06194148
JJ
54252003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5426
8ffd9b1b
AJ
5427 * doublest.c (convert_doublest_to_floatformat): When dealing
5428 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5429 processing a full 32 bits of mantissa.
5430
de4f826b
DC
54312003-06-11 David Carlton <carlton@bactrian.org>
5432
5433 * dictionary.h: New.
5434 * dictionary.c: New.
5435 * block.h: Add opaque declaration for struct dictionary.
5436 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5437 'sym' members.
5438 (BLOCK_DICT): New macro.
5439 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5440 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5441 BLOCK_SHOULD_SORT.
5442 (ALL_BLOCK_SYMBOLS): Update definition.
5443 * Makefile.in (SFILES): Add dictionary.c.
5444 (dictionary_h): New.
5445 (COMMON_OBS): Add dictionary.o.
5446 (dictionary.o): New.
5447 (ada-lang.o): Depend on dictionary_h.
5448 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5449 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5450 (mi-cmd-stack.o): Ditto.
5451 (gdbtk-cmds.o): Update dependencies.
5452 (gdbtk-stack.o): Ditto.
5453 * ada-lang.c: Include dictionary.h.
5454 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5455 (fill_in_ada_prototype, debug_print_block): Ditto.
5456 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5457 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5458 'is_sorted'.
5459 * mdebugread.c: Include dictionary.h.
5460 (struct parse_stack): Delete 'maxsyms' member.
5461 (parse_symbol): Update calls to new_block. Delete calls to
5462 shrink_block. Use dictionary methods.
5463 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5464 Update calls to new_symtab. Don't maintain maxsyms data.
5465 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5466 (add_symbol): Just call dict_add_symbol.
5467 (new_symtab): Delete 'maxsyms' argument.
5468 (new_symtab): Update calls to new_block.
5469 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5470 (shrink_block): Delete function.
5471 (fixup_sigtramp): Update call to new_block. Add symbol via
5472 dict_add_symbol.
5473 * jv-lang.c: Include dictionary.h.
5474 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5475 appropriately. Set class_symtab->free_func. Make sure the
5476 blockvector is big enough to hold two blocks.
5477 (add_class_symtab_symbol): Use dictionary methods.
5478 (free_class_block): New function.
5479 (type_from_class): Replace explicit iteration by
5480 ALL_BLOCK_SYMBOLS.
5481 * symtab.h (struct symtab): Replace 'free_ptr' method by
5482 'free_func'.
5483 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5484 sort_symtab_syms.
5485 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5486 sort_symtab_syms.
5487 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5488 Include dictionary.h.
5489 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5490 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5491 sort_symtab_syms.
5492 * objfiles.c: Include dictionary.h.
5493 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5494 * buildsym.c: Include dictionary.h.
5495 (finish_block): Use dictionary methods.
5496 (end_symtab): Set free_func to NULL, not free_ptr.
5497 * tracepoint.c: Include dictionary.h.
5498 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5499 (scope_info): Ditto.
5500 * stack.c: Include dictionary.h.
5501 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5502 (print_block_frame_labels, print_frame_arg_vars)
5503 (print_frame_args): Ditto.
5504 * symmisc.c (free_symtab_block): Use dictionary methods.
5505 (dump_symtab): Ditto.
5506 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5507 Include dictionary.h.
5508 * symfile.h: Delete declarations of sort_block_syms,
5509 sort_symtab_syms.
5510 * symfile.c (sort_block_syms): Delete.
5511 (sort_symtab_syms): Delete.
5512 * symtab.c: Include dictionary.h.
5513 (lookup_block_symbol): Use dictionary iterators.
5514 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5515 (search_symbols, make_symbol_completion_list): Ditto.
5516 (make_symbol_overload_list): Ditto.
5517 * valops.c (value_of_local): Use dict_empty.
5518 Include dictionary.h.
5519
a31f978c
JB
55202003-06-11 J. Brobecker <brobecker@gnat.com>
5521
5522 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5523
526e70c0
DC
55242003-06-11 David Carlton <carlton@bactrian.org>
5525
5526 * block.h (BLOCK_SHOULD_SORT): Delete.
5527 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5528 blocks.
5529 * ada-lang.c (ada_add_block_symbols): Ditto.
5530 * symfile.c (sort_block_syms): Delete.
5531 (sort_symtab_syms): Ditto.
5532 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5533 declarations.
5534 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5535 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5536 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5537 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5538 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5539 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5540 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5541
33c08150
JJ
55422003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5543
8ffd9b1b 5544 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5545 bits to 128.
5546
781a750d
AC
55472003-06-11 Andrew Cagney <cagney@redhat.com>
5548
5549 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5550 REGISTER_CONVERTIBLE.
5551 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5552 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5553 * gdbarch.h, gdbarch.c: Re-generate.
5554 * arch-utils.h (deprecated_register_convertible_not): Rename
5555 generic_register_convertible_not.
5556 * arch-utils.c (deprecated_register_convertible_not): Rename
5557 generic_register_convertible.
5558 (legacy_convert_register_p, legacy_register_to_value): Update.
5559 * sh-tdep.c (sh64_push_arguments): Update.
5560 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5561 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5562 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5563 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5564 * arch-utils.c (legacy_value_to_register): Update.
5565 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5566 (rs6000_register_convert_to_raw): Make parameter "from" const.
5567 * mips-tdep.c (mips_gdbarch_init): Update.
5568 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5569 * infcmd.c (default_print_registers_info): Update.
5570 * ia64-tdep.c (ia64_gdbarch_init): Update.
5571 (ia64_register_convert_to_raw): Make parameter "from" const.
5572 * i386-tdep.c (i386_gdbarch_init): Update.
5573 (i386_register_convert_to_raw): Update.
5574
cd90e54f
AC
55752003-06-11 Andrew Cagney <cagney@redhat.com>
5576
5577 * remote-fileio.c: Include "remote-fileio.h".
5578 * Makefile.in (remote-fileio.o): Update dependencies.
5579 (remote_fileio_h): Fix typo.
5580
a78f21af
AC
55812003-06-11 Andrew Cagney <cagney@redhat.com>
5582
5583 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5584 (xstormy16_save_dummy_frame_tos): Make static.
5585 (_initialize_xstormy16_tdep): Add declaration.
5586 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5587 * v850-tdep.c: Make local functions static.
5588 (_initialize_v850_tdep): Add declaration.
5589 * sparc-tdep.c: Make local functions static.
5590 (_initialize_sparc_tdep): Add declaration.
5591 * sh-tdep.c: Make local functions static.
5592 (_initialize_sh_tdep): Add declaration.
5593 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5594 * s390-tdep.c: Make local functions static.
5595 (_initialize_s390_tdep): Add declaration.
5596 * dbxread.c (find_stab_function_addr): Make static.
5597 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5598 * ocd.c (_initialize_remote_ocd): Add declaration.
5599 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5600 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5601 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5602 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5603 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5604 * remote-array.c (_initialize_array): Add declaration.
5605 (_initialize_remote_monitors): Add declaration.
5606 * remote-mips.c: Make local functions static.
5607 (_initialize_remote_mips): Add declaration.
5608 * mcore-tdep.c: Make all local functions static.
5609 (_initialize_mcore_tdep): Add declaration.
5610 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5611 * abug-rom.c (_initialize_abug_rom): Add declaration.
5612 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5613 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5614 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5615 * remote-est.c (_initialize_est): Add declaration.
5616 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5617 (m68hc11_call_dummy_address): Make static.
5618 * ia64-tdep.c: Make local functions static.
5619 (_initialize_ia64_tdep): Add declaration.
5620 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5621 * monitor.c (monitor_wait_filter): Make static.
5622 (_initialize_remote_monitors): Add declaration.
5623 * remote-hms.c (_initialize_remote_hms): Add declaration.
5624 * remote-e7000.c (fetch_regs_from_dump): Make static.
5625 (expect_n): Make static.
5626 (_initialize_remote_e7000): Add declaration.
5627 * ser-e7kpc.c: Always include "defs.h".
5628 (_initialize_ser_e7000pc): Add declaration.
5629 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5630 * cris-tdep.c: Make all but one function static.
5631 (_initialize_cris_tdep): Add declaration.
5632 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5633 * solib.c (update_solib_list): Make static.
5634 (_initialize_solib): Add declaration.
5635 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5636 (_initialize_avr_tdep): Add declaration.
5637 * remote-rdi.c (voiddummy): Make static.
5638 (_initialize_remote_rdi): Add declaration.
5639 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5640 * remote-rdp.c (send_rdp): Make static.
5641 (_initialize_remote_rdp): Add declaration.
5642 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5643
cbcdb1f5
CV
56442003-06-11 Corinna Vinschen <vinschen@redhat.com>
5645
5646 * remote-fileio.c: Make ari happy.
5647
a191ea8d
JB
56482003-06-10 J. Brobecker <brobecker@gnat.com>
5649
5650 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5651 fetching the trailing bytes of the buffer we are about to write.
5652
0ef75e11
AC
56532003-06-10 Andrew Cagney <cagney@redhat.com>
5654
5655 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5656 * Makefile.in (remote-fileio.o): Update dependencies.
5657 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5658 include <setjmp.h>, or <sys/types.h> conditional on USG.
5659 (remote_fio_jmp_buf): Delete global variable.
5660
449092f6 56612003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5662 Martin M. Hunt <hunt@redhat.com>
449092f6 5663
559fa028
AC
5664 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5665 (SFILES): Add remote-fileio.c.
5666 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5667 dependencies for building remote.o.
449092f6
CV
5668 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5669 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5670 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5671 static storage class.
5672 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5673 'F' packet.
5674 (_initialize_remote): Call initialize_remote_fileio().
5675 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5676 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5677 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5678 (captured_main): Initialize new ui_files.
5679 * ui-file.c: Add read and fgets input functions.
5680 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5681 (null_file_read): New function.
5682 (ui_file_read): New function.
5683 (set_ui_file_read): New function.
5684 (stdio_file_read): New function.
5685 * ui-file.h: New type ui_file_read_ftype.
5686 (set_ui_file_read): Declare.
5687 (ui_file_read): Declare.
5688
248de703
AC
56892003-06-09 Andrew Cagney <cagney@redhat.com>
5690
5691 * frame.h (deprecated_unwind_get_saved_register): Rename
5692 generic_unwind_get_saved_register, update comments.
5693 * mips-tdep.c (mips_get_saved_register): Update.
5694 * frame.c (deprecated_unwind_get_saved_register): Update.
5695
0ed8aa57
AC
56962003-06-09 Andrew Cagney <cagney@redhat.com>
5697
5698 * vax-tdep.c (vax_frame_locals_address): Delete function.
5699 (vax_gdbarch_init): Do not set frame_locals_address.
5700 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5701 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5702 * s390-tdep.c (s390_frame_args_address): Delete function.
5703 (s390_gdbarch_init): Do not set frame_args_address or
5704 frame_locals_address.
5705 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5706 (ns32k_gdbarch_init): Do not set frame_locals_address.
5707 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5708 (hppa_frame_locals_address): Delete function.
5709 (hppa_gdbarch_init): Do not set frame_args_address, or
5710 frame_locals_address.
5711 * arm-tdep.c (arm_frame_args_address): Delete.
5712 (arm_frame_locals_address): Delete.
5713 (arm_gdbarch_init): Do not set frame_args_address, or
5714 frame_locals_address.
5715
983a287a
AC
57162003-06-09 Andrew Cagney <cagney@redhat.com>
5717
5718 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5719 * gdbarch.h, gdbarch.c: Re-generate.
5720 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5721 * arch-utils.c (frame_num_args_unknown): Delete function.
5722 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5723 (frame_info): Use FRAME_NUM_ARGS_P.
5724 * arm-tdep.c (arm_frame_num_args): Delete function.
5725 (arm_gdbarch_init): Do not set frame_num_args.
5726 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5727 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5728 (hppa_gdbarch_init): Do not set frame_num_args.
5729 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5730 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5731 frame_num_args to default frame_num_args_unknown.
5732 * v850-tdep.c (v850_gdbarch_init): Ditto.
5733 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5734 * sh-tdep.c (sh_gdbarch_init): Ditto.
5735 * s390-tdep.c (s390_gdbarch_init): Ditto.
5736 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5737 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5738 * mips-tdep.c (mips_gdbarch_init): Ditto.
5739 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5740 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5742 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5743 * i386-tdep.c (i386_gdbarch_init): Ditto.
5744 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5745 * frv-tdep.c (frv_gdbarch_init): Ditto.
5746 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5747 * cris-tdep.c (cris_gdbarch_init): Ditto.
5748 * avr-tdep.c (avr_gdbarch_init): Ditto.
5749 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5750
8d3b0994
AC
57512003-06-09 Andrew Cagney <cagney@redhat.com>
5752
5753 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5754 (print_frame_args): Moved to "stack.c".
5755 * stack.c: Include "gdb_assert.h".
5756 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5757 (print_frame_args): Moved from "printcmd.c".
5758 * frame.h (print_frame_args): Delete declaration.
5759 * Makefile.in (stack.o): Update dependencies.
5760
25e3a86b
AC
57612003-06-08 Andrew Cagney <cagney@redhat.com>
5762
5763 * frame.c (get_prev_frame): Remove reference to
5764 frame_args_address_correct in comments.
5765 * frame-base.c (default_frame_args_address): Delete code
5766 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5767 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5768 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5769 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5770 (vax_frame_args_address_correct): Delete declaration.
5771
a9e5fdc2
AC
57722003-06-08 Andrew Cagney <cagney@redhat.com>
5773
5774 * gdbarch.sh (UNWIND_SP): Add.
5775 * gdbarch.h, gdbarch.c: Re-generate.
5776 * frame.c (frame_sp_unwind): New function.
5777 (get_frame_sp): New function.
5778 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5779 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5780 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5781 value.
5782 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5783 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5784
8983bd83
AC
57852003-06-08 Andrew Cagney <cagney@redhat.com>
5786
7fec2c59
AC
5787 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5788 REMOTE_BREAKPOINT.
5789 * remote.c: Update.
5790 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5791 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5792 * config/m68k/tm-sun3.h: Update.
5793 * config/m68k/tm-m68klynx.h: Update.
5794 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5795
8983bd83
AC
5796 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5797 trad_frame". Update comments.
5798 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5799 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5800 (trad_frame_register_value, trad_frame_prev_register): Update.
5801
b9362cc7
AC
58022003-06-08 Andrew Cagney <cagney@redhat.com>
5803
5804 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5805 from GCC's acinclude.m4.
5806 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5807 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5808 * main.c (error_init): Delete declaration.
5809 * defs.h (error_init): Declare.
5810 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5811 (rs6000_convert_from_func_ptr_addr): Make static.
5812 (_initialize_rs6000_tdep): Add declaration.
5813 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5814 (show_commands, set_verbose, show_history): Delete declaration.
5815 * top.h (set_verbose): Add declaration.
5816 (show_history, set_history, show_commands): Add declaration.
5817 (do_restore_instream_cleanup): Add declaration.
5818 * objc-lang.c (specialcmp): Make static.
5819 (print_object_command): Make static.
5820 (find_objc_msgsend): Make static.
5821 (find_objc_msgcall_submethod_helper): Make static.
5822 (find_objc_msgcall_submethod): Make static.
5823 (_initialize_objc_language): Add declaration.
5824 (find_implementation_from_class): Make static.
5825 (find_implementation): Make static.
5826 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5827 * objc-lang.h (lookup_struct_typedef): Add declaration.
5828 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5829 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5830 (do_restore_user_call_depth): Make static.
5831 (do_restore_instream_cleanup): Delete declaration.
5832 (dont_repeat): Delete declaration.
5833 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5834 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5835 * reggroups.c (_initialize_reggroup): Add declaration.
5836 * cp-support.c (_initialize_cp_support): Add declaration.
5837 * cp-abi.c (_initialize_cp_abi): Add declaration.
5838 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5839 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5840 (_initialize_gnu_v3_abi): Add declaration.
5841 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5842 (_initialize_gnu_v2_abi): Add declaration.
5843 * frame-base.c (_initialize_frame_base): Add declaration.
5844 * doublest.c (floatformat_from_length): Make static.
5845 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5846 * frame.c (create_sentinel_frame): Make static.
5847 (_initialize_frame): Add declaration.
5848 * top.c (do_catch_errors): Make static.
5849 (gdb_rl_operate_and_get_next_completion): Make static.
5850 * typeprint.c: Include "typeprint.h".
5851 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5852 (sentinel_frame_this_id): Make static.
5853 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5854 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5855 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5856 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5857 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5858 * maint.c (maintenance_print_architecture): Make static.
5859 * signals/signals.c (_initialize_signals): Add declaration.
5860 * std-regs.c (_initialize_frame_reg): Add declaration.
5861 * jv-exp.y (push_variable): ISO C definition.
5862 (push_qualified_expression_name): Ditto.
5863 * memattr.c (_initialize_mem): Add declaration.
5864 * remote.c (remote_check_watch_resources): Make static.
5865 (remote_stopped_by_watchpoint): Make static.
5866 (remote_stopped_data_address): Make static.
5867 * d10v-tdep.c (nr_dmap_regs): Make static.
5868 (a0_regnum): Make static.
5869 (d10v_frame_unwind_cache): Make static.
5870 (d10v_frame_p): Make static.
5871 * osabi.c (show_osabi): Make static.
5872 (_initialize_gdb_osabi): Add extern declaration.
5873 * gdbtypes.c (make_qualified_type): Make static.
5874 (safe_parse_type): Make static.
5875 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5876 * macrotab.c (macro_bcache_free): Make static.
5877 * interps.c (interp_set_quiet): Make static.
5878 (interpreter_exec_cmd): Make static.
5879 * stack.h (select_frame_command): New file.
5880 * stack.c: Include "stack.h".
5881 (select_frame_command_wrapper): Delete function.
5882 (select_frame_command): Make global.
5883 * infcall.c: Include "infcall.h".
5884 * linespec.c: Include "linespec.h".
5885 * symfile.c (sections_overlap): Make static.
5886 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5887 * charset.c (_initialize_charset): Add missing prototype.
5888 * regcache.c (init_legacy_regcache_descr): Make static.
5889 (do_regcache_xfree): Make static.
5890 (regcache_xfer_part): Make static.
5891 (_initialize_regcache): Add missing prototype.
5892 * breakpoint.c (parse_breakpoint_sals): Make static.
5893 (breakpoint_sals_to_pc): Make static.
5894 * interps.h (clear_interpreter_hooks): ISO C declaration.
5895 * Makefile.in (stack_h): Define.
5896 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5897 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5898
a0f267c7
AC
58992003-06-08 Andrew Cagney <cagney@redhat.com>
5900
5901 * Makefile.in (d10v-tdep.o): Update dependencies.
5902 (SFILES): Add trad-frame.c.
5903 (trad_frame_h): Define.
5904 (COMMON_OBS): Add trad-frame.o.
5905 (trad-frame.o): Specify dependencies.
5906 * d10v-tdep.c: Include "trad-frame.h".
5907 (saved_regs_unwinder): Delete function.
5908 (d10v_frame_prev_register): Use trad_frame_prev_register.
5909 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5910 trad_frame", delete "regs" and "prev_sp".
5911 (prologue_find_regs): Use trad-frame.
5912 * trad-frame.h, trad-frame.c: New files.
5913
4538b4f4
MK
59142003-06-08 Mark Kettenis <kettenis@gnu.org>
5915
5916 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5917
a0273b2f
AF
59182003-06-07 Adam Fedor <fedor@gnu.org>
5919
5920 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5921 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5922 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5923 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5924 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5925 Use it.
5926
3a6c3343
AC
59272003-06-07 Andrew Cagney <cagney@redhat.com>
5928
5929 * symfile.h: Re-indent, clean up comments.
5930
b46e02f6
AC
59312003-06-07 Andrew Cagney <cagney@redhat.com>
5932
5933 * inferior.h (deprecated_write_sp): Replace
5934 generic_target_write_sp.
5935 * regcache.c (deprecated_write_sp): Replace
5936 generic_target_write_sp.
5937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5938 * vax-tdep.c (vax_gdbarch_init): Update.
5939 * v850-tdep.c (v850_gdbarch_init): Update.
5940 * sparc-tdep.c (sparc_gdbarch_init): Update.
5941 * sh-tdep.c (sh_gdbarch_init): Update.
5942 * s390-tdep.c (s390_gdbarch_init): Update.
5943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5944 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5945 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5946 * mcore-tdep.c (mcore_gdbarch_init): Update.
5947 * m68k-tdep.c (m68k_gdbarch_init): Update.
5948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5949 * ia64-tdep.c (ia64_gdbarch_init): Update.
5950 * h8300-tdep.c (h8300_gdbarch_init): Update.
5951 * frv-tdep.c (frv_gdbarch_init): Update.
5952 * cris-tdep.c (cris_gdbarch_init): Update.
5953 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5954
a42e117c
AC
59552003-06-07 Andrew Cagney <cagney@redhat.com>
5956
5957 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5958 Assert that PC_REGNUM is valid.
5959 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5960
bd1ce8ba
AC
59612003-06-07 Andrew Cagney <cagney@redhat.com>
5962
5963 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5964 * gdbarch.h, gdbarch.c: Regenerate.
5965 * mn10300-tdep.c: Include "gdb_assert.h".
5966 (mn10300_read_fp): New function.
5967 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5968 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5969 * ia64-tdep.c: Include "gdb_assert.h".
5970 (ia64_read_fp): New function.
5971 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5972 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5973 * regcache.c (generic_target_read_sp): Delete function.
5974 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5975 * inferior.h (generic_target_read_sp): Delete declaration.
5976 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5977 generic_target_read_sp.
5978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5979 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5980 * sh-tdep.c (sh_gdbarch_init): Ditto.
5981 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5982 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5983
ec5cbaec
AC
59842003-06-07 Andrew Cagney <cagney@redhat.com>
5985
5986 * gdbarch.sh: Comment each field of startup_gdbarch.
5987 * gdbarch.h, gdbarch.c: Re-generate.
5988
cde9ea48
AC
59892003-06-07 Andrew Cagney <cagney@redhat.com>
5990
5991 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5992 * gdbarch.h, gdbarch.c: Re-generate.
5993 * regcache.c: Update comments on read_pc et.al.
5994 (generic_target_read_pc): Delete function.
5995 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5996 * inferior.h (generic_target_read_pc): Delete declaration.
5997 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5998 generic_target_read_pc.
5999 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6000 * sh-tdep.c (sh_gdbarch_init): Ditto.
6001 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6003
9a90a780
AC
60042003-06-07 Andrew Cagney <cagney@redhat.com>
6005
6006 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6007 "index" with "special_local_sect". Use strcmp instead of STREQ.
6008 Append period to coments.
6009
a39a16c4
MM
60102003-06-06 Mark Mitchell <mark@codesourcery.com>
6011
6012 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6013 (elfstab_offset_sections): Likewise.
6014 * gdb-stabs.h (stab_section_info): Likewise.
6015 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6016 * objfiles.c (objfile_relocate): Likewise.
6017 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6018 * remote.c (get_offsets): Likewise.
6019 (remote_cisco_objfile_relocate): Likewise.
6020 * somread.c (som_symfile_offsets): Likewise.
6021 * symfile.c (alloc_section_addr_info): New function.
6022 (build_section_addr_info_from_section_tab): Use it.
6023 (free_section_addr_info): Adjust.
6024 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6025 (syms_from_objfile): Allocate local_addr dynamically.
6026 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6027 dynamically.
6028 (add_symbol_file_command): Allocate sect_opts dynamically.
6029 (reread_symbols): Avoid use of SECT_OFF_MAX.
6030 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6031 (alloc_section_addr_info): Declare it.
6032 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6033 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6034 dynamically.
6035 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6036
20c6c2f8
AC
60372003-06-06 Andrew Cagney <cagney@redhat.com>
6038
6039 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6040 (d10v_frame_unwind_cache): Do not set "return_pc".
6041
884a26c8
MS
60422003-06-06 Michael Snyder <msnyder@redhat.com>
6043
6044 * h8300-tdep.c: Make tidy (long lines).
6045
088ce440
ML
60462003-06-06 Michal Ludvig <mludvig@suse.cz>
6047
8ffd9b1b 6048 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6049 to regcache_collect().
6050
7d773d96
JB
60512003-06-05 J. Brobecker <brobecker@gnat.com>
6052
6053 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6054 pc_in_sigtramp multiarch method.
6055 (hppa_hpux_som_init_abi): Use it.
6056 (hppa_hpux_elf_init_abi): Likewise.
6057 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6058 macro has been multiarched.
6059 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6060 macro here, as hppa64 isn't multiarched yet.
6061
1df6926e
AC
60622003-06-05 Andrew Cagney <cagney@redhat.com>
6063
6064 * Makefile.in (value_h): Add $(frame_h).
6065 * value.h: Include "frame.h".
6066 (struct value): Replace "frame_addr" with "frame_id".
6067 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6068 * values.c (allocate_value): Use VALUE_FRAME_ID.
6069 (value_copy): Use VALUE_FRAME_ID.
6070 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6071 * valops.c (value_assign): Update. Use frame_find_by_id.
6072
6b53acc6
ML
60732003-06-05 Michal Ludvig <mludvig@suse.cz>
6074
6075 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6076 in each pass.
6077
4d9850d3
JJ
60782003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6079
6080 * thread-db.c (check_event): For create/death event breakpoints,
6081 loop through all messages to ensure that we read the message
6082 corresponding to the breakpoint we are at.
6083
8efca6ba
MS
60842003-06-04 Michael Snyder <msnyder@redhat.com>
6085
6086 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6087
0912c7f2
MK
60882003-06-04 Mark Kettenis <kettenis@gnu.org>
6089
6090 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6091 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6092 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6093 when handling .eh_frame sections.
6094
4e370325
JB
60952003-06-04 J. Brobecker <brobecker@gnat.com>
6096
6097 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6098 prepare_to_proceed procedure instead of the hppa-specific one.
6099 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6100
b757528f 61012003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6102
b757528f
JJ
6103 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6104 * config.in: Regenerated.
6105 * configure.in: Add test for syscall function and check for
6106 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6107 * configure: Regenerated.
6108 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6109 <sys/syscall.h>.
6110 (kill_lwp): New function that uses tkill syscall or
6111 uses kill, depending on whether threading model is nptl or not.
6112 All callers of kill() changed to use kill_lwp().
6113 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6114 see if all threads have already exited in the nptl model.
6115 (stop_and_resume_callback): New callback function used by the
6116 lin_lwp_wait thread exit handling code.
6117 (stop_wait_callback): Check for threads already having exited and
6118 delete such threads fromt the lwp list when discovered.
6119 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6120
b757528f
JJ
6121 Roland McGrath <roland@redhat.com>
6122 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6123 nptl libthread_db.
6124
087779b1
RH
61252003-06-03 Richard Henderson <rth@redhat.com>
6126
b21fd293
RH
6127 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6128 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6129 (alpha_sigtramp_frame_prev_register): Likewise.
6130 (alpha_heuristic_frame_prev_register): Likewise.
6131 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6132
8ffd9b1b 6133 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6134 alpha-specific register id names.
6135 (alpha_mdebug_frame_unwind_cache): Likewise.
6136 (alpha_mdebug_frame_prev_register): Likewise.
6137
baa490c4
RH
61382003-06-03 Richard Henderson <rth@redhat.com>
6139
6140 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6141 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6142 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6143 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6144 unwind routines.
6145 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6146 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6147 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6148
6149 * alpha-linux-tdep.c: Remove unnecessary includes.
6150 * Makefile.in (alpha-linux-tdep.o): Update.
6151
61522003-06-03 Richard Henderson <rth@redhat.com>
6153
6154 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6155 (alphabsd_fill_fpreg): Likewise.
6156
f534e522
JB
61572003-06-03 J. Brobecker <brobecker@gnat.com>
6158
6159 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6160 references to struct frame_info fields by calls to the equivalent
6161 accessors. Necessary now that frame_info is opaque.
6162
4035536b
JB
61632003-06-03 J. Brobecker <brobecker@gnat.com>
6164
6165 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6166 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6167 structure, field no longer exists.
6168
0bd79c5c
JB
61692003-06-03 J. Brobecker <brobecker@gnat.com>
6170
6171 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6172 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6173
37bb6d9f
JB
61742003-06-03 J. Brobecker <brobecker@gnat.com>
6175
6176 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6177 references to struct frame_info fields by calls to the equivalent
6178 accessors. Necessary now that frame_info is opaque.
6179
852ee05c
JB
61802003-06-03 J. Brobecker <brobecker@gnat.com>
6181
6182 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6183 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6184 structure, field no longer exists.
6185
7d58c67d
TR
61862003-06-03 Theodore A. Roth <troth@openavr.org>
6187
8ffd9b1b 6188 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6189 accumulation of the size of all registers instead of blindly using
6190 DEPRECATED_REGISTER_BYTES.
6191
0a48e7e8
MS
61922003-06-03 Michael Snyder <msnyder@redhat.com>
6193
6194 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6195 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6196 for h8300sx.
6197
9798ab0d
JB
61982003-06-03 J. Brobecker <brobecker@gnat.com>
6199
6200 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6201 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6202
00b037e2
AC
62032003-06-03 Andrew Cagney <cagney@redhat.com>
6204
6205 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6206 (sparc_convert_to_raw): Delete function.
6207 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6208 register_convert_to_virtual.
6209
043b2f77
JJ
62102003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6211
6212 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6213 layer if not dealing with a statically-linked threaded program.
6214
f43caff8
KW
62152003-06-03 Kris Warkentin <kewarken@qnx.com>
6216
6217 * solib.c (solib_open): Update comment to reflect actual search order.
6218
ae1e7417
AC
62192003-06-03 Andrew Cagney <cagney@redhat.com>
6220
6221 * frame.c (get_frame_memory_signed): New function.
6222 (get_frame_memory, get_frame_memory_unsigned): New function.
6223 (get_frame_arch): New function.
6224 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6225 (get_frame_memory, get_frame_unsigned_memory): Declare.
6226 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6227 get_frame_memory_unsigned and get_frame_arch.
6228 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6229
cb123844
RG
62302003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6231
6232 * MAINTAINERS (write after approval): Add myself.
6233
1bb792e9
JB
62342003-06-03 Jim Blandy <jimb@redhat.com>
6235
6236 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6237 elements of gregset_t are 64 bits each, but access registers
6238 are still 32 bits, so they're packed two per gregset_t
6239 element. Unpack/pack them properly.
6240
aee8d8ba
DC
62412003-06-02 David Carlton <carlton@bactrian.org>
6242
6243 * linespec.c (find_methods): Break out code into
6244 add_matching_methods and add_constructors.
6245 (add_matching_methods): New.
6246 (add_constructors): Ditto.
6247
bf7488d2
AC
62482003-06-02 Andrew Cagney <cagney@redhat.com>
6249
bf7488d2
AC
6250 * sparc-tdep.c (sparc_print_registers): Delete call to
6251 REGISTER_CONVERTIBLE.
6252 (sparc_gdbarch_init): Do not set register_convertible.
6253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6254 * frv-tdep.c (frv_gdbarch_init): Ditto.
6255 * cris-tdep.c (cris_gdbarch_init): Ditto.
6256
adedef68
EZ
62572003-06-02 Elena Zannoni <ezannoni@redhat.com>
6258
8ffd9b1b 6259 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6260 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6261 (syms_from_objfile): Ditto.
6262
650fcc91
AS
62632003-06-03 Andreas Schwab <schwab@suse.de>
6264
6265 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6266 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6267
df4a182b
RH
62682003-06-02 Richard Henderson <rth@redhat.com>
6269
6270 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6271 a member of all_reggroup.
6272
c483c494
RH
62732003-06-02 Richard Henderson <rth@redhat.com>
6274
6275 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6276 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6277 (alpha_lds, alpha_sts): New.
6278 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6279 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6280 restructure and fail for type sizes other than 4 or 8.
6281 (alpha_value_to_register): Similarly.
6282 (alpha_extract_return_value): Use alpha_sts.
6283 (alpha_store_return_value): Use alpha_lds.
6284 (alpha_gdbarch_init): Update hooks.
6285
b38b6be2
RH
62862003-06-02 Richard Henderson <rth@redhat.com>
6287
6288 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6289 regnum identifiers.
6290 (alpha_sigtramp_register_address): Likewise.
6291
98a8e1e5
RH
62922003-06-02 Richard Henderson <rth@redhat.com>
6293
6294 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6295 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6296 * alpha-tdep.h: Declare them.
6297
6298 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6299 Remove zerobuf. Don't error on UNIQUE.
6300 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6301 (ALPHA_REGSET_UNIQUE): Provide default.
6302 (supply_gregset): Use alpha_supply_int_regs.
6303 (fill_gregset): Use alpha_fill_int_regs.
6304 (supply_fpregset): Use alpha_supply_fp_regs.
6305 (fill_fpregset): Use alpha_fill_fp_regs.
6306 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6307 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6308 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6309 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6310 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6311 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6312
67dfac52
RH
63132003-06-02 Richard Henderson <rth@redhat.com>
6314
f75d70cc
RH
6315 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6316
67dfac52
RH
6317 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6318 (alpha_store_return_value): Likewise.
6319
0cf566ec
DC
63202003-06-02 David Carlton <carlton@math.stanford.edu>
6321
6322 * block.c (contained_in): Add 'const' to arguments.
6323 (block_function): Ditto.
6324 * block.h: Update declarations for block_function and
6325 contained_in.
6326
cdef89d0
DC
63272003-06-02 David Carlton <carlton@math.stanford.edu>
6328
6329 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6330 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6331 * p-valprint.c (pascal_val_print): Ditto.
6332 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6333
72667056
RH
63342003-06-02 Richard Henderson <rth@redhat.com>
6335
98a8e1e5
RH
6336 * alpha-tdep.c (alpha_push_dummy_call): Use
6337 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6338
8ffd9b1b 6339 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6340 sign-extension of 32-bit values.
6341 (alpha_store_return_value): Similarly.
0ede8eca 6342
98a8e1e5
RH
6343 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6344 (alpha_extract_return_value): Likewise.
6345 (alpha_store_return_value): Likewise.
7b5e1cb3 6346
98a8e1e5
RH
6347 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6348 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6349
98a8e1e5
RH
6350 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6351 (alpha_extract_struct_value_address): Likewise.
6352 (alpha_store_return_value): Likewise.
6353 (alpha_store_struct_return): Remove.
6354 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6355
98a8e1e5
RH
6356 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6357 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6358 macros where appropriate.
6359 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6360 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6361
98a8e1e5
RH
6362 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6363 for SP, GP; void_func_ptr for PC; non-language-specific types
6364 for all others.
6365 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6366
6dd77b81
RH
63672003-06-02 Richard Henderson <rth@redhat.com>
6368
6369 * top.h (lim_at_start): Declare.
6370 * main.c (captured_main): Set it.
6371 * top.c (lim_at_start): Define.
6372 (command_loop): Use it instead of &environ.
6373 * event-top.c (command_handler): Likewise.
6374
f4dbdb54
JT
63752003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6376
6377 * mipsnbsd-tdep.c: Update copyright years.
6378 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6379
8f285956
RH
63802003-06-01 Richard Henderson <rth@redhat.com>
6381
98a8e1e5
RH
6382 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6383 (alpha-linux-tdep.o): Update dependencies.
6384 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6385 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6386
615967cb
RH
63872003-06-01 Richard Henderson <rth@redhat.com>
6388
98a8e1e5
RH
6389 * alpha-tdep.c (alpha_register_reggroup_p): New.
6390 (alpha_gdbarch_init): Register it.
615967cb 6391
b59661bd
AC
63922003-06-02 Andrew Cagney <cagney@redhat.com>
6393
6394 * dwarfread.c: Eliminate "register"
6395 (decode_die_type): Eliminate assignment within "if".
6396 (struct_type, decode_array_element_type): Ditto.
6397 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6398 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6399 (decode_modified_type, completedieinfo): Ditto.
6400 * block.c: Eliminate "register".
6401 (blockvector_for_pc_sect): Eliminate assignment within "if".
6402 * cp-support.h (struct symbol): Opaque declaration.
6403 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6404
5ef165c2
RH
64052003-06-01 Richard Henderson <rth@redhat.com>
6406
98a8e1e5
RH
6407 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6408 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6409
143985b7
AF
64102003-06-01 Adam Fedor <fedor@gnu.org>
6411
6412 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6413 * gdbarch.[ch]: Regenerate.
6414 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6415 (hppa_gdbarch_init): Set it in the gdbarch vector.
6416 * i386-tdep.c (i386_fetch_pointer_argument): New
6417 (i386_gdbarch_init): Set it into gdbarch.
6418 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6419 (rs6000_gdbarch_init): Set it in gdbarch.
6420 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6421 (sparc_gdbarch_init): Set it in gdbarch.
6422
ae0167b9
AC
64232003-06-01 Andrew Cagney <cagney@redhat.com>
6424
7c0b4a20
AC
6425 * defs.h (extract_address): Delete declaration.
6426 * findvar.c (extract_address): Delete function.
6427 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6428 extract_address with the inline equivalent,
6429 extract_unsigned_integer.
6430 (xstormy16_extract_struct_value_address): Ditto.
6431 (xstormy16_pointer_to_address): Ditto.
6432 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6433 * v850-tdep.c (v850_push_arguments): Ditto.
6434 (v850_extract_return_value): Ditto.
6435 (v850_extract_struct_value_address): Ditto.
6436 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6437 (sparcnbsd_get_longjmp_target_64): Ditto.
6438 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6439 (get_longjmp_target): Ditto.
6440 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6441 (sh64_extract_struct_value_address): Ditto.
6442 (sh_push_arguments): Ditto.
6443 (sh64_push_arguments): Ditto.
6444 * remote-vxsparc.c (vx_read_register): Ditto.
6445 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6446 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6447 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6448 * mipsv4-nat.c (get_longjmp_target): Ditto.
6449 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6450 * mips-nat.c (get_longjmp_target): Ditto.
6451 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6452 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6453 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6454 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6455 * irix5-nat.c (get_longjmp_target): Ditto.
6456 * irix4-nat.c (get_longjmp_target): Ditto.
6457 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6458 (ia64_push_arguments): Ditto.
6459 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6460 * h8300-tdep.c (h8300_push_arguments): Ditto.
6461 (h8300_store_return_value): Ditto.
6462 (h8300_extract_struct_value_address): Ditto.
6463 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6464 (frv_push_arguments): Ditto.
6465 * avr-tdep.c (avr_pointer_to_address): Ditto.
6466 (avr_push_arguments): Ditto.
6467 * arm-tdep.c (arm_push_dummy_call): Ditto.
6468 (arm_get_longjmp_target): Ditto.
6469 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6470 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6471 (alpha_get_longjmp_target): Ditto.
6472
ae0167b9
AC
6473 * solib-irix.c (extract_mips_address): Inline extract_address,
6474 replacing it with extract_signed_integer.
6475 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6476 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6477 (first_link_map_member, open_symbol_file_object): Ditto.
6478 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6479 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6480 (LM_NEXT, LM_NAME): Ditto.
6481
44d88583
RH
64822003-06-01 Richard Henderson <rth@redhat.com>
6483
98a8e1e5
RH
6484 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6485 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6486 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6487 (alpha_cannot_store_register): Likewise.
6488 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6489 * alpha-nat.c (supply_gregset): Likewise.
6490 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6491
310e9b6a
AC
64922003-06-01 Andrew Cagney <cagney@redhat.com>
6493
6494 * infcall.c (call_function_by_hand): Update comment on
6495 DEPRECATED_DUMMY_WRITE_SP.
6496
6497 * mips-tdep.c (mips_gdbarch_init): Do not set
6498 deprecated_dummy_write_sp.
6499 (mips_eabi_push_dummy_call): Set the SP register.
6500 (mips_o64_push_dummy_call): Set the SP register.
6501 (mips_o32_push_dummy_call): Set the SP register.
6502 (mips_n32n64_push_dummy_call): Set the SP register.
6503
5ab84872
RH
65042003-06-01 Richard Henderson <rth@redhat.com>
6505
98a8e1e5
RH
6506 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6507 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6508 (supply_gregset): Likewise.
6509 * alpha-tdep.c (alpha_store_return_value): Likewise.
6510 (alpha_get_longjmp_target): Likewise.
6511 (alpha_register_name): Constify array.
6512 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6513 deprecated_register_size, deprecated_register_bytes,
6514 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6515 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6516 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6517
09cc52fd
RH
65182003-06-01 Richard Henderson <rth@redhat.com>
6519
6520 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6521 from arg_reg_buffer to regcache to avoid double conversion.
6522
c7f16359
MK
65232003-06-01 Mark Kettenis <kettenis@gnu.org>
6524
6525 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6526 SP_REGNUM.
6527 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6528 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6529
7131cb6e
RH
65302003-06-01 Richard Henderson <rth@redhat.com>
6531
98a8e1e5
RH
6532 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6533 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6534
f3e0f90b
RH
65352003-06-01 Richard Henderson <rth@redhat.com>
6536
98a8e1e5
RH
6537 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6538 not overlapping PC_REGNUM.
f3e0f90b 6539
c88e30c0
RH
65402003-06-01 Richard Henderson <rth@redhat.com>
6541
98a8e1e5
RH
6542 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6543 alpha_push_arguments. Don't dump argument register data to
6544 the target stack. Fix float and 128-bit long double semantics.
6545 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6546 (alpha_fix_call_dummy): Remove.
6547 (alpha_call_dummy_words): Remove.
6548 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6549
f1a559ae
RH
65502003-06-01 Richard Henderson <rth@redhat.com>
6551
6552 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6553
5e045346
AC
65542003-06-01 Andrew Cagney <cagney@redhat.com>
6555
95404a3e
AC
6556 * mips-tdep.c (is_mips16_addr): New function.
6557 (make_mips16_addr, unmake_mips16_addr): New functions.
6558 (pc_is_mips16, mips_fetch_instruction): Use.
6559 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6560 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6561 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6562 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6563 TARGET_MIPS.
6564 * config/mips/tm-mips.h: Update copyright.
6565 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6566 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6567 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6568 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6569 (TM_PRINT_INSN_MACH): Delete.
6570 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6571
5e045346
AC
6572 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6573 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6574 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6575 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6576 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6577 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6578 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6579 mips*-*-riscos* and mips*-*-sysv* onto mips.
6580 * config/mips/mips64.mt: New file.
6581 * config/mips/mips.mt: New file.
6582 * config/mips/littlemips.mt: Delete file.
6583 * config/mips/decstation.mt: Delete file.
6584 * config/mips/vr4300el.mt: Delete file.
6585 * config/mips/vr5000el.mt: Delete file.
6586 * config/mips/vr5000.mt: Delete file.
6587 * config/mips/vr4100.mt: Delete file.
6588 * config/mips/vr4xxxel.mt: Delete file.
6589 * config/mips/vr4300.mt: Delete file.
6590 * config/mips/vr4xxx.mt: Delete file.
6591 * config/mips/bigmips.mt: Delete file.
6592 * config/mips/bigmips64.mt: Delete file.
6593 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6594 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6595 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6596 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6597 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6598 "tm-bigmips.h".
6599 * config/mips/tm-irix3.h: Ditto.
6600 * config/mips/tm-mipsv4.h: Ditto.
6601 * config/mips/tm-embed.h: Ditto.
6602 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6603 "tm-bigmips64.h".
6604 * config/mips/tm-vr5000el.h: Delete file.
6605 * config/mips/tm-tx39l.h: Delete file.
6606 * config/mips/tm-vr4300el.h: Delete file.
6607 * config/mips/tm-vr4xxxel.h: Delete file.
6608 * config/mips/tm-vr4300.h: Delete file.
6609 * config/mips/tm-vr4100.h: Delete file.
6610 * config/mips/tm-vr4xxx.h: Delete file.
6611 * config/mips/tm-vr5000.h: Delete file.
6612 * config/mips/tm-embedl64.h: Delete file.
6613 * config/mips/tm-embedl.h: Delete file.
6614 * config/mips/tm-embed64.h: Delete file.
6615 * config/mips/tm-bigmips64.h: Delete file.
6616 * config/mips/tm-bigmips.h: Delete file.
6617
2473a4a9
MK
66182003-06-01 Mark Kettenis <kettenis@gnu.org>
6619
97a5b208
MK
6620 Fix gdb/1216.
6621 * shnbsd-nat.c: Include "sh-tdep.h".
6622
2473a4a9
MK
6623 From Richard Henderson <rth@redhat.com>:
6624 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6625
e0f7ec59
AC
66262003-05-31 Andrew Cagney <cagney@redhat.com>
6627
6628 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6629 forward declaration.
6630 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6631 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6632 (mips_find_saved_regs): Use set_reg_offset.
6633 (mips_frame_init_saved_regs): Delete function.
6634 (mips_pop_frame): Call mips_find_saved_regs instead of
6635 DEPRECATED_FRAME_INIT_SAVED_REGS.
6636
68dcc709
AC
66372003-05-31 Andrew Cagney <cagney@redhat.com>
6638
6639 * mips-tdep.c (mips_gdbarch_init): Do not set
6640 deprecated_max_register_raw_size, register_virtual_size, and
6641 deprecated_max_register_virtual_size.
6642
cfc14b3a
MK
66432003-05-31 Mark Kettenis <kettenis@gnu.org>
6644
6405b0a6
MK
6645 * i386-tdep.c: Include "dwarf2-frame.h".
6646 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6647 * Makefile.in (i386-tdep.o): Update dependencies.
6648
cfc14b3a
MK
6649 * dwarf2-frame.c, dwarf2-frame.h: New files.
6650 * Makefile.in (SFILES): Add dwarf2-frame.c.
6651 (dwarf2_frame_h): Define.
6652 (COMMON_OBS): Add dwarf2-frame.o.
6653 (dwarf2-frame.o): Add dependencies.
6654
6a2751d2
AJ
66552003-05-31 Andreas Jaeger <aj@suse.de>
6656
6657 * x86-64-linux-nat.c: Fix comment.
6658
1c3545ae
MK
66592003-05-31 Mark Kettenis <kettenis@gnu.org>
6660
10f93086
MK
6661 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6662 function signature.
6663
1c3545ae
MK
6664 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6665 have a sigcontext_addr handler.
6666 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6667 sigcontext_addr handler.
6668
e11c53d2
AC
66692003-05-31 Andrew Cagney <cagney@redhat.com>
6670
6671 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6672 (print_fp_register_row): Replace do_fp_register_row.
6673 (mips_print_fp_register): Add "file" and "frame" parameters.
6674 (mips_print_register): Add "file" and "frame" parameters.
6675 (mips_print_registers_info): Replace mips_do_registers_info.
6676 (mips_gdbarch_init): Set print_registers_info instead of
6677 deprecated_do_registers_info.
6678 (mips_read_fp_register_single): Add "frame" parameter.
6679 (mips_read_fp_register_double): Add "frame" parameter.
6680
a3386186
MK
66812003-05-31 Mark Kettenis <kettenis@gnu.org>
6682
70913449
MK
6683 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6684 Fixes a bug where GDB would print the wrong register names for
6685 targets without SSE.
6686
2b5e0749
MK
6687 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6688 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6689 registers.
6690
6691 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6692 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6693 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6694 TDEP->sc_sp_offset.
6695
a3386186
MK
6696 From Michal Ludvig <mludvig@suse.cz>:
6697 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6698 and `sc_num_regs'.
6699 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6700 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6701 I386_ST0_REGNUM): Move here from...
6702 * i386-tdep.c: ... here.
6703 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6704 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6705 registers if possible.
6706 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6707 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6708 Remove variables.
6709 (i386bsd_sc_reg_offset): New variable.
6710 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6711 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6712 TDEP->sc_sp_offset.
6713 (i386fbsd_sc_reg_offset): New variable.
6714 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6715 TDEP->sc_num_regs.
6716 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6717 variables.
6718 (i386fbsd4_sc_reg_offset): New variable.
6719 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6720 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6721 TDEP->sc_sp_offset.
6722 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6723 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6724 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6725 Remove variables.
6726 (i386nbsd_sc_reg_offset): New variable.
6727 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6728 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6729 TDEP->sc_sp_offset.
6730 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6731 Remove variables.
6732 (i386obsd_sc_reg_offset): New variable.
6733 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6734 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6735 TDEP->sc_sp_offset.
6736 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6737 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6738 for frame pointer offset in `struct sigcontext'.
6739
25ab4790
AC
67402003-05-31 Andrew Cagney <cagney@redhat.com>
6741
6742 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6743 architecture methods call_dummy_words, sizeof_call_dummy_words,
6744 push_return_address, store_struct_return, and fix_call_dummy. Set
6745 push_dummy_call instead of deprecated_push_arguments.
6746 (mips_store_struct_return): Delete function.
6747 (mips_fix_call_dummy): Delete function.
6748 (mips_push_return_address): Delete function.
6749 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6750 RA_REGNUM and T9_REGNUM.
6751 (mips_n32n64_push_dummy_call): Ditto for
6752 mips_n32n64_push_arguments.
6753 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6754 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6755
6a65450a
AC
67562003-05-31 Andrew Cagney <cagney@redhat.com>
6757
6758 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6759 "dummy_addr" to "bp_addr".
6760 * infcall.c (call_function_by_hand): Pass "funaddr" to
6761 gdbarch_push_dummy_call.
6762 * gdbarch.h, gdbarch.c: Re-generate.
6763 * i386-tdep.c (i386_push_dummy_call): Update.
6764 * arm-tdep.c (arm_push_dummy_call): Update.
6765 * d10v-tdep.c (d10v_push_dummy_call): Update.
6766
c4f35dd8
MK
67672003-05-31 Mark Kettenis <kettenis@gnu.org>
6768
6769 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6770 variable declarations.
6771 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6772 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6773 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6774 x86_64_init_frame_pc, x86_64_init_frame_pc,
6775 x86_64_function_has_prologue): Remove prototypes.
6776 (X86_64_NUM_GREGS): New define.
6777 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6778 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6779 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6780 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6781 XMM1_REGNUM): Remove defines.
6782 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6783 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6784 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6785 X86_64_XMM1_REGNUM): New defines.
6786 (struct x86_64_register_info): Renamed from `struct
6787 register_info'. Remove `size' member.
6788 (x86_64_register_info_table): Remove variable.
6789 (x86_64_register_info): New variable.
6790 (X86_64_NUM_REGS): New define.
6791 (X86_64_NUM_GREGS): Remove define.
6792 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6793 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6794 Remove variables.
6795 (x86_54_dwarf2_reg_to_regnum): Remove function.
6796 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6797 (x86_64_dwarf_reg_to_regnum): New function.
6798 (x86_64_register_name): Rewrite.
6799 (x86_64_register_raw_size): Remove function.
6800 (x86_64_register_byte_table): Remove variable.
6801 (x86_64_register_byte): Remove function.
6802 (x86_64_register_virtual_type): Remove function.
6803 (x86_64_register_type): New function.
6804 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6805 x86_64_register_convert_to_raw): Remove functions.
6806 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6807 (x86_64_use_struct_convention): Make static. Adjust for renamed
6808 defines.
6809 (x86_64_frame_init_saved_regs): Remove function.
6810 (x86_64_push_arguments): Make static. Change to accept a regcache
6811 as argument.
6812 (x86_64_store_return_value, x86_64_extract_return_value): Make
6813 static. Rewrite based on i386 counterparts.
6814 (x86_64_push_dummy_call): New function.
6815 (X86_64_NUM_SAVED_REGS): New define.
6816 (x86_64_register_number): Remove function.
6817 (x86_64_store_struct_return): Remove function.
6818 (x86_64_frameless_function_invocation,
6819 x86_64_function_has_prologue): Remove functions.
6820 (PROLOG_BUFSIZE): Remove define.
6821 (struct x86_64_frame_cache): New structure.
6822 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6823 x86_64_frame_cache, x86_64_frame_this_id,
6824 x86_64_frame_prev_register, x86_64_frame_p,
6825 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6826 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6827 functions.
6828 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6829 variables.
6830 (x86_64_skip_prologue): Rewrite in terms of
6831 x86_64_analyze_prologue.
6832 (x86_64_frame_base_address): New function.
6833 (x86_64_frame_base): New variable.
6834 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6835 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6836 set deprecated_fp_regnum, deprecated_register_size,
6837 deprecated_register_bytes, register_raw_size, register_byte,
6838 register_virtual_type, register_convertiable,
6839 register_convert_to_virtual, convert_to_raw,
6840 deprecated_get_saved_register, deprecated_target_read_fp,
6841 deprecated_push_arguments, deprecated_push_return_address,
6842 deprecated_pop_frame, deprecated_store_struct_return,
6843 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6844 frameless_function_invocation, deprecated_frame_saved_pc,
6845 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6846 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6847 deprecated_init_frame_pc and virtual_frame_pointer. Call
6848 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6849 and x86_64_frame_p. Call frame_base_set_default to register
6850 x86_64_frame_base.
6851 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6852 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6853 (_initialize_x86_64_tdep): Remove function.
6854 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6855 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6856 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6857 define.
6858 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6859 (x86_64_linux_sigcontext_addr): Rewrite.
6860 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6861 x86_64_linux_frame_saved_pc): Remove functions.
6862 (x86_64_linux_pc_in_sigtramp): Renamed from
6863 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6864 trampoline.
6865 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6866 Remove_functions.
6867 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6868 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6869 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6870 (x86_64_regmap): Rename to regmap.
6871 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6872 x86_64_num_gregs.
6873 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6874 x86_64_regmap.
6875 (x86_64_fxsave_offset): Remove function.
6876 (supply_fpregset): Simply call x86_64_supply_fxsave.
6877 (fill_fpregset): Simply call x86_64_fill_fxsave.
6878 (fetch_inferior_registers, store_inferior_registers): Avoid
6879 asignment in if-statement.
6880 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6881 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6882 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6883 (fetch_core_registers): Remove function.
6884 (linux_elf_core_fns): Remove.
6885 (offsetoff): Don't define.
6886 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6887 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6888 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6889 add core-regset.o.
6890 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6891 protection against multiple includes instead of NM_X86_64_h. Add
6892 various comments. Include "config/nm-linux.h". Don't include
6893 <signal.h>.
6894 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6895 GET_THREAD_SIGNALS): Remove defines.
6896 (x86_64_register_u_addr, kernel_u_size,
6897 lin_thread_get_thread_signals): Remove prototypes.
6898 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6899 [HAVE_LINK_H]: Don't include "solib.h".
6900 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6901 * config/i386/tm-x86-64linux.h: Fix comments.
6902 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6903 x86-64-tdep.o): Update dependencies.
6904
c25083af
AC
69052003-05-30 Andrew Cagney <cagney@redhat.com>
6906
c8f55a7b
AC
6907 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6908 Change parameter type to a "struct regcache *".
6909
c25083af
AC
6910 * gdbarch.sh: Regardless of the multi-arch level, always define
6911 the macro when not already defined.
6912 * gdbarch.h, gdbarch.c: Re-generate.
6913
fbe586ae
RH
69142003-05-30 Richard Henderson <rth@redhat.com>
6915
6916 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6917 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6918 (alpha_mdebug_frame_this_id): Likewise.
6919 (alpha_mdebug_frame_prev_register): Likewise.
6920 (alpha_mdebug_frame_base_address): Likewise.
6921 (alpha_mdebug_frame_locals_address): Likewise.
6922 (alpha_mdebug_frame_args_address): Likewise.
6923 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6924 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6925 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6926 loop increment.
6927 (alpha_heuristic_frame_this_id): Make static.
6928 (alpha_heuristic_frame_prev_register): Likewise.
6929 (alpha_heuristic_frame_base_address): Likewise.
6930 * alpha-tdep.h: Update.
6931
acd5c798
MK
69322003-05-30 Mark Kettenis <kettenis@gnu.org>
6933
6934 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6935 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6936 defenitions.
6937 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6938 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6939 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6940 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6941 I386_ST0_REGNUM): New defines.
6942 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6943 codestream_get): Remove define.
6944 (codestream_next_addr, condestream_addr, condestream_buf,
6945 codestream_off, codestream_cnt): Remove variables.
6946 (codestream_fill, codestream_seek, codestream_read): Remove
6947 functions.
6948 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6949 functionality.
6950 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6951 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6952 i386_frame_saved_pc, i386_saved_pc_after_call,
6953 i386_frame_num_args, i386_frame_init_saved_regs,
6954 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6955 i386_push_arguments): Remove functions.
6956 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6957 functionality. Use i386_analyze_prologue instead of
6958 i386_get_frame_setup.
6959 (I386_NUM_SAVED_REGS): New define.
6960 (struct i386_frame_cache): New structure.
6961 (i386_alloc_frame_cache, i386_analyze_struct_return,
6962 i386_skip_probe, i386_analyze_frame_setup,
6963 i386_analyze_register_saves, i386_analyze_prologue,
6964 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6965 i386_frame_prev_register, i386_sigtramp_frame_cache,
6966 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6967 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6968 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6969 New functions.
6970 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6971 New variables.
6972 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6973 I386_EAX_REGNUM and I386_EDX_REGNUM.
6974 (i386_extract_return_value, i386_store_return_value): Use
6975 I386_ST0_REGNUM where appropriate.
6976 (i386_extract_struct_value_address): Rewrite to use extract_address.
6977 (i386_svr4_pc_in_sigtramp): Add comment.
6978 (i386_svr4_sigcontext_addr): Rewrite.
6979 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6980 TDEP->sc_sp_offset.
6981 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6982 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6983 of new defines. Set push_dummy_call, don't set
6984 deprecated_push_arguments, deprecated_push_return_address,
6985 deprecated_pop_frame. Don't set parm_boundary. Don't set
6986 deprecated_frame_chain, deprecated_frame_saved_pc,
6987 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6988 save_dummy_frame_tos, unwind_pc. Call
6989 frame_unwind_append_predicate and frame_base_set_default. Don't
6990 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6991 Don't set frameless_function_invocation. Don't set
6992 deprecated_register_bytes, deprecated_register_size,
6993 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6994 * i386-linux-tdep.c: Fix formatting in some comments.
6995 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6996 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6997 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6998 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6999 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7000 redundant parentheses.
7001 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7002 (i386_linux_sigcontext_addr): Use it. Rewrite.
7003 (find_minsym_and_objfile): Change name of second argument.
7004 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7005 changed. Use frame_pc_unwind instead of
7006 DEPRECATED_SAVED_PC_AFTER_CALL.
7007 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7008 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7009 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7010 unwinder.
7011 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7012 "dummy-frame.h".
7013 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7014 (_initialize_i386_cygwin_tdep): New prototype.
7015 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7016 deprecated_frame_chain_valid.
7017 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7018 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7019 Rely on the SVR4 defaults.
7020 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7021 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7022
c89b70f1
AC
70232003-05-30 Andrew Cagney <cagney@redhat.com>
7024
7025 * infcall.c (call_function_by_hand): Always call
7026 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7027
85b32d22
RH
70282003-05-30 Richard Henderson <rth@redhat.com>
7029
c89b70f1
AC
7030 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7031 increment.
85b32d22 7032
bfe51b1e
JB
70332003-05-29 Jim Blandy <jimb@redhat.com>
7034
7035 Use gdbarch methods for solib stuff on PowerPC Linux.
7036 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7037 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7038 show through.
7039 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7040 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7041 giving the same effect as the #definitions above.
7042
1abf022c
AF
70432003-05-29 Adam Fedor <fedor@gnu.org>
7044
7045 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7046 (find_implementation_from_class): Replace it with the standard
7047 case i.e. do nothing.
7048
d2427a71
RH
70492003-05-29 Richard Henderson <rth@redhat.com>
7050
7051 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7052 (alpha_linux_sigtramp_offset): Use it. Make static.
7053 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7054 update for new frame model.
7055 * alpha-mdebug-tdep.c: New file.
7056 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7057 (alpha_osf1_init_abi): Install it.
7058 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7059 (linked_proc_desc_table): Remove.
7060 (alpha_frame_past_sigtramp_frame): Remove.
7061 (alpha_dynamic_sigtramp_offset): Remove.
7062 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7063 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7064 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7065 (push_sigtramp_desc): Remove.
7066 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7067 (alpha_cannot_store_register): Likewise.
7068 (alpha_sigcontext_addr): Remove.
7069 (alpha_find_saved_regs): Remove.
7070 (alpha_frame_init_saved_regs): Remove.
7071 (alpha_init_frame_pc_first): Remove.
7072 (read_next_frame_reg): Remove.
7073 (alpha_frame_saved_pc): Remove.
7074 (alpha_saved_pc_after_call): Remove.
7075 (temp_proc_desc, temp_saved_regs): Remove.
7076 (alpha_about_to_return): Remove.
7077 (cached_proc_desc): Remove.
7078 (alpha_frame_chain): Remove.
7079 (alpha_print_extra_frame_info): Remove.
7080 (alpha_init_extra_frame_info): Remove.
7081 (alpha_frame_locals_address): Remove.
7082 (alpha_frame_args_address): Remove.
7083 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7084 (alpha_push_dummy_frame): Remove.
7085 (alpha_pop_frame): Remove.
7086 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7087 (alpha_read_insn): New.
7088 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7089 for different insn encodings.
7090 (alpha_in_lenient_prologue): Remove.
7091 (struct alpha_sigtramp_unwind_cache): New.
7092 (alpha_sigtramp_frame_unwind_cache): New.
7093 (alpha_sigtramp_register_address): New.
7094 (alpha_sigtramp_frame_this_id): New.
7095 (alpha_sigtramp_frame_prev_register): New.
7096 (alpha_sigtramp_frame_unwind): New.
7097 (alpha_sigtramp_frame_p): New.
7098 (struct alpha_heuristic_unwind_cache): New.
7099 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7100 don't count nop insns that occur between functions.
7101 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7102 heuristic_proc_desc, but without the mdebug wrapping.
7103 (alpha_heuristic_frame_this_id): New.
7104 (alpha_heuristic_frame_prev_register): New.
7105 (alpha_heuristic_frame_unwind): New.
7106 (alpha_heuristic_frame_p): New.
7107 (alpha_heuristic_frame_base_address): New.
7108 (alpha_heuristic_frame_base): New.
7109 (alpha_unwind_dummy_id): New.
7110 (alpha_unwind_pc): New.
7111 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7112 frame related deprecated initializations; install replacements.
7113 (alpha_dump_tdep): Remove.
7114 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7115 (alpha_read_insn, alpha_after_prologue,
7116 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7117 alpha_heuristic_frame_prev_register,
7118 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7119 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7120 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7121 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7122
93ec1121
AC
71232003-05-29 Andrew Cagney <cagney@redhat.com>
7124
7125 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7126 dependant on the availability of ASSERT_FUNCTION.
7127 (ASSERT_FUNCTION): Do not define when there is no function name.
7128
98f08d3d
KB
71292003-05-29 Kevin Buettner <kevinb@redhat.com>
7130
7131 From Jimi X <jimix@watson.ibm.com>:
7132 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7133
0897f59b
JB
71342003-05-28 Jim Blandy <jimb@redhat.com>
7135
7136 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7137 argument to ptrace to int; the system headers should give it the
7138 right type, and pointers don't fit in ints on powerpc64-*-*.
7139
14898363
L
71402003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7141
7142 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7143 DW_TAG_catch_block.
7144
a7a48797
EZ
71452003-05-26 Elena Zannoni <ezannoni@redhat.com>
7146
7147 * stabsread.c (dbx_lookup_type): Make static.
7148 (read_type): Ditto.
7149 (add_undefined_type): Ditto.
7150 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7151 not export.
7152
f5479e9c
EZ
71532003-05-26 Elena Zannoni <ezannoni@redhat.com>
7154
7155 * hpread.c (hpread_has_name): Make static.
7156 (hpread_psymtab_to_symtab): Ditto.
7157 (file_exists): Ditto.
7158 (hpread_call_pxdb): Ditto.
7159 (hpread_pxdb_needed): Ditto.
7160 (hpread_quick_traverse): Ditto.
7161 (hpread_get_header): Ditto.
7162 (hpread_get_lntt): Ditto.
7163 (hpread_get_slt): Ditto.
7164 (class_of): Ditto.
7165
eb2e12d7
AS
71662003-05-25 Andreas Schwab <schwab@suse.de>
7167
78bf922a
AS
7168 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7169 stack_align and deprecated_extra_stack_alignment_needed.
7170 (m68k_stack_align): Delete.
7171
eb2e12d7
AS
7172 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7173 (m68k_register_virtual_size): Likewise.
7174 (altos_skip_prologue): Remove obsolete function.
7175 (isi_frame_num_args): Likewise.
7176 (news_frame_num_args): Likewise.
7177 (m68k_fix_call_dummy): Make static.
7178 (m68k_push_dummy_frame): Likewise.
7179 (m68k_pop_frame): Likewise.
7180 (m68k_skip_prologue): Likewise.
7181 (m68k_frame_init_saved_regs): Likewise.
7182 (m68k_saved_pc_after_call): Likewise.
7183 (m68k_get_longjmp_target): Make multi-arch.
7184 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7185 structure. Register m68k_get_longjmp_target if enabled.
7186 * m68k-tdep.h (struct gdbarch_tdep): Define.
7187 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7188
7189 * Makefile.in (config.status): Also depend on configure.tgt
7190 and configure.host.
7191 (m68klinux-tdep.o): Update dependencies.
7192 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7193 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7194 (M68K_LINUX_JB_PC): Define.
7195 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7196 and take additional parameter.
7197 (m68k_linux_sigtramp_saved_pc): Update.
7198 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7199 m68k_linux_pc_in_sigtramp, in_plt_section,
7200 find_solib_trampoline_target.
7201 * config/m68k/tm-linux.h: Don't include any tm headers.
7202 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7203 (JB_ELEMENT_SIZE): Likewise.
7204 (JB_PC): Likewise.
7205 (GET_LONGJMP_TARGET): Likewise.
7206 (IN_SIGTRAMP): Likewise.
7207 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7208
eb2c22dc
MK
72092003-05-25 Mark Kettenis <kettenis@gnu.org>
7210
7211 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7212 (sparc32_push_arguments): Re-implement by calling
7213 sparc32_do_push_arguments.
7214
44b7b84e
MK
72152003-05-25 Mark Kettenis <kettenis@gnu.org>
7216
7217 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7218 SPARC_O1_REGNUM): New defines.
7219 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7220 (sparc32_store_return_value): New function.
7221 (sparc_extract_struct_value_address): Rewrite to operate on a
7222 regcache.
7223 (sparc_gdbarch_init): Don't set
7224 deprecated_extract_struct_value_address. Set
7225 extract_struct_value_address instead. Don't set
7226 deprecated_extract_return_value and deprecated_store_return_value
7227 for 32-bit targets. Set extract_return_value and
7228 store_return_value instead.
7229 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7230 DEPRECTAED_EXTRACT_RETURN_VALUE,
7231 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7232 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7233 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7234 (sparc_store_return_value): Remove prototype.
7235 (sparc32_store_return_value): New prototype.
7236 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7237 Adjust prototypes.
7238
f6ad61e3
MK
72392003-05-24 Mark Kettenis <kettenis@gnu.org>
7240
7241 * sparcnbsd-tdep.c: Include "gdb_string.h".
7242
b276f1bb
AC
72432003-05-23 Andrew Cagney <cagney@redhat.com>
7244
7245 * p-valprint.c (pascal_val_print): Replace extract_address with
7246 the inline equivalent extract_unsigned_integer.
7247 * jv-valprint.c (java_value_print): Ditto.
7248 * ada-valprint.c (ada_val_print_1): Ditto.
7249 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7250
e76c5fcc
TR
72512003-05-23 Theodore A. Roth <troth@openavr.org>
7252
7253 * blockframe.c (frameless_look_for_prologue): Remove unused
7254 after_prologue variable.
7255
2cdd89cb
MK
72562003-05-23 Mark Kettenis <kettenis@gnu.org>
7257
7258 * blockframe.c (get_pc_function_start): Rewrite to avoid
7259 asignments in if-statements.
7260
182d43bc
EZ
72612003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7262
7263 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7264 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7265 files, don't relocate absolute symbols (and do use mst_abs).
7266
e8f3fcdd
AC
72672003-05-23 Andrew Cagney <cagney@redhat.com>
7268
7269 * objc-lang.c: Include "gdb_assert.h".
7270 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7271 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7272 (gdb_check, gdb_check_fatal): Delete functions.
7273 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7274 gdb_assert.
7275 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7276 * Makefile.in (objc-lang.o): Update dependencies.
7277
3c23e6fb
ILT
72782003-05-22 Ian Lance Taylor <ian@airs.com>
7279
7280 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7281 with fprintf_filtered, not fprintf_unfiltered.
7282
af1342ab
AC
72832003-05-22 Andrew Cagney <cagney@redhat.com>
7284
7285 * stack.c (frame_info): Inline extract_address, replacing it with
7286 extract_unsigned_integer.
7287 * findvar.c (unsigned_pointer_to_address): Ditto.
7288 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7289 * dwarf2expr.c (dwarf2_read_address): Ditto.
7290 * frame.c (frame_pc_unwind): Update comment.
7291 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7292
47e242ec
JJ
72932003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7294
7295 * infptrace.c (detach): Call print_sys_errmsg rather than
7296 perror_with_name to issue warning message when errno is non-zero
7297 after calling ptrace detach.
7298
e2ac8128
JB
72992003-05-21 J. Brobecker <brobecker@gnat.com>
7300
7301 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7302 macro definitions from here...
7303 * hppa-tdep.c: ...to there.
7304
92b3541e
KB
73052003-05-20 Kevin Buettner <kevinb@redhat.com>
7306
7307 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7308 register_ptrace_addr(). Fix all callers.
7309
55809acb
AS
73102003-05-21 Andreas Schwab <schwab@suse.de>
7311
7312 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7313 dependencies.
7314 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7315 end.
7316 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7317 (_initialize_m68k_linux_tdep): New function.
7318 (m68k_linux_frame_saved_pc): Make static.
7319 (m68k_linux_extract_return_value): Likewise.
7320 (m68k_linux_store_return_value): Likewise.
7321 (m68k_linux_extract_struct_value_address): Likewise.
7322 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7323 Remove.
7324 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7325 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7326 (DEPRECATED_FRAME_SAVED_PC): Remove.
7327
0fbc10f7
KW
73282003-05-20 Kris Warkentin <kewarken@qnx.com>
7329
7330 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7331 regset numbering rather than our own.
7332
58da2eb2
DC
73332003-05-19 David Carlton <carlton@bactrian.org>
7334
7335 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7336
1fcb5155
DC
73372003-05-19 David Carlton <carlton@bactrian.org>
7338
7339 Partial fix for PR c++/827.
7340 * cp-support.h: Include symtab.h.
7341 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7342 * cp-namespace.c: Update contributors.
7343 (cp_lookup_symbol_nonlocal): New.
7344 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7345 (lookup_symbol_file): Ditto.
7346 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7347 * block.h: Declare block_scope, block_using, block_global_block.
7348 * block.c (block_scope): New.
7349 (block_using, block_global_block): Ditto.
7350 * Makefile.in (cp_support_h): Depend on symtab_h.
7351 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7352
5f9a71c3
DC
73532003-05-19 David Carlton <carlton@bactrian.org>
7354
7355 * language.h (struct language_defn): Add 'la_value_of_this'
7356 and 'la_lookup_symbol_nonlocal' members.
7357 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7358 lookup_symbol_static, lookup_symbol_global,
7359 lookup_symbol_aux_block.
7360 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7361 if we should search fields of this and how to do static/global
7362 lookup.
7363 (lookup_symbol_aux_block): Make extern.
7364 (basic_lookup_symbol_nonlocal): New.
7365 (lookup_symbol_static, lookup_symbol_global): Ditto.
7366 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7367 'la_lookup_symbol_nonlocal' members.
7368 * c-lang.c (c_language_defn, cplus_language_defn)
7369 (asm_language_defn, minimal_language_defn): Ditto.
7370 * jv-lang.c (java_language_defn): Ditto.
7371 * language.c (unknown_language_defn, auto_language_defn)
7372 (local_language_defn): Ditto.
7373 * m2-lang.c (m2_language_defn): Ditto.
7374 * objc-lang.c (objc_language_defn): Ditto.
7375 * scm-lang.c (scm_language_defn): Ditto.
7376 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7377 * p-lang.c (pascal_language_defn): Ditto for both.
7378 * Makefile.in (f-lang.o): Depend on value_h.
7379 (p-lang.o): Ditto.
7380
89a9d1b1
DC
73812003-05-19 David Carlton <carlton@bactrian.org>
7382
7383 * block.h: Declare block_static_block.
7384 * block.c (block_static_block): New.
7385 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7386 lookup_symbol_aux_local, calling block_static_block instead.
7387 (lookup_symbol_aux_local): Delete 'static_block' argument.
7388
eed3f8ab
DC
73892003-05-19 David Carlton <carlton@bactrian.org>
7390
7391 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7392
a09d8bda
ML
73932003-05-19 Michal Ludvig <mludvig@suse.cz>
7394
7395 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7396 register numbers mapping.
7397
69636828
AF
73982003-05-18 Adam Fedor <fedor@gnu.org>
7399
7400 * symtab.c (completion_list_objc_symbol): New function.
7401 (make_symbol_completion_list): Use it to add ObjC symbols
7402 when looking though the list.
7403 (language_search_unquoted_string): New function.
7404 (make_file_symbol_completion_list): Use it.
7405
55baeb84
AS
74062003-05-18 Andreas Schwab <schwab@suse.de>
7407
d0b45d99
AS
7408 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7409 dependencies.
7410 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7411 as m68k_linux_extract_return_value.
7412 (DEPRECATED_STORE_RETURN_VALUE): Define as
7413 m68k_linux_store_return_value.
7414 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7415 m68k_linux_extract_struct_value_address.
7416 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7417 get_next_frame, get_frame_base, get_frame_pc.
7418 (m68k_linux_frame_saved_pc): Use get_frame_base.
7419 (m68k_linux_extract_return_value): New function.
7420 (m68k_linux_store_return_value): New function.
7421 (m68k_linux_extract_struct_value_address): New function.
7422 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7423
55baeb84
AS
7424 * c-exp.y (typebase): Remove duplicate occurence of
7425 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7426 of lookup_signed_typename.
55baeb84 7427
b6b08ebf
MK
74282003-05-18 Mark Kettenis <kettenis@gnu.org>
7429
7430 * dwarf2loc.c (find_location_expression): Change type of second
7431 argument to `size_t *'.
7432 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7433 for size variable.
7434
5ad1c190
DC
74352003-05-18 David Carlton <carlton@bactrian.org>
7436
7437 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7438 'linkage_name'. Add comment.
7439 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7440 'linkage_name'.
7441 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7442 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7443 (lookup_block_symbol): Ditto.
7444
b8b527c5
AC
74452003-05-16 Andrew Cagney <cagney@redhat.com>
7446
7447 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7448 * gdbarch.h, gdbarch.c: Re-generate.
7449 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7450 * TODO (REGISTER_BYTES): Delete reference.
7451 * alpha-tdep.c (alpha_gdbarch_init): Update.
7452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7453 * x86-64-tdep.c (x86_64_init_abi): Update.
7454 * vax-tdep.c (vax_gdbarch_init): Update.
7455 * v850-tdep.c (v850_gdbarch_init): Update.
7456 * sparc-tdep.c (sparc_gdbarch_init): Update.
7457 * sh-tdep.c (sh_gdbarch_init): Update.
7458 * s390-tdep.c (s390_gdbarch_init): Update.
7459 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7460 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7461 (ns32k_gdbarch_init_32382): Update.
7462 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7463 * mcore-tdep.c (mcore_gdbarch_init): Update.
7464 * m68k-tdep.c (m68k_gdbarch_init): Update.
7465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7466 * ia64-tdep.c (ia64_gdbarch_init): Update.
7467 * i386-tdep.c (i386_gdbarch_init): Update.
7468 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7469 * hppa-tdep.c (hppa_gdbarch_init): Update.
7470 * h8300-tdep.c (h8300_gdbarch_init): Update.
7471 * frv-tdep.c (frv_gdbarch_init): Update.
7472 * cris-tdep.c (cris_gdbarch_init): Update.
7473 * avr-tdep.c (avr_gdbarch_init): Update.
7474 * arm-tdep.c (arm_gdbarch_init): Update.
7475 * sparc-tdep.c (sparc_pop_frame): Update.
7476 * rs6000-tdep.c (rs6000_pop_frame): Update.
7477 * remote.c (init_remote_state): Update.
7478 (remote_prepare_to_store): Update.
7479 * remote-vx.c (vx_prepare_to_store): Update.
7480 * remote-sds.c (sds_fetch_registers): Update.
7481 (sds_prepare_to_store): Update.
7482 * remote-array.c: Update.
7483 * regcache.c (init_legacy_regcache_descr): Update.
7484 (init_regcache_descr): Update.
7485 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7486 (mips_o64_extract_return_value): Update.
7487 * irix5-nat.c (fetch_core_registers): Update.
7488 * irix4-nat.c (fetch_core_registers): Update.
7489 * i386-tdep.h: Update.
7490 * hppa-tdep.c (pa_do_registers_info): Update.
7491 (pa_do_strcat_registers_info): Update.
7492 * cris-tdep.c (cris_register_bytes_ok): Update.
7493 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7494 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7495 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7496 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7497 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7498 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7499 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7500 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7501 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7502 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7503 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7504 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7505 (REGISTER_BYTES_OK): Update.
7506 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7507 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7508
ee2842e2
ILT
75092003-05-16 Ian Lance Taylor <ian@airs.com>
7510
7511 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7512 (vax_print_insn, print_insn_arg): Remove static functions.
7513 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7514 print_insn_vax from opcodes library.
7515 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7516
973177d3
AC
75172003-05-15 Andrew Cagney <cagney@redhat.com>
7518
aaab4dba
AC
7519 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7520 * target.h (memory_breakpoint_from_pc): Delete declaration.
7521 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7522 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7523 * monitor.c (monitor_insert_breakpoint): Use
7524 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7525 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7526 * gdbarch.h, gdbarch.c: Re-generate.
7527 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7528 (sparc_gdbarch_init): Set breakpoint_from_pc to
7529 sparc_breakpoint_from_pc.
7530 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7531 (BREAKPOINT_FROM_PC): Define.
7532 (sparc_breakpoint_from_pc): Declare.
7533 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7534 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7535 (BREAKPOINT_FROM_PC): Define.
7536 (BREAKPOINT): Delete macro.
7537 * target.h: Update comment.
7538 * s390-tdep.c (s390_gdbarch_init): Update comments.
7539 * remote.c: Update comments.
7540 * remote-mips.c: Update comments.
7541 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7542 * mem-break.c: Update comment.
7543 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7544 (ia64_memory_insert_breakpoint): Update.
7545 * config/sparc/tm-sparc.h: Update comment.
7546 * config/pa/tm-hppa64.h: Update comment.
7547 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7548 (rs6000_breakpoint_from_pc): Update.
7549 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7550 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7551 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7552 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7553 (mips_breakpoint_from_pc): Update.
7554 (mips_dump_tdep): Update.
7555
e06963ff
AC
7556 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7557 * minsyms.c (lookup_minimal_symbol): Inline
7558 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7559
973177d3
AC
7560 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7561 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7562 * p-lang.c (pascal_printstr): Ditto.
7563 * objc-lang.c (objc_printstr): Ditto.
7564 * m2-lang.c (m2_printstr): Ditto.
7565 * jv-valprint.c (java_print_value_fields): Ditto.
7566 * f-lang.c (f_printstr): Ditto.
7567 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7568 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7569 for repeat_count_threshold.
7570 * Makefile.in (cp-valprint.o): Update dependencies.
7571
5ea2bd7f 75722003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7573
5ea2bd7f
JJ
7574 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7575 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7576 they start with mov r2,r12. Support skipping over indirect stores
7577 of the input registers. Upon hitting a non-nop branch instruction
7578 or predicated instruction, bail out by setting lim_pc to the current
7579 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7580 beyond our calculated value and we have trust_limit set,
7581 use the lim_pc value.
7582
cc8c88f3
AC
75832003-05-15 Andrew Cagney <cagney@redhat.com>
7584
7585 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7586 generic_find_dummy_frame.
7587 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7588 (deprecated_generic_find_dummy_frame): Update.
7589 (deprecated_read_register_dummy): Update.
7590 * frame.c (deprecated_generic_get_saved_register): Update.
7591
909cd28e
TR
75922003-05-15 Theodore A. Roth <troth@openavr.org>
7593
7594 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7595 (avr_gdbarch_init): Set breakpoint_from_pc method.
7596
b923b08d
AC
75972003-05-15 Andrew Cagney <cagney@redhat.com>
7598
7599 * regcache.c (build_regcache): Set deprecated_register_valid
7600 directly.
7601 (deprecated_grub_regcache_for_register_valid): Delete function.
7602 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7603 declaration.
7604
ae2f03ac 76052003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7606
7607 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7608 * symtab.c (lookup_symbol_aux): Delete calls to
7609 lookup_symbol_aux_minsyms.
7610 (lookup_symbol_aux_minsyms): Comment out function and
7611 prototype. Delete lookup by mangled name.
ae2f03ac 7612
18ec9831
KB
76132003-05-14 Kevin Buettner <kevinb@redhat.com>
7614
7615 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7616 correctly indicate an empty stack and ``stack_allocated'' to the
7617 indicate the number of elements initially allocated.
7618 (dwarf_expr_grow_stack): Simplify method for computing new
7619 stack size. Don't loop infinitely if ``stack_len'' is zero.
7620 (execute_stack_op): Move ``ctx->in_reg'' initialization
7621 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7622 be used in conjuction with DW_OP_piece. Revise error message
7623 accordingly.
7624
de18ac1f
TR
76252003-05-14 Theodore A. Roth <troth@openavr.org>
7626
7627 * MAINTAINERS: Update my email address.
7628 * avr-tdep.c: Ditto.
7629
176620f1
EZ
76302003-05-14 Elena Zannoni <ezannoni@redhat.com>
7631
7632 * symtab.h (enum domain_enum): Rename from namespace_enum.
7633 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7634 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7635 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7636 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7637 TYPES_NAMESPACE, METHODS_NAMESPACE.
7638 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7639 (struct symbol, struct partial_symbol): Rename field
7640 'namespace_enum namespace' to 'domain_enum domain'.
7641 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7642 Delete old define kludge for namespace.
7643
7644 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7645 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7646 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7647 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7648 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7649 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7650 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7651 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7652 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7653 occurrences of the above.
7654
b7f31508
ILT
76552003-05-14 Ian Lance Taylor <ian@airs.com>
7656
7657 * Makefile.in (install-only): Use $(SHELL) when running
7658 mkinstalldirs.
7659
2fdbdd39
ILT
76602003-05-13 Ian Lance Taylor <ian@airs.com>
7661
a208d82c
ILT
7662 * MAINTAINERS (write after approval): Add myself.
7663
2fdbdd39
ILT
7664 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7665 second and third arguments.
7666 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7667 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7668
fbd9dcd3
AC
76692003-05-13 Andrew Cagney <cagney@redhat.com>
7670
7671 * defs.h (store_address): Delete declaration.
7672 findvar.c (store_address): Delete function.
7673 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7674 store_unsigned_integer.
7675 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7676 * v850-tdep.c (v850_push_arguments): Ditto.
7677 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7678 * sh-tdep.c (sh64_get_saved_register): Ditto.
7679 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7680 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7681 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7682 (mips_get_saved_register): Ditto.
7683 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7684 (find_func_descr, ia64_push_arguments): Ditto.
7685 * i386-tdep.c (i386_push_arguments): Ditto.
7686 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7687 * frv-tdep.c (frv_push_arguments): Ditto.
7688 * frame.c (legacy_saved_regs_prev_register): Ditto.
7689 (deprecated_generic_get_saved_register): Ditto.
7690 * findvar.c (unsigned_address_to_pointer): Ditto.
7691 * dwarf2read.c (dwarf2_const_value): Ditto.
7692 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7693 * alpha-tdep.c (alpha_push_arguments): Ditto.
7694
6760f9e6
JB
76952003-05-12 J. Brobecker <brobecker@gnat.com>
7696
7697 * NEWS: Mention that the hppa-hpux port has been partially
7698 multiarched (32bit ABIT only, so far).
7699
30e221b4
AC
77002003-05-11 Andrew Cagney <cagney@redhat.com>
7701
7702 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7703 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7704 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7705 sim/testsuite/sim/arm/misaligned2.ms, and
7706 sim/testsuite/sim/arm/misaligned3.ms.
7707 * disasm.h (struct ui_file): Add opaque struct declaration.
7708 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7709 * frame.h (struct ui_file): Ditto.
7710
dea7f9ba
MK
77112003-05-11 Mark Kettenis <kettenis@gnu.org>
7712
7713 * value.h: Pretty print.
7714
01986c48
MK
77152003-05-10 Mark Kettenis <kettenis@gnu.org>
7716
7717 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7718
123a958e
AC
77192003-05-08 Andrew Cagney <cagney@redhat.com>
7720
7721 * regcache.h (max_register_size): Delete declaration.
7722 * regcache.c (max_register_size): Delete function.
7723 (struct regcache_descr): Delete field "max_register_size".
7724 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7725 registers fit in MAX_REGISTER_SIZE.
7726 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7727 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7728 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7729 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7730 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7731 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7732 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7733 * dve3900-rom.c, hppa-tdep.c: Ditto.
7734
eb294659
DC
77352003-05-08 David Carlton <carlton@math.stanford.edu>
7736
7737 * valops.c (push_word): Fix typo.
7738
d9d9c31f
AC
77392003-05-08 Andrew Cagney <cagney@redhat.com>
7740
7741 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7742 * gdbarch.h: Re-generate.
7743 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7744 (legacy_max_register_raw_size): Delete declaration.
7745 * regcache.c (legacy_max_register_raw_size): Delete function.
7746 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7747 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7748 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7749 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7750 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7751 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7752 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7753 * findvar.c, dwarf2cfi.c: Ditto.
7754
22540ece
AC
77552003-05-08 Andrew Cagney <cagney@redhat.com>
7756
7757 * mips-tdep.c (read_signed_register): New function, moved to here
7758 from "regcache.c".
7759 (read_signed_register_pid): Ditto.
7760 * regcache.c (read_signed_register_pid): Delete function, moved to
7761 "mips-tdep.c".
7762 (read_signed_register): Ditto.
7763 * regcache.h (read_signed_register): Delete declaration.
7764 (read_signed_register_pid): Delete declaration.
7765
0c92afe8
AC
77662003-05-08 Andrew Cagney <cagney@redhat.com>
7767
7768 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7769 * gdbarch.h: Re-generate.
7770 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7771 (legacy_max_register_virtual_size): Delete declaration.
7772 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7773 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7774 * tracepoint.c (memrange_sortmerge): Ditto.
7775 * sparc-tdep.c (sparc_print_registers): Ditto.
7776 * regcache.c (legacy_max_register_virtual_size): Delete function.
7777
6037b830
JB
77782002-05-08 J. Brobecker <brobecker@gnat.com>
7779
7780 * fork-child.c (escape_bang_in_quoted_argument): New function.
7781 (fork_inferior): Escape '!' characters in quoted arguments
7782 only when needed.
7783
5d62c8b1
JB
77842003-05-08 J. Brobecker <brobecker@gnat.com>
7785
7786 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7787 the language of the CU is not currently supported by GDB.
7788
20a0e81d
JB
77892003-05-08 J. Brobecker <brobecker@gnat.com>
7790
7791 * defs.h (language): Add language_minimal enum value.
7792 * c-lang.c (minimal_language_defn): New language definition.
7793 (_initialize_c_language): Add the new minimal language to the list
7794 of languages known to GDB.
7795
710ee10a
KB
77962003-05-08 Kevin Buettner <kevinb@redhat.com>
7797
7798 * frame.c (get_frame_type): Don't attempt to lazily initialize
7799 frame's unwinder for legacy frames.
7800
1750fa04
AC
78012003-05-07 Andrew Cagney <cagney@redhat.com>
7802
7803 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7804 and "regcache" parameters.
7805 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7806
ddf9f258 78072003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7808
7809 * dwarf2read.c (dwarf_decode_lines): Only use output of
7810 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7811 the current address.
7812
87767c29
AC
78132003-05-07 Andrew Cagney <cagney@redhat.com>
7814
7815 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7816 code.
7817
5e7b2f39
JB
78182003-05-07 Jim Blandy <jimb@redhat.com>
7819
7820 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7821 'maint info symtabs' and 'maint info psymtabs'.
7822 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7823 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7824 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7825 Declarations updated.
7826 * maint.c (maintenance_list_command): Delete.
7827 (_initialize_maint_cmds): Update calls to add_cmd.
7828 * gdbcmd.h (maintenancelistlist): Delete declaration.
7829 * cli/cli-cmds.c (maintenancelistlist): Delete.
7830 (init_cmd_lists): Don't initialize it.
7831 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7832
f6684c31
AC
78332003-05-07 Andrew Cagney <cagney@redhat.com>
7834
7835 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7836 "regcache".
7837 (d10v_print_registers_info): Update.
7838 (d10v_dmap_register, d10v_imap_register): Delete functions.
7839 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7840 and "imap_register".
7841 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7842 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7843 * arch-utils.c (generic_remote_translate_xfer_address): Add
7844 "regcache" and "gdbarch" parameters.
7845 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7846 parameter. Change class to multi-arch.
7847 * gdbarch.h, gdbarch.c: Re-generate.
7848 * remote.c (remote_xfer_memory): Use
7849 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7850
e4846b08
JJ
78512003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7852
7853 * infrun.c (prev_pc): Move declaration ahead of proceed().
7854 (proceed): Refresh prev_pc value before resuming.
7855 (stop_stepping): Remove code to refresh prev_pc.
7856
6b71b8ac
KW
78572003-05-06 Kris Warkentin <kewarken@qnx.com>
7858
7859 * nto-tdep.c: Removed stray comment.
7860
47979a4b
KW
78612003-05-06 Kris Warkentin <kewarken@qnx.com>
7862
7863 * i386-nto-tdep.c: Fix old K&R function definitions.
7864 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7865 Also change add_show_from_set() call to add_setshow_cmd().
7866 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7867
00905d52
AC
78682003-05-05 Andrew Cagney <cagney@redhat.com>
7869
7870 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7871 (fprint_dummy_frames): New function.
7872 (maintenance_print_dummy_frames): New function.
7873 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7874 * frame.c (fprint_frame_id): Make global.
7875 * frame.h (fprint_frame_id): Declare.
7876 * Makefile.in (dummy-frame.o): Update dependencies.
7877
b1e29e33
AC
78782003-05-05 Andrew Cagney <cagney@redhat.com>
7879
7880 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7881 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7882 SIZEOF_CALL_DUMMY_WORDS.
7883 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7884 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7885 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7886 CALL_DUMMY_BREAKPOINT_OFFSET.
7887 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7888 CALL_DUMMY_START_OFFSET.
7889 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7890 * gdbarch.h, gdbarch.c: Re-generate.
7891 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7892 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7893 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7894 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7895 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7896 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7897 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7898 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7899 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7900 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7901 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7902 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7903 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7904 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7905 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7906
79072003-05-05 Kris Warkentin <kewarken@qnx.com>
7908
7909 * configure.tgt: Add i[3456]86-*-nto*.
7910 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7911 * nto-tdep.c: New file. Neutrino target support routines.
7912 * nto-tdep.h: New file. Neutrino target header.
7913 * config/tm-qnxnto.h: New file.
7914 * config/i386/i386nto.mt: New file.
7915 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7916
0ce3d317
AC
79172003-05-04 Andrew Cagney <cagney@redhat.com>
7918
7919 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7920 (load_infrun_state): Ditto.
7921 (struct thread_info): Drop "prev_func_name" field.
7922 * thread.c (load_infrun_state): Update.
7923 (save_infrun_state): Update.
7924 * infrun.c (prev_func_name): Delete variable.
7925 (init_wait_for_inferior): Do not clear prev_func_name.
7926 (stop_stepping, keep_going, context_switch): Do not swap
7927 prev_func_name.
7928 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7929 instead of PC_IN_SIGTRAMP.
7930
46654a5b
AC
79312003-05-04 Andrew Cagney <cagney@redhat.com>
7932
7933 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7934 REGISTER_BYTE with register_offset_hack.
7935 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7936 that REGISTER_BYTE is consistent with the regcache.
7937 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7938 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7939
14b08c1b
MK
79402003-05-04 Mark Kettenis <kettenis@gnu.org>
7941
04c8243f
MK
7942 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7943 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7944
14b08c1b
MK
7945 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7946
c7a11e01
JB
79472003-05-03 J. Brobecker <brobecker@gnat.com>
7948
7949 From Thierry Schneider <tpschneider1@yahoo.com>
7950 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7951 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7952 (mi-cmd-symbol.o): Add rule.
7953
7043d8dc
AC
79542003-05-03 Andrew Cagney <cagney@redhat.com>
7955
7956 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7957 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7958 * gdbarch.h, gdbarch.c: Re-generate.
7959 * d10v-tdep.c (d10v_push_dummy_code): New function.
7960 (d10v_gdbarch_init): Set push_dummy_code.
7961 * infcall.c (legacy_push_dummy_code): New function.
7962 (generic_push_dummy_code): New function.
7963 (push_dummy_code): New function.
7964 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7965 instead of dummy_addr, to push_dummy_call. Move call to
7966 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7967 switch.
7968 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7969
92bf2b80
AC
79702003-05-03 Andrew Cagney <cagney@redhat.com>
7971
7972 * disasm.h (print_insn): Declare.
7973 * disasm.c (init_gdb_disassemble_info): New function.
7974 (gdb_disassembly): Call init_gdb_disassemble_info.
7975 (gdb_print_insn): New function.
7976 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7977 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7978 * mcore-tdep.c: Include "disasm.h"
7979 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7980 * d10v-tdep.c: Include "disasm.h".
7981 (display_trace): Call gdb_print_insn, instead of print_insn.
7982 (print_insn): Delete function.
7983 * printcmd.c: Include "disasm.h".
7984 (print_insn): Delete function.
7985 (print_formatted): Call gdb_print_insn, instead of print_insn.
7986 * Makefile.in (printcmd.o): Update dependencies.
7987 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7988
27d94c49
AC
79892003-05-02 Andrew Cagney <cagney@redhat.com>
7990
82de1e5b
AC
7991 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7992 PC_REGNUM, re-indent.
7993 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7994 PC_REGNUM isn't set.
7995
27d94c49
AC
7996 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7997 * gdbarch.h, gdbarch.c: Re-generate.
7998 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7999 register_virtual_size, pc_regnum, or register_bytes.
8000 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8001 (d10v_register_type): Use D10V_PC_REGNUM.
8002 (d10v_print_registers_info, d10v_read_pc): Ditto.
8003 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8004 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8005
a9c0dc7f
DC
80062003-05-02 David Carlton <carlton@bactrian.org>
8007
8008 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8009 the name with mstrsave.
8010
e33d66ec
EZ
80112003-05-02 Elena Zannoni <ezannoni@redhat.com>
8012
8013 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8014 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8015 (host_charset_name, target_charset_name): New vars for use by
8016 set/show commands.
8017 (host_charset_enum, target_charset_enum): New enums for set/show
8018 commands.
8019 (set_charset_sfunc, set_host_charset_sfunc,
8020 set_target_charset_sfunc): New functions.
8021 (set_host_charset, set_target_charset): Make static.
8022 (list_charsets, set_host_charset_command,
8023 set_target_charset_command): Delete functions.
8024 (show_charset_command): Rewrite as....
8025 (show_charset): Hook this up with the set/show command mechanism.
8026 (_initialize_charset): Change names of charsets to match the
8027 set/show enums. Use host_charset_name and target_charset_name.
8028 Use set/show mechanism for charset, host-charset, target-charset
8029 commands. Do not make 'show host-charset' and 'show
8030 target-charset' be aliases of 'show charset'.
8031
8032 * charset.h (set_host_charset, set_target_charset): Don't export,
8033 they are not used outside the file.
8034
2b6fd0d8
AC
80352003-05-01 Andrew Cagney <cagney@redhat.com>
8036
8037 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8038 (gdb_disassembly): Make "di" non static, always initialize and
8039 cleanup. Always use dis_asm_read_memory.
8040 (gdb_dis_asm_read_memory): Delete function.
8041
6ae2f580
AC
80422003-05-01 Andrew Cagney <cagney@redhat.com>
8043
8044 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8045 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8046
810ecf9f
AC
80472003-04-30 Andrew Cagney <cagney@redhat.com>
8048
8049 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8050 "tm_print_insn_info".
8051 (TARGET_PRINT_INSN_INFO): Delete macro.
8052 (dis_asm_read_memory): Delete function declaration.
8053 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8054 (tm_print_insn_info): Delete variable definition.
8055 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8056 * gdbarch.h, gdbarch.c: Re-generate.
8057 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8058 "deprecated_tm_print_insn_info".
8059 * mcore-tdep.c (mcore_dump_insn): Ditto.
8060 * mips-tdep.c (mips_gdbarch_init): Ditto.
8061 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8062 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8063 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8064 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8065 instead of TARGET_PRINT_INSN_INFO, add comment.
8066 * s390-tdep.c (s390_get_frame_info): Instead of
8067 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8068 (s390_check_function_end, s390_is_sigreturn): Ditto.
8069 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8070 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8071 * disasm.c: Include "gdbcore.h".
8072 (_initialize_disasm): New function, initialize
8073 "deprecated_tm_print_insn_info".
8074 (deprecated_tm_print_insn_info): New variable.
8075 (dis_asm_read_memory): Moved from "corefile.c", made static.
8076 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8077 * Makefile.in (disasm.o): Update dependencies.
8078
07020390
AC
80792003-04-30 Andrew Cagney <cagney@redhat.com>
8080
8081 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8082
a9fa03de
AF
80832003-04-29 Adam Fedor <fedor@gnu.org>
8084
8085 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8086 * infcall.c (find_function_addr): Make non-static.
8087 * infcall.h (find_function_addr): Declare.
8088 * Makefile.in (eval.o): Update dependencies.
8089
1bae87b9
AF
80902003-04-28 Adam Fedor <fedor@gnu.org>
8091
8092 * symtab.c (symbol_find_demangled_name): Check for and demangle
8093 ObjC symbols.
8094 (symbol_init_demangled_name): Init for language_objc as well.
8095
0ba6dca9
AC
80962003-04-28 Andrew Cagney <cagney@redhat.com>
8097
8098 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8099 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8100 * gdbarch.h, gdbarch.c: Re-generate.
8101 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8102 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8103 * inferior.h (deprecated_read_fp): Rename read_fp.
8104 (generic_target_read_fp): Delete declaration.
8105 * regcache.c (generic_target_read_fp): Delete function.
8106 (deprecated_read_fp): Replace read_fp, use
8107 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8108 * d10v-tdep.c (d10v_read_fp): Delete function.
8109 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8110
8111 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8112 deprecated_target_read_fp to generic_target_read_fp.
8113 * sh-tdep.c (sh_gdbarch_init): Ditto.
8114 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8116 * frv-tdep.c (frv_gdbarch_init): Ditto.
8117
8118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8119 deprecated_fp_regnum.
8120 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8121 * vax-tdep.c (vax_gdbarch_init): Ditto.
8122 * v850-tdep.c (v850_gdbarch_init): Ditto.
8123 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8124 * sh-tdep.c (sh_gdbarch_init): Ditto.
8125 * s390-tdep.c (s390_gdbarch_init): Ditto.
8126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8128 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8129 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8131 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8132 * i386-tdep.c (i386_gdbarch_init): Ditto.
8133 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8134 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8135 * frv-tdep.c (frv_gdbarch_init): Ditto.
8136 * cris-tdep.c (cris_gdbarch_init): Ditto.
8137 * avr-tdep.c (avr_gdbarch_init): Ditto.
8138 * arm-tdep.c (arm_gdbarch_init): Ditto.
8139 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8140
8141 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8142 * v850-tdep.c (v850_gdbarch_init): Ditto.
8143 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8144 * sh-tdep.c (sh_gdbarch_init): Ditto.
8145 * s390-tdep.c (s390_gdbarch_init): Ditto.
8146 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8148 * mips-tdep.c (mips_gdbarch_init): Ditto.
8149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8150 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8151 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8152 * frv-tdep.c (frv_gdbarch_init): Ditto.
8153 * avr-tdep.c (avr_gdbarch_init): Ditto.
8154 * arm-tdep.c (arm_gdbarch_init): Ditto.
8155
8156 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8157 DEPRECATED_FP_REGNUM.
8158 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8159 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8160 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8161 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8162 (sparc32_register_virtual_type): Ditto.
8163 * sh-tdep.c (sh64_frame_chain): Ditto.
8164 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8165 (sh_nofp_frame_init_saved_regs): Ditto.
8166 (sh64_nofp_frame_init_saved_regs): Ditto.
8167 (sh_fp_frame_init_saved_regs): Ditto.
8168 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8169 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8170 * procfs.c (procfs_fetch_registers): Ditto.
8171 (procfs_store_registers): Ditto.
8172 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8173 (store_inferior_registers, fetch_core_registers): Ditto.
8174 (fetch_kcore_registers, clear_regs): Ditto.
8175 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8176 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8177 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8178 * nlm/i386.c (do_status): Ditto.
8179 * mipsv4-nat.c (supply_gregset): Ditto.
8180 * mips-tdep.c: Ditto for comments.
8181 * mips-nat.c (fetch_inferior_registers): Ditto.
8182 (store_inferior_registers, fetch_core_registers): Ditto.
8183 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8184 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8185 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8186 (i386_do_pop_frame, i386_register_type): Ditto.
8187 * hppa-tdep.c (hppa_frame_chain): Ditto.
8188 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8189 (hppa_pop_frame, hppa_read_fp): Ditto.
8190 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8191 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8192 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8193 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8194 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8195 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8196 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8197 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8198 * blockframe.c: Ditto for comments.
8199 * arch-utils.h: Ditto for comments.
8200 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8201 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8202 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8203 * alpha-tdep.h: Ditto for comments.
8204 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8205 (alpha_cannot_store_register): Ditto.
8206 (alpha_push_dummy_frame): Ditto.
8207 * alpha-nat.c (supply_gregset): Ditto.
8208
8209 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8210 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8211 * config/sparc/tm-sparc.h: Update comment.
8212
8213 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8214 deprecated_read_fp instead of TARGET_READ_FP.
8215 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8216 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8217 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8218 deprecated_read_fp instead of read_fp.
8219 * s390-tdep.c (s390_push_arguments): Ditto.
8220 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8221 * frame.h: Ditto in comments.
8222 * frame.c (legacy_get_prev_frame): Ditto.
8223 * dummy-frame.c (dummy_frame_this_id): Ditto.
8224 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8225
d7a27068
AC
82262003-04-28 Andrew Cagney <cagney@redhat.com>
8227
8228 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8229 * gdbarch.h, gdbarch.c: Re-generate.
8230 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8231 * vax-tdep.c (_initialize_vax_tdep): Update.
8232 * v850-tdep.c (_initialize_v850_tdep): Update.
8233 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8234 * s390-tdep.c (_initialize_s390_tdep): Update.
8235 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8236 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8237 * mips-tdep.c (_initialize_mips_tdep): Update.
8238 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8239 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8240 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8241 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8242 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8243 * frv-tdep.c (_initialize_frv_tdep): Update.
8244 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8245 (_initialize_cris_tdep): Update.
8246 * arch-utils.c (legacy_print_insn): Update.
8247 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8248
d2630e69
AF
82492003-04-26 Adam Fedor <fedor@gnu.org>
8250
8251 * linespec.c (decode_objc): New function to decode ObjC calls
8252 (decode_line_1): Check for ObjC calls (using decode_objc)
8253 * Makefile (linespec.o): Update dependencies.
8254
3086aeae
DJ
82552003-04-26 Daniel Jacobowitz <drow@mvista.com>
8256
8257 * breakpoint.h (struct breakpoint_ops): New.
8258 (struct breakpoint): Add ops member.
8259
8260 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8261 (mention): Use new breakpoint ops member.
8262 (set_raw_breakpoint): Initialize ops field to NULL.
8263 (print_exception_catchpoint, print_one_exception_catchpoint)
8264 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8265 (gnu_v3_exception_catchpoint_ops): New.
8266 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8267
1fbec6c3
AF
82682003-04-25 Adam Fedor <fedor@gnu.org>
8269
8270 * Makefile.in (COMMON_OBS): Add objc-lang.o
8271
0ef21242
AC
82722003-04-25 Andrew Cagney <cagney@redhat.com>
8273
8274 * d10v-tdep.c (print_insn): Delete function.
8275 (display_trace): Use TARGET_PRINT_INSN.
8276 (_initialize_d10v_tdep): Do not set tm_print_insn.
8277 (d10v_gdbarch_init): Set print_insn.
8278
f75493ed
AC
82792003-04-25 Andrew Cagney <cagney@redhat.com>
8280
8281 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8282 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8283 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8284 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8285 (nr_dmap_regs, a0_regnum): ... new functions.
8286 (d10v_print_registers_info): Use a0_regnum, use register_size.
8287 (d10v_register_byte): Delete function.
8288 (d10v_register_raw_size): Delete function.
8289 (d10v_register_type): Use a0_regnum.
8290 (d10v_print_registers_info): Use a0_regnum.
8291 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8292 (d10v_gdbarch_init): Do not set register_byte or
8293 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8294 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8295 extract_address.
8296 (trace_command): Use XCALLOC.
8297 (print_insn): Delete reference to tm_print_insn.
8298 (saved_regs_unwinder): Use store_unsigned_integer instead of
8299 store_address.
8300 * frame.h (FRAME_OBSTACK_CALLOC): Define
8301
2202b100
DC
83022003-04-25 David Carlton <carlton@bactrian.org>
8303
8304 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8305
4e45ca2e
AF
83062003-04-24 Adam Fedor <fedor@gnu.org>
8307
8308 * objc-lang.c: Include "valprint.h"
8309 * Makefile.in (objc-lang.o): Update dependencies.
8310
93de3e7f
AF
83112003-04-24 Adam Fedor <fedor@gnu.org>
8312
8ffd9b1b 8313 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8314 architecture dependant compilation and mark as unimplemented
8315 (until they get put in the gdbarch vector).
8316
0f20eeea
DC
83172003-04-23 David Carlton <carlton@bactrian.org>
8318
8319 * cp-support.c (cp_find_first_component): Accept 'operator' in
8320 more locations.
8321
74cfe982
AC
83222003-04-23 Andrew Cagney <cagney@redhat.com>
8323
8324 * infcall.c (call_function_by_hand): Eliminate redundant
8325 indentation. Move "saved_async" and "old_cleanups" to where they
8326 are needed.
8ffd9b1b 8327
52557533
AC
83282003-04-23 Andrew Cagney <cagney@redhat.com>
8329
8330 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8331 and "buffer". Move the "name" code to where it is needed.
8332
158775de
AC
83332003-04-23 Andrew Cagney <cagney@redhat.com>
8334
8335 * infcall.c (call_function_by_hand): Move variables "start_sp",
8336 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8337 code to ON_STACK switch branch.
8ffd9b1b 8338
ebc7896c
AC
83392003-04-23 Andrew Cagney <cagney@redhat.com>
8340
8341 * infcall.c (call_function_by_hand): Make declaration of "i",
8342 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8343 lint.
8344
d727590f
AC
83452003-04-23 Andrew Cagney <cagney@redhat.com>
8346
8347 * infcall.c (call_function_by_hand): Delete variable
8348 "n_method_args". Localize "param_type"'s declaration to the loop
8349 that it is used. Reinstate code assigning to said variable -
8350 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8351 Rationalize code using "param_type".
8352
d585e13a
AC
83532003-04-22 Andrew Cagney <cagney@redhat.com>
8354
8355 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8356 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8357 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8358 to DEPRECATED_PUSH_RETURN_ADDRESS.
8359
051caad9
KB
83602003-04-22 Kevin Buettner <kevinb@redhat.com>
8361
8362 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8363 on the DWARF2 register number prior to fetching a register.
8364
77296879
JB
83652003-04-22 J. Brobecker <brobecker@gnat.com>
8366
8367 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8368 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8369 this macro was always set to 0.
77296879
JB
8370 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8371 considering the fact that this macro was always set to 0.
8372 * hppa-tdep.h (hppa_store_return_value): Likewise.
8373 (hppa_extract_return_value): Likewise.
8374
4252f1df
JB
83752003-04-22 J. Brobecker <brobecker@gnat.com>
8376
8377 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8378 the hppa-pro target only.
8379
14604c6b
JB
83802003-04-21 J. Brobecker <brobecker@gnat.com>
8381
8382 Ongoing multi-arch conversion effort for HP/UX:
8383 * config/pa/tm-hppa.h: Move all macro that are no longer
8384 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8385 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8386
77eb01d1
JB
83872003-04-21 J. Brobecker <brobecker@gnat.com>
8388
8389 * config/pa/tm-hppa.h: Obsolete a section that was only used
8390 for hppa-pro.
8391
61995b3b
JB
83922003-04-21 J. Brobecker <brobecker@gnat.com>
8393
8394 Ongoing multi-arch conversion for HP/UX.
8395 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8396 if already defined (allows hppa64 to stay non-multiarched for now).
8397 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8398
4aa79dcc
AC
83992003-04-21 Andrew Cagney <cagney@redhat.com>
8400
8401 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8402
0f751ff2
AC
84032003-04-21 Andrew Cagney <cagney@redhat.com>
8404
8405 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8406 "i386_num_mmx_regs".
8407
04714b91
AC
84082003-04-21 Andrew Cagney <cagney@redhat.com>
8409
8410 * infcall.c: New file.
8411 * infcall.h: New file.
8412 * valarith.c: Include "infcall.h".
8413 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8414 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8415 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8416 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8417 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8418 (SFILES): Add "infcall.c"
8419 (COMMON_OBS): Add "infcall.o".
8420 (infcall.o): Specify dependencies.
8421 * value.h (call_function_by_hand): Delete declaration.
8422 * inferior.h (run_stack_dummy): Delete declaration.
8423 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8424 (run_stack_dummy): Move to "infcall.c", merged into
8425 call_function_by_hand.
8426 * valops.c (call_function_by_hand): Moved to "infcall.c".
8427 (find_function_addr, value_arg_coerce): Ditto.
8428 (unwindonsignal_p, coerce_float_to_double): Ditto.
8429 (_initialize_valops): Move "set/show coerce-float-to-double", and
8430 "set/show unwindonsignal" commands to "infcall.c".
8431 * v850-tdep.c, target.h: Update comments.
8432 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8433 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8434 (sh64_init_extra_frame_info): Update comments.
8435 * mn10300-tdep.c: Update comments.
8436 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8437 * config/sparc/tm-sparc.h: Update comments.
8438 * breakpoint.h: Update comments.
8439 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8440 * arm-tdep.c: Update comment.
8441
f9d3c2a8
MK
84422003-04-19 Mark Kettenis <kettenis@gnu.org>
8443
c40e1eab
MK
8444 * i386-tdep.c (i386_num_register_names): New variable.
8445 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8446 (MM0_REGNUM): Remove redundant parentheses in define.
8447 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8448 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8449 i386_mxcsr_regnum_p): Remove redundant parentheses.
8450 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8451
94ea66b3
MK
8452 * i386-tdep.c (i386_extract_return_value,
8453 i386_store_return_value): Correct check for availability of
8454 floating-point registers.
8455
54299a1d
MK
8456 * i386-tdep.c (i386_frame_num_args): Remove function.
8457 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8458
c86c27af
MK
8459 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8460 mmx_regnum_to_fp_regnum. Adjust all callers.
8461
f9d3c2a8
MK
8462 * i386-tdep.c (i386_get_longjmp_target): Use
8463 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8464 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8465 extract_address.
8466
94ba74a9
MK
84672003-04-19 Mark Kettenis <kettenis@gnu.org>
8468
8469 * core-regset.c: Update comments to reflect reality. Re-order
8470 includes.
8471 (fetch_core_registers): Use switch instead of if. Remove
8472 redundant prototype.
8473
4074e13c
JB
84742003-04-18 Jim Blandy <jimb@redhat.com>
8475
8476 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8477 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8478
e3ab4aba
RH
84792003-04-17 Richard Henderson <rth@redhat.com>
8480
8481 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8482
627bf7c1
EZ
84832003-04-17 Michael Snyder <msnyder@redhat.com>
8484 Karen Bennet <bennet@redhat.com>
8485
8486 Committed by Elena Zannoni <ezannoni@redhat.com>
8487 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8488
514621a9
EZ
84892003-04-17 Elena Zannoni <ezannoni@redhat.com>
8490
8491 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8492 value if the return type is void.
514621a9 8493
b4acd559
JJ
84942003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8495
8496 * thread-db.c: Reindented.
8ffd9b1b 8497
530b167e 84982003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8499
8500 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8501 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8502 as types.
8503
0a48e7e8
MS
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8ffd9b1b 8527
ab9fe00e
KB
85282003-04-16 Kevin Buettner <kevinb@redhat.com>
8529
610a3745 8530 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8531 the size of ``long double'' to 16, instead of 8.
8532
e64a344c
MK
85332003-04-16 Mark Kettenis <kettenis@gnu.org>
8534
8535 * i386-linux-nat.c: Add some whitespace to make things more
8536 readable.
8537 (fetch_register, store_register, fetch_inferior_registers,
8538 store_inferior_registers): Get rid of assignment in if-statement.
8539 (store_register): Fix typo in error message.
8540
25d41031
AC
85412003-04-16 Andrew Cagney <cagney@redhat.com>
8542
8543 * utils.c (xmmalloc): Always allocate something, matches
8544 libiberty/xmalloc's semantics.
8545 (xmrealloc, xmcalloc): Ditto.
8546
c50901fd
AC
85472003-04-16 Andrew Cagney <cagney@redhat.com>
8548
8549 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8550 update comments.
8551 (get_frame_type): Initialize unwind and type when needed.
8552 (get_frame_id, frame_register_unwind): Ditto.
8553
f81824a9
AC
85542003-04-16 Andrew Cagney <cagney@redhat.com>
8555
8556 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8557 obsolete.
8558 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8559 * sparcl-stub.c: Obsolete file.
8560 * config/sparc/tm-sparclet.h: Obsolete file.
8561 * sparclet-stub.c: Obsolete file.
8562 * sparclet-rom.c: Obsolete file.
8563 * sparcl-tdep.c: Obsolete file.
8564 * config/sparc/tm-sparclite.h: Obsolete file.
8565 * config/sparc/sparclite.mt: Obsolete file.
8566 * config/sparc/sparclet.mt: Obsolete file.
8567 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8568 sparc86x-*-* obsolete.
8569
9219021c
DC
85702003-04-15 David Carlton <carlton@math.stanford.edu>
8571
8572 * Makefile.in (SFILES): Add cp-namespace.c.
8573 (COMMON_OBS): Add cp-namespace.o.
8574 (block.o): Depend on gdb_obstack_h and cp_support_h.
8575 (buildsym.o): Depend on cp_support_h.
8576 (cp-namespace.o): New.
8577 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8578 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8579 (dwarf2read.o): Depend on cp_support_h.
8580 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8581 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8582 processing_current_namespace.
8583 (read_namespace): Update processing_current_namespace; check for
8584 anonymous namespaces.
8585 (dwarf2_name): New function.
8586 (dwarf2_extension): Ditto.
8587 * cp-support.h: Update copyright, contributors.
8588 Add inclusion guards.
8589 Add opaque declaration for structs obstack, block, symbol.
8590 (struct using_direct): New struct.
8591 Add declarations for cp_find_first_component,
8592 cp_entire_prefix_len, processing_has_namespace_info,
8593 processing_current_namespace, cp_is_anonymous,
8594 cp_add_using_directive, cp_initialize_namespace,
8595 cp_finalize_namespace, cp_set_block_scope,
8596 cp_scan_for_anonymous_namespaces.
8597 * cp-namespace.c: New file.
8598 * cp-support.c: Update copyright.
8599 Include ctype.h, gdb_assert.h, gdbcmd.h.
8600 New variable maint_cplus_cmd_list.
8601 (cp_find_first_component): New function.
8602 (cp_entire_prefix_len, maint_cplus_command)
8603 (first_component_command, _initialize_cp_support): Ditto.
8604 * buildsym.c: Include cp-support.h.
8605 New variable using_list.
8606 (add_symbol_to_list): Check for anonymous namespaces.
8607 (finish_block): Set block's scope.
8608 (start_symtab): Initialize C++ namespace support.
8609 (end_symtab): Finalize C++ namespace support.
8610 * block.h: Add opaque declarations for structs
8611 block_namespace_info, using_direct, and obstack.
8612 Add declarations for block_set_scope and block_set_using.
8613 (struct block): Add 'language_specific' member.
8614 (BLOCK_NAMESPACE): New macro.
8615 * block.c: Include gdb_obstack.h and cp-support.h.
8616 (struct block_namespace_info): New struct.
8617 (block_set_scope): New function.
8618 (block_set_using, block_initialize_namespace): Ditto.
8619
d5a921c9
KB
86202003-04-14 Kevin Buettner <kevinb@redhat.com>
8621
8622 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8623 (locate_base): Return early if there aren't any link map offsets.
8624 (svr4_solib_create_inferior_hook): Warn if shared library support
8625 is unavailable.
8626
d2a52b27
DC
86272003-04-14 David Carlton <carlton@math.stanford.edu>
8628
8629 * symtab.c (symbol_set_names): Add prefix when storing Java names
8630 in hash table. Fix for PR java/1039.
8631
980cae7a
DC
86322003-04-14 David Carlton <carlton@math.stanford.edu>
8633
8634 * symtab.c (symbol_set_names): Rename 'name' arg to
8635 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8636 * symtab.h: Change 'name' argument in declaration of
8637 symbol_set_names to 'linkage_name'.
8638 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8639
e227b13c
AC
86402003-04-14 Andrew Cagney <cagney@redhat.com>
8641
8642 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8643 return the fully sign-extended register value.
8644 (get_frame_pointer): Ditto.
8645 (mips_pop_frame): Initialize "proc_desc" after checking for a
8646 dummy frame.
8647
36712a20
AC
86482003-04-14 Andrew Cagney <cagney@redhat.com>
8649
8650 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8651 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8652 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8653 (mips_push_register): Delete function.
8654 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8655 PUSH_FP_REGNUM.
8656
44ea7b70
JB
86572003-04-14 Jim Blandy <jimb@redhat.com>
8658
8659 * symmisc.c: #include "gdb_regex.h".
8660 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8661 functions.
8662 * maint.c (maintenance_list_command): New function.
8663 (_initialize_maint_cmds): Register the above as commands.
8664 * symtab.h (maintenance_list_symtabs,
8665 maintenance_list_psymtabs): New declarations.
8666 * cli/cli-cmds.c (maintenancelistlist): New variable.
8667 (init_cmd_lists): Initialize it.
8668 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8669 * gdbcmd.h (maintenancelistlist): New declaration.
8670 * Makefile.in (symmisc.o): Update dependencies.
8671
2d0c7962
EZ
86722003-04-14 Elena Zannoni <ezannoni@redhat.com>
8673
8674 * s390-nat.c: Include asm/types.h for addr_t.
8675
1947a811
CV
86762003-04-14 Corinna Vinschen <vinschen@redhat.com>
8677
8678 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8679 actually incoming type.
8680
adb616d7
AC
86812003-04-13 Andrew Cagney <cagney@redhat.com>
8682
8683 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8684 get_next_frame and get_frame_saved_regs.
8685
9b5e151c
AC
86862003-04-13 Andrew Cagney <cagney@redhat.com>
8687
8688 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8689 of gdbarch_num_regs.
8690
ef6e7e13
AC
86912003-04-13 Andrew Cagney <cagney@redhat.com>
8692
8693 * frame.h: Mention what replaced what in "struct frame_info".
8694 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8695 deprecated_update_frame_base_hack and
8696 deprecated_update_frame_pc_hack.
8697 * hppa-tdep.c: Ditto.
8698
61fbb938
DJ
86992003-04-13 Daniel Jacobowitz <drow@mvista.com>
8700
8701 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8702 to read_reg and update its comment. Remove regnum member.
8703 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8704 Don't call read_reg when setting in_reg. Call read_reg to get
8705 the frame base if it's in a register. Return the register number
8706 on the stack instead of in the context. Remove extra arguments
8707 to read_reg.
8708 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8709 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8710 the register number on the expression stack.
8711 (needs_frame_read_reg): Remove extra arguments.
8712
0d53c4c4
DJ
87132003-04-13 Daniel Jacobowitz <drow@mvista.com>
8714
8715 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8716 made non-static.
8717 (execute_stack_op): All callers updated.
8718 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8719 * dwarf2loc.c (find_location_expression): New function.
8720 (dwarf_expr_frame_base): Call it.
8721 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8722 (dwarf2_tracepoint_var_ref): New function, broken out from
8723 locexpr_tracepoint_var_ref.
8724 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8725 Make static.
8726 (loclist_read_variable, loclist_read_needs_frame): New functions.
8727 (loclist_describe_location, loclist_tracepoint_var_ref): New
8728 functions.
8729 (dwarf2_loclist_funcs): New struct location_funcs.
8730 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8731 (struct dwarf2_locexpr_baton): Add comments.
8732 (dwarf2_loclist_funcs): New extern.
8733 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8734 base_address and base_known.
8735 (dwarf_loc_buffer): New variable.
8736 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8737 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8738 (dwarf2_has_info): Initialize dwarf_loc_offset.
8739 (dwarf2_build_psymtabs): Read in .debug_loc.
8740 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8741 DWARF_LOC_SIZE.
8742 (psymtab_to_symtab_1): Likewise. Move base address calculation
8743 here, from...
8744 (dwarf2_get_pc_bounds): ... here. Use the base address from
8745 cu_header.
8746 (dwarf2_symbol_mark_computed): Handle location lists.
8747
6aca59a3
DJ
87482003-04-13 Daniel Jacobowitz <drow@mvista.com>
8749
8750 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8751 if the linkage name demangled successfully.
8752
aca1fcd0
MK
87532003-04-13 Mark Kettenis <kettenis@gnu.org>
8754
97095916
MK
8755 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8756 disassmbly_flavour): Removed.
8757
aca1fcd0
MK
8758 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8759
562a961f
MK
87602003-04-13 Mark Kettenis <kettenis@gnu.org>
8761
8762 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8763
bd013d54
AC
87642003-04-12 Andrew Cagney <cagney@redhat.com>
8765
8766 * frame.h (struct frame_info): Move definition from here ...
8767 * frame.c (struct frame_info): ... to here.
8768
167ef8b1
AC
87692003-04-12 Andrew Cagney <cagney@redhat.com>
8770
8771 * gdbthread.h (save_infrun_state): Delete parameter
8772 "prev_func_start".
8773 (struct thread_info): Delete field "prev_func_start".
8774 (load_infrun_state): Ditto.
8775 * thread.c (load_infrun_state, save_infrun_state): Update.
8776 * infrun.c (prev_func_start): Delete variable.
8777 (context_switch, init_wait_for_inferior): Update.
8778 (stop_stepping, keep_going): Update.
8779
da3331ec
AC
87802003-04-12 Andrew Cagney <cagney@redhat.com>
8781
8782 * gdbarch.sh: Add missing opaque declarations.
8783 * gdbarch.h: Regnerate.
8784 * symtab.h: Add missing opaque declarations.
8785 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8786 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8787 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8788 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8789 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8790 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8791 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8792 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8793 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8794 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8795 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8796 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8797 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8798
18adea3f
AC
87992003-04-11 Andrew Cagney <cagney@redhat.com>
8800
8801 * frame.c (get_frame_id): Return this frame's "id".
8802 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8803 function start.
8804 (legacy_saved_regs_this_id): Replace function body with
8805 internal-error.
8806 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8807 FRAME_OBSTACK_ZALLOC.
8808 (create_new_frame): Mark the frame ID as valid.
8809
2252e863
AO
88102003-04-11 Alexandre Oliva <aoliva@redhat.com>
8811
8812 * Makefile.in (libbfd_h): Added missing setting.
8813 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8814 according to the selected ABI.
8815
a8245ab8
JJ
88162003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8817
8818 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8819
6913c89a
AC
88202003-04-11 Andrew Cagney <cagney@redhat.com>
8821
8822 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8823 SAVED_PC_AFTER_CALL.
8824 * gdbarch.h, gdbarch.c: Regenerate.
8825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8826 * x86-64-tdep.c (x86_64_init_abi): Update.
8827 * vax-tdep.c (vax_gdbarch_init): Update.
8828 * v850-tdep.c (v850_gdbarch_init): Update.
8829 * sparc-tdep.c (sparc_gdbarch_init): Update.
8830 * sh-tdep.c (sh_gdbarch_init): Update.
8831 * s390-tdep.c (s390_gdbarch_init): Update.
8832 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8833 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8834 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8835 * mips-tdep.c (mips_gdbarch_init): Update.
8836 * mcore-tdep.c (mcore_gdbarch_init): Update.
8837 * m68k-tdep.c (m68k_gdbarch_init): Update.
8838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8839 * ia64-tdep.c (ia64_gdbarch_init): Update.
8840 (ia64_saved_pc_after_call): Update declaration.
8841 * i386ly-tdep.c (i386lynx_init_abi): Update.
8842 * i386-tdep.c (i386_gdbarch_init): Update.
8843 * hppa-tdep.c (hppa_gdbarch_init): Update.
8844 * h8300-tdep.c (h8300_gdbarch_init): Update.
8845 * frv-tdep.c (frv_gdbarch_init): Update.
8846 * cris-tdep.c (cris_gdbarch_init): Update.
8847 * avr-tdep.c (avr_gdbarch_init): Update.
8848 * arm-tdep.c (arm_gdbarch_init): Update.
8849 * alpha-tdep.c (alpha_gdbarch_init): Update.
8850 * ns32knbsd-nat.c (frame_num_args): Update.
8851 * ns32k-tdep.c (umax_frame_num_args): Update.
8852 * mips-tdep.c (mips_init_frame_pc_first): Update.
8853 * infrun.c (step_over_function): Update.
8854 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8855 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8856 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8857 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8858 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8859 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8860 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8861 * arch-utils.c (init_frame_pc_default): Update.
8862 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8863 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8864 declaration.
8ffd9b1b 8865
38edeab8
AC
88662003-04-11 Andrew Cagney <cagney@redhat.com>
8867
8868 * i387-tdep.c: Update copyright.
8869 (i387_to_double): Delete function.
8870 (double_to_i387): Delete function.
8871
81f8a206
AC
88722003-04-10 Andrew Cagney <cagney@redhat.com>
8873
8874 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8875 frame's function's address. Simplify.
8876 (d10v_frame_unwind_cache): Check that the frame's function is
8877 non-zero.
8878
6e691f7a
JB
88792003-04-10 Jim Blandy <jimb@redhat.com>
8880
8881 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8882 call to set_gdbarch_deprecated_push_arguments.
8883
7f78e237
AC
88842003-04-10 Andrew Cagney <cagney@redhat.com>
8885
8886 * frame.c (fprint_frame_id): New function.
8887 (fprint_frame_type, fprint_frame): New function.
8888 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8889 (create_sentinel_frame, get_frame_id): Ditto.
8890 (frame_id_p, frame_id_eq): Ditto.
8891 (frame_id_inner, create_new_frame): Ditto.
8892 (legacy_get_prev_frame, get_prev_frame): Ditto.
8893 (deprecated_update_frame_pc_hack): Ditto.
8894 (frame_register_unwind): Ditto.
8895 (deprecated_update_frame_base_hack): Ditto.
8896
f870b49b
CV
88972003-04-10 Corinna Vinschen <vinschen@redhat.com>
8898
8899 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8900 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8901 frame_chain function.
8902 * Makefile.in: Add dependencies due to above change.
8903
7c86889b
CV
89042003-04-10 Corinna Vinschen <vinschen@redhat.com>
8905
8906 * blockframe.c (legacy_frame_chain_valid): Move call to
8907 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8908 inside_entry_file.
8909
d0a55772
AC
89102003-04-09 Andrew Cagney <cagney@redhat.com>
8911
8912 * frame.h (struct frame_id): Replace "pc" and "base" with
8913 "stack_addr" and "code_addr". Update comments.
8914 (frame_id_build): Update parameter names and comment.
8915 (struct frame_info): Replace "id_p" and "id" with "this_id".
8916 * dummy-frame.c (dummy_frame_this_id): Update.
8917 * breakpoint.c (print_one_breakpoint): Update.
8918 * frame.c (get_frame_id): Update.
8919 (get_frame_base, frame_id_build): Update.
8920 (create_sentinel_frame, legacy_get_prev_frame): Update.
8921 (deprecated_update_frame_base_hack): Update.
8922 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8923 (frame_id_inner): Ditto.
8924
ac16bf07
AC
89252003-04-09 Andrew Cagney <cagney@redhat.com>
8926
8927 * defs.h (gdb_print_host_address): Make "addr" parameter a
8928 pointer constant.
8929 * utils.c (gdb_print_host_address): Update.
8930
366cfc9e
KB
89312003-04-09 Kevin Buettner <kevinb@redhat.com>
8932
8933 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8934 register number for R0 is 0.
8935
cd983b5c
JB
89362003-04-09 J. Brobecker <brobecker@gnat.com>
8937
8938 * frame.h (struct gdbarch): Add opaque structure definition
8939 to avoid a compilation warning on LynxOS 4.0.
8940
d1340264
AC
89412003-04-09 Andrew Cagney <cagney@redhat.com>
8942
8943 * frame.h (struct frame_info): Delete field "pc". Replace
8944 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8945 structure.
8946 * frame.c (frame_pc_unwind): Update.
8947 (create_sentinel_frame): Do not set "pc".
8948 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8949 (get_frame_pc): Call frame_pc_unwind.
8950 (deprecated_update_frame_pc_hack): Update.
8951 (create_new_frame): Use "pc" not "->pc".
8952
90a6fffb
AC
89532003-04-09 Andrew Cagney <cagney@redhat.com>
8954
8955 * frame.c (get_frame_id): Eliminate code updating "frame".
8956 (legacy_get_prev_frame): Ditto.
8957 (get_frame_base): Return id.base directly.
8958 (deprecated_update_frame_base_hack): Update "id.base".
8959 * frame.h (struct frame_info): Delete field "frame".
8960
2fbce691
AC
89612003-04-09 Andrew Cagney <cagney@redhat.com>
8962
8963 * NEWS: Mention that the "Sequent family" is obsolete.
8964 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8965 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8966 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8967 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8968 * config/i386/tm-ptx4.h: Obsolete file.
8969 * config/i386/tm-ptx.h: Obsolete file.
8970 * symm-tdep.c: Obsolete file.
8971 * config/i386/symmetry.mt: Obsolete file.
8972 * config/i386/tm-symmetry.h: Obsolete file.
8973 * symm-nat.c: Obsolete file.
8974 * config/i386/nm-symmetry.h: Obsolete file.
8975 * config/i386/xm-symmetry.h: Obsolete file.
8976 * config/i386/symmetry.mh: Obsolete file.
8977 * config/i386/nm-ptx4.h: Obsolete file.
8978 * config/i386/ptx4.mh: Obsolete file.
8979 * config/i386/ptx.mt: Obsolete file.
8980 * config/i386/ptx.mh: Obsolete file.
8981 * config/i386/xm-ptx4.h: Obsolete file.
8982 * config/i386/xm-ptx.h: Obsolete file.
8983
78c43945
AC
89842003-04-09 Andrew Cagney <cagney@redhat.com>
8985
8986 Obsolete mips*-*-mach3*.
8987 * NEWS: Mention that mips*-*-mach3* is obsolete.
8988 * m3-nat.c: Obsolete file.
8989 * config/nm-m3.h: Obsolete file.
8990 * config/mips/tm-mipsm3.h: Obsolete file.
8991 * config/mips/mipsm3.mt: Obsolete file.
8992 * config/mips/mipsm3.mh: Obsolete file.
8993 * config/mips/xm-mipsm3.h: Obsolete file.
8994 * mipsm3-nat.c: Obsolete file.
8995 * configure.host: Obsolete mips-dec-mach3*.
8996 * configure.tgt: Obsolete mips*-*-mach3*.
8997
f1908289
AC
89982003-04-09 Andrew Cagney <cagney@redhat.com>
8999
9000 * doublest.h: Update copyright.
9001 (deprecated_store_floating, deprecated_extract_floating): Rename
9002 store_floating and extract_floating. Update comments.
9003 * doublest.c: Update copyright.
9004 (extract_floating_by_length): Replace extract_floating.
9005 (store_floating_by_length): Replace store_floating.
9006 (deprecated_extract_floating): New function.
9007 (deprecated_store_floating): New function.
9008 (extract_typed_floating): Call extract_floating_by_length.
9009 (store_typed_floating): Call store_floating_by_length.
9010 * x86-64-tdep.c (x86_64_store_return_value): Update.
9011 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9012 (sh64_extract_return_value): Update.
9013 (sh_sh4_register_convert_to_virtual): Update.
9014 (sh_sh64_register_convert_to_virtual): Update.
9015 (sh_sh4_register_convert_to_raw): Update.
9016 (sh_sh64_register_convert_to_raw): Update.
9017 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9018 (rs6000_register_convert_to_raw): Update.
9019 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9020 (ia64_register_convert_to_raw): Update.
9021 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9022 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9023 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9024 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9025 (alpha_register_convert_to_raw): Update.
9026
4443bd83
AC
90272003-04-08 Andrew Cagney <cagney@redhat.com>
9028
9029 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9030 * gdbarch.h, gdbarch.c: Re-generate.
9031 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9032 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9033 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9034 conditionally, use frame_pc_unwind as an alternative. Add
9035 comments.
9036 * arch-utils.c (init_frame_pc_default): Only call
9037 SAVED_PC_AFTER_CALL when available.
9038
c0236d92
EZ
90392003-04-08 Elena Zannoni <ezannoni@redhat.com>
9040
fbe586ae 9041 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9042 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9043 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9044 (start_remote): Ditto.
9045 (handle_inferior_event): Ditto.
9046 (save_inferior_status): Ditto.
9047 (restore_inferior_status): Ditto.
9048 * infcmd.c (attach_command): Ditto.
9049 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9050 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9051 * alpha-tdep.c (heuristic_proc_start): Ditto.
9052 * mips-tdep.c (heuristic_proc_start): Ditto.
9053 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9054 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9055 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9056 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9057 * remote-vx.c (vx_create_inferior): Ditto.
9058
90592003-04-08 Elena Zannoni <ezannoni@redhat.com>
9060
9061 * infrun.c (stop_soon_quietly): Make it an enum, to better
9062 override the default behavior of handle_inferior_event.
9063 (clear_proceed_status): Update uses of stop_soon_quietly to
9064 reflect that it is now an enum.
9065 (start_remote): Ditto.
9066 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9067 is set to handle the new GNU/Linux kernel behavior for
9068 attach/sigstop. Update uses of stop_soon_quietly.
9069 * inferior.h (enum stop_kind): New enum.
9070 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9071 Reset normal handle_inferior_event behavior, afterwards.
9072 * fork-child.c (startup_inferior): Update.
9073 * alpha-tdep.c (heuristic_proc_start): Update.
9074 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9075 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9076 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9077 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9078 * remote-vx.c (vx_create_inferior): Update.
9079 * mips-tdep.c (heuristic_proc_start): Update.
9080
1211bce3
EZ
90812003-04-07 Elena Zannoni <ezannoni@redhat.com>
9082
9083 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9084 be freed more than once, causing wild memory corruptions.
1211bce3 9085 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9086 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9087 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9088 with the "core" target.
1211bce3 9089
f0ef6b29
KB
90902003-04-07 Kevin Buettner <kevinb@redhat.com>
9091
9092 * mips-tdep.c (mips_print_fp_register): New function, created from
9093 do_fp_register_row(). Registers are now (also) printed as hex.
9094 Only one register is printed per row.
9095 (mips_print_register, do_fp_register_row): Print floating point
9096 registers with mips_print_fp_register().
9097
8cf71652
AC
90982003-04-06 Andrew Cagney <cagney@redhat.com>
9099
5e488a7b
AC
9100 * valprint.h (inspect_it): Add extern declaration.
9101 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9102 (selectors_info, classes_info): Ditto.
9103 (find_objc_msgcall): Fix indentation.
9104 (objc_printstr): Delete extern declarations.
9105
8cf71652
AC
9106 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9107
e6ba3bc9
AC
91082003-04-06 Andrew Cagney <cagney@redhat.com>
9109
9110 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9111 Update comment.
9112 * frame.c (legacy_saved_regs_this_id): Update.
9113 (legacy_get_prev_frame): Update.
9114 * xstormy16-tdep.c: Update comment.
9115 * sparc-tdep.c (sparc_frame_chain): Update comment.
9116 * blockframe.c (legacy_frame_chain_valid): Update.
9117
55e1d7e7
AC
91182003-04-06 Andrew Cagney <cagney@redhat.com>
9119
996179ee
AC
9120 * valprint.c (val_print_type_code_int): Delete #ifdef
9121 PRINT_TYPELESS_INTEGER code.
9122
55e1d7e7
AC
9123 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9124 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9125 multi-arch definition.
9126 * gdbarch.h: Re-generate.
9127
43bd9a9e
AC
91282003-04-05 Andrew Cagney <cagney@redhat.com>
9129
9130 Eliminate FRAME_FIND_SAVED_REGS.
9131 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9132 Change FSR parameter to a pointer.
9133 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9134 Assume FSR parameter is a pointer.
9135 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9136 Make fsr a pointer.
9137 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9138 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9139 saved_regs a pointer.
9140 (hppa_frame_saved_pc): Ditto.
9141 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9142 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9143 pointer.
9144 (restore_pc_queue): Make fsr a pointer.
9145 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9146 (hppa_frame_chain): Make saved_regs a pointer, call
9147 hppa_frame_init_saved_regs.
9148 * sparc-tdep.c: Include "gdb_assert.h".
9149 (sparc_frame_find_saved_regs): Replace internal_error with
9150 gdb_assert.
9151 * remote-vxsparc.c (vx_read_register): Delete reference to
9152 FRAME_FIND_SAVED_REGS.
9153 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9154 * gdbarch.h: Regenerate.
9155 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9156 (deprecated_get_frame_saved_regs): Delete declaration.
9157 (struct frame_saved_regs): Delete definition.
9158 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9159 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9160 (hppa_frame_find_saved_regs): Delete declaration.
9161 (FRAME_FIND_SAVED_REGS): Delete macro.
9162 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9163 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9164 FRAME_FIND_SAVED_REGS in comment.
9165
be41e9f4
AC
91662003-04-05 Andrew Cagney <cagney@redhat.com>
9167
9168 * frame.c (frame_func_unwind, get_frame_func): New functions.
9169 * frame.h (get_frame_func, frame_func_unwind): Declare.
9170 (struct frame_info): Add field "prev_func" for caching the
9171 previous frame's function address.
9172 * arm-tdep.c (arm_frameless_function_invocation): Combine
9173 get_pc_function_start and get_frame_pc into get_frame_func.
9174 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9175 (sh64_nofp_frame_init_saved_regs): Ditto.
9176 * s390-tdep.c (s390_function_start): Ditto.
9177 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9178 (rs6000_frameless_function_invocation): Ditto.
9179 (rs6000_frame_saved_pc): Ditto.
9180 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9181 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9182 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9183 (i386_frame_init_saved_regs): Ditto.
9184 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9185 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9186 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9187 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9188 * blockframe.c (frameless_look_for_prologue): Ditto.
9189
a01dd7cc
AC
91902003-04-05 Andrew Cagney <cagney@redhat.com>
9191
9192 * frame.c (legacy_get_prev_frame): Link prev to next at the
9193 function start. Update comments.
9194
5e5592e6
AC
91952003-04-05 Andrew Cagney <cagney@redhat.com>
9196
9197 * frame.c (get_frame_id): Update comment.
9198 (legacy_get_prev_frame): Update comment.
9199 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9200 * gdbarch.h: Regenerate.
9201 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9202 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9203
6fba5002
AC
92042003-04-05 Andrew Cagney <cagney@redhat.com>
9205
9206 * stack.c (print_frame_info): Use get_frame_pc.
9207
7df05f2b
AC
92082003-04-04 Andrew Cagney <cagney@redhat.com>
9209
9210 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9211 the frame's type from the unwinder.
9212 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9213 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9214 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9215 (get_frame_base_address): Use get_frame_type.
9216 (get_frame_locals_address, get_frame_args_address): Ditto.
9217 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9218 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9219 (struct frame_info): Add comment explaining why the frame contains
9220 a "type" field.
9221 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9222 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9223 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9224 NORMAL_FRAME.
9225 * frame-unwind.h: Include "frame.h".
9226 (struct frame_unwind): Add "type" field.
9227 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9228
11889732
AC
92292003-04-04 Andrew Cagney <cagney@redhat.com>
9230
9231 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9232 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9233 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9234 get_frame_base.
9235 (d10v_unwind_dummy_id): Use frame_id_build.
9236 * frame.c (find_frame_sal): Use get_frame_pc.
9237 (create_new_frame): Use deprecated_update_frame_pc_hack and
9238 deprecated_update_frame_base_hack.
9239 (create_sentinel_frame): Add comment about ->pc going away.
9240 (get_prev_frame): Add comment about ->pc going away.
9241 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9242 frame_id_build, deprecated_update_frame_pc_hack and
9243 deprecated_update_frame_base_hack.
9244 (select_frame): Use get_frame_pc.
9245 (legacy_saved_regs_this_id): Use frame_id_build.
9246
50c46a0d
EZ
92472003-04-04 Elena Zannoni <ezannoni@redhat.com>
9248
fbe586ae
RH
9249 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9250 signed integer case.
9251 (classify_argument): Handle enumerations and references.
50c46a0d 9252
50bbdbd9
AC
92532003-04-04 Andrew Cagney <cagney@redhat.com>
9254
9255 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9256 ID to NULL.
9257
36018d2e
AF
92582003-04-01 Adam Fedor <fedor@gnu.org>
9259
9260 * gdb/objc-lang.c (selectors_info): Replace calls to
9261 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9262 SYMBOL_NATURAL_NAME.
9263 (classes_info, find_methods): Likewise.
9264
35cec841
KB
92652003-04-03 Kevin Buettner <kevinb@redhat.com>
9266
9267 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9268 ``mach'' to the value determined by bfd_default_set_arch_mach().
9269
43136899
BR
92702003-04-02 Bob Rossi <bob_rossi@cox.net>
9271
9272 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9273 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9274 (mi-cmd-file.o): Update dependencies.
9275
040b99fd
KB
92762003-04-01 Kevin Buettner <kevinb@redhat.com>
9277
9278 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9279 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9280
9a3d7dfd
AF
92812003-04-01 Adam Fedor <fedor@gnu.org>
9282
9283 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9284 * language.h (struct language_defn): Add la_demangle.
9285 (language_demangle): Declare.
9286 * language.c (language_demangle): New function.
9287 (unk_lang_demangle): Likewise.
9288 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9289 Add ukn_lang_demangle.
9a3d7dfd 9290 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9291 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9292 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9293 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9294 * jv-lang.c (java_demangle): New function
9295 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9296 * objc-lang.c (objc_demangle): Add options argument
9297 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9298 * maint.c (maintenance_demangle): Replace switch with
9299 call to language_demangle.
9300 * utils.c (fprintf_symbol_filtered): Likewise.
9301
5e074003
AC
93022003-04-01 Andrew Cagney <cagney@redhat.com>
9303
9304 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9305 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9306 PRINT_TYPELESS_INTEGER.
9307 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9308 PUSH_RETURN_ADDRESS.
9309
270cb5d6
AC
93102003-04-01 Andrew Cagney <cagney@redhat.com>
9311
9312 * Makefile.in (d10v-tdep.o): Update dependencies.
9313 * d10v-tdep.c: Include "frame-base.h".
9314 (d10v_frame_unwind): Make constant.
9315 (d10v_frame_base_address): New function.
9316 (d10v_frame_base): New variable.
9317 (d10v_gdbarch_init): Set frame_base default.
9318 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9319 comment for base.
9320 (d10v_frame_unwind_cache): Set and use "prev_sp".
9321 (d10v_frame_this_id): Use the previous frame's inner most stack
9322 address and this frame's func address for the frame ID. Use
9323 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9324
6bfb3e36
AC
93252003-04-01 Andrew Cagney <cagney@redhat.com>
9326
9327 * frame.h (get_frame_locals_address, get_frame_args_address):
9328 Refer to the base address, instead of the address of the first
9329 local or parameter.
8ffd9b1b 9330
da62e633
AC
93312003-04-01 Andrew Cagney <cagney@redhat.com>
9332
9333 Add frame debug info addresses:
9334 * frame-base.c: New file.
9335 * frame-base.h: New file.
9336 * frame.h (struct frame_base): Add opaque declaration.
9337 (get_frame_base): Update comment.
9338 (get_frame_base_address): Declare.
9339 (get_frame_locals_address): Declare.
9340 (get_frame_args_address): Declare.
9341 (struct frame_info): Add "base" and "base_cache". Update
9342 comments on the unwinder.
9343 * frame.c: Include "frame-base.h".
9344 (get_frame_locals_address): New function.
9345 (get_frame_base_address): New function.
9346 (get_frame_args_address): New function.
9347 * findvar.c (read_var_value): Use get_frame_locals_address and
9348 get_frame_args_address.
9349 * stack.c (frame_info): Use get_frame_locals_address and
9350 get_frame_args_address.
9351 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9352 moved to "frame-base.c".
9353 * printcmd.c (print_frame_nameless_args): Ditto.
9354 * symtab.h (address_class): Update comments.
9355 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9356 get_frame_base_address.
9357 * dwarf2expr.c (execute_stack_op): Ditto.
9358 * Makefile.in (frame_base_h): Define.
9359 (frame.o): Update dependencies.
9360 (frame-base.o): Add dependencies.
9361 (SFILES): Add frame-base.c.
9362 (COMMON_OBS): Add frame-base.o.
9363
3d30e9c2
AC
93642003-04-01 Andrew Cagney <cagney@redhat.com>
9365
9366 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9367 CALL_DUMMY_LENGTH): Ditto.
9368 * gdbarch.c: Re-generate.
9369 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9370 (CALL_DUMMY_LENGTH): Delete macro.
9371 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9372 * arm-tdep.c (arm_gdbarch_init): Ditto.
9373 * avr-tdep.c (avr_gdbarch_init): Ditto.
9374 * cris-tdep.c (cris_gdbarch_init): Ditto.
9375 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9376 * frv-tdep.c (frv_gdbarch_init): Ditto.
9377 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9378 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9379 * i386-tdep.c (i386_gdbarch_init): Ditto.
9380 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9382 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9383 * mips-tdep.c (mips_gdbarch_init): Ditto.
9384 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9385 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9386 * s390-tdep.c (s390_gdbarch_init): Ditto.
9387 * sh-tdep.c (sh_gdbarch_init): Ditto.
9388 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9389 * v850-tdep.c (v850_gdbarch_init): Ditto.
9390 * vax-tdep.c (vax_gdbarch_init): Ditto.
9391 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9392
ce0c7262
CV
93932003-04-01 Corinna Vinschen <vinschen@redhat.com>
9394
9395 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9396
73dd234f
AC
93972003-04-01 Andrew Cagney <cagney@redhat.com>
9398
9399 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9400 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9401 * gdbarch.h, gdbarch.c: Re-generate.
9402 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9403 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9404 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9405 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9406 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9407 * infcmd.c (run_stack_dummy): Simplify assuming
9408 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9409 * infrun.c (handle_inferior_event): Ditto.
9410 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9411 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9412 * arm-tdep.c (arm_gdbarch_init): Ditto.
9413 * avr-tdep.c (avr_gdbarch_init): Ditto.
9414 * cris-tdep.c (cris_gdbarch_init): Ditto.
9415 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9416 * frv-tdep.c (frv_gdbarch_init): Ditto.
9417 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9418 * i386-tdep.c (i386_gdbarch_init): Ditto.
9419 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9421 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9422 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9423 * mips-tdep.c (mips_gdbarch_init): Ditto.
9424 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9425 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9426 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9427 * s390-tdep.c (s390_gdbarch_init): Ditto.
9428 * sh-tdep.c (sh_gdbarch_init): Ditto.
9429 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9430 * v850-tdep.c (v850_gdbarch_init): Ditto.
9431 * vax-tdep.c (vax_gdbarch_init): Ditto.
9432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9433
97606a13
DJ
94342003-04-01 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * symfile.c (symfile_relocate_debug_section): Update call to
9437 bfd_simple_get_relocated_section_contents.
9438
e8ab51f7
AC
94392003-03-31 Andrew Cagney <cagney@redhat.com>
9440
9441 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9442 * gdbarch.h, gdbarch.c: Regenerate.
9443 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9444 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9445 available.
9446 * frame.h (generic_fix_call_dummy): Delete declaration.
9447 * dummy-frame.h: Update comment.
9448 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9450 fix_call_dummy.
9451 * sh-tdep.c (sh_gdbarch_init): Ditto.
9452 * s390-tdep.c (s390_gdbarch_init): Ditto.
9453 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9454 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9456 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9457 * i386-tdep.c (i386_gdbarch_init): Ditto.
9458 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9459 * frv-tdep.c (frv_gdbarch_init): Ditto.
9460 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9461 * cris-tdep.c (cris_gdbarch_init): Ditto.
9462 * avr-tdep.c (avr_gdbarch_init): Ditto.
9463 * arm-tdep.c (arm_gdbarch_init): Ditto.
9464
018d1b48
JB
94652003-03-31 J. Brobecker <brobecker@gnat.com>
9466
9467 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9468 (INIT_FRAME_AP): Likewise.
9469 (EXTRA_FRAME_INFO): Likewise.
9470
e9a2674e
AC
94712003-03-31 Andrew Cagney <cagney@redhat.com>
9472
9473 * gdbarch.sh: Include "symfile.h".
9474 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9475 * gdbarch.h, gdbarch.c: Re-generate.
9476 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9478 call_dummy_address, the default is at entry_point_address.
9479 * v850-tdep.c (v850_gdbarch_init): Ditto.
9480 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9481 * sh-tdep.c (sh_gdbarch_init): Ditto.
9482 * s390-tdep.c (s390_gdbarch_init): Ditto.
9483 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9484 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9485 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9486 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9487 * i386-tdep.c (i386_gdbarch_init): Ditto.
9488 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9489 * frv-tdep.c (frv_gdbarch_init): Ditto.
9490 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9491 * cris-tdep.c (cris_gdbarch_init): Ditto.
9492 * arm-tdep.c (arm_gdbarch_init): Ditto.
9493
e8a8712a
AC
94942003-03-31 Andrew Cagney <cagney@redhat.com>
9495
9496 * gdbarch.sh (CALL_DUMMY_P): Delete.
9497 * gdbarch.h, gdbarch.c: Re-generate.
9498 * inferior.h (CALL_DUMMY_P): Delete macro.
9499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9500 * vax-tdep.c (vax_gdbarch_init): Update.
9501 * v850-tdep.c (v850_gdbarch_init): Update.
9502 * sparc-tdep.c (sparc_gdbarch_init): Update.
9503 * sh-tdep.c (sh_gdbarch_init): Update.
9504 * s390-tdep.c (s390_gdbarch_init): Update.
9505 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9506 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9507 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9508 * mips-tdep.c (mips_gdbarch_init): Update.
9509 * mcore-tdep.c (mcore_gdbarch_init): Update.
9510 * m68k-tdep.c (m68k_gdbarch_init): Update.
9511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9512 * ia64-tdep.c (ia64_gdbarch_init): Update.
9513 * i386-tdep.c (i386_gdbarch_init): Update.
9514 * h8300-tdep.c (h8300_gdbarch_init): Update.
9515 * frv-tdep.c (frv_gdbarch_init): Update.
9516 * d10v-tdep.c (d10v_gdbarch_init): Update.
9517 * cris-tdep.c (cris_gdbarch_init): Update.
9518 * breakpoint.c (deprecated_frame_in_dummy): Update.
9519 * avr-tdep.c (avr_gdbarch_init): Update.
9520 * alpha-tdep.c (alpha_gdbarch_init): Update.
9521 * arm-tdep.c (arm_gdbarch_init): Update.
9522 * dummy-frame.c (dummy_frame_this_id): Update comments.
9523 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9524 * frame.c (legacy_get_prev_frame): Ditto.
9525 * valops.c (call_function_by_hand): Delete function.
9526 (hand_function_call): Rename to call_function_by_hand
9527
ed234cf8
AC
95282003-03-30 Andrew Cagney <cagney@redhat.com>
9529
9530 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9531 * value.h (struct value): Update comment.
ed234cf8 9532
06c77151
AC
95332003-03-30 Andrew Cagney <cagney@redhat.com>
9534
6c2b5168
AC
9535 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9536 D10V_FP_REGNUM.
9537 (d10v_gdbarch_init): Do not set fp_regnum.
9538
06c77151
AC
9539 * frame.c (get_frame_base): Force ID initialization.
9540 (get_prev_frame): Move computation of the frame ID from here ...
9541 (get_frame_id): ... to here.
9542 (legacy_get_prev_frame): Mark the frame ID as valid.
9543 * frame.h (struct frame_info): Add field "id_p".
9544
97a1a11c
MK
95452003-03-30 Mark Kettenis <kettenis@gnu.org>
9546
9547 * i386-tdep.c (i386_store_struct_return): Removed.
9548 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9549
6c0e89ed
AC
95502003-03-30 Andrew Cagney <cagney@redhat.com>
9551
9552 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9553 * gdbarch.h, gdbarch.c: Regenerate.
9554 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9556 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9557 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9558 * i386-tdep.c (i386_gdbarch_init): Ditto.
9559 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9560 * cris-tdep.c (cris_gdbarch_init): Ditto.
9561 * vax-tdep.c (vax_gdbarch_init): Ditto.
9562 * s390-tdep.c (s390_gdbarch_init): Ditto.
9563 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9564 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9565 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9566 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9567 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9568 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9569 * sparc-tdep.c (sparc_gdbarch_init): Update.
9570 * sh-tdep.c (sh_gdbarch_init): Update.
9571 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9572 * mips-tdep.c (mips_gdbarch_init): Update.
9573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9574 * ia64-tdep.c (ia64_gdbarch_init): Update.
9575 * frv-tdep.c (frv_gdbarch_init): Update.
9576 * avr-tdep.c (avr_gdbarch_init): Update.
9577 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9578 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9579 instead of when push_dummy_call is not available.
8ffd9b1b 9580
f7dd6af2
AC
95812003-03-30 Andrew Cagney <cagney@redhat.com>
9582
9583 * infttrace.c: Include "gdbthread.h".
9584 (parent_attach_all): Fix function signature.
9585 (call_ptrace): Update call.
9586 * Makefile.in (infttrace.o): Update dependencies.
9587
28f617b3
AC
95882003-03-30 Andrew Cagney <cagney@redhat.com>
9589
9590 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9591 PUSH_RETURN_ADDRESS.
9592 * gdbarch.h, gdbarch.c: Regenerate.
9593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9594 * x86-64-tdep.c (x86_64_init_abi): Update.
9595 * v850-tdep.c (v850_gdbarch_init): Update.
9596 * sparc-tdep.c (sparc_gdbarch_init): Update.
9597 * sh-tdep.c (sh_gdbarch_init): Update.
9598 * s390-tdep.c (s390_gdbarch_init): Update.
9599 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9600 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9601 * mips-tdep.c (mips_gdbarch_init): Update.
9602 * mcore-tdep.c (mcore_gdbarch_init): Update.
9603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9604 * ia64-tdep.c (ia64_gdbarch_init): Update.
9605 * i386-tdep.c (i386_gdbarch_init): Update.
9606 * h8300-tdep.c (h8300_gdbarch_init): Update.
9607 * frv-tdep.c (frv_gdbarch_init): Update.
9608 * cris-tdep.c (cris_gdbarch_init): Update.
9609 * avr-tdep.c (avr_gdbarch_init): Update.
9610 * arm-tdep.c (arm_gdbarch_init): Update.
9611 * valops.c (hand_function_call): Update.
9612
4d628cd7
AC
96132003-03-29 Andrew Cagney <cagney@redhat.com>
9614
9615 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9616 sizeof_call_dummy_words.
9617 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9618 define.
9619 * gdbarch.h: Regenerate.
8ffd9b1b 9620
65e82032
AC
96212003-03-29 Andrew Cagney <cagney@redhat.com>
9622
9623 * infttrace.h: New file.
9624 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9625 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9626 (hpread_read_doc_function_type): Detect an initialized type1.
9627 (hpread_quick_traverse): Initialize mod_name_string.
9628 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9629 (som_solib_get_solib_by_pc): Declare.
9630 (so_lib_thread_start_addr): Declare.
9631 (no_shared_libraries): Declare.
9632 * somread.c (init_import_symbols): Make static. Add forward
9633 declaration.
9634 * config/pa/nm-hppah.h: Include "infttrace.h" for
9635 parent_attach_all.
9636 (hppa_insert_hw_watchpoint): Declare.
9637 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9638 * hppah-nat.c: Include "gdb_string.h".
9639 (parent_attach_all): Delete extern declaration, moved to
9640 "infttrace.h".
9641 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9642 int.
9643 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9644 * Makefile.in (infttrace_h): Define.
9645 (hpread.o): Update dependencies.
9646 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9647 * hppa-hpux-tdep.c: Include "gdb_string.h".
9648 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9649 * infrun.c (handle_inferior_event): Always initialize
9650 stepped_after_stopped_by_watchpoint. Add default and remove
9651 fallthrough in switch statement.
9652 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9653 parameter to int.
9654 (hppa_remove_hw_watchpoint): Ditto.
9655
2c3bbe77
AC
96562003-03-29 Andrew Cagney <cagney@redhat.com>
9657
9658 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9659 offset.
9660
2dd604e7
RE
96612003-03-29 Richard Earnshaw <rearnsha@arm.com>
9662
9663 * arm-tdep.c (arm_push_arguments): Delete.
9664 (struct stack_item): New type.
9665 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9666 (arm_store_struct_return): Delte.
9667 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9668 arm_push_arguments or arm_store_struct_return.
9669
e8933a55
AC
96702003-03-28 Andrew Cagney <cagney@redhat.com>
9671
9672 * Makefile.in (d10v-tdep.o): Update dependencies.
9673 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9674 * d10v-tdep.c: Include "remote.h".
9675 (target_resume_hook): Delete extern declaration.
9676 (target_wait_loop_hook): Ditto.
9677 (tdisassemble_command): Eliminate assignment in "if" conditional.
9678 (d10v_ts2_register_sim_regno): Eliminate call to
9679 legacy_register_sim_regno.
9680 (d10v_ts3_register_sim_regno): Ditto.
9681
6949171e
JJ
96822003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9683
9684 * thread.c: Reindented.
9685 * lin-lwp.c: Ditto.
9686 * linux-proc.c: Ditto.
9687
98c7071f
BR
96882003-03-28 Bob Rossi <bob_rossi@cox.net>
9689
fbe586ae 9690 * MAINTAINERS (write after approval): Add myself.
98c7071f 9691
5edc9ca6
TR
96922003-03-27 Theodore A. Roth <troth@openavr.org>
9693
9694 * objc-exp.y: Add missing semi-colons.
9695
378bfd1b
AC
96962003-03-27 Andrew Cagney <cagney@redhat.com>
9697
9698 * regcache.c (write_sp): Delete function and references.
9699 * inferior.h (write_sp): Delete declaration.
9700 * valops.c (hand_function_call): Replace write_sp with
9701 TARGET_WRITE_SP.
9702 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9703 (sparc_pop_frame): Ditto.
8ffd9b1b 9704
56056df7
AC
97052003-03-27 Andrew Cagney <cagney@redhat.com>
9706
9707 * NEWS: Mention removal of support for hppa*-*-bsd* and
9708 hppa*-*-osf* natives, and hppa*-*-pro* target.
9709 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9710 * config/pa/xm-pa.h: Obsolete file.
9711 * config/pa/xm-hppab.h: Obsolete file.
9712 * config/pa/nm-hppab.h: Obsolete file.
9713 * config/pa/tm-hppab.h: Obsolete file.
9714 * config/pa/tm-hppao.h: Obsolete file.
9715 * config/pa/nm-hppao.h: Obsolete file.
9716 * config/pa/tm-pro.h: Obsolete file.
9717 * config/pa/hppaosf.mt: Obsolete file.
9718 * config/pa/hppaosf.mh: Obsolete file.
9719 * config/pa/hppapro.mt: Obsolete file.
9720 * config/pa/hppabsd.mt: Obsolete file.
9721 * config/pa/hppabsd.mh: Obsolete file.
9722 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9723 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9724 hppa*-*-osf*.
9725
5873a88d
AC
97262003-03-27 Andrew Cagney <cagney@redhat.com>
9727
9728 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9729 push_arguments. Don't set push_return_address or write_sp.
9730 (d10v_push_dummy_call): Replace d10v_push_arguments.
9731 (d10v_push_return_address, d10v_write_sp): Delete function,
9732 handled by push_dummy_call.
9733
b81774d8
AC
97342003-03-26 Andrew Cagney <cagney@redhat.com>
9735
9736 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9737 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9738 regcache and dummy_addr parameters.
9739 * gdbarch.h, gdbarch.c: Re-generate.
9740 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9741 available; assume it will handle stack alignment and return
9742 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9743 legacy_push_arguments.
9744 (legacy_push_arguments): Rename default_push_arguments.
9745 * value.h (legacy_push_arguments): Rename default_push_arguments.
9746 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9747 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9748 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9749 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9750 * config/i386/tm-symmetry.h: Update.
9751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9752 * x86-64-tdep.c (x86_64_init_abi): Update.
9753 * v850-tdep.c (v850_gdbarch_init): Update.
9754 * sparc-tdep.c (sparc_gdbarch_init): Update.
9755 * sh-tdep.c (sh_gdbarch_init): Update.
9756 * s390-tdep.c (s390_gdbarch_init): Update.
9757 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9758 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9759 * mips-tdep.c (mips_gdbarch_init): Update.
9760 * mcore-tdep.c (mcore_gdbarch_init): Update.
9761 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9762 * ia64-tdep.c (ia64_gdbarch_init): Update.
9763 * i386-tdep.c (i386_gdbarch_init): Update.
9764 * hppa-tdep.c (hppa_gdbarch_init): Update.
9765 * h8300-tdep.c (h8300_gdbarch_init): Update.
9766 * frv-tdep.c (frv_gdbarch_init): Update.
9767 * d10v-tdep.c (d10v_gdbarch_init): Update.
9768 * cris-tdep.c (cris_gdbarch_init): Update.
9769 * avr-tdep.c (avr_gdbarch_init): Update.
9770 * arm-tdep.c (arm_gdbarch_init): Update.
9771 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9772 * alpha-tdep.c (alpha_gdbarch_init): Update.
9773
f541410f
DJ
97742003-03-26 Daniel Jacobowitz <drow@mvista.com>
9775
9776 * signals/signals.c (do_target_signal_to_host): Correct realtime
9777 signal range test.
9778
69f567ae
DJ
97792003-03-26 Daniel Jacobowitz <drow@mvista.com>
9780
9781 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9782 (struct sal_chain, map_catch_names): Remove.
9783 (catch_exception_command_1): Don't call
9784 handle_gnu_4_16_catch_command.
9785
d5d14a5a
DJ
97862003-03-26 Daniel Jacobowitz <drow@mvista.com>
9787
9788 From Mark Dettinger <dettinge@de.ibm.com>:
9789 * dwarf2cfi.c (read_2u): Increment pointer by two.
9790
bdd73e22
DJ
97912003-03-26 Daniel Jacobowitz <drow@mvista.com>
9792
9793 * signals/signals.c: Fix typos in last change.
9794
960cb555
DJ
97952003-03-26 Daniel Jacobowitz <drow@mvista.com>
9796
9797 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9798 not already defined. Use __SIGRTMIN if available.
9799 (target_signal_from_host): Remove SIGRTMIN block.
9800 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9801 the signal is within the realtime range.
9802
f636b87d
AF
98032003-03-25 Adam Fedor <fedor@gnu.org>
9804
9805 * Makefile.in (infrun.o): Add $(language_h)
9806 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9807 for language specific trampolines.
9808 * language.h (struct language_defn): Add skip_trampoline.
9809 (skip_language_trampoline): Declare.
9810 * language.c (unk_lang_trampoline, skip_language_trampoline):
9811 New functions.
9812 (unknown_language_defn, auto_language_defn, local_language_defn):
9813 Add ukn_lang_trampoline.
9814 * ada-lang.c (ada_language_defn): Add NULL for language
9815 specific skip_trampoline.
9816 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9817 scm-lang.c: Likewise.
9818 * objc-lang.c (objc_skip_trampoline): New function.
9819 (objc_language_defn): Add objc_skip_trampoline.
9820
28f617b3 98212003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9822
9823 * frame.c (get_prev_frame): Delay validating a frame's ID -
9824 non-NULL, didn't go backwards - until an attempt to unwind it to
9825 the previous frame.
9826
f933a9c5
AC
98272003-03-25 Andrew Cagney <cagney@redhat.com>
9828
9829 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9830 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9831 * gdbarch.h, gdbarch.c: Re-generate.
9832 * config/sparc/tm-sparc.h
9833 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9834 * sparc-tdep.c (sparc_gdbarch_init): Set
9835 deprecated_extra_stack_alignment_needed.
9836 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9837 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9838 extra_stack_alignment_needed.
9839 * v850-tdep.c (v850_gdbarch_init): Ditto.
9840 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9841 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9842 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9843 * cris-tdep.c (cris_gdbarch_init): Ditto.
9844 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9846
4183d812
AC
98472003-03-25 Andrew Cagney <cagney@redhat.com>
9848
9849 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9850 STORE_STRUCT_RETURN.
9851 * gdbarch.h, gdbarch.c: Regenerate.
9852 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9853 (d10v_push_arguments): Set the struct return register.
9854 (d10v_gdbarch_init): Update.
9855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9856 * x86-64-tdep.c (x86_64_init_abi): Update.
9857 * vax-tdep.c (vax_gdbarch_init): Update.
9858 * v850-tdep.c (v850_gdbarch_init): Update.
9859 * sparc-tdep.c (sparc_gdbarch_init): Update.
9860 * sh-tdep.c (sh_gdbarch_init): Update.
9861 * s390-tdep.c (s390_gdbarch_init): Update.
9862 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9863 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9864 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9865 * mips-tdep.c (mips_gdbarch_init): Update.
9866 * mcore-tdep.c (mcore_gdbarch_init): Update.
9867 * m68k-tdep.c (m68k_gdbarch_init): Update.
9868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9869 * ia64-tdep.c (ia64_gdbarch_init): Update.
9870 * i386-tdep.c (i386_gdbarch_init): Update.
9871 * hppa-tdep.c (hppa_gdbarch_init): Update.
9872 * h8300-tdep.c (h8300_gdbarch_init): Update.
9873 * frv-tdep.c (frv_gdbarch_init): Update.
9874 * cris-tdep.c (cris_gdbarch_init): Update.
9875 * avr-tdep.c (avr_gdbarch_init): Update.
9876 * arm-tdep.c (arm_gdbarch_init): Update.
9877 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9878
1bf6d5cc
AC
98792003-03-25 Andrew Cagney <cagney@redhat.com>
9880
9881 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9882 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9883 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9884 * gdbarch.h, gdbarch.c: Regenerate.
9885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9886 call_dummy_stack_adjust_p.
9887 * vax-tdep.c (vax_gdbarch_init): Ditto.
9888 * v850-tdep.c (v850_gdbarch_init): Ditto.
9889 * sh-tdep.c (sh_gdbarch_init): Ditto.
9890 * s390-tdep.c (s390_gdbarch_init): Ditto.
9891 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9892 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9893 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9894 * mips-tdep.c (mips_gdbarch_init): Ditto.
9895 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9896 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9898 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9899 * i386-tdep.c (i386_gdbarch_init): Ditto.
9900 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9901 * frv-tdep.c (frv_gdbarch_init): Ditto.
9902 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9903 * cris-tdep.c (cris_gdbarch_init): Ditto.
9904 * avr-tdep.c (avr_gdbarch_init): Ditto.
9905 * arm-tdep.c (arm_gdbarch_init): Ditto.
9906 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9907 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9908 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9909 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9910 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9911 call_dummy_stack_adjust_p.
9912 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9913 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9914 * sparc-tdep.c (sparc32_push_arguments): Update.
9915 * valops.c (hand_function_call): Update.
9916
71c08af0
CV
99172003-03-25 Corinna Vinschen <vinschen@redhat.com>
9918
9919 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9920 set_gdbarch_char_signed.
9921
30757f90
RE
99222003-03-25 Richard Earnshaw <rearnsha@arm.com>
9923
9924 PR cli/548
9925 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9926
03d48a7d
RE
99272003-03-25 Richard Earnshaw <rearnsha@arm.com>
9928
9929 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9930 (_initialize_arm_tdep): Don't set tm_print_insn.
9931
2cf6873c
AF
99322003-03-24 Adam Fedor <fedor@gnu.org>
9933
9934 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9935 * objc-lang.h: Add multiple inclusion protection.
9936 (start_msglist, add_msglist, end_msglist): Additional declarations.
9937
17c0759e
RE
99382003-03-24 Richard Earnshaw <rearnsha@arm.com>
9939
9940 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9941 value was renamed to ARM_FLOAT_SOFT_FPA.
9942
618ce49f
AC
99432003-03-23 Andrew Cagney <cagney@redhat.com>
9944
9945 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9946 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9947 * gdbarch.h, gdbarch.c: Regenerate.
9948 * valops.c (hand_function_call): Update.
9949 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9950 * frame.c (legacy_saved_regs_this_id): Update.
9951 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9952 * dummy-frame.h: Update.
9953 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9954 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9955 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9956 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9957 * config/m68k/tm-sun3.h: Update.
9958 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9960 * x86-64-tdep.c (x86_64_init_abi): Update.
9961 * vax-tdep.c (vax_gdbarch_init): Update.
9962 * v850-tdep.c (v850_gdbarch_init): Update.
9963 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9964 * sh-tdep.c (sh_gdbarch_init): Update.
9965 * s390-tdep.c (s390_gdbarch_init): Update.
9966 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9967 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9968 (frame_get_saved_regs): Update.
9969 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9970 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9971 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9972 * mips-tdep.c (mips_gdbarch_init): Update.
9973 * mcore-tdep.c (mcore_gdbarch_init): Update.
9974 * m68k-tdep.c (m68k_gdbarch_init): Update.
9975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9976 * ia64-tdep.c (ia64_gdbarch_init): Update.
9977 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9978 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9979 (i386_interix_back_one_frame): Update.
9980 * hppa-tdep.c (hppa_gdbarch_init): Update.
9981 (hppa_init_extra_frame_info): Update.
9982 * h8300-tdep.c (h8300_gdbarch_init): Update.
9983 * frv-tdep.c (frv_gdbarch_init): Update.
9984 * cris-tdep.c (cris_gdbarch_init): Update.
9985 * avr-tdep.c (avr_gdbarch_init): Update.
9986 * arm-tdep.c (arm_gdbarch_init): Update.
9987 * alpha-tdep.c (alpha_gdbarch_init): Update.
9988
fd50bc42
RE
99892003-03-22 Richard Earnshaw <rearnsha@arm.com>
9990
9991 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9992 (arm_get_fp_model): Declare.
9993 * arm-tdep.c (fp_model_strings): New string array.
9994 (arm_fp_model, current_fp_model): New variables.
9995 (arm_get_fp_model): New function.
9996 (arm_set_fp): New function.
9997 (set_fp_model_sfunc): New function.
9998 (show_fp_model): New function.
9999 (_initialize_arm_tdep): Add new command to set/show the FPU.
10000 (arm_extract_return_value): Use arm_get_fp_model.
10001 (arm_store_return_value): Likewise.
10002 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10003 to initialize the floating-point data types.
10004 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10005 model is FPA.
10006
26304000
RE
100072003-03-22 Richard Earnshaw <rearnsha@arm.com>
10008
10009 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10010 the current setting of each value.
10011 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10012 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10013 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10014 commands and add new version as subcommands of "set/show arm".
10015
afd7eef0
RE
100162003-03-22 Richard Earnshaw <rearnsha@arm.com>
10017
10018 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10019 (set_arm_command, show_arm_command): New functions.
10020 (_initialize_arm_tdep): Add them.
10021 (num_disassembly_options): Renamed from num_flavor_options.
10022 (valid_disassembly_styles): Renamed from valid_flavors.
10023 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10024 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10025 set_disassembly_flavor_sfunc.
10026 (set_disassembly_style): Renamed from set_disassembly_flavor.
10027 (arm_othernames): Updated.
10028 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10029 command. Add "set/show arm disassembly" commands. Deprecate
10030 "othernames" command.
10031
299a7944
RE
100322003-03-22 Richard Earnshaw <rearnsha@arm.com>
10033
10034 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10035 (arm-tdep.o): Depend on elf_arm_h.
10036
c1dac9e6
RE
100372003-03-22 Richard Earnshaw <rearnsha@arm.com>
10038
10039 * Makefile.in (coff_internal_h): Define.
10040 (arm-tdep.o): Update dependencies.
10041
2702d96c
RE
100422003-03-22 Richard Earnshaw <rearnsha@arm.com>
10043
10044 * arm-tdep.c (prologue_cache): Delete.
10045 (check_prologue_cache, save_prologue_cache): Delete.
10046 (arm_scan_prologue): Don't check or update the prologue_cache.
10047 (arm_gdb_arch_init): Don't initialize it.
10048 (_initialize_arm_tdep): Likewise.
10049
27d5d74b
SC
100502003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10051
10052 * MAINTAINERS (tui): Maintainer of tui code.
10053
1762d96d
CV
100542003-03-21 Corinna Vinschen <vinschen@redhat.com>
10055
10056 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10057 (i386-cygwin-tdep.o): Add dependencies.
10058 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10059 * i386-cygwin-tdep.c: New file.
10060 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10061 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10062
4c2e2391
AC
100632003-03-20 Andrew Cagney <cagney@redhat.com>
10064
f20d38b7
AC
10065 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10066 (handle_inferior_event): Remove code calling
10067 DYNAMIC_TRAMPOLINE_NEXTPC.
10068
0022b738
AC
10069 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10070 already has a full path.
10071
864dbc90
AC
10072 * main.c (gdb_main): Return 1.
10073 (captured_main): Call error to report an invalid interpreter.
10074
4c2e2391
AC
10075 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10076 * alpha-osf1-tdep.c: Include "gdb_string.h".
10077
5ef7553b
JB
100782003-03-19 J. Brobecker <brobecker@gnat.com>
10079
10080 Continuing work to convert the hppa targets to multiarch partial.
10081
10082 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10083 method, now that hppa_push_dummy_frame has a conformant prototype.
10084 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10085 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10086 for the switch to multiarch partial.
10087
7bde8967
KB
100882003-03-19 Kevin Buettner <kevinb@redhat.com>
10089
10090 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10091 when iss is issNull.
10092
b006a9e9
KB
100932003-03-18 Kevin Buettner <kevinb@redhat.com>
10094
10095 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10096 NUM_REGS bounds check.
10097
5e2e9765
KB
100982003-03-18 Kevin Buettner <kevinb@redhat.com>
10099
10100 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10101 * mips-tdep.c (gdb_assert.h): Include.
10102 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10103 (mips_register_name): Handle integer registers explicitly. Add
10104 bounds checking.
10105 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10106 (mips_lsi33k_reg_names): Don't list integer registers; they're
10107 handled by mips_register_name() now.
10108 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10109 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10110 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10111 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10112 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10113
a2867626
AC
101142003-03-18 Andrew Cagney <cagney@redhat.com>
10115
10116 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10117 a void pointer.
10118 * gdbtypes.h (print_scalar_formatted): Update declaration.
10119 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10120
06600e06
JB
101212003-03-18 J. Brobecker <brobecker@gnat.com>
10122
10123 * infrun.c (observer.h): Add #include.
10124 (normal_stop): Add call to observer_notify_normal_stop.
10125 * Makefile.in (infrun.o): Add dependency on observer.h.
10126
7daf4f5b
JB
101272003-03-18 J. Brobecker <brobecker@gnat.com>
10128
10129 Continuing work to convert the hppa targets to multiarch partial.
10130 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10131 parameter. Reformat comment.
10132 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10133 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10134 to match new profile.
10135
3371ccc0
JB
101362003-03-18 J. Brobecker <brobecker@gnat.com>
10137
10138 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10139 appear to be working in any case.
10140
4fbe891e
JB
101412003-03-18 J. Brobecker <brobecker@gnat.com>
10142
10143 * observer.c (observer_test_first_observer): New static variable.
10144 (observer_test_second_observer): Likewise.
10145 (observer_test_third_observer): Likewise.
10146 (observer_test_first_notification_function): New static function.
10147 (observer_test_second_notification_function): Likewise.
10148 (observer_test_third_notification_function): Likewise.
10149
a7ff40e7
JB
101502003-03-17 J. Brobecker <brobecker@gnat.com>
10151
10152 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10153 * somsolib.c (gdb_assert.h): Likewise.
10154 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10155 (somsolib.o): Likewise.
10156
26ca4152
AC
101572003-03-17 Andrew Cagney <cagney@redhat.com>
10158
10159 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10160 BFD. Simplify setting of di.endian.
10161
0a613259
AC
101622003-03-17 Andrew Cagney <cagney@redhat.com>
10163
10164 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10165 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10166
10167 From Elena Zannoni <ezannoni@redhat.com>
10168 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10169 vector and floating-point parameters.
10170 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10171 convention.
10172 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10173
1132738f
FN
101742003-03-17 Fernando Nasser <fnasser@redhat.com>
10175
10176 * MAINTAINERS: Remove my name from several maintainership roles.
10177
6dc42492
AC
101782003-03-17 Andrew Cagney <cagney@redhat.com>
10179
10180 Fix frame off-by-one bug.
10181 * frame-unwind.h (frame_this_id_ftype): Replace
10182 frame_unwind_id_ftype.
10183 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10184 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10185 with "prev_register".
10186 * frame-unwind.c (frame_unwind_find_by_pc): Return
10187 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10188 comment.
10189 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10190 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10191 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10192 (dummy_frame_unwind): Update.
10193 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10194 sentinel_frame_register_unwind.
10195 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10196 (sentinel_frame_unwinder): Update.
10197 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10198 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10199 * frame.c (create_sentinel_frame): Update. Initialize
10200 "prologue_cache" instead of "unwind_cache".
10201 (frame_register_unwind): Call this frame's prev_register with the
10202 next frame and this frame's prologue cache.
10203 (get_prev_frame): Simplify. Always call prev frame's this_id with
10204 this frame and prev frame's prologue cache. Document that this
10205 call is shifted one to the left when compared to the
10206 frame_register_unwind call.
10207 (legacy_saved_regs_prev_register): Replace
10208 frame_saved_regs_register_unwind.
10209 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10210 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10211 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10212 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10213 (d10v_frame_unwind): Update.
10214 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10215 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10216 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10217 "saved_regs" with "this_saved_regs".
10218
efd710d6
AC
102192003-03-16 Andrew Cagney <cagney@redhat.com>
10220
10221 * frame.c (frame_pop): Don't call target_store_registers. Fix
10222 problem reported by Mark Kettenis.
10223
4e259f09
MK
102242003-03-16 Mark Kettenis <kettenis@gnu.org>
10225
10226 * i386-tdep.c (i386_register_type): Renamed from
10227 i386_register_virtual_type. Adjust function signature.
10228 (i386_gdbarch_init): Set register_type instead of
10229 deprecated_max_register_raw_size,
10230 deprecated_max_register_virtual_size and register_virtual_type.
10231
055bb976
AC
102322003-03-14 Andrew Cagney <cagney@redhat.com>
10233
10234 * frame.c (get_prev_frame): When a legacy frame, always call
10235 legacy_get_prev_frame. Simplify unwind code using assumption that
10236 the unwinder is new.
10237 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10238 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10239 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10240
ac2adee5
AC
102412003-03-14 Andrew Cagney <cagney@redhat.com>
10242
10243 * frame.c (get_saved_register): Delete function.
10244 * frame.h (get_saved_register): Delete declaration.
10245 * xstormy16-tdep.c: Update comment.
10246 * regcache.h: Update comments.
10247 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10248 get_saved_register and extract_address, use
10249 frame_read_unsigned_register.
10250 (sparc_frame_saved_pc): Ditto.
10251 (sparc_get_saved_register): Instead of get_saved_register, use
10252 frame_register.
10253 (sparc_pop_frame): Ditto.
10254 * findvar.c: Update comments.
10255 (value_of_register): Call frame_register instead of
10256 get_saved_register.
10257 (value_from_register): Ditto.
10258 * config/sparc/tm-sparc.h: Update comment.
10259 * breakpoint.c: Update comment.
10260
129c1cd6
AC
102612003-03-14 Andrew Cagney <cagney@redhat.com>
10262
10263 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10264 GET_SAVED_REGISTER.
10265 * gdbarch.h, gdbarch.c: Re-generate.
10266 * frame.h: Update comments.
10267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10268 * x86-64-tdep.c (x86_64_init_abi): Update.
10269 * sparc-tdep.c (sparc_gdbarch_init): Update.
10270 * sh-tdep.c (sh_gdbarch_init): Update.
10271 * mips-tdep.c (mips_gdbarch_init): Update.
10272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10273 * cris-tdep.c (cris_gdbarch_init): Update.
10274 * ia64-tdep.c (ia64_gdbarch_init): Update.
10275 * frame.c (frame_register): Update.
10276 (get_saved_register): Update.
10277 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10278
749b82f6
AC
102792003-03-13 Andrew Cagney <cagney@redhat.com>
10280
10281 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10282 * gdbarch.h, gdbarch.c: Regenerate.
10283 * valops.c (hand_function_call): Update comment.
10284 * stack.c (return_command): Update comment.
10285 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10286 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10288 * x86-64-tdep.c (x86_64_init_abi): Update.
10289 * vax-tdep.c (vax_gdbarch_init): Update.
10290 * v850-tdep.c (v850_gdbarch_init): Update.
10291 * sparc-tdep.c (sparc_gdbarch_init): Update.
10292 * sh-tdep.c (sh_gdbarch_init): Update.
10293 * s390-tdep.c (s390_gdbarch_init): Update.
10294 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10295 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10296 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10297 * mips-tdep.c (mips_gdbarch_init): Update.
10298 * mcore-tdep.c (mcore_gdbarch_init): Update.
10299 * m68k-tdep.c (m68k_gdbarch_init): Update.
10300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10301 * ia64-tdep.c (ia64_gdbarch_init): Update.
10302 * i386-tdep.c (i386_gdbarch_init): Update.
10303 * hppa-tdep.c (hppa_gdbarch_init): Update.
10304 * h8300-tdep.c (h8300_gdbarch_init): Update.
10305 * frv-tdep.c (frv_gdbarch_init): Update.
10306 * cris-tdep.c (cris_gdbarch_init): Update.
10307 * avr-tdep.c (avr_gdbarch_init): Update.
10308 * arm-tdep.c (arm_gdbarch_init): Update.
10309 * alpha-tdep.c (alpha_gdbarch_init): Update.
10310
1594fa56
AC
103112003-03-13 Andrew Cagney <cagney@redhat.com>
10312
10313 * frame.c (legacy_frame_p): New function.
10314 (get_prev_frame): Use legacy_frame_p.
10315 * frame.h (legacy_frame_p): Declare.
10316
7717fda3
V
103172003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10318
fbe586ae 10319 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10320 listing corrected.
10321
0c67cbe9
V
103222003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10323
fbe586ae 10324 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10325
03febf99
AC
103262003-03-12 Andrew Cagney <cagney@redhat.com>
10327
10328 * frame.c (get_prev_frame): Rename the frame parameter to
10329 "this_frame".
10330 (get_next_frame, legacy_get_prev_frame): Ditto.
10331
0a1e1ca1
AC
103322003-03-12 Andrew Cagney <cagney@redhat.com>
10333
10334 * frame.c (get_current_frame): Check target_has_registers before
10335 checking target_has_stack.
10336 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10337 instead of deprecated_selected_frame.
10338 * findvar.c (value_of_register): Pass "frame", not
10339 deprecated_selected_frame, to value_of_builtin_reg.
10340
a66a9c23
AC
103412003-03-12 Andrew Cagney <cagney@redhat.com>
10342
10343 * regcache.c (regcache_cooked_write_signed): New function.
10344 (regcache_cooked_write_unsigned): New function.
10345 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10346 (regcache_cooked_read_signed): Fix regnum in range assertion.
10347 * regcache.h (regcache_cooked_write_signed): Declare.
10348 (regcache_cooked_write_unsigned): Declare.
10349
8bedc050
AC
103502003-03-12 Andrew Cagney <cagney@redhat.com>
10351
10352 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10353 * gdbarch.h, gdbarch.c: Re-generate.
10354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10355 * x86-64-tdep.h: Update.
10356 * x86-64-tdep.c (x86_64_init_abi): Update.
10357 * v850-tdep.c (v850_gdbarch_init): Update.
10358 * sparc-tdep.c (sparc_gdbarch_init): Update.
10359 * sh-tdep.c (sh_gdbarch_init): Update.
10360 * s390-tdep.c (s390_gdbarch_init): Update.
10361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10362 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10363 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10364 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10365 * mips-tdep.c (mips_gdbarch_init): Update.
10366 * mcore-tdep.c (mcore_gdbarch_init): Update.
10367 * m68k-tdep.c (m68k_gdbarch_init): Update.
10368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10369 * ia64-tdep.c (ia64_gdbarch_init): Update.
10370 * i386-tdep.c (i386_gdbarch_init): Update.
10371 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10372 * hppa-tdep.c (hppa_gdbarch_init): Update.
10373 * h8300-tdep.c (h8300_gdbarch_init): Update.
10374 * frv-tdep.c (frv_gdbarch_init): Update.
10375 * cris-tdep.c (cris_gdbarch_init): Update.
10376 * avr-tdep.c (avr_gdbarch_init): Update.
10377 * arm-tdep.c (arm_gdbarch_init): Update.
10378 * alpha-tdep.c (alpha_gdbarch_init): Update.
10379 * sh-tdep.c (sh_init_extra_frame_info): Update.
10380 (sh64_init_extra_frame_info): Update.
10381 * ns32knbsd-nat.c (frame_num_args): Update.
10382 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10383 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10384 (xstormy16_frame_chain_valid): Update.
10385 * vax-tdep.c (vax_saved_pc_after_call): Update.
10386 * v850-tdep.c (v850_frame_chain): Update.
10387 (v850_pop_frame): Update.
10388 (v850_init_extra_frame_info): Update.
10389 * sparc-tdep.c (setup_arbitrary_frame): Update.
10390 * ns32k-tdep.c (umax_frame_num_args): Update.
10391 * s390-tdep.c (s390_pop_frame_regular): Update.
10392 * mn10300-tdep.c (mn10300_frame_chain): Update.
10393 (mn10300_pop_frame_regular): Update.
10394 (mn10300_init_extra_frame_info): Update.
10395 * mips-tdep.c (mips_init_frame_pc_first): Update.
10396 (mips_frame_chain): Update.
10397 (mips_pop_frame): Update.
10398 * mcore-tdep.c (mcore_frame_chain): Update.
10399 (mcore_pop_frame): Update.
10400 (mcore_init_extra_frame_info): Update.
10401 * arch-utils.c (init_frame_pc_default): Update.
10402 * m68k-tdep.c (isi_frame_num_args): Update.
10403 (delta68_frame_num_args): Update.
10404 (news_frame_num_args): Update.
10405 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10406 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10407 (alpha_frame_chain): Update.
10408 (alpha_pop_frame): Update.
10409 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10410 (hppa_init_extra_frame_info): Update.
10411 (hppa_frame_chain): Update.
10412 (hppa_frame_chain_valid): Update.
10413 * cris-tdep.c (cris_init_extra_frame_info): Update.
10414 * avr-tdep.c (avr_init_extra_frame_info): Update.
10415 * arm-tdep.c (arm_frame_chain_valid): Update.
10416 (arm_init_extra_frame_info): Update.
10417 (arm_pop_frame): Update.
10418 * frame.c (frame_pc_unwind): Update.
10419 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10420 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10421 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10422 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10423 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10424 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10425
7a25a7c1
AC
104262003-03-12 Andrew Cagney <cagney@redhat.com>
10427
10428 Eliminate the need for POP_FRAME.
10429 * frame.c (do_frame_unwind_register): New function.
10430 (frame_pop): When no POP_FRAME, pop the frame using register
10431 unwind and a scratch regcache.
10432 (frame_saved_regs_pop): Delete function.
10433 (trad_frame_unwinder): Update.
10434 * d10v-tdep.c (d10v_frame_pop): Delete function.
10435 (d10v_frame_unwind): Update.
10436 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10437 (sentinel_frame_unwinder): Update.
10438 * dummy-frame.c (dummy_frame_pop): Delete function.
10439 (dummy_frame_unwind): Update.
10440 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10441 (struct frame_unwind): Update.
10442
2f38ef89
KB
104432003-03-11 Kevin Buettner <kevinb@redhat.com>
10444
10445 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10446 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10447 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10448 Do range checks on register number obtained from debugging info.
10449 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10450 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10451 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10452 mapping function.
10453 (do_fp_register_row): Fix typo which caused double type to be
10454 used when attempting to unpack a float.
10455
552f4abf
JB
104562003-03-11 J. Brobecker <brobecker@gnat.com>
10457
10458 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10459
e0d2ae16
AC
104602003-03-11 Andrew Cagney <cagney@redhat.com>
10461
10462 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10463 frame. Problem found by Corinna Vinschen.
10464
ddbfdd06
PM
104652003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10466
10467 * doublest.c (floatformat_from_length): Accept also
10468 the real size of 'long double' type.
10469
088b2ddc 104702003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10471
088b2ddc 10472 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10473 * breakpoint.c (bpstat_copy): Copy the command lines as well
10474 as the old value, to match what is freed in bpstat_clear.
10475
f56f77c1
DC
104762003-03-10 David Carlton <carlton@math.stanford.edu>
10477
10478 * minsyms.c (add_minsym_to_hash_table): Replace
10479 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10480 (compare_minimal_symbols, compact_minimal_symbols)
10481 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10482 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10483 of DEPRECATED_SYMBOL_MATCHES_NAME.
10484 (lookup_minimal_symbol_solib_trampoline): Ditto.
10485
5602984a
AC
104862003-03-10 Andrew Cagney <cagney@redhat.com>
10487
10488 * regcache.h (regcache_cooked_read_ftype): Define.
10489 (regcache_save, regcache_restore): Add a cooked_read parameter.
10490 * regcache.c (regcache_save, regcache_restore): Update.
10491 (do_cooked_read): New function.
10492 (regcache_cpy): Pass do_cooked_read to regcache_save and
10493 regcache_restore.
10494
8bedc050
AC
104952003-03-10 Andrew Cagney <cagney@redhat.com>
10496
10497 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10498 * gdbarch.h, gdbarch.c: Re-generate.
10499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10500 * x86-64-tdep.h: Update.
10501 * x86-64-tdep.c (x86_64_init_abi): Update.
10502 * v850-tdep.c (v850_gdbarch_init): Update.
10503 * sparc-tdep.c (sparc_gdbarch_init): Update.
10504 * sh-tdep.c (sh_gdbarch_init): Update.
10505 * s390-tdep.c (s390_gdbarch_init): Update.
10506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10507 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10508 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10510 * mips-tdep.c (mips_gdbarch_init): Update.
10511 * mcore-tdep.c (mcore_gdbarch_init): Update.
10512 * m68k-tdep.c (m68k_gdbarch_init): Update.
10513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10514 * ia64-tdep.c (ia64_gdbarch_init): Update.
10515 * i386-tdep.c (i386_gdbarch_init): Update.
10516 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10517 * hppa-tdep.c (hppa_gdbarch_init): Update.
10518 * h8300-tdep.c (h8300_gdbarch_init): Update.
10519 * frv-tdep.c (frv_gdbarch_init): Update.
10520 * cris-tdep.c (cris_gdbarch_init): Update.
10521 * avr-tdep.c (avr_gdbarch_init): Update.
10522 * arm-tdep.c (arm_gdbarch_init): Update.
10523 * alpha-tdep.c (alpha_gdbarch_init): Update.
10524 * sh-tdep.c (sh_init_extra_frame_info): Update.
10525 (sh64_init_extra_frame_info): Update.
10526 * ns32knbsd-nat.c (frame_num_args): Update.
10527 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10528 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10529 (xstormy16_frame_chain_valid): Update.
10530 * vax-tdep.c (vax_saved_pc_after_call): Update.
10531 * v850-tdep.c (v850_frame_chain): Update.
10532 (v850_pop_frame): Update.
10533 (v850_init_extra_frame_info): Update.
10534 * sparc-tdep.c (setup_arbitrary_frame): Update.
10535 * ns32k-tdep.c (umax_frame_num_args): Update.
10536 * s390-tdep.c (s390_pop_frame_regular): Update.
10537 * mn10300-tdep.c (mn10300_frame_chain): Update.
10538 (mn10300_pop_frame_regular): Update.
10539 (mn10300_init_extra_frame_info): Update.
10540 * mips-tdep.c (mips_init_frame_pc_first): Update.
10541 (mips_frame_chain): Update.
10542 (mips_pop_frame): Update.
10543 * mcore-tdep.c (mcore_frame_chain): Update.
10544 (mcore_pop_frame): Update.
10545 (mcore_init_extra_frame_info): Update.
10546 * arch-utils.c (init_frame_pc_default): Update.
10547 * m68k-tdep.c (isi_frame_num_args): Update.
10548 (delta68_frame_num_args): Update.
10549 (news_frame_num_args): Update.
10550 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10551 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10552 (alpha_frame_chain): Update.
10553 (alpha_pop_frame): Update.
10554 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10555 (hppa_init_extra_frame_info): Update.
10556 (hppa_frame_chain): Update.
10557 (hppa_frame_chain_valid): Update.
10558 * cris-tdep.c (cris_init_extra_frame_info): Update.
10559 * avr-tdep.c (avr_init_extra_frame_info): Update.
10560 * arm-tdep.c (arm_frame_chain_valid): Update.
10561 (arm_init_extra_frame_info): Update.
10562 (arm_pop_frame): Update.
10563 * frame.c (frame_pc_unwind): Update.
10564 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10565 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10566 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10567 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10568 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10569 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10570
12cc2063
AC
105712003-03-10 Andrew Cagney <cagney@redhat.com>
10572
10573 * gdbarch.sh (gdbarch_unwind_pc): New method.
10574 * gdbarch.h, gdbarch.c: Regenerate.
10575 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10576 but use read_pc and FRAME_SAVED_PC as fall backs.
10577 (frame_saved_regs_pc_unwind): Delete function.
10578 (trad_frame_unwinder): Update.
10579 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10580 (struct frame_unwind): Update.
10581 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10582 (dummy_frame_unwind): Update.
10583 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10584 (sentinel_frame_unwinder): Update.
10585 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10586 (d10v_frame_unwind): Update.
10587 (d10v_unwind_pc): New function.
10588 (d10v_gdbarch_init): Set unwind_pc.
10589
ef840a37
AC
105902003-03-10 Andrew Cagney <cagney@redhat.com>
10591
a2ce2e56
AC
10592 * gdbarch.h: Re-generate.
10593
ef840a37
AC
10594 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10595 PC.
10596 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10597 the PC register.
10598
08f3424b
MK
105992003-03-08 Mark Kettenis <kettenis@gnu.org>
10600
10601 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10602
1248ede2
AC
106032003-03-08 Andrew Cagney <cagney@redhat.com>
10604
10605 * cli-out.c: Update copyright.
10606 (cli_out_data): Define typedef. Use instead of ui_out_data.
10607
f49bacc8
AC
106082003-03-08 Andrew Cagney <cagney@redhat.com>
10609
10610 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10611 the result.
10612
9b05f993
AC
106132003-03-07 Andrew Cagney <cagney@redhat.com>
10614
10615 * gdbarch.sh: Don't generate two macro definitions when an
10616 undefined macro taking no arguments.
10617 * gdbarch.h: Regenerate.
8ffd9b1b 10618
166f4c7b
ML
106192002-03-07 Michal Ludvig <mludvig@suse.cz>
10620
10621 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10622 (x86_64_unwind_dummy_id): New functions.
10623 (x86_64_init_abi): Register these two new functions.
10624
6d686a84
ML
106252003-03-07 Michal Ludvig <mludvig@suse.cz>
10626
10627 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10628 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10629 separate function.
10630 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10631
6314f104
AC
106322003-03-05 Andrew Cagney <cagney@redhat.com>
10633
10634 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10635 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10636 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10637 to use unwind_dummy_id when a dummy frame.
10638 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10639 predicate.
10640 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10641
ceea5145
AC
106422003-03-05 Andrew Cagney <cagney@redhat.com>
10643
10644 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10645 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10646 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10647 values.
10648
0d843116
AC
106492003-03-05 Andrew Cagney <cagney@redhat.com>
10650
10651 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10652 (struct d10v_unwind_cache): Delete field "frameless". Replace
10653 "next_addr" with "sp_offset". Add "r11_offset".
10654 (d10v_frame_unwind_cache): Update.
10655 (prologue_find_regs): Update. When "mv r11, sp", save the
10656 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10657 RN was saved in r11_offset.
10658
b2579786
AC
106592003-03-05 Andrew Cagney <cagney@redhat.com>
10660
10661 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10662 cached PC value in the next frame.
10663
218e5956
AC
106642003-03-05 Andrew Cagney <cagney@redhat.com>
10665
10666 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10667 "id_unwind_cache" with "id".
10668 (frame_id_unwind): Delete declaration.
10669 * frame.c (frame_id_unwind): Delete function.
10670 (get_prev_frame): Call the frame id unwind method directly. Store
10671 the returned next frame's ID value in NEXT_FRAME. Note that there
10672 is a problem with the wrong unwind ID being called with the wrong
10673 unwind cache.
10674
ed363b1b
DJ
106752003-03-05 Daniel Jacobowitz <drow@mvista.com>
10676
10677 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10678
fe1f4a5e
DJ
106792003-03-05 James Ingham <jingham@apple.com>
10680 Daniel Jacobowitz <drow@mvista.com>
10681
10682 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10683 (auto_cp_abi): New variable.
10684 (current_cp_abi, num_cp_abis): Make static.
10685 (CP_ABI_MAX): Define.
10686 (cp_abis): Turn into an array.
10687 (value_virtual_fn_field): Fix formatting.
10688 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10689 takes a pointer.
10690 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10691 (list_cp_abis, _initialize_cp_abi): New functions.
10692 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10693 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10694 switch_to_cp_abi. Update prototype for register_cp_abi.
10695 * Makefile.in (cp-abi.o): Update dependencies.
10696 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10697 instead of switch_to_cp_abi.
10698 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10699 register_cp_abi.
10700 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10701 register_cp_abi.
10702 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10703
e4adbba9
DJ
107042003-03-05 Daniel Jacobowitz <drow@mvista.com>
10705
10706 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10707 * dwarf2loc.c: Include "regcache.h".
10708 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10709 register_size.
10710 * Makefile.in (dwarf2loc.o): Update dependencies.
10711
91ccbfc1
TR
107122003-03-04 Theodore A. Roth <troth@openavr.org>
10713
10714 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10715 number of io registers reported by remote target is not a multiple of
10716 step.
10717
3d4e8fd2
DC
107182003-03-04 David Carlton <carlton@math.stanford.edu>
10719
10720 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10721 (lookup_symbol_aux_psymtabs): Update call to
10722 lookup_partial_symbol.
10723 (lookup_transparent_type, find_main_psymtab)
10724 (make_symbol_overload_list): Ditto.
10725
ed42d87b
KH
107262003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10727
10728 * MAINTAINERS (Write after approval): Update my email address.
10729
a0ed5532
AC
107302003-03-03 Andrew Cagney <cagney@redhat.com>
10731
10732 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10733 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10734 predicate. Replace MAX_REGISTER_RAW_SIZE.
10735 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10736 MAX_REGISTER_VIRTUAL_SIZE.
10737 * regcache.c (legacy_max_register_raw_size): New function.
10738 (legacy_max_register_virtual_size): New function.
10739 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10740 (MAX_REGISTER_RAW_SIZE): Define.
10741 (legacy_max_register_raw_size): Declare.
10742 (legacy_max_register_virtual_size): Declare.
10743 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10744 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10745 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10746 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10747 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10748 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10749 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10750 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10751 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10752 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10753 * vax-tdep.c (vax_gdbarch_init): Update.
10754 * v850-tdep.c (v850_gdbarch_init): Update.
10755 * sparc-tdep.c (sparc_gdbarch_init): Update.
10756 * sh-tdep.c (sh_gdbarch_init): Update.
10757 * s390-tdep.c (s390_gdbarch_init): Update.
10758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10759 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10760 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10761 * mips-tdep.c (mips_gdbarch_init): Update.
10762 * mcore-tdep.c (mcore_gdbarch_init): Update.
10763 * m68k-tdep.c (m68k_gdbarch_init): Update.
10764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10765 * ia64-tdep.c (ia64_gdbarch_init): Update.
10766 * i386-tdep.c (i386_gdbarch_init): Update.
10767 * hppa-tdep.c (hppa_gdbarch_init): Update.
10768 * h8300-tdep.c (h8300_gdbarch_init): Update.
10769 * frv-tdep.c (frv_gdbarch_init): Update.
10770 * cris-tdep.c (cris_gdbarch_init): Update.
10771 * avr-tdep.c (avr_gdbarch_init): Update.
10772 * arm-tdep.c (arm_gdbarch_init): Update.
10773 * alpha-tdep.c (alpha_gdbarch_init): Update.
10774 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10775 max_register_raw_size or max_register_virtual_size.
10776
8e437497
DC
107772003-03-03 David Carlton <carlton@math.stanford.edu>
10778
10779 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10780 SYMBOL_MATCHES_NAME, add comment.
10781 (SYMBOL_MATCHES_NATURAL_NAME): New.
10782 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10783 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10784 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10785 * symtab.c (lookup_partial_symbol): Use
10786 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10787 unhelpful comment.
10788 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10789 SYMBOL_MATCHES_NAME.
10790 Fix for PR c++/33.
10791
25120b0d
DC
107922003-03-03 David Carlton <carlton@math.stanford.edu>
10793
10794 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10795 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10796 by regexp matching against SYMBOL_NATURAL_NAME.
10797
78a11fb4
DC
107982003-03-03 David Carlton <carlton@math.stanford.edu>
10799
10800 * linespec.c (find_method): Extract code into collect_methods.
10801 (collect_methods): New.
10802
645dd519
MK
108032003-03-02 Mark Kettenis <kettenis@gnu.org>
10804
b4700d91
MK
10805 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10806 get_frame_base.
10807
645dd519
MK
10808 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10809 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10810
0aa7e1aa
SC
108112003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10812
8ffd9b1b 10813 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10814 and not regnum when summing the size of all registers up to regnum.
10815
f30ee0bc
AC
108162003-03-01 Andrew Cagney <cagney@redhat.com>
10817
10818 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10819 FRAME_INIT_SAVED_REGS.
10820 * gdbarch.h, gdbarch.c: Regenerate.
10821 * stack.c (frame_info): Update.
10822 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10823 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10824 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10825 * ns32k-tdep.c (ns32k_pop_frame): Update.
10826 * mips-tdep.c (mips_pop_frame): Update.
10827 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10828 * ia64-tdep.c (ia64_frame_chain): Update.
10829 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10830 (ia64_frameless_function_invocation): Update.
10831 (ia64_init_extra_frame_info): Update.
10832 (ia64_pop_frame_regular): Update.
10833 * frame.h (struct frame_info): Update comment.
10834 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10835 * frame.c (frame_saved_regs_register_unwind): Update.
10836 (frame_saved_regs_register_unwind): Update.
10837 (deprecated_generic_get_saved_register): Update.
10838 * cris-tdep.c: Update comment.
10839 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10840 Rename macro.
10841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10842 * x86-64-tdep.c (x86_64_init_abi): Update.
10843 * vax-tdep.c (vax_gdbarch_init): Update.
10844 * v850-tdep.c (v850_gdbarch_init): Update.
10845 * sparc-tdep.c (sparc_gdbarch_init): Update.
10846 * sh-tdep.c (sh_gdbarch_init): Update.
10847 * s390-tdep.c (s390_gdbarch_init): Update.
10848 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10849 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10850 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10851 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10852 * mips-tdep.c (mips_gdbarch_init): Update.
10853 * mcore-tdep.c (mcore_gdbarch_init): Update.
10854 * m68k-tdep.c (m68k_gdbarch_init): Update.
10855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10856 * ia64-tdep.c (ia64_gdbarch_init): Update.
10857 * i386-tdep.c (i386_gdbarch_init): Update.
10858 * frv-tdep.c (frv_gdbarch_init): Update.
10859 * avr-tdep.c (avr_gdbarch_init): Update.
10860 * arm-tdep.c (arm_gdbarch_init): Update.
10861 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10862
42fa7c0f
AC
108632003-03-01 Andrew Cagney <cagney@redhat.com>
10864
10865 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10866 option enum and switch. When no windows, set the interpreter to
10867 INTERP_CONSOLE.
8ffd9b1b 10868
49c7e338
AC
108692003-03-01 Andrew Cagney <cagney@redhat.com>
10870
10871 * main.c (captured_main): Replace magic option characters with an
10872 enum.
10873
e9582e71
AC
108742003-03-01 Andrew Cagney <cagney@redhat.com>
10875
10876 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10877 INIT_EXTRA_FRAME_INFO.
10878 * gdbarch.h, gdbarch.c: Regenerate.
10879 * arm-tdep.c: Update comments.
10880 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10881 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10882 * frame.h, avr-tdep.c: Ditto.
10883 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10884 (create_new_frame, legacy_get_prev_frame): Ditto.
10885 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10886 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10888 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10889 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10890 * v850-tdep.c (v850_gdbarch_init): Ditto.
10891 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10892 * sh-tdep.c (sh_gdbarch_init): Ditto.
10893 * s390-tdep.c (s390_gdbarch_init): Ditto.
10894 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10895 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10896 * mips-tdep.c (mips_gdbarch_init): Ditto.
10897 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10898 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10899 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10900 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10901 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10902 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10903 * frv-tdep.c (frv_gdbarch_init): Ditto.
10904 * cris-tdep.c (cris_gdbarch_init): Ditto.
10905 * avr-tdep.c (avr_gdbarch_init): Ditto.
10906 * arm-tdep.c (arm_gdbarch_init): Ditto.
10907 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10908 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10909
35cac7cf
AC
109102003-03-01 Andrew Cagney <cagney@redhat.com>
10911
10912 * gdbarch.sh (register_type): New function with predicate.
10913 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10914 * gdbarch.h, gdbarch.c: Re-generate.
10915 * arch-utils.c (generic_register_byte): Use generic_register_size.
10916 (generic_register_size): When available, use
10917 gdbarch_register_type.
10918 * regcache.c (init_regcache_descr): When available, initialize the
10919 register type array using gdbarch_register_type. If the
10920 architecture supplies gdbarch_register_type, do not use the legacy
10921 regcache layout.
10922 * d10v-tdep.c (d10v_register_type): Replace
10923 d10v_register_virtual_type.
10924 (d10v_gdbarch_init): Set register_type instead of
10925 register_virtual_type.
10926
7b83296f
AC
109272003-03-01 Andrew Cagney <cagney@redhat.com>
10928
10929 * Makefile.in (ax-gdb.o): Update dependencies.
10930 * ax-gdb.c: Include "regcache.h".
10931 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10932 * findvar.c (value_of_register): Ditto.
10933 * infcmd.c (default_print_registers_info): Ditto.
10934
eadc1c87
MK
109352003-03-01 Mark Kettenis <kettenis@gnu.org>
10936
10937 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10938 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10939
14143612
MK
109402003-03-01 Mark Kettenis <kettenis@gnu.org>
10941
10942 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10943 of STREQ.
10944
a55cc764
DJ
109452003-02-28 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * Makefile.in (dwarf2loc.o): Update dependencies.
10948 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10949 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10950 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10951 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10952 (locexpr_tracepoint_var_ref): New function.
10953 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10954
08a617da
AC
109552003-02-28 Andrew Cagney <cagney@redhat.com>
10956
10957 * regcache.c (register_size): New function.
10958 * regcache.h (register_size): Declare
10959 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10960 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10961
4224873a
DC
109622003-02-28 David Carlton <carlton@math.stanford.edu>
10963
10964 * linespec.c (decode_compound): Extract code into find_method.
10965 (find_method): New.
10966
ccdc5d7f
JB
109672003-02-28 J. Brobecker <brobecker@gnat.com>
10968
10969 * Makefile.in: Add rules to build and link in observer.o.
10970
974e8ced
JB
109712003-02-27 J. Brobecker <brobecker@gnat.com>
10972
10973 * observer.c: Minor comments edits.
10974
7a28f973
JB
109752003-02-27 J. Brobecker <brobecker@gnat.com>
10976
10977 * observer.h, observer.c: New file.
10978
27cddce2
AC
109792003-02-27 Andrew Cagney <cagney@redhat.com>
10980
10981 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10982
b94a41a1
SC
109832003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10984
10985 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10986 (M6812_OP_STS_EXT): Likewise.
10987 (m6811_prologue): Use the above to recognize prologue.
10988 (m6812_prologue): Likewise.
10989
c8be8951
DC
109902003-02-27 David Carlton <carlton@math.stanford.edu>
10991
10992 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10993 SYMBOL_PRINT_NAME.
10994 (compare_psymbols): Ditto.
10995 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10996
d05bb1fc
MS
109972003-02-27 Michael Snyder <msnyder@redhat.com>
10998
4e845cd3
MS
10999 * f-lang.c (build_fortran_types): New function.
11000 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11001 * doublest.c (extract_floating): Fix warning text.
11002
f3824013
AC
110032003-02-27 Andrew Cagney <cagney@redhat.com>
11004
11005 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11006 predicate. Replaces PUSH_DUMMY_FRAME.
11007 * gdbarch.h, gdbarch.c: Regnerate.
11008 * valops.c (hand_function_call): Update. Call
11009 generic_push_dummy_frame directly.
11010 * vax-tdep.c (vax_gdbarch_init): Update.
11011 * sparc-tdep.c (sparc_gdbarch_init): Update.
11012 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11013 * m68k-tdep.c (m68k_gdbarch_init): Update.
11014 * hppa-tdep.c (hppa_gdbarch_init): Update.
11015 * alpha-tdep.c (alpha_gdbarch_init): Update.
11016 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11017 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11018 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11020 push_dummy_frame to generic_push_dummy_frame.
11021 * v850-tdep.c (v850_gdbarch_init): Ditto.
11022 * sh-tdep.c (sh_gdbarch_init): Ditto.
11023 * s390-tdep.c (s390_gdbarch_init): Ditto.
11024 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11025 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11026 * mips-tdep.c (mips_gdbarch_init): Ditto.
11027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11029 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11030 * i386-tdep.c (i386_gdbarch_init): Ditto.
11031 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11032 * frv-tdep.c (frv_gdbarch_init): Ditto.
11033 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11034 * cris-tdep.c (cris_gdbarch_init): Ditto.
11035 * avr-tdep.c (avr_gdbarch_init): Ditto.
11036 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11037
ad188201
KB
110382003-02-26 Kevin Buettner <kevinb@redhat.com>
11039
11040 * mips-tdep.c (show_mips_abi): New function.
11041 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11042 command ``show mips abi''.
11043
6b37567a 110442003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11045
6b37567a 11046 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11047 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11048 more sline entries have been seen for the function.
11049
d3e0a5bf
MC
110502003-02-26 Michael Chastain <mec@shout.net>
11051
11052 * configure: Regenerate with autoconf 000227.
11053
18972eea
MC
110542003-02-26 Michael Chastain <mec@shout.net>
11055
11056 Close PR build/660.
11057 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11058 for old libc5/glibc.
11059 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11060
0bbde931
KW
110612003-02-26 Kris Warkentin <kewarken@qnx.com>
11062
11063 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11064 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11065
27ca5dad
MC
110662003-02-26 Michael Chastain <mec@shout.net>
11067
11068 * configure.in: New variable HAVE_UINTPTR_T.
11069 * configure, config.in: Regenerated.
11070
6f88d630
DJ
110712003-02-26 Daniel Jacobowitz <drow@mvista.com>
11072
11073 Fix PR build/1097.
11074 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11075
b14185ce
AC
110762003-02-25 Andrew Cagney <cagney@redhat.com>
11077
11078 * frame.c (get_prev_frame): Add comment on check for
11079 inside_entry_func. Only check for inside_entry_file when not a
11080 dummy and not a sentinel. Check that the new frame is not inner
11081 to the old frame.
11082
ac2bd0a9
AC
110832003-02-25 Andrew Cagney <cagney@redhat.com>
11084
11085 * frame.c (frame_debug): New variable.
11086 (_initialize_frame): Add "set/show debug frame" command.
11087 (get_prev_frame): When frame_debug, print reason why unwind
11088 failed.
11089
b18a0fd2
MC
110902003-02-25 Michael Chastain <mec@shout.net>
11091
11092 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11093 to avoid uintptr_t definition problems.
11094
22abf04a
DC
110952003-02-25 David Carlton <carlton@math.stanford.edu>
11096
11097 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11098 (SYMBOL_LINKAGE_NAME): Ditto.
11099 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11100 SYMBOL_LINKAGE_NAME.
11101 (struct general_symbol_info): Expand comment.
11102 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11103 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11104 (SYMBOL_MATCHES_REGEXP): Ditto.
11105 * symtab.c (symbol_natural_name): New function.
11106 * objfiles.h: Replace all uses of SYMBOL_NAME by
11107 DEPRECATED_SYMBOL_NAME.
11108 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11109 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11110 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11111 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11112 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11113 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11114 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11115 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11116 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11117 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11118 * ada-exp.y: Ditto.
11119 * ada-exp.y: Update copyright.
11120 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11121 * cp-valprint.c: Ditto.
11122
1a5848f6
JJ
111232003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11124
11125 * infptrace.c (detach): Do not flag error if ptrace detach fails
11126 and errno is set to ESRCH.
11127
7343d46a
AC
111282003-02-24 Andrew Cagney <cagney@redhat.com>
11129
11130 * infptrace.c (udot_info): Change type of udot_off to long. Use
11131 paddr when printing udot_off's value.
11132
49fa1dc2
DC
111332003-02-24 David Carlton <carlton@math.stanford.edu>
11134
11135 * symtab.c (make_symbol_overload_list): Only read in partial
11136 symtabs containing a matching partial symbol.
11137
0fe19209
DC
111382003-02-24 David Carlton <carlton@math.stanford.edu>
11139
11140 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11141 do the comparison, not strcmp.
11142 * symfile.c (compare_psymbols): Ditto.
11143 * defs.h: Declare strcmp_iw_ordered.
11144 * utils.c (strcmp_iw_ordered): New function.
11145
8e3ee7b5
JB
111462003-02-24 Jim Blandy <jimb@redhat.com>
11147
11148 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11149 support, shared libs): Remove my name from here, to better reflect
11150 reality.
11151
7df1a324
KW
111522003-02-24 Kris Warkentin <kewarken@qnx.com>
11153
11154 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11155 (target_ops): Add to_have_continuable_watchpoint.
11156 * target.c (update_current_target): Add INHERIT line for
11157 to_have_continuable_watchpoint.
11158 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11159 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11160 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11161 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11162
d1c76907
EZ
111632003-02-24 Elena Zannoni <ezannoni@redhat.com>
11164
11165 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11166 maintainership.
11167
2610b0bf
KW
111682003-02-24 Kris Warkentin <kewarken@qnx.com>
11169
f46169db
KW
11170 * solib.c (solib_open): Call target defined search function after
11171 failing with solib-search-path.
11172 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11173 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11174
9a3c34fe
KW
111752003-02-24 Kris Warkentin <kewarken@qnx.com>
11176
f46169db 11177 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11178
2417dd25
SC
111792003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11180
11181 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11182
b631436b
SC
111832003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11184
11185 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11186 (m68hc11_add_reggroups): New function.
11187 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11188 (m68hc11_gdbarch_init): Install the reggroups.
11189 (_initialize_m68hc11_tdep): Initialize them.
11190
0aa8c1e4
JW
111912003-02-21 James E Wilson <wilson@tuliptree.org>
11192
11193 * MAINTAINERS: Update my email address.
11194
50ceaba5
DC
111952003-02-21 David Carlton <carlton@math.stanford.edu>
11196
11197 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11198
4c2df51b
DJ
111992003-02-21 Daniel Jacobowitz <drow@mvista.com>
11200
11201 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11202 * symtab.h: Add opaque declarations of struct axs_value and
11203 struct agent_expr.
11204 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11205 (struct location_funcs): New type.
11206 (struct symbol): Add "loc" to aux_value.
11207 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11208 * dwarf2read.c: Include "dwarf2expr.h".
11209 (dwarf2_symbol_mark_computed): New function.
11210 (read_func_scope): Use it.
11211 (var_decode_location): New function.
11212 (new_symbol): Use it.
11213 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11214
11215 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11216 (dwarf2expr_h, dwarf2loc_h): New variables.
11217 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11218 (dwarf2expr.o, dwarf2loc.o): New rules.
11219 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11220 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11221 LOC_COMPUTED_ARG.
11222 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11223 * m2-exp.y (yylex): Likewise.
11224 * printcmd.c (address_info, print_frame_args): Likewise.
11225 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11226 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11227 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11228 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11229 * symtab.c (lookup_block_symbol): Likewise.
11230
5784d15e
AF
112312003-02-20 Adam Fedor <fedor@gnu.org>
11232
11233 * symtab.h: Remove objc_specific struct
11234 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11235 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11236 Have language_objc use cplus_specific struct.
11237
d4cad8db
TT
112382003-02-20 Tom Tromey <tromey@redhat.com>
11239
11240 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11241 TYPE_NAME, when printing a String value. PR java/1075.
11242
2f9a90b4
AF
112432003-02-20 Adam Fedor <fedor@gnu.org>
11244
d38074a8 11245 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11246 * objc-lang.c (find_methods): Make static.
2f9a90b4 11247
6f17862b
CF
112482003-02-20 Christopher Faylor <cgf@redhat.com>
11249
11250 * win32-nat.c (get_image_name): Check return value from
11251 ReadProcessMemory.
11252 (child_xfer_memory): Ditto.
11253
715d1656
AO
112542003-02-20 Alexandre Oliva <aoliva@redhat.com>
11255
11256 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11257 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11258 '${exec_prefix}' (in addition to the expansion thereof) as
11259 relocatable.
11260 * configure: Rebuilt.
11261
b1262a02
DC
112622003-02-20 David Carlton <carlton@math.stanford.edu>
11263
11264 * symtab.c (search_symbols): Revert the search_symbols part of my
11265 2002-12-23 patch. Add comment.
11266
7134143f
DJ
112672002-02-20 Daniel Jacobowitz <drow@mvista.com>
11268
11269 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11270 * dbxread.c (elfstab_build_psymtabs): Don't call
11271 install_minimal_symbols.
11272 (stabsect_build_psymtabs): Likewise.
11273 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11274 earlier.
11275 * somread.c (som_symfile_read): Call install_minimal_symbols
11276 and do_cleanups earlier.
11277 * nlmread.c (nlm_symfile_read): Likewise.
11278 * mdebugread.c (elfmdebug_build_psymtabs): Call
11279 install_minimal_symbols and make appropriate cleanups.
11280
cf466558
KB
112812003-02-20 Kevin Buettner <kevinb@redhat.com>
11282
11283 * solib.c (reload_shared_libraries): New function.
11284 (_initialize_solib): Add callbacks for ``set solib-search-path''
11285 and ``set solib-absolute-prefix''.
11286
de5ad195
DC
112872003-02-20 David Carlton <carlton@math.stanford.edu>
11288
11289 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11290 expand comment.
11291 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11292 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11293 * ada-typeprint.c (ada_typedef_print): Ditto.
11294 * ax-gdb.c (gen_var_ref): Ditto.
11295 * breakpoint.c (print_one_breakpoint): Ditto.
11296 * buildsym.c (finish_block): Ditto.
11297 * c-valprint.c (c_val_print): Ditto.
11298 * expprint.c (print_subexp): Ditto.
11299 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11300 * infcmd.c (jump_command): Ditto.
11301 * linespec.c (decode_line_2, decode_compound): Ditto.
11302 * maint.c (maintenance_translate_address): Ditto.
11303 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11304 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11305 Ditto.
8ffd9b1b
AJ
11306 * p-valprint.c (pascal_val_print): Ditto.
11307 * stabsread.c (define_symbol): Ditto.
de5ad195 11308 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11309 (print_frame_arg_vars, return_command): Ditto.
11310 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11311 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11312 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11313 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11314 (rbreak_command): Ditto.
11315 * tracepoint.c (tracepoints_info): Ditto.
11316 * typeprint.c (typedef_print): Ditto.
11317 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11318 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11319 * ada-typeprint.c: Update Copyright.
11320 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11321 * tracepoint.c, cli/cli-cmds.c: Ditto.
11322
f796e4be
KB
113232003-02-20 Kevin Buettner <kevinb@redhat.com>
11324
11325 * frame.c (generic_unwind_get_saved_register): Make non-static.
11326 * frame.h (generic_unwind_get_saved_register): Declare.
11327 * mips-tdep.c (read_next_frame_reg): Fetch register from
11328 current regcache when frame is NULL.
11329 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11330 that must be NULL.
11331 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11332 instead of frame_register_unwind().
11333
836cc9f4
AC
113342003-02-20 Andrew Cagney <ac131313@redhat.com>
11335
11336 * remote-sim.c (gdbsim_insert_breakpoint)
11337 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11338 code.
11339
501eef12
AC
113402003-02-20 Andrew Cagney <ac131313@redhat.com>
11341
11342 * remote.c (_initialize_remote): Add commands "set/show remote
11343 hardware-watchpoint-limit" and "set/show remote
11344 hardware-breakpoint-limit".
11345 (remote_hw_watchpoint_limit): Initialize to -1.
11346 (remote_hw_breakpoint_limit): Ditto.
11347 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11348
1b6bc7e0
CF
113492003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11350
11351 * coff-pe-read.c: New file - support reading of minimal symbols from a
11352 portable executable using the export table.
11353 * coff-pe-read.h: New file.
11354 * coffread.c: Include coff-pe-read.h.
11355 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11356 debugging symbols found.
11357 * Makefile.in (SFILES): Add coff-pe-read.o.
11358 (coff_pe_read_h): Define.
11359 (COMMON_OBS): Add coff-pe-read.o.
11360 (coffread.o): Add coff_pe_read_h dependency.
11361 (coff-pe-read.o): New target.
11362
fe898f56
DC
113632003-02-19 David Carlton <carlton@math.stanford.edu>
11364
11365 * Makefile.in (SFILES): Add block.c.
11366 (block_h): New.
11367 (COMMON_OBS): Add block.o.
11368 (block.o): New.
11369 (x86-64-tdep.o): Add $(block_h).
11370 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11371 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11372 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11373 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11374 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11375 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11376 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11377 * value.h: Add opaque declaration for struct block.
11378 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11379 * ada-lang.h: Ditto.
11380 * x86-64-tdep.c: #include "block.h"
11381 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11382 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11383 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11384 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11385 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11386 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11387 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11388 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11389 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11390 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11391 * symtab.c (block_function): Ditto.
11392 (contained_in): Ditto.
11393 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11394 block.h. Add opaque declaration for struct block.
11395 * symtab.h: Move block_function and contained_in declarations to
11396 block.h. Add opaque declarations for struct block, struct
11397 blockvector.
11398 (struct block): Move to block.h.
11399 (struct blockvector): Ditto.
11400 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11401 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11402 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11403 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11404 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11405 Ditto.
11406 * block.c: New file.
11407 * block.h: New file.
11408
173345b5
TR
114092003-02-19 Theodore A. Roth <troth@openavr.org>
11410
11411 * avr-tdep.c (avr_extract_return_value): Remove function.
11412 (avr_store_return_value): Remove function.
11413 (avr_extract_struct_value_address): Remove function.
11414 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11415
338ef23d
AC
114162003-02-19 Andrew Cagney <ac131313@redhat.com>
11417
11418 * rs6000-tdep.c: Include "gdb_assert.h".
11419 (registers_e500): Add "acc" and "spefscr".
11420 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11421 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11422 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11423 really is "r0".
11424 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11425
5412f5f3
KS
114262003-02-18 Keith Seitz <keiths@redhat.com>
11427
11428 * Makefile.in: Add gdbtk-interps.c.
11429
881324eb
KB
114302003-02-18 Kevin Buettner <kevinb@redhat.com>
11431
11432 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11433 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11434
6a2f5abf
AC
114352003-02-18 Andrew Cagney <cagney@redhat.com>
11436
11437 * symtab.h (struct objfile): Add opaque declaration.
11438
54c7009d
EZ
114392003-02-18 Elena Zannoni <ezannoni@redhat.com>
11440
11441 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11442 * dbxread.c (process_one_symbol): Use last_function_start rather
11443 than function_start_offset to find the real beginning of the
11444 current function. The latter is just the text section offset on
11445 some systems, the former is always the real function start.
54c7009d 11446
7ee6d7eb
AC
114472003-02-17 Andrew Cagney <cagney@redhat.com>
11448
11449 * configure.in: Revert ${target} != ${host}.
11450
2846da9b
AC
114512003-02-17 Andrew Cagney <ac131313@redhat.com>
11452
11453 * configure.in (Makefile): Use the test ${target} != ${host},
11454 instead of the absence of the "nm.h" file, to determine of the
11455 configuration non-native.
11456 * configure: Regenerate.
8ffd9b1b 11457
3b27aeea
EZ
114582003-02-14 Elena Zannoni <ezannoni@redhat.com>
11459
fbe586ae 11460 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11461
11462 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11463 conditionalize tui_active test.
11464 (lookup_cmd_1): Ditto.
11465
b0b1c2c0
MK
114662003-02-14 Mark Kettenis <kettenis@gnu.org>
11467
11468 * configure.in: Add check for _etext.
11469 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11470 available.
11471 * config.in, configure: regenerated.
11472
8f05cde5
DJ
114732003-02-14 Daniel Jacobowitz <drow@mvista.com>
11474
11475 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11476
021e7609
AC
114772003-02-14 Andrew Cagney <ac131313@redhat.com>
11478
11479 * main.c (tui_version): Delete variable.
11480 (captured_main): When --tui, set interpreter_p to "tui" instead of
11481 enabling tui_version.
11482 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11483 tui_version.
11484 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11485 * cli/cli-cmds.c (disassemble_command): Ditto.
11486 * defs.h (tui_version): Delete declaration.
11487 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11488 (tui-interp.o): Add rules.
11489 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11490
e325dcec
CF
114912003-02-14 Christopher Faylor <cgf@redhat.com>
11492
36ffb041 11493 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11494 just-loaded dll.
11495
c4f90d87
JM
114962003-02-12 Jason Molenda (jmolenda@apple.com)
11497
fbe586ae
RH
11498 * symmisc.c (print_objfile_statistics): Include information about
11499 the number of psymtabs and symtabs in each object file.
c4f90d87 11500
e46e5ccd
KS
115012003-02-13 Keith R Seitz <keiths@redhat.com>
11502
11503 * main.h (struct captured_main_args): Add interpreter_p.
11504 * main.c (captured_main): Initialize interpreter_p from context.
11505 * gdb.c (main): Set interpreter_p argument.
11506 * Makefile.in (gdb.o): Add dependency for interps.h.
11507
fe97fe9c
AC
115082003-02-12 Andrew Cagney <ac131313@redhat.com>
11509
11510 * event-top.c (cli_command_loop): Delete declaration.
11511 (_initialize_event_loop): Delete function setting event_loop_hook.
11512 * event-top.h (cli_command_loop): Declare. Update copyright.
11513 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11514 * interps.c (current_interp_command_loop): When event_loop_p, call
11515 cli_command_loop.
11516
1cdac4ef
AC
115172003-02-12 Andrew Cagney <ac131313@redhat.com>
11518
11519 * interps.h (interp_command_loop_ftype): Change return type to
11520 void.
11521
48037ead
ML
115222003-02-12 Michal Ludvig <mludvig@suse.cz>
11523
11524 * x86-64-tdep.c (x86_64_extract_return_value)
11525 (x86_64_store_return_value): Use regcache instead of regbuf.
11526 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11527 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11528
033afc63
AC
115292003-02-11 Andrew Cagney <ac131313@redhat.com>
11530
11531 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11532 * aclocal.m4: Regenerate.
11533 * configure: Regenerate.
11534
11535 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11536 TCL_LD_SEARCH_FLAGS.
11537
40d02bca
ML
115382003-02-10 Michal Ludvig <mludvig@suse.cz>
11539
11540 * dwarf2cfi.c: Reindented.
11541
11308a41
AC
115422003-02-09 Andrew Cagney <ac131313@redhat.com>
11543
11544 * interps.c (clear_interpreter_hooks): Convert function definition
11545 to ISO C.
11546
e1c1c0f6
DC
115472003-02-07 David Carlton <carlton@math.stanford.edu>
11548
11549 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11550
ab5d3da6
KB
115512003-02-07 Kevin Buettner <kevinb@redhat.com>
11552
11553 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11554 (struct type): ...to here.
11555 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11556 field.
11557 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11558 (replace_type): Set length on all type variants for a given type.
11559
b8a92b82
AC
115602003-02-07 Andrew Cagney <ac131313@redhat.com>
11561
11562 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11563 <sys/stat.h>.
11564 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11565
5cb316ef
AC
115662003-02-06 Andrew Cagney <ac131313@redhat.com>
11567
2555fe1a
AC
11568 * Makefile.in (symm-nat.o): Update dependencies.
11569 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11570 (lynx-nat.o, ia64-linux-nat.): Ditto.
11571 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11572 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11573 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11574
44270758
AC
11575 * Makefile.in (inflow_h): Define.
11576 (procfs.o, inflow.o, procfs.o): Update dependencies.
11577 * inftarg.c (child_stop): Delete extern declaration of
11578 inferior_process_group. Include "inflow.h".
11579 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11580 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11581 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11582 (our_process_group, inferior_process_group): Extern declarations.
11583
df8f7274
AC
11584 * procfs.c: Include "gdb_assert.h".
11585
5cb316ef
AC
11586 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11587 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11588 * jv-typeprint.c (java_type_print_base): Ditto.
11589 * typeprint.c (typedef_print): Eliminate STREQ.
11590 * cli/cli-script.c (define_command, define_command): Ditto.
11591 * main.c (captured_main): Ditto.
11592 * values.c (lookup_internalvar): Ditto.
11593 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11594 within `if' conditional.
11595 * linespec.c (decode_line_2): Ditto.
11596 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11597 (bfd_openw_with_cleanup): Ditto.
11598
2a28ccea
MK
115992003-02-07 Mark Kettenis <kettenis@gnu.org>
11600
11601 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11602 legacy_extract_return_value and store_return_value to
11603 legacy_return_value.
11604
786b8124
CF
116052003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11606
11607 * win32-nat.c (get_relocated_section_addrs): New function. Find
11608 section load addresses for symbol handling in relocated DLLs.
11609 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11610
b871e4ec
FF
116112003-02-05 Fred Fish <fnf@intrinsity.com>
11612
11613 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11614 '=' and '!='.
11615 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11616 with '&' and '=='.
11617 (angel_RDI_info): Ditto.
11618 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11619 with '&' and '!='.
11620 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11621
4389a95a 116222003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11623 Keith Seitz <keiths@redhat.com>
11624 Elena Zannoni <ezannoni@redhat.com>
11625 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11626
11627 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11628 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11629 (SUBDIR_MI_OBS): Add "mi-interp.o".
11630 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11631 (SFILES): Add "interps.c".
11632 (COMMON_OBS): Add "interps.o".
11633 (interps_h, mi_main_h): Define.
11634 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11635 (mi-main.o, main.o, event-top.o): Update dependencies.
11636 * cli/cli-interp.c: New file.
11637 * interps.h, interps.c: New files.
11638 * top.c: (gdb_init): Don't install the default interpreter, handed
11639 by captured_main.
11640 * main.c: Include "interps.h".
11641 (interpreter_p): Note that it should malloc'ed.
11642 (captured_command_loop): Call current_interp_command_loop.
11643 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11644 xfree and xstrdup when updating interpreter_p. Install the
11645 default interpreter. Add hack to stop mi1's copyright notice
11646 being encoded.
11647 * event-top.h (gdb_setup_readline): Declare.
11648 (gdb_disable_readline): Declare.
11649 * event-top.c: Include "interps.h".
11650 (display_gdb_prompt): Call current_interp_display_prompt_p.
11651 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11652 gdb_stdlog, and gdb_stdtarg.
11653 (_initialize_event_loop): Don't call gdb_setup_readline.
11654 * cli-out.c (cli_out_set_stream): New function.
11655 * cli-out.h (cli_out_set_stream): Declare.
11656
ff3b5810
MK
116572003-02-06 Mark Kettenis <kettenis@gnu.org>
11658
11659 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11660 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11661 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11662 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11663 config/i386/i386v42mp.mt: Removed.
11664
5b729aa5
MK
116652003-02-05 Mark Kettenis <kettenis@gnu.org>
11666
11667 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11668 GDB_OSABI_SOLARIS.
11669
8cc15142
MC
116702003-02-05 Michael Chastain <mec@shout.net>
11671
11672 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11673 2.12.1 and earlier versions.
11674
5aa5d4b9
AC
116752003-02-05 Andrew Cagney <ac131313@redhat.com>
11676
11677 Remove orphaned hosts, targets and files.
11678 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11679 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11680 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11681 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11682 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11683 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11684 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11685 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11686 * config/sparc/tm-sp64sim.h: Delete.
11687 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11688 hosts.
11689 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11690 mips*-dec-mach3* targets.
11691
b68767c1
MC
116922003-02-04 Michael Chastain <mec@shout.net>
11693
11694 * NEWS: Fix typo: sepcifying -> specifying.
11695
5ae7ca1d
MC
116962003-02-04 Michael Chastain <mec@shout.net>
11697
11698 * dwarfread.c: Add documentation on the state of dwarf-1,
11699 looking towards obsoletion.
11700
d08a4280
MC
117012003-02-03 Michael Chastain <mec@shout.net>
11702
11703 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11704 gdb/testsuite/gdb.c++/pr-1023.exp.
11705
e9be73e4
AC
117062003-02-04 Andrew Cagney <ac131313@redhat.com>
11707
11708 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11709 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11710
11711 * utils.c (init_page_info): Delete reference to MPW in comments.
11712 * main.c (captured_main): Delete #ifdef MPW.
11713
05d57f6f
AC
117142003-02-04 Andrew Cagney <ac131313@redhat.com>
11715
8ffd9b1b 11716 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11717 * monitor.c (monitor_expect): Obsolete reference to m32r.
11718 * configure.tgt: Mark m32r-*-elf* as obsolete.
11719 * MAINTAINERS: Mark m32k as obsolete.
11720 * m32r-rom.c: Obsolete file.
11721 * config/m32r/m32r.mt: Obsolete file.
11722 * config/m32r/tm-m32r.h: Obsolete file.
11723 * m32r-stub.c: Obsolete file.
11724 * m32r-tdep.c: Obsolete file.
11725
8b0e5691
AC
117262003-02-04 Andrew Cagney <ac131313@redhat.com>
11727
11728 * NEWS: Mention that the z8k-zilog-none is obsolete.
11729 * MAINTAINERS: Mark z8k as obsolete.
11730 * configure.tgt: Obsolete the z8k-*-coff* target.
11731 * config/z8k/z8k.mt: Obsolete file.
11732 * config/z8k/tm-z8k.h: Obsolete file.
11733 * z8k-tdep.c: Obsolete file.
11734
67f16606
AC
117352003-02-04 Andrew Cagney <ac131313@redhat.com>
11736
11737 * NEWS: Mention that the mn10200-elf is obsolete.
11738 * configure.tgt: Obsolete mn10200-*-* target.
11739 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11740 mention that the mn10200 is obsolete.
11741 * breakpoint.h: Ditto.
11742 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11743 * config/mn10200/mn10200.mt: Obsolete file.
11744 * config/mn10200/tm-mn10200.h: Obsolete file.
11745 * mn10200-tdep.c: Obsolete file.
11746
fd2299bd
AC
117472003-02-04 Andrew Cagney <ac131313@redhat.com>
11748
11749 * MAINTAINERS: Mark h8500 as obsolete.
11750 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11751 * findvar.c (value_from_register): Ditto.
11752 * h8500-tdep.c: Mark file as obsolete.
11753 * config/h8500/h8500.mt: Ditto.
11754 * config/h8500/tm-h8500.h: Ditto.
11755 * NEWS: Mention that h8500 is obsolete.
11756
eb9a305d
DC
117572003-02-04 David Carlton <carlton@math.stanford.edu>
11758
11759 * objfiles.c (allocate_objfile): Always set name. Add comment at
11760 start of function.
11761 * jv-lang.c (get_dynamics_objfile): Add comment.
11762
406fc7fb
DC
117632003-02-04 David Carlton <carlton@math.stanford.edu>
11764
11765 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11766 * printcmd.c (build_address_symbolic): Replace uses of
11767 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11768 SYMBOL_NAME, and asm_demangle.
11769 Update copyright.
11770
93d91629
DC
117712003-02-04 David Carlton <carlton@math.stanford.edu>
11772
11773 * linespec.c (decode_compound): Extract code into
11774 lookup_prefix_sym.
11775 (lookup_prefix_sym): New function.
11776
1c5cb38e
DC
117772003-02-04 David Carlton <carlton@math.stanford.edu>
11778
11779 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11780 FLOAT_COERCION_BADNESS.
11781 * gdbtypes.c (rank_one_type): Replace all uses of
11782 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11783
0cf824c9
JB
117842003-02-04 Jim Blandy <jimb@redhat.com>
11785
11786 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11787 section, let dwarf_macinfo_section point to it, not
11788 dwarf_loc_section.
11789
a2d356b0
DJ
117902003-02-04 Daniel Jacobowitz <drow@mvista.com>
11791
11792 Pointed out by Anton Blanchard <anton@samba.org>.
11793 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11794 (ppc_linux_at_sigtramp_return_path): Use it.
11795
2de7ced7
DJ
117962003-02-04 Daniel Jacobowitz <drow@mvista.com>
11797
11798 * defs.h (streq): Add prototype.
11799 * utils.c (streq): New function.
11800
11801 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11802 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11803 * mdebugread.c (new_symbol): Likewise.
11804 * stabsread.c (define_symbol): Likewise.
11805 * coffread.c (process_coff_symbol): Likewise.
11806 * dwarfread.c (new_symbol): Likewise.
11807
11808 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11809 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11810 here.
11811 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11812 SYMBOL_INIT_DEMANGLED_NAME.
11813 * objfiles.c: Include "hashtab.h".
11814 (allocate_objfile): Call htab_set_functions_ex for the
11815 demangled_names_hash.
11816 (free_objfile): Call htab_delete for the demangled_names_hash.
11817 * objfiles.h (struct htab): Add declaration.
11818 (struct objfile): Add demangled_names_hash.
11819 * symfile.c: Include "hashtab.h".
11820 (reread_symbols): Call htab_delete for the demangled_names_hash.
11821 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11822 SYMBOL_NAME in the bcache.
11823 * symtab.c: Include "hashtab.h". Update comments.
11824 (create_demangled_names_hash, symbol_set_names): New functions.
11825 (symbol_find_demangled_name): New function, broken out from
11826 symbol_init_demangled_names.
11827 (symbol_init_demangled_names): Use it.
11828 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11829 (SYMBOL_SET_NAMES): New macro.
11830 (symbol_set_names): Add prototype.
11831
15831452
JB
118322003-02-03 Jim Blandy <jimb@redhat.com>
11833
11834 Use a single, consistent representation for an empty minimal
11835 symbol table in an objfile.
11836 * objfiles.c (terminate_minimal_symbol_table): New function.
11837 (allocate_objfile): Call it.
11838 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11839 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11840 non-NULL.
15831452
JB
11841 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11842 objfile has minimal symbols, compare minimal_symbol_count to zero,
11843 instead of comparing msymbols with NULL.
11844 * objfiles.c (have_minimal_symbols): Same.
11845 * solib-sunos.c (solib_add_common_symbols): Call
11846 terminate_minimal_symbol_table.
11847 * symfile.c (reread_symbols): Same.
8ffd9b1b 11848
ffc65945
KB
118492003-02-03 Kevin Buettner <kevinb@redhat.com>
11850
11851 * s390-tdep.c (s390_address_class_type_flags)
11852 (s390_address_class_type_flags_to_name)
11853 (s390_address_class_name_to_type_flags): New functions.
11854 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11855 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11856
f211c6d4
MS
118572003-02-03 Michael Snyder <msnyder@redhat.com>
11858
11859 * arm-tdep.c: Fix spell-o in comment.
11860
659b0389
ML
118612003-02-03 Michal Ludvig <mludvig@suse.cz>
11862
11863 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11864 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11865 error messages to contain BFD filename.
659b0389 11866
3b31d625
EZ
118672003-02-02 Elena Zannoni <ezannoni@redhat.com>
11868
997b089a 11869 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11870 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11871 (do_mixed_source_and_assembly): Use
11872 make_cleanup_ui_out_tuple_begin_end and
11873 make_cleanup_ui_out_tuple_begin_end.
11874 (do_mixed_source_and_assembly): Ditto.
11875 * thread.c (do_captured_list_thread_ids): Ditto.
11876 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11877 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11878 ui_out_tuple_end): Delete prototypes.
11879 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11880 ui_out_list_end, ui_out_tuple_end): Delete.
11881
11882 From Kevin Buettner <kevinb@redhat.com>:
11883 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11884 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11885 (do_cleanup_table_end): New functions.
11886 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11887 Use cleanups to invoke_ui_out_tuple_end().
11888 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11889 * cli/cli-setshow.c (cmd_show_list): Use
11890 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11891
5b181d62
AC
118922003-02-02 Andrew Cagney <ac131313@redhat.com>
11893
11894 * frame.c (frame_unwind_register): New function.
11895 (frame_unwind_unsigned_register): Use.
11896 (frame_unwind_signed_register): Use.
11897 (frame_read_register): New function.
11898 * frame.h (frame_unwind_register): Declare.
11899 (frame_read_register): Declare.
11900
11901 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11902 and frame_unwind_register instead of read_memory, write_register
11903 and deprecated_write_register_bytes.
11904
5f601589
AC
119052003-02-02 Andrew Cagney <ac131313@redhat.com>
11906
11907 * frame.h: Note that namelen can be negative.
11908 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11909 NAME's length.
11910
11911 * NEWS: Mention that the d10v's `regs' command is deprecated.
11912 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11913 (d10v_print_registers_info): New function.
11914 (show_regs): Call d10v_print_registers_info.
11915 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11916
6a3fe0a4
MK
119172003-02-02 Mark Kettenis <kettenis@gnu.org>
11918
11919 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11920 lost in the previous patch.
11921
075559bc
AC
119222003-02-01 Andrew Cagney <ac131313@redhat.com>
11923
11924 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11925 * stack.c (print_frame_info_base): Output complete FRAME tuple
11926 for synthesized frames.
075559bc 11927
6789195b
AC
119282003-02-02 Andrew Cagney <ac131313@redhat.com>
11929
11930 * mips-nat.c (zerobuf): Delete.
11931 (fetch_inferior_registers): Alloc local zerobuf.
11932 (fetch_core_registers): Alloc local zerobuf.
11933 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11934 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11935 * thread-db.c (thread_db_store_registers): Ditto.
11936 * sh-tdep.c (sh_do_register): Ditto.
11937 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11938 * remote-sim.c (gdbsim_store_register): Ditto.
11939 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11940 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11941 * monitor.c (monitor_supply_register): Ditto.
11942 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11943 * mips-nat.c (fetch_inferior_registers): Ditto.
11944 * m68klinux-nat.c (fetch_register): Ditto.
11945 * lynx-nat.c (fetch_inferior_registers): Ditto.
11946 (fetch_inferior_registers): Ditto.
11947 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11948 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11949 (hpux_thread_store_registers): Ditto.
11950 * hppah-nat.c (fetch_register): Ditto.
11951 * hppab-nat.c (fetch_register): Ditto.
11952 * hppa-tdep.c (pa_register_look_aside): Ditto.
11953 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11954 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11955
e669114a
AC
119562003-02-01 Andrew Cagney <ac131313@redhat.com>
11957
11958 * gdbarch.sh: Explictly specify all method levels. When a
11959 variable with an empty level, provide a non-multi-arch default.
11960 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11961 * gdbarch.h: Re-generate.
11962 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11963 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11964
9a043c1d
AC
119652003-02-01 Andrew Cagney <ac131313@redhat.com>
11966
11967 * defs.h (host_pointer_to_address): Delete declaration.
11968 (address_to_host_pointer): Delete declaration.
11969 * utils.c (host_pointer_to_address): Delete function.
11970 (address_to_host_pointer): Delete function.
11971 * procfs.c (procfs_address_to_host_pointer): New function.
11972 * procfs.c (proc_set_watchpoint): Use.
11973 (procfs_can_use_hw_breakpoint): Update comments.
11974 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11975 (som_solib_add): Use.
11976 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11977 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11978
7ca9f392
AC
119792003-02-01 Andrew Cagney <ac131313@redhat.com>
11980
94bbfd30
AC
11981 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11982 strlen d_name.
11983
7ca9f392
AC
11984 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11985 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11986 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11987 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11988 (define_symbol): Update.
11989 * symfile.c (generic_load): Remove references to nindy.
11990 * symtab.c: Remove references to nindy.
11991
31a85ea2
AC
119922003-02-01 Andrew Cagney <ac131313@redhat.com>
11993
11994 * infcmd.c (print_float_info): Delete code conditional on
11995 FLOAT_INFO.
11996 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11997 * config/m68k/nm-apollo68b.h: Ditto.
11998 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11999 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12000 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12001
f6e85fc8
MK
120022003-02-01 Mark Kettenis <kettenis@gnu.org>
12003
6015b6a0
MK
12004 * config/i386/tm-i386os9k.h: Removed.
12005
f7a30bdf
MK
12006 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12007 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12008 they're identical to i[3456]86-*-sysv* now.
12009 * config/i386/i386v32.mh: Removed.
12010 * config/i386/xm-i386v32.h: Removed.
12011 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12012
28d52111
MK
12013 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12014
4d3f6bce
MK
12015 * config/i386/i386dgux.mh: Removed.
12016 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12017
f6e85fc8
MK
12018 * configure.in: Fix typo.
12019 * configure: Regenerated.
12020
53955967
DC
120212003-01-31 David Carlton <carlton@math.stanford.edu>
12022
12023 * dwarf2read.c (dwarf2_locate_sections): Set
12024 dwarf_ranges_section.
12025
b1364885
AC
120262003-01-31 Andrew Cagney <ac131313@redhat.com>
12027
8dbb1c65
AC
12028 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12029 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12030
8731e58e
AC
12031 * utils.c: Re-indent.
12032
b1364885
AC
12033 * config/djgpp/fnchange.lst: Delete nindy files.
12034 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12035 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12036 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12037 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12038 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12039 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12040 * Makefile.in (init.c): Remove nindy references.
12041 (saber_gdb): Delete rule.
12042 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12043 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12044 and a68v-nat.c.
12045 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12046 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12047 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12048 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12049 nindy-share/stop.h.
12050 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12051 * saber.suppress: Delete file.
12052
086df311
DJ
120532003-01-31 Daniel Jacobowitz <drow@mvista.com>
12054
12055 * dbxread.c (stabs_data): New static variable.
12056 (fill_symbuf): Support an in-memory buffer for stabs data.
12057 (stabs_seek): New function.
12058 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12059 (read_ofile_symtab): Use stabs_seek.
12060 (elfstab_build_psymtabs): Take an asection* instead of
12061 an offset and size. Relocate the stabs data if necessary.
12062 Save the section* for dbx_psymtab_to_symtab.
12063 * dwarf2read.c: Add section variables for each debug section.
12064 (dwarf2_locate_sections): Fill them in.
12065 (dwarf2_read_section): Take an asection* argument.
12066 Relocate the section contents if necessary.
12067 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12068 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12069 it to dwarf2_read_section.
12070 (dwarf2_build_frame_info): Update callers.
12071 * elfread.c (elf_symfile_read): Update call to
12072 elfstab_build_psymtabs.
12073 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12074 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12075 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12076 * symfile.c (symfile_dummy_outputs): New function.
12077 (symfile_relocate_debug_section): New function.
12078 * symfile.h (symfile_relocate_debug_section): Add prototype.
12079
87d1b352
RH
120802003-01-31 Richard Henderson <rth@redhat.com>
12081
12082 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12083 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12084 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12085 * alpha-tdep.c (alpha_register_name): Add "unique".
12086 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12087 (ALPHA_UNIQUE_REGNUM): New.
12088 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12089
c48861fb
AC
120902003-01-31 Andrew Cagney <ac131313@redhat.com>
12091
12092 * README: Remove reference to Ericsson 1800 monitor.
12093 * Makefile.in (remote-es.o): Delete rule.
12094 (ALLDEPFILES): Delete remote-es.c.
12095 * remote-es.c: Delete file.
12096 * config/m68k/es1800.mt: Delete file.
12097 * config/djgpp/fnchange.lst: Update.
12098 * configure.tgt: Delete m68*-ericsson-* target.
12099
d764a824
AF
121002003-01-31 Adam Fedor <fedor@gnu.org>
12101
12102 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12103 Remove duplicate/shadowing variable of same name.
12104
fe36c4f4
JB
121052003-01-30 Jim Blandy <jimb@redhat.com>
12106
12107 * symfile.c (find_separate_debug_file): Assert that the objfile's
12108 directory name we compute ends with a slash, and then assume that
12109 that's so everywhere we use it.
12110
cb741690
DJ
121112003-01-30 Daniel Jacobowitz <drow@mvista.com>
12112
12113 * valops.c (value_assign): Flush frame cache after stores to memory
12114 also.
12115
96ee5227
AC
121162003-01-30 Andrew Cagney <ac131313@redhat.com>
12117
12118 * Makefile.in (mon960-rom.o): Delete rule.
12119 * mon960-rom.c: Delete file.
12120
7f6104a9
AC
121212003-01-30 Andrew Cagney <ac131313@redhat.com>
12122
12123 * d10v-tdep.c: Include "frame-unwind.h".
12124 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12125 list.
12126 (next_addr, uses_frame): Delete.
12127 (struct d10v_unwind_cache): Define.
12128 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12129 Use info instead of next_addr and uses_frame globals.
12130 (d10v_frame_init_saved_regs): Delete function.
12131 (d10v_init_extra_frame_info): Delete function.
12132 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12133 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12134 init_frame_pc or frame_saved_pc.
12135 (d10v_pop_frame): Delete function.
12136 (do_d10v_pop_frame): Delete function.
12137 (d10v_frame_chain): Delete function.
12138 (d10v_frame_chain_valid): Delete function.
12139 (d10v_frame_pc_unwind): New function.
12140 (d10v_frame_id_unwind): New function.
12141 (saved_regs_unwinder): New function.
12142 (d10v_frame_register_unwind): New function.
12143 (d10v_frame_pop): New function.
12144 (d10v_frame_unwind): New variable.
12145 (d10v_frame_p): New function.
12146 (d10v_frame_saved_pc): Delete function.
12147 * Makefile.in (d10v-tdep.o): Update dependencies.
12148
cad2e848
JB
121492003-01-30 J. Brobecker <brobecker@gnat.com>
12150
12151 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12152 causing some regressions due to a change in the default value
12153 for this macro.
12154
af34e669
DJ
121552003-01-29 Richard Henderson <rth@redhat.com>
12156 Elena Zannoni <ezannoni@redhat.com>
12157 Daniel Jacobowitz <drow@mvista.com>
12158
12159 Fix PR gdb/961.
8ffd9b1b 12160 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12161 variables.
12162 (RANGES_SECTION): New.
12163 (dwarf_ranges_buffer): New variable.
12164 (struct comp_unit_head): Add member "die".
12165 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12166 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12167 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12168 (dwarf2_locate_sections): Likewise.
12169 (dwarf2_build_psymtabs): Read .debug_ranges.
12170 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12171 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12172 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12173 Look for DW_AT_ranges and return the bounding box.
12174
baa93fa6
CF
121752003-01-29 Brian Ford <ford@vss.fsi.com>
12176
12177 * win32-nat.c (cygwin_pid): Removed as unused.
12178 (child_attach): Try fall back to Cygwin pid.
12179
c63f977f
JB
121802003-01-29 Jim Blandy <jimb@redhat.com>
12181
12182 * objfiles.h (struct objfile): Doc fix.
12183
d62d1979
AC
121842003-01-29 Andrew Cagney <ac131313@redhat.com>
12185
12186 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12187 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12188 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12189 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12190 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12191 (FRAME_SAVED_PC): Change to a function with predicate.
12192 * gdbarch.h, gdbarch.c: Re-generate.
12193
1ae18a04
AC
121942003-01-28 Andrew Cagney <ac131313@redhat.com>
12195
52287340
AC
12196 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12197
1ae18a04
AC
12198 * complaints.c (complain): Delete function.
12199 * complaints.h (struct deprecated_complaint): Delete definition.
12200 (complain): Delete declaration.
12201
f2c16bd6
KB
122022003-01-28 Kevin Buettner <kevinb@redhat.com>
12203
12204 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12205 dummy frames.
12206
a94dd1fd
AC
122072003-01-27 Andrew Cagney <ac131313@redhat.com>
12208
12209 * sentinel-frame.h, sentinel-frame.c: New files.
12210 * Makefile.in (frame.o): Update dependencies.
12211 (SFILES): Add sentinel-frame.c.
12212 (sentinel_frame_h): Define.
12213 (COMMON_OBS): Add sentinel-frame.o.
12214 (sentinel-frame.o): Specify dependencies.
12215 * frame.c: Include "sentinel-frame.h".
12216 (frame_register_unwind): Rewrite assuming that there is always a a
12217 ->next frame.
12218 (frame_register, generic_unwind_get_saved_register): Ditto.
12219 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12220 (create_sentinel_frame, unwind_to_current_frame): New functions.
12221 (get_current_frame): Rewrite using create_sentinel_frame and
12222 unwind_to_current_frame. When possible, always create a frame.
12223 (create_new_frame): Set next to the sentinel frame.
12224 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12225 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12226 ID cache when necessary.
12227 (frame_saved_regs_id_unwind): Use frame_relative_level.
12228 (deprecated_generic_get_saved_register): Use frame_relative_level,
12229 get_frame_saved_regs, get_frame_pc, get_frame_base and
12230 get_next_frame.
12231 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12232 frame_register.
12233
5378adc4
DJ
122342003-01-27 Daniel Jacobowitz <drow@mvista.com>
12235
12236 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12237
51ee2ddc
DJ
122382003-01-27 Daniel Jacobowitz <drow@mvista.com>
12239
12240 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12241 (maintenance_set_profile_cmd): Use error () instead of warning ().
12242
d9feb4e7
DJ
122432003-01-27 Daniel Jacobowitz <drow@mvista.com>
12244
12245 * configure.in: Check that -pg works if using --enable-profiling.
12246 Check for monstartup and _mcleanup regardless of --enable-profiling.
12247 * maint.c: Check for monstartup and _mcleanup before using them.
12248 * config.in: Regenerated.
12249 * configure: Regenerated.
12250
2d188dd3
NC
122512003-01-24 Nick Clifton <nickc@redhat.com>
12252
12253 * Add sh2e support:
12254
12255 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12256
12257 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12258 (sh2e_show_regs): New.
12259 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12260 * config/sh/tm-sh.h: Added sh2e to comments.
12261
cb3c37b2
JB
122622003-01-23 Jim Blandy <jimb@redhat.com>
12263
12264 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12265 symbols found)" message here; we haven't checked for a separate
12266 debug info file yet, so we don't know yet.
12267 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12268 we've looked everywhere. Also, there's no need to print a special
12269 message when we're loading the separate debug info file: the one
12270 symbol_file_add prints is fine.
12271
5b5d99cf
JB
122722003-01-23 Alexander Larsson <alexl@redhat.com>
12273 Jim Blandy <jimb@redhat.com>
12274
12275 Add support for executables whose debug info has been separated
12276 out into a separate file, leaving only a link behind.
12277 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12278 and separate_debug_objfile_backlink.
12279 (put_objfile_before): New declaration.
12280 * symfile.c: #include "filenames.h".
12281 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12282 debug info in a separate file, read that, too. Save the addrs
12283 argument, so we can use it again to read the separated debug info;
12284 syms_from_objfile modifies the table we pass it.
12285 (reread_symbols): After re-reading an objfile, call
12286 reread_separate_symbols to refresh its separate debug info
12287 objfile, if it has one.
12288 (reread_separate_symbols, find_separate_debug_file,
12289 get_debug_link_info, separate_debug_file_exists): New functions.
12290 (debug_file_directory): New global var.
12291 (_initialize_symfile): Initialize debug_file_directory, and
12292 provide the new `set debug-file-directory' command to let the user
12293 change it.
12294 * objfiles.c (free_objfile): If this objfile has its debug info in
12295 a separate objfile, free that one too. If this is itself a
12296 separate debug info objfile, clear our parent's backlink.
12297 (put_objfile_before): New function.
12298 * utils.c (gnu_debuglink_crc32): New function.
12299 * defs.h (gnu_debuglink_crc32): New declaration.
12300 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12301 * configure.in: Handle --with-separate-debug-dir config option.
12302 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12303 * acconfig.h (DEBUGDIR): New macro.
12304 * configure, aclocal.m4, config.in: Regenerated.
12305
7e8580c1
JB
123062003-01-22 Jim Blandy <jimb@redhat.com>
12307
7904e09f
JB
12308 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12309 like the old symbol_file_add, but taking new arguments: you can
12310 now pass in either a `struct section_addr_info' list to say where
12311 each section is loaded, or a `struct section_offsets' table. Pass
12312 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12313 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12314 with the appropriate quiescent values for the new arguments.
12315
7e8580c1
JB
12316 * symfile.c: #include "gdb_assert.h".
12317 (syms_from_objfile): Add the ability to pass in a section offset
12318 table directly, as an alternative to the section_addr_info table.
12319 Document arguments better.
12320 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12321 * symfile.h (syms_from_objfile): Update declaration.
12322 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12323 syms_from_objfile.
12324 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12325
d28f9cdf
DJ
123262003-01-22 Daniel Jacobowitz <drow@mvista.com>
12327
12328 Original patch by Tom Tromey <tromey@cygnus.com> and
12329 Jason Molenda <jmolenda@apple.com>.
12330 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12331 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12332 * NEWS: Mention profiling.
12333 * configure.in (--enable-gdbtk): Fix typo.
12334 (--enable-profiling): New. Set PROFILE_CFLAGS.
12335 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12336 Fill in function.
12337 (profiling_state): New variable.
12338 (mcleanup_wrapper): New function.
12339 (_initialize_maint): Remove NOTYET, fix call to
12340 add_setshow_boolean_cmd for "maint set profile".
12341 * configure: Regenerated.
12342
df21e465
MH
123432003-01-21 Martin M. Hunt <hunt@redhat.com>
12344
12345 * Makefile.in (install-gdbtk): Install PNG images too.
12346
73c1f219
AC
123472003-01-21 Andrew Cagney <ac131313@redhat.com>
12348
12349 * exec.c (text_start): Delete global variable.
12350 (exec_file_attach): Make text_start local to the function.
12351 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12352 * valops.c (hand_function_call): Delete code that handles
12353 BEFORE_TEXT_END and AFTER_TEXT_END.
12354 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12355 of CALL_DUMMY_LOCATION.
12356 * gdbarch.c: Regenerate.
12357 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12358 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12359 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12360 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12361 (text_end): Delete extern declaration.
12362
eb4f72c5
AC
123632003-01-21 Andrew Cagney <ac131313@redhat.com>
12364
12365 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12366 * blockframe.c (backtrace_below_main): Move to "frame.c".
12367 (frame_chain_valid): Delete check for backtrace_below_main.
12368 (_initialize_blockframe): Delete initialization, move ``set
12369 backtrace-below-main'' command to "frame.c".
12370 (do_flush_frames_sfunc): Delete function.
12371 * frame.c: Include "command.h" and "gdbcmd.h".
12372 (frame_type_from_pc): New function.
12373 (create_new_frame): Use frame_type_from_pc.
12374 (legacy_get_prev_frame): New function.
12375 (get_prev_frame): Rewrite. When an old style frame, call
12376 legacy_get_prev_frame. Otherwize, unwind the PC first.
12377 (_initialize_frame): Add ``set backtrace-below-main'' command.
12378 * Makefile.in (frame.o): Update dependencies.
12379
778ce8cc
AC
123802003-01-19 Andrew Cagney <ac131313@redhat.com>
12381
12382 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12383 DEPRECATED_REGISTERS_INFO.
12384
01c193c8
AC
123852003-01-19 Andrew Cagney <ac131313@redhat.com>
12386
12387 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12388 Maintainers'. Update `Various Maintainers'.
12389
dedc2a2b
AC
123902003-01-19 Andrew Cagney <ac131313@redhat.com>
12391
12392 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12393 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12394 Suppress actual parameters when `-'.
12395 * gdbarch.h, gdbarch.c: Regenerate.
12396
b7261c70
AC
123972003-01-19 Andrew Cagney <ac131313@redhat.com>
12398
12399 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12400 code handling dummy frames.
12401
dbe9fe58
AC
124022003-01-19 Andrew Cagney <ac131313@redhat.com>
12403
12404 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12405 (struct frame_unwind): Add field pop.
12406 * frame.h (frame_pop): Declare.
12407 * frame.c (frame_saved_regs_pop): New function.
12408 (trad_frame_unwinder): Add frame_saved_regs_pop.
12409 (frame_pop): New function.
12410 * dummy-frame.c (dummy_frame_pop): New function.
12411 (discard_innermost_dummy): New function.
12412 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12413 (dummy_frame_unwind): Add dummy_frame_pop.
12414 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12415 * valops.c (hand_function_call): Ditto.
12416 * stack.c (return_command): Ditto.
12417
570b8f7c
AC
124182003-01-18 Andrew Cagney <ac131313@redhat.com>
12419
12420 * cris-tdep.c: Fix function declaration indentation.
12421 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12422 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12423 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12424 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12425 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12426 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12427
124282003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12429
12430 * README (Unpacking and Installation -- quick overview):
12431 Warn against ".../gdb-5.3/gdb/configure".
12432
494cca16
AC
124332003-01-18 Andrew Cagney <ac131313@redhat.com>
12434
12435 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12436 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12437 (struct frame_unwind): Declare opaque.
12438 (dummy_frame_p): Declare function.
12439 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12440 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12441 * dummy-frame.c: Include "frame-unwind.h".
12442 (dummy_frame_p): New function.
12443 (dummy_frame_unwind): New variable.
12444 * frame.c: Include "frame-unwind.h".
12445 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12446 to use the new unwind field.
12447 (set_unwind_by_pc): Delete function.
12448 (create_new_frame, get_prev_frame): Set unwind field using
12449 frame_unwind_find_by_pc.
12450 (trad_frame_unwind, trad_frame_unwinder): New variables.
12451 * frame.h (trad_frame_unwind): Declare variable.
12452 (frame_id_unwind_ftype): Delete declaration.
12453 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12454 (struct frame_unwind): Declare opaque.
12455 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12456 register_unwind with a single unwind pointer.
12457 * frame-unwind.h, frame-unwind.c: New files.
12458 * Makefile.in (SFILES): Add frame-unwind.c.
12459 (frame_unwind_h): Define.
12460 (COMMON_OBS): Add frame-unwind.o.
12461 (frame-unwind.o): Specify dependencies.
12462 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12463
4efb68b1
AC
124642003-01-18 Andrew Cagney <ac131313@redhat.com>
12465
12466 * ada-valprint.c: Eliminate PTR.
12467 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12468 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12469 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12470 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12471 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12472 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12473 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12474
a84d24ee
AC
124752003-01-17 Andrew Cagney <ac131313@redhat.com>
12476
762f08a3
AC
12477 * main.c (captured_main): Don't use PTR.
12478 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12479 * gdbtypes.c (lookup_primitive_typename): Ditto.
12480 (lookup_struct_elt_type): Ditto.
12481 * f-valprint.c (info_common_command): Ditto.
12482 (list_all_visible_commons): Ditto.
12483 * jv-typeprint.c (java_type_print_base): Ditto.
12484
a84d24ee
AC
12485 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12486 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12487 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12488 i386-interix-nat.c and i386-interix-tdep.c. Rename
12489 m68klinux-nat.c and m68klinux-tdep.c. Rename
12490 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12491 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12492 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12493 * main.c (captured_main): Use xfree, not free.
12494
c170fb60
AC
124952003-01-16 Andrew Cagney <ac131313@redhat.com>
12496
12497 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12498 ID back using a parameter.
12499 * frame.c (frame_id_unwind): Update call.
12500 (frame_saved_regs_id_unwind): Update.
12501 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12502 * dummy-frame.h (struct frame_id): Add opaque declaration.
12503 (dummy_frame_id_unwind): Update declaration.
12504
867f3898
AC
125052003-01-15 Andrew Cagney <ac131313@redhat.com>
12506
12507 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12508
40622be8 125092003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12510
40622be8 12511 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12512
ae66c1fc
EZ
125132003-01-14 Elena Zannoni <ezannoni@redhat.com>
12514
997b089a 12515 Fix PR gdb/898
ae66c1fc
EZ
12516 * breakpoint.c (until_break_command): Add new argument. Use it to
12517 decide whether to stop only at the current frame or not.
12518 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12519 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12520 call.
12521 (advance_command): New function.
12522 (_initialize_infcmd): Update help string for 'until' command.
12523 Add new 'advance' command.
12524
a04257e6
DC
125252003-01-14 David Carlton <carlton@math.stanford.edu>
12526
12527 * linespec.c (decode_line_1): Normalize comments.
12528 (set_flags): Ditto.
12529 (locate_first_half): Ditto.
12530 (decode_compound): Ditto.
12531 (symtab_from_filename): Ditto.
12532 (decode_all_digits): Ditto.
12533 (decode_dollar): Ditto.
12534 (find_methods): Ditto.
12535 (find_toplevel_char): Ditto.
12536
1bac305b
AC
125372003-01-13 Andrew Cagney <ac131313@redhat.com>
12538
12539 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12540 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12541 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12542 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12543 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12544 * language.c, language.h, m32r-tdep.c: Update copyright.
12545 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12546 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12547 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12548 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12549 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12550 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12551
25caa7a8
EZ
125522003-01-13 Elena Zannoni <ezannoni@redhat.com>
12553
12554 * stabsread.h (process_later, resolve_cfront_continuation):
12555 Obsolete.
12556 Update copyright years.
12557 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12558 Update copyright year.
12559 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12560 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12561 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12562 Update copyright year.
12563 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12564 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12565 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12566 (parse_partial_symbols): Obsolete cfront support.
12567 * stabsread.c
12568 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12569 macros.
12570 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12571 read_cfront_baseclasses, read_cfront_member_functions,
12572 resolve_cfront_continuation,read_cfront_static_fields,
12573 copy_cfront_struct_fields): Obsolete functions.
12574 (define_symbol, read_one_struct_field): Obsolete cfront support.
12575 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12576 Update Copyright year.
12577
7789c6f5
EZ
125782003-01-13 Elena Zannoni <ezannoni@redhat.com>
12579
12580 * stack.c (print_frame_info, print_stack_frame_base_stub,
12581 print_stack_frame_base, show_and_print_stack_frame_stub,
12582 show_and_print_stack_frame, print_only_stack_frame_stub,
12583 print_only_stack_frame): Delete functions.
12584 (print_stack_frame_stub): Call print_frame_info instead of
12585 print_frame_info_base.
12586 (print_frame_info_base): Rename to print_frame_info.
12587 (backtrace_command_1): Call print_frame_info, instead of
12588 print_frame_info_base.
12589 (current_frame_command): Call print_stack_frame, instead of
12590 print_only_stack_frame.
12591 (frame_command): Call print_stack_frame, instead of
12592 show_and_print_stack_frame.
12593 (up_command): Ditto.
12594 (down_command): Ditto.
12595 * frame.h (print_only_stack_frame): Delete prototype.
12596 * infrun.c (normal_stop): Call print_stack_frame, instead of
12597 show_and_print_stack_frame.
12598 * thread.c (info_threads_command): Call print_stack_frame, instead
12599 of print_only_stack_frame.
12600
3f5a3016
AC
126012003-01-13 Andrew Cagney <ac131313@redhat.com>
12602
d99ba314
AC
12603 * README (Graphical interface to GDB): Update URL. Point at
12604 gdb/links/.
12605
3f5a3016
AC
12606 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12607 version match.
12608
083ae935
DJ
126092003-01-13 Daniel Jacobowitz <drow@mvista.com>
12610
12611 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12612 lines.
12613
5365276c
DJ
126142003-01-13 Daniel Jacobowitz <drow@mvista.com>
12615
12616 * thread-db.c (attach_thread): Prototype.
12617 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12618 thread information (ti), and valid flags (th_valid, ti_valid).
12619 (attach_thread): Move target_pid_to_str call to after the thread
12620 is added to GDB's list. Initialize the cache.
12621 (thread_get_info_callback, thread_db_map_id2thr)
12622 (thread_db_get_info): New functions.
12623 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12624 (thread_db_store_registers, thread_db_thread_alive)
12625 (thread_db_get_thread_local_address): Use them.
12626 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12627 of calling error() for threads in unknown state.
12628
12629 (clear_lwpid_callback): New function.
12630 (thread_db_resume): Use it to clear the cache.
12631
9fc30b6b
DJ
126322003-01-13 Daniel Jacobowitz <drow@mvista.com>
12633
12634 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12635 (resume_callback): Remove dead code.
12636
8f871025
AC
126372003-01-13 Andrew Cagney <ac131313@redhat.com>
12638
12639 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12640 predicate.
12641 * gdbarch.h, gdbarch.c: Regenerate.
12642 * stack.c (frame_info): Only initialize the saved registers when
12643 FRAME_INIT_SAVED_REGS_P.
12644 * frame.c (frame_saved_regs_register_unwind): Assert
12645 FRAME_INIT_SAVED_REGS_P.
12646 (deprecated_generic_get_saved_register): Ditto.
12647
3f565f1e
DJ
126482003-01-13 Daniel Jacobowitz <drow@mvista.com>
12649
12650 * source.c (openp): Squelch warning about "filename".
12651
072b1022
DJ
126522003-01-13 Daniel Jacobowitz <drow@mvista.com>
12653
12654 * source.c (openp): If the file does not exist don't necessarily
12655 search the path.
12656
973ccf8b
DJ
126572003-01-13 Daniel Jacobowitz <drow@mvista.com>
12658
12659 Fix PR gdb/872.
12660 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12661 (integer_types_same_name_p): New function.
12662 (rank_one_type): Use it.
12663 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12664
030292b7
DJ
126652003-01-13 Daniel Jacobowitz <drow@mvista.com>
12666
12667 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12668 variables.
12669 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12670 * configure.in: Add --with-sysroot.
12671 * configure: Regenerated.
12672 * main.c (gdb_sysroot): New variable.
12673 (captured_main): Initialize gdb_sysroot.
12674 * defs.h (gdb_sysroot): New extern declaration.
12675 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12676
afb5d334
MC
126772003-01-12 Michael Chastain <mec@shout.net>
12678
12679 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12680
751ceeb4
MC
126812003-01-12 Michael Chastain <mec@shout.net>
12682
12683 * top.c (print_gdb_version): Bump copyright year to 2003.
12684
94cd26f8
DC
126852003-01-12 David Carlton <carlton@bactrian.org>
12686
12687 * linespec.c (symtab_from_filename): Rename variable 's' to
12688 'file_symtab'.
12689
1ce79225
AC
126902003-01-12 Andrew Cagney <ac131313@redhat.com>
12691
12692 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12693 dummy frame.
12694 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12695
fa1fd571
AC
126962003-01-12 Andrew Cagney <ac131313@redhat.com>
12697
12698 * d10v-tdep.c: Include "gdb_assert.h".
12699 (d10v_store_return_value): Rewrite to match current interface.
12700 (d10v_extract_struct_value_address): Ditto.
12701 (d10v_extract_return_value): Ditto.
12702 (d10v_gdbarch_init): Set store_restore_value,
12703 extract_struct_value_address and extract_return_value.
12704
68b8d23e
JB
127052003-01-12 J. Brobecker <brobecker@gnat.com>
12706
12707 * hpread.c (set_namestring): New procedure replacing the
12708 SET_NAMESTRING macro.
12709 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12710 by calls to set_namestring.
12711
127122003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12713
12714 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12715 a compilation warning.
12716 (hpread_process_one_debug_symbol): Likewise.
12717
88d262ca
DC
127182003-01-10 David Carlton <carlton@math.stanford.edu>
12719
12720 * linespec.c (decode_line_1): Rename variable 's' to
12721 'file_symtab'.
12722 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12723 (decode_dollar): Ditto.
12724 (decode_variable): Ditto.
12725 (symbol_found): Ditto.
12726
86669319
MC
127272003-01-09 Michael Chastain <mec@shout.net>
12728
12729 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12730
616a9dc4
CV
127312003-01-07 Corinna Vinschen <vinschen@redhat.com>
12732
12733 * win32-nat.c (set_process_privilege): New function.
12734 (child_attach): Call set_process_privilege() to enable the
12735 SE_DEBUG_NAME user privilege if available in process token.
12736
3269bcfa
JB
127372003-01-10 J. Brobecker <brobecker@gnat.com>
12738
12739 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12740 compilation error in the previous revision.
12741
2b0ee454
DC
127422003-01-09 David Carlton <carlton@math.stanford.edu>
12743
12744 * linespec.c: Update copyright.
12745
b3ba1b44
DJ
127462003-01-09 Daniel Jacobowitz <drow@mvista.com>
12747
12748 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12749 than inferior_ptid.
12750 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12751
4ef3f3be
AC
127522003-01-09 Andrew Cagney <ac131313@redhat.com>
12753
479ab5a0
AC
12754 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12755 Update comments.
12756 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12757 (frame_saved_regs_zalloc): Update.
12758 (frame_saved_regs_register_unwind): Update.
12759 (create_new_frame): Update.
12760 (get_prev_frame): Update.
12761 (frame_extra_info_zalloc): Update.
12762 (deprecated_get_frame_saved_regs): Update.
12763 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12764 * cris-tdep.c: Update comment.
12765
bde58177
AC
12766 * somsolib.h: Fix function indentation.
12767 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12768 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12769 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12770 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12771 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12772
4ef3f3be
AC
12773 * infrun.c (follow_fork): Use ISO C definition.
12774 * expprint.c (print_subexp): Use xfree instead of free.
12775 * charset.c: Include "gdb_string.h" instead of <string.h>.
12776 (register_iconv_charsets): Use ISO C definition.
12777 (host_charset, target_charset): Ditto.
12778 * Makefile.in (charset.o): Update dependencies.
12779 (mi-cmd-env.o): Update dependencies.
12780
1c615f7a
AC
127812003-01-08 Andrew Cagney <cagney@redhat.com>
12782
12783 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12784 get_frame_base.
12785
c9a1dc08
AC
127862003-01-08 Andrew Cagney <ac131313@redhat.com>
12787
12788 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12789 build directories. Save edited gdb output in Mbuild.log. If a
12790 build fails, remove any final GDB executable.
12791
dbad9d94
AC
127922003-01-08 Andrew Cagney <ac131313@redhat.com>
12793
12794 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12795 replacing hex constants with function names and stripping leading
12796 file name directory prefixes.
12797
8d357cca
AC
127982003-01-08 Andrew Cagney <cagney@redhat.com>
12799
12800 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12801 get_frame_base.
12802
bca02a8a
DC
128032003-01-08 David Carlton <carlton@math.stanford.edu>
12804
12805 * linespec.c (decode_line_1): Move code into decode_variable.
12806 (decode_variable): New function.
12807
7f8ab3a0
AC
128082003-01-08 Andrew Cagney <ac131313@redhat.com>
12809
12810 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12811
7b5849cc
AC
128122003-01-08 Andrew Cagney <cagney@redhat.com>
12813
12814 * cris-tdep.c (cris_frame_init_saved_regs): Use
12815 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12816 saved_regs buffer.
12817 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12818 (sh64_nofp_frame_init_saved_regs): Ditto.
12819 (sh_fp_frame_init_saved_regs): Ditto.
12820 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12821 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12822 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12823 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12824
72a5efb3
DJ
128252003-01-08 Daniel Jacobowitz <drow@mvista.com>
12826
12827 * minsyms.c (lookup_minimal_symbol): Update comment.
12828 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12829 (lookup_minimal_symbol_solib_trampoline): Likewise.
12830
11c02a10
AC
128312003-01-08 Andrew Cagney <cagney@redhat.com>
12832
aab3ea25
AC
12833 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12834 frame_relative_level.
12835
da50a4b7
AC
12836 * alpha-tdep.c: Use get_frame_extra_info.
12837 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12838 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12839 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12840 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12841
11c02a10
AC
12842 * alpha-tdep.c: Use get_next_frame.
12843 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12844 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12845 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12846 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12847 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12848 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12849 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12850
1e2330ba
AC
128512003-01-07 Andrew Cagney <cagney@redhat.com>
12852
12853 * alpha-tdep.c: Use get_frame_base.
12854 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12855 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12856 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12857 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12858 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12859 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12860 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12861 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12862
2d75187b
AC
128632003-01-07 Andrew Cagney <cagney@redhat.com>
12864
12865 * frame.c (deprecated_get_frame_context): New function.
12866 (deprecated_set_frame_context): New function.
12867 * frame.h (deprecated_get_frame_context): Declare.
12868 (deprecated_set_frame_context): Declare.
12869 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12870 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12871
483d36b2
AC
128722003-01-07 Andrew Cagney <cagney@redhat.com>
12873
12874 * frame.c (deprecated_set_frame_next_hack): New function.
12875 (deprecated_set_frame_prev_hack): New function.
12876 * frame.h (deprecated_set_frame_next_hack): Declare.
12877 (deprecated_set_frame_prev_hack): Declare.
12878 * mcore-tdep.c (analyze_dummy_frame): Use
12879 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12880 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12881
14e91ac5
DC
128822003-01-07 David Carlton <carlton@math.stanford.edu>
12883
12884 * linespec.c (decode_line_1): Move code into decode_dollar.
12885 (decode_dollar): New function.
12886
b0c6b05c
AC
128872003-01-07 Andrew Cagney <cagney@redhat.com>
12888
12889 * arm-tdep.c (arm_init_extra_frame_info): Use
12890 deprecated_update_frame_base_hack.
12891 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12892 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12893 (fix_frame_pointer): Ditto.
12894 (mn10300_analyze_prologue): Ditto.
12895
a00a19e9
AC
128962003-01-07 Andrew Cagney <cagney@redhat.com>
12897
12898 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12899 extra_info using frame_extra_info_zalloc.
12900 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12901 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12902 (sh64_init_extra_frame_info): Ditto.
12903 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12904 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12905 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12906 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12907 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12908 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12909 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12910 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12911 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12912 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12913 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12914 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12915
12916 * mn10300-tdep.c (analyze_dummy_frame): Use
12917 deprecated_set_frame_extra_info_hack.
12918 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12919
1fb4c65b
JB
129202003-01-07 J. Brobecker <brobecker@gnat.com>
12921
12922 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12923 class is not scText. These do not define "real" procedures.
12924 (parse_partial_symbols): Likewise.
12925
9fe7d6bf
MS
129262003-01-06 Michael Snyder <msnyder@redhat.com>
12927
12928 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12929
f6c609c4
AC
129302003-01-06 Andrew Cagney <ac131313@redhat.com>
12931
12932 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12933 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12934 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12935 deprecated_frame_xmalloc_with_cleanup.
12936 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12937 deprecated_frame_xmalloc.
12938 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12939 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12940
d995ff4b
AC
129412003-01-06 Andrew Cagney <cagney@redhat.com>
12942
84dc46cb
AC
12943 * x86-64-linux-tdep.c: Include "osabi.h".
12944 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12945
d995ff4b
AC
12946 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12947
66140c26
AC
129482003-01-06 Andrew Cagney <cagney@redhat.com>
12949
12950 * MAINTAINERS (Target Instruction Set Architectures): Update
12951 arm-elf. Can be built with -Werror, has been multiarched.
12952
12953 * value.h (unpack_long): Make buffer parameter constant.
12954 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12955 * scm-lang.h (scm_parse): Ditto.
12956 * defs.h (extract_typed_address, extract_address): Ditto.
12957 (extract_long_unsigned_integer): Ditto.
12958 * inferior.h (unsigned_pointer_to_address): Ditto.
12959 (signed_pointer_to_address): Ditto.
12960 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12961 * gdbarch.h, gdbarch.c: Regenerate.
12962 * findvar.c (extract_long_unsigned_integer): Update.
12963 (extract_address): Update.
12964 (extract_typed_address): Update.
12965 (unsigned_pointer_to_address): Update.
12966 * values.c (unpack_long): Update.
12967 (unpack_double): Update.
12968 (unpack_pointer): Update.
12969 (unpack_field_as_long): Update.
12970 * d10v-tdep.c (d10v_pointer_to_address): Update.
12971 * avr-tdep.c (avr_pointer_to_address): Update.
12972 * scm-lang.c (scm_unpack): Update.
12973 * findvar.c (signed_pointer_to_address): Update.
12974
b089b3da
ML
129752003-01-06 Michal Ludvig <mludvig@suse.cz>
12976
8ffd9b1b 12977 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12978 since it is in i386-tdep.c.
12979
aff87235
JB
129802003-01-06 J. Brobecker <brobecker@gnat.com>
12981
12982 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12983 failure introduced in the previous change.
12984
34f5e845
MC
129852003-01-05 Michael Chastain <mec@shout.net>
12986
12987 * README: Remove references to deleted remote-*.c files:
12988 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12989 remote-nrom.c, remote-os9k.c, remote-udi.c.
12990
28bcfd30
MK
129912003-01-05 Mark Kettenis <kettenis@gnu.org>
12992
12993 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12994 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12995 i386_get_longjmp_target.
12996
15a5b3ee
AC
129972003-01-05 Andrew Cagney <ac131313@redhat.com>
12998
12999 * arm-tdep.c (prologue_cache): Change to a pointer.
13000 (_initialize_arm_tdep): Allocate prologue_cache.
13001 (check_prologue_cache): Update.
13002 (save_prologue_cache): Update.
13003 (arm_gdbarch_init): Update.
13004
c263362b
DJ
130052003-01-04 Daniel Jacobowitz <drow@mvista.com>
13006
13007 * stabsread.c (update_method_name_from_physname): Call complaint()
13008 instead of error.
13009
51603483
DJ
130102003-01-04 Daniel Jacobowitz <drow@mvista.com>
13011
13012 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13013 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13014 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13015
13016 * blockframe.c: Include "gdbcmd.h" and "command.h".
13017 (backtrace_below_main): New variable.
13018 (file_frame_chain_valid, func_frame_chain_valid)
13019 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13020 (generic_func_frame_chain_valid): Remove functions.
13021 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13022 (_initialize_blockframe): New function.
13023 * Makefile.in (blockframe.o): Update dependencies.
13024 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13025 comment. Call frame_chain_valid ().
13026 * frame.h: Remove old prototypes. Add prototype for
13027 frame_chain_valid and update comments to match.
13028 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13029 Remove old comment.
13030 * gdbarch.h: Regenerated.
13031 * gdbarch.c: Regenerated.
13032
13033 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13034 set_gdbarch_frame_chain_valid.
13035 * avr-tdep.c (avr_gdbarch_init): Likewise.
13036 * cris-tdep.c (cris_gdbarch_init): Likewise.
13037 * frv-tdep.c (frv_gdbarch_init): Likewise.
13038 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13039 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13040 (i386_nw_init_abi): Likewise.
13041 (i386_gdbarch_init): Likewise.
13042 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13043 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13044 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13045 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13046 * mips-tdep.c (mips_gdbarch_init): Likewise.
13047 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13048 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13049 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13050 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13051 * s390-tdep.c (s390_gdbarch_init): Likewise.
13052 * sh-tdep.c (sh_gdbarch_init): Likewise.
13053 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13054 * v850-tdep.c (v850_gdbarch_init): Likewise.
13055 * vax-tdep.c (vax_gdbarch_init): Likewise.
13056 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13057
13058 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13059 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13060 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13061 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13062 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13063 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13064 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13065 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13066
b00a8037
DJ
130672002-01-04 Daniel Jacobowitz <drow@mvista.com>
13068
13069 * Makefile.in (acconfig_h): Remove incorrect macro.
13070 (config_h): Define.
13071 (osabi.o): Update dependencies.
13072 * configure.tgt: Set gdb_osabi based on target triplet.
13073 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13074 * configure: Regenerated.
13075 * config.in: Regenerated.
13076 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13077 (GDB_OSABI_DEFAULT): Define if not already defined.
13078 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13079 (set_osabi_string): New variables.
13080 (gdbarch_register_osabi): Add new OS ABI to
13081 gdb_osabi_available_names.
13082 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13083 (set_osabi, show_osabi): New functions.
13084 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13085
4be87837
DJ
130862003-01-04 Daniel Jacobowitz <drow@mvista.com>
13087
13088 * arch-utils.c (gdbarch_info_init): Set osabi to
13089 GDB_OSABI_UNINITIALIZED.
13090 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13091 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13092 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13093 * gdbarch.c: Regenerated.
13094 * gdbarch.h: Regenerated.
13095 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13096 there's no BFD.
13097 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13098 * osabi.h (enum gdb_osabi): Move to defs.h.
13099 (gdbarch_init_osabi): Update prototype.
13100 * defs.h (enum gdb_osabi): Moved here.
13101 * Makefile.in: Update dependencies.
13102
13103 * alpha-tdep.h: Don't include "osabi.h".
13104 (struct gdbarch_tdep): Remove osabi member.
13105 * alpha-tdep.c: Include "osabi.h".
13106 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13107 iterate over arches. Update call to gdbarch_init_osabi.
13108 (alpha_dump_tdep): Don't dump osabi.
13109 * alpha-linux-tdep.c: Include "osabi.h".
13110 * alpha-osf1-tdep.c: Include "osabi.h".
13111 * alphafbsd-tdep.c: Include "osabi.h".
13112 * alphanbsd-tdep.c: Include "osabi.h".
13113
13114 * arm-tdep.h: Don't include "osabi.h".
13115 (struct gdbarch_tdep): Remove osabi member.
13116 * arm-tdep.c: Include "osabi.h".
13117 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13118 iterate over arches. Update call to gdbarch_init_osabi.
13119 (arm_dump_tdep): Don't dump osabi.
13120 * arm-linux-tdep.c: Include "osabi.h".
13121 * armnbsd-tdep.c: Include "osabi.h".
13122
13123 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13124 Update call to gdbarch_init_osabi.
13125
13126 * i386-tdep.h: Don't include "osabi.h".
13127 (struct gdbarch_tdep): Remove osabi member.
13128 * i386-tdep.c: Include "osabi.h".
13129 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13130 iterate over arches. Update call to gdbarch_init_osabi.
13131 (i386_dump_tdep): Don't dump osabi.
13132 * i386-linux-tdep.c: Include "osabi.h".
13133 * i386-sol2-tdep.c: Include "osabi.h".
13134 * i386bsd-tdep.c: Include "osabi.h".
13135 * i386gnu-tdep.c: Include "osabi.h".
13136 * i386ly-tdep.c: Include "osabi.h".
13137 * i386nbsd-tdep.c: Include "osabi.h".
13138 * i386obsd-tdep.c: Include "osabi.h".
13139
13140 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13141 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13142 check osabi when iterating over arches. Update call to
13143 gdbarch_init_osabi.
13144 (mips_dump_tdep): Don't dump osabi.
13145
13146 * ns32k-tdep.h: Don't include "osabi.h".
13147 (struct gdbarch_tdep): Remove.
13148 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13149 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13150 allocate tdep. Update call to gdbarch_init_osabi.
13151 (ns32k_dump_tdep): Remove.
13152 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13153 * ns32knbsd-tdep.c: Include "osabi.h".
13154
13155 * ppc-tdep.h: Don't include "osabi.h".
13156 (struct gdbarch_tdep): Remove osabi member.
13157 * rs6000-tdep.c: Include "osabi.h".
13158 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13159 osabi when iterating over arches. Update call to
13160 gdbarch_init_osabi.
13161 (rs6000_dump_tdep): Don't dump osabi.
13162 * ppc-linux-tdep.c: Include "osabi.h".
13163 * ppcnbsd-tdep.c: Include "osabi.h".
13164
13165 * sh-tdep.h: Don't include "osabi.h".
13166 (struct gdbarch_tdep): Remove osabi member.
13167 * sh-tdep.c: Include "osabi.h".
13168 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13169 iterate over arches. Update call to gdbarch_init_osabi.
13170 (sh_dump_tdep): Don't dump osabi.
13171 * shnbsd-tdep.c: Include "osabi.h".
13172
13173 * sparc-tdep.c: Include "osabi.h".
13174 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13175 iterate over arches. Update call to gdbarch_init_osabi.
13176 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13177 tdep structure.
13178
13179 * vax-tdep.h: Don't include "osabi.h".
13180 (struct gdbarch_tdep): Remove.
13181 * vax-tdep.c: Include "osabi.h".
13182 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13183 iterate over arches. Don't allocate tdep. Update call
13184 to gdbarch_init_osabi.
13185 (vax_dump_tdep): Remove.
13186 (_initialize_vax_tdep): Update call to gdbarch_register.
13187
a881cf8e
DJ
131882003-01-04 Daniel Jacobowitz <drow@mvista.com>
13189
13190 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13191 entirely.
13192 (breakpoint_re_set_one): Don't fetch the value for a disabled
13193 watchpoint.
13194
1e698235
DJ
131952003-01-04 Daniel Jacobowitz <drow@mvista.com>
13196
13197 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13198 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13199 (COERCE_FLOAT_TO_DOUBLE): Remove.
13200 * gdbarch.c: Regenerate.
13201 * gdbarch.h: Regenerate.
13202 * Makefile.in: Remove value_h from gdbarch_h.
13203 * valops.c (coerce_float_to_double): New variable.
13204 (default_coerce_float_to_double): Remove.
13205 (standard_coerce_float_to_double): Remove.
13206 (value_arg_coerce): Use coerce_float_to_double.
13207 (_initialize_valops): Add "set coerce-float-to-double".
13208 * value.h (default_coerce_float_to_double): Remove prototype.
13209 (standard_coerce_float_to_double): Remove prototype.
13210
13211 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13212 prototyped.
13213 * mdebugread.c (parse_symbol): Likewise.
13214 * stabsread.c (define_symbol): Mark all functions as prototyped.
13215
13216 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13217 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13218 set_gdbarch_coerce_float_to_double.
13219 * arm-tdep.c (arm_gdbarch_init): Likewise.
13220 * frv-tdep.c (frv_gdbarch_init): Likewise.
13221 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13222 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13223 * mips-tdep.c (mips_gdbarch_init): Likewise.
13224 (mips_coerce_float_to_double): Remove.
13225 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13226 (rs6000_coerce_float_to_double): Remove.
13227 * s390-tdep.c (s390_gdbarch_init): Likewise.
13228 * sh-tdep.c (sh_gdbarch_init): Likewise.
13229 (sh_coerce_float_to_double): Remove.
13230 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13231 (sparc_coerce_float_to_double): Remove.
13232 * v850-tdep.c (v850_gdbarch_init): Likewise.
13233 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13234 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13235 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13236 (hppa_coerce_float_to_double): Remove prototype.
13237 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13238
f436a26a
DJ
132392003-01-04 Daniel Jacobowitz <drow@mvista.com>
13240
13241 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13242
248f8055
DJ
132432003-01-04 Daniel Jacobowitz <drow@mvista.com>
13244
13245 Suggested by Stewart Brown <sb24@avaya.com>:
13246 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13247 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13248 (c_type_print_varspec_suffix): Likewise.
13249
72cfdc76
MK
132502003-01-04 Mark Kettenis <kettenis@gnu.org>
13251
bfd260bb
MK
13252 * configure.in: Don't set and AC_SUBST SUBDIRS.
13253 * configure: Regenerated.
13254
72cfdc76
MK
13255 * configure.in: Remove code dealing with shared libraries.
13256 * Makefile.in: Remove HLDFLAGS and HLDENV.
13257 * configure: Regenerated.
13258
c8b8a898
AC
132592003-01-04 Andrew Cagney <ac131313@redhat.com>
13260
13261 * frame.c (deprecated_frame_xmalloc): New function.
13262 (deprecated_set_frame_saved_regs_hack): New function.
13263 (deprecated_set_frame_extra_info_hack): New function.
13264 * frame.h (deprecated_frame_xmalloc): Declare.
13265 (deprecated_set_frame_saved_regs_hack): Declare.
13266 (deprecated_set_frame_extra_info_hack): Declare.
13267
14abd0fb
MK
132682003-01-04 Mark Kettenis <kettenis@gnu.org>
13269
8ee53726
MK
13270 * configure.in: Move code that provides the --enable-gdbtk option
13271 right after the code that handles the --enable-tui option, and
13272 polish it somewhat.
13273 * configure: Regenerated.
13274
14abd0fb
MK
13275 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13276 AC_CHECK_FUNCS and remove the old check for pread64.
13277 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13278 * acconfig.h (_GNU_SOURCE): Add.
13279 (HAVE_PREAD64): Remove.
13280 * configure, aclocal.m4, config.in: Regenerated.
13281
b2fb4676
AC
132822003-01-03 Andrew Cagney <ac131313@redhat.com>
13283
13284 * alpha-tdep.c: Use get_frame_saved_regs.
13285 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13286 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13287 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13288 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13289 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13290
8dcde887
MK
132912003-01-03 Mark Kettenis <kettenis@gnu.org>
13292
13293 * configure.in: Remove all use of the SUBDIRS variable; add
13294 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13295 code providing the --enable-multi-ice option, and move it right in
13296 front of the code that checks whether gdbserver is supported.
13297 Polish that too.
13298 * configure: Regenerated.
13299 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13300 @SUBDIRS@.
13301
8ccd593b
AC
133022003-01-03 Andrew Cagney <cagney@redhat.com>
13303
13304 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13305 * avr-tdep.c, cris-tdep.c: Ditto.
13306 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13307 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13308
91151a06
MK
133092003-01-03 Mark Kettenis <kettenis@gnu.org>
13310
13311 * configure.in: Remove --enable-netrom option.
13312 * configure: Regenerated.
13313
8fe84d01
MK
133142003-01-03 Mark Kettenis <kettenis@gnu.org>
13315
13316 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13317 declaration for `struct re_pattern_buffer' instead.
13318 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13319
f0394be6
JB
133202003-01-03 J. Brobecker <brobecker@gnat.com>
13321
13322 * mdebugread.c (parse_symbol): Count until the stEnd matching
13323 the structure name.
13324
27e9bf90
MK
133252003-01-02 Mark Kettenis <kettenis@gnu.org>
13326
93d331ba
MK
13327 * configure.in: Remove --with-cpu option.
13328 subscripts. Remove evil changequotes here.
13329 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13330 * config.in, configure: Regenerated.
8ffd9b1b 13331
27e9bf90
MK
13332 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13333 * configure.in: Cleanup section that sources GDB and BFD configure
13334 subscripts. Remove evil changequotes here.
13335 * config.in, configure: Regenerated.
13336
50abf9e5
AC
133372003-01-02 Andrew Cagney <ac131313@redhat.com>
13338
13339 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13340 frame accessor methods.
13341 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13342 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13343 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13344 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13345 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13346 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13347 * z8k-tdep.c: Ditto.
8ffd9b1b 13348
287c1a40
MK
133492003-01-02 Mark Kettenis <kettenis@gnu.org>
13350
f5dbc56d
MK
13351 * configure.in: Remove UI_OUT configuration code.
13352 * ada-lang.c: Update assuming UI_OUT is always true.
13353 * Makefile.in (UIOUT_CFLAGS): Remove.
13354 * configure: Regenerated.
13355 * TODO: Remove blurb about elimination of -DUI_OUT.
13356
627af7ea
MK
13357 * configure.in: Move code that provides the --enable-gdbcli,
13358 --enable-gdbmi options right before the code that handles the
13359 --enable-tui option. Polish a bit.
13360 * configure: Regenerated.
13361
06825bd1
MK
13362 * configure.in: Rewrite check for GNU regex and the
13363 --without-included regex option, and move it into the "Checks for
13364 library functions" section. This makes us use the system regex
13365 again by default on systems with version 2 of the GNU C library.
13366 This was apparently broken.
13367 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13368 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13369 * config.in, configure: Regenerated.
13370
287c1a40
MK
13371 * configure.in: Move code that provides the --enable-tui option
13372 before the "Checks for libraries" section. Polish the code
13373 somewhat and set need_curses to yes if we build the TUI. Rewrite
13374 code that looks for a library providing termcap functionality to
13375 match more closely what's done in the Readline library, and move
13376 it into to the "Checks for libraries" section.
13377 * configure: Regenerated.
13378 * Makefile.in (TERMCAP): Remove variable.
13379 * config/i386/go32.mh (TERMCAP): Remove variable.
13380
684e56bf
AC
133812003-01-02 Andrew Cagney <ac131313@redhat.com>
13382
13383 * MAINTAINERS: Mention gdb_mbuild.sh.
13384 * gdb_mbuild.sh: Rewrite.
13385
e1ea1d75
MK
133862003-01-02 Mark Kettenis <kettenis@gnu.org>
13387
13388 * configure.in: Fix typo in last change.
13389 * config.in, configure: Regenerated.
13390
1b831c93
AC
133912003-01-02 Andrew Cagney <ac131313@redhat.com>
13392
13393 * valarith.c (value_binop): Delete obsolete code and comments.
13394 * configure.host: Ditto.
13395 * buildsym.h (make_blockvector): Ditto.
13396 * buildsym.c (make_blockvector): Ditto.
13397 * defs.h (enum language): Ditto.
13398 (chill_demangle): Ditto.
13399 * elfread.c (elf_symtab_read): Ditto.
13400 * dwarfread.c (CHILL_PRODUCER): Ditto.
13401 (set_cu_language): Ditto.
13402 (handle_producer): Ditto.
13403 * expprint.c (print_subexp): Ditto.
13404 * gdbtypes.c (chill_varying_type): Ditto.
13405 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13406 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13407 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13408 (chill_varying_type): Ditto.
13409 * language.h (_LANG_chill): Ditto.
13410 * language.c (binop_result_type, integral_type): Ditto.
13411 (character_type, string_type, structured_type): Ditto.
13412 (lang_bool_type, binop_type_check): Ditto.
13413 * stabsread.h (os9k_stabs): Ditto.
13414 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13415 (define_symbol, read_type, read_struct_fields): Ditto.
13416 (read_array_type, read_enum_type, read_huge_number): Ditto.
13417 (read_range_type, start_stabs): Ditto.
13418 * symfile.c (init_filename_language_table): Ditto.
13419 (add_psymbol_with_dem_name_to_list): Ditto.
13420 * symtab.c (symbol_init_language_specific): Ditto.
13421 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13422 * symtab.h (struct general_symbol_info): Ditto.
13423 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13424 * typeprint.c (typedef_print): Ditto.
13425 * utils.c (fprintf_symbol_filtered): Ditto.
13426 * valops.c (value_cast, search_struct_field, value_slice): Delete
13427 obsolete code.
13428 (varying_to_slice): Delete function.
13429 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13430 (varying_to_slice): Delete declaration.
13431 * MAINTAINERS: Update.
13432
8bb2c122
MK
134332003-01-02 Mark Kettenis <kettenis@gnu.org>
13434
97bf5e38
MK
13435 * configure.in: Reorganize "Checks for library functions section"
13436 a bit. Remove check for `btowc' and `isascii' functions.
13437 * configure: Regenerated.
13438
5ee754fc
MK
13439 * acconfig.h (_MSE_INT_H): Remove.
13440 * configure.in: Create "Checks for header files" section, and move
13441 appropriate tests there. Don't check for objlist.h, wchar.h,
13442 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13443 misdetection fix. Also add "Checks for types", "Checks for
13444 compiler characteristics" and "Checks for library functions"
13445 sections.
13446 * config.in, configure: Regenerated.
13447
8bb2c122
MK
13448 * configure.in: Create "Checks for programs" section, and move
13449 appropriate tests there.
13450
9a156167
MK
134512003-01-01 Mark Kettenis <kettenis@gnu.org>
13452
13453 * configure.in: Create "Checks for libraries" section, and move
13454 appropriate tests there. Cleanup check for wctype in libw. Use
13455 AC_SEARCH_LIBS to see whether we need libsocket.
13456 * configure: Regenerated.
13457
a80e2bcb 13458For older changes see ChangeLog-2002
c906108c
SS
13459\f
13460Local Variables:
13461mode: change-log
13462left-margin: 8
13463fill-column: 74
13464version-control: never
13465End:
This page took 1.052302 seconds and 4 git commands to generate.